{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.zF4uyMk9/b1/dune-istl_2.9.0-6_amd64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.zF4uyMk9/b2/dune-istl_2.9.0-6_amd64.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,3 +1,3 @@\n \n 3679113243653f4443de6e44ed82aca4 210780 libdevel optional libdune-istl-dev_2.9.0-6_amd64.deb\n- c1015dba79cad4bc2cb305164587beb0 3833776 doc optional libdune-istl-doc_2.9.0-6_all.deb\n+ b6fed2b5c2178b42dd2f37f3f197f729 3830412 doc optional libdune-istl-doc_2.9.0-6_all.deb\n"}, {"source1": "libdune-istl-doc_2.9.0-6_all.deb", "source2": "libdune-istl-doc_2.9.0-6_all.deb", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2024-10-10 13:14:09.000000 debian-binary\n--rw-r--r-- 0 0 0 26912 2024-10-10 13:14:09.000000 control.tar.xz\n--rw-r--r-- 0 0 0 3806672 2024-10-10 13:14:09.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 26892 2024-10-10 13:14:09.000000 control.tar.xz\n+-rw-r--r-- 0 0 0 3803328 2024-10-10 13:14:09.000000 data.tar.xz\n"}, {"source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [{"source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "comments": ["Files differ"], "unified_diff": null}]}]}]}, {"source1": "data.tar.xz", "source2": "data.tar.xz", "unified_diff": null, "details": [{"source1": "data.tar", "source2": "data.tar", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -5,162 +5,162 @@\n drwxr-xr-x 0 root (0) root (0) 0 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/\n -rw-r--r-- 0 root (0) root (0) 1240 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/changelog.Debian.gz\n -rw-r--r-- 0 root (0) root (0) 3688 2022-10-20 18:22:18.000000 ./usr/share/doc/libdune-istl-doc/changelog.gz\n -rw-r--r-- 0 root (0) root (0) 3254 2023-01-12 15:07:31.000000 ./usr/share/doc/libdune-istl-doc/copyright\n drwxr-xr-x 0 root (0) root (0) 0 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/\n -rw-r--r-- 0 root (0) root (0) 3041 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00002.html\n -rw-r--r-- 0 root (0) root (0) 3039 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00005.html\n--rw-r--r-- 0 root (0) root (0) 10514 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00008.html\n--rw-r--r-- 0 root (0) root (0) 147916 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00008_source.html\n--rw-r--r-- 0 root (0) root (0) 7150 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00011.html\n--rw-r--r-- 0 root (0) root (0) 58273 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00011_source.html\n--rw-r--r-- 0 root (0) root (0) 9225 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00014.html\n--rw-r--r-- 0 root (0) root (0) 74488 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00014_source.html\n--rw-r--r-- 0 root (0) root (0) 33564 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00017.html\n--rw-r--r-- 0 root (0) root (0) 145690 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00017_source.html\n--rw-r--r-- 0 root (0) root (0) 17812 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00020.html\n--rw-r--r-- 0 root (0) root (0) 125151 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00020_source.html\n--rw-r--r-- 0 root (0) root (0) 6811 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00023.html\n--rw-r--r-- 0 root (0) root (0) 74451 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00023_source.html\n--rw-r--r-- 0 root (0) root (0) 4555 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00026.html\n--rw-r--r-- 0 root (0) root (0) 55816 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00026_source.html\n--rw-r--r-- 0 root (0) root (0) 15320 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00029.html\n--rw-r--r-- 0 root (0) root (0) 151385 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00029_source.html\n--rw-r--r-- 0 root (0) root (0) 7796 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00032.html\n--rw-r--r-- 0 root (0) root (0) 34254 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00032_source.html\n--rw-r--r-- 0 root (0) root (0) 4385 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00035.html\n--rw-r--r-- 0 root (0) root (0) 18371 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00035_source.html\n+-rw-r--r-- 0 root (0) root (0) 4706 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00008.html\n+-rw-r--r-- 0 root (0) root (0) 23732 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00008_source.html\n+-rw-r--r-- 0 root (0) root (0) 13397 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00011.html\n+-rw-r--r-- 0 root (0) root (0) 185807 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00011_source.html\n+-rw-r--r-- 0 root (0) root (0) 7150 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00014.html\n+-rw-r--r-- 0 root (0) root (0) 58273 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00014_source.html\n+-rw-r--r-- 0 root (0) root (0) 44339 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00017.html\n+-rw-r--r-- 0 root (0) root (0) 253737 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00017_source.html\n+-rw-r--r-- 0 root (0) root (0) 9765 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00020.html\n+-rw-r--r-- 0 root (0) root (0) 42295 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00020_source.html\n+-rw-r--r-- 0 root (0) root (0) 17812 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00023.html\n+-rw-r--r-- 0 root (0) root (0) 125151 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00023_source.html\n+-rw-r--r-- 0 root (0) root (0) 4544 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00026.html\n+-rw-r--r-- 0 root (0) root (0) 53931 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00026_source.html\n+-rw-r--r-- 0 root (0) root (0) 9273 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00029.html\n+-rw-r--r-- 0 root (0) root (0) 122293 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00029_source.html\n+-rw-r--r-- 0 root (0) root (0) 9765 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00032.html\n+-rw-r--r-- 0 root (0) root (0) 132844 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00032_source.html\n+-rw-r--r-- 0 root (0) root (0) 7084 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00035.html\n+-rw-r--r-- 0 root (0) root (0) 14008 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00035_source.html\n -rw-r--r-- 0 root (0) root (0) 12157 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00038.html\n -rw-r--r-- 0 root (0) root (0) 21373 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00038_source.html\n--rw-r--r-- 0 root (0) root (0) 9765 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00041.html\n--rw-r--r-- 0 root (0) root (0) 42295 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00041_source.html\n--rw-r--r-- 0 root (0) root (0) 9866 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00044.html\n--rw-r--r-- 0 root (0) root (0) 160718 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00044_source.html\n--rw-r--r-- 0 root (0) root (0) 7691 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00047.html\n--rw-r--r-- 0 root (0) root (0) 220462 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00047_source.html\n--rw-r--r-- 0 root (0) root (0) 6499 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00050.html\n--rw-r--r-- 0 root (0) root (0) 44115 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00050_source.html\n--rw-r--r-- 0 root (0) root (0) 4922 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00053.html\n--rw-r--r-- 0 root (0) root (0) 14276 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00053_source.html\n--rw-r--r-- 0 root (0) root (0) 6799 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00056.html\n--rw-r--r-- 0 root (0) root (0) 11407 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00056_source.html\n--rw-r--r-- 0 root (0) root (0) 13203 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00059.html\n--rw-r--r-- 0 root (0) root (0) 131101 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00059_source.html\n--rw-r--r-- 0 root (0) root (0) 3364 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00062.html\n--rw-r--r-- 0 root (0) root (0) 58162 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00062_source.html\n--rw-r--r-- 0 root (0) root (0) 12508 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00065.html\n--rw-r--r-- 0 root (0) root (0) 121274 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00065_source.html\n--rw-r--r-- 0 root (0) root (0) 8891 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00068.html\n--rw-r--r-- 0 root (0) root (0) 412251 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00068_source.html\n--rw-r--r-- 0 root (0) root (0) 17510 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00071.html\n--rw-r--r-- 0 root (0) root (0) 315503 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00071_source.html\n--rw-r--r-- 0 root (0) root (0) 7084 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00074.html\n--rw-r--r-- 0 root (0) root (0) 14008 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00074_source.html\n--rw-r--r-- 0 root (0) root (0) 4785 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00077.html\n--rw-r--r-- 0 root (0) root (0) 14866 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00077_source.html\n--rw-r--r-- 0 root (0) root (0) 8771 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00080.html\n--rw-r--r-- 0 root (0) root (0) 68876 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00080_source.html\n--rw-r--r-- 0 root (0) root (0) 5870 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00083.html\n--rw-r--r-- 0 root (0) root (0) 20990 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00083_source.html\n--rw-r--r-- 0 root (0) root (0) 8901 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00086.html\n--rw-r--r-- 0 root (0) root (0) 47367 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00086_source.html\n--rw-r--r-- 0 root (0) root (0) 7254 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00089.html\n--rw-r--r-- 0 root (0) root (0) 75348 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00089_source.html\n--rw-r--r-- 0 root (0) root (0) 6665 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00092.html\n--rw-r--r-- 0 root (0) root (0) 52582 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00092_source.html\n--rw-r--r-- 0 root (0) root (0) 5437 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00095.html\n--rw-r--r-- 0 root (0) root (0) 14295 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00095_source.html\n--rw-r--r-- 0 root (0) root (0) 10970 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00098.html\n--rw-r--r-- 0 root (0) root (0) 187347 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00098_source.html\n--rw-r--r-- 0 root (0) root (0) 18719 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00101.html\n--rw-r--r-- 0 root (0) root (0) 208523 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00101_source.html\n--rw-r--r-- 0 root (0) root (0) 5186 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00104.html\n--rw-r--r-- 0 root (0) root (0) 22059 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00104_source.html\n--rw-r--r-- 0 root (0) root (0) 15753 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00107.html\n--rw-r--r-- 0 root (0) root (0) 410562 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00107_source.html\n--rw-r--r-- 0 root (0) root (0) 13573 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00110.html\n--rw-r--r-- 0 root (0) root (0) 345513 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00110_source.html\n--rw-r--r-- 0 root (0) root (0) 9429 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00113.html\n--rw-r--r-- 0 root (0) root (0) 133063 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00113_source.html\n--rw-r--r-- 0 root (0) root (0) 6562 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00116.html\n--rw-r--r-- 0 root (0) root (0) 69285 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00116_source.html\n--rw-r--r-- 0 root (0) root (0) 5397 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00119.html\n--rw-r--r-- 0 root (0) root (0) 29692 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00119_source.html\n--rw-r--r-- 0 root (0) root (0) 8180 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00122.html\n--rw-r--r-- 0 root (0) root (0) 122236 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00122_source.html\n--rw-r--r-- 0 root (0) root (0) 5679 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00125.html\n--rw-r--r-- 0 root (0) root (0) 30672 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00125_source.html\n--rw-r--r-- 0 root (0) root (0) 7520 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00128.html\n--rw-r--r-- 0 root (0) root (0) 98130 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00128_source.html\n--rw-r--r-- 0 root (0) root (0) 6348 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00131.html\n--rw-r--r-- 0 root (0) root (0) 17314 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00131_source.html\n--rw-r--r-- 0 root (0) root (0) 7901 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00134.html\n--rw-r--r-- 0 root (0) root (0) 66465 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00134_source.html\n--rw-r--r-- 0 root (0) root (0) 6403 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00137.html\n--rw-r--r-- 0 root (0) root (0) 65781 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00137_source.html\n--rw-r--r-- 0 root (0) root (0) 9508 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00140.html\n--rw-r--r-- 0 root (0) root (0) 87692 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00140_source.html\n--rw-r--r-- 0 root (0) root (0) 9428 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00143.html\n--rw-r--r-- 0 root (0) root (0) 238457 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00143_source.html\n--rw-r--r-- 0 root (0) root (0) 4679 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00146.html\n--rw-r--r-- 0 root (0) root (0) 24711 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00146_source.html\n--rw-r--r-- 0 root (0) root (0) 9273 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00149.html\n--rw-r--r-- 0 root (0) root (0) 122293 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00149_source.html\n--rw-r--r-- 0 root (0) root (0) 4706 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00152.html\n--rw-r--r-- 0 root (0) root (0) 23732 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00152_source.html\n--rw-r--r-- 0 root (0) root (0) 19506 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00155.html\n--rw-r--r-- 0 root (0) root (0) 312867 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00155_source.html\n--rw-r--r-- 0 root (0) root (0) 8602 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00158.html\n--rw-r--r-- 0 root (0) root (0) 40910 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00158_source.html\n--rw-r--r-- 0 root (0) root (0) 5570 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00161.html\n--rw-r--r-- 0 root (0) root (0) 36127 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00161_source.html\n--rw-r--r-- 0 root (0) root (0) 10170 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00164.html\n--rw-r--r-- 0 root (0) root (0) 12125 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00164_source.html\n--rw-r--r-- 0 root (0) root (0) 7778 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00167.html\n--rw-r--r-- 0 root (0) root (0) 17437 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00167_source.html\n--rw-r--r-- 0 root (0) root (0) 10065 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00170.html\n--rw-r--r-- 0 root (0) root (0) 107941 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00170_source.html\n--rw-r--r-- 0 root (0) root (0) 8727 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00173.html\n--rw-r--r-- 0 root (0) root (0) 34366 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00173_source.html\n--rw-r--r-- 0 root (0) root (0) 44339 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00176.html\n--rw-r--r-- 0 root (0) root (0) 253737 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00176_source.html\n--rw-r--r-- 0 root (0) root (0) 16830 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00179.html\n--rw-r--r-- 0 root (0) root (0) 48381 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00179_source.html\n--rw-r--r-- 0 root (0) root (0) 5597 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00182.html\n--rw-r--r-- 0 root (0) root (0) 44694 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00182_source.html\n--rw-r--r-- 0 root (0) root (0) 12195 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00185.html\n--rw-r--r-- 0 root (0) root (0) 79104 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00185_source.html\n--rw-r--r-- 0 root (0) root (0) 7679 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00188.html\n--rw-r--r-- 0 root (0) root (0) 61431 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00188_source.html\n--rw-r--r-- 0 root (0) root (0) 8610 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00191.html\n--rw-r--r-- 0 root (0) root (0) 79459 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00191_source.html\n--rw-r--r-- 0 root (0) root (0) 6568 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00194.html\n--rw-r--r-- 0 root (0) root (0) 34046 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00194_source.html\n--rw-r--r-- 0 root (0) root (0) 8585 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00197.html\n--rw-r--r-- 0 root (0) root (0) 75169 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00197_source.html\n--rw-r--r-- 0 root (0) root (0) 4544 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00200.html\n--rw-r--r-- 0 root (0) root (0) 53931 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00200_source.html\n--rw-r--r-- 0 root (0) root (0) 6351 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00203.html\n--rw-r--r-- 0 root (0) root (0) 134026 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00203_source.html\n--rw-r--r-- 0 root (0) root (0) 6044 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00206.html\n--rw-r--r-- 0 root (0) root (0) 114981 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00206_source.html\n--rw-r--r-- 0 root (0) root (0) 13276 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00209.html\n--rw-r--r-- 0 root (0) root (0) 300759 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00209_source.html\n--rw-r--r-- 0 root (0) root (0) 9765 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00212.html\n--rw-r--r-- 0 root (0) root (0) 132844 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00212_source.html\n--rw-r--r-- 0 root (0) root (0) 7564 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00215.html\n--rw-r--r-- 0 root (0) root (0) 142750 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00215_source.html\n--rw-r--r-- 0 root (0) root (0) 4950 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00218.html\n--rw-r--r-- 0 root (0) root (0) 9481 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00218_source.html\n--rw-r--r-- 0 root (0) root (0) 5930 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00221.html\n--rw-r--r-- 0 root (0) root (0) 162672 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00221_source.html\n--rw-r--r-- 0 root (0) root (0) 5446 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00224.html\n--rw-r--r-- 0 root (0) root (0) 165179 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00224_source.html\n--rw-r--r-- 0 root (0) root (0) 13397 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00227.html\n--rw-r--r-- 0 root (0) root (0) 185807 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00227_source.html\n+-rw-r--r-- 0 root (0) root (0) 7679 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00041.html\n+-rw-r--r-- 0 root (0) root (0) 61431 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00041_source.html\n+-rw-r--r-- 0 root (0) root (0) 6799 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00044.html\n+-rw-r--r-- 0 root (0) root (0) 11407 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00044_source.html\n+-rw-r--r-- 0 root (0) root (0) 5597 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00047.html\n+-rw-r--r-- 0 root (0) root (0) 44694 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00047_source.html\n+-rw-r--r-- 0 root (0) root (0) 4385 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00050.html\n+-rw-r--r-- 0 root (0) root (0) 18371 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00050_source.html\n+-rw-r--r-- 0 root (0) root (0) 5679 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00053.html\n+-rw-r--r-- 0 root (0) root (0) 30672 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00053_source.html\n+-rw-r--r-- 0 root (0) root (0) 6562 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00056.html\n+-rw-r--r-- 0 root (0) root (0) 69285 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00056_source.html\n+-rw-r--r-- 0 root (0) root (0) 5437 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00059.html\n+-rw-r--r-- 0 root (0) root (0) 14295 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00059_source.html\n+-rw-r--r-- 0 root (0) root (0) 7901 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00062.html\n+-rw-r--r-- 0 root (0) root (0) 66465 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00062_source.html\n+-rw-r--r-- 0 root (0) root (0) 8771 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00065.html\n+-rw-r--r-- 0 root (0) root (0) 68876 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00065_source.html\n+-rw-r--r-- 0 root (0) root (0) 5397 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00068.html\n+-rw-r--r-- 0 root (0) root (0) 29692 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00068_source.html\n+-rw-r--r-- 0 root (0) root (0) 10970 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00071.html\n+-rw-r--r-- 0 root (0) root (0) 187347 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00071_source.html\n+-rw-r--r-- 0 root (0) root (0) 6403 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00074.html\n+-rw-r--r-- 0 root (0) root (0) 65781 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00074_source.html\n+-rw-r--r-- 0 root (0) root (0) 18719 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00077.html\n+-rw-r--r-- 0 root (0) root (0) 208523 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00077_source.html\n+-rw-r--r-- 0 root (0) root (0) 15753 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00080.html\n+-rw-r--r-- 0 root (0) root (0) 410562 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00080_source.html\n+-rw-r--r-- 0 root (0) root (0) 6348 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00083.html\n+-rw-r--r-- 0 root (0) root (0) 17314 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00083_source.html\n+-rw-r--r-- 0 root (0) root (0) 7254 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00086.html\n+-rw-r--r-- 0 root (0) root (0) 75348 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00086_source.html\n+-rw-r--r-- 0 root (0) root (0) 13573 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00089.html\n+-rw-r--r-- 0 root (0) root (0) 345513 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00089_source.html\n+-rw-r--r-- 0 root (0) root (0) 7520 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00092.html\n+-rw-r--r-- 0 root (0) root (0) 98130 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00092_source.html\n+-rw-r--r-- 0 root (0) root (0) 8901 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00095.html\n+-rw-r--r-- 0 root (0) root (0) 47367 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00095_source.html\n+-rw-r--r-- 0 root (0) root (0) 8180 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00098.html\n+-rw-r--r-- 0 root (0) root (0) 122236 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00098_source.html\n+-rw-r--r-- 0 root (0) root (0) 9508 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00101.html\n+-rw-r--r-- 0 root (0) root (0) 87692 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00101_source.html\n+-rw-r--r-- 0 root (0) root (0) 5870 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00104.html\n+-rw-r--r-- 0 root (0) root (0) 20990 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00104_source.html\n+-rw-r--r-- 0 root (0) root (0) 9429 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00107.html\n+-rw-r--r-- 0 root (0) root (0) 133063 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00107_source.html\n+-rw-r--r-- 0 root (0) root (0) 6665 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00110.html\n+-rw-r--r-- 0 root (0) root (0) 52582 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00110_source.html\n+-rw-r--r-- 0 root (0) root (0) 9428 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00113.html\n+-rw-r--r-- 0 root (0) root (0) 238457 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00113_source.html\n+-rw-r--r-- 0 root (0) root (0) 5186 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00116.html\n+-rw-r--r-- 0 root (0) root (0) 22059 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00116_source.html\n+-rw-r--r-- 0 root (0) root (0) 33564 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00119.html\n+-rw-r--r-- 0 root (0) root (0) 145690 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00119_source.html\n+-rw-r--r-- 0 root (0) root (0) 4950 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00122.html\n+-rw-r--r-- 0 root (0) root (0) 9481 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00122_source.html\n+-rw-r--r-- 0 root (0) root (0) 6351 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00125.html\n+-rw-r--r-- 0 root (0) root (0) 134026 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00125_source.html\n+-rw-r--r-- 0 root (0) root (0) 4922 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00128.html\n+-rw-r--r-- 0 root (0) root (0) 14276 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00128_source.html\n+-rw-r--r-- 0 root (0) root (0) 7564 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00131.html\n+-rw-r--r-- 0 root (0) root (0) 142750 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00131_source.html\n+-rw-r--r-- 0 root (0) root (0) 7778 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00134.html\n+-rw-r--r-- 0 root (0) root (0) 17437 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00134_source.html\n+-rw-r--r-- 0 root (0) root (0) 10170 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00137.html\n+-rw-r--r-- 0 root (0) root (0) 12125 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00137_source.html\n+-rw-r--r-- 0 root (0) root (0) 6811 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00140.html\n+-rw-r--r-- 0 root (0) root (0) 74451 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00140_source.html\n+-rw-r--r-- 0 root (0) root (0) 16830 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00143.html\n+-rw-r--r-- 0 root (0) root (0) 48381 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00143_source.html\n+-rw-r--r-- 0 root (0) root (0) 7796 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00146.html\n+-rw-r--r-- 0 root (0) root (0) 34254 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00146_source.html\n+-rw-r--r-- 0 root (0) root (0) 5446 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00149.html\n+-rw-r--r-- 0 root (0) root (0) 165179 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00149_source.html\n+-rw-r--r-- 0 root (0) root (0) 5930 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00152.html\n+-rw-r--r-- 0 root (0) root (0) 162672 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00152_source.html\n+-rw-r--r-- 0 root (0) root (0) 4785 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00155.html\n+-rw-r--r-- 0 root (0) root (0) 14866 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00155_source.html\n+-rw-r--r-- 0 root (0) root (0) 8610 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00158.html\n+-rw-r--r-- 0 root (0) root (0) 79459 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00158_source.html\n+-rw-r--r-- 0 root (0) root (0) 10514 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00161.html\n+-rw-r--r-- 0 root (0) root (0) 147916 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00161_source.html\n+-rw-r--r-- 0 root (0) root (0) 8891 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00164.html\n+-rw-r--r-- 0 root (0) root (0) 412251 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00164_source.html\n+-rw-r--r-- 0 root (0) root (0) 9866 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00167.html\n+-rw-r--r-- 0 root (0) root (0) 160718 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00167_source.html\n+-rw-r--r-- 0 root (0) root (0) 4679 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00170.html\n+-rw-r--r-- 0 root (0) root (0) 24711 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00170_source.html\n+-rw-r--r-- 0 root (0) root (0) 17510 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00173.html\n+-rw-r--r-- 0 root (0) root (0) 315503 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00173_source.html\n+-rw-r--r-- 0 root (0) root (0) 9225 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00176.html\n+-rw-r--r-- 0 root (0) root (0) 74488 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00176_source.html\n+-rw-r--r-- 0 root (0) root (0) 7691 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00179.html\n+-rw-r--r-- 0 root (0) root (0) 220462 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00179_source.html\n+-rw-r--r-- 0 root (0) root (0) 19506 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00182.html\n+-rw-r--r-- 0 root (0) root (0) 312867 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00182_source.html\n+-rw-r--r-- 0 root (0) root (0) 5570 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00185.html\n+-rw-r--r-- 0 root (0) root (0) 36127 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00185_source.html\n+-rw-r--r-- 0 root (0) root (0) 3364 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00188.html\n+-rw-r--r-- 0 root (0) root (0) 58162 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00188_source.html\n+-rw-r--r-- 0 root (0) root (0) 8727 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00191.html\n+-rw-r--r-- 0 root (0) root (0) 34366 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00191_source.html\n+-rw-r--r-- 0 root (0) root (0) 8585 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00194.html\n+-rw-r--r-- 0 root (0) root (0) 75169 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00194_source.html\n+-rw-r--r-- 0 root (0) root (0) 13276 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00197.html\n+-rw-r--r-- 0 root (0) root (0) 300759 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00197_source.html\n+-rw-r--r-- 0 root (0) root (0) 4555 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00200.html\n+-rw-r--r-- 0 root (0) root (0) 55816 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00200_source.html\n+-rw-r--r-- 0 root (0) root (0) 6499 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00203.html\n+-rw-r--r-- 0 root (0) root (0) 44115 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00203_source.html\n+-rw-r--r-- 0 root (0) root (0) 12508 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00206.html\n+-rw-r--r-- 0 root (0) root (0) 121274 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00206_source.html\n+-rw-r--r-- 0 root (0) root (0) 6568 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00209.html\n+-rw-r--r-- 0 root (0) root (0) 34046 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00209_source.html\n+-rw-r--r-- 0 root (0) root (0) 15320 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00212.html\n+-rw-r--r-- 0 root (0) root (0) 151385 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00212_source.html\n+-rw-r--r-- 0 root (0) root (0) 12195 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00215.html\n+-rw-r--r-- 0 root (0) root (0) 79104 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00215_source.html\n+-rw-r--r-- 0 root (0) root (0) 13203 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00218.html\n+-rw-r--r-- 0 root (0) root (0) 131101 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00218_source.html\n+-rw-r--r-- 0 root (0) root (0) 8602 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00221.html\n+-rw-r--r-- 0 root (0) root (0) 40910 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00221_source.html\n+-rw-r--r-- 0 root (0) root (0) 10065 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00224.html\n+-rw-r--r-- 0 root (0) root (0) 107941 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00224_source.html\n+-rw-r--r-- 0 root (0) root (0) 6044 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00227.html\n+-rw-r--r-- 0 root (0) root (0) 114981 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00227_source.html\n -rw-r--r-- 0 root (0) root (0) 5517 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00230.html\n -rw-r--r-- 0 root (0) root (0) 3416 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00231.html\n -rw-r--r-- 0 root (0) root (0) 3725 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00232.html\n -rw-r--r-- 0 root (0) root (0) 321302 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00233.html\n -rw-r--r-- 0 root (0) root (0) 23094 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00233.png\n -rw-r--r-- 0 root (0) root (0) 32149 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00234.html\n -rw-r--r-- 0 root (0) root (0) 19073 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/a00234.png\n@@ -1090,15 +1090,15 @@\n -rw-r--r-- 0 root (0) root (0) 8035 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/dir_5e12c67a8fe12cf8b78c94f3b4cb9926_dep.png\n -rw-r--r-- 0 root (0) root (0) 4247 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/dir_5e69be5995c9f5d42bf491ae6f29600e.html\n -rw-r--r-- 0 root (0) root (0) 1620 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/dir_5e69be5995c9f5d42bf491ae6f29600e_dep.png\n -rw-r--r-- 0 root (0) root (0) 14065 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/dir_667edbdb0a8210232217f5e7df6d52d4.html\n -rw-r--r-- 0 root (0) root (0) 1878 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/dir_667edbdb0a8210232217f5e7df6d52d4_dep.png\n -rw-r--r-- 0 root (0) root (0) 3665 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/dir_e68e8157741866f444e17edd764ebbae.html\n -rw-r--r-- 0 root (0) root (0) 45631 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/doxygen.css\n--rw-r--r-- 0 root (0) root (0) 177298 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/dune-istl.tag.gz\n+-rw-r--r-- 0 root (0) root (0) 177282 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/dune-istl.tag.gz\n -rw-r--r-- 0 root (0) root (0) 7704 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/dynsections.js\n -rw-r--r-- 0 root (0) root (0) 28998 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/files.html\n -rw-r--r-- 0 root (0) root (0) 549 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/form_0.png\n -rw-r--r-- 0 root (0) root (0) 572 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/form_0_dark.png\n -rw-r--r-- 0 root (0) root (0) 531 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/form_1.png\n -rw-r--r-- 0 root (0) root (0) 860 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/form_10.png\n -rw-r--r-- 0 root (0) root (0) 909 2024-10-10 13:14:09.000000 ./usr/share/doc/libdune-istl-doc/doxygen/form_10_dark.png\n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00008.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00008.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: superlu.hh File Reference\n+dune-istl: superlufunctions.hh File Reference\n \n \n \n \n \n \n \n@@ -70,82 +70,43 @@\n
\n \n
\n \n
\n
\n-Classes |\n-Namespaces |\n-Functions
\n-
\n+Macros
\n+
superlufunctions.hh File Reference
\n \n
\n-\n-

Classes for using SuperLU with ISTL matrices. \n-More...

\n-
#include "superlufunctions.hh"
\n-#include "solvers.hh"
\n-#include "supermatrix.hh"
\n-#include <algorithm>
\n-#include <functional>
\n-#include "bcrsmatrix.hh"
\n-#include "bvector.hh"
\n-#include "istlexception.hh"
\n-#include <dune/common/fmatrix.hh>
\n-#include <dune/common/fvector.hh>
\n-#include <dune/common/stdstreams.hh>
\n-#include <dune/istl/solvertype.hh>
\n-#include <dune/istl/solverfactory.hh>
\n+
#include "supermatrix.h"
\n+#include "slu_util.h"
\n
\n

Go to the source code of this file.

\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

\n-Classes

struct  Dune::SuperLUSolveChooser< T >
 
struct  Dune::SuperLUDenseMatChooser< T >
 
struct  Dune::SuperLUQueryChooser< T >
 
struct  Dune::QuerySpaceChooser< T >
 
class  Dune::SuperLU< M >
 SuperLu Solver. More...
 
struct  Dune::IsDirectSolver< SuperLU< BCRSMatrix< T, A > > >
 
struct  Dune::StoresColumnCompressed< SuperLU< BCRSMatrix< T, A > > >
 
struct  Dune::SuperLUCreator
 
struct  Dune::SuperLUCreator::isValidBlock< class >
 
struct  Dune::SuperLUCreator::isValidBlock< Dune::FieldVector< double, k > >
 
struct  Dune::SuperLUCreator::isValidBlock< Dune::FieldVector< std::complex< double >, k > >
 
struct  Dune::SuperLUCreator::isValidBlock< double >
 
struct  Dune::SuperLUCreator::isValidBlock< std::complex< double > >
 
\n-\n-\n-\n-

\n-Namespaces

namespace  Dune
 
\n-\n-\n-\n+\n+\n+\n

\n-Functions

 Dune::DUNE_REGISTER_DIRECT_SOLVER ("superlu", SuperLUCreator())
 

\n+Macros

#define int_t   SUPERLU_INT_TYPE
 
\n-

Detailed Description

\n-

Classes for using SuperLU with ISTL matrices.

\n-
Author
Markus Blatt
\n-
\n+

Macro Definition Documentation

\n+\n+

◆ int_t

\n+\n+
\n+
\n+ \n+ \n+ \n+ \n+
#define int_t   SUPERLU_INT_TYPE
\n+
\n+\n+
\n+
\n+
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,65 +1,19 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-superlu.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b)\n-Classes for using SuperLU with ISTL matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\"\n-#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n-#include \"_\bs_\bu_\bp_\be_\br_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-#include \n-#include \n-#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n+_\bM_\ba_\bc_\br_\bo_\bs\n+superlufunctions.hh File Reference\n+#include \"supermatrix.h\"\n+#include \"slu_util.h\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bT_\b _\b>\n+M\bMa\bac\bcr\bro\bos\bs\n+#define\u00a0 _\bi_\bn_\bt_\b__\bt\u00a0\u00a0\u00a0SUPERLU_INT_TYPE\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bQ_\bu_\be_\br_\by_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bQ_\bu_\be_\br_\by_\bS_\bp_\ba_\bc_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bT_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\b _\bM_\b _\b>\n-\u00a0 SuperLu Solver. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\b _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bc_\bl_\ba_\bs_\bs_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bk_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<\n- _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bk_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b _\b>\n-\u00a0\n-N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n-namespace \u00a0 _\bD_\bu_\bn_\be\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"superlu\", _\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br())\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Classes for using SuperLU with ISTL matrices.\n- Author\n- Markus Blatt\n+*\b**\b**\b**\b**\b* M\bMa\bac\bcr\bro\bo D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0i\bin\bnt\bt_\b_t\bt *\b**\b**\b**\b**\b*\n+#define int_t\u00a0\u00a0\u00a0SUPERLU_INT_TYPE\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00008_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00008_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: superlu.hh Source File\n+dune-istl: superlufunctions.hh Source File\n \n \n \n \n \n \n \n@@ -74,833 +74,135 @@\n \n
\n \n
\n \n
\n-
superlu.hh
\n+
superlufunctions.hh
\n
\n
\n Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
\n
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
\n
3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
\n
4// vi: set et ts=4 sw=2 sts=2:
\n-
5#ifndef DUNE_ISTL_SUPERLU_HH
\n-
6#define DUNE_ISTL_SUPERLU_HH
\n-
7
\n-
8#if HAVE_SUPERLU
\n+
5#ifndef DUNE_ISTL_SUPERLUFUNCTIONS_HH
\n+
6#define DUNE_ISTL_SUPERLUFUNCTIONS_HH
\n+
7#if HAVE_SUPERLU
\n+
8
\n
9
\n-
10#include "superlufunctions.hh"
\n-
11#include "solvers.hh"
\n-
12#include "supermatrix.hh"
\n-
13#include <algorithm>
\n-
14#include <functional>
\n-
15#include "bcrsmatrix.hh"
\n-
16#include "bvector.hh"
\n-
17#include "istlexception.hh"
\n-
18#include <dune/common/fmatrix.hh>
\n-
19#include <dune/common/fvector.hh>
\n-
20#include <dune/common/stdstreams.hh>
\n-\n-\n+
10#define int_t SUPERLU_INT_TYPE
\n+
11#include "supermatrix.h"
\n+
12#include "slu_util.h"
\n+
13#undef int_t
\n+
14
\n+
15#if __has_include("slu_sdefs.h")
\n+
16extern "C" {
\n+
17 extern void
\n+
18 sgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
\n+
19 char *, float *, float *, SuperMatrix *, SuperMatrix *,
\n+
20 void *, int, SuperMatrix *, SuperMatrix *,
\n+
21 float *, float *, float *, float *,
\n+
22 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);
\n
23
\n-
24namespace Dune
\n-
25{
\n-
26
\n-
37 template<class M, class T, class TM, class TD, class TA>
\n-
38 class SeqOverlappingSchwarz;
\n-
39
\n-
40 template<class T, bool tag>
\n-
41 struct SeqOverlappingSchwarzAssemblerHelper;
\n-
42
\n-
43 template<class T>
\n-
\n-\n-
45 {};
\n-
\n-
46
\n-
47 template<class T>
\n-
\n-\n-
49 {};
\n-
\n-
50
\n-
51 template<class T>
\n-
\n-\n-
53 {};
\n-
\n+
24 extern void
\n+
25 sCreate_Dense_Matrix(SuperMatrix *, int, int, float *, int,
\n+
26 Stype_t, Dtype_t, Mtype_t);
\n+
27 extern void
\n+
28 sCreate_CompCol_Matrix(SuperMatrix *, int, int, int, float *,
\n+
29 int *, int *, Stype_t, Dtype_t, Mtype_t);
\n+
30 extern int sQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
\n+
31
\n+
32 extern void sPrint_CompCol_Matrix(char *, SuperMatrix *);
\n+
33}
\n+
34#endif
\n+
35
\n+
36#if __has_include("slu_ddefs.h")
\n+
37extern "C" {
\n+
38 extern void
\n+
39 dgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
\n+
40 char *, double *, double *, SuperMatrix *, SuperMatrix *,
\n+
41 void *, int, SuperMatrix *, SuperMatrix *,
\n+
42 double *, double *, double *, double *,
\n+
43 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);
\n+
44
\n+
45 extern void
\n+
46 dCreate_CompCol_Matrix(SuperMatrix *, int, int, int, double *,
\n+
47 int *, int *, Stype_t, Dtype_t, Mtype_t);
\n+
48
\n+
49 extern void
\n+
50 dCreate_Dense_Matrix(SuperMatrix *, int, int, double *, int,
\n+
51 Stype_t, Dtype_t, Mtype_t);
\n+
52
\n+
53 extern int dQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
\n
54
\n-
55 template<class T>
\n-
\n-\n-
57 {};
\n-
\n+
55 extern void dPrint_CompCol_Matrix(char *, SuperMatrix *);
\n+
56}
\n+
57#endif
\n
58
\n-
59#if __has_include("slu_sdefs.h")
\n-
60 template<>
\n-
61 struct SuperLUDenseMatChooser<float>
\n-
62 {
\n-
63 static void create(SuperMatrix *mat, int n, int m, float *dat, int n1,
\n-
64 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
\n-
65 {
\n-
66 sCreate_Dense_Matrix(mat, n, m, dat, n1, stype, dtype, mtype);
\n-
67
\n-
68 }
\n-
69
\n-
70 static void destroy(SuperMatrix*)
\n-
71 {}
\n-
72
\n-
73 };
\n-
74 template<>
\n-
75 struct SuperLUSolveChooser<float>
\n-
76 {
\n-
77 static void solve(superlu_options_t *options, SuperMatrix *mat, int *perm_c, int *perm_r, int *etree,
\n-
78 char *equed, float *R, float *C, SuperMatrix *L, SuperMatrix *U,
\n-
79 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,
\n-
80 float *rpg, float *rcond, float *ferr, float *berr,
\n-
81 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)
\n-
82 {
\n-
83 GlobalLU_t gLU;
\n-
84 sgssvx(options, mat, perm_c, perm_r, etree, equed, R, C,
\n-
85 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,
\n-
86 &gLU, memusage, stat, info);
\n-
87 }
\n-
88 };
\n-
89
\n-
90 template<>
\n-
91 struct QuerySpaceChooser<float>
\n-
92 {
\n-
93 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t* memusage)
\n-
94 {
\n-
95 sQuerySpace(L,U,memusage);
\n-
96 }
\n-
97 };
\n-
98
\n-
99#endif
\n+
59#if __has_include("slu_cdefs.h")
\n+
60#ifndef SUPERLU_TYPEDEF_COMPLEX
\n+
61// For now let's keep backwards compatible and let
\n+
62// complex be a typedef of doublecomplex
\n+
63#define SUPERLU_TYPEDEF_COMPLEX
\n+
64#endif
\n+
65#include "slu_scomplex.h"
\n+
66
\n+
67extern "C" {
\n+
68 extern void
\n+
69 cgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
\n+
70 char *, float *, float *, SuperMatrix *, SuperMatrix *,
\n+
71 void *, int, SuperMatrix *, SuperMatrix *,
\n+
72 float *, float *, float *, float *,
\n+
73 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);
\n+
74
\n+
75
\n+
76 extern void
\n+
77 cCreate_Dense_Matrix(SuperMatrix *, int, int, ::complex *, int,
\n+
78 Stype_t, Dtype_t, Mtype_t);
\n+
79
\n+
80
\n+
81 extern void
\n+
82 cCreate_CompCol_Matrix(SuperMatrix *, int, int, int, ::complex *,
\n+
83 int *, int *, Stype_t, Dtype_t, Mtype_t);
\n+
84
\n+
85 extern int cQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
\n+
86
\n+
87 extern void cPrint_CompCol_Matrix(char *, SuperMatrix *);
\n+
88}
\n+
89#endif
\n+
90
\n+
91#if __has_include("slu_zdefs.h")
\n+
92#include "slu_dcomplex.h"
\n+
93extern "C" {
\n+
94 extern void
\n+
95 zgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
\n+
96 char *, double *, double *, SuperMatrix *, SuperMatrix *,
\n+
97 void *, int, SuperMatrix *, SuperMatrix *,
\n+
98 double *, double *, double *, double *,
\n+
99 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);
\n
100
\n-
101#if __has_include("slu_ddefs.h")
\n-
102
\n-
103 template<>
\n-
104 struct SuperLUDenseMatChooser<double>
\n-
105 {
\n-
106 static void create(SuperMatrix *mat, int n, int m, double *dat, int n1,
\n-
107 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
\n-
108 {
\n-
109 dCreate_Dense_Matrix(mat, n, m, dat, n1, stype, dtype, mtype);
\n-
110
\n-
111 }
\n-
112
\n-
113 static void destroy(SuperMatrix * /* mat */)
\n-
114 {}
\n-
115 };
\n-
116 template<>
\n-
117 struct SuperLUSolveChooser<double>
\n-
118 {
\n-
119 static void solve(superlu_options_t *options, SuperMatrix *mat, int *perm_c, int *perm_r, int *etree,
\n-
120 char *equed, double *R, double *C, SuperMatrix *L, SuperMatrix *U,
\n-
121 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,
\n-
122 double *rpg, double *rcond, double *ferr, double *berr,
\n-
123 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)
\n-
124 {
\n-
125 GlobalLU_t gLU;
\n-
126 dgssvx(options, mat, perm_c, perm_r, etree, equed, R, C,
\n-
127 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,
\n-
128 &gLU, memusage, stat, info);
\n-
129 }
\n-
130 };
\n-
131
\n-
132 template<>
\n-
133 struct QuerySpaceChooser<double>
\n-
134 {
\n-
135 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t* memusage)
\n-
136 {
\n-
137 dQuerySpace(L,U,memusage);
\n-
138 }
\n-
139 };
\n-
140#endif
\n-
141
\n-
142#if __has_include("slu_zdefs.h")
\n-
143 template<>
\n-
144 struct SuperLUDenseMatChooser<std::complex<double> >
\n-
145 {
\n-
146 static void create(SuperMatrix *mat, int n, int m, std::complex<double> *dat, int n1,
\n-
147 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
\n-
148 {
\n-
149 zCreate_Dense_Matrix(mat, n, m, reinterpret_cast<doublecomplex*>(dat), n1, stype, dtype, mtype);
\n-
150
\n-
151 }
\n-
152
\n-
153 static void destroy(SuperMatrix*)
\n-
154 {}
\n-
155 };
\n-
156
\n-
157 template<>
\n-
158 struct SuperLUSolveChooser<std::complex<double> >
\n-
159 {
\n-
160 static void solve(superlu_options_t *options, SuperMatrix *mat, int *perm_c, int *perm_r, int *etree,
\n-
161 char *equed, double *R, double *C, SuperMatrix *L, SuperMatrix *U,
\n-
162 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,
\n-
163 double *rpg, double *rcond, double *ferr, double *berr,
\n-
164 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)
\n-
165 {
\n-
166 GlobalLU_t gLU;
\n-
167 zgssvx(options, mat, perm_c, perm_r, etree, equed, R, C,
\n-
168 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,
\n-
169 &gLU, memusage, stat, info);
\n-
170 }
\n-
171 };
\n-
172
\n-
173 template<>
\n-
174 struct QuerySpaceChooser<std::complex<double> >
\n-
175 {
\n-
176 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t* memusage)
\n-
177 {
\n-
178 zQuerySpace(L,U,memusage);
\n-
179 }
\n-
180 };
\n-
181#endif
\n-
182
\n-
183#if __has_include("slu_cdefs.h")
\n-
184 template<>
\n-
185 struct SuperLUDenseMatChooser<std::complex<float> >
\n-
186 {
\n-
187 static void create(SuperMatrix *mat, int n, int m, std::complex<float> *dat, int n1,
\n-
188 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
\n-
189 {
\n-
190 cCreate_Dense_Matrix(mat, n, m, reinterpret_cast< ::complex*>(dat), n1, stype, dtype, mtype);
\n-
191
\n-
192 }
\n-
193
\n-
194 static void destroy(SuperMatrix* /* mat */)
\n-
195 {}
\n-
196 };
\n-
197
\n-
198 template<>
\n-
199 struct SuperLUSolveChooser<std::complex<float> >
\n-
200 {
\n-
201 static void solve(superlu_options_t *options, SuperMatrix *mat, int *perm_c, int *perm_r, int *etree,
\n-
202 char *equed, float *R, float *C, SuperMatrix *L, SuperMatrix *U,
\n-
203 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,
\n-
204 float *rpg, float *rcond, float *ferr, float *berr,
\n-
205 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)
\n-
206 {
\n-
207 GlobalLU_t gLU;
\n-
208 cgssvx(options, mat, perm_c, perm_r, etree, equed, R, C,
\n-
209 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,
\n-
210 &gLU, memusage, stat, info);
\n-
211 }
\n-
212 };
\n-
213
\n-
214 template<>
\n-
215 struct QuerySpaceChooser<std::complex<float> >
\n-
216 {
\n-
217 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t* memusage)
\n-
218 {
\n-
219 cQuerySpace(L,U,memusage);
\n-
220 }
\n-
221 };
\n-
222#endif
\n-
223
\n-
224 namespace Impl
\n-
225 {
\n-
226 template<class M>
\n-
227 struct SuperLUVectorChooser
\n-
228 {};
\n-
229
\n-
230 template<typename T, typename A, int n, int m>
\n-
231 struct SuperLUVectorChooser<BCRSMatrix<FieldMatrix<T,n,m>,A > >
\n-
232 {
\n-
234 using domain_type = BlockVector<
\n-
235 FieldVector<T,m>,
\n-
236 typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,m> > >;
\n-
238 using range_type = BlockVector<
\n-
239 FieldVector<T,n>,
\n-
240 typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,n> > >;
\n-
241 };
\n-
242
\n-
243 template<typename T, typename A>
\n-
244 struct SuperLUVectorChooser<BCRSMatrix<T,A> >
\n-
245 {
\n-
247 using domain_type = BlockVector<T, A>;
\n-
249 using range_type = BlockVector<T, A>;
\n-
250 };
\n-
251 }
\n-
252
\n-
266 template<typename M>
\n-
\n-\n-
268 : public InverseOperator<
\n-
269 typename Impl::SuperLUVectorChooser<M>::domain_type,
\n-
270 typename Impl::SuperLUVectorChooser<M>::range_type >
\n-
271 {
\n-
272 using T = typename M::field_type;
\n-
273 public:
\n-
275 using Matrix = M;
\n-
276 using matrix_type = M;
\n-\n-\n-
282 using domain_type = typename Impl::SuperLUVectorChooser<M>::domain_type;
\n-
284 using range_type = typename Impl::SuperLUVectorChooser<M>::range_type;
\n-
285
\n-
\n-\n-
288 {
\n-\n-
290 }
\n-
\n-
291
\n-
306 explicit SuperLU(const Matrix& mat, bool verbose=false,
\n-
307 bool reusevector=true);
\n-
308
\n-
309
\n-
\n-
320 SuperLU(const Matrix& mat, const ParameterTree& config)
\n-
321 : SuperLU(mat, config.get<bool>("verbose", false), config.get<bool>("reuseVector", true))
\n-
322 {}
\n-
\n-
323
\n-
330 SuperLU();
\n-
331
\n-
332 ~SuperLU();
\n-
333
\n-\n-
338
\n-
\n-
342 void apply (domain_type& x, range_type& b, [[maybe_unused]] double reduction, InverseOperatorResult& res)
\n-
343 {
\n-
344 apply(x,b,res);
\n-
345 }
\n-
\n-
346
\n-
350 void apply(T* x, T* b);
\n-
351
\n-
353 void setMatrix(const Matrix& mat);
\n-
354
\n-
\n-
355 typename SuperLUMatrix::size_type nnz() const
\n-
356 {
\n-
357 return mat.nonzeroes();
\n-
358 }
\n-
\n-
359
\n-
360 template<class S>
\n-
361 void setSubMatrix(const Matrix& mat, const S& rowIndexSet);
\n-
362
\n-
363 void setVerbosity(bool v);
\n-
364
\n-
369 void free();
\n-
370
\n-
371 const char* name() { return "SuperLU"; }
\n-
372 private:
\n-
373 template<class Mat,class X, class TM, class TD, class T1>
\n-\n-\n-
376
\n-
377 SuperLUMatrix& getInternalMatrix() { return mat; }
\n-
378
\n-
380 void decompose();
\n-
381
\n-\n-
383 SuperMatrix L, U, B, X;
\n-
384 int *perm_c, *perm_r, *etree;
\n-
385 typename GetSuperLUType<T>::float_type *R, *C;
\n-
386 T *bstore;
\n-
387 superlu_options_t options;
\n-
388 char equed;
\n-
389 void *work;
\n-
390 int lwork;
\n-
391 bool first, verbose, reusevector;
\n-
392 };
\n-
\n-
393
\n-
394 template<typename M>
\n-
395 SuperLU<M>
\n-
\n-
396 ::~SuperLU()
\n-
397 {
\n-
398 if(mat.N()+mat.M()>0)
\n-
399 free();
\n-
400 }
\n-
\n-
401
\n-
402 template<typename M>
\n-
\n-\n-
404 {
\n-
405 delete[] perm_c;
\n-
406 delete[] perm_r;
\n-
407 delete[] etree;
\n-
408 delete[] R;
\n-
409 delete[] C;
\n-
410 if(lwork>=0) {
\n-
411 Destroy_SuperNode_Matrix(&L);
\n-
412 Destroy_CompCol_Matrix(&U);
\n-
413 }
\n-
414 lwork=0;
\n-
415 if(!first && reusevector) {
\n-
416 SUPERLU_FREE(B.Store);
\n-
417 SUPERLU_FREE(X.Store);
\n-
418 }
\n-
419 mat.free();
\n-
420 }
\n-
\n-
421
\n-
422 template<typename M>
\n-\n-
\n-
424 ::SuperLU(const Matrix& mat_, bool verbose_, bool reusevector_)
\n-
425 : work(0), lwork(0), first(true), verbose(verbose_),
\n-
426 reusevector(reusevector_)
\n-
427 {
\n-
428 setMatrix(mat_);
\n-
429
\n-
430 }
\n-
\n-
431 template<typename M>
\n-
\n-\n-
433 : work(0), lwork(0),verbose(false),
\n-
434 reusevector(false)
\n-
435 {}
\n-
\n-
436 template<typename M>
\n-
\n-\n-
438 {
\n-
439 verbose=v;
\n-
440 }
\n-
\n-
441
\n-
442 template<typename M>
\n-
\n-\n-
444 {
\n-
445 if(mat.N()+mat.M()>0) {
\n-
446 free();
\n-
447 }
\n-
448 lwork=0;
\n-
449 work=0;
\n-
450 //a=&mat_;
\n-
451 mat=mat_;
\n-
452 decompose();
\n-
453 }
\n-
\n-
454
\n-
455 template<typename M>
\n-
456 template<class S>
\n-
\n-\n-
458 const S& mrs)
\n-
459 {
\n-
460 if(mat.N()+mat.M()>0) {
\n-
461 free();
\n-
462 }
\n-
463 lwork=0;
\n-
464 work=0;
\n-
465 //a=&mat_;
\n-
466 mat.setMatrix(mat_,mrs);
\n-
467 decompose();
\n-
468 }
\n-
\n-
469
\n-
470 template<typename M>
\n-\n-
472 {
\n-
473
\n-
474 first = true;
\n-
475 perm_c = new int[mat.M()];
\n-
476 perm_r = new int[mat.N()];
\n-
477 etree = new int[mat.M()];
\n-
478 R = new typename GetSuperLUType<T>::float_type[mat.N()];
\n-
479 C = new typename GetSuperLUType<T>::float_type[mat.M()];
\n-
480
\n-
481 set_default_options(&options);
\n-
482 // Do the factorization
\n-
483 B.ncol=0;
\n-
484 B.Stype=SLU_DN;
\n-\n-
486 B.Mtype= SLU_GE;
\n-
487 DNformat fakeFormat;
\n-
488 fakeFormat.lda=mat.N();
\n-
489 B.Store=&fakeFormat;
\n-
490 X.Stype=SLU_DN;
\n-\n-
492 X.Mtype= SLU_GE;
\n-
493 X.ncol=0;
\n-
494 X.Store=&fakeFormat;
\n-
495
\n-
496 typename GetSuperLUType<T>::float_type rpg, rcond, ferr=1e10, berr=1e10;
\n-
497 int info;
\n-
498 mem_usage_t memusage;
\n-
499 SuperLUStat_t stat;
\n-
500
\n-
501 StatInit(&stat);
\n-
502 SuperLUSolveChooser<T>::solve(&options, &static_cast<SuperMatrix&>(mat), perm_c, perm_r, etree, &equed, R, C,
\n-
503 &L, &U, work, lwork, &B, &X, &rpg, &rcond, &ferr,
\n-
504 &berr, &memusage, &stat, &info);
\n-
505
\n-
506 if(verbose) {
\n-
507 dinfo<<"LU factorization: dgssvx() returns info "<< info<<std::endl;
\n-
508
\n-
509 auto nSuperLUCol = static_cast<SuperMatrix&>(mat).ncol;
\n-
510
\n-
511 if ( info == 0 || info == nSuperLUCol+1 ) {
\n-
512
\n-
513 if ( options.PivotGrowth )
\n-
514 dinfo<<"Recip. pivot growth = "<<rpg<<std::endl;
\n-
515 if ( options.ConditionNumber )
\n-
516 dinfo<<"Recip. condition number = %e\\n"<< rcond<<std::endl;
\n-
517 SCformat* Lstore = (SCformat *) L.Store;
\n-
518 NCformat* Ustore = (NCformat *) U.Store;
\n-
519 dinfo<<"No of nonzeros in factor L = "<< Lstore->nnz<<std::endl;
\n-
520 dinfo<<"No of nonzeros in factor U = "<< Ustore->nnz<<std::endl;
\n-
521 dinfo<<"No of nonzeros in L+U = "<< Lstore->nnz + Ustore->nnz - nSuperLUCol<<std::endl;
\n-
522 QuerySpaceChooser<T>::querySpace(&L, &U, &memusage);
\n-
523 dinfo<<"L\\\\U MB "<<memusage.for_lu/1e6<<" \\ttotal MB needed "<<memusage.total_needed/1e6
\n-
524 <<" \\texpansions ";
\n-
525 std::cout<<stat.expansions<<std::endl;
\n-
526
\n-
527 } else if ( info > 0 && lwork == -1 ) { // Memory allocation failed
\n-
528 dinfo<<"** Estimated memory: "<< info - nSuperLUCol<<std::endl;
\n-
529 }
\n-
530 if ( options.PrintStat ) StatPrint(&stat);
\n-
531 }
\n-
532 StatFree(&stat);
\n-
533 /*
\n-
534 NCformat* Ustore = (NCformat *) U.Store;
\n-
535 int k=0;
\n-
536 dPrint_CompCol_Matrix("U", &U);
\n-
537 for(int i=0; i < U.ncol; ++i, ++k){
\n-
538 std::cout<<i<<": ";
\n-
539 for(int c=Ustore->colptr[i]; c < Ustore->colptr[i+1]; ++c)
\n-
540 //if(Ustore->rowind[c]==i)
\n-
541 std::cout<<Ustore->rowind[c]<<"->"<<((double*)Ustore->nzval)[c]<<" ";
\n-
542 if(k==0){
\n-
543 //
\n-
544 k=-1;
\n-
545 }std::cout<<std::endl;
\n-
546 }
\n-
547 dPrint_SuperNode_Matrix("L", &L);
\n-
548 for(int i=0; i < U.ncol; ++i, ++k){
\n-
549 std::cout<<i<<": ";
\n-
550 for(int c=Ustore->colptr[i]; c < Ustore->colptr[i+1]; ++c)
\n-
551 //if(Ustore->rowind[c]==i)
\n-
552 std::cout<<Ustore->rowind[c]<<"->"<<((double*)Ustore->nzval)[c]<<" ";
\n-
553 if(k==0){
\n-
554 //
\n-
555 k=-1;
\n-
556 }std::cout<<std::endl;
\n-
557 } */
\n-
558 options.Fact = FACTORED;
\n-
559 }
\n-
560
\n-
561 template<typename M>
\n-
562 void SuperLU<M>
\n-
\n-\n-
564 {
\n-
565 if (mat.N() != b.dim())
\n-
566 DUNE_THROW(ISTLError, "Size of right-hand-side vector b does not match the number of matrix rows!");
\n-
567 if (mat.M() != x.dim())
\n-
568 DUNE_THROW(ISTLError, "Size of solution vector x does not match the number of matrix columns!");
\n-
569 if (mat.M()+mat.N()==0)
\n-
570 DUNE_THROW(ISTLError, "Matrix of SuperLU is null!");
\n-
571
\n-
572 SuperMatrix* mB = &B;
\n-
573 SuperMatrix* mX = &X;
\n-
574 SuperMatrix rB, rX;
\n-
575 if (reusevector) {
\n-
576 if(first) {
\n-
577 SuperLUDenseMatChooser<T>::create(&B, (int)mat.N(), 1, reinterpret_cast<T*>(&b[0]), (int)mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
\n-
578 SuperLUDenseMatChooser<T>::create(&X, (int)mat.N(), 1, reinterpret_cast<T*>(&x[0]), (int)mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
\n-
579 first=false;
\n-
580 }else{
\n-
581 ((DNformat*)B.Store)->nzval=&b[0];
\n-
582 ((DNformat*)X.Store)->nzval=&x[0];
\n-
583 }
\n-
584 } else {
\n-
585 SuperLUDenseMatChooser<T>::create(&rB, (int)mat.N(), 1, reinterpret_cast<T*>(&b[0]), (int)mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
\n-
586 SuperLUDenseMatChooser<T>::create(&rX, (int)mat.N(), 1, reinterpret_cast<T*>(&x[0]), (int)mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
\n-
587 mB = &rB;
\n-
588 mX = &rX;
\n-
589 }
\n-
590 typename GetSuperLUType<T>::float_type rpg, rcond, ferr=1e10, berr;
\n-
591 int info;
\n-
592 mem_usage_t memusage;
\n-
593 SuperLUStat_t stat;
\n-
594 /* Initialize the statistics variables. */
\n-
595 StatInit(&stat);
\n-
596 /*
\n-
597 range_type d=b;
\n-
598 a->usmv(-1, x, d);
\n-
599
\n-
600 double def0=d.two_norm();
\n-
601 */
\n-
602 options.IterRefine=SLU_DOUBLE;
\n-
603
\n-
604 SuperLUSolveChooser<T>::solve(&options, &static_cast<SuperMatrix&>(mat), perm_c, perm_r, etree, &equed, R, C,
\n-
605 &L, &U, work, lwork, mB, mX, &rpg, &rcond, &ferr, &berr,
\n-
606 &memusage, &stat, &info);
\n-
607
\n-
608 res.iterations=1;
\n-
609
\n-
610 /*
\n-
611 if(options.Equil==YES)
\n-
612 // undo scaling of right hand side
\n-
613 std::transform(reinterpret_cast<T*>(&b[0]),reinterpret_cast<T*>(&b[0])+mat.M(),
\n-
614 C, reinterpret_cast<T*>(&d[0]), std::divides<T>());
\n-
615 else
\n-
616 d=b;
\n-
617 a->usmv(-1, x, d);
\n-
618 res.reduction=d.two_norm()/def0;
\n-
619 res.conv_rate = res.reduction;
\n-
620 res.converged=(res.reduction<1e-10||d.two_norm()<1e-18);
\n-
621 */
\n-
622 res.converged=true;
\n-
623
\n-
624 if(verbose) {
\n-
625
\n-
626 dinfo<<"Triangular solve: dgssvx() returns info "<< info<<std::endl;
\n-
627
\n-
628 auto nSuperLUCol = static_cast<SuperMatrix&>(mat).ncol;
\n-
629
\n-
630 if ( info == 0 || info == nSuperLUCol+1 ) {
\n-
631
\n-
632 if ( options.IterRefine ) {
\n-
633 std::cout<<"Iterative Refinement: steps="
\n-
634 <<stat.RefineSteps<<" FERR="<<ferr<<" BERR="<<berr<<std::endl;
\n-
635 }else
\n-
636 std::cout<<" FERR="<<ferr<<" BERR="<<berr<<std::endl;
\n-
637 } else if ( info > 0 && lwork == -1 ) { // Memory allocation failed
\n-
638 std::cout<<"** Estimated memory: "<< info - nSuperLUCol<<" bytes"<<std::endl;
\n-
639 }
\n-
640
\n-
641 if ( options.PrintStat ) StatPrint(&stat);
\n-
642 }
\n-
643 StatFree(&stat);
\n-
644 if (!reusevector) {
\n-
645 SUPERLU_FREE(rB.Store);
\n-
646 SUPERLU_FREE(rX.Store);
\n-
647 }
\n-
648 }
\n-
\n-
649
\n-
650 template<typename M>
\n-
651 void SuperLU<M>
\n-
\n-
652 ::apply(T* x, T* b)
\n-
653 {
\n-
654 if(mat.N()+mat.M()==0)
\n-
655 DUNE_THROW(ISTLError, "Matrix of SuperLU is null!");
\n-
656
\n-
657 SuperMatrix* mB = &B;
\n-
658 SuperMatrix* mX = &X;
\n-
659 SuperMatrix rB, rX;
\n-
660 if (reusevector) {
\n-
661 if(first) {
\n-
662 SuperLUDenseMatChooser<T>::create(&B, mat.N(), 1, b, mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
\n-
663 SuperLUDenseMatChooser<T>::create(&X, mat.N(), 1, x, mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
\n-
664 first=false;
\n-
665 }else{
\n-
666 ((DNformat*) B.Store)->nzval=b;
\n-
667 ((DNformat*)X.Store)->nzval=x;
\n-
668 }
\n-
669 } else {
\n-
670 SuperLUDenseMatChooser<T>::create(&rB, mat.N(), 1, b, mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
\n-
671 SuperLUDenseMatChooser<T>::create(&rX, mat.N(), 1, x, mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
\n-
672 mB = &rB;
\n-
673 mX = &rX;
\n-
674 }
\n-
675
\n-
676 typename GetSuperLUType<T>::float_type rpg, rcond, ferr=1e10, berr;
\n-
677 int info;
\n-
678 mem_usage_t memusage;
\n-
679 SuperLUStat_t stat;
\n-
680 /* Initialize the statistics variables. */
\n-
681 StatInit(&stat);
\n-
682
\n-
683 options.IterRefine=SLU_DOUBLE;
\n-
684
\n-
685 SuperLUSolveChooser<T>::solve(&options, &static_cast<SuperMatrix&>(mat), perm_c, perm_r, etree, &equed, R, C,
\n-
686 &L, &U, work, lwork, mB, mX, &rpg, &rcond, &ferr, &berr,
\n-
687 &memusage, &stat, &info);
\n-
688
\n-
689 if(verbose) {
\n-
690 dinfo<<"Triangular solve: dgssvx() returns info "<< info<<std::endl;
\n-
691
\n-
692 auto nSuperLUCol = static_cast<SuperMatrix&>(mat).ncol;
\n-
693
\n-
694 if ( info == 0 || info == nSuperLUCol+1 ) { // Factorization has succeeded
\n-
695
\n-
696 if ( options.IterRefine ) {
\n-
697 dinfo<<"Iterative Refinement: steps="
\n-
698 <<stat.RefineSteps<<" FERR="<<ferr<<" BERR="<<berr<<std::endl;
\n-
699 }else
\n-
700 dinfo<<" FERR="<<ferr<<" BERR="<<berr<<std::endl;
\n-
701 } else if ( info > 0 && lwork == -1 ) { // Memory allocation failed
\n-
702 dinfo<<"** Estimated memory: "<< info - nSuperLUCol<<" bytes"<<std::endl;
\n-
703 }
\n-
704 if ( options.PrintStat ) StatPrint(&stat);
\n-
705 }
\n-
706
\n-
707 StatFree(&stat);
\n-
708 if (!reusevector) {
\n-
709 SUPERLU_FREE(rB.Store);
\n-
710 SUPERLU_FREE(rX.Store);
\n-
711 }
\n-
712 }
\n-
\n-
715 template<typename T, typename A>
\n-
\n-\n-
717 {
\n-
718 enum { value=true};
\n-
719 };
\n-
\n-
720
\n-
721 template<typename T, typename A>
\n-
\n-\n-
723 {
\n-
724 enum { value = true };
\n-
725 };
\n-
\n-
726
\n-
\n-\n-
728 template<class> struct isValidBlock : std::false_type{};
\n-
729 template<int k> struct isValidBlock<Dune::FieldVector<double,k>> : std::true_type{};
\n-
730 template<int k> struct isValidBlock<Dune::FieldVector<std::complex<double>,k>> : std::true_type{};
\n-
731 template<typename TL, typename M>
\n-
732 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
\n-
733 typename Dune::TypeListElement<2, TL>::type>>
\n-
\n-
734 operator() (TL /*tl*/, const M& mat, const Dune::ParameterTree& config,
\n-
735 std::enable_if_t<isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
\n-
736 {
\n-
737 int verbose = config.get("verbose", 0);
\n-
738 return std::make_shared<Dune::SuperLU<M>>(mat,verbose);
\n-
739 }
\n-
\n-
740
\n-
741 // second version with SFINAE to validate the template parameters of SuperLU
\n-
742 template<typename TL, typename M>
\n-
743 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
\n-
744 typename Dune::TypeListElement<2, TL>::type>>
\n-
\n-
745 operator() (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /*config*/,
\n-
746 std::enable_if_t<!isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
\n-
747 {
\n-
748 DUNE_THROW(UnsupportedType,
\n-
749 "Unsupported Type in SuperLU (only double and std::complex<double> supported)");
\n-
750 }
\n-
\n-
751 };
\n-
\n-
752 template<> struct SuperLUCreator::isValidBlock<double> : std::true_type{};
\n-
753 template<> struct SuperLUCreator::isValidBlock<std::complex<double>> : std::true_type{};
\n-
754
\n-\n-
756} // end namespace DUNE
\n-
757
\n-
758// undefine macros from SuperLU's slu_util.h
\n-
759#undef FIRSTCOL_OF_SNODE
\n-
760#undef NO_MARKER
\n-
761#undef NUM_TEMPV
\n-
762#undef USER_ABORT
\n-
763#undef USER_MALLOC
\n-
764#undef SUPERLU_MALLOC
\n-
765#undef USER_FREE
\n-
766#undef SUPERLU_FREE
\n-
767#undef CHECK_MALLOC
\n-
768#undef SUPERLU_MAX
\n-
769#undef SUPERLU_MIN
\n-
770#undef L_SUB_START
\n-
771#undef L_SUB
\n-
772#undef L_NZ_START
\n-
773#undef L_FST_SUPC
\n-
774#undef U_NZ_START
\n-
775#undef U_SUB
\n-
776#undef TRUE
\n-
777#undef FALSE
\n-
778#undef EMPTY
\n-
779#undef NODROP
\n-
780#undef DROP_BASIC
\n-
781#undef DROP_PROWS
\n-
782#undef DROP_COLUMN
\n-
783#undef DROP_AREA
\n-
784#undef DROP_SECONDARY
\n-
785#undef DROP_DYNAMIC
\n-
786#undef DROP_INTERP
\n-
787#undef MILU_ALPHA
\n-
788
\n-
789#endif // HAVE_SUPERLU
\n-
790#endif // DUNE_SUPERLU_HH
\n-\n-
#define DUNE_REGISTER_DIRECT_SOLVER(name,...)
Definition solverregistry.hh:13
\n-\n-
Implementation of the BCRSMatrix class.
\n-
Implementations of the inverse operator interface.
\n-\n-\n-
This file implements a vector space as a tensor product of a given vector space. The number of compon...
\n-
Templates characterizing the type of a solver.
\n-
void setSubMatrix(const Matrix &mat, const S &rowIndexSet)
Definition superlu.hh:457
\n-
void apply(domain_type &x, range_type &b, InverseOperatorResult &res)
Apply inverse operator,.
Definition superlu.hh:563
\n-
void setVerbosity(bool v)
Definition superlu.hh:437
\n-
void free()
free allocated space.
Definition superlu.hh:403
\n-
~SuperLU()
Definition superlu.hh:396
\n-
SuperLU()
Empty default constructor.
Definition superlu.hh:432
\n-
void setMatrix(const Matrix &mat)
Initialize data from given matrix.
Definition superlu.hh:443
\n-
Matrix & mat
Definition matrixmatrix.hh:347
\n-
STL namespace.
\n-
Definition allocator.hh:11
\n-
PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
Definition dependency.hh:293
\n-
A sparse block matrix with compressed row storage.
Definition bcrsmatrix.hh:466
\n-
derive error class from the base class in common
Definition istlexception.hh:19
\n-
Sequential overlapping Schwarz preconditioner.
Definition overlappingschwarz.hh:755
\n-
Definition overlappingschwarz.hh:694
\n-
A generic dynamic dense matrix.
Definition matrix.hh:561
\n-
size_type M() const
Return the number of columns.
Definition matrix.hh:700
\n-
size_type N() const
Return the number of rows.
Definition matrix.hh:695
\n-
Statistics about the application of an inverse operator.
Definition solver.hh:48
\n-
int iterations
Number of iterations.
Definition solver.hh:67
\n-
bool converged
True if convergence criterion has been met.
Definition solver.hh:73
\n-
Abstract base class for all solvers.
Definition solver.hh:99
\n-
Category
Definition solvercategory.hh:23
\n-
@ sequential
Category for sequential solvers.
Definition solvercategory.hh:25
\n-
Definition solverregistry.hh:77
\n-
Definition solvertype.hh:16
\n-
@ value
Whether this is a direct solver.
Definition solvertype.hh:24
\n-
Definition solvertype.hh:30
\n-
@ value
whether the solver internally uses column compressed storage
Definition solvertype.hh:36
\n-
Definition superlu.hh:45
\n-
Definition superlu.hh:49
\n-
Definition superlu.hh:53
\n-
Definition superlu.hh:57
\n-
SuperLu Solver.
Definition superlu.hh:271
\n-
SuperLUMatrix::size_type nnz() const
Definition superlu.hh:355
\n-
void apply(domain_type &x, range_type &b, double reduction, InverseOperatorResult &res)
apply inverse operator, with given convergence criteria.
Definition superlu.hh:342
\n-
typename Impl::SuperLUVectorChooser< M >::range_type range_type
The type of the range of the solver.
Definition superlu.hh:284
\n-
M matrix_type
Definition superlu.hh:276
\n-
SuperMatrixInitializer< Matrix > MatrixInitializer
Type of an associated initializer class.
Definition superlu.hh:280
\n-
M Matrix
The matrix type.
Definition superlu.hh:275
\n-
typename Impl::SuperLUVectorChooser< M >::domain_type domain_type
The type of the domain of the solver.
Definition superlu.hh:282
\n-
const char * name()
Definition superlu.hh:371
\n-
virtual SolverCategory::Category category() const
Category of the solver (see SolverCategory::Category)
Definition superlu.hh:287
\n-
Dune::SuperLUMatrix< Matrix > SuperLUMatrix
The corresponding SuperLU Matrix type.
Definition superlu.hh:278
\n-
SuperLU(const Matrix &mat, const ParameterTree &config)
Constructs the SuperLU solver.
Definition superlu.hh:320
\n-
Definition superlu.hh:727
\n-
std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL, const M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock< typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0) const
Definition superlu.hh:734
\n-
Definition superlu.hh:728
\n-
Definition supermatrix.hh:132
\n-
Utility class for converting an ISTL Matrix into a SuperLU Matrix.
Definition supermatrix.hh:175
\n-
Definition supermatrix.hh:179
\n+
101
\n+
102 extern void
\n+
103 zCreate_CompCol_Matrix(SuperMatrix *, int, int, int, doublecomplex *,
\n+
104 int *, int *, Stype_t, Dtype_t, Mtype_t);
\n+
105
\n+
106 extern void
\n+
107 zCreate_Dense_Matrix(SuperMatrix *, int, int, doublecomplex *, int,
\n+
108 Stype_t, Dtype_t, Mtype_t);
\n+
109
\n+
110 extern int zQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
\n+
111
\n+
112 extern void zPrint_CompCol_Matrix(char *, SuperMatrix *);
\n+
113}
\n+
114#endif
\n+
115
\n+
116
\n+
117#endif
\n+
118#endif
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,947 +1,129 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-superlu.hh\n+superlufunctions.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_SUPERLU_HH\n-6#define DUNE_ISTL_SUPERLU_HH\n-7\n-8#if HAVE_SUPERLU\n+5#ifndef DUNE_ISTL_SUPERLUFUNCTIONS_HH\n+6#define DUNE_ISTL_SUPERLUFUNCTIONS_HH\n+7#if HAVE_SUPERLU\n+8\n 9\n-10#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\"\n-11#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n-12#include \"_\bs_\bu_\bp_\be_\br_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-13#include \n-14#include \n-15#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-16#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-17#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-18#include \n-19#include \n-20#include \n-21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-22#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n+_\b1_\b0#define int_t SUPERLU_INT_TYPE\n+11#include \"supermatrix.h\"\n+12#include \"slu_util.h\"\n+13#undef int_t\n+14\n+15#if __has_include(\"slu_sdefs.h\")\n+16extern \"C\" {\n+17 extern void\n+18 sgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,\n+19 char *, float *, float *, SuperMatrix *, SuperMatrix *,\n+20 void *, int, SuperMatrix *, SuperMatrix *,\n+21 float *, float *, float *, float *,\n+22 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);\n 23\n-24namespace _\bD_\bu_\bn_\be\n-25{\n-26\n-37 template\n-38 class SeqOverlappingSchwarz;\n-39\n-40 template\n-41 struct SeqOverlappingSchwarzAssemblerHelper;\n-42\n-43 template\n-_\b4_\b4 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n-45 {};\n-46\n-47 template\n-_\b4_\b8 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br\n-49 {};\n-50\n-51 template\n-_\b5_\b2 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bQ_\bu_\be_\br_\by_\bC_\bh_\bo_\bo_\bs_\be_\br\n-53 {};\n+24 extern void\n+25 sCreate_Dense_Matrix(SuperMatrix *, int, int, float *, int,\n+26 Stype_t, Dtype_t, Mtype_t);\n+27 extern void\n+28 sCreate_CompCol_Matrix(SuperMatrix *, int, int, int, float *,\n+29 int *, int *, Stype_t, Dtype_t, Mtype_t);\n+30 extern int sQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);\n+31\n+32 extern void sPrint_CompCol_Matrix(char *, SuperMatrix *);\n+33}\n+34#endif\n+35\n+36#if __has_include(\"slu_ddefs.h\")\n+37extern \"C\" {\n+38 extern void\n+39 dgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,\n+40 char *, double *, double *, SuperMatrix *, SuperMatrix *,\n+41 void *, int, SuperMatrix *, SuperMatrix *,\n+42 double *, double *, double *, double *,\n+43 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);\n+44\n+45 extern void\n+46 dCreate_CompCol_Matrix(SuperMatrix *, int, int, int, double *,\n+47 int *, int *, Stype_t, Dtype_t, Mtype_t);\n+48\n+49 extern void\n+50 dCreate_Dense_Matrix(SuperMatrix *, int, int, double *, int,\n+51 Stype_t, Dtype_t, Mtype_t);\n+52\n+53 extern int dQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);\n 54\n-55 template\n-_\b5_\b6 struct _\bQ_\bu_\be_\br_\by_\bS_\bp_\ba_\bc_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n-57 {};\n+55 extern void dPrint_CompCol_Matrix(char *, SuperMatrix *);\n+56}\n+57#endif\n 58\n-59#if __has_include(\"slu_sdefs.h\")\n-60 template<>\n-61 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br\n-62 {\n-63 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, float *dat, int n1,\n-64 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n-65 {\n-66 sCreate_Dense_Matrix(_\bm_\ba_\bt, n, m, dat, n1, stype, dtype, mtype);\n-67\n-68 }\n-69\n-70 static void destroy(SuperMatrix*)\n-71 {}\n-72\n-73 };\n-74 template<>\n-75 struct SuperLUSolveChooser\n-76 {\n-77 static void solve(superlu_options_t *options, SuperMatrix *_\bm_\ba_\bt, int *perm_c,\n-int *perm_r, int *etree,\n-78 char *equed, float *R, float *C, SuperMatrix *L, SuperMatrix *U,\n-79 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,\n-80 float *rpg, float *rcond, float *ferr, float *berr,\n-81 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)\n-82 {\n-83 GlobalLU_t gLU;\n-84 sgssvx(options, _\bm_\ba_\bt, perm_c, perm_r, etree, equed, R, C,\n-85 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,\n-86 &gLU, memusage, stat, info);\n-87 }\n-88 };\n-89\n-90 template<>\n-91 struct QuerySpaceChooser\n-92 {\n-93 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t*\n-memusage)\n-94 {\n-95 sQuerySpace(L,U,memusage);\n-96 }\n-97 };\n-98\n-99#endif\n+59#if __has_include(\"slu_cdefs.h\")\n+60#ifndef SUPERLU_TYPEDEF_COMPLEX\n+61// For now let's keep backwards compatible and let\n+62// complex be a typedef of doublecomplex\n+63#define SUPERLU_TYPEDEF_COMPLEX\n+64#endif\n+65#include \"slu_scomplex.h\"\n+66\n+67extern \"C\" {\n+68 extern void\n+69 cgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,\n+70 char *, float *, float *, SuperMatrix *, SuperMatrix *,\n+71 void *, int, SuperMatrix *, SuperMatrix *,\n+72 float *, float *, float *, float *,\n+73 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);\n+74\n+75\n+76 extern void\n+77 cCreate_Dense_Matrix(SuperMatrix *, int, int, ::complex *, int,\n+78 Stype_t, Dtype_t, Mtype_t);\n+79\n+80\n+81 extern void\n+82 cCreate_CompCol_Matrix(SuperMatrix *, int, int, int, ::complex *,\n+83 int *, int *, Stype_t, Dtype_t, Mtype_t);\n+84\n+85 extern int cQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);\n+86\n+87 extern void cPrint_CompCol_Matrix(char *, SuperMatrix *);\n+88}\n+89#endif\n+90\n+91#if __has_include(\"slu_zdefs.h\")\n+92#include \"slu_dcomplex.h\"\n+93extern \"C\" {\n+94 extern void\n+95 zgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,\n+96 char *, double *, double *, SuperMatrix *, SuperMatrix *,\n+97 void *, int, SuperMatrix *, SuperMatrix *,\n+98 double *, double *, double *, double *,\n+99 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);\n 100\n-101#if __has_include(\"slu_ddefs.h\")\n-102\n-103 template<>\n-104 struct SuperLUDenseMatChooser\n-105 {\n-106 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, double *dat, int n1,\n-107 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n-108 {\n-109 dCreate_Dense_Matrix(_\bm_\ba_\bt, n, m, dat, n1, stype, dtype, mtype);\n-110\n-111 }\n-112\n-113 static void destroy(SuperMatrix * /* mat */)\n-114 {}\n-115 };\n-116 template<>\n-117 struct SuperLUSolveChooser\n-118 {\n-119 static void solve(superlu_options_t *options, SuperMatrix *_\bm_\ba_\bt, int\n-*perm_c, int *perm_r, int *etree,\n-120 char *equed, double *R, double *C, SuperMatrix *L, SuperMatrix *U,\n-121 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,\n-122 double *rpg, double *rcond, double *ferr, double *berr,\n-123 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)\n-124 {\n-125 GlobalLU_t gLU;\n-126 dgssvx(options, _\bm_\ba_\bt, perm_c, perm_r, etree, equed, R, C,\n-127 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,\n-128 &gLU, memusage, stat, info);\n-129 }\n-130 };\n-131\n-132 template<>\n-133 struct QuerySpaceChooser\n-134 {\n-135 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t*\n-memusage)\n-136 {\n-137 dQuerySpace(L,U,memusage);\n-138 }\n-139 };\n-140#endif\n-141\n-142#if __has_include(\"slu_zdefs.h\")\n-143 template<>\n-144 struct SuperLUDenseMatChooser<_\bs_\bt_\bd::complex >\n-145 {\n-146 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, std::complex\n-*dat, int n1,\n-147 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n-148 {\n-149 zCreate_Dense_Matrix(_\bm_\ba_\bt, n, m, reinterpret_cast(dat), n1,\n-stype, dtype, mtype);\n-150\n-151 }\n-152\n-153 static void destroy(SuperMatrix*)\n-154 {}\n-155 };\n-156\n-157 template<>\n-158 struct SuperLUSolveChooser<_\bs_\bt_\bd::complex >\n-159 {\n-160 static void solve(superlu_options_t *options, SuperMatrix *_\bm_\ba_\bt, int\n-*perm_c, int *perm_r, int *etree,\n-161 char *equed, double *R, double *C, SuperMatrix *L, SuperMatrix *U,\n-162 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,\n-163 double *rpg, double *rcond, double *ferr, double *berr,\n-164 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)\n-165 {\n-166 GlobalLU_t gLU;\n-167 zgssvx(options, _\bm_\ba_\bt, perm_c, perm_r, etree, equed, R, C,\n-168 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,\n-169 &gLU, memusage, stat, info);\n-170 }\n-171 };\n-172\n-173 template<>\n-174 struct QuerySpaceChooser<_\bs_\bt_\bd::complex >\n-175 {\n-176 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t*\n-memusage)\n-177 {\n-178 zQuerySpace(L,U,memusage);\n-179 }\n-180 };\n-181#endif\n-182\n-183#if __has_include(\"slu_cdefs.h\")\n-184 template<>\n-185 struct SuperLUDenseMatChooser<_\bs_\bt_\bd::complex >\n-186 {\n-187 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, std::complex\n-*dat, int n1,\n-188 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n-189 {\n-190 cCreate_Dense_Matrix(_\bm_\ba_\bt, n, m, reinterpret_cast< ::complex*>(dat), n1,\n-stype, dtype, mtype);\n-191\n-192 }\n-193\n-194 static void destroy(SuperMatrix* /* mat */)\n-195 {}\n-196 };\n-197\n-198 template<>\n-199 struct SuperLUSolveChooser<_\bs_\bt_\bd::complex >\n-200 {\n-201 static void solve(superlu_options_t *options, SuperMatrix *_\bm_\ba_\bt, int\n-*perm_c, int *perm_r, int *etree,\n-202 char *equed, float *R, float *C, SuperMatrix *L, SuperMatrix *U,\n-203 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,\n-204 float *rpg, float *rcond, float *ferr, float *berr,\n-205 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)\n-206 {\n-207 GlobalLU_t gLU;\n-208 cgssvx(options, _\bm_\ba_\bt, perm_c, perm_r, etree, equed, R, C,\n-209 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,\n-210 &gLU, memusage, stat, info);\n-211 }\n-212 };\n-213\n-214 template<>\n-215 struct QuerySpaceChooser<_\bs_\bt_\bd::complex >\n-216 {\n-217 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t*\n-memusage)\n-218 {\n-219 cQuerySpace(L,U,memusage);\n-220 }\n-221 };\n-222#endif\n-223\n-224 namespace Impl\n-225 {\n-226 template\n-227 struct SuperLUVectorChooser\n-228 {};\n-229\n-230 template\n-231 struct SuperLUVectorChooser,A > >\n-232 {\n-234 using domain_type = BlockVector<\n-235 FieldVector,\n-236 typename std::allocator_traits::template rebind_alloc >\n->;\n-238 using range_type = BlockVector<\n-239 FieldVector,\n-240 typename std::allocator_traits::template rebind_alloc >\n->;\n-241 };\n-242\n-243 template\n-244 struct SuperLUVectorChooser >\n-245 {\n-247 using domain_type = BlockVector;\n-249 using range_type = BlockVector;\n-250 };\n-251 }\n-252\n-266 template\n-_\b2_\b6_\b7 class _\bS_\bu_\bp_\be_\br_\bL_\bU\n-268 : public _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br<\n-269 typename Impl::SuperLUVectorChooser::domain_type,\n-270 typename Impl::SuperLUVectorChooser::range_type >\n-271 {\n-272 using T = typename M::field_type;\n-273 public:\n-_\b2_\b7_\b5 using _\bM_\ba_\bt_\br_\bi_\bx = M;\n-_\b2_\b7_\b6 using _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be = M;\n-_\b2_\b7_\b8 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx;\n-_\b2_\b8_\b0 typedef _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n-_\b2_\b8_\b2 using _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be = typename Impl::SuperLUVectorChooser::domain_type;\n-_\b2_\b8_\b4 using _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be = typename Impl::SuperLUVectorChooser::range_type;\n-285\n-_\b2_\b8_\b7 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-288 {\n-289 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-290 }\n-291\n-306 explicit _\bS_\bu_\bp_\be_\br_\bL_\bU(const _\bM_\ba_\bt_\br_\bi_\bx& mat, bool verbose=false,\n-307 bool reusevector=true);\n-308\n-309\n-_\b3_\b2_\b0 _\bS_\bu_\bp_\be_\br_\bL_\bU(const _\bM_\ba_\bt_\br_\bi_\bx& mat, const ParameterTree& config)\n-321 : _\bS_\bu_\bp_\be_\br_\bL_\bU(_\bm_\ba_\bt, config._\bg_\be_\bt(\"verbose\", false), config._\bg_\be_\bt\n-(\"reuseVector\", true))\n-322 {}\n-323\n-330 _\bS_\bu_\bp_\be_\br_\bL_\bU();\n-331\n-332 _\b~_\bS_\bu_\bp_\be_\br_\bL_\bU();\n-333\n-337 void _\ba_\bp_\bp_\bl_\by(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res);\n-338\n-_\b3_\b4_\b2 void _\ba_\bp_\bp_\bl_\by (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, [[maybe_unused]] double\n-reduction, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-343 {\n-344 _\ba_\bp_\bp_\bl_\by(x,b,res);\n-345 }\n-346\n-350 void _\ba_\bp_\bp_\bl_\by(T* x, T* b);\n-351\n-353 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& mat);\n-354\n-_\b3_\b5_\b5 typename SuperLUMatrix::size_type _\bn_\bn_\bz() const\n-356 {\n-357 return mat.nonzeroes();\n-358 }\n-359\n-360 template\n-361 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& mat, const S& rowIndexSet);\n-362\n-363 void _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(bool v);\n-364\n-369 void _\bf_\br_\be_\be();\n-370\n-_\b3_\b7_\b1 const char* _\bn_\ba_\bm_\be() { return \"SuperLU\"; }\n-372 private:\n-373 template\n-_\b3_\b7_\b4 friend class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz;\n-375 friend struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bS_\bu_\bp_\be_\br_\bL_\bU<_\bM_\ba_\bt_\br_\bi_\bx>,true>;\n-376\n-377 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx& getInternalMatrix() { return _\bm_\ba_\bt; }\n-378\n-380 void decompose();\n-381\n-382 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx _\bm_\ba_\bt;\n-383 SuperMatrix L, U, B, X;\n-384 int *perm_c, *perm_r, *etree;\n-385 typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be *R, *C;\n-386 T *bstore;\n-387 superlu_options_t options;\n-388 char equed;\n-389 void *work;\n-390 int lwork;\n-391 bool first, verbose, reusevector;\n-392 };\n-393\n-394 template\n-395 SuperLU\n-_\b3_\b9_\b6 ::~SuperLU()\n-397 {\n-398 if(_\bm_\ba_\bt._\bN()+_\bm_\ba_\bt._\bM()>0)\n-399 free();\n-400 }\n-401\n-402 template\n-_\b4_\b0_\b3 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bf_\br_\be_\be()\n-404 {\n-405 delete[] perm_c;\n-406 delete[] perm_r;\n-407 delete[] etree;\n-408 delete[] R;\n-409 delete[] C;\n-410 if(lwork>=0) {\n-411 Destroy_SuperNode_Matrix(&L);\n-412 Destroy_CompCol_Matrix(&U);\n-413 }\n-414 lwork=0;\n-415 if(!first && reusevector) {\n-416 SUPERLU_FREE(B.Store);\n-417 SUPERLU_FREE(X.Store);\n-418 }\n-419 _\bm_\ba_\bt.free();\n-420 }\n-421\n-422 template\n-423 _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>\n-_\b4_\b2_\b4_\b _\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU(const _\bM_\ba_\bt_\br_\bi_\bx& mat_, bool verbose_, bool reusevector_)\n-425 : work(0), lwork(0), first(true), verbose(verbose_),\n-426 reusevector(reusevector_)\n-427 {\n-428 _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(mat_);\n-429\n-430 }\n-431 template\n-_\b4_\b3_\b2 _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU()\n-433 : work(0), lwork(0),verbose(false),\n-434 reusevector(false)\n-435 {}\n-436 template\n-_\b4_\b3_\b7 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(bool v)\n-438 {\n-439 verbose=v;\n-440 }\n-441\n-442 template\n-_\b4_\b4_\b3 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& mat_)\n-444 {\n-445 if(_\bm_\ba_\bt._\bN()+_\bm_\ba_\bt._\bM()>0) {\n-446 free();\n-447 }\n-448 lwork=0;\n-449 work=0;\n-450 //a=&mat_;\n-451 _\bm_\ba_\bt=mat_;\n-452 decompose();\n-453 }\n-454\n-455 template\n-456 template\n-_\b4_\b5_\b7 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& mat_,\n-458 const S& mrs)\n-459 {\n-460 if(_\bm_\ba_\bt._\bN()+_\bm_\ba_\bt._\bM()>0) {\n-461 free();\n-462 }\n-463 lwork=0;\n-464 work=0;\n-465 //a=&mat_;\n-466 _\bm_\ba_\bt.setMatrix(mat_,mrs);\n-467 decompose();\n-468 }\n-469\n-470 template\n-471 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bd_\be_\bc_\bo_\bm_\bp_\bo_\bs_\be()\n-472 {\n-473\n-474 first = true;\n-475 perm_c = new int[_\bm_\ba_\bt._\bM()];\n-476 perm_r = new int[_\bm_\ba_\bt._\bN()];\n-477 etree = new int[_\bm_\ba_\bt._\bM()];\n-478 R = new typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be[_\bm_\ba_\bt._\bN()];\n-479 C = new typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be[_\bm_\ba_\bt._\bM()];\n-480\n-481 set_default_options(&options);\n-482 // Do the factorization\n-483 B.ncol=0;\n-484 B.Stype=SLU_DN;\n-485 B.Dtype=_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be;\n-486 B.Mtype= SLU_GE;\n-487 DNformat fakeFormat;\n-488 fakeFormat.lda=_\bm_\ba_\bt._\bN();\n-489 B.Store=&fakeFormat;\n-490 X.Stype=SLU_DN;\n-491 X.Dtype=_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be;\n-492 X.Mtype= SLU_GE;\n-493 X.ncol=0;\n-494 X.Store=&fakeFormat;\n-495\n-496 typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be rpg, rcond, ferr=1e10, berr=1e10;\n-497 int info;\n-498 mem_usage_t memusage;\n-499 SuperLUStat_t stat;\n-500\n-501 StatInit(&stat);\n-502 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be(&options, &static_cast(_\bm_\ba_\bt),\n-perm_c, perm_r, etree, &equed, R, C,\n-503 &L, &U, work, lwork, &B, &X, &rpg, &rcond, &ferr,\n-504 &berr, &memusage, &stat, &info);\n-505\n-506 if(verbose) {\n-507 dinfo<<\"LU factorization: dgssvx() returns info \"<< info<(_\bm_\ba_\bt).ncol;\n-510\n-511 if ( info == 0 || info == nSuperLUCol+1 ) {\n-512\n-513 if ( options.PivotGrowth )\n-514 dinfo<<\"Recip. pivot growth = \"<nnz<nnz<nnz + Ustore->nnz -\n-nSuperLUCol<_\b:_\b:_\bq_\bu_\be_\br_\by_\bS_\bp_\ba_\bc_\be(&L, &U, &memusage);\n-523 dinfo<<\"L\\\\U MB \"< 0 && lwork == -1 ) { // Memory allocation failed\n-528 dinfo<<\"** Estimated memory: \"<< info - nSuperLUCol<colptr[i]; c < Ustore->colptr[i+1]; ++c)\n-540 //if(Ustore->rowind[c]==i)\n-541 std::cout<rowind[c]<<\"->\"<<((double*)Ustore->nzval)[c]<<\" \";\n-542 if(k==0){\n-543 //\n-544 k=-1;\n-545 }std::cout<colptr[i]; c < Ustore->colptr[i+1]; ++c)\n-551 //if(Ustore->rowind[c]==i)\n-552 std::cout<rowind[c]<<\"->\"<<((double*)Ustore->nzval)[c]<<\" \";\n-553 if(k==0){\n-554 //\n-555 k=-1;\n-556 }std::cout<\n-562 void SuperLU\n-_\b5_\b6_\b3 ::apply(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-564 {\n-565 if (_\bm_\ba_\bt._\bN() != b.dim())\n-566 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Size of right-hand-side vector b does not match the\n-number of matrix rows!\");\n-567 if (_\bm_\ba_\bt._\bM() != x.dim())\n-568 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Size of solution vector x does not match the number\n-of matrix columns!\");\n-569 if (_\bm_\ba_\bt._\bM()+_\bm_\ba_\bt._\bN()==0)\n-570 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Matrix of SuperLU is null!\");\n-571\n-572 SuperMatrix* mB = &B;\n-573 SuperMatrix* mX = &X;\n-574 SuperMatrix rB, rX;\n-575 if (reusevector) {\n-576 if(first) {\n-577 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&B, (int)_\bm_\ba_\bt._\bN(), 1, reinterpret_cast\n-(&b[0]), (int)_\bm_\ba_\bt._\bN(), SLU_DN, _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n-578 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&X, (int)_\bm_\ba_\bt._\bN(), 1, reinterpret_cast\n-(&x[0]), (int)_\bm_\ba_\bt._\bN(), SLU_DN, _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n-579 first=false;\n-580 }else{\n-581 ((DNformat*)B.Store)->nzval=&b[0];\n-582 ((DNformat*)X.Store)->nzval=&x[0];\n-583 }\n-584 } else {\n-585 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&rB, (int)_\bm_\ba_\bt._\bN(), 1,\n-reinterpret_cast(&b[0]), (int)_\bm_\ba_\bt._\bN(), SLU_DN, _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be,\n-SLU_GE);\n-586 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&rX, (int)_\bm_\ba_\bt._\bN(), 1,\n-reinterpret_cast(&x[0]), (int)_\bm_\ba_\bt._\bN(), SLU_DN, _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be,\n-SLU_GE);\n-587 mB = &rB;\n-588 mX = &rX;\n-589 }\n-590 typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be rpg, rcond, ferr=1e10, berr;\n-591 int info;\n-592 mem_usage_t memusage;\n-593 SuperLUStat_t stat;\n-594 /* Initialize the statistics variables. */\n-595 StatInit(&stat);\n-596 /*\n-597 range_type d=b;\n-598 a->usmv(-1, x, d);\n-599\n-600 double def0=d.two_norm();\n-601 */\n-602 options.IterRefine=SLU_DOUBLE;\n-603\n-604 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be(&options, &static_cast(_\bm_\ba_\bt),\n-perm_c, perm_r, etree, &equed, R, C,\n-605 &L, &U, work, lwork, mB, mX, &rpg, &rcond, &ferr, &berr,\n-606 &memusage, &stat, &info);\n-607\n-608 res._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs=1;\n-609\n-610 /*\n-611 if(options.Equil==YES)\n-612 // undo scaling of right hand side\n-613 std::transform(reinterpret_cast(&b[0]),reinterpret_cast(&b\n-[0])+mat.M(),\n-614 C, reinterpret_cast(&d[0]), std::divides());\n-615 else\n-616 d=b;\n-617 a->usmv(-1, x, d);\n-618 res.reduction=d.two_norm()/def0;\n-619 res.conv_rate = res.reduction;\n-620 res.converged=(res.reduction<1e-10||d.two_norm()<1e-18);\n-621 */\n-622 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd=true;\n-623\n-624 if(verbose) {\n-625\n-626 dinfo<<\"Triangular solve: dgssvx() returns info \"<< info<(_\bm_\ba_\bt).ncol;\n-629\n-630 if ( info == 0 || info == nSuperLUCol+1 ) {\n-631\n-632 if ( options.IterRefine ) {\n-633 std::cout<<\"Iterative Refinement: steps=\"\n-634 < 0 && lwork == -1 ) { // Memory allocation failed\n-638 std::cout<<\"** Estimated memory: \"<< info - nSuperLUCol<<\" bytes\"<\n-651 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>\n-_\b6_\b5_\b2_\b _\b:_\b:_\ba_\bp_\bp_\bl_\by(T* x, T* b)\n-653 {\n-654 if(_\bm_\ba_\bt._\bN()+_\bm_\ba_\bt._\bM()==0)\n-655 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Matrix of SuperLU is null!\");\n-656\n-657 SuperMatrix* mB = &B;\n-658 SuperMatrix* mX = &X;\n-659 SuperMatrix rB, rX;\n-660 if (reusevector) {\n-661 if(first) {\n-662 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&B, _\bm_\ba_\bt._\bN(), 1, b, _\bm_\ba_\bt._\bN(), SLU_DN,\n-_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n-663 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&X, _\bm_\ba_\bt._\bN(), 1, x, _\bm_\ba_\bt._\bN(), SLU_DN,\n-_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n-664 first=false;\n-665 }else{\n-666 ((DNformat*) B.Store)->nzval=b;\n-667 ((DNformat*)X.Store)->nzval=x;\n-668 }\n-669 } else {\n-670 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&rB, _\bm_\ba_\bt._\bN(), 1, b, _\bm_\ba_\bt._\bN(), SLU_DN,\n-_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n-671 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&rX, _\bm_\ba_\bt._\bN(), 1, x, _\bm_\ba_\bt._\bN(), SLU_DN,\n-_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n-672 mB = &rB;\n-673 mX = &rX;\n-674 }\n-675\n-676 typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be rpg, rcond, ferr=1e10, berr;\n-677 int info;\n-678 mem_usage_t memusage;\n-679 SuperLUStat_t stat;\n-680 /* Initialize the statistics variables. */\n-681 StatInit(&stat);\n-682\n-683 options.IterRefine=SLU_DOUBLE;\n-684\n-685 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be(&options, &static_cast(_\bm_\ba_\bt),\n-perm_c, perm_r, etree, &equed, R, C,\n-686 &L, &U, work, lwork, mB, mX, &rpg, &rcond, &ferr, &berr,\n-687 &memusage, &stat, &info);\n-688\n-689 if(verbose) {\n-690 dinfo<<\"Triangular solve: dgssvx() returns info \"<< info<(_\bm_\ba_\bt).ncol;\n-693\n-694 if ( info == 0 || info == nSuperLUCol+1 ) { // Factorization has succeeded\n-695\n-696 if ( options.IterRefine ) {\n-697 dinfo<<\"Iterative Refinement: steps=\"\n-698 < 0 && lwork == -1 ) { // Memory allocation failed\n-702 dinfo<<\"** Estimated memory: \"<< info - nSuperLUCol<<\" bytes\"<\n-_\b7_\b1_\b6 struct _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br<_\bS_\bu_\bp_\be_\br_\bL_\bU<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx > >\n-717 {\n-_\b7_\b1_\b8 enum { _\bv_\ba_\bl_\bu_\be=true};\n-719 };\n-720\n-721 template\n-_\b7_\b2_\b2 struct _\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd<_\bS_\bu_\bp_\be_\br_\bL_\bU<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx > >\n-723 {\n-_\b7_\b2_\b4 enum { _\bv_\ba_\bl_\bu_\be = true };\n-725 };\n-726\n-_\b7_\b2_\b7 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br {\n-_\b7_\b2_\b8 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk : std::false_type{};\n-_\b7_\b2_\b9 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk<_\bD_\bu_\bn_\be::FieldVector> : std::\n-true_type{};\n-_\b7_\b3_\b0 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk<_\bD_\bu_\bn_\be::FieldVector,k>> : std::true_type{};\n-731 template\n-732 std::shared_ptr::type,\n-733 typename Dune::TypeListElement<2, TL>::type>>\n-_\b7_\b3_\b4 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& _\bm_\ba_\bt, const Dune::ParameterTree& config,\n-735 std::enable_if_t<_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::type::\n-block_type>::value,int> = 0) const\n-736 {\n-737 int verbose = config.get(\"verbose\", 0);\n-738 return std::make_shared>(_\bm_\ba_\bt,verbose);\n-739 }\n-740\n-741 // second version with SFINAE to validate the template parameters of\n-SuperLU\n-742 template\n-743 std::shared_ptr::type,\n-744 typename Dune::TypeListElement<2, TL>::type>>\n-_\b7_\b4_\b5 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /\n-*config*/,\n-746 std::enable_if_t::\n-type::block_type>::value,int> = 0) const\n-747 {\n-748 DUNE_THROW(_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be,\n-749 \"Unsupported Type in SuperLU (only double and std::complex\n-supported)\");\n-750 }\n-751 };\n-_\b7_\b5_\b2 template<> struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk : std::true_type{};\n-_\b7_\b5_\b3 template<> struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk<_\bs_\bt_\bd::complex> :\n-std::true_type{};\n-754\n-_\b7_\b5_\b5 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"superlu\", _\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br());\n-756} // end namespace DUNE\n-757\n-758// undefine macros from SuperLU's slu_util.h\n-759#undef FIRSTCOL_OF_SNODE\n-760#undef NO_MARKER\n-761#undef NUM_TEMPV\n-762#undef USER_ABORT\n-763#undef USER_MALLOC\n-764#undef SUPERLU_MALLOC\n-765#undef USER_FREE\n-766#undef SUPERLU_FREE\n-767#undef CHECK_MALLOC\n-768#undef SUPERLU_MAX\n-769#undef SUPERLU_MIN\n-770#undef L_SUB_START\n-771#undef L_SUB\n-772#undef L_NZ_START\n-773#undef L_FST_SUPC\n-774#undef U_NZ_START\n-775#undef U_SUB\n-776#undef TRUE\n-777#undef FALSE\n-778#undef EMPTY\n-779#undef NODROP\n-780#undef DROP_BASIC\n-781#undef DROP_PROWS\n-782#undef DROP_COLUMN\n-783#undef DROP_AREA\n-784#undef DROP_SECONDARY\n-785#undef DROP_DYNAMIC\n-786#undef DROP_INTERP\n-787#undef MILU_ALPHA\n-788\n-789#endif // HAVE_SUPERLU\n-790#endif // DUNE_SUPERLU_HH\n-_\bs_\bu_\bp_\be_\br_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR\n-#define DUNE_REGISTER_DIRECT_SOLVER(name,...)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:13\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n-Implementations of the inverse operator interface.\n-_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n-_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n-_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n-Templates characterizing the type of a solver.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n-void setSubMatrix(const Matrix &mat, const S &rowIndexSet)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:457\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(domain_type &x, range_type &b, InverseOperatorResult &res)\n-Apply inverse operator,.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:563\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by\n-void setVerbosity(bool v)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:437\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bf_\br_\be_\be\n-void free()\n-free allocated space.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:403\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\b~_\bS_\bu_\bp_\be_\br_\bL_\bU\n-~SuperLU()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:396\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU\n-SuperLU()\n-Empty default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:432\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-void setMatrix(const Matrix &mat)\n-Initialize data from given matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:443\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bs_\bt_\bd\n-STL namespace.\n-_\bD_\bu_\bn_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n-Sequential overlapping Schwarz preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:694\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-A generic dynamic dense matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-size_type M() const\n-Return the number of columns.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:700\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-Return the number of rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:695\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n-int iterations\n-Number of iterations.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n-bool converged\n-True if convergence criterion has been met.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Abstract base class for all solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:77\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-@ value\n-Whether this is a direct solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:24\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-@ value\n-whether the solver internally uses column compressed storage\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:45\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:49\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bQ_\bu_\be_\br_\by_\bC_\bh_\bo_\bo_\bs_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bQ_\bu_\be_\br_\by_\bS_\bp_\ba_\bc_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:57\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU\n-SuperLu Solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:271\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bn_\bn_\bz\n-SuperLUMatrix::size_type nnz() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:355\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(domain_type &x, range_type &b, double reduction,\n-InverseOperatorResult &res)\n-apply inverse operator, with given convergence criteria.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:342\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-typename Impl::SuperLUVectorChooser< M >::range_type range_type\n-The type of the range of the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:284\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:276\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-SuperMatrixInitializer< Matrix > MatrixInitializer\n-Type of an associated initializer class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:280\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-M Matrix\n-The matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:275\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-typename Impl::SuperLUVectorChooser< M >::domain_type domain_type\n-The type of the domain of the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:282\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bn_\ba_\bm_\be\n-const char * name()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:371\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the solver (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:287\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n-Dune::SuperLUMatrix< Matrix > SuperLUMatrix\n-The corresponding SuperLU Matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:278\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU\n-SuperLU(const Matrix &mat, const ParameterTree &config)\n-Constructs the SuperLU solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:320\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:727\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL\n->::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL, const\n-M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock<\n-typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0)\n-const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:734\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:728\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:132\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n-Utility class for converting an ISTL Matrix into a SuperLU Matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:175\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:179\n+101\n+102 extern void\n+103 zCreate_CompCol_Matrix(SuperMatrix *, int, int, int, doublecomplex *,\n+104 int *, int *, Stype_t, Dtype_t, Mtype_t);\n+105\n+106 extern void\n+107 zCreate_Dense_Matrix(SuperMatrix *, int, int, doublecomplex *, int,\n+108 Stype_t, Dtype_t, Mtype_t);\n+109\n+110 extern int zQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);\n+111\n+112 extern void zPrint_CompCol_Matrix(char *, SuperMatrix *);\n+113}\n+114#endif\n+115\n+116\n+117#endif\n+118#endif\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00011.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00011.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: schwarz.hh File Reference\n+dune-istl: matrixredistribute.hh File Reference\n \n \n \n \n \n \n \n@@ -71,57 +71,86 @@\n \n \n \n
\n \n-
schwarz.hh File Reference
\n+Namespaces |\n+Functions
\n+
matrixredistribute.hh File Reference
\n \n
\n-
#include <iostream>
\n-#include <fstream>
\n-#include <vector>
\n-#include <sstream>
\n-#include <cmath>
\n-#include <dune/common/timer.hh>
\n-#include "io.hh"
\n-#include "bvector.hh"
\n-#include "vbvector.hh"
\n-#include "bcrsmatrix.hh"
\n-#include "gsetc.hh"
\n-#include "ilu.hh"
\n-#include "operators.hh"
\n-#include "solvers.hh"
\n-#include "preconditioners.hh"
\n-#include "scalarproducts.hh"
\n-#include "owneroverlapcopy.hh"
\n+\n+

Functionality for redistributing a sparse matrix. \n+More...

\n+
#include <memory>
\n+#include "repartition.hh"
\n+#include <dune/common/exceptions.hh>
\n+#include <dune/common/parallel/indexset.hh>
\n+#include <dune/istl/owneroverlapcopy.hh>
\n+#include <dune/istl/paamg/pinfo.hh>
\n
\n

Go to the source code of this file.

\n \n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n-\n-\n+\n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n \n

\n Classes

class  Dune::OverlappingSchwarzOperator< M, X, Y, C >
 An overlapping Schwarz operator. More...
struct  Dune::RedistributeInformation< T >
 
class  Dune::RedistributeInformation< OwnerOverlapCopyCommunication< T, T1 > >
 
struct  Dune::CommMatrixRowSize< M, RI >
 Utility class to communicate and set the row sizes of a redistributed matrix. More...
 
struct  Dune::CommMatrixSparsityPattern< M, I >
 Utility class to communicate and build the sparsity pattern of a redistributed matrix. More...
 
struct  Dune::CommPolicy< CommMatrixSparsityPattern< M, I > >
 
struct  Dune::CommMatrixRow< M, I >
 Utility class for comunicating the matrix entries. More...
 
class  Dune::ParSSOR< M, X, Y, C >
 A parallel SSOR preconditioner. More...
struct  Dune::CommPolicy< CommMatrixRow< M, I > >
 
class  Dune::BlockPreconditioner< X, Y, C, P >
 Block parallel preconditioner. More...
struct  Dune::MatrixRowSizeGatherScatter< M, I, RI >
 
struct  Dune::MatrixCopyRowSizeGatherScatter< M, I, RI >
 
struct  Dune::MatrixSparsityPatternGatherScatter< M, I >
 
struct  Dune::MatrixRowGatherScatter< M, I >
 
\n \n \n \n-\n-\n+

\n Namespaces

namespace  Dune
 
namespace  Dune::Amg
 
\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

\n+Functions

template<typename M , typename C >
void Dune::redistributeSparsityPattern (M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
 
template<typename M , typename C >
void Dune::redistributeMatrixEntries (M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
 
template<typename M , typename C >
void Dune::redistributeMatrix (M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
 Redistribute a matrix according to given domain decompositions.
 
template<typename M >
void Dune::redistributeMatrixEntries (M &origMatrix, M &newMatrix, Dune::Amg::SequentialInformation &origComm, Dune::Amg::SequentialInformation &newComm, RedistributeInformation< Dune::Amg::SequentialInformation > &ri)
 
template<typename M >
void Dune::redistributeMatrix (M &origMatrix, M &newMatrix, Dune::Amg::SequentialInformation &origComm, Dune::Amg::SequentialInformation &newComm, RedistributeInformation< Dune::Amg::SequentialInformation > &ri)
 
\n-
\n+

Detailed Description

\n+

Functionality for redistributing a sparse matrix.

\n+
Author
Markus Blatt
\n+
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,43 +1,80 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-schwarz.hh File Reference\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \"_\bi_\bo_\b._\bh_\bh\"\n-#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \"_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n-#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n-#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n-#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n-#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n-#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n-#include \"_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\"\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+matrixredistribute.hh File Reference\n+Functionality for redistributing a sparse matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \"_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>\n-\u00a0 An overlapping Schwarz operator. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b _\b>\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>\n-\u00a0 A parallel SSOR preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>\n+ _\b>\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bP_\b _\b>\n-\u00a0 Block parallel preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b<_\b _\bM_\b,_\b _\bR_\bI_\b _\b>\n+\u00a0 Utility class to communicate and set the row sizes of a redistributed\n+ matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>\n+\u00a0 Utility class to communicate and build the sparsity pattern of a\n+ redistributed matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>\n+\u00a0 Utility class for comunicating the matrix entries. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bI_\b,_\b _\bR_\bI_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bI_\b,_\b _\bR_\bI_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bI_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bI_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn (M &origMatrix, M &newMatrix, C\n+ &origComm, C &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< C > &ri)\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs (M &origMatrix, M &newMatrix, C\n+ &origComm, C &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< C > &ri)\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx (M &origMatrix, M &newMatrix, C &origComm, C\n+ &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< C > &ri)\n+\u00a0 Redistribute a matrix according to given domain decompositions.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs (M &origMatrix, M &newMatrix, _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:\n+ _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn &origComm, _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+ &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn >\n+ &ri)\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx (M &origMatrix, M &newMatrix, _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:\n+ _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn &origComm, _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+ &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn >\n+ &ri)\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Functionality for redistributing a sparse matrix.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00011_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00011_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: schwarz.hh Source File\n+dune-istl: matrixredistribute.hh Source File\n \n \n \n \n \n \n \n@@ -74,302 +74,996 @@\n \n
\n \n
\n \n
\n-
schwarz.hh
\n+
matrixredistribute.hh
\n
\n
\n Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
\n
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
\n
3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
\n
4// vi: set et ts=4 sw=2 sts=2:
\n-
5#ifndef DUNE_ISTL_SCHWARZ_HH
\n-
6#define DUNE_ISTL_SCHWARZ_HH
\n-
7
\n-
8#include <iostream> // for input/output to shell
\n-
9#include <fstream> // for input/output to files
\n-
10#include <vector> // STL vector class
\n-
11#include <sstream>
\n-
12
\n-
13#include <cmath> // Yes, we do some math here
\n-
14
\n-
15#include <dune/common/timer.hh>
\n-
16
\n-
17#include "io.hh"
\n-
18#include "bvector.hh"
\n-
19#include "vbvector.hh"
\n-
20#include "bcrsmatrix.hh"
\n-
21#include "io.hh"
\n-
22#include "gsetc.hh"
\n-
23#include "ilu.hh"
\n-
24#include "operators.hh"
\n-
25#include "solvers.hh"
\n-
26#include "preconditioners.hh"
\n-
27#include "scalarproducts.hh"
\n-
28#include "owneroverlapcopy.hh"
\n-
29
\n-
30namespace Dune {
\n-
31
\n-
73 template<class M, class X, class Y, class C>
\n-
\n-\n-
75 {
\n-
76 public:
\n-
81 typedef M matrix_type;
\n-
86 typedef X domain_type;
\n-
91 typedef Y range_type;
\n-
93 typedef typename X::field_type field_type;
\n-\n-
99
\n-
\n-\n-
108 : _A_(stackobject_to_shared_ptr(A)), communication(com)
\n-
109 {}
\n-
\n-
110
\n-
\n-
111 OverlappingSchwarzOperator (const std::shared_ptr<matrix_type> A, const communication_type& com)
\n-
112 : _A_(A), communication(com)
\n-
113 {}
\n-
\n-
114
\n-
\n-
116 virtual void apply (const X& x, Y& y) const
\n-
117 {
\n-
118 y = 0;
\n-
119 _A_->umv(x,y); // result is consistent on interior+border
\n-
120 communication.project(y); // we want this here to avoid it before the preconditioner
\n-
121 // since there d is const!
\n-
122 }
\n-
\n-
123
\n-
\n-
125 virtual void applyscaleadd (field_type alpha, const X& x, Y& y) const
\n-
126 {
\n-
127 _A_->usmv(alpha,x,y); // result is consistent on interior+border
\n-
128 communication.project(y); // we want this here to avoid it before the preconditioner
\n-
129 // since there d is const!
\n-
130 }
\n-
\n-
131
\n-
\n-
133 virtual const matrix_type& getmat () const
\n-
134 {
\n-
135 return *_A_;
\n-
136 }
\n-
\n-
137
\n-
\n-\n-
140 {
\n-\n-
142 }
\n-
\n-
143
\n-
144
\n-
\n-\n-
147 {
\n-
148 return communication;
\n-
149 }
\n-
\n-
150 private:
\n-
151 const std::shared_ptr<const matrix_type>_A_;
\n-
152 const communication_type& communication;
\n-
153 };
\n-
\n-
154
\n-
157 /*
\n-
158 * @addtogroup ISTL_Prec
\n-
159 * @{
\n-
160 */
\n-
174 template<class M, class X, class Y, class C>
\n-
\n-
175 class ParSSOR : public Preconditioner<X,Y> {
\n-
176 public:
\n-
178 typedef M matrix_type;
\n-
180 typedef X domain_type;
\n-
182 typedef Y range_type;
\n-
184 typedef typename X::field_type field_type;
\n-\n+
5#ifndef DUNE_ISTL_MATRIXREDISTRIBUTE_HH
\n+
6#define DUNE_ISTL_MATRIXREDISTRIBUTE_HH
\n+
7#include <memory>
\n+
8#include "repartition.hh"
\n+
9#include <dune/common/exceptions.hh>
\n+
10#include <dune/common/parallel/indexset.hh>
\n+\n+\n+
18namespace Dune
\n+
19{
\n+
20 template<typename T>
\n+
\n+\n+
22 {
\n+
\n+
23 bool isSetup() const
\n+
24 {
\n+
25 return false;
\n+
26 }
\n+
\n+
27 template<class D>
\n+
\n+
28 void redistribute([[maybe_unused]] const D& from, [[maybe_unused]] D& to) const
\n+
29 {}
\n+
\n+
30
\n+
31 template<class D>
\n+
\n+
32 void redistributeBackward([[maybe_unused]] D& from, [[maybe_unused]]const D& to) const
\n+
33 {}
\n+
\n+
34
\n+
\n+\n+
36 {}
\n+
\n+
37
\n+
\n+
38 void setNoRows([[maybe_unused]] std::size_t size)
\n+
39 {}
\n+
\n+
40
\n+
\n+
41 void setNoCopyRows([[maybe_unused]] std::size_t size)
\n+
42 {}
\n+
\n+
43
\n+
\n+
44 void setNoBackwardsCopyRows([[maybe_unused]] std::size_t size)
\n+
45 {}
\n+
\n+
46
\n+
\n+
47 std::size_t getRowSize([[maybe_unused]] std::size_t index) const
\n+
48 {
\n+
49 return -1;
\n+
50 }
\n+
\n+
51
\n+
\n+
52 std::size_t getCopyRowSize([[maybe_unused]] std::size_t index) const
\n+
53 {
\n+
54 return -1;
\n+
55 }
\n+
\n+
56
\n+
\n+
57 std::size_t getBackwardsCopyRowSize([[maybe_unused]] std::size_t index) const
\n+
58 {
\n+
59 return -1;
\n+
60 }
\n+
\n+
61
\n+
62 };
\n+
\n+
63
\n+
64#if HAVE_MPI
\n+
65 template<typename T, typename T1>
\n+
\n+\n+
67 {
\n+
68 public:
\n+\n+
70
\n+
\n+\n+
72 : interface(), setup_(false)
\n+
73 {}
\n+
\n+
74
\n+
\n+\n+
76 {
\n+
77 return interface;
\n+
78 }
\n+
\n+
79 template<typename IS>
\n+
\n+
80 void checkInterface(const IS& source,
\n+
81 const IS& target, MPI_Comm comm)
\n+
82 {
\n+
83 auto ri = std::make_unique<RemoteIndices<IS> >(source, target, comm);
\n+
84 ri->template rebuild<true>();
\n+
85 Interface inf;
\n+\n+
87 int rank;
\n+
88 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
\n+
89 inf.free();
\n+
90 inf.build(*ri, flags, flags);
\n+
91
\n+
92
\n+
93#ifdef DEBUG_REPART
\n+
94 if(inf!=interface) {
\n+
95
\n+
96 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
\n+
97 if(rank==0)
\n+
98 std::cout<<"Interfaces do not match!"<<std::endl;
\n+
99 std::cout<<rank<<": redist interface new :"<<inf<<std::endl;
\n+
100 std::cout<<rank<<": redist interface :"<<interface<<std::endl;
\n+
101
\n+
102 throw "autsch!";
\n+
103 }
\n+
104#endif
\n+
105 }
\n+
\n+
\n+
106 void setSetup()
\n+
107 {
\n+
108 setup_=true;
\n+
109 interface.strip();
\n+
110 }
\n+
\n+
111
\n+
\n+\n+
113 {
\n+
114 setup_=false;
\n+
115 }
\n+
\n+
116
\n+
117 template<class GatherScatter, class D>
\n+
\n+
118 void redistribute(const D& from, D& to) const
\n+
119 {
\n+
120 BufferedCommunicator communicator;
\n+
121 communicator.template build<D>(from,to, interface);
\n+
122 communicator.template forward<GatherScatter>(from, to);
\n+
123 communicator.free();
\n+
124 }
\n+
\n+
125 template<class GatherScatter, class D>
\n+
\n+
126 void redistributeBackward(D& from, const D& to) const
\n+
127 {
\n+
128
\n+
129 BufferedCommunicator communicator;
\n+
130 communicator.template build<D>(from,to, interface);
\n+
131 communicator.template backward<GatherScatter>(from, to);
\n+
132 communicator.free();
\n+
133 }
\n+
\n+
134
\n+
135 template<class D>
\n+
\n+
136 void redistribute(const D& from, D& to) const
\n+
137 {
\n+
138 redistribute<CopyGatherScatter<D> >(from,to);
\n+
139 }
\n+
\n+
140 template<class D>
\n+
\n+
141 void redistributeBackward(D& from, const D& to) const
\n+
142 {
\n+
143 redistributeBackward<CopyGatherScatter<D> >(from,to);
\n+
144 }
\n+
\n+
\n+
145 bool isSetup() const
\n+
146 {
\n+
147 return setup_;
\n+
148 }
\n+
\n+
149
\n+
\n+
150 void reserve(std::size_t size)
\n+
151 {}
\n+
\n+
152
\n+
\n+
153 std::size_t& getRowSize(std::size_t index)
\n+
154 {
\n+
155 return rowSize[index];
\n+
156 }
\n+
\n+
157
\n+
\n+
158 std::size_t getRowSize(std::size_t index) const
\n+
159 {
\n+
160 return rowSize[index];
\n+
161 }
\n+
\n+
162
\n+
\n+
163 std::size_t& getCopyRowSize(std::size_t index)
\n+
164 {
\n+
165 return copyrowSize[index];
\n+
166 }
\n+
\n+
167
\n+
\n+
168 std::size_t getCopyRowSize(std::size_t index) const
\n+
169 {
\n+
170 return copyrowSize[index];
\n+
171 }
\n+
\n+
172
\n+
\n+
173 std::size_t& getBackwardsCopyRowSize(std::size_t index)
\n+
174 {
\n+
175 return backwardscopyrowSize[index];
\n+
176 }
\n+
\n+
177
\n+
\n+
178 std::size_t getBackwardsCopyRowSize(std::size_t index) const
\n+
179 {
\n+
180 return backwardscopyrowSize[index];
\n+
181 }
\n+
\n+
182
\n+
\n+
183 void setNoRows(std::size_t rows)
\n+
184 {
\n+
185 rowSize.resize(rows, 0);
\n+
186 }
\n+
\n
187
\n-
\n-
197 ParSSOR (const matrix_type& A, int n, field_type w, const communication_type& c)
\n-
198 : _A_(A), _n(n), _w(w), communication(c)
\n-
199 { }
\n-
\n-
200
\n-
\n-
206 virtual void pre (X& x, [[maybe_unused]] Y& b)
\n-
207 {
\n-
208 communication.copyOwnerToAll(x,x); // make dirichlet values consistent
\n-
209 }
\n-
\n-
210
\n-
\n-
216 virtual void apply (X& v, const Y& d)
\n-
217 {
\n-
218 for (int i=0; i<_n; i++) {
\n-
219 bsorf(_A_,v,d,_w);
\n-
220 bsorb(_A_,v,d,_w);
\n-
221 }
\n-
222 communication.copyOwnerToAll(v,v);
\n-
223 }
\n+
\n+
188 void setNoCopyRows(std::size_t rows)
\n+
189 {
\n+
190 copyrowSize.resize(rows, 0);
\n+
191 }
\n+
\n+
192
\n+
\n+
193 void setNoBackwardsCopyRows(std::size_t rows)
\n+
194 {
\n+
195 backwardscopyrowSize.resize(rows, 0);
\n+
196 }
\n+
\n+
197
\n+
198 private:
\n+
199 std::vector<std::size_t> rowSize;
\n+
200 std::vector<std::size_t> copyrowSize;
\n+
201 std::vector<std::size_t> backwardscopyrowSize;
\n+
202 RedistributeInterface interface;
\n+
203 bool setup_;
\n+
204 };
\n+
\n+
205
\n+
214 template<class M, class RI>
\n+
\n+\n+
216 {
\n+
217 // Make the default communication policy work.
\n+
218 typedef typename M::size_type value_type;
\n+
219 typedef typename M::size_type size_type;
\n+
220
\n+
\n+
226 CommMatrixRowSize(const M& m_, RI& rowsize_)
\n+
227 : matrix(m_), rowsize(rowsize_)
\n+
228 {}
\n
\n-
224
\n-
230 virtual void post ([[maybe_unused]] X& x) {}
\n+
229 const M& matrix;
\n+\n
231
\n-
\n-\n-
234 {
\n-\n-
236 }
\n-
\n-
237
\n-
238 private:
\n-
240 const matrix_type& _A_;
\n-
242 int _n;
\n-
244 field_type _w;
\n-
246 const communication_type& communication;
\n-
247 };
\n-
\n-
248
\n-
249 namespace Amg
\n-
250 {
\n-
251 template<class T> struct ConstructionTraits;
\n-
252 }
\n-
253
\n-
277 template<class X, class Y, class C, class P=Preconditioner<X,Y> >
\n-
\n-\n-
279 friend struct Amg::ConstructionTraits<BlockPreconditioner<X,Y,C,P> >;
\n-
280 public:
\n-
285 typedef X domain_type;
\n-
290 typedef Y range_type;
\n-
292 typedef typename X::field_type field_type;
\n-\n+
232 };
\n+
\n+
233
\n+
234
\n+
243 template<class M, class I>
\n+
\n+\n+
245 {
\n+
246 typedef typename M::size_type size_type;
\n+
247
\n+
\n+
254 CommMatrixSparsityPattern(const M& m_, const Dune::GlobalLookupIndexSet<I>& idxset_, const I& aggidxset_)
\n+
255 : matrix(m_), idxset(idxset_), aggidxset(aggidxset_), rowsize()
\n+
256 {}
\n+
\n+
257
\n+
\n+
265 CommMatrixSparsityPattern(const M& m_, const Dune::GlobalLookupIndexSet<I>& idxset_, const I& aggidxset_,
\n+
266 const std::vector<typename M::size_type>& rowsize_)
\n+
267 : matrix(m_), idxset(idxset_), aggidxset(aggidxset_), sparsity(aggidxset_.size()), rowsize(&rowsize_)
\n+
268 {}
\n+
\n+
269
\n+
\n+\n+
277 {
\n+
278 // insert diagonal to overlap rows
\n+
279 typedef typename Dune::GlobalLookupIndexSet<I>::const_iterator IIter;
\n+\n+
281 std::size_t nnz=0;
\n+
282#ifdef DEBUG_REPART
\n+
283 int rank;
\n+
284
\n+
285 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
\n+
286#endif
\n+
287 for(IIter i= aggidxset.begin(), end=aggidxset.end(); i!=end; ++i) {
\n+
288 if(!OwnerSet::contains(i->local().attribute())) {
\n+
289#ifdef DEBUG_REPART
\n+
290 std::cout<<rank<<" Inserting diagonal for"<<i->local()<<std::endl;
\n+
291#endif
\n+
292 sparsity[i->local()].insert(i->local());
\n+
293 }
\n+
294
\n+
295 nnz+=sparsity[i->local()].size();
\n+
296 }
\n+
297 assert( aggidxset.size()==sparsity.size());
\n
298
\n-
\n-\n-
307 : _preconditioner(stackobject_to_shared_ptr(p)), _communication(c)
\n-
308 { }
\n-
\n-
309
\n-
\n-
317 BlockPreconditioner (const std::shared_ptr<P>& p, const communication_type& c)
\n-
318 : _preconditioner(p), _communication(c)
\n-
319 { }
\n-
\n-
320
\n-
\n-
326 virtual void pre (X& x, Y& b)
\n-
327 {
\n-
328 _communication.copyOwnerToAll(x,x); // make dirichlet values consistent
\n-
329 _preconditioner->pre(x,b);
\n-
330 }
\n-
\n-
331
\n-
\n-
337 virtual void apply (X& v, const Y& d)
\n-
338 {
\n-
339 _preconditioner->apply(v,d);
\n-
340 _communication.copyOwnerToAll(v,v);
\n-
341 }
\n-
\n-
342
\n-
343 template<bool forward>
\n-
\n-
344 void apply (X& v, const Y& d)
\n-
345 {
\n-
346 _preconditioner->template apply<forward>(v,d);
\n-
347 _communication.copyOwnerToAll(v,v);
\n-
348 }
\n-
\n-
349
\n-
\n-
355 virtual void post (X& x)
\n-
356 {
\n-
357 _preconditioner->post(x);
\n-
358 }
\n-
\n-
359
\n-
\n-\n-
362 {
\n-\n-
364 }
\n-
\n-
365
\n-
366 private:
\n-
368 std::shared_ptr<P> _preconditioner;
\n-
369
\n-
371 const communication_type& _communication;
\n-
372 };
\n-
\n-
373
\n-
376} // end namespace
\n-
377
\n-
378#endif
\n-
Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
\n-
Some generic functions for pretty printing vectors and matrices.
\n-
Define general preconditioner interface.
\n-
Define base class for scalar product and norm.
\n-
Implementation of the BCRSMatrix class.
\n-
Implementations of the inverse operator interface.
\n-
The incomplete LU factorization kernels.
\n-
Define general, extensible interface for operators. The available implementation wraps a matrix.
\n-\n-
Classes providing communication interfaces for overlapping Schwarz methods.
\n-
This file implements a vector space as a tensor product of a given vector space. The number of compon...
\n-
void bsorb(const M &A, X &x, const Y &b, const K &w)
SSOR step.
Definition gsetc.hh:646
\n-
void bsorf(const M &A, X &x, const Y &b, const K &w)
SOR step.
Definition gsetc.hh:634
\n+
299 if(nnz>0) {
\n+
300 m.setSize(aggidxset.size(), aggidxset.size(), nnz);
\n+
301 m.setBuildMode(M::row_wise);
\n+
302 typename M::CreateIterator citer=m.createbegin();
\n+
303#ifdef DEBUG_REPART
\n+
304 std::size_t idx=0;
\n+
305 bool correct=true;
\n+
306 Dune::GlobalLookupIndexSet<I> global(aggidxset);
\n+
307#endif
\n+
308 typedef typename std::vector<std::set<size_type> >::const_iterator Iter;
\n+
309 for(Iter i=sparsity.begin(), end=sparsity.end(); i!=end; ++i, ++citer)
\n+
310 {
\n+
311 typedef typename std::set<size_type>::const_iterator SIter;
\n+
312 for(SIter si=i->begin(), send=i->end(); si!=send; ++si)
\n+
313 citer.insert(*si);
\n+
314#ifdef DEBUG_REPART
\n+
315 if(i->find(idx)==i->end()) {
\n+
316 const typename I::IndexPair* gi=global.pair(idx);
\n+
317 assert(gi);
\n+
318 std::cout<<rank<<": row "<<idx<<" is missing a diagonal entry! global="<<gi->global()<<" attr="<<gi->local().attribute()<<" "<<
\n+
319 OwnerSet::contains(gi->local().attribute())<<
\n+
320 " row size="<<i->size()<<std::endl;
\n+
321 correct=false;
\n+
322 }
\n+
323 ++idx;
\n+
324#endif
\n+
325 }
\n+
326#ifdef DEBUG_REPART
\n+
327 if(!correct)
\n+
328 throw "bla";
\n+
329#endif
\n+
330 }
\n+
331 }
\n+
\n+
332
\n+
\n+
340 void completeSparsityPattern(std::vector<std::set<size_type> > add_sparsity)
\n+
341 {
\n+
342 for (unsigned int i = 0; i != sparsity.size(); ++i) {
\n+
343 if (add_sparsity[i].size() != 0) {
\n+
344 typedef std::set<size_type> Set;
\n+
345 Set tmp_set;
\n+
346 std::insert_iterator<Set> tmp_insert (tmp_set, tmp_set.begin());
\n+
347 std::set_union(add_sparsity[i].begin(), add_sparsity[i].end(),
\n+
348 sparsity[i].begin(), sparsity[i].end(), tmp_insert);
\n+
349 sparsity[i].swap(tmp_set);
\n+
350 }
\n+
351 }
\n+
352 }
\n+
\n+
353
\n+
354 const M& matrix;
\n+
355 typedef Dune::GlobalLookupIndexSet<I> LookupIndexSet;
\n+
356 const Dune::GlobalLookupIndexSet<I>& idxset;
\n+
357 const I& aggidxset;
\n+
358 std::vector<std::set<size_type> > sparsity;
\n+
359 const std::vector<size_type>* rowsize;
\n+
360 };
\n+
\n+
361
\n+
362 template<class M, class I>
\n+
\n+
363 struct CommPolicy<CommMatrixSparsityPattern<M,I> >
\n+
364 {
\n+\n+
366
\n+
371 typedef typename I::GlobalIndex IndexedType;
\n+
372
\n+
374 typedef VariableSize IndexedTypeFlag;
\n+
375
\n+
\n+
376 static typename M::size_type getSize(const Type& t, std::size_t i)
\n+
377 {
\n+
378 if(!t.rowsize)
\n+
379 return t.matrix[i].size();
\n+
380 else
\n+
381 {
\n+
382 assert((*t.rowsize)[i]>0);
\n+
383 return (*t.rowsize)[i];
\n+
384 }
\n+
385 }
\n+
\n+
386 };
\n+
\n+
387
\n+
394 template<class M, class I>
\n+
\n+\n+
396 {
\n+
\n+
405 CommMatrixRow(M& m_, const Dune::GlobalLookupIndexSet<I>& idxset_, const I& aggidxset_)
\n+
406 : matrix(m_), idxset(idxset_), aggidxset(aggidxset_), rowsize()
\n+
407 {}
\n+
\n+
408
\n+
\n+
412 CommMatrixRow(M& m_, const Dune::GlobalLookupIndexSet<I>& idxset_, const I& aggidxset_,
\n+
413 std::vector<size_t>& rowsize_)
\n+
414 : matrix(m_), idxset(idxset_), aggidxset(aggidxset_), rowsize(&rowsize_)
\n+
415 {}
\n+
\n+
\n+\n+
422 {
\n+
423 typedef typename Dune::GlobalLookupIndexSet<I>::const_iterator Iter;
\n+\n+
425
\n+
426 for(Iter i= aggidxset.begin(), end=aggidxset.end(); i!=end; ++i)
\n+
427 if(!OwnerSet::contains(i->local().attribute())) {
\n+
428 // Set to Dirchlet
\n+
429 typedef typename M::ColIterator CIter;
\n+
430 for(CIter c=matrix[i->local()].begin(), cend= matrix[i->local()].end();
\n+
431 c!= cend; ++c)
\n+
432 {
\n+
433 *c=0;
\n+
434 if(c.index()==i->local()) {
\n+
435 auto setDiagonal = [](auto&& scalarOrMatrix, const auto& value) {
\n+
436 auto&& matrixView = Dune::Impl::asMatrix(scalarOrMatrix);
\n+
437 for (auto rowIt = matrixView.begin(); rowIt != matrixView.end(); ++rowIt)
\n+
438 (*rowIt)[rowIt.index()] = value;
\n+
439 };
\n+
440 setDiagonal(*c, 1);
\n+
441 }
\n+
442 }
\n+
443 }
\n+
444 }
\n+
\n+\n+
448 const Dune::GlobalLookupIndexSet<I>& idxset;
\n+
450 const I& aggidxset;
\n+
452 std::vector<size_t>* rowsize; // row sizes differ from sender side in overlap!
\n+
453 };
\n+
\n+
454
\n+
455 template<class M, class I>
\n+
\n+
456 struct CommPolicy<CommMatrixRow<M,I> >
\n+
457 {
\n+\n+
459
\n+
464 typedef std::pair<typename I::GlobalIndex,typename M::block_type> IndexedType;
\n+
465
\n+
467 typedef VariableSize IndexedTypeFlag;
\n+
468
\n+
\n+
469 static std::size_t getSize(const Type& t, std::size_t i)
\n+
470 {
\n+
471 if(!t.rowsize)
\n+
472 return t.matrix[i].size();
\n+
473 else
\n+
474 {
\n+
475 assert((*t.rowsize)[i]>0);
\n+
476 return (*t.rowsize)[i];
\n+
477 }
\n+
478 }
\n+
\n+
479 };
\n+
\n+
480
\n+
481 template<class M, class I, class RI>
\n+
\n+\n+
483 {
\n+\n+
485
\n+
\n+
486 static const typename M::size_type gather(const Container& cont, std::size_t i)
\n+
487 {
\n+
488 return cont.matrix[i].size();
\n+
489 }
\n+
\n+
\n+
490 static void scatter(Container& cont, const typename M::size_type& rowsize, std::size_t i)
\n+
491 {
\n+
492 assert(rowsize);
\n+
493 cont.rowsize.getRowSize(i)=rowsize;
\n+
494 }
\n+
\n+
495
\n+
496 };
\n+
\n+
497
\n+
498 template<class M, class I, class RI>
\n+
\n+\n+
500 {
\n+\n+
502
\n+
\n+
503 static const typename M::size_type gather(const Container& cont, std::size_t i)
\n+
504 {
\n+
505 return cont.matrix[i].size();
\n+
506 }
\n+
\n+
\n+
507 static void scatter(Container& cont, const typename M::size_type& rowsize, std::size_t i)
\n+
508 {
\n+
509 assert(rowsize);
\n+
510 if (rowsize > cont.rowsize.getCopyRowSize(i))
\n+
511 cont.rowsize.getCopyRowSize(i)=rowsize;
\n+
512 }
\n+
\n+
513
\n+
514 };
\n+
\n+
515
\n+
516 template<class M, class I>
\n+
\n+\n+
518 {
\n+
519 typedef typename I::GlobalIndex GlobalIndex;
\n+\n+
521 typedef typename M::ConstColIterator ColIter;
\n+
522
\n+
523 static ColIter col;
\n+\n+
525
\n+
\n+
526 static const GlobalIndex& gather(const Container& cont, std::size_t i, std::size_t j)
\n+
527 {
\n+
528 if(j==0)
\n+
529 col=cont.matrix[i].begin();
\n+
530 else if (col!=cont.matrix[i].end())
\n+
531 ++col;
\n+
532
\n+
533 //copy communication: different row sizes for copy rows with the same global index
\n+
534 //are possible. If all values of current matrix row are sent, send
\n+
535 //std::numeric_limits<GlobalIndex>::max()
\n+
536 //and receiver will ignore it.
\n+
537 if (col==cont.matrix[i].end()) {
\n+
538 numlimits = std::numeric_limits<GlobalIndex>::max();
\n+
539 return numlimits;
\n+
540 }
\n+
541 else {
\n+
542 const typename I::IndexPair* index=cont.idxset.pair(col.index());
\n+
543 assert(index);
\n+
544 // Only send index if col is no ghost
\n+
545 if ( index->local().attribute() != 2)
\n+
546 return index->global();
\n+
547 else {
\n+
548 numlimits = std::numeric_limits<GlobalIndex>::max();
\n+
549 return numlimits;
\n+
550 }
\n+
551 }
\n+
552 }
\n+
\n+
\n+
553 static void scatter(Container& cont, const GlobalIndex& gi, std::size_t i, [[maybe_unused]] std::size_t j)
\n+
554 {
\n+
555 try{
\n+
556 if (gi != std::numeric_limits<GlobalIndex>::max()) {
\n+
557 const typename I::IndexPair& ip=cont.aggidxset.at(gi);
\n+
558 assert(ip.global()==gi);
\n+
559 std::size_t column = ip.local();
\n+
560 cont.sparsity[i].insert(column);
\n+
561
\n+\n+
563 if(!OwnerSet::contains(ip.local().attribute()))
\n+
564 // preserve symmetry for overlap
\n+
565 cont.sparsity[column].insert(i);
\n+
566 }
\n+
567 }
\n+
568 catch(const Dune::RangeError&) {
\n+
569 // Entry not present in the new index set. Ignore!
\n+
570#ifdef DEBUG_REPART
\n+
571 typedef typename Container::LookupIndexSet GlobalLookup;
\n+
572 typedef typename GlobalLookup::IndexPair IndexPair;
\n+\n+
574
\n+
575 GlobalLookup lookup(cont.aggidxset);
\n+
576 const IndexPair* pi=lookup.pair(i);
\n+
577 assert(pi);
\n+
578 if(OwnerSet::contains(pi->local().attribute())) {
\n+
579 int rank;
\n+
580 MPI_Comm_rank(MPI_COMM_WORLD,&rank);
\n+
581 std::cout<<rank<<cont.aggidxset<<std::endl;
\n+
582 std::cout<<rank<<": row "<<i<<" (global="<<gi <<") not in index set for owner index "<<pi->global()<<std::endl;
\n+
583 throw;
\n+
584 }
\n+
585#endif
\n+
586 }
\n+
587 }
\n+
\n+
588
\n+
589 };
\n+
\n+
590 template<class M, class I>
\n+\n+
592
\n+
593 template<class M, class I>
\n+\n+
595
\n+
596
\n+
597 template<class M, class I>
\n+
\n+\n+
599 {
\n+
600 typedef typename I::GlobalIndex GlobalIndex;
\n+\n+
602 typedef typename M::ConstColIterator ColIter;
\n+
603 typedef typename std::pair<GlobalIndex,typename M::block_type> Data;
\n+
604 static ColIter col;
\n+\n+\n+
607
\n+
\n+
608 static const Data& gather(const Container& cont, std::size_t i, std::size_t j)
\n+
609 {
\n+
610 if(j==0)
\n+
611 col=cont.matrix[i].begin();
\n+
612 else if (col!=cont.matrix[i].end())
\n+
613 ++col;
\n+
614 // copy communication: different row sizes for copy rows with the same global index
\n+
615 // are possible. If all values of current matrix row are sent, send
\n+
616 // std::numeric_limits<GlobalIndex>::max()
\n+
617 // and receiver will ignore it.
\n+
618 if (col==cont.matrix[i].end()) {
\n+
619 numlimits = std::numeric_limits<GlobalIndex>::max();
\n+\n+
621 return datastore;
\n+
622 }
\n+
623 else {
\n+
624 // convert local column index to global index
\n+
625 const typename I::IndexPair* index=cont.idxset.pair(col.index());
\n+
626 assert(index);
\n+
627 // Store the data to prevent reference to temporary
\n+
628 // Only send index if col is no ghost
\n+
629 if ( index->local().attribute() != 2)
\n+
630 datastore = Data(index->global(),*col);
\n+
631 else {
\n+
632 numlimits = std::numeric_limits<GlobalIndex>::max();
\n+\n+
634 }
\n+
635 return datastore;
\n+
636 }
\n+
637 }
\n+
\n+
\n+
638 static void scatter(Container& cont, const Data& data, std::size_t i, [[maybe_unused]] std::size_t j)
\n+
639 {
\n+
640 try{
\n+
641 if (data.first != std::numeric_limits<GlobalIndex>::max()) {
\n+
642 typename M::size_type column=cont.aggidxset.at(data.first).local();
\n+
643 cont.matrix[i][column]=data.second;
\n+
644 }
\n+
645 }
\n+
646 catch(const Dune::RangeError&) {
\n+
647 // This an overlap row and might therefore lack some entries!
\n+
648 }
\n+
649
\n+
650 }
\n+
\n+
651 };
\n+
\n+
652
\n+
653 template<class M, class I>
\n+\n+
655
\n+
656 template<class M, class I>
\n+\n+
658
\n+
659 template<class M, class I>
\n+\n+
661
\n+
662 template<typename M, typename C>
\n+
\n+
663 void redistributeSparsityPattern(M& origMatrix, M& newMatrix, C& origComm, C& newComm,
\n+\n+
665 {
\n+
666 typename C::CopySet copyflags;
\n+
667 typename C::OwnerSet ownerflags;
\n+
668 typedef typename C::ParallelIndexSet IndexSet;
\n+\n+
670 std::vector<typename M::size_type> rowsize(newComm.indexSet().size(), 0);
\n+
671 std::vector<typename M::size_type> copyrowsize(newComm.indexSet().size(), 0);
\n+
672 std::vector<typename M::size_type> backwardscopyrowsize(origComm.indexSet().size(), 0);
\n+
673
\n+
674 // get owner rowsizes
\n+
675 CommMatrixRowSize<M,RI> commRowSize(origMatrix, ri);
\n+
676 ri.template redistribute<MatrixRowSizeGatherScatter<M,IndexSet,RI> >(commRowSize,commRowSize);
\n+
677
\n+
678 origComm.buildGlobalLookup();
\n+
679
\n+
680 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {
\n+
681 rowsize[i] = ri.getRowSize(i);
\n+
682 }
\n+
683 // get sparsity pattern from owner rows
\n+\n+
685 origsp(origMatrix, origComm.globalLookup(), newComm.indexSet());
\n+\n+
687 newsp(origMatrix, origComm.globalLookup(), newComm.indexSet(), rowsize);
\n+
688
\n+
689 ri.template redistribute<MatrixSparsityPatternGatherScatter<M,IndexSet> >(origsp,newsp);
\n+
690
\n+
691 // build copy to owner interface to get missing matrix values for novlp case
\n+\n+
693 RemoteIndices<IndexSet> *ris = new RemoteIndices<IndexSet>(origComm.indexSet(),
\n+
694 newComm.indexSet(),
\n+
695 origComm.communicator());
\n+
696 ris->template rebuild<true>();
\n+
697
\n+
698 ri.getInterface().free();
\n+
699 ri.getInterface().build(*ris,copyflags,ownerflags);
\n+
700
\n+
701 // get copy rowsizes
\n+
702 CommMatrixRowSize<M,RI> commRowSize_copy(origMatrix, ri);
\n+
703 ri.template redistribute<MatrixCopyRowSizeGatherScatter<M,IndexSet,RI> >(commRowSize_copy,
\n+
704 commRowSize_copy);
\n+
705
\n+
706 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {
\n+
707 copyrowsize[i] = ri.getCopyRowSize(i);
\n+
708 }
\n+
709 //get copy rowsizes for sender
\n+
710 ri.redistributeBackward(backwardscopyrowsize,copyrowsize);
\n+
711 for (std::size_t i=0; i < origComm.indexSet().size(); i++) {
\n+
712 ri.getBackwardsCopyRowSize(i) = backwardscopyrowsize[i];
\n+
713 }
\n+
714
\n+
715 // get sparsity pattern from copy rows
\n+
716 CommMatrixSparsityPattern<M,IndexSet> origsp_copy(origMatrix,
\n+
717 origComm.globalLookup(),
\n+
718 newComm.indexSet(),
\n+
719 backwardscopyrowsize);
\n+
720 CommMatrixSparsityPattern<M,IndexSet> newsp_copy(origMatrix, origComm.globalLookup(),
\n+
721 newComm.indexSet(), copyrowsize);
\n+
722 ri.template redistribute<MatrixSparsityPatternGatherScatter<M,IndexSet> >(origsp_copy,
\n+
723 newsp_copy);
\n+
724
\n+
725 newsp.completeSparsityPattern(newsp_copy.sparsity);
\n+
726 newsp.storeSparsityPattern(newMatrix);
\n+
727 }
\n+
728 else
\n+
729 newsp.storeSparsityPattern(newMatrix);
\n+
730
\n+
731#ifdef DUNE_ISTL_WITH_CHECKING
\n+
732 // Check for symmetry
\n+
733 int ret=0;
\n+
734 typedef typename M::ConstRowIterator RIter;
\n+
735 for(RIter row=newMatrix.begin(), rend=newMatrix.end(); row != rend; ++row) {
\n+
736 typedef typename M::ConstColIterator CIter;
\n+
737 for(CIter col=row->begin(), cend=row->end(); col!=cend; ++col)
\n+
738 {
\n+
739 try{
\n+
740 newMatrix[col.index()][row.index()];
\n+
741 }catch(const Dune::ISTLError&) {
\n+
742 std::cerr<<newComm.communicator().rank()<<": entry ("
\n+
743 <<col.index()<<","<<row.index()<<") missing! for symmetry!"<<std::endl;
\n+
744 ret=1;
\n+
745
\n+
746 }
\n+
747
\n+
748 }
\n+
749 }
\n+
750
\n+
751 if(ret)
\n+
752 DUNE_THROW(ISTLError, "Matrix not symmetric!");
\n+
753#endif
\n+
754 }
\n+
\n+
755
\n+
756 template<typename M, typename C>
\n+
\n+
757 void redistributeMatrixEntries(M& origMatrix, M& newMatrix, C& origComm, C& newComm,
\n+\n+
759 {
\n+
760 typedef typename C::ParallelIndexSet IndexSet;
\n+
761 typename C::OwnerSet ownerflags;
\n+
762 std::vector<typename M::size_type> rowsize(newComm.indexSet().size(), 0);
\n+
763 std::vector<typename M::size_type> copyrowsize(newComm.indexSet().size(), 0);
\n+
764 std::vector<typename M::size_type> backwardscopyrowsize(origComm.indexSet().size(), 0);
\n+
765
\n+
766 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {
\n+
767 rowsize[i] = ri.getRowSize(i);
\n+\n+
769 copyrowsize[i] = ri.getCopyRowSize(i);
\n+
770 }
\n+
771 }
\n+
772
\n+
773 for (std::size_t i=0; i < origComm.indexSet().size(); i++)
\n+\n+
775 backwardscopyrowsize[i] = ri.getBackwardsCopyRowSize(i);
\n+
776
\n+
777
\n+\n+
779 // fill sparsity pattern from copy rows
\n+
780 CommMatrixRow<M,IndexSet> origrow_copy(origMatrix, origComm.globalLookup(),
\n+
781 newComm.indexSet(), backwardscopyrowsize);
\n+
782 CommMatrixRow<M,IndexSet> newrow_copy(newMatrix, origComm.globalLookup(),
\n+
783 newComm.indexSet(),copyrowsize);
\n+
784 ri.template redistribute<MatrixRowGatherScatter<M,IndexSet> >(origrow_copy,
\n+
785 newrow_copy);
\n+
786 ri.getInterface().free();
\n+
787 RemoteIndices<IndexSet> *ris = new RemoteIndices<IndexSet>(origComm.indexSet(),
\n+
788 newComm.indexSet(),
\n+
789 origComm.communicator());
\n+
790 ris->template rebuild<true>();
\n+
791 ri.getInterface().build(*ris,ownerflags,ownerflags);
\n+
792 }
\n+
793
\n+\n+
795 origrow(origMatrix, origComm.globalLookup(), newComm.indexSet());
\n+\n+
797 newrow(newMatrix, origComm.globalLookup(), newComm.indexSet(),rowsize);
\n+
798 ri.template redistribute<MatrixRowGatherScatter<M,IndexSet> >(origrow,newrow);
\n+
799 if (SolverCategory::category(origComm) != static_cast<int>(SolverCategory::nonoverlapping))
\n+\n+
801 }
\n+
\n+
802
\n+
819 template<typename M, typename C>
\n+
\n+
820 void redistributeMatrix(M& origMatrix, M& newMatrix, C& origComm, C& newComm,
\n+\n+
822 {
\n+
823 ri.setNoRows(newComm.indexSet().size());
\n+
824 ri.setNoCopyRows(newComm.indexSet().size());
\n+
825 ri.setNoBackwardsCopyRows(origComm.indexSet().size());
\n+
826 redistributeSparsityPattern(origMatrix, newMatrix, origComm, newComm, ri);
\n+
827 redistributeMatrixEntries(origMatrix, newMatrix, origComm, newComm, ri);
\n+
828 }
\n+
\n+
829#endif
\n+
830
\n+
831template<typename M>
\n+
\n+
832 void redistributeMatrixEntries(M& origMatrix, M& newMatrix,
\n+\n+\n+\n+
836 {
\n+
837 DUNE_THROW(InvalidStateException, "Trying to redistribute in sequential program!");
\n+
838 }
\n+
\n+
839 template<typename M>
\n+
\n+
840 void redistributeMatrix(M& origMatrix, M& newMatrix,
\n+\n+\n+\n+
844 {
\n+
845 DUNE_THROW(InvalidStateException, "Trying to redistribute in sequential program!");
\n+
846 }
\n+
\n+
847}
\n+
848#endif
\n+
Classes providing communication interfaces for overlapping Schwarz methods.
\n+\n+
Functionality for redistributing a parallel index set using graph partitioning.
\n+
Col col
Definition matrixmatrix.hh:351
\n
Definition allocator.hh:11
\n-
A linear operator exporting itself in matrix form.
Definition operators.hh:109
\n-
An overlapping Schwarz operator.
Definition schwarz.hh:75
\n-
const communication_type & getCommunication() const
Get the object responsible for communication.
Definition schwarz.hh:146
\n-
virtual const matrix_type & getmat() const
get the sequential assembled linear operator.
Definition schwarz.hh:133
\n-
virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const
apply operator to x, scale and add:
Definition schwarz.hh:125
\n-
virtual void apply(const X &x, Y &y) const
apply operator to x:
Definition schwarz.hh:116
\n-
C communication_type
The type of the communication object.
Definition schwarz.hh:98
\n-
X domain_type
The type of the domain.
Definition schwarz.hh:86
\n-
M matrix_type
The type of the matrix we operate on.
Definition schwarz.hh:81
\n-
Y range_type
The type of the range.
Definition schwarz.hh:91
\n-
X::field_type field_type
The field type of the range.
Definition schwarz.hh:93
\n-
OverlappingSchwarzOperator(const matrix_type &A, const communication_type &com)
constructor: just store a reference to a matrix.
Definition schwarz.hh:107
\n-
OverlappingSchwarzOperator(const std::shared_ptr< matrix_type > A, const communication_type &com)
Definition schwarz.hh:111
\n-
virtual SolverCategory::Category category() const
Category of the linear operator (see SolverCategory::Category)
Definition schwarz.hh:139
\n-
Base class for matrix free definition of preconditioners.
Definition preconditioner.hh:32
\n-
A parallel SSOR preconditioner.
Definition schwarz.hh:175
\n-
X::field_type field_type
The field type of the preconditioner.
Definition schwarz.hh:184
\n-
C communication_type
The type of the communication object.
Definition schwarz.hh:186
\n-
virtual SolverCategory::Category category() const
Category of the preconditioner (see SolverCategory::Category)
Definition schwarz.hh:233
\n-
ParSSOR(const matrix_type &A, int n, field_type w, const communication_type &c)
Constructor.
Definition schwarz.hh:197
\n-
virtual void post(X &x)
Clean up.
Definition schwarz.hh:230
\n-
X domain_type
The domain type of the preconditioner.
Definition schwarz.hh:180
\n-
Y range_type
The range type of the preconditioner.
Definition schwarz.hh:182
\n-
M matrix_type
The matrix type the preconditioner is for.
Definition schwarz.hh:178
\n-
virtual void apply(X &v, const Y &d)
Apply the precondtioner.
Definition schwarz.hh:216
\n-
virtual void pre(X &x, Y &b)
Prepare the preconditioner.
Definition schwarz.hh:206
\n-
Block parallel preconditioner.
Definition schwarz.hh:278
\n-
virtual void pre(X &x, Y &b)
Prepare the preconditioner.
Definition schwarz.hh:326
\n-
X domain_type
The domain type of the preconditioner.
Definition schwarz.hh:285
\n-
BlockPreconditioner(const std::shared_ptr< P > &p, const communication_type &c)
Constructor.
Definition schwarz.hh:317
\n-
virtual void apply(X &v, const Y &d)
Apply the preconditioner.
Definition schwarz.hh:337
\n-
BlockPreconditioner(P &p, const communication_type &c)
Constructor.
Definition schwarz.hh:306
\n-
void apply(X &v, const Y &d)
Apply one step of the preconditioner to the system A(v)=d.
Definition schwarz.hh:344
\n-
C communication_type
The type of the communication object..
Definition schwarz.hh:297
\n-
X::field_type field_type
The field type of the preconditioner.
Definition schwarz.hh:292
\n-
virtual void post(X &x)
Clean up.
Definition schwarz.hh:355
\n-
Y range_type
The range type of the preconditioner.
Definition schwarz.hh:290
\n-
virtual SolverCategory::Category category() const
Category of the preconditioner (see SolverCategory::Category)
Definition schwarz.hh:361
\n-
Category
Definition solvercategory.hh:23
\n-
@ overlapping
Category for overlapping solvers.
Definition solvercategory.hh:29
\n+
void redistributeMatrixEntries(M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
Definition matrixredistribute.hh:757
\n+
void redistributeSparsityPattern(M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
Definition matrixredistribute.hh:663
\n+
void redistributeMatrix(M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
Redistribute a matrix according to given domain decompositions.
Definition matrixredistribute.hh:820
\n+
derive error class from the base class in common
Definition istlexception.hh:19
\n+
Definition matrixredistribute.hh:22
\n+
void setNoBackwardsCopyRows(std::size_t size)
Definition matrixredistribute.hh:44
\n+
void redistribute(const D &from, D &to) const
Definition matrixredistribute.hh:28
\n+
void resetSetup()
Definition matrixredistribute.hh:35
\n+
void setNoCopyRows(std::size_t size)
Definition matrixredistribute.hh:41
\n+
bool isSetup() const
Definition matrixredistribute.hh:23
\n+
void setNoRows(std::size_t size)
Definition matrixredistribute.hh:38
\n+
void redistributeBackward(D &from, const D &to) const
Definition matrixredistribute.hh:32
\n+
std::size_t getBackwardsCopyRowSize(std::size_t index) const
Definition matrixredistribute.hh:57
\n+
std::size_t getRowSize(std::size_t index) const
Definition matrixredistribute.hh:47
\n+
std::size_t getCopyRowSize(std::size_t index) const
Definition matrixredistribute.hh:52
\n+
std::size_t getRowSize(std::size_t index) const
Definition matrixredistribute.hh:158
\n+
std::size_t & getBackwardsCopyRowSize(std::size_t index)
Definition matrixredistribute.hh:173
\n+
RedistributeInterface & getInterface()
Definition matrixredistribute.hh:75
\n+
void redistribute(const D &from, D &to) const
Definition matrixredistribute.hh:136
\n+
void setNoBackwardsCopyRows(std::size_t rows)
Definition matrixredistribute.hh:193
\n+
std::size_t & getCopyRowSize(std::size_t index)
Definition matrixredistribute.hh:163
\n+\n+
std::size_t getCopyRowSize(std::size_t index) const
Definition matrixredistribute.hh:168
\n+
void setNoRows(std::size_t rows)
Definition matrixredistribute.hh:183
\n+
void reserve(std::size_t size)
Definition matrixredistribute.hh:150
\n+
OwnerOverlapCopyCommunication< T, T1 > Comm
Definition matrixredistribute.hh:69
\n+
void setNoCopyRows(std::size_t rows)
Definition matrixredistribute.hh:188
\n+
void redistributeBackward(D &from, const D &to) const
Definition matrixredistribute.hh:141
\n+\n+
std::size_t getBackwardsCopyRowSize(std::size_t index) const
Definition matrixredistribute.hh:178
\n+
void redistribute(const D &from, D &to) const
Definition matrixredistribute.hh:118
\n+\n+
void redistributeBackward(D &from, const D &to) const
Definition matrixredistribute.hh:126
\n+
void checkInterface(const IS &source, const IS &target, MPI_Comm comm)
Definition matrixredistribute.hh:80
\n+
bool isSetup() const
Definition matrixredistribute.hh:145
\n+
std::size_t & getRowSize(std::size_t index)
Definition matrixredistribute.hh:153
\n+
Utility class to communicate and set the row sizes of a redistributed matrix.
Definition matrixredistribute.hh:216
\n+
M::size_type size_type
Definition matrixredistribute.hh:219
\n+
M::size_type value_type
Definition matrixredistribute.hh:218
\n+
RI & rowsize
Definition matrixredistribute.hh:230
\n+
const M & matrix
Definition matrixredistribute.hh:229
\n+
CommMatrixRowSize(const M &m_, RI &rowsize_)
Constructor.
Definition matrixredistribute.hh:226
\n+
Utility class to communicate and build the sparsity pattern of a redistributed matrix.
Definition matrixredistribute.hh:245
\n+
M::size_type size_type
Definition matrixredistribute.hh:246
\n+
const Dune::GlobalLookupIndexSet< I > & idxset
Definition matrixredistribute.hh:356
\n+
void storeSparsityPattern(M &m)
Creates and stores the sparsity pattern of the redistributed matrix.
Definition matrixredistribute.hh:276
\n+
const I & aggidxset
Definition matrixredistribute.hh:357
\n+
const std::vector< size_type > * rowsize
Definition matrixredistribute.hh:359
\n+
void completeSparsityPattern(std::vector< std::set< size_type > > add_sparsity)
Completes the sparsity pattern of the redistributed matrix with data from copy rows for the novlp cas...
Definition matrixredistribute.hh:340
\n+
CommMatrixSparsityPattern(const M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_)
Constructor for the original side.
Definition matrixredistribute.hh:254
\n+
const M & matrix
Definition matrixredistribute.hh:354
\n+
CommMatrixSparsityPattern(const M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_, const std::vector< typename M::size_type > &rowsize_)
Constructor for the redistruted side.
Definition matrixredistribute.hh:265
\n+
std::vector< std::set< size_type > > sparsity
Definition matrixredistribute.hh:358
\n+
Dune::GlobalLookupIndexSet< I > LookupIndexSet
Definition matrixredistribute.hh:355
\n+
static M::size_type getSize(const Type &t, std::size_t i)
Definition matrixredistribute.hh:376
\n+
CommMatrixSparsityPattern< M, I > Type
Definition matrixredistribute.hh:365
\n+
I::GlobalIndex IndexedType
The indexed type we send. This is the global index indentitfying the column.
Definition matrixredistribute.hh:371
\n+
VariableSize IndexedTypeFlag
Each row varies in size.
Definition matrixredistribute.hh:374
\n+
Utility class for comunicating the matrix entries.
Definition matrixredistribute.hh:396
\n+
std::vector< size_t > * rowsize
row size information for the receiving side.
Definition matrixredistribute.hh:452
\n+
M & matrix
The matrix to communicate the values of.
Definition matrixredistribute.hh:446
\n+
CommMatrixRow(M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_, std::vector< size_t > &rowsize_)
Constructor.
Definition matrixredistribute.hh:412
\n+
const Dune::GlobalLookupIndexSet< I > & idxset
Index set for the original matrix.
Definition matrixredistribute.hh:448
\n+
void setOverlapRowsToDirichlet()
Sets the non-owner rows correctly as Dirichlet boundaries.
Definition matrixredistribute.hh:421
\n+
const I & aggidxset
Index set for the redistributed matrix.
Definition matrixredistribute.hh:450
\n+
CommMatrixRow(M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_)
Constructor.
Definition matrixredistribute.hh:405
\n+
std::pair< typename I::GlobalIndex, typename M::block_type > IndexedType
The indexed type we send. This is the pair of global index indentitfying the column and the value its...
Definition matrixredistribute.hh:464
\n+
CommMatrixRow< M, I > Type
Definition matrixredistribute.hh:458
\n+
static std::size_t getSize(const Type &t, std::size_t i)
Definition matrixredistribute.hh:469
\n+
VariableSize IndexedTypeFlag
Each row varies in size.
Definition matrixredistribute.hh:467
\n+
Definition matrixredistribute.hh:483
\n+
static void scatter(Container &cont, const typename M::size_type &rowsize, std::size_t i)
Definition matrixredistribute.hh:490
\n+
static const M::size_type gather(const Container &cont, std::size_t i)
Definition matrixredistribute.hh:486
\n+
CommMatrixRowSize< M, RI > Container
Definition matrixredistribute.hh:484
\n+
Definition matrixredistribute.hh:500
\n+
static const M::size_type gather(const Container &cont, std::size_t i)
Definition matrixredistribute.hh:503
\n+
static void scatter(Container &cont, const typename M::size_type &rowsize, std::size_t i)
Definition matrixredistribute.hh:507
\n+
CommMatrixRowSize< M, RI > Container
Definition matrixredistribute.hh:501
\n+
Definition matrixredistribute.hh:518
\n+
M::ConstColIterator ColIter
Definition matrixredistribute.hh:521
\n+
static void scatter(Container &cont, const GlobalIndex &gi, std::size_t i, std::size_t j)
Definition matrixredistribute.hh:553
\n+
CommMatrixSparsityPattern< M, I > Container
Definition matrixredistribute.hh:520
\n+
static GlobalIndex numlimits
Definition matrixredistribute.hh:524
\n+
static ColIter col
Definition matrixredistribute.hh:523
\n+
I::GlobalIndex GlobalIndex
Definition matrixredistribute.hh:519
\n+
static const GlobalIndex & gather(const Container &cont, std::size_t i, std::size_t j)
Definition matrixredistribute.hh:526
\n+
Definition matrixredistribute.hh:599
\n+
I::GlobalIndex GlobalIndex
Definition matrixredistribute.hh:600
\n+
static Data datastore
Definition matrixredistribute.hh:605
\n+
static GlobalIndex numlimits
Definition matrixredistribute.hh:606
\n+
M::ConstColIterator ColIter
Definition matrixredistribute.hh:602
\n+
static const Data & gather(const Container &cont, std::size_t i, std::size_t j)
Definition matrixredistribute.hh:608
\n+
std::pair< GlobalIndex, typename M::block_type > Data
Definition matrixredistribute.hh:603
\n+
static void scatter(Container &cont, const Data &data, std::size_t i, std::size_t j)
Definition matrixredistribute.hh:638
\n+
static ColIter col
Definition matrixredistribute.hh:604
\n+
CommMatrixRow< M, I > Container
Definition matrixredistribute.hh:601
\n+
A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
Definition owneroverlapcopy.hh:174
\n+
EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner > OwnerSet
Definition owneroverlapcopy.hh:194
\n+
Definition pinfo.hh:28
\n+
Definition repartition.hh:260
\n+
@ nonoverlapping
Category for non-overlapping solvers.
Definition solvercategory.hh:27
\n+
static Category category(const OP &op, decltype(op.category()) *=nullptr)
Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
Definition solvercategory.hh:34
\n
\n \n
\n Generated by \"doxygen\"/ 1.9.8\n
\n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,395 +1,1173 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-schwarz.hh\n+matrixredistribute.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_SCHWARZ_HH\n-6#define DUNE_ISTL_SCHWARZ_HH\n-7\n-8#include // for input/output to shell\n-9#include // for input/output to files\n-10#include // STL vector class\n-11#include \n-12\n-13#include // Yes, we do some math here\n-14\n-15#include \n-16\n-17#include \"_\bi_\bo_\b._\bh_\bh\"\n-18#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-19#include \"_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-20#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-21#include \"_\bi_\bo_\b._\bh_\bh\"\n-22#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n-23#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n-24#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n-25#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n-26#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n-27#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n-28#include \"_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\"\n-29\n-30namespace _\bD_\bu_\bn_\be {\n-31\n-73 template\n-_\b7_\b4 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br : public _\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-75 {\n-76 public:\n-_\b8_\b1 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b8_\b6 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b9_\b1 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b9_\b3 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b9_\b8 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n-99\n-_\b1_\b0_\b7 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br (const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& A, const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be&\n-com)\n-108 : _A_(stackobject_to_shared_ptr(A)), communication(com)\n-109 {}\n-110\n-_\b1_\b1_\b1 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br (const std::shared_ptr A, const\n-_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& com)\n-112 : _A_(A), communication(com)\n-113 {}\n-114\n-_\b1_\b1_\b6 virtual void _\ba_\bp_\bp_\bl_\by (const X& x, Y& y) const\n-117 {\n-118 y = 0;\n-119 _A_->umv(x,y); // result is consistent on interior+border\n-120 communication.project(y); // we want this here to avoid it before the\n-preconditioner\n-121 // since there d is const!\n-122 }\n-123\n-_\b1_\b2_\b5 virtual void _\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd (_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha, const X& x, Y& y) const\n-126 {\n-127 _A_->usmv(alpha,x,y); // result is consistent on interior+border\n-128 communication.project(y); // we want this here to avoid it before the\n-preconditioner\n-129 // since there d is const!\n-130 }\n-131\n-_\b1_\b3_\b3 virtual const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bg_\be_\bt_\bm_\ba_\bt () const\n-134 {\n-135 return *_A_;\n-136 }\n-137\n-_\b1_\b3_\b9 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-140 {\n-141 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg;\n-142 }\n-143\n-144\n-_\b1_\b4_\b6 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn() const\n-147 {\n-148 return communication;\n-149 }\n-150 private:\n-151 const std::shared_ptr_A_;\n-152 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& communication;\n-153 };\n-154\n-157 /*\n-158 * @addtogroup ISTL_Prec\n-159 * @{\n-160 */\n-174 template\n-_\b1_\b7_\b5 class _\bP_\ba_\br_\bS_\bS_\bO_\bR : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n-176 public:\n-_\b1_\b7_\b8 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b1_\b8_\b0 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b1_\b8_\b2 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b1_\b8_\b4 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b1_\b8_\b6 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n+5#ifndef DUNE_ISTL_MATRIXREDISTRIBUTE_HH\n+6#define DUNE_ISTL_MATRIXREDISTRIBUTE_HH\n+7#include \n+8#include \"_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+9#include \n+10#include \n+11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n+12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh>\n+18namespace _\bD_\bu_\bn_\be\n+19{\n+20 template\n+_\b2_\b1 struct _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+22 {\n+_\b2_\b3 bool _\bi_\bs_\bS_\be_\bt_\bu_\bp() const\n+24 {\n+25 return false;\n+26 }\n+27 template\n+_\b2_\b8 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be([[maybe_unused]] const D& from, [[maybe_unused]] D& to)\n+const\n+29 {}\n+30\n+31 template\n+_\b3_\b2 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd([[maybe_unused]] D& from, [[maybe_unused]]const D&\n+to) const\n+33 {}\n+34\n+_\b3_\b5 void _\br_\be_\bs_\be_\bt_\bS_\be_\bt_\bu_\bp()\n+36 {}\n+37\n+_\b3_\b8 void _\bs_\be_\bt_\bN_\bo_\bR_\bo_\bw_\bs([[maybe_unused]] std::size_t size)\n+39 {}\n+40\n+_\b4_\b1 void _\bs_\be_\bt_\bN_\bo_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs([[maybe_unused]] std::size_t size)\n+42 {}\n+43\n+_\b4_\b4 void _\bs_\be_\bt_\bN_\bo_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs([[maybe_unused]] std::size_t size)\n+45 {}\n+46\n+_\b4_\b7 std::size_t _\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be([[maybe_unused]] std::size_t index) const\n+48 {\n+49 return -1;\n+50 }\n+51\n+_\b5_\b2 std::size_t _\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be([[maybe_unused]] std::size_t index) const\n+53 {\n+54 return -1;\n+55 }\n+56\n+_\b5_\b7 std::size_t _\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be([[maybe_unused]] std::size_t index)\n+const\n+58 {\n+59 return -1;\n+60 }\n+61\n+62 };\n+63\n+64#if HAVE_MPI\n+65 template\n+_\b6_\b6 class _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn<_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn >\n+67 {\n+68 public:\n+_\b6_\b9 typedef _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b,_\bT_\b1_\b> _\bC_\bo_\bm_\bm;\n+70\n+_\b7_\b1 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn()\n+72 : interface(), setup_(false)\n+73 {}\n+74\n+_\b7_\b5 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& _\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be()\n+76 {\n+77 return interface;\n+78 }\n+79 template\n+_\b8_\b0 void _\bc_\bh_\be_\bc_\bk_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be(const IS& source,\n+81 const IS& target, MPI_Comm comm)\n+82 {\n+83 auto ri = std::make_unique >(source, target, comm);\n+84 ri->template rebuild();\n+85 Interface inf;\n+86 typename _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bn_\bt_\b>_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt flags;\n+87 int rank;\n+88 MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n+89 inf.free();\n+90 inf.build(*ri, flags, flags);\n+91\n+92\n+93#ifdef DEBUG_REPART\n+94 if(inf!=interface) {\n+95\n+96 MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n+97 if(rank==0)\n+98 std::cout<<\"Interfaces do not match!\"<\n+_\b1_\b1_\b8 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be(const D& from, D& to) const\n+119 {\n+120 BufferedCommunicator communicator;\n+121 communicator.template build(from,to, interface);\n+122 communicator.template forward(from, to);\n+123 communicator.free();\n+124 }\n+125 template\n+_\b1_\b2_\b6 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd(D& from, const D& to) const\n+127 {\n+128\n+129 BufferedCommunicator communicator;\n+130 communicator.template build(from,to, interface);\n+131 communicator.template backward(from, to);\n+132 communicator.free();\n+133 }\n+134\n+135 template\n+_\b1_\b3_\b6 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be(const D& from, D& to) const\n+137 {\n+138 redistribute >(from,to);\n+139 }\n+140 template\n+_\b1_\b4_\b1 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd(D& from, const D& to) const\n+142 {\n+143 redistributeBackward >(from,to);\n+144 }\n+_\b1_\b4_\b5 bool _\bi_\bs_\bS_\be_\bt_\bu_\bp() const\n+146 {\n+147 return setup_;\n+148 }\n+149\n+_\b1_\b5_\b0 void _\br_\be_\bs_\be_\br_\bv_\be(std::size_t size)\n+151 {}\n+152\n+_\b1_\b5_\b3 std::size_t& _\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index)\n+154 {\n+155 return rowSize[index];\n+156 }\n+157\n+_\b1_\b5_\b8 std::size_t _\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index) const\n+159 {\n+160 return rowSize[index];\n+161 }\n+162\n+_\b1_\b6_\b3 std::size_t& _\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index)\n+164 {\n+165 return copyrowSize[index];\n+166 }\n+167\n+_\b1_\b6_\b8 std::size_t _\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index) const\n+169 {\n+170 return copyrowSize[index];\n+171 }\n+172\n+_\b1_\b7_\b3 std::size_t& _\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index)\n+174 {\n+175 return backwardscopyrowSize[index];\n+176 }\n+177\n+_\b1_\b7_\b8 std::size_t _\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index) const\n+179 {\n+180 return backwardscopyrowSize[index];\n+181 }\n+182\n+_\b1_\b8_\b3 void _\bs_\be_\bt_\bN_\bo_\bR_\bo_\bw_\bs(std::size_t rows)\n+184 {\n+185 rowSize.resize(rows, 0);\n+186 }\n 187\n-_\b1_\b9_\b7 _\bP_\ba_\br_\bS_\bS_\bO_\bR (const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& A, int n, _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w, const\n-_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& c)\n-198 : _A_(A), _n(n), _w(w), communication(c)\n-199 { }\n-200\n-_\b2_\b0_\b6 virtual void _\bp_\br_\be (X& x, [[maybe_unused]] Y& b)\n-207 {\n-208 communication.copyOwnerToAll(x,x); // make dirichlet values consistent\n-209 }\n-210\n-_\b2_\b1_\b6 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n-217 {\n-218 for (int i=0; i<_n; i++) {\n-219 _\bb_\bs_\bo_\br_\bf(_A_,v,d,_w);\n-220 _\bb_\bs_\bo_\br_\bb(_A_,v,d,_w);\n-221 }\n-222 communication.copyOwnerToAll(v,v);\n-223 }\n-224\n-_\b2_\b3_\b0 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x) {}\n+_\b1_\b8_\b8 void _\bs_\be_\bt_\bN_\bo_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs(std::size_t rows)\n+189 {\n+190 copyrowSize.resize(rows, 0);\n+191 }\n+192\n+_\b1_\b9_\b3 void _\bs_\be_\bt_\bN_\bo_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs(std::size_t rows)\n+194 {\n+195 backwardscopyrowSize.resize(rows, 0);\n+196 }\n+197\n+198 private:\n+199 std::vector rowSize;\n+200 std::vector copyrowSize;\n+201 std::vector backwardscopyrowSize;\n+202 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be interface;\n+203 bool setup_;\n+204 };\n+205\n+214 template\n+_\b2_\b1_\b5 struct _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+216 {\n+217 // Make the default communication policy work.\n+_\b2_\b1_\b8 typedef typename M::size_type _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be;\n+_\b2_\b1_\b9 typedef typename M::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+220\n+_\b2_\b2_\b6 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be(const M& m_, RI& rowsize_)\n+227 : _\bm_\ba_\bt_\br_\bi_\bx(m_), _\br_\bo_\bw_\bs_\bi_\bz_\be(rowsize_)\n+228 {}\n+_\b2_\b2_\b9 const M& _\bm_\ba_\bt_\br_\bi_\bx;\n+_\b2_\b3_\b0 RI& _\br_\bo_\bw_\bs_\bi_\bz_\be;\n 231\n-_\b2_\b3_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-234 {\n-235 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg;\n-236 }\n-237\n-238 private:\n-240 const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _A_;\n-242 int _n;\n-244 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _w;\n-_\b2_\b4_\b6 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& communication;\n-247 };\n-248\n-249 namespace Amg\n-250 {\n-251 template struct ConstructionTraits;\n-252 }\n-253\n-277 template >\n-_\b2_\b7_\b8 class _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n-279 friend struct Amg::ConstructionTraits<_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >;\n-280 public:\n-_\b2_\b8_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b2_\b9_\b0 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b2_\b9_\b2 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b2_\b9_\b7 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n+232 };\n+233\n+234\n+243 template\n+_\b2_\b4_\b4 struct _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n+245 {\n+_\b2_\b4_\b6 typedef typename M::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+247\n+_\b2_\b5_\b4 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(const M& m_, const Dune::GlobalLookupIndexSet&\n+idxset_, const I& aggidxset_)\n+255 : _\bm_\ba_\bt_\br_\bi_\bx(m_), _\bi_\bd_\bx_\bs_\be_\bt(idxset_), _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt(aggidxset_), _\br_\bo_\bw_\bs_\bi_\bz_\be()\n+256 {}\n+257\n+_\b2_\b6_\b5 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(const M& m_, const Dune::GlobalLookupIndexSet&\n+idxset_, const I& aggidxset_,\n+266 const std::vector& rowsize_)\n+267 : _\bm_\ba_\bt_\br_\bi_\bx(m_), _\bi_\bd_\bx_\bs_\be_\bt(idxset_), _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt(aggidxset_), _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by\n+(aggidxset_.size()), _\br_\bo_\bw_\bs_\bi_\bz_\be(&rowsize_)\n+268 {}\n+269\n+_\b2_\b7_\b6 void _\bs_\bt_\bo_\br_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(M& m)\n+277 {\n+278 // insert diagonal to overlap rows\n+279 typedef typename Dune::GlobalLookupIndexSet::const_iterator IIter;\n+280 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bn_\bt_\b>_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n+OwnerSet;\n+281 std::size_t nnz=0;\n+282#ifdef DEBUG_REPART\n+283 int rank;\n+284\n+285 MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n+286#endif\n+287 for(IIter i= _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.begin(), end=_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.end(); i!=end; ++i) {\n+288 if(!OwnerSet::contains(i->local().attribute())) {\n+289#ifdef DEBUG_REPART\n+290 std::cout<local()<local()].insert(i->local());\n+293 }\n+294\n+295 nnz+=_\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[i->local()].size();\n+296 }\n+297 assert( _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.size()==_\bs_\bp_\ba_\br_\bs_\bi_\bt_\by.size());\n 298\n-_\b3_\b0_\b6 _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br (P& p, const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& c)\n-307 : _preconditioner(stackobject_to_shared_ptr(p)), _communication(c)\n-308 { }\n-309\n-_\b3_\b1_\b7 _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br (const std::shared_ptr

& p, const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be&\n-c)\n-318 : _preconditioner(p), _communication(c)\n-319 { }\n-320\n-_\b3_\b2_\b6 virtual void _\bp_\br_\be (X& x, Y& b)\n-327 {\n-328 _communication.copyOwnerToAll(x,x); // make dirichlet values consistent\n-329 _preconditioner->pre(x,b);\n+299 if(nnz>0) {\n+300 m.setSize(_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.size(), _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.size(), nnz);\n+301 m.setBuildMode(M::row_wise);\n+302 typename M::CreateIterator citer=m.createbegin();\n+303#ifdef DEBUG_REPART\n+304 std::size_t idx=0;\n+305 bool correct=true;\n+306 Dune::GlobalLookupIndexSet global(_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt);\n+307#endif\n+308 typedef typename std::vector >::const_iterator Iter;\n+309 for(Iter i=_\bs_\bp_\ba_\br_\bs_\bi_\bt_\by.begin(), end=_\bs_\bp_\ba_\br_\bs_\bi_\bt_\by.end(); i!=end; ++i, ++citer)\n+310 {\n+311 typedef typename std::set::const_iterator SIter;\n+312 for(SIter si=i->begin(), send=i->end(); si!=send; ++si)\n+313 citer.insert(*si);\n+314#ifdef DEBUG_REPART\n+315 if(i->find(idx)==i->end()) {\n+316 const typename I::IndexPair* gi=global.pair(idx);\n+317 assert(gi);\n+318 std::cout<global()<<\" attr=\"<local().attribute()<<\" \"<<\n+319 OwnerSet::contains(gi->local().attribute())<<\n+320 \" row size=\"<size()<apply(v,d);\n-340 _communication.copyOwnerToAll(v,v);\n-341 }\n-342\n-343 template\n-_\b3_\b4_\b4 void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n-345 {\n-346 _preconditioner->template apply(v,d);\n-347 _communication.copyOwnerToAll(v,v);\n-348 }\n-349\n-_\b3_\b5_\b5 virtual void _\bp_\bo_\bs_\bt (X& x)\n-356 {\n-357 _preconditioner->post(x);\n-358 }\n-359\n-_\b3_\b6_\b1 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-362 {\n-363 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg;\n-364 }\n-365\n-366 private:\n-368 std::shared_ptr

_preconditioner;\n-369\n-371 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& _communication;\n-372 };\n-373\n-376} // end namespace\n-377\n-378#endif\n-_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\n-Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n-generic way.\n-_\bi_\bo_\b._\bh_\bh\n-Some generic functions for pretty printing vectors and matrices.\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n-Define general preconditioner interface.\n-_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n-Define base class for scalar product and norm.\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n-Implementations of the inverse operator interface.\n-_\bi_\bl_\bu_\b._\bh_\bh\n-The incomplete LU factorization kernels.\n-_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n-Define general, extensible interface for operators. The available\n-implementation wraps a matrix.\n-_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-???\n+331 }\n+332\n+_\b3_\b4_\b0 void _\bc_\bo_\bm_\bp_\bl_\be_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(std::vector >\n+add_sparsity)\n+341 {\n+342 for (unsigned int i = 0; i != _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by.size(); ++i) {\n+343 if (add_sparsity[i].size() != 0) {\n+344 typedef std::set Set;\n+345 Set tmp_set;\n+346 std::insert_iterator tmp_insert (tmp_set, tmp_set.begin());\n+347 std::set_union(add_sparsity[i].begin(), add_sparsity[i].end(),\n+348 _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[i].begin(), _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[i].end(), tmp_insert);\n+349 _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[i].swap(tmp_set);\n+350 }\n+351 }\n+352 }\n+353\n+_\b3_\b5_\b4 const M& _\bm_\ba_\bt_\br_\bi_\bx;\n+_\b3_\b5_\b5 typedef Dune::GlobalLookupIndexSet _\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+_\b3_\b5_\b6 const Dune::GlobalLookupIndexSet& _\bi_\bd_\bx_\bs_\be_\bt;\n+_\b3_\b5_\b7 const I& _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt;\n+_\b3_\b5_\b8 std::vector > _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by;\n+_\b3_\b5_\b9 const std::vector* _\br_\bo_\bw_\bs_\bi_\bz_\be;\n+360 };\n+361\n+362 template\n+_\b3_\b6_\b3 struct CommPolicy<_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn >\n+364 {\n+_\b3_\b6_\b5 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\b> _\bT_\by_\bp_\be;\n+366\n+_\b3_\b7_\b1 typedef typename I::GlobalIndex _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n+372\n+_\b3_\b7_\b4 typedef VariableSize _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg;\n+375\n+_\b3_\b7_\b6 static typename M::size_type _\bg_\be_\bt_\bS_\bi_\bz_\be(const _\bT_\by_\bp_\be& t, std::size_t i)\n+377 {\n+378 if(!t._\br_\bo_\bw_\bs_\bi_\bz_\be)\n+379 return t._\bm_\ba_\bt_\br_\bi_\bx[i].size();\n+380 else\n+381 {\n+382 assert((*t._\br_\bo_\bw_\bs_\bi_\bz_\be)[i]>0);\n+383 return (*t._\br_\bo_\bw_\bs_\bi_\bz_\be)[i];\n+384 }\n+385 }\n+386 };\n+387\n+394 template\n+_\b3_\b9_\b5 struct _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw\n+396 {\n+_\b4_\b0_\b5 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw(M& m_, const Dune::GlobalLookupIndexSet& idxset_, const I&\n+aggidxset_)\n+406 : _\bm_\ba_\bt_\br_\bi_\bx(m_), _\bi_\bd_\bx_\bs_\be_\bt(idxset_), _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt(aggidxset_), _\br_\bo_\bw_\bs_\bi_\bz_\be()\n+407 {}\n+408\n+_\b4_\b1_\b2 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw(M& m_, const Dune::GlobalLookupIndexSet& idxset_, const I&\n+aggidxset_,\n+413 std::vector& rowsize_)\n+414 : _\bm_\ba_\bt_\br_\bi_\bx(m_), _\bi_\bd_\bx_\bs_\be_\bt(idxset_), _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt(aggidxset_), _\br_\bo_\bw_\bs_\bi_\bz_\be(&rowsize_)\n+415 {}\n+_\b4_\b2_\b1 void _\bs_\be_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bR_\bo_\bw_\bs_\bT_\bo_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt()\n+422 {\n+423 typedef typename Dune::GlobalLookupIndexSet::const_iterator Iter;\n+424 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bn_\bt_\b>_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n+OwnerSet;\n+425\n+426 for(Iter i= _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.begin(), end=_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.end(); i!=end; ++i)\n+427 if(!OwnerSet::contains(i->local().attribute())) {\n+428 // Set to Dirchlet\n+429 typedef typename M::ColIterator CIter;\n+430 for(CIter c=_\bm_\ba_\bt_\br_\bi_\bx[i->local()].begin(), cend= _\bm_\ba_\bt_\br_\bi_\bx[i->local()].end();\n+431 c!= cend; ++c)\n+432 {\n+433 *c=0;\n+434 if(c.index()==i->local()) {\n+435 auto setDiagonal = [](auto&& scalarOrMatrix, const auto& value) {\n+436 auto&& matrixView = Dune::Impl::asMatrix(scalarOrMatrix);\n+437 for (auto rowIt = matrixView.begin(); rowIt != matrixView.end(); ++rowIt)\n+438 (*rowIt)[rowIt.index()] = value;\n+439 };\n+440 setDiagonal(*c, 1);\n+441 }\n+442 }\n+443 }\n+444 }\n+_\b4_\b4_\b6 M& _\bm_\ba_\bt_\br_\bi_\bx;\n+_\b4_\b4_\b8 const Dune::GlobalLookupIndexSet& _\bi_\bd_\bx_\bs_\be_\bt;\n+_\b4_\b5_\b0 const I& _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt;\n+_\b4_\b5_\b2 std::vector* _\br_\bo_\bw_\bs_\bi_\bz_\be; // row sizes differ from sender side in\n+overlap!\n+453 };\n+454\n+455 template\n+_\b4_\b5_\b6 struct CommPolicy<_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw >\n+457 {\n+_\b4_\b5_\b8 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\b> _\bT_\by_\bp_\be;\n+459\n+_\b4_\b6_\b4 typedef std::pair\n+_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n+465\n+_\b4_\b6_\b7 typedef VariableSize _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg;\n+468\n+_\b4_\b6_\b9 static std::size_t _\bg_\be_\bt_\bS_\bi_\bz_\be(const _\bT_\by_\bp_\be& t, std::size_t i)\n+470 {\n+471 if(!t._\br_\bo_\bw_\bs_\bi_\bz_\be)\n+472 return t._\bm_\ba_\bt_\br_\bi_\bx[i].size();\n+473 else\n+474 {\n+475 assert((*t._\br_\bo_\bw_\bs_\bi_\bz_\be)[i]>0);\n+476 return (*t._\br_\bo_\bw_\bs_\bi_\bz_\be)[i];\n+477 }\n+478 }\n+479 };\n+480\n+481 template\n+_\b4_\b8_\b2 struct _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+483 {\n+_\b4_\b8_\b4 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b<_\bM_\b,_\bR_\bI_\b> _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n+485\n+_\b4_\b8_\b6 static const typename M::size_type _\bg_\ba_\bt_\bh_\be_\br(const _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, std::\n+size_t i)\n+487 {\n+488 return cont._\bm_\ba_\bt_\br_\bi_\bx[i].size();\n+489 }\n+_\b4_\b9_\b0 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, const typename M::size_type& rowsize,\n+std::size_t i)\n+491 {\n+492 assert(rowsize);\n+493 cont._\br_\bo_\bw_\bs_\bi_\bz_\be.getRowSize(i)=rowsize;\n+494 }\n+495\n+496 };\n+497\n+498 template\n+_\b4_\b9_\b9 struct _\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+500 {\n+_\b5_\b0_\b1 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b<_\bM_\b,_\bR_\bI_\b> _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n+502\n+_\b5_\b0_\b3 static const typename M::size_type _\bg_\ba_\bt_\bh_\be_\br(const _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, std::\n+size_t i)\n+504 {\n+505 return cont._\bm_\ba_\bt_\br_\bi_\bx[i].size();\n+506 }\n+_\b5_\b0_\b7 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, const typename M::size_type& rowsize,\n+std::size_t i)\n+508 {\n+509 assert(rowsize);\n+510 if (rowsize > cont._\br_\bo_\bw_\bs_\bi_\bz_\be.getCopyRowSize(i))\n+511 cont._\br_\bo_\bw_\bs_\bi_\bz_\be.getCopyRowSize(i)=rowsize;\n+512 }\n+513\n+514 };\n+515\n+516 template\n+_\b5_\b1_\b7 struct _\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+518 {\n+_\b5_\b1_\b9 typedef typename I::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+_\b5_\b2_\b0 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\b> _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n+_\b5_\b2_\b1 typedef typename M::ConstColIterator _\bC_\bo_\bl_\bI_\bt_\be_\br;\n+522\n+_\b5_\b2_\b3 static _\bC_\bo_\bl_\bI_\bt_\be_\br _\bc_\bo_\bl;\n+_\b5_\b2_\b4 static _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n+525\n+_\b5_\b2_\b6 static const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bg_\ba_\bt_\bh_\be_\br(const _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, std::size_t i,\n+std::size_t j)\n+527 {\n+528 if(j==0)\n+529 _\bc_\bo_\bl=cont._\bm_\ba_\bt_\br_\bi_\bx[i].begin();\n+530 else if (_\bc_\bo_\bl!=cont._\bm_\ba_\bt_\br_\bi_\bx[i].end())\n+531 ++_\bc_\bo_\bl;\n+532\n+533 //copy communication: different row sizes for copy rows with the same\n+global index\n+534 //are possible. If all values of current matrix row are sent, send\n+535 //std::numeric_limits::max()\n+536 //and receiver will ignore it.\n+537 if (_\bc_\bo_\bl==cont._\bm_\ba_\bt_\br_\bi_\bx[i].end()) {\n+538 _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs = std::numeric_limits::max();\n+539 return _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n+540 }\n+541 else {\n+542 const typename I::IndexPair* index=cont._\bi_\bd_\bx_\bs_\be_\bt.pair(_\bc_\bo_\bl.index());\n+543 assert(index);\n+544 // Only send index if col is no ghost\n+545 if ( index->local().attribute() != 2)\n+546 return index->global();\n+547 else {\n+548 _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs = std::numeric_limits::max();\n+549 return _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n+550 }\n+551 }\n+552 }\n+_\b5_\b5_\b3 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& gi, std::size_t i,\n+[[maybe_unused]] std::size_t j)\n+554 {\n+555 try{\n+556 if (gi != std::numeric_limits::max()) {\n+557 const typename I::IndexPair& ip=cont._\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.at(gi);\n+558 assert(ip.global()==gi);\n+559 std::size_t column = ip.local();\n+560 cont._\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[i].insert(column);\n+561\n+562 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bn_\bt_\b>_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n+OwnerSet;\n+563 if(!OwnerSet::contains(ip.local().attribute()))\n+564 // preserve symmetry for overlap\n+565 cont._\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[column].insert(i);\n+566 }\n+567 }\n+568 catch(const Dune::RangeError&) {\n+569 // Entry not present in the new index set. Ignore!\n+570#ifdef DEBUG_REPART\n+571 typedef typename _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b:_\b:_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt GlobalLookup;\n+572 typedef typename GlobalLookup::IndexPair IndexPair;\n+573 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bn_\bt_\b>_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n+OwnerSet;\n+574\n+575 GlobalLookup lookup(cont._\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt);\n+576 const IndexPair* pi=lookup.pair(i);\n+577 assert(pi);\n+578 if(OwnerSet::contains(pi->local().attribute())) {\n+579 int rank;\n+580 MPI_Comm_rank(MPI_COMM_WORLD,&rank);\n+581 std::cout<global()<\n+591 typename _\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n+_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bc_\bo_\bl;\n+592\n+593 template\n+594 typename _\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n+595\n+596\n+597 template\n+_\b5_\b9_\b8 struct _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+599 {\n+_\b6_\b0_\b0 typedef typename I::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+_\b6_\b0_\b1 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\b> _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n+_\b6_\b0_\b2 typedef typename M::ConstColIterator _\bC_\bo_\bl_\bI_\bt_\be_\br;\n+_\b6_\b0_\b3 typedef typename std::pair _\bD_\ba_\bt_\ba;\n+_\b6_\b0_\b4 static _\bC_\bo_\bl_\bI_\bt_\be_\br _\bc_\bo_\bl;\n+_\b6_\b0_\b5 static _\bD_\ba_\bt_\ba _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be;\n+_\b6_\b0_\b6 static _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n+607\n+_\b6_\b0_\b8 static const _\bD_\ba_\bt_\ba& _\bg_\ba_\bt_\bh_\be_\br(const _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, std::size_t i, std::size_t\n+j)\n+609 {\n+610 if(j==0)\n+611 _\bc_\bo_\bl=cont._\bm_\ba_\bt_\br_\bi_\bx[i].begin();\n+612 else if (_\bc_\bo_\bl!=cont._\bm_\ba_\bt_\br_\bi_\bx[i].end())\n+613 ++_\bc_\bo_\bl;\n+614 // copy communication: different row sizes for copy rows with the same\n+global index\n+615 // are possible. If all values of current matrix row are sent, send\n+616 // std::numeric_limits::max()\n+617 // and receiver will ignore it.\n+618 if (_\bc_\bo_\bl==cont._\bm_\ba_\bt_\br_\bi_\bx[i].end()) {\n+619 _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs = std::numeric_limits::max();\n+620 _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be = _\bD_\ba_\bt_\ba(_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs,*_\bc_\bo_\bl);\n+621 return _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be;\n+622 }\n+623 else {\n+624 // convert local column index to global index\n+625 const typename I::IndexPair* index=cont._\bi_\bd_\bx_\bs_\be_\bt.pair(_\bc_\bo_\bl.index());\n+626 assert(index);\n+627 // Store the data to prevent reference to temporary\n+628 // Only send index if col is no ghost\n+629 if ( index->local().attribute() != 2)\n+630 _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be = _\bD_\ba_\bt_\ba(index->global(),*_\bc_\bo_\bl);\n+631 else {\n+632 _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs = std::numeric_limits::max();\n+633 _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be = _\bD_\ba_\bt_\ba(_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs,*_\bc_\bo_\bl);\n+634 }\n+635 return _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be;\n+636 }\n+637 }\n+_\b6_\b3_\b8 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, const _\bD_\ba_\bt_\ba& data, std::size_t i, [\n+[maybe_unused]] std::size_t j)\n+639 {\n+640 try{\n+641 if (data.first != std::numeric_limits::max()) {\n+642 typename M::size_type column=cont._\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.at(data.first).local();\n+643 cont._\bm_\ba_\bt_\br_\bi_\bx[i][column]=data.second;\n+644 }\n+645 }\n+646 catch(const Dune::RangeError&) {\n+647 // This an overlap row and might therefore lack some entries!\n+648 }\n+649\n+650 }\n+651 };\n+652\n+653 template\n+654 typename _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:\n+_\bc_\bo_\bl;\n+655\n+656 template\n+657 typename _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bD_\ba_\bt_\ba _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:\n+_\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be;\n+658\n+659 template\n+660 typename _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n+661\n+662 template\n+_\b6_\b6_\b3 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(M& origMatrix, M& newMatrix, C& origComm,\n+C& newComm,\n+664 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\b>& ri)\n+665 {\n+666 typename C::CopySet copyflags;\n+667 typename C::OwnerSet ownerflags;\n+668 typedef typename C::ParallelIndexSet IndexSet;\n+669 typedef _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\b> RI;\n+670 std::vector rowsize(newComm.indexSet().size(), 0);\n+671 std::vector copyrowsize(newComm.indexSet().size(),\n+0);\n+672 std::vector backwardscopyrowsize(origComm.indexSet\n+().size(), 0);\n+673\n+674 // get owner rowsizes\n+675 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b<_\bM_\b,_\bR_\bI_\b> commRowSize(origMatrix, ri);\n+676 ri.template redistribute >\n+(commRowSize,commRowSize);\n+677\n+678 origComm.buildGlobalLookup();\n+679\n+680 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {\n+681 rowsize[i] = ri._\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be(i);\n+682 }\n+683 // get sparsity pattern from owner rows\n+684 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b>\n+685 origsp(origMatrix, origComm.globalLookup(), newComm.indexSet());\n+686 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b>\n+687 newsp(origMatrix, origComm.globalLookup(), newComm.indexSet(), rowsize);\n+688\n+689 ri.template redistribute >\n+(origsp,newsp);\n+690\n+691 // build copy to owner interface to get missing matrix values for novlp\n+case\n+692 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(origComm) == _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg) {\n+693 RemoteIndices *ris = new RemoteIndices\n+(origComm.indexSet(),\n+694 newComm.indexSet(),\n+695 origComm.communicator());\n+696 ris->template rebuild();\n+697\n+698 ri.getInterface().free();\n+699 ri.getInterface().build(*ris,copyflags,ownerflags);\n+700\n+701 // get copy rowsizes\n+702 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b<_\bM_\b,_\bR_\bI_\b> commRowSize_copy(origMatrix, ri);\n+703 ri.template redistribute >\n+(commRowSize_copy,\n+704 commRowSize_copy);\n+705\n+706 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {\n+707 copyrowsize[i] = ri._\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(i);\n+708 }\n+709 //get copy rowsizes for sender\n+710 ri._\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd(backwardscopyrowsize,copyrowsize);\n+711 for (std::size_t i=0; i < origComm.indexSet().size(); i++) {\n+712 ri._\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(i) = backwardscopyrowsize[i];\n+713 }\n+714\n+715 // get sparsity pattern from copy rows\n+716 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> origsp_copy(origMatrix,\n+717 origComm.globalLookup(),\n+718 newComm.indexSet(),\n+719 backwardscopyrowsize);\n+720 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> newsp_copy(origMatrix,\n+origComm.globalLookup(),\n+721 newComm.indexSet(), copyrowsize);\n+722 ri.template redistribute >\n+(origsp_copy,\n+723 newsp_copy);\n+724\n+725 newsp._\bc_\bo_\bm_\bp_\bl_\be_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(newsp_copy._\bs_\bp_\ba_\br_\bs_\bi_\bt_\by);\n+726 newsp._\bs_\bt_\bo_\br_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(newMatrix);\n+727 }\n+728 else\n+729 newsp._\bs_\bt_\bo_\br_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(newMatrix);\n+730\n+731#ifdef DUNE_ISTL_WITH_CHECKING\n+732 // Check for symmetry\n+733 int ret=0;\n+734 typedef typename M::ConstRowIterator RIter;\n+735 for(RIter row=newMatrix.begin(), rend=newMatrix.end(); row != rend; ++row)\n+{\n+736 typedef typename M::ConstColIterator CIter;\n+737 for(CIter _\bc_\bo_\bl=row->begin(), cend=row->end(); _\bc_\bo_\bl!=cend; ++_\bc_\bo_\bl)\n+738 {\n+739 try{\n+740 newMatrix[_\bc_\bo_\bl.index()][row.index()];\n+741 }catch(const _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br&) {\n+742 std::cerr<\n+_\b7_\b5_\b7 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs(M& origMatrix, M& newMatrix, C& origComm, C&\n+newComm,\n+758 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\b>& ri)\n+759 {\n+760 typedef typename C::ParallelIndexSet IndexSet;\n+761 typename C::OwnerSet ownerflags;\n+762 std::vector rowsize(newComm.indexSet().size(), 0);\n+763 std::vector copyrowsize(newComm.indexSet().size(),\n+0);\n+764 std::vector backwardscopyrowsize(origComm.indexSet\n+().size(), 0);\n+765\n+766 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {\n+767 rowsize[i] = ri._\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be(i);\n+768 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(origComm) == _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg) {\n+769 copyrowsize[i] = ri._\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(i);\n+770 }\n+771 }\n+772\n+773 for (std::size_t i=0; i < origComm.indexSet().size(); i++)\n+774 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(origComm) == _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg)\n+775 backwardscopyrowsize[i] = ri._\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(i);\n+776\n+777\n+778 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(origComm) == _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg) {\n+779 // fill sparsity pattern from copy rows\n+780 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> origrow_copy(origMatrix, origComm.globalLookup(),\n+781 newComm.indexSet(), backwardscopyrowsize);\n+782 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> newrow_copy(newMatrix, origComm.globalLookup(),\n+783 newComm.indexSet(),copyrowsize);\n+784 ri.template redistribute >(origrow_copy,\n+785 newrow_copy);\n+786 ri.getInterface().free();\n+787 RemoteIndices *ris = new RemoteIndices\n+(origComm.indexSet(),\n+788 newComm.indexSet(),\n+789 origComm.communicator());\n+790 ris->template rebuild();\n+791 ri.getInterface().build(*ris,ownerflags,ownerflags);\n+792 }\n+793\n+794 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b>\n+795 origrow(origMatrix, origComm.globalLookup(), newComm.indexSet());\n+796 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b>\n+797 newrow(newMatrix, origComm.globalLookup(), newComm.indexSet(),rowsize);\n+798 ri.template redistribute >\n+(origrow,newrow);\n+799 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(origComm) != static_cast(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:\n+_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg))\n+800 newrow._\bs_\be_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bR_\bo_\bw_\bs_\bT_\bo_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt();\n+801 }\n+802\n+819 template\n+_\b8_\b2_\b0 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(M& origMatrix, M& newMatrix, C& origComm, C&\n+newComm,\n+821 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\b>& ri)\n+822 {\n+823 ri._\bs_\be_\bt_\bN_\bo_\bR_\bo_\bw_\bs(newComm.indexSet().size());\n+824 ri._\bs_\be_\bt_\bN_\bo_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs(newComm.indexSet().size());\n+825 ri._\bs_\be_\bt_\bN_\bo_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs(origComm.indexSet().size());\n+826 _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(origMatrix, newMatrix, origComm, newComm, ri);\n+827 _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs(origMatrix, newMatrix, origComm, newComm, ri);\n+828 }\n+829#endif\n+830\n+831template\n+_\b8_\b3_\b2 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs(M& origMatrix, M& newMatrix,\n+833 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& origComm,\n+834 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& newComm,\n+835 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>& ri)\n+836 {\n+837 DUNE_THROW(InvalidStateException, \"Trying to redistribute in sequential\n+program!\");\n+838 }\n+839 template\n+_\b8_\b4_\b0 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(M& origMatrix, M& newMatrix,\n+841 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& origComm,\n+842 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& newComm,\n+843 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>& ri)\n+844 {\n+845 DUNE_THROW(InvalidStateException, \"Trying to redistribute in sequential\n+program!\");\n+846 }\n+847}\n+848#endif\n _\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n Classes providing communication interfaces for overlapping Schwarz methods.\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-void bsorb(const M &A, X &x, const Y &b, const K &w)\n-SSOR step.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:646\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-void bsorf(const M &A, X &x, const Y &b, const K &w)\n-SOR step.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:634\n+_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n+_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Functionality for redistributing a parallel index set using graph partitioning.\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-A linear operator exporting itself in matrix form.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:109\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-An overlapping Schwarz operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-const communication_type & getCommunication() const\n-Get the object responsible for communication.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:146\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bm_\ba_\bt\n-virtual const matrix_type & getmat() const\n-get the sequential assembled linear operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:133\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd\n-virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const\n-apply operator to x, scale and add:\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:125\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(const X &x, Y &y) const\n-apply operator to x:\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:116\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n-C communication_type\n-The type of the communication object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:98\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The type of the domain.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:86\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-The type of the matrix we operate on.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The type of the range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:91\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:93\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-OverlappingSchwarzOperator(const matrix_type &A, const communication_type &com)\n-constructor: just store a reference to a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:107\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-OverlappingSchwarzOperator(const std::shared_ptr< matrix_type > A, const\n-communication_type &com)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:111\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the linear operator (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:139\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR\n-A parallel SSOR preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:175\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:184\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n-C communication_type\n-The type of the communication object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:186\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:233\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR\n-ParSSOR(const matrix_type &A, int n, field_type w, const communication_type &c)\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs\n+void redistributeMatrixEntries(M &origMatrix, M &newMatrix, C &origComm, C\n+&newComm, RedistributeInformation< C > &ri)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:757\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n+void redistributeSparsityPattern(M &origMatrix, M &newMatrix, C &origComm, C\n+&newComm, RedistributeInformation< C > &ri)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:663\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx\n+void redistributeMatrix(M &origMatrix, M &newMatrix, C &origComm, C &newComm,\n+RedistributeInformation< C > &ri)\n+Redistribute a matrix according to given domain decompositions.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:820\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bN_\bo_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs\n+void setNoBackwardsCopyRows(std::size_t size)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be\n+void redistribute(const D &from, D &to) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bs_\be_\bt_\bS_\be_\bt_\bu_\bp\n+void resetSetup()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:35\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bN_\bo_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs\n+void setNoCopyRows(std::size_t size)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:41\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bs_\bS_\be_\bt_\bu_\bp\n+bool isSetup() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bN_\bo_\bR_\bo_\bw_\bs\n+void setNoRows(std::size_t size)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:38\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd\n+void redistributeBackward(D &from, const D &to) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t getBackwardsCopyRowSize(std::size_t index) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:57\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t getRowSize(std::size_t index) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:47\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t getCopyRowSize(std::size_t index) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t getRowSize(std::size_t index) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:158\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t & getBackwardsCopyRowSize(std::size_t index)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:173\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+RedistributeInterface & getInterface()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be\n+void redistribute(const D &from, D &to) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:136\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bs_\be_\bt_\bN_\bo_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs\n+void setNoBackwardsCopyRows(std::size_t rows)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:193\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t & getCopyRowSize(std::size_t index)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:163\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+RedistributeInformation()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:71\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t getCopyRowSize(std::size_t index) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:168\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bs_\be_\bt_\bN_\bo_\bR_\bo_\bw_\bs\n+void setNoRows(std::size_t rows)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:183\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\br_\be_\bs_\be_\br_\bv_\be\n+void reserve(std::size_t size)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:_\bC_\bo_\bm_\bm\n+OwnerOverlapCopyCommunication< T, T1 > Comm\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:69\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bs_\be_\bt_\bN_\bo_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs\n+void setNoCopyRows(std::size_t rows)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:188\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd\n+void redistributeBackward(D &from, const D &to) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:141\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bs_\be_\bt_\bS_\be_\bt_\bu_\bp\n+void setSetup()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:106\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t getBackwardsCopyRowSize(std::size_t index) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:178\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be\n+void redistribute(const D &from, D &to) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:118\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\br_\be_\bs_\be_\bt_\bS_\be_\bt_\bu_\bp\n+void resetSetup()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:112\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd\n+void redistributeBackward(D &from, const D &to) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bc_\bh_\be_\bc_\bk_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+void checkInterface(const IS &source, const IS &target, MPI_Comm comm)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:80\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bi_\bs_\bS_\be_\bt_\bu_\bp\n+bool isSetup() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:145\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n+_\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t & getRowSize(std::size_t index)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:153\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+Utility class to communicate and set the row sizes of a redistributed matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:216\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+M::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:219\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n+M::size_type value_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b:_\b:_\br_\bo_\bw_\bs_\bi_\bz_\be\n+RI & rowsize\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:230\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n+const M & matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:229\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+CommMatrixRowSize(const M &m_, RI &rowsize_)\n Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:197\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(X &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:230\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:180\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:182\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-The matrix type the preconditioner is for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:178\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &v, const Y &d)\n-Apply the precondtioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:216\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bp_\br_\be\n-virtual void pre(X &x, Y &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:206\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Block parallel preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:278\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\br_\be\n-virtual void pre(X &x, Y &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:326\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:285\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-BlockPreconditioner(const std::shared_ptr< P > &p, const communication_type &c)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:226\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n+Utility class to communicate and build the sparsity pattern of a redistributed\n+matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:245\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+M::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:246\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bi_\bd_\bx_\bs_\be_\bt\n+const Dune::GlobalLookupIndexSet< I > & idxset\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:356\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bs_\bt_\bo_\br_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n+void storeSparsityPattern(M &m)\n+Creates and stores the sparsity pattern of the redistributed matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:276\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt\n+const I & aggidxset\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:357\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\br_\bo_\bw_\bs_\bi_\bz_\be\n+const std::vector< size_type > * rowsize\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:359\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n+void completeSparsityPattern(std::vector< std::set< size_type > > add_sparsity)\n+Completes the sparsity pattern of the redistributed matrix with data from copy\n+rows for the novlp cas...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:340\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n+CommMatrixSparsityPattern(const M &m_, const Dune::GlobalLookupIndexSet< I >\n+&idxset_, const I &aggidxset_)\n+Constructor for the original side.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:254\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n+const M & matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:354\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n+CommMatrixSparsityPattern(const M &m_, const Dune::GlobalLookupIndexSet< I >\n+&idxset_, const I &aggidxset_, const std::vector< typename M::size_type >\n+&rowsize_)\n+Constructor for the redistruted side.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:265\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bs_\bp_\ba_\br_\bs_\bi_\bt_\by\n+std::vector< std::set< size_type > > sparsity\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:358\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::GlobalLookupIndexSet< I > LookupIndexSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:355\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bS_\bi_\bz_\be\n+static M::size_type getSize(const Type &t, std::size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:376\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n+CommMatrixSparsityPattern< M, I > Type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:365\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n+I::GlobalIndex IndexedType\n+The indexed type we send. This is the global index indentitfying the column.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:371\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg\n+VariableSize IndexedTypeFlag\n+Each row varies in size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:374\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw\n+Utility class for comunicating the matrix entries.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:396\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\br_\bo_\bw_\bs_\bi_\bz_\be\n+std::vector< size_t > * rowsize\n+row size information for the receiving side.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:452\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n+M & matrix\n+The matrix to communicate the values of.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:446\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw\n+CommMatrixRow(M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I\n+&aggidxset_, std::vector< size_t > &rowsize_)\n Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:317\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &v, const Y &d)\n-Apply the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:337\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-BlockPreconditioner(P &p, const communication_type &c)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:412\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\bi_\bd_\bx_\bs_\be_\bt\n+const Dune::GlobalLookupIndexSet< I > & idxset\n+Index set for the original matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:448\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\bs_\be_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bR_\bo_\bw_\bs_\bT_\bo_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt\n+void setOverlapRowsToDirichlet()\n+Sets the non-owner rows correctly as Dirichlet boundaries.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:421\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt\n+const I & aggidxset\n+Index set for the redistributed matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:450\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw\n+CommMatrixRow(M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I\n+&aggidxset_)\n Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:306\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(X &v, const Y &d)\n-Apply one step of the preconditioner to the system A(v)=d.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:344\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n-C communication_type\n-The type of the communication object..\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:297\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:292\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(X &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:355\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:290\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:361\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n-@ overlapping\n-Category for overlapping solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:29\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:405\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n+std::pair< typename I::GlobalIndex, typename M::block_type > IndexedType\n+The indexed type we send. This is the pair of global index indentitfying the\n+column and the value its...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:464\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n+CommMatrixRow< M, I > Type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:458\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bS_\bi_\bz_\be\n+static std::size_t getSize(const Type &t, std::size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:469\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg\n+VariableSize IndexedTypeFlag\n+Each row varies in size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:467\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:483\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n+static void scatter(Container &cont, const typename M::size_type &rowsize,\n+std::size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:490\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n+static const M::size_type gather(const Container &cont, std::size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:486\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n+CommMatrixRowSize< M, RI > Container\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:484\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:500\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n+static const M::size_type gather(const Container &cont, std::size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:503\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n+static void scatter(Container &cont, const typename M::size_type &rowsize,\n+std::size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:507\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n+CommMatrixRowSize< M, RI > Container\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:501\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:518\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n+M::ConstColIterator ColIter\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:521\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n+static void scatter(Container &cont, const GlobalIndex &gi, std::size_t i,\n+std::size_t j)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:553\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n+CommMatrixSparsityPattern< M, I > Container\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:520\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs\n+static GlobalIndex numlimits\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:524\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bc_\bo_\bl\n+static ColIter col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:523\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+I::GlobalIndex GlobalIndex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:519\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n+static const GlobalIndex & gather(const Container &cont, std::size_t i, std::\n+size_t j)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:526\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:599\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+I::GlobalIndex GlobalIndex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:600\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be\n+static Data datastore\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:605\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs\n+static GlobalIndex numlimits\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:606\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n+M::ConstColIterator ColIter\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:602\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n+static const Data & gather(const Container &cont, std::size_t i, std::size_t j)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:608\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bD_\ba_\bt_\ba\n+std::pair< GlobalIndex, typename M::block_type > Data\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:603\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n+static void scatter(Container &cont, const Data &data, std::size_t i, std::\n+size_t j)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:638\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bc_\bo_\bl\n+static ColIter col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:604\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n+CommMatrixRow< M, I > Container\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:601\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+A class setting up standard communication for a two-valued attribute set with\n+owner/overlap/copy sema...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n+EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner > OwnerSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:194\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:260\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n+@ nonoverlapping\n+Category for non-overlapping solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+static Category category(const OP &op, decltype(op.category()) *=nullptr)\n+Helperfunction to extract the solver category either from an enum, or from the\n+newly introduced virtu...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00014.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00014.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: supermatrix.hh File Reference\n+dune-istl: schwarz.hh File Reference\n \n \n \n \n \n \n \n@@ -72,61 +72,55 @@\n

  • dune
  • istl
  • \n
    \n \n
    \n \n-
    supermatrix.hh File Reference
    \n+
    schwarz.hh File Reference
    \n
    \n
    \n-
    #include "bcrsmatrix.hh"
    \n-#include "bvector.hh"
    \n-#include <dune/common/fmatrix.hh>
    \n-#include <dune/common/fvector.hh>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <limits>
    \n-#include <dune/istl/bccsmatrixinitializer.hh>
    \n-#include "superlufunctions.hh"
    \n+
    #include <iostream>
    \n+#include <fstream>
    \n+#include <vector>
    \n+#include <sstream>
    \n+#include <cmath>
    \n+#include <dune/common/timer.hh>
    \n+#include "io.hh"
    \n+#include "bvector.hh"
    \n+#include "vbvector.hh"
    \n+#include "bcrsmatrix.hh"
    \n+#include "gsetc.hh"
    \n+#include "ilu.hh"
    \n+#include "operators.hh"
    \n+#include "solvers.hh"
    \n+#include "preconditioners.hh"
    \n+#include "scalarproducts.hh"
    \n+#include "owneroverlapcopy.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n \n-\n+\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    struct  Dune::SuperMatrixCreateSparseChooser< T >
    class  Dune::OverlappingSchwarzOperator< M, X, Y, C >
     An overlapping Schwarz operator. More...
     
    struct  Dune::SuperMatrixPrinter< T >
    class  Dune::ParSSOR< M, X, Y, C >
     A parallel SSOR preconditioner. More...
     
    struct  Dune::BaseGetSuperLUType< T >
     
    struct  Dune::GetSuperLUType< T >
     
    struct  Dune::GetSuperLUType< double >
     
    struct  Dune::GetSuperLUType< float >
     
    struct  Dune::GetSuperLUType< std::complex< double > >
     
    struct  Dune::GetSuperLUType< std::complex< float > >
     
    struct  Dune::SuperLUMatrix< M >
     Utility class for converting an ISTL Matrix into a SuperLU Matrix. More...
     
    struct  Dune::SuperMatrixInitializer< M >
     
    class  Dune::SuperLUMatrix< BCRSMatrix< B, TA > >
     Converter for BCRSMatrix to SuperLU Matrix. More...
     
    class  Dune::SuperMatrixInitializer< BCRSMatrix< B, A > >
    class  Dune::BlockPreconditioner< X, Y, C, P >
     Block parallel preconditioner. More...
     
    \n \n \n \n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,50 +1,43 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-supermatrix.hh File Reference\n-#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+schwarz.hh File Reference\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"_\bi_\bo_\b._\bh_\bh\"\n #include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n-#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\"\n+#include \"_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n+#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n+#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n+#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n+#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n+#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n+#include \"_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>\n+\u00a0 An overlapping Schwarz operator. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>\n+\u00a0 A parallel SSOR preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bM_\b _\b>\n-\u00a0 Utility class for converting an _\bI_\bS_\bT_\bL _\bM_\ba_\bt_\br_\bi_\bx into a _\bS_\bu_\bp_\be_\br_\bL_\bU _\bM_\ba_\bt_\br_\bi_\bx.\n- _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bM_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n-\u00a0 Converter for _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx to _\bS_\bu_\bp_\be_\br_\bL_\bU _\bM_\ba_\bt_\br_\bi_\bx. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bP_\b _\b>\n+\u00a0 Block parallel preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00014_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00014_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: supermatrix.hh Source File\n+dune-istl: schwarz.hh Source File\n \n \n \n \n \n \n \n@@ -74,427 +74,302 @@\n \n
    \n \n
    \n
    \n
    \n-
    supermatrix.hh
    \n+
    schwarz.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_SUPERMATRIX_HH
    \n-
    6#define DUNE_ISTL_SUPERMATRIX_HH
    \n+
    5#ifndef DUNE_ISTL_SCHWARZ_HH
    \n+
    6#define DUNE_ISTL_SCHWARZ_HH
    \n
    7
    \n-
    8#if HAVE_SUPERLU
    \n-
    9
    \n-
    10#include "bcrsmatrix.hh"
    \n-
    11#include "bvector.hh"
    \n-
    12#include <dune/common/fmatrix.hh>
    \n-
    13#include <dune/common/fvector.hh>
    \n-
    14#include <dune/common/typetraits.hh>
    \n-
    15#include <limits>
    \n+
    8#include <iostream> // for input/output to shell
    \n+
    9#include <fstream> // for input/output to files
    \n+
    10#include <vector> // STL vector class
    \n+
    11#include <sstream>
    \n+
    12
    \n+
    13#include <cmath> // Yes, we do some math here
    \n+
    14
    \n+
    15#include <dune/common/timer.hh>
    \n
    16
    \n-\n-
    18
    \n-
    19#include "superlufunctions.hh"
    \n-
    20
    \n-
    21namespace Dune
    \n-
    22{
    \n-
    23
    \n-
    24 template<class T>
    \n-
    \n-\n-
    26 {};
    \n-
    \n-
    27
    \n-
    28 template<class T>
    \n-
    \n-\n-
    30 {};
    \n-
    \n+
    17#include "io.hh"
    \n+
    18#include "bvector.hh"
    \n+
    19#include "vbvector.hh"
    \n+
    20#include "bcrsmatrix.hh"
    \n+
    21#include "io.hh"
    \n+
    22#include "gsetc.hh"
    \n+
    23#include "ilu.hh"
    \n+
    24#include "operators.hh"
    \n+
    25#include "solvers.hh"
    \n+
    26#include "preconditioners.hh"
    \n+
    27#include "scalarproducts.hh"
    \n+
    28#include "owneroverlapcopy.hh"
    \n+
    29
    \n+
    30namespace Dune {
    \n
    31
    \n-
    32#if __has_include("slu_sdefs.h")
    \n-
    33 template<>
    \n-\n-
    35 {
    \n-
    36 static void create(SuperMatrix *mat, int n, int m, int offset,
    \n-
    37 float *values, int *rowindex, int* colindex,
    \n-
    38 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n-
    39 {
    \n-
    40 sCreate_CompCol_Matrix(mat, n, m, offset, values, rowindex, colindex,
    \n-
    41 stype, dtype, mtype);
    \n-
    42 }
    \n-
    43 };
    \n-
    44
    \n-
    45 template<>
    \n-
    46 struct SuperMatrixPrinter<float>
    \n-
    47 {
    \n-
    48 static void print(char* name, SuperMatrix* mat)
    \n-
    49 {
    \n-
    50 sPrint_CompCol_Matrix(name, mat);
    \n-
    51 }
    \n-
    52 };
    \n-
    53#endif
    \n-
    54
    \n-
    55#if __has_include("slu_ddefs.h")
    \n-
    56 template<>
    \n-
    57 struct SuperMatrixCreateSparseChooser<double>
    \n-
    58 {
    \n-
    59 static void create(SuperMatrix *mat, int n, int m, int offset,
    \n-
    60 double *values, int *rowindex, int* colindex,
    \n-
    61 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n-
    62 {
    \n-
    63 dCreate_CompCol_Matrix(mat, n, m, offset, values, rowindex, colindex,
    \n-
    64 stype, dtype, mtype);
    \n-
    65 }
    \n-
    66 };
    \n-
    67
    \n-
    68 template<>
    \n-
    69 struct SuperMatrixPrinter<double>
    \n-
    70 {
    \n-
    71 static void print(char* name, SuperMatrix* mat)
    \n-
    72 {
    \n-
    73 dPrint_CompCol_Matrix(name, mat);
    \n-
    74 }
    \n-
    75 };
    \n-
    76#endif
    \n-
    77
    \n-
    78#if __has_include("slu_cdefs.h")
    \n-
    79 template<>
    \n-
    80 struct SuperMatrixCreateSparseChooser<std::complex<float> >
    \n-
    81 {
    \n-
    82 static void create(SuperMatrix *mat, int n, int m, int offset,
    \n-
    83 std::complex<float> *values, int *rowindex, int* colindex,
    \n-
    84 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n-
    85 {
    \n-
    86 cCreate_CompCol_Matrix(mat, n, m, offset, reinterpret_cast< ::complex*>(values),
    \n-
    87 rowindex, colindex, stype, dtype, mtype);
    \n-
    88 }
    \n-
    89 };
    \n-
    90
    \n-
    91 template<>
    \n-
    92 struct SuperMatrixPrinter<std::complex<float> >
    \n-
    93 {
    \n-
    94 static void print(char* name, SuperMatrix* mat)
    \n-
    95 {
    \n-
    96 cPrint_CompCol_Matrix(name, mat);
    \n-
    97 }
    \n-
    98 };
    \n-
    99#endif
    \n-
    100
    \n-
    101#if __has_include("slu_zdefs.h")
    \n-
    102 template<>
    \n-
    103 struct SuperMatrixCreateSparseChooser<std::complex<double> >
    \n-
    104 {
    \n-
    105 static void create(SuperMatrix *mat, int n, int m, int offset,
    \n-
    106 std::complex<double> *values, int *rowindex, int* colindex,
    \n-
    107 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n-
    108 {
    \n-
    109 zCreate_CompCol_Matrix(mat, n, m, offset, reinterpret_cast<doublecomplex*>(values),
    \n-
    110 rowindex, colindex, stype, dtype, mtype);
    \n-
    111 }
    \n-
    112 };
    \n-
    113
    \n-
    114 template<>
    \n-
    115 struct SuperMatrixPrinter<std::complex<double> >
    \n-
    116 {
    \n-
    117 static void print(char* name, SuperMatrix* mat)
    \n-
    118 {
    \n-
    119 zPrint_CompCol_Matrix(name, mat);
    \n-
    120 }
    \n-
    121 };
    \n-
    122#endif
    \n+
    73 template<class M, class X, class Y, class C>
    \n+
    \n+\n+
    75 {
    \n+
    76 public:
    \n+
    81 typedef M matrix_type;
    \n+
    86 typedef X domain_type;
    \n+
    91 typedef Y range_type;
    \n+
    93 typedef typename X::field_type field_type;
    \n+\n+
    99
    \n+
    \n+\n+
    108 : _A_(stackobject_to_shared_ptr(A)), communication(com)
    \n+
    109 {}
    \n+
    \n+
    110
    \n+
    \n+
    111 OverlappingSchwarzOperator (const std::shared_ptr<matrix_type> A, const communication_type& com)
    \n+
    112 : _A_(A), communication(com)
    \n+
    113 {}
    \n+
    \n+
    114
    \n+
    \n+
    116 virtual void apply (const X& x, Y& y) const
    \n+
    117 {
    \n+
    118 y = 0;
    \n+
    119 _A_->umv(x,y); // result is consistent on interior+border
    \n+
    120 communication.project(y); // we want this here to avoid it before the preconditioner
    \n+
    121 // since there d is const!
    \n+
    122 }
    \n+
    \n
    123
    \n-
    124 template<class T>
    \n-
    \n-\n-
    126 {
    \n-
    127 static const Dtype_t type;
    \n-
    128 };
    \n-
    \n-
    129
    \n-
    130 template<class T>
    \n-
    \n-\n-
    132 {};
    \n-
    \n-
    133
    \n-
    134 template<class T>
    \n-
    135 const Dtype_t BaseGetSuperLUType<T>::type =
    \n-
    136 std::is_same<T,float>::value ? SLU_S :
    \n-
    137 ( std::is_same<T,std::complex<double> >::value ? SLU_Z :
    \n-
    138 ( std::is_same<T,std::complex<float> >::value ? SLU_C : SLU_D ));
    \n-
    139
    \n-
    140 template<>
    \n-
    \n-
    141 struct GetSuperLUType<double>
    \n-
    142 : public BaseGetSuperLUType<double>
    \n-
    143 {
    \n-
    144 typedef double float_type;
    \n-
    145 };
    \n-
    \n-
    146
    \n-
    147 template<>
    \n-
    \n-
    148 struct GetSuperLUType<float>
    \n-
    149 : public BaseGetSuperLUType<float>
    \n-
    150 {
    \n-
    151 typedef float float_type;
    \n-
    152 };
    \n-
    \n-
    153
    \n-
    154 template<>
    \n-
    \n-
    155 struct GetSuperLUType<std::complex<double> >
    \n-
    156 : public BaseGetSuperLUType<std::complex<double> >
    \n-
    157 {
    \n-
    158 typedef double float_type;
    \n-
    159 };
    \n-
    \n-
    160
    \n-
    161 template<>
    \n-
    \n-
    162 struct GetSuperLUType<std::complex<float> >
    \n-
    163 : public BaseGetSuperLUType<std::complex<float> >
    \n-
    164 {
    \n-
    165 typedef float float_type;
    \n-
    166
    \n-
    167 };
    \n-
    \n-
    168
    \n-
    173 template<class M>
    \n-
    \n-\n-
    175 {};
    \n-
    \n-
    176
    \n-
    177 template<class M>
    \n-
    \n-\n-
    179 {};
    \n-
    \n-
    180
    \n-
    181 template<class T>
    \n-
    182 class SuperLU;
    \n-
    183
    \n-
    184 template<class M, class X, class TM, class TD, class T1>
    \n-\n-
    186
    \n-
    187 template<class T, bool flag>
    \n-\n-
    189
    \n-
    193 template<class B, class TA>
    \n-
    \n-\n-
    195 : public ISTL::Impl::BCCSMatrix<typename BCRSMatrix<B,TA>::field_type, int>
    \n-
    196 {
    \n-
    197 template<class M, class X, class TM, class TD, class T1>
    \n-\n-
    199 friend struct SuperMatrixInitializer<BCRSMatrix<B,TA> >;
    \n-
    200 public:
    \n-\n-
    203
    \n-\n-
    205
    \n-
    206 typedef typename Matrix::size_type size_type;
    \n-
    207
    \n-
    \n-
    212 explicit SuperLUMatrix(const Matrix& mat) : ISTL::Impl::BCCSMatrix<BCRSMatrix<B,TA>, int>(mat)
    \n-
    213 {}
    \n-
    \n-
    214
    \n-
    \n-
    215 SuperLUMatrix() : ISTL::Impl::BCCSMatrix<typename BCRSMatrix<B,TA>::field_type, int>()
    \n-
    216 {}
    \n-
    \n-
    217
    \n-
    \n-\n-
    220 {
    \n-
    221 if (this->N_+this->M_*this->Nnz_ != 0)
    \n-
    222 free();
    \n+
    \n+
    125 virtual void applyscaleadd (field_type alpha, const X& x, Y& y) const
    \n+
    126 {
    \n+
    127 _A_->usmv(alpha,x,y); // result is consistent on interior+border
    \n+
    128 communication.project(y); // we want this here to avoid it before the preconditioner
    \n+
    129 // since there d is const!
    \n+
    130 }
    \n+
    \n+
    131
    \n+
    \n+
    133 virtual const matrix_type& getmat () const
    \n+
    134 {
    \n+
    135 return *_A_;
    \n+
    136 }
    \n+
    \n+
    137
    \n+
    \n+\n+
    140 {
    \n+\n+
    142 }
    \n+
    \n+
    143
    \n+
    144
    \n+
    \n+\n+
    147 {
    \n+
    148 return communication;
    \n+
    149 }
    \n+
    \n+
    150 private:
    \n+
    151 const std::shared_ptr<const matrix_type>_A_;
    \n+
    152 const communication_type& communication;
    \n+
    153 };
    \n+
    \n+
    154
    \n+
    157 /*
    \n+
    158 * @addtogroup ISTL_Prec
    \n+
    159 * @{
    \n+
    160 */
    \n+
    174 template<class M, class X, class Y, class C>
    \n+
    \n+
    175 class ParSSOR : public Preconditioner<X,Y> {
    \n+
    176 public:
    \n+
    178 typedef M matrix_type;
    \n+
    180 typedef X domain_type;
    \n+
    182 typedef Y range_type;
    \n+
    184 typedef typename X::field_type field_type;
    \n+\n+
    187
    \n+
    \n+
    197 ParSSOR (const matrix_type& A, int n, field_type w, const communication_type& c)
    \n+
    198 : _A_(A), _n(n), _w(w), communication(c)
    \n+
    199 { }
    \n+
    \n+
    200
    \n+
    \n+
    206 virtual void pre (X& x, [[maybe_unused]] Y& b)
    \n+
    207 {
    \n+
    208 communication.copyOwnerToAll(x,x); // make dirichlet values consistent
    \n+
    209 }
    \n+
    \n+
    210
    \n+
    \n+
    216 virtual void apply (X& v, const Y& d)
    \n+
    217 {
    \n+
    218 for (int i=0; i<_n; i++) {
    \n+
    219 bsorf(_A_,v,d,_w);
    \n+
    220 bsorb(_A_,v,d,_w);
    \n+
    221 }
    \n+
    222 communication.copyOwnerToAll(v,v);
    \n
    223 }
    \n
    \n
    224
    \n-
    \n-
    226 operator SuperMatrix&()
    \n-
    227 {
    \n-
    228 return A;
    \n-
    229 }
    \n-
    \n-
    230
    \n-
    \n-
    232 operator const SuperMatrix&() const
    \n-
    233 {
    \n-
    234 return A;
    \n-
    235 }
    \n-
    \n-
    236
    \n-
    \n-\n-
    238 {
    \n-
    239 if (this->N_ + this->M_ + this->Nnz_!=0)
    \n-
    240 free();
    \n-
    241
    \n-
    242 using Matrix = BCRSMatrix<B,TA>;
    \n-\n-\n-
    245 ISTL::Impl::BCCSMatrixInitializer<Matrix, int> initializer(*this);
    \n-
    246
    \n-
    247 copyToBCCSMatrix(initializer, mat);
    \n+
    230 virtual void post ([[maybe_unused]] X& x) {}
    \n+
    231
    \n+
    \n+\n+
    234 {
    \n+\n+
    236 }
    \n+
    \n+
    237
    \n+
    238 private:
    \n+
    240 const matrix_type& _A_;
    \n+
    242 int _n;
    \n+
    244 field_type _w;
    \n+
    246 const communication_type& communication;
    \n+
    247 };
    \n+
    \n
    248
    \n-\n-
    250 ::create(&A, this->N_, this->M_, this->colstart[this->N_],
    \n-
    251 this->values,this->rowindex, this->colstart, SLU_NC,
    \n-
    252 static_cast<Dtype_t>(GetSuperLUType<typename Matrix::field_type>::type), SLU_GE);
    \n-
    253 return *this;
    \n-
    254 }
    \n-
    \n-
    255
    \n-
    \n-\n-
    257 {
    \n-
    258 if (this->N_ + this->M_ + this->Nnz_!=0)
    \n-
    259 free();
    \n-
    260
    \n-
    261 using Matrix = BCRSMatrix<B,TA>;
    \n-\n-\n-
    264 ISTL::Impl::BCCSMatrixInitializer<Matrix, int> initializer(*this);
    \n-
    265
    \n-
    266 copyToBCCSMatrix(initializer, mat);
    \n-
    267
    \n-\n-
    269 ::create(&A, this->N_, this->M_, this->colstart[this->N_],
    \n-
    270 this->values,this->rowindex, this->colstart, SLU_NC,
    \n-
    271 static_cast<Dtype_t>(GetSuperLUType<B>::type), SLU_GE);
    \n-
    272 return *this;
    \n-
    273 }
    \n-
    \n-
    274
    \n-
    \n-
    281 virtual void setMatrix(const Matrix& mat, const std::set<std::size_t>& mrs)
    \n-
    282 {
    \n-
    283 if(this->N_+this->M_+this->Nnz_!=0)
    \n-
    284 free();
    \n-
    285 this->N_=mrs.size()*MatrixDimension<typename Matrix::block_type>::rowdim(*(mat[0].begin()));
    \n-
    286 this->M_=mrs.size()*MatrixDimension<typename Matrix::block_type>::coldim(*(mat[0].begin()));
    \n-
    287 SuperMatrixInitializer<Matrix> initializer(*this);
    \n-
    288
    \n-
    289 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<Matrix,std::set<std::size_t> >(mat,mrs));
    \n-
    290 }
    \n-
    \n-
    291
    \n-
    \n-
    293 virtual void setMatrix(const Matrix& mat)
    \n-
    294 {
    \n-\n-\n-
    297 SuperMatrixInitializer<Matrix> initializer(*this);
    \n+
    249 namespace Amg
    \n+
    250 {
    \n+
    251 template<class T> struct ConstructionTraits;
    \n+
    252 }
    \n+
    253
    \n+
    277 template<class X, class Y, class C, class P=Preconditioner<X,Y> >
    \n+
    \n+\n+
    279 friend struct Amg::ConstructionTraits<BlockPreconditioner<X,Y,C,P> >;
    \n+
    280 public:
    \n+
    285 typedef X domain_type;
    \n+
    290 typedef Y range_type;
    \n+
    292 typedef typename X::field_type field_type;
    \n+\n
    298
    \n-
    299 copyToBCCSMatrix(initializer, mat);
    \n-
    300 }
    \n+
    \n+\n+
    307 : _preconditioner(stackobject_to_shared_ptr(p)), _communication(c)
    \n+
    308 { }
    \n+
    \n+
    309
    \n+
    \n+
    317 BlockPreconditioner (const std::shared_ptr<P>& p, const communication_type& c)
    \n+
    318 : _preconditioner(p), _communication(c)
    \n+
    319 { }
    \n
    \n-
    301
    \n-
    \n-
    303 virtual void free()
    \n-
    304 {
    \n-
    305 ISTL::Impl::BCCSMatrix<typename BCRSMatrix<B,TA>::field_type, int>::free();
    \n-
    306 SUPERLU_FREE(A.Store);
    \n-
    307 }
    \n-
    \n-
    308 private:
    \n-
    309 SuperMatrix A;
    \n-
    310 };
    \n-
    \n-
    311
    \n-
    312 template<class B, class A>
    \n-
    \n-\n-
    314 : public ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<B,A>, int>
    \n-
    315 {
    \n-
    316 template<class I, class S, class D>
    \n-\n-
    318 public:
    \n-\n-\n-
    321
    \n-
    \n-
    322 SuperMatrixInitializer(SuperLUMatrix& lum) : ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<B,A>, int>(lum)
    \n-
    323 ,slumat(&lum)
    \n-
    324 {}
    \n-
    \n-
    325
    \n+
    320
    \n
    \n-
    326 SuperMatrixInitializer() : ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<B,A>, int>()
    \n-
    327 {}
    \n-
    \n-
    328
    \n-
    \n-
    329 virtual void createMatrix() const
    \n-
    330 {
    \n-
    331 ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<B,A>, int>::createMatrix();
    \n-\n-
    333 ::create(&slumat->A, slumat->N_, slumat->M_, slumat->colstart[this->cols],
    \n-
    334 slumat->values,slumat->rowindex, slumat->colstart, SLU_NC,
    \n-
    335 static_cast<Dtype_t>(GetSuperLUType<typename Matrix::field_type>::type), SLU_GE);
    \n-
    336 }
    \n-
    \n-
    337 private:
    \n-
    338 SuperLUMatrix* slumat;
    \n-
    339 };
    \n-
    \n-
    340}
    \n-
    341#endif // HAVE_SUPERLU
    \n-
    342#endif
    \n-
    Implementation of the BCRSMatrix class.
    \n-\n-\n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    STL namespace.
    \n+
    326 virtual void pre (X& x, Y& b)
    \n+
    327 {
    \n+
    328 _communication.copyOwnerToAll(x,x); // make dirichlet values consistent
    \n+
    329 _preconditioner->pre(x,b);
    \n+
    330 }
    \n+
    \n+
    331
    \n+
    \n+
    337 virtual void apply (X& v, const Y& d)
    \n+
    338 {
    \n+
    339 _preconditioner->apply(v,d);
    \n+
    340 _communication.copyOwnerToAll(v,v);
    \n+
    341 }
    \n+
    \n+
    342
    \n+
    343 template<bool forward>
    \n+
    \n+
    344 void apply (X& v, const Y& d)
    \n+
    345 {
    \n+
    346 _preconditioner->template apply<forward>(v,d);
    \n+
    347 _communication.copyOwnerToAll(v,v);
    \n+
    348 }
    \n+
    \n+
    349
    \n+
    \n+
    355 virtual void post (X& x)
    \n+
    356 {
    \n+
    357 _preconditioner->post(x);
    \n+
    358 }
    \n+
    \n+
    359
    \n+
    \n+\n+
    362 {
    \n+\n+
    364 }
    \n+
    \n+
    365
    \n+
    366 private:
    \n+
    368 std::shared_ptr<P> _preconditioner;
    \n+
    369
    \n+
    371 const communication_type& _communication;
    \n+
    372 };
    \n+
    \n+
    373
    \n+
    376} // end namespace
    \n+
    377
    \n+
    378#endif
    \n+
    Define base class for scalar product and norm.
    \n+
    Some generic functions for pretty printing vectors and matrices.
    \n+
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n+
    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
    \n+\n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Implementation of the BCRSMatrix class.
    \n+
    Implementations of the inverse operator interface.
    \n+
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n+
    Define general preconditioner interface.
    \n+
    The incomplete LU factorization kernels.
    \n+
    void bsorb(const M &A, X &x, const Y &b, const K &w)
    SSOR step.
    Definition gsetc.hh:646
    \n+
    void bsorf(const M &A, X &x, const Y &b, const K &w)
    SOR step.
    Definition gsetc.hh:634
    \n
    Definition allocator.hh:11
    \n-
    Initializer for SuperLU Matrices representing the subdomains.
    Definition overlappingschwarz.hh:47
    \n-
    static auto coldim(const M &A)
    Definition matrixutils.hh:219
    \n-
    static auto rowdim(const M &A)
    Definition matrixutils.hh:214
    \n-
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n-
    Sequential overlapping Schwarz preconditioner.
    Definition overlappingschwarz.hh:755
    \n-
    Definition overlappingschwarz.hh:694
    \n-
    SuperLu Solver.
    Definition superlu.hh:271
    \n-
    Definition supermatrix.hh:26
    \n-
    Definition supermatrix.hh:30
    \n-
    Definition supermatrix.hh:126
    \n-
    static const Dtype_t type
    Definition supermatrix.hh:127
    \n-
    Definition supermatrix.hh:132
    \n-
    double float_type
    Definition supermatrix.hh:144
    \n-
    float float_type
    Definition supermatrix.hh:151
    \n-
    double float_type
    Definition supermatrix.hh:158
    \n-
    float float_type
    Definition supermatrix.hh:165
    \n-
    Utility class for converting an ISTL Matrix into a SuperLU Matrix.
    Definition supermatrix.hh:175
    \n-
    Definition supermatrix.hh:179
    \n-
    virtual void free()
    free allocated space.
    Definition supermatrix.hh:303
    \n-
    SuperLUMatrix< BCRSMatrix< B, TA > > & operator=(const SuperLUMatrix< BCRSMatrix< B, TA > > &mat)
    Definition supermatrix.hh:256
    \n-
    SuperLUMatrix< BCRSMatrix< B, TA > > & operator=(const BCRSMatrix< B, TA > &mat)
    Definition supermatrix.hh:237
    \n-
    SuperLUMatrix(const Matrix &mat)
    Constructor that initializes the data.
    Definition supermatrix.hh:212
    \n-
    virtual void setMatrix(const Matrix &mat)
    Initialize data from given matrix.
    Definition supermatrix.hh:293
    \n-
    SuperLUMatrix()
    Definition supermatrix.hh:215
    \n-
    Matrix::size_type size_type
    Definition supermatrix.hh:206
    \n-
    BCRSMatrix< B, TA > Matrix
    The type of the matrix to convert.
    Definition supermatrix.hh:202
    \n-
    virtual void setMatrix(const Matrix &mat, const std::set< std::size_t > &mrs)
    Initialize data from a given set of matrix rows and columns.
    Definition supermatrix.hh:281
    \n-
    virtual ~SuperLUMatrix()
    Destructor.
    Definition supermatrix.hh:219
    \n-
    Dune::SuperLUMatrix< Matrix > SuperLUMatrix
    Definition supermatrix.hh:320
    \n-
    BCRSMatrix< B, A > Matrix
    Definition supermatrix.hh:319
    \n-
    SuperMatrixInitializer()
    Definition supermatrix.hh:326
    \n-
    virtual void createMatrix() const
    Definition supermatrix.hh:329
    \n-
    SuperMatrixInitializer(SuperLUMatrix &lum)
    Definition supermatrix.hh:322
    \n+
    A linear operator exporting itself in matrix form.
    Definition operators.hh:109
    \n+
    An overlapping Schwarz operator.
    Definition schwarz.hh:75
    \n+
    const communication_type & getCommunication() const
    Get the object responsible for communication.
    Definition schwarz.hh:146
    \n+
    virtual const matrix_type & getmat() const
    get the sequential assembled linear operator.
    Definition schwarz.hh:133
    \n+
    virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const
    apply operator to x, scale and add:
    Definition schwarz.hh:125
    \n+
    virtual void apply(const X &x, Y &y) const
    apply operator to x:
    Definition schwarz.hh:116
    \n+
    C communication_type
    The type of the communication object.
    Definition schwarz.hh:98
    \n+
    X domain_type
    The type of the domain.
    Definition schwarz.hh:86
    \n+
    M matrix_type
    The type of the matrix we operate on.
    Definition schwarz.hh:81
    \n+
    Y range_type
    The type of the range.
    Definition schwarz.hh:91
    \n+
    X::field_type field_type
    The field type of the range.
    Definition schwarz.hh:93
    \n+
    OverlappingSchwarzOperator(const matrix_type &A, const communication_type &com)
    constructor: just store a reference to a matrix.
    Definition schwarz.hh:107
    \n+
    OverlappingSchwarzOperator(const std::shared_ptr< matrix_type > A, const communication_type &com)
    Definition schwarz.hh:111
    \n+
    virtual SolverCategory::Category category() const
    Category of the linear operator (see SolverCategory::Category)
    Definition schwarz.hh:139
    \n+
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    A parallel SSOR preconditioner.
    Definition schwarz.hh:175
    \n+
    X::field_type field_type
    The field type of the preconditioner.
    Definition schwarz.hh:184
    \n+
    C communication_type
    The type of the communication object.
    Definition schwarz.hh:186
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition schwarz.hh:233
    \n+
    ParSSOR(const matrix_type &A, int n, field_type w, const communication_type &c)
    Constructor.
    Definition schwarz.hh:197
    \n+
    virtual void post(X &x)
    Clean up.
    Definition schwarz.hh:230
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition schwarz.hh:180
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition schwarz.hh:182
    \n+
    M matrix_type
    The matrix type the preconditioner is for.
    Definition schwarz.hh:178
    \n+
    virtual void apply(X &v, const Y &d)
    Apply the precondtioner.
    Definition schwarz.hh:216
    \n+
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition schwarz.hh:206
    \n+
    Block parallel preconditioner.
    Definition schwarz.hh:278
    \n+
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition schwarz.hh:326
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition schwarz.hh:285
    \n+
    BlockPreconditioner(const std::shared_ptr< P > &p, const communication_type &c)
    Constructor.
    Definition schwarz.hh:317
    \n+
    virtual void apply(X &v, const Y &d)
    Apply the preconditioner.
    Definition schwarz.hh:337
    \n+
    BlockPreconditioner(P &p, const communication_type &c)
    Constructor.
    Definition schwarz.hh:306
    \n+
    void apply(X &v, const Y &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition schwarz.hh:344
    \n+
    C communication_type
    The type of the communication object..
    Definition schwarz.hh:297
    \n+
    X::field_type field_type
    The field type of the preconditioner.
    Definition schwarz.hh:292
    \n+
    virtual void post(X &x)
    Clean up.
    Definition schwarz.hh:355
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition schwarz.hh:290
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition schwarz.hh:361
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ overlapping
    Category for overlapping solvers.
    Definition solvercategory.hh:29
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,461 +1,395 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-supermatrix.hh\n+schwarz.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_SUPERMATRIX_HH\n-6#define DUNE_ISTL_SUPERMATRIX_HH\n+5#ifndef DUNE_ISTL_SCHWARZ_HH\n+6#define DUNE_ISTL_SCHWARZ_HH\n 7\n-8#if HAVE_SUPERLU\n-9\n-10#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-11#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-12#include \n-13#include \n-14#include \n-15#include \n+8#include // for input/output to shell\n+9#include // for input/output to files\n+10#include // STL vector class\n+11#include \n+12\n+13#include // Yes, we do some math here\n+14\n+15#include \n 16\n-17#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n-18\n-19#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\"\n-20\n-21namespace _\bD_\bu_\bn_\be\n-22{\n-23\n-24 template\n-_\b2_\b5 struct _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n-26 {};\n-27\n-28 template\n-_\b2_\b9 struct _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\bi_\bn_\bt_\be_\br\n-30 {};\n+17#include \"_\bi_\bo_\b._\bh_\bh\"\n+18#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+19#include \"_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+20#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+21#include \"_\bi_\bo_\b._\bh_\bh\"\n+22#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n+23#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n+24#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n+25#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n+26#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n+27#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n+28#include \"_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\"\n+29\n+30namespace _\bD_\bu_\bn_\be {\n 31\n-32#if __has_include(\"slu_sdefs.h\")\n-33 template<>\n-34 struct _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n-35 {\n-36 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, int offset,\n-37 float *values, int *rowindex, int* colindex,\n-38 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n-39 {\n-40 sCreate_CompCol_Matrix(_\bm_\ba_\bt, n, m, offset, values, rowindex, colindex,\n-41 stype, dtype, mtype);\n-42 }\n-43 };\n-44\n-45 template<>\n-46 struct SuperMatrixPrinter\n-47 {\n-48 static void print(char* name, SuperMatrix* _\bm_\ba_\bt)\n-49 {\n-50 sPrint_CompCol_Matrix(name, _\bm_\ba_\bt);\n-51 }\n-52 };\n-53#endif\n-54\n-55#if __has_include(\"slu_ddefs.h\")\n-56 template<>\n-57 struct SuperMatrixCreateSparseChooser\n-58 {\n-59 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, int offset,\n-60 double *values, int *rowindex, int* colindex,\n-61 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n-62 {\n-63 dCreate_CompCol_Matrix(_\bm_\ba_\bt, n, m, offset, values, rowindex, colindex,\n-64 stype, dtype, mtype);\n-65 }\n-66 };\n-67\n-68 template<>\n-69 struct SuperMatrixPrinter\n-70 {\n-71 static void print(char* name, SuperMatrix* _\bm_\ba_\bt)\n-72 {\n-73 dPrint_CompCol_Matrix(name, _\bm_\ba_\bt);\n-74 }\n-75 };\n-76#endif\n-77\n-78#if __has_include(\"slu_cdefs.h\")\n-79 template<>\n-80 struct SuperMatrixCreateSparseChooser<_\bs_\bt_\bd::complex >\n-81 {\n-82 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, int offset,\n-83 std::complex *values, int *rowindex, int* colindex,\n-84 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n-85 {\n-86 cCreate_CompCol_Matrix(_\bm_\ba_\bt, n, m, offset, reinterpret_cast< ::complex*>\n-(values),\n-87 rowindex, colindex, stype, dtype, mtype);\n-88 }\n-89 };\n-90\n-91 template<>\n-92 struct SuperMatrixPrinter<_\bs_\bt_\bd::complex >\n-93 {\n-94 static void print(char* name, SuperMatrix* _\bm_\ba_\bt)\n-95 {\n-96 cPrint_CompCol_Matrix(name, _\bm_\ba_\bt);\n-97 }\n-98 };\n-99#endif\n-100\n-101#if __has_include(\"slu_zdefs.h\")\n-102 template<>\n-103 struct SuperMatrixCreateSparseChooser<_\bs_\bt_\bd::complex >\n-104 {\n-105 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, int offset,\n-106 std::complex *values, int *rowindex, int* colindex,\n-107 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n-108 {\n-109 zCreate_CompCol_Matrix(_\bm_\ba_\bt, n, m, offset, reinterpret_cast\n-(values),\n-110 rowindex, colindex, stype, dtype, mtype);\n-111 }\n-112 };\n-113\n-114 template<>\n-115 struct SuperMatrixPrinter<_\bs_\bt_\bd::complex >\n-116 {\n-117 static void print(char* name, SuperMatrix* _\bm_\ba_\bt)\n-118 {\n-119 zPrint_CompCol_Matrix(name, _\bm_\ba_\bt);\n-120 }\n-121 };\n-122#endif\n+73 template\n+_\b7_\b4 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br : public _\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+75 {\n+76 public:\n+_\b8_\b1 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b8_\b6 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b9_\b1 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b9_\b3 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b9_\b8 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n+99\n+_\b1_\b0_\b7 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br (const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& A, const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be&\n+com)\n+108 : _A_(stackobject_to_shared_ptr(A)), communication(com)\n+109 {}\n+110\n+_\b1_\b1_\b1 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br (const std::shared_ptr A, const\n+_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& com)\n+112 : _A_(A), communication(com)\n+113 {}\n+114\n+_\b1_\b1_\b6 virtual void _\ba_\bp_\bp_\bl_\by (const X& x, Y& y) const\n+117 {\n+118 y = 0;\n+119 _A_->umv(x,y); // result is consistent on interior+border\n+120 communication.project(y); // we want this here to avoid it before the\n+preconditioner\n+121 // since there d is const!\n+122 }\n 123\n-124 template\n-_\b1_\b2_\b5 struct _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n+_\b1_\b2_\b5 virtual void _\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd (_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha, const X& x, Y& y) const\n 126 {\n-_\b1_\b2_\b7 static const Dtype_t _\bt_\by_\bp_\be;\n-128 };\n-129\n-130 template\n-_\b1_\b3_\b1 struct _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n-132 {};\n-133\n-134 template\n-135 const Dtype_t _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be =\n-136 std::is_same::value ? SLU_S :\n-137 ( std::is_same >::value ? SLU_Z :\n-138 ( std::is_same >::value ? SLU_C : SLU_D ));\n-139\n-140 template<>\n-_\b1_\b4_\b1 struct _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n-142 : public _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n-143 {\n-_\b1_\b4_\b4 typedef double _\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be;\n-145 };\n-146\n-147 template<>\n-_\b1_\b4_\b8 struct _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n-149 : public _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n-150 {\n-_\b1_\b5_\b1 typedef float _\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be;\n-152 };\n-153\n-154 template<>\n-_\b1_\b5_\b5 struct _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be<_\bs_\bt_\bd::complex >\n-156 : public _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be >\n-157 {\n-_\b1_\b5_\b8 typedef double _\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be;\n-159 };\n-160\n-161 template<>\n-_\b1_\b6_\b2 struct _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be<_\bs_\bt_\bd::complex >\n-163 : public _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be >\n-164 {\n-_\b1_\b6_\b5 typedef float _\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be;\n-166\n-167 };\n-168\n-173 template\n-_\b1_\b7_\b4 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n-175 {};\n-176\n-177 template\n-_\b1_\b7_\b8 struct _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-179 {};\n-180\n-181 template\n-182 class _\bS_\bu_\bp_\be_\br_\bL_\bU;\n-183\n-184 template\n-185 class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz;\n-186\n-187 template\n-188 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br;\n-189\n-193 template\n-_\b1_\b9_\b4 class _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n-195 : public ISTL::Impl::BCCSMatrix::field_type, int>\n-196 {\n-197 template\n-_\b1_\b9_\b8 friend class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz;\n-199 friend struct _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >;\n-200 public:\n-_\b2_\b0_\b2 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n-203\n-204 friend struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bS_\bu_\bp_\be_\br_\bL_\bU<_\bM_\ba_\bt_\br_\bi_\bx>, true>;\n-205\n-_\b2_\b0_\b6 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-207\n-_\b2_\b1_\b2 explicit _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt) : ISTL::Impl::\n-BCCSMatrix<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx, int>(_\bm_\ba_\bt)\n-213 {}\n-214\n-_\b2_\b1_\b5 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx() : ISTL::Impl::BCCSMatrix::\n-field_type, int>()\n-216 {}\n-217\n-_\b2_\b1_\b9 virtual _\b~_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx()\n-220 {\n-221 if (this->N_+this->M_*this->Nnz_ != 0)\n-222 free();\n+127 _A_->usmv(alpha,x,y); // result is consistent on interior+border\n+128 communication.project(y); // we want this here to avoid it before the\n+preconditioner\n+129 // since there d is const!\n+130 }\n+131\n+_\b1_\b3_\b3 virtual const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bg_\be_\bt_\bm_\ba_\bt () const\n+134 {\n+135 return *_A_;\n+136 }\n+137\n+_\b1_\b3_\b9 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+140 {\n+141 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg;\n+142 }\n+143\n+144\n+_\b1_\b4_\b6 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn() const\n+147 {\n+148 return communication;\n+149 }\n+150 private:\n+151 const std::shared_ptr_A_;\n+152 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& communication;\n+153 };\n+154\n+157 /*\n+158 * @addtogroup ISTL_Prec\n+159 * @{\n+160 */\n+174 template\n+_\b1_\b7_\b5 class _\bP_\ba_\br_\bS_\bS_\bO_\bR : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n+176 public:\n+_\b1_\b7_\b8 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b1_\b8_\b0 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b1_\b8_\b2 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b1_\b8_\b4 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b1_\b8_\b6 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n+187\n+_\b1_\b9_\b7 _\bP_\ba_\br_\bS_\bS_\bO_\bR (const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& A, int n, _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w, const\n+_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& c)\n+198 : _A_(A), _n(n), _w(w), communication(c)\n+199 { }\n+200\n+_\b2_\b0_\b6 virtual void _\bp_\br_\be (X& x, [[maybe_unused]] Y& b)\n+207 {\n+208 communication.copyOwnerToAll(x,x); // make dirichlet values consistent\n+209 }\n+210\n+_\b2_\b1_\b6 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+217 {\n+218 for (int i=0; i<_n; i++) {\n+219 _\bb_\bs_\bo_\br_\bf(_A_,v,d,_w);\n+220 _\bb_\bs_\bo_\br_\bb(_A_,v,d,_w);\n+221 }\n+222 communication.copyOwnerToAll(v,v);\n 223 }\n 224\n-_\b2_\b2_\b6 operator SuperMatrix&()\n-227 {\n-228 return A;\n-229 }\n-230\n-_\b2_\b3_\b2 operator const SuperMatrix&() const\n-233 {\n-234 return A;\n-235 }\n-236\n-_\b2_\b3_\b7 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b> >& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>& _\bm_\ba_\bt)\n-238 {\n-239 if (this->N_ + this->M_ + this->Nnz_!=0)\n-240 free();\n-241\n-242 using _\bM_\ba_\bt_\br_\bi_\bx = _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>;\n-243 this->N_ = _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(_\bm_\ba_\bt);\n-244 this->M_ = _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(_\bm_\ba_\bt);\n-245 ISTL::Impl::BCCSMatrixInitializer initializer(*this);\n-246\n-247 copyToBCCSMatrix(initializer, _\bm_\ba_\bt);\n+_\b2_\b3_\b0 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x) {}\n+231\n+_\b2_\b3_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+234 {\n+235 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg;\n+236 }\n+237\n+238 private:\n+240 const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _A_;\n+242 int _n;\n+244 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _w;\n+_\b2_\b4_\b6 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& communication;\n+247 };\n 248\n-249 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>\n-250_\b _\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&A, this->N_, this->M_, this->colstart[this->N_],\n-251 this->values,this->rowindex, this->colstart, SLU_NC,\n-252 static_cast(_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bt_\by_\bp_\be),\n-SLU_GE);\n-253 return *this;\n-254 }\n-255\n-_\b2_\b5_\b6 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b> >& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(const _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n-<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b> >& _\bm_\ba_\bt)\n-257 {\n-258 if (this->N_ + this->M_ + this->Nnz_!=0)\n-259 free();\n-260\n-261 using _\bM_\ba_\bt_\br_\bi_\bx = _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>;\n-262 this->N_ = _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(_\bm_\ba_\bt);\n-263 this->M_ = _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(_\bm_\ba_\bt);\n-264 ISTL::Impl::BCCSMatrixInitializer initializer(*this);\n-265\n-266 copyToBCCSMatrix(initializer, _\bm_\ba_\bt);\n-267\n-268 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bB_\b>\n-269_\b _\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&A, this->N_, this->M_, this->colstart[this->N_],\n-270 this->values,this->rowindex, this->colstart, SLU_NC,\n-271 static_cast(_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bB_\b>_\b:_\b:_\bt_\by_\bp_\be), SLU_GE);\n-272 return *this;\n-273 }\n-274\n-_\b2_\b8_\b1 virtual void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt, const std::set& mrs)\n-282 {\n-283 if(this->N_+this->M_+this->Nnz_!=0)\n-284 free();\n-285 this->N_=mrs.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(*\n-(_\bm_\ba_\bt[0].begin()));\n-286 this->M_=mrs.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(*\n-(_\bm_\ba_\bt[0].begin()));\n-287 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> initializer(*this);\n-288\n-289 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<_\bM_\ba_\bt_\br_\bi_\bx,std::\n-set >(_\bm_\ba_\bt,mrs));\n-290 }\n-291\n-_\b2_\b9_\b3 virtual void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt)\n-294 {\n-295 this->N_=_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(_\bm_\ba_\bt);\n-296 this->M_=_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(_\bm_\ba_\bt);\n-297 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> initializer(*this);\n+249 namespace Amg\n+250 {\n+251 template struct ConstructionTraits;\n+252 }\n+253\n+277 template >\n+_\b2_\b7_\b8 class _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n+279 friend struct Amg::ConstructionTraits<_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >;\n+280 public:\n+_\b2_\b8_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b2_\b9_\b0 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b2_\b9_\b2 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b2_\b9_\b7 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n 298\n-299 copyToBCCSMatrix(initializer, _\bm_\ba_\bt);\n-300 }\n-301\n-_\b3_\b0_\b3 virtual void _\bf_\br_\be_\be()\n-304 {\n-305 ISTL::Impl::BCCSMatrix::field_type, int>::free();\n-306 SUPERLU_FREE(A.Store);\n-307 }\n-308 private:\n-309 SuperMatrix A;\n-310 };\n-311\n-312 template\n-_\b3_\b1_\b3 class _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n-314 : public ISTL::Impl::BCCSMatrixInitializer, int>\n-315 {\n-316 template\n-_\b3_\b1_\b7 friend class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n-318 public:\n-_\b3_\b1_\b9 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b3_\b2_\b0 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx;\n-321\n-_\b3_\b2_\b2 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br(_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx& lum) : ISTL::Impl::\n-BCCSMatrixInitializer<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx, int>(lum)\n-323 ,slumat(&lum)\n-324 {}\n-325\n-_\b3_\b2_\b6 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br() : ISTL::Impl::\n-BCCSMatrixInitializer<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx, int>()\n-327 {}\n-328\n-_\b3_\b2_\b9 virtual void _\bc_\br_\be_\ba_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx() const\n-330 {\n-331 ISTL::Impl::BCCSMatrixInitializer, int>::createMatrix();\n-332 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>\n-333_\b _\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&slumat->A, slumat->N_, slumat->M_, slumat->colstart[this->cols],\n-334 slumat->values,slumat->rowindex, slumat->colstart, SLU_NC,\n-335 static_cast(_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bt_\by_\bp_\be),\n-SLU_GE);\n-336 }\n-337 private:\n-338 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx* slumat;\n-339 };\n-340}\n-341#endif // HAVE_SUPERLU\n-342#endif\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n-_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh\n+_\b3_\b0_\b6 _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br (P& p, const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& c)\n+307 : _preconditioner(stackobject_to_shared_ptr(p)), _communication(c)\n+308 { }\n+309\n+_\b3_\b1_\b7 _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br (const std::shared_ptr

    & p, const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be&\n+c)\n+318 : _preconditioner(p), _communication(c)\n+319 { }\n+320\n+_\b3_\b2_\b6 virtual void _\bp_\br_\be (X& x, Y& b)\n+327 {\n+328 _communication.copyOwnerToAll(x,x); // make dirichlet values consistent\n+329 _preconditioner->pre(x,b);\n+330 }\n+331\n+_\b3_\b3_\b7 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+338 {\n+339 _preconditioner->apply(v,d);\n+340 _communication.copyOwnerToAll(v,v);\n+341 }\n+342\n+343 template\n+_\b3_\b4_\b4 void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+345 {\n+346 _preconditioner->template apply(v,d);\n+347 _communication.copyOwnerToAll(v,v);\n+348 }\n+349\n+_\b3_\b5_\b5 virtual void _\bp_\bo_\bs_\bt (X& x)\n+356 {\n+357 _preconditioner->post(x);\n+358 }\n+359\n+_\b3_\b6_\b1 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+362 {\n+363 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg;\n+364 }\n+365\n+366 private:\n+368 std::shared_ptr

    _preconditioner;\n+369\n+371 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& _communication;\n+372 };\n+373\n+376} // end namespace\n+377\n+378#endif\n+_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n+Define base class for scalar product and norm.\n+_\bi_\bo_\b._\bh_\bh\n+Some generic functions for pretty printing vectors and matrices.\n+_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n+Classes providing communication interfaces for overlapping Schwarz methods.\n+_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\n+Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n+generic way.\n+_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+???\n _\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n This file implements a vector space as a tensor product of a given vector\n space. The number of compon...\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bs_\bt_\bd\n-STL namespace.\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n+_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n+Implementations of the inverse operator interface.\n+_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n+Define general, extensible interface for operators. The available\n+implementation wraps a matrix.\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n+Define general preconditioner interface.\n+_\bi_\bl_\bu_\b._\bh_\bh\n+The incomplete LU factorization kernels.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+void bsorb(const M &A, X &x, const Y &b, const K &w)\n+SSOR step.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:646\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+void bsorf(const M &A, X &x, const Y &b, const K &w)\n+SOR step.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:634\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-Initializer for SuperLU Matrices representing the subdomains.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:47\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static auto coldim(const M &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:219\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static auto rowdim(const M &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:214\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-The type for the index access and the size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n-Sequential overlapping Schwarz preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:694\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU\n-SuperLu Solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:271\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:26\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\bi_\bn_\bt_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b:_\b:_\bt_\by_\bp_\be\n-static const Dtype_t type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:127\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:132\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be\n-double float_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:144\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be\n-float float_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:151\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b _\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be\n-double float_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:158\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b _\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be\n-float float_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:165\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n-Utility class for converting an ISTL Matrix into a SuperLU Matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:175\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:179\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\br_\be_\be\n-virtual void free()\n-free allocated space.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:303\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-SuperLUMatrix< BCRSMatrix< B, TA > > & operator=(const SuperLUMatrix<\n-BCRSMatrix< B, TA > > &mat)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:256\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-SuperLUMatrix< BCRSMatrix< B, TA > > & operator=(const BCRSMatrix< B, TA >\n-&mat)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:237\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n-SuperLUMatrix(const Matrix &mat)\n-Constructor that initializes the data.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:212\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-virtual void setMatrix(const Matrix &mat)\n-Initialize data from given matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n-SuperLUMatrix()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:215\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:206\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix< B, TA > Matrix\n-The type of the matrix to convert.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:202\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-virtual void setMatrix(const Matrix &mat, const std::set< std::size_t > &mrs)\n-Initialize data from a given set of matrix rows and columns.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:281\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\b~_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n-virtual ~SuperLUMatrix()\n-Destructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:219\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n-Dune::SuperLUMatrix< Matrix > SuperLUMatrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:320\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix< B, A > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:319\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-SuperMatrixInitializer()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:326\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx\n-virtual void createMatrix() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:329\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-SuperMatrixInitializer(SuperLUMatrix &lum)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:322\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A linear operator exporting itself in matrix form.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:109\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+An overlapping Schwarz operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+const communication_type & getCommunication() const\n+Get the object responsible for communication.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:146\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bm_\ba_\bt\n+virtual const matrix_type & getmat() const\n+get the sequential assembled linear operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:133\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd\n+virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const\n+apply operator to x, scale and add:\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:125\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(const X &x, Y &y) const\n+apply operator to x:\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:116\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n+C communication_type\n+The type of the communication object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:98\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The type of the domain.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:86\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+The type of the matrix we operate on.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The type of the range.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:91\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the range.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:93\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+OverlappingSchwarzOperator(const matrix_type &A, const communication_type &com)\n+constructor: just store a reference to a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:107\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+OverlappingSchwarzOperator(const std::shared_ptr< matrix_type > A, const\n+communication_type &com)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:111\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the linear operator (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:139\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR\n+A parallel SSOR preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:175\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:184\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n+C communication_type\n+The type of the communication object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:186\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:233\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR\n+ParSSOR(const matrix_type &A, int n, field_type w, const communication_type &c)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:197\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(X &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:230\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:180\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:182\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+The matrix type the preconditioner is for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:178\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &v, const Y &d)\n+Apply the precondtioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:216\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR_\b:_\b:_\bp_\br_\be\n+virtual void pre(X &x, Y &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:206\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Block parallel preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:278\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\br_\be\n+virtual void pre(X &x, Y &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:326\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:285\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+BlockPreconditioner(const std::shared_ptr< P > &p, const communication_type &c)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:317\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &v, const Y &d)\n+Apply the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:337\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+BlockPreconditioner(P &p, const communication_type &c)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:306\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(X &v, const Y &d)\n+Apply one step of the preconditioner to the system A(v)=d.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:344\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n+C communication_type\n+The type of the communication object..\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:297\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:292\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(X &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:355\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:290\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:361\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n+@ overlapping\n+Category for overlapping solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:29\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00017.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00017.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: gsetc.hh File Reference\n+dune-istl: matrixmarket.hh File Reference\n \n \n \n \n \n \n \n@@ -73,194 +73,263 @@\n

    \n \n
    \n \n-
    gsetc.hh File Reference
    \n+Functions |\n+Variables
    \n+ \n \n
    \n \n-

    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way. \n+

    Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices. \n More...

    \n-
    #include <cmath>
    \n+
    #include <algorithm>
    \n #include <complex>
    \n+#include <cstddef>
    \n+#include <fstream>
    \n+#include <ios>
    \n #include <iostream>
    \n-#include <iomanip>
    \n+#include <istream>
    \n+#include <limits>
    \n+#include <ostream>
    \n+#include <set>
    \n+#include <sstream>
    \n #include <string>
    \n+#include <tuple>
    \n+#include <type_traits>
    \n+#include <vector>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/fmatrix.hh>
    \n+#include <dune/common/fvector.hh>
    \n #include <dune/common/hybridutilities.hh>
    \n-#include "multitypeblockvector.hh"
    \n-#include "multitypeblockmatrix.hh"
    \n-#include "istlexception.hh"
    \n+#include <dune/common/stdstreams.hh>
    \n+#include <dune/common/simd/simd.hh>
    \n+#include <dune/istl/bcrsmatrix.hh>
    \n+#include <dune/istl/bvector.hh>
    \n+#include <dune/istl/matrixutils.hh>
    \n+#include <dune/istl/owneroverlapcopy.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    struct  Dune::BL< l >
     compile-time parameter for block recursion depth More...
    struct  Dune::MatrixMarketImpl::mm_numeric_type< T >
     Helper metaprogram to get the matrix market string representation of the numeric type. More...
     
    struct  Dune::algmeta_btsolve< I, diag, relax >
    struct  Dune::MatrixMarketImpl::mm_numeric_type< int >
     
    struct  Dune::algmeta_btsolve< 0, withdiag, withrelax >
    struct  Dune::MatrixMarketImpl::mm_numeric_type< double >
     
    struct  Dune::algmeta_btsolve< 0, withdiag, norelax >
    struct  Dune::MatrixMarketImpl::mm_numeric_type< float >
     
    struct  Dune::algmeta_btsolve< 0, nodiag, withrelax >
    struct  Dune::MatrixMarketImpl::mm_numeric_type< std::complex< double > >
     
    struct  Dune::algmeta_btsolve< 0, nodiag, norelax >
    struct  Dune::MatrixMarketImpl::mm_numeric_type< std::complex< float > >
     
    struct  Dune::algmeta_bdsolve< I, relax >
    struct  Dune::MatrixMarketImpl::mm_header_printer< BCRSMatrix< T, A > >
     
    struct  Dune::algmeta_bdsolve< 0, withrelax >
    struct  Dune::MatrixMarketImpl::mm_header_printer< BlockVector< B, A > >
     
    struct  Dune::algmeta_bdsolve< 0, norelax >
    struct  Dune::MatrixMarketImpl::mm_header_printer< FieldVector< T, j > >
     
    struct  Dune::algmeta_itsteps< I, M >
    struct  Dune::MatrixMarketImpl::mm_header_printer< FieldMatrix< T, i, j > >
     
    struct  Dune::algmeta_itsteps< 0, M >
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< BlockVector< T, A > >
     
    struct  Dune::algmeta_itsteps< I, MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > >
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< BlockVector< FieldVector< T, i >, A > >
     
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< BCRSMatrix< T, A > >
     
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< BCRSMatrix< FieldMatrix< T, i, j >, A > >
     
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< FieldMatrix< T, i, j > >
     
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< FieldVector< T, i > >
     
    struct  Dune::MatrixMarketImpl::MMHeader
     
    struct  Dune::MatrixMarketImpl::IndexData< T >
     
    struct  Dune::MatrixMarketImpl::NumericWrapper< T >
     a wrapper class of numeric values. More...
     
    struct  Dune::MatrixMarketImpl::PatternDummy
     Utility class for marking the pattern type of the MatrixMarket matrices. More...
     
    struct  Dune::MatrixMarketImpl::NumericWrapper< PatternDummy >
     
    struct  Dune::MatrixMarketImpl::MatrixValuesSetter< D, brows, bcols >
     Functor to the data values of the matrix. More...
     
    struct  Dune::MatrixMarketImpl::MatrixValuesSetter< PatternDummy, brows, bcols >
     
    struct  Dune::MatrixMarketImpl::is_complex< T >
     
    struct  Dune::MatrixMarketImpl::is_complex< std::complex< T > >
     
    struct  Dune::MatrixMarketImpl::mm_multipliers< M >
     
    struct  Dune::MatrixMarketImpl::mm_multipliers< BCRSMatrix< B, A > >
     
    struct  Dune::MatrixMarketImpl::mm_multipliers< BCRSMatrix< FieldMatrix< B, i, j >, A > >
     
    class  Dune::MatrixMarketFormatError
     
    \n \n \n \n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::MatrixMarketImpl
     
    \n \n-\n+\n+\n+\n+\n-\n-\n+\n-\n+\n+\n+\n

    \n Enumerations

    enum  Dune::WithDiagType { Dune::withdiag =1\n-, Dune::nodiag =0\n+
    enum  Dune::MatrixMarketImpl::LineType { Dune::MatrixMarketImpl::MM_HEADER\n+, Dune::MatrixMarketImpl::MM_ISTLSTRUCT\n+, Dune::MatrixMarketImpl::DATA\n+ }
     
    enum  { Dune::MatrixMarketImpl::MM_MAX_LINE_LENGTH =1025\n+ }
     
    enum  Dune::MatrixMarketImpl::MM_TYPE { Dune::MatrixMarketImpl::coordinate_type\n+, Dune::MatrixMarketImpl::array_type\n+, Dune::MatrixMarketImpl::unknown_type\n }
     
    enum  Dune::WithRelaxType { Dune::withrelax =1\n-, Dune::norelax =0\n+
     
    enum  Dune::MatrixMarketImpl::MM_CTYPE {
    \n+  Dune::MatrixMarketImpl::integer_type\n+, Dune::MatrixMarketImpl::double_type\n+, Dune::MatrixMarketImpl::complex_type\n+, Dune::MatrixMarketImpl::pattern\n+,
    \n+  Dune::MatrixMarketImpl::unknown_ctype\n+
    \n }
     
     
    enum  Dune::MatrixMarketImpl::MM_STRUCTURE {
    \n+  Dune::MatrixMarketImpl::general\n+, Dune::MatrixMarketImpl::symmetric\n+, Dune::MatrixMarketImpl::skew_symmetric\n+, Dune::MatrixMarketImpl::hermitian\n+,
    \n+  Dune::MatrixMarketImpl::unknown_structure\n+
    \n+ }
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n Functions

    template<class M , class X , class Y >
    void Dune::bltsolve (const M &A, X &v, const Y &d)
     block lower triangular solve
     
    template<class M , class X , class Y , class K >
    void Dune::bltsolve (const M &A, X &v, const Y &d, const K &w)
     relaxed block lower triangular solve
     
    template<class M , class X , class Y >
    void Dune::ubltsolve (const M &A, X &v, const Y &d)
     unit block lower triangular solve
     
    template<class M , class X , class Y , class K >
    void Dune::ubltsolve (const M &A, X &v, const Y &d, const K &w)
     relaxed unit block lower triangular solve
     
    template<class M , class X , class Y >
    void Dune::butsolve (const M &A, X &v, const Y &d)
     block upper triangular solve
     
    template<class M , class X , class Y , class K >
    void Dune::butsolve (const M &A, X &v, const Y &d, const K &w)
     relaxed block upper triangular solve
     
    template<class M , class X , class Y >
    void Dune::ubutsolve (const M &A, X &v, const Y &d)
     unit block upper triangular solve
     
    template<class M , class X , class Y , class K >
    void Dune::ubutsolve (const M &A, X &v, const Y &d, const K &w)
     relaxed unit block upper triangular solve
     
    template<class M , class X , class Y , int l>
    void Dune::bltsolve (const M &A, X &v, const Y &d, BL< l >)
     block lower triangular solve
     
    template<class M , class X , class Y , class K , int l>
    void Dune::bltsolve (const M &A, X &v, const Y &d, const K &w, BL< l >)
     relaxed block lower triangular solve
     
    template<class M , class X , class Y , int l>
    void Dune::ubltsolve (const M &A, X &v, const Y &d, BL< l >)
     unit block lower triangular solve
     
    template<class M , class X , class Y , class K , int l>
    void Dune::ubltsolve (const M &A, X &v, const Y &d, const K &w, BL< l >)
     relaxed unit block lower triangular solve
     
    template<class M , class X , class Y , int l>
    void Dune::butsolve (const M &A, X &v, const Y &d, BL< l > bl)
     block upper triangular solve
     
    template<class M , class X , class Y , class K , int l>
    void Dune::butsolve (const M &A, X &v, const Y &d, const K &w, BL< l > bl)
     relaxed block upper triangular solve
     
    template<class M , class X , class Y , int l>
    void Dune::ubutsolve (const M &A, X &v, const Y &d, BL< l > bl)
     unit block upper triangular solve
     
    template<class M , class X , class Y , class K , int l>
    void Dune::ubutsolve (const M &A, X &v, const Y &d, const K &w, BL< l > bl)
     relaxed unit block upper triangular solve
     
    template<class M , class X , class Y >
    void Dune::bdsolve (const M &A, X &v, const Y &d)
     block diagonal solve, no relaxation
     
    template<class M , class X , class Y , class K >
    void Dune::bdsolve (const M &A, X &v, const Y &d, const K &w)
     block diagonal solve, with relaxation
     
    template<class M , class X , class Y , int l>
    void Dune::bdsolve (const M &A, X &v, const Y &d, BL< l >)
     block diagonal solve, no relaxation
     
    template<class M , class X , class Y , class K , int l>
    void Dune::bdsolve (const M &A, X &v, const Y &d, const K &w, BL< l >)
     block diagonal solve, with relaxation
     
    template<class M , class X , class Y , class K >
    void Dune::dbgs (const M &A, X &x, const Y &b, const K &w)
     GS step.
     
    template<class M , class X , class Y , class K , int l>
    void Dune::dbgs (const M &A, X &x, const Y &b, const K &w, BL< l >)
     GS step.
     
    template<class M , class X , class Y , class K >
    void Dune::bsorf (const M &A, X &x, const Y &b, const K &w)
     SOR step.
     
    template<class M , class X , class Y , class K , int l>
    void Dune::bsorf (const M &A, X &x, const Y &b, const K &w, BL< l >)
     SOR step.
     
    template<class M , class X , class Y , class K >
    void Dune::bsorb (const M &A, X &x, const Y &b, const K &w)
     SSOR step.
     
    template<class M , class X , class Y , class K , int l>
    void Dune::bsorb (const M &A, X &x, const Y &b, const K &w, BL< l >)
     Backward SOR step.
     
    template<class M , class X , class Y , class K >
    void Dune::dbjac (const M &A, X &x, const Y &b, const K &w)
     Jacobi step.
     
    template<class M , class X , class Y , class K , int l>
    void Dune::dbjac (const M &A, X &x, const Y &b, const K &w, BL< l >)
     Jacobi step.
     
    bool Dune::MatrixMarketImpl::lineFeed (std::istream &file)
     
    void Dune::MatrixMarketImpl::skipComments (std::istream &file)
     
    bool Dune::MatrixMarketImpl::readMatrixMarketBanner (std::istream &file, MMHeader &mmHeader)
     
    template<std::size_t brows, std::size_t bcols>
    std::tuple< std::size_t, std::size_t, std::size_t > Dune::MatrixMarketImpl::calculateNNZ (std::size_t rows, std::size_t cols, std::size_t entries, const MMHeader &header)
     
    template<typename T >
    std::istream & Dune::MatrixMarketImpl::operator>> (std::istream &is, NumericWrapper< T > &num)
     
    std::istream & Dune::MatrixMarketImpl::operator>> (std::istream &is, NumericWrapper< PatternDummy > &num)
     
    template<typename T >
    bool Dune::MatrixMarketImpl::operator< (const IndexData< T > &i1, const IndexData< T > &i2)
     LessThan operator.
     
    template<typename T >
    std::istream & Dune::MatrixMarketImpl::operator>> (std::istream &is, IndexData< T > &data)
     Read IndexData from a stream.
     
    template<typename T >
    std::istream & Dune::MatrixMarketImpl::operator>> (std::istream &is, IndexData< NumericWrapper< std::complex< T > > > &data)
     Read IndexData from a stream. Specialization for std::complex.
     
    template<class T >
    std::enable_if_t<!is_complex< T >::value, T > Dune::MatrixMarketImpl::conj (const T &r)
     
    template<class T >
    std::enable_if_t< is_complex< T >::value, T > Dune::MatrixMarketImpl::conj (const T &r)
     
    template<typename T , typename A , typename D >
    void Dune::MatrixMarketImpl::readSparseEntries (Dune::BCRSMatrix< T, A > &matrix, std::istream &file, std::size_t entries, const MMHeader &mmHeader, const D &)
     
    std::tuple< std::string, std::string > Dune::MatrixMarketImpl::splitFilename (const std::string &filename)
     
    void Dune::mm_read_header (std::size_t &rows, std::size_t &cols, MatrixMarketImpl::MMHeader &header, std::istream &istr, bool isVector)
     
    template<typename T , typename A >
    void Dune::mm_read_vector_entries (Dune::BlockVector< T, A > &vector, std::size_t size, std::istream &istr, size_t lane)
     
    template<typename T , typename A , int entries>
    void Dune::mm_read_vector_entries (Dune::BlockVector< Dune::FieldVector< T, entries >, A > &vector, std::size_t size, std::istream &istr, size_t lane)
     
    template<typename T , typename A >
    void Dune::readMatrixMarket (Dune::BlockVector< T, A > &vector, std::istream &istr)
     Reads a BlockVector from a matrix market file.
     
    template<typename T , typename A >
    void Dune::readMatrixMarket (Dune::BCRSMatrix< T, A > &matrix, std::istream &istr)
     Reads a sparse matrix from a matrix market file.
     
    template<typename B >
    void Dune::mm_print_entry (const B &entry, std::size_t rowidx, std::size_t colidx, std::ostream &ostr)
     
    template<typename V >
    void Dune::mm_print_vector_entry (const V &entry, std::ostream &ostr, const std::integral_constant< int, 1 > &, size_t lane)
     
    template<typename V >
    void Dune::mm_print_vector_entry (const V &vector, std::ostream &ostr, const std::integral_constant< int, 0 > &, size_t lane)
     
    template<typename T , typename A >
    std::size_t Dune::countEntries (const BlockVector< T, A > &vector)
     
    template<typename T , typename A , int i>
    std::size_t Dune::countEntries (const BlockVector< FieldVector< T, i >, A > &vector)
     
    template<typename V >
    void Dune::writeMatrixMarket (const V &vector, std::ostream &ostr, const std::integral_constant< int, 0 > &)
     
    template<typename M >
    void Dune::writeMatrixMarket (const M &matrix, std::ostream &ostr, const std::integral_constant< int, 1 > &)
     
    template<typename M >
    void Dune::writeMatrixMarket (const M &matrix, std::ostream &ostr)
     writes a ISTL matrix or vector to a stream in matrix market format.
     
    template<typename M >
    void Dune::storeMatrixMarket (const M &matrix, std::string filename, int prec=default_precision)
     Stores a parallel matrix/vector in matrix market format in a file.
     
    template<typename M , typename G , typename L >
    void Dune::storeMatrixMarket (const M &matrix, std::string filename, const OwnerOverlapCopyCommunication< G, L > &comm, bool storeIndices=true, int prec=default_precision)
     Stores a parallel matrix/vector in matrix market format in a file.
     
    template<typename M , typename G , typename L >
    void Dune::loadMatrixMarket (M &matrix, const std::string &filename, OwnerOverlapCopyCommunication< G, L > &comm, bool readIndices=true)
     Load a parallel matrix/vector stored in matrix market format.
     
    template<typename M >
    void Dune::loadMatrixMarket (M &matrix, const std::string &filename)
     Load a matrix/vector stored in matrix market format.
     
    \n+\n+\n+\n

    \n+Variables

    static const int Dune::default_precision = -1
     
    \n

    Detailed Description

    \n-

    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.

    \n+

    Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices.

    \n+
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,173 +1,316 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bE_\bn_\bu_\bm_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-gsetc.hh File Reference\n-Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n-generic way. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bE_\bn_\bu_\bm_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs | _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs\n+matrixmarket.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bS_\bp_\ba_\br_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bc_\bl_\ba_\bs_\bs_\be_\bs \u00bb\n+_\bI_\bO_\b _\bf_\bo_\br_\b _\bm_\ba_\bt_\br_\bi_\bc_\be_\bs_\b _\ba_\bn_\bd_\b _\bv_\be_\bc_\bt_\bo_\br_\bs_\b.\n+Provides classes for reading and writing MatrixMarket Files with an extension\n+for parallel matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n #include \n+#include \n+#include \n+#include \n #include \n-#include \n+#include \n+#include \n+#include \n+#include \n+#include \n #include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n #include \n-#include \"_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \"_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bL_\b<_\b _\bl_\b _\b>\n-\u00a0 compile-time parameter for block recursion depth _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bT_\b _\b>\n+\u00a0 Helper metaprogram to get the matrix market string representation of\n+ the numeric type. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\bI_\b,_\b _\bd_\bi_\ba_\bg_\b,_\b _\br_\be_\bl_\ba_\bx_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bi_\bn_\bt_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b _\bI_\b,_\b _\br_\be_\bl_\ba_\bx_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bj_\b _\b>_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,_\b _\bj_\b _\b>_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\b0_\b,_\b _\bM_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>\n+ _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,\n- _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<\n+ _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bi_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>\n+ _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<\n+ _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,_\b _\bj_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,\n+ _\bj_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bi_\b _\b>\n+ _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\b _\bT_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b<_\b _\bT_\b _\b>\n+\u00a0 a wrapper class of numeric values. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by\n+\u00a0 Utility class for marking the pattern type of the MatrixMarket\n+ matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b<_\b _\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b<_\b _\bD_\b,_\b _\bb_\br_\bo_\bw_\bs_\b,_\b _\bb_\bc_\bo_\bl_\bs_\b _\b>\n+\u00a0 Functor to the data values of the matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b<_\b _\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by_\b,_\b _\bb_\br_\bo_\bw_\bs_\b,_\b _\bb_\bc_\bo_\bl_\bs\n+ _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bT_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bT_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\b _\bM_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bi_\b,\n+ _\bj_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl\n+\u00a0\n E\bEn\bnu\bum\bme\ber\bra\bat\bti\bio\bon\bns\bs\n-enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bW_\bi_\bt_\bh_\bD_\bi_\ba_\bg_\bT_\by_\bp_\be { _\bD_\bu_\bn_\be_\b:_\b:_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg =1 , _\bD_\bu_\bn_\be_\b:_\b:_\bn_\bo_\bd_\bi_\ba_\bg =0 }\n+enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bL_\bi_\bn_\be_\bT_\by_\bp_\be { _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bH_\bE_\bA_\bD_\bE_\bR ,\n+ _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bI_\bS_\bT_\bL_\bS_\bT_\bR_\bU_\bC_\bT , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bD_\bA_\bT_\bA }\n+\u00a0\n+enum \u00a0 { _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bM_\bA_\bX_\b__\bL_\bI_\bN_\bE_\b__\bL_\bE_\bN_\bG_\bT_\bH =1025 }\n \u00a0\n-enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bW_\bi_\bt_\bh_\bR_\be_\bl_\ba_\bx_\bT_\by_\bp_\be { _\bD_\bu_\bn_\be_\b:_\b:_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx =1 , _\bD_\bu_\bn_\be_\b:_\b:_\bn_\bo_\br_\be_\bl_\ba_\bx =0 }\n+enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bT_\bY_\bP_\bE { _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:\n+ _\bc_\bo_\bo_\br_\bd_\bi_\bn_\ba_\bt_\be_\b__\bt_\by_\bp_\be , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\ba_\br_\br_\ba_\by_\b__\bt_\by_\bp_\be , _\bD_\bu_\bn_\be_\b:_\b:\n+ _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bt_\by_\bp_\be }\n+\u00a0\n+enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bC_\bT_\bY_\bP_\bE {\n+ \u00a0\u00a0_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bi_\bn_\bt_\be_\bg_\be_\br_\b__\bt_\by_\bp_\be , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:\n+ _\bd_\bo_\bu_\bb_\bl_\be_\b__\bt_\by_\bp_\be , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b__\bt_\by_\bp_\be , _\bD_\bu_\bn_\be_\b:_\b:\n+ _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bp_\ba_\bt_\bt_\be_\br_\bn ,\n+ \u00a0\u00a0_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bc_\bt_\by_\bp_\be\n+ }\n+\u00a0\n+enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bS_\bT_\bR_\bU_\bC_\bT_\bU_\bR_\bE {\n+ \u00a0\u00a0_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bg_\be_\bn_\be_\br_\ba_\bl , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc ,\n+ _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:\n+ _\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn ,\n+ \u00a0\u00a0_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be\n+ }\n \u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n-\u00a0 block lower triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w)\n-\u00a0 relaxed block lower triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n-\u00a0 unit block lower triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w)\n-\u00a0 relaxed unit block lower triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n-\u00a0 block upper triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w)\n-\u00a0 relaxed block upper triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n-\u00a0 unit block upper triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w)\n-\u00a0 relaxed unit block upper triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, _\bB_\bL< l >)\n-\u00a0 block lower triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w, _\bB_\bL< l >)\n-\u00a0 relaxed block lower triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, _\bB_\bL< l >)\n-\u00a0 unit block lower triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w, _\bB_\bL< l >)\n-\u00a0 relaxed unit block lower triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, _\bB_\bL< l > bl)\n-\u00a0 block upper triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w, _\bB_\bL< l > bl)\n-\u00a0 relaxed block upper triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, _\bB_\bL< l > bl)\n-\u00a0 unit block upper triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w, _\bB_\bL< l > bl)\n-\u00a0 relaxed unit block upper triangular solve\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n-\u00a0 block diagonal solve, no relaxation\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w)\n-\u00a0 block diagonal solve, with relaxation\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, _\bB_\bL< l >)\n-\u00a0 block diagonal solve, no relaxation\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w, _\bB_\bL< l >)\n-\u00a0 block diagonal solve, with relaxation\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bg_\bs (const M &A, X &x, const Y &b, const K &w)\n-\u00a0 GS step.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bg_\bs (const M &A, X &x, const Y &b, const K &w, _\bB_\bL< l >)\n-\u00a0 GS step.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bf (const M &A, X &x, const Y &b, const K &w)\n-\u00a0 SOR step.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bf (const M &A, X &x, const Y &b, const K &w, _\bB_\bL< l >)\n-\u00a0 SOR step.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bb (const M &A, X &x, const Y &b, const K &w)\n-\u00a0 SSOR step.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bb (const M &A, X &x, const Y &b, const K &w, _\bB_\bL< l >)\n-\u00a0 Backward SOR step.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bj_\ba_\bc (const M &A, X &x, const Y &b, const K &w)\n-\u00a0 Jacobi step.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bj_\ba_\bc (const M &A, X &x, const Y &b, const K &w, _\bB_\bL< l >)\n-\u00a0 Jacobi step.\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bl_\bi_\bn_\be_\bF_\be_\be_\bd (std::\n+ istream &file)\n+\u00a0\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bk_\bi_\bp_\bC_\bo_\bm_\bm_\be_\bn_\bt_\bs\n+ (std::istream &file)\n+\u00a0\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:\n+ _\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bB_\ba_\bn_\bn_\be_\br (std::istream\n+ &file, _\bM_\bM_\bH_\be_\ba_\bd_\be_\br &mmHeader)\n+\u00a0\n+template\n+ std::tuple< std::size_t, std::size_t, _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bN_\bN_\bZ\n+ std::size_t >\u00a0 (std::size_t rows, std::size_t cols,\n+ std::size_t entries, const _\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n+ &header)\n+\u00a0\n+template\n+ std::istream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n+ (std::istream &is, _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br< T >\n+ &num)\n+\u00a0\n+ std::istream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n+ (std::istream &is, _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br<\n+ _\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by > &num)\n+\u00a0\n+template\n+ bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<\n+ (const _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba< T > &i1, const\n+ _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba< T > &i2)\n+\u00a0 LessThan operator.\n+\u00a0\n+template\n+ std::istream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n+ (std::istream &is, _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba< T >\n+ &data)\n+\u00a0 Read _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba from a stream.\n+\u00a0\n+template\n+ std::istream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n+ (std::istream &is, _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba<\n+ _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br< std::complex< T > > >\n+ &data)\n+\u00a0 Read _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba from a stream.\n+ Specialization for std::complex.\n+\u00a0\n+template\n+ std::enable_if_t:: _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bn_\bj (const T\n+ value, T >\u00a0 &r)\n+\u00a0\n+template\n+ std::enable_if_t< _\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx< T >:: _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bn_\bj (const T\n+ value, T >\u00a0 &r)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:\n+ _\br_\be_\ba_\bd_\bS_\bp_\ba_\br_\bs_\be_\bE_\bn_\bt_\br_\bi_\be_\bs (_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< T,\n+ A > &matrix, std::istream &file, std::\n+ size_t entries, const _\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n+ &mmHeader, const D &)\n+\u00a0\n+std::tuple< std::string, std::string >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n+ (const std::string &filename)\n+\u00a0\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bh_\be_\ba_\bd_\be_\br (std::size_t\n+ &rows, std::size_t &cols,\n+ _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br &header,\n+ std::istream &istr, bool isVector)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs (_\bD_\bu_\bn_\be_\b:_\b:\n+ _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br< T, A > &vector, std::\n+ size_t size, std::istream &istr, size_t\n+ lane)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs (_\bD_\bu_\bn_\be_\b:_\b:\n+ _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br< Dune::FieldVector< T,\n+ entries >, A > &vector, std::size_t\n+ size, std::istream &istr, size_t lane)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (_\bD_\bu_\bn_\be_\b:_\b:\n+ _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br< T, A > &vector, std::\n+ istream &istr)\n+\u00a0 Reads a _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br from a matrix\n+ market file.\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (_\bD_\bu_\bn_\be_\b:_\b:\n+ _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< T, A > &matrix, std::\n+ istream &istr)\n+\u00a0 Reads a sparse matrix from a matrix\n+ market file.\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\be_\bn_\bt_\br_\by (const B &entry,\n+ std::size_t rowidx, std::size_t colidx,\n+ std::ostream &ostr)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by (const V\n+ &entry, std::ostream &ostr, const std::\n+ integral_constant< int, 1 > &, size_t\n+ lane)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by (const V\n+ &vector, std::ostream &ostr, const\n+ std::integral_constant< int, 0 > &,\n+ size_t lane)\n+\u00a0\n+template\n+ std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs (const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br<\n+ T, A > &vector)\n+\u00a0\n+template\n+ std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs (const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br<\n+ FieldVector< T, i >, A > &vector)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (const V\n+ &vector, std::ostream &ostr, const\n+ std::integral_constant< int, 0 > &)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (const M\n+ &matrix, std::ostream &ostr, const\n+ std::integral_constant< int, 1 > &)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (const M\n+ &matrix, std::ostream &ostr)\n+\u00a0 writes a _\bI_\bS_\bT_\bL matrix or vector to a\n+ stream in matrix market format.\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bs_\bt_\bo_\br_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (const M\n+ &matrix, std::string filename, int\n+ prec=_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn)\n+\u00a0 Stores a parallel matrix/vector in\n+ matrix market format in a file.\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bs_\bt_\bo_\br_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (const M\n+ &matrix, std::string filename, const\n+ _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< G, L >\n+ &comm, bool storeIndices=true, int\n+ prec=_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn)\n+\u00a0 Stores a parallel matrix/vector in\n+ matrix market format in a file.\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (M &matrix,\n+ const std::string &filename,\n+ _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< G, L >\n+ &comm, bool readIndices=true)\n+\u00a0 Load a parallel matrix/vector stored in\n+ matrix market format.\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (M &matrix,\n+ const std::string &filename)\n+\u00a0 Load a matrix/vector stored in matrix\n+ market format.\n+\u00a0\n+V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs\n+static const int\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn = -1\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n-generic way.\n+Provides classes for reading and writing MatrixMarket Files with an extension\n+for parallel matrices.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00017_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00017_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: gsetc.hh Source File\n+dune-istl: matrixmarket.hh Source File\n \n \n \n \n \n \n \n@@ -74,835 +74,1499 @@\n \n
    \n \n
    \n
    \n
    \n-
    gsetc.hh
    \n+
    matrixmarket.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_GSETC_HH
    \n-
    6#define DUNE_ISTL_GSETC_HH
    \n+
    5#ifndef DUNE_ISTL_MATRIXMARKET_HH
    \n+
    6#define DUNE_ISTL_MATRIXMARKET_HH
    \n
    7
    \n-
    8#include <cmath>
    \n+
    8#include <algorithm>
    \n
    9#include <complex>
    \n-
    10#include <iostream>
    \n-
    11#include <iomanip>
    \n-
    12#include <string>
    \n-
    13
    \n-
    14#include <dune/common/hybridutilities.hh>
    \n-
    15
    \n-\n-\n-
    18
    \n-
    19#include "istlexception.hh"
    \n-
    20
    \n-
    21
    \n-
    27namespace Dune {
    \n-
    28
    \n-
    39 //============================================================
    \n-
    40 // parameter types
    \n-
    41 //============================================================
    \n-
    42
    \n-
    44 template<int l>
    \n-
    \n-
    45 struct BL {
    \n-
    46 enum {recursion_level = l};
    \n-
    47 };
    \n-
    \n-
    48
    \n-
    \n-\n-\n-
    51 nodiag=0
    \n-
    52 };
    \n-
    \n-
    53
    \n-
    \n-\n-\n-
    56 norelax=0
    \n-
    57 };
    \n-
    \n-
    58
    \n-
    59 //============================================================
    \n-
    60 // generic triangular solves
    \n-
    61 // consider block decomposition A = L + D + U
    \n-
    62 // we can invert L, L+D, U, U+D
    \n-
    63 // we can apply relaxation or not
    \n-
    64 // we can recurse over a fixed number of levels
    \n-
    65 //============================================================
    \n-
    66
    \n-
    67 // template meta program for triangular solves
    \n-
    68 template<int I, WithDiagType diag, WithRelaxType relax>
    \n-
    \n-\n-
    70 template<class M, class X, class Y, class K>
    \n-
    \n-
    71 static void bltsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    72 {
    \n-
    73 // iterator types
    \n-
    74 typedef typename M::ConstRowIterator rowiterator;
    \n-
    75 typedef typename M::ConstColIterator coliterator;
    \n-
    76 typedef typename Y::block_type bblock;
    \n-
    77
    \n-
    78 // local solve at each block and immediate update
    \n-
    79 rowiterator endi=A.end();
    \n-
    80 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n-
    81 {
    \n-
    82 bblock rhs(d[i.index()]);
    \n-
    83 coliterator j;
    \n-
    84 for (j=(*i).begin(); j.index()<i.index(); ++j)
    \n-
    85 (*j).mmv(v[j.index()],rhs);
    \n-
    86 algmeta_btsolve<I-1,diag,relax>::bltsolve(*j,v[i.index()],rhs,w);
    \n-
    87 }
    \n-
    88 }
    \n-
    \n-
    89 template<class M, class X, class Y, class K>
    \n-
    \n-
    90 static void butsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    91 {
    \n-
    92 // iterator types
    \n-
    93 typedef typename M::ConstRowIterator rowiterator;
    \n-
    94 typedef typename M::ConstColIterator coliterator;
    \n-
    95 typedef typename Y::block_type bblock;
    \n-
    96
    \n-
    97 // local solve at each block and immediate update
    \n-
    98 rowiterator rendi=A.beforeBegin();
    \n-
    99 for (rowiterator i=A.beforeEnd(); i!=rendi; --i)
    \n-
    100 {
    \n-
    101 bblock rhs(d[i.index()]);
    \n-
    102 coliterator j;
    \n-
    103 for (j=(*i).beforeEnd(); j.index()>i.index(); --j)
    \n-
    104 (*j).mmv(v[j.index()],rhs);
    \n-
    105 algmeta_btsolve<I-1,diag,relax>::butsolve(*j,v[i.index()],rhs,w);
    \n-
    106 }
    \n-
    107 }
    \n-
    \n-
    108 };
    \n-
    \n-
    109
    \n-
    110 // recursion end ...
    \n-
    111 template<>
    \n-
    \n-\n-
    113 template<class M, class X, class Y, class K>
    \n-
    \n-
    114 static void bltsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    115 {
    \n-
    116 A.solve(v,d);
    \n-
    117 v *= w;
    \n-
    118 }
    \n-
    \n-
    119 template<class M, class X, class Y, class K>
    \n-
    \n-
    120 static void butsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    121 {
    \n-
    122 A.solve(v,d);
    \n-
    123 v *= w;
    \n-
    124 }
    \n-
    \n-
    125 };
    \n-
    \n-
    126 template<>
    \n-
    \n-\n-
    128 template<class M, class X, class Y, class K>
    \n-
    \n-
    129 static void bltsolve (const M& A, X& v, const Y& d, const K& /*w*/)
    \n-
    130 {
    \n-
    131 A.solve(v,d);
    \n-
    132 }
    \n-
    \n-
    133 template<class M, class X, class Y, class K>
    \n-
    \n-
    134 static void butsolve (const M& A, X& v, const Y& d, const K& /*w*/)
    \n+
    10#include <cstddef>
    \n+
    11#include <fstream>
    \n+
    12#include <ios>
    \n+
    13#include <iostream>
    \n+
    14#include <istream>
    \n+
    15#include <limits>
    \n+
    16#include <ostream>
    \n+
    17#include <set>
    \n+
    18#include <sstream>
    \n+
    19#include <string>
    \n+
    20#include <tuple>
    \n+
    21#include <type_traits>
    \n+
    22#include <vector>
    \n+
    23
    \n+
    24#include <dune/common/exceptions.hh>
    \n+
    25#include <dune/common/fmatrix.hh>
    \n+
    26#include <dune/common/fvector.hh>
    \n+
    27#include <dune/common/hybridutilities.hh>
    \n+
    28#include <dune/common/stdstreams.hh>
    \n+
    29#include <dune/common/simd/simd.hh>
    \n+
    30
    \n+\n+
    32#include <dune/istl/bvector.hh>
    \n+
    33#include <dune/istl/matrixutils.hh> // countNonZeros()
    \n+\n+
    35
    \n+
    36namespace Dune
    \n+
    37{
    \n+
    38
    \n+
    \n+
    64 namespace MatrixMarketImpl
    \n+
    65 {
    \n+
    75 template<class T>
    \n+
    \n+\n+
    77 enum {
    \n+
    81 is_numeric=false
    \n+
    82 };
    \n+
    83 };
    \n+
    \n+
    84
    \n+
    85 template<>
    \n+
    \n+
    86 struct mm_numeric_type<int>
    \n+
    87 {
    \n+
    88 enum {
    \n+
    92 is_numeric=true
    \n+
    93 };
    \n+
    94
    \n+
    \n+
    95 static std::string str()
    \n+
    96 {
    \n+
    97 return "integer";
    \n+
    98 }
    \n+
    \n+
    99 };
    \n+
    \n+
    100
    \n+
    101 template<>
    \n+
    \n+
    102 struct mm_numeric_type<double>
    \n+
    103 {
    \n+
    104 enum {
    \n+
    108 is_numeric=true
    \n+
    109 };
    \n+
    110
    \n+
    \n+
    111 static std::string str()
    \n+
    112 {
    \n+
    113 return "real";
    \n+
    114 }
    \n+
    \n+
    115 };
    \n+
    \n+
    116
    \n+
    117 template<>
    \n+
    \n+
    118 struct mm_numeric_type<float>
    \n+
    119 {
    \n+
    120 enum {
    \n+
    124 is_numeric=true
    \n+
    125 };
    \n+
    126
    \n+
    \n+
    127 static std::string str()
    \n+
    128 {
    \n+
    129 return "real";
    \n+
    130 }
    \n+
    \n+
    131 };
    \n+
    \n+
    132
    \n+
    133 template<>
    \n+
    \n+
    134 struct mm_numeric_type<std::complex<double> >
    \n
    135 {
    \n-
    136 A.solve(v,d);
    \n-
    137 }
    \n-
    \n-
    138 };
    \n-
    \n-
    139 template<>
    \n-
    \n-\n-
    141 template<class M, class X, class Y, class K>
    \n-
    \n-
    142 static void bltsolve (const M& /*A*/, X& v, const Y& d, const K& w)
    \n-
    143 {
    \n-
    144 v = d;
    \n-
    145 v *= w;
    \n-
    146 }
    \n-
    \n-
    147 template<class M, class X, class Y, class K>
    \n-
    \n-
    148 static void butsolve (const M& /*A*/, X& v, const Y& d, const K& w)
    \n-
    149 {
    \n-
    150 v = d;
    \n-
    151 v *= w;
    \n-
    152 }
    \n-
    \n-
    153 };
    \n-
    \n-
    154 template<>
    \n-
    \n-\n-
    156 template<class M, class X, class Y, class K>
    \n-
    \n-
    157 static void bltsolve (const M& /*A*/, X& v, const Y& d, const K& /*w*/)
    \n-
    158 {
    \n-
    159 v = d;
    \n-
    160 }
    \n-
    \n-
    161 template<class M, class X, class Y, class K>
    \n-
    \n-
    162 static void butsolve (const M& /*A*/, X& v, const Y& d, const K& /*w*/)
    \n-
    163 {
    \n-
    164 v = d;
    \n-
    165 }
    \n-
    \n-
    166 };
    \n-
    \n-
    167
    \n-
    168
    \n-
    169 // user calls
    \n-
    170
    \n-
    171 // default block recursion level = 1
    \n-
    172
    \n-
    174 template<class M, class X, class Y>
    \n-
    \n-
    175 void bltsolve (const M& A, X& v, const Y& d)
    \n-
    176 {
    \n-
    177 typename X::field_type w=1;
    \n-\n-
    179 }
    \n-
    \n-
    181 template<class M, class X, class Y, class K>
    \n-
    \n-
    182 void bltsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    183 {
    \n-\n-
    185 }
    \n-
    \n-
    187 template<class M, class X, class Y>
    \n-
    \n-
    188 void ubltsolve (const M& A, X& v, const Y& d)
    \n-
    189 {
    \n-
    190 typename X::field_type w=1;
    \n-\n-
    192 }
    \n-
    \n-
    194 template<class M, class X, class Y, class K>
    \n-
    \n-
    195 void ubltsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    196 {
    \n-\n-
    198 }
    \n-
    \n-
    199
    \n-
    201 template<class M, class X, class Y>
    \n-
    \n-
    202 void butsolve (const M& A, X& v, const Y& d)
    \n-
    203 {
    \n-
    204 typename X::field_type w=1;
    \n-\n-
    206 }
    \n-
    \n-
    208 template<class M, class X, class Y, class K>
    \n+
    136 enum {
    \n+
    140 is_numeric=true
    \n+
    141 };
    \n+
    142
    \n+
    \n+
    143 static std::string str()
    \n+
    144 {
    \n+
    145 return "complex";
    \n+
    146 }
    \n+
    \n+
    147 };
    \n+
    \n+
    148
    \n+
    149 template<>
    \n+
    \n+
    150 struct mm_numeric_type<std::complex<float> >
    \n+
    151 {
    \n+
    152 enum {
    \n+
    156 is_numeric=true
    \n+
    157 };
    \n+
    158
    \n+
    \n+
    159 static std::string str()
    \n+
    160 {
    \n+
    161 return "complex";
    \n+
    162 }
    \n+
    \n+
    163 };
    \n+
    \n+
    164
    \n+
    173 template<class M>
    \n+\n+
    175
    \n+
    176 template<typename T, typename A>
    \n+
    \n+\n+
    178 {
    \n+
    \n+
    179 static void print(std::ostream& os)
    \n+
    180 {
    \n+
    181 os<<"%%MatrixMarket matrix coordinate ";
    \n+
    182 os<<mm_numeric_type<Simd::Scalar<typename Imp::BlockTraits<T>::field_type>>::str()<<" general"<<std::endl;
    \n+
    183 }
    \n+
    \n+
    184 };
    \n+
    \n+
    185
    \n+
    186 template<typename B, typename A>
    \n+
    \n+\n+
    188 {
    \n+
    \n+
    189 static void print(std::ostream& os)
    \n+
    190 {
    \n+
    191 os<<"%%MatrixMarket matrix array ";
    \n+
    192 os<<mm_numeric_type<Simd::Scalar<typename Imp::BlockTraits<B>::field_type>>::str()<<" general"<<std::endl;
    \n+
    193 }
    \n+
    \n+
    194 };
    \n+
    \n+
    195
    \n+
    196 template<typename T, int j>
    \n+
    \n+
    197 struct mm_header_printer<FieldVector<T,j> >
    \n+
    198 {
    \n+
    \n+
    199 static void print(std::ostream& os)
    \n+
    200 {
    \n+
    201 os<<"%%MatrixMarket matrix array ";
    \n+
    202 os<<mm_numeric_type<T>::str()<<" general"<<std::endl;
    \n+
    203 }
    \n+
    \n+
    204 };
    \n+
    \n+
    205
    \n+
    206 template<typename T, int i, int j>
    \n+
    \n+\n+
    208 {
    \n
    \n-
    209 void butsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    210 {
    \n-\n-
    212 }
    \n-
    \n-
    214 template<class M, class X, class Y>
    \n-
    \n-
    215 void ubutsolve (const M& A, X& v, const Y& d)
    \n-
    216 {
    \n-
    217 typename X::field_type w=1;
    \n-\n-
    219 }
    \n-
    \n-
    221 template<class M, class X, class Y, class K>
    \n-
    \n-
    222 void ubutsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    223 {
    \n-\n-
    225 }
    \n-
    \n+
    209 static void print(std::ostream& os)
    \n+
    210 {
    \n+
    211 os<<"%%MatrixMarket matrix array ";
    \n+
    212 os<<mm_numeric_type<T>::str()<<" general"<<std::endl;
    \n+
    213 }
    \n+
    \n+
    214 };
    \n+
    \n+
    215
    \n+
    224 template<class M>
    \n+\n
    226
    \n-
    227 // general block recursion level >= 0
    \n-
    228
    \n-
    230 template<class M, class X, class Y, int l>
    \n-
    \n-
    231 void bltsolve (const M& A, X& v, const Y& d, BL<l> /*bl*/)
    \n-
    232 {
    \n-
    233 typename X::field_type w=1;
    \n-\n-
    235 }
    \n-
    \n-
    237 template<class M, class X, class Y, class K, int l>
    \n-
    \n-
    238 void bltsolve (const M& A, X& v, const Y& d, const K& w, BL<l> /*bl*/)
    \n-
    239 {
    \n-\n-
    241 }
    \n-
    \n-
    243 template<class M, class X, class Y, int l>
    \n-
    \n-
    244 void ubltsolve (const M& A, X& v, const Y& d, BL<l> /*bl*/)
    \n-
    245 {
    \n-
    246 typename X::field_type w=1;
    \n-\n-
    248 }
    \n-
    \n-
    250 template<class M, class X, class Y, class K, int l>
    \n-
    \n-
    251 void ubltsolve (const M& A, X& v, const Y& d, const K& w, BL<l> /*bl*/)
    \n-
    252 {
    \n-\n-
    254 }
    \n-
    \n-
    255
    \n-
    257 template<class M, class X, class Y, int l>
    \n+
    227 template<typename T, typename A>
    \n+
    \n+\n+
    229 {
    \n+\n+
    231 static_assert(IsNumber<T>::value, "Only scalar entries are expected here!");
    \n+
    232
    \n+
    \n+
    233 static void print(std::ostream& os, const M&)
    \n+
    234 {
    \n+
    235 os<<"% ISTL_STRUCT blocked ";
    \n+
    236 os<<"1 1"<<std::endl;
    \n+
    237 }
    \n+
    \n+
    238 };
    \n+
    \n+
    239
    \n+
    240 template<typename T, typename A, int i>
    \n+
    \n+
    241 struct mm_block_structure_header<BlockVector<FieldVector<T,i>,A> >
    \n+
    242 {
    \n+\n+
    244
    \n+
    \n+
    245 static void print(std::ostream& os, const M&)
    \n+
    246 {
    \n+
    247 os<<"% ISTL_STRUCT blocked ";
    \n+
    248 os<<i<<" "<<1<<std::endl;
    \n+
    249 }
    \n+
    \n+
    250 };
    \n+
    \n+
    251
    \n+
    252 template<typename T, typename A>
    \n+
    \n+\n+
    254 {
    \n+\n+
    256 static_assert(IsNumber<T>::value, "Only scalar entries are expected here!");
    \n+
    257
    \n
    \n-
    258 void butsolve (const M& A, X& v, const Y& d, BL<l> bl)
    \n-
    259 {
    \n-
    260 typename X::field_type w=1;
    \n-\n-
    262 }
    \n-
    \n-
    264 template<class M, class X, class Y, class K, int l>
    \n-
    \n-
    265 void butsolve (const M& A, X& v, const Y& d, const K& w, BL<l> bl)
    \n-
    266 {
    \n-\n-
    268 }
    \n-
    \n-
    270 template<class M, class X, class Y, int l>
    \n-
    \n-
    271 void ubutsolve (const M& A, X& v, const Y& d, BL<l> bl)
    \n-
    272 {
    \n-
    273 typename X::field_type w=1;
    \n-\n-
    275 }
    \n-
    \n-
    277 template<class M, class X, class Y, class K, int l>
    \n-
    \n-
    278 void ubutsolve (const M& A, X& v, const Y& d, const K& w, BL<l> bl)
    \n-
    279 {
    \n-\n-
    281 }
    \n-
    \n+
    258 static void print(std::ostream& os, const M&)
    \n+
    259 {
    \n+
    260 os<<"% ISTL_STRUCT blocked ";
    \n+
    261 os<<"1 1"<<std::endl;
    \n+
    262 }
    \n+
    \n+
    263 };
    \n+
    \n+
    264
    \n+
    265 template<typename T, typename A, int i, int j>
    \n+
    \n+\n+
    267 {
    \n+\n+
    269
    \n+
    \n+
    270 static void print(std::ostream& os, const M&)
    \n+
    271 {
    \n+
    272 os<<"% ISTL_STRUCT blocked ";
    \n+
    273 os<<i<<" "<<j<<std::endl;
    \n+
    274 }
    \n+
    \n+
    275 };
    \n+
    \n+
    276
    \n+
    277
    \n+
    278 template<typename T, int i, int j>
    \n+
    \n+\n+
    280 {
    \n+\n
    282
    \n-
    283
    \n-
    284
    \n-
    285 //============================================================
    \n-
    286 // generic block diagonal solves
    \n-
    287 // consider block decomposition A = L + D + U
    \n-
    288 // we can apply relaxation or not
    \n-
    289 // we can recurse over a fixed number of levels
    \n-
    290 //============================================================
    \n+
    \n+
    283 static void print(std::ostream& os, const M& m)
    \n+
    284 {}
    \n+
    \n+
    285 };
    \n+
    \n+
    286
    \n+
    287 template<typename T, int i>
    \n+
    \n+
    288 struct mm_block_structure_header<FieldVector<T,i> >
    \n+
    289 {
    \n+
    290 typedef FieldVector<T,i> M;
    \n
    291
    \n-
    292 // template meta program for diagonal solves
    \n-
    293 template<int I, WithRelaxType relax>
    \n-
    \n-\n-
    295 template<class M, class X, class Y, class K>
    \n-
    \n-
    296 static void bdsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    297 {
    \n-
    298 // iterator types
    \n-
    299 typedef typename M::ConstRowIterator rowiterator;
    \n-
    300 typedef typename M::ConstColIterator coliterator;
    \n-
    301
    \n-
    302 // local solve at each block and immediate update
    \n-
    303 rowiterator rendi=A.beforeBegin();
    \n-
    304 for (rowiterator i=A.beforeEnd(); i!=rendi; --i)
    \n-
    305 {
    \n-
    306 coliterator ii=(*i).find(i.index());
    \n-
    307 algmeta_bdsolve<I-1,relax>::bdsolve(*ii,v[i.index()],d[i.index()],w);
    \n-
    308 }
    \n-
    309 }
    \n-
    \n-
    310 };
    \n-
    \n-
    311
    \n-
    312 // recursion end ...
    \n-
    313 template<>
    \n-
    \n-\n-
    315 template<class M, class X, class Y, class K>
    \n-
    \n-
    316 static void bdsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    317 {
    \n-
    318 A.solve(v,d);
    \n-
    319 v *= w;
    \n-
    320 }
    \n-
    \n-
    321 };
    \n-
    \n-
    322 template<>
    \n-
    \n-\n-
    324 template<class M, class X, class Y, class K>
    \n-
    \n-
    325 static void bdsolve (const M& A, X& v, const Y& d, const K& /*w*/)
    \n-
    326 {
    \n-
    327 A.solve(v,d);
    \n-
    328 }
    \n-
    \n-
    329 };
    \n-
    \n+
    \n+
    292 static void print(std::ostream& os, const M& m)
    \n+
    293 {}
    \n+
    \n+
    294 };
    \n+
    \n+
    295
    \n+\n+
    297 enum { MM_MAX_LINE_LENGTH=1025 };
    \n+
    298
    \n+\n+
    300
    \n+\n+
    302
    \n+\n+
    304
    \n+
    \n+
    305 struct MMHeader
    \n+
    306 {
    \n+\n+\n+\n+\n+
    313 };
    \n+
    \n+
    314
    \n+
    \n+
    315 inline bool lineFeed(std::istream& file)
    \n+
    316 {
    \n+
    317 char c;
    \n+
    318 if(!file.eof())
    \n+
    319 c=file.peek();
    \n+
    320 else
    \n+
    321 return false;
    \n+
    322 // ignore whitespace
    \n+
    323 while(c==' ')
    \n+
    324 {
    \n+
    325 file.get();
    \n+
    326 if(file.eof())
    \n+
    327 return false;
    \n+
    328 c=file.peek();
    \n+
    329 }
    \n
    330
    \n-
    331 // user calls
    \n-
    332
    \n-
    333 // default block recursion level = 1
    \n-
    334
    \n-
    336 template<class M, class X, class Y>
    \n-
    \n-
    337 void bdsolve (const M& A, X& v, const Y& d)
    \n-
    338 {
    \n-
    339 typename X::field_type w=1;
    \n-\n-
    341 }
    \n-
    \n-
    343 template<class M, class X, class Y, class K>
    \n-
    \n-
    344 void bdsolve (const M& A, X& v, const Y& d, const K& w)
    \n-
    345 {
    \n-\n-
    347 }
    \n-
    \n-
    348
    \n-
    349 // general block recursion level >= 0
    \n-
    350
    \n-
    352 template<class M, class X, class Y, int l>
    \n+
    331 if(c=='\\n') {
    \n+
    332 /* eat the line feed */
    \n+
    333 file.get();
    \n+
    334 return true;
    \n+
    335 }
    \n+
    336 return false;
    \n+
    337 }
    \n+
    \n+
    338
    \n+
    \n+
    339 inline void skipComments(std::istream& file)
    \n+
    340 {
    \n+
    341 lineFeed(file);
    \n+
    342 char c=file.peek();
    \n+
    343 // ignore comment lines
    \n+
    344 while(c=='%')
    \n+
    345 {
    \n+
    346 /* discard the rest of the line */
    \n+
    347 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    348 c=file.peek();
    \n+
    349 }
    \n+
    350 }
    \n+
    \n+
    351
    \n+
    352
    \n
    \n-
    353 void bdsolve (const M& A, X& v, const Y& d, BL<l> /*bl*/)
    \n-
    354 {
    \n-
    355 typename X::field_type w=1;
    \n-\n-
    357 }
    \n-
    \n-
    359 template<class M, class X, class Y, class K, int l>
    \n-
    \n-
    360 void bdsolve (const M& A, X& v, const Y& d, const K& w, BL<l> /*bl*/)
    \n-
    361 {
    \n-\n-
    363 }
    \n-
    \n-
    364
    \n-
    365
    \n-
    366 //============================================================
    \n-
    367 // generic steps of iteration methods
    \n-
    368 // Jacobi, Gauss-Seidel, SOR, SSOR
    \n-
    369 // work directly on Ax=b, ie solve M(x^{i+1}-x^i) = w (b-Ax^i)
    \n-
    370 // we can recurse over a fixed number of levels
    \n-
    371 //============================================================
    \n-
    372
    \n-
    373 // template meta program for iterative solver steps
    \n-
    374 template<int I, typename M>
    \n-
    \n-\n+
    353 inline bool readMatrixMarketBanner(std::istream& file, MMHeader& mmHeader)
    \n+
    354 {
    \n+
    355 std::string buffer;
    \n+
    356 char c;
    \n+
    357 file >> buffer;
    \n+
    358 c=buffer[0];
    \n+
    359 mmHeader=MMHeader();
    \n+
    360 if(c!='%')
    \n+
    361 return false;
    \n+
    362 dverb<<buffer<<std::endl;
    \n+
    363 /* read the banner */
    \n+
    364 if(buffer!="%%MatrixMarket") {
    \n+
    365 /* discard the rest of the line */
    \n+
    366 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    367 return false;
    \n+
    368 }
    \n+
    369
    \n+
    370 if(lineFeed(file))
    \n+
    371 /* premature end of line */
    \n+
    372 return false;
    \n+
    373
    \n+
    374 /* read the matrix_type */
    \n+
    375 file >> buffer;
    \n
    376
    \n-
    377 template<class X, class Y, class K>
    \n-
    \n-
    378 static void dbgs (const M& A, X& x, const Y& b, const K& w)
    \n-
    379 {
    \n-
    380 typedef typename M::ConstRowIterator rowiterator;
    \n-
    381 typedef typename M::ConstColIterator coliterator;
    \n-
    382 typedef typename Y::block_type bblock;
    \n-
    383 bblock rhs;
    \n-
    384
    \n-
    385 X xold(x); // remember old x
    \n-
    386
    \n-
    387 rowiterator endi=A.end();
    \n-
    388 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n-
    389 {
    \n-
    390 rhs = b[i.index()]; // rhs = b_i
    \n-
    391 coliterator endj=(*i).end();
    \n-
    392 coliterator j=(*i).begin();
    \n-
    393 if constexpr (IsNumber<typename M::block_type>())
    \n-
    394 {
    \n-
    395 for (; j.index()<i.index(); ++j)
    \n-
    396 rhs -= (*j) * x[j.index()];
    \n-
    397 coliterator diag=j++; // *diag = a_ii and increment coliterator j from a_ii to a_i+1,i to skip diagonal
    \n-
    398 for (; j != endj; ++j)
    \n-
    399 rhs -= (*j) * x[j.index()];
    \n-
    400 x[i.index()] = rhs / (*diag);
    \n-
    401 }
    \n-
    402 else
    \n-
    403 {
    \n-
    404 for (; j.index()<i.index(); ++j) // iterate over a_ij with j < i
    \n-
    405 (*j).mmv(x[j.index()],rhs); // rhs -= sum_{j<i} a_ij * xnew_j
    \n-
    406 coliterator diag=j++; // *diag = a_ii and increment coliterator j from a_ii to a_i+1,i to skip diagonal
    \n-
    407 for (; j != endj; ++j) // iterate over a_ij with j > i
    \n-
    408 (*j).mmv(x[j.index()],rhs); // rhs -= sum_{j>i} a_ij * xold_j
    \n-
    409 algmeta_itsteps<I-1,typename M::block_type>::dbgs(*diag,x[i.index()],rhs,w); // if I==1: xnew_i = rhs/a_ii
    \n-
    410 }
    \n-
    411 }
    \n-
    412 // next two lines: xnew_i = w / a_ii * (b_i - sum_{j<i} a_ij * xnew_j - sum_{j>=i} a_ij * xold_j) + (1-w)*xold;
    \n-
    413 x *= w;
    \n-
    414 x.axpy(K(1)-w,xold);
    \n-
    415 }
    \n-
    \n-
    416
    \n-
    417 template<class X, class Y, class K>
    \n-
    \n-
    418 static void bsorf (const M& A, X& x, const Y& b, const K& w)
    \n-
    419 {
    \n-
    420 typedef typename M::ConstRowIterator rowiterator;
    \n-
    421 typedef typename M::ConstColIterator coliterator;
    \n-
    422 typedef typename Y::block_type bblock;
    \n-
    423 typedef typename X::block_type xblock;
    \n-
    424 bblock rhs;
    \n-
    425 xblock v;
    \n-
    426
    \n-
    427 // Initialize nested data structure if there are entries
    \n-
    428 if(A.begin()!=A.end())
    \n-
    429 v=x[0];
    \n-
    430
    \n-
    431 rowiterator endi=A.end();
    \n-
    432 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n-
    433 {
    \n-
    434 rhs = b[i.index()]; // rhs = b_i
    \n-
    435 coliterator endj=(*i).end(); // iterate over a_ij with j < i
    \n-
    436 coliterator j=(*i).begin();
    \n-
    437 if constexpr (IsNumber<typename M::block_type>())
    \n-
    438 {
    \n-
    439 for (; j.index()<i.index(); ++j)
    \n-
    440 rhs -= (*j) * x[j.index()]; // rhs -= sum_{j<i} a_ij * xnew_j
    \n-
    441 coliterator diag=j; // *diag = a_ii
    \n-
    442 for (; j!=endj; ++j)
    \n-
    443 rhs -= (*j) * x[j.index()]; // rhs -= sum_{j<i} a_ij * xnew_j
    \n-
    444 v = rhs / (*diag);
    \n-
    445 x[i.index()] += w*v; // x_i = w / a_ii * (b_i - sum_{j<i} a_ij * xnew_j - sum_{j>=i} a_ij * xold_j)
    \n-
    446 }
    \n-
    447 else
    \n+
    377 if(buffer != "matrix")
    \n+
    378 {
    \n+
    379 /* discard the rest of the line */
    \n+
    380 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    381 return false;
    \n+
    382 }
    \n+
    383
    \n+
    384 if(lineFeed(file))
    \n+
    385 /* premature end of line */
    \n+
    386 return false;
    \n+
    387
    \n+
    388 /* The type of the matrix */
    \n+
    389 file >> buffer;
    \n+
    390
    \n+
    391 if(buffer.empty())
    \n+
    392 return false;
    \n+
    393
    \n+
    394 std::transform(buffer.begin(), buffer.end(), buffer.begin(),
    \n+
    395 ::tolower);
    \n+
    396
    \n+
    397 switch(buffer[0])
    \n+
    398 {
    \n+
    399 case 'a' :
    \n+
    400 /* sanity check */
    \n+
    401 if(buffer != "array")
    \n+
    402 {
    \n+
    403 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    404 return false;
    \n+
    405 }
    \n+
    406 mmHeader.type=array_type;
    \n+
    407 break;
    \n+
    408 case 'c' :
    \n+
    409 /* sanity check */
    \n+
    410 if(buffer != "coordinate")
    \n+
    411 {
    \n+
    412 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    413 return false;
    \n+
    414 }
    \n+
    415 mmHeader.type=coordinate_type;
    \n+
    416 break;
    \n+
    417 default :
    \n+
    418 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    419 return false;
    \n+
    420 }
    \n+
    421
    \n+
    422 if(lineFeed(file))
    \n+
    423 /* premature end of line */
    \n+
    424 return false;
    \n+
    425
    \n+
    426 /* The numeric type used. */
    \n+
    427 file >> buffer;
    \n+
    428
    \n+
    429 if(buffer.empty())
    \n+
    430 return false;
    \n+
    431
    \n+
    432 std::transform(buffer.begin(), buffer.end(), buffer.begin(),
    \n+
    433 ::tolower);
    \n+
    434 switch(buffer[0])
    \n+
    435 {
    \n+
    436 case 'i' :
    \n+
    437 /* sanity check */
    \n+
    438 if(buffer != "integer")
    \n+
    439 {
    \n+
    440 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    441 return false;
    \n+
    442 }
    \n+
    443 mmHeader.ctype=integer_type;
    \n+
    444 break;
    \n+
    445 case 'r' :
    \n+
    446 /* sanity check */
    \n+
    447 if(buffer != "real")
    \n
    448 {
    \n-
    449 for (; j.index()<i.index(); ++j)
    \n-
    450 (*j).mmv(x[j.index()],rhs); // rhs -= sum_{j<i} a_ij * xnew_j
    \n-
    451 coliterator diag=j; // *diag = a_ii
    \n-
    452 for (; j!=endj; ++j)
    \n-
    453 (*j).mmv(x[j.index()],rhs); // rhs -= sum_{j<i} a_ij * xnew_j
    \n-
    454 algmeta_itsteps<I-1,typename M::block_type>::bsorf(*diag,v,rhs,w); // if blocksize I==1: v = rhs/a_ii
    \n-
    455 x[i.index()].axpy(w,v); // x_i = w / a_ii * (b_i - sum_{j<i} a_ij * xnew_j - sum_{j>=i} a_ij * xold_j)
    \n-
    456 }
    \n-
    457 }
    \n-
    458 }
    \n-
    \n-
    459
    \n-
    460 template<class X, class Y, class K>
    \n-
    \n-
    461 static void bsorb (const M& A, X& x, const Y& b, const K& w)
    \n-
    462 {
    \n-
    463 typedef typename M::ConstRowIterator rowiterator;
    \n-
    464 typedef typename M::ConstColIterator coliterator;
    \n-
    465 typedef typename Y::block_type bblock;
    \n-
    466 typedef typename X::block_type xblock;
    \n-
    467 bblock rhs;
    \n-
    468 xblock v;
    \n-
    469
    \n-
    470 // Initialize nested data structure if there are entries
    \n-
    471 if(A.begin()!=A.end())
    \n-
    472 v=x[0];
    \n-
    473
    \n-
    474 rowiterator endi=A.beforeBegin();
    \n-
    475 for (rowiterator i=A.beforeEnd(); i!=endi; --i)
    \n-
    476 {
    \n-
    477 rhs = b[i.index()];
    \n-
    478 coliterator endj=(*i).end();
    \n-
    479 coliterator j=(*i).begin();
    \n-
    480 if constexpr (IsNumber<typename M::block_type>())
    \n-
    481 {
    \n-
    482 for (; j.index()<i.index(); ++j)
    \n-
    483 rhs -= (*j) * x[j.index()];
    \n-
    484 coliterator diag=j;
    \n-
    485 for (; j!=endj; ++j)
    \n-
    486 rhs -= (*j) * x[j.index()];
    \n-
    487 v = rhs / (*diag);
    \n-
    488 x[i.index()] += w*v;
    \n-
    489 }
    \n-
    490 else
    \n-
    491 {
    \n-
    492 for (; j.index()<i.index(); ++j)
    \n-
    493 j->mmv(x[j.index()],rhs);
    \n-
    494 coliterator diag=j;
    \n-
    495 for (; j!=endj; ++j)
    \n-
    496 j->mmv(x[j.index()],rhs);
    \n-\n-
    498 x[i.index()].axpy(w,v);
    \n-
    499 }
    \n-
    500 }
    \n-
    501 }
    \n-
    \n-
    502
    \n-
    503 template<class X, class Y, class K>
    \n-
    \n-
    504 static void dbjac (const M& A, X& x, const Y& b, const K& w)
    \n-
    505 {
    \n-
    506 typedef typename M::ConstRowIterator rowiterator;
    \n-
    507 typedef typename M::ConstColIterator coliterator;
    \n-
    508 typedef typename Y::block_type bblock;
    \n-
    509 bblock rhs;
    \n-
    510
    \n-
    511 X v(x); // allocate with same size
    \n-
    512
    \n-
    513 rowiterator endi=A.end();
    \n-
    514 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n-
    515 {
    \n-
    516 rhs = b[i.index()];
    \n-
    517 coliterator endj=(*i).end();
    \n-
    518 coliterator j=(*i).begin();
    \n-
    519 if constexpr (IsNumber<typename M::block_type>())
    \n-
    520 {
    \n-
    521 for (; j.index()<i.index(); ++j)
    \n-
    522 rhs -= (*j) * x[j.index()];
    \n-
    523 coliterator diag=j;
    \n-
    524 for (; j!=endj; ++j)
    \n-
    525 rhs -= (*j) * x[j.index()];
    \n-
    526 v[i.index()] = rhs / (*diag);
    \n-
    527 }
    \n-
    528 else
    \n-
    529 {
    \n-
    530 for (; j.index()<i.index(); ++j)
    \n-
    531 j->mmv(x[j.index()],rhs);
    \n-
    532 coliterator diag=j;
    \n-
    533 for (; j!=endj; ++j)
    \n-
    534 j->mmv(x[j.index()],rhs);
    \n-\n-
    536 }
    \n-
    537 }
    \n-
    538 x.axpy(w,v);
    \n-
    539 }
    \n-
    \n-
    540 };
    \n-
    \n-
    541 // end of recursion
    \n-
    542 template<typename M>
    \n-
    \n-
    543 struct algmeta_itsteps<0,M> {
    \n-
    544 template<class X, class Y, class K>
    \n-
    \n-
    545 static void dbgs (const M& A, X& x, const Y& b, const K& /*w*/)
    \n-
    546 {
    \n-
    547 A.solve(x,b);
    \n-
    548 }
    \n-
    \n-
    549 template<class X, class Y, class K>
    \n-
    \n-
    550 static void bsorf (const M& A, X& x, const Y& b, const K& /*w*/)
    \n-
    551 {
    \n-
    552 A.solve(x,b);
    \n-
    553 }
    \n-
    \n-
    554 template<class X, class Y, class K>
    \n-
    \n-
    555 static void bsorb (const M& A, X& x, const Y& b, const K& /*w*/)
    \n-
    556 {
    \n-
    557 A.solve(x,b);
    \n-
    558 }
    \n-
    \n-
    559 template<class X, class Y, class K>
    \n-
    \n-
    560 static void dbjac (const M& A, X& x, const Y& b, const K& /*w*/)
    \n-
    561 {
    \n-
    562 A.solve(x,b);
    \n-
    563 }
    \n-
    \n-
    564 };
    \n-
    \n-
    565
    \n-
    566 template<int I, typename T1, typename... MultiTypeMatrixArgs>
    \n-
    \n-
    567 struct algmeta_itsteps<I,MultiTypeBlockMatrix<T1, MultiTypeMatrixArgs...>> {
    \n-
    568 template<
    \n-
    569 typename... MultiTypeVectorArgs,
    \n-
    570 class K>
    \n-\n-
    579
    \n-
    580 template<
    \n-
    581 typename... MultiTypeVectorArgs,
    \n-
    582 class K>
    \n-\n-
    591
    \n-
    592 template<
    \n-
    593 typename... MultiTypeVectorArgs,
    \n-
    594 class K>
    \n-\n-
    603
    \n-
    604 template<
    \n-
    605 typename... MultiTypeVectorArgs,
    \n-
    606 class K
    \n-
    607 >
    \n-\n-
    616 };
    \n-
    \n-
    617
    \n-
    618 // user calls
    \n-
    619
    \n-
    621 template<class M, class X, class Y, class K>
    \n-
    \n-
    622 void dbgs (const M& A, X& x, const Y& b, const K& w)
    \n-
    623 {
    \n-\n-
    625 }
    \n-
    \n-
    627 template<class M, class X, class Y, class K, int l>
    \n-
    \n-
    628 void dbgs (const M& A, X& x, const Y& b, const K& w, BL<l> /*bl*/)
    \n-
    629 {
    \n-\n-
    631 }
    \n-
    \n-
    633 template<class M, class X, class Y, class K>
    \n-
    \n-
    634 void bsorf (const M& A, X& x, const Y& b, const K& w)
    \n-
    635 {
    \n-\n-
    637 }
    \n-
    \n-
    639 template<class M, class X, class Y, class K, int l>
    \n-
    \n-
    640 void bsorf (const M& A, X& x, const Y& b, const K& w, BL<l> /*bl*/)
    \n-
    641 {
    \n-\n-
    643 }
    \n-
    \n-
    645 template<class M, class X, class Y, class K>
    \n-
    \n-
    646 void bsorb (const M& A, X& x, const Y& b, const K& w)
    \n-
    647 {
    \n-\n-
    649 }
    \n-
    \n-
    651 template<class M, class X, class Y, class K, int l>
    \n-
    \n-
    652 void bsorb (const M& A, X& x, const Y& b, const K& w, BL<l> /*bl*/)
    \n-
    653 {
    \n-\n-
    655 }
    \n-
    \n-
    657 template<class M, class X, class Y, class K>
    \n-
    \n-
    658 void dbjac (const M& A, X& x, const Y& b, const K& w)
    \n-
    659 {
    \n-\n-
    661 }
    \n-
    \n-
    663 template<class M, class X, class Y, class K, int l>
    \n-
    \n-
    664 void dbjac (const M& A, X& x, const Y& b, const K& w, BL<l> /*bl*/)
    \n-
    665 {
    \n-\n-
    667 }
    \n+
    449 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    450 return false;
    \n+
    451 }
    \n+
    452 mmHeader.ctype=double_type;
    \n+
    453 break;
    \n+
    454 case 'c' :
    \n+
    455 /* sanity check */
    \n+
    456 if(buffer != "complex")
    \n+
    457 {
    \n+
    458 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    459 return false;
    \n+
    460 }
    \n+
    461 mmHeader.ctype=complex_type;
    \n+
    462 break;
    \n+
    463 case 'p' :
    \n+
    464 /* sanity check */
    \n+
    465 if(buffer != "pattern")
    \n+
    466 {
    \n+
    467 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    468 return false;
    \n+
    469 }
    \n+
    470 mmHeader.ctype=pattern;
    \n+
    471 break;
    \n+
    472 default :
    \n+
    473 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    474 return false;
    \n+
    475 }
    \n+
    476
    \n+
    477 if(lineFeed(file))
    \n+
    478 return false;
    \n+
    479
    \n+
    480 file >> buffer;
    \n+
    481
    \n+
    482 std::transform(buffer.begin(), buffer.end(), buffer.begin(),
    \n+
    483 ::tolower);
    \n+
    484 switch(buffer[0])
    \n+
    485 {
    \n+
    486 case 'g' :
    \n+
    487 /* sanity check */
    \n+
    488 if(buffer != "general")
    \n+
    489 {
    \n+
    490 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    491 return false;
    \n+
    492 }
    \n+
    493 mmHeader.structure=general;
    \n+
    494 break;
    \n+
    495 case 'h' :
    \n+
    496 /* sanity check */
    \n+
    497 if(buffer != "hermitian")
    \n+
    498 {
    \n+
    499 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    500 return false;
    \n+
    501 }
    \n+
    502 mmHeader.structure=hermitian;
    \n+
    503 break;
    \n+
    504 case 's' :
    \n+
    505 if(buffer.size()==1) {
    \n+
    506 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    507 return false;
    \n+
    508 }
    \n+
    509
    \n+
    510 switch(buffer[1])
    \n+
    511 {
    \n+
    512 case 'y' :
    \n+
    513 /* sanity check */
    \n+
    514 if(buffer != "symmetric")
    \n+
    515 {
    \n+
    516 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    517 return false;
    \n+
    518 }
    \n+
    519 mmHeader.structure=symmetric;
    \n+
    520 break;
    \n+
    521 case 'k' :
    \n+
    522 /* sanity check */
    \n+
    523 if(buffer != "skew-symmetric")
    \n+
    524 {
    \n+
    525 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    526 return false;
    \n+
    527 }
    \n+
    528 mmHeader.structure=skew_symmetric;
    \n+
    529 break;
    \n+
    530 default :
    \n+
    531 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    532 return false;
    \n+
    533 }
    \n+
    534 break;
    \n+
    535 default :
    \n+
    536 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    537 return false;
    \n+
    538 }
    \n+
    539 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    540 c=file.peek();
    \n+
    541 return true;
    \n+
    542
    \n+
    543 }
    \n+
    \n+
    544
    \n+
    545 template<std::size_t brows, std::size_t bcols>
    \n+
    546 std::tuple<std::size_t, std::size_t, std::size_t>
    \n+
    \n+
    547 calculateNNZ(std::size_t rows, std::size_t cols, std::size_t entries, const MMHeader& header)
    \n+
    548 {
    \n+
    549 std::size_t blockrows=rows/brows;
    \n+
    550 std::size_t blockcols=cols/bcols;
    \n+
    551 std::size_t blocksize=brows*bcols;
    \n+
    552 std::size_t blockentries=0;
    \n+
    553
    \n+
    554 switch(header.structure)
    \n+
    555 {
    \n+
    556 case general :
    \n+
    557 blockentries = entries/blocksize; break;
    \n+
    558 case skew_symmetric :
    \n+
    559 blockentries = 2*entries/blocksize; break;
    \n+
    560 case symmetric :
    \n+
    561 blockentries = (2*entries-rows)/blocksize; break;
    \n+
    562 case hermitian :
    \n+
    563 blockentries = (2*entries-rows)/blocksize; break;
    \n+
    564 default :
    \n+
    565 throw Dune::NotImplemented();
    \n+
    566 }
    \n+
    567 return std::make_tuple(blockrows, blockcols, blockentries);
    \n+
    568 }
    \n+
    \n+
    569
    \n+
    570 /*
    \n+
    571 * @brief Storage class for the column index and the numeric value.
    \n+
    572 *
    \n+
    573 * \\tparam T Either a NumericWrapper of the numeric type or PatternDummy
    \n+
    574 * for MatrixMarket pattern case.
    \n+
    575 */
    \n+
    576 template<typename T>
    \n+
    \n+
    577 struct IndexData : public T
    \n+
    578 {
    \n+
    579 std::size_t index = {};
    \n+
    580 };
    \n+
    \n+
    581
    \n+
    582
    \n+
    593 template<typename T>
    \n+
    \n+\n+
    595 {
    \n+
    596 T number = {};
    \n+
    \n+
    597 operator T&()
    \n+
    598 {
    \n+
    599 return number;
    \n+
    600 }
    \n+
    \n+
    601 };
    \n+
    \n+
    602
    \n+
    \n+\n+
    607 {};
    \n+
    \n+
    608
    \n+
    609 template<>
    \n+
    \n+\n+
    611 {};
    \n+
    \n+
    612
    \n+
    613 template<typename T>
    \n+
    \n+
    614 std::istream& operator>>(std::istream& is, NumericWrapper<T>& num)
    \n+
    615 {
    \n+
    616 return is>>num.number;
    \n+
    617 }
    \n+
    \n+
    618
    \n+
    \n+
    619 inline std::istream& operator>>(std::istream& is, [[maybe_unused]] NumericWrapper<PatternDummy>& num)
    \n+
    620 {
    \n+
    621 return is;
    \n+
    622 }
    \n+
    \n+
    623
    \n+
    629 template<typename T>
    \n+
    \n+
    630 bool operator<(const IndexData<T>& i1, const IndexData<T>& i2)
    \n+
    631 {
    \n+
    632 return i1.index<i2.index;
    \n+
    633 }
    \n+
    \n+
    634
    \n+
    640 template<typename T>
    \n+
    \n+
    641 std::istream& operator>>(std::istream& is, IndexData<T>& data)
    \n+
    642 {
    \n+
    643 is>>data.index;
    \n+
    644 /* MatrixMarket indices are one based. Decrement for C++ */
    \n+
    645 --data.index;
    \n+
    646 return is>>data.number;
    \n+
    647 }
    \n+
    \n+
    648
    \n+
    654 template<typename T>
    \n+
    \n+
    655 std::istream& operator>>(std::istream& is, IndexData<NumericWrapper<std::complex<T>>>& data)
    \n+
    656 {
    \n+
    657 is>>data.index;
    \n+
    658 /* MatrixMarket indices are one based. Decrement for C++ */
    \n+
    659 --data.index;
    \n+
    660 // real and imaginary part needs to be read separately as
    \n+
    661 // complex numbers are not provided in pair form. (x,y)
    \n+
    662 NumericWrapper<T> real, imag;
    \n+
    663 is>>real;
    \n+
    664 is>>imag;
    \n+
    665 data.number = {real.number, imag.number};
    \n+
    666 return is;
    \n+
    667 }
    \n
    \n
    668
    \n-
    669
    \n-
    672} // end namespace
    \n-
    673
    \n-
    674#endif
    \n-\n-\n-\n-
    static void dbjac(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:568
    \n-
    static void dbgs(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:484
    \n-
    static void bsorb(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:540
    \n-
    static constexpr size_type N()
    Return the number of matrix rows.
    Definition multitypeblockmatrix.hh:64
    \n-
    static void bsorf(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:513
    \n-
    void bltsolve(const M &A, X &v, const Y &d)
    block lower triangular solve
    Definition gsetc.hh:175
    \n-
    WithDiagType
    Definition gsetc.hh:49
    \n-
    void bsorb(const M &A, X &x, const Y &b, const K &w)
    SSOR step.
    Definition gsetc.hh:646
    \n-
    void ubltsolve(const M &A, X &v, const Y &d)
    unit block lower triangular solve
    Definition gsetc.hh:188
    \n-
    void dbjac(const M &A, X &x, const Y &b, const K &w)
    Jacobi step.
    Definition gsetc.hh:658
    \n-
    void dbgs(const M &A, X &x, const Y &b, const K &w)
    GS step.
    Definition gsetc.hh:622
    \n-
    WithRelaxType
    Definition gsetc.hh:54
    \n-
    void bdsolve(const M &A, X &v, const Y &d)
    block diagonal solve, no relaxation
    Definition gsetc.hh:337
    \n-
    void butsolve(const M &A, X &v, const Y &d)
    block upper triangular solve
    Definition gsetc.hh:202
    \n-
    void bsorf(const M &A, X &x, const Y &b, const K &w)
    SOR step.
    Definition gsetc.hh:634
    \n-
    void ubutsolve(const M &A, X &v, const Y &d)
    unit block upper triangular solve
    Definition gsetc.hh:215
    \n-
    @ nodiag
    Definition gsetc.hh:51
    \n-
    @ withdiag
    Definition gsetc.hh:50
    \n-
    @ norelax
    Definition gsetc.hh:56
    \n-
    @ withrelax
    Definition gsetc.hh:55
    \n+
    675 template<typename D, int brows, int bcols>
    \n+
    \n+\n+
    677 {
    \n+
    683 template<typename T>
    \n+
    \n+
    684 void operator()(const std::vector<std::set<IndexData<D> > >& rows,
    \n+
    685 BCRSMatrix<T>& matrix)
    \n+
    686 {
    \n+
    687 static_assert(IsNumber<T>::value && brows==1 && bcols==1, "Only scalar entries are expected here!");
    \n+
    688 for (auto iter=matrix.begin(); iter!= matrix.end(); ++iter)
    \n+
    689 {
    \n+
    690 auto brow=iter.index();
    \n+
    691 for (auto siter=rows[brow].begin(); siter != rows[brow].end(); ++siter)
    \n+
    692 (*iter)[siter->index] = siter->number;
    \n+
    693 }
    \n+
    694 }
    \n+
    \n+
    695
    \n+
    701 template<typename T>
    \n+
    \n+
    702 void operator()(const std::vector<std::set<IndexData<D> > >& rows,
    \n+\n+
    704 {
    \n+
    705 for (auto iter=matrix.begin(); iter!= matrix.end(); ++iter)
    \n+
    706 {
    \n+
    707 for (auto brow=iter.index()*brows,
    \n+
    708 browend=iter.index()*brows+brows;
    \n+
    709 brow<browend; ++brow)
    \n+
    710 {
    \n+
    711 for (auto siter=rows[brow].begin(), send=rows[brow].end();
    \n+
    712 siter != send; ++siter)
    \n+
    713 (*iter)[siter->index/bcols][brow%brows][siter->index%bcols]=siter->number;
    \n+
    714 }
    \n+
    715 }
    \n+
    716 }
    \n+
    \n+
    717 };
    \n+
    \n+
    718
    \n+
    719 template<int brows, int bcols>
    \n+
    \n+\n+
    721 {
    \n+
    722 template<typename M>
    \n+
    \n+
    723 void operator()(const std::vector<std::set<IndexData<PatternDummy> > >& rows,
    \n+
    724 M& matrix)
    \n+
    725 {}
    \n+
    \n+
    726 };
    \n+
    \n+
    727
    \n+
    728 template<class T> struct is_complex : std::false_type {};
    \n+
    729 template<class T> struct is_complex<std::complex<T>> : std::true_type {};
    \n+
    730
    \n+
    731 // wrapper for std::conj. Returns T if T is not complex.
    \n+
    732 template<class T>
    \n+
    \n+
    733 std::enable_if_t<!is_complex<T>::value, T> conj(const T& r){
    \n+
    734 return r;
    \n+
    735 }
    \n+
    \n+
    736
    \n+
    737 template<class T>
    \n+
    \n+
    738 std::enable_if_t<is_complex<T>::value, T> conj(const T& r){
    \n+
    739 return std::conj(r);
    \n+
    740 }
    \n+
    \n+
    741
    \n+
    742 template<typename M>
    \n+
    \n+\n+
    744 {};
    \n+
    \n+
    745
    \n+
    746 template<typename B, typename A>
    \n+
    \n+\n+
    748 {
    \n+
    749 enum {
    \n+
    750 rows = 1,
    \n+
    751 cols = 1
    \n+
    752 };
    \n+
    753 };
    \n+
    \n+
    754
    \n+
    755 template<typename B, int i, int j, typename A>
    \n+
    \n+\n+
    757 {
    \n+
    758 enum {
    \n+
    759 rows = i,
    \n+
    760 cols = j
    \n+
    761 };
    \n+
    762 };
    \n+
    \n+
    763
    \n+
    764 template<typename T, typename A, typename D>
    \n+
    \n+\n+
    766 std::istream& file, std::size_t entries,
    \n+
    767 const MMHeader& mmHeader, const D&)
    \n+
    768 {
    \n+\n+
    770
    \n+
    771 // Number of rows and columns of T, if it is a matrix (1x1 otherwise)
    \n+
    772 constexpr int brows = mm_multipliers<Matrix>::rows;
    \n+
    773 constexpr int bcols = mm_multipliers<Matrix>::cols;
    \n+
    774
    \n+
    775 // First path
    \n+
    776 // store entries together with column index in a separate
    \n+
    777 // data structure
    \n+
    778 std::vector<std::set<IndexData<D> > > rows(matrix.N()*brows);
    \n+
    779
    \n+
    780 auto readloop = [&] (auto symmetryFixup) {
    \n+
    781 for(std::size_t i = 0; i < entries; ++i) {
    \n+
    782 std::size_t row;
    \n+
    783 IndexData<D> data;
    \n+
    784 skipComments(file);
    \n+
    785 file>>row;
    \n+
    786 --row; // Index was 1 based.
    \n+
    787 assert(row/bcols<matrix.N());
    \n+
    788 file>>data;
    \n+
    789 assert(data.index/bcols<matrix.M());
    \n+
    790 rows[row].insert(data);
    \n+
    791 if(row!=data.index)
    \n+
    792 symmetryFixup(row, data);
    \n+
    793 }
    \n+
    794 };
    \n+
    795
    \n+
    796 switch(mmHeader.structure)
    \n+
    797 {
    \n+
    798 case general:
    \n+
    799 readloop([](auto...){});
    \n+
    800 break;
    \n+
    801 case symmetric :
    \n+
    802 readloop([&](auto row, auto data) {
    \n+
    803 IndexData<D> data_sym(data);
    \n+
    804 data_sym.index = row;
    \n+
    805 rows[data.index].insert(data_sym);
    \n+
    806 });
    \n+
    807 break;
    \n+
    808 case skew_symmetric :
    \n+
    809 readloop([&](auto row, auto data) {
    \n+
    810 IndexData<D> data_sym;
    \n+
    811 data_sym.number = -data.number;
    \n+
    812 data_sym.index = row;
    \n+
    813 rows[data.index].insert(data_sym);
    \n+
    814 });
    \n+
    815 break;
    \n+
    816 case hermitian :
    \n+
    817 readloop([&](auto row, auto data) {
    \n+
    818 IndexData<D> data_sym;
    \n+
    819 data_sym.number = conj(data.number);
    \n+
    820 data_sym.index = row;
    \n+
    821 rows[data.index].insert(data_sym);
    \n+
    822 });
    \n+
    823 break;
    \n+
    824 default:
    \n+
    825 DUNE_THROW(Dune::NotImplemented,
    \n+
    826 "Only general, symmetric, skew-symmetric and hermitian is supported right now!");
    \n+
    827 }
    \n+
    828
    \n+
    829 // Setup the matrix sparsity pattern
    \n+
    830 int nnz=0;
    \n+
    831 for(typename Matrix::CreateIterator iter=matrix.createbegin();
    \n+
    832 iter!= matrix.createend(); ++iter)
    \n+
    833 {
    \n+
    834 for(std::size_t brow=iter.index()*brows, browend=iter.index()*brows+brows;
    \n+
    835 brow<browend; ++brow)
    \n+
    836 {
    \n+
    837 typedef typename std::set<IndexData<D> >::const_iterator Siter;
    \n+
    838 for(Siter siter=rows[brow].begin(), send=rows[brow].end();
    \n+
    839 siter != send; ++siter, ++nnz)
    \n+
    840 iter.insert(siter->index/bcols);
    \n+
    841 }
    \n+
    842 }
    \n+
    843
    \n+
    844 //Set the matrix values
    \n+
    845 matrix=0;
    \n+
    846
    \n+\n+
    848
    \n+
    849 Setter(rows, matrix);
    \n+
    850 }
    \n+
    \n+
    851
    \n+
    \n+
    852 inline std::tuple<std::string, std::string> splitFilename(const std::string& filename) {
    \n+
    853 std::size_t lastdot = filename.find_last_of(".");
    \n+
    854 if(lastdot == std::string::npos)
    \n+
    855 return std::make_tuple(filename, "");
    \n+
    856 else {
    \n+
    857 std::string potentialFileExtension = filename.substr(lastdot);
    \n+
    858 if (potentialFileExtension == ".mm" || potentialFileExtension == ".mtx")
    \n+
    859 return std::make_tuple(filename.substr(0, lastdot), potentialFileExtension);
    \n+
    860 else
    \n+
    861 return std::make_tuple(filename, "");
    \n+
    862 }
    \n+
    863 }
    \n+
    \n+
    864
    \n+
    865 } // end namespace MatrixMarketImpl
    \n+
    \n+
    866
    \n+
    \n+
    867 class MatrixMarketFormatError : public Dune::Exception
    \n+
    868 {};
    \n+
    \n+
    869
    \n+
    870
    \n+
    \n+
    871 inline void mm_read_header(std::size_t& rows, std::size_t& cols,
    \n+
    872 MatrixMarketImpl::MMHeader& header, std::istream& istr,
    \n+
    873 bool isVector)
    \n+
    874 {
    \n+
    875 using namespace MatrixMarketImpl;
    \n+
    876
    \n+
    877 if(!readMatrixMarketBanner(istr, header)) {
    \n+
    878 std::cerr << "First line was not a correct Matrix Market banner. Using default:\\n"
    \n+
    879 << "%%MatrixMarket matrix coordinate real general"<<std::endl;
    \n+
    880 // Go to the beginning of the file
    \n+
    881 istr.clear() ;
    \n+
    882 istr.seekg(0, std::ios::beg);
    \n+
    883 if(isVector)
    \n+
    884 header.type=array_type;
    \n+
    885 }
    \n+
    886
    \n+
    887 skipComments(istr);
    \n+
    888
    \n+
    889 if(lineFeed(istr))
    \n+\n+
    891
    \n+
    892 istr >> rows;
    \n+
    893
    \n+
    894 if(lineFeed(istr))
    \n+\n+
    896 istr >> cols;
    \n+
    897 }
    \n+
    \n+
    898
    \n+
    899 template<typename T, typename A>
    \n+
    \n+\n+
    901 std::size_t size,
    \n+
    902 std::istream& istr,
    \n+
    903 size_t lane)
    \n+
    904 {
    \n+
    905 for (int i=0; size>0; ++i, --size)
    \n+
    906 istr>>Simd::lane(lane,vector[i]);
    \n+
    907 }
    \n+
    \n+
    908
    \n+
    909 template<typename T, typename A, int entries>
    \n+
    \n+
    910 void mm_read_vector_entries(Dune::BlockVector<Dune::FieldVector<T,entries>,A>& vector,
    \n+
    911 std::size_t size,
    \n+
    912 std::istream& istr,
    \n+
    913 size_t lane)
    \n+
    914 {
    \n+
    915 for(int i=0; size>0; ++i, --size) {
    \n+
    916 Simd::Scalar<T> val;
    \n+
    917 istr>>val;
    \n+
    918 Simd::lane(lane, vector[i/entries][i%entries])=val;
    \n+
    919 }
    \n+
    920 }
    \n+
    \n+
    921
    \n+
    922
    \n+
    929 template<typename T, typename A>
    \n+
    \n+\n+
    931 std::istream& istr)
    \n+
    932 {
    \n+
    933 typedef typename Dune::BlockVector<T,A>::field_type field_type;
    \n+
    934 using namespace MatrixMarketImpl;
    \n+
    935
    \n+
    936 MMHeader header;
    \n+
    937 std::size_t rows, cols;
    \n+
    938 mm_read_header(rows,cols,header,istr, true);
    \n+
    939 if(cols!=Simd::lanes<field_type>()) {
    \n+
    940 if(Simd::lanes<field_type>() == 1)
    \n+
    941 DUNE_THROW(MatrixMarketFormatError, "cols!=1, therefore this is no vector!");
    \n+
    942 else
    \n+
    943 DUNE_THROW(MatrixMarketFormatError, "cols does not match the number of lanes in the field_type!");
    \n+
    944 }
    \n+
    945
    \n+
    946 if(header.type!=array_type)
    \n+
    947 DUNE_THROW(MatrixMarketFormatError, "Vectors have to be stored in array format!");
    \n+
    948
    \n+
    949
    \n+
    950 if constexpr (Dune::IsNumber<T>())
    \n+
    951 vector.resize(rows);
    \n+
    952 else
    \n+
    953 {
    \n+
    954 T dummy;
    \n+
    955 auto blocksize = dummy.size();
    \n+
    956 std::size_t size=rows/blocksize;
    \n+
    957 if(size*blocksize!=rows)
    \n+
    958 DUNE_THROW(MatrixMarketFormatError, "Block size of vector is not correct!");
    \n+
    959
    \n+
    960 vector.resize(size);
    \n+
    961 }
    \n+
    962
    \n+
    963 istr.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    964 for(size_t l=0;l<Simd::lanes<field_type>();++l){
    \n+
    965 mm_read_vector_entries(vector, rows, istr, l);
    \n+
    966 }
    \n+
    967 }
    \n+
    \n+
    968
    \n+
    975 template<typename T, typename A>
    \n+
    \n+\n+
    977 std::istream& istr)
    \n+
    978 {
    \n+
    979 using namespace MatrixMarketImpl;
    \n+\n+
    981
    \n+
    982 MMHeader header;
    \n+
    983 if(!readMatrixMarketBanner(istr, header)) {
    \n+
    984 std::cerr << "First line was not a correct Matrix Market banner. Using default:\\n"
    \n+
    985 << "%%MatrixMarket matrix coordinate real general"<<std::endl;
    \n+
    986 // Go to the beginning of the file
    \n+
    987 istr.clear() ;
    \n+
    988 istr.seekg(0, std::ios::beg);
    \n+
    989 }
    \n+
    990 skipComments(istr);
    \n+
    991
    \n+
    992 std::size_t rows, cols, entries;
    \n+
    993
    \n+
    994 if(lineFeed(istr))
    \n+\n+
    996
    \n+
    997 istr >> rows;
    \n+
    998
    \n+
    999 if(lineFeed(istr))
    \n+\n+
    1001 istr >> cols;
    \n+
    1002
    \n+
    1003 if(lineFeed(istr))
    \n+\n+
    1005
    \n+
    1006 istr >>entries;
    \n+
    1007
    \n+
    1008 std::size_t nnz, blockrows, blockcols;
    \n+
    1009
    \n+
    1010 // Number of rows and columns of T, if it is a matrix (1x1 otherwise)
    \n+
    1011 constexpr int brows = mm_multipliers<Matrix>::rows;
    \n+
    1012 constexpr int bcols = mm_multipliers<Matrix>::cols;
    \n+
    1013
    \n+
    1014 std::tie(blockrows, blockcols, nnz) = calculateNNZ<brows, bcols>(rows, cols, entries, header);
    \n+
    1015
    \n+
    1016 istr.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n+
    1017
    \n+
    1018
    \n+
    1019 matrix.setSize(blockrows, blockcols, nnz);
    \n+\n+
    1021
    \n+
    1022 if(header.type==array_type)
    \n+
    1023 DUNE_THROW(Dune::NotImplemented, "Array format currently not supported for matrices!");
    \n+
    1024
    \n+
    1025 readSparseEntries(matrix, istr, entries, header, NumericWrapper<typename Matrix::field_type>());
    \n+
    1026 }
    \n+
    \n+
    1027
    \n+
    1028 // Print a scalar entry
    \n+
    1029 template<typename B>
    \n+
    \n+
    1030 void mm_print_entry(const B& entry,
    \n+
    1031 std::size_t rowidx,
    \n+
    1032 std::size_t colidx,
    \n+
    1033 std::ostream& ostr)
    \n+
    1034 {
    \n+
    1035 if constexpr (IsNumber<B>())
    \n+
    1036 ostr << rowidx << " " << colidx << " " << entry << std::endl;
    \n+
    1037 else
    \n+
    1038 {
    \n+
    1039 for (auto row=entry.begin(); row != entry.end(); ++row, ++rowidx) {
    \n+
    1040 int coli=colidx;
    \n+
    1041 for (auto col = row->begin(); col != row->end(); ++col, ++coli)
    \n+
    1042 ostr<< rowidx<<" "<<coli<<" "<<*col<<std::endl;
    \n+
    1043 }
    \n+
    1044 }
    \n+
    1045 }
    \n+
    \n+
    1046
    \n+
    1047 // Write a vector entry
    \n+
    1048 template<typename V>
    \n+
    \n+
    1049 void mm_print_vector_entry(const V& entry, std::ostream& ostr,
    \n+
    1050 const std::integral_constant<int,1>&,
    \n+
    1051 size_t lane)
    \n+
    1052 {
    \n+
    1053 ostr<<Simd::lane(lane,entry)<<std::endl;
    \n+
    1054 }
    \n+
    \n+
    1055
    \n+
    1056 // Write a vector
    \n+
    1057 template<typename V>
    \n+
    \n+
    1058 void mm_print_vector_entry(const V& vector, std::ostream& ostr,
    \n+
    1059 const std::integral_constant<int,0>&,
    \n+
    1060 size_t lane)
    \n+
    1061 {
    \n+
    1062 using namespace MatrixMarketImpl;
    \n+
    1063
    \n+
    1064 // Is the entry a supported numeric type?
    \n+
    1065 const int isnumeric = mm_numeric_type<Simd::Scalar<typename V::block_type>>::is_numeric;
    \n+
    1066 typedef typename V::const_iterator VIter;
    \n+
    1067
    \n+
    1068 for(VIter i=vector.begin(); i != vector.end(); ++i)
    \n+
    1069
    \n+
    1070 mm_print_vector_entry(*i, ostr,
    \n+
    1071 std::integral_constant<int,isnumeric>(),
    \n+
    1072 lane);
    \n+
    1073 }
    \n+
    \n+
    1074
    \n+
    1075 template<typename T, typename A>
    \n+
    \n+
    1076 std::size_t countEntries(const BlockVector<T,A>& vector)
    \n+
    1077 {
    \n+
    1078 return vector.size();
    \n+
    1079 }
    \n+
    \n+
    1080
    \n+
    1081 template<typename T, typename A, int i>
    \n+
    \n+
    1082 std::size_t countEntries(const BlockVector<FieldVector<T,i>,A>& vector)
    \n+
    1083 {
    \n+
    1084 return vector.size()*i;
    \n+
    1085 }
    \n+
    \n+
    1086
    \n+
    1087 // Version for writing vectors.
    \n+
    1088 template<typename V>
    \n+
    \n+
    1089 void writeMatrixMarket(const V& vector, std::ostream& ostr,
    \n+
    1090 const std::integral_constant<int,0>&)
    \n+
    1091 {
    \n+
    1092 using namespace MatrixMarketImpl;
    \n+
    1093 typedef typename V::field_type field_type;
    \n+
    1094
    \n+
    1095 ostr<<countEntries(vector)<<" "<<Simd::lanes<field_type>()<<std::endl;
    \n+
    1096 const int isnumeric = mm_numeric_type<Simd::Scalar<V>>::is_numeric;
    \n+
    1097 for(size_t l=0;l<Simd::lanes<field_type>(); ++l){
    \n+
    1098 mm_print_vector_entry(vector,ostr, std::integral_constant<int,isnumeric>(), l);
    \n+
    1099 }
    \n+
    1100 }
    \n+
    \n+
    1101
    \n+
    1102 // Versions for writing matrices
    \n+
    1103 template<typename M>
    \n+
    \n+
    1104 void writeMatrixMarket(const M& matrix,
    \n+
    1105 std::ostream& ostr,
    \n+
    1106 const std::integral_constant<int,1>&)
    \n+
    1107 {
    \n+
    1108 ostr<<matrix.N()*MatrixMarketImpl::mm_multipliers<M>::rows<<" "
    \n+\n+
    1110 <<countNonZeros(matrix)<<std::endl;
    \n+
    1111
    \n+
    1112 typedef typename M::const_iterator riterator;
    \n+
    1113 typedef typename M::ConstColIterator citerator;
    \n+
    1114 for(riterator row=matrix.begin(); row != matrix.end(); ++row)
    \n+
    1115 for(citerator col = row->begin(); col != row->end(); ++col)
    \n+
    1116 // Matrix Market indexing start with 1!
    \n+\n+\n+
    1119 }
    \n+
    \n+
    1120
    \n+
    1121
    \n+
    1125 template<typename M>
    \n+
    \n+
    1126 void writeMatrixMarket(const M& matrix,
    \n+
    1127 std::ostream& ostr)
    \n+
    1128 {
    \n+
    1129 using namespace MatrixMarketImpl;
    \n+
    1130
    \n+
    1131 // Write header information
    \n+
    1132 mm_header_printer<M>::print(ostr);
    \n+
    1133 mm_block_structure_header<M>::print(ostr,matrix);
    \n+
    1134 // Choose the correct function for matrix and vector
    \n+
    1135 writeMatrixMarket(matrix,ostr,std::integral_constant<int,IsMatrix<M>::value>());
    \n+
    1136 }
    \n+
    \n+
    1137
    \n+
    1138 static const int default_precision = -1;
    \n+
    1150 template<typename M>
    \n+
    \n+
    1151 void storeMatrixMarket(const M& matrix,
    \n+
    1152 std::string filename,
    \n+
    1153 int prec=default_precision)
    \n+
    1154 {
    \n+
    1155 auto [pureFilename, extension] = MatrixMarketImpl::splitFilename(filename);
    \n+
    1156 std::string rfilename;
    \n+
    1157 std::ofstream file;
    \n+
    1158 if (extension != "") {
    \n+
    1159 rfilename = pureFilename + extension;
    \n+
    1160 file.open(rfilename.c_str());
    \n+
    1161 if(!file)
    \n+
    1162 DUNE_THROW(IOError, "Could not open file for storage: " << rfilename.c_str());
    \n+
    1163 }
    \n+
    1164 else {
    \n+
    1165 // only try .mm so we do not ignore potential errors
    \n+
    1166 rfilename = pureFilename + ".mm";
    \n+
    1167 file.open(rfilename.c_str());
    \n+
    1168 if(!file)
    \n+
    1169 DUNE_THROW(IOError, "Could not open file for storage: " << rfilename.c_str());
    \n+
    1170 }
    \n+
    1171
    \n+
    1172 file.setf(std::ios::scientific,std::ios::floatfield);
    \n+
    1173 if(prec>0)
    \n+
    1174 file.precision(prec);
    \n+
    1175 writeMatrixMarket(matrix, file);
    \n+
    1176 file.close();
    \n+
    1177 }
    \n+
    \n+
    1178
    \n+
    1179#if HAVE_MPI
    \n+
    1194 template<typename M, typename G, typename L>
    \n+
    \n+
    1195 void storeMatrixMarket(const M& matrix,
    \n+
    1196 std::string filename,
    \n+\n+
    1198 bool storeIndices=true,
    \n+
    1199 int prec=default_precision)
    \n+
    1200 {
    \n+
    1201 // Get our rank
    \n+
    1202 int rank = comm.communicator().rank();
    \n+
    1203 // Write the local matrix
    \n+
    1204 auto [pureFilename, extension] = MatrixMarketImpl::splitFilename(filename);
    \n+
    1205 std::string rfilename;
    \n+
    1206 std::ofstream file;
    \n+
    1207 if (extension != "") {
    \n+
    1208 rfilename = pureFilename + "_" + std::to_string(rank) + extension;
    \n+
    1209 file.open(rfilename.c_str());
    \n+
    1210 dverb<< rfilename <<std::endl;
    \n+
    1211 if(!file)
    \n+
    1212 DUNE_THROW(IOError, "Could not open file for storage: " << rfilename.c_str());
    \n+
    1213 }
    \n+
    1214 else {
    \n+
    1215 // only try .mm so we do not ignore potential errors
    \n+
    1216 rfilename = pureFilename + "_" + std::to_string(rank) + ".mm";
    \n+
    1217 file.open(rfilename.c_str());
    \n+
    1218 dverb<< rfilename <<std::endl;
    \n+
    1219 if(!file)
    \n+
    1220 DUNE_THROW(IOError, "Could not open file for storage: " << rfilename.c_str());
    \n+
    1221 }
    \n+
    1222 file.setf(std::ios::scientific,std::ios::floatfield);
    \n+
    1223 if(prec>0)
    \n+
    1224 file.precision(prec);
    \n+
    1225 writeMatrixMarket(matrix, file);
    \n+
    1226 file.close();
    \n+
    1227
    \n+
    1228 if(!storeIndices)
    \n+
    1229 return;
    \n+
    1230
    \n+
    1231 // Write the global to local index mapping
    \n+
    1232 rfilename = pureFilename + "_" + std::to_string(rank) + ".idx";
    \n+
    1233 file.open(rfilename.c_str());
    \n+
    1234 if(!file)
    \n+
    1235 DUNE_THROW(IOError, "Could not open file for storage: " << rfilename.c_str());
    \n+
    1236 file.setf(std::ios::scientific,std::ios::floatfield);
    \n+\n+
    1238 typedef typename IndexSet::const_iterator Iterator;
    \n+
    1239 for(Iterator iter = comm.indexSet().begin();
    \n+
    1240 iter != comm.indexSet().end(); ++iter) {
    \n+
    1241 file << iter->global()<<" "<<(std::size_t)iter->local()<<" "
    \n+
    1242 <<(int)iter->local().attribute()<<" "<<(int)iter->local().isPublic()<<std::endl;
    \n+
    1243 }
    \n+
    1244 // Store neighbour information for efficient remote indices setup.
    \n+
    1245 file<<"neighbours:";
    \n+
    1246 const std::set<int>& neighbours=comm.remoteIndices().getNeighbours();
    \n+
    1247 typedef std::set<int>::const_iterator SIter;
    \n+
    1248 for(SIter neighbour=neighbours.begin(); neighbour != neighbours.end(); ++neighbour) {
    \n+
    1249 file<<" "<< *neighbour;
    \n+
    1250 }
    \n+
    1251 file.close();
    \n+
    1252 }
    \n+
    \n+
    1253
    \n+
    1268 template<typename M, typename G, typename L>
    \n+
    \n+
    1269 void loadMatrixMarket(M& matrix,
    \n+
    1270 const std::string& filename,
    \n+\n+
    1272 bool readIndices=true)
    \n+
    1273 {
    \n+
    1274 using namespace MatrixMarketImpl;
    \n+
    1275
    \n+\n+
    1277 typedef typename LocalIndexT::Attribute Attribute;
    \n+
    1278 // Get our rank
    \n+
    1279 int rank = comm.communicator().rank();
    \n+
    1280 // load local matrix
    \n+
    1281 auto [pureFilename, extension] = MatrixMarketImpl::splitFilename(filename);
    \n+
    1282 std::string rfilename;
    \n+
    1283 std::ifstream file;
    \n+
    1284 if (extension != "") {
    \n+
    1285 rfilename = pureFilename + "_" + std::to_string(rank) + extension;
    \n+
    1286 file.open(rfilename.c_str(), std::ios::in);
    \n+
    1287 dverb<< rfilename <<std::endl;
    \n+
    1288 if(!file)
    \n+
    1289 DUNE_THROW(IOError, "Could not open file: " << rfilename.c_str());
    \n+
    1290 }
    \n+
    1291 else {
    \n+
    1292 // try both .mm and .mtx
    \n+
    1293 rfilename = pureFilename + "_" + std::to_string(rank) + ".mm";
    \n+
    1294 file.open(rfilename.c_str(), std::ios::in);
    \n+
    1295 if(!file) {
    \n+
    1296 rfilename = pureFilename + "_" + std::to_string(rank) + ".mtx";
    \n+
    1297 file.open(rfilename.c_str(), std::ios::in);
    \n+
    1298 dverb<< rfilename <<std::endl;
    \n+
    1299 if(!file)
    \n+
    1300 DUNE_THROW(IOError, "Could not open file: " << rfilename.c_str());
    \n+
    1301 }
    \n+
    1302 }
    \n+
    1303 readMatrixMarket(matrix,file);
    \n+
    1304 file.close();
    \n+
    1305
    \n+
    1306 if(!readIndices)
    \n+
    1307 return;
    \n+
    1308
    \n+
    1309 // read indices
    \n+\n+
    1311 IndexSet& pis=comm.pis;
    \n+
    1312 rfilename = pureFilename + "_" + std::to_string(rank) + ".idx";
    \n+
    1313 file.open(rfilename.c_str());
    \n+
    1314 if(!file)
    \n+
    1315 DUNE_THROW(IOError, "Could not open file: " << rfilename.c_str());
    \n+
    1316 if(pis.size()!=0)
    \n+
    1317 DUNE_THROW(InvalidIndexSetState, "Index set is not empty!");
    \n+
    1318
    \n+
    1319 pis.beginResize();
    \n+
    1320 while(!file.eof() && file.peek()!='n') {
    \n+
    1321 G g;
    \n+
    1322 file >>g;
    \n+
    1323 std::size_t l;
    \n+
    1324 file >>l;
    \n+
    1325 int c;
    \n+
    1326 file >>c;
    \n+
    1327 bool b;
    \n+
    1328 file >> b;
    \n+
    1329 pis.add(g,LocalIndexT(l,Attribute(c),b));
    \n+
    1330 lineFeed(file);
    \n+
    1331 }
    \n+
    1332 pis.endResize();
    \n+
    1333 if(!file.eof()) {
    \n+
    1334 // read neighbours
    \n+
    1335 std::string s;
    \n+
    1336 file>>s;
    \n+
    1337 if(s!="neighbours:")
    \n+
    1338 DUNE_THROW(MatrixMarketFormatError, "was expecting the string: \\"neighbours:\\"");
    \n+
    1339 std::set<int> nb;
    \n+
    1340 while(!file.eof()) {
    \n+
    1341 int i;
    \n+
    1342 file >> i;
    \n+
    1343 nb.insert(i);
    \n+
    1344 }
    \n+
    1345 file.close();
    \n+
    1346 comm.ri.setNeighbours(nb);
    \n+
    1347 }
    \n+
    1348 comm.ri.template rebuild<false>();
    \n+
    1349 }
    \n+
    \n+
    1350
    \n+
    1351 #endif
    \n+
    1352
    \n+
    1363 template<typename M>
    \n+
    \n+
    1364 void loadMatrixMarket(M& matrix,
    \n+
    1365 const std::string& filename)
    \n+
    1366 {
    \n+
    1367 auto [pureFilename, extension] = MatrixMarketImpl::splitFilename(filename);
    \n+
    1368 std::string rfilename;
    \n+
    1369 std::ifstream file;
    \n+
    1370 if (extension != "") {
    \n+
    1371 rfilename = pureFilename + extension;
    \n+
    1372 file.open(rfilename.c_str());
    \n+
    1373 if(!file)
    \n+
    1374 DUNE_THROW(IOError, "Could not open file: " << rfilename.c_str());
    \n+
    1375 }
    \n+
    1376 else {
    \n+
    1377 // try both .mm and .mtx
    \n+
    1378 rfilename = pureFilename + ".mm";
    \n+
    1379 file.open(rfilename.c_str(), std::ios::in);
    \n+
    1380 if(!file) {
    \n+
    1381 rfilename = pureFilename + ".mtx";
    \n+
    1382 file.open(rfilename.c_str(), std::ios::in);
    \n+
    1383 if(!file)
    \n+
    1384 DUNE_THROW(IOError, "Could not open file: " << rfilename.c_str());
    \n+
    1385 }
    \n+
    1386 }
    \n+
    1387 readMatrixMarket(matrix,file);
    \n+
    1388 file.close();
    \n+
    1389 }
    \n+
    \n+
    1390
    \n+
    1392}
    \n+
    1393#endif
    \n+
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Implementation of the BCRSMatrix class.
    \n+
    Some handy generic functions for ISTL matrices.
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n+
    auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::value > *sfinae=nullptr)
    Get the number of nonzero fields in the matrix.
    Definition matrixutils.hh:119
    \n+
    void readMatrixMarket(Dune::BlockVector< T, A > &vector, std::istream &istr)
    Reads a BlockVector from a matrix market file.
    Definition matrixmarket.hh:930
    \n+
    void storeMatrixMarket(const M &matrix, std::string filename, int prec=default_precision)
    Stores a parallel matrix/vector in matrix market format in a file.
    Definition matrixmarket.hh:1151
    \n+
    void loadMatrixMarket(M &matrix, const std::string &filename, OwnerOverlapCopyCommunication< G, L > &comm, bool readIndices=true)
    Load a parallel matrix/vector stored in matrix market format.
    Definition matrixmarket.hh:1269
    \n+
    std::size_t countEntries(const BlockVector< T, A > &vector)
    Definition matrixmarket.hh:1076
    \n+
    void writeMatrixMarket(const V &vector, std::ostream &ostr, const std::integral_constant< int, 0 > &)
    Definition matrixmarket.hh:1089
    \n+
    void mm_print_vector_entry(const V &entry, std::ostream &ostr, const std::integral_constant< int, 1 > &, size_t lane)
    Definition matrixmarket.hh:1049
    \n+
    static const int default_precision
    Definition matrixmarket.hh:1138
    \n+
    void mm_read_vector_entries(Dune::BlockVector< T, A > &vector, std::size_t size, std::istream &istr, size_t lane)
    Definition matrixmarket.hh:900
    \n+
    void mm_read_header(std::size_t &rows, std::size_t &cols, MatrixMarketImpl::MMHeader &header, std::istream &istr, bool isVector)
    Definition matrixmarket.hh:871
    \n+
    void mm_print_entry(const B &entry, std::size_t rowidx, std::size_t colidx, std::ostream &ostr)
    Definition matrixmarket.hh:1030
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n-
    A Vector class to support different block types.
    Definition multitypeblockvector.hh:59
    \n-
    A Matrix class to support different block types.
    Definition multitypeblockmatrix.hh:46
    \n-
    compile-time parameter for block recursion depth
    Definition gsetc.hh:45
    \n-
    @ recursion_level
    Definition gsetc.hh:46
    \n-
    Definition gsetc.hh:69
    \n-
    static void butsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:90
    \n-
    static void bltsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:71
    \n-
    static void bltsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:114
    \n-
    static void butsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:120
    \n-
    static void bltsolve(const M &A, X &v, const Y &d, const K &)
    Definition gsetc.hh:129
    \n-
    static void butsolve(const M &A, X &v, const Y &d, const K &)
    Definition gsetc.hh:134
    \n-
    static void bltsolve(const M &, X &v, const Y &d, const K &w)
    Definition gsetc.hh:142
    \n-
    static void butsolve(const M &, X &v, const Y &d, const K &w)
    Definition gsetc.hh:148
    \n-
    static void bltsolve(const M &, X &v, const Y &d, const K &)
    Definition gsetc.hh:157
    \n-
    static void butsolve(const M &, X &v, const Y &d, const K &)
    Definition gsetc.hh:162
    \n-
    Definition gsetc.hh:294
    \n-
    static void bdsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:296
    \n-
    static void bdsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:316
    \n-
    static void bdsolve(const M &A, X &v, const Y &d, const K &)
    Definition gsetc.hh:325
    \n-
    Definition gsetc.hh:375
    \n-
    static void bsorb(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:461
    \n-
    static void bsorf(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:418
    \n-
    static void dbjac(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:504
    \n-
    static void dbgs(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:378
    \n-
    static void dbgs(const M &A, X &x, const Y &b, const K &)
    Definition gsetc.hh:545
    \n-
    static void dbjac(const M &A, X &x, const Y &b, const K &)
    Definition gsetc.hh:560
    \n-
    static void bsorf(const M &A, X &x, const Y &b, const K &)
    Definition gsetc.hh:550
    \n-
    static void bsorb(const M &A, X &x, const Y &b, const K &)
    Definition gsetc.hh:555
    \n-
    static void dbgs(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A, MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector< MultiTypeVectorArgs... > &b, const K &w)
    Definition gsetc.hh:571
    \n-
    static void dbjac(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A, MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector< MultiTypeVectorArgs... > &b, const K &w)
    Definition gsetc.hh:608
    \n-
    static void bsorf(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A, MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector< MultiTypeVectorArgs... > &b, const K &w)
    Definition gsetc.hh:583
    \n-
    static void bsorb(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A, MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector< MultiTypeVectorArgs... > &b, const K &w)
    Definition gsetc.hh:595
    \n+
    std::tuple< std::size_t, std::size_t, std::size_t > calculateNNZ(std::size_t rows, std::size_t cols, std::size_t entries, const MMHeader &header)
    Definition matrixmarket.hh:547
    \n+
    bool operator<(const IndexData< T > &i1, const IndexData< T > &i2)
    LessThan operator.
    Definition matrixmarket.hh:630
    \n+
    LineType
    Definition matrixmarket.hh:296
    \n+
    @ DATA
    Definition matrixmarket.hh:296
    \n+
    @ MM_HEADER
    Definition matrixmarket.hh:296
    \n+
    @ MM_ISTLSTRUCT
    Definition matrixmarket.hh:296
    \n+
    bool readMatrixMarketBanner(std::istream &file, MMHeader &mmHeader)
    Definition matrixmarket.hh:353
    \n+
    void readSparseEntries(Dune::BCRSMatrix< T, A > &matrix, std::istream &file, std::size_t entries, const MMHeader &mmHeader, const D &)
    Definition matrixmarket.hh:765
    \n+
    MM_TYPE
    Definition matrixmarket.hh:299
    \n+
    @ array_type
    Definition matrixmarket.hh:299
    \n+
    @ coordinate_type
    Definition matrixmarket.hh:299
    \n+
    @ unknown_type
    Definition matrixmarket.hh:299
    \n+
    std::istream & operator>>(std::istream &is, NumericWrapper< T > &num)
    Definition matrixmarket.hh:614
    \n+
    void skipComments(std::istream &file)
    Definition matrixmarket.hh:339
    \n+
    bool lineFeed(std::istream &file)
    Definition matrixmarket.hh:315
    \n+
    @ MM_MAX_LINE_LENGTH
    Definition matrixmarket.hh:297
    \n+
    MM_STRUCTURE
    Definition matrixmarket.hh:303
    \n+
    @ skew_symmetric
    Definition matrixmarket.hh:303
    \n+
    @ general
    Definition matrixmarket.hh:303
    \n+
    @ hermitian
    Definition matrixmarket.hh:303
    \n+
    @ unknown_structure
    Definition matrixmarket.hh:303
    \n+
    @ symmetric
    Definition matrixmarket.hh:303
    \n+
    MM_CTYPE
    Definition matrixmarket.hh:301
    \n+
    @ unknown_ctype
    Definition matrixmarket.hh:301
    \n+
    @ pattern
    Definition matrixmarket.hh:301
    \n+
    @ complex_type
    Definition matrixmarket.hh:301
    \n+
    @ double_type
    Definition matrixmarket.hh:301
    \n+
    @ integer_type
    Definition matrixmarket.hh:301
    \n+
    std::enable_if_t<!is_complex< T >::value, T > conj(const T &r)
    Definition matrixmarket.hh:733
    \n+
    std::tuple< std::string, std::string > splitFilename(const std::string &filename)
    Definition matrixmarket.hh:852
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    Iterator begin()
    Get iterator to first row.
    Definition bcrsmatrix.hh:675
    \n+
    Iterator end()
    Get iterator to one beyond last row.
    Definition bcrsmatrix.hh:681
    \n+
    CreateIterator createend()
    get create iterator pointing to one after the last block
    Definition bcrsmatrix.hh:1103
    \n+
    size_type M() const
    number of columns (counted in blocks)
    Definition bcrsmatrix.hh:1978
    \n+
    CreateIterator createbegin()
    get initial create iterator
    Definition bcrsmatrix.hh:1097
    \n+
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n+
    void setBuildMode(BuildMode bm)
    Sets the build mode of the matrix.
    Definition bcrsmatrix.hh:833
    \n+
    void setSize(size_type rows, size_type columns, size_type nnz=0)
    Set the size of the matrix.
    Definition bcrsmatrix.hh:861
    \n+
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n+
    void resize(size_type size)
    Resize the vector.
    Definition bvector.hh:503
    \n+
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bvector.hh:401
    \n+
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n+
    Helper metaprogram to get the matrix market string representation of the numeric type.
    Definition matrixmarket.hh:76
    \n+
    @ is_numeric
    Whether T is a supported numeric type.
    Definition matrixmarket.hh:81
    \n+
    static std::string str()
    Definition matrixmarket.hh:95
    \n+
    static std::string str()
    Definition matrixmarket.hh:111
    \n+
    static std::string str()
    Definition matrixmarket.hh:127
    \n+
    static std::string str()
    Definition matrixmarket.hh:143
    \n+
    static std::string str()
    Definition matrixmarket.hh:159
    \n+
    Meta program to write the correct Matrix Market header.
    Definition matrixmarket.hh:174
    \n+
    static void print(std::ostream &os)
    Definition matrixmarket.hh:179
    \n+
    static void print(std::ostream &os)
    Definition matrixmarket.hh:189
    \n+
    static void print(std::ostream &os)
    Definition matrixmarket.hh:199
    \n+
    static void print(std::ostream &os)
    Definition matrixmarket.hh:209
    \n+
    Metaprogram for writing the ISTL block structure header.
    Definition matrixmarket.hh:225
    \n+
    static void print(std::ostream &os, const M &)
    Definition matrixmarket.hh:233
    \n+
    BlockVector< T, A > M
    Definition matrixmarket.hh:230
    \n+
    BlockVector< FieldVector< T, i >, A > M
    Definition matrixmarket.hh:243
    \n+
    static void print(std::ostream &os, const M &)
    Definition matrixmarket.hh:245
    \n+
    BCRSMatrix< T, A > M
    Definition matrixmarket.hh:255
    \n+
    static void print(std::ostream &os, const M &)
    Definition matrixmarket.hh:258
    \n+
    BCRSMatrix< FieldMatrix< T, i, j >, A > M
    Definition matrixmarket.hh:268
    \n+
    static void print(std::ostream &os, const M &)
    Definition matrixmarket.hh:270
    \n+
    static void print(std::ostream &os, const M &m)
    Definition matrixmarket.hh:283
    \n+
    FieldMatrix< T, i, j > M
    Definition matrixmarket.hh:281
    \n+
    static void print(std::ostream &os, const M &m)
    Definition matrixmarket.hh:292
    \n+
    FieldVector< T, i > M
    Definition matrixmarket.hh:290
    \n+
    Definition matrixmarket.hh:306
    \n+
    MM_STRUCTURE structure
    Definition matrixmarket.hh:312
    \n+
    MM_TYPE type
    Definition matrixmarket.hh:310
    \n+
    MMHeader()
    Definition matrixmarket.hh:307
    \n+
    MM_CTYPE ctype
    Definition matrixmarket.hh:311
    \n+
    Definition matrixmarket.hh:578
    \n+
    std::size_t index
    Definition matrixmarket.hh:579
    \n+
    a wrapper class of numeric values.
    Definition matrixmarket.hh:595
    \n+
    T number
    Definition matrixmarket.hh:596
    \n+
    Utility class for marking the pattern type of the MatrixMarket matrices.
    Definition matrixmarket.hh:607
    \n+
    Functor to the data values of the matrix.
    Definition matrixmarket.hh:677
    \n+
    void operator()(const std::vector< std::set< IndexData< D > > > &rows, BCRSMatrix< T > &matrix)
    Sets the matrix values.
    Definition matrixmarket.hh:684
    \n+
    void operator()(const std::vector< std::set< IndexData< D > > > &rows, BCRSMatrix< FieldMatrix< T, brows, bcols > > &matrix)
    Sets the matrix values.
    Definition matrixmarket.hh:702
    \n+
    void operator()(const std::vector< std::set< IndexData< PatternDummy > > > &rows, M &matrix)
    Definition matrixmarket.hh:723
    \n+
    Definition matrixmarket.hh:728
    \n+
    Definition matrixmarket.hh:744
    \n+
    Definition matrixmarket.hh:868
    \n+
    Definition matrixutils.hh:27
    \n+
    Test whether a type is an ISTL Matrix.
    Definition matrixutils.hh:504
    \n+
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n+
    const ParallelIndexSet & indexSet() const
    Get the underlying parallel index set.
    Definition owneroverlapcopy.hh:462
    \n+
    const Communication< MPI_Comm > & communicator() const
    Definition owneroverlapcopy.hh:299
    \n+
    const RemoteIndices & remoteIndices() const
    Get the underlying remote indices.
    Definition owneroverlapcopy.hh:471
    \n+
    Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet
    The type of the parallel index set.
    Definition owneroverlapcopy.hh:449
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,832 +1,1632 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-gsetc.hh\n+matrixmarket.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_GSETC_HH\n-6#define DUNE_ISTL_GSETC_HH\n+5#ifndef DUNE_ISTL_MATRIXMARKET_HH\n+6#define DUNE_ISTL_MATRIXMARKET_HH\n 7\n-8#include \n+8#include \n 9#include \n-10#include \n-11#include \n-12#include \n-13\n-14#include \n-15\n-16#include \"_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-17#include \"_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-18\n-19#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-20\n-21\n-27namespace _\bD_\bu_\bn_\be {\n-28\n-39 //============================================================\n-40 // parameter types\n-41 //============================================================\n-42\n-44 template\n-_\b4_\b5 struct _\bB_\bL {\n-_\b4_\b6 enum {_\br_\be_\bc_\bu_\br_\bs_\bi_\bo_\bn_\b__\bl_\be_\bv_\be_\bl = l};\n-47 };\n-48\n-_\b4_\b9 enum _\bW_\bi_\bt_\bh_\bD_\bi_\ba_\bg_\bT_\by_\bp_\be {\n-_\b5_\b0 _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg=1,\n-51 _\bn_\bo_\bd_\bi_\ba_\bg=0\n-_\b5_\b2 };\n-53\n-_\b5_\b4 enum _\bW_\bi_\bt_\bh_\bR_\be_\bl_\ba_\bx_\bT_\by_\bp_\be {\n-_\b5_\b5 _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx=1,\n-56 _\bn_\bo_\br_\be_\bl_\ba_\bx=0\n-_\b5_\b7 };\n-58\n-59 //============================================================\n-60 // generic triangular solves\n-61 // consider block decomposition A = L + D + U\n-62 // we can invert L, L+D, U, U+D\n-63 // we can apply relaxation or not\n-64 // we can recurse over a fixed number of levels\n-65 //============================================================\n-66\n-67 // template meta program for triangular solves\n-68 template\n-_\b6_\b9 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be {\n-70 template\n-_\b7_\b1 static void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n-72 {\n-73 // iterator types\n-74 typedef typename M::ConstRowIterator rowiterator;\n-75 typedef typename M::ConstColIterator coliterator;\n-76 typedef typename Y::block_type bblock;\n-77\n-78 // local solve at each block and immediate update\n-79 rowiterator endi=A.end();\n-80 for (rowiterator i=A.begin(); i!=endi; ++i)\n-81 {\n-82 bblock rhs(d[i.index()]);\n-83 coliterator j;\n-84 for (j=(*i).begin(); j.index()_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(*j,v[i.index()],rhs,w);\n-87 }\n-88 }\n-89 template\n-_\b9_\b0 static void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n-91 {\n-92 // iterator types\n-93 typedef typename M::ConstRowIterator rowiterator;\n-94 typedef typename M::ConstColIterator coliterator;\n-95 typedef typename Y::block_type bblock;\n-96\n-97 // local solve at each block and immediate update\n-98 rowiterator rendi=A.beforeBegin();\n-99 for (rowiterator i=A.beforeEnd(); i!=rendi; --i)\n-100 {\n-101 bblock rhs(d[i.index()]);\n-102 coliterator j;\n-103 for (j=(*i).beforeEnd(); j.index()>i.index(); --j)\n-104 (*j).mmv(v[j.index()],rhs);\n-105 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bI_\b-_\b1_\b,_\bd_\bi_\ba_\bg_\b,_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(*j,v[i.index()],rhs,w);\n-106 }\n-107 }\n-108 };\n-109\n-110 // recursion end ...\n-111 template<>\n-_\b1_\b1_\b2 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be<0,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx> {\n-113 template\n-_\b1_\b1_\b4 static void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n-115 {\n-116 A.solve(v,d);\n-117 v *= w;\n-118 }\n-119 template\n-_\b1_\b2_\b0 static void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n-121 {\n-122 A.solve(v,d);\n-123 v *= w;\n-124 }\n-125 };\n-126 template<>\n-_\b1_\b2_\b7 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be<0,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg,_\bn_\bo_\br_\be_\bl_\ba_\bx> {\n-128 template\n-_\b1_\b2_\b9 static void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& /*w*/)\n-130 {\n-131 A.solve(v,d);\n-132 }\n-133 template\n-_\b1_\b3_\b4 static void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& /*w*/)\n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15#include \n+16#include \n+17#include \n+18#include \n+19#include \n+20#include \n+21#include \n+22#include \n+23\n+24#include \n+25#include \n+26#include \n+27#include \n+28#include \n+29#include \n+30\n+31#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+32#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+33#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh> // countNonZeros()\n+34#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n+35\n+36namespace _\bD_\bu_\bn_\be\n+37{\n+38\n+_\b6_\b4 namespace MatrixMarketImpl\n+65 {\n+75 template\n+_\b7_\b6 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be {\n+77 enum {\n+81 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=false\n+_\b8_\b2 };\n+83 };\n+84\n+85 template<>\n+_\b8_\b6 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be\n+87 {\n+88 enum {\n+92 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=true\n+_\b9_\b3 };\n+94\n+_\b9_\b5 static std::string _\bs_\bt_\br()\n+96 {\n+97 return \"integer\";\n+98 }\n+99 };\n+100\n+101 template<>\n+_\b1_\b0_\b2 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be\n+103 {\n+104 enum {\n+108 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=true\n+_\b1_\b0_\b9 };\n+110\n+_\b1_\b1_\b1 static std::string _\bs_\bt_\br()\n+112 {\n+113 return \"real\";\n+114 }\n+115 };\n+116\n+117 template<>\n+_\b1_\b1_\b8 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be\n+119 {\n+120 enum {\n+124 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=true\n+_\b1_\b2_\b5 };\n+126\n+_\b1_\b2_\b7 static std::string _\bs_\bt_\br()\n+128 {\n+129 return \"real\";\n+130 }\n+131 };\n+132\n+133 template<>\n+_\b1_\b3_\b4 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be<_\bs_\bt_\bd::complex >\n 135 {\n-136 A.solve(v,d);\n-137 }\n-138 };\n-139 template<>\n-_\b1_\b4_\b0 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be<0,_\bn_\bo_\bd_\bi_\ba_\bg,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx> {\n-141 template\n-_\b1_\b4_\b2 static void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& /*A*/, X& v, const Y& d, const K& w)\n-143 {\n-144 v = d;\n-145 v *= w;\n+136 enum {\n+140 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=true\n+_\b1_\b4_\b1 };\n+142\n+_\b1_\b4_\b3 static std::string _\bs_\bt_\br()\n+144 {\n+145 return \"complex\";\n 146 }\n-147 template\n-_\b1_\b4_\b8 static void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& /*A*/, X& v, const Y& d, const K& w)\n-149 {\n-150 v = d;\n-151 v *= w;\n-152 }\n-153 };\n-154 template<>\n-_\b1_\b5_\b5 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be<0,_\bn_\bo_\bd_\bi_\ba_\bg,_\bn_\bo_\br_\be_\bl_\ba_\bx> {\n-156 template\n-_\b1_\b5_\b7 static void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& /*A*/, X& v, const Y& d, const K& /*w*/)\n-158 {\n-159 v = d;\n-160 }\n-161 template\n-_\b1_\b6_\b2 static void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& /*A*/, X& v, const Y& d, const K& /*w*/)\n-163 {\n-164 v = d;\n-165 }\n-166 };\n-167\n-168\n-169 // user calls\n-170\n-171 // default block recursion level = 1\n-172\n-174 template\n-_\b1_\b7_\b5 void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n-176 {\n-177 typename X::field_type w=1;\n-178 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-179 }\n-181 template\n-_\b1_\b8_\b2 void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n-183 {\n-184 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-185 }\n-187 template\n-_\b1_\b8_\b8 void _\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n-189 {\n-190 typename X::field_type w=1;\n-191 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-192 }\n-194 template\n-_\b1_\b9_\b5 void _\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n-196 {\n-197 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-198 }\n-199\n-201 template\n-_\b2_\b0_\b2 void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n-203 {\n-204 typename X::field_type w=1;\n-205 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-206 }\n-208 template\n-_\b2_\b0_\b9 void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+147 };\n+148\n+149 template<>\n+_\b1_\b5_\b0 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be<_\bs_\bt_\bd::complex >\n+151 {\n+152 enum {\n+156 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=true\n+_\b1_\b5_\b7 };\n+158\n+_\b1_\b5_\b9 static std::string _\bs_\bt_\br()\n+160 {\n+161 return \"complex\";\n+162 }\n+163 };\n+164\n+173 template\n+_\b1_\b7_\b4 struct _\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br;\n+175\n+176 template\n+_\b1_\b7_\b7 struct _\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n+178 {\n+_\b1_\b7_\b9 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os)\n+180 {\n+181 os<<\"%%MatrixMarket matrix coordinate \";\n+182 os<::\n+field_type>>::str()<<\" general\"<\n+_\b1_\b8_\b7 struct _\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br >\n+188 {\n+_\b1_\b8_\b9 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os)\n+190 {\n+191 os<<\"%%MatrixMarket matrix array \";\n+192 os<::\n+field_type>>::str()<<\" general\"<\n+_\b1_\b9_\b7 struct _\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br >\n+198 {\n+_\b1_\b9_\b9 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os)\n+200 {\n+201 os<<\"%%MatrixMarket matrix array \";\n+202 os<::str()<<\" general\"<\n+_\b2_\b0_\b7 struct _\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx >\n+208 {\n+_\b2_\b0_\b9 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os)\n 210 {\n-211 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-212 }\n-214 template\n-_\b2_\b1_\b5 void _\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n-216 {\n-217 typename X::field_type w=1;\n-218 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-219 }\n-221 template\n-_\b2_\b2_\b2 void _\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n-223 {\n-224 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-225 }\n+211 os<<\"%%MatrixMarket matrix array \";\n+212 os<::str()<<\" general\"<\n+_\b2_\b2_\b5 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br;\n 226\n-227 // general block recursion level >= 0\n-228\n-230 template\n-_\b2_\b3_\b1 void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n-232 {\n-233 typename X::field_type w=1;\n-234 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-235 }\n-237 template\n-_\b2_\b3_\b8 void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n-239 {\n-240 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-241 }\n-243 template\n-_\b2_\b4_\b4 void _\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n-245 {\n-246 typename X::field_type w=1;\n-247 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-248 }\n-250 template\n-_\b2_\b5_\b1 void _\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n-252 {\n-253 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-254 }\n-255\n-257 template\n-_\b2_\b5_\b8 void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, _\bB_\bL_\b<_\bl_\b> bl)\n+227 template\n+_\b2_\b2_\b8 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br >\n+229 {\n+_\b2_\b3_\b0 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> _\bM;\n+231 static_assert(IsNumber::value, \"Only scalar entries are expected\n+here!\");\n+232\n+_\b2_\b3_\b3 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM&)\n+234 {\n+235 os<<\"% ISTL_STRUCT blocked \";\n+236 os<<\"1 1\"<\n+_\b2_\b4_\b1 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br,A> >\n+242 {\n+_\b2_\b4_\b3 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bi_\b>,A> _\bM;\n+244\n+_\b2_\b4_\b5 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM&)\n+246 {\n+247 os<<\"% ISTL_STRUCT blocked \";\n+248 os<\n+_\b2_\b5_\b3 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n+254 {\n+_\b2_\b5_\b5 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b> _\bM;\n+256 static_assert(IsNumber::value, \"Only scalar entries are expected\n+here!\");\n+257\n+_\b2_\b5_\b8 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM&)\n 259 {\n-260 typename X::field_type w=1;\n-261 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+260 os<<\"% ISTL_STRUCT blocked \";\n+261 os<<\"1 1\"<\n-_\b2_\b6_\b5 void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w, _\bB_\bL_\b<_\bl_\b> bl)\n-266 {\n-267 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-268 }\n-270 template\n-_\b2_\b7_\b1 void _\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, _\bB_\bL_\b<_\bl_\b> bl)\n-272 {\n-273 typename X::field_type w=1;\n-274 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-275 }\n-277 template\n-_\b2_\b7_\b8 void _\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w, _\bB_\bL_\b<_\bl_\b> bl)\n-279 {\n-280 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-281 }\n+263 };\n+264\n+265 template\n+_\b2_\b6_\b6 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A> >\n+267 {\n+_\b2_\b6_\b8 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bi_\b,_\bj_\b>,A> _\bM;\n+269\n+_\b2_\b7_\b0 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM&)\n+271 {\n+272 os<<\"% ISTL_STRUCT blocked \";\n+273 os<\n+_\b2_\b7_\b9 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx >\n+280 {\n+_\b2_\b8_\b1 typedef _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bi_\b,_\bj_\b> _\bM;\n 282\n-283\n-284\n-285 //============================================================\n-286 // generic block diagonal solves\n-287 // consider block decomposition A = L + D + U\n-288 // we can apply relaxation or not\n-289 // we can recurse over a fixed number of levels\n-290 //============================================================\n+_\b2_\b8_\b3 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM& m)\n+284 {}\n+285 };\n+286\n+287 template\n+_\b2_\b8_\b8 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br >\n+289 {\n+_\b2_\b9_\b0 typedef FieldVector _\bM;\n 291\n-292 // template meta program for diagonal solves\n-293 template\n-_\b2_\b9_\b4 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be {\n-295 template\n-_\b2_\b9_\b6 static void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n-297 {\n-298 // iterator types\n-299 typedef typename M::ConstRowIterator rowiterator;\n-300 typedef typename M::ConstColIterator coliterator;\n-301\n-302 // local solve at each block and immediate update\n-303 rowiterator rendi=A.beforeBegin();\n-304 for (rowiterator i=A.beforeEnd(); i!=rendi; --i)\n-305 {\n-306 coliterator ii=(*i).find(i.index());\n-307 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\bI_\b-_\b1_\b,_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be(*ii,v[i.index()],d[i.index()],w);\n-308 }\n-309 }\n-310 };\n-311\n-312 // recursion end ...\n-313 template<>\n-_\b3_\b1_\b4 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be<0,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx> {\n-315 template\n-_\b3_\b1_\b6 static void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n-317 {\n-318 A.solve(v,d);\n-319 v *= w;\n-320 }\n-321 };\n-322 template<>\n-_\b3_\b2_\b3 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be<0,_\bn_\bo_\br_\be_\bl_\ba_\bx> {\n-324 template\n-_\b3_\b2_\b5 static void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& /*w*/)\n-326 {\n-327 A.solve(v,d);\n-328 }\n-329 };\n+_\b2_\b9_\b2 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM& m)\n+293 {}\n+294 };\n+295\n+_\b2_\b9_\b6 enum _\bL_\bi_\bn_\be_\bT_\by_\bp_\be { _\bM_\bM_\b__\bH_\bE_\bA_\bD_\bE_\bR, _\bM_\bM_\b__\bI_\bS_\bT_\bL_\bS_\bT_\bR_\bU_\bC_\bT, _\bD_\bA_\bT_\bA };\n+_\b2_\b9_\b7 enum { _\bM_\bM_\b__\bM_\bA_\bX_\b__\bL_\bI_\bN_\bE_\b__\bL_\bE_\bN_\bG_\bT_\bH=1025 };\n+298\n+_\b2_\b9_\b9 enum _\bM_\bM_\b__\bT_\bY_\bP_\bE { _\bc_\bo_\bo_\br_\bd_\bi_\bn_\ba_\bt_\be_\b__\bt_\by_\bp_\be, _\ba_\br_\br_\ba_\by_\b__\bt_\by_\bp_\be, _\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bt_\by_\bp_\be };\n+300\n+_\b3_\b0_\b1 enum _\bM_\bM_\b__\bC_\bT_\bY_\bP_\bE { _\bi_\bn_\bt_\be_\bg_\be_\br_\b__\bt_\by_\bp_\be, _\bd_\bo_\bu_\bb_\bl_\be_\b__\bt_\by_\bp_\be, _\bc_\bo_\bm_\bp_\bl_\be_\bx_\b__\bt_\by_\bp_\be, _\bp_\ba_\bt_\bt_\be_\br_\bn,\n+_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bc_\bt_\by_\bp_\be };\n+302\n+_\b3_\b0_\b3 enum _\bM_\bM_\b__\bS_\bT_\bR_\bU_\bC_\bT_\bU_\bR_\bE { _\bg_\be_\bn_\be_\br_\ba_\bl, _\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc, _\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc, _\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn,\n+_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be };\n+304\n+_\b3_\b0_\b5 struct _\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n+306 {\n+_\b3_\b0_\b7 _\bM_\bM_\bH_\be_\ba_\bd_\be_\br()\n+308 : _\bt_\by_\bp_\be(_\bc_\bo_\bo_\br_\bd_\bi_\bn_\ba_\bt_\be_\b__\bt_\by_\bp_\be), _\bc_\bt_\by_\bp_\be(_\bd_\bo_\bu_\bb_\bl_\be_\b__\bt_\by_\bp_\be), _\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be(_\bg_\be_\bn_\be_\br_\ba_\bl)\n+309 {}\n+_\b3_\b1_\b0 _\bM_\bM_\b__\bT_\bY_\bP_\bE _\bt_\by_\bp_\be;\n+_\b3_\b1_\b1 _\bM_\bM_\b__\bC_\bT_\bY_\bP_\bE _\bc_\bt_\by_\bp_\be;\n+_\b3_\b1_\b2 _\bM_\bM_\b__\bS_\bT_\bR_\bU_\bC_\bT_\bU_\bR_\bE _\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be;\n+313 };\n+314\n+_\b3_\b1_\b5 inline bool _\bl_\bi_\bn_\be_\bF_\be_\be_\bd(std::istream& file)\n+316 {\n+317 char c;\n+318 if(!file.eof())\n+319 c=file.peek();\n+320 else\n+321 return false;\n+322 // ignore whitespace\n+323 while(c==' ')\n+324 {\n+325 file.get();\n+326 if(file.eof())\n+327 return false;\n+328 c=file.peek();\n+329 }\n 330\n-331 // user calls\n-332\n-333 // default block recursion level = 1\n-334\n-336 template\n-_\b3_\b3_\b7 void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n-338 {\n-339 typename X::field_type w=1;\n-340 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-341 }\n-343 template\n-_\b3_\b4_\b4 void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+331 if(c=='\\n') {\n+332 /* eat the line feed */\n+333 file.get();\n+334 return true;\n+335 }\n+336 return false;\n+337 }\n+338\n+_\b3_\b3_\b9 inline void _\bs_\bk_\bi_\bp_\bC_\bo_\bm_\bm_\be_\bn_\bt_\bs(std::istream& file)\n+340 {\n+341 _\bl_\bi_\bn_\be_\bF_\be_\be_\bd(file);\n+342 char c=file.peek();\n+343 // ignore comment lines\n+344 while(c=='%')\n 345 {\n-346 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-347 }\n-348\n-349 // general block recursion level >= 0\n-350\n-352 template\n-_\b3_\b5_\b3 void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+346 /* discard the rest of the line */\n+347 file.ignore(std::numeric_limits::max(),'\\n');\n+348 c=file.peek();\n+349 }\n+350 }\n+351\n+352\n+_\b3_\b5_\b3 inline bool _\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bB_\ba_\bn_\bn_\be_\br(std::istream& file, _\bM_\bM_\bH_\be_\ba_\bd_\be_\br& mmHeader)\n 354 {\n-355 typename X::field_type w=1;\n-356 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-357 }\n-359 template\n-_\b3_\b6_\b0 void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n-361 {\n-362 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n-363 }\n-364\n-365\n-366 //============================================================\n-367 // generic steps of iteration methods\n-368 // Jacobi, Gauss-Seidel, SOR, SSOR\n-369 // work directly on Ax=b, ie solve M(x^{i+1}-x^i) = w (b-Ax^i)\n-370 // we can recurse over a fixed number of levels\n-371 //============================================================\n-372\n-373 // template meta program for iterative solver steps\n-374 template\n-_\b3_\b7_\b5 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs {\n+355 std::string buffer;\n+356 char c;\n+357 file >> buffer;\n+358 c=buffer[0];\n+359 mmHeader=_\bM_\bM_\bH_\be_\ba_\bd_\be_\br();\n+360 if(c!='%')\n+361 return false;\n+362 dverb<::max(),'\\n');\n+367 return false;\n+368 }\n+369\n+370 if(_\bl_\bi_\bn_\be_\bF_\be_\be_\bd(file))\n+371 /* premature end of line */\n+372 return false;\n+373\n+374 /* read the matrix_type */\n+375 file >> buffer;\n 376\n-377 template\n-_\b3_\b7_\b8 static void _\bd_\bb_\bg_\bs (const M& A, X& x, const Y& b, const K& w)\n-379 {\n-380 typedef typename M::ConstRowIterator rowiterator;\n-381 typedef typename M::ConstColIterator coliterator;\n-382 typedef typename Y::block_type bblock;\n-383 bblock rhs;\n-384\n-385 X xold(x); // remember old x\n-386\n-387 rowiterator endi=A.end();\n-388 for (rowiterator i=A.begin(); i!=endi; ++i)\n-389 {\n-390 rhs = b[i.index()]; // rhs = b_i\n-391 coliterator endj=(*i).end();\n-392 coliterator j=(*i).begin();\n-393 if constexpr (IsNumber())\n-394 {\n-395 for (; j.index() i\n-408 (*j).mmv(x[j.index()],rhs); // rhs -= sum_{j>i} a_ij * xold_j\n-409 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bd_\bb_\bg_\bs(*diag,x[i.index\n-()],rhs,w); // if I==1: xnew_i = rhs/a_ii\n-410 }\n-411 }\n-412 // next two lines: xnew_i = w / a_ii * (b_i - sum_{j=i} a_ij * xold_j) + (1-w)*xold;\n-413 x *= w;\n-414 x.axpy(K(1)-w,xold);\n-415 }\n-416\n-417 template\n-_\b4_\b1_\b8 static void _\bb_\bs_\bo_\br_\bf (const M& A, X& x, const Y& b, const K& w)\n-419 {\n-420 typedef typename M::ConstRowIterator rowiterator;\n-421 typedef typename M::ConstColIterator coliterator;\n-422 typedef typename Y::block_type bblock;\n-423 typedef typename X::block_type xblock;\n-424 bblock rhs;\n-425 xblock v;\n-426\n-427 // Initialize nested data structure if there are entries\n-428 if(A.begin()!=A.end())\n-429 v=x[0];\n-430\n-431 rowiterator endi=A.end();\n-432 for (rowiterator i=A.begin(); i!=endi; ++i)\n-433 {\n-434 rhs = b[i.index()]; // rhs = b_i\n-435 coliterator endj=(*i).end(); // iterate over a_ij with j < i\n-436 coliterator j=(*i).begin();\n-437 if constexpr (IsNumber())\n-438 {\n-439 for (; j.index()=i} a_ij * xold_j)\n-446 }\n-447 else\n+377 if(buffer != \"matrix\")\n+378 {\n+379 /* discard the rest of the line */\n+380 file.ignore(std::numeric_limits::max(),'\\n');\n+381 return false;\n+382 }\n+383\n+384 if(_\bl_\bi_\bn_\be_\bF_\be_\be_\bd(file))\n+385 /* premature end of line */\n+386 return false;\n+387\n+388 /* The type of the matrix */\n+389 file >> buffer;\n+390\n+391 if(buffer.empty())\n+392 return false;\n+393\n+394 std::transform(buffer.begin(), buffer.end(), buffer.begin(),\n+395 ::tolower);\n+396\n+397 switch(buffer[0])\n+398 {\n+399 case 'a' :\n+400 /* sanity check */\n+401 if(buffer != \"array\")\n+402 {\n+403 file.ignore(std::numeric_limits::max(),'\\n');\n+404 return false;\n+405 }\n+406 mmHeader._\bt_\by_\bp_\be=_\ba_\br_\br_\ba_\by_\b__\bt_\by_\bp_\be;\n+407 break;\n+408 case 'c' :\n+409 /* sanity check */\n+410 if(buffer != \"coordinate\")\n+411 {\n+412 file.ignore(std::numeric_limits::max(),'\\n');\n+413 return false;\n+414 }\n+415 mmHeader._\bt_\by_\bp_\be=_\bc_\bo_\bo_\br_\bd_\bi_\bn_\ba_\bt_\be_\b__\bt_\by_\bp_\be;\n+416 break;\n+417 default :\n+418 file.ignore(std::numeric_limits::max(),'\\n');\n+419 return false;\n+420 }\n+421\n+422 if(_\bl_\bi_\bn_\be_\bF_\be_\be_\bd(file))\n+423 /* premature end of line */\n+424 return false;\n+425\n+426 /* The numeric type used. */\n+427 file >> buffer;\n+428\n+429 if(buffer.empty())\n+430 return false;\n+431\n+432 std::transform(buffer.begin(), buffer.end(), buffer.begin(),\n+433 ::tolower);\n+434 switch(buffer[0])\n+435 {\n+436 case 'i' :\n+437 /* sanity check */\n+438 if(buffer != \"integer\")\n+439 {\n+440 file.ignore(std::numeric_limits::max(),'\\n');\n+441 return false;\n+442 }\n+443 mmHeader._\bc_\bt_\by_\bp_\be=_\bi_\bn_\bt_\be_\bg_\be_\br_\b__\bt_\by_\bp_\be;\n+444 break;\n+445 case 'r' :\n+446 /* sanity check */\n+447 if(buffer != \"real\")\n 448 {\n-449 for (; j.index()_\b:_\b:_\bb_\bs_\bo_\br_\bf(*diag,v,rhs,w); // if\n-blocksize I==1: v = rhs/a_ii\n-455 x[i.index()].axpy(w,v); // x_i = w / a_ii * (b_i - sum_{j=i} a_ij * xold_j)\n-456 }\n-457 }\n-458 }\n-459\n-460 template\n-_\b4_\b6_\b1 static void _\bb_\bs_\bo_\br_\bb (const M& A, X& x, const Y& b, const K& w)\n-462 {\n-463 typedef typename M::ConstRowIterator rowiterator;\n-464 typedef typename M::ConstColIterator coliterator;\n-465 typedef typename Y::block_type bblock;\n-466 typedef typename X::block_type xblock;\n-467 bblock rhs;\n-468 xblock v;\n-469\n-470 // Initialize nested data structure if there are entries\n-471 if(A.begin()!=A.end())\n-472 v=x[0];\n-473\n-474 rowiterator endi=A.beforeBegin();\n-475 for (rowiterator i=A.beforeEnd(); i!=endi; --i)\n-476 {\n-477 rhs = b[i.index()];\n-478 coliterator endj=(*i).end();\n-479 coliterator j=(*i).begin();\n-480 if constexpr (IsNumber())\n-481 {\n-482 for (; j.index()mmv(x[j.index()],rhs);\n-494 coliterator diag=j;\n-495 for (; j!=endj; ++j)\n-496 j->mmv(x[j.index()],rhs);\n-497 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(*diag,v,rhs,w);\n-498 x[i.index()].axpy(w,v);\n-499 }\n-500 }\n+449 file.ignore(std::numeric_limits::max(),'\\n');\n+450 return false;\n+451 }\n+452 mmHeader._\bc_\bt_\by_\bp_\be=_\bd_\bo_\bu_\bb_\bl_\be_\b__\bt_\by_\bp_\be;\n+453 break;\n+454 case 'c' :\n+455 /* sanity check */\n+456 if(buffer != \"complex\")\n+457 {\n+458 file.ignore(std::numeric_limits::max(),'\\n');\n+459 return false;\n+460 }\n+461 mmHeader._\bc_\bt_\by_\bp_\be=_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b__\bt_\by_\bp_\be;\n+462 break;\n+463 case 'p' :\n+464 /* sanity check */\n+465 if(buffer != \"pattern\")\n+466 {\n+467 file.ignore(std::numeric_limits::max(),'\\n');\n+468 return false;\n+469 }\n+470 mmHeader._\bc_\bt_\by_\bp_\be=_\bp_\ba_\bt_\bt_\be_\br_\bn;\n+471 break;\n+472 default :\n+473 file.ignore(std::numeric_limits::max(),'\\n');\n+474 return false;\n+475 }\n+476\n+477 if(_\bl_\bi_\bn_\be_\bF_\be_\be_\bd(file))\n+478 return false;\n+479\n+480 file >> buffer;\n+481\n+482 std::transform(buffer.begin(), buffer.end(), buffer.begin(),\n+483 ::tolower);\n+484 switch(buffer[0])\n+485 {\n+486 case 'g' :\n+487 /* sanity check */\n+488 if(buffer != \"general\")\n+489 {\n+490 file.ignore(std::numeric_limits::max(),'\\n');\n+491 return false;\n+492 }\n+493 mmHeader._\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be=_\bg_\be_\bn_\be_\br_\ba_\bl;\n+494 break;\n+495 case 'h' :\n+496 /* sanity check */\n+497 if(buffer != \"hermitian\")\n+498 {\n+499 file.ignore(std::numeric_limits::max(),'\\n');\n+500 return false;\n 501 }\n-502\n-503 template\n-_\b5_\b0_\b4 static void _\bd_\bb_\bj_\ba_\bc (const M& A, X& x, const Y& b, const K& w)\n-505 {\n-506 typedef typename M::ConstRowIterator rowiterator;\n-507 typedef typename M::ConstColIterator coliterator;\n-508 typedef typename Y::block_type bblock;\n-509 bblock rhs;\n-510\n-511 X v(x); // allocate with same size\n-512\n-513 rowiterator endi=A.end();\n-514 for (rowiterator i=A.begin(); i!=endi; ++i)\n+502 mmHeader._\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be=_\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn;\n+503 break;\n+504 case 's' :\n+505 if(buffer.size()==1) {\n+506 file.ignore(std::numeric_limits::max(),'\\n');\n+507 return false;\n+508 }\n+509\n+510 switch(buffer[1])\n+511 {\n+512 case 'y' :\n+513 /* sanity check */\n+514 if(buffer != \"symmetric\")\n 515 {\n-516 rhs = b[i.index()];\n-517 coliterator endj=(*i).end();\n-518 coliterator j=(*i).begin();\n-519 if constexpr (IsNumber())\n-520 {\n-521 for (; j.index()::max(),'\\n');\n+517 return false;\n+518 }\n+519 mmHeader._\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be=_\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc;\n+520 break;\n+521 case 'k' :\n+522 /* sanity check */\n+523 if(buffer != \"skew-symmetric\")\n+524 {\n+525 file.ignore(std::numeric_limits::max(),'\\n');\n+526 return false;\n 527 }\n-528 else\n-529 {\n-530 for (; j.index()mmv(x[j.index()],rhs);\n-532 coliterator diag=j;\n-533 for (; j!=endj; ++j)\n-534 j->mmv(x[j.index()],rhs);\n-535 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(*diag,v[i.index\n-()],rhs,w);\n-536 }\n-537 }\n-538 x.axpy(w,v);\n-539 }\n-540 };\n-541 // end of recursion\n-542 template\n-_\b5_\b4_\b3 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs<0,M> {\n-544 template\n-_\b5_\b4_\b5 static void _\bd_\bb_\bg_\bs (const M& A, X& x, const Y& b, const K& /*w*/)\n-546 {\n-547 A.solve(x,b);\n-548 }\n-549 template\n-_\b5_\b5_\b0 static void _\bb_\bs_\bo_\br_\bf (const M& A, X& x, const Y& b, const K& /*w*/)\n-551 {\n-552 A.solve(x,b);\n-553 }\n-554 template\n-_\b5_\b5_\b5 static void _\bb_\bs_\bo_\br_\bb (const M& A, X& x, const Y& b, const K& /*w*/)\n-556 {\n-557 A.solve(x,b);\n-558 }\n-559 template\n-_\b5_\b6_\b0 static void _\bd_\bb_\bj_\ba_\bc (const M& A, X& x, const Y& b, const K& /*w*/)\n-561 {\n-562 A.solve(x,b);\n-563 }\n-564 };\n-565\n-566 template\n-_\b5_\b6_\b7 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs>\n-{\n-568 template<\n-569 typename... MultiTypeVectorArgs,\n-570 class K>\n-_\b5_\b7_\b1 static void _\bd_\bb_\bg_\bs (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>&\n-A,\n-572 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& x,\n-573 const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& b,\n-574 const K& w)\n-575 {\n-576 static const int N = _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>_\b:_\b:_\bN();\n-577 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\b0_\b,_\bN_\b>_\b:_\b:_\bd_\bb_\bg_\bs(A, x, b, w);\n-578 }\n-579\n-580 template<\n-581 typename... MultiTypeVectorArgs,\n-582 class K>\n-_\b5_\b8_\b3 static void _\bb_\bs_\bo_\br_\bf (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>&\n-A,\n-584 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& x,\n-585 const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& b,\n-586 const K& w)\n-587 {\n-588 static const int N = _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>_\b:_\b:_\bN();\n-589 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\b0_\b,_\bN_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(A, x, b, w);\n-590 }\n-591\n-592 template<\n-593 typename... MultiTypeVectorArgs,\n-594 class K>\n-_\b5_\b9_\b5 static void _\bb_\bs_\bo_\br_\bb (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>&\n-A,\n-596 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& x,\n-597 const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& b,\n-598 const K& w)\n-599 {\n-600 static const int N = _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>_\b:_\b:_\bN();\n-601 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bN_\b-_\b1_\b,_\bN_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(A, x, b, w);\n-602 }\n-603\n-604 template<\n-605 typename... MultiTypeVectorArgs,\n-606 class K\n-607 >\n-_\b6_\b0_\b8 static void _\bd_\bb_\bj_\ba_\bc (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>&\n-A,\n-609 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& x,\n-610 const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& b,\n-611 const K& w)\n-612 {\n-613 static const int N = _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>_\b:_\b:_\bN();\n-614 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\b0_\b,_\bN_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(A, x, b, w);\n-615 }\n-616 };\n-617\n-618 // user calls\n-619\n-621 template\n-_\b6_\b2_\b2 void _\bd_\bb_\bg_\bs (const M& A, X& x, const Y& b, const K& w)\n-623 {\n-624 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b1_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bg_\bs(A,x,b,w);\n-625 }\n-627 template\n-_\b6_\b2_\b8 void _\bd_\bb_\bg_\bs (const M& A, X& x, const Y& b, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n-629 {\n-630 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bl_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bg_\bs(A,x,b,w);\n-631 }\n-633 template\n-_\b6_\b3_\b4 void _\bb_\bs_\bo_\br_\bf (const M& A, X& x, const Y& b, const K& w)\n-635 {\n-636 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b1_\b,_\bM_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(A,x,b,w);\n-637 }\n-639 template\n-_\b6_\b4_\b0 void _\bb_\bs_\bo_\br_\bf (const M& A, X& x, const Y& b, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n-641 {\n-642 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bl_\b,_\bM_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(A,x,b,w);\n-643 }\n-645 template\n-_\b6_\b4_\b6 void _\bb_\bs_\bo_\br_\bb (const M& A, X& x, const Y& b, const K& w)\n-647 {\n-648 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b1_\b,_\bM_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(A,x,b,w);\n-649 }\n-651 template\n-_\b6_\b5_\b2 void _\bb_\bs_\bo_\br_\bb (const M& A, X& x, const Y& b, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n-653 {\n-654 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bl_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bs_\bt_\bd_\b:_\b:_\br_\be_\bm_\bo_\bv_\be_\b__\bc_\bv_\b<_\bM_\b>_\b:_\b:_\bt_\by_\bp_\be>_\b:_\b:_\bb_\bs_\bo_\br_\bb(A,x,b,w);\n-655 }\n-657 template\n-_\b6_\b5_\b8 void _\bd_\bb_\bj_\ba_\bc (const M& A, X& x, const Y& b, const K& w)\n-659 {\n-660 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b1_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(A,x,b,w);\n-661 }\n-663 template\n-_\b6_\b6_\b4 void _\bd_\bb_\bj_\ba_\bc (const M& A, X& x, const Y& b, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n-665 {\n-666 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bl_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(A,x,b,w);\n+528 mmHeader._\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be=_\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc;\n+529 break;\n+530 default :\n+531 file.ignore(std::numeric_limits::max(),'\\n');\n+532 return false;\n+533 }\n+534 break;\n+535 default :\n+536 file.ignore(std::numeric_limits::max(),'\\n');\n+537 return false;\n+538 }\n+539 file.ignore(std::numeric_limits::max(),'\\n');\n+540 c=file.peek();\n+541 return true;\n+542\n+543 }\n+544\n+545 template\n+546 std::tuple\n+_\b5_\b4_\b7 _\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bN_\bN_\bZ(std::size_t rows, std::size_t cols, std::size_t entries, const\n+_\bM_\bM_\bH_\be_\ba_\bd_\be_\br& header)\n+548 {\n+549 std::size_t blockrows=rows/brows;\n+550 std::size_t blockcols=cols/bcols;\n+551 std::size_t blocksize=brows*bcols;\n+552 std::size_t blockentries=0;\n+553\n+554 switch(header._\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be)\n+555 {\n+556 case _\bg_\be_\bn_\be_\br_\ba_\bl :\n+557 blockentries = entries/blocksize; break;\n+558 case _\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc :\n+559 blockentries = 2*entries/blocksize; break;\n+560 case _\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc :\n+561 blockentries = (2*entries-rows)/blocksize; break;\n+562 case _\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn :\n+563 blockentries = (2*entries-rows)/blocksize; break;\n+564 default :\n+565 throw Dune::NotImplemented();\n+566 }\n+567 return std::make_tuple(blockrows, blockcols, blockentries);\n+568 }\n+569\n+570 /*\n+571 * @brief Storage class for the column index and the numeric value.\n+572 *\n+573 * \\tparam T Either a NumericWrapper of the numeric type or PatternDummy\n+574 * for MatrixMarket pattern case.\n+575 */\n+576 template\n+_\b5_\b7_\b7 struct _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba : public T\n+578 {\n+_\b5_\b7_\b9 std::size_t _\bi_\bn_\bd_\be_\bx = {};\n+580 };\n+581\n+582\n+593 template\n+_\b5_\b9_\b4 struct _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br\n+595 {\n+_\b5_\b9_\b6 T _\bn_\bu_\bm_\bb_\be_\br = {};\n+_\b5_\b9_\b7 operator T&()\n+598 {\n+599 return _\bn_\bu_\bm_\bb_\be_\br;\n+600 }\n+601 };\n+602\n+_\b6_\b0_\b6 struct _\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by\n+607 {};\n+608\n+609 template<>\n+_\b6_\b1_\b0 struct _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br<_\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by>\n+611 {};\n+612\n+613 template\n+_\b6_\b1_\b4 std::istream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>(std::istream& is, _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b<_\bT_\b>& num)\n+615 {\n+616 return is>>num._\bn_\bu_\bm_\bb_\be_\br;\n+617 }\n+618\n+_\b6_\b1_\b9 inline std::istream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>(std::istream& is, [[maybe_unused]]\n+_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b<_\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by_\b>& num)\n+620 {\n+621 return is;\n+622 }\n+623\n+629 template\n+_\b6_\b3_\b0 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<(const _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bT_\b>& i1, const _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bT_\b>& i2)\n+631 {\n+632 return i1._\bi_\bn_\bd_\be_\bx\n+_\b6_\b4_\b1 std::istream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>(std::istream& is, _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bT_\b>& data)\n+642 {\n+643 is>>data._\bi_\bn_\bd_\be_\bx;\n+644 /* MatrixMarket indices are one based. Decrement for C++ */\n+645 --data._\bi_\bn_\bd_\be_\bx;\n+646 return is>>data.number;\n+647 }\n+648\n+654 template\n+_\b6_\b5_\b5 std::istream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>(std::istream& is, _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba<_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br>>& data)\n+656 {\n+657 is>>data._\bi_\bn_\bd_\be_\bx;\n+658 /* MatrixMarket indices are one based. Decrement for C++ */\n+659 --data.index;\n+660 // real and imaginary part needs to be read separately as\n+661 // complex numbers are not provided in pair form. (x,y)\n+662 _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b<_\bT_\b> real, imag;\n+663 is>>real;\n+664 is>>imag;\n+665 data._\bn_\bu_\bm_\bb_\be_\br = {real._\bn_\bu_\bm_\bb_\be_\br, imag._\bn_\bu_\bm_\bb_\be_\br};\n+666 return is;\n 667 }\n 668\n-669\n-672} // end namespace\n-673\n-674#endif\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n-static void dbjac(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:568\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bg_\bs\n-static void dbgs(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:484\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-static void bsorb(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:540\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-static constexpr size_type N()\n-Return the number of matrix rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:64\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-static void bsorf(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:513\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n-void bltsolve(const M &A, X &v, const Y &d)\n-block lower triangular solve\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:175\n-_\bD_\bu_\bn_\be_\b:_\b:_\bW_\bi_\bt_\bh_\bD_\bi_\ba_\bg_\bT_\by_\bp_\be\n-WithDiagType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:49\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-void bsorb(const M &A, X &x, const Y &b, const K &w)\n-SSOR step.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:646\n-_\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n-void ubltsolve(const M &A, X &v, const Y &d)\n-unit block lower triangular solve\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:188\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n-void dbjac(const M &A, X &x, const Y &b, const K &w)\n-Jacobi step.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:658\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bg_\bs\n-void dbgs(const M &A, X &x, const Y &b, const K &w)\n-GS step.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:622\n-_\bD_\bu_\bn_\be_\b:_\b:_\bW_\bi_\bt_\bh_\bR_\be_\bl_\ba_\bx_\bT_\by_\bp_\be\n-WithRelaxType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:54\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be\n-void bdsolve(const M &A, X &v, const Y &d)\n-block diagonal solve, no relaxation\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:337\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n-void butsolve(const M &A, X &v, const Y &d)\n-block upper triangular solve\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:202\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-void bsorf(const M &A, X &x, const Y &b, const K &w)\n-SOR step.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:634\n-_\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n-void ubutsolve(const M &A, X &v, const Y &d)\n-unit block upper triangular solve\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:215\n-_\bD_\bu_\bn_\be_\b:_\b:_\bn_\bo_\bd_\bi_\ba_\bg\n-@ nodiag\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg\n-@ withdiag\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:50\n-_\bD_\bu_\bn_\be_\b:_\b:_\bn_\bo_\br_\be_\bl_\ba_\bx\n-@ norelax\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx\n-@ withrelax\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:55\n+675 template\n+_\b6_\b7_\b6 struct _\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br\n+677 {\n+683 template\n+_\b6_\b8_\b4 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const std::vector > >& rows,\n+685 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& matrix)\n+686 {\n+687 static_assert(IsNumber::value && brows==1 && bcols==1, \"Only scalar\n+entries are expected here!\");\n+688 for (auto iter=matrix._\bb_\be_\bg_\bi_\bn(); iter!= matrix._\be_\bn_\bd(); ++iter)\n+689 {\n+690 auto brow=iter.index();\n+691 for (auto siter=rows[brow].begin(); siter != rows[brow].end(); ++siter)\n+692 (*iter)[siter->index] = siter->number;\n+693 }\n+694 }\n+695\n+701 template\n+_\b7_\b0_\b2 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const std::vector > >& rows,\n+703 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bb_\br_\bo_\bw_\bs_\b,_\bb_\bc_\bo_\bl_\bs_\b> >& matrix)\n+704 {\n+705 for (auto iter=matrix.begin(); iter!= matrix.end(); ++iter)\n+706 {\n+707 for (auto brow=iter.index()*brows,\n+708 browend=iter.index()*brows+brows;\n+709 browindex/bcols][brow%brows][siter->index%bcols]=siter->number;\n+714 }\n+715 }\n+716 }\n+717 };\n+718\n+719 template\n+_\b7_\b2_\b0 struct _\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br<_\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by,brows,bcols>\n+721 {\n+722 template\n+_\b7_\b2_\b3 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const std::vector > >&\n+rows,\n+724 M& matrix)\n+725 {}\n+726 };\n+727\n+_\b7_\b2_\b8 template struct _\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx : std::false_type {};\n+_\b7_\b2_\b9 template struct _\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx<_\bs_\bt_\bd::complex> : std::true_type {};\n+730\n+731 // wrapper for std::conj. Returns T if T is not complex.\n+732 template\n+_\b7_\b3_\b3 std::enable_if_t::value, T> _\bc_\bo_\bn_\bj(const T& r){\n+734 return r;\n+735 }\n+736\n+737 template\n+_\b7_\b3_\b8 std::enable_if_t::value, T> _\bc_\bo_\bn_\bj(const T& r){\n+739 return std::conj(r);\n+740 }\n+741\n+742 template\n+_\b7_\b4_\b3 struct _\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs\n+744 {};\n+745\n+746 template\n+_\b7_\b4_\b7 struct _\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n+748 {\n+749 enum {\n+_\b7_\b5_\b0 rows = 1,\n+751 cols = 1\n+_\b7_\b5_\b2 };\n+753 };\n+754\n+755 template\n+_\b7_\b5_\b6 struct _\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A> >\n+757 {\n+758 enum {\n+_\b7_\b5_\b9 rows = i,\n+760 cols = j\n+_\b7_\b6_\b1 };\n+762 };\n+763\n+764 template\n+_\b7_\b6_\b5 void _\br_\be_\ba_\bd_\bS_\bp_\ba_\br_\bs_\be_\bE_\bn_\bt_\br_\bi_\be_\bs(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>& matrix,\n+766 std::istream& file, std::size_t entries,\n+767 const _\bM_\bM_\bH_\be_\ba_\bd_\be_\br& mmHeader, const D&)\n+768 {\n+769 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n+770\n+771 // Number of rows and columns of T, if it is a matrix (1x1 otherwise)\n+772 constexpr int brows = _\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bs;\n+773 constexpr int bcols = _\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bs;\n+774\n+775 // First path\n+776 // store entries together with column index in a separate\n+777 // data structure\n+778 std::vector > > rows(matrix._\bN()*brows);\n+779\n+780 auto readloop = [&] (auto symmetryFixup) {\n+781 for(std::size_t i = 0; i < entries; ++i) {\n+782 std::size_t row;\n+783 _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bD_\b> data;\n+784 _\bs_\bk_\bi_\bp_\bC_\bo_\bm_\bm_\be_\bn_\bt_\bs(file);\n+785 file>>row;\n+786 --row; // Index was 1 based.\n+787 assert(row/bcols>data;\n+789 assert(data._\bi_\bn_\bd_\be_\bx/bcols data_sym(data);\n+804 data_sym._\bi_\bn_\bd_\be_\bx = row;\n+805 rows[data.index].insert(data_sym);\n+806 });\n+807 break;\n+808 case _\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc :\n+809 readloop([&](auto row, auto data) {\n+810 _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bD_\b> data_sym;\n+811 data_sym.number = -data.number;\n+812 data_sym._\bi_\bn_\bd_\be_\bx = row;\n+813 rows[data.index].insert(data_sym);\n+814 });\n+815 break;\n+816 case _\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn :\n+817 readloop([&](auto row, auto data) {\n+818 _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bD_\b> data_sym;\n+819 data_sym.number = _\bc_\bo_\bn_\bj(data.number);\n+820 data_sym._\bi_\bn_\bd_\be_\bx = row;\n+821 rows[data.index].insert(data_sym);\n+822 });\n+823 break;\n+824 default:\n+825 DUNE_THROW(Dune::NotImplemented,\n+826 \"Only general, symmetric, skew-symmetric and hermitian is supported right\n+now!\");\n+827 }\n+828\n+829 // Setup the matrix sparsity pattern\n+830 int nnz=0;\n+831 for(typename Matrix::CreateIterator iter=matrix._\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn();\n+832 iter!= matrix._\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd(); ++iter)\n+833 {\n+834 for(std::size_t brow=iter.index()*brows, browend=iter.index()*brows+brows;\n+835 brow >::const_iterator Siter;\n+838 for(Siter siter=rows[brow].begin(), send=rows[brow].end();\n+839 siter != send; ++siter, ++nnz)\n+840 iter.insert(siter->index/bcols);\n+841 }\n+842 }\n+843\n+844 //Set the matrix values\n+845 matrix=0;\n+846\n+847 _\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b<_\bD_\b,_\bb_\br_\bo_\bw_\bs_\b,_\bb_\bc_\bo_\bl_\bs_\b> Setter;\n+848\n+849 Setter(rows, matrix);\n+850 }\n+851\n+_\b8_\b5_\b2 inline std::tuple _\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be(const std::\n+string& filename) {\n+853 std::size_t lastdot = filename.find_last_of(\".\");\n+854 if(lastdot == std::string::npos)\n+855 return std::make_tuple(filename, \"\");\n+856 else {\n+857 std::string potentialFileExtension = filename.substr(lastdot);\n+858 if (potentialFileExtension == \".mm\" || potentialFileExtension == \".mtx\")\n+859 return std::make_tuple(filename.substr(0, lastdot),\n+potentialFileExtension);\n+860 else\n+861 return std::make_tuple(filename, \"\");\n+862 }\n+863 }\n+864\n+865 } // end namespace MatrixMarketImpl\n+866\n+_\b8_\b6_\b7 class _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br : public Dune::Exception\n+868 {};\n+869\n+870\n+_\b8_\b7_\b1 inline void _\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bh_\be_\ba_\bd_\be_\br(std::size_t& rows, std::size_t& cols,\n+872 _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br& header, std::istream& istr,\n+873 bool isVector)\n+874 {\n+875 using namespace MatrixMarketImpl;\n+876\n+877 if(!readMatrixMarketBanner(istr, header)) {\n+878 std::cerr << \"First line was not a correct Matrix Market banner. Using\n+default:\\n\"\n+879 << \"%%MatrixMarket matrix coordinate real general\"<> rows;\n+893\n+894 if(lineFeed(istr))\n+895 throw _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br();\n+896 istr >> cols;\n+897 }\n+898\n+899 template\n+_\b9_\b0_\b0 void _\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& vector,\n+901 std::size_t size,\n+902 std::istream& istr,\n+903 size_t lane)\n+904 {\n+905 for (int i=0; size>0; ++i, --size)\n+906 istr>>Simd::lane(lane,vector[i]);\n+907 }\n+908\n+909 template\n+_\b9_\b1_\b0 void _\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br,A>& vector,\n+911 std::size_t size,\n+912 std::istream& istr,\n+913 size_t lane)\n+914 {\n+915 for(int i=0; size>0; ++i, --size) {\n+916 Simd::Scalar val;\n+917 istr>>val;\n+918 Simd::lane(lane, vector[i/entries][i%entries])=val;\n+919 }\n+920 }\n+921\n+922\n+929 template\n+_\b9_\b3_\b0 void _\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& vector,\n+931 std::istream& istr)\n+932 {\n+933 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be field_type;\n+934 using namespace MatrixMarketImpl;\n+935\n+936 MMHeader header;\n+937 std::size_t rows, cols;\n+938 _\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bh_\be_\ba_\bd_\be_\br(rows,cols,header,istr, true);\n+939 if(cols!=Simd::lanes()) {\n+940 if(Simd::lanes() == 1)\n+941 DUNE_THROW(_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br, \"cols!=1, therefore this is no\n+vector!\");\n+942 else\n+943 DUNE_THROW(_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br, \"cols does not match the number of\n+lanes in the field_type!\");\n+944 }\n+945\n+946 if(header.type!=array_type)\n+947 DUNE_THROW(_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br, \"Vectors have to be stored in array\n+format!\");\n+948\n+949\n+950 if constexpr (Dune::IsNumber())\n+951 vector._\br_\be_\bs_\bi_\bz_\be(rows);\n+952 else\n+953 {\n+954 T dummy;\n+955 auto blocksize = dummy.size();\n+956 std::size_t size=rows/blocksize;\n+957 if(size*blocksize!=rows)\n+958 DUNE_THROW(_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br, \"Block size of vector is not\n+correct!\");\n+959\n+960 vector._\br_\be_\bs_\bi_\bz_\be(size);\n+961 }\n+962\n+963 istr.ignore(std::numeric_limits::max(),'\\n');\n+964 for(size_t l=0;l();++l){\n+965 _\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs(vector, rows, istr, l);\n+966 }\n+967 }\n+968\n+975 template\n+_\b9_\b7_\b6 void _\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>& matrix,\n+977 std::istream& istr)\n+978 {\n+979 using namespace MatrixMarketImpl;\n+980 using _\bM_\ba_\bt_\br_\bi_\bx = _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>;\n+981\n+982 MMHeader header;\n+983 if(!readMatrixMarketBanner(istr, header)) {\n+984 std::cerr << \"First line was not a correct Matrix Market banner. Using\n+default:\\n\"\n+985 << \"%%MatrixMarket matrix coordinate real general\"<> rows;\n+998\n+999 if(lineFeed(istr))\n+1000 throw _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br();\n+1001 istr >> cols;\n+1002\n+1003 if(lineFeed(istr))\n+1004 throw _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br();\n+1005\n+1006 istr >>entries;\n+1007\n+1008 std::size_t nnz, blockrows, blockcols;\n+1009\n+1010 // Number of rows and columns of T, if it is a matrix (1x1 otherwise)\n+1011 constexpr int brows = mm_multipliers::rows;\n+1012 constexpr int bcols = mm_multipliers::cols;\n+1013\n+1014 std::tie(blockrows, blockcols, nnz) = calculateNNZ(rows,\n+cols, entries, header);\n+1015\n+1016 istr.ignore(std::numeric_limits::max(),'\\n');\n+1017\n+1018\n+1019 matrix._\bs_\be_\bt_\bS_\bi_\bz_\be(blockrows, blockcols, nnz);\n+1020 matrix._\bs_\be_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\br_\bo_\bw_\b__\bw_\bi_\bs_\be);\n+1021\n+1022 if(header.type==array_type)\n+1023 DUNE_THROW(Dune::NotImplemented, \"Array format currently not supported for\n+matrices!\");\n+1024\n+1025 readSparseEntries(matrix, istr, entries, header, NumericWrapper());\n+1026 }\n+1027\n+1028 // Print a scalar entry\n+1029 template\n+_\b1_\b0_\b3_\b0 void _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\be_\bn_\bt_\br_\by(const B& entry,\n+1031 std::size_t rowidx,\n+1032 std::size_t colidx,\n+1033 std::ostream& ostr)\n+1034 {\n+1035 if constexpr (IsNumber())\n+1036 ostr << rowidx << \" \" << colidx << \" \" << entry << std::endl;\n+1037 else\n+1038 {\n+1039 for (auto row=entry.begin(); row != entry.end(); ++row, ++rowidx) {\n+1040 int coli=colidx;\n+1041 for (auto _\bc_\bo_\bl = row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl, ++coli)\n+1042 ostr<< rowidx<<\" \"<\n+_\b1_\b0_\b4_\b9 void _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by(const V& entry, std::ostream& ostr,\n+1050 const std::integral_constant&,\n+1051 size_t lane)\n+1052 {\n+1053 ostr<\n+_\b1_\b0_\b5_\b8 void _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by(const V& vector, std::ostream& ostr,\n+1059 const std::integral_constant&,\n+1060 size_t lane)\n+1061 {\n+1062 using namespace MatrixMarketImpl;\n+1063\n+1064 // Is the entry a supported numeric type?\n+1065 const int isnumeric = mm_numeric_type>::is_numeric;\n+1066 typedef typename V::const_iterator VIter;\n+1067\n+1068 for(VIter i=vector.begin(); i != vector.end(); ++i)\n+1069\n+1070 _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by(*i, ostr,\n+1071 std::integral_constant(),\n+1072 lane);\n+1073 }\n+1074\n+1075 template\n+_\b1_\b0_\b7_\b6 std::size_t _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& vector)\n+1077 {\n+1078 return vector.size();\n+1079 }\n+1080\n+1081 template\n+_\b1_\b0_\b8_\b2 std::size_t _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br,A>& vector)\n+1083 {\n+1084 return vector.size()*i;\n+1085 }\n+1086\n+1087 // Version for writing vectors.\n+1088 template\n+_\b1_\b0_\b8_\b9 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(const V& vector, std::ostream& ostr,\n+1090 const std::integral_constant&)\n+1091 {\n+1092 using namespace MatrixMarketImpl;\n+1093 typedef typename V::field_type field_type;\n+1094\n+1095 ostr<<_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(vector)<<\" \"<()<>::is_numeric;\n+1097 for(size_t l=0;l(); ++l){\n+1098 _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by(vector,ostr, std::integral_constant\n+(), l);\n+1099 }\n+1100 }\n+1101\n+1102 // Versions for writing matrices\n+1103 template\n+_\b1_\b1_\b0_\b4 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(const M& matrix,\n+1105 std::ostream& ostr,\n+1106 const std::integral_constant&)\n+1107 {\n+1108 ostr<_\b:_\b:_\br_\bo_\bw_\bs<<\" \"\n+1109 <_\b:_\b:_\bc_\bo_\bl_\bs<<\" \"\n+1110 <<_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(matrix)<begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl)\n+1116 // Matrix Market indexing start with 1!\n+1117 _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\be_\bn_\bt_\br_\by(*_\bc_\bo_\bl, row.index()*_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\bM_\b>_\b:_\b:\n+_\br_\bo_\bw_\bs+1,\n+1118 _\bc_\bo_\bl.index()*_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\bM_\b>_\b:_\b:_\bc_\bo_\bl_\bs+1, ostr);\n+1119 }\n+1120\n+1121\n+1125 template\n+_\b1_\b1_\b2_\b6 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(const M& matrix,\n+1127 std::ostream& ostr)\n+1128 {\n+1129 using namespace MatrixMarketImpl;\n+1130\n+1131 // Write header information\n+1132 mm_header_printer::print(ostr);\n+1133 mm_block_structure_header::print(ostr,matrix);\n+1134 // Choose the correct function for matrix and vector\n+1135 _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(matrix,ostr,std::integral_constant_\b:_\b:\n+_\bv_\ba_\bl_\bu_\be>());\n+1136 }\n+1137\n+_\b1_\b1_\b3_\b8 static const int _\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn = -1;\n+1150 template\n+_\b1_\b1_\b5_\b1 void _\bs_\bt_\bo_\br_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(const M& matrix,\n+1152 std::string filename,\n+1153 int prec=_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn)\n+1154 {\n+1155 auto [pureFilename, extension] = _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n+(filename);\n+1156 std::string rfilename;\n+1157 std::ofstream file;\n+1158 if (extension != \"\") {\n+1159 rfilename = pureFilename + extension;\n+1160 file.open(rfilename.c_str());\n+1161 if(!file)\n+1162 DUNE_THROW(IOError, \"Could not open file for storage: \" << rfilename.c_str\n+());\n+1163 }\n+1164 else {\n+1165 // only try .mm so we do not ignore potential errors\n+1166 rfilename = pureFilename + \".mm\";\n+1167 file.open(rfilename.c_str());\n+1168 if(!file)\n+1169 DUNE_THROW(IOError, \"Could not open file for storage: \" << rfilename.c_str\n+());\n+1170 }\n+1171\n+1172 file.setf(std::ios::scientific,std::ios::floatfield);\n+1173 if(prec>0)\n+1174 file.precision(prec);\n+1175 _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(matrix, file);\n+1176 file.close();\n+1177 }\n+1178\n+1179#if HAVE_MPI\n+1194 template\n+_\b1_\b1_\b9_\b5 void _\bs_\bt_\bo_\br_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(const M& matrix,\n+1196 std::string filename,\n+1197 const _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bG_\b,_\bL_\b>& comm,\n+1198 bool storeIndices=true,\n+1199 int prec=_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn)\n+1200 {\n+1201 // Get our rank\n+1202 int rank = comm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank();\n+1203 // Write the local matrix\n+1204 auto [pureFilename, extension] = _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n+(filename);\n+1205 std::string rfilename;\n+1206 std::ofstream file;\n+1207 if (extension != \"\") {\n+1208 rfilename = pureFilename + \"_\" + std::to_string(rank) + extension;\n+1209 file.open(rfilename.c_str());\n+1210 dverb<< rfilename <0)\n+1224 file.precision(prec);\n+1225 _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(matrix, file);\n+1226 file.close();\n+1227\n+1228 if(!storeIndices)\n+1229 return;\n+1230\n+1231 // Write the global to local index mapping\n+1232 rfilename = pureFilename + \"_\" + std::to_string(rank) + \".idx\";\n+1233 file.open(rfilename.c_str());\n+1234 if(!file)\n+1235 DUNE_THROW(IOError, \"Could not open file for storage: \" << rfilename.c_str\n+());\n+1236 file.setf(std::ios::scientific,std::ios::floatfield);\n+1237 typedef typename _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bG_\b,_\bL_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+IndexSet;\n+1238 typedef typename IndexSet::const_iterator Iterator;\n+1239 for(Iterator iter = comm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt().begin();\n+1240 iter != comm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt().end(); ++iter) {\n+1241 file << iter->global()<<\" \"<<(std::size_t)iter->local()<<\" \"\n+1242 <<(int)iter->local().attribute()<<\" \"<<(int)iter->local().isPublic\n+()<& neighbours=comm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().getNeighbours();\n+1247 typedef std::set::const_iterator SIter;\n+1248 for(SIter neighbour=neighbours.begin(); neighbour != neighbours.end();\n+++neighbour) {\n+1249 file<<\" \"<< *neighbour;\n+1250 }\n+1251 file.close();\n+1252 }\n+1253\n+1268 template\n+_\b1_\b2_\b6_\b9 void _\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(M& matrix,\n+1270 const std::string& filename,\n+1271 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bG_\b,_\bL_\b>& comm,\n+1272 bool readIndices=true)\n+1273 {\n+1274 using namespace MatrixMarketImpl;\n+1275\n+1276 using LocalIndexT = typename _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bG_\b,_\bL_\b>_\b:_\b:\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+1277 typedef typename LocalIndexT::Attribute Attribute;\n+1278 // Get our rank\n+1279 int rank = comm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank();\n+1280 // load local matrix\n+1281 auto [pureFilename, extension] = _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n+(filename);\n+1282 std::string rfilename;\n+1283 std::ifstream file;\n+1284 if (extension != \"\") {\n+1285 rfilename = pureFilename + \"_\" + std::to_string(rank) + extension;\n+1286 file.open(rfilename.c_str(), std::ios::in);\n+1287 dverb<< rfilename <_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+IndexSet;\n+1311 IndexSet& pis=comm.pis;\n+1312 rfilename = pureFilename + \"_\" + std::to_string(rank) + \".idx\";\n+1313 file.open(rfilename.c_str());\n+1314 if(!file)\n+1315 DUNE_THROW(IOError, \"Could not open file: \" << rfilename.c_str());\n+1316 if(pis.size()!=0)\n+1317 DUNE_THROW(InvalidIndexSetState, \"Index set is not empty!\");\n+1318\n+1319 pis.beginResize();\n+1320 while(!file.eof() && file.peek()!='n') {\n+1321 G g;\n+1322 file >>g;\n+1323 std::size_t l;\n+1324 file >>l;\n+1325 int c;\n+1326 file >>c;\n+1327 bool b;\n+1328 file >> b;\n+1329 pis.add(g,LocalIndexT(l,Attribute(c),b));\n+1330 lineFeed(file);\n+1331 }\n+1332 pis.endResize();\n+1333 if(!file.eof()) {\n+1334 // read neighbours\n+1335 std::string s;\n+1336 file>>s;\n+1337 if(s!=\"neighbours:\")\n+1338 DUNE_THROW(_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br, \"was expecting the string:\n+\\\"neighbours:\\\"\");\n+1339 std::set nb;\n+1340 while(!file.eof()) {\n+1341 int i;\n+1342 file >> i;\n+1343 nb.insert(i);\n+1344 }\n+1345 file.close();\n+1346 comm.ri.setNeighbours(nb);\n+1347 }\n+1348 comm.ri.template rebuild();\n+1349 }\n+1350\n+1351 #endif\n+1352\n+1363 template\n+_\b1_\b3_\b6_\b4 void _\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(M& matrix,\n+1365 const std::string& filename)\n+1366 {\n+1367 auto [pureFilename, extension] = _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n+(filename);\n+1368 std::string rfilename;\n+1369 std::ifstream file;\n+1370 if (extension != \"\") {\n+1371 rfilename = pureFilename + extension;\n+1372 file.open(rfilename.c_str());\n+1373 if(!file)\n+1374 DUNE_THROW(IOError, \"Could not open file: \" << rfilename.c_str());\n+1375 }\n+1376 else {\n+1377 // try both .mm and .mtx\n+1378 rfilename = pureFilename + \".mm\";\n+1379 file.open(rfilename.c_str(), std::ios::in);\n+1380 if(!file) {\n+1381 rfilename = pureFilename + \".mtx\";\n+1382 file.open(rfilename.c_str(), std::ios::in);\n+1383 if(!file)\n+1384 DUNE_THROW(IOError, \"Could not open file: \" << rfilename.c_str());\n+1385 }\n+1386 }\n+1387 _\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(matrix,file);\n+1388 file.close();\n+1389 }\n+1390\n+1392}\n+1393#endif\n+_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n+Classes providing communication interfaces for overlapping Schwarz methods.\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n+_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\n+Some handy generic functions for ISTL matrices.\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs\n+auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::\n+value > *sfinae=nullptr)\n+Get the number of nonzero fields in the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:119\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt\n+void readMatrixMarket(Dune::BlockVector< T, A > &vector, std::istream &istr)\n+Reads a BlockVector from a matrix market file.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:930\n+_\bD_\bu_\bn_\be_\b:_\b:_\bs_\bt_\bo_\br_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt\n+void storeMatrixMarket(const M &matrix, std::string filename, int\n+prec=default_precision)\n+Stores a parallel matrix/vector in matrix market format in a file.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1151\n+_\bD_\bu_\bn_\be_\b:_\b:_\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt\n+void loadMatrixMarket(M &matrix, const std::string &filename,\n+OwnerOverlapCopyCommunication< G, L > &comm, bool readIndices=true)\n+Load a parallel matrix/vector stored in matrix market format.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1269\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs\n+std::size_t countEntries(const BlockVector< T, A > &vector)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1076\n+_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt\n+void writeMatrixMarket(const V &vector, std::ostream &ostr, const std::\n+integral_constant< int, 0 > &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1089\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by\n+void mm_print_vector_entry(const V &entry, std::ostream &ostr, const std::\n+integral_constant< int, 1 > &, size_t lane)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1049\n+_\bD_\bu_\bn_\be_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn\n+static const int default_precision\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1138\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs\n+void mm_read_vector_entries(Dune::BlockVector< T, A > &vector, std::size_t\n+size, std::istream &istr, size_t lane)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:900\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bh_\be_\ba_\bd_\be_\br\n+void mm_read_header(std::size_t &rows, std::size_t &cols, MatrixMarketImpl::\n+MMHeader &header, std::istream &istr, bool isVector)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:871\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\be_\bn_\bt_\br_\by\n+void mm_print_entry(const B &entry, std::size_t rowidx, std::size_t colidx,\n+std::ostream &ostr)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1030\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A Vector class to support different block types.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:59\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n-A Matrix class to support different block types.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bL\n-compile-time parameter for block recursion depth\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:45\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bL_\b:_\b:_\br_\be_\bc_\bu_\br_\bs_\bi_\bo_\bn_\b__\bl_\be_\bv_\be_\bl\n-@ recursion_level\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:69\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n-static void butsolve(const M &A, X &v, const Y &d, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:90\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n-static void bltsolve(const M &A, X &v, const Y &d, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:71\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n-static void bltsolve(const M &A, X &v, const Y &d, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:114\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n-static void butsolve(const M &A, X &v, const Y &d, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n-static void bltsolve(const M &A, X &v, const Y &d, const K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:129\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n-static void butsolve(const M &A, X &v, const Y &d, const K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:134\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n-static void bltsolve(const M &, X &v, const Y &d, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:142\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n-static void butsolve(const M &, X &v, const Y &d, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:148\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n-static void bltsolve(const M &, X &v, const Y &d, const K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:157\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n-static void butsolve(const M &, X &v, const Y &d, const K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:162\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:294\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be\n-static void bdsolve(const M &A, X &v, const Y &d, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:296\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be\n-static void bdsolve(const M &A, X &v, const Y &d, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:316\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be\n-static void bdsolve(const M &A, X &v, const Y &d, const K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:325\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:375\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-static void bsorb(const M &A, X &x, const Y &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:461\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-static void bsorf(const M &A, X &x, const Y &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:418\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n-static void dbjac(const M &A, X &x, const Y &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:504\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bd_\bb_\bg_\bs\n-static void dbgs(const M &A, X &x, const Y &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:378\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\b0_\b,_\b _\bM_\b _\b>_\b:_\b:_\bd_\bb_\bg_\bs\n-static void dbgs(const M &A, X &x, const Y &b, const K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:545\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\b0_\b,_\b _\bM_\b _\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n-static void dbjac(const M &A, X &x, const Y &b, const K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:560\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\b0_\b,_\b _\bM_\b _\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-static void bsorf(const M &A, X &x, const Y &b, const K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:550\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\b0_\b,_\b _\bM_\b _\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-static void bsorb(const M &A, X &x, const Y &b, const K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:555\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>\n-_\b>_\b:_\b:_\bd_\bb_\bg_\bs\n-static void dbgs(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A,\n-MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector<\n-MultiTypeVectorArgs... > &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:571\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>\n-_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n-static void dbjac(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A,\n-MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector<\n-MultiTypeVectorArgs... > &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:608\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>\n-_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-static void bsorf(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A,\n-MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector<\n-MultiTypeVectorArgs... > &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:583\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>\n-_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-static void bsorb(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A,\n-MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector<\n-MultiTypeVectorArgs... > &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:595\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bN_\bN_\bZ\n+std::tuple< std::size_t, std::size_t, std::size_t > calculateNNZ(std::size_t\n+rows, std::size_t cols, std::size_t entries, const MMHeader &header)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:547\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<\n+bool operator<(const IndexData< T > &i1, const IndexData< T > &i2)\n+LessThan operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:630\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bL_\bi_\bn_\be_\bT_\by_\bp_\be\n+LineType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:296\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bD_\bA_\bT_\bA\n+@ DATA\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:296\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bH_\bE_\bA_\bD_\bE_\bR\n+@ MM_HEADER\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:296\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bI_\bS_\bT_\bL_\bS_\bT_\bR_\bU_\bC_\bT\n+@ MM_ISTLSTRUCT\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:296\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bB_\ba_\bn_\bn_\be_\br\n+bool readMatrixMarketBanner(std::istream &file, MMHeader &mmHeader)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:353\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\br_\be_\ba_\bd_\bS_\bp_\ba_\br_\bs_\be_\bE_\bn_\bt_\br_\bi_\be_\bs\n+void readSparseEntries(Dune::BCRSMatrix< T, A > &matrix, std::istream &file,\n+std::size_t entries, const MMHeader &mmHeader, const D &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:765\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bT_\bY_\bP_\bE\n+MM_TYPE\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\ba_\br_\br_\ba_\by_\b__\bt_\by_\bp_\be\n+@ array_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bo_\br_\bd_\bi_\bn_\ba_\bt_\be_\b__\bt_\by_\bp_\be\n+@ coordinate_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bt_\by_\bp_\be\n+@ unknown_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n+std::istream & operator>>(std::istream &is, NumericWrapper< T > &num)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:614\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bk_\bi_\bp_\bC_\bo_\bm_\bm_\be_\bn_\bt_\bs\n+void skipComments(std::istream &file)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:339\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bl_\bi_\bn_\be_\bF_\be_\be_\bd\n+bool lineFeed(std::istream &file)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:315\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bM_\bA_\bX_\b__\bL_\bI_\bN_\bE_\b__\bL_\bE_\bN_\bG_\bT_\bH\n+@ MM_MAX_LINE_LENGTH\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:297\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bS_\bT_\bR_\bU_\bC_\bT_\bU_\bR_\bE\n+MM_STRUCTURE\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc\n+@ skew_symmetric\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bg_\be_\bn_\be_\br_\ba_\bl\n+@ general\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn\n+@ hermitian\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be\n+@ unknown_structure\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc\n+@ symmetric\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bC_\bT_\bY_\bP_\bE\n+MM_CTYPE\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bc_\bt_\by_\bp_\be\n+@ unknown_ctype\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bp_\ba_\bt_\bt_\be_\br_\bn\n+@ pattern\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b__\bt_\by_\bp_\be\n+@ complex_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bd_\bo_\bu_\bb_\bl_\be_\b__\bt_\by_\bp_\be\n+@ double_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bi_\bn_\bt_\be_\bg_\be_\br_\b__\bt_\by_\bp_\be\n+@ integer_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bn_\bj\n+std::enable_if_t::value, T > conj(const T &r)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:733\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n+std::tuple< std::string, std::string > splitFilename(const std::string\n+&filename)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:852\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+Iterator begin()\n+Get iterator to first row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:675\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+Iterator end()\n+Get iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:681\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd\n+CreateIterator createend()\n+get create iterator pointing to one after the last block\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1103\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n+size_type M() const\n+number of columns (counted in blocks)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1978\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn\n+CreateIterator createbegin()\n+get initial create iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1097\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+size_type N() const\n+number of rows (counted in blocks)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be\n+void setBuildMode(BuildMode bm)\n+Sets the build mode of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:833\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n+void setSize(size_type rows, size_type columns, size_type nnz=0)\n+Set the size of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:861\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A vector of blocks with memory management.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n+void resize(size_type size)\n+Resize the vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:503\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< B >::field_type field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:401\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be\n+Helper metaprogram to get the matrix market string representation of the\n+numeric type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:76\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b:_\b:_\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+@ is_numeric\n+Whether T is a supported numeric type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bi_\bn_\bt_\b _\b>_\b:_\b:_\bs_\bt_\br\n+static std::string str()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b:_\b:_\bs_\bt_\br\n+static std::string str()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:111\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b:_\b:_\bs_\bt_\br\n+static std::string str()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:127\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b _\b>_\b:_\b:_\bs_\bt_\br\n+static std::string str()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:143\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b _\b>_\b:_\b:_\bs_\bt_\br\n+static std::string str()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:159\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br\n+Meta program to write the correct Matrix Market header.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:174\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n+static void print(std::ostream &os)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:179\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n+static void print(std::ostream &os)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:189\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bj_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n+static void print(std::ostream &os)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:199\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,_\b _\bj_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n+static void print(std::ostream &os)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:209\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br\n+Metaprogram for writing the ISTL block structure header.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:225\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n+static void print(std::ostream &os, const M &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:233\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM\n+BlockVector< T, A > M\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:230\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,\n+_\bi_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM\n+BlockVector< FieldVector< T, i >, A > M\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:243\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,\n+_\bi_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n+static void print(std::ostream &os, const M &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:245\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM\n+BCRSMatrix< T, A > M\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:255\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n+static void print(std::ostream &os, const M &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:258\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,\n+_\bi_\b,_\b _\bj_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM\n+BCRSMatrix< FieldMatrix< T, i, j >, A > M\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:268\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,\n+_\bi_\b,_\b _\bj_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n+static void print(std::ostream &os, const M &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:270\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,_\b _\bj_\b _\b>_\b _\b>_\b:_\b:\n+_\bp_\br_\bi_\bn_\bt\n+static void print(std::ostream &os, const M &m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:283\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,_\b _\bj_\b _\b>_\b _\b>_\b:_\b:_\bM\n+FieldMatrix< T, i, j > M\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:281\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bi_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n+static void print(std::ostream &os, const M &m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:292\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bi_\b _\b>_\b _\b>_\b:_\b:_\bM\n+FieldVector< T, i > M\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:290\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:306\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br_\b:_\b:_\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be\n+MM_STRUCTURE structure\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:312\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br_\b:_\b:_\bt_\by_\bp_\be\n+MM_TYPE type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:310\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n+MMHeader()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:307\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br_\b:_\b:_\bc_\bt_\by_\bp_\be\n+MM_CTYPE ctype\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:311\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:578\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b:_\b:_\bi_\bn_\bd_\be_\bx\n+std::size_t index\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:579\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br\n+a wrapper class of numeric values.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:595\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b:_\b:_\bn_\bu_\bm_\bb_\be_\br\n+T number\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:596\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by\n+Utility class for marking the pattern type of the MatrixMarket matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:607\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br\n+Functor to the data values of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:677\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const std::vector< std::set< IndexData< D > > > &rows,\n+BCRSMatrix< T > &matrix)\n+Sets the matrix values.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:684\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const std::vector< std::set< IndexData< D > > > &rows,\n+BCRSMatrix< FieldMatrix< T, brows, bcols > > &matrix)\n+Sets the matrix values.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:702\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b<_\b _\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by_\b,_\b _\bb_\br_\bo_\bw_\bs_\b,_\b _\bb_\bc_\bo_\bl_\bs_\b _\b>_\b:_\b:\n+_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const std::vector< std::set< IndexData< PatternDummy > > >\n+&rows, M &matrix)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:723\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:728\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:744\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:868\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx\n+Test whether a type is an ISTL Matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:504\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+A class setting up standard communication for a two-valued attribute set with\n+owner/overlap/copy sema...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bn_\bd_\be_\bx_\bS_\be_\bt\n+const ParallelIndexSet & indexSet() const\n+Get the underlying parallel index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:462\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+const Communication< MPI_Comm > & communicator() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+const RemoteIndices & remoteIndices() const\n+Get the underlying remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:471\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet\n+The type of the parallel index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:449\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00020.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00020.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: io.hh File Reference\n+dune-istl: scalarproducts.hh File Reference\n \n \n \n \n \n \n \n@@ -73,104 +73,69 @@\n \n \n \n
    \n \n-

    Some generic functions for pretty printing vectors and matrices. \n+

    Define base class for scalar product and norm. \n More...

    \n
    #include <cmath>
    \n #include <complex>
    \n-#include <limits>
    \n-#include <ios>
    \n+#include <iostream>
    \n #include <iomanip>
    \n-#include <fstream>
    \n #include <string>
    \n-#include "matrixutils.hh"
    \n-#include "istlexception.hh"
    \n-#include <dune/common/fvector.hh>
    \n-#include <dune/common/fmatrix.hh>
    \n-#include <dune/common/hybridutilities.hh>
    \n-#include <dune/common/reservedvector.hh>
    \n-#include <dune/istl/bcrsmatrix.hh>
    \n-#include <dune/istl/blocklevel.hh>
    \n+#include <memory>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/shared_ptr.hh>
    \n+#include "bvector.hh"
    \n+#include "solvercategory.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    struct  Dune::DefaultSVGMatrixOptions
     Default options class to write SVG matrices. More...
    class  Dune::ScalarProduct< X >
     Base class for scalar product and norm computation. More...
     
    class  Dune::ParallelScalarProduct< X, C >
     Scalar product for overlapping Schwarz methods. More...
     
    class  Dune::SeqScalarProduct< X >
     Default implementation for the scalar case. More...
     
    class  Dune::NonoverlappingSchwarzScalarProduct< X, C >
     Nonoverlapping Scalar Product with communication object. More...
     
    class  Dune::OverlappingSchwarzScalarProduct< X, C >
     Scalar product for overlapping Schwarz methods. More...
     
    \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n

    \n Functions

    template<class V >
    void Dune::recursive_printvector (std::ostream &s, const V &v, std::string rowtext, int &counter, int columns, int width)
     Recursively print a vector.
     
    template<class V >
    void Dune::printvector (std::ostream &s, const V &v, std::string title, std::string rowtext, int columns=1, int width=10, int precision=2)
     Print an ISTL vector.
     
    void Dune::fill_row (std::ostream &s, int m, int width, int precision)
     Print a row of zeros for a non-existing block.
     
    template<class K >
    void Dune::print_row (std::ostream &s, const K &value, typename FieldMatrix< K, 1, 1 >::size_type I, typename FieldMatrix< K, 1, 1 >::size_type J, typename FieldMatrix< K, 1, 1 >::size_type therow, int width, int precision, typename std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)
     Print one row of a matrix, specialization for number types.
     
    template<class M >
    void Dune::print_row (std::ostream &s, const M &A, typename M::size_type I, typename M::size_type J, typename M::size_type therow, int width, int precision, typename std::enable_if_t<!Dune::IsNumber< M >::value > *sfinae=nullptr)
     Print one row of a matrix.
     
    template<class M >
    void Dune::printmatrix (std::ostream &s, const M &A, std::string title, std::string rowtext, int width=10, int precision=2)
     Print a generic block matrix.
     
    template<class B , int n, int m, class A >
    void Dune::printSparseMatrix (std::ostream &s, const BCRSMatrix< FieldMatrix< B, n, m >, A > &mat, std::string title, std::string rowtext, int width=3, int precision=2)
     Prints a BCRSMatrix with fixed sized blocks.
     
    template<class FieldType >
    void Dune::writeMatrixToMatlabHelper (const FieldType &value, int rowOffset, int colOffset, std::ostream &s, typename std::enable_if_t< Dune::IsNumber< FieldType >::value > *sfinae=nullptr)
     Helper method for the writeMatrixToMatlab routine.
     
    template<class MatrixType >
    void Dune::writeMatrixToMatlabHelper (const MatrixType &matrix, int externalRowOffset, int externalColOffset, std::ostream &s, typename std::enable_if_t<!Dune::IsNumber< MatrixType >::value > *sfinae=nullptr)
     Helper method for the writeMatrixToMatlab routine.
     
    template<class MatrixType >
    void Dune::writeMatrixToMatlab (const MatrixType &matrix, const std::string &filename, int outputPrecision=18)
     Writes sparse matrix in a Matlab-readable format.
     
    template<class V >
    void Dune::writeVectorToMatlabHelper (const V &v, std::ostream &stream)
     
    template<class VectorType >
    void Dune::writeVectorToMatlab (const VectorType &vector, const std::string &filename, int outputPrecision=18)
     Writes vectors in a Matlab-readable format.
     
    template<class Mat , class SVGOptions = DefaultSVGMatrixOptions>
    void Dune::writeSVGMatrix (const Mat &mat, std::ostream &out, SVGOptions opts={})
     Writes the visualization of matrix in the SVG format.
     
    template<class X , class Comm >
    std::shared_ptr< ScalarProduct< X > > Dune::makeScalarProduct (std::shared_ptr< const Comm > comm, SolverCategory::Category category)
     Choose the approriate scalar product for a solver category.
     
    template<class X , class Comm >
    std::shared_ptr< ScalarProduct< X > > Dune::createScalarProduct (const Comm &comm, SolverCategory::Category category)
     
    \n

    Detailed Description

    \n-

    Some generic functions for pretty printing vectors and matrices.

    \n+

    Define base class for scalar product and norm.

    \n+

    These classes have to be implemented differently for different data partitioning strategies. Default implementations for the sequential case are provided.

    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,108 +1,60 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-io.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bS_\bp_\ba_\br_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bc_\bl_\ba_\bs_\bs_\be_\bs \u00bb\n-_\bI_\bO_\b _\bf_\bo_\br_\b _\bm_\ba_\bt_\br_\bi_\bc_\be_\bs_\b _\ba_\bn_\bd_\b _\bv_\be_\bc_\bt_\bo_\br_\bs_\b.\n-Some generic functions for pretty printing vectors and matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+scalarproducts.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bS_\bc_\ba_\bl_\ba_\br_\b _\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs\n+Define base class for scalar product and norm. _\bM_\bo_\br_\be_\b._\b._\b.\n #include \n #include \n-#include \n-#include \n+#include \n #include \n-#include \n #include \n-#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n-#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+#include \n+#include \n+#include \n+#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs\n-\u00a0 Default options class to write SVG matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bX_\b _\b>\n+\u00a0 Base class for scalar product and norm computation. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bX_\b,_\b _\bC_\b _\b>\n+\u00a0 Scalar product for overlapping Schwarz methods. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bX_\b _\b>\n+\u00a0 Default implementation for the scalar case. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bX_\b,_\b _\bC_\b _\b>\n+\u00a0 Nonoverlapping Scalar Product with communication object. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bX_\b,_\b _\bC_\b _\b>\n+\u00a0 Scalar product for overlapping Schwarz methods. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bc_\bu_\br_\bs_\bi_\bv_\be_\b__\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br (std::ostream &s, const V &v, std::string\n- rowtext, int &counter, int columns, int width)\n-\u00a0 Recursively print a vector.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br (std::ostream &s, const V &v, std::string title, std::\n- string rowtext, int columns=1, int width=10, int precision=2)\n-\u00a0 Print an _\bI_\bS_\bT_\bL vector.\n-\u00a0\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bl_\b__\br_\bo_\bw (std::ostream &s, int m, int width, int precision)\n-\u00a0 Print a row of zeros for a non-existing block.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw (std::ostream &s, const K &value, typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx<\n- K, 1, 1 >::size_type I, typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, 1, 1 >::size_type J,\n- typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, 1, 1 >::size_type therow, int width, int\n- precision, typename std::enable_if_t< Dune::IsNumber< K >::value >\n- *sfinae=nullptr)\n-\u00a0 Print one row of a matrix, specialization for number types.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw (std::ostream &s, const M &A, typename M::size_type I,\n- typename M::size_type J, typename M::size_type therow, int width, int\n- precision, typename std::enable_if_t::value >\n- *sfinae=nullptr)\n-\u00a0 Print one row of a matrix.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bm_\ba_\bt_\br_\bi_\bx (std::ostream &s, const M &A, std::string title, std::\n- string rowtext, int width=10, int precision=2)\n-\u00a0 Print a generic block matrix.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx (std::ostream &s, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx<\n- B, n, m >, A > &_\bm_\ba_\bt, std::string title, std::string rowtext, int width=3,\n- int precision=2)\n-\u00a0 Prints a _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx with fixed sized blocks.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br (const FieldType &value, int rowOffset,\n- int colOffset, std::ostream &s, typename std::enable_if_t< Dune::\n- IsNumber< FieldType >::value > *sfinae=nullptr)\n-\u00a0 Helper method for the writeMatrixToMatlab routine.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br (const MatrixType &matrix, int\n- externalRowOffset, int externalColOffset, std::ostream &s, typename std::\n- enable_if_t::value > *sfinae=nullptr)\n-\u00a0 Helper method for the writeMatrixToMatlab routine.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb (const MatrixType &matrix, const std::string\n- &filename, int outputPrecision=18)\n-\u00a0 Writes sparse matrix in a Matlab-readable format.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br (const V &v, std::ostream &stream)\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb (const VectorType &vector, const std::string\n- &filename, int outputPrecision=18)\n-\u00a0 Writes vectors in a Matlab-readable format.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx (const Mat &_\bm_\ba_\bt, std::ostream &out, SVGOptions opts=\n- {})\n-\u00a0 Writes the visualization of matrix in the SVG format.\n+template\n+std::shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bk_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (std::\n+ shared_ptr< const Comm > comm,\n+ _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category)\n+\u00a0 Choose the approriate scalar product for\n+ a solver category.\n+\u00a0\n+template\n+std::shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const Comm\n+ &comm, _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+ category)\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Some generic functions for pretty printing vectors and matrices.\n+Define base class for scalar product and norm.\n+These classes have to be implemented differently for different data\n+partitioning strategies. Default implementations for the sequential case are\n+provided.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00020_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00020_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: io.hh Source File\n+dune-istl: scalarproducts.hh Source File\n \n \n \n \n \n \n \n@@ -74,710 +74,224 @@\n \n
    \n \n
    \n
    \n
    \n-
    io.hh
    \n+
    scalarproducts.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_IO_HH
    \n-
    6#define DUNE_ISTL_IO_HH
    \n+
    5#ifndef DUNE_ISTL_SCALARPRODUCTS_HH
    \n+
    6#define DUNE_ISTL_SCALARPRODUCTS_HH
    \n
    7
    \n
    8#include <cmath>
    \n
    9#include <complex>
    \n-
    10#include <limits>
    \n-
    11#include <ios>
    \n-
    12#include <iomanip>
    \n-
    13#include <fstream>
    \n-
    14#include <string>
    \n-
    15
    \n-
    16#include "matrixutils.hh"
    \n-
    17#include "istlexception.hh"
    \n-
    18#include <dune/common/fvector.hh>
    \n-
    19#include <dune/common/fmatrix.hh>
    \n-
    20#include <dune/common/hybridutilities.hh>
    \n-
    21#include <dune/common/reservedvector.hh>
    \n-
    22
    \n-\n-\n-
    25
    \n-
    26namespace Dune {
    \n-
    27
    \n-
    40 //
    \n-
    41 // pretty printing of vectors
    \n-
    42 //
    \n-
    43
    \n-
    51 template<class V>
    \n-
    \n-
    52 void recursive_printvector (std::ostream& s, const V& v, std::string rowtext,
    \n-
    53 int& counter, int columns, int width)
    \n-
    54 {
    \n-
    55 if constexpr (IsNumber<V>())
    \n-
    56 {
    \n-
    57 // Print one number
    \n-
    58 if (counter%columns==0)
    \n-
    59 {
    \n-
    60 s << rowtext; // start a new row
    \n-
    61 s << " "; // space in front of each entry
    \n-
    62 s.width(4); // set width for counter
    \n-
    63 s << counter; // number of first entry in a line
    \n-
    64 }
    \n-
    65 s << " "; // space in front of each entry
    \n-
    66 s.width(width); // set width for each entry anew
    \n-
    67 s << v; // yeah, the number !
    \n-
    68 counter++; // increment the counter
    \n-
    69 if (counter%columns==0)
    \n-
    70 s << std::endl; // start a new line
    \n-
    71 }
    \n-
    72 else
    \n-
    73 {
    \n-
    74 // Recursively print a vector
    \n-
    75 for (const auto& entry : v)
    \n-
    76 recursive_printvector(s,entry,rowtext,counter,columns,width);
    \n-
    77 }
    \n-
    78 }
    \n-
    \n-
    79
    \n-
    80
    \n-
    88 template<class V>
    \n-
    \n-
    89 void printvector (std::ostream& s, const V& v, std::string title,
    \n-
    90 std::string rowtext, int columns=1, int width=10,
    \n-
    91 int precision=2)
    \n-
    92 {
    \n-
    93 // count the numbers printed to make columns
    \n-
    94 int counter=0;
    \n-
    95
    \n-
    96 // remember old flags
    \n-
    97 std::ios_base::fmtflags oldflags = s.flags();
    \n-
    98
    \n-
    99 // set the output format
    \n-
    100 s.setf(std::ios_base::scientific, std::ios_base::floatfield);
    \n-
    101 int oldprec = s.precision();
    \n-
    102 s.precision(precision);
    \n-
    103
    \n-
    104 // print title
    \n-
    105 s << title << " [blocks=" << v.N() << ",dimension=" << v.dim() << "]"
    \n-
    106 << std::endl;
    \n-
    107
    \n-
    108 // print data from all blocks
    \n-
    109 recursive_printvector(s,v,rowtext,counter,columns,width);
    \n-
    110
    \n-
    111 // check if new line is required
    \n-
    112 if (counter%columns!=0)
    \n-
    113 s << std::endl;
    \n+
    10#include <iostream>
    \n+
    11#include <iomanip>
    \n+
    12#include <string>
    \n+
    13#include <memory>
    \n+
    14
    \n+
    15#include <dune/common/exceptions.hh>
    \n+
    16#include <dune/common/shared_ptr.hh>
    \n+
    17
    \n+
    18#include "bvector.hh"
    \n+
    19#include "solvercategory.hh"
    \n+
    20
    \n+
    21
    \n+
    22namespace Dune {
    \n+
    51 template<class X>
    \n+
    \n+\n+
    53 public:
    \n+
    55 typedef X domain_type;
    \n+
    56 typedef typename X::field_type field_type;
    \n+
    57 typedef typename FieldTraits<field_type>::real_type real_type;
    \n+
    58
    \n+
    \n+
    63 virtual field_type dot (const X& x, const X& y) const
    \n+
    64 {
    \n+
    65 return x.dot(y);
    \n+
    66 }
    \n+
    \n+
    67
    \n+
    \n+
    71 virtual real_type norm (const X& x) const
    \n+
    72 {
    \n+
    73 return x.two_norm();
    \n+
    74 }
    \n+
    \n+
    75
    \n+
    \n+\n+
    78 {
    \n+\n+
    80 }
    \n+
    \n+
    81
    \n+
    83 virtual ~ScalarProduct () {}
    \n+
    84 };
    \n+
    \n+
    85
    \n+
    97 template<class X, class C>
    \n+
    \n+\n+
    99 {
    \n+
    100 public:
    \n+
    105 typedef X domain_type;
    \n+
    107 typedef typename X::field_type field_type;
    \n+
    108 typedef typename FieldTraits<field_type>::real_type real_type;
    \n+\n
    114
    \n-
    115 // reset the output format
    \n-
    116 s.flags(oldflags);
    \n-
    117 s.precision(oldprec);
    \n-
    118 }
    \n-
    \n-
    119
    \n-
    120
    \n-
    122 //
    \n-
    123 // pretty printing of matrices
    \n-
    124 //
    \n-
    125
    \n-
    \n-
    133 inline void fill_row (std::ostream& s, int m, int width, [[maybe_unused]] int precision)
    \n-
    134 {
    \n-
    135 for (int j=0; j<m; j++)
    \n-
    136 {
    \n-
    137 s << " "; // space in front of each entry
    \n-
    138 s.width(width); // set width for each entry anew
    \n-
    139 s << "."; // yeah, the number !
    \n-
    140 }
    \n-
    141 }
    \n-
    \n-
    142
    \n-
    150 template<class K>
    \n-
    \n-
    151 void print_row (std::ostream& s, const K& value,
    \n-
    152 [[maybe_unused]] typename FieldMatrix<K,1,1>::size_type I,
    \n-
    153 [[maybe_unused]] typename FieldMatrix<K,1,1>::size_type J,
    \n-
    154 [[maybe_unused]] typename FieldMatrix<K,1,1>::size_type therow,
    \n-
    155 int width,
    \n-
    156 [[maybe_unused]] int precision,
    \n-
    157 typename std::enable_if_t<Dune::IsNumber<K>::value>* sfinae = nullptr)
    \n-
    158 {
    \n-
    159 s << " "; // space in front of each entry
    \n-
    160 s.width(width); // set width for each entry anew
    \n-
    161 s << value;
    \n-
    162 }
    \n-
    \n-
    163
    \n-
    171 template<class M>
    \n-
    \n-
    172 void print_row (std::ostream& s, const M& A, typename M::size_type I,
    \n-
    173 typename M::size_type J, typename M::size_type therow,
    \n-
    174 int width, int precision,
    \n-
    175 typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr)
    \n-
    176 {
    \n-
    177 typename M::size_type i0=I;
    \n-
    178 for (typename M::size_type i=0; i<A.N(); i++)
    \n-
    179 {
    \n-
    180 if (therow>=i0 && therow<i0+MatrixDimension<M>::rowdim(A,i))
    \n-
    181 {
    \n-
    182 // the row is in this block row !
    \n-
    183 typename M::size_type j0=J;
    \n-
    184 for (typename M::size_type j=0; j<A.M(); j++)
    \n-
    185 {
    \n-
    186 // find this block
    \n-
    187 typename M::ConstColIterator it = A[i].find(j);
    \n-
    188
    \n-
    189 // print row or filler
    \n-
    190 if (it!=A[i].end())
    \n-
    191 print_row(s,*it,i0,j0,therow,width,precision);
    \n-
    192 else
    \n-
    193 fill_row(s,MatrixDimension<M>::coldim(A,j),width,precision);
    \n-
    194
    \n-
    195 // advance columns
    \n-\n-
    197 }
    \n-
    198 }
    \n-
    199 // advance rows
    \n-\n-
    201 }
    \n-
    202 }
    \n-
    \n-
    203
    \n-
    212 template<class M>
    \n-
    \n-
    213 void printmatrix (std::ostream& s, const M& A, std::string title,
    \n-
    214 std::string rowtext, int width=10, int precision=2)
    \n-
    215 {
    \n-
    216
    \n-
    217 // remember old flags
    \n-
    218 std::ios_base::fmtflags oldflags = s.flags();
    \n-
    219
    \n-
    220 // set the output format
    \n-
    221 s.setf(std::ios_base::scientific, std::ios_base::floatfield);
    \n-
    222 int oldprec = s.precision();
    \n-
    223 s.precision(precision);
    \n-
    224
    \n-
    225 // print title
    \n-
    226 s << title
    \n-
    227 << " [n=" << A.N()
    \n-
    228 << ",m=" << A.M()
    \n-
    229 << ",rowdim=" << MatrixDimension<M>::rowdim(A)
    \n-
    230 << ",coldim=" << MatrixDimension<M>::coldim(A)
    \n-
    231 << "]" << std::endl;
    \n-
    232
    \n-
    233 // print all rows
    \n-
    234 for (typename M::size_type i=0; i<MatrixDimension<M>::rowdim(A); i++)
    \n-
    235 {
    \n-
    236 s << rowtext; // start a new row
    \n-
    237 s << " "; // space in front of each entry
    \n-
    238 s.width(4); // set width for counter
    \n-
    239 s << i; // number of first entry in a line
    \n-
    240 print_row(s,A,0,0,i,width,precision); // generic print
    \n-
    241 s << std::endl; // start a new line
    \n-
    242 }
    \n-
    243
    \n-
    244 // reset the output format
    \n-
    245 s.flags(oldflags);
    \n-
    246 s.precision(oldprec);
    \n-
    247 }
    \n-
    \n-
    248
    \n-
    270 template<class B, int n, int m, class A>
    \n-
    \n-
    271 void printSparseMatrix(std::ostream& s,
    \n-\n-
    273 std::string title, std::string rowtext,
    \n-
    274 int width=3, int precision=2)
    \n-
    275 {
    \n-\n-
    277 // remember old flags
    \n-
    278 std::ios_base::fmtflags oldflags = s.flags();
    \n-
    279 // set the output format
    \n-
    280 s.setf(std::ios_base::scientific, std::ios_base::floatfield);
    \n-
    281 int oldprec = s.precision();
    \n-
    282 s.precision(precision);
    \n-
    283 // print title
    \n-
    284 s << title
    \n-
    285 << " [n=" << mat.N()
    \n-
    286 << ",m=" << mat.M()
    \n-
    287 << ",rowdim=" << MatrixDimension<Matrix>::rowdim(mat)
    \n-
    288 << ",coldim=" << MatrixDimension<Matrix>::coldim(mat)
    \n-
    289 << "]" << std::endl;
    \n-
    290
    \n-
    291 typedef typename Matrix::ConstRowIterator Row;
    \n-
    292
    \n-
    293 for(Row row=mat.begin(); row != mat.end(); ++row) {
    \n-
    294 int skipcols=0;
    \n-
    295 bool reachedEnd=false;
    \n-
    296
    \n-
    297 while(!reachedEnd) {
    \n-
    298 for(int innerrow=0; innerrow<n; ++innerrow) {
    \n-
    299 int count=0;
    \n-
    300 typedef typename Matrix::ConstColIterator Col;
    \n-
    301 Col col=row->begin();
    \n-
    302 for(; col != row->end(); ++col,++count) {
    \n-
    303 if(count<skipcols)
    \n-
    304 continue;
    \n-
    305 if(count>=skipcols+width)
    \n-
    306 break;
    \n-
    307 if(innerrow==0) {
    \n-
    308 if(count==skipcols) {
    \n-
    309 s << rowtext; // start a new row
    \n-
    310 s << " "; // space in front of each entry
    \n-
    311 s.width(4); // set width for counter
    \n-
    312 s << row.index()<<": "; // number of first entry in a line
    \n-
    313 }
    \n-
    314 s.width(4);
    \n-
    315 s<<col.index()<<": |";
    \n-
    316 } else {
    \n-
    317 if(count==skipcols) {
    \n-
    318 for(typename std::string::size_type i=0; i < rowtext.length(); i++)
    \n-
    319 s<<" ";
    \n-
    320 s<<" ";
    \n-
    321 }
    \n-
    322 s<<" |";
    \n-
    323 }
    \n-
    324 for(int innercol=0; innercol < m; ++innercol) {
    \n-
    325 s.width(9);
    \n-
    326 s<<(*col)[innerrow][innercol]<<" ";
    \n-
    327 }
    \n-
    328
    \n-
    329 s<<"|";
    \n-
    330 }
    \n-
    331 if(innerrow==n-1 && col==row->end())
    \n-
    332 reachedEnd = true;
    \n-
    333 else
    \n-
    334 s << std::endl;
    \n-
    335 }
    \n-
    336 skipcols += width;
    \n-
    337 s << std::endl;
    \n-
    338 }
    \n-
    339 s << std::endl;
    \n-
    340 }
    \n-
    341
    \n-
    342 // reset the output format
    \n-
    343 s.flags(oldflags);
    \n-
    344 s.precision(oldprec);
    \n-
    345 }
    \n-
    \n-
    346
    \n-
    347 namespace
    \n-
    348 {
    \n-
    349 template<typename T>
    \n-
    350 struct MatlabPODWriter
    \n-
    351 {
    \n-
    352 static std::ostream& write(const T& t, std::ostream& s)
    \n-
    353 {
    \n-
    354 s << t;
    \n-
    355 return s;
    \n-
    356 }
    \n-
    357 };
    \n-
    358 template<typename T>
    \n-
    359 struct MatlabPODWriter<std::complex<T> >
    \n-
    360 {
    \n-
    361 static std::ostream& write(const std::complex<T>& t, std::ostream& s)
    \n-
    362 {
    \n-
    363 s << t.real() << " " << t.imag();
    \n-
    364 return s;
    \n-
    365 }
    \n-
    366 };
    \n-
    367 } // anonymous namespace
    \n-
    368
    \n-
    378 template <class FieldType>
    \n-
    \n-
    379 void writeMatrixToMatlabHelper(const FieldType& value,
    \n-
    380 int rowOffset, int colOffset,
    \n-
    381 std::ostream& s,
    \n-
    382 typename std::enable_if_t<Dune::IsNumber<FieldType>::value>* sfinae = nullptr)
    \n-
    383 {
    \n-
    384 //+1 for Matlab numbering
    \n-
    385 s << rowOffset + 1 << " " << colOffset + 1 << " ";
    \n-
    386 MatlabPODWriter<FieldType>::write(value, s)<< std::endl;
    \n-
    387 }
    \n-
    \n-
    388
    \n-
    396 template <class MatrixType>
    \n-
    \n-
    397 void writeMatrixToMatlabHelper(const MatrixType& matrix,
    \n-
    398 int externalRowOffset, int externalColOffset,
    \n-
    399 std::ostream& s,
    \n-
    400 typename std::enable_if_t<!Dune::IsNumber<MatrixType>::value>* sfinae = nullptr)
    \n-
    401 {
    \n-
    402 // Precompute the accumulated sizes of the columns
    \n-
    403 std::vector<typename MatrixType::size_type> colOffset(matrix.M());
    \n-
    404 if (colOffset.size() > 0)
    \n-
    405 colOffset[0] = 0;
    \n-
    406
    \n-
    407 for (typename MatrixType::size_type i=0; i<matrix.M()-1; i++)
    \n-
    408 colOffset[i+1] = colOffset[i] +
    \n-\n-
    410
    \n-
    411 typename MatrixType::size_type rowOffset = 0;
    \n-
    412
    \n-
    413 // Loop over all matrix rows
    \n-
    414 for (typename MatrixType::size_type rowIdx=0; rowIdx<matrix.N(); rowIdx++)
    \n-
    415 {
    \n-
    416 auto cIt = matrix[rowIdx].begin();
    \n-
    417 auto cEndIt = matrix[rowIdx].end();
    \n-
    418
    \n-
    419 // Loop over all columns in this row
    \n-
    420 for (; cIt!=cEndIt; ++cIt)
    \n-\n-
    422 externalRowOffset+rowOffset,
    \n-
    423 externalColOffset + colOffset[cIt.index()],
    \n-
    424 s);
    \n-
    425
    \n-
    426 rowOffset += MatrixDimension<MatrixType>::rowdim(matrix, rowIdx);
    \n-
    427 }
    \n-
    428
    \n-
    429 }
    \n-
    \n-
    430
    \n-
    450 template <class MatrixType>
    \n-
    \n-
    451 void writeMatrixToMatlab(const MatrixType& matrix,
    \n-
    452 const std::string& filename, int outputPrecision = 18)
    \n-
    453 {
    \n-
    454 std::ofstream outStream(filename.c_str());
    \n-
    455 int oldPrecision = outStream.precision();
    \n-
    456 outStream.precision(outputPrecision);
    \n-
    457
    \n-
    458 writeMatrixToMatlabHelper(matrix, 0, 0, outStream);
    \n-
    459 outStream.precision(oldPrecision);
    \n-
    460 }
    \n-
    \n-
    461
    \n-
    462 // Recursively write vector entries to a stream
    \n-
    463 template<class V>
    \n-
    \n-
    464 void writeVectorToMatlabHelper (const V& v, std::ostream& stream)
    \n-
    465 {
    \n-
    466 if constexpr (IsNumber<V>()) {
    \n-
    467 stream << v << std::endl;
    \n-
    468 } else {
    \n-
    469 for (const auto& entry : v)
    \n-
    470 writeVectorToMatlabHelper(entry, stream);
    \n-
    471 }
    \n-
    472 }
    \n-
    \n-
    473
    \n-
    491 template <class VectorType>
    \n-
    \n-
    492 void writeVectorToMatlab(const VectorType& vector,
    \n-
    493 const std::string& filename, int outputPrecision = 18)
    \n-
    494 {
    \n-
    495 std::ofstream outStream(filename.c_str());
    \n-
    496 int oldPrecision = outStream.precision();
    \n-
    497 outStream.precision(outputPrecision);
    \n-
    498
    \n-
    499 writeVectorToMatlabHelper(vector, outStream);
    \n-
    500 outStream.precision(oldPrecision);
    \n-
    501 }
    \n-
    \n-
    502
    \n-
    503 namespace Impl {
    \n-
    504
    \n-
    506 struct NullStream {
    \n-
    507 template <class Any>
    \n-
    508 friend NullStream &operator<<(NullStream &dev0, Any &&) {
    \n-
    509 return dev0;
    \n-
    510 }
    \n-
    511 };
    \n-
    512
    \n-
    514 // svg shall be closed with a group and an svg. i.e. "</g></svg>"
    \n-
    515 template <class Stream, class SVGMatrixOptions>
    \n-
    516 void writeSVGMatrixHeader(Stream &out, const SVGMatrixOptions &opts,
    \n-
    517 std::pair<std::size_t, size_t> offsets) {
    \n-
    518 auto [col_offset, row_offset] = offsets;
    \n-
    519 double width = opts.width;
    \n-
    520 double height = opts.height;
    \n-
    521 // if empty, we try to figure out a sensible value of width and height
    \n-
    522 if (opts.width == 0 and opts.height == 0)
    \n-
    523 width = height = 500;
    \n-
    524 if (opts.width == 0)
    \n-
    525 width = opts.height * (double(col_offset) / row_offset);
    \n-
    526 if (opts.height == 0)
    \n-
    527 height = opts.width * (double(row_offset) / col_offset);
    \n-
    528
    \n-
    529 // scale group w.r.t final offsets
    \n-
    530 double scale_width = width / col_offset;
    \n-
    531 double scale_height = height / row_offset;
    \n-
    532
    \n-
    533 // write the header text
    \n-
    534 out << "<svg xmlns='http://www.w3.org/2000/svg' width='" << std::ceil(width)
    \n-
    535 << "' height='" << std::ceil(height) << "' version='1.1'>\\n"
    \n-
    536 << "<style>\\n"
    \n-
    537 << opts.style << "</style>\\n"
    \n-
    538 << "<g transform='scale(" << scale_width << " " << scale_height
    \n-
    539 << ")'>\\n";
    \n-
    540 }
    \n-
    541
    \n-
    543 template <class Mat, class Stream, class SVGMatrixOptions,
    \n-
    544 class RowPrefix, class ColPrefix>
    \n-
    545 std::pair<std::size_t, size_t>
    \n-
    546 writeSVGMatrix(const Mat &mat, Stream &out, SVGMatrixOptions opts,
    \n-
    547 RowPrefix row_prefix, ColPrefix col_prefix) {
    \n-
    548 // get values to fill the offests
    \n-
    549 const auto& block_size = opts.block_size;
    \n-
    550 const auto& interspace = opts.interspace;
    \n-
    551
    \n-
    552 const std::size_t rows = mat.N();
    \n-
    553 const std::size_t cols = mat.M();
    \n-
    554
    \n-
    555 // disable header write for recursive calls
    \n-
    556 const bool write_header = opts.write_header;
    \n-
    557 opts.write_header = false;
    \n-
    558
    \n-
    559 // counter of offsets for every block
    \n-
    560 std::size_t row_offset = interspace;
    \n-
    561 std::size_t col_offset = interspace;
    \n-
    562
    \n-
    563 // lambda helper: for-each value
    \n-
    564 auto for_each_entry = [&mat](const auto &call_back) {
    \n-
    565 for (auto row_it = mat.begin(); row_it != mat.end(); ++row_it) {
    \n-
    566 for (auto col_it = row_it->begin(); col_it != row_it->end(); ++col_it) {
    \n-
    567 call_back(row_it.index(), col_it.index(), *col_it);
    \n-
    568 }
    \n-
    569 }
    \n-
    570 };
    \n-
    571
    \n-
    572 // accumulate content in another stream so that we write in correct order
    \n-
    573 std::stringstream ss;
    \n-
    574
    \n-
    575 // we need to append current row and col values to the prefixes
    \n-
    576 row_prefix.push_back(0);
    \n-
    577 col_prefix.push_back(0);
    \n-
    578
    \n-
    579 // do we need to write nested matrix blocks?
    \n-
    580 if constexpr (Dune::blockLevel<typename Mat::block_type>() == 0) {
    \n-
    581 // simple case: write svg block content to stream for each value
    \n-
    582 for_each_entry([&](const auto &row, const auto &col, const auto &val) {
    \n-
    583 std::size_t x_off = interspace + col * (interspace + block_size);
    \n-
    584 std::size_t y_off = interspace + row * (interspace + block_size);
    \n-
    585 row_prefix.back() = row;
    \n-
    586 col_prefix.back() = col;
    \n-
    587 opts.writeSVGBlock(ss, row_prefix, col_prefix, val,
    \n-
    588 {x_off, y_off, block_size, block_size});
    \n-
    589 });
    \n-
    590 col_offset += cols * (block_size + interspace);
    \n-
    591 row_offset += rows * (block_size + interspace);
    \n-
    592 } else {
    \n-
    593 // before we write anything, we need to calculate the
    \n-
    594 // offset for every {row,col} index
    \n-
    595 const auto null_offset = std::numeric_limits<std::size_t>::max();
    \n-
    596 std::vector<std::size_t> col_offsets(cols + 1, null_offset);
    \n-
    597 std::vector<std::size_t> row_offsets(rows + 1, null_offset);
    \n-
    598 for_each_entry([&](const auto &row, const auto &col, const auto &val) {
    \n-
    599 NullStream dev0;
    \n-
    600 // get size of sub-block
    \n-
    601 auto sub_size =
    \n-
    602 writeSVGMatrix(val, dev0, opts, row_prefix, col_prefix);
    \n-
    603
    \n-
    604 // if we didn't see col size before
    \n-
    605 if (col_offsets[col + 1] == null_offset) // write it in the offset vector
    \n-
    606 col_offsets[col + 1] = sub_size.first;
    \n-
    607
    \n-
    608 // repeat proces for row sizes
    \n-
    609 if (row_offsets[row + 1] == null_offset)
    \n-
    610 row_offsets[row + 1] = sub_size.second;
    \n-
    611 });
    \n-
    612
    \n-
    613 // if some rows/cols were not visited, make an educated guess with the minimum offset
    \n-
    614 auto min_row_offset = *std::min_element(begin(row_offsets), end(row_offsets));
    \n-
    615 std::replace(begin(row_offsets), end(row_offsets), null_offset, min_row_offset);
    \n-
    616 auto min_col_offset = *std::min_element(begin(col_offsets), end(col_offsets));
    \n-
    617 std::replace(begin(col_offsets), end(col_offsets), null_offset, min_col_offset);
    \n-
    618
    \n-
    619 // we have sizes for every block: to get offsets we make a partial sum
    \n-
    620 col_offsets[0] = interspace;
    \n-
    621 row_offsets[0] = interspace;
    \n-
    622 for (std::size_t i = 1; i < col_offsets.size(); i++)
    \n-
    623 col_offsets[i] += col_offsets[i - 1] + interspace;
    \n-
    624 for (std::size_t i = 1; i < row_offsets.size(); i++)
    \n-
    625 row_offsets[i] += row_offsets[i - 1] + interspace;
    \n-
    626
    \n-
    627 for_each_entry([&](const auto &row, const auto &col, const auto &val) {
    \n-
    628 // calculate svg view from offsets
    \n-
    629 std::size_t width =
    \n-
    630 col_offsets[col + 1] - col_offsets[col] - interspace;
    \n-
    631 std::size_t height =
    \n-
    632 row_offsets[row + 1] - row_offsets[row] - interspace;
    \n-
    633 row_prefix.back() = row;
    \n-
    634 col_prefix.back() = col;
    \n-
    635 // content of the sub-block has origin at {0,0}: shift it to the correct place
    \n-
    636 ss << "<svg x='" << col_offsets[col] << "' y='" << row_offsets[row]
    \n-
    637 << "' width='" << width << "' height='" << height << "'>\\n";
    \n-
    638 // write a nested svg with the contents of the sub-block
    \n-
    639 writeSVGMatrix(val, ss, opts, row_prefix, col_prefix);
    \n-
    640 ss << "</svg>\\n";
    \n-
    641 });
    \n-
    642 col_offset = col_offsets.back();
    \n-
    643 row_offset = row_offsets.back();
    \n-
    644 }
    \n-
    645
    \n-
    646 // write content in order!
    \n-
    647 // (i) if required, first header
    \n-
    648 if (write_header)
    \n-
    649 writeSVGMatrixHeader(out, opts, {col_offset, row_offset});
    \n-
    650
    \n-
    651 col_prefix.pop_back();
    \n-
    652 row_prefix.pop_back();
    \n-
    653 // (ii) an svg block for this level
    \n-
    654 opts.writeSVGBlock(out, row_prefix, col_prefix, mat,
    \n-
    655 {0, 0, col_offset, row_offset});
    \n-
    656 // (iii) the content of the matrix
    \n-
    657 out << ss.str();
    \n-
    658 // (iv) if required, close the header
    \n-
    659 if (write_header)
    \n-
    660 out << "</g>\\n</svg>\\n";
    \n-
    661
    \n-
    662 // return the total required for this block
    \n-
    663 return {col_offset, row_offset};
    \n-
    664 }
    \n-
    665 } // namespace Impl
    \n-
    666
    \n-
    667
    \n-
    \n-\n-
    676 std::size_t block_size = 10;
    \n-
    678 std::size_t interspace = 5;
    \n-
    680 std::size_t width = 500;
    \n-
    682 std::size_t height = 0;
    \n-
    684 bool write_header = true;
    \n-
    686 std::string style = " .matrix-block {\\n"
    \n-
    687 " fill: cornflowerblue;\\n"
    \n-
    688 " fill-opacity: 0.4;\\n"
    \n-
    689 " stroke-width: 2;\\n"
    \n-
    690 " stroke: black;\\n"
    \n-
    691 " stroke-opacity: 0.5;\\n"
    \n-
    692 " }\\n"
    \n-
    693 " .matrix-block:hover {\\n"
    \n-
    694 " fill: lightcoral;\\n"
    \n-
    695 " fill-opacity: 0.4;\\n"
    \n-
    696 " stroke-opacity: 1;\\n"
    \n-
    697 " }\\n";
    \n-
    698
    \n-
    710 std::function<std::string(const double&)> color_fill;
    \n-
    711
    \n-
    717 template <class RowPrefix, class ColPrefix>
    \n-
    \n-
    718 std::string blockStyleClass(const RowPrefix &row_prefix,
    \n-
    719 const ColPrefix &col_prefix) const {
    \n-
    720 // here, you can potentially give a different style to each block
    \n-
    721 return "matrix-block";
    \n-
    722 }
    \n-
    \n-
    723
    \n-
    725 bool write_block_title = true;
    \n-
    726
    \n-
    732 template <class Stream, class RowPrefix, class ColPrefix, class Block>
    \n-
    \n-
    733 void writeBlockTitle(Stream& out, const RowPrefix &row_prefix,
    \n-
    734 const ColPrefix &col_prefix,
    \n-
    735 const Block &block) const {
    \n-
    736 if (this->write_block_title) {
    \n-
    737 out << "<title>";
    \n-
    738 assert(row_prefix.size() == col_prefix.size());
    \n-
    739 for (std::size_t i = 0; i < row_prefix.size(); ++i)
    \n-
    740 out << "[" << row_prefix[i] << ", "<< col_prefix[i] << "]";
    \n-
    741 if constexpr (Dune::blockLevel<Block>() == 0)
    \n-
    742 out << ": " << block;
    \n-
    743 out << "</title>\\n";
    \n-
    744 }
    \n-
    745 }
    \n-
    \n-
    746
    \n-
    768 template <class Stream, class RowPrefix, class ColPrefix, class Block>
    \n-
    \n-
    769 void writeSVGBlock(Stream &out,
    \n-
    770 const RowPrefix &row_prefix,
    \n-
    771 const ColPrefix &col_prefix, const Block block,
    \n-
    772 const std::array<std::size_t, 4> &svg_box) const {
    \n-
    773 // get bounding box values
    \n-
    774 auto &[x_off, y_off, width, height] = svg_box;
    \n-
    775 // get style class
    \n-
    776 std::string block_class = this->blockStyleClass(row_prefix, col_prefix);
    \n-
    777 // write a rectangle on the bounding box
    \n-
    778 out << "<rect class='" << block_class << "' x='" << x_off << "' y='"
    \n-
    779 << y_off << "' width='" << width << "' height='" << height << "'";
    \n-
    780 if constexpr (Dune::blockLevel<Block>() == 0 and std::is_convertible<Block,double>{})
    \n-
    781 if (color_fill)
    \n-
    782 out << " style='fill-opacity: 1;fill:" << color_fill(double(block)) << "'";
    \n-
    783
    \n-
    784 out << ">\\n";
    \n-
    785 // give the rectangle a title (in html this shows info about the block)
    \n-
    786 this->writeBlockTitle(out,row_prefix, col_prefix, block);
    \n-
    787 // close rectangle
    \n-
    788 out << "</rect>\\n";
    \n-
    789 }
    \n-
    \n-
    790 };
    \n-
    \n-
    791
    \n-
    806 template <class Mat, class SVGOptions = DefaultSVGMatrixOptions>
    \n-
    \n-
    807 void writeSVGMatrix(const Mat &mat, std::ostream &out,
    \n-
    808 SVGOptions opts = {}) {
    \n-
    809 // We need a vector that can fit all the multi-indices for rows and colums
    \n-
    810 using IndexPrefix = Dune::ReservedVector<std::size_t, blockLevel<Mat>()>;
    \n-
    811 // Call overload for Mat type
    \n-
    812 Impl::writeSVGMatrix(mat, out, opts, IndexPrefix{}, IndexPrefix{});
    \n-
    813 }
    \n-
    \n-
    814
    \n-
    817} // namespace Dune
    \n-
    818
    \n-
    819#endif
    \n-
    Helper functions for determining the vector/matrix block level.
    \n-\n-
    Some handy generic functions for ISTL matrices.
    \n-
    Implementation of the BCRSMatrix class.
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    void writeSVGMatrix(const Mat &mat, std::ostream &out, SVGOptions opts={})
    Writes the visualization of matrix in the SVG format.
    Definition io.hh:807
    \n-
    void writeMatrixToMatlab(const MatrixType &matrix, const std::string &filename, int outputPrecision=18)
    Writes sparse matrix in a Matlab-readable format.
    Definition io.hh:451
    \n-
    void print_row(std::ostream &s, const K &value, typename FieldMatrix< K, 1, 1 >::size_type I, typename FieldMatrix< K, 1, 1 >::size_type J, typename FieldMatrix< K, 1, 1 >::size_type therow, int width, int precision, typename std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)
    Print one row of a matrix, specialization for number types.
    Definition io.hh:151
    \n-
    void printmatrix(std::ostream &s, const M &A, std::string title, std::string rowtext, int width=10, int precision=2)
    Print a generic block matrix.
    Definition io.hh:213
    \n-
    void printvector(std::ostream &s, const V &v, std::string title, std::string rowtext, int columns=1, int width=10, int precision=2)
    Print an ISTL vector.
    Definition io.hh:89
    \n-
    void writeMatrixToMatlabHelper(const FieldType &value, int rowOffset, int colOffset, std::ostream &s, typename std::enable_if_t< Dune::IsNumber< FieldType >::value > *sfinae=nullptr)
    Helper method for the writeMatrixToMatlab routine.
    Definition io.hh:379
    \n-
    void writeVectorToMatlabHelper(const V &v, std::ostream &stream)
    Definition io.hh:464
    \n-
    void writeVectorToMatlab(const VectorType &vector, const std::string &filename, int outputPrecision=18)
    Writes vectors in a Matlab-readable format.
    Definition io.hh:492
    \n-
    void recursive_printvector(std::ostream &s, const V &v, std::string rowtext, int &counter, int columns, int width)
    Recursively print a vector.
    Definition io.hh:52
    \n-
    void printSparseMatrix(std::ostream &s, const BCRSMatrix< FieldMatrix< B, n, m >, A > &mat, std::string title, std::string rowtext, int width=3, int precision=2)
    Prints a BCRSMatrix with fixed sized blocks.
    Definition io.hh:271
    \n-
    void fill_row(std::ostream &s, int m, int width, int precision)
    Print a row of zeros for a non-existing block.
    Definition io.hh:133
    \n-
    STL namespace.
    \n+
    \n+
    120 ParallelScalarProduct (std::shared_ptr<const communication_type> com, SolverCategory::Category cat)
    \n+
    121 : _communication(com), _category(cat)
    \n+
    122 {}
    \n+
    \n+
    123
    \n+
    \n+\n+
    131 : ParallelScalarProduct(stackobject_to_shared_ptr(com), cat)
    \n+
    132 {}
    \n+
    \n+
    133
    \n+
    134
    \n+
    \n+
    139 virtual field_type dot (const X& x, const X& y) const override
    \n+
    140 {
    \n+
    141 field_type result(0);
    \n+
    142 _communication->dot(x,y,result); // explicitly loop and apply masking
    \n+
    143 return result;
    \n+
    144 }
    \n+
    \n+
    145
    \n+
    \n+
    149 virtual real_type norm (const X& x) const override
    \n+
    150 {
    \n+
    151 return _communication->norm(x);
    \n+
    152 }
    \n+
    \n+
    153
    \n+
    \n+
    155 virtual SolverCategory::Category category() const override
    \n+
    156 {
    \n+
    157 return _category;
    \n+
    158 }
    \n+
    \n+
    159
    \n+
    160 private:
    \n+
    161 std::shared_ptr<const communication_type> _communication;
    \n+
    162 SolverCategory::Category _category;
    \n+
    163 };
    \n+
    \n+
    164
    \n+
    166 template<class X>
    \n+
    \n+\n+
    168 {
    \n+
    169 using ScalarProduct<X>::ScalarProduct;
    \n+
    170 };
    \n+
    \n+
    171
    \n+
    177 template<class X, class C>
    \n+
    \n+\n+
    179 {
    \n+
    180 public:
    \n+
    \n+
    181 NonoverlappingSchwarzScalarProduct (std::shared_ptr<const C> comm) :
    \n+
    182 ParallelScalarProduct<X,C>(comm,SolverCategory::nonoverlapping) {}
    \n+
    \n+
    183
    \n+
    \n+\n+
    185 ParallelScalarProduct<X,C>(comm,SolverCategory::nonoverlapping) {}
    \n+
    \n+
    186 };
    \n+
    \n+
    187
    \n+
    199 template<class X, class C>
    \n+
    \n+\n+
    201 {
    \n+
    202 public:
    \n+
    \n+
    203 OverlappingSchwarzScalarProduct (std::shared_ptr<const C> comm) :
    \n+
    204 ParallelScalarProduct<X,C>(comm, SolverCategory::overlapping) {}
    \n+
    \n+
    205
    \n+
    \n+\n+
    207 ParallelScalarProduct<X,C>(comm,SolverCategory::overlapping) {}
    \n+
    \n+
    208 };
    \n+
    \n+
    209
    \n+
    223 template<class X, class Comm>
    \n+
    \n+
    224 std::shared_ptr<ScalarProduct<X>> makeScalarProduct(std::shared_ptr<const Comm> comm, SolverCategory::Category category)
    \n+
    225 {
    \n+
    226 switch(category)
    \n+
    227 {
    \n+\n+
    229 return
    \n+
    230 std::make_shared<ScalarProduct<X>>();
    \n+
    231 default:
    \n+
    232 return
    \n+
    233 std::make_shared<ParallelScalarProduct<X,Comm>>(comm,category);
    \n+
    234 }
    \n+
    235 }
    \n+
    \n+
    236
    \n+
    241 template<class X, class Comm>
    \n+
    \n+
    242 std::shared_ptr<ScalarProduct<X>> createScalarProduct(const Comm& comm, SolverCategory::Category category)
    \n+
    243 { return makeScalarProduct<X>(stackobject_to_shared_ptr(comm), category); }
    \n+
    \n+
    244
    \n+
    245} // end namespace Dune
    \n+
    246
    \n+
    247#endif
    \n+\n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n
    Definition allocator.hh:11
    \n-
    Definition matrixutils.hh:211
    \n-
    static auto coldim(const M &A)
    Definition matrixutils.hh:219
    \n-
    static auto rowdim(const M &A)
    Definition matrixutils.hh:214
    \n-
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    Default options class to write SVG matrices.
    Definition io.hh:674
    \n-
    std::string style
    CSS style block to write in header.
    Definition io.hh:686
    \n-
    std::size_t width
    Final width size (pixels) of the SVG header. If 0, size is automatic.
    Definition io.hh:680
    \n-
    std::function< std::string(const double &)> color_fill
    Color fill for default options.
    Definition io.hh:710
    \n-
    std::size_t block_size
    size (pixels) of the deepst block/value of the matrix
    Definition io.hh:676
    \n-
    void writeSVGBlock(Stream &out, const RowPrefix &row_prefix, const ColPrefix &col_prefix, const Block block, const std::array< std::size_t, 4 > &svg_box) const
    Write an SVG object for a given block/value in the matrix.
    Definition io.hh:769
    \n-
    void writeBlockTitle(Stream &out, const RowPrefix &row_prefix, const ColPrefix &col_prefix, const Block &block) const
    Helper function writes a title for a given block and prefix.
    Definition io.hh:733
    \n-
    std::size_t interspace
    size (pixels) of the interspace between blocks
    Definition io.hh:678
    \n-
    bool write_block_title
    (Helper) Whether to write a title on the rectangle value
    Definition io.hh:725
    \n-
    std::size_t height
    Final height size (pixels) of the SVG header. If 0, size is automatic.
    Definition io.hh:682
    \n-
    bool write_header
    Whether to write the SVG header.
    Definition io.hh:684
    \n-
    std::string blockStyleClass(const RowPrefix &row_prefix, const ColPrefix &col_prefix) const
    Helper function that returns an style class for a given prefix.
    Definition io.hh:718
    \n-
    ConstIterator class for sequential access.
    Definition matrix.hh:404
    \n-
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n-
    RowIterator end()
    Get iterator to one beyond last row.
    Definition matrix.hh:620
    \n-
    RowIterator begin()
    Get iterator to first row.
    Definition matrix.hh:614
    \n-
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n-
    size_type M() const
    Return the number of columns.
    Definition matrix.hh:700
    \n-
    size_type N() const
    Return the number of rows.
    Definition matrix.hh:695
    \n-
    Definition matrixutils.hh:27
    \n+
    std::shared_ptr< ScalarProduct< X > > createScalarProduct(const Comm &comm, SolverCategory::Category category)
    Definition scalarproducts.hh:242
    \n+
    std::shared_ptr< ScalarProduct< X > > makeScalarProduct(std::shared_ptr< const Comm > comm, SolverCategory::Category category)
    Choose the approriate scalar product for a solver category.
    Definition scalarproducts.hh:224
    \n+
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n+
    virtual field_type dot(const X &x, const X &y) const
    Dot product of two vectors. It is assumed that the vectors are consistent on the interior+border part...
    Definition scalarproducts.hh:63
    \n+
    virtual SolverCategory::Category category() const
    Category of the scalar product (see SolverCategory::Category)
    Definition scalarproducts.hh:77
    \n+
    X::field_type field_type
    Definition scalarproducts.hh:56
    \n+
    X domain_type
    export types, they come from the derived class
    Definition scalarproducts.hh:55
    \n+
    virtual ~ScalarProduct()
    every abstract base class has a virtual destructor
    Definition scalarproducts.hh:83
    \n+
    FieldTraits< field_type >::real_type real_type
    Definition scalarproducts.hh:57
    \n+
    virtual real_type norm(const X &x) const
    Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.
    Definition scalarproducts.hh:71
    \n+
    Scalar product for overlapping Schwarz methods.
    Definition scalarproducts.hh:99
    \n+
    virtual field_type dot(const X &x, const X &y) const override
    Dot product of two vectors. It is assumed that the vectors are consistent on the interior+border part...
    Definition scalarproducts.hh:139
    \n+
    virtual SolverCategory::Category category() const override
    Category of the scalar product (see SolverCategory::Category)
    Definition scalarproducts.hh:155
    \n+
    FieldTraits< field_type >::real_type real_type
    Definition scalarproducts.hh:108
    \n+
    C communication_type
    The type of the communication object.
    Definition scalarproducts.hh:113
    \n+
    ParallelScalarProduct(const communication_type &com, SolverCategory::Category cat)
    Definition scalarproducts.hh:130
    \n+
    X domain_type
    The type of the vector to compute the scalar product on.
    Definition scalarproducts.hh:105
    \n+
    ParallelScalarProduct(std::shared_ptr< const communication_type > com, SolverCategory::Category cat)
    Definition scalarproducts.hh:120
    \n+
    X::field_type field_type
    The field type used by the vector type domain_type.
    Definition scalarproducts.hh:107
    \n+
    virtual real_type norm(const X &x) const override
    Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.
    Definition scalarproducts.hh:149
    \n+
    Default implementation for the scalar case.
    Definition scalarproducts.hh:168
    \n+
    Nonoverlapping Scalar Product with communication object.
    Definition scalarproducts.hh:179
    \n+
    NonoverlappingSchwarzScalarProduct(std::shared_ptr< const C > comm)
    Definition scalarproducts.hh:181
    \n+
    NonoverlappingSchwarzScalarProduct(const C &comm)
    Definition scalarproducts.hh:184
    \n+
    Scalar product for overlapping Schwarz methods.
    Definition scalarproducts.hh:201
    \n+
    OverlappingSchwarzScalarProduct(std::shared_ptr< const C > comm)
    Definition scalarproducts.hh:203
    \n+
    OverlappingSchwarzScalarProduct(const C &comm)
    Definition scalarproducts.hh:206
    \n+
    Categories for the solvers.
    Definition solvercategory.hh:22
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,801 +1,269 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-io.hh\n+scalarproducts.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_IO_HH\n-6#define DUNE_ISTL_IO_HH\n+5#ifndef DUNE_ISTL_SCALARPRODUCTS_HH\n+6#define DUNE_ISTL_SCALARPRODUCTS_HH\n 7\n 8#include \n 9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14#include \n-15\n-16#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n-17#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-18#include \n-19#include \n-20#include \n-21#include \n-22\n-23#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-24#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n-25\n-26namespace _\bD_\bu_\bn_\be {\n-27\n-40 //\n-41 // pretty printing of vectors\n-42 //\n-43\n-51 template\n-_\b5_\b2 void _\br_\be_\bc_\bu_\br_\bs_\bi_\bv_\be_\b__\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br (std::ostream& s, const V& v, std::string\n-rowtext,\n-53 int& counter, int columns, int width)\n-54 {\n-55 if constexpr (IsNumber())\n-56 {\n-57 // Print one number\n-58 if (counter%columns==0)\n-59 {\n-60 s << rowtext; // start a new row\n-61 s << \" \"; // space in front of each entry\n-62 s.width(4); // set width for counter\n-63 s << counter; // number of first entry in a line\n-64 }\n-65 s << \" \"; // space in front of each entry\n-66 s.width(width); // set width for each entry anew\n-67 s << v; // yeah, the number !\n-68 counter++; // increment the counter\n-69 if (counter%columns==0)\n-70 s << std::endl; // start a new line\n-71 }\n-72 else\n-73 {\n-74 // Recursively print a vector\n-75 for (const auto& entry : v)\n-76 _\br_\be_\bc_\bu_\br_\bs_\bi_\bv_\be_\b__\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(s,entry,rowtext,counter,columns,width);\n-77 }\n-78 }\n-79\n-80\n-88 template\n-_\b8_\b9 void _\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br (std::ostream& s, const V& v, std::string title,\n-90 std::string rowtext, int columns=1, int width=10,\n-91 int precision=2)\n-92 {\n-93 // count the numbers printed to make columns\n-94 int counter=0;\n-95\n-96 // remember old flags\n-97 std::ios_base::fmtflags oldflags = s.flags();\n-98\n-99 // set the output format\n-100 s.setf(std::ios_base::scientific, std::ios_base::floatfield);\n-101 int oldprec = s.precision();\n-102 s.precision(precision);\n-103\n-104 // print title\n-105 s << title << \" [blocks=\" << v.N() << \",dimension=\" << v.dim() << \"]\"\n-106 << std::endl;\n-107\n-108 // print data from all blocks\n-109 _\br_\be_\bc_\bu_\br_\bs_\bi_\bv_\be_\b__\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(s,v,rowtext,counter,columns,width);\n-110\n-111 // check if new line is required\n-112 if (counter%columns!=0)\n-113 s << std::endl;\n+10#include \n+11#include \n+12#include \n+13#include \n+14\n+15#include \n+16#include \n+17\n+18#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+19#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n+20\n+21\n+22namespace _\bD_\bu_\bn_\be {\n+51 template\n+_\b5_\b2 class _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt {\n+53 public:\n+_\b5_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b5_\b6 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b5_\b7 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+58\n+_\b6_\b3 virtual _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bd_\bo_\bt (const X& x, const X& y) const\n+64 {\n+65 return x.dot(y);\n+66 }\n+67\n+_\b7_\b1 virtual _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bn_\bo_\br_\bm (const X& x) const\n+72 {\n+73 return x.two_norm();\n+74 }\n+75\n+_\b7_\b7 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+78 {\n+79 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+80 }\n+81\n+_\b8_\b3 virtual _\b~_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt () {}\n+84 };\n+85\n+97 template\n+_\b9_\b8 class _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt : public _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+99 {\n+100 public:\n+_\b1_\b0_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b1_\b0_\b7 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b1_\b0_\b8 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+_\b1_\b1_\b3 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n 114\n-115 // reset the output format\n-116 s.flags(oldflags);\n-117 s.precision(oldprec);\n-118 }\n-119\n-120\n-122 //\n-123 // pretty printing of matrices\n-124 //\n-125\n-_\b1_\b3_\b3 inline void _\bf_\bi_\bl_\bl_\b__\br_\bo_\bw (std::ostream& s, int m, int width, [[maybe_unused]]\n-int precision)\n-134 {\n-135 for (int j=0; j\n-_\b1_\b5_\b1 void _\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw (std::ostream& s, const K& value,\n-152 [[maybe_unused]] typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\b1_\b,_\b1_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be I,\n-153 [[maybe_unused]] typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\b1_\b,_\b1_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be J,\n-154 [[maybe_unused]] typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\b1_\b,_\b1_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be therow,\n-155 int width,\n-156 [[maybe_unused]] int precision,\n-157 typename std::enable_if_t::value>* sfinae = nullptr)\n-158 {\n-159 s << \" \"; // space in front of each entry\n-160 s.width(width); // set width for each entry anew\n-161 s << value;\n-162 }\n-163\n-171 template\n-_\b1_\b7_\b2 void _\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw (std::ostream& s, const M& A, typename M::size_type I,\n-173 typename M::size_type J, typename M::size_type therow,\n-174 int width, int precision,\n-175 typename std::enable_if_t::value>* sfinae = nullptr)\n-176 {\n-177 typename M::size_type i0=I;\n-178 for (typename M::size_type i=0; i com,\n+_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by cat)\n+121 : _communication(com), _category(cat)\n+122 {}\n+123\n+_\b1_\b3_\b0 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& com, _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:\n+_\bC_\ba_\bt_\be_\bg_\bo_\br_\by cat)\n+131 : _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(stackobject_to_shared_ptr(com), cat)\n+132 {}\n+133\n+134\n+_\b1_\b3_\b9 virtual _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bd_\bo_\bt (const X& x, const X& y) const override\n+140 {\n+141 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be result(0);\n+142 _communication->dot(x,y,result); // explicitly loop and apply masking\n+143 return result;\n+144 }\n+145\n+_\b1_\b4_\b9 virtual _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bn_\bo_\br_\bm (const X& x) const override\n+150 {\n+151 return _communication->norm(x);\n+152 }\n+153\n+_\b1_\b5_\b5 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const override\n+156 {\n+157 return _category;\n+158 }\n+159\n+160 private:\n+161 std::shared_ptr _communication;\n+162 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _category;\n+163 };\n+164\n+166 template\n+_\b1_\b6_\b7 class _\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt : public _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+168 {\n+169 using _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt::ScalarProduct;\n+170 };\n+171\n+177 template\n+_\b1_\b7_\b8 class _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt : public\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n 179 {\n-180 if (therow>=i0 && therow_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(A,i))\n-181 {\n-182 // the row is in this block row !\n-183 typename M::size_type j0=J;\n-184 for (typename M::size_type j=0; j_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(A,j),width,precision);\n-194\n-195 // advance columns\n-196 j0 += _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(A,j);\n-197 }\n-198 }\n-199 // advance rows\n-200 i0 += _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(A,i);\n-201 }\n-202 }\n-203\n-212 template\n-_\b2_\b1_\b3 void _\bp_\br_\bi_\bn_\bt_\bm_\ba_\bt_\br_\bi_\bx (std::ostream& s, const M& A, std::string title,\n-214 std::string rowtext, int width=10, int precision=2)\n-215 {\n-216\n-217 // remember old flags\n-218 std::ios_base::fmtflags oldflags = s.flags();\n-219\n-220 // set the output format\n-221 s.setf(std::ios_base::scientific, std::ios_base::floatfield);\n-222 int oldprec = s.precision();\n-223 s.precision(precision);\n-224\n-225 // print title\n-226 s << title\n-227 << \" [n=\" << A._\bN()\n-228 << \",m=\" << A._\bM()\n-229 << \",rowdim=\" << _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(A)\n-230 << \",coldim=\" << _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(A)\n-231 << \"]\" << std::endl;\n-232\n-233 // print all rows\n-234 for (typename M::size_type i=0; i::rowdim(A); i++)\n-235 {\n-236 s << rowtext; // start a new row\n-237 s << \" \"; // space in front of each entry\n-238 s.width(4); // set width for counter\n-239 s << i; // number of first entry in a line\n-240 _\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw(s,A,0,0,i,width,precision); // generic print\n-241 s << std::endl; // start a new line\n-242 }\n-243\n-244 // reset the output format\n-245 s.flags(oldflags);\n-246 s.precision(oldprec);\n-247 }\n-248\n-270 template\n-_\b2_\b7_\b1 void _\bp_\br_\bi_\bn_\bt_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx(std::ostream& s,\n-272 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bn_\b,_\bm_\b>,A>& _\bm_\ba_\bt,\n-273 std::string title, std::string rowtext,\n-274 int width=3, int precision=2)\n-275 {\n-276 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n-277 // remember old flags\n-278 std::ios_base::fmtflags oldflags = s.flags();\n-279 // set the output format\n-280 s.setf(std::ios_base::scientific, std::ios_base::floatfield);\n-281 int oldprec = s.precision();\n-282 s.precision(precision);\n-283 // print title\n-284 s << title\n-285 << \" [n=\" << _\bm_\ba_\bt._\bN()\n-286 << \",m=\" << _\bm_\ba_\bt._\bM()\n-287 << \",rowdim=\" << _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(_\bm_\ba_\bt)\n-288 << \",coldim=\" << _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(_\bm_\ba_\bt)\n-289 << \"]\" << std::endl;\n-290\n-291 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Row;\n-292\n-293 for(Row row=_\bm_\ba_\bt._\bb_\be_\bg_\bi_\bn(); row != _\bm_\ba_\bt._\be_\bn_\bd(); ++row) {\n-294 int skipcols=0;\n-295 bool reachedEnd=false;\n-296\n-297 while(!reachedEnd) {\n-298 for(int innerrow=0; innerrowbegin();\n-302 for(; _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl,++count) {\n-303 if(count=skipcols+width)\n-306 break;\n-307 if(innerrow==0) {\n-308 if(count==skipcols) {\n-309 s << rowtext; // start a new row\n-310 s << \" \"; // space in front of each entry\n-311 s.width(4); // set width for counter\n-312 s << row.index()<<\": \"; // number of first entry in a line\n-313 }\n-314 s.width(4);\n-315 s<<_\bc_\bo_\bl.index()<<\": |\";\n-316 } else {\n-317 if(count==skipcols) {\n-318 for(typename std::string::size_type i=0; i < rowtext.length(); i++)\n-319 s<<\" \";\n-320 s<<\" \";\n-321 }\n-322 s<<\" |\";\n-323 }\n-324 for(int innercol=0; innercol < m; ++innercol) {\n-325 s.width(9);\n-326 s<<(*col)[innerrow][innercol]<<\" \";\n-327 }\n-328\n-329 s<<\"|\";\n-330 }\n-331 if(innerrow==n-1 && _\bc_\bo_\bl==row->end())\n-332 reachedEnd = true;\n-333 else\n-334 s << std::endl;\n-335 }\n-336 skipcols += width;\n-337 s << std::endl;\n-338 }\n-339 s << std::endl;\n-340 }\n-341\n-342 // reset the output format\n-343 s.flags(oldflags);\n-344 s.precision(oldprec);\n-345 }\n-346\n-347 namespace\n-348 {\n-349 template\n-350 struct MatlabPODWriter\n-351 {\n-352 static std::ostream& write(const T& t, std::ostream& s)\n-353 {\n-354 s << t;\n-355 return s;\n-356 }\n-357 };\n-358 template\n-359 struct MatlabPODWriter<_\bs_\bt_\bd::complex >\n-360 {\n-361 static std::ostream& write(const std::complex& t, std::ostream& s)\n-362 {\n-363 s << t.real() << \" \" << t.imag();\n-364 return s;\n-365 }\n-366 };\n-367 } // anonymous namespace\n-368\n-378 template \n-_\b3_\b7_\b9 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br(const FieldType& value,\n-380 int rowOffset, int colOffset,\n-381 std::ostream& s,\n-382 typename std::enable_if_t::value>* sfinae =\n-nullptr)\n-383 {\n-384 //+1 for Matlab numbering\n-385 s << rowOffset + 1 << \" \" << colOffset + 1 << \" \";\n-386 MatlabPODWriter::write(value, s)<< std::endl;\n-387 }\n-388\n-396 template \n-_\b3_\b9_\b7 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br(const MatrixType& matrix,\n-398 int externalRowOffset, int externalColOffset,\n-399 std::ostream& s,\n-400 typename std::enable_if_t::value>* sfinae =\n-nullptr)\n-401 {\n-402 // Precompute the accumulated sizes of the columns\n-403 std::vector colOffset(matrix.M());\n-404 if (colOffset.size() > 0)\n-405 colOffset[0] = 0;\n-406\n-407 for (typename MatrixType::size_type i=0; i_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(matrix,i);\n-410\n-411 typename MatrixType::size_type rowOffset = 0;\n-412\n-413 // Loop over all matrix rows\n-414 for (typename MatrixType::size_type rowIdx=0; rowIdx_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(matrix, rowIdx);\n-427 }\n-428\n-429 }\n-430\n-450 template \n-_\b4_\b5_\b1 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb(const MatrixType& matrix,\n-452 const std::string& filename, int outputPrecision = 18)\n-453 {\n-454 std::ofstream outStream(filename.c_str());\n-455 int oldPrecision = outStream.precision();\n-456 outStream.precision(outputPrecision);\n-457\n-458 _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br(matrix, 0, 0, outStream);\n-459 outStream.precision(oldPrecision);\n-460 }\n-461\n-462 // Recursively write vector entries to a stream\n-463 template\n-_\b4_\b6_\b4 void _\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br (const V& v, std::ostream& stream)\n-465 {\n-466 if constexpr (IsNumber()) {\n-467 stream << v << std::endl;\n-468 } else {\n-469 for (const auto& entry : v)\n-470 _\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br(entry, stream);\n-471 }\n-472 }\n-473\n-491 template \n-_\b4_\b9_\b2 void _\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb(const VectorType& vector,\n-493 const std::string& filename, int outputPrecision = 18)\n-494 {\n-495 std::ofstream outStream(filename.c_str());\n-496 int oldPrecision = outStream.precision();\n-497 outStream.precision(outputPrecision);\n-498\n-499 _\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br(vector, outStream);\n-500 outStream.precision(oldPrecision);\n-501 }\n-502\n-503 namespace Impl {\n-504\n-506 struct NullStream {\n-507 template \n-508 friend NullStream &operator<<(NullStream &dev0, Any &&) {\n-509 return dev0;\n-510 }\n-511 };\n-512\n-514 // svg shall be closed with a group and an svg. i.e. \"\"\n-515 template \n-516 void writeSVGMatrixHeader(Stream &out, const SVGMatrixOptions &opts,\n-517 std::pair offsets) {\n-518 auto [col_offset, row_offset] = offsets;\n-519 double width = opts.width;\n-520 double height = opts.height;\n-521 // if empty, we try to figure out a sensible value of width and height\n-522 if (opts.width == 0 and opts.height == 0)\n-523 width = height = 500;\n-524 if (opts.width == 0)\n-525 width = opts.height * (double(col_offset) / row_offset);\n-526 if (opts.height == 0)\n-527 height = opts.width * (double(row_offset) / col_offset);\n-528\n-529 // scale group w.r.t final offsets\n-530 double scale_width = width / col_offset;\n-531 double scale_height = height / row_offset;\n-532\n-533 // write the header text\n-534 out << \"\\n\"\n-536 << \"\\n\"\n-538 << \"\\n\";\n-540 }\n-541\n-543 template \n-545 std::pair\n-546 writeSVGMatrix(const Mat &_\bm_\ba_\bt, Stream &out, SVGMatrixOptions opts,\n-547 RowPrefix row_prefix, ColPrefix col_prefix) {\n-548 // get values to fill the offests\n-549 const auto& block_size = opts.block_size;\n-550 const auto& interspace = opts.interspace;\n-551\n-552 const std::size_t rows = _\bm_\ba_\bt.N();\n-553 const std::size_t cols = _\bm_\ba_\bt.M();\n-554\n-555 // disable header write for recursive calls\n-556 const bool write_header = opts.write_header;\n-557 opts.write_header = false;\n-558\n-559 // counter of offsets for every block\n-560 std::size_t row_offset = interspace;\n-561 std::size_t col_offset = interspace;\n-562\n-563 // lambda helper: for-each value\n-564 auto for_each_entry = [&_\bm_\ba_\bt](const auto &call_back) {\n-565 for (auto row_it = _\bm_\ba_\bt.begin(); row_it != _\bm_\ba_\bt.end(); ++row_it) {\n-566 for (auto col_it = row_it->begin(); col_it != row_it->end(); ++col_it) {\n-567 call_back(row_it.index(), col_it.index(), *col_it);\n-568 }\n-569 }\n-570 };\n-571\n-572 // accumulate content in another stream so that we write in correct order\n-573 std::stringstream ss;\n-574\n-575 // we need to append current row and col values to the prefixes\n-576 row_prefix.push_back(0);\n-577 col_prefix.push_back(0);\n-578\n-579 // do we need to write nested matrix blocks?\n-580 if constexpr (Dune::blockLevel() == 0) {\n-581 // simple case: write svg block content to stream for each value\n-582 for_each_entry([&](const auto &row, const auto &_\bc_\bo_\bl, const auto &val) {\n-583 std::size_t x_off = interspace + _\bc_\bo_\bl * (interspace + block_size);\n-584 std::size_t y_off = interspace + row * (interspace + block_size);\n-585 row_prefix.back() = row;\n-586 col_prefix.back() = _\bc_\bo_\bl;\n-587 opts.writeSVGBlock(ss, row_prefix, col_prefix, val,\n-588 {x_off, y_off, block_size, block_size});\n-589 });\n-590 col_offset += cols * (block_size + interspace);\n-591 row_offset += rows * (block_size + interspace);\n-592 } else {\n-593 // before we write anything, we need to calculate the\n-594 // offset for every {row,col} index\n-595 const auto null_offset = std::numeric_limits::max();\n-596 std::vector col_offsets(cols + 1, null_offset);\n-597 std::vector row_offsets(rows + 1, null_offset);\n-598 for_each_entry([&](const auto &row, const auto &_\bc_\bo_\bl, const auto &val) {\n-599 NullStream dev0;\n-600 // get size of sub-block\n-601 auto sub_size =\n-602 writeSVGMatrix(val, dev0, opts, row_prefix, col_prefix);\n-603\n-604 // if we didn't see col size before\n-605 if (col_offsets[_\bc_\bo_\bl + 1] == null_offset) // write it in the offset vector\n-606 col_offsets[_\bc_\bo_\bl + 1] = sub_size.first;\n-607\n-608 // repeat proces for row sizes\n-609 if (row_offsets[row + 1] == null_offset)\n-610 row_offsets[row + 1] = sub_size.second;\n-611 });\n-612\n-613 // if some rows/cols were not visited, make an educated guess with the\n-minimum offset\n-614 auto min_row_offset = *std::min_element(begin(row_offsets), end\n-(row_offsets));\n-615 std::replace(begin(row_offsets), end(row_offsets), null_offset,\n-min_row_offset);\n-616 auto min_col_offset = *std::min_element(begin(col_offsets), end\n-(col_offsets));\n-617 std::replace(begin(col_offsets), end(col_offsets), null_offset,\n-min_col_offset);\n-618\n-619 // we have sizes for every block: to get offsets we make a partial sum\n-620 col_offsets[0] = interspace;\n-621 row_offsets[0] = interspace;\n-622 for (std::size_t i = 1; i < col_offsets.size(); i++)\n-623 col_offsets[i] += col_offsets[i - 1] + interspace;\n-624 for (std::size_t i = 1; i < row_offsets.size(); i++)\n-625 row_offsets[i] += row_offsets[i - 1] + interspace;\n-626\n-627 for_each_entry([&](const auto &row, const auto &_\bc_\bo_\bl, const auto &val) {\n-628 // calculate svg view from offsets\n-629 std::size_t width =\n-630 col_offsets[_\bc_\bo_\bl + 1] - col_offsets[_\bc_\bo_\bl] - interspace;\n-631 std::size_t height =\n-632 row_offsets[row + 1] - row_offsets[row] - interspace;\n-633 row_prefix.back() = row;\n-634 col_prefix.back() = _\bc_\bo_\bl;\n-635 // content of the sub-block has origin at {0,0}: shift it to the correct\n-place\n-636 ss << \"\\n\";\n-638 // write a nested svg with the contents of the sub-block\n-639 writeSVGMatrix(val, ss, opts, row_prefix, col_prefix);\n-640 ss << \"\\n\";\n-641 });\n-642 col_offset = col_offsets.back();\n-643 row_offset = row_offsets.back();\n-644 }\n-645\n-646 // write content in order!\n-647 // (i) if required, first header\n-648 if (write_header)\n-649 writeSVGMatrixHeader(out, opts, {col_offset, row_offset});\n-650\n-651 col_prefix.pop_back();\n-652 row_prefix.pop_back();\n-653 // (ii) an svg block for this level\n-654 opts.writeSVGBlock(out, row_prefix, col_prefix, _\bm_\ba_\bt,\n-655 {0, 0, col_offset, row_offset});\n-656 // (iii) the content of the matrix\n-657 out << ss.str();\n-658 // (iv) if required, close the header\n-659 if (write_header)\n-660 out << \"\\n\\n\";\n-661\n-662 // return the total required for this block\n-663 return {col_offset, row_offset};\n-664 }\n-665 } // namespace Impl\n-666\n-667\n-_\b6_\b7_\b4 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs {\n-_\b6_\b7_\b6 std::size_t _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be = 10;\n-_\b6_\b7_\b8 std::size_t _\bi_\bn_\bt_\be_\br_\bs_\bp_\ba_\bc_\be = 5;\n-_\b6_\b8_\b0 std::size_t _\bw_\bi_\bd_\bt_\bh = 500;\n-_\b6_\b8_\b2 std::size_t _\bh_\be_\bi_\bg_\bh_\bt = 0;\n-_\b6_\b8_\b4 bool _\bw_\br_\bi_\bt_\be_\b__\bh_\be_\ba_\bd_\be_\br = true;\n-_\b6_\b8_\b6 std::string _\bs_\bt_\by_\bl_\be = \" .matrix-block {\\n\"\n-687 \" fill: cornflowerblue;\\n\"\n-688 \" fill-opacity: 0.4;\\n\"\n-689 \" stroke-width: 2;\\n\"\n-690 \" stroke: black;\\n\"\n-691 \" stroke-opacity: 0.5;\\n\"\n-692 \" }\\n\"\n-693 \" .matrix-block:hover {\\n\"\n-694 \" fill: lightcoral;\\n\"\n-695 \" fill-opacity: 0.4;\\n\"\n-696 \" stroke-opacity: 1;\\n\"\n-697 \" }\\n\";\n-698\n-_\b7_\b1_\b0 std::function _\bc_\bo_\bl_\bo_\br_\b__\bf_\bi_\bl_\bl;\n-711\n-717 template \n-_\b7_\b1_\b8 std::string _\bb_\bl_\bo_\bc_\bk_\bS_\bt_\by_\bl_\be_\bC_\bl_\ba_\bs_\bs(const RowPrefix &row_prefix,\n-719 const ColPrefix &col_prefix) const {\n-720 // here, you can potentially give a different style to each block\n-721 return \"matrix-block\";\n-722 }\n-723\n-_\b7_\b2_\b5 bool _\bw_\br_\bi_\bt_\be_\b__\bb_\bl_\bo_\bc_\bk_\b__\bt_\bi_\bt_\bl_\be = true;\n-726\n-732 template \n-_\b7_\b3_\b3 void _\bw_\br_\bi_\bt_\be_\bB_\bl_\bo_\bc_\bk_\bT_\bi_\bt_\bl_\be(Stream& out, const RowPrefix &row_prefix,\n-734 const ColPrefix &col_prefix,\n-735 const Block &block) const {\n-736 if (this->write_block_title) {\n-737 out << \"\";\n-738 assert(row_prefix.size() == col_prefix.size());\n-739 for (std::size_t i = 0; i < row_prefix.size(); ++i)\n-740 out << \"[\" << row_prefix[i] << \", \"<< col_prefix[i] << \"]\";\n-741 if constexpr (Dune::blockLevel<Block>() == 0)\n-742 out << \": \" << block;\n-743 out << \"\\n\";\n-744 }\n-745 }\n-746\n-768 template \n-_\b7_\b6_\b9 void _\bw_\br_\bi_\bt_\be_\bS_\bV_\bG_\bB_\bl_\bo_\bc_\bk(Stream &out,\n-770 const RowPrefix &row_prefix,\n-771 const ColPrefix &col_prefix, const Block block,\n-772 const std::array &svg_box) const {\n-773 // get bounding box values\n-774 auto &[x_off, y_off, _\bw_\bi_\bd_\bt_\bh, _\bh_\be_\bi_\bg_\bh_\bt] = svg_box;\n-775 // get style class\n-776 std::string block_class = this->_\bb_\bl_\bo_\bc_\bk_\bS_\bt_\by_\bl_\be_\bC_\bl_\ba_\bs_\bs(row_prefix, col_prefix);\n-777 // write a rectangle on the bounding box\n-778 out << \"() == 0 and std::\n-is_convertible{})\n-781 if (_\bc_\bo_\bl_\bo_\br_\b__\bf_\bi_\bl_\bl)\n-782 out << \" style='fill-opacity: 1;fill:\" << _\bc_\bo_\bl_\bo_\br_\b__\bf_\bi_\bl_\bl(double(block)) << \"'\";\n-783\n-784 out << \">\\n\";\n-785 // give the rectangle a title (in html this shows info about the block)\n-786 this->_\bw_\br_\bi_\bt_\be_\bB_\bl_\bo_\bc_\bk_\bT_\bi_\bt_\bl_\be(out,row_prefix, col_prefix, block);\n-787 // close rectangle\n-788 out << \"\\n\";\n-789 }\n-790 };\n-791\n-806 template \n-_\b8_\b0_\b7 void _\bw_\br_\bi_\bt_\be_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx(const Mat &_\bm_\ba_\bt, std::ostream &out,\n-808 SVGOptions opts = {}) {\n-809 // We need a vector that can fit all the multi-indices for rows and colums\n-810 using IndexPrefix = Dune::ReservedVector()>;\n-811 // Call overload for Mat type\n-812 Impl::writeSVGMatrix(_\bm_\ba_\bt, out, opts, IndexPrefix{}, IndexPrefix{});\n-813 }\n-814\n-817} // namespace Dune\n-818\n-819#endif\n-_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n-Helper functions for determining the vector/matrix block level.\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\n-Some handy generic functions for ISTL matrices.\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx\n-void writeSVGMatrix(const Mat &mat, std::ostream &out, SVGOptions opts={})\n-Writes the visualization of matrix in the SVG format.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:807\n-_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb\n-void writeMatrixToMatlab(const MatrixType &matrix, const std::string &filename,\n-int outputPrecision=18)\n-Writes sparse matrix in a Matlab-readable format.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:451\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw\n-void print_row(std::ostream &s, const K &value, typename FieldMatrix< K, 1, 1\n->::size_type I, typename FieldMatrix< K, 1, 1 >::size_type J, typename\n-FieldMatrix< K, 1, 1 >::size_type therow, int width, int precision, typename\n-std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)\n-Print one row of a matrix, specialization for number types.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:151\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bm_\ba_\bt_\br_\bi_\bx\n-void printmatrix(std::ostream &s, const M &A, std::string title, std::string\n-rowtext, int width=10, int precision=2)\n-Print a generic block matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:213\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br\n-void printvector(std::ostream &s, const V &v, std::string title, std::string\n-rowtext, int columns=1, int width=10, int precision=2)\n-Print an ISTL vector.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:89\n-_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br\n-void writeMatrixToMatlabHelper(const FieldType &value, int rowOffset, int\n-colOffset, std::ostream &s, typename std::enable_if_t< Dune::IsNumber<\n-FieldType >::value > *sfinae=nullptr)\n-Helper method for the writeMatrixToMatlab routine.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:379\n-_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br\n-void writeVectorToMatlabHelper(const V &v, std::ostream &stream)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:464\n-_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb\n-void writeVectorToMatlab(const VectorType &vector, const std::string &filename,\n-int outputPrecision=18)\n-Writes vectors in a Matlab-readable format.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:492\n-_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bc_\bu_\br_\bs_\bi_\bv_\be_\b__\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br\n-void recursive_printvector(std::ostream &s, const V &v, std::string rowtext,\n-int &counter, int columns, int width)\n-Recursively print a vector.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx\n-void printSparseMatrix(std::ostream &s, const BCRSMatrix< FieldMatrix< B, n, m\n->, A > &mat, std::string title, std::string rowtext, int width=3, int\n-precision=2)\n-Prints a BCRSMatrix with fixed sized blocks.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:271\n-_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bl_\b__\br_\bo_\bw\n-void fill_row(std::ostream &s, int m, int width, int precision)\n-Print a row of zeros for a non-existing block.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:133\n-_\bs_\bt_\bd\n-STL namespace.\n+180 public:\n+_\b1_\b8_\b1 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (std::shared_ptr comm) :\n+182 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(comm,_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::nonoverlapping) {}\n+183\n+_\b1_\b8_\b4 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const C& comm) :\n+185 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(comm,_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::nonoverlapping) {}\n+186 };\n+187\n+199 template\n+_\b2_\b0_\b0 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt : public _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+201 {\n+202 public:\n+_\b2_\b0_\b3 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (std::shared_ptr comm) :\n+204 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(comm, _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::overlapping) {}\n+205\n+_\b2_\b0_\b6 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const C& comm) :\n+207 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(comm,_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::overlapping) {}\n+208 };\n+209\n+223 template\n+_\b2_\b2_\b4 std::shared_ptr> _\bm_\ba_\bk_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(std::shared_ptr comm, _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category)\n+225 {\n+226 switch(category)\n+227 {\n+228 case _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl:\n+229 return\n+230 std::make_shared>();\n+231 default:\n+232 return\n+233 std::make_shared>(comm,category);\n+234 }\n+235 }\n+236\n+241 template\n+_\b2_\b4_\b2 std::shared_ptr> _\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(const Comm& comm,\n+_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category)\n+243 { return makeScalarProduct(stackobject_to_shared_ptr(comm), category); }\n+244\n+245} // end namespace Dune\n+246\n+247#endif\n+_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static auto coldim(const M &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:219\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static auto rowdim(const M &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:214\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs\n-Default options class to write SVG matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:674\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bs_\bt_\by_\bl_\be\n-std::string style\n-CSS style block to write in header.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:686\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bw_\bi_\bd_\bt_\bh\n-std::size_t width\n-Final width size (pixels) of the SVG header. If 0, size is automatic.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:680\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bc_\bo_\bl_\bo_\br_\b__\bf_\bi_\bl_\bl\n-std::function< std::string(const double &)> color_fill\n-Color fill for default options.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:710\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be\n-std::size_t block_size\n-size (pixels) of the deepst block/value of the matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:676\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bw_\br_\bi_\bt_\be_\bS_\bV_\bG_\bB_\bl_\bo_\bc_\bk\n-void writeSVGBlock(Stream &out, const RowPrefix &row_prefix, const ColPrefix\n-&col_prefix, const Block block, const std::array< std::size_t, 4 > &svg_box)\n-const\n-Write an SVG object for a given block/value in the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:769\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bw_\br_\bi_\bt_\be_\bB_\bl_\bo_\bc_\bk_\bT_\bi_\bt_\bl_\be\n-void writeBlockTitle(Stream &out, const RowPrefix &row_prefix, const ColPrefix\n-&col_prefix, const Block &block) const\n-Helper function writes a title for a given block and prefix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:733\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bi_\bn_\bt_\be_\br_\bs_\bp_\ba_\bc_\be\n-std::size_t interspace\n-size (pixels) of the interspace between blocks\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:678\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bw_\br_\bi_\bt_\be_\b__\bb_\bl_\bo_\bc_\bk_\b__\bt_\bi_\bt_\bl_\be\n-bool write_block_title\n-(Helper) Whether to write a title on the rectangle value\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:725\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bh_\be_\bi_\bg_\bh_\bt\n-std::size_t height\n-Final height size (pixels) of the SVG header. If 0, size is automatic.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:682\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bw_\br_\bi_\bt_\be_\b__\bh_\be_\ba_\bd_\be_\br\n-bool write_header\n-Whether to write the SVG header.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:684\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bS_\bt_\by_\bl_\be_\bC_\bl_\ba_\bs_\bs\n-std::string blockStyleClass(const RowPrefix &row_prefix, const ColPrefix\n-&col_prefix) const\n-Helper function that returns an style class for a given prefix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:718\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:404\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-A generic dynamic dense matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-RowIterator end()\n-Get iterator to one beyond last row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:620\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-RowIterator begin()\n-Get iterator to first row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:614\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::const_iterator ConstColIterator\n-Const iterator for the entries of each row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-size_type M() const\n-Return the number of columns.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:700\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-Return the number of rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:695\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+std::shared_ptr< ScalarProduct< X > > createScalarProduct(const Comm &comm,\n+SolverCategory::Category category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:242\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bk_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+std::shared_ptr< ScalarProduct< X > > makeScalarProduct(std::shared_ptr< const\n+Comm > comm, SolverCategory::Category category)\n+Choose the approriate scalar product for a solver category.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:224\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Base class for scalar product and norm computation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bd_\bo_\bt\n+virtual field_type dot(const X &x, const X &y) const\n+Dot product of two vectors. It is assumed that the vectors are consistent on\n+the interior+border part...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:63\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the scalar product (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:77\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+export types, they come from the derived class\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:55\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\b~_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+virtual ~ScalarProduct()\n+every abstract base class has a virtual destructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:83\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+FieldTraits< field_type >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:57\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bn_\bo_\br_\bm\n+virtual real_type norm(const X &x) const\n+Norm of a right-hand side vector. The vector must be consistent on the\n+interior+border partition.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:71\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Scalar product for overlapping Schwarz methods.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bd_\bo_\bt\n+virtual field_type dot(const X &x, const X &y) const override\n+Dot product of two vectors. It is assumed that the vectors are consistent on\n+the interior+border part...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:139\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const override\n+Category of the scalar product (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:155\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+FieldTraits< field_type >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:108\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n+C communication_type\n+The type of the communication object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:113\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+ParallelScalarProduct(const communication_type &com, SolverCategory::Category\n+cat)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:130\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The type of the vector to compute the scalar product on.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:105\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+ParallelScalarProduct(std::shared_ptr< const communication_type > com,\n+SolverCategory::Category cat)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type used by the vector type domain_type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:107\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bn_\bo_\br_\bm\n+virtual real_type norm(const X &x) const override\n+Norm of a right-hand side vector. The vector must be consistent on the\n+interior+border partition.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Default implementation for the scalar case.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:168\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Nonoverlapping Scalar Product with communication object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:179\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+NonoverlappingSchwarzScalarProduct(std::shared_ptr< const C > comm)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:181\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+NonoverlappingSchwarzScalarProduct(const C &comm)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:184\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Scalar product for overlapping Schwarz methods.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:201\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+OverlappingSchwarzScalarProduct(std::shared_ptr< const C > comm)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:203\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+OverlappingSchwarzScalarProduct(const C &comm)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:206\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Categories for the solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00023.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00023.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: novlpschwarz.hh File Reference\n+dune-istl: io.hh File Reference\n \n \n \n \n \n \n \n@@ -71,55 +71,106 @@\n \n \n \n
    \n \n-
    novlpschwarz.hh File Reference
    \n+Namespaces |\n+Functions
    \n+ \n \n
    \n-
    #include <iostream>
    \n+\n+

    Some generic functions for pretty printing vectors and matrices. \n+More...

    \n+
    #include <cmath>
    \n+#include <complex>
    \n+#include <limits>
    \n+#include <ios>
    \n+#include <iomanip>
    \n #include <fstream>
    \n-#include <vector>
    \n-#include <sstream>
    \n-#include <cmath>
    \n-#include <dune/common/timer.hh>
    \n+#include <string>
    \n+#include "matrixutils.hh"
    \n+#include "istlexception.hh"
    \n+#include <dune/common/fvector.hh>
    \n+#include <dune/common/fmatrix.hh>
    \n #include <dune/common/hybridutilities.hh>
    \n-#include "io.hh"
    \n-#include "bvector.hh"
    \n-#include "vbvector.hh"
    \n-#include "bcrsmatrix.hh"
    \n-#include "gsetc.hh"
    \n-#include "ilu.hh"
    \n-#include "operators.hh"
    \n-#include "solvers.hh"
    \n-#include "preconditioners.hh"
    \n-#include "scalarproducts.hh"
    \n-#include "owneroverlapcopy.hh"
    \n+#include <dune/common/reservedvector.hh>
    \n+#include <dune/istl/bcrsmatrix.hh>
    \n+#include <dune/istl/blocklevel.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::NonoverlappingSchwarzOperator< M, X, Y, C >
     A nonoverlapping operator with communication object. More...
     
    class  Dune::NonoverlappingBlockPreconditioner< C, P >
     Nonoverlapping parallel preconditioner. More...
    struct  Dune::DefaultSVGMatrixOptions
     Default options class to write SVG matrices. More...
     
    \n \n \n \n-\n-\n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Functions

    template<class V >
    void Dune::recursive_printvector (std::ostream &s, const V &v, std::string rowtext, int &counter, int columns, int width)
     Recursively print a vector.
     
    template<class V >
    void Dune::printvector (std::ostream &s, const V &v, std::string title, std::string rowtext, int columns=1, int width=10, int precision=2)
     Print an ISTL vector.
     
    void Dune::fill_row (std::ostream &s, int m, int width, int precision)
     Print a row of zeros for a non-existing block.
     
    template<class K >
    void Dune::print_row (std::ostream &s, const K &value, typename FieldMatrix< K, 1, 1 >::size_type I, typename FieldMatrix< K, 1, 1 >::size_type J, typename FieldMatrix< K, 1, 1 >::size_type therow, int width, int precision, typename std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)
     Print one row of a matrix, specialization for number types.
     
    template<class M >
    void Dune::print_row (std::ostream &s, const M &A, typename M::size_type I, typename M::size_type J, typename M::size_type therow, int width, int precision, typename std::enable_if_t<!Dune::IsNumber< M >::value > *sfinae=nullptr)
     Print one row of a matrix.
     
    template<class M >
    void Dune::printmatrix (std::ostream &s, const M &A, std::string title, std::string rowtext, int width=10, int precision=2)
     Print a generic block matrix.
     
    template<class B , int n, int m, class A >
    void Dune::printSparseMatrix (std::ostream &s, const BCRSMatrix< FieldMatrix< B, n, m >, A > &mat, std::string title, std::string rowtext, int width=3, int precision=2)
     Prints a BCRSMatrix with fixed sized blocks.
     
    template<class FieldType >
    void Dune::writeMatrixToMatlabHelper (const FieldType &value, int rowOffset, int colOffset, std::ostream &s, typename std::enable_if_t< Dune::IsNumber< FieldType >::value > *sfinae=nullptr)
     Helper method for the writeMatrixToMatlab routine.
     
    template<class MatrixType >
    void Dune::writeMatrixToMatlabHelper (const MatrixType &matrix, int externalRowOffset, int externalColOffset, std::ostream &s, typename std::enable_if_t<!Dune::IsNumber< MatrixType >::value > *sfinae=nullptr)
     Helper method for the writeMatrixToMatlab routine.
     
    template<class MatrixType >
    void Dune::writeMatrixToMatlab (const MatrixType &matrix, const std::string &filename, int outputPrecision=18)
     Writes sparse matrix in a Matlab-readable format.
     
    template<class V >
    void Dune::writeVectorToMatlabHelper (const V &v, std::ostream &stream)
     
    template<class VectorType >
    void Dune::writeVectorToMatlab (const VectorType &vector, const std::string &filename, int outputPrecision=18)
     Writes vectors in a Matlab-readable format.
     
    template<class Mat , class SVGOptions = DefaultSVGMatrixOptions>
    void Dune::writeSVGMatrix (const Mat &mat, std::ostream &out, SVGOptions opts={})
     Writes the visualization of matrix in the SVG format.
     
    \n-
    \n+

    Detailed Description

    \n+

    Some generic functions for pretty printing vectors and matrices.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,41 +1,108 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-novlpschwarz.hh File Reference\n-#include \n-#include \n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+io.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bS_\bp_\ba_\br_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bc_\bl_\ba_\bs_\bs_\be_\bs \u00bb\n+_\bI_\bO_\b _\bf_\bo_\br_\b _\bm_\ba_\bt_\br_\bi_\bc_\be_\bs_\b _\ba_\bn_\bd_\b _\bv_\be_\bc_\bt_\bo_\br_\bs_\b.\n+Some generic functions for pretty printing vectors and matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n #include \n-#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n+#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+#include \n+#include \n #include \n-#include \"_\bi_\bo_\b._\bh_\bh\"\n-#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \"_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n-#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n-#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n-#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n-#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n-#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n-#include \"_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\"\n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>\n-\u00a0 A nonoverlapping operator with communication object. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bP_\b _\b>\n-\u00a0 Nonoverlapping parallel preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs\n+\u00a0 Default options class to write SVG matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bc_\bu_\br_\bs_\bi_\bv_\be_\b__\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br (std::ostream &s, const V &v, std::string\n+ rowtext, int &counter, int columns, int width)\n+\u00a0 Recursively print a vector.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br (std::ostream &s, const V &v, std::string title, std::\n+ string rowtext, int columns=1, int width=10, int precision=2)\n+\u00a0 Print an _\bI_\bS_\bT_\bL vector.\n+\u00a0\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bl_\b__\br_\bo_\bw (std::ostream &s, int m, int width, int precision)\n+\u00a0 Print a row of zeros for a non-existing block.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw (std::ostream &s, const K &value, typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx<\n+ K, 1, 1 >::size_type I, typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, 1, 1 >::size_type J,\n+ typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, 1, 1 >::size_type therow, int width, int\n+ precision, typename std::enable_if_t< Dune::IsNumber< K >::value >\n+ *sfinae=nullptr)\n+\u00a0 Print one row of a matrix, specialization for number types.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw (std::ostream &s, const M &A, typename M::size_type I,\n+ typename M::size_type J, typename M::size_type therow, int width, int\n+ precision, typename std::enable_if_t::value >\n+ *sfinae=nullptr)\n+\u00a0 Print one row of a matrix.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bm_\ba_\bt_\br_\bi_\bx (std::ostream &s, const M &A, std::string title, std::\n+ string rowtext, int width=10, int precision=2)\n+\u00a0 Print a generic block matrix.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx (std::ostream &s, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx<\n+ B, n, m >, A > &_\bm_\ba_\bt, std::string title, std::string rowtext, int width=3,\n+ int precision=2)\n+\u00a0 Prints a _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx with fixed sized blocks.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br (const FieldType &value, int rowOffset,\n+ int colOffset, std::ostream &s, typename std::enable_if_t< Dune::\n+ IsNumber< FieldType >::value > *sfinae=nullptr)\n+\u00a0 Helper method for the writeMatrixToMatlab routine.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br (const MatrixType &matrix, int\n+ externalRowOffset, int externalColOffset, std::ostream &s, typename std::\n+ enable_if_t::value > *sfinae=nullptr)\n+\u00a0 Helper method for the writeMatrixToMatlab routine.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb (const MatrixType &matrix, const std::string\n+ &filename, int outputPrecision=18)\n+\u00a0 Writes sparse matrix in a Matlab-readable format.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br (const V &v, std::ostream &stream)\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb (const VectorType &vector, const std::string\n+ &filename, int outputPrecision=18)\n+\u00a0 Writes vectors in a Matlab-readable format.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx (const Mat &_\bm_\ba_\bt, std::ostream &out, SVGOptions opts=\n+ {})\n+\u00a0 Writes the visualization of matrix in the SVG format.\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Some generic functions for pretty printing vectors and matrices.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00023_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00023_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: novlpschwarz.hh Source File\n+dune-istl: io.hh Source File\n \n \n \n \n \n \n \n@@ -74,381 +74,710 @@\n \n
    \n \n
    \n \n
    \n-
    novlpschwarz.hh
    \n+
    io.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_NOVLPSCHWARZ_HH
    \n-
    6#define DUNE_ISTL_NOVLPSCHWARZ_HH
    \n+
    5#ifndef DUNE_ISTL_IO_HH
    \n+
    6#define DUNE_ISTL_IO_HH
    \n
    7
    \n-
    8#include <iostream> // for input/output to shell
    \n-
    9#include <fstream> // for input/output to files
    \n-
    10#include <vector> // STL vector class
    \n-
    11#include <sstream>
    \n-
    12
    \n-
    13#include <cmath> // Yes, we do some math here
    \n-
    14
    \n-
    15#include <dune/common/timer.hh>
    \n-
    16
    \n-
    17#include <dune/common/hybridutilities.hh>
    \n-
    18
    \n-
    19#include "io.hh"
    \n-
    20#include "bvector.hh"
    \n-
    21#include "vbvector.hh"
    \n-
    22#include "bcrsmatrix.hh"
    \n-
    23#include "io.hh"
    \n-
    24#include "gsetc.hh"
    \n-
    25#include "ilu.hh"
    \n-
    26#include "operators.hh"
    \n-
    27#include "solvers.hh"
    \n-
    28#include "preconditioners.hh"
    \n-
    29#include "scalarproducts.hh"
    \n-
    30#include "owneroverlapcopy.hh"
    \n-
    31
    \n-
    32namespace Dune {
    \n-
    33
    \n-
    59 template<class M, class X, class Y, class C>
    \n-
    \n-\n-
    61 {
    \n-
    62 public:
    \n-
    64 typedef M matrix_type;
    \n-
    66 typedef X domain_type;
    \n-
    68 typedef Y range_type;
    \n-
    70 typedef typename X::field_type field_type;
    \n-\n-
    73
    \n-
    74 typedef typename C::PIS PIS;
    \n-
    75 typedef typename C::RI RI;
    \n-
    76 typedef typename RI::RemoteIndexList RIL;
    \n-
    77 typedef typename RI::const_iterator RIIterator;
    \n-
    78 typedef typename RIL::const_iterator RILIterator;
    \n-
    79 typedef typename M::ConstColIterator ColIterator;
    \n-
    80 typedef typename M::ConstRowIterator RowIterator;
    \n-
    81 typedef std::multimap<int,int> MM;
    \n-
    82 typedef std::multimap<int,std::pair<int,RILIterator> > RIMap;
    \n-
    83 typedef typename RIMap::iterator RIMapit;
    \n-
    84
    \n-
    \n-\n-
    93 : _A_(stackobject_to_shared_ptr(A)), communication(com), buildcomm(true)
    \n-
    94 {}
    \n-
    \n+
    8#include <cmath>
    \n+
    9#include <complex>
    \n+
    10#include <limits>
    \n+
    11#include <ios>
    \n+
    12#include <iomanip>
    \n+
    13#include <fstream>
    \n+
    14#include <string>
    \n+
    15
    \n+
    16#include "matrixutils.hh"
    \n+
    17#include "istlexception.hh"
    \n+
    18#include <dune/common/fvector.hh>
    \n+
    19#include <dune/common/fmatrix.hh>
    \n+
    20#include <dune/common/hybridutilities.hh>
    \n+
    21#include <dune/common/reservedvector.hh>
    \n+
    22
    \n+\n+\n+
    25
    \n+
    26namespace Dune {
    \n+
    27
    \n+
    40 //
    \n+
    41 // pretty printing of vectors
    \n+
    42 //
    \n+
    43
    \n+
    51 template<class V>
    \n+
    \n+
    52 void recursive_printvector (std::ostream& s, const V& v, std::string rowtext,
    \n+
    53 int& counter, int columns, int width)
    \n+
    54 {
    \n+
    55 if constexpr (IsNumber<V>())
    \n+
    56 {
    \n+
    57 // Print one number
    \n+
    58 if (counter%columns==0)
    \n+
    59 {
    \n+
    60 s << rowtext; // start a new row
    \n+
    61 s << " "; // space in front of each entry
    \n+
    62 s.width(4); // set width for counter
    \n+
    63 s << counter; // number of first entry in a line
    \n+
    64 }
    \n+
    65 s << " "; // space in front of each entry
    \n+
    66 s.width(width); // set width for each entry anew
    \n+
    67 s << v; // yeah, the number !
    \n+
    68 counter++; // increment the counter
    \n+
    69 if (counter%columns==0)
    \n+
    70 s << std::endl; // start a new line
    \n+
    71 }
    \n+
    72 else
    \n+
    73 {
    \n+
    74 // Recursively print a vector
    \n+
    75 for (const auto& entry : v)
    \n+
    76 recursive_printvector(s,entry,rowtext,counter,columns,width);
    \n+
    77 }
    \n+
    78 }
    \n+
    \n+
    79
    \n+
    80
    \n+
    88 template<class V>
    \n+
    \n+
    89 void printvector (std::ostream& s, const V& v, std::string title,
    \n+
    90 std::string rowtext, int columns=1, int width=10,
    \n+
    91 int precision=2)
    \n+
    92 {
    \n+
    93 // count the numbers printed to make columns
    \n+
    94 int counter=0;
    \n
    95
    \n-
    \n-
    96 NonoverlappingSchwarzOperator (std::shared_ptr<const matrix_type> A, const communication_type& com)
    \n-
    97 : _A_(A), communication(com), buildcomm(true)
    \n-
    98 {}
    \n-
    \n-
    99
    \n-
    \n-
    101 virtual void apply (const X& x, Y& y) const
    \n-
    102 {
    \n-
    103 y = 0;
    \n-
    104 novlp_op_apply(x,y,1);
    \n-
    105 communication.addOwnerCopyToOwnerCopy(y,y);
    \n-
    106 }
    \n-
    \n+
    96 // remember old flags
    \n+
    97 std::ios_base::fmtflags oldflags = s.flags();
    \n+
    98
    \n+
    99 // set the output format
    \n+
    100 s.setf(std::ios_base::scientific, std::ios_base::floatfield);
    \n+
    101 int oldprec = s.precision();
    \n+
    102 s.precision(precision);
    \n+
    103
    \n+
    104 // print title
    \n+
    105 s << title << " [blocks=" << v.N() << ",dimension=" << v.dim() << "]"
    \n+
    106 << std::endl;
    \n
    107
    \n-
    \n-
    109 virtual void applyscaleadd (field_type alpha, const X& x, Y& y) const
    \n-
    110 {
    \n-
    111 // only apply communication to alpha*A*x to make it consistent,
    \n-
    112 // y already has to be consistent.
    \n-
    113 Y y1(y);
    \n-
    114 y = 0;
    \n-
    115 novlp_op_apply(x,y,alpha);
    \n-
    116 communication.addOwnerCopyToOwnerCopy(y,y);
    \n-
    117 y += y1;
    \n-
    118 }
    \n+
    108 // print data from all blocks
    \n+
    109 recursive_printvector(s,v,rowtext,counter,columns,width);
    \n+
    110
    \n+
    111 // check if new line is required
    \n+
    112 if (counter%columns!=0)
    \n+
    113 s << std::endl;
    \n+
    114
    \n+
    115 // reset the output format
    \n+
    116 s.flags(oldflags);
    \n+
    117 s.precision(oldprec);
    \n+
    118 }
    \n
    \n
    119
    \n-
    \n-
    121 virtual const matrix_type& getmat () const
    \n-
    122 {
    \n-
    123 return *_A_;
    \n-
    124 }
    \n-
    \n+
    120
    \n+
    122 //
    \n+
    123 // pretty printing of matrices
    \n+
    124 //
    \n
    125
    \n-
    \n-
    126 void novlp_op_apply (const X& x, Y& y, field_type alpha) const
    \n-
    127 {
    \n-
    128 //get index sets
    \n-
    129 const PIS& pis=communication.indexSet();
    \n-
    130 const RI& ri = communication.remoteIndices();
    \n-
    131
    \n-
    132 // at the beginning make a multimap "bordercontribution".
    \n-
    133 // process has i and j as border dofs but is not the owner
    \n-
    134 // => only contribute to Ax if i,j is in bordercontribution
    \n-
    135 if (buildcomm == true) {
    \n-
    136
    \n-
    137 // set up mask vector
    \n-
    138 if (mask.size()!=static_cast<typename std::vector<double>::size_type>(x.size())) {
    \n-
    139 mask.resize(x.size());
    \n-
    140 for (typename std::vector<double>::size_type i=0; i<mask.size(); i++)
    \n-
    141 mask[i] = 1;
    \n-
    142 for (typename PIS::const_iterator i=pis.begin(); i!=pis.end(); ++i)
    \n-
    143 if (i->local().attribute()==OwnerOverlapCopyAttributeSet::copy)
    \n-
    144 mask[i->local().local()] = 0;
    \n-
    145 else if (i->local().attribute()==OwnerOverlapCopyAttributeSet::overlap)
    \n-
    146 mask[i->local().local()] = 2;
    \n-
    147 }
    \n-
    148
    \n-
    149 for (MM::iterator iter = bordercontribution.begin();
    \n-
    150 iter != bordercontribution.end(); ++iter)
    \n-
    151 bordercontribution.erase(iter);
    \n-
    152 std::map<int,int> owner; //key: local index i, value: process, that owns i
    \n-
    153 RIMap rimap;
    \n-
    154
    \n-
    155 // for each local index make multimap rimap:
    \n-
    156 // key: local index i, data: pair of process that knows i and pointer to RI entry
    \n-
    157 for (RowIterator i = _A_->begin(); i != _A_->end(); ++i)
    \n-
    158 if (mask[i.index()] == 0)
    \n-
    159 for (RIIterator remote = ri.begin(); remote != ri.end(); ++remote) {
    \n-
    160 RIL& ril = *(remote->second.first);
    \n-
    161 for (RILIterator rindex = ril.begin(); rindex != ril.end(); ++rindex)
    \n-
    162 if (rindex->attribute() != OwnerOverlapCopyAttributeSet::overlap)
    \n-
    163 if (rindex->localIndexPair().local().local() == i.index()) {
    \n-
    164 rimap.insert
    \n-
    165 (std::make_pair(i.index(),
    \n-
    166 std::pair<int,RILIterator>(remote->first, rindex)));
    \n-
    167 if(rindex->attribute()==OwnerOverlapCopyAttributeSet::owner)
    \n-
    168 owner.insert(std::make_pair(i.index(),remote->first));
    \n-
    169 }
    \n-
    170 }
    \n-
    171
    \n-
    172 int iowner = 0;
    \n-
    173 for (RowIterator i = _A_->begin(); i != _A_->end(); ++i) {
    \n-
    174 if (mask[i.index()] == 0) {
    \n-
    175 std::map<int,int>::iterator it = owner.find(i.index());
    \n-
    176 iowner = it->second;
    \n-
    177 std::pair<RIMapit, RIMapit> foundiit = rimap.equal_range(i.index());
    \n-
    178 for (ColIterator j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end(); ++j) {
    \n-
    179 if (mask[j.index()] == 0) {
    \n-
    180 bool flag = true;
    \n-
    181 for (RIMapit foundi = foundiit.first; foundi != foundiit.second; ++foundi) {
    \n-
    182 std::pair<RIMapit, RIMapit> foundjit = rimap.equal_range(j.index());
    \n-
    183 for (RIMapit foundj = foundjit.first; foundj != foundjit.second; ++foundj)
    \n-
    184 if (foundj->second.first == foundi->second.first)
    \n-
    185 if (foundj->second.second->attribute() == OwnerOverlapCopyAttributeSet::owner
    \n-
    186 || foundj->second.first == iowner
    \n-
    187 || foundj->second.first < communication.communicator().rank()) {
    \n-
    188 flag = false;
    \n-
    189 continue;
    \n-
    190 }
    \n-
    191 if (flag == false)
    \n-
    192 continue;
    \n-
    193 }
    \n-
    194 // don\u00b4t contribute to Ax if
    \n-
    195 // 1. the owner of j has i as interior/border dof
    \n-
    196 // 2. iowner has j as interior/border dof
    \n-
    197 // 3. there is another process with smaller rank that has i and j
    \n-
    198 // as interor/border dofs
    \n-
    199 // if the owner of j does not have i as interior/border dof,
    \n-
    200 // it will not be taken into account
    \n-
    201 if (flag==true)
    \n-
    202 bordercontribution.insert(std::pair<int,int>(i.index(),j.index()));
    \n-
    203 }
    \n-
    204 }
    \n-
    205 }
    \n-
    206 }
    \n-
    207 buildcomm = false;
    \n-
    208 }
    \n-
    209
    \n-
    210 //compute alpha*A*x nonoverlapping case
    \n-
    211 for (RowIterator i = _A_->begin(); i != _A_->end(); ++i) {
    \n-
    212 if (mask[i.index()] == 0) {
    \n-
    213 //dof doesn't belong to process but is border (not ghost)
    \n-
    214 for (ColIterator j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end(); ++j) {
    \n-
    215 if (mask[j.index()] == 1) //j is owner => then sum entries
    \n-
    216 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);
    \n-
    217 else if (mask[j.index()] == 0) {
    \n-
    218 std::pair<MM::iterator, MM::iterator> itp =
    \n-
    219 bordercontribution.equal_range(i.index());
    \n-
    220 for (MM::iterator it = itp.first; it != itp.second; ++it)
    \n-
    221 if ((*it).second == (int)j.index())
    \n-
    222 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);
    \n-
    223 }
    \n-
    224 }
    \n-
    225 }
    \n-
    226 else if (mask[i.index()] == 1) {
    \n-
    227 for (ColIterator j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end(); ++j)
    \n-
    228 if (mask[j.index()] != 2)
    \n-
    229 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);
    \n-
    230 }
    \n-
    231 }
    \n-
    232 }
    \n-
    \n-
    233
    \n-
    \n-\n-
    236 {
    \n-\n-
    238 }
    \n-
    \n-
    239
    \n-
    \n-\n-
    242 {
    \n-
    243 return communication;
    \n-
    244 }
    \n-
    \n-
    245 private:
    \n-
    246 std::shared_ptr<const matrix_type> _A_;
    \n-
    247 const communication_type& communication;
    \n-
    248 mutable bool buildcomm;
    \n-
    249 mutable std::vector<double> mask;
    \n-
    250 mutable std::multimap<int,int> bordercontribution;
    \n-
    251 };
    \n-
    \n-
    252
    \n-
    \n-
    255 namespace Amg
    \n-
    256 {
    \n-
    257 template<class T> struct ConstructionTraits;
    \n-
    258 }
    \n-
    \n-
    259
    \n-
    274 template<class C, class P>
    \n-
    \n-\n-
    276 : public Preconditioner<typename P::domain_type,typename P::range_type> {
    \n-
    277 friend struct Amg::ConstructionTraits<NonoverlappingBlockPreconditioner<C,P> >;
    \n-
    278 using X = typename P::domain_type;
    \n-
    279 using Y = typename P::range_type;
    \n-
    280 public:
    \n-
    282 typedef typename P::domain_type domain_type;
    \n-
    284 typedef typename P::range_type range_type;
    \n-\n-
    287
    \n-
    \n-\n-
    303 : _preconditioner(stackobject_to_shared_ptr(p)), _communication(c)
    \n-
    304 { }
    \n-
    \n-
    305
    \n-
    \n-
    313 NonoverlappingBlockPreconditioner (const std::shared_ptr<P>& p, const communication_type& c)
    \n-
    314 : _preconditioner(p), _communication(c)
    \n-
    315 { }
    \n-
    \n-
    316
    \n-
    \n-
    322 virtual void pre (domain_type& x, range_type& b)
    \n-
    323 {
    \n-
    324 _preconditioner->pre(x,b);
    \n-
    325 }
    \n-
    \n-
    326
    \n-
    \n-
    332 virtual void apply (domain_type& v, const range_type& d)
    \n-
    333 {
    \n-
    334 // block preconditioner equivalent to WrappedPreconditioner from
    \n-
    335 // pdelab/backend/ovlpistsolverbackend.hh,
    \n-
    336 // but not to BlockPreconditioner from schwarz.hh
    \n-
    337 _preconditioner->apply(v,d);
    \n-
    338 _communication.addOwnerCopyToOwnerCopy(v,v);
    \n-
    339 }
    \n-
    \n-
    340
    \n-
    341 template<bool forward>
    \n-
    \n-
    342 void apply (X& v, const Y& d)
    \n-
    343 {
    \n-
    344 _preconditioner->template apply<forward>(v,d);
    \n-
    345 _communication.addOwnerCopyToOwnerCopy(v,v);
    \n-
    346 }
    \n-
    \n-
    347
    \n-
    \n-
    353 virtual void post (domain_type& x)
    \n-
    354 {
    \n-
    355 _preconditioner->post(x);
    \n-
    356 }
    \n-
    \n-
    357
    \n-
    \n-\n-
    360 {
    \n-\n-
    362 }
    \n-
    \n-
    363
    \n-
    364 private:
    \n-
    366 std::shared_ptr<P> _preconditioner;
    \n-
    367
    \n-
    369 const communication_type& _communication;
    \n-
    370 };
    \n-
    \n-
    371
    \n-
    374} // end namespace
    \n-
    375
    \n-
    376#endif
    \n-
    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
    \n-
    Some generic functions for pretty printing vectors and matrices.
    \n-
    Define general preconditioner interface.
    \n-
    Define base class for scalar product and norm.
    \n-
    Implementation of the BCRSMatrix class.
    \n-
    Implementations of the inverse operator interface.
    \n-
    The incomplete LU factorization kernels.
    \n-
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n-\n-
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    \n+
    133 inline void fill_row (std::ostream& s, int m, int width, [[maybe_unused]] int precision)
    \n+
    134 {
    \n+
    135 for (int j=0; j<m; j++)
    \n+
    136 {
    \n+
    137 s << " "; // space in front of each entry
    \n+
    138 s.width(width); // set width for each entry anew
    \n+
    139 s << "."; // yeah, the number !
    \n+
    140 }
    \n+
    141 }
    \n+
    \n+
    142
    \n+
    150 template<class K>
    \n+
    \n+
    151 void print_row (std::ostream& s, const K& value,
    \n+
    152 [[maybe_unused]] typename FieldMatrix<K,1,1>::size_type I,
    \n+
    153 [[maybe_unused]] typename FieldMatrix<K,1,1>::size_type J,
    \n+
    154 [[maybe_unused]] typename FieldMatrix<K,1,1>::size_type therow,
    \n+
    155 int width,
    \n+
    156 [[maybe_unused]] int precision,
    \n+
    157 typename std::enable_if_t<Dune::IsNumber<K>::value>* sfinae = nullptr)
    \n+
    158 {
    \n+
    159 s << " "; // space in front of each entry
    \n+
    160 s.width(width); // set width for each entry anew
    \n+
    161 s << value;
    \n+
    162 }
    \n+
    \n+
    163
    \n+
    171 template<class M>
    \n+
    \n+
    172 void print_row (std::ostream& s, const M& A, typename M::size_type I,
    \n+
    173 typename M::size_type J, typename M::size_type therow,
    \n+
    174 int width, int precision,
    \n+
    175 typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr)
    \n+
    176 {
    \n+
    177 typename M::size_type i0=I;
    \n+
    178 for (typename M::size_type i=0; i<A.N(); i++)
    \n+
    179 {
    \n+
    180 if (therow>=i0 && therow<i0+MatrixDimension<M>::rowdim(A,i))
    \n+
    181 {
    \n+
    182 // the row is in this block row !
    \n+
    183 typename M::size_type j0=J;
    \n+
    184 for (typename M::size_type j=0; j<A.M(); j++)
    \n+
    185 {
    \n+
    186 // find this block
    \n+
    187 typename M::ConstColIterator it = A[i].find(j);
    \n+
    188
    \n+
    189 // print row or filler
    \n+
    190 if (it!=A[i].end())
    \n+
    191 print_row(s,*it,i0,j0,therow,width,precision);
    \n+
    192 else
    \n+
    193 fill_row(s,MatrixDimension<M>::coldim(A,j),width,precision);
    \n+
    194
    \n+
    195 // advance columns
    \n+\n+
    197 }
    \n+
    198 }
    \n+
    199 // advance rows
    \n+\n+
    201 }
    \n+
    202 }
    \n+
    \n+
    203
    \n+
    212 template<class M>
    \n+
    \n+
    213 void printmatrix (std::ostream& s, const M& A, std::string title,
    \n+
    214 std::string rowtext, int width=10, int precision=2)
    \n+
    215 {
    \n+
    216
    \n+
    217 // remember old flags
    \n+
    218 std::ios_base::fmtflags oldflags = s.flags();
    \n+
    219
    \n+
    220 // set the output format
    \n+
    221 s.setf(std::ios_base::scientific, std::ios_base::floatfield);
    \n+
    222 int oldprec = s.precision();
    \n+
    223 s.precision(precision);
    \n+
    224
    \n+
    225 // print title
    \n+
    226 s << title
    \n+
    227 << " [n=" << A.N()
    \n+
    228 << ",m=" << A.M()
    \n+
    229 << ",rowdim=" << MatrixDimension<M>::rowdim(A)
    \n+
    230 << ",coldim=" << MatrixDimension<M>::coldim(A)
    \n+
    231 << "]" << std::endl;
    \n+
    232
    \n+
    233 // print all rows
    \n+
    234 for (typename M::size_type i=0; i<MatrixDimension<M>::rowdim(A); i++)
    \n+
    235 {
    \n+
    236 s << rowtext; // start a new row
    \n+
    237 s << " "; // space in front of each entry
    \n+
    238 s.width(4); // set width for counter
    \n+
    239 s << i; // number of first entry in a line
    \n+
    240 print_row(s,A,0,0,i,width,precision); // generic print
    \n+
    241 s << std::endl; // start a new line
    \n+
    242 }
    \n+
    243
    \n+
    244 // reset the output format
    \n+
    245 s.flags(oldflags);
    \n+
    246 s.precision(oldprec);
    \n+
    247 }
    \n+
    \n+
    248
    \n+
    270 template<class B, int n, int m, class A>
    \n+
    \n+
    271 void printSparseMatrix(std::ostream& s,
    \n+\n+
    273 std::string title, std::string rowtext,
    \n+
    274 int width=3, int precision=2)
    \n+
    275 {
    \n+\n+
    277 // remember old flags
    \n+
    278 std::ios_base::fmtflags oldflags = s.flags();
    \n+
    279 // set the output format
    \n+
    280 s.setf(std::ios_base::scientific, std::ios_base::floatfield);
    \n+
    281 int oldprec = s.precision();
    \n+
    282 s.precision(precision);
    \n+
    283 // print title
    \n+
    284 s << title
    \n+
    285 << " [n=" << mat.N()
    \n+
    286 << ",m=" << mat.M()
    \n+
    287 << ",rowdim=" << MatrixDimension<Matrix>::rowdim(mat)
    \n+
    288 << ",coldim=" << MatrixDimension<Matrix>::coldim(mat)
    \n+
    289 << "]" << std::endl;
    \n+
    290
    \n+
    291 typedef typename Matrix::ConstRowIterator Row;
    \n+
    292
    \n+
    293 for(Row row=mat.begin(); row != mat.end(); ++row) {
    \n+
    294 int skipcols=0;
    \n+
    295 bool reachedEnd=false;
    \n+
    296
    \n+
    297 while(!reachedEnd) {
    \n+
    298 for(int innerrow=0; innerrow<n; ++innerrow) {
    \n+
    299 int count=0;
    \n+
    300 typedef typename Matrix::ConstColIterator Col;
    \n+
    301 Col col=row->begin();
    \n+
    302 for(; col != row->end(); ++col,++count) {
    \n+
    303 if(count<skipcols)
    \n+
    304 continue;
    \n+
    305 if(count>=skipcols+width)
    \n+
    306 break;
    \n+
    307 if(innerrow==0) {
    \n+
    308 if(count==skipcols) {
    \n+
    309 s << rowtext; // start a new row
    \n+
    310 s << " "; // space in front of each entry
    \n+
    311 s.width(4); // set width for counter
    \n+
    312 s << row.index()<<": "; // number of first entry in a line
    \n+
    313 }
    \n+
    314 s.width(4);
    \n+
    315 s<<col.index()<<": |";
    \n+
    316 } else {
    \n+
    317 if(count==skipcols) {
    \n+
    318 for(typename std::string::size_type i=0; i < rowtext.length(); i++)
    \n+
    319 s<<" ";
    \n+
    320 s<<" ";
    \n+
    321 }
    \n+
    322 s<<" |";
    \n+
    323 }
    \n+
    324 for(int innercol=0; innercol < m; ++innercol) {
    \n+
    325 s.width(9);
    \n+
    326 s<<(*col)[innerrow][innercol]<<" ";
    \n+
    327 }
    \n+
    328
    \n+
    329 s<<"|";
    \n+
    330 }
    \n+
    331 if(innerrow==n-1 && col==row->end())
    \n+
    332 reachedEnd = true;
    \n+
    333 else
    \n+
    334 s << std::endl;
    \n+
    335 }
    \n+
    336 skipcols += width;
    \n+
    337 s << std::endl;
    \n+
    338 }
    \n+
    339 s << std::endl;
    \n+
    340 }
    \n+
    341
    \n+
    342 // reset the output format
    \n+
    343 s.flags(oldflags);
    \n+
    344 s.precision(oldprec);
    \n+
    345 }
    \n+
    \n+
    346
    \n+
    347 namespace
    \n+
    348 {
    \n+
    349 template<typename T>
    \n+
    350 struct MatlabPODWriter
    \n+
    351 {
    \n+
    352 static std::ostream& write(const T& t, std::ostream& s)
    \n+
    353 {
    \n+
    354 s << t;
    \n+
    355 return s;
    \n+
    356 }
    \n+
    357 };
    \n+
    358 template<typename T>
    \n+
    359 struct MatlabPODWriter<std::complex<T> >
    \n+
    360 {
    \n+
    361 static std::ostream& write(const std::complex<T>& t, std::ostream& s)
    \n+
    362 {
    \n+
    363 s << t.real() << " " << t.imag();
    \n+
    364 return s;
    \n+
    365 }
    \n+
    366 };
    \n+
    367 } // anonymous namespace
    \n+
    368
    \n+
    378 template <class FieldType>
    \n+
    \n+
    379 void writeMatrixToMatlabHelper(const FieldType& value,
    \n+
    380 int rowOffset, int colOffset,
    \n+
    381 std::ostream& s,
    \n+
    382 typename std::enable_if_t<Dune::IsNumber<FieldType>::value>* sfinae = nullptr)
    \n+
    383 {
    \n+
    384 //+1 for Matlab numbering
    \n+
    385 s << rowOffset + 1 << " " << colOffset + 1 << " ";
    \n+
    386 MatlabPODWriter<FieldType>::write(value, s)<< std::endl;
    \n+
    387 }
    \n+
    \n+
    388
    \n+
    396 template <class MatrixType>
    \n+
    \n+
    397 void writeMatrixToMatlabHelper(const MatrixType& matrix,
    \n+
    398 int externalRowOffset, int externalColOffset,
    \n+
    399 std::ostream& s,
    \n+
    400 typename std::enable_if_t<!Dune::IsNumber<MatrixType>::value>* sfinae = nullptr)
    \n+
    401 {
    \n+
    402 // Precompute the accumulated sizes of the columns
    \n+
    403 std::vector<typename MatrixType::size_type> colOffset(matrix.M());
    \n+
    404 if (colOffset.size() > 0)
    \n+
    405 colOffset[0] = 0;
    \n+
    406
    \n+
    407 for (typename MatrixType::size_type i=0; i<matrix.M()-1; i++)
    \n+
    408 colOffset[i+1] = colOffset[i] +
    \n+\n+
    410
    \n+
    411 typename MatrixType::size_type rowOffset = 0;
    \n+
    412
    \n+
    413 // Loop over all matrix rows
    \n+
    414 for (typename MatrixType::size_type rowIdx=0; rowIdx<matrix.N(); rowIdx++)
    \n+
    415 {
    \n+
    416 auto cIt = matrix[rowIdx].begin();
    \n+
    417 auto cEndIt = matrix[rowIdx].end();
    \n+
    418
    \n+
    419 // Loop over all columns in this row
    \n+
    420 for (; cIt!=cEndIt; ++cIt)
    \n+\n+
    422 externalRowOffset+rowOffset,
    \n+
    423 externalColOffset + colOffset[cIt.index()],
    \n+
    424 s);
    \n+
    425
    \n+
    426 rowOffset += MatrixDimension<MatrixType>::rowdim(matrix, rowIdx);
    \n+
    427 }
    \n+
    428
    \n+
    429 }
    \n+
    \n+
    430
    \n+
    450 template <class MatrixType>
    \n+
    \n+
    451 void writeMatrixToMatlab(const MatrixType& matrix,
    \n+
    452 const std::string& filename, int outputPrecision = 18)
    \n+
    453 {
    \n+
    454 std::ofstream outStream(filename.c_str());
    \n+
    455 int oldPrecision = outStream.precision();
    \n+
    456 outStream.precision(outputPrecision);
    \n+
    457
    \n+
    458 writeMatrixToMatlabHelper(matrix, 0, 0, outStream);
    \n+
    459 outStream.precision(oldPrecision);
    \n+
    460 }
    \n+
    \n+
    461
    \n+
    462 // Recursively write vector entries to a stream
    \n+
    463 template<class V>
    \n+
    \n+
    464 void writeVectorToMatlabHelper (const V& v, std::ostream& stream)
    \n+
    465 {
    \n+
    466 if constexpr (IsNumber<V>()) {
    \n+
    467 stream << v << std::endl;
    \n+
    468 } else {
    \n+
    469 for (const auto& entry : v)
    \n+
    470 writeVectorToMatlabHelper(entry, stream);
    \n+
    471 }
    \n+
    472 }
    \n+
    \n+
    473
    \n+
    491 template <class VectorType>
    \n+
    \n+
    492 void writeVectorToMatlab(const VectorType& vector,
    \n+
    493 const std::string& filename, int outputPrecision = 18)
    \n+
    494 {
    \n+
    495 std::ofstream outStream(filename.c_str());
    \n+
    496 int oldPrecision = outStream.precision();
    \n+
    497 outStream.precision(outputPrecision);
    \n+
    498
    \n+
    499 writeVectorToMatlabHelper(vector, outStream);
    \n+
    500 outStream.precision(oldPrecision);
    \n+
    501 }
    \n+
    \n+
    502
    \n+
    503 namespace Impl {
    \n+
    504
    \n+
    506 struct NullStream {
    \n+
    507 template <class Any>
    \n+
    508 friend NullStream &operator<<(NullStream &dev0, Any &&) {
    \n+
    509 return dev0;
    \n+
    510 }
    \n+
    511 };
    \n+
    512
    \n+
    514 // svg shall be closed with a group and an svg. i.e. "</g></svg>"
    \n+
    515 template <class Stream, class SVGMatrixOptions>
    \n+
    516 void writeSVGMatrixHeader(Stream &out, const SVGMatrixOptions &opts,
    \n+
    517 std::pair<std::size_t, size_t> offsets) {
    \n+
    518 auto [col_offset, row_offset] = offsets;
    \n+
    519 double width = opts.width;
    \n+
    520 double height = opts.height;
    \n+
    521 // if empty, we try to figure out a sensible value of width and height
    \n+
    522 if (opts.width == 0 and opts.height == 0)
    \n+
    523 width = height = 500;
    \n+
    524 if (opts.width == 0)
    \n+
    525 width = opts.height * (double(col_offset) / row_offset);
    \n+
    526 if (opts.height == 0)
    \n+
    527 height = opts.width * (double(row_offset) / col_offset);
    \n+
    528
    \n+
    529 // scale group w.r.t final offsets
    \n+
    530 double scale_width = width / col_offset;
    \n+
    531 double scale_height = height / row_offset;
    \n+
    532
    \n+
    533 // write the header text
    \n+
    534 out << "<svg xmlns='http://www.w3.org/2000/svg' width='" << std::ceil(width)
    \n+
    535 << "' height='" << std::ceil(height) << "' version='1.1'>\\n"
    \n+
    536 << "<style>\\n"
    \n+
    537 << opts.style << "</style>\\n"
    \n+
    538 << "<g transform='scale(" << scale_width << " " << scale_height
    \n+
    539 << ")'>\\n";
    \n+
    540 }
    \n+
    541
    \n+
    543 template <class Mat, class Stream, class SVGMatrixOptions,
    \n+
    544 class RowPrefix, class ColPrefix>
    \n+
    545 std::pair<std::size_t, size_t>
    \n+
    546 writeSVGMatrix(const Mat &mat, Stream &out, SVGMatrixOptions opts,
    \n+
    547 RowPrefix row_prefix, ColPrefix col_prefix) {
    \n+
    548 // get values to fill the offests
    \n+
    549 const auto& block_size = opts.block_size;
    \n+
    550 const auto& interspace = opts.interspace;
    \n+
    551
    \n+
    552 const std::size_t rows = mat.N();
    \n+
    553 const std::size_t cols = mat.M();
    \n+
    554
    \n+
    555 // disable header write for recursive calls
    \n+
    556 const bool write_header = opts.write_header;
    \n+
    557 opts.write_header = false;
    \n+
    558
    \n+
    559 // counter of offsets for every block
    \n+
    560 std::size_t row_offset = interspace;
    \n+
    561 std::size_t col_offset = interspace;
    \n+
    562
    \n+
    563 // lambda helper: for-each value
    \n+
    564 auto for_each_entry = [&mat](const auto &call_back) {
    \n+
    565 for (auto row_it = mat.begin(); row_it != mat.end(); ++row_it) {
    \n+
    566 for (auto col_it = row_it->begin(); col_it != row_it->end(); ++col_it) {
    \n+
    567 call_back(row_it.index(), col_it.index(), *col_it);
    \n+
    568 }
    \n+
    569 }
    \n+
    570 };
    \n+
    571
    \n+
    572 // accumulate content in another stream so that we write in correct order
    \n+
    573 std::stringstream ss;
    \n+
    574
    \n+
    575 // we need to append current row and col values to the prefixes
    \n+
    576 row_prefix.push_back(0);
    \n+
    577 col_prefix.push_back(0);
    \n+
    578
    \n+
    579 // do we need to write nested matrix blocks?
    \n+
    580 if constexpr (Dune::blockLevel<typename Mat::block_type>() == 0) {
    \n+
    581 // simple case: write svg block content to stream for each value
    \n+
    582 for_each_entry([&](const auto &row, const auto &col, const auto &val) {
    \n+
    583 std::size_t x_off = interspace + col * (interspace + block_size);
    \n+
    584 std::size_t y_off = interspace + row * (interspace + block_size);
    \n+
    585 row_prefix.back() = row;
    \n+
    586 col_prefix.back() = col;
    \n+
    587 opts.writeSVGBlock(ss, row_prefix, col_prefix, val,
    \n+
    588 {x_off, y_off, block_size, block_size});
    \n+
    589 });
    \n+
    590 col_offset += cols * (block_size + interspace);
    \n+
    591 row_offset += rows * (block_size + interspace);
    \n+
    592 } else {
    \n+
    593 // before we write anything, we need to calculate the
    \n+
    594 // offset for every {row,col} index
    \n+
    595 const auto null_offset = std::numeric_limits<std::size_t>::max();
    \n+
    596 std::vector<std::size_t> col_offsets(cols + 1, null_offset);
    \n+
    597 std::vector<std::size_t> row_offsets(rows + 1, null_offset);
    \n+
    598 for_each_entry([&](const auto &row, const auto &col, const auto &val) {
    \n+
    599 NullStream dev0;
    \n+
    600 // get size of sub-block
    \n+
    601 auto sub_size =
    \n+
    602 writeSVGMatrix(val, dev0, opts, row_prefix, col_prefix);
    \n+
    603
    \n+
    604 // if we didn't see col size before
    \n+
    605 if (col_offsets[col + 1] == null_offset) // write it in the offset vector
    \n+
    606 col_offsets[col + 1] = sub_size.first;
    \n+
    607
    \n+
    608 // repeat proces for row sizes
    \n+
    609 if (row_offsets[row + 1] == null_offset)
    \n+
    610 row_offsets[row + 1] = sub_size.second;
    \n+
    611 });
    \n+
    612
    \n+
    613 // if some rows/cols were not visited, make an educated guess with the minimum offset
    \n+
    614 auto min_row_offset = *std::min_element(begin(row_offsets), end(row_offsets));
    \n+
    615 std::replace(begin(row_offsets), end(row_offsets), null_offset, min_row_offset);
    \n+
    616 auto min_col_offset = *std::min_element(begin(col_offsets), end(col_offsets));
    \n+
    617 std::replace(begin(col_offsets), end(col_offsets), null_offset, min_col_offset);
    \n+
    618
    \n+
    619 // we have sizes for every block: to get offsets we make a partial sum
    \n+
    620 col_offsets[0] = interspace;
    \n+
    621 row_offsets[0] = interspace;
    \n+
    622 for (std::size_t i = 1; i < col_offsets.size(); i++)
    \n+
    623 col_offsets[i] += col_offsets[i - 1] + interspace;
    \n+
    624 for (std::size_t i = 1; i < row_offsets.size(); i++)
    \n+
    625 row_offsets[i] += row_offsets[i - 1] + interspace;
    \n+
    626
    \n+
    627 for_each_entry([&](const auto &row, const auto &col, const auto &val) {
    \n+
    628 // calculate svg view from offsets
    \n+
    629 std::size_t width =
    \n+
    630 col_offsets[col + 1] - col_offsets[col] - interspace;
    \n+
    631 std::size_t height =
    \n+
    632 row_offsets[row + 1] - row_offsets[row] - interspace;
    \n+
    633 row_prefix.back() = row;
    \n+
    634 col_prefix.back() = col;
    \n+
    635 // content of the sub-block has origin at {0,0}: shift it to the correct place
    \n+
    636 ss << "<svg x='" << col_offsets[col] << "' y='" << row_offsets[row]
    \n+
    637 << "' width='" << width << "' height='" << height << "'>\\n";
    \n+
    638 // write a nested svg with the contents of the sub-block
    \n+
    639 writeSVGMatrix(val, ss, opts, row_prefix, col_prefix);
    \n+
    640 ss << "</svg>\\n";
    \n+
    641 });
    \n+
    642 col_offset = col_offsets.back();
    \n+
    643 row_offset = row_offsets.back();
    \n+
    644 }
    \n+
    645
    \n+
    646 // write content in order!
    \n+
    647 // (i) if required, first header
    \n+
    648 if (write_header)
    \n+
    649 writeSVGMatrixHeader(out, opts, {col_offset, row_offset});
    \n+
    650
    \n+
    651 col_prefix.pop_back();
    \n+
    652 row_prefix.pop_back();
    \n+
    653 // (ii) an svg block for this level
    \n+
    654 opts.writeSVGBlock(out, row_prefix, col_prefix, mat,
    \n+
    655 {0, 0, col_offset, row_offset});
    \n+
    656 // (iii) the content of the matrix
    \n+
    657 out << ss.str();
    \n+
    658 // (iv) if required, close the header
    \n+
    659 if (write_header)
    \n+
    660 out << "</g>\\n</svg>\\n";
    \n+
    661
    \n+
    662 // return the total required for this block
    \n+
    663 return {col_offset, row_offset};
    \n+
    664 }
    \n+
    665 } // namespace Impl
    \n+
    666
    \n+
    667
    \n+
    \n+\n+
    676 std::size_t block_size = 10;
    \n+
    678 std::size_t interspace = 5;
    \n+
    680 std::size_t width = 500;
    \n+
    682 std::size_t height = 0;
    \n+
    684 bool write_header = true;
    \n+
    686 std::string style = " .matrix-block {\\n"
    \n+
    687 " fill: cornflowerblue;\\n"
    \n+
    688 " fill-opacity: 0.4;\\n"
    \n+
    689 " stroke-width: 2;\\n"
    \n+
    690 " stroke: black;\\n"
    \n+
    691 " stroke-opacity: 0.5;\\n"
    \n+
    692 " }\\n"
    \n+
    693 " .matrix-block:hover {\\n"
    \n+
    694 " fill: lightcoral;\\n"
    \n+
    695 " fill-opacity: 0.4;\\n"
    \n+
    696 " stroke-opacity: 1;\\n"
    \n+
    697 " }\\n";
    \n+
    698
    \n+
    710 std::function<std::string(const double&)> color_fill;
    \n+
    711
    \n+
    717 template <class RowPrefix, class ColPrefix>
    \n+
    \n+
    718 std::string blockStyleClass(const RowPrefix &row_prefix,
    \n+
    719 const ColPrefix &col_prefix) const {
    \n+
    720 // here, you can potentially give a different style to each block
    \n+
    721 return "matrix-block";
    \n+
    722 }
    \n+
    \n+
    723
    \n+
    725 bool write_block_title = true;
    \n+
    726
    \n+
    732 template <class Stream, class RowPrefix, class ColPrefix, class Block>
    \n+
    \n+
    733 void writeBlockTitle(Stream& out, const RowPrefix &row_prefix,
    \n+
    734 const ColPrefix &col_prefix,
    \n+
    735 const Block &block) const {
    \n+
    736 if (this->write_block_title) {
    \n+
    737 out << "<title>";
    \n+
    738 assert(row_prefix.size() == col_prefix.size());
    \n+
    739 for (std::size_t i = 0; i < row_prefix.size(); ++i)
    \n+
    740 out << "[" << row_prefix[i] << ", "<< col_prefix[i] << "]";
    \n+
    741 if constexpr (Dune::blockLevel<Block>() == 0)
    \n+
    742 out << ": " << block;
    \n+
    743 out << "</title>\\n";
    \n+
    744 }
    \n+
    745 }
    \n+
    \n+
    746
    \n+
    768 template <class Stream, class RowPrefix, class ColPrefix, class Block>
    \n+
    \n+
    769 void writeSVGBlock(Stream &out,
    \n+
    770 const RowPrefix &row_prefix,
    \n+
    771 const ColPrefix &col_prefix, const Block block,
    \n+
    772 const std::array<std::size_t, 4> &svg_box) const {
    \n+
    773 // get bounding box values
    \n+
    774 auto &[x_off, y_off, width, height] = svg_box;
    \n+
    775 // get style class
    \n+
    776 std::string block_class = this->blockStyleClass(row_prefix, col_prefix);
    \n+
    777 // write a rectangle on the bounding box
    \n+
    778 out << "<rect class='" << block_class << "' x='" << x_off << "' y='"
    \n+
    779 << y_off << "' width='" << width << "' height='" << height << "'";
    \n+
    780 if constexpr (Dune::blockLevel<Block>() == 0 and std::is_convertible<Block,double>{})
    \n+
    781 if (color_fill)
    \n+
    782 out << " style='fill-opacity: 1;fill:" << color_fill(double(block)) << "'";
    \n+
    783
    \n+
    784 out << ">\\n";
    \n+
    785 // give the rectangle a title (in html this shows info about the block)
    \n+
    786 this->writeBlockTitle(out,row_prefix, col_prefix, block);
    \n+
    787 // close rectangle
    \n+
    788 out << "</rect>\\n";
    \n+
    789 }
    \n+
    \n+
    790 };
    \n+
    \n+
    791
    \n+
    806 template <class Mat, class SVGOptions = DefaultSVGMatrixOptions>
    \n+
    \n+
    807 void writeSVGMatrix(const Mat &mat, std::ostream &out,
    \n+
    808 SVGOptions opts = {}) {
    \n+
    809 // We need a vector that can fit all the multi-indices for rows and colums
    \n+
    810 using IndexPrefix = Dune::ReservedVector<std::size_t, blockLevel<Mat>()>;
    \n+
    811 // Call overload for Mat type
    \n+
    812 Impl::writeSVGMatrix(mat, out, opts, IndexPrefix{}, IndexPrefix{});
    \n+
    813 }
    \n+
    \n+
    814
    \n+
    817} // namespace Dune
    \n+
    818
    \n+
    819#endif
    \n+\n+
    Helper functions for determining the vector/matrix block level.
    \n+
    Implementation of the BCRSMatrix class.
    \n+
    Some handy generic functions for ISTL matrices.
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    void writeSVGMatrix(const Mat &mat, std::ostream &out, SVGOptions opts={})
    Writes the visualization of matrix in the SVG format.
    Definition io.hh:807
    \n+
    void writeMatrixToMatlab(const MatrixType &matrix, const std::string &filename, int outputPrecision=18)
    Writes sparse matrix in a Matlab-readable format.
    Definition io.hh:451
    \n+
    void print_row(std::ostream &s, const K &value, typename FieldMatrix< K, 1, 1 >::size_type I, typename FieldMatrix< K, 1, 1 >::size_type J, typename FieldMatrix< K, 1, 1 >::size_type therow, int width, int precision, typename std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)
    Print one row of a matrix, specialization for number types.
    Definition io.hh:151
    \n+
    void printmatrix(std::ostream &s, const M &A, std::string title, std::string rowtext, int width=10, int precision=2)
    Print a generic block matrix.
    Definition io.hh:213
    \n+
    void printvector(std::ostream &s, const V &v, std::string title, std::string rowtext, int columns=1, int width=10, int precision=2)
    Print an ISTL vector.
    Definition io.hh:89
    \n+
    void writeMatrixToMatlabHelper(const FieldType &value, int rowOffset, int colOffset, std::ostream &s, typename std::enable_if_t< Dune::IsNumber< FieldType >::value > *sfinae=nullptr)
    Helper method for the writeMatrixToMatlab routine.
    Definition io.hh:379
    \n+
    void writeVectorToMatlabHelper(const V &v, std::ostream &stream)
    Definition io.hh:464
    \n+
    void writeVectorToMatlab(const VectorType &vector, const std::string &filename, int outputPrecision=18)
    Writes vectors in a Matlab-readable format.
    Definition io.hh:492
    \n+
    void recursive_printvector(std::ostream &s, const V &v, std::string rowtext, int &counter, int columns, int width)
    Recursively print a vector.
    Definition io.hh:52
    \n+
    void printSparseMatrix(std::ostream &s, const BCRSMatrix< FieldMatrix< B, n, m >, A > &mat, std::string title, std::string rowtext, int width=3, int precision=2)
    Prints a BCRSMatrix with fixed sized blocks.
    Definition io.hh:271
    \n+
    void fill_row(std::ostream &s, int m, int width, int precision)
    Print a row of zeros for a non-existing block.
    Definition io.hh:133
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n-
    A nonoverlapping operator with communication object.
    Definition novlpschwarz.hh:61
    \n-
    C::PIS PIS
    Definition novlpschwarz.hh:74
    \n-
    C communication_type
    The type of the communication object.
    Definition novlpschwarz.hh:72
    \n-
    std::multimap< int, std::pair< int, RILIterator > > RIMap
    Definition novlpschwarz.hh:82
    \n-
    C::RI RI
    Definition novlpschwarz.hh:75
    \n-
    void novlp_op_apply(const X &x, Y &y, field_type alpha) const
    Definition novlpschwarz.hh:126
    \n-
    NonoverlappingSchwarzOperator(std::shared_ptr< const matrix_type > A, const communication_type &com)
    Definition novlpschwarz.hh:96
    \n-
    M::ConstColIterator ColIterator
    Definition novlpschwarz.hh:79
    \n-
    virtual void apply(const X &x, Y &y) const
    apply operator to x:
    Definition novlpschwarz.hh:101
    \n-
    X domain_type
    The type of the domain.
    Definition novlpschwarz.hh:66
    \n-
    virtual SolverCategory::Category category() const
    Category of the linear operator (see SolverCategory::Category)
    Definition novlpschwarz.hh:235
    \n-
    RIMap::iterator RIMapit
    Definition novlpschwarz.hh:83
    \n-
    virtual const matrix_type & getmat() const
    get matrix via *
    Definition novlpschwarz.hh:121
    \n-
    RIL::const_iterator RILIterator
    Definition novlpschwarz.hh:78
    \n-
    std::multimap< int, int > MM
    Definition novlpschwarz.hh:81
    \n-
    Y range_type
    The type of the range.
    Definition novlpschwarz.hh:68
    \n-
    M matrix_type
    The type of the matrix we operate on.
    Definition novlpschwarz.hh:64
    \n-
    M::ConstRowIterator RowIterator
    Definition novlpschwarz.hh:80
    \n-
    const communication_type & getCommunication() const
    Get the object responsible for communication.
    Definition novlpschwarz.hh:241
    \n-
    virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const
    apply operator to x, scale and add:
    Definition novlpschwarz.hh:109
    \n-
    RI::RemoteIndexList RIL
    Definition novlpschwarz.hh:76
    \n-
    X::field_type field_type
    The field type of the range.
    Definition novlpschwarz.hh:70
    \n-
    NonoverlappingSchwarzOperator(const matrix_type &A, const communication_type &com)
    constructor: just store a reference to a matrix.
    Definition novlpschwarz.hh:92
    \n-
    RI::const_iterator RIIterator
    Definition novlpschwarz.hh:77
    \n-
    Nonoverlapping parallel preconditioner.
    Definition novlpschwarz.hh:276
    \n-
    NonoverlappingBlockPreconditioner(P &p, const communication_type &c)
    Constructor.
    Definition novlpschwarz.hh:302
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition novlpschwarz.hh:359
    \n-
    virtual void apply(domain_type &v, const range_type &d)
    Apply the preconditioner.
    Definition novlpschwarz.hh:332
    \n-
    P::range_type range_type
    The range type of the preconditioner.
    Definition novlpschwarz.hh:284
    \n-
    NonoverlappingBlockPreconditioner(const std::shared_ptr< P > &p, const communication_type &c)
    Constructor.
    Definition novlpschwarz.hh:313
    \n-
    virtual void post(domain_type &x)
    Clean up.
    Definition novlpschwarz.hh:353
    \n-
    C communication_type
    The type of the communication object.
    Definition novlpschwarz.hh:286
    \n-
    virtual void pre(domain_type &x, range_type &b)
    Prepare the preconditioner.
    Definition novlpschwarz.hh:322
    \n-
    void apply(X &v, const Y &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition novlpschwarz.hh:342
    \n-
    P::domain_type domain_type
    The domain type of the preconditioner.
    Definition novlpschwarz.hh:282
    \n-
    A linear operator exporting itself in matrix form.
    Definition operators.hh:109
    \n-
    @ owner
    Definition owneroverlapcopy.hh:61
    \n-
    @ copy
    Definition owneroverlapcopy.hh:61
    \n-
    @ overlap
    Definition owneroverlapcopy.hh:61
    \n-
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    @ nonoverlapping
    Category for non-overlapping solvers.
    Definition solvercategory.hh:27
    \n+
    Definition matrixutils.hh:211
    \n+
    static auto coldim(const M &A)
    Definition matrixutils.hh:219
    \n+
    static auto rowdim(const M &A)
    Definition matrixutils.hh:214
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    Default options class to write SVG matrices.
    Definition io.hh:674
    \n+
    std::string style
    CSS style block to write in header.
    Definition io.hh:686
    \n+
    std::size_t width
    Final width size (pixels) of the SVG header. If 0, size is automatic.
    Definition io.hh:680
    \n+
    std::function< std::string(const double &)> color_fill
    Color fill for default options.
    Definition io.hh:710
    \n+
    std::size_t block_size
    size (pixels) of the deepst block/value of the matrix
    Definition io.hh:676
    \n+
    void writeSVGBlock(Stream &out, const RowPrefix &row_prefix, const ColPrefix &col_prefix, const Block block, const std::array< std::size_t, 4 > &svg_box) const
    Write an SVG object for a given block/value in the matrix.
    Definition io.hh:769
    \n+
    void writeBlockTitle(Stream &out, const RowPrefix &row_prefix, const ColPrefix &col_prefix, const Block &block) const
    Helper function writes a title for a given block and prefix.
    Definition io.hh:733
    \n+
    std::size_t interspace
    size (pixels) of the interspace between blocks
    Definition io.hh:678
    \n+
    bool write_block_title
    (Helper) Whether to write a title on the rectangle value
    Definition io.hh:725
    \n+
    std::size_t height
    Final height size (pixels) of the SVG header. If 0, size is automatic.
    Definition io.hh:682
    \n+
    bool write_header
    Whether to write the SVG header.
    Definition io.hh:684
    \n+
    std::string blockStyleClass(const RowPrefix &row_prefix, const ColPrefix &col_prefix) const
    Helper function that returns an style class for a given prefix.
    Definition io.hh:718
    \n+
    ConstIterator class for sequential access.
    Definition matrix.hh:404
    \n+
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n+
    RowIterator end()
    Get iterator to one beyond last row.
    Definition matrix.hh:620
    \n+
    RowIterator begin()
    Get iterator to first row.
    Definition matrix.hh:614
    \n+
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n+
    size_type M() const
    Return the number of columns.
    Definition matrix.hh:700
    \n+
    size_type N() const
    Return the number of rows.
    Definition matrix.hh:695
    \n+
    Definition matrixutils.hh:27
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-utf-8\n+us-ascii\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,474 +1,801 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-novlpschwarz.hh\n+io.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_NOVLPSCHWARZ_HH\n-6#define DUNE_ISTL_NOVLPSCHWARZ_HH\n+5#ifndef DUNE_ISTL_IO_HH\n+6#define DUNE_ISTL_IO_HH\n 7\n-8#include // for input/output to shell\n-9#include // for input/output to files\n-10#include // STL vector class\n-11#include \n-12\n-13#include // Yes, we do some math here\n-14\n-15#include \n-16\n-17#include \n-18\n-19#include \"_\bi_\bo_\b._\bh_\bh\"\n-20#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-21#include \"_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-22#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-23#include \"_\bi_\bo_\b._\bh_\bh\"\n-24#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n-25#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n-26#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n-27#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n-28#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n-29#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n-30#include \"_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\"\n-31\n-32namespace _\bD_\bu_\bn_\be {\n-33\n-59 template\n-_\b6_\b0 class _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br : public _\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-61 {\n-62 public:\n-_\b6_\b4 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b6_\b6 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b6_\b8 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b7_\b0 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b7_\b2 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n-73\n-_\b7_\b4 typedef typename C::PIS _\bP_\bI_\bS;\n-_\b7_\b5 typedef typename C::RI _\bR_\bI;\n-_\b7_\b6 typedef typename RI::RemoteIndexList _\bR_\bI_\bL;\n-_\b7_\b7 typedef typename RI::const_iterator _\bR_\bI_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b7_\b8 typedef typename RIL::const_iterator _\bR_\bI_\bL_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b7_\b9 typedef typename M::ConstColIterator _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b8_\b0 typedef typename M::ConstRowIterator _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b8_\b1 typedef std::multimap _\bM_\bM;\n-_\b8_\b2 typedef std::multimap > _\bR_\bI_\bM_\ba_\bp;\n-_\b8_\b3 typedef typename RIMap::iterator _\bR_\bI_\bM_\ba_\bp_\bi_\bt;\n-84\n-_\b9_\b2 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br (const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& A, const\n-_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& com)\n-93 : _A_(stackobject_to_shared_ptr(A)), communication(com), buildcomm(true)\n-94 {}\n+8#include \n+9#include \n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15\n+16#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n+17#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+18#include \n+19#include \n+20#include \n+21#include \n+22\n+23#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+24#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+25\n+26namespace _\bD_\bu_\bn_\be {\n+27\n+40 //\n+41 // pretty printing of vectors\n+42 //\n+43\n+51 template\n+_\b5_\b2 void _\br_\be_\bc_\bu_\br_\bs_\bi_\bv_\be_\b__\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br (std::ostream& s, const V& v, std::string\n+rowtext,\n+53 int& counter, int columns, int width)\n+54 {\n+55 if constexpr (IsNumber())\n+56 {\n+57 // Print one number\n+58 if (counter%columns==0)\n+59 {\n+60 s << rowtext; // start a new row\n+61 s << \" \"; // space in front of each entry\n+62 s.width(4); // set width for counter\n+63 s << counter; // number of first entry in a line\n+64 }\n+65 s << \" \"; // space in front of each entry\n+66 s.width(width); // set width for each entry anew\n+67 s << v; // yeah, the number !\n+68 counter++; // increment the counter\n+69 if (counter%columns==0)\n+70 s << std::endl; // start a new line\n+71 }\n+72 else\n+73 {\n+74 // Recursively print a vector\n+75 for (const auto& entry : v)\n+76 _\br_\be_\bc_\bu_\br_\bs_\bi_\bv_\be_\b__\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(s,entry,rowtext,counter,columns,width);\n+77 }\n+78 }\n+79\n+80\n+88 template\n+_\b8_\b9 void _\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br (std::ostream& s, const V& v, std::string title,\n+90 std::string rowtext, int columns=1, int width=10,\n+91 int precision=2)\n+92 {\n+93 // count the numbers printed to make columns\n+94 int counter=0;\n 95\n-_\b9_\b6 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br (std::shared_ptr A, const\n-_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& com)\n-97 : _A_(A), communication(com), buildcomm(true)\n-98 {}\n-99\n-_\b1_\b0_\b1 virtual void _\ba_\bp_\bp_\bl_\by (const X& x, Y& y) const\n-102 {\n-103 y = 0;\n-104 _\bn_\bo_\bv_\bl_\bp_\b__\bo_\bp_\b__\ba_\bp_\bp_\bl_\by(x,y,1);\n-105 communication.addOwnerCopyToOwnerCopy(y,y);\n-106 }\n+96 // remember old flags\n+97 std::ios_base::fmtflags oldflags = s.flags();\n+98\n+99 // set the output format\n+100 s.setf(std::ios_base::scientific, std::ios_base::floatfield);\n+101 int oldprec = s.precision();\n+102 s.precision(precision);\n+103\n+104 // print title\n+105 s << title << \" [blocks=\" << v.N() << \",dimension=\" << v.dim() << \"]\"\n+106 << std::endl;\n 107\n-_\b1_\b0_\b9 virtual void _\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd (_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha, const X& x, Y& y) const\n-110 {\n-111 // only apply communication to alpha*A*x to make it consistent,\n-112 // y already has to be consistent.\n-113 Y y1(y);\n-114 y = 0;\n-115 _\bn_\bo_\bv_\bl_\bp_\b__\bo_\bp_\b__\ba_\bp_\bp_\bl_\by(x,y,alpha);\n-116 communication.addOwnerCopyToOwnerCopy(y,y);\n-117 y += y1;\n+108 // print data from all blocks\n+109 _\br_\be_\bc_\bu_\br_\bs_\bi_\bv_\be_\b__\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(s,v,rowtext,counter,columns,width);\n+110\n+111 // check if new line is required\n+112 if (counter%columns!=0)\n+113 s << std::endl;\n+114\n+115 // reset the output format\n+116 s.flags(oldflags);\n+117 s.precision(oldprec);\n 118 }\n 119\n-_\b1_\b2_\b1 virtual const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bg_\be_\bt_\bm_\ba_\bt () const\n-122 {\n-123 return *_A_;\n-124 }\n+120\n+122 //\n+123 // pretty printing of matrices\n+124 //\n 125\n-_\b1_\b2_\b6 void _\bn_\bo_\bv_\bl_\bp_\b__\bo_\bp_\b__\ba_\bp_\bp_\bl_\by (const X& x, Y& y, _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha) const\n-127 {\n-128 //get index sets\n-129 const _\bP_\bI_\bS& pis=communication.indexSet();\n-130 const _\bR_\bI& ri = communication.remoteIndices();\n-131\n-132 // at the beginning make a multimap \"bordercontribution\".\n-133 // process has i and j as border dofs but is not the owner\n-134 // => only contribute to Ax if i,j is in bordercontribution\n-135 if (buildcomm == true) {\n-136\n-137 // set up mask vector\n-138 if (mask.size()!=static_cast::size_type>\n-(x.size())) {\n-139 mask.resize(x.size());\n-140 for (typename std::vector::size_type i=0; ilocal().attribute()==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n-144 mask[i->local().local()] = 0;\n-145 else if (i->local().attribute()==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp)\n-146 mask[i->local().local()] = 2;\n-147 }\n-148\n-149 for (MM::iterator iter = bordercontribution.begin();\n-150 iter != bordercontribution.end(); ++iter)\n-151 bordercontribution.erase(iter);\n-152 std::map owner; //key: local index i, value: process, that owns i\n-153 _\bR_\bI_\bM_\ba_\bp rimap;\n-154\n-155 // for each local index make multimap rimap:\n-156 // key: local index i, data: pair of process that knows i and pointer to RI\n-entry\n-157 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i = _A_->begin(); i != _A_->end(); ++i)\n-158 if (mask[i.index()] == 0)\n-159 for (_\bR_\bI_\bI_\bt_\be_\br_\ba_\bt_\bo_\br remote = ri.begin(); remote != ri.end(); ++remote) {\n-160 _\bR_\bI_\bL& ril = *(remote->second.first);\n-161 for (_\bR_\bI_\bL_\bI_\bt_\be_\br_\ba_\bt_\bo_\br rindex = ril.begin(); rindex != ril.end(); ++rindex)\n-162 if (rindex->attribute() != _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp)\n-163 if (rindex->localIndexPair().local().local() == i.index()) {\n-164 rimap.insert\n-165 (std::make_pair(i.index(),\n-166 std::pair(remote->first, rindex)));\n-167 if(rindex->attribute()==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br)\n-168 owner.insert(std::make_pair(i.index(),remote->first));\n-169 }\n-170 }\n-171\n-172 int iowner = 0;\n-173 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i = _A_->begin(); i != _A_->end(); ++i) {\n-174 if (mask[i.index()] == 0) {\n-175 std::map::iterator it = owner.find(i.index());\n-176 iowner = it->second;\n-177 std::pair foundiit = rimap.equal_range(i.index());\n-178 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end\n-(); ++j) {\n-179 if (mask[j.index()] == 0) {\n-180 bool flag = true;\n-181 for (_\bR_\bI_\bM_\ba_\bp_\bi_\bt foundi = foundiit.first; foundi != foundiit.second; ++foundi)\n-{\n-182 std::pair foundjit = rimap.equal_range(j.index());\n-183 for (_\bR_\bI_\bM_\ba_\bp_\bi_\bt foundj = foundjit.first; foundj != foundjit.second; ++foundj)\n-184 if (foundj->second.first == foundi->second.first)\n-185 if (foundj->second.second->attribute() == _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:\n-_\bo_\bw_\bn_\be_\br\n-186 || foundj->second.first == iowner\n-187 || foundj->second.first < communication.communicator().rank()) {\n-188 flag = false;\n-189 continue;\n-190 }\n-191 if (flag == false)\n-192 continue;\n-193 }\n-194 // don\u00c2\u00b4t contribute to Ax if\n-195 // 1. the owner of j has i as interior/border dof\n-196 // 2. iowner has j as interior/border dof\n-197 // 3. there is another process with smaller rank that has i and j\n-198 // as interor/border dofs\n-199 // if the owner of j does not have i as interior/border dof,\n-200 // it will not be taken into account\n-201 if (flag==true)\n-202 bordercontribution.insert(std::pair(i.index(),j.index()));\n-203 }\n-204 }\n-205 }\n-206 }\n-207 buildcomm = false;\n-208 }\n-209\n-210 //compute alpha*A*x nonoverlapping case\n-211 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i = _A_->begin(); i != _A_->end(); ++i) {\n-212 if (mask[i.index()] == 0) {\n-213 //dof doesn't belong to process but is border (not ghost)\n-214 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end\n-(); ++j) {\n-215 if (mask[j.index()] == 1) //j is owner => then sum entries\n-216 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);\n-217 else if (mask[j.index()] == 0) {\n-218 std::pair itp =\n-219 bordercontribution.equal_range(i.index());\n-220 for (MM::iterator it = itp.first; it != itp.second; ++it)\n-221 if ((*it).second == (int)j.index())\n-222 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);\n-223 }\n-224 }\n-225 }\n-226 else if (mask[i.index()] == 1) {\n-227 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end\n-(); ++j)\n-228 if (mask[j.index()] != 2)\n-229 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);\n-230 }\n-231 }\n-232 }\n-233\n-_\b2_\b3_\b5 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-236 {\n-237 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg;\n-238 }\n-239\n-_\b2_\b4_\b1 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& _\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn() const\n-242 {\n-243 return communication;\n-244 }\n-245 private:\n-246 std::shared_ptr _A_;\n-247 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& communication;\n-248 mutable bool buildcomm;\n-249 mutable std::vector mask;\n-_\b2_\b5_\b0 mutable std::multimap bordercontribution;\n-251 };\n-252\n-_\b2_\b5_\b5 namespace Amg\n-256 {\n-257 template struct ConstructionTraits;\n-258 }\n-259\n-274 template\n-_\b2_\b7_\b5 class _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-276 : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n-277 friend struct Amg::\n-ConstructionTraits<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >;\n-278 using X = typename P::domain_type;\n-279 using Y = typename P::range_type;\n-280 public:\n-_\b2_\b8_\b2 typedef typename P::domain_type _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b2_\b8_\b4 typedef typename P::range_type _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b2_\b8_\b6 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n-287\n-_\b3_\b0_\b2 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br (P& p, const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& c)\n-303 : _preconditioner(stackobject_to_shared_ptr(p)), _communication(c)\n-304 { }\n-305\n-_\b3_\b1_\b3 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br (const std::shared_ptr

    & p, const\n-_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& c)\n-314 : _preconditioner(p), _communication(c)\n-315 { }\n-316\n-_\b3_\b2_\b2 virtual void _\bp_\br_\be (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b)\n-323 {\n-324 _preconditioner->pre(x,b);\n-325 }\n-326\n-_\b3_\b3_\b2 virtual void _\ba_\bp_\bp_\bl_\by (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& v, const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& d)\n-333 {\n-334 // block preconditioner equivalent to WrappedPreconditioner from\n-335 // pdelab/backend/ovlpistsolverbackend.hh,\n-336 // but not to BlockPreconditioner from schwarz.hh\n-337 _preconditioner->apply(v,d);\n-338 _communication.addOwnerCopyToOwnerCopy(v,v);\n-339 }\n-340\n-341 template\n-_\b3_\b4_\b2 void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n-343 {\n-344 _preconditioner->template apply(v,d);\n-345 _communication.addOwnerCopyToOwnerCopy(v,v);\n-346 }\n-347\n-_\b3_\b5_\b3 virtual void _\bp_\bo_\bs_\bt (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x)\n-354 {\n-355 _preconditioner->post(x);\n+_\b1_\b3_\b3 inline void _\bf_\bi_\bl_\bl_\b__\br_\bo_\bw (std::ostream& s, int m, int width, [[maybe_unused]]\n+int precision)\n+134 {\n+135 for (int j=0; j\n+_\b1_\b5_\b1 void _\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw (std::ostream& s, const K& value,\n+152 [[maybe_unused]] typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\b1_\b,_\b1_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be I,\n+153 [[maybe_unused]] typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\b1_\b,_\b1_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be J,\n+154 [[maybe_unused]] typename _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\b1_\b,_\b1_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be therow,\n+155 int width,\n+156 [[maybe_unused]] int precision,\n+157 typename std::enable_if_t::value>* sfinae = nullptr)\n+158 {\n+159 s << \" \"; // space in front of each entry\n+160 s.width(width); // set width for each entry anew\n+161 s << value;\n+162 }\n+163\n+171 template\n+_\b1_\b7_\b2 void _\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw (std::ostream& s, const M& A, typename M::size_type I,\n+173 typename M::size_type J, typename M::size_type therow,\n+174 int width, int precision,\n+175 typename std::enable_if_t::value>* sfinae = nullptr)\n+176 {\n+177 typename M::size_type i0=I;\n+178 for (typename M::size_type i=0; i=i0 && therow_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(A,i))\n+181 {\n+182 // the row is in this block row !\n+183 typename M::size_type j0=J;\n+184 for (typename M::size_type j=0; j_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(A,j),width,precision);\n+194\n+195 // advance columns\n+196 j0 += _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(A,j);\n+197 }\n+198 }\n+199 // advance rows\n+200 i0 += _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(A,i);\n+201 }\n+202 }\n+203\n+212 template\n+_\b2_\b1_\b3 void _\bp_\br_\bi_\bn_\bt_\bm_\ba_\bt_\br_\bi_\bx (std::ostream& s, const M& A, std::string title,\n+214 std::string rowtext, int width=10, int precision=2)\n+215 {\n+216\n+217 // remember old flags\n+218 std::ios_base::fmtflags oldflags = s.flags();\n+219\n+220 // set the output format\n+221 s.setf(std::ios_base::scientific, std::ios_base::floatfield);\n+222 int oldprec = s.precision();\n+223 s.precision(precision);\n+224\n+225 // print title\n+226 s << title\n+227 << \" [n=\" << A._\bN()\n+228 << \",m=\" << A._\bM()\n+229 << \",rowdim=\" << _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(A)\n+230 << \",coldim=\" << _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(A)\n+231 << \"]\" << std::endl;\n+232\n+233 // print all rows\n+234 for (typename M::size_type i=0; i::rowdim(A); i++)\n+235 {\n+236 s << rowtext; // start a new row\n+237 s << \" \"; // space in front of each entry\n+238 s.width(4); // set width for counter\n+239 s << i; // number of first entry in a line\n+240 _\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw(s,A,0,0,i,width,precision); // generic print\n+241 s << std::endl; // start a new line\n+242 }\n+243\n+244 // reset the output format\n+245 s.flags(oldflags);\n+246 s.precision(oldprec);\n+247 }\n+248\n+270 template\n+_\b2_\b7_\b1 void _\bp_\br_\bi_\bn_\bt_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx(std::ostream& s,\n+272 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bn_\b,_\bm_\b>,A>& _\bm_\ba_\bt,\n+273 std::string title, std::string rowtext,\n+274 int width=3, int precision=2)\n+275 {\n+276 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n+277 // remember old flags\n+278 std::ios_base::fmtflags oldflags = s.flags();\n+279 // set the output format\n+280 s.setf(std::ios_base::scientific, std::ios_base::floatfield);\n+281 int oldprec = s.precision();\n+282 s.precision(precision);\n+283 // print title\n+284 s << title\n+285 << \" [n=\" << _\bm_\ba_\bt._\bN()\n+286 << \",m=\" << _\bm_\ba_\bt._\bM()\n+287 << \",rowdim=\" << _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(_\bm_\ba_\bt)\n+288 << \",coldim=\" << _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(_\bm_\ba_\bt)\n+289 << \"]\" << std::endl;\n+290\n+291 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Row;\n+292\n+293 for(Row row=_\bm_\ba_\bt._\bb_\be_\bg_\bi_\bn(); row != _\bm_\ba_\bt._\be_\bn_\bd(); ++row) {\n+294 int skipcols=0;\n+295 bool reachedEnd=false;\n+296\n+297 while(!reachedEnd) {\n+298 for(int innerrow=0; innerrowbegin();\n+302 for(; _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl,++count) {\n+303 if(count=skipcols+width)\n+306 break;\n+307 if(innerrow==0) {\n+308 if(count==skipcols) {\n+309 s << rowtext; // start a new row\n+310 s << \" \"; // space in front of each entry\n+311 s.width(4); // set width for counter\n+312 s << row.index()<<\": \"; // number of first entry in a line\n+313 }\n+314 s.width(4);\n+315 s<<_\bc_\bo_\bl.index()<<\": |\";\n+316 } else {\n+317 if(count==skipcols) {\n+318 for(typename std::string::size_type i=0; i < rowtext.length(); i++)\n+319 s<<\" \";\n+320 s<<\" \";\n+321 }\n+322 s<<\" |\";\n+323 }\n+324 for(int innercol=0; innercol < m; ++innercol) {\n+325 s.width(9);\n+326 s<<(*col)[innerrow][innercol]<<\" \";\n+327 }\n+328\n+329 s<<\"|\";\n+330 }\n+331 if(innerrow==n-1 && _\bc_\bo_\bl==row->end())\n+332 reachedEnd = true;\n+333 else\n+334 s << std::endl;\n+335 }\n+336 skipcols += width;\n+337 s << std::endl;\n+338 }\n+339 s << std::endl;\n+340 }\n+341\n+342 // reset the output format\n+343 s.flags(oldflags);\n+344 s.precision(oldprec);\n+345 }\n+346\n+347 namespace\n+348 {\n+349 template\n+350 struct MatlabPODWriter\n+351 {\n+352 static std::ostream& write(const T& t, std::ostream& s)\n+353 {\n+354 s << t;\n+355 return s;\n 356 }\n-357\n-_\b3_\b5_\b9 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+357 };\n+358 template\n+359 struct MatlabPODWriter<_\bs_\bt_\bd::complex >\n 360 {\n-361 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg;\n-362 }\n-363\n-364 private:\n-366 std::shared_ptr

    _preconditioner;\n-367\n-369 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& _communication;\n-370 };\n-371\n-374} // end namespace\n-375\n-376#endif\n-_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\n-Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n-generic way.\n-_\bi_\bo_\b._\bh_\bh\n-Some generic functions for pretty printing vectors and matrices.\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n-Define general preconditioner interface.\n-_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n-Define base class for scalar product and norm.\n+361 static std::ostream& write(const std::complex& t, std::ostream& s)\n+362 {\n+363 s << t.real() << \" \" << t.imag();\n+364 return s;\n+365 }\n+366 };\n+367 } // anonymous namespace\n+368\n+378 template \n+_\b3_\b7_\b9 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br(const FieldType& value,\n+380 int rowOffset, int colOffset,\n+381 std::ostream& s,\n+382 typename std::enable_if_t::value>* sfinae =\n+nullptr)\n+383 {\n+384 //+1 for Matlab numbering\n+385 s << rowOffset + 1 << \" \" << colOffset + 1 << \" \";\n+386 MatlabPODWriter::write(value, s)<< std::endl;\n+387 }\n+388\n+396 template \n+_\b3_\b9_\b7 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br(const MatrixType& matrix,\n+398 int externalRowOffset, int externalColOffset,\n+399 std::ostream& s,\n+400 typename std::enable_if_t::value>* sfinae =\n+nullptr)\n+401 {\n+402 // Precompute the accumulated sizes of the columns\n+403 std::vector colOffset(matrix.M());\n+404 if (colOffset.size() > 0)\n+405 colOffset[0] = 0;\n+406\n+407 for (typename MatrixType::size_type i=0; i_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(matrix,i);\n+410\n+411 typename MatrixType::size_type rowOffset = 0;\n+412\n+413 // Loop over all matrix rows\n+414 for (typename MatrixType::size_type rowIdx=0; rowIdx_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(matrix, rowIdx);\n+427 }\n+428\n+429 }\n+430\n+450 template \n+_\b4_\b5_\b1 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb(const MatrixType& matrix,\n+452 const std::string& filename, int outputPrecision = 18)\n+453 {\n+454 std::ofstream outStream(filename.c_str());\n+455 int oldPrecision = outStream.precision();\n+456 outStream.precision(outputPrecision);\n+457\n+458 _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br(matrix, 0, 0, outStream);\n+459 outStream.precision(oldPrecision);\n+460 }\n+461\n+462 // Recursively write vector entries to a stream\n+463 template\n+_\b4_\b6_\b4 void _\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br (const V& v, std::ostream& stream)\n+465 {\n+466 if constexpr (IsNumber()) {\n+467 stream << v << std::endl;\n+468 } else {\n+469 for (const auto& entry : v)\n+470 _\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br(entry, stream);\n+471 }\n+472 }\n+473\n+491 template \n+_\b4_\b9_\b2 void _\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb(const VectorType& vector,\n+493 const std::string& filename, int outputPrecision = 18)\n+494 {\n+495 std::ofstream outStream(filename.c_str());\n+496 int oldPrecision = outStream.precision();\n+497 outStream.precision(outputPrecision);\n+498\n+499 _\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br(vector, outStream);\n+500 outStream.precision(oldPrecision);\n+501 }\n+502\n+503 namespace Impl {\n+504\n+506 struct NullStream {\n+507 template \n+508 friend NullStream &operator<<(NullStream &dev0, Any &&) {\n+509 return dev0;\n+510 }\n+511 };\n+512\n+514 // svg shall be closed with a group and an svg. i.e. \"\"\n+515 template \n+516 void writeSVGMatrixHeader(Stream &out, const SVGMatrixOptions &opts,\n+517 std::pair offsets) {\n+518 auto [col_offset, row_offset] = offsets;\n+519 double width = opts.width;\n+520 double height = opts.height;\n+521 // if empty, we try to figure out a sensible value of width and height\n+522 if (opts.width == 0 and opts.height == 0)\n+523 width = height = 500;\n+524 if (opts.width == 0)\n+525 width = opts.height * (double(col_offset) / row_offset);\n+526 if (opts.height == 0)\n+527 height = opts.width * (double(row_offset) / col_offset);\n+528\n+529 // scale group w.r.t final offsets\n+530 double scale_width = width / col_offset;\n+531 double scale_height = height / row_offset;\n+532\n+533 // write the header text\n+534 out << \"\\n\"\n+536 << \"\\n\"\n+538 << \"\\n\";\n+540 }\n+541\n+543 template \n+545 std::pair\n+546 writeSVGMatrix(const Mat &_\bm_\ba_\bt, Stream &out, SVGMatrixOptions opts,\n+547 RowPrefix row_prefix, ColPrefix col_prefix) {\n+548 // get values to fill the offests\n+549 const auto& block_size = opts.block_size;\n+550 const auto& interspace = opts.interspace;\n+551\n+552 const std::size_t rows = _\bm_\ba_\bt.N();\n+553 const std::size_t cols = _\bm_\ba_\bt.M();\n+554\n+555 // disable header write for recursive calls\n+556 const bool write_header = opts.write_header;\n+557 opts.write_header = false;\n+558\n+559 // counter of offsets for every block\n+560 std::size_t row_offset = interspace;\n+561 std::size_t col_offset = interspace;\n+562\n+563 // lambda helper: for-each value\n+564 auto for_each_entry = [&_\bm_\ba_\bt](const auto &call_back) {\n+565 for (auto row_it = _\bm_\ba_\bt.begin(); row_it != _\bm_\ba_\bt.end(); ++row_it) {\n+566 for (auto col_it = row_it->begin(); col_it != row_it->end(); ++col_it) {\n+567 call_back(row_it.index(), col_it.index(), *col_it);\n+568 }\n+569 }\n+570 };\n+571\n+572 // accumulate content in another stream so that we write in correct order\n+573 std::stringstream ss;\n+574\n+575 // we need to append current row and col values to the prefixes\n+576 row_prefix.push_back(0);\n+577 col_prefix.push_back(0);\n+578\n+579 // do we need to write nested matrix blocks?\n+580 if constexpr (Dune::blockLevel() == 0) {\n+581 // simple case: write svg block content to stream for each value\n+582 for_each_entry([&](const auto &row, const auto &_\bc_\bo_\bl, const auto &val) {\n+583 std::size_t x_off = interspace + _\bc_\bo_\bl * (interspace + block_size);\n+584 std::size_t y_off = interspace + row * (interspace + block_size);\n+585 row_prefix.back() = row;\n+586 col_prefix.back() = _\bc_\bo_\bl;\n+587 opts.writeSVGBlock(ss, row_prefix, col_prefix, val,\n+588 {x_off, y_off, block_size, block_size});\n+589 });\n+590 col_offset += cols * (block_size + interspace);\n+591 row_offset += rows * (block_size + interspace);\n+592 } else {\n+593 // before we write anything, we need to calculate the\n+594 // offset for every {row,col} index\n+595 const auto null_offset = std::numeric_limits::max();\n+596 std::vector col_offsets(cols + 1, null_offset);\n+597 std::vector row_offsets(rows + 1, null_offset);\n+598 for_each_entry([&](const auto &row, const auto &_\bc_\bo_\bl, const auto &val) {\n+599 NullStream dev0;\n+600 // get size of sub-block\n+601 auto sub_size =\n+602 writeSVGMatrix(val, dev0, opts, row_prefix, col_prefix);\n+603\n+604 // if we didn't see col size before\n+605 if (col_offsets[_\bc_\bo_\bl + 1] == null_offset) // write it in the offset vector\n+606 col_offsets[_\bc_\bo_\bl + 1] = sub_size.first;\n+607\n+608 // repeat proces for row sizes\n+609 if (row_offsets[row + 1] == null_offset)\n+610 row_offsets[row + 1] = sub_size.second;\n+611 });\n+612\n+613 // if some rows/cols were not visited, make an educated guess with the\n+minimum offset\n+614 auto min_row_offset = *std::min_element(begin(row_offsets), end\n+(row_offsets));\n+615 std::replace(begin(row_offsets), end(row_offsets), null_offset,\n+min_row_offset);\n+616 auto min_col_offset = *std::min_element(begin(col_offsets), end\n+(col_offsets));\n+617 std::replace(begin(col_offsets), end(col_offsets), null_offset,\n+min_col_offset);\n+618\n+619 // we have sizes for every block: to get offsets we make a partial sum\n+620 col_offsets[0] = interspace;\n+621 row_offsets[0] = interspace;\n+622 for (std::size_t i = 1; i < col_offsets.size(); i++)\n+623 col_offsets[i] += col_offsets[i - 1] + interspace;\n+624 for (std::size_t i = 1; i < row_offsets.size(); i++)\n+625 row_offsets[i] += row_offsets[i - 1] + interspace;\n+626\n+627 for_each_entry([&](const auto &row, const auto &_\bc_\bo_\bl, const auto &val) {\n+628 // calculate svg view from offsets\n+629 std::size_t width =\n+630 col_offsets[_\bc_\bo_\bl + 1] - col_offsets[_\bc_\bo_\bl] - interspace;\n+631 std::size_t height =\n+632 row_offsets[row + 1] - row_offsets[row] - interspace;\n+633 row_prefix.back() = row;\n+634 col_prefix.back() = _\bc_\bo_\bl;\n+635 // content of the sub-block has origin at {0,0}: shift it to the correct\n+place\n+636 ss << \"\\n\";\n+638 // write a nested svg with the contents of the sub-block\n+639 writeSVGMatrix(val, ss, opts, row_prefix, col_prefix);\n+640 ss << \"\\n\";\n+641 });\n+642 col_offset = col_offsets.back();\n+643 row_offset = row_offsets.back();\n+644 }\n+645\n+646 // write content in order!\n+647 // (i) if required, first header\n+648 if (write_header)\n+649 writeSVGMatrixHeader(out, opts, {col_offset, row_offset});\n+650\n+651 col_prefix.pop_back();\n+652 row_prefix.pop_back();\n+653 // (ii) an svg block for this level\n+654 opts.writeSVGBlock(out, row_prefix, col_prefix, _\bm_\ba_\bt,\n+655 {0, 0, col_offset, row_offset});\n+656 // (iii) the content of the matrix\n+657 out << ss.str();\n+658 // (iv) if required, close the header\n+659 if (write_header)\n+660 out << \"\\n\\n\";\n+661\n+662 // return the total required for this block\n+663 return {col_offset, row_offset};\n+664 }\n+665 } // namespace Impl\n+666\n+667\n+_\b6_\b7_\b4 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs {\n+_\b6_\b7_\b6 std::size_t _\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be = 10;\n+_\b6_\b7_\b8 std::size_t _\bi_\bn_\bt_\be_\br_\bs_\bp_\ba_\bc_\be = 5;\n+_\b6_\b8_\b0 std::size_t _\bw_\bi_\bd_\bt_\bh = 500;\n+_\b6_\b8_\b2 std::size_t _\bh_\be_\bi_\bg_\bh_\bt = 0;\n+_\b6_\b8_\b4 bool _\bw_\br_\bi_\bt_\be_\b__\bh_\be_\ba_\bd_\be_\br = true;\n+_\b6_\b8_\b6 std::string _\bs_\bt_\by_\bl_\be = \" .matrix-block {\\n\"\n+687 \" fill: cornflowerblue;\\n\"\n+688 \" fill-opacity: 0.4;\\n\"\n+689 \" stroke-width: 2;\\n\"\n+690 \" stroke: black;\\n\"\n+691 \" stroke-opacity: 0.5;\\n\"\n+692 \" }\\n\"\n+693 \" .matrix-block:hover {\\n\"\n+694 \" fill: lightcoral;\\n\"\n+695 \" fill-opacity: 0.4;\\n\"\n+696 \" stroke-opacity: 1;\\n\"\n+697 \" }\\n\";\n+698\n+_\b7_\b1_\b0 std::function _\bc_\bo_\bl_\bo_\br_\b__\bf_\bi_\bl_\bl;\n+711\n+717 template \n+_\b7_\b1_\b8 std::string _\bb_\bl_\bo_\bc_\bk_\bS_\bt_\by_\bl_\be_\bC_\bl_\ba_\bs_\bs(const RowPrefix &row_prefix,\n+719 const ColPrefix &col_prefix) const {\n+720 // here, you can potentially give a different style to each block\n+721 return \"matrix-block\";\n+722 }\n+723\n+_\b7_\b2_\b5 bool _\bw_\br_\bi_\bt_\be_\b__\bb_\bl_\bo_\bc_\bk_\b__\bt_\bi_\bt_\bl_\be = true;\n+726\n+732 template \n+_\b7_\b3_\b3 void _\bw_\br_\bi_\bt_\be_\bB_\bl_\bo_\bc_\bk_\bT_\bi_\bt_\bl_\be(Stream& out, const RowPrefix &row_prefix,\n+734 const ColPrefix &col_prefix,\n+735 const Block &block) const {\n+736 if (this->write_block_title) {\n+737 out << \"\";\n+738 assert(row_prefix.size() == col_prefix.size());\n+739 for (std::size_t i = 0; i < row_prefix.size(); ++i)\n+740 out << \"[\" << row_prefix[i] << \", \"<< col_prefix[i] << \"]\";\n+741 if constexpr (Dune::blockLevel<Block>() == 0)\n+742 out << \": \" << block;\n+743 out << \"\\n\";\n+744 }\n+745 }\n+746\n+768 template \n+_\b7_\b6_\b9 void _\bw_\br_\bi_\bt_\be_\bS_\bV_\bG_\bB_\bl_\bo_\bc_\bk(Stream &out,\n+770 const RowPrefix &row_prefix,\n+771 const ColPrefix &col_prefix, const Block block,\n+772 const std::array &svg_box) const {\n+773 // get bounding box values\n+774 auto &[x_off, y_off, _\bw_\bi_\bd_\bt_\bh, _\bh_\be_\bi_\bg_\bh_\bt] = svg_box;\n+775 // get style class\n+776 std::string block_class = this->_\bb_\bl_\bo_\bc_\bk_\bS_\bt_\by_\bl_\be_\bC_\bl_\ba_\bs_\bs(row_prefix, col_prefix);\n+777 // write a rectangle on the bounding box\n+778 out << \"() == 0 and std::\n+is_convertible{})\n+781 if (_\bc_\bo_\bl_\bo_\br_\b__\bf_\bi_\bl_\bl)\n+782 out << \" style='fill-opacity: 1;fill:\" << _\bc_\bo_\bl_\bo_\br_\b__\bf_\bi_\bl_\bl(double(block)) << \"'\";\n+783\n+784 out << \">\\n\";\n+785 // give the rectangle a title (in html this shows info about the block)\n+786 this->_\bw_\br_\bi_\bt_\be_\bB_\bl_\bo_\bc_\bk_\bT_\bi_\bt_\bl_\be(out,row_prefix, col_prefix, block);\n+787 // close rectangle\n+788 out << \"\\n\";\n+789 }\n+790 };\n+791\n+806 template \n+_\b8_\b0_\b7 void _\bw_\br_\bi_\bt_\be_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx(const Mat &_\bm_\ba_\bt, std::ostream &out,\n+808 SVGOptions opts = {}) {\n+809 // We need a vector that can fit all the multi-indices for rows and colums\n+810 using IndexPrefix = Dune::ReservedVector()>;\n+811 // Call overload for Mat type\n+812 Impl::writeSVGMatrix(_\bm_\ba_\bt, out, opts, IndexPrefix{}, IndexPrefix{});\n+813 }\n+814\n+817} // namespace Dune\n+818\n+819#endif\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n+Helper functions for determining the vector/matrix block level.\n _\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n Implementation of the BCRSMatrix class.\n-_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n-Implementations of the inverse operator interface.\n-_\bi_\bl_\bu_\b._\bh_\bh\n-The incomplete LU factorization kernels.\n-_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n-Define general, extensible interface for operators. The available\n-implementation wraps a matrix.\n-_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-???\n-_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n-Classes providing communication interfaces for overlapping Schwarz methods.\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n+_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\n+Some handy generic functions for ISTL matrices.\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx\n+void writeSVGMatrix(const Mat &mat, std::ostream &out, SVGOptions opts={})\n+Writes the visualization of matrix in the SVG format.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:807\n+_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb\n+void writeMatrixToMatlab(const MatrixType &matrix, const std::string &filename,\n+int outputPrecision=18)\n+Writes sparse matrix in a Matlab-readable format.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:451\n+_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\b__\br_\bo_\bw\n+void print_row(std::ostream &s, const K &value, typename FieldMatrix< K, 1, 1\n+>::size_type I, typename FieldMatrix< K, 1, 1 >::size_type J, typename\n+FieldMatrix< K, 1, 1 >::size_type therow, int width, int precision, typename\n+std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)\n+Print one row of a matrix, specialization for number types.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:151\n+_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bm_\ba_\bt_\br_\bi_\bx\n+void printmatrix(std::ostream &s, const M &A, std::string title, std::string\n+rowtext, int width=10, int precision=2)\n+Print a generic block matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:213\n+_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br\n+void printvector(std::ostream &s, const V &v, std::string title, std::string\n+rowtext, int columns=1, int width=10, int precision=2)\n+Print an ISTL vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:89\n+_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br\n+void writeMatrixToMatlabHelper(const FieldType &value, int rowOffset, int\n+colOffset, std::ostream &s, typename std::enable_if_t< Dune::IsNumber<\n+FieldType >::value > *sfinae=nullptr)\n+Helper method for the writeMatrixToMatlab routine.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:379\n+_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb_\bH_\be_\bl_\bp_\be_\br\n+void writeVectorToMatlabHelper(const V &v, std::ostream &stream)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:464\n+_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bV_\be_\bc_\bt_\bo_\br_\bT_\bo_\bM_\ba_\bt_\bl_\ba_\bb\n+void writeVectorToMatlab(const VectorType &vector, const std::string &filename,\n+int outputPrecision=18)\n+Writes vectors in a Matlab-readable format.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:492\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bc_\bu_\br_\bs_\bi_\bv_\be_\b__\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br\n+void recursive_printvector(std::ostream &s, const V &v, std::string rowtext,\n+int &counter, int columns, int width)\n+Recursively print a vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx\n+void printSparseMatrix(std::ostream &s, const BCRSMatrix< FieldMatrix< B, n, m\n+>, A > &mat, std::string title, std::string rowtext, int width=3, int\n+precision=2)\n+Prints a BCRSMatrix with fixed sized blocks.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:271\n+_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bl_\b__\br_\bo_\bw\n+void fill_row(std::ostream &s, int m, int width, int precision)\n+Print a row of zeros for a non-existing block.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:133\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-A nonoverlapping operator with communication object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bP_\bI_\bS\n-C::PIS PIS\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:74\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n-C communication_type\n-The type of the communication object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:72\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI_\bM_\ba_\bp\n-std::multimap< int, std::pair< int, RILIterator > > RIMap\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI\n-C::RI RI\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bn_\bo_\bv_\bl_\bp_\b__\bo_\bp_\b__\ba_\bp_\bp_\bl_\by\n-void novlp_op_apply(const X &x, Y &y, field_type alpha) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-NonoverlappingSchwarzOperator(std::shared_ptr< const matrix_type > A, const\n-communication_type &com)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:96\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-M::ConstColIterator ColIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:79\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(const X &x, Y &y) const\n-apply operator to x:\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:101\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The type of the domain.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:66\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the linear operator (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:235\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI_\bM_\ba_\bp_\bi_\bt\n-RIMap::iterator RIMapit\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:83\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bm_\ba_\bt\n-virtual const matrix_type & getmat() const\n-get matrix via *\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:121\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI_\bL_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RIL::const_iterator RILIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:78\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bM_\bM\n-std::multimap< int, int > MM\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The type of the range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:68\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-The type of the matrix we operate on.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:64\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-M::ConstRowIterator RowIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:80\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-const communication_type & getCommunication() const\n-Get the object responsible for communication.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:241\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd\n-virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const\n-apply operator to x, scale and add:\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:109\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI_\bL\n-RI::RemoteIndexList RIL\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-NonoverlappingSchwarzOperator(const matrix_type &A, const communication_type\n-&com)\n-constructor: just store a reference to a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:92\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RI::const_iterator RIIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:77\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Nonoverlapping parallel preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:276\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-NonoverlappingBlockPreconditioner(P &p, const communication_type &c)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:302\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:359\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(domain_type &v, const range_type &d)\n-Apply the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:332\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-P::range_type range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:284\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-NonoverlappingBlockPreconditioner(const std::shared_ptr< P > &p, const\n-communication_type &c)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:313\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(domain_type &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:353\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n-C communication_type\n-The type of the communication object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:286\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\br_\be\n-virtual void pre(domain_type &x, range_type &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:322\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(X &v, const Y &d)\n-Apply one step of the preconditioner to the system A(v)=d.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:342\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-P::domain_type domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:282\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-A linear operator exporting itself in matrix form.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:109\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br\n-@ owner\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by\n-@ copy\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp\n-@ overlap\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n-@ nonoverlapping\n-Category for non-overlapping solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:211\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static auto coldim(const M &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:219\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static auto rowdim(const M &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:214\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs\n+Default options class to write SVG matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:674\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bs_\bt_\by_\bl_\be\n+std::string style\n+CSS style block to write in header.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:686\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bw_\bi_\bd_\bt_\bh\n+std::size_t width\n+Final width size (pixels) of the SVG header. If 0, size is automatic.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:680\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bc_\bo_\bl_\bo_\br_\b__\bf_\bi_\bl_\bl\n+std::function< std::string(const double &)> color_fill\n+Color fill for default options.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:710\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bs_\bi_\bz_\be\n+std::size_t block_size\n+size (pixels) of the deepst block/value of the matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:676\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bw_\br_\bi_\bt_\be_\bS_\bV_\bG_\bB_\bl_\bo_\bc_\bk\n+void writeSVGBlock(Stream &out, const RowPrefix &row_prefix, const ColPrefix\n+&col_prefix, const Block block, const std::array< std::size_t, 4 > &svg_box)\n+const\n+Write an SVG object for a given block/value in the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:769\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bw_\br_\bi_\bt_\be_\bB_\bl_\bo_\bc_\bk_\bT_\bi_\bt_\bl_\be\n+void writeBlockTitle(Stream &out, const RowPrefix &row_prefix, const ColPrefix\n+&col_prefix, const Block &block) const\n+Helper function writes a title for a given block and prefix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:733\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bi_\bn_\bt_\be_\br_\bs_\bp_\ba_\bc_\be\n+std::size_t interspace\n+size (pixels) of the interspace between blocks\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:678\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bw_\br_\bi_\bt_\be_\b__\bb_\bl_\bo_\bc_\bk_\b__\bt_\bi_\bt_\bl_\be\n+bool write_block_title\n+(Helper) Whether to write a title on the rectangle value\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:725\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bh_\be_\bi_\bg_\bh_\bt\n+std::size_t height\n+Final height size (pixels) of the SVG header. If 0, size is automatic.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:682\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bw_\br_\bi_\bt_\be_\b__\bh_\be_\ba_\bd_\be_\br\n+bool write_header\n+Whether to write the SVG header.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:684\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bV_\bG_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\bt_\bi_\bo_\bn_\bs_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bS_\bt_\by_\bl_\be_\bC_\bl_\ba_\bs_\bs\n+std::string blockStyleClass(const RowPrefix &row_prefix, const ColPrefix\n+&col_prefix) const\n+Helper function that returns an style class for a given prefix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:718\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator class for sequential access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:404\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+RowIterator end()\n+Get iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:620\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+RowIterator begin()\n+Get iterator to first row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:614\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::const_iterator ConstColIterator\n+Const iterator for the entries of each row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n+size_type M() const\n+Return the number of columns.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:700\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+size_type N() const\n+Return the number of rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:695\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00026.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00026.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: basearray.hh File Reference\n+dune-istl: bccsmatrixinitializer.hh File Reference\n \n \n \n \n \n \n \n@@ -71,37 +71,32 @@\n

    \n
    \n \n
    \n \n-
    basearray.hh File Reference
    \n+
    bccsmatrixinitializer.hh File Reference
    \n
    \n
    \n-\n-

    Implements several basic array containers. \n-More...

    \n-
    #include "assert.h"
    \n-#include <cmath>
    \n-#include <cstddef>
    \n-#include <memory>
    \n-#include <algorithm>
    \n-#include "istlexception.hh"
    \n-#include <dune/common/iteratorfacades.hh>
    \n+
    #include <limits>
    \n+#include <set>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/scalarmatrixview.hh>
    \n+#include <dune/istl/bccsmatrix.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n \n \n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::ISTL
     
    \n-

    Detailed Description

    \n-

    Implements several basic array containers.

    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,24 +1,21 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-basearray.hh File Reference\n-Implements several basic array containers. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \"assert.h\"\n-#include \n-#include \n-#include \n-#include \n-#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-#include \n+bccsmatrixinitializer.hh File Reference\n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Implements several basic array containers.\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL\n+\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00026_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00026_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: basearray.hh Source File\n+dune-istl: bccsmatrixinitializer.hh Source File\n \n \n \n \n \n \n \n@@ -74,427 +74,335 @@\n \n
    \n \n
    \n \n
    \n-
    basearray.hh
    \n+
    bccsmatrixinitializer.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_BASEARRAY_HH
    \n-
    6#define DUNE_ISTL_BASEARRAY_HH
    \n+
    5#ifndef DUNE_ISTL_BCCSMATRIX_INITIALIZER_HH
    \n+
    6#define DUNE_ISTL_BCCSMATRIX_INITIALIZER_HH
    \n
    7
    \n-
    8#include "assert.h"
    \n-
    9#include <cmath>
    \n-
    10#include <cstddef>
    \n-
    11#include <memory>
    \n-
    12#include <algorithm>
    \n+
    8#include <limits>
    \n+
    9#include <set>
    \n+
    10
    \n+
    11#include <dune/common/typetraits.hh>
    \n+
    12#include <dune/common/scalarmatrixview.hh>
    \n
    13
    \n-
    14#include "istlexception.hh"
    \n-
    15#include <dune/common/iteratorfacades.hh>
    \n-
    16
    \n-
    21namespace Dune {
    \n-
    22
    \n-
    24namespace Imp {
    \n-
    25
    \n-
    50 template<class B, class A=std::allocator<B> >
    \n-
    51 class base_array_unmanaged
    \n-
    52 {
    \n-
    53 public:
    \n-
    54
    \n-
    55 //===== type definitions and constants
    \n-
    56
    \n-
    58 typedef B member_type;
    \n-
    59
    \n-
    61 typedef A allocator_type;
    \n-
    62
    \n-
    64 typedef typename A::size_type size_type;
    \n-
    65
    \n-
    67 using reference = B&;
    \n+\n+
    15
    \n+
    16namespace Dune
    \n+
    17{
    \n+
    18 template<class I, class S, class D>
    \n+
    19 class OverlappingSchwarzInitializer;
    \n+
    20}
    \n+
    21
    \n+
    22namespace Dune::ISTL::Impl
    \n+
    23{
    \n+
    31 template<class M, class S>
    \n+
    32 class MatrixRowSubset
    \n+
    33 {
    \n+
    34 public:
    \n+
    36 typedef M Matrix;
    \n+
    38 typedef S RowIndexSet;
    \n+
    39
    \n+
    45 MatrixRowSubset(const Matrix& m, const RowIndexSet& s)
    \n+
    46 : m_(m), s_(s)
    \n+
    47 {}
    \n+
    48
    \n+
    49 const Matrix& matrix() const
    \n+
    50 {
    \n+
    51 return m_;
    \n+
    52 }
    \n+
    53
    \n+
    54 const RowIndexSet& rowIndexSet() const
    \n+
    55 {
    \n+
    56 return s_;
    \n+
    57 }
    \n+
    58
    \n+
    60 class const_iterator
    \n+
    61 : public ForwardIteratorFacade<const_iterator, const typename Matrix::row_type>
    \n+
    62 {
    \n+
    63 public:
    \n+
    64 const_iterator(typename Matrix::const_iterator firstRow,
    \n+
    65 typename RowIndexSet::const_iterator pos)
    \n+
    66 : firstRow_(firstRow), pos_(pos)
    \n+
    67 {}
    \n
    68
    \n-
    70 using const_reference = const B&;
    \n-
    71
    \n-
    72 //===== access to components
    \n-
    73
    \n-
    75 reference operator[] (size_type i)
    \n-
    76 {
    \n-
    77#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    78 if (i>=n) DUNE_THROW(ISTLError,"index out of range");
    \n-
    79#endif
    \n-
    80 return p[i];
    \n-
    81 }
    \n-
    82
    \n-
    84 const_reference operator[] (size_type i) const
    \n-
    85 {
    \n-
    86#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    87 if (i>=n) DUNE_THROW(ISTLError,"index out of range");
    \n-
    88#endif
    \n-
    89 return p[i];
    \n-
    90 }
    \n-
    91
    \n-
    93 template<class T>
    \n-
    94 class RealIterator
    \n-
    95 : public RandomAccessIteratorFacade<RealIterator<T>, T>
    \n-
    96 {
    \n-
    97 public:
    \n-
    99 typedef typename std::remove_const<T>::type ValueType;
    \n-
    100
    \n-
    101 friend class RandomAccessIteratorFacade<RealIterator<const ValueType>, const ValueType>;
    \n-
    102 friend class RandomAccessIteratorFacade<RealIterator<ValueType>, ValueType>;
    \n-
    103 friend class RealIterator<const ValueType>;
    \n-
    104 friend class RealIterator<ValueType>;
    \n-
    105
    \n-
    107 RealIterator ()
    \n-
    108 : p(0), i(0)
    \n-
    109 {}
    \n-
    110
    \n-
    111 RealIterator (const B* _p, B* _i) : p(_p), i(_i)
    \n-
    112 { }
    \n-
    113
    \n-
    114 RealIterator(const RealIterator<ValueType>& it)
    \n-
    115 : p(it.p), i(it.i)
    \n-
    116 {}
    \n-
    117
    \n-
    119 size_type index () const
    \n-
    120 {
    \n-
    121 return i-p;
    \n-
    122 }
    \n-
    123
    \n-
    125 bool equals (const RealIterator<ValueType>& other) const
    \n-
    126 {
    \n-
    127 assert(other.p==p);
    \n-
    128 return i==other.i;
    \n-
    129 }
    \n-
    130
    \n-
    132 bool equals (const RealIterator<const ValueType>& other) const
    \n-
    133 {
    \n-
    134 assert(other.p==p);
    \n-
    135 return i==other.i;
    \n-
    136 }
    \n-
    137
    \n-
    138 std::ptrdiff_t distanceTo(const RealIterator& o) const
    \n-
    139 {
    \n-
    140 return o.i-i;
    \n-
    141 }
    \n-
    142
    \n-
    143 private:
    \n-
    145 void increment()
    \n-
    146 {
    \n-
    147 ++i;
    \n-
    148 }
    \n-
    149
    \n-
    151 void decrement()
    \n-
    152 {
    \n-
    153 --i;
    \n-
    154 }
    \n-
    155
    \n-
    156 // Needed for operator[] of the iterator
    \n-
    157 reference elementAt (std::ptrdiff_t offset) const
    \n-
    158 {
    \n-
    159 return *(i+offset);
    \n-
    160 }
    \n-
    161
    \n-
    163 reference dereference () const
    \n-
    164 {
    \n-
    165 return *i;
    \n-
    166 }
    \n-
    167
    \n-
    168 void advance(std::ptrdiff_t d)
    \n-
    169 {
    \n-
    170 i+=d;
    \n-
    171 }
    \n-
    172
    \n-
    173 const B* p;
    \n-
    174 B* i;
    \n-
    175 };
    \n-
    176
    \n-
    178 typedef RealIterator<B> iterator;
    \n-
    179
    \n-
    180
    \n-
    182 iterator begin ()
    \n-
    183 {
    \n-
    184 return iterator(p,p);
    \n-
    185 }
    \n-
    186
    \n-
    188 iterator end ()
    \n-
    189 {
    \n-
    190 return iterator(p,p+n);
    \n-
    191 }
    \n-
    192
    \n-
    195 iterator beforeEnd ()
    \n-
    196 {
    \n-
    197 return iterator(p,p+n-1);
    \n-
    198 }
    \n-
    199
    \n-
    202 iterator beforeBegin ()
    \n-
    203 {
    \n-
    204 return iterator(p,p-1);
    \n-
    205 }
    \n-
    206
    \n-
    208 iterator find (size_type i)
    \n-
    209 {
    \n-
    210 return iterator(p,p+std::min(i,n));
    \n-
    211 }
    \n-
    212
    \n-
    214 typedef RealIterator<const B> const_iterator;
    \n-
    215
    \n-
    217 const_iterator begin () const
    \n-
    218 {
    \n-
    219 return const_iterator(p,p+0);
    \n-
    220 }
    \n-
    221
    \n-
    223 const_iterator end () const
    \n-
    224 {
    \n-
    225 return const_iterator(p,p+n);
    \n-
    226 }
    \n-
    227
    \n-
    230 const_iterator beforeEnd () const
    \n-
    231 {
    \n-
    232 return const_iterator(p,p+n-1);
    \n+
    69
    \n+
    70 const typename Matrix::row_type& dereference() const
    \n+
    71 {
    \n+
    72 return *(firstRow_+ *pos_);
    \n+
    73 }
    \n+
    74 bool equals(const const_iterator& o) const
    \n+
    75 {
    \n+
    76 return pos_==o.pos_;
    \n+
    77 }
    \n+
    78 void increment()
    \n+
    79 {
    \n+
    80 ++pos_;
    \n+
    81 }
    \n+
    82 typename RowIndexSet::value_type index() const
    \n+
    83 {
    \n+
    84 return *pos_;
    \n+
    85 }
    \n+
    86
    \n+
    87 private:
    \n+
    89 typename Matrix::const_iterator firstRow_;
    \n+
    91 typename RowIndexSet::const_iterator pos_;
    \n+
    92 };
    \n+
    93
    \n+
    95 const_iterator begin() const
    \n+
    96 {
    \n+
    97 return const_iterator(m_.begin(), s_.begin());
    \n+
    98 }
    \n+
    100 const_iterator end() const
    \n+
    101 {
    \n+
    102 return const_iterator(m_.begin(), s_.end());
    \n+
    103 }
    \n+
    104
    \n+
    105 private:
    \n+
    107 const Matrix& m_;
    \n+
    109 const RowIndexSet& s_;
    \n+
    110 };
    \n+
    111
    \n+
    118 template<class M, class I = typename M::size_type>
    \n+
    119 class BCCSMatrixInitializer
    \n+
    120 {
    \n+
    121 template<class IList, class S, class D>
    \n+\n+
    123 public:
    \n+
    124 using Matrix = M;
    \n+
    125 using Index = I;
    \n+
    126 typedef Dune::ISTL::Impl::BCCSMatrix<typename Matrix::field_type, I> OutputMatrix;
    \n+
    127 typedef typename Matrix::size_type size_type;
    \n+
    128
    \n+
    131 BCCSMatrixInitializer(OutputMatrix& mat_)
    \n+
    132 : mat(&mat_), cols(mat_.M())
    \n+
    133 {
    \n+
    134 if constexpr (Dune::IsNumber<typename M::block_type>::value)
    \n+
    135 {
    \n+
    136 n = m = 1;
    \n+
    137 }
    \n+
    138 else
    \n+
    139 {
    \n+
    140 // WARNING: This assumes that all blocks are dense and identical
    \n+
    141 n = M::block_type::rows;
    \n+
    142 m = M::block_type::cols;
    \n+
    143 }
    \n+
    144
    \n+
    145 mat->Nnz_=0;
    \n+
    146 }
    \n+
    147
    \n+
    148 BCCSMatrixInitializer()
    \n+
    149 : mat(0), cols(0), n(0), m(0)
    \n+
    150 {}
    \n+
    151
    \n+
    152 virtual ~BCCSMatrixInitializer()
    \n+
    153 {}
    \n+
    154
    \n+
    155 template<typename Iter>
    \n+
    156 void addRowNnz(const Iter& row) const
    \n+
    157 {
    \n+
    158 mat->Nnz_+=row->getsize();
    \n+
    159 }
    \n+
    160
    \n+
    161 template<typename Iter, typename FullMatrixIndex>
    \n+
    162 void addRowNnz(const Iter& row, const std::set<FullMatrixIndex>& indices) const
    \n+
    163 {
    \n+
    164 auto siter =indices.begin();
    \n+
    165 for (auto entry=row->begin(); entry!=row->end(); ++entry)
    \n+
    166 {
    \n+
    167 for(; siter!=indices.end() && *siter<entry.index(); ++siter) ;
    \n+
    168 if(siter==indices.end())
    \n+
    169 break;
    \n+
    170 if(*siter==entry.index())
    \n+
    171 // index is in subdomain
    \n+
    172 ++mat->Nnz_;
    \n+
    173 }
    \n+
    174 }
    \n+
    175
    \n+
    176 template<typename Iter, typename SubMatrixIndex>
    \n+
    177 void addRowNnz(const Iter& row, const std::vector<SubMatrixIndex>& indices) const
    \n+
    178 {
    \n+
    179 for (auto entry=row->begin(); entry!=row->end(); ++entry)
    \n+
    180 if (indices[entry.index()]!=std::numeric_limits<SubMatrixIndex>::max())
    \n+
    181 ++mat->Nnz_;
    \n+
    182 }
    \n+
    183
    \n+
    184 void allocate()
    \n+
    185 {
    \n+
    186 allocateMatrixStorage();
    \n+
    187 allocateMarker();
    \n+
    188 }
    \n+
    189
    \n+
    190 template<typename Iter, typename CIter>
    \n+
    191 void countEntries([[maybe_unused]] const Iter& row, const CIter& col) const
    \n+
    192 {
    \n+
    193 countEntries(col.index());
    \n+
    194 }
    \n+
    195
    \n+
    196 void countEntries(size_type colindex) const
    \n+
    197 {
    \n+
    198 for(size_type i=0; i < m; ++i)
    \n+
    199 {
    \n+
    200 assert(colindex*m+i<cols);
    \n+
    201 marker[colindex*m+i]+=n;
    \n+
    202 }
    \n+
    203 }
    \n+
    204
    \n+
    205 void calcColstart() const
    \n+
    206 {
    \n+
    207 mat->colstart[0]=0;
    \n+
    208 for(size_type i=0; i < cols; ++i) {
    \n+
    209 assert(i<cols);
    \n+
    210 mat->colstart[i+1]=mat->colstart[i]+marker[i];
    \n+
    211 marker[i]=mat->colstart[i];
    \n+
    212 }
    \n+
    213 }
    \n+
    214
    \n+
    215 template<typename Iter, typename CIter>
    \n+
    216 void copyValue(const Iter& row, const CIter& col) const
    \n+
    217 {
    \n+
    218 copyValue(col, row.index(), col.index());
    \n+
    219 }
    \n+
    220
    \n+
    221 template<typename CIter>
    \n+
    222 void copyValue(const CIter& col, size_type rowindex, size_type colindex) const
    \n+
    223 {
    \n+
    224 for(size_type i=0; i<n; i++) {
    \n+
    225 for(size_type j=0; j<m; j++) {
    \n+
    226 assert(colindex*m+j<cols-1 || (size_type)marker[colindex*m+j]<(size_type)mat->colstart[colindex*m+j+1]);
    \n+
    227 assert((size_type)marker[colindex*m+j]<mat->Nnz_);
    \n+
    228 mat->rowindex[marker[colindex*m+j]]=rowindex*n+i;
    \n+
    229 mat->values[marker[colindex*m+j]] = Dune::Impl::asMatrix(*col)[i][j];
    \n+
    230 ++marker[colindex*m+j]; // index for next entry in column
    \n+
    231 }
    \n+
    232 }
    \n
    233 }
    \n
    234
    \n-
    237 const_iterator beforeBegin () const
    \n-
    238 {
    \n-
    239 return const_iterator(p,p-1);
    \n-
    240 }
    \n+
    235 virtual void createMatrix() const
    \n+
    236 {
    \n+
    237 marker.clear();
    \n+
    238 }
    \n+
    239
    \n+
    240 protected:
    \n
    241
    \n-
    243 const_iterator find (size_type i) const
    \n-
    244 {
    \n-
    245 return const_iterator(p,p+std::min(i,n));
    \n-
    246 }
    \n-
    247
    \n-
    248
    \n-
    249 //===== sizes
    \n+
    242 void allocateMatrixStorage() const
    \n+
    243 {
    \n+
    244 mat->Nnz_*=n*m;
    \n+
    245 // initialize data
    \n+
    246 mat->values=new typename M::field_type[mat->Nnz_];
    \n+
    247 mat->rowindex=new I[mat->Nnz_];
    \n+
    248 mat->colstart=new I[cols+1];
    \n+
    249 }
    \n
    250
    \n-
    252 size_type size () const
    \n-
    253 {
    \n-
    254 return n;
    \n+
    251 void allocateMarker()
    \n+
    252 {
    \n+
    253 marker.resize(cols);
    \n+
    254 std::fill(marker.begin(), marker.end(), 0);
    \n
    255 }
    \n
    256
    \n-
    258 const B* data() const
    \n-
    259 {
    \n-
    260 return p;
    \n-
    261 }
    \n-
    262
    \n-
    264 B* data()
    \n-
    265 {
    \n-
    266 return p;
    \n-
    267 }
    \n-
    268
    \n-
    269 protected:
    \n-
    271 base_array_unmanaged ()
    \n-
    272 : n(0), p(0)
    \n-
    273 {}
    \n-
    275 base_array_unmanaged (size_type n_, B* p_)
    \n-
    276 : n(n_), p(p_)
    \n-
    277 {}
    \n-
    278 size_type n; // number of elements in array
    \n-
    279 B *p; // pointer to dynamically allocated built-in array
    \n-
    280 };
    \n-
    281
    \n+
    257 OutputMatrix* mat;
    \n+
    258 size_type cols;
    \n+
    259
    \n+
    260 // Number of rows/columns of the matrix entries
    \n+
    261 // (assumed to be scalars or dense matrices)
    \n+
    262 size_type n, m;
    \n+
    263
    \n+
    264 mutable std::vector<size_type> marker;
    \n+
    265 };
    \n+
    266
    \n+
    267 template<class F, class Matrix>
    \n+
    268 void copyToBCCSMatrix(F& initializer, const Matrix& matrix)
    \n+
    269 {
    \n+
    270 for (auto row=matrix.begin(); row!= matrix.end(); ++row)
    \n+
    271 initializer.addRowNnz(row);
    \n+
    272
    \n+
    273 initializer.allocate();
    \n+
    274
    \n+
    275 for (auto row=matrix.begin(); row!= matrix.end(); ++row) {
    \n+
    276
    \n+
    277 for (auto col=row->begin(); col != row->end(); ++col)
    \n+
    278 initializer.countEntries(row, col);
    \n+
    279 }
    \n+
    280
    \n+
    281 initializer.calcColstart();
    \n
    282
    \n-
    283
    \n-
    305 template<class B, class A=std::allocator<B> >
    \n-
    306 class compressed_base_array_unmanaged
    \n-
    307 {
    \n-
    308 public:
    \n-
    309
    \n-
    310 //===== type definitions and constants
    \n-
    311
    \n-
    313 typedef B member_type;
    \n-
    314
    \n-
    316 typedef A allocator_type;
    \n+
    283 for (auto row=matrix.begin(); row!= matrix.end(); ++row) {
    \n+
    284 for (auto col=row->begin(); col != row->end(); ++col) {
    \n+
    285 initializer.copyValue(row, col);
    \n+
    286 }
    \n+
    287
    \n+
    288 }
    \n+
    289 initializer.createMatrix();
    \n+
    290 }
    \n+
    291
    \n+
    292 template<class F, class M,class S>
    \n+
    293 void copyToBCCSMatrix(F& initializer, const MatrixRowSubset<M,S>& mrs)
    \n+
    294 {
    \n+
    295 typedef MatrixRowSubset<M,S> MRS;
    \n+
    296 typedef typename MRS::RowIndexSet SIS;
    \n+
    297 typedef typename SIS::const_iterator SIter;
    \n+
    298 typedef typename MRS::const_iterator Iter;
    \n+
    299 typedef typename std::iterator_traits<Iter>::value_type row_type;
    \n+
    300 typedef typename row_type::const_iterator CIter;
    \n+
    301
    \n+
    302 typedef typename MRS::Matrix::size_type size_type;
    \n+
    303
    \n+
    304 // A vector containing the corresponding indices in
    \n+
    305 // the to create submatrix.
    \n+
    306 // If an entry is the maximum of size_type then this index will not appear in
    \n+
    307 // the submatrix.
    \n+
    308 std::vector<size_type> subMatrixIndex(mrs.matrix().N(),
    \n+
    309 std::numeric_limits<size_type>::max());
    \n+
    310 size_type s=0;
    \n+
    311 for(SIter index = mrs.rowIndexSet().begin(); index!=mrs.rowIndexSet().end(); ++index)
    \n+
    312 subMatrixIndex[*index]=s++;
    \n+
    313
    \n+
    314 // Calculate upper Bound for nonzeros
    \n+
    315 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)
    \n+
    316 initializer.addRowNnz(row, subMatrixIndex);
    \n
    317
    \n-
    319 typedef typename A::size_type size_type;
    \n-
    320
    \n-
    322 using reference = B&;
    \n-
    323
    \n-
    325 using const_reference = const B&;
    \n+
    318 initializer.allocate();
    \n+
    319
    \n+
    320 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)
    \n+
    321 for(CIter col=row->begin(); col != row->end(); ++col) {
    \n+
    322 if(subMatrixIndex[col.index()]!=std::numeric_limits<size_type>::max())
    \n+
    323 // This column is in our subset (use submatrix column index)
    \n+
    324 initializer.countEntries(subMatrixIndex[col.index()]);
    \n+
    325 }
    \n
    326
    \n-
    327 //===== access to components
    \n+
    327 initializer.calcColstart();
    \n
    328
    \n-
    330 reference operator[] (size_type i)
    \n-
    331 {
    \n-
    332 const size_type* lb = std::lower_bound(j, j+n, i);
    \n-
    333 if (lb == j+n || *lb != i)
    \n-
    334 DUNE_THROW(ISTLError,"index "<<i<<" not in compressed array");
    \n-
    335 return p[lb-j];
    \n-
    336 }
    \n+
    329 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)
    \n+
    330 for(CIter col=row->begin(); col != row->end(); ++col) {
    \n+
    331 if(subMatrixIndex[col.index()]!=std::numeric_limits<size_type>::max())
    \n+
    332 // This value is in our submatrix -> copy (use submatrix indices
    \n+
    333 initializer.copyValue(col, subMatrixIndex[row.index()], subMatrixIndex[col.index()]);
    \n+
    334 }
    \n+
    335 initializer.createMatrix();
    \n+
    336 }
    \n
    337
    \n-
    339 const_reference operator[] (size_type i) const
    \n-
    340 {
    \n-
    341 const size_type* lb = std::lower_bound(j, j+n, i);
    \n-
    342 if (lb == j+n || *lb != i)
    \n-
    343 DUNE_THROW(ISTLError,"index "<<i<<" not in compressed array");
    \n-
    344 return p[lb-j];
    \n-
    345 }
    \n-
    346
    \n-
    348 template<class T>
    \n-
    349 class RealIterator
    \n-
    350 : public BidirectionalIteratorFacade<RealIterator<T>, T>
    \n-
    351 {
    \n-
    352 public:
    \n-
    354 typedef typename std::remove_const<T>::type ValueType;
    \n-
    355
    \n-
    356 friend class BidirectionalIteratorFacade<RealIterator<const ValueType>, const ValueType>;
    \n-
    357 friend class BidirectionalIteratorFacade<RealIterator<ValueType>, ValueType>;
    \n-
    358 friend class RealIterator<const ValueType>;
    \n-
    359 friend class RealIterator<ValueType>;
    \n-
    360
    \n-
    362 RealIterator ()
    \n-
    363 : p(0), j(0), i(0)
    \n-
    364 {}
    \n-
    365
    \n-
    367 RealIterator (B* _p, size_type* _j, size_type _i)
    \n-
    368 : p(_p), j(_j), i(_i)
    \n-
    369 { }
    \n-
    370
    \n-
    374 RealIterator(const RealIterator<ValueType>& it)
    \n-
    375 : p(it.p), j(it.j), i(it.i)
    \n-
    376 {}
    \n-
    377
    \n-
    378
    \n-
    380 bool equals (const RealIterator<ValueType>& it) const
    \n-
    381 {
    \n-
    382 assert(p==it.p);
    \n-
    383 return (i)==(it.i);
    \n-
    384 }
    \n-
    385
    \n-
    387 bool equals (const RealIterator<const ValueType>& it) const
    \n-
    388 {
    \n-
    389 assert(p==it.p);
    \n-
    390 return (i)==(it.i);
    \n-
    391 }
    \n-
    392
    \n-
    393
    \n-
    395 size_type index () const
    \n-
    396 {
    \n-
    397 return j[i];
    \n-
    398 }
    \n-
    399
    \n-
    401 void setindex (size_type k)
    \n-
    402 {
    \n-
    403 return j[i] = k;
    \n-
    404 }
    \n-
    405
    \n-
    413 size_type offset () const
    \n-
    414 {
    \n-
    415 return i;
    \n-
    416 }
    \n-
    417
    \n-
    418 private:
    \n-
    420 void increment()
    \n-
    421 {
    \n-
    422 ++i;
    \n-
    423 }
    \n-
    424
    \n-
    426 void decrement()
    \n-
    427 {
    \n-
    428 --i;
    \n-
    429 }
    \n-
    430
    \n-
    432 reference dereference () const
    \n-
    433 {
    \n-
    434 return p[i];
    \n-
    435 }
    \n-
    436
    \n-
    437 B* p;
    \n-
    438 size_type* j;
    \n-
    439 size_type i;
    \n-
    440 };
    \n-
    441
    \n-
    443 typedef RealIterator<B> iterator;
    \n-
    444
    \n-
    446 iterator begin ()
    \n-
    447 {
    \n-
    448 return iterator(p,j,0);
    \n-
    449 }
    \n-
    450
    \n-
    452 iterator end ()
    \n-
    453 {
    \n-
    454 return iterator(p,j,n);
    \n-
    455 }
    \n-
    456
    \n-
    459 iterator beforeEnd ()
    \n-
    460 {
    \n-
    461 return iterator(p,j,n-1);
    \n-
    462 }
    \n-
    463
    \n-
    466 iterator beforeBegin ()
    \n-
    467 {
    \n-
    468 return iterator(p,j,-1);
    \n-
    469 }
    \n-
    470
    \n-
    472 iterator find (size_type i)
    \n-
    473 {
    \n-
    474 const size_type* lb = std::lower_bound(j, j+n, i);
    \n-
    475 return (lb != j+n && *lb == i)
    \n-
    476 ? iterator(p,j,lb-j)
    \n-
    477 : end();
    \n-
    478 }
    \n-
    479
    \n-
    481 typedef RealIterator<const B> const_iterator;
    \n-
    482
    \n-
    484 const_iterator begin () const
    \n-
    485 {
    \n-
    486 return const_iterator(p,j,0);
    \n-
    487 }
    \n-
    488
    \n-
    490 const_iterator end () const
    \n-
    491 {
    \n-
    492 return const_iterator(p,j,n);
    \n-
    493 }
    \n-
    494
    \n-
    497 const_iterator beforeEnd () const
    \n-
    498 {
    \n-
    499 return const_iterator(p,j,n-1);
    \n-
    500 }
    \n-
    501
    \n-
    504 const_iterator beforeBegin () const
    \n-
    505 {
    \n-
    506 return const_iterator(p,j,-1);
    \n-
    507 }
    \n-
    508
    \n-
    510 const_iterator find (size_type i) const
    \n-
    511 {
    \n-
    512 const size_type* lb = std::lower_bound(j, j+n, i);
    \n-
    513 return (lb != j+n && *lb == i)
    \n-
    514 ? const_iterator(p,j,lb-j)
    \n-
    515 : end();
    \n-
    516 }
    \n-
    517
    \n-
    518 //===== sizes
    \n-
    519
    \n-
    521 size_type size () const
    \n-
    522 {
    \n-
    523 return n;
    \n-
    524 }
    \n-
    525
    \n-
    526 protected:
    \n-
    528 compressed_base_array_unmanaged ()
    \n-
    529 : n(0), p(0), j(0)
    \n-
    530 {}
    \n-
    531
    \n-
    532 size_type n; // number of elements in array
    \n-
    533 B *p; // pointer to dynamically allocated built-in array
    \n-
    534 size_type* j; // the index set
    \n-
    535 };
    \n-
    536
    \n-
    537} // end namespace Imp
    \n-
    538
    \n-
    539} // end namespace
    \n-
    540
    \n-
    541#endif
    \n-\n+
    338}
    \n+
    339#endif
    \n+\n+
    Col col
    Definition matrixmatrix.hh:351
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    std::size_t countEntries(const BlockVector< T, A > &vector)
    Definition matrixmarket.hh:1076
    \n
    Definition allocator.hh:11
    \n+
    Initializer for SuperLU Matrices representing the subdomains.
    Definition overlappingschwarz.hh:47
    \n+
    A::size_type size_type
    Type for indices and sizes.
    Definition matrix.hh:577
    \n+
    MatrixImp::DenseMatrixBase< T, A >::window_type row_type
    The type implementing a matrix row.
    Definition matrix.hh:574
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,426 +1,353 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-basearray.hh\n+bccsmatrixinitializer.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_BASEARRAY_HH\n-6#define DUNE_ISTL_BASEARRAY_HH\n+5#ifndef DUNE_ISTL_BCCSMATRIX_INITIALIZER_HH\n+6#define DUNE_ISTL_BCCSMATRIX_INITIALIZER_HH\n 7\n-8#include \"assert.h\"\n-9#include \n-10#include \n-11#include \n-12#include \n+8#include \n+9#include \n+10\n+11#include \n+12#include \n 13\n-14#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-15#include \n-16\n-21namespace _\bD_\bu_\bn_\be {\n-22\n-24namespace Imp {\n-25\n-50 template >\n-51 class base_array_unmanaged\n-52 {\n-53 public:\n-54\n-55 //===== type definitions and constants\n-56\n-58 typedef B member_type;\n-59\n-61 typedef A allocator_type;\n-62\n-64 typedef typename A::size_type size_type;\n-65\n-67 using reference = B&;\n+14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+15\n+16namespace _\bD_\bu_\bn_\be\n+17{\n+18 template\n+19 class OverlappingSchwarzInitializer;\n+20}\n+21\n+22namespace Dune::ISTL::Impl\n+23{\n+31 template\n+32 class MatrixRowSubset\n+33 {\n+34 public:\n+36 typedef M Matrix;\n+38 typedef S RowIndexSet;\n+39\n+45 MatrixRowSubset(const Matrix& m, const RowIndexSet& s)\n+46 : m_(m), s_(s)\n+47 {}\n+48\n+49 const Matrix& matrix() const\n+50 {\n+51 return m_;\n+52 }\n+53\n+54 const RowIndexSet& rowIndexSet() const\n+55 {\n+56 return s_;\n+57 }\n+58\n+60 class const_iterator\n+61 : public ForwardIteratorFacade\n+62 {\n+63 public:\n+64 const_iterator(typename Matrix::const_iterator firstRow,\n+65 typename RowIndexSet::const_iterator pos)\n+66 : firstRow_(firstRow), pos_(pos)\n+67 {}\n 68\n-70 using const_reference = const B&;\n-71\n-72 //===== access to components\n-73\n-75 reference operator[] (size_type i)\n-76 {\n-77#ifdef DUNE_ISTL_WITH_CHECKING\n-78 if (i>=n) DUNE_THROW(ISTLError,\"index out of range\");\n-79#endif\n-80 return p[i];\n+69\n+70 const typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be& dereference() const\n+71 {\n+72 return *(firstRow_+ *pos_);\n+73 }\n+74 bool equals(const const_iterator& o) const\n+75 {\n+76 return pos_==o.pos_;\n+77 }\n+78 void increment()\n+79 {\n+80 ++pos_;\n 81 }\n-82\n-84 const_reference operator[] (size_type i) const\n-85 {\n-86#ifdef DUNE_ISTL_WITH_CHECKING\n-87 if (i>=n) DUNE_THROW(ISTLError,\"index out of range\");\n-88#endif\n-89 return p[i];\n-90 }\n-91\n-93 template\n-94 class RealIterator\n-95 : public RandomAccessIteratorFacade, T>\n+82 typename RowIndexSet::value_type index() const\n+83 {\n+84 return *pos_;\n+85 }\n+86\n+87 private:\n+89 typename Matrix::const_iterator firstRow_;\n+91 typename RowIndexSet::const_iterator pos_;\n+92 };\n+93\n+95 const_iterator begin() const\n 96 {\n-97 public:\n-99 typedef typename std::remove_const::type ValueType;\n-100\n-101 friend class RandomAccessIteratorFacade,\n-const ValueType>;\n-102 friend class RandomAccessIteratorFacade,\n-ValueType>;\n-103 friend class RealIterator;\n-104 friend class RealIterator;\n-105\n-107 RealIterator ()\n-108 : p(0), i(0)\n-109 {}\n-110\n-111 RealIterator (const B* _p, B* _i) : p(_p), i(_i)\n-112 { }\n-113\n-114 RealIterator(const RealIterator& it)\n-115 : p(it.p), i(it.i)\n-116 {}\n-117\n-119 size_type index () const\n+97 return const_iterator(m_.begin(), s_.begin());\n+98 }\n+100 const_iterator end() const\n+101 {\n+102 return const_iterator(m_.begin(), s_.end());\n+103 }\n+104\n+105 private:\n+107 const Matrix& m_;\n+109 const RowIndexSet& s_;\n+110 };\n+111\n+118 template\n+119 class BCCSMatrixInitializer\n 120 {\n-121 return i-p;\n-122 }\n-123\n-125 bool equals (const RealIterator& other) const\n-126 {\n-127 assert(other.p==p);\n-128 return i==other.i;\n-129 }\n-130\n-132 bool equals (const RealIterator& other) const\n+121 template\n+122 friend class _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n+123 public:\n+124 using Matrix = M;\n+125 using Index = I;\n+126 typedef Dune::ISTL::Impl::BCCSMatrix\n+OutputMatrix;\n+127 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size_type;\n+128\n+131 BCCSMatrixInitializer(OutputMatrix& mat_)\n+132 : _\bm_\ba_\bt(&mat_), cols(mat_.M())\n 133 {\n-134 assert(other.p==p);\n-135 return i==other.i;\n-136 }\n-137\n-138 std::ptrdiff_t distanceTo(const RealIterator& o) const\n+134 if constexpr (Dune::IsNumber::value)\n+135 {\n+136 n = m = 1;\n+137 }\n+138 else\n 139 {\n-140 return o.i-i;\n-141 }\n-142\n-143 private:\n-145 void increment()\n-146 {\n-147 ++i;\n-148 }\n-149\n-151 void decrement()\n-152 {\n-153 --i;\n-154 }\n-155\n-156 // Needed for operator[] of the iterator\n-157 reference elementAt (std::ptrdiff_t offset) const\n-158 {\n-159 return *(i+offset);\n-160 }\n-161\n-163 reference dereference () const\n-164 {\n-165 return *i;\n-166 }\n-167\n-168 void advance(std::ptrdiff_t d)\n-169 {\n-170 i+=d;\n-171 }\n-172\n-173 const B* p;\n-174 B* i;\n-175 };\n-176\n-178 typedef RealIterator iterator;\n-179\n-180\n-182 iterator begin ()\n-183 {\n-184 return iterator(p,p);\n-185 }\n-186\n-188 iterator end ()\n-189 {\n-190 return iterator(p,p+n);\n-191 }\n-192\n-195 iterator beforeEnd ()\n-196 {\n-197 return iterator(p,p+n-1);\n-198 }\n-199\n-202 iterator beforeBegin ()\n-203 {\n-204 return iterator(p,p-1);\n-205 }\n-206\n-208 iterator find (size_type i)\n-209 {\n-210 return iterator(p,p+std::min(i,n));\n-211 }\n-212\n-214 typedef RealIterator const_iterator;\n-215\n-217 const_iterator begin () const\n-218 {\n-219 return const_iterator(p,p+0);\n-220 }\n-221\n-223 const_iterator end () const\n-224 {\n-225 return const_iterator(p,p+n);\n-226 }\n-227\n-230 const_iterator beforeEnd () const\n-231 {\n-232 return const_iterator(p,p+n-1);\n+140 // WARNING: This assumes that all blocks are dense and identical\n+141 n = M::block_type::rows;\n+142 m = M::block_type::cols;\n+143 }\n+144\n+145 _\bm_\ba_\bt->Nnz_=0;\n+146 }\n+147\n+148 BCCSMatrixInitializer()\n+149 : _\bm_\ba_\bt(0), cols(0), n(0), m(0)\n+150 {}\n+151\n+152 virtual ~BCCSMatrixInitializer()\n+153 {}\n+154\n+155 template\n+156 void addRowNnz(const Iter& row) const\n+157 {\n+158 _\bm_\ba_\bt->Nnz_+=row->getsize();\n+159 }\n+160\n+161 template\n+162 void addRowNnz(const Iter& row, const std::set& indices)\n+const\n+163 {\n+164 auto siter =indices.begin();\n+165 for (auto entry=row->begin(); entry!=row->end(); ++entry)\n+166 {\n+167 for(; siter!=indices.end() && *siterNnz_;\n+173 }\n+174 }\n+175\n+176 template\n+177 void addRowNnz(const Iter& row, const std::vector& indices)\n+const\n+178 {\n+179 for (auto entry=row->begin(); entry!=row->end(); ++entry)\n+180 if (indices[entry.index()]!=std::numeric_limits::max())\n+181 ++_\bm_\ba_\bt->Nnz_;\n+182 }\n+183\n+184 void allocate()\n+185 {\n+186 allocateMatrixStorage();\n+187 allocateMarker();\n+188 }\n+189\n+190 template\n+191 void _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs([[maybe_unused]] const Iter& row, const CIter& _\bc_\bo_\bl) const\n+192 {\n+193 _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(_\bc_\bo_\bl.index());\n+194 }\n+195\n+196 void _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(size_type colindex) const\n+197 {\n+198 for(size_type i=0; i < m; ++i)\n+199 {\n+200 assert(colindex*m+icolstart[0]=0;\n+208 for(size_type i=0; i < cols; ++i) {\n+209 assert(icolstart[i+1]=_\bm_\ba_\bt->colstart[i]+marker[i];\n+211 marker[i]=_\bm_\ba_\bt->colstart[i];\n+212 }\n+213 }\n+214\n+215 template\n+216 void copyValue(const Iter& row, const CIter& _\bc_\bo_\bl) const\n+217 {\n+218 copyValue(_\bc_\bo_\bl, row.index(), _\bc_\bo_\bl.index());\n+219 }\n+220\n+221 template\n+222 void copyValue(const CIter& _\bc_\bo_\bl, size_type rowindex, size_type colindex)\n+const\n+223 {\n+224 for(size_type i=0; icolstart[colindex*m+j+1]);\n+227 assert((size_type)marker[colindex*m+j]<_\bm_\ba_\bt->Nnz_);\n+228 _\bm_\ba_\bt->rowindex[marker[colindex*m+j]]=rowindex*n+i;\n+229 _\bm_\ba_\bt->values[marker[colindex*m+j]] = Dune::Impl::asMatrix(*_\bc_\bo_\bl)[i][j];\n+230 ++marker[colindex*m+j]; // index for next entry in column\n+231 }\n+232 }\n 233 }\n 234\n-237 const_iterator beforeBegin () const\n-238 {\n-239 return const_iterator(p,p-1);\n-240 }\n+235 virtual void createMatrix() const\n+236 {\n+237 marker.clear();\n+238 }\n+239\n+240 protected:\n 241\n-243 const_iterator find (size_type i) const\n-244 {\n-245 return const_iterator(p,p+std::min(i,n));\n-246 }\n-247\n-248\n-249 //===== sizes\n+242 void allocateMatrixStorage() const\n+243 {\n+244 _\bm_\ba_\bt->Nnz_*=n*m;\n+245 // initialize data\n+246 _\bm_\ba_\bt->values=new typename M::field_type[_\bm_\ba_\bt->Nnz_];\n+247 _\bm_\ba_\bt->rowindex=new I[_\bm_\ba_\bt->Nnz_];\n+248 _\bm_\ba_\bt->colstart=new I[cols+1];\n+249 }\n 250\n-252 size_type size () const\n-253 {\n-254 return n;\n+251 void allocateMarker()\n+252 {\n+253 marker.resize(cols);\n+254 std::fill(marker.begin(), marker.end(), 0);\n 255 }\n 256\n-258 const B* data() const\n-259 {\n-260 return p;\n-261 }\n-262\n-264 B* data()\n-265 {\n-266 return p;\n-267 }\n-268\n-269 protected:\n-271 base_array_unmanaged ()\n-272 : n(0), p(0)\n-273 {}\n-275 base_array_unmanaged (size_type n_, B* p_)\n-276 : n(n_), p(p_)\n-277 {}\n-278 size_type n; // number of elements in array\n-279 B *p; // pointer to dynamically allocated built-in array\n-280 };\n-281\n+257 OutputMatrix* _\bm_\ba_\bt;\n+258 size_type cols;\n+259\n+260 // Number of rows/columns of the matrix entries\n+261 // (assumed to be scalars or dense matrices)\n+262 size_type n, m;\n+263\n+264 mutable std::vector marker;\n+265 };\n+266\n+267 template\n+268 void copyToBCCSMatrix(F& initializer, const Matrix& matrix)\n+269 {\n+270 for (auto row=matrix.begin(); row!= matrix.end(); ++row)\n+271 initializer.addRowNnz(row);\n+272\n+273 initializer.allocate();\n+274\n+275 for (auto row=matrix.begin(); row!= matrix.end(); ++row) {\n+276\n+277 for (auto _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl)\n+278 initializer.countEntries(row, _\bc_\bo_\bl);\n+279 }\n+280\n+281 initializer.calcColstart();\n 282\n-283\n-305 template >\n-306 class compressed_base_array_unmanaged\n-307 {\n-308 public:\n-309\n-310 //===== type definitions and constants\n-311\n-313 typedef B member_type;\n-314\n-316 typedef A allocator_type;\n+283 for (auto row=matrix.begin(); row!= matrix.end(); ++row) {\n+284 for (auto _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl) {\n+285 initializer.copyValue(row, _\bc_\bo_\bl);\n+286 }\n+287\n+288 }\n+289 initializer.createMatrix();\n+290 }\n+291\n+292 template\n+293 void copyToBCCSMatrix(F& initializer, const MatrixRowSubset& mrs)\n+294 {\n+295 typedef MatrixRowSubset MRS;\n+296 typedef typename MRS::RowIndexSet SIS;\n+297 typedef typename SIS::const_iterator SIter;\n+298 typedef typename MRS::const_iterator Iter;\n+299 typedef typename std::iterator_traits::value_type row_type;\n+300 typedef typename row_type::const_iterator CIter;\n+301\n+302 typedef typename MRS::Matrix::size_type size_type;\n+303\n+304 // A vector containing the corresponding indices in\n+305 // the to create submatrix.\n+306 // If an entry is the maximum of size_type then this index will not appear\n+in\n+307 // the submatrix.\n+308 std::vector subMatrixIndex(mrs.matrix().N(),\n+309 std::numeric_limits::max());\n+310 size_type s=0;\n+311 for(SIter index = mrs.rowIndexSet().begin(); index!=mrs.rowIndexSet().end\n+(); ++index)\n+312 subMatrixIndex[*index]=s++;\n+313\n+314 // Calculate upper Bound for nonzeros\n+315 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)\n+316 initializer.addRowNnz(row, subMatrixIndex);\n 317\n-319 typedef typename A::size_type size_type;\n-320\n-322 using reference = B&;\n-323\n-325 using const_reference = const B&;\n+318 initializer.allocate();\n+319\n+320 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)\n+321 for(CIter _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl) {\n+322 if(subMatrixIndex[_\bc_\bo_\bl.index()]!=std::numeric_limits::max())\n+323 // This column is in our subset (use submatrix column index)\n+324 initializer.countEntries(subMatrixIndex[_\bc_\bo_\bl.index()]);\n+325 }\n 326\n-327 //===== access to components\n+327 initializer.calcColstart();\n 328\n-330 reference operator[] (size_type i)\n-331 {\n-332 const size_type* lb = std::lower_bound(j, j+n, i);\n-333 if (lb == j+n || *lb != i)\n-334 DUNE_THROW(ISTLError,\"index \"<begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl) {\n+331 if(subMatrixIndex[_\bc_\bo_\bl.index()]!=std::numeric_limits::max())\n+332 // This value is in our submatrix -> copy (use submatrix indices\n+333 initializer.copyValue(_\bc_\bo_\bl, subMatrixIndex[row.index()], subMatrixIndex\n+[_\bc_\bo_\bl.index()]);\n+334 }\n+335 initializer.createMatrix();\n 336 }\n 337\n-339 const_reference operator[] (size_type i) const\n-340 {\n-341 const size_type* lb = std::lower_bound(j, j+n, i);\n-342 if (lb == j+n || *lb != i)\n-343 DUNE_THROW(ISTLError,\"index \"<\n-349 class RealIterator\n-350 : public BidirectionalIteratorFacade, T>\n-351 {\n-352 public:\n-354 typedef typename std::remove_const::type ValueType;\n-355\n-356 friend class BidirectionalIteratorFacade,\n-const ValueType>;\n-357 friend class BidirectionalIteratorFacade,\n-ValueType>;\n-358 friend class RealIterator;\n-359 friend class RealIterator;\n-360\n-362 RealIterator ()\n-363 : p(0), j(0), i(0)\n-364 {}\n-365\n-367 RealIterator (B* _p, size_type* _j, size_type _i)\n-368 : p(_p), j(_j), i(_i)\n-369 { }\n-370\n-374 RealIterator(const RealIterator& it)\n-375 : p(it.p), j(it.j), i(it.i)\n-376 {}\n-377\n-378\n-380 bool equals (const RealIterator& it) const\n-381 {\n-382 assert(p==it.p);\n-383 return (i)==(it.i);\n-384 }\n-385\n-387 bool equals (const RealIterator& it) const\n-388 {\n-389 assert(p==it.p);\n-390 return (i)==(it.i);\n-391 }\n-392\n-393\n-395 size_type index () const\n-396 {\n-397 return j[i];\n-398 }\n-399\n-401 void setindex (size_type k)\n-402 {\n-403 return j[i] = k;\n-404 }\n-405\n-413 size_type offset () const\n-414 {\n-415 return i;\n-416 }\n-417\n-418 private:\n-420 void increment()\n-421 {\n-422 ++i;\n-423 }\n-424\n-426 void decrement()\n-427 {\n-428 --i;\n-429 }\n-430\n-432 reference dereference () const\n-433 {\n-434 return p[i];\n-435 }\n-436\n-437 B* p;\n-438 size_type* j;\n-439 size_type i;\n-440 };\n-441\n-443 typedef RealIterator iterator;\n-444\n-446 iterator begin ()\n-447 {\n-448 return iterator(p,j,0);\n-449 }\n-450\n-452 iterator end ()\n-453 {\n-454 return iterator(p,j,n);\n-455 }\n-456\n-459 iterator beforeEnd ()\n-460 {\n-461 return iterator(p,j,n-1);\n-462 }\n-463\n-466 iterator beforeBegin ()\n-467 {\n-468 return iterator(p,j,-1);\n-469 }\n-470\n-472 iterator find (size_type i)\n-473 {\n-474 const size_type* lb = std::lower_bound(j, j+n, i);\n-475 return (lb != j+n && *lb == i)\n-476 ? iterator(p,j,lb-j)\n-477 : end();\n-478 }\n-479\n-481 typedef RealIterator const_iterator;\n-482\n-484 const_iterator begin () const\n-485 {\n-486 return const_iterator(p,j,0);\n-487 }\n-488\n-490 const_iterator end () const\n-491 {\n-492 return const_iterator(p,j,n);\n-493 }\n-494\n-497 const_iterator beforeEnd () const\n-498 {\n-499 return const_iterator(p,j,n-1);\n-500 }\n-501\n-504 const_iterator beforeBegin () const\n-505 {\n-506 return const_iterator(p,j,-1);\n-507 }\n-508\n-510 const_iterator find (size_type i) const\n-511 {\n-512 const size_type* lb = std::lower_bound(j, j+n, i);\n-513 return (lb != j+n && *lb == i)\n-514 ? const_iterator(p,j,lb-j)\n-515 : end();\n-516 }\n-517\n-518 //===== sizes\n-519\n-521 size_type size () const\n-522 {\n-523 return n;\n-524 }\n-525\n-526 protected:\n-528 compressed_base_array_unmanaged ()\n-529 : n(0), p(0), j(0)\n-530 {}\n-531\n-532 size_type n; // number of elements in array\n-533 B *p; // pointer to dynamically allocated built-in array\n-534 size_type* j; // the index set\n-535 };\n-536\n-537} // end namespace Imp\n-538\n-539} // end namespace\n-540\n-541#endif\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+338}\n+339#endif\n+_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs\n+std::size_t countEntries(const BlockVector< T, A > &vector)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1076\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+Initializer for SuperLU Matrices representing the subdomains.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:47\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+Type for indices and sizes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:577\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n+MatrixImp::DenseMatrixBase< T, A >::window_type row_type\n+The type implementing a matrix row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:574\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00029.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00029.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: preconditioners.hh File Reference\n+dune-istl: multitypeblockmatrix.hh File Reference\n \n \n \n \n \n \n \n@@ -72,98 +72,61 @@\n
  • dune
  • istl
  • \n \n \n
    \n \n- \n+
    multitypeblockmatrix.hh File Reference
    \n
    \n
    \n-\n-

    Define general preconditioner interface. \n-More...

    \n
    #include <cmath>
    \n-#include <complex>
    \n #include <iostream>
    \n-#include <iomanip>
    \n-#include <memory>
    \n-#include <string>
    \n-#include <dune/common/simd/simd.hh>
    \n-#include <dune/common/parametertree.hh>
    \n-#include <dune/istl/solverregistry.hh>
    \n-#include "preconditioner.hh"
    \n-#include "solver.hh"
    \n-#include "solvercategory.hh"
    \n-#include "istlexception.hh"
    \n-#include "matrixutils.hh"
    \n-#include "gsetc.hh"
    \n-#include "ildl.hh"
    \n-#include "ilu.hh"
    \n+#include <tuple>
    \n+#include <dune/common/hybridutilities.hh>
    \n+#include "istlexception.hh"
    \n+#include "gsetc.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n \n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::InverseOperator2Preconditioner< O, c >
     Turns an InverseOperator into a Preconditioner. More...
     
    class  Dune::SeqSSOR< M, X, Y, l >
     Sequential SSOR preconditioner. More...
    class  Dune::MultiTypeBlockMatrix< FirstRow, Args >
     A Matrix class to support different block types. More...
     
    class  Dune::SeqSOR< M, X, Y, l >
     Sequential SOR preconditioner. More...
    class  Dune::MultiTypeBlockMatrix_Solver_Col< I, crow, ccol, remain_col >
     part of solvers for MultiTypeBlockVector & MultiTypeBlockMatrix types More...
     
    class  Dune::SeqJac< M, X, Y, l >
     The sequential jacobian preconditioner. More...
    class  Dune::MultiTypeBlockMatrix_Solver_Col< I, crow, ccol, 0 >
     
    class  Dune::SeqILU< M, X, Y, l >
     Sequential ILU preconditioner. More...
    class  Dune::MultiTypeBlockMatrix_Solver< I, crow, remain_row >
     solver for MultiTypeBlockVector & MultiTypeBlockMatrix types More...
     
    class  Dune::Richardson< X, Y >
     Richardson preconditioner. More...
    class  Dune::MultiTypeBlockMatrix_Solver< I, crow, 0 >
     
    class  Dune::SeqILDL< M, X, Y >
     sequential ILDL preconditioner More...
    struct  std::tuple_element< i, Dune::MultiTypeBlockMatrix< Args... > >
     Make std::tuple_element work for MultiTypeBlockMatrix. More...
     
    \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    \n-\n-\n-\n-\n-\n+\n+\n+\n

    \n-Typedefs

    template<class M , class X , class Y , int l = 1>
    using Dune::SeqGS = SeqSOR< M, X, Y, l >
     Sequential Gauss Seidel preconditioner.
     
    namespace  std
     STL namespace.
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n

    \n Functions

     Dune::DUNE_REGISTER_PRECONDITIONER ("ssor", defaultPreconditionerBlockLevelCreator< Dune::SeqSSOR >())
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("sor", defaultPreconditionerBlockLevelCreator< Dune::SeqSOR >())
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("gs", defaultPreconditionerBlockLevelCreator< Dune::SeqGS >())
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("jac", defaultPreconditionerBlockLevelCreator< Dune::SeqJac >())
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("ilu", defaultPreconditionerBlockLevelCreator< Dune::SeqILU >())
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("richardson", [](auto tl, const auto &, const ParameterTree &config){ using D=typename Dune::TypeListElement< 1, decltype(tl)>::type;using R=typename Dune::TypeListElement< 2, decltype(tl)>::type;return std::make_shared< Richardson< D, R > >(config);})
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("ildl", defaultPreconditionerCreator< Dune::SeqILDL >())
     
    template<typename T1 , typename... Args>
    std::ostream & Dune::operator<< (std::ostream &s, const MultiTypeBlockMatrix< T1, Args... > &m)
     << operator for a MultiTypeBlockMatrix
     
    \n-

    Detailed Description

    \n-

    Define general preconditioner interface.

    \n-

    Wrap the methods implemented by ISTL in this interface. However, the interface is extensible such that new preconditioners can be implemented and used with the solvers.

    \n-
    \n+\n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,89 +1,47 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-preconditioners.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n-Define general preconditioner interface. _\bM_\bo_\br_\be_\b._\b._\b.\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+multitypeblockmatrix.hh File Reference\n #include \n-#include \n #include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh>\n-#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\"\n-#include \"_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\"\n-#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n+#include \n+#include \n #include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n #include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n-#include \"_\bi_\bl_\bd_\bl_\b._\bh_\bh\"\n-#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bO_\b,_\b _\bc_\b _\b>\n-\u00a0 Turns an _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br into a _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\br_\bs_\bt_\bR_\bo_\bw_\b,_\b _\bA_\br_\bg_\bs_\b _\b>\n+\u00a0 A _\bM_\ba_\bt_\br_\bi_\bx class to support different block types. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n-\u00a0 Sequential SSOR preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\bc_\bc_\bo_\bl_\b,_\b _\br_\be_\bm_\ba_\bi_\bn_\b__\bc_\bo_\bl_\b _\b>\n+\u00a0 part of solvers for _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br & _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx types\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n-\u00a0 Sequential SOR preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\bc_\bc_\bo_\bl_\b,_\b _\b0_\b _\b>\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n-\u00a0 The sequential jacobian preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b _\b>\n+\u00a0 solver for _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br & _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx types _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n-\u00a0 Sequential _\bI_\bL_\bU preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\b0_\b _\b>\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0 _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0 sequential ILDL preconditioner _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b__\be_\bl_\be_\bm_\be_\bn_\bt_\b<_\b _\bi_\b,_\b _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>\n+\u00a0 Make std::tuple_element work for MultiTypeBlockMatrix. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bG_\bS = _\bS_\be_\bq_\bS_\bO_\bR< M, X, Y, l >\n-\u00a0 Sequential Gauss Seidel preconditioner.\n+namespace \u00a0 _\bs_\bt_\bd\n+\u00a0 STL namespace.\n \u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"ssor\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"sor\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"gs\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bG_\bS >())\n+template\n+std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &s, const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx<\n+ T1, Args... > &m)\n+\u00a0 << operator for a _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n \u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"jac\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"ilu\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"richardson\", [](auto tl, const auto &,\n- const ParameterTree &config){ using D=typename Dune::TypeListElement< 1,\n- decltype(tl)>::type;using R=typename Dune::TypeListElement< 2, decltype\n- (tl)>::type;return std::make_shared< _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn< D, R > >(config);})\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"ildl\", _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br<\n- _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL >())\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Define general preconditioner interface.\n-Wrap the methods implemented by ISTL in this interface. However, the interface\n-is extensible such that new preconditioners can be implemented and used with\n-the solvers.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00029_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00029_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: preconditioners.hh Source File\n+dune-istl: multitypeblockmatrix.hh Source File\n \n \n \n \n \n \n \n@@ -74,738 +74,666 @@\n \n
    \n \n
    \n \n
    \n-
    preconditioners.hh
    \n+
    multitypeblockmatrix.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_PRECONDITIONERS_HH
    \n-
    6#define DUNE_ISTL_PRECONDITIONERS_HH
    \n+
    5#ifndef DUNE_ISTL_MULTITYPEBLOCKMATRIX_HH
    \n+
    6#define DUNE_ISTL_MULTITYPEBLOCKMATRIX_HH
    \n
    7
    \n
    8#include <cmath>
    \n-
    9#include <complex>
    \n-
    10#include <iostream>
    \n-
    11#include <iomanip>
    \n-
    12#include <memory>
    \n-
    13#include <string>
    \n-
    14
    \n-
    15#include <dune/common/simd/simd.hh>
    \n-
    16#include <dune/common/parametertree.hh>
    \n-
    17
    \n-\n-
    19#include "preconditioner.hh"
    \n-
    20#include "solver.hh"
    \n-
    21#include "solvercategory.hh"
    \n-
    22#include "istlexception.hh"
    \n-
    23#include "matrixutils.hh"
    \n-
    24#include "gsetc.hh"
    \n-
    25#include "ildl.hh"
    \n-
    26#include "ilu.hh"
    \n+
    9#include <iostream>
    \n+
    10#include <tuple>
    \n+
    11
    \n+
    12#include <dune/common/hybridutilities.hh>
    \n+
    13
    \n+
    14#include "istlexception.hh"
    \n+
    15
    \n+
    16// forward declaration
    \n+
    17namespace Dune
    \n+
    18{
    \n+
    19 template<typename FirstRow, typename... Args>
    \n+
    20 class MultiTypeBlockMatrix;
    \n+
    21
    \n+
    22 template<int I, int crow, int remain_row>
    \n+
    23 class MultiTypeBlockMatrix_Solver;
    \n+
    24}
    \n+
    25
    \n+
    26#include "gsetc.hh"
    \n
    27
    \n-
    28
    \n-
    29namespace Dune {
    \n-
    72 template<class O, int c = -1>
    \n-
    \n-\n-
    74 public Preconditioner<typename O::domain_type, typename O::range_type>
    \n-
    75 {
    \n-
    76 public:
    \n-
    78 typedef typename O::domain_type domain_type;
    \n-
    80 typedef typename O::range_type range_type;
    \n-
    82 typedef typename range_type::field_type field_type;
    \n-
    84 typedef Simd::Scalar<field_type> scalar_field_type;
    \n-
    86 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n-
    88 typedef O InverseOperator;
    \n-
    89
    \n-
    \n-\n-
    95 : inverse_operator_(inverse_operator)
    \n-
    96 {
    \n-
    97 if(c != -1 && SolverCategory::category(inverse_operator_) != c)
    \n-
    98 DUNE_THROW(InvalidStateException, "User-supplied solver category does not match that of the given inverse operator");
    \n-
    99 }
    \n-
    \n-
    100
    \n-
    \n-
    101 virtual void pre(domain_type&,range_type&)
    \n-
    102 {}
    \n-
    \n-
    103
    \n+
    28namespace Dune {
    \n+
    29
    \n+
    43 template<typename FirstRow, typename... Args>
    \n+
    \n+\n+
    45 : public std::tuple<FirstRow, Args...>
    \n+
    46 {
    \n+
    47 using ParentType = std::tuple<FirstRow, Args...>;
    \n+
    48 public:
    \n+
    49
    \n+
    51 using ParentType::ParentType;
    \n+
    52
    \n+
    56 typedef MultiTypeBlockMatrix<FirstRow, Args...> type;
    \n+
    57
    \n+
    59 using size_type = std::size_t;
    \n+
    60
    \n+
    61 typedef typename FirstRow::field_type field_type;
    \n+
    62
    \n+
    \n+
    64 static constexpr size_type N()
    \n+
    65 {
    \n+
    66 return 1+sizeof...(Args);
    \n+
    67 }
    \n+
    \n+
    68
    \n+
    74 [[deprecated("Use method 'N' instead")]]
    \n+
    \n+
    75 static constexpr size_type size()
    \n+
    76 {
    \n+
    77 return 1+sizeof...(Args);
    \n+
    78 }
    \n+
    \n+
    79
    \n+
    \n+
    81 static constexpr size_type M()
    \n+
    82 {
    \n+
    83 return FirstRow::size();
    \n+
    84 }
    \n+
    \n+
    85
    \n+
    102 template< size_type index >
    \n+
    103 auto
    \n
    \n-
    104 virtual void apply(domain_type& v, const range_type& d)
    \n-
    105 {
    \n-\n-
    107 range_type copy(d);
    \n-
    108 inverse_operator_.apply(v, copy, res);
    \n-
    109 }
    \n-
    \n-
    110
    \n-
    \n-
    111 virtual void post(domain_type&)
    \n-
    112 {}
    \n-
    \n-
    113
    \n-
    \n-\n-
    116 {
    \n-
    117 return SolverCategory::category(inverse_operator_);
    \n-
    118 }
    \n-
    \n-
    119
    \n-
    120 private:
    \n-
    121 InverseOperator& inverse_operator_;
    \n-
    122 };
    \n-
    \n-
    123
    \n-
    124 //=====================================================================
    \n-
    125 // Implementation of this interface for sequential ISTL-preconditioners
    \n-
    126 //=====================================================================
    \n-
    127
    \n-
    128
    \n-
    140 template<class M, class X, class Y, int l=1>
    \n-
    \n-
    141 class SeqSSOR : public Preconditioner<X,Y> {
    \n-
    142 public:
    \n-
    144 typedef M matrix_type;
    \n-
    146 typedef X domain_type;
    \n-
    148 typedef Y range_type;
    \n-
    150 typedef typename X::field_type field_type;
    \n-
    152 typedef Simd::Scalar<field_type> scalar_field_type;
    \n-
    154 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n-
    155
    \n-
    \n-
    163 SeqSSOR (const M& A, int n, real_field_type w)
    \n-
    164 : _A_(A), _n(n), _w(w)
    \n-
    165 {
    \n-\n-
    167 }
    \n-
    \n-
    168
    \n-
    \n-
    182 SeqSSOR (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
    \n-
    183 : SeqSSOR(A->getmat(), configuration)
    \n-
    184 {}
    \n-
    \n-
    185
    \n-
    \n-
    199 SeqSSOR (const M& A, const ParameterTree& configuration)
    \n-
    200 : SeqSSOR(A, configuration.get<int>("iterations",1), configuration.get<real_field_type>("relaxation",1.0))
    \n-
    201 {}
    \n+
    104 operator[] ([[maybe_unused]] const std::integral_constant< size_type, index > indexVariable)
    \n+
    105 -> decltype(std::get<index>(*this))
    \n+
    106 {
    \n+
    107 return std::get<index>(*this);
    \n+
    108 }
    \n+
    \n+
    109
    \n+
    115 template< size_type index >
    \n+
    116 auto
    \n+
    \n+
    117 operator[] ([[maybe_unused]] const std::integral_constant< size_type, index > indexVariable) const
    \n+
    118 -> decltype(std::get<index>(*this))
    \n+
    119 {
    \n+
    120 return std::get<index>(*this);
    \n+
    121 }
    \n+
    \n+
    122
    \n+
    126 template<typename T>
    \n+
    \n+
    127 void operator= (const T& newval) {
    \n+
    128 using namespace Dune::Hybrid;
    \n+
    129 auto size = index_constant<1+sizeof...(Args)>();
    \n+
    130 // Since Dune::Hybrid::size(MultiTypeBlockMatrix) is not implemented,
    \n+
    131 // we cannot use a plain forEach(*this, ...). This could be achieved,
    \n+
    132 // e.g., by implementing a static size() method.
    \n+
    133 forEach(integralRange(size), [&](auto&& i) {
    \n+
    134 (*this)[i] = newval;
    \n+
    135 });
    \n+
    136 }
    \n+
    \n+
    137
    \n+
    138 //===== vector space arithmetic
    \n+
    139
    \n+
    \n+\n+
    142 {
    \n+
    143 auto size = index_constant<N()>();
    \n+
    144 Hybrid::forEach(Hybrid::integralRange(size), [&](auto&& i) {
    \n+
    145 (*this)[i] *= k;
    \n+
    146 });
    \n+
    147
    \n+
    148 return *this;
    \n+
    149 }
    \n+
    \n+
    150
    \n+
    \n+\n+
    153 {
    \n+
    154 auto size = index_constant<N()>();
    \n+
    155 Hybrid::forEach(Hybrid::integralRange(size), [&](auto&& i) {
    \n+
    156 (*this)[i] /= k;
    \n+
    157 });
    \n+
    158
    \n+
    159 return *this;
    \n+
    160 }
    \n+
    \n+
    161
    \n+
    162
    \n+
    \n+\n+
    169 {
    \n+
    170 auto size = index_constant<N()>();
    \n+
    171 Hybrid::forEach(Hybrid::integralRange(size), [&](auto&& i) {
    \n+
    172 (*this)[i] += b[i];
    \n+
    173 });
    \n+
    174
    \n+
    175 return *this;
    \n+
    176 }
    \n+
    \n+
    177
    \n+
    \n+\n+
    184 {
    \n+
    185 auto size = index_constant<N()>();
    \n+
    186 Hybrid::forEach(Hybrid::integralRange(size), [&](auto&& i) {
    \n+
    187 (*this)[i] -= b[i];
    \n+
    188 });
    \n+
    189
    \n+
    190 return *this;
    \n+
    191 }
    \n+
    \n+
    192
    \n+
    195 template<typename X, typename Y>
    \n+
    \n+
    196 void mv (const X& x, Y& y) const {
    \n+
    197 static_assert(X::size() == M(), "length of x does not match row length");
    \n+
    198 static_assert(Y::size() == N(), "length of y does not match row count");
    \n+
    199 y = 0; //reset y (for mv uses umv)
    \n+
    200 umv(x,y);
    \n+
    201 }
    \n
    \n
    202
    \n-
    \n-
    208 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)
    \n-
    209 {}
    \n-
    \n-
    210
    \n-
    \n-
    216 virtual void apply (X& v, const Y& d)
    \n-
    217 {
    \n-
    218 for (int i=0; i<_n; i++) {
    \n-
    219 bsorf(_A_,v,d,_w,BL<l>());
    \n-
    220 bsorb(_A_,v,d,_w,BL<l>());
    \n-
    221 }
    \n-
    222 }
    \n-
    \n-
    223
    \n-
    \n-
    229 virtual void post ([[maybe_unused]] X& x)
    \n-
    230 {}
    \n-
    \n-
    231
    \n-
    \n-\n-
    234 {
    \n-\n-
    236 }
    \n-
    \n-
    237
    \n-
    238 private:
    \n-
    240 const M& _A_;
    \n-
    242 int _n;
    \n-\n-
    245 };
    \n+
    205 template<typename X, typename Y>
    \n+
    \n+
    206 void umv (const X& x, Y& y) const {
    \n+
    207 static_assert(X::size() == M(), "length of x does not match row length");
    \n+
    208 static_assert(Y::size() == N(), "length of y does not match row count");
    \n+
    209 using namespace Dune::Hybrid;
    \n+
    210 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n+
    211 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    212 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n+
    213 (*this)[i][j].umv(x[j], y[i]);
    \n+
    214 });
    \n+
    215 });
    \n+
    216 }
    \n+
    \n+
    217
    \n+
    220 template<typename X, typename Y>
    \n+
    \n+
    221 void mmv (const X& x, Y& y) const {
    \n+
    222 static_assert(X::size() == M(), "length of x does not match row length");
    \n+
    223 static_assert(Y::size() == N(), "length of y does not match row count");
    \n+
    224 using namespace Dune::Hybrid;
    \n+
    225 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n+
    226 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    227 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n+
    228 (*this)[i][j].mmv(x[j], y[i]);
    \n+
    229 });
    \n+
    230 });
    \n+
    231 }
    \n+
    \n+
    232
    \n+
    235 template<typename AlphaType, typename X, typename Y>
    \n+
    \n+
    236 void usmv (const AlphaType& alpha, const X& x, Y& y) const {
    \n+
    237 static_assert(X::size() == M(), "length of x does not match row length");
    \n+
    238 static_assert(Y::size() == N(), "length of y does not match row count");
    \n+
    239 using namespace Dune::Hybrid;
    \n+
    240 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n+
    241 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    242 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n+
    243 (*this)[i][j].usmv(alpha, x[j], y[i]);
    \n+
    244 });
    \n+
    245 });
    \n+
    246 }
    \n
    \n-
    246 DUNE_REGISTER_PRECONDITIONER("ssor", defaultPreconditionerBlockLevelCreator<Dune::SeqSSOR>());
    \n
    247
    \n-
    248
    \n-
    260 template<class M, class X, class Y, int l=1>
    \n-
    \n-
    261 class SeqSOR : public Preconditioner<X,Y> {
    \n-
    262 public:
    \n-
    264 typedef M matrix_type;
    \n-
    266 typedef X domain_type;
    \n-
    268 typedef Y range_type;
    \n-
    270 typedef typename X::field_type field_type;
    \n-
    272 typedef Simd::Scalar<field_type> scalar_field_type;
    \n-
    274 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n-
    275
    \n-
    \n-
    283 SeqSOR (const M& A, int n, real_field_type w)
    \n-
    284 : _A_(A), _n(n), _w(w)
    \n-
    285 {
    \n-\n-
    287 }
    \n-
    \n-
    288
    \n-
    \n-
    302 SeqSOR (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
    \n-
    303 : SeqSOR(A->getmat(), configuration)
    \n-
    304 {}
    \n-
    \n-
    305
    \n-
    \n-
    319 SeqSOR (const M& A, const ParameterTree& configuration)
    \n-
    320 : SeqSOR(A, configuration.get<int>("iterations",1), configuration.get<real_field_type>("relaxation",1.0))
    \n-
    321 {}
    \n-
    \n-
    322
    \n-
    \n-
    328 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)
    \n-
    329 {}
    \n+
    250 template<typename X, typename Y>
    \n+
    \n+
    251 void mtv (const X& x, Y& y) const {
    \n+
    252 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n+
    253 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n+
    254 y = 0;
    \n+
    255 umtv(x,y);
    \n+
    256 }
    \n+
    \n+
    257
    \n+
    260 template<typename X, typename Y>
    \n+
    \n+
    261 void umtv (const X& x, Y& y) const {
    \n+
    262 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n+
    263 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n+
    264 using namespace Dune::Hybrid;
    \n+
    265 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n+
    266 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    267 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n+
    268 (*this)[j][i].umtv(x[j], y[i]);
    \n+
    269 });
    \n+
    270 });
    \n+
    271 }
    \n+
    \n+
    272
    \n+
    275 template<typename X, typename Y>
    \n+
    \n+
    276 void mmtv (const X& x, Y& y) const {
    \n+
    277 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n+
    278 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n+
    279 using namespace Dune::Hybrid;
    \n+
    280 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n+
    281 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    282 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n+
    283 (*this)[j][i].mmtv(x[j], y[i]);
    \n+
    284 });
    \n+
    285 });
    \n+
    286 }
    \n+
    \n+
    287
    \n+
    290 template<typename X, typename Y>
    \n+
    \n+
    291 void usmtv (const field_type& alpha, const X& x, Y& y) const {
    \n+
    292 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n+
    293 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n+
    294 using namespace Dune::Hybrid;
    \n+
    295 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n+
    296 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    297 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n+
    298 (*this)[j][i].usmtv(alpha, x[j], y[i]);
    \n+
    299 });
    \n+
    300 });
    \n+
    301 }
    \n+
    \n+
    302
    \n+
    305 template<typename X, typename Y>
    \n+
    \n+
    306 void umhv (const X& x, Y& y) const {
    \n+
    307 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n+
    308 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n+
    309 using namespace Dune::Hybrid;
    \n+
    310 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n+
    311 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    312 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n+
    313 (*this)[j][i].umhv(x[j], y[i]);
    \n+
    314 });
    \n+
    315 });
    \n+
    316 }
    \n+
    \n+
    317
    \n+
    320 template<typename X, typename Y>
    \n+
    \n+
    321 void mmhv (const X& x, Y& y) const {
    \n+
    322 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n+
    323 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n+
    324 using namespace Dune::Hybrid;
    \n+
    325 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n+
    326 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    327 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n+
    328 (*this)[j][i].mmhv(x[j], y[i]);
    \n+
    329 });
    \n+
    330 });
    \n+
    331 }
    \n
    \n-
    330
    \n+
    332
    \n+
    335 template<typename X, typename Y>
    \n
    \n-
    336 virtual void apply (X& v, const Y& d)
    \n-
    337 {
    \n-
    338 this->template apply<true>(v,d);
    \n-
    339 }
    \n-
    \n-
    340
    \n-
    349 template<bool forward>
    \n-
    \n-
    350 void apply(X& v, const Y& d)
    \n-
    351 {
    \n-
    352 if(forward)
    \n-
    353 for (int i=0; i<_n; i++) {
    \n-
    354 bsorf(_A_,v,d,_w,BL<l>());
    \n-
    355 }
    \n-
    356 else
    \n-
    357 for (int i=0; i<_n; i++) {
    \n-
    358 bsorb(_A_,v,d,_w,BL<l>());
    \n-
    359 }
    \n-
    360 }
    \n-
    \n-
    361
    \n-
    \n-
    367 virtual void post ([[maybe_unused]] X& x)
    \n-
    368 {}
    \n-
    \n-
    369
    \n-
    \n-\n-
    372 {
    \n-\n-
    374 }
    \n-
    \n-
    375
    \n-
    376 private:
    \n-
    378 const M& _A_;
    \n-
    380 int _n;
    \n-\n-
    383 };
    \n-
    \n-
    384 DUNE_REGISTER_PRECONDITIONER("sor", defaultPreconditionerBlockLevelCreator<Dune::SeqSOR>());
    \n-
    385
    \n-
    386
    \n-
    397 template<class M, class X, class Y, int l=1>
    \n-\n-
    399 DUNE_REGISTER_PRECONDITIONER("gs", defaultPreconditionerBlockLevelCreator<Dune::SeqGS>());
    \n-
    400
    \n-
    411 template<class M, class X, class Y, int l=1>
    \n-
    \n-\n-
    413 public:
    \n-
    415 typedef M matrix_type;
    \n-
    417 typedef X domain_type;
    \n-
    419 typedef Y range_type;
    \n-
    421 typedef typename X::field_type field_type;
    \n-
    423 typedef Simd::Scalar<field_type> scalar_field_type;
    \n-
    425 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n-
    426
    \n-
    \n-
    434 SeqJac (const M& A, int n, real_field_type w)
    \n-
    435 : _A_(A), _n(n), _w(w)
    \n-
    436 {
    \n-\n-
    438 }
    \n-
    \n-
    439
    \n-
    \n-
    453 SeqJac (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
    \n-
    454 : SeqJac(A->getmat(), configuration)
    \n-
    455 {}
    \n-
    \n-
    456
    \n-
    \n-
    470 SeqJac (const M& A, const ParameterTree& configuration)
    \n-
    471 : SeqJac(A, configuration.get<int>("iterations",1), configuration.get<real_field_type>("relaxation",1.0))
    \n-
    472 {}
    \n-
    \n-
    473
    \n-
    \n-
    479 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)
    \n-
    480 {}
    \n-
    \n-
    481
    \n-
    \n-
    487 virtual void apply (X& v, const Y& d)
    \n-
    488 {
    \n-
    489 for (int i=0; i<_n; i++) {
    \n-
    490 dbjac(_A_,v,d,_w,BL<l>());
    \n-
    491 }
    \n-
    492 }
    \n-
    \n-
    493
    \n-
    \n-
    499 virtual void post ([[maybe_unused]] X& x)
    \n-
    500 {}
    \n-
    \n-
    501
    \n-
    \n-\n-
    504 {
    \n-\n-
    506 }
    \n+
    336 void usmhv (const field_type& alpha, const X& x, Y& y) const {
    \n+
    337 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n+
    338 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n+
    339 using namespace Dune::Hybrid;
    \n+
    340 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n+
    341 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    342 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n+
    343 (*this)[j][i].usmhv(alpha, x[j], y[i]);
    \n+
    344 });
    \n+
    345 });
    \n+
    346 }
    \n+
    \n+
    347
    \n+
    348
    \n+
    349 //===== norms
    \n+
    350
    \n+
    \n+
    352 auto frobenius_norm2 () const
    \n+
    353 {
    \n+
    354 using field_type_00 = typename std::decay_t<decltype((*this)[Indices::_0][Indices::_0])>::field_type;
    \n+
    355 typename FieldTraits<field_type_00>::real_type sum=0;
    \n+
    356
    \n+
    357 auto rows = index_constant<N()>();
    \n+
    358 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {
    \n+
    359 auto cols = index_constant<MultiTypeBlockMatrix<FirstRow, Args...>::M()>();
    \n+
    360 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {
    \n+
    361 sum += (*this)[i][j].frobenius_norm2();
    \n+
    362 });
    \n+
    363 });
    \n+
    364
    \n+
    365 return sum;
    \n+
    366 }
    \n+
    \n+
    367
    \n+
    \n+
    369 typename FieldTraits<field_type>::real_type frobenius_norm () const
    \n+
    370 {
    \n+
    371 return sqrt(frobenius_norm2());
    \n+
    372 }
    \n+
    \n+
    373
    \n+
    \n+
    375 auto infinity_norm () const
    \n+
    376 {
    \n+
    377 using field_type_00 = typename std::decay_t<decltype((*this)[Indices::_0][Indices::_0])>::field_type;
    \n+
    378 using std::max;
    \n+
    379 typename FieldTraits<field_type_00>::real_type norm=0;
    \n+
    380
    \n+
    381 auto rows = index_constant<N()>();
    \n+
    382 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {
    \n+
    383
    \n+
    384 typename FieldTraits<field_type_00>::real_type sum=0;
    \n+
    385 auto cols = index_constant<MultiTypeBlockMatrix<FirstRow, Args...>::M()>();
    \n+
    386 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {
    \n+
    387 sum += (*this)[i][j].infinity_norm();
    \n+
    388 });
    \n+
    389 norm = max(sum, norm);
    \n+
    390 });
    \n+
    391
    \n+
    392 return norm;
    \n+
    393 }
    \n+
    \n+
    394
    \n+
    \n+
    396 auto infinity_norm_real () const
    \n+
    397 {
    \n+
    398 using field_type_00 = typename std::decay_t<decltype((*this)[Indices::_0][Indices::_0])>::field_type;
    \n+
    399 using std::max;
    \n+
    400 typename FieldTraits<field_type_00>::real_type norm=0;
    \n+
    401
    \n+
    402 auto rows = index_constant<N()>();
    \n+
    403 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {
    \n+
    404
    \n+
    405 typename FieldTraits<field_type_00>::real_type sum=0;
    \n+
    406 auto cols = index_constant<MultiTypeBlockMatrix<FirstRow, Args...>::M()>();
    \n+
    407 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {
    \n+
    408 sum += (*this)[i][j].infinity_norm_real();
    \n+
    409 });
    \n+
    410 norm = max(sum, norm);
    \n+
    411 });
    \n+
    412
    \n+
    413 return norm;
    \n+
    414 }
    \n+
    \n+
    415
    \n+
    416 };
    \n+
    \n+
    417
    \n+
    423 template<typename T1, typename... Args>
    \n+
    \n+
    424 std::ostream& operator<< (std::ostream& s, const MultiTypeBlockMatrix<T1,Args...>& m) {
    \n+
    425 auto N = index_constant<MultiTypeBlockMatrix<T1,Args...>::N()>();
    \n+
    426 auto M = index_constant<MultiTypeBlockMatrix<T1,Args...>::M()>();
    \n+
    427 using namespace Dune::Hybrid;
    \n+
    428 forEach(integralRange(N), [&](auto&& i) {
    \n+
    429 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    430 forEach(integralRange(M), [&](auto&& j) {
    \n+
    431 s << "\\t(" << i << ", " << j << "): \\n" << m[i][j];
    \n+
    432 });
    \n+
    433 });
    \n+
    434 s << std::endl;
    \n+
    435 return s;
    \n+
    436 }
    \n+
    \n+
    437
    \n+
    438 //make algmeta_itsteps known
    \n+
    439 template<int I, typename M>
    \n+
    440 struct algmeta_itsteps;
    \n+
    441
    \n+
    448 template<int I, int crow, int ccol, int remain_col> //MultiTypeBlockMatrix_Solver_Col: iterating over one row
    \n+
    \n+
    449 class MultiTypeBlockMatrix_Solver_Col { //calculating b- A[i][j]*x[j]
    \n+
    450 public:
    \n+
    454 template <typename Trhs, typename TVector, typename TMatrix, typename K>
    \n+
    \n+
    455 static void calc_rhs(const TMatrix& A, TVector& x, TVector& v, Trhs& b, const K& w) {
    \n+
    456 std::get<ccol>( std::get<crow>(A) ).mmv( std::get<ccol>(x), b );
    \n+\n+
    458 }
    \n+
    \n+
    459
    \n+
    460 };
    \n+
    \n+
    461 template<int I, int crow, int ccol> //MultiTypeBlockMatrix_Solver_Col recursion end
    \n+
    \n+
    462 class MultiTypeBlockMatrix_Solver_Col<I,crow,ccol,0> {
    \n+
    463 public:
    \n+
    464 template <typename Trhs, typename TVector, typename TMatrix, typename K>
    \n+
    465 static void calc_rhs(const TMatrix&, TVector&, TVector&, Trhs&, const K&) {}
    \n+
    466 };
    \n+
    \n+
    467
    \n+
    468
    \n+
    469
    \n+
    476 template<int I, int crow, int remain_row>
    \n+
    \n+\n+
    478 public:
    \n+
    479
    \n+
    483 template <typename TVector, typename TMatrix, typename K>
    \n+
    \n+
    484 static void dbgs(const TMatrix& A, TVector& x, const TVector& b, const K& w) {
    \n+
    485 TVector xold(x);
    \n+
    486 xold=x; //store old x values
    \n+\n+
    488 x *= w;
    \n+
    489 x.axpy(1-w,xold); //improve x
    \n+
    490 }
    \n+
    \n+
    491 template <typename TVector, typename TMatrix, typename K>
    \n+
    \n+
    492 static void dbgs(const TMatrix& A, TVector& x, TVector& v, const TVector& b, const K& w) {
    \n+
    493 auto rhs = std::get<crow> (b);
    \n+
    494
    \n+
    495 MultiTypeBlockMatrix_Solver_Col<I,crow,0, TMatrix::M()>::calc_rhs(A,x,v,rhs,w); // calculate right side of equation
    \n+
    496 //solve on blocklevel I-1
    \n+
    497 using M =
    \n+
    498 typename std::remove_cv<
    \n+
    499 typename std::remove_reference<
    \n+
    500 decltype(std::get<crow>( std::get<crow>(A)))
    \n+
    501 >::type
    \n+
    502 >::type;
    \n+
    503 algmeta_itsteps<I-1,M>::dbgs(std::get<crow>( std::get<crow>(A)), std::get<crow>(x),rhs,w);
    \n+\n+
    505 }
    \n
    \n+
    506
    \n
    507
    \n-
    508 private:
    \n-
    510 const M& _A_;
    \n-
    512 int _n;
    \n-
    514 real_field_type _w;
    \n-
    515 };
    \n-
    \n-
    516 DUNE_REGISTER_PRECONDITIONER("jac", defaultPreconditionerBlockLevelCreator<Dune::SeqJac>());
    \n+
    508
    \n+
    512 template <typename TVector, typename TMatrix, typename K>
    \n+
    \n+
    513 static void bsorf(const TMatrix& A, TVector& x, const TVector& b, const K& w) {
    \n+
    514 TVector v;
    \n+
    515 v=x; //use latest x values in right side calculation
    \n+\n
    517
    \n-
    518
    \n-
    519
    \n-
    531 template<class M, class X, class Y, int l=1>
    \n-
    \n-\n-
    533 public:
    \n-
    535 typedef typename std::remove_const<M>::type matrix_type;
    \n-
    537 typedef typename matrix_type :: block_type block_type;
    \n-
    539 typedef X domain_type;
    \n-
    541 typedef Y range_type;
    \n-
    542
    \n-
    544 typedef typename X::field_type field_type;
    \n-
    545
    \n-
    547 typedef Simd::Scalar<field_type> scalar_field_type;
    \n-
    549 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n-
    550
    \n-\n-
    553
    \n-
    \n-
    561 SeqILU (const M& A, real_field_type w, const bool resort = false )
    \n-
    562 : SeqILU( A, 0, w, resort ) // construct ILU(0)
    \n-
    563 {
    \n-
    564 }
    \n-
    \n-
    565
    \n-
    \n-
    580 SeqILU (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
    \n-
    581 : SeqILU(A->getmat(), configuration)
    \n-
    582 {}
    \n+
    518 }
    \n
    \n-
    583
    \n+
    519 template <typename TVector, typename TMatrix, typename K> //recursion over all matrix rows (A)
    \n+
    \n+
    520 static void bsorf(const TMatrix& A, TVector& x, TVector& v, const TVector& b, const K& w) {
    \n+
    521 auto rhs = std::get<crow> (b);
    \n+
    522
    \n+
    523 MultiTypeBlockMatrix_Solver_Col<I,crow,0,TMatrix::M()>::calc_rhs(A,x,v,rhs,w); // calculate right side of equation
    \n+
    524 //solve on blocklevel I-1
    \n+
    525 using M =
    \n+
    526 typename std::remove_cv<
    \n+
    527 typename std::remove_reference<
    \n+
    528 decltype(std::get<crow>( std::get<crow>(A)))
    \n+
    529 >::type
    \n+
    530 >::type;
    \n+
    531 algmeta_itsteps<I-1,M>::bsorf(std::get<crow>( std::get<crow>(A)), std::get<crow>(v),rhs,w);
    \n+
    532 std::get<crow>(x).axpy(w,std::get<crow>(v));
    \n+\n+
    534 }
    \n+
    \n+
    535
    \n+
    539 template <typename TVector, typename TMatrix, typename K>
    \n+
    \n+
    540 static void bsorb(const TMatrix& A, TVector& x, const TVector& b, const K& w) {
    \n+
    541 TVector v;
    \n+
    542 v=x; //use latest x values in right side calculation
    \n+\n+
    544
    \n+
    545 }
    \n+
    \n+
    546 template <typename TVector, typename TMatrix, typename K> //recursion over all matrix rows (A)
    \n+
    \n+
    547 static void bsorb(const TMatrix& A, TVector& x, TVector& v, const TVector& b, const K& w) {
    \n+
    548 auto rhs = std::get<crow> (b);
    \n+
    549
    \n+
    550 MultiTypeBlockMatrix_Solver_Col<I,crow,0, TMatrix::M()>::calc_rhs(A,x,v,rhs,w); // calculate right side of equation
    \n+
    551 //solve on blocklevel I-1
    \n+
    552 using M =
    \n+
    553 typename std::remove_cv<
    \n+
    554 typename std::remove_reference<
    \n+
    555 decltype(std::get<crow>( std::get<crow>(A)))
    \n+
    556 >::type
    \n+
    557 >::type;
    \n+
    558 algmeta_itsteps<I-1,M>::bsorb(std::get<crow>( std::get<crow>(A)), std::get<crow>(v),rhs,w);
    \n+
    559 std::get<crow>(x).axpy(w,std::get<crow>(v));
    \n+\n+
    561 }
    \n+
    \n+
    562
    \n+
    563
    \n+
    567 template <typename TVector, typename TMatrix, typename K>
    \n+
    \n+
    568 static void dbjac(const TMatrix& A, TVector& x, const TVector& b, const K& w) {
    \n+
    569 TVector v(x);
    \n+
    570 v=0; //calc new x in v
    \n+\n+
    572 x.axpy(w,v); //improve x
    \n+
    573 }
    \n+
    \n+
    574 template <typename TVector, typename TMatrix, typename K>
    \n+
    \n+
    575 static void dbjac(const TMatrix& A, TVector& x, TVector& v, const TVector& b, const K& w) {
    \n+
    576 auto rhs = std::get<crow> (b);
    \n+
    577
    \n+
    578 MultiTypeBlockMatrix_Solver_Col<I,crow,0, TMatrix::M()>::calc_rhs(A,x,v,rhs,w); // calculate right side of equation
    \n+
    579 //solve on blocklevel I-1
    \n+
    580 using M =
    \n+
    581 typename std::remove_cv<
    \n+
    582 typename std::remove_reference<
    \n+
    583 decltype(std::get<crow>( std::get<crow>(A)))
    \n+
    584 >::type
    \n+
    585 >::type;
    \n+
    586 algmeta_itsteps<I-1,M>::dbjac(std::get<crow>( std::get<crow>(A)), std::get<crow>(v),rhs,w);
    \n+\n+
    588 }
    \n+
    \n+
    589
    \n+
    590
    \n+
    591
    \n+
    592
    \n+
    593 };
    \n+
    \n+
    594 template<int I, int crow> //recursion end for remain_row = 0
    \n+
    \n+\n+
    596 public:
    \n+
    597 template <typename TVector, typename TMatrix, typename K>
    \n
    \n-
    598 SeqILU(const M& A, const ParameterTree& config)
    \n-
    599 : SeqILU(A, config.get("n", 0),
    \n-
    600 config.get<real_field_type>("relaxation", 1.0),
    \n-
    601 config.get("resort", false))
    \n-
    602 {}
    \n-
    \n-
    603
    \n-
    \n-
    612 SeqILU (const M& A, int n, real_field_type w, const bool resort = false )
    \n-
    613 : ILU_(),
    \n-
    614 lower_(),
    \n-
    615 upper_(),
    \n-
    616 inv_(),
    \n-
    617 w_(w),
    \n-
    618 wNotIdentity_([w]{using std::abs; return abs(w - real_field_type(1)) > 1e-15;}() )
    \n-
    619 {
    \n-
    620 if( n == 0 )
    \n-
    621 {
    \n-
    622 // copy A
    \n-
    623 ILU_.reset( new matrix_type( A ) );
    \n-
    624 // create ILU(0) decomposition
    \n-\n-
    626 }
    \n-
    627 else
    \n-
    628 {
    \n-
    629 // create matrix in build mode
    \n-
    630 ILU_.reset( new matrix_type( A.N(), A.M(), matrix_type::row_wise) );
    \n-
    631 // create ILU(n) decomposition
    \n-
    632 ILU::blockILUDecomposition( A, n, *ILU_ );
    \n-
    633 }
    \n-
    634
    \n-
    635 if( resort )
    \n-
    636 {
    \n-
    637 // store ILU in simple CRS format
    \n-
    638 ILU::convertToCRS( *ILU_, lower_, upper_, inv_ );
    \n-
    639 ILU_.reset();
    \n-
    640 }
    \n-
    641 }
    \n-
    \n-
    642
    \n-
    \n-
    648 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)
    \n-
    649 {}
    \n-
    \n-
    650
    \n-
    \n-
    656 virtual void apply (X& v, const Y& d)
    \n-
    657 {
    \n-
    658 if( ILU_ )
    \n-
    659 {
    \n-
    660 ILU::blockILUBacksolve( *ILU_, v, d);
    \n-
    661 }
    \n-
    662 else
    \n-
    663 {
    \n-
    664 ILU::blockILUBacksolve(lower_, upper_, inv_, v, d);
    \n-
    665 }
    \n-
    666
    \n-
    667 if( wNotIdentity_ )
    \n-
    668 {
    \n-
    669 v *= w_;
    \n-
    670 }
    \n-
    671 }
    \n-
    \n-
    672
    \n-
    \n-
    678 virtual void post ([[maybe_unused]] X& x)
    \n-
    679 {}
    \n-
    \n-
    680
    \n-
    \n-\n-
    683 {
    \n-\n-
    685 }
    \n-
    \n-
    686
    \n-
    687 protected:
    \n-
    689 std::unique_ptr< matrix_type > ILU_;
    \n-
    690
    \n-\n-\n-
    694 std::vector< block_type, typename matrix_type::allocator_type > inv_;
    \n-
    695
    \n-\n-
    699 const bool wNotIdentity_;
    \n-
    700 };
    \n-
    \n-
    701 DUNE_REGISTER_PRECONDITIONER("ilu", defaultPreconditionerBlockLevelCreator<Dune::SeqILU>());
    \n-
    702
    \n-
    703
    \n-
    712 template<class X, class Y>
    \n-
    \n-
    713 class Richardson : public Preconditioner<X,Y> {
    \n-
    714 public:
    \n-
    716 typedef X domain_type;
    \n-
    718 typedef Y range_type;
    \n-
    720 typedef typename X::field_type field_type;
    \n-
    722 typedef Simd::Scalar<field_type> scalar_field_type;
    \n-
    724 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n-
    725
    \n-
    \n-\n-
    732 _w(w)
    \n-
    733 {}
    \n-
    \n-
    734
    \n-
    \n-
    746 Richardson (const ParameterTree& configuration)
    \n-
    747 : Richardson(configuration.get<real_field_type>("relaxation", 1.0))
    \n-
    748 {}
    \n-
    \n-
    749
    \n-
    \n-
    755 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)
    \n-
    756 {}
    \n-
    \n-
    757
    \n-
    \n-
    763 virtual void apply (X& v, const Y& d)
    \n-
    764 {
    \n-
    765 v = d;
    \n-
    766 v *= _w;
    \n-
    767 }
    \n-
    \n-
    768
    \n-
    \n-
    774 virtual void post ([[maybe_unused]] X& x)
    \n-
    775 {}
    \n-
    \n-
    776
    \n-
    \n-\n-
    779 {
    \n-\n-
    781 }
    \n-
    \n-
    782
    \n-
    783 private:
    \n-\n-
    786 };
    \n-
    \n-
    787 DUNE_REGISTER_PRECONDITIONER("richardson", [](auto tl, const auto& /* mat */, const ParameterTree& config){
    \n-
    788 using D = typename Dune::TypeListElement<1, decltype(tl)>::type;
    \n-
    789 using R = typename Dune::TypeListElement<2, decltype(tl)>::type;
    \n-
    790 return std::make_shared<Richardson<D,R>>(config);
    \n-
    791 });
    \n-
    792
    \n-
    793
    \n-
    804 template< class M, class X, class Y >
    \n-
    \n-\n-
    806 : public Preconditioner< X, Y >
    \n-
    807 {
    \n-
    808 typedef SeqILDL< M, X, Y > This;
    \n-\n-
    810
    \n-
    811 public:
    \n-
    813 typedef std::remove_const_t< M > matrix_type;
    \n-
    815 typedef X domain_type;
    \n-
    817 typedef Y range_type;
    \n-
    819 typedef typename X::field_type field_type;
    \n-
    821 typedef Simd::Scalar<field_type> scalar_field_type;
    \n-
    823 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n-
    824
    \n-
    \n-
    837 SeqILDL (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
    \n-
    838 : SeqILDL(A->getmat(), configuration)
    \n-
    839 {}
    \n-
    \n-
    840
    \n-
    \n-
    853 SeqILDL(const matrix_type& A, const ParameterTree& config)
    \n-
    854 : SeqILDL(A, config.get<real_field_type>("relaxation", 1.0))
    \n-
    855 {}
    \n-
    \n-
    856
    \n-
    \n-
    865 explicit SeqILDL ( const matrix_type &A, real_field_type relax = real_field_type( 1 ) )
    \n-
    866 : decomposition_( A.N(), A.M(), matrix_type::random ),
    \n-
    867 relax_( relax )
    \n-
    868 {
    \n-
    869 // setup row sizes for lower triangular matrix
    \n-
    870 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )
    \n-
    871 {
    \n-
    872 const auto &A_i = *i;
    \n-
    873 const auto ij = A_i.find( i.index() );
    \n-
    874 if( ij != A_i.end() )
    \n-
    875 decomposition_.setrowsize( i.index(), ij.offset()+1 );
    \n-
    876 else
    \n-
    877 DUNE_THROW( ISTLError, "diagonal entry missing" );
    \n-
    878 }
    \n-
    879 decomposition_.endrowsizes();
    \n-
    880
    \n-
    881 // setup row indices for lower triangular matrix
    \n-
    882 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )
    \n-
    883 {
    \n-
    884 const auto &A_i = *i;
    \n-
    885 for( auto ij = A_i.begin(); ij.index() < i.index() ; ++ij )
    \n-
    886 decomposition_.addindex( i.index(), ij.index() );
    \n-
    887 decomposition_.addindex( i.index(), i.index() );
    \n-
    888 }
    \n-
    889 decomposition_.endindices();
    \n-
    890
    \n-
    891 // copy values of lower triangular matrix
    \n-
    892 auto i = A.begin();
    \n-
    893 for( auto row = decomposition_.begin(), rowend = decomposition_.end(); row != rowend; ++row, ++i )
    \n-
    894 {
    \n-
    895 auto ij = i->begin();
    \n-
    896 for( auto col = row->begin(), colend = row->end(); col != colend; ++col, ++ij )
    \n-
    897 *col = *ij;
    \n-
    898 }
    \n-
    899
    \n-
    900 // perform ILDL decomposition
    \n-
    901 bildl_decompose( decomposition_ );
    \n-
    902 }
    \n-
    \n-
    903
    \n-
    \n-
    905 void pre ([[maybe_unused]] X &x, [[maybe_unused]] Y &b) override
    \n-
    906 {}
    \n-
    \n-
    907
    \n-
    \n-
    909 void apply ( X &v, const Y &d ) override
    \n-
    910 {
    \n-
    911 bildl_backsolve( decomposition_, v, d, true );
    \n-
    912 v *= relax_;
    \n-
    913 }
    \n-
    \n-
    914
    \n-
    \n-
    916 void post ([[maybe_unused]] X &x) override
    \n-
    917 {}
    \n-
    \n-
    918
    \n-\n-
    921
    \n-
    922 private:
    \n-
    923 matrix_type decomposition_;
    \n-
    924 real_field_type relax_;
    \n-
    925 };
    \n-
    \n-
    926 DUNE_REGISTER_PRECONDITIONER("ildl", defaultPreconditionerCreator<Dune::SeqILDL>());
    \n-
    927
    \n-
    930} // end namespace
    \n-
    931
    \n-
    932
    \n-
    933#endif
    \n-
    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
    \n-\n-
    #define DUNE_REGISTER_PRECONDITIONER(name,...)
    Definition solverregistry.hh:16
    \n-\n-\n-
    Some handy generic functions for ISTL matrices.
    \n-\n-
    Incomplete LDL decomposition.
    \n-
    Define general, extensible interface for inverse operators.
    \n-
    The incomplete LU factorization kernels.
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n-
    void bsorb(const M &A, X &x, const Y &b, const K &w)
    SSOR step.
    Definition gsetc.hh:646
    \n-
    void dbjac(const M &A, X &x, const Y &b, const K &w)
    Jacobi step.
    Definition gsetc.hh:658
    \n-
    void bsorf(const M &A, X &x, const Y &b, const K &w)
    SOR step.
    Definition gsetc.hh:634
    \n+
    598 static void dbgs(const TMatrix&, TVector&, TVector&,
    \n+
    599 const TVector&, const K&) {}
    \n+
    \n+
    600
    \n+
    601 template <typename TVector, typename TMatrix, typename K>
    \n+
    \n+
    602 static void bsorf(const TMatrix&, TVector&, TVector&,
    \n+
    603 const TVector&, const K&) {}
    \n+
    \n+
    604
    \n+
    605 template <typename TVector, typename TMatrix, typename K>
    \n+
    \n+
    606 static void bsorb(const TMatrix&, TVector&, TVector&,
    \n+
    607 const TVector&, const K&) {}
    \n+
    \n+
    608
    \n+
    609 template <typename TVector, typename TMatrix, typename K>
    \n+
    \n+
    610 static void dbjac(const TMatrix&, TVector&, TVector&,
    \n+
    611 const TVector&, const K&) {}
    \n+
    \n+
    612 };
    \n+
    \n+
    613
    \n+
    614} // end namespace Dune
    \n+
    615
    \n+
    616namespace std
    \n+
    617{
    \n+
    622 template <size_t i, typename... Args>
    \n+
    \n+
    623 struct tuple_element<i,Dune::MultiTypeBlockMatrix<Args...> >
    \n+
    624 {
    \n+
    625 using type = typename std::tuple_element<i, std::tuple<Args...> >::type;
    \n+
    626 };
    \n+
    \n+
    627}
    \n+
    628#endif
    \n+\n+
    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
    \n+
    MultiTypeBlockMatrix< FirstRow, Args... > type
    Definition multitypeblockmatrix.hh:56
    \n+
    static void dbjac(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:568
    \n+
    MultiTypeBlockMatrix & operator+=(const MultiTypeBlockMatrix &b)
    Add the entries of another matrix to this one.
    Definition multitypeblockmatrix.hh:168
    \n+
    void mv(const X &x, Y &y) const
    y = A x
    Definition multitypeblockmatrix.hh:196
    \n+
    void mmtv(const X &x, Y &y) const
    y -= A^T x
    Definition multitypeblockmatrix.hh:276
    \n+
    void mmhv(const X &x, Y &y) const
    y -= A^H x
    Definition multitypeblockmatrix.hh:321
    \n+
    static void dbgs(const TMatrix &, TVector &, TVector &, const TVector &, const K &)
    Definition multitypeblockmatrix.hh:598
    \n+
    static void dbgs(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:484
    \n+
    static void bsorb(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:540
    \n+
    void usmhv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^H x
    Definition multitypeblockmatrix.hh:336
    \n+
    FirstRow::field_type field_type
    Definition multitypeblockmatrix.hh:61
    \n+
    void usmv(const AlphaType &alpha, const X &x, Y &y) const
    y += alpha A x
    Definition multitypeblockmatrix.hh:236
    \n+
    MultiTypeBlockMatrix & operator/=(const field_type &k)
    vector space division by scalar
    Definition multitypeblockmatrix.hh:152
    \n+
    typename std::tuple_element< i, std::tuple< Args... > >::type type
    Definition multitypeblockmatrix.hh:625
    \n+
    static void dbgs(const TMatrix &A, TVector &x, TVector &v, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:492
    \n+
    static void bsorf(const TMatrix &A, TVector &x, TVector &v, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:520
    \n+
    void umhv(const X &x, Y &y) const
    y += A^H x
    Definition multitypeblockmatrix.hh:306
    \n+
    FieldTraits< field_type >::real_type frobenius_norm() const
    frobenius norm: sqrt(sum over squared values of entries)
    Definition multitypeblockmatrix.hh:369
    \n+
    static constexpr size_type N()
    Return the number of matrix rows.
    Definition multitypeblockmatrix.hh:64
    \n+
    void usmtv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^T x
    Definition multitypeblockmatrix.hh:291
    \n+
    void operator=(const T &newval)
    Definition multitypeblockmatrix.hh:127
    \n+
    static void calc_rhs(const TMatrix &, TVector &, TVector &, Trhs &, const K &)
    Definition multitypeblockmatrix.hh:465
    \n+
    void umv(const X &x, Y &y) const
    y += A x
    Definition multitypeblockmatrix.hh:206
    \n+
    static void calc_rhs(const TMatrix &A, TVector &x, TVector &v, Trhs &b, const K &w)
    Definition multitypeblockmatrix.hh:455
    \n+
    static void bsorf(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:513
    \n+
    static constexpr size_type size()
    Return the number of matrix rows.
    Definition multitypeblockmatrix.hh:75
    \n+
    static void dbjac(const TMatrix &, TVector &, TVector &, const TVector &, const K &)
    Definition multitypeblockmatrix.hh:610
    \n+
    auto infinity_norm_real() const
    Bastardized version of the infinity-norm / row-sum norm.
    Definition multitypeblockmatrix.hh:396
    \n+
    auto frobenius_norm2() const
    square of frobenius norm, need for block recursion
    Definition multitypeblockmatrix.hh:352
    \n+
    std::size_t size_type
    Type used for sizes.
    Definition multitypeblockmatrix.hh:59
    \n+
    auto infinity_norm() const
    Bastardized version of the infinity-norm / row-sum norm.
    Definition multitypeblockmatrix.hh:375
    \n+
    static void bsorb(const TMatrix &, TVector &, TVector &, const TVector &, const K &)
    Definition multitypeblockmatrix.hh:606
    \n+
    MultiTypeBlockMatrix & operator-=(const MultiTypeBlockMatrix &b)
    Subtract the entries of another matrix from this one.
    Definition multitypeblockmatrix.hh:183
    \n+
    auto operator[](const std::integral_constant< size_type, index > indexVariable) -> decltype(std::get< index >(*this))
    Random-access operator.
    Definition multitypeblockmatrix.hh:104
    \n+
    static void dbjac(const TMatrix &A, TVector &x, TVector &v, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:575
    \n+
    static void bsorf(const TMatrix &, TVector &, TVector &, const TVector &, const K &)
    Definition multitypeblockmatrix.hh:602
    \n+
    void mtv(const X &x, Y &y) const
    y = A^T x
    Definition multitypeblockmatrix.hh:251
    \n+
    static constexpr size_type M()
    Return the number of matrix columns.
    Definition multitypeblockmatrix.hh:81
    \n+
    void mmv(const X &x, Y &y) const
    y -= A x
    Definition multitypeblockmatrix.hh:221
    \n+
    void umtv(const X &x, Y &y) const
    y += A^T x
    Definition multitypeblockmatrix.hh:261
    \n+
    static void bsorb(const TMatrix &A, TVector &x, TVector &v, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:547
    \n+
    MultiTypeBlockMatrix & operator*=(const field_type &k)
    vector space multiplication with scalar
    Definition multitypeblockmatrix.hh:141
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n-
    void bildl_decompose(Matrix &A)
    compute ILDL decomposition of a symmetric matrix A
    Definition ildl.hh:88
    \n-
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    void bildl_backsolve(const Matrix &A, X &v, const Y &d, bool isLowerTriangular=false)
    Definition ildl.hh:149
    \n-
    void convertToCRS(const M &A, CRS &lower, CRS &upper, InvVector &inv)
    convert ILU decomposition into CRS format for lower and upper triangular and inverse.
    Definition ilu.hh:307
    \n-
    void blockILUBacksolve(const M &A, X &v, const Y &d)
    LU backsolve with stored inverse.
    Definition ilu.hh:94
    \n-
    void blockILU0Decomposition(M &A)
    compute ILU decomposition of A. A is overwritten by its decomposition
    Definition ilu.hh:33
    \n-
    void blockILUDecomposition(const M &A, int n, M &ILU)
    Definition ilu.hh:167
    \n-
    compile-time parameter for block recursion depth
    Definition gsetc.hh:45
    \n-
    a simple compressed row storage matrix class
    Definition ilu.hh:259
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    size_type M() const
    Return the number of columns.
    Definition matrix.hh:700
    \n-
    size_type N() const
    Return the number of rows.
    Definition matrix.hh:695
    \n-
    static void check(const Matrix &mat)
    Check whether the a matrix has diagonal values on blocklevel recursion levels.
    Definition matrixutils.hh:53
    \n-
    A linear operator exporting itself in matrix form.
    Definition operators.hh:109
    \n-
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n-
    Turns an InverseOperator into a Preconditioner.
    Definition preconditioners.hh:75
    \n-
    O::range_type range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:80
    \n-
    O::domain_type domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:78
    \n-
    virtual void post(domain_type &)
    Clean up.
    Definition preconditioners.hh:111
    \n-
    range_type::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:82
    \n-
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:86
    \n-
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:84
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:115
    \n-
    virtual void pre(domain_type &, range_type &)
    Prepare the preconditioner.
    Definition preconditioners.hh:101
    \n-
    InverseOperator2Preconditioner(InverseOperator &inverse_operator)
    Construct the preconditioner from the solver.
    Definition preconditioners.hh:94
    \n-
    O InverseOperator
    type of the wrapped inverse operator
    Definition preconditioners.hh:88
    \n-
    virtual void apply(domain_type &v, const range_type &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition preconditioners.hh:104
    \n-
    Sequential SSOR preconditioner.
    Definition preconditioners.hh:141
    \n-
    virtual void post(X &x)
    Clean up.
    Definition preconditioners.hh:229
    \n-
    SeqSSOR(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:182
    \n-
    SeqSSOR(const M &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:199
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:233
    \n-
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:150
    \n-
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:152
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:146
    \n-
    M matrix_type
    The matrix type the preconditioner is for.
    Definition preconditioners.hh:144
    \n-
    virtual void apply(X &v, const Y &d)
    Apply the preconditioner.
    Definition preconditioners.hh:216
    \n-
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition preconditioners.hh:208
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:148
    \n-
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:154
    \n-
    SeqSSOR(const M &A, int n, real_field_type w)
    Constructor.
    Definition preconditioners.hh:163
    \n-
    Sequential SOR preconditioner.
    Definition preconditioners.hh:261
    \n-
    SeqSOR(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:302
    \n-
    M matrix_type
    The matrix type the preconditioner is for.
    Definition preconditioners.hh:264
    \n-
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:274
    \n-
    void apply(X &v, const Y &d)
    Apply the preconditioner in a special direction.
    Definition preconditioners.hh:350
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:266
    \n-
    virtual void post(X &x)
    Clean up.
    Definition preconditioners.hh:367
    \n-
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition preconditioners.hh:328
    \n-
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:272
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:371
    \n-
    virtual void apply(X &v, const Y &d)
    Apply the preconditioner.
    Definition preconditioners.hh:336
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:268
    \n-
    SeqSOR(const M &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:319
    \n-
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:270
    \n-
    SeqSOR(const M &A, int n, real_field_type w)
    Constructor.
    Definition preconditioners.hh:283
    \n-
    The sequential jacobian preconditioner.
    Definition preconditioners.hh:412
    \n-
    virtual void post(X &x)
    Clean up.
    Definition preconditioners.hh:499
    \n-
    SeqJac(const M &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:470
    \n-
    virtual void apply(X &v, const Y &d)
    Apply the preconditioner.
    Definition preconditioners.hh:487
    \n-
    M matrix_type
    The matrix type the preconditioner is for.
    Definition preconditioners.hh:415
    \n-
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:423
    \n-
    SeqJac(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:453
    \n-
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:421
    \n-
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition preconditioners.hh:479
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:417
    \n-
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:425
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:503
    \n-
    SeqJac(const M &A, int n, real_field_type w)
    Constructor.
    Definition preconditioners.hh:434
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:419
    \n-
    Sequential ILU preconditioner.
    Definition preconditioners.hh:532
    \n-
    virtual void post(X &x)
    Clean up.
    Definition preconditioners.hh:678
    \n-
    SeqILU(const M &A, int n, real_field_type w, const bool resort=false)
    Constructor.
    Definition preconditioners.hh:612
    \n-
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition preconditioners.hh:648
    \n-
    virtual void apply(X &v, const Y &d)
    Apply the preconditioner.
    Definition preconditioners.hh:656
    \n-
    ILU::CRS< block_type, typename M::allocator_type > CRS
    type of ILU storage
    Definition preconditioners.hh:552
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:541
    \n-
    CRS lower_
    The ILU(n) decomposition of the matrix. As storage a CRS structure is used.
    Definition preconditioners.hh:692
    \n-
    const bool wNotIdentity_
    true if w != 1.0
    Definition preconditioners.hh:699
    \n-
    SeqILU(const M &A, const ParameterTree &config)
    Constructor.
    Definition preconditioners.hh:598
    \n-
    std::remove_const< M >::type matrix_type
    The matrix type the preconditioner is for.
    Definition preconditioners.hh:535
    \n-
    matrix_type::block_type block_type
    block type of matrix
    Definition preconditioners.hh:537
    \n-
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:549
    \n-
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:544
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:682
    \n-
    SeqILU(const M &A, real_field_type w, const bool resort=false)
    Constructor.
    Definition preconditioners.hh:561
    \n-
    const real_field_type w_
    The relaxation factor to use.
    Definition preconditioners.hh:697
    \n-
    SeqILU(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:580
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:539
    \n-
    std::vector< block_type, typename matrix_type::allocator_type > inv_
    Definition preconditioners.hh:694
    \n-
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:547
    \n-
    std::unique_ptr< matrix_type > ILU_
    The ILU(n) decomposition of the matrix. As storage a BCRSMatrix is used.
    Definition preconditioners.hh:689
    \n-
    CRS upper_
    Definition preconditioners.hh:693
    \n-
    Richardson preconditioner.
    Definition preconditioners.hh:713
    \n-
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:720
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:778
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:718
    \n-
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition preconditioners.hh:755
    \n-
    Richardson(real_field_type w=1.0)
    Constructor.
    Definition preconditioners.hh:731
    \n-
    virtual void post(X &x)
    Clean up.
    Definition preconditioners.hh:774
    \n-
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:724
    \n-
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:722
    \n-
    Richardson(const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:746
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:716
    \n-
    virtual void apply(X &v, const Y &d)
    Apply the precondioner.
    Definition preconditioners.hh:763
    \n-
    sequential ILDL preconditioner
    Definition preconditioners.hh:807
    \n-
    SeqILDL(const matrix_type &A, const ParameterTree &config)
    Constructor.
    Definition preconditioners.hh:853
    \n-
    SeqILDL(const matrix_type &A, real_field_type relax=real_field_type(1))
    constructor
    Definition preconditioners.hh:865
    \n-
    X domain_type
    domain type of the preconditioner
    Definition preconditioners.hh:815
    \n-
    void post(X &x) override
    Clean up.
    Definition preconditioners.hh:916
    \n-
    Y range_type
    range type of the preconditioner
    Definition preconditioners.hh:817
    \n-
    std::remove_const_t< M > matrix_type
    type of matrix the preconditioner is for
    Definition preconditioners.hh:813
    \n-
    void apply(X &v, const Y &d) override
    Apply one step of the preconditioner to the system A(v)=d.
    Definition preconditioners.hh:909
    \n-
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:823
    \n-
    SeqILDL(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:837
    \n-
    void pre(X &x, Y &b) override
    Prepare the preconditioner.
    Definition preconditioners.hh:905
    \n-
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:821
    \n-
    X::field_type field_type
    field type of the preconditioner
    Definition preconditioners.hh:819
    \n-
    SolverCategory::Category category() const override
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:920
    \n-
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n-
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n-
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n+
    std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)
    Send BlockVector to an output stream.
    Definition bvector.hh:590
    \n+
    A Matrix class to support different block types.
    Definition multitypeblockmatrix.hh:46
    \n+
    static void bsorb(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:461
    \n+
    static void bsorf(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:418
    \n+
    static void dbjac(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:504
    \n+
    static void dbgs(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:378
    \n+
    solver for MultiTypeBlockVector & MultiTypeBlockMatrix types
    Definition multitypeblockmatrix.hh:477
    \n+
    part of solvers for MultiTypeBlockVector & MultiTypeBlockMatrix types
    Definition multitypeblockmatrix.hh:449
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1027 +1,756 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-preconditioners.hh\n+multitypeblockmatrix.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_PRECONDITIONERS_HH\n-6#define DUNE_ISTL_PRECONDITIONERS_HH\n+5#ifndef DUNE_ISTL_MULTITYPEBLOCKMATRIX_HH\n+6#define DUNE_ISTL_MULTITYPEBLOCKMATRIX_HH\n 7\n 8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14\n-15#include \n-16#include \n-17\n-18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh>\n-19#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\"\n-20#include \"_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\"\n-21#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n-22#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-23#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n-24#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n-25#include \"_\bi_\bl_\bd_\bl_\b._\bh_\bh\"\n-26#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n+9#include \n+10#include \n+11\n+12#include \n+13\n+14#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+15\n+16// forward declaration\n+17namespace _\bD_\bu_\bn_\be\n+18{\n+19 template\n+20 class MultiTypeBlockMatrix;\n+21\n+22 template\n+23 class MultiTypeBlockMatrix_Solver;\n+24}\n+25\n+26#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n 27\n-28\n-29namespace _\bD_\bu_\bn_\be {\n-72 template\n-_\b7_\b3 class _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br :\n-74 public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-75 {\n-76 public:\n-_\b7_\b8 typedef typename O::domain_type _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b8_\b0 typedef typename O::range_type _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b8_\b2 typedef typename range_type::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b8_\b4 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b8_\b6 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b8_\b8 typedef O _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n-89\n-_\b9_\b4 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br(_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br& inverse_operator)\n-95 : inverse_operator_(inverse_operator)\n-96 {\n-97 if(c != -1 && _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(inverse_operator_) != c)\n-98 DUNE_THROW(InvalidStateException, \"User-supplied solver category does not\n-match that of the given inverse operator\");\n-99 }\n-100\n-_\b1_\b0_\b1 virtual void _\bp_\br_\be(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be&,_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be&)\n-102 {}\n-103\n-_\b1_\b0_\b4 virtual void _\ba_\bp_\bp_\bl_\by(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& v, const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& d)\n-105 {\n-106 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n-107 _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be copy(d);\n-108 inverse_operator_.apply(v, copy, res);\n-109 }\n-110\n-_\b1_\b1_\b1 virtual void _\bp_\bo_\bs_\bt(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be&)\n-112 {}\n-113\n-_\b1_\b1_\b5 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-116 {\n-117 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(inverse_operator_);\n-118 }\n-119\n-120 private:\n-121 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br& inverse_operator_;\n-122 };\n-123\n-124 //=====================================================================\n-125 // Implementation of this interface for sequential ISTL-preconditioners\n-126 //=====================================================================\n-127\n-128\n-140 template\n-_\b1_\b4_\b1 class _\bS_\be_\bq_\bS_\bS_\bO_\bR : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n-142 public:\n-_\b1_\b4_\b4 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b1_\b4_\b6 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b1_\b4_\b8 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b1_\b5_\b0 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b1_\b5_\b2 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b1_\b5_\b4 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-155\n-_\b1_\b6_\b3 _\bS_\be_\bq_\bS_\bS_\bO_\bR (const M& A, int n, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w)\n-164 : _A_(A), _n(n), _w(w)\n-165 {\n-166 _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\bM_\b,_\bl_\b>_\b:_\b:_\bc_\bh_\be_\bc_\bk(_A_);\n-167 }\n-168\n-_\b1_\b8_\b2 _\bS_\be_\bq_\bS_\bS_\bO_\bR (const std::shared_ptr>& A,\n-const ParameterTree& configuration)\n-183 : _\bS_\be_\bq_\bS_\bS_\bO_\bR(A->getmat(), configuration)\n-184 {}\n-185\n-_\b1_\b9_\b9 _\bS_\be_\bq_\bS_\bS_\bO_\bR (const M& A, const ParameterTree& configuration)\n-200 : _\bS_\be_\bq_\bS_\bS_\bO_\bR(A, configuration._\bg_\be_\bt(\"iterations\",1),\n-configuration._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\",1.0))\n-201 {}\n+28namespace _\bD_\bu_\bn_\be {\n+29\n+43 template\n+_\b4_\b4 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n+45 : public std::tuple\n+46 {\n+47 using ParentType = std::tuple;\n+48 public:\n+49\n+51 using ParentType::ParentType;\n+52\n+_\b5_\b6 typedef _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx _\bt_\by_\bp_\be;\n+57\n+_\b5_\b9 using _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be = std::size_t;\n+60\n+_\b6_\b1 typedef typename FirstRow::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+62\n+_\b6_\b4 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN()\n+65 {\n+66 return 1+sizeof...(Args);\n+67 }\n+68\n+74 [[deprecated(\"Use method 'N' instead\")]]\n+_\b7_\b5 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be()\n+76 {\n+77 return 1+sizeof...(Args);\n+78 }\n+79\n+_\b8_\b1 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bM()\n+82 {\n+83 return FirstRow::size();\n+84 }\n+85\n+102 template< size_type index >\n+103 auto\n+_\b1_\b0_\b4 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b ([[maybe_unused]] const std::integral_constant< size_type, index\n+> indexVariable)\n+105 -> decltype(std::get(*this))\n+106 {\n+107 return std::get(*this);\n+108 }\n+109\n+115 template< size_type index >\n+116 auto\n+_\b1_\b1_\b7 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b ([[maybe_unused]] const std::integral_constant< size_type, index\n+> indexVariable) const\n+118 -> decltype(std::get(*this))\n+119 {\n+120 return std::get(*this);\n+121 }\n+122\n+126 template\n+_\b1_\b2_\b7 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const T& newval) {\n+128 using namespace Dune::Hybrid;\n+129 auto _\bs_\bi_\bz_\be = index_constant<1+sizeof...(Args)>();\n+130 // Since Dune::Hybrid::size(MultiTypeBlockMatrix) is not implemented,\n+131 // we cannot use a plain forEach(*this, ...). This could be achieved,\n+132 // e.g., by implementing a static size() method.\n+133 forEach(integralRange(_\bs_\bi_\bz_\be), [&](auto&& i) {\n+134 (*this)[i] = newval;\n+135 });\n+136 }\n+137\n+138 //===== vector space arithmetic\n+139\n+_\b1_\b4_\b1 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n+142 {\n+143 auto _\bs_\bi_\bz_\be = index_constant();\n+144 Hybrid::forEach(Hybrid::integralRange(_\bs_\bi_\bz_\be), [&](auto&& i) {\n+145 (*this)[i] *= k;\n+146 });\n+147\n+148 return *this;\n+149 }\n+150\n+_\b1_\b5_\b2 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n+153 {\n+154 auto _\bs_\bi_\bz_\be = index_constant();\n+155 Hybrid::forEach(Hybrid::integralRange(_\bs_\bi_\bz_\be), [&](auto&& i) {\n+156 (*this)[i] /= k;\n+157 });\n+158\n+159 return *this;\n+160 }\n+161\n+162\n+_\b1_\b6_\b8 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& b)\n+169 {\n+170 auto _\bs_\bi_\bz_\be = index_constant();\n+171 Hybrid::forEach(Hybrid::integralRange(_\bs_\bi_\bz_\be), [&](auto&& i) {\n+172 (*this)[i] += b[i];\n+173 });\n+174\n+175 return *this;\n+176 }\n+177\n+_\b1_\b8_\b3 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& b)\n+184 {\n+185 auto _\bs_\bi_\bz_\be = index_constant();\n+186 Hybrid::forEach(Hybrid::integralRange(_\bs_\bi_\bz_\be), [&](auto&& i) {\n+187 (*this)[i] -= b[i];\n+188 });\n+189\n+190 return *this;\n+191 }\n+192\n+195 template\n+_\b1_\b9_\b6 void _\bm_\bv (const X& x, Y& y) const {\n+197 static_assert(X::size() == _\bM(), \"length of x does not match row length\");\n+198 static_assert(Y::size() == _\bN(), \"length of y does not match row count\");\n+199 y = 0; //reset y (for mv uses umv)\n+200 _\bu_\bm_\bv(x,y);\n+201 }\n 202\n-_\b2_\b0_\b8 virtual void _\bp_\br_\be ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)\n-209 {}\n-210\n-_\b2_\b1_\b6 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n-217 {\n-218 for (int i=0; i<_n; i++) {\n-219 _\bb_\bs_\bo_\br_\bf(_A_,v,d,_w,_\bB_\bL_\b<_\bl_\b>());\n-220 _\bb_\bs_\bo_\br_\bb(_A_,v,d,_w,_\bB_\bL_\b<_\bl_\b>());\n-221 }\n-222 }\n-223\n-_\b2_\b2_\b9 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x)\n-230 {}\n-231\n-_\b2_\b3_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-234 {\n-235 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-236 }\n-237\n-238 private:\n-240 const M& _A_;\n-242 int _n;\n-244 _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _w;\n-245 };\n-_\b2_\b4_\b6 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"ssor\",\n-defaultPreconditionerBlockLevelCreator());\n+205 template\n+_\b2_\b0_\b6 void _\bu_\bm_\bv (const X& x, Y& y) const {\n+207 static_assert(X::size() == _\bM(), \"length of x does not match row length\");\n+208 static_assert(Y::size() == _\bN(), \"length of y does not match row count\");\n+209 using namespace Dune::Hybrid;\n+210 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n+211 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+212 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n+213 (*this)[i][j].umv(x[j], y[i]);\n+214 });\n+215 });\n+216 }\n+217\n+220 template\n+_\b2_\b2_\b1 void _\bm_\bm_\bv (const X& x, Y& y) const {\n+222 static_assert(X::size() == _\bM(), \"length of x does not match row length\");\n+223 static_assert(Y::size() == _\bN(), \"length of y does not match row count\");\n+224 using namespace Dune::Hybrid;\n+225 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n+226 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+227 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n+228 (*this)[i][j].mmv(x[j], y[i]);\n+229 });\n+230 });\n+231 }\n+232\n+235 template\n+_\b2_\b3_\b6 void _\bu_\bs_\bm_\bv (const AlphaType& alpha, const X& x, Y& y) const {\n+237 static_assert(X::size() == _\bM(), \"length of x does not match row length\");\n+238 static_assert(Y::size() == _\bN(), \"length of y does not match row count\");\n+239 using namespace Dune::Hybrid;\n+240 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n+241 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+242 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n+243 (*this)[i][j].usmv(alpha, x[j], y[i]);\n+244 });\n+245 });\n+246 }\n 247\n-248\n-260 template\n-_\b2_\b6_\b1 class _\bS_\be_\bq_\bS_\bO_\bR : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n-262 public:\n-_\b2_\b6_\b4 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b2_\b6_\b6 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b2_\b6_\b8 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b2_\b7_\b0 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b2_\b7_\b2 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b2_\b7_\b4 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-275\n-_\b2_\b8_\b3 _\bS_\be_\bq_\bS_\bO_\bR (const M& A, int n, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w)\n-284 : _A_(A), _n(n), _w(w)\n-285 {\n-286 _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\bM_\b,_\bl_\b>_\b:_\b:_\bc_\bh_\be_\bc_\bk(_A_);\n-287 }\n-288\n-_\b3_\b0_\b2 _\bS_\be_\bq_\bS_\bO_\bR (const std::shared_ptr>& A,\n-const ParameterTree& configuration)\n-303 : _\bS_\be_\bq_\bS_\bO_\bR(A->getmat(), configuration)\n-304 {}\n-305\n-_\b3_\b1_\b9 _\bS_\be_\bq_\bS_\bO_\bR (const M& A, const ParameterTree& configuration)\n-320 : _\bS_\be_\bq_\bS_\bO_\bR(A, configuration._\bg_\be_\bt(\"iterations\",1),\n-configuration._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\",1.0))\n-321 {}\n-322\n-_\b3_\b2_\b8 virtual void _\bp_\br_\be ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)\n-329 {}\n-330\n-_\b3_\b3_\b6 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n-337 {\n-338 this->template apply(v,d);\n-339 }\n-340\n-349 template\n-_\b3_\b5_\b0 void _\ba_\bp_\bp_\bl_\by(X& v, const Y& d)\n-351 {\n-352 if(forward)\n-353 for (int i=0; i<_n; i++) {\n-354 _\bb_\bs_\bo_\br_\bf(_A_,v,d,_w,_\bB_\bL_\b<_\bl_\b>());\n-355 }\n-356 else\n-357 for (int i=0; i<_n; i++) {\n-358 _\bb_\bs_\bo_\br_\bb(_A_,v,d,_w,_\bB_\bL_\b<_\bl_\b>());\n-359 }\n-360 }\n-361\n-_\b3_\b6_\b7 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x)\n-368 {}\n-369\n-_\b3_\b7_\b1 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-372 {\n-373 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-374 }\n-375\n-376 private:\n-378 const M& _A_;\n-380 int _n;\n-382 _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _w;\n-383 };\n-_\b3_\b8_\b4 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"sor\",\n-defaultPreconditionerBlockLevelCreator());\n-385\n-386\n-397 template\n-_\b3_\b9_\b8 using _\bS_\be_\bq_\bG_\bS = _\bS_\be_\bq_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b>;\n-_\b3_\b9_\b9 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"gs\",\n-defaultPreconditionerBlockLevelCreator());\n-400\n-411 template\n-_\b4_\b1_\b2 class _\bS_\be_\bq_\bJ_\ba_\bc : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b> {\n-413 public:\n-_\b4_\b1_\b5 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b4_\b1_\b7 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b4_\b1_\b9 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b4_\b2_\b1 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b4_\b2_\b3 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b4_\b2_\b5 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-426\n-_\b4_\b3_\b4 _\bS_\be_\bq_\bJ_\ba_\bc (const M& A, int n, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w)\n-435 : _A_(A), _n(n), _w(w)\n-436 {\n-437 _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\bM_\b,_\bl_\b>_\b:_\b:_\bc_\bh_\be_\bc_\bk(_A_);\n-438 }\n-439\n-_\b4_\b5_\b3 _\bS_\be_\bq_\bJ_\ba_\bc (const std::shared_ptr>& A,\n-const ParameterTree& configuration)\n-454 : _\bS_\be_\bq_\bJ_\ba_\bc(A->getmat(), configuration)\n-455 {}\n-456\n-_\b4_\b7_\b0 _\bS_\be_\bq_\bJ_\ba_\bc (const M& A, const ParameterTree& configuration)\n-471 : _\bS_\be_\bq_\bJ_\ba_\bc(A, configuration._\bg_\be_\bt(\"iterations\",1),\n-configuration._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\",1.0))\n-472 {}\n-473\n-_\b4_\b7_\b9 virtual void _\bp_\br_\be ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)\n-480 {}\n-481\n-_\b4_\b8_\b7 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n-488 {\n-489 for (int i=0; i<_n; i++) {\n-490 _\bd_\bb_\bj_\ba_\bc(_A_,v,d,_w,_\bB_\bL_\b<_\bl_\b>());\n-491 }\n-492 }\n-493\n-_\b4_\b9_\b9 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x)\n-500 {}\n-501\n-_\b5_\b0_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-504 {\n-505 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-506 }\n+250 template\n+_\b2_\b5_\b1 void _\bm_\bt_\bv (const X& x, Y& y) const {\n+252 static_assert(X::size() == _\bN(), \"length of x does not match number of\n+rows\");\n+253 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n+columns\");\n+254 y = 0;\n+255 _\bu_\bm_\bt_\bv(x,y);\n+256 }\n+257\n+260 template\n+_\b2_\b6_\b1 void _\bu_\bm_\bt_\bv (const X& x, Y& y) const {\n+262 static_assert(X::size() == _\bN(), \"length of x does not match number of\n+rows\");\n+263 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n+columns\");\n+264 using namespace Dune::Hybrid;\n+265 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n+266 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+267 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n+268 (*this)[j][i].umtv(x[j], y[i]);\n+269 });\n+270 });\n+271 }\n+272\n+275 template\n+_\b2_\b7_\b6 void _\bm_\bm_\bt_\bv (const X& x, Y& y) const {\n+277 static_assert(X::size() == _\bN(), \"length of x does not match number of\n+rows\");\n+278 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n+columns\");\n+279 using namespace Dune::Hybrid;\n+280 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n+281 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+282 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n+283 (*this)[j][i].mmtv(x[j], y[i]);\n+284 });\n+285 });\n+286 }\n+287\n+290 template\n+_\b2_\b9_\b1 void _\bu_\bs_\bm_\bt_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const {\n+292 static_assert(X::size() == _\bN(), \"length of x does not match number of\n+rows\");\n+293 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n+columns\");\n+294 using namespace Dune::Hybrid;\n+295 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n+296 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+297 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n+298 (*this)[j][i].usmtv(alpha, x[j], y[i]);\n+299 });\n+300 });\n+301 }\n+302\n+305 template\n+_\b3_\b0_\b6 void _\bu_\bm_\bh_\bv (const X& x, Y& y) const {\n+307 static_assert(X::size() == _\bN(), \"length of x does not match number of\n+rows\");\n+308 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n+columns\");\n+309 using namespace Dune::Hybrid;\n+310 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n+311 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+312 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n+313 (*this)[j][i].umhv(x[j], y[i]);\n+314 });\n+315 });\n+316 }\n+317\n+320 template\n+_\b3_\b2_\b1 void _\bm_\bm_\bh_\bv (const X& x, Y& y) const {\n+322 static_assert(X::size() == _\bN(), \"length of x does not match number of\n+rows\");\n+323 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n+columns\");\n+324 using namespace Dune::Hybrid;\n+325 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n+326 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+327 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n+328 (*this)[j][i].mmhv(x[j], y[i]);\n+329 });\n+330 });\n+331 }\n+332\n+335 template\n+_\b3_\b3_\b6 void _\bu_\bs_\bm_\bh_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const {\n+337 static_assert(X::size() == _\bN(), \"length of x does not match number of\n+rows\");\n+338 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n+columns\");\n+339 using namespace Dune::Hybrid;\n+340 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n+341 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+342 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n+343 (*this)[j][i].usmhv(alpha, x[j], y[i]);\n+344 });\n+345 });\n+346 }\n+347\n+348\n+349 //===== norms\n+350\n+_\b3_\b5_\b2 auto _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2 () const\n+353 {\n+354 using field_type_00 = typename std::decay_t_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+355 typename FieldTraits::real_type sum=0;\n+356\n+357 auto rows = index_constant();\n+358 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {\n+359 auto cols = index_constant::M()>();\n+360 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {\n+361 sum += (*this)[i][j].frobenius_norm2();\n+362 });\n+363 });\n+364\n+365 return sum;\n+366 }\n+367\n+_\b3_\b6_\b9 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm () const\n+370 {\n+371 return sqrt(_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2());\n+372 }\n+373\n+_\b3_\b7_\b5 auto _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm () const\n+376 {\n+377 using field_type_00 = typename std::decay_t_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+378 using std::max;\n+379 typename FieldTraits::real_type norm=0;\n+380\n+381 auto rows = index_constant();\n+382 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {\n+383\n+384 typename FieldTraits::real_type sum=0;\n+385 auto cols = index_constant::M()>();\n+386 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {\n+387 sum += (*this)[i][j].infinity_norm();\n+388 });\n+389 norm = max(sum, norm);\n+390 });\n+391\n+392 return norm;\n+393 }\n+394\n+_\b3_\b9_\b6 auto _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl () const\n+397 {\n+398 using field_type_00 = typename std::decay_t_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+399 using std::max;\n+400 typename FieldTraits::real_type norm=0;\n+401\n+402 auto rows = index_constant();\n+403 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {\n+404\n+405 typename FieldTraits::real_type sum=0;\n+406 auto cols = index_constant::M()>();\n+407 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {\n+408 sum += (*this)[i][j].infinity_norm_real();\n+409 });\n+410 norm = max(sum, norm);\n+411 });\n+412\n+413 return norm;\n+414 }\n+415\n+416 };\n+417\n+423 template\n+_\b4_\b2_\b4 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<_\b (std::ostream& s, const\n+_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\bA_\br_\bg_\bs_\b._\b._\b._\b>& m) {\n+425 auto N = index_constant::N()>();\n+426 auto M = index_constant::M()>();\n+427 using namespace Dune::Hybrid;\n+428 forEach(integralRange(N), [&](auto&& i) {\n+429 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+430 forEach(integralRange(M), [&](auto&& j) {\n+431 s << \"\\t(\" << i << \", \" << j << \"): \\n\" << m[i][j];\n+432 });\n+433 });\n+434 s << std::endl;\n+435 return s;\n+436 }\n+437\n+438 //make algmeta_itsteps known\n+439 template\n+440 struct algmeta_itsteps;\n+441\n+448 template //\n+MultiTypeBlockMatrix_Solver_Col: iterating over one row\n+_\b4_\b4_\b9 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl { //calculating b- A[i][j]*x[j]\n+450 public:\n+454 template \n+_\b4_\b5_\b5 static void _\bc_\ba_\bl_\bc_\b__\br_\bh_\bs(const TMatrix& A, TVector& x, TVector& v, Trhs& b,\n+const K& w) {\n+456 std::get( std::get(A) ).mmv( std::get(x), b );\n+457 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl_\b<_\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\bc_\bc_\bo_\bl_\b+_\b1_\b,_\b _\br_\be_\bm_\ba_\bi_\bn_\b__\bc_\bo_\bl_\b-_\b1_\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b__\br_\bh_\bs\n+(A,x,v,b,w); //next column element\n+458 }\n+459\n+460 };\n+461 template //MultiTypeBlockMatrix_Solver_Col\n+recursion end\n+_\b4_\b6_\b2 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl {\n+463 public:\n+464 template \n+_\b4_\b6_\b5 static void _\bc_\ba_\bl_\bc_\b__\br_\bh_\bs(const TMatrix&, TVector&, TVector&, Trhs&, const K&)\n+{}\n+466 };\n+467\n+468\n+469\n+476 template\n+_\b4_\b7_\b7 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br {\n+478 public:\n+479\n+483 template \n+_\b4_\b8_\b4 static void _\bd_\bb_\bg_\bs(const TMatrix& A, TVector& x, const TVector& b, const K&\n+w) {\n+485 TVector xold(x);\n+486 xold=x; //store old x values\n+487 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b>_\b:_\b:_\bd_\bb_\bg_\bs(A,x,x,b,w);\n+488 x *= w;\n+489 x.axpy(1-w,xold); //improve x\n+490 }\n+491 template \n+_\b4_\b9_\b2 static void _\bd_\bb_\bg_\bs(const TMatrix& A, TVector& x, TVector& v, const TVector&\n+b, const K& w) {\n+493 auto rhs = std::get (b);\n+494\n+495 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl::calc_rhs\n+(A,x,v,rhs,w); // calculate right side of equation\n+496 //solve on blocklevel I-1\n+497 using M =\n+498 typename std::remove_cv<\n+499 typename std::remove_reference<\n+500 decltype(std::get( std::get(A)))\n+501 >::type\n+502 >::type;\n+503 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bg_\bs(std::get( std::get(A)), std::\n+get(x),rhs,w);\n+504 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b+_\b1_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b-_\b1_\b>_\b:_\b:_\bd_\bb_\bg_\bs(A,x,v,b,w); //next\n+row\n+505 }\n+506\n 507\n-508 private:\n-510 const M& _A_;\n-512 int _n;\n-514 real_field_type _w;\n-515 };\n-_\b5_\b1_\b6 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"jac\",\n-defaultPreconditionerBlockLevelCreator());\n+508\n+512 template \n+_\b5_\b1_\b3 static void _\bb_\bs_\bo_\br_\bf(const TMatrix& A, TVector& x, const TVector& b, const K&\n+w) {\n+514 TVector v;\n+515 v=x; //use latest x values in right side calculation\n+516 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(A,x,v,b,w);\n 517\n-518\n-519\n-531 template\n-_\b5_\b3_\b2 class _\bS_\be_\bq_\bI_\bL_\bU : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b> {\n-533 public:\n-_\b5_\b3_\b5 typedef typename std::remove_const::type _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b5_\b3_\b7 typedef typename matrix_type :: block_type _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-_\b5_\b3_\b9 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b5_\b4_\b1 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-542\n-_\b5_\b4_\b4 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-545\n-_\b5_\b4_\b7 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b5_\b4_\b9 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-550\n-_\b5_\b5_\b2 typedef typename _\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b _\b,_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be_\b> _\bC_\bR_\bS;\n-553\n-_\b5_\b6_\b1 _\bS_\be_\bq_\bI_\bL_\bU (const M& A, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w, const bool resort = false )\n-562 : _\bS_\be_\bq_\bI_\bL_\bU( A, 0, w, resort ) // construct ILU(0)\n-563 {\n-564 }\n-565\n-_\b5_\b8_\b0 _\bS_\be_\bq_\bI_\bL_\bU (const std::shared_ptr>& A,\n-const ParameterTree& configuration)\n-581 : _\bS_\be_\bq_\bI_\bL_\bU(A->getmat(), configuration)\n-582 {}\n-583\n-_\b5_\b9_\b8 _\bS_\be_\bq_\bI_\bL_\bU(const M& A, const ParameterTree& config)\n-599 : _\bS_\be_\bq_\bI_\bL_\bU(A, config._\bg_\be_\bt(\"n\", 0),\n-600 config._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\", 1.0),\n-601 config._\bg_\be_\bt(\"resort\", false))\n-602 {}\n-603\n-_\b6_\b1_\b2 _\bS_\be_\bq_\bI_\bL_\bU (const M& A, int n, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w, const bool resort = false )\n-613 : ILU_(),\n-614 lower_(),\n-615 upper_(),\n-616 inv_(),\n-617 w_(w),\n-618 wNotIdentity_([w]{using std::abs; return abs(w - _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1)) > 1e-\n-15;}() )\n-619 {\n-620 if( n == 0 )\n-621 {\n-622 // copy A\n-623 ILU_.reset( new matrix_type( A ) );\n-624 // create ILU(0) decomposition\n-625 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn( *ILU_ );\n-626 }\n-627 else\n-628 {\n-629 // create matrix in build mode\n-630 ILU_.reset( new matrix_type( A._\bN(), A._\bM(), matrix_type::row_wise) );\n-631 // create ILU(n) decomposition\n-632 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn( A, n, *ILU_ );\n-633 }\n-634\n-635 if( resort )\n-636 {\n-637 // store ILU in simple CRS format\n-638 _\bI_\bL_\bU_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bt_\bT_\bo_\bC_\bR_\bS( *ILU_, lower_, upper_, inv_ );\n-639 ILU_.reset();\n-640 }\n-641 }\n-642\n-_\b6_\b4_\b8 virtual void _\bp_\br_\be ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)\n-649 {}\n-650\n-_\b6_\b5_\b6 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n-657 {\n-658 if( ILU_ )\n-659 {\n-660 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be( *ILU_, v, d);\n-661 }\n-662 else\n-663 {\n-664 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be(lower_, upper_, inv_, v, d);\n-665 }\n-666\n-667 if( wNotIdentity_ )\n-668 {\n-669 v *= w_;\n-670 }\n-671 }\n-672\n-_\b6_\b7_\b8 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x)\n-679 {}\n-680\n-_\b6_\b8_\b2 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-683 {\n-684 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-685 }\n-686\n-687 protected:\n-_\b6_\b8_\b9 std::unique_ptr< matrix_type > _\bI_\bL_\bU_\b_;\n-690\n-_\b6_\b9_\b2 _\bC_\bR_\bS _\bl_\bo_\bw_\be_\br_\b_;\n-_\b6_\b9_\b3 _\bC_\bR_\bS _\bu_\bp_\bp_\be_\br_\b_;\n-_\b6_\b9_\b4 std::vector< block_type, typename matrix_type::allocator_type > _\bi_\bn_\bv_\b_;\n-695\n-_\b6_\b9_\b7 const _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bw_\b_;\n-_\b6_\b9_\b9 const bool _\bw_\bN_\bo_\bt_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\b_;\n-700 };\n-_\b7_\b0_\b1 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"ilu\",\n-defaultPreconditionerBlockLevelCreator());\n-702\n-703\n-712 template\n-_\b7_\b1_\b3 class _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n-714 public:\n-_\b7_\b1_\b6 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b7_\b1_\b8 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b7_\b2_\b0 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b7_\b2_\b2 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b7_\b2_\b4 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-725\n-_\b7_\b3_\b1 _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn (_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w=1.0) :\n-732 _w(w)\n-733 {}\n-734\n-_\b7_\b4_\b6 _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn (const ParameterTree& configuration)\n-747 : _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn(configuration._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\", 1.0))\n-748 {}\n-749\n-_\b7_\b5_\b5 virtual void _\bp_\br_\be ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)\n-756 {}\n-757\n-_\b7_\b6_\b3 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n-764 {\n-765 v = d;\n-766 v *= _w;\n-767 }\n-768\n-_\b7_\b7_\b4 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x)\n-775 {}\n-776\n-_\b7_\b7_\b8 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-779 {\n-780 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-781 }\n-782\n-783 private:\n-785 _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _w;\n-786 };\n-_\b7_\b8_\b7 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"richardson\", [](auto tl, const auto& /* mat\n-*/, const ParameterTree& config){\n-788 using D = typename Dune::TypeListElement<1, decltype(tl)>::type;\n-789 using R = typename Dune::TypeListElement<2, decltype(tl)>::type;\n-790 return std::make_shared>(config);\n-791 });\n-792\n-793\n-804 template< class M, class X, class Y >\n-_\b8_\b0_\b5 class _\bS_\be_\bq_\bI_\bL_\bD_\bL\n-806 : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br< X, Y >\n-807 {\n-808 typedef _\bS_\be_\bq_\bI_\bL_\bD_\bL_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b> _\bT_\bh_\bi_\bs;\n-809 typedef _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b> _\bB_\ba_\bs_\be;\n-810\n-811 public:\n-_\b8_\b1_\b3 typedef std::remove_const_t< M > _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b8_\b1_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b8_\b1_\b7 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b8_\b1_\b9 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b8_\b2_\b1 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b8_\b2_\b3 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-824\n-_\b8_\b3_\b7 _\bS_\be_\bq_\bI_\bL_\bD_\bL (const std::shared_ptr>& A,\n-const ParameterTree& configuration)\n-838 : _\bS_\be_\bq_\bI_\bL_\bD_\bL(A->getmat(), configuration)\n-839 {}\n-840\n-_\b8_\b5_\b3 _\bS_\be_\bq_\bI_\bL_\bD_\bL(const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& A, const ParameterTree& config)\n-854 : _\bS_\be_\bq_\bI_\bL_\bD_\bL(A, config._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\", 1.0))\n-855 {}\n-856\n-_\b8_\b6_\b5 explicit _\bS_\be_\bq_\bI_\bL_\bD_\bL ( const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be &A, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax =\n-_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be( 1 ) )\n-866 : decomposition_( A.N(), A.M(), _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be::random ),\n-867 relax_( relax )\n-868 {\n-869 // setup row sizes for lower triangular matrix\n-870 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )\n-871 {\n-872 const auto &A_i = *i;\n-873 const auto ij = A_i.find( i.index() );\n-874 if( ij != A_i.end() )\n-875 decomposition_.setrowsize( i.index(), ij.offset()+1 );\n-876 else\n-877 DUNE_THROW( _\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"diagonal entry missing\" );\n-878 }\n-879 decomposition_.endrowsizes();\n-880\n-881 // setup row indices for lower triangular matrix\n-882 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )\n-883 {\n-884 const auto &A_i = *i;\n-885 for( auto ij = A_i.begin(); ij.index() < i.index() ; ++ij )\n-886 decomposition_.addindex( i.index(), ij.index() );\n-887 decomposition_.addindex( i.index(), i.index() );\n-888 }\n-889 decomposition_.endindices();\n-890\n-891 // copy values of lower triangular matrix\n-892 auto i = A.begin();\n-893 for( auto row = decomposition_.begin(), rowend = decomposition_.end(); row\n-!= rowend; ++row, ++i )\n-894 {\n-895 auto ij = i->begin();\n-896 for( auto _\bc_\bo_\bl = row->begin(), colend = row->end(); _\bc_\bo_\bl != colend; ++_\bc_\bo_\bl,\n-++ij )\n-897 *_\bc_\bo_\bl = *ij;\n-898 }\n-899\n-900 // perform ILDL decomposition\n-901 _\bb_\bi_\bl_\bd_\bl_\b__\bd_\be_\bc_\bo_\bm_\bp_\bo_\bs_\be( decomposition_ );\n-902 }\n-903\n-_\b9_\b0_\b5 void _\bp_\br_\be ([[maybe_unused]] X &x, [[maybe_unused]] Y &b) override\n-906 {}\n-907\n-_\b9_\b0_\b9 void _\ba_\bp_\bp_\bl_\by ( X &v, const Y &d ) override\n-910 {\n-911 _\bb_\bi_\bl_\bd_\bl_\b__\bb_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be( decomposition_, v, d, true );\n-912 v *= relax_;\n-913 }\n-914\n-_\b9_\b1_\b6 void _\bp_\bo_\bs_\bt ([[maybe_unused]] X &x) override\n-917 {}\n-918\n-_\b9_\b2_\b0 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by () const override { return\n-_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl; }\n-921\n-922 private:\n-923 _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be decomposition_;\n-924 _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax_;\n-925 };\n-_\b9_\b2_\b6 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"ildl\", defaultPreconditionerCreator());\n-927\n-930} // end namespace\n-931\n-932\n-933#endif\n+518 }\n+519 template //recursion over\n+all matrix rows (A)\n+_\b5_\b2_\b0 static void _\bb_\bs_\bo_\br_\bf(const TMatrix& A, TVector& x, TVector& v, const TVector&\n+b, const K& w) {\n+521 auto rhs = std::get (b);\n+522\n+523 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl::calc_rhs\n+(A,x,v,rhs,w); // calculate right side of equation\n+524 //solve on blocklevel I-1\n+525 using M =\n+526 typename std::remove_cv<\n+527 typename std::remove_reference<\n+528 decltype(std::get( std::get(A)))\n+529 >::type\n+530 >::type;\n+531 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bM_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(std::get( std::get(A)), std::\n+get(v),rhs,w);\n+532 std::get(x).axpy(w,std::get(v));\n+533 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b+_\b1_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b-_\b1_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(A,x,v,b,w); //\n+next row\n+534 }\n+535\n+539 template \n+_\b5_\b4_\b0 static void _\bb_\bs_\bo_\br_\bb(const TMatrix& A, TVector& x, const TVector& b, const K&\n+w) {\n+541 TVector v;\n+542 v=x; //use latest x values in right side calculation\n+543 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(A,x,v,b,w);\n+544\n+545 }\n+546 template //recursion over\n+all matrix rows (A)\n+_\b5_\b4_\b7 static void _\bb_\bs_\bo_\br_\bb(const TMatrix& A, TVector& x, TVector& v, const TVector&\n+b, const K& w) {\n+548 auto rhs = std::get (b);\n+549\n+550 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl::calc_rhs\n+(A,x,v,rhs,w); // calculate right side of equation\n+551 //solve on blocklevel I-1\n+552 using M =\n+553 typename std::remove_cv<\n+554 typename std::remove_reference<\n+555 decltype(std::get( std::get(A)))\n+556 >::type\n+557 >::type;\n+558 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bM_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(std::get( std::get(A)), std::\n+get(v),rhs,w);\n+559 std::get(x).axpy(w,std::get(v));\n+560 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b-_\b1_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b-_\b1_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(A,x,v,b,w); //\n+next row\n+561 }\n+562\n+563\n+567 template \n+_\b5_\b6_\b8 static void _\bd_\bb_\bj_\ba_\bc(const TMatrix& A, TVector& x, const TVector& b, const K&\n+w) {\n+569 TVector v(x);\n+570 v=0; //calc new x in v\n+571 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(A,x,v,b,w);\n+572 x.axpy(w,v); //improve x\n+573 }\n+574 template \n+_\b5_\b7_\b5 static void _\bd_\bb_\bj_\ba_\bc(const TMatrix& A, TVector& x, TVector& v, const TVector&\n+b, const K& w) {\n+576 auto rhs = std::get (b);\n+577\n+578 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl::calc_rhs\n+(A,x,v,rhs,w); // calculate right side of equation\n+579 //solve on blocklevel I-1\n+580 using M =\n+581 typename std::remove_cv<\n+582 typename std::remove_reference<\n+583 decltype(std::get( std::get(A)))\n+584 >::type\n+585 >::type;\n+586 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(std::get( std::get(A)), std::\n+get(v),rhs,w);\n+587 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b+_\b1_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b-_\b1_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(A,x,v,b,w); //\n+next row\n+588 }\n+589\n+590\n+591\n+592\n+593 };\n+594 template //recursion end for remain_row = 0\n+_\b5_\b9_\b5 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br {\n+596 public:\n+597 template \n+_\b5_\b9_\b8 static void _\bd_\bb_\bg_\bs(const TMatrix&, TVector&, TVector&,\n+599 const TVector&, const K&) {}\n+600\n+601 template \n+_\b6_\b0_\b2 static void _\bb_\bs_\bo_\br_\bf(const TMatrix&, TVector&, TVector&,\n+603 const TVector&, const K&) {}\n+604\n+605 template \n+_\b6_\b0_\b6 static void _\bb_\bs_\bo_\br_\bb(const TMatrix&, TVector&, TVector&,\n+607 const TVector&, const K&) {}\n+608\n+609 template \n+_\b6_\b1_\b0 static void _\bd_\bb_\bj_\ba_\bc(const TMatrix&, TVector&, TVector&,\n+611 const TVector&, const K&) {}\n+612 };\n+613\n+614} // end namespace Dune\n+615\n+616namespace _\bs_\bt_\bd\n+617{\n+622 template \n+_\b6_\b2_\b3 struct tuple_element >\n+624 {\n+_\b6_\b2_\b5 using _\bt_\by_\bp_\be = typename std::tuple_element >::type;\n+626 };\n+627}\n+628#endif\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n _\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\n Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n generic way.\n-_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\n-_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR\n-#define DUNE_REGISTER_PRECONDITIONER(name,...)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:16\n-_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\n-Some handy generic functions for ISTL matrices.\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\n-_\bi_\bl_\bd_\bl_\b._\bh_\bh\n-Incomplete LDL decomposition.\n-_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n-Define general, extensible interface for inverse operators.\n-_\bi_\bl_\bu_\b._\bh_\bh\n-The incomplete LU factorization kernels.\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-void bsorb(const M &A, X &x, const Y &b, const K &w)\n-SSOR step.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:646\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n-void dbjac(const M &A, X &x, const Y &b, const K &w)\n-Jacobi step.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:658\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-void bsorf(const M &A, X &x, const Y &b, const K &w)\n-SOR step.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:634\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bt_\by_\bp_\be\n+MultiTypeBlockMatrix< FirstRow, Args... > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n+static void dbjac(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:568\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n+MultiTypeBlockMatrix & operator+=(const MultiTypeBlockMatrix &b)\n+Add the entries of another matrix to this one.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:168\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n+void mv(const X &x, Y &y) const\n+y = A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:196\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bt_\bv\n+void mmtv(const X &x, Y &y) const\n+y -= A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:276\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bh_\bv\n+void mmhv(const X &x, Y &y) const\n+y -= A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:321\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\b0_\b _\b>_\b:_\b:_\bd_\bb_\bg_\bs\n+static void dbgs(const TMatrix &, TVector &, TVector &, const TVector &, const\n+K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:598\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bg_\bs\n+static void dbgs(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:484\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+static void bsorb(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:540\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bh_\bv\n+void usmhv(const field_type &alpha, const X &x, Y &y) const\n+y += alpha A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:336\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+FirstRow::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bv\n+void usmv(const AlphaType &alpha, const X &x, Y &y) const\n+y += alpha A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:236\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n+MultiTypeBlockMatrix & operator/=(const field_type &k)\n+vector space division by scalar\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:152\n+_\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b__\be_\bl_\be_\bm_\be_\bn_\bt_\b<_\b _\bi_\b,_\b _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+typename std::tuple_element< i, std::tuple< Args... > >::type type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:625\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bg_\bs\n+static void dbgs(const TMatrix &A, TVector &x, TVector &v, const TVector &b,\n+const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:492\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+static void bsorf(const TMatrix &A, TVector &x, TVector &v, const TVector &b,\n+const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:520\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bh_\bv\n+void umhv(const X &x, Y &y) const\n+y += A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:306\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm\n+FieldTraits< field_type >::real_type frobenius_norm() const\n+frobenius norm: sqrt(sum over squared values of entries)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:369\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+static constexpr size_type N()\n+Return the number of matrix rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:64\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bt_\bv\n+void usmtv(const field_type &alpha, const X &x, Y &y) const\n+y += alpha A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:291\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+void operator=(const T &newval)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:127\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\bc_\bc_\bo_\bl_\b,_\b _\b0_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b__\br_\bh_\bs\n+static void calc_rhs(const TMatrix &, TVector &, TVector &, Trhs &, const K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:465\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bv\n+void umv(const X &x, Y &y) const\n+y += A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:206\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl_\b:_\b:_\bc_\ba_\bl_\bc_\b__\br_\bh_\bs\n+static void calc_rhs(const TMatrix &A, TVector &x, TVector &v, Trhs &b, const K\n+&w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:455\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+static void bsorf(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:513\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be\n+static constexpr size_type size()\n+Return the number of matrix rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\b0_\b _\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n+static void dbjac(const TMatrix &, TVector &, TVector &, const TVector &, const\n+K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:610\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n+auto infinity_norm_real() const\n+Bastardized version of the infinity-norm / row-sum norm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:396\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2\n+auto frobenius_norm2() const\n+square of frobenius norm, need for block recursion\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:352\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+std::size_t size_type\n+Type used for sizes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:59\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n+auto infinity_norm() const\n+Bastardized version of the infinity-norm / row-sum norm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:375\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\b0_\b _\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+static void bsorb(const TMatrix &, TVector &, TVector &, const TVector &, const\n+K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:606\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n+MultiTypeBlockMatrix & operator-=(const MultiTypeBlockMatrix &b)\n+Subtract the entries of another matrix from this one.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:183\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+auto operator[](const std::integral_constant< size_type, index > indexVariable)\n+-> decltype(std::get< index >(*this))\n+Random-access operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:104\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n+static void dbjac(const TMatrix &A, TVector &x, TVector &v, const TVector &b,\n+const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:575\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\b0_\b _\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+static void bsorf(const TMatrix &, TVector &, TVector &, const TVector &, const\n+K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:602\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bt_\bv\n+void mtv(const X &x, Y &y) const\n+y = A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:251\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n+static constexpr size_type M()\n+Return the number of matrix columns.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bv\n+void mmv(const X &x, Y &y) const\n+y -= A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:221\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bt_\bv\n+void umtv(const X &x, Y &y) const\n+y += A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:261\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+static void bsorb(const TMatrix &A, TVector &x, TVector &v, const TVector &b,\n+const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:547\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n+MultiTypeBlockMatrix & operator*=(const field_type &k)\n+vector space multiplication with scalar\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:141\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bd_\be_\bc_\bo_\bm_\bp_\bo_\bs_\be\n-void bildl_decompose(Matrix &A)\n-compute ILDL decomposition of a symmetric matrix A\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ildl.hh:88\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bb_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be\n-void bildl_backsolve(const Matrix &A, X &v, const Y &d, bool\n-isLowerTriangular=false)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ildl.hh:149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bt_\bT_\bo_\bC_\bR_\bS\n-void convertToCRS(const M &A, CRS &lower, CRS &upper, InvVector &inv)\n-convert ILU decomposition into CRS format for lower and upper triangular and\n-inverse.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:307\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be\n-void blockILUBacksolve(const M &A, X &v, const Y &d)\n-LU backsolve with stored inverse.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:94\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n-void blockILU0Decomposition(M &A)\n-compute ILU decomposition of A. A is overwritten by its decomposition\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n-void blockILUDecomposition(const M &A, int n, M &ILU)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:167\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bL\n-compile-time parameter for block recursion depth\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:45\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS\n-a simple compressed row storage matrix class\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:259\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-size_type M() const\n-Return the number of columns.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:700\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-Return the number of rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:695\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b:_\b:_\bc_\bh_\be_\bc_\bk\n-static void check(const Matrix &mat)\n-Check whether the a matrix has diagonal values on blocklevel recursion levels.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-A linear operator exporting itself in matrix form.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:109\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Turns an InverseOperator into a Preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-O::range_type range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:80\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-O::domain_type domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:78\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(domain_type &)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:111\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-range_type::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-FieldTraits< scalar_field_type >::real_type real_field_type\n-real scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:86\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Simd::Scalar< field_type > scalar_field_type\n-scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:84\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:115\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\br_\be\n-virtual void pre(domain_type &, range_type &)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:101\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-InverseOperator2Preconditioner(InverseOperator &inverse_operator)\n-Construct the preconditioner from the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:94\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-O InverseOperator\n-type of the wrapped inverse operator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:88\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(domain_type &v, const range_type &d)\n-Apply one step of the preconditioner to the system A(v)=d.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:104\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n-Sequential SSOR preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:141\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(X &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n-SeqSSOR(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A,\n-const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:182\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n-SeqSSOR(const M &A, const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:199\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:233\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Simd::Scalar< field_type > scalar_field_type\n-scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:152\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:146\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-The matrix type the preconditioner is for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:144\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &v, const Y &d)\n-Apply the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:216\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bp_\br_\be\n-virtual void pre(X &x, Y &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:208\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:148\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-FieldTraits< scalar_field_type >::real_type real_field_type\n-real scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:154\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n-SeqSSOR(const M &A, int n, real_field_type w)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:163\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR\n-Sequential SOR preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:261\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR\n-SeqSOR(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A,\n-const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:302\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-The matrix type the preconditioner is for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:264\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-FieldTraits< scalar_field_type >::real_type real_field_type\n-real scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:274\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(X &v, const Y &d)\n-Apply the preconditioner in a special direction.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:350\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:266\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(X &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:367\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bp_\br_\be\n-virtual void pre(X &x, Y &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:328\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Simd::Scalar< field_type > scalar_field_type\n-scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:272\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:371\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &v, const Y &d)\n-Apply the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:336\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:268\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR\n-SeqSOR(const M &A, const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:319\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:270\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR\n-SeqSOR(const M &A, int n, real_field_type w)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:283\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc\n-The sequential jacobian preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:412\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(X &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:499\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc\n-SeqJac(const M &A, const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:470\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &v, const Y &d)\n-Apply the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:487\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-The matrix type the preconditioner is for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:415\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Simd::Scalar< field_type > scalar_field_type\n-scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:423\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc\n-SeqJac(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A,\n-const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:453\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:421\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bp_\br_\be\n-virtual void pre(X &x, Y &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:479\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:417\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-FieldTraits< scalar_field_type >::real_type real_field_type\n-real scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:425\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:503\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc\n-SeqJac(const M &A, int n, real_field_type w)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:434\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:419\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n-Sequential ILU preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:532\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(X &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:678\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n-SeqILU(const M &A, int n, real_field_type w, const bool resort=false)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:612\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bp_\br_\be\n-virtual void pre(X &x, Y &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:648\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &v, const Y &d)\n-Apply the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:656\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS\n-ILU::CRS< block_type, typename M::allocator_type > CRS\n-type of ILU storage\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:552\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:541\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bl_\bo_\bw_\be_\br_\b_\n-CRS lower_\n-The ILU(n) decomposition of the matrix. As storage a CRS structure is used.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:692\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bw_\bN_\bo_\bt_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\b_\n-const bool wNotIdentity_\n-true if w != 1.0\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:699\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n-SeqILU(const M &A, const ParameterTree &config)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:598\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-std::remove_const< M >::type matrix_type\n-The matrix type the preconditioner is for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:535\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-matrix_type::block_type block_type\n-block type of matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:537\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-FieldTraits< scalar_field_type >::real_type real_field_type\n-real scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:549\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:544\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:682\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n-SeqILU(const M &A, real_field_type w, const bool resort=false)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bw_\b_\n-const real_field_type w_\n-The relaxation factor to use.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:697\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n-SeqILU(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A,\n-const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:580\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:539\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bi_\bn_\bv_\b_\n-std::vector< block_type, typename matrix_type::allocator_type > inv_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:694\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Simd::Scalar< field_type > scalar_field_type\n-scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:547\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bI_\bL_\bU_\b_\n-std::unique_ptr< matrix_type > ILU_\n-The ILU(n) decomposition of the matrix. As storage a BCRSMatrix is used.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:689\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bu_\bp_\bp_\be_\br_\b_\n-CRS upper_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:693\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn\n-Richardson preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:713\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:720\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:778\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:718\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bp_\br_\be\n-virtual void pre(X &x, Y &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:755\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn\n-Richardson(real_field_type w=1.0)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:731\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(X &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:774\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-FieldTraits< scalar_field_type >::real_type real_field_type\n-real scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:724\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Simd::Scalar< field_type > scalar_field_type\n-scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:722\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn\n-Richardson(const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:746\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:716\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &v, const Y &d)\n-Apply the precondioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:763\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL\n-sequential ILDL preconditioner\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:807\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL\n-SeqILDL(const matrix_type &A, const ParameterTree &config)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:853\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL\n-SeqILDL(const matrix_type &A, real_field_type relax=real_field_type(1))\n-constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:865\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-domain type of the preconditioner\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:815\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bp_\bo_\bs_\bt\n-void post(X &x) override\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:916\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-range type of the preconditioner\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:817\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-std::remove_const_t< M > matrix_type\n-type of matrix the preconditioner is for\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:813\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(X &v, const Y &d) override\n-Apply one step of the preconditioner to the system A(v)=d.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:909\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-FieldTraits< scalar_field_type >::real_type real_field_type\n-real scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:823\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL\n-SeqILDL(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A,\n-const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:837\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bp_\br_\be\n-void pre(X &x, Y &b) override\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:905\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Simd::Scalar< field_type > scalar_field_type\n-scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:821\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-field type of the preconditioner\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:819\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-SolverCategory::Category category() const override\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:920\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Abstract base class for all solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-static Category category(const OP &op, decltype(op.category()) *=nullptr)\n-Helperfunction to extract the solver category either from an enum, or from the\n-newly introduced virtu...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)\n+Send BlockVector to an output stream.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:590\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n+A Matrix class to support different block types.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+static void bsorb(const M &A, X &x, const Y &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:461\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+static void bsorf(const M &A, X &x, const Y &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:418\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n+static void dbjac(const M &A, X &x, const Y &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:504\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bd_\bb_\bg_\bs\n+static void dbgs(const M &A, X &x, const Y &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:378\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br\n+solver for MultiTypeBlockVector & MultiTypeBlockMatrix types\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:477\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl\n+part of solvers for MultiTypeBlockVector & MultiTypeBlockMatrix types\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:449\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00032.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00032.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: blocklevel.hh File Reference\n+dune-istl: owneroverlapcopy.hh File Reference\n \n \n \n \n \n \n \n@@ -70,56 +70,96 @@\n
    \n \n
    \n
    \n
    \n \n-
    blocklevel.hh File Reference
    \n+ \n
    \n
    \n \n-

    Helper functions for determining the vector/matrix block level. \n+

    Classes providing communication interfaces for overlapping Schwarz methods. \n More...

    \n-
    #include <algorithm>
    \n-#include <type_traits>
    \n-#include <dune/common/indices.hh>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/hybridutilities.hh>
    \n+
    #include <new>
    \n+#include <iostream>
    \n+#include <vector>
    \n+#include <list>
    \n+#include <map>
    \n+#include <set>
    \n+#include <tuple>
    \n+#include "cmath"
    \n+#include <mpi.h>
    \n+#include <dune/common/enumset.hh>
    \n+#include <dune/common/parallel/indexset.hh>
    \n+#include <dune/common/parallel/communicator.hh>
    \n+#include <dune/common/parallel/remoteindices.hh>
    \n+#include <dune/common/parallel/mpicommunication.hh>
    \n+#include "solvercategory.hh"
    \n+#include "istlexception.hh"
    \n+#include <dune/common/parallel/communication.hh>
    \n+#include <dune/istl/matrixmarket.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    struct  Dune::OwnerOverlapCopyAttributeSet
     Attribute set for overlapping Schwarz. More...
     
    class  Dune::IndexInfoFromGrid< G, L >
     Information about the index distribution. More...
     
    class  Dune::OwnerOverlapCopyCommunication< GlobalIdType, LocalIdType >
     A class setting up standard communication for a two-valued attribute set with owner/overlap/copy semantics. More...
     
    struct  Dune::OwnerOverlapCopyCommunication< GlobalIdType, LocalIdType >::CopyGatherScatter< T >
     gather/scatter callback for communcation More...
     
    struct  Dune::OwnerOverlapCopyCommunication< GlobalIdType, LocalIdType >::AddGatherScatter< T >
     
    \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n

    \n Functions

    template<typename T >
    constexpr std::size_t Dune::maxBlockLevel ()
     Determine the maximum block level of a possibly nested vector/matrix type.
     
    template<typename T >
    constexpr std::size_t Dune::minBlockLevel ()
     Determine the minimum block level of a possibly nested vector/matrix type.
     
    template<typename T >
    constexpr bool Dune::hasUniqueBlockLevel ()
     Determine if a vector/matrix has a uniquely determinable block level.
     
    template<typename T >
    constexpr std::size_t Dune::blockLevel ()
     Determine the block level of a possibly nested vector/matrix type.
     
    template<int dim, template< class, class > class Comm>
    void testRedistributed (int s)
     
    \n

    Detailed Description

    \n-

    Helper functions for determining the vector/matrix block level.

    \n-
    \n+

    Classes providing communication interfaces for overlapping Schwarz methods.

    \n+
    Author
    Peter Bastian
    \n+

    Function Documentation

    \n+\n+

    ◆ testRedistributed()

    \n+\n+
    \n+
    \n+
    \n+template<int dim, template< class, class > class Comm>
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    void testRedistributed (int s)
    \n+
    \n+\n+
    \n+
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,43 +1,65 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-blocklevel.hh File Reference\n-Helper functions for determining the vector/matrix block level. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+owneroverlapcopy.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+Classes providing communication interfaces for overlapping Schwarz methods.\n+_\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"cmath\"\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n+#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bm_\ba_\br_\bk_\be_\bt_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n+\u00a0 Attribute set for overlapping Schwarz. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b<_\b _\bG_\b,_\b _\bL_\b _\b>\n+\u00a0 Information about the index distribution. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,_\b _\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b _\b>\n+\u00a0 A class setting up standard communication for a two-valued attribute\n+ set with owner/overlap/copy semantics. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,_\b _\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b _\b>_\b:_\b:\n+ _\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bT_\b _\b>\n+\u00a0 gather/scatter callback for communcation _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,_\b _\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b _\b>_\b:_\b:\n+ _\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bT_\b _\b>\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-constexpr std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bx_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl ()\n-\u00a0 Determine the maximum block level of a possibly nested\n- vector/matrix type.\n-\u00a0\n-template\n-constexpr std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bi_\bn_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl ()\n-\u00a0 Determine the minimum block level of a possibly nested\n- vector/matrix type.\n-\u00a0\n-template\n- constexpr bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bU_\bn_\bi_\bq_\bu_\be_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl ()\n-\u00a0 Determine if a vector/matrix has a uniquely determinable\n- block level.\n-\u00a0\n-template\n-constexpr std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl ()\n-\u00a0 Determine the block level of a possibly nested vector/\n- matrix type.\n+template class Comm>\n+void\u00a0 _\bt_\be_\bs_\bt_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd (int s)\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Helper functions for determining the vector/matrix block level.\n+Classes providing communication interfaces for overlapping Schwarz methods.\n+ Author\n+ Peter Bastian\n+*\b**\b**\b**\b**\b* F\bFu\bun\bnc\bct\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0t\bte\bes\bst\btR\bRe\bed\bdi\bis\bst\btr\bri\bib\bbu\but\bte\bed\bd(\b()\b) *\b**\b**\b**\b**\b*\n+template class Comm>\n+void testRedistributed ( int\u00a0 s\bs )\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00032_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00032_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: blocklevel.hh Source File\n+dune-istl: owneroverlapcopy.hh Source File\n \n \n \n \n \n \n \n@@ -74,203 +74,712 @@\n \n
    \n \n
    \n
    \n
    \n-
    blocklevel.hh
    \n+
    owneroverlapcopy.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5
    \n-
    6#ifndef DUNE_ISTL_BLOCKLEVEL_HH
    \n-
    7#define DUNE_ISTL_BLOCKLEVEL_HH
    \n-
    8
    \n-
    9#include <algorithm>
    \n-
    10#include <type_traits>
    \n-
    11
    \n-
    12#include <dune/common/indices.hh>
    \n-
    13#include <dune/common/typetraits.hh>
    \n-
    14#include <dune/common/hybridutilities.hh>
    \n+
    5#ifndef DUNE_ISTL_OWNEROVERLAPCOPY_HH
    \n+
    6#define DUNE_ISTL_OWNEROVERLAPCOPY_HH
    \n+
    7
    \n+
    8#include <new>
    \n+
    9#include <iostream>
    \n+
    10#include <vector>
    \n+
    11#include <list>
    \n+
    12#include <map>
    \n+
    13#include <set>
    \n+
    14#include <tuple>
    \n
    15
    \n-
    21// forward declaration
    \n-
    22namespace Dune {
    \n-
    23template<typename... Args>
    \n-
    24class MultiTypeBlockVector;
    \n-
    25template<typename FirstRow, typename... Args>
    \n-
    26class MultiTypeBlockMatrix;
    \n-
    27} // end namespace Dune
    \n-
    28
    \n-
    29namespace Dune { namespace Impl {
    \n-
    30
    \n-
    31// forward declaration
    \n-
    32template<typename T> struct MaxBlockLevel;
    \n-
    33template<typename T> struct MinBlockLevel;
    \n-
    34
    \n-
    36template<typename M, template<typename B> typename BlockLevel, typename Op>
    \n-
    37constexpr std::size_t blockLevelMultiTypeBlockMatrix(const Op& op)
    \n-
    38{
    \n-
    39 // inialize with zeroth diagonal block
    \n-
    40 using namespace Dune::Indices;
    \n-
    41 using Block00 = typename std::decay_t<decltype(std::declval<M>()[_0][_0])>;
    \n-
    42 std::size_t blockLevel = BlockLevel<Block00>::value() + 1;
    \n-
    43 // iterate over all blocks to determine min/max block level
    \n-
    44 using namespace Dune::Hybrid;
    \n-
    45 forEach(integralRange(index_constant<M::N()>()), [&](auto&& i) {
    \n-
    46 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    47 forEach(integralRange(index_constant<M::M()>()), [&](auto&& j) {
    \n-
    48 using Block = typename std::decay_t<decltype(std::declval<M>()[i][j])>;
    \n-
    49 blockLevel = op(blockLevel, BlockLevel<Block>::value() + 1);
    \n-
    50 });
    \n-
    51 });
    \n-
    52 return blockLevel;
    \n-
    53}
    \n-
    54
    \n-
    56template<typename V, template<typename B> typename BlockLevel, typename Op>
    \n-
    57constexpr std::size_t blockLevelMultiTypeBlockVector(const Op& op)
    \n-
    58{
    \n-
    59 // inialize with zeroth block
    \n-
    60 using namespace Dune::Indices;
    \n-
    61 using Block0 = typename std::decay_t<decltype(std::declval<V>()[_0])>;
    \n-
    62 std::size_t blockLevel = BlockLevel<Block0>::value() + 1;
    \n-
    63 // iterate over all blocks to determine min/max block level
    \n-
    64 using namespace Dune::Hybrid;
    \n-
    65 forEach(integralRange(index_constant<V::size()>()), [&](auto&& i) {
    \n-
    66 using Block = typename std::decay_t<decltype(std::declval<V>()[i])>;
    \n-
    67 blockLevel = op(blockLevel, BlockLevel<Block>::value() + 1);
    \n-
    68 });
    \n-
    69 return blockLevel;
    \n-
    70}
    \n-
    71
    \n-
    72template<typename T>
    \n-
    73struct MaxBlockLevel
    \n-
    74{
    \n-
    75 static constexpr std::size_t value(){
    \n-
    76 if constexpr (IsNumber<T>::value)
    \n-
    77 return 0;
    \n-
    78 else
    \n-
    79 return MaxBlockLevel<typename T::block_type>::value() + 1;
    \n-
    80 }
    \n-
    81};
    \n+
    16#include "cmath"
    \n+
    17
    \n+
    18// MPI header
    \n+
    19#if HAVE_MPI
    \n+
    20#include <mpi.h>
    \n+
    21#endif
    \n+
    22
    \n+
    23#include <dune/common/enumset.hh>
    \n+
    24
    \n+
    25#if HAVE_MPI
    \n+
    26#include <dune/common/parallel/indexset.hh>
    \n+
    27#include <dune/common/parallel/communicator.hh>
    \n+
    28#include <dune/common/parallel/remoteindices.hh>
    \n+
    29#include <dune/common/parallel/mpicommunication.hh>
    \n+
    30#endif
    \n+
    31
    \n+
    32#include "solvercategory.hh"
    \n+
    33#include "istlexception.hh"
    \n+
    34#include <dune/common/parallel/communication.hh>
    \n+\n+
    36
    \n+
    37template<int dim, template<class,class> class Comm>
    \n+\n+
    39
    \n+
    40
    \n+
    41namespace Dune {
    \n+
    42
    \n+
    \n+\n+
    59 {
    \n+
    \n+\n+\n+
    62 };
    \n+
    \n+
    63 };
    \n+
    \n+
    64
    \n+
    76 template <class G, class L>
    \n+
    \n+\n+
    78 {
    \n+
    79 public:
    \n+
    81 typedef G GlobalIdType;
    \n
    82
    \n-
    83template<typename T>
    \n-
    84struct MinBlockLevel
    \n-
    85{
    \n-
    86 // the default implementation assumes minBlockLevel == maxBlockLevel
    \n-
    87 static constexpr std::size_t value()
    \n-
    88 { return MaxBlockLevel<T>::value(); }
    \n-
    89};
    \n-
    90
    \n-
    91// max block level for MultiTypeBlockMatrix
    \n-
    92template<typename FirstRow, typename... Args>
    \n-
    93struct MaxBlockLevel<Dune::MultiTypeBlockMatrix<FirstRow, Args...>>
    \n-
    94{
    \n-
    95 static constexpr std::size_t value()
    \n-
    96 {
    \n-
    97 using M = MultiTypeBlockMatrix<FirstRow, Args...>;
    \n-
    98 constexpr auto max = [](const auto& a, const auto& b){ return std::max(a,b); };
    \n-
    99 return blockLevelMultiTypeBlockMatrix<M, MaxBlockLevel>(max);
    \n-
    100 }
    \n-
    101};
    \n-
    102
    \n-
    103// min block level for MultiTypeBlockMatrix
    \n-
    104template<typename FirstRow, typename... Args>
    \n-
    105struct MinBlockLevel<Dune::MultiTypeBlockMatrix<FirstRow, Args...>>
    \n-
    106{
    \n-
    107 static constexpr std::size_t value()
    \n-
    108 {
    \n-
    109 using M = MultiTypeBlockMatrix<FirstRow, Args...>;
    \n-
    110 constexpr auto min = [](const auto& a, const auto& b){ return std::min(a,b); };
    \n-
    111 return blockLevelMultiTypeBlockMatrix<M, MinBlockLevel>(min);
    \n-
    112 }
    \n-
    113};
    \n+
    84 typedef L LocalIdType;
    \n+
    85
    \n+
    92 typedef std::tuple<GlobalIdType,LocalIdType,int> IndexTripel;
    \n+
    99 typedef std::tuple<int,GlobalIdType,int> RemoteIndexTripel;
    \n+
    100
    \n+
    \n+\n+
    107 {
    \n+
    108 if (std::get<2>(x)!=OwnerOverlapCopyAttributeSet::owner &&
    \n+\n+\n+
    111 DUNE_THROW(ISTLError,"OwnerOverlapCopyCommunication: global index not in index set");
    \n+
    112 localindices.insert(x);
    \n+
    113 }
    \n+
    \n
    114
    \n-
    115// max block level for MultiTypeBlockVector
    \n-
    116template<typename... Args>
    \n-
    117struct MaxBlockLevel<Dune::MultiTypeBlockVector<Args...>>
    \n-
    118{
    \n-
    119 static constexpr std::size_t value()
    \n-
    120 {
    \n-
    121 using V = MultiTypeBlockVector<Args...>;
    \n-
    122 constexpr auto max = [](const auto& a, const auto& b){ return std::max(a,b); };
    \n-
    123 return blockLevelMultiTypeBlockVector<V, MaxBlockLevel>(max);
    \n-
    124 }
    \n-
    125};
    \n-
    126
    \n-
    127// min block level for MultiTypeBlockVector
    \n-
    128template<typename... Args>
    \n-
    129struct MinBlockLevel<Dune::MultiTypeBlockVector<Args...>>
    \n-
    130{
    \n-
    131 static constexpr std::size_t value()
    \n-
    132 {
    \n-
    133 using V = MultiTypeBlockVector<Args...>;
    \n-
    134 constexpr auto min = [](const auto& a, const auto& b){ return std::min(a,b); };
    \n-
    135 return blockLevelMultiTypeBlockVector<V, MinBlockLevel>(min);
    \n-
    136 }
    \n-
    137};
    \n-
    138
    \n-
    139// special case: empty MultiTypeBlockVector
    \n-
    140template<>
    \n-
    141struct MaxBlockLevel<Dune::MultiTypeBlockVector<>>
    \n-
    142{
    \n-
    143 static constexpr std::size_t value()
    \n-
    144 { return 0; };
    \n-
    145};
    \n+
    \n+\n+
    121 {
    \n+
    122 if (std::get<2>(x)!=OwnerOverlapCopyAttributeSet::owner &&
    \n+\n+\n+
    125 DUNE_THROW(ISTLError,"OwnerOverlapCopyCommunication: global index not in index set");
    \n+
    126 remoteindices.insert(x);
    \n+
    127 }
    \n+
    \n+
    128
    \n+
    \n+
    133 const std::set<IndexTripel>& localIndices () const
    \n+
    134 {
    \n+
    135 return localindices;
    \n+
    136 }
    \n+
    \n+
    137
    \n+
    \n+
    142 const std::set<RemoteIndexTripel>& remoteIndices () const
    \n+
    143 {
    \n+
    144 return remoteindices;
    \n+
    145 }
    \n+
    \n
    146
    \n-
    147// special case: empty MultiTypeBlockVector
    \n-
    148template<>
    \n-
    149struct MinBlockLevel<Dune::MultiTypeBlockVector<>>
    \n-
    150{
    \n-
    151 static constexpr std::size_t value()
    \n-
    152 { return 0; };
    \n-
    153};
    \n-
    154
    \n-
    155}} // end namespace Dune::Impl
    \n-
    156
    \n-
    157namespace Dune {
    \n-
    158
    \n-
    160template<typename T>
    \n-
    \n-
    161constexpr std::size_t maxBlockLevel()
    \n-
    162{ return Impl::MaxBlockLevel<T>::value(); }
    \n+
    \n+
    150 void clear ()
    \n+
    151 {
    \n+
    152 localindices.clear();
    \n+
    153 remoteindices.clear();
    \n+
    154 }
    \n+
    \n+
    155
    \n+
    156 private:
    \n+
    158 std::set<IndexTripel> localindices;
    \n+
    160 std::set<RemoteIndexTripel> remoteindices;
    \n+
    161 };
    \n
    \n+
    162
    \n
    163
    \n-
    165template<typename T>
    \n-
    \n-
    166constexpr std::size_t minBlockLevel()
    \n-
    167{ return Impl::MinBlockLevel<T>::value(); }
    \n-
    \n-
    168
    \n-
    170template<typename T>
    \n-
    \n-
    171constexpr bool hasUniqueBlockLevel()
    \n-
    172{ return maxBlockLevel<T>() == minBlockLevel<T>(); }
    \n-
    \n-
    173
    \n-
    175template<typename T>
    \n-
    \n-
    176constexpr std::size_t blockLevel()
    \n-
    177{
    \n-
    178 static_assert(hasUniqueBlockLevel<T>(), "Block level cannot be uniquely determined!");
    \n-
    179 return Impl::MaxBlockLevel<T>::value();
    \n-
    180}
    \n-
    \n-
    181
    \n-
    182} // end namespace Dune
    \n-
    183
    \n-
    184#endif
    \n+
    164#if HAVE_MPI
    \n+
    165
    \n+
    172 template <class GlobalIdType, class LocalIdType=int>
    \n+
    \n+\n+
    174 {
    \n+
    175 template<typename M, typename G, typename L>
    \n+
    176 friend void loadMatrixMarket(M&,
    \n+
    177 const std::string&,
    \n+\n+
    179 bool);
    \n+
    180 // used types
    \n+\n+\n+
    183 typedef typename std::set<IndexTripel>::const_iterator localindex_iterator;
    \n+
    184 typedef typename std::set<RemoteIndexTripel>::const_iterator remoteindex_iterator;
    \n+\n+
    186 typedef Dune::ParallelLocalIndex<AttributeSet> LI;
    \n+
    187 public:
    \n+
    188 typedef Dune::ParallelIndexSet<GlobalIdType,LI,512> PIS;
    \n+
    189 typedef Dune::RemoteIndices<PIS> RI;
    \n+
    190 typedef Dune::RemoteIndexListModifier<PIS,typename RI::Allocator,false> RILM;
    \n+
    191 typedef typename RI::RemoteIndex RX;
    \n+
    192 typedef Dune::BufferedCommunicator BC;
    \n+
    193 typedef Dune::Interface IF;
    \n+
    194 typedef EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::owner> OwnerSet;
    \n+
    195 typedef EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::copy> CopySet;
    \n+
    196 typedef Combine<EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::owner>,EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::overlap>,AttributeSet> OwnerOverlapSet;
    \n+
    197 typedef Dune::AllSet<AttributeSet> AllSet;
    \n+
    198 protected:
    \n+
    199
    \n+
    200
    \n+
    202 template<typename T>
    \n+
    \n+\n+
    204 {
    \n+
    205 typedef typename CommPolicy<T>::IndexedType V;
    \n+
    206
    \n+
    \n+
    207 static V gather(const T& a, std::size_t i)
    \n+
    208 {
    \n+
    209 return a[i];
    \n+
    210 }
    \n+
    \n+
    211
    \n+
    \n+
    212 static void scatter(T& a, V v, std::size_t i)
    \n+
    213 {
    \n+
    214 a[i] = v;
    \n+
    215 }
    \n+
    \n+
    216 };
    \n+
    \n+
    217 template<typename T>
    \n+
    \n+\n+
    219 {
    \n+
    220 typedef typename CommPolicy<T>::IndexedType V;
    \n+
    221
    \n+
    \n+
    222 static V gather(const T& a, std::size_t i)
    \n+
    223 {
    \n+
    224 return a[i];
    \n+
    225 }
    \n+
    \n+
    226
    \n+
    \n+
    227 static void scatter(T& a, V v, std::size_t i)
    \n+
    228 {
    \n+
    229 a[i] += v;
    \n+
    230 }
    \n+
    \n+
    231 };
    \n+
    \n+
    232
    \n+
    \n+\n+
    234 {
    \n+
    235 if (OwnerOverlapToAllInterfaceBuilt)
    \n+
    236 OwnerOverlapToAllInterface.free();
    \n+
    237 OwnerOverlapSet sourceFlags;
    \n+
    238 Combine<OwnerOverlapSet,EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::copy>,AttributeSet>
    \n+
    239 destFlags;
    \n+
    240 OwnerOverlapToAllInterface.build(ri,sourceFlags,destFlags);
    \n+
    241 OwnerOverlapToAllInterfaceBuilt = true;
    \n+
    242 }
    \n+
    \n+
    243
    \n+
    \n+\n+
    245 {
    \n+
    246 if (OwnerToAllInterfaceBuilt)
    \n+
    247 OwnerToAllInterface.free();
    \n+
    248 OwnerSet sourceFlags;
    \n+
    249 AllSet destFlags;
    \n+
    250 OwnerToAllInterface.build(ri,sourceFlags,destFlags);
    \n+
    251 OwnerToAllInterfaceBuilt = true;
    \n+
    252 }
    \n+
    \n+
    253
    \n+
    \n+\n+
    255 {
    \n+
    256 if (OwnerCopyToAllInterfaceBuilt)
    \n+
    257 OwnerCopyToAllInterface.free();
    \n+
    258
    \n+
    259 typedef Combine<EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::owner>,EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::copy>,AttributeSet> OwnerCopySet;
    \n+
    260 OwnerCopySet sourceFlags;
    \n+
    261 Combine<OwnerCopySet,EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::overlap>,AttributeSet> destFlags;
    \n+
    262 OwnerCopyToAllInterface.build(ri,sourceFlags,destFlags);
    \n+
    263 OwnerCopyToAllInterfaceBuilt = true;
    \n+
    264 }
    \n+
    \n+
    265
    \n+
    \n+\n+
    267 {
    \n+
    268 if (OwnerCopyToOwnerCopyInterfaceBuilt)
    \n+
    269 OwnerCopyToOwnerCopyInterface.free();
    \n+
    270
    \n+
    271
    \n+
    272 typedef Combine<EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::owner>,EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::copy>,AttributeSet> OwnerCopySet;
    \n+
    273 OwnerCopySet sourceFlags;
    \n+
    274 OwnerCopySet destFlags;
    \n+
    275 OwnerCopyToOwnerCopyInterface.build(ri,sourceFlags,destFlags);
    \n+
    276 OwnerCopyToOwnerCopyInterfaceBuilt = true;
    \n+
    277 }
    \n+
    \n+
    278
    \n+
    \n+\n+
    280 {
    \n+
    281 if (CopyToAllInterfaceBuilt)
    \n+
    282 CopyToAllInterface.free();
    \n+
    283 CopySet sourceFlags;
    \n+
    284 AllSet destFlags;
    \n+
    285 CopyToAllInterface.build(ri,sourceFlags,destFlags);
    \n+
    286 CopyToAllInterfaceBuilt = true;
    \n+
    287 }
    \n+
    \n+
    288
    \n+
    289 public:
    \n+
    290
    \n+
    \n+\n+
    296 return category_;
    \n+
    297 }
    \n+
    \n+
    298
    \n+
    \n+
    299 const Communication<MPI_Comm>& communicator() const
    \n+
    300 {
    \n+
    301 return cc;
    \n+
    302 }
    \n+
    \n+
    303
    \n+
    310 template<class T>
    \n+
    \n+
    311 void copyOwnerToAll (const T& source, T& dest) const
    \n+
    312 {
    \n+
    313 if (!OwnerToAllInterfaceBuilt)
    \n+\n+\n+
    316 communicator.template build<T>(OwnerToAllInterface);
    \n+
    317 communicator.template forward<CopyGatherScatter<T> >(source,dest);
    \n+
    318 communicator.free();
    \n+
    319 }
    \n+
    \n+
    320
    \n+
    327 template<class T>
    \n+
    \n+
    328 void copyCopyToAll (const T& source, T& dest) const
    \n+
    329 {
    \n+
    330 if (!CopyToAllInterfaceBuilt)
    \n+\n+\n+
    333 communicator.template build<T>(CopyToAllInterface);
    \n+
    334 communicator.template forward<CopyGatherScatter<T> >(source,dest);
    \n+
    335 communicator.free();
    \n+
    336 }
    \n+
    \n+
    337
    \n+
    344 template<class T>
    \n+
    \n+
    345 void addOwnerOverlapToAll (const T& source, T& dest) const
    \n+
    346 {
    \n+
    347 if (!OwnerOverlapToAllInterfaceBuilt)
    \n+\n+\n+
    350 communicator.template build<T>(OwnerOverlapToAllInterface);
    \n+
    351 communicator.template forward<AddGatherScatter<T> >(source,dest);
    \n+
    352 communicator.free();
    \n+
    353 }
    \n+
    \n+
    354
    \n+
    361 template<class T>
    \n+
    \n+
    362 void addOwnerCopyToAll (const T& source, T& dest) const
    \n+
    363 {
    \n+
    364 if (!OwnerCopyToAllInterfaceBuilt)
    \n+\n+\n+
    367 communicator.template build<T>(OwnerCopyToAllInterface);
    \n+
    368 communicator.template forward<AddGatherScatter<T> >(source,dest);
    \n+
    369 communicator.free();
    \n+
    370 }
    \n+
    \n+
    371
    \n+
    378 template<class T>
    \n+
    \n+
    379 void addOwnerCopyToOwnerCopy (const T& source, T& dest) const
    \n+
    380 {
    \n+
    381 if (!OwnerCopyToOwnerCopyInterfaceBuilt)
    \n+\n+\n+
    384 communicator.template build<T>(OwnerCopyToOwnerCopyInterface);
    \n+
    385 communicator.template forward<AddGatherScatter<T> >(source,dest);
    \n+
    386 communicator.free();
    \n+
    387 }
    \n+
    \n+
    388
    \n+
    389
    \n+
    397 template<class T1, class T2>
    \n+
    \n+
    398 void dot (const T1& x, const T1& y, T2& result) const
    \n+
    399 {
    \n+
    400 using real_type = typename FieldTraits<typename T1::field_type>::real_type;
    \n+
    401 // set up mask vector
    \n+
    402 if (mask.size()!=static_cast<typename std::vector<double>::size_type>(x.size()))
    \n+
    403 {
    \n+
    404 mask.resize(x.size());
    \n+
    405 for (typename std::vector<double>::size_type i=0; i<mask.size(); i++)
    \n+
    406 mask[i] = 1;
    \n+
    407 for (typename PIS::const_iterator i=pis.begin(); i!=pis.end(); ++i)
    \n+
    408 if (i->local().attribute()!=OwnerOverlapCopyAttributeSet::owner)
    \n+
    409 mask[i->local().local()] = 0;
    \n+
    410 }
    \n+
    411 result = T2(0.0);
    \n+
    412
    \n+
    413 for (typename T1::size_type i=0; i<x.size(); i++)
    \n+
    414 result += (x[i]*(y[i]))*static_cast<real_type>(mask[i]);
    \n+
    415 result = cc.sum(result);
    \n+
    416 }
    \n+
    \n+
    417
    \n+
    424 template<class T1>
    \n+
    \n+
    425 typename FieldTraits<typename T1::field_type>::real_type norm (const T1& x) const
    \n+
    426 {
    \n+
    427 using real_type = typename FieldTraits<typename T1::field_type>::real_type;
    \n+
    428
    \n+
    429 // set up mask vector
    \n+
    430 if (mask.size()!=static_cast<typename std::vector<double>::size_type>(x.size()))
    \n+
    431 {
    \n+
    432 mask.resize(x.size());
    \n+
    433 for (typename std::vector<double>::size_type i=0; i<mask.size(); i++)
    \n+
    434 mask[i] = 1;
    \n+
    435 for (typename PIS::const_iterator i=pis.begin(); i!=pis.end(); ++i)
    \n+
    436 if (i->local().attribute()!=OwnerOverlapCopyAttributeSet::owner)
    \n+
    437 mask[i->local().local()] = 0;
    \n+
    438 }
    \n+
    439 auto result = real_type(0.0);
    \n+
    440 for (typename T1::size_type i=0; i<x.size(); i++)
    \n+
    441 result += Impl::asVector(x[i]).two_norm2()*mask[i];
    \n+
    442 using std::sqrt;
    \n+
    443 return sqrt(cc.sum(result));
    \n+
    444 }
    \n+
    \n+
    445
    \n+
    446 typedef Dune::EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::copy> CopyFlags;
    \n+
    447
    \n+
    449 typedef Dune::ParallelIndexSet<GlobalIdType,LI,512> ParallelIndexSet;
    \n+
    450
    \n+
    452 typedef Dune::RemoteIndices<PIS> RemoteIndices;
    \n+
    453
    \n+
    456 typedef Dune::GlobalLookupIndexSet<ParallelIndexSet> GlobalLookupIndexSet;
    \n+
    457
    \n+
    \n+\n+
    463 {
    \n+
    464 return pis;
    \n+
    465 }
    \n+
    \n+
    466
    \n+
    \n+\n+
    472 {
    \n+
    473 return ri;
    \n+
    474 }
    \n+
    \n+
    475
    \n+
    \n+\n+
    481 {
    \n+
    482 return pis;
    \n+
    483 }
    \n+
    \n+
    484
    \n+
    485
    \n+
    \n+\n+
    491 {
    \n+
    492 return ri;
    \n+
    493 }
    \n+
    \n+
    494
    \n+
    \n+\n+
    496 {
    \n+
    497 if(globalLookup_) {
    \n+
    498 if(pis.seqNo()==oldseqNo)
    \n+
    499 // Nothing changed!
    \n+
    500 return;
    \n+
    501 delete globalLookup_;
    \n+
    502 }
    \n+
    503
    \n+
    504 globalLookup_ = new GlobalLookupIndexSet(pis);
    \n+
    505 oldseqNo = pis.seqNo();
    \n+
    506 }
    \n+
    \n+
    507
    \n+
    \n+
    508 void buildGlobalLookup(std::size_t size)
    \n+
    509 {
    \n+
    510 if(globalLookup_) {
    \n+
    511 if(pis.seqNo()==oldseqNo)
    \n+
    512 // Nothing changed!
    \n+
    513 return;
    \n+
    514 delete globalLookup_;
    \n+
    515 }
    \n+
    516 globalLookup_ = new GlobalLookupIndexSet(pis, size);
    \n+
    517 oldseqNo = pis.seqNo();
    \n+
    518 }
    \n+
    \n+
    519
    \n+
    \n+\n+
    521 {
    \n+
    522 delete globalLookup_;
    \n+
    523 globalLookup_=0;
    \n+
    524 }
    \n+
    \n+
    525
    \n+
    \n+\n+
    527 {
    \n+
    528 assert(globalLookup_ != 0);
    \n+
    529 return *globalLookup_;
    \n+
    530 }
    \n+
    \n+
    531
    \n+
    537 template<class T1>
    \n+
    \n+
    538 void project (T1& x) const
    \n+
    539 {
    \n+
    540 for (typename PIS::const_iterator i=pis.begin(); i!=pis.end(); ++i)
    \n+
    541 if (i->local().attribute()==OwnerOverlapCopyAttributeSet::copy)
    \n+
    542 x[i->local().local()] = 0;
    \n+
    543 }
    \n+
    \n+
    544
    \n+
    \n+\n+\n+
    556 bool freecomm_ = false)
    \n+
    557 : comm(comm_), cc(comm_), pis(), ri(pis,pis,comm_),
    \n+
    558 OwnerToAllInterfaceBuilt(false), OwnerOverlapToAllInterfaceBuilt(false),
    \n+
    559 OwnerCopyToAllInterfaceBuilt(false), OwnerCopyToOwnerCopyInterfaceBuilt(false),
    \n+
    560 CopyToAllInterfaceBuilt(false), globalLookup_(0), category_(cat_),
    \n+
    561 freecomm(freecomm_)
    \n+
    562 {}
    \n+
    \n+
    563
    \n+
    \n+\n+
    573 : comm(MPI_COMM_WORLD), cc(MPI_COMM_WORLD), pis(), ri(pis,pis,MPI_COMM_WORLD),
    \n+
    574 OwnerToAllInterfaceBuilt(false), OwnerOverlapToAllInterfaceBuilt(false),
    \n+
    575 OwnerCopyToAllInterfaceBuilt(false), OwnerCopyToOwnerCopyInterfaceBuilt(false),
    \n+
    576 CopyToAllInterfaceBuilt(false), globalLookup_(0), category_(cat_), freecomm(false)
    \n+
    577 {}
    \n+
    \n+
    578
    \n+
    \n+\n+
    587 MPI_Comm comm_,
    \n+\n+
    589 bool freecomm_ = false)
    \n+
    590 : comm(comm_), cc(comm_), OwnerToAllInterfaceBuilt(false),
    \n+
    591 OwnerOverlapToAllInterfaceBuilt(false), OwnerCopyToAllInterfaceBuilt(false),
    \n+
    592 OwnerCopyToOwnerCopyInterfaceBuilt(false), CopyToAllInterfaceBuilt(false),
    \n+
    593 globalLookup_(0), category_(cat_), freecomm(freecomm_)
    \n+
    594 {
    \n+
    595 // set up an ISTL index set
    \n+
    596 pis.beginResize();
    \n+
    597 for (localindex_iterator i=indexinfo.localIndices().begin(); i!=indexinfo.localIndices().end(); ++i)
    \n+
    598 {
    \n+
    599 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::owner)
    \n+
    600 pis.add(std::get<0>(*i),LI(std::get<1>(*i),OwnerOverlapCopyAttributeSet::owner,true));
    \n+
    601 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::overlap)
    \n+
    602 pis.add(std::get<0>(*i),LI(std::get<1>(*i),OwnerOverlapCopyAttributeSet::overlap,true));
    \n+
    603 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::copy)
    \n+
    604 pis.add(std::get<0>(*i),LI(std::get<1>(*i),OwnerOverlapCopyAttributeSet::copy,true));
    \n+
    605 // std::cout << cc.rank() << ": adding index " << std::get<0>(*i) << " " << std::get<1>(*i) << " " << std::get<2>(*i) << std::endl;
    \n+
    606 }
    \n+
    607 pis.endResize();
    \n+
    608
    \n+
    609 // build remote indices WITHOUT communication
    \n+
    610 // std::cout << cc.rank() << ": build remote indices" << std::endl;
    \n+
    611 ri.setIndexSets(pis,pis,cc);
    \n+
    612 if (indexinfo.remoteIndices().size()>0)
    \n+
    613 {
    \n+
    614 remoteindex_iterator i=indexinfo.remoteIndices().begin();
    \n+
    615 int p = std::get<0>(*i);
    \n+
    616 RILM modifier = ri.template getModifier<false,true>(p);
    \n+
    617 typename PIS::const_iterator pi=pis.begin();
    \n+
    618 for ( ; i!=indexinfo.remoteIndices().end(); ++i)
    \n+
    619 {
    \n+
    620 // handle processor change
    \n+
    621 if (p!=std::get<0>(*i))
    \n+
    622 {
    \n+
    623 p = std::get<0>(*i);
    \n+
    624 modifier = ri.template getModifier<false,true>(p);
    \n+
    625 pi=pis.begin();
    \n+
    626 }
    \n+
    627
    \n+
    628 // position to correct entry in parallel index set
    \n+
    629 while (pi->global()!=std::get<1>(*i) && pi!=pis.end())
    \n+
    630 ++pi;
    \n+
    631 if (pi==pis.end())
    \n+
    632 DUNE_THROW(ISTLError,"OwnerOverlapCopyCommunication: global index not in index set");
    \n+
    633
    \n+
    634 // insert entry
    \n+
    635 // std::cout << cc.rank() << ": adding remote index " << std::get<0>(*i) << " " << std::get<1>(*i) << " " << std::get<2>(*i) << std::endl;
    \n+
    636 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::owner)
    \n+
    637 modifier.insert(RX(OwnerOverlapCopyAttributeSet::owner,&(*pi)));
    \n+
    638 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::overlap)
    \n+
    639 modifier.insert(RX(OwnerOverlapCopyAttributeSet::overlap,&(*pi)));
    \n+
    640 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::copy)
    \n+
    641 modifier.insert(RX(OwnerOverlapCopyAttributeSet::copy,&(*pi)));
    \n+
    642 }
    \n+
    643 }else{
    \n+
    644 // Force remote indices to be synced!
    \n+
    645 ri.template getModifier<false,true>(0);
    \n+
    646 }
    \n+
    647 }
    \n+
    \n+
    648
    \n+
    649 // destructor: free memory in some objects
    \n+
    \n+\n+
    651 {
    \n+
    652 ri.free();
    \n+
    653 if (OwnerToAllInterfaceBuilt) OwnerToAllInterface.free();
    \n+
    654 if (OwnerOverlapToAllInterfaceBuilt) OwnerOverlapToAllInterface.free();
    \n+
    655 if (OwnerCopyToAllInterfaceBuilt) OwnerCopyToAllInterface.free();
    \n+
    656 if (OwnerCopyToOwnerCopyInterfaceBuilt) OwnerCopyToOwnerCopyInterface.free();
    \n+
    657 if (CopyToAllInterfaceBuilt) CopyToAllInterface.free();
    \n+
    658 if (globalLookup_) delete globalLookup_;
    \n+
    659 if (freecomm==true)
    \n+
    660 if(comm!=MPI_COMM_NULL)
    \n+
    661 {
    \n+
    662#ifdef MPI_2
    \n+
    663 // If it is possible to query whether MPI_Finalize
    \n+
    664 // was called, only free the communicator before
    \n+
    665 // calling MPI_Finalize.
    \n+
    666 int wasFinalized = 0;
    \n+
    667 MPI_Finalized( &wasFinalized );
    \n+
    668 if(!wasFinalized)
    \n+
    669#endif
    \n+
    670 MPI_Comm_free(&comm);
    \n+
    671 }
    \n+
    672 }
    \n+
    \n+
    673
    \n+
    674 private:
    \n+\n+
    676 {}
    \n+
    677 MPI_Comm comm;
    \n+
    678 Communication<MPI_Comm> cc;
    \n+
    679 PIS pis;
    \n+
    680 RI ri;
    \n+
    681 mutable IF OwnerToAllInterface;
    \n+
    682 mutable bool OwnerToAllInterfaceBuilt;
    \n+
    683 mutable IF OwnerOverlapToAllInterface;
    \n+
    684 mutable bool OwnerOverlapToAllInterfaceBuilt;
    \n+
    685 mutable IF OwnerCopyToAllInterface;
    \n+
    686 mutable bool OwnerCopyToAllInterfaceBuilt;
    \n+
    687 mutable IF OwnerCopyToOwnerCopyInterface;
    \n+
    688 mutable bool OwnerCopyToOwnerCopyInterfaceBuilt;
    \n+
    689 mutable IF CopyToAllInterface;
    \n+
    690 mutable bool CopyToAllInterfaceBuilt;
    \n+
    691 mutable std::vector<double> mask;
    \n+
    692 int oldseqNo;
    \n+
    693 GlobalLookupIndexSet* globalLookup_;
    \n+
    694 const SolverCategory::Category category_;
    \n+
    695 bool freecomm;
    \n+
    696 };
    \n+
    \n+
    697
    \n+
    698#endif
    \n+
    699
    \n+
    700
    \n+
    703} // end namespace
    \n+
    704
    \n+
    705#endif
    \n+
    Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices.
    \n+
    void testRedistributed(int s)
    \n+\n+\n
    Definition allocator.hh:11
    \n-
    constexpr bool hasUniqueBlockLevel()
    Determine if a vector/matrix has a uniquely determinable block level.
    Definition blocklevel.hh:171
    \n-
    constexpr std::size_t maxBlockLevel()
    Determine the maximum block level of a possibly nested vector/matrix type.
    Definition blocklevel.hh:161
    \n-
    constexpr std::size_t blockLevel()
    Determine the block level of a possibly nested vector/matrix type.
    Definition blocklevel.hh:176
    \n-
    constexpr std::size_t minBlockLevel()
    Determine the minimum block level of a possibly nested vector/matrix type.
    Definition blocklevel.hh:166
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    Attribute set for overlapping Schwarz.
    Definition owneroverlapcopy.hh:59
    \n+
    AttributeSet
    Definition owneroverlapcopy.hh:60
    \n+
    @ owner
    Definition owneroverlapcopy.hh:61
    \n+
    @ copy
    Definition owneroverlapcopy.hh:61
    \n+
    @ overlap
    Definition owneroverlapcopy.hh:61
    \n+
    Information about the index distribution.
    Definition owneroverlapcopy.hh:78
    \n+
    std::tuple< GlobalIdType, LocalIdType, int > IndexTripel
    A triple describing a local index.
    Definition owneroverlapcopy.hh:92
    \n+
    void addRemoteIndex(const RemoteIndexTripel &x)
    Add a new remote index triple to the set of remote indices.
    Definition owneroverlapcopy.hh:120
    \n+
    G GlobalIdType
    The type of the global index.
    Definition owneroverlapcopy.hh:81
    \n+
    const std::set< IndexTripel > & localIndices() const
    Get the set of indices local to the process.
    Definition owneroverlapcopy.hh:133
    \n+
    const std::set< RemoteIndexTripel > & remoteIndices() const
    Get the set of remote indices.
    Definition owneroverlapcopy.hh:142
    \n+
    L LocalIdType
    The type of the local index.
    Definition owneroverlapcopy.hh:84
    \n+
    void clear()
    Remove all indices from the sets.
    Definition owneroverlapcopy.hh:150
    \n+
    void addLocalIndex(const IndexTripel &x)
    Add a new index triple to the set of local indices.
    Definition owneroverlapcopy.hh:106
    \n+
    std::tuple< int, GlobalIdType, int > RemoteIndexTripel
    A triple describing a remote index.
    Definition owneroverlapcopy.hh:99
    \n+
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n+
    EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::copy > CopySet
    Definition owneroverlapcopy.hh:195
    \n+
    const GlobalLookupIndexSet & globalLookup() const
    Definition owneroverlapcopy.hh:526
    \n+
    FieldTraits< typenameT1::field_type >::real_type norm(const T1 &x) const
    Compute the global Euclidean norm of a vector.
    Definition owneroverlapcopy.hh:425
    \n+
    void buildOwnerOverlapToAllInterface() const
    Definition owneroverlapcopy.hh:233
    \n+
    Dune::ParallelIndexSet< GlobalIdType, LI, 512 > PIS
    Definition owneroverlapcopy.hh:188
    \n+
    void buildOwnerCopyToAllInterface() const
    Definition owneroverlapcopy.hh:254
    \n+
    void buildOwnerCopyToOwnerCopyInterface() const
    Definition owneroverlapcopy.hh:266
    \n+
    OwnerOverlapCopyCommunication(const IndexInfoFromGrid< GlobalIdType, LocalIdType > &indexinfo, MPI_Comm comm_, SolverCategory::Category cat_=SolverCategory::overlapping, bool freecomm_=false)
    Constructor.
    Definition owneroverlapcopy.hh:586
    \n+
    SolverCategory::Category category() const
    Get Solver Category.
    Definition owneroverlapcopy.hh:295
    \n+
    void addOwnerCopyToOwnerCopy(const T &source, T &dest) const
    Communicate values from owner and copy data points to owner and copy data points and add them to thos...
    Definition owneroverlapcopy.hh:379
    \n+
    void buildCopyToAllInterface() const
    Definition owneroverlapcopy.hh:279
    \n+
    Dune::EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::copy > CopyFlags
    Definition owneroverlapcopy.hh:446
    \n+
    RemoteIndices & remoteIndices()
    Get the underlying remote indices.
    Definition owneroverlapcopy.hh:490
    \n+
    const ParallelIndexSet & indexSet() const
    Get the underlying parallel index set.
    Definition owneroverlapcopy.hh:462
    \n+
    Dune::RemoteIndices< PIS > RI
    Definition owneroverlapcopy.hh:189
    \n+
    void buildGlobalLookup(std::size_t size)
    Definition owneroverlapcopy.hh:508
    \n+
    void addOwnerOverlapToAll(const T &source, T &dest) const
    Communicate values from owner data points to all other data points and add them to those values.
    Definition owneroverlapcopy.hh:345
    \n+
    Dune::RemoteIndices< PIS > RemoteIndices
    The type of the remote indices.
    Definition owneroverlapcopy.hh:452
    \n+
    void project(T1 &x) const
    Set vector to zero at copy dofs.
    Definition owneroverlapcopy.hh:538
    \n+
    Dune::AllSet< AttributeSet > AllSet
    Definition owneroverlapcopy.hh:197
    \n+
    Combine< EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner >, EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::overlap >, AttributeSet > OwnerOverlapSet
    Definition owneroverlapcopy.hh:196
    \n+
    void copyCopyToAll(const T &source, T &dest) const
    Communicate values from copy data points to all other data points.
    Definition owneroverlapcopy.hh:328
    \n+
    Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet
    The type of the reverse lookup of indices.
    Definition owneroverlapcopy.hh:456
    \n+
    Dune::Interface IF
    Definition owneroverlapcopy.hh:193
    \n+
    ~OwnerOverlapCopyCommunication()
    Definition owneroverlapcopy.hh:650
    \n+
    void buildGlobalLookup()
    Definition owneroverlapcopy.hh:495
    \n+
    Dune::BufferedCommunicator BC
    Definition owneroverlapcopy.hh:192
    \n+
    OwnerOverlapCopyCommunication(MPI_Comm comm_, SolverCategory::Category cat_=SolverCategory::overlapping, bool freecomm_=false)
    Construct the communication without any indices.
    Definition owneroverlapcopy.hh:554
    \n+
    ParallelIndexSet & indexSet()
    Get the underlying parallel index set.
    Definition owneroverlapcopy.hh:480
    \n+
    void dot(const T1 &x, const T1 &y, T2 &result) const
    Compute a global dot product of two vectors.
    Definition owneroverlapcopy.hh:398
    \n+
    const Communication< MPI_Comm > & communicator() const
    Definition owneroverlapcopy.hh:299
    \n+
    OwnerOverlapCopyCommunication(SolverCategory::Category cat_=SolverCategory::overlapping)
    Construct the communication without any indices using MPI_COMM_WORLD.
    Definition owneroverlapcopy.hh:572
    \n+
    EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner > OwnerSet
    Definition owneroverlapcopy.hh:194
    \n+
    void copyOwnerToAll(const T &source, T &dest) const
    Communicate values from owner data points to all other data points.
    Definition owneroverlapcopy.hh:311
    \n+
    const RemoteIndices & remoteIndices() const
    Get the underlying remote indices.
    Definition owneroverlapcopy.hh:471
    \n+
    friend void loadMatrixMarket(M &, const std::string &, OwnerOverlapCopyCommunication< G, L > &, bool)
    Load a parallel matrix/vector stored in matrix market format.
    Definition matrixmarket.hh:1269
    \n+
    RI::RemoteIndex RX
    Definition owneroverlapcopy.hh:191
    \n+
    void addOwnerCopyToAll(const T &source, T &dest) const
    Communicate values from owner and copy data points to all other data points and add them to those val...
    Definition owneroverlapcopy.hh:362
    \n+
    void freeGlobalLookup()
    Definition owneroverlapcopy.hh:520
    \n+
    Dune::RemoteIndexListModifier< PIS, typename RI::Allocator, false > RILM
    Definition owneroverlapcopy.hh:190
    \n+
    Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet
    The type of the parallel index set.
    Definition owneroverlapcopy.hh:449
    \n+
    void buildOwnerToAllInterface() const
    Definition owneroverlapcopy.hh:244
    \n+
    gather/scatter callback for communcation
    Definition owneroverlapcopy.hh:204
    \n+
    static V gather(const T &a, std::size_t i)
    Definition owneroverlapcopy.hh:207
    \n+
    static void scatter(T &a, V v, std::size_t i)
    Definition owneroverlapcopy.hh:212
    \n+
    CommPolicy< T >::IndexedType V
    Definition owneroverlapcopy.hh:205
    \n+\n+
    CommPolicy< T >::IndexedType V
    Definition owneroverlapcopy.hh:220
    \n+
    static V gather(const T &a, std::size_t i)
    Definition owneroverlapcopy.hh:222
    \n+
    static void scatter(T &a, V v, std::size_t i)
    Definition owneroverlapcopy.hh:227
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ overlapping
    Category for overlapping solvers.
    Definition solvercategory.hh:29
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,207 +1,839 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-blocklevel.hh\n+owneroverlapcopy.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5\n-6#ifndef DUNE_ISTL_BLOCKLEVEL_HH\n-7#define DUNE_ISTL_BLOCKLEVEL_HH\n-8\n-9#include \n-10#include \n-11\n-12#include \n-13#include \n-14#include \n+5#ifndef DUNE_ISTL_OWNEROVERLAPCOPY_HH\n+6#define DUNE_ISTL_OWNEROVERLAPCOPY_HH\n+7\n+8#include \n+9#include \n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n 15\n-21// forward declaration\n-22namespace _\bD_\bu_\bn_\be {\n-23template\n-24class MultiTypeBlockVector;\n-25template\n-26class MultiTypeBlockMatrix;\n-27} // end namespace Dune\n-28\n-29namespace _\bD_\bu_\bn_\be { namespace Impl {\n-30\n-31// forward declaration\n-32template struct MaxBlockLevel;\n-33template struct MinBlockLevel;\n-34\n-36template typename BlockLevel, typename Op>\n-37constexpr std::size_t blockLevelMultiTypeBlockMatrix(const Op& op)\n-38{\n-39 // inialize with zeroth diagonal block\n-40 using namespace Dune::Indices;\n-41 using Block00 = typename std::decay_t()[_0][_0])>;\n-42 std::size_t _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl = BlockLevel::value() + 1;\n-43 // iterate over all blocks to determine min/max block level\n-44 using namespace Dune::Hybrid;\n-45 forEach(integralRange(index_constant()), [&](auto&& i) {\n-46 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-47 forEach(integralRange(index_constant()), [&](auto&& j) {\n-48 using Block = typename std::decay_t()[i][j])>;\n-49 _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl = op(_\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl, BlockLevel::value() + 1);\n-50 });\n-51 });\n-52 return _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl;\n-53}\n-54\n-56template typename BlockLevel, typename Op>\n-57constexpr std::size_t blockLevelMultiTypeBlockVector(const Op& op)\n-58{\n-59 // inialize with zeroth block\n-60 using namespace Dune::Indices;\n-61 using Block0 = typename std::decay_t()[_0])>;\n-62 std::size_t _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl = BlockLevel::value() + 1;\n-63 // iterate over all blocks to determine min/max block level\n-64 using namespace Dune::Hybrid;\n-65 forEach(integralRange(index_constant()), [&](auto&& i) {\n-66 using Block = typename std::decay_t()[i])>;\n-67 _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl = op(_\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl, BlockLevel::value() + 1);\n-68 });\n-69 return _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl;\n-70}\n-71\n-72template\n-73struct MaxBlockLevel\n-74{\n-75 static constexpr std::size_t value(){\n-76 if constexpr (IsNumber::value)\n-77 return 0;\n-78 else\n-79 return MaxBlockLevel::value() + 1;\n-80 }\n-81};\n+16#include \"cmath\"\n+17\n+18// MPI header\n+19#if HAVE_MPI\n+20#include \n+21#endif\n+22\n+23#include \n+24\n+25#if HAVE_MPI\n+26#include \n+27#include \n+28#include \n+29#include \n+30#endif\n+31\n+32#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n+33#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+34#include \n+35#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bm_\ba_\br_\bk_\be_\bt_\b._\bh_\bh>\n+36\n+37template class Comm>\n+_\b3_\b8void _\bt_\be_\bs_\bt_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd(int s);\n+39\n+40\n+41namespace _\bD_\bu_\bn_\be {\n+42\n+_\b5_\b8 struct _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n+59 {\n+_\b6_\b0 enum _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt {\n+_\b6_\b1 _\bo_\bw_\bn_\be_\br=1, _\bo_\bv_\be_\br_\bl_\ba_\bp=2, _\bc_\bo_\bp_\by=3\n+_\b6_\b2 };\n+63 };\n+64\n+76 template \n+_\b7_\b7 class _\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd\n+78 {\n+79 public:\n+_\b8_\b1 typedef G _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be;\n 82\n-83template\n-84struct MinBlockLevel\n-85{\n-86 // the default implementation assumes minBlockLevel == maxBlockLevel\n-87 static constexpr std::size_t value()\n-88 { return MaxBlockLevel::value(); }\n-89};\n-90\n-91// max block level for MultiTypeBlockMatrix\n-92template\n-93struct MaxBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockMatrix>\n-94{\n-95 static constexpr std::size_t value()\n-96 {\n-97 using M = MultiTypeBlockMatrix;\n-98 constexpr auto max = [](const auto& a, const auto& b){ return std::max(a,b);\n-};\n-99 return blockLevelMultiTypeBlockMatrix(max);\n-100 }\n-101};\n-102\n-103// min block level for MultiTypeBlockMatrix\n-104template\n-105struct MinBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockMatrix>\n-106{\n-107 static constexpr std::size_t value()\n-108 {\n-109 using M = MultiTypeBlockMatrix;\n-110 constexpr auto min = [](const auto& a, const auto& b){ return std::min\n-(a,b); };\n-111 return blockLevelMultiTypeBlockMatrix(min);\n-112 }\n-113};\n+_\b8_\b4 typedef L _\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be;\n+85\n+_\b9_\b2 typedef std::tuple _\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl;\n+_\b9_\b9 typedef std::tuple _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl;\n+100\n+_\b1_\b0_\b6 void _\ba_\bd_\bd_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx (const _\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl& x)\n+107 {\n+108 if (std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br &&\n+109 std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp &&\n+110 std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n+111 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"OwnerOverlapCopyCommunication: global index not in\n+index set\");\n+112 localindices.insert(x);\n+113 }\n 114\n-115// max block level for MultiTypeBlockVector\n-116template\n-117struct MaxBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockVector>\n-118{\n-119 static constexpr std::size_t value()\n-120 {\n-121 using V = MultiTypeBlockVector;\n-122 constexpr auto max = [](const auto& a, const auto& b){ return std::max\n-(a,b); };\n-123 return blockLevelMultiTypeBlockVector(max);\n-124 }\n-125};\n-126\n-127// min block level for MultiTypeBlockVector\n-128template\n-129struct MinBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockVector>\n-130{\n-131 static constexpr std::size_t value()\n-132 {\n-133 using V = MultiTypeBlockVector;\n-134 constexpr auto min = [](const auto& a, const auto& b){ return std::min\n-(a,b); };\n-135 return blockLevelMultiTypeBlockVector(min);\n+_\b1_\b2_\b0 void _\ba_\bd_\bd_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx (const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl& x)\n+121 {\n+122 if (std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br &&\n+123 std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp &&\n+124 std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n+125 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"OwnerOverlapCopyCommunication: global index not in\n+index set\");\n+126 remoteindices.insert(x);\n+127 }\n+128\n+_\b1_\b3_\b3 const std::set& _\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs () const\n+134 {\n+135 return localindices;\n 136 }\n-137};\n-138\n-139// special case: empty MultiTypeBlockVector\n-140template<>\n-141struct MaxBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockVector<>>\n-142{\n-143 static constexpr std::size_t value()\n-144 { return 0; };\n-145};\n+137\n+_\b1_\b4_\b2 const std::set& _\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs () const\n+143 {\n+144 return remoteindices;\n+145 }\n 146\n-147// special case: empty MultiTypeBlockVector\n-148template<>\n-149struct MinBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockVector<>>\n-150{\n-151 static constexpr std::size_t value()\n-152 { return 0; };\n-153};\n-154\n-155}} // end namespace Dune::Impl\n-156\n-157namespace _\bD_\bu_\bn_\be {\n-158\n-160template\n-_\b1_\b6_\b1constexpr std::size_t _\bm_\ba_\bx_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl()\n-162{ return Impl::MaxBlockLevel::value(); }\n+_\b1_\b5_\b0 void _\bc_\bl_\be_\ba_\br ()\n+151 {\n+152 localindices.clear();\n+153 remoteindices.clear();\n+154 }\n+155\n+156 private:\n+158 std::set localindices;\n+160 std::set remoteindices;\n+161 };\n+162\n 163\n-165template\n-_\b1_\b6_\b6constexpr std::size_t _\bm_\bi_\bn_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl()\n-167{ return Impl::MinBlockLevel::value(); }\n-168\n-170template\n-_\b1_\b7_\b1constexpr bool _\bh_\ba_\bs_\bU_\bn_\bi_\bq_\bu_\be_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl()\n-172{ return maxBlockLevel() == minBlockLevel(); }\n-173\n-175template\n-_\b1_\b7_\b6constexpr std::size_t _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl()\n-177{\n-178 static_assert(hasUniqueBlockLevel(), \"Block level cannot be uniquely\n-determined!\");\n-179 return Impl::MaxBlockLevel::value();\n-180}\n-181\n-182} // end namespace Dune\n-183\n-184#endif\n+164#if HAVE_MPI\n+165\n+172 template \n+_\b1_\b7_\b3 class _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+174 {\n+175 template\n+176 friend void _\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(M&,\n+177 const std::string&,\n+178 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bG_\b,_\bL_\b>&,\n+179 bool);\n+180 // used types\n+181 typedef typename _\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,_\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl\n+IndexTripel;\n+182 typedef typename _\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,_\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b>_\b:_\b:\n+_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl RemoteIndexTripel;\n+183 typedef typename std::set::const_iterator localindex_iterator;\n+184 typedef typename std::set::const_iterator\n+remoteindex_iterator;\n+185 typedef typename _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt;\n+186 typedef Dune::ParallelLocalIndex LI;\n+187 public:\n+_\b1_\b8_\b8 typedef Dune::ParallelIndexSet _\bP_\bI_\bS;\n+_\b1_\b8_\b9 typedef Dune::RemoteIndices _\bR_\bI;\n+_\b1_\b9_\b0 typedef Dune::RemoteIndexListModifier\n+_\bR_\bI_\bL_\bM;\n+_\b1_\b9_\b1 typedef typename RI::RemoteIndex _\bR_\bX;\n+_\b1_\b9_\b2 typedef Dune::BufferedCommunicator _\bB_\bC;\n+_\b1_\b9_\b3 typedef Dune::Interface _\bI_\bF;\n+_\b1_\b9_\b4 typedef EnumItem\n+_\bO_\bw_\bn_\be_\br_\bS_\be_\bt;\n+_\b1_\b9_\b5 typedef EnumItem _\bC_\bo_\bp_\by_\bS_\be_\bt;\n+_\b1_\b9_\b6 typedef Combine,EnumItem,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt> _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bS_\be_\bt;\n+_\b1_\b9_\b7 typedef Dune::AllSet _\bA_\bl_\bl_\bS_\be_\bt;\n+198 protected:\n+199\n+200\n+202 template\n+_\b2_\b0_\b3 struct _\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+204 {\n+_\b2_\b0_\b5 typedef typename CommPolicy::IndexedType _\bV;\n+206\n+_\b2_\b0_\b7 static _\bV _\bg_\ba_\bt_\bh_\be_\br(const T& a, std::size_t i)\n+208 {\n+209 return a[i];\n+210 }\n+211\n+_\b2_\b1_\b2 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(T& a, _\bV v, std::size_t i)\n+213 {\n+214 a[i] = v;\n+215 }\n+216 };\n+217 template\n+_\b2_\b1_\b8 struct _\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+219 {\n+_\b2_\b2_\b0 typedef typename CommPolicy::IndexedType _\bV;\n+221\n+_\b2_\b2_\b2 static _\bV _\bg_\ba_\bt_\bh_\be_\br(const T& a, std::size_t i)\n+223 {\n+224 return a[i];\n+225 }\n+226\n+_\b2_\b2_\b7 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(T& a, _\bV v, std::size_t i)\n+228 {\n+229 a[i] += v;\n+230 }\n+231 };\n+232\n+_\b2_\b3_\b3 void _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be () const\n+234 {\n+235 if (OwnerOverlapToAllInterfaceBuilt)\n+236 OwnerOverlapToAllInterface.free();\n+237 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bS_\be_\bt sourceFlags;\n+238\n+Combine,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt>\n+239 destFlags;\n+240 OwnerOverlapToAllInterface.build(ri,sourceFlags,destFlags);\n+241 OwnerOverlapToAllInterfaceBuilt = true;\n+242 }\n+243\n+_\b2_\b4_\b4 void _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be () const\n+245 {\n+246 if (OwnerToAllInterfaceBuilt)\n+247 OwnerToAllInterface.free();\n+248 _\bO_\bw_\bn_\be_\br_\bS_\be_\bt sourceFlags;\n+249 _\bA_\bl_\bl_\bS_\be_\bt destFlags;\n+250 OwnerToAllInterface.build(ri,sourceFlags,destFlags);\n+251 OwnerToAllInterfaceBuilt = true;\n+252 }\n+253\n+_\b2_\b5_\b4 void _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be () const\n+255 {\n+256 if (OwnerCopyToAllInterfaceBuilt)\n+257 OwnerCopyToAllInterface.free();\n+258\n+259 typedef Combine,EnumItem,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt>\n+OwnerCopySet;\n+260 OwnerCopySet sourceFlags;\n+261 Combine,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt> destFlags;\n+262 OwnerCopyToAllInterface.build(ri,sourceFlags,destFlags);\n+263 OwnerCopyToAllInterfaceBuilt = true;\n+264 }\n+265\n+_\b2_\b6_\b6 void _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be () const\n+267 {\n+268 if (OwnerCopyToOwnerCopyInterfaceBuilt)\n+269 OwnerCopyToOwnerCopyInterface.free();\n+270\n+271\n+272 typedef Combine,EnumItem,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt>\n+OwnerCopySet;\n+273 OwnerCopySet sourceFlags;\n+274 OwnerCopySet destFlags;\n+275 OwnerCopyToOwnerCopyInterface.build(ri,sourceFlags,destFlags);\n+276 OwnerCopyToOwnerCopyInterfaceBuilt = true;\n+277 }\n+278\n+_\b2_\b7_\b9 void _\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be () const\n+280 {\n+281 if (CopyToAllInterfaceBuilt)\n+282 CopyToAllInterface.free();\n+283 _\bC_\bo_\bp_\by_\bS_\be_\bt sourceFlags;\n+284 _\bA_\bl_\bl_\bS_\be_\bt destFlags;\n+285 CopyToAllInterface.build(ri,sourceFlags,destFlags);\n+286 CopyToAllInterfaceBuilt = true;\n+287 }\n+288\n+289 public:\n+290\n+_\b2_\b9_\b5 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by () const {\n+296 return category_;\n+297 }\n+298\n+_\b2_\b9_\b9 const Communication& _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br() const\n+300 {\n+301 return cc;\n+302 }\n+303\n+310 template\n+_\b3_\b1_\b1 void _\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl (const T& source, T& dest) const\n+312 {\n+313 if (!OwnerToAllInterfaceBuilt)\n+314 _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be ();\n+315 _\bB_\bC _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n+316 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template build(OwnerToAllInterface);\n+317 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template forward >(source,dest);\n+318 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.free();\n+319 }\n+320\n+327 template\n+_\b3_\b2_\b8 void _\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl (const T& source, T& dest) const\n+329 {\n+330 if (!CopyToAllInterfaceBuilt)\n+331 _\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be ();\n+332 _\bB_\bC _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n+333 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template build(CopyToAllInterface);\n+334 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template forward >(source,dest);\n+335 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.free();\n+336 }\n+337\n+344 template\n+_\b3_\b4_\b5 void _\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bT_\bo_\bA_\bl_\bl (const T& source, T& dest) const\n+346 {\n+347 if (!OwnerOverlapToAllInterfaceBuilt)\n+348 _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be ();\n+349 _\bB_\bC _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n+350 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template build(OwnerOverlapToAllInterface);\n+351 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template forward >(source,dest);\n+352 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.free();\n+353 }\n+354\n+361 template\n+_\b3_\b6_\b2 void _\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl (const T& source, T& dest) const\n+363 {\n+364 if (!OwnerCopyToAllInterfaceBuilt)\n+365 _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be ();\n+366 _\bB_\bC _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n+367 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template build(OwnerCopyToAllInterface);\n+368 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template forward >(source,dest);\n+369 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.free();\n+370 }\n+371\n+378 template\n+_\b3_\b7_\b9 void _\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by (const T& source, T& dest) const\n+380 {\n+381 if (!OwnerCopyToOwnerCopyInterfaceBuilt)\n+382 _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be ();\n+383 _\bB_\bC _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n+384 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template build(OwnerCopyToOwnerCopyInterface);\n+385 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template forward >(source,dest);\n+386 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.free();\n+387 }\n+388\n+389\n+397 template\n+_\b3_\b9_\b8 void _\bd_\bo_\bt (const T1& x, const T1& y, T2& result) const\n+399 {\n+400 using real_type = typename FieldTraits::real_type;\n+401 // set up mask vector\n+402 if (mask.size()!=static_cast::size_type>\n+(x.size()))\n+403 {\n+404 mask.resize(x.size());\n+405 for (typename std::vector::size_type i=0; ilocal().attribute()!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br)\n+409 mask[i->local().local()] = 0;\n+410 }\n+411 result = T2(0.0);\n+412\n+413 for (typename T1::size_type i=0; i(mask[i]);\n+415 result = cc.sum(result);\n+416 }\n+417\n+424 template\n+_\b4_\b2_\b5 typename FieldTraits::real_type _\bn_\bo_\br_\bm (const T1& x)\n+const\n+426 {\n+427 using real_type = typename FieldTraits::real_type;\n+428\n+429 // set up mask vector\n+430 if (mask.size()!=static_cast::size_type>\n+(x.size()))\n+431 {\n+432 mask.resize(x.size());\n+433 for (typename std::vector::size_type i=0; ilocal().attribute()!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br)\n+437 mask[i->local().local()] = 0;\n+438 }\n+439 auto result = real_type(0.0);\n+440 for (typename T1::size_type i=0; i\n+_\bC_\bo_\bp_\by_\bF_\bl_\ba_\bg_\bs;\n+447\n+_\b4_\b4_\b9 typedef Dune::ParallelIndexSet _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+450\n+_\b4_\b5_\b2 typedef Dune::RemoteIndices _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs;\n+453\n+_\b4_\b5_\b6 typedef Dune::GlobalLookupIndexSet _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+457\n+_\b4_\b6_\b2 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& _\bi_\bn_\bd_\be_\bx_\bS_\be_\bt() const\n+463 {\n+464 return pis;\n+465 }\n+466\n+_\b4_\b7_\b1 const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& _\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs() const\n+472 {\n+473 return ri;\n+474 }\n+475\n+_\b4_\b8_\b0 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& _\bi_\bn_\bd_\be_\bx_\bS_\be_\bt()\n+481 {\n+482 return pis;\n+483 }\n+484\n+485\n+_\b4_\b9_\b0 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& _\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs()\n+491 {\n+492 return ri;\n+493 }\n+494\n+_\b4_\b9_\b5 void _\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp()\n+496 {\n+497 if(globalLookup_) {\n+498 if(pis.seqNo()==oldseqNo)\n+499 // Nothing changed!\n+500 return;\n+501 delete globalLookup_;\n+502 }\n+503\n+504 globalLookup_ = new _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(pis);\n+505 oldseqNo = pis.seqNo();\n+506 }\n+507\n+_\b5_\b0_\b8 void _\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(std::size_t size)\n+509 {\n+510 if(globalLookup_) {\n+511 if(pis.seqNo()==oldseqNo)\n+512 // Nothing changed!\n+513 return;\n+514 delete globalLookup_;\n+515 }\n+516 globalLookup_ = new _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(pis, size);\n+517 oldseqNo = pis.seqNo();\n+518 }\n+519\n+_\b5_\b2_\b0 void _\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp()\n+521 {\n+522 delete globalLookup_;\n+523 globalLookup_=0;\n+524 }\n+525\n+_\b5_\b2_\b6 const _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& _\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp() const\n+527 {\n+528 assert(globalLookup_ != 0);\n+529 return *globalLookup_;\n+530 }\n+531\n+537 template\n+_\b5_\b3_\b8 void _\bp_\br_\bo_\bj_\be_\bc_\bt (T1& x) const\n+539 {\n+540 for (typename PIS::const_iterator i=pis.begin(); i!=pis.end(); ++i)\n+541 if (i->local().attribute()==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n+542 x[i->local().local()] = 0;\n+543 }\n+544\n+_\b5_\b5_\b4 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (MPI_Comm comm_,\n+555 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by cat_ = _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg,\n+556 bool freecomm_ = false)\n+557 : comm(comm_), cc(comm_), pis(), ri(pis,pis,comm_),\n+558 OwnerToAllInterfaceBuilt(false), OwnerOverlapToAllInterfaceBuilt(false),\n+559 OwnerCopyToAllInterfaceBuilt(false), OwnerCopyToOwnerCopyInterfaceBuilt\n+(false),\n+560 CopyToAllInterfaceBuilt(false), globalLookup_(0), category_(cat_),\n+561 freecomm(freecomm_)\n+562 {}\n+563\n+_\b5_\b7_\b2 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by cat_ =\n+_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg)\n+573 : comm(MPI_COMM_WORLD), cc(MPI_COMM_WORLD), pis(), ri\n+(pis,pis,MPI_COMM_WORLD),\n+574 OwnerToAllInterfaceBuilt(false), OwnerOverlapToAllInterfaceBuilt(false),\n+575 OwnerCopyToAllInterfaceBuilt(false), OwnerCopyToOwnerCopyInterfaceBuilt\n+(false),\n+576 CopyToAllInterfaceBuilt(false), globalLookup_(0), category_(cat_), freecomm\n+(false)\n+577 {}\n+578\n+_\b5_\b8_\b6 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (const _\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,\n+_\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b>& indexinfo,\n+587 MPI_Comm comm_,\n+588 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by cat_ = _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg,\n+589 bool freecomm_ = false)\n+590 : comm(comm_), cc(comm_), OwnerToAllInterfaceBuilt(false),\n+591 OwnerOverlapToAllInterfaceBuilt(false), OwnerCopyToAllInterfaceBuilt\n+(false),\n+592 OwnerCopyToOwnerCopyInterfaceBuilt(false), CopyToAllInterfaceBuilt(false),\n+593 globalLookup_(0), category_(cat_), freecomm(freecomm_)\n+594 {\n+595 // set up an ISTL index set\n+596 pis.beginResize();\n+597 for (localindex_iterator i=indexinfo._\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs().begin();\n+i!=indexinfo._\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs().end(); ++i)\n+598 {\n+599 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br)\n+600 pis.add(std::get<0>(*i),LI(std::get<1>(*i),_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:\n+_\bo_\bw_\bn_\be_\br,true));\n+601 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp)\n+602 pis.add(std::get<0>(*i),LI(std::get<1>(*i),_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:\n+_\bo_\bv_\be_\br_\bl_\ba_\bp,true));\n+603 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n+604 pis.add(std::get<0>(*i),LI(std::get<1>(*i),_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:\n+_\bc_\bo_\bp_\by,true));\n+605 // std::cout << cc.rank() << \": adding index \" << std::get<0>(*i) << \" \" <<\n+std::get<1>(*i) << \" \" << std::get<2>(*i) << std::endl;\n+606 }\n+607 pis.endResize();\n+608\n+609 // build remote indices WITHOUT communication\n+610 // std::cout << cc.rank() << \": build remote indices\" << std::endl;\n+611 ri.setIndexSets(pis,pis,cc);\n+612 if (indexinfo._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().size()>0)\n+613 {\n+614 remoteindex_iterator i=indexinfo._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().begin();\n+615 int p = std::get<0>(*i);\n+616 _\bR_\bI_\bL_\bM modifier = ri.template getModifier(p);\n+617 typename PIS::const_iterator pi=pis.begin();\n+618 for ( ; i!=indexinfo._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().end(); ++i)\n+619 {\n+620 // handle processor change\n+621 if (p!=std::get<0>(*i))\n+622 {\n+623 p = std::get<0>(*i);\n+624 modifier = ri.template getModifier(p);\n+625 pi=pis.begin();\n+626 }\n+627\n+628 // position to correct entry in parallel index set\n+629 while (pi->global()!=std::get<1>(*i) && pi!=pis.end())\n+630 ++pi;\n+631 if (pi==pis.end())\n+632 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"OwnerOverlapCopyCommunication: global index not in\n+index set\");\n+633\n+634 // insert entry\n+635 // std::cout << cc.rank() << \": adding remote index \" << std::get<0>(*i) <<\n+\" \" << std::get<1>(*i) << \" \" << std::get<2>(*i) << std::endl;\n+636 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br)\n+637 modifier.insert(_\bR_\bX(_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br,&(*pi)));\n+638 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp)\n+639 modifier.insert(_\bR_\bX(_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp,&(*pi)));\n+640 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n+641 modifier.insert(_\bR_\bX(_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by,&(*pi)));\n+642 }\n+643 }else{\n+644 // Force remote indices to be synced!\n+645 ri.template getModifier(0);\n+646 }\n+647 }\n+648\n+649 // destructor: free memory in some objects\n+_\b6_\b5_\b0 _\b~_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn ()\n+651 {\n+652 ri.free();\n+653 if (OwnerToAllInterfaceBuilt) OwnerToAllInterface.free();\n+654 if (OwnerOverlapToAllInterfaceBuilt) OwnerOverlapToAllInterface.free();\n+655 if (OwnerCopyToAllInterfaceBuilt) OwnerCopyToAllInterface.free();\n+656 if (OwnerCopyToOwnerCopyInterfaceBuilt) OwnerCopyToOwnerCopyInterface.free\n+();\n+657 if (CopyToAllInterfaceBuilt) CopyToAllInterface.free();\n+658 if (globalLookup_) delete globalLookup_;\n+659 if (freecomm==true)\n+660 if(comm!=MPI_COMM_NULL)\n+661 {\n+662#ifdef MPI_2\n+663 // If it is possible to query whether MPI_Finalize\n+664 // was called, only free the communicator before\n+665 // calling MPI_Finalize.\n+666 int wasFinalized = 0;\n+667 MPI_Finalized( &wasFinalized );\n+668 if(!wasFinalized)\n+669#endif\n+670 MPI_Comm_free(&comm);\n+671 }\n+672 }\n+673\n+674 private:\n+675 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (const _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn&)\n+676 {}\n+677 MPI_Comm comm;\n+678 Communication cc;\n+679 _\bP_\bI_\bS pis;\n+680 _\bR_\bI ri;\n+681 mutable _\bI_\bF OwnerToAllInterface;\n+682 mutable bool OwnerToAllInterfaceBuilt;\n+683 mutable _\bI_\bF OwnerOverlapToAllInterface;\n+684 mutable bool OwnerOverlapToAllInterfaceBuilt;\n+685 mutable _\bI_\bF OwnerCopyToAllInterface;\n+686 mutable bool OwnerCopyToAllInterfaceBuilt;\n+687 mutable _\bI_\bF OwnerCopyToOwnerCopyInterface;\n+688 mutable bool OwnerCopyToOwnerCopyInterfaceBuilt;\n+689 mutable _\bI_\bF CopyToAllInterface;\n+690 mutable bool CopyToAllInterfaceBuilt;\n+691 mutable std::vector mask;\n+692 int oldseqNo;\n+693 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt* globalLookup_;\n+694 const _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category_;\n+695 bool freecomm;\n+696 };\n+697\n+698#endif\n+699\n+700\n+703} // end namespace\n+704\n+705#endif\n+_\bm_\ba_\bt_\br_\bi_\bx_\bm_\ba_\br_\bk_\be_\bt_\b._\bh_\bh\n+Provides classes for reading and writing MatrixMarket Files with an extension\n+for parallel matrices.\n+_\bt_\be_\bs_\bt_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd\n+void testRedistributed(int s)\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bU_\bn_\bi_\bq_\bu_\be_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl\n-constexpr bool hasUniqueBlockLevel()\n-Determine if a vector/matrix has a uniquely determinable block level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn blocklevel.hh:171\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bx_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl\n-constexpr std::size_t maxBlockLevel()\n-Determine the maximum block level of a possibly nested vector/matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn blocklevel.hh:161\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl\n-constexpr std::size_t blockLevel()\n-Determine the block level of a possibly nested vector/matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn blocklevel.hh:176\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bi_\bn_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl\n-constexpr std::size_t minBlockLevel()\n-Determine the minimum block level of a possibly nested vector/matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn blocklevel.hh:166\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n+Attribute set for overlapping Schwarz.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:59\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n+AttributeSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:60\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br\n+@ owner\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by\n+@ copy\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp\n+@ overlap\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd\n+Information about the index distribution.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl\n+std::tuple< GlobalIdType, LocalIdType, int > IndexTripel\n+A triple describing a local index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:92\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\ba_\bd_\bd_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx\n+void addRemoteIndex(const RemoteIndexTripel &x)\n+Add a new remote index triple to the set of remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be\n+G GlobalIdType\n+The type of the global index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+const std::set< IndexTripel > & localIndices() const\n+Get the set of indices local to the process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:133\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+const std::set< RemoteIndexTripel > & remoteIndices() const\n+Get the set of remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:142\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be\n+L LocalIdType\n+The type of the local index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:84\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bc_\bl_\be_\ba_\br\n+void clear()\n+Remove all indices from the sets.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\ba_\bd_\bd_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+void addLocalIndex(const IndexTripel &x)\n+Add a new index triple to the set of local indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:106\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl\n+std::tuple< int, GlobalIdType, int > RemoteIndexTripel\n+A triple describing a remote index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+A class setting up standard communication for a two-valued attribute set with\n+owner/overlap/copy sema...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bS_\be_\bt\n+EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::copy > CopySet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:195\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n+const GlobalLookupIndexSet & globalLookup() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:526\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bn_\bo_\br_\bm\n+FieldTraits< typenameT1::field_type >::real_type norm(const T1 &x) const\n+Compute the global Euclidean norm of a vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:425\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+void buildOwnerOverlapToAllInterface() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:233\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\bI_\bS\n+Dune::ParallelIndexSet< GlobalIdType, LI, 512 > PIS\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:188\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+void buildOwnerCopyToAllInterface() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:254\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+void buildOwnerCopyToOwnerCopyInterface() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:266\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+OwnerOverlapCopyCommunication(const IndexInfoFromGrid< GlobalIdType,\n+LocalIdType > &indexinfo, MPI_Comm comm_, SolverCategory::Category\n+cat_=SolverCategory::overlapping, bool freecomm_=false)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:586\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+SolverCategory::Category category() const\n+Get Solver Category.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:295\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by\n+void addOwnerCopyToOwnerCopy(const T &source, T &dest) const\n+Communicate values from owner and copy data points to owner and copy data\n+points and add them to thos...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:379\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+void buildCopyToAllInterface() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:279\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bF_\bl_\ba_\bg_\bs\n+Dune::EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::copy > CopyFlags\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:446\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+RemoteIndices & remoteIndices()\n+Get the underlying remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:490\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bn_\bd_\be_\bx_\bS_\be_\bt\n+const ParallelIndexSet & indexSet() const\n+Get the underlying parallel index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:462\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bR_\bI\n+Dune::RemoteIndices< PIS > RI\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:189\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n+void buildGlobalLookup(std::size_t size)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:508\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bT_\bo_\bA_\bl_\bl\n+void addOwnerOverlapToAll(const T &source, T &dest) const\n+Communicate values from owner data points to all other data points and add them\n+to those values.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:345\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+Dune::RemoteIndices< PIS > RemoteIndices\n+The type of the remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:452\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bp_\br_\bo_\bj_\be_\bc_\bt\n+void project(T1 &x) const\n+Set vector to zero at copy dofs.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:538\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bl_\bl_\bS_\be_\bt\n+Dune::AllSet< AttributeSet > AllSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:197\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bS_\be_\bt\n+Combine< EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner >,\n+EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::overlap >, AttributeSet >\n+OwnerOverlapSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:196\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl\n+void copyCopyToAll(const T &source, T &dest) const\n+Communicate values from copy data points to all other data points.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:328\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet\n+The type of the reverse lookup of indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:456\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bI_\bF\n+Dune::Interface IF\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:193\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b~_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+~OwnerOverlapCopyCommunication()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:650\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n+void buildGlobalLookup()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:495\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bB_\bC\n+Dune::BufferedCommunicator BC\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:192\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+OwnerOverlapCopyCommunication(MPI_Comm comm_, SolverCategory::Category\n+cat_=SolverCategory::overlapping, bool freecomm_=false)\n+Construct the communication without any indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:554\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bn_\bd_\be_\bx_\bS_\be_\bt\n+ParallelIndexSet & indexSet()\n+Get the underlying parallel index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:480\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bd_\bo_\bt\n+void dot(const T1 &x, const T1 &y, T2 &result) const\n+Compute a global dot product of two vectors.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:398\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+const Communication< MPI_Comm > & communicator() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+OwnerOverlapCopyCommunication(SolverCategory::Category cat_=SolverCategory::\n+overlapping)\n+Construct the communication without any indices using MPI_COMM_WORLD.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:572\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n+EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner > OwnerSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:194\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl\n+void copyOwnerToAll(const T &source, T &dest) const\n+Communicate values from owner data points to all other data points.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:311\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+const RemoteIndices & remoteIndices() const\n+Get the underlying remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:471\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt\n+friend void loadMatrixMarket(M &, const std::string &,\n+OwnerOverlapCopyCommunication< G, L > &, bool)\n+Load a parallel matrix/vector stored in matrix market format.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1269\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bR_\bX\n+RI::RemoteIndex RX\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:191\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl\n+void addOwnerCopyToAll(const T &source, T &dest) const\n+Communicate values from owner and copy data points to all other data points and\n+add them to those val...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:362\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n+void freeGlobalLookup()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:520\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bR_\bI_\bL_\bM\n+Dune::RemoteIndexListModifier< PIS, typename RI::Allocator, false > RILM\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:190\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet\n+The type of the parallel index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:449\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+void buildOwnerToAllInterface() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:244\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+gather/scatter callback for communcation\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:204\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n+static V gather(const T &a, std::size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:207\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n+static void scatter(T &a, V v, std::size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:212\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bV\n+CommPolicy< T >::IndexedType V\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:205\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:219\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bV\n+CommPolicy< T >::IndexedType V\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:220\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n+static V gather(const T &a, std::size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:222\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n+static void scatter(T &a, V v, std::size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:227\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n+@ overlapping\n+Category for overlapping solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:29\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00035.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00035.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: bccsmatrix.hh File Reference\n+dune-istl: allocator.hh File Reference\n \n \n \n \n \n \n \n@@ -70,30 +70,50 @@\n
    \n \n
    \n
    \n
    \n \n-
    bccsmatrix.hh File Reference
    \n+Classes |\n+Namespaces |\n+Typedefs
    \n+
    allocator.hh File Reference
    \n \n
    \n-
    #include <dune/common/fmatrix.hh>
    \n-#include <dune/common/fvector.hh>
    \n+
    #include <memory>
    \n+#include <type_traits>
    \n #include <dune/common/typetraits.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    struct  Dune::exists< T >
     
    struct  Dune::DefaultAllocatorTraits< T, typename >
     
    struct  Dune::DefaultAllocatorTraits< T, std::void_t< typename T::allocator_type > >
     
    struct  Dune::AllocatorTraits< T >
     
    \n \n \n \n-\n-\n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::ISTL
     
    \n+\n+\n+\n+\n+\n+\n+\n

    \n+Typedefs

    template<typename T >
    using Dune::AllocatorType = typename AllocatorTraits< T >::type
     
    template<typename T , typename X >
    using Dune::ReboundAllocatorType = typename std::allocator_traits< typename AllocatorTraits< T >::type >::template rebind_alloc< X >
     
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,19 +1,35 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-bccsmatrix.hh File Reference\n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs\n+allocator.hh File Reference\n+#include \n+#include \n #include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs_\b<_\b _\bT_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b,_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bv_\bo_\bi_\bd_\b__\bt_\b<_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bT_\b:_\b:\n+ _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b _\b>\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL\n+T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be = typename _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs< T >::type\n+\u00a0\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be = typename std::allocator_traits< typename\n+ _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs< T >::type >::template rebind_alloc< X >\n \u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00035_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00035_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: bccsmatrix.hh Source File\n+dune-istl: allocator.hh Source File\n \n \n \n \n \n \n \n@@ -74,131 +74,76 @@\n \n
    \n \n
    \n
    \n
    \n-
    bccsmatrix.hh
    \n+
    allocator.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n-
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_BCCSMATRIX_HH
    \n-
    6#define DUNE_ISTL_BCCSMATRIX_HH
    \n-
    7
    \n-
    8#include <dune/common/fmatrix.hh>
    \n-
    9#include <dune/common/fvector.hh>
    \n-
    10#include <dune/common/typetraits.hh>
    \n-
    11
    \n-
    \n-
    12namespace Dune::ISTL::Impl
    \n-
    13{
    \n-
    27 template<class B, class I = typename std::allocator<B>::size_type>
    \n-
    28 class BCCSMatrix
    \n-
    29 {
    \n-
    30 public:
    \n-
    31 using Index = I;
    \n-
    32 using size_type = std::size_t;
    \n-
    33
    \n-
    36 BCCSMatrix()
    \n-
    37 : N_(0), M_(0), Nnz_(0), values(0), rowindex(0), colstart(0)
    \n-
    38 {}
    \n-
    39
    \n-
    41 ~BCCSMatrix()
    \n-
    42 {
    \n-
    43 if(N_+M_+Nnz_!=0)
    \n-
    44 free();
    \n-
    45 }
    \n-
    46
    \n-
    48 void setSize(size_type rows, size_type columns)
    \n-
    49 {
    \n-
    50 N_ = rows;
    \n-
    51 M_ = columns;
    \n-
    52 }
    \n-
    53
    \n-
    58 size_type N() const
    \n-
    59 {
    \n-
    60 return N_;
    \n-
    61 }
    \n-
    62
    \n-
    64 size_type nonzeroes() const
    \n-
    65 {
    \n-
    66 return Nnz_;
    \n-
    67 }
    \n-
    68
    \n-
    73 size_type M() const
    \n-
    74 {
    \n-
    75 return M_;
    \n-
    76 }
    \n-
    77
    \n-
    84 B* getValues() const
    \n-
    85 {
    \n-
    86 return values;
    \n-
    87 }
    \n-
    88
    \n-
    95 Index* getRowIndex() const
    \n-
    96 {
    \n-
    97 return rowindex;
    \n-
    98 }
    \n-
    99
    \n-
    106 Index* getColStart() const
    \n-
    107 {
    \n-
    108 return colstart;
    \n-
    109 }
    \n-
    110
    \n-
    112 BCCSMatrix& operator=(const BCCSMatrix& mat)
    \n-
    113 {
    \n-
    114 if(N_+M_+Nnz_!=0)
    \n-
    115 free();
    \n-
    116 N_=mat.N_;
    \n-
    117 M_=mat.M_;
    \n-
    118 Nnz_= mat.Nnz_;
    \n-
    119 if(M_>0) {
    \n-
    120 colstart=new size_type[M_+1];
    \n-
    121 for(size_type i=0; i<=M_; ++i)
    \n-
    122 colstart[i]=mat.colstart[i];
    \n-
    123 }
    \n-
    124
    \n-
    125 if(Nnz_>0) {
    \n-
    126 values = new B[Nnz_];
    \n-
    127 rowindex = new size_type[Nnz_];
    \n-
    128
    \n-
    129 for(size_type i=0; i<Nnz_; ++i)
    \n-
    130 values[i]=mat.values[i];
    \n-
    131
    \n-
    132 for(size_type i=0; i<Nnz_; ++i)
    \n-
    133 rowindex[i]=mat.rowindex[i];
    \n-
    134 }
    \n-
    135 return *this;
    \n-
    136 }
    \n-
    137
    \n-
    139 virtual void free()
    \n-
    140 {
    \n-
    141 delete[] values;
    \n-
    142 delete[] rowindex;
    \n-
    143 delete[] colstart;
    \n-
    144 N_ = 0;
    \n-
    145 M_ = 0;
    \n-
    146 Nnz_ = 0;
    \n-
    147 }
    \n-
    148
    \n-
    149 public:
    \n-
    150 size_type N_, M_, Nnz_;
    \n-
    151 B* values;
    \n-
    152 Index* rowindex;
    \n-
    153 Index* colstart;
    \n-
    154 };
    \n-
    155
    \n-
    156}
    \n-
    \n-
    157#endif
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    3#ifndef DUNE_ISTL_ALLOCATOR_HH
    \n+
    4#define DUNE_ISTL_ALLOCATOR_HH
    \n+
    5
    \n+
    6#include <memory>
    \n+
    7#include <type_traits>
    \n+
    8
    \n+
    9#include <dune/common/typetraits.hh>
    \n+
    10
    \n+
    \n+
    11namespace Dune {
    \n+
    12
    \n+
    13 template<typename T>
    \n+
    \n+
    14 struct exists{
    \n+
    15 static const bool value = true;
    \n+
    16 };
    \n+
    \n+
    17
    \n+
    18 template<typename T, typename = void>
    \n+
    \n+\n+
    20 {
    \n+
    21 using type = std::allocator<T>;
    \n+
    22 };
    \n+
    \n+
    23
    \n+
    24 template<typename T>
    \n+
    \n+
    25 struct DefaultAllocatorTraits<T, std::void_t<typename T::allocator_type> >
    \n+
    26 {
    \n+
    27 using type = typename T::allocator_type;
    \n+
    28 };
    \n+
    \n+
    29
    \n+
    30 template<typename T>
    \n+\n+
    32
    \n+
    33 template<typename T>
    \n+\n+
    35
    \n+
    36 template<typename T, typename X>
    \n+
    37 using ReboundAllocatorType = typename std::allocator_traits<typename AllocatorTraits<T>::type>::template rebind_alloc<X>;
    \n+
    38
    \n+
    39} // end namespace Dune
    \n+
    \n+
    40
    \n+
    41#endif // DUNE_ISTL_ALLOCATOR_HH
    \n+
    STL namespace.
    \n+
    Definition allocator.hh:11
    \n+
    typename std::allocator_traits< typename AllocatorTraits< T >::type >::template rebind_alloc< X > ReboundAllocatorType
    Definition allocator.hh:37
    \n+
    typename AllocatorTraits< T >::type AllocatorType
    Definition allocator.hh:34
    \n+
    Definition allocator.hh:14
    \n+
    static const bool value
    Definition allocator.hh:15
    \n+
    Definition allocator.hh:20
    \n+
    std::allocator< T > type
    Definition allocator.hh:21
    \n+
    typename T::allocator_type type
    Definition allocator.hh:27
    \n+
    Definition allocator.hh:31
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,125 +1,80 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-bccsmatrix.hh\n+allocator.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n-4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_BCCSMATRIX_HH\n-6#define DUNE_ISTL_BCCSMATRIX_HH\n-7\n-8#include \n-9#include \n-10#include \n-11\n-_\b1_\b2namespace Dune::ISTL::Impl\n-13{\n-27 template::size_type>\n-28 class BCCSMatrix\n-29 {\n-30 public:\n-31 using Index = I;\n-32 using size_type = std::size_t;\n-33\n-36 BCCSMatrix()\n-37 : N_(0), M_(0), Nnz_(0), values(0), rowindex(0), colstart(0)\n-38 {}\n-39\n-41 ~BCCSMatrix()\n-42 {\n-43 if(N_+M_+Nnz_!=0)\n-44 free();\n-45 }\n-46\n-48 void setSize(size_type rows, size_type columns)\n-49 {\n-50 N_ = rows;\n-51 M_ = columns;\n-52 }\n-53\n-58 size_type N() const\n-59 {\n-60 return N_;\n-61 }\n-62\n-64 size_type nonzeroes() const\n-65 {\n-66 return Nnz_;\n-67 }\n-68\n-73 size_type M() const\n-74 {\n-75 return M_;\n-76 }\n-77\n-84 B* getValues() const\n-85 {\n-86 return values;\n-87 }\n-88\n-95 Index* getRowIndex() const\n-96 {\n-97 return rowindex;\n-98 }\n-99\n-106 Index* getColStart() const\n-107 {\n-108 return colstart;\n-109 }\n-110\n-112 BCCSMatrix& operator=(const BCCSMatrix& _\bm_\ba_\bt)\n-113 {\n-114 if(N_+M_+Nnz_!=0)\n-115 free();\n-116 N_=_\bm_\ba_\bt.N_;\n-117 M_=_\bm_\ba_\bt.M_;\n-118 Nnz_= _\bm_\ba_\bt.Nnz_;\n-119 if(M_>0) {\n-120 colstart=new size_type[M_+1];\n-121 for(size_type i=0; i<=M_; ++i)\n-122 colstart[i]=_\bm_\ba_\bt.colstart[i];\n-123 }\n-124\n-125 if(Nnz_>0) {\n-126 values = new B[Nnz_];\n-127 rowindex = new size_type[Nnz_];\n-128\n-129 for(size_type i=0; i\n+7#include \n+8\n+9#include \n+10\n+_\b1_\b1namespace _\bD_\bu_\bn_\be {\n+12\n+13 template\n+_\b1_\b4 struct _\be_\bx_\bi_\bs_\bt_\bs{\n+_\b1_\b5 static const bool _\bv_\ba_\bl_\bu_\be = true;\n+16 };\n+17\n+18 template\n+_\b1_\b9 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs\n+20 {\n+_\b2_\b1 using _\bt_\by_\bp_\be = std::allocator;\n+22 };\n+23\n+24 template\n+_\b2_\b5 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs >\n+26 {\n+_\b2_\b7 using _\bt_\by_\bp_\be = typename T::allocator_type;\n+28 };\n+29\n+30 template\n+_\b3_\b1 struct _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs : public _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs {};\n+32\n+33 template\n+_\b3_\b4 using _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be = typename _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be;\n+35\n+36 template\n+_\b3_\b7 using _\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be = typename std::allocator_traits::type>::template rebind_alloc;\n+38\n+39} // end namespace Dune\n+40\n+41#endif // DUNE_ISTL_ALLOCATOR_HH\n+_\bs_\bt_\bd\n+STL namespace.\n+_\bD_\bu_\bn_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n+typename std::allocator_traits< typename AllocatorTraits< T >::type >::template\n+rebind_alloc< X > ReboundAllocatorType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n+typename AllocatorTraits< T >::type AllocatorType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:14\n+_\bD_\bu_\bn_\be_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+static const bool value\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:15\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:20\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bt_\by_\bp_\be\n+std::allocator< T > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:21\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bv_\bo_\bi_\bd_\b__\bt_\b<_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bT_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be_\b _\b>_\b _\b>_\b:_\b:\n+_\bt_\by_\bp_\be\n+typename T::allocator_type type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:31\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00038.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00038.html", "unified_diff": "@@ -77,17 +77,17 @@\n Classes |\n Namespaces |\n Macros |\n Functions \n
    solverregistry.hh File Reference
    \n \n
    \n-
    #include <dune/istl/common/registry.hh>
    \n-#include <dune/istl/preconditioner.hh>
    \n-#include <dune/istl/solver.hh>
    \n+\n

    Go to the source code of this file.

    \n \n \n \n \n@@ -97,19 +97,19 @@\n \n \n \n

    \n Classes

    class  Dune::UnsupportedType
     

    \n Namespaces

    namespace  Dune
     
    \n \n-\n+\n \n-\n+\n \n-\n+\n \n

    \n Macros

    #define DUNE_REGISTER_DIRECT_SOLVER(name, ...)    DUNE_REGISTRY_PUT(DirectSolverTag, name, __VA_ARGS__)
    #define DUNE_REGISTER_DIRECT_SOLVER(name, ...)    DUNE_REGISTRY_PUT(DirectSolverTag, name, __VA_ARGS__)
     
    #define DUNE_REGISTER_PRECONDITIONER(name, ...)    DUNE_REGISTRY_PUT(PreconditionerTag, name, __VA_ARGS__)
    #define DUNE_REGISTER_PRECONDITIONER(name, ...)    DUNE_REGISTRY_PUT(PreconditionerTag, name, __VA_ARGS__)
     
    #define DUNE_REGISTER_ITERATIVE_SOLVER(name, ...)    DUNE_REGISTRY_PUT(IterativeSolverTag, name, __VA_ARGS__)
    #define DUNE_REGISTER_ITERATIVE_SOLVER(name, ...)    DUNE_REGISTRY_PUT(IterativeSolverTag, name, __VA_ARGS__)
     
    \n \n \n \n \n@@ -138,15 +138,15 @@\n \n \n \n \n \n \n \n- \n+ \n \n

    \n Functions

    template<template< class, class, class, int >class Preconditioner, int blockLevel = 1>
    auto Dune::defaultPreconditionerBlockLevelCreator ()
     
     ... 
    )    DUNE_REGISTRY_PUT(DirectSolverTag, name, __VA_ARGS__)    DUNE_REGISTRY_PUT(DirectSolverTag, name, __VA_ARGS__)
    \n
    \n \n
    \n
    \n \n@@ -166,15 +166,15 @@\n \n  \n ... \n \n \n \n )\n-     DUNE_REGISTRY_PUT(IterativeSolverTag, name, __VA_ARGS__)\n+     DUNE_REGISTRY_PUT(IterativeSolverTag, name, __VA_ARGS__)\n \n \n
    \n \n
    \n \n \n@@ -194,15 +194,15 @@\n \n  \n ... \n \n \n \n )\n-     DUNE_REGISTRY_PUT(PreconditionerTag, name, __VA_ARGS__)\n+     DUNE_REGISTRY_PUT(PreconditionerTag, name, __VA_ARGS__)\n \n \n
    \n \n
    \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00038_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00038_source.html", "unified_diff": "@@ -85,17 +85,17 @@\n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n
    5
    \n
    6#ifndef DUNE_ISTL_SOLVERREGISTRY_HH
    \n
    7#define DUNE_ISTL_SOLVERREGISTRY_HH
    \n
    8
    \n-\n-\n-
    11#include <dune/istl/solver.hh>
    \n+\n+\n+
    11#include <dune/istl/solver.hh>
    \n
    12
    \n
    \n
    13#define DUNE_REGISTER_DIRECT_SOLVER(name, ...) \\
    \n
    14 DUNE_REGISTRY_PUT(DirectSolverTag, name, __VA_ARGS__)
    \n
    \n
    15
    \n
    \n@@ -167,17 +167,17 @@\n
    76 */
    \n
    77 class UnsupportedType : public NotImplemented {};
    \n
    78
    \n
    79 class InvalidSolverFactoryConfiguration : public InvalidStateException{};
    \n
    80} // end namespace Dune
    \n
    81
    \n
    82#endif // DUNE_ISTL_SOLVERREGISTRY_HH
    \n-\n-\n-
    Define general, extensible interface for inverse operators.
    \n+\n+\n+
    Define general, extensible interface for inverse operators.
    \n
    auto defaultIterativeSolverCreator()
    Definition solverregistry.hh:59
    \n
    auto defaultPreconditionerBlockLevelCreator()
    Definition solverregistry.hh:33
    \n
    auto defaultPreconditionerCreator()
    Definition solverregistry.hh:46
    \n
    Definition allocator.hh:11
    \n
    constexpr std::size_t blockLevel()
    Determine the block level of a possibly nested vector/matrix type.
    Definition blocklevel.hh:176
    \n
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n
    Definition solverregistry.hh:77
    \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -86,16 +86,16 @@\n 76 */\n _\b7_\b7 class _\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be : public NotImplemented {};\n 78\n _\b7_\b9 class _\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\bC_\bo_\bn_\bf_\bi_\bg_\bu_\br_\ba_\bt_\bi_\bo_\bn : public InvalidStateException{};\n 80} // end namespace Dune\n 81\n 82#endif // DUNE_ISTL_SOLVERREGISTRY_HH\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\n _\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\n _\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n Define general, extensible interface for inverse operators.\n _\bD_\bu_\bn_\be_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br\n auto defaultIterativeSolverCreator()\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:59\n _\bD_\bu_\bn_\be_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br\n auto defaultPreconditionerBlockLevelCreator()\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00041.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00041.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: scalarproducts.hh File Reference\n+dune-istl: multitypeblockvector.hh File Reference\n \n \n \n \n \n \n \n@@ -73,69 +73,56 @@\n
    \n \n
    \n \n- \n+
    multitypeblockvector.hh File Reference
    \n
    \n
    \n-\n-

    Define base class for scalar product and norm. \n-More...

    \n
    #include <cmath>
    \n-#include <complex>
    \n #include <iostream>
    \n-#include <iomanip>
    \n-#include <string>
    \n-#include <memory>
    \n-#include <dune/common/exceptions.hh>
    \n-#include <dune/common/shared_ptr.hh>
    \n-#include "bvector.hh"
    \n-#include "solvercategory.hh"
    \n+#include <tuple>
    \n+#include <dune/common/dotproduct.hh>
    \n+#include <dune/common/ftraits.hh>
    \n+#include <dune/common/hybridutilities.hh>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/std/type_traits.hh>
    \n+#include "istlexception.hh"
    \n+#include "gsetc.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n+\n \n-\n-\n+\n+\n \n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::ScalarProduct< X >
     Base class for scalar product and norm computation. More...
     
    class  Dune::ParallelScalarProduct< X, C >
     Scalar product for overlapping Schwarz methods. More...
    struct  Dune::FieldTraits< MultiTypeBlockVector< Args... > >
     
    class  Dune::SeqScalarProduct< X >
     Default implementation for the scalar case. More...
    class  Dune::MultiTypeBlockVector< Args >
     A Vector class to support different block types. More...
     
    class  Dune::NonoverlappingSchwarzScalarProduct< X, C >
     Nonoverlapping Scalar Product with communication object. More...
     
    class  Dune::OverlappingSchwarzScalarProduct< X, C >
     Scalar product for overlapping Schwarz methods. More...
    struct  std::tuple_element< i, Dune::MultiTypeBlockVector< Args... > >
     Make std::tuple_element work for MultiTypeBlockVector. More...
     
    \n \n \n \n+\n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  std
     STL namespace.
     
    \n \n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n

    \n Functions

    template<class X , class Comm >
    std::shared_ptr< ScalarProduct< X > > Dune::makeScalarProduct (std::shared_ptr< const Comm > comm, SolverCategory::Category category)
     Choose the approriate scalar product for a solver category.
     
    template<class X , class Comm >
    std::shared_ptr< ScalarProduct< X > > Dune::createScalarProduct (const Comm &comm, SolverCategory::Category category)
     
    template<typename... Args>
    std::ostream & Dune::operator<< (std::ostream &s, const MultiTypeBlockVector< Args... > &v)
     Send MultiTypeBlockVector to an outstream.
     
    \n-

    Detailed Description

    \n-

    Define base class for scalar product and norm.

    \n-

    These classes have to be implemented differently for different data partitioning strategies. Default implementations for the sequential case are provided.

    \n-
    \n+\n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,60 +1,42 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-scalarproducts.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bS_\bc_\ba_\bl_\ba_\br_\b _\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs\n-Define base class for scalar product and norm. _\bM_\bo_\br_\be_\b._\b._\b.\n+multitypeblockvector.hh File Reference\n #include \n-#include \n #include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bX_\b _\b>\n-\u00a0 Base class for scalar product and norm computation. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bX_\b,_\b _\bC_\b _\b>\n-\u00a0 Scalar product for overlapping Schwarz methods. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b _\b>\n+\u00a0 A Vector class to support different block types. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bX_\b _\b>\n-\u00a0 Default implementation for the scalar case. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bX_\b,_\b _\bC_\b _\b>\n-\u00a0 Nonoverlapping Scalar Product with communication object. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bX_\b,_\b _\bC_\b _\b>\n-\u00a0 Scalar product for overlapping Schwarz methods. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b__\be_\bl_\be_\bm_\be_\bn_\bt_\b<_\b _\bi_\b,_\b _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>\n+\u00a0 Make std::tuple_element work for MultiTypeBlockVector. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+namespace \u00a0 _\bs_\bt_\bd\n+\u00a0 STL namespace.\n+\u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-std::shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bk_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (std::\n- shared_ptr< const Comm > comm,\n- _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category)\n-\u00a0 Choose the approriate scalar product for\n- a solver category.\n-\u00a0\n-template\n-std::shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const Comm\n- &comm, _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n- category)\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Define base class for scalar product and norm.\n-These classes have to be implemented differently for different data\n-partitioning strategies. Default implementations for the sequential case are\n-provided.\n+template\n+std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &s, const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br<\n+ Args... > &v)\n+\u00a0 Send _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br to an outstream.\n+\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00041_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00041_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: scalarproducts.hh Source File\n+dune-istl: multitypeblockvector.hh Source File\n \n \n \n \n \n \n \n@@ -74,224 +74,354 @@\n \n
    \n \n
    \n \n
    \n-
    scalarproducts.hh
    \n+
    multitypeblockvector.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_SCALARPRODUCTS_HH
    \n-
    6#define DUNE_ISTL_SCALARPRODUCTS_HH
    \n+
    5#ifndef DUNE_ISTL_MULTITYPEBLOCKVECTOR_HH
    \n+
    6#define DUNE_ISTL_MULTITYPEBLOCKVECTOR_HH
    \n
    7
    \n
    8#include <cmath>
    \n-
    9#include <complex>
    \n-
    10#include <iostream>
    \n-
    11#include <iomanip>
    \n-
    12#include <string>
    \n-
    13#include <memory>
    \n-
    14
    \n-
    15#include <dune/common/exceptions.hh>
    \n-
    16#include <dune/common/shared_ptr.hh>
    \n+
    9#include <iostream>
    \n+
    10#include <tuple>
    \n+
    11
    \n+
    12#include <dune/common/dotproduct.hh>
    \n+
    13#include <dune/common/ftraits.hh>
    \n+
    14#include <dune/common/hybridutilities.hh>
    \n+
    15#include <dune/common/typetraits.hh>
    \n+
    16#include <dune/common/std/type_traits.hh>
    \n
    17
    \n-
    18#include "bvector.hh"
    \n-
    19#include "solvercategory.hh"
    \n-
    20
    \n-
    21
    \n-
    22namespace Dune {
    \n-
    51 template<class X>
    \n-
    \n-\n-
    53 public:
    \n-
    55 typedef X domain_type;
    \n-
    56 typedef typename X::field_type field_type;
    \n-
    57 typedef typename FieldTraits<field_type>::real_type real_type;
    \n-
    58
    \n-
    \n-
    63 virtual field_type dot (const X& x, const X& y) const
    \n-
    64 {
    \n-
    65 return x.dot(y);
    \n-
    66 }
    \n-
    \n-
    67
    \n-
    \n-
    71 virtual real_type norm (const X& x) const
    \n-
    72 {
    \n-
    73 return x.two_norm();
    \n-
    74 }
    \n-
    \n-
    75
    \n-
    \n-\n-
    78 {
    \n-\n-
    80 }
    \n-
    \n-
    81
    \n-
    83 virtual ~ScalarProduct () {}
    \n-
    84 };
    \n-
    \n-
    85
    \n-
    97 template<class X, class C>
    \n-
    \n-\n-
    99 {
    \n-
    100 public:
    \n-
    105 typedef X domain_type;
    \n-
    107 typedef typename X::field_type field_type;
    \n-
    108 typedef typename FieldTraits<field_type>::real_type real_type;
    \n-\n-
    114
    \n-
    \n-
    120 ParallelScalarProduct (std::shared_ptr<const communication_type> com, SolverCategory::Category cat)
    \n-
    121 : _communication(com), _category(cat)
    \n-
    122 {}
    \n-
    \n-
    123
    \n-
    \n-\n-
    131 : ParallelScalarProduct(stackobject_to_shared_ptr(com), cat)
    \n-
    132 {}
    \n-
    \n-
    133
    \n-
    134
    \n-
    \n-
    139 virtual field_type dot (const X& x, const X& y) const override
    \n-
    140 {
    \n-
    141 field_type result(0);
    \n-
    142 _communication->dot(x,y,result); // explicitly loop and apply masking
    \n-
    143 return result;
    \n-
    144 }
    \n+
    18#include "istlexception.hh"
    \n+
    19
    \n+
    20// forward declaration
    \n+
    21namespace Dune {
    \n+
    22 template < typename... Args >
    \n+
    23 class MultiTypeBlockVector;
    \n+
    24}
    \n+
    25
    \n+
    26#include "gsetc.hh"
    \n+
    27
    \n+
    28namespace Dune {
    \n+
    29
    \n+
    41 template <typename... Args>
    \n+
    \n+
    42 struct FieldTraits< MultiTypeBlockVector<Args...> >
    \n+
    43 {
    \n+
    44 using field_type = typename MultiTypeBlockVector<Args...>::field_type;
    \n+
    45 using real_type = typename FieldTraits<field_type>::real_type;
    \n+
    46 };
    \n+
    \n+
    56 template < typename... Args >
    \n+
    \n+\n+
    58 : public std::tuple<Args...>
    \n+
    59 {
    \n+
    61 typedef std::tuple<Args...> TupleType;
    \n+
    62 public:
    \n+
    63
    \n+
    65 using size_type = std::size_t;
    \n+
    66
    \n+
    70 using TupleType::TupleType;
    \n+
    71
    \n+
    75 typedef MultiTypeBlockVector<Args...> type;
    \n+
    76
    \n+
    82 using field_type = Std::detected_t<std::common_type_t, typename FieldTraits< std::decay_t<Args> >::field_type...>;
    \n+
    83
    \n+
    84 // make sure that we have an std::common_type: using an assertion produces a more readable error message
    \n+
    85 // than a compiler template instantiation error
    \n+
    86 static_assert ( sizeof...(Args) == 0 or not std::is_same_v<field_type, Std::nonesuch>,
    \n+
    87 "No std::common_type implemented for the given field_types of the Args. Please provide an implementation and check that a FieldTraits class is present for your type.");
    \n+
    88
    \n+
    89
    \n+
    \n+
    95 static constexpr size_type size()
    \n+
    96 {
    \n+
    97 return sizeof...(Args);
    \n+
    98 }
    \n+
    \n+
    99
    \n+
    \n+
    102 static constexpr size_type N()
    \n+
    103 {
    \n+
    104 return sizeof...(Args);
    \n+
    105 }
    \n+
    \n+
    106
    \n+
    113 [[deprecated("Use method 'N' instead")]]
    \n+
    \n+
    114 int count() const
    \n+
    115 {
    \n+
    116 return sizeof...(Args);
    \n+
    117 }
    \n
    \n-
    145
    \n+
    118
    \n+
    \n+\n+
    121 {
    \n+
    122 size_type result = 0;
    \n+
    123 Hybrid::forEach(std::make_index_sequence<N()>{},
    \n+
    124 [&](auto i){result += std::get<i>(*this).dim();});
    \n+
    125
    \n+
    126 return result;
    \n+
    127 }
    \n+
    \n+
    128
    \n+
    147 template< size_type index >
    \n+
    148 typename std::tuple_element<index,TupleType>::type&
    \n
    \n-
    149 virtual real_type norm (const X& x) const override
    \n-
    150 {
    \n-
    151 return _communication->norm(x);
    \n+
    149 operator[] ([[maybe_unused]] const std::integral_constant< size_type, index > indexVariable)
    \n+
    150 {
    \n+
    151 return std::get<index>(*this);
    \n
    152 }
    \n
    \n
    153
    \n-
    \n-
    155 virtual SolverCategory::Category category() const override
    \n-
    156 {
    \n-
    157 return _category;
    \n-
    158 }
    \n-
    \n-
    159
    \n-
    160 private:
    \n-
    161 std::shared_ptr<const communication_type> _communication;
    \n-
    162 SolverCategory::Category _category;
    \n-
    163 };
    \n-
    \n-
    164
    \n-
    166 template<class X>
    \n-
    \n-\n-
    168 {
    \n-
    169 using ScalarProduct<X>::ScalarProduct;
    \n-
    170 };
    \n-
    \n-
    171
    \n-
    177 template<class X, class C>
    \n-
    \n-\n-
    179 {
    \n-
    180 public:
    \n-
    \n-
    181 NonoverlappingSchwarzScalarProduct (std::shared_ptr<const C> comm) :
    \n-
    182 ParallelScalarProduct<X,C>(comm,SolverCategory::nonoverlapping) {}
    \n-
    \n-
    183
    \n-
    \n-\n-
    185 ParallelScalarProduct<X,C>(comm,SolverCategory::nonoverlapping) {}
    \n-
    \n-
    186 };
    \n-
    \n-
    187
    \n-
    199 template<class X, class C>
    \n-
    \n-\n-
    201 {
    \n-
    202 public:
    \n-
    \n-
    203 OverlappingSchwarzScalarProduct (std::shared_ptr<const C> comm) :
    \n-
    204 ParallelScalarProduct<X,C>(comm, SolverCategory::overlapping) {}
    \n-
    \n-
    205
    \n-
    \n-\n-
    207 ParallelScalarProduct<X,C>(comm,SolverCategory::overlapping) {}
    \n-
    \n-
    208 };
    \n-
    \n-
    209
    \n-
    223 template<class X, class Comm>
    \n-
    \n-
    224 std::shared_ptr<ScalarProduct<X>> makeScalarProduct(std::shared_ptr<const Comm> comm, SolverCategory::Category category)
    \n-
    225 {
    \n-
    226 switch(category)
    \n-
    227 {
    \n-\n-
    229 return
    \n-
    230 std::make_shared<ScalarProduct<X>>();
    \n-
    231 default:
    \n-
    232 return
    \n-
    233 std::make_shared<ParallelScalarProduct<X,Comm>>(comm,category);
    \n+
    159 template< size_type index >
    \n+
    160 const typename std::tuple_element<index,TupleType>::type&
    \n+
    \n+
    161 operator[] ([[maybe_unused]] const std::integral_constant< size_type, index > indexVariable) const
    \n+
    162 {
    \n+
    163 return std::get<index>(*this);
    \n+
    164 }
    \n+
    \n+
    165
    \n+
    168 template<typename T>
    \n+
    \n+
    169 void operator= (const T& newval) {
    \n+
    170 Dune::Hybrid::forEach(*this, [&](auto&& entry) {
    \n+
    171 entry = newval;
    \n+
    172 });
    \n+
    173 }
    \n+
    \n+
    174
    \n+
    \n+
    178 void operator+= (const type& newv) {
    \n+
    179 using namespace Dune::Hybrid;
    \n+
    180 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {
    \n+
    181 (*this)[i] += newv[i];
    \n+
    182 });
    \n+
    183 }
    \n+
    \n+
    184
    \n+
    \n+
    188 void operator-= (const type& newv) {
    \n+
    189 using namespace Dune::Hybrid;
    \n+
    190 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {
    \n+
    191 (*this)[i] -= newv[i];
    \n+
    192 });
    \n+
    193 }
    \n+
    \n+
    194
    \n+
    196 template<class T,
    \n+
    197 std::enable_if_t< IsNumber<T>::value, int> = 0>
    \n+
    \n+
    198 void operator*= (const T& w) {
    \n+
    199 Hybrid::forEach(*this, [&](auto&& entry) {
    \n+
    200 entry *= w;
    \n+
    201 });
    \n+
    202 }
    \n+
    \n+
    203
    \n+
    205 template<class T,
    \n+
    206 std::enable_if_t< IsNumber<T>::value, int> = 0>
    \n+
    \n+
    207 void operator/= (const T& w) {
    \n+
    208 Hybrid::forEach(*this, [&](auto&& entry) {
    \n+
    209 entry /= w;
    \n+
    210 });
    \n+
    211 }
    \n+
    \n+
    212
    \n+
    \n+
    213 field_type operator* (const type& newv) const {
    \n+
    214 using namespace Dune::Hybrid;
    \n+
    215 return accumulate(integralRange(Hybrid::size(*this)), field_type(0), [&](auto&& a, auto&& i) {
    \n+
    216 return a + (*this)[i]*newv[i];
    \n+
    217 });
    \n+
    218 }
    \n+
    \n+
    219
    \n+
    \n+
    220 field_type dot (const type& newv) const {
    \n+
    221 using namespace Dune::Hybrid;
    \n+
    222 return accumulate(integralRange(Hybrid::size(*this)), field_type(0), [&](auto&& a, auto&& i) {
    \n+
    223 return a + (*this)[i].dot(newv[i]);
    \n+
    224 });
    \n+
    225 }
    \n+
    \n+
    226
    \n+
    \n+
    229 auto one_norm() const {
    \n+
    230 using namespace Dune::Hybrid;
    \n+
    231 return accumulate(*this, typename FieldTraits<field_type>::real_type(0), [&](auto&& a, auto&& entry) {
    \n+
    232 return a + entry.one_norm();
    \n+
    233 });
    \n
    234 }
    \n-
    235 }
    \n
    \n-
    236
    \n-
    241 template<class X, class Comm>
    \n-
    \n-
    242 std::shared_ptr<ScalarProduct<X>> createScalarProduct(const Comm& comm, SolverCategory::Category category)
    \n-
    243 { return makeScalarProduct<X>(stackobject_to_shared_ptr(comm), category); }
    \n+
    235
    \n+
    \n+
    238 auto one_norm_real() const {
    \n+
    239 using namespace Dune::Hybrid;
    \n+
    240 return accumulate(*this, typename FieldTraits<field_type>::real_type(0), [&](auto&& a, auto&& entry) {
    \n+
    241 return a + entry.one_norm_real();
    \n+
    242 });
    \n+
    243 }
    \n
    \n
    244
    \n-
    245} // end namespace Dune
    \n-
    246
    \n-
    247#endif
    \n-\n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    \n+
    247 typename FieldTraits<field_type>::real_type two_norm2() const {
    \n+
    248 using namespace Dune::Hybrid;
    \n+
    249 return accumulate(*this, typename FieldTraits<field_type>::real_type(0), [&](auto&& a, auto&& entry) {
    \n+
    250 return a + entry.two_norm2();
    \n+
    251 });
    \n+
    252 }
    \n+
    \n+
    253
    \n+
    256 typename FieldTraits<field_type>::real_type two_norm() const {return sqrt(this->two_norm2());}
    \n+
    257
    \n+
    \n+
    260 typename FieldTraits<field_type>::real_type infinity_norm() const
    \n+
    261 {
    \n+
    262 using namespace Dune::Hybrid;
    \n+
    263 using std::max;
    \n+
    264 using real_type = typename FieldTraits<field_type>::real_type;
    \n+
    265
    \n+
    266 real_type result = 0.0;
    \n+
    267 // Compute max norm tracking appearing nan values
    \n+
    268 // if the field type supports nan.
    \n+
    269 if constexpr (HasNaN<field_type>()) {
    \n+
    270 // This variable will preserve any nan value
    \n+
    271 real_type nanTracker = 1.0;
    \n+
    272 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    273 forEach(*this, [&](auto&& entry) {
    \n+
    274 real_type entryNorm = entry.infinity_norm();
    \n+
    275 result = max(entryNorm, result);
    \n+
    276 nanTracker += entryNorm;
    \n+
    277 });
    \n+
    278 // Incorporate possible nan value into result
    \n+
    279 result *= (nanTracker / nanTracker);
    \n+
    280 } else {
    \n+
    281 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    282 forEach(*this, [&](auto&& entry) {
    \n+
    283 result = max(entry.infinity_norm(), result);
    \n+
    284 });
    \n+
    285 }
    \n+
    286 return result;
    \n+
    287 }
    \n+
    \n+
    288
    \n+
    \n+
    291 typename FieldTraits<field_type>::real_type infinity_norm_real() const
    \n+
    292 {
    \n+
    293 using namespace Dune::Hybrid;
    \n+
    294 using std::max;
    \n+
    295 using real_type = typename FieldTraits<field_type>::real_type;
    \n+
    296
    \n+
    297 real_type result = 0.0;
    \n+
    298 // Compute max norm tracking appearing nan values
    \n+
    299 // if the field type supports nan.
    \n+
    300 if constexpr (HasNaN<field_type>()) {
    \n+
    301 // This variable will preserve any nan value
    \n+
    302 real_type nanTracker = 1.0;
    \n+
    303 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    304 forEach(*this, [&](auto&& entry) {
    \n+
    305 real_type entryNorm = entry.infinity_norm_real();
    \n+
    306 result = max(entryNorm, result);
    \n+
    307 nanTracker += entryNorm;
    \n+
    308 });
    \n+
    309 // Incorporate possible nan value into result
    \n+
    310 result *= (nanTracker / nanTracker);
    \n+
    311 } else {
    \n+
    312 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    313 forEach(*this, [&](auto&& entry) {
    \n+
    314 result = max(entry.infinity_norm_real(), result);
    \n+
    315 });
    \n+
    316 }
    \n+
    317 return result;
    \n+
    318 }
    \n+
    \n+
    319
    \n+
    324 template<typename Ta>
    \n+
    \n+
    325 void axpy (const Ta& a, const type& y) {
    \n+
    326 using namespace Dune::Hybrid;
    \n+
    327 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {
    \n+
    328 (*this)[i].axpy(a, y[i]);
    \n+
    329 });
    \n+
    330 }
    \n+
    \n+
    331
    \n+
    332 };
    \n+
    \n+
    333
    \n+
    334
    \n+
    335
    \n+
    338 template <typename... Args>
    \n+
    \n+
    339 std::ostream& operator<< (std::ostream& s, const MultiTypeBlockVector<Args...>& v) {
    \n+
    340 using namespace Dune::Hybrid;
    \n+
    341 forEach(integralRange(Dune::Hybrid::size(v)), [&](auto&& i) {
    \n+
    342 s << "\\t(" << i << "):\\n" << v[i] << "\\n";
    \n+
    343 });
    \n+
    344 return s;
    \n+
    345 }
    \n+
    \n+
    346
    \n+
    347} // end namespace Dune
    \n+
    348
    \n+
    349namespace std
    \n+
    350{
    \n+
    355 template <size_t i, typename... Args>
    \n+
    \n+
    356 struct tuple_element<i,Dune::MultiTypeBlockVector<Args...> >
    \n+
    357 {
    \n+
    358 using type = typename std::tuple_element<i, std::tuple<Args...> >::type;
    \n+
    359 };
    \n+
    \n+
    360}
    \n+
    361
    \n+
    362#endif
    \n+\n+
    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
    \n+
    void operator=(const T &newval)
    Assignment operator.
    Definition multitypeblockvector.hh:169
    \n+
    std::size_t size_type
    Type used for vector sizes.
    Definition multitypeblockvector.hh:65
    \n+
    typename FieldTraits< field_type >::real_type real_type
    Definition multitypeblockvector.hh:45
    \n+
    int count() const
    Definition multitypeblockvector.hh:114
    \n+
    static constexpr size_type N()
    Number of elements.
    Definition multitypeblockvector.hh:102
    \n+
    Std::detected_t< std::common_type_t, typename FieldTraits< std::decay_t< Args > >::field_type... > field_type
    The type used for scalars.
    Definition multitypeblockvector.hh:82
    \n+
    static constexpr size_type size()
    Return the number of non-zero vector entries.
    Definition multitypeblockvector.hh:95
    \n+
    std::tuple_element< index, TupleType >::type & operator[](const std::integral_constant< size_type, index > indexVariable)
    Random-access operator.
    Definition multitypeblockvector.hh:149
    \n+
    FieldTraits< field_type >::real_type two_norm() const
    Compute the Euclidean norm.
    Definition multitypeblockvector.hh:256
    \n+
    typename MultiTypeBlockVector< Args... >::field_type field_type
    Definition multitypeblockvector.hh:44
    \n+
    size_type dim() const
    Number of scalar elements.
    Definition multitypeblockvector.hh:120
    \n+
    field_type dot(const type &newv) const
    Definition multitypeblockvector.hh:220
    \n+
    void operator*=(const T &w)
    Multiplication with a scalar.
    Definition multitypeblockvector.hh:198
    \n+
    void axpy(const Ta &a, const type &y)
    Axpy operation on this vector (*this += a * y)
    Definition multitypeblockvector.hh:325
    \n+
    void operator/=(const T &w)
    Division by a scalar.
    Definition multitypeblockvector.hh:207
    \n+
    MultiTypeBlockVector< Args... > type
    Definition multitypeblockvector.hh:75
    \n+
    FieldTraits< field_type >::real_type infinity_norm_real() const
    Compute the simplified maximum norm (uses 1-norm for complex values)
    Definition multitypeblockvector.hh:291
    \n+
    auto one_norm() const
    Compute the 1-norm.
    Definition multitypeblockvector.hh:229
    \n+
    void operator-=(const type &newv)
    Definition multitypeblockvector.hh:188
    \n+
    field_type operator*(const type &newv) const
    Definition multitypeblockvector.hh:213
    \n+
    void operator+=(const type &newv)
    Definition multitypeblockvector.hh:178
    \n+
    typename std::tuple_element< i, std::tuple< Args... > >::type type
    Definition multitypeblockvector.hh:358
    \n+
    FieldTraits< field_type >::real_type infinity_norm() const
    Compute the maximum norm.
    Definition multitypeblockvector.hh:260
    \n+
    auto one_norm_real() const
    Compute the simplified 1-norm (uses 1-norm also for complex values)
    Definition multitypeblockvector.hh:238
    \n+
    FieldTraits< field_type >::real_type two_norm2() const
    Compute the squared Euclidean norm.
    Definition multitypeblockvector.hh:247
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n-
    std::shared_ptr< ScalarProduct< X > > createScalarProduct(const Comm &comm, SolverCategory::Category category)
    Definition scalarproducts.hh:242
    \n-
    std::shared_ptr< ScalarProduct< X > > makeScalarProduct(std::shared_ptr< const Comm > comm, SolverCategory::Category category)
    Choose the approriate scalar product for a solver category.
    Definition scalarproducts.hh:224
    \n-
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n-
    virtual field_type dot(const X &x, const X &y) const
    Dot product of two vectors. It is assumed that the vectors are consistent on the interior+border part...
    Definition scalarproducts.hh:63
    \n-
    virtual SolverCategory::Category category() const
    Category of the scalar product (see SolverCategory::Category)
    Definition scalarproducts.hh:77
    \n-
    X::field_type field_type
    Definition scalarproducts.hh:56
    \n-
    X domain_type
    export types, they come from the derived class
    Definition scalarproducts.hh:55
    \n-
    virtual ~ScalarProduct()
    every abstract base class has a virtual destructor
    Definition scalarproducts.hh:83
    \n-
    FieldTraits< field_type >::real_type real_type
    Definition scalarproducts.hh:57
    \n-
    virtual real_type norm(const X &x) const
    Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.
    Definition scalarproducts.hh:71
    \n-
    Scalar product for overlapping Schwarz methods.
    Definition scalarproducts.hh:99
    \n-
    virtual field_type dot(const X &x, const X &y) const override
    Dot product of two vectors. It is assumed that the vectors are consistent on the interior+border part...
    Definition scalarproducts.hh:139
    \n-
    virtual SolverCategory::Category category() const override
    Category of the scalar product (see SolverCategory::Category)
    Definition scalarproducts.hh:155
    \n-
    FieldTraits< field_type >::real_type real_type
    Definition scalarproducts.hh:108
    \n-
    C communication_type
    The type of the communication object.
    Definition scalarproducts.hh:113
    \n-
    ParallelScalarProduct(const communication_type &com, SolverCategory::Category cat)
    Definition scalarproducts.hh:130
    \n-
    X domain_type
    The type of the vector to compute the scalar product on.
    Definition scalarproducts.hh:105
    \n-
    ParallelScalarProduct(std::shared_ptr< const communication_type > com, SolverCategory::Category cat)
    Definition scalarproducts.hh:120
    \n-
    X::field_type field_type
    The field type used by the vector type domain_type.
    Definition scalarproducts.hh:107
    \n-
    virtual real_type norm(const X &x) const override
    Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.
    Definition scalarproducts.hh:149
    \n-
    Default implementation for the scalar case.
    Definition scalarproducts.hh:168
    \n-
    Nonoverlapping Scalar Product with communication object.
    Definition scalarproducts.hh:179
    \n-
    NonoverlappingSchwarzScalarProduct(std::shared_ptr< const C > comm)
    Definition scalarproducts.hh:181
    \n-
    NonoverlappingSchwarzScalarProduct(const C &comm)
    Definition scalarproducts.hh:184
    \n-
    Scalar product for overlapping Schwarz methods.
    Definition scalarproducts.hh:201
    \n-
    OverlappingSchwarzScalarProduct(std::shared_ptr< const C > comm)
    Definition scalarproducts.hh:203
    \n-
    OverlappingSchwarzScalarProduct(const C &comm)
    Definition scalarproducts.hh:206
    \n-
    Categories for the solvers.
    Definition solvercategory.hh:22
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n+
    std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)
    Send BlockVector to an output stream.
    Definition bvector.hh:590
    \n+
    A Vector class to support different block types.
    Definition multitypeblockvector.hh:59
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,269 +1,393 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-scalarproducts.hh\n+multitypeblockvector.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_SCALARPRODUCTS_HH\n-6#define DUNE_ISTL_SCALARPRODUCTS_HH\n+5#ifndef DUNE_ISTL_MULTITYPEBLOCKVECTOR_HH\n+6#define DUNE_ISTL_MULTITYPEBLOCKVECTOR_HH\n 7\n 8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14\n-15#include \n-16#include \n+9#include \n+10#include \n+11\n+12#include \n+13#include \n+14#include \n+15#include \n+16#include \n 17\n-18#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-19#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n-20\n-21\n-22namespace _\bD_\bu_\bn_\be {\n-51 template\n-_\b5_\b2 class _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt {\n-53 public:\n-_\b5_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b5_\b6 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b5_\b7 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-58\n-_\b6_\b3 virtual _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bd_\bo_\bt (const X& x, const X& y) const\n-64 {\n-65 return x.dot(y);\n-66 }\n-67\n-_\b7_\b1 virtual _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bn_\bo_\br_\bm (const X& x) const\n-72 {\n-73 return x.two_norm();\n-74 }\n-75\n-_\b7_\b7 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-78 {\n-79 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-80 }\n-81\n-_\b8_\b3 virtual _\b~_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt () {}\n-84 };\n-85\n-97 template\n-_\b9_\b8 class _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt : public _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-99 {\n-100 public:\n-_\b1_\b0_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b1_\b0_\b7 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b1_\b0_\b8 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-_\b1_\b1_\b3 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n-114\n-_\b1_\b2_\b0 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (std::shared_ptr com,\n-_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by cat)\n-121 : _communication(com), _category(cat)\n-122 {}\n-123\n-_\b1_\b3_\b0 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& com, _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:\n-_\bC_\ba_\bt_\be_\bg_\bo_\br_\by cat)\n-131 : _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(stackobject_to_shared_ptr(com), cat)\n-132 {}\n-133\n-134\n-_\b1_\b3_\b9 virtual _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bd_\bo_\bt (const X& x, const X& y) const override\n-140 {\n-141 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be result(0);\n-142 _communication->dot(x,y,result); // explicitly loop and apply masking\n-143 return result;\n-144 }\n-145\n-_\b1_\b4_\b9 virtual _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bn_\bo_\br_\bm (const X& x) const override\n+18#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+19\n+20// forward declaration\n+21namespace _\bD_\bu_\bn_\be {\n+22 template < typename... Args >\n+23 class MultiTypeBlockVector;\n+24}\n+25\n+26#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n+27\n+28namespace _\bD_\bu_\bn_\be {\n+29\n+41 template \n+_\b4_\b2 struct FieldTraits< _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br >\n+43 {\n+_\b4_\b4 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br::field_type;\n+_\b4_\b5 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n+46 };\n+56 template < typename... Args >\n+_\b5_\b7 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+58 : public std::tuple\n+59 {\n+61 typedef std::tuple TupleType;\n+62 public:\n+63\n+_\b6_\b5 using _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be = std::size_t;\n+66\n+70 using TupleType::TupleType;\n+71\n+_\b7_\b5 typedef _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br _\bt_\by_\bp_\be;\n+76\n+_\b8_\b2 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = Std::detected_t >_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be...>;\n+83\n+84 // make sure that we have an std::common_type: using an assertion produces a\n+more readable error message\n+85 // than a compiler template instantiation error\n+86 static_assert ( sizeof...(Args) == 0 or not std::is_same_v,\n+87 \"No std::common_type implemented for the given field_types of the Args.\n+Please provide an implementation and check that a FieldTraits class is present\n+for your type.\");\n+88\n+89\n+_\b9_\b5 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be()\n+96 {\n+97 return sizeof...(Args);\n+98 }\n+99\n+_\b1_\b0_\b2 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN()\n+103 {\n+104 return sizeof...(Args);\n+105 }\n+106\n+113 [[deprecated(\"Use method 'N' instead\")]]\n+_\b1_\b1_\b4 int _\bc_\bo_\bu_\bn_\bt() const\n+115 {\n+116 return sizeof...(Args);\n+117 }\n+118\n+_\b1_\b2_\b0 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bd_\bi_\bm() const\n+121 {\n+122 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be result = 0;\n+123 Hybrid::forEach(std::make_index_sequence<_\bN()>{},\n+124 [&](auto i){result += std::get(*this).dim();});\n+125\n+126 return result;\n+127 }\n+128\n+147 template< size_type index >\n+148 typename std::tuple_element::type&\n+_\b1_\b4_\b9 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b ([[maybe_unused]] const std::integral_constant< size_type, index\n+> indexVariable)\n 150 {\n-151 return _communication->norm(x);\n+151 return std::get(*this);\n 152 }\n 153\n-_\b1_\b5_\b5 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const override\n-156 {\n-157 return _category;\n-158 }\n-159\n-160 private:\n-161 std::shared_ptr _communication;\n-162 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _category;\n-163 };\n-164\n-166 template\n-_\b1_\b6_\b7 class _\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt : public _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-168 {\n-169 using _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt::ScalarProduct;\n-170 };\n-171\n-177 template\n-_\b1_\b7_\b8 class _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt : public\n-_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-179 {\n-180 public:\n-_\b1_\b8_\b1 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (std::shared_ptr comm) :\n-182 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(comm,_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::nonoverlapping) {}\n-183\n-_\b1_\b8_\b4 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const C& comm) :\n-185 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(comm,_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::nonoverlapping) {}\n-186 };\n-187\n-199 template\n-_\b2_\b0_\b0 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt : public _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-201 {\n-202 public:\n-_\b2_\b0_\b3 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (std::shared_ptr comm) :\n-204 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(comm, _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::overlapping) {}\n-205\n-_\b2_\b0_\b6 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const C& comm) :\n-207 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(comm,_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::overlapping) {}\n-208 };\n-209\n-223 template\n-_\b2_\b2_\b4 std::shared_ptr> _\bm_\ba_\bk_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(std::shared_ptr comm, _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category)\n-225 {\n-226 switch(category)\n-227 {\n-228 case _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl:\n-229 return\n-230 std::make_shared>();\n-231 default:\n-232 return\n-233 std::make_shared>(comm,category);\n+159 template< size_type index >\n+160 const typename std::tuple_element::type&\n+_\b1_\b6_\b1 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b ([[maybe_unused]] const std::integral_constant< size_type, index\n+> indexVariable) const\n+162 {\n+163 return std::get(*this);\n+164 }\n+165\n+168 template\n+_\b1_\b6_\b9 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const T& newval) {\n+170 Dune::Hybrid::forEach(*this, [&](auto&& entry) {\n+171 entry = newval;\n+172 });\n+173 }\n+174\n+_\b1_\b7_\b8 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bt_\by_\bp_\be& newv) {\n+179 using namespace Dune::Hybrid;\n+180 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {\n+181 (*this)[i] += newv[i];\n+182 });\n+183 }\n+184\n+_\b1_\b8_\b8 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bt_\by_\bp_\be& newv) {\n+189 using namespace Dune::Hybrid;\n+190 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {\n+191 (*this)[i] -= newv[i];\n+192 });\n+193 }\n+194\n+196 template::value, int> = 0>\n+_\b1_\b9_\b8 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=_\b (const T& w) {\n+199 Hybrid::forEach(*this, [&](auto&& entry) {\n+200 entry *= w;\n+201 });\n+202 }\n+203\n+205 template::value, int> = 0>\n+_\b2_\b0_\b7 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=_\b (const T& w) {\n+208 Hybrid::forEach(*this, [&](auto&& entry) {\n+209 entry /= w;\n+210 });\n+211 }\n+212\n+_\b2_\b1_\b3 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b (const _\bt_\by_\bp_\be& newv) const {\n+214 using namespace Dune::Hybrid;\n+215 return accumulate(integralRange(Hybrid::size(*this)), _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0), [&]\n+(auto&& a, auto&& i) {\n+216 return a + (*this)[i]*newv[i];\n+217 });\n+218 }\n+219\n+_\b2_\b2_\b0 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bd_\bo_\bt (const _\bt_\by_\bp_\be& newv) const {\n+221 using namespace Dune::Hybrid;\n+222 return accumulate(integralRange(Hybrid::size(*this)), _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0), [&]\n+(auto&& a, auto&& i) {\n+223 return a + (*this)[i].dot(newv[i]);\n+224 });\n+225 }\n+226\n+_\b2_\b2_\b9 auto _\bo_\bn_\be_\b__\bn_\bo_\br_\bm() const {\n+230 using namespace Dune::Hybrid;\n+231 return accumulate(*this, typename FieldTraits::real_type(0),\n+[&](auto&& a, auto&& entry) {\n+232 return a + entry.one_norm();\n+233 });\n 234 }\n-235 }\n-236\n-241 template\n-_\b2_\b4_\b2 std::shared_ptr> _\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(const Comm& comm,\n-_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category)\n-243 { return makeScalarProduct(stackobject_to_shared_ptr(comm), category); }\n+235\n+_\b2_\b3_\b8 auto _\bo_\bn_\be_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n+239 using namespace Dune::Hybrid;\n+240 return accumulate(*this, typename FieldTraits::real_type(0),\n+[&](auto&& a, auto&& entry) {\n+241 return a + entry.one_norm_real();\n+242 });\n+243 }\n 244\n-245} // end namespace Dune\n-246\n-247#endif\n-_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n+_\b2_\b4_\b7 typename FieldTraits::real_type _\bt_\bw_\bo_\b__\bn_\bo_\br_\bm_\b2() const {\n+248 using namespace Dune::Hybrid;\n+249 return accumulate(*this, typename FieldTraits::real_type(0),\n+[&](auto&& a, auto&& entry) {\n+250 return a + entry.two_norm2();\n+251 });\n+252 }\n+253\n+_\b2_\b5_\b6 typename FieldTraits::real_type _\bt_\bw_\bo_\b__\bn_\bo_\br_\bm() const {return sqrt\n+(this->_\bt_\bw_\bo_\b__\bn_\bo_\br_\bm_\b2());}\n+257\n+_\b2_\b6_\b0 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const\n+261 {\n+262 using namespace Dune::Hybrid;\n+263 using std::max;\n+264 using real_type = typename FieldTraits::real_type;\n+265\n+266 real_type result = 0.0;\n+267 // Compute max norm tracking appearing nan values\n+268 // if the field type supports nan.\n+269 if constexpr (HasNaN()) {\n+270 // This variable will preserve any nan value\n+271 real_type nanTracker = 1.0;\n+272 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+273 forEach(*this, [&](auto&& entry) {\n+274 real_type entryNorm = entry.infinity_norm();\n+275 result = max(entryNorm, result);\n+276 nanTracker += entryNorm;\n+277 });\n+278 // Incorporate possible nan value into result\n+279 result *= (nanTracker / nanTracker);\n+280 } else {\n+281 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+282 forEach(*this, [&](auto&& entry) {\n+283 result = max(entry.infinity_norm(), result);\n+284 });\n+285 }\n+286 return result;\n+287 }\n+288\n+_\b2_\b9_\b1 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const\n+292 {\n+293 using namespace Dune::Hybrid;\n+294 using std::max;\n+295 using real_type = typename FieldTraits::real_type;\n+296\n+297 real_type result = 0.0;\n+298 // Compute max norm tracking appearing nan values\n+299 // if the field type supports nan.\n+300 if constexpr (HasNaN()) {\n+301 // This variable will preserve any nan value\n+302 real_type nanTracker = 1.0;\n+303 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+304 forEach(*this, [&](auto&& entry) {\n+305 real_type entryNorm = entry.infinity_norm_real();\n+306 result = max(entryNorm, result);\n+307 nanTracker += entryNorm;\n+308 });\n+309 // Incorporate possible nan value into result\n+310 result *= (nanTracker / nanTracker);\n+311 } else {\n+312 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+313 forEach(*this, [&](auto&& entry) {\n+314 result = max(entry.infinity_norm_real(), result);\n+315 });\n+316 }\n+317 return result;\n+318 }\n+319\n+324 template\n+_\b3_\b2_\b5 void _\ba_\bx_\bp_\by (const Ta& a, const _\bt_\by_\bp_\be& y) {\n+326 using namespace Dune::Hybrid;\n+327 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {\n+328 (*this)[i].axpy(a, y[i]);\n+329 });\n+330 }\n+331\n+332 };\n+333\n+334\n+335\n+338 template \n+_\b3_\b3_\b9 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<_\b (std::ostream& s, const\n+_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bA_\br_\bg_\bs_\b._\b._\b._\b>& v) {\n+340 using namespace Dune::Hybrid;\n+341 forEach(integralRange(Dune::Hybrid::size(v)), [&](auto&& i) {\n+342 s << \"\\t(\" << i << \"):\\n\" << v[i] << \"\\n\";\n+343 });\n+344 return s;\n+345 }\n+346\n+347} // end namespace Dune\n+348\n+349namespace _\bs_\bt_\bd\n+350{\n+355 template \n+_\b3_\b5_\b6 struct tuple_element >\n+357 {\n+_\b3_\b5_\b8 using _\bt_\by_\bp_\be = typename std::tuple_element >::type;\n+359 };\n+360}\n+361\n+362#endif\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\n+Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n+generic way.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+void operator=(const T &newval)\n+Assignment operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:169\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+std::size_t size_type\n+Type used for vector sizes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:65\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+typename FieldTraits< field_type >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:45\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bu_\bn_\bt\n+int count() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bN\n+static constexpr size_type N()\n+Number of elements.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:102\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Std::detected_t< std::common_type_t, typename FieldTraits< std::decay_t< Args >\n+>::field_type... > field_type\n+The type used for scalars.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be\n+static constexpr size_type size()\n+Return the number of non-zero vector entries.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+std::tuple_element< index, TupleType >::type & operator[](const std::\n+integral_constant< size_type, index > indexVariable)\n+Random-access operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bt_\bw_\bo_\b__\bn_\bo_\br_\bm\n+FieldTraits< field_type >::real_type two_norm() const\n+Compute the Euclidean norm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:256\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename MultiTypeBlockVector< Args... >::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bm\n+size_type dim() const\n+Number of scalar elements.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bt\n+field_type dot(const type &newv) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:220\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n+void operator*=(const T &w)\n+Multiplication with a scalar.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:198\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\ba_\bx_\bp_\by\n+void axpy(const Ta &a, const type &y)\n+Axpy operation on this vector (*this += a * y)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:325\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n+void operator/=(const T &w)\n+Division by a scalar.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:207\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bt_\by_\bp_\be\n+MultiTypeBlockVector< Args... > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n+FieldTraits< field_type >::real_type infinity_norm_real() const\n+Compute the simplified maximum norm (uses 1-norm for complex values)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:291\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bn_\be_\b__\bn_\bo_\br_\bm\n+auto one_norm() const\n+Compute the 1-norm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:229\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n+void operator-=(const type &newv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:188\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+field_type operator*(const type &newv) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:213\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n+void operator+=(const type &newv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:178\n+_\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b__\be_\bl_\be_\bm_\be_\bn_\bt_\b<_\b _\bi_\b,_\b _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+typename std::tuple_element< i, std::tuple< Args... > >::type type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:358\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n+FieldTraits< field_type >::real_type infinity_norm() const\n+Compute the maximum norm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:260\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bn_\be_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n+auto one_norm_real() const\n+Compute the simplified 1-norm (uses 1-norm also for complex values)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:238\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bt_\bw_\bo_\b__\bn_\bo_\br_\bm_\b2\n+FieldTraits< field_type >::real_type two_norm2() const\n+Compute the squared Euclidean norm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:247\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-std::shared_ptr< ScalarProduct< X > > createScalarProduct(const Comm &comm,\n-SolverCategory::Category category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:242\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bk_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-std::shared_ptr< ScalarProduct< X > > makeScalarProduct(std::shared_ptr< const\n-Comm > comm, SolverCategory::Category category)\n-Choose the approriate scalar product for a solver category.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:224\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Base class for scalar product and norm computation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bd_\bo_\bt\n-virtual field_type dot(const X &x, const X &y) const\n-Dot product of two vectors. It is assumed that the vectors are consistent on\n-the interior+border part...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the scalar product (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:77\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-export types, they come from the derived class\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:55\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\b~_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-virtual ~ScalarProduct()\n-every abstract base class has a virtual destructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:83\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:57\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bn_\bo_\br_\bm\n-virtual real_type norm(const X &x) const\n-Norm of a right-hand side vector. The vector must be consistent on the\n-interior+border partition.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:71\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Scalar product for overlapping Schwarz methods.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bd_\bo_\bt\n-virtual field_type dot(const X &x, const X &y) const override\n-Dot product of two vectors. It is assumed that the vectors are consistent on\n-the interior+border part...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:139\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const override\n-Category of the scalar product (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:155\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:108\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n-C communication_type\n-The type of the communication object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:113\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-ParallelScalarProduct(const communication_type &com, SolverCategory::Category\n-cat)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:130\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The type of the vector to compute the scalar product on.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:105\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-ParallelScalarProduct(std::shared_ptr< const communication_type > com,\n-SolverCategory::Category cat)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type used by the vector type domain_type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:107\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bn_\bo_\br_\bm\n-virtual real_type norm(const X &x) const override\n-Norm of a right-hand side vector. The vector must be consistent on the\n-interior+border partition.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Default implementation for the scalar case.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:168\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Nonoverlapping Scalar Product with communication object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:179\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-NonoverlappingSchwarzScalarProduct(std::shared_ptr< const C > comm)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:181\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-NonoverlappingSchwarzScalarProduct(const C &comm)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:184\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Scalar product for overlapping Schwarz methods.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:201\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-OverlappingSchwarzScalarProduct(std::shared_ptr< const C > comm)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:203\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-OverlappingSchwarzScalarProduct(const C &comm)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:206\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Categories for the solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)\n+Send BlockVector to an output stream.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:590\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A Vector class to support different block types.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:59\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00044.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00044.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: umfpack.hh File Reference\n+dune-istl: istlexception.hh File Reference\n \n \n \n \n \n \n \n@@ -71,75 +71,46 @@\n \n
    \n
    \n \n+
    istlexception.hh File Reference
    \n
    \n
    \n-\n-

    Classes for using UMFPack with ISTL matrices. \n-More...

    \n-
    #include <complex>
    \n-#include <type_traits>
    \n-#include <umfpack.h>
    \n-#include <dune/common/exceptions.hh>
    \n+
    #include <dune/common/exceptions.hh>
    \n #include <dune/common/fmatrix.hh>
    \n-#include <dune/common/fvector.hh>
    \n-#include <dune/istl/bccsmatrixinitializer.hh>
    \n-#include <dune/istl/bcrsmatrix.hh>
    \n-#include <dune/istl/solvers.hh>
    \n-#include <dune/istl/solvertype.hh>
    \n-#include <dune/istl/solverfactory.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n+\n \n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    struct  Dune::UMFPackMethodChooser< SCalar, Integer >
     
    struct  Dune::UMFPackMethodChooser< double, std::true_type >
     
    struct  Dune::UMFPackMethodChooser< double, std::false_type >
     
    struct  Dune::UMFPackMethodChooser< std::complex< double >, std::true_type >
    class  Dune::ISTLError
     derive error class from the base class in common More...
     
    struct  Dune::UMFPackMethodChooser< std::complex< double >, std::false_type >
    class  Dune::BCRSMatrixError
     Error specific to BCRSMatrix. More...
     
    class  Dune::UMFPack< M >
     The UMFPack direct sparse solver. More...
    class  Dune::ImplicitModeCompressionBufferExhausted
     Thrown when the compression buffer used by the implicit BCRSMatrix construction is exhausted. More...
     
    struct  Dune::IsDirectSolver< UMFPack< BCRSMatrix< FieldMatrix< T, n, m >, A > > >
    class  Dune::SolverAbort
     Thrown when a solver aborts due to some problem. More...
     
    struct  Dune::StoresColumnCompressed< UMFPack< BCRSMatrix< T, A > > >
     
    struct  Dune::UMFPackCreator
     
    struct  Dune::UMFPackCreator::isValidBlock< F, class >
     
    struct  Dune::UMFPackCreator::isValidBlock< B, std::enable_if_t< std::is_same< typename FieldTraits< B >::real_type, double >::value > >
    class  Dune::MatrixBlockError
     Error when performing an operation on a matrix block. More...
     
    \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    \n-\n-\n-\n

    \n-Functions

     Dune::DUNE_REGISTER_DIRECT_SOLVER ("umfpack", Dune::UMFPackCreator())
     
    \n-

    Detailed Description

    \n-

    Classes for using UMFPack with ISTL matrices.

    \n-
    Author
    Dominic Kempf
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,60 +1,33 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-umfpack.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b)\n-Classes for using UMFPack with ISTL matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+istlexception.hh File Reference\n #include \n #include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bS_\bC_\ba_\bl_\ba_\br_\b,_\b _\bI_\bn_\bt_\be_\bg_\be_\br_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+\u00a0 derive error class from the base class in common _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n+\u00a0 Error specific to _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd\n+\u00a0 Thrown when the compression buffer used by the implicit _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+ construction is exhausted. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt\n+\u00a0 Thrown when a solver aborts due to some problem. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b<_\b _\bM_\b _\b>\n-\u00a0 The UMFPack direct sparse solver. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>\n- _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\b _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bF_\b,_\b _\bc_\bl_\ba_\bs_\bs_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bB_\b,_\b _\bs_\bt_\bd_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\b__\bi_\bf_\b__\bt_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bi_\bs_\b__\bs_\ba_\bm_\be_\b<\n- _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be_\b,_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b _\b>_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br\n+\u00a0 Error when performing an operation on a matrix block. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"umfpack\", _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br())\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Classes for using UMFPack with ISTL matrices.\n- Author\n- Dominic Kempf\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00044_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00044_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: umfpack.hh Source File\n+dune-istl: istlexception.hh Source File\n \n \n \n \n \n \n \n@@ -74,899 +74,65 @@\n \n
    \n \n
    \n \n
    \n-
    umfpack.hh
    \n+
    istlexception.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_UMFPACK_HH
    \n-
    6#define DUNE_ISTL_UMFPACK_HH
    \n+
    5#ifndef DUNE_ISTL_ISTLEXCEPTION_HH
    \n+
    6#define DUNE_ISTL_ISTLEXCEPTION_HH
    \n
    7
    \n-
    8#if HAVE_SUITESPARSE_UMFPACK || defined DOXYGEN
    \n-
    9
    \n-
    10#include<complex>
    \n-
    11#include<type_traits>
    \n+
    8#include <dune/common/exceptions.hh>
    \n+
    9#include <dune/common/fmatrix.hh>
    \n+
    10
    \n+
    11namespace Dune {
    \n
    12
    \n-
    13#include<umfpack.h>
    \n-
    14
    \n-
    15#include<dune/common/exceptions.hh>
    \n-
    16#include<dune/common/fmatrix.hh>
    \n-
    17#include<dune/common/fvector.hh>
    \n-\n-\n-\n-\n-\n-
    23
    \n-
    24
    \n-
    25
    \n-
    26namespace Dune {
    \n-
    38 // FORWARD DECLARATIONS
    \n-
    39 template<class M, class T, class TM, class TD, class TA>
    \n-
    40 class SeqOverlappingSchwarz;
    \n-
    41
    \n-
    42 template<class T, bool tag>
    \n-
    43 struct SeqOverlappingSchwarzAssemblerHelper;
    \n-
    44
    \n-
    45 // wrapper class for C-Function Calls in the backend. Choose the right function namespace
    \n-
    46 // depending on the template parameter used.
    \n-
    47template<typename SCalar, typename Integer>
    \n-
    \n-\n-
    49 {
    \n-
    50 static constexpr bool valid = false ;
    \n-
    51 };
    \n-
    \n-
    52
    \n-
    53 template<>
    \n-
    \n-
    54 struct UMFPackMethodChooser<double, std::true_type>
    \n-
    55 {
    \n-
    56 static constexpr bool valid = true ;
    \n-
    57
    \n-
    58 template<typename... A>
    \n-
    \n-
    59 static void defaults(A... args)
    \n-
    60 {
    \n-
    61 umfpack_dl_defaults(args...);
    \n-
    62 }
    \n-
    \n-
    63 template<typename... A>
    \n-
    \n-
    64 static void free_numeric(A... args)
    \n-
    65 {
    \n-
    66 umfpack_dl_free_numeric(args...);
    \n-
    67 }
    \n-
    \n-
    68 template<typename... A>
    \n-
    \n-
    69 static void free_symbolic(A... args)
    \n-
    70 {
    \n-
    71 umfpack_dl_free_symbolic(args...);
    \n-
    72 }
    \n-
    \n-
    73 template<typename... A>
    \n-
    \n-
    74 static int load_numeric(A... args)
    \n-
    75 {
    \n-
    76 return umfpack_dl_load_numeric(args...);
    \n-
    77 }
    \n-
    \n-
    78 template<typename... A>
    \n-
    \n-
    79 static void numeric(A... args)
    \n-
    80 {
    \n-
    81 umfpack_dl_numeric(args...);
    \n-
    82 }
    \n-
    \n-
    83 template<typename... A>
    \n-
    \n-
    84 static void report_info(A... args)
    \n-
    85 {
    \n-
    86 umfpack_dl_report_info(args...);
    \n-
    87 }
    \n-
    \n-
    88 template<typename... A>
    \n-
    \n-
    89 static void report_status(A... args)
    \n-
    90 {
    \n-
    91 umfpack_dl_report_status(args...);
    \n-
    92 }
    \n-
    \n-
    93 template<typename... A>
    \n-
    \n-
    94 static int save_numeric(A... args)
    \n-
    95 {
    \n-
    96 return umfpack_dl_save_numeric(args...);
    \n-
    97 }
    \n-
    \n-
    98 template<typename... A>
    \n-
    \n-
    99 static void solve(A... args)
    \n-
    100 {
    \n-
    101 umfpack_dl_solve(args...);
    \n-
    102 }
    \n-
    \n-
    103 template<typename... A>
    \n-
    \n-
    104 static void symbolic(A... args)
    \n-
    105 {
    \n-
    106 umfpack_dl_symbolic(args...);
    \n-
    107 }
    \n-
    \n-
    108 };
    \n-
    \n-
    109
    \n-
    110 template<>
    \n-
    \n-
    111 struct UMFPackMethodChooser<double, std::false_type>
    \n-
    112 {
    \n-
    113 static constexpr bool valid = true ;
    \n-
    114
    \n-
    115 template<typename... A>
    \n-
    \n-
    116 static void defaults(A... args)
    \n-
    117 {
    \n-
    118 umfpack_di_defaults(args...);
    \n-
    119 }
    \n-
    \n-
    120 template<typename... A>
    \n-
    \n-
    121 static void free_numeric(A... args)
    \n-
    122 {
    \n-
    123 umfpack_di_free_numeric(args...);
    \n-
    124 }
    \n-
    \n-
    125 template<typename... A>
    \n-
    \n-
    126 static void free_symbolic(A... args)
    \n-
    127 {
    \n-
    128 umfpack_di_free_symbolic(args...);
    \n-
    129 }
    \n-
    \n-
    130 template<typename... A>
    \n-
    \n-
    131 static int load_numeric(A... args)
    \n-
    132 {
    \n-
    133 return umfpack_di_load_numeric(args...);
    \n-
    134 }
    \n-
    \n-
    135 template<typename... A>
    \n-
    \n-
    136 static void numeric(A... args)
    \n-
    137 {
    \n-
    138 umfpack_di_numeric(args...);
    \n-
    139 }
    \n-
    \n-
    140 template<typename... A>
    \n-
    \n-
    141 static void report_info(A... args)
    \n-
    142 {
    \n-
    143 umfpack_di_report_info(args...);
    \n-
    144 }
    \n-
    \n-
    145 template<typename... A>
    \n-
    \n-
    146 static void report_status(A... args)
    \n-
    147 {
    \n-
    148 umfpack_di_report_status(args...);
    \n-
    149 }
    \n-
    \n-
    150 template<typename... A>
    \n-
    \n-
    151 static int save_numeric(A... args)
    \n-
    152 {
    \n-
    153 return umfpack_di_save_numeric(args...);
    \n-
    154 }
    \n-
    \n-
    155 template<typename... A>
    \n-
    \n-
    156 static void solve(A... args)
    \n-
    157 {
    \n-
    158 umfpack_di_solve(args...);
    \n-
    159 }
    \n-
    \n-
    160 template<typename... A>
    \n-
    \n-
    161 static void symbolic(A... args)
    \n-
    162 {
    \n-
    163 umfpack_di_symbolic(args...);
    \n-
    164 }
    \n-
    \n-
    165 };
    \n-
    \n-
    166
    \n-
    167 template<>
    \n-
    \n-
    168 struct UMFPackMethodChooser<std::complex<double>, std::true_type>
    \n-
    169 {
    \n-
    170 static constexpr bool valid = true ;
    \n-
    171
    \n-
    172 using umf_int_type = int64_t;
    \n-
    173
    \n-
    174 template<typename... A>
    \n-
    \n-
    175 static void defaults(A... args)
    \n-
    176 {
    \n-
    177 umfpack_zl_defaults(args...);
    \n-
    178 }
    \n-
    \n-
    179 template<typename... A>
    \n-
    \n-
    180 static void free_numeric(A... args)
    \n-
    181 {
    \n-
    182 umfpack_zl_free_numeric(args...);
    \n-
    183 }
    \n-
    \n-
    184 template<typename... A>
    \n-
    \n-
    185 static void free_symbolic(A... args)
    \n-
    186 {
    \n-
    187 umfpack_zl_free_symbolic(args...);
    \n-
    188 }
    \n-
    \n-
    189 template<typename... A>
    \n-
    \n-
    190 static int load_numeric(A... args)
    \n-
    191 {
    \n-
    192 return umfpack_zl_load_numeric(args...);
    \n-
    193 }
    \n-
    \n-
    194 template<typename... A>
    \n-
    \n-
    195 static void numeric(const umf_int_type* cs, const umf_int_type* ri, const double* val, A... args)
    \n-
    196 {
    \n-
    197 umfpack_zl_numeric(cs,ri,val,NULL,args...);
    \n-
    198 }
    \n-
    \n-
    199 template<typename... A>
    \n-
    \n-
    200 static void report_info(A... args)
    \n-
    201 {
    \n-
    202 umfpack_zl_report_info(args...);
    \n-
    203 }
    \n-
    \n-
    204 template<typename... A>
    \n-
    \n-
    205 static void report_status(A... args)
    \n-
    206 {
    \n-
    207 umfpack_zl_report_status(args...);
    \n-
    208 }
    \n-
    \n-
    209 template<typename... A>
    \n-
    \n-
    210 static int save_numeric(A... args)
    \n-
    211 {
    \n-
    212 return umfpack_zl_save_numeric(args...);
    \n-
    213 }
    \n-
    \n-
    214 template<typename... A>
    \n-
    \n-
    215 static void solve(umf_int_type m, const umf_int_type* cs, const umf_int_type* ri, std::complex<double>* val, double* x, const double* b,A... args)
    \n-
    216 {
    \n-
    217 const double* cval = reinterpret_cast<const double*>(val);
    \n-
    218 umfpack_zl_solve(m,cs,ri,cval,NULL,x,NULL,b,NULL,args...);
    \n-
    219 }
    \n-
    \n-
    220 template<typename... A>
    \n-
    \n-
    221 static void symbolic(umf_int_type m, umf_int_type n, const umf_int_type* cs, const umf_int_type* ri, const double* val, A... args)
    \n-
    222 {
    \n-
    223 umfpack_zl_symbolic(m,n,cs,ri,val,NULL,args...);
    \n-
    224 }
    \n-
    \n-
    225 };
    \n-
    \n-
    226
    \n-
    227
    \n-
    228 template<>
    \n-
    \n-
    229 struct UMFPackMethodChooser<std::complex<double>, std::false_type>
    \n-
    230 {
    \n-
    231 static constexpr bool valid = true ;
    \n-
    232
    \n-
    233 using umf_int_type = int32_t;
    \n-
    234
    \n-
    235 template<typename... A>
    \n-
    \n-
    236 static void defaults(A... args)
    \n-
    237 {
    \n-
    238 umfpack_zi_defaults(args...);
    \n-
    239 }
    \n-
    \n-
    240 template<typename... A>
    \n-
    \n-
    241 static void free_numeric(A... args)
    \n-
    242 {
    \n-
    243 umfpack_zi_free_numeric(args...);
    \n-
    244 }
    \n+
    19 class ISTLError : public Dune::MathError {};
    \n+
    20
    \n+
    \n+\n+
    23 : public ISTLError
    \n+
    24 {};
    \n
    \n-
    245 template<typename... A>
    \n-
    \n-
    246 static void free_symbolic(A... args)
    \n-
    247 {
    \n-
    248 umfpack_zi_free_symbolic(args...);
    \n-
    249 }
    \n-
    \n-
    250 template<typename... A>
    \n-
    \n-
    251 static int load_numeric(A... args)
    \n-
    252 {
    \n-
    253 return umfpack_zi_load_numeric(args...);
    \n-
    254 }
    \n-
    \n-
    255 template<typename... A>
    \n-
    \n-
    256 static void numeric(const umf_int_type* cs, const umf_int_type* ri, const double* val, A... args)
    \n-
    257 {
    \n-
    258 umfpack_zi_numeric(cs,ri,val,NULL,args...);
    \n-
    259 }
    \n-
    \n-
    260 template<typename... A>
    \n-
    \n-
    261 static void report_info(A... args)
    \n-
    262 {
    \n-
    263 umfpack_zi_report_info(args...);
    \n-
    264 }
    \n-
    \n-
    265 template<typename... A>
    \n-
    \n-
    266 static void report_status(A... args)
    \n-
    267 {
    \n-
    268 umfpack_zi_report_status(args...);
    \n-
    269 }
    \n-
    \n-
    270 template<typename... A>
    \n-
    \n-
    271 static int save_numeric(A... args)
    \n-
    272 {
    \n-
    273 return umfpack_zi_save_numeric(args...);
    \n-
    274 }
    \n-
    \n-
    275 template<typename... A>
    \n-
    \n-
    276 static void solve(umf_int_type m, const umf_int_type* cs, const umf_int_type* ri, std::complex<double>* val, double* x, const double* b,A... args)
    \n-
    277 {
    \n-
    278 const double* cval = reinterpret_cast<const double*>(val);
    \n-
    279 umfpack_zi_solve(m,cs,ri,cval,NULL,x,NULL,b,NULL,args...);
    \n-
    280 }
    \n-
    \n-
    281 template<typename... A>
    \n-
    \n-
    282 static void symbolic(umf_int_type m, std::size_t n, const umf_int_type* cs, const umf_int_type* ri, const double* val, A... args)
    \n-
    283 {
    \n-
    284 umfpack_zi_symbolic(m,n,cs,ri,val,NULL,args...);
    \n-
    285 }
    \n-
    \n-
    286 };
    \n-
    \n-
    287
    \n-
    288 namespace Impl
    \n-
    289 {
    \n-
    290 template<class M>
    \n-
    291 struct UMFPackVectorChooser
    \n-
    292 {};
    \n-
    293
    \n-
    294 template<typename T, typename A, int n, int m>
    \n-
    295 struct UMFPackVectorChooser<BCRSMatrix<FieldMatrix<T,n,m>,A > >
    \n-
    296 {
    \n-
    298 using domain_type = BlockVector<
    \n-
    299 FieldVector<T,m>,
    \n-
    300 typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,m> > >;
    \n-
    302 using range_type = BlockVector<
    \n-
    303 FieldVector<T,n>,
    \n-
    304 typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,n> > >;
    \n-
    305 };
    \n-
    306
    \n-
    307 template<typename T, typename A>
    \n-
    308 struct UMFPackVectorChooser<BCRSMatrix<T,A> >
    \n-
    309 {
    \n-
    311 using domain_type = BlockVector<T, A>;
    \n-
    313 using range_type = BlockVector<T, A>;
    \n-
    314 };
    \n-
    315 }
    \n-
    316
    \n-
    330 template<typename M>
    \n-
    \n-\n-
    332 : public InverseOperator<
    \n-
    333 typename Impl::UMFPackVectorChooser<M>::domain_type,
    \n-
    334 typename Impl::UMFPackVectorChooser<M>::range_type >
    \n-
    335 {
    \n-
    336 using T = typename M::field_type;
    \n-
    337
    \n-
    338 public:
    \n-
    340 using Matrix = M;
    \n-
    341 using matrix_type = M;
    \n-
    342 using umf_int_type = std::conditional_t<(sizeof(typename M::size_type) == 8), int64_t, int32_t>;
    \n-
    344 typedef ISTL::Impl::BCCSMatrix<typename Matrix::field_type, umf_int_type> UMFPackMatrix;
    \n-
    346 typedef ISTL::Impl::BCCSMatrixInitializer<M, umf_int_type> MatrixInitializer;
    \n-
    348 using domain_type = typename Impl::UMFPackVectorChooser<M>::domain_type;
    \n-
    350 using range_type = typename Impl::UMFPackVectorChooser<M>::range_type;
    \n-
    351
    \n-
    \n-\n-
    354 {
    \n-\n-
    356 }
    \n-
    \n-
    357
    \n-
    \n-
    366 UMFPack(const Matrix& matrix, int verbose=0) : matrixIsLoaded_(false)
    \n-
    367 {
    \n-
    368 //check whether T is a supported type
    \n-
    369 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
    \n-
    370 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n-
    371 Caller::defaults(UMF_Control);
    \n-
    372 setVerbosity(verbose);
    \n-
    373 setMatrix(matrix);
    \n-
    374 }
    \n-
    \n-
    375
    \n-
    \n-
    384 UMFPack(const Matrix& matrix, int verbose, bool) : matrixIsLoaded_(false)
    \n-
    385 {
    \n-
    386 //check whether T is a supported type
    \n-
    387 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
    \n-
    388 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n-
    389 Caller::defaults(UMF_Control);
    \n-
    390 setVerbosity(verbose);
    \n-
    391 setMatrix(matrix);
    \n-
    392 }
    \n-
    \n-
    393
    \n-
    \n-
    403 UMFPack(const Matrix& mat_, const ParameterTree& config)
    \n-
    404 : UMFPack(mat_, config.get<int>("verbose", 0))
    \n-
    405 {}
    \n-
    \n-
    406
    \n-
    \n-
    409 UMFPack() : matrixIsLoaded_(false), verbosity_(0)
    \n-
    410 {
    \n-
    411 //check whether T is a supported type
    \n-
    412 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
    \n-
    413 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n-
    414 Caller::defaults(UMF_Control);
    \n-
    415 }
    \n-
    \n-
    416
    \n-
    \n-
    427 UMFPack(const Matrix& mat_, const char* file, int verbose=0)
    \n-
    428 {
    \n-
    429 //check whether T is a supported type
    \n-
    430 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
    \n-
    431 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n-
    432 Caller::defaults(UMF_Control);
    \n-
    433 setVerbosity(verbose);
    \n-
    434 int errcode = Caller::load_numeric(&UMF_Numeric, const_cast<char*>(file));
    \n-
    435 if ((errcode == UMFPACK_ERROR_out_of_memory) || (errcode == UMFPACK_ERROR_file_IO))
    \n-
    436 {
    \n-
    437 matrixIsLoaded_ = false;
    \n-
    438 setMatrix(mat_);
    \n-
    439 saveDecomposition(file);
    \n-
    440 }
    \n-
    441 else
    \n-
    442 {
    \n-
    443 matrixIsLoaded_ = true;
    \n-
    444 std::cout << "UMFPack decomposition successfully loaded from " << file << std::endl;
    \n-
    445 }
    \n-
    446 }
    \n-
    \n-
    447
    \n-
    \n-
    454 UMFPack(const char* file, int verbose=0)
    \n-
    455 {
    \n-
    456 //check whether T is a supported type
    \n-
    457 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
    \n-
    458 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n-
    459 Caller::defaults(UMF_Control);
    \n-
    460 int errcode = Caller::load_numeric(&UMF_Numeric, const_cast<char*>(file));
    \n-
    461 if (errcode == UMFPACK_ERROR_out_of_memory)
    \n-
    462 DUNE_THROW(Dune::Exception, "ran out of memory while loading UMFPack decomposition");
    \n-
    463 if (errcode == UMFPACK_ERROR_file_IO)
    \n-
    464 DUNE_THROW(Dune::Exception, "IO error while loading UMFPack decomposition");
    \n-
    465 matrixIsLoaded_ = true;
    \n-
    466 std::cout << "UMFPack decomposition successfully loaded from " << file << std::endl;
    \n-
    467 setVerbosity(verbose);
    \n-
    468 }
    \n-
    \n-
    469
    \n-
    \n-
    470 virtual ~UMFPack()
    \n-
    471 {
    \n-
    472 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)
    \n-
    473 free();
    \n-
    474 }
    \n-
    \n-
    475
    \n-
    \n-\n-
    480 {
    \n-
    481 if (umfpackMatrix_.N() != b.dim())
    \n-
    482 DUNE_THROW(Dune::ISTLError, "Size of right-hand-side vector b does not match the number of matrix rows!");
    \n-
    483 if (umfpackMatrix_.M() != x.dim())
    \n-
    484 DUNE_THROW(Dune::ISTLError, "Size of solution vector x does not match the number of matrix columns!");
    \n-
    485 if (b.size() == 0)
    \n-
    486 return;
    \n-
    487
    \n-
    488 double UMF_Apply_Info[UMFPACK_INFO];
    \n-
    489 Caller::solve(UMFPACK_A,
    \n-
    490 umfpackMatrix_.getColStart(),
    \n-
    491 umfpackMatrix_.getRowIndex(),
    \n-
    492 umfpackMatrix_.getValues(),
    \n-
    493 reinterpret_cast<double*>(&x[0]),
    \n-
    494 reinterpret_cast<double*>(&b[0]),
    \n-
    495 UMF_Numeric,
    \n-
    496 UMF_Control,
    \n-
    497 UMF_Apply_Info);
    \n-
    498
    \n-
    499 //this is a direct solver
    \n-
    500 res.iterations = 1;
    \n-
    501 res.converged = true;
    \n-
    502 res.elapsed = UMF_Apply_Info[UMFPACK_SOLVE_WALLTIME];
    \n-
    503
    \n-
    504 printOnApply(UMF_Apply_Info);
    \n-
    505 }
    \n-
    \n-
    506
    \n-
    \n-
    510 virtual void apply (domain_type& x, range_type& b, [[maybe_unused]] double reduction, InverseOperatorResult& res)
    \n-
    511 {
    \n-
    512 apply(x,b,res);
    \n-
    513 }
    \n-
    \n-
    514
    \n-
    \n-
    520 void apply(T* x, T* b)
    \n-
    521 {
    \n-
    522 double UMF_Apply_Info[UMFPACK_INFO];
    \n-
    523 Caller::solve(UMFPACK_A,
    \n-
    524 umfpackMatrix_.getColStart(),
    \n-
    525 umfpackMatrix_.getRowIndex(),
    \n-
    526 umfpackMatrix_.getValues(),
    \n-
    527 x,
    \n-
    528 b,
    \n-
    529 UMF_Numeric,
    \n-
    530 UMF_Control,
    \n-
    531 UMF_Apply_Info);
    \n-
    532 printOnApply(UMF_Apply_Info);
    \n-
    533 }
    \n-
    \n-
    534
    \n-
    \n-
    546 void setOption(unsigned int option, double value)
    \n-
    547 {
    \n-
    548 if (option >= UMFPACK_CONTROL)
    \n-
    549 DUNE_THROW(RangeError, "Requested non-existing UMFPack option");
    \n-
    550
    \n-
    551 UMF_Control[option] = value;
    \n-
    552 }
    \n-
    \n-
    553
    \n-
    \n-
    557 void saveDecomposition(const char* file)
    \n-
    558 {
    \n-
    559 int errcode = Caller::save_numeric(UMF_Numeric, const_cast<char*>(file));
    \n-
    560 if (errcode != UMFPACK_OK)
    \n-
    561 DUNE_THROW(Dune::Exception,"IO ERROR while trying to save UMFPack decomposition");
    \n-
    562 }
    \n-
    \n-
    563
    \n-
    \n-
    565 void setMatrix(const Matrix& matrix)
    \n-
    566 {
    \n-
    567 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)
    \n-
    568 free();
    \n-
    569 if (matrix.N() == 0 or matrix.M() == 0)
    \n-
    570 return;
    \n-
    571
    \n-
    572 if (umfpackMatrix_.N() + umfpackMatrix_.M() + umfpackMatrix_.nonzeroes() != 0)
    \n-
    573 umfpackMatrix_.free();
    \n-
    574 umfpackMatrix_.setSize(MatrixDimension<Matrix>::rowdim(matrix),
    \n-\n-
    576 ISTL::Impl::BCCSMatrixInitializer<Matrix, umf_int_type> initializer(umfpackMatrix_);
    \n-
    577
    \n-
    578 copyToBCCSMatrix(initializer, matrix);
    \n-
    579
    \n-
    580 decompose();
    \n-
    581 }
    \n-
    \n-
    582
    \n-
    583 template<class S>
    \n-
    \n-
    584 void setSubMatrix(const Matrix& _mat, const S& rowIndexSet)
    \n-
    585 {
    \n-
    586 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)
    \n-
    587 free();
    \n-
    588
    \n-
    589 if (umfpackMatrix_.N() + umfpackMatrix_.M() + umfpackMatrix_.nonzeroes() != 0)
    \n-
    590 umfpackMatrix_.free();
    \n-
    591
    \n-
    592 umfpackMatrix_.setSize(rowIndexSet.size()*MatrixDimension<Matrix>::rowdim(_mat) / _mat.N(),
    \n-
    593 rowIndexSet.size()*MatrixDimension<Matrix>::coldim(_mat) / _mat.M());
    \n-
    594 ISTL::Impl::BCCSMatrixInitializer<Matrix, umf_int_type> initializer(umfpackMatrix_);
    \n-
    595
    \n-
    596 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<Matrix,std::set<std::size_t> >(_mat,rowIndexSet));
    \n-
    597
    \n-
    598 decompose();
    \n-
    599 }
    \n-
    \n-
    600
    \n-
    \n-
    608 void setVerbosity(int v)
    \n-
    609 {
    \n-
    610 verbosity_ = v;
    \n-
    611 // set the verbosity level in UMFPack
    \n-
    612 if (verbosity_ == 0)
    \n-
    613 UMF_Control[UMFPACK_PRL] = 1;
    \n-
    614 if (verbosity_ == 1)
    \n-
    615 UMF_Control[UMFPACK_PRL] = 2;
    \n-
    616 if (verbosity_ == 2)
    \n-
    617 UMF_Control[UMFPACK_PRL] = 4;
    \n-
    618 }
    \n-
    \n-
    619
    \n-
    \n-\n-
    625 {
    \n-
    626 return UMF_Numeric;
    \n-
    627 }
    \n-
    \n-
    628
    \n-
    \n-\n-
    634 {
    \n-
    635 return umfpackMatrix_;
    \n-
    636 }
    \n-
    \n-
    637
    \n-
    \n-
    642 void free()
    \n-
    643 {
    \n-
    644 if (!matrixIsLoaded_)
    \n-
    645 {
    \n-
    646 Caller::free_symbolic(&UMF_Symbolic);
    \n-
    647 umfpackMatrix_.free();
    \n-
    648 }
    \n-
    649 Caller::free_numeric(&UMF_Numeric);
    \n-
    650 matrixIsLoaded_ = false;
    \n-
    651 }
    \n-
    \n-
    652
    \n-
    653 const char* name() { return "UMFPACK"; }
    \n-
    654
    \n-
    655 private:
    \n-
    656 typedef typename Dune::UMFPackMethodChooser<T,std::integral_constant<bool, (sizeof(typename M::size_type) == 8)>> Caller;
    \n-
    657
    \n-
    658 template<class Mat,class X, class TM, class TD, class T1>
    \n-\n-\n-
    661
    \n-
    663 void decompose()
    \n-
    664 {
    \n-
    665 double UMF_Decomposition_Info[UMFPACK_INFO];
    \n-
    666 Caller::symbolic(static_cast<umf_int_type>(umfpackMatrix_.N()),
    \n-
    667 static_cast<umf_int_type>(umfpackMatrix_.N()),
    \n-
    668 umfpackMatrix_.getColStart(),
    \n-
    669 umfpackMatrix_.getRowIndex(),
    \n-
    670 reinterpret_cast<double*>(umfpackMatrix_.getValues()),
    \n-
    671 &UMF_Symbolic,
    \n-
    672 UMF_Control,
    \n-
    673 UMF_Decomposition_Info);
    \n-
    674 Caller::numeric(umfpackMatrix_.getColStart(),
    \n-
    675 umfpackMatrix_.getRowIndex(),
    \n-
    676 reinterpret_cast<double*>(umfpackMatrix_.getValues()),
    \n-
    677 UMF_Symbolic,
    \n-
    678 &UMF_Numeric,
    \n-
    679 UMF_Control,
    \n-
    680 UMF_Decomposition_Info);
    \n-
    681 Caller::report_status(UMF_Control,UMF_Decomposition_Info[UMFPACK_STATUS]);
    \n-
    682 if (verbosity_ == 1)
    \n-
    683 {
    \n-
    684 std::cout << "[UMFPack Decomposition]" << std::endl;
    \n-
    685 std::cout << "Wallclock Time taken: " << UMF_Decomposition_Info[UMFPACK_NUMERIC_WALLTIME] << " (CPU Time: " << UMF_Decomposition_Info[UMFPACK_NUMERIC_TIME] << ")" << std::endl;
    \n-
    686 std::cout << "Flops taken: " << UMF_Decomposition_Info[UMFPACK_FLOPS] << std::endl;
    \n-
    687 std::cout << "Peak Memory Usage: " << UMF_Decomposition_Info[UMFPACK_PEAK_MEMORY]*UMF_Decomposition_Info[UMFPACK_SIZE_OF_UNIT] << " bytes" << std::endl;
    \n-
    688 std::cout << "Condition number estimate: " << 1./UMF_Decomposition_Info[UMFPACK_RCOND] << std::endl;
    \n-
    689 std::cout << "Numbers of non-zeroes in decomposition: L: " << UMF_Decomposition_Info[UMFPACK_LNZ] << " U: " << UMF_Decomposition_Info[UMFPACK_UNZ] << std::endl;
    \n-
    690 }
    \n-
    691 if (verbosity_ == 2)
    \n-
    692 {
    \n-
    693 Caller::report_info(UMF_Control,UMF_Decomposition_Info);
    \n-
    694 }
    \n-
    695 }
    \n-
    696
    \n-
    697 void printOnApply(double* UMF_Info)
    \n-
    698 {
    \n-
    699 Caller::report_status(UMF_Control,UMF_Info[UMFPACK_STATUS]);
    \n-
    700 if (verbosity_ > 0)
    \n-
    701 {
    \n-
    702 std::cout << "[UMFPack Solve]" << std::endl;
    \n-
    703 std::cout << "Wallclock Time: " << UMF_Info[UMFPACK_SOLVE_WALLTIME] << " (CPU Time: " << UMF_Info[UMFPACK_SOLVE_TIME] << ")" << std::endl;
    \n-
    704 std::cout << "Flops Taken: " << UMF_Info[UMFPACK_SOLVE_FLOPS] << std::endl;
    \n-
    705 std::cout << "Iterative Refinement steps taken: " << UMF_Info[UMFPACK_IR_TAKEN] << std::endl;
    \n-
    706 std::cout << "Error Estimate: " << UMF_Info[UMFPACK_OMEGA1] << " resp. " << UMF_Info[UMFPACK_OMEGA2] << std::endl;
    \n-
    707 }
    \n-
    708 }
    \n-
    709
    \n-
    710 UMFPackMatrix umfpackMatrix_;
    \n-
    711 bool matrixIsLoaded_;
    \n-
    712 int verbosity_;
    \n-
    713 void *UMF_Symbolic;
    \n-
    714 void *UMF_Numeric;
    \n-
    715 double UMF_Control[UMFPACK_CONTROL];
    \n-
    716 };
    \n-
    \n-
    717
    \n-
    718 template<typename T, typename A, int n, int m>
    \n-
    \n-\n-
    720 {
    \n-
    721 enum { value=true};
    \n-
    722 };
    \n-
    \n-
    723
    \n-
    724 template<typename T, typename A>
    \n-
    \n-\n-
    726 {
    \n-
    727 enum { value = true };
    \n-
    728 };
    \n-
    \n-
    729
    \n-
    \n-\n-
    731 template<class F,class=void> struct isValidBlock : std::false_type{};
    \n-
    732 template<class B> struct isValidBlock<B, std::enable_if_t<std::is_same<typename FieldTraits<B>::real_type,double>::value>> : std::true_type {};
    \n-
    733
    \n-
    734 template<typename TL, typename M>
    \n-
    735 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
    \n-
    736 typename Dune::TypeListElement<2, TL>::type>>
    \n-
    \n-
    737 operator() (TL /*tl*/, const M& mat, const Dune::ParameterTree& config,
    \n-
    738 std::enable_if_t<
    \n-
    739 isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
    \n-
    740 {
    \n-
    741 int verbose = config.get("verbose", 0);
    \n-
    742 return std::make_shared<Dune::UMFPack<M>>(mat,verbose);
    \n-
    743 }
    \n-
    \n-
    744
    \n-
    745 // second version with SFINAE to validate the template parameters of UMFPack
    \n-
    746 template<typename TL, typename M>
    \n-
    747 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
    \n-
    748 typename Dune::TypeListElement<2, TL>::type>>
    \n-
    \n-
    749 operator() (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /*config*/,
    \n-
    750 std::enable_if_t<
    \n-
    751 !isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
    \n-
    752 {
    \n-
    753 DUNE_THROW(UnsupportedType,
    \n-
    754 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n-
    755 }
    \n-
    \n-
    756 };
    \n-
    \n-\n-
    758} // end namespace Dune
    \n-
    759
    \n-
    760#endif // HAVE_SUITESPARSE_UMFPACK
    \n-
    761
    \n-
    762#endif //DUNE_ISTL_UMFPACK_HH
    \n-
    #define DUNE_REGISTER_DIRECT_SOLVER(name,...)
    Definition solverregistry.hh:13
    \n-
    Implementation of the BCRSMatrix class.
    \n-
    Implementations of the inverse operator interface.
    \n-\n-\n-
    Templates characterizing the type of a solver.
    \n-
    static void numeric(const umf_int_type *cs, const umf_int_type *ri, const double *val, A... args)
    Definition umfpack.hh:256
    \n-
    void free()
    free allocated space.
    Definition umfpack.hh:642
    \n-
    static void solve(umf_int_type m, const umf_int_type *cs, const umf_int_type *ri, std::complex< double > *val, double *x, const double *b, A... args)
    Definition umfpack.hh:215
    \n-
    virtual void apply(domain_type &x, range_type &b, InverseOperatorResult &res)
    Apply inverse operator,.
    Definition umfpack.hh:479
    \n-
    ISTL::Impl::BCCSMatrixInitializer< M, umf_int_type > MatrixInitializer
    Type of an associated initializer class.
    Definition umfpack.hh:346
    \n-
    static void report_info(A... args)
    Definition umfpack.hh:200
    \n-
    virtual SolverCategory::Category category() const
    Category of the solver (see SolverCategory::Category)
    Definition umfpack.hh:353
    \n-
    M matrix_type
    Definition umfpack.hh:341
    \n-
    void setMatrix(const Matrix &matrix)
    Initialize data from given matrix.
    Definition umfpack.hh:565
    \n-
    static int save_numeric(A... args)
    Definition umfpack.hh:210
    \n-
    static void numeric(A... args)
    Definition umfpack.hh:79
    \n-
    UMFPack(const Matrix &mat_, const ParameterTree &config)
    Construct a solver object from a matrix.
    Definition umfpack.hh:403
    \n-
    static void symbolic(umf_int_type m, umf_int_type n, const umf_int_type *cs, const umf_int_type *ri, const double *val, A... args)
    Definition umfpack.hh:221
    \n-
    std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL, const M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock< typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0) const
    Definition umfpack.hh:737
    \n-
    static void report_status(A... args)
    Definition umfpack.hh:89
    \n-
    UMFPack(const Matrix &mat_, const char *file, int verbose=0)
    Try loading a decomposition from file and do a decomposition if unsuccessful.
    Definition umfpack.hh:427
    \n-
    static int load_numeric(A... args)
    Definition umfpack.hh:131
    \n-
    static void free_numeric(A... args)
    Definition umfpack.hh:64
    \n-
    static void defaults(A... args)
    Definition umfpack.hh:175
    \n-
    typename Impl::UMFPackVectorChooser< M >::range_type range_type
    The type of the range of the solver.
    Definition umfpack.hh:350
    \n-
    static int save_numeric(A... args)
    Definition umfpack.hh:271
    \n-
    static void report_info(A... args)
    Definition umfpack.hh:84
    \n-
    static void solve(A... args)
    Definition umfpack.hh:99
    \n-
    UMFPack()
    default constructor
    Definition umfpack.hh:409
    \n-\n-
    static int load_numeric(A... args)
    Definition umfpack.hh:251
    \n-
    static void symbolic(A... args)
    Definition umfpack.hh:161
    \n-
    static void numeric(A... args)
    Definition umfpack.hh:136
    \n-
    static void report_info(A... args)
    Definition umfpack.hh:141
    \n-
    static void report_status(A... args)
    Definition umfpack.hh:205
    \n-
    static void free_symbolic(A... args)
    Definition umfpack.hh:69
    \n-
    static void free_symbolic(A... args)
    Definition umfpack.hh:185
    \n-
    static void numeric(const umf_int_type *cs, const umf_int_type *ri, const double *val, A... args)
    Definition umfpack.hh:195
    \n-
    void setSubMatrix(const Matrix &_mat, const S &rowIndexSet)
    Definition umfpack.hh:584
    \n-
    static void solve(A... args)
    Definition umfpack.hh:156
    \n-
    static void free_numeric(A... args)
    Definition umfpack.hh:180
    \n-
    void apply(T *x, T *b)
    additional apply method with c-arrays in analogy to superlu
    Definition umfpack.hh:520
    \n-\n-
    static constexpr bool valid
    Definition umfpack.hh:50
    \n-
    void setVerbosity(int v)
    sets the verbosity level for the UMFPack solver
    Definition umfpack.hh:608
    \n-
    UMFPack(const char *file, int verbose=0)
    try loading a decomposition from file
    Definition umfpack.hh:454
    \n-
    static void defaults(A... args)
    Definition umfpack.hh:236
    \n-
    static int save_numeric(A... args)
    Definition umfpack.hh:151
    \n-
    static int load_numeric(A... args)
    Definition umfpack.hh:74
    \n-
    static void symbolic(A... args)
    Definition umfpack.hh:104
    \n-
    virtual ~UMFPack()
    Definition umfpack.hh:470
    \n-
    const char * name()
    Definition umfpack.hh:653
    \n-
    ISTL::Impl::BCCSMatrix< typename Matrix::field_type, umf_int_type > UMFPackMatrix
    The corresponding UMFPack matrix type.
    Definition umfpack.hh:344
    \n-
    static void free_symbolic(A... args)
    Definition umfpack.hh:126
    \n-
    void saveDecomposition(const char *file)
    saves a decomposition to a file
    Definition umfpack.hh:557
    \n-
    UMFPackMatrix & getInternalMatrix()
    Return the column compress matrix from UMFPack.
    Definition umfpack.hh:633
    \n-
    static void free_numeric(A... args)
    Definition umfpack.hh:121
    \n-
    static void free_numeric(A... args)
    Definition umfpack.hh:241
    \n-
    static void solve(umf_int_type m, const umf_int_type *cs, const umf_int_type *ri, std::complex< double > *val, double *x, const double *b, A... args)
    Definition umfpack.hh:276
    \n-
    static void report_status(A... args)
    Definition umfpack.hh:146
    \n-
    typename Impl::UMFPackVectorChooser< M >::domain_type domain_type
    The type of the domain of the solver.
    Definition umfpack.hh:348
    \n-
    UMFPack(const Matrix &matrix, int verbose=0)
    Construct a solver object from a matrix.
    Definition umfpack.hh:366
    \n-
    static int save_numeric(A... args)
    Definition umfpack.hh:94
    \n-
    static void report_info(A... args)
    Definition umfpack.hh:261
    \n-
    virtual void apply(domain_type &x, range_type &b, double reduction, InverseOperatorResult &res)
    apply inverse operator, with given convergence criteria.
    Definition umfpack.hh:510
    \n-
    void setOption(unsigned int option, double value)
    Set UMFPack-specific options.
    Definition umfpack.hh:546
    \n-
    static void defaults(A... args)
    Definition umfpack.hh:59
    \n-
    M Matrix
    The matrix type.
    Definition umfpack.hh:340
    \n-
    static void symbolic(umf_int_type m, std::size_t n, const umf_int_type *cs, const umf_int_type *ri, const double *val, A... args)
    Definition umfpack.hh:282
    \n-
    static void free_symbolic(A... args)
    Definition umfpack.hh:246
    \n-
    static void defaults(A... args)
    Definition umfpack.hh:116
    \n-
    std::conditional_t<(sizeof(typename M::size_type)==8), int64_t, int32_t > umf_int_type
    Definition umfpack.hh:342
    \n-
    static int load_numeric(A... args)
    Definition umfpack.hh:190
    \n-
    UMFPack(const Matrix &matrix, int verbose, bool)
    Constructor for compatibility with SuperLU standard constructor.
    Definition umfpack.hh:384
    \n-
    void * getFactorization()
    Return the matrix factorization.
    Definition umfpack.hh:624
    \n-
    static void report_status(A... args)
    Definition umfpack.hh:266
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    STL namespace.
    \n+
    25
    \n+
    \n+\n+
    36 : public BCRSMatrixError
    \n+
    37 {};
    \n+
    \n+
    38
    \n+
    40
    \n+
    46 class SolverAbort : public ISTLError {};
    \n+
    47
    \n+
    49
    \n+
    \n+
    52 class MatrixBlockError : public virtual Dune::FMatrixError {
    \n+
    53 public:
    \n+
    54 int r, c; // row and column index of the entry from which the error resulted
    \n+
    55 };
    \n+
    \n+
    56
    \n+
    59} // end namespace
    \n+
    60
    \n+
    61#endif
    \n
    Definition allocator.hh:11
    \n-
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    Definition matrixutils.hh:211
    \n-
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    Sequential overlapping Schwarz preconditioner.
    Definition overlappingschwarz.hh:755
    \n-
    Definition overlappingschwarz.hh:694
    \n-
    Definition matrixutils.hh:27
    \n-
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n-
    double elapsed
    Elapsed time in seconds.
    Definition solver.hh:82
    \n-
    int iterations
    Number of iterations.
    Definition solver.hh:67
    \n-
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n-
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n-
    Definition solverregistry.hh:77
    \n-
    Definition solvertype.hh:16
    \n-
    @ value
    Whether this is a direct solver.
    Definition solvertype.hh:24
    \n-
    Definition solvertype.hh:30
    \n-
    @ value
    whether the solver internally uses column compressed storage
    Definition solvertype.hh:36
    \n-
    Definition umfpack.hh:49
    \n-
    The UMFPack direct sparse solver.
    Definition umfpack.hh:335
    \n-
    Definition umfpack.hh:730
    \n-
    Definition umfpack.hh:731
    \n+
    Error specific to BCRSMatrix.
    Definition istlexception.hh:24
    \n+
    Thrown when the compression buffer used by the implicit BCRSMatrix construction is exhausted.
    Definition istlexception.hh:37
    \n+
    Thrown when a solver aborts due to some problem.
    Definition istlexception.hh:46
    \n+
    Error when performing an operation on a matrix block.
    Definition istlexception.hh:52
    \n+
    int c
    Definition istlexception.hh:54
    \n+
    int r
    Definition istlexception.hh:54
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1059 +1,69 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-umfpack.hh\n+istlexception.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_UMFPACK_HH\n-6#define DUNE_ISTL_UMFPACK_HH\n+5#ifndef DUNE_ISTL_ISTLEXCEPTION_HH\n+6#define DUNE_ISTL_ISTLEXCEPTION_HH\n 7\n-8#if HAVE_SUITESPARSE_UMFPACK || defined DOXYGEN\n-9\n-10#include\n-11#include\n+8#include \n+9#include \n+10\n+11namespace _\bD_\bu_\bn_\be {\n 12\n-13#include\n-14\n-15#include\n-16#include\n-17#include\n-18#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n-19#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-20#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n-21#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-22#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n-23\n-24\n+_\b1_\b9 class _\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br : public Dune::MathError {};\n+20\n+_\b2_\b2 class _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n+23 : public _\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+24 {};\n 25\n-26namespace _\bD_\bu_\bn_\be {\n-38 // FORWARD DECLARATIONS\n-39 template\n-40 class SeqOverlappingSchwarz;\n-41\n-42 template\n-43 struct SeqOverlappingSchwarzAssemblerHelper;\n-44\n-45 // wrapper class for C-Function Calls in the backend. Choose the right\n-function namespace\n-46 // depending on the template parameter used.\n-47template\n-_\b4_\b8 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br\n-49 {\n-_\b5_\b0 static constexpr bool _\bv_\ba_\bl_\bi_\bd = false ;\n-51 };\n-52\n-53 template<>\n-_\b5_\b4 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br\n-55 {\n-_\b5_\b6 static constexpr bool _\bv_\ba_\bl_\bi_\bd = true ;\n-57\n-58 template\n-_\b5_\b9 static void _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs(A... args)\n-60 {\n-61 umfpack_dl_defaults(args...);\n-62 }\n-63 template\n-_\b6_\b4 static void _\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-65 {\n-66 umfpack_dl_free_numeric(args...);\n-67 }\n-68 template\n-_\b6_\b9 static void _\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n-70 {\n-71 umfpack_dl_free_symbolic(args...);\n-72 }\n-73 template\n-_\b7_\b4 static int _\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-75 {\n-76 return umfpack_dl_load_numeric(args...);\n-77 }\n-78 template\n-_\b7_\b9 static void _\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-80 {\n-81 umfpack_dl_numeric(args...);\n-82 }\n-83 template\n-_\b8_\b4 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo(A... args)\n-85 {\n-86 umfpack_dl_report_info(args...);\n-87 }\n-88 template\n-_\b8_\b9 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs(A... args)\n-90 {\n-91 umfpack_dl_report_status(args...);\n-92 }\n-93 template\n-_\b9_\b4 static int _\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-95 {\n-96 return umfpack_dl_save_numeric(args...);\n-97 }\n-98 template\n-_\b9_\b9 static void _\bs_\bo_\bl_\bv_\be(A... args)\n-100 {\n-101 umfpack_dl_solve(args...);\n-102 }\n-103 template\n-_\b1_\b0_\b4 static void _\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n-105 {\n-106 umfpack_dl_symbolic(args...);\n-107 }\n-108 };\n-109\n-110 template<>\n-_\b1_\b1_\b1 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br\n-112 {\n-_\b1_\b1_\b3 static constexpr bool _\bv_\ba_\bl_\bi_\bd = true ;\n-114\n-115 template\n-_\b1_\b1_\b6 static void _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs(A... args)\n-117 {\n-118 umfpack_di_defaults(args...);\n-119 }\n-120 template\n-_\b1_\b2_\b1 static void _\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-122 {\n-123 umfpack_di_free_numeric(args...);\n-124 }\n-125 template\n-_\b1_\b2_\b6 static void _\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n-127 {\n-128 umfpack_di_free_symbolic(args...);\n-129 }\n-130 template\n-_\b1_\b3_\b1 static int _\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-132 {\n-133 return umfpack_di_load_numeric(args...);\n-134 }\n-135 template\n-_\b1_\b3_\b6 static void _\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-137 {\n-138 umfpack_di_numeric(args...);\n-139 }\n-140 template\n-_\b1_\b4_\b1 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo(A... args)\n-142 {\n-143 umfpack_di_report_info(args...);\n-144 }\n-145 template\n-_\b1_\b4_\b6 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs(A... args)\n-147 {\n-148 umfpack_di_report_status(args...);\n-149 }\n-150 template\n-_\b1_\b5_\b1 static int _\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-152 {\n-153 return umfpack_di_save_numeric(args...);\n-154 }\n-155 template\n-_\b1_\b5_\b6 static void _\bs_\bo_\bl_\bv_\be(A... args)\n-157 {\n-158 umfpack_di_solve(args...);\n-159 }\n-160 template\n-_\b1_\b6_\b1 static void _\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n-162 {\n-163 umfpack_di_symbolic(args...);\n-164 }\n-165 };\n-166\n-167 template<>\n-_\b1_\b6_\b8 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br<_\bs_\bt_\bd::complex, std::true_type>\n-169 {\n-_\b1_\b7_\b0 static constexpr bool _\bv_\ba_\bl_\bi_\bd = true ;\n-171\n-_\b1_\b7_\b2 using _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be = int64_t;\n-173\n-174 template\n-_\b1_\b7_\b5 static void _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs(A... args)\n-176 {\n-177 umfpack_zl_defaults(args...);\n-178 }\n-179 template\n-_\b1_\b8_\b0 static void _\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-181 {\n-182 umfpack_zl_free_numeric(args...);\n-183 }\n-184 template\n-_\b1_\b8_\b5 static void _\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n-186 {\n-187 umfpack_zl_free_symbolic(args...);\n-188 }\n-189 template\n-_\b1_\b9_\b0 static int _\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-191 {\n-192 return umfpack_zl_load_numeric(args...);\n-193 }\n-194 template\n-_\b1_\b9_\b5 static void _\bn_\bu_\bm_\be_\br_\bi_\bc(const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* cs, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, const\n-double* val, A... args)\n-196 {\n-197 umfpack_zl_numeric(cs,ri,val,NULL,args...);\n-198 }\n-199 template\n-_\b2_\b0_\b0 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo(A... args)\n-201 {\n-202 umfpack_zl_report_info(args...);\n-203 }\n-204 template\n-_\b2_\b0_\b5 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs(A... args)\n-206 {\n-207 umfpack_zl_report_status(args...);\n-208 }\n-209 template\n-_\b2_\b1_\b0 static int _\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-211 {\n-212 return umfpack_zl_save_numeric(args...);\n-213 }\n-214 template\n-_\b2_\b1_\b5 static void _\bs_\bo_\bl_\bv_\be(_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be m, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* cs, const\n-_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, std::complex* val, double* x, const double* b,A...\n-args)\n-216 {\n-217 const double* cval = reinterpret_cast(val);\n-218 umfpack_zl_solve(m,cs,ri,cval,NULL,x,NULL,b,NULL,args...);\n-219 }\n-220 template\n-_\b2_\b2_\b1 static void _\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be m, _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be n, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be*\n-cs, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, const double* val, A... args)\n-222 {\n-223 umfpack_zl_symbolic(m,n,cs,ri,val,NULL,args...);\n-224 }\n-225 };\n-226\n-227\n-228 template<>\n-_\b2_\b2_\b9 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br<_\bs_\bt_\bd::complex, std::false_type>\n-230 {\n-_\b2_\b3_\b1 static constexpr bool _\bv_\ba_\bl_\bi_\bd = true ;\n-232\n-_\b2_\b3_\b3 using _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be = int32_t;\n-234\n-235 template\n-_\b2_\b3_\b6 static void _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs(A... args)\n-237 {\n-238 umfpack_zi_defaults(args...);\n-239 }\n-240 template\n-_\b2_\b4_\b1 static void _\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-242 {\n-243 umfpack_zi_free_numeric(args...);\n-244 }\n-245 template\n-_\b2_\b4_\b6 static void _\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n-247 {\n-248 umfpack_zi_free_symbolic(args...);\n-249 }\n-250 template\n-_\b2_\b5_\b1 static int _\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-252 {\n-253 return umfpack_zi_load_numeric(args...);\n-254 }\n-255 template\n-_\b2_\b5_\b6 static void _\bn_\bu_\bm_\be_\br_\bi_\bc(const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* cs, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, const\n-double* val, A... args)\n-257 {\n-258 umfpack_zi_numeric(cs,ri,val,NULL,args...);\n-259 }\n-260 template\n-_\b2_\b6_\b1 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo(A... args)\n-262 {\n-263 umfpack_zi_report_info(args...);\n-264 }\n-265 template\n-_\b2_\b6_\b6 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs(A... args)\n-267 {\n-268 umfpack_zi_report_status(args...);\n-269 }\n-270 template\n-_\b2_\b7_\b1 static int _\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n-272 {\n-273 return umfpack_zi_save_numeric(args...);\n-274 }\n-275 template\n-_\b2_\b7_\b6 static void _\bs_\bo_\bl_\bv_\be(_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be m, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* cs, const\n-_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, std::complex* val, double* x, const double* b,A...\n-args)\n-277 {\n-278 const double* cval = reinterpret_cast(val);\n-279 umfpack_zi_solve(m,cs,ri,cval,NULL,x,NULL,b,NULL,args...);\n-280 }\n-281 template\n-_\b2_\b8_\b2 static void _\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be m, std::size_t n, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* cs,\n-const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, const double* val, A... args)\n-283 {\n-284 umfpack_zi_symbolic(m,n,cs,ri,val,NULL,args...);\n-285 }\n-286 };\n-287\n-288 namespace Impl\n-289 {\n-290 template\n-291 struct UMFPackVectorChooser\n-292 {};\n-293\n-294 template\n-295 struct UMFPackVectorChooser,A > >\n-296 {\n-298 using domain_type = BlockVector<\n-299 FieldVector,\n-300 typename std::allocator_traits::template rebind_alloc >\n->;\n-302 using range_type = BlockVector<\n-303 FieldVector,\n-304 typename std::allocator_traits::template rebind_alloc >\n->;\n-305 };\n-306\n-307 template\n-308 struct UMFPackVectorChooser >\n-309 {\n-311 using domain_type = BlockVector;\n-313 using range_type = BlockVector;\n-314 };\n-315 }\n-316\n-330 template\n-_\b3_\b3_\b1 class _\bU_\bM_\bF_\bP_\ba_\bc_\bk\n-332 : public _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br<\n-333 typename Impl::UMFPackVectorChooser::domain_type,\n-334 typename Impl::UMFPackVectorChooser::range_type >\n-335 {\n-336 using T = typename M::field_type;\n-337\n-338 public:\n-_\b3_\b4_\b0 using _\bM_\ba_\bt_\br_\bi_\bx = M;\n-_\b3_\b4_\b1 using _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be = M;\n-_\b3_\b4_\b2 using _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be = std::conditional_t<(sizeof(typename M::size_type) ==\n-8), int64_t, int32_t>;\n-_\b3_\b4_\b4 typedef ISTL::Impl::BCCSMatrix\n-_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx;\n-_\b3_\b4_\b6 typedef ISTL::Impl::BCCSMatrixInitializer\n-_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n-_\b3_\b4_\b8 using _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be = typename Impl::UMFPackVectorChooser::domain_type;\n-_\b3_\b5_\b0 using _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be = typename Impl::UMFPackVectorChooser::range_type;\n-351\n-_\b3_\b5_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-354 {\n-355 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-356 }\n-357\n-_\b3_\b6_\b6 _\bU_\bM_\bF_\bP_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, int verbose=0) : matrixIsLoaded_(false)\n-367 {\n-368 //check whether T is a supported type\n-369 static_assert((std::is_same::value) || (std::is_same >::value),\n-370 \"Unsupported Type in UMFPack (only double and std::complex\n-supported)\");\n-371 Caller::defaults(UMF_Control);\n-372 _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(verbose);\n-373 _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(matrix);\n-374 }\n-375\n-_\b3_\b8_\b4 _\bU_\bM_\bF_\bP_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, int verbose, bool) : matrixIsLoaded_(false)\n-385 {\n-386 //check whether T is a supported type\n-387 static_assert((std::is_same::value) || (std::is_same >::value),\n-388 \"Unsupported Type in UMFPack (only double and std::complex\n-supported)\");\n-389 Caller::defaults(UMF_Control);\n-390 _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(verbose);\n-391 _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(matrix);\n-392 }\n-393\n-_\b4_\b0_\b3 _\bU_\bM_\bF_\bP_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& mat_, const ParameterTree& config)\n-404 : _\bU_\bM_\bF_\bP_\ba_\bc_\bk(mat_, config._\bg_\be_\bt(\"verbose\", 0))\n-405 {}\n-406\n-_\b4_\b0_\b9 _\bU_\bM_\bF_\bP_\ba_\bc_\bk() : matrixIsLoaded_(false), verbosity_(0)\n-410 {\n-411 //check whether T is a supported type\n-412 static_assert((std::is_same::value) || (std::is_same >::value),\n-413 \"Unsupported Type in UMFPack (only double and std::complex\n-supported)\");\n-414 Caller::defaults(UMF_Control);\n-415 }\n-416\n-_\b4_\b2_\b7 _\bU_\bM_\bF_\bP_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& mat_, const char* file, int verbose=0)\n-428 {\n-429 //check whether T is a supported type\n-430 static_assert((std::is_same::value) || (std::is_same >::value),\n-431 \"Unsupported Type in UMFPack (only double and std::complex\n-supported)\");\n-432 Caller::defaults(UMF_Control);\n-433 _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(verbose);\n-434 int errcode = Caller::load_numeric(&UMF_Numeric, const_cast(file));\n-435 if ((errcode == UMFPACK_ERROR_out_of_memory) || (errcode ==\n-UMFPACK_ERROR_file_IO))\n-436 {\n-437 matrixIsLoaded_ = false;\n-438 _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(mat_);\n-439 _\bs_\ba_\bv_\be_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(file);\n-440 }\n-441 else\n-442 {\n-443 matrixIsLoaded_ = true;\n-444 std::cout << \"UMFPack decomposition successfully loaded from \" << file <<\n-std::endl;\n-445 }\n-446 }\n-447\n-_\b4_\b5_\b4 _\bU_\bM_\bF_\bP_\ba_\bc_\bk(const char* file, int verbose=0)\n-455 {\n-456 //check whether T is a supported type\n-457 static_assert((std::is_same::value) || (std::is_same >::value),\n-458 \"Unsupported Type in UMFPack (only double and std::complex\n-supported)\");\n-459 Caller::defaults(UMF_Control);\n-460 int errcode = Caller::load_numeric(&UMF_Numeric, const_cast(file));\n-461 if (errcode == UMFPACK_ERROR_out_of_memory)\n-462 DUNE_THROW(Dune::Exception, \"ran out of memory while loading UMFPack\n-decomposition\");\n-463 if (errcode == UMFPACK_ERROR_file_IO)\n-464 DUNE_THROW(Dune::Exception, \"IO error while loading UMFPack\n-decomposition\");\n-465 matrixIsLoaded_ = true;\n-466 std::cout << \"UMFPack decomposition successfully loaded from \" << file <<\n-std::endl;\n-467 _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(verbose);\n-468 }\n-469\n-_\b4_\b7_\b0 virtual _\b~_\bU_\bM_\bF_\bP_\ba_\bc_\bk()\n-471 {\n-472 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)\n-473 _\bf_\br_\be_\be();\n-474 }\n-475\n-_\b4_\b7_\b9 virtual void _\ba_\bp_\bp_\bl_\by(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt&\n-res)\n-480 {\n-481 if (umfpackMatrix_.N() != b.dim())\n-482 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Size of right-hand-side vector b does not\n-match the number of matrix rows!\");\n-483 if (umfpackMatrix_.M() != x.dim())\n-484 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Size of solution vector x does not match the\n-number of matrix columns!\");\n-485 if (b.size() == 0)\n-486 return;\n-487\n-488 double UMF_Apply_Info[UMFPACK_INFO];\n-489 Caller::solve(UMFPACK_A,\n-490 umfpackMatrix_.getColStart(),\n-491 umfpackMatrix_.getRowIndex(),\n-492 umfpackMatrix_.getValues(),\n-493 reinterpret_cast(&x[0]),\n-494 reinterpret_cast(&b[0]),\n-495 UMF_Numeric,\n-496 UMF_Control,\n-497 UMF_Apply_Info);\n-498\n-499 //this is a direct solver\n-500 res._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs = 1;\n-501 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = true;\n-502 res._\be_\bl_\ba_\bp_\bs_\be_\bd = UMF_Apply_Info[UMFPACK_SOLVE_WALLTIME];\n-503\n-504 printOnApply(UMF_Apply_Info);\n-505 }\n-506\n-_\b5_\b1_\b0 virtual void _\ba_\bp_\bp_\bl_\by (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, [[maybe_unused]] double\n-reduction, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-511 {\n-512 _\ba_\bp_\bp_\bl_\by(x,b,res);\n-513 }\n-514\n-_\b5_\b2_\b0 void _\ba_\bp_\bp_\bl_\by(T* x, T* b)\n-521 {\n-522 double UMF_Apply_Info[UMFPACK_INFO];\n-523 Caller::solve(UMFPACK_A,\n-524 umfpackMatrix_.getColStart(),\n-525 umfpackMatrix_.getRowIndex(),\n-526 umfpackMatrix_.getValues(),\n-527 x,\n-528 b,\n-529 UMF_Numeric,\n-530 UMF_Control,\n-531 UMF_Apply_Info);\n-532 printOnApply(UMF_Apply_Info);\n-533 }\n-534\n-_\b5_\b4_\b6 void _\bs_\be_\bt_\bO_\bp_\bt_\bi_\bo_\bn(unsigned int option, double value)\n-547 {\n-548 if (option >= UMFPACK_CONTROL)\n-549 DUNE_THROW(RangeError, \"Requested non-existing UMFPack option\");\n-550\n-551 UMF_Control[option] = value;\n-552 }\n-553\n-_\b5_\b5_\b7 void _\bs_\ba_\bv_\be_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(const char* file)\n-558 {\n-559 int errcode = Caller::save_numeric(UMF_Numeric, const_cast(file));\n-560 if (errcode != UMFPACK_OK)\n-561 DUNE_THROW(Dune::Exception,\"IO ERROR while trying to save UMFPack\n-decomposition\");\n-562 }\n-563\n-_\b5_\b6_\b5 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& matrix)\n-566 {\n-567 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)\n-568 _\bf_\br_\be_\be();\n-569 if (matrix.N() == 0 or matrix.M() == 0)\n-570 return;\n-571\n-572 if (umfpackMatrix_.N() + umfpackMatrix_.M() + umfpackMatrix_.nonzeroes() !=\n-0)\n-573 umfpackMatrix_.free();\n-574 umfpackMatrix_.setSize(_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(matrix),\n-575 _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(matrix));\n-576 ISTL::Impl::BCCSMatrixInitializer initializer\n-(umfpackMatrix_);\n-577\n-578 copyToBCCSMatrix(initializer, matrix);\n-579\n-580 decompose();\n-581 }\n-582\n-583 template\n-_\b5_\b8_\b4 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& _mat, const S& rowIndexSet)\n-585 {\n-586 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)\n-587 _\bf_\br_\be_\be();\n-588\n-589 if (umfpackMatrix_.N() + umfpackMatrix_.M() + umfpackMatrix_.nonzeroes() !=\n-0)\n-590 umfpackMatrix_.free();\n-591\n-592 umfpackMatrix_.setSize(rowIndexSet.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-(_mat) / _mat.N(),\n-593 rowIndexSet.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(_mat) / _mat.M());\n-594 ISTL::Impl::BCCSMatrixInitializer initializer\n-(umfpackMatrix_);\n-595\n-596 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<_\bM_\ba_\bt_\br_\bi_\bx,std::\n-set >(_mat,rowIndexSet));\n-597\n-598 decompose();\n-599 }\n-600\n-_\b6_\b0_\b8 void _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(int v)\n-609 {\n-610 verbosity_ = v;\n-611 // set the verbosity level in UMFPack\n-612 if (verbosity_ == 0)\n-613 UMF_Control[UMFPACK_PRL] = 1;\n-614 if (verbosity_ == 1)\n-615 UMF_Control[UMFPACK_PRL] = 2;\n-616 if (verbosity_ == 2)\n-617 UMF_Control[UMFPACK_PRL] = 4;\n-618 }\n-619\n-_\b6_\b2_\b4 void* _\bg_\be_\bt_\bF_\ba_\bc_\bt_\bo_\br_\bi_\bz_\ba_\bt_\bi_\bo_\bn()\n-625 {\n-626 return UMF_Numeric;\n-627 }\n-628\n-_\b6_\b3_\b3 _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& _\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx()\n-634 {\n-635 return umfpackMatrix_;\n-636 }\n-637\n-_\b6_\b4_\b2 void _\bf_\br_\be_\be()\n-643 {\n-644 if (!matrixIsLoaded_)\n-645 {\n-646 Caller::free_symbolic(&UMF_Symbolic);\n-647 umfpackMatrix_.free();\n-648 }\n-649 Caller::free_numeric(&UMF_Numeric);\n-650 matrixIsLoaded_ = false;\n-651 }\n-652\n-_\b6_\b5_\b3 const char* _\bn_\ba_\bm_\be() { return \"UMFPACK\"; }\n-654\n-655 private:\n-656 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br> Caller;\n-657\n-658 template\n-_\b6_\b5_\b9 friend class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz;\n-660 friend struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bU_\bM_\bF_\bP_\ba_\bc_\bk<_\bM_\ba_\bt_\br_\bi_\bx>,true>;\n-661\n-663 void decompose()\n-664 {\n-665 double UMF_Decomposition_Info[UMFPACK_INFO];\n-666 Caller::symbolic(static_cast<_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be>(umfpackMatrix_.N()),\n-667 static_cast<_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be>(umfpackMatrix_.N()),\n-668 umfpackMatrix_.getColStart(),\n-669 umfpackMatrix_.getRowIndex(),\n-670 reinterpret_cast(umfpackMatrix_.getValues()),\n-671 &UMF_Symbolic,\n-672 UMF_Control,\n-673 UMF_Decomposition_Info);\n-674 Caller::numeric(umfpackMatrix_.getColStart(),\n-675 umfpackMatrix_.getRowIndex(),\n-676 reinterpret_cast(umfpackMatrix_.getValues()),\n-677 UMF_Symbolic,\n-678 &UMF_Numeric,\n-679 UMF_Control,\n-680 UMF_Decomposition_Info);\n-681 Caller::report_status(UMF_Control,UMF_Decomposition_Info[UMFPACK_STATUS]);\n-682 if (verbosity_ == 1)\n-683 {\n-684 std::cout << \"[UMFPack Decomposition]\" << std::endl;\n-685 std::cout << \"Wallclock Time taken: \" << UMF_Decomposition_Info\n-[UMFPACK_NUMERIC_WALLTIME] << \" (CPU Time: \" << UMF_Decomposition_Info\n-[UMFPACK_NUMERIC_TIME] << \")\" << std::endl;\n-686 std::cout << \"Flops taken: \" << UMF_Decomposition_Info[UMFPACK_FLOPS] <<\n-std::endl;\n-687 std::cout << \"Peak Memory Usage: \" << UMF_Decomposition_Info\n-[UMFPACK_PEAK_MEMORY]*UMF_Decomposition_Info[UMFPACK_SIZE_OF_UNIT] << \" bytes\"\n-<< std::endl;\n-688 std::cout << \"Condition number estimate: \" << 1./UMF_Decomposition_Info\n-[UMFPACK_RCOND] << std::endl;\n-689 std::cout << \"Numbers of non-zeroes in decomposition: L: \" <<\n-UMF_Decomposition_Info[UMFPACK_LNZ] << \" U: \" << UMF_Decomposition_Info\n-[UMFPACK_UNZ] << std::endl;\n-690 }\n-691 if (verbosity_ == 2)\n-692 {\n-693 Caller::report_info(UMF_Control,UMF_Decomposition_Info);\n-694 }\n-695 }\n-696\n-697 void printOnApply(double* UMF_Info)\n-698 {\n-699 Caller::report_status(UMF_Control,UMF_Info[UMFPACK_STATUS]);\n-700 if (verbosity_ > 0)\n-701 {\n-702 std::cout << \"[UMFPack Solve]\" << std::endl;\n-703 std::cout << \"Wallclock Time: \" << UMF_Info[UMFPACK_SOLVE_WALLTIME] << \"\n-(CPU Time: \" << UMF_Info[UMFPACK_SOLVE_TIME] << \")\" << std::endl;\n-704 std::cout << \"Flops Taken: \" << UMF_Info[UMFPACK_SOLVE_FLOPS] << std::endl;\n-705 std::cout << \"Iterative Refinement steps taken: \" << UMF_Info\n-[UMFPACK_IR_TAKEN] << std::endl;\n-706 std::cout << \"Error Estimate: \" << UMF_Info[UMFPACK_OMEGA1] << \" resp. \" <<\n-UMF_Info[UMFPACK_OMEGA2] << std::endl;\n-707 }\n-708 }\n-709\n-710 _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx umfpackMatrix_;\n-711 bool matrixIsLoaded_;\n-712 int verbosity_;\n-713 void *UMF_Symbolic;\n-714 void *UMF_Numeric;\n-715 double UMF_Control[UMFPACK_CONTROL];\n-716 };\n-717\n-718 template\n-_\b7_\b1_\b9 struct _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br<_\bU_\bM_\bF_\bP_\ba_\bc_\bk<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A> > >\n-720 {\n-_\b7_\b2_\b1 enum { _\bv_\ba_\bl_\bu_\be=true};\n-722 };\n-723\n-724 template\n-_\b7_\b2_\b5 struct _\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd<_\bU_\bM_\bF_\bP_\ba_\bc_\bk<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx > >\n-726 {\n-_\b7_\b2_\b7 enum { _\bv_\ba_\bl_\bu_\be = true };\n-728 };\n-729\n-_\b7_\b3_\b0 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br {\n-_\b7_\b3_\b1 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk : std::false_type{};\n-_\b7_\b3_\b2 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::real_type,double>::value>> : std::true_type\n-{};\n-733\n-734 template\n-735 std::shared_ptr::type,\n-736 typename Dune::TypeListElement<2, TL>::type>>\n-_\b7_\b3_\b7 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& _\bm_\ba_\bt, const Dune::ParameterTree& config,\n-738 std::enable_if_t<\n-739 _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::type::block_type>::\n-value,int> = 0) const\n-740 {\n-741 int verbose = config.get(\"verbose\", 0);\n-742 return std::make_shared>(_\bm_\ba_\bt,verbose);\n-743 }\n-744\n-745 // second version with SFINAE to validate the template parameters of\n-UMFPack\n-746 template\n-747 std::shared_ptr::type,\n-748 typename Dune::TypeListElement<2, TL>::type>>\n-_\b7_\b4_\b9 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /\n-*config*/,\n-750 std::enable_if_t<\n-751 !_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::type::block_type>::\n-value,int> = 0) const\n-752 {\n-753 DUNE_THROW(_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be,\n-754 \"Unsupported Type in UMFPack (only double and std::complex\n-supported)\");\n-755 }\n-756 };\n-_\b7_\b5_\b7 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"umfpack\",_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br());\n-758} // end namespace Dune\n-759\n-760#endif // HAVE_SUITESPARSE_UMFPACK\n-761\n-762#endif //DUNE_ISTL_UMFPACK_HH\n-_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR\n-#define DUNE_REGISTER_DIRECT_SOLVER(name,...)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:13\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n-Implementations of the inverse operator interface.\n-_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh\n-_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh\n-_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n-Templates characterizing the type of a solver.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bn_\bu_\bm_\be_\br_\bi_\bc\n-static void numeric(const umf_int_type *cs, const umf_int_type *ri, const\n-double *val, A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:256\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bf_\br_\be_\be\n-void free()\n-free allocated space.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:642\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be\n-static void solve(umf_int_type m, const umf_int_type *cs, const umf_int_type\n-*ri, std::complex< double > *val, double *x, const double *b, A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:215\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(domain_type &x, range_type &b, InverseOperatorResult &res)\n-Apply inverse operator,.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:479\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-ISTL::Impl::BCCSMatrixInitializer< M, umf_int_type > MatrixInitializer\n-Type of an associated initializer class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:346\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo\n-static void report_info(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:200\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the solver (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:353\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:341\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-void setMatrix(const Matrix &matrix)\n-Initialize data from given matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:565\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static int save_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:210\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bn_\bu_\bm_\be_\br_\bi_\bc\n-static void numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:79\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n-UMFPack(const Matrix &mat_, const ParameterTree &config)\n-Construct a solver object from a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:403\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n-static void symbolic(umf_int_type m, umf_int_type n, const umf_int_type *cs,\n-const umf_int_type *ri, const double *val, A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:221\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL\n->::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL, const\n-M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock<\n-typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0)\n-const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:737\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs\n-static void report_status(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:89\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n-UMFPack(const Matrix &mat_, const char *file, int verbose=0)\n-Try loading a decomposition from file and do a decomposition if unsuccessful.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:427\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static int load_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:131\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static void free_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:64\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs\n-static void defaults(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:175\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-typename Impl::UMFPackVectorChooser< M >::range_type range_type\n-The type of the range of the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:350\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static int save_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:271\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo\n-static void report_info(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:84\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be\n-static void solve(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n-UMFPack()\n-default constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:409\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be\n-int64_t umf_int_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:172\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static int load_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:251\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n-static void symbolic(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:161\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bn_\bu_\bm_\be_\br_\bi_\bc\n-static void numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:136\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo\n-static void report_info(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:141\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs\n-static void report_status(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:205\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n-static void free_symbolic(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:69\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n-static void free_symbolic(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:185\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bn_\bu_\bm_\be_\br_\bi_\bc\n-static void numeric(const umf_int_type *cs, const umf_int_type *ri, const\n-double *val, A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:195\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n-void setSubMatrix(const Matrix &_mat, const S &rowIndexSet)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:584\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be\n-static void solve(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:156\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static void free_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:180\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(T *x, T *b)\n-additional apply method with c-arrays in analogy to superlu\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:520\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be\n-int32_t umf_int_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:233\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b:_\b:_\bv_\ba_\bl_\bi_\bd\n-static constexpr bool valid\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:50\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by\n-void setVerbosity(int v)\n-sets the verbosity level for the UMFPack solver\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:608\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n-UMFPack(const char *file, int verbose=0)\n-try loading a decomposition from file\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:454\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs\n-static void defaults(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:236\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static int save_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:151\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static int load_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:74\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n-static void symbolic(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:104\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\b~_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n-virtual ~UMFPack()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:470\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bn_\ba_\bm_\be\n-const char * name()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:653\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n-ISTL::Impl::BCCSMatrix< typename Matrix::field_type, umf_int_type >\n-UMFPackMatrix\n-The corresponding UMFPack matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:344\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n-static void free_symbolic(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\ba_\bv_\be_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n-void saveDecomposition(const char *file)\n-saves a decomposition to a file\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:557\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx\n-UMFPackMatrix & getInternalMatrix()\n-Return the column compress matrix from UMFPack.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:633\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static void free_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:121\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static void free_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:241\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be\n-static void solve(umf_int_type m, const umf_int_type *cs, const umf_int_type\n-*ri, std::complex< double > *val, double *x, const double *b, A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:276\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs\n-static void report_status(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:146\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-typename Impl::UMFPackVectorChooser< M >::domain_type domain_type\n-The type of the domain of the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:348\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n-UMFPack(const Matrix &matrix, int verbose=0)\n-Construct a solver object from a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:366\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static int save_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:94\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo\n-static void report_info(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:261\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(domain_type &x, range_type &b, double reduction,\n-InverseOperatorResult &res)\n-apply inverse operator, with given convergence criteria.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:510\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\be_\bt_\bO_\bp_\bt_\bi_\bo_\bn\n-void setOption(unsigned int option, double value)\n-Set UMFPack-specific options.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:546\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs\n-static void defaults(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:59\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-M Matrix\n-The matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:340\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n-static void symbolic(umf_int_type m, std::size_t n, const umf_int_type *cs,\n-const umf_int_type *ri, const double *val, A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:282\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n-static void free_symbolic(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:246\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs\n-static void defaults(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:116\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be\n-std::conditional_t<(sizeof(typename M::size_type)==8), int64_t, int32_t >\n-umf_int_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:342\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-static int load_numeric(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:190\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n-UMFPack(const Matrix &matrix, int verbose, bool)\n-Constructor for compatibility with SuperLU standard constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:384\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bg_\be_\bt_\bF_\ba_\bc_\bt_\bo_\br_\bi_\bz_\ba_\bt_\bi_\bo_\bn\n-void * getFactorization()\n-Return the matrix factorization.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:624\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n-_\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs\n-static void report_status(A... args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:266\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bs_\bt_\bd\n-STL namespace.\n+_\b3_\b5 class _\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd\n+36 : public _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n+37 {};\n+38\n+40\n+_\b4_\b6 class _\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt : public _\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br {};\n+47\n+49\n+_\b5_\b2 class _\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br : public virtual Dune::FMatrixError {\n+53 public:\n+_\b5_\b4 int _\br, _\bc; // row and column index of the entry from which the error resulted\n+55 };\n+56\n+59} // end namespace\n+60\n+61#endif\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n derive error class from the base class in common\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n-Sequential overlapping Schwarz preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:694\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\be_\bl_\ba_\bp_\bs_\be_\bd\n-double elapsed\n-Elapsed time in seconds.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n-int iterations\n-Number of iterations.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n-bool converged\n-True if convergence criterion has been met.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Abstract base class for all solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:77\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-@ value\n-Whether this is a direct solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:24\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-@ value\n-whether the solver internally uses column compressed storage\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:49\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n-The UMFPack direct sparse solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:335\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:730\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:731\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n+Error specific to BCRSMatrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:24\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd\n+Thrown when the compression buffer used by the implicit BCRSMatrix construction\n+is exhausted.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt\n+Thrown when a solver aborts due to some problem.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br\n+Error when performing an operation on a matrix block.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br_\b:_\b:_\bc\n+int c\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br_\b:_\b:_\br\n+int r\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:54\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00047.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00047.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrix.hh File Reference\n+dune-istl: btdmatrix.hh File Reference\n \n \n \n \n \n \n \n@@ -72,58 +72,44 @@\n
  • dune
  • istl
  • \n
    \n \n
    \n \n-
    matrix.hh File Reference
    \n+
    btdmatrix.hh File Reference
    \n
    \n
    \n \n-

    A dynamic dense block matrix class. \n+

    Implementation of the BTDMatrix class. \n More...

    \n-
    #include <cmath>
    \n-#include <memory>
    \n-#include <dune/common/ftraits.hh>
    \n-#include <dune/common/typetraits.hh>
    \n+
    #include <dune/common/fmatrix.hh>
    \n #include <dune/common/scalarvectorview.hh>
    \n #include <dune/common/scalarmatrixview.hh>
    \n-#include <dune/istl/bvector.hh>
    \n-#include <dune/istl/istlexception.hh>
    \n-#include <dune/istl/blocklevel.hh>
    \n+#include <dune/istl/bcrsmatrix.hh>
    \n+#include <dune/istl/blocklevel.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n

    \n Classes

    class  Dune::MatrixImp::DenseMatrixBase< B, A >
     A Vector of blocks with different blocksizes. More...
    class  Dune::BTDMatrix< B, A >
     A block-tridiagonal matrix. More...
     
    class  Dune::MatrixImp::DenseMatrixBase< B, A >::Iterator
     Iterator class for sequential access. More...
     
    class  Dune::MatrixImp::DenseMatrixBase< B, A >::ConstIterator
     ConstIterator class for sequential access. More...
     
    class  Dune::Matrix< T, A >
     A generic dynamic dense matrix. More...
     
    struct  Dune::FieldTraits< Matrix< T, A > >
    struct  Dune::FieldTraits< BTDMatrix< B, A > >
     
    \n \n \n \n-\n-\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::MatrixImp
     
    \n

    Detailed Description

    \n-

    A dynamic dense block matrix class.

    \n+

    Implementation of the BTDMatrix class.

    \n+
    Author
    Oliver Sander
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,43 +1,30 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-matrix.hh File Reference\n-A dynamic dense block matrix class. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n+btdmatrix.hh File Reference\n+Implementation of the BTDMatrix class. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n #include \n #include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n #include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n-\u00a0 A Vector of blocks with different blocksizes. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n+\u00a0 A block-tridiagonal matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-\u00a0 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br class for sequential access. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-\u00a0 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br class for sequential access. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>\n-\u00a0 A generic dynamic dense matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp\n-\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-A dynamic dense block matrix class.\n+Implementation of the BTDMatrix class.\n+ Author\n+ Oliver Sander\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00047_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00047_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrix.hh Source File\n+dune-istl: btdmatrix.hh Source File\n \n \n \n \n \n \n \n@@ -74,1258 +74,240 @@\n \n
    \n \n
    \n
    \n
    \n-
    matrix.hh
    \n+
    btdmatrix.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_MATRIX_HH
    \n-
    6#define DUNE_ISTL_MATRIX_HH
    \n+
    5#ifndef DUNE_ISTL_BTDMATRIX_HH
    \n+
    6#define DUNE_ISTL_BTDMATRIX_HH
    \n
    7
    \n-
    12#include <cmath>
    \n-
    13#include <memory>
    \n-
    14
    \n-
    15#include <dune/common/ftraits.hh>
    \n-
    16#include <dune/common/typetraits.hh>
    \n-
    17#include <dune/common/scalarvectorview.hh>
    \n-
    18#include <dune/common/scalarmatrixview.hh>
    \n-
    19
    \n-
    20#include <dune/istl/bvector.hh>
    \n-\n-\n-
    23
    \n-
    24namespace Dune {
    \n-
    25
    \n-
    \n-
    26namespace MatrixImp
    \n-
    27{
    \n-
    39 template<class B, class A=std::allocator<B> >
    \n-
    \n-
    40 class DenseMatrixBase : public Imp::block_vector_unmanaged<B,A>
    \n-
    41 // this derivation gives us all the blas level 1 and norms
    \n-
    42 // on the large array. However, access operators have to be
    \n-
    43 // overwritten.
    \n-
    44 {
    \n-
    45 public:
    \n-
    46
    \n-
    47 //===== type definitions and constants
    \n-
    48
    \n-
    50 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n-
    51
    \n-
    53 typedef A allocator_type;
    \n+
    8#include <dune/common/fmatrix.hh>
    \n+
    9#include <dune/common/scalarvectorview.hh>
    \n+
    10#include <dune/common/scalarmatrixview.hh>
    \n+\n+\n+
    13
    \n+
    19namespace Dune {
    \n+
    29 template <class B, class A=std::allocator<B> >
    \n+
    \n+
    30 class BTDMatrix : public BCRSMatrix<B,A>
    \n+
    31 {
    \n+
    32 public:
    \n+
    33
    \n+
    34 //===== type definitions and constants
    \n+
    35
    \n+
    37 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n+
    38
    \n+
    40 typedef B block_type;
    \n+
    41
    \n+
    43 typedef A allocator_type;
    \n+
    44
    \n+
    46 //typedef BCRSMatrix<B,A>::row_type row_type;
    \n+
    47
    \n+
    49 typedef typename A::size_type size_type;
    \n+
    50
    \n+
    52 [[deprecated("Use free blockLevel function. Will be removed after 2.8.")]]
    \n+
    53 static constexpr auto blocklevel = blockLevel<B>()+1;
    \n
    54
    \n-
    56 typedef typename A::size_type size_type;
    \n+
    56 BTDMatrix() : BCRSMatrix<B,A>() {}
    \n
    57
    \n-\n-
    64
    \n-\n-
    68
    \n-
    69 // just a shorthand
    \n-
    70 typedef Imp::BlockVectorWindow<B,A> window_type;
    \n-
    71
    \n-\n-
    73
    \n-\n-
    75
    \n+
    \n+
    58 explicit BTDMatrix(size_type size)
    \n+
    59 : BCRSMatrix<B,A>(size, size, BCRSMatrix<B,A>::random)
    \n+
    60 {
    \n+
    61 // Set number of entries for each row
    \n+
    62 // All rows get three entries, except for the first and the last one
    \n+
    63 for (size_t i=0; i<size; i++)
    \n+
    64 this->BCRSMatrix<B,A>::setrowsize(i, 3 - (i==0) - (i==(size-1)));
    \n+
    65
    \n+\n+
    67
    \n+
    68 // The actual entries for each row
    \n+
    69 for (size_t i=0; i<size; i++) {
    \n+
    70 if (i>0)
    \n+
    71 this->BCRSMatrix<B,A>::addindex(i, i-1);
    \n+
    72 this->BCRSMatrix<B,A>::addindex(i, i );
    \n+
    73 if (i<size-1)
    \n+
    74 this->BCRSMatrix<B,A>::addindex(i, i+1);
    \n+
    75 }
    \n
    76
    \n-
    77 //===== constructors and such
    \n-
    78
    \n-
    \n-
    82 DenseMatrixBase () : Imp::block_vector_unmanaged<B,A>()
    \n-
    83 {
    \n-
    84 // nothing is known ...
    \n-
    85 rows_ = 0;
    \n-
    86 columns_ = 0;
    \n-
    87 }
    \n+\n+
    78 }
    \n
    \n-
    88
    \n-
    \n-
    95 DenseMatrixBase (size_type rows, size_type columns) : Imp::block_vector_unmanaged<B,A>()
    \n-
    96 {
    \n-
    97 // and we can allocate the big array in the base class
    \n-
    98 this->n = rows*columns;
    \n-
    99 columns_ = columns;
    \n-
    100 if (this->n>0)
    \n-
    101 {
    \n-
    102 this->p = allocator_.allocate(this->n);
    \n-
    103 new (this->p)B[this->n];
    \n-
    104 }
    \n-
    105 else
    \n-
    106 {
    \n-
    107 this->n = 0;
    \n-
    108 this->p = 0;
    \n-
    109 }
    \n-
    110
    \n-
    111 // we can allocate the windows now
    \n-
    112 rows_ = rows;
    \n-
    113 }
    \n-
    \n-
    114
    \n-
    \n-\n-
    117 {
    \n-
    118 // allocate the big array in the base class
    \n-
    119 this->n = a.n;
    \n-
    120 columns_ = a.columns_;
    \n-
    121 if (this->n>0)
    \n-
    122 {
    \n-
    123 // allocate and construct objects
    \n-
    124 this->p = allocator_.allocate(this->n);
    \n-
    125 new (this->p)B[this->n];
    \n+
    79
    \n+
    \n+
    81 void setSize(size_type size)
    \n+
    82 {
    \n+
    83 auto nonZeros = (size==0) ? 0 : size + 2*(size-1);
    \n+
    84 this->BCRSMatrix<B,A>::setSize(size, // rows
    \n+
    85 size, // columns
    \n+
    86 nonZeros);
    \n+
    87
    \n+
    88 // Set number of entries for each row
    \n+
    89 // All rows get three entries, except for the first and the last one
    \n+
    90 for (size_t i=0; i<size; i++)
    \n+
    91 this->BCRSMatrix<B,A>::setrowsize(i, 3 - (i==0) - (i==(size-1)));
    \n+
    92
    \n+\n+
    94
    \n+
    95 // The actual entries for each row
    \n+
    96 for (size_t i=0; i<size; i++) {
    \n+
    97 if (i>0)
    \n+
    98 this->BCRSMatrix<B,A>::addindex(i, i-1);
    \n+
    99 this->BCRSMatrix<B,A>::addindex(i, i );
    \n+
    100 if (i<size-1)
    \n+
    101 this->BCRSMatrix<B,A>::addindex(i, i+1);
    \n+
    102 }
    \n+
    103
    \n+\n+
    105 }
    \n+
    \n+
    106
    \n+
    \n+\n+
    109 this->BCRSMatrix<B,A>::operator=(other);
    \n+
    110 return *this;
    \n+
    111 }
    \n+
    \n+
    112
    \n+
    \n+\n+\n+
    116 return *this;
    \n+
    117 }
    \n+
    \n+
    118
    \n+
    124 template <class V>
    \n+
    \n+
    125 void solve (V& x, const V& rhs) const {
    \n
    126
    \n-
    127 // copy data
    \n-
    128 for (size_type i=0; i<this->n; i++)
    \n-
    129 this->p[i]=a.p[i];
    \n-
    130 }
    \n-
    131 else
    \n-
    132 {
    \n-
    133 this->n = 0;
    \n-
    134 this->p = nullptr;
    \n-
    135 }
    \n-
    136
    \n-
    137 // we can allocate the windows now
    \n-
    138 rows_ = a.rows_;
    \n-
    139 }
    \n-
    \n+
    127 // special handling for 1x1 matrices. The generic algorithm doesn't work for them
    \n+
    128 if (this->N()==1) {
    \n+
    129 auto&& x0 = Impl::asVector(x[0]);
    \n+
    130 auto&& rhs0 = Impl::asVector(rhs[0]);
    \n+
    131 Impl::asMatrix((*this)[0][0]).solve(x0, rhs0);
    \n+
    132 return;
    \n+
    133 }
    \n+
    134
    \n+
    135 // Make copies of the rhs and the right matrix band
    \n+
    136 V d = rhs;
    \n+
    137 std::vector<block_type> c(this->N()-1);
    \n+
    138 for (size_t i=0; i<this->N()-1; i++)
    \n+
    139 c[i] = (*this)[i][i+1];
    \n
    140
    \n-
    \n-\n-
    143 {
    \n-
    144 if (this->n>0) {
    \n-
    145 size_type i=this->n;
    \n-
    146 while (i)
    \n-
    147 this->p[--i].~B();
    \n-
    148 allocator_.deallocate(this->p,this->n);
    \n-
    149 }
    \n-
    150 }
    \n-
    \n-
    151
    \n-
    \n-
    153 void resize (size_type rows, size_type columns)
    \n-
    154 {
    \n-
    155 // deconstruct objects and deallocate memory if necessary
    \n-
    156 if (this->n>0) {
    \n-
    157 size_type i=this->n;
    \n-
    158 while (i)
    \n-
    159 this->p[--i].~B();
    \n-
    160 allocator_.deallocate(this->p,this->n);
    \n-
    161 }
    \n-
    162
    \n-
    163 // and we can allocate the big array in the base class
    \n-
    164 this->n = rows*columns;
    \n-
    165 if (this->n>0)
    \n-
    166 {
    \n-
    167 this->p = allocator_.allocate(this->n);
    \n-
    168 new (this->p)B[this->n];
    \n-
    169 }
    \n-
    170 else
    \n-
    171 {
    \n-
    172 this->n = 0;
    \n-
    173 this->p = nullptr;
    \n-
    174 }
    \n-
    175
    \n-
    176 // we can allocate the windows now
    \n-
    177 rows_ = rows;
    \n-
    178 columns_ = columns;
    \n-
    179 }
    \n-
    \n-
    180
    \n-
    \n-\n-
    183 {
    \n-
    184 if (&a!=this) // check if this and a are different objects
    \n-
    185 {
    \n-
    186 columns_ = a.columns_;
    \n-
    187 // reallocate arrays if necessary
    \n-
    188 // Note: still the block sizes may vary !
    \n-
    189 if (this->n!=a.n || rows_!=a.rows_)
    \n-
    190 {
    \n-
    191 // deconstruct objects and deallocate memory if necessary
    \n-
    192 if (this->n>0) {
    \n-
    193 size_type i=this->n;
    \n-
    194 while (i)
    \n-
    195 this->p[--i].~B();
    \n-
    196 allocator_.deallocate(this->p,this->n);
    \n-
    197 }
    \n-
    198
    \n-
    199 // allocate the big array in the base class
    \n-
    200 this->n = a.n;
    \n-
    201 if (this->n>0)
    \n-
    202 {
    \n-
    203 // allocate and construct objects
    \n-
    204 this->p = allocator_.allocate(this->n);
    \n-
    205 new (this->p)B[this->n];
    \n-
    206 }
    \n-
    207 else
    \n-
    208 {
    \n-
    209 this->n = 0;
    \n-
    210 this->p = nullptr;
    \n-
    211 }
    \n-
    212
    \n-
    213 // Copy number of rows
    \n-
    214 rows_ = a.rows_;
    \n-
    215 }
    \n-
    216
    \n-
    217 // and copy the data
    \n-
    218 for (size_type i=0; i<this->n; i++)
    \n-
    219 this->p[i]=a.p[i];
    \n-
    220 }
    \n-
    221
    \n-
    222 return *this;
    \n-
    223 }
    \n-
    \n-
    224
    \n-
    225
    \n-
    226 //===== assignment from scalar
    \n-
    227
    \n-
    \n-\n-
    230 {
    \n-
    231 (static_cast<Imp::block_vector_unmanaged<B,A>&>(*this)) = k;
    \n-
    232 return *this;
    \n-
    233 }
    \n-
    \n-
    234
    \n-
    235
    \n-
    236 //===== access to components
    \n-
    237 // has to be overwritten from base class because it must
    \n-
    238 // return access to the windows
    \n-
    239
    \n-
    \n-\n-
    242 {
    \n-
    243#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    244 if (i>=rows_) DUNE_THROW(ISTLError,"index out of range");
    \n-
    245#endif
    \n-
    246 return window_type(this->p + i*columns_, columns_);
    \n-
    247 }
    \n-
    \n-
    248
    \n-
    \n-\n-
    251 {
    \n-
    252#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    253 if (i<0 || i>=rows_) DUNE_THROW(ISTLError,"index out of range");
    \n-
    254#endif
    \n-
    255 return window_type(this->p + i*columns_, columns_);
    \n-
    256 }
    \n-
    \n-
    257
    \n-
    258 // forward declaration
    \n-
    259 class ConstIterator;
    \n-
    260
    \n-
    \n-\n-
    263 {
    \n-
    264 public:
    \n-
    \n-\n-
    267 : window_(nullptr,0)
    \n-
    268 {
    \n-
    269 i = 0;
    \n-
    270 }
    \n-
    \n-
    271
    \n-
    272 Iterator (Iterator& other) = default;
    \n-
    273 Iterator (Iterator&& other) = default;
    \n-
    274
    \n-
    \n-
    276 Iterator (B* data, size_type columns, size_type _i)
    \n-
    277 : i(_i),
    \n-
    278 window_(data + _i*columns, columns)
    \n-
    279 {}
    \n-
    \n-
    280
    \n-
    \n-\n-
    283 {
    \n-
    284 i = other.i;
    \n-
    285 // Do NOT use window_.operator=, because that copies the window content, not just the window!
    \n-
    286 window_.set(other.window_.getsize(),other.window_.getptr());
    \n-
    287 return *this;
    \n-
    288 }
    \n-
    \n-
    289
    \n-
    \n-\n-
    292 {
    \n-
    293 i = other.i;
    \n-
    294 // Do NOT use window_.operator=, because that copies the window content, not just the window!
    \n-
    295 window_.set(other.window_.getsize(),other.window_.getptr());
    \n-
    296 return *this;
    \n-
    297 }
    \n-
    \n-
    298
    \n-
    \n-\n-
    301 {
    \n-
    302 ++i;
    \n-
    303 window_.setptr(window_.getptr()+window_.getsize());
    \n-
    304 return *this;
    \n-
    305 }
    \n-
    \n-
    306
    \n-
    \n-\n-
    309 {
    \n-
    310 --i;
    \n-
    311 window_.setptr(window_.getptr()-window_.getsize());
    \n-
    312 return *this;
    \n-
    313 }
    \n-
    \n-
    314
    \n-
    \n-
    316 bool operator== (const Iterator& it) const
    \n-
    317 {
    \n-
    318 return window_.getptr() == it.window_.getptr();
    \n-
    319 }
    \n-
    \n-
    320
    \n-
    \n-
    322 bool operator!= (const Iterator& it) const
    \n-
    323 {
    \n-
    324 return window_.getptr() != it.window_.getptr();
    \n-
    325 }
    \n-
    \n-
    326
    \n-
    \n-
    328 bool operator== (const ConstIterator& it) const
    \n-
    329 {
    \n-
    330 return window_.getptr() == it.window_.getptr();
    \n-
    331 }
    \n-
    \n-
    332
    \n-
    \n-
    334 bool operator!= (const ConstIterator& it) const
    \n-
    335 {
    \n-
    336 return window_.getptr() != it.window_.getptr();
    \n-
    337 }
    \n-
    \n-
    338
    \n-
    \n-\n-
    341 {
    \n-
    342 return window_;
    \n-
    343 }
    \n-
    \n-
    344
    \n-
    \n-\n-
    347 {
    \n-
    348 return &window_;
    \n-
    349 }
    \n-
    \n-
    350
    \n-
    351 // return index corresponding to pointer
    \n-
    \n-\n-
    353 {
    \n-
    354 return i;
    \n-
    355 }
    \n-
    \n-
    356
    \n-
    357 friend class ConstIterator;
    \n-
    358
    \n-
    359 private:
    \n-
    360 size_type i;
    \n-
    361 mutable window_type window_;
    \n-
    362 };
    \n-
    \n-
    363
    \n-
    \n-\n-
    366 {
    \n-
    367 return Iterator(this->p, columns_, 0);
    \n-
    368 }
    \n-
    \n-
    369
    \n-
    \n-\n-
    372 {
    \n-
    373 return Iterator(this->p, columns_, rows_);
    \n-
    374 }
    \n-
    \n-
    375
    \n-
    \n-\n-
    379 {
    \n-
    380 return Iterator(this->p, columns_, rows_-1);
    \n-
    381 }
    \n-
    \n-
    382
    \n-
    \n-\n-
    386 {
    \n-
    387 return Iterator(this->p, columns_, -1);
    \n-
    388 }
    \n-
    \n-
    389
    \n-
    \n-\n-
    392 {
    \n-
    393 return Iterator(this->p, columns_, std::min(i,rows_));
    \n-
    394 }
    \n-
    \n-
    395
    \n-
    \n-\n-
    398 {
    \n-
    399 return ConstIterator(this->p, columns_, std::min(i,rows_));
    \n-
    400 }
    \n-
    \n-
    401
    \n-
    \n-\n-
    404 {
    \n-
    405 public:
    \n-
    \n-\n-
    408 : window_(nullptr,0)
    \n-
    409 {
    \n-
    410 i = 0;
    \n-
    411 }
    \n-
    \n-
    412
    \n-
    \n-
    414 ConstIterator (const B* data, size_type columns, size_type _i)
    \n-
    415 : i(_i),
    \n-
    416 window_(const_cast<B*>(data + _i * columns), columns)
    \n-
    417 {}
    \n-
    \n-
    418
    \n-
    \n-\n-
    421 : i(it.i), window_(it.window_.getptr(),it.window_.getsize())
    \n-
    422 {}
    \n-
    \n-
    423
    \n-
    \n-\n-
    425 {
    \n-
    426 i = other.i;
    \n-
    427 // Do NOT use window_.operator=, because that copies the window content, not just the window!
    \n-
    428 window_.set(other.window_.getsize(),other.window_.getptr());
    \n-
    429 return *this;
    \n-
    430 }
    \n-
    \n-
    431
    \n-
    \n-\n-
    433 {
    \n-
    434 i = other.i;
    \n-
    435 // Do NOT use window_.operator=, because that copies the window content, not just the window!
    \n-
    436 window_.set(other.window_.getsize(),other.window_.getptr());
    \n-
    437 return *this;
    \n-
    438 }
    \n-
    \n-
    439
    \n-
    \n-\n-
    442 {
    \n-
    443 ++i;
    \n-
    444 window_.setptr(window_.getptr()+window_.getsize());
    \n-
    445 return *this;
    \n-
    446 }
    \n-
    \n-
    447
    \n-
    \n-\n-
    450 {
    \n-
    451 --i;
    \n-
    452 window_.setptr(window_.getptr()-window_.getsize());
    \n-
    453 return *this;
    \n-
    454 }
    \n-
    \n-
    455
    \n-
    \n-
    457 bool operator== (const ConstIterator& it) const
    \n-
    458 {
    \n-
    459 return window_.getptr() == it.window_.getptr();
    \n-
    460 }
    \n-
    \n-
    461
    \n-
    \n-
    463 bool operator!= (const ConstIterator& it) const
    \n-
    464 {
    \n-
    465 return window_.getptr() != it.window_.getptr();
    \n-
    466 }
    \n-
    \n-
    467
    \n-
    \n-
    469 bool operator== (const Iterator& it) const
    \n-
    470 {
    \n-
    471 return window_.getptr() == it.window_.getptr();
    \n-
    472 }
    \n-
    \n-
    473
    \n-
    \n-
    475 bool operator!= (const Iterator& it) const
    \n-
    476 {
    \n-
    477 return window_.getptr() != it.window_.getptr();
    \n-
    478 }
    \n-
    \n-
    479
    \n-
    \n-
    481 const window_type& operator* () const
    \n-
    482 {
    \n-
    483 return window_;
    \n-
    484 }
    \n-
    \n-
    485
    \n-
    \n-\n-
    488 {
    \n-
    489 return &window_;
    \n-
    490 }
    \n-
    \n-
    491
    \n-
    492 // return index corresponding to pointer
    \n-
    \n-\n-
    494 {
    \n-
    495 return i;
    \n-
    496 }
    \n-
    \n-
    497
    \n-
    498 friend class Iterator;
    \n-
    499
    \n-
    500 private:
    \n-
    501 size_type i;
    \n-
    502 mutable window_type window_;
    \n-
    503 };
    \n-
    \n-
    504
    \n-\n-
    507
    \n-\n-
    510
    \n-
    \n-\n-
    513 {
    \n-
    514 return ConstIterator(this->p, columns_, 0);
    \n-
    515 }
    \n-
    \n-
    516
    \n-
    \n-\n-
    519 {
    \n-
    520 return ConstIterator(this->p, columns_, rows_);
    \n-
    521 }
    \n-
    \n-
    522
    \n-
    \n-\n-
    526 {
    \n-
    527 return ConstIterator(this->p, columns_, rows_-1);
    \n-
    528 }
    \n-
    \n-
    529
    \n-
    \n-\n-
    532 {
    \n-
    533 return ConstIterator(this->p, columns_, -1);
    \n-
    534 }
    \n-
    \n-
    535
    \n-
    536 //===== sizes
    \n-
    537
    \n-
    \n-
    539 size_type N () const
    \n-
    540 {
    \n-
    541 return rows_;
    \n-
    542 }
    \n-
    \n-
    543
    \n-
    544
    \n-
    545 private:
    \n-
    546 size_type rows_; // number of matrix rows
    \n-
    547 size_type columns_; // number of matrix columns
    \n-
    548
    \n-
    549 A allocator_;
    \n-
    550 };
    \n-
    \n-
    551
    \n-
    552} // namespace MatrixImp
    \n-
    \n-
    553
    \n-
    559 template<class T, class A=std::allocator<T> >
    \n-
    \n-
    560 class Matrix
    \n-
    561 {
    \n-
    562 public:
    \n-
    563
    \n-
    565 using field_type = typename Imp::BlockTraits<T>::field_type;
    \n-
    566
    \n-
    568 typedef T block_type;
    \n-
    569
    \n-
    571 typedef A allocator_type;
    \n-
    572
    \n-\n-
    575
    \n-
    577 typedef typename A::size_type size_type;
    \n-
    578
    \n-\n-
    581
    \n-
    583 typedef typename row_type::iterator ColIterator;
    \n-
    584
    \n-\n-
    587
    \n-
    589 typedef typename row_type::const_iterator ConstColIterator;
    \n-
    590
    \n-
    592 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n-
    593 static constexpr auto blocklevel = blockLevel<T>()+1;
    \n-
    594
    \n-
    \n-
    596 Matrix() : data_(0,0), cols_(0)
    \n-
    597 {}
    \n-
    \n-
    598
    \n-
    \n-
    601 Matrix(size_type rows, size_type cols) : data_(rows,cols), cols_(cols)
    \n-
    602 {}
    \n-
    \n-
    603
    \n-
    \n-
    608 void setSize(size_type rows, size_type cols) {
    \n-
    609 data_.resize(rows,cols);
    \n-
    610 cols_ = cols;
    \n-
    611 }
    \n-
    \n-
    612
    \n-
    \n-\n-
    615 {
    \n-
    616 return data_.begin();
    \n-
    617 }
    \n-
    \n-
    618
    \n-
    \n-\n-
    621 {
    \n-
    622 return data_.end();
    \n-
    623 }
    \n-
    \n-
    624
    \n-
    \n-\n-
    628 {
    \n-
    629 return data_.beforeEnd();
    \n-
    630 }
    \n-
    \n-
    631
    \n-
    \n-\n-
    635 {
    \n-
    636 return data_.beforeBegin();
    \n-
    637 }
    \n-
    \n-
    638
    \n-
    \n-\n-
    641 {
    \n-
    642 return data_.begin();
    \n-
    643 }
    \n-
    \n-
    644
    \n-
    \n-\n-
    647 {
    \n-
    648 return data_.end();
    \n-
    649 }
    \n-
    \n-
    650
    \n-
    \n-\n-
    654 {
    \n-
    655 return data_.beforeEnd();
    \n-
    656 }
    \n-
    \n-
    657
    \n-
    \n-\n-
    661 {
    \n-
    662 return data_.beforeBegin();
    \n-
    663 }
    \n-
    \n-
    664
    \n-
    \n-\n-
    667 {
    \n-
    668 data_ = t;
    \n-
    669 return *this;
    \n-
    670 }
    \n-
    \n-
    671
    \n-
    \n-\n-
    674#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    675 if (row<0)
    \n-
    676 DUNE_THROW(ISTLError, "Can't access negative rows!");
    \n-
    677 if (row>=N())
    \n-
    678 DUNE_THROW(ISTLError, "Row index out of range!");
    \n-
    679#endif
    \n-
    680 return data_[row];
    \n-
    681 }
    \n-
    \n-
    682
    \n-
    \n-
    684 const row_type operator[](size_type row) const {
    \n-
    685#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    686 if (row<0)
    \n-
    687 DUNE_THROW(ISTLError, "Can't access negative rows!");
    \n-
    688 if (row>=N())
    \n-
    689 DUNE_THROW(ISTLError, "Row index out of range!");
    \n-
    690#endif
    \n-
    691 return data_[row];
    \n-
    692 }
    \n-
    \n-
    693
    \n-
    \n-
    695 size_type N() const {
    \n-
    696 return data_.N();
    \n-
    697 }
    \n-
    \n-
    698
    \n-
    \n-
    700 size_type M() const {
    \n-
    701 return cols_;
    \n-
    702 }
    \n-
    \n-
    703
    \n-
    \n-\n-
    706 data_ *= scalar;
    \n-
    707 return (*this);
    \n-
    708 }
    \n-
    \n-
    709
    \n-
    \n-\n-
    712 data_ /= scalar;
    \n-
    713 return (*this);
    \n-
    714 }
    \n-
    \n-
    715
    \n-
    \n-\n-
    722#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    723 if(N()!=b.N() || M() != b.M())
    \n-
    724 DUNE_THROW(RangeError, "Matrix sizes do not match!");
    \n-
    725#endif
    \n-
    726 data_ += b.data_;
    \n-
    727 return (*this);
    \n-
    728 }
    \n-
    \n-
    729
    \n-
    \n-\n-
    736#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    737 if(N()!=b.N() || M() != b.M())
    \n-
    738 DUNE_THROW(RangeError, "Matrix sizes do not match!");
    \n-
    739#endif
    \n-
    740 data_ -= b.data_;
    \n-
    741 return (*this);
    \n-
    742 }
    \n-
    \n-
    743
    \n-
    \n-\n-
    746 Matrix out(M(), N());
    \n-
    747 for (size_type i=0; i<N(); i++)
    \n-
    748 for (size_type j=0; j<M(); j++)
    \n-
    749 out[j][i] = (*this)[i][j];
    \n-
    750
    \n-
    751 return out;
    \n-
    752 }
    \n-
    \n-
    753
    \n-
    \n-
    755 friend Matrix<T> operator*(const Matrix<T>& m1, const Matrix<T>& m2) {
    \n-
    756 Matrix<T> out(m1.N(), m2.M());
    \n-
    757 out = 0;
    \n-
    758
    \n-
    759 for (size_type i=0; i<out.N(); i++ ) {
    \n-
    760 for ( size_type j=0; j<out.M(); j++ )
    \n-
    761 for (size_type k=0; k<m1.M(); k++)
    \n-
    762 out[i][j] += m1[i][k]*m2[k][j];
    \n-
    763 }
    \n-
    764
    \n-
    765 return out;
    \n-
    766 }
    \n-
    \n-
    767
    \n-
    769 template <class X, class Y>
    \n-
    \n-
    770 friend Y operator*(const Matrix<T>& m, const X& vec) {
    \n-
    771#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    772 if (m.M()!=vec.size())
    \n-
    773 DUNE_THROW(ISTLError, "Vector size doesn't match the number of matrix columns!");
    \n-
    774#endif
    \n-
    775 Y out(m.N());
    \n-
    776 out = 0;
    \n-
    777
    \n-
    778 for (size_type i=0; i<out.size(); i++ ) {
    \n-
    779 for ( size_type j=0; j<vec.size(); j++ )
    \n-
    780 out[i] += m[i][j]*vec[j];
    \n-
    781 }
    \n-
    782
    \n-
    783 return out;
    \n-
    784 }
    \n-
    \n-
    785
    \n-
    787 template <class X, class Y>
    \n-
    \n-
    788 void mv(const X& x, Y& y) const
    \n-
    789 {
    \n-
    790#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    791 if (x.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    792 if (y.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    793#endif
    \n-
    794 for (size_type i=0; i<data_.N(); i++) {
    \n-
    795 y[i]=0;
    \n-
    796 for (size_type j=0; j<cols_; j++)
    \n-
    797 {
    \n-
    798 auto&& xj = Impl::asVector(x[j]);
    \n-
    799 auto&& yi = Impl::asVector(y[i]);
    \n-
    800 Impl::asMatrix((*this)[i][j]).umv(xj, yi);
    \n-
    801 }
    \n-
    802 }
    \n-
    803 }
    \n-
    \n-
    804
    \n-
    806 template<class X, class Y>
    \n-
    \n-
    807 void mtv (const X& x, Y& y) const
    \n-
    808 {
    \n-
    809#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    810 if (x.N()!=N()) DUNE_THROW(ISTLError,"index out of range");
    \n-
    811 if (y.N()!=M()) DUNE_THROW(ISTLError,"index out of range");
    \n-
    812#endif
    \n-
    813 for(size_type i=0; i<y.N(); ++i)
    \n-
    814 y[i]=0;
    \n-
    815 umtv(x,y);
    \n-
    816 }
    \n-
    \n-
    817
    \n-
    819 template <class X, class Y>
    \n-
    \n-
    820 void umv(const X& x, Y& y) const
    \n-
    821 {
    \n-
    822#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    823 if (x.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    824 if (y.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    825#endif
    \n-
    826 for (size_type i=0; i<data_.N(); i++)
    \n-
    827 for (size_type j=0; j<cols_; j++)
    \n-
    828 {
    \n-
    829 auto&& xj = Impl::asVector(x[j]);
    \n-
    830 auto&& yi = Impl::asVector(y[i]);
    \n-
    831 Impl::asMatrix((*this)[i][j]).umv(xj, yi);
    \n-
    832 }
    \n-
    833 }
    \n-
    \n-
    834
    \n-
    836 template<class X, class Y>
    \n-
    \n-
    837 void mmv (const X& x, Y& y) const
    \n-
    838 {
    \n-
    839#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    840 if (x.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    841 if (y.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    842#endif
    \n-
    843 for (size_type i=0; i<data_.N(); i++)
    \n-
    844 for (size_type j=0; j<cols_; j++)
    \n-
    845 {
    \n-
    846 auto&& xj = Impl::asVector(x[j]);
    \n-
    847 auto&& yi = Impl::asVector(y[i]);
    \n-
    848 Impl::asMatrix((*this)[i][j]).mmv(xj, yi);
    \n-
    849 }
    \n-
    850 }
    \n-
    \n-
    851
    \n-
    853 template <class X, class Y>
    \n-
    \n-
    854 void usmv(const field_type& alpha, const X& x, Y& y) const
    \n-
    855 {
    \n-
    856#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    857 if (x.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    858 if (y.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    859#endif
    \n-
    860 for (size_type i=0; i<data_.N(); i++)
    \n-
    861 for (size_type j=0; j<cols_; j++)
    \n-
    862 {
    \n-
    863 auto&& xj = Impl::asVector(x[j]);
    \n-
    864 auto&& yi = Impl::asVector(y[i]);
    \n-
    865 Impl::asMatrix((*this)[i][j]).usmv(alpha, xj, yi);
    \n-
    866 }
    \n-
    867 }
    \n-
    \n-
    868
    \n-
    870 template<class X, class Y>
    \n-
    \n-
    871 void umtv (const X& x, Y& y) const
    \n-
    872 {
    \n-
    873#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    874 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    875 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    876#endif
    \n-
    877 for (size_type i=0; i<data_.N(); i++)
    \n-
    878 for (size_type j=0; j<cols_; j++)
    \n-
    879 {
    \n-
    880 auto&& xi = Impl::asVector(x[i]);
    \n-
    881 auto&& yj = Impl::asVector(y[j]);
    \n-
    882 Impl::asMatrix((*this)[i][j]).umtv(xi, yj);
    \n-
    883 }
    \n-
    884 }
    \n-
    \n-
    885
    \n-
    887 template<class X, class Y>
    \n-
    \n-
    888 void mmtv (const X& x, Y& y) const
    \n-
    889 {
    \n-
    890#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    891 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    892 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    893#endif
    \n-
    894 for (size_type i=0; i<data_.N(); i++)
    \n-
    895 for (size_type j=0; j<cols_; j++)
    \n-
    896 {
    \n-
    897 auto&& xi = Impl::asVector(x[i]);
    \n-
    898 auto&& yj = Impl::asVector(y[j]);
    \n-
    899 Impl::asMatrix((*this)[i][j]).mmtv(xi, yj);
    \n-
    900 }
    \n-
    901 }
    \n-
    \n-
    902
    \n-
    904 template<class X, class Y>
    \n-
    \n-
    905 void usmtv (const field_type& alpha, const X& x, Y& y) const
    \n-
    906 {
    \n-
    907#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    908 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    909 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    910#endif
    \n-
    911 for (size_type i=0; i<data_.N(); i++)
    \n-
    912 for (size_type j=0; j<cols_; j++)
    \n-
    913 {
    \n-
    914 auto&& xi = Impl::asVector(x[i]);
    \n-
    915 auto&& yj = Impl::asVector(y[j]);
    \n-
    916 Impl::asMatrix((*this)[i][j]).usmtv(alpha, xi, yj);
    \n-
    917 }
    \n-
    918 }
    \n-
    \n-
    919
    \n-
    921 template<class X, class Y>
    \n-
    \n-
    922 void umhv (const X& x, Y& y) const
    \n-
    923 {
    \n-
    924#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    925 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    926 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    927#endif
    \n-
    928 for (size_type i=0; i<data_.N(); i++)
    \n-
    929 for (size_type j=0; j<cols_; j++)
    \n-
    930 {
    \n-
    931 auto&& xi = Impl::asVector(x[i]);
    \n-
    932 auto&& yj = Impl::asVector(y[j]);
    \n-
    933 Impl::asMatrix((*this)[i][j]).umhv(xi,yj);
    \n-
    934 }
    \n-
    935 }
    \n-
    \n-
    936
    \n-
    938 template<class X, class Y>
    \n-
    \n-
    939 void mmhv (const X& x, Y& y) const
    \n-
    940 {
    \n-
    941#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    942 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    943 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    944#endif
    \n-
    945 for (size_type i=0; i<data_.N(); i++)
    \n-
    946 for (size_type j=0; j<cols_; j++)
    \n-
    947 {
    \n-
    948 auto&& xi = Impl::asVector(x[i]);
    \n-
    949 auto&& yj = Impl::asVector(y[j]);
    \n-
    950 Impl::asMatrix((*this)[i][j]).mmhv(xi,yj);
    \n-
    951 }
    \n-
    952 }
    \n-
    \n-
    953
    \n-
    955 template<class X, class Y>
    \n-
    \n-
    956 void usmhv (const field_type& alpha, const X& x, Y& y) const
    \n-
    957 {
    \n-
    958#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    959 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    960 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n-
    961#endif
    \n-
    962 for (size_type i=0; i<data_.N(); i++)
    \n-
    963 for (size_type j=0; j<cols_; j++)
    \n-
    964 {
    \n-
    965 auto&& xi = Impl::asVector(x[i]);
    \n-
    966 auto&& yj = Impl::asVector(y[j]);
    \n-
    967 Impl::asMatrix((*this)[i][j]).usmhv(alpha,xi,yj);
    \n-
    968 }
    \n-
    969 }
    \n-
    \n-
    970
    \n-
    971 //===== norms
    \n-
    972
    \n-
    \n-
    974 typename FieldTraits<field_type>::real_type frobenius_norm () const
    \n-
    975 {
    \n-
    976 return std::sqrt(frobenius_norm2());
    \n-
    977 }
    \n-
    \n-
    978
    \n-
    \n-
    980 typename FieldTraits<field_type>::real_type frobenius_norm2 () const
    \n-
    981 {
    \n-
    982 typename FieldTraits<field_type>::real_type sum=0;
    \n-
    983 for (size_type i=0; i<this->N(); i++)
    \n-
    984 for (size_type j=0; j<this->M(); j++)
    \n-
    985 sum += Impl::asMatrix(data_[i][j]).frobenius_norm2();
    \n-
    986 return sum;
    \n-
    987 }
    \n-
    \n-
    988
    \n-
    990 template <typename ft = field_type,
    \n-
    991 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n-
    \n-
    992 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n-
    993 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    994 using std::max;
    \n-
    995
    \n-
    996 real_type norm = 0;
    \n-
    997 for (auto const &x : *this) {
    \n-
    998 real_type sum = 0;
    \n-
    999 for (auto const &y : x)
    \n-
    1000 sum += Impl::asMatrix(y).infinity_norm();
    \n-
    1001 norm = max(sum, norm);
    \n-
    1002 isNaN += sum;
    \n-
    1003 }
    \n-
    1004
    \n-
    1005 return norm;
    \n-
    1006 }
    \n-
    \n-
    1007
    \n-
    1009 template <typename ft = field_type,
    \n-
    1010 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n-
    \n-
    1011 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n-
    1012 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    1013 using std::max;
    \n-
    1014
    \n-
    1015 real_type norm = 0;
    \n-
    1016 for (auto const &x : *this) {
    \n-
    1017 real_type sum = 0;
    \n-
    1018 for (auto const &y : x)
    \n-
    1019 sum += Impl::asMatrix(y).infinity_norm_real();
    \n-
    1020 norm = max(sum, norm);
    \n-
    1021 }
    \n-
    1022 return norm;
    \n-
    1023 }
    \n-
    \n-
    1024
    \n-
    1026 template <typename ft = field_type,
    \n-
    1027 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n-
    \n-
    1028 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n-
    1029 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    1030 using std::max;
    \n-
    1031
    \n-
    1032 real_type norm = 0;
    \n-
    1033 real_type isNaN = 1;
    \n-
    1034 for (auto const &x : *this) {
    \n-
    1035 real_type sum = 0;
    \n-
    1036 for (auto const &y : x)
    \n-
    1037 sum += Impl::asMatrix(y).infinity_norm();
    \n-
    1038 norm = max(sum, norm);
    \n-
    1039 isNaN += sum;
    \n-
    1040 }
    \n-
    1041
    \n-
    1042 return norm * (isNaN / isNaN);
    \n-
    1043 }
    \n-
    \n-
    1044
    \n-
    1046 template <typename ft = field_type,
    \n-
    1047 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n-
    \n-
    1048 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n-
    1049 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    1050 using std::max;
    \n-
    1051
    \n-
    1052 real_type norm = 0;
    \n-
    1053 real_type isNaN = 1;
    \n-
    1054 for (auto const &x : *this) {
    \n-
    1055 real_type sum = 0;
    \n-
    1056 for (auto const &y : x)
    \n-
    1057 sum += Impl::asMatrix(y).infinity_norm_real();
    \n-
    1058 norm = max(sum, norm);
    \n-
    1059 isNaN += sum;
    \n-
    1060 }
    \n-
    1061
    \n-
    1062 return norm * (isNaN / isNaN);
    \n-
    1063 }
    \n-
    \n-
    1064
    \n-
    1065 //===== query
    \n-
    1066
    \n-
    \n-
    1068 bool exists ([[maybe_unused]] size_type i, [[maybe_unused]] size_type j) const
    \n-
    1069 {
    \n-
    1070#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1071 if (i<0 || i>=N()) DUNE_THROW(ISTLError,"row index out of range");
    \n-
    1072 if (j<0 || i>=M()) DUNE_THROW(ISTLError,"column index out of range");
    \n-
    1073#endif
    \n-
    1074 return true;
    \n-
    1075 }
    \n-
    \n-
    1076
    \n-
    1077 protected:
    \n-
    1078
    \n-\n-
    1082
    \n-\n-
    1089 };
    \n-
    \n-
    1090
    \n-
    1091 template<class T, class A>
    \n-
    \n-
    1092 struct FieldTraits< Matrix<T, A> >
    \n-
    1093 {
    \n-\n-
    1095 using real_type = typename FieldTraits<field_type>::real_type;
    \n-
    1096 };
    \n-
    \n-
    1097
    \n-
    1099} // end namespace Dune
    \n-
    1100
    \n-
    1101#endif
    \n-
    Helper functions for determining the vector/matrix block level.
    \n-\n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    141 /* Modify the coefficients. */
    \n+
    142 block_type a_00_inv = (*this)[0][0];
    \n+
    143 Impl::asMatrix(a_00_inv).invert();
    \n+
    144
    \n+
    145 //c[0] /= (*this)[0][0]; /* Division by zero risk. */
    \n+
    146 block_type tmp = a_00_inv;
    \n+
    147 Impl::asMatrix(tmp).rightmultiply(Impl::asMatrix(c[0]));
    \n+
    148 c[0] = tmp;
    \n+
    149
    \n+
    150 // d = a^{-1} d /* Division by zero would imply a singular matrix. */
    \n+
    151 auto d_0_tmp = d[0];
    \n+
    152 auto&& d_0 = Impl::asVector(d[0]);
    \n+
    153 Impl::asMatrix(a_00_inv).mv(Impl::asVector(d_0_tmp),d_0);
    \n+
    154
    \n+
    155 for (unsigned int i = 1; i < this->N(); i++) {
    \n+
    156
    \n+
    157 // id = ( a_ii - c_{i-1} a_{i, i-1} ) ^{-1}
    \n+
    158 block_type tmp;
    \n+
    159 tmp = (*this)[i][i-1];
    \n+
    160 Impl::asMatrix(tmp).rightmultiply(Impl::asMatrix(c[i-1]));
    \n+
    161
    \n+
    162 block_type id = (*this)[i][i];
    \n+
    163 id -= tmp;
    \n+
    164 Impl::asMatrix(id).invert(); /* Division by zero risk. */
    \n+
    165
    \n+
    166 if (i<c.size()) {
    \n+
    167 Impl::asMatrix(c[i]).leftmultiply(Impl::asMatrix(id)); /* Last value calculated is redundant. */
    \n+
    168 }
    \n+
    169
    \n+
    170 // d[i] = (d[i] - d[i-1] * (*this)[i][i-1]) * id;
    \n+
    171 auto&& d_i = Impl::asVector(d[i]);
    \n+
    172 Impl::asMatrix((*this)[i][i-1]).mmv(Impl::asVector(d[i-1]), d_i);
    \n+
    173 auto tmpVec = d[i];
    \n+
    174 Impl::asMatrix(id).mv(Impl::asVector(tmpVec), d_i);
    \n+
    175 }
    \n+
    176
    \n+
    177 /* Now back substitute. */
    \n+
    178 x[this->N() - 1] = d[this->N() - 1];
    \n+
    179 for (int i = this->N() - 2; i >= 0; i--) {
    \n+
    180 //x[i] = d[i] - c[i] * x[i + 1];
    \n+
    181 x[i] = d[i];
    \n+
    182 auto&& x_i = Impl::asVector(x[i]);
    \n+
    183 Impl::asMatrix(c[i]).mmv(Impl::asVector(x[i+1]), x_i);
    \n+
    184 }
    \n+
    185
    \n+
    186 }
    \n+
    \n+
    187
    \n+
    188 private:
    \n+
    189
    \n+
    190 // ////////////////////////////////////////////////////////////////////////////
    \n+
    191 // The following methods from the base class should now actually be called
    \n+
    192 // ////////////////////////////////////////////////////////////////////////////
    \n+
    193
    \n+
    194 // createbegin and createend should be in there, too, but I can't get it to compile
    \n+
    195 // BCRSMatrix<B,A>::CreateIterator createbegin () {}
    \n+
    196 // BCRSMatrix<B,A>::CreateIterator createend () {}
    \n+
    197 void setrowsize (size_type i, size_type s) {}
    \n+
    198 void incrementrowsize (size_type i) {}
    \n+
    199 void endrowsizes () {}
    \n+
    200 void addindex (size_type row, size_type col) {}
    \n+
    201 void endindices () {}
    \n+
    202 };
    \n+
    \n+
    203
    \n+
    204 template<typename B, typename A>
    \n+
    \n+
    205 struct FieldTraits< BTDMatrix<B, A> >
    \n+
    206 {
    \n+\n+
    208 using real_type = typename FieldTraits<field_type>::real_type;
    \n+
    209 };
    \n+
    \n+
    210
    \n+
    213} // end namespace Dune
    \n+
    214
    \n+
    215#endif
    \n+
    Helper functions for determining the vector/matrix block level.
    \n+
    Implementation of the BCRSMatrix class.
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n
    Definition allocator.hh:11
    \n-
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    A Vector of blocks with different blocksizes.
    Definition matrix.hh:44
    \n-
    Imp::BlockVectorWindow< B, A > window_type
    Definition matrix.hh:70
    \n-
    BlockVector< B, A > block_type
    Same as value_type, here for historical reasons.
    Definition matrix.hh:67
    \n-
    DenseMatrixBase & operator=(const DenseMatrixBase &a)
    assignment
    Definition matrix.hh:182
    \n-
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition matrix.hh:50
    \n-
    Iterator beforeBegin() const
    Definition matrix.hh:385
    \n-
    void resize(size_type rows, size_type columns)
    same effect as constructor with same argument
    Definition matrix.hh:153
    \n-
    const window_type const_reference
    Definition matrix.hh:74
    \n-
    DenseMatrixBase(size_type rows, size_type columns)
    Definition matrix.hh:95
    \n-
    Iterator end()
    end Iterator
    Definition matrix.hh:371
    \n-
    reference operator[](size_type i)
    random access to blocks
    Definition matrix.hh:241
    \n-
    BlockVector< B, A > value_type
    Type of the elements of the outer vector, i.e., dynamic vectors of B.
    Definition matrix.hh:63
    \n-
    Iterator find(size_type i)
    random access returning iterator (end if not contained)
    Definition matrix.hh:391
    \n-
    size_type N() const
    number of blocks in the vector (are of variable size here)
    Definition matrix.hh:539
    \n-
    ConstIterator beforeEnd() const
    Definition matrix.hh:525
    \n-
    ConstIterator end() const
    end ConstIterator
    Definition matrix.hh:518
    \n-
    window_type reference
    Definition matrix.hh:72
    \n-
    ConstIterator rend() const
    end ConstIterator
    Definition matrix.hh:531
    \n-
    Iterator beforeEnd()
    Definition matrix.hh:378
    \n-
    ConstIterator begin() const
    begin ConstIterator
    Definition matrix.hh:512
    \n-
    A allocator_type
    export the allocator type
    Definition matrix.hh:53
    \n-
    DenseMatrixBase()
    Definition matrix.hh:82
    \n-
    ConstIterator find(size_type i) const
    random access returning iterator (end if not contained)
    Definition matrix.hh:397
    \n-
    A::size_type size_type
    The size type for the index access.
    Definition matrix.hh:56
    \n-
    ~DenseMatrixBase()
    free dynamic memory
    Definition matrix.hh:142
    \n-
    Iterator begin()
    begin Iterator
    Definition matrix.hh:365
    \n-
    DenseMatrixBase(const DenseMatrixBase &a)
    copy constructor, has copy semantics
    Definition matrix.hh:116
    \n-
    Iterator class for sequential access.
    Definition matrix.hh:263
    \n-
    Iterator & operator--()
    prefix decrement
    Definition matrix.hh:308
    \n-
    size_type index() const
    Definition matrix.hh:352
    \n-\n-\n-
    bool operator!=(const Iterator &it) const
    inequality
    Definition matrix.hh:322
    \n-
    Iterator & operator=(Iterator &&other)
    Move assignment.
    Definition matrix.hh:282
    \n-
    Iterator & operator++()
    prefix increment
    Definition matrix.hh:300
    \n-
    Iterator()
    constructor, no arguments
    Definition matrix.hh:266
    \n-
    window_type & operator*() const
    dereferencing
    Definition matrix.hh:340
    \n-
    bool operator==(const Iterator &it) const
    equality
    Definition matrix.hh:316
    \n-
    Iterator & operator=(Iterator &other)
    Copy assignment.
    Definition matrix.hh:291
    \n-
    Iterator(B *data, size_type columns, size_type _i)
    constructor
    Definition matrix.hh:276
    \n-
    window_type * operator->() const
    arrow
    Definition matrix.hh:346
    \n-
    ConstIterator class for sequential access.
    Definition matrix.hh:404
    \n-
    const window_type * operator->() const
    arrow
    Definition matrix.hh:487
    \n-
    const window_type & operator*() const
    dereferencing
    Definition matrix.hh:481
    \n-
    ConstIterator & operator++()
    prefix increment
    Definition matrix.hh:441
    \n-
    ConstIterator(const B *data, size_type columns, size_type _i)
    constructor from pointer
    Definition matrix.hh:414
    \n-
    ConstIterator & operator--()
    prefix decrement
    Definition matrix.hh:449
    \n-
    ConstIterator(const Iterator &it)
    constructor from non_const iterator
    Definition matrix.hh:420
    \n-
    bool operator!=(const ConstIterator &it) const
    inequality
    Definition matrix.hh:463
    \n-
    ConstIterator()
    constructor
    Definition matrix.hh:407
    \n-
    bool operator==(const ConstIterator &it) const
    equality
    Definition matrix.hh:457
    \n-
    size_type index() const
    Definition matrix.hh:493
    \n-
    ConstIterator & operator=(Iterator &&other)
    Definition matrix.hh:424
    \n-
    ConstIterator & operator=(Iterator &other)
    Definition matrix.hh:432
    \n-
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n-
    size_type cols_
    Number of columns of the matrix.
    Definition matrix.hh:1088
    \n-
    FieldTraits< ft >::real_type infinity_norm() const
    infinity norm (row sum norm, how to generalize for blocks?)
    Definition matrix.hh:992
    \n-
    A allocator_type
    Export the allocator.
    Definition matrix.hh:571
    \n-
    FieldTraits< ft >::real_type infinity_norm_real() const
    simplified infinity norm (uses Manhattan norm for complex values)
    Definition matrix.hh:1011
    \n-
    void usmhv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^H x
    Definition matrix.hh:956
    \n-
    void usmv(const field_type &alpha, const X &x, Y &y) const
    Definition matrix.hh:854
    \n-
    A::size_type size_type
    Type for indices and sizes.
    Definition matrix.hh:577
    \n-
    MatrixImp::DenseMatrixBase< T, A > data_
    Abuse DenseMatrixBase as an engine for a 2d array ISTL-style.
    Definition matrix.hh:1081
    \n-
    Matrix transpose() const
    Return the transpose of the matrix.
    Definition matrix.hh:745
    \n-
    void mtv(const X &x, Y &y) const
    y = A^T x
    Definition matrix.hh:807
    \n-
    void umv(const X &x, Y &y) const
    y += A x
    Definition matrix.hh:820
    \n-
    void mv(const X &x, Y &y) const
    y = A x
    Definition matrix.hh:788
    \n-
    MatrixImp::DenseMatrixBase< T, A >::ConstIterator ConstRowIterator
    Const iterator over the matrix rows.
    Definition matrix.hh:586
    \n-
    void setSize(size_type rows, size_type cols)
    Change the matrix size.
    Definition matrix.hh:608
    \n-
    RowIterator beforeBegin()
    Definition matrix.hh:634
    \n-
    RowIterator beforeEnd()
    Definition matrix.hh:627
    \n-
    Matrix()
    Create empty matrix.
    Definition matrix.hh:596
    \n-
    Matrix & operator-=(const Matrix &b)
    Subtract the entries of another matrix from this one.
    Definition matrix.hh:735
    \n-
    FieldTraits< field_type >::real_type frobenius_norm2() const
    square of frobenius norm, need for block recursion
    Definition matrix.hh:980
    \n-
    row_type::iterator ColIterator
    Iterator for the entries of each row.
    Definition matrix.hh:583
    \n-
    ConstRowIterator beforeEnd() const
    Definition matrix.hh:653
    \n-
    Matrix & operator=(const field_type &t)
    Assignment from scalar.
    Definition matrix.hh:666
    \n-
    RowIterator end()
    Get iterator to one beyond last row.
    Definition matrix.hh:620
    \n-
    const row_type operator[](size_type row) const
    The const index operator.
    Definition matrix.hh:684
    \n-
    ConstRowIterator end() const
    Get const iterator to one beyond last row.
    Definition matrix.hh:646
    \n-
    friend Y operator*(const Matrix< T > &m, const X &vec)
    Generic matrix-vector multiplication.
    Definition matrix.hh:770
    \n-
    Matrix< T > & operator*=(const field_type &scalar)
    Multiplication with a scalar.
    Definition matrix.hh:705
    \n-
    row_type operator[](size_type row)
    The index operator.
    Definition matrix.hh:673
    \n-
    void mmv(const X &x, Y &y) const
    y -= A x
    Definition matrix.hh:837
    \n-
    Matrix & operator+=(const Matrix &b)
    Add the entries of another matrix to this one.
    Definition matrix.hh:721
    \n-
    ConstRowIterator begin() const
    Get const iterator to first row.
    Definition matrix.hh:640
    \n-
    void mmhv(const X &x, Y &y) const
    y -= A^H x
    Definition matrix.hh:939
    \n-
    RowIterator begin()
    Get iterator to first row.
    Definition matrix.hh:614
    \n-
    typename Imp::BlockTraits< T >::field_type field_type
    Export the type representing the underlying field.
    Definition matrix.hh:565
    \n-
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n-
    static constexpr auto blocklevel
    The number of nesting levels the matrix contains.
    Definition matrix.hh:593
    \n-
    size_type M() const
    Return the number of columns.
    Definition matrix.hh:700
    \n-
    T block_type
    Export the type representing the components.
    Definition matrix.hh:568
    \n-
    bool exists(size_type i, size_type j) const
    return true if (i,j) is in pattern
    Definition matrix.hh:1068
    \n-
    Matrix< T > & operator/=(const field_type &scalar)
    Division by a scalar.
    Definition matrix.hh:711
    \n-
    friend Matrix< T > operator*(const Matrix< T > &m1, const Matrix< T > &m2)
    Generic matrix multiplication.
    Definition matrix.hh:755
    \n-
    void umtv(const X &x, Y &y) const
    y += A^T x
    Definition matrix.hh:871
    \n-
    void mmtv(const X &x, Y &y) const
    y -= A^T x
    Definition matrix.hh:888
    \n-
    MatrixImp::DenseMatrixBase< T, A >::window_type row_type
    The type implementing a matrix row.
    Definition matrix.hh:574
    \n-
    FieldTraits< field_type >::real_type frobenius_norm() const
    frobenius norm: sqrt(sum over squared values of entries)
    Definition matrix.hh:974
    \n-
    void usmtv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^T x
    Definition matrix.hh:905
    \n-
    void umhv(const X &x, Y &y) const
    y += A^H x
    Definition matrix.hh:922
    \n-
    size_type N() const
    Return the number of rows.
    Definition matrix.hh:695
    \n-
    ConstRowIterator beforeBegin() const
    Definition matrix.hh:660
    \n-
    Matrix(size_type rows, size_type cols)
    Create uninitialized matrix of size rows x cols.
    Definition matrix.hh:601
    \n-
    MatrixImp::DenseMatrixBase< T, A >::Iterator RowIterator
    Iterator over the matrix rows.
    Definition matrix.hh:580
    \n-
    typename Matrix< T, A >::field_type field_type
    Definition matrix.hh:1094
    \n-
    typename FieldTraits< field_type >::real_type real_type
    Definition matrix.hh:1095
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    void endrowsizes()
    indicate that size of all rows is defined
    Definition bcrsmatrix.hh:1149
    \n+
    @ random
    Build entries randomly.
    Definition bcrsmatrix.hh:530
    \n+
    void addindex(size_type row, size_type col)
    add index (row,col) to the matrix
    Definition bcrsmatrix.hh:1191
    \n+
    void endindices()
    indicate that all indices are defined, check consistency
    Definition bcrsmatrix.hh:1248
    \n+
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n+
    void setSize(size_type rows, size_type columns, size_type nnz=0)
    Set the size of the matrix.
    Definition bcrsmatrix.hh:861
    \n+
    BCRSMatrix & operator=(const BCRSMatrix &Mat)
    assignment
    Definition bcrsmatrix.hh:911
    \n+
    A block-tridiagonal matrix.
    Definition btdmatrix.hh:31
    \n+
    static constexpr auto blocklevel
    increment block level counter
    Definition btdmatrix.hh:53
    \n+
    BTDMatrix(size_type size)
    Definition btdmatrix.hh:58
    \n+
    void solve(V &x, const V &rhs) const
    Use the Thomas algorithm to solve the system Ax=b in O(n) time.
    Definition btdmatrix.hh:125
    \n+
    A::size_type size_type
    implement row_type with compressed vector
    Definition btdmatrix.hh:49
    \n+
    A allocator_type
    export the allocator type
    Definition btdmatrix.hh:43
    \n+
    B block_type
    export the type representing the components
    Definition btdmatrix.hh:40
    \n+
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition btdmatrix.hh:37
    \n+
    BTDMatrix & operator=(const BTDMatrix &other)
    assignment
    Definition btdmatrix.hh:108
    \n+
    BTDMatrix()
    Default constructor.
    Definition btdmatrix.hh:56
    \n+
    void setSize(size_type size)
    Resize the matrix. Invalidates the content!
    Definition btdmatrix.hh:81
    \n+
    typename FieldTraits< field_type >::real_type real_type
    Definition btdmatrix.hh:208
    \n+
    typename BTDMatrix< B, A >::field_type field_type
    Definition btdmatrix.hh:207
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1378 +1,288 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-matrix.hh\n+btdmatrix.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_MATRIX_HH\n-6#define DUNE_ISTL_MATRIX_HH\n+5#ifndef DUNE_ISTL_BTDMATRIX_HH\n+6#define DUNE_ISTL_BTDMATRIX_HH\n 7\n-12#include \n-13#include \n-14\n-15#include \n-16#include \n-17#include \n-18#include \n-19\n-20#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-22#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n-23\n-24namespace _\bD_\bu_\bn_\be {\n-25\n-_\b2_\b6namespace MatrixImp\n-27{\n-39 template >\n-_\b4_\b0 class _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be : public Imp::block_vector_unmanaged\n-41 // this derivation gives us all the blas level 1 and norms\n-42 // on the large array. However, access operators have to be\n-43 // overwritten.\n-44 {\n-45 public:\n-46\n-47 //===== type definitions and constants\n-48\n-_\b5_\b0 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n-51\n-_\b5_\b3 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n+8#include \n+9#include \n+10#include \n+11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+13\n+19namespace _\bD_\bu_\bn_\be {\n+29 template >\n+_\b3_\b0 class _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx : public _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+31 {\n+32 public:\n+33\n+34 //===== type definitions and constants\n+35\n+_\b3_\b7 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n+38\n+_\b4_\b0 typedef B _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+41\n+_\b4_\b3 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n+44\n+46 //typedef BCRSMatrix::row_type row_type;\n+47\n+_\b4_\b9 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+50\n+52 [[deprecated(\"Use free blockLevel function. Will be removed after 2.8.\")]]\n+_\b5_\b3 static constexpr auto _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+1;\n 54\n-_\b5_\b6 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+_\b5_\b6 _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx() : _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx() {}\n 57\n-_\b6_\b3 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bB_\b,_\bA_\b> _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be;\n-64\n-_\b6_\b7 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bB_\b,_\bA_\b> _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-68\n-69 // just a shorthand\n-_\b7_\b0 typedef Imp::BlockVectorWindow _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be;\n-71\n-_\b7_\b2 typedef _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-73\n-_\b7_\b4 typedef const _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-75\n+_\b5_\b8 explicit _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size)\n+59 : _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx(size, size, _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx::_\br_\ba_\bn_\bd_\bo_\bm)\n+60 {\n+61 // Set number of entries for each row\n+62 // All rows get three entries, except for the first and the last one\n+63 for (size_t i=0; i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be(i, 3 - (i==0) - (i==(size-1)));\n+65\n+66 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs();\n+67\n+68 // The actual entries for each row\n+69 for (size_t i=0; i0)\n+71 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i-1);\n+72 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i );\n+73 if (i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i+1);\n+75 }\n 76\n-77 //===== constructors and such\n-78\n-_\b8_\b2 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be () : Imp::block_vector_unmanaged()\n-83 {\n-84 // nothing is known ...\n-85 rows_ = 0;\n-86 columns_ = 0;\n-87 }\n-88\n-_\b9_\b5 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns) : Imp::\n-block_vector_unmanaged()\n-96 {\n-97 // and we can allocate the big array in the base class\n-98 this->n = rows*columns;\n-99 columns_ = columns;\n-100 if (this->n>0)\n-101 {\n-102 this->p = allocator_.allocate(this->n);\n-103 new (this->p)B[this->n];\n-104 }\n-105 else\n-106 {\n-107 this->n = 0;\n-108 this->p = 0;\n-109 }\n-110\n-111 // we can allocate the windows now\n-112 rows_ = rows;\n-113 }\n-114\n-_\b1_\b1_\b6 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be& a)\n-117 {\n-118 // allocate the big array in the base class\n-119 this->n = a.n;\n-120 columns_ = a.columns_;\n-121 if (this->n>0)\n-122 {\n-123 // allocate and construct objects\n-124 this->p = allocator_.allocate(this->n);\n-125 new (this->p)B[this->n];\n+77 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs();\n+78 }\n+79\n+_\b8_\b1 void _\bs_\be_\bt_\bS_\bi_\bz_\be(size_type size)\n+82 {\n+83 auto nonZeros = (size==0) ? 0 : size + 2*(size-1);\n+84 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be(size, // rows\n+85 size, // columns\n+86 nonZeros);\n+87\n+88 // Set number of entries for each row\n+89 // All rows get three entries, except for the first and the last one\n+90 for (size_t i=0; i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be(i, 3 - (i==0) - (i==(size-1)));\n+92\n+93 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs();\n+94\n+95 // The actual entries for each row\n+96 for (size_t i=0; i0)\n+98 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i-1);\n+99 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i );\n+100 if (i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i+1);\n+102 }\n+103\n+104 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs();\n+105 }\n+106\n+_\b1_\b0_\b8 _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx& other) {\n+109 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(other);\n+110 return *this;\n+111 }\n+112\n+_\b1_\b1_\b4 _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k) {\n+115 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(k);\n+116 return *this;\n+117 }\n+118\n+124 template \n+_\b1_\b2_\b5 void _\bs_\bo_\bl_\bv_\be (V& x, const V& rhs) const {\n 126\n-127 // copy data\n-128 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; in; i++)\n-129 this->p[i]=a.p[i];\n-130 }\n-131 else\n-132 {\n-133 this->n = 0;\n-134 this->p = nullptr;\n-135 }\n-136\n-137 // we can allocate the windows now\n-138 rows_ = a.rows_;\n-139 }\n+127 // special handling for 1x1 matrices. The generic algorithm doesn't work\n+for them\n+128 if (this->_\bN()==1) {\n+129 auto&& x0 = Impl::asVector(x[0]);\n+130 auto&& rhs0 = Impl::asVector(rhs[0]);\n+131 Impl::asMatrix((*this)[0][0]).solve(x0, rhs0);\n+132 return;\n+133 }\n+134\n+135 // Make copies of the rhs and the right matrix band\n+136 V d = rhs;\n+137 std::vector c(this->_\bN()-1);\n+138 for (size_t i=0; i_\bN()-1; i++)\n+139 c[i] = (*this)[i][i+1];\n 140\n-_\b1_\b4_\b2 _\b~_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be ()\n-143 {\n-144 if (this->n>0) {\n-145 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n-146 while (i)\n-147 this->p[--i].~B();\n-148 allocator_.deallocate(this->p,this->n);\n-149 }\n-150 }\n-151\n-_\b1_\b5_\b3 void _\br_\be_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns)\n-154 {\n-155 // deconstruct objects and deallocate memory if necessary\n-156 if (this->n>0) {\n-157 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n-158 while (i)\n-159 this->p[--i].~B();\n-160 allocator_.deallocate(this->p,this->n);\n-161 }\n-162\n-163 // and we can allocate the big array in the base class\n-164 this->n = rows*columns;\n-165 if (this->n>0)\n-166 {\n-167 this->p = allocator_.allocate(this->n);\n-168 new (this->p)B[this->n];\n-169 }\n-170 else\n-171 {\n-172 this->n = 0;\n-173 this->p = nullptr;\n-174 }\n-175\n-176 // we can allocate the windows now\n-177 rows_ = rows;\n-178 columns_ = columns;\n-179 }\n-180\n-_\b1_\b8_\b2 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be& a)\n-183 {\n-184 if (&a!=this) // check if this and a are different objects\n-185 {\n-186 columns_ = a.columns_;\n-187 // reallocate arrays if necessary\n-188 // Note: still the block sizes may vary !\n-189 if (this->n!=a.n || rows_!=a.rows_)\n-190 {\n-191 // deconstruct objects and deallocate memory if necessary\n-192 if (this->n>0) {\n-193 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n-194 while (i)\n-195 this->p[--i].~B();\n-196 allocator_.deallocate(this->p,this->n);\n-197 }\n-198\n-199 // allocate the big array in the base class\n-200 this->n = a.n;\n-201 if (this->n>0)\n-202 {\n-203 // allocate and construct objects\n-204 this->p = allocator_.allocate(this->n);\n-205 new (this->p)B[this->n];\n-206 }\n-207 else\n-208 {\n-209 this->n = 0;\n-210 this->p = nullptr;\n-211 }\n-212\n-213 // Copy number of rows\n-214 rows_ = a.rows_;\n-215 }\n-216\n-217 // and copy the data\n-218 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; in; i++)\n-219 this->p[i]=a.p[i];\n-220 }\n-221\n-222 return *this;\n-223 }\n-224\n-225\n-226 //===== assignment from scalar\n-227\n-_\b2_\b2_\b9 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n-230 {\n-231 (static_cast&>(*this)) = k;\n-232 return *this;\n-233 }\n-234\n-235\n-236 //===== access to components\n-237 // has to be overwritten from base class because it must\n-238 // return access to the windows\n-239\n-_\b2_\b4_\b1 _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n-242 {\n-243#ifdef DUNE_ISTL_WITH_CHECKING\n-244 if (i>=rows_) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n-245#endif\n-246 return _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be(this->p + i*columns_, columns_);\n-247 }\n-248\n-_\b2_\b5_\b0 _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-251 {\n-252#ifdef DUNE_ISTL_WITH_CHECKING\n-253 if (i<0 || i>=rows_) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n-254#endif\n-255 return _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be(this->p + i*columns_, columns_);\n-256 }\n-257\n-258 // forward declaration\n-259 class ConstIterator;\n-260\n-_\b2_\b6_\b2 class _\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-263 {\n-264 public:\n-_\b2_\b6_\b6 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br ()\n-267 : window_(nullptr,0)\n-268 {\n-269 i = 0;\n-270 }\n-271\n-_\b2_\b7_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br (_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) = default;\n-_\b2_\b7_\b3 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br (_\bI_\bt_\be_\br_\ba_\bt_\bo_\br&& other) = default;\n-274\n-_\b2_\b7_\b6 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br (B* data, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i)\n-277 : i(_i),\n-278 window_(data + _i*columns, columns)\n-279 {}\n-280\n-_\b2_\b8_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(_\bI_\bt_\be_\br_\ba_\bt_\bo_\br&& other)\n-283 {\n-284 i = other.i;\n-285 // Do NOT use window_.operator=, because that copies the window content,\n-not just the window!\n-286 window_.set(other.window_.getsize(),other.window_.getptr());\n-287 return *this;\n-288 }\n-289\n-_\b2_\b9_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other)\n-292 {\n-293 i = other.i;\n-294 // Do NOT use window_.operator=, because that copies the window content,\n-not just the window!\n-295 window_.set(other.window_.getsize(),other.window_.getptr());\n-296 return *this;\n-297 }\n-298\n-_\b3_\b0_\b0 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n-301 {\n-302 ++i;\n-303 window_.setptr(window_.getptr()+window_.getsize());\n-304 return *this;\n-305 }\n-306\n-_\b3_\b0_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-()\n-309 {\n-310 --i;\n-311 window_.setptr(window_.getptr()-window_.getsize());\n-312 return *this;\n-313 }\n-314\n-_\b3_\b1_\b6 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-317 {\n-318 return window_.getptr() == it.window_.getptr();\n-319 }\n-320\n-_\b3_\b2_\b2 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-323 {\n-324 return window_.getptr() != it.window_.getptr();\n-325 }\n-326\n-_\b3_\b2_\b8 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-329 {\n-330 return window_.getptr() == it.window_.getptr();\n-331 }\n-332\n-_\b3_\b3_\b4 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-335 {\n-336 return window_.getptr() != it.window_.getptr();\n-337 }\n-338\n-_\b3_\b4_\b0 _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b () const\n-341 {\n-342 return window_;\n-343 }\n-344\n-_\b3_\b4_\b6 _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be* _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>_\b () const\n-347 {\n-348 return &window_;\n-349 }\n-350\n-351 // return index corresponding to pointer\n-_\b3_\b5_\b2 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx () const\n-353 {\n-354 return i;\n-355 }\n-356\n-_\b3_\b5_\b7 friend class _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-358\n-359 private:\n-360 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i;\n-361 mutable _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be window_;\n-362 };\n-363\n-_\b3_\b6_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn ()\n-366 {\n-367 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, 0);\n-368 }\n-369\n-_\b3_\b7_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd ()\n-372 {\n-373 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, rows_);\n-374 }\n-375\n-_\b3_\b7_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n-379 {\n-380 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, rows_-1);\n-381 }\n-382\n-_\b3_\b8_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n-386 {\n-387 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, -1);\n-388 }\n-389\n-_\b3_\b9_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\bd (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n-392 {\n-393 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, std::min(i,rows_));\n-394 }\n-395\n-_\b3_\b9_\b7 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\bd (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-398 {\n-399 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, std::min(i,rows_));\n-400 }\n-401\n-_\b4_\b0_\b3 class _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-404 {\n-405 public:\n-_\b4_\b0_\b7 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ()\n-408 : window_(nullptr,0)\n-409 {\n-410 i = 0;\n-411 }\n-412\n-_\b4_\b1_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (const B* data, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i)\n-415 : i(_i),\n-416 window_(const_cast(data + _i * columns), columns)\n-417 {}\n-418\n-_\b4_\b2_\b0 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it)\n-421 : i(it.i), window_(it.window_.getptr(),it.window_.getsize())\n-422 {}\n-423\n-_\b4_\b2_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(_\bI_\bt_\be_\br_\ba_\bt_\bo_\br&& other)\n-425 {\n-426 i = other.i;\n-427 // Do NOT use window_.operator=, because that copies the window content,\n-not just the window!\n-428 window_.set(other.window_.getsize(),other.window_.getptr());\n-429 return *this;\n-430 }\n-431\n-_\b4_\b3_\b2 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other)\n-433 {\n-434 i = other.i;\n-435 // Do NOT use window_.operator=, because that copies the window content,\n-not just the window!\n-436 window_.set(other.window_.getsize(),other.window_.getptr());\n-437 return *this;\n-438 }\n-439\n-_\b4_\b4_\b1 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n-442 {\n-443 ++i;\n-444 window_.setptr(window_.getptr()+window_.getsize());\n-445 return *this;\n-446 }\n-447\n-_\b4_\b4_\b9 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-()\n-450 {\n-451 --i;\n-452 window_.setptr(window_.getptr()-window_.getsize());\n-453 return *this;\n-454 }\n-455\n-_\b4_\b5_\b7 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-458 {\n-459 return window_.getptr() == it.window_.getptr();\n-460 }\n-461\n-_\b4_\b6_\b3 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-464 {\n-465 return window_.getptr() != it.window_.getptr();\n-466 }\n-467\n-_\b4_\b6_\b9 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-470 {\n-471 return window_.getptr() == it.window_.getptr();\n-472 }\n-473\n-_\b4_\b7_\b5 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-476 {\n-477 return window_.getptr() != it.window_.getptr();\n-478 }\n-479\n-_\b4_\b8_\b1 const _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b () const\n-482 {\n-483 return window_;\n-484 }\n-485\n-_\b4_\b8_\b7 const _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be* _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>_\b () const\n-488 {\n-489 return &window_;\n-490 }\n-491\n-492 // return index corresponding to pointer\n-_\b4_\b9_\b3 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx () const\n-494 {\n-495 return i;\n-496 }\n-497\n-_\b4_\b9_\b8 friend class _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-499\n-500 private:\n-501 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i;\n-502 mutable _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be window_;\n-503 };\n-504\n-_\b5_\b0_\b6 using _\bi_\bt_\be_\br_\ba_\bt_\bo_\br = _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-507\n-_\b5_\b0_\b9 using _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br = _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-510\n-_\b5_\b1_\b2 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn () const\n-513 {\n-514 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, 0);\n-515 }\n-516\n-_\b5_\b1_\b8 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd () const\n-519 {\n-520 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, rows_);\n-521 }\n-522\n-_\b5_\b2_\b5 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd() const\n-526 {\n-527 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, rows_-1);\n-528 }\n-529\n-_\b5_\b3_\b1 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\br_\be_\bn_\bd () const\n-532 {\n-533 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, -1);\n-534 }\n-535\n-536 //===== sizes\n-537\n-_\b5_\b3_\b9 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN () const\n-540 {\n-541 return rows_;\n-542 }\n-543\n-544\n-545 private:\n-546 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows_; // number of matrix rows\n-547 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns_; // number of matrix columns\n-548\n-549 A allocator_;\n-550 };\n-551\n-552} // namespace MatrixImp\n-553\n-559 template >\n-_\b5_\b6_\b0 class _\bM_\ba_\bt_\br_\bi_\bx\n-561 {\n-562 public:\n-563\n-_\b5_\b6_\b5 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n-566\n-_\b5_\b6_\b8 typedef T _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-569\n-_\b5_\b7_\b1 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n-572\n-_\b5_\b7_\b4 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\b__\bt_\by_\bp_\be;\n-575\n-_\b5_\b7_\b7 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-578\n-_\b5_\b8_\b0 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-581\n-_\b5_\b8_\b3 typedef typename row_type::iterator _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-584\n-_\b5_\b8_\b6 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-587\n-_\b5_\b8_\b9 typedef typename row_type::const_iterator _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-590\n-592 [[deprecated(\"Use free function blockLevel(). Will be removed after\n-2.8.\")]]\n-_\b5_\b9_\b3 static constexpr auto _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+1;\n-594\n-_\b5_\b9_\b6 _\bM_\ba_\bt_\br_\bi_\bx() : _\bd_\ba_\bt_\ba_\b_(0,0), _\bc_\bo_\bl_\bs_\b_(0)\n-597 {}\n-598\n-_\b6_\b0_\b1 _\bM_\ba_\bt_\br_\bi_\bx(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be cols) : _\bd_\ba_\bt_\ba_\b_(rows,cols), _\bc_\bo_\bl_\bs_\b_(cols)\n-602 {}\n-603\n-_\b6_\b0_\b8 void _\bs_\be_\bt_\bS_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be cols) {\n-609 _\bd_\ba_\bt_\ba_\b_.resize(rows,cols);\n-610 _\bc_\bo_\bl_\bs_\b_ = cols;\n-611 }\n-612\n-_\b6_\b1_\b4 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn()\n-615 {\n-616 return _\bd_\ba_\bt_\ba_\b_.begin();\n-617 }\n-618\n-_\b6_\b2_\b0 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd()\n-621 {\n-622 return _\bd_\ba_\bt_\ba_\b_.end();\n-623 }\n-624\n-_\b6_\b2_\b7 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n-628 {\n-629 return _\bd_\ba_\bt_\ba_\b_.beforeEnd();\n-630 }\n-631\n-_\b6_\b3_\b4 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn ()\n-635 {\n-636 return _\bd_\ba_\bt_\ba_\b_.beforeBegin();\n-637 }\n-638\n-_\b6_\b4_\b0 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const\n-641 {\n-642 return _\bd_\ba_\bt_\ba_\b_.begin();\n-643 }\n-644\n-_\b6_\b4_\b6 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const\n-647 {\n-648 return _\bd_\ba_\bt_\ba_\b_.end();\n-649 }\n-650\n-_\b6_\b5_\b3 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd() const\n-654 {\n-655 return _\bd_\ba_\bt_\ba_\b_.beforeEnd();\n-656 }\n-657\n-_\b6_\b6_\b0 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n-661 {\n-662 return _\bd_\ba_\bt_\ba_\b_.beforeBegin();\n-663 }\n-664\n-_\b6_\b6_\b6 _\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& t)\n-667 {\n-668 _\bd_\ba_\bt_\ba_\b_ = t;\n-669 return *this;\n-670 }\n-671\n-_\b6_\b7_\b3 _\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row) {\n-674#ifdef DUNE_ISTL_WITH_CHECKING\n-675 if (row<0)\n-676 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Can't access negative rows!\");\n-677 if (row>=_\bN())\n-678 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Row index out of range!\");\n-679#endif\n-680 return _\bd_\ba_\bt_\ba_\b_[row];\n-681 }\n-682\n-_\b6_\b8_\b4 const _\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row) const {\n-685#ifdef DUNE_ISTL_WITH_CHECKING\n-686 if (row<0)\n-687 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Can't access negative rows!\");\n-688 if (row>=_\bN())\n-689 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Row index out of range!\");\n-690#endif\n-691 return _\bd_\ba_\bt_\ba_\b_[row];\n-692 }\n-693\n-_\b6_\b9_\b5 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN() const {\n-696 return _\bd_\ba_\bt_\ba_\b_.N();\n-697 }\n-698\n-_\b7_\b0_\b0 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bM() const {\n-701 return _\bc_\bo_\bl_\bs_\b_;\n-702 }\n-703\n-_\b7_\b0_\b5 _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=(const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& scalar) {\n-706 _\bd_\ba_\bt_\ba_\b_ *= scalar;\n-707 return (*this);\n-708 }\n-709\n-_\b7_\b1_\b1 _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=(const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& scalar) {\n-712 _\bd_\ba_\bt_\ba_\b_ /= scalar;\n-713 return (*this);\n-714 }\n-715\n-_\b7_\b2_\b1 _\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bM_\ba_\bt_\br_\bi_\bx& b) {\n-722#ifdef DUNE_ISTL_WITH_CHECKING\n-723 if(_\bN()!=b._\bN() || _\bM() != b._\bM())\n-724 DUNE_THROW(RangeError, \"Matrix sizes do not match!\");\n-725#endif\n-726 _\bd_\ba_\bt_\ba_\b_ += b._\bd_\ba_\bt_\ba_\b_;\n-727 return (*this);\n-728 }\n-729\n-_\b7_\b3_\b5 _\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bM_\ba_\bt_\br_\bi_\bx& b) {\n-736#ifdef DUNE_ISTL_WITH_CHECKING\n-737 if(_\bN()!=b._\bN() || _\bM() != b._\bM())\n-738 DUNE_THROW(RangeError, \"Matrix sizes do not match!\");\n-739#endif\n-740 _\bd_\ba_\bt_\ba_\b_ -= b._\bd_\ba_\bt_\ba_\b_;\n-741 return (*this);\n-742 }\n-743\n-_\b7_\b4_\b5 _\bM_\ba_\bt_\br_\bi_\bx _\bt_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be() const {\n-746 _\bM_\ba_\bt_\br_\bi_\bx out(_\bM(), _\bN());\n-747 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bN(); i++)\n-748 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bM(); j++)\n-749 out[j][i] = (*this)[i][j];\n-750\n-751 return out;\n-752 }\n-753\n-_\b7_\b5_\b5 friend _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b> _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*(const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& m1, const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& m2) {\n-756 _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b> out(m1._\bN(), m2._\bM());\n-757 out = 0;\n-758\n-759 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b7_\b7_\b0 friend Y _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*(const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& m, const X& vec) {\n-771#ifdef DUNE_ISTL_WITH_CHECKING\n-772 if (m._\bM()!=vec.size())\n-773 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Vector size doesn't match the number of matrix\n-columns!\");\n-774#endif\n-775 Y out(m._\bN());\n-776 out = 0;\n-777\n-778 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b7_\b8_\b8 void _\bm_\bv(const X& x, Y& y) const\n-789 {\n-790#ifdef DUNE_ISTL_WITH_CHECKING\n-791 if (x.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-792 if (y.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-793#endif\n-794 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++) {\n-795 y[i]=0;\n-796 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n-797 {\n-798 auto&& xj = Impl::asVector(x[j]);\n-799 auto&& yi = Impl::asVector(y[i]);\n-800 Impl::asMatrix((*this)[i][j]).umv(xj, yi);\n-801 }\n-802 }\n-803 }\n-804\n-806 template\n-_\b8_\b0_\b7 void _\bm_\bt_\bv (const X& x, Y& y) const\n-808 {\n-809#ifdef DUNE_ISTL_WITH_CHECKING\n-810 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n-811 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n-812#endif\n-813 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b8_\b2_\b0 void _\bu_\bm_\bv(const X& x, Y& y) const\n-821 {\n-822#ifdef DUNE_ISTL_WITH_CHECKING\n-823 if (x.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-824 if (y.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-825#endif\n-826 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n-827 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n-828 {\n-829 auto&& xj = Impl::asVector(x[j]);\n-830 auto&& yi = Impl::asVector(y[i]);\n-831 Impl::asMatrix((*this)[i][j]).umv(xj, yi);\n-832 }\n-833 }\n-834\n-836 template\n-_\b8_\b3_\b7 void _\bm_\bm_\bv (const X& x, Y& y) const\n-838 {\n-839#ifdef DUNE_ISTL_WITH_CHECKING\n-840 if (x.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-841 if (y.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-842#endif\n-843 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n-844 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n-845 {\n-846 auto&& xj = Impl::asVector(x[j]);\n-847 auto&& yi = Impl::asVector(y[i]);\n-848 Impl::asMatrix((*this)[i][j]).mmv(xj, yi);\n-849 }\n-850 }\n-851\n-853 template \n-_\b8_\b5_\b4 void _\bu_\bs_\bm_\bv(const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const\n-855 {\n-856#ifdef DUNE_ISTL_WITH_CHECKING\n-857 if (x.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-858 if (y.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-859#endif\n-860 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n-861 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n-862 {\n-863 auto&& xj = Impl::asVector(x[j]);\n-864 auto&& yi = Impl::asVector(y[i]);\n-865 Impl::asMatrix((*this)[i][j]).usmv(alpha, xj, yi);\n-866 }\n-867 }\n-868\n-870 template\n-_\b8_\b7_\b1 void _\bu_\bm_\bt_\bv (const X& x, Y& y) const\n-872 {\n-873#ifdef DUNE_ISTL_WITH_CHECKING\n-874 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-875 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-876#endif\n-877 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n-878 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n-879 {\n-880 auto&& xi = Impl::asVector(x[i]);\n-881 auto&& yj = Impl::asVector(y[j]);\n-882 Impl::asMatrix((*this)[i][j]).umtv(xi, yj);\n-883 }\n-884 }\n-885\n-887 template\n-_\b8_\b8_\b8 void _\bm_\bm_\bt_\bv (const X& x, Y& y) const\n-889 {\n-890#ifdef DUNE_ISTL_WITH_CHECKING\n-891 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-892 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-893#endif\n-894 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n-895 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n-896 {\n-897 auto&& xi = Impl::asVector(x[i]);\n-898 auto&& yj = Impl::asVector(y[j]);\n-899 Impl::asMatrix((*this)[i][j]).mmtv(xi, yj);\n-900 }\n-901 }\n-902\n-904 template\n-_\b9_\b0_\b5 void _\bu_\bs_\bm_\bt_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const\n-906 {\n-907#ifdef DUNE_ISTL_WITH_CHECKING\n-908 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-909 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-910#endif\n-911 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n-912 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n-913 {\n-914 auto&& xi = Impl::asVector(x[i]);\n-915 auto&& yj = Impl::asVector(y[j]);\n-916 Impl::asMatrix((*this)[i][j]).usmtv(alpha, xi, yj);\n-917 }\n-918 }\n-919\n-921 template\n-_\b9_\b2_\b2 void _\bu_\bm_\bh_\bv (const X& x, Y& y) const\n-923 {\n-924#ifdef DUNE_ISTL_WITH_CHECKING\n-925 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-926 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-927#endif\n-928 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n-929 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n-930 {\n-931 auto&& xi = Impl::asVector(x[i]);\n-932 auto&& yj = Impl::asVector(y[j]);\n-933 Impl::asMatrix((*this)[i][j]).umhv(xi,yj);\n-934 }\n-935 }\n-936\n-938 template\n-_\b9_\b3_\b9 void _\bm_\bm_\bh_\bv (const X& x, Y& y) const\n-940 {\n-941#ifdef DUNE_ISTL_WITH_CHECKING\n-942 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-943 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-944#endif\n-945 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n-946 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n-947 {\n-948 auto&& xi = Impl::asVector(x[i]);\n-949 auto&& yj = Impl::asVector(y[j]);\n-950 Impl::asMatrix((*this)[i][j]).mmhv(xi,yj);\n-951 }\n-952 }\n-953\n-955 template\n-_\b9_\b5_\b6 void _\bu_\bs_\bm_\bh_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const\n-957 {\n-958#ifdef DUNE_ISTL_WITH_CHECKING\n-959 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-960 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n-961#endif\n-962 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n-963 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n-964 {\n-965 auto&& xi = Impl::asVector(x[i]);\n-966 auto&& yj = Impl::asVector(y[j]);\n-967 Impl::asMatrix((*this)[i][j]).usmhv(alpha,xi,yj);\n-968 }\n-969 }\n-970\n-971 //===== norms\n-972\n-_\b9_\b7_\b4 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm () const\n-975 {\n-976 return std::sqrt(_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2());\n-977 }\n-978\n-_\b9_\b8_\b0 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2 () const\n-981 {\n-982 typename FieldTraits::real_type sum=0;\n-983 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i_\bN(); i++)\n-984 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j_\bM(); j++)\n-985 sum += Impl::asMatrix(_\bd_\ba_\bt_\ba_\b_[i][j]).frobenius_norm2();\n-986 return sum;\n-987 }\n-988\n-990 template ::value, int>::type = 0>\n-_\b9_\b9_\b2 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const {\n-993 using real_type = typename FieldTraits::real_type;\n-994 using std::max;\n-995\n-996 real_type norm = 0;\n-997 for (auto const &x : *this) {\n-998 real_type sum = 0;\n-999 for (auto const &y : x)\n-1000 sum += Impl::asMatrix(y).infinity_norm();\n-1001 norm = max(sum, norm);\n-1002 isNaN += sum;\n-1003 }\n-1004\n-1005 return norm;\n-1006 }\n-1007\n-1009 template ::value, int>::type = 0>\n-_\b1_\b0_\b1_\b1 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n-1012 using real_type = typename FieldTraits::real_type;\n-1013 using std::max;\n-1014\n-1015 real_type norm = 0;\n-1016 for (auto const &x : *this) {\n-1017 real_type sum = 0;\n-1018 for (auto const &y : x)\n-1019 sum += Impl::asMatrix(y).infinity_norm_real();\n-1020 norm = max(sum, norm);\n-1021 }\n-1022 return norm;\n-1023 }\n-1024\n-1026 template ::value, int>::type = 0>\n-_\b1_\b0_\b2_\b8 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const {\n-1029 using real_type = typename FieldTraits::real_type;\n-1030 using std::max;\n-1031\n-1032 real_type norm = 0;\n-1033 real_type isNaN = 1;\n-1034 for (auto const &x : *this) {\n-1035 real_type sum = 0;\n-1036 for (auto const &y : x)\n-1037 sum += Impl::asMatrix(y).infinity_norm();\n-1038 norm = max(sum, norm);\n-1039 isNaN += sum;\n-1040 }\n-1041\n-1042 return norm * (isNaN / isNaN);\n-1043 }\n-1044\n-1046 template ::value, int>::type = 0>\n-_\b1_\b0_\b4_\b8 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n-1049 using real_type = typename FieldTraits::real_type;\n-1050 using std::max;\n-1051\n-1052 real_type norm = 0;\n-1053 real_type isNaN = 1;\n-1054 for (auto const &x : *this) {\n-1055 real_type sum = 0;\n-1056 for (auto const &y : x)\n-1057 sum += Impl::asMatrix(y).infinity_norm_real();\n-1058 norm = max(sum, norm);\n-1059 isNaN += sum;\n-1060 }\n-1061\n-1062 return norm * (isNaN / isNaN);\n-1063 }\n-1064\n-1065 //===== query\n-1066\n-_\b1_\b0_\b6_\b8 bool _\be_\bx_\bi_\bs_\bt_\bs ([[maybe_unused]] _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, [[maybe_unused]] _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n-const\n-1069 {\n-1070#ifdef DUNE_ISTL_WITH_CHECKING\n-1071 if (i<0 || i>=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"row index out of range\");\n-1072 if (j<0 || i>=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"column index out of range\");\n-1073#endif\n-1074 return true;\n-1075 }\n-1076\n-1077 protected:\n-1078\n-_\b1_\b0_\b8_\b1 _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\bT_\b,_\bA_\b> _\bd_\ba_\bt_\ba_\b_;\n-1082\n-_\b1_\b0_\b8_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bs_\b_;\n-1089 };\n-1090\n-1091 template\n-_\b1_\b0_\b9_\b2 struct FieldTraits< _\bM_\ba_\bt_\br_\bi_\bx >\n-1093 {\n-_\b1_\b0_\b9_\b4 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\b _\bA_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b1_\b0_\b9_\b5 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n-1096 };\n-1097\n-1099} // end namespace Dune\n-1100\n-1101#endif\n+141 /* Modify the coefficients. */\n+142 _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be a_00_inv = (*this)[0][0];\n+143 Impl::asMatrix(a_00_inv).invert();\n+144\n+145 //c[0] /= (*this)[0][0]; /* Division by zero risk. */\n+146 _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be tmp = a_00_inv;\n+147 Impl::asMatrix(tmp).rightmultiply(Impl::asMatrix(c[0]));\n+148 c[0] = tmp;\n+149\n+150 // d = a^{-1} d /* Division by zero would imply a singular matrix. */\n+151 auto d_0_tmp = d[0];\n+152 auto&& d_0 = Impl::asVector(d[0]);\n+153 Impl::asMatrix(a_00_inv).mv(Impl::asVector(d_0_tmp),d_0);\n+154\n+155 for (unsigned int i = 1; i < this->_\bN(); i++) {\n+156\n+157 // id = ( a_ii - c_{i-1} a_{i, i-1} ) ^{-1}\n+158 _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be tmp;\n+159 tmp = (*this)[i][i-1];\n+160 Impl::asMatrix(tmp).rightmultiply(Impl::asMatrix(c[i-1]));\n+161\n+162 _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be id = (*this)[i][i];\n+163 id -= tmp;\n+164 Impl::asMatrix(id).invert(); /* Division by zero risk. */\n+165\n+166 if (i_\bN() - 1] = d[this->_\bN() - 1];\n+179 for (int i = this->_\bN() - 2; i >= 0; i--) {\n+180 //x[i] = d[i] - c[i] * x[i + 1];\n+181 x[i] = d[i];\n+182 auto&& x_i = Impl::asVector(x[i]);\n+183 Impl::asMatrix(c[i]).mmv(Impl::asVector(x[i+1]), x_i);\n+184 }\n+185\n+186 }\n+187\n+188 private:\n+189\n+190 // ////////////////////////////////////////////////////////////////////////\n+////\n+191 // The following methods from the base class should now actually be called\n+192 // ////////////////////////////////////////////////////////////////////////\n+////\n+193\n+194 // createbegin and createend should be in there, too, but I can't get it to\n+compile\n+195 // BCRSMatrix::CreateIterator createbegin () {}\n+196 // BCRSMatrix::CreateIterator createend () {}\n+197 void setrowsize (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s) {}\n+198 void incrementrowsize (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) {}\n+199 void endrowsizes () {}\n+200 void addindex (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl) {}\n+201 void endindices () {}\n+202 };\n+203\n+204 template\n+_\b2_\b0_\b5 struct FieldTraits< _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx >\n+206 {\n+_\b2_\b0_\b7 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\b _\bA_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b2_\b0_\b8 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n+209 };\n+210\n+213} // end namespace Dune\n+214\n+215#endif\n _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n Helper functions for determining the vector/matrix block level.\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be\n-A Vector of blocks with different blocksizes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:44\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be\n-Imp::BlockVectorWindow< B, A > window_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-BlockVector< B, A > block_type\n-Same as value_type, here for historical reasons.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-DenseMatrixBase & operator=(const DenseMatrixBase &a)\n-assignment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:182\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< B >::field_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:50\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n-Iterator beforeBegin() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:385\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n-void resize(size_type rows, size_type columns)\n-same effect as constructor with same argument\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:153\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-const window_type const_reference\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:74\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be\n-DenseMatrixBase(size_type rows, size_type columns)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\be_\bn_\bd\n-Iterator end()\n-end Iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:371\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-reference operator[](size_type i)\n-random access to blocks\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:241\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n-BlockVector< B, A > value_type\n-Type of the elements of the outer vector, i.e., dynamic vectors of B.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bf_\bi_\bn_\bd\n-Iterator find(size_type i)\n-random access returning iterator (end if not contained)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:391\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bN\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs\n+void endrowsizes()\n+indicate that size of all rows is defined\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\ba_\bn_\bd_\bo_\bm\n+@ random\n+Build entries randomly.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:530\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx\n+void addindex(size_type row, size_type col)\n+add index (row,col) to the matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1191\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs\n+void endindices()\n+indicate that all indices are defined, check consistency\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1248\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n size_type N() const\n-number of blocks in the vector (are of variable size here)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:539\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-ConstIterator beforeEnd() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:525\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\be_\bn_\bd\n-ConstIterator end() const\n-end ConstIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:518\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-window_type reference\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:72\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\br_\be_\bn_\bd\n-ConstIterator rend() const\n-end ConstIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:531\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-Iterator beforeEnd()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:378\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-ConstIterator begin() const\n-begin ConstIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:512\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n-A allocator_type\n-export the allocator type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be\n-DenseMatrixBase()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bf_\bi_\bn_\bd\n-ConstIterator find(size_type i) const\n-random access returning iterator (end if not contained)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:397\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+number of rows (counted in blocks)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n+void setSize(size_type rows, size_type columns, size_type nnz=0)\n+Set the size of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:861\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BCRSMatrix & operator=(const BCRSMatrix &Mat)\n+assignment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:911\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx\n+A block-tridiagonal matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:31\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n+static constexpr auto blocklevel\n+increment block level counter\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx\n+BTDMatrix(size_type size)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:58\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bo_\bl_\bv_\be\n+void solve(V &x, const V &rhs) const\n+Use the Thomas algorithm to solve the system Ax=b in O(n) time.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:125\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n A::size_type size_type\n-The size type for the index access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\b~_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be\n-~DenseMatrixBase()\n-free dynamic memory\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:142\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-Iterator begin()\n-begin Iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:365\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be\n-DenseMatrixBase(const DenseMatrixBase &a)\n-copy constructor, has copy semantics\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:116\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:263\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n-Iterator & operator--()\n-prefix decrement\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:308\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n-size_type index() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:352\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator(Iterator &other)=default\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator(Iterator &&other)=default\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n-bool operator!=(const Iterator &it) const\n-inequality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:322\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-Iterator & operator=(Iterator &&other)\n-Move assignment.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:282\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n-Iterator & operator++()\n-prefix increment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:300\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator()\n-constructor, no arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:266\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n-window_type & operator*() const\n-dereferencing\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:340\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n-bool operator==(const Iterator &it) const\n-equality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:316\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-Iterator & operator=(Iterator &other)\n-Copy assignment.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:291\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator(B *data, size_type columns, size_type _i)\n-constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:276\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n-window_type * operator->() const\n-arrow\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:346\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:404\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n-const window_type * operator->() const\n-arrow\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:487\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n-const window_type & operator*() const\n-dereferencing\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:481\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n-ConstIterator & operator++()\n-prefix increment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:441\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator(const B *data, size_type columns, size_type _i)\n-constructor from pointer\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:414\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n-ConstIterator & operator--()\n-prefix decrement\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:449\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator(const Iterator &it)\n-constructor from non_const iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:420\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n-bool operator!=(const ConstIterator &it) const\n-inequality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:463\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator()\n-constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:407\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n-bool operator==(const ConstIterator &it) const\n-equality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:457\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n-size_type index() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:493\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-ConstIterator & operator=(Iterator &&other)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:424\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-ConstIterator & operator=(Iterator &other)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:432\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-A generic dynamic dense matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bl_\bs_\b_\n-size_type cols_\n-Number of columns of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1088\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n-FieldTraits< ft >::real_type infinity_norm() const\n-infinity norm (row sum norm, how to generalize for blocks?)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:992\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n+implement row_type with compressed vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:49\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n A allocator_type\n-Export the allocator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:571\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n-FieldTraits< ft >::real_type infinity_norm_real() const\n-simplified infinity norm (uses Manhattan norm for complex values)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1011\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bh_\bv\n-void usmhv(const field_type &alpha, const X &x, Y &y) const\n-y += alpha A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:956\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bv\n-void usmv(const field_type &alpha, const X &x, Y &y) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:854\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-Type for indices and sizes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:577\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\ba_\bt_\ba_\b_\n-MatrixImp::DenseMatrixBase< T, A > data_\n-Abuse DenseMatrixBase as an engine for a 2d array ISTL-style.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1081\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bt_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be\n-Matrix transpose() const\n-Return the transpose of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:745\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bt_\bv\n-void mtv(const X &x, Y &y) const\n-y = A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:807\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bv\n-void umv(const X &x, Y &y) const\n-y += A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:820\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n-void mv(const X &x, Y &y) const\n-y = A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:788\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-MatrixImp::DenseMatrixBase< T, A >::ConstIterator ConstRowIterator\n-Const iterator over the matrix rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:586\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n-void setSize(size_type rows, size_type cols)\n-Change the matrix size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:608\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n-RowIterator beforeBegin()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:634\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-RowIterator beforeEnd()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:627\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-Matrix()\n-Create empty matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:596\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n-Matrix & operator-=(const Matrix &b)\n-Subtract the entries of another matrix from this one.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:735\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2\n-FieldTraits< field_type >::real_type frobenius_norm2() const\n-square of frobenius norm, need for block recursion\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:980\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::iterator ColIterator\n-Iterator for the entries of each row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:583\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-ConstRowIterator beforeEnd() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:653\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-Matrix & operator=(const field_type &t)\n-Assignment from scalar.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:666\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-RowIterator end()\n-Get iterator to one beyond last row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:620\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-const row_type operator[](size_type row) const\n-The const index operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:684\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-ConstRowIterator end() const\n-Get const iterator to one beyond last row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:646\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n-friend Y operator*(const Matrix< T > &m, const X &vec)\n-Generic matrix-vector multiplication.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:770\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n-Matrix< T > & operator*=(const field_type &scalar)\n-Multiplication with a scalar.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:705\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-row_type operator[](size_type row)\n-The index operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:673\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bv\n-void mmv(const X &x, Y &y) const\n-y -= A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:837\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n-Matrix & operator+=(const Matrix &b)\n-Add the entries of another matrix to this one.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:721\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-ConstRowIterator begin() const\n-Get const iterator to first row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:640\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bh_\bv\n-void mmhv(const X &x, Y &y) const\n-y -= A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:939\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-RowIterator begin()\n-Get iterator to first row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:614\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< T >::field_type field_type\n-Export the type representing the underlying field.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:565\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::const_iterator ConstColIterator\n-Const iterator for the entries of each row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n-static constexpr auto blocklevel\n-The number of nesting levels the matrix contains.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:593\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-size_type M() const\n-Return the number of columns.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:700\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-T block_type\n-Export the type representing the components.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:568\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs\n-bool exists(size_type i, size_type j) const\n-return true if (i,j) is in pattern\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1068\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n-Matrix< T > & operator/=(const field_type &scalar)\n-Division by a scalar.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:711\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n-friend Matrix< T > operator*(const Matrix< T > &m1, const Matrix< T > &m2)\n-Generic matrix multiplication.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:755\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bt_\bv\n-void umtv(const X &x, Y &y) const\n-y += A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:871\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bt_\bv\n-void mmtv(const X &x, Y &y) const\n-y -= A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:888\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n-MatrixImp::DenseMatrixBase< T, A >::window_type row_type\n-The type implementing a matrix row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:574\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm\n-FieldTraits< field_type >::real_type frobenius_norm() const\n-frobenius norm: sqrt(sum over squared values of entries)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:974\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bt_\bv\n-void usmtv(const field_type &alpha, const X &x, Y &y) const\n-y += alpha A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:905\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bh_\bv\n-void umhv(const X &x, Y &y) const\n-y += A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:922\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-Return the number of rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:695\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n-ConstRowIterator beforeBegin() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:660\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-Matrix(size_type rows, size_type cols)\n-Create uninitialized matrix of size rows x cols.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:601\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-MatrixImp::DenseMatrixBase< T, A >::Iterator RowIterator\n-Iterator over the matrix rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:580\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Matrix< T, A >::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1094\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+export the allocator type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+B block_type\n+export the type representing the components\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:40\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< B >::field_type field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BTDMatrix & operator=(const BTDMatrix &other)\n+assignment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:108\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx\n+BTDMatrix()\n+Default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n+void setSize(size_type size)\n+Resize the matrix. Invalidates the content!\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n typename FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1095\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:208\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename BTDMatrix< B, A >::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:207\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00050.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00050.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: ilusubdomainsolver.hh File Reference\n+dune-istl: bccsmatrix.hh File Reference\n \n \n \n \n \n \n \n@@ -70,50 +70,31 @@\n
    \n \n
    \n
    \n
    \n \n-
    ilusubdomainsolver.hh File Reference
    \n+
    bccsmatrix.hh File Reference
    \n
    \n
    \n-\n-

    Various local subdomain solvers based on ILU for SeqOverlappingSchwarz. \n-More...

    \n-
    #include <map>
    \n+
    #include <dune/common/fmatrix.hh>
    \n+#include <dune/common/fvector.hh>
    \n #include <dune/common/typetraits.hh>
    \n-#include <dune/istl/preconditioners.hh>
    \n-#include "matrix.hh"
    \n-#include <cmath>
    \n-#include <cstdlib>
    \n
    \n

    Go to the source code of this file.

    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Classes

    class  Dune::ILUSubdomainSolver< M, X, Y >
     base class encapsulating common algorithms of ILU0SubdomainSolver and ILUNSubdomainSolver. More...
     
    class  Dune::ILU0SubdomainSolver< M, X, Y >
     Exact subdomain solver using ILU(p) with appropriate p. More...
     
    class  Dune::ILUNSubdomainSolver< M, X, Y >
     
    \n \n \n \n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::ISTL
     
    \n-

    Detailed Description

    \n-

    Various local subdomain solvers based on ILU for SeqOverlappingSchwarz.

    \n-
    Author
    Markus Blatt
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,35 +1,19 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-ilusubdomainsolver.hh File Reference\n-Various local subdomain solvers based on ILU for SeqOverlappingSchwarz. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n+_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+bccsmatrix.hh File Reference\n+#include \n+#include \n #include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n-#include \"_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-#include \n-#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0 base class encapsulating common algorithms of _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br and\n- _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0 Exact subdomain solver using _\bI_\bL_\bU_\b(_\bp_\b) with appropriate p. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Various local subdomain solvers based on ILU for SeqOverlappingSchwarz.\n- Author\n- Markus Blatt\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL\n+\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00050_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00050_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: ilusubdomainsolver.hh Source File\n+dune-istl: bccsmatrix.hh Source File\n \n \n \n \n \n \n \n@@ -74,235 +74,131 @@\n \n
    \n \n
    \n
    \n
    \n-
    ilusubdomainsolver.hh
    \n+
    bccsmatrix.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_ILUSUBDOMAINSOLVER_HH
    \n-
    6#define DUNE_ISTL_ILUSUBDOMAINSOLVER_HH
    \n+
    5#ifndef DUNE_ISTL_BCCSMATRIX_HH
    \n+
    6#define DUNE_ISTL_BCCSMATRIX_HH
    \n
    7
    \n-
    8#include <map>
    \n-
    9#include <dune/common/typetraits.hh>
    \n-\n-
    11#include "matrix.hh"
    \n-
    12#include <cmath>
    \n-
    13#include <cstdlib>
    \n-
    14
    \n-
    15namespace Dune {
    \n-
    16
    \n-
    35 template<class M, class X, class Y>
    \n-
    \n-\n-
    37 public:
    \n-
    39 typedef typename std::remove_const<M>::type matrix_type;
    \n-
    41 typedef X domain_type;
    \n-
    43 typedef Y range_type;
    \n-
    44
    \n-
    51 virtual void apply (X& v, const Y& d) =0;
    \n-
    52
    \n-
    \n-\n-
    54 {}
    \n-
    \n-
    55
    \n-
    56 protected:
    \n-
    62 template<class S>
    \n-
    63 std::size_t copyToLocalMatrix(const M& A, S& rowset);
    \n-
    64
    \n-
    66 // for ILUN
    \n-\n-
    68 };
    \n-
    \n-
    69
    \n-
    76 template<class M, class X, class Y>
    \n-
    \n-\n-
    78 : public ILUSubdomainSolver<M,X,Y>{
    \n-
    79 public:
    \n-
    81 typedef typename std::remove_const<M>::type matrix_type;
    \n-
    82 typedef typename std::remove_const<M>::type rilu_type;
    \n-
    84 typedef X domain_type;
    \n-
    86 typedef Y range_type;
    \n-
    87
    \n+
    8#include <dune/common/fmatrix.hh>
    \n+
    9#include <dune/common/fvector.hh>
    \n+
    10#include <dune/common/typetraits.hh>
    \n+
    11
    \n+
    \n+
    12namespace Dune::ISTL::Impl
    \n+
    13{
    \n+
    27 template<class B, class I = typename std::allocator<B>::size_type>
    \n+
    28 class BCCSMatrix
    \n+
    29 {
    \n+
    30 public:
    \n+
    31 using Index = I;
    \n+
    32 using size_type = std::size_t;
    \n+
    33
    \n+
    36 BCCSMatrix()
    \n+
    37 : N_(0), M_(0), Nnz_(0), values(0), rowindex(0), colstart(0)
    \n+
    38 {}
    \n+
    39
    \n+
    41 ~BCCSMatrix()
    \n+
    42 {
    \n+
    43 if(N_+M_+Nnz_!=0)
    \n+
    44 free();
    \n+
    45 }
    \n+
    46
    \n+
    48 void setSize(size_type rows, size_type columns)
    \n+
    49 {
    \n+
    50 N_ = rows;
    \n+
    51 M_ = columns;
    \n+
    52 }
    \n+
    53
    \n+
    58 size_type N() const
    \n+
    59 {
    \n+
    60 return N_;
    \n+
    61 }
    \n+
    62
    \n+
    64 size_type nonzeroes() const
    \n+
    65 {
    \n+
    66 return Nnz_;
    \n+
    67 }
    \n+
    68
    \n+
    73 size_type M() const
    \n+
    74 {
    \n+
    75 return M_;
    \n+
    76 }
    \n+
    77
    \n+
    84 B* getValues() const
    \n+
    85 {
    \n+
    86 return values;
    \n+
    87 }
    \n
    88
    \n-
    \n-
    93 void apply (X& v, const Y& d)
    \n-
    94 {
    \n-
    95 ILU::blockILUBacksolve(this->ILU,v,d);
    \n-
    96 }
    \n-
    \n-
    104 template<class S>
    \n-
    105 void setSubMatrix(const M& A, S& rowset);
    \n-
    106
    \n-
    107 };
    \n-
    \n-
    108
    \n-
    109 template<class M, class X, class Y>
    \n-
    \n-\n-
    111 : public ILUSubdomainSolver<M,X,Y>{
    \n-
    112 public:
    \n-
    114 typedef typename std::remove_const<M>::type matrix_type;
    \n-
    115 typedef typename std::remove_const<M>::type rilu_type;
    \n-
    117 typedef X domain_type;
    \n-
    119 typedef Y range_type;
    \n-
    120
    \n-
    \n-
    125 void apply (X& v, const Y& d)
    \n-
    126 {
    \n-
    127 ILU::blockILUBacksolve(RILU,v,d);
    \n-
    128 }
    \n-
    \n-
    129
    \n-
    137 template<class S>
    \n-
    138 void setSubMatrix(const M& A, S& rowset);
    \n-
    139
    \n-
    140 private:
    \n-
    144 rilu_type RILU;
    \n-
    145 };
    \n-
    \n-
    146
    \n-
    147
    \n+
    95 Index* getRowIndex() const
    \n+
    96 {
    \n+
    97 return rowindex;
    \n+
    98 }
    \n+
    99
    \n+
    106 Index* getColStart() const
    \n+
    107 {
    \n+
    108 return colstart;
    \n+
    109 }
    \n+
    110
    \n+
    112 BCCSMatrix& operator=(const BCCSMatrix& mat)
    \n+
    113 {
    \n+
    114 if(N_+M_+Nnz_!=0)
    \n+
    115 free();
    \n+
    116 N_=mat.N_;
    \n+
    117 M_=mat.M_;
    \n+
    118 Nnz_= mat.Nnz_;
    \n+
    119 if(M_>0) {
    \n+
    120 colstart=new size_type[M_+1];
    \n+
    121 for(size_type i=0; i<=M_; ++i)
    \n+
    122 colstart[i]=mat.colstart[i];
    \n+
    123 }
    \n+
    124
    \n+
    125 if(Nnz_>0) {
    \n+
    126 values = new B[Nnz_];
    \n+
    127 rowindex = new size_type[Nnz_];
    \n+
    128
    \n+
    129 for(size_type i=0; i<Nnz_; ++i)
    \n+
    130 values[i]=mat.values[i];
    \n+
    131
    \n+
    132 for(size_type i=0; i<Nnz_; ++i)
    \n+
    133 rowindex[i]=mat.rowindex[i];
    \n+
    134 }
    \n+
    135 return *this;
    \n+
    136 }
    \n+
    137
    \n+
    139 virtual void free()
    \n+
    140 {
    \n+
    141 delete[] values;
    \n+
    142 delete[] rowindex;
    \n+
    143 delete[] colstart;
    \n+
    144 N_ = 0;
    \n+
    145 M_ = 0;
    \n+
    146 Nnz_ = 0;
    \n+
    147 }
    \n
    148
    \n-
    149 template<class M, class X, class Y>
    \n-
    150 template<class S>
    \n-
    \n-
    151 std::size_t ILUSubdomainSolver<M,X,Y>::copyToLocalMatrix(const M& A, S& rowSet)
    \n-
    152 {
    \n-
    153 // Calculate consecutive indices for local problem
    \n-
    154 // while perserving the ordering
    \n-
    155 typedef typename M::size_type size_type;
    \n-
    156 typedef std::map<typename S::value_type,size_type> IndexMap;
    \n-
    157 typedef typename IndexMap::iterator IMIter;
    \n-
    158 IndexMap indexMap;
    \n-
    159 IMIter guess = indexMap.begin();
    \n-
    160 size_type localIndex=0;
    \n-
    161
    \n-
    162 typedef typename S::const_iterator SIter;
    \n-
    163 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();
    \n-
    164 rowIdx!= rowEnd; ++rowIdx, ++localIndex)
    \n-
    165 guess = indexMap.insert(guess,
    \n-
    166 std::make_pair(*rowIdx,localIndex));
    \n-
    167
    \n-
    168
    \n-
    169 // Build Matrix for local subproblem
    \n-
    170 ILU.setSize(rowSet.size(),rowSet.size());
    \n-
    171 ILU.setBuildMode(matrix_type::row_wise);
    \n-
    172
    \n-
    173 // Create sparsity pattern
    \n-
    174 typedef typename matrix_type::CreateIterator CIter;
    \n-
    175 CIter rowCreator = ILU.createbegin();
    \n-
    176 std::size_t offset=0;
    \n-
    177 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();
    \n-
    178 rowIdx!= rowEnd; ++rowIdx, ++rowCreator) {
    \n-
    179 // See which row entries are in our subset and add them to
    \n-
    180 // the sparsity pattern
    \n-
    181 guess = indexMap.begin();
    \n-
    182
    \n-
    183 for(typename matrix_type::ConstColIterator col=A[*rowIdx].begin(),
    \n-
    184 endcol=A[*rowIdx].end(); col != endcol; ++col) {
    \n-
    185 // search for the entry in the row set
    \n-
    186 guess = indexMap.find(col.index());
    \n-
    187 if(guess!=indexMap.end()) {
    \n-
    188 // add local index to row
    \n-
    189 rowCreator.insert(guess->second);
    \n-
    190 offset=std::max(offset,(std::size_t)std::abs((int)(guess->second-rowCreator.index())));
    \n-
    191 }
    \n-
    192 }
    \n-
    193
    \n-
    194 }
    \n-
    195
    \n-
    196 // Insert the matrix values for the local problem
    \n-
    197 typename matrix_type::iterator iluRow=ILU.begin();
    \n-
    198
    \n-
    199 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();
    \n-
    200 rowIdx!= rowEnd; ++rowIdx, ++iluRow) {
    \n-
    201 // See which row entries are in our subset and add them to
    \n-
    202 // the sparsity pattern
    \n-
    203 typename matrix_type::ColIterator localCol=iluRow->begin();
    \n-
    204 for(typename matrix_type::ConstColIterator col=A[*rowIdx].begin(),
    \n-
    205 endcol=A[*rowIdx].end(); col != endcol; ++col) {
    \n-
    206 // search for the entry in the row set
    \n-
    207 guess = indexMap.find(col.index());
    \n-
    208 if(guess!=indexMap.end()) {
    \n-
    209 // set local value
    \n-
    210 (*localCol)=(*col);
    \n-
    211 ++localCol;
    \n-
    212 }
    \n-
    213 }
    \n-
    214 }
    \n-
    215 return offset;
    \n-
    216 }
    \n-
    \n-
    217
    \n-
    218
    \n-
    219 template<class M, class X, class Y>
    \n-
    220 template<class S>
    \n-
    \n-\n-
    222 {
    \n-
    223 this->copyToLocalMatrix(A,rowSet);
    \n-\n-
    225 }
    \n-
    \n-
    226
    \n-
    227 template<class M, class X, class Y>
    \n-
    228 template<class S>
    \n-
    \n-\n-
    230 {
    \n-
    231 std::size_t offset=copyToLocalMatrix(A,rowSet);
    \n-
    232 RILU.setSize(rowSet.size(),rowSet.size(), (1+2*offset)*rowSet.size());
    \n-
    233 RILU.setBuildMode(matrix_type::row_wise);
    \n-
    234 ILU::blockILUDecomposition(this->ILU, (offset+1)/2, RILU);
    \n-
    235 }
    \n+
    149 public:
    \n+
    150 size_type N_, M_, Nnz_;
    \n+
    151 B* values;
    \n+
    152 Index* rowindex;
    \n+
    153 Index* colstart;
    \n+
    154 };
    \n+
    155
    \n+
    156}
    \n
    \n-
    236
    \n-
    238} // end name space DUNE
    \n-
    239
    \n-
    240
    \n-
    241#endif
    \n-
    Define general preconditioner interface.
    \n-
    A dynamic dense block matrix class.
    \n-
    std::size_t copyToLocalMatrix(const M &A, S &rowset)
    Copy the local part of the global matrix to ILU.
    Definition ilusubdomainsolver.hh:151
    \n-
    void setSubMatrix(const M &A, S &rowset)
    Set the data of the local problem.
    Definition ilusubdomainsolver.hh:229
    \n-
    void setSubMatrix(const M &A, S &rowset)
    Set the data of the local problem.
    Definition ilusubdomainsolver.hh:221
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n-
    Definition allocator.hh:11
    \n-
    void blockILUBacksolve(const M &A, X &v, const Y &d)
    LU backsolve with stored inverse.
    Definition ilu.hh:94
    \n-
    void blockILU0Decomposition(M &A)
    compute ILU decomposition of A. A is overwritten by its decomposition
    Definition ilu.hh:33
    \n-
    void blockILUDecomposition(const M &A, int n, M &ILU)
    Definition ilu.hh:167
    \n-
    base class encapsulating common algorithms of ILU0SubdomainSolver and ILUNSubdomainSolver.
    Definition ilusubdomainsolver.hh:36
    \n-
    matrix_type ILU
    The ILU0 decomposition of the matrix, or the local matrix.
    Definition ilusubdomainsolver.hh:67
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition ilusubdomainsolver.hh:41
    \n-
    virtual ~ILUSubdomainSolver()
    Definition ilusubdomainsolver.hh:53
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition ilusubdomainsolver.hh:43
    \n-
    std::remove_const< M >::type matrix_type
    The matrix type the preconditioner is for.
    Definition ilusubdomainsolver.hh:39
    \n-
    virtual void apply(X &v, const Y &d)=0
    Apply the subdomain solver.
    \n-
    Exact subdomain solver using ILU(p) with appropriate p.
    Definition ilusubdomainsolver.hh:78
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition ilusubdomainsolver.hh:84
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition ilusubdomainsolver.hh:86
    \n-
    std::remove_const< M >::type rilu_type
    Definition ilusubdomainsolver.hh:82
    \n-
    std::remove_const< M >::type matrix_type
    The matrix type the preconditioner is for.
    Definition ilusubdomainsolver.hh:81
    \n-
    void apply(X &v, const Y &d)
    Apply the subdomain solver.
    Definition ilusubdomainsolver.hh:93
    \n-
    Definition ilusubdomainsolver.hh:111
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition ilusubdomainsolver.hh:117
    \n-
    std::remove_const< M >::type matrix_type
    The matrix type the preconditioner is for.
    Definition ilusubdomainsolver.hh:114
    \n-
    std::remove_const< M >::type rilu_type
    Definition ilusubdomainsolver.hh:115
    \n-
    void apply(X &v, const Y &d)
    Apply the subdomain solver.
    Definition ilusubdomainsolver.hh:125
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition ilusubdomainsolver.hh:119
    \n-
    RowIterator end()
    Get iterator to one beyond last row.
    Definition matrix.hh:620
    \n+
    157#endif
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,288 +1,125 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-ilusubdomainsolver.hh\n+bccsmatrix.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_ILUSUBDOMAINSOLVER_HH\n-6#define DUNE_ISTL_ILUSUBDOMAINSOLVER_HH\n+5#ifndef DUNE_ISTL_BCCSMATRIX_HH\n+6#define DUNE_ISTL_BCCSMATRIX_HH\n 7\n-8#include \n-9#include \n-10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n-11#include \"_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-12#include \n-13#include \n-14\n-15namespace _\bD_\bu_\bn_\be {\n-16\n-35 template\n-_\b3_\b6 class _\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br {\n-37 public:\n-_\b3_\b9 typedef typename std::remove_const::type _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b4_\b1 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b4_\b3 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-44\n-_\b5_\b1 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d) =0;\n-52\n-_\b5_\b3 virtual _\b~_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br()\n-54 {}\n-55\n-56 protected:\n-62 template\n-63 std::size_t _\bc_\bo_\bp_\by_\bT_\bo_\bL_\bo_\bc_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S& rowset);\n-64\n-66 // for ILUN\n-_\b6_\b7 _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be _\bI_\bL_\bU;\n-68 };\n-69\n-76 template\n-_\b7_\b7 class _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n-78 : public _\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br{\n-79 public:\n-_\b8_\b1 typedef typename std::remove_const::type _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b8_\b2 typedef typename std::remove_const::type _\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be;\n-_\b8_\b4 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b8_\b6 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-87\n+8#include \n+9#include \n+10#include \n+11\n+_\b1_\b2namespace Dune::ISTL::Impl\n+13{\n+27 template::size_type>\n+28 class BCCSMatrix\n+29 {\n+30 public:\n+31 using Index = I;\n+32 using size_type = std::size_t;\n+33\n+36 BCCSMatrix()\n+37 : N_(0), M_(0), Nnz_(0), values(0), rowindex(0), colstart(0)\n+38 {}\n+39\n+41 ~BCCSMatrix()\n+42 {\n+43 if(N_+M_+Nnz_!=0)\n+44 free();\n+45 }\n+46\n+48 void setSize(size_type rows, size_type columns)\n+49 {\n+50 N_ = rows;\n+51 M_ = columns;\n+52 }\n+53\n+58 size_type N() const\n+59 {\n+60 return N_;\n+61 }\n+62\n+64 size_type nonzeroes() const\n+65 {\n+66 return Nnz_;\n+67 }\n+68\n+73 size_type M() const\n+74 {\n+75 return M_;\n+76 }\n+77\n+84 B* getValues() const\n+85 {\n+86 return values;\n+87 }\n 88\n-_\b9_\b3 void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n-94 {\n-95 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be(this->_\bI_\bL_\bU,v,d);\n-96 }\n-104 template\n-105 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S& rowset);\n-106\n-107 };\n-108\n-109 template\n-_\b1_\b1_\b0 class _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n-111 : public _\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br{\n-112 public:\n-_\b1_\b1_\b4 typedef typename std::remove_const::type _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b1_\b1_\b5 typedef typename std::remove_const::type _\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be;\n-_\b1_\b1_\b7 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b1_\b1_\b9 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-120\n-_\b1_\b2_\b5 void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n-126 {\n-127 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be(RILU,v,d);\n-128 }\n-129\n-137 template\n-138 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S& rowset);\n-139\n-140 private:\n-144 _\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be RILU;\n-145 };\n-146\n-147\n+95 Index* getRowIndex() const\n+96 {\n+97 return rowindex;\n+98 }\n+99\n+106 Index* getColStart() const\n+107 {\n+108 return colstart;\n+109 }\n+110\n+112 BCCSMatrix& operator=(const BCCSMatrix& _\bm_\ba_\bt)\n+113 {\n+114 if(N_+M_+Nnz_!=0)\n+115 free();\n+116 N_=_\bm_\ba_\bt.N_;\n+117 M_=_\bm_\ba_\bt.M_;\n+118 Nnz_= _\bm_\ba_\bt.Nnz_;\n+119 if(M_>0) {\n+120 colstart=new size_type[M_+1];\n+121 for(size_type i=0; i<=M_; ++i)\n+122 colstart[i]=_\bm_\ba_\bt.colstart[i];\n+123 }\n+124\n+125 if(Nnz_>0) {\n+126 values = new B[Nnz_];\n+127 rowindex = new size_type[Nnz_];\n+128\n+129 for(size_type i=0; i\n-150 template\n-_\b1_\b5_\b1 std::size_t _\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bc_\bo_\bp_\by_\bT_\bo_\bL_\bo_\bc_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S&\n-rowSet)\n-152 {\n-153 // Calculate consecutive indices for local problem\n-154 // while perserving the ordering\n-155 typedef typename M::size_type size_type;\n-156 typedef std::map IndexMap;\n-157 typedef typename IndexMap::iterator IMIter;\n-158 IndexMap indexMap;\n-159 IMIter guess = indexMap.begin();\n-160 size_type localIndex=0;\n-161\n-162 typedef typename S::const_iterator SIter;\n-163 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();\n-164 rowIdx!= rowEnd; ++rowIdx, ++localIndex)\n-165 guess = indexMap.insert(guess,\n-166 std::make_pair(*rowIdx,localIndex));\n-167\n-168\n-169 // Build Matrix for local subproblem\n-170 ILU.setSize(rowSet.size(),rowSet.size());\n-171 ILU.setBuildMode(matrix_type::row_wise);\n-172\n-173 // Create sparsity pattern\n-174 typedef typename matrix_type::CreateIterator CIter;\n-175 CIter rowCreator = ILU.createbegin();\n-176 std::size_t offset=0;\n-177 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();\n-178 rowIdx!= rowEnd; ++rowIdx, ++rowCreator) {\n-179 // See which row entries are in our subset and add them to\n-180 // the sparsity pattern\n-181 guess = indexMap.begin();\n-182\n-183 for(typename matrix_type::ConstColIterator _\bc_\bo_\bl=A[*rowIdx].begin(),\n-184 endcol=A[*rowIdx]._\be_\bn_\bd(); _\bc_\bo_\bl != endcol; ++_\bc_\bo_\bl) {\n-185 // search for the entry in the row set\n-186 guess = indexMap.find(_\bc_\bo_\bl.index());\n-187 if(guess!=indexMap.end()) {\n-188 // add local index to row\n-189 rowCreator.insert(guess->second);\n-190 offset=std::max(offset,(std::size_t)std::abs((int)(guess->second-\n-rowCreator.index())));\n-191 }\n-192 }\n-193\n-194 }\n-195\n-196 // Insert the matrix values for the local problem\n-197 typename matrix_type::iterator iluRow=ILU.begin();\n-198\n-199 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();\n-200 rowIdx!= rowEnd; ++rowIdx, ++iluRow) {\n-201 // See which row entries are in our subset and add them to\n-202 // the sparsity pattern\n-203 typename matrix_type::ColIterator localCol=iluRow->begin();\n-204 for(typename matrix_type::ConstColIterator _\bc_\bo_\bl=A[*rowIdx].begin(),\n-205 endcol=A[*rowIdx]._\be_\bn_\bd(); _\bc_\bo_\bl != endcol; ++_\bc_\bo_\bl) {\n-206 // search for the entry in the row set\n-207 guess = indexMap.find(_\bc_\bo_\bl.index());\n-208 if(guess!=indexMap.end()) {\n-209 // set local value\n-210 (*localCol)=(*col);\n-211 ++localCol;\n-212 }\n-213 }\n-214 }\n-215 return offset;\n-216 }\n-217\n-218\n-219 template\n-220 template\n-_\b2_\b2_\b1 void _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S& rowSet)\n-222 {\n-223 this->copyToLocalMatrix(A,rowSet);\n-224 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(this->ILU);\n-225 }\n-226\n-227 template\n-228 template\n-_\b2_\b2_\b9 void _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S& rowSet)\n-230 {\n-231 std::size_t offset=copyToLocalMatrix(A,rowSet);\n-232 RILU.setSize(rowSet.size(),rowSet.size(), (1+2*offset)*rowSet.size());\n-233 RILU.setBuildMode(matrix_type::row_wise);\n-234 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(this->ILU, (offset+1)/2, RILU);\n-235 }\n-236\n-238} // end name space DUNE\n-239\n-240\n-241#endif\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n-Define general preconditioner interface.\n-_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-A dynamic dense block matrix class.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bc_\bo_\bp_\by_\bT_\bo_\bL_\bo_\bc_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx\n-std::size_t copyToLocalMatrix(const M &A, S &rowset)\n-Copy the local part of the global matrix to ILU.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:151\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n-void setSubMatrix(const M &A, S &rowset)\n-Set the data of the local problem.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n-void setSubMatrix(const M &A, S &rowset)\n-Set the data of the local problem.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:221\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bD_\bu_\bn_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be\n-void blockILUBacksolve(const M &A, X &v, const Y &d)\n-LU backsolve with stored inverse.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:94\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n-void blockILU0Decomposition(M &A)\n-compute ILU decomposition of A. A is overwritten by its decomposition\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n-void blockILUDecomposition(const M &A, int n, M &ILU)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:167\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n-base class encapsulating common algorithms of ILU0SubdomainSolver and\n-ILUNSubdomainSolver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bL_\bU\n-matrix_type ILU\n-The ILU0 decomposition of the matrix, or the local matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:41\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b~_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n-virtual ~ILUSubdomainSolver()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:43\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-std::remove_const< M >::type matrix_type\n-The matrix type the preconditioner is for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:39\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &v, const Y &d)=0\n-Apply the subdomain solver.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n-Exact subdomain solver using ILU(p) with appropriate p.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:78\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:84\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:86\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be\n-std::remove_const< M >::type rilu_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-std::remove_const< M >::type matrix_type\n-The matrix type the preconditioner is for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(X &v, const Y &d)\n-Apply the subdomain solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:93\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:111\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:117\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-std::remove_const< M >::type matrix_type\n-The matrix type the preconditioner is for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:114\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be\n-std::remove_const< M >::type rilu_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:115\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(X &v, const Y &d)\n-Apply the subdomain solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:125\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:119\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-RowIterator end()\n-Get iterator to one beyond last row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:620\n+149 public:\n+150 size_type N_, M_, Nnz_;\n+151 B* values;\n+152 Index* rowindex;\n+153 Index* colstart;\n+154 };\n+155\n+156}\n+157#endif\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00053.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00053.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: solvercategory.hh File Reference\n+dune-istl: graphcreator.hh File Reference\n \n \n \n \n \n \n \n@@ -65,40 +65,46 @@\n
    \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n \n-
    solvercategory.hh File Reference
    \n+
    graphcreator.hh File Reference
    \n
    \n
    \n-
    #include <dune/common/exceptions.hh>
    \n+
    #include <tuple>
    \n+#include "graph.hh"
    \n+#include "dependency.hh"
    \n+#include "pinfo.hh"
    \n+#include <dune/istl/operators.hh>
    \n+#include <dune/istl/bcrsmatrix.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n \n-\n+\n \n

    \n Classes

    struct  Dune::SolverCategory
     Categories for the solvers. More...
    struct  Dune::Amg::PropertiesGraphCreator< M, PI >
     
    class  Dune::InvalidSolverCategory
    struct  Dune::Amg::PropertiesGraphCreator< M, SequentialInformation >
     
    \n \n \n \n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,21 +1,28 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n+ * _\bp_\ba_\ba_\bm_\bg\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-solvercategory.hh File Reference\n-#include \n+graphcreator.hh File Reference\n+#include \n+#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n+#include \"_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh\"\n+#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-\u00a0 Categories for the solvers. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bP_\bI_\b _\b>\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00053_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00053_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: solvercategory.hh Source File\n+dune-istl: graphcreator.hh Source File\n \n \n \n \n \n \n \n@@ -70,81 +70,156 @@\n
    \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n-
    solvercategory.hh
    \n+
    graphcreator.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_SOLVERCATEGORY_HH
    \n-
    6#define DUNE_ISTL_SOLVERCATEGORY_HH
    \n+
    5#ifndef DUNE_AMG_GRAPHCREATOR_HH
    \n+
    6#define DUNE_AMG_GRAPHCREATOR_HH
    \n
    7
    \n-
    8#include <dune/common/exceptions.hh>
    \n+
    8#include <tuple>
    \n
    9
    \n-
    10
    \n-
    11namespace Dune {
    \n-
    12
    \n+
    10#include "graph.hh"
    \n+
    11#include "dependency.hh"
    \n+
    12#include "pinfo.hh"
    \n+\n+\n+
    15
    \n+
    16namespace Dune
    \n+
    17{
    \n+
    18 namespace Amg
    \n+
    19 {
    \n+
    20 template<class M, class PI>
    \n
    \n-\n-
    22 {
    \n-
    \n-
    23 enum Category {
    \n-\n-\n-\n-
    30 };
    \n-
    \n-
    31
    \n-
    33 template<typename OP>
    \n-
    \n-
    34 static Category category(const OP& op, decltype(op.category())* = nullptr)
    \n-
    35 {
    \n-
    36 return op.category();
    \n-
    37 }
    \n-
    \n-
    38
    \n-
    39#ifndef DOXYGEN
    \n-
    40 // template<typename OP>
    \n-
    41 // static Category category(const OP& op, decltype(op.getSolverCategory())* = nullptr)
    \n-
    42 // {
    \n-
    43 // return op.getSolverCategory();
    \n-
    44 // }
    \n-
    45
    \n-
    46 template<typename OP>
    \n-
    47 static Category category(const OP& op, decltype(op.category)* = nullptr)
    \n-
    48 {
    \n-
    49 return OP::category;
    \n-
    50 }
    \n-
    51#endif
    \n-
    52 };
    \n-
    \n-
    53
    \n-
    54 class InvalidSolverCategory : public InvalidStateException{};
    \n-
    55
    \n-
    58} // end namespace
    \n+\n+
    22 {
    \n+
    23 typedef typename M::matrix_type Matrix;
    \n+\n+\n+
    26 std::vector<bool> > SubGraph;
    \n+\n+\n+\n+
    30 IdentityMap,
    \n+\n+\n+
    33
    \n+
    34 typedef std::tuple<MatrixGraph*,PropertiesGraph*,SubGraph*> GraphTuple;
    \n+
    35
    \n+
    36 template<class OF, class T>
    \n+
    \n+
    37 static GraphTuple create(const M& matrix, T& excluded,
    \n+
    38 PI& pinfo, const OF& of)
    \n+
    39 {
    \n+
    40 MatrixGraph* mg = new MatrixGraph(matrix.getmat());
    \n+
    41 typedef typename PI::ParallelIndexSet ParallelIndexSet;
    \n+
    42 typedef typename ParallelIndexSet::const_iterator IndexIterator;
    \n+
    43 IndexIterator iend = pinfo.indexSet().end();
    \n+
    44
    \n+
    45 for(IndexIterator index = pinfo.indexSet().begin(); index != iend; ++index)
    \n+
    46 excluded[index->local()] = of.contains(index->local().attribute());
    \n+
    47
    \n+
    48 SubGraph* sg= new SubGraph(*mg, excluded);
    \n+
    49 PropertiesGraph* pg = new PropertiesGraph(*sg, IdentityMap(), sg->getEdgeIndexMap());
    \n+
    50 return GraphTuple(mg,pg,sg);
    \n+
    51 }
    \n+
    \n+
    52
    \n+
    \n+
    53 static void free(GraphTuple& graphs)
    \n+
    54 {
    \n+
    55 delete std::get<2>(graphs);
    \n+
    56 delete std::get<1>(graphs);
    \n+
    57 }
    \n+
    \n+
    58 };
    \n+
    \n
    59
    \n-
    60#endif
    \n+
    60 template<class M>
    \n+
    \n+\n+
    62 {
    \n+
    63 typedef typename M::matrix_type Matrix;
    \n+
    64
    \n+\n+
    66
    \n+\n+\n+\n+
    70 IdentityMap,
    \n+
    71 IdentityMap> PropertiesGraph;
    \n+
    72
    \n+
    73 typedef std::tuple<MatrixGraph*,PropertiesGraph*> GraphTuple;
    \n+
    74
    \n+
    75 template<class OF, class T>
    \n+
    \n+
    76 static GraphTuple create([[maybe_unused]] const M& matrix,
    \n+
    77 [[maybe_unused]] T& excluded,
    \n+
    78 [[maybe_unused]] const SequentialInformation& pinfo,
    \n+
    79 const OF&)
    \n+
    80 {
    \n+
    81 MatrixGraph* mg = new MatrixGraph(matrix.getmat());
    \n+
    82 PropertiesGraph* pg = new PropertiesGraph(*mg, IdentityMap(), IdentityMap());
    \n+
    83 return GraphTuple(mg,pg);
    \n+
    84 }
    \n+
    \n+
    85
    \n+
    \n+
    86 static void free(GraphTuple& graphs)
    \n+
    87 {
    \n+
    88 delete std::get<1>(graphs);
    \n+
    89 }
    \n+
    \n+
    90
    \n+
    91 };
    \n+
    \n+
    92
    \n+
    93 } //namespace Amg
    \n+
    94} // namespace Dune
    \n+
    95#endif
    \n+\n+
    Provides classes for building the matrix graph.
    \n+
    Provides classes for initializing the link attributes of a matrix graph.
    \n+
    Implementation of the BCRSMatrix class.
    \n+
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n
    Definition allocator.hh:11
    \n-
    Categories for the solvers.
    Definition solvercategory.hh:22
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n-
    @ nonoverlapping
    Category for non-overlapping solvers.
    Definition solvercategory.hh:27
    \n-
    @ overlapping
    Category for overlapping solvers.
    Definition solvercategory.hh:29
    \n-
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n-
    Definition solvercategory.hh:54
    \n+
    Class representing the properties of an ede in the matrix graph.
    Definition dependency.hh:39
    \n+
    Class representing a node in the matrix graph.
    Definition dependency.hh:126
    \n+
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n+
    A subgraph of a graph.
    Definition graph.hh:443
    \n+
    EdgeIndexMap getEdgeIndexMap()
    Get an edge index map for the graph.
    \n+
    An index map for mapping the edges to indices.
    Definition graph.hh:470
    \n+
    Attaches properties to the edges and vertices of a graph.
    Definition graph.hh:978
    \n+
    Definition graphcreator.hh:22
    \n+
    Dune::Amg::SubGraph< MatrixGraph, std::vector< bool > > SubGraph
    Definition graphcreator.hh:26
    \n+
    Dune::Amg::PropertiesGraph< SubGraph, VertexProperties, EdgeProperties, IdentityMap, typename SubGraph::EdgeIndexMap > PropertiesGraph
    Definition graphcreator.hh:32
    \n+
    M::matrix_type Matrix
    Definition graphcreator.hh:23
    \n+
    static GraphTuple create(const M &matrix, T &excluded, PI &pinfo, const OF &of)
    Definition graphcreator.hh:37
    \n+
    static void free(GraphTuple &graphs)
    Definition graphcreator.hh:53
    \n+
    Dune::Amg::MatrixGraph< const Matrix > MatrixGraph
    Definition graphcreator.hh:24
    \n+
    std::tuple< MatrixGraph *, PropertiesGraph *, SubGraph * > GraphTuple
    Definition graphcreator.hh:34
    \n+
    Dune::Amg::MatrixGraph< const Matrix > MatrixGraph
    Definition graphcreator.hh:65
    \n+
    M::matrix_type Matrix
    Definition graphcreator.hh:63
    \n+
    Dune::Amg::PropertiesGraph< MatrixGraph, VertexProperties, EdgeProperties, IdentityMap, IdentityMap > PropertiesGraph
    Definition graphcreator.hh:71
    \n+
    std::tuple< MatrixGraph *, PropertiesGraph * > GraphTuple
    Definition graphcreator.hh:73
    \n+
    static GraphTuple create(const M &matrix, T &excluded, const SequentialInformation &pinfo, const OF &)
    Definition graphcreator.hh:76
    \n+
    static void free(GraphTuple &graphs)
    Definition graphcreator.hh:86
    \n+
    Definition pinfo.hh:28
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,85 +1,188 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-solvercategory.hh\n+ * _\bp_\ba_\ba_\bm_\bg\n+graphcreator.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_SOLVERCATEGORY_HH\n-6#define DUNE_ISTL_SOLVERCATEGORY_HH\n+5#ifndef DUNE_AMG_GRAPHCREATOR_HH\n+6#define DUNE_AMG_GRAPHCREATOR_HH\n 7\n-8#include \n+8#include \n 9\n-10\n-11namespace _\bD_\bu_\bn_\be {\n-12\n-_\b2_\b1 struct _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+10#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n+11#include \"_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh\"\n+12#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n+13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n+14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+15\n+16namespace _\bD_\bu_\bn_\be\n+17{\n+18 namespace Amg\n+19 {\n+20 template\n+_\b2_\b1 struct _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br\n 22 {\n-_\b2_\b3 enum _\bC_\ba_\bt_\be_\bg_\bo_\br_\by {\n-_\b2_\b5 _\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl,\n-_\b2_\b7 _\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg,\n-29 _\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n-_\b3_\b0 };\n-31\n-33 template\n-_\b3_\b4 static _\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by(const OP& op, decltype(op.category())* = nullptr)\n-35 {\n-36 return op.category();\n-37 }\n-38\n-39#ifndef DOXYGEN\n-40 // template\n-41 // static Category category(const OP& op, decltype(op.getSolverCategory())*\n-= nullptr)\n-42 // {\n-43 // return op.getSolverCategory();\n-44 // }\n-45\n-46 template\n-47 static _\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by(const OP& op, decltype(op.category)* = nullptr)\n-48 {\n-49 return OP::category;\n-50 }\n-51#endif\n-52 };\n-53\n-_\b5_\b4 class _\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by : public InvalidStateException{};\n-55\n-58} // end namespace\n+_\b2_\b3 typedef typename M::matrix_type _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b2_\b4 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\ba_\bt_\br_\bi_\bx_\b> _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n+25 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh,\n+_\b2_\b6 std::vector > _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh;\n+27 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh<_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh,\n+28 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n+29 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n+30 IdentityMap,\n+31 typename _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp>\n+_\b3_\b2 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh;\n+33\n+_\b3_\b4 typedef std::tuple _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be;\n+35\n+36 template\n+_\b3_\b7 static _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be _\bc_\br_\be_\ba_\bt_\be(const M& matrix, T& excluded,\n+38 PI& pinfo, const OF& of)\n+39 {\n+40 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh* mg = new _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh(matrix.getmat());\n+41 typedef typename PI::ParallelIndexSet ParallelIndexSet;\n+42 typedef typename ParallelIndexSet::const_iterator IndexIterator;\n+43 IndexIterator iend = pinfo.indexSet().end();\n+44\n+45 for(IndexIterator index = pinfo.indexSet().begin(); index != iend; ++index)\n+46 excluded[index->local()] = of.contains(index->local().attribute());\n+47\n+48 _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh* sg= new _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh(*mg, excluded);\n+49 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh* pg = new _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(*sg, IdentityMap(), sg-\n+>_\bg_\be_\bt_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp());\n+50 return _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be(mg,pg,sg);\n+51 }\n+52\n+_\b5_\b3 static void _\bf_\br_\be_\be(_\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be& graphs)\n+54 {\n+55 delete std::get<2>(graphs);\n+56 delete std::get<1>(graphs);\n+57 }\n+58 };\n 59\n-60#endif\n+60 template\n+_\b6_\b1 struct _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br\n+62 {\n+_\b6_\b3 typedef typename M::matrix_type _\bM_\ba_\bt_\br_\bi_\bx;\n+64\n+_\b6_\b5 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\ba_\bt_\br_\bi_\bx_\b> _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n+66\n+67 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh,\n+68 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n+69 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n+70 IdentityMap,\n+_\b7_\b1 IdentityMap> _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh;\n+72\n+_\b7_\b3 typedef std::tuple _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be;\n+74\n+75 template\n+_\b7_\b6 static _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be _\bc_\br_\be_\ba_\bt_\be([[maybe_unused]] const M& matrix,\n+77 [[maybe_unused]] T& excluded,\n+78 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+79 const OF&)\n+80 {\n+81 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh* mg = new _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh(matrix.getmat());\n+82 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh* pg = new _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(*mg, IdentityMap(), IdentityMap\n+());\n+83 return _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be(mg,pg);\n+84 }\n+85\n+_\b8_\b6 static void _\bf_\br_\be_\be(_\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be& graphs)\n+87 {\n+88 delete std::get<1>(graphs);\n+89 }\n+90\n+91 };\n+92\n+93 } //namespace Amg\n+94} // namespace Dune\n+95#endif\n+_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n+_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\n+Provides classes for building the matrix graph.\n+_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh\n+Provides classes for initializing the link attributes of a matrix graph.\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n+_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n+Define general, extensible interface for operators. The available\n+implementation wraps a matrix.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Categories for the solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n-@ nonoverlapping\n-Category for non-overlapping solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n-@ overlapping\n-Category for overlapping solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:29\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-static Category category(const OP &op, decltype(op.category()) *=nullptr)\n-Helperfunction to extract the solver category either from an enum, or from the\n-newly introduced virtu...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+Class representing the properties of an ede in the matrix graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:39\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+Class representing a node in the matrix graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+The (undirected) graph of a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n+A subgraph of a graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:443\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+EdgeIndexMap getEdgeIndexMap()\n+Get an edge index map for the graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+An index map for mapping the edges to indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:470\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+Attaches properties to the edges and vertices of a graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:978\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n+Dune::Amg::SubGraph< MatrixGraph, std::vector< bool > > SubGraph\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:26\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+Dune::Amg::PropertiesGraph< SubGraph, VertexProperties, EdgeProperties,\n+IdentityMap, typename SubGraph::EdgeIndexMap > PropertiesGraph\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+M::matrix_type Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n+static GraphTuple create(const M &matrix, T &excluded, PI &pinfo, const OF &of)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bf_\br_\be_\be\n+static void free(GraphTuple &graphs)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+Dune::Amg::MatrixGraph< const Matrix > MatrixGraph\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:24\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be\n+std::tuple< MatrixGraph *, PropertiesGraph *, SubGraph * > GraphTuple\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+Dune::Amg::MatrixGraph< const Matrix > MatrixGraph\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:65\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+M::matrix_type Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:63\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+Dune::Amg::PropertiesGraph< MatrixGraph, VertexProperties, EdgeProperties,\n+IdentityMap, IdentityMap > PropertiesGraph\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:71\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be\n+std::tuple< MatrixGraph *, PropertiesGraph * > GraphTuple\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n+static GraphTuple create(const M &matrix, T &excluded, const\n+SequentialInformation &pinfo, const OF &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:76\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bf_\br_\be_\be\n+static void free(GraphTuple &graphs)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:86\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00056.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00056.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: istlexception.hh File Reference\n+dune-istl: hierarchy.hh File Reference\n \n \n \n \n \n \n \n@@ -65,52 +65,56 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n \n-
    istlexception.hh File Reference
    \n+ \n
    \n
    \n-
    #include <dune/common/exceptions.hh>
    \n-#include <dune/common/fmatrix.hh>
    \n+\n+

    Provides a classes representing the hierarchies in AMG. \n+More...

    \n+
    #include <list>
    \n+#include <memory>
    \n+#include <limits>
    \n+#include <dune/common/stdstreams.hh>
    \n+#include <dune/common/timer.hh>
    \n+#include <dune/common/bigunsignedint.hh>
    \n+#include <dune/istl/paamg/construction.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::ISTLError
     derive error class from the base class in common More...
     
    class  Dune::BCRSMatrixError
     Error specific to BCRSMatrix. More...
     
    class  Dune::ImplicitModeCompressionBufferExhausted
     Thrown when the compression buffer used by the implicit BCRSMatrix construction is exhausted. More...
    class  Dune::Amg::Hierarchy< T, A >
     A hierarchy of containers (e.g. matrices or vectors) More...
     
    class  Dune::SolverAbort
     Thrown when a solver aborts due to some problem. More...
     
    class  Dune::MatrixBlockError
     Error when performing an operation on a matrix block. More...
    class  Dune::Amg::Hierarchy< T, A >::LevelIterator< C, T1 >
     Iterator over the levels in the hierarchy. More...
     
    \n \n \n \n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-
    \n+

    Detailed Description

    \n+

    Provides a classes representing the hierarchies in AMG.

    \n+
    Author
    Markus Blatt
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,33 +1,38 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n+ * _\bp_\ba_\ba_\bm_\bg\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-istlexception.hh File Reference\n-#include \n-#include \n+hierarchy.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n+\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n+Provides a classes representing the hierarchies in AMG. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-\u00a0 derive error class from the base class in common _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bT_\b,_\b _\bA_\b _\b>\n+\u00a0 A hierarchy of containers (e.g. matrices or vectors) _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n-\u00a0 Error specific to _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd\n-\u00a0 Thrown when the compression buffer used by the implicit _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n- construction is exhausted. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt\n-\u00a0 Thrown when a solver aborts due to some problem. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br\n-\u00a0 Error when performing an operation on a matrix block. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bC_\b,_\b _\bT_\b1_\b _\b>\n+\u00a0 Iterator over the levels in the hierarchy. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Provides a classes representing the hierarchies in AMG.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00056_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00056_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: istlexception.hh Source File\n+dune-istl: hierarchy.hh Source File\n \n \n \n \n \n \n \n@@ -70,69 +70,423 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n-
    istlexception.hh
    \n+
    hierarchy.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_ISTLEXCEPTION_HH
    \n-
    6#define DUNE_ISTL_ISTLEXCEPTION_HH
    \n+
    5#ifndef DUNE_AMGHIERARCHY_HH
    \n+
    6#define DUNE_AMGHIERARCHY_HH
    \n
    7
    \n-
    8#include <dune/common/exceptions.hh>
    \n-
    9#include <dune/common/fmatrix.hh>
    \n-
    10
    \n-
    11namespace Dune {
    \n-
    12
    \n-
    19 class ISTLError : public Dune::MathError {};
    \n-
    20
    \n-
    \n-\n-
    23 : public ISTLError
    \n-
    24 {};
    \n-
    \n-
    25
    \n-
    \n-\n-
    36 : public BCRSMatrixError
    \n-
    37 {};
    \n-
    \n-
    38
    \n-
    40
    \n-
    46 class SolverAbort : public ISTLError {};
    \n-
    47
    \n+
    8#include <list>
    \n+
    9#include <memory>
    \n+
    10#include <limits>
    \n+
    11#include <dune/common/stdstreams.hh>
    \n+
    12#include <dune/common/timer.hh>
    \n+
    13#include <dune/common/bigunsignedint.hh>
    \n+\n+
    15
    \n+
    16namespace Dune
    \n+
    17{
    \n+
    18 namespace Amg
    \n+
    19 {
    \n+
    38 template<typename T, typename A=std::allocator<T> >
    \n+
    \n+\n+
    40 {
    \n+
    41 public:
    \n+
    45 typedef T MemberType;
    \n+
    46
    \n+
    47 template<typename T1, typename T2>
    \n+
    48 class LevelIterator;
    \n
    49
    \n-
    \n-
    52 class MatrixBlockError : public virtual Dune::FMatrixError {
    \n-
    53 public:
    \n-
    54 int r, c; // row and column index of the entry from which the error resulted
    \n-
    55 };
    \n-
    \n-
    56
    \n-
    59} // end namespace
    \n-
    60
    \n-
    61#endif
    \n+
    50 private:
    \n+
    54 struct Element
    \n+
    55 {
    \n+
    56 friend class LevelIterator<Hierarchy<T,A>, T>;
    \n+
    57 friend class LevelIterator<const Hierarchy<T,A>, const T>;
    \n+
    58
    \n+
    60 std::weak_ptr<Element> coarser_;
    \n+
    61
    \n+
    63 std::shared_ptr<Element> finer_;
    \n+
    64
    \n+
    66 std::shared_ptr<MemberType> element_;
    \n+
    67
    \n+
    69 std::shared_ptr<MemberType> redistributed_;
    \n+
    70 };
    \n+
    71 public:
    \n+
    72
    \n+
    76 using Allocator = typename std::allocator_traits<A>::template rebind_alloc<Element>;
    \n+
    77
    \n+\n+
    79
    \n+
    \n+
    84 Hierarchy(const std::shared_ptr<MemberType> & first);
    \n+
    85
    \n+
    \n+
    89 Hierarchy() : levels_(0)
    \n+
    90 {}
    \n+
    \n+
    91
    \n+
    \n+
    95 Hierarchy(const Hierarchy& other);
    \n+
    96
    \n+
    \n+\n+
    102
    \n+
    \n+\n+
    104
    \n+
    \n+
    109 void addFiner(Arguments& args);
    \n+
    110
    \n+
    117 template<class C, class T1>
    \n+
    \n+\n+
    119 : public BidirectionalIteratorFacade<LevelIterator<C,T1>,T1,T1&>
    \n+
    120 {
    \n+
    121 friend class LevelIterator<typename std::remove_const<C>::type,
    \n+
    122 typename std::remove_const<T1>::type >;
    \n+
    123 friend class LevelIterator<const typename std::remove_const<C>::type,
    \n+
    124 const typename std::remove_const<T1>::type >;
    \n+
    125
    \n+
    126 public:
    \n+
    \n+\n+
    129 {}
    \n+
    \n+
    130
    \n+
    \n+
    131 LevelIterator(std::shared_ptr<Element> element)
    \n+
    132 : element_(element)
    \n+
    133 {}
    \n+
    \n+
    134
    \n+
    \n+
    136 LevelIterator(const LevelIterator<typename std::remove_const<C>::type,
    \n+
    137 typename std::remove_const<T1>::type>& other)
    \n+
    138 : element_(other.element_)
    \n+
    139 {}
    \n+
    \n+
    140
    \n+
    \n+
    142 LevelIterator(const LevelIterator<const typename std::remove_const<C>::type,
    \n+
    143 const typename std::remove_const<T1>::type>& other)
    \n+
    144 : element_(other.element_)
    \n+
    145 {}
    \n+
    \n+
    146
    \n+
    \n+
    150 bool equals(const LevelIterator<typename std::remove_const<C>::type,
    \n+
    151 typename std::remove_const<T1>::type>& other) const
    \n+
    152 {
    \n+
    153 return element_ == other.element_;
    \n+
    154 }
    \n+
    \n+
    155
    \n+
    \n+
    159 bool equals(const LevelIterator<const typename std::remove_const<C>::type,
    \n+
    160 const typename std::remove_const<T1>::type>& other) const
    \n+
    161 {
    \n+
    162 return element_ == other.element_;
    \n+
    163 }
    \n+
    \n+
    164
    \n+
    \n+
    166 T1& dereference() const
    \n+
    167 {
    \n+
    168 return *(element_->element_);
    \n+
    169 }
    \n+
    \n+
    170
    \n+
    \n+\n+
    173 {
    \n+
    174 element_ = element_->coarser_.lock();
    \n+
    175 }
    \n+
    \n+
    176
    \n+
    \n+\n+
    179 {
    \n+
    180 element_ = element_->finer_;
    \n+
    181 }
    \n+
    \n+
    182
    \n+
    \n+
    187 bool isRedistributed() const
    \n+
    188 {
    \n+
    189 return (bool)element_->redistributed_;
    \n+
    190 }
    \n+
    \n+
    191
    \n+
    \n+\n+
    197 {
    \n+
    198 assert(element_->redistributed_);
    \n+
    199 return *element_->redistributed_;
    \n+
    200 }
    \n+
    \n+
    \n+
    201 void addRedistributed(std::shared_ptr<T1> t)
    \n+
    202 {
    \n+
    203 element_->redistributed_ = t;
    \n+
    204 }
    \n+
    \n+
    205
    \n+
    \n+\n+
    207 {
    \n+
    208 element_->redistributed_ = nullptr;
    \n+
    209 }
    \n+
    \n+
    210
    \n+
    211 private:
    \n+
    212 std::shared_ptr<Element> element_;
    \n+
    213 };
    \n+
    \n+
    214
    \n+\n+
    217
    \n+\n+
    220
    \n+
    \n+\n+
    226
    \n+
    \n+\n+
    232
    \n+
    233
    \n+
    \n+\n+
    239
    \n+
    \n+\n+
    245
    \n+
    \n+
    250 std::size_t levels() const;
    \n+
    251
    \n+
    252 private:
    \n+
    258 std::shared_ptr<MemberType> originalFinest_;
    \n+
    260 std::shared_ptr<Element> finest_;
    \n+
    262 std::shared_ptr<Element> coarsest_;
    \n+
    264 Allocator allocator_;
    \n+
    266 int levels_;
    \n+
    267 };
    \n+
    268
    \n+
    269 template<class T, class A>
    \n+
    \n+
    270 Hierarchy<T,A>::Hierarchy(const std::shared_ptr<MemberType> & first)
    \n+
    271 : originalFinest_(first)
    \n+
    272 {
    \n+
    273 finest_ = std::allocate_shared<Element>(allocator_);
    \n+
    274 finest_->element_ = originalFinest_;
    \n+
    275 coarsest_ = finest_;
    \n+
    276 levels_ = 1;
    \n+
    277 }
    \n+
    \n+
    278
    \n+
    280 //TODO: do we actually want to support this? This might be very expensive?!
    \n+
    281 template<class T, class A>
    \n+
    \n+\n+
    283 : allocator_(other.allocator_),
    \n+
    284 levels_(other.levels_)
    \n+
    285 {
    \n+
    286 if(!other.finest_)
    \n+
    287 {
    \n+
    288 finest_=coarsest_=nullptr;
    \n+
    289 return;
    \n+
    290 }
    \n+
    291 finest_ = std::allocate_shared<Element>(allocator_);
    \n+
    292 std::shared_ptr<Element> finer_;
    \n+
    293 std::shared_ptr<Element> current_ = finest_;
    \n+
    294 std::weak_ptr<Element> otherWeak_ = other.finest_;
    \n+
    295
    \n+
    296 while(! otherWeak_.expired())
    \n+
    297 {
    \n+
    298 // create shared_ptr from weak_ptr, we just checked that this is safe
    \n+
    299 std::shared_ptr<Element> otherCurrent_ = std::shared_ptr<Element>(otherWeak_);
    \n+
    300 // clone current level
    \n+
    301 //TODO: should we use the allocator?
    \n+
    302 current_->element_ =
    \n+
    303 std::make_shared<MemberType>(*(otherCurrent_->element_));
    \n+
    304 current_->finer_=finer_;
    \n+
    305 if(otherCurrent_->redistributed_)
    \n+
    306 current_->redistributed_ =
    \n+
    307 std::make_shared<MemberType>(*(otherCurrent_->redistributed_));
    \n+
    308 finer_=current_;
    \n+
    309 if(not otherCurrent_->coarser_.expired())
    \n+
    310 {
    \n+
    311 auto c = std::allocate_shared<Element>(allocator_);
    \n+
    312 current_->coarser_ = c;
    \n+
    313 current_ = c;
    \n+
    314 }
    \n+
    315 // go to coarser level
    \n+
    316 otherWeak_ = otherCurrent_->coarser_;
    \n+
    317 }
    \n+
    318 coarsest_=current_;
    \n+
    319 }
    \n+
    \n+
    320
    \n+
    321 template<class T, class A>
    \n+
    \n+
    322 std::size_t Hierarchy<T,A>::levels() const
    \n+
    323 {
    \n+
    324 return levels_;
    \n+
    325 }
    \n+
    \n+
    \n+
    326
    \n+
    327 template<class T, class A>
    \n+
    \n+\n+
    329 {
    \n+
    330 coarsest_->redistributed_ = ConstructionTraits<MemberType>::construct(args);
    \n+
    331 }
    \n+
    \n+
    332
    \n+
    333 template<class T, class A>
    \n+
    \n+\n+
    335 {
    \n+
    336 if(!coarsest_) {
    \n+
    337 // we have no levels at all...
    \n+
    338 assert(!finest_);
    \n+
    339 // allocate into the shared_ptr
    \n+
    340 originalFinest_ = ConstructionTraits<MemberType>::construct(args);
    \n+
    341 coarsest_ = std::allocate_shared<Element>(allocator_);
    \n+
    342 coarsest_->element_ = originalFinest_;
    \n+
    343 finest_ = coarsest_;
    \n+
    344 }else{
    \n+
    345 auto old_coarsest = coarsest_;
    \n+
    346 coarsest_ = std::allocate_shared<Element>(allocator_);
    \n+
    347 coarsest_->finer_ = old_coarsest;
    \n+
    348 coarsest_->element_ = ConstructionTraits<MemberType>::construct(args);
    \n+
    349 old_coarsest->coarser_ = coarsest_;
    \n+
    350 }
    \n+
    351 ++levels_;
    \n+
    352 }
    \n+
    \n+
    353
    \n+
    354
    \n+
    355 template<class T, class A>
    \n+
    \n+\n+
    357 {
    \n+
    358 //TODO: wouldn't it be better to do this in the constructor?'
    \n+
    359 if(!finest_) {
    \n+
    360 // we have no levels at all...
    \n+
    361 assert(!coarsest_);
    \n+
    362 // allocate into the shared_ptr
    \n+
    363 originalFinest_ = ConstructionTraits<MemberType>::construct(args);
    \n+
    364 finest_ = std::allocate_shared<Element>(allocator_);
    \n+
    365 finest_->element = originalFinest_;
    \n+
    366 coarsest_ = finest_;
    \n+
    367 }else{
    \n+
    368 finest_->finer_ = std::allocate_shared<Element>(allocator_);
    \n+
    369 finest_->finer_->coarser_ = finest_;
    \n+
    370 finest_ = finest_->finer_;
    \n+
    371 finest_->element = ConstructionTraits<T>::construct(args);
    \n+
    372 }
    \n+
    373 ++levels_;
    \n+
    374 }
    \n+
    \n+
    375
    \n+
    376 template<class T, class A>
    \n+
    \n+\n+
    378 {
    \n+
    379 return Iterator(finest_);
    \n+
    380 }
    \n+
    \n+
    381
    \n+
    382 template<class T, class A>
    \n+
    \n+\n+
    384 {
    \n+
    385 return Iterator(coarsest_);
    \n+
    386 }
    \n+
    \n+
    387
    \n+
    388 template<class T, class A>
    \n+
    \n+\n+
    390 {
    \n+
    391 return ConstIterator(finest_);
    \n+
    392 }
    \n+
    \n+
    393
    \n+
    394 template<class T, class A>
    \n+
    \n+\n+
    396 {
    \n+
    397 return ConstIterator(coarsest_);
    \n+
    398 }
    \n+
    \n+
    \n+
    400 } // namespace Amg
    \n+
    401} // namespace Dune
    \n+
    402
    \n+
    403#endif
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    Helper classes for the construction of classes without empty constructor.
    \n+
    Hierarchy(const Hierarchy &other)
    Copy constructor (deep copy!).
    Definition hierarchy.hh:282
    \n+
    void addRedistributedOnCoarsest(Arguments &args)
    Definition hierarchy.hh:328
    \n+
    std::size_t levels() const
    Get the number of levels in the hierarchy.
    Definition hierarchy.hh:322
    \n+
    ConstIterator coarsest() const
    Get an iterator positioned at the coarsest level.
    Definition hierarchy.hh:395
    \n+
    void addCoarser(Arguments &args)
    Add an element on a coarser level.
    Definition hierarchy.hh:334
    \n+
    void addFiner(Arguments &args)
    Add an element on a finer level.
    Definition hierarchy.hh:356
    \n+
    Hierarchy(const std::shared_ptr< MemberType > &first)
    Construct a new hierarchy.
    Definition hierarchy.hh:270
    \n+
    const void * Arguments
    A type holding all the arguments needed to call the constructor.
    Definition construction.hh:44
    \n+
    static std::shared_ptr< T > construct(Arguments &args)
    Construct an object with the specified arguments.
    Definition construction.hh:52
    \n+
    Iterator coarsest()
    Get an iterator positioned at the coarsest level.
    Definition hierarchy.hh:383
    \n+
    ConstIterator finest() const
    Get an iterator positioned at the finest level.
    Definition hierarchy.hh:389
    \n+
    Iterator finest()
    Get an iterator positioned at the finest level.
    Definition hierarchy.hh:377
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    Error specific to BCRSMatrix.
    Definition istlexception.hh:24
    \n-
    Thrown when the compression buffer used by the implicit BCRSMatrix construction is exhausted.
    Definition istlexception.hh:37
    \n-
    Thrown when a solver aborts due to some problem.
    Definition istlexception.hh:46
    \n-
    Error when performing an operation on a matrix block.
    Definition istlexception.hh:52
    \n-
    int c
    Definition istlexception.hh:54
    \n-
    int r
    Definition istlexception.hh:54
    \n+
    A hierarchy of containers (e.g. matrices or vectors)
    Definition hierarchy.hh:40
    \n+
    T MemberType
    The type of the container we store.
    Definition hierarchy.hh:45
    \n+
    LevelIterator< Hierarchy< T, A >, T > Iterator
    Type of the mutable iterator.
    Definition hierarchy.hh:216
    \n+
    LevelIterator< const Hierarchy< T, A >, const T > ConstIterator
    Type of the const iterator.
    Definition hierarchy.hh:219
    \n+
    ConstructionTraits< T >::Arguments Arguments
    Definition hierarchy.hh:78
    \n+
    Hierarchy()
    Construct an empty hierarchy.
    Definition hierarchy.hh:89
    \n+
    typename std::allocator_traits< A >::template rebind_alloc< Element > Allocator
    The allocator to use for the list elements.
    Definition hierarchy.hh:76
    \n+
    Iterator over the levels in the hierarchy.
    Definition hierarchy.hh:120
    \n+
    LevelIterator(const LevelIterator< typename std::remove_const< C >::type, typename std::remove_const< T1 >::type > &other)
    Copy constructor.
    Definition hierarchy.hh:136
    \n+
    void addRedistributed(std::shared_ptr< T1 > t)
    Definition hierarchy.hh:201
    \n+
    T1 & dereference() const
    Dereference the iterator.
    Definition hierarchy.hh:166
    \n+
    bool equals(const LevelIterator< typename std::remove_const< C >::type, typename std::remove_const< T1 >::type > &other) const
    Equality check.
    Definition hierarchy.hh:150
    \n+
    bool isRedistributed() const
    Check whether there was a redistribution at the current level.
    Definition hierarchy.hh:187
    \n+
    bool equals(const LevelIterator< const typename std::remove_const< C >::type, const typename std::remove_const< T1 >::type > &other) const
    Equality check.
    Definition hierarchy.hh:159
    \n+
    void increment()
    Move to the next coarser level.
    Definition hierarchy.hh:172
    \n+
    LevelIterator(const LevelIterator< const typename std::remove_const< C >::type, const typename std::remove_const< T1 >::type > &other)
    Copy constructor.
    Definition hierarchy.hh:142
    \n+
    void deleteRedistributed()
    Definition hierarchy.hh:206
    \n+
    void decrement()
    Move to the next fine level.
    Definition hierarchy.hh:178
    \n+
    LevelIterator(std::shared_ptr< Element > element)
    Definition hierarchy.hh:131
    \n+
    T1 & getRedistributed() const
    Get the redistributed container.
    Definition hierarchy.hh:196
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,69 +1,442 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-istlexception.hh\n+ * _\bp_\ba_\ba_\bm_\bg\n+hierarchy.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_ISTLEXCEPTION_HH\n-6#define DUNE_ISTL_ISTLEXCEPTION_HH\n+5#ifndef DUNE_AMGHIERARCHY_HH\n+6#define DUNE_AMGHIERARCHY_HH\n 7\n-8#include \n-9#include \n-10\n-11namespace _\bD_\bu_\bn_\be {\n-12\n-_\b1_\b9 class _\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br : public Dune::MathError {};\n-20\n-_\b2_\b2 class _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n-23 : public _\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-24 {};\n-25\n-_\b3_\b5 class _\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd\n-36 : public _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n-37 {};\n-38\n-40\n-_\b4_\b6 class _\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt : public _\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br {};\n-47\n+8#include \n+9#include \n+10#include \n+11#include \n+12#include \n+13#include \n+14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+15\n+16namespace _\bD_\bu_\bn_\be\n+17{\n+18 namespace Amg\n+19 {\n+38 template >\n+_\b3_\b9 class _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+40 {\n+41 public:\n+_\b4_\b5 typedef T _\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be;\n+46\n+47 template\n+48 class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n 49\n-_\b5_\b2 class _\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br : public virtual Dune::FMatrixError {\n-53 public:\n-_\b5_\b4 int _\br, _\bc; // row and column index of the entry from which the error resulted\n-55 };\n-56\n-59} // end namespace\n-60\n-61#endif\n+50 private:\n+54 struct Element\n+55 {\n+56 friend class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br<_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by, T>;\n+57 friend class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br, const T>;\n+58\n+60 std::weak_ptr coarser_;\n+61\n+63 std::shared_ptr finer_;\n+64\n+66 std::shared_ptr element_;\n+67\n+_\b6_\b9 std::shared_ptr redistributed_;\n+70 };\n+71 public:\n+72\n+_\b7_\b6 using _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br = typename std::allocator_traits::template\n+rebind_alloc;\n+77\n+_\b7_\b8 typedef typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+79\n+_\b8_\b4 _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(const std::shared_ptr & first);\n+85\n+_\b8_\b9 _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by() : levels_(0)\n+90 {}\n+91\n+_\b9_\b5 _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(const _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& other);\n+96\n+_\b1_\b0_\b1 void _\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args);\n+102\n+_\b1_\b0_\b3 void _\ba_\bd_\bd_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd_\bO_\bn_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args);\n+104\n+_\b1_\b0_\b9 void _\ba_\bd_\bd_\bF_\bi_\bn_\be_\br(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args);\n+110\n+117 template\n+_\b1_\b1_\b8 class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+119 : public BidirectionalIteratorFacade,T1,T1&>\n+120 {\n+121 friend class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n+122 typename std::remove_const::type >;\n+123 friend class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n+124 const typename std::remove_const::type >;\n+125\n+126 public:\n+_\b1_\b2_\b8 _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br()\n+129 {}\n+130\n+_\b1_\b3_\b1 _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(std::shared_ptr element)\n+132 : element_(element)\n+133 {}\n+134\n+_\b1_\b3_\b6 _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n+137 typename std::remove_const::type>& other)\n+138 : element_(other.element_)\n+139 {}\n+140\n+_\b1_\b4_\b2 _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::\n+type,\n+143 const typename std::remove_const::type>& other)\n+144 : element_(other.element_)\n+145 {}\n+146\n+_\b1_\b5_\b0 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n+151 typename std::remove_const::type>& other) const\n+152 {\n+153 return element_ == other.element_;\n+154 }\n+155\n+_\b1_\b5_\b9 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n+160 const typename std::remove_const::type>& other) const\n+161 {\n+162 return element_ == other.element_;\n+163 }\n+164\n+_\b1_\b6_\b6 T1& _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const\n+167 {\n+168 return *(element_->element_);\n+169 }\n+170\n+_\b1_\b7_\b2 void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt()\n+173 {\n+174 element_ = element_->coarser_.lock();\n+175 }\n+176\n+_\b1_\b7_\b8 void _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt()\n+179 {\n+180 element_ = element_->finer_;\n+181 }\n+182\n+_\b1_\b8_\b7 bool _\bi_\bs_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd() const\n+188 {\n+189 return (bool)element_->redistributed_;\n+190 }\n+191\n+_\b1_\b9_\b6 T1& _\bg_\be_\bt_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd() const\n+197 {\n+198 assert(element_->redistributed_);\n+199 return *element_->redistributed_;\n+200 }\n+_\b2_\b0_\b1 void _\ba_\bd_\bd_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd(std::shared_ptr t)\n+202 {\n+203 element_->redistributed_ = t;\n+204 }\n+205\n+_\b2_\b0_\b6 void _\bd_\be_\bl_\be_\bt_\be_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd()\n+207 {\n+208 element_->redistributed_ = nullptr;\n+209 }\n+210\n+211 private:\n+212 std::shared_ptr element_;\n+213 };\n+214\n+_\b2_\b1_\b6 typedef _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>,T> _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+217\n+_\b2_\b1_\b9 typedef _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>, const T> _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+220\n+_\b2_\b2_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\be_\bs_\bt();\n+226\n+_\b2_\b3_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\bo_\ba_\br_\bs_\be_\bs_\bt();\n+232\n+233\n+_\b2_\b3_\b8 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\be_\bs_\bt() const;\n+239\n+_\b2_\b4_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\bo_\ba_\br_\bs_\be_\bs_\bt() const;\n+245\n+_\b2_\b5_\b0 std::size_t _\bl_\be_\bv_\be_\bl_\bs() const;\n+251\n+252 private:\n+258 std::shared_ptr originalFinest_;\n+260 std::shared_ptr finest_;\n+262 std::shared_ptr coarsest_;\n+264 _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br allocator_;\n+266 int levels_;\n+267 };\n+268\n+269 template\n+_\b2_\b7_\b0 _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(const std::shared_ptr & first)\n+271 : originalFinest_(first)\n+272 {\n+273 finest_ = std::allocate_shared(allocator_);\n+274 finest_->element_ = originalFinest_;\n+275 coarsest_ = finest_;\n+276 levels_ = 1;\n+277 }\n+278\n+280 //TODO: do we actually want to support this? This might be very expensive?!\n+281 template\n+_\b2_\b8_\b2 _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(const _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& other)\n+283 : allocator_(other.allocator_),\n+284 levels_(other.levels_)\n+285 {\n+286 if(!other.finest_)\n+287 {\n+288 finest_=coarsest_=nullptr;\n+289 return;\n+290 }\n+291 finest_ = std::allocate_shared(allocator_);\n+292 std::shared_ptr finer_;\n+293 std::shared_ptr current_ = finest_;\n+294 std::weak_ptr otherWeak_ = other.finest_;\n+295\n+296 while(! otherWeak_.expired())\n+297 {\n+298 // create shared_ptr from weak_ptr, we just checked that this is safe\n+299 std::shared_ptr otherCurrent_ = std::shared_ptr\n+(otherWeak_);\n+300 // clone current level\n+301 //TODO: should we use the allocator?\n+302 current_->element_ =\n+303 std::make_shared(*(otherCurrent_->element_));\n+304 current_->finer_=finer_;\n+305 if(otherCurrent_->redistributed_)\n+306 current_->redistributed_ =\n+307 std::make_shared(*(otherCurrent_->redistributed_));\n+308 finer_=current_;\n+309 if(not otherCurrent_->coarser_.expired())\n+310 {\n+311 auto c = std::allocate_shared(allocator_);\n+312 current_->coarser_ = c;\n+313 current_ = c;\n+314 }\n+315 // go to coarser level\n+316 otherWeak_ = otherCurrent_->coarser_;\n+317 }\n+318 coarsest_=current_;\n+319 }\n+320\n+321 template\n+_\b3_\b2_\b2 std::size_t _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs() const\n+323 {\n+324 return levels_;\n+325 }\n+326\n+327 template\n+_\b3_\b2_\b8 void _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd_\bO_\bn_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+329 {\n+330 coarsest_->redistributed_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+(args);\n+331 }\n+332\n+333 template\n+_\b3_\b3_\b4 void _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+335 {\n+336 if(!coarsest_) {\n+337 // we have no levels at all...\n+338 assert(!finest_);\n+339 // allocate into the shared_ptr\n+340 originalFinest_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(args);\n+341 coarsest_ = std::allocate_shared(allocator_);\n+342 coarsest_->element_ = originalFinest_;\n+343 finest_ = coarsest_;\n+344 }else{\n+345 auto old_coarsest = coarsest_;\n+346 coarsest_ = std::allocate_shared(allocator_);\n+347 coarsest_->finer_ = old_coarsest;\n+348 coarsest_->element_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(args);\n+349 old_coarsest->coarser_ = coarsest_;\n+350 }\n+351 ++levels_;\n+352 }\n+353\n+354\n+355 template\n+_\b3_\b5_\b6 void _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bF_\bi_\bn_\be_\br(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+357 {\n+358 //TODO: wouldn't it be better to do this in the constructor?'\n+359 if(!finest_) {\n+360 // we have no levels at all...\n+361 assert(!coarsest_);\n+362 // allocate into the shared_ptr\n+363 originalFinest_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(args);\n+364 finest_ = std::allocate_shared(allocator_);\n+365 finest_->element = originalFinest_;\n+366 coarsest_ = finest_;\n+367 }else{\n+368 finest_->finer_ = std::allocate_shared(allocator_);\n+369 finest_->finer_->coarser_ = finest_;\n+370 finest_ = finest_->finer_;\n+371 finest_->element = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(args);\n+372 }\n+373 ++levels_;\n+374 }\n+375\n+376 template\n+_\b3_\b7_\b7 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bf_\bi_\bn_\be_\bs_\bt()\n+378 {\n+379 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(finest_);\n+380 }\n+381\n+382 template\n+_\b3_\b8_\b3 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bs_\bt()\n+384 {\n+385 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(coarsest_);\n+386 }\n+387\n+388 template\n+_\b3_\b8_\b9 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bf_\bi_\bn_\be_\bs_\bt() const\n+390 {\n+391 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(finest_);\n+392 }\n+393\n+394 template\n+_\b3_\b9_\b5 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bs_\bt() const\n+396 {\n+397 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(coarsest_);\n+398 }\n+400 } // namespace Amg\n+401} // namespace Dune\n+402\n+403#endif\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Helper classes for the construction of classes without empty constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+Hierarchy(const Hierarchy &other)\n+Copy constructor (deep copy!).\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:282\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\ba_\bd_\bd_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd_\bO_\bn_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt\n+void addRedistributedOnCoarsest(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:328\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs\n+std::size_t levels() const\n+Get the number of levels in the hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:322\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bs_\bt\n+ConstIterator coarsest() const\n+Get an iterator positioned at the coarsest level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br\n+void addCoarser(Arguments &args)\n+Add an element on a coarser level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:334\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\ba_\bd_\bd_\bF_\bi_\bn_\be_\br\n+void addFiner(Arguments &args)\n+Add an element on a finer level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:356\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+Hierarchy(const std::shared_ptr< MemberType > &first)\n+Construct a new hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:270\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+const void * Arguments\n+A type holding all the arguments needed to call the constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< T > construct(Arguments &args)\n+Construct an object with the specified arguments.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bs_\bt\n+Iterator coarsest()\n+Get an iterator positioned at the coarsest level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:383\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bf_\bi_\bn_\be_\bs_\bt\n+ConstIterator finest() const\n+Get an iterator positioned at the finest level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:389\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bf_\bi_\bn_\be_\bs_\bt\n+Iterator finest()\n+Get an iterator positioned at the finest level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:377\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n-Error specific to BCRSMatrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:24\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd\n-Thrown when the compression buffer used by the implicit BCRSMatrix construction\n-is exhausted.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt\n-Thrown when a solver aborts due to some problem.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br\n-Error when performing an operation on a matrix block.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br_\b:_\b:_\bc\n-int c\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:54\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br_\b:_\b:_\br\n-int r\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+A hierarchy of containers (e.g. matrices or vectors)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:40\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be\n+T MemberType\n+The type of the container we store.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:45\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+LevelIterator< Hierarchy< T, A >, T > Iterator\n+Type of the mutable iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:216\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+LevelIterator< const Hierarchy< T, A >, const T > ConstIterator\n+Type of the const iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:219\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+ConstructionTraits< T >::Arguments Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+Hierarchy()\n+Construct an empty hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:89\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n+typename std::allocator_traits< A >::template rebind_alloc< Element > Allocator\n+The allocator to use for the list elements.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:76\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator over the levels in the hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+LevelIterator(const LevelIterator< typename std::remove_const< C >::type,\n+typename std::remove_const< T1 >::type > &other)\n+Copy constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:136\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bd_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd\n+void addRedistributed(std::shared_ptr< T1 > t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:201\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+T1 & dereference() const\n+Dereference the iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:166\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+bool equals(const LevelIterator< typename std::remove_const< C >::type,\n+typename std::remove_const< T1 >::type > &other) const\n+Equality check.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd\n+bool isRedistributed() const\n+Check whether there was a redistribution at the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:187\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+bool equals(const LevelIterator< const typename std::remove_const< C >::type,\n+const typename std::remove_const< T1 >::type > &other) const\n+Equality check.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:159\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n+void increment()\n+Move to the next coarser level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:172\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+LevelIterator(const LevelIterator< const typename std::remove_const< C >::type,\n+const typename std::remove_const< T1 >::type > &other)\n+Copy constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:142\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bl_\be_\bt_\be_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd\n+void deleteRedistributed()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:206\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n+void decrement()\n+Move to the next fine level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:178\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+LevelIterator(std::shared_ptr< Element > element)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:131\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd\n+T1 & getRedistributed() const\n+Get the redistributed container.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:196\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00059.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00059.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixutils.hh File Reference\n+dune-istl: combinedfunctor.hh File Reference\n \n \n \n \n \n \n \n@@ -65,99 +65,44 @@\n \n \n \n \n \n \n \n \n+
    combinedfunctor.hh File Reference
    \n \n
    \n-\n-

    Some handy generic functions for ISTL matrices. \n-More...

    \n-
    #include <set>
    \n-#include <vector>
    \n-#include <limits>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/fmatrix.hh>
    \n-#include <dune/common/dynmatrix.hh>
    \n-#include <dune/common/diagonalmatrix.hh>
    \n-#include <dune/common/scalarmatrixview.hh>
    \n-#include <dune/istl/scaledidmatrix.hh>
    \n-#include "istlexception.hh"
    \n+
    #include <tuple>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n-\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n

    \n Classes

    struct  Dune::CheckIfDiagonalPresent< Matrix, blocklevel, l >
     Check whether the a matrix has diagonal values on blocklevel recursion levels. More...
     
    struct  Dune::CheckIfDiagonalPresent< Matrix, 0, l >
     
    struct  Dune::CheckIfDiagonalPresent< MultiTypeBlockMatrix< T1, Args... >, blocklevel, l >
     
    struct  Dune::MatrixDimension< M >
     
    struct  Dune::MatrixDimension< Matrix< B, TA > >
     
    struct  Dune::MatrixDimension< BCRSMatrix< B, TA > >
     
    struct  Dune::MatrixDimension< BCRSMatrix< FieldMatrix< B, n, m >, TA > >
     
    struct  Dune::MatrixDimension< FieldMatrix< K, n, m > >
    struct  Dune::Amg::ApplyHelper< i >
     
    struct  Dune::MatrixDimension< Dune::DynamicMatrix< T > >
    struct  Dune::Amg::ApplyHelper< 0 >
     
    struct  Dune::MatrixDimension< Matrix< FieldMatrix< K, n, m >, TA > >
     
    struct  Dune::MatrixDimension< DiagonalMatrix< K, n > >
     
    struct  Dune::MatrixDimension< ScaledIdentityMatrix< K, n > >
     
    struct  Dune::IsMatrix< T >
     Test whether a type is an ISTL Matrix. More...
     
    struct  Dune::IsMatrix< DenseMatrix< T > >
     
    struct  Dune::IsMatrix< BCRSMatrix< T, A > >
     
    struct  Dune::PointerCompare< T >
    class  Dune::Amg::CombinedFunctor< T >
     
    \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n

    \n-Functions

    template<class M >
    auto Dune::countNonZeros (const M &, typename std::enable_if_t< Dune::IsNumber< M >::value > *sfinae=nullptr)
     Get the number of nonzero fields in the matrix.
     
    template<class M >
    auto Dune::countNonZeros (const M &matrix, typename std::enable_if_t<!Dune::IsNumber< M >::value > *sfinae=nullptr)
     
    template<class M , class C >
    void Dune::printGlobalSparseMatrix (const M &mat, C &ooc, std::ostream &os)
     
    namespace  Dune::Amg
     
    \n-

    Detailed Description

    \n-

    Some handy generic functions for ISTL matrices.

    \n-
    Author
    Markus Blatt
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,80 +1,25 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-matrixutils.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bS_\bp_\ba_\br_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bc_\bl_\ba_\bs_\bs_\be_\bs\n-Some handy generic functions for ISTL matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+ * _\bp_\ba_\ba_\bm_\bg\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+combinedfunctor.hh File Reference\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b,_\b _\bl_\b _\b>\n-\u00a0 Check whether the a matrix has diagonal values on blocklevel recursion\n- levels. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bi_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\b0_\b,_\b _\bl_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\b0_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b,\n- _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b,_\b _\bl_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>\n-\u00a0 Test whether a type is an _\bI_\bS_\bT_\bL _\bM_\ba_\bt_\br_\bi_\bx. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be_\b<_\b _\bT_\b _\b>\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b<_\b _\bT_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs (const M &, typename std::enable_if_t< Dune::\n- IsNumber< M >::value > *sfinae=nullptr)\n-\u00a0 Get the number of nonzero fields in the matrix.\n-\u00a0\n-template\n-auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs (const M &matrix, typename std::enable_if_t::value > *sfinae=nullptr)\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bG_\bl_\bo_\bb_\ba_\bl_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx (const M &_\bm_\ba_\bt, C &ooc, std::ostream &os)\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Some handy generic functions for ISTL matrices.\n- Author\n- Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00059_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00059_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixutils.hh Source File\n+dune-istl: combinedfunctor.hh Source File\n \n \n \n \n \n \n \n@@ -70,721 +70,94 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n-
    matrixutils.hh
    \n+
    combinedfunctor.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_MATRIXUTILS_HH
    \n-
    6#define DUNE_ISTL_MATRIXUTILS_HH
    \n+
    5#ifndef DUNE_AMG_COMBINEDFUNCTOR_HH
    \n+
    6#define DUNE_AMG_COMBINEDFUNCTOR_HH
    \n
    7
    \n-
    8#include <set>
    \n-
    9#include <vector>
    \n-
    10#include <limits>
    \n-
    11#include <dune/common/typetraits.hh>
    \n-
    12#include <dune/common/fmatrix.hh>
    \n-
    13#include <dune/common/dynmatrix.hh>
    \n-
    14#include <dune/common/diagonalmatrix.hh>
    \n-
    15#include <dune/common/scalarmatrixview.hh>
    \n-\n-
    17#include "istlexception.hh"
    \n-
    18
    \n-
    19namespace Dune
    \n-
    20{
    \n-
    21
    \n-
    22#ifndef DOYXGEN
    \n-
    23 template<typename B, typename A>
    \n-
    24 class BCRSMatrix;
    \n-
    25
    \n-
    26 template<typename K, int n, int m>
    \n-\n-
    28
    \n-
    29 template<class T, class A>
    \n-
    30 class Matrix;
    \n-
    31#endif
    \n+
    8#include <tuple>
    \n+
    9
    \n+
    10namespace Dune
    \n+
    11{
    \n+
    12 namespace Amg
    \n+
    13 {
    \n+
    14
    \n+
    15 template<std::size_t i>
    \n+
    \n+\n+
    17 {
    \n+
    18 template<class TT, class T>
    \n+
    \n+
    19 static void apply(TT tuple, const T& t)
    \n+
    20 {
    \n+
    21 std::get<i-1>(tuple) (t);
    \n+\n+
    23 }
    \n+
    \n+
    24 };
    \n+
    \n+
    25 template<>
    \n+
    \n+
    26 struct ApplyHelper<0>
    \n+
    27 {
    \n+
    28 template<class TT, class T>
    \n+
    \n+
    29 static void apply([[maybe_unused]] TT tuple, [[maybe_unused]] const T& t)
    \n+
    30 {}
    \n+
    \n+
    31 };
    \n+
    \n
    32
    \n-
    46 template<class Matrix, std::size_t blocklevel, std::size_t l=blocklevel>
    \n-
    \n-\n-
    48 {
    \n-
    \n-
    53 static void check([[maybe_unused]] const Matrix& mat)
    \n-
    54 {
    \n-
    55#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    56 typedef typename Matrix::ConstRowIterator Row;
    \n-
    57 typedef typename Matrix::ConstColIterator Entry;
    \n-
    58 for(Row row = mat.begin(); row!=mat.end(); ++row) {
    \n-
    59 Entry diagonal = row->find(row.index());
    \n-
    60 if(diagonal==row->end())
    \n-
    61 DUNE_THROW(ISTLError, "Missing diagonal value in row "<<row.index()
    \n-
    62 <<" at block recursion level "<<l-blocklevel);
    \n-
    63 else{
    \n-
    64 auto m = Impl::asMatrix(*diagonal);
    \n-
    65 CheckIfDiagonalPresent<decltype(m),blocklevel-1,l>::check(m);
    \n-
    66 }
    \n-
    67 }
    \n-
    68#endif
    \n-
    69 }
    \n-
    \n-
    70 };
    \n-
    \n-
    71
    \n-
    72 template<class Matrix, std::size_t l>
    \n-
    \n-\n-
    74 {
    \n-
    \n-
    75 static void check(const Matrix& mat)
    \n-
    76 {
    \n-
    77 typedef typename Matrix::ConstRowIterator Row;
    \n-
    78 for(Row row = mat.begin(); row!=mat.end(); ++row) {
    \n-
    79 if(row->find(row.index())==row->end())
    \n-
    80 DUNE_THROW(ISTLError, "Missing diagonal value in row "<<row.index()
    \n-
    81 <<" at block recursion level "<<l);
    \n-
    82 }
    \n-
    83 }
    \n-
    \n-
    84 };
    \n-
    \n-
    85
    \n-
    86 template<typename FirstRow, typename... Args>
    \n-
    87 class MultiTypeBlockMatrix;
    \n-
    88
    \n-
    89 template<std::size_t blocklevel, std::size_t l, typename T1, typename... Args>
    \n-
    \n-\n-
    91 blocklevel,l>
    \n-
    92 {
    \n-
    93 typedef MultiTypeBlockMatrix<T1,Args...> Matrix;
    \n-
    94
    \n-
    \n-
    99 static void check(const Matrix& /* mat */)
    \n-
    100 {
    \n-
    101#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    102 // TODO Implement check
    \n-
    103#endif
    \n-
    104 }
    \n-
    \n-
    105 };
    \n-
    \n-
    106
    \n-
    118 template<class M>
    \n-
    \n-
    119 inline auto countNonZeros(const M&,
    \n-
    120 [[maybe_unused]] typename std::enable_if_t<Dune::IsNumber<M>::value>* sfinae = nullptr)
    \n-
    121 {
    \n-
    122 return 1;
    \n-
    123 }
    \n-
    \n-
    124
    \n-
    125 template<class M>
    \n-
    \n-
    126 inline auto countNonZeros(const M& matrix,
    \n-
    127 [[maybe_unused]] typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr)
    \n-
    128 {
    \n-
    129 typename M::size_type nonZeros = 0;
    \n-
    130 for(auto&& row : matrix)
    \n-
    131 for(auto&& entry : row)
    \n-
    132 nonZeros += countNonZeros(entry);
    \n-
    133 return nonZeros;
    \n-
    134 }
    \n-
    \n-
    135
    \n-
    136 /*
    \n-
    137 template<class M>
    \n-
    138 struct ProcessOnFieldsOfMatrix
    \n-
    139 */
    \n-
    140
    \n-
    142 namespace
    \n-
    143 {
    \n-
    144 struct CompPair {
    \n-
    145 template<class G,class M>
    \n-
    146 bool operator()(const std::pair<G,M>& p1, const std::pair<G,M>& p2) const
    \n-
    147 {
    \n-
    148 return p1.first<p2.first;
    \n-
    149 }
    \n-
    150 };
    \n-
    151
    \n-
    152 }
    \n-
    153 template<class M, class C>
    \n-
    \n-
    154 void printGlobalSparseMatrix(const M& mat, C& ooc, std::ostream& os)
    \n-
    155 {
    \n-
    156 typedef typename C::ParallelIndexSet::const_iterator IIter;
    \n-
    157 typedef typename C::OwnerSet OwnerSet;
    \n-
    158 typedef typename C::ParallelIndexSet::GlobalIndex GlobalIndex;
    \n-
    159
    \n-
    160 GlobalIndex gmax=0;
    \n-
    161
    \n-
    162 for(IIter idx=ooc.indexSet().begin(), eidx=ooc.indexSet().end();
    \n-
    163 idx!=eidx; ++idx)
    \n-
    164 gmax=std::max(gmax,idx->global());
    \n-
    165
    \n-
    166 gmax=ooc.communicator().max(gmax);
    \n-
    167 ooc.buildGlobalLookup();
    \n-
    168
    \n-
    169 for(IIter idx=ooc.indexSet().begin(), eidx=ooc.indexSet().end();
    \n-
    170 idx!=eidx; ++idx) {
    \n-
    171 if(OwnerSet::contains(idx->local().attribute()))
    \n-
    172 {
    \n-
    173 typedef typename M::block_type Block;
    \n-
    174
    \n-
    175 std::set<std::pair<GlobalIndex,Block>,CompPair> entries;
    \n-
    176
    \n-
    177 // sort rows
    \n-
    178 typedef typename M::ConstColIterator CIter;
    \n-
    179 for(CIter c=mat[idx->local()].begin(), cend=mat[idx->local()].end();
    \n-
    180 c!=cend; ++c) {
    \n-
    181 const typename C::ParallelIndexSet::IndexPair* pair
    \n-
    182 =ooc.globalLookup().pair(c.index());
    \n-
    183 assert(pair);
    \n-
    184 entries.insert(std::make_pair(pair->global(), *c));
    \n-
    185 }
    \n-
    186
    \n-
    187 //wait until its the rows turn.
    \n-
    188 GlobalIndex rowidx = idx->global();
    \n-
    189 GlobalIndex cur=std::numeric_limits<GlobalIndex>::max();
    \n-
    190 while(cur!=rowidx)
    \n-
    191 cur=ooc.communicator().min(rowidx);
    \n-
    192
    \n-
    193 // print rows
    \n-
    194 typedef typename std::set<std::pair<GlobalIndex,Block>,CompPair>::iterator SIter;
    \n-
    195 for(SIter s=entries.begin(), send=entries.end(); s!=send; ++s)
    \n-
    196 os<<idx->global()<<" "<<s->first<<" "<<s->second<<std::endl;
    \n-
    197
    \n-
    198
    \n-
    199 }
    \n-
    200 }
    \n-
    201
    \n-
    202 ooc.freeGlobalLookup();
    \n-
    203 // Wait until everybody is finished
    \n-
    204 GlobalIndex cur=std::numeric_limits<GlobalIndex>::max();
    \n-
    205 while(cur!=ooc.communicator().min(cur)) ;
    \n-
    206 }
    \n-
    \n-
    207
    \n-
    208 // Default implementation for scalar types
    \n-
    209 template<typename M>
    \n-
    \n-\n-
    211 {
    \n-
    212 static_assert(IsNumber<M>::value, "MatrixDimension is not implemented for this type!");
    \n-
    213
    \n-
    \n-
    214 static auto rowdim(const M& A)
    \n-
    215 {
    \n-
    216 return 1;
    \n-
    217 }
    \n-
    \n-
    218
    \n-
    \n-
    219 static auto coldim(const M& A)
    \n-
    220 {
    \n-
    221 return 1;
    \n-
    222 }
    \n-
    \n-
    223 };
    \n-
    \n-
    224
    \n-
    225 // Default implementation for scalar types
    \n-
    226 template<typename B, typename TA>
    \n-
    \n-
    227 struct MatrixDimension<Matrix<B,TA> >
    \n-
    228 {
    \n-\n-\n-
    231
    \n-
    \n-\n-
    233 {
    \n-\n-
    235 }
    \n-
    \n-
    236
    \n-
    \n-\n-
    238 {
    \n-\n-
    240 }
    \n-
    \n-
    241
    \n-
    \n-
    242 static size_type rowdim (const Matrix<B,TA>& A)
    \n-
    243 {
    \n-
    244 size_type nn=0;
    \n-
    245 for (size_type i=0; i<A.N(); i++)
    \n-
    246 nn += rowdim(A,i);
    \n-
    247 return nn;
    \n-
    248 }
    \n-
    \n-
    249
    \n-
    \n-
    250 static size_type coldim (const Matrix<B,TA>& A)
    \n-
    251 {
    \n-
    252 size_type nn=0;
    \n-
    253 for (size_type i=0; i<A.M(); i++)
    \n-
    254 nn += coldim(A,i);
    \n-
    255 return nn;
    \n-
    256 }
    \n-
    \n-
    257 };
    \n-
    \n-
    258
    \n-
    259
    \n-
    260 template<typename B, typename TA>
    \n-
    \n-\n-
    262 {
    \n-\n-\n-
    265 typedef typename Matrix::size_type size_type;
    \n-
    266
    \n-
    \n-
    267 static size_type rowdim (const Matrix& A, size_type i)
    \n-
    268 {
    \n-
    269 const B* row = A.r[i].getptr();
    \n-
    270 if(row)
    \n-\n-
    272 else
    \n-
    273 return 0;
    \n-
    274 }
    \n-
    \n-
    275
    \n-
    \n-
    276 static size_type coldim (const Matrix& A, size_type c)
    \n-
    277 {
    \n-
    278 // find an entry in column c
    \n-
    279 if (A.nnz_ > 0)
    \n-
    280 {
    \n-
    281 for (size_type k=0; k<A.nnz_; k++) {
    \n-
    282 if (A.j_.get()[k] == c) {
    \n-\n-
    284 }
    \n-
    285 }
    \n-
    286 }
    \n-
    287 else
    \n-
    288 {
    \n-
    289 for (size_type i=0; i<A.N(); i++)
    \n-
    290 {
    \n-
    291 size_type* j = A.r[i].getindexptr();
    \n-
    292 B* a = A.r[i].getptr();
    \n-
    293 for (size_type k=0; k<A.r[i].getsize(); k++)
    \n-
    294 if (j[k]==c) {
    \n-\n-
    296 }
    \n-
    297 }
    \n-
    298 }
    \n-
    299
    \n-
    300 // not found
    \n-
    301 return 0;
    \n-
    302 }
    \n-
    \n-
    303
    \n-
    \n-
    304 static size_type rowdim (const Matrix& A){
    \n-
    305 size_type nn=0;
    \n-
    306 for (size_type i=0; i<A.N(); i++)
    \n-
    307 nn += rowdim(A,i);
    \n-
    308 return nn;
    \n-
    309 }
    \n-
    \n-
    310
    \n-
    \n-
    311 static size_type coldim (const Matrix& A){
    \n-
    312 typedef typename Matrix::ConstRowIterator ConstRowIterator;
    \n-
    313 typedef typename Matrix::ConstColIterator ConstColIterator;
    \n-
    314
    \n-
    315 // The following code has a complexity of nnz, and
    \n-
    316 // typically a very small constant.
    \n-
    317 //
    \n-
    318 std::vector<size_type> coldims(A.M(),
    \n-
    319 std::numeric_limits<size_type>::max());
    \n-
    320
    \n-
    321 for (ConstRowIterator row=A.begin(); row!=A.end(); ++row)
    \n-
    322 for (ConstColIterator col=row->begin(); col!=row->end(); ++col)
    \n-
    323 // only compute blocksizes we don't already have
    \n-
    324 if (coldims[col.index()]==std::numeric_limits<size_type>::max())
    \n-
    325 coldims[col.index()] = MatrixDimension<block_type>::coldim(*col);
    \n-
    326
    \n-
    327 size_type sum = 0;
    \n-
    328 for (typename std::vector<size_type>::iterator it=coldims.begin();
    \n-
    329 it!=coldims.end(); ++it)
    \n-
    330 // skip rows for which no coldim could be determined
    \n-
    331 if ((*it)>=0)
    \n-
    332 sum += *it;
    \n-
    333
    \n-
    334 return sum;
    \n-
    335 }
    \n-
    \n-
    336 };
    \n-
    \n-
    337
    \n-
    338
    \n-
    339 template<typename B, int n, int m, typename TA>
    \n-
    \n-\n-
    341 {
    \n-\n-
    343 typedef typename Matrix::size_type size_type;
    \n-
    344
    \n-
    \n-
    345 static size_type rowdim (const Matrix& /*A*/, size_type /*i*/)
    \n-
    346 {
    \n-
    347 return n;
    \n-
    348 }
    \n-
    \n-
    349
    \n-
    \n-
    350 static size_type coldim (const Matrix& /*A*/, size_type /*c*/)
    \n-
    351 {
    \n-
    352 return m;
    \n-
    353 }
    \n-
    \n-
    354
    \n-
    \n-
    355 static size_type rowdim (const Matrix& A) {
    \n-
    356 return A.N()*n;
    \n-
    357 }
    \n-
    \n-
    358
    \n-
    \n-
    359 static size_type coldim (const Matrix& A) {
    \n-
    360 return A.M()*m;
    \n-
    361 }
    \n-
    \n-
    362 };
    \n-
    \n-
    363
    \n-
    364 template<typename K, int n, int m>
    \n-
    \n-\n-
    366 {
    \n-\n-
    368 typedef typename Matrix::size_type size_type;
    \n-
    369
    \n-
    \n-
    370 static size_type rowdim(const Matrix& /*A*/, size_type /*r*/)
    \n-
    371 {
    \n-
    372 return 1;
    \n-
    373 }
    \n-
    \n-
    374
    \n-
    \n-
    375 static size_type coldim(const Matrix& /*A*/, size_type /*r*/)
    \n-
    376 {
    \n-
    377 return 1;
    \n-
    378 }
    \n-
    \n-
    379
    \n-
    \n-
    380 static size_type rowdim(const Matrix& /*A*/)
    \n-
    381 {
    \n-
    382 return n;
    \n-
    383 }
    \n-
    \n-
    384
    \n-
    \n-
    385 static size_type coldim(const Matrix& /*A*/)
    \n-
    386 {
    \n-
    387 return m;
    \n-
    388 }
    \n-
    \n-
    389 };
    \n-
    \n-
    390
    \n-
    391 template <class T>
    \n-
    \n-
    392 struct MatrixDimension<Dune::DynamicMatrix<T> >
    \n-
    393 {
    \n-
    394 typedef Dune::DynamicMatrix<T> MatrixType;
    \n-
    395 typedef typename MatrixType::size_type size_type;
    \n-
    396
    \n-
    \n-
    397 static size_type rowdim(const MatrixType& /*A*/, size_type /*r*/)
    \n-
    398 {
    \n-
    399 return 1;
    \n-
    400 }
    \n-
    \n-
    401
    \n-
    \n-
    402 static size_type coldim(const MatrixType& /*A*/, size_type /*r*/)
    \n-
    403 {
    \n-
    404 return 1;
    \n-
    405 }
    \n-
    \n-
    406
    \n-
    \n-
    407 static size_type rowdim(const MatrixType& A)
    \n-
    408 {
    \n-
    409 return A.N();
    \n-
    410 }
    \n-
    \n-
    411
    \n-
    \n-
    412 static size_type coldim(const MatrixType& A)
    \n-
    413 {
    \n-
    414 return A.M();
    \n-
    415 }
    \n-
    \n-
    416 };
    \n-
    \n-
    417
    \n-
    418 template<typename K, int n, int m, typename TA>
    \n-
    \n-
    419 struct MatrixDimension<Matrix<FieldMatrix<K,n,m>, TA> >
    \n-
    420 {
    \n-\n-\n-
    423
    \n-
    \n-
    424 static size_type rowdim(const ThisMatrix& /*A*/, size_type /*r*/)
    \n-
    425 {
    \n-
    426 return n;
    \n-
    427 }
    \n-
    \n-
    428
    \n-
    \n-
    429 static size_type coldim(const ThisMatrix& /*A*/, size_type /*r*/)
    \n-
    430 {
    \n-
    431 return m;
    \n-
    432 }
    \n-
    \n-
    433
    \n-
    \n-
    434 static size_type rowdim(const ThisMatrix& A)
    \n-
    435 {
    \n-
    436 return A.N()*n;
    \n-
    437 }
    \n-
    \n-
    438
    \n-
    \n-
    439 static size_type coldim(const ThisMatrix& A)
    \n-
    440 {
    \n-
    441 return A.M()*m;
    \n-
    442 }
    \n-
    \n-
    443 };
    \n-
    \n-
    444
    \n-
    445 template<typename K, int n>
    \n-
    \n-
    446 struct MatrixDimension<DiagonalMatrix<K,n> >
    \n-
    447 {
    \n-
    448 typedef DiagonalMatrix<K,n> Matrix;
    \n-
    449 typedef typename Matrix::size_type size_type;
    \n-
    450
    \n-
    \n-
    451 static size_type rowdim(const Matrix& /*A*/, size_type /*r*/)
    \n-
    452 {
    \n-
    453 return 1;
    \n-
    454 }
    \n-
    \n-
    455
    \n-
    \n-
    456 static size_type coldim(const Matrix& /*A*/, size_type /*r*/)
    \n-
    457 {
    \n-
    458 return 1;
    \n-
    459 }
    \n-
    \n-
    460
    \n-
    \n-
    461 static size_type rowdim(const Matrix& /*A*/)
    \n-
    462 {
    \n-
    463 return n;
    \n-
    464 }
    \n-
    \n-
    465
    \n-
    \n-
    466 static size_type coldim(const Matrix& /*A*/)
    \n-
    467 {
    \n-
    468 return n;
    \n-
    469 }
    \n-
    \n-
    470 };
    \n-
    \n-
    471
    \n-
    472 template<typename K, int n>
    \n-
    \n-\n-
    474 {
    \n-\n-
    476 typedef typename Matrix::size_type size_type;
    \n-
    477
    \n-
    \n-
    478 static size_type rowdim(const Matrix& /*A*/, size_type /*r*/)
    \n-
    479 {
    \n-
    480 return 1;
    \n-
    481 }
    \n-
    \n-
    482
    \n-
    \n-
    483 static size_type coldim(const Matrix& /*A*/, size_type /*r*/)
    \n-
    484 {
    \n-
    485 return 1;
    \n-
    486 }
    \n-
    \n-
    487
    \n-
    \n-
    488 static size_type rowdim(const Matrix& /*A*/)
    \n-
    489 {
    \n-
    490 return n;
    \n-
    491 }
    \n-
    \n-
    492
    \n-
    \n-
    493 static size_type coldim(const Matrix& /*A*/)
    \n-
    494 {
    \n-
    495 return n;
    \n-
    496 }
    \n-
    \n-
    497 };
    \n-
    \n-
    498
    \n-
    502 template<typename T>
    \n-
    \n-
    503 struct IsMatrix
    \n-
    504 {
    \n-
    505 enum {
    \n-
    509 value = false
    \n-
    510 };
    \n-
    511 };
    \n-
    \n-
    512
    \n-
    513 template<typename T>
    \n-
    \n-
    514 struct IsMatrix<DenseMatrix<T> >
    \n-
    515 {
    \n-
    516 enum {
    \n-
    520 value = true
    \n-
    521 };
    \n-
    522 };
    \n-
    \n-
    523
    \n-
    524
    \n-
    525 template<typename T, typename A>
    \n-
    \n-
    526 struct IsMatrix<BCRSMatrix<T,A> >
    \n-
    527 {
    \n-
    528 enum {
    \n-
    532 value = true
    \n-
    533 };
    \n-
    534 };
    \n-
    \n-
    535
    \n-
    536 template<typename T>
    \n-
    \n-\n-
    538 {
    \n-
    \n-
    539 bool operator()(const T* l, const T* r)
    \n-
    540 {
    \n-
    541 return *l < *r;
    \n-
    542 }
    \n-
    \n-
    543 };
    \n-
    \n-
    544
    \n-
    545}
    \n-
    546#endif
    \n-\n-
    This file implements a quadratic matrix of fixed size which is a multiple of the identity.
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::value > *sfinae=nullptr)
    Get the number of nonzero fields in the matrix.
    Definition matrixutils.hh:119
    \n+
    33 template<typename T>
    \n+
    \n+\n+
    35 public T
    \n+
    36 {
    \n+
    37 public:
    \n+
    \n+
    38 CombinedFunctor(const T& tuple_)
    \n+
    39 : T(tuple_)
    \n+
    40 {}
    \n+
    \n+
    41
    \n+
    42 template<class T1>
    \n+
    \n+
    43 void operator()(const T1& t)
    \n+
    44 {
    \n+\n+
    46 }
    \n+
    \n+
    47 };
    \n+
    \n+
    48
    \n+
    49
    \n+
    50 } //namespace Amg
    \n+
    51} // namespace Dune
    \n+
    52#endif
    \n
    Definition allocator.hh:11
    \n-
    void printGlobalSparseMatrix(const M &mat, C &ooc, std::ostream &os)
    Definition matrixutils.hh:154
    \n-
    Definition matrixutils.hh:211
    \n-
    static auto coldim(const M &A)
    Definition matrixutils.hh:219
    \n-
    static auto rowdim(const M &A)
    Definition matrixutils.hh:214
    \n-
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n-
    row_type::ConstIterator ConstColIterator
    Const iterator to the entries of a row.
    Definition bcrsmatrix.hh:741
    \n-
    B block_type
    export the type representing the components
    Definition bcrsmatrix.hh:491
    \n-
    Iterator access to matrix rows
    Definition bcrsmatrix.hh:579
    \n-
    A Matrix class to support different block types.
    Definition multitypeblockmatrix.hh:46
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    ConstIterator class for sequential access.
    Definition matrix.hh:404
    \n-
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n-
    A::size_type size_type
    Type for indices and sizes.
    Definition matrix.hh:577
    \n-
    RowIterator end()
    Get iterator to one beyond last row.
    Definition matrix.hh:620
    \n-
    RowIterator begin()
    Get iterator to first row.
    Definition matrix.hh:614
    \n-
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n-
    T block_type
    Export the type representing the components.
    Definition matrix.hh:568
    \n-
    Definition matrixutils.hh:27
    \n-
    Check whether the a matrix has diagonal values on blocklevel recursion levels.
    Definition matrixutils.hh:48
    \n-
    static void check(const Matrix &mat)
    Check whether the a matrix has diagonal values on blocklevel recursion levels.
    Definition matrixutils.hh:53
    \n-
    static void check(const Matrix &mat)
    Definition matrixutils.hh:75
    \n-
    static void check(const Matrix &)
    Check whether the a matrix has diagonal values on blocklevel recursion levels.
    Definition matrixutils.hh:99
    \n-
    MultiTypeBlockMatrix< T1, Args... > Matrix
    Definition matrixutils.hh:93
    \n-
    static size_type rowdim(const Matrix< B, TA > &A, size_type i)
    Definition matrixutils.hh:232
    \n-
    static size_type coldim(const Matrix< B, TA > &A)
    Definition matrixutils.hh:250
    \n-
    static size_type rowdim(const Matrix< B, TA > &A)
    Definition matrixutils.hh:242
    \n-
    typename Matrix< B, TA >::size_type size_type
    Definition matrixutils.hh:230
    \n-
    static size_type coldim(const Matrix< B, TA > &A, size_type c)
    Definition matrixutils.hh:237
    \n-
    typename Matrix< B, TA >::block_type block_type
    Definition matrixutils.hh:229
    \n-
    BCRSMatrix< B, TA > Matrix
    Definition matrixutils.hh:263
    \n-
    static size_type coldim(const Matrix &A)
    Definition matrixutils.hh:311
    \n-
    Matrix::block_type block_type
    Definition matrixutils.hh:264
    \n-
    static size_type coldim(const Matrix &A, size_type c)
    Definition matrixutils.hh:276
    \n-
    Matrix::size_type size_type
    Definition matrixutils.hh:265
    \n-
    static size_type rowdim(const Matrix &A, size_type i)
    Definition matrixutils.hh:267
    \n-
    static size_type rowdim(const Matrix &A)
    Definition matrixutils.hh:304
    \n-
    static size_type coldim(const Matrix &A)
    Definition matrixutils.hh:359
    \n-
    static size_type rowdim(const Matrix &, size_type)
    Definition matrixutils.hh:345
    \n-
    static size_type rowdim(const Matrix &A)
    Definition matrixutils.hh:355
    \n-
    Matrix::size_type size_type
    Definition matrixutils.hh:343
    \n-
    BCRSMatrix< FieldMatrix< B, n, m >,TA > Matrix
    Definition matrixutils.hh:342
    \n-
    static size_type coldim(const Matrix &, size_type)
    Definition matrixutils.hh:350
    \n-
    static size_type rowdim(const Matrix &, size_type)
    Definition matrixutils.hh:370
    \n-
    static size_type coldim(const Matrix &)
    Definition matrixutils.hh:385
    \n-
    Matrix::size_type size_type
    Definition matrixutils.hh:368
    \n-
    FieldMatrix< K, n, m > Matrix
    Definition matrixutils.hh:367
    \n-
    static size_type coldim(const Matrix &, size_type)
    Definition matrixutils.hh:375
    \n-
    static size_type rowdim(const Matrix &)
    Definition matrixutils.hh:380
    \n-
    static size_type coldim(const MatrixType &A)
    Definition matrixutils.hh:412
    \n-
    static size_type rowdim(const MatrixType &A)
    Definition matrixutils.hh:407
    \n-
    static size_type rowdim(const MatrixType &, size_type)
    Definition matrixutils.hh:397
    \n-
    MatrixType::size_type size_type
    Definition matrixutils.hh:395
    \n-
    static size_type coldim(const MatrixType &, size_type)
    Definition matrixutils.hh:402
    \n-
    Dune::DynamicMatrix< T > MatrixType
    Definition matrixutils.hh:394
    \n-
    static size_type coldim(const ThisMatrix &A)
    Definition matrixutils.hh:439
    \n-
    static size_type rowdim(const ThisMatrix &A)
    Definition matrixutils.hh:434
    \n-
    Matrix< FieldMatrix< K, n, m >, TA > ThisMatrix
    Definition matrixutils.hh:421
    \n-
    static size_type coldim(const ThisMatrix &, size_type)
    Definition matrixutils.hh:429
    \n-
    static size_type rowdim(const ThisMatrix &, size_type)
    Definition matrixutils.hh:424
    \n-
    ThisMatrix::size_type size_type
    Definition matrixutils.hh:422
    \n-
    static size_type coldim(const Matrix &, size_type)
    Definition matrixutils.hh:456
    \n-
    Matrix::size_type size_type
    Definition matrixutils.hh:449
    \n-
    static size_type coldim(const Matrix &)
    Definition matrixutils.hh:466
    \n-
    static size_type rowdim(const Matrix &)
    Definition matrixutils.hh:461
    \n-
    DiagonalMatrix< K, n > Matrix
    Definition matrixutils.hh:448
    \n-
    static size_type rowdim(const Matrix &, size_type)
    Definition matrixutils.hh:451
    \n-
    static size_type coldim(const Matrix &)
    Definition matrixutils.hh:493
    \n-
    static size_type rowdim(const Matrix &, size_type)
    Definition matrixutils.hh:478
    \n-
    static size_type coldim(const Matrix &, size_type)
    Definition matrixutils.hh:483
    \n-
    Matrix::size_type size_type
    Definition matrixutils.hh:476
    \n-
    ScaledIdentityMatrix< K, n > Matrix
    Definition matrixutils.hh:475
    \n-
    static size_type rowdim(const Matrix &)
    Definition matrixutils.hh:488
    \n-
    Test whether a type is an ISTL Matrix.
    Definition matrixutils.hh:504
    \n-
    @ value
    True if T is an ISTL matrix.
    Definition matrixutils.hh:509
    \n-
    Definition matrixutils.hh:538
    \n-
    bool operator()(const T *l, const T *r)
    Definition matrixutils.hh:539
    \n-
    A multiple of the identity matrix of static size.
    Definition scaledidmatrix.hh:30
    \n-
    std::size_t size_type
    The type used for the index access and size operations.
    Definition scaledidmatrix.hh:43
    \n+
    Definition combinedfunctor.hh:17
    \n+
    static void apply(TT tuple, const T &t)
    Definition combinedfunctor.hh:19
    \n+
    static void apply(TT tuple, const T &t)
    Definition combinedfunctor.hh:29
    \n+
    Definition combinedfunctor.hh:36
    \n+
    CombinedFunctor(const T &tuple_)
    Definition combinedfunctor.hh:38
    \n+
    void operator()(const T1 &t)
    Definition combinedfunctor.hh:43
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,782 +1,82 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-matrixutils.hh\n+ * _\bp_\ba_\ba_\bm_\bg\n+combinedfunctor.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_MATRIXUTILS_HH\n-6#define DUNE_ISTL_MATRIXUTILS_HH\n+5#ifndef DUNE_AMG_COMBINEDFUNCTOR_HH\n+6#define DUNE_AMG_COMBINEDFUNCTOR_HH\n 7\n-8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14#include \n-15#include \n-16#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-17#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-18\n-19namespace _\bD_\bu_\bn_\be\n-20{\n-21\n-22#ifndef DOYXGEN\n-23 template\n-24 class BCRSMatrix;\n-25\n-26 template\n-_\b2_\b7 class _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx;\n-28\n-29 template\n-30 class _\bM_\ba_\bt_\br_\bi_\bx;\n-31#endif\n+8#include \n+9\n+10namespace _\bD_\bu_\bn_\be\n+11{\n+12 namespace Amg\n+13 {\n+14\n+15 template\n+_\b1_\b6 struct _\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br\n+17 {\n+18 template\n+_\b1_\b9 static void _\ba_\bp_\bp_\bl_\by(TT tuple, const T& t)\n+20 {\n+21 std::get(tuple) (t);\n+22 _\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b<_\bi_\b-_\b1_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(tuple, t);\n+23 }\n+24 };\n+25 template<>\n+_\b2_\b6 struct _\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br<0>\n+27 {\n+28 template\n+_\b2_\b9 static void _\ba_\bp_\bp_\bl_\by([[maybe_unused]] TT tuple, [[maybe_unused]] const T& t)\n+30 {}\n+31 };\n 32\n-46 template\n-_\b4_\b7 struct _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt\n-48 {\n-_\b5_\b3 static void _\bc_\bh_\be_\bc_\bk([[maybe_unused]] const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt)\n-54 {\n-55#ifdef DUNE_ISTL_WITH_CHECKING\n-56 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Row;\n-57 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Entry;\n-58 for(Row row = _\bm_\ba_\bt.begin(); row!=_\bm_\ba_\bt.end(); ++row) {\n-59 Entry diagonal = row->find(row.index());\n-60 if(diagonal==row->end())\n-61 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Missing diagonal value in row \"<_\b:_\b:_\bc_\bh_\be_\bc_\bk(m);\n-66 }\n-67 }\n-68#endif\n-69 }\n-70 };\n-71\n-72 template\n-_\b7_\b3 struct _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt<_\bM_\ba_\bt_\br_\bi_\bx,0,l>\n-74 {\n-_\b7_\b5 static void _\bc_\bh_\be_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt)\n-76 {\n-77 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Row;\n-78 for(Row row = _\bm_\ba_\bt.begin(); row!=_\bm_\ba_\bt.end(); ++row) {\n-79 if(row->find(row.index())==row->end())\n-80 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Missing diagonal value in row \"<\n-87 class MultiTypeBlockMatrix;\n-88\n-89 template\n-_\b9_\b0 struct _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx,\n-91 blocklevel,l>\n-92 {\n-_\b9_\b3 typedef _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx _\bM_\ba_\bt_\br_\bi_\bx;\n-94\n-_\b9_\b9 static void _\bc_\bh_\be_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& /* mat */)\n-100 {\n-101#ifdef DUNE_ISTL_WITH_CHECKING\n-102 // TODO Implement check\n-103#endif\n-104 }\n-105 };\n-106\n-118 template\n-_\b1_\b1_\b9 inline auto _\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(const M&,\n-120 [[maybe_unused]] typename std::enable_if_t::value>*\n-sfinae = nullptr)\n-121 {\n-122 return 1;\n-123 }\n-124\n-125 template\n-_\b1_\b2_\b6 inline auto _\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(const M& matrix,\n-127 [[maybe_unused]] typename std::enable_if_t::value>*\n-sfinae = nullptr)\n-128 {\n-129 typename M::size_type nonZeros = 0;\n-130 for(auto&& row : matrix)\n-131 for(auto&& entry : row)\n-132 nonZeros += _\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(entry);\n-133 return nonZeros;\n-134 }\n-135\n-136 /*\n-137 template\n-138 struct ProcessOnFieldsOfMatrix\n-139 */\n-140\n-142 namespace\n-143 {\n-144 struct CompPair {\n-145 template\n-146 bool operator()(const std::pair& p1, const std::pair& p2) const\n-147 {\n-148 return p1.first\n-_\b1_\b5_\b4 void _\bp_\br_\bi_\bn_\bt_\bG_\bl_\bo_\bb_\ba_\bl_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx(const M& _\bm_\ba_\bt, C& ooc, std::ostream& os)\n-155 {\n-156 typedef typename C::ParallelIndexSet::const_iterator IIter;\n-157 typedef typename C::OwnerSet OwnerSet;\n-158 typedef typename C::ParallelIndexSet::GlobalIndex GlobalIndex;\n-159\n-160 GlobalIndex gmax=0;\n-161\n-162 for(IIter idx=ooc.indexSet().begin(), eidx=ooc.indexSet().end();\n-163 idx!=eidx; ++idx)\n-164 gmax=std::max(gmax,idx->global());\n-165\n-166 gmax=ooc.communicator().max(gmax);\n-167 ooc.buildGlobalLookup();\n-168\n-169 for(IIter idx=ooc.indexSet().begin(), eidx=ooc.indexSet().end();\n-170 idx!=eidx; ++idx) {\n-171 if(OwnerSet::contains(idx->local().attribute()))\n-172 {\n-173 typedef typename M::block_type Block;\n-174\n-175 std::set,CompPair> entries;\n-176\n-177 // sort rows\n-178 typedef typename M::ConstColIterator CIter;\n-179 for(CIter c=_\bm_\ba_\bt[idx->local()]._\bb_\be_\bg_\bi_\bn(), cend=_\bm_\ba_\bt[idx->local()]._\be_\bn_\bd();\n-180 c!=cend; ++c) {\n-181 const typename C::ParallelIndexSet::IndexPair* pair\n-182 =ooc.globalLookup().pair(c.index());\n-183 assert(pair);\n-184 entries.insert(std::make_pair(pair->global(), *c));\n-185 }\n-186\n-187 //wait until its the rows turn.\n-188 GlobalIndex rowidx = idx->global();\n-189 GlobalIndex cur=std::numeric_limits::max();\n-190 while(cur!=rowidx)\n-191 cur=ooc.communicator().min(rowidx);\n-192\n-193 // print rows\n-194 typedef typename std::set,CompPair>::iterator\n-SIter;\n-195 for(SIter s=entries.begin(), send=entries.end(); s!=send; ++s)\n-196 os<global()<<\" \"<first<<\" \"<second<::max();\n-205 while(cur!=ooc.communicator().min(cur)) ;\n-206 }\n-207\n-208 // Default implementation for scalar types\n-209 template\n-_\b2_\b1_\b0 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n-211 {\n-212 static_assert(IsNumber::value, \"MatrixDimension is not implemented for\n-this type!\");\n-213\n-_\b2_\b1_\b4 static auto _\br_\bo_\bw_\bd_\bi_\bm(const M& A)\n-215 {\n-216 return 1;\n-217 }\n-218\n-_\b2_\b1_\b9 static auto _\bc_\bo_\bl_\bd_\bi_\bm(const M& A)\n-220 {\n-221 return 1;\n-222 }\n-223 };\n-224\n-225 // Default implementation for scalar types\n-226 template\n-_\b2_\b2_\b7 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bM_\ba_\bt_\br_\bi_\bx >\n-228 {\n-_\b2_\b2_\b9 using _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be = typename _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-_\b2_\b3_\b0 using _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be = typename _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-231\n-_\b2_\b3_\b2 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>& A, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n-233 {\n-234 return _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(A[i][0]);\n-235 }\n-236\n-_\b2_\b3_\b7 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>& A, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be c)\n-238 {\n-239 return _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(A[0][c]);\n-240 }\n-241\n-_\b2_\b4_\b2 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>& A)\n-243 {\n-244 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nn=0;\n-245 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i& A)\n-251 {\n-252 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nn=0;\n-253 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b2_\b6_\b1 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n-262 {\n-_\b2_\b6_\b3 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b2_\b6_\b4 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-_\b2_\b6_\b5 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-266\n-_\b2_\b6_\b7 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& A, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n-268 {\n-269 const B* row = A.r[i].getptr();\n-270 if(row)\n-271 return _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(*row);\n-272 else\n-273 return 0;\n-274 }\n-275\n-_\b2_\b7_\b6 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& A, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be c)\n-277 {\n-278 // find an entry in column c\n-279 if (A.nnz_ > 0)\n-280 {\n-281 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be k=0; k_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(A.a[k]);\n-284 }\n-285 }\n-286 }\n-287 else\n-288 {\n-289 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(a[k]);\n-296 }\n-297 }\n-298 }\n-299\n-300 // not found\n-301 return 0;\n-302 }\n-303\n-_\b3_\b0_\b4 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& A){\n-305 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nn=0;\n-306 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i coldims(A.M(),\n-319 std::numeric_limits::max());\n-320\n-321 for (ConstRowIterator row=A.begin(); row!=A.end(); ++row)\n-322 for (ConstColIterator _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl!=row->end(); ++_\bc_\bo_\bl)\n-323 // only compute blocksizes we don't already have\n-324 if (coldims[_\bc_\bo_\bl.index()]==std::numeric_limits::max())\n-325 coldims[_\bc_\bo_\bl.index()] = _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(*_\bc_\bo_\bl);\n-326\n-327 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be sum = 0;\n-328 for (typename std::vector::iterator it=coldims.begin();\n-329 it!=coldims.end(); ++it)\n-330 // skip rows for which no coldim could be determined\n-331 if ((*it)>=0)\n-332 sum += *it;\n-333\n-334 return sum;\n-335 }\n-336 };\n-337\n-338\n-339 template\n-_\b3_\b4_\b0 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx ,TA> >\n-341 {\n-_\b3_\b4_\b2 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bn_\b,_\bm_\b> ,TA> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b3_\b4_\b3 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-344\n-_\b3_\b4_\b5 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*i*/)\n-346 {\n-347 return n;\n-348 }\n-349\n-_\b3_\b5_\b0 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*c*/)\n-351 {\n-352 return m;\n-353 }\n-354\n-_\b3_\b5_\b5 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& A) {\n-356 return A.N()*n;\n-357 }\n-358\n-_\b3_\b5_\b9 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& A) {\n-360 return A.M()*m;\n-361 }\n-362 };\n-363\n-364 template\n-_\b3_\b6_\b5 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx >\n-366 {\n-_\b3_\b6_\b7 typedef _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b,_\bm_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b3_\b6_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-369\n-_\b3_\b7_\b0 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n-371 {\n-372 return 1;\n-373 }\n-374\n-_\b3_\b7_\b5 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n-376 {\n-377 return 1;\n-378 }\n-379\n-_\b3_\b8_\b0 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n-381 {\n-382 return n;\n-383 }\n-384\n-_\b3_\b8_\b5 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n-386 {\n-387 return m;\n-388 }\n-389 };\n-390\n-391 template \n-_\b3_\b9_\b2 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bD_\bu_\bn_\be::DynamicMatrix >\n-393 {\n-_\b3_\b9_\b4 typedef Dune::DynamicMatrix _\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be;\n-_\b3_\b9_\b5 typedef typename MatrixType::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-396\n-_\b3_\b9_\b7 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n-398 {\n-399 return 1;\n-400 }\n-401\n-_\b4_\b0_\b2 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n-403 {\n-404 return 1;\n-405 }\n-406\n-_\b4_\b0_\b7 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be& A)\n-408 {\n-409 return A.N();\n-410 }\n-411\n-_\b4_\b1_\b2 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be& A)\n-413 {\n-414 return A.M();\n-415 }\n-416 };\n-417\n-418 template\n-_\b4_\b1_\b9 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx, TA> >\n-420 {\n-_\b4_\b2_\b1 typedef _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b,_\bm_\b>, TA> _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx;\n-_\b4_\b2_\b2 typedef typename _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-423\n-_\b4_\b2_\b4 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n-425 {\n-426 return n;\n-427 }\n-428\n-_\b4_\b2_\b9 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n-430 {\n-431 return m;\n-432 }\n-433\n-_\b4_\b3_\b4 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx& A)\n-435 {\n-436 return A.N()*n;\n-437 }\n-438\n-_\b4_\b3_\b9 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx& A)\n-440 {\n-441 return A.M()*m;\n-442 }\n-443 };\n-444\n-445 template\n-_\b4_\b4_\b6 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn >\n-447 {\n-_\b4_\b4_\b8 typedef DiagonalMatrix _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b4_\b4_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-450\n-_\b4_\b5_\b1 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n-452 {\n-453 return 1;\n-454 }\n-455\n-_\b4_\b5_\b6 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n-457 {\n-458 return 1;\n-459 }\n-460\n-_\b4_\b6_\b1 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n-462 {\n-463 return n;\n-464 }\n-465\n-_\b4_\b6_\b6 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n-467 {\n-468 return n;\n-469 }\n-470 };\n-471\n-472 template\n-_\b4_\b7_\b3 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx >\n-474 {\n-_\b4_\b7_\b5 typedef _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b4_\b7_\b6 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-477\n-_\b4_\b7_\b8 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n-479 {\n-480 return 1;\n-481 }\n-482\n-_\b4_\b8_\b3 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n-484 {\n-485 return 1;\n-486 }\n-487\n-_\b4_\b8_\b8 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n-489 {\n-490 return n;\n-491 }\n-492\n-_\b4_\b9_\b3 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n-494 {\n-495 return n;\n-496 }\n-497 };\n-498\n-502 template\n-_\b5_\b0_\b3 struct _\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx\n-504 {\n-505 enum {\n-509 _\bv_\ba_\bl_\bu_\be = false\n-_\b5_\b1_\b0 };\n-511 };\n-512\n-513 template\n-_\b5_\b1_\b4 struct _\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx >\n-515 {\n-516 enum {\n-520 _\bv_\ba_\bl_\bu_\be = true\n-_\b5_\b2_\b1 };\n-522 };\n-523\n-524\n-525 template\n-_\b5_\b2_\b6 struct _\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n-527 {\n-528 enum {\n-532 _\bv_\ba_\bl_\bu_\be = true\n-_\b5_\b3_\b3 };\n-534 };\n-535\n-536 template\n-_\b5_\b3_\b7 struct _\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be\n-538 {\n-_\b5_\b3_\b9 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T* l, const T* r)\n-540 {\n-541 return *l < *r;\n-542 }\n-543 };\n-544\n-545}\n-546#endif\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-This file implements a quadratic matrix of fixed size which is a multiple of\n-the identity.\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs\n-auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::\n-value > *sfinae=nullptr)\n-Get the number of nonzero fields in the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:119\n+33 template\n+_\b3_\b4 class _\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br :\n+35 public T\n+36 {\n+37 public:\n+_\b3_\b8 _\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(const T& tuple_)\n+39 : T(tuple_)\n+40 {}\n+41\n+42 template\n+_\b4_\b3 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T1& t)\n+44 {\n+45 _\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b<_\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b__\bs_\bi_\bz_\be_\b<_\bT_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be>::apply(*this, t);\n+46 }\n+47 };\n+48\n+49\n+50 } //namespace Amg\n+51} // namespace Dune\n+52#endif\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bG_\bl_\bo_\bb_\ba_\bl_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx\n-void printGlobalSparseMatrix(const M &mat, C &ooc, std::ostream &os)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:154\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static auto coldim(const M &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:219\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static auto rowdim(const M &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:214\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-The type for the index access and the size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::ConstIterator ConstColIterator\n-Const iterator to the entries of a row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:741\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-B block_type\n-export the type representing the components\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:491\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator access to matrix rows\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:579\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n-A Matrix class to support different block types.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:404\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-A generic dynamic dense matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-Type for indices and sizes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:577\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-RowIterator end()\n-Get iterator to one beyond last row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:620\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-RowIterator begin()\n-Get iterator to first row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:614\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::const_iterator ConstColIterator\n-Const iterator for the entries of each row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-T block_type\n-Export the type representing the components.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:568\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt\n-Check whether the a matrix has diagonal values on blocklevel recursion levels.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b:_\b:_\bc_\bh_\be_\bc_\bk\n-static void check(const Matrix &mat)\n-Check whether the a matrix has diagonal values on blocklevel recursion levels.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\b0_\b,_\b _\bl_\b _\b>_\b:_\b:_\bc_\bh_\be_\bc_\bk\n-static void check(const Matrix &mat)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b,_\b _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b,\n-_\bl_\b _\b>_\b:_\b:_\bc_\bh_\be_\bc_\bk\n-static void check(const Matrix &)\n-Check whether the a matrix has diagonal values on blocklevel recursion levels.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b,_\b _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b,\n-_\bl_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-MultiTypeBlockMatrix< T1, Args... > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:93\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix< B, TA > &A, size_type i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:232\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix< B, TA > &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:250\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix< B, TA > &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:242\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-typename Matrix< B, TA >::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:230\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix< B, TA > &A, size_type c)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:237\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-typename Matrix< B, TA >::block_type block_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix< B, TA > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:263\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:311\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-Matrix::block_type block_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:264\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix &A, size_type c)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:276\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:265\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix &A, size_type i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:267\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:304\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:359\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:345\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:355\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:343\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix< FieldMatrix< B, n, m >,TA > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:342\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:350\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:370\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:385\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:368\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-FieldMatrix< K, n, m > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:367\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:375\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:380\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const MatrixType &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:412\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const MatrixType &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:407\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const MatrixType &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:397\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-MatrixType::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const MatrixType &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:402\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be\n-Dune::DynamicMatrix< T > MatrixType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:394\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const ThisMatrix &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:439\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const ThisMatrix &A)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:434\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx\n-Matrix< FieldMatrix< K, n, m >, TA > ThisMatrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:421\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const ThisMatrix &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:429\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const ThisMatrix &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:424\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-ThisMatrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:422\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:456\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:449\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:461\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-DiagonalMatrix< K, n > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:448\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:451\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:493\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:478\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n-static size_type coldim(const Matrix &, size_type)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:483\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:476\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-ScaledIdentityMatrix< K, n > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:475\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-static size_type rowdim(const Matrix &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:488\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx\n-Test whether a type is an ISTL Matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:504\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-@ value\n-True if T is an ISTL matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:509\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:538\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-bool operator()(const T *l, const T *r)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:539\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx\n-A multiple of the identity matrix of static size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-std::size_t size_type\n-The type used for the index access and size operations.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:17\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+static void apply(TT tuple, const T &t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\b0_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+static void apply(TT tuple, const T &t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:29\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br\n+CombinedFunctor(const T &tuple_)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:38\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const T1 &t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:43\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00062.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00062.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: cholmod.hh File Reference\n+dune-istl: globalaggregates.hh File Reference\n \n \n \n \n \n \n \n@@ -65,23 +65,61 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n-
    cholmod.hh File Reference
    \n+ \n+ \n
    \n
    \n \n+

    Provdes class for identifying aggregates globally. \n+More...

    \n+
    #include "aggregates.hh"
    \n+#include "pinfo.hh"
    \n+#include <dune/common/parallel/indexset.hh>
    \n+
    \n

    Go to the source code of this file.

    \n-
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    struct  Dune::Amg::GlobalAggregatesMap< T, TI >
     
    class  Dune::Amg::GlobalAggregatesMap< T, TI >::Proxy
     
    struct  Dune::Amg::AggregatesGatherScatter< T, TI >
     
    struct  Dune::Amg::AggregatesPublisher< T, O, I >
     
    struct  Dune::Amg::AggregatesPublisher< T, O, OwnerOverlapCopyCommunication< T1, T2 > >
     Utility class for publishing the aggregate number of the DOFs in the overlap to other processors and convert them to local indices. More...
     
    struct  Dune::Amg::AggregatesPublisher< T, O, SequentialInformation >
     
    struct  Dune::CommPolicy< Amg::GlobalAggregatesMap< T, TI > >
     
    \n+\n+\n+\n+\n+\n+

    \n+Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+

    Detailed Description

    \n+

    Provdes class for identifying aggregates globally.

    \n+
    Author
    Markus Blatt
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,10 +1,45 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-cholmod.hh File Reference\n+ * _\bp_\ba_\ba_\bm_\bg\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+globalaggregates.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n+\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n+Provdes class for identifying aggregates globally. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n+#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b:_\b:_\bP_\br_\bo_\bx_\by\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bI_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<\n+ _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>\n+\u00a0 Utility class for publishing the aggregate number of the DOFs in the\n+ overlap to other processors and convert them to local indices. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b _\b>\n+\u00a0\n+N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n+namespace \u00a0 _\bD_\bu_\bn_\be\n+\u00a0\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Provdes class for identifying aggregates globally.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00062_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00062_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: cholmod.hh Source File\n+dune-istl: globalaggregates.hh Source File\n \n \n \n \n \n \n \n@@ -70,382 +70,343 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n-
    cholmod.hh
    \n+
    globalaggregates.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3#pragma once
    \n-
    4
    \n-
    5#if HAVE_SUITESPARSE_CHOLMOD
    \n-
    6
    \n-
    7#include <dune/common/fmatrix.hh>
    \n-
    8#include <dune/common/fvector.hh>
    \n-\n-
    10#include <dune/istl/bvector.hh>
    \n-
    11#include<dune/istl/solver.hh>
    \n-\n-
    13#include <dune/istl/foreach.hh>
    \n-
    14
    \n-
    15#include <vector>
    \n-
    16#include <memory>
    \n-
    17
    \n-
    18#include <cholmod.h>
    \n-
    19
    \n-
    20namespace Dune {
    \n+
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n+
    4// vi: set et ts=4 sw=2 sts=2:
    \n+
    5#ifndef DUNE_GLOBALAGGREGATES_HH
    \n+
    6#define DUNE_GLOBALAGGREGATES_HH
    \n+
    7
    \n+
    18#include "aggregates.hh"
    \n+
    19#include "pinfo.hh"
    \n+
    20#include <dune/common/parallel/indexset.hh>
    \n
    21
    \n-
    22namespace Impl{
    \n-
    23
    \n-
    32 struct NoIgnore
    \n-
    33 {
    \n-
    34 const NoIgnore& operator[](std::size_t) const { return *this; }
    \n-
    35 explicit operator bool() const { return false; }
    \n-
    36 static constexpr std::size_t size() { return 0; }
    \n-
    37
    \n-
    38 };
    \n-
    39
    \n+
    22namespace Dune
    \n+
    23{
    \n+
    24 namespace Amg
    \n+
    25 {
    \n+
    26
    \n+
    27 template<typename T, typename TI>
    \n+
    \n+\n+
    29 {
    \n+
    30 public:
    \n+
    31 typedef TI ParallelIndexSet;
    \n+
    32
    \n+
    33 typedef typename ParallelIndexSet::GlobalIndex GlobalIndex;
    \n+
    34
    \n+
    35 typedef typename ParallelIndexSet::GlobalIndex IndexedType;
    \n+
    36
    \n+
    37 typedef typename ParallelIndexSet::LocalIndex LocalIndex;
    \n+
    38
    \n+
    39 typedef T Vertex;
    \n
    40
    \n-
    41 template<class BlockedVector, class FlatVector>
    \n-
    42 void copyToFlatVector(const BlockedVector& blockedVector, FlatVector& flatVector)
    \n-
    43 {
    \n-
    44 // traverse the vector once just to compute the size
    \n-
    45 std::size_t len = flatVectorForEach(blockedVector, [&](auto&&, auto...){});
    \n-
    46 flatVector.resize(len);
    \n-
    47
    \n-
    48 flatVectorForEach(blockedVector, [&](auto&& entry, auto offset){
    \n-
    49 flatVector[offset] = entry;
    \n-
    50 });
    \n-
    51 }
    \n-
    52
    \n-
    53 // special (dummy) case for NoIgnore
    \n-
    54 template<class FlatVector>
    \n-
    55 void copyToFlatVector(const NoIgnore&, FlatVector&)
    \n-
    56 {
    \n-
    57 // just do nothing
    \n-
    58 return;
    \n-
    59 }
    \n-
    60
    \n-
    61 template<class FlatVector, class BlockedVector>
    \n-
    62 void copyToBlockedVector(const FlatVector& flatVector, BlockedVector& blockedVector)
    \n-
    63 {
    \n-
    64 flatVectorForEach(blockedVector, [&](auto& entry, auto offset){
    \n-
    65 entry = flatVector[offset];
    \n-
    66 });
    \n-
    67 }
    \n+
    \n+\n+
    42 const GlobalLookupIndexSet<ParallelIndexSet>& indexset)
    \n+
    43 : aggregates_(aggregates), indexset_(indexset)
    \n+
    44 {}
    \n+
    \n+
    45
    \n+
    \n+
    46 inline const GlobalIndex& operator[](std::size_t index) const
    \n+
    47 {
    \n+
    48 const Vertex& aggregate = aggregates_[index];
    \n+
    49 if(aggregate >= AggregatesMap<Vertex>::ISOLATED) {
    \n+
    50 assert(aggregate != AggregatesMap<Vertex>::UNAGGREGATED);
    \n+
    51 return isolatedMarker;
    \n+
    52 }else{
    \n+
    53 const Dune::IndexPair<GlobalIndex,LocalIndex >* pair = indexset_.pair(aggregate);
    \n+
    54 assert(pair!=0);
    \n+
    55 return pair->global();
    \n+
    56 }
    \n+
    57 }
    \n+
    \n+
    58
    \n+
    59
    \n+
    \n+
    60 inline GlobalIndex& get(std::size_t index)
    \n+
    61 {
    \n+
    62 const Vertex& aggregate = aggregates_[index];
    \n+
    63 assert(aggregate < AggregatesMap<Vertex>::ISOLATED);
    \n+
    64 const Dune::IndexPair<GlobalIndex,LocalIndex >* pair = indexset_.pair(aggregate);
    \n+
    65 assert(pair!=0);
    \n+
    66 return const_cast<GlobalIndex&>(pair->global());
    \n+
    67 }
    \n+
    \n
    68
    \n-
    69
    \n-
    70} //namespace Impl
    \n-
    71
    \n-
    76template<class Vector>
    \n-
    77class Cholmod : public InverseOperator<Vector, Vector>
    \n-
    78{
    \n-
    79public:
    \n-
    80
    \n-
    86 Cholmod()
    \n-
    87 {
    \n-
    88 cholmod_start(&c_);
    \n-
    89 }
    \n+
    \n+
    69 class Proxy
    \n+
    70 {
    \n+
    71 public:
    \n+
    \n+
    72 Proxy(const GlobalLookupIndexSet<ParallelIndexSet>& indexset, Vertex& aggregate)
    \n+
    73 : indexset_(&indexset), aggregate_(&aggregate)
    \n+
    74 {}
    \n+
    \n+
    75
    \n+
    \n+
    76 Proxy& operator=(const GlobalIndex& global)
    \n+
    77 {
    \n+
    78 if(global==isolatedMarker)
    \n+\n+
    80 else{
    \n+
    81 //assert(global < AggregatesMap<Vertex>::ISOLATED);
    \n+
    82 *aggregate_ = indexset_->operator[](global).local();
    \n+
    83 }
    \n+
    84 return *this;
    \n+
    85 }
    \n+
    \n+
    86 private:
    \n+
    87 const GlobalLookupIndexSet<ParallelIndexSet>* indexset_;
    \n+
    88 Vertex* aggregate_;
    \n+
    89 };
    \n+
    \n
    90
    \n-
    96 ~Cholmod()
    \n-
    97 {
    \n-
    98 if (L_)
    \n-
    99 cholmod_free_factor(&L_, &c_);
    \n-
    100 cholmod_finish(&c_);
    \n-
    101 }
    \n-
    102
    \n-
    103 // forbid copying to avoid freeing memory twice
    \n-
    104 Cholmod(const Cholmod&) = delete;
    \n-
    105 Cholmod& operator=(const Cholmod&) = delete;
    \n-
    106
    \n+
    \n+
    91 inline Proxy operator[](std::size_t index)
    \n+
    92 {
    \n+
    93 return Proxy(indexset_, aggregates_[index]);
    \n+
    94 }
    \n+
    \n+
    95
    \n+
    \n+
    96 inline void put(const GlobalIndex& global, size_t i)
    \n+
    97 {
    \n+
    98 aggregates_[i]=indexset_[global].local();
    \n+
    99
    \n+
    100 }
    \n+
    \n+
    101
    \n+
    102 private:
    \n+
    103 AggregatesMap<Vertex>& aggregates_;
    \n+
    104 const GlobalLookupIndexSet<ParallelIndexSet>& indexset_;
    \n+
    105 static const GlobalIndex isolatedMarker;
    \n+
    106 };
    \n+
    \n
    107
    \n-
    110 void apply (Vector& x, Vector& b, [[maybe_unused]] double reduction, InverseOperatorResult& res)
    \n-
    111 {
    \n-
    112 apply(x,b,res);
    \n-
    113 }
    \n-
    114
    \n-
    120 void apply(Vector& x, Vector& b, InverseOperatorResult& res)
    \n-
    121 {
    \n-
    122 // do nothing if N=0
    \n-
    123 if ( nIsZero_ )
    \n-
    124 {
    \n-
    125 return;
    \n-
    126 }
    \n-
    127
    \n-
    128 if (x.size() != b.size())
    \n-
    129 DUNE_THROW(Exception, "Error in apply(): sizes of x and b do not match!");
    \n-
    130
    \n-
    131 // cast to double array
    \n-
    132 auto b2 = std::make_unique<double[]>(L_->n);
    \n-
    133 auto x2 = std::make_unique<double[]>(L_->n);
    \n+
    108 template<typename T, typename TI>
    \n+
    109 const typename TI::GlobalIndex GlobalAggregatesMap<T,TI>::isolatedMarker =
    \n+
    110 std::numeric_limits<typename TI::GlobalIndex>::max();
    \n+
    111
    \n+
    112 template<typename T, typename TI>
    \n+
    \n+\n+
    114 {
    \n+\n+
    116 typedef typename ParallelIndexSet::GlobalIndex GlobalIndex;
    \n+
    117
    \n+
    \n+
    118 static const GlobalIndex& gather(const GlobalAggregatesMap<T,TI>& ga, size_t i)
    \n+
    119 {
    \n+
    120 return ga[i];
    \n+
    121 }
    \n+
    \n+
    122
    \n+
    \n+
    123 static void scatter(GlobalAggregatesMap<T,TI>& ga, GlobalIndex global, size_t i)
    \n+
    124 {
    \n+
    125 ga[i]=global;
    \n+
    126 }
    \n+
    \n+
    127 };
    \n+
    \n+
    128
    \n+
    129 template<typename T, typename O, typename I>
    \n+
    \n+\n+
    131 {};
    \n+
    \n+
    132
    \n+
    133#if HAVE_MPI
    \n
    134
    \n-
    135 // copy to cholmod
    \n-
    136 auto bp = b2.get();
    \n-
    137
    \n-
    138 flatVectorForEach(b, [&](auto&& entry, auto&& flatIndex){
    \n-
    139 if ( subIndices_.empty() )
    \n-
    140 bp[ flatIndex ] = entry;
    \n-
    141 else
    \n-
    142 if( subIndices_[ flatIndex ] != std::numeric_limits<std::size_t>::max() )
    \n-
    143 bp[ subIndices_[ flatIndex ] ] = entry;
    \n-
    144 });
    \n-
    145
    \n-
    146 // create a cholmod dense object
    \n-
    147 auto b3 = make_cholmod_dense(cholmod_allocate_dense(L_->n, 1, L_->n, CHOLMOD_REAL, &c_), &c_);
    \n-
    148 // cast because void-ptr
    \n-
    149 auto b4 = static_cast<double*>(b3->x);
    \n-
    150 std::copy(b2.get(), b2.get() + L_->n, b4);
    \n-
    151
    \n-
    152 // solve for a cholmod x object
    \n-
    153 auto x3 = make_cholmod_dense(cholmod_solve(CHOLMOD_A, L_, b3.get(), &c_), &c_);
    \n-
    154 // cast because void-ptr
    \n-
    155 auto xp = static_cast<double*>(x3->x);
    \n-
    156
    \n-
    157 // copy into x
    \n-
    158 flatVectorForEach(x, [&](auto&& entry, auto&& flatIndex){
    \n-
    159 if ( subIndices_.empty() )
    \n-
    160 entry = xp[ flatIndex ];
    \n-
    161 else
    \n-
    162 if( subIndices_[ flatIndex ] != std::numeric_limits<std::size_t>::max() )
    \n-
    163 entry = xp[ subIndices_[ flatIndex ] ];
    \n-
    164 });
    \n-
    165
    \n-
    166 // statistics for a direct solver
    \n-
    167 res.iterations = 1;
    \n-
    168 res.converged = true;
    \n-
    169 }
    \n-
    170
    \n-
    171
    \n-
    177 template<class Matrix>
    \n-
    178 void setMatrix(const Matrix& matrix)
    \n-
    179 {
    \n-
    180 const Impl::NoIgnore* noIgnore = nullptr;
    \n-
    181 setMatrix(matrix, noIgnore);
    \n-
    182 }
    \n-
    183
    \n-
    198 template<class Matrix, class Ignore>
    \n-
    199 void setMatrix(const Matrix& matrix, const Ignore* ignore)
    \n-
    200 {
    \n-
    201 // count the number of entries and diagonal entries
    \n-
    202 int nonZeros = 0;
    \n-
    203 int numberOfIgnoredDofs = 0;
    \n-
    204
    \n-
    205
    \n-
    206 auto [flatRows,flatCols] = flatMatrixForEach( matrix, [&](auto&& /*entry*/, auto&& flatRowIndex, auto&& flatColIndex){
    \n-
    207 if( flatRowIndex <= flatColIndex )
    \n-
    208 nonZeros++;
    \n-
    209 });
    \n-
    210
    \n-
    211 std::vector<bool> flatIgnore;
    \n-
    212
    \n-
    213 if ( ignore )
    \n-
    214 {
    \n-
    215 Impl::copyToFlatVector(*ignore,flatIgnore);
    \n-
    216 numberOfIgnoredDofs = std::count(flatIgnore.begin(),flatIgnore.end(),true);
    \n-
    217 }
    \n+
    135#endif
    \n+
    136
    \n+
    137 } // namespace Amg
    \n+
    138
    \n+
    139#if HAVE_MPI
    \n+
    140 // forward declaration
    \n+
    141 template<class T1, class T2>
    \n+\n+
    143#endif
    \n+
    144
    \n+
    145 namespace Amg
    \n+
    146 {
    \n+
    147
    \n+
    148#if HAVE_MPI
    \n+
    158 template<typename T, typename O, typename T1, typename T2>
    \n+
    \n+\n+
    160 {
    \n+
    161 typedef T Vertex;
    \n+
    162 typedef O OverlapFlags;
    \n+\n+\n+\n+
    166
    \n+
    \n+
    167 static void publish(AggregatesMap<Vertex>& aggregates,
    \n+
    168 ParallelInformation& pinfo,
    \n+
    169 const GlobalLookupIndexSet& globalLookup)
    \n+
    170 {
    \n+\n+
    172 GlobalMap gmap(aggregates, globalLookup);
    \n+
    173 pinfo.copyOwnerToAll(gmap,gmap);
    \n+
    174 // communication only needed for ALU
    \n+
    175 // (ghosts with same global id as owners on the same process)
    \n+
    176 if (SolverCategory::category(pinfo) == static_cast<int>(SolverCategory::nonoverlapping))
    \n+
    177 pinfo.copyCopyToAll(gmap,gmap);
    \n+
    178
    \n+
    179 typedef typename ParallelInformation::RemoteIndices::const_iterator Lists;
    \n+
    180 Lists lists = pinfo.remoteIndices().find(pinfo.communicator().rank());
    \n+
    181 if(lists!=pinfo.remoteIndices().end()) {
    \n+
    182
    \n+
    183 // For periodic boundary conditions we must renumber
    \n+
    184 // the aggregates of vertices in the overlap whose owners are
    \n+
    185 // on the same process
    \n+
    186 Vertex maxAggregate =0;
    \n+
    187 typedef typename AggregatesMap<Vertex>::const_iterator Iter;
    \n+
    188 for(Iter i=aggregates.begin(), end=aggregates.end(); i!=end; ++i)
    \n+
    189 maxAggregate = std::max(maxAggregate, *i);
    \n+
    190
    \n+
    191 // Compute new mapping of aggregates in the overlap that we also own
    \n+
    192 std::map<Vertex,Vertex> newMapping;
    \n+
    193
    \n+
    194 // insert all elements into map
    \n+
    195 typedef typename ParallelInformation::RemoteIndices::RemoteIndexList
    \n+
    196 ::const_iterator RIter;
    \n+
    197 for(RIter ri=lists->second.first->begin(), rend = lists->second.first->end();
    \n+
    198 ri!=rend; ++ri)
    \n+
    199 if(O::contains(ri->localIndexPair().local().attribute()))
    \n+
    200 newMapping.insert(std::make_pair(aggregates[ri->localIndexPair().local()],
    \n+
    201 maxAggregate));
    \n+
    202 // renumber
    \n+
    203 typedef typename std::map<Vertex,Vertex>::iterator MIter;
    \n+
    204 for(MIter mi=newMapping.begin(), mend=newMapping.end();
    \n+
    205 mi != mend; ++mi)
    \n+
    206 mi->second=++maxAggregate;
    \n+
    207
    \n+
    208
    \n+
    209 for(RIter ri=lists->second.first->begin(), rend = lists->second.first->end();
    \n+
    210 ri!=rend; ++ri)
    \n+
    211 if(O::contains(ri->localIndexPair().local().attribute()))
    \n+
    212 aggregates[ri->localIndexPair().local()] =
    \n+
    213 newMapping[aggregates[ri->localIndexPair().local()]];
    \n+
    214 }
    \n+
    215 }
    \n+
    \n+
    216 };
    \n+
    \n+
    217#endif
    \n
    218
    \n-
    219 // Total number of rows
    \n-
    220 int N = flatRows - numberOfIgnoredDofs;
    \n-
    221
    \n-
    222 nIsZero_ = (N <= 0);
    \n-
    223
    \n-
    224 if ( nIsZero_ )
    \n-
    225 {
    \n-
    226 return;
    \n-
    227 }
    \n-
    228
    \n-
    229 /*
    \n-
    230 * CHOLMOD uses compressed-column sparse matrices, but for symmetric
    \n-
    231 * matrices this is the same as the compressed-row sparse matrix used
    \n-
    232 * by DUNE. So we can just store M\u1d40 instead of M (as M = M\u1d40).
    \n-
    233 */
    \n-
    234 const auto deleter = [c = &this->c_](auto* p) {
    \n-
    235 cholmod_free_sparse(&p, c);
    \n-
    236 };
    \n-
    237 auto M = std::unique_ptr<cholmod_sparse, decltype(deleter)>(
    \n-
    238 cholmod_allocate_sparse(N, // # rows
    \n-
    239 N, // # cols
    \n-
    240 nonZeros, // # of nonzeroes
    \n-
    241 1, // indices are sorted ( 1 = true)
    \n-
    242 1, // matrix is "packed" ( 1 = true)
    \n-
    243 -1, // stype of matrix ( -1 = consider the lower part only )
    \n-
    244 CHOLMOD_REAL, // xtype of matrix ( CHOLMOD_REAL = single array, no complex numbers)
    \n-
    245 &c_ // cholmod_common ptr
    \n-
    246 ), deleter);
    \n-
    247
    \n-
    248 // copy the data of BCRS matrix to Cholmod Sparse matrix
    \n-
    249 int* Ap = static_cast<int*>(M->p);
    \n-
    250 int* Ai = static_cast<int*>(M->i);
    \n-
    251 double* Ax = static_cast<double*>(M->x);
    \n-
    252
    \n-
    253
    \n-
    254 if ( ignore )
    \n-
    255 {
    \n-
    256 // init the mapping
    \n-
    257 subIndices_.resize(flatRows,std::numeric_limits<std::size_t>::max());
    \n-
    258
    \n-
    259 std::size_t subIndexCounter = 0;
    \n-
    260
    \n-
    261 for ( std::size_t i=0; i<flatRows; i++ )
    \n-
    262 {
    \n-
    263 if ( not flatIgnore[ i ] )
    \n-
    264 {
    \n-
    265 subIndices_[ i ] = subIndexCounter++;
    \n-
    266 }
    \n-
    267 }
    \n-
    268 }
    \n-
    269
    \n-
    270 // at first, we need to compute the row starts "Ap"
    \n-
    271 // therefore, we count all (not ignored) entries in each row and in the end we accumulate everything
    \n-
    272 flatMatrixForEach(matrix, [&](auto&& /*entry*/, auto&& flatRowIndex, auto&& flatColIndex){
    \n-
    273
    \n-
    274 // stop if ignored
    \n-
    275 if ( ignore and ( flatIgnore[flatRowIndex] or flatIgnore[flatColIndex] ) )
    \n-
    276 return;
    \n-
    277
    \n-
    278 // stop if in lower half
    \n-
    279 if ( flatRowIndex > flatColIndex )
    \n-
    280 return;
    \n-
    281
    \n-
    282 // ok, count the entry
    \n-
    283 auto idx = ignore ? subIndices_[flatRowIndex] : flatRowIndex;
    \n-
    284 Ap[idx+1]++;
    \n-
    285
    \n-
    286 });
    \n-
    287
    \n-
    288 // now accumulate
    \n-
    289 Ap[0] = 0;
    \n-
    290 for ( int i=0; i<N; i++ )
    \n-
    291 {
    \n-
    292 Ap[i+1] += Ap[i];
    \n-
    293 }
    \n-
    294
    \n-
    295 // we need a compressed row position counter
    \n-
    296 std::vector<std::size_t> rowPosition(N,0);
    \n-
    297
    \n-
    298 // now we can set the entries
    \n-
    299 flatMatrixForEach(matrix, [&](auto&& entry, auto&& flatRowIndex, auto&& flatColIndex){
    \n-
    300
    \n-
    301 // stop if ignored
    \n-
    302 if ( ignore and ( flatIgnore[flatRowIndex] or flatIgnore[flatColIndex] ) )
    \n-
    303 return;
    \n-
    304
    \n-
    305 // stop if in lower half
    \n-
    306 if ( flatRowIndex > flatColIndex )
    \n-
    307 return;
    \n-
    308
    \n-
    309 // ok, set the entry
    \n-
    310 auto rowIdx = ignore ? subIndices_[flatRowIndex] : flatRowIndex;
    \n-
    311 auto colIdx = ignore ? subIndices_[flatColIndex] : flatColIndex;
    \n-
    312 auto rowStart = Ap[rowIdx];
    \n-
    313 auto rowPos = rowPosition[rowIdx];
    \n-
    314 Ai[ rowStart + rowPos ] = colIdx;
    \n-
    315 Ax[ rowStart + rowPos ] = entry;
    \n-
    316 rowPosition[rowIdx]++;
    \n-
    317
    \n-
    318 });
    \n-
    319
    \n-
    320 // Now analyse the pattern and optimal row order
    \n-
    321 L_ = cholmod_analyze(M.get(), &c_);
    \n-
    322
    \n-
    323 // Do the factorization (this may take some time)
    \n-
    324 cholmod_factorize(M.get(), L_, &c_);
    \n-
    325 }
    \n-
    326
    \n-
    327 virtual SolverCategory::Category category() const
    \n-
    328 {
    \n-
    329 return SolverCategory::Category::sequential;
    \n-
    330 }
    \n-
    331
    \n-
    337 cholmod_common& cholmodCommonObject()
    \n-
    338 {
    \n-
    339 return c_;
    \n-
    340 }
    \n-
    341
    \n-
    347 cholmod_factor& cholmodFactor()
    \n-
    348 {
    \n-
    349 return *L_;
    \n-
    350 }
    \n-
    351
    \n-
    357 const cholmod_factor& cholmodFactor() const
    \n-
    358 {
    \n-
    359 return *L_;
    \n-
    360 }
    \n-
    361private:
    \n-
    362
    \n-
    363 // create a std::unique_ptr to a cholmod_dense object with a deleter
    \n-
    364 // that calls the appropriate cholmod cleanup routine
    \n-
    365 auto make_cholmod_dense(cholmod_dense* x, cholmod_common* c)
    \n-
    366 {
    \n-
    367 const auto deleter = [c](auto* p) {
    \n-
    368 cholmod_free_dense(&p, c);
    \n-
    369 };
    \n-
    370 return std::unique_ptr<cholmod_dense, decltype(deleter)>(x, deleter);
    \n-
    371 }
    \n-
    372
    \n-
    373 cholmod_common c_;
    \n-
    374 cholmod_factor* L_ = nullptr;
    \n-
    375
    \n-
    376 // indicator for a 0x0 problem (due to ignore dof's)
    \n-
    377 bool nIsZero_ = false;
    \n-
    378
    \n-
    379 // vector mapping all indices in flat order to the not ignored indices
    \n-
    380 std::vector<std::size_t> subIndices_;
    \n-
    381};
    \n-
    382
    \n-
    383 struct CholmodCreator{
    \n-
    384 template<class F> struct isValidBlock : std::false_type{};
    \n-
    385 template<int k> struct isValidBlock<FieldVector<double,k>> : std::true_type{};
    \n-
    386 template<int k> struct isValidBlock<FieldVector<float,k>> : std::true_type{};
    \n-
    387
    \n-
    388 template<class TL, typename M>
    \n-
    389 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
    \n-
    390 typename Dune::TypeListElement<2, TL>::type>>
    \n-
    391 operator()(TL /*tl*/, const M& mat, const Dune::ParameterTree& /*config*/,
    \n-
    392 std::enable_if_t<isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
    \n-
    393 {
    \n-
    394 using D = typename Dune::TypeListElement<1, TL>::type;
    \n-
    395 auto solver = std::make_shared<Dune::Cholmod<D>>();
    \n-
    396 solver->setMatrix(mat);
    \n-
    397 return solver;
    \n-
    398 }
    \n-
    399
    \n-
    400 // second version with SFINAE to validate the template parameters of Cholmod
    \n-
    401 template<typename TL, typename M>
    \n-
    402 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
    \n-
    403 typename Dune::TypeListElement<2, TL>::type>>
    \n-
    404 operator() (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /*config*/,
    \n-
    405 std::enable_if_t<!isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
    \n-
    406 {
    \n-
    407 DUNE_THROW(UnsupportedType, "Unsupported Type in Cholmod");
    \n-
    408 }
    \n-
    409 };
    \n-
    410 DUNE_REGISTER_DIRECT_SOLVER("cholmod", Dune::CholmodCreator());
    \n-
    411
    \n-
    412} /* namespace Dune */
    \n-
    413
    \n-
    414#endif // HAVE_SUITESPARSE_CHOLMOD
    \n-
    #define DUNE_REGISTER_DIRECT_SOLVER(name,...)
    Definition solverregistry.hh:13
    \n-
    Implementation of the BCRSMatrix class.
    \n-
    Define general, extensible interface for inverse operators.
    \n-\n-\n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    219 template<typename T, typename O>
    \n+
    \n+\n+
    221 {
    \n+
    222 typedef T Vertex;
    \n+\n+\n+
    225
    \n+
    \n+
    226 static void publish([[maybe_unused]] AggregatesMap<Vertex>& aggregates,
    \n+
    227 [[maybe_unused]] ParallelInformation& pinfo,
    \n+
    228 [[maybe_unused]] const GlobalLookupIndexSet& globalLookup)
    \n+
    229 {}
    \n+
    \n+
    230 };
    \n+
    \n+
    231
    \n+
    232 } // end Amg namespace
    \n+
    233
    \n+
    234
    \n+
    235#if HAVE_MPI
    \n+
    236 template<typename T, typename TI>
    \n+
    \n+
    237 struct CommPolicy<Amg::GlobalAggregatesMap<T,TI> >
    \n+
    238 {
    \n+\n+\n+
    241 typedef SizeOne IndexedTypeFlag;
    \n+
    \n+
    242 static int getSize(const Type&, int)
    \n+
    243 {
    \n+
    244 return 1;
    \n+
    245 }
    \n+
    \n+
    246 };
    \n+
    \n+
    247#endif
    \n+
    248
    \n+
    249} // end Dune namespace
    \n+
    250 /* @} */
    \n+
    251#endif
    \n+\n+
    Provides classes for the Coloring process of AMG.
    \n+
    ParallelInformation::GlobalLookupIndexSet GlobalLookupIndexSet
    Definition globalaggregates.hh:164
    \n+
    const GlobalIndex & operator[](std::size_t index) const
    Definition globalaggregates.hh:46
    \n+\n+
    static int getSize(const Type &, int)
    Definition globalaggregates.hh:242
    \n+
    Amg::GlobalAggregatesMap< T, TI >::IndexedType IndexedType
    Definition globalaggregates.hh:240
    \n+
    GlobalIndex & get(std::size_t index)
    Definition globalaggregates.hh:60
    \n+\n+
    static void publish(AggregatesMap< Vertex > &aggregates, ParallelInformation &pinfo, const GlobalLookupIndexSet &globalLookup)
    Definition globalaggregates.hh:226
    \n+
    SequentialInformation ParallelInformation
    Definition globalaggregates.hh:223
    \n+
    ParallelIndexSet::GlobalIndex GlobalIndex
    Definition globalaggregates.hh:33
    \n+
    ParallelInformation::ParallelIndexSet IndexSet
    Definition globalaggregates.hh:165
    \n+
    void put(const GlobalIndex &global, size_t i)
    Definition globalaggregates.hh:96
    \n+
    T Vertex
    Definition globalaggregates.hh:39
    \n+
    GlobalAggregatesMap(AggregatesMap< Vertex > &aggregates, const GlobalLookupIndexSet< ParallelIndexSet > &indexset)
    Definition globalaggregates.hh:41
    \n+
    TI ParallelIndexSet
    Definition globalaggregates.hh:31
    \n+
    Amg::AggregatesMap< T > Type
    Definition globalaggregates.hh:239
    \n+
    static void scatter(GlobalAggregatesMap< T, TI > &ga, GlobalIndex global, size_t i)
    Definition globalaggregates.hh:123
    \n+
    OwnerOverlapCopyCommunication< T1, T2 > ParallelInformation
    Definition globalaggregates.hh:163
    \n+
    const_iterator begin() const
    Definition aggregates.hh:725
    \n+
    SizeOne IndexedTypeFlag
    Definition globalaggregates.hh:241
    \n+
    Proxy(const GlobalLookupIndexSet< ParallelIndexSet > &indexset, Vertex &aggregate)
    Definition globalaggregates.hh:72
    \n+
    const_iterator end() const
    Definition aggregates.hh:730
    \n+
    static void publish(AggregatesMap< Vertex > &aggregates, ParallelInformation &pinfo, const GlobalLookupIndexSet &globalLookup)
    Definition globalaggregates.hh:167
    \n+
    ParallelIndexSet::GlobalIndex GlobalIndex
    Definition globalaggregates.hh:116
    \n+
    const AggregateDescriptor * const_iterator
    Definition aggregates.hh:723
    \n+
    ParallelIndexSet::LocalIndex LocalIndex
    Definition globalaggregates.hh:37
    \n+
    TI ParallelIndexSet
    Definition globalaggregates.hh:115
    \n+\n+
    ParallelInformation::GlobalLookupIndexSet GlobalLookupIndexSet
    Definition globalaggregates.hh:224
    \n+
    static const GlobalIndex & gather(const GlobalAggregatesMap< T, TI > &ga, size_t i)
    Definition globalaggregates.hh:118
    \n+
    Proxy & operator=(const GlobalIndex &global)
    Definition globalaggregates.hh:76
    \n+
    ParallelIndexSet::GlobalIndex IndexedType
    Definition globalaggregates.hh:35
    \n+
    Proxy operator[](std::size_t index)
    Definition globalaggregates.hh:91
    \n
    Definition allocator.hh:11
    \n-
    std::pair< std::size_t, std::size_t > flatMatrixForEach(Matrix &&matrix, F &&f, std::size_t rowOffset=0, std::size_t colOffset=0)
    Traverse a blocked matrix and call a functor at each scalar entry.
    Definition foreach.hh:132
    \n-
    std::size_t flatVectorForEach(Vector &&vector, F &&f, std::size_t offset=0)
    Traverse a blocked vector and call a functor at each scalar entry.
    Definition foreach.hh:95
    \n+
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n+
    void copyCopyToAll(const T &source, T &dest) const
    Communicate values from copy data points to all other data points.
    Definition owneroverlapcopy.hh:328
    \n+
    Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet
    The type of the reverse lookup of indices.
    Definition owneroverlapcopy.hh:456
    \n+
    const Communication< MPI_Comm > & communicator() const
    Definition owneroverlapcopy.hh:299
    \n+
    void copyOwnerToAll(const T &source, T &dest) const
    Communicate values from owner data points to all other data points.
    Definition owneroverlapcopy.hh:311
    \n+
    const RemoteIndices & remoteIndices() const
    Get the underlying remote indices.
    Definition owneroverlapcopy.hh:471
    \n+
    Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet
    The type of the parallel index set.
    Definition owneroverlapcopy.hh:449
    \n+
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n+
    Definition globalaggregates.hh:29
    \n+
    Definition globalaggregates.hh:70
    \n+
    Definition globalaggregates.hh:114
    \n+
    Definition globalaggregates.hh:131
    \n+
    Definition pinfo.hh:28
    \n+
    int GlobalLookupIndexSet
    Definition pinfo.hh:54
    \n+
    @ nonoverlapping
    Category for non-overlapping solvers.
    Definition solvercategory.hh:27
    \n+
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-utf-8\n+us-ascii\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,406 +1,424 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-cholmod.hh\n+ * _\bp_\ba_\ba_\bm_\bg\n+globalaggregates.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3#pragma once\n-4\n-5#if HAVE_SUITESPARSE_CHOLMOD\n-6\n-7#include \n-8#include \n-9#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-11#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n-12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n-13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bf_\bo_\br_\be_\ba_\bc_\bh_\b._\bh_\bh>\n-14\n-15#include \n-16#include \n-17\n-18#include \n-19\n-20namespace _\bD_\bu_\bn_\be {\n+3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n+4// vi: set et ts=4 sw=2 sts=2:\n+5#ifndef DUNE_GLOBALAGGREGATES_HH\n+6#define DUNE_GLOBALAGGREGATES_HH\n+7\n+18#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n+19#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n+20#include \n 21\n-22namespace Impl{\n-23\n-32 struct NoIgnore\n-33 {\n-34 const NoIgnore& operator[](std::size_t) const { return *this; }\n-35 explicit operator bool() const { return false; }\n-36 static constexpr std::size_t size() { return 0; }\n-37\n-38 };\n-39\n+22namespace _\bD_\bu_\bn_\be\n+23{\n+24 namespace Amg\n+25 {\n+26\n+27 template\n+_\b2_\b8 struct _\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+29 {\n+30 public:\n+_\b3_\b1 typedef TI _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+32\n+_\b3_\b3 typedef typename ParallelIndexSet::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+34\n+_\b3_\b5 typedef typename ParallelIndexSet::GlobalIndex _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n+36\n+_\b3_\b7 typedef typename ParallelIndexSet::LocalIndex _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+38\n+_\b3_\b9 typedef T _\bV_\be_\br_\bt_\be_\bx;\n 40\n-41 template\n-42 void copyToFlatVector(const BlockedVector& blockedVector, FlatVector&\n-flatVector)\n-43 {\n-44 // traverse the vector once just to compute the size\n-45 std::size_t len = _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(blockedVector, [&](auto&&, auto...){});\n-46 flatVector.resize(len);\n-47\n-48 _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(blockedVector, [&](auto&& entry, auto offset){\n-49 flatVector[offset] = entry;\n-50 });\n-51 }\n-52\n-53 // special (dummy) case for NoIgnore\n-54 template\n-55 void copyToFlatVector(const NoIgnore&, FlatVector&)\n-56 {\n-57 // just do nothing\n-58 return;\n-59 }\n-60\n-61 template\n-62 void copyToBlockedVector(const FlatVector& flatVector, BlockedVector&\n-blockedVector)\n-63 {\n-64 _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(blockedVector, [&](auto& entry, auto offset){\n-65 entry = flatVector[offset];\n-66 });\n+_\b4_\b1 _\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+42 const GlobalLookupIndexSet& indexset)\n+43 : aggregates_(aggregates), indexset_(indexset)\n+44 {}\n+45\n+_\b4_\b6 inline const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t index) const\n+47 {\n+48 const _\bV_\be_\br_\bt_\be_\bx& aggregate = aggregates_[index];\n+49 if(aggregate >= _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n+50 assert(aggregate != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n+51 return isolatedMarker;\n+52 }else{\n+53 const Dune::IndexPair* pair = indexset_.pair\n+(aggregate);\n+54 assert(pair!=0);\n+55 return pair->global();\n+56 }\n+57 }\n+58\n+59\n+_\b6_\b0 inline _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bg_\be_\bt(std::size_t index)\n+61 {\n+62 const _\bV_\be_\br_\bt_\be_\bx& aggregate = aggregates_[index];\n+63 assert(aggregate < _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n+64 const Dune::IndexPair* pair = indexset_.pair\n+(aggregate);\n+65 assert(pair!=0);\n+66 return const_cast<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx&>(pair->global());\n 67 }\n 68\n-69\n-70} //namespace Impl\n-71\n-76template\n-77class Cholmod : public InverseOperator\n-78{\n-79public:\n-80\n-86 Cholmod()\n-87 {\n-88 cholmod_start(&c_);\n-89 }\n+_\b6_\b9 class _\bP_\br_\bo_\bx_\by\n+70 {\n+71 public:\n+_\b7_\b2 _\bP_\br_\bo_\bx_\by(const GlobalLookupIndexSet& indexset, _\bV_\be_\br_\bt_\be_\bx&\n+aggregate)\n+73 : indexset_(&indexset), aggregate_(&aggregate)\n+74 {}\n+75\n+_\b7_\b6 _\bP_\br_\bo_\bx_\by& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global)\n+77 {\n+78 if(global==isolatedMarker)\n+79 *aggregate_ = _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD;\n+80 else{\n+81 //assert(global < AggregatesMap::ISOLATED);\n+82 *aggregate_ = indexset_->operator[](global).local();\n+83 }\n+84 return *this;\n+85 }\n+86 private:\n+87 const GlobalLookupIndexSet* indexset_;\n+88 _\bV_\be_\br_\bt_\be_\bx* aggregate_;\n+89 };\n 90\n-96 ~Cholmod()\n+_\b9_\b1 inline _\bP_\br_\bo_\bx_\by _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t index)\n+92 {\n+93 return _\bP_\br_\bo_\bx_\by(indexset_, aggregates_[index]);\n+94 }\n+95\n+_\b9_\b6 inline void _\bp_\bu_\bt(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global, size_t i)\n 97 {\n-98 if (L_)\n-99 cholmod_free_factor(&L_, &c_);\n-100 cholmod_finish(&c_);\n-101 }\n-102\n-103 // forbid copying to avoid freeing memory twice\n-104 Cholmod(const Cholmod&) = delete;\n-105 Cholmod& operator=(const Cholmod&) = delete;\n-106\n+98 aggregates_[i]=indexset_[global].local();\n+99\n+100 }\n+101\n+102 private:\n+103 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n+104 const GlobalLookupIndexSet& indexset_;\n+105 static const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx isolatedMarker;\n+106 };\n 107\n-110 void apply (Vector& x, Vector& b, [[maybe_unused]] double reduction,\n-InverseOperatorResult& res)\n-111 {\n-112 apply(x,b,res);\n-113 }\n-114\n-120 void apply(Vector& x, Vector& b, InverseOperatorResult& res)\n-121 {\n-122 // do nothing if N=0\n-123 if ( nIsZero_ )\n+108 template\n+109 const typename TI::GlobalIndex GlobalAggregatesMap::isolatedMarker =\n+110 std::numeric_limits::max();\n+111\n+112 template\n+_\b1_\b1_\b3 struct _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+114 {\n+_\b1_\b1_\b5 typedef TI _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+_\b1_\b1_\b6 typedef typename ParallelIndexSet::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+117\n+_\b1_\b1_\b8 static const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bg_\ba_\bt_\bh_\be_\br(const _\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bT_\b,_\bT_\bI_\b>& ga,\n+size_t i)\n+119 {\n+120 return ga[i];\n+121 }\n+122\n+_\b1_\b2_\b3 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bT_\b,_\bT_\bI_\b>& ga, _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx global,\n+size_t i)\n 124 {\n-125 return;\n+125 ga[i]=global;\n 126 }\n-127\n-128 if (x.size() != b.size())\n-129 DUNE_THROW(Exception, \"Error in apply(): sizes of x and b do not match!\");\n-130\n-131 // cast to double array\n-132 auto b2 = std::make_unique(L_->n);\n-133 auto x2 = std::make_unique(L_->n);\n+127 };\n+128\n+129 template\n+_\b1_\b3_\b0 struct _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br\n+131 {};\n+132\n+133#if HAVE_MPI\n 134\n-135 // copy to cholmod\n-136 auto bp = b2.get();\n-137\n-138 _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(b, [&](auto&& entry, auto&& flatIndex){\n-139 if ( subIndices_.empty() )\n-140 bp[ flatIndex ] = entry;\n-141 else\n-142 if( subIndices_[ flatIndex ] != std::numeric_limits::max() )\n-143 bp[ subIndices_[ flatIndex ] ] = entry;\n-144 });\n-145\n-146 // create a cholmod dense object\n-147 auto b3 = make_cholmod_dense(cholmod_allocate_dense(L_->n, 1, L_->n,\n-CHOLMOD_REAL, &c_), &c_);\n-148 // cast because void-ptr\n-149 auto b4 = static_cast(b3->x);\n-150 std::copy(b2.get(), b2.get() + L_->n, b4);\n-151\n-152 // solve for a cholmod x object\n-153 auto x3 = make_cholmod_dense(cholmod_solve(CHOLMOD_A, L_, b3.get(), &c_),\n-&c_);\n-154 // cast because void-ptr\n-155 auto xp = static_cast(x3->x);\n-156\n-157 // copy into x\n-158 _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(x, [&](auto&& entry, auto&& flatIndex){\n-159 if ( subIndices_.empty() )\n-160 entry = xp[ flatIndex ];\n-161 else\n-162 if( subIndices_[ flatIndex ] != std::numeric_limits::max() )\n-163 entry = xp[ subIndices_[ flatIndex ] ];\n-164 });\n-165\n-166 // statistics for a direct solver\n-167 res.iterations = 1;\n-168 res.converged = true;\n-169 }\n-170\n-171\n-177 template\n-178 void setMatrix(const Matrix& matrix)\n-179 {\n-180 const Impl::NoIgnore* noIgnore = nullptr;\n-181 setMatrix(matrix, noIgnore);\n-182 }\n-183\n-198 template\n-199 void setMatrix(const Matrix& matrix, const Ignore* ignore)\n-200 {\n-201 // count the number of entries and diagonal entries\n-202 int nonZeros = 0;\n-203 int numberOfIgnoredDofs = 0;\n-204\n-205\n-206 auto [flatRows,flatCols] = _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh( matrix, [&](auto&& /*entry*/,\n-auto&& flatRowIndex, auto&& flatColIndex){\n-207 if( flatRowIndex <= flatColIndex )\n-208 nonZeros++;\n-209 });\n-210\n-211 std::vector flatIgnore;\n-212\n-213 if ( ignore )\n-214 {\n-215 Impl::copyToFlatVector(*ignore,flatIgnore);\n-216 numberOfIgnoredDofs = std::count(flatIgnore.begin(),flatIgnore.end(),true);\n-217 }\n+135#endif\n+136\n+137 } // namespace Amg\n+138\n+139#if HAVE_MPI\n+140 // forward declaration\n+141 template\n+142 class _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn;\n+143#endif\n+144\n+145 namespace Amg\n+146 {\n+147\n+148#if HAVE_MPI\n+158 template\n+_\b1_\b5_\b9 struct _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br >\n+160 {\n+_\b1_\b6_\b1 typedef T _\bV_\be_\br_\bt_\be_\bx;\n+_\b1_\b6_\b2 typedef O _\bO_\bv_\be_\br_\bl_\ba_\bp_\bF_\bl_\ba_\bg_\bs;\n+_\b1_\b6_\b3 typedef _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n+_\b1_\b6_\b4 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+_\b1_\b6_\b5 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+166\n+_\b1_\b6_\b7 static void _\bp_\bu_\bb_\bl_\bi_\bs_\bh(_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+168 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+169 const _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& globalLookup)\n+170 {\n+171 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> GlobalMap;\n+172 GlobalMap gmap(aggregates, globalLookup);\n+173 pinfo._\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl(gmap,gmap);\n+174 // communication only needed for ALU\n+175 // (ghosts with same global id as owners on the same process)\n+176 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(pinfo) == static_cast(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:\n+_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg))\n+177 pinfo._\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl(gmap,gmap);\n+178\n+179 typedef typename ParallelInformation::RemoteIndices::const_iterator Lists;\n+180 Lists lists = pinfo._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().find(pinfo._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank());\n+181 if(lists!=pinfo._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().end()) {\n+182\n+183 // For periodic boundary conditions we must renumber\n+184 // the aggregates of vertices in the overlap whose owners are\n+185 // on the same process\n+186 _\bV_\be_\br_\bt_\be_\bx maxAggregate =0;\n+187 typedef typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br Iter;\n+188 for(Iter i=aggregates._\bb_\be_\bg_\bi_\bn(), end=aggregates._\be_\bn_\bd(); i!=end; ++i)\n+189 maxAggregate = std::max(maxAggregate, *i);\n+190\n+191 // Compute new mapping of aggregates in the overlap that we also own\n+192 std::map newMapping;\n+193\n+194 // insert all elements into map\n+195 typedef typename ParallelInformation::RemoteIndices::RemoteIndexList\n+196 ::const_iterator RIter;\n+197 for(RIter ri=lists->second.first->begin(), rend = lists->second.first->end\n+();\n+198 ri!=rend; ++ri)\n+199 if(O::contains(ri->localIndexPair().local().attribute()))\n+200 newMapping.insert(std::make_pair(aggregates[ri->localIndexPair().local()],\n+201 maxAggregate));\n+202 // renumber\n+203 typedef typename std::map::iterator MIter;\n+204 for(MIter mi=newMapping.begin(), mend=newMapping.end();\n+205 mi != mend; ++mi)\n+206 mi->second=++maxAggregate;\n+207\n+208\n+209 for(RIter ri=lists->second.first->begin(), rend = lists->second.first->end\n+();\n+210 ri!=rend; ++ri)\n+211 if(O::contains(ri->localIndexPair().local().attribute()))\n+212 aggregates[ri->localIndexPair().local()] =\n+213 newMapping[aggregates[ri->localIndexPair().local()]];\n+214 }\n+215 }\n+216 };\n+217#endif\n 218\n-219 // Total number of rows\n-220 int N = flatRows - numberOfIgnoredDofs;\n-221\n-222 nIsZero_ = (N <= 0);\n-223\n-224 if ( nIsZero_ )\n-225 {\n-226 return;\n-227 }\n-228\n-229 /*\n-230 * CHOLMOD uses compressed-column sparse matrices, but for symmetric\n-231 * matrices this is the same as the compressed-row sparse matrix used\n-232 * by DUNE. So we can just store M\u00e1\u00b5\u0080 instead of M (as M = M\u00e1\u00b5\u0080).\n-233 */\n-234 const auto deleter = [c = &this->c_](auto* p) {\n-235 cholmod_free_sparse(&p, c);\n-236 };\n-237 auto M = std::unique_ptr(\n-238 cholmod_allocate_sparse(N, // # rows\n-239 N, // # cols\n-240 nonZeros, // # of nonzeroes\n-241 1, // indices are sorted ( 1 = true)\n-242 1, // matrix is \"packed\" ( 1 = true)\n-243 -1, // stype of matrix ( -1 = consider the lower part only )\n-244 CHOLMOD_REAL, // xtype of matrix ( CHOLMOD_REAL = single array, no complex\n-numbers)\n-245 &c_ // cholmod_common ptr\n-246 ), deleter);\n-247\n-248 // copy the data of BCRS matrix to Cholmod Sparse matrix\n-249 int* Ap = static_cast(M->p);\n-250 int* Ai = static_cast(M->i);\n-251 double* Ax = static_cast(M->x);\n-252\n-253\n-254 if ( ignore )\n-255 {\n-256 // init the mapping\n-257 subIndices_.resize(flatRows,std::numeric_limits::max());\n-258\n-259 std::size_t subIndexCounter = 0;\n-260\n-261 for ( std::size_t i=0; i flatColIndex )\n-280 return;\n-281\n-282 // ok, count the entry\n-283 auto idx = ignore ? subIndices_[flatRowIndex] : flatRowIndex;\n-284 Ap[idx+1]++;\n-285\n-286 });\n-287\n-288 // now accumulate\n-289 Ap[0] = 0;\n-290 for ( int i=0; i rowPosition(N,0);\n-297\n-298 // now we can set the entries\n-299 _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh(matrix, [&](auto&& entry, auto&& flatRowIndex, auto&&\n-flatColIndex){\n-300\n-301 // stop if ignored\n-302 if ( ignore and ( flatIgnore[flatRowIndex] or flatIgnore[flatColIndex] ) )\n-303 return;\n-304\n-305 // stop if in lower half\n-306 if ( flatRowIndex > flatColIndex )\n-307 return;\n-308\n-309 // ok, set the entry\n-310 auto rowIdx = ignore ? subIndices_[flatRowIndex] : flatRowIndex;\n-311 auto colIdx = ignore ? subIndices_[flatColIndex] : flatColIndex;\n-312 auto rowStart = Ap[rowIdx];\n-313 auto rowPos = rowPosition[rowIdx];\n-314 Ai[ rowStart + rowPos ] = colIdx;\n-315 Ax[ rowStart + rowPos ] = entry;\n-316 rowPosition[rowIdx]++;\n-317\n-318 });\n-319\n-320 // Now analyse the pattern and optimal row order\n-321 L_ = cholmod_analyze(M.get(), &c_);\n-322\n-323 // Do the factorization (this may take some time)\n-324 cholmod_factorize(M.get(), L_, &c_);\n-325 }\n-326\n-327 virtual SolverCategory::Category category() const\n-328 {\n-329 return SolverCategory::Category::sequential;\n-330 }\n-331\n-337 cholmod_common& cholmodCommonObject()\n-338 {\n-339 return c_;\n-340 }\n-341\n-347 cholmod_factor& cholmodFactor()\n-348 {\n-349 return *L_;\n-350 }\n-351\n-357 const cholmod_factor& cholmodFactor() const\n-358 {\n-359 return *L_;\n-360 }\n-361private:\n-362\n-363 // create a std::unique_ptr to a cholmod_dense object with a deleter\n-364 // that calls the appropriate cholmod cleanup routine\n-365 auto make_cholmod_dense(cholmod_dense* x, cholmod_common* c)\n-366 {\n-367 const auto deleter = [c](auto* p) {\n-368 cholmod_free_dense(&p, c);\n-369 };\n-370 return std::unique_ptr(x, deleter);\n-371 }\n-372\n-373 cholmod_common c_;\n-374 cholmod_factor* L_ = nullptr;\n-375\n-376 // indicator for a 0x0 problem (due to ignore dof's)\n-377 bool nIsZero_ = false;\n-378\n-379 // vector mapping all indices in flat order to the not ignored indices\n-380 std::vector subIndices_;\n-381};\n-382\n-383 struct CholmodCreator{\n-384 template struct isValidBlock : std::false_type{};\n-385 template struct isValidBlock> : std::true_type\n-{};\n-386 template struct isValidBlock> : std::true_type\n-{};\n-387\n-388 template\n-389 std::shared_ptr::type,\n-390 typename Dune::TypeListElement<2, TL>::type>>\n-391 operator()(TL /*tl*/, const M& _\bm_\ba_\bt, const Dune::ParameterTree& /*config*/,\n-392 std::enable_if_t::type::\n-block_type>::value,int> = 0) const\n-393 {\n-394 using D = typename Dune::TypeListElement<1, TL>::type;\n-395 auto solver = std::make_shared>();\n-396 solver->setMatrix(_\bm_\ba_\bt);\n-397 return solver;\n-398 }\n-399\n-400 // second version with SFINAE to validate the template parameters of\n-Cholmod\n-401 template\n-402 std::shared_ptr::type,\n-403 typename Dune::TypeListElement<2, TL>::type>>\n-404 operator() (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /\n-*config*/,\n-405 std::enable_if_t::\n-type::block_type>::value,int> = 0) const\n-406 {\n-407 DUNE_THROW(UnsupportedType, \"Unsupported Type in Cholmod\");\n-408 }\n-409 };\n-410 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"cholmod\", Dune::CholmodCreator());\n-411\n-412} /* namespace Dune */\n-413\n-414#endif // HAVE_SUITESPARSE_CHOLMOD\n-_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR\n-#define DUNE_REGISTER_DIRECT_SOLVER(name,...)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:13\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n-Define general, extensible interface for inverse operators.\n-_\bf_\bo_\br_\be_\ba_\bc_\bh_\b._\bh_\bh\n-_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+219 template\n+_\b2_\b2_\b0 struct _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br\n+221 {\n+_\b2_\b2_\b2 typedef T _\bV_\be_\br_\bt_\be_\bx;\n+_\b2_\b2_\b3 typedef _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n+_\b2_\b2_\b4 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+225\n+_\b2_\b2_\b6 static void _\bp_\bu_\bb_\bl_\bi_\bs_\bh([[maybe_unused]] _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+227 [[maybe_unused]] _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+228 [[maybe_unused]] const _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& globalLookup)\n+229 {}\n+230 };\n+231\n+232 } // end Amg namespace\n+233\n+234\n+235#if HAVE_MPI\n+236 template\n+_\b2_\b3_\b7 struct CommPolicy >\n+238 {\n+_\b2_\b3_\b9 typedef _\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bT_\b> _\bT_\by_\bp_\be;\n+_\b2_\b4_\b0 typedef typename _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bT_\b,_\bT_\bI_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n+_\b2_\b4_\b1 typedef SizeOne _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg;\n+_\b2_\b4_\b2 static int _\bg_\be_\bt_\bS_\bi_\bz_\be(const _\bT_\by_\bp_\be&, int)\n+243 {\n+244 return 1;\n+245 }\n+246 };\n+247#endif\n+248\n+249} // end Dune namespace\n+250 /* @} */\n+251#endif\n+_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n+_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n+Provides classes for the Coloring process of AMG.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n+_\b>_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+ParallelInformation::GlobalLookupIndexSet GlobalLookupIndexSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:164\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+const GlobalIndex & operator[](std::size_t index) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n+_\b>_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bF_\bl_\ba_\bg_\bs\n+O OverlapFlags\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:162\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bS_\bi_\bz_\be\n+static int getSize(const Type &, int)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:242\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n+Amg::GlobalAggregatesMap< T, TI >::IndexedType IndexedType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:240\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bg_\be_\bt\n+GlobalIndex & get(std::size_t index)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:60\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n+_\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+T Vertex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:161\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bp_\bu_\bb_\bl_\bi_\bs_\bh\n+static void publish(AggregatesMap< Vertex > &aggregates, ParallelInformation\n+&pinfo, const GlobalLookupIndexSet &globalLookup)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:226\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+SequentialInformation ParallelInformation\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:223\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::GlobalIndex GlobalIndex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:33\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n+_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+ParallelInformation::ParallelIndexSet IndexSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:165\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bp_\bu_\bt\n+void put(const GlobalIndex &global, size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:96\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+T Vertex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:39\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+GlobalAggregatesMap(AggregatesMap< Vertex > &aggregates, const\n+GlobalLookupIndexSet< ParallelIndexSet > &indexset)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:41\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+TI ParallelIndexSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:31\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n+Amg::AggregatesMap< T > Type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:239\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n+static void scatter(GlobalAggregatesMap< T, TI > &ga, GlobalIndex global,\n+size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:123\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n+_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+OwnerOverlapCopyCommunication< T1, T2 > ParallelInformation\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:163\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:725\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg\n+SizeOne IndexedTypeFlag\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:241\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bP_\br_\bo_\bx_\by_\b:_\b:_\bP_\br_\bo_\bx_\by\n+Proxy(const GlobalLookupIndexSet< ParallelIndexSet > &indexset, Vertex\n+&aggregate)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:72\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:730\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n+_\b>_\b:_\b:_\bp_\bu_\bb_\bl_\bi_\bs_\bh\n+static void publish(AggregatesMap< Vertex > &aggregates, ParallelInformation\n+&pinfo, const GlobalLookupIndexSet &globalLookup)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:167\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::GlobalIndex GlobalIndex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:116\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+const AggregateDescriptor * const_iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:723\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::LocalIndex LocalIndex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+TI ParallelIndexSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:115\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+T Vertex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:222\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:\n+_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+ParallelInformation::GlobalLookupIndexSet GlobalLookupIndexSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:224\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n+static const GlobalIndex & gather(const GlobalAggregatesMap< T, TI > &ga,\n+size_t i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:118\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bP_\br_\bo_\bx_\by_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+Proxy & operator=(const GlobalIndex &global)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:76\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n+ParallelIndexSet::GlobalIndex IndexedType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:35\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+Proxy operator[](std::size_t index)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:91\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh\n-std::pair< std::size_t, std::size_t > flatMatrixForEach(Matrix &&matrix, F &&f,\n-std::size_t rowOffset=0, std::size_t colOffset=0)\n-Traverse a blocked matrix and call a functor at each scalar entry.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:132\n-_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh\n-std::size_t flatVectorForEach(Vector &&vector, F &&f, std::size_t offset=0)\n-Traverse a blocked vector and call a functor at each scalar entry.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+A class setting up standard communication for a two-valued attribute set with\n+owner/overlap/copy sema...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl\n+void copyCopyToAll(const T &source, T &dest) const\n+Communicate values from copy data points to all other data points.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:328\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet\n+The type of the reverse lookup of indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:456\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+const Communication< MPI_Comm > & communicator() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl\n+void copyOwnerToAll(const T &source, T &dest) const\n+Communicate values from owner data points to all other data points.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:311\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+const RemoteIndices & remoteIndices() const\n+Get the underlying remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:471\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet\n+The type of the parallel index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:449\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+Class providing information about the mapping of the vertices onto aggregates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:29\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bP_\br_\bo_\bx_\by\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:131\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+int GlobalLookupIndexSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n+@ nonoverlapping\n+Category for non-overlapping solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+static Category category(const OP &op, decltype(op.category()) *=nullptr)\n+Helperfunction to extract the solver category either from an enum, or from the\n+newly introduced virtu...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00065.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00065.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixmatrix.hh File Reference\n+dune-istl: parameters.hh File Reference\n \n \n \n \n \n \n \n@@ -65,75 +65,67 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n \n+ \n \n
    \n \n-

    provides functions for sparse matrix matrix multiplication. \n+

    Parameter classes for customizing AMG. \n More...

    \n-
    #include <tuple>
    \n-#include <dune/istl/bcrsmatrix.hh>
    \n-#include <dune/common/fmatrix.hh>
    \n-#include <dune/common/timer.hh>
    \n+
    #include <cstddef>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n+\n+\n \n-\n+\n+\n \n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    struct  Dune::MatMultMatResult< M1, M2 >
     Helper TMP to get the result type of a sparse matrix matrix multiplication ( \"$C=A*B$\") More...
    class  Dune::Amg::DependencyParameters
     Parameters needed to check whether a node depends on another. More...
     
    struct  Dune::MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >
    class  Dune::Amg::AggregationParameters
     Parameters needed for the aggregation process. More...
     
    struct  Dune::MatMultMatResult< BCRSMatrix< FieldMatrix< T, n, k >, A >, BCRSMatrix< FieldMatrix< T, k, m >, A1 > >
    class  Dune::Amg::CoarseningParameters
     Parameters for the complete coarsening process. More...
     
    struct  Dune::TransposedMatMultMatResult< M1, M2 >
     Helper TMP to get the result type of a sparse matrix matrix multiplication ( \"$C=A*B$\") More...
     
    struct  Dune::TransposedMatMultMatResult< FieldMatrix< T, k, n >, FieldMatrix< T, k, m > >
     
    struct  Dune::TransposedMatMultMatResult< BCRSMatrix< FieldMatrix< T, k, n >, A >, BCRSMatrix< FieldMatrix< T, k, m >, A1 > >
    class  Dune::Amg::Parameters
     All parameters for AMG. More...
     
    \n \n \n \n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n

    \n-Functions

    template<class T , class A , class A1 , class A2 , int n, int m, int k>
    void Dune::matMultTransposeMat (BCRSMatrix< FieldMatrix< T, n, k >, A > &res, const BCRSMatrix< FieldMatrix< T, n, m >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
     Calculate product of a sparse matrix with a transposed sparse matrices ( \"$C=A*B^T$\").
     
    template<class T , class A , class A1 , class A2 , int n, int m, int k>
    void Dune::matMultMat (BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const BCRSMatrix< FieldMatrix< T, n, k >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
     Calculate product of two sparse matrices ( \"$C=A*B$\").
     
    template<class T , class A , class A1 , class A2 , int n, int m, int k>
    void Dune::transposeMatMultMat (BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const BCRSMatrix< FieldMatrix< T, k, n >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
     Calculate product of a transposed sparse matrix with another sparse matrices ( \"$C=A^T*B$\").
     

    \n+Enumerations

    enum  Dune::Amg::AccumulationMode { Dune::Amg::noAccu = 0\n+, Dune::Amg::atOnceAccu =1\n+, Dune::Amg::successiveAccu =2\n+ }
     Identifiers for the different accumulation modes. More...
     
    \n

    Detailed Description

    \n-

    provides functions for sparse matrix matrix multiplication.

    \n+

    Parameter classes for customizing AMG.

    \n
    Author
    Markus Blatt
    \n+

    All parameters of the AMG can be set by using the class Parameter, which can be provided to CoarsenCriterion via its constructor.

    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,66 +1,45 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-matrixmatrix.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bS_\bp_\ba_\br_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bc_\bl_\ba_\bs_\bs_\be_\bs\n-provides functions for sparse matrix matrix multiplication. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include \n-#include \n+ * _\bp_\ba_\ba_\bm_\bg\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bE_\bn_\bu_\bm_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n+parameters.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n+\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n+Parameter classes for customizing AMG. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bM_\b1_\b,_\b _\bM_\b2_\b _\b>\n-\u00a0 Helper TMP to get the result type of a sparse matrix matrix\n- multiplication ( [$C=A*B$]) _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+\u00a0 _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs needed to check whether a node depends on another. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bk_\b _\b>_\b,_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>\n- _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+\u00a0 _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs needed for the aggregation process. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bk_\b _\b>_\b,_\b _\bA_\b _\b>_\b,\n- _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b1_\b _\b>_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+\u00a0 _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs for the complete coarsening process. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bM_\b1_\b,_\b _\bM_\b2_\b _\b>\n-\u00a0 Helper TMP to get the result type of a sparse matrix matrix\n- multiplication ( [$C=A*B$]) _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bn_\b _\b>_\b,_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<\n- _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bn_\b _\b>_\b,\n- _\bA_\b _\b>_\b,_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b1_\b _\b>_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+\u00a0 All parameters for _\bA_\bM_\bG. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt (_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, n, k >, A > &res,\n- const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, n, m >, A1 > &_\bm_\ba_\bt, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<\n- _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, k, m >, A2 > &matt, bool tryHard=false)\n-\u00a0 Calculate product of a sparse matrix with a transposed sparse matrices (\n- [$C=A*B^T$]).\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt (_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, n, m >, A > &res, const\n- _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, n, k >, A1 > &_\bm_\ba_\bt, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<\n- _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, k, m >, A2 > &matt, bool tryHard=false)\n-\u00a0 Calculate product of two sparse matrices ( [$C=A*B$]).\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bt_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt (_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, n, m >, A > &res,\n- const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, k, n >, A1 > &_\bm_\ba_\bt, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<\n- _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, k, m >, A2 > &matt, bool tryHard=false)\n-\u00a0 Calculate product of a transposed sparse matrix with another sparse\n- matrices ( [$C=A^T*B$]).\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+\u00a0\n+E\bEn\bnu\bum\bme\ber\bra\bat\bti\bio\bon\bns\bs\n+enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be { _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bn_\bo_\bA_\bc_\bc_\bu = 0 , _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:\n+ _\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu =1 , _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu =2 }\n+\u00a0 Identifiers for the different accumulation modes. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-provides functions for sparse matrix matrix multiplication.\n+Parameter classes for customizing AMG.\n Author\n Markus Blatt\n+All parameters of the AMG can be set by using the class Parameter, which can be\n+provided to CoarsenCriterion via its constructor.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00065_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00065_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixmatrix.hh Source File\n+dune-istl: parameters.hh Source File\n \n \n \n \n \n \n \n@@ -70,626 +70,395 @@\n
    \n
    \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n-
    matrixmatrix.hh
    \n+
    parameters.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_MATRIXMATRIX_HH
    \n-
    6#define DUNE_ISTL_MATRIXMATRIX_HH
    \n+
    5#ifndef DUNE_AMG_PARAMETERS_HH
    \n+
    6#define DUNE_AMG_PARAMETERS_HH
    \n
    7
    \n-
    8#include <tuple>
    \n+
    8#include <cstddef>
    \n
    9
    \n-\n-
    11#include <dune/common/fmatrix.hh>
    \n-
    12#include <dune/common/timer.hh>
    \n-
    13namespace Dune
    \n-
    14{
    \n-
    15
    \n-
    26 namespace
    \n-
    27 {
    \n-
    28
    \n-
    37 template<int b>
    \n-
    38 struct NonzeroPatternTraverser
    \n-
    39 {};
    \n-
    40
    \n-
    41
    \n-
    42 template<>
    \n-
    43 struct NonzeroPatternTraverser<0>
    \n-
    44 {
    \n-
    45 template<class T,class A1, class A2, class F, int n, int m, int k>
    \n-
    46 static void traverse(const Dune::BCRSMatrix<Dune::FieldMatrix<T,n,k>,A1>& A,
    \n-\n-
    48 F& func)
    \n-
    49 {
    \n-
    50 if(A.M()!=B.N())
    \n-
    51 DUNE_THROW(ISTLError, "The sizes of the matrices do not match: "<<A.M()<<"!="<<B.N());
    \n-
    52
    \n-
    53 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,n,k>,A1>::ConstRowIterator Row;
    \n-
    54 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,n,k>,A1>::ConstColIterator Col;
    \n-
    55 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,m>,A2>::ConstColIterator BCol;
    \n-
    56 for(Row row= A.begin(); row != A.end(); ++row) {
    \n-
    57 // Loop over all column entries
    \n-
    58 for(Col col = row->begin(); col != row->end(); ++col) {
    \n-
    59 // entry at i,k
    \n-
    60 // search for all nonzeros in row k
    \n-
    61 for(BCol bcol = B[col.index()].begin(); bcol != B[col.index()].end(); ++bcol) {
    \n-
    62 func(*col, *bcol, row.index(), bcol.index());
    \n-
    63 }
    \n-
    64 }
    \n-
    65 }
    \n-
    66 }
    \n-
    67
    \n-
    68 };
    \n-
    69
    \n-
    70 template<>
    \n-
    71 struct NonzeroPatternTraverser<1>
    \n-
    72 {
    \n-
    73 template<class T, class A1, class A2, class F, int n, int m, int k>
    \n-
    74 static void traverse(const Dune::BCRSMatrix<Dune::FieldMatrix<T,k,n>,A1>& A,
    \n-\n-
    76 F& func)
    \n-
    77 {
    \n+
    10namespace Dune
    \n+
    11{
    \n+
    12 namespace Amg
    \n+
    13 {
    \n+
    \n+\n+
    31 {
    \n+
    32 public:
    \n+
    \n+\n+
    35 : alpha_(1.0/3.0), beta_(1.0E-5)
    \n+
    36 {}
    \n+
    \n+
    37
    \n+
    \n+
    42 void setBeta(double b)
    \n+
    43 {
    \n+
    44 beta_ = b;
    \n+
    45 }
    \n+
    \n+
    46
    \n+
    \n+
    52 double beta() const
    \n+
    53 {
    \n+
    54 return beta_;
    \n+
    55 }
    \n+
    \n+
    56
    \n+
    \n+
    61 void setAlpha(double a)
    \n+
    62 {
    \n+
    63 alpha_ = a;
    \n+
    64 }
    \n+
    \n+
    65
    \n+
    \n+
    70 double alpha() const
    \n+
    71 {
    \n+
    72 return alpha_;
    \n+
    73 }
    \n+
    \n+
    74
    \n+
    75 private:
    \n+
    76 double alpha_, beta_;
    \n+
    77 };
    \n+
    \n
    78
    \n-
    79 if(A.N()!=B.N())
    \n-
    80 DUNE_THROW(ISTLError, "The sizes of the matrices do not match: "<<A.N()<<"!="<<B.N());
    \n-
    81
    \n-
    82 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,n>,A1>::ConstRowIterator Row;
    \n-
    83 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,n>,A1>::ConstColIterator Col;
    \n-
    84 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,m>,A2>::ConstColIterator BCol;
    \n-
    85
    \n-
    86 for(Row row=A.begin(); row!=A.end(); ++row) {
    \n-
    87 for(Col col=row->begin(); col!=row->end(); ++col) {
    \n-
    88 for(BCol bcol = B[row.index()].begin(); bcol != B[row.index()].end(); ++bcol) {
    \n-
    89 func(*col, *bcol, col.index(), bcol.index());
    \n-
    90 }
    \n-
    91 }
    \n-
    92 }
    \n-
    93 }
    \n-
    94 };
    \n-
    95
    \n-
    96 template<>
    \n-
    97 struct NonzeroPatternTraverser<2>
    \n-
    98 {
    \n-
    99 template<class T, class A1, class A2, class F, int n, int m, int k>
    \n-
    100 static void traverse(const BCRSMatrix<FieldMatrix<T,n,m>,A1>& mat,
    \n-
    101 const BCRSMatrix<FieldMatrix<T,k,m>,A2>& matt,
    \n-
    102 F& func)
    \n-
    103 {
    \n-
    104 if(mat.M()!=matt.M())
    \n-
    105 DUNE_THROW(ISTLError, "The sizes of the matrices do not match: "<<mat.M()<<"!="<<matt.M());
    \n-
    106
    \n-
    107 typedef typename BCRSMatrix<FieldMatrix<T,n,m>,A1>::ConstRowIterator row_iterator;
    \n-
    108 typedef typename BCRSMatrix<FieldMatrix<T,n,m>,A1>::ConstColIterator col_iterator;
    \n-
    109 typedef typename BCRSMatrix<FieldMatrix<T,k,m>,A2>::ConstRowIterator row_iterator_t;
    \n-
    110 typedef typename BCRSMatrix<FieldMatrix<T,k,m>,A2>::ConstColIterator col_iterator_t;
    \n-
    111
    \n-
    112 for(row_iterator mrow=mat.begin(); mrow != mat.end(); ++mrow) {
    \n-
    113 //iterate over the column entries
    \n-
    114 // mt is a transposed matrix crs therefore it is treated as a ccs matrix
    \n-
    115 // and the row_iterator iterates over the columns of the transposed matrix.
    \n-
    116 // search the row of the transposed matrix for an entry with the same index
    \n-
    117 // as the mcol iterator
    \n-
    118
    \n-
    119 for(row_iterator_t mtcol=matt.begin(); mtcol != matt.end(); ++mtcol) {
    \n-
    120 //Search for col entries in mat that have a corrsponding row index in matt
    \n-
    121 // (i.e. corresponding col index in the as this is the transposed matrix
    \n-
    122 col_iterator_t mtrow=mtcol->begin();
    \n-
    123 bool funcCalled = false;
    \n-
    124 for(col_iterator mcol=mrow->begin(); mcol != mrow->end(); ++mcol) {
    \n-
    125 // search
    \n-
    126 // TODO: This should probably be substituted by a binary search
    \n-
    127 for( ; mtrow != mtcol->end(); ++mtrow)
    \n-
    128 if(mtrow.index()>=mcol.index())
    \n-
    129 break;
    \n-
    130 if(mtrow != mtcol->end() && mtrow.index()==mcol.index()) {
    \n-
    131 func(*mcol, *mtrow, mtcol.index());
    \n-
    132 funcCalled = true;
    \n-
    133 // In some cases we only search for one pair, then we break here
    \n-
    134 // and continue with the next column.
    \n-
    135 if(F::do_break)
    \n-
    136 break;
    \n-
    137 }
    \n-
    138 }
    \n-
    139 // move on with func only if func was called, otherwise they might
    \n-
    140 // get out of sync
    \n-
    141 if (funcCalled)
    \n-
    142 func.nextCol();
    \n-
    143 }
    \n-
    144 func.nextRow();
    \n-
    145 }
    \n-
    146 }
    \n-
    147 };
    \n-
    148
    \n-
    149
    \n-
    150
    \n-
    151 template<class T, class A, int n, int m>
    \n-
    152 class SparsityPatternInitializer
    \n-
    153 {
    \n-
    154 public:
    \n-
    155 enum {do_break=true};
    \n-\n-\n-
    158
    \n-
    159 SparsityPatternInitializer(CreateIterator iter)
    \n-
    160 : rowiter(iter)
    \n-
    161 {}
    \n-
    162
    \n-
    163 template<class T1, class T2>
    \n-
    164 void operator()(const T1&, const T2&, size_type j)
    \n-
    165 {
    \n-
    166 rowiter.insert(j);
    \n-
    167 }
    \n-
    168
    \n-
    169 void nextRow()
    \n-
    170 {
    \n-
    171 ++rowiter;
    \n-
    172 }
    \n-
    173 void nextCol()
    \n-
    174 {}
    \n+
    \n+\n+\n+
    84 {
    \n+
    85 public:
    \n+
    \n+\n+
    96 : maxDistance_(2), minAggregateSize_(4), maxAggregateSize_(6),
    \n+
    97 connectivity_(15), skipiso_(false)
    \n+
    98 {}
    \n+
    \n+
    99
    \n+
    \n+
    109 void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)
    \n+
    110 {
    \n+
    111 maxDistance_=diameter-1;
    \n+
    112 std::size_t csize=1;
    \n+
    113
    \n+
    114 for(; dim>0; dim--) {
    \n+
    115 csize*=diameter;
    \n+
    116 maxDistance_+=diameter-1;
    \n+
    117 }
    \n+
    118 minAggregateSize_=csize;
    \n+
    119 maxAggregateSize_=static_cast<std::size_t>(csize*1.5);
    \n+
    120 }
    \n+
    \n+
    121
    \n+
    \n+
    132 void setDefaultValuesAnisotropic(std::size_t dim,std::size_t diameter=2)
    \n+
    133 {
    \n+
    134 setDefaultValuesIsotropic(dim, diameter);
    \n+
    135 maxDistance_+=dim-1;
    \n+
    136 }
    \n+
    \n+
    144 std::size_t maxDistance() const { return maxDistance_;}
    \n+
    145
    \n+
    154 void setMaxDistance(std::size_t distance) { maxDistance_ = distance;}
    \n+
    155
    \n+
    \n+
    161 bool skipIsolated() const
    \n+
    162 {
    \n+
    163 return skipiso_;
    \n+
    164 }
    \n+
    \n+
    165
    \n+
    \n+
    171 void setSkipIsolated(bool skip)
    \n+
    172 {
    \n+
    173 skipiso_=skip;
    \n+
    174 }
    \n+
    \n
    175
    \n-
    176 private:
    \n-
    177 CreateIterator rowiter;
    \n-
    178 };
    \n-
    179
    \n-
    180
    \n-
    181 template<int transpose, class T, class TA, int n, int m>
    \n-
    182 class MatrixInitializer
    \n-
    183 {
    \n-
    184 public:
    \n-
    185 enum {do_break=true};
    \n-\n-\n-
    188 typedef typename Matrix::size_type size_type;
    \n+
    180 std::size_t minAggregateSize() const { return minAggregateSize_;}
    \n+
    181
    \n+
    188 void setMinAggregateSize(std::size_t size){ minAggregateSize_=size;}
    \n
    189
    \n-
    190 MatrixInitializer(Matrix& A_, size_type)
    \n-
    191 : count(0), A(A_)
    \n-
    192 {}
    \n-
    193 template<class T1, class T2>
    \n-
    194 void operator()(const T1&, const T2&, int)
    \n-
    195 {
    \n-
    196 ++count;
    \n-
    197 }
    \n-
    198
    \n-
    199 void nextCol()
    \n-
    200 {}
    \n-
    201
    \n-
    202 void nextRow()
    \n-
    203 {}
    \n-
    204
    \n-
    205 std::size_t nonzeros()
    \n-
    206 {
    \n-
    207 return count;
    \n-
    208 }
    \n-
    209
    \n-
    210 template<class A1, class A2, int n2, int m2, int n3, int m3>
    \n-
    211 void initPattern(const BCRSMatrix<FieldMatrix<T,n2,m2>,A1>& mat1,
    \n-
    212 const BCRSMatrix<FieldMatrix<T,n3,m3>,A2>& mat2)
    \n-
    213 {
    \n-
    214 SparsityPatternInitializer<T, TA, n, m> sparsity(A.createbegin());
    \n-
    215 NonzeroPatternTraverser<transpose>::traverse(mat1,mat2,sparsity);
    \n-
    216 }
    \n-
    217
    \n-
    218 private:
    \n-
    219 std::size_t count;
    \n-
    220 Matrix& A;
    \n-
    221 };
    \n-
    222
    \n-
    223 template<class T, class TA, int n, int m>
    \n-
    224 class MatrixInitializer<1,T,TA,n,m>
    \n-
    225 {
    \n-
    226 public:
    \n-
    227 enum {do_break=false};
    \n-\n-\n-
    230 typedef typename Matrix::size_type size_type;
    \n-
    231
    \n-
    232 MatrixInitializer(Matrix& A_, size_type rows)
    \n-
    233 : A(A_), entries(rows)
    \n-
    234 {}
    \n-
    235
    \n-
    236 template<class T1, class T2>
    \n-
    237 void operator()(const T1&, const T2&, size_type i, size_type j)
    \n-
    238 {
    \n-
    239 entries[i].insert(j);
    \n-
    240 }
    \n-
    241
    \n-
    242 void nextCol()
    \n-
    243 {}
    \n-
    244
    \n-
    245 size_type nonzeros()
    \n-
    246 {
    \n-
    247 size_type nnz=0;
    \n-
    248 typedef typename std::vector<std::set<size_t> >::const_iterator Iter;
    \n-
    249 for(Iter iter = entries.begin(); iter != entries.end(); ++iter)
    \n-
    250 nnz+=(*iter).size();
    \n-
    251 return nnz;
    \n-
    252 }
    \n-
    253 template<class A1, class A2, int n2, int m2, int n3, int m3>
    \n-
    254 void initPattern(const BCRSMatrix<FieldMatrix<T,n2,m2>,A1>&,
    \n-
    255 const BCRSMatrix<FieldMatrix<T,n3,m3>,A2>&)
    \n-
    256 {
    \n-
    257 typedef typename std::vector<std::set<size_t> >::const_iterator Iter;
    \n-
    258 CreateIterator citer = A.createbegin();
    \n-
    259 for(Iter iter = entries.begin(); iter != entries.end(); ++iter, ++citer) {
    \n-
    260 typedef std::set<size_t>::const_iterator SetIter;
    \n-
    261 for(SetIter index=iter->begin(); index != iter->end(); ++index)
    \n-
    262 citer.insert(*index);
    \n-
    263 }
    \n-
    264 }
    \n-
    265
    \n-
    266 private:
    \n-
    267 Matrix& A;
    \n-
    268 std::vector<std::set<size_t> > entries;
    \n-
    269 };
    \n-
    270
    \n-
    271 template<class T, class TA, int n, int m>
    \n-
    272 struct MatrixInitializer<0,T,TA,n,m>
    \n-
    273 : public MatrixInitializer<1,T,TA,n,m>
    \n-
    274 {
    \n-
    275 MatrixInitializer(Dune::BCRSMatrix<Dune::FieldMatrix<T,n,m>,TA>& A_,
    \n-\n-
    277 : MatrixInitializer<1,T,TA,n,m>(A_,rows)
    \n-
    278 {}
    \n-
    279 };
    \n-
    280
    \n-
    281
    \n-
    282 template<class T, class T1, class T2, int n, int m, int k>
    \n-
    283 void addMatMultTransposeMat(FieldMatrix<T,n,k>& res, const FieldMatrix<T1,n,m>& mat,
    \n-
    284 const FieldMatrix<T2,k,m>& matt)
    \n-
    285 {
    \n-
    286 typedef typename FieldMatrix<T,n,k>::size_type size_type;
    \n-
    287
    \n-
    288 for(size_type row=0; row<n; ++row)
    \n-
    289 for(size_type col=0; col<k; ++col) {
    \n-
    290 for(size_type i=0; i < m; ++i)
    \n-
    291 res[row][col]+=mat[row][i]*matt[col][i];
    \n-
    292 }
    \n-
    293 }
    \n-
    294
    \n-
    295 template<class T, class T1, class T2, int n, int m, int k>
    \n-
    296 void addTransposeMatMultMat(FieldMatrix<T,n,k>& res, const FieldMatrix<T1,m,n>& mat,
    \n-
    297 const FieldMatrix<T2,m,k>& matt)
    \n-
    298 {
    \n-
    299 typedef typename FieldMatrix<T,n,k>::size_type size_type;
    \n-
    300 for(size_type i=0; i<m; ++i)
    \n-
    301 for(size_type row=0; row<n; ++row) {
    \n-
    302 for(size_type col=0; col < k; ++col)
    \n-
    303 res[row][col]+=mat[i][row]*matt[i][col];
    \n-
    304 }
    \n-
    305 }
    \n-
    306
    \n-
    307 template<class T, class T1, class T2, int n, int m, int k>
    \n-
    308 void addMatMultMat(FieldMatrix<T,n,m>& res, const FieldMatrix<T1,n,k>& mat,
    \n-
    309 const FieldMatrix<T2,k,m>& matt)
    \n-
    310 {
    \n-
    311 typedef typename FieldMatrix<T,n,k>::size_type size_type;
    \n-
    312 for(size_type row=0; row<n; ++row)
    \n-
    313 for(size_type col=0; col<m; ++col) {
    \n-
    314 for(size_type i=0; i < k; ++i)
    \n-
    315 res[row][col]+=mat[row][i]*matt[i][col];
    \n-
    316 }
    \n-
    317 }
    \n-
    318
    \n-
    319
    \n-
    320 template<class T, class A, int n, int m>
    \n-
    321 class EntryAccumulatorFather
    \n-
    322 {
    \n-
    323 public:
    \n-
    324 enum {do_break=false};
    \n-\n-
    326 typedef typename Matrix::RowIterator Row;
    \n-
    327 typedef typename Matrix::ColIterator Col;
    \n-
    328
    \n-
    329 EntryAccumulatorFather(Matrix& mat_)
    \n-
    330 : mat(mat_), row(mat.begin())
    \n-
    331 {
    \n-
    332 mat=0;
    \n-
    333 col=row->begin();
    \n-
    334 }
    \n-
    335 void nextRow()
    \n-
    336 {
    \n-
    337 ++row;
    \n-
    338 if(row!=mat.end())
    \n-
    339 col=row->begin();
    \n-
    340 }
    \n-
    341
    \n-
    342 void nextCol()
    \n-
    343 {
    \n-
    344 ++this->col;
    \n+
    194 std::size_t maxAggregateSize() const { return maxAggregateSize_;}
    \n+
    195
    \n+
    202 void setMaxAggregateSize(std::size_t size){ maxAggregateSize_ = size;}
    \n+
    203
    \n+
    211 std::size_t maxConnectivity() const { return connectivity_;}
    \n+
    212
    \n+
    220 void setMaxConnectivity(std::size_t connectivity){ connectivity_ = connectivity;}
    \n+
    221
    \n+
    222 private:
    \n+
    223 std::size_t maxDistance_, minAggregateSize_, maxAggregateSize_, connectivity_;
    \n+
    224 bool skipiso_;
    \n+
    225
    \n+
    226 };
    \n+
    \n+
    227
    \n+
    228
    \n+
    \n+\n+\n+\n+\n+
    249 };
    \n+
    \n+
    250
    \n+
    251
    \n+
    252
    \n+
    253
    \n+
    \n+\n+
    258 {
    \n+
    259 public:
    \n+
    \n+
    263 void setMaxLevel(int l)
    \n+
    264 {
    \n+
    265 maxLevel_ = l;
    \n+
    266 }
    \n+
    \n+
    \n+
    270 int maxLevel() const
    \n+
    271 {
    \n+
    272 return maxLevel_;
    \n+
    273 }
    \n+
    \n+
    274
    \n+
    \n+
    278 void setCoarsenTarget(int nodes)
    \n+
    279 {
    \n+
    280 coarsenTarget_ = nodes;
    \n+
    281 }
    \n+
    \n+
    282
    \n+
    \n+
    286 int coarsenTarget() const
    \n+
    287 {
    \n+
    288 return coarsenTarget_;
    \n+
    289 }
    \n+
    \n+
    290
    \n+
    \n+
    296 void setMinCoarsenRate(double rate)
    \n+
    297 {
    \n+
    298 minCoarsenRate_ = rate;
    \n+
    299 }
    \n+
    \n+
    300
    \n+
    \n+
    304 double minCoarsenRate() const
    \n+
    305 {
    \n+
    306 return minCoarsenRate_;
    \n+
    307 }
    \n+
    \n+
    308
    \n+
    \n+\n+
    313 {
    \n+
    314 return accumulate_;
    \n+
    315 }
    \n+
    \n+
    \n+\n+
    320 {
    \n+
    321 accumulate_=accu;
    \n+
    322 }
    \n+
    \n+
    323
    \n+
    \n+
    324 void setAccumulate(bool accu){
    \n+
    325 accumulate_=accu ? successiveAccu : noAccu;
    \n+
    326 }
    \n+
    \n+
    \n+\n+
    333 {
    \n+
    334 dampingFactor_ = d;
    \n+
    335 }
    \n+
    \n+
    336
    \n+
    \n+\n+
    343 {
    \n+
    344 return dampingFactor_;
    \n
    345 }
    \n-
    346 protected:
    \n-
    347 Matrix& mat;
    \n-
    348 private:
    \n-
    349 Row row;
    \n-
    350 protected:
    \n-\n-
    352 };
    \n-
    353
    \n-
    354 template<class T, class A, int n, int m, int transpose>
    \n-
    355 class EntryAccumulator
    \n-
    356 : public EntryAccumulatorFather<T,A,n,m>
    \n-
    357 {
    \n-
    358 public:
    \n-\n-
    360 typedef typename Matrix::size_type size_type;
    \n+
    \n+
    \n+\n+
    357 double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    \n+
    358 : maxLevel_(maxLevel), coarsenTarget_(coarsenTarget), minCoarsenRate_(minCoarsenRate),
    \n+
    359 dampingFactor_(prolongDamp), accumulate_( accumulate)
    \n+
    360 {}
    \n+
    \n
    361
    \n-
    362 EntryAccumulator(Matrix& mat_)
    \n-
    363 : EntryAccumulatorFather<T,A,n,m>(mat_)
    \n-
    364 {}
    \n-
    365
    \n-
    366 template<class T1, class T2>
    \n-
    367 void operator()(const T1& t1, const T2& t2, size_type i)
    \n-
    368 {
    \n-
    369 assert(this->col.index()==i);
    \n-
    370 addMatMultMat(*(this->col),t1,t2);
    \n-
    371 }
    \n-
    372 };
    \n-
    373
    \n-
    374 template<class T, class A, int n, int m>
    \n-
    375 class EntryAccumulator<T,A,n,m,0>
    \n-
    376 : public EntryAccumulatorFather<T,A,n,m>
    \n-
    377 {
    \n-
    378 public:
    \n-\n-
    380 typedef typename Matrix::size_type size_type;
    \n-
    381
    \n-
    382 EntryAccumulator(Matrix& mat_)
    \n-
    383 : EntryAccumulatorFather<T,A,n,m>(mat_)
    \n-
    384 {}
    \n+
    362 private:
    \n+
    366 int maxLevel_;
    \n+
    370 int coarsenTarget_;
    \n+
    374 double minCoarsenRate_;
    \n+
    378 double dampingFactor_;
    \n+
    383 AccumulationMode accumulate_;
    \n+
    384 };
    \n+
    \n
    385
    \n-
    386 template<class T1, class T2>
    \n-
    387 void operator()(const T1& t1, const T2& t2, size_type i, size_type j)
    \n-
    388 {
    \n-
    389 addMatMultMat(this->mat[i][j], t1, t2);
    \n-
    390 }
    \n-
    391 };
    \n-
    392
    \n-
    393 template<class T, class A, int n, int m>
    \n-
    394 class EntryAccumulator<T,A,n,m,1>
    \n-
    395 : public EntryAccumulatorFather<T,A,n,m>
    \n-
    396 {
    \n-
    397 public:
    \n-\n-
    399 typedef typename Matrix::size_type size_type;
    \n-
    400
    \n-
    401 EntryAccumulator(Matrix& mat_)
    \n-
    402 : EntryAccumulatorFather<T,A,n,m>(mat_)
    \n-
    403 {}
    \n-
    404
    \n-
    405 template<class T1, class T2>
    \n-
    406 void operator()(const T1& t1, const T2& t2, size_type i, size_type j)
    \n-
    407 {
    \n-
    408 addTransposeMatMultMat(this->mat[i][j], t1, t2);
    \n-
    409 }
    \n-
    410 };
    \n-
    411
    \n-
    412 template<class T, class A, int n, int m>
    \n-
    413 class EntryAccumulator<T,A,n,m,2>
    \n-
    414 : public EntryAccumulatorFather<T,A,n,m>
    \n-
    415 {
    \n-
    416 public:
    \n-\n-
    418 typedef typename Matrix::size_type size_type;
    \n-
    419
    \n-
    420 EntryAccumulator(Matrix& mat_)
    \n-
    421 : EntryAccumulatorFather<T,A,n,m>(mat_)
    \n-
    422 {}
    \n-
    423
    \n-
    424 template<class T1, class T2>
    \n-
    425 void operator()(const T1& t1, const T2& t2, [[maybe_unused]] size_type i)
    \n-
    426 {
    \n-
    427 assert(this->col.index()==i);
    \n-
    428 addMatMultTransposeMat(*this->col,t1,t2);
    \n-
    429 }
    \n-
    430 };
    \n-
    431
    \n+
    \n+\n+
    393 {
    \n+
    394 public:
    \n+
    \n+
    401 void setDebugLevel(int level)
    \n+
    402 {
    \n+
    403 debugLevel_ = level;
    \n+
    404 }
    \n+
    \n+
    405
    \n+
    \n+
    411 int debugLevel() const
    \n+
    412 {
    \n+
    413 return debugLevel_;
    \n+
    414 }
    \n+
    \n+
    415
    \n+
    \n+
    420 void setNoPreSmoothSteps(std::size_t steps)
    \n+
    421 {
    \n+
    422 preSmoothSteps_=steps;
    \n+
    423 }
    \n+
    \n+
    \n+
    428 std::size_t getNoPreSmoothSteps() const
    \n+
    429 {
    \n+
    430 return preSmoothSteps_;
    \n+
    431 }
    \n+
    \n
    432
    \n-
    433 template<int transpose>
    \n-
    434 struct SizeSelector
    \n-
    435 {};
    \n-
    436
    \n-
    437 template<>
    \n-
    438 struct SizeSelector<0>
    \n-
    439 {
    \n-
    440 template<class M1, class M2>
    \n-
    441 static std::tuple<typename M1::size_type, typename M2::size_type>
    \n-
    442 size(const M1& m1, const M2& m2)
    \n-
    443 {
    \n-
    444 return std::make_tuple(m1.N(), m2.M());
    \n-
    445 }
    \n-
    446 };
    \n-
    447
    \n-
    448 template<>
    \n-
    449 struct SizeSelector<1>
    \n-
    450 {
    \n-
    451 template<class M1, class M2>
    \n-
    452 static std::tuple<typename M1::size_type, typename M2::size_type>
    \n-
    453 size(const M1& m1, const M2& m2)
    \n+
    \n+
    437 void setNoPostSmoothSteps(std::size_t steps)
    \n+
    438 {
    \n+
    439 postSmoothSteps_=steps;
    \n+
    440 }
    \n+
    \n+
    \n+
    445 std::size_t getNoPostSmoothSteps() const
    \n+
    446 {
    \n+
    447 return postSmoothSteps_;
    \n+
    448 }
    \n+
    \n+
    449
    \n+
    \n+
    453 void setGamma(std::size_t gamma)
    \n
    454 {
    \n-
    455 return std::make_tuple(m1.M(), m2.M());
    \n+
    455 gamma_=gamma;
    \n
    456 }
    \n-
    457 };
    \n-
    458
    \n-
    459
    \n-
    460 template<>
    \n-
    461 struct SizeSelector<2>
    \n-
    462 {
    \n-
    463 template<class M1, class M2>
    \n-
    464 static std::tuple<typename M1::size_type, typename M2::size_type>
    \n-
    465 size(const M1& m1, const M2& m2)
    \n-
    466 {
    \n-
    467 return std::make_tuple(m1.N(), m2.N());
    \n-
    468 }
    \n-
    469 };
    \n-
    470
    \n-
    471 template<int transpose, class T, class A, class A1, class A2, int n1, int m1, int n2, int m2, int n3, int m3>
    \n-
    472 void matMultMat(BCRSMatrix<FieldMatrix<T,n1,m1>,A>& res, const BCRSMatrix<FieldMatrix<T,n2,m2>,A1>& mat1,
    \n-
    473 const BCRSMatrix<FieldMatrix<T,n3,m3>,A2>& mat2)
    \n-
    474 {
    \n-
    475 // First step is to count the number of nonzeros
    \n-
    476 typename BCRSMatrix<FieldMatrix<T,n1,m1>,A>::size_type rows, cols;
    \n-
    477 std::tie(rows,cols)=SizeSelector<transpose>::size(mat1, mat2);
    \n-
    478 MatrixInitializer<transpose,T,A,n1,m1> patternInit(res, rows);
    \n-
    479 Timer timer;
    \n-
    480 NonzeroPatternTraverser<transpose>::traverse(mat1,mat2,patternInit);
    \n-
    481 res.setSize(rows, cols, patternInit.nonzeros());
    \n-
    482 res.setBuildMode(BCRSMatrix<FieldMatrix<T,n1,m1>,A>::row_wise);
    \n-
    483
    \n-
    484 //std::cout<<"Counting nonzeros took "<<timer.elapsed()<<std::endl;
    \n-
    485 timer.reset();
    \n-
    486
    \n-
    487 // Second step is to allocate the storage for the result and initialize the nonzero pattern
    \n-
    488 patternInit.initPattern(mat1, mat2);
    \n-
    489
    \n-
    490 //std::cout<<"Setting up sparsity pattern took "<<timer.elapsed()<<std::endl;
    \n-
    491 timer.reset();
    \n-
    492 // As a last step calculate the entries
    \n-
    493 res = 0.0;
    \n-
    494 EntryAccumulator<T,A,n1,m1, transpose> entriesAccu(res);
    \n-
    495 NonzeroPatternTraverser<transpose>::traverse(mat1,mat2,entriesAccu);
    \n-
    496 //std::cout<<"Calculating entries took "<<timer.elapsed()<<std::endl;
    \n-
    497 }
    \n-
    498
    \n-
    499 }
    \n-
    500
    \n-
    508 template<typename M1, typename M2>
    \n-
    \n-\n-
    510 {};
    \n-
    \n-
    511
    \n-
    512 template<typename T, int n, int k, int m>
    \n-
    \n-\n-
    514 {
    \n-\n-
    516 };
    \n-
    \n-
    517
    \n-
    518 template<typename T, typename A, typename A1, int n, int k, int m>
    \n-
    \n-\n-
    520 {
    \n-\n-
    522 std::allocator<typename MatMultMatResult<FieldMatrix<T,n,k>,FieldMatrix<T,k,m> >::type> > type;
    \n-
    523 };
    \n-
    \n-
    524
    \n-
    525
    \n-
    533 template<typename M1, typename M2>
    \n-
    \n-\n-
    535 {};
    \n-
    \n-
    536
    \n-
    537 template<typename T, int n, int k, int m>
    \n-
    \n-\n-
    539 {
    \n-\n-
    541 };
    \n-
    \n-
    542
    \n-
    543 template<typename T, typename A, typename A1, int n, int k, int m>
    \n-
    \n-\n-
    545 {
    \n-\n-
    547 std::allocator<typename MatMultMatResult<FieldMatrix<T,n,k>,FieldMatrix<T,k,m> >::type> > type;
    \n-
    548 };
    \n-
    \n-
    549
    \n-
    550
    \n-
    559 template<class T, class A, class A1, class A2, int n, int m, int k>
    \n-
    \n-\n-
    561 const BCRSMatrix<FieldMatrix<T,k,m>,A2>& matt, [[maybe_unused]] bool tryHard=false)
    \n-
    562 {
    \n-
    563 matMultMat<2>(res,mat, matt);
    \n-
    564 }
    \n-
    \n-
    565
    \n-
    574 template<class T, class A, class A1, class A2, int n, int m, int k>
    \n-
    \n-\n-
    576 const BCRSMatrix<FieldMatrix<T,k,m>,A2>& matt, bool tryHard=false)
    \n-
    577 {
    \n-
    578 matMultMat<0>(res,mat, matt);
    \n-
    579 }
    \n-
    \n-
    580
    \n-
    589 template<class T, class A, class A1, class A2, int n, int m, int k>
    \n-
    \n-\n-
    591 const BCRSMatrix<FieldMatrix<T,k,m>,A2>& matt, [[maybe_unused]] bool tryHard=false)
    \n-
    592 {
    \n-
    593 matMultMat<1>(res,mat, matt);
    \n-
    594 }
    \n-
    \n-
    595
    \n-
    596}
    \n-
    597#endif
    \n-
    Implementation of the BCRSMatrix class.
    \n-
    BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
    Definition matrixmatrix.hh:379
    \n-
    FieldMatrix< T, n, m > type
    Definition matrixmatrix.hh:515
    \n-
    void transposeMatMultMat(BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const BCRSMatrix< FieldMatrix< T, k, n >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
    Calculate product of a transposed sparse matrix with another sparse matrices ( ).
    Definition matrixmatrix.hh:590
    \n-
    void matMultMat(BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const BCRSMatrix< FieldMatrix< T, n, k >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
    Calculate product of two sparse matrices ( ).
    Definition matrixmatrix.hh:575
    \n-
    BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
    Definition matrixmatrix.hh:359
    \n-
    Matrix::RowIterator Row
    Definition matrixmatrix.hh:326
    \n-
    BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
    Definition matrixmatrix.hh:417
    \n-
    Dune::BCRSMatrix< Dune::FieldMatrix< T, n, m >, TA > Matrix
    Definition matrixmatrix.hh:228
    \n-
    Matrix::size_type size_type
    Definition matrixmatrix.hh:360
    \n-
    Matrix::size_type size_type
    Definition matrixmatrix.hh:380
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n-
    Matrix::ColIterator Col
    Definition matrixmatrix.hh:327
    \n-
    Matrix::size_type size_type
    Definition matrixmatrix.hh:188
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    Matrix::size_type size_type
    Definition matrixmatrix.hh:230
    \n-\n-
    void matMultTransposeMat(BCRSMatrix< FieldMatrix< T, n, k >, A > &res, const BCRSMatrix< FieldMatrix< T, n, m >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
    Calculate product of a sparse matrix with a transposed sparse matrices ( ).
    Definition matrixmatrix.hh:560
    \n-
    BCRSMatrix< FieldMatrix< T, n, m >, A >::CreateIterator CreateIterator
    Definition matrixmatrix.hh:156
    \n-
    BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
    Definition matrixmatrix.hh:398
    \n-
    Dune::BCRSMatrix< FieldMatrix< T, n, m >, TA > Matrix
    Definition matrixmatrix.hh:186
    \n-
    BCRSMatrix< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type, std::allocator< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type > > type
    Definition matrixmatrix.hh:522
    \n-
    Matrix::CreateIterator CreateIterator
    Definition matrixmatrix.hh:229
    \n-
    BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
    Definition matrixmatrix.hh:325
    \n-
    Matrix::size_type size_type
    Definition matrixmatrix.hh:399
    \n-
    Matrix::CreateIterator CreateIterator
    Definition matrixmatrix.hh:187
    \n-
    BCRSMatrix< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type, std::allocator< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type > > type
    Definition matrixmatrix.hh:547
    \n-
    Matrix::size_type size_type
    Definition matrixmatrix.hh:418
    \n-
    BCRSMatrix< FieldMatrix< T, n, m >, A >::size_type size_type
    Definition matrixmatrix.hh:157
    \n-
    @ do_break
    Definition matrixmatrix.hh:155
    \n-
    @ do_break
    Definition matrixmatrix.hh:324
    \n-
    @ do_break
    Definition matrixmatrix.hh:185
    \n+
    \n+
    \n+
    460 std::size_t getGamma() const
    \n+
    461 {
    \n+
    462 return gamma_;
    \n+
    463 }
    \n+
    \n+
    464
    \n+
    \n+
    469 void setAdditive(bool additive)
    \n+
    470 {
    \n+
    471 additive_=additive;
    \n+
    472 }
    \n+
    \n+
    473
    \n+
    \n+
    478 bool getAdditive() const
    \n+
    479 {
    \n+
    480 return additive_;
    \n+
    481 }
    \n+
    \n+
    482
    \n+
    \n+
    493 Parameters(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2,
    \n+
    494 double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    \n+\n+
    496 , debugLevel_(2), preSmoothSteps_(2), postSmoothSteps_(2), gamma_(1),
    \n+
    497 additive_(false)
    \n+
    498 {}
    \n+
    \n+
    499 private:
    \n+
    500 int debugLevel_;
    \n+
    501 std::size_t preSmoothSteps_;
    \n+
    502 std::size_t postSmoothSteps_;
    \n+
    503 std::size_t gamma_;
    \n+
    504 bool additive_;
    \n+
    505 };
    \n+
    \n+
    506
    \n+
    507 } //namespace AMG
    \n+
    508
    \n+
    509} //namespace Dune
    \n+
    510#endif
    \n+
    void setDefaultValuesAnisotropic(std::size_t dim, std::size_t diameter=2)
    Sets reasonable default values for an anisotropic problem.
    Definition parameters.hh:132
    \n+
    void setAdditive(bool additive)
    Set whether to use additive multigrid.
    Definition parameters.hh:469
    \n+
    void setSkipIsolated(bool skip)
    Set whether isolated aggregates will not be represented on the coarse level.
    Definition parameters.hh:171
    \n+
    void setProlongationDampingFactor(double d)
    Set the damping factor for the prolongation.
    Definition parameters.hh:332
    \n+
    double alpha() const
    Get the scaling value for marking connections as strong. Default value is 1/3.
    Definition parameters.hh:70
    \n+
    void setMaxAggregateSize(std::size_t size)
    Set the maximum number of nodes a aggregate is allowed to have.
    Definition parameters.hh:202
    \n+
    void setMinCoarsenRate(double rate)
    Set the minimum coarsening rate to be achieved in each coarsening.
    Definition parameters.hh:296
    \n+
    double minCoarsenRate() const
    Get the minimum coarsening rate to be achieved.
    Definition parameters.hh:304
    \n+
    std::size_t maxAggregateSize() const
    Get the maximum number of nodes a aggregate is allowed to have.
    Definition parameters.hh:194
    \n+
    void setAlpha(double a)
    Set the scaling value for marking connections as strong. Default value is 1/3.
    Definition parameters.hh:61
    \n+
    double beta() const
    Get the threshold for marking nodes as isolated. The default value is 1.0E-5.
    Definition parameters.hh:52
    \n+
    std::size_t maxConnectivity() const
    Get the maximum number of connections a aggregate is allowed to have.
    Definition parameters.hh:211
    \n+
    int coarsenTarget() const
    Get the maximum number of unknowns allowed on the coarsest level.
    Definition parameters.hh:286
    \n+
    void setAccumulate(AccumulationMode accu)
    Set whether he data should be accumulated on fewer processes on coarser levels.
    Definition parameters.hh:319
    \n+
    double getProlongationDampingFactor() const
    Get the damping factor for the prolongation.
    Definition parameters.hh:342
    \n+
    AccumulationMode accumulate() const
    Whether the data should be accumulated on fewer processes on coarser levels.
    Definition parameters.hh:312
    \n+
    void setMaxConnectivity(std::size_t connectivity)
    Set the maximum number of connections a aggregate is allowed to have.
    Definition parameters.hh:220
    \n+
    std::size_t minAggregateSize() const
    Get the minimum number of nodes a aggregate has to consist of.
    Definition parameters.hh:180
    \n+
    bool getAdditive() const
    Get whether to use additive multigrid.
    Definition parameters.hh:478
    \n+
    void setMaxLevel(int l)
    Set the maximum number of levels allowed in the hierarchy.
    Definition parameters.hh:263
    \n+
    void setDebugLevel(int level)
    Set the debugging level.
    Definition parameters.hh:401
    \n+
    std::size_t getGamma() const
    Get the value of gamma; 1 for V-cycle, 2 for W-cycle.
    Definition parameters.hh:460
    \n+
    void setNoPostSmoothSteps(std::size_t steps)
    Set the number of postsmoothing steps to apply.
    Definition parameters.hh:437
    \n+
    std::size_t getNoPreSmoothSteps() const
    Get the number of presmoothing steps to apply.
    Definition parameters.hh:428
    \n+
    DependencyParameters()
    Constructor.
    Definition parameters.hh:34
    \n+
    void setMinAggregateSize(std::size_t size)
    Set the minimum number of nodes a aggregate has to consist of.
    Definition parameters.hh:188
    \n+
    int maxLevel() const
    Get the maximum number of levels allowed in the hierarchy.
    Definition parameters.hh:270
    \n+
    void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)
    Sets reasonable default values for an isotropic problem.
    Definition parameters.hh:109
    \n+
    AggregationParameters()
    Constructor.
    Definition parameters.hh:95
    \n+
    bool skipIsolated() const
    Whether isolated aggregates will not be represented on the coarse level.
    Definition parameters.hh:161
    \n+
    Parameters(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2, double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    Constructor.
    Definition parameters.hh:493
    \n+
    void setCoarsenTarget(int nodes)
    Set the maximum number of unknowns allowed on the coarsest level.
    Definition parameters.hh:278
    \n+
    void setNoPreSmoothSteps(std::size_t steps)
    Set the number of presmoothing steps to apply.
    Definition parameters.hh:420
    \n+
    AccumulationMode
    Identifiers for the different accumulation modes.
    Definition parameters.hh:232
    \n+
    void setBeta(double b)
    Set threshold for marking nodes as isolated. The default value is 1.0E-5.
    Definition parameters.hh:42
    \n+
    std::size_t maxDistance() const
    Get the maximal distance allowed between two nodes in a aggregate.
    Definition parameters.hh:144
    \n+
    CoarseningParameters(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2, double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    Constructor.
    Definition parameters.hh:356
    \n+
    void setGamma(std::size_t gamma)
    Set the value of gamma; 1 for V-cycle, 2 for W-cycle.
    Definition parameters.hh:453
    \n+
    void setAccumulate(bool accu)
    Definition parameters.hh:324
    \n+
    void setMaxDistance(std::size_t distance)
    Set the maximal distance allowed between two nodes in a aggregate.
    Definition parameters.hh:154
    \n+
    int debugLevel() const
    Get the debugging Level.
    Definition parameters.hh:411
    \n+
    std::size_t getNoPostSmoothSteps() const
    Get the number of postsmoothing steps to apply.
    Definition parameters.hh:445
    \n+
    @ atOnceAccu
    Accumulate data to one process at once.
    Definition parameters.hh:244
    \n+
    @ noAccu
    No data accumulution.
    Definition parameters.hh:238
    \n+
    @ successiveAccu
    Successively accumulate to fewer processes.
    Definition parameters.hh:248
    \n
    Definition allocator.hh:11
    \n-
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    Iterator end()
    Get iterator to one beyond last row.
    Definition bcrsmatrix.hh:681
    \n-
    row_type::Iterator ColIterator
    Iterator for the entries of each row.
    Definition bcrsmatrix.hh:704
    \n-
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n-
    CreateIterator createbegin()
    get initial create iterator
    Definition bcrsmatrix.hh:1097
    \n-
    Iterator access to matrix rows
    Definition bcrsmatrix.hh:579
    \n-
    Iterator class for sequential creation of blocks
    Definition bcrsmatrix.hh:957
    \n-
    void insert(size_type j)
    put column index in row
    Definition bcrsmatrix.hh:1064
    \n-
    Helper TMP to get the result type of a sparse matrix matrix multiplication ( )
    Definition matrixmatrix.hh:510
    \n-
    Helper TMP to get the result type of a sparse matrix matrix multiplication ( )
    Definition matrixmatrix.hh:535
    \n-
    Definition matrixutils.hh:27
    \n+
    Parameters needed to check whether a node depends on another.
    Definition parameters.hh:31
    \n+
    Parameters needed for the aggregation process.
    Definition parameters.hh:84
    \n+
    Parameters for the complete coarsening process.
    Definition parameters.hh:258
    \n+
    All parameters for AMG.
    Definition parameters.hh:393
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,742 +1,462 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-matrixmatrix.hh\n+ * _\bp_\ba_\ba_\bm_\bg\n+parameters.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_MATRIXMATRIX_HH\n-6#define DUNE_ISTL_MATRIXMATRIX_HH\n+5#ifndef DUNE_AMG_PARAMETERS_HH\n+6#define DUNE_AMG_PARAMETERS_HH\n 7\n-8#include \n+8#include \n 9\n-10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-11#include \n-12#include \n-13namespace _\bD_\bu_\bn_\be\n-14{\n-15\n-26 namespace\n-27 {\n-28\n-37 template\n-38 struct NonzeroPatternTraverser\n-39 {};\n-40\n-41\n-42 template<>\n-43 struct NonzeroPatternTraverser<0>\n-44 {\n-45 template\n-46 static void traverse(const _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,A1>& A,\n-47 const _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>& B,\n-48 F& func)\n-49 {\n-50 if(A.M()!=B.N())\n-51 DUNE_THROW(ISTLError, \"The sizes of the matrices do not match: \"<,A1>::\n-ConstRowIterator Row;\n-54 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,A1>::\n-ConstColIterator Col;\n-55 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>::\n-ConstColIterator BCol;\n-56 for(Row row= A.begin(); row != A.end(); ++row) {\n-57 // Loop over all column entries\n-58 for(Col _\bc_\bo_\bl = row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl) {\n-59 // entry at i,k\n-60 // search for all nonzeros in row k\n-61 for(BCol bcol = B[_\bc_\bo_\bl.index()].begin(); bcol != B[_\bc_\bo_\bl.index()].end();\n-++bcol) {\n-62 func(*_\bc_\bo_\bl, *bcol, row.index(), bcol.index());\n-63 }\n+10namespace _\bD_\bu_\bn_\be\n+11{\n+12 namespace Amg\n+13 {\n+_\b3_\b0 class _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+31 {\n+32 public:\n+_\b3_\b4 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs()\n+35 : alpha_(1.0/3.0), beta_(1.0E-5)\n+36 {}\n+37\n+_\b4_\b2 void _\bs_\be_\bt_\bB_\be_\bt_\ba(double b)\n+43 {\n+44 beta_ = b;\n+45 }\n+46\n+_\b5_\b2 double _\bb_\be_\bt_\ba() const\n+53 {\n+54 return beta_;\n+55 }\n+56\n+_\b6_\b1 void _\bs_\be_\bt_\bA_\bl_\bp_\bh_\ba(double a)\n+62 {\n+63 alpha_ = a;\n 64 }\n-65 }\n-66 }\n-67\n-68 };\n-69\n-70 template<>\n-71 struct NonzeroPatternTraverser<1>\n-72 {\n-73 template\n-74 static void traverse(const _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bn_\b>,A1>& A,\n-75 const _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>& B,\n-76 F& func)\n-77 {\n+65\n+_\b7_\b0 double _\ba_\bl_\bp_\bh_\ba() const\n+71 {\n+72 return alpha_;\n+73 }\n+74\n+75 private:\n+76 double alpha_, beta_;\n+77 };\n 78\n-79 if(A.N()!=B.N())\n-80 DUNE_THROW(ISTLError, \"The sizes of the matrices do not match: \"<,A1>::\n-ConstRowIterator Row;\n-83 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bn_\b>,A1>::\n-ConstColIterator Col;\n-84 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>::\n-ConstColIterator BCol;\n-85\n-86 for(Row row=A.begin(); row!=A.end(); ++row) {\n-87 for(Col _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl!=row->end(); ++_\bc_\bo_\bl) {\n-88 for(BCol bcol = B[row.index()].begin(); bcol != B[row.index()].end();\n-++bcol) {\n-89 func(*_\bc_\bo_\bl, *bcol, _\bc_\bo_\bl.index(), bcol.index());\n-90 }\n-91 }\n-92 }\n-93 }\n-94 };\n-95\n-96 template<>\n-97 struct NonzeroPatternTraverser<2>\n-98 {\n-99 template\n-100 static void traverse(const BCRSMatrix,A1>& _\bm_\ba_\bt,\n-101 const BCRSMatrix,A2>& matt,\n-102 F& func)\n-103 {\n-104 if(_\bm_\ba_\bt.M()!=matt.M())\n-105 DUNE_THROW(ISTLError, \"The sizes of the matrices do not match: \"<<_\bm_\ba_\bt.M\n-()<<\"!=\"<,A1>::ConstRowIterator\n-row_iterator;\n-108 typedef typename BCRSMatrix,A1>::ConstColIterator\n-col_iterator;\n-109 typedef typename BCRSMatrix,A2>::ConstRowIterator\n-row_iterator_t;\n-110 typedef typename BCRSMatrix,A2>::ConstColIterator\n-col_iterator_t;\n-111\n-112 for(row_iterator mrow=_\bm_\ba_\bt.begin(); mrow != _\bm_\ba_\bt.end(); ++mrow) {\n-113 //iterate over the column entries\n-114 // mt is a transposed matrix crs therefore it is treated as a ccs matrix\n-115 // and the row_iterator iterates over the columns of the transposed matrix.\n-116 // search the row of the transposed matrix for an entry with the same index\n-117 // as the mcol iterator\n-118\n-119 for(row_iterator_t mtcol=matt.begin(); mtcol != matt.end(); ++mtcol) {\n-120 //Search for col entries in mat that have a corrsponding row index in matt\n-121 // (i.e. corresponding col index in the as this is the transposed matrix\n-122 col_iterator_t mtrow=mtcol->begin();\n-123 bool funcCalled = false;\n-124 for(col_iterator mcol=mrow->begin(); mcol != mrow->end(); ++mcol) {\n-125 // search\n-126 // TODO: This should probably be substituted by a binary search\n-127 for( ; mtrow != mtcol->end(); ++mtrow)\n-128 if(mtrow.index()>=mcol.index())\n-129 break;\n-130 if(mtrow != mtcol->end() && mtrow.index()==mcol.index()) {\n-131 func(*mcol, *mtrow, mtcol.index());\n-132 funcCalled = true;\n-133 // In some cases we only search for one pair, then we break here\n-134 // and continue with the next column.\n-135 if(F::do_break)\n-136 break;\n-137 }\n-138 }\n-139 // move on with func only if func was called, otherwise they might\n-140 // get out of sync\n-141 if (funcCalled)\n-142 func.nextCol();\n-143 }\n-144 func.nextRow();\n-145 }\n-146 }\n-147 };\n-148\n-149\n-150\n-151 template\n-152 class SparsityPatternInitializer\n-153 {\n-154 public:\n-_\b1_\b5_\b5 enum {_\bd_\bo_\b__\bb_\br_\be_\ba_\bk=true};\n-_\b1_\b5_\b6 typedef typename _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A>_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b1_\b5_\b7 typedef typename _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-158\n-159 SparsityPatternInitializer(_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iter)\n-160 : rowiter(iter)\n-161 {}\n-162\n-163 template\n-164 void operator()(const T1&, const T2&, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n-165 {\n-166 rowiter._\bi_\bn_\bs_\be_\br_\bt(j);\n-167 }\n-168\n-169 void nextRow()\n-170 {\n-171 ++rowiter;\n-172 }\n-173 void nextCol()\n-174 {}\n+_\b8_\b2 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs :\n+83 public _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+84 {\n+85 public:\n+_\b9_\b5 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs()\n+96 : maxDistance_(2), minAggregateSize_(4), maxAggregateSize_(6),\n+97 connectivity_(15), skipiso_(false)\n+98 {}\n+99\n+_\b1_\b0_\b9 void _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(std::size_t dim, std::size_t diameter=2)\n+110 {\n+111 maxDistance_=diameter-1;\n+112 std::size_t csize=1;\n+113\n+114 for(; dim>0; dim--) {\n+115 csize*=diameter;\n+116 maxDistance_+=diameter-1;\n+117 }\n+118 minAggregateSize_=csize;\n+119 maxAggregateSize_=static_cast(csize*1.5);\n+120 }\n+121\n+_\b1_\b3_\b2 void _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bA_\bn_\bi_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(std::size_t dim,std::size_t diameter=2)\n+133 {\n+134 _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(dim, diameter);\n+135 maxDistance_+=dim-1;\n+136 }\n+_\b1_\b4_\b4 std::size_t _\bm_\ba_\bx_\bD_\bi_\bs_\bt_\ba_\bn_\bc_\be() const { return maxDistance_;}\n+145\n+_\b1_\b5_\b4 void _\bs_\be_\bt_\bM_\ba_\bx_\bD_\bi_\bs_\bt_\ba_\bn_\bc_\be(std::size_t distance) { maxDistance_ = distance;}\n+155\n+_\b1_\b6_\b1 bool _\bs_\bk_\bi_\bp_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd() const\n+162 {\n+163 return skipiso_;\n+164 }\n+165\n+_\b1_\b7_\b1 void _\bs_\be_\bt_\bS_\bk_\bi_\bp_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd(bool skip)\n+172 {\n+173 skipiso_=skip;\n+174 }\n 175\n-176 private:\n-177 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br rowiter;\n-178 };\n-179\n-180\n-181 template\n-182 class MatrixInitializer\n-183 {\n-184 public:\n-_\b1_\b8_\b5 enum {_\bd_\bo_\b__\bb_\br_\be_\ba_\bk=true};\n-_\b1_\b8_\b6 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,TA> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b1_\b8_\b7 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b1_\b8_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+_\b1_\b8_\b0 std::size_t _\bm_\bi_\bn_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be() const { return minAggregateSize_;}\n+181\n+_\b1_\b8_\b8 void _\bs_\be_\bt_\bM_\bi_\bn_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be(std::size_t size){ minAggregateSize_=size;}\n 189\n-190 MatrixInitializer(_\bM_\ba_\bt_\br_\bi_\bx& A_, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be)\n-191 : count(0), A(A_)\n-192 {}\n-193 template\n-194 void operator()(const T1&, const T2&, int)\n-195 {\n-196 ++count;\n-197 }\n-198\n-199 void nextCol()\n-200 {}\n-201\n-202 void nextRow()\n-203 {}\n-204\n-205 std::size_t nonzeros()\n-206 {\n-207 return count;\n-208 }\n-209\n-210 template\n-211 void initPattern(const BCRSMatrix,A1>& mat1,\n-212 const BCRSMatrix,A2>& mat2)\n-213 {\n-214 SparsityPatternInitializer sparsity(A._\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn());\n-215 NonzeroPatternTraverser::traverse(mat1,mat2,sparsity);\n-216 }\n-217\n-218 private:\n-219 std::size_t count;\n-220 _\bM_\ba_\bt_\br_\bi_\bx& A;\n-221 };\n-222\n-223 template\n-224 class MatrixInitializer<1,T,TA,n,m>\n-225 {\n-226 public:\n-_\b2_\b2_\b7 enum {_\bd_\bo_\b__\bb_\br_\be_\ba_\bk=false};\n-_\b2_\b2_\b8 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,TA> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b2_\b2_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b2_\b3_\b0 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-231\n-232 MatrixInitializer(_\bM_\ba_\bt_\br_\bi_\bx& A_, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows)\n-233 : A(A_), entries(rows)\n-234 {}\n-235\n-236 template\n-237 void operator()(const T1&, const T2&, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n-238 {\n-239 entries[i].insert(j);\n-240 }\n-241\n-242 void nextCol()\n-243 {}\n-244\n-245 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nonzeros()\n-246 {\n-247 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nnz=0;\n-248 typedef typename std::vector >::const_iterator Iter;\n-249 for(Iter iter = entries.begin(); iter != entries.end(); ++iter)\n-250 nnz+=(*iter).size();\n-251 return nnz;\n-252 }\n-253 template\n-254 void initPattern(const BCRSMatrix,A1>&,\n-255 const BCRSMatrix,A2>&)\n-256 {\n-257 typedef typename std::vector >::const_iterator Iter;\n-258 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br citer = A._\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn();\n-259 for(Iter iter = entries.begin(); iter != entries.end(); ++iter, ++citer) {\n-260 typedef std::set::const_iterator SetIter;\n-261 for(SetIter index=iter->begin(); index != iter->end(); ++index)\n-262 citer._\bi_\bn_\bs_\be_\br_\bt(*index);\n-263 }\n-264 }\n-265\n-266 private:\n-267 _\bM_\ba_\bt_\br_\bi_\bx& A;\n-268 std::vector > entries;\n-269 };\n-270\n-271 template\n-272 struct MatrixInitializer<0,T,TA,n,m>\n-273 : public MatrixInitializer<1,T,TA,n,m>\n-274 {\n-275 MatrixInitializer(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,TA>& A_,\n-276 typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,TA>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows)\n-277 : MatrixInitializer<1,T,TA,n,m>(A_,rows)\n-278 {}\n-279 };\n-280\n-281\n-282 template\n-283 void addMatMultTransposeMat(FieldMatrix& res, const\n-FieldMatrix& _\bm_\ba_\bt,\n-284 const FieldMatrix& matt)\n-285 {\n-286 typedef typename FieldMatrix::size_type size_type;\n-287\n-288 for(size_type row=0; row\n-296 void addTransposeMatMultMat(FieldMatrix& res, const\n-FieldMatrix& _\bm_\ba_\bt,\n-297 const FieldMatrix& matt)\n-298 {\n-299 typedef typename FieldMatrix::size_type size_type;\n-300 for(size_type i=0; i\n-308 void addMatMultMat(FieldMatrix& res, const FieldMatrix& _\bm_\ba_\bt,\n-309 const FieldMatrix& matt)\n-310 {\n-311 typedef typename FieldMatrix::size_type size_type;\n-312 for(size_type row=0; row\n-321 class EntryAccumulatorFather\n-322 {\n-323 public:\n-_\b3_\b2_\b4 enum {_\bd_\bo_\b__\bb_\br_\be_\ba_\bk=false};\n-_\b3_\b2_\b5 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b3_\b2_\b6 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bR_\bo_\bw;\n-_\b3_\b2_\b7 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bl;\n-328\n-329 EntryAccumulatorFather(_\bM_\ba_\bt_\br_\bi_\bx& mat_)\n-330 : _\bm_\ba_\bt(mat_), row(_\bm_\ba_\bt.begin())\n-331 {\n-332 _\bm_\ba_\bt=0;\n-333 _\bc_\bo_\bl=row->begin();\n-334 }\n-335 void nextRow()\n-336 {\n-337 ++row;\n-338 if(row!=_\bm_\ba_\bt._\be_\bn_\bd())\n-339 _\bc_\bo_\bl=row->begin();\n-340 }\n-341\n-342 void nextCol()\n+_\b1_\b9_\b4 std::size_t _\bm_\ba_\bx_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be() const { return maxAggregateSize_;}\n+195\n+_\b2_\b0_\b2 void _\bs_\be_\bt_\bM_\ba_\bx_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be(std::size_t size){ maxAggregateSize_ = size;}\n+203\n+_\b2_\b1_\b1 std::size_t _\bm_\ba_\bx_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by() const { return connectivity_;}\n+212\n+_\b2_\b2_\b0 void _\bs_\be_\bt_\bM_\ba_\bx_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(std::size_t connectivity){ connectivity_ =\n+connectivity;}\n+221\n+222 private:\n+223 std::size_t maxDistance_, minAggregateSize_, maxAggregateSize_,\n+connectivity_;\n+224 bool skipiso_;\n+225\n+226 };\n+227\n+228\n+_\b2_\b3_\b2 enum _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be {\n+_\b2_\b3_\b8 _\bn_\bo_\bA_\bc_\bc_\bu = 0,\n+_\b2_\b4_\b4 _\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu=1,\n+248 _\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu=2\n+_\b2_\b4_\b9 };\n+250\n+251\n+252\n+253\n+_\b2_\b5_\b7 class _\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs : public _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+258 {\n+259 public:\n+_\b2_\b6_\b3 void _\bs_\be_\bt_\bM_\ba_\bx_\bL_\be_\bv_\be_\bl(int l)\n+264 {\n+265 maxLevel_ = l;\n+266 }\n+_\b2_\b7_\b0 int _\bm_\ba_\bx_\bL_\be_\bv_\be_\bl() const\n+271 {\n+272 return maxLevel_;\n+273 }\n+274\n+_\b2_\b7_\b8 void _\bs_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt(int nodes)\n+279 {\n+280 coarsenTarget_ = nodes;\n+281 }\n+282\n+_\b2_\b8_\b6 int _\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt() const\n+287 {\n+288 return coarsenTarget_;\n+289 }\n+290\n+_\b2_\b9_\b6 void _\bs_\be_\bt_\bM_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be(double rate)\n+297 {\n+298 minCoarsenRate_ = rate;\n+299 }\n+300\n+_\b3_\b0_\b4 double _\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be() const\n+305 {\n+306 return minCoarsenRate_;\n+307 }\n+308\n+_\b3_\b1_\b2 _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be() const\n+313 {\n+314 return accumulate_;\n+315 }\n+_\b3_\b1_\b9 void _\bs_\be_\bt_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be(_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be accu)\n+320 {\n+321 accumulate_=accu;\n+322 }\n+323\n+_\b3_\b2_\b4 void _\bs_\be_\bt_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be(bool accu){\n+325 accumulate_=accu ? _\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu : _\bn_\bo_\bA_\bc_\bc_\bu;\n+326 }\n+_\b3_\b3_\b2 void _\bs_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br(double d)\n+333 {\n+334 dampingFactor_ = d;\n+335 }\n+336\n+_\b3_\b4_\b2 double _\bg_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br() const\n 343 {\n-344 ++this->_\bc_\bo_\bl;\n+344 return dampingFactor_;\n 345 }\n-346 protected:\n-_\b3_\b4_\b7 Matrix& _\bm_\ba_\bt;\n-348 private:\n-349 _\bR_\bo_\bw row;\n-350 protected:\n-_\b3_\b5_\b1 _\bC_\bo_\bl _\bc_\bo_\bl;\n-352 };\n-353\n-354 template\n-355 class EntryAccumulator\n-356 : public EntryAccumulatorFather\n-357 {\n-358 public:\n-_\b3_\b5_\b9 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b3_\b6_\b0 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+_\b3_\b5_\b6 _\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(int _\bm_\ba_\bx_\bL_\be_\bv_\be_\bl=100, int _\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt=1000, double\n+_\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be=1.2,\n+357 double prolongDamp=1.6, _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be=_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu)\n+358 : maxLevel_(_\bm_\ba_\bx_\bL_\be_\bv_\be_\bl), coarsenTarget_(_\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt), minCoarsenRate_\n+(_\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be),\n+359 dampingFactor_(prolongDamp), accumulate_( _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be)\n+360 {}\n 361\n-362 EntryAccumulator(_\bM_\ba_\bt_\br_\bi_\bx& mat_)\n-363 : EntryAccumulatorFather(mat_)\n-364 {}\n-365\n-366 template\n-367 void operator()(const T1& t1, const T2& t2, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n-368 {\n-369 assert(this->_\bc_\bo_\bl.index()==i);\n-370 addMatMultMat(*(this->_\bc_\bo_\bl),t1,t2);\n-371 }\n-372 };\n-373\n-374 template\n-375 class EntryAccumulator\n-376 : public EntryAccumulatorFather\n-377 {\n-378 public:\n-_\b3_\b7_\b9 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b3_\b8_\b0 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-381\n-382 EntryAccumulator(_\bM_\ba_\bt_\br_\bi_\bx& mat_)\n-383 : EntryAccumulatorFather(mat_)\n-384 {}\n+362 private:\n+366 int maxLevel_;\n+370 int coarsenTarget_;\n+374 double minCoarsenRate_;\n+378 double dampingFactor_;\n+383 _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be accumulate_;\n+384 };\n 385\n-386 template\n-387 void operator()(const T1& t1, const T2& t2, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n-388 {\n-389 addMatMultMat(this->mat[i][j], t1, t2);\n-390 }\n-391 };\n-392\n-393 template\n-394 class EntryAccumulator\n-395 : public EntryAccumulatorFather\n-396 {\n-397 public:\n-_\b3_\b9_\b8 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b3_\b9_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-400\n-401 EntryAccumulator(_\bM_\ba_\bt_\br_\bi_\bx& mat_)\n-402 : EntryAccumulatorFather(mat_)\n-403 {}\n-404\n-405 template\n-406 void operator()(const T1& t1, const T2& t2, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n-407 {\n-408 addTransposeMatMultMat(this->mat[i][j], t1, t2);\n-409 }\n-410 };\n-411\n-412 template\n-413 class EntryAccumulator\n-414 : public EntryAccumulatorFather\n-415 {\n-416 public:\n-_\b4_\b1_\b7 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b4_\b1_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-419\n-420 EntryAccumulator(_\bM_\ba_\bt_\br_\bi_\bx& mat_)\n-421 : EntryAccumulatorFather(mat_)\n-422 {}\n-423\n-424 template\n-425 void operator()(const T1& t1, const T2& t2, [[maybe_unused]] _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n-426 {\n-427 assert(this->_\bc_\bo_\bl.index()==i);\n-428 addMatMultTransposeMat(*this->_\bc_\bo_\bl,t1,t2);\n-429 }\n-430 };\n-431\n+_\b3_\b9_\b2 class _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs : public _\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+393 {\n+394 public:\n+_\b4_\b0_\b1 void _\bs_\be_\bt_\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl(int level)\n+402 {\n+403 debugLevel_ = level;\n+404 }\n+405\n+_\b4_\b1_\b1 int _\bd_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl() const\n+412 {\n+413 return debugLevel_;\n+414 }\n+415\n+_\b4_\b2_\b0 void _\bs_\be_\bt_\bN_\bo_\bP_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs(std::size_t steps)\n+421 {\n+422 preSmoothSteps_=steps;\n+423 }\n+_\b4_\b2_\b8 std::size_t _\bg_\be_\bt_\bN_\bo_\bP_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs() const\n+429 {\n+430 return preSmoothSteps_;\n+431 }\n 432\n-433 template\n-434 struct SizeSelector\n-435 {};\n-436\n-437 template<>\n-438 struct SizeSelector<0>\n-439 {\n-440 template\n-441 static std::tuple\n-442 size(const M1& m1, const M2& m2)\n-443 {\n-444 return std::make_tuple(m1.N(), m2.M());\n-445 }\n-446 };\n-447\n-448 template<>\n-449 struct SizeSelector<1>\n-450 {\n-451 template\n-452 static std::tuple\n-453 size(const M1& m1, const M2& m2)\n+_\b4_\b3_\b7 void _\bs_\be_\bt_\bN_\bo_\bP_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs(std::size_t steps)\n+438 {\n+439 postSmoothSteps_=steps;\n+440 }\n+_\b4_\b4_\b5 std::size_t _\bg_\be_\bt_\bN_\bo_\bP_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs() const\n+446 {\n+447 return postSmoothSteps_;\n+448 }\n+449\n+_\b4_\b5_\b3 void _\bs_\be_\bt_\bG_\ba_\bm_\bm_\ba(std::size_t gamma)\n 454 {\n-455 return std::make_tuple(m1.M(), m2.M());\n+455 gamma_=gamma;\n 456 }\n-457 };\n-458\n-459\n-460 template<>\n-461 struct SizeSelector<2>\n-462 {\n-463 template\n-464 static std::tuple\n-465 size(const M1& m1, const M2& m2)\n-466 {\n-467 return std::make_tuple(m1.N(), m2.N());\n-468 }\n-469 };\n-470\n-471 template\n-472 void _\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt(BCRSMatrix,A>& res, const\n-BCRSMatrix,A1>& mat1,\n-473 const BCRSMatrix,A2>& mat2)\n-474 {\n-475 // First step is to count the number of nonzeros\n-476 typename BCRSMatrix,A>::size_type rows, cols;\n-477 std::tie(rows,cols)=SizeSelector::size(mat1, mat2);\n-478 MatrixInitializer patternInit(res, rows);\n-479 Timer timer;\n-480 NonzeroPatternTraverser::traverse(mat1,mat2,patternInit);\n-481 res.setSize(rows, cols, patternInit.nonzeros());\n-482 res.setBuildMode(BCRSMatrix,A>::row_wise);\n-483\n-484 //std::cout<<\"Counting nonzeros took \"< entriesAccu(res);\n-495 NonzeroPatternTraverser::traverse(mat1,mat2,entriesAccu);\n-496 //std::cout<<\"Calculating entries took \"<\n-_\b5_\b0_\b9 struct _\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt\n-510 {};\n-511\n-512 template\n-_\b5_\b1_\b3 struct _\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx >\n-514 {\n-_\b5_\b1_\b5 typedef _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b> _\bt_\by_\bp_\be;\n-516 };\n-517\n-518 template\n-_\b5_\b1_\b9 struct _\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A\n->,_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A1 > >\n-520 {\n-521 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be\n-_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b> >::type,\n-_\b5_\b2_\b2 std::allocator,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b> >::type> > _\bt_\by_\bp_\be;\n-523 };\n-524\n-525\n-533 template\n-_\b5_\b3_\b4 struct _\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt\n-535 {};\n-536\n-537 template\n-_\b5_\b3_\b8 struct _\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx >\n-539 {\n-_\b5_\b4_\b0 typedef _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b> _\bt_\by_\bp_\be;\n-541 };\n-542\n-543 template\n-_\b5_\b4_\b4 struct _\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A\n->,_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A1 > >\n-545 {\n-546 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be\n-_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b> >::type,\n-_\b5_\b4_\b7 std::allocator,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b> >::type> > _\bt_\by_\bp_\be;\n-548 };\n-549\n-550\n-559 template\n-_\b5_\b6_\b0 void _\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,A>& res, const\n-_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A1>& _\bm_\ba_\bt,\n-561 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>& matt, [[maybe_unused]] bool\n-tryHard=false)\n-562 {\n-563 matMultMat<2>(res,_\bm_\ba_\bt, matt);\n-564 }\n-565\n-574 template\n-_\b5_\b7_\b5 void _\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A>& res, const\n-_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,A1>& _\bm_\ba_\bt,\n-576 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>& matt, bool tryHard=false)\n-577 {\n-578 matMultMat<0>(res,_\bm_\ba_\bt, matt);\n-579 }\n-580\n-589 template\n-_\b5_\b9_\b0 void _\bt_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A>& res, const\n-_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bn_\b>,A1>& _\bm_\ba_\bt,\n-591 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>& matt, [[maybe_unused]] bool\n-tryHard=false)\n-592 {\n-593 matMultMat<1>(res,_\bm_\ba_\bt, matt);\n-594 }\n-595\n-596}\n-597#endif\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b0_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:379\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bk_\b _\b>_\b,_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-FieldMatrix< T, n, m > type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:515\n-_\bD_\bu_\bn_\be_\b:_\b:_\bt_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt\n-void transposeMatMultMat(BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const\n-BCRSMatrix< FieldMatrix< T, k, n >, A1 > &mat, const BCRSMatrix< FieldMatrix<\n-T, k, m >, A2 > &matt, bool tryHard=false)\n-Calculate product of a transposed sparse matrix with another sparse matrices\n-( ).\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:590\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt\n-void matMultMat(BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const BCRSMatrix<\n-FieldMatrix< T, n, k >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2\n-> &matt, bool tryHard=false)\n-Calculate product of two sparse matrices ( ).\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:575\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:359\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bR_\bo_\bw\n-Matrix::RowIterator Row\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:326\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b2_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:417\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\b1_\b,_\b _\bT_\b,_\b _\bT_\bA_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-Dune::BCRSMatrix< Dune::FieldMatrix< T, n, m >, TA > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:228\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:360\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b0_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:380\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bC_\bo_\bl\n-Matrix::ColIterator Col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:327\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:188\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\b1_\b,_\b _\bT_\b,_\b _\bT_\bA_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:230\n-_\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bn_\b _\b>_\b,_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm\n-_\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-FieldMatrix< T, n, m > type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:540\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt\n-void matMultTransposeMat(BCRSMatrix< FieldMatrix< T, n, k >, A > &res, const\n-BCRSMatrix< FieldMatrix< T, n, m >, A1 > &mat, const BCRSMatrix< FieldMatrix<\n-T, k, m >, A2 > &matt, bool tryHard=false)\n-Calculate product of a sparse matrix with a transposed sparse matrices ( ).\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:560\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-BCRSMatrix< FieldMatrix< T, n, m >, A >::CreateIterator CreateIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:156\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b1_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:398\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-Dune::BCRSMatrix< FieldMatrix< T, n, m >, TA > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:186\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bk_\b _\b>_\b,_\b _\bA_\b _\b>_\b,_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<\n-_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b1_\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-BCRSMatrix< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T,\n-k, m > >::type, std::allocator< typename MatMultMatResult< FieldMatrix< T, n, k\n->, FieldMatrix< T, k, m > >::type > > type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:522\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\b1_\b,_\b _\bT_\b,_\b _\bT_\bA_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Matrix::CreateIterator CreateIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:325\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b1_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:399\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Matrix::CreateIterator CreateIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:187\n-_\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bn_\b _\b>_\b,_\b _\bA_\b _\b>_\b,\n-_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b1_\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-BCRSMatrix< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T,\n-k, m > >::type, std::allocator< typename MatMultMatResult< FieldMatrix< T, n, k\n->, FieldMatrix< T, k, m > >::type > > type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:547\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b2_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:418\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-BCRSMatrix< FieldMatrix< T, n, m >, A >::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:157\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bd_\bo_\b__\bb_\br_\be_\ba_\bk\n-@ do_break\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:155\n-_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bd_\bo_\b__\bb_\br_\be_\ba_\bk\n-@ do_break\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:324\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bd_\bo_\b__\bb_\br_\be_\ba_\bk\n-@ do_break\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:185\n+_\b4_\b6_\b0 std::size_t _\bg_\be_\bt_\bG_\ba_\bm_\bm_\ba() const\n+461 {\n+462 return gamma_;\n+463 }\n+464\n+_\b4_\b6_\b9 void _\bs_\be_\bt_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be(bool additive)\n+470 {\n+471 additive_=additive;\n+472 }\n+473\n+_\b4_\b7_\b8 bool _\bg_\be_\bt_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be() const\n+479 {\n+480 return additive_;\n+481 }\n+482\n+_\b4_\b9_\b3 _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(int _\bm_\ba_\bx_\bL_\be_\bv_\be_\bl=100, int _\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt=1000, double\n+_\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be=1.2,\n+494 double prolongDamp=1.6, _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be=_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu)\n+495 : _\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(_\bm_\ba_\bx_\bL_\be_\bv_\be_\bl, _\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt, _\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be,\n+prolongDamp, _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be)\n+496 , debugLevel_(2), preSmoothSteps_(2), postSmoothSteps_(2), gamma_(1),\n+497 additive_(false)\n+498 {}\n+499 private:\n+500 int debugLevel_;\n+501 std::size_t preSmoothSteps_;\n+502 std::size_t postSmoothSteps_;\n+503 std::size_t gamma_;\n+504 bool additive_;\n+505 };\n+506\n+507 } //namespace AMG\n+508\n+509} //namespace Dune\n+510#endif\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bA_\bn_\bi_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc\n+void setDefaultValuesAnisotropic(std::size_t dim, std::size_t diameter=2)\n+Sets reasonable default values for an anisotropic problem.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:132\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be\n+void setAdditive(bool additive)\n+Set whether to use additive multigrid.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:469\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bS_\bk_\bi_\bp_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n+void setSkipIsolated(bool skip)\n+Set whether isolated aggregates will not be represented on the coarse level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:171\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br\n+void setProlongationDampingFactor(double d)\n+Set the damping factor for the prolongation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:332\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\ba_\bl_\bp_\bh_\ba\n+double alpha() const\n+Get the scaling value for marking connections as strong. Default value is 1/3.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bx_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be\n+void setMaxAggregateSize(std::size_t size)\n+Set the maximum number of nodes a aggregate is allowed to have.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:202\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be\n+void setMinCoarsenRate(double rate)\n+Set the minimum coarsening rate to be achieved in each coarsening.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:296\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be\n+double minCoarsenRate() const\n+Get the minimum coarsening rate to be achieved.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:304\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\ba_\bx_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be\n+std::size_t maxAggregateSize() const\n+Get the maximum number of nodes a aggregate is allowed to have.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:194\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bA_\bl_\bp_\bh_\ba\n+void setAlpha(double a)\n+Set the scaling value for marking connections as strong. Default value is 1/3.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bb_\be_\bt_\ba\n+double beta() const\n+Get the threshold for marking nodes as isolated. The default value is 1.0E-5.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\ba_\bx_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by\n+std::size_t maxConnectivity() const\n+Get the maximum number of connections a aggregate is allowed to have.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:211\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt\n+int coarsenTarget() const\n+Get the maximum number of unknowns allowed on the coarsest level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:286\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be\n+void setAccumulate(AccumulationMode accu)\n+Set whether he data should be accumulated on fewer processes on coarser levels.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:319\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bg_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br\n+double getProlongationDampingFactor() const\n+Get the damping factor for the prolongation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:342\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be\n+AccumulationMode accumulate() const\n+Whether the data should be accumulated on fewer processes on coarser levels.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:312\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bx_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by\n+void setMaxConnectivity(std::size_t connectivity)\n+Set the maximum number of connections a aggregate is allowed to have.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:220\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\bi_\bn_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be\n+std::size_t minAggregateSize() const\n+Get the minimum number of nodes a aggregate has to consist of.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:180\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bg_\be_\bt_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be\n+bool getAdditive() const\n+Get whether to use additive multigrid.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:478\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bx_\bL_\be_\bv_\be_\bl\n+void setMaxLevel(int l)\n+Set the maximum number of levels allowed in the hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:263\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\n+void setDebugLevel(int level)\n+Set the debugging level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:401\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bg_\be_\bt_\bG_\ba_\bm_\bm_\ba\n+std::size_t getGamma() const\n+Get the value of gamma; 1 for V-cycle, 2 for W-cycle.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:460\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bN_\bo_\bP_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs\n+void setNoPostSmoothSteps(std::size_t steps)\n+Set the number of postsmoothing steps to apply.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:437\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bg_\be_\bt_\bN_\bo_\bP_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs\n+std::size_t getNoPreSmoothSteps() const\n+Get the number of presmoothing steps to apply.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+DependencyParameters()\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\bi_\bn_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be\n+void setMinAggregateSize(std::size_t size)\n+Set the minimum number of nodes a aggregate has to consist of.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:188\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\ba_\bx_\bL_\be_\bv_\be_\bl\n+int maxLevel() const\n+Get the maximum number of levels allowed in the hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:270\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc\n+void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)\n+Sets reasonable default values for an isotropic problem.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:109\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+AggregationParameters()\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\bk_\bi_\bp_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n+bool skipIsolated() const\n+Whether isolated aggregates will not be represented on the coarse level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:161\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+Parameters(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2,\n+double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:493\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt\n+void setCoarsenTarget(int nodes)\n+Set the maximum number of unknowns allowed on the coarsest level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:278\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bN_\bo_\bP_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs\n+void setNoPreSmoothSteps(std::size_t steps)\n+Set the number of presmoothing steps to apply.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:420\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be\n+AccumulationMode\n+Identifiers for the different accumulation modes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:232\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bB_\be_\bt_\ba\n+void setBeta(double b)\n+Set threshold for marking nodes as isolated. The default value is 1.0E-5.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:42\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\ba_\bx_\bD_\bi_\bs_\bt_\ba_\bn_\bc_\be\n+std::size_t maxDistance() const\n+Get the maximal distance allowed between two nodes in a aggregate.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:144\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+CoarseningParameters(int maxLevel=100, int coarsenTarget=1000, double\n+minCoarsenRate=1.2, double prolongDamp=1.6, AccumulationMode\n+accumulate=successiveAccu)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:356\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bG_\ba_\bm_\bm_\ba\n+void setGamma(std::size_t gamma)\n+Set the value of gamma; 1 for V-cycle, 2 for W-cycle.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:453\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be\n+void setAccumulate(bool accu)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:324\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bx_\bD_\bi_\bs_\bt_\ba_\bn_\bc_\be\n+void setMaxDistance(std::size_t distance)\n+Set the maximal distance allowed between two nodes in a aggregate.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:154\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bd_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\n+int debugLevel() const\n+Get the debugging Level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:411\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bg_\be_\bt_\bN_\bo_\bP_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs\n+std::size_t getNoPostSmoothSteps() const\n+Get the number of postsmoothing steps to apply.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:445\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu\n+@ atOnceAccu\n+Accumulate data to one process at once.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:244\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bn_\bo_\bA_\bc_\bc_\bu\n+@ noAccu\n+No data accumulution.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:238\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu\n+@ successiveAccu\n+Successively accumulate to fewer processes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:248\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-Iterator end()\n-Get iterator to one beyond last row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:681\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::Iterator ColIterator\n-Iterator for the entries of each row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:704\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-The type for the index access and the size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn\n-CreateIterator createbegin()\n-get initial create iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1097\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator access to matrix rows\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:579\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator class for sequential creation of blocks\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:957\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt\n-void insert(size_type j)\n-put column index in row\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1064\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt\n-Helper TMP to get the result type of a sparse matrix matrix multiplication ( )\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:510\n-_\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt\n-Helper TMP to get the result type of a sparse matrix matrix multiplication ( )\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:535\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+Parameters needed to check whether a node depends on another.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:31\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+Parameters needed for the aggregation process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:84\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+Parameters for the complete coarsening process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:258\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+All parameters for AMG.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:393\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00068.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00068.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: bcrsmatrix.hh File Reference\n+dune-istl: pinfo.hh File Reference\n \n \n \n \n \n \n \n@@ -65,79 +65,47 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n \n-
    bcrsmatrix.hh File Reference
    \n+
    pinfo.hh File Reference
    \n
    \n
    \n-\n-

    Implementation of the BCRSMatrix class. \n-More...

    \n-
    #include <cmath>
    \n-#include <complex>
    \n-#include <set>
    \n-#include <iostream>
    \n-#include <algorithm>
    \n-#include <numeric>
    \n-#include <vector>
    \n-#include <map>
    \n-#include <memory>
    \n-#include "istlexception.hh"
    \n-#include "bvector.hh"
    \n-#include "matrixutils.hh"
    \n-#include <dune/common/stdstreams.hh>
    \n-#include <dune/common/iteratorfacades.hh>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/ftraits.hh>
    \n-#include <dune/common/scalarvectorview.hh>
    \n-#include <dune/common/scalarmatrixview.hh>
    \n-#include <dune/istl/blocklevel.hh>
    \n+
    #include <dune/common/parallel/communication.hh>
    \n+#include <dune/common/enumset.hh>
    \n+#include <dune/common/parallel/mpicommunication.hh>
    \n+#include <dune/common/parallel/mpitraits.hh>
    \n+#include <dune/common/parallel/remoteindices.hh>
    \n+#include <dune/common/parallel/interface.hh>
    \n+#include <dune/common/parallel/communicator.hh>
    \n+#include <dune/istl/solvercategory.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n

    \n Classes

    struct  Dune::CompressionStatistics< size_type >
     Statistics about compression achieved in implicit mode. More...
     
    class  Dune::ImplicitMatrixBuilder< M_ >
     A wrapper for uniform access to the BCRSMatrix during and after the build stage in implicit build mode. More...
     
    class  Dune::ImplicitMatrixBuilder< M_ >::row_object
     Proxy row object for entry access. More...
     
    class  Dune::BCRSMatrix< B, A >
     A sparse block matrix with compressed row storage. More...
     
    class  Dune::BCRSMatrix< B, A >::RealRowIterator< T >
     Iterator access to matrix rows More...
     
    class  Dune::BCRSMatrix< B, A >::CreateIterator
     Iterator class for sequential creation of blocks More...
     
    struct  Dune::FieldTraits< BCRSMatrix< B, A > >
    class  Dune::Amg::SequentialInformation
     
    \n \n \n \n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-

    Detailed Description

    \n-

    Implementation of the BCRSMatrix class.

    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,58 +1,28 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n+ * _\bp_\ba_\ba_\bm_\bg\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-bcrsmatrix.hh File Reference\n-Implementation of the BCRSMatrix class. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+pinfo.hh File Reference\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs_\b<_\b _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b _\b>\n-\u00a0 Statistics about compression achieved in implicit mode. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\b _\bM_\b__\b _\b>\n-\u00a0 A wrapper for uniform access to the _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx during and after the\n- build stage in implicit build mode. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\b _\bM_\b__\b _\b>_\b:_\b:_\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt\n-\u00a0 Proxy row object for entry access. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n-\u00a0 A sparse block matrix with compressed row storage. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\b _\b>\n-\u00a0 Iterator access to matrix rows _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-\u00a0 Iterator class for sequential creation of blocks _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Implementation of the BCRSMatrix class.\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00068_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00068_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: bcrsmatrix.hh Source File\n+dune-istl: pinfo.hh Source File\n \n \n \n \n \n \n \n@@ -70,2076 +70,174 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n-
    bcrsmatrix.hh
    \n+
    pinfo.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5
    \n-
    6#ifndef DUNE_ISTL_BCRSMATRIX_HH
    \n-
    7#define DUNE_ISTL_BCRSMATRIX_HH
    \n-
    8
    \n-
    9#include <cmath>
    \n-
    10#include <complex>
    \n-
    11#include <set>
    \n-
    12#include <iostream>
    \n-
    13#include <algorithm>
    \n-
    14#include <numeric>
    \n-
    15#include <vector>
    \n-
    16#include <map>
    \n-
    17#include <memory>
    \n+
    5#ifndef DUNE_AMG_PINFO_HH
    \n+
    6#define DUNE_AMG_PINFO_HH
    \n+
    7
    \n+
    8#include <dune/common/parallel/communication.hh>
    \n+
    9#include <dune/common/enumset.hh>
    \n+
    10
    \n+
    11#if HAVE_MPI
    \n+
    12
    \n+
    13#include <dune/common/parallel/mpicommunication.hh>
    \n+
    14#include <dune/common/parallel/mpitraits.hh>
    \n+
    15#include <dune/common/parallel/remoteindices.hh>
    \n+
    16#include <dune/common/parallel/interface.hh>
    \n+
    17#include <dune/common/parallel/communicator.hh>
    \n
    18
    \n-
    19#include "istlexception.hh"
    \n-
    20#include "bvector.hh"
    \n-
    21#include "matrixutils.hh"
    \n-
    22#include <dune/common/stdstreams.hh>
    \n-
    23#include <dune/common/iteratorfacades.hh>
    \n-
    24#include <dune/common/typetraits.hh>
    \n-
    25#include <dune/common/ftraits.hh>
    \n-
    26#include <dune/common/scalarvectorview.hh>
    \n-
    27#include <dune/common/scalarmatrixview.hh>
    \n-
    28
    \n-\n-
    30
    \n-
    35namespace Dune {
    \n-
    36
    \n-
    76 template<typename M>
    \n-
    77 struct MatrixDimension;
    \n-
    78
    \n-
    80
    \n-
    86 template<typename size_type>
    \n-
    \n-\n-
    88 {
    \n-
    90 double avg;
    \n-
    92 size_type maximum;
    \n-
    94 size_type overflow_total;
    \n-
    96
    \n-
    99 double mem_ratio;
    \n-
    100 };
    \n+
    19#endif
    \n+
    20
    \n+\n+
    22namespace Dune
    \n+
    23{
    \n+
    24 namespace Amg
    \n+
    25 {
    \n+
    26
    \n+
    \n+\n+
    28 {
    \n+
    29 public:
    \n+
    30 typedef Communication<void*> MPICommunicator;
    \n+
    31 typedef EmptySet<int> CopyFlags;
    \n+
    32 typedef AllSet<int> OwnerSet;
    \n+
    33
    \n+
    \n+\n+\n+
    36 }
    \n+
    \n+
    37
    \n+
    \n+\n+
    39 {
    \n+
    40 return comm_;
    \n+
    41 }
    \n+
    \n+
    42
    \n+
    \n+
    43 int procs() const
    \n+
    44 {
    \n+
    45 return 1;
    \n+
    46 }
    \n+
    \n+
    47
    \n+
    48 template<typename T>
    \n+
    \n+
    49 T globalSum(const T& t) const
    \n+
    50 {
    \n+
    51 return t;
    \n+
    52 }
    \n+
    \n+
    53
    \n+\n+
    55
    \n+
    56 void buildGlobalLookup(std::size_t){}
    \n+
    57
    \n+\n+
    59
    \n+
    \n+\n+
    61 {
    \n+
    62 return gli;
    \n+
    63 }
    \n+
    \n+
    64
    \n+
    65 template<class V>
    \n+
    \n+
    66 void copyOwnerToAll([[maybe_unused]] V& v, [[maybe_unused]] V& v1) const
    \n+
    67 {}
    \n+
    \n+
    68
    \n+
    69 template<class V>
    \n+
    \n+
    70 void project([[maybe_unused]] V& v) const
    \n+
    71 {}
    \n+
    \n+
    72
    \n+
    73 template<class T1, class T2>
    \n+
    \n+
    74 void dot (const T1&, const T1&, T2&) const
    \n+
    75 {
    \n+
    76 // This function should never be called
    \n+
    77 std::abort();
    \n+
    78 }
    \n+
    \n+
    79
    \n+
    80 template<class T1>
    \n+
    \n+
    81 typename FieldTraits<typename T1::field_type>::real_type norm (const T1&) const
    \n+
    82 {
    \n+
    83 // This function should never be called
    \n+
    84 std::abort();
    \n+
    85 }
    \n+
    \n+
    86
    \n+
    87 template<class T>
    \n+
    \n+
    88 SequentialInformation(const Communication<T>&)
    \n+
    89 {}
    \n+
    \n+
    90
    \n+
    \n+\n+
    92 {}
    \n+
    \n+
    93
    \n+\n+
    96 private:
    \n+
    97 MPICommunicator comm_;
    \n+\n+
    99 };
    \n
    \n+
    100
    \n
    101
    \n-
    103
    \n-
    115 template<class M_>
    \n-
    \n-\n-
    117 {
    \n-
    118
    \n-
    119 public:
    \n-
    120
    \n-
    122 typedef M_ Matrix;
    \n-
    123
    \n-\n-
    126
    \n-
    128 typedef typename Matrix::size_type size_type;
    \n-
    129
    \n-
    131
    \n-
    \n-\n-
    137 {
    \n-
    138
    \n-
    139 public:
    \n-
    140
    \n-
    \n-\n-
    143 {
    \n-
    144 return _m.entry(_i,j);
    \n-
    145 }
    \n-
    \n-
    146
    \n-
    147#ifndef DOXYGEN
    \n-
    148
    \n-\n-
    150 : _m(m)
    \n-
    151 , _i(i)
    \n-
    152 {}
    \n-
    153
    \n-
    154#endif
    \n-
    155
    \n-
    156 private:
    \n-
    157
    \n-
    158 Matrix& _m;
    \n-\n-
    160
    \n-
    161 };
    \n-
    \n-
    162
    \n-
    164
    \n-
    \n-\n-
    171 : _m(m)
    \n-
    172 {
    \n-
    173 if (m.buildMode() != Matrix::implicit)
    \n-
    174 DUNE_THROW(BCRSMatrixError,"You can only create an ImplicitBuilder for a matrix in implicit build mode");
    \n-
    175 if (m.buildStage() != Matrix::building)
    \n-
    176 DUNE_THROW(BCRSMatrixError,"You can only create an ImplicitBuilder for a matrix with set size that has not been compressed() yet");
    \n-
    177 }
    \n-
    \n-
    178
    \n-
    180
    \n-
    \n-
    194 ImplicitMatrixBuilder(Matrix& m, size_type rows, size_type cols, size_type avg_cols_per_row, double overflow_fraction)
    \n-
    195 : _m(m)
    \n-
    196 {
    \n-
    197 if (m.buildStage() != Matrix::notAllocated)
    \n-
    198 DUNE_THROW(BCRSMatrixError,"You can only set up a matrix for this ImplicitBuilder if it has no memory allocated yet");
    \n-
    199 m.setBuildMode(Matrix::implicit);
    \n-
    200 m.setImplicitBuildModeParameters(avg_cols_per_row,overflow_fraction);
    \n-
    201 m.setSize(rows,cols);
    \n-
    202 }
    \n-
    \n-
    203
    \n-
    \n-\n-
    206 {
    \n-
    207 return row_object(_m,i);
    \n-
    208 }
    \n-
    \n-
    209
    \n-
    \n-
    211 size_type N() const
    \n-
    212 {
    \n-
    213 return _m.N();
    \n-
    214 }
    \n-
    \n-
    215
    \n-
    \n-
    217 size_type M() const
    \n-
    218 {
    \n-
    219 return _m.M();
    \n-
    220 }
    \n-
    \n-
    221
    \n-
    222 private:
    \n-
    223
    \n-
    224 Matrix& _m;
    \n-
    225
    \n-
    226 };
    \n-
    \n-
    227
    \n-
    464 template<class B, class A=std::allocator<B> >
    \n-
    \n-\n-
    466 {
    \n-
    467 friend struct MatrixDimension<BCRSMatrix>;
    \n-
    468 public:
    \n-
    \n-\n-\n-\n-\n-\n-
    482 built=3
    \n-
    483 };
    \n-
    \n-
    484
    \n-
    485 //===== type definitions and constants
    \n-
    486
    \n-
    488 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n-
    489
    \n-
    491 typedef B block_type;
    \n-
    492
    \n-
    494 typedef A allocator_type;
    \n-
    495
    \n-
    497 typedef Imp::CompressedBlockVectorWindow<B,A> row_type;
    \n-
    498
    \n-
    500 typedef typename A::size_type size_type;
    \n-
    501
    \n-
    503 typedef ::Dune::CompressionStatistics<size_type> CompressionStatistics;
    \n-
    504
    \n-
    506 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n-
    507 static constexpr unsigned int blocklevel = blockLevel<B>()+1;
    \n-
    508
    \n-
    \n-\n-\n-\n-\n-
    543 unknown
    \n-
    544 };
    \n-
    \n-
    545
    \n-
    546 //===== random access interface to rows of the matrix
    \n-
    547
    \n-
    \n-\n-
    550 {
    \n-
    551#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    552 if (build_mode == implicit && ready != built)
    \n-
    553 DUNE_THROW(BCRSMatrixError,"You cannot use operator[] in implicit build mode before calling compress()");
    \n-
    554 if (r==0) DUNE_THROW(BCRSMatrixError,"row not initialized yet");
    \n-
    555 if (i>=n) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    556#endif
    \n-
    557 return r[i];
    \n-
    558 }
    \n-
    \n-
    559
    \n-
    \n-\n-
    562 {
    \n-
    563#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    564 if (build_mode == implicit && ready != built)
    \n-
    565 DUNE_THROW(BCRSMatrixError,"You cannot use operator[] in implicit build mode before calling compress()");
    \n-
    566 if (built!=ready) DUNE_THROW(BCRSMatrixError,"row not initialized yet");
    \n-
    567 if (i>=n) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    568#endif
    \n-
    569 return r[i];
    \n-
    570 }
    \n-
    \n-
    571
    \n-
    572
    \n-
    573 //===== iterator interface to rows of the matrix
    \n-
    574
    \n-
    576 template<class T>
    \n-
    \n-\n-
    578 : public RandomAccessIteratorFacade<RealRowIterator<T>, T>
    \n-
    579 {
    \n-
    580
    \n-
    581 public:
    \n-
    583 typedef typename std::remove_const<T>::type ValueType;
    \n-
    584
    \n-
    585 friend class RandomAccessIteratorFacade<RealRowIterator<const ValueType>, const ValueType>;
    \n-
    586 friend class RandomAccessIteratorFacade<RealRowIterator<ValueType>, ValueType>;
    \n-
    587 friend class RealRowIterator<const ValueType>;
    \n-
    588 friend class RealRowIterator<ValueType>;
    \n-
    589
    \n-
    \n-\n-
    592 : p(_p), i(_i)
    \n-
    593 {}
    \n-
    \n-
    594
    \n-
    \n-\n-
    597 : p(0), i(0)
    \n-
    598 {}
    \n-
    \n-
    599
    \n-
    \n-\n-
    601 : p(it.p), i(it.i)
    \n-
    602 {}
    \n-
    \n-
    603
    \n-
    604
    \n-
    \n-\n-
    607 {
    \n-
    608 return i;
    \n-
    609 }
    \n-
    \n-
    610
    \n-
    \n-
    611 std::ptrdiff_t distanceTo(const RealRowIterator<ValueType>& other) const
    \n-
    612 {
    \n-
    613 assert(other.p==p);
    \n-
    614 return (other.i-i);
    \n-
    615 }
    \n-
    \n-
    616
    \n-
    \n-
    617 std::ptrdiff_t distanceTo(const RealRowIterator<const ValueType>& other) const
    \n-
    618 {
    \n-
    619 assert(other.p==p);
    \n-
    620 return (other.i-i);
    \n-
    621 }
    \n-
    \n-
    622
    \n-
    \n-
    624 bool equals (const RealRowIterator<ValueType>& other) const
    \n-
    625 {
    \n-
    626 assert(other.p==p);
    \n-
    627 return i==other.i;
    \n-
    628 }
    \n-
    \n-
    629
    \n-
    \n-
    631 bool equals (const RealRowIterator<const ValueType>& other) const
    \n-
    632 {
    \n-
    633 assert(other.p==p);
    \n-
    634 return i==other.i;
    \n-
    635 }
    \n-
    \n-
    636
    \n-
    637 private:
    \n-
    639 void increment()
    \n-
    640 {
    \n-
    641 ++i;
    \n-
    642 }
    \n-
    643
    \n-
    645 void decrement()
    \n-
    646 {
    \n-
    647 --i;
    \n-
    648 }
    \n-
    649
    \n-
    650 void advance(std::ptrdiff_t diff)
    \n-
    651 {
    \n-
    652 i+=diff;
    \n-
    653 }
    \n-
    654
    \n-
    655 T& elementAt(std::ptrdiff_t diff) const
    \n-
    656 {
    \n-
    657 return p[i+diff];
    \n-
    658 }
    \n-
    659
    \n-
    661 row_type& dereference () const
    \n-
    662 {
    \n-
    663 return p[i];
    \n-
    664 }
    \n-
    665
    \n-
    666 row_type* p;
    \n-
    667 size_type i;
    \n-
    668 };
    \n-
    \n-
    669
    \n-\n-\n-
    673
    \n-
    \n-\n-
    676 {
    \n-
    677 return Iterator(r,0);
    \n-
    678 }
    \n-
    \n-
    679
    \n-
    \n-\n-
    682 {
    \n-
    683 return Iterator(r,n);
    \n-
    684 }
    \n-
    \n-
    685
    \n-
    \n-\n-
    689 {
    \n-
    690 return Iterator(r,n-1);
    \n-
    691 }
    \n-
    \n-
    692
    \n-
    \n-\n-
    696 {
    \n-
    697 return Iterator(r,-1);
    \n-
    698 }
    \n-
    \n-
    699
    \n-\n-
    702
    \n-
    704 typedef typename row_type::Iterator ColIterator;
    \n-
    705
    \n-\n-\n-
    709
    \n-
    710
    \n-
    \n-\n-
    713 {
    \n-
    714 return ConstIterator(r,0);
    \n-
    715 }
    \n-
    \n-
    716
    \n-
    \n-\n-
    719 {
    \n-
    720 return ConstIterator(r,n);
    \n-
    721 }
    \n-
    \n-
    722
    \n-
    \n-\n-
    726 {
    \n-
    727 return ConstIterator(r,n-1);
    \n-
    728 }
    \n-
    \n-
    729
    \n-
    \n-\n-
    733 {
    \n-
    734 return ConstIterator(r,-1);
    \n-
    735 }
    \n-
    \n-
    736
    \n-\n-
    739
    \n-
    741 typedef typename row_type::ConstIterator ConstColIterator;
    \n-
    742
    \n-
    743 //===== constructors & resizers
    \n-
    744
    \n-
    745 // we use a negative compressionBufferSize to indicate that the implicit
    \n-
    746 // mode parameters have not been set yet
    \n-
    747
    \n-
    \n-\n-
    750 : build_mode(unknown), ready(notAllocated), n(0), m(0), nnz_(0),
    \n-
    751 allocationSize_(0), r(0), a(0),
    \n-\n-
    753 {}
    \n-
    \n-
    754
    \n-
    \n-\n-
    757 : build_mode(bm), ready(notAllocated), n(0), m(0), nnz_(0),
    \n-
    758 allocationSize_(0), r(0), a(0),
    \n-\n-
    760 {
    \n-
    761 allocate(_n, _m, _nnz,true,false);
    \n-
    762 }
    \n-
    \n-
    763
    \n-
    \n-\n-
    766 : build_mode(bm), ready(notAllocated), n(0), m(0), nnz_(0),
    \n-
    767 allocationSize_(0), r(0), a(0),
    \n-\n-
    769 {
    \n-
    770 allocate(_n, _m,0,true,false);
    \n-
    771 }
    \n-
    \n-
    772
    \n-
    774
    \n-
    \n-
    784 BCRSMatrix (size_type _n, size_type _m, size_type _avg, double compressionBufferSize, BuildMode bm)
    \n-
    785 : build_mode(bm), ready(notAllocated), n(0), m(0), nnz_(0),
    \n-
    786 allocationSize_(0), r(0), a(0),
    \n-
    787 avg(_avg), compressionBufferSize_(compressionBufferSize)
    \n-
    788 {
    \n-
    789 if (bm != implicit)
    \n-
    790 DUNE_THROW(BCRSMatrixError,"Only call this constructor when using the implicit build mode");
    \n-
    791 // Prevent user from setting a negative compression buffer size:
    \n-
    792 // 1) It doesn't make sense
    \n-
    793 // 2) We use a negative value to indicate that the parameters
    \n-
    794 // have not been set yet
    \n-
    795 if (compressionBufferSize_ < 0.0)
    \n-
    796 DUNE_THROW(BCRSMatrixError,"You cannot set a negative overflow fraction");
    \n-
    797 implicit_allocate(_n,_m);
    \n-
    798 }
    \n-
    \n-
    799
    \n-
    \n-\n-
    806 : build_mode(Mat.build_mode), ready(notAllocated), n(0), m(0), nnz_(0),
    \n-
    807 allocationSize_(0), r(0), a(0),
    \n-\n-
    809 {
    \n-
    810 if (!(Mat.ready == notAllocated || Mat.ready == built))
    \n-
    811 DUNE_THROW(InvalidStateException,"BCRSMatrix can only be copy-constructed when source matrix is completely empty (size not set) or fully built)");
    \n-
    812
    \n-
    813 // deep copy in global array
    \n-
    814 size_type _nnz = Mat.nonzeroes();
    \n-
    815
    \n-
    816 j_ = Mat.j_; // enable column index sharing, release array in case of row-wise allocation
    \n-
    817 allocate(Mat.n, Mat.m, _nnz, true, true);
    \n-
    818
    \n-
    819 // build window structure
    \n-\n-
    821 }
    \n-
    \n-
    822
    \n-
    \n-\n-
    825 {
    \n-
    826 deallocate();
    \n-
    827 }
    \n-
    \n-
    828
    \n-
    \n-\n-
    834 {
    \n-
    835 if (ready == notAllocated)
    \n-
    836 {
    \n-
    837 build_mode = bm;
    \n-
    838 return;
    \n-
    839 }
    \n-
    840 if (ready == building && (build_mode == unknown || build_mode == random || build_mode == row_wise) && (bm == row_wise || bm == random))
    \n-
    841 build_mode = bm;
    \n-
    842 else
    \n-
    843 DUNE_THROW(InvalidStateException, "Matrix structure cannot be changed at this stage anymore (ready == "<<ready<<").");
    \n-
    844 }
    \n-
    \n-
    845
    \n-
    \n-
    861 void setSize(size_type rows, size_type columns, size_type nnz=0)
    \n-
    862 {
    \n-
    863 // deallocate already setup memory
    \n-
    864 deallocate();
    \n-
    865
    \n-
    866 if (build_mode == implicit)
    \n-
    867 {
    \n-
    868 if (nnz>0)
    \n-
    869 DUNE_THROW(Dune::BCRSMatrixError,"number of non-zeroes may not be set in implicit mode, use setImplicitBuildModeParameters() instead");
    \n-
    870
    \n-
    871 // implicit allocates differently
    \n-
    872 implicit_allocate(rows,columns);
    \n-
    873 }
    \n-
    874 else
    \n-
    875 {
    \n-
    876 // allocate matrix memory
    \n-
    877 allocate(rows, columns, nnz, true, false);
    \n-
    878 }
    \n-
    879 }
    \n-
    \n-
    880
    \n-
    \n-
    889 void setImplicitBuildModeParameters(size_type _avg, double compressionBufferSize)
    \n-
    890 {
    \n-
    891 // Prevent user from setting a negative compression buffer size:
    \n-
    892 // 1) It doesn't make sense
    \n-
    893 // 2) We use a negative value to indicate that the parameters
    \n-
    894 // have not been set yet
    \n-
    895 if (compressionBufferSize < 0.0)
    \n-
    896 DUNE_THROW(BCRSMatrixError,"You cannot set a negative compressionBufferSize value");
    \n-
    897
    \n-
    898 // make sure the parameters aren't changed after memory has been allocated
    \n-
    899 if (ready != notAllocated)
    \n-
    900 DUNE_THROW(InvalidStateException,"You cannot modify build mode parameters at this stage anymore");
    \n-
    901 avg = _avg;
    \n-
    902 compressionBufferSize_ = compressionBufferSize;
    \n-
    903 }
    \n-
    \n-
    904
    \n-
    \n-\n-
    912 {
    \n-
    913 // return immediately when self-assignment
    \n-
    914 if (&Mat==this) return *this;
    \n-
    915
    \n-
    916 if (!((ready == notAllocated || ready == built) && (Mat.ready == notAllocated || Mat.ready == built)))
    \n-
    917 DUNE_THROW(InvalidStateException,"BCRSMatrix can only be copied when both target and source are empty or fully built)");
    \n-
    918
    \n-
    919 // make it simple: ALWAYS throw away memory for a and j_
    \n-
    920 // and deallocate rows only if n != Mat.n
    \n-
    921 deallocate(n!=Mat.n);
    \n-
    922
    \n-
    923 // reallocate the rows if required
    \n-
    924 if (n>0 && n!=Mat.n) {
    \n-
    925 // free rows
    \n-
    926 for(row_type *riter=r+(n-1), *rend=r-1; riter!=rend; --riter)
    \n-
    927 std::allocator_traits<decltype(rowAllocator_)>::destroy(rowAllocator_, riter);
    \n-
    928 rowAllocator_.deallocate(r,n);
    \n-
    929 }
    \n-
    930
    \n-
    931 nnz_ = Mat.nonzeroes();
    \n-
    932
    \n-
    933 // allocate a, share j_
    \n-
    934 j_ = Mat.j_;
    \n-
    935 allocate(Mat.n, Mat.m, nnz_, n!=Mat.n, true);
    \n-
    936
    \n-
    937 // build window structure
    \n-\n-
    939 return *this;
    \n-
    940 }
    \n-
    \n-
    941
    \n-
    \n-\n-
    944 {
    \n-
    945
    \n-
    946 if (!(ready == notAllocated || ready == built))
    \n-
    947 DUNE_THROW(InvalidStateException,"Scalar assignment only works on fully built BCRSMatrix)");
    \n-
    948
    \n-
    949 for (size_type i=0; i<n; i++) r[i] = k;
    \n-
    950 return *this;
    \n-
    951 }
    \n-
    \n-
    952
    \n-
    953 //===== row-wise creation interface
    \n-
    954
    \n-
    \n-\n-
    957 {
    \n-
    958 public:
    \n-
    \n-\n-
    961 : Mat(_Mat), i(_i), nnz(0), current_row(nullptr, Mat.j_.get(), 0)
    \n-
    962 {
    \n-
    963 if (Mat.build_mode == unknown && Mat.ready == building)
    \n-
    964 {
    \n-
    965 Mat.build_mode = row_wise;
    \n-
    966 }
    \n-
    967 if (i==0 && Mat.ready != building)
    \n-
    968 DUNE_THROW(BCRSMatrixError,"creation only allowed for uninitialized matrix");
    \n-
    969 if(Mat.build_mode!=row_wise)
    \n-
    970 DUNE_THROW(BCRSMatrixError,"creation only allowed if row wise allocation was requested in the constructor");
    \n-
    971 if(i==0 && _Mat.N()==0)
    \n-
    972 // empty Matrix is always built.
    \n-
    973 Mat.ready = built;
    \n-
    974 }
    \n-
    \n-
    975
    \n-
    \n-\n-
    978 {
    \n-
    979 // this should only be called if matrix is in creation
    \n-
    980 if (Mat.ready != building)
    \n-
    981 DUNE_THROW(BCRSMatrixError,"matrix already built up");
    \n-
    982
    \n-
    983 // row i is defined through the pattern
    \n-
    984 // get memory for the row and initialize the j_ array
    \n-
    985 // this depends on the allocation mode
    \n-
    986
    \n-
    987 // compute size of the row
    \n-
    988 size_type s = pattern.size();
    \n-
    989
    \n-
    990 if(s>0) {
    \n-
    991 // update number of nonzeroes including this row
    \n-
    992 nnz += s;
    \n-
    993
    \n-
    994 // alloc memory / set window
    \n-
    995 if (Mat.nnz_ > 0)
    \n-
    996 {
    \n-
    997 // memory is allocated in one long array
    \n-
    998
    \n-
    999 // check if that memory is sufficient
    \n-
    1000 if (nnz > Mat.nnz_)
    \n-
    1001 DUNE_THROW(BCRSMatrixError,"allocated nnz too small");
    \n-
    1002
    \n-
    1003 // set row i
    \n-
    1004 Mat.r[i].set(s,nullptr,current_row.getindexptr());
    \n-
    1005 current_row.setindexptr(current_row.getindexptr()+s);
    \n-
    1006 }else{
    \n-
    1007 // memory is allocated individually per row
    \n-
    1008 // allocate and set row i
    \n-
    1009 B* b = Mat.allocator_.allocate(s);
    \n-
    1010 // use placement new to call constructor that allocates
    \n-
    1011 // additional memory.
    \n-
    1012 new (b) B[s];
    \n-
    1013 size_type* j = Mat.sizeAllocator_.allocate(s);
    \n-
    1014 Mat.r[i].set(s,b,j);
    \n-
    1015 }
    \n-
    1016 }else
    \n-
    1017 // setup empty row
    \n-
    1018 Mat.r[i].set(0,nullptr,nullptr);
    \n-
    1019
    \n-
    1020 // initialize the j array for row i from pattern
    \n-
    1021 std::copy(pattern.cbegin(), pattern.cend(), Mat.r[i].getindexptr());
    \n-
    1022
    \n-
    1023 // now go to next row
    \n-
    1024 i++;
    \n-
    1025 pattern.clear();
    \n-
    1026
    \n-
    1027 // check if this was last row
    \n-
    1028 if (i==Mat.n)
    \n-
    1029 {
    \n-
    1030 Mat.ready = built;
    \n-
    1031 if(Mat.nnz_ > 0)
    \n-
    1032 {
    \n-
    1033 // Set nnz to the exact number of nonzero blocks inserted
    \n-
    1034 // as some methods rely on it
    \n-
    1035 Mat.nnz_ = nnz;
    \n-
    1036 // allocate data array
    \n-
    1037 Mat.allocateData();
    \n-
    1038 Mat.setDataPointers();
    \n-
    1039 }
    \n-
    1040 }
    \n-
    1041 // done
    \n-
    1042 return *this;
    \n-
    1043 }
    \n-
    \n-
    1044
    \n-
    \n-
    1046 bool operator!= (const CreateIterator& it) const
    \n-
    1047 {
    \n-
    1048 return (i!=it.i) || (&Mat!=&it.Mat);
    \n-
    1049 }
    \n-
    \n-
    1050
    \n-
    \n-
    1052 bool operator== (const CreateIterator& it) const
    \n-
    1053 {
    \n-
    1054 return (i==it.i) && (&Mat==&it.Mat);
    \n-
    1055 }
    \n-
    \n-
    1056
    \n-
    \n-\n-
    1059 {
    \n-
    1060 return i;
    \n-
    1061 }
    \n-
    \n-
    1062
    \n-
    \n-\n-
    1065 {
    \n-
    1066 pattern.insert(j);
    \n-
    1067 }
    \n-
    \n-
    1068
    \n-
    \n-\n-
    1071 {
    \n-
    1072 return pattern.find(j) != pattern.end();
    \n-
    1073 }
    \n-
    \n-
    \n-\n-
    1080 {
    \n-
    1081 return pattern.size();
    \n-
    1082 }
    \n-
    \n-
    1083
    \n-
    1084 private:
    \n-
    1085 BCRSMatrix& Mat; // the matrix we are defining
    \n-
    1086 size_type i; // current row to be defined
    \n-
    1087 size_type nnz; // count total number of nonzeros
    \n-
    1088 typedef std::set<size_type,std::less<size_type> > PatternType;
    \n-
    1089 PatternType pattern; // used to compile entries in a row
    \n-
    1090 row_type current_row; // row pointing to the current row to setup
    \n-
    1091 };
    \n-
    \n-
    1092
    \n-
    1094 friend class CreateIterator;
    \n-
    1095
    \n-
    \n-\n-
    1098 {
    \n-
    1099 return CreateIterator(*this,0);
    \n-
    1100 }
    \n-
    \n-
    1101
    \n-
    \n-\n-
    1104 {
    \n-
    1105 return CreateIterator(*this,n);
    \n-
    1106 }
    \n-
    \n-
    1107
    \n-
    1108
    \n-
    1109 //===== random creation interface
    \n-
    1110
    \n-
    \n-\n-
    1118 {
    \n-
    1119 if (build_mode!=random)
    \n-
    1120 DUNE_THROW(BCRSMatrixError,"requires random build mode");
    \n-
    1121 if (ready != building)
    \n-
    1122 DUNE_THROW(BCRSMatrixError,"matrix row sizes already built up");
    \n-
    1123
    \n-
    1124 r[i].setsize(s);
    \n-
    1125 }
    \n-
    \n-
    1126
    \n-
    \n-\n-
    1129 {
    \n-
    1130#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1131 if (r==0) DUNE_THROW(BCRSMatrixError,"row not initialized yet");
    \n-
    1132 if (i>=n) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1133#endif
    \n-
    1134 return r[i].getsize();
    \n-
    1135 }
    \n-
    \n-
    1136
    \n-
    \n-\n-
    1139 {
    \n-
    1140 if (build_mode!=random)
    \n-
    1141 DUNE_THROW(BCRSMatrixError,"requires random build mode");
    \n-
    1142 if (ready != building)
    \n-
    1143 DUNE_THROW(BCRSMatrixError,"matrix row sizes already built up");
    \n-
    1144
    \n-
    1145 r[i].setsize(r[i].getsize()+s);
    \n-
    1146 }
    \n-
    \n-
    1147
    \n-
    \n-\n-
    1150 {
    \n-
    1151 if (build_mode!=random)
    \n-
    1152 DUNE_THROW(BCRSMatrixError,"requires random build mode");
    \n-
    1153 if (ready != building)
    \n-
    1154 DUNE_THROW(BCRSMatrixError,"matrix row sizes already built up");
    \n-
    1155
    \n-
    1156 // compute total size, check positivity
    \n-
    1157 size_type total=0;
    \n-
    1158 for (size_type i=0; i<n; i++)
    \n-
    1159 {
    \n-
    1160 total += r[i].getsize();
    \n-
    1161 }
    \n-
    1162
    \n-
    1163 if(nnz_ == 0)
    \n-
    1164 // allocate/check memory
    \n-
    1165 allocate(n,m,total,false,false);
    \n-
    1166 else if(nnz_ < total)
    \n-
    1167 DUNE_THROW(BCRSMatrixError,"Specified number of nonzeros ("<<nnz_<<") not "
    \n-
    1168 <<"sufficient for calculated nonzeros ("<<total<<"! ");
    \n-
    1169
    \n-
    1170 // set the window pointers correctly
    \n-\n-
    1172
    \n-
    1173 // initialize j_ array with m (an invalid column index)
    \n-
    1174 // this indicates an unused entry
    \n-
    1175 for (size_type k=0; k<nnz_; k++)
    \n-
    1176 j_.get()[k] = m;
    \n-\n-
    1178 }
    \n-
    \n-
    1179
    \n-
    1181
    \n-
    \n-\n-
    1192 {
    \n-
    1193 if (build_mode!=random)
    \n-
    1194 DUNE_THROW(BCRSMatrixError,"requires random build mode");
    \n-
    1195 if (ready==built)
    \n-
    1196 DUNE_THROW(BCRSMatrixError,"matrix already built up");
    \n-
    1197 if (ready==building)
    \n-
    1198 DUNE_THROW(BCRSMatrixError,"matrix row sizes not built up yet");
    \n-
    1199 if (ready==notAllocated)
    \n-
    1200 DUNE_THROW(BCRSMatrixError,"matrix size not set and no memory allocated yet");
    \n-
    1201
    \n-
    1202 if (col >= m)
    \n-
    1203 DUNE_THROW(BCRSMatrixError,"column index exceeds matrix size");
    \n-
    1204
    \n-
    1205 // get row range
    \n-
    1206 size_type* const first = r[row].getindexptr();
    \n-
    1207 size_type* const last = first + r[row].getsize();
    \n-
    1208
    \n-
    1209 // find correct insertion position for new column index
    \n-
    1210 size_type* pos = std::lower_bound(first,last,col);
    \n-
    1211
    \n-
    1212 // check if index is already in row
    \n-
    1213 if (pos!=last && *pos == col) return;
    \n-
    1214
    \n-
    1215 // find end of already inserted column indices
    \n-
    1216 size_type* end = std::lower_bound(pos,last,m);
    \n-
    1217 if (end==last)
    \n-
    1218 DUNE_THROW(BCRSMatrixError,"row is too small");
    \n-
    1219
    \n-
    1220 // insert new column index at correct position
    \n-
    1221 std::copy_backward(pos,end,end+1);
    \n-
    1222 *pos = col;
    \n-
    1223 }
    \n-
    \n-
    1224
    \n-
    1226
    \n-
    1233 template<typename It>
    \n-
    \n-
    1234 void setIndices(size_type row, It begin, It end)
    \n-
    1235 {
    \n-
    1236 size_type row_size = r[row].size();
    \n-
    1237 size_type* col_begin = r[row].getindexptr();
    \n-
    1238 size_type* col_end;
    \n-
    1239 // consistency check between allocated row size and number of passed column indices
    \n-
    1240 if ((col_end = std::copy(begin,end,r[row].getindexptr())) != col_begin + row_size)
    \n-
    1241 DUNE_THROW(BCRSMatrixError,"Given size of row " << row
    \n-
    1242 << " (" << row_size
    \n-
    1243 << ") does not match number of passed entries (" << (col_end - col_begin) << ")");
    \n-
    1244 std::sort(col_begin,col_end);
    \n-
    1245 }
    \n-
    \n-
    1246
    \n-
    \n-\n-
    1249 {
    \n-
    1250 if (build_mode!=random)
    \n-
    1251 DUNE_THROW(BCRSMatrixError,"requires random build mode");
    \n-
    1252 if (ready==built)
    \n-
    1253 DUNE_THROW(BCRSMatrixError,"matrix already built up");
    \n-
    1254 if (ready==building)
    \n-
    1255 DUNE_THROW(BCRSMatrixError,"row sizes are not built up yet");
    \n-
    1256 if (ready==notAllocated)
    \n-
    1257 DUNE_THROW(BCRSMatrixError,"matrix size not set and no memory allocated yet");
    \n-
    1258
    \n-
    1259 // check if there are undefined indices
    \n-
    1260 RowIterator endi=end();
    \n-
    1261 for (RowIterator i=begin(); i!=endi; ++i)
    \n-
    1262 {
    \n-
    1263 ColIterator endj = (*i).end();
    \n-
    1264 for (ColIterator j=(*i).begin(); j!=endj; ++j) {
    \n-
    1265 if (j.index() >= m) {
    \n-
    1266 dwarn << "WARNING: size of row "<< i.index()<<" is "<<j.offset()<<". But was specified as being "<< (*i).end().offset()
    \n-
    1267 <<". This means you are wasting valuable space and creating additional cache misses!"<<std::endl;
    \n-
    1268 nnz_ -= ((*i).end().offset() - j.offset());
    \n-
    1269 r[i.index()].setsize(j.offset());
    \n-
    1270 break;
    \n-
    1271 }
    \n-
    1272 }
    \n-
    1273 }
    \n-
    1274
    \n-
    1275 allocateData();
    \n-\n-
    1277
    \n-
    1278 // if not, set matrix to built
    \n-
    1279 ready = built;
    \n-
    1280 }
    \n-
    \n-
    1281
    \n-
    1282 //===== implicit creation interface
    \n-
    1283
    \n-
    1285
    \n-
    \n-\n-
    1297 {
    \n-
    1298#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1299 if (build_mode!=implicit)
    \n-
    1300 DUNE_THROW(BCRSMatrixError,"requires implicit build mode");
    \n-
    1301 if (ready==built)
    \n-
    1302 DUNE_THROW(BCRSMatrixError,"matrix already built up, use operator[] for entry access now");
    \n-
    1303 if (ready==notAllocated)
    \n-
    1304 DUNE_THROW(BCRSMatrixError,"matrix size not set and no memory allocated yet");
    \n-
    1305 if (ready!=building)
    \n-
    1306 DUNE_THROW(InvalidStateException,"You may only use entry() during the 'building' stage");
    \n-
    1307
    \n-
    1308 if (row >= n)
    \n-
    1309 DUNE_THROW(BCRSMatrixError,"row index exceeds matrix size");
    \n-
    1310 if (col >= m)
    \n-
    1311 DUNE_THROW(BCRSMatrixError,"column index exceeds matrix size");
    \n-
    1312#endif
    \n-
    1313
    \n-
    1314 size_type* begin = r[row].getindexptr();
    \n-
    1315 size_type* end = begin + r[row].getsize();
    \n-
    1316
    \n-
    1317 size_type* pos = std::find(begin, end, col);
    \n-
    1318
    \n-
    1319 //treat the case that there was a match in the array
    \n-
    1320 if (pos != end)
    \n-
    1321 if (*pos == col)
    \n-
    1322 {
    \n-
    1323 std::ptrdiff_t offset = pos - r[row].getindexptr();
    \n-
    1324 B* aptr = r[row].getptr() + offset;
    \n-
    1325
    \n-
    1326 return *aptr;
    \n-
    1327 }
    \n-
    1328
    \n-
    1329 //determine whether overflow has to be taken into account or not
    \n-
    1330 if (r[row].getsize() == avg)
    \n-
    1331 return overflow[std::make_pair(row,col)];
    \n-
    1332 else
    \n-
    1333 {
    \n-
    1334 //modify index array
    \n-
    1335 *end = col;
    \n-
    1336
    \n-
    1337 //do simultaneous operations on data array a
    \n-
    1338 std::ptrdiff_t offset = end - r[row].getindexptr();
    \n-
    1339 B* apos = r[row].getptr() + offset;
    \n-
    1340
    \n-
    1341 //increase rowsize
    \n-
    1342 r[row].setsize(r[row].getsize()+1);
    \n-
    1343
    \n-
    1344 //return reference to the newly created entry
    \n-
    1345 return *apos;
    \n-
    1346 }
    \n-
    1347 }
    \n-
    \n-
    1348
    \n-
    1350
    \n-
    \n-\n-
    1361 {
    \n-
    1362 if (build_mode!=implicit)
    \n-
    1363 DUNE_THROW(BCRSMatrixError,"requires implicit build mode");
    \n-
    1364 if (ready==built)
    \n-
    1365 DUNE_THROW(BCRSMatrixError,"matrix already built up, no more need for compression");
    \n-
    1366 if (ready==notAllocated)
    \n-
    1367 DUNE_THROW(BCRSMatrixError,"matrix size not set and no memory allocated yet");
    \n-
    1368 if (ready!=building)
    \n-
    1369 DUNE_THROW(InvalidStateException,"You may only call compress() at the end of the 'building' stage");
    \n-
    1370
    \n-
    1371 //calculate statistics
    \n-\n-
    1373 stats.overflow_total = overflow.size();
    \n-
    1374 stats.maximum = 0;
    \n-
    1375
    \n-
    1376 //get insertion iterators pointing to one before start (for later use of ++it)
    \n-
    1377 size_type* jiit = j_.get();
    \n-
    1378 B* aiit = a;
    \n-
    1379
    \n-
    1380 //get iterator to the smallest overflow element
    \n-
    1381 typename OverflowType::iterator oit = overflow.begin();
    \n-
    1382
    \n-
    1383 //store a copy of index pointers on which to perform sorting
    \n-
    1384 std::vector<size_type*> perm;
    \n-
    1385
    \n-
    1386 //iterate over all rows and copy elements into their position in the compressed array
    \n-
    1387 for (size_type i=0; i<n; i++)
    \n-
    1388 {
    \n-
    1389 //get old pointers into a and j and size without overflow changes
    \n-
    1390 size_type* begin = r[i].getindexptr();
    \n-
    1391 //B* apos = r[i].getptr();
    \n-
    1392 size_type size = r[i].getsize();
    \n-
    1393
    \n-
    1394 perm.resize(size);
    \n-
    1395
    \n-
    1396 typename std::vector<size_type*>::iterator it = perm.begin();
    \n-
    1397 for (size_type* iit = begin; iit < begin + size; ++iit, ++it)
    \n-
    1398 *it = iit;
    \n-
    1399
    \n-
    1400 //sort permutation array
    \n-
    1401 std::sort(perm.begin(),perm.end(),PointerCompare<size_type>());
    \n-
    1402
    \n-
    1403 //change row window pointer to their new positions
    \n-
    1404 r[i].setindexptr(jiit);
    \n-
    1405 r[i].setptr(aiit);
    \n-
    1406
    \n-
    1407 for (it = perm.begin(); it != perm.end(); ++it)
    \n-
    1408 {
    \n-
    1409 //check whether there are elements in the overflow area which take precedence
    \n-
    1410 while ((oit!=overflow.end()) && (oit->first < std::make_pair(i,**it)))
    \n-
    1411 {
    \n-
    1412 //check whether there is enough memory to write to
    \n-
    1413 if (jiit > begin)
    \n-\n-
    1415 "Allocated memory for BCRSMatrix exhausted during compress()!"
    \n-
    1416 "Please increase either the average number of entries per row or the compressionBufferSize value."
    \n-
    1417 );
    \n-
    1418 //copy an element from the overflow area to the insertion position in a and j
    \n-
    1419 *jiit = oit->first.second;
    \n-
    1420 ++jiit;
    \n-
    1421 *aiit = oit->second;
    \n-
    1422 ++aiit;
    \n-
    1423 ++oit;
    \n-
    1424 r[i].setsize(r[i].getsize()+1);
    \n-
    1425 }
    \n-
    1426
    \n-
    1427 //check whether there is enough memory to write to
    \n-
    1428 if (jiit > begin)
    \n-\n-
    1430 "Allocated memory for BCRSMatrix exhausted during compress()!"
    \n-
    1431 "Please increase either the average number of entries per row or the compressionBufferSize value."
    \n-
    1432 );
    \n-
    1433
    \n-
    1434 //copy element from array
    \n-
    1435 *jiit = **it;
    \n-
    1436 ++jiit;
    \n-
    1437 B* apos = *it - j_.get() + a;
    \n-
    1438 *aiit = *apos;
    \n-
    1439 ++aiit;
    \n-
    1440 }
    \n-
    1441
    \n-
    1442 //copy remaining elements from the overflow area
    \n-
    1443 while ((oit!=overflow.end()) && (oit->first.first == i))
    \n-
    1444 {
    \n-
    1445 //check whether there is enough memory to write to
    \n-
    1446 if (jiit > begin)
    \n-\n-
    1448 "Allocated memory for BCRSMatrix exhausted during compress()!"
    \n-
    1449 "Please increase either the average number of entries per row or the compressionBufferSize value."
    \n-
    1450 );
    \n-
    1451
    \n-
    1452 //copy and element from the overflow area to the insertion position in a and j
    \n-
    1453 *jiit = oit->first.second;
    \n-
    1454 ++jiit;
    \n-
    1455 *aiit = oit->second;
    \n-
    1456 ++aiit;
    \n-
    1457 ++oit;
    \n-
    1458 r[i].setsize(r[i].getsize()+1);
    \n-
    1459 }
    \n-
    1460
    \n-
    1461 // update maximum row size
    \n-
    1462 if (r[i].getsize()>stats.maximum)
    \n-
    1463 stats.maximum = r[i].getsize();
    \n-
    1464 }
    \n-
    1465
    \n-
    1466 // overflow area may be cleared
    \n-
    1467 overflow.clear();
    \n-
    1468
    \n-
    1469 //determine average number of entries and memory usage
    \n-
    1470 std::ptrdiff_t diff = (r[n-1].getindexptr() + r[n-1].getsize() - j_.get());
    \n-
    1471 nnz_ = diff;
    \n-
    1472 stats.avg = (double) (nnz_) / (double) n;
    \n-
    1473 stats.mem_ratio = (double) (nnz_) / (double) allocationSize_;
    \n-
    1474
    \n-
    1475 //matrix is now built
    \n-
    1476 ready = built;
    \n-
    1477
    \n-
    1478 return stats;
    \n-
    1479 }
    \n-
    \n-
    1480
    \n-
    1481 //===== vector space arithmetic
    \n-
    1482
    \n-
    \n-\n-
    1485 {
    \n-
    1486#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1487 if (ready != built)
    \n-
    1488 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1489#endif
    \n-
    1490
    \n-
    1491 if (nnz_ > 0)
    \n-
    1492 {
    \n-
    1493 // process 1D array
    \n-
    1494 for (size_type i=0; i<nnz_; i++)
    \n-
    1495 a[i] *= k;
    \n-
    1496 }
    \n-
    1497 else
    \n-
    1498 {
    \n-
    1499 RowIterator endi=end();
    \n-
    1500 for (RowIterator i=begin(); i!=endi; ++i)
    \n-
    1501 {
    \n-
    1502 ColIterator endj = (*i).end();
    \n-
    1503 for (ColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1504 (*j) *= k;
    \n-
    1505 }
    \n-
    1506 }
    \n-
    1507
    \n-
    1508 return *this;
    \n-
    1509 }
    \n-
    \n-
    1510
    \n-
    \n-\n-
    1513 {
    \n-
    1514#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1515 if (ready != built)
    \n-
    1516 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1517#endif
    \n-
    1518
    \n-
    1519 if (nnz_ > 0)
    \n-
    1520 {
    \n-
    1521 // process 1D array
    \n-
    1522 for (size_type i=0; i<nnz_; i++)
    \n-
    1523 a[i] /= k;
    \n-
    1524 }
    \n-
    1525 else
    \n-
    1526 {
    \n-
    1527 RowIterator endi=end();
    \n-
    1528 for (RowIterator i=begin(); i!=endi; ++i)
    \n-
    1529 {
    \n-
    1530 ColIterator endj = (*i).end();
    \n-
    1531 for (ColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1532 (*j) /= k;
    \n-
    1533 }
    \n-
    1534 }
    \n-
    1535
    \n-
    1536 return *this;
    \n-
    1537 }
    \n-
    \n-
    1538
    \n-
    1539
    \n-
    \n-\n-
    1546 {
    \n-
    1547#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1548 if (ready != built || b.ready != built)
    \n-
    1549 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1550 if(N()!=b.N() || M() != b.M())
    \n-
    1551 DUNE_THROW(RangeError, "Matrix sizes do not match!");
    \n-
    1552#endif
    \n-
    1553 RowIterator endi=end();
    \n-
    1554 ConstRowIterator j=b.begin();
    \n-
    1555 for (RowIterator i=begin(); i!=endi; ++i, ++j) {
    \n-
    1556 i->operator+=(*j);
    \n-
    1557 }
    \n-
    1558
    \n-
    1559 return *this;
    \n-
    1560 }
    \n-
    \n-
    1561
    \n-
    \n-\n-
    1568 {
    \n-
    1569#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1570 if (ready != built || b.ready != built)
    \n-
    1571 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1572 if(N()!=b.N() || M() != b.M())
    \n-
    1573 DUNE_THROW(RangeError, "Matrix sizes do not match!");
    \n-
    1574#endif
    \n-
    1575 RowIterator endi=end();
    \n-
    1576 ConstRowIterator j=b.begin();
    \n-
    1577 for (RowIterator i=begin(); i!=endi; ++i, ++j) {
    \n-
    1578 i->operator-=(*j);
    \n-
    1579 }
    \n-
    1580
    \n-
    1581 return *this;
    \n-
    1582 }
    \n-
    \n-
    1583
    \n-
    \n-\n-
    1593 {
    \n-
    1594#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1595 if (ready != built || b.ready != built)
    \n-
    1596 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1597 if(N()!=b.N() || M() != b.M())
    \n-
    1598 DUNE_THROW(RangeError, "Matrix sizes do not match!");
    \n-
    1599#endif
    \n-
    1600 RowIterator endi=end();
    \n-
    1601 ConstRowIterator j=b.begin();
    \n-
    1602 for(RowIterator i=begin(); i!=endi; ++i, ++j)
    \n-
    1603 i->axpy(alpha, *j);
    \n-
    1604
    \n-
    1605 return *this;
    \n-
    1606 }
    \n-
    \n-
    1607
    \n-
    1608 //===== linear maps
    \n-
    1609
    \n-
    1611 template<class X, class Y>
    \n-
    \n-
    1612 void mv (const X& x, Y& y) const
    \n-
    1613 {
    \n-
    1614#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1615 if (ready != built)
    \n-
    1616 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1617 if (x.N()!=M()) DUNE_THROW(BCRSMatrixError,
    \n-
    1618 "Size mismatch: M: " << N() << "x" << M() << " x: " << x.N());
    \n-
    1619 if (y.N()!=N()) DUNE_THROW(BCRSMatrixError,
    \n-
    1620 "Size mismatch: M: " << N() << "x" << M() << " y: " << y.N());
    \n-
    1621#endif
    \n-
    1622 ConstRowIterator endi=end();
    \n-
    1623 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n-
    1624 {
    \n-
    1625 y[i.index()]=0;
    \n-
    1626 ConstColIterator endj = (*i).end();
    \n-
    1627 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1628 {
    \n-
    1629 auto&& xj = Impl::asVector(x[j.index()]);
    \n-
    1630 auto&& yi = Impl::asVector(y[i.index()]);
    \n-
    1631 Impl::asMatrix(*j).umv(xj, yi);
    \n-
    1632 }
    \n-
    1633 }
    \n-
    1634 }
    \n-
    \n-
    1635
    \n-
    1637 template<class X, class Y>
    \n-
    \n-
    1638 void umv (const X& x, Y& y) const
    \n-
    1639 {
    \n-
    1640#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1641 if (ready != built)
    \n-
    1642 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1643 if (x.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1644 if (y.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1645#endif
    \n-
    1646 ConstRowIterator endi=end();
    \n-
    1647 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n-
    1648 {
    \n-
    1649 ConstColIterator endj = (*i).end();
    \n-
    1650 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1651 {
    \n-
    1652 auto&& xj = Impl::asVector(x[j.index()]);
    \n-
    1653 auto&& yi = Impl::asVector(y[i.index()]);
    \n-
    1654 Impl::asMatrix(*j).umv(xj,yi);
    \n-
    1655 }
    \n-
    1656 }
    \n-
    1657 }
    \n-
    \n-
    1658
    \n-
    1660 template<class X, class Y>
    \n-
    \n-
    1661 void mmv (const X& x, Y& y) const
    \n-
    1662 {
    \n-
    1663#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1664 if (ready != built)
    \n-
    1665 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1666 if (x.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1667 if (y.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1668#endif
    \n-
    1669 ConstRowIterator endi=end();
    \n-
    1670 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n-
    1671 {
    \n-
    1672 ConstColIterator endj = (*i).end();
    \n-
    1673 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1674 {
    \n-
    1675 auto&& xj = Impl::asVector(x[j.index()]);
    \n-
    1676 auto&& yi = Impl::asVector(y[i.index()]);
    \n-
    1677 Impl::asMatrix(*j).mmv(xj,yi);
    \n-
    1678 }
    \n-
    1679 }
    \n-
    1680 }
    \n-
    \n-
    1681
    \n-
    1683 template<class X, class Y, class F>
    \n-
    \n-
    1684 void usmv (F&& alpha, const X& x, Y& y) const
    \n-
    1685 {
    \n-
    1686#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1687 if (ready != built)
    \n-
    1688 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1689 if (x.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1690 if (y.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1691#endif
    \n-
    1692 ConstRowIterator endi=end();
    \n-
    1693 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n-
    1694 {
    \n-
    1695 ConstColIterator endj = (*i).end();
    \n-
    1696 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1697 {
    \n-
    1698 auto&& xj = Impl::asVector(x[j.index()]);
    \n-
    1699 auto&& yi = Impl::asVector(y[i.index()]);
    \n-
    1700 Impl::asMatrix(*j).usmv(alpha,xj,yi);
    \n-
    1701 }
    \n-
    1702 }
    \n-
    1703 }
    \n-
    \n-
    1704
    \n-
    1706 template<class X, class Y>
    \n-
    \n-
    1707 void mtv (const X& x, Y& y) const
    \n-
    1708 {
    \n-
    1709#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1710 if (ready != built)
    \n-
    1711 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1712 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1713 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1714#endif
    \n-
    1715 for(size_type i=0; i<y.N(); ++i)
    \n-
    1716 y[i]=0;
    \n-
    1717 umtv(x,y);
    \n-
    1718 }
    \n-
    \n-
    1719
    \n-
    1721 template<class X, class Y>
    \n-
    \n-
    1722 void umtv (const X& x, Y& y) const
    \n-
    1723 {
    \n-
    1724#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1725 if (ready != built)
    \n-
    1726 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1727 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1728 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1729#endif
    \n-
    1730 ConstRowIterator endi=end();
    \n-
    1731 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n-
    1732 {
    \n-
    1733 ConstColIterator endj = (*i).end();
    \n-
    1734 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1735 {
    \n-
    1736 auto&& xi = Impl::asVector(x[i.index()]);
    \n-
    1737 auto&& yj = Impl::asVector(y[j.index()]);
    \n-
    1738 Impl::asMatrix(*j).umtv(xi,yj);
    \n-
    1739 }
    \n-
    1740 }
    \n-
    1741 }
    \n-
    \n-
    1742
    \n-
    1744 template<class X, class Y>
    \n-
    \n-
    1745 void mmtv (const X& x, Y& y) const
    \n-
    1746 {
    \n-
    1747#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1748 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1749 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1750#endif
    \n-
    1751 ConstRowIterator endi=end();
    \n-
    1752 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n-
    1753 {
    \n-
    1754 ConstColIterator endj = (*i).end();
    \n-
    1755 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1756 {
    \n-
    1757 auto&& xi = Impl::asVector(x[i.index()]);
    \n-
    1758 auto&& yj = Impl::asVector(y[j.index()]);
    \n-
    1759 Impl::asMatrix(*j).mmtv(xi,yj);
    \n-
    1760 }
    \n-
    1761 }
    \n-
    1762 }
    \n-
    \n-
    1763
    \n-
    1765 template<class X, class Y>
    \n-
    \n-
    1766 void usmtv (const field_type& alpha, const X& x, Y& y) const
    \n-
    1767 {
    \n-
    1768#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1769 if (ready != built)
    \n-
    1770 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1771 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1772 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1773#endif
    \n-
    1774 ConstRowIterator endi=end();
    \n-
    1775 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n-
    1776 {
    \n-
    1777 ConstColIterator endj = (*i).end();
    \n-
    1778 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1779 {
    \n-
    1780 auto&& xi = Impl::asVector(x[i.index()]);
    \n-
    1781 auto&& yj = Impl::asVector(y[j.index()]);
    \n-
    1782 Impl::asMatrix(*j).usmtv(alpha,xi,yj);
    \n-
    1783 }
    \n-
    1784 }
    \n-
    1785 }
    \n-
    \n-
    1786
    \n-
    1788 template<class X, class Y>
    \n-
    \n-
    1789 void umhv (const X& x, Y& y) const
    \n-
    1790 {
    \n-
    1791#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1792 if (ready != built)
    \n-
    1793 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1794 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1795 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1796#endif
    \n-
    1797 ConstRowIterator endi=end();
    \n-
    1798 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n-
    1799 {
    \n-
    1800 ConstColIterator endj = (*i).end();
    \n-
    1801 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1802 {
    \n-
    1803 auto&& xi = Impl::asVector(x[i.index()]);
    \n-
    1804 auto&& yj = Impl::asVector(y[j.index()]);
    \n-
    1805 Impl::asMatrix(*j).umhv(xi,yj);
    \n-
    1806 }
    \n-
    1807 }
    \n-
    1808 }
    \n-
    \n-
    1809
    \n-
    1811 template<class X, class Y>
    \n-
    \n-
    1812 void mmhv (const X& x, Y& y) const
    \n-
    1813 {
    \n-
    1814#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1815 if (ready != built)
    \n-
    1816 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1817 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1818 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1819#endif
    \n-
    1820 ConstRowIterator endi=end();
    \n-
    1821 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n-
    1822 {
    \n-
    1823 ConstColIterator endj = (*i).end();
    \n-
    1824 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1825 {
    \n-
    1826 auto&& xi = Impl::asVector(x[i.index()]);
    \n-
    1827 auto&& yj = Impl::asVector(y[j.index()]);
    \n-
    1828 Impl::asMatrix(*j).mmhv(xi,yj);
    \n-
    1829 }
    \n-
    1830 }
    \n-
    1831 }
    \n-
    \n-
    1832
    \n-
    1834 template<class X, class Y>
    \n-
    \n-
    1835 void usmhv (const field_type& alpha, const X& x, Y& y) const
    \n-
    1836 {
    \n-
    1837#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1838 if (ready != built)
    \n-
    1839 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1840 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1841 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n-
    1842#endif
    \n-
    1843 ConstRowIterator endi=end();
    \n-
    1844 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n-
    1845 {
    \n-
    1846 ConstColIterator endj = (*i).end();
    \n-
    1847 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n-
    1848 {
    \n-
    1849 auto&& xi = Impl::asVector(x[i.index()]);
    \n-
    1850 auto&& yj = Impl::asVector(y[j.index()]);
    \n-
    1851 Impl::asMatrix(*j).usmhv(alpha,xi,yj);
    \n-
    1852 }
    \n-
    1853 }
    \n-
    1854 }
    \n-
    \n-
    1855
    \n-
    1856
    \n-
    1857 //===== norms
    \n-
    1858
    \n-
    \n-
    1860 typename FieldTraits<field_type>::real_type frobenius_norm2 () const
    \n-
    1861 {
    \n-
    1862#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1863 if (ready != built)
    \n-
    1864 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1865#endif
    \n-
    1866
    \n-
    1867 typename FieldTraits<field_type>::real_type sum=0;
    \n-
    1868
    \n-
    1869 for (auto&& row : (*this))
    \n-
    1870 for (auto&& entry : row)
    \n-
    1871 sum += Impl::asMatrix(entry).frobenius_norm2();
    \n-
    1872
    \n-
    1873 return sum;
    \n-
    1874 }
    \n-
    \n-
    1875
    \n-
    \n-
    1877 typename FieldTraits<field_type>::real_type frobenius_norm () const
    \n-
    1878 {
    \n-
    1879 return sqrt(frobenius_norm2());
    \n-
    1880 }
    \n-
    \n-
    1881
    \n-
    1883 template <typename ft = field_type,
    \n-
    1884 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n-
    \n-
    1885 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n-
    1886 if (ready != built)
    \n-
    1887 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1888
    \n-
    1889 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    1890 using std::max;
    \n-
    1891
    \n-
    1892 real_type norm = 0;
    \n-
    1893 for (auto const &x : *this) {
    \n-
    1894 real_type sum = 0;
    \n-
    1895 for (auto const &y : x)
    \n-
    1896 sum += Impl::asMatrix(y).infinity_norm();
    \n-
    1897 norm = max(sum, norm);
    \n-
    1898 }
    \n-
    1899 return norm;
    \n-
    1900 }
    \n-
    \n-
    1901
    \n-
    1903 template <typename ft = field_type,
    \n-
    1904 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n-
    \n-
    1905 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n-
    1906 if (ready != built)
    \n-
    1907 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1908
    \n-
    1909 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    1910 using std::max;
    \n-
    1911
    \n-
    1912 real_type norm = 0;
    \n-
    1913 for (auto const &x : *this) {
    \n-
    1914 real_type sum = 0;
    \n-
    1915 for (auto const &y : x)
    \n-
    1916 sum += Impl::asMatrix(y).infinity_norm_real();
    \n-
    1917 norm = max(sum, norm);
    \n-
    1918 }
    \n-
    1919 return norm;
    \n-
    1920 }
    \n-
    \n-
    1921
    \n-
    1923 template <typename ft = field_type,
    \n-
    1924 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n-
    \n-
    1925 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n-
    1926 if (ready != built)
    \n-
    1927 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1928
    \n-
    1929 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    1930 using std::max;
    \n-
    1931
    \n-
    1932 real_type norm = 0;
    \n-
    1933 real_type isNaN = 1;
    \n-
    1934 for (auto const &x : *this) {
    \n-
    1935 real_type sum = 0;
    \n-
    1936 for (auto const &y : x)
    \n-
    1937 sum += Impl::asMatrix(y).infinity_norm();
    \n-
    1938 norm = max(sum, norm);
    \n-
    1939 isNaN += sum;
    \n-
    1940 }
    \n-
    1941
    \n-
    1942 return norm * (isNaN / isNaN);
    \n-
    1943 }
    \n-
    \n-
    1944
    \n-
    1946 template <typename ft = field_type,
    \n-
    1947 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n-
    \n-
    1948 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n-
    1949 if (ready != built)
    \n-
    1950 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n-
    1951
    \n-
    1952 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    1953 using std::max;
    \n-
    1954
    \n-
    1955 real_type norm = 0;
    \n-
    1956 real_type isNaN = 1;
    \n-
    1957
    \n-
    1958 for (auto const &x : *this) {
    \n-
    1959 real_type sum = 0;
    \n-
    1960 for (auto const &y : x)
    \n-
    1961 sum += Impl::asMatrix(y).infinity_norm_real();
    \n-
    1962 norm = max(sum, norm);
    \n-
    1963 isNaN += sum;
    \n-
    1964 }
    \n-
    1965
    \n-
    1966 return norm * (isNaN / isNaN);
    \n-
    1967 }
    \n-
    \n-
    1968
    \n-
    1969 //===== sizes
    \n-
    1970
    \n-
    \n-
    1972 size_type N () const
    \n-
    1973 {
    \n-
    1974 return n;
    \n-
    1975 }
    \n-
    \n-
    1976
    \n-
    \n-
    1978 size_type M () const
    \n-
    1979 {
    \n-
    1980 return m;
    \n-
    1981 }
    \n-
    \n-
    1982
    \n-
    \n-\n-
    1985 {
    \n-
    1986 // in case of row-wise allocation
    \n-
    1987 if( nnz_ <= 0 )
    \n-
    1988 nnz_ = std::accumulate( begin(), end(), size_type( 0 ), [] ( size_type s, const row_type &row ) { return s+row.getsize(); } );
    \n-
    1989 return nnz_;
    \n-
    1990 }
    \n-
    \n-
    1991
    \n-
    \n-\n-
    1994 {
    \n-
    1995 return ready;
    \n-
    1996 }
    \n-
    \n-
    1997
    \n-
    \n-\n-
    2000 {
    \n-
    2001 return build_mode;
    \n-
    2002 }
    \n-
    \n-
    2003
    \n-
    2004 //===== query
    \n-
    2005
    \n-
    \n-
    2007 bool exists (size_type i, size_type j) const
    \n-
    2008 {
    \n-
    2009#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    2010 if (i<0 || i>=n) DUNE_THROW(BCRSMatrixError,"row index out of range");
    \n-
    2011 if (j<0 || j>=m) DUNE_THROW(BCRSMatrixError,"column index out of range");
    \n-
    2012#endif
    \n-
    2013 return (r[i].size() && r[i].find(j) != r[i].end());
    \n-
    2014 }
    \n-
    \n-
    2015
    \n-
    2016
    \n-
    2017 protected:
    \n-
    2018 // state information
    \n-
    2019 BuildMode build_mode; // row wise or whole matrix
    \n-
    2020 BuildStage ready; // indicate the stage the matrix building is in
    \n-
    2021
    \n-
    2022 // The allocator used for memory management
    \n-
    2023 typename std::allocator_traits<A>::template rebind_alloc<B> allocator_;
    \n-
    2024
    \n-
    2025 typename std::allocator_traits<A>::template rebind_alloc<row_type> rowAllocator_;
    \n-
    2026
    \n-
    2027 typename std::allocator_traits<A>::template rebind_alloc<size_type> sizeAllocator_;
    \n-
    2028
    \n-
    2029 // size of the matrix
    \n-
    2030 size_type n; // number of rows
    \n-
    2031 size_type m; // number of columns
    \n-
    2032 mutable size_type nnz_; // number of nonzeroes contained in the matrix
    \n-
    2033 size_type allocationSize_; //allocated size of a and j arrays, except in implicit mode: nnz_==allocationsSize_
    \n-
    2034 // zero means that memory is allocated separately for each row.
    \n-
    2035
    \n-
    2036 // the rows are dynamically allocated
    \n-
    2037 row_type* r; // [n] the individual rows having pointers into a,j arrays
    \n-
    2038
    \n-
    2039 // dynamically allocated memory
    \n-
    2040 B* a; // [allocationSize] non-zero entries of the matrix in row-wise ordering
    \n-
    2041 // If a single array of column indices is used, it can be shared
    \n-
    2042 // between different matrices with the same sparsity pattern
    \n-
    2043 std::shared_ptr<size_type> j_; // [allocationSize] column indices of entries
    \n-
    2044
    \n-
    2045 // additional data is needed in implicit buildmode
    \n-\n-\n-
    2048
    \n-
    2049 typedef std::map<std::pair<size_type,size_type>, B> OverflowType;
    \n-\n-
    2051
    \n-
    \n-\n-
    2053 {
    \n-
    2054 row_type current_row(a,j_.get(),0); // Pointers to current row data
    \n-
    2055 for (size_type i=0; i<n; i++, ++row) {
    \n-
    2056 // set row i
    \n-
    2057 size_type s = row->getsize();
    \n-
    2058
    \n-
    2059 if (s>0) {
    \n-
    2060 // setup pointers and size
    \n-
    2061 r[i].set(s,current_row.getptr(), current_row.getindexptr());
    \n-
    2062 // update pointer for next row
    \n-
    2063 current_row.setptr(current_row.getptr()+s);
    \n-
    2064 current_row.setindexptr(current_row.getindexptr()+s);
    \n-
    2065 } else{
    \n-
    2066 // empty row
    \n-
    2067 r[i].set(0,nullptr,nullptr);
    \n-
    2068 }
    \n-
    2069 }
    \n-
    2070 }
    \n-
    \n-
    2071
    \n-
    2073
    \n-
    \n-\n-
    2078 {
    \n-
    2079 size_type* jptr = j_.get();
    \n-
    2080 for (size_type i=0; i<n; ++i, ++row) {
    \n-
    2081 // set row i
    \n-
    2082 size_type s = row->getsize();
    \n-
    2083
    \n-
    2084 if (s>0) {
    \n-
    2085 // setup pointers and size
    \n-
    2086 r[i].setsize(s);
    \n-
    2087 r[i].setindexptr(jptr);
    \n-
    2088 } else{
    \n-
    2089 // empty row
    \n-
    2090 r[i].set(0,nullptr,nullptr);
    \n-
    2091 }
    \n-
    2092
    \n-
    2093 // advance position in global array
    \n-
    2094 jptr += s;
    \n-
    2095 }
    \n-
    2096 }
    \n-
    \n-
    2097
    \n-
    2099
    \n-
    \n-\n-
    2104 {
    \n-
    2105 B* aptr = a;
    \n-
    2106 for (size_type i=0; i<n; ++i) {
    \n-
    2107 // set row i
    \n-
    2108 if (r[i].getsize() > 0) {
    \n-
    2109 // setup pointers and size
    \n-
    2110 r[i].setptr(aptr);
    \n-
    2111 } else{
    \n-
    2112 // empty row
    \n-
    2113 r[i].set(0,nullptr,nullptr);
    \n-
    2114 }
    \n-
    2115
    \n-
    2116 // advance position in global array
    \n-
    2117 aptr += r[i].getsize();
    \n-
    2118 }
    \n-
    2119 }
    \n-
    \n-
    2120
    \n-
    \n-\n-
    2123 {
    \n-
    2124 setWindowPointers(Mat.begin());
    \n-
    2125
    \n-
    2126 // copy data
    \n-
    2127 for (size_type i=0; i<n; i++) r[i] = Mat.r[i];
    \n-
    2128
    \n-
    2129 // finish off
    \n-
    2130 build_mode = row_wise; // dummy
    \n-
    2131 ready = built;
    \n-
    2132 }
    \n-
    \n-
    2133
    \n-
    \n-
    2139 void deallocate(bool deallocateRows=true)
    \n-
    2140 {
    \n-
    2141
    \n-
    2142 if (notAllocated)
    \n-
    2143 return;
    \n-
    2144
    \n-
    2145 if (allocationSize_>0)
    \n-
    2146 {
    \n-
    2147 // a,j_ have been allocated as one long vector
    \n-
    2148 j_.reset();
    \n-
    2149 if (a)
    \n-
    2150 {
    \n-
    2151 for(B *aiter=a+(allocationSize_-1), *aend=a-1; aiter!=aend; --aiter)
    \n-
    2152 std::allocator_traits<decltype(allocator_)>::destroy(allocator_, aiter);
    \n-
    2153 allocator_.deallocate(a,allocationSize_);
    \n-
    2154 a = nullptr;
    \n-
    2155 }
    \n-
    2156 }
    \n-
    2157 else if (r)
    \n-
    2158 {
    \n-
    2159 // check if memory for rows have been allocated individually
    \n-
    2160 for (size_type i=0; i<n; i++)
    \n-
    2161 if (r[i].getsize()>0)
    \n-
    2162 {
    \n-
    2163 for (B *col=r[i].getptr()+(r[i].getsize()-1),
    \n-
    2164 *colend = r[i].getptr()-1; col!=colend; --col) {
    \n-
    2165 std::allocator_traits<decltype(allocator_)>::destroy(allocator_, col);
    \n-
    2166 }
    \n-
    2167 sizeAllocator_.deallocate(r[i].getindexptr(),1);
    \n-
    2168 allocator_.deallocate(r[i].getptr(),1);
    \n-
    2169 // clear out row data in case we don't want to deallocate the rows
    \n-
    2170 // otherwise we might run into a double free problem here later
    \n-
    2171 r[i].set(0,nullptr,nullptr);
    \n-
    2172 }
    \n-
    2173 }
    \n-
    2174
    \n-
    2175 // deallocate the rows
    \n-
    2176 if (n>0 && deallocateRows && r) {
    \n-
    2177 for(row_type *riter=r+(n-1), *rend=r-1; riter!=rend; --riter)
    \n-
    2178 std::allocator_traits<decltype(rowAllocator_)>::destroy(rowAllocator_, riter);
    \n-
    2179 rowAllocator_.deallocate(r,n);
    \n-
    2180 r = nullptr;
    \n-
    2181 }
    \n-
    2182
    \n-
    2183 // Mark matrix as not built at all.
    \n-\n-
    2185
    \n-
    2186 }
    \n-
    \n-
    2187
    \n-
    \n-
    2205 void allocate(size_type rows, size_type columns, size_type allocationSize, bool allocateRows, bool allocate_data)
    \n-
    2206 {
    \n-
    2207 // Store size
    \n-
    2208 n = rows;
    \n-
    2209 m = columns;
    \n-
    2210 nnz_ = allocationSize;
    \n-
    2211 allocationSize_ = allocationSize;
    \n-
    2212
    \n-
    2213 // allocate rows
    \n-
    2214 if(allocateRows) {
    \n-
    2215 if (n>0) {
    \n-
    2216 if (r)
    \n-
    2217 DUNE_THROW(InvalidStateException,"Rows have already been allocated, cannot allocate a second time");
    \n-
    2218 r = rowAllocator_.allocate(rows);
    \n-
    2219 // initialize row entries
    \n-
    2220 for(row_type* ri=r; ri!=r+rows; ++ri)
    \n-
    2221 std::allocator_traits<decltype(rowAllocator_)>::construct(rowAllocator_, ri, row_type());
    \n-
    2222 }else{
    \n-
    2223 r = 0;
    \n-
    2224 }
    \n-
    2225 }
    \n-
    2226
    \n-
    2227 // allocate a and j_ array
    \n-
    2228 if (allocate_data)
    \n-
    2229 allocateData();
    \n-
    2230 // allocate column indices only if not yet present (enable sharing)
    \n-
    2231 if (allocationSize_>0) {
    \n-
    2232 // we copy allocator and size to the deleter since _j may outlive this class
    \n-
    2233 if (!j_.get())
    \n-
    2234 j_.reset(sizeAllocator_.allocate(allocationSize_),
    \n-
    2235 [alloc = sizeAllocator_, size = allocationSize_](auto ptr) mutable {
    \n-
    2236 alloc.deallocate(ptr, size);
    \n-
    2237 });
    \n-
    2238 }else{
    \n-
    2239 j_.reset();
    \n-
    2240 }
    \n-
    2241
    \n-
    2242 // Mark the matrix as not built.
    \n-
    2243 ready = building;
    \n-
    2244 }
    \n-
    \n-
    2245
    \n-
    \n-\n-
    2247 {
    \n-
    2248 if (a)
    \n-
    2249 DUNE_THROW(InvalidStateException,"Cannot allocate data array (already allocated)");
    \n-
    2250 if (allocationSize_>0) {
    \n-
    2251 a = allocator_.allocate(allocationSize_);
    \n-
    2252 // use placement new to call constructor that allocates
    \n-
    2253 // additional memory.
    \n-
    2254 new (a) B[allocationSize_];
    \n-
    2255 } else {
    \n-
    2256 a = nullptr;
    \n-
    2257 }
    \n-
    2258 }
    \n-
    \n-
    2259
    \n-
    \n-\n-
    2266 {
    \n-
    2267 if (build_mode != implicit)
    \n-
    2268 DUNE_THROW(InvalidStateException,"implicit_allocate() may only be called in implicit build mode");
    \n-
    2269 if (ready != notAllocated)
    \n-
    2270 DUNE_THROW(InvalidStateException,"memory has already been allocated");
    \n-
    2271
    \n-
    2272 // check to make sure the user has actually set the parameters
    \n-
    2273 if (compressionBufferSize_ < 0)
    \n-
    2274 DUNE_THROW(InvalidStateException,"You have to set the implicit build mode parameters before starting to build the matrix");
    \n-
    2275 //calculate size of overflow region, add buffer for row sort!
    \n-\n-
    2277 allocationSize_ = _n*avg + osize;
    \n-
    2278
    \n-
    2279 allocate(_n, _m, allocationSize_,true,true);
    \n-
    2280
    \n-
    2281 //set row pointers correctly
    \n-
    2282 size_type* jptr = j_.get() + osize;
    \n-
    2283 B* aptr = a + osize;
    \n-
    2284 for (size_type i=0; i<n; i++)
    \n-
    2285 {
    \n-
    2286 r[i].set(0,aptr,jptr);
    \n-
    2287 jptr = jptr + avg;
    \n-
    2288 aptr = aptr + avg;
    \n-
    2289 }
    \n-
    2290
    \n-
    2291 ready = building;
    \n-
    2292 }
    \n-
    \n-
    2293 };
    \n-
    \n-
    2294
    \n-
    2295
    \n-
    2296 template<class B, class A>
    \n-
    \n-
    2297 struct FieldTraits< BCRSMatrix<B, A> >
    \n-
    2298 {
    \n-\n-
    2300 using real_type = typename FieldTraits<field_type>::real_type;
    \n-
    2301 };
    \n-
    \n-
    2302
    \n-
    2305} // end namespace
    \n-
    2306
    \n-
    2307#endif
    \n-
    Helper functions for determining the vector/matrix block level.
    \n-\n-
    Some handy generic functions for ISTL matrices.
    \n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n+
    102 } // namespace Amg
    \n+
    103} //namespace Dune
    \n+
    104#endif
    \n+\n
    Definition allocator.hh:11
    \n-
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    Definition matrixutils.hh:211
    \n-
    Statistics about compression achieved in implicit mode.
    Definition bcrsmatrix.hh:88
    \n-
    size_type overflow_total
    total number of elements written to the overflow area during construction.
    Definition bcrsmatrix.hh:94
    \n-
    size_type maximum
    maximum number of non-zeroes per row.
    Definition bcrsmatrix.hh:92
    \n-
    double avg
    average number of non-zeroes per row.
    Definition bcrsmatrix.hh:90
    \n-
    double mem_ratio
    fraction of wasted memory resulting from non-used overflow area.
    Definition bcrsmatrix.hh:99
    \n-
    A wrapper for uniform access to the BCRSMatrix during and after the build stage in implicit build mod...
    Definition bcrsmatrix.hh:117
    \n-
    Matrix::block_type block_type
    The block_type of the underlying matrix.
    Definition bcrsmatrix.hh:125
    \n-
    ImplicitMatrixBuilder(Matrix &m)
    Creates an ImplicitMatrixBuilder for matrix m.
    Definition bcrsmatrix.hh:170
    \n-
    M_ Matrix
    The underlying matrix.
    Definition bcrsmatrix.hh:122
    \n-
    ImplicitMatrixBuilder(Matrix &m, size_type rows, size_type cols, size_type avg_cols_per_row, double overflow_fraction)
    Sets up matrix m for implicit construction using the given parameters and creates an ImplicitBmatrixu...
    Definition bcrsmatrix.hh:194
    \n-
    size_type M() const
    The number of columns in the matrix.
    Definition bcrsmatrix.hh:217
    \n-
    Matrix::size_type size_type
    The size_type of the underlying matrix.
    Definition bcrsmatrix.hh:128
    \n-
    row_object operator[](size_type i) const
    Returns a proxy for entries in row i.
    Definition bcrsmatrix.hh:205
    \n-
    size_type N() const
    The number of rows in the matrix.
    Definition bcrsmatrix.hh:211
    \n-
    Proxy row object for entry access.
    Definition bcrsmatrix.hh:137
    \n-
    block_type & operator[](size_type j) const
    Returns entry in column j.
    Definition bcrsmatrix.hh:142
    \n-
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bcrsmatrix.hh:488
    \n-
    std::allocator_traits< A >::template rebind_alloc< row_type > rowAllocator_
    Definition bcrsmatrix.hh:2025
    \n-
    bool exists(size_type i, size_type j) const
    return true if (i,j) is in pattern
    Definition bcrsmatrix.hh:2007
    \n-
    BuildStage buildStage() const
    The current build stage of the matrix.
    Definition bcrsmatrix.hh:1993
    \n-
    Iterator begin()
    Get iterator to first row.
    Definition bcrsmatrix.hh:675
    \n-
    void copyWindowStructure(const BCRSMatrix &Mat)
    Copy the window structure from another matrix.
    Definition bcrsmatrix.hh:2122
    \n-
    B & entry(size_type row, size_type col)
    Returns reference to entry (row,col) of the matrix.
    Definition bcrsmatrix.hh:1296
    \n-
    void mmhv(const X &x, Y &y) const
    y -= A^H x
    Definition bcrsmatrix.hh:1812
    \n-
    void usmhv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^H x
    Definition bcrsmatrix.hh:1835
    \n-
    void umtv(const X &x, Y &y) const
    y += A^T x
    Definition bcrsmatrix.hh:1722
    \n-
    double compressionBufferSize_
    Definition bcrsmatrix.hh:2047
    \n-
    size_type m
    Definition bcrsmatrix.hh:2031
    \n-
    RealRowIterator< const row_type > const_iterator
    The const iterator over the matrix rows.
    Definition bcrsmatrix.hh:707
    \n-
    static constexpr unsigned int blocklevel
    increment block level counter
    Definition bcrsmatrix.hh:507
    \n-
    void allocate(size_type rows, size_type columns, size_type allocationSize, bool allocateRows, bool allocate_data)
    Allocate memory for the matrix structure.
    Definition bcrsmatrix.hh:2205
    \n-
    BCRSMatrix & axpy(field_type alpha, const BCRSMatrix &b)
    Add the scaled entries of another matrix to this one.
    Definition bcrsmatrix.hh:1592
    \n-
    FieldTraits< ft >::real_type infinity_norm_real() const
    simplified infinity norm (uses Manhattan norm for complex values)
    Definition bcrsmatrix.hh:1905
    \n-
    ~BCRSMatrix()
    destructor
    Definition bcrsmatrix.hh:824
    \n-
    void allocateData()
    Definition bcrsmatrix.hh:2246
    \n-
    void deallocate(bool deallocateRows=true)
    deallocate memory of the matrix.
    Definition bcrsmatrix.hh:2139
    \n-
    Iterator RowIterator
    rename the iterators for easier access
    Definition bcrsmatrix.hh:701
    \n-
    row_type & operator[](size_type i)
    random access to the rows
    Definition bcrsmatrix.hh:549
    \n-
    BCRSMatrix()
    an empty matrix
    Definition bcrsmatrix.hh:749
    \n-
    void endrowsizes()
    indicate that size of all rows is defined
    Definition bcrsmatrix.hh:1149
    \n-
    void incrementrowsize(size_type i, size_type s=1)
    increment size of row i by s (1 by default)
    Definition bcrsmatrix.hh:1138
    \n-
    void mtv(const X &x, Y &y) const
    y = A^T x
    Definition bcrsmatrix.hh:1707
    \n-
    void umhv(const X &x, Y &y) const
    y += A^H x
    Definition bcrsmatrix.hh:1789
    \n-
    size_type nonzeroes() const
    number of blocks that are stored (the number of blocks that possibly are nonzero)
    Definition bcrsmatrix.hh:1984
    \n-
    size_type allocationSize_
    Definition bcrsmatrix.hh:2033
    \n-
    ConstIterator ConstRowIterator
    rename the const row iterator for easier access
    Definition bcrsmatrix.hh:738
    \n-
    BuildStage ready
    Definition bcrsmatrix.hh:2020
    \n-
    BuildMode build_mode
    Definition bcrsmatrix.hh:2019
    \n-
    void setrowsize(size_type i, size_type s)
    Set number of indices in row i to s.
    Definition bcrsmatrix.hh:1117
    \n-
    RealRowIterator< row_type > Iterator
    Definition bcrsmatrix.hh:672
    \n-
    size_type nnz_
    Definition bcrsmatrix.hh:2032
    \n-
    BCRSMatrix & operator*=(const field_type &k)
    vector space multiplication with scalar
    Definition bcrsmatrix.hh:1484
    \n-
    std::allocator_traits< A >::template rebind_alloc< size_type > sizeAllocator_
    Definition bcrsmatrix.hh:2027
    \n-
    RealRowIterator< row_type > iterator
    The iterator over the (mutable matrix rows.
    Definition bcrsmatrix.hh:671
    \n-
    void usmtv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^T x
    Definition bcrsmatrix.hh:1766
    \n-
    ConstIterator beforeBegin() const
    Definition bcrsmatrix.hh:732
    \n-
    RealRowIterator< const row_type > ConstIterator
    Definition bcrsmatrix.hh:708
    \n-
    Iterator beforeBegin()
    Definition bcrsmatrix.hh:695
    \n-
    B * a
    Definition bcrsmatrix.hh:2040
    \n-
    BuildMode
    we support two modes
    Definition bcrsmatrix.hh:510
    \n-
    @ implicit
    Build entries randomly with an educated guess for the number of entries per row.
    Definition bcrsmatrix.hh:539
    \n-
    @ unknown
    Build mode not set!
    Definition bcrsmatrix.hh:543
    \n-
    @ random
    Build entries randomly.
    Definition bcrsmatrix.hh:530
    \n-
    @ row_wise
    Build in a row-wise manner.
    Definition bcrsmatrix.hh:521
    \n-
    BCRSMatrix(size_type _n, size_type _m, size_type _nnz, BuildMode bm)
    matrix with known number of nonzeroes
    Definition bcrsmatrix.hh:756
    \n-
    ::Dune::CompressionStatistics< size_type > CompressionStatistics
    The type for the statistics object returned by compress()
    Definition bcrsmatrix.hh:503
    \n-
    BCRSMatrix & operator-=(const BCRSMatrix &b)
    Subtract the entries of another matrix from this one.
    Definition bcrsmatrix.hh:1567
    \n-
    BCRSMatrix(const BCRSMatrix &Mat)
    copy constructor
    Definition bcrsmatrix.hh:805
    \n-
    Iterator end()
    Get iterator to one beyond last row.
    Definition bcrsmatrix.hh:681
    \n-
    row_type * r
    Definition bcrsmatrix.hh:2037
    \n-
    void setIndices(size_type row, It begin, It end)
    Set all column indices for row from the given iterator range.
    Definition bcrsmatrix.hh:1234
    \n-
    void addindex(size_type row, size_type col)
    add index (row,col) to the matrix
    Definition bcrsmatrix.hh:1191
    \n-
    std::map< std::pair< size_type, size_type >, B > OverflowType
    Definition bcrsmatrix.hh:2049
    \n-
    row_type::Iterator ColIterator
    Iterator for the entries of each row.
    Definition bcrsmatrix.hh:704
    \n-
    FieldTraits< field_type >::real_type frobenius_norm() const
    frobenius norm: sqrt(sum over squared values of entries)
    Definition bcrsmatrix.hh:1877
    \n-
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n-
    BCRSMatrix & operator/=(const field_type &k)
    vector space division by scalar
    Definition bcrsmatrix.hh:1512
    \n-
    OverflowType overflow
    Definition bcrsmatrix.hh:2050
    \n-
    BCRSMatrix & operator+=(const BCRSMatrix &b)
    Add the entries of another matrix to this one.
    Definition bcrsmatrix.hh:1545
    \n-
    BCRSMatrix(size_type _n, size_type _m, size_type _avg, double compressionBufferSize, BuildMode bm)
    construct matrix with a known average number of entries per row
    Definition bcrsmatrix.hh:784
    \n-
    CreateIterator createend()
    get create iterator pointing to one after the last block
    Definition bcrsmatrix.hh:1103
    \n-
    FieldTraits< field_type >::real_type frobenius_norm2() const
    square of frobenius norm, need for block recursion
    Definition bcrsmatrix.hh:1860
    \n-
    Iterator beforeEnd()
    Definition bcrsmatrix.hh:688
    \n-
    row_type::ConstIterator ConstColIterator
    Const iterator to the entries of a row.
    Definition bcrsmatrix.hh:741
    \n-
    void usmv(F &&alpha, const X &x, Y &y) const
    y += alpha A x
    Definition bcrsmatrix.hh:1684
    \n-
    size_type getrowsize(size_type i) const
    get current number of indices in row i
    Definition bcrsmatrix.hh:1128
    \n-
    size_type M() const
    number of columns (counted in blocks)
    Definition bcrsmatrix.hh:1978
    \n-
    size_type n
    Definition bcrsmatrix.hh:2030
    \n-
    Imp::CompressedBlockVectorWindow< B, A > row_type
    implement row_type with compressed vector
    Definition bcrsmatrix.hh:497
    \n-
    CreateIterator createbegin()
    get initial create iterator
    Definition bcrsmatrix.hh:1097
    \n-
    BuildStage
    Definition bcrsmatrix.hh:469
    \n-
    @ rowSizesBuilt
    The row sizes of the matrix are known.
    Definition bcrsmatrix.hh:480
    \n-
    @ built
    The matrix structure is fully built.
    Definition bcrsmatrix.hh:482
    \n-
    @ notbuilt
    Matrix is not built at all, no memory has been allocated, build mode and size can still be set.
    Definition bcrsmatrix.hh:471
    \n-
    @ notAllocated
    Matrix is not built at all, no memory has been allocated, build mode and size can still be set.
    Definition bcrsmatrix.hh:473
    \n-
    @ building
    Matrix is currently being built, some memory has been allocated, build mode and size are fixed.
    Definition bcrsmatrix.hh:475
    \n-
    BuildMode buildMode() const
    The currently selected build mode of the matrix.
    Definition bcrsmatrix.hh:1999
    \n-
    void mmv(const X &x, Y &y) const
    y -= A x
    Definition bcrsmatrix.hh:1661
    \n-
    FieldTraits< ft >::real_type infinity_norm() const
    infinity norm (row sum norm, how to generalize for blocks?)
    Definition bcrsmatrix.hh:1885
    \n-
    void mv(const X &x, Y &y) const
    y = A x
    Definition bcrsmatrix.hh:1612
    \n-
    B block_type
    export the type representing the components
    Definition bcrsmatrix.hh:491
    \n-
    void mmtv(const X &x, Y &y) const
    y -= A^T x
    Definition bcrsmatrix.hh:1745
    \n-
    size_type avg
    Definition bcrsmatrix.hh:2046
    \n-
    void umv(const X &x, Y &y) const
    y += A x
    Definition bcrsmatrix.hh:1638
    \n-
    void implicit_allocate(size_type _n, size_type _m)
    organizes allocation implicit mode calculates correct array size to be allocated and sets the the win...
    Definition bcrsmatrix.hh:2265
    \n-
    void setImplicitBuildModeParameters(size_type _avg, double compressionBufferSize)
    Set parameters needed for creation in implicit build mode.
    Definition bcrsmatrix.hh:889
    \n-
    BCRSMatrix(size_type _n, size_type _m, BuildMode bm)
    matrix with unknown number of nonzeroes
    Definition bcrsmatrix.hh:765
    \n-
    void endindices()
    indicate that all indices are defined, check consistency
    Definition bcrsmatrix.hh:1248
    \n-
    CompressionStatistics compress()
    Finishes the buildstage in implicit mode.
    Definition bcrsmatrix.hh:1360
    \n-
    void setDataPointers()
    Set data pointers for all rows.
    Definition bcrsmatrix.hh:2103
    \n-
    std::allocator_traits< A >::template rebind_alloc< B > allocator_
    Definition bcrsmatrix.hh:2023
    \n-
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n-
    void setBuildMode(BuildMode bm)
    Sets the build mode of the matrix.
    Definition bcrsmatrix.hh:833
    \n-
    void setSize(size_type rows, size_type columns, size_type nnz=0)
    Set the size of the matrix.
    Definition bcrsmatrix.hh:861
    \n-
    std::shared_ptr< size_type > j_
    Definition bcrsmatrix.hh:2043
    \n-
    void setWindowPointers(ConstRowIterator row)
    Definition bcrsmatrix.hh:2052
    \n-
    BCRSMatrix & operator=(const BCRSMatrix &Mat)
    assignment
    Definition bcrsmatrix.hh:911
    \n-
    void setColumnPointers(ConstRowIterator row)
    Copy row sizes from iterator range starting at row and set column index pointers for all rows.
    Definition bcrsmatrix.hh:2077
    \n-
    ConstIterator end() const
    Get const iterator to one beyond last row.
    Definition bcrsmatrix.hh:718
    \n-
    ConstIterator begin() const
    Get const iterator to first row.
    Definition bcrsmatrix.hh:712
    \n-
    A allocator_type
    export the allocator type
    Definition bcrsmatrix.hh:494
    \n-
    ConstIterator beforeEnd() const
    Definition bcrsmatrix.hh:725
    \n-
    Iterator access to matrix rows
    Definition bcrsmatrix.hh:579
    \n-
    RealRowIterator()
    empty constructor, use with care!
    Definition bcrsmatrix.hh:596
    \n-
    bool equals(const RealRowIterator< ValueType > &other) const
    equality
    Definition bcrsmatrix.hh:624
    \n-
    std::remove_const< T >::type ValueType
    The unqualified value type.
    Definition bcrsmatrix.hh:583
    \n-
    RealRowIterator(const RealRowIterator< ValueType > &it)
    Definition bcrsmatrix.hh:600
    \n-
    bool equals(const RealRowIterator< const ValueType > &other) const
    equality
    Definition bcrsmatrix.hh:631
    \n-
    RealRowIterator(row_type *_p, size_type _i)
    constructor
    Definition bcrsmatrix.hh:591
    \n-
    std::ptrdiff_t distanceTo(const RealRowIterator< const ValueType > &other) const
    Definition bcrsmatrix.hh:617
    \n-
    size_type index() const
    return index
    Definition bcrsmatrix.hh:606
    \n-
    std::ptrdiff_t distanceTo(const RealRowIterator< ValueType > &other) const
    Definition bcrsmatrix.hh:611
    \n-
    Iterator class for sequential creation of blocks
    Definition bcrsmatrix.hh:957
    \n-
    bool operator==(const CreateIterator &it) const
    equality
    Definition bcrsmatrix.hh:1052
    \n-
    CreateIterator & operator++()
    prefix increment
    Definition bcrsmatrix.hh:977
    \n-
    size_type index() const
    The number of the row that the iterator currently points to.
    Definition bcrsmatrix.hh:1058
    \n-
    bool operator!=(const CreateIterator &it) const
    inequality
    Definition bcrsmatrix.hh:1046
    \n-
    CreateIterator(BCRSMatrix &_Mat, size_type _i)
    constructor
    Definition bcrsmatrix.hh:960
    \n-
    void insert(size_type j)
    put column index in row
    Definition bcrsmatrix.hh:1064
    \n-
    bool contains(size_type j)
    return true if column index is in row
    Definition bcrsmatrix.hh:1070
    \n-
    size_type size() const
    Get the current row size.
    Definition bcrsmatrix.hh:1079
    \n-
    typename BCRSMatrix< B, A >::field_type field_type
    Definition bcrsmatrix.hh:2299
    \n-
    typename FieldTraits< field_type >::real_type real_type
    Definition bcrsmatrix.hh:2300
    \n-
    Error specific to BCRSMatrix.
    Definition istlexception.hh:24
    \n-
    Thrown when the compression buffer used by the implicit BCRSMatrix construction is exhausted.
    Definition istlexception.hh:37
    \n-
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n-
    A::size_type size_type
    Type for indices and sizes.
    Definition matrix.hh:577
    \n-
    T block_type
    Export the type representing the components.
    Definition matrix.hh:568
    \n-
    Definition matrixutils.hh:538
    \n+
    Definition pinfo.hh:28
    \n+
    SequentialInformation()
    Definition pinfo.hh:91
    \n+
    T globalSum(const T &t) const
    Definition pinfo.hh:49
    \n+
    void dot(const T1 &, const T1 &, T2 &) const
    Definition pinfo.hh:74
    \n+
    EmptySet< int > CopyFlags
    Definition pinfo.hh:31
    \n+
    AllSet< int > OwnerSet
    Definition pinfo.hh:32
    \n+
    void copyOwnerToAll(V &v, V &v1) const
    Definition pinfo.hh:66
    \n+
    MPICommunicator communicator() const
    Definition pinfo.hh:38
    \n+
    void buildGlobalLookup(std::size_t)
    Definition pinfo.hh:56
    \n+
    FieldTraits< typenameT1::field_type >::real_type norm(const T1 &) const
    Definition pinfo.hh:81
    \n+
    void project(V &v) const
    Definition pinfo.hh:70
    \n+
    Communication< void * > MPICommunicator
    Definition pinfo.hh:30
    \n+
    SequentialInformation(const Communication< T > &)
    Definition pinfo.hh:88
    \n+
    const GlobalLookupIndexSet & globalLookup() const
    Definition pinfo.hh:60
    \n+
    SequentialInformation(const SequentialInformation &)
    Definition pinfo.hh:94
    \n+
    void freeGlobalLookup()
    Definition pinfo.hh:58
    \n+
    int GlobalLookupIndexSet
    Definition pinfo.hh:54
    \n+
    SolverCategory::Category category() const
    Definition pinfo.hh:34
    \n+
    int procs() const
    Definition pinfo.hh:43
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,2387 +1,183 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-bcrsmatrix.hh\n+ * _\bp_\ba_\ba_\bm_\bg\n+pinfo.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5\n-6#ifndef DUNE_ISTL_BCRSMATRIX_HH\n-7#define DUNE_ISTL_BCRSMATRIX_HH\n-8\n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14#include \n-15#include \n-16#include \n-17#include \n+5#ifndef DUNE_AMG_PINFO_HH\n+6#define DUNE_AMG_PINFO_HH\n+7\n+8#include \n+9#include \n+10\n+11#if HAVE_MPI\n+12\n+13#include \n+14#include \n+15#include \n+16#include \n+17#include \n 18\n-19#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-20#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-21#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n-22#include \n-23#include \n-24#include \n-25#include \n-26#include \n-27#include \n-28\n-29#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n-30\n-35namespace _\bD_\bu_\bn_\be {\n-36\n-76 template\n-77 struct MatrixDimension;\n-78\n-80\n-86 template\n-_\b8_\b7 struct _\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs\n-88 {\n-_\b9_\b0 double _\ba_\bv_\bg;\n-_\b9_\b2 size_type _\bm_\ba_\bx_\bi_\bm_\bu_\bm;\n-_\b9_\b4 size_type _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw_\b__\bt_\bo_\bt_\ba_\bl;\n-96\n-_\b9_\b9 double _\bm_\be_\bm_\b__\br_\ba_\bt_\bi_\bo;\n-100 };\n-101\n-103\n-115 template\n-_\b1_\b1_\b6 class _\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br\n-117 {\n-118\n-119 public:\n-120\n-_\b1_\b2_\b2 typedef M_ _\bM_\ba_\bt_\br_\bi_\bx;\n-123\n-_\b1_\b2_\b5 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-126\n-_\b1_\b2_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-129\n-131\n-_\b1_\b3_\b6 class _\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt\n-137 {\n-138\n-139 public:\n-140\n-_\b1_\b4_\b2 _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j) const\n-143 {\n-144 return _m.entry(_i,j);\n-145 }\n-146\n-147#ifndef DOXYGEN\n-148\n-149 _\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt(_\bM_\ba_\bt_\br_\bi_\bx& m, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n-150 : _m(m)\n-151 , _i(i)\n-152 {}\n-153\n-154#endif\n-155\n-156 private:\n-157\n-158 _\bM_\ba_\bt_\br_\bi_\bx& _m;\n-_\b1_\b5_\b9 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i;\n-160\n-161 };\n-162\n-164\n-_\b1_\b7_\b0 _\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br(_\bM_\ba_\bt_\br_\bi_\bx& m)\n-171 : _m(m)\n-172 {\n-173 if (m.buildMode() != Matrix::implicit)\n-174 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only create an ImplicitBuilder for a\n-matrix in implicit build mode\");\n-175 if (m.buildStage() != Matrix::building)\n-176 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only create an ImplicitBuilder for a\n-matrix with set size that has not been compressed() yet\");\n-177 }\n-178\n-180\n-_\b1_\b9_\b4 _\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br(_\bM_\ba_\bt_\br_\bi_\bx& m, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be cols, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-avg_cols_per_row, double overflow_fraction)\n-195 : _m(m)\n-196 {\n-197 if (m.buildStage() != Matrix::notAllocated)\n-198 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only set up a matrix for this\n-ImplicitBuilder if it has no memory allocated yet\");\n-199 m.setBuildMode(Matrix::implicit);\n-200 m.setImplicitBuildModeParameters(avg_cols_per_row,overflow_fraction);\n-201 m.setSize(rows,cols);\n-202 }\n-203\n-_\b2_\b0_\b5 _\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-206 {\n-207 return _\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt(_m,i);\n-208 }\n-209\n-_\b2_\b1_\b1 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN() const\n-212 {\n-213 return _m.N();\n-214 }\n-215\n-_\b2_\b1_\b7 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bM() const\n-218 {\n-219 return _m.M();\n-220 }\n-221\n-222 private:\n-223\n-224 _\bM_\ba_\bt_\br_\bi_\bx& _m;\n-225\n-226 };\n-227\n-464 template >\n-_\b4_\b6_\b5 class _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-466 {\n-467 friend struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx>;\n-468 public:\n-_\b4_\b6_\b9 enum _\bB_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be {\n-_\b4_\b7_\b1 _\bn_\bo_\bt_\bb_\bu_\bi_\bl_\bt=0,\n-_\b4_\b7_\b3 _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd=0,\n-_\b4_\b7_\b5 _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg=1,\n-_\b4_\b8_\b0 _\br_\bo_\bw_\bS_\bi_\bz_\be_\bs_\bB_\bu_\bi_\bl_\bt=2,\n-482 _\bb_\bu_\bi_\bl_\bt=3\n-_\b4_\b8_\b3 };\n-484\n-485 //===== type definitions and constants\n-486\n-_\b4_\b8_\b8 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n-489\n-_\b4_\b9_\b1 typedef B _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-492\n-_\b4_\b9_\b4 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n-495\n-_\b4_\b9_\b7 typedef Imp::CompressedBlockVectorWindow _\br_\bo_\bw_\b__\bt_\by_\bp_\be;\n-498\n-_\b5_\b0_\b0 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-501\n-_\b5_\b0_\b3 typedef ::Dune::CompressionStatistics _\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs;\n-504\n-506 [[deprecated(\"Use free function blockLevel(). Will be removed after\n-2.8.\")]]\n-_\b5_\b0_\b7 static constexpr unsigned int _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+1;\n-508\n-_\b5_\b1_\b0 enum _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be {\n-_\b5_\b2_\b1 _\br_\bo_\bw_\b__\bw_\bi_\bs_\be,\n-_\b5_\b3_\b0 _\br_\ba_\bn_\bd_\bo_\bm,\n-_\b5_\b3_\b9 _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt,\n-543 _\bu_\bn_\bk_\bn_\bo_\bw_\bn\n-_\b5_\b4_\b4 };\n-545\n-546 //===== random access interface to rows of the matrix\n-547\n-_\b5_\b4_\b9 _\br_\bo_\bw_\b__\bt_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n-550 {\n-551#ifdef DUNE_ISTL_WITH_CHECKING\n-552 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt && _\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-553 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You cannot use operator[] in implicit build\n-mode before calling compress()\");\n-554 if (_\br==0) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row not initialized yet\");\n-555 if (i>=_\bn) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-556#endif\n-557 return _\br[i];\n-558 }\n-559\n-_\b5_\b6_\b1 const _\br_\bo_\bw_\b__\bt_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-562 {\n-563#ifdef DUNE_ISTL_WITH_CHECKING\n-564 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt && _\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-565 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You cannot use operator[] in implicit build\n-mode before calling compress()\");\n-566 if (_\bb_\bu_\bi_\bl_\bt!=_\br_\be_\ba_\bd_\by) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row not initialized yet\");\n-567 if (i>=_\bn) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-568#endif\n-569 return _\br[i];\n-570 }\n-571\n-572\n-573 //===== iterator interface to rows of the matrix\n-574\n-576 template\n-_\b5_\b7_\b7 class _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-578 : public RandomAccessIteratorFacade, T>\n-579 {\n-580\n-581 public:\n-_\b5_\b8_\b3 typedef typename std::remove_const::type _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be;\n-584\n-585 friend class RandomAccessIteratorFacade<_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br,\n-const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be>;\n-586 friend class RandomAccessIteratorFacade<_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br<_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be>,\n-_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be>;\n-587 friend class _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-588 friend class _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br<_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be>;\n-589\n-_\b5_\b9_\b1 _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (_\br_\bo_\bw_\b__\bt_\by_\bp_\be* _p, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i)\n-592 : p(_p), i(_i)\n-593 {}\n-594\n-_\b5_\b9_\b6 _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ()\n-597 : p(0), i(0)\n-598 {}\n-599\n-_\b6_\b0_\b0 _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b>& it)\n-601 : p(it.p), i(it.i)\n-602 {}\n-603\n-604\n-_\b6_\b0_\b6 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx () const\n-607 {\n-608 return i;\n-609 }\n-610\n-_\b6_\b1_\b1 std::ptrdiff_t _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b>& other) const\n-612 {\n-613 assert(other.p==p);\n-614 return (other.i-i);\n-615 }\n-616\n-_\b6_\b1_\b7 std::ptrdiff_t _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b>& other)\n+19#endif\n+20\n+21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh>\n+22namespace _\bD_\bu_\bn_\be\n+23{\n+24 namespace Amg\n+25 {\n+26\n+_\b2_\b7 class _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+28 {\n+29 public:\n+_\b3_\b0 typedef Communication _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n+_\b3_\b1 typedef EmptySet _\bC_\bo_\bp_\by_\bF_\bl_\ba_\bg_\bs;\n+_\b3_\b2 typedef AllSet _\bO_\bw_\bn_\be_\br_\bS_\be_\bt;\n+33\n+_\b3_\b4 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by () const {\n+35 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+36 }\n+37\n+_\b3_\b8 _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br() const\n+39 {\n+40 return comm_;\n+41 }\n+42\n+_\b4_\b3 int _\bp_\br_\bo_\bc_\bs() const\n+44 {\n+45 return 1;\n+46 }\n+47\n+48 template\n+_\b4_\b9 T _\bg_\bl_\bo_\bb_\ba_\bl_\bS_\bu_\bm(const T& t) const\n+50 {\n+51 return t;\n+52 }\n+53\n+_\b5_\b4 typedef int _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+55\n+_\b5_\b6 void _\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(std::size_t){}\n+57\n+_\b5_\b8 void _\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(){}\n+59\n+_\b6_\b0 const _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& _\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp() const\n+61 {\n+62 return gli;\n+63 }\n+64\n+65 template\n+_\b6_\b6 void _\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl([[maybe_unused]] V& v, [[maybe_unused]] V& v1) const\n+67 {}\n+68\n+69 template\n+_\b7_\b0 void _\bp_\br_\bo_\bj_\be_\bc_\bt([[maybe_unused]] V& v) const\n+71 {}\n+72\n+73 template\n+_\b7_\b4 void _\bd_\bo_\bt (const T1&, const T1&, T2&) const\n+75 {\n+76 // This function should never be called\n+77 std::abort();\n+78 }\n+79\n+80 template\n+_\b8_\b1 typename FieldTraits::real_type _\bn_\bo_\br_\bm (const T1&)\n const\n-618 {\n-619 assert(other.p==p);\n-620 return (other.i-i);\n-621 }\n-622\n-_\b6_\b2_\b4 bool _\be_\bq_\bu_\ba_\bl_\bs (const _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b>& other) const\n-625 {\n-626 assert(other.p==p);\n-627 return i==other.i;\n-628 }\n-629\n-_\b6_\b3_\b1 bool _\be_\bq_\bu_\ba_\bl_\bs (const _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b>& other) const\n-632 {\n-633 assert(other.p==p);\n-634 return i==other.i;\n-635 }\n-636\n-637 private:\n-639 void increment()\n-640 {\n-641 ++i;\n-642 }\n-643\n-645 void decrement()\n-646 {\n-647 --i;\n-648 }\n-649\n-650 void advance(std::ptrdiff_t diff)\n-651 {\n-652 i+=diff;\n-653 }\n-654\n-655 T& elementAt(std::ptrdiff_t diff) const\n-656 {\n-657 return p[i+diff];\n-658 }\n-659\n-661 _\br_\bo_\bw_\b__\bt_\by_\bp_\be& dereference () const\n-662 {\n-663 return p[i];\n-664 }\n-665\n-666 _\br_\bo_\bw_\b__\bt_\by_\bp_\be* p;\n-667 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i;\n-668 };\n-669\n-_\b6_\b7_\b1 typedef _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\br_\bo_\bw_\b__\bt_\by_\bp_\be_\b> _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b6_\b7_\b2 typedef _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\br_\bo_\bw_\b__\bt_\by_\bp_\be_\b> _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-673\n-_\b6_\b7_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn ()\n-676 {\n-677 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,0);\n-678 }\n-679\n-_\b6_\b8_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd ()\n-682 {\n-683 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,_\bn);\n-684 }\n-685\n-_\b6_\b8_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n-689 {\n-690 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,_\bn-1);\n-691 }\n-692\n-_\b6_\b9_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn ()\n-696 {\n-697 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,-1);\n-698 }\n-699\n-_\b7_\b0_\b1 typedef _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-702\n-_\b7_\b0_\b4 typedef typename row_type::Iterator _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-705\n-_\b7_\b0_\b7 typedef _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\br_\bo_\bw_\b__\bt_\by_\bp_\be_\b> _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b7_\b0_\b8 typedef _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\br_\bo_\bw_\b__\bt_\by_\bp_\be_\b> _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-709\n-710\n-_\b7_\b1_\b2 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn () const\n-713 {\n-714 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,0);\n-715 }\n-716\n-_\b7_\b1_\b8 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd () const\n-719 {\n-720 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,_\bn);\n-721 }\n-722\n-_\b7_\b2_\b5 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd() const\n-726 {\n-727 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,_\bn-1);\n-728 }\n-729\n-_\b7_\b3_\b2 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n-733 {\n-734 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,-1);\n-735 }\n-736\n-_\b7_\b3_\b8 typedef _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-739\n-_\b7_\b4_\b1 typedef typename row_type::ConstIterator _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-742\n-743 //===== constructors & resizers\n-744\n-745 // we use a negative compressionBufferSize to indicate that the implicit\n-746 // mode parameters have not been set yet\n-747\n-_\b7_\b4_\b9 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx ()\n-750 : _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be(_\bu_\bn_\bk_\bn_\bo_\bw_\bn), _\br_\be_\ba_\bd_\by(_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd), _\bn(0), _\bm(0), _\bn_\bn_\bz_\b_(0),\n-751 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_(0), _\br(0), _\ba(0),\n-752 _\ba_\bv_\bg(0), _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_(-1.0)\n-753 {}\n-754\n-_\b7_\b5_\b6 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _m, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nnz, _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be bm)\n-757 : _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be(bm), _\br_\be_\ba_\bd_\by(_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd), _\bn(0), _\bm(0), _\bn_\bn_\bz_\b_(0),\n-758 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_(0), _\br(0), _\ba(0),\n-759 _\ba_\bv_\bg(0), _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_(-1.0)\n-760 {\n-761 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_n, _m, _nnz,true,false);\n-762 }\n-763\n-_\b7_\b6_\b5 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _m, _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be bm)\n-766 : _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be(bm), _\br_\be_\ba_\bd_\by(_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd), _\bn(0), _\bm(0), _\bn_\bn_\bz_\b_(0),\n-767 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_(0), _\br(0), _\ba(0),\n-768 _\ba_\bv_\bg(0), _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_(-1.0)\n-769 {\n-770 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_n, _m,0,true,false);\n-771 }\n-772\n-774\n-_\b7_\b8_\b4 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _m, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _avg, double\n-compressionBufferSize, _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be bm)\n-785 : _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be(bm), _\br_\be_\ba_\bd_\by(_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd), _\bn(0), _\bm(0), _\bn_\bn_\bz_\b_(0),\n-786 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_(0), _\br(0), _\ba(0),\n-787 _\ba_\bv_\bg(_avg), _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_(compressionBufferSize)\n-788 {\n-789 if (bm != _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt)\n-790 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"Only call this constructor when using the\n-implicit build mode\");\n-791 // Prevent user from setting a negative compression buffer size:\n-792 // 1) It doesn't make sense\n-793 // 2) We use a negative value to indicate that the parameters\n-794 // have not been set yet\n-795 if (_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_ < 0.0)\n-796 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You cannot set a negative overflow fraction\");\n-797 _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\b__\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_n,_m);\n-798 }\n-799\n-_\b8_\b0_\b5 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& Mat)\n-806 : _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be(Mat._\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be), _\br_\be_\ba_\bd_\by(_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd), _\bn(0), _\bm(0), _\bn_\bn_\bz_\b_(0),\n-807 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_(0), _\br(0), _\ba(0),\n-808 _\ba_\bv_\bg(Mat._\ba_\bv_\bg), _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_(Mat._\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_)\n-809 {\n-810 if (!(Mat._\br_\be_\ba_\bd_\by == _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd || Mat._\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bt))\n-811 DUNE_THROW(InvalidStateException,\"BCRSMatrix can only be copy-constructed\n-when source matrix is completely empty (size not set) or fully built)\");\n-812\n-813 // deep copy in global array\n-814 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nnz = Mat._\bn_\bo_\bn_\bz_\be_\br_\bo_\be_\bs();\n-815\n-816 _\bj_\b_ = Mat._\bj_\b_; // enable column index sharing, release array in case of row-\n-wise allocation\n-817 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(Mat._\bn, Mat._\bm, _nnz, true, true);\n-818\n-819 // build window structure\n-820 _\bc_\bo_\bp_\by_\bW_\bi_\bn_\bd_\bo_\bw_\bS_\bt_\br_\bu_\bc_\bt_\bu_\br_\be(Mat);\n-821 }\n-822\n-_\b8_\b2_\b4 _\b~_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx ()\n-825 {\n-826 _\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be();\n-827 }\n-828\n-_\b8_\b3_\b3 void _\bs_\be_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be(_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be bm)\n-834 {\n-835 if (_\br_\be_\ba_\bd_\by == _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n-836 {\n-837 _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be = bm;\n-838 return;\n-839 }\n-840 if (_\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg && (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\bu_\bn_\bk_\bn_\bo_\bw_\bn || _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\br_\ba_\bn_\bd_\bo_\bm ||\n-_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\br_\bo_\bw_\b__\bw_\bi_\bs_\be) && (bm == _\br_\bo_\bw_\b__\bw_\bi_\bs_\be || bm == _\br_\ba_\bn_\bd_\bo_\bm))\n-841 _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be = bm;\n-842 else\n-843 DUNE_THROW(InvalidStateException, \"Matrix structure cannot be changed at\n-this stage anymore (ready == \"<<_\br_\be_\ba_\bd_\by<<\").\");\n-844 }\n-845\n-_\b8_\b6_\b1 void _\bs_\be_\bt_\bS_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nnz=0)\n-862 {\n-863 // deallocate already setup memory\n-864 _\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be();\n-865\n-866 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt)\n-867 {\n-868 if (nnz>0)\n-869 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"number of non-zeroes may not be set in\n-implicit mode, use setImplicitBuildModeParameters() instead\");\n-870\n-871 // implicit allocates differently\n-872 _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\b__\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(rows,columns);\n-873 }\n-874 else\n-875 {\n-876 // allocate matrix memory\n-877 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(rows, columns, nnz, true, false);\n-878 }\n-879 }\n-880\n-_\b8_\b8_\b9 void _\bs_\be_\bt_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _avg, double\n-compressionBufferSize)\n-890 {\n-891 // Prevent user from setting a negative compression buffer size:\n-892 // 1) It doesn't make sense\n-893 // 2) We use a negative value to indicate that the parameters\n-894 // have not been set yet\n-895 if (compressionBufferSize < 0.0)\n-896 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You cannot set a negative compressionBufferSize\n-value\");\n-897\n-898 // make sure the parameters aren't changed after memory has been allocated\n-899 if (_\br_\be_\ba_\bd_\by != _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n-900 DUNE_THROW(InvalidStateException,\"You cannot modify build mode parameters\n-at this stage anymore\");\n-901 _\ba_\bv_\bg = _avg;\n-902 _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_ = compressionBufferSize;\n-903 }\n-904\n-_\b9_\b1_\b1 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& Mat)\n-912 {\n-913 // return immediately when self-assignment\n-914 if (&Mat==this) return *this;\n-915\n-916 if (!((_\br_\be_\ba_\bd_\by == _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd || _\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bt) && (Mat._\br_\be_\ba_\bd_\by ==\n-_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd || Mat._\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bt)))\n-917 DUNE_THROW(InvalidStateException,\"BCRSMatrix can only be copied when both\n-target and source are empty or fully built)\");\n-918\n-919 // make it simple: ALWAYS throw away memory for a and j_\n-920 // and deallocate rows only if n != Mat.n\n-921 _\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_\bn!=Mat._\bn);\n-922\n-923 // reallocate the rows if required\n-924 if (_\bn>0 && _\bn!=Mat._\bn) {\n-925 // free rows\n-926 for(_\br_\bo_\bw_\b__\bt_\by_\bp_\be *riter=_\br+(_\bn-1), *rend=_\br-1; riter!=rend; --riter)\n-927 std::allocator_traits::destroy(_\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_,\n-riter);\n-928 _\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.deallocate(_\br,_\bn);\n-929 }\n-930\n-931 _\bn_\bn_\bz_\b_ = Mat._\bn_\bo_\bn_\bz_\be_\br_\bo_\be_\bs();\n-932\n-933 // allocate a, share j_\n-934 _\bj_\b_ = Mat._\bj_\b_;\n-935 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(Mat._\bn, Mat._\bm, _\bn_\bn_\bz_\b_, _\bn!=Mat._\bn, true);\n-936\n-937 // build window structure\n-938 _\bc_\bo_\bp_\by_\bW_\bi_\bn_\bd_\bo_\bw_\bS_\bt_\br_\bu_\bc_\bt_\bu_\br_\be(Mat);\n-939 return *this;\n-940 }\n-941\n-_\b9_\b4_\b3 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n-944 {\n-945\n-946 if (!(_\br_\be_\ba_\bd_\by == _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd || _\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bt))\n-947 DUNE_THROW(InvalidStateException,\"Scalar assignment only works on fully\n-built BCRSMatrix)\");\n-948\n-949 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++) _\br[i] = k;\n-950 return *this;\n-951 }\n-952\n-953 //===== row-wise creation interface\n-954\n-_\b9_\b5_\b6 class _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-957 {\n-958 public:\n-_\b9_\b6_\b0 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _Mat, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i)\n-961 : Mat(_Mat), i(_i), nnz(0), current_row(nullptr, Mat._\bj_\b_._\bg_\be_\bt(), 0)\n-962 {\n-963 if (Mat._\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\bu_\bn_\bk_\bn_\bo_\bw_\bn && Mat._\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n-964 {\n-965 Mat._\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be = _\br_\bo_\bw_\b__\bw_\bi_\bs_\be;\n-966 }\n-967 if (i==0 && Mat._\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n-968 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"creation only allowed for uninitialized\n-matrix\");\n-969 if(Mat._\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\br_\bo_\bw_\b__\bw_\bi_\bs_\be)\n-970 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"creation only allowed if row wise allocation\n-was requested in the constructor\");\n-971 if(i==0 && _Mat._\bN()==0)\n-972 // empty Matrix is always built.\n-973 Mat._\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bt;\n-974 }\n-975\n-_\b9_\b7_\b7 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n-978 {\n-979 // this should only be called if matrix is in creation\n-980 if (Mat._\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n-981 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix already built up\");\n-982\n-983 // row i is defined through the pattern\n-984 // get memory for the row and initialize the j_ array\n-985 // this depends on the allocation mode\n-986\n-987 // compute size of the row\n-988 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s = pattern.size();\n-989\n-990 if(s>0) {\n-991 // update number of nonzeroes including this row\n-992 nnz += s;\n-993\n-994 // alloc memory / set window\n-995 if (Mat._\bn_\bn_\bz_\b_ > 0)\n-996 {\n-997 // memory is allocated in one long array\n-998\n-999 // check if that memory is sufficient\n-1000 if (nnz > Mat._\bn_\bn_\bz_\b_)\n-1001 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"allocated nnz too small\");\n-1002\n-1003 // set row i\n-1004 Mat._\br[i].set(s,nullptr,current_row.getindexptr());\n-1005 current_row.setindexptr(current_row.getindexptr()+s);\n-1006 }else{\n-1007 // memory is allocated individually per row\n-1008 // allocate and set row i\n-1009 B* b = Mat._\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.allocate(s);\n-1010 // use placement new to call constructor that allocates\n-1011 // additional memory.\n-1012 new (b) B[s];\n-1013 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* j = Mat._\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.allocate(s);\n-1014 Mat._\br[i].set(s,b,j);\n-1015 }\n-1016 }else\n-1017 // setup empty row\n-1018 Mat._\br[i].set(0,nullptr,nullptr);\n-1019\n-1020 // initialize the j array for row i from pattern\n-1021 std::copy(pattern.cbegin(), pattern.cend(), Mat._\br[i].getindexptr());\n-1022\n-1023 // now go to next row\n-1024 i++;\n-1025 pattern.clear();\n-1026\n-1027 // check if this was last row\n-1028 if (i==Mat._\bn)\n-1029 {\n-1030 Mat._\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bt;\n-1031 if(Mat._\bn_\bn_\bz_\b_ > 0)\n-1032 {\n-1033 // Set nnz to the exact number of nonzero blocks inserted\n-1034 // as some methods rely on it\n-1035 Mat._\bn_\bn_\bz_\b_ = nnz;\n-1036 // allocate data array\n-1037 Mat._\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bD_\ba_\bt_\ba();\n-1038 Mat._\bs_\be_\bt_\bD_\ba_\bt_\ba_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs();\n-1039 }\n-1040 }\n-1041 // done\n-1042 return *this;\n-1043 }\n-1044\n-_\b1_\b0_\b4_\b6 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-1047 {\n-1048 return (i!=it.i) || (&Mat!=&it.Mat);\n-1049 }\n-1050\n-_\b1_\b0_\b5_\b2 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-1053 {\n-1054 return (i==it.i) && (&Mat==&it.Mat);\n-1055 }\n-1056\n-_\b1_\b0_\b5_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx () const\n-1059 {\n-1060 return i;\n-1061 }\n-1062\n-_\b1_\b0_\b6_\b4 void _\bi_\bn_\bs_\be_\br_\bt (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n-1065 {\n-1066 pattern.insert(j);\n-1067 }\n-1068\n-_\b1_\b0_\b7_\b0 bool _\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n-1071 {\n-1072 return pattern.find(j) != pattern.end();\n-1073 }\n-_\b1_\b0_\b7_\b9 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be() const\n-1080 {\n-1081 return pattern.size();\n-1082 }\n-1083\n-1084 private:\n-1085 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& Mat; // the matrix we are defining\n-1086 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i; // current row to be defined\n-1087 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nnz; // count total number of nonzeros\n-1088 typedef std::set > PatternType;\n-1089 PatternType pattern; // used to compile entries in a row\n-1090 _\br_\bo_\bw_\b__\bt_\by_\bp_\be current_row; // row pointing to the current row to setup\n-1091 };\n-1092\n-_\b1_\b0_\b9_\b4 friend class _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-1095\n-_\b1_\b0_\b9_\b7 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn ()\n-1098 {\n-1099 return _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,0);\n-1100 }\n-1101\n-_\b1_\b1_\b0_\b3 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd ()\n-1104 {\n-1105 return _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,_\bn);\n-1106 }\n-1107\n-1108\n-1109 //===== random creation interface\n-1110\n-_\b1_\b1_\b1_\b7 void _\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s)\n-1118 {\n-1119 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\br_\ba_\bn_\bd_\bo_\bm)\n-1120 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"requires random build mode\");\n-1121 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n-1122 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix row sizes already built up\");\n-1123\n-1124 _\br[i].setsize(s);\n-1125 }\n-1126\n-_\b1_\b1_\b2_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bg_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-1129 {\n-1130#ifdef DUNE_ISTL_WITH_CHECKING\n-1131 if (_\br==0) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row not initialized yet\");\n-1132 if (i>=_\bn) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1133#endif\n-1134 return _\br[i].getsize();\n-1135 }\n-1136\n-_\b1_\b1_\b3_\b8 void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s = 1)\n-1139 {\n-1140 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\br_\ba_\bn_\bd_\bo_\bm)\n-1141 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"requires random build mode\");\n-1142 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n-1143 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix row sizes already built up\");\n-1144\n-1145 _\br[i].setsize(_\br[i].getsize()+s);\n-1146 }\n-1147\n-_\b1_\b1_\b4_\b9 void _\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs ()\n-1150 {\n-1151 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\br_\ba_\bn_\bd_\bo_\bm)\n-1152 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"requires random build mode\");\n-1153 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n-1154 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix row sizes already built up\");\n-1155\n-1156 // compute total size, check positivity\n-1157 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be total=0;\n-1158 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++)\n-1159 {\n-1160 total += _\br[i].getsize();\n-1161 }\n-1162\n-1163 if(_\bn_\bn_\bz_\b_ == 0)\n-1164 // allocate/check memory\n-1165 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_\bn,_\bm,total,false,false);\n-1166 else if(_\bn_\bn_\bz_\b_ < total)\n-1167 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"Specified number of nonzeros (\"<<_\bn_\bn_\bz_\b_<<\") not\n-\"\n-1168 <<\"sufficient for calculated nonzeros (\"<= _\bm)\n-1203 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"column index exceeds matrix size\");\n-1204\n-1205 // get row range\n-1206 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* const first = _\br[row].getindexptr();\n-1207 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* const last = first + _\br[row].getsize();\n-1208\n-1209 // find correct insertion position for new column index\n-1210 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* pos = std::lower_bound(first,last,_\bc_\bo_\bl);\n-1211\n-1212 // check if index is already in row\n-1213 if (pos!=last && *pos == _\bc_\bo_\bl) return;\n-1214\n-1215 // find end of already inserted column indices\n-1216 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* _\be_\bn_\bd = std::lower_bound(pos,last,_\bm);\n-1217 if (_\be_\bn_\bd==last)\n-1218 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row is too small\");\n-1219\n-1220 // insert new column index at correct position\n-1221 std::copy_backward(pos,_\be_\bn_\bd,_\be_\bn_\bd+1);\n-1222 *pos = _\bc_\bo_\bl;\n-1223 }\n-1224\n-1226\n-1233 template\n-_\b1_\b2_\b3_\b4 void _\bs_\be_\bt_\bI_\bn_\bd_\bi_\bc_\be_\bs(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row, It _\bb_\be_\bg_\bi_\bn, It _\be_\bn_\bd)\n-1235 {\n-1236 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row_size = _\br[row].size();\n-1237 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* col_begin = _\br[row].getindexptr();\n-1238 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* col_end;\n-1239 // consistency check between allocated row size and number of passed\n-column indices\n-1240 if ((col_end = std::copy(_\bb_\be_\bg_\bi_\bn,_\be_\bn_\bd,_\br[row].getindexptr())) != col_begin +\n-row_size)\n-1241 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"Given size of row \" << row\n-1242 << \" (\" << row_size\n-1243 << \") does not match number of passed entries (\" << (col_end - col_begin)\n-<< \")\");\n-1244 std::sort(col_begin,col_end);\n-1245 }\n-1246\n-_\b1_\b2_\b4_\b8 void _\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs ()\n-1249 {\n-1250 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\br_\ba_\bn_\bd_\bo_\bm)\n-1251 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"requires random build mode\");\n-1252 if (_\br_\be_\ba_\bd_\by==_\bb_\bu_\bi_\bl_\bt)\n-1253 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix already built up\");\n-1254 if (_\br_\be_\ba_\bd_\by==_\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n-1255 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row sizes are not built up yet\");\n-1256 if (_\br_\be_\ba_\bd_\by==_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n-1257 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix size not set and no memory allocated\n-yet\");\n-1258\n-1259 // check if there are undefined indices\n-1260 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1261 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1262 {\n-1263 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1264 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j) {\n-1265 if (j.index() >= _\bm) {\n-1266 dwarn << \"WARNING: size of row \"<< i.index()<<\" is \"<= _\bn)\n-1309 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row index exceeds matrix size\");\n-1310 if (_\bc_\bo_\bl >= _\bm)\n-1311 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"column index exceeds matrix size\");\n-1312#endif\n-1313\n-1314 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* _\bb_\be_\bg_\bi_\bn = _\br[row].getindexptr();\n-1315 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* _\be_\bn_\bd = _\bb_\be_\bg_\bi_\bn + _\br[row].getsize();\n-1316\n-1317 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* pos = std::find(_\bb_\be_\bg_\bi_\bn, _\be_\bn_\bd, _\bc_\bo_\bl);\n-1318\n-1319 //treat the case that there was a match in the array\n-1320 if (pos != _\be_\bn_\bd)\n-1321 if (*pos == _\bc_\bo_\bl)\n-1322 {\n-1323 std::ptrdiff_t offset = pos - _\br[row].getindexptr();\n-1324 B* aptr = _\br[row].getptr() + offset;\n-1325\n-1326 return *aptr;\n-1327 }\n-1328\n-1329 //determine whether overflow has to be taken into account or not\n-1330 if (_\br[row].getsize() == _\ba_\bv_\bg)\n-1331 return _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw[std::make_pair(row,_\bc_\bo_\bl)];\n-1332 else\n-1333 {\n-1334 //modify index array\n-1335 *_\be_\bn_\bd = _\bc_\bo_\bl;\n-1336\n-1337 //do simultaneous operations on data array a\n-1338 std::ptrdiff_t offset = _\be_\bn_\bd - _\br[row].getindexptr();\n-1339 B* apos = _\br[row].getptr() + offset;\n-1340\n-1341 //increase rowsize\n-1342 _\br[row].setsize(_\br[row].getsize()+1);\n-1343\n-1344 //return reference to the newly created entry\n-1345 return *apos;\n-1346 }\n-1347 }\n-1348\n-1350\n-_\b1_\b3_\b6_\b0 _\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs()\n-1361 {\n-1362 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt)\n-1363 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"requires implicit build mode\");\n-1364 if (_\br_\be_\ba_\bd_\by==_\bb_\bu_\bi_\bl_\bt)\n-1365 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix already built up, no more need for\n-compression\");\n-1366 if (_\br_\be_\ba_\bd_\by==_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n-1367 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix size not set and no memory allocated\n-yet\");\n-1368 if (_\br_\be_\ba_\bd_\by!=_\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n-1369 DUNE_THROW(InvalidStateException,\"You may only call compress() at the end\n-of the 'building' stage\");\n-1370\n-1371 //calculate statistics\n-1372 _\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs stats;\n-1373 stats._\bo_\bv_\be_\br_\bf_\bl_\bo_\bw_\b__\bt_\bo_\bt_\ba_\bl = _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw.size();\n-1374 stats._\bm_\ba_\bx_\bi_\bm_\bu_\bm = 0;\n-1375\n-1376 //get insertion iterators pointing to one before start (for later use of\n-++it)\n-1377 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* jiit = _\bj_\b_.get();\n-1378 B* aiit = _\ba;\n-1379\n-1380 //get iterator to the smallest overflow element\n-1381 typename OverflowType::iterator oit = _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw.begin();\n-1382\n-1383 //store a copy of index pointers on which to perform sorting\n-1384 std::vector perm;\n-1385\n-1386 //iterate over all rows and copy elements into their position in the\n-compressed array\n-1387 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++)\n-1388 {\n-1389 //get old pointers into a and j and size without overflow changes\n-1390 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* _\bb_\be_\bg_\bi_\bn = _\br[i].getindexptr();\n-1391 //B* apos = r[i].getptr();\n-1392 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size = _\br[i].getsize();\n-1393\n-1394 perm.resize(size);\n-1395\n-1396 typename std::vector::iterator it = perm.begin();\n-1397 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* iit = _\bb_\be_\bg_\bi_\bn; iit < _\bb_\be_\bg_\bi_\bn + size; ++iit, ++it)\n-1398 *it = iit;\n-1399\n-1400 //sort permutation array\n-1401 std::sort(perm.begin(),perm.end(),_\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be_\b<_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b>());\n-1402\n-1403 //change row window pointer to their new positions\n-1404 _\br[i].setindexptr(jiit);\n-1405 _\br[i].setptr(aiit);\n-1406\n-1407 for (it = perm.begin(); it != perm.end(); ++it)\n-1408 {\n-1409 //check whether there are elements in the overflow area which take\n-precedence\n-1410 while ((oit!=_\bo_\bv_\be_\br_\bf_\bl_\bo_\bw.end()) && (oit->first < std::make_pair(i,**it)))\n-1411 {\n-1412 //check whether there is enough memory to write to\n-1413 if (jiit > _\bb_\be_\bg_\bi_\bn)\n-1414 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd,\n-1415 \"Allocated memory for BCRSMatrix exhausted during compress()!\"\n-1416 \"Please increase either the average number of entries per row or the\n-compressionBufferSize value.\"\n-1417 );\n-1418 //copy an element from the overflow area to the insertion position in a\n-and j\n-1419 *jiit = oit->first.second;\n-1420 ++jiit;\n-1421 *aiit = oit->second;\n-1422 ++aiit;\n-1423 ++oit;\n-1424 _\br[i].setsize(_\br[i].getsize()+1);\n-1425 }\n-1426\n-1427 //check whether there is enough memory to write to\n-1428 if (jiit > _\bb_\be_\bg_\bi_\bn)\n-1429 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd,\n-1430 \"Allocated memory for BCRSMatrix exhausted during compress()!\"\n-1431 \"Please increase either the average number of entries per row or the\n-compressionBufferSize value.\"\n-1432 );\n-1433\n-1434 //copy element from array\n-1435 *jiit = **it;\n-1436 ++jiit;\n-1437 B* apos = *it - _\bj_\b_.get() + _\ba;\n-1438 *aiit = *apos;\n-1439 ++aiit;\n-1440 }\n-1441\n-1442 //copy remaining elements from the overflow area\n-1443 while ((oit!=_\bo_\bv_\be_\br_\bf_\bl_\bo_\bw.end()) && (oit->first.first == i))\n-1444 {\n-1445 //check whether there is enough memory to write to\n-1446 if (jiit > _\bb_\be_\bg_\bi_\bn)\n-1447 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd,\n-1448 \"Allocated memory for BCRSMatrix exhausted during compress()!\"\n-1449 \"Please increase either the average number of entries per row or the\n-compressionBufferSize value.\"\n-1450 );\n-1451\n-1452 //copy and element from the overflow area to the insertion position in a\n-and j\n-1453 *jiit = oit->first.second;\n-1454 ++jiit;\n-1455 *aiit = oit->second;\n-1456 ++aiit;\n-1457 ++oit;\n-1458 _\br[i].setsize(_\br[i].getsize()+1);\n-1459 }\n-1460\n-1461 // update maximum row size\n-1462 if (_\br[i].getsize()>stats._\bm_\ba_\bx_\bi_\bm_\bu_\bm)\n-1463 stats._\bm_\ba_\bx_\bi_\bm_\bu_\bm = _\br[i].getsize();\n-1464 }\n-1465\n-1466 // overflow area may be cleared\n-1467 _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw.clear();\n-1468\n-1469 //determine average number of entries and memory usage\n-1470 std::ptrdiff_t diff = (_\br[_\bn-1].getindexptr() + _\br[_\bn-1].getsize() - _\bj_\b_.get\n-());\n-1471 _\bn_\bn_\bz_\b_ = diff;\n-1472 stats._\ba_\bv_\bg = (double) (_\bn_\bn_\bz_\b_) / (double) _\bn;\n-1473 stats._\bm_\be_\bm_\b__\br_\ba_\bt_\bi_\bo = (double) (_\bn_\bn_\bz_\b_) / (double) _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_;\n-1474\n-1475 //matrix is now built\n-1476 _\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bt;\n-1477\n-1478 return stats;\n-1479 }\n-1480\n-1481 //===== vector space arithmetic\n-1482\n-_\b1_\b4_\b8_\b4 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n-1485 {\n-1486#ifdef DUNE_ISTL_WITH_CHECKING\n-1487 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1488 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1489#endif\n-1490\n-1491 if (_\bn_\bn_\bz_\b_ > 0)\n-1492 {\n-1493 // process 1D array\n-1494 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn_\bn_\bz_\b_; i++)\n-1495 _\ba[i] *= k;\n-1496 }\n-1497 else\n-1498 {\n-1499 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1500 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1501 {\n-1502 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1503 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1504 (*j) *= k;\n-1505 }\n-1506 }\n-1507\n-1508 return *this;\n-1509 }\n-1510\n-_\b1_\b5_\b1_\b2 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n-1513 {\n-1514#ifdef DUNE_ISTL_WITH_CHECKING\n-1515 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1516 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1517#endif\n-1518\n-1519 if (_\bn_\bn_\bz_\b_ > 0)\n-1520 {\n-1521 // process 1D array\n-1522 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn_\bn_\bz_\b_; i++)\n-1523 _\ba[i] /= k;\n-1524 }\n-1525 else\n-1526 {\n-1527 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1528 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1529 {\n-1530 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1531 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1532 (*j) /= k;\n-1533 }\n-1534 }\n-1535\n-1536 return *this;\n-1537 }\n-1538\n-1539\n-_\b1_\b5_\b4_\b5 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& b)\n-1546 {\n-1547#ifdef DUNE_ISTL_WITH_CHECKING\n-1548 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt || b._\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1549 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1550 if(_\bN()!=b._\bN() || _\bM() != b._\bM())\n-1551 DUNE_THROW(RangeError, \"Matrix sizes do not match!\");\n-1552#endif\n-1553 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1554 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=b._\bb_\be_\bg_\bi_\bn();\n-1555 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i, ++j) {\n-1556 i->operator+=(*j);\n-1557 }\n-1558\n-1559 return *this;\n-1560 }\n-1561\n-_\b1_\b5_\b6_\b7 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& b)\n-1568 {\n-1569#ifdef DUNE_ISTL_WITH_CHECKING\n-1570 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt || b._\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1571 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1572 if(_\bN()!=b._\bN() || _\bM() != b._\bM())\n-1573 DUNE_THROW(RangeError, \"Matrix sizes do not match!\");\n-1574#endif\n-1575 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1576 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=b._\bb_\be_\bg_\bi_\bn();\n-1577 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i, ++j) {\n-1578 i->operator-=(*j);\n-1579 }\n-1580\n-1581 return *this;\n-1582 }\n-1583\n-_\b1_\b5_\b9_\b2 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\ba_\bx_\bp_\by(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& b)\n-1593 {\n-1594#ifdef DUNE_ISTL_WITH_CHECKING\n-1595 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt || b._\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1596 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1597 if(_\bN()!=b._\bN() || _\bM() != b._\bM())\n-1598 DUNE_THROW(RangeError, \"Matrix sizes do not match!\");\n-1599#endif\n-1600 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1601 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=b._\bb_\be_\bg_\bi_\bn();\n-1602 for(_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i, ++j)\n-1603 i->axpy(alpha, *j);\n-1604\n-1605 return *this;\n-1606 }\n-1607\n-1608 //===== linear maps\n-1609\n-1611 template\n-_\b1_\b6_\b1_\b2 void _\bm_\bv (const X& x, Y& y) const\n-1613 {\n-1614#ifdef DUNE_ISTL_WITH_CHECKING\n-1615 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1616 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1617 if (x.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\n-1618 \"Size mismatch: M: \" << _\bN() << \"x\" << _\bM() << \" x: \" << x.N());\n-1619 if (y.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\n-1620 \"Size mismatch: M: \" << _\bN() << \"x\" << _\bM() << \" y: \" << y.N());\n-1621#endif\n-1622 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1623 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1624 {\n-1625 y[i.index()]=0;\n-1626 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1627 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1628 {\n-1629 auto&& xj = Impl::asVector(x[j.index()]);\n-1630 auto&& yi = Impl::asVector(y[i.index()]);\n-1631 Impl::asMatrix(*j).umv(xj, yi);\n-1632 }\n-1633 }\n-1634 }\n-1635\n-1637 template\n-_\b1_\b6_\b3_\b8 void _\bu_\bm_\bv (const X& x, Y& y) const\n-1639 {\n-1640#ifdef DUNE_ISTL_WITH_CHECKING\n-1641 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1642 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1643 if (x.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1644 if (y.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1645#endif\n-1646 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1647 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1648 {\n-1649 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1650 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1651 {\n-1652 auto&& xj = Impl::asVector(x[j.index()]);\n-1653 auto&& yi = Impl::asVector(y[i.index()]);\n-1654 Impl::asMatrix(*j).umv(xj,yi);\n-1655 }\n-1656 }\n-1657 }\n-1658\n-1660 template\n-_\b1_\b6_\b6_\b1 void _\bm_\bm_\bv (const X& x, Y& y) const\n-1662 {\n-1663#ifdef DUNE_ISTL_WITH_CHECKING\n-1664 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1665 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1666 if (x.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1667 if (y.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1668#endif\n-1669 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1670 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1671 {\n-1672 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1673 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1674 {\n-1675 auto&& xj = Impl::asVector(x[j.index()]);\n-1676 auto&& yi = Impl::asVector(y[i.index()]);\n-1677 Impl::asMatrix(*j).mmv(xj,yi);\n-1678 }\n-1679 }\n-1680 }\n-1681\n-1683 template\n-_\b1_\b6_\b8_\b4 void _\bu_\bs_\bm_\bv (F&& alpha, const X& x, Y& y) const\n-1685 {\n-1686#ifdef DUNE_ISTL_WITH_CHECKING\n-1687 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1688 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1689 if (x.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1690 if (y.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1691#endif\n-1692 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1693 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1694 {\n-1695 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1696 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1697 {\n-1698 auto&& xj = Impl::asVector(x[j.index()]);\n-1699 auto&& yi = Impl::asVector(y[i.index()]);\n-1700 Impl::asMatrix(*j).usmv(alpha,xj,yi);\n-1701 }\n-1702 }\n-1703 }\n-1704\n-1706 template\n-_\b1_\b7_\b0_\b7 void _\bm_\bt_\bv (const X& x, Y& y) const\n-1708 {\n-1709#ifdef DUNE_ISTL_WITH_CHECKING\n-1710 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1711 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1712 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1713 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1714#endif\n-1715 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b1_\b7_\b2_\b2 void _\bu_\bm_\bt_\bv (const X& x, Y& y) const\n-1723 {\n-1724#ifdef DUNE_ISTL_WITH_CHECKING\n-1725 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1726 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1727 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1728 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1729#endif\n-1730 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1731 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1732 {\n-1733 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1734 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1735 {\n-1736 auto&& xi = Impl::asVector(x[i.index()]);\n-1737 auto&& yj = Impl::asVector(y[j.index()]);\n-1738 Impl::asMatrix(*j).umtv(xi,yj);\n-1739 }\n-1740 }\n-1741 }\n-1742\n-1744 template\n-_\b1_\b7_\b4_\b5 void _\bm_\bm_\bt_\bv (const X& x, Y& y) const\n-1746 {\n-1747#ifdef DUNE_ISTL_WITH_CHECKING\n-1748 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1749 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1750#endif\n-1751 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1752 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1753 {\n-1754 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1755 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1756 {\n-1757 auto&& xi = Impl::asVector(x[i.index()]);\n-1758 auto&& yj = Impl::asVector(y[j.index()]);\n-1759 Impl::asMatrix(*j).mmtv(xi,yj);\n-1760 }\n-1761 }\n-1762 }\n-1763\n-1765 template\n-_\b1_\b7_\b6_\b6 void _\bu_\bs_\bm_\bt_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const\n-1767 {\n-1768#ifdef DUNE_ISTL_WITH_CHECKING\n-1769 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1770 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1771 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1772 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1773#endif\n-1774 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1775 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1776 {\n-1777 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1778 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1779 {\n-1780 auto&& xi = Impl::asVector(x[i.index()]);\n-1781 auto&& yj = Impl::asVector(y[j.index()]);\n-1782 Impl::asMatrix(*j).usmtv(alpha,xi,yj);\n-1783 }\n-1784 }\n-1785 }\n-1786\n-1788 template\n-_\b1_\b7_\b8_\b9 void _\bu_\bm_\bh_\bv (const X& x, Y& y) const\n-1790 {\n-1791#ifdef DUNE_ISTL_WITH_CHECKING\n-1792 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1793 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1794 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1795 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1796#endif\n-1797 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1798 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1799 {\n-1800 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1801 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1802 {\n-1803 auto&& xi = Impl::asVector(x[i.index()]);\n-1804 auto&& yj = Impl::asVector(y[j.index()]);\n-1805 Impl::asMatrix(*j).umhv(xi,yj);\n-1806 }\n-1807 }\n-1808 }\n-1809\n-1811 template\n-_\b1_\b8_\b1_\b2 void _\bm_\bm_\bh_\bv (const X& x, Y& y) const\n-1813 {\n-1814#ifdef DUNE_ISTL_WITH_CHECKING\n-1815 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1816 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1817 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1818 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1819#endif\n-1820 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1821 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1822 {\n-1823 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1824 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1825 {\n-1826 auto&& xi = Impl::asVector(x[i.index()]);\n-1827 auto&& yj = Impl::asVector(y[j.index()]);\n-1828 Impl::asMatrix(*j).mmhv(xi,yj);\n-1829 }\n-1830 }\n-1831 }\n-1832\n-1834 template\n-_\b1_\b8_\b3_\b5 void _\bu_\bs_\bm_\bh_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const\n-1836 {\n-1837#ifdef DUNE_ISTL_WITH_CHECKING\n-1838 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1839 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1840 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1841 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n-1842#endif\n-1843 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n-1844 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n-1845 {\n-1846 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n-1847 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n-1848 {\n-1849 auto&& xi = Impl::asVector(x[i.index()]);\n-1850 auto&& yj = Impl::asVector(y[j.index()]);\n-1851 Impl::asMatrix(*j).usmhv(alpha,xi,yj);\n-1852 }\n-1853 }\n-1854 }\n-1855\n-1856\n-1857 //===== norms\n-1858\n-_\b1_\b8_\b6_\b0 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2 () const\n-1861 {\n-1862#ifdef DUNE_ISTL_WITH_CHECKING\n-1863 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1864 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1865#endif\n-1866\n-1867 typename FieldTraits::real_type sum=0;\n-1868\n-1869 for (auto&& row : (*this))\n-1870 for (auto&& _\be_\bn_\bt_\br_\by : row)\n-1871 sum += Impl::asMatrix(_\be_\bn_\bt_\br_\by).frobenius_norm2();\n-1872\n-1873 return sum;\n-1874 }\n-1875\n-_\b1_\b8_\b7_\b7 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm () const\n-1878 {\n-1879 return sqrt(_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2());\n-1880 }\n-1881\n-1883 template ::value, int>::type = 0>\n-_\b1_\b8_\b8_\b5 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const {\n-1886 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1887 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1888\n-1889 using real_type = typename FieldTraits::real_type;\n-1890 using std::max;\n-1891\n-1892 real_type norm = 0;\n-1893 for (auto const &x : *this) {\n-1894 real_type sum = 0;\n-1895 for (auto const &y : x)\n-1896 sum += Impl::asMatrix(y).infinity_norm();\n-1897 norm = max(sum, norm);\n-1898 }\n-1899 return norm;\n-1900 }\n-1901\n-1903 template ::value, int>::type = 0>\n-_\b1_\b9_\b0_\b5 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n-1906 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1907 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1908\n-1909 using real_type = typename FieldTraits::real_type;\n-1910 using std::max;\n-1911\n-1912 real_type norm = 0;\n-1913 for (auto const &x : *this) {\n-1914 real_type sum = 0;\n-1915 for (auto const &y : x)\n-1916 sum += Impl::asMatrix(y).infinity_norm_real();\n-1917 norm = max(sum, norm);\n-1918 }\n-1919 return norm;\n-1920 }\n-1921\n-1923 template ::value, int>::type = 0>\n-_\b1_\b9_\b2_\b5 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const {\n-1926 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1927 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1928\n-1929 using real_type = typename FieldTraits::real_type;\n-1930 using std::max;\n-1931\n-1932 real_type norm = 0;\n-1933 real_type isNaN = 1;\n-1934 for (auto const &x : *this) {\n-1935 real_type sum = 0;\n-1936 for (auto const &y : x)\n-1937 sum += Impl::asMatrix(y).infinity_norm();\n-1938 norm = max(sum, norm);\n-1939 isNaN += sum;\n-1940 }\n-1941\n-1942 return norm * (isNaN / isNaN);\n-1943 }\n-1944\n-1946 template ::value, int>::type = 0>\n-_\b1_\b9_\b4_\b8 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n-1949 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n-1950 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n-fully built BCRSMatrix instances\");\n-1951\n-1952 using real_type = typename FieldTraits::real_type;\n-1953 using std::max;\n-1954\n-1955 real_type norm = 0;\n-1956 real_type isNaN = 1;\n-1957\n-1958 for (auto const &x : *this) {\n-1959 real_type sum = 0;\n-1960 for (auto const &y : x)\n-1961 sum += Impl::asMatrix(y).infinity_norm_real();\n-1962 norm = max(sum, norm);\n-1963 isNaN += sum;\n-1964 }\n-1965\n-1966 return norm * (isNaN / isNaN);\n-1967 }\n-1968\n-1969 //===== sizes\n-1970\n-_\b1_\b9_\b7_\b2 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN () const\n-1973 {\n-1974 return _\bn;\n-1975 }\n-1976\n-_\b1_\b9_\b7_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bM () const\n-1979 {\n-1980 return _\bm;\n-1981 }\n-1982\n-_\b1_\b9_\b8_\b4 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn_\bo_\bn_\bz_\be_\br_\bo_\be_\bs () const\n-1985 {\n-1986 // in case of row-wise allocation\n-1987 if( _\bn_\bn_\bz_\b_ <= 0 )\n-1988 _\bn_\bn_\bz_\b_ = std::accumulate( _\bb_\be_\bg_\bi_\bn(), _\be_\bn_\bd(), _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be( 0 ), [] ( _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s,\n-const _\br_\bo_\bw_\b__\bt_\by_\bp_\be &row ) { return s+row.getsize(); } );\n-1989 return _\bn_\bn_\bz_\b_;\n-1990 }\n-1991\n-_\b1_\b9_\b9_\b3 _\bB_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be _\bb_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be() const\n-1994 {\n-1995 return _\br_\be_\ba_\bd_\by;\n-1996 }\n-1997\n-_\b1_\b9_\b9_\b9 _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be _\bb_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be() const\n-2000 {\n-2001 return _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be;\n-2002 }\n-2003\n-2004 //===== query\n-2005\n-_\b2_\b0_\b0_\b7 bool _\be_\bx_\bi_\bs_\bt_\bs (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j) const\n-2008 {\n-2009#ifdef DUNE_ISTL_WITH_CHECKING\n-2010 if (i<0 || i>=_\bn) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row index out of range\");\n-2011 if (j<0 || j>=_\bm) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"column index out of range\");\n-2012#endif\n-2013 return (_\br[i].size() && _\br[i].find(j) != _\br[i]._\be_\bn_\bd());\n-2014 }\n-2015\n-2016\n-2017 protected:\n-2018 // state information\n-_\b2_\b0_\b1_\b9 _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be; // row wise or whole matrix\n-_\b2_\b0_\b2_\b0 _\bB_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be _\br_\be_\ba_\bd_\by; // indicate the stage the matrix building is in\n-2021\n-2022 // The allocator used for memory management\n-_\b2_\b0_\b2_\b3 typename std::allocator_traits::template rebind_alloc _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_;\n-2024\n-_\b2_\b0_\b2_\b5 typename std::allocator_traits::template rebind_alloc\n-_\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_;\n-2026\n-_\b2_\b0_\b2_\b7 typename std::allocator_traits::template rebind_alloc\n-_\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_;\n-2028\n-2029 // size of the matrix\n-_\b2_\b0_\b3_\b0 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn; // number of rows\n-_\b2_\b0_\b3_\b1 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bm; // number of columns\n-_\b2_\b0_\b3_\b2 mutable _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn_\bn_\bz_\b_; // number of nonzeroes contained in the matrix\n-_\b2_\b0_\b3_\b3 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_; //allocated size of a and j arrays, except in\n-implicit mode: nnz_==allocationsSize_\n-2034 // zero means that memory is allocated separately for each row.\n-2035\n-2036 // the rows are dynamically allocated\n-_\b2_\b0_\b3_\b7 _\br_\bo_\bw_\b__\bt_\by_\bp_\be* _\br; // [n] the individual rows having pointers into a,j arrays\n-2038\n-2039 // dynamically allocated memory\n-_\b2_\b0_\b4_\b0 B* _\ba; // [allocationSize] non-zero entries of the matrix in row-wise\n-ordering\n-2041 // If a single array of column indices is used, it can be shared\n-2042 // between different matrices with the same sparsity pattern\n-_\b2_\b0_\b4_\b3 std::shared_ptr _\bj_\b_; // [allocationSize] column indices of\n-entries\n-2044\n-2045 // additional data is needed in implicit buildmode\n-_\b2_\b0_\b4_\b6 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\ba_\bv_\bg;\n-_\b2_\b0_\b4_\b7 double _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_;\n-2048\n-_\b2_\b0_\b4_\b9 typedef std::map, B> _\bO_\bv_\be_\br_\bf_\bl_\bo_\bw_\bT_\by_\bp_\be;\n-_\b2_\b0_\b5_\b0 _\bO_\bv_\be_\br_\bf_\bl_\bo_\bw_\bT_\by_\bp_\be _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw;\n-2051\n-_\b2_\b0_\b5_\b2 void _\bs_\be_\bt_\bW_\bi_\bn_\bd_\bo_\bw_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs(_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br row)\n-2053 {\n-2054 _\br_\bo_\bw_\b__\bt_\by_\bp_\be current_row(_\ba,_\bj_\b_.get(),0); // Pointers to current row data\n-2055 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++, ++row) {\n-2056 // set row i\n-2057 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s = row->getsize();\n-2058\n-2059 if (s>0) {\n-2060 // setup pointers and size\n-2061 _\br[i].set(s,current_row.getptr(), current_row.getindexptr());\n-2062 // update pointer for next row\n-2063 current_row.setptr(current_row.getptr()+s);\n-2064 current_row.setindexptr(current_row.getindexptr()+s);\n-2065 } else{\n-2066 // empty row\n-2067 _\br[i].set(0,nullptr,nullptr);\n-2068 }\n-2069 }\n-2070 }\n-2071\n-2073\n-_\b2_\b0_\b7_\b7 void _\bs_\be_\bt_\bC_\bo_\bl_\bu_\bm_\bn_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs(_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br row)\n-2078 {\n-2079 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* jptr = _\bj_\b_.get();\n-2080 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; ++i, ++row) {\n-2081 // set row i\n-2082 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s = row->getsize();\n-2083\n-2084 if (s>0) {\n-2085 // setup pointers and size\n-2086 _\br[i].setsize(s);\n-2087 _\br[i].setindexptr(jptr);\n-2088 } else{\n-2089 // empty row\n-2090 _\br[i].set(0,nullptr,nullptr);\n-2091 }\n-2092\n-2093 // advance position in global array\n-2094 jptr += s;\n-2095 }\n-2096 }\n-2097\n-2099\n-_\b2_\b1_\b0_\b3 void _\bs_\be_\bt_\bD_\ba_\bt_\ba_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs()\n-2104 {\n-2105 B* aptr = _\ba;\n-2106 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; ++i) {\n-2107 // set row i\n-2108 if (_\br[i].getsize() > 0) {\n-2109 // setup pointers and size\n-2110 _\br[i].setptr(aptr);\n-2111 } else{\n-2112 // empty row\n-2113 _\br[i].set(0,nullptr,nullptr);\n-2114 }\n-2115\n-2116 // advance position in global array\n-2117 aptr += _\br[i].getsize();\n-2118 }\n-2119 }\n-2120\n-_\b2_\b1_\b2_\b2 void _\bc_\bo_\bp_\by_\bW_\bi_\bn_\bd_\bo_\bw_\bS_\bt_\br_\bu_\bc_\bt_\bu_\br_\be(const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& Mat)\n-2123 {\n-2124 _\bs_\be_\bt_\bW_\bi_\bn_\bd_\bo_\bw_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs(Mat._\bb_\be_\bg_\bi_\bn());\n-2125\n-2126 // copy data\n-2127 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++) _\br[i] = Mat._\br[i];\n-2128\n-2129 // finish off\n-2130 _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be = _\br_\bo_\bw_\b__\bw_\bi_\bs_\be; // dummy\n-2131 _\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bt;\n-2132 }\n-2133\n-_\b2_\b1_\b3_\b9 void _\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(bool deallocateRows=true)\n-2140 {\n-2141\n-2142 if (_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n-2143 return;\n-2144\n-2145 if (_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_>0)\n-2146 {\n-2147 // a,j_ have been allocated as one long vector\n-2148 _\bj_\b_.reset();\n-2149 if (_\ba)\n-2150 {\n-2151 for(B *aiter=_\ba+(_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_-1), *aend=_\ba-1; aiter!=aend; --aiter)\n-2152 std::allocator_traits::destroy(_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_, aiter);\n-2153 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.deallocate(_\ba,_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_);\n-2154 _\ba = nullptr;\n-2155 }\n-2156 }\n-2157 else if (_\br)\n-2158 {\n-2159 // check if memory for rows have been allocated individually\n-2160 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++)\n-2161 if (_\br[i].getsize()>0)\n-2162 {\n-2163 for (B *_\bc_\bo_\bl=_\br[i].getptr()+(_\br[i].getsize()-1),\n-2164 *colend = _\br[i].getptr()-1; _\bc_\bo_\bl!=colend; --_\bc_\bo_\bl) {\n-2165 std::allocator_traits::destroy(_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_, _\bc_\bo_\bl);\n-2166 }\n-2167 _\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.deallocate(_\br[i].getindexptr(),1);\n-2168 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.deallocate(_\br[i].getptr(),1);\n-2169 // clear out row data in case we don't want to deallocate the rows\n-2170 // otherwise we might run into a double free problem here later\n-2171 _\br[i].set(0,nullptr,nullptr);\n-2172 }\n-2173 }\n-2174\n-2175 // deallocate the rows\n-2176 if (_\bn>0 && deallocateRows && _\br) {\n-2177 for(_\br_\bo_\bw_\b__\bt_\by_\bp_\be *riter=_\br+(_\bn-1), *rend=_\br-1; riter!=rend; --riter)\n-2178 std::allocator_traits::destroy(_\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_,\n-riter);\n-2179 _\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.deallocate(_\br,_\bn);\n-2180 _\br = nullptr;\n-2181 }\n-2182\n-2183 // Mark matrix as not built at all.\n-2184 _\br_\be_\ba_\bd_\by=_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd;\n-2185\n-2186 }\n-2187\n-_\b2_\b2_\b0_\b5 void _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be allocationSize,\n-bool allocateRows, bool allocate_data)\n-2206 {\n-2207 // Store size\n-2208 _\bn = rows;\n-2209 _\bm = columns;\n-2210 _\bn_\bn_\bz_\b_ = allocationSize;\n-2211 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_ = allocationSize;\n-2212\n-2213 // allocate rows\n-2214 if(allocateRows) {\n-2215 if (_\bn>0) {\n-2216 if (_\br)\n-2217 DUNE_THROW(InvalidStateException,\"Rows have already been allocated, cannot\n-allocate a second time\");\n-2218 _\br = _\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.allocate(rows);\n-2219 // initialize row entries\n-2220 for(_\br_\bo_\bw_\b__\bt_\by_\bp_\be* ri=_\br; ri!=_\br+rows; ++ri)\n-2221 std::allocator_traits::construct(_\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_,\n-ri, _\br_\bo_\bw_\b__\bt_\by_\bp_\be());\n-2222 }else{\n-2223 _\br = 0;\n-2224 }\n-2225 }\n-2226\n-2227 // allocate a and j_ array\n-2228 if (allocate_data)\n-2229 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bD_\ba_\bt_\ba();\n-2230 // allocate column indices only if not yet present (enable sharing)\n-2231 if (_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_>0) {\n-2232 // we copy allocator and size to the deleter since _j may outlive this\n-class\n-2233 if (!_\bj_\b_.get())\n-2234 _\bj_\b_.reset(_\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.allocate(_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_),\n-2235 [alloc = _\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_, size = _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_](auto ptr) mutable {\n-2236 alloc.deallocate(ptr, size);\n-2237 });\n-2238 }else{\n-2239 _\bj_\b_.reset();\n-2240 }\n-2241\n-2242 // Mark the matrix as not built.\n-2243 _\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg;\n-2244 }\n-2245\n-_\b2_\b2_\b4_\b6 void _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bD_\ba_\bt_\ba()\n-2247 {\n-2248 if (_\ba)\n-2249 DUNE_THROW(InvalidStateException,\"Cannot allocate data array (already\n-allocated)\");\n-2250 if (_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_>0) {\n-2251 _\ba = _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.allocate(_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_);\n-2252 // use placement new to call constructor that allocates\n-2253 // additional memory.\n-2254 new (_\ba) B[_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_];\n-2255 } else {\n-2256 _\ba = nullptr;\n-2257 }\n-2258 }\n-2259\n-_\b2_\b2_\b6_\b5 void _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\b__\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _m)\n-2266 {\n-2267 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be != _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt)\n-2268 DUNE_THROW(InvalidStateException,\"implicit_allocate() may only be called\n-in implicit build mode\");\n-2269 if (_\br_\be_\ba_\bd_\by != _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n-2270 DUNE_THROW(InvalidStateException,\"memory has already been allocated\");\n-2271\n-2272 // check to make sure the user has actually set the parameters\n-2273 if (_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_ < 0)\n-2274 DUNE_THROW(InvalidStateException,\"You have to set the implicit build mode\n-parameters before starting to build the matrix\");\n-2275 //calculate size of overflow region, add buffer for row sort!\n-2276 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be osize = (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be) (_n*_\ba_\bv_\bg)*_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_ + 4*_\ba_\bv_\bg;\n-2277 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_ = _n*_\ba_\bv_\bg + osize;\n-2278\n-2279 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_n, _m, _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_,true,true);\n-2280\n-2281 //set row pointers correctly\n-2282 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* jptr = _\bj_\b_.get() + osize;\n-2283 B* aptr = _\ba + osize;\n-2284 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++)\n-2285 {\n-2286 _\br[i].set(0,aptr,jptr);\n-2287 jptr = jptr + _\ba_\bv_\bg;\n-2288 aptr = aptr + _\ba_\bv_\bg;\n-2289 }\n-2290\n-2291 _\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg;\n-2292 }\n-2293 };\n-2294\n-2295\n-2296 template\n-_\b2_\b2_\b9_\b7 struct FieldTraits< _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n-2298 {\n-_\b2_\b2_\b9_\b9 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\b _\bA_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b2_\b3_\b0_\b0 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n-2301 };\n-2302\n-2305} // end namespace\n-2306\n-2307#endif\n-_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n-Helper functions for determining the vector/matrix block level.\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\n-Some handy generic functions for ISTL matrices.\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+82 {\n+83 // This function should never be called\n+84 std::abort();\n+85 }\n+86\n+87 template\n+_\b8_\b8 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn(const Communication&)\n+89 {}\n+90\n+_\b9_\b1 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn()\n+92 {}\n+93\n+_\b9_\b4 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn(const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn&)\n+95 {}\n+96 private:\n+97 _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br comm_;\n+98 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt gli;\n+99 };\n+100\n+101\n+102 } // namespace Amg\n+103} //namespace Dune\n+104#endif\n+_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs\n-Statistics about compression achieved in implicit mode.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:88\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs_\b:_\b:_\bo_\bv_\be_\br_\bf_\bl_\bo_\bw_\b__\bt_\bo_\bt_\ba_\bl\n-size_type overflow_total\n-total number of elements written to the overflow area during construction.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:94\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs_\b:_\b:_\bm_\ba_\bx_\bi_\bm_\bu_\bm\n-size_type maximum\n-maximum number of non-zeroes per row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:92\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs_\b:_\b:_\ba_\bv_\bg\n-double avg\n-average number of non-zeroes per row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:90\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs_\b:_\b:_\bm_\be_\bm_\b__\br_\ba_\bt_\bi_\bo\n-double mem_ratio\n-fraction of wasted memory resulting from non-used overflow area.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br\n-A wrapper for uniform access to the BCRSMatrix during and after the build stage\n-in implicit build mod...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:117\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-Matrix::block_type block_type\n-The block_type of the underlying matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:125\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br\n-ImplicitMatrixBuilder(Matrix &m)\n-Creates an ImplicitMatrixBuilder for matrix m.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:170\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-M_ Matrix\n-The underlying matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:122\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br\n-ImplicitMatrixBuilder(Matrix &m, size_type rows, size_type cols, size_type\n-avg_cols_per_row, double overflow_fraction)\n-Sets up matrix m for implicit construction using the given parameters and\n-creates an ImplicitBmatrixu...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:194\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bM\n-size_type M() const\n-The number of columns in the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:217\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-The size_type of the underlying matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:128\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-row_object operator[](size_type i) const\n-Returns a proxy for entries in row i.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:205\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bN\n-size_type N() const\n-The number of rows in the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt\n-Proxy row object for entry access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:137\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-block_type & operator[](size_type j) const\n-Returns entry in column j.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:142\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< B >::field_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:488\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_\n-std::allocator_traits< A >::template rebind_alloc< row_type > rowAllocator_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2025\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs\n-bool exists(size_type i, size_type j) const\n-return true if (i,j) is in pattern\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2007\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be\n-BuildStage buildStage() const\n-The current build stage of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1993\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-Iterator begin()\n-Get iterator to first row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:675\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bp_\by_\bW_\bi_\bn_\bd_\bo_\bw_\bS_\bt_\br_\bu_\bc_\bt_\bu_\br_\be\n-void copyWindowStructure(const BCRSMatrix &Mat)\n-Copy the window structure from another matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2122\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bt_\br_\by\n-B & entry(size_type row, size_type col)\n-Returns reference to entry (row,col) of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1296\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bh_\bv\n-void mmhv(const X &x, Y &y) const\n-y -= A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1812\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bh_\bv\n-void usmhv(const field_type &alpha, const X &x, Y &y) const\n-y += alpha A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1835\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bt_\bv\n-void umtv(const X &x, Y &y) const\n-y += A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1722\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_\n-double compressionBufferSize_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2047\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm\n-size_type m\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2031\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealRowIterator< const row_type > const_iterator\n-The const iterator over the matrix rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:707\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n-static constexpr unsigned int blocklevel\n-increment block level counter\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:507\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n-void allocate(size_type rows, size_type columns, size_type allocationSize, bool\n-allocateRows, bool allocate_data)\n-Allocate memory for the matrix structure.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2205\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bx_\bp_\by\n-BCRSMatrix & axpy(field_type alpha, const BCRSMatrix &b)\n-Add the scaled entries of another matrix to this one.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1592\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n-FieldTraits< ft >::real_type infinity_norm_real() const\n-simplified infinity norm (uses Manhattan norm for complex values)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1905\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\b~_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-~BCRSMatrix()\n-destructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:824\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bD_\ba_\bt_\ba\n-void allocateData()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2246\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n-void deallocate(bool deallocateRows=true)\n-deallocate memory of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2139\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator RowIterator\n-rename the iterators for easier access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:701\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-row_type & operator[](size_type i)\n-random access to the rows\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:549\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix()\n-an empty matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:749\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs\n-void endrowsizes()\n-indicate that size of all rows is defined\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be\n-void incrementrowsize(size_type i, size_type s=1)\n-increment size of row i by s (1 by default)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1138\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bt_\bv\n-void mtv(const X &x, Y &y) const\n-y = A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1707\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bh_\bv\n-void umhv(const X &x, Y &y) const\n-y += A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1789\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bn_\bo_\bn_\bz_\be_\br_\bo_\be_\bs\n-size_type nonzeroes() const\n-number of blocks that are stored (the number of blocks that possibly are\n-nonzero)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1984\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_\n-size_type allocationSize_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2033\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator ConstRowIterator\n-rename the const row iterator for easier access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:738\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\be_\ba_\bd_\by\n-BuildStage ready\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2020\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be\n-BuildMode build_mode\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2019\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be\n-void setrowsize(size_type i, size_type s)\n-Set number of indices in row i to s.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1117\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealRowIterator< row_type > Iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:672\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bn_\bn_\bz_\b_\n-size_type nnz_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2032\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n-BCRSMatrix & operator*=(const field_type &k)\n-vector space multiplication with scalar\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1484\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_\n-std::allocator_traits< A >::template rebind_alloc< size_type > sizeAllocator_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2027\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealRowIterator< row_type > iterator\n-The iterator over the (mutable matrix rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:671\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bt_\bv\n-void usmtv(const field_type &alpha, const X &x, Y &y) const\n-y += alpha A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1766\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n-ConstIterator beforeBegin() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:732\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealRowIterator< const row_type > ConstIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:708\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n-Iterator beforeBegin()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:695\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba\n-B * a\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2040\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be\n-BuildMode\n-we support two modes\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:510\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt\n-@ implicit\n-Build entries randomly with an educated guess for the number of entries per\n-row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:539\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn\n-@ unknown\n-Build mode not set!\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:543\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\ba_\bn_\bd_\bo_\bm\n-@ random\n-Build entries randomly.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:530\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bw_\bi_\bs_\be\n-@ row_wise\n-Build in a row-wise manner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:521\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix(size_type _n, size_type _m, size_type _nnz, BuildMode bm)\n-matrix with known number of nonzeroes\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:756\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs\n-::Dune::CompressionStatistics< size_type > CompressionStatistics\n-The type for the statistics object returned by compress()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:503\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n-BCRSMatrix & operator-=(const BCRSMatrix &b)\n-Subtract the entries of another matrix from this one.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1567\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix(const BCRSMatrix &Mat)\n-copy constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:805\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-Iterator end()\n-Get iterator to one beyond last row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:681\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br\n-row_type * r\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2037\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bd_\bi_\bc_\be_\bs\n-void setIndices(size_type row, It begin, It end)\n-Set all column indices for row from the given iterator range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1234\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx\n-void addindex(size_type row, size_type col)\n-add index (row,col) to the matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1191\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bO_\bv_\be_\br_\bf_\bl_\bo_\bw_\bT_\by_\bp_\be\n-std::map< std::pair< size_type, size_type >, B > OverflowType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2049\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::Iterator ColIterator\n-Iterator for the entries of each row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:704\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm\n-FieldTraits< field_type >::real_type frobenius_norm() const\n-frobenius norm: sqrt(sum over squared values of entries)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1877\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-The type for the index access and the size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n-BCRSMatrix & operator/=(const field_type &k)\n-vector space division by scalar\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1512\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bv_\be_\br_\bf_\bl_\bo_\bw\n-OverflowType overflow\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2050\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n-BCRSMatrix & operator+=(const BCRSMatrix &b)\n-Add the entries of another matrix to this one.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1545\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix(size_type _n, size_type _m, size_type _avg, double\n-compressionBufferSize, BuildMode bm)\n-construct matrix with a known average number of entries per row\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:784\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd\n-CreateIterator createend()\n-get create iterator pointing to one after the last block\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1103\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2\n-FieldTraits< field_type >::real_type frobenius_norm2() const\n-square of frobenius norm, need for block recursion\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1860\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-Iterator beforeEnd()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:688\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::ConstIterator ConstColIterator\n-Const iterator to the entries of a row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:741\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bv\n-void usmv(F &&alpha, const X &x, Y &y) const\n-y += alpha A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1684\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bg_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be\n-size_type getrowsize(size_type i) const\n-get current number of indices in row i\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1128\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-size_type M() const\n-number of columns (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1978\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bn\n-size_type n\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2030\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n-Imp::CompressedBlockVectorWindow< B, A > row_type\n-implement row_type with compressed vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:497\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn\n-CreateIterator createbegin()\n-get initial create iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1097\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be\n-BuildStage\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:469\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\bS_\bi_\bz_\be_\bs_\bB_\bu_\bi_\bl_\bt\n-@ rowSizesBuilt\n-The row sizes of the matrix are known.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:480\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bu_\bi_\bl_\bt\n-@ built\n-The matrix structure is fully built.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:482\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bn_\bo_\bt_\bb_\bu_\bi_\bl_\bt\n-@ notbuilt\n-Matrix is not built at all, no memory has been allocated, build mode and size\n-can still be set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:471\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd\n-@ notAllocated\n-Matrix is not built at all, no memory has been allocated, build mode and size\n-can still be set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:473\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg\n-@ building\n-Matrix is currently being built, some memory has been allocated, build mode and\n-size are fixed.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:475\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be\n-BuildMode buildMode() const\n-The currently selected build mode of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1999\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bv\n-void mmv(const X &x, Y &y) const\n-y -= A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1661\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n-FieldTraits< ft >::real_type infinity_norm() const\n-infinity norm (row sum norm, how to generalize for blocks?)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1885\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n-void mv(const X &x, Y &y) const\n-y = A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1612\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-B block_type\n-export the type representing the components\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:491\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bt_\bv\n-void mmtv(const X &x, Y &y) const\n-y -= A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1745\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bv_\bg\n-size_type avg\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2046\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bv\n-void umv(const X &x, Y &y) const\n-y += A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1638\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\b__\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n-void implicit_allocate(size_type _n, size_type _m)\n-organizes allocation implicit mode calculates correct array size to be\n-allocated and sets the the win...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2265\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-void setImplicitBuildModeParameters(size_type _avg, double\n-compressionBufferSize)\n-Set parameters needed for creation in implicit build mode.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:889\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-BCRSMatrix(size_type _n, size_type _m, BuildMode bm)\n-matrix with unknown number of nonzeroes\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:765\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs\n-void endindices()\n-indicate that all indices are defined, check consistency\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1248\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs\n-CompressionStatistics compress()\n-Finishes the buildstage in implicit mode.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1360\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bD_\ba_\bt_\ba_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs\n-void setDataPointers()\n-Set data pointers for all rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2103\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_\n-std::allocator_traits< A >::template rebind_alloc< B > allocator_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2023\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-number of rows (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be\n-void setBuildMode(BuildMode bm)\n-Sets the build mode of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:833\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n-void setSize(size_type rows, size_type columns, size_type nnz=0)\n-Set the size of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:861\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bj_\b_\n-std::shared_ptr< size_type > j_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2043\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bW_\bi_\bn_\bd_\bo_\bw_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs\n-void setWindowPointers(ConstRowIterator row)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2052\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-BCRSMatrix & operator=(const BCRSMatrix &Mat)\n-assignment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:911\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bC_\bo_\bl_\bu_\bm_\bn_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs\n-void setColumnPointers(ConstRowIterator row)\n-Copy row sizes from iterator range starting at row and set column index\n-pointers for all rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2077\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-ConstIterator end() const\n-Get const iterator to one beyond last row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:718\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-ConstIterator begin() const\n-Get const iterator to first row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:712\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n-A allocator_type\n-export the allocator type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:494\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-ConstIterator beforeEnd() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:725\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator access to matrix rows\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:579\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealRowIterator()\n-empty constructor, use with care!\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:596\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const RealRowIterator< ValueType > &other) const\n-equality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:624\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n-std::remove_const< T >::type ValueType\n-The unqualified value type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:583\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealRowIterator(const RealRowIterator< ValueType > &it)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:600\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const RealRowIterator< const ValueType > &other) const\n-equality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:631\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealRowIterator(row_type *_p, size_type _i)\n-constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:591\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n-std::ptrdiff_t distanceTo(const RealRowIterator< const ValueType > &other)\n-const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:617\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n-size_type index() const\n-return index\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:606\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n-std::ptrdiff_t distanceTo(const RealRowIterator< ValueType > &other) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:611\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator class for sequential creation of blocks\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:957\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n-bool operator==(const CreateIterator &it) const\n-equality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1052\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n-CreateIterator & operator++()\n-prefix increment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:977\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n-size_type index() const\n-The number of the row that the iterator currently points to.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1058\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n-bool operator!=(const CreateIterator &it) const\n-inequality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1046\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-CreateIterator(BCRSMatrix &_Mat, size_type _i)\n-constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:960\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt\n-void insert(size_type j)\n-put column index in row\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1064\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs\n-bool contains(size_type j)\n-return true if column index is in row\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1070\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be\n-size_type size() const\n-Get the current row size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1079\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename BCRSMatrix< B, A >::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-typename FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2300\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n-Error specific to BCRSMatrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:24\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd\n-Thrown when the compression buffer used by the implicit BCRSMatrix construction\n-is exhausted.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-A generic dynamic dense matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-Type for indices and sizes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:577\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-T block_type\n-Export the type representing the components.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:568\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:538\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+SequentialInformation()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:91\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bS_\bu_\bm\n+T globalSum(const T &t) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:49\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bd_\bo_\bt\n+void dot(const T1 &, const T1 &, T2 &) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:74\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bF_\bl_\ba_\bg_\bs\n+EmptySet< int > CopyFlags\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:31\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n+AllSet< int > OwnerSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl\n+void copyOwnerToAll(V &v, V &v1) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:66\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+MPICommunicator communicator() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:38\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n+void buildGlobalLookup(std::size_t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bn_\bo_\br_\bm\n+FieldTraits< typenameT1::field_type >::real_type norm(const T1 &) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bp_\br_\bo_\bj_\be_\bc_\bt\n+void project(V &v) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+Communication< void * > MPICommunicator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+SequentialInformation(const Communication< T > &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:88\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n+const GlobalLookupIndexSet & globalLookup() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:60\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+SequentialInformation(const SequentialInformation &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:94\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n+void freeGlobalLookup()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:58\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+int GlobalLookupIndexSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+SolverCategory::Category category() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bp_\br_\bo_\bc_\bs\n+int procs() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00071.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00071.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: solvers.hh File Reference\n+dune-istl: matrixhierarchy.hh File Reference\n \n \n \n \n \n \n \n@@ -65,117 +65,86 @@\n
    \n \n \n \n \n \n \n \n
    \n \n-

    Implementations of the inverse operator interface. \n+

    Provides a classes representing the hierarchies in AMG. \n More...

    \n-
    #include <array>
    \n-#include <cmath>
    \n-#include <complex>
    \n-#include <iostream>
    \n-#include <memory>
    \n-#include <type_traits>
    \n-#include <vector>
    \n-#include <dune/common/exceptions.hh>
    \n-#include <dune/common/math.hh>
    \n-#include <dune/common/simd/io.hh>
    \n-#include <dune/common/simd/simd.hh>
    \n-#include <dune/common/std/type_traits.hh>
    \n-#include <dune/common/timer.hh>
    \n-#include <dune/istl/allocator.hh>
    \n-#include <dune/istl/bcrsmatrix.hh>
    \n-#include <dune/istl/eigenvalue/arpackpp.hh>
    \n-#include <dune/istl/istlexception.hh>
    \n-#include <dune/istl/operators.hh>
    \n-#include <dune/istl/preconditioner.hh>
    \n-#include <dune/istl/scalarproducts.hh>
    \n-#include <dune/istl/solver.hh>
    \n-#include <dune/istl/solverregistry.hh>
    \n+
    #include <algorithm>
    \n+#include <tuple>
    \n+#include "aggregates.hh"
    \n+#include "graph.hh"
    \n+#include "galerkin.hh"
    \n+#include "renumberer.hh"
    \n+#include "graphcreator.hh"
    \n+#include "hierarchy.hh"
    \n+#include <dune/istl/bvector.hh>
    \n+#include <dune/common/parallel/indexset.hh>
    \n+#include <dune/istl/matrixutils.hh>
    \n+#include <dune/istl/matrixredistribute.hh>
    \n+#include <dune/istl/paamg/dependency.hh>
    \n+#include <dune/istl/paamg/indicescoarsener.hh>
    \n+#include <dune/istl/paamg/globalaggregates.hh>
    \n+#include <dune/istl/paamg/construction.hh>
    \n+#include <dune/istl/paamg/smoother.hh>
    \n+#include <dune/istl/paamg/transfer.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n-\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::LoopSolver< X >
     Preconditioned loop solver. More...
    class  Dune::Amg::MatrixHierarchy< M, PI, A >
     The hierarchies build by the coarsening process. More...
     
    class  Dune::GradientSolver< X >
     gradient method More...
    struct  Dune::Amg::MatrixHierarchy< M, PI, A >::MatrixStats< Matrix, true >::calc
     
    class  Dune::CGSolver< X >
     conjugate gradient method More...
     
    class  Dune::BiCGSTABSolver< X >
     Bi-conjugate Gradient Stabilized (BiCG-STAB) More...
     
    class  Dune::MINRESSolver< X >
     Minimal Residual Method (MINRES) More...
     
    class  Dune::RestartedGMResSolver< X, Y, F >
     implements the Generalized Minimal Residual (GMRes) method More...
     
    class  Dune::RestartedFlexibleGMResSolver< X, Y, F >
     implements the Flexible Generalized Minimal Residual (FGMRes) method (right preconditioned) More...
     
    class  Dune::GeneralizedPCGSolver< X >
     Generalized preconditioned conjugate gradient solver. More...
     
    class  Dune::RestartedFCGSolver< X >
     Accelerated flexible conjugate gradient method. More...
     
    class  Dune::CompleteFCGSolver< X >
     Complete flexible conjugate gradient method. More...
    class  Dune::Amg::CoarsenCriterion< T >
     The criterion describing the stop criteria for the coarsening process. More...
     
    \n \n \n \n+\n+\n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+\n+\n+\n

    \n+Enumerations

    enum  { Dune::Amg::MAX_PROCESSES = 72000\n+ }
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n

    \n Functions

     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("loopsolver", defaultIterativeSolverCreator< Dune::LoopSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("gradientsolver", defaultIterativeSolverCreator< Dune::GradientSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("cgsolver", defaultIterativeSolverCreator< Dune::CGSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("bicgstabsolver", defaultIterativeSolverCreator< Dune::BiCGSTABSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("minressolver", defaultIterativeSolverCreator< Dune::MINRESSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("restartedgmressolver", defaultIterativeSolverCreator< Dune::RestartedGMResSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("restartedflexiblegmressolver", defaultIterativeSolverCreator< Dune::RestartedFlexibleGMResSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("generalizedpcgsolver", defaultIterativeSolverCreator< Dune::GeneralizedPCGSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("restartedfcgsolver", defaultIterativeSolverCreator< Dune::RestartedFCGSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("completefcgsolver", defaultIterativeSolverCreator< Dune::CompleteFCGSolver >())
     
    template<typename M , typename C1 >
    bool Dune::Amg::repartitionAndDistributeMatrix (const M &origMatrix, std::shared_ptr< M > newMatrix, SequentialInformation &origComm, std::shared_ptr< SequentialInformation > &newComm, RedistributeInformation< SequentialInformation > &ri, int nparts, C1 &criterion)
     
    template<typename M , typename C , typename C1 >
    bool Dune::Amg::repartitionAndDistributeMatrix (const M &origMatrix, std::shared_ptr< M > newMatrix, C &origComm, std::shared_ptr< C > &newComm, RedistributeInformation< C > &ri, int nparts, C1 &criterion)
     
    \n

    Detailed Description

    \n-

    Implementations of the inverse operator interface.

    \n-

    This file provides various preconditioned Krylov methods.

    \n+

    Provides a classes representing the hierarchies in AMG.

    \n+
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,104 +1,68 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-solvers.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs\n-Implementations of the inverse operator interface. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be_\b/_\ba_\br_\bp_\ba_\bc_\bk_\bp_\bp_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh>\n+ * _\bp_\ba_\ba_\bm_\bg\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bE_\bn_\bu_\bm_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+matrixhierarchy.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n+\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n+Provides a classes representing the hierarchies in AMG. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n+#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n+#include \"_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\"\n+#include \"_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\"\n+#include \"_\bg_\br_\ba_\bp_\bh_\bc_\br_\be_\ba_\bt_\bo_\br_\b._\bh_\bh\"\n+#include \"_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh\"\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bi_\bn_\bd_\bi_\bc_\be_\bs_\bc_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bg_\bl_\bo_\bb_\ba_\bl_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n-\u00a0 Preconditioned loop solver. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bM_\b,_\b _\bP_\bI_\b,_\b _\bA_\b _\b>\n+\u00a0 The hierarchies build by the coarsening process. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n-\u00a0 gradient method _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bM_\b,_\b _\bP_\bI_\b,_\b _\bA_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:\n+ _\bc_\ba_\bl_\bc\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n-\u00a0 conjugate gradient method _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n-\u00a0 Bi-conjugate Gradient Stabilized (BiCG-STAB) _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n-\u00a0 Minimal Residual Method (MINRES) _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bF_\b _\b>\n-\u00a0 implements the Generalized Minimal Residual (GMRes) method _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bl_\be_\bx_\bi_\bb_\bl_\be_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bF_\b _\b>\n-\u00a0 implements the Flexible Generalized Minimal Residual (FGMRes) method\n- (right preconditioned) _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n-\u00a0 Generalized preconditioned conjugate gradient solver. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n-\u00a0 Accelerated flexible conjugate gradient method. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\bl_\be_\bt_\be_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n-\u00a0 Complete flexible conjugate gradient method. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\b _\bT_\b _\b>\n+\u00a0 The criterion describing the stop criteria for the coarsening process.\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"loopsolver\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"gradientsolver\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"cgsolver\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"bicgstabsolver\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"minressolver\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br >())\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"restartedgmressolver\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br >())\n+E\bEn\bnu\bum\bme\ber\bra\bat\bti\bio\bon\bns\bs\n+enum \u00a0 { _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\bA_\bX_\b__\bP_\bR_\bO_\bC_\bE_\bS_\bS_\bE_\bS = 72000 }\n \u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"restartedflexiblegmressolver\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bl_\be_\bx_\bi_\bb_\bl_\be_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"generalizedpcgsolver\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"restartedfcgsolver\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br >())\n-\u00a0\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"completefcgsolver\",\n- _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\bl_\be_\bt_\be_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br >())\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx (const M &origMatrix, std::\n+ shared_ptr< M > newMatrix, _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn &origComm, std::\n+ shared_ptr< _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn > &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn<\n+ _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn > &ri, int nparts, C1 &criterion)\n+\u00a0\n+template\n+bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx (const M &origMatrix, std::\n+ shared_ptr< M > newMatrix, C &origComm, std::shared_ptr< C > &newComm,\n+ _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< C > &ri, int nparts, C1 &criterion)\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Implementations of the inverse operator interface.\n-This file provides various preconditioned Krylov methods.\n+Provides a classes representing the hierarchies in AMG.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00071_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00071_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: solvers.hh Source File\n+dune-istl: matrixhierarchy.hh Source File\n \n \n \n \n \n \n \n@@ -70,1674 +70,1008 @@\n
    \n
    \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n-
    solvers.hh
    \n+
    matrixhierarchy.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5
    \n-
    6#ifndef DUNE_ISTL_SOLVERS_HH
    \n-
    7#define DUNE_ISTL_SOLVERS_HH
    \n-
    8
    \n-
    9#include <array>
    \n-
    10#include <cmath>
    \n-
    11#include <complex>
    \n-
    12#include <iostream>
    \n-
    13#include <memory>
    \n-
    14#include <type_traits>
    \n-
    15#include <vector>
    \n-
    16
    \n-
    17#include <dune/common/exceptions.hh>
    \n-
    18#include <dune/common/math.hh>
    \n-
    19#include <dune/common/simd/io.hh>
    \n-
    20#include <dune/common/simd/simd.hh>
    \n-
    21#include <dune/common/std/type_traits.hh>
    \n-
    22#include <dune/common/timer.hh>
    \n-
    23
    \n-\n-\n-\n-\n-\n-\n-\n-
    31#include <dune/istl/solver.hh>
    \n-\n-
    33
    \n-
    34namespace Dune {
    \n-
    46 //=====================================================================
    \n-
    47 // Implementation of this interface
    \n-
    48 //=====================================================================
    \n-
    49
    \n-
    58 template<class X>
    \n-
    \n-
    59 class LoopSolver : public IterativeSolver<X,X> {
    \n-
    60 public:
    \n-\n-\n-\n-\n+
    5#ifndef DUNE_AMG_MATRIXHIERARCHY_HH
    \n+
    6#define DUNE_AMG_MATRIXHIERARCHY_HH
    \n+
    7
    \n+
    8#include <algorithm>
    \n+
    9#include <tuple>
    \n+
    10#include "aggregates.hh"
    \n+
    11#include "graph.hh"
    \n+
    12#include "galerkin.hh"
    \n+
    13#include "renumberer.hh"
    \n+
    14#include "graphcreator.hh"
    \n+
    15#include "hierarchy.hh"
    \n+
    16#include <dune/istl/bvector.hh>
    \n+
    17#include <dune/common/parallel/indexset.hh>
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+
    27
    \n+
    28namespace Dune
    \n+
    29{
    \n+
    30 namespace Amg
    \n+
    31 {
    \n+
    42 enum {
    \n+
    50 MAX_PROCESSES = 72000
    \n+
    51 };
    \n+
    52
    \n+
    59 template<class M, class PI, class A=std::allocator<M> >
    \n+
    \n+\n+
    61 {
    \n+
    62 public:
    \n+
    64 typedef M MatrixOperator;
    \n
    65
    \n-
    66 // copy base class constructors
    \n-
    67 using IterativeSolver<X,X>::IterativeSolver;
    \n+
    67 typedef typename MatrixOperator::matrix_type Matrix;
    \n
    68
    \n-
    69 // don't shadow four-argument version of apply defined in the base class
    \n-
    70 using IterativeSolver<X,X>::apply;
    \n+\n
    71
    \n-
    \n-
    73 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n-
    74 {
    \n-
    75 Iteration iteration(*this, res);
    \n-
    76 _prec->pre(x,b);
    \n+
    73 typedef A Allocator;
    \n+
    74
    \n+\n
    77
    \n-
    78 // overwrite b with defect
    \n-
    79 _op->applyscaleadd(-1,x,b);
    \n+\n
    80
    \n-
    81 // compute norm, \\todo parallelization
    \n-
    82 real_type def = _sp->norm(b);
    \n-
    83 if(iteration.step(0, def)){
    \n-
    84 _prec->post(x);
    \n-
    85 return;
    \n-
    86 }
    \n-
    87 // prepare preconditioner
    \n-
    88
    \n-
    89 // allocate correction vector
    \n-
    90 X v(x);
    \n-
    91
    \n-
    92 // iteration loop
    \n-
    93 int i=1;
    \n-
    94 for ( ; i<=_maxit; i++ )
    \n-
    95 {
    \n-
    96 v = 0; // clear correction
    \n-
    97 _prec->apply(v,b); // apply preconditioner
    \n-
    98 x += v; // update solution
    \n-
    99 _op->applyscaleadd(-1,v,b); // update defect
    \n-
    100 def=_sp->norm(b); // comp defect norm
    \n-
    101 if(iteration.step(i, def))
    \n-
    102 break;
    \n-
    103 }
    \n-
    104
    \n-
    105 // postprocess preconditioner
    \n-
    106 _prec->post(x);
    \n-
    107 }
    \n-
    \n+\n+
    83
    \n+
    85 using AAllocator = typename std::allocator_traits<Allocator>::template rebind_alloc<AggregatesMap*>;
    \n+
    86
    \n+
    88 typedef std::list<AggregatesMap*,AAllocator> AggregatesMapList;
    \n+
    89
    \n+\n+
    92
    \n+
    94 using RILAllocator = typename std::allocator_traits<Allocator>::template rebind_alloc<RedistributeInfoType>;
    \n+
    95
    \n+
    97 typedef std::list<RedistributeInfoType,RILAllocator> RedistributeInfoList;
    \n+
    98
    \n+
    104 MatrixHierarchy(std::shared_ptr<MatrixOperator> fineMatrix,
    \n+
    105 std::shared_ptr<ParallelInformation> pinfo = std::make_shared<ParallelInformation>());
    \n+
    106
    \n+\n
    108
    \n-
    109 protected:
    \n-
    110 using IterativeSolver<X,X>::_op;
    \n-
    111 using IterativeSolver<X,X>::_prec;
    \n-
    112 using IterativeSolver<X,X>::_sp;
    \n-\n-
    114 using IterativeSolver<X,X>::_maxit;
    \n-
    115 using IterativeSolver<X,X>::_verbose;
    \n-\n-
    117 };
    \n-
    \n-
    118 DUNE_REGISTER_ITERATIVE_SOLVER("loopsolver", defaultIterativeSolverCreator<Dune::LoopSolver>());
    \n-
    119
    \n-
    120
    \n-
    121 // all these solvers are taken from the SUMO library
    \n-
    123 template<class X>
    \n-
    \n-
    124 class GradientSolver : public IterativeSolver<X,X> {
    \n-
    125 public:
    \n-\n-\n-\n-
    129 using typename IterativeSolver<X,X>::real_type;
    \n-
    130
    \n-
    131 // copy base class constructors
    \n-
    132 using IterativeSolver<X,X>::IterativeSolver;
    \n+
    114 template<typename O, typename T>
    \n+
    115 void build(const T& criterion);
    \n+
    116
    \n+
    124 template<class F>
    \n+
    125 void recalculateGalerkin(const F& copyFlags);
    \n+
    126
    \n+
    131 template<class V, class BA, class TA>
    \n+
    132 void coarsenVector(Hierarchy<BlockVector<V,BA>, TA>& hierarchy) const;
    \n
    133
    \n-
    134 // don't shadow four-argument version of apply defined in the base class
    \n-
    135 using IterativeSolver<X,X>::apply;
    \n-
    136
    \n-
    \n-
    142 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n-
    143 {
    \n-
    144 Iteration iteration(*this, res);
    \n-
    145 _prec->pre(x,b); // prepare preconditioner
    \n-
    146
    \n-
    147 _op->applyscaleadd(-1,x,b); // overwrite b with defec
    \n+
    139 template<class S, class TA>
    \n+
    140 void coarsenSmoother(Hierarchy<S,TA>& smoothers,
    \n+
    141 const typename SmootherTraits<S>::Arguments& args) const;
    \n+
    142
    \n+
    147 std::size_t levels() const;
    \n
    148
    \n-
    149 real_type def = _sp->norm(b); // compute norm
    \n-
    150 if(iteration.step(0, def)){
    \n-
    151 _prec->post(x);
    \n-
    152 return;
    \n-
    153 }
    \n+
    153 std::size_t maxlevels() const;
    \n
    154
    \n-
    155 X p(x); // create local vectors
    \n-
    156 X q(b);
    \n-
    157
    \n-
    158 int i=1; // loop variables
    \n-
    159 field_type lambda;
    \n-
    160 for ( ; i<=_maxit; i++ )
    \n-
    161 {
    \n-
    162 p = 0; // clear correction
    \n-
    163 _prec->apply(p,b); // apply preconditioner
    \n-
    164 _op->apply(p,q); // q=Ap
    \n-
    165 auto alpha = _sp->dot(q,p);
    \n-
    166 lambda = Simd::cond(def==field_type(0.),
    \n-
    167 field_type(0.), // no need for minimization if def is already 0
    \n-
    168 _sp->dot(p,b)/alpha); // minimization
    \n-
    169 x.axpy(lambda,p); // update solution
    \n-
    170 b.axpy(-lambda,q); // update defect
    \n-
    171
    \n-
    172 def =_sp->norm(b); // comp defect norm
    \n-
    173 if(iteration.step(i, def))
    \n-
    174 break;
    \n-
    175 }
    \n-
    176 // postprocess preconditioner
    \n-
    177 _prec->post(x);
    \n-
    178 }
    \n-
    \n-
    179
    \n-
    180 protected:
    \n-
    181 using IterativeSolver<X,X>::_op;
    \n-
    182 using IterativeSolver<X,X>::_prec;
    \n-
    183 using IterativeSolver<X,X>::_sp;
    \n-\n-
    185 using IterativeSolver<X,X>::_maxit;
    \n-
    186 using IterativeSolver<X,X>::_verbose;
    \n-\n-
    188 };
    \n-
    \n-
    189 DUNE_REGISTER_ITERATIVE_SOLVER("gradientsolver", defaultIterativeSolverCreator<Dune::GradientSolver>());
    \n-
    190
    \n-
    192 template<class X>
    \n-
    \n-
    193 class CGSolver : public IterativeSolver<X,X> {
    \n-
    194 public:
    \n-\n-\n-\n-
    198 using typename IterativeSolver<X,X>::real_type;
    \n-
    199
    \n-
    200 // copy base class constructors
    \n-
    201 using IterativeSolver<X,X>::IterativeSolver;
    \n-
    202
    \n-
    203 private:
    \n-\n-
    205
    \n-
    206 protected:
    \n-
    207
    \n-
    208 static constexpr bool enableConditionEstimate = (std::is_same_v<field_type,float> || std::is_same_v<field_type,double>);
    \n-
    209
    \n-
    210 public:
    \n-
    211
    \n-
    212 // don't shadow four-argument version of apply defined in the base class
    \n-
    213 using IterativeSolver<X,X>::apply;
    \n-
    214
    \n-
    \n-\n-
    223 scalar_real_type reduction, int maxit, int verbose, bool condition_estimate) : IterativeSolver<X,X>(op, prec, reduction, maxit, verbose),
    \n-
    224 condition_estimate_(condition_estimate)
    \n-
    225 {
    \n-
    226 if (condition_estimate && !enableConditionEstimate) {
    \n-
    227 condition_estimate_ = false;
    \n-
    228 std::cerr << "WARNING: Condition estimate was disabled. It is only available for double and float field types!" << std::endl;
    \n-
    229 }
    \n-
    230 }
    \n-
    \n+
    155 bool hasCoarsest() const;
    \n+
    156
    \n+
    161 bool isBuilt() const;
    \n+
    162
    \n+
    167 const ParallelMatrixHierarchy& matrices() const;
    \n+
    168
    \n+\n+
    174
    \n+
    179 const AggregatesMapList& aggregatesMaps() const;
    \n+
    180
    \n+\n+
    187
    \n+
    \n+\n+
    189 {
    \n+
    190 return prolongDamp_;
    \n+
    191 }
    \n+
    \n+
    192
    \n+
    203 void getCoarsestAggregatesOnFinest(std::vector<std::size_t>& data) const;
    \n+
    204
    \n+
    205 private:
    \n+
    206 typedef typename ConstructionTraits<MatrixOperator>::Arguments MatrixArgs;
    \n+
    207 typedef typename ConstructionTraits<ParallelInformation>::Arguments CommunicationArgs;
    \n+
    209 AggregatesMapList aggregatesMaps_;
    \n+
    211 RedistributeInfoList redistributes_;
    \n+
    213 ParallelMatrixHierarchy matrices_;
    \n+
    215 ParallelInformationHierarchy parallelInformation_;
    \n+
    216
    \n+
    218 bool built_;
    \n+
    219
    \n+
    221 int maxlevels_;
    \n+
    222
    \n+
    223 double prolongDamp_;
    \n+
    224
    \n+
    228 template<class Matrix, bool print>
    \n+
    229 struct MatrixStats
    \n+
    230 {
    \n
    231
    \n-
    \n-\n-
    240 scalar_real_type reduction, int maxit, int verbose, bool condition_estimate) : IterativeSolver<X,X>(op, sp, prec, reduction, maxit, verbose),
    \n-
    241 condition_estimate_(condition_estimate)
    \n-
    242 {
    \n-
    243 if (condition_estimate && !(std::is_same<field_type,float>::value || std::is_same<field_type,double>::value)) {
    \n-
    244 condition_estimate_ = false;
    \n-
    245 std::cerr << "WARNING: Condition estimate was disabled. It is only available for double and float field types!" << std::endl;
    \n-
    246 }
    \n-
    247 }
    \n-
    \n-
    248
    \n-
    \n-
    256 CGSolver (std::shared_ptr<const LinearOperator<X,X>> op, std::shared_ptr<ScalarProduct<X>> sp,
    \n-
    257 std::shared_ptr<Preconditioner<X,X>> prec,
    \n-
    258 scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)
    \n-
    259 : IterativeSolver<X,X>(op, sp, prec, reduction, maxit, verbose),
    \n-
    260 condition_estimate_(condition_estimate)
    \n-
    261 {
    \n-
    262 if (condition_estimate && !(std::is_same<field_type,float>::value || std::is_same<field_type,double>::value)) {
    \n-
    263 condition_estimate_ = false;
    \n-
    264 std::cerr << "WARNING: Condition estimate was disabled. It is only available for double and float field types!" << std::endl;
    \n-
    265 }
    \n-
    266 }
    \n-
    \n-
    267
    \n-
    \n-
    279 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n-
    280 {
    \n-
    281 Iteration iteration(*this,res);
    \n-
    282 _prec->pre(x,b); // prepare preconditioner
    \n-
    283
    \n-
    284 _op->applyscaleadd(-1,x,b); // overwrite b with defect
    \n-
    285
    \n-
    286 real_type def = _sp->norm(b); // compute norm
    \n-
    287 if(iteration.step(0, def)){
    \n-
    288 _prec->post(x);
    \n-
    289 return;
    \n-
    290 }
    \n-
    291
    \n-
    292 X p(x); // the search direction
    \n-
    293 X q(x); // a temporary vector
    \n-
    294
    \n-
    295 // Remember lambda and beta values for condition estimate
    \n-
    296 std::vector<real_type> lambdas(0);
    \n-
    297 std::vector<real_type> betas(0);
    \n-
    298
    \n-
    299 // some local variables
    \n-
    300 field_type rho,rholast,lambda,alpha,beta;
    \n-
    301
    \n-
    302 // determine initial search direction
    \n-
    303 p = 0; // clear correction
    \n-
    304 _prec->apply(p,b); // apply preconditioner
    \n-
    305 rholast = _sp->dot(p,b); // orthogonalization
    \n-
    306
    \n-
    307 // the loop
    \n-
    308 int i=1;
    \n-
    309 for ( ; i<=_maxit; i++ )
    \n-
    310 {
    \n-
    311 // minimize in given search direction p
    \n-
    312 _op->apply(p,q); // q=Ap
    \n-
    313 alpha = _sp->dot(p,q); // scalar product
    \n-
    314 lambda = Simd::cond(def==field_type(0.), field_type(0.), rholast/alpha); // minimization
    \n-
    315 if constexpr (enableConditionEstimate)
    \n-
    316 if (condition_estimate_)
    \n-
    317 lambdas.push_back(std::real(lambda));
    \n-
    318 x.axpy(lambda,p); // update solution
    \n-
    319 b.axpy(-lambda,q); // update defect
    \n-
    320
    \n-
    321 // convergence test
    \n-
    322 def=_sp->norm(b); // comp defect norm
    \n-
    323 if(iteration.step(i, def))
    \n-
    324 break;
    \n-
    325
    \n-
    326 // determine new search direction
    \n-
    327 q = 0; // clear correction
    \n-
    328 _prec->apply(q,b); // apply preconditioner
    \n-
    329 rho = _sp->dot(q,b); // orthogonalization
    \n-
    330 beta = Simd::cond(def==field_type(0.), field_type(0.), rho/rholast); // scaling factor
    \n-
    331 if constexpr (enableConditionEstimate)
    \n-
    332 if (condition_estimate_)
    \n-
    333 betas.push_back(std::real(beta));
    \n-
    334 p *= beta; // scale old search direction
    \n-
    335 p += q; // orthogonalization with correction
    \n-
    336 rholast = rho; // remember rho for recurrence
    \n-
    337 }
    \n-
    338
    \n-
    339 _prec->post(x); // postprocess preconditioner
    \n-
    340
    \n-
    341 if (condition_estimate_) {
    \n-
    342#if HAVE_ARPACKPP
    \n-
    343 if constexpr (enableConditionEstimate) {
    \n-
    344 using std::sqrt;
    \n-
    345
    \n-
    346 // Build T matrix which has extreme eigenvalues approximating
    \n-
    347 // those of the original system
    \n-
    348 // (see Y. Saad, Iterative methods for sparse linear systems)
    \n-
    349
    \n-\n-
    351
    \n-
    352 for (auto row = T.createbegin(); row != T.createend(); ++row) {
    \n-
    353 if (row.index() > 0)
    \n-
    354 row.insert(row.index()-1);
    \n-
    355 row.insert(row.index());
    \n-
    356 if (row.index() < T.N() - 1)
    \n-
    357 row.insert(row.index()+1);
    \n-
    358 }
    \n-
    359 for (int row = 0; row < i; ++row) {
    \n-
    360 if (row > 0) {
    \n-
    361 T[row][row-1] = sqrt(betas[row-1]) / lambdas[row-1];
    \n-
    362 }
    \n-
    363
    \n-
    364 T[row][row] = 1.0 / lambdas[row];
    \n-
    365 if (row > 0) {
    \n-
    366 T[row][row] += betas[row-1] / lambdas[row-1];
    \n-
    367 }
    \n-
    368
    \n-
    369 if (row < i - 1) {
    \n-
    370 T[row][row+1] = sqrt(betas[row]) / lambdas[row];
    \n-
    371 }
    \n-
    372 }
    \n-
    373
    \n-
    374 // Compute largest and smallest eigenvalue of T matrix and return as estimate
    \n-\n-
    376
    \n-
    377 real_type eps = 0.0;
    \n-
    378 COND_VEC eigv;
    \n-
    379 real_type min_eigv, max_eigv;
    \n-
    380 arpack.computeSymMinMagnitude (eps, eigv, min_eigv);
    \n-
    381 arpack.computeSymMaxMagnitude (eps, eigv, max_eigv);
    \n-
    382
    \n-
    383 res.condition_estimate = max_eigv / min_eigv;
    \n-
    384
    \n-
    385 if (this->_verbose > 0) {
    \n-
    386 std::cout << "Min eigv estimate: " << Simd::io(min_eigv) << '\\n';
    \n-
    387 std::cout << "Max eigv estimate: " << Simd::io(max_eigv) << '\\n';
    \n-
    388 std::cout << "Condition estimate: "
    \n-
    389 << Simd::io(max_eigv / min_eigv) << std::endl;
    \n-
    390 }
    \n-
    391 }
    \n-
    392#else
    \n-
    393 std::cerr << "WARNING: Condition estimate was requested. This requires ARPACK, but ARPACK was not found!" << std::endl;
    \n-
    394#endif
    \n-
    395 }
    \n+
    235 static void stats([[maybe_unused]] const Matrix& matrix)
    \n+
    236 {}
    \n+
    237 };
    \n+
    238
    \n+
    239 template<class Matrix>
    \n+
    240 struct MatrixStats<Matrix,true>
    \n+
    241 {
    \n+
    \n+
    242 struct calc
    \n+
    243 {
    \n+
    244 typedef typename Matrix::size_type size_type;
    \n+
    245 typedef typename Matrix::row_type matrix_row;
    \n+
    246
    \n+
    \n+\n+
    248 {
    \n+
    249 min=std::numeric_limits<size_type>::max();
    \n+
    250 max=0;
    \n+
    251 sum=0;
    \n+
    252 }
    \n+
    \n+
    253
    \n+
    \n+
    254 void operator()(const matrix_row& row)
    \n+
    255 {
    \n+
    256 min=std::min(min, row.size());
    \n+
    257 max=std::max(max, row.size());
    \n+
    258 sum += row.size();
    \n+
    259 }
    \n+
    \n+
    260
    \n+\n+\n+\n+
    264 };
    \n+
    \n+
    268 static void stats(const Matrix& matrix)
    \n+
    269 {
    \n+
    270 calc c= for_each(matrix.begin(), matrix.end(), calc());
    \n+
    271 dinfo<<"Matrix row: min="<<c.min<<" max="<<c.max
    \n+
    272 <<" average="<<static_cast<double>(c.sum)/matrix.N()
    \n+
    273 <<std::endl;
    \n+
    274 }
    \n+
    275 };
    \n+
    276 };
    \n+
    \n+
    277
    \n+
    281 template<class T>
    \n+
    \n+
    282 class CoarsenCriterion : public T
    \n+
    283 {
    \n+
    284 public:
    \n+\n+
    290
    \n+
    \n+
    301 CoarsenCriterion(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2,
    \n+
    302 double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    \n+
    303 : AggregationCriterion(Dune::Amg::Parameters(maxLevel, coarsenTarget, minCoarsenRate, prolongDamp, accumulate))
    \n+
    304 {}
    \n+
    \n+
    305
    \n+
    \n+\n+
    307 : AggregationCriterion(parms)
    \n+
    308 {}
    \n+
    \n+
    309
    \n+
    310 };
    \n+
    \n+
    311
    \n+
    312 template<typename M, typename C1>
    \n+
    \n+
    313 bool repartitionAndDistributeMatrix([[maybe_unused]] const M& origMatrix,
    \n+
    314 [[maybe_unused]] std::shared_ptr<M> newMatrix,
    \n+
    315 [[maybe_unused]] SequentialInformation& origComm,
    \n+
    316 [[maybe_unused]] std::shared_ptr<SequentialInformation>& newComm,
    \n+\n+
    318 [[maybe_unused]] int nparts,
    \n+
    319 [[maybe_unused]] C1& criterion)
    \n+
    320 {
    \n+
    321 DUNE_THROW(NotImplemented, "Redistribution does not make sense in sequential code!");
    \n+
    322 }
    \n+
    \n+
    323
    \n+
    324
    \n+
    325 template<typename M, typename C, typename C1>
    \n+
    \n+
    326 bool repartitionAndDistributeMatrix(const M& origMatrix,
    \n+
    327 std::shared_ptr<M> newMatrix,
    \n+
    328 C& origComm,
    \n+
    329 std::shared_ptr<C>& newComm,
    \n+\n+
    331 int nparts, C1& criterion)
    \n+
    332 {
    \n+
    333 Timer time;
    \n+
    334#ifdef AMG_REPART_ON_COMM_GRAPH
    \n+
    335 // Done not repartition the matrix graph, but a graph of the communication scheme.
    \n+
    336 bool existentOnRedist=Dune::commGraphRepartition(origMatrix, origComm, nparts, newComm,
    \n+
    337 ri.getInterface(),
    \n+
    338 criterion.debugLevel()>1);
    \n+
    339
    \n+
    340#else
    \n+\n+\n+\n+\n+
    345 IdentityMap,
    \n+
    346 IdentityMap> PropertiesGraph;
    \n+
    347 MatrixGraph graph(origMatrix);
    \n+
    348 PropertiesGraph pgraph(graph);
    \n+
    349 buildDependency(pgraph, origMatrix, criterion, false);
    \n+
    350
    \n+
    351#ifdef DEBUG_REPART
    \n+
    352 if(origComm.communicator().rank()==0)
    \n+
    353 std::cout<<"Original matrix"<<std::endl;
    \n+
    354 origComm.communicator().barrier();
    \n+
    355 printGlobalSparseMatrix(origMatrix, origComm, std::cout);
    \n+
    356#endif
    \n+
    357 bool existentOnRedist=Dune::graphRepartition(pgraph, origComm, nparts,
    \n+
    358 newComm, ri.getInterface(),
    \n+
    359 criterion.debugLevel()>1);
    \n+
    360#endif // if else AMG_REPART
    \n+
    361
    \n+
    362 if(origComm.communicator().rank()==0 && criterion.debugLevel()>1)
    \n+
    363 std::cout<<"Repartitioning took "<<time.elapsed()<<" seconds."<<std::endl;
    \n+
    364
    \n+
    365 ri.setSetup();
    \n+
    366
    \n+
    367#ifdef DEBUG_REPART
    \n+
    368 ri.checkInterface(origComm.indexSet(), newComm->indexSet(), origComm.communicator());
    \n+
    369#endif
    \n+
    370
    \n+
    371 redistributeMatrix(const_cast<M&>(origMatrix), *newMatrix, origComm, *newComm, ri);
    \n+
    372
    \n+
    373#ifdef DEBUG_REPART
    \n+
    374 if(origComm.communicator().rank()==0)
    \n+
    375 std::cout<<"Original matrix"<<std::endl;
    \n+
    376 origComm.communicator().barrier();
    \n+
    377 if(newComm->communicator().size()>0)
    \n+
    378 printGlobalSparseMatrix(*newMatrix, *newComm, std::cout);
    \n+
    379 origComm.communicator().barrier();
    \n+
    380#endif
    \n+
    381
    \n+
    382 if(origComm.communicator().rank()==0 && criterion.debugLevel()>1)
    \n+
    383 std::cout<<"Redistributing matrix took "<<time.elapsed()<<" seconds."<<std::endl;
    \n+
    384 return existentOnRedist;
    \n+
    385
    \n+
    386 }
    \n+
    \n+
    387
    \n+
    388 template<class M, class IS, class A>
    \n+
    \n+
    389 MatrixHierarchy<M,IS,A>::MatrixHierarchy(std::shared_ptr<MatrixOperator> fineMatrix,
    \n+
    390 std::shared_ptr<ParallelInformation> pinfo)
    \n+
    391 : matrices_(fineMatrix),
    \n+
    392 parallelInformation_(pinfo)
    \n+
    393 {
    \n+
    394 if (SolverCategory::category(*fineMatrix) != SolverCategory::category(*pinfo))
    \n+
    395 DUNE_THROW(ISTLError, "MatrixOperator and ParallelInformation must belong to the same category!");
    \n
    396 }
    \n
    \n
    397
    \n-
    398 private:
    \n-
    399 bool condition_estimate_ = false;
    \n-
    400
    \n-
    401 // Matrix and vector types used for condition estimate
    \n-\n-\n-
    404
    \n-
    405 protected:
    \n-
    406 using IterativeSolver<X,X>::_op;
    \n-
    407 using IterativeSolver<X,X>::_prec;
    \n-
    408 using IterativeSolver<X,X>::_sp;
    \n-\n-
    410 using IterativeSolver<X,X>::_maxit;
    \n-
    411 using IterativeSolver<X,X>::_verbose;
    \n-\n-
    413 };
    \n-
    \n-
    414 DUNE_REGISTER_ITERATIVE_SOLVER("cgsolver", defaultIterativeSolverCreator<Dune::CGSolver>());
    \n-
    415
    \n-
    416 // Ronald Kriemanns BiCG-STAB implementation from Sumo
    \n-
    418 template<class X>
    \n-
    \n-
    419 class BiCGSTABSolver : public IterativeSolver<X,X> {
    \n-
    420 public:
    \n-\n-\n-\n-
    424 using typename IterativeSolver<X,X>::real_type;
    \n-
    425
    \n-
    426 // copy base class constructors
    \n-
    427 using IterativeSolver<X,X>::IterativeSolver;
    \n-
    428
    \n-
    429 // don't shadow four-argument version of apply defined in the base class
    \n-
    430 using IterativeSolver<X,X>::apply;
    \n-
    431
    \n-
    \n-
    439 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n-
    440 {
    \n-
    441 using std::abs;
    \n-
    442 const Simd::Scalar<real_type> EPSILON=1e-80;
    \n-
    443 using std::abs;
    \n-
    444 double it;
    \n-
    445 field_type rho, rho_new, alpha, beta, h, omega;
    \n-
    446 real_type norm;
    \n-
    447
    \n-
    448 //
    \n-
    449 // get vectors and matrix
    \n-
    450 //
    \n-
    451 X& r=b;
    \n-
    452 X p(x);
    \n-
    453 X v(x);
    \n-
    454 X t(x);
    \n-
    455 X y(x);
    \n-
    456 X rt(x);
    \n-
    457
    \n-
    458 //
    \n-
    459 // begin iteration
    \n-
    460 //
    \n-
    461
    \n-
    462 // r = r - Ax; rt = r
    \n-
    463 Iteration<double> iteration(*this,res);
    \n-
    464 _prec->pre(x,r); // prepare preconditioner
    \n-
    465
    \n-
    466 _op->applyscaleadd(-1,x,r); // overwrite b with defect
    \n-
    467
    \n-
    468 rt=r;
    \n-
    469
    \n-
    470 norm = _sp->norm(r);
    \n-
    471 if(iteration.step(0, norm)){
    \n-
    472 _prec->post(x);
    \n-
    473 return;
    \n-
    474 }
    \n-
    475 p=0;
    \n-
    476 v=0;
    \n-
    477
    \n-
    478 rho = 1;
    \n-
    479 alpha = 1;
    \n-
    480 omega = 1;
    \n-
    481
    \n-
    482 //
    \n-
    483 // iteration
    \n-
    484 //
    \n+
    398 template<class M, class IS, class A>
    \n+
    399 template<typename O, typename T>
    \n+
    \n+
    400 void MatrixHierarchy<M,IS,A>::build(const T& criterion)
    \n+
    401 {
    \n+
    402 prolongDamp_ = criterion.getProlongationDampingFactor();
    \n+
    403 typedef O OverlapFlags;
    \n+
    404 typedef typename ParallelMatrixHierarchy::Iterator MatIterator;
    \n+
    405 typedef typename ParallelInformationHierarchy::Iterator PInfoIterator;
    \n+
    406
    \n+
    407 static const int noints=(Dune::Amg::MAX_PROCESSES/4096>0) ? (Dune::Amg::MAX_PROCESSES/4096) : 1;
    \n+
    408
    \n+
    409 typedef bigunsignedint<sizeof(int)*8*noints> BIGINT;
    \n+\n+
    411 MatIterator mlevel = matrices_.finest();
    \n+
    412 MatrixStats<typename M::matrix_type,MINIMAL_DEBUG_LEVEL<=INFO_DEBUG_LEVEL>::stats(mlevel->getmat());
    \n+
    413
    \n+
    414 PInfoIterator infoLevel = parallelInformation_.finest();
    \n+
    415 BIGINT finenonzeros=countNonZeros(mlevel->getmat());
    \n+
    416 finenonzeros = infoLevel->communicator().sum(finenonzeros);
    \n+
    417 BIGINT allnonzeros = finenonzeros;
    \n+
    418
    \n+
    419
    \n+
    420 int level = 0;
    \n+
    421 int rank = 0;
    \n+
    422
    \n+
    423 BIGINT unknowns = mlevel->getmat().N();
    \n+
    424
    \n+
    425 unknowns = infoLevel->communicator().sum(unknowns);
    \n+
    426 double dunknowns=unknowns.todouble();
    \n+
    427 infoLevel->buildGlobalLookup(mlevel->getmat().N());
    \n+
    428 redistributes_.push_back(RedistributeInfoType());
    \n+
    429
    \n+
    430 for(; level < criterion.maxLevel(); ++level, ++mlevel) {
    \n+
    431 assert(matrices_.levels()==redistributes_.size());
    \n+
    432 rank = infoLevel->communicator().rank();
    \n+
    433 if(rank==0 && criterion.debugLevel()>1)
    \n+
    434 std::cout<<"Level "<<level<<" has "<<dunknowns<<" unknowns, "<<dunknowns/infoLevel->communicator().size()
    \n+
    435 <<" unknowns per proc (procs="<<infoLevel->communicator().size()<<")"<<std::endl;
    \n+
    436
    \n+
    437 MatrixOperator* matrix=&(*mlevel);
    \n+
    438 ParallelInformation* info =&(*infoLevel);
    \n+
    439
    \n+
    440 if((
    \n+
    441#if HAVE_PARMETIS
    \n+
    442 criterion.accumulate()==successiveAccu
    \n+
    443#else
    \n+
    444 false
    \n+
    445#endif
    \n+
    446 || (criterion.accumulate()==atOnceAccu
    \n+
    447 && dunknowns < 30*infoLevel->communicator().size()))
    \n+
    448 && infoLevel->communicator().size()>1 &&
    \n+
    449 dunknowns/infoLevel->communicator().size() <= criterion.coarsenTarget())
    \n+
    450 {
    \n+
    451 // accumulate to fewer processors
    \n+
    452 std::shared_ptr<Matrix> redistMat = std::make_shared<Matrix>();
    \n+
    453 std::shared_ptr<ParallelInformation> redistComm;
    \n+
    454 std::size_t nodomains = (std::size_t)std::ceil(dunknowns/(criterion.minAggregateSize()
    \n+
    455 *criterion.coarsenTarget()));
    \n+
    456 if( nodomains<=criterion.minAggregateSize()/2 ||
    \n+
    457 dunknowns <= criterion.coarsenTarget() )
    \n+
    458 nodomains=1;
    \n+
    459
    \n+
    460 bool existentOnNextLevel =
    \n+
    461 repartitionAndDistributeMatrix(mlevel->getmat(), redistMat, *infoLevel,
    \n+
    462 redistComm, redistributes_.back(), nodomains,
    \n+
    463 criterion);
    \n+
    464 BIGINT unknownsRedist = redistMat->N();
    \n+
    465 unknownsRedist = infoLevel->communicator().sum(unknownsRedist);
    \n+
    466 dunknowns= unknownsRedist.todouble();
    \n+
    467 if(redistComm->communicator().rank()==0 && criterion.debugLevel()>1)
    \n+
    468 std::cout<<"Level "<<level<<" (redistributed) has "<<dunknowns<<" unknowns, "<<dunknowns/redistComm->communicator().size()
    \n+
    469 <<" unknowns per proc (procs="<<redistComm->communicator().size()<<")"<<std::endl;
    \n+
    470 MatrixArgs args(redistMat, *redistComm);
    \n+
    471 mlevel.addRedistributed(ConstructionTraits<MatrixOperator>::construct(args));
    \n+
    472 assert(mlevel.isRedistributed());
    \n+
    473 infoLevel.addRedistributed(redistComm);
    \n+
    474 infoLevel->freeGlobalLookup();
    \n+
    475
    \n+
    476 if(!existentOnNextLevel)
    \n+
    477 // We do not hold any data on the redistributed partitioning
    \n+
    478 break;
    \n+
    479
    \n+
    480 // Work on the redistributed Matrix from now on
    \n+
    481 matrix = &(mlevel.getRedistributed());
    \n+
    482 info = &(infoLevel.getRedistributed());
    \n+
    483 info->buildGlobalLookup(matrix->getmat().N());
    \n+
    484 }
    \n
    485
    \n-
    486 for (it = 0.5; it < _maxit; it+=.5)
    \n-
    487 {
    \n-
    488 //
    \n-
    489 // preprocess, set vecsizes etc.
    \n-
    490 //
    \n-
    491
    \n-
    492 // rho_new = < rt , r >
    \n-
    493 rho_new = _sp->dot(rt,r);
    \n+
    486 rank = info->communicator().rank();
    \n+
    487 if(dunknowns <= criterion.coarsenTarget())
    \n+
    488 // No further coarsening needed
    \n+
    489 break;
    \n+
    490
    \n+\n+
    492 typedef typename GraphCreator::PropertiesGraph PropertiesGraph;
    \n+
    493 typedef typename GraphCreator::GraphTuple GraphTuple;
    \n
    494
    \n-
    495 // look if breakdown occurred
    \n-
    496 if (Simd::allTrue(abs(rho) <= EPSILON))
    \n-
    497 DUNE_THROW(SolverAbort,"breakdown in BiCGSTAB - rho "
    \n-
    498 << Simd::io(rho) << " <= EPSILON " << EPSILON
    \n-
    499 << " after " << it << " iterations");
    \n-
    500 if (Simd::allTrue(abs(omega) <= EPSILON))
    \n-
    501 DUNE_THROW(SolverAbort,"breakdown in BiCGSTAB - omega "
    \n-
    502 << Simd::io(omega) << " <= EPSILON " << EPSILON
    \n-
    503 << " after " << it << " iterations");
    \n+
    495 typedef typename PropertiesGraph::VertexDescriptor Vertex;
    \n+
    496
    \n+
    497 std::vector<bool> excluded(matrix->getmat().N(), false);
    \n+
    498
    \n+
    499 GraphTuple graphs = GraphCreator::create(*matrix, excluded, *info, OverlapFlags());
    \n+
    500
    \n+
    501 AggregatesMap* aggregatesMap=new AggregatesMap(std::get<1>(graphs)->maxVertex()+1);
    \n+
    502
    \n+
    503 aggregatesMaps_.push_back(aggregatesMap);
    \n
    504
    \n-
    505
    \n-
    506 if (it<1)
    \n-
    507 p = r;
    \n-
    508 else
    \n-
    509 {
    \n-
    510 beta = Simd::cond(norm==field_type(0.),
    \n-
    511 field_type(0.), // no need for orthogonalization if norm is already 0
    \n-
    512 ( rho_new / rho ) * ( alpha / omega ));
    \n-
    513 p.axpy(-omega,v); // p = r + beta (p - omega*v)
    \n-
    514 p *= beta;
    \n-
    515 p += r;
    \n-
    516 }
    \n-
    517
    \n-
    518 // y = W^-1 * p
    \n-
    519 y = 0;
    \n-
    520 _prec->apply(y,p); // apply preconditioner
    \n+
    505 Timer watch;
    \n+
    506 watch.reset();
    \n+
    507 auto [noAggregates, isoAggregates, oneAggregates, skippedAggregates] =
    \n+
    508 aggregatesMap->buildAggregates(matrix->getmat(), *(std::get<1>(graphs)), criterion, level==0);
    \n+
    509
    \n+
    510 if(rank==0 && criterion.debugLevel()>2)
    \n+
    511 std::cout<<" Have built "<<noAggregates<<" aggregates totally ("<<isoAggregates<<" isolated aggregates, "<<
    \n+
    512 oneAggregates<<" aggregates of one vertex, and skipped "<<
    \n+
    513 skippedAggregates<<" aggregates)."<<std::endl;
    \n+
    514#ifdef TEST_AGGLO
    \n+
    515 {
    \n+
    516 // calculate size of local matrix in the distributed direction
    \n+
    517 int start, end, overlapStart, overlapEnd;
    \n+
    518 int procs=info->communicator().rank();
    \n+
    519 int n = UNKNOWNS/procs; // number of unknowns per process
    \n+
    520 int bigger = UNKNOWNS%procs; // number of process with n+1 unknows
    \n
    521
    \n-
    522 // v = A * y
    \n-
    523 _op->apply(y,v);
    \n-
    524
    \n-
    525 // alpha = rho_new / < rt, v >
    \n-
    526 h = _sp->dot(rt,v);
    \n-
    527
    \n-
    528 if ( Simd::allTrue(abs(h) < EPSILON) )
    \n-
    529 DUNE_THROW(SolverAbort,"abs(h) < EPSILON in BiCGSTAB - abs(h) "
    \n-
    530 << Simd::io(abs(h)) << " < EPSILON " << EPSILON
    \n-
    531 << " after " << it << " iterations");
    \n-
    532
    \n-
    533 alpha = Simd::cond(norm==field_type(0.),
    \n-
    534 field_type(0.),
    \n-
    535 rho_new / h);
    \n+
    522 // Compute owner region
    \n+
    523 if(rank<bigger) {
    \n+
    524 start = rank*(n+1);
    \n+
    525 end = (rank+1)*(n+1);
    \n+
    526 }else{
    \n+
    527 start = bigger + rank * n;
    \n+
    528 end = bigger + (rank + 1) * n;
    \n+
    529 }
    \n+
    530
    \n+
    531 // Compute overlap region
    \n+
    532 if(start>0)
    \n+
    533 overlapStart = start - 1;
    \n+
    534 else
    \n+
    535 overlapStart = start;
    \n
    536
    \n-
    537 // apply first correction to x
    \n-
    538 // x <- x + alpha y
    \n-
    539 x.axpy(alpha,y);
    \n-
    540
    \n-
    541 // r = r - alpha*v
    \n-
    542 r.axpy(-alpha,v);
    \n-
    543
    \n-
    544 //
    \n-
    545 // test stop criteria
    \n-
    546 //
    \n-
    547
    \n-
    548 norm = _sp->norm(r);
    \n-
    549 if(iteration.step(it, norm)){
    \n-
    550 break;
    \n-
    551 }
    \n-
    552
    \n-
    553 it+=.5;
    \n-
    554
    \n-
    555 // y = W^-1 * r
    \n-
    556 y = 0;
    \n-
    557 _prec->apply(y,r);
    \n-
    558
    \n-
    559 // t = A * y
    \n-
    560 _op->apply(y,t);
    \n-
    561
    \n-
    562 // omega = < t, r > / < t, t >
    \n-
    563 h = _sp->dot(t,t);
    \n-
    564 omega = Simd::cond(norm==field_type(0.),
    \n-
    565 field_type(0.),
    \n-
    566 _sp->dot(t,r)/h);
    \n-
    567
    \n-
    568 // apply second correction to x
    \n-
    569 // x <- x + omega y
    \n-
    570 x.axpy(omega,y);
    \n-
    571
    \n-
    572 // r = s - omega*t (remember : r = s)
    \n-
    573 r.axpy(-omega,t);
    \n-
    574
    \n-
    575 rho = rho_new;
    \n-
    576
    \n-
    577 //
    \n-
    578 // test stop criteria
    \n-
    579 //
    \n-
    580
    \n-
    581 norm = _sp->norm(r);
    \n-
    582 if(iteration.step(it, norm)){
    \n-
    583 break;
    \n-
    584 }
    \n-
    585 } // end for
    \n-
    586
    \n-
    587 _prec->post(x); // postprocess preconditioner
    \n-
    588 }
    \n-
    \n-
    589
    \n-
    590 protected:
    \n-
    591 using IterativeSolver<X,X>::_op;
    \n-
    592 using IterativeSolver<X,X>::_prec;
    \n-
    593 using IterativeSolver<X,X>::_sp;
    \n-\n-
    595 using IterativeSolver<X,X>::_maxit;
    \n-
    596 using IterativeSolver<X,X>::_verbose;
    \n-
    597 template<class CountType>
    \n-\n-
    599 };
    \n-
    \n-
    600 DUNE_REGISTER_ITERATIVE_SOLVER("bicgstabsolver", defaultIterativeSolverCreator<Dune::BiCGSTABSolver>());
    \n-
    601
    \n-
    608 template<class X>
    \n-
    \n-
    609 class MINRESSolver : public IterativeSolver<X,X> {
    \n-
    610 public:
    \n-\n-\n-\n-
    614 using typename IterativeSolver<X,X>::real_type;
    \n+
    537 if(end<UNKNOWNS)
    \n+
    538 overlapEnd = end + 1;
    \n+
    539 else
    \n+
    540 overlapEnd = end;
    \n+
    541
    \n+
    542 assert((UNKNOWNS)*(overlapEnd-overlapStart)==aggregatesMap->noVertices());
    \n+
    543 for(int j=0; j< UNKNOWNS; ++j)
    \n+
    544 for(int i=0; i < UNKNOWNS; ++i)
    \n+
    545 {
    \n+
    546 if(i>=overlapStart && i<overlapEnd)
    \n+
    547 {
    \n+
    548 int no = (j/2)*((UNKNOWNS)/2)+i/2;
    \n+
    549 (*aggregatesMap)[j*(overlapEnd-overlapStart)+i-overlapStart]=no;
    \n+
    550 }
    \n+
    551 }
    \n+
    552 }
    \n+
    553#endif
    \n+
    554 if(criterion.debugLevel()>1 && info->communicator().rank()==0)
    \n+
    555 std::cout<<"aggregating finished."<<std::endl;
    \n+
    556
    \n+
    557 BIGINT gnoAggregates=noAggregates;
    \n+
    558 gnoAggregates = info->communicator().sum(gnoAggregates);
    \n+
    559 double dgnoAggregates = gnoAggregates.todouble();
    \n+
    560#ifdef TEST_AGGLO
    \n+
    561 BIGINT gnoAggregates=((UNKNOWNS)/2)*((UNKNOWNS)/2);
    \n+
    562#endif
    \n+
    563
    \n+
    564 if(criterion.debugLevel()>2 && rank==0)
    \n+
    565 std::cout << "Building "<<dgnoAggregates<<" aggregates took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n+
    566
    \n+
    567 if(dgnoAggregates==0 || dunknowns/dgnoAggregates<criterion.minCoarsenRate())
    \n+
    568 {
    \n+
    569 if(rank==0)
    \n+
    570 {
    \n+
    571 if(dgnoAggregates>0)
    \n+
    572 std::cerr << "Stopped coarsening because of rate breakdown "<<dunknowns<<"/"<<dgnoAggregates
    \n+
    573 <<"="<<dunknowns/dgnoAggregates<<"<"
    \n+
    574 <<criterion.minCoarsenRate()<<std::endl;
    \n+
    575 else
    \n+
    576 std::cerr<< "Could not build any aggregates. Probably no connected nodes."<<std::endl;
    \n+
    577 }
    \n+
    578 aggregatesMap->free();
    \n+
    579 delete aggregatesMap;
    \n+
    580 aggregatesMaps_.pop_back();
    \n+
    581
    \n+
    582 if(criterion.accumulate() && mlevel.isRedistributed() && info->communicator().size()>1) {
    \n+
    583 // coarse level matrix was already redistributed, but to more than 1 process
    \n+
    584 // Therefore need to delete the redistribution. Further down it will
    \n+
    585 // then be redistributed to 1 process
    \n+
    586 delete &(mlevel.getRedistributed().getmat());
    \n+
    587 mlevel.deleteRedistributed();
    \n+
    588 delete &(infoLevel.getRedistributed());
    \n+
    589 infoLevel.deleteRedistributed();
    \n+
    590 redistributes_.back().resetSetup();
    \n+
    591 }
    \n+
    592
    \n+
    593 break;
    \n+
    594 }
    \n+
    595 unknowns = noAggregates;
    \n+
    596 dunknowns = dgnoAggregates;
    \n+
    597
    \n+
    598 CommunicationArgs commargs(info->communicator(),info->category());
    \n+
    599 parallelInformation_.addCoarser(commargs);
    \n+
    600
    \n+
    601 ++infoLevel; // parallel information on coarse level
    \n+
    602
    \n+
    603 typename PropertyMapTypeSelector<VertexVisitedTag,PropertiesGraph>::Type visitedMap =
    \n+
    604 get(VertexVisitedTag(), *(std::get<1>(graphs)));
    \n+
    605
    \n+
    606 watch.reset();
    \n+\n+
    608 ::coarsen(*info,
    \n+
    609 *(std::get<1>(graphs)),
    \n+
    610 visitedMap,
    \n+
    611 *aggregatesMap,
    \n+
    612 *infoLevel,
    \n+
    613 noAggregates);
    \n+
    614 GraphCreator::free(graphs);
    \n
    615
    \n-
    616 // copy base class constructors
    \n-
    617 using IterativeSolver<X,X>::IterativeSolver;
    \n-
    618
    \n-
    619 // don't shadow four-argument version of apply defined in the base class
    \n-
    620 using IterativeSolver<X,X>::apply;
    \n-
    621
    \n-
    \n-
    627 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n-
    628 {
    \n-
    629 using std::sqrt;
    \n-
    630 using std::abs;
    \n-
    631 Iteration iteration(*this, res);
    \n-
    632 // prepare preconditioner
    \n-
    633 _prec->pre(x,b);
    \n-
    634
    \n-
    635 // overwrite rhs with defect
    \n-
    636 _op->applyscaleadd(-1.0,x,b); // b -= Ax
    \n-
    637
    \n-
    638 // some temporary vectors
    \n-
    639 X z(b), dummy(b);
    \n-
    640 z = 0.0;
    \n-
    641
    \n-
    642 // calculate preconditioned defect
    \n-
    643 _prec->apply(z,b); // r = W^-1 (b - Ax)
    \n-
    644 real_type def = _sp->norm(z);
    \n-
    645 if (iteration.step(0, def)){
    \n-
    646 _prec->post(x);
    \n-
    647 return;
    \n-
    648 }
    \n-
    649
    \n-
    650 // recurrence coefficients as computed in Lanczos algorithm
    \n-
    651 field_type alpha, beta;
    \n-
    652 // diagonal entries of givens rotation
    \n-
    653 std::array<real_type,2> c{{0.0,0.0}};
    \n-
    654 // off-diagonal entries of givens rotation
    \n-
    655 std::array<field_type,2> s{{0.0,0.0}};
    \n-
    656
    \n-
    657 // recurrence coefficients (column k of tridiag matrix T_k)
    \n-
    658 std::array<field_type,3> T{{0.0,0.0,0.0}};
    \n-
    659
    \n-
    660 // the rhs vector of the min problem
    \n-
    661 std::array<field_type,2> xi{{1.0,0.0}};
    \n+
    616 if(criterion.debugLevel()>2) {
    \n+
    617 if(rank==0)
    \n+
    618 std::cout<<"Coarsening of index sets took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n+
    619 }
    \n+
    620
    \n+
    621 watch.reset();
    \n+
    622
    \n+
    623 infoLevel->buildGlobalLookup(aggregates);
    \n+\n+
    625 *info,
    \n+
    626 infoLevel->globalLookup());
    \n+
    627
    \n+
    628
    \n+
    629 if(criterion.debugLevel()>2) {
    \n+
    630 if(rank==0)
    \n+
    631 std::cout<<"Communicating global aggregate numbers took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n+
    632 }
    \n+
    633
    \n+
    634 watch.reset();
    \n+
    635 std::vector<bool>& visited=excluded;
    \n+
    636
    \n+
    637 typedef std::vector<bool>::iterator Iterator;
    \n+
    638 typedef IteratorPropertyMap<Iterator, IdentityMap> VisitedMap2;
    \n+
    639 Iterator end = visited.end();
    \n+
    640 for(Iterator iter= visited.begin(); iter != end; ++iter)
    \n+
    641 *iter=false;
    \n+
    642
    \n+
    643 VisitedMap2 visitedMap2(visited.begin(), Dune::IdentityMap());
    \n+
    644
    \n+
    645 std::shared_ptr<typename MatrixOperator::matrix_type>
    \n+
    646 coarseMatrix(productBuilder.build(*(std::get<0>(graphs)), visitedMap2,
    \n+
    647 *info,
    \n+
    648 *aggregatesMap,
    \n+
    649 aggregates,
    \n+
    650 OverlapFlags()));
    \n+
    651 dverb<<"Building of sparsity pattern took "<<watch.elapsed()<<std::endl;
    \n+
    652 watch.reset();
    \n+
    653 info->freeGlobalLookup();
    \n+
    654
    \n+
    655 delete std::get<0>(graphs);
    \n+
    656 productBuilder.calculate(matrix->getmat(), *aggregatesMap, *coarseMatrix, *infoLevel, OverlapFlags());
    \n+
    657
    \n+
    658 if(criterion.debugLevel()>2) {
    \n+
    659 if(rank==0)
    \n+
    660 std::cout<<"Calculation entries of Galerkin product took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n+
    661 }
    \n
    662
    \n-
    663 // beta is real and positive in exact arithmetic
    \n-
    664 // since it is the norm of the basis vectors (in unpreconditioned case)
    \n-
    665 beta = sqrt(_sp->dot(b,z));
    \n-
    666 field_type beta0 = beta;
    \n-
    667
    \n-
    668 // the search directions
    \n-
    669 std::array<X,3> p{{b,b,b}};
    \n-
    670 p[0] = 0.0;
    \n-
    671 p[1] = 0.0;
    \n-
    672 p[2] = 0.0;
    \n+
    663 BIGINT nonzeros = countNonZeros(*coarseMatrix);
    \n+
    664 allnonzeros = allnonzeros + infoLevel->communicator().sum(nonzeros);
    \n+
    665 MatrixArgs args(coarseMatrix, *infoLevel);
    \n+
    666
    \n+
    667 matrices_.addCoarser(args);
    \n+
    668 redistributes_.push_back(RedistributeInfoType());
    \n+
    669 } // end level loop
    \n+
    670
    \n+
    671
    \n+
    672 infoLevel->freeGlobalLookup();
    \n
    673
    \n-
    674 // orthonormal basis vectors (in unpreconditioned case)
    \n-
    675 std::array<X,3> q{{b,b,b}};
    \n-
    676 q[0] = 0.0;
    \n-
    677 q[1] *= Simd::cond(def==field_type(0.),
    \n-
    678 field_type(0.),
    \n-
    679 real_type(1.0)/beta);
    \n-
    680 q[2] = 0.0;
    \n-
    681
    \n-
    682 z *= Simd::cond(def==field_type(0.),
    \n-
    683 field_type(0.),
    \n-
    684 real_type(1.0)/beta);
    \n-
    685
    \n-
    686 // the loop
    \n-
    687 int i = 1;
    \n-
    688 for( ; i<=_maxit; i++) {
    \n+
    674 built_=true;
    \n+
    675 AggregatesMap* aggregatesMap=new AggregatesMap(0);
    \n+
    676 aggregatesMaps_.push_back(aggregatesMap);
    \n+
    677
    \n+
    678 if(criterion.debugLevel()>0) {
    \n+
    679 if(level==criterion.maxLevel()) {
    \n+
    680 BIGINT unknownsLevel = mlevel->getmat().N();
    \n+
    681 unknownsLevel = infoLevel->communicator().sum(unknownsLevel);
    \n+
    682 double dunknownsLevel = unknownsLevel.todouble();
    \n+
    683 if(rank==0 && criterion.debugLevel()>1) {
    \n+
    684 std::cout<<"Level "<<level<<" has "<<dunknownsLevel<<" unknowns, "<<dunknownsLevel/infoLevel->communicator().size()
    \n+
    685 <<" unknowns per proc (procs="<<infoLevel->communicator().size()<<")"<<std::endl;
    \n+
    686 }
    \n+
    687 }
    \n+
    688 }
    \n
    689
    \n-
    690 dummy = z;
    \n-
    691 int i1 = i%3,
    \n-
    692 i0 = (i1+2)%3,
    \n-
    693 i2 = (i1+1)%3;
    \n-
    694
    \n-
    695 // symmetrically preconditioned Lanczos algorithm (see Greenbaum p.121)
    \n-
    696 _op->apply(z,q[i2]); // q[i2] = Az
    \n-
    697 q[i2].axpy(-beta,q[i0]);
    \n-
    698 // alpha is real since it is the diagonal entry of the hermitian tridiagonal matrix
    \n-
    699 // from the Lanczos Algorithm
    \n-
    700 // so the order in the scalar product doesn't matter even for the complex case
    \n-
    701 alpha = _sp->dot(z,q[i2]);
    \n-
    702 q[i2].axpy(-alpha,q[i1]);
    \n+
    690 if(criterion.accumulate() && !redistributes_.back().isSetup() &&
    \n+
    691 infoLevel->communicator().size()>1) {
    \n+
    692#if HAVE_MPI && !HAVE_PARMETIS
    \n+
    693 if(criterion.accumulate()==successiveAccu &&
    \n+
    694 infoLevel->communicator().rank()==0)
    \n+
    695 std::cerr<<"Successive accumulation of data on coarse levels only works with ParMETIS installed."
    \n+
    696 <<" Fell back to accumulation to one domain on coarsest level"<<std::endl;
    \n+
    697#endif
    \n+
    698
    \n+
    699 // accumulate to fewer processors
    \n+
    700 std::shared_ptr<Matrix> redistMat = std::make_shared<Matrix>();
    \n+
    701 std::shared_ptr<ParallelInformation> redistComm;
    \n+
    702 int nodomains = 1;
    \n
    703
    \n-
    704 z = 0.0;
    \n-
    705 _prec->apply(z,q[i2]);
    \n-
    706
    \n-
    707 // beta is real and positive in exact arithmetic
    \n-
    708 // since it is the norm of the basis vectors (in unpreconditioned case)
    \n-
    709 beta = sqrt(_sp->dot(q[i2],z));
    \n-
    710
    \n-
    711 q[i2] *= Simd::cond(def==field_type(0.),
    \n-
    712 field_type(0.),
    \n-
    713 real_type(1.0)/beta);
    \n-
    714 z *= Simd::cond(def==field_type(0.),
    \n-
    715 field_type(0.),
    \n-
    716 real_type(1.0)/beta);
    \n-
    717
    \n-
    718 // QR Factorization of recurrence coefficient matrix
    \n-
    719 // apply previous givens rotations to last column of T
    \n-
    720 T[1] = T[2];
    \n-
    721 if(i>2) {
    \n-
    722 T[0] = s[i%2]*T[1];
    \n-
    723 T[1] = c[i%2]*T[1];
    \n-
    724 }
    \n-
    725 if(i>1) {
    \n-
    726 T[2] = c[(i+1)%2]*alpha - s[(i+1)%2]*T[1];
    \n-
    727 T[1] = c[(i+1)%2]*T[1] + s[(i+1)%2]*alpha;
    \n-
    728 }
    \n-
    729 else
    \n-
    730 T[2] = alpha;
    \n-
    731
    \n-
    732 // update QR factorization
    \n-
    733 generateGivensRotation(T[2],beta,c[i%2],s[i%2]);
    \n-
    734 // to last column of T_k
    \n-
    735 T[2] = c[i%2]*T[2] + s[i%2]*beta;
    \n-
    736 // and to the rhs xi of the min problem
    \n-
    737 xi[i%2] = -s[i%2]*xi[(i+1)%2];
    \n-
    738 xi[(i+1)%2] *= c[i%2];
    \n-
    739
    \n-
    740 // compute correction direction
    \n-
    741 p[i2] = dummy;
    \n-
    742 p[i2].axpy(-T[1],p[i1]);
    \n-
    743 p[i2].axpy(-T[0],p[i0]);
    \n-
    744 p[i2] *= real_type(1.0)/T[2];
    \n-
    745
    \n-
    746 // apply correction/update solution
    \n-
    747 x.axpy(beta0*xi[(i+1)%2],p[i2]);
    \n-
    748
    \n-
    749 // remember beta_old
    \n-
    750 T[2] = beta;
    \n+
    704 repartitionAndDistributeMatrix(mlevel->getmat(), redistMat, *infoLevel,
    \n+
    705 redistComm, redistributes_.back(), nodomains,criterion);
    \n+
    706 MatrixArgs args(redistMat, *redistComm);
    \n+
    707 BIGINT unknownsRedist = redistMat->N();
    \n+
    708 unknownsRedist = infoLevel->communicator().sum(unknownsRedist);
    \n+
    709
    \n+
    710 if(redistComm->communicator().rank()==0 && criterion.debugLevel()>1) {
    \n+
    711 double dunknownsRedist = unknownsRedist.todouble();
    \n+
    712 std::cout<<"Level "<<level<<" redistributed has "<<dunknownsRedist<<" unknowns, "<<dunknownsRedist/redistComm->communicator().size()
    \n+
    713 <<" unknowns per proc (procs="<<redistComm->communicator().size()<<")"<<std::endl;
    \n+
    714 }
    \n+
    715 mlevel.addRedistributed(ConstructionTraits<MatrixOperator>::construct(args));
    \n+
    716 infoLevel.addRedistributed(redistComm);
    \n+
    717 infoLevel->freeGlobalLookup();
    \n+
    718 }
    \n+
    719
    \n+
    720 int levels = matrices_.levels();
    \n+
    721 maxlevels_ = parallelInformation_.finest()->communicator().max(levels);
    \n+
    722 assert(matrices_.levels()==redistributes_.size());
    \n+
    723 if(hasCoarsest() && rank==0 && criterion.debugLevel()>1)
    \n+
    724 std::cout<<"operator complexity: "<<allnonzeros.todouble()/finenonzeros.todouble()<<std::endl;
    \n+
    725
    \n+
    726 }
    \n+
    \n+
    727
    \n+
    728 template<class M, class IS, class A>
    \n+\n+
    \n+\n+
    731 {
    \n+
    732 return matrices_;
    \n+
    733 }
    \n+
    \n+
    734
    \n+
    735 template<class M, class IS, class A>
    \n+\n+
    \n+\n+
    738 {
    \n+
    739 return parallelInformation_;
    \n+
    740 }
    \n+
    \n+
    741
    \n+
    742 template<class M, class IS, class A>
    \n+
    \n+
    743 void MatrixHierarchy<M,IS,A>::getCoarsestAggregatesOnFinest(std::vector<std::size_t>& data) const
    \n+
    744 {
    \n+
    745 int levels=aggregatesMaps().size();
    \n+
    746 int maxlevels=parallelInformation_.finest()->communicator().max(levels);
    \n+
    747 std::size_t size=(*(aggregatesMaps().begin()))->noVertices();
    \n+
    748 // We need an auxiliary vector for the consecutive prolongation.
    \n+
    749 std::vector<std::size_t> tmp;
    \n+
    750 std::vector<std::size_t> *coarse, *fine;
    \n
    751
    \n-
    752 // check for convergence
    \n-
    753 // the last entry in the rhs of the min-problem is the residual
    \n-
    754 def = abs(beta0*xi[i%2]);
    \n-
    755 if(iteration.step(i, def)){
    \n-
    756 break;
    \n-
    757 }
    \n-
    758 } // end for
    \n-
    759
    \n-
    760 // postprocess preconditioner
    \n-
    761 _prec->post(x);
    \n-
    762 }
    \n-
    \n-
    763
    \n-
    764 private:
    \n+
    752 // make sure the allocated space suffices.
    \n+
    753 tmp.reserve(size);
    \n+
    754 data.reserve(size);
    \n+
    755
    \n+
    756 // Correctly assign coarse and fine for the first prolongation such that
    \n+
    757 // we end up in data in the end.
    \n+
    758 if(levels%2==0) {
    \n+
    759 coarse=&tmp;
    \n+
    760 fine=&data;
    \n+
    761 }else{
    \n+
    762 coarse=&data;
    \n+
    763 fine=&tmp;
    \n+
    764 }
    \n
    765
    \n-
    766 void generateGivensRotation(field_type &dx, field_type &dy, real_type &cs, field_type &sn)
    \n-
    767 {
    \n-
    768 using std::sqrt;
    \n-
    769 using std::abs;
    \n-
    770 using std::max;
    \n-
    771 using std::min;
    \n-
    772 const real_type eps = 1e-15;
    \n-
    773 real_type norm_dx = abs(dx);
    \n-
    774 real_type norm_dy = abs(dy);
    \n-
    775 real_type norm_max = max(norm_dx, norm_dy);
    \n-
    776 real_type norm_min = min(norm_dx, norm_dy);
    \n-
    777 real_type temp = norm_min/norm_max;
    \n-
    778 // we rewrite the code in a vectorizable fashion
    \n-
    779 cs = Simd::cond(norm_dy < eps,
    \n-
    780 real_type(1.0),
    \n-
    781 Simd::cond(norm_dx < eps,
    \n-
    782 real_type(0.0),
    \n-
    783 Simd::cond(norm_dy > norm_dx,
    \n-
    784 real_type(1.0)/sqrt(real_type(1.0) + temp*temp)*temp,
    \n-
    785 real_type(1.0)/sqrt(real_type(1.0) + temp*temp)
    \n-
    786 )));
    \n-
    787 sn = Simd::cond(norm_dy < eps,
    \n-
    788 field_type(0.0),
    \n-
    789 Simd::cond(norm_dx < eps,
    \n-
    790 field_type(1.0),
    \n-
    791 Simd::cond(norm_dy > norm_dx,
    \n-
    792 // dy and dx are real in exact arithmetic
    \n-
    793 // thus dx*dy is real so we can explicitly enforce it
    \n-
    794 field_type(1.0)/sqrt(real_type(1.0) + temp*temp)*dx*dy/norm_dx/norm_dy,
    \n-
    795 // dy and dx is real in exact arithmetic
    \n-
    796 // so we don't have to conjugate both of them
    \n-
    797 field_type(1.0)/sqrt(real_type(1.0) + temp*temp)*dy/dx
    \n-
    798 )));
    \n-
    799 }
    \n-
    800
    \n-
    801 protected:
    \n-
    802 using IterativeSolver<X,X>::_op;
    \n-
    803 using IterativeSolver<X,X>::_prec;
    \n-
    804 using IterativeSolver<X,X>::_sp;
    \n-
    805 using IterativeSolver<X,X>::_reduction;
    \n-
    806 using IterativeSolver<X,X>::_maxit;
    \n-
    807 using IterativeSolver<X,X>::_verbose;
    \n-\n-
    809 };
    \n-
    \n-
    810 DUNE_REGISTER_ITERATIVE_SOLVER("minressolver", defaultIterativeSolverCreator<Dune::MINRESSolver>());
    \n-
    811
    \n-
    825 template<class X, class Y=X, class F = Y>
    \n-
    \n-\n-
    827 {
    \n-
    828 public:
    \n-\n-\n-\n-
    832 using typename IterativeSolver<X,Y>::real_type;
    \n-
    833
    \n-
    834 protected:
    \n-\n-
    836
    \n-\n-\n-
    841
    \n-
    842 public:
    \n-
    843
    \n-
    \n-
    850 RestartedGMResSolver (const LinearOperator<X,Y>& op, Preconditioner<X,Y>& prec, scalar_real_type reduction, int restart, int maxit, int verbose) :
    \n-
    851 IterativeSolver<X,Y>::IterativeSolver(op,prec,reduction,maxit,verbose),
    \n-
    852 _restart(restart)
    \n-
    853 {}
    \n-
    \n-
    854
    \n-
    \n-
    861 RestartedGMResSolver (const LinearOperator<X,Y>& op, const ScalarProduct<X>& sp, Preconditioner<X,Y>& prec, scalar_real_type reduction, int restart, int maxit, int verbose) :
    \n-
    862 IterativeSolver<X,Y>::IterativeSolver(op,sp,prec,reduction,maxit,verbose),
    \n-
    863 _restart(restart)
    \n-
    864 {}
    \n+
    766 // Number the unknowns on the coarsest level consecutively for each process.
    \n+
    767 if(levels==maxlevels) {
    \n+
    768 const AggregatesMap& map = *(*(++aggregatesMaps().rbegin()));
    \n+
    769 std::size_t m=0;
    \n+
    770
    \n+
    771 for(typename AggregatesMap::const_iterator iter = map.begin(); iter != map.end(); ++iter)
    \n+
    772 if(*iter< AggregatesMap::ISOLATED)
    \n+
    773 m=std::max(*iter,m);
    \n+
    774
    \n+
    775 coarse->resize(m+1);
    \n+
    776 std::size_t i=0;
    \n+
    777 srand((unsigned)std::clock());
    \n+
    778 std::set<size_t> used;
    \n+
    779 for(typename std::vector<std::size_t>::iterator iter=coarse->begin(); iter != coarse->end();
    \n+
    780 ++iter, ++i)
    \n+
    781 {
    \n+
    782 std::pair<std::set<std::size_t>::iterator,bool> ibpair
    \n+
    783 = used.insert(static_cast<std::size_t>((((double)rand())/(RAND_MAX+1.0)))*coarse->size());
    \n+
    784
    \n+
    785 while(!ibpair.second)
    \n+
    786 ibpair = used.insert(static_cast<std::size_t>((((double)rand())/(RAND_MAX+1.0))*coarse->size()));
    \n+
    787 *iter=*(ibpair.first);
    \n+
    788 }
    \n+
    789 }
    \n+
    790
    \n+
    791 typename ParallelInformationHierarchy::Iterator pinfo = parallelInformation().coarsest();
    \n+
    792 --pinfo;
    \n+
    793
    \n+
    794 // Now consecutively project the numbers to the finest level.
    \n+
    795 for(typename AggregatesMapList::const_reverse_iterator aggregates=++aggregatesMaps().rbegin();
    \n+
    796 aggregates != aggregatesMaps().rend(); ++aggregates,--levels) {
    \n+
    797
    \n+
    798 fine->resize((*aggregates)->noVertices());
    \n+
    799 fine->assign(fine->size(), 0);
    \n+\n+
    801 ::prolongateVector(*(*aggregates), *coarse, *fine, static_cast<std::size_t>(1), *pinfo);
    \n+
    802 --pinfo;
    \n+
    803 std::swap(coarse, fine);
    \n+
    804 }
    \n+
    805
    \n+
    806 // Assertion to check that we really projected to data on the last step.
    \n+
    807 assert(coarse==&data);
    \n+
    808 }
    \n+
    \n+
    809
    \n+
    810 template<class M, class IS, class A>
    \n+\n+
    \n+\n+
    813 {
    \n+
    814 return aggregatesMaps_;
    \n+
    815 }
    \n+
    \n+
    816 template<class M, class IS, class A>
    \n+\n+
    \n+\n+
    819 {
    \n+
    820 return redistributes_;
    \n+
    821 }
    \n+
    \n+
    822
    \n+
    823 template<class M, class IS, class A>
    \n+
    \n+\n+
    825 {
    \n+
    826 typedef typename AggregatesMapList::reverse_iterator AggregatesMapIterator;
    \n+
    827 typedef typename ParallelMatrixHierarchy::Iterator Iterator;
    \n+
    828 typedef typename ParallelInformationHierarchy::Iterator InfoIterator;
    \n+
    829
    \n+
    830 AggregatesMapIterator amap = aggregatesMaps_.rbegin();
    \n+
    831 InfoIterator info = parallelInformation_.coarsest();
    \n+
    832 for(Iterator level=matrices_.coarsest(), finest=matrices_.finest(); level != finest; --level, --info, ++amap) {
    \n+
    833 (*amap)->free();
    \n+
    834 delete *amap;
    \n+
    835 }
    \n+
    836 delete *amap;
    \n+
    837 }
    \n+
    \n+
    838
    \n+
    839 template<class M, class IS, class A>
    \n+
    840 template<class V, class BA, class TA>
    \n+
    \n+\n+
    842 {
    \n+
    843 assert(hierarchy.levels()==1);
    \n+
    844 typedef typename ParallelMatrixHierarchy::ConstIterator Iterator;
    \n+
    845 typedef typename RedistributeInfoList::const_iterator RIter;
    \n+
    846 RIter redist = redistributes_.begin();
    \n+
    847
    \n+
    848 Iterator matrix = matrices_.finest(), coarsest = matrices_.coarsest();
    \n+
    849 int level=0;
    \n+
    850 if(redist->isSetup())
    \n+
    851 hierarchy.addRedistributedOnCoarsest(matrix.getRedistributed().getmat().N());
    \n+
    852 Dune::dvverb<<"Level "<<level<<" has "<<matrices_.finest()->getmat().N()<<" unknowns!"<<std::endl;
    \n+
    853
    \n+
    854 while(matrix != coarsest) {
    \n+
    855 ++matrix; ++level; ++redist;
    \n+
    856 Dune::dvverb<<"Level "<<level<<" has "<<matrix->getmat().N()<<" unknowns!"<<std::endl;
    \n+
    857
    \n+
    858 hierarchy.addCoarser(matrix->getmat().N());
    \n+
    859 if(redist->isSetup())
    \n+
    860 hierarchy.addRedistributedOnCoarsest(matrix.getRedistributed().getmat().N());
    \n+
    861
    \n+
    862 }
    \n+
    863
    \n+
    864 }
    \n
    \n
    865
    \n-
    \n-
    878 RestartedGMResSolver (std::shared_ptr<const LinearOperator<X,Y> > op, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n-
    879 IterativeSolver<X,Y>::IterativeSolver(op,prec,configuration),
    \n-
    880 _restart(configuration.get<int>("restart"))
    \n-
    881 {}
    \n-
    \n-
    882
    \n-
    \n-
    883 RestartedGMResSolver (std::shared_ptr<const LinearOperator<X,Y> > op, std::shared_ptr<const ScalarProduct<X> > sp, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n-
    884 IterativeSolver<X,Y>::IterativeSolver(op,sp,prec,configuration),
    \n-
    885 _restart(configuration.get<int>("restart"))
    \n-
    886 {}
    \n-
    \n-
    887
    \n-
    \n-
    894 RestartedGMResSolver (std::shared_ptr<const LinearOperator<X,Y>> op,
    \n-
    895 std::shared_ptr<const ScalarProduct<X>> sp,
    \n-
    896 std::shared_ptr<Preconditioner<X,Y>> prec,
    \n-
    897 scalar_real_type reduction, int restart, int maxit, int verbose) :
    \n-
    898 IterativeSolver<X,Y>::IterativeSolver(op,sp,prec,reduction,maxit,verbose),
    \n-
    899 _restart(restart)
    \n-
    900 {}
    \n-
    \n-
    901
    \n-
    \n-
    910 virtual void apply (X& x, Y& b, InverseOperatorResult& res)
    \n-
    911 {
    \n-
    912 apply(x,b,Simd::max(_reduction),res);
    \n-
    913 }
    \n-
    \n-
    914
    \n-
    \n-
    923 virtual void apply (X& x, Y& b, [[maybe_unused]] double reduction, InverseOperatorResult& res)
    \n-
    924 {
    \n-
    925 using std::abs;
    \n-
    926 const Simd::Scalar<real_type> EPSILON = 1e-80;
    \n-
    927 const int m = _restart;
    \n-
    928 real_type norm = 0.0;
    \n-
    929 int j = 1;
    \n-
    930 std::vector<field_type,fAlloc> s(m+1), sn(m);
    \n-
    931 std::vector<real_type,rAlloc> cs(m);
    \n-
    932 // need copy of rhs if GMRes has to be restarted
    \n-
    933 Y b2(b);
    \n-
    934 // helper vector
    \n-
    935 Y w(b);
    \n-
    936 std::vector< std::vector<field_type,fAlloc> > H(m+1,s);
    \n-
    937 std::vector<F> v(m+1,b);
    \n+
    866 template<class M, class IS, class A>
    \n+
    867 template<class S, class TA>
    \n+
    \n+\n+
    869 const typename SmootherTraits<S>::Arguments& sargs) const
    \n+
    870 {
    \n+
    871 assert(smoothers.levels()==0);
    \n+
    872 typedef typename ParallelMatrixHierarchy::ConstIterator MatrixIterator;
    \n+
    873 typedef typename ParallelInformationHierarchy::ConstIterator PinfoIterator;
    \n+
    874 typedef typename AggregatesMapList::const_iterator AggregatesIterator;
    \n+
    875
    \n+\n+
    877 cargs.setArgs(sargs);
    \n+
    878 PinfoIterator pinfo = parallelInformation_.finest();
    \n+
    879 AggregatesIterator aggregates = aggregatesMaps_.begin();
    \n+
    880 int level=0;
    \n+
    881 for(MatrixIterator matrix = matrices_.finest(), coarsest = matrices_.coarsest();
    \n+
    882 matrix != coarsest; ++matrix, ++pinfo, ++aggregates, ++level) {
    \n+
    883 cargs.setMatrix(matrix->getmat(), **aggregates);
    \n+
    884 cargs.setComm(*pinfo);
    \n+
    885 smoothers.addCoarser(cargs);
    \n+
    886 }
    \n+
    887 if(maxlevels()>levels()) {
    \n+
    888 // This is not the globally coarsest level and therefore smoothing is needed
    \n+
    889 cargs.setMatrix(matrices_.coarsest()->getmat(), **aggregates);
    \n+
    890 cargs.setComm(*pinfo);
    \n+
    891 smoothers.addCoarser(cargs);
    \n+
    892 ++level;
    \n+
    893 }
    \n+
    894 }
    \n+
    \n+
    895
    \n+
    896 template<class M, class IS, class A>
    \n+
    897 template<class F>
    \n+
    \n+\n+
    899 {
    \n+
    900 typedef typename AggregatesMapList::iterator AggregatesMapIterator;
    \n+
    901 typedef typename ParallelMatrixHierarchy::Iterator Iterator;
    \n+
    902 typedef typename ParallelInformationHierarchy::Iterator InfoIterator;
    \n+
    903
    \n+
    904 AggregatesMapIterator amap = aggregatesMaps_.begin();
    \n+
    905 BaseGalerkinProduct productBuilder;
    \n+
    906 InfoIterator info = parallelInformation_.finest();
    \n+
    907 typename RedistributeInfoList::iterator riIter = redistributes_.begin();
    \n+
    908 Iterator level = matrices_.finest(), coarsest=matrices_.coarsest();
    \n+
    909 if(level.isRedistributed()) {
    \n+
    910 info->buildGlobalLookup(level->getmat().N());
    \n+
    911 redistributeMatrixEntries(const_cast<Matrix&>(level->getmat()),
    \n+
    912 const_cast<Matrix&>(level.getRedistributed().getmat()),
    \n+
    913 *info,info.getRedistributed(), *riIter);
    \n+
    914 info->freeGlobalLookup();
    \n+
    915 }
    \n+
    916
    \n+
    917 for(; level!=coarsest; ++amap) {
    \n+
    918 const Matrix& fine = (level.isRedistributed() ? level.getRedistributed() : *level).getmat();
    \n+
    919 ++level;
    \n+
    920 ++info;
    \n+
    921 ++riIter;
    \n+
    922 productBuilder.calculate(fine, *(*amap), const_cast<Matrix&>(level->getmat()), *info, copyFlags);
    \n+
    923 if(level.isRedistributed()) {
    \n+
    924 info->buildGlobalLookup(level->getmat().N());
    \n+
    925 redistributeMatrixEntries(const_cast<Matrix&>(level->getmat()),
    \n+
    926 const_cast<Matrix&>(level.getRedistributed().getmat()), *info,
    \n+
    927 info.getRedistributed(), *riIter);
    \n+
    928 info->freeGlobalLookup();
    \n+
    929 }
    \n+
    930 }
    \n+
    931 }
    \n+
    \n+
    932
    \n+
    933 template<class M, class IS, class A>
    \n+
    \n+\n+
    935 {
    \n+
    936 return matrices_.levels();
    \n+
    937 }
    \n+
    \n
    938
    \n-
    939 Iteration iteration(*this,res);
    \n-
    940
    \n-
    941 // clear solver statistics and set res.converged to false
    \n-
    942 _prec->pre(x,b);
    \n-
    943
    \n-
    944 // calculate defect and overwrite rhs with it
    \n-
    945 _op->applyscaleadd(-1.0,x,b); // b -= Ax
    \n-
    946 // calculate preconditioned defect
    \n-
    947 v[0] = 0.0; _prec->apply(v[0],b); // r = W^-1 b
    \n-
    948 norm = _sp->norm(v[0]);
    \n-
    949 if(iteration.step(0, norm)){
    \n-
    950 _prec->post(x);
    \n-
    951 return;
    \n-
    952 }
    \n-
    953
    \n-
    954 while(j <= _maxit && res.converged != true) {
    \n-
    955
    \n-
    956 int i = 0;
    \n-
    957 v[0] *= Simd::cond(norm==real_type(0.),
    \n-
    958 real_type(0.),
    \n-
    959 real_type(1.0)/norm);
    \n-
    960 s[0] = norm;
    \n-
    961 for(i=1; i<m+1; i++)
    \n-
    962 s[i] = 0.0;
    \n-
    963
    \n-
    964 for(i=0; i < m && j <= _maxit && res.converged != true; i++, j++) {
    \n-
    965 w = 0.0;
    \n-
    966 // use v[i+1] as temporary vector
    \n-
    967 v[i+1] = 0.0;
    \n-
    968 // do Arnoldi algorithm
    \n-
    969 _op->apply(v[i],v[i+1]);
    \n-
    970 _prec->apply(w,v[i+1]);
    \n-
    971 for(int k=0; k<i+1; k++) {
    \n-
    972 // notice that _sp->dot(v[k],w) = v[k]\\adjoint w
    \n-
    973 // so one has to pay attention to the order
    \n-
    974 // in the scalar product for the complex case
    \n-
    975 // doing the modified Gram-Schmidt algorithm
    \n-
    976 H[k][i] = _sp->dot(v[k],w);
    \n-
    977 // w -= H[k][i] * v[k]
    \n-
    978 w.axpy(-H[k][i],v[k]);
    \n-
    979 }
    \n-
    980 H[i+1][i] = _sp->norm(w);
    \n-
    981 if(Simd::allTrue(abs(H[i+1][i]) < EPSILON))
    \n-
    982 DUNE_THROW(SolverAbort,
    \n-
    983 "breakdown in GMRes - |w| == 0.0 after " << j << " iterations");
    \n-
    984
    \n-
    985 // normalize new vector
    \n-
    986 v[i+1] = w;
    \n-
    987 v[i+1] *= Simd::cond(norm==real_type(0.),
    \n-
    988 field_type(0.),
    \n-
    989 real_type(1.0)/H[i+1][i]);
    \n-
    990
    \n-
    991 // update QR factorization
    \n-
    992 for(int k=0; k<i; k++)
    \n-
    993 applyPlaneRotation(H[k][i],H[k+1][i],cs[k],sn[k]);
    \n-
    994
    \n-
    995 // compute new givens rotation
    \n-
    996 generatePlaneRotation(H[i][i],H[i+1][i],cs[i],sn[i]);
    \n-
    997 // finish updating QR factorization
    \n-
    998 applyPlaneRotation(H[i][i],H[i+1][i],cs[i],sn[i]);
    \n-
    999 applyPlaneRotation(s[i],s[i+1],cs[i],sn[i]);
    \n-
    1000
    \n-
    1001 // norm of the defect is the last component the vector s
    \n-
    1002 norm = abs(s[i+1]);
    \n-
    1003
    \n-
    1004 iteration.step(j, norm);
    \n-
    1005
    \n-
    1006 } // end for
    \n-
    1007
    \n-
    1008 // calculate update vector
    \n-
    1009 w = 0.0;
    \n-
    1010 update(w,i,H,s,v);
    \n-
    1011 // and current iterate
    \n-
    1012 x += w;
    \n-
    1013
    \n-
    1014 // restart GMRes if convergence was not achieved,
    \n-
    1015 // i.e. linear defect has not reached desired reduction
    \n-
    1016 // and if j < _maxit (do not restart on last iteration)
    \n-
    1017 if( res.converged != true && j < _maxit ) {
    \n-
    1018
    \n-
    1019 if(_verbose > 0)
    \n-
    1020 std::cout << "=== GMRes::restart" << std::endl;
    \n-
    1021 // get saved rhs
    \n-
    1022 b = b2;
    \n-
    1023 // calculate new defect
    \n-
    1024 _op->applyscaleadd(-1.0,x,b); // b -= Ax;
    \n-
    1025 // calculate preconditioned defect
    \n-
    1026 v[0] = 0.0;
    \n-
    1027 _prec->apply(v[0],b);
    \n-
    1028 norm = _sp->norm(v[0]);
    \n-
    1029 }
    \n-
    1030
    \n-
    1031 } //end while
    \n-
    1032
    \n-
    1033 // postprocess preconditioner
    \n-
    1034 _prec->post(x);
    \n-
    1035 }
    \n-
    \n-
    1036
    \n-
    1037 protected :
    \n-
    1038
    \n-
    \n-
    1039 void update(X& w, int i,
    \n-
    1040 const std::vector<std::vector<field_type,fAlloc> >& H,
    \n-
    1041 const std::vector<field_type,fAlloc>& s,
    \n-
    1042 const std::vector<X>& v) {
    \n-
    1043 // solution vector of the upper triangular system
    \n-
    1044 std::vector<field_type,fAlloc> y(s);
    \n-
    1045
    \n-
    1046 // backsolve
    \n-
    1047 for(int a=i-1; a>=0; a--) {
    \n-
    1048 field_type rhs(s[a]);
    \n-
    1049 for(int b=a+1; b<i; b++)
    \n-
    1050 rhs -= H[a][b]*y[b];
    \n-
    1051 y[a] = Simd::cond(rhs==field_type(0.),
    \n-
    1052 field_type(0.),
    \n-
    1053 rhs/H[a][a]);
    \n-
    1054
    \n-
    1055 // compute update on the fly
    \n-
    1056 // w += y[a]*v[a]
    \n-
    1057 w.axpy(y[a],v[a]);
    \n-
    1058 }
    \n-
    1059 }
    \n-
    \n-
    1060
    \n-
    1061 template<typename T>
    \n-
    \n-
    1062 typename std::enable_if<std::is_same<field_type,real_type>::value,T>::type conjugate(const T& t) {
    \n-
    1063 return t;
    \n-
    1064 }
    \n-
    \n-
    1065
    \n-
    1066 template<typename T>
    \n-
    \n-
    1067 typename std::enable_if<!std::is_same<field_type,real_type>::value,T>::type conjugate(const T& t) {
    \n-
    1068 using std::conj;
    \n-
    1069 return conj(t);
    \n-
    1070 }
    \n-
    \n-
    1071
    \n-
    1072 void
    \n-
    \n-\n-
    1074 {
    \n-
    1075 using std::sqrt;
    \n-
    1076 using std::abs;
    \n-
    1077 using std::max;
    \n-
    1078 using std::min;
    \n-
    1079 const real_type eps = 1e-15;
    \n-
    1080 real_type norm_dx = abs(dx);
    \n-
    1081 real_type norm_dy = abs(dy);
    \n-
    1082 real_type norm_max = max(norm_dx, norm_dy);
    \n-
    1083 real_type norm_min = min(norm_dx, norm_dy);
    \n-
    1084 real_type temp = norm_min/norm_max;
    \n-
    1085 // we rewrite the code in a vectorizable fashion
    \n-
    1086 cs = Simd::cond(norm_dy < eps,
    \n-
    1087 real_type(1.0),
    \n-
    1088 Simd::cond(norm_dx < eps,
    \n-
    1089 real_type(0.0),
    \n-
    1090 Simd::cond(norm_dy > norm_dx,
    \n-
    1091 real_type(1.0)/sqrt(real_type(1.0) + temp*temp)*temp,
    \n-
    1092 real_type(1.0)/sqrt(real_type(1.0) + temp*temp)
    \n-
    1093 )));
    \n-
    1094 sn = Simd::cond(norm_dy < eps,
    \n-
    1095 field_type(0.0),
    \n-
    1096 Simd::cond(norm_dx < eps,
    \n-
    1097 field_type(1.0),
    \n-
    1098 Simd::cond(norm_dy > norm_dx,
    \n-
    1099 field_type(1.0)/sqrt(real_type(1.0) + temp*temp)*dx*conjugate(dy)/norm_dx/norm_dy,
    \n-
    1100 field_type(1.0)/sqrt(real_type(1.0) + temp*temp)*conjugate(dy/dx)
    \n-
    1101 )));
    \n-
    1102 }
    \n-
    \n-
    1103
    \n-
    1104
    \n-
    1105 void
    \n-
    \n-\n-
    1107 {
    \n-
    1108 field_type temp = cs * dx + sn * dy;
    \n-
    1109 dy = -conjugate(sn) * dx + cs * dy;
    \n-
    1110 dx = temp;
    \n-
    1111 }
    \n-
    \n-
    1112
    \n-
    1113 using IterativeSolver<X,Y>::_op;
    \n-
    1114 using IterativeSolver<X,Y>::_prec;
    \n-
    1115 using IterativeSolver<X,Y>::_sp;
    \n-
    1116 using IterativeSolver<X,Y>::_reduction;
    \n-
    1117 using IterativeSolver<X,Y>::_maxit;
    \n-
    1118 using IterativeSolver<X,Y>::_verbose;
    \n-\n-\n-
    1121 };
    \n-
    \n-
    1122 DUNE_REGISTER_ITERATIVE_SOLVER("restartedgmressolver", defaultIterativeSolverCreator<Dune::RestartedGMResSolver>());
    \n-
    1123
    \n-
    1137 template<class X, class Y=X, class F = Y>
    \n-
    \n-\n-
    1139 {
    \n-
    1140 public:
    \n-\n-\n-\n-\n-
    1145
    \n-
    1146 private:
    \n-\n-
    1148
    \n-
    1150 using fAlloc = typename RestartedGMResSolver<X,Y>::fAlloc;
    \n-
    1152 using rAlloc = typename RestartedGMResSolver<X,Y>::rAlloc;
    \n-
    1153
    \n-
    1154 public:
    \n-
    1155 // copy base class constructors
    \n-
    1156 using RestartedGMResSolver<X,Y>::RestartedGMResSolver;
    \n-
    1157
    \n-
    1158 // don't shadow four-argument version of apply defined in the base class
    \n-
    1159 using RestartedGMResSolver<X,Y>::apply;
    \n-
    1160
    \n-
    \n-
    1169 void apply (X& x, Y& b, [[maybe_unused]] double reduction, InverseOperatorResult& res) override
    \n-
    1170 {
    \n-
    1171 using std::abs;
    \n-
    1172 const Simd::Scalar<real_type> EPSILON = 1e-80;
    \n-
    1173 const int m = _restart;
    \n-
    1174 real_type norm = 0.0;
    \n-
    1175 int i, j = 1, k;
    \n-
    1176 std::vector<field_type,fAlloc> s(m+1), sn(m);
    \n-
    1177 std::vector<real_type,rAlloc> cs(m);
    \n-
    1178 // helper vector
    \n-
    1179 Y tmp(b);
    \n-
    1180 std::vector< std::vector<field_type,fAlloc> > H(m+1,s);
    \n-
    1181 std::vector<F> v(m+1,b);
    \n-
    1182 std::vector<X> w(m+1,b);
    \n-
    1183
    \n-
    1184 Iteration iteration(*this,res);
    \n-
    1185 // setup preconditioner if it does something in pre
    \n-
    1186
    \n-
    1187 // calculate residual and overwrite a copy of the rhs with it
    \n-
    1188 _prec->pre(x, b);
    \n-
    1189 v[0] = b;
    \n-
    1190 _op->applyscaleadd(-1.0, x, v[0]); // b -= Ax
    \n-
    1191
    \n-
    1192 norm = _sp->norm(v[0]); // the residual norm
    \n-
    1193 if(iteration.step(0, norm)){
    \n-
    1194 _prec->post(x);
    \n-
    1195 return;
    \n-
    1196 }
    \n-
    1197
    \n-
    1198 // start iterations
    \n-
    1199 res.converged = false;;
    \n-
    1200 while(j <= _maxit && res.converged != true)
    \n-
    1201 {
    \n-
    1202 v[0] *= (1.0 / norm);
    \n-
    1203 s[0] = norm;
    \n-
    1204 for(i=1; i<m+1; ++i)
    \n-
    1205 s[i] = 0.0;
    \n-
    1206
    \n-
    1207 // inner loop
    \n-
    1208 for(i=0; i < m && j <= _maxit && res.converged != true; i++, j++)
    \n-
    1209 {
    \n-
    1210 w[i] = 0.0;
    \n-
    1211 // compute wi = M^-1*vi (also called zi)
    \n-
    1212 _prec->apply(w[i], v[i]);
    \n-
    1213 // compute vi = A*wi
    \n-
    1214 // use v[i+1] as temporary vector for w
    \n-
    1215 _op->apply(w[i], v[i+1]);
    \n-
    1216 // do Arnoldi algorithm
    \n-
    1217 for(int kk=0; kk<i+1; kk++)
    \n-
    1218 {
    \n-
    1219 // notice that _sp->dot(v[k],v[i+1]) = v[k]\\adjoint v[i+1]
    \n-
    1220 // so one has to pay attention to the order
    \n-
    1221 // in the scalar product for the complex case
    \n-
    1222 // doing the modified Gram-Schmidt algorithm
    \n-
    1223 H[kk][i] = _sp->dot(v[kk],v[i+1]);
    \n-
    1224 // w -= H[k][i] * v[kk]
    \n-
    1225 v[i+1].axpy(-H[kk][i], v[kk]);
    \n-
    1226 }
    \n-
    1227 H[i+1][i] = _sp->norm(v[i+1]);
    \n-
    1228 if(Simd::allTrue(abs(H[i+1][i]) < EPSILON))
    \n-
    1229 DUNE_THROW(SolverAbort, "breakdown in fGMRes - |w| (-> "
    \n-
    1230 << w[i] << ") == 0.0 after "
    \n-
    1231 << j << " iterations");
    \n-
    1232
    \n-
    1233 // v[i+1] = w*1/H[i+1][i]
    \n-
    1234 v[i+1] *= real_type(1.0)/H[i+1][i];
    \n-
    1235
    \n-
    1236 // update QR factorization
    \n-
    1237 for(k=0; k<i; k++)
    \n-
    1238 this->applyPlaneRotation(H[k][i],H[k+1][i],cs[k],sn[k]);
    \n-
    1239
    \n-
    1240 // compute new givens rotation
    \n-
    1241 this->generatePlaneRotation(H[i][i],H[i+1][i],cs[i],sn[i]);
    \n-
    1242
    \n-
    1243 // finish updating QR factorization
    \n-
    1244 this->applyPlaneRotation(H[i][i],H[i+1][i],cs[i],sn[i]);
    \n-
    1245 this->applyPlaneRotation(s[i],s[i+1],cs[i],sn[i]);
    \n-
    1246
    \n-
    1247 // norm of the residual is the last component of vector s
    \n-
    1248 using std::abs;
    \n-
    1249 norm = abs(s[i+1]);
    \n-
    1250 iteration.step(j, norm);
    \n-
    1251 } // end inner for loop
    \n-
    1252
    \n-
    1253 // calculate update vector
    \n-
    1254 tmp = 0.0;
    \n-
    1255 this->update(tmp, i, H, s, w);
    \n-
    1256 // and update current iterate
    \n-
    1257 x += tmp;
    \n-
    1258
    \n-
    1259 // restart fGMRes if convergence was not achieved,
    \n-
    1260 // i.e. linear residual has not reached desired reduction
    \n-
    1261 // and if still j < _maxit (do not restart on last iteration)
    \n-
    1262 if( res.converged != true && j < _maxit)
    \n-
    1263 {
    \n-
    1264 if (_verbose > 0)
    \n-
    1265 std::cout << "=== fGMRes::restart" << std::endl;
    \n-
    1266 // get rhs
    \n-
    1267 v[0] = b;
    \n-
    1268 // calculate new defect
    \n-
    1269 _op->applyscaleadd(-1.0, x,v[0]); // b -= Ax;
    \n-
    1270 // calculate preconditioned defect
    \n-
    1271 norm = _sp->norm(v[0]); // update the residual norm
    \n-
    1272 }
    \n-
    1273
    \n-
    1274 } // end outer while loop
    \n-
    1275
    \n-
    1276 // post-process preconditioner
    \n-
    1277 _prec->post(x);
    \n-
    1278 }
    \n-
    \n-
    1279
    \n-
    1280private:
    \n-
    1281 using RestartedGMResSolver<X,Y>::_op;
    \n-
    1282 using RestartedGMResSolver<X,Y>::_prec;
    \n-
    1283 using RestartedGMResSolver<X,Y>::_sp;
    \n-\n-\n-\n-\n-
    1288 using Iteration = typename IterativeSolver<X,X>::template Iteration<unsigned int>;
    \n-
    1289 };
    \n-
    \n-
    1290 DUNE_REGISTER_ITERATIVE_SOLVER("restartedflexiblegmressolver", defaultIterativeSolverCreator<Dune::RestartedFlexibleGMResSolver>());
    \n-
    1291
    \n-
    1305 template<class X>
    \n-
    \n-\n-
    1307 {
    \n-
    1308 public:
    \n-
    1309 using typename IterativeSolver<X,X>::domain_type;
    \n-
    1310 using typename IterativeSolver<X,X>::range_type;
    \n-
    1311 using typename IterativeSolver<X,X>::field_type;
    \n-
    1312 using typename IterativeSolver<X,X>::real_type;
    \n-
    1313
    \n-
    1314 private:
    \n-\n-
    1316
    \n-\n-
    1319
    \n-
    1320 public:
    \n-
    1321
    \n-
    1322 // don't shadow four-argument version of apply defined in the base class
    \n-
    1323 using IterativeSolver<X,X>::apply;
    \n-
    1324
    \n-
    \n-
    1331 GeneralizedPCGSolver (const LinearOperator<X,X>& op, Preconditioner<X,X>& prec, scalar_real_type reduction, int maxit, int verbose, int restart = 10) :
    \n-
    1332 IterativeSolver<X,X>::IterativeSolver(op,prec,reduction,maxit,verbose),
    \n-
    1333 _restart(restart)
    \n-
    1334 {}
    \n-
    \n-
    1335
    \n-
    \n-
    1343 GeneralizedPCGSolver (const LinearOperator<X,X>& op, const ScalarProduct<X>& sp, Preconditioner<X,X>& prec, scalar_real_type reduction, int maxit, int verbose, int restart = 10) :
    \n-
    1344 IterativeSolver<X,X>::IterativeSolver(op,sp,prec,reduction,maxit,verbose),
    \n-
    1345 _restart(restart)
    \n-
    1346 {}
    \n-
    \n-
    1347
    \n-
    1348
    \n-
    \n-
    1361 GeneralizedPCGSolver (std::shared_ptr<const LinearOperator<X,X> > op, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n-
    1362 IterativeSolver<X,X>::IterativeSolver(op,prec,configuration),
    \n-
    1363 _restart(configuration.get<int>("restart"))
    \n-
    1364 {}
    \n-
    \n-
    1365
    \n-
    \n-
    1366 GeneralizedPCGSolver (std::shared_ptr<const LinearOperator<X,X> > op, std::shared_ptr<const ScalarProduct<X> > sp, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n-
    1367 IterativeSolver<X,X>::IterativeSolver(op,sp,prec,configuration),
    \n-
    1368 _restart(configuration.get<int>("restart"))
    \n-
    1369 {}
    \n-
    \n-
    \n-
    1377 GeneralizedPCGSolver (std::shared_ptr<const LinearOperator<X,X>> op,
    \n-
    1378 std::shared_ptr<const ScalarProduct<X>> sp,
    \n-
    1379 std::shared_ptr<Preconditioner<X,X>> prec,
    \n-
    1380 scalar_real_type reduction, int maxit, int verbose,
    \n-
    1381 int restart = 10) :
    \n-
    1382 IterativeSolver<X,X>::IterativeSolver(op,sp,prec,reduction,maxit,verbose),
    \n-
    1383 _restart(restart)
    \n-
    1384 {}
    \n-
    \n-
    1385
    \n-
    \n-
    1391 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n-
    1392 {
    \n-
    1393 Iteration iteration(*this, res);
    \n-
    1394 _prec->pre(x,b); // prepare preconditioner
    \n-
    1395 _op->applyscaleadd(-1,x,b); // overwrite b with defect
    \n-
    1396
    \n-
    1397 std::vector<std::shared_ptr<X> > p(_restart);
    \n-
    1398 std::vector<field_type,fAlloc> pp(_restart);
    \n-
    1399 X q(x); // a temporary vector
    \n-
    1400 X prec_res(x); // a temporary vector for preconditioner output
    \n-
    1401
    \n-
    1402 p[0].reset(new X(x));
    \n-
    1403
    \n-
    1404 real_type def = _sp->norm(b); // compute norm
    \n-
    1405 if(iteration.step(0, def)){
    \n-
    1406 _prec->post(x);
    \n-
    1407 return;
    \n-
    1408 }
    \n-
    1409 // some local variables
    \n-
    1410 field_type rho, lambda;
    \n-
    1411
    \n-
    1412 int i=0;
    \n-
    1413 int ii=0;
    \n-
    1414 // determine initial search direction
    \n-
    1415 *(p[0]) = 0; // clear correction
    \n-
    1416 _prec->apply(*(p[0]),b); // apply preconditioner
    \n-
    1417 rho = _sp->dot(*(p[0]),b); // orthogonalization
    \n-
    1418 _op->apply(*(p[0]),q); // q=Ap
    \n-
    1419 pp[0] = _sp->dot(*(p[0]),q); // scalar product
    \n-
    1420 lambda = rho/pp[0]; // minimization
    \n-
    1421 x.axpy(lambda,*(p[0])); // update solution
    \n-
    1422 b.axpy(-lambda,q); // update defect
    \n-
    1423
    \n-
    1424 // convergence test
    \n-
    1425 def=_sp->norm(b); // comp defect norm
    \n-
    1426 ++i;
    \n-
    1427 if(iteration.step(i, def)){
    \n-
    1428 _prec->post(x);
    \n-
    1429 return;
    \n-
    1430 }
    \n-
    1431
    \n-
    1432 while(i<_maxit) {
    \n-
    1433 // the loop
    \n-
    1434 int end=std::min(_restart, _maxit-i+1);
    \n-
    1435 for (ii=1; ii<end; ++ii )
    \n-
    1436 {
    \n-
    1437 //std::cout<<" ii="<<ii<<" i="<<i<<std::endl;
    \n-
    1438 // compute next conjugate direction
    \n-
    1439 prec_res = 0; // clear correction
    \n-
    1440 _prec->apply(prec_res,b); // apply preconditioner
    \n-
    1441
    \n-
    1442 p[ii].reset(new X(prec_res));
    \n-
    1443 _op->apply(prec_res, q);
    \n-
    1444
    \n-
    1445 for(int j=0; j<ii; ++j) {
    \n-
    1446 rho =_sp->dot(q,*(p[j]))/pp[j];
    \n-
    1447 p[ii]->axpy(-rho, *(p[j]));
    \n-
    1448 }
    \n-
    1449
    \n-
    1450 // minimize in given search direction
    \n-
    1451 _op->apply(*(p[ii]),q); // q=Ap
    \n-
    1452 pp[ii] = _sp->dot(*(p[ii]),q); // scalar product
    \n-
    1453 rho = _sp->dot(*(p[ii]),b); // orthogonalization
    \n-
    1454 lambda = rho/pp[ii]; // minimization
    \n-
    1455 x.axpy(lambda,*(p[ii])); // update solution
    \n-
    1456 b.axpy(-lambda,q); // update defect
    \n-
    1457
    \n-
    1458 // convergence test
    \n-
    1459 def = _sp->norm(b); // comp defect norm
    \n-
    1460
    \n-
    1461 ++i;
    \n-
    1462 iteration.step(i, def);
    \n-
    1463 }
    \n-
    1464 if(res.converged)
    \n-
    1465 break;
    \n-
    1466 if(end==_restart) {
    \n-
    1467 *(p[0])=*(p[_restart-1]);
    \n-
    1468 pp[0]=pp[_restart-1];
    \n-
    1469 }
    \n-
    1470 }
    \n-
    1471
    \n-
    1472 // postprocess preconditioner
    \n-
    1473 _prec->post(x);
    \n-
    1474
    \n-
    1475 }
    \n-
    \n-
    1476
    \n-
    1477 private:
    \n-
    1478 using IterativeSolver<X,X>::_op;
    \n-
    1479 using IterativeSolver<X,X>::_prec;
    \n-
    1480 using IterativeSolver<X,X>::_sp;
    \n-
    1481 using IterativeSolver<X,X>::_reduction;
    \n-
    1482 using IterativeSolver<X,X>::_maxit;
    \n-
    1483 using IterativeSolver<X,X>::_verbose;
    \n-
    1484 using Iteration = typename IterativeSolver<X,X>::template Iteration<unsigned int>;
    \n-
    1485 int _restart;
    \n-
    1486 };
    \n-
    \n-
    1487 DUNE_REGISTER_ITERATIVE_SOLVER("generalizedpcgsolver", defaultIterativeSolverCreator<Dune::GeneralizedPCGSolver>());
    \n-
    1488
    \n-
    1500 template<class X>
    \n-
    \n-\n-
    1502 public:
    \n-
    1503 using typename IterativeSolver<X,X>::domain_type;
    \n-
    1504 using typename IterativeSolver<X,X>::range_type;
    \n-
    1505 using typename IterativeSolver<X,X>::field_type;
    \n-
    1506 using typename IterativeSolver<X,X>::real_type;
    \n-
    1507
    \n-
    1508 private:
    \n-\n-
    1510
    \n-
    1511 public:
    \n-
    1512 // don't shadow four-argument version of apply defined in the base class
    \n-
    1513 using IterativeSolver<X,X>::apply;
    \n-
    \n-\n-
    1520 scalar_real_type reduction, int maxit, int verbose, int mmax = 10) : IterativeSolver<X,X>(op, prec, reduction, maxit, verbose), _mmax(mmax)
    \n-
    1521 {
    \n-
    1522 }
    \n-
    \n-
    1523
    \n-
    \n-\n-
    1530 scalar_real_type reduction, int maxit, int verbose, int mmax = 10) : IterativeSolver<X,X>(op, sp, prec, reduction, maxit, verbose), _mmax(mmax)
    \n-
    1531 {
    \n-
    1532 }
    \n-
    \n-
    1533
    \n-
    \n-
    1539 RestartedFCGSolver (std::shared_ptr<const LinearOperator<X,X>> op,
    \n-
    1540 std::shared_ptr<const ScalarProduct<X>> sp,
    \n-
    1541 std::shared_ptr<Preconditioner<X,X>> prec,
    \n-
    1542 scalar_real_type reduction, int maxit, int verbose,
    \n-
    1543 int mmax = 10)
    \n-
    1544 : IterativeSolver<X,X>(op, sp, prec, reduction, maxit, verbose), _mmax(mmax)
    \n-
    1545 {}
    \n-
    \n-
    1546
    \n-
    \n-
    1559 RestartedFCGSolver (std::shared_ptr<const LinearOperator<X,X>> op,
    \n-
    1560 std::shared_ptr<Preconditioner<X,X>> prec,
    \n-
    1561 const ParameterTree& config)
    \n-
    1562 : IterativeSolver<X,X>(op, prec, config), _mmax(config.get("mmax", 10))
    \n-
    1563 {}
    \n-
    \n-
    1564
    \n-
    \n-
    1565 RestartedFCGSolver (std::shared_ptr<const LinearOperator<X,X>> op,
    \n-
    1566 std::shared_ptr<const ScalarProduct<X>> sp,
    \n-
    1567 std::shared_ptr<Preconditioner<X,X>> prec,
    \n-
    1568 const ParameterTree& config)
    \n-
    1569 : IterativeSolver<X,X>(op, sp, prec, config), _mmax(config.get("mmax", 10))
    \n-
    1570 {}
    \n-
    \n-
    1571
    \n-
    \n-
    1584 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n-
    1585 {
    \n-\n-
    1587 res.clear();
    \n-
    1588 Iteration iteration(*this,res);
    \n-
    1589 _prec->pre(x,b); // prepare preconditioner
    \n-
    1590 _op->applyscaleadd(-1,x,b); // overwrite b with defect
    \n-
    1591
    \n-
    1592 //arrays for interim values:
    \n-
    1593 std::vector<X> d(_mmax+1, x); // array for directions
    \n-
    1594 std::vector<X> Ad(_mmax+1, x); // array for Ad[i]
    \n-
    1595 std::vector<field_type,rAlloc> ddotAd(_mmax+1,0); // array for <d[i],Ad[i]>
    \n-
    1596 X w(x);
    \n-
    1597
    \n-
    1598 real_type def = _sp->norm(b); // compute norm
    \n-
    1599 if(iteration.step(0, def)){
    \n-
    1600 _prec->post(x);
    \n-
    1601 return;
    \n-
    1602 }
    \n-
    1603
    \n-
    1604 // some local variables
    \n-
    1605 field_type alpha;
    \n-
    1606
    \n-
    1607 // the loop
    \n-
    1608 int i=1;
    \n-
    1609 int i_bounded=0;
    \n-
    1610 while(i<=_maxit && !res.converged) {
    \n-
    1611 for (; i_bounded <= _mmax && i<= _maxit; i_bounded++) {
    \n-
    1612 d[i_bounded] = 0; // reset search direction
    \n-
    1613 _prec->apply(d[i_bounded], b); // apply preconditioner
    \n-
    1614 w = d[i_bounded]; // copy of current d[i]
    \n-
    1615 // orthogonalization with previous directions
    \n-
    1616 orthogonalizations(i_bounded,Ad,w,ddotAd,d);
    \n-
    1617
    \n-
    1618 //saving interim values for future calculating
    \n-
    1619 _op->apply(d[i_bounded], Ad[i_bounded]); // save Ad[i]
    \n-
    1620 ddotAd[i_bounded]=_sp->dot(d[i_bounded],Ad[i_bounded]); // save <d[i],Ad[i]>
    \n-
    1621 alpha = _sp->dot(d[i_bounded], b)/ddotAd[i_bounded]; // <d[i],b>/<d[i],Ad[i]>
    \n-
    1622
    \n-
    1623 //update solution and defect
    \n-
    1624 x.axpy(alpha, d[i_bounded]);
    \n-
    1625 b.axpy(-alpha, Ad[i_bounded]);
    \n-
    1626
    \n-
    1627 // convergence test
    \n-
    1628 def = _sp->norm(b); // comp defect norm
    \n-
    1629
    \n-
    1630 iteration.step(i, def);
    \n-
    1631 i++;
    \n-
    1632 }
    \n-
    1633 //restart: exchange first and last stored values
    \n-
    1634 cycle(Ad,d,ddotAd,i_bounded);
    \n-
    1635 }
    \n-
    1636
    \n-
    1637 //correct i which is wrong if convergence was not achieved.
    \n-
    1638 i=std::min(_maxit,i);
    \n-
    1639
    \n-
    1640 _prec->post(x); // postprocess preconditioner
    \n-
    1641 }
    \n-
    \n-
    1642
    \n-
    1643 private:
    \n-
    1644 //This function is called every iteration to orthogonalize against the last search directions
    \n-
    1645 virtual void orthogonalizations(const int& i_bounded,const std::vector<X>& Ad, const X& w, const std::vector<field_type,ReboundAllocatorType<X,field_type>>& ddotAd,std::vector<X>& d) {
    \n-
    1646 // The RestartedFCGSolver uses only values with lower array index;
    \n-
    1647 for (int k = 0; k < i_bounded; k++) {
    \n-
    1648 d[i_bounded].axpy(-_sp->dot(Ad[k], w) / ddotAd[k], d[k]); // d[i] -= <<Ad[k],w>/<d[k],Ad[k]>>d[k]
    \n-
    1649 }
    \n-
    1650 }
    \n-
    1651
    \n-
    1652 // This function is called every mmax iterations to handle limited array sizes.
    \n-
    1653 virtual void cycle(std::vector<X>& Ad,std::vector<X>& d,std::vector<field_type,ReboundAllocatorType<X,field_type> >& ddotAd,int& i_bounded) {
    \n-
    1654 // Reset loop index and exchange the first and last arrays
    \n-
    1655 i_bounded = 1;
    \n-
    1656 std::swap(Ad[0], Ad[_mmax]);
    \n-
    1657 std::swap(d[0], d[_mmax]);
    \n-
    1658 std::swap(ddotAd[0], ddotAd[_mmax]);
    \n-
    1659 }
    \n-
    1660
    \n-
    1661 protected:
    \n-\n-
    1663 using IterativeSolver<X,X>::_op;
    \n-
    1664 using IterativeSolver<X,X>::_prec;
    \n-
    1665 using IterativeSolver<X,X>::_sp;
    \n-
    1666 using IterativeSolver<X,X>::_reduction;
    \n-
    1667 using IterativeSolver<X,X>::_maxit;
    \n-
    1668 using IterativeSolver<X,X>::_verbose;
    \n-\n-
    1670 };
    \n-
    \n-
    1671 DUNE_REGISTER_ITERATIVE_SOLVER("restartedfcgsolver", defaultIterativeSolverCreator<Dune::RestartedFCGSolver>());
    \n-
    1672
    \n-
    1679 template<class X>
    \n-
    \n-\n-
    1681 public:
    \n-\n-
    1683 using typename RestartedFCGSolver<X>::range_type;
    \n-
    1684 using typename RestartedFCGSolver<X>::field_type;
    \n-
    1685 using typename RestartedFCGSolver<X>::real_type;
    \n-
    1686
    \n-
    1687 // copy base class constructors
    \n-
    1688 using RestartedFCGSolver<X>::RestartedFCGSolver;
    \n-
    1689
    \n-
    1690 // don't shadow four-argument version of apply defined in the base class
    \n-\n-
    1692
    \n-
    1693 // just a minor part of the RestartedFCGSolver apply method will be modified
    \n-
    \n-
    1694 virtual void apply (X& x, X& b, InverseOperatorResult& res) override {
    \n-
    1695 // reset limiter of orthogonalization loop
    \n-
    1696 _k_limit = 0;
    \n-
    1697 this->RestartedFCGSolver<X>::apply(x,b,res);
    \n-
    1698 };
    \n-
    \n-
    1699
    \n-
    1700 private:
    \n-
    1701 // This function is called every iteration to orthogonalize against the last search directions.
    \n-
    1702 virtual void orthogonalizations(const int& i_bounded,const std::vector<X>& Ad, const X& w, const std::vector<field_type,ReboundAllocatorType<X,field_type>>& ddotAd,std::vector<X>& d) override {
    \n-
    1703 // This FCGSolver uses values with higher array indexes too, if existent.
    \n-
    1704 for (int k = 0; k < _k_limit; k++) {
    \n-
    1705 if(i_bounded!=k)
    \n-
    1706 d[i_bounded].axpy(-_sp->dot(Ad[k], w) / ddotAd[k], d[k]); // d[i] -= <<Ad[k],w>/<d[k],Ad[k]>>d[k]
    \n-
    1707 }
    \n-
    1708 // The loop limit increase, if array is not completely filled.
    \n-
    1709 if(_k_limit<=i_bounded)
    \n-
    1710 _k_limit++;
    \n-
    1711
    \n-
    1712 };
    \n-
    1713
    \n-
    1714 // This function is called every mmax iterations to handle limited array sizes.
    \n-
    1715 virtual void cycle(std::vector<X>& Ad, [[maybe_unused]] std::vector<X>& d, [[maybe_unused]] std::vector<field_type,ReboundAllocatorType<X,field_type> >& ddotAd,int& i_bounded) override {
    \n-
    1716 // Only the loop index i_bounded return to 0, if it reached mmax.
    \n-
    1717 i_bounded = 0;
    \n-
    1718 // Now all arrays are filled and the loop in void orthogonalizations can use the whole arrays.
    \n-
    1719 _k_limit = Ad.size();
    \n-
    1720 };
    \n-
    1721
    \n-
    1722 int _k_limit = 0;
    \n-
    1723
    \n-
    1724 protected:
    \n-\n-
    1726 using RestartedFCGSolver<X>::_op;
    \n-\n-
    1728 using RestartedFCGSolver<X>::_sp;
    \n-\n-\n-\n-
    1732 };
    \n-
    \n-
    1733 DUNE_REGISTER_ITERATIVE_SOLVER("completefcgsolver", defaultIterativeSolverCreator<Dune::CompleteFCGSolver>());
    \n-
    1735} // end namespace
    \n-
    1736
    \n-
    1737#endif
    \n-\n-
    #define DUNE_REGISTER_ITERATIVE_SOLVER(name,...)
    Definition solverregistry.hh:19
    \n-
    Define base class for scalar product and norm.
    \n-\n-
    Implementation of the BCRSMatrix class.
    \n-\n-\n-
    Define general, extensible interface for inverse operators.
    \n-
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n-\n+
    939 template<class M, class IS, class A>
    \n+
    \n+\n+
    941 {
    \n+
    942 return maxlevels_;
    \n+
    943 }
    \n+
    \n+
    944
    \n+
    945 template<class M, class IS, class A>
    \n+
    \n+\n+
    947 {
    \n+
    948 return levels()==maxlevels() &&
    \n+
    949 (!matrices_.coarsest().isRedistributed() ||matrices_.coarsest()->getmat().N()>0);
    \n+
    950 }
    \n+
    \n+
    951
    \n+
    952 template<class M, class IS, class A>
    \n+
    \n+\n+
    954 {
    \n+
    955 return built_;
    \n+
    956 }
    \n+
    \n+
    957
    \n+
    959 } // namespace Amg
    \n+
    960} // namespace Dune
    \n+
    961
    \n+
    962#endif // end DUNE_AMG_MATRIXHIERARCHY_HH
    \n+
    Functionality for redistributing a sparse matrix.
    \n+\n+
    Provides a classes representing the hierarchies in AMG.
    \n+
    Provdes class for identifying aggregates globally.
    \n+
    Classes for the generic construction and application of the smoothers.
    \n+
    Provides classes for the Coloring process of AMG.
    \n+
    Provides a class for building the index set and remote indices on the coarse level.
    \n+
    Provides classes for building the matrix graph.
    \n+
    Helper classes for the construction of classes without empty constructor.
    \n+
    Provides classes for initializing the link attributes of a matrix graph.
    \n+\n+
    Provides a class for building the galerkin product based on a aggregation scheme.
    \n+
    Prolongation and restriction for amg.
    \n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Some handy generic functions for ISTL matrices.
    \n+
    auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::value > *sfinae=nullptr)
    Get the number of nonzero fields in the matrix.
    Definition matrixutils.hh:119
    \n+
    const AggregatesMapList & aggregatesMaps() const
    Get the hierarchy of the mappings of the nodes onto aggregates.
    Definition matrixhierarchy.hh:812
    \n+
    bool isBuilt() const
    Whether the hierarchy was built.
    Definition matrixhierarchy.hh:953
    \n+
    bool hasCoarsest() const
    Definition matrixhierarchy.hh:946
    \n+
    std::size_t levels() const
    Get the number of levels in the hierarchy.
    Definition hierarchy.hh:322
    \n+
    std::size_t levels() const
    Get the number of levels in the hierarchy.
    Definition matrixhierarchy.hh:934
    \n+
    void addCoarser(Arguments &args)
    Add an element on a coarser level.
    Definition hierarchy.hh:334
    \n+
    const RedistributeInfoList & redistributeInformation() const
    Get the hierarchy of the information about redistributions,.
    Definition matrixhierarchy.hh:818
    \n+
    const ParallelInformationHierarchy & parallelInformation() const
    Get the hierarchy of the parallel data distribution information.
    Definition matrixhierarchy.hh:737
    \n+
    bool repartitionAndDistributeMatrix(const M &origMatrix, std::shared_ptr< M > newMatrix, SequentialInformation &origComm, std::shared_ptr< SequentialInformation > &newComm, RedistributeInformation< SequentialInformation > &ri, int nparts, C1 &criterion)
    Definition matrixhierarchy.hh:313
    \n+
    const_iterator begin() const
    Definition aggregates.hh:725
    \n+
    const ParallelMatrixHierarchy & matrices() const
    Get the matrix hierarchy.
    Definition matrixhierarchy.hh:730
    \n+
    std::size_t maxlevels() const
    Get the max number of levels in the hierarchy of processors.
    Definition matrixhierarchy.hh:940
    \n+
    const_iterator end() const
    Definition aggregates.hh:730
    \n+
    static const V ISOLATED
    Identifier of isolated vertices.
    Definition aggregates.hh:571
    \n+
    void recalculateGalerkin(const F &copyFlags)
    Recalculate the galerkin products.
    Definition matrixhierarchy.hh:898
    \n+
    const void * Arguments
    A type holding all the arguments needed to call the constructor.
    Definition construction.hh:44
    \n+
    std::size_t noVertices() const
    Get the number of vertices.
    \n+
    static std::shared_ptr< T > construct(Arguments &args)
    Construct an object with the specified arguments.
    Definition construction.hh:52
    \n+
    void coarsenVector(Hierarchy< BlockVector< V, BA >, TA > &hierarchy) const
    Coarsen the vector hierarchy according to the matrix hierarchy.
    Definition matrixhierarchy.hh:841
    \n+
    const AggregateDescriptor * const_iterator
    Definition aggregates.hh:723
    \n+
    MatrixHierarchy(std::shared_ptr< MatrixOperator > fineMatrix, std::shared_ptr< ParallelInformation > pinfo=std::make_shared< ParallelInformation >())
    Constructor.
    Definition matrixhierarchy.hh:389
    \n+
    AccumulationMode
    Identifiers for the different accumulation modes.
    Definition parameters.hh:232
    \n+
    Iterator finest()
    Get an iterator positioned at the finest level.
    Definition hierarchy.hh:377
    \n+
    void build(const T &criterion)
    Build the matrix hierarchy using aggregation.
    Definition matrixhierarchy.hh:400
    \n+
    void free()
    Free the allocated memory.
    \n+
    void coarsenSmoother(Hierarchy< S, TA > &smoothers, const typename SmootherTraits< S >::Arguments &args) const
    Coarsen the smoother hierarchy according to the matrix hierarchy.
    Definition matrixhierarchy.hh:868
    \n+
    void buildDependency(G &graph, const typename C::Matrix &matrix, C criterion, bool finestLevel)
    Build the dependency of the matrix graph.
    \n+
    std::tuple< int, int, int, int > buildAggregates(const M &matrix, G &graph, const C &criterion, bool finestLevel)
    Build the aggregates.
    \n+
    void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse, const I &pinfo, const O &copy)
    Calculate the galerkin product.
    \n+
    void getCoarsestAggregatesOnFinest(std::vector< std::size_t > &data) const
    Get the mapping of fine level unknowns to coarse level aggregates.
    Definition matrixhierarchy.hh:743
    \n+
    ~MatrixHierarchy()
    Definition matrixhierarchy.hh:824
    \n+
    @ MAX_PROCESSES
    Hard limit for the number of processes allowed.
    Definition matrixhierarchy.hh:50
    \n+
    @ atOnceAccu
    Accumulate data to one process at once.
    Definition parameters.hh:244
    \n+
    @ successiveAccu
    Successively accumulate to fewer processes.
    Definition parameters.hh:248
    \n
    Definition allocator.hh:11
    \n+
    void printGlobalSparseMatrix(const M &mat, C &ooc, std::ostream &os)
    Definition matrixutils.hh:154
    \n
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    typename std::allocator_traits< typename AllocatorTraits< T >::type >::template rebind_alloc< X > ReboundAllocatorType
    Definition allocator.hh:37
    \n-
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    @ row_wise
    Build in a row-wise manner.
    Definition bcrsmatrix.hh:521
    \n-
    CreateIterator createend()
    get create iterator pointing to one after the last block
    Definition bcrsmatrix.hh:1103
    \n-
    CreateIterator createbegin()
    get initial create iterator
    Definition bcrsmatrix.hh:1097
    \n-
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n+
    void redistributeMatrixEntries(M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
    Definition matrixredistribute.hh:757
    \n+
    bool commGraphRepartition(const M &mat, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface &redistInf, bool verbose=false)
    Definition repartition.hh:829
    \n+
    void redistributeMatrix(M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
    Redistribute a matrix according to given domain decompositions.
    Definition matrixredistribute.hh:820
    \n+
    bool graphRepartition(const G &graph, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface &redistInf, bool verbose=false)
    execute a graph repartition for a giving graph and indexset.
    Definition repartition.hh:1235
    \n
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n-
    Wrapper to use a range of ARPACK++ eigenvalue solvers.
    Definition arpackpp.hh:245
    \n-
    void computeSymMaxMagnitude(const Real &epsilon, BlockVector &x, Real &lambda) const
    Assume the matrix to be square, symmetric and perform IRLM to compute an approximation lambda of its ...
    Definition arpackpp.hh:289
    \n-
    void computeSymMinMagnitude(const Real &epsilon, BlockVector &x, Real &lambda) const
    Assume the matrix to be square, symmetric and perform IRLM to compute an approximation lambda of its ...
    Definition arpackpp.hh:391
    \n-
    Thrown when a solver aborts due to some problem.
    Definition istlexception.hh:46
    \n-
    A linear operator.
    Definition operators.hh:67
    \n-
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n-
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n-
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n-
    double condition_estimate
    Estimate of condition number.
    Definition solver.hh:79
    \n-
    void clear()
    Resets all data.
    Definition solver.hh:56
    \n-
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n-
    Simd::Scalar< real_type > scalar_real_type
    scalar type underlying the field_type
    Definition solver.hh:114
    \n-
    Y range_type
    Type of the range of the operator to be inverted.
    Definition solver.hh:105
    \n-
    X domain_type
    Type of the domain of the operator to be inverted.
    Definition solver.hh:102
    \n-
    X::field_type field_type
    The field type of the operator.
    Definition solver.hh:108
    \n-
    FieldTraits< field_type >::real_type real_type
    The real type of the field type (is the same if using real numbers, but differs for std::complex)
    Definition solver.hh:111
    \n-
    Base class for all implementations of iterative solvers.
    Definition solver.hh:203
    \n-
    std::shared_ptr< const ScalarProduct< X > > _sp
    Definition solver.hh:506
    \n-
    std::shared_ptr< const LinearOperator< X, X > > _op
    Definition solver.hh:504
    \n-
    int _maxit
    Definition solver.hh:508
    \n-
    int _verbose
    Definition solver.hh:509
    \n-
    scalar_real_type _reduction
    Definition solver.hh:507
    \n-
    std::shared_ptr< Preconditioner< X, X > > _prec
    Definition solver.hh:505
    \n-
    Preconditioned loop solver.
    Definition solvers.hh:59
    \n-
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator,.
    Definition solvers.hh:73
    \n-
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:116
    \n-
    gradient method
    Definition solvers.hh:124
    \n-
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:142
    \n-
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:187
    \n-
    conjugate gradient method
    Definition solvers.hh:193
    \n-
    CGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)
    Constructor to initialize a CG solver.
    Definition solvers.hh:256
    \n-
    static constexpr bool enableConditionEstimate
    Definition solvers.hh:208
    \n-
    CGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X > &sp, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)
    Constructor to initialize a CG solver.
    Definition solvers.hh:239
    \n-
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:279
    \n-
    CGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)
    Constructor to initialize a CG solver.
    Definition solvers.hh:222
    \n-
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:412
    \n-
    Bi-conjugate Gradient Stabilized (BiCG-STAB)
    Definition solvers.hh:419
    \n-
    typename IterativeSolver< X, X >::template Iteration< CountType > Iteration
    Definition solvers.hh:598
    \n-
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:439
    \n-
    Minimal Residual Method (MINRES)
    Definition solvers.hh:609
    \n-
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:627
    \n-
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:808
    \n-
    implements the Generalized Minimal Residual (GMRes) method
    Definition solvers.hh:827
    \n-
    RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Constructor.
    Definition solvers.hh:878
    \n-
    std::enable_if<!std::is_same< field_type, real_type >::value, T >::type conjugate(const T &t)
    Definition solvers.hh:1067
    \n-
    RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Definition solvers.hh:883
    \n-
    void update(X &w, int i, const std::vector< std::vector< field_type, fAlloc > > &H, const std::vector< field_type, fAlloc > &s, const std::vector< X > &v)
    Definition solvers.hh:1039
    \n-
    std::enable_if< std::is_same< field_type, real_type >::value, T >::type conjugate(const T &t)
    Definition solvers.hh:1062
    \n-
    ReboundAllocatorType< X, field_type > fAlloc
    field_type Allocator retrieved from domain type
    Definition solvers.hh:838
    \n-
    int _restart
    Definition solvers.hh:1120
    \n-
    ReboundAllocatorType< X, real_type > rAlloc
    real_type Allocator retrieved from domain type
    Definition solvers.hh:840
    \n-
    virtual void apply(X &x, Y &b, double reduction, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:923
    \n-
    RestartedGMResSolver(const LinearOperator< X, Y > &op, Preconditioner< X, Y > &prec, scalar_real_type reduction, int restart, int maxit, int verbose)
    Set up RestartedGMResSolver solver.
    Definition solvers.hh:850
    \n-
    RestartedGMResSolver(const LinearOperator< X, Y > &op, const ScalarProduct< X > &sp, Preconditioner< X, Y > &prec, scalar_real_type reduction, int restart, int maxit, int verbose)
    Set up RestartedGMResSolver solver.
    Definition solvers.hh:861
    \n-
    void generatePlaneRotation(field_type &dx, field_type &dy, real_type &cs, field_type &sn)
    Definition solvers.hh:1073
    \n-
    RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, Y > > prec, scalar_real_type reduction, int restart, int maxit, int verbose)
    Set up RestartedGMResSolver solver.
    Definition solvers.hh:894
    \n-
    virtual void apply(X &x, Y &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:910
    \n-
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:1119
    \n-
    void applyPlaneRotation(field_type &dx, field_type &dy, real_type &cs, field_type &sn)
    Definition solvers.hh:1106
    \n-
    implements the Flexible Generalized Minimal Residual (FGMRes) method (right preconditioned)
    Definition solvers.hh:1139
    \n-
    void apply(X &x, Y &b, double reduction, InverseOperatorResult &res) override
    Apply inverse operator.
    Definition solvers.hh:1169
    \n-
    Generalized preconditioned conjugate gradient solver.
    Definition solvers.hh:1307
    \n-
    GeneralizedPCGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X > &sp, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, int restart=10)
    Set up nonlinear preconditioned conjugate gradient solver.
    Definition solvers.hh:1343
    \n-
    GeneralizedPCGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, int restart=10)
    Set up nonlinear preconditioned conjugate gradient solver.
    Definition solvers.hh:1331
    \n-
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:1391
    \n-
    GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Constructor.
    Definition solvers.hh:1361
    \n-
    GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, scalar_real_type reduction, int maxit, int verbose, int restart=10)
    Set up nonlinear preconditioned conjugate gradient solver.
    Definition solvers.hh:1377
    \n-
    GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Definition solvers.hh:1366
    \n-
    Accelerated flexible conjugate gradient method.
    Definition solvers.hh:1501
    \n-
    RestartedFCGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, int mmax=10)
    Constructor to initialize a RestartedFCG solver.
    Definition solvers.hh:1519
    \n-
    RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &config)
    Constructor.
    Definition solvers.hh:1559
    \n-
    RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, scalar_real_type reduction, int maxit, int verbose, int mmax=10)
    Constructor to initialize a RestartedFCG solver.
    Definition solvers.hh:1539
    \n-
    int _mmax
    Definition solvers.hh:1662
    \n-
    RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &config)
    Definition solvers.hh:1565
    \n-
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:1669
    \n-
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:1584
    \n-
    RestartedFCGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X > &sp, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, int mmax=10)
    Constructor to initialize a RestartedFCG solver.
    Definition solvers.hh:1529
    \n-
    Complete flexible conjugate gradient method.
    Definition solvers.hh:1680
    \n-
    virtual void apply(X &x, X &b, InverseOperatorResult &res) override
    Apply inverse operator.
    Definition solvers.hh:1694
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n+
    A::size_type size_type
    Type for indices and sizes.
    Definition matrix.hh:577
    \n+
    MatrixImp::DenseMatrixBase< T, A >::window_type row_type
    The type implementing a matrix row.
    Definition matrix.hh:574
    \n+
    Definition matrixredistribute.hh:22
    \n+
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n+
    Class representing the properties of an ede in the matrix graph.
    Definition dependency.hh:39
    \n+
    Class representing a node in the matrix graph.
    Definition dependency.hh:126
    \n+
    Definition galerkin.hh:99
    \n+
    Definition galerkin.hh:118
    \n+
    Definition globalaggregates.hh:131
    \n+
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n+
    Attaches properties to the edges and vertices of a graph.
    Definition graph.hh:978
    \n+
    Graph::VertexDescriptor VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:988
    \n+
    Definition graphcreator.hh:22
    \n+
    A hierarchy of containers (e.g. matrices or vectors)
    Definition hierarchy.hh:40
    \n+
    LevelIterator< Hierarchy< MatrixOperator, Allocator >, MatrixOperator > Iterator
    Type of the mutable iterator.
    Definition hierarchy.hh:216
    \n+
    LevelIterator< const Hierarchy< MatrixOperator, Allocator >, const MatrixOperator > ConstIterator
    Type of the const iterator.
    Definition hierarchy.hh:219
    \n+
    Definition indicescoarsener.hh:36
    \n+
    The hierarchies build by the coarsening process.
    Definition matrixhierarchy.hh:61
    \n+
    typename std::allocator_traits< Allocator >::template rebind_alloc< AggregatesMap * > AAllocator
    Allocator for pointers.
    Definition matrixhierarchy.hh:85
    \n+
    Dune::Amg::Hierarchy< ParallelInformation, Allocator > ParallelInformationHierarchy
    The type of the parallel informarion hierarchy.
    Definition matrixhierarchy.hh:82
    \n+
    std::list< AggregatesMap *, AAllocator > AggregatesMapList
    The type of the aggregates maps list.
    Definition matrixhierarchy.hh:88
    \n+
    PI ParallelInformation
    The type of the index set.
    Definition matrixhierarchy.hh:70
    \n+
    Dune::Amg::Hierarchy< MatrixOperator, Allocator > ParallelMatrixHierarchy
    The type of the parallel matrix hierarchy.
    Definition matrixhierarchy.hh:79
    \n+
    A Allocator
    The allocator to use.
    Definition matrixhierarchy.hh:73
    \n+
    RedistributeInformation< ParallelInformation > RedistributeInfoType
    The type of the redistribute information.
    Definition matrixhierarchy.hh:91
    \n+
    double getProlongationDampingFactor() const
    Definition matrixhierarchy.hh:188
    \n+
    typename std::allocator_traits< Allocator >::template rebind_alloc< RedistributeInfoType > RILAllocator
    Allocator for RedistributeInfoType.
    Definition matrixhierarchy.hh:94
    \n+
    std::list< RedistributeInfoType, RILAllocator > RedistributeInfoList
    The type of the list of redistribute information.
    Definition matrixhierarchy.hh:97
    \n+
    Dune::Amg::AggregatesMap< typename MatrixGraph< Matrix >::VertexDescriptor > AggregatesMap
    The type of the aggregates map we use.
    Definition matrixhierarchy.hh:76
    \n+
    MatrixOperator::matrix_type Matrix
    The type of the matrix.
    Definition matrixhierarchy.hh:67
    \n+
    M MatrixOperator
    The type of the matrix operator.
    Definition matrixhierarchy.hh:64
    \n+
    void operator()(const matrix_row &row)
    Definition matrixhierarchy.hh:254
    \n+
    Matrix::row_type matrix_row
    Definition matrixhierarchy.hh:245
    \n+
    size_type min
    Definition matrixhierarchy.hh:261
    \n+\n+
    size_type max
    Definition matrixhierarchy.hh:262
    \n+
    size_type sum
    Definition matrixhierarchy.hh:263
    \n+
    Matrix::size_type size_type
    Definition matrixhierarchy.hh:244
    \n+
    The criterion describing the stop criteria for the coarsening process.
    Definition matrixhierarchy.hh:283
    \n+
    CoarsenCriterion(const Dune::Amg::Parameters &parms)
    Definition matrixhierarchy.hh:306
    \n+
    T AggregationCriterion
    The criterion for tagging connections as strong and nodes as isolated. This might be e....
    Definition matrixhierarchy.hh:289
    \n+
    CoarsenCriterion(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2, double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    Constructor.
    Definition matrixhierarchy.hh:301
    \n+
    All parameters for AMG.
    Definition parameters.hh:393
    \n+
    Definition pinfo.hh:28
    \n+
    Tag idnetifying the visited property of a vertex.
    Definition properties.hh:29
    \n+
    The default class for the smoother arguments.
    Definition smoother.hh:38
    \n+
    Definition transfer.hh:32
    \n+
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1929 +1,1288 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-solvers.hh\n+ * _\bp_\ba_\ba_\bm_\bg\n+matrixhierarchy.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5\n-6#ifndef DUNE_ISTL_SOLVERS_HH\n-7#define DUNE_ISTL_SOLVERS_HH\n-8\n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14#include \n-15#include \n-16\n-17#include \n-18#include \n-19#include \n-20#include \n-21#include \n-22#include \n-23\n-24#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b._\bh_\bh>\n-25#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-26#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be_\b/_\ba_\br_\bp_\ba_\bc_\bk_\bp_\bp_\b._\bh_\bh>\n-27#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-28#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n-29#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh>\n-30#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n-31#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n-32#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh>\n-33\n-34namespace _\bD_\bu_\bn_\be {\n-46 //=====================================================================\n-47 // Implementation of this interface\n-48 //=====================================================================\n-49\n-58 template\n-_\b5_\b9 class _\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n-60 public:\n-61 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-62 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-63 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-64 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+5#ifndef DUNE_AMG_MATRIXHIERARCHY_HH\n+6#define DUNE_AMG_MATRIXHIERARCHY_HH\n+7\n+8#include \n+9#include \n+10#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n+11#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n+12#include \"_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\"\n+13#include \"_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\"\n+14#include \"_\bg_\br_\ba_\bp_\bh_\bc_\br_\be_\ba_\bt_\bo_\br_\b._\bh_\bh\"\n+15#include \"_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh\"\n+16#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+17#include \n+18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh>\n+19#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh>\n+20#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh>\n+21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh>\n+22#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bi_\bn_\bd_\bi_\bc_\be_\bs_\bc_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b._\bh_\bh>\n+23#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bg_\bl_\bo_\bb_\ba_\bl_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n+24#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+25#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n+26#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n+27\n+28namespace _\bD_\bu_\bn_\be\n+29{\n+30 namespace Amg\n+31 {\n+42 enum {\n+50 _\bM_\bA_\bX_\b__\bP_\bR_\bO_\bC_\bE_\bS_\bS_\bE_\bS = 72000\n+_\b5_\b1 };\n+52\n+59 template >\n+_\b6_\b0 class _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+61 {\n+62 public:\n+_\b6_\b4 typedef M _\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n 65\n-66 // copy base class constructors\n-67 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::IterativeSolver;\n+_\b6_\b7 typedef typename MatrixOperator::matrix_type _\bM_\ba_\bt_\br_\bi_\bx;\n 68\n-69 // don't shadow four-argument version of apply defined in the base class\n-70 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+_\b7_\b0 typedef PI _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n 71\n-_\b7_\b3 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-74 {\n-75 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this, res);\n-76 _\b__\bp_\br_\be_\bc->pre(x,b);\n+_\b7_\b3 typedef A _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br;\n+74\n+_\b7_\b6 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br> _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp;\n 77\n-78 // overwrite b with defect\n-79 _\b__\bo_\bp->applyscaleadd(-1,x,b);\n+_\b7_\b9 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b>\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n 80\n-81 // compute norm, \\todo parallelization\n-82 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(b);\n-83 if(iteration.step(0, def)){\n-84 _\b__\bp_\br_\be_\bc->post(x);\n-85 return;\n-86 }\n-87 // prepare preconditioner\n-88\n-89 // allocate correction vector\n-90 X v(x);\n-91\n-92 // iteration loop\n-93 int i=1;\n-94 for ( ; i<=_\b__\bm_\ba_\bx_\bi_\bt; i++ )\n-95 {\n-96 v = 0; // clear correction\n-97 _\b__\bp_\br_\be_\bc->apply(v,b); // apply preconditioner\n-98 x += v; // update solution\n-99 _\b__\bo_\bp->applyscaleadd(-1,v,b); // update defect\n-100 def=_\b__\bs_\bp->norm(b); // comp defect norm\n-101 if(iteration.step(i, def))\n-102 break;\n-103 }\n-104\n-105 // postprocess preconditioner\n-106 _\b__\bp_\br_\be_\bc->post(x);\n-107 }\n+_\b8_\b2 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b>\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n+83\n+_\b8_\b5 using _\bA_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br = typename std::allocator_traits::template\n+rebind_alloc;\n+86\n+_\b8_\b8 typedef std::list _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bL_\bi_\bs_\bt;\n+89\n+_\b9_\b1 typedef _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b> _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be;\n+92\n+_\b9_\b4 using _\bR_\bI_\bL_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br = typename std::allocator_traits::template\n+rebind_alloc;\n+95\n+_\b9_\b7 typedef std::list _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bL_\bi_\bs_\bt;\n+98\n+104 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(std::shared_ptr fineMatrix,\n+105 std::shared_ptr pinfo = std::\n+make_shared());\n+106\n+107 _\b~_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by();\n 108\n-109 protected:\n-110 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n-111 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n-112 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n-113 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-114 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n-115 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-_\b1_\b1_\b6 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n-117 };\n-_\b1_\b1_\b8 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"loopsolver\",\n-defaultIterativeSolverCreator());\n-119\n-120\n-121 // all these solvers are taken from the SUMO library\n-123 template\n-_\b1_\b2_\b4 class _\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n-125 public:\n-126 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-127 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-128 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-129 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-130\n-131 // copy base class constructors\n-132 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::IterativeSolver;\n+114 template\n+115 void _\bb_\bu_\bi_\bl_\bd(const T& criterion);\n+116\n+124 template\n+125 void _\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn(const F& copyFlags);\n+126\n+131 template\n+132 void _\bc_\bo_\ba_\br_\bs_\be_\bn_\bV_\be_\bc_\bt_\bo_\br(_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bV_\b,_\bB_\bA_\b>, TA>& hierarchy) const;\n 133\n-134 // don't shadow four-argument version of apply defined in the base class\n-135 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n-136\n-_\b1_\b4_\b2 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-143 {\n-144 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this, res);\n-145 _\b__\bp_\br_\be_\bc->pre(x,b); // prepare preconditioner\n-146\n-147 _\b__\bo_\bp->applyscaleadd(-1,x,b); // overwrite b with defec\n+139 template\n+140 void _\bc_\bo_\ba_\br_\bs_\be_\bn_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br(_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bS_\b,_\bT_\bA_\b>& smoothers,\n+141 const typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args) const;\n+142\n+147 std::size_t _\bl_\be_\bv_\be_\bl_\bs() const;\n 148\n-149 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(b); // compute norm\n-150 if(iteration.step(0, def)){\n-151 _\b__\bp_\br_\be_\bc->post(x);\n-152 return;\n-153 }\n+153 std::size_t _\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs() const;\n 154\n-155 X p(x); // create local vectors\n-156 X q(b);\n-157\n-158 int i=1; // loop variables\n-159 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be lambda;\n-160 for ( ; i<=_\b__\bm_\ba_\bx_\bi_\bt; i++ )\n-161 {\n-162 p = 0; // clear correction\n-163 _\b__\bp_\br_\be_\bc->apply(p,b); // apply preconditioner\n-164 _\b__\bo_\bp->apply(p,q); // q=Ap\n-165 auto alpha = _\b__\bs_\bp->dot(q,p);\n-166 lambda = Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-167 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), // no need for minimization if def is already 0\n-168 _\b__\bs_\bp->dot(p,b)/alpha); // minimization\n-169 x.axpy(lambda,p); // update solution\n-170 b.axpy(-lambda,q); // update defect\n-171\n-172 def =_\b__\bs_\bp->norm(b); // comp defect norm\n-173 if(iteration.step(i, def))\n-174 break;\n-175 }\n-176 // postprocess preconditioner\n-177 _\b__\bp_\br_\be_\bc->post(x);\n-178 }\n-179\n-180 protected:\n-181 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n-182 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n-183 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n-184 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-185 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n-186 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-_\b1_\b8_\b7 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n-188 };\n-_\b1_\b8_\b9 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"gradientsolver\",\n-defaultIterativeSolverCreator());\n-190\n-192 template\n-_\b1_\b9_\b3 class _\bC_\bG_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n-194 public:\n-195 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-196 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-197 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-198 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-199\n-200 // copy base class constructors\n-201 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::IterativeSolver;\n-202\n-203 private:\n-204 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-205\n-206 protected:\n-207\n-_\b2_\b0_\b8 static constexpr bool _\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be = (std::\n-is_same_v || std::is_same_v);\n-209\n-210 public:\n-211\n-212 // don't shadow four-argument version of apply defined in the base class\n-213 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n-214\n-_\b2_\b2_\b2 _\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>& prec,\n-223 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, bool\n-condition_estimate) : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, prec, reduction, maxit,\n-verbose),\n-224 condition_estimate_(condition_estimate)\n-225 {\n-226 if (condition_estimate && !_\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be) {\n-227 condition_estimate_ = false;\n-228 std::cerr << \"WARNING: Condition estimate was disabled. It is only\n-available for double and float field types!\" << std::endl;\n-229 }\n-230 }\n+155 bool _\bh_\ba_\bs_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt() const;\n+156\n+161 bool _\bi_\bs_\bB_\bu_\bi_\bl_\bt() const;\n+162\n+167 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& _\bm_\ba_\bt_\br_\bi_\bc_\be_\bs() const;\n+168\n+173 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn() const;\n+174\n+179 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bL_\bi_\bs_\bt& _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bs() const;\n+180\n+186 const _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bL_\bi_\bs_\bt& _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn() const;\n+187\n+_\b1_\b8_\b8 double _\bg_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br() const\n+189 {\n+190 return prolongDamp_;\n+191 }\n+192\n+203 void _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bO_\bn_\bF_\bi_\bn_\be_\bs_\bt(std::vector& data) const;\n+204\n+205 private:\n+206 typedef typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs MatrixArgs;\n+207 typedef typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+CommunicationArgs;\n+209 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bL_\bi_\bs_\bt aggregatesMaps_;\n+211 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bL_\bi_\bs_\bt redistributes_;\n+213 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by matrices_;\n+215 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by parallelInformation_;\n+216\n+218 bool built_;\n+219\n+221 int maxlevels_;\n+222\n+223 double prolongDamp_;\n+224\n+228 template\n+229 struct MatrixStats\n+230 {\n 231\n-_\b2_\b3_\b9 _\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, const _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>& sp,\n-_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>& prec,\n-240 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, bool\n-condition_estimate) : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, sp, prec, reduction, maxit,\n-verbose),\n-241 condition_estimate_(condition_estimate)\n-242 {\n-243 if (condition_estimate && !(std::is_same::value || std::\n-is_same::value)) {\n-244 condition_estimate_ = false;\n-245 std::cerr << \"WARNING: Condition estimate was disabled. It is only\n-available for double and float field types!\" << std::endl;\n-246 }\n-247 }\n-248\n-_\b2_\b5_\b6 _\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op, std::\n-shared_ptr<_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>> sp,\n-257 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>> prec,\n-258 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, bool\n-condition_estimate)\n-259 : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, sp, prec, reduction, maxit, verbose),\n-260 condition_estimate_(condition_estimate)\n-261 {\n-262 if (condition_estimate && !(std::is_same::value || std::\n-is_same::value)) {\n-263 condition_estimate_ = false;\n-264 std::cerr << \"WARNING: Condition estimate was disabled. It is only\n-available for double and float field types!\" << std::endl;\n-265 }\n-266 }\n-267\n-_\b2_\b7_\b9 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-280 {\n-281 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this,res);\n-282 _\b__\bp_\br_\be_\bc->pre(x,b); // prepare preconditioner\n-283\n-284 _\b__\bo_\bp->applyscaleadd(-1,x,b); // overwrite b with defect\n-285\n-286 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(b); // compute norm\n-287 if(iteration.step(0, def)){\n-288 _\b__\bp_\br_\be_\bc->post(x);\n-289 return;\n-290 }\n-291\n-292 X p(x); // the search direction\n-293 X q(x); // a temporary vector\n-294\n-295 // Remember lambda and beta values for condition estimate\n-296 std::vector lambdas(0);\n-297 std::vector betas(0);\n-298\n-299 // some local variables\n-300 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be rho,rholast,lambda,alpha,beta;\n-301\n-302 // determine initial search direction\n-303 p = 0; // clear correction\n-304 _\b__\bp_\br_\be_\bc->apply(p,b); // apply preconditioner\n-305 rholast = _\b__\bs_\bp->dot(p,b); // orthogonalization\n-306\n-307 // the loop\n-308 int i=1;\n-309 for ( ; i<=_\b__\bm_\ba_\bx_\bi_\bt; i++ )\n-310 {\n-311 // minimize in given search direction p\n-312 _\b__\bo_\bp->apply(p,q); // q=Ap\n-313 alpha = _\b__\bs_\bp->dot(p,q); // scalar product\n-314 lambda = Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), rholast/alpha); /\n-/ minimization\n-315 if constexpr (_\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be)\n-316 if (condition_estimate_)\n-317 lambdas.push_back(std::real(lambda));\n-318 x.axpy(lambda,p); // update solution\n-319 b.axpy(-lambda,q); // update defect\n-320\n-321 // convergence test\n-322 def=_\b__\bs_\bp->norm(b); // comp defect norm\n-323 if(iteration.step(i, def))\n-324 break;\n-325\n-326 // determine new search direction\n-327 q = 0; // clear correction\n-328 _\b__\bp_\br_\be_\bc->apply(q,b); // apply preconditioner\n-329 rho = _\b__\bs_\bp->dot(q,b); // orthogonalization\n-330 beta = Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), rho/rholast); /\n-/ scaling factor\n-331 if constexpr (_\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be)\n-332 if (condition_estimate_)\n-333 betas.push_back(std::real(beta));\n-334 p *= beta; // scale old search direction\n-335 p += q; // orthogonalization with correction\n-336 rholast = rho; // remember rho for recurrence\n-337 }\n-338\n-339 _\b__\bp_\br_\be_\bc->post(x); // postprocess preconditioner\n-340\n-341 if (condition_estimate_) {\n-342#if HAVE_ARPACKPP\n-343 if constexpr (_\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be) {\n-344 using std::sqrt;\n-345\n-346 // Build T matrix which has extreme eigenvalues approximating\n-347 // those of the original system\n-348 // (see Y. Saad, Iterative methods for sparse linear systems)\n-349\n-350 _\bC_\bO_\bN_\bD_\b__\bM_\bA_\bT T(i, i, _\bC_\bO_\bN_\bD_\b__\bM_\bA_\bT_\b:_\b:_\br_\bo_\bw_\b__\bw_\bi_\bs_\be);\n-351\n-352 for (auto row = T._\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn(); row != T._\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd(); ++row) {\n-353 if (row.index() > 0)\n-354 row.insert(row.index()-1);\n-355 row.insert(row.index());\n-356 if (row.index() < T._\bN() - 1)\n-357 row.insert(row.index()+1);\n-358 }\n-359 for (int row = 0; row < i; ++row) {\n-360 if (row > 0) {\n-361 T[row][row-1] = sqrt(betas[row-1]) / lambdas[row-1];\n-362 }\n-363\n-364 T[row][row] = 1.0 / lambdas[row];\n-365 if (row > 0) {\n-366 T[row][row] += betas[row-1] / lambdas[row-1];\n-367 }\n-368\n-369 if (row < i - 1) {\n-370 T[row][row+1] = sqrt(betas[row]) / lambdas[row];\n-371 }\n-372 }\n-373\n-374 // Compute largest and smallest eigenvalue of T matrix and return as\n-estimate\n-375 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b<_\bC_\bO_\bN_\bD_\b__\bM_\bA_\bT_\b,_\b _\bC_\bO_\bN_\bD_\b__\bV_\bE_\bC_\b> arpack(T);\n-376\n-377 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be eps = 0.0;\n-378 _\bC_\bO_\bN_\bD_\b__\bV_\bE_\bC eigv;\n-379 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be min_eigv, max_eigv;\n-380 arpack._\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\bi_\bn_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be (eps, eigv, min_eigv);\n-381 arpack._\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\ba_\bx_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be (eps, eigv, max_eigv);\n-382\n-383 res._\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\b__\be_\bs_\bt_\bi_\bm_\ba_\bt_\be = max_eigv / min_eigv;\n-384\n-385 if (this->_\b__\bv_\be_\br_\bb_\bo_\bs_\be > 0) {\n-386 std::cout << \"Min eigv estimate: \" << Simd::io(min_eigv) << '\\n';\n-387 std::cout << \"Max eigv estimate: \" << Simd::io(max_eigv) << '\\n';\n-388 std::cout << \"Condition estimate: \"\n-389 << Simd::io(max_eigv / min_eigv) << std::endl;\n-390 }\n-391 }\n-392#else\n-393 std::cerr << \"WARNING: Condition estimate was requested. This requires\n-ARPACK, but ARPACK was not found!\" << std::endl;\n-394#endif\n-395 }\n+235 static void stats([[maybe_unused]] const _\bM_\ba_\bt_\br_\bi_\bx& matrix)\n+236 {}\n+237 };\n+238\n+239 template\n+240 struct MatrixStats<_\bM_\ba_\bt_\br_\bi_\bx,true>\n+241 {\n+_\b2_\b4_\b2 struct calc\n+243 {\n+_\b2_\b4_\b4 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+_\b2_\b4_\b5 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bm_\ba_\bt_\br_\bi_\bx_\b__\br_\bo_\bw;\n+246\n+_\b2_\b4_\b7 _\bc_\ba_\bl_\bc()\n+248 {\n+249 min=std::numeric_limits::max();\n+250 max=0;\n+251 sum=0;\n+252 }\n+253\n+_\b2_\b5_\b4 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bm_\ba_\bt_\br_\bi_\bx_\b__\br_\bo_\bw& row)\n+255 {\n+256 min=std::min(min, row.size());\n+257 max=std::max(max, row.size());\n+258 sum += row.size();\n+259 }\n+260\n+_\b2_\b6_\b1 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bm_\bi_\bn;\n+_\b2_\b6_\b2 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bm_\ba_\bx;\n+_\b2_\b6_\b3 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bu_\bm;\n+264 };\n+268 static void stats(const _\bM_\ba_\bt_\br_\bi_\bx& matrix)\n+269 {\n+270 calc c= for_each(matrix.begin(), matrix.end(), calc());\n+271 dinfo<<\"Matrix row: min=\"<(c.sum)/matrix.N()\n+273 <\n+_\b2_\b8_\b2 class _\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn : public T\n+283 {\n+284 public:\n+_\b2_\b8_\b9 typedef T _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn;\n+290\n+_\b3_\b0_\b1 _\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(int maxLevel=100, int coarsenTarget=1000, double\n+minCoarsenRate=1.2,\n+302 double prolongDamp=1.6, _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be accumulate=_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu)\n+303 : _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(_\bD_\bu_\bn_\be::Amg::_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(maxLevel, coarsenTarget,\n+minCoarsenRate, prolongDamp, accumulate))\n+304 {}\n+305\n+_\b3_\b0_\b6 _\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(const _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n+307 : _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(parms)\n+308 {}\n+309\n+310 };\n+311\n+312 template\n+_\b3_\b1_\b3 bool _\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx([[maybe_unused]] const M& origMatrix,\n+314 [[maybe_unused]] std::shared_ptr newMatrix,\n+315 [[maybe_unused]] _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& origComm,\n+316 [[maybe_unused]] std::shared_ptr& newComm,\n+317 [[maybe_unused]] _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>& ri,\n+318 [[maybe_unused]] int nparts,\n+319 [[maybe_unused]] C1& criterion)\n+320 {\n+321 DUNE_THROW(NotImplemented, \"Redistribution does not make sense in\n+sequential code!\");\n+322 }\n+323\n+324\n+325 template\n+_\b3_\b2_\b6 bool _\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(const M& origMatrix,\n+327 std::shared_ptr newMatrix,\n+328 C& origComm,\n+329 std::shared_ptr& newComm,\n+330 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\b>& ri,\n+331 int nparts, C1& criterion)\n+332 {\n+333 Timer time;\n+334#ifdef AMG_REPART_ON_COMM_GRAPH\n+335 // Done not repartition the matrix graph, but a graph of the communication\n+scheme.\n+336 bool existentOnRedist=_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn(origMatrix, origComm,\n+nparts, newComm,\n+337 ri.getInterface(),\n+338 criterion.debugLevel()>1);\n+339\n+340#else\n+341 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b> _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n+342 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh,\n+343 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n+344 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n+345 IdentityMap,\n+346 IdentityMap> _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh;\n+347 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh graph(origMatrix);\n+348 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh pgraph(graph);\n+349 _\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(pgraph, origMatrix, criterion, false);\n+350\n+351#ifdef DEBUG_REPART\n+352 if(origComm.communicator().rank()==0)\n+353 std::cout<<\"Original matrix\"<1);\n+360#endif // if else AMG_REPART\n+361\n+362 if(origComm.communicator().rank()==0 && criterion.debugLevel()>1)\n+363 std::cout<<\"Repartitioning took \"<indexSet(),\n+origComm.communicator());\n+369#endif\n+370\n+371 _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(const_cast(origMatrix), *newMatrix, origComm,\n+*newComm, ri);\n+372\n+373#ifdef DEBUG_REPART\n+374 if(origComm.communicator().rank()==0)\n+375 std::cout<<\"Original matrix\"<communicator().size()>0)\n+378 _\bp_\br_\bi_\bn_\bt_\bG_\bl_\bo_\bb_\ba_\bl_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx(*newMatrix, *newComm, std::cout);\n+379 origComm.communicator().barrier();\n+380#endif\n+381\n+382 if(origComm.communicator().rank()==0 && criterion.debugLevel()>1)\n+383 std::cout<<\"Redistributing matrix took \"<\n+_\b3_\b8_\b9 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(std::shared_ptr\n+fineMatrix,\n+390 std::shared_ptr pinfo)\n+391 : matrices_(fineMatrix),\n+392 parallelInformation_(pinfo)\n+393 {\n+394 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*fineMatrix) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+(*pinfo))\n+395 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"MatrixOperator and ParallelInformation must belong\n+to the same category!\");\n 396 }\n 397\n-398 private:\n-399 bool condition_estimate_ = false;\n-400\n-401 // Matrix and vector types used for condition estimate\n-402 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be_\b,_\b1_\b,_\b1_\b> > COND_MAT;\n-403 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be_\b,_\b1_\b> > COND_VEC;\n-404\n-405 protected:\n-406 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n-407 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n-408 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n-409 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-410 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n-411 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-_\b4_\b1_\b2 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n-413 };\n-_\b4_\b1_\b4 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"cgsolver\",\n-defaultIterativeSolverCreator());\n-415\n-416 // Ronald Kriemanns BiCG-STAB implementation from Sumo\n-418 template\n-_\b4_\b1_\b9 class _\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n-420 public:\n-421 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-422 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-423 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-424 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-425\n-426 // copy base class constructors\n-427 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::IterativeSolver;\n-428\n-429 // don't shadow four-argument version of apply defined in the base class\n-430 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n-431\n-_\b4_\b3_\b9 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-440 {\n-441 using std::abs;\n-442 const Simd::Scalar EPSILON=1e-80;\n-443 using std::abs;\n-444 double it;\n-445 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be rho, rho_new, alpha, beta, h, omega;\n-446 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm;\n-447\n-448 //\n-449 // get vectors and matrix\n-450 //\n-451 X& r=b;\n-452 X p(x);\n-453 X v(x);\n-454 X t(x);\n-455 X y(x);\n-456 X rt(x);\n-457\n-458 //\n-459 // begin iteration\n-460 //\n-461\n-462 // r = r - Ax; rt = r\n-463 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bd_\bo_\bu_\bb_\bl_\be_\b> iteration(*this,res);\n-464 _\b__\bp_\br_\be_\bc->pre(x,r); // prepare preconditioner\n-465\n-466 _\b__\bo_\bp->applyscaleadd(-1,x,r); // overwrite b with defect\n-467\n-468 rt=r;\n-469\n-470 norm = _\b__\bs_\bp->norm(r);\n-471 if(iteration.step(0, norm)){\n-472 _\b__\bp_\br_\be_\bc->post(x);\n-473 return;\n-474 }\n-475 p=0;\n-476 v=0;\n-477\n-478 rho = 1;\n-479 alpha = 1;\n-480 omega = 1;\n-481\n-482 //\n-483 // iteration\n-484 //\n+398 template\n+399 template\n+_\b4_\b0_\b0 void _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd(const T& criterion)\n+401 {\n+402 prolongDamp_ = criterion.getProlongationDampingFactor();\n+403 typedef O OverlapFlags;\n+404 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br MatIterator;\n+405 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br PInfoIterator;\n+406\n+407 static const int noints=(_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\bA_\bX_\b__\bP_\bR_\bO_\bC_\bE_\bS_\bS_\bE_\bS/4096>0) ? (_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:\n+_\bM_\bA_\bX_\b__\bP_\bR_\bO_\bC_\bE_\bS_\bS_\bE_\bS/4096) : 1;\n+408\n+409 typedef bigunsignedint BIGINT;\n+410 _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b> productBuilder;\n+411 MatIterator mlevel = matrices_.finest();\n+412 MatrixStats::stats(mlevel->getmat());\n+413\n+414 PInfoIterator infoLevel = parallelInformation_.finest();\n+415 BIGINT finenonzeros=_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(mlevel->getmat());\n+416 finenonzeros = infoLevel->communicator().sum(finenonzeros);\n+417 BIGINT allnonzeros = finenonzeros;\n+418\n+419\n+420 int level = 0;\n+421 int rank = 0;\n+422\n+423 BIGINT unknowns = mlevel->getmat().N();\n+424\n+425 unknowns = infoLevel->communicator().sum(unknowns);\n+426 double dunknowns=unknowns.todouble();\n+427 infoLevel->buildGlobalLookup(mlevel->getmat().N());\n+428 redistributes_.push_back(_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be());\n+429\n+430 for(; level < criterion.maxLevel(); ++level, ++mlevel) {\n+431 assert(matrices_.levels()==redistributes_.size());\n+432 rank = infoLevel->communicator().rank();\n+433 if(rank==0 && criterion.debugLevel()>1)\n+434 std::cout<<\"Level \"<communicator().size()\n+435 <<\" unknowns per proc (procs=\"<communicator().size\n+()<<\")\"<communicator().size()))\n+448 && infoLevel->communicator().size()>1 &&\n+449 dunknowns/infoLevel->communicator().size() <= criterion.coarsenTarget())\n+450 {\n+451 // accumulate to fewer processors\n+452 std::shared_ptr redistMat = std::make_shared();\n+453 std::shared_ptr redistComm;\n+454 std::size_t nodomains = (std::size_t)std::ceil(dunknowns/\n+(criterion.minAggregateSize()\n+455 *criterion.coarsenTarget()));\n+456 if( nodomains<=criterion.minAggregateSize()/2 ||\n+457 dunknowns <= criterion.coarsenTarget() )\n+458 nodomains=1;\n+459\n+460 bool existentOnNextLevel =\n+461 _\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(mlevel->getmat(), redistMat, *infoLevel,\n+462 redistComm, redistributes_.back(), nodomains,\n+463 criterion);\n+464 BIGINT unknownsRedist = redistMat->N();\n+465 unknownsRedist = infoLevel->communicator().sum(unknownsRedist);\n+466 dunknowns= unknownsRedist.todouble();\n+467 if(redistComm->communicator().rank()==0 && criterion.debugLevel()>1)\n+468 std::cout<<\"Level \"<communicator().size()\n+469 <<\" unknowns per proc (procs=\"<communicator().size\n+()<<\")\"<_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+(args));\n+472 assert(mlevel.isRedistributed());\n+473 infoLevel.addRedistributed(redistComm);\n+474 infoLevel->freeGlobalLookup();\n+475\n+476 if(!existentOnNextLevel)\n+477 // We do not hold any data on the redistributed partitioning\n+478 break;\n+479\n+480 // Work on the redistributed Matrix from now on\n+481 matrix = &(mlevel.getRedistributed());\n+482 info = &(infoLevel.getRedistributed());\n+483 info->buildGlobalLookup(matrix->getmat().N());\n+484 }\n 485\n-486 for (it = 0.5; it < _\b__\bm_\ba_\bx_\bi_\bt; it+=.5)\n-487 {\n-488 //\n-489 // preprocess, set vecsizes etc.\n-490 //\n-491\n-492 // rho_new = < rt , r >\n-493 rho_new = _\b__\bs_\bp->dot(rt,r);\n+486 rank = info->communicator().rank();\n+487 if(dunknowns <= criterion.coarsenTarget())\n+488 // No further coarsening needed\n+489 break;\n+490\n+491 typedef _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>\n+GraphCreator;\n+492 typedef typename GraphCreator::PropertiesGraph _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh;\n+493 typedef typename GraphCreator::GraphTuple GraphTuple;\n 494\n-495 // look if breakdown occurred\n-496 if (Simd::allTrue(abs(rho) <= EPSILON))\n-497 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt,\"breakdown in BiCGSTAB - rho \"\n-498 << Simd::io(rho) << \" <= EPSILON \" << EPSILON\n-499 << \" after \" << it << \" iterations\");\n-500 if (Simd::allTrue(abs(omega) <= EPSILON))\n-501 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt,\"breakdown in BiCGSTAB - omega \"\n-502 << Simd::io(omega) << \" <= EPSILON \" << EPSILON\n-503 << \" after \" << it << \" iterations\");\n+495 typedef typename _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br Vertex;\n+496\n+497 std::vector excluded(matrix->getmat().N(), false);\n+498\n+499 GraphTuple graphs = GraphCreator::create(*matrix, excluded, *info,\n+OverlapFlags());\n+500\n+501 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp* aggregatesMap=new _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(std::get<1>(graphs)-\n+>maxVertex()+1);\n+502\n+503 aggregatesMaps_.push_back(aggregatesMap);\n 504\n-505\n-506 if (it<1)\n-507 p = r;\n-508 else\n-509 {\n-510 beta = Simd::cond(norm==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-511 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), // no need for orthogonalization if norm is already 0\n-512 ( rho_new / rho ) * ( alpha / omega ));\n-513 p.axpy(-omega,v); // p = r + beta (p - omega*v)\n-514 p *= beta;\n-515 p += r;\n-516 }\n-517\n-518 // y = W^-1 * p\n-519 y = 0;\n-520 _\b__\bp_\br_\be_\bc->apply(y,p); // apply preconditioner\n+505 Timer watch;\n+506 watch.reset();\n+507 auto [noAggregates, isoAggregates, oneAggregates, skippedAggregates] =\n+508 aggregatesMap->_\bb_\bu_\bi_\bl_\bd_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs(matrix->getmat(), *(std::get<1>(graphs)),\n+criterion, level==0);\n+509\n+510 if(rank==0 && criterion.debugLevel()>2)\n+511 std::cout<<\" Have built \"<communicator().rank();\n+519 int n = UNKNOWNS/procs; // number of unknowns per process\n+520 int bigger = UNKNOWNS%procs; // number of process with n+1 unknows\n 521\n-522 // v = A * y\n-523 _\b__\bo_\bp->apply(y,v);\n-524\n-525 // alpha = rho_new / < rt, v >\n-526 h = _\b__\bs_\bp->dot(rt,v);\n-527\n-528 if ( Simd::allTrue(abs(h) < EPSILON) )\n-529 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt,\"abs(h) < EPSILON in BiCGSTAB - abs(h) \"\n-530 << Simd::io(abs(h)) << \" < EPSILON \" << EPSILON\n-531 << \" after \" << it << \" iterations\");\n-532\n-533 alpha = Simd::cond(norm==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-534 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-535 rho_new / h);\n+522 // Compute owner region\n+523 if(rank0)\n+533 overlapStart = start - 1;\n+534 else\n+535 overlapStart = start;\n 536\n-537 // apply first correction to x\n-538 // x <- x + alpha y\n-539 x.axpy(alpha,y);\n-540\n-541 // r = r - alpha*v\n-542 r.axpy(-alpha,v);\n-543\n-544 //\n-545 // test stop criteria\n-546 //\n-547\n-548 norm = _\b__\bs_\bp->norm(r);\n-549 if(iteration.step(it, norm)){\n-550 break;\n+537 if(end_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs());\n+543 for(int j=0; j< UNKNOWNS; ++j)\n+544 for(int i=0; i < UNKNOWNS; ++i)\n+545 {\n+546 if(i>=overlapStart && iapply(y,r);\n-558\n-559 // t = A * y\n-560 _\b__\bo_\bp->apply(y,t);\n-561\n-562 // omega = < t, r > / < t, t >\n-563 h = _\b__\bs_\bp->dot(t,t);\n-564 omega = Simd::cond(norm==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-565 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-566 _\b__\bs_\bp->dot(t,r)/h);\n-567\n-568 // apply second correction to x\n-569 // x <- x + omega y\n-570 x.axpy(omega,y);\n-571\n-572 // r = s - omega*t (remember : r = s)\n-573 r.axpy(-omega,t);\n-574\n-575 rho = rho_new;\n-576\n-577 //\n-578 // test stop criteria\n-579 //\n-580\n-581 norm = _\b__\bs_\bp->norm(r);\n-582 if(iteration.step(it, norm)){\n-583 break;\n-584 }\n-585 } // end for\n-586\n-587 _\b__\bp_\br_\be_\bc->post(x); // postprocess preconditioner\n-588 }\n-589\n-590 protected:\n-591 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n-592 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n-593 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n-594 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-595 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n-596 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-597 template\n-_\b5_\b9_\b8 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\bo_\bu_\bn_\bt_\bT_\by_\bp_\be_\b>;\n-599 };\n-_\b6_\b0_\b0 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"bicgstabsolver\",\n-defaultIterativeSolverCreator());\n-601\n-608 template\n-_\b6_\b0_\b9 class _\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n-610 public:\n-611 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-612 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-613 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-614 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+552 }\n+553#endif\n+554 if(criterion.debugLevel()>1 && info->communicator().rank()==0)\n+555 std::cout<<\"aggregating finished.\"<communicator().sum(gnoAggregates);\n+559 double dgnoAggregates = gnoAggregates.todouble();\n+560#ifdef TEST_AGGLO\n+561 BIGINT gnoAggregates=((UNKNOWNS)/2)*((UNKNOWNS)/2);\n+562#endif\n+563\n+564 if(criterion.debugLevel()>2 && rank==0)\n+565 std::cout << \"Building \"<0)\n+572 std::cerr << \"Stopped coarsening because of rate breakdown \"<_\bf_\br_\be_\be();\n+579 delete aggregatesMap;\n+580 aggregatesMaps_.pop_back();\n+581\n+582 if(criterion.accumulate() && mlevel.isRedistributed() && info->communicator\n+().size()>1) {\n+583 // coarse level matrix was already redistributed, but to more than 1\n+process\n+584 // Therefore need to delete the redistribution. Further down it will\n+585 // then be redistributed to 1 process\n+586 delete &(mlevel.getRedistributed().getmat());\n+587 mlevel.deleteRedistributed();\n+588 delete &(infoLevel.getRedistributed());\n+589 infoLevel.deleteRedistributed();\n+590 redistributes_.back().resetSetup();\n+591 }\n+592\n+593 break;\n+594 }\n+595 unknowns = noAggregates;\n+596 dunknowns = dgnoAggregates;\n+597\n+598 CommunicationArgs commargs(info->communicator(),info->category());\n+599 parallelInformation_.addCoarser(commargs);\n+600\n+601 ++infoLevel; // parallel information on coarse level\n+602\n+603 typename PropertyMapTypeSelector::Type\n+visitedMap =\n+604 _\bg_\be_\bt(_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg(), *(std::get<1>(graphs)));\n+605\n+606 watch.reset();\n+607 int aggregates = _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\bO_\bv_\be_\br_\bl_\ba_\bp_\bF_\bl_\ba_\bg_\bs_\b>\n+608_\b _\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn(*info,\n+609 *(std::get<1>(graphs)),\n+610 visitedMap,\n+611 *aggregatesMap,\n+612 *infoLevel,\n+613 noAggregates);\n+614 GraphCreator::free(graphs);\n 615\n-616 // copy base class constructors\n-617 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::IterativeSolver;\n-618\n-619 // don't shadow four-argument version of apply defined in the base class\n-620 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n-621\n-_\b6_\b2_\b7 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-628 {\n-629 using std::sqrt;\n-630 using std::abs;\n-631 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this, res);\n-632 // prepare preconditioner\n-633 _\b__\bp_\br_\be_\bc->pre(x,b);\n-634\n-635 // overwrite rhs with defect\n-636 _\b__\bo_\bp->applyscaleadd(-1.0,x,b); // b -= Ax\n-637\n-638 // some temporary vectors\n-639 X z(b), dummy(b);\n-640 z = 0.0;\n-641\n-642 // calculate preconditioned defect\n-643 _\b__\bp_\br_\be_\bc->apply(z,b); // r = W^-1 (b - Ax)\n-644 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(z);\n-645 if (iteration.step(0, def)){\n-646 _\b__\bp_\br_\be_\bc->post(x);\n-647 return;\n-648 }\n-649\n-650 // recurrence coefficients as computed in Lanczos algorithm\n-651 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha, beta;\n-652 // diagonal entries of givens rotation\n-653 std::array c{{0.0,0.0}};\n-654 // off-diagonal entries of givens rotation\n-655 std::array s{{0.0,0.0}};\n-656\n-657 // recurrence coefficients (column k of tridiag matrix T_k)\n-658 std::array T{{0.0,0.0,0.0}};\n-659\n-660 // the rhs vector of the min problem\n-661 std::array xi{{1.0,0.0}};\n+616 if(criterion.debugLevel()>2) {\n+617 if(rank==0)\n+618 std::cout<<\"Coarsening of index sets took \"<buildGlobalLookup(aggregates);\n+624 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\bV_\be_\br_\bt_\be_\bx_\b,_\bO_\bv_\be_\br_\bl_\ba_\bp_\bF_\bl_\ba_\bg_\bs_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bp_\bu_\bb_\bl_\bi_\bs_\bh\n+(*aggregatesMap,\n+625 *info,\n+626 infoLevel->globalLookup());\n+627\n+628\n+629 if(criterion.debugLevel()>2) {\n+630 if(rank==0)\n+631 std::cout<<\"Communicating global aggregate numbers took \"<& visited=excluded;\n+636\n+637 typedef std::vector::iterator Iterator;\n+638 typedef IteratorPropertyMap VisitedMap2;\n+639 Iterator end = visited.end();\n+640 for(Iterator iter= visited.begin(); iter != end; ++iter)\n+641 *iter=false;\n+642\n+643 VisitedMap2 visitedMap2(visited.begin(), Dune::IdentityMap());\n+644\n+645 std::shared_ptr\n+646 coarseMatrix(productBuilder.build(*(std::get<0>(graphs)), visitedMap2,\n+647 *info,\n+648 *aggregatesMap,\n+649 aggregates,\n+650 OverlapFlags()));\n+651 dverb<<\"Building of sparsity pattern took \"<freeGlobalLookup();\n+654\n+655 delete std::get<0>(graphs);\n+656 productBuilder.calculate(matrix->getmat(), *aggregatesMap, *coarseMatrix,\n+*infoLevel, OverlapFlags());\n+657\n+658 if(criterion.debugLevel()>2) {\n+659 if(rank==0)\n+660 std::cout<<\"Calculation entries of Galerkin product took \"<dot(b,z));\n-666 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be beta0 = beta;\n-667\n-668 // the search directions\n-669 std::array p{{b,b,b}};\n-670 p[0] = 0.0;\n-671 p[1] = 0.0;\n-672 p[2] = 0.0;\n+663 BIGINT nonzeros = _\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(*coarseMatrix);\n+664 allnonzeros = allnonzeros + infoLevel->communicator().sum(nonzeros);\n+665 MatrixArgs args(coarseMatrix, *infoLevel);\n+666\n+667 matrices_.addCoarser(args);\n+668 redistributes_.push_back(_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be());\n+669 } // end level loop\n+670\n+671\n+672 infoLevel->freeGlobalLookup();\n 673\n-674 // orthonormal basis vectors (in unpreconditioned case)\n-675 std::array q{{b,b,b}};\n-676 q[0] = 0.0;\n-677 q[1] *= Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-678 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-679 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/beta);\n-680 q[2] = 0.0;\n-681\n-682 z *= Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-683 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-684 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/beta);\n-685\n-686 // the loop\n-687 int i = 1;\n-688 for( ; i<=_\b__\bm_\ba_\bx_\bi_\bt; i++) {\n+674 built_=true;\n+675 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp* aggregatesMap=new _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(0);\n+676 aggregatesMaps_.push_back(aggregatesMap);\n+677\n+678 if(criterion.debugLevel()>0) {\n+679 if(level==criterion.maxLevel()) {\n+680 BIGINT unknownsLevel = mlevel->getmat().N();\n+681 unknownsLevel = infoLevel->communicator().sum(unknownsLevel);\n+682 double dunknownsLevel = unknownsLevel.todouble();\n+683 if(rank==0 && criterion.debugLevel()>1) {\n+684 std::cout<<\"Level \"<communicator().size()\n+685 <<\" unknowns per proc (procs=\"<communicator().size\n+()<<\")\"<apply(z,q[i2]); // q[i2] = Az\n-697 q[i2].axpy(-beta,q[i0]);\n-698 // alpha is real since it is the diagonal entry of the hermitian\n-tridiagonal matrix\n-699 // from the Lanczos Algorithm\n-700 // so the order in the scalar product doesn't matter even for the complex\n-case\n-701 alpha = _\b__\bs_\bp->dot(z,q[i2]);\n-702 q[i2].axpy(-alpha,q[i1]);\n+690 if(criterion.accumulate() && !redistributes_.back().isSetup() &&\n+691 infoLevel->communicator().size()>1) {\n+692#if HAVE_MPI && !HAVE_PARMETIS\n+693 if(criterion.accumulate()==_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu &&\n+694 infoLevel->communicator().rank()==0)\n+695 std::cerr<<\"Successive accumulation of data on coarse levels only works\n+with ParMETIS installed.\"\n+696 <<\" Fell back to accumulation to one domain on coarsest level\"< redistMat = std::make_shared();\n+701 std::shared_ptr redistComm;\n+702 int nodomains = 1;\n 703\n-704 z = 0.0;\n-705 _\b__\bp_\br_\be_\bc->apply(z,q[i2]);\n-706\n-707 // beta is real and positive in exact arithmetic\n-708 // since it is the norm of the basis vectors (in unpreconditioned case)\n-709 beta = sqrt(_\b__\bs_\bp->dot(q[i2],z));\n-710\n-711 q[i2] *= Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-712 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-713 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/beta);\n-714 z *= Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-715 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-716 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/beta);\n-717\n-718 // QR Factorization of recurrence coefficient matrix\n-719 // apply previous givens rotations to last column of T\n-720 T[1] = T[2];\n-721 if(i>2) {\n-722 T[0] = s[i%2]*T[1];\n-723 T[1] = c[i%2]*T[1];\n-724 }\n-725 if(i>1) {\n-726 T[2] = c[(i+1)%2]*alpha - s[(i+1)%2]*T[1];\n-727 T[1] = c[(i+1)%2]*T[1] + s[(i+1)%2]*alpha;\n-728 }\n-729 else\n-730 T[2] = alpha;\n-731\n-732 // update QR factorization\n-733 generateGivensRotation(T[2],beta,c[i%2],s[i%2]);\n-734 // to last column of T_k\n-735 T[2] = c[i%2]*T[2] + s[i%2]*beta;\n-736 // and to the rhs xi of the min problem\n-737 xi[i%2] = -s[i%2]*xi[(i+1)%2];\n-738 xi[(i+1)%2] *= c[i%2];\n-739\n-740 // compute correction direction\n-741 p[i2] = dummy;\n-742 p[i2].axpy(-T[1],p[i1]);\n-743 p[i2].axpy(-T[0],p[i0]);\n-744 p[i2] *= _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/T[2];\n-745\n-746 // apply correction/update solution\n-747 x.axpy(beta0*xi[(i+1)%2],p[i2]);\n-748\n-749 // remember beta_old\n-750 T[2] = beta;\n+704 _\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(mlevel->getmat(), redistMat, *infoLevel,\n+705 redistComm, redistributes_.back(), nodomains,criterion);\n+706 MatrixArgs args(redistMat, *redistComm);\n+707 BIGINT unknownsRedist = redistMat->N();\n+708 unknownsRedist = infoLevel->communicator().sum(unknownsRedist);\n+709\n+710 if(redistComm->communicator().rank()==0 && criterion.debugLevel()>1) {\n+711 double dunknownsRedist = unknownsRedist.todouble();\n+712 std::cout<<\"Level \"<communicator().size()\n+713 <<\" unknowns per proc (procs=\"<communicator().size\n+()<<\")\"<_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+(args));\n+716 infoLevel.addRedistributed(redistComm);\n+717 infoLevel->freeGlobalLookup();\n+718 }\n+719\n+720 int levels = matrices_.levels();\n+721 maxlevels_ = parallelInformation_.finest()->communicator().max(levels);\n+722 assert(matrices_.levels()==redistributes_.size());\n+723 if(hasCoarsest() && rank==0 && criterion.debugLevel()>1)\n+724 std::cout<<\"operator complexity: \"<\n+729 const typename _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by&\n+_\b7_\b3_\b0 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bc_\be_\bs() const\n+731 {\n+732 return matrices_;\n+733 }\n+734\n+735 template\n+736 const typename _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by&\n+_\b7_\b3_\b7 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn() const\n+738 {\n+739 return parallelInformation_;\n+740 }\n+741\n+742 template\n+_\b7_\b4_\b3 void _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bO_\bn_\bF_\bi_\bn_\be_\bs_\bt(std::\n+vector& data) const\n+744 {\n+745 int levels=aggregatesMaps().size();\n+746 int maxlevels=parallelInformation_._\bf_\bi_\bn_\be_\bs_\bt()->communicator().max(levels);\n+747 std::size_t size=(*(aggregatesMaps().begin()))->noVertices();\n+748 // We need an auxiliary vector for the consecutive prolongation.\n+749 std::vector tmp;\n+750 std::vector *coarse, *fine;\n 751\n-752 // check for convergence\n-753 // the last entry in the rhs of the min-problem is the residual\n-754 def = abs(beta0*xi[i%2]);\n-755 if(iteration.step(i, def)){\n-756 break;\n-757 }\n-758 } // end for\n-759\n-760 // postprocess preconditioner\n-761 _\b__\bp_\br_\be_\bc->post(x);\n-762 }\n-763\n-764 private:\n+752 // make sure the allocated space suffices.\n+753 tmp.reserve(size);\n+754 data.reserve(size);\n+755\n+756 // Correctly assign coarse and fine for the first prolongation such that\n+757 // we end up in data in the end.\n+758 if(levels%2==0) {\n+759 coarse=&tmp;\n+760 fine=&data;\n+761 }else{\n+762 coarse=&data;\n+763 fine=&tmp;\n+764 }\n 765\n-766 void generateGivensRotation(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dx, _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dy, _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be &cs,\n-_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &sn)\n-767 {\n-768 using std::sqrt;\n-769 using std::abs;\n-770 using std::max;\n-771 using std::min;\n-772 const _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be eps = 1e-15;\n-773 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_dx = abs(dx);\n-774 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_dy = abs(dy);\n-775 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_max = max(norm_dx, norm_dy);\n-776 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_min = min(norm_dx, norm_dy);\n-777 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be temp = norm_min/norm_max;\n-778 // we rewrite the code in a vectorizable fashion\n-779 cs = Simd::cond(norm_dy < eps,\n-780 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0),\n-781 Simd::cond(norm_dx < eps,\n-782 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(0.0),\n-783 Simd::cond(norm_dy > norm_dx,\n-784 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*temp,\n-785 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)\n-786 )));\n-787 sn = Simd::cond(norm_dy < eps,\n-788 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.0),\n-789 Simd::cond(norm_dx < eps,\n-790 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0),\n-791 Simd::cond(norm_dy > norm_dx,\n-792 // dy and dx are real in exact arithmetic\n-793 // thus dx*dy is real so we can explicitly enforce it\n-794 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*dx*dy/norm_dx/norm_dy,\n-795 // dy and dx is real in exact arithmetic\n-796 // so we don't have to conjugate both of them\n-797 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*dy/dx\n-798 )));\n-799 }\n-800\n-801 protected:\n-802 using IterativeSolver_\b:_\b:_\b__\bo_\bp;\n-803 using IterativeSolver_\b:_\b:_\b__\bp_\br_\be_\bc;\n-804 using IterativeSolver_\b:_\b:_\b__\bs_\bp;\n-805 using IterativeSolver_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-806 using IterativeSolver_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n-807 using IterativeSolver_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-_\b8_\b0_\b8 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n-809 };\n-_\b8_\b1_\b0 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"minressolver\",\n-defaultIterativeSolverCreator());\n-811\n-825 template\n-_\b8_\b2_\b6 class _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n-827 {\n-828 public:\n-829 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-830 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-831 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-832 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-833\n-834 protected:\n-835 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-836\n-_\b8_\b3_\b8 using _\bf_\bA_\bl_\bl_\bo_\bc = _\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>;\n-_\b8_\b4_\b0 using _\br_\bA_\bl_\bl_\bo_\bc = _\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be_\b>;\n-841\n-842 public:\n-843\n-_\b8_\b5_\b0 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>& op, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>&\n-prec, _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int restart, int maxit, int verbose) :\n-851 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,prec,reduction,maxit,verbose),\n-852 _\b__\br_\be_\bs_\bt_\ba_\br_\bt(restart)\n-853 {}\n-854\n-_\b8_\b6_\b1 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>& op, const\n-_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>& sp, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>& prec, _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction,\n-int restart, int maxit, int verbose) :\n-862 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,reduction,maxit,verbose),\n-863 _\b__\br_\be_\bs_\bt_\ba_\br_\bt(restart)\n-864 {}\n+766 // Number the unknowns on the coarsest level consecutively for each\n+process.\n+767 if(levels==maxlevels) {\n+768 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& map = *(*(++aggregatesMaps().rbegin()));\n+769 std::size_t m=0;\n+770\n+771 for(typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br iter = map._\bb_\be_\bg_\bi_\bn(); iter !=\n+map._\be_\bn_\bd(); ++iter)\n+772 if(*iter< _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n+773 m=std::max(*iter,m);\n+774\n+775 coarse->resize(m+1);\n+776 std::size_t i=0;\n+777 srand((unsigned)std::clock());\n+778 std::set used;\n+779 for(typename std::vector::iterator iter=coarse->begin(); iter\n+!= coarse->end();\n+780 ++iter, ++i)\n+781 {\n+782 std::pair::iterator,bool> ibpair\n+783 = used.insert(static_cast((((double)rand())/\n+(RAND_MAX+1.0)))*coarse->size());\n+784\n+785 while(!ibpair.second)\n+786 ibpair = used.insert(static_cast((((double)rand())/\n+(RAND_MAX+1.0))*coarse->size()));\n+787 *iter=*(ibpair.first);\n+788 }\n+789 }\n+790\n+791 typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br pinfo = parallelInformation\n+().coarsest();\n+792 --pinfo;\n+793\n+794 // Now consecutively project the numbers to the finest level.\n+795 for(typename AggregatesMapList::const_reverse_iterator\n+aggregates=++aggregatesMaps().rbegin();\n+796 aggregates != aggregatesMaps().rend(); ++aggregates,--levels) {\n+797\n+798 fine->resize((*aggregates)->noVertices());\n+799 fine->assign(fine->size(), 0);\n+800 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bv_\be_\bc_\bt_\bo_\br_\b<_\bs_\bt_\bd_\b:_\b:\n+_\bs_\bi_\bz_\be_\b__\bt_\b>, _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn>\n+801 ::prolongateVector(*(*aggregates), *coarse, *fine, static_cast\n+(1), *pinfo);\n+802 --pinfo;\n+803 std::swap(coarse, fine);\n+804 }\n+805\n+806 // Assertion to check that we really projected to data on the last step.\n+807 assert(coarse==&data);\n+808 }\n+809\n+810 template\n+811 const typename _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bL_\bi_\bs_\bt&\n+_\b8_\b1_\b2 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bs() const\n+813 {\n+814 return aggregatesMaps_;\n+815 }\n+816 template\n+817 const typename _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bL_\bi_\bs_\bt&\n+_\b8_\b1_\b8 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn() const\n+819 {\n+820 return redistributes_;\n+821 }\n+822\n+823 template\n+_\b8_\b2_\b4 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\b~_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by()\n+825 {\n+826 typedef typename AggregatesMapList::reverse_iterator AggregatesMapIterator;\n+827 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n+828 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br InfoIterator;\n+829\n+830 AggregatesMapIterator amap = aggregatesMaps_.rbegin();\n+831 InfoIterator info = parallelInformation_.coarsest();\n+832 for(Iterator level=matrices_.coarsest(), finest=matrices_.finest(); level\n+!= finest; --level, --info, ++amap) {\n+833 (*amap)->free();\n+834 delete *amap;\n+835 }\n+836 delete *amap;\n+837 }\n+838\n+839 template\n+840 template\n+_\b8_\b4_\b1 void _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn_\bV_\be_\bc_\bt_\bo_\br(_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bV_\b,_\bB_\bA_\b>,\n+TA>& hierarchy) const\n+842 {\n+843 assert(hierarchy.levels()==1);\n+844 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n+845 typedef typename RedistributeInfoList::const_iterator RIter;\n+846 RIter redist = redistributes_.begin();\n+847\n+848 Iterator matrix = matrices_.finest(), coarsest = matrices_.coarsest();\n+849 int level=0;\n+850 if(redist->isSetup())\n+851 hierarchy.addRedistributedOnCoarsest(matrix.getRedistributed().getmat().N\n+());\n+852 Dune::dvverb<<\"Level \"<getmat().N()<<\"\n+unknowns!\"<getmat().N()<<\"\n+unknowns!\"<getmat().N());\n+859 if(redist->isSetup())\n+860 hierarchy.addRedistributedOnCoarsest(matrix.getRedistributed().getmat().N\n+());\n+861\n+862 }\n+863\n+864 }\n 865\n-_\b8_\b7_\b8 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op, std::\n-shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> > prec, const ParameterTree& configuration) :\n-879 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,prec,configuration),\n-880 _\b__\br_\be_\bs_\bt_\ba_\br_\bt(configuration._\bg_\be_\bt(\"restart\"))\n-881 {}\n-882\n-_\b8_\b8_\b3 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op, std::\n-shared_ptr > sp, std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> >\n-prec, const ParameterTree& configuration) :\n-884 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,configuration),\n-885 _\b__\br_\be_\bs_\bt_\ba_\br_\bt(configuration._\bg_\be_\bt(\"restart\"))\n-886 {}\n-887\n-_\b8_\b9_\b4 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n-895 std::shared_ptr> sp,\n-896 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>> prec,\n-897 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int restart, int maxit, int verbose) :\n-898 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,reduction,maxit,verbose),\n-899 _\b__\br_\be_\bs_\bt_\ba_\br_\bt(restart)\n-900 {}\n-901\n-_\b9_\b1_\b0 virtual void _\ba_\bp_\bp_\bl_\by (X& x, Y& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-911 {\n-912 _\ba_\bp_\bp_\bl_\by(x,b,Simd::max(_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn),res);\n-913 }\n-914\n-_\b9_\b2_\b3 virtual void _\ba_\bp_\bp_\bl_\by (X& x, Y& b, [[maybe_unused]] double reduction,\n-_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-924 {\n-925 using std::abs;\n-926 const Simd::Scalar EPSILON = 1e-80;\n-927 const int m = _\b__\br_\be_\bs_\bt_\ba_\br_\bt;\n-928 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm = 0.0;\n-929 int j = 1;\n-930 std::vector s(m+1), sn(m);\n-931 std::vector cs(m);\n-932 // need copy of rhs if GMRes has to be restarted\n-933 Y b2(b);\n-934 // helper vector\n-935 Y w(b);\n-936 std::vector< std::vector > H(m+1,s);\n-937 std::vector v(m+1,b);\n+866 template\n+867 template\n+_\b8_\b6_\b8 void _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br(_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bS_\b,_\bT_\bA_\b>& smoothers,\n+869 const typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& sargs) const\n+870 {\n+871 assert(smoothers._\bl_\be_\bv_\be_\bl_\bs()==0);\n+872 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br MatrixIterator;\n+873 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br PinfoIterator;\n+874 typedef typename AggregatesMapList::const_iterator AggregatesIterator;\n+875\n+876 typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs cargs;\n+877 cargs.setArgs(sargs);\n+878 PinfoIterator pinfo = parallelInformation_.finest();\n+879 AggregatesIterator aggregates = aggregatesMaps_.begin();\n+880 int level=0;\n+881 for(MatrixIterator matrix = matrices_.finest(), coarsest =\n+matrices_.coarsest();\n+882 matrix != coarsest; ++matrix, ++pinfo, ++aggregates, ++level) {\n+883 cargs.setMatrix(matrix->getmat(), **aggregates);\n+884 cargs.setComm(*pinfo);\n+885 smoothers._\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br(cargs);\n+886 }\n+887 if(maxlevels()>levels()) {\n+888 // This is not the globally coarsest level and therefore smoothing is\n+needed\n+889 cargs.setMatrix(matrices_.coarsest()->getmat(), **aggregates);\n+890 cargs.setComm(*pinfo);\n+891 smoothers._\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br(cargs);\n+892 ++level;\n+893 }\n+894 }\n+895\n+896 template\n+897 template\n+_\b8_\b9_\b8 void _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn(const F& copyFlags)\n+899 {\n+900 typedef typename AggregatesMapList::iterator AggregatesMapIterator;\n+901 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n+902 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br InfoIterator;\n+903\n+904 AggregatesMapIterator amap = aggregatesMaps_.begin();\n+905 _\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt productBuilder;\n+906 InfoIterator info = parallelInformation_.finest();\n+907 typename RedistributeInfoList::iterator riIter = redistributes_.begin();\n+908 Iterator level = matrices_.finest(), coarsest=matrices_.coarsest();\n+909 if(level.isRedistributed()) {\n+910 info->buildGlobalLookup(level->getmat().N());\n+911 _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs(const_cast<_\bM_\ba_\bt_\br_\bi_\bx&>(level->getmat()),\n+912 const_cast<_\bM_\ba_\bt_\br_\bi_\bx&>(level.getRedistributed().getmat()),\n+913 *info,info.getRedistributed(), *riIter);\n+914 info->freeGlobalLookup();\n+915 }\n+916\n+917 for(; level!=coarsest; ++amap) {\n+918 const _\bM_\ba_\bt_\br_\bi_\bx& fine = (level.isRedistributed() ? level.getRedistributed() :\n+*level).getmat();\n+919 ++level;\n+920 ++info;\n+921 ++riIter;\n+922 productBuilder._\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be(fine, *(*amap), const_cast<_\bM_\ba_\bt_\br_\bi_\bx&>(level->getmat\n+()), *info, copyFlags);\n+923 if(level.isRedistributed()) {\n+924 info->buildGlobalLookup(level->getmat().N());\n+925 _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs(const_cast<_\bM_\ba_\bt_\br_\bi_\bx&>(level->getmat()),\n+926 const_cast<_\bM_\ba_\bt_\br_\bi_\bx&>(level.getRedistributed().getmat()), *info,\n+927 info.getRedistributed(), *riIter);\n+928 info->freeGlobalLookup();\n+929 }\n+930 }\n+931 }\n+932\n+933 template\n+_\b9_\b3_\b4 std::size_t _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs() const\n+935 {\n+936 return matrices_.levels();\n+937 }\n 938\n-939 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this,res);\n-940\n-941 // clear solver statistics and set res.converged to false\n-942 _\b__\bp_\br_\be_\bc->pre(x,b);\n-943\n-944 // calculate defect and overwrite rhs with it\n-945 _\b__\bo_\bp->applyscaleadd(-1.0,x,b); // b -= Ax\n-946 // calculate preconditioned defect\n-947 v[0] = 0.0; _\b__\bp_\br_\be_\bc->apply(v[0],b); // r = W^-1 b\n-948 norm = _\b__\bs_\bp->norm(v[0]);\n-949 if(iteration.step(0, norm)){\n-950 _\b__\bp_\br_\be_\bc->post(x);\n-951 return;\n-952 }\n-953\n-954 while(j <= _\b__\bm_\ba_\bx_\bi_\bt && res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd != true) {\n-955\n-956 int i = 0;\n-957 v[0] *= Simd::cond(norm==_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(0.),\n-958 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(0.),\n-959 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/norm);\n-960 s[0] = norm;\n-961 for(i=1; iapply(v[i],v[i+1]);\n-970 _\b__\bp_\br_\be_\bc->apply(w,v[i+1]);\n-971 for(int k=0; kdot(v[k],w) = v[k]\\adjoint w\n-973 // so one has to pay attention to the order\n-974 // in the scalar product for the complex case\n-975 // doing the modified Gram-Schmidt algorithm\n-976 H[k][i] = _\b__\bs_\bp->dot(v[k],w);\n-977 // w -= H[k][i] * v[k]\n-978 w.axpy(-H[k][i],v[k]);\n-979 }\n-980 H[i+1][i] = _\b__\bs_\bp->norm(w);\n-981 if(Simd::allTrue(abs(H[i+1][i]) < EPSILON))\n-982 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt,\n-983 \"breakdown in GMRes - |w| == 0.0 after \" << j << \" iterations\");\n-984\n-985 // normalize new vector\n-986 v[i+1] = w;\n-987 v[i+1] *= Simd::cond(norm==_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(0.),\n-988 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n-989 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/H[i+1][i]);\n-990\n-991 // update QR factorization\n-992 for(int k=0; k 0)\n-1020 std::cout << \"=== GMRes::restart\" << std::endl;\n-1021 // get saved rhs\n-1022 b = b2;\n-1023 // calculate new defect\n-1024 _\b__\bo_\bp->applyscaleadd(-1.0,x,b); // b -= Ax;\n-1025 // calculate preconditioned defect\n-1026 v[0] = 0.0;\n-1027 _\b__\bp_\br_\be_\bc->apply(v[0],b);\n-1028 norm = _\b__\bs_\bp->norm(v[0]);\n-1029 }\n-1030\n-1031 } //end while\n-1032\n-1033 // postprocess preconditioner\n-1034 _\b__\bp_\br_\be_\bc->post(x);\n-1035 }\n-1036\n-1037 protected :\n-1038\n-_\b1_\b0_\b3_\b9 void _\bu_\bp_\bd_\ba_\bt_\be(X& w, int i,\n-1040 const std::vector >& H,\n-1041 const std::vector& s,\n-1042 const std::vector& v) {\n-1043 // solution vector of the upper triangular system\n-1044 std::vector y(s);\n-1045\n-1046 // backsolve\n-1047 for(int a=i-1; a>=0; a--) {\n-1048 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be rhs(s[a]);\n-1049 for(int b=a+1; b\n-_\b1_\b0_\b6_\b2 typename std::enable_if::value,T>::type\n-_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be(const T& t) {\n-1063 return t;\n-1064 }\n-1065\n-1066 template\n-_\b1_\b0_\b6_\b7 typename std::enable_if::value,T>::\n-type _\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be(const T& t) {\n-1068 using std::conj;\n-1069 return conj(t);\n-1070 }\n-1071\n-1072 void\n-_\b1_\b0_\b7_\b3 _\bg_\be_\bn_\be_\br_\ba_\bt_\be_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dx, _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dy, _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be &cs,\n-_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &sn)\n-1074 {\n-1075 using std::sqrt;\n-1076 using std::abs;\n-1077 using std::max;\n-1078 using std::min;\n-1079 const _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be eps = 1e-15;\n-1080 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_dx = abs(dx);\n-1081 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_dy = abs(dy);\n-1082 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_max = max(norm_dx, norm_dy);\n-1083 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_min = min(norm_dx, norm_dy);\n-1084 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be temp = norm_min/norm_max;\n-1085 // we rewrite the code in a vectorizable fashion\n-1086 cs = Simd::cond(norm_dy < eps,\n-1087 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0),\n-1088 Simd::cond(norm_dx < eps,\n-1089 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(0.0),\n-1090 Simd::cond(norm_dy > norm_dx,\n-1091 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*temp,\n-1092 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)\n-1093 )));\n-1094 sn = Simd::cond(norm_dy < eps,\n-1095 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.0),\n-1096 Simd::cond(norm_dx < eps,\n-1097 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0),\n-1098 Simd::cond(norm_dy > norm_dx,\n-1099 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*dx*_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be(dy)/norm_dx/\n-norm_dy,\n-1100 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be(dy/dx)\n-1101 )));\n-1102 }\n-1103\n-1104\n-1105 void\n-_\b1_\b1_\b0_\b6 _\ba_\bp_\bp_\bl_\by_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dx, _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dy, _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be &cs,\n-_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &sn)\n-1107 {\n-1108 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be temp = cs * dx + sn * dy;\n-1109 dy = -_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be(sn) * dx + cs * dy;\n-1110 dx = temp;\n-1111 }\n-1112\n-1113 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n-1114 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n-1115 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n-1116 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-1117 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n-1118 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-_\b1_\b1_\b1_\b9 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n-_\b1_\b1_\b2_\b0 int _\b__\br_\be_\bs_\bt_\ba_\br_\bt;\n-1121 };\n-_\b1_\b1_\b2_\b2 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"restartedgmressolver\",\n-defaultIterativeSolverCreator());\n-1123\n-1137 template\n-_\b1_\b1_\b3_\b8 class _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bl_\be_\bx_\bi_\bb_\bl_\be_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br : public _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n-1139 {\n-1140 public:\n-1141 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-1142 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-1143 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-1144 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-1145\n-1146 private:\n-1147 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-1148\n-1150 using fAlloc = typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bf_\bA_\bl_\bl_\bo_\bc;\n-1152 using rAlloc = typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\bA_\bl_\bl_\bo_\bc;\n-1153\n-1154 public:\n-1155 // copy base class constructors\n-1156 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br::RestartedGMResSolver;\n-1157\n-1158 // don't shadow four-argument version of apply defined in the base class\n-1159 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n-1160\n-_\b1_\b1_\b6_\b9 void _\ba_\bp_\bp_\bl_\by (X& x, Y& b, [[maybe_unused]] double reduction,\n-_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res) override\n-1170 {\n-1171 using std::abs;\n-1172 const Simd::Scalar EPSILON = 1e-80;\n-1173 const int m = _\b__\br_\be_\bs_\bt_\ba_\br_\bt;\n-1174 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm = 0.0;\n-1175 int i, j = 1, k;\n-1176 std::vector s(m+1), sn(m);\n-1177 std::vector cs(m);\n-1178 // helper vector\n-1179 Y tmp(b);\n-1180 std::vector< std::vector > H(m+1,s);\n-1181 std::vector v(m+1,b);\n-1182 std::vector w(m+1,b);\n-1183\n-1184 Iteration iteration(*this,res);\n-1185 // setup preconditioner if it does something in pre\n-1186\n-1187 // calculate residual and overwrite a copy of the rhs with it\n-1188 _\b__\bp_\br_\be_\bc->pre(x, b);\n-1189 v[0] = b;\n-1190 _\b__\bo_\bp->applyscaleadd(-1.0, x, v[0]); // b -= Ax\n-1191\n-1192 norm = _\b__\bs_\bp->norm(v[0]); // the residual norm\n-1193 if(iteration.step(0, norm)){\n-1194 _\b__\bp_\br_\be_\bc->post(x);\n-1195 return;\n-1196 }\n-1197\n-1198 // start iterations\n-1199 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = false;;\n-1200 while(j <= _\b__\bm_\ba_\bx_\bi_\bt && res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd != true)\n-1201 {\n-1202 v[0] *= (1.0 / norm);\n-1203 s[0] = norm;\n-1204 for(i=1; iapply(w[i], v[i]);\n-1213 // compute vi = A*wi\n-1214 // use v[i+1] as temporary vector for w\n-1215 _\b__\bo_\bp->apply(w[i], v[i+1]);\n-1216 // do Arnoldi algorithm\n-1217 for(int kk=0; kkdot(v[k],v[i+1]) = v[k]\\adjoint v[i+1]\n-1220 // so one has to pay attention to the order\n-1221 // in the scalar product for the complex case\n-1222 // doing the modified Gram-Schmidt algorithm\n-1223 H[kk][i] = _\b__\bs_\bp->dot(v[kk],v[i+1]);\n-1224 // w -= H[k][i] * v[kk]\n-1225 v[i+1].axpy(-H[kk][i], v[kk]);\n-1226 }\n-1227 H[i+1][i] = _\b__\bs_\bp->norm(v[i+1]);\n-1228 if(Simd::allTrue(abs(H[i+1][i]) < EPSILON))\n-1229 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt, \"breakdown in fGMRes - |w| (-> \"\n-1230 << w[i] << \") == 0.0 after \"\n-1231 << j << \" iterations\");\n-1232\n-1233 // v[i+1] = w*1/H[i+1][i]\n-1234 v[i+1] *= _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/H[i+1][i];\n-1235\n-1236 // update QR factorization\n-1237 for(k=0; k_\ba_\bp_\bp_\bl_\by_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(H[k][i],H[k+1][i],cs[k],sn[k]);\n-1239\n-1240 // compute new givens rotation\n-1241 this->_\bg_\be_\bn_\be_\br_\ba_\bt_\be_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(H[i][i],H[i+1][i],cs[i],sn[i]);\n-1242\n-1243 // finish updating QR factorization\n-1244 this->_\ba_\bp_\bp_\bl_\by_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(H[i][i],H[i+1][i],cs[i],sn[i]);\n-1245 this->_\ba_\bp_\bp_\bl_\by_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(s[i],s[i+1],cs[i],sn[i]);\n-1246\n-1247 // norm of the residual is the last component of vector s\n-1248 using std::abs;\n-1249 norm = abs(s[i+1]);\n-1250 iteration.step(j, norm);\n-1251 } // end inner for loop\n-1252\n-1253 // calculate update vector\n-1254 tmp = 0.0;\n-1255 this->_\bu_\bp_\bd_\ba_\bt_\be(tmp, i, H, s, w);\n-1256 // and update current iterate\n-1257 x += tmp;\n-1258\n-1259 // restart fGMRes if convergence was not achieved,\n-1260 // i.e. linear residual has not reached desired reduction\n-1261 // and if still j < _maxit (do not restart on last iteration)\n-1262 if( res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd != true && j < _\b__\bm_\ba_\bx_\bi_\bt)\n-1263 {\n-1264 if (_\b__\bv_\be_\br_\bb_\bo_\bs_\be > 0)\n-1265 std::cout << \"=== fGMRes::restart\" << std::endl;\n-1266 // get rhs\n-1267 v[0] = b;\n-1268 // calculate new defect\n-1269 _\b__\bo_\bp->applyscaleadd(-1.0, x,v[0]); // b -= Ax;\n-1270 // calculate preconditioned defect\n-1271 norm = _\b__\bs_\bp->norm(v[0]); // update the residual norm\n-1272 }\n-1273\n-1274 } // end outer while loop\n-1275\n-1276 // post-process preconditioner\n-1277 _\b__\bp_\br_\be_\bc->post(x);\n-1278 }\n-1279\n-1280private:\n-1281 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n-1282 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n-1283 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n-1284 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-1285 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n-1286 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-1287 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bs_\bt_\ba_\br_\bt;\n-1288 using Iteration = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n-Iteration;\n-1289 };\n-_\b1_\b2_\b9_\b0 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"restartedflexiblegmressolver\",\n-defaultIterativeSolverCreator());\n-1291\n-1305 template\n-_\b1_\b3_\b0_\b6 class _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n-1307 {\n-1308 public:\n-1309 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-1310 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-1311 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-1312 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-1313\n-1314 private:\n-1315 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-1316\n-1318 using fAlloc = _\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>;\n-1319\n-1320 public:\n-1321\n-1322 // don't shadow four-argument version of apply defined in the base class\n-1323 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n-1324\n-_\b1_\b3_\b3_\b1 _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>&\n-prec, _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, int restart = 10) :\n-1332 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,prec,reduction,maxit,verbose),\n-1333 _restart(restart)\n-1334 {}\n-1335\n-_\b1_\b3_\b4_\b3 _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, const\n-_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>& sp, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>& prec, _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction,\n-int maxit, int verbose, int restart = 10) :\n-1344 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,reduction,maxit,verbose),\n-1345 _restart(restart)\n-1346 {}\n-1347\n-1348\n-_\b1_\b3_\b6_\b1 _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op,\n-std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> > prec, const ParameterTree& configuration)\n-:\n-1362 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,prec,configuration),\n-1363 _restart(configuration._\bg_\be_\bt(\"restart\"))\n-1364 {}\n-1365\n-_\b1_\b3_\b6_\b6 _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op,\n-std::shared_ptr > sp, std::\n-shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> > prec, const ParameterTree& configuration) :\n-1367 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,configuration),\n-1368 _restart(configuration._\bg_\be_\bt(\"restart\"))\n-1369 {}\n-_\b1_\b3_\b7_\b7 _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n-1378 std::shared_ptr> sp,\n-1379 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>> prec,\n-1380 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose,\n-1381 int restart = 10) :\n-1382 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,reduction,maxit,verbose),\n-1383 _restart(restart)\n-1384 {}\n-1385\n-_\b1_\b3_\b9_\b1 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-1392 {\n-1393 Iteration iteration(*this, res);\n-1394 _\b__\bp_\br_\be_\bc->pre(x,b); // prepare preconditioner\n-1395 _\b__\bo_\bp->applyscaleadd(-1,x,b); // overwrite b with defect\n-1396\n-1397 std::vector > p(_restart);\n-1398 std::vector pp(_restart);\n-1399 X q(x); // a temporary vector\n-1400 X prec_res(x); // a temporary vector for preconditioner output\n-1401\n-1402 p[0].reset(new X(x));\n-1403\n-1404 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(b); // compute norm\n-1405 if(iteration.step(0, def)){\n-1406 _\b__\bp_\br_\be_\bc->post(x);\n-1407 return;\n-1408 }\n-1409 // some local variables\n-1410 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be rho, lambda;\n-1411\n-1412 int i=0;\n-1413 int ii=0;\n-1414 // determine initial search direction\n-1415 *(p[0]) = 0; // clear correction\n-1416 _\b__\bp_\br_\be_\bc->apply(*(p[0]),b); // apply preconditioner\n-1417 rho = _\b__\bs_\bp->dot(*(p[0]),b); // orthogonalization\n-1418 _\b__\bo_\bp->apply(*(p[0]),q); // q=Ap\n-1419 pp[0] = _\b__\bs_\bp->dot(*(p[0]),q); // scalar product\n-1420 lambda = rho/pp[0]; // minimization\n-1421 x.axpy(lambda,*(p[0])); // update solution\n-1422 b.axpy(-lambda,q); // update defect\n-1423\n-1424 // convergence test\n-1425 def=_\b__\bs_\bp->norm(b); // comp defect norm\n-1426 ++i;\n-1427 if(iteration.step(i, def)){\n-1428 _\b__\bp_\br_\be_\bc->post(x);\n-1429 return;\n-1430 }\n-1431\n-1432 while(i<_\b__\bm_\ba_\bx_\bi_\bt) {\n-1433 // the loop\n-1434 int end=std::min(_restart, _\b__\bm_\ba_\bx_\bi_\bt-i+1);\n-1435 for (ii=1; iiapply(prec_res,b); // apply preconditioner\n-1441\n-1442 p[ii].reset(new X(prec_res));\n-1443 _\b__\bo_\bp->apply(prec_res, q);\n-1444\n-1445 for(int j=0; jdot(q,*(p[j]))/pp[j];\n-1447 p[ii]->axpy(-rho, *(p[j]));\n-1448 }\n-1449\n-1450 // minimize in given search direction\n-1451 _\b__\bo_\bp->apply(*(p[ii]),q); // q=Ap\n-1452 pp[ii] = _\b__\bs_\bp->dot(*(p[ii]),q); // scalar product\n-1453 rho = _\b__\bs_\bp->dot(*(p[ii]),b); // orthogonalization\n-1454 lambda = rho/pp[ii]; // minimization\n-1455 x.axpy(lambda,*(p[ii])); // update solution\n-1456 b.axpy(-lambda,q); // update defect\n-1457\n-1458 // convergence test\n-1459 def = _\b__\bs_\bp->norm(b); // comp defect norm\n-1460\n-1461 ++i;\n-1462 iteration.step(i, def);\n-1463 }\n-1464 if(res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd)\n-1465 break;\n-1466 if(end==_restart) {\n-1467 *(p[0])=*(p[_restart-1]);\n-1468 pp[0]=pp[_restart-1];\n-1469 }\n-1470 }\n-1471\n-1472 // postprocess preconditioner\n-1473 _\b__\bp_\br_\be_\bc->post(x);\n-1474\n-1475 }\n-1476\n-1477 private:\n-1478 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n-1479 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n-1480 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n-1481 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-1482 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n-1483 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-1484 using Iteration = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n-Iteration;\n-1485 int _restart;\n-1486 };\n-_\b1_\b4_\b8_\b7 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"generalizedpcgsolver\",\n-defaultIterativeSolverCreator());\n-1488\n-1500 template\n-_\b1_\b5_\b0_\b1 class _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n-1502 public:\n-1503 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-1504 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-1505 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-1506 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-1507\n-1508 private:\n-1509 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-1510\n-1511 public:\n-1512 // don't shadow four-argument version of apply defined in the base class\n-1513 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n-_\b1_\b5_\b1_\b9 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>&\n-prec,\n-1520 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, int mmax = 10) :\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, prec, reduction, maxit, verbose), _\b__\bm_\bm_\ba_\bx(mmax)\n-1521 {\n-1522 }\n-1523\n-_\b1_\b5_\b2_\b9 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, const _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>&\n-sp, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>& prec,\n-1530 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, int mmax = 10) :\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, sp, prec, reduction, maxit, verbose), _\b__\bm_\bm_\ba_\bx(mmax)\n-1531 {\n-1532 }\n-1533\n-_\b1_\b5_\b3_\b9 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n-1540 std::shared_ptr> sp,\n-1541 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>> prec,\n-1542 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose,\n-1543 int mmax = 10)\n-1544 : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, sp, prec, reduction, maxit, verbose), _\b__\bm_\bm_\ba_\bx\n-(mmax)\n-1545 {}\n-1546\n-_\b1_\b5_\b5_\b9 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n-1560 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>> prec,\n-1561 const ParameterTree& config)\n-1562 : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, prec, config), _\b__\bm_\bm_\ba_\bx(config._\bg_\be_\bt(\"mmax\", 10))\n-1563 {}\n-1564\n-_\b1_\b5_\b6_\b5 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n-1566 std::shared_ptr> sp,\n-1567 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>> prec,\n-1568 const ParameterTree& config)\n-1569 : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, sp, prec, config), _\b__\bm_\bm_\ba_\bx(config._\bg_\be_\bt(\"mmax\",\n-10))\n-1570 {}\n-1571\n-_\b1_\b5_\b8_\b4 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-1585 {\n-1586 using rAlloc = _\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>;\n-1587 res._\bc_\bl_\be_\ba_\br();\n-1588 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this,res);\n-1589 _\b__\bp_\br_\be_\bc->pre(x,b); // prepare preconditioner\n-1590 _\b__\bo_\bp->applyscaleadd(-1,x,b); // overwrite b with defect\n-1591\n-1592 //arrays for interim values:\n-1593 std::vector d(_\b__\bm_\bm_\ba_\bx+1, x); // array for directions\n-1594 std::vector Ad(_\b__\bm_\bm_\ba_\bx+1, x); // array for Ad[i]\n-1595 std::vector ddotAd(_\b__\bm_\bm_\ba_\bx+1,0); // array for \n-1596 X w(x);\n-1597\n-1598 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(b); // compute norm\n-1599 if(iteration.step(0, def)){\n-1600 _\b__\bp_\br_\be_\bc->post(x);\n-1601 return;\n-1602 }\n-1603\n-1604 // some local variables\n-1605 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha;\n-1606\n-1607 // the loop\n-1608 int i=1;\n-1609 int i_bounded=0;\n-1610 while(i<=_\b__\bm_\ba_\bx_\bi_\bt && !res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd) {\n-1611 for (; i_bounded <= _\b__\bm_\bm_\ba_\bx && i<= _\b__\bm_\ba_\bx_\bi_\bt; i_bounded++) {\n-1612 d[i_bounded] = 0; // reset search direction\n-1613 _\b__\bp_\br_\be_\bc->apply(d[i_bounded], b); // apply preconditioner\n-1614 w = d[i_bounded]; // copy of current d[i]\n-1615 // orthogonalization with previous directions\n-1616 orthogonalizations(i_bounded,Ad,w,ddotAd,d);\n-1617\n-1618 //saving interim values for future calculating\n-1619 _\b__\bo_\bp->apply(d[i_bounded], Ad[i_bounded]); // save Ad[i]\n-1620 ddotAd[i_bounded]=_\b__\bs_\bp->dot(d[i_bounded],Ad[i_bounded]); // save \n-1621 alpha = _\b__\bs_\bp->dot(d[i_bounded], b)/ddotAd[i_bounded]; // /\n-1622\n-1623 //update solution and defect\n-1624 x.axpy(alpha, d[i_bounded]);\n-1625 b.axpy(-alpha, Ad[i_bounded]);\n-1626\n-1627 // convergence test\n-1628 def = _\b__\bs_\bp->norm(b); // comp defect norm\n-1629\n-1630 iteration.step(i, def);\n-1631 i++;\n-1632 }\n-1633 //restart: exchange first and last stored values\n-1634 cycle(Ad,d,ddotAd,i_bounded);\n-1635 }\n-1636\n-1637 //correct i which is wrong if convergence was not achieved.\n-1638 i=std::min(_\b__\bm_\ba_\bx_\bi_\bt,i);\n-1639\n-1640 _\b__\bp_\br_\be_\bc->post(x); // postprocess preconditioner\n-1641 }\n-1642\n-1643 private:\n-1644 //This function is called every iteration to orthogonalize against the\n-last search directions\n-1645 virtual void orthogonalizations(const int& i_bounded,const std::vector&\n-Ad, const X& w, const std::\n-vector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be,_\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>>& ddotAd,std::vector&\n-d) {\n-1646 // The RestartedFCGSolver uses only values with lower array index;\n-1647 for (int k = 0; k < i_bounded; k++) {\n-1648 d[i_bounded].axpy(-_\b__\bs_\bp->dot(Ad[k], w) / ddotAd[k], d[k]); // d[i] -= </>d[k]\n-1649 }\n-1650 }\n-1651\n-1652 // This function is called every mmax iterations to handle limited array\n-sizes.\n-1653 virtual void cycle(std::vector& Ad,std::vector& d,std::\n-vector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be,ReboundAllocatorType >& ddotAd,int& i_bounded)\n-{\n-1654 // Reset loop index and exchange the first and last arrays\n-1655 i_bounded = 1;\n-1656 std::swap(Ad[0], Ad[_\b__\bm_\bm_\ba_\bx]);\n-1657 std::swap(d[0], d[_\b__\bm_\bm_\ba_\bx]);\n-1658 std::swap(ddotAd[0], ddotAd[_\b__\bm_\bm_\ba_\bx]);\n-1659 }\n-1660\n-1661 protected:\n-_\b1_\b6_\b6_\b2 int _\b__\bm_\bm_\ba_\bx;\n-1663 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n-1664 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n-1665 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n-1666 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-1667 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n-1668 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-_\b1_\b6_\b6_\b9 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n-1670 };\n-_\b1_\b6_\b7_\b1 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"restartedfcgsolver\",\n-defaultIterativeSolverCreator());\n-1672\n-1679 template\n-_\b1_\b6_\b8_\b0 class _\bC_\bo_\bm_\bp_\bl_\be_\bt_\be_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br : public _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br {\n-1681 public:\n-1682 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-1683 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-1684 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-1685 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-1686\n-1687 // copy base class constructors\n-1688 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br::RestartedFCGSolver;\n-1689\n-1690 // don't shadow four-argument version of apply defined in the base class\n-1691 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n-1692\n-1693 // just a minor part of the RestartedFCGSolver apply method will be\n-modified\n-_\b1_\b6_\b9_\b4 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res) override {\n-1695 // reset limiter of orthogonalization loop\n-1696 _k_limit = 0;\n-1697 this->_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(x,b,res);\n-1698 };\n-1699\n-1700 private:\n-1701 // This function is called every iteration to orthogonalize against the\n-last search directions.\n-1702 virtual void orthogonalizations(const int& i_bounded,const std::vector&\n-Ad, const X& w, const std::\n-vector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be,_\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>>& ddotAd,std::vector&\n-d) override {\n-1703 // This FCGSolver uses values with higher array indexes too, if existent.\n-1704 for (int k = 0; k < _k_limit; k++) {\n-1705 if(i_bounded!=k)\n-1706 d[i_bounded].axpy(-_\b__\bs_\bp->dot(Ad[k], w) / ddotAd[k], d[k]); // d[i] -= </>d[k]\n-1707 }\n-1708 // The loop limit increase, if array is not completely filled.\n-1709 if(_k_limit<=i_bounded)\n-1710 _k_limit++;\n-1711\n-1712 };\n-1713\n-1714 // This function is called every mmax iterations to handle limited array\n-sizes.\n-1715 virtual void cycle(std::vector& Ad, [[maybe_unused]] std::vector& d,\n-[[maybe_unused]] std::vector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be,ReboundAllocatorType >&\n-ddotAd,int& i_bounded) override {\n-1716 // Only the loop index i_bounded return to 0, if it reached mmax.\n-1717 i_bounded = 0;\n-1718 // Now all arrays are filled and the loop in void orthogonalizations can\n-use the whole arrays.\n-1719 _k_limit = Ad.size();\n-1720 };\n-1721\n-1722 int _k_limit = 0;\n-1723\n-1724 protected:\n-1725 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\bm_\ba_\bx;\n-1726 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n-1727 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n-1728 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n-1729 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-1730 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n-1731 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-1732 };\n-_\b1_\b7_\b3_\b3 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"completefcgsolver\",\n-defaultIterativeSolverCreator());\n-1735} // end namespace\n-1736\n-1737#endif\n-_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\n-_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR\n-#define DUNE_REGISTER_ITERATIVE_SOLVER(name,...)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:19\n-_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n-Define base class for scalar product and norm.\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b._\bh_\bh\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\n-_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n-Define general, extensible interface for inverse operators.\n-_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n-Define general, extensible interface for operators. The available\n-implementation wraps a matrix.\n-_\ba_\br_\bp_\ba_\bc_\bk_\bp_\bp_\b._\bh_\bh\n+939 template\n+_\b9_\b4_\b0 std::size_t _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs() const\n+941 {\n+942 return maxlevels_;\n+943 }\n+944\n+945 template\n+_\b9_\b4_\b6 bool _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bh_\ba_\bs_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt() const\n+947 {\n+948 return levels()==maxlevels() &&\n+949 (!matrices_.coarsest().isRedistributed() ||matrices_.coarsest()->getmat().N\n+()>0);\n+950 }\n+951\n+952 template\n+_\b9_\b5_\b3 bool _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bi_\bs_\bB_\bu_\bi_\bl_\bt() const\n+954 {\n+955 return built_;\n+956 }\n+957\n+959 } // namespace Amg\n+960} // namespace Dune\n+961\n+962#endif // end DUNE_AMG_MATRIXHIERARCHY_HH\n+_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh\n+Functionality for redistributing a sparse matrix.\n+_\bg_\br_\ba_\bp_\bh_\bc_\br_\be_\ba_\bt_\bo_\br_\b._\bh_\bh\n+_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh\n+Provides a classes representing the hierarchies in AMG.\n+_\bg_\bl_\bo_\bb_\ba_\bl_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n+Provdes class for identifying aggregates globally.\n+_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\n+Classes for the generic construction and application of the smoothers.\n+_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n+Provides classes for the Coloring process of AMG.\n+_\bi_\bn_\bd_\bi_\bc_\be_\bs_\bc_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b._\bh_\bh\n+Provides a class for building the index set and remote indices on the coarse\n+level.\n+_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\n+Provides classes for building the matrix graph.\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Helper classes for the construction of classes without empty constructor.\n+_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh\n+Provides classes for initializing the link attributes of a matrix graph.\n+_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\n+_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\n+Provides a class for building the galerkin product based on a aggregation\n+scheme.\n+_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh\n+Prolongation and restriction for amg.\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\n+Some handy generic functions for ISTL matrices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs\n+auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::\n+value > *sfinae=nullptr)\n+Get the number of nonzero fields in the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:119\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bs\n+const AggregatesMapList & aggregatesMaps() const\n+Get the hierarchy of the mappings of the nodes onto aggregates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:812\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bi_\bs_\bB_\bu_\bi_\bl_\bt\n+bool isBuilt() const\n+Whether the hierarchy was built.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:953\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bh_\ba_\bs_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt\n+bool hasCoarsest() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:946\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs\n+std::size_t levels() const\n+Get the number of levels in the hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:322\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs\n+std::size_t levels() const\n+Get the number of levels in the hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:934\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br\n+void addCoarser(Arguments &args)\n+Add an element on a coarser level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:334\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+const RedistributeInfoList & redistributeInformation() const\n+Get the hierarchy of the information about redistributions,.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:818\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+const ParallelInformationHierarchy & parallelInformation() const\n+Get the hierarchy of the parallel data distribution information.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:737\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx\n+bool repartitionAndDistributeMatrix(const M &origMatrix, std::shared_ptr< M >\n+newMatrix, SequentialInformation &origComm, std::shared_ptr<\n+SequentialInformation > &newComm, RedistributeInformation<\n+SequentialInformation > &ri, int nparts, C1 &criterion)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:313\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:725\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bc_\be_\bs\n+const ParallelMatrixHierarchy & matrices() const\n+Get the matrix hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:730\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs\n+std::size_t maxlevels() const\n+Get the max number of levels in the hierarchy of processors.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:940\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:730\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD\n+static const V ISOLATED\n+Identifier of isolated vertices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:571\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn\n+void recalculateGalerkin(const F ©Flags)\n+Recalculate the galerkin products.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:898\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+const void * Arguments\n+A type holding all the arguments needed to call the constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n+std::size_t noVertices() const\n+Get the number of vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< T > construct(Arguments &args)\n+Construct an object with the specified arguments.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn_\bV_\be_\bc_\bt_\bo_\br\n+void coarsenVector(Hierarchy< BlockVector< V, BA >, TA > &hierarchy) const\n+Coarsen the vector hierarchy according to the matrix hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:841\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+const AggregateDescriptor * const_iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:723\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+MatrixHierarchy(std::shared_ptr< MatrixOperator > fineMatrix, std::shared_ptr<\n+ParallelInformation > pinfo=std::make_shared< ParallelInformation >())\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:389\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be\n+AccumulationMode\n+Identifiers for the different accumulation modes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:232\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bf_\bi_\bn_\be_\bs_\bt\n+Iterator finest()\n+Get an iterator positioned at the finest level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:377\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bb_\bu_\bi_\bl_\bd\n+void build(const T &criterion)\n+Build the matrix hierarchy using aggregation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:400\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bf_\br_\be_\be\n+void free()\n+Free the allocated memory.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n+void coarsenSmoother(Hierarchy< S, TA > &smoothers, const typename\n+SmootherTraits< S >::Arguments &args) const\n+Coarsen the smoother hierarchy according to the matrix hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:868\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+void buildDependency(G &graph, const typename C::Matrix &matrix, C criterion,\n+bool finestLevel)\n+Build the dependency of the matrix graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs\n+std::tuple< int, int, int, int > buildAggregates(const M &matrix, G &graph,\n+const C &criterion, bool finestLevel)\n+Build the aggregates.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be\n+void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse,\n+const I &pinfo, const O ©)\n+Calculate the galerkin product.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bO_\bn_\bF_\bi_\bn_\be_\bs_\bt\n+void getCoarsestAggregatesOnFinest(std::vector< std::size_t > &data) const\n+Get the mapping of fine level unknowns to coarse level aggregates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:743\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\b~_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+~MatrixHierarchy()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:824\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\bA_\bX_\b__\bP_\bR_\bO_\bC_\bE_\bS_\bS_\bE_\bS\n+@ MAX_PROCESSES\n+Hard limit for the number of processes allowed.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:50\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu\n+@ atOnceAccu\n+Accumulate data to one process at once.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:244\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu\n+@ successiveAccu\n+Successively accumulate to fewer processes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:248\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n+_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bG_\bl_\bo_\bb_\ba_\bl_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx\n+void printGlobalSparseMatrix(const M &mat, C &ooc, std::ostream &os)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:154\n _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n-typename std::allocator_traits< typename AllocatorTraits< T >::type >::template\n-rebind_alloc< X > ReboundAllocatorType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bw_\bi_\bs_\be\n-@ row_wise\n-Build in a row-wise manner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:521\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd\n-CreateIterator createend()\n-get create iterator pointing to one after the last block\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1103\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn\n-CreateIterator createbegin()\n-get initial create iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1097\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-number of rows (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs\n+void redistributeMatrixEntries(M &origMatrix, M &newMatrix, C &origComm, C\n+&newComm, RedistributeInformation< C > &ri)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:757\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn\n+bool commGraphRepartition(const M &mat, Dune::OwnerOverlapCopyCommunication<\n+T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::\n+OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface\n+&redistInf, bool verbose=false)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:829\n+_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx\n+void redistributeMatrix(M &origMatrix, M &newMatrix, C &origComm, C &newComm,\n+RedistributeInformation< C > &ri)\n+Redistribute a matrix according to given domain decompositions.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:820\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn\n+bool graphRepartition(const G &graph, Dune::OwnerOverlapCopyCommunication< T1,\n+T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::\n+OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface\n+&redistInf, bool verbose=false)\n+execute a graph repartition for a giving graph and indexset.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:1235\n _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n A vector of blocks with memory management.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n-Wrapper to use a range of ARPACK++ eigenvalue solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:245\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\ba_\bx_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be\n-void computeSymMaxMagnitude(const Real &epsilon, BlockVector &x, Real &lambda)\n-const\n-Assume the matrix to be square, symmetric and perform IRLM to compute an\n-approximation lambda of its ...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:289\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\bi_\bn_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be\n-void computeSymMinMagnitude(const Real &epsilon, BlockVector &x, Real &lambda)\n-const\n-Assume the matrix to be square, symmetric and perform IRLM to compute an\n-approximation lambda of its ...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:391\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt\n-Thrown when a solver aborts due to some problem.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-A linear operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Base class for scalar product and norm computation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\b__\be_\bs_\bt_\bi_\bm_\ba_\bt_\be\n-double condition_estimate\n-Estimate of condition number.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:79\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bl_\be_\ba_\br\n-void clear()\n-Resets all data.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n-bool converged\n-True if convergence criterion has been met.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-Simd::Scalar< real_type > scalar_real_type\n-scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:114\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-Type of the range of the operator to be inverted.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:105\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-Type of the domain of the operator to be inverted.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:102\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:108\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-FieldTraits< field_type >::real_type real_type\n-The real type of the field type (is the same if using real numbers, but differs\n-for std::complex)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:111\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n-Base class for all implementations of iterative solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:203\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\bs_\bp\n-std::shared_ptr< const ScalarProduct< X > > _sp\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:506\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\bo_\bp\n-std::shared_ptr< const LinearOperator< X, X > > _op\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:504\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt\n-int _maxit\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:508\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be\n-int _verbose\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:509\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn\n-scalar_real_type _reduction\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:507\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\bp_\br_\be_\bc\n-std::shared_ptr< Preconditioner< X, X > > _prec\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:505\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br\n-Preconditioned loop solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:59\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, X &b, InverseOperatorResult &res)\n-Apply inverse operator,.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:116\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br\n-gradient method\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:124\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, X &b, InverseOperatorResult &res)\n-Apply inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:142\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:187\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-conjugate gradient method\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:193\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-CGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr<\n-ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec,\n-scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)\n-Constructor to initialize a CG solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:256\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be\n-static constexpr bool enableConditionEstimate\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:208\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-CGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X > &sp,\n-Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int\n-verbose, bool condition_estimate)\n-Constructor to initialize a CG solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:239\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, X &b, InverseOperatorResult &res)\n-Apply inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:279\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-CGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X > &prec,\n-scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)\n-Constructor to initialize a CG solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:222\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:412\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br\n-Bi-conjugate Gradient Stabilized (BiCG-STAB)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:419\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-typename IterativeSolver< X, X >::template Iteration< CountType > Iteration\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:598\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, X &b, InverseOperatorResult &res)\n-Apply inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:439\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br\n-Minimal Residual Method (MINRES)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:609\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, X &b, InverseOperatorResult &res)\n-Apply inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:627\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:808\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n-implements the Generalized Minimal Residual (GMRes) method\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:827\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n-RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n-shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:878\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be\n-std::enable_if::value, T >::type\n-conjugate(const T &t)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1067\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n-RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n-shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n-X > > prec, const ParameterTree &configuration)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:883\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bu_\bp_\bd_\ba_\bt_\be\n-void update(X &w, int i, const std::vector< std::vector< field_type, fAlloc > >\n-&H, const std::vector< field_type, fAlloc > &s, const std::vector< X > &v)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1039\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be\n-std::enable_if< std::is_same< field_type, real_type >::value, T >::type\n-conjugate(const T &t)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1062\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bf_\bA_\bl_\bl_\bo_\bc\n-ReboundAllocatorType< X, field_type > fAlloc\n-field_type Allocator retrieved from domain type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:838\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bs_\bt_\ba_\br_\bt\n-int _restart\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\bA_\bl_\bl_\bo_\bc\n-ReboundAllocatorType< X, real_type > rAlloc\n-real_type Allocator retrieved from domain type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:840\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, Y &b, double reduction, InverseOperatorResult &res)\n-Apply inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:923\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n-RestartedGMResSolver(const LinearOperator< X, Y > &op, Preconditioner< X, Y >\n-&prec, scalar_real_type reduction, int restart, int maxit, int verbose)\n-Set up RestartedGMResSolver solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:850\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n-RestartedGMResSolver(const LinearOperator< X, Y > &op, const ScalarProduct< X >\n-&sp, Preconditioner< X, Y > &prec, scalar_real_type reduction, int restart, int\n-maxit, int verbose)\n-Set up RestartedGMResSolver solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:861\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bg_\be_\bn_\be_\br_\ba_\bt_\be_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn\n-void generatePlaneRotation(field_type &dx, field_type &dy, real_type &cs,\n-field_type &sn)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1073\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n-RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n-shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n-Y > > prec, scalar_real_type reduction, int restart, int maxit, int verbose)\n-Set up RestartedGMResSolver solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:894\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, Y &b, InverseOperatorResult &res)\n-Apply inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:910\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1119\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn\n-void applyPlaneRotation(field_type &dx, field_type &dy, real_type &cs,\n-field_type &sn)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1106\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bl_\be_\bx_\bi_\bb_\bl_\be_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n-implements the Flexible Generalized Minimal Residual (FGMRes) method (right\n-preconditioned)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1139\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bl_\be_\bx_\bi_\bb_\bl_\be_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(X &x, Y &b, double reduction, InverseOperatorResult &res) override\n-Apply inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1169\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-Generalized preconditioned conjugate gradient solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1307\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-GeneralizedPCGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X >\n-&sp, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int\n-verbose, int restart=10)\n-Set up nonlinear preconditioned conjugate gradient solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1343\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-GeneralizedPCGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X >\n-&prec, scalar_real_type reduction, int maxit, int verbose, int restart=10)\n-Set up nonlinear preconditioned conjugate gradient solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1331\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, X &b, InverseOperatorResult &res)\n-Apply inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1391\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n-shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1361\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n-shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n-X > > prec, scalar_real_type reduction, int maxit, int verbose, int restart=10)\n-Set up nonlinear preconditioned conjugate gradient solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1377\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n-shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n-X > > prec, const ParameterTree &configuration)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1366\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-Accelerated flexible conjugate gradient method.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1501\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-RestartedFCGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X >\n-&prec, scalar_real_type reduction, int maxit, int verbose, int mmax=10)\n-Constructor to initialize a RestartedFCG solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1519\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n-shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &config)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+Type for indices and sizes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:577\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n+MatrixImp::DenseMatrixBase< T, A >::window_type row_type\n+The type implementing a matrix row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:574\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+Class providing information about the mapping of the vertices onto aggregates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+Class representing the properties of an ede in the matrix graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:39\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+Class representing a node in the matrix graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:118\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:131\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+The (undirected) graph of a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+Attaches properties to the edges and vertices of a graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:978\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+Graph::VertexDescriptor VertexDescriptor\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:988\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+A hierarchy of containers (e.g. matrices or vectors)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:40\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+LevelIterator< Hierarchy< MatrixOperator, Allocator >, MatrixOperator >\n+Iterator\n+Type of the mutable iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:216\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+LevelIterator< const Hierarchy< MatrixOperator, Allocator >, const\n+MatrixOperator > ConstIterator\n+Type of the const iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:219\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+The hierarchies build by the coarsening process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n+typename std::allocator_traits< Allocator >::template rebind_alloc<\n+AggregatesMap * > AAllocator\n+Allocator for pointers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:85\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+Dune::Amg::Hierarchy< ParallelInformation, Allocator >\n+ParallelInformationHierarchy\n+The type of the parallel informarion hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bL_\bi_\bs_\bt\n+std::list< AggregatesMap *, AAllocator > AggregatesMapList\n+The type of the aggregates maps list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:88\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+PI ParallelInformation\n+The type of the index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+Dune::Amg::Hierarchy< MatrixOperator, Allocator > ParallelMatrixHierarchy\n+The type of the parallel matrix hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:79\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n+A Allocator\n+The allocator to use.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be\n+RedistributeInformation< ParallelInformation > RedistributeInfoType\n+The type of the redistribute information.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:91\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bg_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br\n+double getProlongationDampingFactor() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:188\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bR_\bI_\bL_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n+typename std::allocator_traits< Allocator >::template rebind_alloc<\n+RedistributeInfoType > RILAllocator\n+Allocator for RedistributeInfoType.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:94\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bL_\bi_\bs_\bt\n+std::list< RedistributeInfoType, RILAllocator > RedistributeInfoList\n+The type of the list of redistribute information.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:97\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+Dune::Amg::AggregatesMap< typename MatrixGraph< Matrix >::VertexDescriptor >\n+AggregatesMap\n+The type of the aggregates map we use.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:76\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+MatrixOperator::matrix_type Matrix\n+The type of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+M MatrixOperator\n+The type of the matrix operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:64\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const matrix_row &row)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:254\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\br_\bo_\bw\n+Matrix::row_type matrix_row\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:245\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bm_\bi_\bn\n+size_type min\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:261\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bc_\ba_\bl_\bc\n+calc()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:247\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bm_\ba_\bx\n+size_type max\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:262\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bs_\bu_\bm\n+size_type sum\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:263\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:244\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+The criterion describing the stop criteria for the coarsening process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:283\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+CoarsenCriterion(const Dune::Amg::Parameters &parms)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:306\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+T AggregationCriterion\n+The criterion for tagging connections as strong and nodes as isolated. This\n+might be e....\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:289\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+CoarsenCriterion(int maxLevel=100, int coarsenTarget=1000, double\n+minCoarsenRate=1.2, double prolongDamp=1.6, AccumulationMode\n+accumulate=successiveAccu)\n Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1559\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n-shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n-X > > prec, scalar_real_type reduction, int maxit, int verbose, int mmax=10)\n-Constructor to initialize a RestartedFCG solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1539\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\bm_\ba_\bx\n-int _mmax\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1662\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n-shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n-X > > prec, const ParameterTree &config)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1565\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1669\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, X &b, InverseOperatorResult &res)\n-Apply inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1584\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-RestartedFCGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X >\n-&sp, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int\n-verbose, int mmax=10)\n-Constructor to initialize a RestartedFCG solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1529\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\bl_\be_\bt_\be_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-Complete flexible conjugate gradient method.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1680\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\bl_\be_\bt_\be_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, X &b, InverseOperatorResult &res) override\n-Apply inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1694\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+All parameters for AMG.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:393\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n+Tag idnetifying the visited property of a vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:29\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+The default class for the smoother arguments.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:38\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+static Category category(const OP &op, decltype(op.category()) *=nullptr)\n+Helperfunction to extract the solver category either from an enum, or from the\n+newly introduced virtu...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00074.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00074.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: allocator.hh File Reference\n+dune-istl: kamg.hh File Reference\n \n \n \n \n \n \n \n@@ -65,56 +65,51 @@\n
    \n
    \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n \n-
    allocator.hh File Reference
    \n+Namespaces
    \n+ \n \n
    \n-
    #include <memory>
    \n-#include <type_traits>
    \n-#include <dune/common/typetraits.hh>
    \n+\n+

    Provides an algebraic multigrid using a Krylov cycle. \n+More...

    \n+
    #include <dune/istl/preconditioners.hh>
    \n+#include "amg.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n+\n+\n \n-\n+\n+\n \n

    \n Classes

    struct  Dune::exists< T >
     
    struct  Dune::DefaultAllocatorTraits< T, typename >
     
    struct  Dune::DefaultAllocatorTraits< T, std::void_t< typename T::allocator_type > >
    class  Dune::Amg::KAmgTwoGrid< AMG >
     Two grid operator for AMG with Krylov cycle. More...
     
    struct  Dune::AllocatorTraits< T >
    class  Dune::Amg::KAMG< M, X, S, PI, K, A >
     an algebraic multigrid method using a Krylov-cycle. More...
     
    \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    \n-\n-\n-\n-\n-\n-\n-\n+\n+\n

    \n-Typedefs

    template<typename T >
    using Dune::AllocatorType = typename AllocatorTraits< T >::type
     
    template<typename T , typename X >
    using Dune::ReboundAllocatorType = typename std::allocator_traits< typename AllocatorTraits< T >::type >::template rebind_alloc< X >
     
    namespace  Dune::Amg
     
    \n-
    \n+

    Detailed Description

    \n+

    Provides an algebraic multigrid using a Krylov cycle.

    \n+
    Author
    Markus Blatt
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,35 +1,33 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs\n-allocator.hh File Reference\n-#include \n-#include \n-#include \n+ * _\bp_\ba_\ba_\bm_\bg\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+kamg.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n+\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n+Provides an algebraic multigrid using a Krylov cycle. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n+#include \"_\ba_\bm_\bg_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs_\b<_\b _\bT_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\b _\bA_\bM_\bG_\b _\b>\n+\u00a0 Two grid operator for _\bA_\bM_\bG with Krylov cycle. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b,_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bv_\bo_\bi_\bd_\b__\bt_\b<_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bT_\b:_\b:\n- _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bS_\b,_\b _\bP_\bI_\b,_\b _\bK_\b,_\b _\bA_\b _\b>\n+\u00a0 an algebraic multigrid method using a Krylov-cycle. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be = typename _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs< T >::type\n-\u00a0\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be = typename std::allocator_traits< typename\n- _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs< T >::type >::template rebind_alloc< X >\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Provides an algebraic multigrid using a Krylov cycle.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00074_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00074_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: allocator.hh Source File\n+dune-istl: kamg.hh Source File\n \n \n \n \n \n \n \n@@ -70,80 +70,336 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n-
    allocator.hh
    \n+
    kamg.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3#ifndef DUNE_ISTL_ALLOCATOR_HH
    \n-
    4#define DUNE_ISTL_ALLOCATOR_HH
    \n-
    5
    \n-
    6#include <memory>
    \n-
    7#include <type_traits>
    \n-
    8
    \n-
    9#include <dune/common/typetraits.hh>
    \n+
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n+
    4// vi: set et ts=4 sw=2 sts=2:
    \n+
    5#ifndef DUNE_AMG_KAMG_HH
    \n+
    6#define DUNE_AMG_KAMG_HH
    \n+
    7
    \n+\n+
    9#include "amg.hh"
    \n
    10
    \n-
    \n-
    11namespace Dune {
    \n-
    12
    \n-
    13 template<typename T>
    \n-
    \n-
    14 struct exists{
    \n-
    15 static const bool value = true;
    \n-
    16 };
    \n-
    \n-
    17
    \n-
    18 template<typename T, typename = void>
    \n-
    \n-\n-
    20 {
    \n-
    21 using type = std::allocator<T>;
    \n-
    22 };
    \n-
    \n-
    23
    \n-
    24 template<typename T>
    \n-
    \n-
    25 struct DefaultAllocatorTraits<T, std::void_t<typename T::allocator_type> >
    \n-
    26 {
    \n-
    27 using type = typename T::allocator_type;
    \n-
    28 };
    \n-
    \n-
    29
    \n-
    30 template<typename T>
    \n-\n-
    32
    \n-
    33 template<typename T>
    \n-\n-
    35
    \n-
    36 template<typename T, typename X>
    \n-
    37 using ReboundAllocatorType = typename std::allocator_traits<typename AllocatorTraits<T>::type>::template rebind_alloc<X>;
    \n-
    38
    \n-
    39} // end namespace Dune
    \n-
    \n-
    40
    \n-
    41#endif // DUNE_ISTL_ALLOCATOR_HH
    \n-
    STL namespace.
    \n+
    11namespace Dune
    \n+
    12{
    \n+
    13 namespace Amg
    \n+
    14 {
    \n+
    15
    \n+
    30 template<class AMG>
    \n+
    \n+\n+
    32 : public Preconditioner<typename AMG::Domain,typename AMG::Range>
    \n+
    33 {
    \n+
    35 typedef typename AMG::Domain Domain;
    \n+
    37 typedef typename AMG::Range Range;
    \n+
    38 public:
    \n+
    39
    \n+
    \n+\n+
    42 {
    \n+
    43 return amg_.category();
    \n+
    44 };
    \n+
    \n+
    45
    \n+
    \n+\n+
    54 : amg_(amg), coarseSolver_(coarseSolver)
    \n+
    55 {}
    \n+
    \n+
    56
    \n+
    \n+
    58 void pre([[maybe_unused]] typename AMG::Domain& x, [[maybe_unused]] typename AMG::Range& b)
    \n+
    59 {}
    \n+
    \n+
    60
    \n+
    \n+
    62 void post([[maybe_unused]] typename AMG::Domain& x)
    \n+
    63 {}
    \n+
    \n+
    64
    \n+
    \n+
    66 void apply(typename AMG::Domain& v, const typename AMG::Range& d)
    \n+
    67 {
    \n+
    68 // Copy data
    \n+
    69 *levelContext_->update=0;
    \n+
    70 *levelContext_->rhs = d;
    \n+
    71 *levelContext_->lhs = v;
    \n+
    72
    \n+
    73 presmooth(*levelContext_, amg_.preSteps_);
    \n+
    74 bool processFineLevel =
    \n+
    75 amg_.moveToCoarseLevel(*levelContext_);
    \n+
    76
    \n+
    77 if(processFineLevel) {
    \n+
    78 typename AMG::Range b=*levelContext_->rhs;
    \n+
    79 typename AMG::Domain x=*levelContext_->update;
    \n+\n+
    81 coarseSolver_->apply(x, b, res);
    \n+
    82 *levelContext_->update=x;
    \n+
    83 }
    \n+
    84
    \n+
    85 amg_.moveToFineLevel(*levelContext_, processFineLevel);
    \n+
    86
    \n+
    87 postsmooth(*levelContext_, amg_.postSteps_);
    \n+
    88 v=*levelContext_->update;
    \n+
    89 }
    \n+
    \n+
    90
    \n+
    \n+\n+
    96 {
    \n+
    97 return coarseSolver_;
    \n+
    98 }
    \n+
    \n+
    99
    \n+
    \n+
    104 void setLevelContext(std::shared_ptr<typename AMG::LevelContext> p)
    \n+
    105 {
    \n+
    106 levelContext_=p;
    \n+
    107 }
    \n+
    \n+
    108
    \n+
    \n+\n+
    111 {}
    \n+
    \n+
    112
    \n+
    113 private:
    \n+
    115 AMG& amg_;
    \n+
    117 std::shared_ptr<InverseOperator<Domain,Range> > coarseSolver_;
    \n+
    119 std::shared_ptr<typename AMG::LevelContext> levelContext_;
    \n+
    120 };
    \n+
    \n+
    121
    \n+
    122
    \n+
    123
    \n+
    137 template<class M, class X, class S, class PI=SequentialInformation,
    \n+
    138 class K=GeneralizedPCGSolver<X>, class A=std::allocator<X> >
    \n+
    \n+
    139 class KAMG : public Preconditioner<X,X>
    \n+
    140 {
    \n+
    141 public:
    \n+\n+
    145 typedef K KrylovSolver;
    \n+\n+\n+\n+\n+
    155 typedef typename Amg::Operator Operator;
    \n+
    157 typedef typename Amg::Domain Domain;
    \n+
    159 typedef typename Amg::Range Range;
    \n+\n+\n+
    164
    \n+
    \n+\n+
    167 {
    \n+
    168 return amg.category();
    \n+
    169 };
    \n+
    \n+
    170
    \n+
    182 KAMG(OperatorHierarchy& matrices, CoarseSolver& coarseSolver,
    \n+
    183 const SmootherArgs& smootherArgs, const Parameters& parms,
    \n+
    184 std::size_t maxLevelKrylovSteps=3, double minDefectReduction=1e-1);
    \n+
    185
    \n+
    199 template<class C>
    \n+
    200 KAMG(const Operator& fineOperator, const C& criterion,
    \n+
    201 const SmootherArgs& smootherArgs=SmootherArgs(),
    \n+
    202 std::size_t maxLevelKrylovSteps=3, double minDefectReduction=1e-1,
    \n+\n+
    204
    \n+
    206 void pre(Domain& x, Range& b);
    \n+
    208 void post(Domain& x);
    \n+
    210 void apply(Domain& v, const Range& d);
    \n+
    211
    \n+
    212 std::size_t maxlevels();
    \n+
    213
    \n+
    214 private:
    \n+
    216 Amg amg;
    \n+
    217
    \n+
    219 std::size_t maxLevelKrylovSteps;
    \n+
    220
    \n+
    222 double levelDefectReduction;
    \n+
    223
    \n+
    225 std::vector<std::shared_ptr<typename Amg::ScalarProduct> > scalarproducts;
    \n+
    226
    \n+
    228 std::vector<std::shared_ptr<KAmgTwoGrid<Amg> > > ksolvers;
    \n+
    229 };
    \n+
    \n+
    230
    \n+
    231
    \n+
    232 template<class M, class X, class S, class P, class K, class A>
    \n+
    \n+\n+
    234 const SmootherArgs& smootherArgs, const Parameters& params,
    \n+
    235 std::size_t ksteps, double reduction)
    \n+
    236 : amg(matrices, coarseSolver, smootherArgs, params),
    \n+
    237 maxLevelKrylovSteps(ksteps), levelDefectReduction(reduction)
    \n+
    238 {}
    \n+
    \n+
    239
    \n+
    240
    \n+
    241 template<class M, class X, class S, class P, class K, class A>
    \n+
    242 template<class C>
    \n+
    \n+
    243 KAMG<M,X,S,P,K,A>::KAMG(const Operator& fineOperator, const C& criterion,
    \n+
    244 const SmootherArgs& smootherArgs,
    \n+
    245 std::size_t ksteps, double reduction,
    \n+
    246 const ParallelInformation& pinfo)
    \n+
    247 : amg(fineOperator, criterion, smootherArgs, pinfo),
    \n+
    248 maxLevelKrylovSteps(ksteps), levelDefectReduction(reduction)
    \n+
    249 {}
    \n+
    \n+
    250
    \n+
    251
    \n+
    252 template<class M, class X, class S, class P, class K, class A>
    \n+
    \n+\n+
    254 {
    \n+
    255 amg.pre(x,b);
    \n+
    256 scalarproducts.reserve(amg.levels());
    \n+
    257 ksolvers.reserve(amg.levels());
    \n+
    258
    \n+
    259 typename OperatorHierarchy::ParallelMatrixHierarchy::Iterator
    \n+
    260 matrix = amg.matrices_->matrices().coarsest();
    \n+\n+
    262 pinfo = amg.matrices_->parallelInformation().coarsest();
    \n+
    263 bool hasCoarsest=(amg.levels()==amg.maxlevels());
    \n+
    264
    \n+
    265 if(hasCoarsest) {
    \n+
    266 if(matrix==amg.matrices_->matrices().finest())
    \n+
    267 return;
    \n+
    268 --matrix;
    \n+
    269 --pinfo;
    \n+
    270 ksolvers.push_back(std::shared_ptr<KAmgTwoGrid<Amg> >(new KAmgTwoGrid<Amg>(amg, amg.solver_)));
    \n+
    271 }else
    \n+
    272 ksolvers.push_back(std::shared_ptr<KAmgTwoGrid<Amg> >(new KAmgTwoGrid<Amg>(amg, std::shared_ptr<InverseOperator<Domain,Range> >())));
    \n+
    273
    \n+
    274 std::ostringstream s;
    \n+
    275
    \n+
    276 if(matrix!=amg.matrices_->matrices().finest())
    \n+
    277 while(true) {
    \n+
    278 scalarproducts.push_back(createScalarProduct<X>(*pinfo,category()));
    \n+
    279 std::shared_ptr<InverseOperator<Domain,Range> > ks =
    \n+
    280 std::shared_ptr<InverseOperator<Domain,Range> >(new KrylovSolver(*matrix, *(scalarproducts.back()),
    \n+
    281 *(ksolvers.back()), levelDefectReduction,
    \n+
    282 maxLevelKrylovSteps, 0));
    \n+
    283 ksolvers.push_back(std::shared_ptr<KAmgTwoGrid<Amg> >(new KAmgTwoGrid<Amg>(amg, ks)));
    \n+
    284 --matrix;
    \n+
    285 --pinfo;
    \n+
    286 if(matrix==amg.matrices_->matrices().finest())
    \n+
    287 break;
    \n+
    288 }
    \n+
    289 }
    \n+
    \n+
    290
    \n+
    291
    \n+
    292 template<class M, class X, class S, class P, class K, class A>
    \n+
    \n+\n+
    294 {
    \n+
    295 amg.post(x);
    \n+
    296
    \n+
    297 }
    \n+
    \n+
    298
    \n+
    299 template<class M, class X, class S, class P, class K, class A>
    \n+
    \n+\n+
    301 {
    \n+
    302 if(ksolvers.size()==0)
    \n+
    303 {
    \n+
    304 Range td=d;
    \n+\n+
    306 amg.solver_->apply(v,td,res);
    \n+
    307 }else
    \n+
    308 {
    \n+
    309 typedef typename Amg::LevelContext LevelContext;
    \n+
    310 std::shared_ptr<LevelContext> levelContext(new LevelContext);
    \n+
    311 amg.initIteratorsWithFineLevel(*levelContext);
    \n+
    312 typedef typename std::vector<std::shared_ptr<KAmgTwoGrid<Amg> > >::iterator Iter;
    \n+
    313 for(Iter solver=ksolvers.begin(); solver!=ksolvers.end(); ++solver)
    \n+
    314 (*solver)->setLevelContext(levelContext);
    \n+
    315 ksolvers.back()->apply(v,d);
    \n+
    316 }
    \n+
    317 }
    \n+
    \n+
    318
    \n+
    319 template<class M, class X, class S, class P, class K, class A>
    \n+
    \n+\n+
    321 {
    \n+
    322 return amg.maxlevels();
    \n+
    323 }
    \n+
    \n+
    324
    \n+
    326 } // Amg
    \n+
    327} // Dune
    \n+
    328
    \n+
    329#endif
    \n+
    The AMG preconditioner.
    \n+
    Define general preconditioner interface.
    \n+
    void apply(Domain &v, const Range &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition kamg.hh:300
    \n+
    X Domain
    The domain type.
    Definition amg.hh:87
    \n+
    KAMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const SmootherArgs &smootherArgs, const Parameters &parms, std::size_t maxLevelKrylovSteps=3, double minDefectReduction=1e-1)
    Construct a new amg with a specific coarse solver.
    Definition kamg.hh:233
    \n+
    std::size_t maxlevels()
    Definition kamg.hh:320
    \n+
    SmootherTraits< Smoother >::Arguments SmootherArgs
    The argument type for the construction of the smoother.
    Definition amg.hh:100
    \n+
    M Operator
    The matrix operator type.
    Definition amg.hh:73
    \n+
    void post(Domain &x)
    Clean up.
    Definition kamg.hh:293
    \n+
    X Range
    The range type.
    Definition amg.hh:89
    \n+
    void presmooth(LevelContext &levelContext, size_t steps)
    Apply pre smoothing on the current level.
    Definition smoother.hh:406
    \n+
    void postsmooth(LevelContext &levelContext, size_t steps)
    Apply post smoothing on the current level.
    Definition smoother.hh:428
    \n+
    void pre(Domain &x, Range &b)
    Prepare the preconditioner.
    Definition kamg.hh:253
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition amg.hh:194
    \n+
    PI ParallelInformation
    The type of the parallel information. Either OwnerOverlapCommunication or another type describing the...
    Definition amg.hh:80
    \n
    Definition allocator.hh:11
    \n-
    typename std::allocator_traits< typename AllocatorTraits< T >::type >::template rebind_alloc< X > ReboundAllocatorType
    Definition allocator.hh:37
    \n-
    typename AllocatorTraits< T >::type AllocatorType
    Definition allocator.hh:34
    \n-
    Definition allocator.hh:14
    \n-
    static const bool value
    Definition allocator.hh:15
    \n-
    Definition allocator.hh:20
    \n-
    std::allocator< T > type
    Definition allocator.hh:21
    \n-
    typename T::allocator_type type
    Definition allocator.hh:27
    \n-
    Definition allocator.hh:31
    \n+
    an algebraic multigrid method using a Krylov-cycle.
    Definition kamg.hh:140
    \n+
    Amg::Domain Domain
    the type of the domain.
    Definition kamg.hh:157
    \n+
    Amg::SmootherArgs SmootherArgs
    The type of the arguments for construction of the smoothers.
    Definition kamg.hh:153
    \n+
    Amg::ParallelInformation ParallelInformation
    the type of the parallelinformation to use.
    Definition kamg.hh:151
    \n+
    Amg::CoarseSolver CoarseSolver
    The type of the coarse solver.
    Definition kamg.hh:149
    \n+
    Amg::OperatorHierarchy OperatorHierarchy
    The type of the hierarchy of operators.
    Definition kamg.hh:147
    \n+
    Amg::Range Range
    The type of the range.
    Definition kamg.hh:159
    \n+
    Amg::ScalarProduct ScalarProduct
    The type of the scalar product.
    Definition kamg.hh:163
    \n+
    AMG< M, X, S, PI, A > Amg
    The type of the underlying AMG.
    Definition kamg.hh:143
    \n+
    Amg::Operator Operator
    the type of the lineatr operator.
    Definition kamg.hh:155
    \n+
    Amg::ParallelInformationHierarchy ParallelInformationHierarchy
    The type of the hierarchy of parallel information.
    Definition kamg.hh:161
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition kamg.hh:166
    \n+
    K KrylovSolver
    The type of the Krylov solver for the cycle.
    Definition kamg.hh:145
    \n+
    Two grid operator for AMG with Krylov cycle.
    Definition kamg.hh:33
    \n+
    void pre(typename AMG::Domain &x, typename AMG::Range &b)
    Prepare the preconditioner.
    Definition kamg.hh:58
    \n+
    KAmgTwoGrid(AMG &amg, std::shared_ptr< InverseOperator< Domain, Range > > coarseSolver)
    Constructor.
    Definition kamg.hh:53
    \n+
    ~KAmgTwoGrid()
    Destructor.
    Definition kamg.hh:110
    \n+
    void post(typename AMG::Domain &x)
    Clean up.
    Definition kamg.hh:62
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition kamg.hh:41
    \n+
    void setLevelContext(std::shared_ptr< typename AMG::LevelContext > p)
    Set the level context pointer.
    Definition kamg.hh:104
    \n+
    InverseOperator< Domain, Range > * coarseSolver()
    Get a pointer to the coarse grid solver.
    Definition kamg.hh:95
    \n+
    void apply(typename AMG::Domain &v, const typename AMG::Range &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition kamg.hh:66
    \n+
    Parallel algebraic multigrid based on agglomeration.
    Definition amg.hh:65
    \n+\n+
    LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation > Iterator
    Type of the mutable iterator.
    Definition hierarchy.hh:216
    \n+
    The hierarchies build by the coarsening process.
    Definition matrixhierarchy.hh:61
    \n+
    All parameters for AMG.
    Definition parameters.hh:393
    \n+
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n+
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n+
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    Generalized preconditioned conjugate gradient solver.
    Definition solvers.hh:1307
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,80 +1,433 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-allocator.hh\n+ * _\bp_\ba_\ba_\bm_\bg\n+kamg.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3#ifndef DUNE_ISTL_ALLOCATOR_HH\n-4#define DUNE_ISTL_ALLOCATOR_HH\n-5\n-6#include \n-7#include \n-8\n-9#include \n+3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n+4// vi: set et ts=4 sw=2 sts=2:\n+5#ifndef DUNE_AMG_KAMG_HH\n+6#define DUNE_AMG_KAMG_HH\n+7\n+8#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n+9#include \"_\ba_\bm_\bg_\b._\bh_\bh\"\n 10\n-_\b1_\b1namespace _\bD_\bu_\bn_\be {\n-12\n-13 template\n-_\b1_\b4 struct _\be_\bx_\bi_\bs_\bt_\bs{\n-_\b1_\b5 static const bool _\bv_\ba_\bl_\bu_\be = true;\n-16 };\n-17\n-18 template\n-_\b1_\b9 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs\n-20 {\n-_\b2_\b1 using _\bt_\by_\bp_\be = std::allocator;\n-22 };\n-23\n-24 template\n-_\b2_\b5 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs >\n-26 {\n-_\b2_\b7 using _\bt_\by_\bp_\be = typename T::allocator_type;\n-28 };\n-29\n-30 template\n-_\b3_\b1 struct _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs : public _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs {};\n-32\n-33 template\n-_\b3_\b4 using _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be = typename _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be;\n-35\n-36 template\n-_\b3_\b7 using _\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be = typename std::allocator_traits::type>::template rebind_alloc;\n-38\n-39} // end namespace Dune\n-40\n-41#endif // DUNE_ISTL_ALLOCATOR_HH\n-_\bs_\bt_\bd\n-STL namespace.\n+11namespace _\bD_\bu_\bn_\be\n+12{\n+13 namespace Amg\n+14 {\n+15\n+30 template\n+_\b3_\b1 class _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd\n+32 : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+33 {\n+35 typedef typename _\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn Domain;\n+37 typedef typename _\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be Range;\n+38 public:\n+39\n+_\b4_\b1 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+42 {\n+43 return amg_._\bc_\ba_\bt_\be_\bg_\bo_\br_\by();\n+44 };\n+45\n+_\b5_\b3 _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd(_\bA_\bM_\bG& amg, std::shared_ptr<_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bR_\ba_\bn_\bg_\be_\b> >\n+_\bc_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br)\n+54 : amg_(amg), coarseSolver_(_\bc_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br)\n+55 {}\n+56\n+_\b5_\b8 void _\bp_\br_\be([[maybe_unused]] typename _\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn& x, [[maybe_unused]] typename\n+_\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be& b)\n+59 {}\n+60\n+_\b6_\b2 void _\bp_\bo_\bs_\bt([[maybe_unused]] typename _\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn& x)\n+63 {}\n+64\n+_\b6_\b6 void _\ba_\bp_\bp_\bl_\by(typename _\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn& v, const typename _\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be& d)\n+67 {\n+68 // Copy data\n+69 *levelContext_->update=0;\n+70 *levelContext_->rhs = d;\n+71 *levelContext_->lhs = v;\n+72\n+73 _\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh(*levelContext_, amg_.preSteps_);\n+74 bool processFineLevel =\n+75 amg_.moveToCoarseLevel(*levelContext_);\n+76\n+77 if(processFineLevel) {\n+78 typename _\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be b=*levelContext_->rhs;\n+79 typename _\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn x=*levelContext_->update;\n+80 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n+81 coarseSolver_->apply(x, b, res);\n+82 *levelContext_->update=x;\n+83 }\n+84\n+85 amg_.moveToFineLevel(*levelContext_, processFineLevel);\n+86\n+87 _\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh(*levelContext_, amg_.postSteps_);\n+88 v=*levelContext_->update;\n+89 }\n+90\n+_\b9_\b5 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bR_\ba_\bn_\bg_\be_\b>* _\bc_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br()\n+96 {\n+97 return coarseSolver_;\n+98 }\n+99\n+_\b1_\b0_\b4 void _\bs_\be_\bt_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt(std::shared_ptr p)\n+105 {\n+106 levelContext_=p;\n+107 }\n+108\n+_\b1_\b1_\b0 _\b~_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd()\n+111 {}\n+112\n+113 private:\n+115 _\bA_\bM_\bG& amg_;\n+117 std::shared_ptr > coarseSolver_;\n+119 std::shared_ptr levelContext_;\n+120 };\n+121\n+122\n+123\n+137 template, class A=std::allocator >\n+_\b1_\b3_\b9 class _\bK_\bA_\bM_\bG : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+140 {\n+141 public:\n+_\b1_\b4_\b3 typedef _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b> _\bA_\bm_\bg;\n+_\b1_\b4_\b5 typedef K _\bK_\br_\by_\bl_\bo_\bv_\bS_\bo_\bl_\bv_\be_\br;\n+_\b1_\b4_\b7 typedef typename _\bA_\bm_\bg_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n+_\b1_\b4_\b9 typedef typename _\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br;\n+_\b1_\b5_\b1 typedef typename _\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n+_\b1_\b5_\b3 typedef typename _\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n+_\b1_\b5_\b5 typedef typename _\bA_\bm_\bg_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br _\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n+_\b1_\b5_\b7 typedef typename _\bA_\bm_\bg_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn _\bD_\bo_\bm_\ba_\bi_\bn;\n+_\b1_\b5_\b9 typedef typename _\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bg_\be _\bR_\ba_\bn_\bg_\be;\n+_\b1_\b6_\b1 typedef typename _\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n+_\b1_\b6_\b3 typedef typename _\bA_\bm_\bg_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt;\n+164\n+_\b1_\b6_\b6 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+167 {\n+168 return amg._\bc_\ba_\bt_\be_\bg_\bo_\br_\by();\n+169 };\n+170\n+182 _\bK_\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br& coarseSolver,\n+183 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs, const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms,\n+184 std::size_t maxLevelKrylovSteps=3, double minDefectReduction=1e-1);\n+185\n+199 template\n+200 _\bK_\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& fineOperator, const C& criterion,\n+201 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs=_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs(),\n+202 std::size_t maxLevelKrylovSteps=3, double minDefectReduction=1e-1,\n+203 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo=_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n+204\n+206 void _\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b);\n+208 void _\bp_\bo_\bs_\bt(_\bD_\bo_\bm_\ba_\bi_\bn& x);\n+210 void _\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d);\n+211\n+212 std::size_t _\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs();\n+213\n+214 private:\n+216 _\bA_\bm_\bg amg;\n+217\n+219 std::size_t maxLevelKrylovSteps;\n+220\n+222 double levelDefectReduction;\n+223\n+225 std::vector > scalarproducts;\n+226\n+228 std::vector > > ksolvers;\n+229 };\n+230\n+231\n+232 template\n+_\b2_\b3_\b3 _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\bK_\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br&\n+coarseSolver,\n+234 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs, const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& params,\n+235 std::size_t ksteps, double reduction)\n+236 : amg(matrices, coarseSolver, smootherArgs, params),\n+237 maxLevelKrylovSteps(ksteps), levelDefectReduction(reduction)\n+238 {}\n+239\n+240\n+241 template\n+242 template\n+_\b2_\b4_\b3 _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\bK_\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& fineOperator, const C& criterion,\n+244 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs,\n+245 std::size_t ksteps, double reduction,\n+246 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo)\n+247 : amg(fineOperator, criterion, smootherArgs, pinfo),\n+248 maxLevelKrylovSteps(ksteps), levelDefectReduction(reduction)\n+249 {}\n+250\n+251\n+252 template\n+_\b2_\b5_\b3 void _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b)\n+254 {\n+255 amg.pre(x,b);\n+256 scalarproducts.reserve(amg.levels());\n+257 ksolvers.reserve(amg.levels());\n+258\n+259 typename OperatorHierarchy::ParallelMatrixHierarchy::Iterator\n+260 matrix = amg.matrices_->matrices().coarsest();\n+261 typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+262 pinfo = amg.matrices_->parallelInformation().coarsest();\n+263 bool hasCoarsest=(amg.levels()==amg.maxlevels());\n+264\n+265 if(hasCoarsest) {\n+266 if(matrix==amg.matrices_->matrices().finest())\n+267 return;\n+268 --matrix;\n+269 --pinfo;\n+270 ksolvers.push_back(std::shared_ptr<_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b> >(new _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b>\n+(amg, amg.solver_)));\n+271 }else\n+272 ksolvers.push_back(std::shared_ptr<_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b> >(new _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b>\n+(amg, std::shared_ptr<_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bR_\ba_\bn_\bg_\be_\b> >())));\n+273\n+274 std::ostringstream s;\n+275\n+276 if(matrix!=amg.matrices_->matrices().finest())\n+277 while(true) {\n+278 scalarproducts.push_back(createScalarProduct(*pinfo,category()));\n+279 std::shared_ptr > ks =\n+280 std::shared_ptr >(new _\bK_\br_\by_\bl_\bo_\bv_\bS_\bo_\bl_\bv_\be_\br(*matrix, *\n+(scalarproducts.back()),\n+281 *(ksolvers.back()), levelDefectReduction,\n+282 maxLevelKrylovSteps, 0));\n+283 ksolvers.push_back(std::shared_ptr<_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b> >(new _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b>\n+(amg, ks)));\n+284 --matrix;\n+285 --pinfo;\n+286 if(matrix==amg.matrices_->matrices().finest())\n+287 break;\n+288 }\n+289 }\n+290\n+291\n+292 template\n+_\b2_\b9_\b3 void _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\bp_\bo_\bs_\bt(_\bD_\bo_\bm_\ba_\bi_\bn& x)\n+294 {\n+295 amg.post(x);\n+296\n+297 }\n+298\n+299 template\n+_\b3_\b0_\b0 void _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n+301 {\n+302 if(ksolvers.size()==0)\n+303 {\n+304 _\bR_\ba_\bn_\bg_\be td=d;\n+305 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n+306 amg.solver_->apply(v,td,res);\n+307 }else\n+308 {\n+309 typedef typename Amg::LevelContext LevelContext;\n+310 std::shared_ptr levelContext(new LevelContext);\n+311 amg.initIteratorsWithFineLevel(*levelContext);\n+312 typedef typename std::vector > >::iterator\n+Iter;\n+313 for(Iter solver=ksolvers.begin(); solver!=ksolvers.end(); ++solver)\n+314 (*solver)->setLevelContext(levelContext);\n+315 ksolvers.back()->apply(v,d);\n+316 }\n+317 }\n+318\n+319 template\n+_\b3_\b2_\b0 std::size_t _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs()\n+321 {\n+322 return amg.maxlevels();\n+323 }\n+324\n+326 } // Amg\n+327} // Dune\n+328\n+329#endif\n+_\ba_\bm_\bg_\b._\bh_\bh\n+The AMG preconditioner.\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n+Define general preconditioner interface.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(Domain &v, const Range &d)\n+Apply one step of the preconditioner to the system A(v)=d.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:300\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n+X Domain\n+The domain type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:87\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bK_\bA_\bM_\bG\n+KAMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const\n+SmootherArgs &smootherArgs, const Parameters &parms, std::size_t\n+maxLevelKrylovSteps=3, double minDefectReduction=1e-1)\n+Construct a new amg with a specific coarse solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:233\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs\n+std::size_t maxlevels()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:320\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+SmootherTraits< Smoother >::Arguments SmootherArgs\n+The argument type for the construction of the smoother.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:100\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+M Operator\n+The matrix operator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bp_\bo_\bs_\bt\n+void post(Domain &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be\n+X Range\n+The range type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:89\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh\n+void presmooth(LevelContext &levelContext, size_t steps)\n+Apply pre smoothing on the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:406\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh\n+void postsmooth(LevelContext &levelContext, size_t steps)\n+Apply post smoothing on the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bp_\br_\be\n+void pre(Domain &x, Range &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:253\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:194\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+PI ParallelInformation\n+The type of the parallel information. Either OwnerOverlapCommunication or\n+another type describing the...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:80\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n-typename std::allocator_traits< typename AllocatorTraits< T >::type >::template\n-rebind_alloc< X > ReboundAllocatorType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n-typename AllocatorTraits< T >::type AllocatorType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:34\n-_\bD_\bu_\bn_\be_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:14\n-_\bD_\bu_\bn_\be_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-static const bool value\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:15\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:20\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bt_\by_\bp_\be\n-std::allocator< T > type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:21\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bv_\bo_\bi_\bd_\b__\bt_\b<_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bT_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be_\b _\b>_\b _\b>_\b:_\b:\n-_\bt_\by_\bp_\be\n-typename T::allocator_type type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\br_\ba_\bi_\bt_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:31\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG\n+an algebraic multigrid method using a Krylov-cycle.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:140\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n+Amg::Domain Domain\n+the type of the domain.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:157\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+Amg::SmootherArgs SmootherArgs\n+The type of the arguments for construction of the smoothers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:153\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+Amg::ParallelInformation ParallelInformation\n+the type of the parallelinformation to use.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:151\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br\n+Amg::CoarseSolver CoarseSolver\n+The type of the coarse solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+Amg::OperatorHierarchy OperatorHierarchy\n+The type of the hierarchy of operators.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:147\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be\n+Amg::Range Range\n+The type of the range.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:159\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Amg::ScalarProduct ScalarProduct\n+The type of the scalar product.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:163\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bA_\bm_\bg\n+AMG< M, X, S, PI, A > Amg\n+The type of the underlying AMG.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:143\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Amg::Operator Operator\n+the type of the lineatr operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:155\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+Amg::ParallelInformationHierarchy ParallelInformationHierarchy\n+The type of the hierarchy of parallel information.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:161\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:166\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bK_\br_\by_\bl_\bo_\bv_\bS_\bo_\bl_\bv_\be_\br\n+K KrylovSolver\n+The type of the Krylov solver for the cycle.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:145\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd\n+Two grid operator for AMG with Krylov cycle.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:33\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bp_\br_\be\n+void pre(typename AMG::Domain &x, typename AMG::Range &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:58\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd\n+KAmgTwoGrid(AMG &amg, std::shared_ptr< InverseOperator< Domain, Range > >\n+coarseSolver)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\b~_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd\n+~KAmgTwoGrid()\n+Destructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:110\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bp_\bo_\bs_\bt\n+void post(typename AMG::Domain &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:62\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:41\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bs_\be_\bt_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt\n+void setLevelContext(std::shared_ptr< typename AMG::LevelContext > p)\n+Set the level context pointer.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:104\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br\n+InverseOperator< Domain, Range > * coarseSolver()\n+Get a pointer to the coarse grid solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(typename AMG::Domain &v, const typename AMG::Range &d)\n+Apply one step of the preconditioner to the system A(v)=d.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:66\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG\n+Parallel algebraic multigrid based on agglomeration.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:65\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation\n+> Iterator\n+Type of the mutable iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:216\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+The hierarchies build by the coarsening process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+All parameters for AMG.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:393\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Base class for scalar product and norm computation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+Statistics about the application of an inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Abstract base class for all solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+Generalized preconditioned conjugate gradient solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1307\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00077.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00077.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: preconditioner.hh File Reference\n+dune-istl: smoother.hh File Reference\n \n \n \n \n \n \n \n@@ -65,40 +65,126 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n \n-
    preconditioner.hh File Reference
    \n+Namespaces |\n+Functions
    \n+ \n \n
    \n-
    #include <dune/common/exceptions.hh>
    \n-#include "solvercategory.hh"
    \n+\n+

    Classes for the generic construction and application of the smoothers. \n+More...

    \n+
    #include <dune/istl/paamg/construction.hh>
    \n+#include <dune/istl/paamg/aggregates.hh>
    \n+#include <dune/istl/preconditioners.hh>
    \n+#include <dune/istl/schwarz.hh>
    \n+#include <dune/istl/novlpschwarz.hh>
    \n+#include <dune/common/propertymap.hh>
    \n+#include <dune/common/ftraits.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::Preconditioner< X, Y >
     Base class for matrix free definition of preconditioners. More...
    struct  Dune::Amg::DefaultSmootherArgs< T >
     The default class for the smoother arguments. More...
     
    struct  Dune::Amg::SmootherTraits< T >
     Traits class for getting the attribute class of a smoother. More...
     
    struct  Dune::Amg::SmootherTraits< Richardson< X, Y > >
     
    struct  Dune::Amg::SmootherTraits< BlockPreconditioner< X, Y, C, T > >
     
    struct  Dune::Amg::SmootherTraits< NonoverlappingBlockPreconditioner< C, T > >
     
    class  Dune::Amg::DefaultConstructionArgs< T >
     Construction Arguments for the default smoothers. More...
     
    struct  Dune::Amg::ConstructionArgs< T >
     
    class  Dune::Amg::DefaultParallelConstructionArgs< T, C >
     
    class  Dune::Amg::DefaultConstructionArgs< Richardson< X, Y > >
     
    struct  Dune::Amg::ConstructionTraits< SeqSSOR< M, X, Y, l > >
     Policy for the construction of the SeqSSOR smoother. More...
     
    struct  Dune::Amg::ConstructionTraits< SeqSOR< M, X, Y, l > >
     Policy for the construction of the SeqSOR smoother. More...
     
    struct  Dune::Amg::ConstructionTraits< SeqJac< M, X, Y, l > >
     Policy for the construction of the SeqJac smoother. More...
     
    struct  Dune::Amg::ConstructionTraits< Richardson< X, Y > >
     Policy for the construction of the Richardson smoother. More...
     
    class  Dune::Amg::ConstructionArgs< SeqILU< M, X, Y > >
     
    struct  Dune::Amg::ConstructionTraits< SeqILU< M, X, Y > >
     Policy for the construction of the SeqILU smoother. More...
     
    struct  Dune::Amg::ConstructionTraits< ParSSOR< M, X, Y, C > >
     Policy for the construction of the ParSSOR smoother. More...
     
    struct  Dune::Amg::ConstructionTraits< BlockPreconditioner< X, Y, C, T > >
     
    struct  Dune::Amg::ConstructionTraits< NonoverlappingBlockPreconditioner< C, T > >
     
    struct  Dune::Amg::SmootherApplier< T >
     Helper class for applying the smoothers. More...
     
    struct  Dune::Amg::SmootherApplier< SeqSOR< M, X, Y, l > >
     
    struct  Dune::Amg::SmootherApplier< BlockPreconditioner< X, Y, C, SeqSOR< M, X, Y, l > > >
     
    struct  Dune::Amg::SmootherApplier< NonoverlappingBlockPreconditioner< C, SeqSOR< M, X, Y, l > > >
     
    struct  Dune::Amg::SmootherApplier< SeqOverlappingSchwarz< M, X, MultiplicativeSchwarzMode, MS, TA > >
     
    struct  Dune::Amg::SeqOverlappingSchwarzSmootherArgs< T >
     
    struct  Dune::Amg::SmootherTraits< SeqOverlappingSchwarz< M, X, TM, TS, TA > >
     
    class  Dune::Amg::ConstructionArgs< SeqOverlappingSchwarz< M, X, TM, TS, TA > >
     
    struct  Dune::Amg::ConstructionTraits< SeqOverlappingSchwarz< M, X, TM, TS, TA > >
     
    \n \n \n \n+\n+\n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Functions

    template<typename LevelContext >
    void Dune::Amg::presmooth (LevelContext &levelContext, size_t steps)
     Apply pre smoothing on the current level.
     
    template<typename LevelContext >
    void Dune::Amg::postsmooth (LevelContext &levelContext, size_t steps)
     Apply post smoothing on the current level.
     
    \n-
    \n+

    Detailed Description

    \n+

    Classes for the generic construction and application of the smoothers.

    \n+
    Author
    Markus Blatt
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,20 +1,111 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-preconditioner.hh File Reference\n-#include \n-#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n+ * _\bp_\ba_\ba_\bm_\bg\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+smoother.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n+\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n+Classes for the generic construction and application of the smoothers. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0 Base class for matrix free definition of preconditioners. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\b _\bT_\b _\b>\n+\u00a0 The default class for the smoother arguments. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b _\b>\n+\u00a0 Traits class for getting the attribute class of a smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bT_\b _\b>\n+\u00a0 Construction Arguments for the default smoothers. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bT_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bT_\b,_\b _\bC_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>\n+\u00a0 Policy for the construction of the _\bS_\be_\bq_\bS_\bS_\bO_\bR smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>\n+\u00a0 Policy for the construction of the _\bS_\be_\bq_\bS_\bO_\bR smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bJ_\ba_\bc_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>\n+\u00a0 Policy for the construction of the _\bS_\be_\bq_\bJ_\ba_\bc smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n+\u00a0 Policy for the construction of the _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n+\u00a0 Policy for the construction of the _\bS_\be_\bq_\bI_\bL_\bU smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bP_\ba_\br_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>\n+\u00a0 Policy for the construction of the _\bP_\ba_\br_\bS_\bS_\bO_\bR smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bT\n+ _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bT_\b _\b>\n+\u00a0 Helper class for applying the smoothers. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,\n+ _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,\n+ _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n+ _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\b _\bT_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>\n+ _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA\n+ _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+\u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh (LevelContext &levelContext, size_t steps)\n+\u00a0 Apply pre smoothing on the current level.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh (LevelContext &levelContext, size_t steps)\n+\u00a0 Apply post smoothing on the current level.\n+\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Classes for the generic construction and application of the smoothers.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00077_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00077_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: preconditioner.hh Source File\n+dune-istl: smoother.hh Source File\n \n \n \n \n \n \n \n@@ -70,77 +70,1130 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n-
    preconditioner.hh
    \n+
    smoother.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_PRECONDITIONER_HH
    \n-
    6#define DUNE_ISTL_PRECONDITIONER_HH
    \n+
    5#ifndef DUNE_AMGSMOOTHER_HH
    \n+
    6#define DUNE_AMGSMOOTHER_HH
    \n
    7
    \n-
    8#include <dune/common/exceptions.hh>
    \n-
    9
    \n-
    10#include "solvercategory.hh"
    \n-
    11
    \n-
    12namespace Dune {
    \n-
    17 //=====================================================================
    \n-
    30 //=====================================================================
    \n-
    31 template<class X, class Y>
    \n-
    \n-\n-
    33 public:
    \n-
    35 typedef X domain_type;
    \n-
    37 typedef Y range_type;
    \n-
    39 typedef typename X::field_type field_type;
    \n-
    40
    \n-
    69 virtual void pre (X& x, Y& b) = 0;
    \n+\n+\n+\n+
    11#include <dune/istl/schwarz.hh>
    \n+\n+
    13#include <dune/common/propertymap.hh>
    \n+
    14#include <dune/common/ftraits.hh>
    \n+
    15
    \n+
    16namespace Dune
    \n+
    17{
    \n+
    18 namespace Amg
    \n+
    19 {
    \n+
    20
    \n+
    36 template<class T>
    \n+
    \n+\n+
    38 {
    \n+
    42 typedef typename FieldTraits<T>::real_type RelaxationFactor;
    \n+
    43
    \n+\n+\n+
    52
    \n+
    \n+\n+\n+
    58 {}
    \n+
    \n+
    59 };
    \n+
    \n+
    60
    \n+
    64 template<class T>
    \n+\n
    70
    \n-
    81 virtual void apply (X& v, const Y& d) = 0;
    \n+
    71 template<class X, class Y>
    \n+
    \n+\n+
    73 {
    \n+\n+
    75
    \n+
    76 };
    \n+
    \n+
    77
    \n+
    78 template<class X, class Y, class C, class T>
    \n+
    \n+\n+
    80 : public SmootherTraits<T>
    \n+
    81 {};
    \n+
    \n
    82
    \n-
    91 virtual void post (X& x) = 0;
    \n-
    92
    \n-\n-
    95#if DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
    \n-
    96 {
    \n-
    97 DUNE_THROW(Dune::Exception,"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
    \n-
    98 }
    \n-
    99#else
    \n-
    100 = 0;
    \n-
    101#endif
    \n-
    102
    \n-
    104 virtual ~Preconditioner () {}
    \n-
    105
    \n-
    106 };
    \n-
    \n-
    107
    \n-
    111}
    \n-
    112#endif
    \n-\n+
    83 template<class C, class T>
    \n+
    \n+\n+
    85 : public SmootherTraits<T>
    \n+
    86 {};
    \n+
    \n+
    87
    \n+
    91 template<class T>
    \n+
    \n+\n+
    93 {
    \n+
    94 typedef typename T::matrix_type Matrix;
    \n+
    95
    \n+\n+
    97
    \n+\n+
    99
    \n+
    100 public:
    \n+
    \n+\n+
    102 {}
    \n+
    \n+
    103
    \n+
    \n+
    104 void setMatrix(const Matrix& matrix)
    \n+
    105 {
    \n+
    106 matrix_=&matrix;
    \n+
    107 }
    \n+
    \n+
    \n+
    108 virtual void setMatrix(const Matrix& matrix, [[maybe_unused]] const AggregatesMap& amap)
    \n+
    109 {
    \n+
    110 setMatrix(matrix);
    \n+
    111 }
    \n+
    \n+
    112
    \n+
    113
    \n+
    \n+
    114 const Matrix& getMatrix() const
    \n+
    115 {
    \n+
    116 return *matrix_;
    \n+
    117 }
    \n+
    \n+
    118
    \n+
    \n+
    119 void setArgs(const SmootherArgs& args)
    \n+
    120 {
    \n+
    121 args_=&args;
    \n+
    122 }
    \n+
    \n+
    123
    \n+
    124 template<class T1>
    \n+
    \n+
    125 void setComm([[maybe_unused]] T1& comm)
    \n+
    126 {}
    \n+
    \n+
    127
    \n+
    \n+\n+
    129 {
    \n+
    130 return comm_;
    \n+
    131 }
    \n+
    \n+
    132
    \n+
    \n+
    133 const SmootherArgs getArgs() const
    \n+
    134 {
    \n+
    135 return *args_;
    \n+
    136 }
    \n+
    \n+
    137
    \n+
    138 protected:
    \n+
    139 const Matrix* matrix_;
    \n+
    140 private:
    \n+
    141 const SmootherArgs* args_;
    \n+\n+
    143 };
    \n+
    \n+
    144
    \n+
    145 template<class T>
    \n+
    \n+\n+
    147 : public DefaultConstructionArgs<T>
    \n+
    148 {};
    \n+
    \n+
    149
    \n+
    150 template<class T, class C=SequentialInformation>
    \n+
    \n+\n+
    152 : public ConstructionArgs<T>
    \n+
    153 {
    \n+
    154 public:
    \n+
    \n+\n+
    156 {}
    \n+
    \n+
    157
    \n+
    \n+
    158 void setComm(const C& comm)
    \n+
    159 {
    \n+
    160 comm_ = &comm;
    \n+
    161 }
    \n+
    \n+
    162
    \n+
    \n+
    163 const C& getComm() const
    \n+
    164 {
    \n+
    165 return *comm_;
    \n+
    166 }
    \n+
    \n+
    167 private:
    \n+
    168 const C* comm_;
    \n+
    169 };
    \n+
    \n+
    170
    \n+
    171
    \n+
    172 template<class X, class Y>
    \n+
    \n+\n+
    174 {
    \n+
    175 typedef Richardson<X,Y> T;
    \n+
    176
    \n+\n+
    178
    \n+
    179 public:
    \n+
    \n+\n+
    181 {}
    \n+
    \n+
    182
    \n+
    183 template <class... Args>
    \n+
    \n+
    184 void setMatrix(const Args&...)
    \n+
    185 {}
    \n+
    \n+
    186
    \n+
    \n+
    187 void setArgs(const SmootherArgs& args)
    \n+
    188 {
    \n+
    189 args_=&args;
    \n+
    190 }
    \n+
    \n+
    191
    \n+
    192 template<class T1>
    \n+
    \n+
    193 void setComm([[maybe_unused]] T1& comm)
    \n+
    194 {}
    \n+
    \n+
    195
    \n+
    \n+\n+
    197 {
    \n+
    198 return comm_;
    \n+
    199 }
    \n+
    \n+
    200
    \n+
    \n+
    201 const SmootherArgs getArgs() const
    \n+
    202 {
    \n+
    203 return *args_;
    \n+
    204 }
    \n+
    \n+
    205
    \n+
    206 private:
    \n+
    207 const SmootherArgs* args_;
    \n+\n+
    209 };
    \n+
    \n+
    210
    \n+
    211
    \n+
    212
    \n+
    213 template<class T>
    \n+
    214 struct ConstructionTraits;
    \n+
    215
    \n+
    219 template<class M, class X, class Y, int l>
    \n+
    \n+
    220 struct ConstructionTraits<SeqSSOR<M,X,Y,l> >
    \n+
    221 {
    \n+\n+
    223
    \n+
    \n+
    224 static inline std::shared_ptr<SeqSSOR<M,X,Y,l>> construct(Arguments& args)
    \n+
    225 {
    \n+
    226 return std::make_shared<SeqSSOR<M,X,Y,l>>
    \n+
    227 (args.getMatrix(), args.getArgs().iterations, args.getArgs().relaxationFactor);
    \n+
    228 }
    \n+
    \n+
    229 };
    \n+
    \n+
    230
    \n+
    231
    \n+
    235 template<class M, class X, class Y, int l>
    \n+
    \n+
    236 struct ConstructionTraits<SeqSOR<M,X,Y,l> >
    \n+
    237 {
    \n+\n+
    239
    \n+
    \n+
    240 static inline std::shared_ptr<SeqSOR<M,X,Y,l>> construct(Arguments& args)
    \n+
    241 {
    \n+
    242 return std::make_shared<SeqSOR<M,X,Y,l>>
    \n+
    243 (args.getMatrix(), args.getArgs().iterations, args.getArgs().relaxationFactor);
    \n+
    244 }
    \n+
    \n+
    245 };
    \n+
    \n+
    246
    \n+
    247
    \n+
    251 template<class M, class X, class Y, int l>
    \n+
    \n+
    252 struct ConstructionTraits<SeqJac<M,X,Y,l> >
    \n+
    253 {
    \n+\n+
    255
    \n+
    \n+
    256 static inline std::shared_ptr<SeqJac<M,X,Y,l>> construct(Arguments& args)
    \n+
    257 {
    \n+
    258 return std::make_shared<SeqJac<M,X,Y,l>>
    \n+
    259 (args.getMatrix(), args.getArgs().iterations, args.getArgs().relaxationFactor);
    \n+
    260 }
    \n+
    \n+
    261 };
    \n+
    \n+
    262
    \n+
    266 template<class X, class Y>
    \n+
    \n+
    267 struct ConstructionTraits<Richardson<X,Y> >
    \n+
    268 {
    \n+\n+
    270
    \n+
    \n+
    271 static inline std::shared_ptr<Richardson<X,Y>> construct(Arguments& args)
    \n+
    272 {
    \n+
    273 return std::make_shared<Richardson<X,Y>>
    \n+
    274 (args.getArgs().relaxationFactor);
    \n+
    275 }
    \n+
    \n+
    276 };
    \n+
    \n+
    277
    \n+
    278
    \n+
    279 template<class M, class X, class Y>
    \n+
    \n+\n+
    281 : public DefaultConstructionArgs<SeqILU<M,X,Y> >
    \n+
    282 {
    \n+
    283 public:
    \n+
    \n+\n+
    285 : n_(n)
    \n+
    286 {}
    \n+
    \n+
    287
    \n+
    \n+
    288 void setN(int n)
    \n+
    289 {
    \n+
    290 n_ = n;
    \n+
    291 }
    \n+
    \n+
    292
    \n+
    \n+
    293 int getN()
    \n+
    294 {
    \n+
    295 return n_;
    \n+
    296 }
    \n+
    \n+
    297
    \n+
    298 private:
    \n+
    299 int n_;
    \n+
    300 };
    \n+
    \n+
    301
    \n+
    302
    \n+
    306 template<class M, class X, class Y>
    \n+
    \n+
    307 struct ConstructionTraits<SeqILU<M,X,Y> >
    \n+
    308 {
    \n+\n+
    310
    \n+
    \n+
    311 static inline std::shared_ptr<SeqILU<M,X,Y>> construct(Arguments& args)
    \n+
    312 {
    \n+
    313 return std::make_shared<SeqILU<M,X,Y>>
    \n+
    314 (args.getMatrix(), args.getN(), args.getArgs().relaxationFactor);
    \n+
    315 }
    \n+
    \n+
    316 };
    \n+
    \n+
    317
    \n+
    321 template<class M, class X, class Y, class C>
    \n+
    \n+
    322 struct ConstructionTraits<ParSSOR<M,X,Y,C> >
    \n+
    323 {
    \n+\n+
    325
    \n+
    \n+
    326 static inline std::shared_ptr<ParSSOR<M,X,Y,C>> construct(Arguments& args)
    \n+
    327 {
    \n+
    328 return std::make_shared<ParSSOR<M,X,Y,C>>
    \n+
    329 (args.getMatrix(), args.getArgs().iterations,
    \n+
    330 args.getArgs().relaxationFactor, args.getComm());
    \n+
    331 }
    \n+
    \n+
    332 };
    \n+
    \n+
    333
    \n+
    334 template<class X, class Y, class C, class T>
    \n+
    \n+
    335 struct ConstructionTraits<BlockPreconditioner<X,Y,C,T> >
    \n+
    336 {
    \n+\n+
    338 typedef ConstructionTraits<T> SeqConstructionTraits;
    \n+
    \n+
    339 static inline std::shared_ptr<BlockPreconditioner<X,Y,C,T>> construct(Arguments& args)
    \n+
    340 {
    \n+
    341 auto seqPrec = SeqConstructionTraits::construct(args);
    \n+
    342 return std::make_shared<BlockPreconditioner<X,Y,C,T>> (seqPrec, args.getComm());
    \n+
    343 }
    \n+
    \n+
    344 };
    \n+
    \n+
    345
    \n+
    346 template<class C, class T>
    \n+
    \n+
    347 struct ConstructionTraits<NonoverlappingBlockPreconditioner<C,T> >
    \n+
    348 {
    \n+\n+
    350 typedef ConstructionTraits<T> SeqConstructionTraits;
    \n+
    \n+
    351 static inline std::shared_ptr<NonoverlappingBlockPreconditioner<C,T>> construct(Arguments& args)
    \n+
    352 {
    \n+
    353 auto seqPrec = SeqConstructionTraits::construct(args);
    \n+
    354 return std::make_shared<NonoverlappingBlockPreconditioner<C,T>> (seqPrec, args.getComm());
    \n+
    355 }
    \n+
    \n+
    356 };
    \n+
    \n+
    357
    \n+
    368 template<class T>
    \n+
    \n+\n+
    370 {
    \n+
    371 typedef T Smoother;
    \n+
    372 typedef typename Smoother::range_type Range;
    \n+
    373 typedef typename Smoother::domain_type Domain;
    \n+
    374
    \n+
    \n+
    382 static void preSmooth(Smoother& smoother, Domain& v, const Range& d)
    \n+
    383 {
    \n+
    384 smoother.apply(v,d);
    \n+
    385 }
    \n+
    \n+
    386
    \n+
    \n+
    394 static void postSmooth(Smoother& smoother, Domain& v, const Range& d)
    \n+
    395 {
    \n+
    396 smoother.apply(v,d);
    \n+
    397 }
    \n+
    \n+
    398 };
    \n+
    \n+
    399
    \n+
    405 template<typename LevelContext>
    \n+
    \n+
    406 void presmooth(LevelContext& levelContext, size_t steps)
    \n+
    407 {
    \n+
    408 for(std::size_t i=0; i < steps; ++i) {
    \n+
    409 *levelContext.lhs=0;
    \n+\n+
    411 ::preSmooth(*levelContext.smoother, *levelContext.lhs,
    \n+
    412 *levelContext.rhs);
    \n+
    413 // Accumulate update
    \n+
    414 *levelContext.update += *levelContext.lhs;
    \n+
    415
    \n+
    416 // update defect
    \n+
    417 levelContext.matrix->applyscaleadd(-1, *levelContext.lhs, *levelContext.rhs);
    \n+
    418 levelContext.pinfo->project(*levelContext.rhs);
    \n+
    419 }
    \n+
    420 }
    \n+
    \n+
    421
    \n+
    427 template<typename LevelContext>
    \n+
    \n+
    428 void postsmooth(LevelContext& levelContext, size_t steps)
    \n+
    429 {
    \n+
    430 for(std::size_t i=0; i < steps; ++i) {
    \n+
    431 // update defect
    \n+
    432 levelContext.matrix->applyscaleadd(-1, *levelContext.lhs,
    \n+
    433 *levelContext.rhs);
    \n+
    434 *levelContext.lhs=0;
    \n+
    435 levelContext.pinfo->project(*levelContext.rhs);
    \n+\n+
    437 ::postSmooth(*levelContext.smoother, *levelContext.lhs, *levelContext.rhs);
    \n+
    438 // Accumulate update
    \n+
    439 *levelContext.update += *levelContext.lhs;
    \n+
    440 }
    \n+
    441 }
    \n+
    \n+
    442
    \n+
    443 template<class M, class X, class Y, int l>
    \n+
    \n+
    444 struct SmootherApplier<SeqSOR<M,X,Y,l> >
    \n+
    445 {
    \n+\n+
    447 typedef typename Smoother::range_type Range;
    \n+\n+
    449
    \n+
    \n+
    450 static void preSmooth(Smoother& smoother, Domain& v, Range& d)
    \n+
    451 {
    \n+
    452 smoother.template apply<true>(v,d);
    \n+
    453 }
    \n+
    \n+
    454
    \n+
    455
    \n+
    \n+
    456 static void postSmooth(Smoother& smoother, Domain& v, Range& d)
    \n+
    457 {
    \n+
    458 smoother.template apply<false>(v,d);
    \n+
    459 }
    \n+
    \n+
    460 };
    \n+
    \n+
    461
    \n+
    462 template<class M, class X, class Y, class C, int l>
    \n+
    \n+\n+
    464 {
    \n+\n+
    466 typedef typename Smoother::range_type Range;
    \n+\n+
    468
    \n+
    \n+
    469 static void preSmooth(Smoother& smoother, Domain& v, Range& d)
    \n+
    470 {
    \n+
    471 smoother.template apply<true>(v,d);
    \n+
    472 }
    \n+
    \n+
    473
    \n+
    474
    \n+
    \n+
    475 static void postSmooth(Smoother& smoother, Domain& v, Range& d)
    \n+
    476 {
    \n+
    477 smoother.template apply<false>(v,d);
    \n+
    478 }
    \n+
    \n+
    479 };
    \n+
    \n+
    480
    \n+
    481 template<class M, class X, class Y, class C, int l>
    \n+
    \n+\n+
    483 {
    \n+\n+
    485 typedef typename Smoother::range_type Range;
    \n+\n+
    487
    \n+
    \n+
    488 static void preSmooth(Smoother& smoother, Domain& v, Range& d)
    \n+
    489 {
    \n+
    490 smoother.template apply<true>(v,d);
    \n+
    491 }
    \n+
    \n+
    492
    \n+
    493
    \n+
    \n+
    494 static void postSmooth(Smoother& smoother, Domain& v, Range& d)
    \n+
    495 {
    \n+
    496 smoother.template apply<false>(v,d);
    \n+
    497 }
    \n+
    \n+
    498 };
    \n+
    \n+
    499
    \n+
    500 } // end namespace Amg
    \n+
    501
    \n+
    502 // forward declarations
    \n+
    503 template<class M, class X, class MO, class MS, class A>
    \n+
    504 class SeqOverlappingSchwarz;
    \n+
    505
    \n+
    506 struct MultiplicativeSchwarzMode;
    \n+
    507
    \n+
    508 namespace Amg
    \n+
    509 {
    \n+
    510 template<class M, class X, class MS, class TA>
    \n+
    \n+\n+
    512 MS,TA> >
    \n+
    513 {
    \n+\n+
    515 typedef typename Smoother::range_type Range;
    \n+\n+
    517
    \n+
    \n+
    518 static void preSmooth(Smoother& smoother, Domain& v, const Range& d)
    \n+
    519 {
    \n+
    520 smoother.template apply<true>(v,d);
    \n+
    521 }
    \n+
    \n+
    522
    \n+
    523
    \n+
    \n+
    524 static void postSmooth(Smoother& smoother, Domain& v, const Range& d)
    \n+
    525 {
    \n+
    526 smoother.template apply<false>(v,d);
    \n+
    527
    \n+
    528 }
    \n+
    \n+
    529 };
    \n+
    \n+
    530
    \n+
    531 // template<class M, class X, class TM, class TA>
    \n+
    532 // class SeqOverlappingSchwarz;
    \n+
    533
    \n+
    534 template<class T>
    \n+
    \n+\n+
    536 : public DefaultSmootherArgs<T>
    \n+
    537 {
    \n+\n+
    539
    \n+\n+\n+
    542
    \n+
    \n+\n+
    544 bool onthefly_=false)
    \n+
    545 : overlap(overlap_), onthefly(onthefly_)
    \n+
    546 {}
    \n+
    \n+
    547 };
    \n+
    \n+
    548
    \n+
    549 template<class M, class X, class TM, class TS, class TA>
    \n+\n+
    554
    \n+
    555 template<class M, class X, class TM, class TS, class TA>
    \n+
    \n+\n+
    557 : public DefaultConstructionArgs<SeqOverlappingSchwarz<M,X,TM,TS,TA> >
    \n+
    558 {
    \n+\n+
    560
    \n+
    561 public:
    \n+\n+\n+\n+\n+
    566 typedef typename Vector::value_type Subdomain;
    \n+
    567
    \n+
    \n+
    568 virtual void setMatrix(const M& matrix, const AggregatesMap& amap)
    \n+
    569 {
    \n+
    570 Father::setMatrix(matrix);
    \n+
    571
    \n+
    572 std::vector<bool> visited(amap.noVertices(), false);
    \n+
    573 typedef IteratorPropertyMap<std::vector<bool>::iterator,IdentityMap> VisitedMapType;
    \n+
    574 VisitedMapType visitedMap(visited.begin());
    \n+
    575
    \n+
    576 MatrixGraph<const M> graph(matrix);
    \n+
    577
    \n+\n+
    579
    \n+
    580 switch(Father::getArgs().overlap) {
    \n+
    581 case SmootherArgs::vertex :
    \n+
    582 {
    \n+
    583 VertexAdder visitor(subdomains, amap);
    \n+
    584 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n+
    585 }
    \n+
    586 break;
    \n+
    587 case SmootherArgs::pairwise :
    \n+
    588 {
    \n+
    589 createPairDomains(graph);
    \n+
    590 }
    \n+
    591 break;
    \n+
    592 case SmootherArgs::aggregate :
    \n+
    593 {
    \n+
    594 AggregateAdder<VisitedMapType> visitor(subdomains, amap, graph, visitedMap);
    \n+
    595 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n+
    596 }
    \n+
    597 break;
    \n+
    598 case SmootherArgs::none :
    \n+
    599 NoneAdder visitor;
    \n+
    600 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n+
    601 break;
    \n+
    602 default :
    \n+
    603 DUNE_THROW(NotImplemented, "This overlapping scheme is not supported!");
    \n+
    604 }
    \n+
    605 }
    \n+
    \n+
    \n+
    606 void setMatrix(const M& matrix)
    \n+
    607 {
    \n+
    608 Father::setMatrix(matrix);
    \n+
    609
    \n+
    610 /* Create aggregates map where each aggregate is just one vertex. */
    \n+
    611 AggregatesMap amap(matrix.N());
    \n+\n+
    613 for(typename AggregatesMap::iterator iter=amap.begin();
    \n+
    614 iter!=amap.end(); ++iter)
    \n+
    615 *iter=v++;
    \n+
    616
    \n+
    617 std::vector<bool> visited(amap.noVertices(), false);
    \n+
    618 typedef IteratorPropertyMap<std::vector<bool>::iterator,IdentityMap> VisitedMapType;
    \n+
    619 VisitedMapType visitedMap(visited.begin());
    \n+
    620
    \n+
    621 MatrixGraph<const M> graph(matrix);
    \n+
    622
    \n+\n+
    624
    \n+
    625 switch(Father::getArgs().overlap) {
    \n+
    626 case SmootherArgs::vertex :
    \n+
    627 {
    \n+
    628 VertexAdder visitor(subdomains, amap);
    \n+
    629 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n+
    630 }
    \n+
    631 break;
    \n+
    632 case SmootherArgs::aggregate :
    \n+
    633 {
    \n+
    634 DUNE_THROW(NotImplemented, "Aggregate overlap is not supported yet");
    \n+
    635 /*
    \n+
    636 AggregateAdder<VisitedMapType> visitor(subdomains, amap, graph, visitedMap);
    \n+
    637 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n+
    638 */
    \n+
    639 }
    \n+
    640 break;
    \n+
    641 case SmootherArgs::pairwise :
    \n+
    642 {
    \n+
    643 createPairDomains(graph);
    \n+
    644 }
    \n+
    645 break;
    \n+
    646 case SmootherArgs::none :
    \n+
    647 NoneAdder visitor;
    \n+
    648 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n+
    649
    \n+
    650 }
    \n+
    651 }
    \n+
    \n+
    652
    \n+
    \n+\n+
    654 {
    \n+
    655 return subdomains;
    \n+
    656 }
    \n+
    \n+
    657
    \n+
    658 private:
    \n+
    659 struct VertexAdder
    \n+
    660 {
    \n+
    \n+
    661 VertexAdder(Vector& subdomains_, const AggregatesMap& aggregates_)
    \n+
    662 : subdomains(subdomains_), max(-1), subdomain(-1), aggregates(aggregates_)
    \n+
    663 {}
    \n+
    \n+
    664 template<class T>
    \n+
    \n+
    665 void operator()(const T& edge)
    \n+
    666 {
    \n+
    667 if(aggregates[edge.target()]!=AggregatesMap::ISOLATED)
    \n+
    668 subdomains[subdomain].insert(edge.target());
    \n+
    669 }
    \n+
    \n+
    \n+
    670 int setAggregate(const AggregateDescriptor& aggregate_)
    \n+
    671 {
    \n+
    672 subdomain=aggregate_;
    \n+
    673 max = std::max(subdomain, aggregate_);
    \n+
    674 return subdomain;
    \n+
    675 }
    \n+
    \n+
    \n+
    676 int noSubdomains() const
    \n+
    677 {
    \n+
    678 return max+1;
    \n+
    679 }
    \n+
    \n+
    680 private:
    \n+
    681 Vector& subdomains;
    \n+\n+
    683 AggregateDescriptor subdomain;
    \n+
    684 const AggregatesMap& aggregates;
    \n+
    685 };
    \n+
    686 struct NoneAdder
    \n+
    687 {
    \n+
    688 template<class T>
    \n+
    \n+
    689 void operator()(const T& edge)
    \n+
    690 {}
    \n+
    \n+
    \n+
    691 int setAggregate(const AggregateDescriptor& aggregate_)
    \n+
    692 {
    \n+
    693 return -1;
    \n+
    694 }
    \n+
    \n+
    \n+
    695 int noSubdomains() const
    \n+
    696 {
    \n+
    697 return -1;
    \n+
    698 }
    \n+
    \n+
    699 };
    \n+
    700
    \n+
    701 template<class VM>
    \n+
    702 struct AggregateAdder
    \n+
    703 {
    \n+
    \n+
    704 AggregateAdder(Vector& subdomains_, const AggregatesMap& aggregates_,
    \n+
    705 const MatrixGraph<const M>& graph_, VM& visitedMap_)
    \n+
    706 : subdomains(subdomains_), subdomain(-1), aggregates(aggregates_),
    \n+
    707 adder(subdomains_, aggregates_), graph(graph_), visitedMap(visitedMap_)
    \n+
    708 {}
    \n+
    \n+
    709 template<class T>
    \n+
    \n+
    710 void operator()(const T& edge)
    \n+
    711 {
    \n+
    712 subdomains[subdomain].insert(edge.target());
    \n+
    713 // If we (the neighbouring vertex of the aggregate)
    \n+
    714 // are not isolated, add the aggregate we belong to
    \n+
    715 // to the same subdomain using the OneOverlapAdder
    \n+
    716 if(aggregates[edge.target()]!=AggregatesMap::ISOLATED) {
    \n+
    717 assert(aggregates[edge.target()]!=aggregate);
    \n+
    718 typename AggregatesMap::VertexList vlist;
    \n+
    719 aggregates.template breadthFirstSearch<true,false>(edge.target(), aggregate,
    \n+
    720 graph, vlist, adder, adder,
    \n+
    721 visitedMap);
    \n+
    722 }
    \n+
    723 }
    \n+
    \n+
    724
    \n+
    \n+
    725 int setAggregate(const AggregateDescriptor& aggregate_)
    \n+
    726 {
    \n+
    727 adder.setAggregate(aggregate_);
    \n+
    728 aggregate=aggregate_;
    \n+
    729 return ++subdomain;
    \n+
    730 }
    \n+
    \n+
    \n+
    731 int noSubdomains() const
    \n+
    732 {
    \n+
    733 return subdomain+1;
    \n+
    734 }
    \n+
    \n+
    735
    \n+
    736 private:
    \n+
    737 AggregateDescriptor aggregate;
    \n+
    738 Vector& subdomains;
    \n+
    739 int subdomain;
    \n+
    740 const AggregatesMap& aggregates;
    \n+
    741 VertexAdder adder;
    \n+
    742 const MatrixGraph<const M>& graph;
    \n+
    743 VM& visitedMap;
    \n+
    744 };
    \n+
    745
    \n+
    746 void createPairDomains(const MatrixGraph<const M>& graph)
    \n+
    747 {
    \n+
    748 typedef typename MatrixGraph<const M>::ConstVertexIterator VIter;
    \n+
    749 typedef typename MatrixGraph<const M>::ConstEdgeIterator EIter;
    \n+
    750 typedef typename M::size_type size_type;
    \n+
    751
    \n+
    752 std::set<std::pair<size_type,size_type> > pairs;
    \n+
    753 int total=0;
    \n+
    754 for(VIter v=graph.begin(), ve=graph.end(); ve != v; ++v)
    \n+
    755 for(EIter e = v.begin(), ee=v.end(); ee!=e; ++e)
    \n+
    756 {
    \n+
    757 ++total;
    \n+
    758 if(e.source()<e.target())
    \n+
    759 pairs.insert(std::make_pair(e.source(),e.target()));
    \n+
    760 else
    \n+
    761 pairs.insert(std::make_pair(e.target(),e.source()));
    \n+
    762 }
    \n+
    763
    \n+
    764
    \n+
    765 subdomains.resize(pairs.size());
    \n+
    766 Dune::dinfo <<std::endl<< "Created "<<pairs.size()<<" ("<<total<<") pair domains"<<std::endl<<std::endl;
    \n+
    767 typedef typename std::set<std::pair<size_type,size_type> >::const_iterator SIter;
    \n+
    768 typename Vector::iterator subdomain=subdomains.begin();
    \n+
    769
    \n+
    770 for(SIter s=pairs.begin(), se =pairs.end(); se!=s; ++s)
    \n+
    771 {
    \n+
    772 subdomain->insert(s->first);
    \n+
    773 subdomain->insert(s->second);
    \n+
    774 ++subdomain;
    \n+
    775 }
    \n+
    776 std::size_t minsize=10000;
    \n+
    777 std::size_t maxsize=0;
    \n+
    778 int sum=0;
    \n+
    779 for(typename Vector::size_type i=0; i < subdomains.size(); ++i) {
    \n+
    780 sum+=subdomains[i].size();
    \n+
    781 minsize=std::min(minsize, subdomains[i].size());
    \n+
    782 maxsize=std::max(maxsize, subdomains[i].size());
    \n+
    783 }
    \n+
    784 Dune::dinfo<<"Subdomain size: min="<<minsize<<" max="<<maxsize<<" avg="<<(sum/subdomains.size())
    \n+
    785 <<" no="<<subdomains.size()<<std::endl;
    \n+
    786 }
    \n+
    787
    \n+
    788 template<class Visitor>
    \n+
    789 void createSubdomains(const M& matrix, const MatrixGraph<const M>& graph,
    \n+
    790 const AggregatesMap& amap, Visitor& overlapVisitor,
    \n+
    791 IteratorPropertyMap<std::vector<bool>::iterator,IdentityMap>& visitedMap )
    \n+
    792 {
    \n+
    793 // count number ag aggregates. We assume that the
    \n+
    794 // aggregates are numbered consecutively from 0 except
    \n+
    795 // for the isolated ones. All isolated vertices form
    \n+
    796 // one aggregate, here.
    \n+
    797 int isolated=0;
    \n+
    798 AggregateDescriptor maxAggregate=0;
    \n+
    799
    \n+
    800 for(std::size_t i=0; i < amap.noVertices(); ++i)
    \n+
    801 if(amap[i]==AggregatesMap::ISOLATED)
    \n+
    802 isolated++;
    \n+
    803 else
    \n+
    804 maxAggregate = std::max(maxAggregate, amap[i]);
    \n+
    805
    \n+
    806 subdomains.resize(maxAggregate+1+isolated);
    \n+
    807
    \n+
    808 // reset the subdomains
    \n+
    809 for(typename Vector::size_type i=0; i < subdomains.size(); ++i)
    \n+
    810 subdomains[i].clear();
    \n+
    811
    \n+
    812 // Create the subdomains from the aggregates mapping.
    \n+
    813 // For each aggregate we mark all entries and the
    \n+
    814 // neighbouring vertices as belonging to the same subdomain
    \n+
    815 VertexAdder aggregateVisitor(subdomains, amap);
    \n+
    816
    \n+
    817 for(VertexDescriptor i=0; i < amap.noVertices(); ++i)
    \n+
    818 if(!get(visitedMap, i)) {
    \n+
    819 AggregateDescriptor aggregate=amap[i];
    \n+
    820
    \n+
    821 if(amap[i]==AggregatesMap::ISOLATED) {
    \n+
    822 // isolated vertex gets its own aggregate
    \n+
    823 subdomains.push_back(Subdomain());
    \n+
    824 aggregate=subdomains.size()-1;
    \n+
    825 }
    \n+
    826 overlapVisitor.setAggregate(aggregate);
    \n+
    827 aggregateVisitor.setAggregate(aggregate);
    \n+
    828 subdomains[aggregate].insert(i);
    \n+
    829 typename AggregatesMap::VertexList vlist;
    \n+
    830 amap.template breadthFirstSearch<false,false>(i, aggregate, graph, vlist, aggregateVisitor,
    \n+
    831 overlapVisitor, visitedMap);
    \n+
    832 }
    \n+
    833
    \n+
    834 std::size_t minsize=10000;
    \n+
    835 std::size_t maxsize=0;
    \n+
    836 int sum=0;
    \n+
    837 for(typename Vector::size_type i=0; i < subdomains.size(); ++i) {
    \n+
    838 sum+=subdomains[i].size();
    \n+
    839 minsize=std::min(minsize, subdomains[i].size());
    \n+
    840 maxsize=std::max(maxsize, subdomains[i].size());
    \n+
    841 }
    \n+
    842 Dune::dinfo<<"Subdomain size: min="<<minsize<<" max="<<maxsize<<" avg="<<(sum/subdomains.size())
    \n+
    843 <<" no="<<subdomains.size()<<" isolated="<<isolated<<std::endl;
    \n+
    844
    \n+
    845
    \n+
    846
    \n+
    847 }
    \n+
    848 Vector subdomains;
    \n+
    849 };
    \n+
    \n+
    850
    \n+
    851
    \n+
    852 template<class M, class X, class TM, class TS, class TA>
    \n+
    \n+
    853 struct ConstructionTraits<SeqOverlappingSchwarz<M,X,TM,TS,TA> >
    \n+
    854 {
    \n+\n+
    856
    \n+
    \n+
    857 static inline std::shared_ptr<SeqOverlappingSchwarz<M,X,TM,TS,TA>> construct(Arguments& args)
    \n+
    858 {
    \n+
    859 return std::make_shared<SeqOverlappingSchwarz<M,X,TM,TS,TA>>
    \n+
    860 (args.getMatrix(),
    \n+
    861 args.getSubDomains(),
    \n+\n+
    863 args.getArgs().onthefly);
    \n+
    864 }
    \n+
    \n+
    865 };
    \n+
    \n+
    866
    \n+
    867
    \n+
    868 } // namespace Amg
    \n+
    869} // namespace Dune
    \n+
    870
    \n+
    871
    \n+
    872
    \n+
    873#endif
    \n+\n+
    Provides classes for the Coloring process of AMG.
    \n+
    Helper classes for the construction of classes without empty constructor.
    \n+\n+
    Define general preconditioner interface.
    \n+
    DefaultSmootherArgs< typename X::field_type > Arguments
    Definition smoother.hh:74
    \n+
    static void postSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:494
    \n+\n+
    static void preSmooth(Smoother &smoother, Domain &v, const Range &d)
    Definition smoother.hh:518
    \n+
    static std::shared_ptr< SeqJac< M, X, Y, l > > construct(Arguments &args)
    Definition smoother.hh:256
    \n+
    ConstructionArgs< SeqILU< M, X, Y > > Arguments
    Definition smoother.hh:309
    \n+
    const Matrix & getMatrix() const
    Definition smoother.hh:114
    \n+\n+
    int setAggregate(const AggregateDescriptor &aggregate_)
    Definition smoother.hh:691
    \n+
    DefaultSmootherArgs< typename T::matrix_type::field_type > Arguments
    Definition smoother.hh:67
    \n+
    int setAggregate(const AggregateDescriptor &aggregate_)
    Definition smoother.hh:670
    \n+
    ConstructionTraits< T > SeqConstructionTraits
    Definition smoother.hh:350
    \n+
    void setArgs(const SmootherArgs &args)
    Definition smoother.hh:119
    \n+
    ConstructionArgs< SeqOverlappingSchwarz< M, X, TM, TS, TA > > Arguments
    Definition smoother.hh:855
    \n+
    NonoverlappingBlockPreconditioner< C, SeqSOR< M, X, Y, l > > Smoother
    Definition smoother.hh:484
    \n+
    static void postSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:456
    \n+
    AggregateAdder(Vector &subdomains_, const AggregatesMap &aggregates_, const MatrixGraph< const M > &graph_, VM &visitedMap_)
    Definition smoother.hh:704
    \n+\n+
    void setComm(const C &comm)
    Definition smoother.hh:158
    \n+
    DefaultConstructionArgs< Richardson< X, Y > > Arguments
    Definition smoother.hh:269
    \n+
    virtual ~DefaultConstructionArgs()
    Definition smoother.hh:180
    \n+
    SeqOverlappingSchwarzSmootherArgs< typename M::field_type > Arguments
    Definition smoother.hh:552
    \n+\n+
    static void preSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:488
    \n+
    int getN()
    Definition smoother.hh:293
    \n+\n+
    SeqSOR< M, X, Y, l > Smoother
    Definition smoother.hh:446
    \n+\n+
    static std::shared_ptr< SeqSSOR< M, X, Y, l > > construct(Arguments &args)
    Definition smoother.hh:224
    \n+
    AggregatesMap::AggregateDescriptor AggregateDescriptor
    Definition smoother.hh:564
    \n+
    bool onthefly
    Definition smoother.hh:541
    \n+
    DefaultConstructionArgs< SeqSOR< M, X, Y, l > > Arguments
    Definition smoother.hh:238
    \n+
    virtual void setMatrix(const M &matrix, const AggregatesMap &amap)
    Definition smoother.hh:568
    \n+
    void setMatrix(const Args &...)
    Definition smoother.hh:184
    \n+
    DefaultConstructionArgs< SeqJac< M, X, Y, l > > Arguments
    Definition smoother.hh:254
    \n+
    DefaultConstructionArgs< SeqSSOR< M, X, Y, l > > Arguments
    Definition smoother.hh:222
    \n+
    const SmootherArgs getArgs() const
    Definition smoother.hh:133
    \n+
    VertexAdder(Vector &subdomains_, const AggregatesMap &aggregates_)
    Definition smoother.hh:661
    \n+\n+
    SeqOverlappingSchwarz< M, X, TM, TS, TA >::subdomain_vector Vector
    Definition smoother.hh:565
    \n+
    static std::shared_ptr< SeqOverlappingSchwarz< M, X, TM, TS, TA > > construct(Arguments &args)
    Definition smoother.hh:857
    \n+
    static void preSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:469
    \n+
    const_iterator begin() const
    Definition aggregates.hh:725
    \n+
    void setMatrix(const Matrix &matrix)
    Definition smoother.hh:104
    \n+
    T Smoother
    Definition smoother.hh:371
    \n+
    static void preSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:450
    \n+
    BlockPreconditioner< X, Y, C, SeqSOR< M, X, Y, l > > Smoother
    Definition smoother.hh:465
    \n+
    void setComm(T1 &comm)
    Definition smoother.hh:193
    \n+\n+
    AggregateDescriptor * iterator
    Definition aggregates.hh:735
    \n+
    void presmooth(LevelContext &levelContext, size_t steps)
    Apply pre smoothing on the current level.
    Definition smoother.hh:406
    \n+\n+
    SeqOverlappingSchwarzSmootherArgs(Overlap overlap_=vertex, bool onthefly_=false)
    Definition smoother.hh:543
    \n+
    DefaultParallelConstructionArgs< T, C > Arguments
    Definition smoother.hh:337
    \n+
    DefaultParallelConstructionArgs< T, C > Arguments
    Definition smoother.hh:349
    \n+
    const Matrix * matrix_
    Definition smoother.hh:139
    \n+
    const_iterator end() const
    Definition aggregates.hh:730
    \n+
    const SequentialInformation & getComm()
    Definition smoother.hh:128
    \n+
    V AggregateDescriptor
    The aggregate descriptor type.
    Definition aggregates.hh:580
    \n+
    static const V ISOLATED
    Identifier of isolated vertices.
    Definition aggregates.hh:571
    \n+
    DefaultSmootherArgs()
    Default constructor.
    Definition smoother.hh:56
    \n+
    void setMatrix(const M &matrix)
    Definition smoother.hh:606
    \n+
    std::size_t noVertices() const
    Get the number of vertices.
    \n+\n+
    static void postSmooth(Smoother &smoother, Domain &v, const Range &d)
    apply post smoothing in forward direction
    Definition smoother.hh:394
    \n+
    FieldTraits< T >::real_type RelaxationFactor
    The type of the relaxation factor.
    Definition smoother.hh:42
    \n+\n+
    Smoother::domain_type Domain
    Definition smoother.hh:373
    \n+
    void setN(int n)
    Definition smoother.hh:288
    \n+
    static std::shared_ptr< BlockPreconditioner< X, Y, C, T > > construct(Arguments &args)
    Definition smoother.hh:339
    \n+
    SLList< VertexDescriptor, Allocator > VertexList
    The type of a single linked list of vertex descriptors.
    Definition aggregates.hh:592
    \n+
    static std::shared_ptr< NonoverlappingBlockPreconditioner< C, T > > construct(Arguments &args)
    Definition smoother.hh:351
    \n+
    SeqOverlappingSchwarz< M, X, MultiplicativeSchwarzMode, MS, TA > Smoother
    Definition smoother.hh:514
    \n+
    static std::shared_ptr< ParSSOR< M, X, Y, C > > construct(Arguments &args)
    Definition smoother.hh:326
    \n+
    MatrixGraph< M >::VertexDescriptor VertexDescriptor
    Definition smoother.hh:562
    \n+
    static std::shared_ptr< SeqILU< M, X, Y > > construct(Arguments &args)
    Definition smoother.hh:311
    \n+\n+
    const SequentialInformation & getComm()
    Definition smoother.hh:196
    \n+
    static std::shared_ptr< SeqSOR< M, X, Y, l > > construct(Arguments &args)
    Definition smoother.hh:240
    \n+
    static std::shared_ptr< Richardson< X, Y > > construct(Arguments &args)
    Definition smoother.hh:271
    \n+
    virtual void setMatrix(const Matrix &matrix, const AggregatesMap &amap)
    Definition smoother.hh:108
    \n+\n+
    void postsmooth(LevelContext &levelContext, size_t steps)
    Apply post smoothing on the current level.
    Definition smoother.hh:428
    \n+
    Dune::Amg::AggregatesMap< VertexDescriptor > AggregatesMap
    Definition smoother.hh:563
    \n+
    const SmootherArgs getArgs() const
    Definition smoother.hh:201
    \n+
    void setComm(T1 &comm)
    Definition smoother.hh:125
    \n+
    static void postSmooth(Smoother &smoother, Domain &v, const Range &d)
    Definition smoother.hh:524
    \n+
    DefaultParallelConstructionArgs< M, C > Arguments
    Definition smoother.hh:324
    \n+
    RelaxationFactor relaxationFactor
    The relaxation factor to use.
    Definition smoother.hh:51
    \n+
    virtual ~DefaultParallelConstructionArgs()
    Definition smoother.hh:155
    \n+
    Smoother::domain_type Domain
    Definition smoother.hh:448
    \n+
    int setAggregate(const AggregateDescriptor &aggregate_)
    Definition smoother.hh:725
    \n+
    Smoother::range_type Range
    Definition smoother.hh:447
    \n+
    const C & getComm() const
    Definition smoother.hh:163
    \n+
    virtual ~DefaultConstructionArgs()
    Definition smoother.hh:101
    \n+
    static void preSmooth(Smoother &smoother, Domain &v, const Range &d)
    apply pre smoothing in forward direction
    Definition smoother.hh:382
    \n+
    static void postSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:475
    \n+
    ConstructionTraits< T > SeqConstructionTraits
    Definition smoother.hh:338
    \n+
    ConstructionArgs(int n=0)
    Definition smoother.hh:284
    \n+\n+
    void setArgs(const SmootherArgs &args)
    Definition smoother.hh:187
    \n+
    int iterations
    The numbe of iterations to perform.
    Definition smoother.hh:47
    \n+
    Smoother::range_type Range
    Definition smoother.hh:372
    \n+
    Overlap overlap
    Definition smoother.hh:540
    \n+\n+
    @ aggregate
    Definition smoother.hh:538
    \n+\n+
    @ pairwise
    Definition smoother.hh:538
    \n+\n
    Definition allocator.hh:11
    \n-
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n-
    virtual void post(X &x)=0
    Clean up.
    \n-
    virtual void apply(X &v, const Y &d)=0
    Apply one step of the preconditioner to the system A(v)=d.
    \n-
    virtual ~Preconditioner()
    every abstract base class has a virtual destructor
    Definition preconditioner.hh:104
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition preconditioner.hh:37
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioner.hh:35
    \n-
    virtual SolverCategory::Category category() const =0
    Category of the preconditioner (see SolverCategory::Category)
    \n-
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioner.hh:39
    \n-
    virtual void pre(X &x, Y &b)=0
    Prepare the preconditioner.
    \n-
    Category
    Definition solvercategory.hh:23
    \n+
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n+
    Sequential overlapping Schwarz preconditioner.
    Definition overlappingschwarz.hh:755
    \n+
    X range_type
    The range type of the preconditioner.
    Definition overlappingschwarz.hh:770
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition overlappingschwarz.hh:765
    \n+
    std::vector< subdomain_type, typename std::allocator_traits< TA >::template rebind_alloc< subdomain_type > > subdomain_vector
    The vector type containing the subdomain to row index mapping.
    Definition overlappingschwarz.hh:797
    \n+
    Nonoverlapping parallel preconditioner.
    Definition novlpschwarz.hh:276
    \n+
    P::range_type range_type
    The range type of the preconditioner.
    Definition novlpschwarz.hh:284
    \n+
    P::domain_type domain_type
    The domain type of the preconditioner.
    Definition novlpschwarz.hh:282
    \n+
    Tag that tells the Schwarz method to be multiplicative.
    Definition overlappingschwarz.hh:126
    \n+
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n+
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n+
    VertexIterator end()
    Get an iterator over the vertices.
    \n+
    M::size_type VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:73
    \n+
    VertexIterator begin()
    Get an iterator over the vertices.
    \n+
    Iterator over all edges starting from a vertex.
    Definition graph.hh:95
    \n+
    The vertex iterator type of the graph.
    Definition graph.hh:209
    \n+
    Definition pinfo.hh:28
    \n+
    The default class for the smoother arguments.
    Definition smoother.hh:38
    \n+
    Traits class for getting the attribute class of a smoother.
    Definition smoother.hh:66
    \n+
    Construction Arguments for the default smoothers.
    Definition smoother.hh:93
    \n+
    Definition smoother.hh:148
    \n+\n+\n+\n+
    Helper class for applying the smoothers.
    Definition smoother.hh:370
    \n+\n+\n+
    Sequential SSOR preconditioner.
    Definition preconditioners.hh:141
    \n+
    Sequential SOR preconditioner.
    Definition preconditioners.hh:261
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:266
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:268
    \n+
    The sequential jacobian preconditioner.
    Definition preconditioners.hh:412
    \n+
    Sequential ILU preconditioner.
    Definition preconditioners.hh:532
    \n+
    Richardson preconditioner.
    Definition preconditioners.hh:713
    \n+
    A parallel SSOR preconditioner.
    Definition schwarz.hh:175
    \n+
    Block parallel preconditioner.
    Definition schwarz.hh:278
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition schwarz.hh:285
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition schwarz.hh:290
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,91 +1,1343 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-preconditioner.hh\n+ * _\bp_\ba_\ba_\bm_\bg\n+smoother.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_PRECONDITIONER_HH\n-6#define DUNE_ISTL_PRECONDITIONER_HH\n+5#ifndef DUNE_AMGSMOOTHER_HH\n+6#define DUNE_AMGSMOOTHER_HH\n 7\n-8#include \n-9\n-10#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n-11\n-12namespace _\bD_\bu_\bn_\be {\n-17 //=====================================================================\n-30 //=====================================================================\n-31 template\n-_\b3_\b2 class _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n-33 public:\n-_\b3_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b3_\b7 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b3_\b9 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-40\n-_\b6_\b9 virtual void _\bp_\br_\be (X& x, Y& b) = 0;\n+8#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+9#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n+10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n+11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n+12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n+13#include \n+14#include \n+15\n+16namespace _\bD_\bu_\bn_\be\n+17{\n+18 namespace Amg\n+19 {\n+20\n+36 template\n+_\b3_\b7 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+38 {\n+_\b4_\b2 typedef typename FieldTraits::real_type _\bR_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br;\n+43\n+_\b4_\b7 int _\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs;\n+_\b5_\b1 _\bR_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br _\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br;\n+52\n+_\b5_\b6 _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs()\n+57 : _\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs(1), _\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br(1.0)\n+58 {}\n+59 };\n+60\n+64 template\n+_\b6_\b5 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs\n+66 {\n+_\b6_\b7 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bT_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+68\n+69 };\n 70\n-_\b8_\b1 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d) = 0;\n+71 template\n+_\b7_\b2 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs<_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn>\n+73 {\n+_\b7_\b4 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bX_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+75\n+76 };\n+77\n+78 template\n+_\b7_\b9 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs<_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\n+80 : public _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs\n+81 {};\n 82\n-_\b9_\b1 virtual void _\bp_\bo_\bs_\bt (X& x) = 0;\n-92\n-_\b9_\b4 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-95#if DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE\n-96 {\n-97 DUNE_THROW(Dune::Exception,\"It is necessary to implement the category method\n-in a derived classes, in the future this method will pure virtual.\");\n-98 }\n-99#else\n-100 = 0;\n-101#endif\n-102\n-_\b1_\b0_\b4 virtual _\b~_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br () {}\n-105\n-106 };\n-107\n-111}\n-112#endif\n-_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n+83 template\n+_\b8_\b4 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\n+85 : public _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs\n+86 {};\n+87\n+91 template\n+_\b9_\b2 class _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+93 {\n+94 typedef typename T::matrix_type Matrix;\n+95\n+96 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n+97\n+98 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br> _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp;\n+99\n+100 public:\n+_\b1_\b0_\b1 virtual _\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs()\n+102 {}\n+103\n+_\b1_\b0_\b4 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const Matrix& matrix)\n+105 {\n+106 _\bm_\ba_\bt_\br_\bi_\bx_\b_=&matrix;\n+107 }\n+_\b1_\b0_\b8 virtual void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const Matrix& matrix, [[maybe_unused]] const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& amap)\n+109 {\n+110 _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(matrix);\n+111 }\n+112\n+113\n+_\b1_\b1_\b4 const Matrix& _\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx() const\n+115 {\n+116 return *_\bm_\ba_\bt_\br_\bi_\bx_\b_;\n+117 }\n+118\n+_\b1_\b1_\b9 void _\bs_\be_\bt_\bA_\br_\bg_\bs(const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& args)\n+120 {\n+121 args_=&args;\n+122 }\n+123\n+124 template\n+_\b1_\b2_\b5 void _\bs_\be_\bt_\bC_\bo_\bm_\bm([[maybe_unused]] T1& comm)\n+126 {}\n+127\n+_\b1_\b2_\b8 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& _\bg_\be_\bt_\bC_\bo_\bm_\bm()\n+129 {\n+130 return comm_;\n+131 }\n+132\n+_\b1_\b3_\b3 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs _\bg_\be_\bt_\bA_\br_\bg_\bs() const\n+134 {\n+135 return *args_;\n+136 }\n+137\n+138 protected:\n+_\b1_\b3_\b9 const Matrix* _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n+140 private:\n+141 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs* args_;\n+142 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn comm_;\n+143 };\n+144\n+145 template\n+_\b1_\b4_\b6 struct _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+147 : public _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+148 {};\n+149\n+150 template\n+_\b1_\b5_\b1 class _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+152 : public _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+153 {\n+154 public:\n+_\b1_\b5_\b5 virtual _\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs()\n+156 {}\n+157\n+_\b1_\b5_\b8 void _\bs_\be_\bt_\bC_\bo_\bm_\bm(const C& comm)\n+159 {\n+160 comm_ = &comm;\n+161 }\n+162\n+_\b1_\b6_\b3 const C& _\bg_\be_\bt_\bC_\bo_\bm_\bm() const\n+164 {\n+165 return *comm_;\n+166 }\n+167 private:\n+168 const C* comm_;\n+169 };\n+170\n+171\n+172 template\n+_\b1_\b7_\b3 class _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs<_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn>\n+174 {\n+175 typedef _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\bX_\b,_\bY_\b> _\bT;\n+176\n+177 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n+178\n+179 public:\n+_\b1_\b8_\b0 virtual _\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs()\n+181 {}\n+182\n+183 template \n+_\b1_\b8_\b4 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const Args&...)\n+185 {}\n+186\n+_\b1_\b8_\b7 void _\bs_\be_\bt_\bA_\br_\bg_\bs(const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& args)\n+188 {\n+189 args_=&args;\n+190 }\n+191\n+192 template\n+_\b1_\b9_\b3 void _\bs_\be_\bt_\bC_\bo_\bm_\bm([[maybe_unused]] T1& comm)\n+194 {}\n+195\n+_\b1_\b9_\b6 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& _\bg_\be_\bt_\bC_\bo_\bm_\bm()\n+197 {\n+198 return comm_;\n+199 }\n+200\n+_\b2_\b0_\b1 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs _\bg_\be_\bt_\bA_\br_\bg_\bs() const\n+202 {\n+203 return *args_;\n+204 }\n+205\n+206 private:\n+207 const SmootherArgs* args_;\n+208 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn comm_;\n+209 };\n+210\n+211\n+212\n+213 template\n+214 struct ConstructionTraits;\n+215\n+219 template\n+_\b2_\b2_\b0 struct ConstructionTraits<_\bS_\be_\bq_\bS_\bS_\bO_\bR >\n+221 {\n+_\b2_\b2_\b2 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+223\n+_\b2_\b2_\b4 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+225 {\n+226 return std::make_shared>\n+227 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(), args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs, args._\bg_\be_\bt_\bA_\br_\bg_\bs\n+()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br);\n+228 }\n+229 };\n+230\n+231\n+235 template\n+_\b2_\b3_\b6 struct ConstructionTraits<_\bS_\be_\bq_\bS_\bO_\bR >\n+237 {\n+_\b2_\b3_\b8 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+239\n+_\b2_\b4_\b0 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+241 {\n+242 return std::make_shared>\n+243 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(), args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs, args._\bg_\be_\bt_\bA_\br_\bg_\bs\n+()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br);\n+244 }\n+245 };\n+246\n+247\n+251 template\n+_\b2_\b5_\b2 struct ConstructionTraits<_\bS_\be_\bq_\bJ_\ba_\bc >\n+253 {\n+_\b2_\b5_\b4 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bJ_\ba_\bc_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+255\n+_\b2_\b5_\b6 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+257 {\n+258 return std::make_shared>\n+259 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(), args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs, args._\bg_\be_\bt_\bA_\br_\bg_\bs\n+()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br);\n+260 }\n+261 };\n+262\n+266 template\n+_\b2_\b6_\b7 struct ConstructionTraits<_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn >\n+268 {\n+_\b2_\b6_\b9 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\bX_\b,_\bY_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+270\n+_\b2_\b7_\b1 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+272 {\n+273 return std::make_shared>\n+274 (args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br);\n+275 }\n+276 };\n+277\n+278\n+279 template\n+_\b2_\b8_\b0 class _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs<_\bS_\be_\bq_\bI_\bL_\bU >\n+281 : public _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs >\n+282 {\n+283 public:\n+_\b2_\b8_\b4 _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs(int n=0)\n+285 : n_(n)\n+286 {}\n+287\n+_\b2_\b8_\b8 void _\bs_\be_\bt_\bN(int n)\n+289 {\n+290 n_ = n;\n+291 }\n+292\n+_\b2_\b9_\b3 int _\bg_\be_\bt_\bN()\n+294 {\n+295 return n_;\n+296 }\n+297\n+298 private:\n+299 int n_;\n+300 };\n+301\n+302\n+306 template\n+_\b3_\b0_\b7 struct ConstructionTraits<_\bS_\be_\bq_\bI_\bL_\bU >\n+308 {\n+_\b3_\b0_\b9 typedef _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bI_\bL_\bU_\b<_\bM_\b,_\bX_\b,_\bY_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+310\n+_\b3_\b1_\b1 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+312 {\n+313 return std::make_shared>\n+314 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(), args._\bg_\be_\bt_\bN(), args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br);\n+315 }\n+316 };\n+317\n+321 template\n+_\b3_\b2_\b2 struct ConstructionTraits<_\bP_\ba_\br_\bS_\bS_\bO_\bR >\n+323 {\n+_\b3_\b2_\b4 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bM_\b,_\bC_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+325\n+_\b3_\b2_\b6 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+327 {\n+328 return std::make_shared>\n+329 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(), args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs,\n+330 args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br, args._\bg_\be_\bt_\bC_\bo_\bm_\bm());\n+331 }\n+332 };\n+333\n+334 template\n+_\b3_\b3_\b5 struct ConstructionTraits<_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\n+336 {\n+_\b3_\b3_\b7 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bT_\b,_\bC_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+_\b3_\b3_\b8 typedef ConstructionTraits _\bS_\be_\bq_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs;\n+_\b3_\b3_\b9 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+340 {\n+341 auto seqPrec = SeqConstructionTraits::construct(args);\n+342 return std::make_shared> (seqPrec,\n+args._\bg_\be_\bt_\bC_\bo_\bm_\bm());\n+343 }\n+344 };\n+345\n+346 template\n+_\b3_\b4_\b7 struct ConstructionTraits<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\n+348 {\n+_\b3_\b4_\b9 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bT_\b,_\bC_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+_\b3_\b5_\b0 typedef ConstructionTraits _\bS_\be_\bq_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs;\n+_\b3_\b5_\b1 static inline std::shared_ptr>\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+352 {\n+353 auto seqPrec = SeqConstructionTraits::construct(args);\n+354 return std::make_shared> (seqPrec,\n+args._\bg_\be_\bt_\bC_\bo_\bm_\bm());\n+355 }\n+356 };\n+357\n+368 template\n+_\b3_\b6_\b9 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br\n+370 {\n+_\b3_\b7_\b1 typedef T _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+_\b3_\b7_\b2 typedef typename Smoother::range_type _\bR_\ba_\bn_\bg_\be;\n+_\b3_\b7_\b3 typedef typename Smoother::domain_type _\bD_\bo_\bm_\ba_\bi_\bn;\n+374\n+_\b3_\b8_\b2 static void _\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n+383 {\n+384 smoother.apply(v,d);\n+385 }\n+386\n+_\b3_\b9_\b4 static void _\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n+395 {\n+396 smoother.apply(v,d);\n+397 }\n+398 };\n+399\n+405 template\n+_\b4_\b0_\b6 void _\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh(LevelContext& levelContext, size_t steps)\n+407 {\n+408 for(std::size_t i=0; i < steps; ++i) {\n+409 *levelContext.lhs=0;\n+410 _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b>\n+411_\b _\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(*levelContext.smoother, *levelContext.lhs,\n+412 *levelContext.rhs);\n+413 // Accumulate update\n+414 *levelContext.update += *levelContext.lhs;\n+415\n+416 // update defect\n+417 levelContext.matrix->applyscaleadd(-1, *levelContext.lhs,\n+*levelContext.rhs);\n+418 levelContext.pinfo->project(*levelContext.rhs);\n+419 }\n+420 }\n+421\n+427 template\n+_\b4_\b2_\b8 void _\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh(LevelContext& levelContext, size_t steps)\n+429 {\n+430 for(std::size_t i=0; i < steps; ++i) {\n+431 // update defect\n+432 levelContext.matrix->applyscaleadd(-1, *levelContext.lhs,\n+433 *levelContext.rhs);\n+434 *levelContext.lhs=0;\n+435 levelContext.pinfo->project(*levelContext.rhs);\n+436 _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b>\n+437_\b _\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(*levelContext.smoother, *levelContext.lhs, *levelContext.rhs);\n+438 // Accumulate update\n+439 *levelContext.update += *levelContext.lhs;\n+440 }\n+441 }\n+442\n+443 template\n+_\b4_\b4_\b4 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br<_\bS_\be_\bq_\bS_\bO_\bR >\n+445 {\n+_\b4_\b4_\b6 typedef _\bS_\be_\bq_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+_\b4_\b4_\b7 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be _\bR_\ba_\bn_\bg_\be;\n+_\b4_\b4_\b8 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be _\bD_\bo_\bm_\ba_\bi_\bn;\n+449\n+_\b4_\b5_\b0 static void _\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n+451 {\n+452 smoother.template apply(v,d);\n+453 }\n+454\n+455\n+_\b4_\b5_\b6 static void _\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n+457 {\n+458 smoother.template apply(v,d);\n+459 }\n+460 };\n+461\n+462 template\n+_\b4_\b6_\b3 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br<_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br > >\n+464 {\n+_\b4_\b6_\b5 typedef _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b,_\bC_\b,_\bS_\be_\bq_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> > _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+_\b4_\b6_\b6 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be _\bR_\ba_\bn_\bg_\be;\n+_\b4_\b6_\b7 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be _\bD_\bo_\bm_\ba_\bi_\bn;\n+468\n+_\b4_\b6_\b9 static void _\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n+470 {\n+471 smoother.template apply(v,d);\n+472 }\n+473\n+474\n+_\b4_\b7_\b5 static void _\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n+476 {\n+477 smoother.template apply(v,d);\n+478 }\n+479 };\n+480\n+481 template\n+_\b4_\b8_\b2 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+> >\n+483 {\n+_\b4_\b8_\b4 typedef _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bC_\b,_\bS_\be_\bq_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> > _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+_\b4_\b8_\b5 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be _\bR_\ba_\bn_\bg_\be;\n+_\b4_\b8_\b6 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be _\bD_\bo_\bm_\ba_\bi_\bn;\n+487\n+_\b4_\b8_\b8 static void _\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n+489 {\n+490 smoother.template apply(v,d);\n+491 }\n+492\n+493\n+_\b4_\b9_\b4 static void _\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n+495 {\n+496 smoother.template apply(v,d);\n+497 }\n+498 };\n+499\n+500 } // end namespace Amg\n+501\n+502 // forward declarations\n+503 template\n+504 class SeqOverlappingSchwarz;\n+505\n+506 struct MultiplicativeSchwarzMode;\n+507\n+508 namespace Amg\n+509 {\n+510 template\n+_\b5_\b1_\b1 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz >\n+513 {\n+_\b5_\b1_\b4 typedef _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\bM_\bS_\b,_\bT_\bA_\b>\n+_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+_\b5_\b1_\b5 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be _\bR_\ba_\bn_\bg_\be;\n+_\b5_\b1_\b6 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be _\bD_\bo_\bm_\ba_\bi_\bn;\n+517\n+_\b5_\b1_\b8 static void _\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n+519 {\n+520 smoother.template apply(v,d);\n+521 }\n+522\n+523\n+_\b5_\b2_\b4 static void _\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n+525 {\n+526 smoother.template apply(v,d);\n+527\n+528 }\n+529 };\n+530\n+531 // template\n+532 // class SeqOverlappingSchwarz;\n+533\n+534 template\n+_\b5_\b3_\b5 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+536 : public _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+537 {\n+_\b5_\b3_\b8 enum _\bO_\bv_\be_\br_\bl_\ba_\bp {_\bv_\be_\br_\bt_\be_\bx, _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be, _\bp_\ba_\bi_\br_\bw_\bi_\bs_\be, _\bn_\bo_\bn_\be};\n+539\n+_\b5_\b4_\b0 _\bO_\bv_\be_\br_\bl_\ba_\bp _\bo_\bv_\be_\br_\bl_\ba_\bp;\n+_\b5_\b4_\b1 bool _\bo_\bn_\bt_\bh_\be_\bf_\bl_\by;\n+542\n+_\b5_\b4_\b3 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs(_\bO_\bv_\be_\br_\bl_\ba_\bp overlap_=_\bv_\be_\br_\bt_\be_\bx,\n+544 bool onthefly_=false)\n+545 : _\bo_\bv_\be_\br_\bl_\ba_\bp(overlap_), _\bo_\bn_\bt_\bh_\be_\bf_\bl_\by(onthefly_)\n+546 {}\n+547 };\n+548\n+549 template\n+_\b5_\b5_\b0 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz >\n+551 {\n+_\b5_\b5_\b2 typedef _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>\n+_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+553 };\n+554\n+555 template\n+_\b5_\b5_\b6 class _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz >\n+557 : public _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs >\n+558 {\n+559 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bS_\b,_\bT_\bA_\b> >\n+_\bF_\ba_\bt_\bh_\be_\br;\n+560\n+561 public:\n+_\b5_\b6_\b2 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+_\b5_\b6_\b3 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b> _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp;\n+_\b5_\b6_\b4 typedef typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+_\b5_\b6_\b5 typedef typename _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bS_\b,_\bT_\bA_\b>_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n+_\bV_\be_\bc_\bt_\bo_\br;\n+_\b5_\b6_\b6 typedef typename Vector::value_type _\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn;\n+567\n+_\b5_\b6_\b8 virtual void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const M& matrix, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& amap)\n+569 {\n+570 Father::setMatrix(matrix);\n+571\n+572 std::vector visited(amap._\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs(), false);\n+573 typedef IteratorPropertyMap::iterator,IdentityMap>\n+VisitedMapType;\n+574 VisitedMapType visitedMap(visited.begin());\n+575\n+576 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b> graph(matrix);\n+577\n+578 typedef _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>\n+_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n+579\n+580 switch(Father::getArgs().overlap) {\n+581 case SmootherArgs::vertex :\n+582 {\n+583 VertexAdder visitor(subdomains, amap);\n+584 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n+585 }\n+586 break;\n+587 case SmootherArgs::pairwise :\n+588 {\n+589 createPairDomains(graph);\n+590 }\n+591 break;\n+592 case SmootherArgs::aggregate :\n+593 {\n+594 AggregateAdder visitor(subdomains, amap, graph,\n+visitedMap);\n+595 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n+596 }\n+597 break;\n+598 case SmootherArgs::none :\n+599 NoneAdder visitor;\n+600 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n+601 break;\n+602 default :\n+603 DUNE_THROW(NotImplemented, \"This overlapping scheme is not supported!\");\n+604 }\n+605 }\n+_\b6_\b0_\b6 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const M& matrix)\n+607 {\n+608 Father::setMatrix(matrix);\n+609\n+610 /* Create aggregates map where each aggregate is just one vertex. */\n+611 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp amap(matrix.N());\n+612 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br v=0;\n+613 for(typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br iter=amap._\bb_\be_\bg_\bi_\bn();\n+614 iter!=amap._\be_\bn_\bd(); ++iter)\n+615 *iter=v++;\n+616\n+617 std::vector visited(amap._\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs(), false);\n+618 typedef IteratorPropertyMap::iterator,IdentityMap>\n+VisitedMapType;\n+619 VisitedMapType visitedMap(visited.begin());\n+620\n+621 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b> graph(matrix);\n+622\n+623 typedef _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>\n+_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n+624\n+625 switch(Father::getArgs().overlap) {\n+626 case SmootherArgs::vertex :\n+627 {\n+628 VertexAdder visitor(subdomains, amap);\n+629 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n+630 }\n+631 break;\n+632 case SmootherArgs::aggregate :\n+633 {\n+634 DUNE_THROW(NotImplemented, \"Aggregate overlap is not supported yet\");\n+635 /*\n+636 AggregateAdder visitor(subdomains, amap, graph,\n+visitedMap);\n+637 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n+638 */\n+639 }\n+640 break;\n+641 case SmootherArgs::pairwise :\n+642 {\n+643 createPairDomains(graph);\n+644 }\n+645 break;\n+646 case SmootherArgs::none :\n+647 NoneAdder visitor;\n+648 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n+649\n+650 }\n+651 }\n+652\n+_\b6_\b5_\b3 const _\bV_\be_\bc_\bt_\bo_\br& _\bg_\be_\bt_\bS_\bu_\bb_\bD_\bo_\bm_\ba_\bi_\bn_\bs()\n+654 {\n+655 return subdomains;\n+656 }\n+657\n+658 private:\n+659 struct VertexAdder\n+660 {\n+_\b6_\b6_\b1 _\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br(_\bV_\be_\bc_\bt_\bo_\br& subdomains_, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& aggregates_)\n+662 : subdomains(subdomains_), max(-1), subdomain(-1), aggregates(aggregates_)\n+663 {}\n+664 template\n+_\b6_\b6_\b5 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T& edge)\n+666 {\n+667 if(aggregates[edge.target()]!=AggregatesMap::ISOLATED)\n+668 subdomains[subdomain].insert(edge.target());\n+669 }\n+_\b6_\b7_\b0 int _\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate_)\n+671 {\n+672 subdomain=aggregate_;\n+673 max = std::max(subdomain, aggregate_);\n+674 return subdomain;\n+675 }\n+_\b6_\b7_\b6 int _\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs() const\n+677 {\n+678 return max+1;\n+679 }\n+680 private:\n+681 _\bV_\be_\bc_\bt_\bo_\br& subdomains;\n+682 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br max;\n+683 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br subdomain;\n+684 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& aggregates;\n+685 };\n+686 struct NoneAdder\n+687 {\n+688 template\n+_\b6_\b8_\b9 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T& edge)\n+690 {}\n+_\b6_\b9_\b1 int _\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate_)\n+692 {\n+693 return -1;\n+694 }\n+_\b6_\b9_\b5 int _\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs() const\n+696 {\n+697 return -1;\n+698 }\n+699 };\n+700\n+701 template\n+702 struct AggregateAdder\n+703 {\n+_\b7_\b0_\b4 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br(_\bV_\be_\bc_\bt_\bo_\br& subdomains_, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& aggregates_,\n+705 const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b>& graph_, VM& visitedMap_)\n+706 : subdomains(subdomains_), subdomain(-1), aggregates(aggregates_),\n+707 adder(subdomains_, aggregates_), graph(graph_), visitedMap(visitedMap_)\n+708 {}\n+709 template\n+_\b7_\b1_\b0 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T& edge)\n+711 {\n+712 subdomains[subdomain].insert(edge.target());\n+713 // If we (the neighbouring vertex of the aggregate)\n+714 // are not isolated, add the aggregate we belong to\n+715 // to the same subdomain using the OneOverlapAdder\n+716 if(aggregates[edge.target()]!=AggregatesMap::ISOLATED) {\n+717 assert(aggregates[edge.target()]!=aggregate);\n+718 typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bL_\bi_\bs_\bt vlist;\n+719 aggregates.template breadthFirstSearch(edge.target(),\n+aggregate,\n+720 graph, vlist, adder, adder,\n+721 visitedMap);\n+722 }\n+723 }\n+724\n+_\b7_\b2_\b5 int _\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate_)\n+726 {\n+727 adder.setAggregate(aggregate_);\n+728 aggregate=aggregate_;\n+729 return ++subdomain;\n+730 }\n+_\b7_\b3_\b1 int _\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs() const\n+732 {\n+733 return subdomain+1;\n+734 }\n+735\n+736 private:\n+737 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br aggregate;\n+738 _\bV_\be_\bc_\bt_\bo_\br& subdomains;\n+739 int subdomain;\n+740 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& aggregates;\n+741 VertexAdder adder;\n+742 const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b>& graph;\n+743 VM& visitedMap;\n+744 };\n+745\n+746 void createPairDomains(const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b>& graph)\n+747 {\n+748 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br VIter;\n+749 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br EIter;\n+750 typedef typename M::size_type size_type;\n+751\n+752 std::set > pairs;\n+753 int total=0;\n+754 for(VIter v=graph._\bb_\be_\bg_\bi_\bn(), ve=graph._\be_\bn_\bd(); ve != v; ++v)\n+755 for(EIter e = v.begin(), ee=v.end(); ee!=e; ++e)\n+756 {\n+757 ++total;\n+758 if(e.source() >::const_iterator\n+SIter;\n+768 typename Vector::iterator subdomain=subdomains.begin();\n+769\n+770 for(SIter s=pairs.begin(), se =pairs.end(); se!=s; ++s)\n+771 {\n+772 subdomain->insert(s->first);\n+773 subdomain->insert(s->second);\n+774 ++subdomain;\n+775 }\n+776 std::size_t minsize=10000;\n+777 std::size_t maxsize=0;\n+778 int sum=0;\n+779 for(typename Vector::size_type i=0; i < subdomains.size(); ++i) {\n+780 sum+=subdomains[i].size();\n+781 minsize=std::min(minsize, subdomains[i].size());\n+782 maxsize=std::max(maxsize, subdomains[i].size());\n+783 }\n+784 Dune::dinfo<<\"Subdomain size: min=\"<\n+789 void createSubdomains(const M& matrix, const MatrixGraph& graph,\n+790 const AggregatesMap& amap, Visitor& overlapVisitor,\n+791 IteratorPropertyMap::iterator,IdentityMap>& visitedMap )\n+792 {\n+793 // count number ag aggregates. We assume that the\n+794 // aggregates are numbered consecutively from 0 except\n+795 // for the isolated ones. All isolated vertices form\n+796 // one aggregate, here.\n+797 int isolated=0;\n+798 AggregateDescriptor maxAggregate=0;\n+799\n+800 for(std::size_t i=0; i < amap.noVertices(); ++i)\n+801 if(amap[i]==_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n+802 isolated++;\n+803 else\n+804 maxAggregate = std::max(maxAggregate, amap[i]);\n+805\n+806 subdomains.resize(maxAggregate+1+isolated);\n+807\n+808 // reset the subdomains\n+809 for(typename Vector::size_type i=0; i < subdomains.size(); ++i)\n+810 subdomains[i].clear();\n+811\n+812 // Create the subdomains from the aggregates mapping.\n+813 // For each aggregate we mark all entries and the\n+814 // neighbouring vertices as belonging to the same subdomain\n+815 VertexAdder aggregateVisitor(subdomains, amap);\n+816\n+817 for(VertexDescriptor i=0; i < amap.noVertices(); ++i)\n+818 if(!_\bg_\be_\bt(visitedMap, i)) {\n+819 AggregateDescriptor aggregate=amap[i];\n+820\n+821 if(amap[i]==_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n+822 // isolated vertex gets its own aggregate\n+823 subdomains.push_back(Subdomain());\n+824 aggregate=subdomains.size()-1;\n+825 }\n+826 overlapVisitor.setAggregate(aggregate);\n+827 aggregateVisitor.setAggregate(aggregate);\n+828 subdomains[aggregate].insert(i);\n+829 typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bL_\bi_\bs_\bt vlist;\n+830 amap.template breadthFirstSearch(i, aggregate, graph, vlist,\n+aggregateVisitor,\n+831 overlapVisitor, visitedMap);\n+832 }\n+833\n+834 std::size_t minsize=10000;\n+835 std::size_t maxsize=0;\n+836 int sum=0;\n+837 for(typename Vector::size_type i=0; i < subdomains.size(); ++i) {\n+838 sum+=subdomains[i].size();\n+839 minsize=std::min(minsize, subdomains[i].size());\n+840 maxsize=std::max(maxsize, subdomains[i].size());\n+841 }\n+842 Dune::dinfo<<\"Subdomain size: min=\"<\n+_\b8_\b5_\b3 struct ConstructionTraits<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz >\n+854 {\n+_\b8_\b5_\b5 typedef _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bS_\b,_\bT_\bA_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+856\n+_\b8_\b5_\b7 static inline std::shared_ptr>\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+858 {\n+859 return std::make_shared>\n+860 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(),\n+861 args._\bg_\be_\bt_\bS_\bu_\bb_\bD_\bo_\bm_\ba_\bi_\bn_\bs(),\n+862 args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br,\n+863 args._\bg_\be_\bt_\bA_\br_\bg_\bs().onthefly);\n+864 }\n+865 };\n+866\n+867\n+868 } // namespace Amg\n+869} // namespace Dune\n+870\n+871\n+872\n+873#endif\n+_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh\n+_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n+Provides classes for the Coloring process of AMG.\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+Helper classes for the construction of classes without empty constructor.\n+_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n+Define general preconditioner interface.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+DefaultSmootherArgs< typename X::field_type > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:74\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>_\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh\n+static void postSmooth(Smoother &smoother, Domain &v, Range &d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:494\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bN_\bo_\bn_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const T &edge)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:689\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh\n+static void preSmooth(Smoother &smoother, Domain &v, const Range &d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:518\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bJ_\ba_\bc_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< SeqJac< M, X, Y, l > > construct(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:256\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+ConstructionArgs< SeqILU< M, X, Y > > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:309\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+const Matrix & getMatrix() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bR_\ba_\bn_\bg_\be\n+Smoother::range_type Range\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:515\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bN_\bo_\bn_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n+int setAggregate(const AggregateDescriptor &aggregate_)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:691\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+DefaultSmootherArgs< typename T::matrix_type::field_type > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br_\b:_\b:_\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n+int setAggregate(const AggregateDescriptor &aggregate_)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:670\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:\n+_\bS_\be_\bq_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs\n+ConstructionTraits< T > SeqConstructionTraits\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:350\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bs_\be_\bt_\bA_\br_\bg_\bs\n+void setArgs(const SmootherArgs &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:119\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+ConstructionArgs< SeqOverlappingSchwarz< M, X, TM, TS, TA > > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:855\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n+NonoverlappingBlockPreconditioner< C, SeqSOR< M, X, Y, l > > Smoother\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:484\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh\n+static void postSmooth(Smoother &smoother, Domain &v, Range &d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:456\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br\n+AggregateAdder(Vector &subdomains_, const AggregatesMap &aggregates_, const\n+MatrixGraph< const M > &graph_, VM &visitedMap_)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:704\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp\n+Overlap\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:538\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bs_\be_\bt_\bC_\bo_\bm_\bm\n+void setComm(const C &comm)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:158\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+DefaultConstructionArgs< Richardson< X, Y > > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:269\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:\n+_\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+virtual ~DefaultConstructionArgs()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:180\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+SeqOverlappingSchwarzSmootherArgs< typename M::field_type > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:552\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn\n+Vector::value_type Subdomain\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:566\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh\n+static void preSmooth(Smoother &smoother, Domain &v, Range &d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:488\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bN\n+int getN()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>_\b:_\b:_\bR_\ba_\bn_\bg_\be\n+Smoother::range_type Range\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:485\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n+SeqSOR< M, X, Y, l > Smoother\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:446\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const T &edge)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:710\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< SeqSSOR< M, X, Y, l > > construct(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:224\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+AggregatesMap::AggregateDescriptor AggregateDescriptor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:564\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bo_\bn_\bt_\bh_\be_\bf_\bl_\by\n+bool onthefly\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:541\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+DefaultConstructionArgs< SeqSOR< M, X, Y, l > > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:238\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+virtual void setMatrix(const M &matrix, const AggregatesMap &amap)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:568\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+void setMatrix(const Args &...)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:184\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bJ_\ba_\bc_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+DefaultConstructionArgs< SeqJac< M, X, Y, l > > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:254\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+DefaultConstructionArgs< SeqSSOR< M, X, Y, l > > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:222\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bg_\be_\bt_\bA_\br_\bg_\bs\n+const SmootherArgs getArgs() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:133\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br\n+VertexAdder(Vector &subdomains_, const AggregatesMap &aggregates_)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:661\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bg_\be_\bt_\bS_\bu_\bb_\bD_\bo_\bm_\ba_\bi_\bn_\bs\n+const Vector & getSubDomains()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:653\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bV_\be_\bc_\bt_\bo_\br\n+SeqOverlappingSchwarz< M, X, TM, TS, TA >::subdomain_vector Vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:565\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< SeqOverlappingSchwarz< M, X, TM, TS, TA > > construct\n+(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:857\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n+_\b>_\b _\b>_\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh\n+static void preSmooth(Smoother &smoother, Domain &v, Range &d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:469\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:725\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+void setMatrix(const Matrix &matrix)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:104\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n+T Smoother\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:371\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh\n+static void preSmooth(Smoother &smoother, Domain &v, Range &d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:450\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n+_\b>_\b _\b>_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n+BlockPreconditioner< X, Y, C, SeqSOR< M, X, Y, l > > Smoother\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:465\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bC_\bo_\bm_\bm\n+void setComm(T1 &comm)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:193\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br_\b:_\b:_\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs\n+int noSubdomains() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:676\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+AggregateDescriptor * iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:735\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh\n+void presmooth(LevelContext &levelContext, size_t steps)\n+Apply pre smoothing on the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:406\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n+Smoother::domain_type Domain\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:516\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+SeqOverlappingSchwarzSmootherArgs(Overlap overlap_=vertex, bool\n+onthefly_=false)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:543\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+DefaultParallelConstructionArgs< T, C > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:337\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+DefaultParallelConstructionArgs< T, C > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:349\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n+const Matrix * matrix_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:139\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:730\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm\n+const SequentialInformation & getComm()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:128\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+V AggregateDescriptor\n+The aggregate descriptor type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:580\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD\n+static const V ISOLATED\n+Identifier of isolated vertices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:571\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+DefaultSmootherArgs()\n+Default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+void setMatrix(const M &matrix)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:606\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n+std::size_t noVertices() const\n+Get the number of vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const T &edge)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:665\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh\n+static void postSmooth(Smoother &smoother, Domain &v, const Range &d)\n+apply post smoothing in forward direction\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:394\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bR_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br\n+FieldTraits< T >::real_type RelaxationFactor\n+The type of the relaxation factor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:42\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n+Smoother::domain_type Domain\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:486\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n+Smoother::domain_type Domain\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:373\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bN\n+void setN(int n)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:288\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< BlockPreconditioner< X, Y, C, T > > construct(Arguments\n+&args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:339\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bL_\bi_\bs_\bt\n+SLList< VertexDescriptor, Allocator > VertexList\n+The type of a single linked list of vertex descriptors.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:592\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< NonoverlappingBlockPreconditioner< C, T > > construct\n+(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:351\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n+SeqOverlappingSchwarz< M, X, MultiplicativeSchwarzMode, MS, TA > Smoother\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:514\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bP_\ba_\br_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< ParSSOR< M, X, Y, C > > construct(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:326\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+MatrixGraph< M >::VertexDescriptor VertexDescriptor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:562\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< SeqILU< M, X, Y > > construct(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:311\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs\n+int noSubdomains() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:731\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm\n+const SequentialInformation & getComm()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:196\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< SeqSOR< M, X, Y, l > > construct(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:240\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< Richardson< X, Y > > construct(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:271\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+virtual void setMatrix(const Matrix &matrix, const AggregatesMap &amap)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:108\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bN_\bo_\bn_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs\n+int noSubdomains() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:695\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh\n+void postsmooth(LevelContext &levelContext, size_t steps)\n+Apply post smoothing on the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+Dune::Amg::AggregatesMap< VertexDescriptor > AggregatesMap\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:563\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bA_\br_\bg_\bs\n+const SmootherArgs getArgs() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:201\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bs_\be_\bt_\bC_\bo_\bm_\bm\n+void setComm(T1 &comm)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:125\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh\n+static void postSmooth(Smoother &smoother, Domain &v, const Range &d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:524\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bP_\ba_\br_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+DefaultParallelConstructionArgs< M, C > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:324\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br\n+RelaxationFactor relaxationFactor\n+The relaxation factor to use.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+virtual ~DefaultParallelConstructionArgs()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:155\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n+Smoother::domain_type Domain\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:448\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n+int setAggregate(const AggregateDescriptor &aggregate_)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:725\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bR_\ba_\bn_\bg_\be\n+Smoother::range_type Range\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:447\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm\n+const C & getComm() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:163\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+virtual ~DefaultConstructionArgs()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:101\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh\n+static void preSmooth(Smoother &smoother, Domain &v, const Range &d)\n+apply pre smoothing in forward direction\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:382\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n+_\b>_\b _\b>_\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh\n+static void postSmooth(Smoother &smoother, Domain &v, Range &d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:475\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:\n+_\bS_\be_\bq_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs\n+ConstructionTraits< T > SeqConstructionTraits\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:338\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+ConstructionArgs(int n=0)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:284\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n+_\b>_\b _\b>_\b:_\b:_\bR_\ba_\bn_\bg_\be\n+Smoother::range_type Range\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bA_\br_\bg_\bs\n+void setArgs(const SmootherArgs &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:187\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n+int iterations\n+The numbe of iterations to perform.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:47\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bR_\ba_\bn_\bg_\be\n+Smoother::range_type Range\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:372\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp\n+Overlap overlap\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:540\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n+_\b>_\b _\b>_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n+Smoother::domain_type Domain\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:467\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n+@ aggregate\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:538\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bn_\bo_\bn_\be\n+@ none\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:538\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bp_\ba_\bi_\br_\bw_\bi_\bs_\be\n+@ pairwise\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:538\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bv_\be_\br_\bt_\be_\bx\n+@ vertex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:538\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(X &x)=0\n-Clean up.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &v, const Y &d)=0\n-Apply one step of the preconditioner to the system A(v)=d.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\b~_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-virtual ~Preconditioner()\n-every abstract base class has a virtual destructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:104\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n+Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n+Sequential overlapping Schwarz preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+X range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:770\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:765\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n+std::vector< subdomain_type, typename std::allocator_traits< TA >::template\n+rebind_alloc< subdomain_type > > subdomain_vector\n+The vector type containing the subdomain to row index mapping.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:797\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Nonoverlapping parallel preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:276\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+P::range_type range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:284\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+P::domain_type domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:282\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n+Tag that tells the Schwarz method to be multiplicative.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+Class providing information about the mapping of the vertices onto aggregates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+The (undirected) graph of a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd\n+VertexIterator end()\n+Get an iterator over the vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+M::size_type VertexDescriptor\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+VertexIterator begin()\n+Get an iterator over the vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+Iterator over all edges starting from a vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+The vertex iterator type of the graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:209\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+The default class for the smoother arguments.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:38\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs\n+Traits class for getting the attribute class of a smoother.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:66\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+Construction Arguments for the default smoothers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:93\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:148\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:153\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:174\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:282\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br\n+Helper class for applying the smoothers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:370\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:537\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:558\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n+Sequential SSOR preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:141\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR\n+Sequential SOR preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:261\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:266\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n Y range_type\n The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:268\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc\n+The sequential jacobian preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:412\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n+Sequential ILU preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:532\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn\n+Richardson preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:713\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR\n+A parallel SSOR preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:175\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Block parallel preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:278\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n X domain_type\n The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:35\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const =0\n-Category of the preconditioner (see SolverCategory::Category)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:39\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\br_\be\n-virtual void pre(X &x, Y &b)=0\n-Prepare the preconditioner.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:285\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:290\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00080.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00080.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: parameters.hh File Reference\n+dune-istl: aggregates.hh File Reference\n \n \n \n \n \n \n \n@@ -72,60 +72,110 @@\n
  • dune
  • istl
  • paamg
  • \n \n \n \n+ \n \n
    \n \n-

    Parameter classes for customizing AMG. \n+

    Provides classes for the Coloring process of AMG. \n More...

    \n-
    #include <cstddef>
    \n+
    #include "parameters.hh"
    \n+#include "graph.hh"
    \n+#include "properties.hh"
    \n+#include "combinedfunctor.hh"
    \n+#include <dune/common/timer.hh>
    \n+#include <dune/common/stdstreams.hh>
    \n+#include <dune/common/poolallocator.hh>
    \n+#include <dune/common/sllist.hh>
    \n+#include <dune/common/ftraits.hh>
    \n+#include <dune/common/scalarmatrixview.hh>
    \n+#include <utility>
    \n+#include <set>
    \n+#include <algorithm>
    \n+#include <complex>
    \n+#include <limits>
    \n+#include <ostream>
    \n+#include <tuple>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::Amg::DependencyParameters
     Parameters needed to check whether a node depends on another. More...
    class  Dune::Amg::AggregationCriterion< T >
     Base class of all aggregation criterions. More...
     
    class  Dune::Amg::AggregationParameters
     Parameters needed for the aggregation process. More...
    class  Dune::Amg::SymmetricMatrixDependency< M, N >
     Dependency policy for symmetric matrices. More...
     
    class  Dune::Amg::CoarseningParameters
     Parameters for the complete coarsening process. More...
    class  Dune::Amg::Dependency< M, N >
     Dependency policy for symmetric matrices. More...
     
    class  Dune::Amg::Parameters
     All parameters for AMG. More...
    class  Dune::Amg::SymmetricDependency< M, N >
     Dependency policy for symmetric matrices. More...
     
    class  Dune::Amg::Diagonal< N >
     Norm that uses only the [N][N] entry of the block to determine couplings. More...
     
    class  Dune::Amg::FirstDiagonal
     Norm that uses only the [0][0] entry of the block to determine couplings. More...
     
    struct  Dune::Amg::RowSum
     Functor using the row sum (infinity) norm to determine strong couplings. More...
     
    struct  Dune::Amg::FrobeniusNorm
     
    struct  Dune::Amg::AlwaysOneNorm
     
    class  Dune::Amg::SymmetricCriterion< M, Norm >
     Criterion taking advantage of symmetric matrices. More...
     
    class  Dune::Amg::UnSymmetricCriterion< M, Norm >
     Criterion suitable for unsymmetric matrices. More...
     
    class  Dune::Amg::AggregatesMap< V >
     Class providing information about the mapping of the vertices onto aggregates. More...
     
    class  Dune::Amg::AggregatesMap< V >::DummyEdgeVisitor
     A Dummy visitor that does nothing for each visited edge. More...
     
    class  Dune::Amg::Aggregate< G, S >
     A class for temporarily storing the vertices of an aggregate in. More...
     
    class  Dune::Amg::Aggregator< G >
     Class for building the aggregates. More...
     
    \n \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n-Enumerations

    enum  Dune::Amg::AccumulationMode { Dune::Amg::noAccu = 0\n-, Dune::Amg::atOnceAccu =1\n-, Dune::Amg::successiveAccu =2\n- }
     Identifiers for the different accumulation modes. More...
     

    \n+Functions

    template<class T >
    std::ostream & Dune::Amg::operator<< (std::ostream &os, const AggregationCriterion< T > &criterion)
     
    template<class G , class C >
    void Dune::Amg::buildDependency (G &graph, const typename C::Matrix &matrix, C criterion, bool finestLevel)
     Build the dependency of the matrix graph.
     
    template<class V >
    void Dune::Amg::printAggregates2d (const AggregatesMap< V > &aggregates, int n, int m, std::ostream &os)
     
    \n

    Detailed Description

    \n-

    Parameter classes for customizing AMG.

    \n+

    Provides classes for the Coloring process of AMG.

    \n
    Author
    Markus Blatt
    \n-

    All parameters of the AMG can be set by using the class Parameter, which can be provided to CoarsenCriterion via its constructor.

    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,45 +1,104 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bE_\bn_\bu_\bm_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n-parameters.hh File Reference\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+aggregates.hh File Reference\n _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Parameter classes for customizing AMG. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n+Provides classes for the Coloring process of AMG. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \"_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b._\bh_\bh\"\n+#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n+#include \"_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b._\bh_\bh\"\n+#include \"_\bc_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bf_\bu_\bn_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-\u00a0 _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs needed to check whether a node depends on another. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\b _\bT_\b _\b>\n+\u00a0 Base class of all aggregation criterions. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-\u00a0 _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs needed for the aggregation process. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\b _\bM_\b,_\b _\bN_\b _\b>\n+\u00a0 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by policy for symmetric matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-\u00a0 _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs for the complete coarsening process. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\b _\bM_\b,_\b _\bN_\b _\b>\n+\u00a0 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by policy for symmetric matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-\u00a0 All parameters for _\bA_\bM_\bG. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\b _\bM_\b,_\b _\bN_\b _\b>\n+\u00a0 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by policy for symmetric matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b _\bN_\b _\b>\n+\u00a0 Norm that uses only the [N][N] entry of the block to determine\n+ couplings. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\bi_\br_\bs_\bt_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n+\u00a0 Norm that uses only the [0][0] entry of the block to determine\n+ couplings. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\bo_\bw_\bS_\bu_\bm\n+\u00a0 Functor using the row sum (infinity) norm to determine strong\n+ couplings. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\b _\bM_\b,_\b _\bN_\bo_\br_\bm_\b _\b>\n+\u00a0 Criterion taking advantage of symmetric matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\b _\bM_\b,_\b _\bN_\bo_\br_\bm_\b _\b>\n+\u00a0 Criterion suitable for unsymmetric matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bV_\b _\b>\n+\u00a0 Class providing information about the mapping of the vertices onto\n+ aggregates. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bV_\b _\b>_\b:_\b:_\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br\n+\u00a0 A Dummy visitor that does nothing for each visited edge. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\b _\bG_\b,_\b _\bS_\b _\b>\n+\u00a0 A class for temporarily storing the vertices of an aggregate in.\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\b _\bG_\b _\b>\n+\u00a0 Class for building the aggregates. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n-E\bEn\bnu\bum\bme\ber\bra\bat\bti\bio\bon\bns\bs\n-enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be { _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bn_\bo_\bA_\bc_\bc_\bu = 0 , _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:\n- _\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu =1 , _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu =2 }\n-\u00a0 Identifiers for the different accumulation modes. _\bM_\bo_\br_\be_\b._\b._\b.\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os, const\n+ _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn< T > &criterion)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by (G &graph, const typename C::Matrix\n+ &matrix, C criterion, bool finestLevel)\n+\u00a0 Build the dependency of the matrix graph.\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b2_\bd (const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp< V >\n+ &aggregates, int n, int m, std::ostream &os)\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Parameter classes for customizing AMG.\n+Provides classes for the Coloring process of AMG.\n Author\n Markus Blatt\n-All parameters of the AMG can be set by using the class Parameter, which can be\n-provided to CoarsenCriterion via its constructor.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00080_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00080_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: parameters.hh Source File\n+dune-istl: aggregates.hh Source File\n \n \n \n \n \n \n \n@@ -74,390 +74,2254 @@\n \n
    \n \n
    \n
    \n
    \n-
    parameters.hh
    \n+
    aggregates.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_PARAMETERS_HH
    \n-
    6#define DUNE_AMG_PARAMETERS_HH
    \n+
    5#ifndef DUNE_AMG_AGGREGATES_HH
    \n+
    6#define DUNE_AMG_AGGREGATES_HH
    \n
    7
    \n-
    8#include <cstddef>
    \n-
    9
    \n-
    10namespace Dune
    \n-
    11{
    \n-
    12 namespace Amg
    \n-
    13 {
    \n-
    \n-\n-
    31 {
    \n-
    32 public:
    \n-
    \n-\n-
    35 : alpha_(1.0/3.0), beta_(1.0E-5)
    \n-
    36 {}
    \n-
    \n-
    37
    \n-
    \n-
    42 void setBeta(double b)
    \n-
    43 {
    \n-
    44 beta_ = b;
    \n-
    45 }
    \n-
    \n-
    46
    \n-
    \n-
    52 double beta() const
    \n-
    53 {
    \n-
    54 return beta_;
    \n-
    55 }
    \n-
    \n+
    8
    \n+
    9#include "parameters.hh"
    \n+
    10#include "graph.hh"
    \n+
    11#include "properties.hh"
    \n+
    12#include "combinedfunctor.hh"
    \n+
    13
    \n+
    14#include <dune/common/timer.hh>
    \n+
    15#include <dune/common/stdstreams.hh>
    \n+
    16#include <dune/common/poolallocator.hh>
    \n+
    17#include <dune/common/sllist.hh>
    \n+
    18#include <dune/common/ftraits.hh>
    \n+
    19#include <dune/common/scalarmatrixview.hh>
    \n+
    20
    \n+
    21#include <utility>
    \n+
    22#include <set>
    \n+
    23#include <algorithm>
    \n+
    24#include <complex>
    \n+
    25#include <limits>
    \n+
    26#include <ostream>
    \n+
    27#include <tuple>
    \n+
    28
    \n+
    29namespace Dune
    \n+
    30{
    \n+
    31 namespace Amg
    \n+
    32 {
    \n+
    33
    \n+
    47 template<class T>
    \n+
    \n+
    48 class AggregationCriterion : public T
    \n+
    49 {
    \n+
    50
    \n+
    51 public:
    \n+\n
    56
    \n-
    \n-
    61 void setAlpha(double a)
    \n-
    62 {
    \n-
    63 alpha_ = a;
    \n-
    64 }
    \n+
    \n+\n+
    67 : T()
    \n+
    68 {}
    \n
    \n-
    65
    \n+
    69
    \n
    \n-
    70 double alpha() const
    \n-
    71 {
    \n-
    72 return alpha_;
    \n-
    73 }
    \n-
    \n-
    74
    \n-
    75 private:
    \n-
    76 double alpha_, beta_;
    \n-
    77 };
    \n-
    \n-
    78
    \n-
    \n-\n-\n-
    84 {
    \n-
    85 public:
    \n-
    \n-\n-
    96 : maxDistance_(2), minAggregateSize_(4), maxAggregateSize_(6),
    \n-
    97 connectivity_(15), skipiso_(false)
    \n-
    98 {}
    \n-
    \n-
    99
    \n-
    \n-
    109 void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)
    \n-
    110 {
    \n-
    111 maxDistance_=diameter-1;
    \n-
    112 std::size_t csize=1;
    \n-
    113
    \n-
    114 for(; dim>0; dim--) {
    \n-
    115 csize*=diameter;
    \n-
    116 maxDistance_+=diameter-1;
    \n-
    117 }
    \n-
    118 minAggregateSize_=csize;
    \n-
    119 maxAggregateSize_=static_cast<std::size_t>(csize*1.5);
    \n-
    120 }
    \n-
    \n-
    121
    \n-
    \n-
    132 void setDefaultValuesAnisotropic(std::size_t dim,std::size_t diameter=2)
    \n-
    133 {
    \n-
    134 setDefaultValuesIsotropic(dim, diameter);
    \n-
    135 maxDistance_+=dim-1;
    \n-
    136 }
    \n-
    \n-
    144 std::size_t maxDistance() const { return maxDistance_;}
    \n+\n+
    71 : T(parms)
    \n+
    72 {}
    \n+
    \n+
    \n+
    82 void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)
    \n+
    83 {
    \n+
    84 this->setMaxDistance(diameter-1);
    \n+
    85 std::size_t csize=1;
    \n+
    86
    \n+
    87 for(; dim>0; dim--) {
    \n+
    88 csize*=diameter;
    \n+
    89 this->setMaxDistance(this->maxDistance()+diameter-1);
    \n+
    90 }
    \n+
    91 this->setMinAggregateSize(csize);
    \n+
    92 this->setMaxAggregateSize(static_cast<std::size_t>(csize*1.5));
    \n+
    93 }
    \n+
    \n+
    94
    \n+
    \n+
    105 void setDefaultValuesAnisotropic(std::size_t dim,std::size_t diameter=2)
    \n+
    106 {
    \n+
    107 setDefaultValuesIsotropic(dim, diameter);
    \n+
    108 this->setMaxDistance(this->maxDistance()+dim-1);
    \n+
    109 }
    \n+
    \n+
    110 };
    \n+
    \n+
    111
    \n+
    112 template<class T>
    \n+
    \n+
    113 std::ostream& operator<<(std::ostream& os, const AggregationCriterion<T>& criterion)
    \n+
    114 {
    \n+
    115 os<<"{ maxdistance="<<criterion.maxDistance()<<" minAggregateSize="
    \n+
    116 <<criterion.minAggregateSize()<< " maxAggregateSize="<<criterion.maxAggregateSize()
    \n+
    117 <<" connectivity="<<criterion.maxConnectivity()<<" debugLevel="<<criterion.debugLevel()<<"}";
    \n+
    118 return os;
    \n+
    119 }
    \n+
    \n+
    120
    \n+
    132 template<class M, class N>
    \n+
    \n+\n+
    134 {
    \n+
    135 public:
    \n+
    139 typedef M Matrix;
    \n+
    140
    \n+
    144 typedef N Norm;
    \n
    145
    \n-
    154 void setMaxDistance(std::size_t distance) { maxDistance_ = distance;}
    \n+
    149 typedef typename Matrix::row_type Row;
    \n+
    150
    \n+\n
    155
    \n-
    \n-
    161 bool skipIsolated() const
    \n-
    162 {
    \n-
    163 return skipiso_;
    \n-
    164 }
    \n+
    156 void init(const Matrix* matrix);
    \n+
    157
    \n+
    158 void initRow(const Row& row, int index);
    \n+
    159
    \n+
    160 void examine(const ColIter& col);
    \n+
    161
    \n+
    162 template<class G>
    \n+
    163 void examine(G& graph, const typename G::EdgeIterator& edge, const ColIter& col);
    \n+
    164
    \n+
    165 bool isIsolated();
    \n+
    166
    \n+
    167
    \n+
    \n+\n+
    169 : Parameters(parms)
    \n+
    170 {}
    \n
    \n-
    165
    \n
    \n-
    171 void setSkipIsolated(bool skip)
    \n-
    172 {
    \n-
    173 skipiso_=skip;
    \n-
    174 }
    \n-
    \n-
    175
    \n-
    180 std::size_t minAggregateSize() const { return minAggregateSize_;}
    \n-
    181
    \n-
    188 void setMinAggregateSize(std::size_t size){ minAggregateSize_=size;}
    \n-
    189
    \n-
    194 std::size_t maxAggregateSize() const { return maxAggregateSize_;}
    \n-
    195
    \n-
    202 void setMaxAggregateSize(std::size_t size){ maxAggregateSize_ = size;}
    \n-
    203
    \n-
    211 std::size_t maxConnectivity() const { return connectivity_;}
    \n+\n+
    172 : Parameters()
    \n+
    173 {}
    \n+
    \n+
    174
    \n+
    175 protected:
    \n+\n+\n+
    180 typedef typename FieldTraits<field_type>::real_type real_type;
    \n+\n+\n+
    185 int row_;
    \n+\n+
    188 std::vector<real_type> vals_;
    \n+
    189 typename std::vector<real_type>::iterator valIter_;
    \n+
    190
    \n+
    191 };
    \n+
    \n+
    192
    \n+
    193
    \n+
    194 template<class M, class N>
    \n+
    \n+\n+
    196 {
    \n+
    197 matrix_ = matrix;
    \n+
    198 }
    \n+
    \n+
    199
    \n+
    200 template<class M, class N>
    \n+
    \n+
    201 inline void SymmetricMatrixDependency<M,N>::initRow(const Row& row, int index)
    \n+
    202 {
    \n+
    203 using std::min;
    \n+
    204 vals_.assign(row.size(), 0.0);
    \n+
    205 assert(vals_.size()==row.size());
    \n+
    206 valIter_=vals_.begin();
    \n+
    207
    \n+
    208 maxValue_ = min(- std::numeric_limits<real_type>::max(), std::numeric_limits<real_type>::min());
    \n+
    209 diagonal_=norm_(row[index]);
    \n+
    210 row_ = index;
    \n+
    211 }
    \n+
    \n
    212
    \n-
    220 void setMaxConnectivity(std::size_t connectivity){ connectivity_ = connectivity;}
    \n-
    221
    \n-
    222 private:
    \n-
    223 std::size_t maxDistance_, minAggregateSize_, maxAggregateSize_, connectivity_;
    \n-
    224 bool skipiso_;
    \n-
    225
    \n-
    226 };
    \n+
    213 template<class M, class N>
    \n+
    \n+\n+
    215 {
    \n+
    216 using std::max;
    \n+
    217 // skip positive offdiagonals if norm preserves sign of them.
    \n+
    218 real_type eij = norm_(*col);
    \n+
    219 if(!N::is_sign_preserving || eij<0) // || eji<0)
    \n+
    220 {
    \n+
    221 *valIter_ = eij/diagonal_*eij/norm_(matrix_->operator[](col.index())[col.index()]);
    \n+
    222 maxValue_ = max(maxValue_, *valIter_);
    \n+
    223 }else
    \n+
    224 *valIter_ =0;
    \n+
    225 ++valIter_;
    \n+
    226 }
    \n
    \n
    227
    \n-
    228
    \n-
    \n-\n-\n-\n-\n-
    249 };
    \n-
    \n-
    250
    \n-
    251
    \n-
    252
    \n-
    253
    \n-
    \n-\n-
    258 {
    \n-
    259 public:
    \n-
    \n-
    263 void setMaxLevel(int l)
    \n-
    264 {
    \n-
    265 maxLevel_ = l;
    \n-
    266 }
    \n-
    \n-
    \n-
    270 int maxLevel() const
    \n-
    271 {
    \n-
    272 return maxLevel_;
    \n-
    273 }
    \n-
    \n+
    228 template<class M, class N>
    \n+
    229 template<class G>
    \n+
    \n+
    230 inline void SymmetricMatrixDependency<M,N>::examine(G&, const typename G::EdgeIterator& edge, const ColIter&)
    \n+
    231 {
    \n+
    232 if(*valIter_ > alpha() * maxValue_) {
    \n+
    233 edge.properties().setDepends();
    \n+
    234 edge.properties().setInfluences();
    \n+
    235 }
    \n+
    236 ++valIter_;
    \n+
    237 }
    \n+
    \n+
    238
    \n+
    239 template<class M, class N>
    \n+
    \n+\n+
    241 {
    \n+
    242 if(diagonal_==0)
    \n+
    243 DUNE_THROW(Dune::ISTLError, "No diagonal entry for row "<<row_<<".");
    \n+
    244 valIter_=vals_.begin();
    \n+
    245 return maxValue_ < beta();
    \n+
    246 }
    \n+
    \n+
    247
    \n+
    251 template<class M, class N>
    \n+
    \n+
    252 class Dependency : public Parameters
    \n+
    253 {
    \n+
    254 public:
    \n+
    258 typedef M Matrix;
    \n+
    259
    \n+
    263 typedef N Norm;
    \n+
    264
    \n+
    268 typedef typename Matrix::row_type Row;
    \n+
    269
    \n+\n
    274
    \n-
    \n-
    278 void setCoarsenTarget(int nodes)
    \n-
    279 {
    \n-
    280 coarsenTarget_ = nodes;
    \n-
    281 }
    \n-
    \n-
    282
    \n+
    275 void init(const Matrix* matrix);
    \n+
    276
    \n+
    277 void initRow(const Row& row, int index);
    \n+
    278
    \n+
    279 void examine(const ColIter& col);
    \n+
    280
    \n+
    281 template<class G>
    \n+
    282 void examine(G& graph, const typename G::EdgeIterator& edge, const ColIter& col);
    \n+
    283
    \n+\n+
    285
    \n
    \n-
    286 int coarsenTarget() const
    \n-
    287 {
    \n-
    288 return coarsenTarget_;
    \n-
    289 }
    \n-
    \n-
    290
    \n-
    \n-
    296 void setMinCoarsenRate(double rate)
    \n-
    297 {
    \n-
    298 minCoarsenRate_ = rate;
    \n-
    299 }
    \n-
    \n-
    300
    \n-
    \n-
    304 double minCoarsenRate() const
    \n-
    305 {
    \n-
    306 return minCoarsenRate_;
    \n-
    307 }
    \n+
    286 Dependency(const Parameters& parms)
    \n+
    287 : Parameters(parms)
    \n+
    288 {}
    \n+
    \n+
    289
    \n+
    \n+\n+
    291 : Parameters()
    \n+
    292 {}
    \n+
    \n+
    293
    \n+
    294 protected:
    \n+\n+\n+
    299 typedef typename FieldTraits<field_type>::real_type real_type;
    \n+\n+\n+
    304 int row_;
    \n+\n+
    307 };
    \n
    \n
    308
    \n-
    \n-\n-
    313 {
    \n-
    314 return accumulate_;
    \n-
    315 }
    \n-
    \n-
    \n-\n-
    320 {
    \n-
    321 accumulate_=accu;
    \n-
    322 }
    \n-
    \n-
    323
    \n-
    \n-
    324 void setAccumulate(bool accu){
    \n-
    325 accumulate_=accu ? successiveAccu : noAccu;
    \n-
    326 }
    \n-
    \n-
    \n-\n-
    333 {
    \n-
    334 dampingFactor_ = d;
    \n-
    335 }
    \n-
    \n-
    336
    \n-
    \n-\n-
    343 {
    \n-
    344 return dampingFactor_;
    \n-
    345 }
    \n-
    \n-
    \n-\n-
    357 double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    \n-
    358 : maxLevel_(maxLevel), coarsenTarget_(coarsenTarget), minCoarsenRate_(minCoarsenRate),
    \n-
    359 dampingFactor_(prolongDamp), accumulate_( accumulate)
    \n-
    360 {}
    \n-
    \n-
    361
    \n-
    362 private:
    \n-
    366 int maxLevel_;
    \n-
    370 int coarsenTarget_;
    \n-
    374 double minCoarsenRate_;
    \n-
    378 double dampingFactor_;
    \n-
    383 AccumulationMode accumulate_;
    \n-
    384 };
    \n-
    \n-
    385
    \n-
    \n-\n-
    393 {
    \n-
    394 public:
    \n-
    \n-
    401 void setDebugLevel(int level)
    \n-
    402 {
    \n-
    403 debugLevel_ = level;
    \n-
    404 }
    \n-
    \n-
    405
    \n-
    \n-
    411 int debugLevel() const
    \n-
    412 {
    \n-
    413 return debugLevel_;
    \n+
    312 template<class M, class N>
    \n+
    \n+\n+
    314 {
    \n+
    315 public:
    \n+
    319 typedef M Matrix;
    \n+
    320
    \n+
    324 typedef N Norm;
    \n+
    325
    \n+
    329 typedef typename Matrix::row_type Row;
    \n+
    330
    \n+\n+
    335
    \n+
    336 void init(const Matrix* matrix);
    \n+
    337
    \n+
    338 void initRow(const Row& row, int index);
    \n+
    339
    \n+
    340 void examine(const ColIter& col);
    \n+
    341
    \n+
    342 template<class G>
    \n+
    343 void examine(G& graph, const typename G::EdgeIterator& edge, const ColIter& col);
    \n+
    344
    \n+\n+
    346
    \n+
    347
    \n+
    \n+\n+
    349 : Parameters(parms)
    \n+
    350 {}
    \n+
    \n+
    \n+\n+
    352 : Parameters()
    \n+
    353 {}
    \n+
    \n+
    354
    \n+
    355 protected:
    \n+\n+\n+
    360 typedef typename FieldTraits<field_type>::real_type real_type;
    \n+\n+\n+
    365 int row_;
    \n+\n+
    368 private:
    \n+
    369 void initRow(const Row& row, int index, const std::true_type&);
    \n+
    370 void initRow(const Row& row, int index, const std::false_type&);
    \n+
    371 };
    \n+
    \n+
    372
    \n+
    377 template<int N>
    \n+
    \n+\n+
    379 {
    \n+
    380 public:
    \n+
    381 enum { /* @brief We preserve the sign.*/
    \n+
    382 is_sign_preserving = true
    \n+
    383 };
    \n+
    384
    \n+
    389 template<class M>
    \n+
    \n+
    390 typename FieldTraits<typename M::field_type>::real_type operator()(const M& m,
    \n+
    391 [[maybe_unused]] typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr) const
    \n+
    392 {
    \n+
    393 typedef typename M::field_type field_type;
    \n+
    394 typedef typename FieldTraits<field_type>::real_type real_type;
    \n+
    395 static_assert( std::is_convertible<field_type, real_type >::value,
    \n+
    396 "use of diagonal norm in AMG not implemented for complex field_type");
    \n+
    397 return m[N][N];
    \n+
    398 // possible implementation for complex types: return signed_abs(m[N][N]);
    \n+
    399 }
    \n+
    \n+
    400
    \n+
    405 template<class M>
    \n+
    \n+
    406 auto operator()(const M& m,
    \n+
    407 typename std::enable_if_t<Dune::IsNumber<M>::value>* sfinae = nullptr) const
    \n+
    408 {
    \n+
    409 typedef typename FieldTraits<M>::real_type real_type;
    \n+
    410 static_assert( std::is_convertible<M, real_type >::value,
    \n+
    411 "use of diagonal norm in AMG not implemented for complex field_type");
    \n+
    412 return m;
    \n+
    413 // possible implementation for complex types: return signed_abs(m[N][N]);
    \n
    414 }
    \n
    \n
    415
    \n-
    \n-
    420 void setNoPreSmoothSteps(std::size_t steps)
    \n+
    416 private:
    \n+
    417
    \n+
    419 template<typename T>
    \n+
    420 static T signed_abs(const T & v)
    \n
    421 {
    \n-
    422 preSmoothSteps_=steps;
    \n+
    422 return v;
    \n
    423 }
    \n-
    \n-
    \n-
    428 std::size_t getNoPreSmoothSteps() const
    \n-
    429 {
    \n-
    430 return preSmoothSteps_;
    \n-
    431 }
    \n-
    \n-
    432
    \n-
    \n-
    437 void setNoPostSmoothSteps(std::size_t steps)
    \n-
    438 {
    \n-
    439 postSmoothSteps_=steps;
    \n-
    440 }
    \n-
    \n-
    \n-
    445 std::size_t getNoPostSmoothSteps() const
    \n-
    446 {
    \n-
    447 return postSmoothSteps_;
    \n-
    448 }
    \n+
    424
    \n+
    426 template<typename T>
    \n+
    427 static T signed_abs(const std::complex<T> & v)
    \n+
    428 {
    \n+
    429 // return sign * abs_value
    \n+
    430 // in case of complex numbers this extends to using the csgn function to determine the sign
    \n+
    431 return csgn(v) * std::abs(v);
    \n+
    432 }
    \n+
    433
    \n+
    435 template<typename T>
    \n+
    436 static T csgn(const T & v)
    \n+
    437 {
    \n+
    438 return (T(0) < v) - (v < T(0));
    \n+
    439 }
    \n+
    440
    \n+
    442 template<typename T>
    \n+
    443 static T csgn(std::complex<T> a)
    \n+
    444 {
    \n+
    445 return csgn(a.real())+(a.real() == 0.0)*csgn(a.imag());
    \n+
    446 }
    \n+
    447
    \n+
    448 };
    \n
    \n
    449
    \n-
    \n-
    453 void setGamma(std::size_t gamma)
    \n-
    454 {
    \n-
    455 gamma_=gamma;
    \n-
    456 }
    \n-
    \n-
    \n-
    460 std::size_t getGamma() const
    \n-
    461 {
    \n-
    462 return gamma_;
    \n-
    463 }
    \n-
    \n+
    \n+
    454 class FirstDiagonal : public Diagonal<0>
    \n+
    455 {};
    \n+
    \n+
    456
    \n+
    \n+
    462 struct RowSum
    \n+
    463 {
    \n
    464
    \n-
    \n-
    469 void setAdditive(bool additive)
    \n-
    470 {
    \n-
    471 additive_=additive;
    \n-
    472 }
    \n-
    \n-
    473
    \n-
    \n-
    478 bool getAdditive() const
    \n-
    479 {
    \n-
    480 return additive_;
    \n-
    481 }
    \n-
    \n-
    482
    \n-
    \n-
    493 Parameters(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2,
    \n-
    494 double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    \n-\n-
    496 , debugLevel_(2), preSmoothSteps_(2), postSmoothSteps_(2), gamma_(1),
    \n-
    497 additive_(false)
    \n-
    498 {}
    \n-
    \n-
    499 private:
    \n-
    500 int debugLevel_;
    \n-
    501 std::size_t preSmoothSteps_;
    \n-
    502 std::size_t postSmoothSteps_;
    \n-
    503 std::size_t gamma_;
    \n-
    504 bool additive_;
    \n-
    505 };
    \n-
    \n-
    506
    \n-
    507 } //namespace AMG
    \n-
    508
    \n-
    509} //namespace Dune
    \n-
    510#endif
    \n-
    void setDefaultValuesAnisotropic(std::size_t dim, std::size_t diameter=2)
    Sets reasonable default values for an anisotropic problem.
    Definition parameters.hh:132
    \n-
    void setAdditive(bool additive)
    Set whether to use additive multigrid.
    Definition parameters.hh:469
    \n-
    void setSkipIsolated(bool skip)
    Set whether isolated aggregates will not be represented on the coarse level.
    Definition parameters.hh:171
    \n-
    void setProlongationDampingFactor(double d)
    Set the damping factor for the prolongation.
    Definition parameters.hh:332
    \n-
    double alpha() const
    Get the scaling value for marking connections as strong. Default value is 1/3.
    Definition parameters.hh:70
    \n-
    void setMaxAggregateSize(std::size_t size)
    Set the maximum number of nodes a aggregate is allowed to have.
    Definition parameters.hh:202
    \n-
    void setMinCoarsenRate(double rate)
    Set the minimum coarsening rate to be achieved in each coarsening.
    Definition parameters.hh:296
    \n-
    double minCoarsenRate() const
    Get the minimum coarsening rate to be achieved.
    Definition parameters.hh:304
    \n-
    std::size_t maxAggregateSize() const
    Get the maximum number of nodes a aggregate is allowed to have.
    Definition parameters.hh:194
    \n-
    void setAlpha(double a)
    Set the scaling value for marking connections as strong. Default value is 1/3.
    Definition parameters.hh:61
    \n-
    double beta() const
    Get the threshold for marking nodes as isolated. The default value is 1.0E-5.
    Definition parameters.hh:52
    \n-
    std::size_t maxConnectivity() const
    Get the maximum number of connections a aggregate is allowed to have.
    Definition parameters.hh:211
    \n-
    int coarsenTarget() const
    Get the maximum number of unknowns allowed on the coarsest level.
    Definition parameters.hh:286
    \n-
    void setAccumulate(AccumulationMode accu)
    Set whether he data should be accumulated on fewer processes on coarser levels.
    Definition parameters.hh:319
    \n-
    double getProlongationDampingFactor() const
    Get the damping factor for the prolongation.
    Definition parameters.hh:342
    \n-
    AccumulationMode accumulate() const
    Whether the data should be accumulated on fewer processes on coarser levels.
    Definition parameters.hh:312
    \n-
    void setMaxConnectivity(std::size_t connectivity)
    Set the maximum number of connections a aggregate is allowed to have.
    Definition parameters.hh:220
    \n-
    std::size_t minAggregateSize() const
    Get the minimum number of nodes a aggregate has to consist of.
    Definition parameters.hh:180
    \n-
    bool getAdditive() const
    Get whether to use additive multigrid.
    Definition parameters.hh:478
    \n-
    void setMaxLevel(int l)
    Set the maximum number of levels allowed in the hierarchy.
    Definition parameters.hh:263
    \n-
    void setDebugLevel(int level)
    Set the debugging level.
    Definition parameters.hh:401
    \n-
    std::size_t getGamma() const
    Get the value of gamma; 1 for V-cycle, 2 for W-cycle.
    Definition parameters.hh:460
    \n-
    void setNoPostSmoothSteps(std::size_t steps)
    Set the number of postsmoothing steps to apply.
    Definition parameters.hh:437
    \n-
    std::size_t getNoPreSmoothSteps() const
    Get the number of presmoothing steps to apply.
    Definition parameters.hh:428
    \n-
    DependencyParameters()
    Constructor.
    Definition parameters.hh:34
    \n-
    void setMinAggregateSize(std::size_t size)
    Set the minimum number of nodes a aggregate has to consist of.
    Definition parameters.hh:188
    \n-
    int maxLevel() const
    Get the maximum number of levels allowed in the hierarchy.
    Definition parameters.hh:270
    \n-
    void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)
    Sets reasonable default values for an isotropic problem.
    Definition parameters.hh:109
    \n-
    AggregationParameters()
    Constructor.
    Definition parameters.hh:95
    \n-
    bool skipIsolated() const
    Whether isolated aggregates will not be represented on the coarse level.
    Definition parameters.hh:161
    \n-
    Parameters(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2, double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    Constructor.
    Definition parameters.hh:493
    \n-
    void setCoarsenTarget(int nodes)
    Set the maximum number of unknowns allowed on the coarsest level.
    Definition parameters.hh:278
    \n-
    void setNoPreSmoothSteps(std::size_t steps)
    Set the number of presmoothing steps to apply.
    Definition parameters.hh:420
    \n-
    AccumulationMode
    Identifiers for the different accumulation modes.
    Definition parameters.hh:232
    \n-
    void setBeta(double b)
    Set threshold for marking nodes as isolated. The default value is 1.0E-5.
    Definition parameters.hh:42
    \n-
    std::size_t maxDistance() const
    Get the maximal distance allowed between two nodes in a aggregate.
    Definition parameters.hh:144
    \n-
    CoarseningParameters(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2, double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    Constructor.
    Definition parameters.hh:356
    \n-
    void setGamma(std::size_t gamma)
    Set the value of gamma; 1 for V-cycle, 2 for W-cycle.
    Definition parameters.hh:453
    \n-
    void setAccumulate(bool accu)
    Definition parameters.hh:324
    \n-
    void setMaxDistance(std::size_t distance)
    Set the maximal distance allowed between two nodes in a aggregate.
    Definition parameters.hh:154
    \n-
    int debugLevel() const
    Get the debugging Level.
    Definition parameters.hh:411
    \n-
    std::size_t getNoPostSmoothSteps() const
    Get the number of postsmoothing steps to apply.
    Definition parameters.hh:445
    \n-
    @ atOnceAccu
    Accumulate data to one process at once.
    Definition parameters.hh:244
    \n-
    @ noAccu
    No data accumulution.
    Definition parameters.hh:238
    \n-
    @ successiveAccu
    Successively accumulate to fewer processes.
    Definition parameters.hh:248
    \n+
    465 enum { /* @brief We preserve the sign.*/
    \n+
    466 is_sign_preserving = false
    \n+
    467 };
    \n+
    472 template<class M>
    \n+
    \n+
    473 typename FieldTraits<typename M::field_type>::real_type operator()(const M& m) const
    \n+
    474 {
    \n+
    475 return m.infinity_norm();
    \n+
    476 }
    \n+
    \n+
    477 };
    \n+
    \n+
    478
    \n+
    \n+\n+
    480 {
    \n+
    481
    \n+
    482 enum { /* @brief We preserve the sign.*/
    \n+
    483 is_sign_preserving = false
    \n+
    484 };
    \n+
    489 template<class M>
    \n+
    \n+
    490 typename FieldTraits<typename M::field_type>::real_type operator()(const M& m) const
    \n+
    491 {
    \n+
    492 return m.frobenius_norm();
    \n+
    493 }
    \n+
    \n+
    494 };
    \n+
    \n+
    \n+\n+
    496 {
    \n+
    497
    \n+
    498 enum { /* @brief We preserve the sign.*/
    \n+
    499 is_sign_preserving = false
    \n+
    500 };
    \n+
    505 template<class M>
    \n+
    \n+
    506 typename FieldTraits<typename M::field_type>::real_type operator()(const M& m) const
    \n+
    507 {
    \n+
    508 return 1;
    \n+
    509 }
    \n+
    \n+
    510 };
    \n+
    \n+
    517 template<class M, class Norm>
    \n+
    \n+
    518 class SymmetricCriterion : public AggregationCriterion<SymmetricDependency<M,Norm> >
    \n+
    519 {
    \n+
    520 public:
    \n+
    \n+\n+\n+
    523 {}
    \n+
    \n+
    \n+\n+
    525 {}
    \n+
    \n+
    526 };
    \n+
    \n+
    527
    \n+
    528
    \n+
    537 template<class M, class Norm>
    \n+
    \n+
    538 class UnSymmetricCriterion : public AggregationCriterion<Dependency<M,Norm> >
    \n+
    539 {
    \n+
    540 public:
    \n+
    \n+\n+\n+
    543 {}
    \n+
    \n+
    \n+\n+
    545 {}
    \n+
    \n+
    546 };
    \n+
    \n+
    547 // forward declaration
    \n+
    548 template<class G> class Aggregator;
    \n+
    549
    \n+
    550
    \n+
    558 template<class V>
    \n+
    \n+\n+
    560 {
    \n+
    561 public:
    \n+
    562
    \n+
    566 static const V UNAGGREGATED;
    \n+
    567
    \n+
    571 static const V ISOLATED;
    \n+\n+
    576
    \n+\n+
    581
    \n+
    586 typedef PoolAllocator<VertexDescriptor,100> Allocator;
    \n+
    587
    \n+
    592 typedef SLList<VertexDescriptor,Allocator> VertexList;
    \n+
    593
    \n+
    \n+\n+
    598 {
    \n+
    599 public:
    \n+
    600 template<class EdgeIterator>
    \n+
    \n+
    601 void operator()([[maybe_unused]] const EdgeIterator& edge) const
    \n+
    602 {}
    \n+
    \n+
    603 };
    \n+
    \n+
    604
    \n+
    605
    \n+\n+
    610
    \n+\n+
    617
    \n+\n+
    622
    \n+
    634 template<class M, class G, class C>
    \n+
    635 std::tuple<int,int,int,int> buildAggregates(const M& matrix, G& graph, const C& criterion,
    \n+
    636 bool finestLevel);
    \n+
    637
    \n+
    655 template<bool reset, class G, class F, class VM>
    \n+
    656 std::size_t breadthFirstSearch(const VertexDescriptor& start,
    \n+
    657 const AggregateDescriptor& aggregate,
    \n+
    658 const G& graph,
    \n+
    659 F& aggregateVisitor,
    \n+
    660 VM& visitedMap) const;
    \n+
    661
    \n+
    685 template<bool remove, bool reset, class G, class L, class F1, class F2, class VM>
    \n+
    686 std::size_t breadthFirstSearch(const VertexDescriptor& start,
    \n+
    687 const AggregateDescriptor& aggregate,
    \n+
    688 const G& graph, L& visited, F1& aggregateVisitor,
    \n+
    689 F2& nonAggregateVisitor,
    \n+
    690 VM& visitedMap) const;
    \n+
    691
    \n+
    697 void allocate(std::size_t noVertices);
    \n+
    698
    \n+
    702 std::size_t noVertices() const;
    \n+
    703
    \n+
    707 void free();
    \n+
    708
    \n+\n+
    715
    \n+\n+
    722
    \n+\n+
    724
    \n+
    \n+\n+
    726 {
    \n+
    727 return aggregates_;
    \n+
    728 }
    \n+
    \n+
    729
    \n+
    \n+\n+
    731 {
    \n+
    732 return aggregates_+noVertices();
    \n+
    733 }
    \n+
    \n+
    734
    \n+\n+
    736
    \n+
    \n+\n+
    738 {
    \n+
    739 return aggregates_;
    \n+
    740 }
    \n+
    \n+
    741
    \n+
    \n+\n+
    743 {
    \n+
    744 return aggregates_+noVertices();
    \n+
    745 }
    \n+
    \n+
    746 private:
    \n+
    748 AggregatesMap(const AggregatesMap<V>&) = delete;
    \n+
    750 AggregatesMap<V>& operator=(const AggregatesMap<V>&) = delete;
    \n+
    751
    \n+
    755 AggregateDescriptor* aggregates_;
    \n+
    756
    \n+
    760 std::size_t noVertices_;
    \n+
    761 };
    \n+
    \n+
    762
    \n+
    766 template<class G, class C>
    \n+
    767 void buildDependency(G& graph,
    \n+
    768 const typename C::Matrix& matrix,
    \n+
    769 C criterion,
    \n+
    770 bool finestLevel);
    \n+
    771
    \n+
    776 template<class G, class S>
    \n+
    \n+\n+
    778 {
    \n+
    779
    \n+
    780 public:
    \n+
    781
    \n+
    782 /***
    \n+
    783 * @brief The type of the matrix graph we work with.
    \n+
    784 */
    \n+
    785 typedef G MatrixGraph;
    \n+\n+
    790
    \n+
    795 typedef PoolAllocator<Vertex,100> Allocator;
    \n+
    796
    \n+
    801 typedef S VertexSet;
    \n+
    802
    \n+
    804 typedef typename VertexSet::const_iterator const_iterator;
    \n+
    805
    \n+
    809 typedef std::size_t* SphereMap;
    \n+
    810
    \n+\n+
    820 VertexSet& connectivity, std::vector<Vertex>& front_);
    \n+
    821
    \n+
    \n+\n+
    823 {
    \n+
    824 --id_;
    \n+
    825 }
    \n+
    \n+
    826
    \n+
    833 void reconstruct(const Vertex& vertex);
    \n+
    834
    \n+
    838 void seed(const Vertex& vertex);
    \n+
    839
    \n+
    843 void add(const Vertex& vertex);
    \n+
    844
    \n+
    845 void add(std::vector<Vertex>& vertex);
    \n+
    849 void clear();
    \n+
    850
    \n+
    854 typename VertexSet::size_type size();
    \n+
    858 typename VertexSet::size_type connectSize();
    \n+
    859
    \n+
    863 int id();
    \n+
    864
    \n+\n+
    867
    \n+\n+
    870
    \n+
    871 private:
    \n+
    875 VertexSet vertices_;
    \n+
    876
    \n+
    881 int id_;
    \n+
    882
    \n+
    886 MatrixGraph& graph_;
    \n+
    887
    \n+
    891 AggregatesMap<Vertex>& aggregates_;
    \n+
    892
    \n+
    896 VertexSet& connected_;
    \n+
    897
    \n+
    901 std::vector<Vertex>& front_;
    \n+
    902 };
    \n+
    \n+
    903
    \n+
    907 template<class G>
    \n+
    \n+\n+
    909 {
    \n+
    910 public:
    \n+
    911
    \n+
    915 typedef G MatrixGraph;
    \n+
    916
    \n+\n+
    921
    \n+\n+
    924
    \n+\n+
    929
    \n+\n+
    934
    \n+
    951 template<class M, class C>
    \n+
    952 std::tuple<int,int,int,int> build(const M& m, G& graph,
    \n+
    953 AggregatesMap<Vertex>& aggregates, const C& c,
    \n+
    954 bool finestLevel);
    \n+
    955 private:
    \n+
    960 typedef PoolAllocator<Vertex,100> Allocator;
    \n+
    961
    \n+
    965 typedef SLList<Vertex,Allocator> VertexList;
    \n+
    966
    \n+
    970 typedef std::set<Vertex,std::less<Vertex>,Allocator> VertexSet;
    \n+
    971
    \n+
    975 typedef std::size_t* SphereMap;
    \n+
    976
    \n+
    980 MatrixGraph* graph_;
    \n+
    981
    \n+\n+
    986
    \n+
    990 std::vector<Vertex> front_;
    \n+
    991
    \n+
    995 VertexSet connected_;
    \n+
    996
    \n+
    1000 int size_;
    \n+
    1001
    \n+
    1005 class Stack
    \n+
    1006 {
    \n+
    1007 public:
    \n+
    1008 static const Vertex NullEntry;
    \n+
    1009
    \n+
    1010 Stack(const MatrixGraph& graph,
    \n+
    1011 const Aggregator<G>& aggregatesBuilder,
    \n+
    1012 const AggregatesMap<Vertex>& aggregates);
    \n+\n+\n+
    1015 private:
    \n+
    1016 enum { N = 1300000 };
    \n+
    1017
    \n+
    1019 const MatrixGraph& graph_;
    \n+
    1021 const Aggregator<G>& aggregatesBuilder_;
    \n+
    1023 const AggregatesMap<Vertex>& aggregates_;
    \n+
    1025 int size_;
    \n+
    1026 Vertex maxSize_;
    \n+
    1028 typename MatrixGraph::ConstVertexIterator begin_;
    \n+\n+
    1030
    \n+
    1032 Vertex* vals_;
    \n+
    1033
    \n+
    1034 };
    \n+
    1035
    \n+
    1036 friend class Stack;
    \n+
    1037
    \n+
    1048 template<class V>
    \n+
    1049 void visitAggregateNeighbours(const Vertex& vertex, const AggregateDescriptor& aggregate,
    \n+
    1050 const AggregatesMap<Vertex>& aggregates,
    \n+
    1051 V& visitor) const;
    \n+
    1052
    \n+
    1057 template<class V>
    \n+
    1058 class AggregateVisitor
    \n+
    1059 {
    \n+
    1060 public:
    \n+
    1064 typedef V Visitor;
    \n+\n+
    1073 Visitor& visitor);
    \n+
    1074
    \n+
    1081 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n+
    1082
    \n+
    1083 private:
    \n+
    1085 const AggregatesMap<Vertex>& aggregates_;
    \n+
    1087 AggregateDescriptor aggregate_;
    \n+
    1089 Visitor* visitor_;
    \n+
    1090 };
    \n+
    1091
    \n+
    1095 class Counter
    \n+
    1096 {
    \n+
    1097 public:
    \n+\n+
    1101 int value();
    \n+
    1102
    \n+
    1103 protected:
    \n+\n+\n+
    1108
    \n+
    1109 private:
    \n+
    1110 int count_;
    \n+
    1111 };
    \n+
    1112
    \n+
    1113
    \n+
    1118 class FrontNeighbourCounter : public Counter
    \n+
    1119 {
    \n+
    1120 public:
    \n+\n+
    1126
    \n+
    1127 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n+
    1128
    \n+
    1129 private:
    \n+
    1130 const MatrixGraph& graph_;
    \n+
    1131 };
    \n+
    1132
    \n+
    1137 int noFrontNeighbours(const Vertex& vertex) const;
    \n+
    1138
    \n+
    1142 class TwoWayCounter : public Counter
    \n+
    1143 {
    \n+
    1144 public:
    \n+
    1145 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n+
    1146 };
    \n+
    1147
    \n+
    1159 int twoWayConnections(const Vertex&, const AggregateDescriptor& aggregate,
    \n+
    1160 const AggregatesMap<Vertex>& aggregates) const;
    \n+
    1161
    \n+
    1165 class OneWayCounter : public Counter
    \n+
    1166 {
    \n+
    1167 public:
    \n+
    1168 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n+
    1169 };
    \n+
    1170
    \n+
    1182 int oneWayConnections(const Vertex&, const AggregateDescriptor& aggregate,
    \n+
    1183 const AggregatesMap<Vertex>& aggregates) const;
    \n+
    1184
    \n+
    1191 class ConnectivityCounter : public Counter
    \n+
    1192 {
    \n+
    1193 public:
    \n+
    1200 ConnectivityCounter(const VertexSet& connected, const AggregatesMap<Vertex>& aggregates);
    \n+
    1201
    \n+
    1202 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n+
    1203
    \n+
    1204 private:
    \n+
    1206 const VertexSet& connected_;
    \n+
    1208 const AggregatesMap<Vertex>& aggregates_;
    \n+
    1209
    \n+
    1210 };
    \n+
    1211
    \n+
    1223 double connectivity(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const;
    \n+
    1231 bool connected(const Vertex& vertex, const AggregateDescriptor& aggregate,
    \n+
    1232 const AggregatesMap<Vertex>& aggregates) const;
    \n+
    1233
    \n+
    1241 bool connected(const Vertex& vertex, const SLList<AggregateDescriptor>& aggregateList,
    \n+
    1242 const AggregatesMap<Vertex>& aggregates) const;
    \n+
    1243
    \n+
    1251 class DependencyCounter : public Counter
    \n+
    1252 {
    \n+
    1253 public:
    \n+\n+
    1258
    \n+
    1259 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n+
    1260 };
    \n+
    1261
    \n+
    1268 class FrontMarker
    \n+
    1269 {
    \n+
    1270 public:
    \n+
    1277 FrontMarker(std::vector<Vertex>& front, MatrixGraph& graph);
    \n+
    1278
    \n+
    1279 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n+
    1280
    \n+
    1281 private:
    \n+
    1283 std::vector<Vertex>& front_;
    \n+
    1285 MatrixGraph& graph_;
    \n+
    1286 };
    \n+
    1287
    \n+
    1291 void unmarkFront();
    \n+
    1292
    \n+
    1307 int unusedNeighbours(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const;
    \n+
    1308
    \n+
    1322 std::pair<int,int> neighbours(const Vertex& vertex,
    \n+
    1323 const AggregateDescriptor& aggregate,
    \n+
    1324 const AggregatesMap<Vertex>& aggregates) const;
    \n+
    1341 int aggregateNeighbours(const Vertex& vertex, const AggregateDescriptor& aggregate, const AggregatesMap<Vertex>& aggregates) const;
    \n+
    1342
    \n+
    1350 bool admissible(const Vertex& vertex, const AggregateDescriptor& aggregate, const AggregatesMap<Vertex>& aggregates) const;
    \n+
    1351
    \n+
    1359 std::size_t distance(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates);
    \n+
    1360
    \n+
    1369 Vertex mergeNeighbour(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const;
    \n+
    1370
    \n+
    1379 void nonisoNeighbourAggregate(const Vertex& vertex,
    \n+
    1380 const AggregatesMap<Vertex>& aggregates,
    \n+
    1381 SLList<Vertex>& neighbours) const;
    \n+
    1382
    \n+
    1390 template<class C>
    \n+
    1391 void growAggregate(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates, const C& c);
    \n+
    1392 template<class C>
    \n+
    1393 void growIsolatedAggregate(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates, const C& c);
    \n+
    1394 };
    \n+
    \n+
    1395
    \n+
    1396#ifndef DOXYGEN
    \n+
    1397
    \n+
    1398 template<class M, class N>
    \n+
    1399 inline void SymmetricDependency<M,N>::init(const Matrix* matrix)
    \n+
    1400 {
    \n+
    1401 matrix_ = matrix;
    \n+
    1402 }
    \n+
    1403
    \n+
    1404 template<class M, class N>
    \n+
    1405 inline void SymmetricDependency<M,N>::initRow(const Row& row, int index)
    \n+
    1406 {
    \n+
    1407 initRow(row, index, std::is_convertible<field_type, real_type>());
    \n+
    1408 }
    \n+
    1409
    \n+
    1410 template<class M, class N>
    \n+
    1411 inline void SymmetricDependency<M,N>::initRow(const Row& row, int index, const std::false_type&)
    \n+
    1412 {
    \n+
    1413 DUNE_THROW(InvalidStateException, "field_type needs to convertible to real_type");
    \n+
    1414 }
    \n+
    1415
    \n+
    1416 template<class M, class N>
    \n+
    1417 inline void SymmetricDependency<M,N>::initRow([[maybe_unused]] const Row& row, int index, const std::true_type&)
    \n+
    1418 {
    \n+
    1419 using std::min;
    \n+
    1420 maxValue_ = min(- std::numeric_limits<typename Matrix::field_type>::max(), std::numeric_limits<typename Matrix::field_type>::min());
    \n+
    1421 row_ = index;
    \n+
    1422 diagonal_ = norm_(matrix_->operator[](row_)[row_]);
    \n+
    1423 }
    \n+
    1424
    \n+
    1425 template<class M, class N>
    \n+
    1426 inline void SymmetricDependency<M,N>::examine(const ColIter& col)
    \n+
    1427 {
    \n+
    1428 using std::max;
    \n+
    1429 real_type eij = norm_(*col);
    \n+
    1430 typename Matrix::ConstColIterator opposite_entry =
    \n+
    1431 matrix_->operator[](col.index()).find(row_);
    \n+
    1432 if ( opposite_entry == matrix_->operator[](col.index()).end() )
    \n+
    1433 {
    \n+
    1434 // Consider this a weak connection we disregard.
    \n+
    1435 return;
    \n+
    1436 }
    \n+
    1437 real_type eji = norm_(*opposite_entry);
    \n+
    1438
    \n+
    1439 // skip positive offdiagonals if norm preserves sign of them.
    \n+
    1440 if(!N::is_sign_preserving || eij<0 || eji<0)
    \n+
    1441 maxValue_ = max(maxValue_,
    \n+
    1442 eij /diagonal_ * eji/
    \n+
    1443 norm_(matrix_->operator[](col.index())[col.index()]));
    \n+
    1444 }
    \n+
    1445
    \n+
    1446 template<class M, class N>
    \n+
    1447 template<class G>
    \n+
    1448 inline void SymmetricDependency<M,N>::examine(G& graph, const typename G::EdgeIterator& edge, const ColIter& col)
    \n+
    1449 {
    \n+
    1450 real_type eij = norm_(*col);
    \n+
    1451 typename Matrix::ConstColIterator opposite_entry =
    \n+
    1452 matrix_->operator[](col.index()).find(row_);
    \n+
    1453
    \n+
    1454 if ( opposite_entry == matrix_->operator[](col.index()).end() )
    \n+
    1455 {
    \n+
    1456 // Consider this as a weak connection we disregard.
    \n+
    1457 return;
    \n+
    1458 }
    \n+
    1459 real_type eji = norm_(*opposite_entry);
    \n+
    1460 // skip positve offdiagonals if norm preserves sign of them.
    \n+
    1461 if(!N::is_sign_preserving || (eij<0 || eji<0))
    \n+
    1462 if(eji / norm_(matrix_->operator[](edge.target())[edge.target()]) *
    \n+
    1463 eij/ diagonal_ > alpha() * maxValue_) {
    \n+
    1464 edge.properties().setDepends();
    \n+
    1465 edge.properties().setInfluences();
    \n+
    1466 typename G::EdgeProperties& other = graph.getEdgeProperties(edge.target(), edge.source());
    \n+
    1467 other.setInfluences();
    \n+
    1468 other.setDepends();
    \n+
    1469 }
    \n+
    1470 }
    \n+
    1471
    \n+
    1472 template<class M, class N>
    \n+\n+
    1474 {
    \n+
    1475 return maxValue_ < beta();
    \n+
    1476 }
    \n+
    1477
    \n+
    1478
    \n+
    1479 template<class M, class N>
    \n+
    1480 inline void Dependency<M,N>::init(const Matrix* matrix)
    \n+
    1481 {
    \n+
    1482 matrix_ = matrix;
    \n+
    1483 }
    \n+
    1484
    \n+
    1485 template<class M, class N>
    \n+
    1486 inline void Dependency<M,N>::initRow([[maybe_unused]] const Row& row, int index)
    \n+
    1487 {
    \n+
    1488 using std::min;
    \n+
    1489 maxValue_ = min(- std::numeric_limits<real_type>::max(), std::numeric_limits<real_type>::min());
    \n+
    1490 row_ = index;
    \n+
    1491 diagonal_ = norm_(matrix_->operator[](row_)[row_]);
    \n+
    1492 }
    \n+
    1493
    \n+
    1494 template<class M, class N>
    \n+
    1495 inline void Dependency<M,N>::examine(const ColIter& col)
    \n+
    1496 {
    \n+
    1497 using std::max;
    \n+
    1498 maxValue_ = max(maxValue_, -norm_(*col));
    \n+
    1499 }
    \n+
    1500
    \n+
    1501 template<class M, class N>
    \n+
    1502 template<class G>
    \n+
    1503 inline void Dependency<M,N>::examine(G& graph, const typename G::EdgeIterator& edge, const ColIter& col)
    \n+
    1504 {
    \n+
    1505 if(-norm_(*col) >= maxValue_ * alpha()) {
    \n+
    1506 edge.properties().setDepends();
    \n+
    1507 typedef typename G::EdgeDescriptor ED;
    \n+
    1508 ED e= graph.findEdge(edge.target(), edge.source());
    \n+
    1509 if(e!=std::numeric_limits<ED>::max())
    \n+
    1510 {
    \n+
    1511 typename G::EdgeProperties& other = graph.getEdgeProperties(e);
    \n+
    1512 other.setInfluences();
    \n+
    1513 }
    \n+
    1514 }
    \n+
    1515 }
    \n+
    1516
    \n+
    1517 template<class M, class N>
    \n+
    1518 inline bool Dependency<M,N>::isIsolated()
    \n+
    1519 {
    \n+
    1520 return maxValue_ < beta() * diagonal_;
    \n+
    1521 }
    \n+
    1522
    \n+
    1523 template<class G,class S>
    \n+
    1524 Aggregate<G,S>::Aggregate(MatrixGraph& graph, AggregatesMap<Vertex>& aggregates,
    \n+
    1525 VertexSet& connected, std::vector<Vertex>& front)
    \n+
    1526 : vertices_(), id_(-1), graph_(graph), aggregates_(aggregates),
    \n+
    1527 connected_(connected), front_(front)
    \n+
    1528 {}
    \n+
    1529
    \n+
    1530 template<class G,class S>
    \n+
    1531 void Aggregate<G,S>::reconstruct(const Vertex& vertex)
    \n+
    1532 {
    \n+
    1533 /*
    \n+
    1534 vertices_.push_back(vertex);
    \n+
    1535 typedef typename VertexList::const_iterator iterator;
    \n+
    1536 iterator begin = vertices_.begin();
    \n+
    1537 iterator end = vertices_.end();*/
    \n+
    1538 throw "Not yet implemented";
    \n+
    1539
    \n+
    1540 // while(begin!=end){
    \n+
    1541 //for();
    \n+
    1542 // }
    \n+
    1543
    \n+
    1544 }
    \n+
    1545
    \n+
    1546 template<class G,class S>
    \n+
    1547 inline void Aggregate<G,S>::seed(const Vertex& vertex)
    \n+
    1548 {
    \n+
    1549 dvverb<<"Connected cleared"<<std::endl;
    \n+
    1550 connected_.clear();
    \n+
    1551 vertices_.clear();
    \n+
    1552 connected_.insert(vertex);
    \n+
    1553 dvverb << " Inserting "<<vertex<<" size="<<connected_.size();
    \n+
    1554 ++id_ ;
    \n+
    1555 add(vertex);
    \n+
    1556 }
    \n+
    1557
    \n+
    1558
    \n+
    1559 template<class G,class S>
    \n+
    1560 inline void Aggregate<G,S>::add(const Vertex& vertex)
    \n+
    1561 {
    \n+
    1562 vertices_.insert(vertex);
    \n+
    1563 aggregates_[vertex]=id_;
    \n+
    1564 if(front_.size())
    \n+
    1565 front_.erase(std::lower_bound(front_.begin(), front_.end(), vertex));
    \n+
    1566
    \n+
    1567
    \n+
    1568 typedef typename MatrixGraph::ConstEdgeIterator iterator;
    \n+
    1569 const iterator end = graph_.endEdges(vertex);
    \n+
    1570 for(iterator edge = graph_.beginEdges(vertex); edge != end; ++edge) {
    \n+
    1571 dvverb << " Inserting "<<aggregates_[edge.target()];
    \n+
    1572 connected_.insert(aggregates_[edge.target()]);
    \n+
    1573 dvverb <<" size="<<connected_.size();
    \n+
    1574 if(aggregates_[edge.target()]==AggregatesMap<Vertex>::UNAGGREGATED &&
    \n+
    1575 !graph_.getVertexProperties(edge.target()).front())
    \n+
    1576 {
    \n+
    1577 front_.push_back(edge.target());
    \n+
    1578 graph_.getVertexProperties(edge.target()).setFront();
    \n+
    1579 }
    \n+
    1580 }
    \n+
    1581 dvverb <<std::endl;
    \n+
    1582 std::sort(front_.begin(), front_.end());
    \n+
    1583 }
    \n+
    1584
    \n+
    1585 template<class G,class S>
    \n+
    1586 inline void Aggregate<G,S>::add(std::vector<Vertex>& vertices)
    \n+
    1587 {
    \n+
    1588#ifndef NDEBUG
    \n+
    1589 std::size_t oldsize = vertices_.size();
    \n+
    1590#endif
    \n+
    1591 typedef typename std::vector<Vertex>::iterator Iterator;
    \n+
    1592
    \n+
    1593 typedef typename VertexSet::iterator SIterator;
    \n+
    1594
    \n+
    1595 SIterator pos=vertices_.begin();
    \n+
    1596 std::vector<Vertex> newFront;
    \n+
    1597 newFront.reserve(front_.capacity());
    \n+
    1598
    \n+
    1599 std::set_difference(front_.begin(), front_.end(), vertices.begin(), vertices.end(),
    \n+
    1600 std::back_inserter(newFront));
    \n+
    1601 front_=newFront;
    \n+
    1602
    \n+
    1603 for(Iterator vertex=vertices.begin(); vertex != vertices.end(); ++vertex)
    \n+
    1604 {
    \n+
    1605 pos=vertices_.insert(pos,*vertex);
    \n+
    1606 vertices_.insert(*vertex);
    \n+
    1607 graph_.getVertexProperties(*vertex).resetFront(); // Not a front node any more.
    \n+
    1608 aggregates_[*vertex]=id_;
    \n+
    1609
    \n+
    1610 typedef typename MatrixGraph::ConstEdgeIterator iterator;
    \n+
    1611 const iterator end = graph_.endEdges(*vertex);
    \n+
    1612 for(iterator edge = graph_.beginEdges(*vertex); edge != end; ++edge) {
    \n+
    1613 dvverb << " Inserting "<<aggregates_[edge.target()];
    \n+
    1614 connected_.insert(aggregates_[edge.target()]);
    \n+
    1615 if(aggregates_[edge.target()]==AggregatesMap<Vertex>::UNAGGREGATED &&
    \n+
    1616 !graph_.getVertexProperties(edge.target()).front())
    \n+
    1617 {
    \n+
    1618 front_.push_back(edge.target());
    \n+
    1619 graph_.getVertexProperties(edge.target()).setFront();
    \n+
    1620 }
    \n+
    1621 dvverb <<" size="<<connected_.size();
    \n+
    1622 }
    \n+
    1623 dvverb <<std::endl;
    \n+
    1624 }
    \n+
    1625 std::sort(front_.begin(), front_.end());
    \n+
    1626 assert(oldsize+vertices.size()==vertices_.size());
    \n+
    1627 }
    \n+
    1628 template<class G,class S>
    \n+
    1629 inline void Aggregate<G,S>::clear()
    \n+
    1630 {
    \n+
    1631 vertices_.clear();
    \n+
    1632 connected_.clear();
    \n+
    1633 id_=-1;
    \n+
    1634 }
    \n+
    1635
    \n+
    1636 template<class G,class S>
    \n+
    1637 inline typename Aggregate<G,S>::VertexSet::size_type
    \n+\n+
    1639 {
    \n+
    1640 return vertices_.size();
    \n+
    1641 }
    \n+
    1642
    \n+
    1643 template<class G,class S>
    \n+
    1644 inline typename Aggregate<G,S>::VertexSet::size_type
    \n+\n+
    1646 {
    \n+
    1647 return connected_.size();
    \n+
    1648 }
    \n+
    1649
    \n+
    1650 template<class G,class S>
    \n+
    1651 inline int Aggregate<G,S>::id()
    \n+
    1652 {
    \n+
    1653 return id_;
    \n+
    1654 }
    \n+
    1655
    \n+
    1656 template<class G,class S>
    \n+\n+
    1658 {
    \n+
    1659 return vertices_.begin();
    \n+
    1660 }
    \n+
    1661
    \n+
    1662 template<class G,class S>
    \n+\n+
    1664 {
    \n+
    1665 return vertices_.end();
    \n+
    1666 }
    \n+
    1667
    \n+
    1668 template<class V>
    \n+
    1669 const V AggregatesMap<V>::UNAGGREGATED = std::numeric_limits<V>::max();
    \n+
    1670
    \n+
    1671 template<class V>
    \n+
    1672 const V AggregatesMap<V>::ISOLATED = std::numeric_limits<V>::max()-1;
    \n+
    1673
    \n+
    1674 template<class V>
    \n+\n+
    1676 : aggregates_(0)
    \n+
    1677 {}
    \n+
    1678
    \n+
    1679 template<class V>
    \n+\n+
    1681 {
    \n+
    1682 if(aggregates_!=0)
    \n+
    1683 delete[] aggregates_;
    \n+
    1684 }
    \n+
    1685
    \n+
    1686
    \n+
    1687 template<class V>
    \n+
    1688 inline AggregatesMap<V>::AggregatesMap(std::size_t noVertices)
    \n+
    1689 {
    \n+
    1690 allocate(noVertices);
    \n+
    1691 }
    \n+
    1692
    \n+
    1693 template<class V>
    \n+
    1694 inline std::size_t AggregatesMap<V>::noVertices() const
    \n+
    1695 {
    \n+
    1696 return noVertices_;
    \n+
    1697 }
    \n+
    1698
    \n+
    1699 template<class V>
    \n+
    1700 inline void AggregatesMap<V>::allocate(std::size_t noVertices)
    \n+
    1701 {
    \n+
    1702 aggregates_ = new AggregateDescriptor[noVertices];
    \n+
    1703 noVertices_ = noVertices;
    \n+
    1704
    \n+
    1705 for(std::size_t i=0; i < noVertices; i++)
    \n+
    1706 aggregates_[i]=UNAGGREGATED;
    \n+
    1707 }
    \n+
    1708
    \n+
    1709 template<class V>
    \n+
    1710 inline void AggregatesMap<V>::free()
    \n+
    1711 {
    \n+
    1712 assert(aggregates_ != 0);
    \n+
    1713 delete[] aggregates_;
    \n+
    1714 aggregates_=0;
    \n+
    1715 }
    \n+
    1716
    \n+
    1717 template<class V>
    \n+\n+
    1719 AggregatesMap<V>::operator[](const VertexDescriptor& v)
    \n+
    1720 {
    \n+
    1721 return aggregates_[v];
    \n+
    1722 }
    \n+
    1723
    \n+
    1724 template<class V>
    \n+
    1725 inline const typename AggregatesMap<V>::AggregateDescriptor&
    \n+
    1726 AggregatesMap<V>::operator[](const VertexDescriptor& v) const
    \n+
    1727 {
    \n+
    1728 return aggregates_[v];
    \n+
    1729 }
    \n+
    1730
    \n+
    1731 template<class V>
    \n+
    1732 template<bool reset, class G, class F,class VM>
    \n+
    1733 inline std::size_t AggregatesMap<V>::breadthFirstSearch(const V& start,
    \n+
    1734 const AggregateDescriptor& aggregate,
    \n+
    1735 const G& graph, F& aggregateVisitor,
    \n+
    1736 VM& visitedMap) const
    \n+
    1737 {
    \n+
    1738 VertexList vlist;
    \n+
    1739
    \n+
    1740 DummyEdgeVisitor dummy;
    \n+
    1741 return breadthFirstSearch<true,reset>(start, aggregate, graph, vlist, aggregateVisitor, dummy, visitedMap);
    \n+
    1742 }
    \n+
    1743
    \n+
    1744 template<class V>
    \n+
    1745 template<bool remove, bool reset, class G, class L, class F1, class F2, class VM>
    \n+
    1746 std::size_t AggregatesMap<V>::breadthFirstSearch(const V& start,
    \n+
    1747 const AggregateDescriptor& aggregate,
    \n+
    1748 const G& graph,
    \n+
    1749 L& visited,
    \n+
    1750 F1& aggregateVisitor,
    \n+
    1751 F2& nonAggregateVisitor,
    \n+
    1752 VM& visitedMap) const
    \n+
    1753 {
    \n+
    1754 typedef typename L::const_iterator ListIterator;
    \n+
    1755 int visitedSpheres = 0;
    \n+
    1756
    \n+
    1757 visited.push_back(start);
    \n+
    1758 put(visitedMap, start, true);
    \n+
    1759
    \n+
    1760 ListIterator current = visited.begin();
    \n+
    1761 ListIterator end = visited.end();
    \n+
    1762 std::size_t i=0, size=visited.size();
    \n+
    1763
    \n+
    1764 // visit the neighbours of all vertices of the
    \n+
    1765 // current sphere.
    \n+
    1766 while(current != end) {
    \n+
    1767
    \n+
    1768 for(; i<size; ++current, ++i) {
    \n+
    1769 typedef typename G::ConstEdgeIterator EdgeIterator;
    \n+
    1770 const EdgeIterator endEdge = graph.endEdges(*current);
    \n+
    1771
    \n+
    1772 for(EdgeIterator edge = graph.beginEdges(*current);
    \n+
    1773 edge != endEdge; ++edge) {
    \n+
    1774
    \n+
    1775 if(aggregates_[edge.target()]==aggregate) {
    \n+
    1776 if(!get(visitedMap, edge.target())) {
    \n+
    1777 put(visitedMap, edge.target(), true);
    \n+
    1778 visited.push_back(edge.target());
    \n+
    1779 aggregateVisitor(edge);
    \n+
    1780 }
    \n+
    1781 }else
    \n+
    1782 nonAggregateVisitor(edge);
    \n+
    1783 }
    \n+
    1784 }
    \n+
    1785 end = visited.end();
    \n+
    1786 size = visited.size();
    \n+
    1787 if(current != end)
    \n+
    1788 visitedSpheres++;
    \n+
    1789 }
    \n+
    1790
    \n+
    1791 if(reset)
    \n+
    1792 for(current = visited.begin(); current != end; ++current)
    \n+
    1793 put(visitedMap, *current, false);
    \n+
    1794
    \n+
    1795
    \n+
    1796 if(remove)
    \n+
    1797 visited.clear();
    \n+
    1798
    \n+
    1799 return visitedSpheres;
    \n+
    1800 }
    \n+
    1801
    \n+
    1802 template<class G>
    \n+\n+
    1804 : graph_(0), aggregate_(0), front_(), connected_(), size_(-1)
    \n+
    1805 {}
    \n+
    1806
    \n+
    1807 template<class G>
    \n+\n+
    1809 {
    \n+
    1810 size_=-1;
    \n+
    1811 }
    \n+
    1812
    \n+
    1813 template<class G, class C>
    \n+
    1814 void buildDependency(G& graph,
    \n+
    1815 const typename C::Matrix& matrix,
    \n+
    1816 C criterion, bool firstlevel)
    \n+
    1817 {
    \n+
    1818 // assert(graph.isBuilt());
    \n+
    1819 typedef typename C::Matrix Matrix;
    \n+
    1820 typedef typename G::VertexIterator VertexIterator;
    \n+
    1821
    \n+
    1822 criterion.init(&matrix);
    \n+
    1823
    \n+
    1824 for(VertexIterator vertex = graph.begin(); vertex != graph.end(); ++vertex) {
    \n+
    1825 typedef typename Matrix::row_type Row;
    \n+
    1826
    \n+
    1827 const Row& row = matrix[*vertex];
    \n+
    1828
    \n+
    1829 // Tell the criterion what row we will examine now
    \n+
    1830 // This might for example be used for calculating the
    \n+
    1831 // maximum offdiagonal value
    \n+
    1832 criterion.initRow(row, *vertex);
    \n+
    1833
    \n+
    1834 // On a first path all columns are examined. After this
    \n+
    1835 // the calculator should know whether the vertex is isolated.
    \n+
    1836 typedef typename Matrix::ConstColIterator ColIterator;
    \n+
    1837 ColIterator end = row.end();
    \n+
    1838 typename FieldTraits<typename Matrix::field_type>::real_type absoffdiag=0.;
    \n+
    1839
    \n+
    1840 using std::max;
    \n+
    1841 if(firstlevel) {
    \n+
    1842 for(ColIterator col = row.begin(); col != end; ++col)
    \n+
    1843 if(col.index()!=*vertex) {
    \n+
    1844 criterion.examine(col);
    \n+
    1845 absoffdiag = max(absoffdiag, Impl::asMatrix(*col).frobenius_norm());
    \n+
    1846 }
    \n+
    1847
    \n+
    1848 if(absoffdiag==0)
    \n+
    1849 vertex.properties().setExcludedBorder();
    \n+
    1850 }
    \n+
    1851 else
    \n+
    1852 for(ColIterator col = row.begin(); col != end; ++col)
    \n+
    1853 if(col.index()!=*vertex)
    \n+
    1854 criterion.examine(col);
    \n+
    1855
    \n+
    1856 // reset the vertex properties
    \n+
    1857 //vertex.properties().reset();
    \n+
    1858
    \n+
    1859 // Check whether the vertex is isolated.
    \n+
    1860 if(criterion.isIsolated()) {
    \n+
    1861 //std::cout<<"ISOLATED: "<<*vertex<<std::endl;
    \n+
    1862 vertex.properties().setIsolated();
    \n+
    1863 }else{
    \n+
    1864 // Examine all the edges beginning at this vertex.
    \n+
    1865 auto eEnd = vertex.end();
    \n+
    1866 auto col = matrix[*vertex].begin();
    \n+
    1867
    \n+
    1868 for(auto edge = vertex.begin(); edge!= eEnd; ++edge, ++col) {
    \n+
    1869 // Move to the right column.
    \n+
    1870 while(col.index()!=edge.target())
    \n+
    1871 ++col;
    \n+
    1872 criterion.examine(graph, edge, col);
    \n+
    1873 }
    \n+
    1874 }
    \n+
    1875
    \n+
    1876 }
    \n+
    1877 }
    \n+
    1878
    \n+
    1879
    \n+
    1880 template<class G>
    \n+
    1881 template<class V>
    \n+
    1882 inline Aggregator<G>::AggregateVisitor<V>::AggregateVisitor(const AggregatesMap<Vertex>& aggregates,
    \n+
    1883 const AggregateDescriptor& aggregate, V& visitor)
    \n+
    1884 : aggregates_(aggregates), aggregate_(aggregate), visitor_(&visitor)
    \n+
    1885 {}
    \n+
    1886
    \n+
    1887 template<class G>
    \n+
    1888 template<class V>
    \n+\n+
    1890 {
    \n+
    1891 if(aggregates_[edge.target()]==aggregate_)
    \n+
    1892 visitor_->operator()(edge);
    \n+
    1893 }
    \n+
    1894
    \n+
    1895 template<class G>
    \n+
    1896 template<class V>
    \n+
    1897 inline void Aggregator<G>::visitAggregateNeighbours(const Vertex& vertex,
    \n+
    1898 const AggregateDescriptor& aggregate,
    \n+
    1899 const AggregatesMap<Vertex>& aggregates,
    \n+
    1900 V& visitor) const
    \n+
    1901 {
    \n+
    1902 // Only evaluates for edge pointing to the aggregate
    \n+
    1903 AggregateVisitor<V> v(aggregates, aggregate, visitor);
    \n+
    1904 visitNeighbours(*graph_, vertex, v);
    \n+
    1905 }
    \n+
    1906
    \n+
    1907
    \n+
    1908 template<class G>
    \n+\n+
    1910 : count_(0)
    \n+
    1911 {}
    \n+
    1912
    \n+
    1913 template<class G>
    \n+\n+
    1915 {
    \n+
    1916 ++count_;
    \n+
    1917 }
    \n+
    1918
    \n+
    1919 template<class G>
    \n+\n+
    1921 {
    \n+
    1922 --count_;
    \n+
    1923 }
    \n+
    1924 template<class G>
    \n+\n+
    1926 {
    \n+
    1927 return count_;
    \n+
    1928 }
    \n+
    1929
    \n+
    1930 template<class G>
    \n+\n+
    1932 {
    \n+
    1933 if(edge.properties().isTwoWay())
    \n+\n+
    1935 }
    \n+
    1936
    \n+
    1937 template<class G>
    \n+
    1938 int Aggregator<G>::twoWayConnections(const Vertex& vertex, const AggregateDescriptor& aggregate,
    \n+
    1939 const AggregatesMap<Vertex>& aggregates) const
    \n+
    1940 {
    \n+
    1941 TwoWayCounter counter;
    \n+
    1942 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);
    \n+
    1943 return counter.value();
    \n+
    1944 }
    \n+
    1945
    \n+
    1946 template<class G>
    \n+
    1947 int Aggregator<G>::oneWayConnections(const Vertex& vertex, const AggregateDescriptor& aggregate,
    \n+
    1948 const AggregatesMap<Vertex>& aggregates) const
    \n+
    1949 {
    \n+
    1950 OneWayCounter counter;
    \n+
    1951 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);
    \n+
    1952 return counter.value();
    \n+
    1953 }
    \n+
    1954
    \n+
    1955 template<class G>
    \n+\n+
    1957 {
    \n+
    1958 if(edge.properties().isOneWay())
    \n+\n+
    1960 }
    \n+
    1961
    \n+
    1962 template<class G>
    \n+
    1963 inline Aggregator<G>::ConnectivityCounter::ConnectivityCounter(const VertexSet& connected,
    \n+
    1964 const AggregatesMap<Vertex>& aggregates)
    \n+
    1965 : Counter(), connected_(connected), aggregates_(aggregates)
    \n+
    1966 {}
    \n+
    1967
    \n+
    1968
    \n+
    1969 template<class G>
    \n+\n+
    1971 {
    \n+
    1972 if(connected_.find(aggregates_[edge.target()]) == connected_.end() || aggregates_[edge.target()]==AggregatesMap<Vertex>::UNAGGREGATED)
    \n+
    1973 // Would be a new connection
    \n+\n+
    1975 else{
    \n+\n+\n+
    1978 }
    \n+
    1979 }
    \n+
    1980
    \n+
    1981 template<class G>
    \n+
    1982 inline double Aggregator<G>::connectivity(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const
    \n+
    1983 {
    \n+
    1984 ConnectivityCounter counter(connected_, aggregates);
    \n+
    1985 double noNeighbours=visitNeighbours(*graph_, vertex, counter);
    \n+
    1986 return (double)counter.value()/noNeighbours;
    \n+
    1987 }
    \n+
    1988
    \n+
    1989 template<class G>
    \n+\n+
    1991 : Counter()
    \n+
    1992 {}
    \n+
    1993
    \n+
    1994 template<class G>
    \n+\n+
    1996 {
    \n+
    1997 if(edge.properties().depends())
    \n+\n+
    1999 if(edge.properties().influences())
    \n+\n+
    2001 }
    \n+
    2002
    \n+
    2003 template<class G>
    \n+
    2004 int Aggregator<G>::unusedNeighbours(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const
    \n+
    2005 {
    \n+
    2006 return aggregateNeighbours(vertex, AggregatesMap<Vertex>::UNAGGREGATED, aggregates);
    \n+
    2007 }
    \n+
    2008
    \n+
    2009 template<class G>
    \n+
    2010 std::pair<int,int> Aggregator<G>::neighbours(const Vertex& vertex,
    \n+
    2011 const AggregateDescriptor& aggregate,
    \n+
    2012 const AggregatesMap<Vertex>& aggregates) const
    \n+
    2013 {
    \n+
    2014 DependencyCounter unused, aggregated;
    \n+
    2015 typedef AggregateVisitor<DependencyCounter> CounterT;
    \n+
    2016 typedef std::tuple<CounterT,CounterT> CounterTuple;
    \n+
    2017 CombinedFunctor<CounterTuple> visitors(CounterTuple(CounterT(aggregates, AggregatesMap<Vertex>::UNAGGREGATED, unused), CounterT(aggregates, aggregate, aggregated)));
    \n+
    2018 visitNeighbours(*graph_, vertex, visitors);
    \n+
    2019 return std::make_pair(unused.value(), aggregated.value());
    \n+
    2020 }
    \n+
    2021
    \n+
    2022
    \n+
    2023 template<class G>
    \n+
    2024 int Aggregator<G>::aggregateNeighbours(const Vertex& vertex, const AggregateDescriptor& aggregate, const AggregatesMap<Vertex>& aggregates) const
    \n+
    2025 {
    \n+
    2026 DependencyCounter counter;
    \n+
    2027 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);
    \n+
    2028 return counter.value();
    \n+
    2029 }
    \n+
    2030
    \n+
    2031 template<class G>
    \n+
    2032 std::size_t Aggregator<G>::distance(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates)
    \n+
    2033 {
    \n+
    2034 return 0;
    \n+
    2035 typename PropertyMapTypeSelector<VertexVisitedTag,G>::Type visitedMap = get(VertexVisitedTag(), *graph_);
    \n+
    2036 VertexList vlist;
    \n+
    2037 typename AggregatesMap<Vertex>::DummyEdgeVisitor dummy;
    \n+
    2038 return aggregates.template breadthFirstSearch<true,true>(vertex,
    \n+
    2039 aggregate_->id(), *graph_,
    \n+
    2040 vlist, dummy, dummy, visitedMap);
    \n+
    2041 }
    \n+
    2042
    \n+
    2043 template<class G>
    \n+
    2044 inline Aggregator<G>::FrontMarker::FrontMarker(std::vector<Vertex>& front, MatrixGraph& graph)
    \n+
    2045 : front_(front), graph_(graph)
    \n+
    2046 {}
    \n+
    2047
    \n+
    2048 template<class G>
    \n+\n+
    2050 {
    \n+
    2051 Vertex target = edge.target();
    \n+
    2052
    \n+
    2053 if(!graph_.getVertexProperties(target).front()) {
    \n+
    2054 front_.push_back(target);
    \n+
    2055 graph_.getVertexProperties(target).setFront();
    \n+
    2056 }
    \n+
    2057 }
    \n+
    2058
    \n+
    2059 template<class G>
    \n+
    2060 inline bool Aggregator<G>::admissible(const Vertex& vertex, const AggregateDescriptor& aggregate, const AggregatesMap<Vertex>& aggregates) const
    \n+
    2061 {
    \n+
    2062 // Todo
    \n+
    2063 Dune::dvverb<<" Admissible not yet implemented!"<<std::endl;
    \n+
    2064 return true;
    \n+
    2065 //Situation 1: front node depends on two nodes. Then these
    \n+
    2066 // have to be strongly connected to each other
    \n+
    2067
    \n+
    2068 // Iterate over all all neighbours of front node
    \n+
    2069 typedef typename MatrixGraph::ConstEdgeIterator Iterator;
    \n+
    2070 Iterator vend = graph_->endEdges(vertex);
    \n+
    2071 for(Iterator edge = graph_->beginEdges(vertex); edge != vend; ++edge) {
    \n+
    2072 // if(edge.properties().depends() && !edge.properties().influences()
    \n+
    2073 if(edge.properties().isStrong()
    \n+
    2074 && aggregates[edge.target()]==aggregate)
    \n+
    2075 {
    \n+
    2076 // Search for another link to the aggregate
    \n+
    2077 Iterator edge1 = edge;
    \n+
    2078 for(++edge1; edge1 != vend; ++edge1) {
    \n+
    2079 //if(edge1.properties().depends() && !edge1.properties().influences()
    \n+
    2080 if(edge1.properties().isStrong()
    \n+
    2081 && aggregates[edge.target()]==aggregate)
    \n+
    2082 {
    \n+
    2083 //Search for an edge connecting the two vertices that is
    \n+
    2084 //strong
    \n+
    2085 bool found=false;
    \n+
    2086 Iterator v2end = graph_->endEdges(edge.target());
    \n+
    2087 for(Iterator edge2 = graph_->beginEdges(edge.target()); edge2 != v2end; ++edge2) {
    \n+
    2088 if(edge2.target()==edge1.target() &&
    \n+
    2089 edge2.properties().isStrong()) {
    \n+
    2090 found =true;
    \n+
    2091 break;
    \n+
    2092 }
    \n+
    2093 }
    \n+
    2094 if(found)
    \n+
    2095 {
    \n+
    2096 return true;
    \n+
    2097 }
    \n+
    2098 }
    \n+
    2099 }
    \n+
    2100 }
    \n+
    2101 }
    \n+
    2102
    \n+
    2103 // Situation 2: cluster node depends on front node and other cluster node
    \n+
    2105 vend = graph_->endEdges(vertex);
    \n+
    2106 for(Iterator edge = graph_->beginEdges(vertex); edge != vend; ++edge) {
    \n+
    2107 //if(!edge.properties().depends() && edge.properties().influences()
    \n+
    2108 if(edge.properties().isStrong()
    \n+
    2109 && aggregates[edge.target()]==aggregate)
    \n+
    2110 {
    \n+
    2111 // Search for a link from target that stays within the aggregate
    \n+
    2112 Iterator v1end = graph_->endEdges(edge.target());
    \n+
    2113
    \n+
    2114 for(Iterator edge1=graph_->beginEdges(edge.target()); edge1 != v1end; ++edge1) {
    \n+
    2115 //if(edge1.properties().depends() && !edge1.properties().influences()
    \n+
    2116 if(edge1.properties().isStrong()
    \n+
    2117 && aggregates[edge1.target()]==aggregate)
    \n+
    2118 {
    \n+
    2119 bool found=false;
    \n+
    2120 // Check if front node is also connected to this one
    \n+
    2121 Iterator v2end = graph_->endEdges(vertex);
    \n+
    2122 for(Iterator edge2 = graph_->beginEdges(vertex); edge2 != v2end; ++edge2) {
    \n+
    2123 if(edge2.target()==edge1.target()) {
    \n+
    2124 if(edge2.properties().isStrong())
    \n+
    2125 found=true;
    \n+
    2126 break;
    \n+
    2127 }
    \n+
    2128 }
    \n+
    2129 if(found)
    \n+
    2130 {
    \n+
    2131 return true;
    \n+
    2132 }
    \n+
    2133 }
    \n+
    2134 }
    \n+
    2135 }
    \n+
    2136 }
    \n+
    2137 return false;
    \n+
    2138 }
    \n+
    2139
    \n+
    2140 template<class G>
    \n+
    2141 void Aggregator<G>::unmarkFront()
    \n+
    2142 {
    \n+
    2143 typedef typename std::vector<Vertex>::const_iterator Iterator;
    \n+
    2144
    \n+
    2145 for(Iterator vertex=front_.begin(); vertex != front_.end(); ++vertex)
    \n+
    2146 graph_->getVertexProperties(*vertex).resetFront();
    \n+
    2147
    \n+
    2148 front_.clear();
    \n+
    2149 }
    \n+
    2150
    \n+
    2151 template<class G>
    \n+
    2152 inline void
    \n+
    2153 Aggregator<G>::nonisoNeighbourAggregate(const Vertex& vertex,
    \n+
    2154 const AggregatesMap<Vertex>& aggregates,
    \n+
    2155 SLList<Vertex>& neighbours) const
    \n+
    2156 {
    \n+
    2157 typedef typename MatrixGraph::ConstEdgeIterator Iterator;
    \n+
    2158 Iterator end=graph_->beginEdges(vertex);
    \n+
    2159 neighbours.clear();
    \n+
    2160
    \n+
    2161 for(Iterator edge=graph_->beginEdges(vertex); edge!=end; ++edge)
    \n+
    2162 {
    \n+
    2163 if(aggregates[edge.target()]!=AggregatesMap<Vertex>::UNAGGREGATED && graph_->getVertexProperties(edge.target()).isolated())
    \n+
    2164 neighbours.push_back(aggregates[edge.target()]);
    \n+
    2165 }
    \n+
    2166 }
    \n+
    2167
    \n+
    2168 template<class G>
    \n+
    2169 inline typename G::VertexDescriptor Aggregator<G>::mergeNeighbour(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const
    \n+
    2170 {
    \n+
    2171 typedef typename MatrixGraph::ConstEdgeIterator Iterator;
    \n+
    2172
    \n+
    2173 Iterator end = graph_->endEdges(vertex);
    \n+
    2174 for(Iterator edge = graph_->beginEdges(vertex); edge != end; ++edge) {
    \n+
    2175 if(aggregates[edge.target()] != AggregatesMap<Vertex>::UNAGGREGATED &&
    \n+
    2176 graph_->getVertexProperties(edge.target()).isolated() == graph_->getVertexProperties(edge.source()).isolated()) {
    \n+
    2177 if( graph_->getVertexProperties(vertex).isolated() ||
    \n+
    2178 ((edge.properties().depends() || edge.properties().influences())
    \n+
    2179 && admissible(vertex, aggregates[edge.target()], aggregates)))
    \n+
    2180 return edge.target();
    \n+
    2181 }
    \n+
    2182 }
    \n+
    2183 return AggregatesMap<Vertex>::UNAGGREGATED;
    \n+
    2184 }
    \n+
    2185
    \n+
    2186 template<class G>
    \n+\n+
    2188 : Counter(), graph_(graph)
    \n+
    2189 {}
    \n+
    2190
    \n+
    2191 template<class G>
    \n+\n+
    2193 {
    \n+
    2194 if(graph_.getVertexProperties(edge.target()).front())
    \n+\n+
    2196 }
    \n+
    2197
    \n+
    2198 template<class G>
    \n+
    2199 int Aggregator<G>::noFrontNeighbours(const Vertex& vertex) const
    \n+
    2200 {
    \n+
    2201 FrontNeighbourCounter counter(*graph_);
    \n+
    2202 visitNeighbours(*graph_, vertex, counter);
    \n+
    2203 return counter.value();
    \n+
    2204 }
    \n+
    2205 template<class G>
    \n+
    2206 inline bool Aggregator<G>::connected(const Vertex& vertex,
    \n+
    2207 const AggregateDescriptor& aggregate,
    \n+
    2208 const AggregatesMap<Vertex>& aggregates) const
    \n+
    2209 {
    \n+
    2210 typedef typename G::ConstEdgeIterator iterator;
    \n+
    2211 const iterator end = graph_->endEdges(vertex);
    \n+
    2212 for(iterator edge = graph_->beginEdges(vertex); edge != end; ++edge)
    \n+
    2213 if(aggregates[edge.target()]==aggregate)
    \n+
    2214 return true;
    \n+
    2215 return false;
    \n+
    2216 }
    \n+
    2217 template<class G>
    \n+
    2218 inline bool Aggregator<G>::connected(const Vertex& vertex,
    \n+
    2219 const SLList<AggregateDescriptor>& aggregateList,
    \n+
    2220 const AggregatesMap<Vertex>& aggregates) const
    \n+
    2221 {
    \n+
    2222 typedef typename SLList<AggregateDescriptor>::const_iterator Iter;
    \n+
    2223 for(Iter i=aggregateList.begin(); i!=aggregateList.end(); ++i)
    \n+
    2224 if(connected(vertex, *i, aggregates))
    \n+
    2225 return true;
    \n+
    2226 return false;
    \n+
    2227 }
    \n+
    2228
    \n+
    2229 template<class G>
    \n+
    2230 template<class C>
    \n+
    2231 void Aggregator<G>::growIsolatedAggregate(const Vertex& seed, const AggregatesMap<Vertex>& aggregates, const C& c)
    \n+
    2232 {
    \n+
    2233 SLList<Vertex> connectedAggregates;
    \n+
    2234 nonisoNeighbourAggregate(seed, aggregates,connectedAggregates);
    \n+
    2235
    \n+
    2236 while(aggregate_->size()< c.minAggregateSize() && aggregate_->connectSize() < c.maxConnectivity()) {
    \n+
    2237 double maxCon=-1;
    \n+
    2238 std::size_t maxFrontNeighbours=0;
    \n+
    2239
    \n+
    2240 Vertex candidate=AggregatesMap<Vertex>::UNAGGREGATED;
    \n+
    2241
    \n+
    2242 typedef typename std::vector<Vertex>::const_iterator Iterator;
    \n+
    2243
    \n+
    2244 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {
    \n+
    2245 if(distance(*vertex, aggregates)>c.maxDistance())
    \n+
    2246 continue; // distance of proposes aggregate too big
    \n+
    2247
    \n+
    2248 if(connectedAggregates.size()>0) {
    \n+
    2249 // there is already a neighbour cluster
    \n+
    2250 // front node must be connected to same neighbour cluster
    \n+
    2251
    \n+
    2252 if(!connected(*vertex, connectedAggregates, aggregates))
    \n+
    2253 continue;
    \n+
    2254 }
    \n+
    2255
    \n+
    2256 double con = connectivity(*vertex, aggregates);
    \n+
    2257
    \n+
    2258 if(con == maxCon) {
    \n+
    2259 std::size_t frontNeighbours = noFrontNeighbours(*vertex);
    \n+
    2260
    \n+
    2261 if(frontNeighbours >= maxFrontNeighbours) {
    \n+
    2262 maxFrontNeighbours = frontNeighbours;
    \n+
    2263 candidate = *vertex;
    \n+
    2264 }
    \n+
    2265 }else if(con > maxCon) {
    \n+
    2266 maxCon = con;
    \n+
    2267 maxFrontNeighbours = noFrontNeighbours(*vertex);
    \n+
    2268 candidate = *vertex;
    \n+
    2269 }
    \n+
    2270 }
    \n+
    2271
    \n+
    2272 if(candidate==AggregatesMap<Vertex>::UNAGGREGATED)
    \n+
    2273 break;
    \n+
    2274
    \n+
    2275 aggregate_->add(candidate);
    \n+
    2276 }
    \n+
    2277 }
    \n+
    2278
    \n+
    2279 template<class G>
    \n+
    2280 template<class C>
    \n+
    2281 void Aggregator<G>::growAggregate(const Vertex& seed, const AggregatesMap<Vertex>& aggregates, const C& c)
    \n+
    2282 {
    \n+
    2283 using std::min;
    \n+
    2284
    \n+
    2285 std::size_t distance_ =0;
    \n+
    2286 while(aggregate_->size() < c.minAggregateSize()&& distance_<c.maxDistance()) {
    \n+
    2287 int maxTwoCons=0, maxOneCons=0, maxNeighbours=-1;
    \n+
    2288 double maxCon=-1;
    \n+
    2289
    \n+
    2290 std::vector<Vertex> candidates;
    \n+
    2291 candidates.reserve(30);
    \n+
    2292
    \n+
    2293 typedef typename std::vector<Vertex>::const_iterator Iterator;
    \n+
    2294
    \n+
    2295 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {
    \n+
    2296 // Only nonisolated nodes are considered
    \n+
    2297 if(graph_->getVertexProperties(*vertex).isolated())
    \n+
    2298 continue;
    \n+
    2299
    \n+
    2300 int twoWayCons = twoWayConnections(*vertex, aggregate_->id(), aggregates);
    \n+
    2301
    \n+
    2302 /* The case of two way connections. */
    \n+
    2303 if( maxTwoCons == twoWayCons && twoWayCons > 0) {
    \n+
    2304 double con = connectivity(*vertex, aggregates);
    \n+
    2305
    \n+
    2306 if(con == maxCon) {
    \n+
    2307 int neighbours = noFrontNeighbours(*vertex);
    \n+
    2308
    \n+
    2309 if(neighbours > maxNeighbours) {
    \n+
    2310 maxNeighbours = neighbours;
    \n+
    2311 candidates.clear();
    \n+
    2312 candidates.push_back(*vertex);
    \n+
    2313 }else{
    \n+
    2314 candidates.push_back(*vertex);
    \n+
    2315 }
    \n+
    2316 }else if( con > maxCon) {
    \n+
    2317 maxCon = con;
    \n+
    2318 maxNeighbours = noFrontNeighbours(*vertex);
    \n+
    2319 candidates.clear();
    \n+
    2320 candidates.push_back(*vertex);
    \n+
    2321 }
    \n+
    2322 }else if(twoWayCons > maxTwoCons) {
    \n+
    2323 maxTwoCons = twoWayCons;
    \n+
    2324 maxCon = connectivity(*vertex, aggregates);
    \n+
    2325 maxNeighbours = noFrontNeighbours(*vertex);
    \n+
    2326 candidates.clear();
    \n+
    2327 candidates.push_back(*vertex);
    \n+
    2328
    \n+
    2329 // two way connections precede
    \n+
    2330 maxOneCons = std::numeric_limits<int>::max();
    \n+
    2331 }
    \n+
    2332
    \n+
    2333 if(twoWayCons > 0)
    \n+
    2334 {
    \n+
    2335 continue; // THis is a two-way node, skip tests for one way nodes
    \n+
    2336 }
    \n+
    2337
    \n+
    2338 /* The one way case */
    \n+
    2339 int oneWayCons = oneWayConnections(*vertex, aggregate_->id(), aggregates);
    \n+
    2340
    \n+
    2341 if(oneWayCons==0)
    \n+
    2342 continue; // No strong connections, skip the tests.
    \n+
    2343
    \n+
    2344 if(!admissible(*vertex, aggregate_->id(), aggregates))
    \n+
    2345 continue;
    \n+
    2346
    \n+
    2347 if( maxOneCons == oneWayCons && oneWayCons > 0) {
    \n+
    2348 double con = connectivity(*vertex, aggregates);
    \n+
    2349
    \n+
    2350 if(con == maxCon) {
    \n+
    2351 int neighbours = noFrontNeighbours(*vertex);
    \n+
    2352
    \n+
    2353 if(neighbours > maxNeighbours) {
    \n+
    2354 maxNeighbours = neighbours;
    \n+
    2355 candidates.clear();
    \n+
    2356 candidates.push_back(*vertex);
    \n+
    2357 }else{
    \n+
    2358 if(neighbours==maxNeighbours)
    \n+
    2359 {
    \n+
    2360 candidates.push_back(*vertex);
    \n+
    2361 }
    \n+
    2362 }
    \n+
    2363 }else if( con > maxCon) {
    \n+
    2364 maxCon = con;
    \n+
    2365 maxNeighbours = noFrontNeighbours(*vertex);
    \n+
    2366 candidates.clear();
    \n+
    2367 candidates.push_back(*vertex);
    \n+
    2368 }
    \n+
    2369 }else if(oneWayCons > maxOneCons) {
    \n+
    2370 maxOneCons = oneWayCons;
    \n+
    2371 maxCon = connectivity(*vertex, aggregates);
    \n+
    2372 maxNeighbours = noFrontNeighbours(*vertex);
    \n+
    2373 candidates.clear();
    \n+
    2374 candidates.push_back(*vertex);
    \n+
    2375 }
    \n+
    2376 }
    \n+
    2377
    \n+
    2378
    \n+
    2379 if(!candidates.size())
    \n+
    2380 break; // No more candidates found
    \n+
    2381 distance_=distance(seed, aggregates);
    \n+
    2382 candidates.resize(min(candidates.size(), c.maxAggregateSize()-
    \n+
    2383 aggregate_->size()));
    \n+
    2384 aggregate_->add(candidates);
    \n+
    2385 }
    \n+
    2386 }
    \n+
    2387
    \n+
    2388 template<typename V>
    \n+
    2389 template<typename M, typename G, typename C>
    \n+
    2390 std::tuple<int,int,int,int> AggregatesMap<V>::buildAggregates(const M& matrix, G& graph, const C& criterion,
    \n+
    2391 bool finestLevel)
    \n+
    2392 {
    \n+
    2393 Aggregator<G> aggregator;
    \n+
    2394 return aggregator.build(matrix, graph, *this, criterion, finestLevel);
    \n+
    2395 }
    \n+
    2396
    \n+
    2397 template<class G>
    \n+
    2398 template<class M, class C>
    \n+
    2399 std::tuple<int,int,int,int> Aggregator<G>::build(const M& m, G& graph, AggregatesMap<Vertex>& aggregates, const C& c,
    \n+
    2400 bool finestLevel)
    \n+
    2401 {
    \n+
    2402 using std::max;
    \n+
    2403 using std::min;
    \n+
    2404 // Stack for fast vertex access
    \n+
    2405 Stack stack_(graph, *this, aggregates);
    \n+
    2406
    \n+
    2407 graph_ = &graph;
    \n+
    2408
    \n+
    2409 aggregate_ = new Aggregate<G,VertexSet>(graph, aggregates, connected_, front_);
    \n+
    2410
    \n+
    2411 Timer watch;
    \n+
    2412 watch.reset();
    \n+
    2413
    \n+
    2414 buildDependency(graph, m, c, finestLevel);
    \n+
    2415
    \n+
    2416 dverb<<"Build dependency took "<< watch.elapsed()<<" seconds."<<std::endl;
    \n+
    2417 int noAggregates, conAggregates, isoAggregates, oneAggregates;
    \n+
    2418 std::size_t maxA=0, minA=1000000, avg=0;
    \n+
    2419 int skippedAggregates;
    \n+
    2420 noAggregates = conAggregates = isoAggregates = oneAggregates =
    \n+
    2421 skippedAggregates = 0;
    \n+
    2422
    \n+
    2423 while(true) {
    \n+
    2424 Vertex seed = stack_.pop();
    \n+
    2425
    \n+
    2426 if(seed == Stack::NullEntry)
    \n+
    2427 // No more unaggregated vertices. We are finished!
    \n+
    2428 break;
    \n+
    2429
    \n+
    2430 // Debugging output
    \n+
    2431 if((noAggregates+1)%10000 == 0)
    \n+
    2432 Dune::dverb<<"c";
    \n+
    2433 unmarkFront();
    \n+
    2434
    \n+
    2435 if(graph.getVertexProperties(seed).excludedBorder()) {
    \n+
    2436 aggregates[seed]=AggregatesMap<Vertex>::ISOLATED;
    \n+
    2437 ++skippedAggregates;
    \n+
    2438 continue;
    \n+
    2439 }
    \n+
    2440
    \n+
    2441 if(graph.getVertexProperties(seed).isolated()) {
    \n+
    2442 if(c.skipIsolated()) {
    \n+
    2443 // isolated vertices are not aggregated but skipped on the coarser levels.
    \n+
    2444 aggregates[seed]=AggregatesMap<Vertex>::ISOLATED;
    \n+
    2445 ++skippedAggregates;
    \n+
    2446 // skip rest as no agglomeration is done.
    \n+
    2447 continue;
    \n+
    2448 }else{
    \n+
    2449 aggregate_->seed(seed);
    \n+
    2450 growIsolatedAggregate(seed, aggregates, c);
    \n+
    2451 }
    \n+
    2452 }else{
    \n+
    2453 aggregate_->seed(seed);
    \n+
    2454 growAggregate(seed, aggregates, c);
    \n+
    2455 }
    \n+
    2456
    \n+
    2457 /* The rounding step. */
    \n+
    2458 while(!(graph.getVertexProperties(seed).isolated()) && aggregate_->size() < c.maxAggregateSize()) {
    \n+
    2459
    \n+
    2460 std::vector<Vertex> candidates;
    \n+
    2461 candidates.reserve(30);
    \n+
    2462
    \n+
    2463 typedef typename std::vector<Vertex>::const_iterator Iterator;
    \n+
    2464
    \n+
    2465 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {
    \n+
    2466
    \n+
    2467 if(graph.getVertexProperties(*vertex).isolated())
    \n+
    2468 continue; // No isolated nodes here
    \n+
    2469
    \n+
    2470 if(twoWayConnections( *vertex, aggregate_->id(), aggregates) == 0 &&
    \n+
    2471 (oneWayConnections( *vertex, aggregate_->id(), aggregates) == 0 ||
    \n+
    2472 !admissible( *vertex, aggregate_->id(), aggregates) ))
    \n+
    2473 continue;
    \n+
    2474
    \n+
    2475 std::pair<int,int> neighbourPair=neighbours(*vertex, aggregate_->id(),
    \n+
    2476 aggregates);
    \n+
    2477
    \n+
    2478 //if(aggregateNeighbours(*vertex, aggregate_->id(), aggregates) <= unusedNeighbours(*vertex, aggregates))
    \n+
    2479 // continue;
    \n+
    2480
    \n+
    2481 if(neighbourPair.first >= neighbourPair.second)
    \n+
    2482 continue;
    \n+
    2483
    \n+
    2484 if(distance(*vertex, aggregates) > c.maxDistance())
    \n+
    2485 continue; // Distance too far
    \n+
    2486 candidates.push_back(*vertex);
    \n+
    2487 break;
    \n+
    2488 }
    \n+
    2489
    \n+
    2490 if(!candidates.size()) break; // no more candidates found.
    \n+
    2491
    \n+
    2492 candidates.resize(min(candidates.size(), c.maxAggregateSize()-
    \n+
    2493 aggregate_->size()));
    \n+
    2494 aggregate_->add(candidates);
    \n+
    2495
    \n+
    2496 }
    \n+
    2497
    \n+
    2498 // try to merge aggregates consisting of only one nonisolated vertex with other aggregates
    \n+
    2499 if(aggregate_->size()==1 && c.maxAggregateSize()>1) {
    \n+
    2500 if(!graph.getVertexProperties(seed).isolated()) {
    \n+
    2501 Vertex mergedNeighbour = mergeNeighbour(seed, aggregates);
    \n+
    2502
    \n+
    2503 if(mergedNeighbour != AggregatesMap<Vertex>::UNAGGREGATED) {
    \n+
    2504 // assign vertex to the neighbouring cluster
    \n+
    2505 aggregates[seed] = aggregates[mergedNeighbour];
    \n+
    2506 aggregate_->invalidate();
    \n+
    2507 }else{
    \n+
    2508 ++avg;
    \n+
    2509 minA=min(minA,static_cast<std::size_t>(1));
    \n+
    2510 maxA=max(maxA,static_cast<std::size_t>(1));
    \n+
    2511 ++oneAggregates;
    \n+
    2512 ++conAggregates;
    \n+
    2513 }
    \n+
    2514 }else{
    \n+
    2515 ++avg;
    \n+
    2516 minA=min(minA,static_cast<std::size_t>(1));
    \n+
    2517 maxA=max(maxA,static_cast<std::size_t>(1));
    \n+
    2518 ++oneAggregates;
    \n+
    2519 ++isoAggregates;
    \n+
    2520 }
    \n+
    2521 ++avg;
    \n+
    2522 }else{
    \n+
    2523 avg+=aggregate_->size();
    \n+
    2524 minA=min(minA,aggregate_->size());
    \n+
    2525 maxA=max(maxA,aggregate_->size());
    \n+
    2526 if(graph.getVertexProperties(seed).isolated())
    \n+
    2527 ++isoAggregates;
    \n+
    2528 else
    \n+
    2529 ++conAggregates;
    \n+
    2530 }
    \n+
    2531
    \n+
    2532 }
    \n+
    2533
    \n+
    2534 Dune::dinfo<<"connected aggregates: "<<conAggregates;
    \n+
    2535 Dune::dinfo<<" isolated aggregates: "<<isoAggregates;
    \n+
    2536 if(conAggregates+isoAggregates>0)
    \n+
    2537 Dune::dinfo<<" one node aggregates: "<<oneAggregates<<" min size="
    \n+
    2538 <<minA<<" max size="<<maxA
    \n+
    2539 <<" avg="<<avg/(conAggregates+isoAggregates)<<std::endl;
    \n+
    2540
    \n+
    2541 delete aggregate_;
    \n+
    2542 return std::make_tuple(conAggregates+isoAggregates,isoAggregates,
    \n+
    2543 oneAggregates,skippedAggregates);
    \n+
    2544 }
    \n+
    2545
    \n+
    2546
    \n+
    2547 template<class G>
    \n+
    2548 Aggregator<G>::Stack::Stack(const MatrixGraph& graph, const Aggregator<G>& aggregatesBuilder,
    \n+
    2549 const AggregatesMap<Vertex>& aggregates)
    \n+
    2550 : graph_(graph), aggregatesBuilder_(aggregatesBuilder), aggregates_(aggregates), begin_(graph.begin()), end_(graph.end())
    \n+
    2551 {
    \n+
    2552 //vals_ = new Vertex[N];
    \n+
    2553 }
    \n+
    2554
    \n+
    2555 template<class G>
    \n+\n+
    2557 {
    \n+
    2558 //Dune::dverb << "Max stack size was "<<maxSize_<<" filled="<<filled_<<std::endl;
    \n+
    2559 //delete[] vals_;
    \n+
    2560 }
    \n+
    2561
    \n+
    2562 template<class G>
    \n+\n+
    2564 = std::numeric_limits<typename G::VertexDescriptor>::max();
    \n+
    2565
    \n+
    2566 template<class G>
    \n+
    2567 inline typename G::VertexDescriptor Aggregator<G>::Stack::pop()
    \n+
    2568 {
    \n+
    2569 for(; begin_!=end_ && aggregates_[*begin_] != AggregatesMap<Vertex>::UNAGGREGATED; ++begin_) ;
    \n+
    2570
    \n+
    2571 if(begin_!=end_)
    \n+
    2572 {
    \n+
    2573 typename G::VertexDescriptor current=*begin_;
    \n+
    2574 ++begin_;
    \n+
    2575 return current;
    \n+
    2576 }else
    \n+
    2577 return NullEntry;
    \n+
    2578 }
    \n+
    2579
    \n+
    2580#endif // DOXYGEN
    \n+
    2581
    \n+
    2582 template<class V>
    \n+
    \n+
    2583 void printAggregates2d(const AggregatesMap<V>& aggregates, int n, int m, std::ostream& os)
    \n+
    2584 {
    \n+
    2585 using std::max;
    \n+
    2586
    \n+
    2587 std::ios_base::fmtflags oldOpts=os.flags();
    \n+
    2588
    \n+
    2589 os.setf(std::ios_base::right, std::ios_base::adjustfield);
    \n+
    2590
    \n+
    2591 V maxVal=0;
    \n+
    2592 int width=1;
    \n+
    2593
    \n+
    2594 for(int i=0; i< n*m; i++)
    \n+
    2595 maxVal=max(maxVal, aggregates[i]);
    \n+
    2596
    \n+
    2597 for(int i=10; i < 1000000; i*=10)
    \n+
    2598 if(maxVal/i>0)
    \n+
    2599 width++;
    \n+
    2600 else
    \n+
    2601 break;
    \n+
    2602
    \n+
    2603 for(int j=0, entry=0; j < m; j++) {
    \n+
    2604 for(int i=0; i<n; i++, entry++) {
    \n+
    2605 os.width(width);
    \n+
    2606 os<<aggregates[entry]<<" ";
    \n+
    2607 }
    \n+
    2608
    \n+
    2609 os<<std::endl;
    \n+
    2610 }
    \n+
    2611 os<<std::endl;
    \n+
    2612 os.flags(oldOpts);
    \n+
    2613 }
    \n+
    \n+
    2614
    \n+
    2615
    \n+
    2616 } // namespace Amg
    \n+
    2617
    \n+
    2618} // namespace Dune
    \n+
    2619
    \n+
    2620
    \n+
    2621#endif
    \n+\n+
    Parameter classes for customizing AMG.
    \n+
    Provides classes for handling internal properties in a graph.
    \n+
    Provides classes for building the matrix graph.
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n+
    Matrix::ConstColIterator ColIter
    Constant column iterator of the matrix.
    Definition aggregates.hh:273
    \n+
    std::vector< real_type >::iterator valIter_
    Definition aggregates.hh:189
    \n+
    Matrix::ConstColIterator ColIter
    Constant column iterator of the matrix.
    Definition aggregates.hh:154
    \n+
    std::size_t breadthFirstSearch(const VertexDescriptor &start, const AggregateDescriptor &aggregate, const G &graph, L &visited, F1 &aggregateVisitor, F2 &nonAggregateVisitor, VM &visitedMap) const
    Breadth first search within an aggregate.
    \n+
    PoolAllocator< VertexDescriptor, 100 > Allocator
    The allocator we use for our lists and the set.
    Definition aggregates.hh:586
    \n+
    iterator begin()
    Definition aggregates.hh:737
    \n+
    int id()
    Get the id identifying the aggregate.
    \n+
    Norm norm_
    The functor for calculating the norm.
    Definition aggregates.hh:302
    \n+
    MatrixGraph::VertexDescriptor Vertex
    The vertex identifier.
    Definition aggregates.hh:920
    \n+
    AggregationCriterion()
    Constructor.
    Definition aggregates.hh:66
    \n+
    const Matrix * matrix_
    The matrix we work on.
    Definition aggregates.hh:357
    \n+
    auto operator()(const M &m, typename std::enable_if_t< Dune::IsNumber< M >::value > *sfinae=nullptr) const
    Compute the norm of a scalar.
    Definition aggregates.hh:406
    \n+
    void initRow(const Row &row, int index)
    \n+
    SymmetricMatrixDependency(const Parameters &parms)
    Definition aggregates.hh:168
    \n+
    M Matrix
    The matrix type we build the dependency of.
    Definition aggregates.hh:258
    \n+\n+
    G MatrixGraph
    The matrix graph type used.
    Definition aggregates.hh:915
    \n+
    Norm norm_
    The functor for calculating the norm.
    Definition aggregates.hh:363
    \n+
    void operator()(const EdgeIterator &edge) const
    Definition aggregates.hh:601
    \n+
    SymmetricCriterion()
    Definition aggregates.hh:524
    \n+
    Dependency()
    Definition aggregates.hh:290
    \n+
    void examine(const ColIter &col)
    \n+
    M Matrix
    The matrix type we build the dependency of.
    Definition aggregates.hh:319
    \n+
    real_type diagonal_
    The norm of the current diagonal.
    Definition aggregates.hh:187
    \n+
    N Norm
    The norm to use for examining the matrix entries.
    Definition aggregates.hh:263
    \n+
    iterator end()
    Definition aggregates.hh:742
    \n+
    UnSymmetricCriterion(const Parameters &parms)
    Definition aggregates.hh:541
    \n+
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n+
    void initRow(const Row &row, int index)
    Definition aggregates.hh:201
    \n+\n+
    static const Vertex NullEntry
    Definition aggregates.hh:1008
    \n+
    void examine(const ColIter &col)
    Definition aggregates.hh:214
    \n+
    Dependency(const Parameters &parms)
    Definition aggregates.hh:286
    \n+
    int row_
    index of the currently evaluated row.
    Definition aggregates.hh:185
    \n+
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n+
    std::tuple< int, int, int, int > build(const M &m, G &graph, AggregatesMap< Vertex > &aggregates, const C &c, bool finestLevel)
    Build the aggregates.
    \n+
    FrontNeighbourCounter(const MatrixGraph &front)
    Constructor.
    \n+
    Matrix::row_type Row
    Constant Row iterator of the matrix.
    Definition aggregates.hh:329
    \n+
    const Matrix * matrix_
    The matrix we work on.
    Definition aggregates.hh:296
    \n+
    const AggregateDescriptor & operator[](const VertexDescriptor &v) const
    Get the aggregate a vertex belongs to.
    \n+
    void examine(G &graph, const typename G::EdgeIterator &edge, const ColIter &col)
    \n+
    AggregateVisitor(const AggregatesMap< Vertex > &aggregates, const AggregateDescriptor &aggregate, Visitor &visitor)
    Constructor.
    \n+
    Matrix::ConstColIterator ColIter
    Constant column iterator of the matrix.
    Definition aggregates.hh:334
    \n+
    ~AggregatesMap()
    Destructor.
    \n+
    Matrix::field_type field_type
    The current max value.
    Definition aggregates.hh:179
    \n+
    void decrement()
    Decrement counter.
    \n+
    Aggregate(MatrixGraph &graph, AggregatesMap< Vertex > &aggregates, VertexSet &connectivity, std::vector< Vertex > &front_)
    Constructor.
    \n+
    V Visitor
    The type of the adapted visitor.
    Definition aggregates.hh:1064
    \n+
    std::size_t * SphereMap
    Type of the mapping of aggregate members onto distance spheres.
    Definition aggregates.hh:809
    \n+
    AggregationCriterion(const Parameters &parms)
    Definition aggregates.hh:70
    \n+
    Matrix::row_type Row
    Constant Row iterator of the matrix.
    Definition aggregates.hh:268
    \n+
    VertexSet::size_type connectSize()
    Get tne number of connections to other aggregates.
    \n+
    std::vector< real_type > vals_
    Definition aggregates.hh:188
    \n+
    N Norm
    The norm to use for examining the matrix entries.
    Definition aggregates.hh:324
    \n+
    void printAggregates2d(const AggregatesMap< V > &aggregates, int n, int m, std::ostream &os)
    Definition aggregates.hh:2583
    \n+
    void invalidate()
    Definition aggregates.hh:822
    \n+
    const_iterator begin() const
    Definition aggregates.hh:725
    \n+
    real_type maxValue_
    Definition aggregates.hh:181
    \n+
    Norm norm_
    The functor for calculating the norm.
    Definition aggregates.hh:183
    \n+
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n+
    VertexSet::const_iterator const_iterator
    Const iterator over a vertex list.
    Definition aggregates.hh:804
    \n+
    SymmetricCriterion(const Parameters &parms)
    Definition aggregates.hh:521
    \n+
    MatrixGraph::VertexDescriptor AggregateDescriptor
    The type of the aggregate descriptor.
    Definition aggregates.hh:923
    \n+
    real_type maxValue_
    Definition aggregates.hh:361
    \n+
    void init(const Matrix *matrix)
    Definition aggregates.hh:195
    \n+
    real_type diagonal_
    The norm of the current diagonal.
    Definition aggregates.hh:367
    \n+
    AggregateDescriptor * iterator
    Definition aggregates.hh:735
    \n+
    SymmetricDependency(const Parameters &parms)
    Definition aggregates.hh:348
    \n+
    FieldTraits< field_type >::real_type real_type
    Definition aggregates.hh:360
    \n+
    ~Aggregator()
    Destructor.
    \n+
    void examine(G &graph, const typename G::EdgeIterator &edge, const ColIter &col)
    \n+
    void add(const Vertex &vertex)
    Add a vertex to the aggregate.
    \n+
    T DependencyPolicy
    The policy for calculating the dependency graph.
    Definition aggregates.hh:55
    \n+
    void add(std::vector< Vertex > &vertex)
    \n+
    void examine(const ColIter &col)
    \n+
    Aggregator()
    Constructor.
    \n+
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    Examine an edge.
    \n+
    FrontMarker(std::vector< Vertex > &front, MatrixGraph &graph)
    Constructor.
    \n+
    FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const
    compute the norm of a matrix.
    Definition aggregates.hh:506
    \n+
    void init(const Matrix *matrix)
    \n+
    int visitNeighbours(const G &graph, const typename G::VertexDescriptor &vertex, V &visitor)
    Visit all neighbour vertices of a vertex in a graph.
    \n+
    void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)
    Sets reasonable default values for an isotropic problem.
    Definition aggregates.hh:82
    \n+
    const_iterator end() const
    Definition aggregates.hh:730
    \n+
    V AggregateDescriptor
    The aggregate descriptor type.
    Definition aggregates.hh:580
    \n+
    static const V ISOLATED
    Identifier of isolated vertices.
    Definition aggregates.hh:571
    \n+
    int row_
    index of the currently evaluated row.
    Definition aggregates.hh:365
    \n+
    SymmetricMatrixDependency()
    Definition aggregates.hh:171
    \n+\n+\n+
    real_type diagonal_
    The norm of the current diagonal.
    Definition aggregates.hh:306
    \n+
    std::size_t noVertices() const
    Get the number of vertices.
    \n+
    void setDefaultValuesAnisotropic(std::size_t dim, std::size_t diameter=2)
    Sets reasonable default values for an aisotropic problem.
    Definition aggregates.hh:105
    \n+
    AggregatesMap(std::size_t noVertices)
    Constructs with allocating memory.
    \n+
    Matrix::field_type field_type
    The current max value.
    Definition aggregates.hh:359
    \n+
    AggregateDescriptor & operator[](const VertexDescriptor &v)
    Get the aggregate a vertex belongs to.
    \n+
    AggregatesMap()
    Constructs without allocating memory.
    \n+
    int value()
    Access the current count.
    \n+
    SLList< VertexDescriptor, Allocator > VertexList
    The type of a single linked list of vertex descriptors.
    Definition aggregates.hh:592
    \n+\n+
    ConnectivityCounter(const VertexSet &connected, const AggregatesMap< Vertex > &aggregates)
    Constructor.
    \n+
    VertexSet::size_type size()
    Get the size of the aggregate.
    \n+
    const_iterator end() const
    get an iterator over the vertices of the aggregate.
    \n+
    void init(const Matrix *matrix)
    \n+
    UnSymmetricCriterion()
    Definition aggregates.hh:544
    \n+
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n+
    const AggregateDescriptor * const_iterator
    Definition aggregates.hh:723
    \n+
    int row_
    index of the currently evaluated row.
    Definition aggregates.hh:304
    \n+
    Stack(const MatrixGraph &graph, const Aggregator< G > &aggregatesBuilder, const AggregatesMap< Vertex > &aggregates)
    \n+
    FieldTraits< field_type >::real_type real_type
    Definition aggregates.hh:180
    \n+
    void initRow(const Row &row, int index)
    \n+
    M Matrix
    The matrix type we build the dependency of.
    Definition aggregates.hh:139
    \n+
    FieldTraits< field_type >::real_type real_type
    Definition aggregates.hh:299
    \n+
    const Matrix * matrix_
    The matrix we work on.
    Definition aggregates.hh:177
    \n+
    S VertexSet
    The type of a single linked list of vertex descriptors.
    Definition aggregates.hh:801
    \n+
    FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const
    compute the norm of a matrix.
    Definition aggregates.hh:490
    \n+
    static const V UNAGGREGATED
    Identifier of not yet aggregated vertices.
    Definition aggregates.hh:566
    \n+
    std::size_t breadthFirstSearch(const VertexDescriptor &start, const AggregateDescriptor &aggregate, const G &graph, F &aggregateVisitor, VM &visitedMap) const
    Breadth first search within an aggregate.
    \n+
    Matrix::field_type field_type
    The current max value.
    Definition aggregates.hh:298
    \n+
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n+
    std::ostream & operator<<(std::ostream &os, const AggregationCriterion< T > &criterion)
    Definition aggregates.hh:113
    \n+
    bool isIsolated()
    Definition aggregates.hh:240
    \n+
    void allocate(std::size_t noVertices)
    Allocate memory for holding the information.
    \n+
    N Norm
    The norm to use for examining the matrix entries.
    Definition aggregates.hh:144
    \n+
    FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const
    compute the norm of a matrix.
    Definition aggregates.hh:473
    \n+
    void reconstruct(const Vertex &vertex)
    Reconstruct the aggregat from an seed node.
    \n+
    const_iterator begin() const
    get an iterator over the vertices of the aggregate.
    \n+
    FieldTraits< typenameM::field_type >::real_type operator()(const M &m, typename std::enable_if_t<!Dune::IsNumber< M >::value > *sfinae=nullptr) const
    compute the norm of a matrix.
    Definition aggregates.hh:390
    \n+
    MatrixGraph::VertexDescriptor Vertex
    The vertex descriptor type.
    Definition aggregates.hh:789
    \n+
    void seed(const Vertex &vertex)
    Initialize the aggregate with one vertex.
    \n+\n+
    SymmetricDependency()
    Definition aggregates.hh:351
    \n+
    void clear()
    Clear the aggregate.
    \n+
    void free()
    Free the allocated memory.
    \n+
    void increment()
    Increment counter.
    \n+
    void buildDependency(G &graph, const typename C::Matrix &matrix, C criterion, bool finestLevel)
    Build the dependency of the matrix graph.
    \n+
    V VertexDescriptor
    The vertex descriptor type.
    Definition aggregates.hh:575
    \n+
    real_type maxValue_
    Definition aggregates.hh:300
    \n+
    std::tuple< int, int, int, int > buildAggregates(const M &matrix, G &graph, const C &criterion, bool finestLevel)
    Build the aggregates.
    \n+
    Matrix::row_type Row
    Constant Row iterator of the matrix.
    Definition aggregates.hh:149
    \n+
    PoolAllocator< Vertex, 100 > Allocator
    The allocator we use for our lists and the set.
    Definition aggregates.hh:795
    \n+
    G MatrixGraph
    Definition aggregates.hh:785
    \n+
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n+
    @ is_sign_preserving
    Definition aggregates.hh:483
    \n+
    @ is_sign_preserving
    Definition aggregates.hh:382
    \n+
    @ is_sign_preserving
    Definition aggregates.hh:499
    \n+
    @ is_sign_preserving
    Definition aggregates.hh:466
    \n
    Definition allocator.hh:11
    \n-
    Parameters needed to check whether a node depends on another.
    Definition parameters.hh:31
    \n-
    Parameters needed for the aggregation process.
    Definition parameters.hh:84
    \n-
    Parameters for the complete coarsening process.
    Definition parameters.hh:258
    \n+
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n+
    typename Imp::BlockTraits< T >::field_type field_type
    Export the type representing the underlying field.
    Definition matrix.hh:565
    \n+
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n+
    MatrixImp::DenseMatrixBase< T, A >::window_type row_type
    The type implementing a matrix row.
    Definition matrix.hh:574
    \n+
    Base class of all aggregation criterions.
    Definition aggregates.hh:49
    \n+
    Dependency policy for symmetric matrices.
    Definition aggregates.hh:134
    \n+
    Dependency policy for symmetric matrices.
    Definition aggregates.hh:253
    \n+
    Dependency policy for symmetric matrices.
    Definition aggregates.hh:314
    \n+
    Norm that uses only the [N][N] entry of the block to determine couplings.
    Definition aggregates.hh:379
    \n+
    Norm that uses only the [0][0] entry of the block to determine couplings.
    Definition aggregates.hh:455
    \n+
    Functor using the row sum (infinity) norm to determine strong couplings.
    Definition aggregates.hh:463
    \n+
    Definition aggregates.hh:480
    \n+
    Definition aggregates.hh:496
    \n+
    Criterion taking advantage of symmetric matrices.
    Definition aggregates.hh:519
    \n+
    Criterion suitable for unsymmetric matrices.
    Definition aggregates.hh:539
    \n+
    Class for building the aggregates.
    Definition aggregates.hh:909
    \n+
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n+
    A Dummy visitor that does nothing for each visited edge.
    Definition aggregates.hh:598
    \n+
    A class for temporarily storing the vertices of an aggregate in.
    Definition aggregates.hh:778
    \n+
    M::size_type VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:73
    \n+
    EdgeIteratorT< const MatrixGraph< Matrix > > ConstEdgeIterator
    The constant edge iterator type.
    Definition graph.hh:298
    \n+
    Iterator over all edges starting from a vertex.
    Definition graph.hh:95
    \n+
    The vertex iterator type of the graph.
    Definition graph.hh:209
    \n
    All parameters for AMG.
    Definition parameters.hh:393
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,462 +1,2654 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-parameters.hh\n+aggregates.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_PARAMETERS_HH\n-6#define DUNE_AMG_PARAMETERS_HH\n+5#ifndef DUNE_AMG_AGGREGATES_HH\n+6#define DUNE_AMG_AGGREGATES_HH\n 7\n-8#include \n-9\n-10namespace _\bD_\bu_\bn_\be\n-11{\n-12 namespace Amg\n-13 {\n-_\b3_\b0 class _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-31 {\n-32 public:\n-_\b3_\b4 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs()\n-35 : alpha_(1.0/3.0), beta_(1.0E-5)\n-36 {}\n-37\n-_\b4_\b2 void _\bs_\be_\bt_\bB_\be_\bt_\ba(double b)\n-43 {\n-44 beta_ = b;\n-45 }\n-46\n-_\b5_\b2 double _\bb_\be_\bt_\ba() const\n-53 {\n-54 return beta_;\n-55 }\n+8\n+9#include \"_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b._\bh_\bh\"\n+10#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n+11#include \"_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b._\bh_\bh\"\n+12#include \"_\bc_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bf_\bu_\bn_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+13\n+14#include \n+15#include \n+16#include \n+17#include \n+18#include \n+19#include \n+20\n+21#include \n+22#include \n+23#include \n+24#include \n+25#include \n+26#include \n+27#include \n+28\n+29namespace _\bD_\bu_\bn_\be\n+30{\n+31 namespace Amg\n+32 {\n+33\n+47 template\n+_\b4_\b8 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn : public T\n+49 {\n+50\n+51 public:\n+_\b5_\b5 typedef T _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\bo_\bl_\bi_\bc_\by;\n 56\n-_\b6_\b1 void _\bs_\be_\bt_\bA_\bl_\bp_\bh_\ba(double a)\n-62 {\n-63 alpha_ = a;\n-64 }\n-65\n-_\b7_\b0 double _\ba_\bl_\bp_\bh_\ba() const\n-71 {\n-72 return alpha_;\n-73 }\n-74\n-75 private:\n-76 double alpha_, beta_;\n-77 };\n-78\n-_\b8_\b2 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs :\n-83 public _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-84 {\n-85 public:\n-_\b9_\b5 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs()\n-96 : maxDistance_(2), minAggregateSize_(4), maxAggregateSize_(6),\n-97 connectivity_(15), skipiso_(false)\n-98 {}\n-99\n-_\b1_\b0_\b9 void _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(std::size_t dim, std::size_t diameter=2)\n-110 {\n-111 maxDistance_=diameter-1;\n-112 std::size_t csize=1;\n-113\n-114 for(; dim>0; dim--) {\n-115 csize*=diameter;\n-116 maxDistance_+=diameter-1;\n-117 }\n-118 minAggregateSize_=csize;\n-119 maxAggregateSize_=static_cast(csize*1.5);\n-120 }\n-121\n-_\b1_\b3_\b2 void _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bA_\bn_\bi_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(std::size_t dim,std::size_t diameter=2)\n-133 {\n-134 _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(dim, diameter);\n-135 maxDistance_+=dim-1;\n-136 }\n-_\b1_\b4_\b4 std::size_t _\bm_\ba_\bx_\bD_\bi_\bs_\bt_\ba_\bn_\bc_\be() const { return maxDistance_;}\n+_\b6_\b6 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn()\n+67 : T()\n+68 {}\n+69\n+_\b7_\b0 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n+71 : T(parms)\n+72 {}\n+_\b8_\b2 void _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(std::size_t dim, std::size_t diameter=2)\n+83 {\n+84 this->setMaxDistance(diameter-1);\n+85 std::size_t csize=1;\n+86\n+87 for(; dim>0; dim--) {\n+88 csize*=diameter;\n+89 this->setMaxDistance(this->maxDistance()+diameter-1);\n+90 }\n+91 this->setMinAggregateSize(csize);\n+92 this->setMaxAggregateSize(static_cast(csize*1.5));\n+93 }\n+94\n+_\b1_\b0_\b5 void _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bA_\bn_\bi_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(std::size_t dim,std::size_t diameter=2)\n+106 {\n+107 _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(dim, diameter);\n+108 this->setMaxDistance(this->maxDistance()+dim-1);\n+109 }\n+110 };\n+111\n+112 template\n+_\b1_\b1_\b3 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\bT_\b>&\n+criterion)\n+114 {\n+115 os<<\"{ maxdistance=\"<\n+_\b1_\b3_\b3 class _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by : public _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+134 {\n+135 public:\n+_\b1_\b3_\b9 typedef M _\bM_\ba_\bt_\br_\bi_\bx;\n+140\n+_\b1_\b4_\b4 typedef N _\bN_\bo_\br_\bm;\n 145\n-_\b1_\b5_\b4 void _\bs_\be_\bt_\bM_\ba_\bx_\bD_\bi_\bs_\bt_\ba_\bn_\bc_\be(std::size_t distance) { maxDistance_ = distance;}\n+_\b1_\b4_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bR_\bo_\bw;\n+150\n+_\b1_\b5_\b4 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bl_\bI_\bt_\be_\br;\n 155\n-_\b1_\b6_\b1 bool _\bs_\bk_\bi_\bp_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd() const\n-162 {\n-163 return skipiso_;\n-164 }\n-165\n-_\b1_\b7_\b1 void _\bs_\be_\bt_\bS_\bk_\bi_\bp_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd(bool skip)\n-172 {\n-173 skipiso_=skip;\n-174 }\n-175\n-_\b1_\b8_\b0 std::size_t _\bm_\bi_\bn_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be() const { return minAggregateSize_;}\n-181\n-_\b1_\b8_\b8 void _\bs_\be_\bt_\bM_\bi_\bn_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be(std::size_t size){ minAggregateSize_=size;}\n-189\n-_\b1_\b9_\b4 std::size_t _\bm_\ba_\bx_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be() const { return maxAggregateSize_;}\n-195\n-_\b2_\b0_\b2 void _\bs_\be_\bt_\bM_\ba_\bx_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be(std::size_t size){ maxAggregateSize_ = size;}\n-203\n-_\b2_\b1_\b1 std::size_t _\bm_\ba_\bx_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by() const { return connectivity_;}\n+156 void _\bi_\bn_\bi_\bt(const _\bM_\ba_\bt_\br_\bi_\bx* matrix);\n+157\n+158 void _\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int index);\n+159\n+160 void _\be_\bx_\ba_\bm_\bi_\bn_\be(const _\bC_\bo_\bl_\bI_\bt_\be_\br& _\bc_\bo_\bl);\n+161\n+162 template\n+163 void _\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph, const typename G::EdgeIterator& edge, const _\bC_\bo_\bl_\bI_\bt_\be_\br&\n+_\bc_\bo_\bl);\n+164\n+165 bool _\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd();\n+166\n+167\n+_\b1_\b6_\b8 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n+169 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(parms)\n+170 {}\n+_\b1_\b7_\b1 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by()\n+172 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs()\n+173 {}\n+174\n+175 protected:\n+_\b1_\b7_\b7 const _\bM_\ba_\bt_\br_\bi_\bx* _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n+_\b1_\b7_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b1_\b8_\b0 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+_\b1_\b8_\b1 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_;\n+_\b1_\b8_\b3 _\bN_\bo_\br_\bm _\bn_\bo_\br_\bm_\b_;\n+_\b1_\b8_\b5 int _\br_\bo_\bw_\b_;\n+_\b1_\b8_\b7 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_;\n+_\b1_\b8_\b8 std::vector _\bv_\ba_\bl_\bs_\b_;\n+_\b1_\b8_\b9 typename std::vector::iterator _\bv_\ba_\bl_\bI_\bt_\be_\br_\b_;\n+190\n+191 };\n+192\n+193\n+194 template\n+_\b1_\b9_\b5 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt(const _\bM_\ba_\bt_\br_\bi_\bx* matrix)\n+196 {\n+197 matrix_ = matrix;\n+198 }\n+199\n+200 template\n+_\b2_\b0_\b1 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int\n+index)\n+202 {\n+203 using std::min;\n+204 vals_.assign(row.size(), 0.0);\n+205 assert(vals_.size()==row.size());\n+206 valIter_=vals_.begin();\n+207\n+208 maxValue_ = min(- std::numeric_limits::max(), std::\n+numeric_limits::min());\n+209 diagonal_=norm_(row[index]);\n+210 row_ = index;\n+211 }\n 212\n-_\b2_\b2_\b0 void _\bs_\be_\bt_\bM_\ba_\bx_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(std::size_t connectivity){ connectivity_ =\n-connectivity;}\n-221\n-222 private:\n-223 std::size_t maxDistance_, minAggregateSize_, maxAggregateSize_,\n-connectivity_;\n-224 bool skipiso_;\n-225\n-226 };\n+213 template\n+_\b2_\b1_\b4 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(const _\bC_\bo_\bl_\bI_\bt_\be_\br& _\bc_\bo_\bl)\n+215 {\n+216 using std::max;\n+217 // skip positive offdiagonals if norm preserves sign of them.\n+218 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be eij = norm_(*_\bc_\bo_\bl);\n+219 if(!N::is_sign_preserving || eij<0) // || eji<0)\n+220 {\n+221 *valIter_ = eij/diagonal_*eij/norm_(matrix_->operator[](_\bc_\bo_\bl.index())\n+[_\bc_\bo_\bl.index()]);\n+222 maxValue_ = max(maxValue_, *valIter_);\n+223 }else\n+224 *valIter_ =0;\n+225 ++valIter_;\n+226 }\n 227\n-228\n-_\b2_\b3_\b2 enum _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be {\n-_\b2_\b3_\b8 _\bn_\bo_\bA_\bc_\bc_\bu = 0,\n-_\b2_\b4_\b4 _\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu=1,\n-248 _\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu=2\n-_\b2_\b4_\b9 };\n-250\n-251\n-252\n-253\n-_\b2_\b5_\b7 class _\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs : public _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-258 {\n-259 public:\n-_\b2_\b6_\b3 void _\bs_\be_\bt_\bM_\ba_\bx_\bL_\be_\bv_\be_\bl(int l)\n-264 {\n-265 maxLevel_ = l;\n-266 }\n-_\b2_\b7_\b0 int _\bm_\ba_\bx_\bL_\be_\bv_\be_\bl() const\n-271 {\n-272 return maxLevel_;\n-273 }\n+228 template\n+229 template\n+_\b2_\b3_\b0 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(G&, const typename G::\n+EdgeIterator& edge, const _\bC_\bo_\bl_\bI_\bt_\be_\br&)\n+231 {\n+232 if(*valIter_ > alpha() * maxValue_) {\n+233 edge.properties().setDepends();\n+234 edge.properties().setInfluences();\n+235 }\n+236 ++valIter_;\n+237 }\n+238\n+239 template\n+_\b2_\b4_\b0 inline bool _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd()\n+241 {\n+242 if(diagonal_==0)\n+243 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"No diagonal entry for row \"<\n+_\b2_\b5_\b2 class _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by : public _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+253 {\n+254 public:\n+_\b2_\b5_\b8 typedef M _\bM_\ba_\bt_\br_\bi_\bx;\n+259\n+_\b2_\b6_\b3 typedef N _\bN_\bo_\br_\bm;\n+264\n+_\b2_\b6_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bR_\bo_\bw;\n+269\n+_\b2_\b7_\b3 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bl_\bI_\bt_\be_\br;\n 274\n-_\b2_\b7_\b8 void _\bs_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt(int nodes)\n-279 {\n-280 coarsenTarget_ = nodes;\n-281 }\n-282\n-_\b2_\b8_\b6 int _\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt() const\n-287 {\n-288 return coarsenTarget_;\n-289 }\n-290\n-_\b2_\b9_\b6 void _\bs_\be_\bt_\bM_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be(double rate)\n-297 {\n-298 minCoarsenRate_ = rate;\n-299 }\n-300\n-_\b3_\b0_\b4 double _\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be() const\n-305 {\n-306 return minCoarsenRate_;\n-307 }\n+_\b2_\b7_\b5 void _\bi_\bn_\bi_\bt(const _\bM_\ba_\bt_\br_\bi_\bx* matrix);\n+276\n+_\b2_\b7_\b7 void _\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int index);\n+278\n+_\b2_\b7_\b9 void _\be_\bx_\ba_\bm_\bi_\bn_\be(const _\bC_\bo_\bl_\bI_\bt_\be_\br& _\bc_\bo_\bl);\n+280\n+281 template\n+_\b2_\b8_\b2 void _\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph, const typename G::EdgeIterator& edge, const _\bC_\bo_\bl_\bI_\bt_\be_\br&\n+_\bc_\bo_\bl);\n+283\n+_\b2_\b8_\b4 bool _\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd();\n+285\n+_\b2_\b8_\b6 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n+287 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(parms)\n+288 {}\n+289\n+_\b2_\b9_\b0 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by()\n+291 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs()\n+292 {}\n+293\n+294 protected:\n+_\b2_\b9_\b6 const _\bM_\ba_\bt_\br_\bi_\bx* _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n+_\b2_\b9_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b2_\b9_\b9 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+_\b3_\b0_\b0 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_;\n+_\b3_\b0_\b2 _\bN_\bo_\br_\bm _\bn_\bo_\br_\bm_\b_;\n+_\b3_\b0_\b4 int _\br_\bo_\bw_\b_;\n+_\b3_\b0_\b6 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_;\n+307 };\n 308\n-_\b3_\b1_\b2 _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be() const\n-313 {\n-314 return accumulate_;\n-315 }\n-_\b3_\b1_\b9 void _\bs_\be_\bt_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be(_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be accu)\n-320 {\n-321 accumulate_=accu;\n-322 }\n-323\n-_\b3_\b2_\b4 void _\bs_\be_\bt_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be(bool accu){\n-325 accumulate_=accu ? _\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu : _\bn_\bo_\bA_\bc_\bc_\bu;\n-326 }\n-_\b3_\b3_\b2 void _\bs_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br(double d)\n-333 {\n-334 dampingFactor_ = d;\n-335 }\n-336\n-_\b3_\b4_\b2 double _\bg_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br() const\n-343 {\n-344 return dampingFactor_;\n-345 }\n-_\b3_\b5_\b6 _\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(int _\bm_\ba_\bx_\bL_\be_\bv_\be_\bl=100, int _\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt=1000, double\n-_\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be=1.2,\n-357 double prolongDamp=1.6, _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be=_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu)\n-358 : maxLevel_(_\bm_\ba_\bx_\bL_\be_\bv_\be_\bl), coarsenTarget_(_\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt), minCoarsenRate_\n-(_\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be),\n-359 dampingFactor_(prolongDamp), accumulate_( _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be)\n-360 {}\n-361\n-362 private:\n-366 int maxLevel_;\n-370 int coarsenTarget_;\n-374 double minCoarsenRate_;\n-378 double dampingFactor_;\n-383 _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be accumulate_;\n-384 };\n-385\n-_\b3_\b9_\b2 class _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs : public _\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-393 {\n-394 public:\n-_\b4_\b0_\b1 void _\bs_\be_\bt_\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl(int level)\n-402 {\n-403 debugLevel_ = level;\n-404 }\n-405\n-_\b4_\b1_\b1 int _\bd_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl() const\n-412 {\n-413 return debugLevel_;\n+312 template\n+_\b3_\b1_\b3 class _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by : public _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+314 {\n+315 public:\n+_\b3_\b1_\b9 typedef M _\bM_\ba_\bt_\br_\bi_\bx;\n+320\n+_\b3_\b2_\b4 typedef N _\bN_\bo_\br_\bm;\n+325\n+_\b3_\b2_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bR_\bo_\bw;\n+330\n+_\b3_\b3_\b4 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bl_\bI_\bt_\be_\br;\n+335\n+_\b3_\b3_\b6 void _\bi_\bn_\bi_\bt(const _\bM_\ba_\bt_\br_\bi_\bx* matrix);\n+337\n+_\b3_\b3_\b8 void _\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int index);\n+339\n+_\b3_\b4_\b0 void _\be_\bx_\ba_\bm_\bi_\bn_\be(const _\bC_\bo_\bl_\bI_\bt_\be_\br& _\bc_\bo_\bl);\n+341\n+342 template\n+_\b3_\b4_\b3 void _\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph, const typename G::EdgeIterator& edge, const _\bC_\bo_\bl_\bI_\bt_\be_\br&\n+_\bc_\bo_\bl);\n+344\n+_\b3_\b4_\b5 bool _\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd();\n+346\n+347\n+_\b3_\b4_\b8 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n+349 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(parms)\n+350 {}\n+_\b3_\b5_\b1 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by()\n+352 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs()\n+353 {}\n+354\n+355 protected:\n+_\b3_\b5_\b7 const _\bM_\ba_\bt_\br_\bi_\bx* _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n+_\b3_\b5_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b3_\b6_\b0 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+_\b3_\b6_\b1 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_;\n+_\b3_\b6_\b3 _\bN_\bo_\br_\bm _\bn_\bo_\br_\bm_\b_;\n+_\b3_\b6_\b5 int _\br_\bo_\bw_\b_;\n+_\b3_\b6_\b7 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_;\n+368 private:\n+369 void _\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int index, const std::true_type&);\n+370 void _\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int index, const std::false_type&);\n+371 };\n+372\n+377 template\n+_\b3_\b7_\b8 class _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n+379 {\n+380 public:\n+381 enum { /* @brief We preserve the sign.*/\n+382 _\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg = true\n+_\b3_\b8_\b3 };\n+384\n+389 template\n+_\b3_\b9_\b0 typename FieldTraits::real_type _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const M&\n+m,\n+391 [[maybe_unused]] typename std::enable_if_t::value>*\n+sfinae = nullptr) const\n+392 {\n+393 typedef typename M::field_type field_type;\n+394 typedef typename FieldTraits::real_type real_type;\n+395 static_assert( std::is_convertible::value,\n+396 \"use of diagonal norm in AMG not implemented for complex field_type\");\n+397 return m[N][N];\n+398 // possible implementation for complex types: return signed_abs(m[N][N]);\n+399 }\n+400\n+405 template\n+_\b4_\b0_\b6 auto _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const M& m,\n+407 typename std::enable_if_t::value>* sfinae = nullptr)\n+const\n+408 {\n+409 typedef typename FieldTraits::real_type real_type;\n+410 static_assert( std::is_convertible::value,\n+411 \"use of diagonal norm in AMG not implemented for complex field_type\");\n+412 return m;\n+413 // possible implementation for complex types: return signed_abs(m[N][N]);\n 414 }\n 415\n-_\b4_\b2_\b0 void _\bs_\be_\bt_\bN_\bo_\bP_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs(std::size_t steps)\n+416 private:\n+417\n+419 template\n+420 static T signed_abs(const T & v)\n 421 {\n-422 preSmoothSteps_=steps;\n+422 return v;\n 423 }\n-_\b4_\b2_\b8 std::size_t _\bg_\be_\bt_\bN_\bo_\bP_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs() const\n-429 {\n-430 return preSmoothSteps_;\n-431 }\n-432\n-_\b4_\b3_\b7 void _\bs_\be_\bt_\bN_\bo_\bP_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs(std::size_t steps)\n-438 {\n-439 postSmoothSteps_=steps;\n-440 }\n-_\b4_\b4_\b5 std::size_t _\bg_\be_\bt_\bN_\bo_\bP_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs() const\n-446 {\n-447 return postSmoothSteps_;\n-448 }\n+424\n+426 template\n+427 static T signed_abs(const std::complex & v)\n+428 {\n+429 // return sign * abs_value\n+430 // in case of complex numbers this extends to using the csgn function to\n+determine the sign\n+431 return csgn(v) * std::abs(v);\n+432 }\n+433\n+435 template\n+436 static T csgn(const T & v)\n+437 {\n+438 return (T(0) < v) - (v < T(0));\n+439 }\n+440\n+442 template\n+443 static T csgn(std::complex a)\n+444 {\n+445 return csgn(a.real())+(a.real() == 0.0)*csgn(a.imag());\n+446 }\n+447\n+448 };\n 449\n-_\b4_\b5_\b3 void _\bs_\be_\bt_\bG_\ba_\bm_\bm_\ba(std::size_t gamma)\n-454 {\n-455 gamma_=gamma;\n-456 }\n-_\b4_\b6_\b0 std::size_t _\bg_\be_\bt_\bG_\ba_\bm_\bm_\ba() const\n-461 {\n-462 return gamma_;\n-463 }\n+_\b4_\b5_\b4 class _\bF_\bi_\br_\bs_\bt_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl : public _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl<0>\n+455 {};\n+456\n+_\b4_\b6_\b2 struct _\bR_\bo_\bw_\bS_\bu_\bm\n+463 {\n 464\n-_\b4_\b6_\b9 void _\bs_\be_\bt_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be(bool additive)\n-470 {\n-471 additive_=additive;\n-472 }\n-473\n-_\b4_\b7_\b8 bool _\bg_\be_\bt_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be() const\n-479 {\n-480 return additive_;\n-481 }\n-482\n-_\b4_\b9_\b3 _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(int _\bm_\ba_\bx_\bL_\be_\bv_\be_\bl=100, int _\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt=1000, double\n-_\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be=1.2,\n-494 double prolongDamp=1.6, _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be=_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu)\n-495 : _\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(_\bm_\ba_\bx_\bL_\be_\bv_\be_\bl, _\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt, _\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be,\n-prolongDamp, _\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be)\n-496 , debugLevel_(2), preSmoothSteps_(2), postSmoothSteps_(2), gamma_(1),\n-497 additive_(false)\n-498 {}\n-499 private:\n-500 int debugLevel_;\n-501 std::size_t preSmoothSteps_;\n-502 std::size_t postSmoothSteps_;\n-503 std::size_t gamma_;\n-504 bool additive_;\n-505 };\n-506\n-507 } //namespace AMG\n-508\n-509} //namespace Dune\n-510#endif\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bA_\bn_\bi_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc\n-void setDefaultValuesAnisotropic(std::size_t dim, std::size_t diameter=2)\n-Sets reasonable default values for an anisotropic problem.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:132\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be\n-void setAdditive(bool additive)\n-Set whether to use additive multigrid.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:469\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bS_\bk_\bi_\bp_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n-void setSkipIsolated(bool skip)\n-Set whether isolated aggregates will not be represented on the coarse level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:171\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br\n-void setProlongationDampingFactor(double d)\n-Set the damping factor for the prolongation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:332\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\ba_\bl_\bp_\bh_\ba\n-double alpha() const\n-Get the scaling value for marking connections as strong. Default value is 1/3.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bx_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be\n-void setMaxAggregateSize(std::size_t size)\n-Set the maximum number of nodes a aggregate is allowed to have.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:202\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be\n-void setMinCoarsenRate(double rate)\n-Set the minimum coarsening rate to be achieved in each coarsening.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:296\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\bi_\bn_\bC_\bo_\ba_\br_\bs_\be_\bn_\bR_\ba_\bt_\be\n-double minCoarsenRate() const\n-Get the minimum coarsening rate to be achieved.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:304\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\ba_\bx_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be\n-std::size_t maxAggregateSize() const\n-Get the maximum number of nodes a aggregate is allowed to have.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:194\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bA_\bl_\bp_\bh_\ba\n-void setAlpha(double a)\n-Set the scaling value for marking connections as strong. Default value is 1/3.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bb_\be_\bt_\ba\n-double beta() const\n-Get the threshold for marking nodes as isolated. The default value is 1.0E-5.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\ba_\bx_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by\n-std::size_t maxConnectivity() const\n-Get the maximum number of connections a aggregate is allowed to have.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt\n-int coarsenTarget() const\n-Get the maximum number of unknowns allowed on the coarsest level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:286\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be\n-void setAccumulate(AccumulationMode accu)\n-Set whether he data should be accumulated on fewer processes on coarser levels.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:319\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bg_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br\n-double getProlongationDampingFactor() const\n-Get the damping factor for the prolongation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:342\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\ba_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be\n-AccumulationMode accumulate() const\n-Whether the data should be accumulated on fewer processes on coarser levels.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:312\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bx_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by\n-void setMaxConnectivity(std::size_t connectivity)\n-Set the maximum number of connections a aggregate is allowed to have.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:220\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\bi_\bn_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be\n-std::size_t minAggregateSize() const\n-Get the minimum number of nodes a aggregate has to consist of.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:180\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bg_\be_\bt_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be\n-bool getAdditive() const\n-Get whether to use additive multigrid.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:478\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bx_\bL_\be_\bv_\be_\bl\n-void setMaxLevel(int l)\n-Set the maximum number of levels allowed in the hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:263\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bD_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\n-void setDebugLevel(int level)\n-Set the debugging level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:401\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bg_\be_\bt_\bG_\ba_\bm_\bm_\ba\n-std::size_t getGamma() const\n-Get the value of gamma; 1 for V-cycle, 2 for W-cycle.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:460\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bN_\bo_\bP_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs\n-void setNoPostSmoothSteps(std::size_t steps)\n-Set the number of postsmoothing steps to apply.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:437\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bg_\be_\bt_\bN_\bo_\bP_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs\n-std::size_t getNoPreSmoothSteps() const\n-Get the number of presmoothing steps to apply.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:428\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-DependencyParameters()\n+465 enum { /* @brief We preserve the sign.*/\n+466 _\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg = false\n+_\b4_\b6_\b7 };\n+472 template\n+_\b4_\b7_\b3 typename FieldTraits::real_type _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const M&\n+m) const\n+474 {\n+475 return m.infinity_norm();\n+476 }\n+477 };\n+478\n+_\b4_\b7_\b9 struct _\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm\n+480 {\n+481\n+482 enum { /* @brief We preserve the sign.*/\n+483 _\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg = false\n+_\b4_\b8_\b4 };\n+489 template\n+_\b4_\b9_\b0 typename FieldTraits::real_type _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const M&\n+m) const\n+491 {\n+492 return m.frobenius_norm();\n+493 }\n+494 };\n+_\b4_\b9_\b5 struct _\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm\n+496 {\n+497\n+498 enum { /* @brief We preserve the sign.*/\n+499 _\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg = false\n+_\b5_\b0_\b0 };\n+505 template\n+_\b5_\b0_\b6 typename FieldTraits::real_type _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const M&\n+m) const\n+507 {\n+508 return 1;\n+509 }\n+510 };\n+517 template\n+_\b5_\b1_\b8 class _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn : public\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn >\n+519 {\n+520 public:\n+_\b5_\b2_\b1 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n+522 : _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn<_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by >(parms)\n+523 {}\n+_\b5_\b2_\b4 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn()\n+525 {}\n+526 };\n+527\n+528\n+537 template\n+_\b5_\b3_\b8 class _\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn : public _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+>\n+539 {\n+540 public:\n+_\b5_\b4_\b1 _\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n+542 : _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn<_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by >(parms)\n+543 {}\n+_\b5_\b4_\b4 _\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn()\n+545 {}\n+546 };\n+547 // forward declaration\n+548 template class Aggregator;\n+549\n+550\n+558 template\n+_\b5_\b5_\b9 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+560 {\n+561 public:\n+562\n+_\b5_\b6_\b6 static const V _\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD;\n+567\n+_\b5_\b7_\b1 static const V _\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD;\n+_\b5_\b7_\b5 typedef V _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+576\n+_\b5_\b8_\b0 typedef V _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+581\n+_\b5_\b8_\b6 typedef PoolAllocator _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br;\n+587\n+_\b5_\b9_\b2 typedef SLList _\bV_\be_\br_\bt_\be_\bx_\bL_\bi_\bs_\bt;\n+593\n+_\b5_\b9_\b7 class _\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br\n+598 {\n+599 public:\n+600 template\n+_\b6_\b0_\b1 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)([[maybe_unused]] const EdgeIterator& edge) const\n+602 {}\n+603 };\n+604\n+605\n+_\b6_\b0_\b9 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp();\n+610\n+_\b6_\b1_\b6 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs);\n+617\n+_\b6_\b2_\b1 _\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp();\n+622\n+634 template\n+_\b6_\b3_\b5 std::tuple _\bb_\bu_\bi_\bl_\bd_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs(const M& matrix, G& graph,\n+const C& criterion,\n+636 bool finestLevel);\n+637\n+655 template\n+_\b6_\b5_\b6 std::size_t _\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& start,\n+657 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+658 const G& graph,\n+659 F& aggregateVisitor,\n+660 VM& visitedMap) const;\n+661\n+685 template\n+_\b6_\b8_\b6 std::size_t _\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& start,\n+687 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+688 const G& graph, L& visited, F1& aggregateVisitor,\n+689 F2& nonAggregateVisitor,\n+690 VM& visitedMap) const;\n+691\n+_\b6_\b9_\b7 void _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs);\n+698\n+_\b7_\b0_\b2 std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const;\n+703\n+_\b7_\b0_\b7 void _\bf_\br_\be_\be();\n+708\n+_\b7_\b1_\b4 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& v);\n+715\n+_\b7_\b2_\b1 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& v) const;\n+722\n+_\b7_\b2_\b3 typedef const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+724\n+_\b7_\b2_\b5 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const\n+726 {\n+727 return aggregates_;\n+728 }\n+729\n+_\b7_\b3_\b0 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const\n+731 {\n+732 return aggregates_+_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs();\n+733 }\n+734\n+_\b7_\b3_\b5 typedef _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+736\n+_\b7_\b3_\b7 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn()\n+738 {\n+739 return aggregates_;\n+740 }\n+741\n+_\b7_\b4_\b2 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd()\n+743 {\n+744 return aggregates_+_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs();\n+745 }\n+746 private:\n+748 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>&) = delete;\n+750 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>& operator=(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>&) = delete;\n+751\n+755 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* aggregates_;\n+756\n+760 std::size_t noVertices_;\n+761 };\n+762\n+766 template\n+_\b7_\b6_\b7 void _\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(G& graph,\n+768 const typename C::Matrix& matrix,\n+769 C criterion,\n+770 bool finestLevel);\n+771\n+776 template\n+_\b7_\b7_\b7 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n+778 {\n+779\n+780 public:\n+781\n+782 /***\n+783 * @brief The type of the matrix graph we work with.\n+784 */\n+_\b7_\b8_\b5 typedef G _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n+_\b7_\b8_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bV_\be_\br_\bt_\be_\bx;\n+790\n+_\b7_\b9_\b5 typedef PoolAllocator _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br;\n+796\n+_\b8_\b0_\b1 typedef S _\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt;\n+802\n+_\b8_\b0_\b4 typedef typename VertexSet::const_iterator _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+805\n+_\b8_\b0_\b9 typedef std::size_t* _\bS_\bp_\bh_\be_\br_\be_\bM_\ba_\bp;\n+810\n+_\b8_\b1_\b9 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be(_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph, _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+820 _\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt& connectivity, std::vector& front_);\n+821\n+_\b8_\b2_\b2 void _\bi_\bn_\bv_\ba_\bl_\bi_\bd_\ba_\bt_\be()\n+823 {\n+824 --id_;\n+825 }\n+826\n+_\b8_\b3_\b3 void _\br_\be_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(const _\bV_\be_\br_\bt_\be_\bx& vertex);\n+834\n+_\b8_\b3_\b8 void _\bs_\be_\be_\bd(const _\bV_\be_\br_\bt_\be_\bx& vertex);\n+839\n+_\b8_\b4_\b3 void _\ba_\bd_\bd(const _\bV_\be_\br_\bt_\be_\bx& vertex);\n+844\n+_\b8_\b4_\b5 void _\ba_\bd_\bd(std::vector& vertex);\n+_\b8_\b4_\b9 void _\bc_\bl_\be_\ba_\br();\n+850\n+_\b8_\b5_\b4 typename VertexSet::size_type _\bs_\bi_\bz_\be();\n+_\b8_\b5_\b8 typename VertexSet::size_type _\bc_\bo_\bn_\bn_\be_\bc_\bt_\bS_\bi_\bz_\be();\n+859\n+_\b8_\b6_\b3 int _\bi_\bd();\n+864\n+_\b8_\b6_\b6 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n+867\n+_\b8_\b6_\b9 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n+870\n+871 private:\n+875 _\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt vertices_;\n+876\n+881 int id_;\n+882\n+886 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph_;\n+887\n+891 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n+892\n+896 _\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt& connected_;\n+897\n+901 std::vector& front_;\n+902 };\n+903\n+907 template\n+_\b9_\b0_\b8 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br\n+909 {\n+910 public:\n+911\n+_\b9_\b1_\b5 typedef G _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n+916\n+_\b9_\b2_\b0 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bV_\be_\br_\bt_\be_\bx;\n+921\n+_\b9_\b2_\b3 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+924\n+_\b9_\b2_\b8 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br();\n+929\n+_\b9_\b3_\b3 _\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br();\n+934\n+951 template\n+_\b9_\b5_\b2 std::tuple _\bb_\bu_\bi_\bl_\bd(const M& m, G& graph,\n+953 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, const C& c,\n+954 bool finestLevel);\n+955 private:\n+960 typedef PoolAllocator Allocator;\n+961\n+965 typedef SLList VertexList;\n+966\n+970 typedef std::set,Allocator> VertexSet;\n+971\n+975 typedef std::size_t* SphereMap;\n+976\n+980 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh* graph_;\n+981\n+985 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b,_\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt_\b>* aggregate_;\n+986\n+990 std::vector front_;\n+991\n+995 VertexSet connected_;\n+996\n+1000 int size_;\n+1001\n+1005 class Stack\n+1006 {\n+1007 public:\n+_\b1_\b0_\b0_\b8 static const _\bV_\be_\br_\bt_\be_\bx _\bN_\bu_\bl_\bl_\bE_\bn_\bt_\br_\by;\n+1009\n+_\b1_\b0_\b1_\b0 _\bS_\bt_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph,\n+1011 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>& aggregatesBuilder,\n+1012 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates);\n+_\b1_\b0_\b1_\b3 _\b~_\bS_\bt_\ba_\bc_\bk();\n+_\b1_\b0_\b1_\b4 _\bV_\be_\br_\bt_\be_\bx _\bp_\bo_\bp();\n+1015 private:\n+1016 enum { N = 1300000 };\n+1017\n+1019 const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph_;\n+1021 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>& aggregatesBuilder_;\n+1023 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n+1025 int size_;\n+1026 _\bV_\be_\br_\bt_\be_\bx maxSize_;\n+1028 typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br begin_;\n+1029 typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br end_;\n+1030\n+1032 _\bV_\be_\br_\bt_\be_\bx* vals_;\n+1033\n+1034 };\n+1035\n+_\b1_\b0_\b3_\b6 friend class Stack;\n+1037\n+1048 template\n+1049 void visitAggregateNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1050 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+1051 V& visitor) const;\n+1052\n+1057 template\n+1058 class AggregateVisitor\n+1059 {\n+1060 public:\n+_\b1_\b0_\b6_\b4 typedef V _\bV_\bi_\bs_\bi_\bt_\bo_\br;\n+_\b1_\b0_\b7_\b2 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1073 _\bV_\bi_\bs_\bi_\bt_\bo_\br& visitor);\n+1074\n+_\b1_\b0_\b8_\b1 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n+1082\n+1083 private:\n+1085 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n+1087 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br aggregate_;\n+1089 _\bV_\bi_\bs_\bi_\bt_\bo_\br* visitor_;\n+1090 };\n+1091\n+1095 class Counter\n+1096 {\n+1097 public:\n+_\b1_\b0_\b9_\b9 _\bC_\bo_\bu_\bn_\bt_\be_\br();\n+_\b1_\b1_\b0_\b1 int _\bv_\ba_\bl_\bu_\be();\n+1102\n+1103 protected:\n+_\b1_\b1_\b0_\b5 void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+_\b1_\b1_\b0_\b7 void _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt();\n+1108\n+1109 private:\n+1110 int count_;\n+1111 };\n+1112\n+1113\n+1118 class FrontNeighbourCounter : public Counter\n+1119 {\n+1120 public:\n+_\b1_\b1_\b2_\b5 _\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br(const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& front);\n+1126\n+_\b1_\b1_\b2_\b7 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n+1128\n+1129 private:\n+1130 const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph_;\n+1131 };\n+1132\n+1137 int noFrontNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex) const;\n+1138\n+1142 class TwoWayCounter : public Counter\n+1143 {\n+1144 public:\n+_\b1_\b1_\b4_\b5 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n+1146 };\n+1147\n+1159 int twoWayConnections(const _\bV_\be_\br_\bt_\be_\bx&, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1160 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n+1161\n+1165 class OneWayCounter : public Counter\n+1166 {\n+1167 public:\n+_\b1_\b1_\b6_\b8 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n+1169 };\n+1170\n+1182 int oneWayConnections(const _\bV_\be_\br_\bt_\be_\bx&, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1183 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n+1184\n+1191 class ConnectivityCounter : public Counter\n+1192 {\n+1193 public:\n+_\b1_\b2_\b0_\b0 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br(const VertexSet& connected, const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates);\n+1201\n+_\b1_\b2_\b0_\b2 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n+1203\n+1204 private:\n+1206 const VertexSet& connected_;\n+1208 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n+1209\n+1210 };\n+1211\n+1223 double connectivity(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n+aggregates) const;\n+1231 bool connected(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1232 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n+1233\n+1241 bool connected(const _\bV_\be_\br_\bt_\be_\bx& vertex, const SLList&\n+aggregateList,\n+1242 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n+1243\n+1251 class DependencyCounter : public Counter\n+1252 {\n+1253 public:\n+_\b1_\b2_\b5_\b7 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br();\n+1258\n+_\b1_\b2_\b5_\b9 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n+1260 };\n+1261\n+1268 class FrontMarker\n+1269 {\n+1270 public:\n+_\b1_\b2_\b7_\b7 _\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br(std::vector& front, _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph);\n+1278\n+_\b1_\b2_\b7_\b9 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n+1280\n+1281 private:\n+1283 std::vector& front_;\n+1285 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph_;\n+1286 };\n+1287\n+1291 void unmarkFront();\n+1292\n+1307 int unusedNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n+aggregates) const;\n+1308\n+1322 std::pair neighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n+1323 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1324 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n+1341 int aggregateNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n+aggregate, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n+1342\n+1350 bool admissible(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n+aggregate, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n+1351\n+1359 std::size_t distance(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n+aggregates);\n+1360\n+1369 _\bV_\be_\br_\bt_\be_\bx mergeNeighbour(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n+aggregates) const;\n+1370\n+1379 void nonisoNeighbourAggregate(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n+1380 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+1381 SLList& neighbours) const;\n+1382\n+1390 template\n+1391 void growAggregate(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n+aggregates, const C& c);\n+1392 template\n+1393 void growIsolatedAggregate(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, const C& c);\n+1394 };\n+1395\n+1396#ifndef DOXYGEN\n+1397\n+1398 template\n+1399 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt(const _\bM_\ba_\bt_\br_\bi_\bx* matrix)\n+1400 {\n+1401 matrix_ = matrix;\n+1402 }\n+1403\n+1404 template\n+1405 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw(const Row& row, int index)\n+1406 {\n+1407 initRow(row, index, std::is_convertible());\n+1408 }\n+1409\n+1410 template\n+1411 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw(const Row& row, int index,\n+const std::false_type&)\n+1412 {\n+1413 DUNE_THROW(InvalidStateException, \"field_type needs to convertible to\n+real_type\");\n+1414 }\n+1415\n+1416 template\n+1417 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw([[maybe_unused]] const Row&\n+row, int index, const std::true_type&)\n+1418 {\n+1419 using std::min;\n+1420 maxValue_ = min(- std::numeric_limits::max(),\n+std::numeric_limits::min());\n+1421 row_ = index;\n+1422 diagonal_ = norm_(matrix_->operator[](row_)[row_]);\n+1423 }\n+1424\n+1425 template\n+1426 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(const ColIter& _\bc_\bo_\bl)\n+1427 {\n+1428 using std::max;\n+1429 real_type eij = norm_(*_\bc_\bo_\bl);\n+1430 typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br opposite_entry =\n+1431 matrix_->operator[](_\bc_\bo_\bl.index()).find(row_);\n+1432 if ( opposite_entry == matrix_->operator[](_\bc_\bo_\bl.index()).end() )\n+1433 {\n+1434 // Consider this a weak connection we disregard.\n+1435 return;\n+1436 }\n+1437 real_type eji = norm_(*opposite_entry);\n+1438\n+1439 // skip positive offdiagonals if norm preserves sign of them.\n+1440 if(!N::is_sign_preserving || eij<0 || eji<0)\n+1441 maxValue_ = max(maxValue_,\n+1442 eij /diagonal_ * eji/\n+1443 norm_(matrix_->operator[](_\bc_\bo_\bl.index())[_\bc_\bo_\bl.index()]));\n+1444 }\n+1445\n+1446 template\n+1447 template\n+1448 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph, const typename G::\n+EdgeIterator& edge, const ColIter& _\bc_\bo_\bl)\n+1449 {\n+1450 real_type eij = norm_(*_\bc_\bo_\bl);\n+1451 typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br opposite_entry =\n+1452 matrix_->operator[](_\bc_\bo_\bl.index()).find(row_);\n+1453\n+1454 if ( opposite_entry == matrix_->operator[](_\bc_\bo_\bl.index()).end() )\n+1455 {\n+1456 // Consider this as a weak connection we disregard.\n+1457 return;\n+1458 }\n+1459 real_type eji = norm_(*opposite_entry);\n+1460 // skip positve offdiagonals if norm preserves sign of them.\n+1461 if(!N::is_sign_preserving || (eij<0 || eji<0))\n+1462 if(eji / norm_(matrix_->operator[](edge.target())[edge.target()]) *\n+1463 eij/ diagonal_ > alpha() * maxValue_) {\n+1464 edge.properties().setDepends();\n+1465 edge.properties().setInfluences();\n+1466 typename G::EdgeProperties& other = graph.getEdgeProperties(edge.target(),\n+edge.source());\n+1467 other.setInfluences();\n+1468 other.setDepends();\n+1469 }\n+1470 }\n+1471\n+1472 template\n+1473 inline bool _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd()\n+1474 {\n+1475 return maxValue_ < beta();\n+1476 }\n+1477\n+1478\n+1479 template\n+1480 inline void _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt(const Matrix* matrix)\n+1481 {\n+1482 matrix_ = matrix;\n+1483 }\n+1484\n+1485 template\n+1486 inline void _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw([[maybe_unused]] const Row& row, int\n+index)\n+1487 {\n+1488 using std::min;\n+1489 maxValue_ = min(- std::numeric_limits::max(), std::\n+numeric_limits::min());\n+1490 row_ = index;\n+1491 diagonal_ = norm_(matrix_->operator[](row_)[row_]);\n+1492 }\n+1493\n+1494 template\n+1495 inline void _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(const ColIter& _\bc_\bo_\bl)\n+1496 {\n+1497 using std::max;\n+1498 maxValue_ = max(maxValue_, -norm_(*_\bc_\bo_\bl));\n+1499 }\n+1500\n+1501 template\n+1502 template\n+1503 inline void _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph, const typename G::\n+EdgeIterator& edge, const ColIter& _\bc_\bo_\bl)\n+1504 {\n+1505 if(-norm_(*_\bc_\bo_\bl) >= maxValue_ * alpha()) {\n+1506 edge.properties().setDepends();\n+1507 typedef typename G::EdgeDescriptor ED;\n+1508 ED e= graph.findEdge(edge.target(), edge.source());\n+1509 if(e!=std::numeric_limits::max())\n+1510 {\n+1511 typename G::EdgeProperties& other = graph.getEdgeProperties(e);\n+1512 other.setInfluences();\n+1513 }\n+1514 }\n+1515 }\n+1516\n+1517 template\n+1518 inline bool _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd()\n+1519 {\n+1520 return maxValue_ < beta() * diagonal_;\n+1521 }\n+1522\n+1523 template\n+1524 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be(MatrixGraph& graph, AggregatesMap&\n+aggregates,\n+1525 VertexSet& connected, std::vector& front)\n+1526 : vertices_(), id_(-1), graph_(graph), aggregates_(aggregates),\n+1527 connected_(connected), front_(front)\n+1528 {}\n+1529\n+1530 template\n+1531 void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\br_\be_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(const _\bV_\be_\br_\bt_\be_\bx& vertex)\n+1532 {\n+1533 /*\n+1534 vertices_.push_back(vertex);\n+1535 typedef typename VertexList::const_iterator iterator;\n+1536 iterator begin = vertices_.begin();\n+1537 iterator end = vertices_.end();*/\n+1538 throw \"Not yet implemented\";\n+1539\n+1540 // while(begin!=end){\n+1541 //for();\n+1542 // }\n+1543\n+1544 }\n+1545\n+1546 template\n+1547 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bs_\be_\be_\bd(const _\bV_\be_\br_\bt_\be_\bx& vertex)\n+1548 {\n+1549 dvverb<<\"Connected cleared\"<\n+1560 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\ba_\bd_\bd(const _\bV_\be_\br_\bt_\be_\bx& vertex)\n+1561 {\n+1562 vertices_.insert(vertex);\n+1563 aggregates_[vertex]=id_;\n+1564 if(front_.size())\n+1565 front_.erase(std::lower_bound(front_.begin(), front_.end(), vertex));\n+1566\n+1567\n+1568 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iterator;\n+1569 const iterator end = graph_.endEdges(vertex);\n+1570 for(iterator edge = graph_.beginEdges(vertex); edge != end; ++edge) {\n+1571 dvverb << \" Inserting \"<::UNAGGREGATED &&\n+1575 !graph_.getVertexProperties(edge.target()).front())\n+1576 {\n+1577 front_.push_back(edge.target());\n+1578 graph_.getVertexProperties(edge.target()).setFront();\n+1579 }\n+1580 }\n+1581 dvverb <\n+1586 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\ba_\bd_\bd(std::vector& vertices)\n+1587 {\n+1588#ifndef NDEBUG\n+1589 std::size_t oldsize = vertices_.size();\n+1590#endif\n+1591 typedef typename std::vector::iterator Iterator;\n+1592\n+1593 typedef typename VertexSet::iterator SIterator;\n+1594\n+1595 SIterator pos=vertices_.begin();\n+1596 std::vector newFront;\n+1597 newFront.reserve(front_.capacity());\n+1598\n+1599 std::set_difference(front_.begin(), front_.end(), vertices.begin(),\n+vertices.end(),\n+1600 std::back_inserter(newFront));\n+1601 front_=newFront;\n+1602\n+1603 for(Iterator vertex=vertices.begin(); vertex != vertices.end(); ++vertex)\n+1604 {\n+1605 pos=vertices_.insert(pos,*vertex);\n+1606 vertices_.insert(*vertex);\n+1607 graph_.getVertexProperties(*vertex).resetFront(); // Not a front node any\n+more.\n+1608 aggregates_[*vertex]=id_;\n+1609\n+1610 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iterator;\n+1611 const iterator end = graph_.endEdges(*vertex);\n+1612 for(iterator edge = graph_.beginEdges(*vertex); edge != end; ++edge) {\n+1613 dvverb << \" Inserting \"<::UNAGGREGATED &&\n+1616 !graph_.getVertexProperties(edge.target()).front())\n+1617 {\n+1618 front_.push_back(edge.target());\n+1619 graph_.getVertexProperties(edge.target()).setFront();\n+1620 }\n+1621 dvverb <<\" size=\"<\n+1629 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bc_\bl_\be_\ba_\br()\n+1630 {\n+1631 vertices_.clear();\n+1632 connected_.clear();\n+1633 id_=-1;\n+1634 }\n+1635\n+1636 template\n+1637 inline typename Aggregate::VertexSet::size_type\n+1638 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bs_\bi_\bz_\be()\n+1639 {\n+1640 return vertices_.size();\n+1641 }\n+1642\n+1643 template\n+1644 inline typename Aggregate::VertexSet::size_type\n+1645 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bc_\bo_\bn_\bn_\be_\bc_\bt_\bS_\bi_\bz_\be()\n+1646 {\n+1647 return connected_.size();\n+1648 }\n+1649\n+1650 template\n+1651 inline int _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bi_\bd()\n+1652 {\n+1653 return id_;\n+1654 }\n+1655\n+1656 template\n+1657 inline typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn()\n+const\n+1658 {\n+1659 return vertices_.begin();\n+1660 }\n+1661\n+1662 template\n+1663 inline typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\be_\bn_\bd() const\n+1664 {\n+1665 return vertices_.end();\n+1666 }\n+1667\n+1668 template\n+1669 const V _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD = std::numeric_limits::max();\n+1670\n+1671 template\n+1672 const V _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD = std::numeric_limits::max()-1;\n+1673\n+1674 template\n+1675 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp()\n+1676 : aggregates_(0)\n+1677 {}\n+1678\n+1679 template\n+1680 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp()\n+1681 {\n+1682 if(aggregates_!=0)\n+1683 delete[] aggregates_;\n+1684 }\n+1685\n+1686\n+1687 template\n+1688 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(std::size_t noVertices)\n+1689 {\n+1690 allocate(noVertices);\n+1691 }\n+1692\n+1693 template\n+1694 inline std::size_t _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const\n+1695 {\n+1696 return noVertices_;\n+1697 }\n+1698\n+1699 template\n+1700 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(std::size_t noVertices)\n+1701 {\n+1702 aggregates_ = new _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br[noVertices];\n+1703 noVertices_ = noVertices;\n+1704\n+1705 for(std::size_t i=0; i < noVertices; i++)\n+1706 aggregates_[i]=UNAGGREGATED;\n+1707 }\n+1708\n+1709 template\n+1710 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bf_\br_\be_\be()\n+1711 {\n+1712 assert(aggregates_ != 0);\n+1713 delete[] aggregates_;\n+1714 aggregates_=0;\n+1715 }\n+1716\n+1717 template\n+1718 inline typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n+1719 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const VertexDescriptor& v)\n+1720 {\n+1721 return aggregates_[v];\n+1722 }\n+1723\n+1724 template\n+1725 inline const typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n+1726 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const VertexDescriptor& v) const\n+1727 {\n+1728 return aggregates_[v];\n+1729 }\n+1730\n+1731 template\n+1732 template\n+1733 inline std::size_t _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh(const V& start,\n+1734 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1735 const G& graph, F& aggregateVisitor,\n+1736 VM& visitedMap) const\n+1737 {\n+1738 VertexList vlist;\n+1739\n+1740 DummyEdgeVisitor dummy;\n+1741 return breadthFirstSearch(start, aggregate, graph, vlist,\n+aggregateVisitor, dummy, visitedMap);\n+1742 }\n+1743\n+1744 template\n+1745 template\n+1746 std::size_t _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh(const V& start,\n+1747 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1748 const G& graph,\n+1749 L& visited,\n+1750 F1& aggregateVisitor,\n+1751 F2& nonAggregateVisitor,\n+1752 VM& visitedMap) const\n+1753 {\n+1754 typedef typename L::const_iterator ListIterator;\n+1755 int visitedSpheres = 0;\n+1756\n+1757 visited.push_back(start);\n+1758 put(visitedMap, start, true);\n+1759\n+1760 ListIterator current = visited.begin();\n+1761 ListIterator end = visited.end();\n+1762 std::size_t i=0, size=visited.size();\n+1763\n+1764 // visit the neighbours of all vertices of the\n+1765 // current sphere.\n+1766 while(current != end) {\n+1767\n+1768 for(; i\n+1803 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br()\n+1804 : graph_(0), aggregate_(0), front_(), connected_(), size_(-1)\n+1805 {}\n+1806\n+1807 template\n+1808 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br()\n+1809 {\n+1810 size_=-1;\n+1811 }\n+1812\n+1813 template\n+1814 void _\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(G& graph,\n+1815 const typename C::Matrix& matrix,\n+1816 C criterion, bool firstlevel)\n+1817 {\n+1818 // assert(graph.isBuilt());\n+1819 typedef typename C::Matrix Matrix;\n+1820 typedef typename G::VertexIterator VertexIterator;\n+1821\n+1822 criterion.init(&matrix);\n+1823\n+1824 for(VertexIterator vertex = graph.begin(); vertex != graph.end();\n+++vertex) {\n+1825 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be Row;\n+1826\n+1827 const Row& row = matrix[*vertex];\n+1828\n+1829 // Tell the criterion what row we will examine now\n+1830 // This might for example be used for calculating the\n+1831 // maximum offdiagonal value\n+1832 criterion.initRow(row, *vertex);\n+1833\n+1834 // On a first path all columns are examined. After this\n+1835 // the calculator should know whether the vertex is isolated.\n+1836 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ColIterator;\n+1837 ColIterator end = row.end();\n+1838 typename FieldTraits::real_type\n+absoffdiag=0.;\n+1839\n+1840 using std::max;\n+1841 if(firstlevel) {\n+1842 for(ColIterator _\bc_\bo_\bl = row.begin(); _\bc_\bo_\bl != end; ++_\bc_\bo_\bl)\n+1843 if(_\bc_\bo_\bl.index()!=*vertex) {\n+1844 criterion.examine(_\bc_\bo_\bl);\n+1845 absoffdiag = max(absoffdiag, Impl::asMatrix(*col).frobenius_norm());\n+1846 }\n+1847\n+1848 if(absoffdiag==0)\n+1849 vertex.properties().setExcludedBorder();\n+1850 }\n+1851 else\n+1852 for(ColIterator _\bc_\bo_\bl = row.begin(); _\bc_\bo_\bl != end; ++_\bc_\bo_\bl)\n+1853 if(_\bc_\bo_\bl.index()!=*vertex)\n+1854 criterion.examine(_\bc_\bo_\bl);\n+1855\n+1856 // reset the vertex properties\n+1857 //vertex.properties().reset();\n+1858\n+1859 // Check whether the vertex is isolated.\n+1860 if(criterion.isIsolated()) {\n+1861 //std::cout<<\"ISOLATED: \"<<*vertex<\n+1881 template\n+1882 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b<_\bV_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br(const\n+AggregatesMap& aggregates,\n+1883 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate, V& visitor)\n+1884 : aggregates_(aggregates), aggregate_(aggregate), visitor_(&visitor)\n+1885 {}\n+1886\n+1887 template\n+1888 template\n+1889 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b<_\bV_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n+_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n+1890 {\n+1891 if(aggregates_[edge.target()]==aggregate_)\n+1892 visitor_->operator()(edge);\n+1893 }\n+1894\n+1895 template\n+1896 template\n+1897 inline void Aggregator::visitAggregateNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n+1898 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1899 const AggregatesMap& aggregates,\n+1900 V& visitor) const\n+1901 {\n+1902 // Only evaluates for edge pointing to the aggregate\n+1903 AggregateVisitor v(aggregates, aggregate, visitor);\n+1904 _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(*graph_, vertex, v);\n+1905 }\n+1906\n+1907\n+1908 template\n+1909 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br()\n+1910 : count_(0)\n+1911 {}\n+1912\n+1913 template\n+1914 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt()\n+1915 {\n+1916 ++count_;\n+1917 }\n+1918\n+1919 template\n+1920 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt()\n+1921 {\n+1922 --count_;\n+1923 }\n+1924 template\n+1925 inline int _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be()\n+1926 {\n+1927 return count_;\n+1928 }\n+1929\n+1930 template\n+1931 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bT_\bw_\bo_\bW_\ba_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n+_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n+1932 {\n+1933 if(edge.properties().isTwoWay())\n+1934 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+1935 }\n+1936\n+1937 template\n+1938 int Aggregator::twoWayConnections(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1939 const AggregatesMap& aggregates) const\n+1940 {\n+1941 TwoWayCounter counter;\n+1942 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);\n+1943 return counter.value();\n+1944 }\n+1945\n+1946 template\n+1947 int Aggregator::oneWayConnections(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+1948 const AggregatesMap& aggregates) const\n+1949 {\n+1950 OneWayCounter counter;\n+1951 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);\n+1952 return counter.value();\n+1953 }\n+1954\n+1955 template\n+1956 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bO_\bn_\be_\bW_\ba_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n+_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n+1957 {\n+1958 if(edge.properties().isOneWay())\n+1959 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+1960 }\n+1961\n+1962 template\n+1963 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br(const\n+VertexSet& connected,\n+1964 const AggregatesMap& aggregates)\n+1965 : Counter(), connected_(connected), aggregates_(aggregates)\n+1966 {}\n+1967\n+1968\n+1969 template\n+1970 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n+_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n+1971 {\n+1972 if(connected_.find(aggregates_[edge.target()]) == connected_.end() ||\n+aggregates_[edge.target()]==AggregatesMap::UNAGGREGATED)\n+1973 // Would be a new connection\n+1974 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+1975 else{\n+1976 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+1977 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+1978 }\n+1979 }\n+1980\n+1981 template\n+1982 inline double Aggregator::connectivity(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n+AggregatesMap& aggregates) const\n+1983 {\n+1984 ConnectivityCounter counter(connected_, aggregates);\n+1985 double noNeighbours=_\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(*graph_, vertex, counter);\n+1986 return (double)counter.value()/noNeighbours;\n+1987 }\n+1988\n+1989 template\n+1990 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br()\n+1991 : Counter()\n+1992 {}\n+1993\n+1994 template\n+1995 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n+_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n+1996 {\n+1997 if(edge.properties().depends())\n+1998 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+1999 if(edge.properties().influences())\n+2000 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+2001 }\n+2002\n+2003 template\n+2004 int Aggregator::unusedNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n+AggregatesMap& aggregates) const\n+2005 {\n+2006 return aggregateNeighbours(vertex, AggregatesMap::UNAGGREGATED,\n+aggregates);\n+2007 }\n+2008\n+2009 template\n+2010 std::pair Aggregator::neighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n+2011 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+2012 const AggregatesMap& aggregates) const\n+2013 {\n+2014 DependencyCounter unused, aggregated;\n+2015 typedef AggregateVisitor CounterT;\n+2016 typedef std::tuple CounterTuple;\n+2017 CombinedFunctor visitors(CounterTuple(CounterT(aggregates,\n+AggregatesMap::UNAGGREGATED, unused), CounterT(aggregates, aggregate,\n+aggregated)));\n+2018 _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(*graph_, vertex, visitors);\n+2019 return std::make_pair(unused.value(), aggregated.value());\n+2020 }\n+2021\n+2022\n+2023 template\n+2024 int Aggregator::aggregateNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate, const AggregatesMap& aggregates) const\n+2025 {\n+2026 DependencyCounter counter;\n+2027 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);\n+2028 return counter.value();\n+2029 }\n+2030\n+2031 template\n+2032 std::size_t Aggregator::distance(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n+AggregatesMap& aggregates)\n+2033 {\n+2034 return 0;\n+2035 typename PropertyMapTypeSelector::Type visitedMap =\n+_\bg_\be_\bt(VertexVisitedTag(), *graph_);\n+2036 VertexList vlist;\n+2037 typename AggregatesMap::DummyEdgeVisitor dummy;\n+2038 return aggregates.template breadthFirstSearch(vertex,\n+2039 aggregate_->_\bi_\bd(), *graph_,\n+2040 vlist, dummy, dummy, visitedMap);\n+2041 }\n+2042\n+2043 template\n+2044 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br(std::vector& front,\n+_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph)\n+2045 : front_(front), graph_(graph)\n+2046 {}\n+2047\n+2048 template\n+2049 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n+_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n+2050 {\n+2051 _\bV_\be_\br_\bt_\be_\bx target = edge.target();\n+2052\n+2053 if(!graph_.getVertexProperties(target).front()) {\n+2054 front_.push_back(target);\n+2055 graph_.getVertexProperties(target).setFront();\n+2056 }\n+2057 }\n+2058\n+2059 template\n+2060 inline bool Aggregator::admissible(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate, const AggregatesMap& aggregates) const\n+2061 {\n+2062 // Todo\n+2063 Dune::dvverb<<\" Admissible not yet implemented!\"<endEdges(vertex);\n+2071 for(Iterator edge = graph_->beginEdges(vertex); edge != vend; ++edge) {\n+2072 // if(edge.properties().depends() && !edge.properties().influences()\n+2073 if(edge.properties().isStrong()\n+2074 && aggregates[edge.target()]==aggregate)\n+2075 {\n+2076 // Search for another link to the aggregate\n+2077 Iterator edge1 = edge;\n+2078 for(++edge1; edge1 != vend; ++edge1) {\n+2079 //if(edge1.properties().depends() && !edge1.properties().influences()\n+2080 if(edge1.properties().isStrong()\n+2081 && aggregates[edge.target()]==aggregate)\n+2082 {\n+2083 //Search for an edge connecting the two vertices that is\n+2084 //strong\n+2085 bool found=false;\n+2086 Iterator v2end = graph_->endEdges(edge.target());\n+2087 for(Iterator edge2 = graph_->beginEdges(edge.target()); edge2 != v2end;\n+++edge2) {\n+2088 if(edge2.target()==edge1.target() &&\n+2089 edge2.properties().isStrong()) {\n+2090 found =true;\n+2091 break;\n+2092 }\n+2093 }\n+2094 if(found)\n+2095 {\n+2096 return true;\n+2097 }\n+2098 }\n+2099 }\n+2100 }\n+2101 }\n+2102\n+2103 // Situation 2: cluster node depends on front node and other cluster node\n+2105 vend = graph_->endEdges(vertex);\n+2106 for(Iterator edge = graph_->beginEdges(vertex); edge != vend; ++edge) {\n+2107 //if(!edge.properties().depends() && edge.properties().influences()\n+2108 if(edge.properties().isStrong()\n+2109 && aggregates[edge.target()]==aggregate)\n+2110 {\n+2111 // Search for a link from target that stays within the aggregate\n+2112 Iterator v1end = graph_->endEdges(edge.target());\n+2113\n+2114 for(Iterator edge1=graph_->beginEdges(edge.target()); edge1 != v1end;\n+++edge1) {\n+2115 //if(edge1.properties().depends() && !edge1.properties().influences()\n+2116 if(edge1.properties().isStrong()\n+2117 && aggregates[edge1.target()]==aggregate)\n+2118 {\n+2119 bool found=false;\n+2120 // Check if front node is also connected to this one\n+2121 Iterator v2end = graph_->endEdges(vertex);\n+2122 for(Iterator edge2 = graph_->beginEdges(vertex); edge2 != v2end; ++edge2)\n+{\n+2123 if(edge2.target()==edge1.target()) {\n+2124 if(edge2.properties().isStrong())\n+2125 found=true;\n+2126 break;\n+2127 }\n+2128 }\n+2129 if(found)\n+2130 {\n+2131 return true;\n+2132 }\n+2133 }\n+2134 }\n+2135 }\n+2136 }\n+2137 return false;\n+2138 }\n+2139\n+2140 template\n+2141 void Aggregator::unmarkFront()\n+2142 {\n+2143 typedef typename std::vector::const_iterator Iterator;\n+2144\n+2145 for(Iterator vertex=front_.begin(); vertex != front_.end(); ++vertex)\n+2146 graph_->getVertexProperties(*vertex).resetFront();\n+2147\n+2148 front_.clear();\n+2149 }\n+2150\n+2151 template\n+2152 inline void\n+2153 Aggregator::nonisoNeighbourAggregate(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n+2154 const AggregatesMap& aggregates,\n+2155 SLList& neighbours) const\n+2156 {\n+2157 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n+2158 Iterator end=graph_->beginEdges(vertex);\n+2159 neighbours.clear();\n+2160\n+2161 for(Iterator edge=graph_->beginEdges(vertex); edge!=end; ++edge)\n+2162 {\n+2163 if(aggregates[edge.target()]!=AggregatesMap::UNAGGREGATED &&\n+graph_->getVertexProperties(edge.target()).isolated())\n+2164 neighbours.push_back(aggregates[edge.target()]);\n+2165 }\n+2166 }\n+2167\n+2168 template\n+2169 inline typename G::VertexDescriptor Aggregator::mergeNeighbour(const\n+_\bV_\be_\br_\bt_\be_\bx& vertex, const AggregatesMap& aggregates) const\n+2170 {\n+2171 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n+2172\n+2173 Iterator end = graph_->endEdges(vertex);\n+2174 for(Iterator edge = graph_->beginEdges(vertex); edge != end; ++edge) {\n+2175 if(aggregates[edge.target()] != AggregatesMap::UNAGGREGATED &&\n+2176 graph_->getVertexProperties(edge.target()).isolated() == graph_-\n+>getVertexProperties(edge.source()).isolated()) {\n+2177 if( graph_->getVertexProperties(vertex).isolated() ||\n+2178 ((edge.properties().depends() || edge.properties().influences())\n+2179 && admissible(vertex, aggregates[edge.target()], aggregates)))\n+2180 return edge.target();\n+2181 }\n+2182 }\n+2183 return AggregatesMap::UNAGGREGATED;\n+2184 }\n+2185\n+2186 template\n+2187 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br(const\n+_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph)\n+2188 : Counter(), graph_(graph)\n+2189 {}\n+2190\n+2191 template\n+2192 void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n+_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n+2193 {\n+2194 if(graph_.getVertexProperties(edge.target()).front())\n+2195 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+2196 }\n+2197\n+2198 template\n+2199 int Aggregator::noFrontNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex) const\n+2200 {\n+2201 FrontNeighbourCounter counter(*graph_);\n+2202 _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(*graph_, vertex, counter);\n+2203 return counter.value();\n+2204 }\n+2205 template\n+2206 inline bool Aggregator::connected(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n+2207 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n+2208 const AggregatesMap& aggregates) const\n+2209 {\n+2210 typedef typename G::ConstEdgeIterator iterator;\n+2211 const iterator end = graph_->endEdges(vertex);\n+2212 for(iterator edge = graph_->beginEdges(vertex); edge != end; ++edge)\n+2213 if(aggregates[edge.target()]==aggregate)\n+2214 return true;\n+2215 return false;\n+2216 }\n+2217 template\n+2218 inline bool Aggregator::connected(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n+2219 const SLList& aggregateList,\n+2220 const AggregatesMap& aggregates) const\n+2221 {\n+2222 typedef typename SLList::const_iterator Iter;\n+2223 for(Iter i=aggregateList.begin(); i!=aggregateList.end(); ++i)\n+2224 if(connected(vertex, *i, aggregates))\n+2225 return true;\n+2226 return false;\n+2227 }\n+2228\n+2229 template\n+2230 template\n+2231 void Aggregator::growIsolatedAggregate(const _\bV_\be_\br_\bt_\be_\bx& seed, const\n+AggregatesMap& aggregates, const C& c)\n+2232 {\n+2233 SLList connectedAggregates;\n+2234 nonisoNeighbourAggregate(seed, aggregates,connectedAggregates);\n+2235\n+2236 while(aggregate_->_\bs_\bi_\bz_\be()< c.minAggregateSize() && aggregate_->_\bc_\bo_\bn_\bn_\be_\bc_\bt_\bS_\bi_\bz_\be\n+() < c.maxConnectivity()) {\n+2237 double maxCon=-1;\n+2238 std::size_t maxFrontNeighbours=0;\n+2239\n+2240 _\bV_\be_\br_\bt_\be_\bx candidate=AggregatesMap::UNAGGREGATED;\n+2241\n+2242 typedef typename std::vector::const_iterator Iterator;\n+2243\n+2244 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {\n+2245 if(distance(*vertex, aggregates)>c.maxDistance())\n+2246 continue; // distance of proposes aggregate too big\n+2247\n+2248 if(connectedAggregates.size()>0) {\n+2249 // there is already a neighbour cluster\n+2250 // front node must be connected to same neighbour cluster\n+2251\n+2252 if(!connected(*vertex, connectedAggregates, aggregates))\n+2253 continue;\n+2254 }\n+2255\n+2256 double con = connectivity(*vertex, aggregates);\n+2257\n+2258 if(con == maxCon) {\n+2259 std::size_t frontNeighbours = noFrontNeighbours(*vertex);\n+2260\n+2261 if(frontNeighbours >= maxFrontNeighbours) {\n+2262 maxFrontNeighbours = frontNeighbours;\n+2263 candidate = *vertex;\n+2264 }\n+2265 }else if(con > maxCon) {\n+2266 maxCon = con;\n+2267 maxFrontNeighbours = noFrontNeighbours(*vertex);\n+2268 candidate = *vertex;\n+2269 }\n+2270 }\n+2271\n+2272 if(candidate==AggregatesMap::UNAGGREGATED)\n+2273 break;\n+2274\n+2275 aggregate_->_\ba_\bd_\bd(candidate);\n+2276 }\n+2277 }\n+2278\n+2279 template\n+2280 template\n+2281 void Aggregator::growAggregate(const _\bV_\be_\br_\bt_\be_\bx& seed, const\n+AggregatesMap& aggregates, const C& c)\n+2282 {\n+2283 using std::min;\n+2284\n+2285 std::size_t distance_ =0;\n+2286 while(aggregate_->_\bs_\bi_\bz_\be() < c.minAggregateSize()&& distance_ candidates;\n+2291 candidates.reserve(30);\n+2292\n+2293 typedef typename std::vector::const_iterator Iterator;\n+2294\n+2295 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {\n+2296 // Only nonisolated nodes are considered\n+2297 if(graph_->getVertexProperties(*vertex).isolated())\n+2298 continue;\n+2299\n+2300 int twoWayCons = twoWayConnections(*vertex, aggregate_->_\bi_\bd(), aggregates);\n+2301\n+2302 /* The case of two way connections. */\n+2303 if( maxTwoCons == twoWayCons && twoWayCons > 0) {\n+2304 double con = connectivity(*vertex, aggregates);\n+2305\n+2306 if(con == maxCon) {\n+2307 int neighbours = noFrontNeighbours(*vertex);\n+2308\n+2309 if(neighbours > maxNeighbours) {\n+2310 maxNeighbours = neighbours;\n+2311 candidates.clear();\n+2312 candidates.push_back(*vertex);\n+2313 }else{\n+2314 candidates.push_back(*vertex);\n+2315 }\n+2316 }else if( con > maxCon) {\n+2317 maxCon = con;\n+2318 maxNeighbours = noFrontNeighbours(*vertex);\n+2319 candidates.clear();\n+2320 candidates.push_back(*vertex);\n+2321 }\n+2322 }else if(twoWayCons > maxTwoCons) {\n+2323 maxTwoCons = twoWayCons;\n+2324 maxCon = connectivity(*vertex, aggregates);\n+2325 maxNeighbours = noFrontNeighbours(*vertex);\n+2326 candidates.clear();\n+2327 candidates.push_back(*vertex);\n+2328\n+2329 // two way connections precede\n+2330 maxOneCons = std::numeric_limits::max();\n+2331 }\n+2332\n+2333 if(twoWayCons > 0)\n+2334 {\n+2335 continue; // THis is a two-way node, skip tests for one way nodes\n+2336 }\n+2337\n+2338 /* The one way case */\n+2339 int oneWayCons = oneWayConnections(*vertex, aggregate_->_\bi_\bd(), aggregates);\n+2340\n+2341 if(oneWayCons==0)\n+2342 continue; // No strong connections, skip the tests.\n+2343\n+2344 if(!admissible(*vertex, aggregate_->_\bi_\bd(), aggregates))\n+2345 continue;\n+2346\n+2347 if( maxOneCons == oneWayCons && oneWayCons > 0) {\n+2348 double con = connectivity(*vertex, aggregates);\n+2349\n+2350 if(con == maxCon) {\n+2351 int neighbours = noFrontNeighbours(*vertex);\n+2352\n+2353 if(neighbours > maxNeighbours) {\n+2354 maxNeighbours = neighbours;\n+2355 candidates.clear();\n+2356 candidates.push_back(*vertex);\n+2357 }else{\n+2358 if(neighbours==maxNeighbours)\n+2359 {\n+2360 candidates.push_back(*vertex);\n+2361 }\n+2362 }\n+2363 }else if( con > maxCon) {\n+2364 maxCon = con;\n+2365 maxNeighbours = noFrontNeighbours(*vertex);\n+2366 candidates.clear();\n+2367 candidates.push_back(*vertex);\n+2368 }\n+2369 }else if(oneWayCons > maxOneCons) {\n+2370 maxOneCons = oneWayCons;\n+2371 maxCon = connectivity(*vertex, aggregates);\n+2372 maxNeighbours = noFrontNeighbours(*vertex);\n+2373 candidates.clear();\n+2374 candidates.push_back(*vertex);\n+2375 }\n+2376 }\n+2377\n+2378\n+2379 if(!candidates.size())\n+2380 break; // No more candidates found\n+2381 distance_=distance(seed, aggregates);\n+2382 candidates.resize(min(candidates.size(), c.maxAggregateSize()-\n+2383 aggregate_->_\bs_\bi_\bz_\be()));\n+2384 aggregate_->_\ba_\bd_\bd(candidates);\n+2385 }\n+2386 }\n+2387\n+2388 template\n+2389 template\n+2390 std::tuple _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs(const M&\n+matrix, G& graph, const C& criterion,\n+2391 bool finestLevel)\n+2392 {\n+2393 Aggregator aggregator;\n+2394 return aggregator.build(matrix, graph, *this, criterion, finestLevel);\n+2395 }\n+2396\n+2397 template\n+2398 template\n+2399 std::tuple _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd(const M& m, G& graph,\n+AggregatesMap& aggregates, const C& c,\n+2400 bool finestLevel)\n+2401 {\n+2402 using std::max;\n+2403 using std::min;\n+2404 // Stack for fast vertex access\n+2405 Stack stack_(graph, *this, aggregates);\n+2406\n+2407 graph_ = &graph;\n+2408\n+2409 aggregate_ = new Aggregate(graph, aggregates, connected_,\n+front_);\n+2410\n+2411 Timer watch;\n+2412 watch.reset();\n+2413\n+2414 _\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(graph, m, c, finestLevel);\n+2415\n+2416 dverb<<\"Build dependency took \"<< watch.elapsed()<<\" seconds.\"<::ISOLATED;\n+2437 ++skippedAggregates;\n+2438 continue;\n+2439 }\n+2440\n+2441 if(graph.getVertexProperties(seed).isolated()) {\n+2442 if(c.skipIsolated()) {\n+2443 // isolated vertices are not aggregated but skipped on the coarser levels.\n+2444 aggregates[seed]=AggregatesMap::ISOLATED;\n+2445 ++skippedAggregates;\n+2446 // skip rest as no agglomeration is done.\n+2447 continue;\n+2448 }else{\n+2449 aggregate_->_\bs_\be_\be_\bd(seed);\n+2450 growIsolatedAggregate(seed, aggregates, c);\n+2451 }\n+2452 }else{\n+2453 aggregate_->_\bs_\be_\be_\bd(seed);\n+2454 growAggregate(seed, aggregates, c);\n+2455 }\n+2456\n+2457 /* The rounding step. */\n+2458 while(!(graph.getVertexProperties(seed).isolated()) && aggregate_->_\bs_\bi_\bz_\be()\n+< c.maxAggregateSize()) {\n+2459\n+2460 std::vector candidates;\n+2461 candidates.reserve(30);\n+2462\n+2463 typedef typename std::vector::const_iterator Iterator;\n+2464\n+2465 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {\n+2466\n+2467 if(graph.getVertexProperties(*vertex).isolated())\n+2468 continue; // No isolated nodes here\n+2469\n+2470 if(twoWayConnections( *vertex, aggregate_->_\bi_\bd(), aggregates) == 0 &&\n+2471 (oneWayConnections( *vertex, aggregate_->_\bi_\bd(), aggregates) == 0 ||\n+2472 !admissible( *vertex, aggregate_->_\bi_\bd(), aggregates) ))\n+2473 continue;\n+2474\n+2475 std::pair neighbourPair=neighbours(*vertex, aggregate_->_\bi_\bd(),\n+2476 aggregates);\n+2477\n+2478 //if(aggregateNeighbours(*vertex, aggregate_->id(), aggregates) <=\n+unusedNeighbours(*vertex, aggregates))\n+2479 // continue;\n+2480\n+2481 if(neighbourPair.first >= neighbourPair.second)\n+2482 continue;\n+2483\n+2484 if(distance(*vertex, aggregates) > c.maxDistance())\n+2485 continue; // Distance too far\n+2486 candidates.push_back(*vertex);\n+2487 break;\n+2488 }\n+2489\n+2490 if(!candidates.size()) break; // no more candidates found.\n+2491\n+2492 candidates.resize(min(candidates.size(), c.maxAggregateSize()-\n+2493 aggregate_->_\bs_\bi_\bz_\be()));\n+2494 aggregate_->_\ba_\bd_\bd(candidates);\n+2495\n+2496 }\n+2497\n+2498 // try to merge aggregates consisting of only one nonisolated vertex with\n+other aggregates\n+2499 if(aggregate_->_\bs_\bi_\bz_\be()==1 && c.maxAggregateSize()>1) {\n+2500 if(!graph.getVertexProperties(seed).isolated()) {\n+2501 _\bV_\be_\br_\bt_\be_\bx mergedNeighbour = mergeNeighbour(seed, aggregates);\n+2502\n+2503 if(mergedNeighbour != AggregatesMap::UNAGGREGATED) {\n+2504 // assign vertex to the neighbouring cluster\n+2505 aggregates[seed] = aggregates[mergedNeighbour];\n+2506 aggregate_->_\bi_\bn_\bv_\ba_\bl_\bi_\bd_\ba_\bt_\be();\n+2507 }else{\n+2508 ++avg;\n+2509 minA=min(minA,static_cast(1));\n+2510 maxA=max(maxA,static_cast(1));\n+2511 ++oneAggregates;\n+2512 ++conAggregates;\n+2513 }\n+2514 }else{\n+2515 ++avg;\n+2516 minA=min(minA,static_cast(1));\n+2517 maxA=max(maxA,static_cast(1));\n+2518 ++oneAggregates;\n+2519 ++isoAggregates;\n+2520 }\n+2521 ++avg;\n+2522 }else{\n+2523 avg+=aggregate_->_\bs_\bi_\bz_\be();\n+2524 minA=min(minA,aggregate_->_\bs_\bi_\bz_\be());\n+2525 maxA=max(maxA,aggregate_->_\bs_\bi_\bz_\be());\n+2526 if(graph.getVertexProperties(seed).isolated())\n+2527 ++isoAggregates;\n+2528 else\n+2529 ++conAggregates;\n+2530 }\n+2531\n+2532 }\n+2533\n+2534 Dune::dinfo<<\"connected aggregates: \"<0)\n+2537 Dune::dinfo<<\" one node aggregates: \"<\n+2548 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bS_\bt_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph, const Aggregator&\n+aggregatesBuilder,\n+2549 const AggregatesMap& aggregates)\n+2550 : graph_(graph), aggregatesBuilder_(aggregatesBuilder), aggregates_\n+(aggregates), begin_(graph.begin()), end_(graph.end())\n+2551 {\n+2552 //vals_ = new Vertex[N];\n+2553 }\n+2554\n+2555 template\n+2556 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\b~_\bS_\bt_\ba_\bc_\bk()\n+2557 {\n+2558 //Dune::dverb << \"Max stack size was \"<\n+2563 const typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bN_\bu_\bl_\bl_\bE_\bn_\bt_\br_\by\n+2564 = std::numeric_limits::max();\n+2565\n+2566 template\n+2567 inline typename G::VertexDescriptor _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bp_\bo_\bp()\n+2568 {\n+2569 for(; begin_!=end_ && aggregates_[*begin_] != AggregatesMap::\n+UNAGGREGATED; ++begin_) ;\n+2570\n+2571 if(begin_!=end_)\n+2572 {\n+2573 typename G::VertexDescriptor current=*begin_;\n+2574 ++begin_;\n+2575 return current;\n+2576 }else\n+2577 return NullEntry;\n+2578 }\n+2579\n+2580#endif // DOXYGEN\n+2581\n+2582 template\n+_\b2_\b5_\b8_\b3 void _\bp_\br_\bi_\bn_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b2_\bd(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>& aggregates, int n, int m,\n+std::ostream& os)\n+2584 {\n+2585 using std::max;\n+2586\n+2587 std::ios_base::fmtflags oldOpts=os.flags();\n+2588\n+2589 os.setf(std::ios_base::right, std::ios_base::adjustfield);\n+2590\n+2591 V maxVal=0;\n+2592 int width=1;\n+2593\n+2594 for(int i=0; i< n*m; i++)\n+2595 maxVal=max(maxVal, aggregates[i]);\n+2596\n+2597 for(int i=10; i < 1000000; i*=10)\n+2598 if(maxVal/i>0)\n+2599 width++;\n+2600 else\n+2601 break;\n+2602\n+2603 for(int j=0, entry=0; j < m; j++) {\n+2604 for(int i=0; i::iterator valIter_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:189\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n+Matrix::ConstColIterator ColIter\n+Constant column iterator of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:154\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh\n+std::size_t breadthFirstSearch(const VertexDescriptor &start, const\n+AggregateDescriptor &aggregate, const G &graph, L &visited, F1\n+&aggregateVisitor, F2 &nonAggregateVisitor, VM &visitedMap) const\n+Breadth first search within an aggregate.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n+PoolAllocator< VertexDescriptor, 100 > Allocator\n+The allocator we use for our lists and the set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:586\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+iterator begin()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:737\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bi_\bd\n+int id()\n+Get the id identifying the aggregate.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bn_\bo_\br_\bm_\b_\n+Norm norm_\n+The functor for calculating the norm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:302\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+MatrixGraph::VertexDescriptor Vertex\n+The vertex identifier.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:920\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+AggregationCriterion()\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:66\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n+const Matrix * matrix_\n+The matrix we work on.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:357\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+auto operator()(const M &m, typename std::enable_if_t< Dune::IsNumber< M >::\n+value > *sfinae=nullptr) const\n+Compute the norm of a scalar.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:406\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw\n+void initRow(const Row &row, int index)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+SymmetricMatrixDependency(const Parameters &parms)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:168\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+M Matrix\n+The matrix type we build the dependency of.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:258\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br\n+Counter()\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+G MatrixGraph\n+The matrix graph type used.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:915\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bn_\bo_\br_\bm_\b_\n+Norm norm_\n+The functor for calculating the norm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:363\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const EdgeIterator &edge) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:601\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+SymmetricCriterion()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:524\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+Dependency()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:290\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n+void examine(const ColIter &col)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+M Matrix\n+The matrix type we build the dependency of.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:319\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_\n+real_type diagonal_\n+The norm of the current diagonal.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:187\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bN_\bo_\br_\bm\n+N Norm\n+The norm to use for examining the matrix entries.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:263\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n+iterator end()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:742\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+UnSymmetricCriterion(const Parameters &parms)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:541\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bT_\bw_\bo_\bW_\ba_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw\n+void initRow(const Row &row, int index)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:201\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n+bool isIsolated()\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bN_\bu_\bl_\bl_\bE_\bn_\bt_\br_\by\n+static const Vertex NullEntry\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:1008\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n+void examine(const ColIter &col)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:214\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+Dependency(const Parameters &parms)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:286\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\bo_\bw_\b_\n+int row_\n+index of the currently evaluated row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:185\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bb_\bu_\bi_\bl_\bd\n+std::tuple< int, int, int, int > build(const M &m, G &graph, AggregatesMap<\n+Vertex > &aggregates, const C &c, bool finestLevel)\n+Build the aggregates.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br\n+FrontNeighbourCounter(const MatrixGraph &front)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bR_\bo_\bw\n+Matrix::row_type Row\n+Constant Row iterator of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:329\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n+const Matrix * matrix_\n+The matrix we work on.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:296\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+const AggregateDescriptor & operator[](const VertexDescriptor &v) const\n+Get the aggregate a vertex belongs to.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n+void examine(G &graph, const typename G::EdgeIterator &edge, const ColIter\n+&col)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br\n+AggregateVisitor(const AggregatesMap< Vertex > &aggregates, const\n+AggregateDescriptor &aggregate, Visitor &visitor)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n+Matrix::ConstColIterator ColIter\n+Constant column iterator of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:334\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+~AggregatesMap()\n+Destructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Matrix::field_type field_type\n+The current max value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:179\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n+void decrement()\n+Decrement counter.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n+Aggregate(MatrixGraph &graph, AggregatesMap< Vertex > &aggregates, VertexSet\n+&connectivity, std::vector< Vertex > &front_)\n Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:34\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\bi_\bn_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bS_\bi_\bz_\be\n-void setMinAggregateSize(std::size_t size)\n-Set the minimum number of nodes a aggregate has to consist of.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:188\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\ba_\bx_\bL_\be_\bv_\be_\bl\n-int maxLevel() const\n-Get the maximum number of levels allowed in the hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:270\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b:_\b:_\bV_\bi_\bs_\bi_\bt_\bo_\br\n+V Visitor\n+The type of the adapted visitor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:1064\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bS_\bp_\bh_\be_\br_\be_\bM_\ba_\bp\n+std::size_t * SphereMap\n+Type of the mapping of aggregate members onto distance spheres.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:809\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+AggregationCriterion(const Parameters &parms)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bR_\bo_\bw\n+Matrix::row_type Row\n+Constant Row iterator of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:268\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bc_\bo_\bn_\bn_\be_\bc_\bt_\bS_\bi_\bz_\be\n+VertexSet::size_type connectSize()\n+Get tne number of connections to other aggregates.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bv_\ba_\bl_\bs_\b_\n+std::vector< real_type > vals_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:188\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bN_\bo_\br_\bm\n+N Norm\n+The norm to use for examining the matrix entries.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:324\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b2_\bd\n+void printAggregates2d(const AggregatesMap< V > &aggregates, int n, int m,\n+std::ostream &os)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:2583\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bi_\bn_\bv_\ba_\bl_\bi_\bd_\ba_\bt_\be\n+void invalidate()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:822\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:725\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_\n+real_type maxValue_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:181\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bn_\bo_\br_\bm_\b_\n+Norm norm_\n+The functor for calculating the norm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:183\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+VertexSet::const_iterator const_iterator\n+Const iterator over a vertex list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:804\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+SymmetricCriterion(const Parameters &parms)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:521\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+MatrixGraph::VertexDescriptor AggregateDescriptor\n+The type of the aggregate descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:923\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_\n+real_type maxValue_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:361\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt\n+void init(const Matrix *matrix)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:195\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_\n+real_type diagonal_\n+The norm of the current diagonal.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:367\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+AggregateDescriptor * iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:735\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+SymmetricDependency(const Parameters &parms)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:348\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+FieldTraits< field_type >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:360\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br\n+~Aggregator()\n+Destructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n+void examine(G &graph, const typename G::EdgeIterator &edge, const ColIter\n+&col)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\ba_\bd_\bd\n+void add(const Vertex &vertex)\n+Add a vertex to the aggregate.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\bo_\bl_\bi_\bc_\by\n+T DependencyPolicy\n+The policy for calculating the dependency graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:55\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\ba_\bd_\bd\n+void add(std::vector< Vertex > &vertex)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n+void examine(const ColIter &col)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br\n+Aggregator()\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n+Examine an edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br\n+FrontMarker(std::vector< Vertex > &front, MatrixGraph &graph)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const\n+compute the norm of a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:506\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt\n+void init(const Matrix *matrix)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs\n+int visitNeighbours(const G &graph, const typename G::VertexDescriptor &vertex,\n+V &visitor)\n+Visit all neighbour vertices of a vertex in a graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc\n void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)\n Sets reasonable default values for an isotropic problem.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:109\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-AggregationParameters()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:730\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+V AggregateDescriptor\n+The aggregate descriptor type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:580\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD\n+static const V ISOLATED\n+Identifier of isolated vertices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:571\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\bo_\bw_\b_\n+int row_\n+index of the currently evaluated row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:365\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+SymmetricMatrixDependency()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:171\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br\n+DependencyCounter()\n Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\bk_\bi_\bp_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n-bool skipIsolated() const\n-Whether isolated aggregates will not be represented on the coarse level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:161\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-Parameters(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2,\n-double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:493\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bn_\bT_\ba_\br_\bg_\be_\bt\n-void setCoarsenTarget(int nodes)\n-Set the maximum number of unknowns allowed on the coarsest level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:278\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bN_\bo_\bP_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs\n-void setNoPreSmoothSteps(std::size_t steps)\n-Set the number of presmoothing steps to apply.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:420\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be\n-AccumulationMode\n-Identifiers for the different accumulation modes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:232\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bB_\be_\bt_\ba\n-void setBeta(double b)\n-Set threshold for marking nodes as isolated. The default value is 1.0E-5.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:42\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bm_\ba_\bx_\bD_\bi_\bs_\bt_\ba_\bn_\bc_\be\n-std::size_t maxDistance() const\n-Get the maximal distance allowed between two nodes in a aggregate.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:144\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-CoarseningParameters(int maxLevel=100, int coarsenTarget=1000, double\n-minCoarsenRate=1.2, double prolongDamp=1.6, AccumulationMode\n-accumulate=successiveAccu)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bp_\bo_\bp\n+Vertex pop()\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_\n+real_type diagonal_\n+The norm of the current diagonal.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:306\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n+std::size_t noVertices() const\n+Get the number of vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bA_\bn_\bi_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc\n+void setDefaultValuesAnisotropic(std::size_t dim, std::size_t diameter=2)\n+Sets reasonable default values for an aisotropic problem.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:105\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+AggregatesMap(std::size_t noVertices)\n+Constructs with allocating memory.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Matrix::field_type field_type\n+The current max value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:359\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+AggregateDescriptor & operator[](const VertexDescriptor &v)\n+Get the aggregate a vertex belongs to.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+AggregatesMap()\n+Constructs without allocating memory.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+int value()\n+Access the current count.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bL_\bi_\bs_\bt\n+SLList< VertexDescriptor, Allocator > VertexList\n+The type of a single linked list of vertex descriptors.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:592\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\b~_\bS_\bt_\ba_\bc_\bk\n+~Stack()\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br\n+ConnectivityCounter(const VertexSet &connected, const AggregatesMap< Vertex >\n+&aggregates)\n Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:356\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bG_\ba_\bm_\bm_\ba\n-void setGamma(std::size_t gamma)\n-Set the value of gamma; 1 for V-cycle, 2 for W-cycle.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:453\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\be\n-void setAccumulate(bool accu)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:324\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bx_\bD_\bi_\bs_\bt_\ba_\bn_\bc_\be\n-void setMaxDistance(std::size_t distance)\n-Set the maximal distance allowed between two nodes in a aggregate.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:154\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bd_\be_\bb_\bu_\bg_\bL_\be_\bv_\be_\bl\n-int debugLevel() const\n-Get the debugging Level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:411\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b:_\b:_\bg_\be_\bt_\bN_\bo_\bP_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\bS_\bt_\be_\bp_\bs\n-std::size_t getNoPostSmoothSteps() const\n-Get the number of postsmoothing steps to apply.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:445\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu\n-@ atOnceAccu\n-Accumulate data to one process at once.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:244\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bn_\bo_\bA_\bc_\bc_\bu\n-@ noAccu\n-No data accumulution.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:238\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu\n-@ successiveAccu\n-Successively accumulate to fewer processes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:248\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bs_\bi_\bz_\be\n+VertexSet::size_type size()\n+Get the size of the aggregate.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+get an iterator over the vertices of the aggregate.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt\n+void init(const Matrix *matrix)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+UnSymmetricCriterion()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:544\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+const AggregateDescriptor * const_iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:723\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\bo_\bw_\b_\n+int row_\n+index of the currently evaluated row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:304\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bS_\bt_\ba_\bc_\bk\n+Stack(const MatrixGraph &graph, const Aggregator< G > &aggregatesBuilder, const\n+AggregatesMap< Vertex > &aggregates)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+FieldTraits< field_type >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:180\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw\n+void initRow(const Row &row, int index)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+M Matrix\n+The matrix type we build the dependency of.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:139\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+FieldTraits< field_type >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n+const Matrix * matrix_\n+The matrix we work on.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:177\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt\n+S VertexSet\n+The type of a single linked list of vertex descriptors.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:801\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const\n+compute the norm of a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:490\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD\n+static const V UNAGGREGATED\n+Identifier of not yet aggregated vertices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:566\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh\n+std::size_t breadthFirstSearch(const VertexDescriptor &start, const\n+AggregateDescriptor &aggregate, const G &graph, F &aggregateVisitor, VM\n+&visitedMap) const\n+Breadth first search within an aggregate.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Matrix::field_type field_type\n+The current max value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:298\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bO_\bn_\be_\bW_\ba_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+std::ostream & operator<<(std::ostream &os, const AggregationCriterion< T >\n+&criterion)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:113\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n+bool isIsolated()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:240\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n+void allocate(std::size_t noVertices)\n+Allocate memory for holding the information.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bN_\bo_\br_\bm\n+N Norm\n+The norm to use for examining the matrix entries.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:144\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\bo_\bw_\bS_\bu_\bm_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const\n+compute the norm of a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:473\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\br_\be_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+void reconstruct(const Vertex &vertex)\n+Reconstruct the aggregat from an seed node.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+const_iterator begin() const\n+get an iterator over the vertices of the aggregate.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+FieldTraits< typenameM::field_type >::real_type operator()(const M &m, typename\n+std::enable_if_t::value > *sfinae=nullptr) const\n+compute the norm of a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:390\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+MatrixGraph::VertexDescriptor Vertex\n+The vertex descriptor type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:789\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bs_\be_\be_\bd\n+void seed(const Vertex &vertex)\n+Initialize the aggregate with one vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n+bool isIsolated()\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+SymmetricDependency()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:351\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bc_\bl_\be_\ba_\br\n+void clear()\n+Clear the aggregate.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bf_\br_\be_\be\n+void free()\n+Free the allocated memory.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n+void increment()\n+Increment counter.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+void buildDependency(G &graph, const typename C::Matrix &matrix, C criterion,\n+bool finestLevel)\n+Build the dependency of the matrix graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+V VertexDescriptor\n+The vertex descriptor type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:575\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_\n+real_type maxValue_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:300\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs\n+std::tuple< int, int, int, int > buildAggregates(const M &matrix, G &graph,\n+const C &criterion, bool finestLevel)\n+Build the aggregates.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bR_\bo_\bw\n+Matrix::row_type Row\n+Constant Row iterator of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n+PoolAllocator< Vertex, 100 > Allocator\n+The allocator we use for our lists and the set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:795\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+G MatrixGraph\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:785\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm_\b:_\b:_\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg\n+@ is_sign_preserving\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:483\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b:_\b:_\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg\n+@ is_sign_preserving\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:382\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm_\b:_\b:_\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg\n+@ is_sign_preserving\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:499\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\bo_\bw_\bS_\bu_\bm_\b:_\b:_\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg\n+@ is_sign_preserving\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:466\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-Parameters needed to check whether a node depends on another.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:31\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-Parameters needed for the aggregation process.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:84\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bi_\bn_\bg_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-Parameters for the complete coarsening process.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:258\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n+Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< T >::field_type field_type\n+Export the type representing the underlying field.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:565\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::const_iterator ConstColIterator\n+Const iterator for the entries of each row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n+MatrixImp::DenseMatrixBase< T, A >::window_type row_type\n+The type implementing a matrix row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:574\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+Base class of all aggregation criterions.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:49\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+Dependency policy for symmetric matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:134\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+Dependency policy for symmetric matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:253\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n+Dependency policy for symmetric matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:314\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n+Norm that uses only the [N][N] entry of the block to determine couplings.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:379\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\bi_\br_\bs_\bt_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n+Norm that uses only the [0][0] entry of the block to determine couplings.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:455\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\bo_\bw_\bS_\bu_\bm\n+Functor using the row sum (infinity) norm to determine strong couplings.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:463\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:480\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:496\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+Criterion taking advantage of symmetric matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:519\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+Criterion suitable for unsymmetric matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:539\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br\n+Class for building the aggregates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:909\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+Class providing information about the mapping of the vertices onto aggregates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br\n+A Dummy visitor that does nothing for each visited edge.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:598\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n+A class for temporarily storing the vertices of an aggregate in.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:778\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+M::size_type VertexDescriptor\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+EdgeIteratorT< const MatrixGraph< Matrix > > ConstEdgeIterator\n+The constant edge iterator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:298\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+Iterator over all edges starting from a vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+The vertex iterator type of the graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:209\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n All parameters for AMG.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:393\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00083.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00083.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: renumberer.hh File Reference\n+dune-istl: properties.hh File Reference\n \n \n \n \n \n \n \n@@ -71,41 +71,44 @@\n \n
    \n
    \n
    \n \n-
    renumberer.hh File Reference
    \n+Namespaces
    \n+ \n
    \n
    \n-
    #include "aggregates.hh"
    \n+\n+

    Provides classes for handling internal properties in a graph. \n+More...

    \n+
    #include <dune/common/propertymap.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::Amg::AggregateRenumberer< G >
    struct  Dune::Amg::VertexVisitedTag
     Tag idnetifying the visited property of a vertex. More...
     
    class  Dune::Amg::RandomAccessBundledPropertyMap< C, K, i, T, R >
     A property map that extracts one property out of a bundle using operator[]() More...
     
    \n \n \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-\n-\n-\n-\n

    \n-Functions

    template<class G , class I , class V >
    void Dune::Amg::renumberAggregates (const G &graph, I index, I endIndex, V &visitedMap, AggregatesMap< typename G::VertexDescriptor > &aggregates)
     
    \n-
    \n+

    Detailed Description

    \n+

    Provides classes for handling internal properties in a graph.

    \n+
    Author
    Markus Blatt
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,26 +1,33 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-renumberer.hh File Reference\n-#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+properties.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n+\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n+Provides classes for handling internal properties in a graph. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\b _\bG_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n+\u00a0 Tag idnetifying the visited property of a vertex. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\b _\bC_\b,_\b _\bK_\b,_\b _\bi_\b,_\b _\bT_\b,_\b _\bR_\b _\b>\n+\u00a0 A property map that extracts one property out of a bundle using\n+ _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b(_\b) _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs (const G &graph, I index, I endIndex, V\n- &visitedMap, _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp< typename G::VertexDescriptor > &aggregates)\n-\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Provides classes for handling internal properties in a graph.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00083_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00083_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: renumberer.hh Source File\n+dune-istl: properties.hh Source File\n \n \n \n \n \n \n \n@@ -74,118 +74,95 @@\n \n
    \n \n
    \n
    \n
    \n-
    renumberer.hh
    \n+
    properties.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_RENUMBERER_HH
    \n-
    6#define DUNE_AMG_RENUMBERER_HH
    \n+
    5#ifndef DUNE_ISTL_AMG_PROPERTIES_HH
    \n+
    6#define DUNE_ISTL_AMG_PROPERTIES_HH
    \n
    7
    \n-
    8#include "aggregates.hh"
    \n+
    8#include <dune/common/propertymap.hh>
    \n
    9
    \n
    10namespace Dune
    \n
    11{
    \n-
    12 namespace Amg
    \n-
    13 {
    \n-
    14 template<class G>
    \n-
    \n-\n-
    16 {
    \n-
    17 public:
    \n-
    19 typedef typename G::VertexDescriptor Vertex;
    \n-
    20
    \n-\n-
    26
    \n-
    28 operator Vertex() const;
    \n-
    29
    \n-
    30 void operator()(const typename G::ConstEdgeIterator& edge);
    \n+
    12
    \n+
    13 namespace Amg
    \n+
    14 {
    \n+
    \n+\n+
    29 {};
    \n+
    \n+
    30
    \n
    31
    \n-
    32 void operator++();
    \n-
    33
    \n-
    34 protected:
    \n-\n-\n-
    37 };
    \n-
    \n-
    38
    \n-
    39 template<class G>
    \n-
    \n-\n-
    41 : number_(0), aggregates_(aggregates)
    \n-
    42 {}
    \n-
    \n-
    43
    \n-
    44 template<class G>
    \n-
    \n-\n-
    46 {
    \n-
    47 return number_;
    \n-
    48 }
    \n-
    \n-
    49
    \n-
    50 template<class G>
    \n-
    \n-
    51 void AggregateRenumberer<G>::operator()(const typename G::ConstEdgeIterator& edge)
    \n-
    52 {
    \n-
    53 aggregates_[edge.target()]=number_;
    \n-
    54 }
    \n-
    \n-
    55
    \n-
    56 template<class G>
    \n-
    \n-\n-
    58 {
    \n-
    59 ++number_;
    \n-
    60 }
    \n-
    \n-
    61
    \n-
    62 template<class G, class I, class V>
    \n-
    \n-
    63 void renumberAggregates(const G& graph, I index, I endIndex, V& visitedMap,
    \n-\n-
    65 {
    \n-
    66 AggregateRenumberer<G> renumberer(aggregates);
    \n-
    67
    \n-
    68 for(I index1=index; index1 != endIndex; ++index1)
    \n-
    69 if(aggregates[index1.index()]!=AggregatesMap<typename G::VertexDescriptor>::ISOLATED &&
    \n-
    70 !get(visitedMap, index1.index())) {
    \n-
    71
    \n-
    72 aggregates.template breadthFirstSearch<false>(index1.index(), aggregates[index1.index()],
    \n-
    73 graph, renumberer, visitedMap);
    \n-
    74 aggregates[index1.index()] = renumberer;
    \n-
    75 ++renumberer;
    \n-
    76 }
    \n-
    77 for(; index != endIndex; ++index)
    \n-
    78 put(visitedMap, index.index(), false);
    \n-
    79 }
    \n-
    \n-
    80
    \n-
    81 } // namespace AMG
    \n-
    82} // namespace Dune
    \n-
    83#endif
    \n-
    Provides classes for the Coloring process of AMG.
    \n+
    38 template<typename C, typename K, std::size_t i,typename T=typename C::ValueType,
    \n+
    39 typename R = typename C::Reference>
    \n+
    \n+\n+
    41 : public RAPropertyMapHelper<R,
    \n+
    42 RandomAccessBundledPropertyMap<C,K,i,T,R> >
    \n+
    43 {
    \n+
    44 public:
    \n+
    46 typedef C Container;
    \n+
    47
    \n+
    49 typedef R Reference;
    \n+
    50
    \n+
    52 typedef K Key;
    \n+
    53
    \n+
    57 typedef LvaluePropertyMapTag Category;
    \n+
    58
    \n+
    59 enum {
    \n+
    61 index = i
    \n+
    62 };
    \n+
    63
    \n+
    \n+
    69 Reference operator[](const Key& key) const
    \n+
    70 {
    \n+
    71 return container_[key][index];
    \n+
    72 }
    \n+
    \n+
    73
    \n+
    \n+\n+
    79 : container_(&container)
    \n+
    80 {}
    \n+
    \n+
    81
    \n+
    \n+\n+
    84 : container_(0)
    \n+
    85 {}
    \n+
    \n+
    86
    \n+
    87 private:
    \n+
    89 Container* container_;
    \n+
    90 };
    \n+
    \n+
    91 }
    \n+
    92}
    \n+
    93
    \n+
    94#endif
    \n+
    Reference operator[](const Key &key) const
    Get the property for a key.
    Definition properties.hh:69
    \n+
    RandomAccessBundledPropertyMap()
    The default constructor.
    Definition properties.hh:83
    \n+
    R Reference
    The reference type of the container.
    Definition properties.hh:49
    \n+
    RandomAccessBundledPropertyMap(Container &container)
    Constructor.
    Definition properties.hh:78
    \n+
    K Key
    The key of the property map.
    Definition properties.hh:52
    \n+
    LvaluePropertyMapTag Category
    The category of the property map.
    Definition properties.hh:57
    \n+
    C Container
    The container that holds the properties.
    Definition properties.hh:46
    \n+
    @ index
    The index of the property in the bundle.
    Definition properties.hh:61
    \n
    Definition allocator.hh:11
    \n-
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    void renumberAggregates(const G &graph, I index, I endIndex, V &visitedMap, AggregatesMap< typename G::VertexDescriptor > &aggregates)
    Definition renumberer.hh:63
    \n-
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n-
    Definition renumberer.hh:16
    \n-
    void operator++()
    Definition renumberer.hh:57
    \n-
    G::VertexDescriptor Vertex
    The vertex type.
    Definition renumberer.hh:19
    \n-
    void operator()(const typename G::ConstEdgeIterator &edge)
    Definition renumberer.hh:51
    \n-
    AggregatesMap< Vertex > & aggregates_
    Definition renumberer.hh:36
    \n-
    AggregateRenumberer(AggregatesMap< Vertex > &aggregates)
    Constructor.
    Definition renumberer.hh:40
    \n-
    Vertex number_
    Definition renumberer.hh:35
    \n+
    Tag idnetifying the visited property of a vertex.
    Definition properties.hh:29
    \n+
    A property map that extracts one property out of a bundle using operator[]()
    Definition properties.hh:43
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,131 +1,110 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-renumberer.hh\n+properties.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_RENUMBERER_HH\n-6#define DUNE_AMG_RENUMBERER_HH\n+5#ifndef DUNE_ISTL_AMG_PROPERTIES_HH\n+6#define DUNE_ISTL_AMG_PROPERTIES_HH\n 7\n-8#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n+8#include \n 9\n 10namespace _\bD_\bu_\bn_\be\n 11{\n-12 namespace Amg\n-13 {\n-14 template\n-_\b1_\b5 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n-16 {\n-17 public:\n-_\b1_\b9 typedef typename G::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n-20\n-25 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br(_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates);\n-26\n-28 operator _\bV_\be_\br_\bt_\be_\bx() const;\n-29\n-30 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename G::ConstEdgeIterator& edge);\n+12\n+13 namespace Amg\n+14 {\n+_\b2_\b8 struct _\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n+29 {};\n+30\n 31\n-32 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n-33\n-34 protected:\n-_\b3_\b5 _\bV_\be_\br_\bt_\be_\bx _\bn_\bu_\bm_\bb_\be_\br_\b_;\n-_\b3_\b6 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b_;\n-37 };\n-38\n-39 template\n-_\b4_\b0 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br(_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n-aggregates)\n-41 : number_(0), aggregates_(aggregates)\n-42 {}\n-43\n-44 template\n-_\b4_\b5 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br _\bV_\be_\br_\bt_\be_\bx() const\n-46 {\n-47 return number_;\n-48 }\n-49\n-50 template\n-_\b5_\b1 void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename G::ConstEdgeIterator&\n-edge)\n-52 {\n-53 aggregates_[edge.target()]=number_;\n-54 }\n-55\n-56 template\n-_\b5_\b7 void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n-58 {\n-59 ++number_;\n-60 }\n-61\n-62 template\n-_\b6_\b3 void _\br_\be_\bn_\bu_\bm_\bb_\be_\br_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs(const G& graph, I index, I endIndex, V& visitedMap,\n-64 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates)\n-65 {\n-66 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b> renumberer(aggregates);\n-67\n-68 for(I index1=index; index1 != endIndex; ++index1)\n-69 if(aggregates[index1.index()]!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:\n-_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD &&\n-70 !_\bg_\be_\bt(visitedMap, index1.index())) {\n-71\n-72 aggregates.template breadthFirstSearch(index1.index(), aggregates\n-[index1.index()],\n-73 graph, renumberer, visitedMap);\n-74 aggregates[index1.index()] = renumberer;\n-75 ++renumberer;\n-76 }\n-77 for(; index != endIndex; ++index)\n-78 put(visitedMap, index.index(), false);\n-79 }\n-80\n-81 } // namespace AMG\n-82} // namespace Dune\n-83#endif\n-_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n-Provides classes for the Coloring process of AMG.\n+38 template\n+_\b4_\b0 class _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n+41 : public RAPropertyMapHelper >\n+43 {\n+44 public:\n+_\b4_\b6 typedef C _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n+47\n+_\b4_\b9 typedef R _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+50\n+_\b5_\b2 typedef K _\bK_\be_\by;\n+53\n+_\b5_\b7 typedef LvaluePropertyMapTag _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n+58\n+59 enum {\n+61 _\bi_\bn_\bd_\be_\bx = i\n+_\b6_\b2 };\n+63\n+_\b6_\b9 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bK_\be_\by& key) const\n+70 {\n+71 return container_[key][_\bi_\bn_\bd_\be_\bx];\n+72 }\n+73\n+_\b7_\b8 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& container)\n+79 : container_(&container)\n+80 {}\n+81\n+_\b8_\b3 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp()\n+84 : container_(0)\n+85 {}\n+86\n+87 private:\n+89 _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br* container_;\n+90 };\n+91 }\n+92}\n+93\n+94#endif\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+Reference operator[](const Key &key) const\n+Get the property for a key.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:69\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n+RandomAccessBundledPropertyMap()\n+The default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:83\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+R Reference\n+The reference type of the container.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:49\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n+RandomAccessBundledPropertyMap(Container &container)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bK_\be_\by\n+K Key\n+The key of the property map.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+LvaluePropertyMapTag Category\n+The category of the property map.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:57\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n+C Container\n+The container that holds the properties.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bi_\bn_\bd_\be_\bx\n+@ index\n+The index of the property in the bundle.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:61\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs\n-void renumberAggregates(const G &graph, I index, I endIndex, V &visitedMap,\n-AggregatesMap< typename G::VertexDescriptor > &aggregates)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-Class providing information about the mapping of the vertices onto aggregates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:16\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n-void operator++()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:57\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-G::VertexDescriptor Vertex\n-The vertex type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const typename G::ConstEdgeIterator &edge)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b_\n-AggregatesMap< Vertex > & aggregates_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n-AggregateRenumberer(AggregatesMap< Vertex > &aggregates)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:40\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bn_\bu_\bm_\bb_\be_\br_\b_\n-Vertex number_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:35\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n+Tag idnetifying the visited property of a vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:29\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n+A property map that extracts one property out of a bundle using operator[]()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:43\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00086.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00086.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: construction.hh File Reference\n+dune-istl: indicescoarsener.hh File Reference\n \n \n \n \n \n \n \n@@ -72,60 +72,50 @@\n
  • dune
  • istl
  • paamg
  • \n \n \n \n
    \n \n-

    Helper classes for the construction of classes without empty constructor. \n+

    Provides a class for building the index set and remote indices on the coarse level. \n More...

    \n-
    #include <dune/istl/bvector.hh>
    \n-#include <dune/istl/operators.hh>
    \n-#include <dune/istl/owneroverlapcopy.hh>
    \n-#include <dune/istl/solvercategory.hh>
    \n-#include "pinfo.hh"
    \n+
    #include <dune/common/parallel/indicessyncer.hh>
    \n+#include <vector>
    \n+#include "renumberer.hh"
    \n+#include <dune/istl/owneroverlapcopy.hh>
    \n+#include "pinfo.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n \n-\n+\n \n-\n+\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    struct  Dune::Amg::ConstructionTraits< BlockVector< T, A > >
    class  Dune::Amg::IndicesCoarsener< T, E >
     
    struct  Dune::Amg::ParallelOperatorArgs< M, C >
    class  Dune::Amg::ParallelIndicesCoarsener< T, E >
     
    struct  Dune::Amg::OwnerOverlapCopyCommunicationArgs
    class  Dune::Amg::IndicesCoarsener< OwnerOverlapCopyCommunication< G, L >, E >
     Coarsen Indices in the parallel case. More...
     
    struct  Dune::Amg::SequentialCommunicationArgs
     
    struct  Dune::Amg::ConstructionTraits< OverlappingSchwarzOperator< M, X, Y, C > >
     
    struct  Dune::Amg::ConstructionTraits< NonoverlappingSchwarzOperator< M, X, Y, C > >
     
    struct  Dune::Amg::MatrixAdapterArgs< M, X, Y >
     
    struct  Dune::Amg::ConstructionTraits< MatrixAdapter< M, X, Y > >
     
    struct  Dune::Amg::ConstructionTraits< SequentialInformation >
     
    struct  Dune::Amg::ConstructionTraits< OwnerOverlapCopyCommunication< T1, T2 > >
    class  Dune::Amg::IndicesCoarsener< SequentialInformation, E >
     Coarsen Indices in the sequential case. More...
     
    \n \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n

    Detailed Description

    \n-

    Helper classes for the construction of classes without empty constructor.

    \n+

    Provides a class for building the index set and remote indices on the coarse level.

    \n
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -2,53 +2,41 @@\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-construction.hh File Reference\n+indicescoarsener.hh File Reference\n _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Helper classes for the construction of classes without empty constructor.\n-_\bM_\bo_\br_\be_\b._\b._\b.\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n+Provides a class for building the index set and remote indices on the coarse\n+level. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \"_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\"\n #include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh>\n #include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\b _\bT_\b,_\b _\bE_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b<_\b _\bM_\b,_\b _\bC_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\b _\bT_\b,_\b _\bE_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bG_\b,_\b _\bL_\b _\b>_\b,_\b _\bE_\b _\b>\n+\u00a0 Coarsen Indices in the parallel case. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC\n- _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,\n- _\bC_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n- _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bE_\b _\b>\n+\u00a0 Coarsen Indices in the sequential case. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Helper classes for the construction of classes without empty constructor.\n+Provides a class for building the index set and remote indices on the coarse\n+level.\n Author\n Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00086_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00086_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: construction.hh Source File\n+dune-istl: indicescoarsener.hh Source File\n \n \n \n \n \n \n \n@@ -74,256 +74,436 @@\n \n
    \n \n
    \n
    \n
    \n-
    construction.hh
    \n+
    indicescoarsener.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMGCONSTRUCTION_HH
    \n-
    6#define DUNE_AMGCONSTRUCTION_HH
    \n+
    5#ifndef DUNE_AMG_INDICESCOARSENER_HH
    \n+
    6#define DUNE_AMG_INDICESCOARSENER_HH
    \n
    7
    \n-\n-\n-\n-\n-
    12#include "pinfo.hh"
    \n-
    13
    \n-
    14namespace Dune
    \n-
    15{
    \n-
    16 namespace Amg
    \n-
    17 {
    \n-
    18
    \n-
    37 template<typename T>
    \n-
    38 struct ConstructionTraits
    \n-
    39 {
    \n-
    44 typedef const void* Arguments;
    \n-
    45
    \n-
    \n-
    52 static inline std::shared_ptr<T> construct(Arguments& args)
    \n-
    53 {
    \n-
    54 return std::make_shared<T>();
    \n-
    55 }
    \n-
    \n-
    56 };
    \n-
    57
    \n-
    58 template<class T, class A>
    \n-
    \n-
    59 struct ConstructionTraits<BlockVector<T,A> >
    \n-
    60 {
    \n-
    61 typedef const int Arguments;
    \n-
    \n-
    62 static inline std::shared_ptr<BlockVector<T,A>> construct(Arguments& n)
    \n-
    63 {
    \n-
    64 return std::make_shared<BlockVector<T,A>>(n);
    \n-
    65 }
    \n-
    \n-
    66 };
    \n-
    \n-
    67
    \n-
    68 template<class M, class C>
    \n-
    \n-\n-
    70 {
    \n-
    \n-
    71 ParallelOperatorArgs(std::shared_ptr<M> matrix, const C& comm)
    \n-
    72 : matrix_(matrix), comm_(comm)
    \n-
    73 {}
    \n-
    \n-
    74
    \n-
    75 std::shared_ptr<M> matrix_;
    \n-
    76 const C& comm_;
    \n-
    77 };
    \n-
    \n-
    78
    \n-
    79#if HAVE_MPI
    \n-
    \n-\n-
    81 {
    \n-
    \n-\n-
    83 : comm_(comm), cat_(cat)
    \n-
    84 {}
    \n-
    \n-
    85
    \n-
    86 MPI_Comm comm_;
    \n-\n-
    88 };
    \n-
    \n-
    89#endif
    \n-
    90
    \n-
    \n-\n-
    92 {
    \n-
    \n-
    93 SequentialCommunicationArgs(Communication<void*> comm, [[maybe_unused]] int cat)
    \n-
    94 : comm_(comm)
    \n-
    95 {}
    \n-
    \n+
    8#include <dune/common/parallel/indicessyncer.hh>
    \n+
    9#include <vector>
    \n+
    10#include "renumberer.hh"
    \n+
    11
    \n+
    12#if HAVE_MPI
    \n+\n+
    14#endif
    \n+
    15
    \n+
    16#include "pinfo.hh"
    \n+
    17
    \n+
    18namespace Dune
    \n+
    19{
    \n+
    20 namespace Amg
    \n+
    21 {
    \n+
    22
    \n+
    34 template<typename T, typename E>
    \n+
    \n+\n+
    36 {};
    \n+
    \n+
    37
    \n+
    38
    \n+
    39#if HAVE_MPI
    \n+
    40
    \n+
    41 template<typename T, typename E>
    \n+
    \n+\n+
    43 {
    \n+
    44 public:
    \n+\n+
    49
    \n+\n+
    54
    \n+
    55 typedef typename ParallelInformation::ParallelIndexSet ParallelIndexSet;
    \n+
    56
    \n+
    60 typedef typename ParallelIndexSet::GlobalIndex GlobalIndex;
    \n+
    61
    \n+
    65 typedef typename ParallelIndexSet::LocalIndex LocalIndex;
    \n+
    66
    \n+
    70 typedef typename LocalIndex::Attribute Attribute;
    \n+
    71
    \n+
    75 typedef Dune::RemoteIndices<ParallelIndexSet> RemoteIndices;
    \n+
    76
    \n+
    88 template<typename Graph, typename VM>
    \n+
    89 static typename Graph::VertexDescriptor
    \n+
    \n+\n+
    91 Graph& fineGraph,
    \n+
    92 VM& visitedMap,
    \n+\n+
    94 ParallelInformation& coarseInfo,
    \n+
    95 typename Graph::VertexDescriptor noAggregates);
    \n
    96
    \n-
    97 Communication<void*> comm_;
    \n-
    98 };
    \n-
    \n-
    99
    \n-
    100 } // end Amg namspace
    \n-
    101
    \n-
    102 // forward declaration
    \n-
    103 template<class M, class X, class Y, class C>
    \n-\n-
    105
    \n-
    106 template<class M, class X, class Y, class C>
    \n-\n+
    97 private:
    \n+
    98 template<typename G, typename I>
    \n+
    99 class ParallelAggregateRenumberer : public AggregateRenumberer<G>
    \n+
    100 {
    \n+
    101 typedef typename G::VertexDescriptor Vertex;
    \n+
    102
    \n+
    103 typedef I GlobalLookupIndexSet;
    \n+
    104
    \n+
    105 typedef typename GlobalLookupIndexSet::IndexPair IndexPair;
    \n+
    106
    \n+
    107 typedef typename IndexPair::GlobalIndex GlobalIndex;
    \n
    108
    \n-
    109 namespace Amg
    \n-
    110 {
    \n-
    111 template<class M, class X, class Y, class C>
    \n-
    \n-
    112 struct ConstructionTraits<OverlappingSchwarzOperator<M,X,Y,C> >
    \n-
    113 {
    \n-\n+
    109 public:
    \n+
    \n+\n+
    111 : AggregateRenumberer<G>(aggregates), isPublic_(false), lookup_(lookup),
    \n+
    112 globalIndex_(std::numeric_limits<GlobalIndex>::max())
    \n+
    113 {}
    \n+
    \n+
    114
    \n
    115
    \n
    \n-
    116 static inline std::shared_ptr<OverlappingSchwarzOperator<M,X,Y,C>> construct(const Arguments& args)
    \n-
    117 {
    \n-
    118 return std::make_shared<OverlappingSchwarzOperator<M,X,Y,C>>
    \n-
    119 (args.matrix_, args.comm_);
    \n-
    120 }
    \n-
    \n-
    121 };
    \n-
    \n-
    122
    \n-
    123 template<class M, class X, class Y, class C>
    \n-
    \n-
    124 struct ConstructionTraits<NonoverlappingSchwarzOperator<M,X,Y,C> >
    \n-
    125 {
    \n-\n-
    127
    \n-
    \n-
    128 static inline std::shared_ptr<NonoverlappingSchwarzOperator<M,X,Y,C>> construct(const Arguments& args)
    \n-
    129 {
    \n-
    130 return std::make_shared<NonoverlappingSchwarzOperator<M,X,Y,C>>
    \n-
    131 (args.matrix_, args.comm_);
    \n-
    132 }
    \n-
    \n-
    133 };
    \n-
    \n-
    134
    \n-
    135 template<class M, class X, class Y>
    \n-
    \n-\n-
    137 {
    \n-
    \n-
    138 MatrixAdapterArgs(std::shared_ptr<M> matrix, const SequentialInformation)
    \n-
    139 : matrix_(matrix)
    \n-
    140 {}
    \n-
    \n-
    141
    \n-
    142 std::shared_ptr<M> matrix_;
    \n-
    143 };
    \n-
    \n-
    144
    \n-
    145 template<class M, class X, class Y>
    \n-
    \n-
    146 struct ConstructionTraits<MatrixAdapter<M,X,Y> >
    \n-
    147 {
    \n-\n+
    116 void operator()(const typename G::ConstEdgeIterator& edge)
    \n+
    117 {
    \n+\n+
    119 const IndexPair* pair= lookup_.pair(edge.target());
    \n+
    120 if(pair!=0) {
    \n+
    121 globalIndex(pair->global());
    \n+
    122 attribute(pair->local().attribute());
    \n+
    123 isPublic(pair->local().isPublic());
    \n+
    124 }
    \n+
    125 }
    \n+
    \n+
    126
    \n+
    \n+
    127 Vertex operator()([[maybe_unused]] const GlobalIndex& global)
    \n+
    128 {
    \n+
    129 Vertex current = this->number_;
    \n+
    130 this->operator++();
    \n+
    131 return current;
    \n+
    132 }
    \n+
    \n+
    133
    \n+
    \n+
    134 bool isPublic()
    \n+
    135 {
    \n+
    136 return isPublic_;
    \n+
    137 }
    \n+
    \n+
    138
    \n+
    \n+
    139 void isPublic(bool b)
    \n+
    140 {
    \n+
    141 isPublic_ = isPublic_ || b;
    \n+
    142 }
    \n+
    \n+
    143
    \n+
    \n+
    144 void reset()
    \n+
    145 {
    \n+
    146 globalIndex_ = std::numeric_limits<GlobalIndex>::max();
    \n+
    147 isPublic_=false;
    \n+
    148 }
    \n+
    \n
    149
    \n
    \n-
    150 static inline std::shared_ptr<MatrixAdapter<M,X,Y>> construct(Arguments& args)
    \n-
    151 {
    \n-
    152 return std::make_shared<MatrixAdapter<M,X,Y>>(args.matrix_);
    \n-
    153 }
    \n-
    \n-
    154 };
    \n-
    \n-
    155
    \n-
    156 template<>
    \n-
    \n-
    157 struct ConstructionTraits<SequentialInformation>
    \n-
    158 {
    \n-\n+\n+
    151 {
    \n+
    152 attribute_=attribute;
    \n+
    153 }
    \n+
    \n+
    154
    \n+
    \n+\n+
    156 {
    \n+
    157 return attribute_;
    \n+
    158 }
    \n+
    \n+
    159
    \n
    \n-
    160 static inline std::shared_ptr<SequentialInformation> construct(Arguments& args)
    \n-
    161 {
    \n-
    162 return std::make_shared<SequentialInformation>(args.comm_);
    \n-
    163 }
    \n-
    \n-
    164 };
    \n-
    \n-
    165
    \n-
    166
    \n-
    167#if HAVE_MPI
    \n-
    168
    \n-
    169 template<class T1, class T2>
    \n-
    \n-
    170 struct ConstructionTraits<OwnerOverlapCopyCommunication<T1,T2> >
    \n-
    171 {
    \n-\n-
    173
    \n-
    \n-
    174 static inline std::shared_ptr<OwnerOverlapCopyCommunication<T1,T2>> construct(Arguments& args)
    \n-
    175 {
    \n-
    176 return std::make_shared<OwnerOverlapCopyCommunication<T1,T2>>(args.comm_, args.cat_);
    \n-
    177 }
    \n-
    \n-
    178 };
    \n-
    \n-
    179
    \n-
    180#endif
    \n-
    181
    \n-
    183 } // namespace Amg
    \n-
    184} // namespace Dune
    \n-
    185#endif
    \n-\n-\n-
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n-
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n-
    const int Arguments
    Definition construction.hh:61
    \n-
    SequentialCommunicationArgs(Communication< void * > comm, int cat)
    Definition construction.hh:93
    \n-
    OwnerOverlapCopyCommunicationArgs(MPI_Comm comm, SolverCategory::Category cat)
    Definition construction.hh:82
    \n-
    MPI_Comm comm_
    Definition construction.hh:86
    \n-
    SolverCategory::Category cat_
    Definition construction.hh:87
    \n-
    const C & comm_
    Definition construction.hh:76
    \n-
    ParallelOperatorArgs(std::shared_ptr< M > matrix, const C &comm)
    Definition construction.hh:71
    \n-
    std::shared_ptr< M > matrix_
    Definition construction.hh:75
    \n-
    const void * Arguments
    A type holding all the arguments needed to call the constructor.
    Definition construction.hh:44
    \n-
    static std::shared_ptr< T > construct(Arguments &args)
    Construct an object with the specified arguments.
    Definition construction.hh:52
    \n-
    Communication< void * > comm_
    Definition construction.hh:97
    \n-
    static std::shared_ptr< BlockVector< T, A > > construct(Arguments &n)
    Definition construction.hh:62
    \n+
    160 const GlobalIndex& globalIndex() const
    \n+
    161 {
    \n+
    162 return globalIndex_;
    \n+
    163 }
    \n+
    \n+
    164
    \n+
    \n+
    165 void globalIndex(const GlobalIndex& global)
    \n+
    166 {
    \n+
    167 globalIndex_ = global;
    \n+
    168 }
    \n+
    \n+
    169
    \n+
    170 private:
    \n+
    171 bool isPublic_;
    \n+
    172 Attribute attribute_;
    \n+
    173 const GlobalLookupIndexSet& lookup_;
    \n+
    174 GlobalIndex globalIndex_;
    \n+
    175 };
    \n+
    176
    \n+
    177 template<typename Graph, typename VM, typename I>
    \n+
    178 static void buildCoarseIndexSet(const ParallelInformation& pinfo,
    \n+
    179 Graph& fineGraph,
    \n+
    180 VM& visitedMap,
    \n+\n+
    182 ParallelIndexSet& coarseIndices,
    \n+
    183 ParallelAggregateRenumberer<Graph,I>& renumberer);
    \n+
    184
    \n+
    185 template<typename Graph,typename I>
    \n+
    186 static void buildCoarseRemoteIndices(const RemoteIndices& fineRemote,
    \n+\n+
    188 ParallelIndexSet& coarseIndices,
    \n+
    189 RemoteIndices& coarseRemote,
    \n+
    190 ParallelAggregateRenumberer<Graph,I>& renumberer);
    \n+
    191
    \n+
    192 };
    \n+
    193
    \n+
    197 template<typename G, typename L, typename E>
    \n+
    \n+\n+
    199 : public ParallelIndicesCoarsener<OwnerOverlapCopyCommunication<G,L>,E>
    \n+
    200 {};
    \n+
    \n+
    201
    \n+
    202
    \n+
    203#endif
    \n+
    204
    \n+
    211 template<typename E>
    \n+
    \n+\n+
    213 {
    \n+
    214 public:
    \n+
    215 template<typename Graph, typename VM>
    \n+
    216 static typename Graph::VertexDescriptor
    \n+
    217 coarsen(const SequentialInformation & fineInfo,
    \n+
    218 Graph& fineGraph,
    \n+
    219 VM& visitedMap,
    \n+\n+
    221 SequentialInformation& coarseInfo,
    \n+
    222 typename Graph::VertexDescriptor noAggregates);
    \n+
    223 };
    \n+
    \n+
    224
    \n+
    225#if HAVE_MPI
    \n+
    226 template<typename T, typename E>
    \n+
    227 template<typename Graph, typename VM>
    \n+
    228 inline typename Graph::VertexDescriptor
    \n+
    \n+\n+
    230 Graph& fineGraph,
    \n+
    231 VM& visitedMap,
    \n+\n+
    233 ParallelInformation& coarseInfo,
    \n+
    234 [[maybe_unused]] typename Graph::VertexDescriptor noAggregates)
    \n+
    235 {
    \n+
    236 ParallelAggregateRenumberer<Graph,typename ParallelInformation::GlobalLookupIndexSet> renumberer(aggregates, fineInfo.globalLookup());
    \n+
    237 buildCoarseIndexSet(fineInfo, fineGraph, visitedMap, aggregates,
    \n+
    238 coarseInfo.indexSet(), renumberer);
    \n+
    239 buildCoarseRemoteIndices(fineInfo.remoteIndices(), aggregates, coarseInfo.indexSet(),
    \n+
    240 coarseInfo.remoteIndices(), renumberer);
    \n+
    241
    \n+
    242 return renumberer;
    \n+
    243 }
    \n+
    \n+
    \n+
    244
    \n+
    245 template<typename T, typename E>
    \n+
    246 template<typename Graph, typename VM, typename I>
    \n+
    247 void ParallelIndicesCoarsener<T,E>::buildCoarseIndexSet(const ParallelInformation& pinfo,
    \n+
    248 Graph& fineGraph,
    \n+
    249 VM& visitedMap,
    \n+\n+
    251 ParallelIndexSet& coarseIndices,
    \n+
    252 ParallelAggregateRenumberer<Graph,I>& renumberer)
    \n+
    253 {
    \n+
    254 // fineGraph is the local subgraph corresponding to the vertices the process owns.
    \n+
    255 // i.e. no overlap/copy vertices can be visited traversing the graph
    \n+
    256 typedef typename Graph::ConstVertexIterator Iterator;
    \n+
    257 typedef typename ParallelInformation::GlobalLookupIndexSet GlobalLookupIndexSet;
    \n+
    258
    \n+
    259 Iterator end = fineGraph.end();
    \n+
    260 const GlobalLookupIndexSet& lookup = pinfo.globalLookup();
    \n+
    261
    \n+
    262 coarseIndices.beginResize();
    \n+
    263
    \n+
    264 // Setup the coarse index set and renumber the aggregate consecutively
    \n+
    265 // ascending from zero according to the minimum global index belonging
    \n+
    266 // to the aggregate
    \n+
    267 for(Iterator index = fineGraph.begin(); index != end; ++index) {
    \n+\n+
    269 // Isolated vertices will not be represented on the next level.
    \n+
    270 // These should only be there if skipIsolated is activiated in
    \n+
    271 // the coarsening criterion as otherwise they will be aggregated
    \n+
    272 // and should have real aggregate number in the map right now.
    \n+
    273 if(!get(visitedMap, *index)) {
    \n+
    274 // This vertex was not visited by breadthFirstSearch yet.
    \n+
    275 typedef typename GlobalLookupIndexSet::IndexPair IndexPair;
    \n+
    276 const IndexPair* pair= lookup.pair(*index);
    \n+
    277
    \n+
    278 renumberer.reset(); // reset attribute and global index.
    \n+
    279 if(pair!=0) {
    \n+
    280 // vertex is in the index set. Note that not all vertices have
    \n+
    281 // to be in the index set, just the ones where communication
    \n+
    282 // will happen.
    \n+
    283 assert(!ExcludedAttributes::contains(pair->local().attribute()));
    \n+
    284 renumberer.attribute(pair->local().attribute());
    \n+
    285 renumberer.isPublic(pair->local().isPublic());
    \n+
    286 renumberer.globalIndex(pair->global());
    \n+
    287 }
    \n+
    288
    \n+
    289 // Reconstruct aggregate and mark vertices as visited
    \n+
    290 aggregates.template breadthFirstSearch<false>(*index, aggregates[*index],
    \n+
    291 fineGraph, renumberer, visitedMap);
    \n+
    292
    \n+
    293 if(renumberer.globalIndex()!=std::numeric_limits<GlobalIndex>::max()) {
    \n+
    294 // vertex is in the index set.
    \n+
    295 //std::cout <<" Adding global="<< renumberer.globalIndex()<<" local="<<static_cast<std::size_t>(renumberer)<<std::endl;
    \n+
    296 coarseIndices.add(renumberer.globalIndex(),
    \n+
    297 LocalIndex(renumberer, renumberer.attribute(),
    \n+
    298 renumberer.isPublic()));
    \n+
    299 }
    \n+
    300
    \n+
    301 aggregates[*index] = renumberer;
    \n+
    302 ++renumberer;
    \n+
    303 }
    \n+
    304 }
    \n+
    305
    \n+
    306 coarseIndices.endResize();
    \n+
    307
    \n+
    308 assert(static_cast<std::size_t>(renumberer) >= coarseIndices.size());
    \n+
    309
    \n+
    310 // Reset the visited flags
    \n+
    311 for(Iterator vertex=fineGraph.begin(); vertex != end; ++vertex)
    \n+
    312 put(visitedMap, *vertex, false);
    \n+
    313 }
    \n+
    314
    \n+
    315 template<typename T, typename E>
    \n+
    316 template<typename Graph, typename I>
    \n+
    317 void ParallelIndicesCoarsener<T,E>::buildCoarseRemoteIndices(const RemoteIndices& fineRemote,
    \n+
    318 const AggregatesMap<typename Graph::VertexDescriptor>& aggregates,
    \n+
    319 ParallelIndexSet& coarseIndices,
    \n+
    320 RemoteIndices& coarseRemote,
    \n+
    321 ParallelAggregateRenumberer<Graph,I>& renumberer)
    \n+
    322 {
    \n+
    323 std::vector<char> attributes(static_cast<std::size_t>(renumberer));
    \n+
    324
    \n+
    325 GlobalLookupIndexSet<ParallelIndexSet> coarseLookup(coarseIndices, static_cast<std::size_t>(renumberer));
    \n+
    326
    \n+
    327 typedef typename RemoteIndices::const_iterator Iterator;
    \n+
    328 Iterator end = fineRemote.end();
    \n+
    329
    \n+
    330 for(Iterator neighbour = fineRemote.begin();
    \n+
    331 neighbour != end; ++neighbour) {
    \n+
    332 int process = neighbour->first;
    \n+
    333
    \n+
    334 assert(neighbour->second.first==neighbour->second.second);
    \n+
    335
    \n+
    336 // Mark all as not known
    \n+
    337 typedef typename std::vector<char>::iterator CIterator;
    \n+
    338
    \n+
    339 for(CIterator iter=attributes.begin(); iter!= attributes.end(); ++iter)
    \n+
    340 *iter = std::numeric_limits<char>::max();
    \n+
    341
    \n+
    342 auto riEnd = neighbour->second.second->end();
    \n+
    343
    \n+
    344 for(auto index = neighbour->second.second->begin();
    \n+
    345 index != riEnd; ++index) {
    \n+
    346 if(!E::contains(index->localIndexPair().local().attribute()) &&
    \n+
    347 aggregates[index->localIndexPair().local()] !=
    \n+\n+
    349 {
    \n+
    350 assert(aggregates[index->localIndexPair().local()]<attributes.size());
    \n+
    351 if (attributes[aggregates[index->localIndexPair().local()]] != 3)
    \n+
    352 attributes[aggregates[index->localIndexPair().local()]] = index->attribute();
    \n+
    353 }
    \n+
    354 }
    \n+
    355
    \n+
    356 // Build remote index list
    \n+
    357 typedef RemoteIndexListModifier<ParallelIndexSet,typename RemoteIndices::Allocator,false> Modifier;
    \n+
    358 typedef typename RemoteIndices::RemoteIndex RemoteIndex;
    \n+
    359 typedef typename ParallelIndexSet::const_iterator IndexIterator;
    \n+
    360
    \n+
    361 Modifier coarseList = coarseRemote.template getModifier<false,true>(process);
    \n+
    362
    \n+
    363 IndexIterator iend = coarseIndices.end();
    \n+
    364 for(IndexIterator index = coarseIndices.begin(); index != iend; ++index)
    \n+
    365 if(attributes[index->local()] != std::numeric_limits<char>::max()) {
    \n+
    366 // remote index is present
    \n+
    367 coarseList.insert(RemoteIndex(Attribute(attributes[index->local()]), &(*index)));
    \n+
    368 }
    \n+
    369 //std::cout<<coarseRemote<<std::endl;
    \n+
    370 }
    \n+
    371
    \n+
    372 // The number of neighbours should not change!
    \n+
    373 assert(coarseRemote.neighbours()==fineRemote.neighbours());
    \n+
    374
    \n+
    375 // snyc the index set and the remote indices to recompute missing
    \n+
    376 // indices
    \n+
    377 IndicesSyncer<ParallelIndexSet> syncer(coarseIndices, coarseRemote);
    \n+
    378 syncer.sync(renumberer);
    \n+
    379
    \n+
    380 }
    \n+
    381
    \n+
    382#endif
    \n+
    383
    \n+
    384 template<typename E>
    \n+
    385 template<typename Graph, typename VM>
    \n+
    386 typename Graph::VertexDescriptor
    \n+
    \n+\n+
    388 [[maybe_unused]] const SequentialInformation& fineInfo,
    \n+
    389 [[maybe_unused]] Graph& fineGraph,
    \n+
    390 [[maybe_unused]] VM& visitedMap,
    \n+
    391 [[maybe_unused]] AggregatesMap<typename Graph::VertexDescriptor>& aggregates,
    \n+
    392 [[maybe_unused]] SequentialInformation& coarseInfo,
    \n+
    393 [[maybe_unused]] typename Graph::VertexDescriptor noAggregates)
    \n+
    394 {
    \n+
    395 return noAggregates;
    \n+
    396 }
    \n+
    \n+
    397
    \n+
    398 } //namespace Amg
    \n+
    399} // namespace Dune
    \n+
    400#endif
    \n+
    \n+
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n+\n+\n+\n+
    LocalIndex::Attribute Attribute
    The type of the attribute.
    Definition indicescoarsener.hh:70
    \n+
    void operator()(const typename G::ConstEdgeIterator &edge)
    Definition indicescoarsener.hh:116
    \n+
    void isPublic(bool b)
    Definition indicescoarsener.hh:139
    \n+
    ParallelInformation::ParallelIndexSet ParallelIndexSet
    Definition indicescoarsener.hh:55
    \n+\n+
    ParallelIndexSet::LocalIndex LocalIndex
    The type of the local index.
    Definition indicescoarsener.hh:65
    \n+
    T ParallelInformation
    The type of the parallel information.
    Definition indicescoarsener.hh:53
    \n+
    Attribute attribute()
    Definition indicescoarsener.hh:155
    \n+
    Vertex operator()(const GlobalIndex &global)
    Definition indicescoarsener.hh:127
    \n+
    static Graph::VertexDescriptor coarsen(ParallelInformation &fineInfo, Graph &fineGraph, VM &visitedMap, AggregatesMap< typename Graph::VertexDescriptor > &aggregates, ParallelInformation &coarseInfo, typename Graph::VertexDescriptor noAggregates)
    Build the coarse index set after the aggregatio.
    Definition indicescoarsener.hh:229
    \n+
    static const V ISOLATED
    Identifier of isolated vertices.
    Definition aggregates.hh:571
    \n+
    ParallelIndexSet::GlobalIndex GlobalIndex
    The type of the global index.
    Definition indicescoarsener.hh:60
    \n+
    void attribute(const Attribute &attribute)
    Definition indicescoarsener.hh:150
    \n+
    E ExcludedAttributes
    The set of excluded attributes.
    Definition indicescoarsener.hh:48
    \n+
    void globalIndex(const GlobalIndex &global)
    Definition indicescoarsener.hh:165
    \n+
    Dune::RemoteIndices< ParallelIndexSet > RemoteIndices
    The type of the remote indices.
    Definition indicescoarsener.hh:75
    \n+
    ParallelAggregateRenumberer(AggregatesMap< Vertex > &aggregates, const I &lookup)
    Definition indicescoarsener.hh:110
    \n+
    const GlobalIndex & globalIndex() const
    Definition indicescoarsener.hh:160
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n-
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n-
    A nonoverlapping operator with communication object.
    Definition novlpschwarz.hh:61
    \n-
    Adapter to turn a matrix into a linear operator.
    Definition operators.hh:137
    \n+
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n-
    Definition construction.hh:70
    \n-\n-
    Definition construction.hh:92
    \n-
    An overlapping Schwarz operator.
    Definition schwarz.hh:75
    \n-
    ParallelOperatorArgs< M, C > Arguments
    Definition construction.hh:114
    \n-
    static std::shared_ptr< OverlappingSchwarzOperator< M, X, Y, C > > construct(const Arguments &args)
    Definition construction.hh:116
    \n-
    ParallelOperatorArgs< M, C > Arguments
    Definition construction.hh:126
    \n-
    static std::shared_ptr< NonoverlappingSchwarzOperator< M, X, Y, C > > construct(const Arguments &args)
    Definition construction.hh:128
    \n-
    Definition construction.hh:137
    \n-
    MatrixAdapterArgs(std::shared_ptr< M > matrix, const SequentialInformation)
    Definition construction.hh:138
    \n-
    std::shared_ptr< M > matrix_
    Definition construction.hh:142
    \n-
    static std::shared_ptr< MatrixAdapter< M, X, Y > > construct(Arguments &args)
    Definition construction.hh:150
    \n-
    const MatrixAdapterArgs< M, X, Y > Arguments
    Definition construction.hh:148
    \n-
    const SequentialCommunicationArgs Arguments
    Definition construction.hh:159
    \n-
    static std::shared_ptr< SequentialInformation > construct(Arguments &args)
    Definition construction.hh:160
    \n-
    static std::shared_ptr< OwnerOverlapCopyCommunication< T1, T2 > > construct(Arguments &args)
    Definition construction.hh:174
    \n-
    const OwnerOverlapCopyCommunicationArgs Arguments
    Definition construction.hh:172
    \n+
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n+
    Definition indicescoarsener.hh:36
    \n+
    Definition indicescoarsener.hh:43
    \n
    Definition pinfo.hh:28
    \n-
    Category
    Definition solvercategory.hh:23
    \n+
    Definition renumberer.hh:16
    \n+
    void operator++()
    Definition renumberer.hh:57
    \n+
    void operator()(const typename G::ConstEdgeIterator &edge)
    Definition renumberer.hh:51
    \n+
    Vertex number_
    Definition renumberer.hh:35
    \n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,300 +1,485 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-construction.hh\n+indicescoarsener.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMGCONSTRUCTION_HH\n-6#define DUNE_AMGCONSTRUCTION_HH\n+5#ifndef DUNE_AMG_INDICESCOARSENER_HH\n+6#define DUNE_AMG_INDICESCOARSENER_HH\n 7\n-8#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-9#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n-10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh>\n-12#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n-13\n-14namespace _\bD_\bu_\bn_\be\n-15{\n-16 namespace Amg\n-17 {\n-18\n-37 template\n-38 struct ConstructionTraits\n-39 {\n-_\b4_\b4 typedef const void* _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-45\n-_\b5_\b2 static inline std::shared_ptr _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-53 {\n-54 return std::make_shared();\n-55 }\n-56 };\n-57\n-58 template\n-_\b5_\b9 struct ConstructionTraits<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br >\n-60 {\n-_\b6_\b1 typedef const int _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-_\b6_\b2 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& n)\n-63 {\n-64 return std::make_shared>(n);\n-65 }\n-66 };\n-67\n-68 template\n-_\b6_\b9 struct _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs\n-70 {\n-_\b7_\b1 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs(std::shared_ptr matrix, const C& comm)\n-72 : _\bm_\ba_\bt_\br_\bi_\bx_\b_(matrix), _\bc_\bo_\bm_\bm_\b_(comm)\n-73 {}\n-74\n-_\b7_\b5 std::shared_ptr _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n-_\b7_\b6 const C& _\bc_\bo_\bm_\bm_\b_;\n-77 };\n-78\n-79#if HAVE_MPI\n-_\b8_\b0 struct _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-81 {\n-_\b8_\b2 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs(MPI_Comm comm, _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-cat)\n-83 : _\bc_\bo_\bm_\bm_\b_(comm), _\bc_\ba_\bt_\b_(cat)\n-84 {}\n-85\n-_\b8_\b6 MPI_Comm _\bc_\bo_\bm_\bm_\b_;\n-_\b8_\b7 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\b_;\n-88 };\n-89#endif\n-90\n-_\b9_\b1 struct _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-92 {\n-_\b9_\b3 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs(Communication comm, [[maybe_unused]] int\n-cat)\n-94 : _\bc_\bo_\bm_\bm_\b_(comm)\n-95 {}\n+8#include \n+9#include \n+10#include \"_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\"\n+11\n+12#if HAVE_MPI\n+13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n+14#endif\n+15\n+16#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n+17\n+18namespace _\bD_\bu_\bn_\be\n+19{\n+20 namespace Amg\n+21 {\n+22\n+34 template\n+_\b3_\b5 class _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n+36 {};\n+37\n+38\n+39#if HAVE_MPI\n+40\n+41 template\n+_\b4_\b2 class _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n+43 {\n+44 public:\n+_\b4_\b8 typedef E _\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bs;\n+49\n+_\b5_\b3 typedef T _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n+54\n+_\b5_\b5 typedef typename ParallelInformation::ParallelIndexSet _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+56\n+_\b6_\b0 typedef typename ParallelIndexSet::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+61\n+_\b6_\b5 typedef typename ParallelIndexSet::LocalIndex _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+66\n+_\b7_\b0 typedef typename LocalIndex::Attribute _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be;\n+71\n+_\b7_\b5 typedef Dune::RemoteIndices _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs;\n+76\n+88 template\n+89 static typename Graph::VertexDescriptor\n+_\b9_\b0 _\bc_\bo_\ba_\br_\bs_\be_\bn(_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& fineInfo,\n+91 Graph& fineGraph,\n+92 VM& visitedMap,\n+93 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+94 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& coarseInfo,\n+95 typename Graph::VertexDescriptor noAggregates);\n 96\n-_\b9_\b7 Communication _\bc_\bo_\bm_\bm_\b_;\n-98 };\n-99\n-100 } // end Amg namspace\n-101\n-102 // forward declaration\n-103 template\n-104 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n-105\n-106 template\n-107 class _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n+97 private:\n+98 template\n+99 class ParallelAggregateRenumberer : public _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n+100 {\n+101 typedef typename G::VertexDescriptor Vertex;\n+102\n+103 typedef I GlobalLookupIndexSet;\n+104\n+105 typedef typename GlobalLookupIndexSet::IndexPair IndexPair;\n+106\n+107 typedef typename IndexPair::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n 108\n-109 namespace Amg\n-110 {\n-111 template\n-_\b1_\b1_\b2 struct ConstructionTraits<_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br >\n-113 {\n-_\b1_\b1_\b4 typedef _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b<_\bM_\b,_\bC_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+109 public:\n+_\b1_\b1_\b0 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br(_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, const I&\n+lookup)\n+111 : _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br(aggregates), isPublic_(false), lookup_(lookup),\n+112 globalIndex_(_\bs_\bt_\bd::numeric_limits::max())\n+113 {}\n+114\n 115\n-_\b1_\b1_\b6 static inline std::shared_ptr>\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(const _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+_\b1_\b1_\b6 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename G::ConstEdgeIterator& edge)\n 117 {\n-118 return std::make_shared>\n-119 (args._\bm_\ba_\bt_\br_\bi_\bx_\b_, args._\bc_\bo_\bm_\bm_\b_);\n-120 }\n-121 };\n-122\n-123 template\n-_\b1_\b2_\b4 struct ConstructionTraits<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br >\n-125 {\n-_\b1_\b2_\b6 typedef _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b<_\bM_\b,_\bC_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-127\n-_\b1_\b2_\b8 static inline std::shared_ptr>\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(const _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-129 {\n-130 return std::make_shared>\n-131 (args._\bm_\ba_\bt_\br_\bi_\bx_\b_, args._\bc_\bo_\bm_\bm_\b_);\n+118 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(edge);\n+119 const IndexPair* pair= lookup_.pair(edge.target());\n+120 if(pair!=0) {\n+121 _\bg_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx(pair->global());\n+122 _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be(pair->local().attribute());\n+123 _\bi_\bs_\bP_\bu_\bb_\bl_\bi_\bc(pair->local().isPublic());\n+124 }\n+125 }\n+126\n+_\b1_\b2_\b7 Vertex _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)([[maybe_unused]] const GlobalIndex& global)\n+128 {\n+129 Vertex current = this->_\bn_\bu_\bm_\bb_\be_\br_\b_;\n+130 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+131 return current;\n 132 }\n-133 };\n-134\n-135 template\n-_\b1_\b3_\b6 struct _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs\n-137 {\n-_\b1_\b3_\b8 _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs(std::shared_ptr matrix, const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn)\n-139 : _\bm_\ba_\bt_\br_\bi_\bx_\b_(matrix)\n-140 {}\n-141\n-_\b1_\b4_\b2 std::shared_ptr _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n-143 };\n-144\n-145 template\n-_\b1_\b4_\b6 struct ConstructionTraits<_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br >\n-147 {\n-_\b1_\b4_\b8 typedef const _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs_\b<_\bM_\b,_\bX_\b,_\bY_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+133\n+_\b1_\b3_\b4 bool _\bi_\bs_\bP_\bu_\bb_\bl_\bi_\bc()\n+135 {\n+136 return isPublic_;\n+137 }\n+138\n+_\b1_\b3_\b9 void _\bi_\bs_\bP_\bu_\bb_\bl_\bi_\bc(bool b)\n+140 {\n+141 isPublic_ = isPublic_ || b;\n+142 }\n+143\n+_\b1_\b4_\b4 void _\br_\be_\bs_\be_\bt()\n+145 {\n+146 globalIndex_ = std::numeric_limits::max();\n+147 isPublic_=false;\n+148 }\n 149\n-_\b1_\b5_\b0 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs&\n-args)\n+_\b1_\b5_\b0 void _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be(const _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be& _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be)\n 151 {\n-152 return std::make_shared>(args._\bm_\ba_\bt_\br_\bi_\bx_\b_);\n+152 attribute_=_\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be;\n 153 }\n-154 };\n-155\n-156 template<>\n-_\b1_\b5_\b7 struct ConstructionTraits<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn>\n-158 {\n-_\b1_\b5_\b9 typedef const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-_\b1_\b6_\b0 static inline std::shared_ptr _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs&\n-args)\n+154\n+_\b1_\b5_\b5 _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be()\n+156 {\n+157 return attribute_;\n+158 }\n+159\n+_\b1_\b6_\b0 const GlobalIndex& _\bg_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx() const\n 161 {\n-162 return std::make_shared(args._\bc_\bo_\bm_\bm_\b_);\n+162 return globalIndex_;\n 163 }\n-164 };\n-165\n-166\n-167#if HAVE_MPI\n-168\n-169 template\n-_\b1_\b7_\b0 struct ConstructionTraits<_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn >\n-171 {\n-_\b1_\b7_\b2 typedef const _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-173\n-_\b1_\b7_\b4 static inline std::shared_ptr>\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-175 {\n-176 return std::make_shared>(args._\bc_\bo_\bm_\bm_\b_,\n-args._\bc_\ba_\bt_\b_);\n-177 }\n-178 };\n-179\n-180#endif\n-181\n-183 } // namespace Amg\n-184} // namespace Dune\n-185#endif\n-_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n-_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n-_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n-Define general, extensible interface for operators. The available\n-implementation wraps a matrix.\n+164\n+_\b1_\b6_\b5 void _\bg_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx(const GlobalIndex& global)\n+166 {\n+167 globalIndex_ = global;\n+168 }\n+169\n+170 private:\n+171 bool isPublic_;\n+172 _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be attribute_;\n+173 const GlobalLookupIndexSet& lookup_;\n+174 _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx globalIndex_;\n+175 };\n+176\n+177 template\n+178 static void buildCoarseIndexSet(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+179 Graph& fineGraph,\n+180 VM& visitedMap,\n+181 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+182 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& coarseIndices,\n+183 ParallelAggregateRenumberer& renumberer);\n+184\n+185 template\n+186 static void buildCoarseRemoteIndices(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& fineRemote,\n+187 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+188 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& coarseIndices,\n+189 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& coarseRemote,\n+190 ParallelAggregateRenumberer& renumberer);\n+191\n+192 };\n+193\n+197 template\n+_\b1_\b9_\b8 class _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br<_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn,E>\n+199 : public _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br,E>\n+200 {};\n+201\n+202\n+203#endif\n+204\n+211 template\n+_\b2_\b1_\b2 class _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn,E>\n+213 {\n+214 public:\n+215 template\n+216 static typename Graph::VertexDescriptor\n+217 coarsen(const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn & fineInfo,\n+218 Graph& fineGraph,\n+219 VM& visitedMap,\n+220 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+221 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& coarseInfo,\n+222 typename Graph::VertexDescriptor noAggregates);\n+223 };\n+224\n+225#if HAVE_MPI\n+226 template\n+227 template\n+228 inline typename Graph::VertexDescriptor\n+_\b2_\b2_\b9 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\bT_\b,_\bE_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn(_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& fineInfo,\n+230 Graph& fineGraph,\n+231 VM& visitedMap,\n+232 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+233 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& coarseInfo,\n+234 [[maybe_unused]] typename Graph::VertexDescriptor noAggregates)\n+235 {\n+236 ParallelAggregateRenumberer renumberer(aggregates, fineInfo.globalLookup());\n+237 buildCoarseIndexSet(fineInfo, fineGraph, visitedMap, aggregates,\n+238 coarseInfo.indexSet(), renumberer);\n+239 buildCoarseRemoteIndices(fineInfo.remoteIndices(), aggregates,\n+coarseInfo.indexSet(),\n+240 coarseInfo.remoteIndices(), renumberer);\n+241\n+242 return renumberer;\n+243 }\n+244\n+245 template\n+246 template\n+247 void _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\bT_\b,_\bE_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bC_\bo_\ba_\br_\bs_\be_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(const\n+ParallelInformation& pinfo,\n+248 Graph& fineGraph,\n+249 VM& visitedMap,\n+250 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+251 ParallelIndexSet& coarseIndices,\n+252 ParallelAggregateRenumberer& renumberer)\n+253 {\n+254 // fineGraph is the local subgraph corresponding to the vertices the\n+process owns.\n+255 // i.e. no overlap/copy vertices can be visited traversing the graph\n+256 typedef typename Graph::ConstVertexIterator Iterator;\n+257 typedef typename ParallelInformation::GlobalLookupIndexSet\n+GlobalLookupIndexSet;\n+258\n+259 Iterator end = fineGraph.end();\n+260 const GlobalLookupIndexSet& lookup = pinfo.globalLookup();\n+261\n+262 coarseIndices.beginResize();\n+263\n+264 // Setup the coarse index set and renumber the aggregate consecutively\n+265 // ascending from zero according to the minimum global index belonging\n+266 // to the aggregate\n+267 for(Iterator index = fineGraph.begin(); index != end; ++index) {\n+268 if(aggregates[*index]!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:\n+_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n+269 // Isolated vertices will not be represented on the next level.\n+270 // These should only be there if skipIsolated is activiated in\n+271 // the coarsening criterion as otherwise they will be aggregated\n+272 // and should have real aggregate number in the map right now.\n+273 if(!_\bg_\be_\bt(visitedMap, *index)) {\n+274 // This vertex was not visited by breadthFirstSearch yet.\n+275 typedef typename GlobalLookupIndexSet::IndexPair IndexPair;\n+276 const IndexPair* pair= lookup.pair(*index);\n+277\n+278 renumberer.reset(); // reset attribute and global index.\n+279 if(pair!=0) {\n+280 // vertex is in the index set. Note that not all vertices have\n+281 // to be in the index set, just the ones where communication\n+282 // will happen.\n+283 assert(!ExcludedAttributes::contains(pair->local().attribute()));\n+284 renumberer.attribute(pair->local().attribute());\n+285 renumberer.isPublic(pair->local().isPublic());\n+286 renumberer.globalIndex(pair->global());\n+287 }\n+288\n+289 // Reconstruct aggregate and mark vertices as visited\n+290 aggregates.template breadthFirstSearch(*index, aggregates[*index],\n+291 fineGraph, renumberer, visitedMap);\n+292\n+293 if(renumberer.globalIndex()!=std::numeric_limits::max()) {\n+294 // vertex is in the index set.\n+295 //std::cout <<\" Adding global=\"<< renumberer.globalIndex()<<\"\n+local=\"<(renumberer)<(renumberer) >= coarseIndices.size());\n+309\n+310 // Reset the visited flags\n+311 for(Iterator vertex=fineGraph.begin(); vertex != end; ++vertex)\n+312 put(visitedMap, *vertex, false);\n+313 }\n+314\n+315 template\n+316 template\n+317 void ParallelIndicesCoarsener::buildCoarseRemoteIndices(const\n+RemoteIndices& fineRemote,\n+318 const AggregatesMap& aggregates,\n+319 ParallelIndexSet& coarseIndices,\n+320 RemoteIndices& coarseRemote,\n+321 ParallelAggregateRenumberer& renumberer)\n+322 {\n+323 std::vector attributes(static_cast(renumberer));\n+324\n+325 GlobalLookupIndexSet coarseLookup(coarseIndices,\n+static_cast(renumberer));\n+326\n+327 typedef typename RemoteIndices::const_iterator Iterator;\n+328 Iterator end = fineRemote.end();\n+329\n+330 for(Iterator neighbour = fineRemote.begin();\n+331 neighbour != end; ++neighbour) {\n+332 int process = neighbour->first;\n+333\n+334 assert(neighbour->second.first==neighbour->second.second);\n+335\n+336 // Mark all as not known\n+337 typedef typename std::vector::iterator CIterator;\n+338\n+339 for(CIterator iter=attributes.begin(); iter!= attributes.end(); ++iter)\n+340 *iter = std::numeric_limits::max();\n+341\n+342 auto riEnd = neighbour->second.second->end();\n+343\n+344 for(auto index = neighbour->second.second->begin();\n+345 index != riEnd; ++index) {\n+346 if(!E::contains(index->localIndexPair().local().attribute()) &&\n+347 aggregates[index->localIndexPair().local()] !=\n+348 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n+349 {\n+350 assert(aggregates[index->localIndexPair().local()]localIndexPair().local()]] != 3)\n+352 attributes[aggregates[index->localIndexPair().local()]] = index->attribute\n+();\n+353 }\n+354 }\n+355\n+356 // Build remote index list\n+357 typedef RemoteIndexListModifier Modifier;\n+358 typedef typename RemoteIndices::RemoteIndex RemoteIndex;\n+359 typedef typename ParallelIndexSet::const_iterator IndexIterator;\n+360\n+361 Modifier coarseList = coarseRemote.template getModifier\n+(process);\n+362\n+363 IndexIterator iend = coarseIndices.end();\n+364 for(IndexIterator index = coarseIndices.begin(); index != iend; ++index)\n+365 if(attributes[index->local()] != std::numeric_limits::max()) {\n+366 // remote index is present\n+367 coarseList.insert(RemoteIndex(Attribute(attributes[index->local()]), &\n+(*index)));\n+368 }\n+369 //std::cout< syncer(coarseIndices, coarseRemote);\n+378 syncer.sync(renumberer);\n+379\n+380 }\n+381\n+382#endif\n+383\n+384 template\n+385 template\n+386 typename Graph::VertexDescriptor\n+_\b3_\b8_\b7 _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\bE_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn(\n+388 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& fineInfo,\n+389 [[maybe_unused]] Graph& fineGraph,\n+390 [[maybe_unused]] VM& visitedMap,\n+391 [[maybe_unused]] _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>&\n+aggregates,\n+392 [[maybe_unused]] _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& coarseInfo,\n+393 [[maybe_unused]] typename Graph::VertexDescriptor noAggregates)\n+394 {\n+395 return noAggregates;\n+396 }\n+397\n+398 } //namespace Amg\n+399} // namespace Dune\n+400#endif\n _\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n Classes providing communication interfaces for overlapping Schwarz methods.\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-const int Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-SequentialCommunicationArgs(Communication< void * > comm, int cat)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:93\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-OwnerOverlapCopyCommunicationArgs(MPI_Comm comm, SolverCategory::Category cat)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bc_\bo_\bm_\bm_\b_\n-MPI_Comm comm_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:86\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bc_\ba_\bt_\b_\n-SolverCategory::Category cat_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:87\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b:_\b:_\bc_\bo_\bm_\bm_\b_\n-const C & comm_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs\n-ParallelOperatorArgs(std::shared_ptr< M > matrix, const C &comm)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:71\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n-std::shared_ptr< M > matrix_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-const void * Arguments\n-A type holding all the arguments needed to call the constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:44\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< T > construct(Arguments &args)\n-Construct an object with the specified arguments.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bc_\bo_\bm_\bm_\b_\n-Communication< void * > comm_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:97\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< BlockVector< T, A > > construct(Arguments &n)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:62\n+_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n+_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\br_\be_\bs_\be_\bt\n+void reset()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:144\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n+LocalIndex::Attribute Attribute\n+The type of the attribute.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const typename G::ConstEdgeIterator &edge)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:116\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bi_\bs_\bP_\bu_\bb_\bl_\bi_\bc\n+void isPublic(bool b)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:139\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+ParallelInformation::ParallelIndexSet ParallelIndexSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:55\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bi_\bs_\bP_\bu_\bb_\bl_\bi_\bc\n+bool isPublic()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:134\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::LocalIndex LocalIndex\n+The type of the local index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:65\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+T ParallelInformation\n+The type of the parallel information.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n+Attribute attribute()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:155\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+Vertex operator()(const GlobalIndex &global)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:127\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn\n+static Graph::VertexDescriptor coarsen(ParallelInformation &fineInfo, Graph\n+&fineGraph, VM &visitedMap, AggregatesMap< typename Graph::VertexDescriptor >\n+&aggregates, ParallelInformation &coarseInfo, typename Graph::VertexDescriptor\n+noAggregates)\n+Build the coarse index set after the aggregatio.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:229\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD\n+static const V ISOLATED\n+Identifier of isolated vertices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:571\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+ParallelIndexSet::GlobalIndex GlobalIndex\n+The type of the global index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:60\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n+void attribute(const Attribute &attribute)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bs\n+E ExcludedAttributes\n+The set of excluded attributes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+void globalIndex(const GlobalIndex &global)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:165\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+Dune::RemoteIndices< ParallelIndexSet > RemoteIndices\n+The type of the remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n+ParallelAggregateRenumberer(AggregatesMap< Vertex > &aggregates, const I\n+&lookup)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:110\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n+const GlobalIndex & globalIndex() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:160\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-A nonoverlapping operator with communication object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br\n-Adapter to turn a matrix into a linear operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:137\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n+Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n A class setting up standard communication for a two-valued attribute set with\n owner/overlap/copy sema...\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:92\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-An overlapping Schwarz operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-ParallelOperatorArgs< M, C > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:114\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< OverlappingSchwarzOperator< M, X, Y, C > > construct\n-(const Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:116\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-ParallelOperatorArgs< M, C > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< NonoverlappingSchwarzOperator< M, X, Y, C > > construct\n-(const Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:128\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:137\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs\n-MatrixAdapterArgs(std::shared_ptr< M > matrix, const SequentialInformation)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:138\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n-std::shared_ptr< M > matrix_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:142\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< MatrixAdapter< M, X, Y > > construct(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-const MatrixAdapterArgs< M, X, Y > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:148\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-const SequentialCommunicationArgs Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:159\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< SequentialInformation > construct(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:160\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>_\b:_\b:\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< OwnerOverlapCopyCommunication< T1, T2 > > construct\n-(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-const OwnerOverlapCopyCommunicationArgs Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:172\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+Class providing information about the mapping of the vertices onto aggregates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:43\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:16\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+void operator++()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:57\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const typename G::ConstEdgeIterator &edge)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bn_\bu_\bm_\bb_\be_\br_\b_\n+Vertex number_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:35\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00089.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00089.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: indicescoarsener.hh File Reference\n+dune-istl: graph.hh File Reference\n \n \n \n \n \n \n \n@@ -71,52 +71,94 @@\n \n \n \n \n+ \n \n
    \n \n-

    Provides a class for building the index set and remote indices on the coarse level. \n+

    Provides classes for building the matrix graph. \n More...

    \n-
    #include <dune/common/parallel/indicessyncer.hh>
    \n+
    #include <cstddef>
    \n+#include <algorithm>
    \n #include <vector>
    \n-#include "renumberer.hh"
    \n-#include <dune/istl/owneroverlapcopy.hh>
    \n-#include "pinfo.hh"
    \n+#include <cassert>
    \n+#include <limits>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/iteratorfacades.hh>
    \n+#include <dune/istl/istlexception.hh>
    \n+#include <dune/common/propertymap.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n \n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::Amg::IndicesCoarsener< T, E >
    class  Dune::Amg::MatrixGraph< M >
     The (undirected) graph of a matrix. More...
     
    class  Dune::Amg::ParallelIndicesCoarsener< T, E >
    class  Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C >
     Iterator over all edges starting from a vertex. More...
     
    class  Dune::Amg::IndicesCoarsener< OwnerOverlapCopyCommunication< G, L >, E >
     Coarsen Indices in the parallel case. More...
    class  Dune::Amg::MatrixGraph< M >::VertexIteratorT< C >
     The vertex iterator type of the graph. More...
     
    class  Dune::Amg::IndicesCoarsener< SequentialInformation, E >
     Coarsen Indices in the sequential case. More...
    class  Dune::Amg::SubGraph< G, T >
     A subgraph of a graph. More...
     
    class  Dune::Amg::SubGraph< G, T >::EdgeIndexMap
     An index map for mapping the edges to indices. More...
     
    class  Dune::Amg::SubGraph< G, T >::EdgeIterator
     The edge iterator of the graph. More...
     
    class  Dune::Amg::SubGraph< G, T >::VertexIterator
     The vertex iterator of the graph. More...
     
    class  Dune::Amg::VertexPropertiesGraph< G, VP, VM >
     Attaches properties to the vertices of a graph. More...
     
    class  Dune::Amg::VertexPropertiesGraph< G, VP, VM >::VertexIteratorT< C >
     
    class  Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM >
     Attaches properties to the edges and vertices of a graph. More...
     
    class  Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM >::EdgeIteratorT< C >
     
    class  Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM >::VertexIteratorT< C >
     
    class  Dune::Amg::GraphVertexPropertiesSelector< G >
     Wrapper to access the internal edge properties of a graph via operator[]() More...
     
    class  Dune::Amg::GraphEdgePropertiesSelector< G >
     Wrapper to access the internal vertex properties of a graph via operator[]() More...
     
    \n \n \n \n \n \n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+\n+\n+\n+\n+\n

    \n+Functions

    template<class G , class V >
    int Dune::Amg::visitNeighbours (const G &graph, const typename G::VertexDescriptor &vertex, V &visitor)
     Visit all neighbour vertices of a vertex in a graph.
     
    \n

    Detailed Description

    \n-

    Provides a class for building the index set and remote indices on the coarse level.

    \n+

    Provides classes for building the matrix graph.

    \n
    Author
    Markus Blatt
    \n+

    During the coarsening process in AMG the matrix graph together with the dependencies, what connections in the graph are considered strong or weak, what vertices are isolated, etc., have to build. This information will be contained in the MatrixGraph class.

    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,42 +1,85 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-indicescoarsener.hh File Reference\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+graph.hh File Reference\n _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Provides a class for building the index set and remote indices on the coarse\n-level. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n+Provides classes for building the matrix graph. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n #include \n-#include \"_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\"\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\b _\bT_\b,_\b _\bE_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\b _\bM_\b _\b>\n+\u00a0 The (undirected) graph of a matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\b _\bT_\b,_\b _\bE_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\b _\bM_\b _\b>_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\b _\bC_\b _\b>\n+\u00a0 Iterator over all edges starting from a vertex. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bG_\b,_\b _\bL_\b _\b>_\b,_\b _\bE_\b _\b>\n-\u00a0 Coarsen Indices in the parallel case. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\b _\bM_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\b _\bC_\b _\b>\n+\u00a0 The vertex iterator type of the graph. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bE_\b _\b>\n-\u00a0 Coarsen Indices in the sequential case. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bT_\b _\b>\n+\u00a0 A subgraph of a graph. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bT_\b _\b>_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+\u00a0 An index map for mapping the edges to indices. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bT_\b _\b>_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+\u00a0 The edge iterator of the graph. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bT_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+\u00a0 The vertex iterator of the graph. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bV_\bP_\b,_\b _\bV_\bM_\b _\b>\n+\u00a0 Attaches properties to the vertices of a graph. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bV_\bP_\b,_\b _\bV_\bM_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\b _\bC_\b _\b>\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bV_\bP_\b,_\b _\bE_\bP_\b,_\b _\bV_\bM_\b,_\b _\bE_\bM_\b _\b>\n+\u00a0 Attaches properties to the edges and vertices of a graph. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bV_\bP_\b,_\b _\bE_\bP_\b,_\b _\bV_\bM_\b,_\b _\bE_\bM_\b _\b>_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\b _\bC_\b _\b>\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bV_\bP_\b,_\b _\bE_\bP_\b,_\b _\bV_\bM_\b,_\b _\bE_\bM_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\b _\bC_\b _\b>\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bG_\b _\b>\n+\u00a0 Wrapper to access the internal edge properties of a graph via _\bo_\bp_\be_\br_\ba_\bt_\bo_\br\n+ _\b[_\b]_\b(_\b) _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bG_\b _\b>\n+\u00a0 Wrapper to access the internal vertex properties of a graph via\n+ _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b(_\b) _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+int\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs (const G &graph, const typename G::\n+ VertexDescriptor &vertex, V &visitor)\n+\u00a0 Visit all neighbour vertices of a vertex in a graph.\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides a class for building the index set and remote indices on the coarse\n-level.\n+Provides classes for building the matrix graph.\n Author\n Markus Blatt\n+During the coarsening process in AMG the matrix graph together with the\n+dependencies, what connections in the graph are considered strong or weak, what\n+vertices are isolated, etc., have to build. This information will be contained\n+in the MatrixGraph class.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00089_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00089_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: indicescoarsener.hh Source File\n+dune-istl: graph.hh Source File\n \n \n \n \n \n \n \n@@ -74,436 +74,1821 @@\n \n
    \n \n
    \n
    \n
    \n-
    indicescoarsener.hh
    \n+
    graph.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_INDICESCOARSENER_HH
    \n-
    6#define DUNE_AMG_INDICESCOARSENER_HH
    \n+
    5#ifndef DUNE_AMG_GRAPH_HH
    \n+
    6#define DUNE_AMG_GRAPH_HH
    \n
    7
    \n-
    8#include <dune/common/parallel/indicessyncer.hh>
    \n-
    9#include <vector>
    \n-
    10#include "renumberer.hh"
    \n-
    11
    \n-
    12#if HAVE_MPI
    \n-\n-
    14#endif
    \n-
    15
    \n-
    16#include "pinfo.hh"
    \n+
    8#include <cstddef>
    \n+
    9#include <algorithm>
    \n+
    10#include <vector>
    \n+
    11#include <cassert>
    \n+
    12#include <limits>
    \n+
    13#include <dune/common/typetraits.hh>
    \n+
    14#include <dune/common/iteratorfacades.hh>
    \n+\n+
    16#include <dune/common/propertymap.hh>
    \n
    17
    \n
    18namespace Dune
    \n
    19{
    \n
    20 namespace Amg
    \n
    21 {
    \n-
    22
    \n-
    34 template<typename T, typename E>
    \n-
    \n-\n-
    36 {};
    \n-
    \n-
    37
    \n-
    38
    \n-
    39#if HAVE_MPI
    \n-
    40
    \n-
    41 template<typename T, typename E>
    \n-
    \n-\n-
    43 {
    \n-
    44 public:
    \n-\n-
    49
    \n-\n-
    54
    \n-
    55 typedef typename ParallelInformation::ParallelIndexSet ParallelIndexSet;
    \n-
    56
    \n-
    60 typedef typename ParallelIndexSet::GlobalIndex GlobalIndex;
    \n-
    61
    \n-
    65 typedef typename ParallelIndexSet::LocalIndex LocalIndex;
    \n-
    66
    \n-
    70 typedef typename LocalIndex::Attribute Attribute;
    \n-
    71
    \n-
    75 typedef Dune::RemoteIndices<ParallelIndexSet> RemoteIndices;
    \n-
    76
    \n-
    88 template<typename Graph, typename VM>
    \n-
    89 static typename Graph::VertexDescriptor
    \n-
    \n-\n-
    91 Graph& fineGraph,
    \n-
    92 VM& visitedMap,
    \n-\n-
    94 ParallelInformation& coarseInfo,
    \n-
    95 typename Graph::VertexDescriptor noAggregates);
    \n+
    49 template<class M>
    \n+
    \n+\n+
    51 {
    \n+
    52 public:
    \n+
    56 typedef M Matrix;
    \n+
    57
    \n+
    61 typedef typename std::remove_const<M>::type MutableMatrix;
    \n+
    62
    \n+
    66 typedef typename M::block_type Weight;
    \n+
    67
    \n+
    73 typedef typename M::size_type VertexDescriptor;
    \n+
    74
    \n+
    80 typedef std::ptrdiff_t EdgeDescriptor;
    \n+
    81
    \n+
    82 enum {
    \n+
    83 /*
    \n+
    84 * @brief Whether Matrix is mutable.
    \n+
    85 */
    \n+
    86 mutableMatrix = std::is_same<M, typename std::remove_const<M>::type>::value
    \n+
    87 };
    \n+
    88
    \n+
    89
    \n+
    93 template<class C>
    \n+
    \n+\n+
    95 {
    \n
    96
    \n-
    97 private:
    \n-
    98 template<typename G, typename I>
    \n-
    99 class ParallelAggregateRenumberer : public AggregateRenumberer<G>
    \n-
    100 {
    \n-
    101 typedef typename G::VertexDescriptor Vertex;
    \n-
    102
    \n-
    103 typedef I GlobalLookupIndexSet;
    \n-
    104
    \n-
    105 typedef typename GlobalLookupIndexSet::IndexPair IndexPair;
    \n+
    97 public:
    \n+
    101 typedef typename std::remove_const<C>::type MutableContainer;
    \n+
    105 typedef const typename std::remove_const<C>::type ConstContainer;
    \n
    106
    \n-
    107 typedef typename IndexPair::GlobalIndex GlobalIndex;
    \n-
    108
    \n-
    109 public:
    \n-
    \n-\n-
    111 : AggregateRenumberer<G>(aggregates), isPublic_(false), lookup_(lookup),
    \n-
    112 globalIndex_(std::numeric_limits<GlobalIndex>::max())
    \n-
    113 {}
    \n-
    \n+
    107 friend class EdgeIteratorT<MutableContainer>;
    \n+
    108 friend class EdgeIteratorT<ConstContainer>;
    \n+
    109
    \n+
    110 enum {
    \n+
    112 isMutable = std::is_same<C, MutableContainer>::value
    \n+
    113 };
    \n
    114
    \n-
    115
    \n-
    \n-
    116 void operator()(const typename G::ConstEdgeIterator& edge)
    \n-
    117 {
    \n-\n-
    119 const IndexPair* pair= lookup_.pair(edge.target());
    \n-
    120 if(pair!=0) {
    \n-
    121 globalIndex(pair->global());
    \n-
    122 attribute(pair->local().attribute());
    \n-
    123 isPublic(pair->local().isPublic());
    \n-
    124 }
    \n-
    125 }
    \n-
    \n-
    126
    \n-
    \n-
    127 Vertex operator()([[maybe_unused]] const GlobalIndex& global)
    \n-
    128 {
    \n-
    129 Vertex current = this->number_;
    \n-
    130 this->operator++();
    \n-
    131 return current;
    \n-
    132 }
    \n-
    \n-
    133
    \n-
    \n-
    134 bool isPublic()
    \n-
    135 {
    \n-
    136 return isPublic_;
    \n-
    137 }
    \n-
    \n+
    118 typedef typename std::conditional<isMutable && C::mutableMatrix,typename Matrix::row_type::Iterator,
    \n+
    119 typename Matrix::row_type::ConstIterator>::type
    \n+\n+
    121
    \n+
    125 typedef typename std::conditional<isMutable && C::mutableMatrix,typename M::block_type,
    \n+
    126 const typename M::block_type>::type
    \n+\n+
    128
    \n+\n+
    137 const ColIterator& end, const EdgeDescriptor& edge);
    \n
    138
    \n-
    \n-
    139 void isPublic(bool b)
    \n-
    140 {
    \n-
    141 isPublic_ = isPublic_ || b;
    \n-
    142 }
    \n-
    \n-
    143
    \n-
    \n-
    144 void reset()
    \n-
    145 {
    \n-
    146 globalIndex_ = std::numeric_limits<GlobalIndex>::max();
    \n-
    147 isPublic_=false;
    \n-
    148 }
    \n-
    \n-
    149
    \n-
    \n-\n-
    151 {
    \n-
    152 attribute_=attribute;
    \n-
    153 }
    \n-
    \n-
    154
    \n-
    \n-\n-
    156 {
    \n-
    157 return attribute_;
    \n-
    158 }
    \n-
    \n-
    159
    \n-
    \n-
    160 const GlobalIndex& globalIndex() const
    \n-
    161 {
    \n-
    162 return globalIndex_;
    \n-
    163 }
    \n-
    \n-
    164
    \n-
    \n-
    165 void globalIndex(const GlobalIndex& global)
    \n-
    166 {
    \n-
    167 globalIndex_ = global;
    \n-
    168 }
    \n-
    \n-
    169
    \n-
    170 private:
    \n-
    171 bool isPublic_;
    \n-
    172 Attribute attribute_;
    \n-
    173 const GlobalLookupIndexSet& lookup_;
    \n-
    174 GlobalIndex globalIndex_;
    \n-
    175 };
    \n-
    176
    \n-
    177 template<typename Graph, typename VM, typename I>
    \n-
    178 static void buildCoarseIndexSet(const ParallelInformation& pinfo,
    \n-
    179 Graph& fineGraph,
    \n-
    180 VM& visitedMap,
    \n-\n-
    182 ParallelIndexSet& coarseIndices,
    \n-
    183 ParallelAggregateRenumberer<Graph,I>& renumberer);
    \n-
    184
    \n-
    185 template<typename Graph,typename I>
    \n-
    186 static void buildCoarseRemoteIndices(const RemoteIndices& fineRemote,
    \n-\n-
    188 ParallelIndexSet& coarseIndices,
    \n-
    189 RemoteIndices& coarseRemote,
    \n-
    190 ParallelAggregateRenumberer<Graph,I>& renumberer);
    \n-
    191
    \n-
    192 };
    \n-
    193
    \n-
    197 template<typename G, typename L, typename E>
    \n-
    \n-\n-
    199 : public ParallelIndicesCoarsener<OwnerOverlapCopyCommunication<G,L>,E>
    \n-
    200 {};
    \n-
    \n-
    201
    \n-
    202
    \n-
    203#endif
    \n-
    204
    \n-
    211 template<typename E>
    \n-
    \n-\n-
    213 {
    \n-
    214 public:
    \n-
    215 template<typename Graph, typename VM>
    \n-
    216 static typename Graph::VertexDescriptor
    \n-
    217 coarsen(const SequentialInformation & fineInfo,
    \n-
    218 Graph& fineGraph,
    \n-
    219 VM& visitedMap,
    \n-\n-
    221 SequentialInformation& coarseInfo,
    \n-
    222 typename Graph::VertexDescriptor noAggregates);
    \n-
    223 };
    \n-
    \n-
    224
    \n-
    225#if HAVE_MPI
    \n-
    226 template<typename T, typename E>
    \n-
    227 template<typename Graph, typename VM>
    \n-
    228 inline typename Graph::VertexDescriptor
    \n-
    \n-\n-
    230 Graph& fineGraph,
    \n-
    231 VM& visitedMap,
    \n-\n-
    233 ParallelInformation& coarseInfo,
    \n-
    234 [[maybe_unused]] typename Graph::VertexDescriptor noAggregates)
    \n-
    235 {
    \n-
    236 ParallelAggregateRenumberer<Graph,typename ParallelInformation::GlobalLookupIndexSet> renumberer(aggregates, fineInfo.globalLookup());
    \n-
    237 buildCoarseIndexSet(fineInfo, fineGraph, visitedMap, aggregates,
    \n-
    238 coarseInfo.indexSet(), renumberer);
    \n-
    239 buildCoarseRemoteIndices(fineInfo.remoteIndices(), aggregates, coarseInfo.indexSet(),
    \n-
    240 coarseInfo.remoteIndices(), renumberer);
    \n-
    241
    \n-
    242 return renumberer;
    \n-
    243 }
    \n-
    \n-
    \n-
    244
    \n-
    245 template<typename T, typename E>
    \n-
    246 template<typename Graph, typename VM, typename I>
    \n-
    247 void ParallelIndicesCoarsener<T,E>::buildCoarseIndexSet(const ParallelInformation& pinfo,
    \n-
    248 Graph& fineGraph,
    \n-
    249 VM& visitedMap,
    \n-\n-
    251 ParallelIndexSet& coarseIndices,
    \n-
    252 ParallelAggregateRenumberer<Graph,I>& renumberer)
    \n-
    253 {
    \n-
    254 // fineGraph is the local subgraph corresponding to the vertices the process owns.
    \n-
    255 // i.e. no overlap/copy vertices can be visited traversing the graph
    \n-
    256 typedef typename Graph::ConstVertexIterator Iterator;
    \n-
    257 typedef typename ParallelInformation::GlobalLookupIndexSet GlobalLookupIndexSet;
    \n-
    258
    \n-
    259 Iterator end = fineGraph.end();
    \n-
    260 const GlobalLookupIndexSet& lookup = pinfo.globalLookup();
    \n-
    261
    \n-
    262 coarseIndices.beginResize();
    \n+\n+
    146
    \n+
    151 template<class C1>
    \n+\n+
    153
    \n+
    154 typedef typename std::conditional<std::is_same<C, typename std::remove_const<C>::type>::value && C::mutableMatrix,
    \n+
    155 typename M::block_type, const typename M::block_type>::type
    \n+\n+
    157
    \n+\n+
    162
    \n+\n+
    165
    \n+
    167 bool operator!=(const EdgeIteratorT<typename std::remove_const<C>::type>& other) const;
    \n+
    168
    \n+
    170 bool operator!=(const EdgeIteratorT<const typename std::remove_const<C>::type>& other) const;
    \n+
    171
    \n+
    173 bool operator==(const EdgeIteratorT<typename std::remove_const<C>::type>& other) const;
    \n+
    174
    \n+
    176 bool operator==(const EdgeIteratorT<const typename std::remove_const<C>::type>& other) const;
    \n+
    177
    \n+\n+
    180
    \n+\n+
    183
    \n+
    185 const EdgeDescriptor& operator*() const;
    \n+
    186
    \n+\n+
    189
    \n+
    190 private:
    \n+
    192 VertexDescriptor source_;
    \n+
    194 ColIterator block_;
    \n+
    195 /***
    \n+
    196 * @brief The column iterator positioned at the end of the row
    \n+
    197 * of vertex source_
    \n+
    198 */
    \n+
    199 ColIterator blockEnd_;
    \n+
    201 EdgeDescriptor edge_;
    \n+
    202 };
    \n+
    \n+
    203
    \n+
    207 template<class C>
    \n+
    \n+\n+
    209 {
    \n+
    210 public:
    \n+
    214 typedef typename std::remove_const<C>::type MutableContainer;
    \n+
    218 typedef const typename std::remove_const<C>::type ConstContainer;
    \n+
    219
    \n+
    220 friend class VertexIteratorT<MutableContainer>;
    \n+
    221 friend class VertexIteratorT<ConstContainer>;
    \n+
    222
    \n+
    223 enum {
    \n+
    225 isMutable = std::is_same<C, MutableContainer>::value
    \n+
    226 };
    \n+
    227
    \n+
    233 explicit VertexIteratorT(C* graph, const VertexDescriptor& current);
    \n+
    234
    \n+
    242 explicit VertexIteratorT(const VertexDescriptor& current);
    \n+
    243
    \n+\n+
    245
    \n+\n+
    251
    \n+\n+
    254
    \n+\n+
    257
    \n+\n+
    260
    \n+\n
    263
    \n-
    264 // Setup the coarse index set and renumber the aggregate consecutively
    \n-
    265 // ascending from zero according to the minimum global index belonging
    \n-
    266 // to the aggregate
    \n-
    267 for(Iterator index = fineGraph.begin(); index != end; ++index) {
    \n-\n-
    269 // Isolated vertices will not be represented on the next level.
    \n-
    270 // These should only be there if skipIsolated is activiated in
    \n-
    271 // the coarsening criterion as otherwise they will be aggregated
    \n-
    272 // and should have real aggregate number in the map right now.
    \n-
    273 if(!get(visitedMap, *index)) {
    \n-
    274 // This vertex was not visited by breadthFirstSearch yet.
    \n-
    275 typedef typename GlobalLookupIndexSet::IndexPair IndexPair;
    \n-
    276 const IndexPair* pair= lookup.pair(*index);
    \n-
    277
    \n-
    278 renumberer.reset(); // reset attribute and global index.
    \n-
    279 if(pair!=0) {
    \n-
    280 // vertex is in the index set. Note that not all vertices have
    \n-
    281 // to be in the index set, just the ones where communication
    \n-
    282 // will happen.
    \n-
    283 assert(!ExcludedAttributes::contains(pair->local().attribute()));
    \n-
    284 renumberer.attribute(pair->local().attribute());
    \n-
    285 renumberer.isPublic(pair->local().isPublic());
    \n-
    286 renumberer.globalIndex(pair->global());
    \n-
    287 }
    \n-
    288
    \n-
    289 // Reconstruct aggregate and mark vertices as visited
    \n-
    290 aggregates.template breadthFirstSearch<false>(*index, aggregates[*index],
    \n-
    291 fineGraph, renumberer, visitedMap);
    \n-
    292
    \n-
    293 if(renumberer.globalIndex()!=std::numeric_limits<GlobalIndex>::max()) {
    \n-
    294 // vertex is in the index set.
    \n-
    295 //std::cout <<" Adding global="<< renumberer.globalIndex()<<" local="<<static_cast<std::size_t>(renumberer)<<std::endl;
    \n-
    296 coarseIndices.add(renumberer.globalIndex(),
    \n-
    297 LocalIndex(renumberer, renumberer.attribute(),
    \n-
    298 renumberer.isPublic()));
    \n-
    299 }
    \n-
    300
    \n-
    301 aggregates[*index] = renumberer;
    \n-
    302 ++renumberer;
    \n-
    303 }
    \n-
    304 }
    \n-
    305
    \n-
    306 coarseIndices.endResize();
    \n-
    307
    \n-
    308 assert(static_cast<std::size_t>(renumberer) >= coarseIndices.size());
    \n+
    264 typedef typename std::conditional<std::is_same<C, typename std::remove_const<C>::type>::value && C::mutableMatrix,
    \n+
    265 typename M::block_type, const typename M::block_type>::type
    \n+\n+\n+
    269
    \n+\n+
    275
    \n+\n+
    282
    \n+\n+
    289
    \n+
    290 private:
    \n+
    291 C* graph_;
    \n+
    292 VertexDescriptor current_;
    \n+
    293 };
    \n+
    \n+
    294
    \n+\n+
    299
    \n+\n+
    304
    \n+\n
    309
    \n-
    310 // Reset the visited flags
    \n-
    311 for(Iterator vertex=fineGraph.begin(); vertex != end; ++vertex)
    \n-
    312 put(visitedMap, *vertex, false);
    \n-
    313 }
    \n+\n
    314
    \n-
    315 template<typename T, typename E>
    \n-
    316 template<typename Graph, typename I>
    \n-
    317 void ParallelIndicesCoarsener<T,E>::buildCoarseRemoteIndices(const RemoteIndices& fineRemote,
    \n-
    318 const AggregatesMap<typename Graph::VertexDescriptor>& aggregates,
    \n-
    319 ParallelIndexSet& coarseIndices,
    \n-
    320 RemoteIndices& coarseRemote,
    \n-
    321 ParallelAggregateRenumberer<Graph,I>& renumberer)
    \n-
    322 {
    \n-
    323 std::vector<char> attributes(static_cast<std::size_t>(renumberer));
    \n-
    324
    \n-
    325 GlobalLookupIndexSet<ParallelIndexSet> coarseLookup(coarseIndices, static_cast<std::size_t>(renumberer));
    \n-
    326
    \n-
    327 typedef typename RemoteIndices::const_iterator Iterator;
    \n-
    328 Iterator end = fineRemote.end();
    \n-
    329
    \n-
    330 for(Iterator neighbour = fineRemote.begin();
    \n-
    331 neighbour != end; ++neighbour) {
    \n-
    332 int process = neighbour->first;
    \n-
    333
    \n-
    334 assert(neighbour->second.first==neighbour->second.second);
    \n-
    335
    \n-
    336 // Mark all as not known
    \n-
    337 typedef typename std::vector<char>::iterator CIterator;
    \n-
    338
    \n-
    339 for(CIterator iter=attributes.begin(); iter!= attributes.end(); ++iter)
    \n-
    340 *iter = std::numeric_limits<char>::max();
    \n-
    341
    \n-
    342 auto riEnd = neighbour->second.second->end();
    \n+\n+
    320
    \n+\n+
    325
    \n+\n+
    331
    \n+\n+
    337
    \n+\n
    343
    \n-
    344 for(auto index = neighbour->second.second->begin();
    \n-
    345 index != riEnd; ++index) {
    \n-
    346 if(!E::contains(index->localIndexPair().local().attribute()) &&
    \n-
    347 aggregates[index->localIndexPair().local()] !=
    \n-\n-
    349 {
    \n-
    350 assert(aggregates[index->localIndexPair().local()]<attributes.size());
    \n-
    351 if (attributes[aggregates[index->localIndexPair().local()]] != 3)
    \n-
    352 attributes[aggregates[index->localIndexPair().local()]] = index->attribute();
    \n-
    353 }
    \n-
    354 }
    \n-
    355
    \n-
    356 // Build remote index list
    \n-
    357 typedef RemoteIndexListModifier<ParallelIndexSet,typename RemoteIndices::Allocator,false> Modifier;
    \n-
    358 typedef typename RemoteIndices::RemoteIndex RemoteIndex;
    \n-
    359 typedef typename ParallelIndexSet::const_iterator IndexIterator;
    \n-
    360
    \n-
    361 Modifier coarseList = coarseRemote.template getModifier<false,true>(process);
    \n-
    362
    \n-
    363 IndexIterator iend = coarseIndices.end();
    \n-
    364 for(IndexIterator index = coarseIndices.begin(); index != iend; ++index)
    \n-
    365 if(attributes[index->local()] != std::numeric_limits<char>::max()) {
    \n-
    366 // remote index is present
    \n-
    367 coarseList.insert(RemoteIndex(Attribute(attributes[index->local()]), &(*index)));
    \n-
    368 }
    \n-
    369 //std::cout<<coarseRemote<<std::endl;
    \n-
    370 }
    \n-
    371
    \n-
    372 // The number of neighbours should not change!
    \n-
    373 assert(coarseRemote.neighbours()==fineRemote.neighbours());
    \n+\n+
    349
    \n+\n+
    357
    \n+\n+
    365
    \n+
    366
    \n+\n
    374
    \n-
    375 // snyc the index set and the remote indices to recompute missing
    \n-
    376 // indices
    \n-
    377 IndicesSyncer<ParallelIndexSet> syncer(coarseIndices, coarseRemote);
    \n-
    378 syncer.sync(renumberer);
    \n-
    379
    \n-
    380 }
    \n-
    381
    \n-
    382#endif
    \n-
    383
    \n-
    384 template<typename E>
    \n-
    385 template<typename Graph, typename VM>
    \n-
    386 typename Graph::VertexDescriptor
    \n-
    \n-\n-
    388 [[maybe_unused]] const SequentialInformation& fineInfo,
    \n-
    389 [[maybe_unused]] Graph& fineGraph,
    \n-
    390 [[maybe_unused]] VM& visitedMap,
    \n-
    391 [[maybe_unused]] AggregatesMap<typename Graph::VertexDescriptor>& aggregates,
    \n-
    392 [[maybe_unused]] SequentialInformation& coarseInfo,
    \n-
    393 [[maybe_unused]] typename Graph::VertexDescriptor noAggregates)
    \n-
    394 {
    \n-
    395 return noAggregates;
    \n-
    396 }
    \n-
    \n-
    397
    \n-
    398 } //namespace Amg
    \n-
    399} // namespace Dune
    \n-
    400#endif
    \n-
    \n-\n-\n-
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n-\n-
    LocalIndex::Attribute Attribute
    The type of the attribute.
    Definition indicescoarsener.hh:70
    \n-
    void operator()(const typename G::ConstEdgeIterator &edge)
    Definition indicescoarsener.hh:116
    \n-
    void isPublic(bool b)
    Definition indicescoarsener.hh:139
    \n-
    ParallelInformation::ParallelIndexSet ParallelIndexSet
    Definition indicescoarsener.hh:55
    \n-\n-
    ParallelIndexSet::LocalIndex LocalIndex
    The type of the local index.
    Definition indicescoarsener.hh:65
    \n-
    T ParallelInformation
    The type of the parallel information.
    Definition indicescoarsener.hh:53
    \n-
    Attribute attribute()
    Definition indicescoarsener.hh:155
    \n-
    Vertex operator()(const GlobalIndex &global)
    Definition indicescoarsener.hh:127
    \n-
    static Graph::VertexDescriptor coarsen(ParallelInformation &fineInfo, Graph &fineGraph, VM &visitedMap, AggregatesMap< typename Graph::VertexDescriptor > &aggregates, ParallelInformation &coarseInfo, typename Graph::VertexDescriptor noAggregates)
    Build the coarse index set after the aggregatio.
    Definition indicescoarsener.hh:229
    \n-
    static const V ISOLATED
    Identifier of isolated vertices.
    Definition aggregates.hh:571
    \n-
    ParallelIndexSet::GlobalIndex GlobalIndex
    The type of the global index.
    Definition indicescoarsener.hh:60
    \n-
    void attribute(const Attribute &attribute)
    Definition indicescoarsener.hh:150
    \n-
    E ExcludedAttributes
    The set of excluded attributes.
    Definition indicescoarsener.hh:48
    \n-
    void globalIndex(const GlobalIndex &global)
    Definition indicescoarsener.hh:165
    \n-
    Dune::RemoteIndices< ParallelIndexSet > RemoteIndices
    The type of the remote indices.
    Definition indicescoarsener.hh:75
    \n-
    ParallelAggregateRenumberer(AggregatesMap< Vertex > &aggregates, const I &lookup)
    Definition indicescoarsener.hh:110
    \n-
    const GlobalIndex & globalIndex() const
    Definition indicescoarsener.hh:160
    \n+\n+
    382
    \n+\n+
    388
    \n+
    393 const Matrix& matrix() const;
    \n+
    394
    \n+
    398 std::size_t noVertices() const;
    \n+
    399
    \n+\n+
    407
    \n+
    411 std::size_t noEdges() const;
    \n+
    412
    \n+\n+
    420 const VertexDescriptor& target) const;
    \n+
    421
    \n+
    422 private:
    \n+
    424 Matrix& matrix_;
    \n+
    426 EdgeDescriptor* start_;
    \n+
    428 MatrixGraph(const MatrixGraph&);
    \n+
    429
    \n+
    430 };
    \n+
    \n+
    431
    \n+
    441 template<class G, class T>
    \n+
    \n+\n+
    443 {
    \n+
    444 public:
    \n+
    448 typedef G Graph;
    \n+
    449
    \n+
    454 typedef T Excluded;
    \n+
    455
    \n+
    459 typedef typename Graph::VertexDescriptor VertexDescriptor;
    \n+
    460
    \n+\n+
    462
    \n+
    \n+\n+
    470 {
    \n+
    471 public:
    \n+
    472 typedef ReadablePropertyMapTag Category;
    \n+
    473
    \n+
    \n+
    474 EdgeIndexMap(const EdgeDescriptor& firstEdge)
    \n+
    475 : firstEdge_(firstEdge)
    \n+
    476 {}
    \n+
    \n+
    477
    \n+
    \n+\n+
    480 : firstEdge_(emap.firstEdge_)
    \n+
    481 {}
    \n+
    \n+
    482
    \n+
    \n+
    483 std::size_t operator[](const EdgeDescriptor& edge) const
    \n+
    484 {
    \n+
    485 return edge-firstEdge_;
    \n+
    486 }
    \n+
    \n+
    487 private:
    \n+
    489 EdgeDescriptor firstEdge_;
    \n+\n+
    492 {}
    \n+
    493 };
    \n+
    \n+
    494
    \n+\n+
    500
    \n+
    \n+
    504 class EdgeIterator : public RandomAccessIteratorFacade<EdgeIterator,const EdgeDescriptor>
    \n+
    505 {
    \n+
    506 public:
    \n+
    512 explicit EdgeIterator(const VertexDescriptor& source, const EdgeDescriptor& edge);
    \n+
    513
    \n+
    521 explicit EdgeIterator(const EdgeDescriptor& edge);
    \n+
    522
    \n+
    524 bool equals(const EdgeIterator& other) const;
    \n+
    525
    \n+\n+
    528
    \n+\n+
    531
    \n+
    532 EdgeIterator& advance(std::ptrdiff_t n);
    \n+
    533
    \n+\n+
    536
    \n+
    538 const VertexDescriptor& target() const;
    \n+
    539
    \n+
    541 const VertexDescriptor& source() const;
    \n+
    542
    \n+
    543 std::ptrdiff_t distanceTo(const EdgeIterator& other) const;
    \n+
    544
    \n+
    545 private:
    \n+
    547 VertexDescriptor source_;
    \n+
    552 EdgeDescriptor edge_;
    \n+
    553 };
    \n+
    \n+
    554
    \n+
    \n+\n+
    559 : public ForwardIteratorFacade<VertexIterator,const VertexDescriptor>
    \n+
    560 {
    \n+
    561 public:
    \n+
    568 explicit VertexIterator(const SubGraph<G,T>* graph, const VertexDescriptor& current,
    \n+
    569 const VertexDescriptor& end);
    \n+
    570
    \n+
    571
    \n+
    578 explicit VertexIterator(const VertexDescriptor& current);
    \n+
    579
    \n+\n+
    582
    \n+
    584 bool equals(const VertexIterator& other) const;
    \n+
    585
    \n+\n+
    591
    \n+\n+
    598
    \n+\n+
    605
    \n+
    606 private:
    \n+
    608 const SubGraph<Graph,T>* graph_;
    \n+
    610 VertexDescriptor current_;
    \n+
    612 VertexDescriptor end_;
    \n+
    613 };
    \n+
    \n+
    614
    \n+\n+
    619
    \n+\n+
    624
    \n+\n+
    630
    \n+\n+
    636
    \n+\n+
    644
    \n+\n+
    652
    \n+
    656 std::size_t noVertices() const;
    \n+
    657
    \n+\n+
    665
    \n+
    669 std::size_t noEdges() const;
    \n+\n+
    677 const VertexDescriptor& target) const;
    \n+
    685 SubGraph(const Graph& graph, const T& excluded);
    \n+
    686
    \n+\n+
    691
    \n+
    692 private:
    \n+
    694 const T& excluded_;
    \n+
    696 std::size_t noVertices_;
    \n+
    698 VertexDescriptor endVertex_;
    \n+
    700 int noEdges_;
    \n+
    705 VertexDescriptor maxVertex_;
    \n+
    707 VertexDescriptor* edges_;
    \n+
    709 std::ptrdiff_t* start_;
    \n+
    711 std::ptrdiff_t* end_;
    \n+
    713 SubGraph(const SubGraph&)
    \n+
    714 {}
    \n+
    715 };
    \n+
    \n+
    716
    \n+
    717
    \n+
    721 template<class G, class VP, class VM=IdentityMap>
    \n+
    \n+\n+
    723 {
    \n+
    724 public:
    \n+
    728 typedef G Graph;
    \n+
    729
    \n+
    733 typedef typename Graph::VertexDescriptor VertexDescriptor;
    \n+
    734
    \n+
    738 typedef typename Graph::EdgeDescriptor EdgeDescriptor;
    \n+
    739
    \n+\n+
    744
    \n+
    756 typedef VM VertexMap;
    \n+
    757
    \n+
    761 typedef typename Graph::EdgeIterator EdgeIterator;
    \n+
    762
    \n+
    766 typedef typename Graph::ConstEdgeIterator ConstEdgeIterator;
    \n+
    767
    \n+\n+
    774
    \n+\n+
    781
    \n+\n+
    788
    \n+\n+
    795
    \n+
    796
    \n+
    797 template<class C>
    \n+
    \n+\n+
    799 : public std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n+
    800 C>::value,
    \n+
    801 typename Graph::VertexIterator,
    \n+
    802 typename Graph::ConstVertexIterator>::type
    \n+
    803 {
    \n+
    804 friend class VertexIteratorT<const typename std::remove_const<C>::type>;
    \n+
    805 friend class VertexIteratorT<typename std::remove_const<C>::type>;
    \n+
    806 public:
    \n+
    810 typedef typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n+
    811 C>::value,
    \n+
    812 typename Graph::VertexIterator,
    \n+
    813 typename Graph::ConstVertexIterator>::type
    \n+\n+
    815
    \n+
    819 typedef typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n+
    820 C>::value,
    \n+
    821 typename Graph::EdgeIterator,
    \n+
    822 typename Graph::ConstEdgeIterator>::type
    \n+\n+
    824
    \n+
    830 explicit VertexIteratorT(const Father& iter,
    \n+
    831 C* graph);
    \n+
    832
    \n+
    833
    \n+
    841 explicit VertexIteratorT(const Father& iter);
    \n+
    842
    \n+
    847 template<class C1>
    \n+
    848 VertexIteratorT(const VertexIteratorT<C1>& other);
    \n+
    849
    \n+
    853 typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,
    \n+
    854 VertexProperties&,
    \n+
    855 const VertexProperties&>::type
    \n+
    856 properties() const;
    \n+
    857
    \n+\n+
    864
    \n+\n+
    871
    \n+
    872 private:
    \n+
    876 C* graph_;
    \n+
    877 };
    \n+
    \n+
    878
    \n+
    882 typedef VertexIteratorT<VertexPropertiesGraph<Graph,
    \n+
    883 VertexProperties,VM> > VertexIterator;
    \n+
    884
    \n+
    888 typedef VertexIteratorT<const VertexPropertiesGraph<Graph,
    \n+
    889 VertexProperties,VM> > ConstVertexIterator;
    \n+
    890
    \n+\n+
    896
    \n+\n+
    902
    \n+\n+
    908
    \n+\n+
    914
    \n+
    920 VertexProperties& getVertexProperties(const VertexDescriptor& vertex);
    \n+
    921
    \n+
    927 const VertexProperties& getVertexProperties(const VertexDescriptor& vertex) const;
    \n+
    928
    \n+
    933 const Graph& graph() const;
    \n+
    934
    \n+
    938 std::size_t noVertices() const;
    \n+
    939
    \n+
    943 std::size_t noEdges() const;
    \n+
    944
    \n+\n+
    952
    \n+
    958 VertexPropertiesGraph(Graph& graph, const VertexMap vmap=VertexMap());
    \n+
    959
    \n+
    960 private:
    \n+
    961 VertexPropertiesGraph(const VertexPropertiesGraph&)
    \n+
    962 {}
    \n+
    963
    \n+
    965 Graph& graph_;
    \n+
    967 VertexMap vmap_;
    \n+
    969 std::vector<VertexProperties> vertexProperties_;
    \n+
    970
    \n+
    971 };
    \n+
    \n+
    972
    \n+
    976 template<class G, class VP, class EP, class VM=IdentityMap, class EM=IdentityMap>
    \n+
    \n+\n+
    978 {
    \n+
    979 public:
    \n+
    983 typedef G Graph;
    \n+
    984
    \n+
    988 typedef typename Graph::VertexDescriptor VertexDescriptor;
    \n+
    989
    \n+
    993 typedef typename Graph::EdgeDescriptor EdgeDescriptor;
    \n+
    994
    \n+\n+
    999
    \n+
    1011 typedef VM VertexMap;
    \n+
    1012
    \n+
    1016 typedef EP EdgeProperties;
    \n+
    1017
    \n+
    1018
    \n+
    1030 typedef EM EdgeMap;
    \n+
    1031
    \n+
    1032 template<class C>
    \n+
    \n+\n+
    1034 : public std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n+
    1035 C>::value,
    \n+
    1036 typename Graph::EdgeIterator,
    \n+
    1037 typename Graph::ConstEdgeIterator>::type
    \n+
    1038 {
    \n+
    1039
    \n+
    1040 friend class EdgeIteratorT<const typename std::remove_const<C>::type>;
    \n+
    1041 friend class EdgeIteratorT<typename std::remove_const<C>::type>;
    \n+
    1042 public:
    \n+
    1046 typedef typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n+
    1047 C>::value,
    \n+
    1048 typename Graph::EdgeIterator,
    \n+
    1049 typename Graph::ConstEdgeIterator>::type
    \n+\n+
    1051
    \n+
    1057 explicit EdgeIteratorT(const Father& iter,
    \n+
    1058 C* graph);
    \n+
    1059
    \n+
    1067 explicit EdgeIteratorT(const Father& iter);
    \n+
    1068
    \n+
    1073 template<class C1>
    \n+
    1074 EdgeIteratorT(const EdgeIteratorT<C1>& other);
    \n+
    1075
    \n+
    1079 typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,
    \n+
    1080 EdgeProperties&,
    \n+
    1081 const EdgeProperties&>::type
    \n+
    1082 properties() const;
    \n+
    1083
    \n+
    1084 private:
    \n+
    1088 C* graph_;
    \n+
    1089 };
    \n+
    \n+
    1090
    \n+
    1094 typedef EdgeIteratorT<PropertiesGraph<Graph,
    \n+
    1095 VertexProperties,
    \n+
    1096 EdgeProperties,VM,EM> > EdgeIterator;
    \n+
    1097
    \n+
    1101 typedef EdgeIteratorT<const PropertiesGraph<Graph,
    \n+
    1102 VertexProperties,
    \n+
    1103 EdgeProperties,VM,EM> > ConstEdgeIterator;
    \n+
    1104
    \n+
    1110 EdgeIterator beginEdges(const VertexDescriptor& source);
    \n+
    1111
    \n+
    1117 EdgeIterator endEdges(const VertexDescriptor& source);
    \n+
    1118
    \n+
    1124 ConstEdgeIterator beginEdges(const VertexDescriptor& source) const;
    \n+
    1125
    \n+
    1131 ConstEdgeIterator endEdges(const VertexDescriptor& source) const;
    \n+
    1132
    \n+
    1133
    \n+
    1134 template<class C>
    \n+
    \n+\n+
    1136 : public std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n+
    1137 C>::value,
    \n+
    1138 typename Graph::VertexIterator,
    \n+
    1139 typename Graph::ConstVertexIterator>::type
    \n+
    1140 {
    \n+
    1141 friend class VertexIteratorT<const typename std::remove_const<C>::type>;
    \n+
    1142 friend class VertexIteratorT<typename std::remove_const<C>::type>;
    \n+
    1143 public:
    \n+
    1147 typedef typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n+
    1148 C>::value,
    \n+
    1149 typename Graph::VertexIterator,
    \n+
    1150 typename Graph::ConstVertexIterator>::type
    \n+\n+
    1152
    \n+
    1158 explicit VertexIteratorT(const Father& iter,
    \n+
    1159 C* graph);
    \n+
    1160
    \n+
    1161
    \n+
    1169 explicit VertexIteratorT(const Father& iter);
    \n+
    1170
    \n+
    1175 template<class C1>
    \n+
    1176 VertexIteratorT(const VertexIteratorT<C1>& other);
    \n+
    1177
    \n+
    1181 typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,
    \n+
    1182 VertexProperties&,
    \n+
    1183 const VertexProperties&>::type
    \n+
    1184 properties() const;
    \n+
    1185
    \n+
    1191 EdgeIteratorT<C> begin() const;
    \n+
    1192
    \n+
    1198 EdgeIteratorT<C> end() const;
    \n+
    1199
    \n+
    1200 private:
    \n+
    1204 C* graph_;
    \n+
    1205 };
    \n+
    \n+
    1206
    \n+
    1210 typedef VertexIteratorT<PropertiesGraph<Graph,
    \n+
    1211 VertexProperties,
    \n+
    1212 EdgeProperties,VM,EM> > VertexIterator;
    \n+
    1213
    \n+
    1217 typedef VertexIteratorT<const PropertiesGraph<Graph,
    \n+
    1218 VertexProperties,
    \n+
    1219 EdgeProperties,VM,EM> > ConstVertexIterator;
    \n+
    1220
    \n+\n+
    1226
    \n+\n+
    1232
    \n+
    1237 ConstVertexIterator begin() const;
    \n+
    1238
    \n+\n+
    1244
    \n+
    1250 VertexProperties& getVertexProperties(const VertexDescriptor& vertex);
    \n+
    1251
    \n+
    1257 const VertexProperties& getVertexProperties(const VertexDescriptor& vertex) const;
    \n+
    1258
    \n+
    \n+
    1265 EdgeDescriptor findEdge(const VertexDescriptor& source,
    \n+
    1266 const VertexDescriptor& target)
    \n+
    1267 {
    \n+
    1268 return graph_.findEdge(source,target);
    \n+
    1269 }
    \n+
    \n+
    1270
    \n+\n+
    1277
    \n+
    1278
    \n+\n+
    1285
    \n+\n+
    1293 const VertexDescriptor& target);
    \n+
    1294
    \n+\n+
    1302 const VertexDescriptor& target) const;
    \n+
    1303
    \n+
    1308 const Graph& graph() const;
    \n+
    1309
    \n+
    1313 std::size_t noVertices() const;
    \n+
    1314
    \n+
    1318 std::size_t noEdges() const;
    \n+
    1319
    \n+\n+
    1327
    \n+\n+
    1335 const EdgeMap& emap=EdgeMap());
    \n+
    1336
    \n+
    1337 private:
    \n+\n+
    1339 {}
    \n+
    1340
    \n+
    1342 Graph& graph_;
    \n+
    1345 VertexMap vmap_;
    \n+
    1346 std::vector<VertexProperties> vertexProperties_;
    \n+
    1348 EdgeMap emap_;
    \n+
    1350 std::vector<EdgeProperties> edgeProperties_;
    \n+
    1351
    \n+
    1352 };
    \n+
    \n+
    1353
    \n+
    1354
    \n+
    1359 template<typename G>
    \n+
    \n+\n+
    1361 {
    \n+
    1362 public:
    \n+
    1366 typedef G Graph;
    \n+
    1370 typedef typename G::VertexProperties VertexProperties;
    \n+
    1374 typedef typename G::VertexDescriptor Vertex;
    \n+
    1375
    \n+
    \n+\n+
    1381 : graph_(g)
    \n+
    1382 {}
    \n+
    \n+
    \n+\n+
    1387 : graph_(0)
    \n+
    1388 {}
    \n+
    \n+
    1389
    \n+
    1390
    \n+
    \n+
    1395 VertexProperties& operator[](const Vertex& vertex) const
    \n+
    1396 {
    \n+
    1397 return graph_->getVertexProperties(vertex);
    \n+
    1398 }
    \n+
    \n+
    1399 private:
    \n+
    1400 Graph* graph_;
    \n+
    1401 };
    \n+
    \n+
    1402
    \n+
    1407 template<typename G>
    \n+
    \n+\n+
    1409 {
    \n+
    1410 public:
    \n+
    1414 typedef G Graph;
    \n+
    1418 typedef typename G::EdgeProperties EdgeProperties;
    \n+
    1422 typedef typename G::EdgeDescriptor Edge;
    \n+
    1423
    \n+
    \n+\n+
    1429 : graph_(g)
    \n+
    1430 {}
    \n+
    \n+
    \n+\n+
    1435 : graph_(0)
    \n+
    1436 {}
    \n+
    \n+
    1437
    \n+
    \n+
    1442 EdgeProperties& operator[](const Edge& edge) const
    \n+
    1443 {
    \n+
    1444 return graph_->getEdgeProperties(edge);
    \n+
    1445 }
    \n+
    \n+
    1446 private:
    \n+
    1447 Graph* graph_;
    \n+
    1448 };
    \n+
    \n+
    1449
    \n+
    1450
    \n+
    1461 template<class G, class V>
    \n+
    1462 int visitNeighbours(const G& graph, const typename G::VertexDescriptor& vertex,
    \n+
    1463 V& visitor);
    \n+
    1464
    \n+
    1465#ifndef DOXYGEN
    \n+
    1466
    \n+
    1467 template<class M>
    \n+\n+
    1469 : matrix_(matrix)
    \n+
    1470 {
    \n+
    1471 if(matrix_.N()!=matrix_.M())
    \n+
    1472 DUNE_THROW(ISTLError, "Matrix has to have as many columns as rows!");
    \n+
    1473
    \n+
    1474 start_ = new EdgeDescriptor[matrix_.N()+1];
    \n+
    1475
    \n+
    1476 typedef typename M::ConstIterator Iterator;
    \n+
    1477 start_[matrix_.begin().index()] = 0;
    \n+
    1478
    \n+
    1479 for(Iterator row=matrix_.begin(); row != matrix_.end(); ++row)
    \n+
    1480 start_[row.index()+1] = start_[row.index()] + row->size();
    \n+
    1481 }
    \n+
    1482
    \n+
    1483 template<class M>
    \n+
    1484 MatrixGraph<M>::~MatrixGraph()
    \n+
    1485 {
    \n+
    1486 delete[] start_;
    \n+
    1487 }
    \n+
    1488
    \n+
    1489 template<class M>
    \n+
    1490 inline std::size_t MatrixGraph<M>::noEdges() const
    \n+
    1491 {
    \n+
    1492 return start_[matrix_.N()];
    \n+
    1493 }
    \n+
    1494
    \n+
    1495 template<class M>
    \n+
    1496 inline std::size_t MatrixGraph<M>::noVertices() const
    \n+
    1497 {
    \n+
    1498 return matrix_.N();
    \n+
    1499 }
    \n+
    1500
    \n+
    1501 template<class M>
    \n+
    1502 inline typename MatrixGraph<M>::VertexDescriptor MatrixGraph<M>::maxVertex() const
    \n+
    1503 {
    \n+
    1504 return matrix_.N()-1;
    \n+
    1505 }
    \n+
    1506
    \n+
    1507 template<class M>
    \n+
    1508 typename MatrixGraph<M>::EdgeDescriptor
    \n+
    1509 MatrixGraph<M>::findEdge(const VertexDescriptor& source,
    \n+
    1510 const VertexDescriptor& target) const
    \n+
    1511 {
    \n+
    1512 typename M::ConstColIterator found =matrix_[source].find(target);
    \n+
    1513 if(found == matrix_[source].end())
    \n+
    1514 return std::numeric_limits<EdgeDescriptor>::max();
    \n+
    1515 std::size_t offset = found.offset();
    \n+
    1516 if(target>source)
    \n+
    1517 offset--;
    \n+
    1518
    \n+
    1519 assert(offset<noEdges());
    \n+
    1520
    \n+
    1521 return start_[source]+offset;
    \n+
    1522 }
    \n+
    1523
    \n+
    1524
    \n+
    1525 template<class M>
    \n+
    1526 inline M& MatrixGraph<M>::matrix()
    \n+
    1527 {
    \n+
    1528 return matrix_;
    \n+
    1529 }
    \n+
    1530
    \n+
    1531 template<class M>
    \n+
    1532 inline const M& MatrixGraph<M>::matrix() const
    \n+
    1533 {
    \n+
    1534 return matrix_;
    \n+
    1535 }
    \n+
    1536
    \n+
    1537 template<class M>
    \n+
    1538 template<class C>
    \n+
    1539 MatrixGraph<M>::EdgeIteratorT<C>::EdgeIteratorT(const VertexDescriptor& source, const ColIterator& block,
    \n+
    1540 const ColIterator& end, const EdgeDescriptor& edge)
    \n+
    1541 : source_(source), block_(block), blockEnd_(end), edge_(edge)
    \n+
    1542 {
    \n+
    1543 if(block_!=blockEnd_ && block_.index() == source_) {
    \n+
    1544 // This is the edge from the diagonal to the diagonal. Skip it.
    \n+
    1545 ++block_;
    \n+
    1546 }
    \n+
    1547 }
    \n+
    1548
    \n+
    1549 template<class M>
    \n+
    1550 template<class C>
    \n+
    1551 MatrixGraph<M>::EdgeIteratorT<C>::EdgeIteratorT(const ColIterator& block)
    \n+
    1552 : block_(block)
    \n+
    1553 {}
    \n+
    1554
    \n+
    1555 template<class M>
    \n+
    1556 template<class C>
    \n+
    1557 template<class C1>
    \n+
    1558 MatrixGraph<M>::EdgeIteratorT<C>::EdgeIteratorT(const EdgeIteratorT<C1>& other)
    \n+
    1559 : source_(other.source_), block_(other.block_), blockEnd_(other.blockEnd_), edge_(other.edge_)
    \n+
    1560 {}
    \n+
    1561
    \n+
    1562
    \n+
    1563 template<class M>
    \n+
    1564 template<class C>
    \n+
    1565 inline typename MatrixGraph<M>::template EdgeIteratorT<C>::WeightType&
    \n+
    1566 MatrixGraph<M>::EdgeIteratorT<C>::weight() const
    \n+
    1567 {
    \n+
    1568 return *block_;
    \n+
    1569 }
    \n+
    1570
    \n+
    1571 template<class M>
    \n+
    1572 template<class C>
    \n+
    1573 inline typename MatrixGraph<M>::template EdgeIteratorT<C>& MatrixGraph<M>::EdgeIteratorT<C>::operator++()
    \n+
    1574 {
    \n+
    1575 ++block_;
    \n+
    1576 ++edge_;
    \n+
    1577
    \n+
    1578 if(block_!=blockEnd_ && block_.index() == source_) {
    \n+
    1579 // This is the edge from the diagonal to the diagonal. Skip it.
    \n+
    1580 ++block_;
    \n+
    1581 }
    \n+
    1582
    \n+
    1583 return *this;
    \n+
    1584 }
    \n+
    1585
    \n+
    1586 template<class M>
    \n+
    1587 template<class C>
    \n+
    1588 inline bool MatrixGraph<M>::EdgeIteratorT<C>::operator!=(const typename MatrixGraph<M>::template EdgeIteratorT<typename std::remove_const<C>::type>& other) const
    \n+
    1589 {
    \n+
    1590 return block_!=other.block_;
    \n+
    1591 }
    \n+
    1592
    \n+
    1593 template<class M>
    \n+
    1594 template<class C>
    \n+
    1595 inline bool MatrixGraph<M>::EdgeIteratorT<C>::operator!=(const typename MatrixGraph<M>::template EdgeIteratorT<const typename std::remove_const<C>::type>& other) const
    \n+
    1596 {
    \n+
    1597 return block_!=other.block_;
    \n+
    1598 }
    \n+
    1599
    \n+
    1600 template<class M>
    \n+
    1601 template<class C>
    \n+
    1602 inline bool MatrixGraph<M>::EdgeIteratorT<C>::operator==(const typename MatrixGraph<M>::template EdgeIteratorT<typename std::remove_const<C>::type>& other) const
    \n+
    1603 {
    \n+
    1604 return block_==other.block_;
    \n+
    1605 }
    \n+
    1606
    \n+
    1607 template<class M>
    \n+
    1608 template<class C>
    \n+
    1609 inline bool MatrixGraph<M>::EdgeIteratorT<C>::operator==(const typename MatrixGraph<M>::template EdgeIteratorT<const typename std::remove_const<C>::type>& other) const
    \n+
    1610 {
    \n+
    1611 return block_==other.block_;
    \n+
    1612 }
    \n+
    1613
    \n+
    1614 template<class M>
    \n+
    1615 template<class C>
    \n+
    1616 inline typename MatrixGraph<M>::VertexDescriptor MatrixGraph<M>::EdgeIteratorT<C>::target() const
    \n+
    1617 {
    \n+
    1618 return block_.index();
    \n+
    1619 }
    \n+
    1620
    \n+
    1621 template<class M>
    \n+
    1622 template<class C>
    \n+
    1623 inline typename MatrixGraph<M>::VertexDescriptor MatrixGraph<M>::EdgeIteratorT<C>::source() const
    \n+
    1624 {
    \n+
    1625 return source_;
    \n+
    1626 }
    \n+
    1627
    \n+
    1628 template<class M>
    \n+
    1629 template<class C>
    \n+
    1630 inline const typename MatrixGraph<M>::EdgeDescriptor& MatrixGraph<M>::EdgeIteratorT<C>::operator*() const
    \n+
    1631 {
    \n+
    1632 return edge_;
    \n+
    1633 }
    \n+
    1634
    \n+
    1635 template<class M>
    \n+
    1636 template<class C>
    \n+
    1637 inline const typename MatrixGraph<M>::EdgeDescriptor* MatrixGraph<M>::EdgeIteratorT<C>::operator->() const
    \n+
    1638 {
    \n+
    1639 return &edge_;
    \n+
    1640 }
    \n+
    1641
    \n+
    1642 template<class M>
    \n+
    1643 template<class C>
    \n+
    1644 MatrixGraph<M>::VertexIteratorT<C>::VertexIteratorT(C* graph,
    \n+
    1645 const VertexDescriptor& current)
    \n+
    1646 : graph_(graph), current_(current)
    \n+
    1647 {}
    \n+
    1648
    \n+
    1649
    \n+
    1650 template<class M>
    \n+
    1651 template<class C>
    \n+
    1652 MatrixGraph<M>::VertexIteratorT<C>::VertexIteratorT(const VertexDescriptor& current)
    \n+
    1653 : current_(current)
    \n+
    1654 {}
    \n+
    1655
    \n+
    1656 template<class M>
    \n+
    1657 template<class C>
    \n+
    1658 MatrixGraph<M>::VertexIteratorT<C>::VertexIteratorT(const VertexIteratorT<MutableContainer>& other)
    \n+
    1659 : graph_(other.graph_), current_(other.current_)
    \n+
    1660 {}
    \n+
    1661
    \n+
    1662 template<class M>
    \n+
    1663 template<class C>
    \n+
    1664 inline bool MatrixGraph<M>::VertexIteratorT<C>::operator!=(const VertexIteratorT<MutableContainer>& other) const
    \n+
    1665 {
    \n+
    1666 return current_ != other.current_;
    \n+
    1667 }
    \n+
    1668
    \n+
    1669 template<class M>
    \n+
    1670 template<class C>
    \n+
    1671 inline bool MatrixGraph<M>::VertexIteratorT<C>::operator!=(const VertexIteratorT<ConstContainer>& other) const
    \n+
    1672 {
    \n+
    1673 return current_ != other.current_;
    \n+
    1674 }
    \n+
    1675
    \n+
    1676
    \n+
    1677 template<class M>
    \n+
    1678 template<class C>
    \n+
    1679 inline bool MatrixGraph<M>::VertexIteratorT<C>::operator==(const VertexIteratorT<MutableContainer>& other) const
    \n+
    1680 {
    \n+
    1681 return current_ == other.current_;
    \n+
    1682 }
    \n+
    1683
    \n+
    1684 template<class M>
    \n+
    1685 template<class C>
    \n+
    1686 inline bool MatrixGraph<M>::VertexIteratorT<C>::operator==(const VertexIteratorT<ConstContainer>& other) const
    \n+
    1687 {
    \n+
    1688 return current_ == other.current_;
    \n+
    1689 }
    \n+
    1690
    \n+
    1691 template<class M>
    \n+
    1692 template<class C>
    \n+
    1693 inline typename MatrixGraph<M>::template VertexIteratorT<C>& MatrixGraph<M>::VertexIteratorT<C>::operator++()
    \n+
    1694 {
    \n+
    1695 ++current_;
    \n+
    1696 return *this;
    \n+
    1697 }
    \n+
    1698
    \n+
    1699 template<class M>
    \n+
    1700 template<class C>
    \n+
    1701 inline typename MatrixGraph<M>::template VertexIteratorT<C>::WeightType&
    \n+
    1702 MatrixGraph<M>::VertexIteratorT<C>::weight() const
    \n+
    1703 {
    \n+
    1704 return graph_->matrix()[current_][current_];
    \n+
    1705 }
    \n+
    1706
    \n+
    1707 template<class M>
    \n+
    1708 template<class C>
    \n+
    1709 inline const typename MatrixGraph<M>::VertexDescriptor&
    \n+
    1710 MatrixGraph<M>::VertexIteratorT<C>::operator*() const
    \n+
    1711 {
    \n+
    1712 return current_;
    \n+
    1713 }
    \n+
    1714
    \n+
    1715 template<class M>
    \n+
    1716 template<class C>
    \n+
    1717 inline typename MatrixGraph<M>::template EdgeIteratorT<C>
    \n+
    1718 MatrixGraph<M>::VertexIteratorT<C>::begin() const
    \n+
    1719 {
    \n+
    1720 return graph_->beginEdges(current_);
    \n+
    1721 }
    \n+
    1722
    \n+
    1723 template<class M>
    \n+
    1724 template<class C>
    \n+
    1725 inline typename MatrixGraph<M>::template EdgeIteratorT<C>
    \n+
    1726 MatrixGraph<M>::VertexIteratorT<C>::end() const
    \n+
    1727 {
    \n+
    1728 return graph_->endEdges(current_);
    \n+
    1729 }
    \n+
    1730
    \n+
    1731 template<class M>
    \n+
    1732 inline typename MatrixGraph<M>::template VertexIteratorT<MatrixGraph<M> >
    \n+
    1733 MatrixGraph<M>::begin()
    \n+
    1734 {
    \n+
    1735 return VertexIterator(this,0);
    \n+
    1736 }
    \n+
    1737
    \n+
    1738 template<class M>
    \n+
    1739 inline typename MatrixGraph<M>::template VertexIteratorT<MatrixGraph<M> >
    \n+
    1740 MatrixGraph<M>::end()
    \n+
    1741 {
    \n+
    1742 return VertexIterator(matrix_.N());
    \n+
    1743 }
    \n+
    1744
    \n+
    1745
    \n+
    1746 template<class M>
    \n+
    1747 inline typename MatrixGraph<M>::template VertexIteratorT<const MatrixGraph<M> >
    \n+
    1748 MatrixGraph<M>::begin() const
    \n+
    1749 {
    \n+
    1750 return ConstVertexIterator(this, 0);
    \n+
    1751 }
    \n+
    1752
    \n+
    1753 template<class M>
    \n+
    1754 inline typename MatrixGraph<M>::template VertexIteratorT<const MatrixGraph<M> >
    \n+
    1755 MatrixGraph<M>::end() const
    \n+
    1756 {
    \n+
    1757 return ConstVertexIterator(matrix_.N());
    \n+
    1758 }
    \n+
    1759
    \n+
    1760 template<class M>
    \n+
    1761 inline typename MatrixGraph<M>::template EdgeIteratorT<MatrixGraph<M> >
    \n+
    1762 MatrixGraph<M>::beginEdges(const VertexDescriptor& source)
    \n+
    1763 {
    \n+
    1764 return EdgeIterator(source, matrix_.operator[](source).begin(),
    \n+
    1765 matrix_.operator[](source).end(), start_[source]);
    \n+
    1766 }
    \n+
    1767
    \n+
    1768 template<class M>
    \n+
    1769 inline typename MatrixGraph<M>::template EdgeIteratorT<MatrixGraph<M> >
    \n+
    1770 MatrixGraph<M>::endEdges(const VertexDescriptor& source)
    \n+
    1771 {
    \n+
    1772 return EdgeIterator(matrix_.operator[](source).end());
    \n+
    1773 }
    \n+
    1774
    \n+
    1775
    \n+
    1776 template<class M>
    \n+
    1777 inline typename MatrixGraph<M>::template EdgeIteratorT<const MatrixGraph<M> >
    \n+
    1778 MatrixGraph<M>::beginEdges(const VertexDescriptor& source) const
    \n+
    1779 {
    \n+
    1780 return ConstEdgeIterator(source, matrix_.operator[](source).begin(),
    \n+
    1781 matrix_.operator[](source).end(), start_[source]);
    \n+
    1782 }
    \n+
    1783
    \n+
    1784 template<class M>
    \n+
    1785 inline typename MatrixGraph<M>::template EdgeIteratorT<const MatrixGraph<M> >
    \n+
    1786 MatrixGraph<M>::endEdges(const VertexDescriptor& source) const
    \n+
    1787 {
    \n+
    1788 return ConstEdgeIterator(matrix_.operator[](source).end());
    \n+
    1789 }
    \n+
    1790
    \n+
    1791
    \n+
    1792 template<class G, class T>
    \n+
    1793 SubGraph<G,T>::EdgeIterator::EdgeIterator(const VertexDescriptor& source,
    \n+
    1794 const EdgeDescriptor& edge)
    \n+
    1795 : source_(source), edge_(edge)
    \n+
    1796 {}
    \n+
    1797
    \n+
    1798
    \n+
    1799 template<class G, class T>
    \n+
    1800 SubGraph<G,T>::EdgeIterator::EdgeIterator(const EdgeDescriptor& edge)
    \n+
    1801 : edge_(edge)
    \n+
    1802 {}
    \n+
    1803
    \n+
    1804 template<class G, class T>
    \n+
    1805 typename SubGraph<G,T>::EdgeIndexMap SubGraph<G,T>::getEdgeIndexMap()
    \n+
    1806 {
    \n+
    1807 return EdgeIndexMap(edges_);
    \n+
    1808 }
    \n+
    1809
    \n+
    1810 template<class G, class T>
    \n+
    1811 inline bool SubGraph<G,T>::EdgeIterator::equals(const EdgeIterator & other) const
    \n+
    1812 {
    \n+
    1813 return other.edge_==edge_;
    \n+
    1814 }
    \n+
    1815
    \n+
    1816 template<class G, class T>
    \n+
    1817 inline typename SubGraph<G,T>::EdgeIterator& SubGraph<G,T>::EdgeIterator::increment()
    \n+
    1818 {
    \n+
    1819 ++edge_;
    \n+
    1820 return *this;
    \n+
    1821 }
    \n+
    1822
    \n+
    1823 template<class G, class T>
    \n+
    1824 inline typename SubGraph<G,T>::EdgeIterator& SubGraph<G,T>::EdgeIterator::decrement()
    \n+
    1825 {
    \n+
    1826 --edge_;
    \n+
    1827 return *this;
    \n+
    1828 }
    \n+
    1829
    \n+
    1830 template<class G, class T>
    \n+
    1831 inline typename SubGraph<G,T>::EdgeIterator& SubGraph<G,T>::EdgeIterator::advance(std::ptrdiff_t n)
    \n+
    1832 {
    \n+
    1833 edge_+=n;
    \n+
    1834 return *this;
    \n+
    1835 }
    \n+
    1836 template<class G, class T>
    \n+
    1837 inline const typename G::VertexDescriptor& SubGraph<G,T>::EdgeIterator::source() const
    \n+
    1838 {
    \n+
    1839 return source_;
    \n+
    1840 }
    \n+
    1841
    \n+
    1842 template<class G, class T>
    \n+
    1843 inline const typename G::VertexDescriptor& SubGraph<G,T>::EdgeIterator::target() const
    \n+
    1844 {
    \n+
    1845 return *edge_;
    \n+
    1846 }
    \n+
    1847
    \n+
    1848
    \n+
    1849 template<class G, class T>
    \n+
    1850 inline const typename SubGraph<G,T>::EdgeDescriptor& SubGraph<G,T>::EdgeIterator::dereference() const
    \n+
    1851 {
    \n+
    1852 return edge_;
    \n+
    1853 }
    \n+
    1854
    \n+
    1855 template<class G, class T>
    \n+
    1856 inline std::ptrdiff_t SubGraph<G,T>::EdgeIterator::distanceTo(const EdgeIterator & other) const
    \n+
    1857 {
    \n+
    1858 return other.edge_-edge_;
    \n+
    1859 }
    \n+
    1860
    \n+
    1861 template<class G, class T>
    \n+
    1862 SubGraph<G,T>::VertexIterator::VertexIterator(const SubGraph<G,T>* graph,
    \n+
    1863 const VertexDescriptor& current,
    \n+
    1864 const VertexDescriptor& end)
    \n+
    1865 : graph_(graph), current_(current), end_(end)
    \n+
    1866 {
    \n+
    1867 // Skip excluded vertices
    \n+
    1868 typedef typename T::const_iterator Iterator;
    \n+
    1869
    \n+
    1870 for(Iterator vertex = graph_->excluded_.begin();
    \n+
    1871 current_ != end_ && *vertex;
    \n+
    1872 ++vertex)
    \n+
    1873 ++current_;
    \n+
    1874 assert(current_ == end_ || !graph_->excluded_[current_]);
    \n+
    1875 }
    \n+
    1876
    \n+
    1877 template<class G, class T>
    \n+
    1878 SubGraph<G,T>::VertexIterator::VertexIterator(const VertexDescriptor& current)
    \n+
    1879 : current_(current)
    \n+
    1880 {}
    \n+
    1881
    \n+
    1882 template<class G, class T>
    \n+
    1883 inline typename SubGraph<G,T>::VertexIterator& SubGraph<G,T>::VertexIterator::increment()
    \n+
    1884 {
    \n+
    1885 ++current_;
    \n+
    1886 //Skip excluded vertices
    \n+
    1887 while(current_ != end_ && graph_->excluded_[current_])
    \n+
    1888 ++current_;
    \n+
    1889
    \n+
    1890 assert(current_ == end_ || !graph_->excluded_[current_]);
    \n+
    1891 return *this;
    \n+
    1892 }
    \n+
    1893
    \n+
    1894 template<class G, class T>
    \n+
    1895 inline bool SubGraph<G,T>::VertexIterator::equals(const VertexIterator & other) const
    \n+
    1896 {
    \n+
    1897 return current_==other.current_;
    \n+
    1898 }
    \n+
    1899
    \n+
    1900 template<class G, class T>
    \n+
    1901 inline const typename G::VertexDescriptor& SubGraph<G,T>::VertexIterator::dereference() const
    \n+
    1902 {
    \n+
    1903 return current_;
    \n+
    1904 }
    \n+
    1905
    \n+
    1906 template<class G, class T>
    \n+
    1907 inline typename SubGraph<G,T>::EdgeIterator SubGraph<G,T>::VertexIterator::begin() const
    \n+
    1908 {
    \n+
    1909 return graph_->beginEdges(current_);
    \n+
    1910 }
    \n+
    1911
    \n+
    1912 template<class G, class T>
    \n+
    1913 inline typename SubGraph<G,T>::EdgeIterator SubGraph<G,T>::VertexIterator::end() const
    \n+
    1914 {
    \n+
    1915 return graph_->endEdges(current_);
    \n+
    1916 }
    \n+
    1917
    \n+
    1918 template<class G, class T>
    \n+
    1919 inline typename SubGraph<G,T>::VertexIterator SubGraph<G,T>::begin() const
    \n+
    1920 {
    \n+
    1921 return VertexIterator(this, 0, endVertex_);
    \n+
    1922 }
    \n+
    1923
    \n+
    1924
    \n+
    1925 template<class G, class T>
    \n+
    1926 inline typename SubGraph<G,T>::VertexIterator SubGraph<G,T>::end() const
    \n+
    1927 {
    \n+
    1928 return VertexIterator(endVertex_);
    \n+
    1929 }
    \n+
    1930
    \n+
    1931
    \n+
    1932 template<class G, class T>
    \n+
    1933 inline typename SubGraph<G,T>::EdgeIterator SubGraph<G,T>::beginEdges(const VertexDescriptor& source) const
    \n+
    1934 {
    \n+
    1935 return EdgeIterator(source, edges_+start_[source]);
    \n+
    1936 }
    \n+
    1937
    \n+
    1938 template<class G, class T>
    \n+
    1939 inline typename SubGraph<G,T>::EdgeIterator SubGraph<G,T>::endEdges(const VertexDescriptor& source) const
    \n+
    1940 {
    \n+
    1941 return EdgeIterator(edges_+end_[source]);
    \n+
    1942 }
    \n+
    1943
    \n+
    1944 template<class G, class T>
    \n+
    1945 std::size_t SubGraph<G,T>::noVertices() const
    \n+
    1946 {
    \n+
    1947 return noVertices_;
    \n+
    1948 }
    \n+
    1949
    \n+
    1950 template<class G, class T>
    \n+
    1951 inline typename SubGraph<G,T>::VertexDescriptor SubGraph<G,T>::maxVertex() const
    \n+
    1952 {
    \n+
    1953 return maxVertex_;
    \n+
    1954 }
    \n+
    1955
    \n+
    1956 template<class G, class T>
    \n+
    1957 inline std::size_t SubGraph<G,T>::noEdges() const
    \n+
    1958 {
    \n+
    1959 return noEdges_;
    \n+
    1960 }
    \n+
    1961
    \n+
    1962 template<class G, class T>
    \n+
    1963 inline typename SubGraph<G,T>::EdgeDescriptor SubGraph<G,T>::findEdge(const VertexDescriptor& source,
    \n+
    1964 const VertexDescriptor& target) const
    \n+
    1965 {
    \n+
    1966 const EdgeDescriptor edge = std::lower_bound(edges_+start_[source], edges_+end_[source], target);
    \n+
    1967 if(edge==edges_+end_[source] || *edge!=target)
    \n+
    1968 return std::numeric_limits<EdgeDescriptor>::max();
    \n+
    1969
    \n+
    1970 return edge;
    \n+
    1971 }
    \n+
    1972
    \n+
    1973 template<class G, class T>
    \n+
    1974 SubGraph<G,T>::~SubGraph()
    \n+
    1975 {
    \n+
    1976 delete[] edges_;
    \n+
    1977 delete[] end_;
    \n+
    1978 delete[] start_;
    \n+
    1979 }
    \n+
    1980
    \n+
    1981 template<class G, class T>
    \n+
    1982 SubGraph<G,T>::SubGraph(const G& graph, const T& excluded)
    \n+
    1983 : excluded_(excluded), noVertices_(0), endVertex_(0), maxVertex_(graph.maxVertex())
    \n+
    1984 {
    \n+
    1985 start_ = new std::ptrdiff_t[graph.noVertices()];
    \n+
    1986 end_ = new std::ptrdiff_t[graph.noVertices()];
    \n+
    1987 edges_ = new VertexDescriptor[graph.noEdges()];
    \n+
    1988
    \n+
    1989 VertexDescriptor* edge=edges_;
    \n+
    1990
    \n+
    1991 // Cater for the case that there are no vertices.
    \n+
    1992 // Otherwise endVertex_ will get 1 below.
    \n+
    1993 if ( graph.noVertices() == 0)
    \n+
    1994 return;
    \n+
    1995
    \n+
    1996 typedef typename Graph::ConstVertexIterator Iterator;
    \n+
    1997 Iterator endVertex=graph.end();
    \n+
    1998
    \n+
    1999 for(Iterator vertex = graph.begin(); vertex != endVertex; ++vertex)
    \n+
    2000 if(excluded_[*vertex])
    \n+
    2001 start_[*vertex]=end_[*vertex]=-1;
    \n+
    2002 else{
    \n+
    2003 ++noVertices_;
    \n+
    2004 endVertex_ = std::max(*vertex, endVertex_);
    \n+
    2005
    \n+
    2006 start_[*vertex] = edge-edges_;
    \n+
    2007
    \n+
    2008 auto endEdge = vertex.end();
    \n+
    2009
    \n+
    2010 for(auto iter=vertex.begin(); iter!= endEdge; ++iter)
    \n+
    2011 if(!excluded[iter.target()]) {
    \n+
    2012 *edge = iter.target();
    \n+
    2013 ++edge;
    \n+
    2014 }
    \n+
    2015
    \n+
    2016 end_[*vertex] = edge - edges_;
    \n+
    2017
    \n+
    2018 // Sort the edges
    \n+
    2019 std::sort(edges_+start_[*vertex], edge);
    \n+
    2020 }
    \n+
    2021 noEdges_ = edge-edges_;
    \n+
    2022 ++endVertex_;
    \n+
    2023 }
    \n+
    2024
    \n+
    2025 template<class G, class V, class VM>
    \n+
    2026 inline std::size_t VertexPropertiesGraph<G,V,VM>::noEdges() const
    \n+
    2027 {
    \n+
    2028 return graph_.noEdges();
    \n+
    2029 }
    \n+
    2030
    \n+
    2031 template<class G, class V, class VM>
    \n+
    2032 inline typename VertexPropertiesGraph<G,V,VM>::EdgeIterator
    \n+
    2033 VertexPropertiesGraph<G,V,VM>::beginEdges(const VertexDescriptor& source)
    \n+
    2034 {
    \n+
    2035 return graph_.beginEdges(source);
    \n+
    2036 }
    \n+
    2037
    \n+
    2038 template<class G, class V, class VM>
    \n+
    2039 inline typename VertexPropertiesGraph<G,V,VM>::EdgeIterator
    \n+
    2040 VertexPropertiesGraph<G,V,VM>::endEdges(const VertexDescriptor& source)
    \n+
    2041 {
    \n+
    2042 return graph_.endEdges(source);
    \n+
    2043 }
    \n+
    2044
    \n+
    2045 template<class G, class V, class VM>
    \n+
    2046 typename VertexPropertiesGraph<G,V,VM>::ConstEdgeIterator
    \n+
    2047 inline VertexPropertiesGraph<G,V,VM>::beginEdges(const VertexDescriptor& source) const
    \n+
    2048 {
    \n+
    2049 return graph_.beginEdges(source);
    \n+
    2050 }
    \n+
    2051
    \n+
    2052 template<class G, class V, class VM>
    \n+
    2053 typename VertexPropertiesGraph<G,V,VM>::ConstEdgeIterator
    \n+
    2054 VertexPropertiesGraph<G,V,VM>::endEdges(const VertexDescriptor& source) const
    \n+
    2055 {
    \n+
    2056 return graph_.endEdges(source);
    \n+
    2057 }
    \n+
    2058
    \n+
    2059 template<class G, class V, class VM>
    \n+
    2060 template<class C>
    \n+
    2061 VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>
    \n+
    2062 ::VertexIteratorT(const Father& iter,
    \n+
    2063 C* graph)
    \n+
    2064 : Father(iter), graph_(graph)
    \n+
    2065 {}
    \n+
    2066
    \n+
    2067 template<class G, class V, class VM>
    \n+
    2068 template<class C>
    \n+
    2069 VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>
    \n+
    2070 ::VertexIteratorT(const Father& iter)
    \n+
    2071 : Father(iter)
    \n+
    2072 {}
    \n+
    2073
    \n+
    2074 template<class G, class V, class VM>
    \n+
    2075 template<class C>
    \n+
    2076 template<class C1>
    \n+
    2077 VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>
    \n+
    2078 ::VertexIteratorT(const VertexIteratorT<C1>& other)
    \n+
    2079 : Father(other), graph_(other.graph_)
    \n+
    2080 {}
    \n+
    2081
    \n+
    2082 template<class G, class V, class VM>
    \n+
    2083 template<class C>
    \n+
    2084 typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,
    \n+
    2085 V&, const V&>::type
    \n+
    2086 inline VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>::properties() const
    \n+
    2087 {
    \n+
    2088 return graph_->getVertexProperties(Father::operator*());
    \n+
    2089 }
    \n+
    2090
    \n+
    2091 template<class G, class V, class VM>
    \n+
    2092 template<class C>
    \n+
    2093 typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n+
    2094 C>::value,
    \n+
    2095 typename G::EdgeIterator,
    \n+
    2096 typename G::ConstEdgeIterator>::type
    \n+
    2097 inline VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>::begin() const
    \n+
    2098 {
    \n+
    2099 return graph_->beginEdges(Father::operator*());
    \n+
    2100 }
    \n+
    2101
    \n+
    2102 template<class G, class V, class VM>
    \n+
    2103 template<class C>
    \n+
    2104 typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n+
    2105 C>::value,
    \n+
    2106 typename G::EdgeIterator,
    \n+
    2107 typename G::ConstEdgeIterator>::type
    \n+
    2108 inline VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>::end() const
    \n+
    2109 {
    \n+
    2110 return graph_->endEdges(Father::operator*());
    \n+
    2111 }
    \n+
    2112
    \n+
    2113 template<class G, class V, class VM>
    \n+
    2114 inline typename VertexPropertiesGraph<G,V,VM>::VertexIterator VertexPropertiesGraph<G,V,VM>::begin()
    \n+
    2115 {
    \n+
    2116 return VertexIterator(graph_.begin(), this);
    \n+
    2117 }
    \n+
    2118
    \n+
    2119 template<class G, class V, class VM>
    \n+
    2120 inline typename VertexPropertiesGraph<G,V,VM>::VertexIterator VertexPropertiesGraph<G,V,VM>::end()
    \n+
    2121 {
    \n+
    2122 return VertexIterator(graph_.end());
    \n+
    2123 }
    \n+
    2124
    \n+
    2125
    \n+
    2126 template<class G, class V, class VM>
    \n+
    2127 inline typename VertexPropertiesGraph<G,V,VM>::ConstVertexIterator VertexPropertiesGraph<G,V,VM>::begin() const
    \n+
    2128 {
    \n+
    2129 return ConstVertexIterator(graph_.begin(), this);
    \n+
    2130 }
    \n+
    2131
    \n+
    2132 template<class G, class V, class VM>
    \n+
    2133 inline typename VertexPropertiesGraph<G,V,VM>::ConstVertexIterator VertexPropertiesGraph<G,V,VM>::end() const
    \n+
    2134 {
    \n+
    2135 return ConstVertexIterator(graph_.end());
    \n+
    2136 }
    \n+
    2137
    \n+
    2138 template<class G, class V, class VM>
    \n+
    2139 inline V& VertexPropertiesGraph<G,V,VM>::getVertexProperties(const VertexDescriptor& vertex)
    \n+
    2140 {
    \n+
    2141 return vertexProperties_[vmap_[vertex]];
    \n+
    2142 }
    \n+
    2143
    \n+
    2144 template<class G, class V, class VM>
    \n+
    2145 inline const V& VertexPropertiesGraph<G,V,VM>::getVertexProperties(const VertexDescriptor& vertex) const
    \n+
    2146 {
    \n+
    2147 return vertexProperties_[vmap_[vertex]];
    \n+
    2148 }
    \n+
    2149
    \n+
    2150 template<class G, class V, class VM>
    \n+
    2151 inline const G& VertexPropertiesGraph<G,V,VM>::graph() const
    \n+
    2152 {
    \n+
    2153 return graph_;
    \n+
    2154 }
    \n+
    2155
    \n+
    2156 template<class G, class V, class VM>
    \n+
    2157 inline std::size_t VertexPropertiesGraph<G,V,VM>::noVertices() const
    \n+
    2158 {
    \n+
    2159 return graph_.noVertices();
    \n+
    2160 }
    \n+
    2161
    \n+
    2162
    \n+
    2163 template<class G, class V, class VM>
    \n+
    2164 inline typename VertexPropertiesGraph<G,V,VM>::VertexDescriptor VertexPropertiesGraph<G,V,VM>::maxVertex() const
    \n+
    2165 {
    \n+
    2166 return graph_.maxVertex();
    \n+
    2167 }
    \n+
    2168
    \n+
    2169 template<class G, class V, class VM>
    \n+
    2170 VertexPropertiesGraph<G,V,VM>::VertexPropertiesGraph(Graph& graph, const VM vmap)
    \n+
    2171 : graph_(graph), vmap_(vmap), vertexProperties_(vmap_[graph_.maxVertex()+1], V())
    \n+
    2172 {}
    \n+
    2173
    \n+
    2174 template<class G, class V, class E, class VM, class EM>
    \n+
    2175 template<class C>
    \n+
    2176 PropertiesGraph<G,V,E,VM,EM>::EdgeIteratorT<C>::EdgeIteratorT(const Father& iter,
    \n+
    2177 C* graph)
    \n+
    2178 : Father(iter), graph_(graph)
    \n+
    2179 {}
    \n+
    2180
    \n+
    2181 template<class G, class V, class E, class VM, class EM>
    \n+
    2182 template<class C>
    \n+
    2183 PropertiesGraph<G,V,E,VM,EM>::EdgeIteratorT<C>::EdgeIteratorT(const Father& iter)
    \n+
    2184 : Father(iter)
    \n+
    2185 {}
    \n+
    2186
    \n+
    2187 template<class G, class V, class E, class VM, class EM>
    \n+
    2188 template<class C>
    \n+
    2189 template<class C1>
    \n+
    2190 PropertiesGraph<G,V,E,VM,EM>::EdgeIteratorT<C>::EdgeIteratorT(const EdgeIteratorT<C1>& other)
    \n+
    2191 : Father(other), graph_(other.graph_)
    \n+
    2192 {}
    \n+
    2193
    \n+
    2194
    \n+
    2195 template<class G, class V, class E, class VM, class EM>
    \n+
    2196 inline std::size_t PropertiesGraph<G,V,E,VM,EM>::noEdges() const
    \n+
    2197 {
    \n+
    2198 return graph_.noEdges();
    \n+
    2199 }
    \n+
    2200
    \n+
    2201 template<class G, class V, class E, class VM, class EM>
    \n+
    2202 template<class C>
    \n+
    2203 inline typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,E&,const E&>::type
    \n+
    2204 PropertiesGraph<G,V,E,VM,EM>::EdgeIteratorT<C>::properties() const
    \n+
    2205 {
    \n+
    2206 return graph_->getEdgeProperties(Father::operator*());
    \n+
    2207 }
    \n+
    2208
    \n+
    2209 template<class G, class V, class E, class VM, class EM>
    \n+
    2210 inline typename PropertiesGraph<G,V,E,VM,EM>::EdgeIterator
    \n+
    2211 PropertiesGraph<G,V,E,VM,EM>::beginEdges(const VertexDescriptor& source)
    \n+
    2212 {
    \n+
    2213 return EdgeIterator(graph_.beginEdges(source), this);
    \n+
    2214 }
    \n+
    2215
    \n+
    2216 template<class G, class V, class E, class VM, class EM>
    \n+
    2217 inline typename PropertiesGraph<G,V,E,VM,EM>::EdgeIterator
    \n+
    2218 PropertiesGraph<G,V,E,VM,EM>::endEdges(const VertexDescriptor& source)
    \n+
    2219 {
    \n+
    2220 return EdgeIterator(graph_.endEdges(source));
    \n+
    2221 }
    \n+
    2222
    \n+
    2223 template<class G, class V, class E, class VM, class EM>
    \n+
    2224 typename PropertiesGraph<G,V,E,VM,EM>::ConstEdgeIterator
    \n+
    2225 inline PropertiesGraph<G,V,E,VM,EM>::beginEdges(const VertexDescriptor& source) const
    \n+
    2226 {
    \n+
    2227 return ConstEdgeIterator(graph_.beginEdges(source), this);
    \n+
    2228 }
    \n+
    2229
    \n+
    2230 template<class G, class V, class E, class VM, class EM>
    \n+
    2231 typename PropertiesGraph<G,V,E,VM,EM>::ConstEdgeIterator
    \n+
    2232 PropertiesGraph<G,V,E,VM,EM>::endEdges(const VertexDescriptor& source) const
    \n+
    2233 {
    \n+
    2234 return ConstEdgeIterator(graph_.endEdges(source));
    \n+
    2235 }
    \n+
    2236
    \n+
    2237 template<class G, class V, class E, class VM, class EM>
    \n+
    2238 template<class C>
    \n+
    2239 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>
    \n+
    2240 ::VertexIteratorT(const Father& iter,
    \n+
    2241 C* graph)
    \n+
    2242 : Father(iter), graph_(graph)
    \n+
    2243 {}
    \n+
    2244
    \n+
    2245 template<class G, class V, class E, class VM, class EM>
    \n+
    2246 template<class C>
    \n+
    2247 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>
    \n+
    2248 ::VertexIteratorT(const Father& iter)
    \n+
    2249 : Father(iter)
    \n+
    2250 {}
    \n+
    2251
    \n+
    2252 template<class G, class V, class E, class VM, class EM>
    \n+
    2253 template<class C>
    \n+
    2254 template<class C1>
    \n+
    2255 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>
    \n+
    2256 ::VertexIteratorT(const VertexIteratorT<C1>& other)
    \n+
    2257 : Father(other), graph_(other.graph_)
    \n+
    2258 {}
    \n+
    2259
    \n+
    2260 template<class G, class V, class E, class VM, class EM>
    \n+
    2261 template<class C>
    \n+
    2262 inline typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,
    \n+
    2263 V&, const V&>::type
    \n+
    2264 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>::properties() const
    \n+
    2265 {
    \n+
    2266 return graph_->getVertexProperties(Father::operator*());
    \n+
    2267 }
    \n+
    2268
    \n+
    2269 template<class G, class V, class E, class VM, class EM>
    \n+
    2270 template<class C>
    \n+
    2271 inline typename PropertiesGraph<G,V,E,VM,EM>::template EdgeIteratorT<C>
    \n+
    2272 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>::begin() const
    \n+
    2273 {
    \n+
    2274 return graph_->beginEdges(Father::operator*());
    \n+
    2275 }
    \n+
    2276
    \n+
    2277 template<class G, class V, class E, class VM, class EM>
    \n+
    2278 template<class C>
    \n+
    2279 inline typename PropertiesGraph<G,V,E,VM,EM>::template EdgeIteratorT<C>
    \n+
    2280 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>::end() const
    \n+
    2281 {
    \n+
    2282 return graph_->endEdges(Father::operator*());
    \n+
    2283 }
    \n+
    2284
    \n+
    2285 template<class G, class V, class E, class VM, class EM>
    \n+
    2286 inline typename PropertiesGraph<G,V,E,VM,EM>::VertexIterator PropertiesGraph<G,V,E,VM,EM>::begin()
    \n+
    2287 {
    \n+
    2288 return VertexIterator(graph_.begin(), this);
    \n+
    2289 }
    \n+
    2290
    \n+
    2291 template<class G, class V, class E, class VM, class EM>
    \n+
    2292 inline typename PropertiesGraph<G,V,E,VM,EM>::VertexIterator PropertiesGraph<G,V,E,VM,EM>::end()
    \n+
    2293 {
    \n+
    2294 return VertexIterator(graph_.end());
    \n+
    2295 }
    \n+
    2296
    \n+
    2297
    \n+
    2298 template<class G, class V, class E, class VM, class EM>
    \n+
    2299 inline typename PropertiesGraph<G,V,E,VM,EM>::ConstVertexIterator PropertiesGraph<G,V,E,VM,EM>::begin() const
    \n+
    2300 {
    \n+
    2301 return ConstVertexIterator(graph_.begin(), this);
    \n+
    2302 }
    \n+
    2303
    \n+
    2304 template<class G, class V, class E, class VM, class EM>
    \n+
    2305 inline typename PropertiesGraph<G,V,E,VM,EM>::ConstVertexIterator PropertiesGraph<G,V,E,VM,EM>::end() const
    \n+
    2306 {
    \n+
    2307 return ConstVertexIterator(graph_.end());
    \n+
    2308 }
    \n+
    2309
    \n+
    2310 template<class G, class V, class E, class VM, class EM>
    \n+
    2311 inline V& PropertiesGraph<G,V,E,VM,EM>::getVertexProperties(const VertexDescriptor& vertex)
    \n+
    2312 {
    \n+
    2313 return vertexProperties_[vmap_[vertex]];
    \n+
    2314 }
    \n+
    2315
    \n+
    2316 template<class G, class V, class E, class VM, class EM>
    \n+
    2317 inline const V& PropertiesGraph<G,V,E,VM,EM>::getVertexProperties(const VertexDescriptor& vertex) const
    \n+
    2318 {
    \n+
    2319 return vertexProperties_[vmap_[vertex]];
    \n+
    2320 }
    \n+
    2321
    \n+
    2322 template<class G, class V, class E, class VM, class EM>
    \n+
    2323 inline E& PropertiesGraph<G,V,E,VM,EM>::getEdgeProperties(const EdgeDescriptor& edge)
    \n+
    2324 {
    \n+
    2325 return edgeProperties_[emap_[edge]];
    \n+
    2326 }
    \n+
    2327
    \n+
    2328 template<class G, class V, class E, class VM, class EM>
    \n+
    2329 inline const E& PropertiesGraph<G,V,E,VM,EM>::getEdgeProperties(const EdgeDescriptor& edge) const
    \n+
    2330 {
    \n+
    2331 return edgeProperties_[emap_[edge]];
    \n+
    2332 }
    \n+
    2333
    \n+
    2334 template<class G, class V, class E, class VM, class EM>
    \n+
    2335 inline E& PropertiesGraph<G,V,E,VM,EM>::getEdgeProperties(const VertexDescriptor& source,
    \n+
    2336 const VertexDescriptor& target)
    \n+
    2337 {
    \n+
    2338 return getEdgeProperties(graph_.findEdge(source,target));
    \n+
    2339 }
    \n+
    2340
    \n+
    2341 template<class G, class V, class E, class VM, class EM>
    \n+
    2342 inline const E& PropertiesGraph<G,V,E,VM,EM>::getEdgeProperties(const VertexDescriptor& source,
    \n+
    2343 const VertexDescriptor& target) const
    \n+
    2344 {
    \n+
    2345 return getEdgeProperties(graph_.findEdge(source,target));
    \n+
    2346 }
    \n+
    2347
    \n+
    2348 template<class G, class V, class E, class VM, class EM>
    \n+
    2349 inline const G& PropertiesGraph<G,V,E,VM,EM>::graph() const
    \n+
    2350 {
    \n+
    2351 return graph_;
    \n+
    2352 }
    \n+
    2353
    \n+
    2354 template<class G, class V, class E, class VM, class EM>
    \n+
    2355 inline std::size_t PropertiesGraph<G,V,E,VM,EM>::noVertices() const
    \n+
    2356 {
    \n+
    2357 return graph_.noVertices();
    \n+
    2358 }
    \n+
    2359
    \n+
    2360
    \n+
    2361 template<class G, class V, class E, class VM, class EM>
    \n+
    2362 inline typename PropertiesGraph<G,V,E,VM,EM>::VertexDescriptor PropertiesGraph<G,V,E,VM,EM>::maxVertex() const
    \n+
    2363 {
    \n+
    2364 return graph_.maxVertex();
    \n+
    2365 }
    \n+
    2366
    \n+
    2367 template<class G, class V, class E, class VM, class EM>
    \n+
    2368 PropertiesGraph<G,V,E,VM,EM>::PropertiesGraph(Graph& graph, const VM& vmap, const EM& emap)
    \n+
    2369 : graph_(graph), vmap_(vmap), vertexProperties_(vmap_[graph_.maxVertex()+1], V()),
    \n+
    2370 emap_(emap), edgeProperties_(graph_.noEdges(), E())
    \n+
    2371 {}
    \n+
    2372
    \n+
    2373 template<class G, class V>
    \n+
    2374 inline int visitNeighbours(const G& graph, const typename G::VertexDescriptor& vertex,
    \n+
    2375 V& visitor)
    \n+
    2376 {
    \n+
    2377 typedef typename G::ConstEdgeIterator iterator;
    \n+
    2378 const iterator end = graph.endEdges(vertex);
    \n+
    2379 int noNeighbours=0;
    \n+
    2380 for(iterator edge = graph.beginEdges(vertex); edge != end; ++edge, ++noNeighbours)
    \n+
    2381 visitor(edge);
    \n+
    2382 return noNeighbours;
    \n+
    2383 }
    \n+
    2384
    \n+
    2385#endif // DOXYGEN
    \n+
    2386
    \n+
    2388 }
    \n+
    2389}
    \n+
    2390#endif
    \n+\n+
    int visitNeighbours(const G &graph, const typename G::VertexDescriptor &vertex, V &visitor)
    Visit all neighbour vertices of a vertex in a graph.
    \n
    STL namespace.
    \n
    Definition allocator.hh:11
    \n-
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n-
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n-
    Definition indicescoarsener.hh:36
    \n-
    Definition indicescoarsener.hh:43
    \n-
    Definition pinfo.hh:28
    \n-
    Definition renumberer.hh:16
    \n-
    void operator++()
    Definition renumberer.hh:57
    \n-
    void operator()(const typename G::ConstEdgeIterator &edge)
    Definition renumberer.hh:51
    \n-
    Vertex number_
    Definition renumberer.hh:35
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n+
    MatrixGraph(Matrix &matrix)
    Constructor.
    \n+
    VertexIterator end()
    Get an iterator over the vertices.
    \n+
    VertexDescriptor maxVertex() const
    Get the maximal vertex descriptor.
    \n+
    M Matrix
    The type of the matrix we are a graph for.
    Definition graph.hh:56
    \n+
    ConstVertexIterator begin() const
    Get an iterator over the vertices.
    \n+
    VertexIteratorT< const MatrixGraph< Matrix > > ConstVertexIterator
    The constant vertex iterator type.
    Definition graph.hh:308
    \n+
    ~MatrixGraph()
    Destructor.
    \n+
    std::ptrdiff_t EdgeDescriptor
    The edge descriptor.
    Definition graph.hh:80
    \n+
    ConstEdgeIterator endEdges(const VertexDescriptor &source) const
    Get an iterator over the edges starting at a vertex.
    \n+
    M::size_type VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:73
    \n+
    const Matrix & matrix() const
    Get the underlying matrix.
    \n+
    @ mutableMatrix
    Definition graph.hh:86
    \n+
    ConstEdgeIterator beginEdges(const VertexDescriptor &source) const
    Get an iterator over the edges starting at a vertex.
    \n+
    ConstVertexIterator end() const
    Get an iterator over the vertices.
    \n+
    EdgeIteratorT< const MatrixGraph< Matrix > > ConstEdgeIterator
    The constant edge iterator type.
    Definition graph.hh:298
    \n+
    EdgeIterator beginEdges(const VertexDescriptor &source)
    Get an iterator over the edges starting at a vertex.
    \n+
    std::size_t noVertices() const
    Get the number of vertices in the graph.
    \n+
    EdgeDescriptor findEdge(const VertexDescriptor &source, const VertexDescriptor &target) const
    Find the descriptor of an edge.
    \n+
    M::block_type Weight
    The type of the weights.
    Definition graph.hh:66
    \n+
    std::remove_const< M >::type MutableMatrix
    The mutable type of the matrix we are a graph for.
    Definition graph.hh:61
    \n+
    EdgeIteratorT< MatrixGraph< Matrix > > EdgeIterator
    The mutable edge iterator type.
    Definition graph.hh:303
    \n+
    VertexIteratorT< MatrixGraph< Matrix > > VertexIterator
    The mutable vertex iterator type.
    Definition graph.hh:313
    \n+
    EdgeIterator endEdges(const VertexDescriptor &source)
    Get an iterator over the edges starting at a vertex.
    \n+
    std::size_t noEdges() const
    Get the number of edges in the graph.
    \n+
    Matrix & matrix()
    Get the underlying matrix.
    \n+
    VertexIterator begin()
    Get an iterator over the vertices.
    \n+
    Iterator over all edges starting from a vertex.
    Definition graph.hh:95
    \n+
    std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::value &&C::mutableMatrix, typenameM::block_type, consttypenameM::block_type >::type WeightType
    Definition graph.hh:156
    \n+
    EdgeIteratorT(const VertexDescriptor &source, const ColIterator &block, const ColIterator &end, const EdgeDescriptor &edge)
    Constructor.
    \n+
    @ isMutable
    whether C is mutable.
    Definition graph.hh:112
    \n+
    VertexDescriptor target() const
    The index of the target vertex of the current edge.
    \n+
    EdgeIteratorT< C > & operator++()
    preincrement operator.
    \n+
    bool operator!=(const EdgeIteratorT< const typename std::remove_const< C >::type > &other) const
    Inequality operator.
    \n+
    bool operator==(const EdgeIteratorT< const typename std::remove_const< C >::type > &other) const
    Equality operator.
    \n+
    EdgeIteratorT(const EdgeIteratorT< C1 > &other)
    Copy Constructor.
    \n+
    bool operator!=(const EdgeIteratorT< typename std::remove_const< C >::type > &other) const
    Inequality operator.
    \n+
    WeightType & weight() const
    Access the edge weight.
    \n+
    VertexDescriptor source() const
    The index of the source vertex of the current edge.
    \n+
    std::conditional< isMutable &&C::mutableMatrix, typenameMatrix::row_type::Iterator, typenameMatrix::row_type::ConstIterator >::type ColIterator
    The column iterator of the matrix we use.
    Definition graph.hh:120
    \n+
    const std::remove_const< C >::type ConstContainer
    The constant type of the container type.
    Definition graph.hh:105
    \n+
    bool operator==(const EdgeIteratorT< typename std::remove_const< C >::type > &other) const
    Equality operator.
    \n+
    EdgeIteratorT(const ColIterator &block)
    Constructor for the end iterator.
    \n+
    std::conditional< isMutable &&C::mutableMatrix, typenameM::block_type, consttypenameM::block_type >::type Weight
    The matrix block type we use as weights.
    Definition graph.hh:127
    \n+
    const EdgeDescriptor & operator*() const
    Get the edge descriptor.
    \n+
    const EdgeDescriptor * operator->() const
    Get the edge descriptor.
    \n+
    std::remove_const< C >::type MutableContainer
    The mutable type of the container type.
    Definition graph.hh:101
    \n+
    The vertex iterator type of the graph.
    Definition graph.hh:209
    \n+
    EdgeIteratorT< C > begin() const
    Get an iterator over all edges starting at the current vertex.
    \n+
    const VertexDescriptor & operator*() const
    Get the descriptor of the current vertex.
    \n+
    WeightType & weight() const
    Access the weight of the vertex.
    \n+
    VertexIteratorT(C *graph, const VertexDescriptor &current)
    Constructor.
    \n+
    std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::value &&C::mutableMatrix, typenameM::block_type, consttypenameM::block_type >::type WeightType
    Definition graph.hh:266
    \n+
    VertexIteratorT(const VertexIteratorT< MutableContainer > &other)
    \n+
    std::remove_const< C >::type MutableContainer
    The mutable type of the container type.
    Definition graph.hh:214
    \n+
    bool operator!=(const VertexIteratorT< MutableContainer > &other) const
    Inequality operator.
    \n+
    @ isMutable
    whether C is mutable.
    Definition graph.hh:225
    \n+
    bool operator==(const VertexIteratorT< MutableContainer > &other) const
    Equality operator.
    \n+
    const std::remove_const< C >::type ConstContainer
    The constant type of the container type.
    Definition graph.hh:218
    \n+
    VertexIteratorT< C > & operator++()
    Move to the next vertex.
    \n+
    EdgeIteratorT< C > end() const
    Get an iterator over all edges starting at the current vertex.
    \n+
    bool operator==(const VertexIteratorT< ConstContainer > &other) const
    Equality operator.
    \n+
    bool operator!=(const VertexIteratorT< ConstContainer > &other) const
    Inequality operator.
    \n+
    VertexIteratorT(const VertexDescriptor &current)
    Constructor for the end iterator.
    \n+
    A subgraph of a graph.
    Definition graph.hh:443
    \n+
    EdgeDescriptor findEdge(const VertexDescriptor &source, const VertexDescriptor &target) const
    Find the descriptor of an edge.
    \n+
    VertexDescriptor maxVertex() const
    Get the maximal vertex descriptor.
    \n+
    EdgeIndexMap getEdgeIndexMap()
    Get an edge index map for the graph.
    \n+
    std::size_t noEdges() const
    Get the number of edges in the graph.
    \n+
    ConstEdgeIterator endEdges(const VertexDescriptor &source) const
    Get an iterator over the edges starting at a vertex.
    \n+
    ConstVertexIterator end() const
    Get an iterator over the vertices.
    \n+
    ConstEdgeIterator beginEdges(const VertexDescriptor &source) const
    Get an iterator over the edges starting at a vertex.
    \n+
    std::size_t noVertices() const
    Get the number of vertices in the graph.
    \n+
    T Excluded
    Random access container providing information about which vertices are excluded.
    Definition graph.hh:454
    \n+
    ~SubGraph()
    Destructor.
    \n+
    EdgeIterator ConstEdgeIterator
    The constant edge iterator type.
    Definition graph.hh:618
    \n+
    G Graph
    The type of the graph we are a sub graph for.
    Definition graph.hh:448
    \n+
    VertexIterator ConstVertexIterator
    The constant vertex iterator type.
    Definition graph.hh:623
    \n+
    SubGraph(const Graph &graph, const T &excluded)
    Constructor.
    \n+
    ConstVertexIterator begin() const
    Get an iterator over the vertices.
    \n+
    Graph::VertexDescriptor VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:459
    \n+
    VertexDescriptor * EdgeDescriptor
    Definition graph.hh:461
    \n+
    An index map for mapping the edges to indices.
    Definition graph.hh:470
    \n+
    EdgeIndexMap(const EdgeIndexMap &emap)
    Protect copy construction.
    Definition graph.hh:479
    \n+
    ReadablePropertyMapTag Category
    Definition graph.hh:472
    \n+
    EdgeIndexMap(const EdgeDescriptor &firstEdge)
    Definition graph.hh:474
    \n+
    std::size_t operator[](const EdgeDescriptor &edge) const
    Definition graph.hh:483
    \n+
    The edge iterator of the graph.
    Definition graph.hh:505
    \n+
    const EdgeDescriptor & dereference() const
    The descriptor of the current edge.
    \n+
    EdgeIterator(const EdgeDescriptor &edge)
    Constructor for the end iterator.
    \n+
    bool equals(const EdgeIterator &other) const
    Equality operator.
    \n+
    EdgeIterator & advance(std::ptrdiff_t n)
    \n+
    EdgeIterator & increment()
    Preincrement operator.
    \n+
    const VertexDescriptor & target() const
    The index of the target vertex of the current edge.
    \n+
    const VertexDescriptor & source() const
    The index of the source vertex of the current edge.
    \n+
    EdgeIterator & decrement()
    Preincrement operator.
    \n+
    std::ptrdiff_t distanceTo(const EdgeIterator &other) const
    \n+
    EdgeIterator(const VertexDescriptor &source, const EdgeDescriptor &edge)
    Constructor.
    \n+
    The vertex iterator of the graph.
    Definition graph.hh:560
    \n+
    VertexIterator(const VertexDescriptor &current)
    Constructor for end iterator.
    \n+
    VertexIterator & increment()
    Preincrement operator.
    \n+
    EdgeIterator begin() const
    Get an iterator over all edges starting at the current vertex.
    \n+
    bool equals(const VertexIterator &other) const
    Equality iterator.
    \n+
    VertexIterator(const SubGraph< G, T > *graph, const VertexDescriptor &current, const VertexDescriptor &end)
    Constructor.
    \n+
    EdgeIterator end() const
    Get an iterator over all edges starting at the current vertex.
    \n+
    const VertexDescriptor & dereference() const
    Get the descriptor of the current vertex.
    \n+
    Attaches properties to the vertices of a graph.
    Definition graph.hh:723
    \n+
    const Graph & graph() const
    Get the graph the properties are attached to.
    \n+
    Graph::ConstEdgeIterator ConstEdgeIterator
    The type of the constant edge iterator.
    Definition graph.hh:766
    \n+
    VertexProperties & getVertexProperties(const VertexDescriptor &vertex)
    Get the properties associated with a vertex.
    \n+
    std::size_t noEdges() const
    Get the number of edges in the graph.
    \n+
    Graph::EdgeDescriptor EdgeDescriptor
    The edge descritor.
    Definition graph.hh:738
    \n+
    ConstEdgeIterator endEdges(const VertexDescriptor &source) const
    Get the mutable edge iterator over edges starting at a vertex.
    \n+
    Graph::VertexDescriptor VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:733
    \n+
    G Graph
    The graph we attach properties to.
    Definition graph.hh:728
    \n+
    VM VertexMap
    The type of the map for converting the VertexDescriptor to std::size_t.
    Definition graph.hh:756
    \n+
    EdgeIterator endEdges(const VertexDescriptor &source)
    Get the mutable edge iterator over edges starting at a vertex.
    \n+
    EdgeIterator beginEdges(const VertexDescriptor &source)
    Get the mutable edge iterator over edges starting at a vertex.
    \n+
    VP VertexProperties
    The type of the properties of the vertices.
    Definition graph.hh:743
    \n+
    std::size_t noVertices() const
    Get the number of vertices in the graph.
    \n+
    ConstEdgeIterator beginEdges(const VertexDescriptor &source) const
    Get the mutable edge iterator over edges starting at a vertex.
    \n+
    VertexDescriptor maxVertex() const
    Get the maximal vertex descriptor.
    \n+
    Graph::EdgeIterator EdgeIterator
    The type of the mutable edge iterator.
    Definition graph.hh:761
    \n+\n+
    std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::value, typenameGraph::EdgeIterator, typenameGraph::ConstEdgeIterator >::type EdgeIterator
    The class of the edge iterator.
    Definition graph.hh:823
    \n+
    std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::value, VertexProperties &, constVertexProperties & >::type properties() const
    Get the properties of the current Vertex.
    \n+
    EdgeIterator end() const
    Get an iterator over the edges starting from the current vertex.
    \n+
    std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::value, typenameGraph::VertexIterator, typenameGraph::ConstVertexIterator >::type Father
    The father class.
    Definition graph.hh:814
    \n+
    EdgeIterator begin() const
    Get an iterator over the edges starting from the current vertex.
    \n+
    Attaches properties to the edges and vertices of a graph.
    Definition graph.hh:978
    \n+
    std::size_t noVertices() const
    Get the number of vertices in the graph.
    \n+
    Graph::EdgeDescriptor EdgeDescriptor
    The edge descritor.
    Definition graph.hh:993
    \n+
    const EdgeProperties & getEdgeProperties(const VertexDescriptor &source, const VertexDescriptor &target) const
    Get the properties associated with a edge.
    \n+
    const EdgeProperties & getEdgeProperties(const EdgeDescriptor &edge) const
    Get the properties associated with a edge.
    \n+
    const Graph & graph() const
    Get the graph the properties are attached to.
    \n+
    VertexDescriptor maxVertex() const
    Get the maximal vertex descriptor.
    \n+
    G Graph
    The graph we attach properties to.
    Definition graph.hh:983
    \n+
    EM EdgeMap
    The type of the map for converting the EdgeDescriptor to std::size_t.
    Definition graph.hh:1030
    \n+
    VM VertexMap
    The type of the map for converting the VertexDescriptor to std::size_t.
    Definition graph.hh:1011
    \n+
    VP VertexProperties
    The type of the properties of the vertices.
    Definition graph.hh:998
    \n+
    std::size_t noEdges() const
    Get the number of edges in the graph.
    \n+
    EP EdgeProperties
    The type of the properties of the edges;.
    Definition graph.hh:1016
    \n+
    EdgeProperties & getEdgeProperties(const VertexDescriptor &source, const VertexDescriptor &target)
    Get the properties associated with a edge.
    \n+
    EdgeProperties & getEdgeProperties(const EdgeDescriptor &edge)
    Get the properties associated with a edge.
    \n+
    Graph::VertexDescriptor VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:988
    \n+
    PropertiesGraph(Graph &graph, const VertexMap &vmap=VertexMap(), const EdgeMap &emap=EdgeMap())
    Constructor.
    \n+\n+
    std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::value, typenameGraph::EdgeIterator, typenameGraph::ConstEdgeIterator >::type Father
    The father class.
    Definition graph.hh:1050
    \n+\n+
    std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::value, typenameGraph::VertexIterator, typenameGraph::ConstVertexIterator >::type Father
    The father class.
    Definition graph.hh:1151
    \n+
    Wrapper to access the internal edge properties of a graph via operator[]()
    Definition graph.hh:1361
    \n+
    GraphVertexPropertiesSelector(G &g)
    Constructor.
    Definition graph.hh:1380
    \n+
    VertexProperties & operator[](const Vertex &vertex) const
    Get the properties associated to a vertex.
    Definition graph.hh:1395
    \n+
    G Graph
    The type of the graph with internal properties.
    Definition graph.hh:1366
    \n+
    G::VertexProperties VertexProperties
    The type of the vertex properties.
    Definition graph.hh:1370
    \n+
    GraphVertexPropertiesSelector()
    Default constructor.
    Definition graph.hh:1386
    \n+
    G::VertexDescriptor Vertex
    The vertex descriptor.
    Definition graph.hh:1374
    \n+
    Wrapper to access the internal vertex properties of a graph via operator[]()
    Definition graph.hh:1409
    \n+
    EdgeProperties & operator[](const Edge &edge) const
    Get the properties associated to a vertex.
    Definition graph.hh:1442
    \n+
    G::EdgeProperties EdgeProperties
    The type of the vertex properties.
    Definition graph.hh:1418
    \n+
    G::EdgeDescriptor Edge
    The edge descriptor.
    Definition graph.hh:1422
    \n+
    GraphEdgePropertiesSelector()
    Default constructor.
    Definition graph.hh:1434
    \n+
    G Graph
    The type of the graph with internal properties.
    Definition graph.hh:1414
    \n+
    GraphEdgePropertiesSelector(G &g)
    Constructor.
    Definition graph.hh:1428
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,485 +1,2286 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-indicescoarsener.hh\n+graph.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_INDICESCOARSENER_HH\n-6#define DUNE_AMG_INDICESCOARSENER_HH\n+5#ifndef DUNE_AMG_GRAPH_HH\n+6#define DUNE_AMG_GRAPH_HH\n 7\n-8#include \n-9#include \n-10#include \"_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\"\n-11\n-12#if HAVE_MPI\n-13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-14#endif\n-15\n-16#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n+8#include \n+9#include \n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+16#include \n 17\n 18namespace _\bD_\bu_\bn_\be\n 19{\n 20 namespace Amg\n 21 {\n-22\n-34 template\n-_\b3_\b5 class _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n-36 {};\n-37\n-38\n-39#if HAVE_MPI\n-40\n-41 template\n-_\b4_\b2 class _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n-43 {\n-44 public:\n-_\b4_\b8 typedef E _\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bs;\n-49\n-_\b5_\b3 typedef T _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n-54\n-_\b5_\b5 typedef typename ParallelInformation::ParallelIndexSet _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n-56\n-_\b6_\b0 typedef typename ParallelIndexSet::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n-61\n-_\b6_\b5 typedef typename ParallelIndexSet::LocalIndex _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n-66\n-_\b7_\b0 typedef typename LocalIndex::Attribute _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be;\n-71\n-_\b7_\b5 typedef Dune::RemoteIndices _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs;\n-76\n-88 template\n-89 static typename Graph::VertexDescriptor\n-_\b9_\b0 _\bc_\bo_\ba_\br_\bs_\be_\bn(_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& fineInfo,\n-91 Graph& fineGraph,\n-92 VM& visitedMap,\n-93 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-94 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& coarseInfo,\n-95 typename Graph::VertexDescriptor noAggregates);\n+49 template\n+_\b5_\b0 class _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+51 {\n+52 public:\n+_\b5_\b6 typedef M _\bM_\ba_\bt_\br_\bi_\bx;\n+57\n+_\b6_\b1 typedef typename std::remove_const::type _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bM_\ba_\bt_\br_\bi_\bx;\n+62\n+_\b6_\b6 typedef typename M::block_type _\bW_\be_\bi_\bg_\bh_\bt;\n+67\n+_\b7_\b3 typedef typename M::size_type _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+74\n+_\b8_\b0 typedef std::ptrdiff_t _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+81\n+82 enum {\n+83 /*\n+84 * @brief Whether Matrix is mutable.\n+85 */\n+86 _\bm_\bu_\bt_\ba_\bb_\bl_\be_\bM_\ba_\bt_\br_\bi_\bx = std::is_same::type>::value\n+_\b8_\b7 };\n+88\n+89\n+93 template\n+_\b9_\b4 class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+95 {\n 96\n-97 private:\n-98 template\n-99 class ParallelAggregateRenumberer : public _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n-100 {\n-101 typedef typename G::VertexDescriptor Vertex;\n-102\n-103 typedef I GlobalLookupIndexSet;\n-104\n-105 typedef typename GlobalLookupIndexSet::IndexPair IndexPair;\n+97 public:\n+_\b1_\b0_\b1 typedef typename std::remove_const::type _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n+_\b1_\b0_\b5 typedef const typename std::remove_const::type _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n 106\n-107 typedef typename IndexPair::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n-108\n-109 public:\n-_\b1_\b1_\b0 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br(_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, const I&\n-lookup)\n-111 : _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br(aggregates), isPublic_(false), lookup_(lookup),\n-112 globalIndex_(_\bs_\bt_\bd::numeric_limits::max())\n-113 {}\n+107 friend class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT<_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br>;\n+108 friend class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT<_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br>;\n+109\n+110 enum {\n+112 _\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be = std::is_same::value\n+_\b1_\b1_\b3 };\n 114\n-115\n-_\b1_\b1_\b6 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename G::ConstEdgeIterator& edge)\n-117 {\n-118 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(edge);\n-119 const IndexPair* pair= lookup_.pair(edge.target());\n-120 if(pair!=0) {\n-121 _\bg_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx(pair->global());\n-122 _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be(pair->local().attribute());\n-123 _\bi_\bs_\bP_\bu_\bb_\bl_\bi_\bc(pair->local().isPublic());\n-124 }\n-125 }\n-126\n-_\b1_\b2_\b7 Vertex _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)([[maybe_unused]] const GlobalIndex& global)\n-128 {\n-129 Vertex current = this->_\bn_\bu_\bm_\bb_\be_\br_\b_;\n-130 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n-131 return current;\n-132 }\n-133\n-_\b1_\b3_\b4 bool _\bi_\bs_\bP_\bu_\bb_\bl_\bi_\bc()\n-135 {\n-136 return isPublic_;\n-137 }\n+118 typedef typename std::conditional<_\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be && C::mutableMatrix,typename\n+Matrix::row_type::Iterator,\n+119 typename Matrix::row_type::ConstIterator>::type\n+_\b1_\b2_\b0 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+121\n+125 typedef typename std::conditional<_\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be && C::mutableMatrix,typename\n+M::block_type,\n+126 const typename M::block_type>::type\n+_\b1_\b2_\b7 _\bW_\be_\bi_\bg_\bh_\bt;\n+128\n+_\b1_\b3_\b6 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bs_\bo_\bu_\br_\bc_\be, const _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& block,\n+137 const _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\be_\bn_\bd, const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& edge);\n 138\n-_\b1_\b3_\b9 void _\bi_\bs_\bP_\bu_\bb_\bl_\bi_\bc(bool b)\n-140 {\n-141 isPublic_ = isPublic_ || b;\n-142 }\n-143\n-_\b1_\b4_\b4 void _\br_\be_\bs_\be_\bt()\n-145 {\n-146 globalIndex_ = std::numeric_limits::max();\n-147 isPublic_=false;\n-148 }\n-149\n-_\b1_\b5_\b0 void _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be(const _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be& _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be)\n-151 {\n-152 attribute_=_\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be;\n-153 }\n-154\n-_\b1_\b5_\b5 _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be _\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be()\n-156 {\n-157 return attribute_;\n-158 }\n-159\n-_\b1_\b6_\b0 const GlobalIndex& _\bg_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx() const\n-161 {\n-162 return globalIndex_;\n-163 }\n-164\n-_\b1_\b6_\b5 void _\bg_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx(const GlobalIndex& global)\n-166 {\n-167 globalIndex_ = global;\n-168 }\n-169\n-170 private:\n-171 bool isPublic_;\n-172 _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be attribute_;\n-173 const GlobalLookupIndexSet& lookup_;\n-174 _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx globalIndex_;\n-175 };\n-176\n-177 template\n-178 static void buildCoarseIndexSet(const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-179 Graph& fineGraph,\n-180 VM& visitedMap,\n-181 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-182 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& coarseIndices,\n-183 ParallelAggregateRenumberer& renumberer);\n-184\n-185 template\n-186 static void buildCoarseRemoteIndices(const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& fineRemote,\n-187 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-188 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& coarseIndices,\n-189 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& coarseRemote,\n-190 ParallelAggregateRenumberer& renumberer);\n-191\n-192 };\n-193\n-197 template\n-_\b1_\b9_\b8 class _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br<_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn,E>\n-199 : public _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br,E>\n-200 {};\n-201\n-202\n-203#endif\n-204\n-211 template\n-_\b2_\b1_\b2 class _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn,E>\n-213 {\n-214 public:\n-215 template\n-216 static typename Graph::VertexDescriptor\n-217 coarsen(const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn & fineInfo,\n-218 Graph& fineGraph,\n-219 VM& visitedMap,\n-220 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-221 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& coarseInfo,\n-222 typename Graph::VertexDescriptor noAggregates);\n-223 };\n-224\n-225#if HAVE_MPI\n-226 template\n-227 template\n-228 inline typename Graph::VertexDescriptor\n-_\b2_\b2_\b9 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\bT_\b,_\bE_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn(_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& fineInfo,\n-230 Graph& fineGraph,\n-231 VM& visitedMap,\n-232 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-233 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& coarseInfo,\n-234 [[maybe_unused]] typename Graph::VertexDescriptor noAggregates)\n-235 {\n-236 ParallelAggregateRenumberer renumberer(aggregates, fineInfo.globalLookup());\n-237 buildCoarseIndexSet(fineInfo, fineGraph, visitedMap, aggregates,\n-238 coarseInfo.indexSet(), renumberer);\n-239 buildCoarseRemoteIndices(fineInfo.remoteIndices(), aggregates,\n-coarseInfo.indexSet(),\n-240 coarseInfo.remoteIndices(), renumberer);\n-241\n-242 return renumberer;\n-243 }\n-244\n-245 template\n-246 template\n-247 void _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\bT_\b,_\bE_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bC_\bo_\ba_\br_\bs_\be_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(const\n-ParallelInformation& pinfo,\n-248 Graph& fineGraph,\n-249 VM& visitedMap,\n-250 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-251 ParallelIndexSet& coarseIndices,\n-252 ParallelAggregateRenumberer& renumberer)\n-253 {\n-254 // fineGraph is the local subgraph corresponding to the vertices the\n-process owns.\n-255 // i.e. no overlap/copy vertices can be visited traversing the graph\n-256 typedef typename Graph::ConstVertexIterator Iterator;\n-257 typedef typename ParallelInformation::GlobalLookupIndexSet\n-GlobalLookupIndexSet;\n-258\n-259 Iterator end = fineGraph.end();\n-260 const GlobalLookupIndexSet& lookup = pinfo.globalLookup();\n-261\n-262 coarseIndices.beginResize();\n+_\b1_\b4_\b5 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& block);\n+146\n+151 template\n+_\b1_\b5_\b2 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\b1_\b>& other);\n+153\n+154 typedef typename std::conditional::type>::value && C::mutableMatrix,\n+155 typename M::block_type, const typename M::block_type>::type\n+_\b1_\b5_\b6 _\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be;\n+157\n+_\b1_\b6_\b1 _\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be& _\bw_\be_\bi_\bg_\bh_\bt() const;\n+162\n+_\b1_\b6_\b4 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\b>& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+165\n+_\b1_\b6_\b7 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>&\n+other) const;\n+168\n+_\b1_\b7_\b0 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::\n+type>& other) const;\n+171\n+_\b1_\b7_\b3 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>&\n+other) const;\n+174\n+_\b1_\b7_\b6 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::\n+type>& other) const;\n+177\n+_\b1_\b7_\b9 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bt_\ba_\br_\bg_\be_\bt() const;\n+180\n+_\b1_\b8_\b2 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bs_\bo_\bu_\br_\bc_\be() const;\n+183\n+_\b1_\b8_\b5 const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*() const;\n+186\n+_\b1_\b8_\b8 const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>() const;\n+189\n+190 private:\n+192 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br source_;\n+194 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br block_;\n+195 /***\n+196 * @brief The column iterator positioned at the end of the row\n+197 * of vertex source_\n+198 */\n+199 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br blockEnd_;\n+201 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br edge_;\n+202 };\n+203\n+207 template\n+_\b2_\b0_\b8 class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+209 {\n+210 public:\n+_\b2_\b1_\b4 typedef typename std::remove_const::type _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n+_\b2_\b1_\b8 typedef const typename std::remove_const::type _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n+219\n+220 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT<_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br>;\n+221 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT<_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br>;\n+222\n+223 enum {\n+225 _\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be = std::is_same::value\n+_\b2_\b2_\b6 };\n+227\n+_\b2_\b3_\b3 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(C* graph, const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& current);\n+234\n+_\b2_\b4_\b2 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& current);\n+243\n+_\b2_\b4_\b4 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b>& other);\n+245\n+_\b2_\b5_\b0 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\b>& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+251\n+_\b2_\b5_\b3 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b>& other) const;\n+254\n+_\b2_\b5_\b6 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b>& other) const;\n+257\n+_\b2_\b5_\b9 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b>& other) const;\n+260\n+_\b2_\b6_\b2 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b>& other) const;\n 263\n-264 // Setup the coarse index set and renumber the aggregate consecutively\n-265 // ascending from zero according to the minimum global index belonging\n-266 // to the aggregate\n-267 for(Iterator index = fineGraph.begin(); index != end; ++index) {\n-268 if(aggregates[*index]!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:\n-_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n-269 // Isolated vertices will not be represented on the next level.\n-270 // These should only be there if skipIsolated is activiated in\n-271 // the coarsening criterion as otherwise they will be aggregated\n-272 // and should have real aggregate number in the map right now.\n-273 if(!_\bg_\be_\bt(visitedMap, *index)) {\n-274 // This vertex was not visited by breadthFirstSearch yet.\n-275 typedef typename GlobalLookupIndexSet::IndexPair IndexPair;\n-276 const IndexPair* pair= lookup.pair(*index);\n-277\n-278 renumberer.reset(); // reset attribute and global index.\n-279 if(pair!=0) {\n-280 // vertex is in the index set. Note that not all vertices have\n-281 // to be in the index set, just the ones where communication\n-282 // will happen.\n-283 assert(!ExcludedAttributes::contains(pair->local().attribute()));\n-284 renumberer.attribute(pair->local().attribute());\n-285 renumberer.isPublic(pair->local().isPublic());\n-286 renumberer.globalIndex(pair->global());\n-287 }\n-288\n-289 // Reconstruct aggregate and mark vertices as visited\n-290 aggregates.template breadthFirstSearch(*index, aggregates[*index],\n-291 fineGraph, renumberer, visitedMap);\n-292\n-293 if(renumberer.globalIndex()!=std::numeric_limits::max()) {\n-294 // vertex is in the index set.\n-295 //std::cout <<\" Adding global=\"<< renumberer.globalIndex()<<\"\n-local=\"<(renumberer)<(renumberer) >= coarseIndices.size());\n+264 typedef typename std::conditional::type>::value && C::mutableMatrix,\n+265 typename M::block_type, const typename M::block_type>::type\n+_\b2_\b6_\b6 _\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be;\n+_\b2_\b6_\b8 _\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be& _\bw_\be_\bi_\bg_\bh_\bt() const;\n+269\n+_\b2_\b7_\b4 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*() const;\n+275\n+_\b2_\b8_\b1 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\b> _\bb_\be_\bg_\bi_\bn() const;\n+282\n+_\b2_\b8_\b8 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\b> _\be_\bn_\bd() const;\n+289\n+290 private:\n+291 C* graph_;\n+292 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br current_;\n+293 };\n+294\n+_\b2_\b9_\b8 typedef _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> > _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+299\n+_\b3_\b0_\b3 typedef _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> > _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+304\n+_\b3_\b0_\b8 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> > _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n 309\n-310 // Reset the visited flags\n-311 for(Iterator vertex=fineGraph.begin(); vertex != end; ++vertex)\n-312 put(visitedMap, *vertex, false);\n-313 }\n+_\b3_\b1_\b3 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> > _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n 314\n-315 template\n-316 template\n-317 void ParallelIndicesCoarsener::buildCoarseRemoteIndices(const\n-RemoteIndices& fineRemote,\n-318 const AggregatesMap& aggregates,\n-319 ParallelIndexSet& coarseIndices,\n-320 RemoteIndices& coarseRemote,\n-321 ParallelAggregateRenumberer& renumberer)\n-322 {\n-323 std::vector attributes(static_cast(renumberer));\n-324\n-325 GlobalLookupIndexSet coarseLookup(coarseIndices,\n-static_cast(renumberer));\n-326\n-327 typedef typename RemoteIndices::const_iterator Iterator;\n-328 Iterator end = fineRemote.end();\n-329\n-330 for(Iterator neighbour = fineRemote.begin();\n-331 neighbour != end; ++neighbour) {\n-332 int process = neighbour->first;\n-333\n-334 assert(neighbour->second.first==neighbour->second.second);\n-335\n-336 // Mark all as not known\n-337 typedef typename std::vector::iterator CIterator;\n-338\n-339 for(CIterator iter=attributes.begin(); iter!= attributes.end(); ++iter)\n-340 *iter = std::numeric_limits::max();\n-341\n-342 auto riEnd = neighbour->second.second->end();\n+_\b3_\b1_\b9 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh(_\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt_\br_\bi_\bx);\n+320\n+_\b3_\b2_\b4 _\b~_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh();\n+325\n+_\b3_\b3_\b0 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn();\n+331\n+_\b3_\b3_\b6 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd();\n+337\n+_\b3_\b4_\b2 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n 343\n-344 for(auto index = neighbour->second.second->begin();\n-345 index != riEnd; ++index) {\n-346 if(!E::contains(index->localIndexPair().local().attribute()) &&\n-347 aggregates[index->localIndexPair().local()] !=\n-348 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n-349 {\n-350 assert(aggregates[index->localIndexPair().local()]localIndexPair().local()]] != 3)\n-352 attributes[aggregates[index->localIndexPair().local()]] = index->attribute\n-();\n-353 }\n-354 }\n-355\n-356 // Build remote index list\n-357 typedef RemoteIndexListModifier Modifier;\n-358 typedef typename RemoteIndices::RemoteIndex RemoteIndex;\n-359 typedef typename ParallelIndexSet::const_iterator IndexIterator;\n-360\n-361 Modifier coarseList = coarseRemote.template getModifier\n-(process);\n-362\n-363 IndexIterator iend = coarseIndices.end();\n-364 for(IndexIterator index = coarseIndices.begin(); index != iend; ++index)\n-365 if(attributes[index->local()] != std::numeric_limits::max()) {\n-366 // remote index is present\n-367 coarseList.insert(RemoteIndex(Attribute(attributes[index->local()]), &\n-(*index)));\n-368 }\n-369 //std::cout< syncer(coarseIndices, coarseRemote);\n-378 syncer.sync(renumberer);\n-379\n-380 }\n-381\n-382#endif\n-383\n-384 template\n-385 template\n-386 typename Graph::VertexDescriptor\n-_\b3_\b8_\b7 _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\bE_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn(\n-388 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& fineInfo,\n-389 [[maybe_unused]] Graph& fineGraph,\n-390 [[maybe_unused]] VM& visitedMap,\n-391 [[maybe_unused]] _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>&\n-aggregates,\n-392 [[maybe_unused]] _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& coarseInfo,\n-393 [[maybe_unused]] typename Graph::VertexDescriptor noAggregates)\n-394 {\n-395 return noAggregates;\n-396 }\n-397\n-398 } //namespace Amg\n-399} // namespace Dune\n-400#endif\n-_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\n-_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n-_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n-Classes providing communication interfaces for overlapping Schwarz methods.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\br_\be_\bs_\be_\bt\n-void reset()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:144\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n-LocalIndex::Attribute Attribute\n-The type of the attribute.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const typename G::ConstEdgeIterator &edge)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:116\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bi_\bs_\bP_\bu_\bb_\bl_\bi_\bc\n-void isPublic(bool b)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:139\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-ParallelInformation::ParallelIndexSet ParallelIndexSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:55\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bi_\bs_\bP_\bu_\bb_\bl_\bi_\bc\n-bool isPublic()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:134\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-ParallelIndexSet::LocalIndex LocalIndex\n-The type of the local index.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:65\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-T ParallelInformation\n-The type of the parallel information.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n-Attribute attribute()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:155\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-Vertex operator()(const GlobalIndex &global)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:127\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn\n-static Graph::VertexDescriptor coarsen(ParallelInformation &fineInfo, Graph\n-&fineGraph, VM &visitedMap, AggregatesMap< typename Graph::VertexDescriptor >\n-&aggregates, ParallelInformation &coarseInfo, typename Graph::VertexDescriptor\n-noAggregates)\n-Build the coarse index set after the aggregatio.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD\n-static const V ISOLATED\n-Identifier of isolated vertices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:571\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-ParallelIndexSet::GlobalIndex GlobalIndex\n-The type of the global index.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:60\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\ba_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be\n-void attribute(const Attribute &attribute)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bs\n-E ExcludedAttributes\n-The set of excluded attributes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-void globalIndex(const GlobalIndex &global)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:165\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n-Dune::RemoteIndices< ParallelIndexSet > RemoteIndices\n-The type of the remote indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:\n-_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n-ParallelAggregateRenumberer(AggregatesMap< Vertex > &aggregates, const I\n-&lookup)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:110\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-const GlobalIndex & globalIndex() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:160\n+_\b3_\b8_\b1 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n+382\n+_\b3_\b8_\b7 _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt_\br_\bi_\bx();\n+388\n+_\b3_\b9_\b3 const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt_\br_\bi_\bx() const;\n+394\n+_\b3_\b9_\b8 std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const;\n+399\n+_\b4_\b0_\b6 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx() const;\n+407\n+_\b4_\b1_\b1 std::size_t _\bn_\bo_\bE_\bd_\bg_\be_\bs() const;\n+412\n+_\b4_\b1_\b9 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bf_\bi_\bn_\bd_\bE_\bd_\bg_\be(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source,\n+420 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& target) const;\n+421\n+422 private:\n+424 _\bM_\ba_\bt_\br_\bi_\bx& matrix_;\n+426 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* start_;\n+428 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh(const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh&);\n+429\n+430 };\n+431\n+441 template\n+_\b4_\b4_\b2 class _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n+443 {\n+444 public:\n+_\b4_\b4_\b8 typedef G _\bG_\br_\ba_\bp_\bh;\n+449\n+_\b4_\b5_\b4 typedef T _\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd;\n+455\n+_\b4_\b5_\b9 typedef typename Graph::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+460\n+_\b4_\b6_\b1 typedef _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+462\n+_\b4_\b6_\b9 class _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+470 {\n+471 public:\n+_\b4_\b7_\b2 typedef ReadablePropertyMapTag _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n+473\n+_\b4_\b7_\b4 _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp(const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& firstEdge)\n+475 : firstEdge_(firstEdge)\n+476 {}\n+477\n+_\b4_\b7_\b9 _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp(const _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp& emap)\n+480 : firstEdge_(emap.firstEdge_)\n+481 {}\n+482\n+_\b4_\b8_\b3 std::size_t _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& edge) const\n+484 {\n+485 return edge-firstEdge_;\n+486 }\n+487 private:\n+489 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br firstEdge_;\n+491 _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp()\n+492 {}\n+493 };\n+494\n+_\b4_\b9_\b9 _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp _\bg_\be_\bt_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp();\n+500\n+_\b5_\b0_\b4 class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br : public RandomAccessIteratorFacade\n+505 {\n+506 public:\n+_\b5_\b1_\b2 explicit _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bs_\bo_\bu_\br_\bc_\be, const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n+edge);\n+513\n+_\b5_\b2_\b1 explicit _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& edge);\n+522\n+_\b5_\b2_\b4 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) const;\n+525\n+_\b5_\b2_\b7 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+528\n+_\b5_\b3_\b0 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt();\n+531\n+_\b5_\b3_\b2 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\ba_\bd_\bv_\ba_\bn_\bc_\be(std::ptrdiff_t n);\n+533\n+_\b5_\b3_\b5 const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const;\n+536\n+_\b5_\b3_\b8 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bt_\ba_\br_\bg_\be_\bt() const;\n+539\n+_\b5_\b4_\b1 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bs_\bo_\bu_\br_\bc_\be() const;\n+542\n+_\b5_\b4_\b3 std::ptrdiff_t _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) const;\n+544\n+545 private:\n+547 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br source_;\n+552 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br edge_;\n+553 };\n+554\n+_\b5_\b5_\b8 class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+559 : public ForwardIteratorFacade\n+560 {\n+561 public:\n+_\b5_\b6_\b8 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\bG_\b,_\bT_\b>* graph, const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n+current,\n+569 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\be_\bn_\bd);\n+570\n+571\n+_\b5_\b7_\b8 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& current);\n+579\n+_\b5_\b8_\b1 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n+582\n+_\b5_\b8_\b4 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) const;\n+585\n+_\b5_\b9_\b0 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const;\n+591\n+_\b5_\b9_\b7 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n+598\n+_\b6_\b0_\b4 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n+605\n+606 private:\n+608 const _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\bG_\br_\ba_\bp_\bh_\b,_\bT_\b>* graph_;\n+610 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br current_;\n+612 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br end_;\n+613 };\n+614\n+_\b6_\b1_\b8 typedef _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+619\n+_\b6_\b2_\b3 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+624\n+_\b6_\b2_\b9 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n+630\n+_\b6_\b3_\b5 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n+636\n+_\b6_\b4_\b3 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n+644\n+_\b6_\b5_\b1 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n+652\n+_\b6_\b5_\b6 std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const;\n+657\n+_\b6_\b6_\b4 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx() const;\n+665\n+_\b6_\b6_\b9 std::size_t _\bn_\bo_\bE_\bd_\bg_\be_\bs() const;\n+_\b6_\b7_\b6 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bf_\bi_\bn_\bd_\bE_\bd_\bg_\be(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source,\n+677 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& target) const;\n+_\b6_\b8_\b5 _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh(const _\bG_\br_\ba_\bp_\bh& graph, const T& excluded);\n+686\n+_\b6_\b9_\b0 _\b~_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh();\n+691\n+692 private:\n+694 const T& excluded_;\n+696 std::size_t noVertices_;\n+698 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br endVertex_;\n+700 int noEdges_;\n+705 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br maxVertex_;\n+707 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* edges_;\n+709 std::ptrdiff_t* start_;\n+711 std::ptrdiff_t* end_;\n+713 _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh(const _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh&)\n+714 {}\n+715 };\n+716\n+717\n+721 template\n+_\b7_\b2_\b2 class _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+723 {\n+724 public:\n+_\b7_\b2_\b8 typedef G _\bG_\br_\ba_\bp_\bh;\n+729\n+_\b7_\b3_\b3 typedef typename Graph::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+734\n+_\b7_\b3_\b8 typedef typename Graph::EdgeDescriptor _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+739\n+_\b7_\b4_\b3 typedef VP _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs;\n+744\n+_\b7_\b5_\b6 typedef VM _\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp;\n+757\n+_\b7_\b6_\b1 typedef typename Graph::EdgeIterator _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+762\n+_\b7_\b6_\b6 typedef typename Graph::ConstEdgeIterator _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+767\n+_\b7_\b7_\b3 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source);\n+774\n+_\b7_\b8_\b0 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source);\n+781\n+_\b7_\b8_\b7 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n+788\n+_\b7_\b9_\b4 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n+795\n+796\n+797 template\n+_\b7_\b9_\b8 class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+799 : public std::conditional::type,\n+800 C>::value,\n+801 typename Graph::VertexIterator,\n+802 typename Graph::ConstVertexIterator>::type\n+803 {\n+804 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n+805 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n+806 public:\n+810 typedef typename std::conditional::type,\n+811 C>::value,\n+812 typename Graph::VertexIterator,\n+813 typename Graph::ConstVertexIterator>::type\n+_\b8_\b1_\b4 _\bF_\ba_\bt_\bh_\be_\br;\n+815\n+819 typedef typename std::conditional::type,\n+820 C>::value,\n+821 typename Graph::EdgeIterator,\n+822 typename Graph::ConstEdgeIterator>::type\n+_\b8_\b2_\b3 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+824\n+_\b8_\b3_\b0 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter,\n+831 C* graph);\n+832\n+833\n+_\b8_\b4_\b1 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter);\n+842\n+847 template\n+_\b8_\b4_\b8 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const VertexIteratorT& other);\n+849\n+853 typename std::conditional::\n+type>::value,\n+854 VertexProperties&,\n+855 const VertexProperties&>::type\n+_\b8_\b5_\b6 _\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs() const;\n+857\n+_\b8_\b6_\b3 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n+864\n+_\b8_\b7_\b0 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n+871\n+872 private:\n+876 C* graph_;\n+877 };\n+878\n+882 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+884\n+888 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+890\n+_\b8_\b9_\b5 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn();\n+896\n+_\b9_\b0_\b1 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd();\n+902\n+_\b9_\b0_\b7 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n+908\n+_\b9_\b1_\b3 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n+914\n+_\b9_\b2_\b0 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const VertexDescriptor& vertex);\n+921\n+_\b9_\b2_\b7 const _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const VertexDescriptor& vertex)\n+const;\n+928\n+_\b9_\b3_\b3 const _\bG_\br_\ba_\bp_\bh& _\bg_\br_\ba_\bp_\bh() const;\n+934\n+_\b9_\b3_\b8 std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const;\n+939\n+_\b9_\b4_\b3 std::size_t _\bn_\bo_\bE_\bd_\bg_\be_\bs() const;\n+944\n+_\b9_\b5_\b1 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx() const;\n+952\n+_\b9_\b5_\b8 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(Graph& graph, const VertexMap vmap=VertexMap());\n+959\n+960 private:\n+961 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(const VertexPropertiesGraph&)\n+962 {}\n+963\n+965 _\bG_\br_\ba_\bp_\bh& graph_;\n+967 _\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp vmap_;\n+_\b9_\b6_\b9 std::vector vertexProperties_;\n+970\n+971 };\n+972\n+976 template\n+_\b9_\b7_\b7 class _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+978 {\n+979 public:\n+_\b9_\b8_\b3 typedef G _\bG_\br_\ba_\bp_\bh;\n+984\n+_\b9_\b8_\b8 typedef typename Graph::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+989\n+_\b9_\b9_\b3 typedef typename Graph::EdgeDescriptor _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n+994\n+_\b9_\b9_\b8 typedef VP _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs;\n+999\n+_\b1_\b0_\b1_\b1 typedef VM _\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp;\n+1012\n+_\b1_\b0_\b1_\b6 typedef EP _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs;\n+1017\n+1018\n+_\b1_\b0_\b3_\b0 typedef EM _\bE_\bd_\bg_\be_\bM_\ba_\bp;\n+1031\n+1032 template\n+_\b1_\b0_\b3_\b3 class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+1034 : public std::conditional::\n+type,\n+1035 C>::value,\n+1036 typename Graph::EdgeIterator,\n+1037 typename Graph::ConstEdgeIterator>::type\n+1038 {\n+1039\n+1040 friend class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n+1041 friend class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n+1042 public:\n+1046 typedef typename std::conditional::type,\n+1047 C>::value,\n+1048 typename Graph::EdgeIterator,\n+1049 typename Graph::ConstEdgeIterator>::type\n+_\b1_\b0_\b5_\b0 _\bF_\ba_\bt_\bh_\be_\br;\n+1051\n+_\b1_\b0_\b5_\b7 explicit _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter,\n+1058 C* graph);\n+1059\n+_\b1_\b0_\b6_\b7 explicit _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter);\n+1068\n+1073 template\n+_\b1_\b0_\b7_\b4 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const EdgeIteratorT& other);\n+1075\n+1079 typename std::conditional::\n+type>::value,\n+1080 EdgeProperties&,\n+1081 const EdgeProperties&>::type\n+_\b1_\b0_\b8_\b2 properties() const;\n+1083\n+1084 private:\n+_\b1_\b0_\b8_\b8 C* graph_;\n+1089 };\n+1090\n+1094 typedef _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1097\n+1101 typedef _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1104\n+_\b1_\b1_\b1_\b0 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br beginEdges(const VertexDescriptor& source);\n+1111\n+_\b1_\b1_\b1_\b7 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endEdges(const VertexDescriptor& source);\n+1118\n+_\b1_\b1_\b2_\b4 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br beginEdges(const VertexDescriptor& source) const;\n+1125\n+_\b1_\b1_\b3_\b1 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endEdges(const VertexDescriptor& source) const;\n+1132\n+1133\n+1134 template\n+_\b1_\b1_\b3_\b5 class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+1136 : public std::conditional::\n+type,\n+1137 C>::value,\n+1138 typename Graph::VertexIterator,\n+1139 typename Graph::ConstVertexIterator>::type\n+1140 {\n+1141 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n+1142 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n+1143 public:\n+1147 typedef typename std::conditional::type,\n+1148 C>::value,\n+1149 typename Graph::VertexIterator,\n+1150 typename Graph::ConstVertexIterator>::type\n+_\b1_\b1_\b5_\b1 _\bF_\ba_\bt_\bh_\be_\br;\n+1152\n+_\b1_\b1_\b5_\b8 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter,\n+1159 C* graph);\n+1160\n+1161\n+_\b1_\b1_\b6_\b9 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter);\n+1170\n+1175 template\n+_\b1_\b1_\b7_\b6 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const VertexIteratorT& other);\n+1177\n+1181 typename std::conditional::\n+type>::value,\n+1182 VertexProperties&,\n+1183 const VertexProperties&>::type\n+_\b1_\b1_\b8_\b4 properties() const;\n+1185\n+_\b1_\b1_\b9_\b1 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT begin() const;\n+1192\n+_\b1_\b1_\b9_\b8 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT end() const;\n+1199\n+1200 private:\n+1204 C* graph_;\n+1205 };\n+1206\n+1210 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1213\n+1217 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1220\n+_\b1_\b2_\b2_\b5 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br begin();\n+1226\n+_\b1_\b2_\b3_\b1 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br end();\n+1232\n+_\b1_\b2_\b3_\b7 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br begin() const;\n+1238\n+_\b1_\b2_\b4_\b3 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br end() const;\n+1244\n+_\b1_\b2_\b5_\b0 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& getVertexProperties(const VertexDescriptor& vertex);\n+1251\n+_\b1_\b2_\b5_\b7 const _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& getVertexProperties(const VertexDescriptor&\n+vertex) const;\n+1258\n+_\b1_\b2_\b6_\b5 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br findEdge(const VertexDescriptor& source,\n+1266 const VertexDescriptor& target)\n+1267 {\n+1268 return graph_.findEdge(source,target);\n+1269 }\n+1270\n+_\b1_\b2_\b7_\b6 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& edge);\n+1277\n+1278\n+_\b1_\b2_\b8_\b4 const _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& edge) const;\n+1285\n+_\b1_\b2_\b9_\b2 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source,\n+1293 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& target);\n+1294\n+_\b1_\b3_\b0_\b1 const _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source,\n+1302 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& target) const;\n+1303\n+_\b1_\b3_\b0_\b8 const _\bG_\br_\ba_\bp_\bh& _\bg_\br_\ba_\bp_\bh() const;\n+1309\n+_\b1_\b3_\b1_\b3 std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const;\n+1314\n+_\b1_\b3_\b1_\b8 std::size_t _\bn_\bo_\bE_\bd_\bg_\be_\bs() const;\n+1319\n+_\b1_\b3_\b2_\b6 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx() const;\n+1327\n+_\b1_\b3_\b3_\b4 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(_\bG_\br_\ba_\bp_\bh& graph, const _\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp& vmap=_\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp(),\n+1335 const _\bE_\bd_\bg_\be_\bM_\ba_\bp& emap=_\bE_\bd_\bg_\be_\bM_\ba_\bp());\n+1336\n+1337 private:\n+1338 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(const _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh&)\n+1339 {}\n+1340\n+1342 Graph& graph_;\n+1345 VertexMap vmap_;\n+1346 std::vector vertexProperties_;\n+1348 EdgeMap emap_;\n+_\b1_\b3_\b5_\b0 std::vector edgeProperties_;\n+1351\n+1352 };\n+1353\n+1354\n+1359 template\n+_\b1_\b3_\b6_\b0 class _\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+1361 {\n+1362 public:\n+_\b1_\b3_\b6_\b6 typedef G _\bG_\br_\ba_\bp_\bh;\n+_\b1_\b3_\b7_\b0 typedef typename G::VertexProperties _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs;\n+_\b1_\b3_\b7_\b4 typedef typename G::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n+1375\n+_\b1_\b3_\b8_\b0 _\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br(G& g)\n+1381 : graph_(g)\n+1382 {}\n+_\b1_\b3_\b8_\b6 _\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br()\n+1387 : graph_(0)\n+1388 {}\n+1389\n+1390\n+_\b1_\b3_\b9_\b5 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bV_\be_\br_\bt_\be_\bx& vertex) const\n+1396 {\n+1397 return graph_->getVertexProperties(vertex);\n+1398 }\n+1399 private:\n+1400 Graph* graph_;\n+1401 };\n+1402\n+1407 template\n+_\b1_\b4_\b0_\b8 class _\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+1409 {\n+1410 public:\n+_\b1_\b4_\b1_\b4 typedef G _\bG_\br_\ba_\bp_\bh;\n+_\b1_\b4_\b1_\b8 typedef typename G::EdgeProperties _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs;\n+_\b1_\b4_\b2_\b2 typedef typename G::EdgeDescriptor _\bE_\bd_\bg_\be;\n+1423\n+_\b1_\b4_\b2_\b8 _\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br(G& g)\n+1429 : graph_(g)\n+1430 {}\n+_\b1_\b4_\b3_\b4 _\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br()\n+1435 : graph_(0)\n+1436 {}\n+1437\n+_\b1_\b4_\b4_\b2 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bE_\bd_\bg_\be& edge) const\n+1443 {\n+1444 return graph_->getEdgeProperties(edge);\n+1445 }\n+1446 private:\n+1447 Graph* graph_;\n+1448 };\n+1449\n+1450\n+1461 template\n+_\b1_\b4_\b6_\b2 int _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(const G& graph, const typename G::VertexDescriptor&\n+vertex,\n+1463 V& visitor);\n+1464\n+1465#ifndef DOXYGEN\n+1466\n+1467 template\n+1468 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh(M& matrix)\n+1469 : matrix_(matrix)\n+1470 {\n+1471 if(matrix_.N()!=matrix_.M())\n+1472 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Matrix has to have as many columns as rows!\");\n+1473\n+1474 start_ = new EdgeDescriptor[matrix_.N()+1];\n+1475\n+1476 typedef typename M::ConstIterator Iterator;\n+1477 start_[matrix_.begin().index()] = 0;\n+1478\n+1479 for(Iterator row=matrix_.begin(); row != matrix_.end(); ++row)\n+1480 start_[row.index()+1] = start_[row.index()] + row->size();\n+1481 }\n+1482\n+1483 template\n+1484 MatrixGraph::~MatrixGraph()\n+1485 {\n+1486 delete[] start_;\n+1487 }\n+1488\n+1489 template\n+1490 inline std::size_t MatrixGraph::noEdges() const\n+1491 {\n+1492 return start_[matrix_.N()];\n+1493 }\n+1494\n+1495 template\n+1496 inline std::size_t MatrixGraph::noVertices() const\n+1497 {\n+1498 return matrix_.N();\n+1499 }\n+1500\n+1501 template\n+1502 inline typename MatrixGraph::VertexDescriptor MatrixGraph::maxVertex\n+() const\n+1503 {\n+1504 return matrix_.N()-1;\n+1505 }\n+1506\n+1507 template\n+1508 typename MatrixGraph::EdgeDescriptor\n+1509 MatrixGraph::findEdge(const VertexDescriptor& source,\n+1510 const VertexDescriptor& target) const\n+1511 {\n+1512 typename M::ConstColIterator found =matrix_[source].find(target);\n+1513 if(found == matrix_[source].end())\n+1514 return std::numeric_limits::max();\n+1515 std::size_t offset = found.offset();\n+1516 if(target>source)\n+1517 offset--;\n+1518\n+1519 assert(offset\n+1526 inline M& MatrixGraph::matrix()\n+1527 {\n+1528 return matrix_;\n+1529 }\n+1530\n+1531 template\n+1532 inline const M& MatrixGraph::matrix() const\n+1533 {\n+1534 return matrix_;\n+1535 }\n+1536\n+1537 template\n+1538 template\n+1539 MatrixGraph::EdgeIteratorT::EdgeIteratorT(const VertexDescriptor&\n+source, const ColIterator& block,\n+1540 const ColIterator& end, const EdgeDescriptor& edge)\n+1541 : source_(source), block_(block), blockEnd_(end), edge_(edge)\n+1542 {\n+1543 if(block_!=blockEnd_ && block_.index() == source_) {\n+1544 // This is the edge from the diagonal to the diagonal. Skip it.\n+1545 ++block_;\n+1546 }\n+1547 }\n+1548\n+1549 template\n+1550 template\n+1551 MatrixGraph::EdgeIteratorT::EdgeIteratorT(const ColIterator& block)\n+1552 : block_(block)\n+1553 {}\n+1554\n+1555 template\n+1556 template\n+1557 template\n+1558 MatrixGraph::EdgeIteratorT::EdgeIteratorT(const EdgeIteratorT&\n+other)\n+1559 : source_(other.source_), block_(other.block_), blockEnd_\n+(other.blockEnd_), edge_(other.edge_)\n+1560 {}\n+1561\n+1562\n+1563 template\n+1564 template\n+1565 inline typename MatrixGraph::template EdgeIteratorT::WeightType&\n+1566 MatrixGraph::EdgeIteratorT::weight() const\n+1567 {\n+1568 return *block_;\n+1569 }\n+1570\n+1571 template\n+1572 template\n+1573 inline typename MatrixGraph::template EdgeIteratorT&\n+MatrixGraph::EdgeIteratorT::operator++()\n+1574 {\n+1575 ++block_;\n+1576 ++edge_;\n+1577\n+1578 if(block_!=blockEnd_ && block_.index() == source_) {\n+1579 // This is the edge from the diagonal to the diagonal. Skip it.\n+1580 ++block_;\n+1581 }\n+1582\n+1583 return *this;\n+1584 }\n+1585\n+1586 template\n+1587 template\n+1588 inline bool MatrixGraph::EdgeIteratorT::operator!=(const typename\n+MatrixGraph::template EdgeIteratorT::type>&\n+other) const\n+1589 {\n+1590 return block_!=other.block_;\n+1591 }\n+1592\n+1593 template\n+1594 template\n+1595 inline bool MatrixGraph::EdgeIteratorT::operator!=(const typename\n+MatrixGraph::template EdgeIteratorT::\n+type>& other) const\n+1596 {\n+1597 return block_!=other.block_;\n+1598 }\n+1599\n+1600 template\n+1601 template\n+1602 inline bool MatrixGraph::EdgeIteratorT::operator==(const typename\n+MatrixGraph::template EdgeIteratorT::type>&\n+other) const\n+1603 {\n+1604 return block_==other.block_;\n+1605 }\n+1606\n+1607 template\n+1608 template\n+1609 inline bool MatrixGraph::EdgeIteratorT::operator==(const typename\n+MatrixGraph::template EdgeIteratorT::\n+type>& other) const\n+1610 {\n+1611 return block_==other.block_;\n+1612 }\n+1613\n+1614 template\n+1615 template\n+1616 inline typename MatrixGraph::VertexDescriptor MatrixGraph::\n+EdgeIteratorT::target() const\n+1617 {\n+1618 return block_.index();\n+1619 }\n+1620\n+1621 template\n+1622 template\n+1623 inline typename MatrixGraph::VertexDescriptor MatrixGraph::\n+EdgeIteratorT::source() const\n+1624 {\n+1625 return source_;\n+1626 }\n+1627\n+1628 template\n+1629 template\n+1630 inline const typename MatrixGraph::EdgeDescriptor& MatrixGraph::\n+EdgeIteratorT::operator*() const\n+1631 {\n+1632 return edge_;\n+1633 }\n+1634\n+1635 template\n+1636 template\n+1637 inline const typename MatrixGraph::EdgeDescriptor* MatrixGraph::\n+EdgeIteratorT::operator->() const\n+1638 {\n+1639 return &edge_;\n+1640 }\n+1641\n+1642 template\n+1643 template\n+1644 MatrixGraph::VertexIteratorT::VertexIteratorT(C* graph,\n+1645 const VertexDescriptor& current)\n+1646 : graph_(graph), current_(current)\n+1647 {}\n+1648\n+1649\n+1650 template\n+1651 template\n+1652 MatrixGraph::VertexIteratorT::VertexIteratorT(const\n+VertexDescriptor& current)\n+1653 : current_(current)\n+1654 {}\n+1655\n+1656 template\n+1657 template\n+1658 MatrixGraph::VertexIteratorT::VertexIteratorT(const\n+VertexIteratorT& other)\n+1659 : graph_(other.graph_), current_(other.current_)\n+1660 {}\n+1661\n+1662 template\n+1663 template\n+1664 inline bool MatrixGraph::VertexIteratorT::operator!=(const\n+VertexIteratorT& other) const\n+1665 {\n+1666 return current_ != other.current_;\n+1667 }\n+1668\n+1669 template\n+1670 template\n+1671 inline bool MatrixGraph::VertexIteratorT::operator!=(const\n+VertexIteratorT& other) const\n+1672 {\n+1673 return current_ != other.current_;\n+1674 }\n+1675\n+1676\n+1677 template\n+1678 template\n+1679 inline bool MatrixGraph::VertexIteratorT::operator==(const\n+VertexIteratorT& other) const\n+1680 {\n+1681 return current_ == other.current_;\n+1682 }\n+1683\n+1684 template\n+1685 template\n+1686 inline bool MatrixGraph::VertexIteratorT::operator==(const\n+VertexIteratorT& other) const\n+1687 {\n+1688 return current_ == other.current_;\n+1689 }\n+1690\n+1691 template\n+1692 template\n+1693 inline typename MatrixGraph::template VertexIteratorT&\n+MatrixGraph::VertexIteratorT::operator++()\n+1694 {\n+1695 ++current_;\n+1696 return *this;\n+1697 }\n+1698\n+1699 template\n+1700 template\n+1701 inline typename MatrixGraph::template VertexIteratorT::WeightType&\n+1702 MatrixGraph::VertexIteratorT::weight() const\n+1703 {\n+1704 return graph_->matrix()[current_][current_];\n+1705 }\n+1706\n+1707 template\n+1708 template\n+1709 inline const typename MatrixGraph::VertexDescriptor&\n+1710 MatrixGraph::VertexIteratorT::operator*() const\n+1711 {\n+1712 return current_;\n+1713 }\n+1714\n+1715 template\n+1716 template\n+1717 inline typename MatrixGraph::template EdgeIteratorT\n+1718 MatrixGraph::VertexIteratorT::begin() const\n+1719 {\n+1720 return graph_->beginEdges(current_);\n+1721 }\n+1722\n+1723 template\n+1724 template\n+1725 inline typename MatrixGraph::template EdgeIteratorT\n+1726 MatrixGraph::VertexIteratorT::end() const\n+1727 {\n+1728 return graph_->endEdges(current_);\n+1729 }\n+1730\n+1731 template\n+1732 inline typename MatrixGraph::template VertexIteratorT >\n+1733 MatrixGraph::begin()\n+1734 {\n+1735 return VertexIterator(this,0);\n+1736 }\n+1737\n+1738 template\n+1739 inline typename MatrixGraph::template VertexIteratorT >\n+1740 MatrixGraph::end()\n+1741 {\n+1742 return VertexIterator(matrix_.N());\n+1743 }\n+1744\n+1745\n+1746 template\n+1747 inline typename MatrixGraph::template VertexIteratorT >\n+1748 MatrixGraph::begin() const\n+1749 {\n+1750 return ConstVertexIterator(this, 0);\n+1751 }\n+1752\n+1753 template\n+1754 inline typename MatrixGraph::template VertexIteratorT >\n+1755 MatrixGraph::end() const\n+1756 {\n+1757 return ConstVertexIterator(matrix_.N());\n+1758 }\n+1759\n+1760 template\n+1761 inline typename MatrixGraph::template EdgeIteratorT >\n+1762 MatrixGraph::beginEdges(const VertexDescriptor& source)\n+1763 {\n+1764 return EdgeIterator(source, matrix_.operator[](source).begin(),\n+1765 matrix_.operator[](source).end(), start_[source]);\n+1766 }\n+1767\n+1768 template\n+1769 inline typename MatrixGraph::template EdgeIteratorT >\n+1770 MatrixGraph::endEdges(const VertexDescriptor& source)\n+1771 {\n+1772 return EdgeIterator(matrix_.operator[](source).end());\n+1773 }\n+1774\n+1775\n+1776 template\n+1777 inline typename MatrixGraph::template EdgeIteratorT >\n+1778 MatrixGraph::beginEdges(const VertexDescriptor& source) const\n+1779 {\n+1780 return ConstEdgeIterator(source, matrix_.operator[](source).begin(),\n+1781 matrix_.operator[](source).end(), start_[source]);\n+1782 }\n+1783\n+1784 template\n+1785 inline typename MatrixGraph::template EdgeIteratorT >\n+1786 MatrixGraph::endEdges(const VertexDescriptor& source) const\n+1787 {\n+1788 return ConstEdgeIterator(matrix_.operator[](source).end());\n+1789 }\n+1790\n+1791\n+1792 template\n+1793 SubGraph::EdgeIterator::EdgeIterator(const VertexDescriptor& source,\n+1794 const EdgeDescriptor& edge)\n+1795 : source_(source), edge_(edge)\n+1796 {}\n+1797\n+1798\n+1799 template\n+1800 SubGraph::EdgeIterator::EdgeIterator(const EdgeDescriptor& edge)\n+1801 : edge_(edge)\n+1802 {}\n+1803\n+1804 template\n+1805 typename SubGraph::EdgeIndexMap SubGraph::getEdgeIndexMap()\n+1806 {\n+1807 return EdgeIndexMap(edges_);\n+1808 }\n+1809\n+1810 template\n+1811 inline bool SubGraph::EdgeIterator::equals(const EdgeIterator &\n+other) const\n+1812 {\n+1813 return other.edge_==edge_;\n+1814 }\n+1815\n+1816 template\n+1817 inline typename SubGraph::EdgeIterator& SubGraph::EdgeIterator::\n+increment()\n+1818 {\n+1819 ++edge_;\n+1820 return *this;\n+1821 }\n+1822\n+1823 template\n+1824 inline typename SubGraph::EdgeIterator& SubGraph::EdgeIterator::\n+decrement()\n+1825 {\n+1826 --edge_;\n+1827 return *this;\n+1828 }\n+1829\n+1830 template\n+1831 inline typename SubGraph::EdgeIterator& SubGraph::EdgeIterator::\n+advance(std::ptrdiff_t n)\n+1832 {\n+1833 edge_+=n;\n+1834 return *this;\n+1835 }\n+1836 template\n+1837 inline const typename G::VertexDescriptor& SubGraph::EdgeIterator::\n+source() const\n+1838 {\n+1839 return source_;\n+1840 }\n+1841\n+1842 template\n+1843 inline const typename G::VertexDescriptor& SubGraph::EdgeIterator::\n+target() const\n+1844 {\n+1845 return *edge_;\n+1846 }\n+1847\n+1848\n+1849 template\n+1850 inline const typename SubGraph::EdgeDescriptor& SubGraph::\n+EdgeIterator::dereference() const\n+1851 {\n+1852 return edge_;\n+1853 }\n+1854\n+1855 template\n+1856 inline std::ptrdiff_t SubGraph::EdgeIterator::distanceTo(const\n+EdgeIterator & other) const\n+1857 {\n+1858 return other.edge_-edge_;\n+1859 }\n+1860\n+1861 template\n+1862 SubGraph::VertexIterator::VertexIterator(const SubGraph* graph,\n+1863 const VertexDescriptor& current,\n+1864 const VertexDescriptor& end)\n+1865 : graph_(graph), current_(current), end_(end)\n+1866 {\n+1867 // Skip excluded vertices\n+1868 typedef typename T::const_iterator Iterator;\n+1869\n+1870 for(Iterator vertex = graph_->excluded_.begin();\n+1871 current_ != end_ && *vertex;\n+1872 ++vertex)\n+1873 ++current_;\n+1874 assert(current_ == end_ || !graph_->excluded_[current_]);\n+1875 }\n+1876\n+1877 template\n+1878 SubGraph::VertexIterator::VertexIterator(const VertexDescriptor&\n+current)\n+1879 : current_(current)\n+1880 {}\n+1881\n+1882 template\n+1883 inline typename SubGraph::VertexIterator& SubGraph::\n+VertexIterator::increment()\n+1884 {\n+1885 ++current_;\n+1886 //Skip excluded vertices\n+1887 while(current_ != end_ && graph_->excluded_[current_])\n+1888 ++current_;\n+1889\n+1890 assert(current_ == end_ || !graph_->excluded_[current_]);\n+1891 return *this;\n+1892 }\n+1893\n+1894 template\n+1895 inline bool SubGraph::VertexIterator::equals(const VertexIterator &\n+other) const\n+1896 {\n+1897 return current_==other.current_;\n+1898 }\n+1899\n+1900 template\n+1901 inline const typename G::VertexDescriptor& SubGraph::VertexIterator::\n+dereference() const\n+1902 {\n+1903 return current_;\n+1904 }\n+1905\n+1906 template\n+1907 inline typename SubGraph::EdgeIterator SubGraph::\n+VertexIterator::begin() const\n+1908 {\n+1909 return graph_->beginEdges(current_);\n+1910 }\n+1911\n+1912 template\n+1913 inline typename SubGraph::EdgeIterator SubGraph::\n+VertexIterator::end() const\n+1914 {\n+1915 return graph_->endEdges(current_);\n+1916 }\n+1917\n+1918 template\n+1919 inline typename SubGraph::VertexIterator SubGraph::begin() const\n+1920 {\n+1921 return VertexIterator(this, 0, endVertex_);\n+1922 }\n+1923\n+1924\n+1925 template\n+1926 inline typename SubGraph::VertexIterator SubGraph::end() const\n+1927 {\n+1928 return VertexIterator(endVertex_);\n+1929 }\n+1930\n+1931\n+1932 template\n+1933 inline typename SubGraph::EdgeIterator SubGraph::beginEdges\n+(const VertexDescriptor& source) const\n+1934 {\n+1935 return EdgeIterator(source, edges_+start_[source]);\n+1936 }\n+1937\n+1938 template\n+1939 inline typename SubGraph::EdgeIterator SubGraph::endEdges(const\n+VertexDescriptor& source) const\n+1940 {\n+1941 return EdgeIterator(edges_+end_[source]);\n+1942 }\n+1943\n+1944 template\n+1945 std::size_t SubGraph::noVertices() const\n+1946 {\n+1947 return noVertices_;\n+1948 }\n+1949\n+1950 template\n+1951 inline typename SubGraph::VertexDescriptor SubGraph::maxVertex()\n+const\n+1952 {\n+1953 return maxVertex_;\n+1954 }\n+1955\n+1956 template\n+1957 inline std::size_t SubGraph::noEdges() const\n+1958 {\n+1959 return noEdges_;\n+1960 }\n+1961\n+1962 template\n+1963 inline typename SubGraph::EdgeDescriptor SubGraph::findEdge\n+(const VertexDescriptor& source,\n+1964 const VertexDescriptor& target) const\n+1965 {\n+1966 const EdgeDescriptor edge = std::lower_bound(edges_+start_[source],\n+edges_+end_[source], target);\n+1967 if(edge==edges_+end_[source] || *edge!=target)\n+1968 return std::numeric_limits::max();\n+1969\n+1970 return edge;\n+1971 }\n+1972\n+1973 template\n+1974 SubGraph::~SubGraph()\n+1975 {\n+1976 delete[] edges_;\n+1977 delete[] end_;\n+1978 delete[] start_;\n+1979 }\n+1980\n+1981 template\n+1982 SubGraph::SubGraph(const G& graph, const T& excluded)\n+1983 : excluded_(excluded), noVertices_(0), endVertex_(0), maxVertex_\n+(graph.maxVertex())\n+1984 {\n+1985 start_ = new std::ptrdiff_t[graph.noVertices()];\n+1986 end_ = new std::ptrdiff_t[graph.noVertices()];\n+1987 edges_ = new VertexDescriptor[graph.noEdges()];\n+1988\n+1989 VertexDescriptor* edge=edges_;\n+1990\n+1991 // Cater for the case that there are no vertices.\n+1992 // Otherwise endVertex_ will get 1 below.\n+1993 if ( graph.noVertices() == 0)\n+1994 return;\n+1995\n+1996 typedef typename Graph::ConstVertexIterator Iterator;\n+1997 Iterator endVertex=graph.end();\n+1998\n+1999 for(Iterator vertex = graph.begin(); vertex != endVertex; ++vertex)\n+2000 if(excluded_[*vertex])\n+2001 start_[*vertex]=end_[*vertex]=-1;\n+2002 else{\n+2003 ++noVertices_;\n+2004 endVertex_ = std::max(*vertex, endVertex_);\n+2005\n+2006 start_[*vertex] = edge-edges_;\n+2007\n+2008 auto endEdge = vertex.end();\n+2009\n+2010 for(auto iter=vertex.begin(); iter!= endEdge; ++iter)\n+2011 if(!excluded[iter.target()]) {\n+2012 *edge = iter.target();\n+2013 ++edge;\n+2014 }\n+2015\n+2016 end_[*vertex] = edge - edges_;\n+2017\n+2018 // Sort the edges\n+2019 std::sort(edges_+start_[*vertex], edge);\n+2020 }\n+2021 noEdges_ = edge-edges_;\n+2022 ++endVertex_;\n+2023 }\n+2024\n+2025 template\n+2026 inline std::size_t VertexPropertiesGraph::noEdges() const\n+2027 {\n+2028 return graph_.noEdges();\n+2029 }\n+2030\n+2031 template\n+2032 inline typename VertexPropertiesGraph::EdgeIterator\n+2033 VertexPropertiesGraph::beginEdges(const VertexDescriptor& source)\n+2034 {\n+2035 return graph_.beginEdges(source);\n+2036 }\n+2037\n+2038 template\n+2039 inline typename VertexPropertiesGraph::EdgeIterator\n+2040 VertexPropertiesGraph::endEdges(const VertexDescriptor& source)\n+2041 {\n+2042 return graph_.endEdges(source);\n+2043 }\n+2044\n+2045 template\n+2046 typename VertexPropertiesGraph::ConstEdgeIterator\n+2047 inline VertexPropertiesGraph::beginEdges(const VertexDescriptor&\n+source) const\n+2048 {\n+2049 return graph_.beginEdges(source);\n+2050 }\n+2051\n+2052 template\n+2053 typename VertexPropertiesGraph::ConstEdgeIterator\n+2054 VertexPropertiesGraph::endEdges(const VertexDescriptor& source)\n+const\n+2055 {\n+2056 return graph_.endEdges(source);\n+2057 }\n+2058\n+2059 template\n+2060 template\n+2061 VertexPropertiesGraph::VertexIteratorT\n+2062 ::VertexIteratorT(const Father& iter,\n+2063 C* graph)\n+2064 : Father(iter), graph_(graph)\n+2065 {}\n+2066\n+2067 template\n+2068 template\n+2069 VertexPropertiesGraph::VertexIteratorT\n+2070 ::VertexIteratorT(const Father& iter)\n+2071 : Father(iter)\n+2072 {}\n+2073\n+2074 template\n+2075 template\n+2076 template\n+2077 VertexPropertiesGraph::VertexIteratorT\n+2078 ::VertexIteratorT(const VertexIteratorT& other)\n+2079 : Father(other), graph_(other.graph_)\n+2080 {}\n+2081\n+2082 template\n+2083 template\n+2084 typename std::conditional::\n+type>::value,\n+2085 V&, const V&>::type\n+2086 inline VertexPropertiesGraph::VertexIteratorT::properties()\n+const\n+2087 {\n+2088 return graph_->getVertexProperties(Father::operator*());\n+2089 }\n+2090\n+2091 template\n+2092 template\n+2093 typename std::conditional::\n+type,\n+2094 C>::value,\n+2095 typename G::EdgeIterator,\n+2096 typename G::ConstEdgeIterator>::type\n+2097 inline VertexPropertiesGraph::VertexIteratorT::begin() const\n+2098 {\n+2099 return graph_->beginEdges(Father::operator*());\n+2100 }\n+2101\n+2102 template\n+2103 template\n+2104 typename std::conditional::\n+type,\n+2105 C>::value,\n+2106 typename G::EdgeIterator,\n+2107 typename G::ConstEdgeIterator>::type\n+2108 inline VertexPropertiesGraph::VertexIteratorT::end() const\n+2109 {\n+2110 return graph_->endEdges(Father::operator*());\n+2111 }\n+2112\n+2113 template\n+2114 inline typename VertexPropertiesGraph::VertexIterator\n+VertexPropertiesGraph::begin()\n+2115 {\n+2116 return VertexIterator(graph_.begin(), this);\n+2117 }\n+2118\n+2119 template\n+2120 inline typename VertexPropertiesGraph::VertexIterator\n+VertexPropertiesGraph::end()\n+2121 {\n+2122 return VertexIterator(graph_.end());\n+2123 }\n+2124\n+2125\n+2126 template\n+2127 inline typename VertexPropertiesGraph::ConstVertexIterator\n+VertexPropertiesGraph::begin() const\n+2128 {\n+2129 return ConstVertexIterator(graph_.begin(), this);\n+2130 }\n+2131\n+2132 template\n+2133 inline typename VertexPropertiesGraph::ConstVertexIterator\n+VertexPropertiesGraph::end() const\n+2134 {\n+2135 return ConstVertexIterator(graph_.end());\n+2136 }\n+2137\n+2138 template\n+2139 inline V& VertexPropertiesGraph::getVertexProperties(const\n+VertexDescriptor& vertex)\n+2140 {\n+2141 return vertexProperties_[vmap_[vertex]];\n+2142 }\n+2143\n+2144 template\n+2145 inline const V& VertexPropertiesGraph::getVertexProperties(const\n+VertexDescriptor& vertex) const\n+2146 {\n+2147 return vertexProperties_[vmap_[vertex]];\n+2148 }\n+2149\n+2150 template\n+2151 inline const G& VertexPropertiesGraph::graph() const\n+2152 {\n+2153 return graph_;\n+2154 }\n+2155\n+2156 template\n+2157 inline std::size_t VertexPropertiesGraph::noVertices() const\n+2158 {\n+2159 return graph_.noVertices();\n+2160 }\n+2161\n+2162\n+2163 template\n+2164 inline typename VertexPropertiesGraph::VertexDescriptor\n+VertexPropertiesGraph::maxVertex() const\n+2165 {\n+2166 return graph_.maxVertex();\n+2167 }\n+2168\n+2169 template\n+2170 VertexPropertiesGraph::VertexPropertiesGraph(Graph& graph, const\n+VM vmap)\n+2171 : graph_(graph), vmap_(vmap), vertexProperties_(vmap_[graph_.maxVertex\n+()+1], V())\n+2172 {}\n+2173\n+2174 template\n+2175 template\n+2176 PropertiesGraph::EdgeIteratorT::EdgeIteratorT(const\n+Father& iter,\n+2177 C* graph)\n+2178 : Father(iter), graph_(graph)\n+2179 {}\n+2180\n+2181 template\n+2182 template\n+2183 PropertiesGraph::EdgeIteratorT::EdgeIteratorT(const\n+Father& iter)\n+2184 : Father(iter)\n+2185 {}\n+2186\n+2187 template\n+2188 template\n+2189 template\n+2190 PropertiesGraph::EdgeIteratorT::EdgeIteratorT(const\n+EdgeIteratorT& other)\n+2191 : Father(other), graph_(other.graph_)\n+2192 {}\n+2193\n+2194\n+2195 template\n+2196 inline std::size_t PropertiesGraph::noEdges() const\n+2197 {\n+2198 return graph_.noEdges();\n+2199 }\n+2200\n+2201 template\n+2202 template\n+2203 inline typename std::conditional::type>::value,E&,const E&>::type\n+2204 PropertiesGraph::EdgeIteratorT::properties() const\n+2205 {\n+2206 return graph_->getEdgeProperties(Father::operator*());\n+2207 }\n+2208\n+2209 template\n+2210 inline typename PropertiesGraph::EdgeIterator\n+2211 PropertiesGraph::beginEdges(const VertexDescriptor& source)\n+2212 {\n+2213 return EdgeIterator(graph_.beginEdges(source), this);\n+2214 }\n+2215\n+2216 template\n+2217 inline typename PropertiesGraph::EdgeIterator\n+2218 PropertiesGraph::endEdges(const VertexDescriptor& source)\n+2219 {\n+2220 return EdgeIterator(graph_.endEdges(source));\n+2221 }\n+2222\n+2223 template\n+2224 typename PropertiesGraph::ConstEdgeIterator\n+2225 inline PropertiesGraph::beginEdges(const VertexDescriptor&\n+source) const\n+2226 {\n+2227 return ConstEdgeIterator(graph_.beginEdges(source), this);\n+2228 }\n+2229\n+2230 template\n+2231 typename PropertiesGraph::ConstEdgeIterator\n+2232 PropertiesGraph::endEdges(const VertexDescriptor& source)\n+const\n+2233 {\n+2234 return ConstEdgeIterator(graph_.endEdges(source));\n+2235 }\n+2236\n+2237 template\n+2238 template\n+2239 PropertiesGraph::VertexIteratorT\n+2240 ::VertexIteratorT(const Father& iter,\n+2241 C* graph)\n+2242 : Father(iter), graph_(graph)\n+2243 {}\n+2244\n+2245 template\n+2246 template\n+2247 PropertiesGraph::VertexIteratorT\n+2248 ::VertexIteratorT(const Father& iter)\n+2249 : Father(iter)\n+2250 {}\n+2251\n+2252 template\n+2253 template\n+2254 template\n+2255 PropertiesGraph::VertexIteratorT\n+2256 ::VertexIteratorT(const VertexIteratorT& other)\n+2257 : Father(other), graph_(other.graph_)\n+2258 {}\n+2259\n+2260 template\n+2261 template\n+2262 inline typename std::conditional::type>::value,\n+2263 V&, const V&>::type\n+2264 PropertiesGraph::VertexIteratorT::properties() const\n+2265 {\n+2266 return graph_->getVertexProperties(Father::operator*());\n+2267 }\n+2268\n+2269 template\n+2270 template\n+2271 inline typename PropertiesGraph::template EdgeIteratorT\n+2272 PropertiesGraph::VertexIteratorT::begin() const\n+2273 {\n+2274 return graph_->beginEdges(Father::operator*());\n+2275 }\n+2276\n+2277 template\n+2278 template\n+2279 inline typename PropertiesGraph::template EdgeIteratorT\n+2280 PropertiesGraph::VertexIteratorT::end() const\n+2281 {\n+2282 return graph_->endEdges(Father::operator*());\n+2283 }\n+2284\n+2285 template\n+2286 inline typename PropertiesGraph::VertexIterator\n+PropertiesGraph::begin()\n+2287 {\n+2288 return VertexIterator(graph_.begin(), this);\n+2289 }\n+2290\n+2291 template\n+2292 inline typename PropertiesGraph::VertexIterator\n+PropertiesGraph::end()\n+2293 {\n+2294 return VertexIterator(graph_.end());\n+2295 }\n+2296\n+2297\n+2298 template\n+2299 inline typename PropertiesGraph::ConstVertexIterator\n+PropertiesGraph::begin() const\n+2300 {\n+2301 return ConstVertexIterator(graph_.begin(), this);\n+2302 }\n+2303\n+2304 template\n+2305 inline typename PropertiesGraph::ConstVertexIterator\n+PropertiesGraph::end() const\n+2306 {\n+2307 return ConstVertexIterator(graph_.end());\n+2308 }\n+2309\n+2310 template\n+2311 inline V& PropertiesGraph::getVertexProperties(const\n+VertexDescriptor& vertex)\n+2312 {\n+2313 return vertexProperties_[vmap_[vertex]];\n+2314 }\n+2315\n+2316 template\n+2317 inline const V& PropertiesGraph::getVertexProperties(const\n+VertexDescriptor& vertex) const\n+2318 {\n+2319 return vertexProperties_[vmap_[vertex]];\n+2320 }\n+2321\n+2322 template\n+2323 inline E& PropertiesGraph::getEdgeProperties(const\n+EdgeDescriptor& edge)\n+2324 {\n+2325 return edgeProperties_[emap_[edge]];\n+2326 }\n+2327\n+2328 template\n+2329 inline const E& PropertiesGraph::getEdgeProperties(const\n+EdgeDescriptor& edge) const\n+2330 {\n+2331 return edgeProperties_[emap_[edge]];\n+2332 }\n+2333\n+2334 template\n+2335 inline E& PropertiesGraph::getEdgeProperties(const\n+VertexDescriptor& source,\n+2336 const VertexDescriptor& target)\n+2337 {\n+2338 return getEdgeProperties(graph_.findEdge(source,target));\n+2339 }\n+2340\n+2341 template\n+2342 inline const E& PropertiesGraph::getEdgeProperties(const\n+VertexDescriptor& source,\n+2343 const VertexDescriptor& target) const\n+2344 {\n+2345 return getEdgeProperties(graph_.findEdge(source,target));\n+2346 }\n+2347\n+2348 template\n+2349 inline const G& PropertiesGraph::graph() const\n+2350 {\n+2351 return graph_;\n+2352 }\n+2353\n+2354 template\n+2355 inline std::size_t PropertiesGraph::noVertices() const\n+2356 {\n+2357 return graph_.noVertices();\n+2358 }\n+2359\n+2360\n+2361 template\n+2362 inline typename PropertiesGraph::VertexDescriptor\n+PropertiesGraph::maxVertex() const\n+2363 {\n+2364 return graph_.maxVertex();\n+2365 }\n+2366\n+2367 template\n+2368 PropertiesGraph::PropertiesGraph(Graph& graph, const VM&\n+vmap, const EM& emap)\n+2369 : graph_(graph), vmap_(vmap), vertexProperties_(vmap_[graph_.maxVertex\n+()+1], V()),\n+2370 emap_(emap), edgeProperties_(graph_.noEdges(), E())\n+2371 {}\n+2372\n+2373 template\n+2374 inline int _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(const G& graph, const typename G::\n+VertexDescriptor& vertex,\n+2375 V& visitor)\n+2376 {\n+2377 typedef typename G::ConstEdgeIterator iterator;\n+2378 const iterator end = graph.endEdges(vertex);\n+2379 int noNeighbours=0;\n+2380 for(iterator edge = graph.beginEdges(vertex); edge != end; ++edge,\n+++noNeighbours)\n+2381 visitor(edge);\n+2382 return noNeighbours;\n+2383 }\n+2384\n+2385#endif // DOXYGEN\n+2386\n+2388 }\n+2389}\n+2390#endif\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs\n+int visitNeighbours(const G &graph, const typename G::VertexDescriptor &vertex,\n+V &visitor)\n+Visit all neighbour vertices of a vertex in a graph.\n _\bs_\bt_\bd\n STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-A class setting up standard communication for a two-valued attribute set with\n-owner/overlap/copy sema...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-Class providing information about the mapping of the vertices onto aggregates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:43\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:16\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n-void operator++()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:57\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const typename G::ConstEdgeIterator &edge)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bn_\bu_\bm_\bb_\be_\br_\b_\n-Vertex number_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:35\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+The (undirected) graph of a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+MatrixGraph(Matrix &matrix)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd\n+VertexIterator end()\n+Get an iterator over the vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx\n+VertexDescriptor maxVertex() const\n+Get the maximal vertex descriptor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+M Matrix\n+The type of the matrix we are a graph for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+ConstVertexIterator begin() const\n+Get an iterator over the vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+VertexIteratorT< const MatrixGraph< Matrix > > ConstVertexIterator\n+The constant vertex iterator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:308\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\b~_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+~MatrixGraph()\n+Destructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+std::ptrdiff_t EdgeDescriptor\n+The edge descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:80\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd_\bE_\bd_\bg_\be_\bs\n+ConstEdgeIterator endEdges(const VertexDescriptor &source) const\n+Get an iterator over the edges starting at a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+M::size_type VertexDescriptor\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n+const Matrix & matrix() const\n+Get the underlying matrix.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\bM_\ba_\bt_\br_\bi_\bx\n+@ mutableMatrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:86\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs\n+ConstEdgeIterator beginEdges(const VertexDescriptor &source) const\n+Get an iterator over the edges starting at a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd\n+ConstVertexIterator end() const\n+Get an iterator over the vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+EdgeIteratorT< const MatrixGraph< Matrix > > ConstEdgeIterator\n+The constant edge iterator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:298\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs\n+EdgeIterator beginEdges(const VertexDescriptor &source)\n+Get an iterator over the edges starting at a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n+std::size_t noVertices() const\n+Get the number of vertices in the graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bf_\bi_\bn_\bd_\bE_\bd_\bg_\be\n+EdgeDescriptor findEdge(const VertexDescriptor &source, const VertexDescriptor\n+&target) const\n+Find the descriptor of an edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bW_\be_\bi_\bg_\bh_\bt\n+M::block_type Weight\n+The type of the weights.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:66\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bM_\ba_\bt_\br_\bi_\bx\n+std::remove_const< M >::type MutableMatrix\n+The mutable type of the matrix we are a graph for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+EdgeIteratorT< MatrixGraph< Matrix > > EdgeIterator\n+The mutable edge iterator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:303\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+VertexIteratorT< MatrixGraph< Matrix > > VertexIterator\n+The mutable vertex iterator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:313\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd_\bE_\bd_\bg_\be_\bs\n+EdgeIterator endEdges(const VertexDescriptor &source)\n+Get an iterator over the edges starting at a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bE_\bd_\bg_\be_\bs\n+std::size_t noEdges() const\n+Get the number of edges in the graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n+Matrix & matrix()\n+Get the underlying matrix.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+VertexIterator begin()\n+Get an iterator over the vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+Iterator over all edges starting from a vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be\n+std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::\n+value &&C::mutableMatrix, typenameM::block_type, consttypenameM::block_type >::\n+type WeightType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:156\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+EdgeIteratorT(const VertexDescriptor &source, const ColIterator &block, const\n+ColIterator &end, const EdgeDescriptor &edge)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be\n+@ isMutable\n+whether C is mutable.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:112\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bt_\ba_\br_\bg_\be_\bt\n+VertexDescriptor target() const\n+The index of the target vertex of the current edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+EdgeIteratorT< C > & operator++()\n+preincrement operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const EdgeIteratorT< const typename std::remove_const< C >::\n+type > &other) const\n+Inequality operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const EdgeIteratorT< const typename std::remove_const< C >::\n+type > &other) const\n+Equality operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+EdgeIteratorT(const EdgeIteratorT< C1 > &other)\n+Copy Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const EdgeIteratorT< typename std::remove_const< C >::type >\n+&other) const\n+Inequality operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bw_\be_\bi_\bg_\bh_\bt\n+WeightType & weight() const\n+Access the edge weight.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bs_\bo_\bu_\br_\bc_\be\n+VertexDescriptor source() const\n+The index of the source vertex of the current edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+std::conditional< isMutable &&C::mutableMatrix, typenameMatrix::row_type::\n+Iterator, typenameMatrix::row_type::ConstIterator >::type ColIterator\n+The column iterator of the matrix we use.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n+const std::remove_const< C >::type ConstContainer\n+The constant type of the container type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:105\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const EdgeIteratorT< typename std::remove_const< C >::type >\n+&other) const\n+Equality operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+EdgeIteratorT(const ColIterator &block)\n+Constructor for the end iterator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bW_\be_\bi_\bg_\bh_\bt\n+std::conditional< isMutable &&C::mutableMatrix, typenameM::block_type,\n+consttypenameM::block_type >::type Weight\n+The matrix block type we use as weights.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:127\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+const EdgeDescriptor & operator*() const\n+Get the edge descriptor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n+const EdgeDescriptor * operator->() const\n+Get the edge descriptor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n+std::remove_const< C >::type MutableContainer\n+The mutable type of the container type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:101\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+The vertex iterator type of the graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:209\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+EdgeIteratorT< C > begin() const\n+Get an iterator over all edges starting at the current vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+const VertexDescriptor & operator*() const\n+Get the descriptor of the current vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bw_\be_\bi_\bg_\bh_\bt\n+WeightType & weight() const\n+Access the weight of the vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+VertexIteratorT(C *graph, const VertexDescriptor ¤t)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be\n+std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::\n+value &&C::mutableMatrix, typenameM::block_type, consttypenameM::block_type >::\n+type WeightType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:266\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+VertexIteratorT(const VertexIteratorT< MutableContainer > &other)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n+std::remove_const< C >::type MutableContainer\n+The mutable type of the container type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:214\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const VertexIteratorT< MutableContainer > &other) const\n+Inequality operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be\n+@ isMutable\n+whether C is mutable.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:225\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const VertexIteratorT< MutableContainer > &other) const\n+Equality operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n+const std::remove_const< C >::type ConstContainer\n+The constant type of the container type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:218\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+VertexIteratorT< C > & operator++()\n+Move to the next vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\be_\bn_\bd\n+EdgeIteratorT< C > end() const\n+Get an iterator over all edges starting at the current vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const VertexIteratorT< ConstContainer > &other) const\n+Equality operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const VertexIteratorT< ConstContainer > &other) const\n+Inequality operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+VertexIteratorT(const VertexDescriptor ¤t)\n+Constructor for the end iterator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n+A subgraph of a graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:443\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bf_\bi_\bn_\bd_\bE_\bd_\bg_\be\n+EdgeDescriptor findEdge(const VertexDescriptor &source, const VertexDescriptor\n+&target) const\n+Find the descriptor of an edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx\n+VertexDescriptor maxVertex() const\n+Get the maximal vertex descriptor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+EdgeIndexMap getEdgeIndexMap()\n+Get an edge index map for the graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bE_\bd_\bg_\be_\bs\n+std::size_t noEdges() const\n+Get the number of edges in the graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd_\bE_\bd_\bg_\be_\bs\n+ConstEdgeIterator endEdges(const VertexDescriptor &source) const\n+Get an iterator over the edges starting at a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd\n+ConstVertexIterator end() const\n+Get an iterator over the vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs\n+ConstEdgeIterator beginEdges(const VertexDescriptor &source) const\n+Get an iterator over the edges starting at a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n+std::size_t noVertices() const\n+Get the number of vertices in the graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd\n+T Excluded\n+Random access container providing information about which vertices are\n+excluded.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:454\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\b~_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n+~SubGraph()\n+Destructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+EdgeIterator ConstEdgeIterator\n+The constant edge iterator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:618\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bG_\br_\ba_\bp_\bh\n+G Graph\n+The type of the graph we are a sub graph for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:448\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+VertexIterator ConstVertexIterator\n+The constant vertex iterator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:623\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n+SubGraph(const Graph &graph, const T &excluded)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+ConstVertexIterator begin() const\n+Get an iterator over the vertices.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+Graph::VertexDescriptor VertexDescriptor\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:459\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+VertexDescriptor * EdgeDescriptor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:461\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+An index map for mapping the edges to indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:470\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+EdgeIndexMap(const EdgeIndexMap &emap)\n+Protect copy construction.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:479\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+ReadablePropertyMapTag Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:472\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+EdgeIndexMap(const EdgeDescriptor &firstEdge)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:474\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+std::size_t operator[](const EdgeDescriptor &edge) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:483\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+The edge iterator of the graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:505\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+const EdgeDescriptor & dereference() const\n+The descriptor of the current edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+EdgeIterator(const EdgeDescriptor &edge)\n+Constructor for the end iterator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+bool equals(const EdgeIterator &other) const\n+Equality operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be\n+EdgeIterator & advance(std::ptrdiff_t n)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n+EdgeIterator & increment()\n+Preincrement operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bt_\ba_\br_\bg_\be_\bt\n+const VertexDescriptor & target() const\n+The index of the target vertex of the current edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bo_\bu_\br_\bc_\be\n+const VertexDescriptor & source() const\n+The index of the source vertex of the current edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n+EdgeIterator & decrement()\n+Preincrement operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n+std::ptrdiff_t distanceTo(const EdgeIterator &other) const\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+EdgeIterator(const VertexDescriptor &source, const EdgeDescriptor &edge)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+The vertex iterator of the graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+VertexIterator(const VertexDescriptor ¤t)\n+Constructor for end iterator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n+VertexIterator & increment()\n+Preincrement operator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+EdgeIterator begin() const\n+Get an iterator over all edges starting at the current vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+bool equals(const VertexIterator &other) const\n+Equality iterator.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+VertexIterator(const SubGraph< G, T > *graph, const VertexDescriptor ¤t,\n+const VertexDescriptor &end)\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n+EdgeIterator end() const\n+Get an iterator over all edges starting at the current vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+const VertexDescriptor & dereference() const\n+Get the descriptor of the current vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+Attaches properties to the vertices of a graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:723\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\br_\ba_\bp_\bh\n+const Graph & graph() const\n+Get the graph the properties are attached to.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Graph::ConstEdgeIterator ConstEdgeIterator\n+The type of the constant edge iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:766\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+VertexProperties & getVertexProperties(const VertexDescriptor &vertex)\n+Get the properties associated with a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bE_\bd_\bg_\be_\bs\n+std::size_t noEdges() const\n+Get the number of edges in the graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+Graph::EdgeDescriptor EdgeDescriptor\n+The edge descritor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:738\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd_\bE_\bd_\bg_\be_\bs\n+ConstEdgeIterator endEdges(const VertexDescriptor &source) const\n+Get the mutable edge iterator over edges starting at a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+Graph::VertexDescriptor VertexDescriptor\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:733\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bG_\br_\ba_\bp_\bh\n+G Graph\n+The graph we attach properties to.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:728\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp\n+VM VertexMap\n+The type of the map for converting the VertexDescriptor to std::size_t.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:756\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd_\bE_\bd_\bg_\be_\bs\n+EdgeIterator endEdges(const VertexDescriptor &source)\n+Get the mutable edge iterator over edges starting at a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs\n+EdgeIterator beginEdges(const VertexDescriptor &source)\n+Get the mutable edge iterator over edges starting at a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+VP VertexProperties\n+The type of the properties of the vertices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:743\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n+std::size_t noVertices() const\n+Get the number of vertices in the graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs\n+ConstEdgeIterator beginEdges(const VertexDescriptor &source) const\n+Get the mutable edge iterator over edges starting at a vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx\n+VertexDescriptor maxVertex() const\n+Get the maximal vertex descriptor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Graph::EdgeIterator EdgeIterator\n+The type of the mutable edge iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:761\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:803\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::\n+value, typenameGraph::EdgeIterator, typenameGraph::ConstEdgeIterator >::type\n+EdgeIterator\n+The class of the edge iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:823\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::\n+value, VertexProperties &, constVertexProperties & >::type properties() const\n+Get the properties of the current Vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\be_\bn_\bd\n+EdgeIterator end() const\n+Get an iterator over the edges starting from the current vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bF_\ba_\bt_\bh_\be_\br\n+std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::\n+value, typenameGraph::VertexIterator, typenameGraph::ConstVertexIterator >::\n+type Father\n+The father class.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:814\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+EdgeIterator begin() const\n+Get an iterator over the edges starting from the current vertex.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+Attaches properties to the edges and vertices of a graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:978\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n+std::size_t noVertices() const\n+Get the number of vertices in the graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+Graph::EdgeDescriptor EdgeDescriptor\n+The edge descritor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:993\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+const EdgeProperties & getEdgeProperties(const VertexDescriptor &source, const\n+VertexDescriptor &target) const\n+Get the properties associated with a edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+const EdgeProperties & getEdgeProperties(const EdgeDescriptor &edge) const\n+Get the properties associated with a edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\br_\ba_\bp_\bh\n+const Graph & graph() const\n+Get the graph the properties are attached to.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx\n+VertexDescriptor maxVertex() const\n+Get the maximal vertex descriptor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bG_\br_\ba_\bp_\bh\n+G Graph\n+The graph we attach properties to.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:983\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bM_\ba_\bp\n+EM EdgeMap\n+The type of the map for converting the EdgeDescriptor to std::size_t.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1030\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp\n+VM VertexMap\n+The type of the map for converting the VertexDescriptor to std::size_t.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1011\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+VP VertexProperties\n+The type of the properties of the vertices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:998\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bE_\bd_\bg_\be_\bs\n+std::size_t noEdges() const\n+Get the number of edges in the graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+EP EdgeProperties\n+The type of the properties of the edges;.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1016\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+EdgeProperties & getEdgeProperties(const VertexDescriptor &source, const\n+VertexDescriptor &target)\n+Get the properties associated with a edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+EdgeProperties & getEdgeProperties(const EdgeDescriptor &edge)\n+Get the properties associated with a edge.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n+Graph::VertexDescriptor VertexDescriptor\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:988\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+PropertiesGraph(Graph &graph, const VertexMap &vmap=VertexMap(), const EdgeMap\n+&emap=EdgeMap())\n+Constructor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1038\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bF_\ba_\bt_\bh_\be_\br\n+std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::\n+value, typenameGraph::EdgeIterator, typenameGraph::ConstEdgeIterator >::type\n+Father\n+The father class.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1050\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1140\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bF_\ba_\bt_\bh_\be_\br\n+std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::\n+value, typenameGraph::VertexIterator, typenameGraph::ConstVertexIterator >::\n+type Father\n+The father class.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1151\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+Wrapper to access the internal edge properties of a graph via operator[]()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1361\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+GraphVertexPropertiesSelector(G &g)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1380\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+VertexProperties & operator[](const Vertex &vertex) const\n+Get the properties associated to a vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh\n+G Graph\n+The type of the graph with internal properties.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1366\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+G::VertexProperties VertexProperties\n+The type of the vertex properties.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1370\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+GraphVertexPropertiesSelector()\n+Default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1386\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+G::VertexDescriptor Vertex\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1374\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+Wrapper to access the internal vertex properties of a graph via operator[]()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1409\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+EdgeProperties & operator[](const Edge &edge) const\n+Get the properties associated to a vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1442\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+G::EdgeProperties EdgeProperties\n+The type of the vertex properties.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1418\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bE_\bd_\bg_\be\n+G::EdgeDescriptor Edge\n+The edge descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1422\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+GraphEdgePropertiesSelector()\n+Default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1434\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh\n+G Graph\n+The type of the graph with internal properties.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1414\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+GraphEdgePropertiesSelector(G &g)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1428\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00092.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00092.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: transfer.hh File Reference\n+dune-istl: twolevelmethod.hh File Reference\n \n \n \n \n \n \n \n@@ -72,47 +72,51 @@\n
  • dune
  • istl
  • paamg
  • \n
    \n \n \n
    \n \n-

    Prolongation and restriction for amg. \n+

    Algebraic twolevel methods. \n More...

    \n-
    #include <dune/istl/bvector.hh>
    \n-#include <dune/istl/matrixredistribute.hh>
    \n-#include <dune/istl/paamg/pinfo.hh>
    \n-#include <dune/istl/owneroverlapcopy.hh>
    \n-#include <dune/istl/paamg/aggregates.hh>
    \n-#include <dune/common/exceptions.hh>
    \n+
    #include <tuple>
    \n+#include <dune/istl/operators.hh>
    \n+#include "amg.hh"
    \n+#include "galerkin.hh"
    \n+#include <dune/istl/solver.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n \n-\n+\n+\n \n-\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::Amg::Transfer< V1, V2, T >
    class  Dune::Amg::LevelTransferPolicy< FO, CO >
     Abstract base class for transfer between levels and creation of the coarse level system. More...
     
    class  Dune::Amg::Transfer< V, V1, SequentialInformation >
    class  Dune::Amg::AggregationLevelTransferPolicy< O, C >
     A LeveTransferPolicy that used aggregation to construct the coarse level system. More...
     
    class  Dune::Amg::Transfer< V, V1, OwnerOverlapCopyCommunication< T1, T2 > >
    class  Dune::Amg::OneStepAMGCoarseSolverPolicy< O, S, C >
     A policy class for solving the coarse level system using one step of AMG. More...
     
    class  Dune::Amg::TwoLevelMethod< FO, CSP, S >
     
    \n \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n

    Detailed Description

    \n-

    Prolongation and restriction for amg.

    \n+

    Algebraic twolevel methods.

    \n
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -2,36 +2,43 @@\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-transfer.hh File Reference\n+twolevelmethod.hh File Reference\n _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Prolongation and restriction for amg. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n-#include \n+Algebraic twolevel methods. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n+#include \"_\ba_\bm_\bg_\b._\bh_\bh\"\n+#include \"_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\"\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b1_\b,_\b _\bV_\b2_\b,_\b _\bT_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bF_\bO_\b,_\b _\bC_\bO_\b _\b>\n+\u00a0 Abstract base class for transfer between levels and creation of the\n+ coarse level system. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bO_\b,_\b _\bC_\b _\b>\n+\u00a0 A LeveTransferPolicy that used aggregation to construct the coarse\n+ level system. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bO_\b,_\b _\bS_\b,_\b _\bC_\b _\b>\n+\u00a0 A policy class for solving the coarse level system using one step of\n+ _\bA_\bM_\bG. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b<_\b _\bF_\bO_\b,_\b _\bC_\bS_\bP_\b,_\b _\bS_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Prolongation and restriction for amg.\n+Algebraic twolevel methods.\n Author\n Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00092_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00092_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: transfer.hh Source File\n+dune-istl: twolevelmethod.hh Source File\n \n \n \n \n \n \n \n@@ -74,246 +74,478 @@\n \n
    \n \n
    \n
    \n
    \n-
    transfer.hh
    \n+
    twolevelmethod.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMGTRANSFER_HH
    \n-
    6#define DUNE_AMGTRANSFER_HH
    \n+
    5#ifndef DUNE_ISTL_TWOLEVELMETHOD_HH
    \n+
    6#define DUNE_ISTL_TWOLEVELMETHOD_HH
    \n
    7
    \n-\n-\n-\n-\n-\n-
    13#include <dune/common/exceptions.hh>
    \n+
    8#include <tuple>
    \n+
    9
    \n+\n+
    11#include"amg.hh"
    \n+
    12#include"galerkin.hh"
    \n+
    13#include<dune/istl/solver.hh>
    \n
    14
    \n-
    15namespace Dune
    \n-
    16{
    \n-
    17 namespace Amg
    \n-
    18 {
    \n-
    19
    \n-
    30 template<class V1, class V2, class T>
    \n-
    \n-\n-
    32 {
    \n-
    33
    \n-
    34 public:
    \n-
    35 typedef V1 Vertex;
    \n-
    36 typedef V2 Vector;
    \n-
    37
    \n-
    38 template<typename T1, typename R>
    \n-
    39 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n-
    40 Vector& fineRedist,T1 damp, R& redistributor=R());
    \n-
    41
    \n-
    42 template<typename T1, typename R>
    \n-
    43 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n-
    44 T1 damp);
    \n-
    45
    \n-
    46 static void restrictVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, const Vector& fine,
    \n-
    47 T& comm);
    \n-
    48 };
    \n-
    \n-
    49
    \n-
    50 template<class V,class V1>
    \n-
    \n-\n-
    52 {
    \n-
    53 public:
    \n-
    54 typedef V Vertex;
    \n-
    55 typedef V1 Vector;
    \n-\n-
    57 template<typename T1>
    \n-
    58 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n-
    59 Vector& fineRedist, T1 damp,
    \n-\n-
    61 const Redist& redist=Redist());
    \n-
    62 template<typename T1>
    \n-
    63 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n-
    64 T1 damp,
    \n-\n-
    66
    \n-
    67
    \n-
    68 static void restrictVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, const Vector& fine,
    \n-
    69 const SequentialInformation& comm);
    \n-
    70 };
    \n-
    \n-
    71
    \n-
    72#if HAVE_MPI
    \n-
    73
    \n-
    74 template<class V,class V1, class T1, class T2>
    \n-
    \n-\n-
    76 {
    \n-
    77 public:
    \n-
    78 typedef V Vertex;
    \n-
    79 typedef V1 Vector;
    \n-\n-
    81 template<typename T3>
    \n-
    82 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n-
    83 Vector& fineRedist, T3 damp, OwnerOverlapCopyCommunication<T1,T2>& comm,
    \n-
    84 const Redist& redist);
    \n-
    85 template<typename T3>
    \n-
    86 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n-\n-
    88
    \n-
    89 static void restrictVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, const Vector& fine,
    \n-\n-
    91 };
    \n-
    \n-
    92
    \n-
    93#endif
    \n-
    94
    \n-
    95 template<class V, class V1>
    \n-
    96 template<typename T>
    \n-
    97 inline void
    \n-
    \n-\n-
    99 Vector& coarse, Vector& fine,
    \n-
    100 [[maybe_unused]] Vector& fineRedist,
    \n-
    101 T damp,
    \n-
    102 [[maybe_unused]] const SequentialInformation& comm,
    \n-
    103 [[maybe_unused]] const Redist& redist)
    \n-
    104 {
    \n-
    105 prolongateVector(aggregates, coarse, fine, damp);
    \n-
    106 }
    \n-
    \n-
    107 template<class V, class V1>
    \n-
    108 template<typename T>
    \n-
    109 inline void
    \n-
    \n-\n-
    111 Vector& coarse, Vector& fine,
    \n-
    112 T damp,
    \n-
    113 [[maybe_unused]] const SequentialInformation& comm)
    \n-
    114 {
    \n-
    115 typedef typename Vector::iterator Iterator;
    \n-
    116
    \n-
    117 Iterator end = coarse.end();
    \n-
    118 Iterator begin= coarse.begin();
    \n-
    119 for(; begin!=end; ++begin)
    \n-
    120 *begin*=damp;
    \n-
    121 end=fine.end();
    \n-
    122 begin=fine.begin();
    \n-
    123
    \n-
    124 for(Iterator block=begin; block != end; ++block) {
    \n-
    125 std::ptrdiff_t index=block-begin;
    \n-
    126 const Vertex& vertex = aggregates[index];
    \n-\n-
    128 *block += coarse[aggregates[index]];
    \n-
    129 }
    \n-
    130 }
    \n-
    \n-
    131
    \n-
    132 template<class V, class V1>
    \n-
    133 inline void
    \n-
    \n-\n-
    135 Vector& coarse,
    \n-
    136 const Vector& fine,
    \n-
    137 [[maybe_unused]] const SequentialInformation& comm)
    \n-
    138 {
    \n-
    139 // Set coarse vector to zero
    \n-
    140 coarse=0;
    \n-
    141
    \n-
    142 typedef typename Vector::const_iterator Iterator;
    \n-
    143 Iterator end = fine.end();
    \n-
    144 Iterator begin=fine.begin();
    \n-
    145
    \n-
    146 for(Iterator block=begin; block != end; ++block) {
    \n-
    147 const Vertex& vertex = aggregates[block-begin];
    \n-\n-
    149 coarse[vertex] += *block;
    \n-
    150 }
    \n-
    151 }
    \n-
    \n-
    152
    \n-
    153#if HAVE_MPI
    \n-
    154 template<class V, class V1, class T1, class T2>
    \n-
    155 template<typename T3>
    \n-
    \n-
    156 inline void Transfer<V,V1,OwnerOverlapCopyCommunication<T1,T2> >::prolongateVector(const AggregatesMap<Vertex>& aggregates,
    \n-
    157 Vector& coarse, Vector& fine,
    \n-
    158 Vector& fineRedist, T3 damp,
    \n-\n-
    160 const Redist& redist)
    \n-
    161 {
    \n-
    162 if(fineRedist.size()>0)
    \n-
    163 // we operated on the coarse level
    \n-
    164 Transfer<V,V1,SequentialInformation>::prolongateVector(aggregates, coarse, fineRedist, damp);
    \n-
    165
    \n-
    166 // TODO This could be accomplished with one communication, too!
    \n-
    167 redist.redistributeBackward(fine, fineRedist);
    \n-
    168 comm.copyOwnerToAll(fine,fine);
    \n-
    169 }
    \n-
    \n-
    170
    \n-
    171 template<class V, class V1, class T1, class T2>
    \n-
    172 template<typename T3>
    \n-
    \n-\n-
    174 const AggregatesMap<Vertex>& aggregates,
    \n-
    175 Vector& coarse, Vector& fine, T3 damp,
    \n-
    176 [[maybe_unused]] OwnerOverlapCopyCommunication<T1,T2>& comm)
    \n-
    177 {
    \n-
    178 Transfer<V,V1,SequentialInformation>::prolongateVector(aggregates, coarse, fine, damp);
    \n-
    179 }
    \n-
    \n-
    180 template<class V, class V1, class T1, class T2>
    \n-
    \n-
    181 inline void Transfer<V,V1,OwnerOverlapCopyCommunication<T1,T2> >::restrictVector(const AggregatesMap<Vertex>& aggregates,
    \n-
    182 Vector& coarse, const Vector& fine,
    \n-\n-
    184 {
    \n-\n-
    186 // We need this here to avoid it in the smoothers on the coarse level.
    \n-
    187 // There (in the preconditioner d is const.
    \n-
    188 comm.project(coarse);
    \n-
    189 }
    \n-
    \n-
    190#endif
    \n-
    192 } // namspace Amg
    \n-
    193} // namspace Dune
    \n-
    194#endif
    \n-
    Provides classes for the Coloring process of AMG.
    \n-\n-
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n-
    Functionality for redistributing a sparse matrix.
    \n-
    const_iterator end() const
    Definition aggregates.hh:730
    \n+
    22namespace Dune
    \n+
    23{
    \n+
    24namespace Amg
    \n+
    25{
    \n+
    26
    \n+
    36template<class FO, class CO>
    \n+
    \n+\n+
    38{
    \n+
    39public:
    \n+
    44 typedef FO FineOperatorType;
    \n+
    48 typedef typename FineOperatorType::range_type FineRangeType;
    \n+
    52 typedef typename FineOperatorType::domain_type FineDomainType;
    \n+\n+
    61 typedef typename CoarseOperatorType::range_type CoarseRangeType;
    \n+
    65 typedef typename CoarseOperatorType::domain_type CoarseDomainType;
    \n+
    \n+
    70 std::shared_ptr<CoarseOperatorType>& getCoarseLevelOperator()
    \n+
    71 {
    \n+
    72 return operator_;
    \n+
    73 }
    \n+
    \n+
    \n+\n+
    79 {
    \n+
    80 return rhs_;
    \n+
    81 }
    \n+
    \n+
    82
    \n+
    \n+\n+
    88 {
    \n+
    89 return lhs_;
    \n+
    90 }
    \n+
    \n+
    100 virtual void moveToCoarseLevel(const FineRangeType& fineRhs)=0;
    \n+
    110 virtual void moveToFineLevel(FineDomainType& fineLhs)=0;
    \n+
    118 virtual void createCoarseLevelSystem(const FineOperatorType& fineOperator)=0;
    \n+
    119
    \n+
    121 virtual LevelTransferPolicy* clone() const =0;
    \n+
    122
    \n+\n+
    125
    \n+
    126 protected:
    \n+\n+\n+
    132 std::shared_ptr<CoarseOperatorType> operator_;
    \n+
    133};
    \n+
    \n+
    134
    \n+
    140template<class O, class C>
    \n+
    \n+\n+
    142 : public LevelTransferPolicy<O,O>
    \n+
    143{
    \n+\n+
    145public:
    \n+\n+
    147 typedef C Criterion;
    \n+\n+
    149
    \n+
    \n+\n+
    151 : criterion_(crit)
    \n+
    152 {}
    \n+
    \n+
    153
    \n+
    \n+
    154 void createCoarseLevelSystem(const O& fineOperator)
    \n+
    155 {
    \n+
    156 prolongDamp_ = criterion_.getProlongationDampingFactor();
    \n+\n+\n+\n+
    160 Dune::Amg::EdgeProperties,Dune::IdentityMap,Dune::IdentityMap> PropertiesGraph;
    \n+
    161 MatrixGraph mg(fineOperator.getmat());
    \n+
    162 PropertiesGraph pg(mg,Dune::IdentityMap(),Dune::IdentityMap());
    \n+
    163 typedef NegateSet<typename ParallelInformation::OwnerSet> OverlapFlags;
    \n+
    164
    \n+
    165 aggregatesMap_ = std::make_shared<AggregatesMap>(pg.maxVertex()+1);
    \n+
    166
    \n+
    167 int noAggregates, isoAggregates, oneAggregates, skippedAggregates;
    \n+
    168
    \n+
    169 std::tie(noAggregates, isoAggregates, oneAggregates, skippedAggregates) =
    \n+
    170 aggregatesMap_->buildAggregates(fineOperator.getmat(), pg, criterion_, true);
    \n+
    171 std::cout<<"no aggregates="<<noAggregates<<" iso="<<isoAggregates<<" one="<<oneAggregates<<" skipped="<<skippedAggregates<<std::endl;
    \n+
    172 // misuse coarsener to renumber aggregates
    \n+\n+
    174 typedef std::vector<bool>::iterator Iterator;
    \n+
    175 typedef Dune::IteratorPropertyMap<Iterator, Dune::IdentityMap> VisitedMap;
    \n+
    176 std::vector<bool> excluded(fineOperator.getmat().N(), false);
    \n+
    177 VisitedMap vm(excluded.begin(), Dune::IdentityMap());
    \n+\n+
    179 std::size_t aggregates = renumberer.coarsen(pinfo, pg, vm,
    \n+
    180 *aggregatesMap_, pinfo,
    \n+
    181 noAggregates);
    \n+
    182 std::vector<bool>& visited=excluded;
    \n+
    183
    \n+
    184 typedef std::vector<bool>::iterator Iterator;
    \n+
    185
    \n+
    186 for(Iterator iter= visited.begin(), end=visited.end();
    \n+
    187 iter != end; ++iter)
    \n+
    188 *iter=false;
    \n+
    189 matrix_.reset(productBuilder.build(mg, vm,
    \n+\n+
    191 *aggregatesMap_,
    \n+
    192 aggregates,
    \n+
    193 OverlapFlags()));
    \n+
    194 productBuilder.calculate(fineOperator.getmat(), *aggregatesMap_, *matrix_, pinfo, OverlapFlags());
    \n+
    195 this->lhs_.resize(this->matrix_->M());
    \n+
    196 this->rhs_.resize(this->matrix_->N());
    \n+
    197 this->operator_ = std::make_shared<O>(*matrix_);
    \n+
    198 }
    \n+
    \n+
    199
    \n+
    \n+
    200 void moveToCoarseLevel(const typename FatherType::FineRangeType& fineRhs)
    \n+
    201 {
    \n+\n+
    203 ::restrictVector(*aggregatesMap_, this->rhs_, fineRhs, ParallelInformation());
    \n+
    204 this->lhs_=0;
    \n+
    205 }
    \n+
    \n+
    206
    \n+
    \n+\n+
    208 {
    \n+\n+
    210 ::prolongateVector(*aggregatesMap_, this->lhs_, fineLhs,
    \n+
    211 prolongDamp_, ParallelInformation());
    \n+
    212 }
    \n+
    \n+
    213
    \n+
    \n+\n+
    215 {
    \n+
    216 return new AggregationLevelTransferPolicy(*this);
    \n+
    217 }
    \n+
    \n+
    218
    \n+
    219private:
    \n+
    220 typename O::matrix_type::field_type prolongDamp_;
    \n+
    221 std::shared_ptr<AggregatesMap> aggregatesMap_;
    \n+
    222 Criterion criterion_;
    \n+
    223 std::shared_ptr<typename O::matrix_type> matrix_;
    \n+
    224};
    \n+
    \n+
    225
    \n+
    232template<class O, class S, class C>
    \n+
    \n+\n+
    234{
    \n+
    235public:
    \n+
    237 typedef O Operator;
    \n+
    239 typedef typename O::range_type X;
    \n+
    241 typedef C Criterion;
    \n+
    243 typedef S Smoother;
    \n+\n+\n+
    \n+\n+
    254 : smootherArgs_(args), criterion_(c)
    \n+
    255 {}
    \n+
    \n+
    \n+\n+
    258 : coarseOperator_(other.coarseOperator_), smootherArgs_(other.smootherArgs_),
    \n+
    259 criterion_(other.criterion_)
    \n+
    260 {}
    \n+
    \n+
    261private:
    \n+
    268 struct AMGInverseOperator : public InverseOperator<X,X>
    \n+
    269 {
    \n+
    270 AMGInverseOperator(const typename AMGType::Operator& op,
    \n+
    271 const Criterion& crit,
    \n+
    272 const typename AMGType::SmootherArgs& args)
    \n+
    273 : amg_(op, crit,args), first_(true)
    \n+
    274 {}
    \n+
    275
    \n+
    276 void apply(X& x, X& b, [[maybe_unused]] double reduction, [[maybe_unused]] InverseOperatorResult& res)
    \n+
    277 {
    \n+
    278 if(first_)
    \n+
    279 {
    \n+
    280 amg_.pre(x,b);
    \n+
    281 first_=false;
    \n+
    282 x_=x;
    \n+
    283 }
    \n+
    284 amg_.apply(x,b);
    \n+
    285 }
    \n+
    286
    \n+
    287 void apply(X& x, X& b, InverseOperatorResult& res)
    \n+
    288 {
    \n+
    289 return apply(x,b,1e-8,res);
    \n+
    290 }
    \n+
    291
    \n+
    293 virtual SolverCategory::Category category() const
    \n+
    294 {
    \n+
    295 return amg_.category();
    \n+
    296 }
    \n+
    297
    \n+
    298 ~AMGInverseOperator()
    \n+
    299 {
    \n+
    300 if(!first_)
    \n+
    301 amg_.post(x_);
    \n+
    302 }
    \n+
    303 AMGInverseOperator(const AMGInverseOperator& other)
    \n+
    304 : x_(other.x_), amg_(other.amg_), first_(other.first_)
    \n+
    305 {
    \n+
    306 }
    \n+
    307 private:
    \n+
    308 X x_;
    \n+
    309 AMGType amg_;
    \n+
    310 bool first_;
    \n+
    311 };
    \n+
    312
    \n+
    313public:
    \n+
    315 typedef AMGInverseOperator CoarseLevelSolver;
    \n+
    316
    \n+
    324 template<class P>
    \n+
    \n+\n+
    326 {
    \n+
    327 coarseOperator_=transferPolicy.getCoarseLevelOperator();
    \n+
    328 AMGInverseOperator* inv = new AMGInverseOperator(*coarseOperator_,
    \n+
    329 criterion_,
    \n+
    330 smootherArgs_);
    \n+
    331
    \n+
    332 return inv; //std::shared_ptr<InverseOperator<X,X> >(inv);
    \n+
    333
    \n+
    334 }
    \n+
    \n+
    335
    \n+
    336private:
    \n+
    338 std::shared_ptr<Operator> coarseOperator_;
    \n+
    340 SmootherArgs smootherArgs_;
    \n+
    342 Criterion criterion_;
    \n+
    343};
    \n+
    \n+
    344
    \n+
    350template<class FO, class CSP, class S>
    \n+
    \n+\n+
    352 public Preconditioner<typename FO::domain_type, typename FO::range_type>
    \n+
    353{
    \n+
    354public:
    \n+\n+
    358 typedef typename CoarseLevelSolverPolicy::CoarseLevelSolver CoarseLevelSolver;
    \n+\n+
    367 typedef typename FineOperatorType::range_type FineRangeType;
    \n+
    371 typedef typename FineOperatorType::domain_type FineDomainType;
    \n+
    376 typedef typename CSP::Operator CoarseOperatorType;
    \n+
    380 typedef typename CoarseOperatorType::range_type CoarseRangeType;
    \n+
    384 typedef typename CoarseOperatorType::domain_type CoarseDomainType;
    \n+
    388 typedef S SmootherType;
    \n+
    389
    \n+
    \n+\n+
    405 std::shared_ptr<SmootherType> smoother,
    \n+\n+
    407 CoarseOperatorType>& policy,
    \n+
    408 CoarseLevelSolverPolicy& coarsePolicy,
    \n+
    409 std::size_t preSteps=1, std::size_t postSteps=1)
    \n+
    410 : operator_(&op), smoother_(smoother),
    \n+
    411 preSteps_(preSteps), postSteps_(postSteps)
    \n+
    412 {
    \n+
    413 policy_ = policy.clone();
    \n+
    414 policy_->createCoarseLevelSystem(*operator_);
    \n+
    415 coarseSolver_=coarsePolicy.createCoarseLevelSolver(*policy_);
    \n+
    416 }
    \n+
    \n+
    417
    \n+
    \n+\n+
    419 : operator_(other.operator_), coarseSolver_(new CoarseLevelSolver(*other.coarseSolver_)),
    \n+
    420 smoother_(other.smoother_), policy_(other.policy_->clone()),
    \n+
    421 preSteps_(other.preSteps_), postSteps_(other.postSteps_)
    \n+
    422 {}
    \n+
    \n+
    423
    \n+
    \n+\n+
    425 {
    \n+
    426 // Each instance has its own policy.
    \n+
    427 delete policy_;
    \n+
    428 delete coarseSolver_;
    \n+
    429 }
    \n+
    \n+
    430
    \n+
    \n+\n+
    432 {
    \n+
    433 smoother_->pre(x,b);
    \n+
    434 }
    \n+
    \n+
    435
    \n+
    \n+
    436 void post([[maybe_unused]] FineDomainType& x)
    \n+
    437 {}
    \n+
    \n+
    438
    \n+
    \n+\n+
    440 {
    \n+
    441 FineDomainType u(v);
    \n+
    442 FineRangeType rhs(d);
    \n+
    443 LevelContext context;
    \n+\n+
    445 context.pinfo=&info;
    \n+
    446 context.lhs=&u;
    \n+
    447 context.update=&v;
    \n+
    448 context.smoother=smoother_;
    \n+
    449 context.rhs=&rhs;
    \n+
    450 context.matrix=operator_;
    \n+
    451 // Presmoothing
    \n+
    452 presmooth(context, preSteps_);
    \n+
    453 //Coarse grid correction
    \n+
    454 policy_->moveToCoarseLevel(*context.rhs);
    \n+\n+
    456 coarseSolver_->apply(policy_->getCoarseLevelLhs(), policy_->getCoarseLevelRhs(), res);
    \n+
    457 *context.lhs=0;
    \n+
    458 policy_->moveToFineLevel(*context.lhs);
    \n+
    459 *context.update += *context.lhs;
    \n+
    460 // Postsmoothing
    \n+
    461 postsmooth(context, postSteps_);
    \n+
    462
    \n+
    463 }
    \n+
    \n+
    464
    \n+
    \n+\n+
    467 {
    \n+\n+
    469 }
    \n+
    \n+
    470
    \n+
    471private:
    \n+
    475 struct LevelContext
    \n+
    476 {
    \n+
    478 typedef S SmootherType;
    \n+
    480 std::shared_ptr<SmootherType> smoother;
    \n+
    482 FineDomainType* lhs;
    \n+
    483 /*
    \n+
    484 * @brief The right hand side holding the current residual.
    \n+
    485 *
    \n+
    486 * This is passed to the smoother as the right hand side.
    \n+
    487 */
    \n+
    488 FineRangeType* rhs;
    \n+
    494 FineDomainType* update;
    \n+\n+
    502 const FineOperatorType* matrix;
    \n+
    503 };
    \n+
    504 const FineOperatorType* operator_;
    \n+
    506 CoarseLevelSolver* coarseSolver_;
    \n+
    508 std::shared_ptr<S> smoother_;
    \n+
    510 LevelTransferPolicy<FO,typename CSP::Operator>* policy_;
    \n+
    512 std::size_t preSteps_;
    \n+
    514 std::size_t postSteps_;
    \n+
    515};
    \n+
    \n+
    516}// end namespace Amg
    \n+
    517}// end namespace Dune
    \n+
    518
    \n+
    520#endif
    \n+
    Provides a class for building the galerkin product based on a aggregation scheme.
    \n+
    The AMG preconditioner.
    \n+
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n+
    Define general, extensible interface for inverse operators.
    \n+
    G::MutableMatrix * build(G &fineGraph, V &visitedMap, const ParallelInformation &pinfo, AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename G::Matrix::size_type &size, const Set &copy)
    Calculates the coarse matrix via a Galerkin product.
    Definition galerkin.hh:563
    \n+
    SmootherTraits< Smoother >::Arguments SmootherArgs
    The argument type for the construction of the smoother.
    Definition amg.hh:100
    \n+
    Operator Operator
    The matrix operator type.
    Definition amg.hh:73
    \n+
    void presmooth(LevelContext &levelContext, size_t steps)
    Apply pre smoothing on the current level.
    Definition smoother.hh:406
    \n+
    void postsmooth(LevelContext &levelContext, size_t steps)
    Apply post smoothing on the current level.
    Definition smoother.hh:428
    \n+
    void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse, const I &pinfo, const O &copy)
    Calculate the galerkin product.
    \n
    Definition allocator.hh:11
    \n-
    Definition matrixredistribute.hh:22
    \n-
    void redistributeBackward(D &from, const D &to) const
    Definition matrixredistribute.hh:32
    \n-
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n-
    void project(T1 &x) const
    Set vector to zero at copy dofs.
    Definition owneroverlapcopy.hh:538
    \n-
    void copyOwnerToAll(const T &source, T &dest) const
    Communicate values from owner data points to all other data points.
    Definition owneroverlapcopy.hh:311
    \n
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n+
    Parallel algebraic multigrid based on agglomeration.
    Definition amg.hh:65
    \n+
    Class representing the properties of an ede in the matrix graph.
    Definition dependency.hh:39
    \n+
    Class representing a node in the matrix graph.
    Definition dependency.hh:126
    \n+
    Definition galerkin.hh:118
    \n+
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n+
    Attaches properties to the edges and vertices of a graph.
    Definition graph.hh:978
    \n+
    VertexDescriptor maxVertex() const
    Get the maximal vertex descriptor.
    \n+
    Definition indicescoarsener.hh:36
    \n
    Definition pinfo.hh:28
    \n+
    The default class for the smoother arguments.
    Definition smoother.hh:38
    \n
    Definition transfer.hh:32
    \n-
    static void restrictVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, const Vector &fine, T &comm)
    \n-
    static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, T1 damp)
    \n-
    static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, Vector &fineRedist, T1 damp, R &redistributor=R())
    \n-
    V1 Vertex
    Definition transfer.hh:35
    \n-
    V2 Vector
    Definition transfer.hh:36
    \n-
    RedistributeInformation< SequentialInformation > Redist
    Definition transfer.hh:56
    \n-\n-\n-
    static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, Vector &fineRedist, T1 damp, const SequentialInformation &comm=SequentialInformation(), const Redist &redist=Redist())
    \n-
    static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, T1 damp, const SequentialInformation &comm=SequentialInformation())
    \n-\n-
    RedistributeInformation< OwnerOverlapCopyCommunication< T1, T2 > > Redist
    Definition transfer.hh:80
    \n-\n+
    Abstract base class for transfer between levels and creation of the coarse level system.
    Definition twolevelmethod.hh:38
    \n+
    CO CoarseOperatorType
    The linear operator of the finel level system. Has to be derived from AssembledLinearOperator.
    Definition twolevelmethod.hh:57
    \n+
    virtual void moveToCoarseLevel(const FineRangeType &fineRhs)=0
    Transfers the data to the coarse level.
    \n+
    FineOperatorType::range_type FineRangeType
    The type of the range of the fine level operator.
    Definition twolevelmethod.hh:48
    \n+
    virtual void createCoarseLevelSystem(const FineOperatorType &fineOperator)=0
    Algebraically creates the coarse level system.
    \n+
    CoarseOperatorType::range_type CoarseRangeType
    The type of the range of the coarse level operator.
    Definition twolevelmethod.hh:61
    \n+
    virtual ~LevelTransferPolicy()
    Destructor.
    Definition twolevelmethod.hh:124
    \n+
    CoarseDomainType lhs_
    The coarse level lhs.
    Definition twolevelmethod.hh:130
    \n+
    virtual LevelTransferPolicy * clone() const =0
    Clone the current object.
    \n+
    CoarseDomainType & getCoarseLevelLhs()
    Get the coarse level left hand side.
    Definition twolevelmethod.hh:87
    \n+
    std::shared_ptr< CoarseOperatorType > operator_
    the coarse level linear operator.
    Definition twolevelmethod.hh:132
    \n+
    CoarseRangeType rhs_
    The coarse level rhs.
    Definition twolevelmethod.hh:128
    \n+
    virtual void moveToFineLevel(FineDomainType &fineLhs)=0
    Updates the fine level linear system after the correction of the coarse levels system.
    \n+
    std::shared_ptr< CoarseOperatorType > & getCoarseLevelOperator()
    Get the coarse level operator.
    Definition twolevelmethod.hh:70
    \n+
    CoarseRangeType & getCoarseLevelRhs()
    Get the coarse level right hand side.
    Definition twolevelmethod.hh:78
    \n+
    FO FineOperatorType
    The linear operator of the finel level system. Has to be derived from AssembledLinearOperator.
    Definition twolevelmethod.hh:44
    \n+
    CoarseOperatorType::domain_type CoarseDomainType
    The type of the domain of the coarse level operator.
    Definition twolevelmethod.hh:65
    \n+
    FineOperatorType::domain_type FineDomainType
    The type of the domain of the fine level operator.
    Definition twolevelmethod.hh:52
    \n+
    A LeveTransferPolicy that used aggregation to construct the coarse level system.
    Definition twolevelmethod.hh:143
    \n+
    C Criterion
    Definition twolevelmethod.hh:147
    \n+
    AggregationLevelTransferPolicy(const Criterion &crit)
    Definition twolevelmethod.hh:150
    \n+
    AggregationLevelTransferPolicy * clone() const
    Clone the current object.
    Definition twolevelmethod.hh:214
    \n+
    void moveToFineLevel(typename FatherType::FineDomainType &fineLhs)
    Updates the fine level linear system after the correction of the coarse levels system.
    Definition twolevelmethod.hh:207
    \n+
    void moveToCoarseLevel(const typename FatherType::FineRangeType &fineRhs)
    Definition twolevelmethod.hh:200
    \n+
    SequentialInformation ParallelInformation
    Definition twolevelmethod.hh:148
    \n+
    LevelTransferPolicy< O, O > FatherType
    Definition twolevelmethod.hh:146
    \n+
    void createCoarseLevelSystem(const O &fineOperator)
    Algebraically creates the coarse level system.
    Definition twolevelmethod.hh:154
    \n+
    A policy class for solving the coarse level system using one step of AMG.
    Definition twolevelmethod.hh:234
    \n+
    OneStepAMGCoarseSolverPolicy(const SmootherArgs &args, const Criterion &c)
    Constructs the coarse solver policy.
    Definition twolevelmethod.hh:253
    \n+
    AMGInverseOperator CoarseLevelSolver
    The type of solver constructed for the coarse level.
    Definition twolevelmethod.hh:315
    \n+
    OneStepAMGCoarseSolverPolicy(const OneStepAMGCoarseSolverPolicy &other)
    Copy constructor.
    Definition twolevelmethod.hh:257
    \n+
    O::range_type X
    The type of the range and domain of the operator.
    Definition twolevelmethod.hh:239
    \n+
    C Criterion
    The type of the crition used for the aggregation within AMG.
    Definition twolevelmethod.hh:241
    \n+
    Dune::Amg::SmootherTraits< S >::Arguments SmootherArgs
    The type of the arguments used for constructing the smoother.
    Definition twolevelmethod.hh:245
    \n+
    O Operator
    The type of the linear operator used.
    Definition twolevelmethod.hh:237
    \n+
    AMG< Operator, X, Smoother > AMGType
    The type of the AMG construct on the coarse level.
    Definition twolevelmethod.hh:247
    \n+
    CoarseLevelSolver * createCoarseLevelSolver(P &transferPolicy)
    Constructs a coarse level solver.
    Definition twolevelmethod.hh:325
    \n+
    S Smoother
    The type of the smoother used in AMG.
    Definition twolevelmethod.hh:243
    \n+
    Definition twolevelmethod.hh:353
    \n+
    CoarseOperatorType::range_type CoarseRangeType
    The type of the range of the coarse level operator.
    Definition twolevelmethod.hh:380
    \n+
    FineOperatorType::domain_type FineDomainType
    The type of the domain of the fine level operator.
    Definition twolevelmethod.hh:371
    \n+
    TwoLevelMethod(const TwoLevelMethod &other)
    Definition twolevelmethod.hh:418
    \n+
    void pre(FineDomainType &x, FineRangeType &b)
    Definition twolevelmethod.hh:431
    \n+
    FO FineOperatorType
    The linear operator of the finel level system. Has to be derived from AssembledLinearOperator.
    Definition twolevelmethod.hh:363
    \n+
    CoarseLevelSolverPolicy::CoarseLevelSolver CoarseLevelSolver
    The type of the coarse level solver.
    Definition twolevelmethod.hh:358
    \n+
    void apply(FineDomainType &v, const FineRangeType &d)
    Definition twolevelmethod.hh:439
    \n+
    CSP CoarseLevelSolverPolicy
    The type of the policy for constructing the coarse level solver.
    Definition twolevelmethod.hh:356
    \n+
    CoarseOperatorType::domain_type CoarseDomainType
    The type of the domain of the coarse level operator.
    Definition twolevelmethod.hh:384
    \n+
    TwoLevelMethod(const FineOperatorType &op, std::shared_ptr< SmootherType > smoother, const LevelTransferPolicy< FineOperatorType, CoarseOperatorType > &policy, CoarseLevelSolverPolicy &coarsePolicy, std::size_t preSteps=1, std::size_t postSteps=1)
    Constructs a two level method.
    Definition twolevelmethod.hh:404
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition twolevelmethod.hh:466
    \n+
    FineOperatorType::range_type FineRangeType
    The type of the range of the fine level operator.
    Definition twolevelmethod.hh:367
    \n+
    ~TwoLevelMethod()
    Definition twolevelmethod.hh:424
    \n+
    CSP::Operator CoarseOperatorType
    The linear operator of the finel level system. Has to be derived from AssembledLinearOperator.
    Definition twolevelmethod.hh:376
    \n+
    void post(FineDomainType &x)
    Definition twolevelmethod.hh:436
    \n+
    S SmootherType
    The type of the fine level smoother.
    Definition twolevelmethod.hh:388
    \n+
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n+
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n+
    virtual void apply(X &x, X &b, InverseOperatorResult &res)=0
    Apply inverse operator,.
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,294 +1,663 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-transfer.hh\n+twolevelmethod.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMGTRANSFER_HH\n-6#define DUNE_AMGTRANSFER_HH\n+5#ifndef DUNE_ISTL_TWOLEVELMETHOD_HH\n+6#define DUNE_ISTL_TWOLEVELMETHOD_HH\n 7\n-8#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-9#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh>\n-10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh>\n-11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n-13#include \n+8#include \n+9\n+10#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n+11#include\"_\ba_\bm_\bg_\b._\bh_\bh\"\n+12#include\"_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\"\n+13#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n 14\n-15namespace _\bD_\bu_\bn_\be\n-16{\n-17 namespace Amg\n-18 {\n-19\n-30 template\n-_\b3_\b1 class _\bT_\br_\ba_\bn_\bs_\bf_\be_\br\n-32 {\n-33\n-34 public:\n-_\b3_\b5 typedef V1 _\bV_\be_\br_\bt_\be_\bx;\n-_\b3_\b6 typedef V2 _\bV_\be_\bc_\bt_\bo_\br;\n-37\n-38 template\n-_\b3_\b9 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n-40 _\bV_\be_\bc_\bt_\bo_\br& fineRedist,T1 damp, R& redistributor=R());\n-41\n-42 template\n-_\b4_\b3 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n-44 T1 damp);\n-45\n-_\b4_\b6 static void _\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, _\bV_\be_\bc_\bt_\bo_\br&\n-coarse, const _\bV_\be_\bc_\bt_\bo_\br& fine,\n-47 T& comm);\n-48 };\n-49\n-50 template\n-_\b5_\b1 class _\bT_\br_\ba_\bn_\bs_\bf_\be_\br\n-52 {\n-53 public:\n-_\b5_\b4 typedef V _\bV_\be_\br_\bt_\be_\bx;\n-_\b5_\b5 typedef V1 _\bV_\be_\bc_\bt_\bo_\br;\n-_\b5_\b6 typedef _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b> _\bR_\be_\bd_\bi_\bs_\bt;\n-57 template\n-_\b5_\b8 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n-59 _\bV_\be_\bc_\bt_\bo_\br& fineRedist, T1 damp,\n-60 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm=_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn(),\n-61 const _\bR_\be_\bd_\bi_\bs_\bt& redist=_\bR_\be_\bd_\bi_\bs_\bt());\n-62 template\n-_\b6_\b3 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n-64 T1 damp,\n-65 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm=_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n-66\n-67\n-68 static void _\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, _\bV_\be_\bc_\bt_\bo_\br&\n-coarse, const _\bV_\be_\bc_\bt_\bo_\br& fine,\n-69 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm);\n-70 };\n-71\n-72#if HAVE_MPI\n-73\n-74 template\n-_\b7_\b5 class _\bT_\br_\ba_\bn_\bs_\bf_\be_\br >\n-76 {\n-77 public:\n-_\b7_\b8 typedef V _\bV_\be_\br_\bt_\be_\bx;\n-_\b7_\b9 typedef V1 _\bV_\be_\bc_\bt_\bo_\br;\n-_\b8_\b0 typedef _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> >\n-_\bR_\be_\bd_\bi_\bs_\bt;\n-81 template\n-82 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n-83 _\bV_\be_\bc_\bt_\bo_\br& fineRedist, T3 damp, _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm,\n-84 const _\bR_\be_\bd_\bi_\bs_\bt& redist);\n-85 template\n-86 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n-87 T3 damp, _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm);\n-88\n-89 static void _\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, _\bV_\be_\bc_\bt_\bo_\br&\n-coarse, const _\bV_\be_\bc_\bt_\bo_\br& fine,\n-90 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm);\n-91 };\n-92\n-93#endif\n-94\n-95 template\n-96 template\n-97 inline void\n-_\b9_\b8 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-99 _\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n-100 [[maybe_unused]] _\bV_\be_\bc_\bt_\bo_\br& fineRedist,\n-101 T damp,\n-102 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm,\n-103 [[maybe_unused]] const _\bR_\be_\bd_\bi_\bs_\bt& redist)\n-104 {\n-105 prolongateVector(aggregates, coarse, fine, damp);\n-106 }\n-107 template\n-108 template\n-109 inline void\n-_\b1_\b1_\b0 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-111 _\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n-112 T damp,\n-113 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm)\n-114 {\n-115 typedef typename Vector::iterator Iterator;\n-116\n-117 Iterator end = coarse.end();\n-118 Iterator begin= coarse.begin();\n-119 for(; begin!=end; ++begin)\n-120 *begin*=damp;\n-121 end=fine.end();\n-122 begin=fine.begin();\n-123\n-124 for(Iterator block=begin; block != end; ++block) {\n-125 std::ptrdiff_t index=block-begin;\n-126 const _\bV_\be_\br_\bt_\be_\bx& vertex = aggregates[index];\n-127 if(vertex != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n-128 *block += coarse[aggregates[index]];\n-129 }\n-130 }\n-131\n-132 template\n-133 inline void\n-_\b1_\b3_\b4 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-135 _\bV_\be_\bc_\bt_\bo_\br& coarse,\n-136 const _\bV_\be_\bc_\bt_\bo_\br& fine,\n-137 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm)\n-138 {\n-139 // Set coarse vector to zero\n-140 coarse=0;\n-141\n-142 typedef typename Vector::const_iterator Iterator;\n-143 Iterator end = fine._\be_\bn_\bd();\n-144 Iterator begin=fine.begin();\n-145\n-146 for(Iterator block=begin; block != end; ++block) {\n-147 const _\bV_\be_\br_\bt_\be_\bx& vertex = aggregates[block-begin];\n-148 if(vertex != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n-149 coarse[vertex] += *block;\n-150 }\n-151 }\n-152\n-153#if HAVE_MPI\n-154 template\n-155 template\n-_\b1_\b5_\b6 inline void _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> >::\n-prolongateVector(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-157 _\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n-158 _\bV_\be_\bc_\bt_\bo_\br& fineRedist, T3 damp,\n-159 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm,\n-160 const _\bR_\be_\bd_\bi_\bs_\bt& redist)\n-161 {\n-162 if(fineRedist.size()>0)\n-163 // we operated on the coarse level\n-164 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(aggregates, coarse,\n-fineRedist, damp);\n-165\n-166 // TODO This could be accomplished with one communication, too!\n-167 redist._\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd(fine, fineRedist);\n-168 comm._\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl(fine,fine);\n-169 }\n-170\n-171 template\n-172 template\n-_\b1_\b7_\b3 inline void _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> >::\n-prolongateVector(\n-174 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-175 _\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine, T3 damp,\n-176 [[maybe_unused]] _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm)\n-177 {\n-178 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(aggregates, coarse,\n-fine, damp);\n-179 }\n-180 template\n-_\b1_\b8_\b1 inline void _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> >::\n-restrictVector(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-182 _\bV_\be_\bc_\bt_\bo_\br& coarse, const _\bV_\be_\bc_\bt_\bo_\br& fine,\n-183 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm)\n-184 {\n-185 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(aggregates, coarse,\n-fine, _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n-186 // We need this here to avoid it in the smoothers on the coarse level.\n-187 // There (in the preconditioner d is const.\n-188 comm._\bp_\br_\bo_\bj_\be_\bc_\bt(coarse);\n-189 }\n-190#endif\n-192 } // namspace Amg\n-193} // namspace Dune\n-194#endif\n-_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n-Provides classes for the Coloring process of AMG.\n-_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n-_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n-Classes providing communication interfaces for overlapping Schwarz methods.\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n-_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh\n-Functionality for redistributing a sparse matrix.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n-const_iterator end() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:730\n+22namespace _\bD_\bu_\bn_\be\n+23{\n+24namespace Amg\n+25{\n+26\n+36template\n+_\b3_\b7class _\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+38{\n+39public:\n+_\b4_\b4 typedef FO _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be;\n+_\b4_\b8 typedef typename FineOperatorType::range_type _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be;\n+_\b5_\b2 typedef typename FineOperatorType::domain_type _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be;\n+_\b5_\b7 typedef CO _\bC_\bo_\ba_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be;\n+_\b6_\b1 typedef typename CoarseOperatorType::range_type _\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be;\n+_\b6_\b5 typedef typename CoarseOperatorType::domain_type _\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be;\n+_\b7_\b0 std::shared_ptr& _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br()\n+71 {\n+72 return _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n+73 }\n+_\b7_\b8 _\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be& _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bR_\bh_\bs()\n+79 {\n+80 return _\br_\bh_\bs_\b_;\n+81 }\n+82\n+_\b8_\b7 _\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bL_\bh_\bs()\n+88 {\n+89 return _\bl_\bh_\bs_\b_;\n+90 }\n+_\b1_\b0_\b0 virtual void _\bm_\bo_\bv_\be_\bT_\bo_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl(const _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be& fineRhs)=0;\n+_\b1_\b1_\b0 virtual void _\bm_\bo_\bv_\be_\bT_\bo_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl(_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& fineLhs)=0;\n+_\b1_\b1_\b8 virtual void _\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\by_\bs_\bt_\be_\bm(const _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be&\n+fineOperator)=0;\n+119\n+_\b1_\b2_\b1 virtual _\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by* _\bc_\bl_\bo_\bn_\be() const =0;\n+122\n+_\b1_\b2_\b4 virtual _\b~_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by(){}\n+125\n+126 protected:\n+_\b1_\b2_\b8 _\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be _\br_\bh_\bs_\b_;\n+_\b1_\b3_\b0 _\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be _\bl_\bh_\bs_\b_;\n+_\b1_\b3_\b2 std::shared_ptr _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n+133};\n+134\n+140template\n+_\b1_\b4_\b1class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+142 : public _\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+143{\n+144 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bO_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b>\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp;\n+145public:\n+_\b1_\b4_\b6 typedef _\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bO_\b,_\bO_\b> _\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be;\n+_\b1_\b4_\b7 typedef C _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn;\n+_\b1_\b4_\b8 typedef _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n+149\n+_\b1_\b5_\b0 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by(const _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn& crit)\n+151 : criterion_(crit)\n+152 {}\n+153\n+_\b1_\b5_\b4 void _\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\by_\bs_\bt_\be_\bm(const O& fineOperator)\n+155 {\n+156 prolongDamp_ = criterion_.getProlongationDampingFactor();\n+157 _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b> productBuilder;\n+158 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bO_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b>\n+_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n+159 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh,_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n+160 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,Dune::IdentityMap,Dune::IdentityMap>\n+_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh;\n+161 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh mg(fineOperator.getmat());\n+162 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh pg(mg,Dune::IdentityMap(),Dune::IdentityMap());\n+163 typedef NegateSet OverlapFlags;\n+164\n+165 aggregatesMap_ = std::make_shared(pg._\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx()+1);\n+166\n+167 int noAggregates, isoAggregates, oneAggregates, skippedAggregates;\n+168\n+169 std::tie(noAggregates, isoAggregates, oneAggregates, skippedAggregates) =\n+170 aggregatesMap_->buildAggregates(fineOperator.getmat(), pg, criterion_,\n+true);\n+171 std::cout<<\"no aggregates=\"<\n+renumberer;\n+174 typedef std::vector::iterator Iterator;\n+175 typedef Dune::IteratorPropertyMap VisitedMap;\n+176 std::vector excluded(fineOperator.getmat().N(), false);\n+177 VisitedMap vm(excluded.begin(), Dune::IdentityMap());\n+178 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn pinfo;\n+179 std::size_t aggregates = renumberer.coarsen(pinfo, pg, vm,\n+180 *aggregatesMap_, pinfo,\n+181 noAggregates);\n+182 std::vector& visited=excluded;\n+183\n+184 typedef std::vector::iterator Iterator;\n+185\n+186 for(Iterator iter= visited.begin(), end=visited.end();\n+187 iter != end; ++iter)\n+188 *iter=false;\n+189 matrix_.reset(productBuilder._\bb_\bu_\bi_\bl_\bd(mg, vm,\n+190 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn(),\n+191 *aggregatesMap_,\n+192 aggregates,\n+193 OverlapFlags()));\n+194 productBuilder._\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be(fineOperator.getmat(), *aggregatesMap_, *matrix_,\n+pinfo, OverlapFlags());\n+195 this->_\bl_\bh_\bs_\b_.resize(this->matrix_->M());\n+196 this->_\br_\bh_\bs_\b_.resize(this->matrix_->N());\n+197 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b_ = std::make_shared(*matrix_);\n+198 }\n+199\n+_\b2_\b0_\b0 void _\bm_\bo_\bv_\be_\bT_\bo_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl(const typename _\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b:_\b:_\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be& fineRhs)\n+201 {\n+202 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bs_\bt_\bd_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b:_\b:\n+_\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>\n+203_\b _\b:_\b:_\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(*aggregatesMap_, this->_\br_\bh_\bs_\b_, fineRhs, _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+());\n+204 this->_\bl_\bh_\bs_\b_=0;\n+205 }\n+206\n+_\b2_\b0_\b7 void _\bm_\bo_\bv_\be_\bT_\bo_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl(typename _\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b:_\b:_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& fineLhs)\n+208 {\n+209 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bs_\bt_\bd_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b:_\b:\n+_\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>\n+210_\b _\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(*aggregatesMap_, this->_\bl_\bh_\bs_\b_, fineLhs,\n+211 prolongDamp_, _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n+212 }\n+213\n+_\b2_\b1_\b4 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by* _\bc_\bl_\bo_\bn_\be() const\n+215 {\n+216 return new _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by(*this);\n+217 }\n+218\n+219private:\n+220 typename O::matrix_type::field_type prolongDamp_;\n+221 std::shared_ptr aggregatesMap_;\n+222 _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn criterion_;\n+223 std::shared_ptr matrix_;\n+224};\n+225\n+232template\n+_\b2_\b3_\b3class _\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+234{\n+235public:\n+_\b2_\b3_\b7 typedef O _\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n+_\b2_\b3_\b9 typedef typename O::range_type _\bX;\n+_\b2_\b4_\b1 typedef C _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn;\n+_\b2_\b4_\b3 typedef S _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+_\b2_\b4_\b5 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n+_\b2_\b4_\b7 typedef _\bA_\bM_\bG_\b<_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\bX_\b,_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b> _\bA_\bM_\bG_\bT_\by_\bp_\be;\n+_\b2_\b5_\b3 _\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by(const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& args, const _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn& c)\n+254 : smootherArgs_(args), criterion_(c)\n+255 {}\n+_\b2_\b5_\b7 _\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by(const _\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by& other)\n+258 : coarseOperator_(other.coarseOperator_), smootherArgs_\n+(other.smootherArgs_),\n+259 criterion_(other.criterion_)\n+260 {}\n+261private:\n+268 struct AMGInverseOperator : public _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+269 {\n+270 AMGInverseOperator(const typename _\bA_\bM_\bG_\bT_\by_\bp_\be_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br& op,\n+271 const _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn& crit,\n+272 const typename _\bA_\bM_\bG_\bT_\by_\bp_\be_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& args)\n+273 : amg_(op, crit,args), first_(true)\n+274 {}\n+275\n+276 void apply(_\bX& x, _\bX& b, [[maybe_unused]] double reduction, [[maybe_unused]]\n+_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+277 {\n+278 if(first_)\n+279 {\n+280 amg_.pre(x,b);\n+281 first_=false;\n+282 x_=x;\n+283 }\n+284 amg_.apply(x,b);\n+285 }\n+286\n+287 void _\ba_\bp_\bp_\bl_\by(_\bX& x, _\bX& b, InverseOperatorResult& res)\n+288 {\n+289 return _\ba_\bp_\bp_\bl_\by(x,b,1e-8,res);\n+290 }\n+291\n+293 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category() const\n+294 {\n+295 return amg_.category();\n+296 }\n+297\n+298 ~AMGInverseOperator()\n+299 {\n+300 if(!first_)\n+301 amg_.post(x_);\n+302 }\n+303 AMGInverseOperator(const AMGInverseOperator& other)\n+304 : x_(other.x_), amg_(other.amg_), first_(other.first_)\n+305 {\n+306 }\n+307 private:\n+308 _\bX x_;\n+309 _\bA_\bM_\bG_\bT_\by_\bp_\be amg_;\n+310 bool first_;\n+311 };\n+312\n+313public:\n+_\b3_\b1_\b5 typedef AMGInverseOperator _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br;\n+316\n+324 template\n+_\b3_\b2_\b5 _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br* _\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br(P& transferPolicy)\n+326 {\n+327 coarseOperator_=transferPolicy.getCoarseLevelOperator();\n+328 AMGInverseOperator* inv = new AMGInverseOperator(*coarseOperator_,\n+329 criterion_,\n+330 smootherArgs_);\n+331\n+332 return inv; //std::shared_ptr >(inv);\n+333\n+334 }\n+335\n+336private:\n+338 std::shared_ptr coarseOperator_;\n+340 _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs smootherArgs_;\n+342 _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn criterion_;\n+343};\n+344\n+350template\n+_\b3_\b5_\b1class _\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd :\n+352 public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+353{\n+354public:\n+_\b3_\b5_\b6 typedef CSP _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by;\n+_\b3_\b5_\b8 typedef typename CoarseLevelSolverPolicy::CoarseLevelSolver\n+_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br;\n+_\b3_\b6_\b3 typedef FO _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be;\n+_\b3_\b6_\b7 typedef typename FineOperatorType::range_type _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be;\n+_\b3_\b7_\b1 typedef typename FineOperatorType::domain_type _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be;\n+_\b3_\b7_\b6 typedef typename CSP::Operator _\bC_\bo_\ba_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be;\n+_\b3_\b8_\b0 typedef typename CoarseOperatorType::range_type _\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be;\n+_\b3_\b8_\b4 typedef typename CoarseOperatorType::domain_type _\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be;\n+_\b3_\b8_\b8 typedef S _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be;\n+389\n+_\b4_\b0_\b4 _\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd(const _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be& op,\n+405 std::shared_ptr smoother,\n+406 const _\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by<_\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be,\n+407 _\bC_\bo_\ba_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be>& policy,\n+408 _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by& coarsePolicy,\n+409 std::size_t preSteps=1, std::size_t postSteps=1)\n+410 : operator_(&op), smoother_(smoother),\n+411 preSteps_(preSteps), postSteps_(postSteps)\n+412 {\n+413 policy_ = policy._\bc_\bl_\bo_\bn_\be();\n+414 policy_->_\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\by_\bs_\bt_\be_\bm(*operator_);\n+415 coarseSolver_=coarsePolicy.createCoarseLevelSolver(*policy_);\n+416 }\n+417\n+_\b4_\b1_\b8 _\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd(const _\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd& other)\n+419 : operator_(other.operator_), coarseSolver_(new _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n+(*other.coarseSolver_)),\n+420 smoother_(other.smoother_), policy_(other.policy_->clone()),\n+421 preSteps_(other.preSteps_), postSteps_(other.postSteps_)\n+422 {}\n+423\n+_\b4_\b2_\b4 _\b~_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd()\n+425 {\n+426 // Each instance has its own policy.\n+427 delete policy_;\n+428 delete coarseSolver_;\n+429 }\n+430\n+_\b4_\b3_\b1 void _\bp_\br_\be(_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& x, _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be& b)\n+432 {\n+433 smoother_->pre(x,b);\n+434 }\n+435\n+_\b4_\b3_\b6 void _\bp_\bo_\bs_\bt([[maybe_unused]] _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& x)\n+437 {}\n+438\n+_\b4_\b3_\b9 void _\ba_\bp_\bp_\bl_\by(_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& v, const _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be& d)\n+440 {\n+441 _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be u(v);\n+442 _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be rhs(d);\n+443 LevelContext context;\n+444 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn info;\n+445 context.pinfo=&info;\n+446 context.lhs=&u;\n+447 context.update=&v;\n+448 context.smoother=smoother_;\n+449 context.rhs=&rhs;\n+450 context.matrix=operator_;\n+451 // Presmoothing\n+452 _\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh(context, preSteps_);\n+453 //Coarse grid correction\n+454 policy_->_\bm_\bo_\bv_\be_\bT_\bo_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl(*context.rhs);\n+455 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n+456 coarseSolver_->apply(policy_->_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bL_\bh_\bs(), policy_-\n+>_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bR_\bh_\bs(), res);\n+457 *context.lhs=0;\n+458 policy_->_\bm_\bo_\bv_\be_\bT_\bo_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl(*context.lhs);\n+459 *context.update += *context.lhs;\n+460 // Postsmoothing\n+461 _\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh(context, postSteps_);\n+462\n+463 }\n+464\n+_\b4_\b6_\b6 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+467 {\n+468 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+469 }\n+470\n+471private:\n+475 struct LevelContext\n+476 {\n+478 typedef S SmootherType;\n+480 std::shared_ptr smoother;\n+482 _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be* lhs;\n+483 /*\n+484 * @brief The right hand side holding the current residual.\n+485 *\n+486 * This is passed to the smoother as the right hand side.\n+487 */\n+488 _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be* rhs;\n+494 _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be* update;\n+496 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn* pinfo;\n+502 const _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be* matrix;\n+503 };\n+504 const _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be* operator_;\n+506 _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br* coarseSolver_;\n+508 std::shared_ptr smoother_;\n+510 LevelTransferPolicy* policy_;\n+512 std::size_t preSteps_;\n+514 std::size_t postSteps_;\n+515};\n+516}// end namespace Amg\n+517}// end namespace Dune\n+518\n+520#endif\n+_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\n+Provides a class for building the galerkin product based on a aggregation\n+scheme.\n+_\ba_\bm_\bg_\b._\bh_\bh\n+The AMG preconditioner.\n+_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n+Define general, extensible interface for operators. The available\n+implementation wraps a matrix.\n+_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n+Define general, extensible interface for inverse operators.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bb_\bu_\bi_\bl_\bd\n+G::MutableMatrix * build(G &fineGraph, V &visitedMap, const ParallelInformation\n+&pinfo, AggregatesMap< typename G::VertexDescriptor > &aggregates, const\n+typename G::Matrix::size_type &size, const Set ©)\n+Calculates the coarse matrix via a Galerkin product.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:563\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b<_\b _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bX_\b,_\b _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b _\b>_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+SmootherTraits< Smoother >::Arguments SmootherArgs\n+The argument type for the construction of the smoother.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:100\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b<_\b _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bX_\b,_\b _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b _\b>_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Operator Operator\n+The matrix operator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh\n+void presmooth(LevelContext &levelContext, size_t steps)\n+Apply pre smoothing on the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:406\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh\n+void postsmooth(LevelContext &levelContext, size_t steps)\n+Apply post smoothing on the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be\n+void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse,\n+const I &pinfo, const O ©)\n+Calculate the galerkin product.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd\n-void redistributeBackward(D &from, const D &to) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-A class setting up standard communication for a two-valued attribute set with\n-owner/overlap/copy sema...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bp_\br_\bo_\bj_\be_\bc_\bt\n-void project(T1 &x) const\n-Set vector to zero at copy dofs.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:538\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl\n-void copyOwnerToAll(const T &source, T &dest) const\n-Communicate values from owner data points to all other data points.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:311\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n Class providing information about the mapping of the vertices onto aggregates.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG\n+Parallel algebraic multigrid based on agglomeration.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:65\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+Class representing the properties of an ede in the matrix graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:39\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+Class representing a node in the matrix graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:118\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+The (undirected) graph of a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+Attaches properties to the edges and vertices of a graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:978\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx\n+VertexDescriptor maxVertex() const\n+Get the maximal vertex descriptor.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:36\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+The default class for the smoother arguments.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:38\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b:_\b:_\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br\n-static void restrictVector(const AggregatesMap< Vertex > &aggregates, Vector\n-&coarse, const Vector &fine, T &comm)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br\n-static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector\n-&coarse, Vector &fine, T1 damp)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br\n-static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector\n-&coarse, Vector &fine, Vector &fineRedist, T1 damp, R &redistributor=R())\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-V1 Vertex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:35\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b:_\b:_\bV_\be_\bc_\bt_\bo_\br\n-V2 Vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt\n-RedistributeInformation< SequentialInformation > Redist\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-V Vertex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:54\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bV_\be_\bc_\bt_\bo_\br\n-V1 Vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:55\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br\n-static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector\n-&coarse, Vector &fine, Vector &fineRedist, T1 damp, const SequentialInformation\n-&comm=SequentialInformation(), const Redist &redist=Redist())\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br\n-static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector\n-&coarse, Vector &fine, T1 damp, const SequentialInformation\n-&comm=SequentialInformation())\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-V Vertex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:78\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt\n-RedistributeInformation< OwnerOverlapCopyCommunication< T1, T2 > > Redist\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:80\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>_\b:_\b:_\bV_\be_\bc_\bt_\bo_\br\n-V1 Vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:79\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+Abstract base class for transfer between levels and creation of the coarse\n+level system.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:38\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n+CO CoarseOperatorType\n+The linear operator of the finel level system. Has to be derived from\n+AssembledLinearOperator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:57\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bm_\bo_\bv_\be_\bT_\bo_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl\n+virtual void moveToCoarseLevel(const FineRangeType &fineRhs)=0\n+Transfers the data to the coarse level.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be\n+FineOperatorType::range_type FineRangeType\n+The type of the range of the fine level operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\by_\bs_\bt_\be_\bm\n+virtual void createCoarseLevelSystem(const FineOperatorType &fineOperator)=0\n+Algebraically creates the coarse level system.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be\n+CoarseOperatorType::range_type CoarseRangeType\n+The type of the range of the coarse level operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\b~_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+virtual ~LevelTransferPolicy()\n+Destructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:124\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bl_\bh_\bs_\b_\n+CoarseDomainType lhs_\n+The coarse level lhs.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:130\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bc_\bl_\bo_\bn_\be\n+virtual LevelTransferPolicy * clone() const =0\n+Clone the current object.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bL_\bh_\bs\n+CoarseDomainType & getCoarseLevelLhs()\n+Get the coarse level left hand side.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:87\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b_\n+std::shared_ptr< CoarseOperatorType > operator_\n+the coarse level linear operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:132\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\br_\bh_\bs_\b_\n+CoarseRangeType rhs_\n+The coarse level rhs.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:128\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bm_\bo_\bv_\be_\bT_\bo_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl\n+virtual void moveToFineLevel(FineDomainType &fineLhs)=0\n+Updates the fine level linear system after the correction of the coarse levels\n+system.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+std::shared_ptr< CoarseOperatorType > & getCoarseLevelOperator()\n+Get the coarse level operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bR_\bh_\bs\n+CoarseRangeType & getCoarseLevelRhs()\n+Get the coarse level right hand side.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n+FO FineOperatorType\n+The linear operator of the finel level system. Has to be derived from\n+AssembledLinearOperator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be\n+CoarseOperatorType::domain_type CoarseDomainType\n+The type of the domain of the coarse level operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:65\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be\n+FineOperatorType::domain_type FineDomainType\n+The type of the domain of the fine level operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+A LeveTransferPolicy that used aggregation to construct the coarse level\n+system.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:143\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+C Criterion\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:147\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+AggregationLevelTransferPolicy(const Criterion &crit)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bc_\bl_\bo_\bn_\be\n+AggregationLevelTransferPolicy * clone() const\n+Clone the current object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:214\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bm_\bo_\bv_\be_\bT_\bo_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl\n+void moveToFineLevel(typename FatherType::FineDomainType &fineLhs)\n+Updates the fine level linear system after the correction of the coarse levels\n+system.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:207\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bm_\bo_\bv_\be_\bT_\bo_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl\n+void moveToCoarseLevel(const typename FatherType::FineRangeType &fineRhs)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:200\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+SequentialInformation ParallelInformation\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:148\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be\n+LevelTransferPolicy< O, O > FatherType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:146\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\by_\bs_\bt_\be_\bm\n+void createCoarseLevelSystem(const O &fineOperator)\n+Algebraically creates the coarse level system.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:154\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+A policy class for solving the coarse level system using one step of AMG.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:234\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+OneStepAMGCoarseSolverPolicy(const SmootherArgs &args, const Criterion &c)\n+Constructs the coarse solver policy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:253\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n+AMGInverseOperator CoarseLevelSolver\n+The type of solver constructed for the coarse level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:315\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+OneStepAMGCoarseSolverPolicy(const OneStepAMGCoarseSolverPolicy &other)\n+Copy constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:257\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bX\n+O::range_type X\n+The type of the range and domain of the operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:239\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+C Criterion\n+The type of the crition used for the aggregation within AMG.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:241\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+Dune::Amg::SmootherTraits< S >::Arguments SmootherArgs\n+The type of the arguments used for constructing the smoother.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:245\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+O Operator\n+The type of the linear operator used.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:237\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bA_\bM_\bG_\bT_\by_\bp_\be\n+AMG< Operator, X, Smoother > AMGType\n+The type of the AMG construct on the coarse level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:247\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n+CoarseLevelSolver * createCoarseLevelSolver(P &transferPolicy)\n+Constructs a coarse level solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:325\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n+S Smoother\n+The type of the smoother used in AMG.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:243\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:353\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be\n+CoarseOperatorType::range_type CoarseRangeType\n+The type of the range of the coarse level operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:380\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be\n+FineOperatorType::domain_type FineDomainType\n+The type of the domain of the fine level operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:371\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd\n+TwoLevelMethod(const TwoLevelMethod &other)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:418\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bp_\br_\be\n+void pre(FineDomainType &x, FineRangeType &b)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:431\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n+FO FineOperatorType\n+The linear operator of the finel level system. Has to be derived from\n+AssembledLinearOperator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:363\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n+CoarseLevelSolverPolicy::CoarseLevelSolver CoarseLevelSolver\n+The type of the coarse level solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:358\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(FineDomainType &v, const FineRangeType &d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:439\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n+CSP CoarseLevelSolverPolicy\n+The type of the policy for constructing the coarse level solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:356\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be\n+CoarseOperatorType::domain_type CoarseDomainType\n+The type of the domain of the coarse level operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:384\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd\n+TwoLevelMethod(const FineOperatorType &op, std::shared_ptr< SmootherType >\n+smoother, const LevelTransferPolicy< FineOperatorType, CoarseOperatorType >\n+&policy, CoarseLevelSolverPolicy &coarsePolicy, std::size_t preSteps=1, std::\n+size_t postSteps=1)\n+Constructs a two level method.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:404\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be\n+FineOperatorType::range_type FineRangeType\n+The type of the range of the fine level operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:367\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\b~_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd\n+~TwoLevelMethod()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:424\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n+CSP::Operator CoarseOperatorType\n+The linear operator of the finel level system. Has to be derived from\n+AssembledLinearOperator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:376\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bp_\bo_\bs_\bt\n+void post(FineDomainType &x)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:436\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be\n+S SmootherType\n+The type of the fine level smoother.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:388\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+Statistics about the application of an inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Abstract base class for all solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, X &b, InverseOperatorResult &res)=0\n+Apply inverse operator,.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00095.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00095.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: combinedfunctor.hh File Reference\n+dune-istl: construction.hh File Reference\n \n \n \n \n \n \n \n@@ -72,37 +72,61 @@\n
  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n \n-
    combinedfunctor.hh File Reference
    \n+ \n
    \n
    \n-\n+

    Detailed Description

    \n+

    Helper classes for the construction of classes without empty constructor.

    \n+
    Author
    Markus Blatt
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -2,24 +2,53 @@\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-combinedfunctor.hh File Reference\n-#include \n+construction.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n+\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n+Helper classes for the construction of classes without empty constructor.\n+_\bM_\bo_\br_\be_\b._\b._\b.\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh>\n+#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bi_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\b0_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b<_\b _\bM_\b,_\b _\bC_\b _\b>\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b<_\b _\bT_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC\n+ _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,\n+ _\bC_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n+ _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Helper classes for the construction of classes without empty constructor.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00095_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00095_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: combinedfunctor.hh Source File\n+dune-istl: construction.hh Source File\n \n \n \n \n \n \n \n@@ -74,90 +74,256 @@\n \n
    \n \n
    \n \n
    \n-
    combinedfunctor.hh
    \n+
    construction.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_COMBINEDFUNCTOR_HH
    \n-
    6#define DUNE_AMG_COMBINEDFUNCTOR_HH
    \n+
    5#ifndef DUNE_AMGCONSTRUCTION_HH
    \n+
    6#define DUNE_AMGCONSTRUCTION_HH
    \n
    7
    \n-
    8#include <tuple>
    \n-
    9
    \n-
    10namespace Dune
    \n-
    11{
    \n-
    12 namespace Amg
    \n-
    13 {
    \n-
    14
    \n-
    15 template<std::size_t i>
    \n-
    \n-\n-
    17 {
    \n-
    18 template<class TT, class T>
    \n-
    \n-
    19 static void apply(TT tuple, const T& t)
    \n-
    20 {
    \n-
    21 std::get<i-1>(tuple) (t);
    \n-\n-
    23 }
    \n-
    \n-
    24 };
    \n-
    \n-
    25 template<>
    \n-
    \n-
    26 struct ApplyHelper<0>
    \n-
    27 {
    \n-
    28 template<class TT, class T>
    \n-
    \n-
    29 static void apply([[maybe_unused]] TT tuple, [[maybe_unused]] const T& t)
    \n-
    30 {}
    \n-
    \n-
    31 };
    \n-
    \n-
    32
    \n-
    33 template<typename T>
    \n-
    \n-\n-
    35 public T
    \n-
    36 {
    \n-
    37 public:
    \n-
    \n-
    38 CombinedFunctor(const T& tuple_)
    \n-
    39 : T(tuple_)
    \n-
    40 {}
    \n-
    \n-
    41
    \n-
    42 template<class T1>
    \n-
    \n-
    43 void operator()(const T1& t)
    \n-
    44 {
    \n-\n-
    46 }
    \n-
    \n-
    47 };
    \n-
    \n-
    48
    \n-
    49
    \n-
    50 } //namespace Amg
    \n-
    51} // namespace Dune
    \n-
    52#endif
    \n+\n+\n+\n+\n+
    12#include "pinfo.hh"
    \n+
    13
    \n+
    14namespace Dune
    \n+
    15{
    \n+
    16 namespace Amg
    \n+
    17 {
    \n+
    18
    \n+
    37 template<typename T>
    \n+
    38 struct ConstructionTraits
    \n+
    39 {
    \n+
    44 typedef const void* Arguments;
    \n+
    45
    \n+
    \n+
    52 static inline std::shared_ptr<T> construct(Arguments& args)
    \n+
    53 {
    \n+
    54 return std::make_shared<T>();
    \n+
    55 }
    \n+
    \n+
    56 };
    \n+
    57
    \n+
    58 template<class T, class A>
    \n+
    \n+
    59 struct ConstructionTraits<BlockVector<T,A> >
    \n+
    60 {
    \n+
    61 typedef const int Arguments;
    \n+
    \n+
    62 static inline std::shared_ptr<BlockVector<T,A>> construct(Arguments& n)
    \n+
    63 {
    \n+
    64 return std::make_shared<BlockVector<T,A>>(n);
    \n+
    65 }
    \n+
    \n+
    66 };
    \n+
    \n+
    67
    \n+
    68 template<class M, class C>
    \n+
    \n+\n+
    70 {
    \n+
    \n+
    71 ParallelOperatorArgs(std::shared_ptr<M> matrix, const C& comm)
    \n+
    72 : matrix_(matrix), comm_(comm)
    \n+
    73 {}
    \n+
    \n+
    74
    \n+
    75 std::shared_ptr<M> matrix_;
    \n+
    76 const C& comm_;
    \n+
    77 };
    \n+
    \n+
    78
    \n+
    79#if HAVE_MPI
    \n+
    \n+\n+
    81 {
    \n+
    \n+\n+
    83 : comm_(comm), cat_(cat)
    \n+
    84 {}
    \n+
    \n+
    85
    \n+
    86 MPI_Comm comm_;
    \n+\n+
    88 };
    \n+
    \n+
    89#endif
    \n+
    90
    \n+
    \n+\n+
    92 {
    \n+
    \n+
    93 SequentialCommunicationArgs(Communication<void*> comm, [[maybe_unused]] int cat)
    \n+
    94 : comm_(comm)
    \n+
    95 {}
    \n+
    \n+
    96
    \n+
    97 Communication<void*> comm_;
    \n+
    98 };
    \n+
    \n+
    99
    \n+
    100 } // end Amg namspace
    \n+
    101
    \n+
    102 // forward declaration
    \n+
    103 template<class M, class X, class Y, class C>
    \n+\n+
    105
    \n+
    106 template<class M, class X, class Y, class C>
    \n+\n+
    108
    \n+
    109 namespace Amg
    \n+
    110 {
    \n+
    111 template<class M, class X, class Y, class C>
    \n+
    \n+
    112 struct ConstructionTraits<OverlappingSchwarzOperator<M,X,Y,C> >
    \n+
    113 {
    \n+\n+
    115
    \n+
    \n+
    116 static inline std::shared_ptr<OverlappingSchwarzOperator<M,X,Y,C>> construct(const Arguments& args)
    \n+
    117 {
    \n+
    118 return std::make_shared<OverlappingSchwarzOperator<M,X,Y,C>>
    \n+
    119 (args.matrix_, args.comm_);
    \n+
    120 }
    \n+
    \n+
    121 };
    \n+
    \n+
    122
    \n+
    123 template<class M, class X, class Y, class C>
    \n+
    \n+
    124 struct ConstructionTraits<NonoverlappingSchwarzOperator<M,X,Y,C> >
    \n+
    125 {
    \n+\n+
    127
    \n+
    \n+
    128 static inline std::shared_ptr<NonoverlappingSchwarzOperator<M,X,Y,C>> construct(const Arguments& args)
    \n+
    129 {
    \n+
    130 return std::make_shared<NonoverlappingSchwarzOperator<M,X,Y,C>>
    \n+
    131 (args.matrix_, args.comm_);
    \n+
    132 }
    \n+
    \n+
    133 };
    \n+
    \n+
    134
    \n+
    135 template<class M, class X, class Y>
    \n+
    \n+\n+
    137 {
    \n+
    \n+
    138 MatrixAdapterArgs(std::shared_ptr<M> matrix, const SequentialInformation)
    \n+
    139 : matrix_(matrix)
    \n+
    140 {}
    \n+
    \n+
    141
    \n+
    142 std::shared_ptr<M> matrix_;
    \n+
    143 };
    \n+
    \n+
    144
    \n+
    145 template<class M, class X, class Y>
    \n+
    \n+
    146 struct ConstructionTraits<MatrixAdapter<M,X,Y> >
    \n+
    147 {
    \n+\n+
    149
    \n+
    \n+
    150 static inline std::shared_ptr<MatrixAdapter<M,X,Y>> construct(Arguments& args)
    \n+
    151 {
    \n+
    152 return std::make_shared<MatrixAdapter<M,X,Y>>(args.matrix_);
    \n+
    153 }
    \n+
    \n+
    154 };
    \n+
    \n+
    155
    \n+
    156 template<>
    \n+
    \n+
    157 struct ConstructionTraits<SequentialInformation>
    \n+
    158 {
    \n+\n+
    \n+
    160 static inline std::shared_ptr<SequentialInformation> construct(Arguments& args)
    \n+
    161 {
    \n+
    162 return std::make_shared<SequentialInformation>(args.comm_);
    \n+
    163 }
    \n+
    \n+
    164 };
    \n+
    \n+
    165
    \n+
    166
    \n+
    167#if HAVE_MPI
    \n+
    168
    \n+
    169 template<class T1, class T2>
    \n+
    \n+
    170 struct ConstructionTraits<OwnerOverlapCopyCommunication<T1,T2> >
    \n+
    171 {
    \n+\n+
    173
    \n+
    \n+
    174 static inline std::shared_ptr<OwnerOverlapCopyCommunication<T1,T2>> construct(Arguments& args)
    \n+
    175 {
    \n+
    176 return std::make_shared<OwnerOverlapCopyCommunication<T1,T2>>(args.comm_, args.cat_);
    \n+
    177 }
    \n+
    \n+
    178 };
    \n+
    \n+
    179
    \n+
    180#endif
    \n+
    181
    \n+
    183 } // namespace Amg
    \n+
    184} // namespace Dune
    \n+
    185#endif
    \n+
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n+\n+\n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n+
    const int Arguments
    Definition construction.hh:61
    \n+
    SequentialCommunicationArgs(Communication< void * > comm, int cat)
    Definition construction.hh:93
    \n+
    OwnerOverlapCopyCommunicationArgs(MPI_Comm comm, SolverCategory::Category cat)
    Definition construction.hh:82
    \n+
    MPI_Comm comm_
    Definition construction.hh:86
    \n+
    SolverCategory::Category cat_
    Definition construction.hh:87
    \n+
    const C & comm_
    Definition construction.hh:76
    \n+
    ParallelOperatorArgs(std::shared_ptr< M > matrix, const C &comm)
    Definition construction.hh:71
    \n+
    std::shared_ptr< M > matrix_
    Definition construction.hh:75
    \n+
    const void * Arguments
    A type holding all the arguments needed to call the constructor.
    Definition construction.hh:44
    \n+
    static std::shared_ptr< T > construct(Arguments &args)
    Construct an object with the specified arguments.
    Definition construction.hh:52
    \n+
    Communication< void * > comm_
    Definition construction.hh:97
    \n+
    static std::shared_ptr< BlockVector< T, A > > construct(Arguments &n)
    Definition construction.hh:62
    \n
    Definition allocator.hh:11
    \n-
    Definition combinedfunctor.hh:17
    \n-
    static void apply(TT tuple, const T &t)
    Definition combinedfunctor.hh:19
    \n-
    static void apply(TT tuple, const T &t)
    Definition combinedfunctor.hh:29
    \n-
    Definition combinedfunctor.hh:36
    \n-
    CombinedFunctor(const T &tuple_)
    Definition combinedfunctor.hh:38
    \n-
    void operator()(const T1 &t)
    Definition combinedfunctor.hh:43
    \n+
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n+
    A nonoverlapping operator with communication object.
    Definition novlpschwarz.hh:61
    \n+
    Adapter to turn a matrix into a linear operator.
    Definition operators.hh:137
    \n+
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n+
    Definition construction.hh:70
    \n+\n+
    Definition construction.hh:92
    \n+
    An overlapping Schwarz operator.
    Definition schwarz.hh:75
    \n+
    ParallelOperatorArgs< M, C > Arguments
    Definition construction.hh:114
    \n+
    static std::shared_ptr< OverlappingSchwarzOperator< M, X, Y, C > > construct(const Arguments &args)
    Definition construction.hh:116
    \n+
    ParallelOperatorArgs< M, C > Arguments
    Definition construction.hh:126
    \n+
    static std::shared_ptr< NonoverlappingSchwarzOperator< M, X, Y, C > > construct(const Arguments &args)
    Definition construction.hh:128
    \n+
    Definition construction.hh:137
    \n+
    MatrixAdapterArgs(std::shared_ptr< M > matrix, const SequentialInformation)
    Definition construction.hh:138
    \n+
    std::shared_ptr< M > matrix_
    Definition construction.hh:142
    \n+
    static std::shared_ptr< MatrixAdapter< M, X, Y > > construct(Arguments &args)
    Definition construction.hh:150
    \n+
    const MatrixAdapterArgs< M, X, Y > Arguments
    Definition construction.hh:148
    \n+
    const SequentialCommunicationArgs Arguments
    Definition construction.hh:159
    \n+
    static std::shared_ptr< SequentialInformation > construct(Arguments &args)
    Definition construction.hh:160
    \n+
    static std::shared_ptr< OwnerOverlapCopyCommunication< T1, T2 > > construct(Arguments &args)
    Definition construction.hh:174
    \n+
    const OwnerOverlapCopyCommunicationArgs Arguments
    Definition construction.hh:172
    \n+
    Definition pinfo.hh:28
    \n+
    Category
    Definition solvercategory.hh:23
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,82 +1,300 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-combinedfunctor.hh\n+construction.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_COMBINEDFUNCTOR_HH\n-6#define DUNE_AMG_COMBINEDFUNCTOR_HH\n+5#ifndef DUNE_AMGCONSTRUCTION_HH\n+6#define DUNE_AMGCONSTRUCTION_HH\n 7\n-8#include \n-9\n-10namespace _\bD_\bu_\bn_\be\n-11{\n-12 namespace Amg\n-13 {\n-14\n-15 template\n-_\b1_\b6 struct _\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br\n+8#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+9#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n+10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n+11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh>\n+12#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n+13\n+14namespace _\bD_\bu_\bn_\be\n+15{\n+16 namespace Amg\n 17 {\n-18 template\n-_\b1_\b9 static void _\ba_\bp_\bp_\bl_\by(TT tuple, const T& t)\n-20 {\n-21 std::get(tuple) (t);\n-22 _\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b<_\bi_\b-_\b1_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(tuple, t);\n-23 }\n-24 };\n-25 template<>\n-_\b2_\b6 struct _\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br<0>\n-27 {\n-28 template\n-_\b2_\b9 static void _\ba_\bp_\bp_\bl_\by([[maybe_unused]] TT tuple, [[maybe_unused]] const T& t)\n-30 {}\n-31 };\n-32\n-33 template\n-_\b3_\b4 class _\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br :\n-35 public T\n-36 {\n-37 public:\n-_\b3_\b8 _\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br(const T& tuple_)\n-39 : T(tuple_)\n-40 {}\n-41\n-42 template\n-_\b4_\b3 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T1& t)\n-44 {\n-45 _\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b<_\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b__\bs_\bi_\bz_\be_\b<_\bT_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be>::apply(*this, t);\n-46 }\n-47 };\n-48\n-49\n-50 } //namespace Amg\n-51} // namespace Dune\n-52#endif\n+18\n+37 template\n+38 struct ConstructionTraits\n+39 {\n+_\b4_\b4 typedef const void* _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+45\n+_\b5_\b2 static inline std::shared_ptr _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+53 {\n+54 return std::make_shared();\n+55 }\n+56 };\n+57\n+58 template\n+_\b5_\b9 struct ConstructionTraits<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br >\n+60 {\n+_\b6_\b1 typedef const int _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+_\b6_\b2 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& n)\n+63 {\n+64 return std::make_shared>(n);\n+65 }\n+66 };\n+67\n+68 template\n+_\b6_\b9 struct _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs\n+70 {\n+_\b7_\b1 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs(std::shared_ptr matrix, const C& comm)\n+72 : _\bm_\ba_\bt_\br_\bi_\bx_\b_(matrix), _\bc_\bo_\bm_\bm_\b_(comm)\n+73 {}\n+74\n+_\b7_\b5 std::shared_ptr _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n+_\b7_\b6 const C& _\bc_\bo_\bm_\bm_\b_;\n+77 };\n+78\n+79#if HAVE_MPI\n+_\b8_\b0 struct _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+81 {\n+_\b8_\b2 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs(MPI_Comm comm, _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+cat)\n+83 : _\bc_\bo_\bm_\bm_\b_(comm), _\bc_\ba_\bt_\b_(cat)\n+84 {}\n+85\n+_\b8_\b6 MPI_Comm _\bc_\bo_\bm_\bm_\b_;\n+_\b8_\b7 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\b_;\n+88 };\n+89#endif\n+90\n+_\b9_\b1 struct _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+92 {\n+_\b9_\b3 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs(Communication comm, [[maybe_unused]] int\n+cat)\n+94 : _\bc_\bo_\bm_\bm_\b_(comm)\n+95 {}\n+96\n+_\b9_\b7 Communication _\bc_\bo_\bm_\bm_\b_;\n+98 };\n+99\n+100 } // end Amg namspace\n+101\n+102 // forward declaration\n+103 template\n+104 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n+105\n+106 template\n+107 class _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n+108\n+109 namespace Amg\n+110 {\n+111 template\n+_\b1_\b1_\b2 struct ConstructionTraits<_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br >\n+113 {\n+_\b1_\b1_\b4 typedef _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b<_\bM_\b,_\bC_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+115\n+_\b1_\b1_\b6 static inline std::shared_ptr>\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(const _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+117 {\n+118 return std::make_shared>\n+119 (args._\bm_\ba_\bt_\br_\bi_\bx_\b_, args._\bc_\bo_\bm_\bm_\b_);\n+120 }\n+121 };\n+122\n+123 template\n+_\b1_\b2_\b4 struct ConstructionTraits<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br >\n+125 {\n+_\b1_\b2_\b6 typedef _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b<_\bM_\b,_\bC_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+127\n+_\b1_\b2_\b8 static inline std::shared_ptr>\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(const _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+129 {\n+130 return std::make_shared>\n+131 (args._\bm_\ba_\bt_\br_\bi_\bx_\b_, args._\bc_\bo_\bm_\bm_\b_);\n+132 }\n+133 };\n+134\n+135 template\n+_\b1_\b3_\b6 struct _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs\n+137 {\n+_\b1_\b3_\b8 _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs(std::shared_ptr matrix, const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn)\n+139 : _\bm_\ba_\bt_\br_\bi_\bx_\b_(matrix)\n+140 {}\n+141\n+_\b1_\b4_\b2 std::shared_ptr _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n+143 };\n+144\n+145 template\n+_\b1_\b4_\b6 struct ConstructionTraits<_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br >\n+147 {\n+_\b1_\b4_\b8 typedef const _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs_\b<_\bM_\b,_\bX_\b,_\bY_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+149\n+_\b1_\b5_\b0 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs&\n+args)\n+151 {\n+152 return std::make_shared>(args._\bm_\ba_\bt_\br_\bi_\bx_\b_);\n+153 }\n+154 };\n+155\n+156 template<>\n+_\b1_\b5_\b7 struct ConstructionTraits<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn>\n+158 {\n+_\b1_\b5_\b9 typedef const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+_\b1_\b6_\b0 static inline std::shared_ptr _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs&\n+args)\n+161 {\n+162 return std::make_shared(args._\bc_\bo_\bm_\bm_\b_);\n+163 }\n+164 };\n+165\n+166\n+167#if HAVE_MPI\n+168\n+169 template\n+_\b1_\b7_\b0 struct ConstructionTraits<_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn >\n+171 {\n+_\b1_\b7_\b2 typedef const _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+173\n+_\b1_\b7_\b4 static inline std::shared_ptr>\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n+175 {\n+176 return std::make_shared>(args._\bc_\bo_\bm_\bm_\b_,\n+args._\bc_\ba_\bt_\b_);\n+177 }\n+178 };\n+179\n+180#endif\n+181\n+183 } // namespace Amg\n+184} // namespace Dune\n+185#endif\n+_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n+Classes providing communication interfaces for overlapping Schwarz methods.\n+_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n+_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n+Define general, extensible interface for operators. The available\n+implementation wraps a matrix.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+const int Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+SequentialCommunicationArgs(Communication< void * > comm, int cat)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:93\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+OwnerOverlapCopyCommunicationArgs(MPI_Comm comm, SolverCategory::Category cat)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bc_\bo_\bm_\bm_\b_\n+MPI_Comm comm_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:86\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bc_\ba_\bt_\b_\n+SolverCategory::Category cat_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:87\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b:_\b:_\bc_\bo_\bm_\bm_\b_\n+const C & comm_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:76\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs\n+ParallelOperatorArgs(std::shared_ptr< M > matrix, const C &comm)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:71\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n+std::shared_ptr< M > matrix_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+const void * Arguments\n+A type holding all the arguments needed to call the constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< T > construct(Arguments &args)\n+Construct an object with the specified arguments.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bc_\bo_\bm_\bm_\b_\n+Communication< void * > comm_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:97\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< BlockVector< T, A > > construct(Arguments &n)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:62\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:17\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-static void apply(TT tuple, const T &t)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bp_\bp_\bl_\by_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\b0_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-static void apply(TT tuple, const T &t)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:29\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br\n-CombinedFunctor(const T &tuple_)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:38\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bF_\bu_\bn_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const T1 &t)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn combinedfunctor.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A vector of blocks with memory management.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A nonoverlapping operator with communication object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br\n+Adapter to turn a matrix into a linear operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:137\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+A class setting up standard communication for a two-valued attribute set with\n+owner/overlap/copy sema...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bA_\br_\bg_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:92\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+An overlapping Schwarz operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+ParallelOperatorArgs< M, C > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< OverlappingSchwarzOperator< M, X, Y, C > > construct\n+(const Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:116\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+ParallelOperatorArgs< M, C > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< NonoverlappingSchwarzOperator< M, X, Y, C > > construct\n+(const Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:128\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:137\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs\n+MatrixAdapterArgs(std::shared_ptr< M > matrix, const SequentialInformation)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:138\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n+std::shared_ptr< M > matrix_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:142\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< MatrixAdapter< M, X, Y > > construct(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+const MatrixAdapterArgs< M, X, Y > Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:148\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+const SequentialCommunicationArgs Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:159\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< SequentialInformation > construct(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:160\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>_\b:_\b:\n+_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< OwnerOverlapCopyCommunication< T1, T2 > > construct\n+(Arguments &args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:174\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>_\b:_\b:\n+_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+const OwnerOverlapCopyCommunicationArgs Arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:172\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00098.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00098.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixhierarchy.hh File Reference\n+dune-istl: fastamg.hh File Reference\n \n \n \n \n \n \n \n@@ -72,79 +72,74 @@\n
  • dune
  • istl
  • paamg
  • \n \n \n \n+
    fastamg.hh File Reference
    \n \n
    \n \n-

    Provides a classes representing the hierarchies in AMG. \n+

    A fast AMG method, that currently only allows only Gauss-Seidel smoothing and is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep with the defect calculation to reduce memory transfers. \n More...

    \n-
    #include <algorithm>
    \n-#include <tuple>
    \n-#include "aggregates.hh"
    \n-#include "graph.hh"
    \n-#include "galerkin.hh"
    \n-#include "renumberer.hh"
    \n-#include "graphcreator.hh"
    \n-#include "hierarchy.hh"
    \n-#include <dune/istl/bvector.hh>
    \n-#include <dune/common/parallel/indexset.hh>
    \n-#include <dune/istl/matrixutils.hh>
    \n-#include <dune/istl/matrixredistribute.hh>
    \n-#include <dune/istl/paamg/dependency.hh>
    \n-#include <dune/istl/paamg/indicescoarsener.hh>
    \n-#include <dune/istl/paamg/globalaggregates.hh>
    \n-#include <dune/istl/paamg/construction.hh>
    \n-#include <dune/istl/paamg/smoother.hh>
    \n-#include <dune/istl/paamg/transfer.hh>
    \n+
    #include <memory>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/istl/paamg/smoother.hh>
    \n+#include <dune/istl/paamg/transfer.hh>
    \n+#include <dune/istl/paamg/matrixhierarchy.hh>
    \n+#include <dune/istl/solvers.hh>
    \n+#include <dune/istl/scalarproducts.hh>
    \n+#include <dune/istl/superlu.hh>
    \n+#include <dune/istl/umfpack.hh>
    \n+#include <dune/istl/solvertype.hh>
    \n+#include <dune/istl/io.hh>
    \n+#include <dune/istl/preconditioners.hh>
    \n+#include "fastamgsmoother.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::Amg::MatrixHierarchy< M, PI, A >
     The hierarchies build by the coarsening process. More...
     
    struct  Dune::Amg::MatrixHierarchy< M, PI, A >::MatrixStats< Matrix, true >::calc
     
    class  Dune::Amg::CoarsenCriterion< T >
     The criterion describing the stop criteria for the coarsening process. More...
    class  Dune::Amg::FastAMG< M, X, PI, A >
     A fast (sequential) algebraic multigrid based on agglomeration that saves memory bandwidth. More...
     
    \n \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-\n-\n-\n-

    \n-Enumerations

    enum  { Dune::Amg::MAX_PROCESSES = 72000\n- }
     
    \n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n

    \n-Functions

    template<typename M , typename C1 >
    bool Dune::Amg::repartitionAndDistributeMatrix (const M &origMatrix, std::shared_ptr< M > newMatrix, SequentialInformation &origComm, std::shared_ptr< SequentialInformation > &newComm, RedistributeInformation< SequentialInformation > &ri, int nparts, C1 &criterion)
     
    template<typename M , typename C , typename C1 >
    bool Dune::Amg::repartitionAndDistributeMatrix (const M &origMatrix, std::shared_ptr< M > newMatrix, C &origComm, std::shared_ptr< C > &newComm, RedistributeInformation< C > &ri, int nparts, C1 &criterion)
     

    \n+Macros

    #define DIRECTSOLVER   SuperLU
     
    \n

    Detailed Description

    \n-

    Provides a classes representing the hierarchies in AMG.

    \n+

    A fast AMG method, that currently only allows only Gauss-Seidel smoothing and is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep with the defect calculation to reduce memory transfers.

    \n
    Author
    Markus Blatt
    \n-
    \n+

    Macro Definition Documentation

    \n+\n+

    ◆ DIRECTSOLVER

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+
    #define DIRECTSOLVER   SuperLU
    \n+
    \n+\n+
    \n+
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,68 +1,51 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bE_\bn_\bu_\bm_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-matrixhierarchy.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n-\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Provides a classes representing the hierarchies in AMG. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n-#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n-#include \"_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\"\n-#include \"_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\"\n-#include \"_\bg_\br_\ba_\bp_\bh_\bc_\br_\be_\ba_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \"_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh\"\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bi_\bn_\bd_\bi_\bc_\be_\bs_\bc_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bg_\bl_\bo_\bb_\ba_\bl_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bM_\ba_\bc_\br_\bo_\bs\n+fastamg.hh File Reference\n+A fast AMG method, that currently only allows only Gauss-Seidel smoothing and\n+is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep\n+with the defect calculation to reduce memory transfers. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n #include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n #include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n+#include \"_\bf_\ba_\bs_\bt_\ba_\bm_\bg_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bM_\b,_\b _\bP_\bI_\b,_\b _\bA_\b _\b>\n-\u00a0 The hierarchies build by the coarsening process. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bM_\b,_\b _\bP_\bI_\b,_\b _\bA_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:\n- _\bc_\ba_\bl_\bc\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\b _\bT_\b _\b>\n-\u00a0 The criterion describing the stop criteria for the coarsening process.\n- _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bP_\bI_\b,_\b _\bA_\b _\b>\n+\u00a0 A fast (sequential) algebraic multigrid based on agglomeration that\n+ saves memory bandwidth. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n-E\bEn\bnu\bum\bme\ber\bra\bat\bti\bio\bon\bns\bs\n-enum \u00a0 { _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\bA_\bX_\b__\bP_\bR_\bO_\bC_\bE_\bS_\bS_\bE_\bS = 72000 }\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx (const M &origMatrix, std::\n- shared_ptr< M > newMatrix, _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn &origComm, std::\n- shared_ptr< _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn > &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn<\n- _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn > &ri, int nparts, C1 &criterion)\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx (const M &origMatrix, std::\n- shared_ptr< M > newMatrix, C &origComm, std::shared_ptr< C > &newComm,\n- _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< C > &ri, int nparts, C1 &criterion)\n+M\bMa\bac\bcr\bro\bos\bs\n+#define\u00a0 _\bD_\bI_\bR_\bE_\bC_\bT_\bS_\bO_\bL_\bV_\bE_\bR\u00a0\u00a0\u00a0SuperLU\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides a classes representing the hierarchies in AMG.\n+A fast AMG method, that currently only allows only Gauss-Seidel smoothing and\n+is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep\n+with the defect calculation to reduce memory transfers.\n Author\n Markus Blatt\n+*\b**\b**\b**\b**\b* M\bMa\bac\bcr\bro\bo D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDI\bIR\bRE\bEC\bCT\bTS\bSO\bOL\bLV\bVE\bER\bR *\b**\b**\b**\b**\b*\n+#define DIRECTSOLVER\u00a0\u00a0\u00a0SuperLU\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00098_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00098_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixhierarchy.hh Source File\n+dune-istl: fastamg.hh Source File\n \n \n \n \n \n \n \n@@ -74,1004 +74,662 @@\n \n
    \n \n
    \n \n
    \n-
    matrixhierarchy.hh
    \n+
    fastamg.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_MATRIXHIERARCHY_HH
    \n-
    6#define DUNE_AMG_MATRIXHIERARCHY_HH
    \n+
    5#ifndef DUNE_ISTL_FASTAMG_HH
    \n+
    6#define DUNE_ISTL_FASTAMG_HH
    \n
    7
    \n-
    8#include <algorithm>
    \n-
    9#include <tuple>
    \n-
    10#include "aggregates.hh"
    \n-
    11#include "graph.hh"
    \n-
    12#include "galerkin.hh"
    \n-
    13#include "renumberer.hh"
    \n-
    14#include "graphcreator.hh"
    \n-
    15#include "hierarchy.hh"
    \n-
    16#include <dune/istl/bvector.hh>
    \n-
    17#include <dune/common/parallel/indexset.hh>
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-
    27
    \n-
    28namespace Dune
    \n-
    29{
    \n-
    30 namespace Amg
    \n-
    31 {
    \n-
    42 enum {
    \n-
    50 MAX_PROCESSES = 72000
    \n-
    51 };
    \n-
    52
    \n-
    59 template<class M, class PI, class A=std::allocator<M> >
    \n-
    \n-\n-
    61 {
    \n-
    62 public:
    \n-
    64 typedef M MatrixOperator;
    \n-
    65
    \n-
    67 typedef typename MatrixOperator::matrix_type Matrix;
    \n-
    68
    \n-\n-
    71
    \n-
    73 typedef A Allocator;
    \n-
    74
    \n-\n-
    77
    \n-\n-
    80
    \n-\n-
    83
    \n-
    85 using AAllocator = typename std::allocator_traits<Allocator>::template rebind_alloc<AggregatesMap*>;
    \n-
    86
    \n-
    88 typedef std::list<AggregatesMap*,AAllocator> AggregatesMapList;
    \n-
    89
    \n-\n-
    92
    \n-
    94 using RILAllocator = typename std::allocator_traits<Allocator>::template rebind_alloc<RedistributeInfoType>;
    \n-
    95
    \n-
    97 typedef std::list<RedistributeInfoType,RILAllocator> RedistributeInfoList;
    \n-
    98
    \n-
    104 MatrixHierarchy(std::shared_ptr<MatrixOperator> fineMatrix,
    \n-
    105 std::shared_ptr<ParallelInformation> pinfo = std::make_shared<ParallelInformation>());
    \n-
    106
    \n-\n-
    108
    \n-
    114 template<typename O, typename T>
    \n-
    115 void build(const T& criterion);
    \n-
    116
    \n-
    124 template<class F>
    \n-
    125 void recalculateGalerkin(const F& copyFlags);
    \n-
    126
    \n-
    131 template<class V, class BA, class TA>
    \n-
    132 void coarsenVector(Hierarchy<BlockVector<V,BA>, TA>& hierarchy) const;
    \n-
    133
    \n-
    139 template<class S, class TA>
    \n-
    140 void coarsenSmoother(Hierarchy<S,TA>& smoothers,
    \n-
    141 const typename SmootherTraits<S>::Arguments& args) const;
    \n-
    142
    \n-
    147 std::size_t levels() const;
    \n-
    148
    \n-
    153 std::size_t maxlevels() const;
    \n-
    154
    \n-
    155 bool hasCoarsest() const;
    \n-
    156
    \n-
    161 bool isBuilt() const;
    \n-
    162
    \n-
    167 const ParallelMatrixHierarchy& matrices() const;
    \n-
    168
    \n-\n-
    174
    \n-
    179 const AggregatesMapList& aggregatesMaps() const;
    \n-
    180
    \n-\n-
    187
    \n-
    \n-\n-
    189 {
    \n-
    190 return prolongDamp_;
    \n-
    191 }
    \n-
    \n-
    192
    \n-
    203 void getCoarsestAggregatesOnFinest(std::vector<std::size_t>& data) const;
    \n-
    204
    \n-
    205 private:
    \n-
    206 typedef typename ConstructionTraits<MatrixOperator>::Arguments MatrixArgs;
    \n-
    207 typedef typename ConstructionTraits<ParallelInformation>::Arguments CommunicationArgs;
    \n-
    209 AggregatesMapList aggregatesMaps_;
    \n-
    211 RedistributeInfoList redistributes_;
    \n-
    213 ParallelMatrixHierarchy matrices_;
    \n-
    215 ParallelInformationHierarchy parallelInformation_;
    \n-
    216
    \n-
    218 bool built_;
    \n-
    219
    \n-
    221 int maxlevels_;
    \n-
    222
    \n-
    223 double prolongDamp_;
    \n-
    224
    \n-
    228 template<class Matrix, bool print>
    \n-
    229 struct MatrixStats
    \n-
    230 {
    \n-
    231
    \n-
    235 static void stats([[maybe_unused]] const Matrix& matrix)
    \n-
    236 {}
    \n-
    237 };
    \n-
    238
    \n-
    239 template<class Matrix>
    \n-
    240 struct MatrixStats<Matrix,true>
    \n-
    241 {
    \n-
    \n-
    242 struct calc
    \n-
    243 {
    \n-
    244 typedef typename Matrix::size_type size_type;
    \n-
    245 typedef typename Matrix::row_type matrix_row;
    \n-
    246
    \n-
    \n-\n-
    248 {
    \n-
    249 min=std::numeric_limits<size_type>::max();
    \n-
    250 max=0;
    \n-
    251 sum=0;
    \n-
    252 }
    \n-
    \n-
    253
    \n-
    \n-
    254 void operator()(const matrix_row& row)
    \n-
    255 {
    \n-
    256 min=std::min(min, row.size());
    \n-
    257 max=std::max(max, row.size());
    \n-
    258 sum += row.size();
    \n-
    259 }
    \n-
    \n-
    260
    \n-\n-\n-\n-
    264 };
    \n-
    \n-
    268 static void stats(const Matrix& matrix)
    \n-
    269 {
    \n-
    270 calc c= for_each(matrix.begin(), matrix.end(), calc());
    \n-
    271 dinfo<<"Matrix row: min="<<c.min<<" max="<<c.max
    \n-
    272 <<" average="<<static_cast<double>(c.sum)/matrix.N()
    \n-
    273 <<std::endl;
    \n-
    274 }
    \n-
    275 };
    \n-
    276 };
    \n-
    \n-
    277
    \n-
    281 template<class T>
    \n-
    \n-
    282 class CoarsenCriterion : public T
    \n-
    283 {
    \n-
    284 public:
    \n-\n-
    290
    \n-
    \n-
    301 CoarsenCriterion(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2,
    \n-
    302 double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    \n-
    303 : AggregationCriterion(Dune::Amg::Parameters(maxLevel, coarsenTarget, minCoarsenRate, prolongDamp, accumulate))
    \n-
    304 {}
    \n-
    \n-
    305
    \n-
    \n-\n-
    307 : AggregationCriterion(parms)
    \n-
    308 {}
    \n+
    8#include <memory>
    \n+
    9#include <dune/common/exceptions.hh>
    \n+
    10#include <dune/common/typetraits.hh>
    \n+\n+\n+\n+
    14#include <dune/istl/solvers.hh>
    \n+\n+
    16#include <dune/istl/superlu.hh>
    \n+
    17#include <dune/istl/umfpack.hh>
    \n+\n+
    19#include <dune/istl/io.hh>
    \n+\n+
    21
    \n+
    22#include "fastamgsmoother.hh"
    \n+
    23
    \n+
    32namespace Dune
    \n+
    33{
    \n+
    34 namespace Amg
    \n+
    35 {
    \n+
    58 template<class M, class X, class PI=SequentialInformation, class A=std::allocator<X> >
    \n+
    \n+
    59 class FastAMG : public Preconditioner<X,X>
    \n+
    60 {
    \n+
    61 public:
    \n+
    63 typedef M Operator;
    \n+\n+\n+\n+
    75
    \n+
    77 typedef X Domain;
    \n+
    79 typedef X Range;
    \n+\n+
    82
    \n+
    90 FastAMG(OperatorHierarchy& matrices, CoarseSolver& coarseSolver,
    \n+
    91 const Parameters& parms,
    \n+
    92 bool symmetric=true);
    \n+
    93
    \n+
    105 template<class C>
    \n+
    106 FastAMG(const Operator& fineOperator, const C& criterion,
    \n+
    107 const Parameters& parms=Parameters(),
    \n+
    108 bool symmetric=true,
    \n+\n+
    110
    \n+
    114 FastAMG(const FastAMG& amg);
    \n+
    115
    \n+
    117 void pre(Domain& x, Range& b);
    \n+
    118
    \n+
    120 void apply(Domain& v, const Range& d);
    \n+
    121
    \n+
    \n+\n+
    124 {
    \n+\n+
    126 }
    \n+
    \n+
    127
    \n+
    129 void post(Domain& x);
    \n+
    130
    \n+
    135 template<class A1>
    \n+
    136 void getCoarsestAggregateNumbers(std::vector<std::size_t,A1>& cont);
    \n+
    137
    \n+
    138 std::size_t levels();
    \n+
    139
    \n+
    140 std::size_t maxlevels();
    \n+
    141
    \n+
    \n+\n+
    151 {
    \n+
    152 matrices_->recalculateGalerkin(NegateSet<typename PI::OwnerSet>());
    \n+
    153 }
    \n
    \n-
    309
    \n-
    310 };
    \n-
    \n-
    311
    \n-
    312 template<typename M, typename C1>
    \n-
    \n-
    313 bool repartitionAndDistributeMatrix([[maybe_unused]] const M& origMatrix,
    \n-
    314 [[maybe_unused]] std::shared_ptr<M> newMatrix,
    \n-
    315 [[maybe_unused]] SequentialInformation& origComm,
    \n-
    316 [[maybe_unused]] std::shared_ptr<SequentialInformation>& newComm,
    \n-\n-
    318 [[maybe_unused]] int nparts,
    \n-
    319 [[maybe_unused]] C1& criterion)
    \n-
    320 {
    \n-
    321 DUNE_THROW(NotImplemented, "Redistribution does not make sense in sequential code!");
    \n-
    322 }
    \n-
    \n-
    323
    \n-
    324
    \n-
    325 template<typename M, typename C, typename C1>
    \n-
    \n-
    326 bool repartitionAndDistributeMatrix(const M& origMatrix,
    \n-
    327 std::shared_ptr<M> newMatrix,
    \n-
    328 C& origComm,
    \n-
    329 std::shared_ptr<C>& newComm,
    \n-\n-
    331 int nparts, C1& criterion)
    \n-
    332 {
    \n-
    333 Timer time;
    \n-
    334#ifdef AMG_REPART_ON_COMM_GRAPH
    \n-
    335 // Done not repartition the matrix graph, but a graph of the communication scheme.
    \n-
    336 bool existentOnRedist=Dune::commGraphRepartition(origMatrix, origComm, nparts, newComm,
    \n-
    337 ri.getInterface(),
    \n-
    338 criterion.debugLevel()>1);
    \n-
    339
    \n-
    340#else
    \n-\n-\n-\n-\n-
    345 IdentityMap,
    \n-
    346 IdentityMap> PropertiesGraph;
    \n-
    347 MatrixGraph graph(origMatrix);
    \n-
    348 PropertiesGraph pgraph(graph);
    \n-
    349 buildDependency(pgraph, origMatrix, criterion, false);
    \n-
    350
    \n-
    351#ifdef DEBUG_REPART
    \n-
    352 if(origComm.communicator().rank()==0)
    \n-
    353 std::cout<<"Original matrix"<<std::endl;
    \n-
    354 origComm.communicator().barrier();
    \n-
    355 printGlobalSparseMatrix(origMatrix, origComm, std::cout);
    \n-
    356#endif
    \n-
    357 bool existentOnRedist=Dune::graphRepartition(pgraph, origComm, nparts,
    \n-
    358 newComm, ri.getInterface(),
    \n-
    359 criterion.debugLevel()>1);
    \n-
    360#endif // if else AMG_REPART
    \n-
    361
    \n-
    362 if(origComm.communicator().rank()==0 && criterion.debugLevel()>1)
    \n-
    363 std::cout<<"Repartitioning took "<<time.elapsed()<<" seconds."<<std::endl;
    \n-
    364
    \n-
    365 ri.setSetup();
    \n-
    366
    \n-
    367#ifdef DEBUG_REPART
    \n-
    368 ri.checkInterface(origComm.indexSet(), newComm->indexSet(), origComm.communicator());
    \n-
    369#endif
    \n-
    370
    \n-
    371 redistributeMatrix(const_cast<M&>(origMatrix), *newMatrix, origComm, *newComm, ri);
    \n-
    372
    \n-
    373#ifdef DEBUG_REPART
    \n-
    374 if(origComm.communicator().rank()==0)
    \n-
    375 std::cout<<"Original matrix"<<std::endl;
    \n-
    376 origComm.communicator().barrier();
    \n-
    377 if(newComm->communicator().size()>0)
    \n-
    378 printGlobalSparseMatrix(*newMatrix, *newComm, std::cout);
    \n-
    379 origComm.communicator().barrier();
    \n-
    380#endif
    \n-
    381
    \n-
    382 if(origComm.communicator().rank()==0 && criterion.debugLevel()>1)
    \n-
    383 std::cout<<"Redistributing matrix took "<<time.elapsed()<<" seconds."<<std::endl;
    \n-
    384 return existentOnRedist;
    \n-
    385
    \n-
    386 }
    \n-
    \n-
    387
    \n-
    388 template<class M, class IS, class A>
    \n-
    \n-
    389 MatrixHierarchy<M,IS,A>::MatrixHierarchy(std::shared_ptr<MatrixOperator> fineMatrix,
    \n-
    390 std::shared_ptr<ParallelInformation> pinfo)
    \n-
    391 : matrices_(fineMatrix),
    \n-
    392 parallelInformation_(pinfo)
    \n-
    393 {
    \n-
    394 if (SolverCategory::category(*fineMatrix) != SolverCategory::category(*pinfo))
    \n-
    395 DUNE_THROW(ISTLError, "MatrixOperator and ParallelInformation must belong to the same category!");
    \n-
    396 }
    \n-
    \n-
    397
    \n-
    398 template<class M, class IS, class A>
    \n-
    399 template<typename O, typename T>
    \n-
    \n-
    400 void MatrixHierarchy<M,IS,A>::build(const T& criterion)
    \n-
    401 {
    \n-
    402 prolongDamp_ = criterion.getProlongationDampingFactor();
    \n-
    403 typedef O OverlapFlags;
    \n-
    404 typedef typename ParallelMatrixHierarchy::Iterator MatIterator;
    \n-
    405 typedef typename ParallelInformationHierarchy::Iterator PInfoIterator;
    \n-
    406
    \n-
    407 static const int noints=(Dune::Amg::MAX_PROCESSES/4096>0) ? (Dune::Amg::MAX_PROCESSES/4096) : 1;
    \n-
    408
    \n-
    409 typedef bigunsignedint<sizeof(int)*8*noints> BIGINT;
    \n-\n-
    411 MatIterator mlevel = matrices_.finest();
    \n-
    412 MatrixStats<typename M::matrix_type,MINIMAL_DEBUG_LEVEL<=INFO_DEBUG_LEVEL>::stats(mlevel->getmat());
    \n-
    413
    \n-
    414 PInfoIterator infoLevel = parallelInformation_.finest();
    \n-
    415 BIGINT finenonzeros=countNonZeros(mlevel->getmat());
    \n-
    416 finenonzeros = infoLevel->communicator().sum(finenonzeros);
    \n-
    417 BIGINT allnonzeros = finenonzeros;
    \n-
    418
    \n-
    419
    \n-
    420 int level = 0;
    \n-
    421 int rank = 0;
    \n-
    422
    \n-
    423 BIGINT unknowns = mlevel->getmat().N();
    \n+
    154
    \n+
    159 bool usesDirectCoarseLevelSolver() const;
    \n+
    160
    \n+
    161 private:
    \n+
    168 template<class C>
    \n+
    169 void createHierarchies(C& criterion,
    \n+
    170 const std::shared_ptr<const Operator>& matrixptr,
    \n+
    171 const PI& pinfo);
    \n+
    172
    \n+
    179 struct LevelContext
    \n+
    180 {
    \n+
    184 typename OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix;
    \n+\n+
    192 typename OperatorHierarchy::RedistributeInfoList::const_iterator redist;
    \n+
    196 typename OperatorHierarchy::AggregatesMapList::const_iterator aggregates;
    \n+\n+\n+\n+
    212 std::size_t level;
    \n+
    213 };
    \n+
    214
    \n+
    216 void mgc(LevelContext& levelContext, Domain& x, const Range& b);
    \n+
    217
    \n+
    224 void presmooth(LevelContext& levelContext, Domain& x, const Range& b);
    \n+
    225
    \n+
    232 void postsmooth(LevelContext& levelContext, Domain& x, const Range& b);
    \n+
    233
    \n+
    240 void moveToFineLevel(LevelContext& levelContext, bool processedFineLevel,
    \n+
    241 Domain& fineX);
    \n+
    242
    \n+
    247 bool moveToCoarseLevel(LevelContext& levelContext);
    \n+
    248
    \n+
    253 void initIteratorsWithFineLevel(LevelContext& levelContext);
    \n+
    254
    \n+
    256 std::shared_ptr<OperatorHierarchy> matrices_;
    \n+
    258 std::shared_ptr<CoarseSolver> solver_;
    \n+
    260 std::shared_ptr<Hierarchy<Range,A>> rhs_;
    \n+
    262 std::shared_ptr<Hierarchy<Domain,A>> lhs_;
    \n+
    264 std::shared_ptr<Hierarchy<Domain,A>> residual_;
    \n+
    265
    \n+\n+
    269 std::shared_ptr<ScalarProduct> scalarProduct_;
    \n+
    271 std::size_t gamma_;
    \n+
    273 std::size_t preSteps_;
    \n+
    275 std::size_t postSteps_;
    \n+
    276 std::size_t level;
    \n+
    277 bool buildHierarchy_;
    \n+
    278 bool symmetric;
    \n+
    279 bool coarsesolverconverged;
    \n+\n+
    281 typedef std::shared_ptr<Smoother> SmootherPointer;
    \n+
    282 SmootherPointer coarseSmoother_;
    \n+
    284 std::size_t verbosity_;
    \n+
    285 };
    \n+
    \n+
    286
    \n+
    287 template<class M, class X, class PI, class A>
    \n+
    \n+\n+
    289 : matrices_(amg.matrices_), solver_(amg.solver_),
    \n+
    290 rhs_(), lhs_(), residual_(), scalarProduct_(amg.scalarProduct_),
    \n+
    291 gamma_(amg.gamma_), preSteps_(amg.preSteps_), postSteps_(amg.postSteps_),
    \n+
    292 symmetric(amg.symmetric), coarsesolverconverged(amg.coarsesolverconverged),
    \n+
    293 coarseSmoother_(amg.coarseSmoother_), verbosity_(amg.verbosity_)
    \n+
    294 {}
    \n+
    \n+
    295
    \n+
    296 template<class M, class X, class PI, class A>
    \n+
    \n+\n+
    298 const Parameters& parms, bool symmetric_)
    \n+
    299 : matrices_(stackobject_to_shared_ptr(matrices)), solver_(&coarseSolver),
    \n+
    300 rhs_(), lhs_(), residual_(), scalarProduct_(),
    \n+
    301 gamma_(parms.getGamma()), preSteps_(parms.getNoPreSmoothSteps()),
    \n+
    302 postSteps_(parms.getNoPostSmoothSteps()), buildHierarchy_(false),
    \n+
    303 symmetric(symmetric_), coarsesolverconverged(true),
    \n+
    304 coarseSmoother_(), verbosity_(parms.debugLevel())
    \n+
    305 {
    \n+
    306 if(preSteps_>1||postSteps_>1)
    \n+
    307 {
    \n+
    308 std::cerr<<"WARNING only one step of smoothing is supported!"<<std::endl;
    \n+
    309 preSteps_=postSteps_=0;
    \n+
    310 }
    \n+
    311 assert(matrices_->isBuilt());
    \n+
    312 static_assert(std::is_same<PI,SequentialInformation>::value,
    \n+
    313 "Currently only sequential runs are supported");
    \n+
    314 }
    \n+
    \n+
    315 template<class M, class X, class PI, class A>
    \n+
    316 template<class C>
    \n+
    \n+\n+
    318 const C& criterion,
    \n+
    319 const Parameters& parms,
    \n+
    320 bool symmetric_,
    \n+
    321 const PI& pinfo)
    \n+
    322 : solver_(), rhs_(), lhs_(), residual_(), scalarProduct_(), gamma_(parms.getGamma()),
    \n+
    323 preSteps_(parms.getNoPreSmoothSteps()), postSteps_(parms.getNoPostSmoothSteps()),
    \n+
    324 buildHierarchy_(true),
    \n+
    325 symmetric(symmetric_), coarsesolverconverged(true),
    \n+
    326 coarseSmoother_(), verbosity_(criterion.debugLevel())
    \n+
    327 {
    \n+
    328 if(preSteps_>1||postSteps_>1)
    \n+
    329 {
    \n+
    330 std::cerr<<"WARNING only one step of smoothing is supported!"<<std::endl;
    \n+
    331 preSteps_=postSteps_=1;
    \n+
    332 }
    \n+
    333 static_assert(std::is_same<PI,SequentialInformation>::value,
    \n+
    334 "Currently only sequential runs are supported");
    \n+
    335 // TODO: reestablish compile time checks.
    \n+
    336 //static_assert(static_cast<int>(PI::category)==static_cast<int>(S::category),
    \n+
    337 // "Matrix and Solver must match in terms of category!");
    \n+
    338 auto matrixptr = stackobject_to_shared_ptr(matrix);
    \n+
    339 createHierarchies(criterion, matrixptr, pinfo);
    \n+
    340 }
    \n+
    \n+
    341
    \n+
    342 template<class M, class X, class PI, class A>
    \n+
    343 template<class C>
    \n+
    344 void FastAMG<M,X,PI,A>::createHierarchies(C& criterion,
    \n+
    345 const std::shared_ptr<const Operator>& matrixptr,
    \n+
    346 const PI& pinfo)
    \n+
    347 {
    \n+
    348 Timer watch;
    \n+
    349 matrices_ = std::make_shared<OperatorHierarchy>(
    \n+
    350 std::const_pointer_cast<Operator>(matrixptr),
    \n+
    351 stackobject_to_shared_ptr(const_cast<PI&>(pinfo)));
    \n+
    352
    \n+
    353 matrices_->template build<NegateSet<typename PI::OwnerSet> >(criterion);
    \n+
    354
    \n+
    355 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator().rank()==0)
    \n+
    356 std::cout<<"Building Hierarchy of "<<matrices_->maxlevels()<<" levels took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n+
    357
    \n+
    358 if(buildHierarchy_ && matrices_->levels()==matrices_->maxlevels()) {
    \n+
    359 // We have the carsest level. Create the coarse Solver
    \n+
    360 typedef typename SmootherTraits<Smoother>::Arguments SmootherArgs;
    \n+
    361 SmootherArgs sargs;
    \n+
    362 sargs.iterations = 1;
    \n+
    363
    \n+\n+
    365 cargs.setArgs(sargs);
    \n+
    366 if(matrices_->redistributeInformation().back().isSetup()) {
    \n+
    367 // Solve on the redistributed partitioning
    \n+
    368 cargs.setMatrix(matrices_->matrices().coarsest().getRedistributed().getmat());
    \n+
    369 cargs.setComm(matrices_->parallelInformation().coarsest().getRedistributed());
    \n+
    370 }else{
    \n+
    371 cargs.setMatrix(matrices_->matrices().coarsest()->getmat());
    \n+
    372 cargs.setComm(*matrices_->parallelInformation().coarsest());
    \n+
    373 }
    \n+
    374
    \n+
    375 coarseSmoother_ = ConstructionTraits<Smoother>::construct(cargs);
    \n+
    376 scalarProduct_ = createScalarProduct<X>(cargs.getComm(),category());
    \n+
    377
    \n+
    378#if HAVE_SUPERLU|| HAVE_SUITESPARSE_UMFPACK
    \n+
    379#if HAVE_SUITESPARSE_UMFPACK
    \n+
    380#define DIRECTSOLVER UMFPack
    \n+
    381#else
    \n+
    382#define DIRECTSOLVER SuperLU
    \n+
    383#endif
    \n+
    384 // Use superlu if we are purely sequential or with only one processor on the coarsest level.
    \n+
    385 if(std::is_same<ParallelInformation,SequentialInformation>::value // sequential mode
    \n+
    386 || matrices_->parallelInformation().coarsest()->communicator().size()==1 //parallel mode and only one processor
    \n+
    387 || (matrices_->parallelInformation().coarsest().isRedistributed()
    \n+
    388 && matrices_->parallelInformation().coarsest().getRedistributed().communicator().size()==1
    \n+
    389 && matrices_->parallelInformation().coarsest().getRedistributed().communicator().size()>0)) { // redistribute and 1 proc
    \n+
    390 if(verbosity_>0 && matrices_->parallelInformation().coarsest()->communicator().rank()==0)
    \n+
    391 std::cout<<"Using superlu"<<std::endl;
    \n+
    392 if(matrices_->parallelInformation().coarsest().isRedistributed())
    \n+
    393 {
    \n+
    394 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)
    \n+
    395 // We are still participating on this level
    \n+
    396 solver_.reset(new DIRECTSOLVER<typename M::matrix_type>(matrices_->matrices().coarsest().getRedistributed().getmat(), false, false));
    \n+
    397 else
    \n+
    398 solver_.reset();
    \n+
    399 }else
    \n+
    400 solver_.reset(new DIRECTSOLVER<typename M::matrix_type>(matrices_->matrices().coarsest()->getmat(), false, false));
    \n+
    401 }else
    \n+
    402#undef DIRECTSOLVER
    \n+
    403#endif // HAVE_SUPERLU|| HAVE_SUITESPARSE_UMFPACK
    \n+
    404 {
    \n+
    405 if(matrices_->parallelInformation().coarsest().isRedistributed())
    \n+
    406 {
    \n+
    407 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)
    \n+
    408 // We are still participating on this level
    \n+
    409 solver_.reset(new BiCGSTABSolver<X>(const_cast<M&>(matrices_->matrices().coarsest().getRedistributed()),
    \n+
    410 *scalarProduct_,
    \n+
    411 *coarseSmoother_, 1E-2, 1000, 0));
    \n+
    412 else
    \n+
    413 solver_.reset();
    \n+
    414 }else
    \n+
    415 solver_.reset(new BiCGSTABSolver<X>(const_cast<M&>(*matrices_->matrices().coarsest()),
    \n+
    416 *scalarProduct_,
    \n+
    417 *coarseSmoother_, 1E-2, 1000, 0));
    \n+
    418 }
    \n+
    419 }
    \n+
    420
    \n+
    421 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator().rank()==0)
    \n+
    422 std::cout<<"Building Hierarchy of "<<matrices_->maxlevels()<<" levels took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n+
    423 }
    \n
    424
    \n-
    425 unknowns = infoLevel->communicator().sum(unknowns);
    \n-
    426 double dunknowns=unknowns.todouble();
    \n-
    427 infoLevel->buildGlobalLookup(mlevel->getmat().N());
    \n-
    428 redistributes_.push_back(RedistributeInfoType());
    \n-
    429
    \n-
    430 for(; level < criterion.maxLevel(); ++level, ++mlevel) {
    \n-
    431 assert(matrices_.levels()==redistributes_.size());
    \n-
    432 rank = infoLevel->communicator().rank();
    \n-
    433 if(rank==0 && criterion.debugLevel()>1)
    \n-
    434 std::cout<<"Level "<<level<<" has "<<dunknowns<<" unknowns, "<<dunknowns/infoLevel->communicator().size()
    \n-
    435 <<" unknowns per proc (procs="<<infoLevel->communicator().size()<<")"<<std::endl;
    \n-
    436
    \n-
    437 MatrixOperator* matrix=&(*mlevel);
    \n-
    438 ParallelInformation* info =&(*infoLevel);
    \n-
    439
    \n-
    440 if((
    \n-
    441#if HAVE_PARMETIS
    \n-
    442 criterion.accumulate()==successiveAccu
    \n-
    443#else
    \n-
    444 false
    \n-
    445#endif
    \n-
    446 || (criterion.accumulate()==atOnceAccu
    \n-
    447 && dunknowns < 30*infoLevel->communicator().size()))
    \n-
    448 && infoLevel->communicator().size()>1 &&
    \n-
    449 dunknowns/infoLevel->communicator().size() <= criterion.coarsenTarget())
    \n-
    450 {
    \n-
    451 // accumulate to fewer processors
    \n-
    452 std::shared_ptr<Matrix> redistMat = std::make_shared<Matrix>();
    \n-
    453 std::shared_ptr<ParallelInformation> redistComm;
    \n-
    454 std::size_t nodomains = (std::size_t)std::ceil(dunknowns/(criterion.minAggregateSize()
    \n-
    455 *criterion.coarsenTarget()));
    \n-
    456 if( nodomains<=criterion.minAggregateSize()/2 ||
    \n-
    457 dunknowns <= criterion.coarsenTarget() )
    \n-
    458 nodomains=1;
    \n-
    459
    \n-
    460 bool existentOnNextLevel =
    \n-
    461 repartitionAndDistributeMatrix(mlevel->getmat(), redistMat, *infoLevel,
    \n-
    462 redistComm, redistributes_.back(), nodomains,
    \n-
    463 criterion);
    \n-
    464 BIGINT unknownsRedist = redistMat->N();
    \n-
    465 unknownsRedist = infoLevel->communicator().sum(unknownsRedist);
    \n-
    466 dunknowns= unknownsRedist.todouble();
    \n-
    467 if(redistComm->communicator().rank()==0 && criterion.debugLevel()>1)
    \n-
    468 std::cout<<"Level "<<level<<" (redistributed) has "<<dunknowns<<" unknowns, "<<dunknowns/redistComm->communicator().size()
    \n-
    469 <<" unknowns per proc (procs="<<redistComm->communicator().size()<<")"<<std::endl;
    \n-
    470 MatrixArgs args(redistMat, *redistComm);
    \n-
    471 mlevel.addRedistributed(ConstructionTraits<MatrixOperator>::construct(args));
    \n-
    472 assert(mlevel.isRedistributed());
    \n-
    473 infoLevel.addRedistributed(redistComm);
    \n-
    474 infoLevel->freeGlobalLookup();
    \n-
    475
    \n-
    476 if(!existentOnNextLevel)
    \n-
    477 // We do not hold any data on the redistributed partitioning
    \n-
    478 break;
    \n-
    479
    \n-
    480 // Work on the redistributed Matrix from now on
    \n-
    481 matrix = &(mlevel.getRedistributed());
    \n-
    482 info = &(infoLevel.getRedistributed());
    \n-
    483 info->buildGlobalLookup(matrix->getmat().N());
    \n-
    484 }
    \n+
    425
    \n+
    426 template<class M, class X, class PI, class A>
    \n+
    \n+\n+
    428 {
    \n+
    429 Timer watch, watch1;
    \n+
    430 // Detect Matrix rows where all offdiagonal entries are
    \n+
    431 // zero and set x such that A_dd*x_d=b_d
    \n+
    432 // Thus users can be more careless when setting up their linear
    \n+
    433 // systems.
    \n+
    434 typedef typename M::matrix_type Matrix;
    \n+
    435 typedef typename Matrix::ConstRowIterator RowIter;
    \n+
    436 typedef typename Matrix::ConstColIterator ColIter;
    \n+
    437 typedef typename Matrix::block_type Block;
    \n+
    438 Block zero;
    \n+
    439 zero=typename Matrix::field_type();
    \n+
    440
    \n+
    441 const Matrix& mat=matrices_->matrices().finest()->getmat();
    \n+
    442 for(RowIter row=mat.begin(); row!=mat.end(); ++row) {
    \n+
    443 bool isDirichlet = true;
    \n+
    444 bool hasDiagonal = false;
    \n+
    445 ColIter diag;
    \n+
    446 for(ColIter col=row->begin(); col!=row->end(); ++col) {
    \n+
    447 if(row.index()==col.index()) {
    \n+
    448 diag = col;
    \n+
    449 hasDiagonal = (*col != zero);
    \n+
    450 }else{
    \n+
    451 if(*col!=zero)
    \n+
    452 isDirichlet = false;
    \n+
    453 }
    \n+
    454 }
    \n+
    455 if(isDirichlet && hasDiagonal)
    \n+
    456 diag->solve(x[row.index()], b[row.index()]);
    \n+
    457 }
    \n+
    458 if (verbosity_>0)
    \n+
    459 std::cout<<" Preprocessing Dirichlet took "<<watch1.elapsed()<<std::endl;
    \n+
    460 watch1.reset();
    \n+
    461 // No smoother to make x consistent! Do it by hand
    \n+
    462 matrices_->parallelInformation().coarsest()->copyOwnerToAll(x,x);
    \n+
    463 rhs_ = std::make_shared<Hierarchy<Range,A>>(std::make_shared<Range>(b));
    \n+
    464 lhs_ = std::make_shared<Hierarchy<Domain,A>>(std::make_shared<Domain>(x));
    \n+
    465 residual_ = std::make_shared<Hierarchy<Domain,A>>(std::make_shared<Domain>(x));
    \n+
    466 matrices_->coarsenVector(*rhs_);
    \n+
    467 matrices_->coarsenVector(*lhs_);
    \n+
    468 matrices_->coarsenVector(*residual_);
    \n+
    469
    \n+
    470 // The preconditioner might change x and b. So we have to
    \n+
    471 // copy the changes to the original vectors.
    \n+
    472 x = *lhs_->finest();
    \n+
    473 b = *rhs_->finest();
    \n+
    474 }
    \n+
    \n+
    475 template<class M, class X, class PI, class A>
    \n+
    \n+\n+
    477 {
    \n+
    478 return matrices_->levels();
    \n+
    479 }
    \n+
    \n+
    480 template<class M, class X, class PI, class A>
    \n+
    \n+\n+
    482 {
    \n+
    483 return matrices_->maxlevels();
    \n+
    484 }
    \n+
    \n
    485
    \n-
    486 rank = info->communicator().rank();
    \n-
    487 if(dunknowns <= criterion.coarsenTarget())
    \n-
    488 // No further coarsening needed
    \n-
    489 break;
    \n-
    490
    \n-\n-
    492 typedef typename GraphCreator::PropertiesGraph PropertiesGraph;
    \n-
    493 typedef typename GraphCreator::GraphTuple GraphTuple;
    \n-
    494
    \n-
    495 typedef typename PropertiesGraph::VertexDescriptor Vertex;
    \n-
    496
    \n-
    497 std::vector<bool> excluded(matrix->getmat().N(), false);
    \n-
    498
    \n-
    499 GraphTuple graphs = GraphCreator::create(*matrix, excluded, *info, OverlapFlags());
    \n-
    500
    \n-
    501 AggregatesMap* aggregatesMap=new AggregatesMap(std::get<1>(graphs)->maxVertex()+1);
    \n-
    502
    \n-
    503 aggregatesMaps_.push_back(aggregatesMap);
    \n-
    504
    \n-
    505 Timer watch;
    \n-
    506 watch.reset();
    \n-
    507 auto [noAggregates, isoAggregates, oneAggregates, skippedAggregates] =
    \n-
    508 aggregatesMap->buildAggregates(matrix->getmat(), *(std::get<1>(graphs)), criterion, level==0);
    \n-
    509
    \n-
    510 if(rank==0 && criterion.debugLevel()>2)
    \n-
    511 std::cout<<" Have built "<<noAggregates<<" aggregates totally ("<<isoAggregates<<" isolated aggregates, "<<
    \n-
    512 oneAggregates<<" aggregates of one vertex, and skipped "<<
    \n-
    513 skippedAggregates<<" aggregates)."<<std::endl;
    \n-
    514#ifdef TEST_AGGLO
    \n-
    515 {
    \n-
    516 // calculate size of local matrix in the distributed direction
    \n-
    517 int start, end, overlapStart, overlapEnd;
    \n-
    518 int procs=info->communicator().rank();
    \n-
    519 int n = UNKNOWNS/procs; // number of unknowns per process
    \n-
    520 int bigger = UNKNOWNS%procs; // number of process with n+1 unknows
    \n-
    521
    \n-
    522 // Compute owner region
    \n-
    523 if(rank<bigger) {
    \n-
    524 start = rank*(n+1);
    \n-
    525 end = (rank+1)*(n+1);
    \n-
    526 }else{
    \n-
    527 start = bigger + rank * n;
    \n-
    528 end = bigger + (rank + 1) * n;
    \n-
    529 }
    \n-
    530
    \n-
    531 // Compute overlap region
    \n-
    532 if(start>0)
    \n-
    533 overlapStart = start - 1;
    \n-
    534 else
    \n-
    535 overlapStart = start;
    \n-
    536
    \n-
    537 if(end<UNKNOWNS)
    \n-
    538 overlapEnd = end + 1;
    \n-
    539 else
    \n-
    540 overlapEnd = end;
    \n-
    541
    \n-
    542 assert((UNKNOWNS)*(overlapEnd-overlapStart)==aggregatesMap->noVertices());
    \n-
    543 for(int j=0; j< UNKNOWNS; ++j)
    \n-
    544 for(int i=0; i < UNKNOWNS; ++i)
    \n-
    545 {
    \n-
    546 if(i>=overlapStart && i<overlapEnd)
    \n-
    547 {
    \n-
    548 int no = (j/2)*((UNKNOWNS)/2)+i/2;
    \n-
    549 (*aggregatesMap)[j*(overlapEnd-overlapStart)+i-overlapStart]=no;
    \n-
    550 }
    \n-
    551 }
    \n-
    552 }
    \n-
    553#endif
    \n-
    554 if(criterion.debugLevel()>1 && info->communicator().rank()==0)
    \n-
    555 std::cout<<"aggregating finished."<<std::endl;
    \n+
    487 template<class M, class X, class PI, class A>
    \n+
    \n+\n+
    489 {
    \n+
    490 LevelContext levelContext;
    \n+
    491 // Init all iterators for the current level
    \n+
    492 initIteratorsWithFineLevel(levelContext);
    \n+
    493
    \n+
    494 assert(v.two_norm()==0);
    \n+
    495
    \n+
    496 level=0;
    \n+
    497 if(matrices_->maxlevels()==1){
    \n+
    498 // The coarse solver might modify the d!
    \n+
    499 Range b(d);
    \n+
    500 mgc(levelContext, v, b);
    \n+
    501 }else
    \n+
    502 mgc(levelContext, v, d);
    \n+
    503 if(postSteps_==0||matrices_->maxlevels()==1)
    \n+
    504 levelContext.pinfo->copyOwnerToAll(v, v);
    \n+
    505 }
    \n+
    \n+
    506
    \n+
    507 template<class M, class X, class PI, class A>
    \n+
    508 void FastAMG<M,X,PI,A>::initIteratorsWithFineLevel(LevelContext& levelContext)
    \n+
    509 {
    \n+
    510 levelContext.matrix = matrices_->matrices().finest();
    \n+
    511 levelContext.pinfo = matrices_->parallelInformation().finest();
    \n+
    512 levelContext.redist =
    \n+
    513 matrices_->redistributeInformation().begin();
    \n+
    514 levelContext.aggregates = matrices_->aggregatesMaps().begin();
    \n+
    515 levelContext.lhs = lhs_->finest();
    \n+
    516 levelContext.residual = residual_->finest();
    \n+
    517 levelContext.rhs = rhs_->finest();
    \n+
    518 levelContext.level=0;
    \n+
    519 }
    \n+
    520
    \n+
    521 template<class M, class X, class PI, class A>
    \n+
    522 bool FastAMG<M,X,PI,A>
    \n+
    523 ::moveToCoarseLevel(LevelContext& levelContext)
    \n+
    524 {
    \n+
    525 bool processNextLevel=true;
    \n+
    526
    \n+
    527 if(levelContext.redist->isSetup()) {
    \n+
    528 throw "bla";
    \n+
    529 levelContext.redist->redistribute(static_cast<const Range&>(*levelContext.residual),
    \n+
    530 levelContext.residual.getRedistributed());
    \n+
    531 processNextLevel = levelContext.residual.getRedistributed().size()>0;
    \n+
    532 if(processNextLevel) {
    \n+
    533 //restrict defect to coarse level right hand side.
    \n+
    534 ++levelContext.pinfo;
    \n+
    535 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n+
    536 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,
    \n+
    537 static_cast<const Range&>(levelContext.residual.getRedistributed()),
    \n+
    538 *levelContext.pinfo);
    \n+
    539 }
    \n+
    540 }else{
    \n+
    541 //restrict defect to coarse level right hand side.
    \n+
    542 ++levelContext.rhs;
    \n+
    543 ++levelContext.pinfo;
    \n+
    544 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n+
    545 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,
    \n+
    546 static_cast<const Range&>(*levelContext.residual), *levelContext.pinfo);
    \n+
    547 }
    \n+
    548
    \n+
    549 if(processNextLevel) {
    \n+
    550 // prepare coarse system
    \n+
    551 ++levelContext.residual;
    \n+
    552 ++levelContext.lhs;
    \n+
    553 ++levelContext.matrix;
    \n+
    554 ++levelContext.level;
    \n+
    555 ++levelContext.redist;
    \n
    556
    \n-
    557 BIGINT gnoAggregates=noAggregates;
    \n-
    558 gnoAggregates = info->communicator().sum(gnoAggregates);
    \n-
    559 double dgnoAggregates = gnoAggregates.todouble();
    \n-
    560#ifdef TEST_AGGLO
    \n-
    561 BIGINT gnoAggregates=((UNKNOWNS)/2)*((UNKNOWNS)/2);
    \n-
    562#endif
    \n-
    563
    \n-
    564 if(criterion.debugLevel()>2 && rank==0)
    \n-
    565 std::cout << "Building "<<dgnoAggregates<<" aggregates took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n-
    566
    \n-
    567 if(dgnoAggregates==0 || dunknowns/dgnoAggregates<criterion.minCoarsenRate())
    \n-
    568 {
    \n-
    569 if(rank==0)
    \n-
    570 {
    \n-
    571 if(dgnoAggregates>0)
    \n-
    572 std::cerr << "Stopped coarsening because of rate breakdown "<<dunknowns<<"/"<<dgnoAggregates
    \n-
    573 <<"="<<dunknowns/dgnoAggregates<<"<"
    \n-
    574 <<criterion.minCoarsenRate()<<std::endl;
    \n-
    575 else
    \n-
    576 std::cerr<< "Could not build any aggregates. Probably no connected nodes."<<std::endl;
    \n-
    577 }
    \n-
    578 aggregatesMap->free();
    \n-
    579 delete aggregatesMap;
    \n-
    580 aggregatesMaps_.pop_back();
    \n-
    581
    \n-
    582 if(criterion.accumulate() && mlevel.isRedistributed() && info->communicator().size()>1) {
    \n-
    583 // coarse level matrix was already redistributed, but to more than 1 process
    \n-
    584 // Therefore need to delete the redistribution. Further down it will
    \n-
    585 // then be redistributed to 1 process
    \n-
    586 delete &(mlevel.getRedistributed().getmat());
    \n-
    587 mlevel.deleteRedistributed();
    \n-
    588 delete &(infoLevel.getRedistributed());
    \n-
    589 infoLevel.deleteRedistributed();
    \n-
    590 redistributes_.back().resetSetup();
    \n-
    591 }
    \n-
    592
    \n-
    593 break;
    \n-
    594 }
    \n-
    595 unknowns = noAggregates;
    \n-
    596 dunknowns = dgnoAggregates;
    \n-
    597
    \n-
    598 CommunicationArgs commargs(info->communicator(),info->category());
    \n-
    599 parallelInformation_.addCoarser(commargs);
    \n-
    600
    \n-
    601 ++infoLevel; // parallel information on coarse level
    \n+
    557 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_->levels()<matrices_->maxlevels()) {
    \n+
    558 // next level is not the globally coarsest one
    \n+
    559 ++levelContext.aggregates;
    \n+
    560 }
    \n+
    561 // prepare the lhs on the next level
    \n+
    562 *levelContext.lhs=0;
    \n+
    563 *levelContext.residual=0;
    \n+
    564 }
    \n+
    565 return processNextLevel;
    \n+
    566 }
    \n+
    567
    \n+
    568 template<class M, class X, class PI, class A>
    \n+
    569 void FastAMG<M,X,PI,A>
    \n+
    570 ::moveToFineLevel(LevelContext& levelContext, bool processNextLevel, Domain& x)
    \n+
    571 {
    \n+
    572 if(processNextLevel) {
    \n+
    573 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_->levels()<matrices_->maxlevels()) {
    \n+
    574 // previous level is not the globally coarsest one
    \n+
    575 --levelContext.aggregates;
    \n+
    576 }
    \n+
    577 --levelContext.redist;
    \n+
    578 --levelContext.level;
    \n+
    579 //prolongate and add the correction (update is in coarse left hand side)
    \n+
    580 --levelContext.matrix;
    \n+
    581 --levelContext.residual;
    \n+
    582
    \n+
    583 }
    \n+
    584
    \n+
    585 typename Hierarchy<Domain,A>::Iterator coarseLhs = levelContext.lhs--;
    \n+
    586 if(levelContext.redist->isSetup()) {
    \n+
    587
    \n+
    588 // Need to redistribute during prolongate
    \n+
    589 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n+
    590 ::prolongateVector(*(*levelContext.aggregates), *coarseLhs, x,
    \n+
    591 levelContext.lhs.getRedistributed(),
    \n+
    592 matrices_->getProlongationDampingFactor(),
    \n+
    593 *levelContext.pinfo, *levelContext.redist);
    \n+
    594 }else{
    \n+
    595 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n+
    596 ::prolongateVector(*(*levelContext.aggregates), *coarseLhs, x,
    \n+
    597 matrices_->getProlongationDampingFactor(), *levelContext.pinfo);
    \n+
    598
    \n+
    599 // printvector(std::cout, *lhs, "prolongated coarse grid correction", "lhs", 10, 10, 10);
    \n+
    600 }
    \n+
    601
    \n
    602
    \n-
    603 typename PropertyMapTypeSelector<VertexVisitedTag,PropertiesGraph>::Type visitedMap =
    \n-
    604 get(VertexVisitedTag(), *(std::get<1>(graphs)));
    \n-
    605
    \n-
    606 watch.reset();
    \n-\n-
    608 ::coarsen(*info,
    \n-
    609 *(std::get<1>(graphs)),
    \n-
    610 visitedMap,
    \n-
    611 *aggregatesMap,
    \n-
    612 *infoLevel,
    \n-
    613 noAggregates);
    \n-
    614 GraphCreator::free(graphs);
    \n-
    615
    \n-
    616 if(criterion.debugLevel()>2) {
    \n-
    617 if(rank==0)
    \n-
    618 std::cout<<"Coarsening of index sets took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n-
    619 }
    \n+
    603 if(processNextLevel) {
    \n+
    604 --levelContext.rhs;
    \n+
    605 }
    \n+
    606
    \n+
    607 }
    \n+
    608
    \n+
    609
    \n+
    610 template<class M, class X, class PI, class A>
    \n+
    611 void FastAMG<M,X,PI,A>
    \n+
    612 ::presmooth(LevelContext& levelContext, Domain& x, const Range& b)
    \n+
    613 {
    \n+
    614 constexpr auto bl = blockLevel<typename M::matrix_type>();
    \n+
    615 GaussSeidelPresmoothDefect<bl>::apply(levelContext.matrix->getmat(),
    \n+
    616 x,
    \n+
    617 *levelContext.residual,
    \n+
    618 b);
    \n+
    619 }
    \n
    620
    \n-
    621 watch.reset();
    \n-
    622
    \n-
    623 infoLevel->buildGlobalLookup(aggregates);
    \n-\n-
    625 *info,
    \n-
    626 infoLevel->globalLookup());
    \n-
    627
    \n-
    628
    \n-
    629 if(criterion.debugLevel()>2) {
    \n-
    630 if(rank==0)
    \n-
    631 std::cout<<"Communicating global aggregate numbers took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n-
    632 }
    \n-
    633
    \n-
    634 watch.reset();
    \n-
    635 std::vector<bool>& visited=excluded;
    \n+
    621 template<class M, class X, class PI, class A>
    \n+
    622 void FastAMG<M,X,PI,A>
    \n+
    623 ::postsmooth(LevelContext& levelContext, Domain& x, const Range& b)
    \n+
    624 {
    \n+
    625 constexpr auto bl = blockLevel<typename M::matrix_type>();
    \n+
    626 GaussSeidelPostsmoothDefect<bl>
    \n+
    627 ::apply(levelContext.matrix->getmat(), x, *levelContext.residual, b);
    \n+
    628 }
    \n+
    629
    \n+
    630
    \n+
    631 template<class M, class X, class PI, class A>
    \n+\n
    636
    \n-
    637 typedef std::vector<bool>::iterator Iterator;
    \n-
    638 typedef IteratorPropertyMap<Iterator, IdentityMap> VisitedMap2;
    \n-
    639 Iterator end = visited.end();
    \n-
    640 for(Iterator iter= visited.begin(); iter != end; ++iter)
    \n-
    641 *iter=false;
    \n-
    642
    \n-
    643 VisitedMap2 visitedMap2(visited.begin(), Dune::IdentityMap());
    \n-
    644
    \n-
    645 std::shared_ptr<typename MatrixOperator::matrix_type>
    \n-
    646 coarseMatrix(productBuilder.build(*(std::get<0>(graphs)), visitedMap2,
    \n-
    647 *info,
    \n-
    648 *aggregatesMap,
    \n-
    649 aggregates,
    \n-
    650 OverlapFlags()));
    \n-
    651 dverb<<"Building of sparsity pattern took "<<watch.elapsed()<<std::endl;
    \n-
    652 watch.reset();
    \n-
    653 info->freeGlobalLookup();
    \n-
    654
    \n-
    655 delete std::get<0>(graphs);
    \n-
    656 productBuilder.calculate(matrix->getmat(), *aggregatesMap, *coarseMatrix, *infoLevel, OverlapFlags());
    \n-
    657
    \n-
    658 if(criterion.debugLevel()>2) {
    \n-
    659 if(rank==0)
    \n-
    660 std::cout<<"Calculation entries of Galerkin product took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n-
    661 }
    \n-
    662
    \n-
    663 BIGINT nonzeros = countNonZeros(*coarseMatrix);
    \n-
    664 allnonzeros = allnonzeros + infoLevel->communicator().sum(nonzeros);
    \n-
    665 MatrixArgs args(coarseMatrix, *infoLevel);
    \n-
    666
    \n-
    667 matrices_.addCoarser(args);
    \n-
    668 redistributes_.push_back(RedistributeInfoType());
    \n-
    669 } // end level loop
    \n+
    637 template<class M, class X, class PI, class A>
    \n+
    638 void FastAMG<M,X,PI,A>::mgc(LevelContext& levelContext, Domain& v, const Range& b){
    \n+
    639
    \n+
    640 if(levelContext.matrix == matrices_->matrices().coarsest() && levels()==maxlevels()) {
    \n+
    641 // Solve directly
    \n+\n+
    643 res.converged=true; // If we do not compute this flag will not get updated
    \n+
    644 if(levelContext.redist->isSetup()) {
    \n+
    645 levelContext.redist->redistribute(b, levelContext.rhs.getRedistributed());
    \n+
    646 if(levelContext.rhs.getRedistributed().size()>0) {
    \n+
    647 // We are still participating in the computation
    \n+
    648 levelContext.pinfo.getRedistributed().copyOwnerToAll(levelContext.rhs.getRedistributed(),
    \n+
    649 levelContext.rhs.getRedistributed());
    \n+
    650 solver_->apply(levelContext.lhs.getRedistributed(), levelContext.rhs.getRedistributed(), res);
    \n+
    651 }
    \n+
    652 levelContext.redist->redistributeBackward(v, levelContext.lhs.getRedistributed());
    \n+
    653 levelContext.pinfo->copyOwnerToAll(v, v);
    \n+
    654 }else{
    \n+
    655 levelContext.pinfo->copyOwnerToAll(b, b);
    \n+
    656 solver_->apply(v, const_cast<Range&>(b), res);
    \n+
    657 }
    \n+
    658
    \n+
    659 // printvector(std::cout, *lhs, "coarse level update", "u", 10, 10, 10);
    \n+
    660 // printvector(std::cout, *rhs, "coarse level rhs", "rhs", 10, 10, 10);
    \n+
    661 if (!res.converged)
    \n+
    662 coarsesolverconverged = false;
    \n+
    663 }else{
    \n+
    664 // presmoothing
    \n+
    665 presmooth(levelContext, v, b);
    \n+
    666 // printvector(std::cout, *lhs, "update", "u", 10, 10, 10);
    \n+
    667 // printvector(std::cout, *residual, "post presmooth residual", "r", 10);
    \n+
    668#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION
    \n+
    669 bool processNextLevel = moveToCoarseLevel(levelContext);
    \n
    670
    \n-
    671
    \n-
    672 infoLevel->freeGlobalLookup();
    \n-
    673
    \n-
    674 built_=true;
    \n-
    675 AggregatesMap* aggregatesMap=new AggregatesMap(0);
    \n-
    676 aggregatesMaps_.push_back(aggregatesMap);
    \n-
    677
    \n-
    678 if(criterion.debugLevel()>0) {
    \n-
    679 if(level==criterion.maxLevel()) {
    \n-
    680 BIGINT unknownsLevel = mlevel->getmat().N();
    \n-
    681 unknownsLevel = infoLevel->communicator().sum(unknownsLevel);
    \n-
    682 double dunknownsLevel = unknownsLevel.todouble();
    \n-
    683 if(rank==0 && criterion.debugLevel()>1) {
    \n-
    684 std::cout<<"Level "<<level<<" has "<<dunknownsLevel<<" unknowns, "<<dunknownsLevel/infoLevel->communicator().size()
    \n-
    685 <<" unknowns per proc (procs="<<infoLevel->communicator().size()<<")"<<std::endl;
    \n-
    686 }
    \n-
    687 }
    \n-
    688 }
    \n-
    689
    \n-
    690 if(criterion.accumulate() && !redistributes_.back().isSetup() &&
    \n-
    691 infoLevel->communicator().size()>1) {
    \n-
    692#if HAVE_MPI && !HAVE_PARMETIS
    \n-
    693 if(criterion.accumulate()==successiveAccu &&
    \n-
    694 infoLevel->communicator().rank()==0)
    \n-
    695 std::cerr<<"Successive accumulation of data on coarse levels only works with ParMETIS installed."
    \n-
    696 <<" Fell back to accumulation to one domain on coarsest level"<<std::endl;
    \n-
    697#endif
    \n-
    698
    \n-
    699 // accumulate to fewer processors
    \n-
    700 std::shared_ptr<Matrix> redistMat = std::make_shared<Matrix>();
    \n-
    701 std::shared_ptr<ParallelInformation> redistComm;
    \n-
    702 int nodomains = 1;
    \n-
    703
    \n-
    704 repartitionAndDistributeMatrix(mlevel->getmat(), redistMat, *infoLevel,
    \n-
    705 redistComm, redistributes_.back(), nodomains,criterion);
    \n-
    706 MatrixArgs args(redistMat, *redistComm);
    \n-
    707 BIGINT unknownsRedist = redistMat->N();
    \n-
    708 unknownsRedist = infoLevel->communicator().sum(unknownsRedist);
    \n-
    709
    \n-
    710 if(redistComm->communicator().rank()==0 && criterion.debugLevel()>1) {
    \n-
    711 double dunknownsRedist = unknownsRedist.todouble();
    \n-
    712 std::cout<<"Level "<<level<<" redistributed has "<<dunknownsRedist<<" unknowns, "<<dunknownsRedist/redistComm->communicator().size()
    \n-
    713 <<" unknowns per proc (procs="<<redistComm->communicator().size()<<")"<<std::endl;
    \n-
    714 }
    \n-
    715 mlevel.addRedistributed(ConstructionTraits<MatrixOperator>::construct(args));
    \n-
    716 infoLevel.addRedistributed(redistComm);
    \n-
    717 infoLevel->freeGlobalLookup();
    \n-
    718 }
    \n-
    719
    \n-
    720 int levels = matrices_.levels();
    \n-
    721 maxlevels_ = parallelInformation_.finest()->communicator().max(levels);
    \n-
    722 assert(matrices_.levels()==redistributes_.size());
    \n-
    723 if(hasCoarsest() && rank==0 && criterion.debugLevel()>1)
    \n-
    724 std::cout<<"operator complexity: "<<allnonzeros.todouble()/finenonzeros.todouble()<<std::endl;
    \n-
    725
    \n-
    726 }
    \n-
    \n-
    727
    \n-
    728 template<class M, class IS, class A>
    \n-\n-
    \n-\n-
    731 {
    \n-
    732 return matrices_;
    \n-
    733 }
    \n-
    \n-
    734
    \n-
    735 template<class M, class IS, class A>
    \n-\n-
    \n-\n-
    738 {
    \n-
    739 return parallelInformation_;
    \n-
    740 }
    \n-
    \n-
    741
    \n-
    742 template<class M, class IS, class A>
    \n-
    \n-
    743 void MatrixHierarchy<M,IS,A>::getCoarsestAggregatesOnFinest(std::vector<std::size_t>& data) const
    \n-
    744 {
    \n-
    745 int levels=aggregatesMaps().size();
    \n-
    746 int maxlevels=parallelInformation_.finest()->communicator().max(levels);
    \n-
    747 std::size_t size=(*(aggregatesMaps().begin()))->noVertices();
    \n-
    748 // We need an auxiliary vector for the consecutive prolongation.
    \n-
    749 std::vector<std::size_t> tmp;
    \n-
    750 std::vector<std::size_t> *coarse, *fine;
    \n-
    751
    \n-
    752 // make sure the allocated space suffices.
    \n-
    753 tmp.reserve(size);
    \n-
    754 data.reserve(size);
    \n-
    755
    \n-
    756 // Correctly assign coarse and fine for the first prolongation such that
    \n-
    757 // we end up in data in the end.
    \n-
    758 if(levels%2==0) {
    \n-
    759 coarse=&tmp;
    \n-
    760 fine=&data;
    \n-
    761 }else{
    \n-
    762 coarse=&data;
    \n-
    763 fine=&tmp;
    \n-
    764 }
    \n-
    765
    \n-
    766 // Number the unknowns on the coarsest level consecutively for each process.
    \n-
    767 if(levels==maxlevels) {
    \n-
    768 const AggregatesMap& map = *(*(++aggregatesMaps().rbegin()));
    \n-
    769 std::size_t m=0;
    \n-
    770
    \n-
    771 for(typename AggregatesMap::const_iterator iter = map.begin(); iter != map.end(); ++iter)
    \n-
    772 if(*iter< AggregatesMap::ISOLATED)
    \n-
    773 m=std::max(*iter,m);
    \n-
    774
    \n-
    775 coarse->resize(m+1);
    \n-
    776 std::size_t i=0;
    \n-
    777 srand((unsigned)std::clock());
    \n-
    778 std::set<size_t> used;
    \n-
    779 for(typename std::vector<std::size_t>::iterator iter=coarse->begin(); iter != coarse->end();
    \n-
    780 ++iter, ++i)
    \n-
    781 {
    \n-
    782 std::pair<std::set<std::size_t>::iterator,bool> ibpair
    \n-
    783 = used.insert(static_cast<std::size_t>((((double)rand())/(RAND_MAX+1.0)))*coarse->size());
    \n-
    784
    \n-
    785 while(!ibpair.second)
    \n-
    786 ibpair = used.insert(static_cast<std::size_t>((((double)rand())/(RAND_MAX+1.0))*coarse->size()));
    \n-
    787 *iter=*(ibpair.first);
    \n-
    788 }
    \n-
    789 }
    \n-
    790
    \n-
    791 typename ParallelInformationHierarchy::Iterator pinfo = parallelInformation().coarsest();
    \n-
    792 --pinfo;
    \n-
    793
    \n-
    794 // Now consecutively project the numbers to the finest level.
    \n-
    795 for(typename AggregatesMapList::const_reverse_iterator aggregates=++aggregatesMaps().rbegin();
    \n-
    796 aggregates != aggregatesMaps().rend(); ++aggregates,--levels) {
    \n-
    797
    \n-
    798 fine->resize((*aggregates)->noVertices());
    \n-
    799 fine->assign(fine->size(), 0);
    \n-\n-
    801 ::prolongateVector(*(*aggregates), *coarse, *fine, static_cast<std::size_t>(1), *pinfo);
    \n-
    802 --pinfo;
    \n-
    803 std::swap(coarse, fine);
    \n-
    804 }
    \n-
    805
    \n-
    806 // Assertion to check that we really projected to data on the last step.
    \n-
    807 assert(coarse==&data);
    \n-
    808 }
    \n-
    \n-
    809
    \n-
    810 template<class M, class IS, class A>
    \n-\n-
    \n-\n-
    813 {
    \n-
    814 return aggregatesMaps_;
    \n-
    815 }
    \n-
    \n-
    816 template<class M, class IS, class A>
    \n-\n-
    \n-\n-
    819 {
    \n-
    820 return redistributes_;
    \n-
    821 }
    \n-
    \n-
    822
    \n-
    823 template<class M, class IS, class A>
    \n-
    \n-\n-
    825 {
    \n-
    826 typedef typename AggregatesMapList::reverse_iterator AggregatesMapIterator;
    \n-
    827 typedef typename ParallelMatrixHierarchy::Iterator Iterator;
    \n-
    828 typedef typename ParallelInformationHierarchy::Iterator InfoIterator;
    \n-
    829
    \n-
    830 AggregatesMapIterator amap = aggregatesMaps_.rbegin();
    \n-
    831 InfoIterator info = parallelInformation_.coarsest();
    \n-
    832 for(Iterator level=matrices_.coarsest(), finest=matrices_.finest(); level != finest; --level, --info, ++amap) {
    \n-
    833 (*amap)->free();
    \n-
    834 delete *amap;
    \n-
    835 }
    \n-
    836 delete *amap;
    \n-
    837 }
    \n-
    \n-
    838
    \n-
    839 template<class M, class IS, class A>
    \n-
    840 template<class V, class BA, class TA>
    \n-
    \n-\n-
    842 {
    \n-
    843 assert(hierarchy.levels()==1);
    \n-
    844 typedef typename ParallelMatrixHierarchy::ConstIterator Iterator;
    \n-
    845 typedef typename RedistributeInfoList::const_iterator RIter;
    \n-
    846 RIter redist = redistributes_.begin();
    \n-
    847
    \n-
    848 Iterator matrix = matrices_.finest(), coarsest = matrices_.coarsest();
    \n-
    849 int level=0;
    \n-
    850 if(redist->isSetup())
    \n-
    851 hierarchy.addRedistributedOnCoarsest(matrix.getRedistributed().getmat().N());
    \n-
    852 Dune::dvverb<<"Level "<<level<<" has "<<matrices_.finest()->getmat().N()<<" unknowns!"<<std::endl;
    \n-
    853
    \n-
    854 while(matrix != coarsest) {
    \n-
    855 ++matrix; ++level; ++redist;
    \n-
    856 Dune::dvverb<<"Level "<<level<<" has "<<matrix->getmat().N()<<" unknowns!"<<std::endl;
    \n-
    857
    \n-
    858 hierarchy.addCoarser(matrix->getmat().N());
    \n-
    859 if(redist->isSetup())
    \n-
    860 hierarchy.addRedistributedOnCoarsest(matrix.getRedistributed().getmat().N());
    \n-
    861
    \n-
    862 }
    \n-
    863
    \n-
    864 }
    \n-
    \n-
    865
    \n-
    866 template<class M, class IS, class A>
    \n-
    867 template<class S, class TA>
    \n-
    \n-\n-
    869 const typename SmootherTraits<S>::Arguments& sargs) const
    \n-
    870 {
    \n-
    871 assert(smoothers.levels()==0);
    \n-
    872 typedef typename ParallelMatrixHierarchy::ConstIterator MatrixIterator;
    \n-
    873 typedef typename ParallelInformationHierarchy::ConstIterator PinfoIterator;
    \n-
    874 typedef typename AggregatesMapList::const_iterator AggregatesIterator;
    \n-
    875
    \n-\n-
    877 cargs.setArgs(sargs);
    \n-
    878 PinfoIterator pinfo = parallelInformation_.finest();
    \n-
    879 AggregatesIterator aggregates = aggregatesMaps_.begin();
    \n-
    880 int level=0;
    \n-
    881 for(MatrixIterator matrix = matrices_.finest(), coarsest = matrices_.coarsest();
    \n-
    882 matrix != coarsest; ++matrix, ++pinfo, ++aggregates, ++level) {
    \n-
    883 cargs.setMatrix(matrix->getmat(), **aggregates);
    \n-
    884 cargs.setComm(*pinfo);
    \n-
    885 smoothers.addCoarser(cargs);
    \n-
    886 }
    \n-
    887 if(maxlevels()>levels()) {
    \n-
    888 // This is not the globally coarsest level and therefore smoothing is needed
    \n-
    889 cargs.setMatrix(matrices_.coarsest()->getmat(), **aggregates);
    \n-
    890 cargs.setComm(*pinfo);
    \n-
    891 smoothers.addCoarser(cargs);
    \n-
    892 ++level;
    \n-
    893 }
    \n-
    894 }
    \n-
    \n-
    895
    \n-
    896 template<class M, class IS, class A>
    \n-
    897 template<class F>
    \n-
    \n-\n-
    899 {
    \n-
    900 typedef typename AggregatesMapList::iterator AggregatesMapIterator;
    \n-
    901 typedef typename ParallelMatrixHierarchy::Iterator Iterator;
    \n-
    902 typedef typename ParallelInformationHierarchy::Iterator InfoIterator;
    \n-
    903
    \n-
    904 AggregatesMapIterator amap = aggregatesMaps_.begin();
    \n-
    905 BaseGalerkinProduct productBuilder;
    \n-
    906 InfoIterator info = parallelInformation_.finest();
    \n-
    907 typename RedistributeInfoList::iterator riIter = redistributes_.begin();
    \n-
    908 Iterator level = matrices_.finest(), coarsest=matrices_.coarsest();
    \n-
    909 if(level.isRedistributed()) {
    \n-
    910 info->buildGlobalLookup(level->getmat().N());
    \n-
    911 redistributeMatrixEntries(const_cast<Matrix&>(level->getmat()),
    \n-
    912 const_cast<Matrix&>(level.getRedistributed().getmat()),
    \n-
    913 *info,info.getRedistributed(), *riIter);
    \n-
    914 info->freeGlobalLookup();
    \n-
    915 }
    \n-
    916
    \n-
    917 for(; level!=coarsest; ++amap) {
    \n-
    918 const Matrix& fine = (level.isRedistributed() ? level.getRedistributed() : *level).getmat();
    \n-
    919 ++level;
    \n-
    920 ++info;
    \n-
    921 ++riIter;
    \n-
    922 productBuilder.calculate(fine, *(*amap), const_cast<Matrix&>(level->getmat()), *info, copyFlags);
    \n-
    923 if(level.isRedistributed()) {
    \n-
    924 info->buildGlobalLookup(level->getmat().N());
    \n-
    925 redistributeMatrixEntries(const_cast<Matrix&>(level->getmat()),
    \n-
    926 const_cast<Matrix&>(level.getRedistributed().getmat()), *info,
    \n-
    927 info.getRedistributed(), *riIter);
    \n-
    928 info->freeGlobalLookup();
    \n-
    929 }
    \n-
    930 }
    \n-
    931 }
    \n-
    \n-
    932
    \n-
    933 template<class M, class IS, class A>
    \n-
    \n-\n-
    935 {
    \n-
    936 return matrices_.levels();
    \n-
    937 }
    \n-
    \n-
    938
    \n-
    939 template<class M, class IS, class A>
    \n-
    \n-\n-
    941 {
    \n-
    942 return maxlevels_;
    \n-
    943 }
    \n-
    \n-
    944
    \n-
    945 template<class M, class IS, class A>
    \n-
    \n-\n-
    947 {
    \n-
    948 return levels()==maxlevels() &&
    \n-
    949 (!matrices_.coarsest().isRedistributed() ||matrices_.coarsest()->getmat().N()>0);
    \n-
    950 }
    \n-
    \n-
    951
    \n-
    952 template<class M, class IS, class A>
    \n-
    \n-\n-
    954 {
    \n-
    955 return built_;
    \n-
    956 }
    \n-
    \n-
    957
    \n-
    959 } // namespace Amg
    \n-
    960} // namespace Dune
    \n-
    961
    \n-
    962#endif // end DUNE_AMG_MATRIXHIERARCHY_HH
    \n-
    Some handy generic functions for ISTL matrices.
    \n-\n-
    Helper classes for the construction of classes without empty constructor.
    \n-
    Provides a class for building the index set and remote indices on the coarse level.
    \n-
    Prolongation and restriction for amg.
    \n-
    Classes for the generic construction and application of the smoothers.
    \n-
    Provides classes for the Coloring process of AMG.
    \n-
    Provides classes for building the matrix graph.
    \n-
    Provides a class for building the galerkin product based on a aggregation scheme.
    \n-
    Provides a classes representing the hierarchies in AMG.
    \n-\n-
    Provdes class for identifying aggregates globally.
    \n-
    Provides classes for initializing the link attributes of a matrix graph.
    \n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n-
    Functionality for redistributing a sparse matrix.
    \n-
    auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::value > *sfinae=nullptr)
    Get the number of nonzero fields in the matrix.
    Definition matrixutils.hh:119
    \n-
    const AggregatesMapList & aggregatesMaps() const
    Get the hierarchy of the mappings of the nodes onto aggregates.
    Definition matrixhierarchy.hh:812
    \n-
    bool isBuilt() const
    Whether the hierarchy was built.
    Definition matrixhierarchy.hh:953
    \n-
    bool hasCoarsest() const
    Definition matrixhierarchy.hh:946
    \n-
    std::size_t levels() const
    Get the number of levels in the hierarchy.
    Definition hierarchy.hh:322
    \n-
    std::size_t levels() const
    Get the number of levels in the hierarchy.
    Definition matrixhierarchy.hh:934
    \n-
    void addCoarser(Arguments &args)
    Add an element on a coarser level.
    Definition hierarchy.hh:334
    \n-
    const RedistributeInfoList & redistributeInformation() const
    Get the hierarchy of the information about redistributions,.
    Definition matrixhierarchy.hh:818
    \n-
    const ParallelInformationHierarchy & parallelInformation() const
    Get the hierarchy of the parallel data distribution information.
    Definition matrixhierarchy.hh:737
    \n-
    bool repartitionAndDistributeMatrix(const M &origMatrix, std::shared_ptr< M > newMatrix, SequentialInformation &origComm, std::shared_ptr< SequentialInformation > &newComm, RedistributeInformation< SequentialInformation > &ri, int nparts, C1 &criterion)
    Definition matrixhierarchy.hh:313
    \n-
    const_iterator begin() const
    Definition aggregates.hh:725
    \n-
    const ParallelMatrixHierarchy & matrices() const
    Get the matrix hierarchy.
    Definition matrixhierarchy.hh:730
    \n-
    std::size_t maxlevels() const
    Get the max number of levels in the hierarchy of processors.
    Definition matrixhierarchy.hh:940
    \n-
    const_iterator end() const
    Definition aggregates.hh:730
    \n-
    static const V ISOLATED
    Identifier of isolated vertices.
    Definition aggregates.hh:571
    \n-
    void recalculateGalerkin(const F &copyFlags)
    Recalculate the galerkin products.
    Definition matrixhierarchy.hh:898
    \n+
    671 if(processNextLevel) {
    \n+
    672 // next level
    \n+
    673 for(std::size_t i=0; i<gamma_; i++)
    \n+
    674 mgc(levelContext, *levelContext.lhs, *levelContext.rhs);
    \n+
    675 }
    \n+
    676
    \n+
    677 moveToFineLevel(levelContext, processNextLevel, v);
    \n+
    678#else
    \n+
    679 *lhs=0;
    \n+
    680#endif
    \n+
    681
    \n+
    682 if(levelContext.matrix == matrices_->matrices().finest()) {
    \n+
    683 coarsesolverconverged = matrices_->parallelInformation().finest()->communicator().prod(coarsesolverconverged);
    \n+
    684 if(!coarsesolverconverged)
    \n+
    685 DUNE_THROW(MathError, "Coarse solver did not converge");
    \n+
    686 }
    \n+
    687
    \n+
    688 postsmooth(levelContext, v, b);
    \n+
    689 }
    \n+
    690 }
    \n+
    691
    \n+
    692
    \n+
    694 template<class M, class X, class PI, class A>
    \n+
    \n+
    695 void FastAMG<M,X,PI,A>::post([[maybe_unused]] Domain& x)
    \n+
    696 {
    \n+
    697 lhs_=nullptr;
    \n+
    698 rhs_=nullptr;
    \n+
    699 residual_=nullptr;
    \n+
    700 }
    \n+
    \n+
    701
    \n+
    702 template<class M, class X, class PI, class A>
    \n+
    703 template<class A1>
    \n+
    \n+
    704 void FastAMG<M,X,PI,A>::getCoarsestAggregateNumbers(std::vector<std::size_t,A1>& cont)
    \n+
    705 {
    \n+
    706 matrices_->getCoarsestAggregatesOnFinest(cont);
    \n+
    707 }
    \n+
    \n+
    708
    \n+
    709 } // end namespace Amg
    \n+
    710} // end namespace Dune
    \n+
    711
    \n+
    712#endif
    \n+
    Define base class for scalar product and norm.
    \n+
    Some generic functions for pretty printing vectors and matrices.
    \n+
    Provides a classes representing the hierarchies in AMG.
    \n+
    Classes for the generic construction and application of the smoothers.
    \n+
    Prolongation and restriction for amg.
    \n+\n+
    Templates characterizing the type of a solver.
    \n+
    Classes for using SuperLU with ISTL matrices.
    \n+
    Classes for using UMFPack with ISTL matrices.
    \n+
    Implementations of the inverse operator interface.
    \n+
    Define general preconditioner interface.
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    void presmooth(LevelContext &levelContext, size_t steps)
    Apply pre smoothing on the current level.
    Definition smoother.hh:406
    \n
    const void * Arguments
    A type holding all the arguments needed to call the constructor.
    Definition construction.hh:44
    \n-
    std::size_t noVertices() const
    Get the number of vertices.
    \n
    static std::shared_ptr< T > construct(Arguments &args)
    Construct an object with the specified arguments.
    Definition construction.hh:52
    \n-
    void coarsenVector(Hierarchy< BlockVector< V, BA >, TA > &hierarchy) const
    Coarsen the vector hierarchy according to the matrix hierarchy.
    Definition matrixhierarchy.hh:841
    \n-
    const AggregateDescriptor * const_iterator
    Definition aggregates.hh:723
    \n-
    MatrixHierarchy(std::shared_ptr< MatrixOperator > fineMatrix, std::shared_ptr< ParallelInformation > pinfo=std::make_shared< ParallelInformation >())
    Constructor.
    Definition matrixhierarchy.hh:389
    \n-
    AccumulationMode
    Identifiers for the different accumulation modes.
    Definition parameters.hh:232
    \n-
    Iterator finest()
    Get an iterator positioned at the finest level.
    Definition hierarchy.hh:377
    \n-
    void build(const T &criterion)
    Build the matrix hierarchy using aggregation.
    Definition matrixhierarchy.hh:400
    \n-
    void free()
    Free the allocated memory.
    \n-
    void coarsenSmoother(Hierarchy< S, TA > &smoothers, const typename SmootherTraits< S >::Arguments &args) const
    Coarsen the smoother hierarchy according to the matrix hierarchy.
    Definition matrixhierarchy.hh:868
    \n-
    void buildDependency(G &graph, const typename C::Matrix &matrix, C criterion, bool finestLevel)
    Build the dependency of the matrix graph.
    \n-
    std::tuple< int, int, int, int > buildAggregates(const M &matrix, G &graph, const C &criterion, bool finestLevel)
    Build the aggregates.
    \n-
    void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse, const I &pinfo, const O &copy)
    Calculate the galerkin product.
    \n-
    void getCoarsestAggregatesOnFinest(std::vector< std::size_t > &data) const
    Get the mapping of fine level unknowns to coarse level aggregates.
    Definition matrixhierarchy.hh:743
    \n-
    ~MatrixHierarchy()
    Definition matrixhierarchy.hh:824
    \n-
    @ MAX_PROCESSES
    Hard limit for the number of processes allowed.
    Definition matrixhierarchy.hh:50
    \n-
    @ atOnceAccu
    Accumulate data to one process at once.
    Definition parameters.hh:244
    \n-
    @ successiveAccu
    Successively accumulate to fewer processes.
    Definition parameters.hh:248
    \n+
    void postsmooth(LevelContext &levelContext, size_t steps)
    Apply post smoothing on the current level.
    Definition smoother.hh:428
    \n+
    int iterations
    The numbe of iterations to perform.
    Definition smoother.hh:47
    \n+
    OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix
    The iterator over the matrices.
    Definition fastamg.hh:184
    \n+
    void getCoarsestAggregateNumbers(std::vector< std::size_t, A1 > &cont)
    Get the aggregate number of each unknown on the coarsest level.
    Definition fastamg.hh:704
    \n+
    ParallelInformationHierarchy::Iterator pinfo
    The iterator over the parallel information.
    Definition fastamg.hh:188
    \n+
    void recalculateHierarchy()
    Recalculate the matrix hierarchy.
    Definition fastamg.hh:150
    \n+
    void post(Domain &x)
    Clean up.
    Definition fastamg.hh:695
    \n+
    std::size_t maxlevels()
    Definition fastamg.hh:481
    \n+
    X Domain
    The domain type.
    Definition fastamg.hh:77
    \n+
    Hierarchy< Domain, A >::Iterator residual
    The iterator over the residuals.
    Definition fastamg.hh:204
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition fastamg.hh:123
    \n+
    MatrixHierarchy< M, ParallelInformation, A > OperatorHierarchy
    The operator hierarchy type.
    Definition fastamg.hh:72
    \n+
    OperatorHierarchy::RedistributeInfoList::const_iterator redist
    The iterator over the redistribution information.
    Definition fastamg.hh:192
    \n+
    X Range
    The range type.
    Definition fastamg.hh:79
    \n+
    PI ParallelInformation
    The type of the parallel information. Either OwnerOverlapCommunication or another type describing the...
    Definition fastamg.hh:70
    \n+
    M Operator
    The matrix operator type.
    Definition fastamg.hh:63
    \n+
    std::size_t levels()
    Definition fastamg.hh:476
    \n+
    InverseOperator< X, X > CoarseSolver
    the type of the coarse solver.
    Definition fastamg.hh:81
    \n+
    bool usesDirectCoarseLevelSolver() const
    Check whether the coarse solver used is a direct solver.
    Definition fastamg.hh:632
    \n+
    Hierarchy< Domain, A >::Iterator lhs
    The iterator over the left hand side.
    Definition fastamg.hh:200
    \n+
    Hierarchy< Range, A >::Iterator rhs
    The iterator over the right hand sided.
    Definition fastamg.hh:208
    \n+
    std::size_t level
    The level index.
    Definition fastamg.hh:212
    \n+
    void apply(Domain &v, const Range &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition fastamg.hh:488
    \n+
    OperatorHierarchy::ParallelInformationHierarchy ParallelInformationHierarchy
    The parallal data distribution hierarchy type.
    Definition fastamg.hh:74
    \n+
    void pre(Domain &x, Range &b)
    Prepare the preconditioner.
    Definition fastamg.hh:427
    \n+
    FastAMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const Parameters &parms, bool symmetric=true)
    Construct a new amg with a specific coarse solver.
    Definition fastamg.hh:297
    \n+
    OperatorHierarchy::AggregatesMapList::const_iterator aggregates
    The iterator over the aggregates maps.
    Definition fastamg.hh:196
    \n
    Definition allocator.hh:11
    \n-
    void printGlobalSparseMatrix(const M &mat, C &ooc, std::ostream &os)
    Definition matrixutils.hh:154
    \n-
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    void redistributeMatrixEntries(M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
    Definition matrixredistribute.hh:757
    \n-
    bool commGraphRepartition(const M &mat, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface &redistInf, bool verbose=false)
    Definition repartition.hh:829
    \n-
    void redistributeMatrix(M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
    Redistribute a matrix according to given domain decompositions.
    Definition matrixredistribute.hh:820
    \n-
    bool graphRepartition(const G &graph, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface &redistInf, bool verbose=false)
    execute a graph repartition for a giving graph and indexset.
    Definition repartition.hh:1235
    \n-
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    ConstIterator class for sequential access.
    Definition matrix.hh:404
    \n
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n-
    A::size_type size_type
    Type for indices and sizes.
    Definition matrix.hh:577
    \n-
    MatrixImp::DenseMatrixBase< T, A >::window_type row_type
    The type implementing a matrix row.
    Definition matrix.hh:574
    \n-
    Definition matrixredistribute.hh:22
    \n-
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n-
    Class representing the properties of an ede in the matrix graph.
    Definition dependency.hh:39
    \n-
    Class representing a node in the matrix graph.
    Definition dependency.hh:126
    \n-
    Definition galerkin.hh:99
    \n-
    Definition galerkin.hh:118
    \n-
    Definition globalaggregates.hh:131
    \n-
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n-
    Attaches properties to the edges and vertices of a graph.
    Definition graph.hh:978
    \n-
    Graph::VertexDescriptor VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:988
    \n-
    Definition graphcreator.hh:22
    \n-
    A hierarchy of containers (e.g. matrices or vectors)
    Definition hierarchy.hh:40
    \n-
    LevelIterator< Hierarchy< MatrixOperator, Allocator >, MatrixOperator > Iterator
    Type of the mutable iterator.
    Definition hierarchy.hh:216
    \n-
    LevelIterator< const Hierarchy< MatrixOperator, Allocator >, const MatrixOperator > ConstIterator
    Type of the const iterator.
    Definition hierarchy.hh:219
    \n-
    Definition indicescoarsener.hh:36
    \n+
    typename Imp::BlockTraits< T >::field_type field_type
    Export the type representing the underlying field.
    Definition matrix.hh:565
    \n+
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n+
    T block_type
    Export the type representing the components.
    Definition matrix.hh:568
    \n+
    A fast (sequential) algebraic multigrid based on agglomeration that saves memory bandwidth.
    Definition fastamg.hh:60
    \n+
    static void apply(const M &A, X &x, Y &d, const Y &b)
    Definition fastamgsmoother.hh:19
    \n+\n+
    LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation > Iterator
    Type of the mutable iterator.
    Definition hierarchy.hh:216
    \n+
    Iterator over the levels in the hierarchy.
    Definition hierarchy.hh:120
    \n
    The hierarchies build by the coarsening process.
    Definition matrixhierarchy.hh:61
    \n-
    typename std::allocator_traits< Allocator >::template rebind_alloc< AggregatesMap * > AAllocator
    Allocator for pointers.
    Definition matrixhierarchy.hh:85
    \n-
    Dune::Amg::Hierarchy< ParallelInformation, Allocator > ParallelInformationHierarchy
    The type of the parallel informarion hierarchy.
    Definition matrixhierarchy.hh:82
    \n-
    std::list< AggregatesMap *, AAllocator > AggregatesMapList
    The type of the aggregates maps list.
    Definition matrixhierarchy.hh:88
    \n-
    PI ParallelInformation
    The type of the index set.
    Definition matrixhierarchy.hh:70
    \n-
    Dune::Amg::Hierarchy< MatrixOperator, Allocator > ParallelMatrixHierarchy
    The type of the parallel matrix hierarchy.
    Definition matrixhierarchy.hh:79
    \n-
    A Allocator
    The allocator to use.
    Definition matrixhierarchy.hh:73
    \n-
    RedistributeInformation< ParallelInformation > RedistributeInfoType
    The type of the redistribute information.
    Definition matrixhierarchy.hh:91
    \n-
    double getProlongationDampingFactor() const
    Definition matrixhierarchy.hh:188
    \n-
    typename std::allocator_traits< Allocator >::template rebind_alloc< RedistributeInfoType > RILAllocator
    Allocator for RedistributeInfoType.
    Definition matrixhierarchy.hh:94
    \n-
    std::list< RedistributeInfoType, RILAllocator > RedistributeInfoList
    The type of the list of redistribute information.
    Definition matrixhierarchy.hh:97
    \n-
    Dune::Amg::AggregatesMap< typename MatrixGraph< Matrix >::VertexDescriptor > AggregatesMap
    The type of the aggregates map we use.
    Definition matrixhierarchy.hh:76
    \n-
    MatrixOperator::matrix_type Matrix
    The type of the matrix.
    Definition matrixhierarchy.hh:67
    \n-
    M MatrixOperator
    The type of the matrix operator.
    Definition matrixhierarchy.hh:64
    \n-
    void operator()(const matrix_row &row)
    Definition matrixhierarchy.hh:254
    \n-
    Matrix::row_type matrix_row
    Definition matrixhierarchy.hh:245
    \n-
    size_type min
    Definition matrixhierarchy.hh:261
    \n-\n-
    size_type max
    Definition matrixhierarchy.hh:262
    \n-
    size_type sum
    Definition matrixhierarchy.hh:263
    \n-
    Matrix::size_type size_type
    Definition matrixhierarchy.hh:244
    \n-
    The criterion describing the stop criteria for the coarsening process.
    Definition matrixhierarchy.hh:283
    \n-
    CoarsenCriterion(const Dune::Amg::Parameters &parms)
    Definition matrixhierarchy.hh:306
    \n-
    T AggregationCriterion
    The criterion for tagging connections as strong and nodes as isolated. This might be e....
    Definition matrixhierarchy.hh:289
    \n-
    CoarsenCriterion(int maxLevel=100, int coarsenTarget=1000, double minCoarsenRate=1.2, double prolongDamp=1.6, AccumulationMode accumulate=successiveAccu)
    Constructor.
    Definition matrixhierarchy.hh:301
    \n
    All parameters for AMG.
    Definition parameters.hh:393
    \n-
    Definition pinfo.hh:28
    \n-
    Tag idnetifying the visited property of a vertex.
    Definition properties.hh:29
    \n
    The default class for the smoother arguments.
    Definition smoother.hh:38
    \n-
    Definition transfer.hh:32
    \n-
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n+
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    Sequential SSOR preconditioner.
    Definition preconditioners.hh:141
    \n+
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n+
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n+
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n+
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n+
    Definition solvertype.hh:16
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1288 +1,825 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-matrixhierarchy.hh\n+fastamg.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_MATRIXHIERARCHY_HH\n-6#define DUNE_AMG_MATRIXHIERARCHY_HH\n+5#ifndef DUNE_ISTL_FASTAMG_HH\n+6#define DUNE_ISTL_FASTAMG_HH\n 7\n-8#include \n-9#include \n-10#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n-11#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n-12#include \"_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\"\n-13#include \"_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\"\n-14#include \"_\bg_\br_\ba_\bp_\bh_\bc_\br_\be_\ba_\bt_\bo_\br_\b._\bh_\bh\"\n-15#include \"_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh\"\n-16#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-17#include \n-18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh>\n-19#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh>\n-20#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh>\n-21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh>\n-22#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bi_\bn_\bd_\bi_\bc_\be_\bs_\bc_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b._\bh_\bh>\n-23#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bg_\bl_\bo_\bb_\ba_\bl_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n-24#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-25#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n-26#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n-27\n-28namespace _\bD_\bu_\bn_\be\n-29{\n-30 namespace Amg\n-31 {\n-42 enum {\n-50 _\bM_\bA_\bX_\b__\bP_\bR_\bO_\bC_\bE_\bS_\bS_\bE_\bS = 72000\n-_\b5_\b1 };\n-52\n-59 template >\n-_\b6_\b0 class _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-61 {\n-62 public:\n-_\b6_\b4 typedef M _\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n-65\n-_\b6_\b7 typedef typename MatrixOperator::matrix_type _\bM_\ba_\bt_\br_\bi_\bx;\n-68\n+8#include \n+9#include \n+10#include \n+11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n+12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n+13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh>\n+14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n+15#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n+16#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh>\n+17#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh>\n+18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+19#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh>\n+20#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n+21\n+22#include \"_\bf_\ba_\bs_\bt_\ba_\bm_\bg_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\"\n+23\n+32namespace _\bD_\bu_\bn_\be\n+33{\n+34 namespace Amg\n+35 {\n+58 template >\n+_\b5_\b9 class _\bF_\ba_\bs_\bt_\bA_\bM_\bG : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+60 {\n+61 public:\n+_\b6_\b3 typedef M _\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n _\b7_\b0 typedef PI _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n-71\n-_\b7_\b3 typedef A _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br;\n-74\n-_\b7_\b6 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br> _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp;\n-77\n-_\b7_\b9 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b>\n-_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n-80\n-_\b8_\b2 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b>\n+_\b7_\b2 typedef _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\b> _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n+_\b7_\b4 typedef typename _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n-83\n-_\b8_\b5 using _\bA_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br = typename std::allocator_traits::template\n-rebind_alloc;\n-86\n-_\b8_\b8 typedef std::list _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bL_\bi_\bs_\bt;\n-89\n-_\b9_\b1 typedef _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b> _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be;\n-92\n-_\b9_\b4 using _\bR_\bI_\bL_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br = typename std::allocator_traits::template\n-rebind_alloc;\n-95\n-_\b9_\b7 typedef std::list _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bL_\bi_\bs_\bt;\n-98\n-104 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(std::shared_ptr fineMatrix,\n-105 std::shared_ptr pinfo = std::\n-make_shared());\n-106\n-107 _\b~_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by();\n-108\n-114 template\n-115 void _\bb_\bu_\bi_\bl_\bd(const T& criterion);\n-116\n-124 template\n-125 void _\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn(const F& copyFlags);\n-126\n-131 template\n-132 void _\bc_\bo_\ba_\br_\bs_\be_\bn_\bV_\be_\bc_\bt_\bo_\br(_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bV_\b,_\bB_\bA_\b>, TA>& hierarchy) const;\n-133\n-139 template\n-140 void _\bc_\bo_\ba_\br_\bs_\be_\bn_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br(_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bS_\b,_\bT_\bA_\b>& smoothers,\n-141 const typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args) const;\n-142\n-147 std::size_t _\bl_\be_\bv_\be_\bl_\bs() const;\n-148\n-153 std::size_t _\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs() const;\n+75\n+_\b7_\b7 typedef X _\bD_\bo_\bm_\ba_\bi_\bn;\n+_\b7_\b9 typedef X _\bR_\ba_\bn_\bg_\be;\n+_\b8_\b1 typedef _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b> _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br;\n+82\n+90 _\bF_\ba_\bs_\bt_\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br& coarseSolver,\n+91 const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms,\n+92 bool symmetric=true);\n+93\n+105 template\n+106 _\bF_\ba_\bs_\bt_\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& fineOperator, const C& criterion,\n+107 const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms=_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(),\n+108 bool symmetric=true,\n+109 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo=_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n+110\n+114 _\bF_\ba_\bs_\bt_\bA_\bM_\bG(const _\bF_\ba_\bs_\bt_\bA_\bM_\bG& amg);\n+115\n+117 void _\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b);\n+118\n+120 void _\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d);\n+121\n+_\b1_\b2_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+124 {\n+125 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+126 }\n+127\n+129 void _\bp_\bo_\bs_\bt(_\bD_\bo_\bm_\ba_\bi_\bn& x);\n+130\n+135 template\n+136 void _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs(std::vector& cont);\n+137\n+138 std::size_t _\bl_\be_\bv_\be_\bl_\bs();\n+139\n+140 std::size_t _\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs();\n+141\n+_\b1_\b5_\b0 void _\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by()\n+151 {\n+152 matrices_->recalculateGalerkin(NegateSet());\n+153 }\n 154\n-155 bool _\bh_\ba_\bs_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt() const;\n-156\n-161 bool _\bi_\bs_\bB_\bu_\bi_\bl_\bt() const;\n-162\n-167 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& _\bm_\ba_\bt_\br_\bi_\bc_\be_\bs() const;\n-168\n-173 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& _\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn() const;\n-174\n-179 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bL_\bi_\bs_\bt& _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bs() const;\n-180\n-186 const _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bL_\bi_\bs_\bt& _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn() const;\n-187\n-_\b1_\b8_\b8 double _\bg_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br() const\n-189 {\n-190 return prolongDamp_;\n-191 }\n-192\n-203 void _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bO_\bn_\bF_\bi_\bn_\be_\bs_\bt(std::vector& data) const;\n-204\n-205 private:\n-206 typedef typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs MatrixArgs;\n-207 typedef typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-CommunicationArgs;\n-209 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bL_\bi_\bs_\bt aggregatesMaps_;\n-211 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bL_\bi_\bs_\bt redistributes_;\n-213 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by matrices_;\n-215 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by parallelInformation_;\n-216\n-218 bool built_;\n-219\n-221 int maxlevels_;\n-222\n-223 double prolongDamp_;\n-224\n-228 template\n-229 struct MatrixStats\n-230 {\n-231\n-235 static void stats([[maybe_unused]] const _\bM_\ba_\bt_\br_\bi_\bx& matrix)\n-236 {}\n-237 };\n-238\n-239 template\n-240 struct MatrixStats<_\bM_\ba_\bt_\br_\bi_\bx,true>\n-241 {\n-_\b2_\b4_\b2 struct calc\n-243 {\n-_\b2_\b4_\b4 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-_\b2_\b4_\b5 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bm_\ba_\bt_\br_\bi_\bx_\b__\br_\bo_\bw;\n-246\n-_\b2_\b4_\b7 _\bc_\ba_\bl_\bc()\n-248 {\n-249 min=std::numeric_limits::max();\n-250 max=0;\n-251 sum=0;\n-252 }\n-253\n-_\b2_\b5_\b4 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bm_\ba_\bt_\br_\bi_\bx_\b__\br_\bo_\bw& row)\n-255 {\n-256 min=std::min(min, row.size());\n-257 max=std::max(max, row.size());\n-258 sum += row.size();\n-259 }\n-260\n-_\b2_\b6_\b1 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bm_\bi_\bn;\n-_\b2_\b6_\b2 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bm_\ba_\bx;\n-_\b2_\b6_\b3 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bu_\bm;\n-264 };\n-268 static void stats(const _\bM_\ba_\bt_\br_\bi_\bx& matrix)\n-269 {\n-270 calc c= for_each(matrix.begin(), matrix.end(), calc());\n-271 dinfo<<\"Matrix row: min=\"<(c.sum)/matrix.N()\n-273 <\n-_\b2_\b8_\b2 class _\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn : public T\n-283 {\n-284 public:\n-_\b2_\b8_\b9 typedef T _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn;\n-290\n-_\b3_\b0_\b1 _\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(int maxLevel=100, int coarsenTarget=1000, double\n-minCoarsenRate=1.2,\n-302 double prolongDamp=1.6, _\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be accumulate=_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu)\n-303 : _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(_\bD_\bu_\bn_\be::Amg::_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(maxLevel, coarsenTarget,\n-minCoarsenRate, prolongDamp, accumulate))\n-304 {}\n-305\n-_\b3_\b0_\b6 _\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(const _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n-307 : _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(parms)\n-308 {}\n-309\n-310 };\n-311\n-312 template\n-_\b3_\b1_\b3 bool _\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx([[maybe_unused]] const M& origMatrix,\n-314 [[maybe_unused]] std::shared_ptr newMatrix,\n-315 [[maybe_unused]] _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& origComm,\n-316 [[maybe_unused]] std::shared_ptr& newComm,\n-317 [[maybe_unused]] _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>& ri,\n-318 [[maybe_unused]] int nparts,\n-319 [[maybe_unused]] C1& criterion)\n-320 {\n-321 DUNE_THROW(NotImplemented, \"Redistribution does not make sense in\n-sequential code!\");\n-322 }\n-323\n-324\n-325 template\n-_\b3_\b2_\b6 bool _\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(const M& origMatrix,\n-327 std::shared_ptr newMatrix,\n-328 C& origComm,\n-329 std::shared_ptr& newComm,\n-330 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\b>& ri,\n-331 int nparts, C1& criterion)\n-332 {\n-333 Timer time;\n-334#ifdef AMG_REPART_ON_COMM_GRAPH\n-335 // Done not repartition the matrix graph, but a graph of the communication\n-scheme.\n-336 bool existentOnRedist=_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn(origMatrix, origComm,\n-nparts, newComm,\n-337 ri.getInterface(),\n-338 criterion.debugLevel()>1);\n-339\n-340#else\n-341 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b> _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n-342 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh,\n-343 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n-344 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n-345 IdentityMap,\n-346 IdentityMap> _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh;\n-347 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh graph(origMatrix);\n-348 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh pgraph(graph);\n-349 _\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(pgraph, origMatrix, criterion, false);\n-350\n-351#ifdef DEBUG_REPART\n-352 if(origComm.communicator().rank()==0)\n-353 std::cout<<\"Original matrix\"<1);\n-360#endif // if else AMG_REPART\n-361\n-362 if(origComm.communicator().rank()==0 && criterion.debugLevel()>1)\n-363 std::cout<<\"Repartitioning took \"<indexSet(),\n-origComm.communicator());\n-369#endif\n-370\n-371 _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(const_cast(origMatrix), *newMatrix, origComm,\n-*newComm, ri);\n-372\n-373#ifdef DEBUG_REPART\n-374 if(origComm.communicator().rank()==0)\n-375 std::cout<<\"Original matrix\"<communicator().size()>0)\n-378 _\bp_\br_\bi_\bn_\bt_\bG_\bl_\bo_\bb_\ba_\bl_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx(*newMatrix, *newComm, std::cout);\n-379 origComm.communicator().barrier();\n-380#endif\n-381\n-382 if(origComm.communicator().rank()==0 && criterion.debugLevel()>1)\n-383 std::cout<<\"Redistributing matrix took \"<\n-_\b3_\b8_\b9 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(std::shared_ptr\n-fineMatrix,\n-390 std::shared_ptr pinfo)\n-391 : matrices_(fineMatrix),\n-392 parallelInformation_(pinfo)\n+159 bool _\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br() const;\n+160\n+161 private:\n+168 template\n+169 void createHierarchies(C& criterion,\n+170 const std::shared_ptr& matrixptr,\n+171 const PI& pinfo);\n+172\n+179 struct LevelContext\n+180 {\n+_\b1_\b8_\b4 typename OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator _\bm_\ba_\bt_\br_\bi_\bx;\n+_\b1_\b8_\b8 typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bp_\bi_\bn_\bf_\bo;\n+_\b1_\b9_\b2 typename OperatorHierarchy::RedistributeInfoList::const_iterator _\br_\be_\bd_\bi_\bs_\bt;\n+_\b1_\b9_\b6 typename OperatorHierarchy::AggregatesMapList::const_iterator _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs;\n+_\b2_\b0_\b0 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bl_\bh_\bs;\n+_\b2_\b0_\b4 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\br_\be_\bs_\bi_\bd_\bu_\ba_\bl;\n+_\b2_\b0_\b8 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bR_\ba_\bn_\bg_\be_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\br_\bh_\bs;\n+_\b2_\b1_\b2 std::size_t _\bl_\be_\bv_\be_\bl;\n+213 };\n+214\n+216 void mgc(LevelContext& levelContext, _\bD_\bo_\bm_\ba_\bi_\bn& x, const _\bR_\ba_\bn_\bg_\be& b);\n+217\n+224 void presmooth(LevelContext& levelContext, _\bD_\bo_\bm_\ba_\bi_\bn& x, const _\bR_\ba_\bn_\bg_\be& b);\n+225\n+232 void postsmooth(LevelContext& levelContext, _\bD_\bo_\bm_\ba_\bi_\bn& x, const _\bR_\ba_\bn_\bg_\be& b);\n+233\n+240 void moveToFineLevel(LevelContext& levelContext, bool processedFineLevel,\n+241 _\bD_\bo_\bm_\ba_\bi_\bn& fineX);\n+242\n+247 bool moveToCoarseLevel(LevelContext& levelContext);\n+248\n+253 void initIteratorsWithFineLevel(LevelContext& levelContext);\n+254\n+256 std::shared_ptr matrices_;\n+258 std::shared_ptr solver_;\n+260 std::shared_ptr> rhs_;\n+262 std::shared_ptr> lhs_;\n+264 std::shared_ptr> residual_;\n+265\n+267 using _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt = _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>;\n+269 std::shared_ptr scalarProduct_;\n+271 std::size_t gamma_;\n+273 std::size_t preSteps_;\n+275 std::size_t postSteps_;\n+276 std::size_t level;\n+277 bool buildHierarchy_;\n+278 bool symmetric;\n+279 bool coarsesolverconverged;\n+280 typedef _\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b,_\bX_\b,_\bX_\b> _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+281 typedef std::shared_ptr SmootherPointer;\n+282 SmootherPointer coarseSmoother_;\n+284 std::size_t verbosity_;\n+285 };\n+286\n+287 template\n+_\b2_\b8_\b8 _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG(const _\bF_\ba_\bs_\bt_\bA_\bM_\bG& amg)\n+289 : matrices_(amg.matrices_), solver_(amg.solver_),\n+290 rhs_(), lhs_(), residual_(), scalarProduct_(amg.scalarProduct_),\n+291 gamma_(amg.gamma_), preSteps_(amg.preSteps_), postSteps_(amg.postSteps_),\n+292 symmetric(amg.symmetric), coarsesolverconverged(amg.coarsesolverconverged),\n+293 coarseSmoother_(amg.coarseSmoother_), verbosity_(amg.verbosity_)\n+294 {}\n+295\n+296 template\n+_\b2_\b9_\b7 _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br&\n+coarseSolver,\n+298 const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms, bool symmetric_)\n+299 : matrices_(stackobject_to_shared_ptr(matrices)), solver_(&coarseSolver),\n+300 rhs_(), lhs_(), residual_(), scalarProduct_(),\n+301 gamma_(parms.getGamma()), preSteps_(parms.getNoPreSmoothSteps()),\n+302 postSteps_(parms.getNoPostSmoothSteps()), buildHierarchy_(false),\n+303 symmetric(symmetric_), coarsesolverconverged(true),\n+304 coarseSmoother_(), verbosity_(parms.debugLevel())\n+305 {\n+306 if(preSteps_>1||postSteps_>1)\n+307 {\n+308 std::cerr<<\"WARNING only one step of smoothing is supported!\"<isBuilt());\n+312 static_assert(std::is_same::value,\n+313 \"Currently only sequential runs are supported\");\n+314 }\n+315 template\n+316 template\n+_\b3_\b1_\b7 _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& matrix,\n+318 const C& criterion,\n+319 const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms,\n+320 bool symmetric_,\n+321 const PI& pinfo)\n+322 : solver_(), rhs_(), lhs_(), residual_(), scalarProduct_(), gamma_\n+(parms.getGamma()),\n+323 preSteps_(parms.getNoPreSmoothSteps()), postSteps_\n+(parms.getNoPostSmoothSteps()),\n+324 buildHierarchy_(true),\n+325 symmetric(symmetric_), coarsesolverconverged(true),\n+326 coarseSmoother_(), verbosity_(criterion.debugLevel())\n+327 {\n+328 if(preSteps_>1||postSteps_>1)\n+329 {\n+330 std::cerr<<\"WARNING only one step of smoothing is supported!\"<::value,\n+334 \"Currently only sequential runs are supported\");\n+335 // TODO: reestablish compile time checks.\n+336 //static_assert(static_cast(PI::category)==static_cast(S::\n+category),\n+337 // \"Matrix and Solver must match in terms of category!\");\n+338 auto matrixptr = stackobject_to_shared_ptr(matrix);\n+339 createHierarchies(criterion, matrixptr, pinfo);\n+340 }\n+341\n+342 template\n+343 template\n+344 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\bi_\be_\bs(C& criterion,\n+345 const std::shared_ptr& matrixptr,\n+346 const PI& pinfo)\n+347 {\n+348 Timer watch;\n+349 matrices_ = std::make_shared(\n+350 std::const_pointer_cast(matrixptr),\n+351 stackobject_to_shared_ptr(const_cast(pinfo)));\n+352\n+353 matrices_->template build >(criterion);\n+354\n+355 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator\n+().rank()==0)\n+356 std::cout<<\"Building Hierarchy of \"<maxlevels()<<\" levels took\n+\"<levels()==matrices_->maxlevels()) {\n+359 // We have the carsest level. Create the coarse Solver\n+360 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs SmootherArgs;\n+361 SmootherArgs sargs;\n+362 sargs._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs = 1;\n+363\n+364 typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs cargs;\n+365 cargs.setArgs(sargs);\n+366 if(matrices_->redistributeInformation().back().isSetup()) {\n+367 // Solve on the redistributed partitioning\n+368 cargs.setMatrix(matrices_->matrices().coarsest().getRedistributed().getmat\n+());\n+369 cargs.setComm(matrices_->parallelInformation().coarsest().getRedistributed\n+());\n+370 }else{\n+371 cargs.setMatrix(matrices_->matrices().coarsest()->getmat());\n+372 cargs.setComm(*matrices_->parallelInformation().coarsest());\n+373 }\n+374\n+375 coarseSmoother_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(cargs);\n+376 scalarProduct_ = createScalarProduct(cargs.getComm(),category());\n+377\n+378#if HAVE_SUPERLU|| HAVE_SUITESPARSE_UMFPACK\n+379#if HAVE_SUITESPARSE_UMFPACK\n+380#define DIRECTSOLVER UMFPack\n+381#else\n+382#define DIRECTSOLVER SuperLU\n+383#endif\n+384 // Use superlu if we are purely sequential or with only one processor on\n+the coarsest level.\n+385 if(std::is_same::value /\n+/ sequential mode\n+386 || matrices_->parallelInformation().coarsest()->communicator().size()==1 //\n+parallel mode and only one processor\n+387 || (matrices_->parallelInformation().coarsest().isRedistributed()\n+388 && matrices_->parallelInformation().coarsest().getRedistributed\n+().communicator().size()==1\n+389 && matrices_->parallelInformation().coarsest().getRedistributed\n+().communicator().size()>0)) { // redistribute and 1 proc\n+390 if(verbosity_>0 && matrices_->parallelInformation().coarsest()-\n+>communicator().rank()==0)\n+391 std::cout<<\"Using superlu\"<parallelInformation().coarsest().isRedistributed())\n 393 {\n-394 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*fineMatrix) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-(*pinfo))\n-395 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"MatrixOperator and ParallelInformation must belong\n-to the same category!\");\n-396 }\n-397\n-398 template\n-399 template\n-_\b4_\b0_\b0 void _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd(const T& criterion)\n-401 {\n-402 prolongDamp_ = criterion.getProlongationDampingFactor();\n-403 typedef O OverlapFlags;\n-404 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br MatIterator;\n-405 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br PInfoIterator;\n-406\n-407 static const int noints=(_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\bA_\bX_\b__\bP_\bR_\bO_\bC_\bE_\bS_\bS_\bE_\bS/4096>0) ? (_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:\n-_\bM_\bA_\bX_\b__\bP_\bR_\bO_\bC_\bE_\bS_\bS_\bE_\bS/4096) : 1;\n-408\n-409 typedef bigunsignedint BIGINT;\n-410 _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b> productBuilder;\n-411 MatIterator mlevel = matrices_.finest();\n-412 MatrixStats::stats(mlevel->getmat());\n-413\n-414 PInfoIterator infoLevel = parallelInformation_.finest();\n-415 BIGINT finenonzeros=_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(mlevel->getmat());\n-416 finenonzeros = infoLevel->communicator().sum(finenonzeros);\n-417 BIGINT allnonzeros = finenonzeros;\n-418\n-419\n-420 int level = 0;\n-421 int rank = 0;\n-422\n-423 BIGINT unknowns = mlevel->getmat().N();\n+394 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)\n+395 // We are still participating on this level\n+396 solver_.reset(new DIRECTSOLVER(matrices_->matrices\n+().coarsest().getRedistributed().getmat(), false, false));\n+397 else\n+398 solver_.reset();\n+399 }else\n+400 solver_.reset(new DIRECTSOLVER(matrices_->matrices\n+().coarsest()->getmat(), false, false));\n+401 }else\n+402#undef DIRECTSOLVER\n+403#endif // HAVE_SUPERLU|| HAVE_SUITESPARSE_UMFPACK\n+404 {\n+405 if(matrices_->parallelInformation().coarsest().isRedistributed())\n+406 {\n+407 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)\n+408 // We are still participating on this level\n+409 solver_.reset(new BiCGSTABSolver(const_cast(matrices_->matrices\n+().coarsest().getRedistributed()),\n+410 *scalarProduct_,\n+411 *coarseSmoother_, 1E-2, 1000, 0));\n+412 else\n+413 solver_.reset();\n+414 }else\n+415 solver_.reset(new BiCGSTABSolver(const_cast(*matrices_->matrices\n+().coarsest()),\n+416 *scalarProduct_,\n+417 *coarseSmoother_, 1E-2, 1000, 0));\n+418 }\n+419 }\n+420\n+421 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator\n+().rank()==0)\n+422 std::cout<<\"Building Hierarchy of \"<maxlevels()<<\" levels took\n+\"<communicator().sum(unknowns);\n-426 double dunknowns=unknowns.todouble();\n-427 infoLevel->buildGlobalLookup(mlevel->getmat().N());\n-428 redistributes_.push_back(_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be());\n-429\n-430 for(; level < criterion.maxLevel(); ++level, ++mlevel) {\n-431 assert(matrices_.levels()==redistributes_.size());\n-432 rank = infoLevel->communicator().rank();\n-433 if(rank==0 && criterion.debugLevel()>1)\n-434 std::cout<<\"Level \"<communicator().size()\n-435 <<\" unknowns per proc (procs=\"<communicator().size\n-()<<\")\"<communicator().size()))\n-448 && infoLevel->communicator().size()>1 &&\n-449 dunknowns/infoLevel->communicator().size() <= criterion.coarsenTarget())\n-450 {\n-451 // accumulate to fewer processors\n-452 std::shared_ptr redistMat = std::make_shared();\n-453 std::shared_ptr redistComm;\n-454 std::size_t nodomains = (std::size_t)std::ceil(dunknowns/\n-(criterion.minAggregateSize()\n-455 *criterion.coarsenTarget()));\n-456 if( nodomains<=criterion.minAggregateSize()/2 ||\n-457 dunknowns <= criterion.coarsenTarget() )\n-458 nodomains=1;\n-459\n-460 bool existentOnNextLevel =\n-461 _\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(mlevel->getmat(), redistMat, *infoLevel,\n-462 redistComm, redistributes_.back(), nodomains,\n-463 criterion);\n-464 BIGINT unknownsRedist = redistMat->N();\n-465 unknownsRedist = infoLevel->communicator().sum(unknownsRedist);\n-466 dunknowns= unknownsRedist.todouble();\n-467 if(redistComm->communicator().rank()==0 && criterion.debugLevel()>1)\n-468 std::cout<<\"Level \"<communicator().size()\n-469 <<\" unknowns per proc (procs=\"<communicator().size\n-()<<\")\"<_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-(args));\n-472 assert(mlevel.isRedistributed());\n-473 infoLevel.addRedistributed(redistComm);\n-474 infoLevel->freeGlobalLookup();\n-475\n-476 if(!existentOnNextLevel)\n-477 // We do not hold any data on the redistributed partitioning\n-478 break;\n-479\n-480 // Work on the redistributed Matrix from now on\n-481 matrix = &(mlevel.getRedistributed());\n-482 info = &(infoLevel.getRedistributed());\n-483 info->buildGlobalLookup(matrix->getmat().N());\n+425\n+426 template\n+_\b4_\b2_\b7 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b)\n+428 {\n+429 Timer watch, watch1;\n+430 // Detect Matrix rows where all offdiagonal entries are\n+431 // zero and set x such that A_dd*x_d=b_d\n+432 // Thus users can be more careless when setting up their linear\n+433 // systems.\n+434 typedef typename M::matrix_type _\bM_\ba_\bt_\br_\bi_\bx;\n+435 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br RowIter;\n+436 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ColIter;\n+437 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be Block;\n+438 Block zero;\n+439 zero=typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be();\n+440\n+441 const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt=matrices_->matrices().finest()->getmat();\n+442 for(RowIter row=_\bm_\ba_\bt.begin(); row!=_\bm_\ba_\bt.end(); ++row) {\n+443 bool isDirichlet = true;\n+444 bool hasDiagonal = false;\n+445 ColIter diag;\n+446 for(ColIter _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl!=row->end(); ++_\bc_\bo_\bl) {\n+447 if(row.index()==_\bc_\bo_\bl.index()) {\n+448 diag = _\bc_\bo_\bl;\n+449 hasDiagonal = (*_\bc_\bo_\bl != zero);\n+450 }else{\n+451 if(*_\bc_\bo_\bl!=zero)\n+452 isDirichlet = false;\n+453 }\n+454 }\n+455 if(isDirichlet && hasDiagonal)\n+456 diag->solve(x[row.index()], b[row.index()]);\n+457 }\n+458 if (verbosity_>0)\n+459 std::cout<<\" Preprocessing Dirichlet took \"<parallelInformation().coarsest()->copyOwnerToAll(x,x);\n+463 rhs_ = std::make_shared>(std::make_shared(b));\n+464 lhs_ = std::make_shared>(std::make_shared(x));\n+465 residual_ = std::make_shared>(std::make_shared\n+(x));\n+466 matrices_->coarsenVector(*rhs_);\n+467 matrices_->coarsenVector(*lhs_);\n+468 matrices_->coarsenVector(*residual_);\n+469\n+470 // The preconditioner might change x and b. So we have to\n+471 // copy the changes to the original vectors.\n+472 x = *lhs_->finest();\n+473 b = *rhs_->finest();\n+474 }\n+475 template\n+_\b4_\b7_\b6 std::size_t _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs()\n+477 {\n+478 return matrices_->levels();\n+479 }\n+480 template\n+_\b4_\b8_\b1 std::size_t _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs()\n+482 {\n+483 return matrices_->maxlevels();\n 484 }\n 485\n-486 rank = info->communicator().rank();\n-487 if(dunknowns <= criterion.coarsenTarget())\n-488 // No further coarsening needed\n-489 break;\n-490\n-491 typedef _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>\n-GraphCreator;\n-492 typedef typename GraphCreator::PropertiesGraph _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh;\n-493 typedef typename GraphCreator::GraphTuple GraphTuple;\n-494\n-495 typedef typename _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br Vertex;\n-496\n-497 std::vector excluded(matrix->getmat().N(), false);\n-498\n-499 GraphTuple graphs = GraphCreator::create(*matrix, excluded, *info,\n-OverlapFlags());\n-500\n-501 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp* aggregatesMap=new _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(std::get<1>(graphs)-\n->maxVertex()+1);\n-502\n-503 aggregatesMaps_.push_back(aggregatesMap);\n-504\n-505 Timer watch;\n-506 watch.reset();\n-507 auto [noAggregates, isoAggregates, oneAggregates, skippedAggregates] =\n-508 aggregatesMap->_\bb_\bu_\bi_\bl_\bd_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs(matrix->getmat(), *(std::get<1>(graphs)),\n-criterion, level==0);\n-509\n-510 if(rank==0 && criterion.debugLevel()>2)\n-511 std::cout<<\" Have built \"<communicator().rank();\n-519 int n = UNKNOWNS/procs; // number of unknowns per process\n-520 int bigger = UNKNOWNS%procs; // number of process with n+1 unknows\n-521\n-522 // Compute owner region\n-523 if(rank0)\n-533 overlapStart = start - 1;\n-534 else\n-535 overlapStart = start;\n-536\n-537 if(end_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs());\n-543 for(int j=0; j< UNKNOWNS; ++j)\n-544 for(int i=0; i < UNKNOWNS; ++i)\n-545 {\n-546 if(i>=overlapStart && i1 && info->communicator().rank()==0)\n-555 std::cout<<\"aggregating finished.\"<\n+_\b4_\b8_\b8 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n+489 {\n+490 LevelContext levelContext;\n+491 // Init all iterators for the current level\n+492 initIteratorsWithFineLevel(levelContext);\n+493\n+494 assert(v.two_norm()==0);\n+495\n+496 level=0;\n+497 if(matrices_->maxlevels()==1){\n+498 // The coarse solver might modify the d!\n+499 _\bR_\ba_\bn_\bg_\be b(d);\n+500 mgc(levelContext, v, b);\n+501 }else\n+502 mgc(levelContext, v, d);\n+503 if(postSteps_==0||matrices_->maxlevels()==1)\n+504 levelContext.pinfo->copyOwnerToAll(v, v);\n+505 }\n+506\n+507 template\n+508 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bs_\bW_\bi_\bt_\bh_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl(LevelContext&\n+levelContext)\n+509 {\n+510 levelContext.matrix = matrices_->matrices().finest();\n+511 levelContext.pinfo = matrices_->parallelInformation().finest();\n+512 levelContext.redist =\n+513 matrices_->redistributeInformation().begin();\n+514 levelContext.aggregates = matrices_->aggregatesMaps().begin();\n+515 levelContext.lhs = lhs_->finest();\n+516 levelContext.residual = residual_->finest();\n+517 levelContext.rhs = rhs_->finest();\n+518 levelContext.level=0;\n+519 }\n+520\n+521 template\n+522 bool FastAMG\n+523 ::moveToCoarseLevel(LevelContext& levelContext)\n+524 {\n+525 bool processNextLevel=true;\n+526\n+527 if(levelContext.redist->isSetup()) {\n+528 throw \"bla\";\n+529 levelContext.redist->redistribute(static_cast\n+(*levelContext.residual),\n+530 levelContext.residual.getRedistributed());\n+531 processNextLevel = levelContext.residual.getRedistributed().size()>0;\n+532 if(processNextLevel) {\n+533 //restrict defect to coarse level right hand side.\n+534 ++levelContext.pinfo;\n+535 Transfer\n+536 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,\n+537 static_cast(levelContext.residual.getRedistributed()),\n+538 *levelContext.pinfo);\n+539 }\n+540 }else{\n+541 //restrict defect to coarse level right hand side.\n+542 ++levelContext.rhs;\n+543 ++levelContext.pinfo;\n+544 Transfer\n+545 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,\n+546 static_cast(*levelContext.residual), *levelContext.pinfo);\n+547 }\n+548\n+549 if(processNextLevel) {\n+550 // prepare coarse system\n+551 ++levelContext.residual;\n+552 ++levelContext.lhs;\n+553 ++levelContext.matrix;\n+554 ++levelContext.level;\n+555 ++levelContext.redist;\n 556\n-557 BIGINT gnoAggregates=noAggregates;\n-558 gnoAggregates = info->communicator().sum(gnoAggregates);\n-559 double dgnoAggregates = gnoAggregates.todouble();\n-560#ifdef TEST_AGGLO\n-561 BIGINT gnoAggregates=((UNKNOWNS)/2)*((UNKNOWNS)/2);\n-562#endif\n-563\n-564 if(criterion.debugLevel()>2 && rank==0)\n-565 std::cout << \"Building \"<0)\n-572 std::cerr << \"Stopped coarsening because of rate breakdown \"<_\bf_\br_\be_\be();\n-579 delete aggregatesMap;\n-580 aggregatesMaps_.pop_back();\n-581\n-582 if(criterion.accumulate() && mlevel.isRedistributed() && info->communicator\n-().size()>1) {\n-583 // coarse level matrix was already redistributed, but to more than 1\n-process\n-584 // Therefore need to delete the redistribution. Further down it will\n-585 // then be redistributed to 1 process\n-586 delete &(mlevel.getRedistributed().getmat());\n-587 mlevel.deleteRedistributed();\n-588 delete &(infoLevel.getRedistributed());\n-589 infoLevel.deleteRedistributed();\n-590 redistributes_.back().resetSetup();\n-591 }\n-592\n-593 break;\n-594 }\n-595 unknowns = noAggregates;\n-596 dunknowns = dgnoAggregates;\n-597\n-598 CommunicationArgs commargs(info->communicator(),info->category());\n-599 parallelInformation_.addCoarser(commargs);\n-600\n-601 ++infoLevel; // parallel information on coarse level\n+557 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_-\n+>levels()maxlevels()) {\n+558 // next level is not the globally coarsest one\n+559 ++levelContext.aggregates;\n+560 }\n+561 // prepare the lhs on the next level\n+562 *levelContext.lhs=0;\n+563 *levelContext.residual=0;\n+564 }\n+565 return processNextLevel;\n+566 }\n+567\n+568 template\n+569 void FastAMG\n+570 ::moveToFineLevel(LevelContext& levelContext, bool processNextLevel,\n+Domain& x)\n+571 {\n+572 if(processNextLevel) {\n+573 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_-\n+>levels()maxlevels()) {\n+574 // previous level is not the globally coarsest one\n+575 --levelContext.aggregates;\n+576 }\n+577 --levelContext.redist;\n+578 --levelContext.level;\n+579 //prolongate and add the correction (update is in coarse left hand side)\n+580 --levelContext.matrix;\n+581 --levelContext.residual;\n+582\n+583 }\n+584\n+585 typename Hierarchy::Iterator coarseLhs = levelContext.lhs--;\n+586 if(levelContext.redist->isSetup()) {\n+587\n+588 // Need to redistribute during prolongate\n+589 Transfer\n+590 ::prolongateVector(*(*levelContext.aggregates), *coarseLhs, x,\n+591 levelContext.lhs.getRedistributed(),\n+592 matrices_->getProlongationDampingFactor(),\n+593 *levelContext.pinfo, *levelContext.redist);\n+594 }else{\n+595 Transfer\n+596 ::prolongateVector(*(*levelContext.aggregates), *coarseLhs, x,\n+597 matrices_->getProlongationDampingFactor(), *levelContext.pinfo);\n+598\n+599 // printvector(std::cout, *lhs, \"prolongated coarse grid correction\",\n+\"lhs\", 10, 10, 10);\n+600 }\n+601\n 602\n-603 typename PropertyMapTypeSelector::Type\n-visitedMap =\n-604 _\bg_\be_\bt(_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg(), *(std::get<1>(graphs)));\n-605\n-606 watch.reset();\n-607 int aggregates = _\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\bO_\bv_\be_\br_\bl_\ba_\bp_\bF_\bl_\ba_\bg_\bs_\b>\n-608_\b _\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn(*info,\n-609 *(std::get<1>(graphs)),\n-610 visitedMap,\n-611 *aggregatesMap,\n-612 *infoLevel,\n-613 noAggregates);\n-614 GraphCreator::free(graphs);\n-615\n-616 if(criterion.debugLevel()>2) {\n-617 if(rank==0)\n-618 std::cout<<\"Coarsening of index sets took \"<\n+611 void FastAMG\n+612 ::presmooth(LevelContext& levelContext, Domain& x, const Range& b)\n+613 {\n+614 constexpr auto bl = blockLevel();\n+615 _\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b<_\bb_\bl_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(levelContext.matrix->getmat(),\n+616 x,\n+617 *levelContext.residual,\n+618 b);\n 619 }\n 620\n-621 watch.reset();\n-622\n-623 infoLevel->buildGlobalLookup(aggregates);\n-624 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\bV_\be_\br_\bt_\be_\bx_\b,_\bO_\bv_\be_\br_\bl_\ba_\bp_\bF_\bl_\ba_\bg_\bs_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bp_\bu_\bb_\bl_\bi_\bs_\bh\n-(*aggregatesMap,\n-625 *info,\n-626 infoLevel->globalLookup());\n-627\n-628\n-629 if(criterion.debugLevel()>2) {\n-630 if(rank==0)\n-631 std::cout<<\"Communicating global aggregate numbers took \"<& visited=excluded;\n+621 template\n+622 void FastAMG\n+623 ::postsmooth(LevelContext& levelContext, Domain& x, const Range& b)\n+624 {\n+625 constexpr auto bl = blockLevel();\n+626 GaussSeidelPostsmoothDefect\n+627 ::apply(levelContext.matrix->getmat(), x, *levelContext.residual, b);\n+628 }\n+629\n+630\n+631 template\n+_\b6_\b3_\b2 bool _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br() const\n+633 {\n+634 return _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be;\n+635 }\n 636\n-637 typedef std::vector::iterator Iterator;\n-638 typedef IteratorPropertyMap VisitedMap2;\n-639 Iterator end = visited.end();\n-640 for(Iterator iter= visited.begin(); iter != end; ++iter)\n-641 *iter=false;\n-642\n-643 VisitedMap2 visitedMap2(visited.begin(), Dune::IdentityMap());\n-644\n-645 std::shared_ptr\n-646 coarseMatrix(productBuilder.build(*(std::get<0>(graphs)), visitedMap2,\n-647 *info,\n-648 *aggregatesMap,\n-649 aggregates,\n-650 OverlapFlags()));\n-651 dverb<<\"Building of sparsity pattern took \"<freeGlobalLookup();\n-654\n-655 delete std::get<0>(graphs);\n-656 productBuilder.calculate(matrix->getmat(), *aggregatesMap, *coarseMatrix,\n-*infoLevel, OverlapFlags());\n-657\n-658 if(criterion.debugLevel()>2) {\n-659 if(rank==0)\n-660 std::cout<<\"Calculation entries of Galerkin product took \"<communicator().sum(nonzeros);\n-665 MatrixArgs args(coarseMatrix, *infoLevel);\n-666\n-667 matrices_.addCoarser(args);\n-668 redistributes_.push_back(_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be());\n-669 } // end level loop\n+637 template\n+638 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bm_\bg_\bc(LevelContext& levelContext, Domain& v, const\n+Range& b){\n+639\n+640 if(levelContext.matrix == matrices_->matrices().coarsest() && levels\n+()==maxlevels()) {\n+641 // Solve directly\n+642 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n+643 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd=true; // If we do not compute this flag will not get updated\n+644 if(levelContext.redist->isSetup()) {\n+645 levelContext.redist->redistribute(b, levelContext.rhs.getRedistributed());\n+646 if(levelContext.rhs.getRedistributed().size()>0) {\n+647 // We are still participating in the computation\n+648 levelContext.pinfo.getRedistributed().copyOwnerToAll\n+(levelContext.rhs.getRedistributed(),\n+649 levelContext.rhs.getRedistributed());\n+650 solver_->apply(levelContext.lhs.getRedistributed(),\n+levelContext.rhs.getRedistributed(), res);\n+651 }\n+652 levelContext.redist->redistributeBackward(v,\n+levelContext.lhs.getRedistributed());\n+653 levelContext.pinfo->copyOwnerToAll(v, v);\n+654 }else{\n+655 levelContext.pinfo->copyOwnerToAll(b, b);\n+656 solver_->apply(v, const_cast(b), res);\n+657 }\n+658\n+659 // printvector(std::cout, *lhs, \"coarse level update\", \"u\", 10, 10, 10);\n+660 // printvector(std::cout, *rhs, \"coarse level rhs\", \"rhs\", 10, 10, 10);\n+661 if (!res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd)\n+662 coarsesolverconverged = false;\n+663 }else{\n+664 // presmoothing\n+665 _\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh(levelContext, v, b);\n+666 // printvector(std::cout, *lhs, \"update\", \"u\", 10, 10, 10);\n+667 // printvector(std::cout, *residual, \"post presmooth residual\", \"r\", 10);\n+668#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION\n+669 bool processNextLevel = moveToCoarseLevel(levelContext);\n 670\n-671\n-672 infoLevel->freeGlobalLookup();\n-673\n-674 built_=true;\n-675 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp* aggregatesMap=new _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(0);\n-676 aggregatesMaps_.push_back(aggregatesMap);\n-677\n-678 if(criterion.debugLevel()>0) {\n-679 if(level==criterion.maxLevel()) {\n-680 BIGINT unknownsLevel = mlevel->getmat().N();\n-681 unknownsLevel = infoLevel->communicator().sum(unknownsLevel);\n-682 double dunknownsLevel = unknownsLevel.todouble();\n-683 if(rank==0 && criterion.debugLevel()>1) {\n-684 std::cout<<\"Level \"<communicator().size()\n-685 <<\" unknowns per proc (procs=\"<communicator().size\n-()<<\")\"<matrices().finest()) {\n+683 coarsesolverconverged = matrices_->parallelInformation().finest()-\n+>communicator().prod(coarsesolverconverged);\n+684 if(!coarsesolverconverged)\n+685 DUNE_THROW(MathError, \"Coarse solver did not converge\");\n 686 }\n-687 }\n-688 }\n-689\n-690 if(criterion.accumulate() && !redistributes_.back().isSetup() &&\n-691 infoLevel->communicator().size()>1) {\n-692#if HAVE_MPI && !HAVE_PARMETIS\n-693 if(criterion.accumulate()==_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu &&\n-694 infoLevel->communicator().rank()==0)\n-695 std::cerr<<\"Successive accumulation of data on coarse levels only works\n-with ParMETIS installed.\"\n-696 <<\" Fell back to accumulation to one domain on coarsest level\"< redistMat = std::make_shared();\n-701 std::shared_ptr redistComm;\n-702 int nodomains = 1;\n-703\n-704 _\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(mlevel->getmat(), redistMat, *infoLevel,\n-705 redistComm, redistributes_.back(), nodomains,criterion);\n-706 MatrixArgs args(redistMat, *redistComm);\n-707 BIGINT unknownsRedist = redistMat->N();\n-708 unknownsRedist = infoLevel->communicator().sum(unknownsRedist);\n-709\n-710 if(redistComm->communicator().rank()==0 && criterion.debugLevel()>1) {\n-711 double dunknownsRedist = unknownsRedist.todouble();\n-712 std::cout<<\"Level \"<communicator().size()\n-713 <<\" unknowns per proc (procs=\"<communicator().size\n-()<<\")\"<_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-(args));\n-716 infoLevel.addRedistributed(redistComm);\n-717 infoLevel->freeGlobalLookup();\n-718 }\n-719\n-720 int levels = matrices_.levels();\n-721 maxlevels_ = parallelInformation_.finest()->communicator().max(levels);\n-722 assert(matrices_.levels()==redistributes_.size());\n-723 if(hasCoarsest() && rank==0 && criterion.debugLevel()>1)\n-724 std::cout<<\"operator complexity: \"<\n-729 const typename _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by&\n-_\b7_\b3_\b0 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bc_\be_\bs() const\n-731 {\n-732 return matrices_;\n-733 }\n-734\n-735 template\n-736 const typename _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by&\n-_\b7_\b3_\b7 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn() const\n-738 {\n-739 return parallelInformation_;\n-740 }\n-741\n-742 template\n-_\b7_\b4_\b3 void _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bO_\bn_\bF_\bi_\bn_\be_\bs_\bt(std::\n-vector& data) const\n-744 {\n-745 int levels=aggregatesMaps().size();\n-746 int maxlevels=parallelInformation_._\bf_\bi_\bn_\be_\bs_\bt()->communicator().max(levels);\n-747 std::size_t size=(*(aggregatesMaps().begin()))->noVertices();\n-748 // We need an auxiliary vector for the consecutive prolongation.\n-749 std::vector tmp;\n-750 std::vector *coarse, *fine;\n-751\n-752 // make sure the allocated space suffices.\n-753 tmp.reserve(size);\n-754 data.reserve(size);\n-755\n-756 // Correctly assign coarse and fine for the first prolongation such that\n-757 // we end up in data in the end.\n-758 if(levels%2==0) {\n-759 coarse=&tmp;\n-760 fine=&data;\n-761 }else{\n-762 coarse=&data;\n-763 fine=&tmp;\n-764 }\n-765\n-766 // Number the unknowns on the coarsest level consecutively for each\n-process.\n-767 if(levels==maxlevels) {\n-768 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& map = *(*(++aggregatesMaps().rbegin()));\n-769 std::size_t m=0;\n-770\n-771 for(typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br iter = map._\bb_\be_\bg_\bi_\bn(); iter !=\n-map._\be_\bn_\bd(); ++iter)\n-772 if(*iter< _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n-773 m=std::max(*iter,m);\n-774\n-775 coarse->resize(m+1);\n-776 std::size_t i=0;\n-777 srand((unsigned)std::clock());\n-778 std::set used;\n-779 for(typename std::vector::iterator iter=coarse->begin(); iter\n-!= coarse->end();\n-780 ++iter, ++i)\n-781 {\n-782 std::pair::iterator,bool> ibpair\n-783 = used.insert(static_cast((((double)rand())/\n-(RAND_MAX+1.0)))*coarse->size());\n-784\n-785 while(!ibpair.second)\n-786 ibpair = used.insert(static_cast((((double)rand())/\n-(RAND_MAX+1.0))*coarse->size()));\n-787 *iter=*(ibpair.first);\n-788 }\n-789 }\n-790\n-791 typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br pinfo = parallelInformation\n-().coarsest();\n-792 --pinfo;\n-793\n-794 // Now consecutively project the numbers to the finest level.\n-795 for(typename AggregatesMapList::const_reverse_iterator\n-aggregates=++aggregatesMaps().rbegin();\n-796 aggregates != aggregatesMaps().rend(); ++aggregates,--levels) {\n-797\n-798 fine->resize((*aggregates)->noVertices());\n-799 fine->assign(fine->size(), 0);\n-800 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bv_\be_\bc_\bt_\bo_\br_\b<_\bs_\bt_\bd_\b:_\b:\n-_\bs_\bi_\bz_\be_\b__\bt_\b>, _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn>\n-801 ::prolongateVector(*(*aggregates), *coarse, *fine, static_cast\n-(1), *pinfo);\n-802 --pinfo;\n-803 std::swap(coarse, fine);\n-804 }\n-805\n-806 // Assertion to check that we really projected to data on the last step.\n-807 assert(coarse==&data);\n-808 }\n-809\n-810 template\n-811 const typename _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bL_\bi_\bs_\bt&\n-_\b8_\b1_\b2 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bs() const\n-813 {\n-814 return aggregatesMaps_;\n-815 }\n-816 template\n-817 const typename _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bL_\bi_\bs_\bt&\n-_\b8_\b1_\b8 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn() const\n-819 {\n-820 return redistributes_;\n-821 }\n-822\n-823 template\n-_\b8_\b2_\b4 _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\b~_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by()\n-825 {\n-826 typedef typename AggregatesMapList::reverse_iterator AggregatesMapIterator;\n-827 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n-828 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br InfoIterator;\n-829\n-830 AggregatesMapIterator amap = aggregatesMaps_.rbegin();\n-831 InfoIterator info = parallelInformation_.coarsest();\n-832 for(Iterator level=matrices_.coarsest(), finest=matrices_.finest(); level\n-!= finest; --level, --info, ++amap) {\n-833 (*amap)->free();\n-834 delete *amap;\n-835 }\n-836 delete *amap;\n-837 }\n-838\n-839 template\n-840 template\n-_\b8_\b4_\b1 void _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn_\bV_\be_\bc_\bt_\bo_\br(_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bV_\b,_\bB_\bA_\b>,\n-TA>& hierarchy) const\n-842 {\n-843 assert(hierarchy.levels()==1);\n-844 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n-845 typedef typename RedistributeInfoList::const_iterator RIter;\n-846 RIter redist = redistributes_.begin();\n-847\n-848 Iterator matrix = matrices_.finest(), coarsest = matrices_.coarsest();\n-849 int level=0;\n-850 if(redist->isSetup())\n-851 hierarchy.addRedistributedOnCoarsest(matrix.getRedistributed().getmat().N\n-());\n-852 Dune::dvverb<<\"Level \"<getmat().N()<<\"\n-unknowns!\"<getmat().N()<<\"\n-unknowns!\"<getmat().N());\n-859 if(redist->isSetup())\n-860 hierarchy.addRedistributedOnCoarsest(matrix.getRedistributed().getmat().N\n-());\n-861\n-862 }\n-863\n-864 }\n-865\n-866 template\n-867 template\n-_\b8_\b6_\b8 void _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br(_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bS_\b,_\bT_\bA_\b>& smoothers,\n-869 const typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& sargs) const\n-870 {\n-871 assert(smoothers._\bl_\be_\bv_\be_\bl_\bs()==0);\n-872 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br MatrixIterator;\n-873 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br PinfoIterator;\n-874 typedef typename AggregatesMapList::const_iterator AggregatesIterator;\n-875\n-876 typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs cargs;\n-877 cargs.setArgs(sargs);\n-878 PinfoIterator pinfo = parallelInformation_.finest();\n-879 AggregatesIterator aggregates = aggregatesMaps_.begin();\n-880 int level=0;\n-881 for(MatrixIterator matrix = matrices_.finest(), coarsest =\n-matrices_.coarsest();\n-882 matrix != coarsest; ++matrix, ++pinfo, ++aggregates, ++level) {\n-883 cargs.setMatrix(matrix->getmat(), **aggregates);\n-884 cargs.setComm(*pinfo);\n-885 smoothers._\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br(cargs);\n-886 }\n-887 if(maxlevels()>levels()) {\n-888 // This is not the globally coarsest level and therefore smoothing is\n-needed\n-889 cargs.setMatrix(matrices_.coarsest()->getmat(), **aggregates);\n-890 cargs.setComm(*pinfo);\n-891 smoothers._\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br(cargs);\n-892 ++level;\n-893 }\n-894 }\n-895\n-896 template\n-897 template\n-_\b8_\b9_\b8 void _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn(const F& copyFlags)\n-899 {\n-900 typedef typename AggregatesMapList::iterator AggregatesMapIterator;\n-901 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n-902 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br InfoIterator;\n-903\n-904 AggregatesMapIterator amap = aggregatesMaps_.begin();\n-905 _\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt productBuilder;\n-906 InfoIterator info = parallelInformation_.finest();\n-907 typename RedistributeInfoList::iterator riIter = redistributes_.begin();\n-908 Iterator level = matrices_.finest(), coarsest=matrices_.coarsest();\n-909 if(level.isRedistributed()) {\n-910 info->buildGlobalLookup(level->getmat().N());\n-911 _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs(const_cast<_\bM_\ba_\bt_\br_\bi_\bx&>(level->getmat()),\n-912 const_cast<_\bM_\ba_\bt_\br_\bi_\bx&>(level.getRedistributed().getmat()),\n-913 *info,info.getRedistributed(), *riIter);\n-914 info->freeGlobalLookup();\n-915 }\n-916\n-917 for(; level!=coarsest; ++amap) {\n-918 const _\bM_\ba_\bt_\br_\bi_\bx& fine = (level.isRedistributed() ? level.getRedistributed() :\n-*level).getmat();\n-919 ++level;\n-920 ++info;\n-921 ++riIter;\n-922 productBuilder._\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be(fine, *(*amap), const_cast<_\bM_\ba_\bt_\br_\bi_\bx&>(level->getmat\n-()), *info, copyFlags);\n-923 if(level.isRedistributed()) {\n-924 info->buildGlobalLookup(level->getmat().N());\n-925 _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs(const_cast<_\bM_\ba_\bt_\br_\bi_\bx&>(level->getmat()),\n-926 const_cast<_\bM_\ba_\bt_\br_\bi_\bx&>(level.getRedistributed().getmat()), *info,\n-927 info.getRedistributed(), *riIter);\n-928 info->freeGlobalLookup();\n-929 }\n-930 }\n-931 }\n-932\n-933 template\n-_\b9_\b3_\b4 std::size_t _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs() const\n-935 {\n-936 return matrices_.levels();\n-937 }\n-938\n-939 template\n-_\b9_\b4_\b0 std::size_t _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs() const\n-941 {\n-942 return maxlevels_;\n-943 }\n-944\n-945 template\n-_\b9_\b4_\b6 bool _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bh_\ba_\bs_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt() const\n-947 {\n-948 return levels()==maxlevels() &&\n-949 (!matrices_.coarsest().isRedistributed() ||matrices_.coarsest()->getmat().N\n-()>0);\n-950 }\n-951\n-952 template\n-_\b9_\b5_\b3 bool _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\bI_\bS_\b,_\bA_\b>_\b:_\b:_\bi_\bs_\bB_\bu_\bi_\bl_\bt() const\n-954 {\n-955 return built_;\n-956 }\n-957\n-959 } // namespace Amg\n-960} // namespace Dune\n-961\n-962#endif // end DUNE_AMG_MATRIXHIERARCHY_HH\n-_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\n-Some handy generic functions for ISTL matrices.\n-_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b._\bh_\bh\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-Helper classes for the construction of classes without empty constructor.\n-_\bi_\bn_\bd_\bi_\bc_\be_\bs_\bc_\bo_\ba_\br_\bs_\be_\bn_\be_\br_\b._\bh_\bh\n-Provides a class for building the index set and remote indices on the coarse\n-level.\n-_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh\n-Prolongation and restriction for amg.\n+687\n+688 _\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh(levelContext, v, b);\n+689 }\n+690 }\n+691\n+692\n+694 template\n+_\b6_\b9_\b5 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bp_\bo_\bs_\bt([[maybe_unused]] _\bD_\bo_\bm_\ba_\bi_\bn& x)\n+696 {\n+697 lhs_=nullptr;\n+698 rhs_=nullptr;\n+699 residual_=nullptr;\n+700 }\n+701\n+702 template\n+703 template\n+_\b7_\b0_\b4 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs(std::vector& cont)\n+705 {\n+706 matrices_->getCoarsestAggregatesOnFinest(cont);\n+707 }\n+708\n+709 } // end namespace Amg\n+710} // end namespace Dune\n+711\n+712#endif\n+_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n+Define base class for scalar product and norm.\n+_\bi_\bo_\b._\bh_\bh\n+Some generic functions for pretty printing vectors and matrices.\n+_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh\n+Provides a classes representing the hierarchies in AMG.\n _\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\n Classes for the generic construction and application of the smoothers.\n-_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n-Provides classes for the Coloring process of AMG.\n-_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\n-Provides classes for building the matrix graph.\n-_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\n-Provides a class for building the galerkin product based on a aggregation\n-scheme.\n-_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh\n-Provides a classes representing the hierarchies in AMG.\n-_\bg_\br_\ba_\bp_\bh_\bc_\br_\be_\ba_\bt_\bo_\br_\b._\bh_\bh\n-_\bg_\bl_\bo_\bb_\ba_\bl_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n-Provdes class for identifying aggregates globally.\n-_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh\n-Provides classes for initializing the link attributes of a matrix graph.\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n-_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh\n-Functionality for redistributing a sparse matrix.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs\n-auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::\n-value > *sfinae=nullptr)\n-Get the number of nonzero fields in the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:119\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bs\n-const AggregatesMapList & aggregatesMaps() const\n-Get the hierarchy of the mappings of the nodes onto aggregates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:812\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bi_\bs_\bB_\bu_\bi_\bl_\bt\n-bool isBuilt() const\n-Whether the hierarchy was built.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:953\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bh_\ba_\bs_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt\n-bool hasCoarsest() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:946\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs\n-std::size_t levels() const\n-Get the number of levels in the hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:322\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs\n-std::size_t levels() const\n-Get the number of levels in the hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:934\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br\n-void addCoarser(Arguments &args)\n-Add an element on a coarser level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:334\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-const RedistributeInfoList & redistributeInformation() const\n-Get the hierarchy of the information about redistributions,.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:818\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bp_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-const ParallelInformationHierarchy & parallelInformation() const\n-Get the hierarchy of the parallel data distribution information.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:737\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\bA_\bn_\bd_\bD_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx\n-bool repartitionAndDistributeMatrix(const M &origMatrix, std::shared_ptr< M >\n-newMatrix, SequentialInformation &origComm, std::shared_ptr<\n-SequentialInformation > &newComm, RedistributeInformation<\n-SequentialInformation > &ri, int nparts, C1 &criterion)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:313\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-const_iterator begin() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:725\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bc_\be_\bs\n-const ParallelMatrixHierarchy & matrices() const\n-Get the matrix hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:730\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs\n-std::size_t maxlevels() const\n-Get the max number of levels in the hierarchy of processors.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:940\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n-const_iterator end() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:730\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD\n-static const V ISOLATED\n-Identifier of isolated vertices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:571\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn\n-void recalculateGalerkin(const F ©Flags)\n-Recalculate the galerkin products.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:898\n+_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh\n+Prolongation and restriction for amg.\n+_\bf_\ba_\bs_\bt_\ba_\bm_\bg_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\n+_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n+Templates characterizing the type of a solver.\n+_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh\n+Classes for using SuperLU with ISTL matrices.\n+_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh\n+Classes for using UMFPack with ISTL matrices.\n+_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n+Implementations of the inverse operator interface.\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n+Define general preconditioner interface.\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh\n+void presmooth(LevelContext &levelContext, size_t steps)\n+Apply pre smoothing on the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:406\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n const void * Arguments\n A type holding all the arguments needed to call the constructor.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:44\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n-std::size_t noVertices() const\n-Get the number of vertices.\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n static std::shared_ptr< T > construct(Arguments &args)\n Construct an object with the specified arguments.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn_\bV_\be_\bc_\bt_\bo_\br\n-void coarsenVector(Hierarchy< BlockVector< V, BA >, TA > &hierarchy) const\n-Coarsen the vector hierarchy according to the matrix hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:841\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-const AggregateDescriptor * const_iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:723\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-MatrixHierarchy(std::shared_ptr< MatrixOperator > fineMatrix, std::shared_ptr<\n-ParallelInformation > pinfo=std::make_shared< ParallelInformation >())\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:389\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be\n-AccumulationMode\n-Identifiers for the different accumulation modes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:232\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bf_\bi_\bn_\be_\bs_\bt\n-Iterator finest()\n-Get an iterator positioned at the finest level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:377\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bb_\bu_\bi_\bl_\bd\n-void build(const T &criterion)\n-Build the matrix hierarchy using aggregation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:400\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bf_\br_\be_\be\n-void free()\n-Free the allocated memory.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bn_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n-void coarsenSmoother(Hierarchy< S, TA > &smoothers, const typename\n-SmootherTraits< S >::Arguments &args) const\n-Coarsen the smoother hierarchy according to the matrix hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:868\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-void buildDependency(G &graph, const typename C::Matrix &matrix, C criterion,\n-bool finestLevel)\n-Build the dependency of the matrix graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs\n-std::tuple< int, int, int, int > buildAggregates(const M &matrix, G &graph,\n-const C &criterion, bool finestLevel)\n-Build the aggregates.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be\n-void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse,\n-const I &pinfo, const O ©)\n-Calculate the galerkin product.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bO_\bn_\bF_\bi_\bn_\be_\bs_\bt\n-void getCoarsestAggregatesOnFinest(std::vector< std::size_t > &data) const\n-Get the mapping of fine level unknowns to coarse level aggregates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:743\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\b~_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-~MatrixHierarchy()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:824\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\bA_\bX_\b__\bP_\bR_\bO_\bC_\bE_\bS_\bS_\bE_\bS\n-@ MAX_PROCESSES\n-Hard limit for the number of processes allowed.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:50\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu\n-@ atOnceAccu\n-Accumulate data to one process at once.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:244\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu\n-@ successiveAccu\n-Successively accumulate to fewer processes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:248\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh\n+void postsmooth(LevelContext &levelContext, size_t steps)\n+Apply post smoothing on the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n+int iterations\n+The numbe of iterations to perform.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:47\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n+OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix\n+The iterator over the matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:184\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs\n+void getCoarsestAggregateNumbers(std::vector< std::size_t, A1 > &cont)\n+Get the aggregate number of each unknown on the coarsest level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:704\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bp_\bi_\bn_\bf_\bo\n+ParallelInformationHierarchy::Iterator pinfo\n+The iterator over the parallel information.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:188\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+void recalculateHierarchy()\n+Recalculate the matrix hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bp_\bo_\bs_\bt\n+void post(Domain &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:695\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs\n+std::size_t maxlevels()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:481\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n+X Domain\n+The domain type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:77\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\br_\be_\bs_\bi_\bd_\bu_\ba_\bl\n+Hierarchy< Domain, A >::Iterator residual\n+The iterator over the residuals.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:204\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:123\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+MatrixHierarchy< M, ParallelInformation, A > OperatorHierarchy\n+The operator hierarchy type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:72\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt\n+OperatorHierarchy::RedistributeInfoList::const_iterator redist\n+The iterator over the redistribution information.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:192\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be\n+X Range\n+The range type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:79\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+PI ParallelInformation\n+The type of the parallel information. Either OwnerOverlapCommunication or\n+another type describing the...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+M Operator\n+The matrix operator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:63\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs\n+std::size_t levels()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:476\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br\n+InverseOperator< X, X > CoarseSolver\n+the type of the coarse solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n+bool usesDirectCoarseLevelSolver() const\n+Check whether the coarse solver used is a direct solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:632\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bl_\bh_\bs\n+Hierarchy< Domain, A >::Iterator lhs\n+The iterator over the left hand side.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:200\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\br_\bh_\bs\n+Hierarchy< Range, A >::Iterator rhs\n+The iterator over the right hand sided.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:208\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bl_\be_\bv_\be_\bl\n+std::size_t level\n+The level index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:212\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(Domain &v, const Range &d)\n+Apply one step of the preconditioner to the system A(v)=d.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:488\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+OperatorHierarchy::ParallelInformationHierarchy ParallelInformationHierarchy\n+The parallal data distribution hierarchy type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:74\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bp_\br_\be\n+void pre(Domain &x, Range &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:427\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG\n+FastAMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const\n+Parameters &parms, bool symmetric=true)\n+Construct a new amg with a specific coarse solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:297\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs\n+OperatorHierarchy::AggregatesMapList::const_iterator aggregates\n+The iterator over the aggregates maps.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:196\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bG_\bl_\bo_\bb_\ba_\bl_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx\n-void printGlobalSparseMatrix(const M &mat, C &ooc, std::ostream &os)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:154\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs\n-void redistributeMatrixEntries(M &origMatrix, M &newMatrix, C &origComm, C\n-&newComm, RedistributeInformation< C > &ri)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:757\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn\n-bool commGraphRepartition(const M &mat, Dune::OwnerOverlapCopyCommunication<\n-T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::\n-OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface\n-&redistInf, bool verbose=false)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:829\n-_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx\n-void redistributeMatrix(M &origMatrix, M &newMatrix, C &origComm, C &newComm,\n-RedistributeInformation< C > &ri)\n-Redistribute a matrix according to given domain decompositions.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:820\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn\n-bool graphRepartition(const G &graph, Dune::OwnerOverlapCopyCommunication< T1,\n-T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::\n-OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface\n-&redistInf, bool verbose=false)\n-execute a graph repartition for a giving graph and indexset.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:1235\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator class for sequential access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:404\n _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n A generic dynamic dense matrix.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-Type for indices and sizes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:577\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n-MatrixImp::DenseMatrixBase< T, A >::window_type row_type\n-The type implementing a matrix row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:574\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-Class providing information about the mapping of the vertices onto aggregates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-Class representing the properties of an ede in the matrix graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:39\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-Class representing a node in the matrix graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:118\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:131\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-The (undirected) graph of a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-Attaches properties to the edges and vertices of a graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:978\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-Graph::VertexDescriptor VertexDescriptor\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:988\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-A hierarchy of containers (e.g. matrices or vectors)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:40\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-LevelIterator< Hierarchy< MatrixOperator, Allocator >, MatrixOperator >\n-Iterator\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< T >::field_type field_type\n+Export the type representing the underlying field.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:565\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::const_iterator ConstColIterator\n+Const iterator for the entries of each row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+T block_type\n+Export the type representing the components.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:568\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG\n+A fast (sequential) algebraic multigrid based on agglomeration that saves\n+memory bandwidth.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:60\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+static void apply(const M &A, X &x, Y &d, const Y &b)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamgsmoother.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation\n+> Iterator\n Type of the mutable iterator.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:216\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-LevelIterator< const Hierarchy< MatrixOperator, Allocator >, const\n-MatrixOperator > ConstIterator\n-Type of the const iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:219\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator over the levels in the hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:120\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n The hierarchies build by the coarsening process.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n-typename std::allocator_traits< Allocator >::template rebind_alloc<\n-AggregatesMap * > AAllocator\n-Allocator for pointers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:85\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-Dune::Amg::Hierarchy< ParallelInformation, Allocator >\n-ParallelInformationHierarchy\n-The type of the parallel informarion hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\bL_\bi_\bs_\bt\n-std::list< AggregatesMap *, AAllocator > AggregatesMapList\n-The type of the aggregates maps list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:88\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-PI ParallelInformation\n-The type of the index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-Dune::Amg::Hierarchy< MatrixOperator, Allocator > ParallelMatrixHierarchy\n-The type of the parallel matrix hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:79\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n-A Allocator\n-The allocator to use.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bT_\by_\bp_\be\n-RedistributeInformation< ParallelInformation > RedistributeInfoType\n-The type of the redistribute information.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:91\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bg_\be_\bt_\bP_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\bi_\bo_\bn_\bD_\ba_\bm_\bp_\bi_\bn_\bg_\bF_\ba_\bc_\bt_\bo_\br\n-double getProlongationDampingFactor() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:188\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bR_\bI_\bL_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n-typename std::allocator_traits< Allocator >::template rebind_alloc<\n-RedistributeInfoType > RILAllocator\n-Allocator for RedistributeInfoType.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:94\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\bL_\bi_\bs_\bt\n-std::list< RedistributeInfoType, RILAllocator > RedistributeInfoList\n-The type of the list of redistribute information.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:97\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-Dune::Amg::AggregatesMap< typename MatrixGraph< Matrix >::VertexDescriptor >\n-AggregatesMap\n-The type of the aggregates map we use.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-MatrixOperator::matrix_type Matrix\n-The type of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-M MatrixOperator\n-The type of the matrix operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:64\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const matrix_row &row)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:254\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\br_\bo_\bw\n-Matrix::row_type matrix_row\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:245\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bm_\bi_\bn\n-size_type min\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:261\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bc_\ba_\bl_\bc\n-calc()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:247\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bm_\ba_\bx\n-size_type max\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:262\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bs_\bu_\bm\n-size_type sum\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:263\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bt_\ba_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-Matrix::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:244\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-The criterion describing the stop criteria for the coarsening process.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:283\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-CoarsenCriterion(const Dune::Amg::Parameters &parms)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:306\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-T AggregationCriterion\n-The criterion for tagging connections as strong and nodes as isolated. This\n-might be e....\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:289\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-CoarsenCriterion(int maxLevel=100, int coarsenTarget=1000, double\n-minCoarsenRate=1.2, double prolongDamp=1.6, AccumulationMode\n-accumulate=successiveAccu)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:301\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n All parameters for AMG.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:393\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n-Tag idnetifying the visited property of a vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:29\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n The default class for the smoother arguments.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:38\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-static Category category(const OP &op, decltype(op.category()) *=nullptr)\n-Helperfunction to extract the solver category either from an enum, or from the\n-newly introduced virtu...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n+Sequential SSOR preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:141\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Base class for scalar product and norm computation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+Statistics about the application of an inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n+bool converged\n+True if convergence criterion has been met.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Abstract base class for all solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00101.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00101.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: smoother.hh File Reference\n+dune-istl: dependency.hh File Reference\n \n \n \n \n \n \n \n@@ -73,117 +73,60 @@\n
    \n \n \n
    \n \n-

    Classes for the generic construction and application of the smoothers. \n+

    Provides classes for initializing the link attributes of a matrix graph. \n More...

    \n-
    #include <dune/istl/paamg/construction.hh>
    \n-#include <dune/istl/paamg/aggregates.hh>
    \n-#include <dune/istl/preconditioners.hh>
    \n-#include <dune/istl/schwarz.hh>
    \n-#include <dune/istl/novlpschwarz.hh>
    \n+
    #include <bitset>
    \n+#include <ostream>
    \n+#include "graph.hh"
    \n+#include "properties.hh"
    \n #include <dune/common/propertymap.hh>
    \n-#include <dune/common/ftraits.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n

    \n Classes

    struct  Dune::Amg::DefaultSmootherArgs< T >
     The default class for the smoother arguments. More...
    class  Dune::Amg::EdgeProperties
     Class representing the properties of an ede in the matrix graph. More...
     
    struct  Dune::Amg::SmootherTraits< T >
     Traits class for getting the attribute class of a smoother. More...
    class  Dune::Amg::VertexProperties
     Class representing a node in the matrix graph. More...
     
    struct  Dune::Amg::SmootherTraits< Richardson< X, Y > >
    class  Dune::Amg::PropertyGraphVertexPropertyMap< G, i >
     
    struct  Dune::Amg::SmootherTraits< BlockPreconditioner< X, Y, C, T > >
     
    struct  Dune::Amg::SmootherTraits< NonoverlappingBlockPreconditioner< C, T > >
     
    class  Dune::Amg::DefaultConstructionArgs< T >
     Construction Arguments for the default smoothers. More...
     
    struct  Dune::Amg::ConstructionArgs< T >
     
    class  Dune::Amg::DefaultParallelConstructionArgs< T, C >
     
    class  Dune::Amg::DefaultConstructionArgs< Richardson< X, Y > >
     
    struct  Dune::Amg::ConstructionTraits< SeqSSOR< M, X, Y, l > >
     Policy for the construction of the SeqSSOR smoother. More...
     
    struct  Dune::Amg::ConstructionTraits< SeqSOR< M, X, Y, l > >
     Policy for the construction of the SeqSOR smoother. More...
     
    struct  Dune::Amg::ConstructionTraits< SeqJac< M, X, Y, l > >
     Policy for the construction of the SeqJac smoother. More...
     
    struct  Dune::Amg::ConstructionTraits< Richardson< X, Y > >
     Policy for the construction of the Richardson smoother. More...
     
    class  Dune::Amg::ConstructionArgs< SeqILU< M, X, Y > >
     
    struct  Dune::Amg::ConstructionTraits< SeqILU< M, X, Y > >
     Policy for the construction of the SeqILU smoother. More...
     
    struct  Dune::Amg::ConstructionTraits< ParSSOR< M, X, Y, C > >
     Policy for the construction of the ParSSOR smoother. More...
     
    struct  Dune::Amg::ConstructionTraits< BlockPreconditioner< X, Y, C, T > >
     
    struct  Dune::Amg::ConstructionTraits< NonoverlappingBlockPreconditioner< C, T > >
     
    struct  Dune::Amg::SmootherApplier< T >
     Helper class for applying the smoothers. More...
     
    struct  Dune::Amg::SmootherApplier< SeqSOR< M, X, Y, l > >
     
    struct  Dune::Amg::SmootherApplier< BlockPreconditioner< X, Y, C, SeqSOR< M, X, Y, l > > >
     
    struct  Dune::Amg::SmootherApplier< NonoverlappingBlockPreconditioner< C, SeqSOR< M, X, Y, l > > >
     
    struct  Dune::Amg::SmootherApplier< SeqOverlappingSchwarz< M, X, MultiplicativeSchwarzMode, MS, TA > >
     
    struct  Dune::Amg::SeqOverlappingSchwarzSmootherArgs< T >
     
    struct  Dune::Amg::SmootherTraits< SeqOverlappingSchwarz< M, X, TM, TS, TA > >
     
    class  Dune::Amg::ConstructionArgs< SeqOverlappingSchwarz< M, X, TM, TS, TA > >
     
    struct  Dune::Amg::ConstructionTraits< SeqOverlappingSchwarz< M, X, TM, TS, TA > >
    struct  Dune::PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >
     
    \n \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n

    \n Functions

    template<typename LevelContext >
    void Dune::Amg::presmooth (LevelContext &levelContext, size_t steps)
     Apply pre smoothing on the current level.
     
    template<typename LevelContext >
    void Dune::Amg::postsmooth (LevelContext &levelContext, size_t steps)
     Apply post smoothing on the current level.
     
    template<typename G , typename EP , typename VM , typename EM >
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type Dune::get (const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
     
    std::ostream & Dune::Amg::operator<< (std::ostream &os, const EdgeProperties &props)
     
    std::ostream & Dune::Amg::operator<< (std::ostream &os, const VertexProperties &props)
     
    \n

    Detailed Description

    \n-

    Classes for the generic construction and application of the smoothers.

    \n+

    Provides classes for initializing the link attributes of a matrix graph.

    \n
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -2,110 +2,55 @@\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-smoother.hh File Reference\n+dependency.hh File Reference\n _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Classes for the generic construction and application of the smoothers. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n+Provides classes for initializing the link attributes of a matrix graph.\n+_\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n+#include \"_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b._\bh_\bh\"\n #include \n-#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\b _\bT_\b _\b>\n-\u00a0 The default class for the smoother arguments. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+\u00a0 Class representing the properties of an ede in the matrix graph.\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bT_\b _\b>\n-\u00a0 Traits class for getting the attribute class of a smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+\u00a0 Class representing a node in the matrix graph. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\b _\bG_\b,_\b _\bi_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bT_\b _\b>\n-\u00a0 Construction Arguments for the default smoothers. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bT_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bT_\b,_\b _\bC_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>\n-\u00a0 Policy for the construction of the _\bS_\be_\bq_\bS_\bS_\bO_\bR smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>\n-\u00a0 Policy for the construction of the _\bS_\be_\bq_\bS_\bO_\bR smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bJ_\ba_\bc_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>\n-\u00a0 Policy for the construction of the _\bS_\be_\bq_\bJ_\ba_\bc smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n-\u00a0 Policy for the construction of the _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n-\u00a0 Policy for the construction of the _\bS_\be_\bq_\bI_\bL_\bU smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bP_\ba_\br_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>\n-\u00a0 Policy for the construction of the _\bP_\ba_\br_\bS_\bS_\bO_\bR smoother. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bT\n- _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bT_\b _\b>\n-\u00a0 Helper class for applying the smoothers. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,\n- _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,\n- _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n- _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>\n- _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA\n- _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\by_\bp_\be_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg_\b,_\b _\bA_\bm_\bg_\b:_\b:\n+ _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b,_\b _\bE_\bP_\b,_\b _\bV_\bM_\b,_\b _\bE_\bM_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh (LevelContext &levelContext, size_t steps)\n-\u00a0 Apply pre smoothing on the current level.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh (LevelContext &levelContext, size_t steps)\n-\u00a0 Apply post smoothing on the current level.\n+template\n+ PropertyMapTypeSelector< _\bA_\bm_\bg_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg, _\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh< _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt (const _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n+ G, _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs, EP, VM, EM > &tag, _\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh< G, _\bA_\bm_\bg_\b:_\b:\n+ >::Type\u00a0 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs, EP, VM, EM > &graph)\n+\u00a0\n+ std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream\n+ &os, const _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs &props)\n+\u00a0\n+ std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream\n+ &os, const _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs &props)\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Classes for the generic construction and application of the smoothers.\n+Provides classes for initializing the link attributes of a matrix graph.\n Author\n Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00101_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00101_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: smoother.hh Source File\n+dune-istl: dependency.hh Source File\n \n \n \n \n \n \n \n@@ -74,1126 +74,486 @@\n \n
    \n \n
    \n
    \n
    \n-
    smoother.hh
    \n+
    dependency.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMGSMOOTHER_HH
    \n-
    6#define DUNE_AMGSMOOTHER_HH
    \n+
    5#ifndef DUNE_AMG_DEPENDENCY_HH
    \n+
    6#define DUNE_AMG_DEPENDENCY_HH
    \n
    7
    \n-\n-\n-\n-
    11#include <dune/istl/schwarz.hh>
    \n-\n-
    13#include <dune/common/propertymap.hh>
    \n-
    14#include <dune/common/ftraits.hh>
    \n+
    8
    \n+
    9#include <bitset>
    \n+
    10#include <ostream>
    \n+
    11
    \n+
    12#include "graph.hh"
    \n+
    13#include "properties.hh"
    \n+
    14#include <dune/common/propertymap.hh>
    \n
    15
    \n-
    16namespace Dune
    \n-
    17{
    \n-
    18 namespace Amg
    \n-
    19 {
    \n-
    20
    \n-
    36 template<class T>
    \n-
    \n-\n-
    38 {
    \n-
    42 typedef typename FieldTraits<T>::real_type RelaxationFactor;
    \n-
    43
    \n-\n-\n-
    52
    \n-
    \n-\n-\n-
    58 {}
    \n-
    \n-
    59 };
    \n-
    \n-
    60
    \n-
    64 template<class T>
    \n-\n+
    16
    \n+
    17namespace Dune
    \n+
    18{
    \n+
    19 namespace Amg
    \n+
    20 {
    \n+
    \n+\n+
    39 {
    \n+
    40 friend std::ostream& operator<<(std::ostream& os, const EdgeProperties& props);
    \n+
    41 public:
    \n+\n+
    44
    \n+
    45 private:
    \n+
    46
    \n+
    47 std::bitset<SIZE> flags_;
    \n+
    48 public:
    \n+\n+
    51
    \n+
    53 std::bitset<SIZE>::reference operator[](std::size_t v);
    \n+
    54
    \n+
    56 bool operator[](std::size_t v) const;
    \n+
    57
    \n+
    63 bool depends() const;
    \n+
    64
    \n+
    69 void setDepends();
    \n
    70
    \n-
    71 template<class X, class Y>
    \n-
    \n-\n-
    73 {
    \n-\n+
    74 void resetDepends();
    \n
    75
    \n-
    76 };
    \n-
    \n-
    77
    \n-
    78 template<class X, class Y, class C, class T>
    \n-
    \n-\n-
    80 : public SmootherTraits<T>
    \n-
    81 {};
    \n-
    \n-
    82
    \n-
    83 template<class C, class T>
    \n-
    \n-\n-
    85 : public SmootherTraits<T>
    \n-
    86 {};
    \n-
    \n-
    87
    \n-
    91 template<class T>
    \n-
    \n-\n-
    93 {
    \n-
    94 typedef typename T::matrix_type Matrix;
    \n-
    95
    \n-\n+
    80 bool influences() const;
    \n+
    81
    \n+
    85 void setInfluences();
    \n+
    86
    \n+
    90 void resetInfluences();
    \n+
    91
    \n+
    96 bool isOneWay() const;
    \n
    97
    \n-\n-
    99
    \n-
    100 public:
    \n-
    \n-\n-
    102 {}
    \n-
    \n+
    102 bool isTwoWay() const;
    \n
    103
    \n-
    \n-
    104 void setMatrix(const Matrix& matrix)
    \n-
    105 {
    \n-
    106 matrix_=&matrix;
    \n-
    107 }
    \n-
    \n-
    \n-
    108 virtual void setMatrix(const Matrix& matrix, [[maybe_unused]] const AggregatesMap& amap)
    \n-
    109 {
    \n-
    110 setMatrix(matrix);
    \n-
    111 }
    \n-
    \n-
    112
    \n-
    113
    \n-
    \n-
    114 const Matrix& getMatrix() const
    \n-
    115 {
    \n-
    116 return *matrix_;
    \n-
    117 }
    \n-
    \n-
    118
    \n-
    \n-
    119 void setArgs(const SmootherArgs& args)
    \n-
    120 {
    \n-
    121 args_=&args;
    \n-
    122 }
    \n-
    \n-
    123
    \n-
    124 template<class T1>
    \n-
    \n-
    125 void setComm([[maybe_unused]] T1& comm)
    \n-
    126 {}
    \n-
    \n-
    127
    \n-
    \n-\n-
    129 {
    \n-
    130 return comm_;
    \n-
    131 }
    \n-
    \n-
    132
    \n-
    \n-
    133 const SmootherArgs getArgs() const
    \n-
    134 {
    \n-
    135 return *args_;
    \n-
    136 }
    \n-
    \n-
    137
    \n-
    138 protected:
    \n-
    139 const Matrix* matrix_;
    \n-
    140 private:
    \n-
    141 const SmootherArgs* args_;
    \n-\n-
    143 };
    \n-
    \n+
    108 bool isStrong() const;
    \n+
    109
    \n+
    113 void reset();
    \n+
    114
    \n+
    118 void printFlags() const;
    \n+
    119 };
    \n+
    \n+
    120
    \n+
    \n+\n+
    127 friend std::ostream& operator<<(std::ostream& os, const VertexProperties& props);
    \n+
    128 public:
    \n+\n+
    130 private:
    \n+
    131
    \n+
    133 std::bitset<SIZE> flags_;
    \n+
    134
    \n+
    135 public:
    \n+\n+
    138
    \n+
    140 std::bitset<SIZE>::reference operator[](std::size_t v);
    \n+
    141
    \n+
    143 bool operator[](std::size_t v) const;
    \n
    144
    \n-
    145 template<class T>
    \n-
    \n-\n-
    147 : public DefaultConstructionArgs<T>
    \n-
    148 {};
    \n-
    \n-
    149
    \n-
    150 template<class T, class C=SequentialInformation>
    \n-
    \n-\n-
    152 : public ConstructionArgs<T>
    \n-
    153 {
    \n-
    154 public:
    \n-
    \n-\n-
    156 {}
    \n-
    \n+
    151 void setIsolated();
    \n+
    152
    \n+
    156 bool isolated() const;
    \n
    157
    \n-
    \n-
    158 void setComm(const C& comm)
    \n-
    159 {
    \n-
    160 comm_ = &comm;
    \n-
    161 }
    \n-
    \n+
    161 void resetIsolated();
    \n
    162
    \n-
    \n-
    163 const C& getComm() const
    \n-
    164 {
    \n-
    165 return *comm_;
    \n-
    166 }
    \n-
    \n-
    167 private:
    \n-
    168 const C* comm_;
    \n-
    169 };
    \n-
    \n-
    170
    \n-
    171
    \n-
    172 template<class X, class Y>
    \n-
    \n-\n-
    174 {
    \n-
    175 typedef Richardson<X,Y> T;
    \n-
    176
    \n-\n-
    178
    \n-
    179 public:
    \n-
    \n-\n-
    181 {}
    \n-
    \n+
    166 void setVisited();
    \n+
    167
    \n+
    171 bool visited() const;
    \n+
    172
    \n+
    176 void resetVisited();
    \n+
    177
    \n+
    181 void setFront();
    \n
    182
    \n-
    183 template <class... Args>
    \n-
    \n-
    184 void setMatrix(const Args&...)
    \n-
    185 {}
    \n-
    \n-
    186
    \n-
    \n-
    187 void setArgs(const SmootherArgs& args)
    \n-
    188 {
    \n-
    189 args_=&args;
    \n-
    190 }
    \n-
    \n-
    191
    \n-
    192 template<class T1>
    \n-
    \n-
    193 void setComm([[maybe_unused]] T1& comm)
    \n-
    194 {}
    \n-
    \n-
    195
    \n-
    \n-\n-
    197 {
    \n-
    198 return comm_;
    \n-
    199 }
    \n-
    \n-
    200
    \n-
    \n-
    201 const SmootherArgs getArgs() const
    \n-
    202 {
    \n-
    203 return *args_;
    \n-
    204 }
    \n-
    \n-
    205
    \n-
    206 private:
    \n-
    207 const SmootherArgs* args_;
    \n-\n-
    209 };
    \n-
    \n-
    210
    \n-
    211
    \n-
    212
    \n-
    213 template<class T>
    \n-
    214 struct ConstructionTraits;
    \n+
    186 bool front() const;
    \n+
    187
    \n+
    191 void resetFront();
    \n+
    192
    \n+
    196 void setExcludedBorder();
    \n+
    197
    \n+
    202 bool excludedBorder() const;
    \n+
    203
    \n+
    207 void resetExcludedBorder();
    \n+
    208
    \n+
    212 void reset();
    \n+
    213
    \n+
    214 };
    \n+
    \n
    215
    \n-
    219 template<class M, class X, class Y, int l>
    \n-
    \n-
    220 struct ConstructionTraits<SeqSSOR<M,X,Y,l> >
    \n-
    221 {
    \n-\n-
    223
    \n-
    \n-
    224 static inline std::shared_ptr<SeqSSOR<M,X,Y,l>> construct(Arguments& args)
    \n-
    225 {
    \n-
    226 return std::make_shared<SeqSSOR<M,X,Y,l>>
    \n-
    227 (args.getMatrix(), args.getArgs().iterations, args.getArgs().relaxationFactor);
    \n-
    228 }
    \n-
    \n-
    229 };
    \n-
    \n-
    230
    \n-
    231
    \n-
    235 template<class M, class X, class Y, int l>
    \n-
    \n-
    236 struct ConstructionTraits<SeqSOR<M,X,Y,l> >
    \n-
    237 {
    \n-\n+
    216 template<typename G, std::size_t i>
    \n+
    \n+\n+
    218 : public RAPropertyMapHelper<typename std::bitset<VertexProperties::SIZE>::reference,
    \n+
    219 PropertyGraphVertexPropertyMap<G,i> >
    \n+
    220 {
    \n+
    221 public:
    \n+
    222
    \n+
    223 typedef ReadWritePropertyMapTag Category;
    \n+
    224
    \n+
    225 enum {
    \n+
    227 index = i
    \n+
    228 };
    \n+
    229
    \n+
    233 typedef G Graph;
    \n+
    234
    \n+
    238 typedef std::bitset<VertexProperties::SIZE> BitSet;
    \n
    239
    \n-
    \n-
    240 static inline std::shared_ptr<SeqSOR<M,X,Y,l>> construct(Arguments& args)
    \n-
    241 {
    \n-
    242 return std::make_shared<SeqSOR<M,X,Y,l>>
    \n-
    243 (args.getMatrix(), args.getArgs().iterations, args.getArgs().relaxationFactor);
    \n-
    244 }
    \n-
    \n-
    245 };
    \n-
    \n-
    246
    \n-
    247
    \n-
    251 template<class M, class X, class Y, int l>
    \n-
    \n-
    252 struct ConstructionTraits<SeqJac<M,X,Y,l> >
    \n-
    253 {
    \n-\n-
    255
    \n-
    \n-
    256 static inline std::shared_ptr<SeqJac<M,X,Y,l>> construct(Arguments& args)
    \n-
    257 {
    \n-
    258 return std::make_shared<SeqJac<M,X,Y,l>>
    \n-
    259 (args.getMatrix(), args.getArgs().iterations, args.getArgs().relaxationFactor);
    \n-
    260 }
    \n-
    \n-
    261 };
    \n+
    243 typedef typename BitSet::reference Reference;
    \n+
    244
    \n+
    248 typedef bool ValueType;
    \n+
    249
    \n+
    253 typedef typename G::VertexDescriptor Vertex;
    \n+
    254
    \n+
    \n+\n+
    260 : graph_(&g)
    \n+
    261 {}
    \n
    \n
    262
    \n-
    266 template<class X, class Y>
    \n-
    \n-
    267 struct ConstructionTraits<Richardson<X,Y> >
    \n-
    268 {
    \n-\n-
    270
    \n-
    \n-
    271 static inline std::shared_ptr<Richardson<X,Y>> construct(Arguments& args)
    \n-
    272 {
    \n-
    273 return std::make_shared<Richardson<X,Y>>
    \n-
    274 (args.getArgs().relaxationFactor);
    \n-
    275 }
    \n-
    \n-
    276 };
    \n-
    \n-
    277
    \n-
    278
    \n-
    279 template<class M, class X, class Y>
    \n-
    \n-\n-
    281 : public DefaultConstructionArgs<SeqILU<M,X,Y> >
    \n-
    282 {
    \n-
    283 public:
    \n-
    \n-\n-
    285 : n_(n)
    \n-
    286 {}
    \n-
    \n-
    287
    \n-
    \n-
    288 void setN(int n)
    \n-
    289 {
    \n-
    290 n_ = n;
    \n-
    291 }
    \n+
    \n+\n+
    267 : graph_(0)
    \n+
    268 {}
    \n
    \n-
    292
    \n+
    269
    \n+
    270
    \n+
    \n+
    275 Reference operator[](const Vertex& vertex) const
    \n+
    276 {
    \n+
    277 return graph_->getVertexProperties(vertex)[index];
    \n+
    278 }
    \n+
    \n+
    279 private:
    \n+
    280 Graph* graph_;
    \n+
    281 };
    \n+
    \n+
    282
    \n+
    283 } // end namespace Amg
    \n+
    284
    \n+
    285 template<typename G, typename EP, typename VM, typename EM>
    \n+
    \n+
    286 struct PropertyMapTypeSelector<Amg::VertexVisitedTag,Amg::PropertiesGraph<G,Amg::VertexProperties,EP,VM,EM> >
    \n+
    287 {
    \n+\n+
    289 };
    \n+
    \n+
    290
    \n+
    291 template<typename G, typename EP, typename VM, typename EM>
    \n+
    292 typename PropertyMapTypeSelector<Amg::VertexVisitedTag,Amg::PropertiesGraph<G,Amg::VertexProperties,EP,VM,EM> >::Type
    \n \n
    297
    \n-
    298 private:
    \n-
    299 int n_;
    \n-
    300 };
    \n-
    \n-
    301
    \n-
    302
    \n-
    306 template<class M, class X, class Y>
    \n-
    \n-
    307 struct ConstructionTraits<SeqILU<M,X,Y> >
    \n-
    308 {
    \n-\n-
    310
    \n-
    \n-
    311 static inline std::shared_ptr<SeqILU<M,X,Y>> construct(Arguments& args)
    \n-
    312 {
    \n-
    313 return std::make_shared<SeqILU<M,X,Y>>
    \n-
    314 (args.getMatrix(), args.getN(), args.getArgs().relaxationFactor);
    \n-
    315 }
    \n-
    \n-
    316 };
    \n-
    \n-
    317
    \n-
    321 template<class M, class X, class Y, class C>
    \n-
    \n-
    322 struct ConstructionTraits<ParSSOR<M,X,Y,C> >
    \n-
    323 {
    \n-\n-
    325
    \n-
    \n-
    326 static inline std::shared_ptr<ParSSOR<M,X,Y,C>> construct(Arguments& args)
    \n-
    327 {
    \n-
    328 return std::make_shared<ParSSOR<M,X,Y,C>>
    \n-
    329 (args.getMatrix(), args.getArgs().iterations,
    \n-
    330 args.getArgs().relaxationFactor, args.getComm());
    \n-
    331 }
    \n-
    \n-
    332 };
    \n-
    \n-
    333
    \n-
    334 template<class X, class Y, class C, class T>
    \n-
    \n-
    335 struct ConstructionTraits<BlockPreconditioner<X,Y,C,T> >
    \n-
    336 {
    \n-\n-
    338 typedef ConstructionTraits<T> SeqConstructionTraits;
    \n-
    \n-
    339 static inline std::shared_ptr<BlockPreconditioner<X,Y,C,T>> construct(Arguments& args)
    \n-
    340 {
    \n-
    341 auto seqPrec = SeqConstructionTraits::construct(args);
    \n-
    342 return std::make_shared<BlockPreconditioner<X,Y,C,T>> (seqPrec, args.getComm());
    \n-
    343 }
    \n-
    \n-
    344 };
    \n-
    \n-
    345
    \n-
    346 template<class C, class T>
    \n-
    \n-
    347 struct ConstructionTraits<NonoverlappingBlockPreconditioner<C,T> >
    \n-
    348 {
    \n-\n-
    350 typedef ConstructionTraits<T> SeqConstructionTraits;
    \n-
    \n-
    351 static inline std::shared_ptr<NonoverlappingBlockPreconditioner<C,T>> construct(Arguments& args)
    \n-
    352 {
    \n-
    353 auto seqPrec = SeqConstructionTraits::construct(args);
    \n-
    354 return std::make_shared<NonoverlappingBlockPreconditioner<C,T>> (seqPrec, args.getComm());
    \n-
    355 }
    \n-
    \n-
    356 };
    \n+
    298 namespace Amg
    \n+
    299 {
    \n+
    \n+
    300 inline std::ostream& operator<<(std::ostream& os, const EdgeProperties& props)
    \n+
    301 {
    \n+
    302 return os << props.flags_;
    \n+
    303 }
    \n+
    \n+
    304
    \n+
    \n+\n+
    306 : flags_()
    \n+
    307 {}
    \n+
    \n+
    308
    \n+
    309 inline std::bitset<EdgeProperties::SIZE>::reference
    \n+
    \n+\n+
    311 {
    \n+
    312 return flags_[v];
    \n+
    313 }
    \n+
    \n+
    314
    \n+
    \n+
    315 inline bool EdgeProperties::operator[](std::size_t i) const
    \n+
    316 {
    \n+
    317 return flags_[i];
    \n+
    318 }
    \n+
    \n+
    319
    \n+
    \n+\n+
    321 {
    \n+
    322 flags_.reset();
    \n+
    323 }
    \n+
    \n+
    324
    \n+
    \n+\n+
    326 {
    \n+
    327 // Set the INFLUENCE bit
    \n+
    328 //flags_ |= (1<<INFLUENCE);
    \n+
    329 flags_.set(INFLUENCE);
    \n+
    330 }
    \n+
    \n+
    331
    \n+
    \n+
    332 inline bool EdgeProperties::influences() const
    \n+
    333 {
    \n+
    334 // Test the INFLUENCE bit
    \n+
    335 return flags_.test(INFLUENCE);
    \n+
    336 }
    \n+
    \n+
    337
    \n+
    \n+\n+
    339 {
    \n+
    340 // Set the first bit.
    \n+
    341 //flags_ |= (1<<DEPEND);
    \n+
    342 flags_.set(DEPEND);
    \n+
    343 }
    \n+
    \n+
    344
    \n+
    \n+\n+
    346 {
    \n+
    347 // reset the first bit.
    \n+
    348 //flags_ &= ~(1<<DEPEND);
    \n+
    349 flags_.reset(DEPEND);
    \n+
    350 }
    \n+
    \n+
    351
    \n+
    \n+
    352 inline bool EdgeProperties::depends() const
    \n+
    353 {
    \n+
    354 // Return the first bit.
    \n+
    355 return flags_.test(DEPEND);
    \n+
    356 }
    \n
    \n
    357
    \n-
    368 template<class T>
    \n-
    \n-\n-
    370 {
    \n-
    371 typedef T Smoother;
    \n-
    372 typedef typename Smoother::range_type Range;
    \n-
    373 typedef typename Smoother::domain_type Domain;
    \n-
    374
    \n-
    \n-
    382 static void preSmooth(Smoother& smoother, Domain& v, const Range& d)
    \n-
    383 {
    \n-
    384 smoother.apply(v,d);
    \n-
    385 }
    \n-
    \n-
    386
    \n-
    \n-
    394 static void postSmooth(Smoother& smoother, Domain& v, const Range& d)
    \n-
    395 {
    \n-
    396 smoother.apply(v,d);
    \n-
    397 }
    \n-
    \n-
    398 };
    \n+
    \n+\n+
    359 {
    \n+
    360 // reset the second bit.
    \n+
    361 flags_ &= ~(1<<INFLUENCE);
    \n+
    362 }
    \n+
    \n+
    363
    \n+
    \n+
    364 inline bool EdgeProperties::isOneWay() const
    \n+
    365 {
    \n+
    366 // Test whether only the first bit is set
    \n+
    367 //return isStrong() && !isTwoWay();
    \n+
    368 return ((flags_) & std::bitset<SIZE>((1<<INFLUENCE)|(1<<DEPEND)))==(1<<DEPEND);
    \n+
    369 }
    \n+
    \n+
    370
    \n+
    \n+
    371 inline bool EdgeProperties::isTwoWay() const
    \n+
    372 {
    \n+
    373 // Test whether the first and second bit is set
    \n+
    374 return ((flags_) & std::bitset<SIZE>((1<<INFLUENCE)|(1<<DEPEND)))==((1<<INFLUENCE)|(1<<DEPEND));
    \n+
    375 }
    \n+
    \n+
    376
    \n+
    \n+
    377 inline bool EdgeProperties::isStrong() const
    \n+
    378 {
    \n+
    379 // Test whether the first or second bit is set
    \n+
    380 return ((flags_) & std::bitset<SIZE>((1<<INFLUENCE)|(1<<DEPEND))).to_ulong();
    \n+
    381 }
    \n+
    \n+
    382
    \n+
    383
    \n+
    \n+
    384 inline std::ostream& operator<<(std::ostream& os, const VertexProperties& props)
    \n+
    385 {
    \n+
    386 return os << props.flags_;
    \n+
    387 }
    \n+
    \n+
    388
    \n+
    \n+\n+
    390 : flags_()
    \n+
    391 {}
    \n+
    \n+
    392
    \n+
    393
    \n+
    394 inline std::bitset<VertexProperties::SIZE>::reference
    \n+
    \n+\n+
    396 {
    \n+
    397 return flags_[v];
    \n+
    398 }
    \n
    \n
    399
    \n-
    405 template<typename LevelContext>
    \n-
    \n-
    406 void presmooth(LevelContext& levelContext, size_t steps)
    \n-
    407 {
    \n-
    408 for(std::size_t i=0; i < steps; ++i) {
    \n-
    409 *levelContext.lhs=0;
    \n-\n-
    411 ::preSmooth(*levelContext.smoother, *levelContext.lhs,
    \n-
    412 *levelContext.rhs);
    \n-
    413 // Accumulate update
    \n-
    414 *levelContext.update += *levelContext.lhs;
    \n-
    415
    \n-
    416 // update defect
    \n-
    417 levelContext.matrix->applyscaleadd(-1, *levelContext.lhs, *levelContext.rhs);
    \n-
    418 levelContext.pinfo->project(*levelContext.rhs);
    \n-
    419 }
    \n-
    420 }
    \n-
    \n-
    421
    \n-
    427 template<typename LevelContext>
    \n-
    \n-
    428 void postsmooth(LevelContext& levelContext, size_t steps)
    \n-
    429 {
    \n-
    430 for(std::size_t i=0; i < steps; ++i) {
    \n-
    431 // update defect
    \n-
    432 levelContext.matrix->applyscaleadd(-1, *levelContext.lhs,
    \n-
    433 *levelContext.rhs);
    \n-
    434 *levelContext.lhs=0;
    \n-
    435 levelContext.pinfo->project(*levelContext.rhs);
    \n-\n-
    437 ::postSmooth(*levelContext.smoother, *levelContext.lhs, *levelContext.rhs);
    \n-
    438 // Accumulate update
    \n-
    439 *levelContext.update += *levelContext.lhs;
    \n-
    440 }
    \n-
    441 }
    \n-
    \n-
    442
    \n-
    443 template<class M, class X, class Y, int l>
    \n-
    \n-
    444 struct SmootherApplier<SeqSOR<M,X,Y,l> >
    \n-
    445 {
    \n-\n-
    447 typedef typename Smoother::range_type Range;
    \n-\n+
    \n+
    400 inline bool VertexProperties::operator[](std::size_t v) const
    \n+
    401 {
    \n+
    402 return flags_[v];
    \n+
    403 }
    \n+
    \n+
    404
    \n+
    \n+\n+
    406 {
    \n+
    407 flags_.set(ISOLATED);
    \n+
    408 }
    \n+
    \n+
    409
    \n+
    \n+
    410 inline bool VertexProperties::isolated() const
    \n+
    411 {
    \n+
    412 return flags_.test(ISOLATED);
    \n+
    413 }
    \n+
    \n+
    414
    \n+
    \n+\n+
    416 {
    \n+
    417 flags_.reset(ISOLATED);
    \n+
    418 }
    \n+
    \n+
    419
    \n+
    \n+\n+
    421 {
    \n+
    422 flags_.set(VISITED);
    \n+
    423 }
    \n+
    \n+
    424
    \n+
    \n+
    425 inline bool VertexProperties::visited() const
    \n+
    426 {
    \n+
    427 return flags_.test(VISITED);
    \n+
    428 }
    \n+
    \n+
    429
    \n+
    \n+\n+
    431 {
    \n+
    432 flags_.reset(VISITED);
    \n+
    433 }
    \n+
    \n+
    434
    \n+
    \n+\n+
    436 {
    \n+
    437 flags_.set(FRONT);
    \n+
    438 }
    \n+
    \n+
    439
    \n+
    \n+
    440 inline bool VertexProperties::front() const
    \n+
    441 {
    \n+
    442 return flags_.test(FRONT);
    \n+
    443 }
    \n+
    \n+
    444
    \n+
    \n+\n+
    446 {
    \n+
    447 flags_.reset(FRONT);
    \n+
    448 }
    \n+
    \n
    449
    \n
    \n-
    450 static void preSmooth(Smoother& smoother, Domain& v, Range& d)
    \n-
    451 {
    \n-
    452 smoother.template apply<true>(v,d);
    \n-
    453 }
    \n+\n+
    451 {
    \n+
    452 flags_.set(BORDER);
    \n+
    453 }
    \n
    \n
    454
    \n-
    455
    \n-
    \n-
    456 static void postSmooth(Smoother& smoother, Domain& v, Range& d)
    \n-
    457 {
    \n-
    458 smoother.template apply<false>(v,d);
    \n-
    459 }
    \n-
    \n-
    460 };
    \n-
    \n-
    461
    \n-
    462 template<class M, class X, class Y, class C, int l>
    \n-
    \n-\n-
    464 {
    \n-\n-
    466 typedef typename Smoother::range_type Range;
    \n-\n-
    468
    \n-
    \n-
    469 static void preSmooth(Smoother& smoother, Domain& v, Range& d)
    \n-
    470 {
    \n-
    471 smoother.template apply<true>(v,d);
    \n-
    472 }
    \n-
    \n-
    473
    \n-
    474
    \n-
    \n-
    475 static void postSmooth(Smoother& smoother, Domain& v, Range& d)
    \n-
    476 {
    \n-
    477 smoother.template apply<false>(v,d);
    \n-
    478 }
    \n-
    \n-
    479 };
    \n-
    \n-
    480
    \n-
    481 template<class M, class X, class Y, class C, int l>
    \n-
    \n-\n-
    483 {
    \n-\n-
    485 typedef typename Smoother::range_type Range;
    \n-\n-
    487
    \n-
    \n-
    488 static void preSmooth(Smoother& smoother, Domain& v, Range& d)
    \n-
    489 {
    \n-
    490 smoother.template apply<true>(v,d);
    \n-
    491 }
    \n-
    \n-
    492
    \n-
    493
    \n-
    \n-
    494 static void postSmooth(Smoother& smoother, Domain& v, Range& d)
    \n-
    495 {
    \n-
    496 smoother.template apply<false>(v,d);
    \n-
    497 }
    \n-
    \n-
    498 };
    \n-
    \n-
    499
    \n-
    500 } // end namespace Amg
    \n-
    501
    \n-
    502 // forward declarations
    \n-
    503 template<class M, class X, class MO, class MS, class A>
    \n-
    504 class SeqOverlappingSchwarz;
    \n-
    505
    \n-
    506 struct MultiplicativeSchwarzMode;
    \n-
    507
    \n-
    508 namespace Amg
    \n-
    509 {
    \n-
    510 template<class M, class X, class MS, class TA>
    \n-
    \n-\n-
    512 MS,TA> >
    \n-
    513 {
    \n-\n-
    515 typedef typename Smoother::range_type Range;
    \n-\n-
    517
    \n-
    \n-
    518 static void preSmooth(Smoother& smoother, Domain& v, const Range& d)
    \n-
    519 {
    \n-
    520 smoother.template apply<true>(v,d);
    \n-
    521 }
    \n-
    \n-
    522
    \n-
    523
    \n-
    \n-
    524 static void postSmooth(Smoother& smoother, Domain& v, const Range& d)
    \n-
    525 {
    \n-
    526 smoother.template apply<false>(v,d);
    \n-
    527
    \n-
    528 }
    \n-
    \n-
    529 };
    \n-
    \n-
    530
    \n-
    531 // template<class M, class X, class TM, class TA>
    \n-
    532 // class SeqOverlappingSchwarz;
    \n-
    533
    \n-
    534 template<class T>
    \n-
    \n-\n-
    536 : public DefaultSmootherArgs<T>
    \n-
    537 {
    \n-\n-
    539
    \n-\n-\n-
    542
    \n-
    \n-\n-
    544 bool onthefly_=false)
    \n-
    545 : overlap(overlap_), onthefly(onthefly_)
    \n-
    546 {}
    \n-
    \n-
    547 };
    \n-
    \n-
    548
    \n-
    549 template<class M, class X, class TM, class TS, class TA>
    \n-\n-
    554
    \n-
    555 template<class M, class X, class TM, class TS, class TA>
    \n-
    \n-\n-
    557 : public DefaultConstructionArgs<SeqOverlappingSchwarz<M,X,TM,TS,TA> >
    \n-
    558 {
    \n-\n-
    560
    \n-
    561 public:
    \n-\n-\n-\n-\n-
    566 typedef typename Vector::value_type Subdomain;
    \n-
    567
    \n-
    \n-
    568 virtual void setMatrix(const M& matrix, const AggregatesMap& amap)
    \n-
    569 {
    \n-
    570 Father::setMatrix(matrix);
    \n-
    571
    \n-
    572 std::vector<bool> visited(amap.noVertices(), false);
    \n-
    573 typedef IteratorPropertyMap<std::vector<bool>::iterator,IdentityMap> VisitedMapType;
    \n-
    574 VisitedMapType visitedMap(visited.begin());
    \n-
    575
    \n-
    576 MatrixGraph<const M> graph(matrix);
    \n-
    577
    \n-\n-
    579
    \n-
    580 switch(Father::getArgs().overlap) {
    \n-
    581 case SmootherArgs::vertex :
    \n-
    582 {
    \n-
    583 VertexAdder visitor(subdomains, amap);
    \n-
    584 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n-
    585 }
    \n-
    586 break;
    \n-
    587 case SmootherArgs::pairwise :
    \n-
    588 {
    \n-
    589 createPairDomains(graph);
    \n-
    590 }
    \n-
    591 break;
    \n-
    592 case SmootherArgs::aggregate :
    \n-
    593 {
    \n-
    594 AggregateAdder<VisitedMapType> visitor(subdomains, amap, graph, visitedMap);
    \n-
    595 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n-
    596 }
    \n-
    597 break;
    \n-
    598 case SmootherArgs::none :
    \n-
    599 NoneAdder visitor;
    \n-
    600 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n-
    601 break;
    \n-
    602 default :
    \n-
    603 DUNE_THROW(NotImplemented, "This overlapping scheme is not supported!");
    \n-
    604 }
    \n-
    605 }
    \n-
    \n-
    \n-
    606 void setMatrix(const M& matrix)
    \n-
    607 {
    \n-
    608 Father::setMatrix(matrix);
    \n-
    609
    \n-
    610 /* Create aggregates map where each aggregate is just one vertex. */
    \n-
    611 AggregatesMap amap(matrix.N());
    \n-\n-
    613 for(typename AggregatesMap::iterator iter=amap.begin();
    \n-
    614 iter!=amap.end(); ++iter)
    \n-
    615 *iter=v++;
    \n-
    616
    \n-
    617 std::vector<bool> visited(amap.noVertices(), false);
    \n-
    618 typedef IteratorPropertyMap<std::vector<bool>::iterator,IdentityMap> VisitedMapType;
    \n-
    619 VisitedMapType visitedMap(visited.begin());
    \n-
    620
    \n-
    621 MatrixGraph<const M> graph(matrix);
    \n-
    622
    \n-\n-
    624
    \n-
    625 switch(Father::getArgs().overlap) {
    \n-
    626 case SmootherArgs::vertex :
    \n-
    627 {
    \n-
    628 VertexAdder visitor(subdomains, amap);
    \n-
    629 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n-
    630 }
    \n-
    631 break;
    \n-
    632 case SmootherArgs::aggregate :
    \n-
    633 {
    \n-
    634 DUNE_THROW(NotImplemented, "Aggregate overlap is not supported yet");
    \n-
    635 /*
    \n-
    636 AggregateAdder<VisitedMapType> visitor(subdomains, amap, graph, visitedMap);
    \n-
    637 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n-
    638 */
    \n-
    639 }
    \n-
    640 break;
    \n-
    641 case SmootherArgs::pairwise :
    \n-
    642 {
    \n-
    643 createPairDomains(graph);
    \n-
    644 }
    \n-
    645 break;
    \n-
    646 case SmootherArgs::none :
    \n-
    647 NoneAdder visitor;
    \n-
    648 createSubdomains(matrix, graph, amap, visitor, visitedMap);
    \n-
    649
    \n-
    650 }
    \n-
    651 }
    \n-
    \n-
    652
    \n-
    \n-\n-
    654 {
    \n-
    655 return subdomains;
    \n-
    656 }
    \n-
    \n-
    657
    \n-
    658 private:
    \n-
    659 struct VertexAdder
    \n-
    660 {
    \n-
    \n-
    661 VertexAdder(Vector& subdomains_, const AggregatesMap& aggregates_)
    \n-
    662 : subdomains(subdomains_), max(-1), subdomain(-1), aggregates(aggregates_)
    \n-
    663 {}
    \n-
    \n-
    664 template<class T>
    \n-
    \n-
    665 void operator()(const T& edge)
    \n-
    666 {
    \n-
    667 if(aggregates[edge.target()]!=AggregatesMap::ISOLATED)
    \n-
    668 subdomains[subdomain].insert(edge.target());
    \n-
    669 }
    \n-
    \n-
    \n-
    670 int setAggregate(const AggregateDescriptor& aggregate_)
    \n-
    671 {
    \n-
    672 subdomain=aggregate_;
    \n-
    673 max = std::max(subdomain, aggregate_);
    \n-
    674 return subdomain;
    \n-
    675 }
    \n-
    \n-
    \n-
    676 int noSubdomains() const
    \n-
    677 {
    \n-
    678 return max+1;
    \n-
    679 }
    \n-
    \n-
    680 private:
    \n-
    681 Vector& subdomains;
    \n-\n-
    683 AggregateDescriptor subdomain;
    \n-
    684 const AggregatesMap& aggregates;
    \n-
    685 };
    \n-
    686 struct NoneAdder
    \n-
    687 {
    \n-
    688 template<class T>
    \n-
    \n-
    689 void operator()(const T& edge)
    \n-
    690 {}
    \n-
    \n-
    \n-
    691 int setAggregate(const AggregateDescriptor& aggregate_)
    \n-
    692 {
    \n-
    693 return -1;
    \n-
    694 }
    \n-
    \n-
    \n-
    695 int noSubdomains() const
    \n-
    696 {
    \n-
    697 return -1;
    \n-
    698 }
    \n-
    \n-
    699 };
    \n-
    700
    \n-
    701 template<class VM>
    \n-
    702 struct AggregateAdder
    \n-
    703 {
    \n-
    \n-
    704 AggregateAdder(Vector& subdomains_, const AggregatesMap& aggregates_,
    \n-
    705 const MatrixGraph<const M>& graph_, VM& visitedMap_)
    \n-
    706 : subdomains(subdomains_), subdomain(-1), aggregates(aggregates_),
    \n-
    707 adder(subdomains_, aggregates_), graph(graph_), visitedMap(visitedMap_)
    \n-
    708 {}
    \n-
    \n-
    709 template<class T>
    \n-
    \n-
    710 void operator()(const T& edge)
    \n-
    711 {
    \n-
    712 subdomains[subdomain].insert(edge.target());
    \n-
    713 // If we (the neighbouring vertex of the aggregate)
    \n-
    714 // are not isolated, add the aggregate we belong to
    \n-
    715 // to the same subdomain using the OneOverlapAdder
    \n-
    716 if(aggregates[edge.target()]!=AggregatesMap::ISOLATED) {
    \n-
    717 assert(aggregates[edge.target()]!=aggregate);
    \n-
    718 typename AggregatesMap::VertexList vlist;
    \n-
    719 aggregates.template breadthFirstSearch<true,false>(edge.target(), aggregate,
    \n-
    720 graph, vlist, adder, adder,
    \n-
    721 visitedMap);
    \n-
    722 }
    \n-
    723 }
    \n-
    \n-
    724
    \n-
    \n-
    725 int setAggregate(const AggregateDescriptor& aggregate_)
    \n-
    726 {
    \n-
    727 adder.setAggregate(aggregate_);
    \n-
    728 aggregate=aggregate_;
    \n-
    729 return ++subdomain;
    \n-
    730 }
    \n-
    \n-
    \n-
    731 int noSubdomains() const
    \n-
    732 {
    \n-
    733 return subdomain+1;
    \n-
    734 }
    \n-
    \n-
    735
    \n-
    736 private:
    \n-
    737 AggregateDescriptor aggregate;
    \n-
    738 Vector& subdomains;
    \n-
    739 int subdomain;
    \n-
    740 const AggregatesMap& aggregates;
    \n-
    741 VertexAdder adder;
    \n-
    742 const MatrixGraph<const M>& graph;
    \n-
    743 VM& visitedMap;
    \n-
    744 };
    \n-
    745
    \n-
    746 void createPairDomains(const MatrixGraph<const M>& graph)
    \n-
    747 {
    \n-
    748 typedef typename MatrixGraph<const M>::ConstVertexIterator VIter;
    \n-
    749 typedef typename MatrixGraph<const M>::ConstEdgeIterator EIter;
    \n-
    750 typedef typename M::size_type size_type;
    \n-
    751
    \n-
    752 std::set<std::pair<size_type,size_type> > pairs;
    \n-
    753 int total=0;
    \n-
    754 for(VIter v=graph.begin(), ve=graph.end(); ve != v; ++v)
    \n-
    755 for(EIter e = v.begin(), ee=v.end(); ee!=e; ++e)
    \n-
    756 {
    \n-
    757 ++total;
    \n-
    758 if(e.source()<e.target())
    \n-
    759 pairs.insert(std::make_pair(e.source(),e.target()));
    \n-
    760 else
    \n-
    761 pairs.insert(std::make_pair(e.target(),e.source()));
    \n-
    762 }
    \n-
    763
    \n-
    764
    \n-
    765 subdomains.resize(pairs.size());
    \n-
    766 Dune::dinfo <<std::endl<< "Created "<<pairs.size()<<" ("<<total<<") pair domains"<<std::endl<<std::endl;
    \n-
    767 typedef typename std::set<std::pair<size_type,size_type> >::const_iterator SIter;
    \n-
    768 typename Vector::iterator subdomain=subdomains.begin();
    \n-
    769
    \n-
    770 for(SIter s=pairs.begin(), se =pairs.end(); se!=s; ++s)
    \n-
    771 {
    \n-
    772 subdomain->insert(s->first);
    \n-
    773 subdomain->insert(s->second);
    \n-
    774 ++subdomain;
    \n-
    775 }
    \n-
    776 std::size_t minsize=10000;
    \n-
    777 std::size_t maxsize=0;
    \n-
    778 int sum=0;
    \n-
    779 for(typename Vector::size_type i=0; i < subdomains.size(); ++i) {
    \n-
    780 sum+=subdomains[i].size();
    \n-
    781 minsize=std::min(minsize, subdomains[i].size());
    \n-
    782 maxsize=std::max(maxsize, subdomains[i].size());
    \n-
    783 }
    \n-
    784 Dune::dinfo<<"Subdomain size: min="<<minsize<<" max="<<maxsize<<" avg="<<(sum/subdomains.size())
    \n-
    785 <<" no="<<subdomains.size()<<std::endl;
    \n-
    786 }
    \n-
    787
    \n-
    788 template<class Visitor>
    \n-
    789 void createSubdomains(const M& matrix, const MatrixGraph<const M>& graph,
    \n-
    790 const AggregatesMap& amap, Visitor& overlapVisitor,
    \n-
    791 IteratorPropertyMap<std::vector<bool>::iterator,IdentityMap>& visitedMap )
    \n-
    792 {
    \n-
    793 // count number ag aggregates. We assume that the
    \n-
    794 // aggregates are numbered consecutively from 0 except
    \n-
    795 // for the isolated ones. All isolated vertices form
    \n-
    796 // one aggregate, here.
    \n-
    797 int isolated=0;
    \n-
    798 AggregateDescriptor maxAggregate=0;
    \n-
    799
    \n-
    800 for(std::size_t i=0; i < amap.noVertices(); ++i)
    \n-
    801 if(amap[i]==AggregatesMap::ISOLATED)
    \n-
    802 isolated++;
    \n-
    803 else
    \n-
    804 maxAggregate = std::max(maxAggregate, amap[i]);
    \n-
    805
    \n-
    806 subdomains.resize(maxAggregate+1+isolated);
    \n-
    807
    \n-
    808 // reset the subdomains
    \n-
    809 for(typename Vector::size_type i=0; i < subdomains.size(); ++i)
    \n-
    810 subdomains[i].clear();
    \n-
    811
    \n-
    812 // Create the subdomains from the aggregates mapping.
    \n-
    813 // For each aggregate we mark all entries and the
    \n-
    814 // neighbouring vertices as belonging to the same subdomain
    \n-
    815 VertexAdder aggregateVisitor(subdomains, amap);
    \n-
    816
    \n-
    817 for(VertexDescriptor i=0; i < amap.noVertices(); ++i)
    \n-
    818 if(!get(visitedMap, i)) {
    \n-
    819 AggregateDescriptor aggregate=amap[i];
    \n-
    820
    \n-
    821 if(amap[i]==AggregatesMap::ISOLATED) {
    \n-
    822 // isolated vertex gets its own aggregate
    \n-
    823 subdomains.push_back(Subdomain());
    \n-
    824 aggregate=subdomains.size()-1;
    \n-
    825 }
    \n-
    826 overlapVisitor.setAggregate(aggregate);
    \n-
    827 aggregateVisitor.setAggregate(aggregate);
    \n-
    828 subdomains[aggregate].insert(i);
    \n-
    829 typename AggregatesMap::VertexList vlist;
    \n-
    830 amap.template breadthFirstSearch<false,false>(i, aggregate, graph, vlist, aggregateVisitor,
    \n-
    831 overlapVisitor, visitedMap);
    \n-
    832 }
    \n-
    833
    \n-
    834 std::size_t minsize=10000;
    \n-
    835 std::size_t maxsize=0;
    \n-
    836 int sum=0;
    \n-
    837 for(typename Vector::size_type i=0; i < subdomains.size(); ++i) {
    \n-
    838 sum+=subdomains[i].size();
    \n-
    839 minsize=std::min(minsize, subdomains[i].size());
    \n-
    840 maxsize=std::max(maxsize, subdomains[i].size());
    \n-
    841 }
    \n-
    842 Dune::dinfo<<"Subdomain size: min="<<minsize<<" max="<<maxsize<<" avg="<<(sum/subdomains.size())
    \n-
    843 <<" no="<<subdomains.size()<<" isolated="<<isolated<<std::endl;
    \n-
    844
    \n-
    845
    \n-
    846
    \n-
    847 }
    \n-
    848 Vector subdomains;
    \n-
    849 };
    \n-
    \n-
    850
    \n-
    851
    \n-
    852 template<class M, class X, class TM, class TS, class TA>
    \n-
    \n-
    853 struct ConstructionTraits<SeqOverlappingSchwarz<M,X,TM,TS,TA> >
    \n-
    854 {
    \n-\n-
    856
    \n-
    \n-
    857 static inline std::shared_ptr<SeqOverlappingSchwarz<M,X,TM,TS,TA>> construct(Arguments& args)
    \n-
    858 {
    \n-
    859 return std::make_shared<SeqOverlappingSchwarz<M,X,TM,TS,TA>>
    \n-
    860 (args.getMatrix(),
    \n-
    861 args.getSubDomains(),
    \n-\n-
    863 args.getArgs().onthefly);
    \n-
    864 }
    \n-
    \n-
    865 };
    \n-
    \n-
    866
    \n-
    867
    \n-
    868 } // namespace Amg
    \n-
    869} // namespace Dune
    \n-
    870
    \n-
    871
    \n-
    872
    \n-
    873#endif
    \n-\n-\n-
    Define general preconditioner interface.
    \n-
    Helper classes for the construction of classes without empty constructor.
    \n-
    Provides classes for the Coloring process of AMG.
    \n-
    DefaultSmootherArgs< typename X::field_type > Arguments
    Definition smoother.hh:74
    \n-
    static void postSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:494
    \n-\n-
    static void preSmooth(Smoother &smoother, Domain &v, const Range &d)
    Definition smoother.hh:518
    \n-
    static std::shared_ptr< SeqJac< M, X, Y, l > > construct(Arguments &args)
    Definition smoother.hh:256
    \n-
    ConstructionArgs< SeqILU< M, X, Y > > Arguments
    Definition smoother.hh:309
    \n-
    const Matrix & getMatrix() const
    Definition smoother.hh:114
    \n-\n-
    int setAggregate(const AggregateDescriptor &aggregate_)
    Definition smoother.hh:691
    \n-
    DefaultSmootherArgs< typename T::matrix_type::field_type > Arguments
    Definition smoother.hh:67
    \n-
    int setAggregate(const AggregateDescriptor &aggregate_)
    Definition smoother.hh:670
    \n-
    ConstructionTraits< T > SeqConstructionTraits
    Definition smoother.hh:350
    \n-
    void setArgs(const SmootherArgs &args)
    Definition smoother.hh:119
    \n-
    ConstructionArgs< SeqOverlappingSchwarz< M, X, TM, TS, TA > > Arguments
    Definition smoother.hh:855
    \n-
    NonoverlappingBlockPreconditioner< C, SeqSOR< M, X, Y, l > > Smoother
    Definition smoother.hh:484
    \n-
    static void postSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:456
    \n-
    AggregateAdder(Vector &subdomains_, const AggregatesMap &aggregates_, const MatrixGraph< const M > &graph_, VM &visitedMap_)
    Definition smoother.hh:704
    \n-\n-
    void setComm(const C &comm)
    Definition smoother.hh:158
    \n-
    DefaultConstructionArgs< Richardson< X, Y > > Arguments
    Definition smoother.hh:269
    \n-
    virtual ~DefaultConstructionArgs()
    Definition smoother.hh:180
    \n-
    SeqOverlappingSchwarzSmootherArgs< typename M::field_type > Arguments
    Definition smoother.hh:552
    \n-\n-
    static void preSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:488
    \n-
    int getN()
    Definition smoother.hh:293
    \n-\n-
    SeqSOR< M, X, Y, l > Smoother
    Definition smoother.hh:446
    \n-\n-
    static std::shared_ptr< SeqSSOR< M, X, Y, l > > construct(Arguments &args)
    Definition smoother.hh:224
    \n-
    AggregatesMap::AggregateDescriptor AggregateDescriptor
    Definition smoother.hh:564
    \n-
    bool onthefly
    Definition smoother.hh:541
    \n-
    DefaultConstructionArgs< SeqSOR< M, X, Y, l > > Arguments
    Definition smoother.hh:238
    \n-
    virtual void setMatrix(const M &matrix, const AggregatesMap &amap)
    Definition smoother.hh:568
    \n-
    void setMatrix(const Args &...)
    Definition smoother.hh:184
    \n-
    DefaultConstructionArgs< SeqJac< M, X, Y, l > > Arguments
    Definition smoother.hh:254
    \n-
    DefaultConstructionArgs< SeqSSOR< M, X, Y, l > > Arguments
    Definition smoother.hh:222
    \n-
    const SmootherArgs getArgs() const
    Definition smoother.hh:133
    \n-
    VertexAdder(Vector &subdomains_, const AggregatesMap &aggregates_)
    Definition smoother.hh:661
    \n-\n-
    SeqOverlappingSchwarz< M, X, TM, TS, TA >::subdomain_vector Vector
    Definition smoother.hh:565
    \n-
    static std::shared_ptr< SeqOverlappingSchwarz< M, X, TM, TS, TA > > construct(Arguments &args)
    Definition smoother.hh:857
    \n-
    static void preSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:469
    \n-
    const_iterator begin() const
    Definition aggregates.hh:725
    \n-
    void setMatrix(const Matrix &matrix)
    Definition smoother.hh:104
    \n-
    T Smoother
    Definition smoother.hh:371
    \n-
    static void preSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:450
    \n-
    BlockPreconditioner< X, Y, C, SeqSOR< M, X, Y, l > > Smoother
    Definition smoother.hh:465
    \n-
    void setComm(T1 &comm)
    Definition smoother.hh:193
    \n-\n-
    AggregateDescriptor * iterator
    Definition aggregates.hh:735
    \n-
    void presmooth(LevelContext &levelContext, size_t steps)
    Apply pre smoothing on the current level.
    Definition smoother.hh:406
    \n-\n-
    SeqOverlappingSchwarzSmootherArgs(Overlap overlap_=vertex, bool onthefly_=false)
    Definition smoother.hh:543
    \n-
    DefaultParallelConstructionArgs< T, C > Arguments
    Definition smoother.hh:337
    \n-
    DefaultParallelConstructionArgs< T, C > Arguments
    Definition smoother.hh:349
    \n-
    const Matrix * matrix_
    Definition smoother.hh:139
    \n-
    const_iterator end() const
    Definition aggregates.hh:730
    \n-
    const SequentialInformation & getComm()
    Definition smoother.hh:128
    \n-
    V AggregateDescriptor
    The aggregate descriptor type.
    Definition aggregates.hh:580
    \n-
    static const V ISOLATED
    Identifier of isolated vertices.
    Definition aggregates.hh:571
    \n-
    DefaultSmootherArgs()
    Default constructor.
    Definition smoother.hh:56
    \n-
    void setMatrix(const M &matrix)
    Definition smoother.hh:606
    \n-
    std::size_t noVertices() const
    Get the number of vertices.
    \n-\n-
    static void postSmooth(Smoother &smoother, Domain &v, const Range &d)
    apply post smoothing in forward direction
    Definition smoother.hh:394
    \n-
    FieldTraits< T >::real_type RelaxationFactor
    The type of the relaxation factor.
    Definition smoother.hh:42
    \n-\n-
    Smoother::domain_type Domain
    Definition smoother.hh:373
    \n-
    void setN(int n)
    Definition smoother.hh:288
    \n-
    static std::shared_ptr< BlockPreconditioner< X, Y, C, T > > construct(Arguments &args)
    Definition smoother.hh:339
    \n-
    SLList< VertexDescriptor, Allocator > VertexList
    The type of a single linked list of vertex descriptors.
    Definition aggregates.hh:592
    \n-
    static std::shared_ptr< NonoverlappingBlockPreconditioner< C, T > > construct(Arguments &args)
    Definition smoother.hh:351
    \n-
    SeqOverlappingSchwarz< M, X, MultiplicativeSchwarzMode, MS, TA > Smoother
    Definition smoother.hh:514
    \n-
    static std::shared_ptr< ParSSOR< M, X, Y, C > > construct(Arguments &args)
    Definition smoother.hh:326
    \n-
    MatrixGraph< M >::VertexDescriptor VertexDescriptor
    Definition smoother.hh:562
    \n-
    static std::shared_ptr< SeqILU< M, X, Y > > construct(Arguments &args)
    Definition smoother.hh:311
    \n-\n-
    const SequentialInformation & getComm()
    Definition smoother.hh:196
    \n-
    static std::shared_ptr< SeqSOR< M, X, Y, l > > construct(Arguments &args)
    Definition smoother.hh:240
    \n-
    static std::shared_ptr< Richardson< X, Y > > construct(Arguments &args)
    Definition smoother.hh:271
    \n-
    virtual void setMatrix(const Matrix &matrix, const AggregatesMap &amap)
    Definition smoother.hh:108
    \n-\n-
    void postsmooth(LevelContext &levelContext, size_t steps)
    Apply post smoothing on the current level.
    Definition smoother.hh:428
    \n-
    Dune::Amg::AggregatesMap< VertexDescriptor > AggregatesMap
    Definition smoother.hh:563
    \n-
    const SmootherArgs getArgs() const
    Definition smoother.hh:201
    \n-
    void setComm(T1 &comm)
    Definition smoother.hh:125
    \n-
    static void postSmooth(Smoother &smoother, Domain &v, const Range &d)
    Definition smoother.hh:524
    \n-
    DefaultParallelConstructionArgs< M, C > Arguments
    Definition smoother.hh:324
    \n-
    RelaxationFactor relaxationFactor
    The relaxation factor to use.
    Definition smoother.hh:51
    \n-
    virtual ~DefaultParallelConstructionArgs()
    Definition smoother.hh:155
    \n-
    Smoother::domain_type Domain
    Definition smoother.hh:448
    \n-
    int setAggregate(const AggregateDescriptor &aggregate_)
    Definition smoother.hh:725
    \n-
    Smoother::range_type Range
    Definition smoother.hh:447
    \n-
    const C & getComm() const
    Definition smoother.hh:163
    \n-
    virtual ~DefaultConstructionArgs()
    Definition smoother.hh:101
    \n-
    static void preSmooth(Smoother &smoother, Domain &v, const Range &d)
    apply pre smoothing in forward direction
    Definition smoother.hh:382
    \n-
    static void postSmooth(Smoother &smoother, Domain &v, Range &d)
    Definition smoother.hh:475
    \n-
    ConstructionTraits< T > SeqConstructionTraits
    Definition smoother.hh:338
    \n-
    ConstructionArgs(int n=0)
    Definition smoother.hh:284
    \n-\n-
    void setArgs(const SmootherArgs &args)
    Definition smoother.hh:187
    \n-
    int iterations
    The numbe of iterations to perform.
    Definition smoother.hh:47
    \n-
    Smoother::range_type Range
    Definition smoother.hh:372
    \n-
    Overlap overlap
    Definition smoother.hh:540
    \n-\n-
    @ aggregate
    Definition smoother.hh:538
    \n-\n-
    @ pairwise
    Definition smoother.hh:538
    \n-\n+
    \n+\n+
    456 {
    \n+
    457 return flags_.test(BORDER);
    \n+
    458 }
    \n+
    \n+
    459
    \n+
    \n+\n+
    461 {
    \n+
    462 flags_.reset(BORDER);
    \n+
    463 }
    \n+
    \n+
    464
    \n+
    \n+\n+
    466 {
    \n+
    467 flags_.reset();
    \n+
    468 }
    \n+
    \n+
    469
    \n+
    471 }
    \n+
    472}
    \n+
    473#endif
    \n+
    Provides classes for handling internal properties in a graph.
    \n+
    Provides classes for building the matrix graph.
    \n+
    bool depends() const
    Checks wether the vertex the edge points to depends on the vertex the edge starts.
    Definition dependency.hh:352
    \n+
    void resetFront()
    Resets the front node flag.
    Definition dependency.hh:445
    \n+
    std::bitset< VertexProperties::SIZE > BitSet
    The type of the bitset.
    Definition dependency.hh:238
    \n+
    bool isolated() const
    Checks wether the node is isolated.
    Definition dependency.hh:410
    \n+
    bool ValueType
    The value type.
    Definition dependency.hh:248
    \n+
    friend std::ostream & operator<<(std::ostream &os, const VertexProperties &props)
    Definition dependency.hh:384
    \n+
    BitSet::reference Reference
    The reference type.
    Definition dependency.hh:243
    \n+
    bool isTwoWay() const
    Checks wether the edge is two way. I.e. both the influence flag and the depends flag are that.
    Definition dependency.hh:371
    \n+
    void setInfluences()
    Marks the edge as one of which the start vertex by the end vertex.
    Definition dependency.hh:325
    \n+
    VertexProperties()
    Constructor.
    Definition dependency.hh:389
    \n+
    void setDepends()
    Marks the edge as one of which the end point depends on the starting point.
    Definition dependency.hh:338
    \n+
    PropertyGraphVertexPropertyMap()
    Default constructor.
    Definition dependency.hh:266
    \n+
    PropertyGraphVertexPropertyMap(G &g)
    Constructor.
    Definition dependency.hh:259
    \n+
    G::VertexDescriptor Vertex
    The vertex descriptor.
    Definition dependency.hh:253
    \n+
    void resetExcludedBorder()
    Marks the vertex as included in the aggregation.
    Definition dependency.hh:460
    \n+
    void setFront()
    Marks the node as belonging to the current clusters front.
    Definition dependency.hh:435
    \n+
    void reset()
    Reset all flags.
    Definition dependency.hh:465
    \n+
    void setVisited()
    Mark the node as already visited.
    Definition dependency.hh:420
    \n+
    EdgeProperties()
    Constructor.
    Definition dependency.hh:305
    \n+
    void resetInfluences()
    Resets the influence flag.
    Definition dependency.hh:358
    \n+
    G Graph
    The type of the graph with internal properties.
    Definition dependency.hh:233
    \n+
    std::bitset< SIZE >::reference operator[](std::size_t v)
    Access the bits directly.
    Definition dependency.hh:395
    \n+
    void printFlags() const
    Prints the attributes of the edge for debugging.
    \n+
    friend std::ostream & operator<<(std::ostream &os, const EdgeProperties &props)
    Definition dependency.hh:300
    \n+
    Amg::PropertyGraphVertexPropertyMap< Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM >, Amg::VertexProperties::VISITED > Type
    Definition dependency.hh:288
    \n+
    bool influences() const
    Checks wether the start vertex is influenced by the end vertex.
    Definition dependency.hh:332
    \n+
    void setIsolated()
    Marks that node as being isolated.
    Definition dependency.hh:405
    \n+
    bool excludedBorder() const
    Tests whether the vertex is excluded from the aggregation.
    Definition dependency.hh:455
    \n+
    void resetVisited()
    Resets the visited flag.
    Definition dependency.hh:430
    \n+
    bool visited() const
    Checks wether the node is marked as visited.
    Definition dependency.hh:425
    \n+
    Reference operator[](const Vertex &vertex) const
    Get the properties associated to a vertex.
    Definition dependency.hh:275
    \n+
    void reset()
    Reset all flags.
    Definition dependency.hh:320
    \n+
    void resetDepends()
    Resets the depends flag.
    Definition dependency.hh:345
    \n+
    ReadWritePropertyMapTag Category
    Definition dependency.hh:223
    \n+
    void resetIsolated()
    Resets the isolated flag.
    Definition dependency.hh:415
    \n+
    std::ostream & operator<<(std::ostream &os, const AggregationCriterion< T > &criterion)
    Definition aggregates.hh:113
    \n+
    bool isStrong() const
    Checks wether the edge is strong. I.e. the influence or depends flag is set.
    Definition dependency.hh:377
    \n+
    bool front() const
    Checks wether the node is marked as a front node.
    Definition dependency.hh:440
    \n+
    std::bitset< SIZE >::reference operator[](std::size_t v)
    Access the bits directly.
    Definition dependency.hh:310
    \n+
    void setExcludedBorder()
    Marks the vertex as excluded from the aggregation.
    Definition dependency.hh:450
    \n+
    bool isOneWay() const
    Checks wether the edge is one way. I.e. either the influence or the depends flag but is set.
    Definition dependency.hh:364
    \n+
    @ index
    the index to access in the bitset.
    Definition dependency.hh:227
    \n+
    @ VISITED
    Definition dependency.hh:129
    \n+
    @ ISOLATED
    Definition dependency.hh:129
    \n+
    @ SIZE
    Definition dependency.hh:129
    \n+
    @ BORDER
    Definition dependency.hh:129
    \n+
    @ FRONT
    Definition dependency.hh:129
    \n+
    @ DEPEND
    Definition dependency.hh:43
    \n+
    @ SIZE
    Definition dependency.hh:43
    \n+
    @ INFLUENCE
    Definition dependency.hh:43
    \n
    Definition allocator.hh:11
    \n
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    Sequential overlapping Schwarz preconditioner.
    Definition overlappingschwarz.hh:755
    \n-
    X range_type
    The range type of the preconditioner.
    Definition overlappingschwarz.hh:770
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition overlappingschwarz.hh:765
    \n-
    std::vector< subdomain_type, typename std::allocator_traits< TA >::template rebind_alloc< subdomain_type > > subdomain_vector
    The vector type containing the subdomain to row index mapping.
    Definition overlappingschwarz.hh:797
    \n-
    Nonoverlapping parallel preconditioner.
    Definition novlpschwarz.hh:276
    \n-
    P::range_type range_type
    The range type of the preconditioner.
    Definition novlpschwarz.hh:284
    \n-
    P::domain_type domain_type
    The domain type of the preconditioner.
    Definition novlpschwarz.hh:282
    \n-
    Tag that tells the Schwarz method to be multiplicative.
    Definition overlappingschwarz.hh:126
    \n-
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n-
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n-
    VertexIterator end()
    Get an iterator over the vertices.
    \n-
    M::size_type VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:73
    \n-
    VertexIterator begin()
    Get an iterator over the vertices.
    \n-
    Iterator over all edges starting from a vertex.
    Definition graph.hh:95
    \n-
    The vertex iterator type of the graph.
    Definition graph.hh:209
    \n-
    Definition pinfo.hh:28
    \n-
    The default class for the smoother arguments.
    Definition smoother.hh:38
    \n-
    Traits class for getting the attribute class of a smoother.
    Definition smoother.hh:66
    \n-
    Construction Arguments for the default smoothers.
    Definition smoother.hh:93
    \n-
    Definition smoother.hh:148
    \n-\n-\n-\n-
    Helper class for applying the smoothers.
    Definition smoother.hh:370
    \n-\n-\n-
    Sequential SSOR preconditioner.
    Definition preconditioners.hh:141
    \n-
    Sequential SOR preconditioner.
    Definition preconditioners.hh:261
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:266
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:268
    \n-
    The sequential jacobian preconditioner.
    Definition preconditioners.hh:412
    \n-
    Sequential ILU preconditioner.
    Definition preconditioners.hh:532
    \n-
    Richardson preconditioner.
    Definition preconditioners.hh:713
    \n-
    A parallel SSOR preconditioner.
    Definition schwarz.hh:175
    \n-
    Block parallel preconditioner.
    Definition schwarz.hh:278
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition schwarz.hh:285
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition schwarz.hh:290
    \n+
    Class representing the properties of an ede in the matrix graph.
    Definition dependency.hh:39
    \n+
    Class representing a node in the matrix graph.
    Definition dependency.hh:126
    \n+
    Definition dependency.hh:220
    \n+
    Attaches properties to the edges and vertices of a graph.
    Definition graph.hh:978
    \n+
    Tag idnetifying the visited property of a vertex.
    Definition properties.hh:29
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1343 +1,575 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-smoother.hh\n+dependency.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMGSMOOTHER_HH\n-6#define DUNE_AMGSMOOTHER_HH\n+5#ifndef DUNE_AMG_DEPENDENCY_HH\n+6#define DUNE_AMG_DEPENDENCY_HH\n 7\n-8#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-9#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n-10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n-11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n-12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n-13#include \n-14#include \n+8\n+9#include \n+10#include \n+11\n+12#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n+13#include \"_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b._\bh_\bh\"\n+14#include \n 15\n-16namespace _\bD_\bu_\bn_\be\n-17{\n-18 namespace Amg\n-19 {\n-20\n-36 template\n-_\b3_\b7 struct _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-38 {\n-_\b4_\b2 typedef typename FieldTraits::real_type _\bR_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br;\n-43\n-_\b4_\b7 int _\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs;\n-_\b5_\b1 _\bR_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br _\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br;\n-52\n-_\b5_\b6 _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs()\n-57 : _\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs(1), _\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br(1.0)\n-58 {}\n-59 };\n-60\n-64 template\n-_\b6_\b5 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs\n-66 {\n-_\b6_\b7 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bT_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-68\n-69 };\n+16\n+17namespace _\bD_\bu_\bn_\be\n+18{\n+19 namespace Amg\n+20 {\n+_\b3_\b8 class _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+39 {\n+40 friend std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs&\n+props);\n+41 public:\n+_\b4_\b3 enum {_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE, _\bD_\bE_\bP_\bE_\bN_\bD, _\bS_\bI_\bZ_\bE};\n+44\n+45 private:\n+46\n+47 std::bitset flags_;\n+48 public:\n+50 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs();\n+51\n+53 std::bitset::reference _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v);\n+54\n+56 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v) const;\n+57\n+63 bool _\bd_\be_\bp_\be_\bn_\bd_\bs() const;\n+64\n+69 void _\bs_\be_\bt_\bD_\be_\bp_\be_\bn_\bd_\bs();\n 70\n-71 template\n-_\b7_\b2 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs<_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn>\n-73 {\n-_\b7_\b4 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bX_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+74 void _\br_\be_\bs_\be_\bt_\bD_\be_\bp_\be_\bn_\bd_\bs();\n 75\n-76 };\n-77\n-78 template\n-_\b7_\b9 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs<_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\n-80 : public _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs\n-81 {};\n-82\n-83 template\n-_\b8_\b4 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\n-85 : public _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs\n-86 {};\n-87\n-91 template\n-_\b9_\b2 class _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-93 {\n-94 typedef typename T::matrix_type Matrix;\n-95\n-96 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n+80 bool _\bi_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs() const;\n+81\n+85 void _\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs();\n+86\n+90 void _\br_\be_\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs();\n+91\n+96 bool _\bi_\bs_\bO_\bn_\be_\bW_\ba_\by() const;\n 97\n-98 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br> _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp;\n-99\n-100 public:\n-_\b1_\b0_\b1 virtual _\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs()\n-102 {}\n+102 bool _\bi_\bs_\bT_\bw_\bo_\bW_\ba_\by() const;\n 103\n-_\b1_\b0_\b4 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const Matrix& matrix)\n-105 {\n-106 _\bm_\ba_\bt_\br_\bi_\bx_\b_=&matrix;\n-107 }\n-_\b1_\b0_\b8 virtual void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const Matrix& matrix, [[maybe_unused]] const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& amap)\n-109 {\n-110 _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(matrix);\n-111 }\n-112\n-113\n-_\b1_\b1_\b4 const Matrix& _\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx() const\n-115 {\n-116 return *_\bm_\ba_\bt_\br_\bi_\bx_\b_;\n-117 }\n-118\n-_\b1_\b1_\b9 void _\bs_\be_\bt_\bA_\br_\bg_\bs(const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& args)\n-120 {\n-121 args_=&args;\n-122 }\n-123\n-124 template\n-_\b1_\b2_\b5 void _\bs_\be_\bt_\bC_\bo_\bm_\bm([[maybe_unused]] T1& comm)\n-126 {}\n-127\n-_\b1_\b2_\b8 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& _\bg_\be_\bt_\bC_\bo_\bm_\bm()\n-129 {\n-130 return comm_;\n-131 }\n-132\n-_\b1_\b3_\b3 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs _\bg_\be_\bt_\bA_\br_\bg_\bs() const\n-134 {\n-135 return *args_;\n-136 }\n-137\n-138 protected:\n-_\b1_\b3_\b9 const Matrix* _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n-140 private:\n-141 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs* args_;\n-142 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn comm_;\n-143 };\n+108 bool _\bi_\bs_\bS_\bt_\br_\bo_\bn_\bg() const;\n+109\n+113 void _\br_\be_\bs_\be_\bt();\n+114\n+_\b1_\b1_\b8 void _\bp_\br_\bi_\bn_\bt_\bF_\bl_\ba_\bg_\bs() const;\n+119 };\n+120\n+_\b1_\b2_\b6 class _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs {\n+127 friend std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs&\n+props);\n+128 public:\n+_\b1_\b2_\b9 enum { _\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD, _\bV_\bI_\bS_\bI_\bT_\bE_\bD, _\bF_\bR_\bO_\bN_\bT, _\bB_\bO_\bR_\bD_\bE_\bR, _\bS_\bI_\bZ_\bE };\n+130 private:\n+131\n+133 std::bitset flags_;\n+134\n+135 public:\n+137 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs();\n+138\n+140 std::bitset::reference _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v);\n+141\n+143 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v) const;\n 144\n-145 template\n-_\b1_\b4_\b6 struct _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-147 : public _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-148 {};\n-149\n-150 template\n-_\b1_\b5_\b1 class _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-152 : public _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-153 {\n-154 public:\n-_\b1_\b5_\b5 virtual _\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs()\n-156 {}\n+151 void _\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd();\n+152\n+156 bool _\bi_\bs_\bo_\bl_\ba_\bt_\be_\bd() const;\n 157\n-_\b1_\b5_\b8 void _\bs_\be_\bt_\bC_\bo_\bm_\bm(const C& comm)\n-159 {\n-160 comm_ = &comm;\n-161 }\n+161 void _\br_\be_\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd();\n 162\n-_\b1_\b6_\b3 const C& _\bg_\be_\bt_\bC_\bo_\bm_\bm() const\n-164 {\n-165 return *comm_;\n-166 }\n-167 private:\n-168 const C* comm_;\n-169 };\n-170\n-171\n-172 template\n-_\b1_\b7_\b3 class _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs<_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn>\n-174 {\n-175 typedef _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\bX_\b,_\bY_\b> _\bT;\n-176\n-177 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n-178\n-179 public:\n-_\b1_\b8_\b0 virtual _\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs()\n-181 {}\n+166 void _\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd();\n+167\n+171 bool _\bv_\bi_\bs_\bi_\bt_\be_\bd() const;\n+172\n+176 void _\br_\be_\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd();\n+177\n+181 void _\bs_\be_\bt_\bF_\br_\bo_\bn_\bt();\n 182\n-183 template \n-_\b1_\b8_\b4 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const Args&...)\n-185 {}\n-186\n-_\b1_\b8_\b7 void _\bs_\be_\bt_\bA_\br_\bg_\bs(const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& args)\n-188 {\n-189 args_=&args;\n-190 }\n-191\n-192 template\n-_\b1_\b9_\b3 void _\bs_\be_\bt_\bC_\bo_\bm_\bm([[maybe_unused]] T1& comm)\n-194 {}\n-195\n-_\b1_\b9_\b6 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& _\bg_\be_\bt_\bC_\bo_\bm_\bm()\n-197 {\n-198 return comm_;\n-199 }\n-200\n-_\b2_\b0_\b1 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs _\bg_\be_\bt_\bA_\br_\bg_\bs() const\n-202 {\n-203 return *args_;\n-204 }\n-205\n-206 private:\n-207 const SmootherArgs* args_;\n-208 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn comm_;\n-209 };\n-210\n-211\n-212\n-213 template\n-214 struct ConstructionTraits;\n+186 bool _\bf_\br_\bo_\bn_\bt() const;\n+187\n+191 void _\br_\be_\bs_\be_\bt_\bF_\br_\bo_\bn_\bt();\n+192\n+196 void _\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br();\n+197\n+202 bool _\be_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br() const;\n+203\n+207 void _\br_\be_\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br();\n+208\n+212 void _\br_\be_\bs_\be_\bt();\n+213\n+214 };\n 215\n-219 template\n-_\b2_\b2_\b0 struct ConstructionTraits<_\bS_\be_\bq_\bS_\bS_\bO_\bR >\n-221 {\n-_\b2_\b2_\b2 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-223\n-_\b2_\b2_\b4 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-225 {\n-226 return std::make_shared>\n-227 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(), args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs, args._\bg_\be_\bt_\bA_\br_\bg_\bs\n-()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br);\n-228 }\n-229 };\n-230\n-231\n-235 template\n-_\b2_\b3_\b6 struct ConstructionTraits<_\bS_\be_\bq_\bS_\bO_\bR >\n-237 {\n-_\b2_\b3_\b8 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+216 template\n+_\b2_\b1_\b7 class _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n+218 : public RAPropertyMapHelper::\n+reference,\n+219 PropertyGraphVertexPropertyMap >\n+220 {\n+221 public:\n+222\n+_\b2_\b2_\b3 typedef ReadWritePropertyMapTag _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n+224\n+225 enum {\n+227 _\bi_\bn_\bd_\be_\bx = i\n+_\b2_\b2_\b8 };\n+229\n+_\b2_\b3_\b3 typedef G _\bG_\br_\ba_\bp_\bh;\n+234\n+_\b2_\b3_\b8 typedef std::bitset _\bB_\bi_\bt_\bS_\be_\bt;\n 239\n-_\b2_\b4_\b0 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-241 {\n-242 return std::make_shared>\n-243 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(), args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs, args._\bg_\be_\bt_\bA_\br_\bg_\bs\n-()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br);\n-244 }\n-245 };\n-246\n-247\n-251 template\n-_\b2_\b5_\b2 struct ConstructionTraits<_\bS_\be_\bq_\bJ_\ba_\bc >\n-253 {\n-_\b2_\b5_\b4 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bJ_\ba_\bc_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-255\n-_\b2_\b5_\b6 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-257 {\n-258 return std::make_shared>\n-259 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(), args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs, args._\bg_\be_\bt_\bA_\br_\bg_\bs\n-()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br);\n-260 }\n-261 };\n+_\b2_\b4_\b3 typedef typename BitSet::reference _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+244\n+_\b2_\b4_\b8 typedef bool _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be;\n+249\n+_\b2_\b5_\b3 typedef typename G::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n+254\n+_\b2_\b5_\b9 _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp(G& g)\n+260 : graph_(&g)\n+261 {}\n 262\n-266 template\n-_\b2_\b6_\b7 struct ConstructionTraits<_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn >\n-268 {\n-_\b2_\b6_\b9 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\bX_\b,_\bY_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n+_\b2_\b6_\b6 _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp()\n+267 : graph_(0)\n+268 {}\n+269\n 270\n-_\b2_\b7_\b1 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-272 {\n-273 return std::make_shared>\n-274 (args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br);\n-275 }\n-276 };\n-277\n-278\n-279 template\n-_\b2_\b8_\b0 class _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs<_\bS_\be_\bq_\bI_\bL_\bU >\n-281 : public _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs >\n-282 {\n-283 public:\n-_\b2_\b8_\b4 _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs(int n=0)\n-285 : n_(n)\n-286 {}\n-287\n-_\b2_\b8_\b8 void _\bs_\be_\bt_\bN(int n)\n-289 {\n-290 n_ = n;\n-291 }\n-292\n-_\b2_\b9_\b3 int _\bg_\be_\bt_\bN()\n+_\b2_\b7_\b5 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bV_\be_\br_\bt_\be_\bx& vertex) const\n+276 {\n+277 return graph_->getVertexProperties(vertex)[_\bi_\bn_\bd_\be_\bx];\n+278 }\n+279 private:\n+280 _\bG_\br_\ba_\bp_\bh* graph_;\n+281 };\n+282\n+283 } // end namespace Amg\n+284\n+285 template\n+_\b2_\b8_\b6 struct PropertyMapTypeSelector >\n+287 {\n+_\b2_\b8_\b8 typedef _\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\bG_\b,_\bA_\bm_\bg_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b,_\bE_\bP_\b,_\bV_\bM_\b,_\bE_\bM_\b>, Amg::VertexProperties::VISITED> _\bT_\by_\bp_\be;\n+289 };\n+290\n+291 template\n+292 typename PropertyMapTypeSelector >::Type\n+_\b2_\b9_\b3 _\bg_\be_\bt([[maybe_unused]] const _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg& tag, _\bA_\bm_\bg_\b:_\b:\n+_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\bG_\b,_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b,_\bE_\bP_\b,_\bV_\bM_\b,_\bE_\bM_\b>& graph)\n 294 {\n-295 return n_;\n+295 return _\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\bG_\b,_\bA_\bm_\bg_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b,_\bE_\bP_\b,_\bV_\bM_\b,_\bE_\bM_\b>, _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bV_\bI_\bS_\bI_\bT_\bE_\bD>(graph);\n 296 }\n 297\n-298 private:\n-299 int n_;\n-300 };\n-301\n-302\n-306 template\n-_\b3_\b0_\b7 struct ConstructionTraits<_\bS_\be_\bq_\bI_\bL_\bU >\n-308 {\n-_\b3_\b0_\b9 typedef _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bI_\bL_\bU_\b<_\bM_\b,_\bX_\b,_\bY_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-310\n-_\b3_\b1_\b1 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-312 {\n-313 return std::make_shared>\n-314 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(), args._\bg_\be_\bt_\bN(), args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br);\n-315 }\n-316 };\n-317\n-321 template\n-_\b3_\b2_\b2 struct ConstructionTraits<_\bP_\ba_\br_\bS_\bS_\bO_\bR >\n-323 {\n-_\b3_\b2_\b4 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bM_\b,_\bC_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-325\n-_\b3_\b2_\b6 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-327 {\n-328 return std::make_shared>\n-329 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(), args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs,\n-330 args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br, args._\bg_\be_\bt_\bC_\bo_\bm_\bm());\n-331 }\n-332 };\n-333\n-334 template\n-_\b3_\b3_\b5 struct ConstructionTraits<_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\n-336 {\n-_\b3_\b3_\b7 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bT_\b,_\bC_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-_\b3_\b3_\b8 typedef ConstructionTraits _\bS_\be_\bq_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs;\n-_\b3_\b3_\b9 static inline std::shared_ptr> _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-340 {\n-341 auto seqPrec = SeqConstructionTraits::construct(args);\n-342 return std::make_shared> (seqPrec,\n-args._\bg_\be_\bt_\bC_\bo_\bm_\bm());\n+298 namespace Amg\n+299 {\n+_\b3_\b0_\b0 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs&\n+props)\n+301 {\n+302 return os << props.flags_;\n+303 }\n+304\n+_\b3_\b0_\b5 inline _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs()\n+306 : flags_()\n+307 {}\n+308\n+309 inline std::bitset::reference\n+_\b3_\b1_\b0 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v)\n+311 {\n+312 return flags_[v];\n+313 }\n+314\n+_\b3_\b1_\b5 inline bool _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t i) const\n+316 {\n+317 return flags_[i];\n+318 }\n+319\n+_\b3_\b2_\b0 inline void _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt()\n+321 {\n+322 flags_.reset();\n+323 }\n+324\n+_\b3_\b2_\b5 inline void _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs()\n+326 {\n+327 // Set the INFLUENCE bit\n+328 //flags_ |= (1<\n-_\b3_\b4_\b7 struct ConstructionTraits<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\n-348 {\n-_\b3_\b4_\b9 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bT_\b,_\bC_\b> _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-_\b3_\b5_\b0 typedef ConstructionTraits _\bS_\be_\bq_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs;\n-_\b3_\b5_\b1 static inline std::shared_ptr>\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-352 {\n-353 auto seqPrec = SeqConstructionTraits::construct(args);\n-354 return std::make_shared> (seqPrec,\n-args._\bg_\be_\bt_\bC_\bo_\bm_\bm());\n-355 }\n-356 };\n+344\n+_\b3_\b4_\b5 inline void _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bD_\be_\bp_\be_\bn_\bd_\bs()\n+346 {\n+347 // reset the first bit.\n+348 //flags_ &= ~(1<\n-_\b3_\b6_\b9 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br\n-370 {\n-_\b3_\b7_\b1 typedef T _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-_\b3_\b7_\b2 typedef typename Smoother::range_type _\bR_\ba_\bn_\bg_\be;\n-_\b3_\b7_\b3 typedef typename Smoother::domain_type _\bD_\bo_\bm_\ba_\bi_\bn;\n-374\n-_\b3_\b8_\b2 static void _\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n-383 {\n-384 smoother.apply(v,d);\n-385 }\n-386\n-_\b3_\b9_\b4 static void _\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n-395 {\n-396 smoother.apply(v,d);\n-397 }\n-398 };\n+_\b3_\b5_\b8 inline void _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs()\n+359 {\n+360 // reset the second bit.\n+361 flags_ &= ~(1<<_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE);\n+362 }\n+363\n+_\b3_\b6_\b4 inline bool _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bO_\bn_\be_\bW_\ba_\by() const\n+365 {\n+366 // Test whether only the first bit is set\n+367 //return isStrong() && !isTwoWay();\n+368 return ((flags_) & std::bitset((1<<_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE)|(1<<_\bD_\bE_\bP_\bE_\bN_\bD)))==\n+(1<<_\bD_\bE_\bP_\bE_\bN_\bD);\n+369 }\n+370\n+_\b3_\b7_\b1 inline bool _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bT_\bw_\bo_\bW_\ba_\by() const\n+372 {\n+373 // Test whether the first and second bit is set\n+374 return ((flags_) & std::bitset((1<<_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE)|(1<<_\bD_\bE_\bP_\bE_\bN_\bD)))==(\n+(1<<_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE)|(1<<_\bD_\bE_\bP_\bE_\bN_\bD));\n+375 }\n+376\n+_\b3_\b7_\b7 inline bool _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bS_\bt_\br_\bo_\bn_\bg() const\n+378 {\n+379 // Test whether the first or second bit is set\n+380 return ((flags_) & std::bitset((1<<_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE)|(1<<_\bD_\bE_\bP_\bE_\bN_\bD))).to_ulong\n+();\n+381 }\n+382\n+383\n+_\b3_\b8_\b4 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs&\n+props)\n+385 {\n+386 return os << props.flags_;\n+387 }\n+388\n+_\b3_\b8_\b9 inline _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs()\n+390 : flags_()\n+391 {}\n+392\n+393\n+394 inline std::bitset::reference\n+_\b3_\b9_\b5 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v)\n+396 {\n+397 return flags_[v];\n+398 }\n 399\n-405 template\n-_\b4_\b0_\b6 void _\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh(LevelContext& levelContext, size_t steps)\n-407 {\n-408 for(std::size_t i=0; i < steps; ++i) {\n-409 *levelContext.lhs=0;\n-410 _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b>\n-411_\b _\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(*levelContext.smoother, *levelContext.lhs,\n-412 *levelContext.rhs);\n-413 // Accumulate update\n-414 *levelContext.update += *levelContext.lhs;\n-415\n-416 // update defect\n-417 levelContext.matrix->applyscaleadd(-1, *levelContext.lhs,\n-*levelContext.rhs);\n-418 levelContext.pinfo->project(*levelContext.rhs);\n-419 }\n-420 }\n-421\n-427 template\n-_\b4_\b2_\b8 void _\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh(LevelContext& levelContext, size_t steps)\n-429 {\n-430 for(std::size_t i=0; i < steps; ++i) {\n-431 // update defect\n-432 levelContext.matrix->applyscaleadd(-1, *levelContext.lhs,\n-433 *levelContext.rhs);\n-434 *levelContext.lhs=0;\n-435 levelContext.pinfo->project(*levelContext.rhs);\n-436 _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b>\n-437_\b _\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(*levelContext.smoother, *levelContext.lhs, *levelContext.rhs);\n-438 // Accumulate update\n-439 *levelContext.update += *levelContext.lhs;\n-440 }\n-441 }\n-442\n-443 template\n-_\b4_\b4_\b4 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br<_\bS_\be_\bq_\bS_\bO_\bR >\n-445 {\n-_\b4_\b4_\b6 typedef _\bS_\be_\bq_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-_\b4_\b4_\b7 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be _\bR_\ba_\bn_\bg_\be;\n-_\b4_\b4_\b8 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be _\bD_\bo_\bm_\ba_\bi_\bn;\n+_\b4_\b0_\b0 inline bool _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v) const\n+401 {\n+402 return flags_[v];\n+403 }\n+404\n+_\b4_\b0_\b5 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd()\n+406 {\n+407 flags_.set(_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n+408 }\n+409\n+_\b4_\b1_\b0 inline bool _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bo_\bl_\ba_\bt_\be_\bd() const\n+411 {\n+412 return flags_.test(_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n+413 }\n+414\n+_\b4_\b1_\b5 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd()\n+416 {\n+417 flags_.reset(_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n+418 }\n+419\n+_\b4_\b2_\b0 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd()\n+421 {\n+422 flags_.set(_\bV_\bI_\bS_\bI_\bT_\bE_\bD);\n+423 }\n+424\n+_\b4_\b2_\b5 inline bool _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\be_\bd() const\n+426 {\n+427 return flags_.test(_\bV_\bI_\bS_\bI_\bT_\bE_\bD);\n+428 }\n+429\n+_\b4_\b3_\b0 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd()\n+431 {\n+432 flags_.reset(_\bV_\bI_\bS_\bI_\bT_\bE_\bD);\n+433 }\n+434\n+_\b4_\b3_\b5 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bF_\br_\bo_\bn_\bt()\n+436 {\n+437 flags_.set(_\bF_\bR_\bO_\bN_\bT);\n+438 }\n+439\n+_\b4_\b4_\b0 inline bool _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bf_\br_\bo_\bn_\bt() const\n+441 {\n+442 return flags_.test(_\bF_\bR_\bO_\bN_\bT);\n+443 }\n+444\n+_\b4_\b4_\b5 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bF_\br_\bo_\bn_\bt()\n+446 {\n+447 flags_.reset(_\bF_\bR_\bO_\bN_\bT);\n+448 }\n 449\n-_\b4_\b5_\b0 static void _\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n+_\b4_\b5_\b0 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br()\n 451 {\n-452 smoother.template apply(v,d);\n+452 flags_.set(_\bB_\bO_\bR_\bD_\bE_\bR);\n 453 }\n 454\n-455\n-_\b4_\b5_\b6 static void _\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n-457 {\n-458 smoother.template apply(v,d);\n-459 }\n-460 };\n-461\n-462 template\n-_\b4_\b6_\b3 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br<_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br > >\n-464 {\n-_\b4_\b6_\b5 typedef _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b,_\bC_\b,_\bS_\be_\bq_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> > _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-_\b4_\b6_\b6 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be _\bR_\ba_\bn_\bg_\be;\n-_\b4_\b6_\b7 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be _\bD_\bo_\bm_\ba_\bi_\bn;\n-468\n-_\b4_\b6_\b9 static void _\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n-470 {\n-471 smoother.template apply(v,d);\n-472 }\n-473\n-474\n-_\b4_\b7_\b5 static void _\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n-476 {\n-477 smoother.template apply(v,d);\n-478 }\n-479 };\n-480\n-481 template\n-_\b4_\b8_\b2 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-> >\n-483 {\n-_\b4_\b8_\b4 typedef _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bC_\b,_\bS_\be_\bq_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b> > _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-_\b4_\b8_\b5 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be _\bR_\ba_\bn_\bg_\be;\n-_\b4_\b8_\b6 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be _\bD_\bo_\bm_\ba_\bi_\bn;\n-487\n-_\b4_\b8_\b8 static void _\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n-489 {\n-490 smoother.template apply(v,d);\n-491 }\n-492\n-493\n-_\b4_\b9_\b4 static void _\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, _\bR_\ba_\bn_\bg_\be& d)\n-495 {\n-496 smoother.template apply(v,d);\n-497 }\n-498 };\n-499\n-500 } // end namespace Amg\n-501\n-502 // forward declarations\n-503 template\n-504 class SeqOverlappingSchwarz;\n-505\n-506 struct MultiplicativeSchwarzMode;\n-507\n-508 namespace Amg\n-509 {\n-510 template\n-_\b5_\b1_\b1 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz >\n-513 {\n-_\b5_\b1_\b4 typedef _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\bM_\bS_\b,_\bT_\bA_\b>\n-_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-_\b5_\b1_\b5 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be _\bR_\ba_\bn_\bg_\be;\n-_\b5_\b1_\b6 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be _\bD_\bo_\bm_\ba_\bi_\bn;\n-517\n-_\b5_\b1_\b8 static void _\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n-519 {\n-520 smoother.template apply(v,d);\n-521 }\n-522\n-523\n-_\b5_\b2_\b4 static void _\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh(_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br& smoother, _\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n-525 {\n-526 smoother.template apply(v,d);\n-527\n-528 }\n-529 };\n-530\n-531 // template\n-532 // class SeqOverlappingSchwarz;\n-533\n-534 template\n-_\b5_\b3_\b5 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-536 : public _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-537 {\n-_\b5_\b3_\b8 enum _\bO_\bv_\be_\br_\bl_\ba_\bp {_\bv_\be_\br_\bt_\be_\bx, _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be, _\bp_\ba_\bi_\br_\bw_\bi_\bs_\be, _\bn_\bo_\bn_\be};\n-539\n-_\b5_\b4_\b0 _\bO_\bv_\be_\br_\bl_\ba_\bp _\bo_\bv_\be_\br_\bl_\ba_\bp;\n-_\b5_\b4_\b1 bool _\bo_\bn_\bt_\bh_\be_\bf_\bl_\by;\n-542\n-_\b5_\b4_\b3 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs(_\bO_\bv_\be_\br_\bl_\ba_\bp overlap_=_\bv_\be_\br_\bt_\be_\bx,\n-544 bool onthefly_=false)\n-545 : _\bo_\bv_\be_\br_\bl_\ba_\bp(overlap_), _\bo_\bn_\bt_\bh_\be_\bf_\bl_\by(onthefly_)\n-546 {}\n-547 };\n-548\n-549 template\n-_\b5_\b5_\b0 struct _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz >\n-551 {\n-_\b5_\b5_\b2 typedef _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>\n-_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-553 };\n-554\n-555 template\n-_\b5_\b5_\b6 class _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz >\n-557 : public _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs >\n-558 {\n-559 typedef _\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bS_\b,_\bT_\bA_\b> >\n-_\bF_\ba_\bt_\bh_\be_\br;\n-560\n-561 public:\n-_\b5_\b6_\b2 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-_\b5_\b6_\b3 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b> _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp;\n-_\b5_\b6_\b4 typedef typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-_\b5_\b6_\b5 typedef typename _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bS_\b,_\bT_\bA_\b>_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n-_\bV_\be_\bc_\bt_\bo_\br;\n-_\b5_\b6_\b6 typedef typename Vector::value_type _\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn;\n-567\n-_\b5_\b6_\b8 virtual void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const M& matrix, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& amap)\n-569 {\n-570 Father::setMatrix(matrix);\n-571\n-572 std::vector visited(amap._\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs(), false);\n-573 typedef IteratorPropertyMap::iterator,IdentityMap>\n-VisitedMapType;\n-574 VisitedMapType visitedMap(visited.begin());\n-575\n-576 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b> graph(matrix);\n-577\n-578 typedef _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>\n-_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n-579\n-580 switch(Father::getArgs().overlap) {\n-581 case SmootherArgs::vertex :\n-582 {\n-583 VertexAdder visitor(subdomains, amap);\n-584 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n-585 }\n-586 break;\n-587 case SmootherArgs::pairwise :\n-588 {\n-589 createPairDomains(graph);\n-590 }\n-591 break;\n-592 case SmootherArgs::aggregate :\n-593 {\n-594 AggregateAdder visitor(subdomains, amap, graph,\n-visitedMap);\n-595 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n-596 }\n-597 break;\n-598 case SmootherArgs::none :\n-599 NoneAdder visitor;\n-600 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n-601 break;\n-602 default :\n-603 DUNE_THROW(NotImplemented, \"This overlapping scheme is not supported!\");\n-604 }\n-605 }\n-_\b6_\b0_\b6 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const M& matrix)\n-607 {\n-608 Father::setMatrix(matrix);\n-609\n-610 /* Create aggregates map where each aggregate is just one vertex. */\n-611 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp amap(matrix.N());\n-612 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br v=0;\n-613 for(typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br iter=amap._\bb_\be_\bg_\bi_\bn();\n-614 iter!=amap._\be_\bn_\bd(); ++iter)\n-615 *iter=v++;\n-616\n-617 std::vector visited(amap._\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs(), false);\n-618 typedef IteratorPropertyMap::iterator,IdentityMap>\n-VisitedMapType;\n-619 VisitedMapType visitedMap(visited.begin());\n-620\n-621 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b> graph(matrix);\n-622\n-623 typedef _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>\n-_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n-624\n-625 switch(Father::getArgs().overlap) {\n-626 case SmootherArgs::vertex :\n-627 {\n-628 VertexAdder visitor(subdomains, amap);\n-629 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n-630 }\n-631 break;\n-632 case SmootherArgs::aggregate :\n-633 {\n-634 DUNE_THROW(NotImplemented, \"Aggregate overlap is not supported yet\");\n-635 /*\n-636 AggregateAdder visitor(subdomains, amap, graph,\n-visitedMap);\n-637 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n-638 */\n-639 }\n-640 break;\n-641 case SmootherArgs::pairwise :\n-642 {\n-643 createPairDomains(graph);\n-644 }\n-645 break;\n-646 case SmootherArgs::none :\n-647 NoneAdder visitor;\n-648 createSubdomains(matrix, graph, amap, visitor, visitedMap);\n-649\n-650 }\n-651 }\n-652\n-_\b6_\b5_\b3 const _\bV_\be_\bc_\bt_\bo_\br& _\bg_\be_\bt_\bS_\bu_\bb_\bD_\bo_\bm_\ba_\bi_\bn_\bs()\n-654 {\n-655 return subdomains;\n-656 }\n-657\n-658 private:\n-659 struct VertexAdder\n-660 {\n-_\b6_\b6_\b1 _\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br(_\bV_\be_\bc_\bt_\bo_\br& subdomains_, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& aggregates_)\n-662 : subdomains(subdomains_), max(-1), subdomain(-1), aggregates(aggregates_)\n-663 {}\n-664 template\n-_\b6_\b6_\b5 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T& edge)\n-666 {\n-667 if(aggregates[edge.target()]!=AggregatesMap::ISOLATED)\n-668 subdomains[subdomain].insert(edge.target());\n-669 }\n-_\b6_\b7_\b0 int _\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate_)\n-671 {\n-672 subdomain=aggregate_;\n-673 max = std::max(subdomain, aggregate_);\n-674 return subdomain;\n-675 }\n-_\b6_\b7_\b6 int _\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs() const\n-677 {\n-678 return max+1;\n-679 }\n-680 private:\n-681 _\bV_\be_\bc_\bt_\bo_\br& subdomains;\n-682 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br max;\n-683 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br subdomain;\n-684 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& aggregates;\n-685 };\n-686 struct NoneAdder\n-687 {\n-688 template\n-_\b6_\b8_\b9 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T& edge)\n-690 {}\n-_\b6_\b9_\b1 int _\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate_)\n-692 {\n-693 return -1;\n-694 }\n-_\b6_\b9_\b5 int _\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs() const\n-696 {\n-697 return -1;\n-698 }\n-699 };\n-700\n-701 template\n-702 struct AggregateAdder\n-703 {\n-_\b7_\b0_\b4 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br(_\bV_\be_\bc_\bt_\bo_\br& subdomains_, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& aggregates_,\n-705 const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b>& graph_, VM& visitedMap_)\n-706 : subdomains(subdomains_), subdomain(-1), aggregates(aggregates_),\n-707 adder(subdomains_, aggregates_), graph(graph_), visitedMap(visitedMap_)\n-708 {}\n-709 template\n-_\b7_\b1_\b0 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T& edge)\n-711 {\n-712 subdomains[subdomain].insert(edge.target());\n-713 // If we (the neighbouring vertex of the aggregate)\n-714 // are not isolated, add the aggregate we belong to\n-715 // to the same subdomain using the OneOverlapAdder\n-716 if(aggregates[edge.target()]!=AggregatesMap::ISOLATED) {\n-717 assert(aggregates[edge.target()]!=aggregate);\n-718 typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bL_\bi_\bs_\bt vlist;\n-719 aggregates.template breadthFirstSearch(edge.target(),\n-aggregate,\n-720 graph, vlist, adder, adder,\n-721 visitedMap);\n-722 }\n-723 }\n-724\n-_\b7_\b2_\b5 int _\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate_)\n-726 {\n-727 adder.setAggregate(aggregate_);\n-728 aggregate=aggregate_;\n-729 return ++subdomain;\n-730 }\n-_\b7_\b3_\b1 int _\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs() const\n-732 {\n-733 return subdomain+1;\n-734 }\n-735\n-736 private:\n-737 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br aggregate;\n-738 _\bV_\be_\bc_\bt_\bo_\br& subdomains;\n-739 int subdomain;\n-740 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp& aggregates;\n-741 VertexAdder adder;\n-742 const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b>& graph;\n-743 VM& visitedMap;\n-744 };\n-745\n-746 void createPairDomains(const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b>& graph)\n-747 {\n-748 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br VIter;\n-749 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br EIter;\n-750 typedef typename M::size_type size_type;\n-751\n-752 std::set > pairs;\n-753 int total=0;\n-754 for(VIter v=graph._\bb_\be_\bg_\bi_\bn(), ve=graph._\be_\bn_\bd(); ve != v; ++v)\n-755 for(EIter e = v.begin(), ee=v.end(); ee!=e; ++e)\n-756 {\n-757 ++total;\n-758 if(e.source() >::const_iterator\n-SIter;\n-768 typename Vector::iterator subdomain=subdomains.begin();\n-769\n-770 for(SIter s=pairs.begin(), se =pairs.end(); se!=s; ++s)\n-771 {\n-772 subdomain->insert(s->first);\n-773 subdomain->insert(s->second);\n-774 ++subdomain;\n-775 }\n-776 std::size_t minsize=10000;\n-777 std::size_t maxsize=0;\n-778 int sum=0;\n-779 for(typename Vector::size_type i=0; i < subdomains.size(); ++i) {\n-780 sum+=subdomains[i].size();\n-781 minsize=std::min(minsize, subdomains[i].size());\n-782 maxsize=std::max(maxsize, subdomains[i].size());\n-783 }\n-784 Dune::dinfo<<\"Subdomain size: min=\"<\n-789 void createSubdomains(const M& matrix, const MatrixGraph& graph,\n-790 const AggregatesMap& amap, Visitor& overlapVisitor,\n-791 IteratorPropertyMap::iterator,IdentityMap>& visitedMap )\n-792 {\n-793 // count number ag aggregates. We assume that the\n-794 // aggregates are numbered consecutively from 0 except\n-795 // for the isolated ones. All isolated vertices form\n-796 // one aggregate, here.\n-797 int isolated=0;\n-798 AggregateDescriptor maxAggregate=0;\n-799\n-800 for(std::size_t i=0; i < amap.noVertices(); ++i)\n-801 if(amap[i]==_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n-802 isolated++;\n-803 else\n-804 maxAggregate = std::max(maxAggregate, amap[i]);\n-805\n-806 subdomains.resize(maxAggregate+1+isolated);\n-807\n-808 // reset the subdomains\n-809 for(typename Vector::size_type i=0; i < subdomains.size(); ++i)\n-810 subdomains[i].clear();\n-811\n-812 // Create the subdomains from the aggregates mapping.\n-813 // For each aggregate we mark all entries and the\n-814 // neighbouring vertices as belonging to the same subdomain\n-815 VertexAdder aggregateVisitor(subdomains, amap);\n-816\n-817 for(VertexDescriptor i=0; i < amap.noVertices(); ++i)\n-818 if(!_\bg_\be_\bt(visitedMap, i)) {\n-819 AggregateDescriptor aggregate=amap[i];\n-820\n-821 if(amap[i]==_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n-822 // isolated vertex gets its own aggregate\n-823 subdomains.push_back(Subdomain());\n-824 aggregate=subdomains.size()-1;\n-825 }\n-826 overlapVisitor.setAggregate(aggregate);\n-827 aggregateVisitor.setAggregate(aggregate);\n-828 subdomains[aggregate].insert(i);\n-829 typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bL_\bi_\bs_\bt vlist;\n-830 amap.template breadthFirstSearch(i, aggregate, graph, vlist,\n-aggregateVisitor,\n-831 overlapVisitor, visitedMap);\n-832 }\n-833\n-834 std::size_t minsize=10000;\n-835 std::size_t maxsize=0;\n-836 int sum=0;\n-837 for(typename Vector::size_type i=0; i < subdomains.size(); ++i) {\n-838 sum+=subdomains[i].size();\n-839 minsize=std::min(minsize, subdomains[i].size());\n-840 maxsize=std::max(maxsize, subdomains[i].size());\n-841 }\n-842 Dune::dinfo<<\"Subdomain size: min=\"<\n-_\b8_\b5_\b3 struct ConstructionTraits<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz >\n-854 {\n-_\b8_\b5_\b5 typedef _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bS_\b,_\bT_\bA_\b> > _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-856\n-_\b8_\b5_\b7 static inline std::shared_ptr>\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-858 {\n-859 return std::make_shared>\n-860 (args._\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(),\n-861 args._\bg_\be_\bt_\bS_\bu_\bb_\bD_\bo_\bm_\ba_\bi_\bn_\bs(),\n-862 args._\bg_\be_\bt_\bA_\br_\bg_\bs()._\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br,\n-863 args._\bg_\be_\bt_\bA_\br_\bg_\bs().onthefly);\n-864 }\n-865 };\n-866\n-867\n-868 } // namespace Amg\n-869} // namespace Dune\n-870\n-871\n-872\n-873#endif\n-_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh\n-_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n-Define general preconditioner interface.\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-Helper classes for the construction of classes without empty constructor.\n-_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n-Provides classes for the Coloring process of AMG.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-DefaultSmootherArgs< typename X::field_type > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:74\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>_\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh\n-static void postSmooth(Smoother &smoother, Domain &v, Range &d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:494\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bN_\bo_\bn_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const T &edge)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:689\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh\n-static void preSmooth(Smoother &smoother, Domain &v, const Range &d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:518\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bJ_\ba_\bc_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< SeqJac< M, X, Y, l > > construct(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:256\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-ConstructionArgs< SeqILU< M, X, Y > > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:309\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bg_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-const Matrix & getMatrix() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:114\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bR_\ba_\bn_\bg_\be\n-Smoother::range_type Range\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:515\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bN_\bo_\bn_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n-int setAggregate(const AggregateDescriptor &aggregate_)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:691\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-DefaultSmootherArgs< typename T::matrix_type::field_type > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br_\b:_\b:_\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n-int setAggregate(const AggregateDescriptor &aggregate_)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:670\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:\n-_\bS_\be_\bq_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs\n-ConstructionTraits< T > SeqConstructionTraits\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:350\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bs_\be_\bt_\bA_\br_\bg_\bs\n-void setArgs(const SmootherArgs &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:119\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-ConstructionArgs< SeqOverlappingSchwarz< M, X, TM, TS, TA > > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:855\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n-NonoverlappingBlockPreconditioner< C, SeqSOR< M, X, Y, l > > Smoother\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:484\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh\n-static void postSmooth(Smoother &smoother, Domain &v, Range &d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:456\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br\n-AggregateAdder(Vector &subdomains_, const AggregatesMap &aggregates_, const\n-MatrixGraph< const M > &graph_, VM &visitedMap_)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:704\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp\n-Overlap\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:538\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bs_\be_\bt_\bC_\bo_\bm_\bm\n-void setComm(const C &comm)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:158\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-DefaultConstructionArgs< Richardson< X, Y > > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:269\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:\n-_\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-virtual ~DefaultConstructionArgs()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:180\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-SeqOverlappingSchwarzSmootherArgs< typename M::field_type > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:552\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn\n-Vector::value_type Subdomain\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:566\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh\n-static void preSmooth(Smoother &smoother, Domain &v, Range &d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:488\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bN\n-int getN()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>_\b:_\b:_\bR_\ba_\bn_\bg_\be\n-Smoother::range_type Range\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:485\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n-SeqSOR< M, X, Y, l > Smoother\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:446\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const T &edge)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:710\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< SeqSSOR< M, X, Y, l > > construct(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:224\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-AggregatesMap::AggregateDescriptor AggregateDescriptor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:564\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bo_\bn_\bt_\bh_\be_\bf_\bl_\by\n-bool onthefly\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:541\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-DefaultConstructionArgs< SeqSOR< M, X, Y, l > > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:238\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-virtual void setMatrix(const M &matrix, const AggregatesMap &amap)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:568\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-void setMatrix(const Args &...)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:184\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bJ_\ba_\bc_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-DefaultConstructionArgs< SeqJac< M, X, Y, l > > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:254\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-DefaultConstructionArgs< SeqSSOR< M, X, Y, l > > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:222\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bg_\be_\bt_\bA_\br_\bg_\bs\n-const SmootherArgs getArgs() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:133\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br\n-VertexAdder(Vector &subdomains_, const AggregatesMap &aggregates_)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:661\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bg_\be_\bt_\bS_\bu_\bb_\bD_\bo_\bm_\ba_\bi_\bn_\bs\n-const Vector & getSubDomains()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:653\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bV_\be_\bc_\bt_\bo_\br\n-SeqOverlappingSchwarz< M, X, TM, TS, TA >::subdomain_vector Vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:565\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< SeqOverlappingSchwarz< M, X, TM, TS, TA > > construct\n-(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:857\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n-_\b>_\b _\b>_\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh\n-static void preSmooth(Smoother &smoother, Domain &v, Range &d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:469\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-const_iterator begin() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:725\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-void setMatrix(const Matrix &matrix)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:104\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n-T Smoother\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:371\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh\n-static void preSmooth(Smoother &smoother, Domain &v, Range &d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:450\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n-_\b>_\b _\b>_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n-BlockPreconditioner< X, Y, C, SeqSOR< M, X, Y, l > > Smoother\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:465\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bC_\bo_\bm_\bm\n-void setComm(T1 &comm)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:193\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br_\b:_\b:_\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs\n-int noSubdomains() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:676\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-AggregateDescriptor * iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:735\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh\n-void presmooth(LevelContext &levelContext, size_t steps)\n-Apply pre smoothing on the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:406\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n-Smoother::domain_type Domain\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:516\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-SeqOverlappingSchwarzSmootherArgs(Overlap overlap_=vertex, bool\n-onthefly_=false)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:543\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-DefaultParallelConstructionArgs< T, C > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:337\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-DefaultParallelConstructionArgs< T, C > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:349\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n-const Matrix * matrix_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:139\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n-const_iterator end() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:730\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm\n-const SequentialInformation & getComm()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:128\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-V AggregateDescriptor\n-The aggregate descriptor type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:580\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD\n-static const V ISOLATED\n-Identifier of isolated vertices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:571\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-DefaultSmootherArgs()\n+_\b4_\b5_\b5 inline bool _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\be_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br() const\n+456 {\n+457 return flags_.test(_\bB_\bO_\bR_\bD_\bE_\bR);\n+458 }\n+459\n+_\b4_\b6_\b0 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br()\n+461 {\n+462 flags_.reset(_\bB_\bO_\bR_\bD_\bE_\bR);\n+463 }\n+464\n+_\b4_\b6_\b5 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt()\n+466 {\n+467 flags_.reset();\n+468 }\n+469\n+471 }\n+472}\n+473#endif\n+_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b._\bh_\bh\n+Provides classes for handling internal properties in a graph.\n+_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\n+Provides classes for building the matrix graph.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bd_\be_\bp_\be_\bn_\bd_\bs\n+bool depends() const\n+Checks wether the vertex the edge points to depends on the vertex the edge\n+starts.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:352\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bF_\br_\bo_\bn_\bt\n+void resetFront()\n+Resets the front node flag.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:445\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt\n+std::bitset< VertexProperties::SIZE > BitSet\n+The type of the bitset.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:238\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bo_\bl_\ba_\bt_\be_\bd\n+bool isolated() const\n+Checks wether the node is isolated.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:410\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n+bool ValueType\n+The value type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:248\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+friend std::ostream & operator<<(std::ostream &os, const VertexProperties\n+&props)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:384\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+BitSet::reference Reference\n+The reference type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:243\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bT_\bw_\bo_\bW_\ba_\by\n+bool isTwoWay() const\n+Checks wether the edge is two way. I.e. both the influence flag and the depends\n+flag are that.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:371\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs\n+void setInfluences()\n+Marks the edge as one of which the start vertex by the end vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:325\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+VertexProperties()\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:389\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bD_\be_\bp_\be_\bn_\bd_\bs\n+void setDepends()\n+Marks the edge as one of which the end point depends on the starting point.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:338\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n+PropertyGraphVertexPropertyMap()\n Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-void setMatrix(const M &matrix)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:606\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n-std::size_t noVertices() const\n-Get the number of vertices.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bA_\bd_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const T &edge)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:665\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh\n-static void postSmooth(Smoother &smoother, Domain &v, const Range &d)\n-apply post smoothing in forward direction\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:394\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bR_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br\n-FieldTraits< T >::real_type RelaxationFactor\n-The type of the relaxation factor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:42\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b _\b>_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n-Smoother::domain_type Domain\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:486\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n-Smoother::domain_type Domain\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:373\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bN\n-void setN(int n)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:288\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< BlockPreconditioner< X, Y, C, T > > construct(Arguments\n-&args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:339\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bL_\bi_\bs_\bt\n-SLList< VertexDescriptor, Allocator > VertexList\n-The type of a single linked list of vertex descriptors.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:592\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< NonoverlappingBlockPreconditioner< C, T > > construct\n-(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:351\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n-SeqOverlappingSchwarz< M, X, MultiplicativeSchwarzMode, MS, TA > Smoother\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:514\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bP_\ba_\br_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< ParSSOR< M, X, Y, C > > construct(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:326\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-MatrixGraph< M >::VertexDescriptor VertexDescriptor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:562\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< SeqILU< M, X, Y > > construct(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:311\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs\n-int noSubdomains() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:731\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm\n-const SequentialInformation & getComm()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:196\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< SeqSOR< M, X, Y, l > > construct(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:240\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< Richardson< X, Y > > construct(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:271\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-virtual void setMatrix(const Matrix &matrix, const AggregatesMap &amap)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:108\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bN_\bo_\bn_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bn_\bo_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs\n-int noSubdomains() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:695\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh\n-void postsmooth(LevelContext &levelContext, size_t steps)\n-Apply post smoothing on the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:428\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-Dune::Amg::AggregatesMap< VertexDescriptor > AggregatesMap\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:563\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bA_\br_\bg_\bs\n-const SmootherArgs getArgs() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:201\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bs_\be_\bt_\bC_\bo_\bm_\bm\n-void setComm(T1 &comm)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:125\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bM_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh\n-static void postSmooth(Smoother &smoother, Domain &v, const Range &d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:524\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bP_\ba_\br_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>_\b _\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-DefaultParallelConstructionArgs< M, C > Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:324\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\br_\be_\bl_\ba_\bx_\ba_\bt_\bi_\bo_\bn_\bF_\ba_\bc_\bt_\bo_\br\n-RelaxationFactor relaxationFactor\n-The relaxation factor to use.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-virtual ~DefaultParallelConstructionArgs()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:155\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n-Smoother::domain_type Domain\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:448\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bA_\bd_\bd_\be_\br_\b:_\b:_\bs_\be_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n-int setAggregate(const AggregateDescriptor &aggregate_)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:725\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>_\b _\b>_\b:_\b:_\bR_\ba_\bn_\bg_\be\n-Smoother::range_type Range\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:447\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm\n-const C & getComm() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:163\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b:_\b:_\b~_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-virtual ~DefaultConstructionArgs()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:101\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bp_\br_\be_\bS_\bm_\bo_\bo_\bt_\bh\n-static void preSmooth(Smoother &smoother, Domain &v, const Range &d)\n-apply pre smoothing in forward direction\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:382\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n-_\b>_\b _\b>_\b:_\b:_\bp_\bo_\bs_\bt_\bS_\bm_\bo_\bo_\bt_\bh\n-static void postSmooth(Smoother &smoother, Domain &v, Range &d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:475\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bT_\b _\b>_\b _\b>_\b:_\b:\n-_\bS_\be_\bq_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs\n-ConstructionTraits< T > SeqConstructionTraits\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:338\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-ConstructionArgs(int n=0)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:284\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n-_\b>_\b _\b>_\b:_\b:_\bR_\ba_\bn_\bg_\be\n-Smoother::range_type Range\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bA_\br_\bg_\bs\n-void setArgs(const SmootherArgs &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:187\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n-int iterations\n-The numbe of iterations to perform.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:47\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bR_\ba_\bn_\bg_\be\n-Smoother::range_type Range\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:372\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp\n-Overlap overlap\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:540\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b,_\b _\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n-_\b>_\b _\b>_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n-Smoother::domain_type Domain\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:467\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n-@ aggregate\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:538\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bn_\bo_\bn_\be\n-@ none\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:538\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bp_\ba_\bi_\br_\bw_\bi_\bs_\be\n-@ pairwise\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:538\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bv_\be_\br_\bt_\be_\bx\n-@ vertex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:538\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:266\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n+PropertyGraphVertexPropertyMap(G &g)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:259\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+G::VertexDescriptor Vertex\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:253\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br\n+void resetExcludedBorder()\n+Marks the vertex as included in the aggregation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:460\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bF_\br_\bo_\bn_\bt\n+void setFront()\n+Marks the node as belonging to the current clusters front.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:435\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt\n+void reset()\n+Reset all flags.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:465\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd\n+void setVisited()\n+Mark the node as already visited.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:420\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+EdgeProperties()\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:305\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs\n+void resetInfluences()\n+Resets the influence flag.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:358\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bG_\br_\ba_\bp_\bh\n+G Graph\n+The type of the graph with internal properties.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:233\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+std::bitset< SIZE >::reference operator[](std::size_t v)\n+Access the bits directly.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bF_\bl_\ba_\bg_\bs\n+void printFlags() const\n+Prints the attributes of the edge for debugging.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+friend std::ostream & operator<<(std::ostream &os, const EdgeProperties &props)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:300\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\by_\bp_\be_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg_\b,_\b _\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,\n+_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b,_\b _\bE_\bP_\b,_\b _\bV_\bM_\b,_\b _\bE_\bM_\b _\b>_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n+Amg::PropertyGraphVertexPropertyMap< Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM >, Amg::VertexProperties::VISITED > Type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:288\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs\n+bool influences() const\n+Checks wether the start vertex is influenced by the end vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:332\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n+void setIsolated()\n+Marks that node as being isolated.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:405\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\be_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br\n+bool excludedBorder() const\n+Tests whether the vertex is excluded from the aggregation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:455\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd\n+void resetVisited()\n+Resets the visited flag.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:430\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\be_\bd\n+bool visited() const\n+Checks wether the node is marked as visited.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:425\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+Reference operator[](const Vertex &vertex) const\n+Get the properties associated to a vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:275\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt\n+void reset()\n+Reset all flags.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:320\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bD_\be_\bp_\be_\bn_\bd_\bs\n+void resetDepends()\n+Resets the depends flag.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:345\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+ReadWritePropertyMapTag Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:223\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n+void resetIsolated()\n+Resets the isolated flag.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:415\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+std::ostream & operator<<(std::ostream &os, const AggregationCriterion< T >\n+&criterion)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:113\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bS_\bt_\br_\bo_\bn_\bg\n+bool isStrong() const\n+Checks wether the edge is strong. I.e. the influence or depends flag is set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:377\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bf_\br_\bo_\bn_\bt\n+bool front() const\n+Checks wether the node is marked as a front node.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:440\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+std::bitset< SIZE >::reference operator[](std::size_t v)\n+Access the bits directly.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:310\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br\n+void setExcludedBorder()\n+Marks the vertex as excluded from the aggregation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:450\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bO_\bn_\be_\bW_\ba_\by\n+bool isOneWay() const\n+Checks wether the edge is one way. I.e. either the influence or the depends\n+flag but is set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:364\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bi_\bn_\bd_\be_\bx\n+@ index\n+the index to access in the bitset.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:227\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bV_\bI_\bS_\bI_\bT_\bE_\bD\n+@ VISITED\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:129\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD\n+@ ISOLATED\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:129\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bS_\bI_\bZ_\bE\n+@ SIZE\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:129\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bB_\bO_\bR_\bD_\bE_\bR\n+@ BORDER\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:129\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bF_\bR_\bO_\bN_\bT\n+@ FRONT\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:129\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bD_\bE_\bP_\bE_\bN_\bD\n+@ DEPEND\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bS_\bI_\bZ_\bE\n+@ SIZE\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE\n+@ INFLUENCE\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:43\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n-Sequential overlapping Schwarz preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-X range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:770\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:765\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n-std::vector< subdomain_type, typename std::allocator_traits< TA >::template\n-rebind_alloc< subdomain_type > > subdomain_vector\n-The vector type containing the subdomain to row index mapping.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:797\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Nonoverlapping parallel preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:276\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-P::range_type range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:284\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-P::domain_type domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:282\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n-Tag that tells the Schwarz method to be multiplicative.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-Class providing information about the mapping of the vertices onto aggregates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-The (undirected) graph of a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd\n-VertexIterator end()\n-Get an iterator over the vertices.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-M::size_type VertexDescriptor\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-VertexIterator begin()\n-Get an iterator over the vertices.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-Iterator over all edges starting from a vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-The vertex iterator type of the graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:209\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-The default class for the smoother arguments.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:38\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs\n-Traits class for getting the attribute class of a smoother.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:66\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-Construction Arguments for the default smoothers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:93\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:148\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:153\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b _\b>\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:282\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\bp_\bp_\bl_\bi_\be_\br\n-Helper class for applying the smoothers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:370\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:537\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bA_\br_\bg_\bs_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bS_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:558\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n-Sequential SSOR preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:141\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR\n-Sequential SOR preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:261\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:266\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:268\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc\n-The sequential jacobian preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:412\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n-Sequential ILU preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:532\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn\n-Richardson preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:713\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\ba_\br_\bS_\bS_\bO_\bR\n-A parallel SSOR preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:175\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Block parallel preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:278\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:285\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:290\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+Class representing the properties of an ede in the matrix graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:39\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n+Class representing a node in the matrix graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:220\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n+Attaches properties to the edges and vertices of a graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:978\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n+Tag idnetifying the visited property of a vertex.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:29\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00104.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00104.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: fastamgsmoother.hh File Reference\n+dune-istl: renumberer.hh File Reference\n \n \n \n \n \n \n \n@@ -71,35 +71,40 @@\n \n
    \n
    \n
    \n \n-
    fastamgsmoother.hh File Reference
    \n+Namespaces |\n+Functions
    \n+
    renumberer.hh File Reference
    \n
    \n
    \n-
    #include <cstddef>
    \n+
    #include "aggregates.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n+\n \n

    \n Classes

    struct  Dune::Amg::GaussSeidelPresmoothDefect< level >
     
    struct  Dune::Amg::GaussSeidelPostsmoothDefect< level >
    class  Dune::Amg::AggregateRenumberer< G >
     
    \n \n \n \n \n \n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+\n+\n+\n+\n

    \n+Functions

    template<class G , class I , class V >
    void Dune::Amg::renumberAggregates (const G &graph, I index, I endIndex, V &visitedMap, AggregatesMap< typename G::VertexDescriptor > &aggregates)
     
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,23 +1,26 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-fastamgsmoother.hh File Reference\n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+renumberer.hh File Reference\n+#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b<_\b _\bl_\be_\bv_\be_\bl_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b<_\b _\bl_\be_\bv_\be_\bl_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\b _\bG_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs (const G &graph, I index, I endIndex, V\n+ &visitedMap, _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp< typename G::VertexDescriptor > &aggregates)\n+\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00104_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00104_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: fastamgsmoother.hh Source File\n+dune-istl: renumberer.hh Source File\n \n \n \n \n \n \n \n@@ -74,127 +74,118 @@\n \n
    \n \n
    \n
    \n
    \n-
    fastamgsmoother.hh
    \n+
    renumberer.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_FASTAMGSMOOTHER_HH
    \n-
    6#define DUNE_ISTL_FASTAMGSMOOTHER_HH
    \n+
    5#ifndef DUNE_AMG_RENUMBERER_HH
    \n+
    6#define DUNE_AMG_RENUMBERER_HH
    \n
    7
    \n-
    8#include <cstddef>
    \n+
    8#include "aggregates.hh"
    \n
    9
    \n
    10namespace Dune
    \n
    11{
    \n
    12 namespace Amg
    \n
    13 {
    \n-
    14
    \n-
    15 template<std::size_t level>
    \n-
    \n-\n-
    17
    \n-
    18 template<typename M, typename X, typename Y>
    \n-
    \n-
    19 static void apply(const M& A, X& x, Y& d,
    \n-
    20 const Y& b)
    \n-
    21 {
    \n-
    22 typedef typename M::ConstRowIterator RowIterator;
    \n-
    23 typedef typename M::ConstColIterator ColIterator;
    \n-
    24
    \n-
    25 typename Y::iterator dIter=d.begin();
    \n-
    26 typename Y::const_iterator bIter=b.begin();
    \n-
    27 typename X::iterator xIter=x.begin();
    \n-
    28
    \n-
    29 for(RowIterator row=A.begin(), end=A.end(); row != end;
    \n-
    30 ++row, ++dIter, ++xIter, ++bIter)
    \n-
    31 {
    \n-
    32 ColIterator col=(*row).begin();
    \n-
    33 *dIter = *bIter;
    \n-
    34
    \n-
    35 for (; col.index()<row.index(); ++col)
    \n-
    36 (*col).mmv(x[col.index()],*dIter); // rhs -= sum_{j<i} a_ij * xnew_j
    \n-
    37 assert(row.index()==col.index());
    \n-
    38 ColIterator diag=col; // upper diagonal matrix not needed as x was 0 before.
    \n-
    39
    \n-
    40 // Not recursive yet. Just solve with the diagonal
    \n-
    41 diag->solve(*xIter,*dIter);
    \n-
    42 *dIter=0; //as r=v
    \n+
    14 template<class G>
    \n+
    \n+\n+
    16 {
    \n+
    17 public:
    \n+
    19 typedef typename G::VertexDescriptor Vertex;
    \n+
    20
    \n+\n+
    26
    \n+
    28 operator Vertex() const;
    \n+
    29
    \n+
    30 void operator()(const typename G::ConstEdgeIterator& edge);
    \n+
    31
    \n+
    32 void operator++();
    \n+
    33
    \n+
    34 protected:
    \n+\n+\n+
    37 };
    \n+
    \n+
    38
    \n+
    39 template<class G>
    \n+
    \n+\n+
    41 : number_(0), aggregates_(aggregates)
    \n+
    42 {}
    \n+
    \n
    43
    \n-
    44 // Update residual for the symmetric case
    \n-
    45 for(col=(*row).begin(); col.index()<row.index(); ++col)
    \n-
    46 col->mmv(*xIter, d[col.index()]); //d_j-=A_ij x_i
    \n-
    47 }
    \n-
    48 }
    \n-
    \n-
    49 };
    \n-
    \n-
    50
    \n-
    51 template<std::size_t level>
    \n-
    \n-\n-
    53
    \n-
    54 template<typename M, typename X, typename Y>
    \n-
    \n-
    55 static void apply(const M& A, X& x, Y& d,
    \n-
    56 const Y& b)
    \n-
    57 {
    \n-
    58 typedef typename M::ConstRowIterator RowIterator;
    \n-
    59 typedef typename M::ConstColIterator ColIterator;
    \n-
    60 typedef typename Y::block_type YBlock;
    \n+
    44 template<class G>
    \n+
    \n+\n+
    46 {
    \n+
    47 return number_;
    \n+
    48 }
    \n+
    \n+
    49
    \n+
    50 template<class G>
    \n+
    \n+
    51 void AggregateRenumberer<G>::operator()(const typename G::ConstEdgeIterator& edge)
    \n+
    52 {
    \n+
    53 aggregates_[edge.target()]=number_;
    \n+
    54 }
    \n+
    \n+
    55
    \n+
    56 template<class G>
    \n+
    \n+\n+
    58 {
    \n+
    59 ++number_;
    \n+
    60 }
    \n+
    \n
    61
    \n-
    62 typename Y::iterator dIter=d.beforeEnd();
    \n-
    63 typename X::iterator xIter=x.beforeEnd();
    \n-
    64 typename Y::const_iterator bIter=b.beforeEnd();
    \n-
    65
    \n-
    66 for(RowIterator row=A.beforeEnd(), end=A.beforeBegin(); row != end;
    \n-
    67 --row, --dIter, --xIter, --bIter)
    \n-
    68 {
    \n-
    69 ColIterator endCol=(*row).beforeBegin();
    \n-
    70 ColIterator col=(*row).beforeEnd();
    \n-
    71 *dIter = *bIter;
    \n-
    72
    \n-
    73 for (; col.index()>row.index(); --col)
    \n-
    74 (*col).mmv(x[col.index()],*dIter); // rhs -= sum_{i>j} a_ij * xnew_j
    \n-
    75 assert(row.index()==col.index());
    \n-
    76 ColIterator diag=col;
    \n-
    77 YBlock v=*dIter;
    \n-
    78 // upper diagonal matrix
    \n-
    79 for (--col; col!=endCol; --col)
    \n-
    80 (*col).mmv(x[col.index()],v); // v -= sum_{j<i} a_ij * xold_j
    \n-
    81
    \n-
    82 // Not recursive yet. Just solve with the diagonal
    \n-
    83 diag->solve(*xIter,v);
    \n-
    84
    \n-
    85 *dIter-=v;
    \n-
    86
    \n-
    87 // Update residual for the symmetric case
    \n-
    88 // Skip residual computation as it is not needed.
    \n-
    89 //for(col=(*row).begin();col.index()<row.index(); ++col)
    \n-
    90 //col.mmv(*xIter, d[col.index()]); //d_j-=A_ij x_i
    \n-
    91 }
    \n-
    92 }
    \n-
    \n-
    93 };
    \n-
    \n-
    94 } // end namespace Amg
    \n-
    95} // end namespace Dune
    \n-
    96#endif
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n+
    62 template<class G, class I, class V>
    \n+
    \n+
    63 void renumberAggregates(const G& graph, I index, I endIndex, V& visitedMap,
    \n+\n+
    65 {
    \n+
    66 AggregateRenumberer<G> renumberer(aggregates);
    \n+
    67
    \n+
    68 for(I index1=index; index1 != endIndex; ++index1)
    \n+
    69 if(aggregates[index1.index()]!=AggregatesMap<typename G::VertexDescriptor>::ISOLATED &&
    \n+
    70 !get(visitedMap, index1.index())) {
    \n+
    71
    \n+
    72 aggregates.template breadthFirstSearch<false>(index1.index(), aggregates[index1.index()],
    \n+
    73 graph, renumberer, visitedMap);
    \n+
    74 aggregates[index1.index()] = renumberer;
    \n+
    75 ++renumberer;
    \n+
    76 }
    \n+
    77 for(; index != endIndex; ++index)
    \n+
    78 put(visitedMap, index.index(), false);
    \n+
    79 }
    \n+
    \n+
    80
    \n+
    81 } // namespace AMG
    \n+
    82} // namespace Dune
    \n+
    83#endif
    \n+
    Provides classes for the Coloring process of AMG.
    \n
    Definition allocator.hh:11
    \n-
    Definition fastamgsmoother.hh:16
    \n-
    static void apply(const M &A, X &x, Y &d, const Y &b)
    Definition fastamgsmoother.hh:19
    \n-
    Definition fastamgsmoother.hh:52
    \n-
    static void apply(const M &A, X &x, Y &d, const Y &b)
    Definition fastamgsmoother.hh:55
    \n+
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n+
    void renumberAggregates(const G &graph, I index, I endIndex, V &visitedMap, AggregatesMap< typename G::VertexDescriptor > &aggregates)
    Definition renumberer.hh:63
    \n+
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n+
    Definition renumberer.hh:16
    \n+
    void operator++()
    Definition renumberer.hh:57
    \n+
    G::VertexDescriptor Vertex
    The vertex type.
    Definition renumberer.hh:19
    \n+
    void operator()(const typename G::ConstEdgeIterator &edge)
    Definition renumberer.hh:51
    \n+
    AggregatesMap< Vertex > & aggregates_
    Definition renumberer.hh:36
    \n+
    AggregateRenumberer(AggregatesMap< Vertex > &aggregates)
    Constructor.
    Definition renumberer.hh:40
    \n+
    Vertex number_
    Definition renumberer.hh:35
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,123 +1,131 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-fastamgsmoother.hh\n+renumberer.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_FASTAMGSMOOTHER_HH\n-6#define DUNE_ISTL_FASTAMGSMOOTHER_HH\n+5#ifndef DUNE_AMG_RENUMBERER_HH\n+6#define DUNE_AMG_RENUMBERER_HH\n 7\n-8#include \n+8#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n 9\n 10namespace _\bD_\bu_\bn_\be\n 11{\n 12 namespace Amg\n 13 {\n-14\n-15 template\n-_\b1_\b6 struct _\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt {\n-17\n-18 template\n-_\b1_\b9 static void _\ba_\bp_\bp_\bl_\by(const M& A, X& x, Y& d,\n-20 const Y& b)\n-21 {\n-22 typedef typename M::ConstRowIterator RowIterator;\n-23 typedef typename M::ConstColIterator ColIterator;\n-24\n-25 typename Y::iterator dIter=d.begin();\n-26 typename Y::const_iterator bIter=b.begin();\n-27 typename X::iterator xIter=x.begin();\n-28\n-29 for(RowIterator row=A.begin(), end=A.end(); row != end;\n-30 ++row, ++dIter, ++xIter, ++bIter)\n-31 {\n-32 ColIterator _\bc_\bo_\bl=(*row).begin();\n-33 *dIter = *bIter;\n-34\n-35 for (; _\bc_\bo_\bl.index()solve(*xIter,*dIter);\n-42 *dIter=0; //as r=v\n+14 template\n+_\b1_\b5 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n+16 {\n+17 public:\n+_\b1_\b9 typedef typename G::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n+20\n+25 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br(_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates);\n+26\n+28 operator _\bV_\be_\br_\bt_\be_\bx() const;\n+29\n+30 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename G::ConstEdgeIterator& edge);\n+31\n+32 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+33\n+34 protected:\n+_\b3_\b5 _\bV_\be_\br_\bt_\be_\bx _\bn_\bu_\bm_\bb_\be_\br_\b_;\n+_\b3_\b6 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b_;\n+37 };\n+38\n+39 template\n+_\b4_\b0 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br(_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n+aggregates)\n+41 : number_(0), aggregates_(aggregates)\n+42 {}\n 43\n-44 // Update residual for the symmetric case\n-45 for(_\bc_\bo_\bl=(*row).begin(); _\bc_\bo_\bl.index()mmv(*xIter, d[_\bc_\bo_\bl.index()]); //d_j-=A_ij x_i\n-47 }\n+44 template\n+_\b4_\b5 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br _\bV_\be_\br_\bt_\be_\bx() const\n+46 {\n+47 return number_;\n 48 }\n-49 };\n-50\n-51 template\n-_\b5_\b2 struct _\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt {\n-53\n-54 template\n-_\b5_\b5 static void _\ba_\bp_\bp_\bl_\by(const M& A, X& x, Y& d,\n-56 const Y& b)\n-57 {\n-58 typedef typename M::ConstRowIterator RowIterator;\n-59 typedef typename M::ConstColIterator ColIterator;\n-60 typedef typename Y::block_type YBlock;\n+49\n+50 template\n+_\b5_\b1 void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename G::ConstEdgeIterator&\n+edge)\n+52 {\n+53 aggregates_[edge.target()]=number_;\n+54 }\n+55\n+56 template\n+_\b5_\b7 void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+58 {\n+59 ++number_;\n+60 }\n 61\n-62 typename Y::iterator dIter=d.beforeEnd();\n-63 typename X::iterator xIter=x.beforeEnd();\n-64 typename Y::const_iterator bIter=b.beforeEnd();\n-65\n-66 for(RowIterator row=A.beforeEnd(), end=A.beforeBegin(); row != end;\n-67 --row, --dIter, --xIter, --bIter)\n-68 {\n-69 ColIterator endCol=(*row).beforeBegin();\n-70 ColIterator _\bc_\bo_\bl=(*row).beforeEnd();\n-71 *dIter = *bIter;\n-72\n-73 for (; _\bc_\bo_\bl.index()>row.index(); --_\bc_\bo_\bl)\n-74 (*col).mmv(x[_\bc_\bo_\bl.index()],*dIter); // rhs -= sum_{i>j} a_ij * xnew_j\n-75 assert(row.index()==_\bc_\bo_\bl.index());\n-76 ColIterator diag=_\bc_\bo_\bl;\n-77 YBlock v=*dIter;\n-78 // upper diagonal matrix\n-79 for (--_\bc_\bo_\bl; _\bc_\bo_\bl!=endCol; --_\bc_\bo_\bl)\n-80 (*col).mmv(x[_\bc_\bo_\bl.index()],v); // v -= sum_{jsolve(*xIter,v);\n-84\n-85 *dIter-=v;\n-86\n-87 // Update residual for the symmetric case\n-88 // Skip residual computation as it is not needed.\n-89 //for(col=(*row).begin();col.index()\n+_\b6_\b3 void _\br_\be_\bn_\bu_\bm_\bb_\be_\br_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs(const G& graph, I index, I endIndex, V& visitedMap,\n+64 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates)\n+65 {\n+66 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b<_\bG_\b> renumberer(aggregates);\n+67\n+68 for(I index1=index; index1 != endIndex; ++index1)\n+69 if(aggregates[index1.index()]!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:\n+_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD &&\n+70 !_\bg_\be_\bt(visitedMap, index1.index())) {\n+71\n+72 aggregates.template breadthFirstSearch(index1.index(), aggregates\n+[index1.index()],\n+73 graph, renumberer, visitedMap);\n+74 aggregates[index1.index()] = renumberer;\n+75 ++renumberer;\n+76 }\n+77 for(; index != endIndex; ++index)\n+78 put(visitedMap, index.index(), false);\n+79 }\n+80\n+81 } // namespace AMG\n+82} // namespace Dune\n+83#endif\n+_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n+Provides classes for the Coloring process of AMG.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamgsmoother.hh:16\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-static void apply(const M &A, X &x, Y &d, const Y &b)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamgsmoother.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamgsmoother.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-static void apply(const M &A, X &x, Y &d, const Y &b)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamgsmoother.hh:55\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n+Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\br_\be_\bn_\bu_\bm_\bb_\be_\br_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs\n+void renumberAggregates(const G &graph, I index, I endIndex, V &visitedMap,\n+AggregatesMap< typename G::VertexDescriptor > &aggregates)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:63\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+Class providing information about the mapping of the vertices onto aggregates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:16\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+void operator++()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:57\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+G::VertexDescriptor Vertex\n+The vertex type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const typename G::ConstEdgeIterator &edge)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b_\n+AggregatesMap< Vertex > & aggregates_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br\n+AggregateRenumberer(AggregatesMap< Vertex > &aggregates)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:40\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bR_\be_\bn_\bu_\bm_\bb_\be_\br_\be_\br_\b:_\b:_\bn_\bu_\bm_\bb_\be_\br_\b_\n+Vertex number_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn renumberer.hh:35\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00107.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00107.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: aggregates.hh File Reference\n+dune-istl: galerkin.hh File Reference\n \n \n \n \n \n \n \n@@ -71,110 +71,67 @@\n \n
    \n
    \n \n+ \n \n
    \n \n-

    Provides classes for the Coloring process of AMG. \n+

    Provides a class for building the galerkin product based on a aggregation scheme. \n More...

    \n-
    #include "parameters.hh"
    \n-#include "graph.hh"
    \n-#include "properties.hh"
    \n-#include "combinedfunctor.hh"
    \n-#include <dune/common/timer.hh>
    \n-#include <dune/common/stdstreams.hh>
    \n+
    #include "aggregates.hh"
    \n+#include "pinfo.hh"
    \n #include <dune/common/poolallocator.hh>
    \n-#include <dune/common/sllist.hh>
    \n-#include <dune/common/ftraits.hh>
    \n-#include <dune/common/scalarmatrixview.hh>
    \n-#include <utility>
    \n+#include <dune/common/enumset.hh>
    \n #include <set>
    \n-#include <algorithm>
    \n-#include <complex>
    \n #include <limits>
    \n-#include <ostream>
    \n-#include <tuple>
    \n+#include <algorithm>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n \n-\n-\n+\n \n-\n-\n+\n \n-\n+\n \n-\n+\n+\n \n-\n-\n+\n \n-\n-\n+\n \n-\n-\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n

    \n Classes

    class  Dune::Amg::AggregationCriterion< T >
     Base class of all aggregation criterions. More...
     
    class  Dune::Amg::SymmetricMatrixDependency< M, N >
     Dependency policy for symmetric matrices. More...
     
    class  Dune::Amg::Dependency< M, N >
     Dependency policy for symmetric matrices. More...
    struct  Dune::Amg::OverlapVertex< T >
     
    class  Dune::Amg::SymmetricDependency< M, N >
     Dependency policy for symmetric matrices. More...
    class  Dune::Amg::SparsityBuilder< M >
     Functor for building the sparsity pattern of the matrix using examineConnectivity. More...
     
    class  Dune::Amg::Diagonal< N >
     Norm that uses only the [N][N] entry of the block to determine couplings. More...
    class  Dune::Amg::BaseGalerkinProduct
     
    class  Dune::Amg::FirstDiagonal
     Norm that uses only the [0][0] entry of the block to determine couplings. More...
    class  Dune::Amg::GalerkinProduct< T >
     
    struct  Dune::Amg::RowSum
     Functor using the row sum (infinity) norm to determine strong couplings. More...
    class  Dune::Amg::GalerkinProduct< SequentialInformation >
     
    struct  Dune::Amg::FrobeniusNorm
    struct  Dune::Amg::BaseConnectivityConstructor
     
    struct  Dune::Amg::AlwaysOneNorm
    class  Dune::Amg::BaseConnectivityConstructor::ConnectedBuilder< G, S, V >
     Visitor for identifying connected aggregates during a breadthFirstSearch. More...
     
    class  Dune::Amg::SymmetricCriterion< M, Norm >
     Criterion taking advantage of symmetric matrices. More...
    struct  Dune::Amg::ConnectivityConstructor< G, T >
     
    class  Dune::Amg::UnSymmetricCriterion< M, Norm >
     Criterion suitable for unsymmetric matrices. More...
    struct  Dune::Amg::ConnectivityConstructor< G, SequentialInformation >
     
    class  Dune::Amg::AggregatesMap< V >
     Class providing information about the mapping of the vertices onto aggregates. More...
    struct  Dune::Amg::DirichletBoundarySetter< T >
     
    class  Dune::Amg::AggregatesMap< V >::DummyEdgeVisitor
     A Dummy visitor that does nothing for each visited edge. More...
     
    class  Dune::Amg::Aggregate< G, S >
     A class for temporarily storing the vertices of an aggregate in. More...
     
    class  Dune::Amg::Aggregator< G >
     Class for building the aggregates. More...
    struct  Dune::Amg::DirichletBoundarySetter< SequentialInformation >
     
    \n \n \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n

    \n-Functions

    template<class T >
    std::ostream & Dune::Amg::operator<< (std::ostream &os, const AggregationCriterion< T > &criterion)
     
    template<class G , class C >
    void Dune::Amg::buildDependency (G &graph, const typename C::Matrix &matrix, C criterion, bool finestLevel)
     Build the dependency of the matrix graph.
     
    template<class V >
    void Dune::Amg::printAggregates2d (const AggregatesMap< V > &aggregates, int n, int m, std::ostream &os)
     
    \n

    Detailed Description

    \n-

    Provides classes for the Coloring process of AMG.

    \n+

    Provides a class for building the galerkin product based on a aggregation scheme.

    \n
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,104 +1,60 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-aggregates.hh File Reference\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+galerkin.hh File Reference\n _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Provides classes for the Coloring process of AMG. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \"_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b._\bh_\bh\"\n-#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n-#include \"_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b._\bh_\bh\"\n-#include \"_\bc_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bf_\bu_\bn_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \n-#include \n+Provides a class for building the galerkin product based on a aggregation\n+scheme. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n+#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n #include \n-#include \n-#include \n-#include \n-#include \n+#include \n #include \n-#include \n-#include \n #include \n-#include \n-#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\b _\bT_\b _\b>\n-\u00a0 Base class of all aggregation criterions. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\b _\bM_\b,_\b _\bN_\b _\b>\n-\u00a0 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by policy for symmetric matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\b _\bM_\b,_\b _\bN_\b _\b>\n-\u00a0 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by policy for symmetric matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\b _\bT_\b _\b>\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\b _\bM_\b,_\b _\bN_\b _\b>\n-\u00a0 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by policy for symmetric matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\b _\bM_\b _\b>\n+\u00a0 Functor for building the sparsity pattern of the matrix using\n+ examineConnectivity. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b _\bN_\b _\b>\n-\u00a0 Norm that uses only the [N][N] entry of the block to determine\n- couplings. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\bi_\br_\bs_\bt_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n-\u00a0 Norm that uses only the [0][0] entry of the block to determine\n- couplings. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bT_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\bo_\bw_\bS_\bu_\bm\n-\u00a0 Functor using the row sum (infinity) norm to determine strong\n- couplings. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\b _\bG_\b,_\b _\bS_\b,_\b _\bV_\b _\b>\n+\u00a0 Visitor for identifying connected aggregates during a\n+ breadthFirstSearch. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\b _\bM_\b,_\b _\bN_\bo_\br_\bm_\b _\b>\n-\u00a0 Criterion taking advantage of symmetric matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\b _\bG_\b,_\b _\bT_\b _\b>\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\b _\bM_\b,_\b _\bN_\bo_\br_\bm_\b _\b>\n-\u00a0 Criterion suitable for unsymmetric matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\b _\bG_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bV_\b _\b>\n-\u00a0 Class providing information about the mapping of the vertices onto\n- aggregates. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br_\b<_\b _\bT_\b _\b>\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bV_\b _\b>_\b:_\b:_\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br\n-\u00a0 A Dummy visitor that does nothing for each visited edge. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\b _\bG_\b,_\b _\bS_\b _\b>\n-\u00a0 A class for temporarily storing the vertices of an aggregate in.\n- _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\b _\bG_\b _\b>\n-\u00a0 Class for building the aggregates. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &os, const\n- _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn< T > &criterion)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by (G &graph, const typename C::Matrix\n- &matrix, C criterion, bool finestLevel)\n-\u00a0 Build the dependency of the matrix graph.\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b2_\bd (const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp< V >\n- &aggregates, int n, int m, std::ostream &os)\n-\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides classes for the Coloring process of AMG.\n+Provides a class for building the galerkin product based on a aggregation\n+scheme.\n Author\n Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00107_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00107_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: aggregates.hh Source File\n+dune-istl: galerkin.hh Source File\n \n \n \n \n \n \n \n@@ -74,2255 +74,738 @@\n \n
    \n \n
    \n
    \n
    \n-
    aggregates.hh
    \n+
    galerkin.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_AGGREGATES_HH
    \n-
    6#define DUNE_AMG_AGGREGATES_HH
    \n+
    5#ifndef DUNE_GALERKIN_HH
    \n+
    6#define DUNE_GALERKIN_HH
    \n
    7
    \n-
    8
    \n-
    9#include "parameters.hh"
    \n-
    10#include "graph.hh"
    \n-
    11#include "properties.hh"
    \n-
    12#include "combinedfunctor.hh"
    \n-
    13
    \n-
    14#include <dune/common/timer.hh>
    \n-
    15#include <dune/common/stdstreams.hh>
    \n-
    16#include <dune/common/poolallocator.hh>
    \n-
    17#include <dune/common/sllist.hh>
    \n-
    18#include <dune/common/ftraits.hh>
    \n-
    19#include <dune/common/scalarmatrixview.hh>
    \n-
    20
    \n-
    21#include <utility>
    \n-
    22#include <set>
    \n-
    23#include <algorithm>
    \n-
    24#include <complex>
    \n-
    25#include <limits>
    \n-
    26#include <ostream>
    \n-
    27#include <tuple>
    \n-
    28
    \n-
    29namespace Dune
    \n-
    30{
    \n-
    31 namespace Amg
    \n-
    32 {
    \n-
    33
    \n-
    47 template<class T>
    \n-
    \n-
    48 class AggregationCriterion : public T
    \n-
    49 {
    \n-
    50
    \n-
    51 public:
    \n-\n+
    8#include "aggregates.hh"
    \n+
    9#include "pinfo.hh"
    \n+
    10#include <dune/common/poolallocator.hh>
    \n+
    11#include <dune/common/enumset.hh>
    \n+
    12#include <set>
    \n+
    13#include <limits>
    \n+
    14#include <algorithm>
    \n+
    15
    \n+
    16namespace Dune
    \n+
    17{
    \n+
    18 namespace Amg
    \n+
    19 {
    \n+
    31 template<class T>
    \n+
    \n+\n+
    33 {
    \n+
    37 typedef T Aggregate;
    \n+
    38
    \n+
    42 typedef T Vertex;
    \n+
    43
    \n+\n+
    48
    \n+\n+
    53 };
    \n+
    \n+
    54
    \n+
    55
    \n
    56
    \n-
    \n-\n-
    67 : T()
    \n-
    68 {}
    \n-
    \n-
    69
    \n-
    \n-\n-
    71 : T(parms)
    \n-
    72 {}
    \n-
    \n-
    \n-
    82 void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)
    \n-
    83 {
    \n-
    84 this->setMaxDistance(diameter-1);
    \n-
    85 std::size_t csize=1;
    \n-
    86
    \n-
    87 for(; dim>0; dim--) {
    \n-
    88 csize*=diameter;
    \n-
    89 this->setMaxDistance(this->maxDistance()+diameter-1);
    \n-
    90 }
    \n-
    91 this->setMinAggregateSize(csize);
    \n-
    92 this->setMaxAggregateSize(static_cast<std::size_t>(csize*1.5));
    \n-
    93 }
    \n-
    \n-
    94
    \n-
    \n-
    105 void setDefaultValuesAnisotropic(std::size_t dim,std::size_t diameter=2)
    \n-
    106 {
    \n-
    107 setDefaultValuesIsotropic(dim, diameter);
    \n-
    108 this->setMaxDistance(this->maxDistance()+dim-1);
    \n-
    109 }
    \n-
    \n-
    110 };
    \n-
    \n-
    111
    \n-
    112 template<class T>
    \n-
    \n-
    113 std::ostream& operator<<(std::ostream& os, const AggregationCriterion<T>& criterion)
    \n-
    114 {
    \n-
    115 os<<"{ maxdistance="<<criterion.maxDistance()<<" minAggregateSize="
    \n-
    116 <<criterion.minAggregateSize()<< " maxAggregateSize="<<criterion.maxAggregateSize()
    \n-
    117 <<" connectivity="<<criterion.maxConnectivity()<<" debugLevel="<<criterion.debugLevel()<<"}";
    \n-
    118 return os;
    \n-
    119 }
    \n-
    \n-
    120
    \n-
    132 template<class M, class N>
    \n-
    \n-\n-
    134 {
    \n-
    135 public:
    \n-
    139 typedef M Matrix;
    \n-
    140
    \n-
    144 typedef N Norm;
    \n-
    145
    \n-
    149 typedef typename Matrix::row_type Row;
    \n-
    150
    \n-\n-
    155
    \n-
    156 void init(const Matrix* matrix);
    \n-
    157
    \n-
    158 void initRow(const Row& row, int index);
    \n-
    159
    \n-
    160 void examine(const ColIter& col);
    \n-
    161
    \n-
    162 template<class G>
    \n-
    163 void examine(G& graph, const typename G::EdgeIterator& edge, const ColIter& col);
    \n-
    164
    \n-
    165 bool isIsolated();
    \n-
    166
    \n-
    167
    \n-
    \n-\n-
    169 : Parameters(parms)
    \n-
    170 {}
    \n-
    \n-
    \n-\n-
    172 : Parameters()
    \n-
    173 {}
    \n-
    \n-
    174
    \n-
    175 protected:
    \n-\n-\n-
    180 typedef typename FieldTraits<field_type>::real_type real_type;
    \n-\n-\n-
    185 int row_;
    \n-\n-
    188 std::vector<real_type> vals_;
    \n-
    189 typename std::vector<real_type>::iterator valIter_;
    \n-
    190
    \n-
    191 };
    \n-
    \n-
    192
    \n-
    193
    \n-
    194 template<class M, class N>
    \n-
    \n-\n-
    196 {
    \n-
    197 matrix_ = matrix;
    \n-
    198 }
    \n+
    61 template<class M>
    \n+
    \n+\n+
    63 {
    \n+
    64 public:
    \n+
    70 SparsityBuilder(M& matrix);
    \n+
    71
    \n+
    72 void insert(const typename M::size_type& index);
    \n+
    73
    \n+
    74 void operator++();
    \n+
    75
    \n+
    76 std::size_t minRowSize();
    \n+
    77
    \n+
    78 std::size_t maxRowSize();
    \n+
    79
    \n+
    80 std::size_t sumRowSize();
    \n+
    \n+
    81 std::size_t index()
    \n+
    82 {
    \n+
    83 return row_.index();
    \n+
    84 }
    \n+
    \n+
    85 private:
    \n+
    87 typename M::CreateIterator row_;
    \n+
    89 std::size_t minRowSize_;
    \n+
    91 std::size_t maxRowSize_;
    \n+
    92 std::size_t sumRowSize_;
    \n+
    93#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    94 bool diagonalInserted;
    \n+
    95#endif
    \n+
    96 };
    \n+
    \n+
    97
    \n+
    \n+\n+
    99 {
    \n+
    100 public:
    \n+
    109 template<class M, class V, class I, class O>
    \n+
    110 void calculate(const M& fine, const AggregatesMap<V>& aggregates, M& coarse,
    \n+
    111 const I& pinfo, const O& copy);
    \n+
    112
    \n+
    113 };
    \n+
    \n+
    114
    \n+
    115 template<class T>
    \n+
    \n+\n+
    117 : public BaseGalerkinProduct
    \n+
    118 {
    \n+
    119 public:
    \n+\n+
    121
    \n+
    131 template<class G, class V, class Set>
    \n+
    132 typename G::MutableMatrix* build(G& fineGraph, V& visitedMap,
    \n+
    133 const ParallelInformation& pinfo,
    \n+\n+
    135 const typename G::Matrix::size_type& size,
    \n+
    136 const Set& copy);
    \n+
    137 private:
    \n+
    138
    \n+
    145 template<class G, class I, class Set>
    \n+\n+
    147 buildOverlapVertices(const G& graph, const I& pinfo,
    \n+\n+
    149 const Set& overlap,
    \n+
    150 std::size_t& overlapCount);
    \n+
    151
    \n+
    152 template<class A>
    \n+
    153 struct OVLess
    \n+
    154 {
    \n+
    \n+\n+
    156 {
    \n+
    157 return *o1.aggregate < *o2.aggregate;
    \n+
    158 }
    \n
    \n-
    199
    \n-
    200 template<class M, class N>
    \n-
    \n-
    201 inline void SymmetricMatrixDependency<M,N>::initRow(const Row& row, int index)
    \n-
    202 {
    \n-
    203 using std::min;
    \n-
    204 vals_.assign(row.size(), 0.0);
    \n-
    205 assert(vals_.size()==row.size());
    \n-
    206 valIter_=vals_.begin();
    \n-
    207
    \n-
    208 maxValue_ = min(- std::numeric_limits<real_type>::max(), std::numeric_limits<real_type>::min());
    \n-
    209 diagonal_=norm_(row[index]);
    \n-
    210 row_ = index;
    \n-
    211 }
    \n-
    \n-
    212
    \n-
    213 template<class M, class N>
    \n-
    \n-\n-
    215 {
    \n-
    216 using std::max;
    \n-
    217 // skip positive offdiagonals if norm preserves sign of them.
    \n-
    218 real_type eij = norm_(*col);
    \n-
    219 if(!N::is_sign_preserving || eij<0) // || eji<0)
    \n-
    220 {
    \n-
    221 *valIter_ = eij/diagonal_*eij/norm_(matrix_->operator[](col.index())[col.index()]);
    \n-
    222 maxValue_ = max(maxValue_, *valIter_);
    \n-
    223 }else
    \n-
    224 *valIter_ =0;
    \n-
    225 ++valIter_;
    \n-
    226 }
    \n-
    \n-
    227
    \n-
    228 template<class M, class N>
    \n-
    229 template<class G>
    \n-
    \n-
    230 inline void SymmetricMatrixDependency<M,N>::examine(G&, const typename G::EdgeIterator& edge, const ColIter&)
    \n-
    231 {
    \n-
    232 if(*valIter_ > alpha() * maxValue_) {
    \n-
    233 edge.properties().setDepends();
    \n-
    234 edge.properties().setInfluences();
    \n-
    235 }
    \n-
    236 ++valIter_;
    \n-
    237 }
    \n-
    \n-
    238
    \n-
    239 template<class M, class N>
    \n-
    \n-\n-
    241 {
    \n-
    242 if(diagonal_==0)
    \n-
    243 DUNE_THROW(Dune::ISTLError, "No diagonal entry for row "<<row_<<".");
    \n-
    244 valIter_=vals_.begin();
    \n-
    245 return maxValue_ < beta();
    \n-
    246 }
    \n+
    159 };
    \n+
    160 };
    \n
    \n+
    161
    \n+
    162 template<>
    \n+
    \n+\n+
    164 : public BaseGalerkinProduct
    \n+
    165 {
    \n+
    166 public:
    \n+
    176 template<class G, class V, class Set>
    \n+
    177 typename G::MutableMatrix* build(G& fineGraph, V& visitedMap,
    \n+
    178 const SequentialInformation& pinfo,
    \n+\n+
    180 const typename G::Matrix::size_type& size,
    \n+
    181 const Set& copy);
    \n+
    182 };
    \n+
    \n+
    183
    \n+
    \n+\n+
    185 {
    \n+
    186 template<class R, class G, class V>
    \n+
    187 static void constructOverlapConnectivity(R& row, G& graph, V& visitedMap,
    \n+\n+\n+\n+
    191
    \n+
    195 template<class R, class G, class V>
    \n+
    196 static void constructNonOverlapConnectivity(R& row, G& graph, V& visitedMap,
    \n+\n+
    198 const typename G::VertexDescriptor& seed);
    \n+
    199
    \n+
    200
    \n+
    204 template<class G, class S, class V>
    \n+
    \n+\n+
    206 {
    \n+
    207 public:
    \n+
    211 typedef G Graph;
    \n+
    215 typedef typename Graph::ConstEdgeIterator ConstEdgeIterator;
    \n+
    216
    \n+
    220 typedef S Set;
    \n+
    221
    \n+
    225 typedef V VisitedMap;
    \n+
    226
    \n+
    230 typedef typename Graph::VertexDescriptor Vertex;
    \n+
    231
    \n+
    239 ConnectedBuilder(const AggregatesMap<Vertex>& aggregates, Graph& graph,
    \n+
    240 VisitedMap& visitedMap, Set& connected);
    \n+
    241
    \n+
    246 void operator()(const ConstEdgeIterator& edge);
    \n
    247
    \n-
    251 template<class M, class N>
    \n-
    \n-
    252 class Dependency : public Parameters
    \n-
    253 {
    \n-
    254 public:
    \n-
    258 typedef M Matrix;
    \n-
    259
    \n-
    263 typedef N Norm;
    \n-
    264
    \n-
    268 typedef typename Matrix::row_type Row;
    \n-
    269
    \n-\n-
    274
    \n-
    275 void init(const Matrix* matrix);
    \n-
    276
    \n-
    277 void initRow(const Row& row, int index);
    \n-
    278
    \n-
    279 void examine(const ColIter& col);
    \n-
    280
    \n-
    281 template<class G>
    \n-
    282 void examine(G& graph, const typename G::EdgeIterator& edge, const ColIter& col);
    \n-
    283
    \n-\n-
    285
    \n-
    \n-
    286 Dependency(const Parameters& parms)
    \n-
    287 : Parameters(parms)
    \n-
    288 {}
    \n-
    \n+
    248 private:
    \n+
    252 const AggregatesMap<Vertex>& aggregates_;
    \n+
    253
    \n+
    254 Graph& graph_;
    \n+
    255
    \n+
    259 VisitedMap& visitedMap_;
    \n+
    260
    \n+
    264 Set& connected_;
    \n+
    265 };
    \n+
    \n+
    266
    \n+
    267 };
    \n+
    \n+
    268
    \n+
    269 template<class G, class T>
    \n+
    \n+\n+
    271 {
    \n+
    272 typedef typename G::VertexDescriptor Vertex;
    \n+
    273
    \n+
    274 template<class V, class O, class R>
    \n+
    275 static void examine(G& graph,
    \n+
    276 V& visitedMap,
    \n+
    277 const T& pinfo,
    \n+
    278 const AggregatesMap<Vertex>& aggregates,
    \n+
    279 const O& overlap,
    \n+
    280 const OverlapVertex<Vertex>* overlapVertices,
    \n+
    281 const OverlapVertex<Vertex>* overlapEnd,
    \n+
    282 R& row);
    \n+
    283 };
    \n+
    \n+
    284
    \n+
    285 template<class G>
    \n+
    \n+\n+
    287 {
    \n+
    288 typedef typename G::VertexDescriptor Vertex;
    \n
    289
    \n-
    \n-\n-
    291 : Parameters()
    \n-
    292 {}
    \n-
    \n-
    293
    \n-
    294 protected:
    \n-\n-\n-
    299 typedef typename FieldTraits<field_type>::real_type real_type;
    \n-\n-\n-
    304 int row_;
    \n-\n-
    307 };
    \n-
    \n-
    308
    \n-
    312 template<class M, class N>
    \n-
    \n-\n-
    314 {
    \n-
    315 public:
    \n-
    319 typedef M Matrix;
    \n-
    320
    \n-
    324 typedef N Norm;
    \n-
    325
    \n-
    329 typedef typename Matrix::row_type Row;
    \n-
    330
    \n-\n-
    335
    \n-
    336 void init(const Matrix* matrix);
    \n-
    337
    \n-
    338 void initRow(const Row& row, int index);
    \n-
    339
    \n-
    340 void examine(const ColIter& col);
    \n-
    341
    \n-
    342 template<class G>
    \n-
    343 void examine(G& graph, const typename G::EdgeIterator& edge, const ColIter& col);
    \n-
    344
    \n-\n-
    346
    \n-
    347
    \n-
    \n-\n-
    349 : Parameters(parms)
    \n-
    350 {}
    \n-
    \n-
    \n-\n-
    352 : Parameters()
    \n-
    353 {}
    \n-
    \n-
    354
    \n-
    355 protected:
    \n-\n-\n-
    360 typedef typename FieldTraits<field_type>::real_type real_type;
    \n-\n-\n-
    365 int row_;
    \n-\n-
    368 private:
    \n-
    369 void initRow(const Row& row, int index, const std::true_type&);
    \n-
    370 void initRow(const Row& row, int index, const std::false_type&);
    \n-
    371 };
    \n-
    \n-
    372
    \n-
    377 template<int N>
    \n-
    \n-\n-
    379 {
    \n-
    380 public:
    \n-
    381 enum { /* @brief We preserve the sign.*/
    \n-
    382 is_sign_preserving = true
    \n-
    383 };
    \n+
    290 template<class V, class R>
    \n+
    291 static void examine(G& graph,
    \n+
    292 V& visitedMap,
    \n+
    293 const SequentialInformation& pinfo,
    \n+
    294 const AggregatesMap<Vertex>& aggregates,
    \n+
    295 R& row);
    \n+
    296 };
    \n+
    \n+
    297
    \n+
    298 template<class T>
    \n+
    \n+\n+
    300 {
    \n+
    301 template<class M, class O>
    \n+
    302 static void set(M& coarse, const T& pinfo, const O& copy);
    \n+
    303 };
    \n+
    \n+
    304
    \n+
    305 template<>
    \n+
    \n+\n+
    307 {
    \n+
    308 template<class M, class O>
    \n+
    309 static void set(M& coarse, const SequentialInformation& pinfo, const O& copy);
    \n+
    310 };
    \n+
    \n+
    311
    \n+
    312 template<class R, class G, class V>
    \n+
    \n+\n+\n+
    315 const typename G::VertexDescriptor& seed)
    \n+
    316 {
    \n+
    317 assert(row.index()==aggregates[seed]);
    \n+
    318 row.insert(aggregates[seed]);
    \n+
    319 ConnectedBuilder<G,R,V> conBuilder(aggregates, graph, visitedMap, row);
    \n+
    320 typedef typename G::VertexDescriptor Vertex;
    \n+
    321 typedef std::allocator<Vertex> Allocator;
    \n+
    322 typedef SLList<Vertex,Allocator> VertexList;
    \n+
    323 typedef typename AggregatesMap<Vertex>::DummyEdgeVisitor DummyVisitor;
    \n+
    324 VertexList vlist;
    \n+
    325 DummyVisitor dummy;
    \n+
    326 aggregates.template breadthFirstSearch<true,false>(seed,aggregates[seed], graph, vlist, dummy,
    \n+
    327 conBuilder, visitedMap);
    \n+
    328 }
    \n+
    \n+
    329
    \n+
    330 template<class R, class G, class V>
    \n+
    \n+\n+\n+\n+\n+
    335 {
    \n+
    336 ConnectedBuilder<G,R,V> conBuilder(aggregates, graph, visitedMap, row);
    \n+
    337 const typename G::VertexDescriptor aggregate=*seed->aggregate;
    \n+
    338
    \n+
    339 if (row.index()==*seed->aggregate) {
    \n+
    340 while(seed != overlapEnd && aggregate == *seed->aggregate) {
    \n+
    341 row.insert(*seed->aggregate);
    \n+
    342 // Walk over all neighbours and add them to the connected array.
    \n+
    343 visitNeighbours(graph, seed->vertex, conBuilder);
    \n+
    344 // Mark vertex as visited
    \n+
    345 put(visitedMap, seed->vertex, true);
    \n+
    346 ++seed;
    \n+
    347 }
    \n+
    348 }
    \n+
    349 }
    \n+
    \n+
    350
    \n+
    351 template<class G, class S, class V>
    \n+
    \n+\n+
    353 Graph& graph, VisitedMap& visitedMap,
    \n+
    354 Set& connected)
    \n+
    355 : aggregates_(aggregates), graph_(graph), visitedMap_(visitedMap), connected_(connected)
    \n+
    356 {}
    \n+
    \n+
    357
    \n+
    358 template<class G, class S, class V>
    \n+
    \n+\n+
    360 {
    \n+
    361 const Vertex& vertex = aggregates_[edge.target()];
    \n+\n+\n+
    364 connected_.insert(vertex);
    \n+
    365 }
    \n+
    \n+
    366
    \n+
    367 template<class T>
    \n+
    368 template<class G, class I, class Set>
    \n+\n+
    370 GalerkinProduct<T>::buildOverlapVertices(const G& graph, const I& pinfo,
    \n+\n+
    372 const Set& overlap,
    \n+
    373 std::size_t& overlapCount)
    \n+
    374 {
    \n+
    375 // count the overlap vertices.
    \n+
    376 typedef typename G::ConstVertexIterator ConstIterator;
    \n+
    377 typedef typename I::GlobalLookupIndexSet GlobalLookup;
    \n+
    378 typedef typename GlobalLookup::IndexPair IndexPair;
    \n+
    379
    \n+
    380 const ConstIterator end = graph.end();
    \n+
    381 overlapCount = 0;
    \n+
    382
    \n+
    383 const GlobalLookup& lookup=pinfo.globalLookup();
    \n
    384
    \n-
    389 template<class M>
    \n-
    \n-
    390 typename FieldTraits<typename M::field_type>::real_type operator()(const M& m,
    \n-
    391 [[maybe_unused]] typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr) const
    \n-
    392 {
    \n-
    393 typedef typename M::field_type field_type;
    \n-
    394 typedef typename FieldTraits<field_type>::real_type real_type;
    \n-
    395 static_assert( std::is_convertible<field_type, real_type >::value,
    \n-
    396 "use of diagonal norm in AMG not implemented for complex field_type");
    \n-
    397 return m[N][N];
    \n-
    398 // possible implementation for complex types: return signed_abs(m[N][N]);
    \n-
    399 }
    \n-
    \n-
    400
    \n-
    405 template<class M>
    \n-
    \n-
    406 auto operator()(const M& m,
    \n-
    407 typename std::enable_if_t<Dune::IsNumber<M>::value>* sfinae = nullptr) const
    \n-
    408 {
    \n-
    409 typedef typename FieldTraits<M>::real_type real_type;
    \n-
    410 static_assert( std::is_convertible<M, real_type >::value,
    \n-
    411 "use of diagonal norm in AMG not implemented for complex field_type");
    \n-
    412 return m;
    \n-
    413 // possible implementation for complex types: return signed_abs(m[N][N]);
    \n-
    414 }
    \n-
    \n-
    415
    \n-
    416 private:
    \n+
    385 for(ConstIterator vertex=graph.begin(); vertex != end; ++vertex) {
    \n+
    386 const IndexPair* pair = lookup.pair(*vertex);
    \n+
    387
    \n+
    388 if(pair!=0 && overlap.contains(pair->local().attribute()))
    \n+
    389 ++overlapCount;
    \n+
    390 }
    \n+
    391 // Allocate space
    \n+
    392 typedef typename G::VertexDescriptor Vertex;
    \n+
    393
    \n+
    394 OverlapVertex<Vertex>* overlapVertices = new OverlapVertex<Vertex>[overlapCount=0 ? 1 : overlapCount];
    \n+
    395 if(overlapCount==0)
    \n+
    396 return overlapVertices;
    \n+
    397
    \n+
    398 // Initialize them
    \n+
    399 overlapCount=0;
    \n+
    400 for(ConstIterator vertex=graph.begin(); vertex != end; ++vertex) {
    \n+
    401 const IndexPair* pair = lookup.pair(*vertex);
    \n+
    402
    \n+
    403 if(pair!=0 && overlap.contains(pair->local().attribute())) {
    \n+
    404 overlapVertices[overlapCount].aggregate = &aggregates[pair->local()];
    \n+
    405 overlapVertices[overlapCount].vertex = pair->local();
    \n+
    406 ++overlapCount;
    \n+
    407 }
    \n+
    408 }
    \n+
    409
    \n+
    410 dverb << overlapCount<<" overlap vertices"<<std::endl;
    \n+
    411
    \n+
    412 std::sort(overlapVertices, overlapVertices+overlapCount, OVLess<Vertex>());
    \n+
    413 // due to the sorting the isolated aggregates (to be skipped) are at the end.
    \n+
    414
    \n+
    415 return overlapVertices;
    \n+
    416 }
    \n
    417
    \n-
    419 template<typename T>
    \n-
    420 static T signed_abs(const T & v)
    \n-
    421 {
    \n-
    422 return v;
    \n-
    423 }
    \n-
    424
    \n-
    426 template<typename T>
    \n-
    427 static T signed_abs(const std::complex<T> & v)
    \n-
    428 {
    \n-
    429 // return sign * abs_value
    \n-
    430 // in case of complex numbers this extends to using the csgn function to determine the sign
    \n-
    431 return csgn(v) * std::abs(v);
    \n-
    432 }
    \n+
    418 template<class G, class T>
    \n+
    419 template<class V, class O, class R>
    \n+
    \n+\n+
    421 V& visitedMap,
    \n+
    422 const T& pinfo,
    \n+
    423 const AggregatesMap<Vertex>& aggregates,
    \n+
    424 const O& overlap,
    \n+
    425 const OverlapVertex<Vertex>* overlapVertices,
    \n+
    426 const OverlapVertex<Vertex>* overlapEnd,
    \n+
    427 R& row)
    \n+
    428 {
    \n+
    429 typedef typename T::GlobalLookupIndexSet GlobalLookup;
    \n+
    430 const GlobalLookup& lookup = pinfo.globalLookup();
    \n+
    431
    \n+
    432 typedef typename G::VertexIterator VertexIterator;
    \n
    433
    \n-
    435 template<typename T>
    \n-
    436 static T csgn(const T & v)
    \n-
    437 {
    \n-
    438 return (T(0) < v) - (v < T(0));
    \n-
    439 }
    \n-
    440
    \n-
    442 template<typename T>
    \n-
    443 static T csgn(std::complex<T> a)
    \n-
    444 {
    \n-
    445 return csgn(a.real())+(a.real() == 0.0)*csgn(a.imag());
    \n-
    446 }
    \n-
    447
    \n-
    448 };
    \n-
    \n-
    449
    \n-
    \n-
    454 class FirstDiagonal : public Diagonal<0>
    \n-
    455 {};
    \n-
    \n-
    456
    \n-
    \n-
    462 struct RowSum
    \n-
    463 {
    \n-
    464
    \n-
    465 enum { /* @brief We preserve the sign.*/
    \n-
    466 is_sign_preserving = false
    \n-
    467 };
    \n-
    472 template<class M>
    \n-
    \n-
    473 typename FieldTraits<typename M::field_type>::real_type operator()(const M& m) const
    \n-
    474 {
    \n-
    475 return m.infinity_norm();
    \n-
    476 }
    \n-
    \n-
    477 };
    \n-
    \n-
    478
    \n-
    \n-\n-
    480 {
    \n-
    481
    \n-
    482 enum { /* @brief We preserve the sign.*/
    \n-
    483 is_sign_preserving = false
    \n-
    484 };
    \n-
    489 template<class M>
    \n-
    \n-
    490 typename FieldTraits<typename M::field_type>::real_type operator()(const M& m) const
    \n-
    491 {
    \n-
    492 return m.frobenius_norm();
    \n-
    493 }
    \n-
    \n-
    494 };
    \n-
    \n-
    \n-\n-
    496 {
    \n-
    497
    \n-
    498 enum { /* @brief We preserve the sign.*/
    \n-
    499 is_sign_preserving = false
    \n-
    500 };
    \n-
    505 template<class M>
    \n-
    \n-
    506 typename FieldTraits<typename M::field_type>::real_type operator()(const M& m) const
    \n-
    507 {
    \n-
    508 return 1;
    \n-
    509 }
    \n-
    \n-
    510 };
    \n-
    \n-
    517 template<class M, class Norm>
    \n-
    \n-
    518 class SymmetricCriterion : public AggregationCriterion<SymmetricDependency<M,Norm> >
    \n-
    519 {
    \n-
    520 public:
    \n-
    \n-\n-\n-
    523 {}
    \n-
    \n-
    \n-\n-
    525 {}
    \n-
    \n-
    526 };
    \n-
    \n-
    527
    \n-
    528
    \n-
    537 template<class M, class Norm>
    \n-
    \n-
    538 class UnSymmetricCriterion : public AggregationCriterion<Dependency<M,Norm> >
    \n-
    539 {
    \n-
    540 public:
    \n-
    \n-\n-\n-
    543 {}
    \n-
    \n-
    \n-\n-
    545 {}
    \n-
    \n-
    546 };
    \n-
    \n-
    547 // forward declaration
    \n-
    548 template<class G> class Aggregator;
    \n-
    549
    \n+
    434 VertexIterator vend=graph.end();
    \n+
    435
    \n+
    436#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    437 std::set<Vertex> examined;
    \n+
    438#endif
    \n+
    439
    \n+
    440 // The aggregates owned by the process have lower local indices
    \n+
    441 // then those not owned. We process them in the first pass.
    \n+
    442 // They represent the rows 0, 1, ..., n of the coarse matrix
    \n+
    443 for(VertexIterator vertex = graph.begin(); vertex != vend; ++vertex)
    \n+
    444 if(!get(visitedMap, *vertex)) {
    \n+
    445 // In the first pass we only process owner nodes
    \n+
    446 typedef typename GlobalLookup::IndexPair IndexPair;
    \n+
    447 const IndexPair* pair = lookup.pair(*vertex);
    \n+
    448 if(pair==0 || !overlap.contains(pair->local().attribute())) {
    \n+
    449#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    450 assert(examined.find(aggregates[*vertex])==examined.end());
    \n+
    451 examined.insert(aggregates[*vertex]);
    \n+
    452#endif
    \n+
    453 constructNonOverlapConnectivity(row, graph, visitedMap, aggregates, *vertex);
    \n+
    454
    \n+
    455 // only needed for ALU
    \n+
    456 // (ghosts with same global id as owners on the same process)
    \n+
    457 if (SolverCategory::category(pinfo) == static_cast<int>(SolverCategory::nonoverlapping)) {
    \n+
    458 if(overlapVertices != overlapEnd) {
    \n+
    459 if(*overlapVertices->aggregate!=AggregatesMap<Vertex>::ISOLATED) {
    \n+
    460 constructOverlapConnectivity(row, graph, visitedMap, aggregates, overlapVertices, overlapEnd);
    \n+
    461 }
    \n+
    462 else{
    \n+
    463 ++overlapVertices;
    \n+
    464 }
    \n+
    465 }
    \n+
    466 }
    \n+
    467 ++row;
    \n+
    468 }
    \n+
    469 }
    \n+
    470
    \n+
    471 dvverb<<"constructed "<<row.index()<<" non-overlapping rows"<<std::endl;
    \n+
    472
    \n+
    473 // Now come the aggregates not owned by use.
    \n+
    474 // They represent the rows n+1, ..., N
    \n+
    475 while(overlapVertices != overlapEnd)
    \n+
    476 if(*overlapVertices->aggregate!=AggregatesMap<Vertex>::ISOLATED) {
    \n+
    477
    \n+
    478#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    479 typedef typename GlobalLookup::IndexPair IndexPair;
    \n+
    480 const IndexPair* pair = lookup.pair(overlapVertices->vertex);
    \n+
    481 assert(pair!=0 && overlap.contains(pair->local().attribute()));
    \n+
    482 assert(examined.find(aggregates[overlapVertices->vertex])==examined.end());
    \n+
    483 examined.insert(aggregates[overlapVertices->vertex]);
    \n+
    484#endif
    \n+
    485 constructOverlapConnectivity(row, graph, visitedMap, aggregates, overlapVertices, overlapEnd);
    \n+
    486 ++row;
    \n+
    487 }else{
    \n+
    488 ++overlapVertices;
    \n+
    489 }
    \n+
    490 }
    \n+
    \n+
    491
    \n+
    492 template<class G>
    \n+
    493 template<class V, class R>
    \n+
    \n+\n+
    495 V& visitedMap,
    \n+
    496 [[maybe_unused]] const SequentialInformation& pinfo,
    \n+
    497 const AggregatesMap<Vertex>& aggregates,
    \n+
    498 R& row)
    \n+
    499 {
    \n+
    500 typedef typename G::VertexIterator VertexIterator;
    \n+
    501
    \n+
    502 VertexIterator vend=graph.end();
    \n+
    503 for(VertexIterator vertex = graph.begin(); vertex != vend; ++vertex) {
    \n+
    504 if(!get(visitedMap, *vertex)) {
    \n+
    505 constructNonOverlapConnectivity(row, graph, visitedMap, aggregates, *vertex);
    \n+
    506 ++row;
    \n+
    507 }
    \n+
    508 }
    \n+
    509
    \n+
    510 }
    \n+
    \n+
    511
    \n+
    512 template<class M>
    \n+
    \n+\n+
    514 : row_(matrix.createbegin()),
    \n+
    515 minRowSize_(std::numeric_limits<std::size_t>::max()),
    \n+
    516 maxRowSize_(0), sumRowSize_(0)
    \n+
    517 {
    \n+
    518#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    519 diagonalInserted = false;
    \n+
    520#endif
    \n+
    521 }
    \n+
    \n+
    522 template<class M>
    \n+
    \n+\n+
    524 {
    \n+
    525 return maxRowSize_;
    \n+
    526 }
    \n+
    \n+
    527 template<class M>
    \n+
    \n+\n+
    529 {
    \n+
    530 return minRowSize_;
    \n+
    531 }
    \n+
    \n+
    532
    \n+
    533 template<class M>
    \n+
    \n+\n+
    535 {
    \n+
    536 return sumRowSize_;
    \n+
    537 }
    \n+
    \n+
    538 template<class M>
    \n+
    \n+\n+
    540 {
    \n+
    541 sumRowSize_ += row_.size();
    \n+
    542 minRowSize_=std::min(minRowSize_, row_.size());
    \n+
    543 maxRowSize_=std::max(maxRowSize_, row_.size());
    \n+
    544 ++row_;
    \n+
    545#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    546 assert(diagonalInserted);
    \n+
    547 diagonalInserted = false;
    \n+
    548#endif
    \n+
    549 }
    \n+
    \n
    550
    \n-
    558 template<class V>
    \n-
    \n-\n-
    560 {
    \n-
    561 public:
    \n-
    562
    \n-
    566 static const V UNAGGREGATED;
    \n-
    567
    \n-
    571 static const V ISOLATED;
    \n-\n-
    576
    \n-\n-
    581
    \n-
    586 typedef PoolAllocator<VertexDescriptor,100> Allocator;
    \n-
    587
    \n-
    592 typedef SLList<VertexDescriptor,Allocator> VertexList;
    \n+
    551 template<class M>
    \n+
    \n+
    552 void SparsityBuilder<M>::insert(const typename M::size_type& index)
    \n+
    553 {
    \n+
    554 row_.insert(index);
    \n+
    555#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    556 diagonalInserted = diagonalInserted || row_.index()==index;
    \n+
    557#endif
    \n+
    558 }
    \n+
    \n+
    559
    \n+
    560 template<class T>
    \n+
    561 template<class G, class V, class Set>
    \n+
    562 typename G::MutableMatrix*
    \n+
    \n+
    563 GalerkinProduct<T>::build(G& fineGraph, V& visitedMap,
    \n+
    564 const ParallelInformation& pinfo,
    \n+\n+
    566 const typename G::Matrix::size_type& size,
    \n+
    567 const Set& overlap)
    \n+
    568 {
    \n+\n+
    570
    \n+
    571 std::size_t count;
    \n+
    572
    \n+
    573 const OverlapVertex* overlapVertices = buildOverlapVertices(fineGraph,
    \n+
    574 pinfo,
    \n+
    575 aggregates,
    \n+
    576 overlap,
    \n+
    577 count);
    \n+
    578 typedef typename G::MutableMatrix M;
    \n+
    579 M* coarseMatrix = new M(size, size, M::row_wise);
    \n+
    580
    \n+
    581 // Reset the visited flags of all vertices.
    \n+
    582 // As the isolated nodes will be skipped we simply mark them as visited
    \n+
    583
    \n+
    584 typedef typename G::VertexIterator Vertex;
    \n+
    585 Vertex vend = fineGraph.end();
    \n+
    586 for(Vertex vertex = fineGraph.begin(); vertex != vend; ++vertex) {
    \n+\n+
    588 put(visitedMap, *vertex, aggregates[*vertex]==AggregatesMap<typename G::VertexDescriptor>::ISOLATED);
    \n+
    589 }
    \n+
    590
    \n+
    591 typedef typename G::MutableMatrix M;
    \n+
    592 SparsityBuilder<M> sparsityBuilder(*coarseMatrix);
    \n
    593
    \n-
    \n-\n-
    598 {
    \n-
    599 public:
    \n-
    600 template<class EdgeIterator>
    \n-
    \n-
    601 void operator()([[maybe_unused]] const EdgeIterator& edge) const
    \n-
    602 {}
    \n-
    \n-
    603 };
    \n-
    \n+
    594 ConnectivityConstructor<G,T>::examine(fineGraph, visitedMap, pinfo,
    \n+
    595 aggregates, overlap,
    \n+
    596 overlapVertices,
    \n+
    597 overlapVertices+count,
    \n+
    598 sparsityBuilder);
    \n+
    599
    \n+
    600 dinfo<<pinfo.communicator().rank()<<": Matrix ("<<coarseMatrix->N()<<"x"<<coarseMatrix->M()<<" row: min="<<sparsityBuilder.minRowSize()<<" max="
    \n+
    601 <<sparsityBuilder.maxRowSize()<<" avg="
    \n+
    602 <<static_cast<double>(sparsityBuilder.sumRowSize())/coarseMatrix->N()
    \n+
    603 <<std::endl;
    \n
    604
    \n-
    605
    \n-\n-
    610
    \n-\n-
    617
    \n-\n-
    622
    \n-
    634 template<class M, class G, class C>
    \n-
    635 std::tuple<int,int,int,int> buildAggregates(const M& matrix, G& graph, const C& criterion,
    \n-
    636 bool finestLevel);
    \n-
    637
    \n-
    655 template<bool reset, class G, class F, class VM>
    \n-
    656 std::size_t breadthFirstSearch(const VertexDescriptor& start,
    \n-
    657 const AggregateDescriptor& aggregate,
    \n-
    658 const G& graph,
    \n-
    659 F& aggregateVisitor,
    \n-
    660 VM& visitedMap) const;
    \n-
    661
    \n-
    685 template<bool remove, bool reset, class G, class L, class F1, class F2, class VM>
    \n-
    686 std::size_t breadthFirstSearch(const VertexDescriptor& start,
    \n-
    687 const AggregateDescriptor& aggregate,
    \n-
    688 const G& graph, L& visited, F1& aggregateVisitor,
    \n-
    689 F2& nonAggregateVisitor,
    \n-
    690 VM& visitedMap) const;
    \n-
    691
    \n-
    697 void allocate(std::size_t noVertices);
    \n-
    698
    \n-
    702 std::size_t noVertices() const;
    \n+
    605 delete[] overlapVertices;
    \n+
    606
    \n+
    607 return coarseMatrix;
    \n+
    608 }
    \n+
    \n+
    609
    \n+
    610 template<class G, class V, class Set>
    \n+
    611 typename G::MutableMatrix*
    \n+
    \n+\n+
    613 const SequentialInformation& pinfo,
    \n+\n+
    615 const typename G::Matrix::size_type& size,
    \n+
    616 [[maybe_unused]] const Set& overlap)
    \n+
    617 {
    \n+
    618 typedef typename G::MutableMatrix M;
    \n+
    619 M* coarseMatrix = new M(size, size, M::row_wise);
    \n+
    620
    \n+
    621 // Reset the visited flags of all vertices.
    \n+
    622 // As the isolated nodes will be skipped we simply mark them as visited
    \n+
    623
    \n+
    624 typedef typename G::VertexIterator Vertex;
    \n+
    625 Vertex vend = fineGraph.end();
    \n+
    626 for(Vertex vertex = fineGraph.begin(); vertex != vend; ++vertex) {
    \n+\n+
    628 put(visitedMap, *vertex, aggregates[*vertex]==AggregatesMap<typename G::VertexDescriptor>::ISOLATED);
    \n+
    629 }
    \n+
    630
    \n+
    631 SparsityBuilder<M> sparsityBuilder(*coarseMatrix);
    \n+
    632
    \n+\n+
    634 aggregates, sparsityBuilder);
    \n+
    635 dinfo<<"Matrix row: min="<<sparsityBuilder.minRowSize()<<" max="
    \n+
    636 <<sparsityBuilder.maxRowSize()<<" average="
    \n+
    637 <<static_cast<double>(sparsityBuilder.sumRowSize())/coarseMatrix->N()<<std::endl;
    \n+
    638 return coarseMatrix;
    \n+
    639 }
    \n+
    \n+
    640
    \n+
    641 template<class M, class V, class P, class O>
    \n+
    \n+
    642 void BaseGalerkinProduct::calculate(const M& fine, const AggregatesMap<V>& aggregates, M& coarse,
    \n+
    643 const P& pinfo, [[maybe_unused]] const O& copy)
    \n+
    644 {
    \n+
    645 coarse = static_cast<typename M::field_type>(0);
    \n+
    646
    \n+
    647 typedef typename M::ConstIterator RowIterator;
    \n+
    648 RowIterator endRow = fine.end();
    \n+
    649
    \n+
    650 for(RowIterator row = fine.begin(); row != endRow; ++row)
    \n+
    651 if(aggregates[row.index()] != AggregatesMap<V>::ISOLATED) {
    \n+
    652 assert(aggregates[row.index()]!=AggregatesMap<V>::UNAGGREGATED);
    \n+
    653 typedef typename M::ConstColIterator ColIterator;
    \n+
    654 ColIterator endCol = row->end();
    \n+
    655
    \n+
    656 for(ColIterator col = row->begin(); col != endCol; ++col)
    \n+
    657 if(aggregates[col.index()] != AggregatesMap<V>::ISOLATED) {
    \n+
    658 assert(aggregates[row.index()]!=AggregatesMap<V>::UNAGGREGATED);
    \n+
    659 coarse[aggregates[row.index()]][aggregates[col.index()]]+=*col;
    \n+
    660 }
    \n+
    661 }
    \n+
    662
    \n+
    663 // get the right diagonal matrix values on copy lines from owner processes
    \n+
    664 typedef typename M::block_type BlockType;
    \n+
    665 std::vector<BlockType> rowsize(coarse.N(),BlockType(0));
    \n+
    666 for (RowIterator row = coarse.begin(); row != coarse.end(); ++row)
    \n+
    667 rowsize[row.index()]=coarse[row.index()][row.index()];
    \n+
    668 pinfo.copyOwnerToAll(rowsize,rowsize);
    \n+
    669 for (RowIterator row = coarse.begin(); row != coarse.end(); ++row)
    \n+
    670 coarse[row.index()][row.index()] = rowsize[row.index()];
    \n+
    671
    \n+
    672 // don't set dirichlet boundaries for copy lines to make novlp case work,
    \n+
    673 // the preconditioner yields slightly different results now.
    \n+
    674
    \n+
    675 // Set the dirichlet border
    \n+
    676 //DirichletBoundarySetter<P>::template set<M>(coarse, pinfo, copy);
    \n+
    677
    \n+
    678 }
    \n+
    \n+
    679
    \n+
    680 template<class T>
    \n+
    681 template<class M, class O>
    \n+
    \n+
    682 void DirichletBoundarySetter<T>::set(M& coarse, const T& pinfo, const O& copy)
    \n+
    683 {
    \n+
    684 typedef typename T::ParallelIndexSet::const_iterator ConstIterator;
    \n+
    685 ConstIterator end = pinfo.indexSet().end();
    \n+
    686 typedef typename M::block_type Block;
    \n+
    687 Block identity=Block(0.0);
    \n+
    688 for(typename Block::RowIterator b=identity.begin(); b != identity.end(); ++b)
    \n+
    689 b->operator[](b.index())=1.0;
    \n+
    690
    \n+
    691 for(ConstIterator index = pinfo.indexSet().begin();
    \n+
    692 index != end; ++index) {
    \n+
    693 if(copy.contains(index->local().attribute())) {
    \n+
    694 typedef typename M::ColIterator ColIterator;
    \n+
    695 typedef typename M::row_type Row;
    \n+
    696 Row row = coarse[index->local()];
    \n+
    697 ColIterator cend = row.find(index->local());
    \n+
    698 ColIterator col = row.begin();
    \n+
    699 for(; col != cend; ++col)
    \n+
    700 *col = 0;
    \n+
    701
    \n+
    702 cend = row.end();
    \n
    703
    \n-
    707 void free();
    \n-
    708
    \n-\n-
    715
    \n-\n-
    722
    \n-\n-
    724
    \n-
    \n-\n-
    726 {
    \n-
    727 return aggregates_;
    \n-
    728 }
    \n-
    \n-
    729
    \n-
    \n-\n-
    731 {
    \n-
    732 return aggregates_+noVertices();
    \n-
    733 }
    \n-
    \n-
    734
    \n-\n-
    736
    \n-
    \n-\n-
    738 {
    \n-
    739 return aggregates_;
    \n-
    740 }
    \n-
    \n-
    741
    \n-
    \n-\n-
    743 {
    \n-
    744 return aggregates_+noVertices();
    \n-
    745 }
    \n-
    \n-
    746 private:
    \n-
    748 AggregatesMap(const AggregatesMap<V>&) = delete;
    \n-
    750 AggregatesMap<V>& operator=(const AggregatesMap<V>&) = delete;
    \n-
    751
    \n-
    755 AggregateDescriptor* aggregates_;
    \n-
    756
    \n-
    760 std::size_t noVertices_;
    \n-
    761 };
    \n-
    \n-
    762
    \n-
    766 template<class G, class C>
    \n-
    767 void buildDependency(G& graph,
    \n-
    768 const typename C::Matrix& matrix,
    \n-
    769 C criterion,
    \n-
    770 bool finestLevel);
    \n-
    771
    \n-
    776 template<class G, class S>
    \n-
    \n-\n-
    778 {
    \n-
    779
    \n-
    780 public:
    \n-
    781
    \n-
    782 /***
    \n-
    783 * @brief The type of the matrix graph we work with.
    \n-
    784 */
    \n-
    785 typedef G MatrixGraph;
    \n-\n-
    790
    \n-
    795 typedef PoolAllocator<Vertex,100> Allocator;
    \n-
    796
    \n-
    801 typedef S VertexSet;
    \n-
    802
    \n-
    804 typedef typename VertexSet::const_iterator const_iterator;
    \n-
    805
    \n-
    809 typedef std::size_t* SphereMap;
    \n-
    810
    \n-\n-
    820 VertexSet& connectivity, std::vector<Vertex>& front_);
    \n-
    821
    \n-
    \n-\n-
    823 {
    \n-
    824 --id_;
    \n-
    825 }
    \n-
    \n-
    826
    \n-
    833 void reconstruct(const Vertex& vertex);
    \n-
    834
    \n-
    838 void seed(const Vertex& vertex);
    \n-
    839
    \n-
    843 void add(const Vertex& vertex);
    \n-
    844
    \n-
    845 void add(std::vector<Vertex>& vertex);
    \n-
    849 void clear();
    \n-
    850
    \n-
    854 typename VertexSet::size_type size();
    \n-
    858 typename VertexSet::size_type connectSize();
    \n-
    859
    \n-
    863 int id();
    \n-
    864
    \n-\n-
    867
    \n-\n-
    870
    \n-
    871 private:
    \n-
    875 VertexSet vertices_;
    \n-
    876
    \n-
    881 int id_;
    \n-
    882
    \n-
    886 MatrixGraph& graph_;
    \n-
    887
    \n-
    891 AggregatesMap<Vertex>& aggregates_;
    \n-
    892
    \n-
    896 VertexSet& connected_;
    \n-
    897
    \n-
    901 std::vector<Vertex>& front_;
    \n-
    902 };
    \n-
    \n-
    903
    \n-
    907 template<class G>
    \n-
    \n-\n-
    909 {
    \n-
    910 public:
    \n-
    911
    \n-
    915 typedef G MatrixGraph;
    \n-
    916
    \n-\n-
    921
    \n-\n-
    924
    \n-\n-
    929
    \n-\n-
    934
    \n-
    951 template<class M, class C>
    \n-
    952 std::tuple<int,int,int,int> build(const M& m, G& graph,
    \n-
    953 AggregatesMap<Vertex>& aggregates, const C& c,
    \n-
    954 bool finestLevel);
    \n-
    955 private:
    \n-
    960 typedef PoolAllocator<Vertex,100> Allocator;
    \n-
    961
    \n-
    965 typedef SLList<Vertex,Allocator> VertexList;
    \n-
    966
    \n-
    970 typedef std::set<Vertex,std::less<Vertex>,Allocator> VertexSet;
    \n-
    971
    \n-
    975 typedef std::size_t* SphereMap;
    \n-
    976
    \n-
    980 MatrixGraph* graph_;
    \n-
    981
    \n-\n-
    986
    \n-
    990 std::vector<Vertex> front_;
    \n-
    991
    \n-
    995 VertexSet connected_;
    \n-
    996
    \n-
    1000 int size_;
    \n-
    1001
    \n-
    1005 class Stack
    \n-
    1006 {
    \n-
    1007 public:
    \n-
    1008 static const Vertex NullEntry;
    \n-
    1009
    \n-
    1010 Stack(const MatrixGraph& graph,
    \n-
    1011 const Aggregator<G>& aggregatesBuilder,
    \n-
    1012 const AggregatesMap<Vertex>& aggregates);
    \n-\n-\n-
    1015 private:
    \n-
    1016 enum { N = 1300000 };
    \n-
    1017
    \n-
    1019 const MatrixGraph& graph_;
    \n-
    1021 const Aggregator<G>& aggregatesBuilder_;
    \n-
    1023 const AggregatesMap<Vertex>& aggregates_;
    \n-
    1025 int size_;
    \n-
    1026 Vertex maxSize_;
    \n-
    1028 typename MatrixGraph::ConstVertexIterator begin_;
    \n-\n-
    1030
    \n-
    1032 Vertex* vals_;
    \n-
    1033
    \n-
    1034 };
    \n-
    1035
    \n-
    1036 friend class Stack;
    \n-
    1037
    \n-
    1048 template<class V>
    \n-
    1049 void visitAggregateNeighbours(const Vertex& vertex, const AggregateDescriptor& aggregate,
    \n-
    1050 const AggregatesMap<Vertex>& aggregates,
    \n-
    1051 V& visitor) const;
    \n-
    1052
    \n-
    1057 template<class V>
    \n-
    1058 class AggregateVisitor
    \n-
    1059 {
    \n-
    1060 public:
    \n-
    1064 typedef V Visitor;
    \n-\n-
    1073 Visitor& visitor);
    \n-
    1074
    \n-
    1081 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n-
    1082
    \n-
    1083 private:
    \n-
    1085 const AggregatesMap<Vertex>& aggregates_;
    \n-
    1087 AggregateDescriptor aggregate_;
    \n-
    1089 Visitor* visitor_;
    \n-
    1090 };
    \n-
    1091
    \n-
    1095 class Counter
    \n-
    1096 {
    \n-
    1097 public:
    \n-\n-
    1101 int value();
    \n-
    1102
    \n-
    1103 protected:
    \n-\n-\n-
    1108
    \n-
    1109 private:
    \n-
    1110 int count_;
    \n-
    1111 };
    \n-
    1112
    \n-
    1113
    \n-
    1118 class FrontNeighbourCounter : public Counter
    \n-
    1119 {
    \n-
    1120 public:
    \n-\n-
    1126
    \n-
    1127 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n-
    1128
    \n-
    1129 private:
    \n-
    1130 const MatrixGraph& graph_;
    \n-
    1131 };
    \n-
    1132
    \n-
    1137 int noFrontNeighbours(const Vertex& vertex) const;
    \n-
    1138
    \n-
    1142 class TwoWayCounter : public Counter
    \n-
    1143 {
    \n-
    1144 public:
    \n-
    1145 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n-
    1146 };
    \n-
    1147
    \n-
    1159 int twoWayConnections(const Vertex&, const AggregateDescriptor& aggregate,
    \n-
    1160 const AggregatesMap<Vertex>& aggregates) const;
    \n-
    1161
    \n-
    1165 class OneWayCounter : public Counter
    \n-
    1166 {
    \n-
    1167 public:
    \n-
    1168 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n-
    1169 };
    \n-
    1170
    \n-
    1182 int oneWayConnections(const Vertex&, const AggregateDescriptor& aggregate,
    \n-
    1183 const AggregatesMap<Vertex>& aggregates) const;
    \n-
    1184
    \n-
    1191 class ConnectivityCounter : public Counter
    \n-
    1192 {
    \n-
    1193 public:
    \n-
    1200 ConnectivityCounter(const VertexSet& connected, const AggregatesMap<Vertex>& aggregates);
    \n-
    1201
    \n-
    1202 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n-
    1203
    \n-
    1204 private:
    \n-
    1206 const VertexSet& connected_;
    \n-
    1208 const AggregatesMap<Vertex>& aggregates_;
    \n-
    1209
    \n-
    1210 };
    \n-
    1211
    \n-
    1223 double connectivity(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const;
    \n-
    1231 bool connected(const Vertex& vertex, const AggregateDescriptor& aggregate,
    \n-
    1232 const AggregatesMap<Vertex>& aggregates) const;
    \n-
    1233
    \n-
    1241 bool connected(const Vertex& vertex, const SLList<AggregateDescriptor>& aggregateList,
    \n-
    1242 const AggregatesMap<Vertex>& aggregates) const;
    \n-
    1243
    \n-
    1251 class DependencyCounter : public Counter
    \n-
    1252 {
    \n-
    1253 public:
    \n-\n-
    1258
    \n-
    1259 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n-
    1260 };
    \n-
    1261
    \n-
    1268 class FrontMarker
    \n-
    1269 {
    \n-
    1270 public:
    \n-
    1277 FrontMarker(std::vector<Vertex>& front, MatrixGraph& graph);
    \n-
    1278
    \n-
    1279 void operator()(const typename MatrixGraph::ConstEdgeIterator& edge);
    \n-
    1280
    \n-
    1281 private:
    \n-
    1283 std::vector<Vertex>& front_;
    \n-
    1285 MatrixGraph& graph_;
    \n-
    1286 };
    \n-
    1287
    \n-
    1291 void unmarkFront();
    \n-
    1292
    \n-
    1307 int unusedNeighbours(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const;
    \n-
    1308
    \n-
    1322 std::pair<int,int> neighbours(const Vertex& vertex,
    \n-
    1323 const AggregateDescriptor& aggregate,
    \n-
    1324 const AggregatesMap<Vertex>& aggregates) const;
    \n-
    1341 int aggregateNeighbours(const Vertex& vertex, const AggregateDescriptor& aggregate, const AggregatesMap<Vertex>& aggregates) const;
    \n-
    1342
    \n-
    1350 bool admissible(const Vertex& vertex, const AggregateDescriptor& aggregate, const AggregatesMap<Vertex>& aggregates) const;
    \n-
    1351
    \n-
    1359 std::size_t distance(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates);
    \n-
    1360
    \n-
    1369 Vertex mergeNeighbour(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const;
    \n-
    1370
    \n-
    1379 void nonisoNeighbourAggregate(const Vertex& vertex,
    \n-
    1380 const AggregatesMap<Vertex>& aggregates,
    \n-
    1381 SLList<Vertex>& neighbours) const;
    \n-
    1382
    \n-
    1390 template<class C>
    \n-
    1391 void growAggregate(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates, const C& c);
    \n-
    1392 template<class C>
    \n-
    1393 void growIsolatedAggregate(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates, const C& c);
    \n-
    1394 };
    \n-
    \n-
    1395
    \n-
    1396#ifndef DOXYGEN
    \n-
    1397
    \n-
    1398 template<class M, class N>
    \n-
    1399 inline void SymmetricDependency<M,N>::init(const Matrix* matrix)
    \n-
    1400 {
    \n-
    1401 matrix_ = matrix;
    \n-
    1402 }
    \n-
    1403
    \n-
    1404 template<class M, class N>
    \n-
    1405 inline void SymmetricDependency<M,N>::initRow(const Row& row, int index)
    \n-
    1406 {
    \n-
    1407 initRow(row, index, std::is_convertible<field_type, real_type>());
    \n-
    1408 }
    \n-
    1409
    \n-
    1410 template<class M, class N>
    \n-
    1411 inline void SymmetricDependency<M,N>::initRow(const Row& row, int index, const std::false_type&)
    \n-
    1412 {
    \n-
    1413 DUNE_THROW(InvalidStateException, "field_type needs to convertible to real_type");
    \n-
    1414 }
    \n-
    1415
    \n-
    1416 template<class M, class N>
    \n-
    1417 inline void SymmetricDependency<M,N>::initRow([[maybe_unused]] const Row& row, int index, const std::true_type&)
    \n-
    1418 {
    \n-
    1419 using std::min;
    \n-
    1420 maxValue_ = min(- std::numeric_limits<typename Matrix::field_type>::max(), std::numeric_limits<typename Matrix::field_type>::min());
    \n-
    1421 row_ = index;
    \n-
    1422 diagonal_ = norm_(matrix_->operator[](row_)[row_]);
    \n-
    1423 }
    \n-
    1424
    \n-
    1425 template<class M, class N>
    \n-
    1426 inline void SymmetricDependency<M,N>::examine(const ColIter& col)
    \n-
    1427 {
    \n-
    1428 using std::max;
    \n-
    1429 real_type eij = norm_(*col);
    \n-
    1430 typename Matrix::ConstColIterator opposite_entry =
    \n-
    1431 matrix_->operator[](col.index()).find(row_);
    \n-
    1432 if ( opposite_entry == matrix_->operator[](col.index()).end() )
    \n-
    1433 {
    \n-
    1434 // Consider this a weak connection we disregard.
    \n-
    1435 return;
    \n-
    1436 }
    \n-
    1437 real_type eji = norm_(*opposite_entry);
    \n-
    1438
    \n-
    1439 // skip positive offdiagonals if norm preserves sign of them.
    \n-
    1440 if(!N::is_sign_preserving || eij<0 || eji<0)
    \n-
    1441 maxValue_ = max(maxValue_,
    \n-
    1442 eij /diagonal_ * eji/
    \n-
    1443 norm_(matrix_->operator[](col.index())[col.index()]));
    \n-
    1444 }
    \n-
    1445
    \n-
    1446 template<class M, class N>
    \n-
    1447 template<class G>
    \n-
    1448 inline void SymmetricDependency<M,N>::examine(G& graph, const typename G::EdgeIterator& edge, const ColIter& col)
    \n-
    1449 {
    \n-
    1450 real_type eij = norm_(*col);
    \n-
    1451 typename Matrix::ConstColIterator opposite_entry =
    \n-
    1452 matrix_->operator[](col.index()).find(row_);
    \n-
    1453
    \n-
    1454 if ( opposite_entry == matrix_->operator[](col.index()).end() )
    \n-
    1455 {
    \n-
    1456 // Consider this as a weak connection we disregard.
    \n-
    1457 return;
    \n-
    1458 }
    \n-
    1459 real_type eji = norm_(*opposite_entry);
    \n-
    1460 // skip positve offdiagonals if norm preserves sign of them.
    \n-
    1461 if(!N::is_sign_preserving || (eij<0 || eji<0))
    \n-
    1462 if(eji / norm_(matrix_->operator[](edge.target())[edge.target()]) *
    \n-
    1463 eij/ diagonal_ > alpha() * maxValue_) {
    \n-
    1464 edge.properties().setDepends();
    \n-
    1465 edge.properties().setInfluences();
    \n-
    1466 typename G::EdgeProperties& other = graph.getEdgeProperties(edge.target(), edge.source());
    \n-
    1467 other.setInfluences();
    \n-
    1468 other.setDepends();
    \n-
    1469 }
    \n-
    1470 }
    \n-
    1471
    \n-
    1472 template<class M, class N>
    \n-\n-
    1474 {
    \n-
    1475 return maxValue_ < beta();
    \n-
    1476 }
    \n-
    1477
    \n-
    1478
    \n-
    1479 template<class M, class N>
    \n-
    1480 inline void Dependency<M,N>::init(const Matrix* matrix)
    \n-
    1481 {
    \n-
    1482 matrix_ = matrix;
    \n-
    1483 }
    \n-
    1484
    \n-
    1485 template<class M, class N>
    \n-
    1486 inline void Dependency<M,N>::initRow([[maybe_unused]] const Row& row, int index)
    \n-
    1487 {
    \n-
    1488 using std::min;
    \n-
    1489 maxValue_ = min(- std::numeric_limits<real_type>::max(), std::numeric_limits<real_type>::min());
    \n-
    1490 row_ = index;
    \n-
    1491 diagonal_ = norm_(matrix_->operator[](row_)[row_]);
    \n-
    1492 }
    \n-
    1493
    \n-
    1494 template<class M, class N>
    \n-
    1495 inline void Dependency<M,N>::examine(const ColIter& col)
    \n-
    1496 {
    \n-
    1497 using std::max;
    \n-
    1498 maxValue_ = max(maxValue_, -norm_(*col));
    \n-
    1499 }
    \n-
    1500
    \n-
    1501 template<class M, class N>
    \n-
    1502 template<class G>
    \n-
    1503 inline void Dependency<M,N>::examine(G& graph, const typename G::EdgeIterator& edge, const ColIter& col)
    \n-
    1504 {
    \n-
    1505 if(-norm_(*col) >= maxValue_ * alpha()) {
    \n-
    1506 edge.properties().setDepends();
    \n-
    1507 typedef typename G::EdgeDescriptor ED;
    \n-
    1508 ED e= graph.findEdge(edge.target(), edge.source());
    \n-
    1509 if(e!=std::numeric_limits<ED>::max())
    \n-
    1510 {
    \n-
    1511 typename G::EdgeProperties& other = graph.getEdgeProperties(e);
    \n-
    1512 other.setInfluences();
    \n-
    1513 }
    \n-
    1514 }
    \n-
    1515 }
    \n-
    1516
    \n-
    1517 template<class M, class N>
    \n-
    1518 inline bool Dependency<M,N>::isIsolated()
    \n-
    1519 {
    \n-
    1520 return maxValue_ < beta() * diagonal_;
    \n-
    1521 }
    \n-
    1522
    \n-
    1523 template<class G,class S>
    \n-
    1524 Aggregate<G,S>::Aggregate(MatrixGraph& graph, AggregatesMap<Vertex>& aggregates,
    \n-
    1525 VertexSet& connected, std::vector<Vertex>& front)
    \n-
    1526 : vertices_(), id_(-1), graph_(graph), aggregates_(aggregates),
    \n-
    1527 connected_(connected), front_(front)
    \n-
    1528 {}
    \n-
    1529
    \n-
    1530 template<class G,class S>
    \n-
    1531 void Aggregate<G,S>::reconstruct(const Vertex& vertex)
    \n-
    1532 {
    \n-
    1533 /*
    \n-
    1534 vertices_.push_back(vertex);
    \n-
    1535 typedef typename VertexList::const_iterator iterator;
    \n-
    1536 iterator begin = vertices_.begin();
    \n-
    1537 iterator end = vertices_.end();*/
    \n-
    1538 throw "Not yet implemented";
    \n-
    1539
    \n-
    1540 // while(begin!=end){
    \n-
    1541 //for();
    \n-
    1542 // }
    \n-
    1543
    \n-
    1544 }
    \n-
    1545
    \n-
    1546 template<class G,class S>
    \n-
    1547 inline void Aggregate<G,S>::seed(const Vertex& vertex)
    \n-
    1548 {
    \n-
    1549 dvverb<<"Connected cleared"<<std::endl;
    \n-
    1550 connected_.clear();
    \n-
    1551 vertices_.clear();
    \n-
    1552 connected_.insert(vertex);
    \n-
    1553 dvverb << " Inserting "<<vertex<<" size="<<connected_.size();
    \n-
    1554 ++id_ ;
    \n-
    1555 add(vertex);
    \n-
    1556 }
    \n-
    1557
    \n-
    1558
    \n-
    1559 template<class G,class S>
    \n-
    1560 inline void Aggregate<G,S>::add(const Vertex& vertex)
    \n-
    1561 {
    \n-
    1562 vertices_.insert(vertex);
    \n-
    1563 aggregates_[vertex]=id_;
    \n-
    1564 if(front_.size())
    \n-
    1565 front_.erase(std::lower_bound(front_.begin(), front_.end(), vertex));
    \n-
    1566
    \n-
    1567
    \n-
    1568 typedef typename MatrixGraph::ConstEdgeIterator iterator;
    \n-
    1569 const iterator end = graph_.endEdges(vertex);
    \n-
    1570 for(iterator edge = graph_.beginEdges(vertex); edge != end; ++edge) {
    \n-
    1571 dvverb << " Inserting "<<aggregates_[edge.target()];
    \n-
    1572 connected_.insert(aggregates_[edge.target()]);
    \n-
    1573 dvverb <<" size="<<connected_.size();
    \n-
    1574 if(aggregates_[edge.target()]==AggregatesMap<Vertex>::UNAGGREGATED &&
    \n-
    1575 !graph_.getVertexProperties(edge.target()).front())
    \n-
    1576 {
    \n-
    1577 front_.push_back(edge.target());
    \n-
    1578 graph_.getVertexProperties(edge.target()).setFront();
    \n-
    1579 }
    \n-
    1580 }
    \n-
    1581 dvverb <<std::endl;
    \n-
    1582 std::sort(front_.begin(), front_.end());
    \n-
    1583 }
    \n-
    1584
    \n-
    1585 template<class G,class S>
    \n-
    1586 inline void Aggregate<G,S>::add(std::vector<Vertex>& vertices)
    \n-
    1587 {
    \n-
    1588#ifndef NDEBUG
    \n-
    1589 std::size_t oldsize = vertices_.size();
    \n-
    1590#endif
    \n-
    1591 typedef typename std::vector<Vertex>::iterator Iterator;
    \n-
    1592
    \n-
    1593 typedef typename VertexSet::iterator SIterator;
    \n-
    1594
    \n-
    1595 SIterator pos=vertices_.begin();
    \n-
    1596 std::vector<Vertex> newFront;
    \n-
    1597 newFront.reserve(front_.capacity());
    \n-
    1598
    \n-
    1599 std::set_difference(front_.begin(), front_.end(), vertices.begin(), vertices.end(),
    \n-
    1600 std::back_inserter(newFront));
    \n-
    1601 front_=newFront;
    \n-
    1602
    \n-
    1603 for(Iterator vertex=vertices.begin(); vertex != vertices.end(); ++vertex)
    \n-
    1604 {
    \n-
    1605 pos=vertices_.insert(pos,*vertex);
    \n-
    1606 vertices_.insert(*vertex);
    \n-
    1607 graph_.getVertexProperties(*vertex).resetFront(); // Not a front node any more.
    \n-
    1608 aggregates_[*vertex]=id_;
    \n-
    1609
    \n-
    1610 typedef typename MatrixGraph::ConstEdgeIterator iterator;
    \n-
    1611 const iterator end = graph_.endEdges(*vertex);
    \n-
    1612 for(iterator edge = graph_.beginEdges(*vertex); edge != end; ++edge) {
    \n-
    1613 dvverb << " Inserting "<<aggregates_[edge.target()];
    \n-
    1614 connected_.insert(aggregates_[edge.target()]);
    \n-
    1615 if(aggregates_[edge.target()]==AggregatesMap<Vertex>::UNAGGREGATED &&
    \n-
    1616 !graph_.getVertexProperties(edge.target()).front())
    \n-
    1617 {
    \n-
    1618 front_.push_back(edge.target());
    \n-
    1619 graph_.getVertexProperties(edge.target()).setFront();
    \n-
    1620 }
    \n-
    1621 dvverb <<" size="<<connected_.size();
    \n-
    1622 }
    \n-
    1623 dvverb <<std::endl;
    \n-
    1624 }
    \n-
    1625 std::sort(front_.begin(), front_.end());
    \n-
    1626 assert(oldsize+vertices.size()==vertices_.size());
    \n-
    1627 }
    \n-
    1628 template<class G,class S>
    \n-
    1629 inline void Aggregate<G,S>::clear()
    \n-
    1630 {
    \n-
    1631 vertices_.clear();
    \n-
    1632 connected_.clear();
    \n-
    1633 id_=-1;
    \n-
    1634 }
    \n-
    1635
    \n-
    1636 template<class G,class S>
    \n-
    1637 inline typename Aggregate<G,S>::VertexSet::size_type
    \n-\n-
    1639 {
    \n-
    1640 return vertices_.size();
    \n-
    1641 }
    \n-
    1642
    \n-
    1643 template<class G,class S>
    \n-
    1644 inline typename Aggregate<G,S>::VertexSet::size_type
    \n-\n-
    1646 {
    \n-
    1647 return connected_.size();
    \n-
    1648 }
    \n-
    1649
    \n-
    1650 template<class G,class S>
    \n-
    1651 inline int Aggregate<G,S>::id()
    \n-
    1652 {
    \n-
    1653 return id_;
    \n-
    1654 }
    \n-
    1655
    \n-
    1656 template<class G,class S>
    \n-\n-
    1658 {
    \n-
    1659 return vertices_.begin();
    \n-
    1660 }
    \n-
    1661
    \n-
    1662 template<class G,class S>
    \n-\n-
    1664 {
    \n-
    1665 return vertices_.end();
    \n-
    1666 }
    \n-
    1667
    \n-
    1668 template<class V>
    \n-
    1669 const V AggregatesMap<V>::UNAGGREGATED = std::numeric_limits<V>::max();
    \n-
    1670
    \n-
    1671 template<class V>
    \n-
    1672 const V AggregatesMap<V>::ISOLATED = std::numeric_limits<V>::max()-1;
    \n-
    1673
    \n-
    1674 template<class V>
    \n-\n-
    1676 : aggregates_(0)
    \n-
    1677 {}
    \n-
    1678
    \n-
    1679 template<class V>
    \n-\n-
    1681 {
    \n-
    1682 if(aggregates_!=0)
    \n-
    1683 delete[] aggregates_;
    \n-
    1684 }
    \n-
    1685
    \n-
    1686
    \n-
    1687 template<class V>
    \n-
    1688 inline AggregatesMap<V>::AggregatesMap(std::size_t noVertices)
    \n-
    1689 {
    \n-
    1690 allocate(noVertices);
    \n-
    1691 }
    \n-
    1692
    \n-
    1693 template<class V>
    \n-
    1694 inline std::size_t AggregatesMap<V>::noVertices() const
    \n-
    1695 {
    \n-
    1696 return noVertices_;
    \n-
    1697 }
    \n-
    1698
    \n-
    1699 template<class V>
    \n-
    1700 inline void AggregatesMap<V>::allocate(std::size_t noVertices)
    \n-
    1701 {
    \n-
    1702 aggregates_ = new AggregateDescriptor[noVertices];
    \n-
    1703 noVertices_ = noVertices;
    \n-
    1704
    \n-
    1705 for(std::size_t i=0; i < noVertices; i++)
    \n-
    1706 aggregates_[i]=UNAGGREGATED;
    \n-
    1707 }
    \n-
    1708
    \n-
    1709 template<class V>
    \n-
    1710 inline void AggregatesMap<V>::free()
    \n-
    1711 {
    \n-
    1712 assert(aggregates_ != 0);
    \n-
    1713 delete[] aggregates_;
    \n-
    1714 aggregates_=0;
    \n-
    1715 }
    \n-
    1716
    \n-
    1717 template<class V>
    \n-\n-
    1719 AggregatesMap<V>::operator[](const VertexDescriptor& v)
    \n-
    1720 {
    \n-
    1721 return aggregates_[v];
    \n-
    1722 }
    \n-
    1723
    \n-
    1724 template<class V>
    \n-
    1725 inline const typename AggregatesMap<V>::AggregateDescriptor&
    \n-
    1726 AggregatesMap<V>::operator[](const VertexDescriptor& v) const
    \n-
    1727 {
    \n-
    1728 return aggregates_[v];
    \n-
    1729 }
    \n-
    1730
    \n-
    1731 template<class V>
    \n-
    1732 template<bool reset, class G, class F,class VM>
    \n-
    1733 inline std::size_t AggregatesMap<V>::breadthFirstSearch(const V& start,
    \n-
    1734 const AggregateDescriptor& aggregate,
    \n-
    1735 const G& graph, F& aggregateVisitor,
    \n-
    1736 VM& visitedMap) const
    \n-
    1737 {
    \n-
    1738 VertexList vlist;
    \n-
    1739
    \n-
    1740 DummyEdgeVisitor dummy;
    \n-
    1741 return breadthFirstSearch<true,reset>(start, aggregate, graph, vlist, aggregateVisitor, dummy, visitedMap);
    \n-
    1742 }
    \n-
    1743
    \n-
    1744 template<class V>
    \n-
    1745 template<bool remove, bool reset, class G, class L, class F1, class F2, class VM>
    \n-
    1746 std::size_t AggregatesMap<V>::breadthFirstSearch(const V& start,
    \n-
    1747 const AggregateDescriptor& aggregate,
    \n-
    1748 const G& graph,
    \n-
    1749 L& visited,
    \n-
    1750 F1& aggregateVisitor,
    \n-
    1751 F2& nonAggregateVisitor,
    \n-
    1752 VM& visitedMap) const
    \n-
    1753 {
    \n-
    1754 typedef typename L::const_iterator ListIterator;
    \n-
    1755 int visitedSpheres = 0;
    \n-
    1756
    \n-
    1757 visited.push_back(start);
    \n-
    1758 put(visitedMap, start, true);
    \n-
    1759
    \n-
    1760 ListIterator current = visited.begin();
    \n-
    1761 ListIterator end = visited.end();
    \n-
    1762 std::size_t i=0, size=visited.size();
    \n-
    1763
    \n-
    1764 // visit the neighbours of all vertices of the
    \n-
    1765 // current sphere.
    \n-
    1766 while(current != end) {
    \n-
    1767
    \n-
    1768 for(; i<size; ++current, ++i) {
    \n-
    1769 typedef typename G::ConstEdgeIterator EdgeIterator;
    \n-
    1770 const EdgeIterator endEdge = graph.endEdges(*current);
    \n-
    1771
    \n-
    1772 for(EdgeIterator edge = graph.beginEdges(*current);
    \n-
    1773 edge != endEdge; ++edge) {
    \n-
    1774
    \n-
    1775 if(aggregates_[edge.target()]==aggregate) {
    \n-
    1776 if(!get(visitedMap, edge.target())) {
    \n-
    1777 put(visitedMap, edge.target(), true);
    \n-
    1778 visited.push_back(edge.target());
    \n-
    1779 aggregateVisitor(edge);
    \n-
    1780 }
    \n-
    1781 }else
    \n-
    1782 nonAggregateVisitor(edge);
    \n-
    1783 }
    \n-
    1784 }
    \n-
    1785 end = visited.end();
    \n-
    1786 size = visited.size();
    \n-
    1787 if(current != end)
    \n-
    1788 visitedSpheres++;
    \n-
    1789 }
    \n-
    1790
    \n-
    1791 if(reset)
    \n-
    1792 for(current = visited.begin(); current != end; ++current)
    \n-
    1793 put(visitedMap, *current, false);
    \n-
    1794
    \n-
    1795
    \n-
    1796 if(remove)
    \n-
    1797 visited.clear();
    \n-
    1798
    \n-
    1799 return visitedSpheres;
    \n-
    1800 }
    \n-
    1801
    \n-
    1802 template<class G>
    \n-\n-
    1804 : graph_(0), aggregate_(0), front_(), connected_(), size_(-1)
    \n-
    1805 {}
    \n-
    1806
    \n-
    1807 template<class G>
    \n-\n-
    1809 {
    \n-
    1810 size_=-1;
    \n-
    1811 }
    \n-
    1812
    \n-
    1813 template<class G, class C>
    \n-
    1814 void buildDependency(G& graph,
    \n-
    1815 const typename C::Matrix& matrix,
    \n-
    1816 C criterion, bool firstlevel)
    \n-
    1817 {
    \n-
    1818 // assert(graph.isBuilt());
    \n-
    1819 typedef typename C::Matrix Matrix;
    \n-
    1820 typedef typename G::VertexIterator VertexIterator;
    \n-
    1821
    \n-
    1822 criterion.init(&matrix);
    \n-
    1823
    \n-
    1824 for(VertexIterator vertex = graph.begin(); vertex != graph.end(); ++vertex) {
    \n-
    1825 typedef typename Matrix::row_type Row;
    \n-
    1826
    \n-
    1827 const Row& row = matrix[*vertex];
    \n-
    1828
    \n-
    1829 // Tell the criterion what row we will examine now
    \n-
    1830 // This might for example be used for calculating the
    \n-
    1831 // maximum offdiagonal value
    \n-
    1832 criterion.initRow(row, *vertex);
    \n-
    1833
    \n-
    1834 // On a first path all columns are examined. After this
    \n-
    1835 // the calculator should know whether the vertex is isolated.
    \n-
    1836 typedef typename Matrix::ConstColIterator ColIterator;
    \n-
    1837 ColIterator end = row.end();
    \n-
    1838 typename FieldTraits<typename Matrix::field_type>::real_type absoffdiag=0.;
    \n-
    1839
    \n-
    1840 using std::max;
    \n-
    1841 if(firstlevel) {
    \n-
    1842 for(ColIterator col = row.begin(); col != end; ++col)
    \n-
    1843 if(col.index()!=*vertex) {
    \n-
    1844 criterion.examine(col);
    \n-
    1845 absoffdiag = max(absoffdiag, Impl::asMatrix(*col).frobenius_norm());
    \n-
    1846 }
    \n-
    1847
    \n-
    1848 if(absoffdiag==0)
    \n-
    1849 vertex.properties().setExcludedBorder();
    \n-
    1850 }
    \n-
    1851 else
    \n-
    1852 for(ColIterator col = row.begin(); col != end; ++col)
    \n-
    1853 if(col.index()!=*vertex)
    \n-
    1854 criterion.examine(col);
    \n-
    1855
    \n-
    1856 // reset the vertex properties
    \n-
    1857 //vertex.properties().reset();
    \n-
    1858
    \n-
    1859 // Check whether the vertex is isolated.
    \n-
    1860 if(criterion.isIsolated()) {
    \n-
    1861 //std::cout<<"ISOLATED: "<<*vertex<<std::endl;
    \n-
    1862 vertex.properties().setIsolated();
    \n-
    1863 }else{
    \n-
    1864 // Examine all the edges beginning at this vertex.
    \n-
    1865 auto eEnd = vertex.end();
    \n-
    1866 auto col = matrix[*vertex].begin();
    \n-
    1867
    \n-
    1868 for(auto edge = vertex.begin(); edge!= eEnd; ++edge, ++col) {
    \n-
    1869 // Move to the right column.
    \n-
    1870 while(col.index()!=edge.target())
    \n-
    1871 ++col;
    \n-
    1872 criterion.examine(graph, edge, col);
    \n-
    1873 }
    \n-
    1874 }
    \n-
    1875
    \n-
    1876 }
    \n-
    1877 }
    \n-
    1878
    \n-
    1879
    \n-
    1880 template<class G>
    \n-
    1881 template<class V>
    \n-
    1882 inline Aggregator<G>::AggregateVisitor<V>::AggregateVisitor(const AggregatesMap<Vertex>& aggregates,
    \n-
    1883 const AggregateDescriptor& aggregate, V& visitor)
    \n-
    1884 : aggregates_(aggregates), aggregate_(aggregate), visitor_(&visitor)
    \n-
    1885 {}
    \n-
    1886
    \n-
    1887 template<class G>
    \n-
    1888 template<class V>
    \n-\n-
    1890 {
    \n-
    1891 if(aggregates_[edge.target()]==aggregate_)
    \n-
    1892 visitor_->operator()(edge);
    \n-
    1893 }
    \n-
    1894
    \n-
    1895 template<class G>
    \n-
    1896 template<class V>
    \n-
    1897 inline void Aggregator<G>::visitAggregateNeighbours(const Vertex& vertex,
    \n-
    1898 const AggregateDescriptor& aggregate,
    \n-
    1899 const AggregatesMap<Vertex>& aggregates,
    \n-
    1900 V& visitor) const
    \n-
    1901 {
    \n-
    1902 // Only evaluates for edge pointing to the aggregate
    \n-
    1903 AggregateVisitor<V> v(aggregates, aggregate, visitor);
    \n-
    1904 visitNeighbours(*graph_, vertex, v);
    \n-
    1905 }
    \n-
    1906
    \n-
    1907
    \n-
    1908 template<class G>
    \n-\n-
    1910 : count_(0)
    \n-
    1911 {}
    \n-
    1912
    \n-
    1913 template<class G>
    \n-\n-
    1915 {
    \n-
    1916 ++count_;
    \n-
    1917 }
    \n-
    1918
    \n-
    1919 template<class G>
    \n-\n-
    1921 {
    \n-
    1922 --count_;
    \n-
    1923 }
    \n-
    1924 template<class G>
    \n-\n-
    1926 {
    \n-
    1927 return count_;
    \n-
    1928 }
    \n-
    1929
    \n-
    1930 template<class G>
    \n-\n-
    1932 {
    \n-
    1933 if(edge.properties().isTwoWay())
    \n-\n-
    1935 }
    \n-
    1936
    \n-
    1937 template<class G>
    \n-
    1938 int Aggregator<G>::twoWayConnections(const Vertex& vertex, const AggregateDescriptor& aggregate,
    \n-
    1939 const AggregatesMap<Vertex>& aggregates) const
    \n-
    1940 {
    \n-
    1941 TwoWayCounter counter;
    \n-
    1942 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);
    \n-
    1943 return counter.value();
    \n-
    1944 }
    \n-
    1945
    \n-
    1946 template<class G>
    \n-
    1947 int Aggregator<G>::oneWayConnections(const Vertex& vertex, const AggregateDescriptor& aggregate,
    \n-
    1948 const AggregatesMap<Vertex>& aggregates) const
    \n-
    1949 {
    \n-
    1950 OneWayCounter counter;
    \n-
    1951 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);
    \n-
    1952 return counter.value();
    \n-
    1953 }
    \n-
    1954
    \n-
    1955 template<class G>
    \n-\n-
    1957 {
    \n-
    1958 if(edge.properties().isOneWay())
    \n-\n-
    1960 }
    \n-
    1961
    \n-
    1962 template<class G>
    \n-
    1963 inline Aggregator<G>::ConnectivityCounter::ConnectivityCounter(const VertexSet& connected,
    \n-
    1964 const AggregatesMap<Vertex>& aggregates)
    \n-
    1965 : Counter(), connected_(connected), aggregates_(aggregates)
    \n-
    1966 {}
    \n-
    1967
    \n-
    1968
    \n-
    1969 template<class G>
    \n-\n-
    1971 {
    \n-
    1972 if(connected_.find(aggregates_[edge.target()]) == connected_.end() || aggregates_[edge.target()]==AggregatesMap<Vertex>::UNAGGREGATED)
    \n-
    1973 // Would be a new connection
    \n-\n-
    1975 else{
    \n-\n-\n-
    1978 }
    \n-
    1979 }
    \n-
    1980
    \n-
    1981 template<class G>
    \n-
    1982 inline double Aggregator<G>::connectivity(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const
    \n-
    1983 {
    \n-
    1984 ConnectivityCounter counter(connected_, aggregates);
    \n-
    1985 double noNeighbours=visitNeighbours(*graph_, vertex, counter);
    \n-
    1986 return (double)counter.value()/noNeighbours;
    \n-
    1987 }
    \n-
    1988
    \n-
    1989 template<class G>
    \n-\n-
    1991 : Counter()
    \n-
    1992 {}
    \n-
    1993
    \n-
    1994 template<class G>
    \n-\n-
    1996 {
    \n-
    1997 if(edge.properties().depends())
    \n-\n-
    1999 if(edge.properties().influences())
    \n-\n-
    2001 }
    \n-
    2002
    \n-
    2003 template<class G>
    \n-
    2004 int Aggregator<G>::unusedNeighbours(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const
    \n-
    2005 {
    \n-
    2006 return aggregateNeighbours(vertex, AggregatesMap<Vertex>::UNAGGREGATED, aggregates);
    \n-
    2007 }
    \n-
    2008
    \n-
    2009 template<class G>
    \n-
    2010 std::pair<int,int> Aggregator<G>::neighbours(const Vertex& vertex,
    \n-
    2011 const AggregateDescriptor& aggregate,
    \n-
    2012 const AggregatesMap<Vertex>& aggregates) const
    \n-
    2013 {
    \n-
    2014 DependencyCounter unused, aggregated;
    \n-
    2015 typedef AggregateVisitor<DependencyCounter> CounterT;
    \n-
    2016 typedef std::tuple<CounterT,CounterT> CounterTuple;
    \n-
    2017 CombinedFunctor<CounterTuple> visitors(CounterTuple(CounterT(aggregates, AggregatesMap<Vertex>::UNAGGREGATED, unused), CounterT(aggregates, aggregate, aggregated)));
    \n-
    2018 visitNeighbours(*graph_, vertex, visitors);
    \n-
    2019 return std::make_pair(unused.value(), aggregated.value());
    \n-
    2020 }
    \n-
    2021
    \n-
    2022
    \n-
    2023 template<class G>
    \n-
    2024 int Aggregator<G>::aggregateNeighbours(const Vertex& vertex, const AggregateDescriptor& aggregate, const AggregatesMap<Vertex>& aggregates) const
    \n-
    2025 {
    \n-
    2026 DependencyCounter counter;
    \n-
    2027 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);
    \n-
    2028 return counter.value();
    \n-
    2029 }
    \n-
    2030
    \n-
    2031 template<class G>
    \n-
    2032 std::size_t Aggregator<G>::distance(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates)
    \n-
    2033 {
    \n-
    2034 return 0;
    \n-
    2035 typename PropertyMapTypeSelector<VertexVisitedTag,G>::Type visitedMap = get(VertexVisitedTag(), *graph_);
    \n-
    2036 VertexList vlist;
    \n-
    2037 typename AggregatesMap<Vertex>::DummyEdgeVisitor dummy;
    \n-
    2038 return aggregates.template breadthFirstSearch<true,true>(vertex,
    \n-
    2039 aggregate_->id(), *graph_,
    \n-
    2040 vlist, dummy, dummy, visitedMap);
    \n-
    2041 }
    \n-
    2042
    \n-
    2043 template<class G>
    \n-
    2044 inline Aggregator<G>::FrontMarker::FrontMarker(std::vector<Vertex>& front, MatrixGraph& graph)
    \n-
    2045 : front_(front), graph_(graph)
    \n-
    2046 {}
    \n-
    2047
    \n-
    2048 template<class G>
    \n-\n-
    2050 {
    \n-
    2051 Vertex target = edge.target();
    \n-
    2052
    \n-
    2053 if(!graph_.getVertexProperties(target).front()) {
    \n-
    2054 front_.push_back(target);
    \n-
    2055 graph_.getVertexProperties(target).setFront();
    \n-
    2056 }
    \n-
    2057 }
    \n-
    2058
    \n-
    2059 template<class G>
    \n-
    2060 inline bool Aggregator<G>::admissible(const Vertex& vertex, const AggregateDescriptor& aggregate, const AggregatesMap<Vertex>& aggregates) const
    \n-
    2061 {
    \n-
    2062 // Todo
    \n-
    2063 Dune::dvverb<<" Admissible not yet implemented!"<<std::endl;
    \n-
    2064 return true;
    \n-
    2065 //Situation 1: front node depends on two nodes. Then these
    \n-
    2066 // have to be strongly connected to each other
    \n-
    2067
    \n-
    2068 // Iterate over all all neighbours of front node
    \n-
    2069 typedef typename MatrixGraph::ConstEdgeIterator Iterator;
    \n-
    2070 Iterator vend = graph_->endEdges(vertex);
    \n-
    2071 for(Iterator edge = graph_->beginEdges(vertex); edge != vend; ++edge) {
    \n-
    2072 // if(edge.properties().depends() && !edge.properties().influences()
    \n-
    2073 if(edge.properties().isStrong()
    \n-
    2074 && aggregates[edge.target()]==aggregate)
    \n-
    2075 {
    \n-
    2076 // Search for another link to the aggregate
    \n-
    2077 Iterator edge1 = edge;
    \n-
    2078 for(++edge1; edge1 != vend; ++edge1) {
    \n-
    2079 //if(edge1.properties().depends() && !edge1.properties().influences()
    \n-
    2080 if(edge1.properties().isStrong()
    \n-
    2081 && aggregates[edge.target()]==aggregate)
    \n-
    2082 {
    \n-
    2083 //Search for an edge connecting the two vertices that is
    \n-
    2084 //strong
    \n-
    2085 bool found=false;
    \n-
    2086 Iterator v2end = graph_->endEdges(edge.target());
    \n-
    2087 for(Iterator edge2 = graph_->beginEdges(edge.target()); edge2 != v2end; ++edge2) {
    \n-
    2088 if(edge2.target()==edge1.target() &&
    \n-
    2089 edge2.properties().isStrong()) {
    \n-
    2090 found =true;
    \n-
    2091 break;
    \n-
    2092 }
    \n-
    2093 }
    \n-
    2094 if(found)
    \n-
    2095 {
    \n-
    2096 return true;
    \n-
    2097 }
    \n-
    2098 }
    \n-
    2099 }
    \n-
    2100 }
    \n-
    2101 }
    \n-
    2102
    \n-
    2103 // Situation 2: cluster node depends on front node and other cluster node
    \n-
    2105 vend = graph_->endEdges(vertex);
    \n-
    2106 for(Iterator edge = graph_->beginEdges(vertex); edge != vend; ++edge) {
    \n-
    2107 //if(!edge.properties().depends() && edge.properties().influences()
    \n-
    2108 if(edge.properties().isStrong()
    \n-
    2109 && aggregates[edge.target()]==aggregate)
    \n-
    2110 {
    \n-
    2111 // Search for a link from target that stays within the aggregate
    \n-
    2112 Iterator v1end = graph_->endEdges(edge.target());
    \n-
    2113
    \n-
    2114 for(Iterator edge1=graph_->beginEdges(edge.target()); edge1 != v1end; ++edge1) {
    \n-
    2115 //if(edge1.properties().depends() && !edge1.properties().influences()
    \n-
    2116 if(edge1.properties().isStrong()
    \n-
    2117 && aggregates[edge1.target()]==aggregate)
    \n-
    2118 {
    \n-
    2119 bool found=false;
    \n-
    2120 // Check if front node is also connected to this one
    \n-
    2121 Iterator v2end = graph_->endEdges(vertex);
    \n-
    2122 for(Iterator edge2 = graph_->beginEdges(vertex); edge2 != v2end; ++edge2) {
    \n-
    2123 if(edge2.target()==edge1.target()) {
    \n-
    2124 if(edge2.properties().isStrong())
    \n-
    2125 found=true;
    \n-
    2126 break;
    \n-
    2127 }
    \n-
    2128 }
    \n-
    2129 if(found)
    \n-
    2130 {
    \n-
    2131 return true;
    \n-
    2132 }
    \n-
    2133 }
    \n-
    2134 }
    \n-
    2135 }
    \n-
    2136 }
    \n-
    2137 return false;
    \n-
    2138 }
    \n-
    2139
    \n-
    2140 template<class G>
    \n-
    2141 void Aggregator<G>::unmarkFront()
    \n-
    2142 {
    \n-
    2143 typedef typename std::vector<Vertex>::const_iterator Iterator;
    \n-
    2144
    \n-
    2145 for(Iterator vertex=front_.begin(); vertex != front_.end(); ++vertex)
    \n-
    2146 graph_->getVertexProperties(*vertex).resetFront();
    \n-
    2147
    \n-
    2148 front_.clear();
    \n-
    2149 }
    \n-
    2150
    \n-
    2151 template<class G>
    \n-
    2152 inline void
    \n-
    2153 Aggregator<G>::nonisoNeighbourAggregate(const Vertex& vertex,
    \n-
    2154 const AggregatesMap<Vertex>& aggregates,
    \n-
    2155 SLList<Vertex>& neighbours) const
    \n-
    2156 {
    \n-
    2157 typedef typename MatrixGraph::ConstEdgeIterator Iterator;
    \n-
    2158 Iterator end=graph_->beginEdges(vertex);
    \n-
    2159 neighbours.clear();
    \n-
    2160
    \n-
    2161 for(Iterator edge=graph_->beginEdges(vertex); edge!=end; ++edge)
    \n-
    2162 {
    \n-
    2163 if(aggregates[edge.target()]!=AggregatesMap<Vertex>::UNAGGREGATED && graph_->getVertexProperties(edge.target()).isolated())
    \n-
    2164 neighbours.push_back(aggregates[edge.target()]);
    \n-
    2165 }
    \n-
    2166 }
    \n-
    2167
    \n-
    2168 template<class G>
    \n-
    2169 inline typename G::VertexDescriptor Aggregator<G>::mergeNeighbour(const Vertex& vertex, const AggregatesMap<Vertex>& aggregates) const
    \n-
    2170 {
    \n-
    2171 typedef typename MatrixGraph::ConstEdgeIterator Iterator;
    \n-
    2172
    \n-
    2173 Iterator end = graph_->endEdges(vertex);
    \n-
    2174 for(Iterator edge = graph_->beginEdges(vertex); edge != end; ++edge) {
    \n-
    2175 if(aggregates[edge.target()] != AggregatesMap<Vertex>::UNAGGREGATED &&
    \n-
    2176 graph_->getVertexProperties(edge.target()).isolated() == graph_->getVertexProperties(edge.source()).isolated()) {
    \n-
    2177 if( graph_->getVertexProperties(vertex).isolated() ||
    \n-
    2178 ((edge.properties().depends() || edge.properties().influences())
    \n-
    2179 && admissible(vertex, aggregates[edge.target()], aggregates)))
    \n-
    2180 return edge.target();
    \n-
    2181 }
    \n-
    2182 }
    \n-
    2183 return AggregatesMap<Vertex>::UNAGGREGATED;
    \n-
    2184 }
    \n-
    2185
    \n-
    2186 template<class G>
    \n-\n-
    2188 : Counter(), graph_(graph)
    \n-
    2189 {}
    \n-
    2190
    \n-
    2191 template<class G>
    \n-\n-
    2193 {
    \n-
    2194 if(graph_.getVertexProperties(edge.target()).front())
    \n-\n-
    2196 }
    \n-
    2197
    \n-
    2198 template<class G>
    \n-
    2199 int Aggregator<G>::noFrontNeighbours(const Vertex& vertex) const
    \n-
    2200 {
    \n-
    2201 FrontNeighbourCounter counter(*graph_);
    \n-
    2202 visitNeighbours(*graph_, vertex, counter);
    \n-
    2203 return counter.value();
    \n-
    2204 }
    \n-
    2205 template<class G>
    \n-
    2206 inline bool Aggregator<G>::connected(const Vertex& vertex,
    \n-
    2207 const AggregateDescriptor& aggregate,
    \n-
    2208 const AggregatesMap<Vertex>& aggregates) const
    \n-
    2209 {
    \n-
    2210 typedef typename G::ConstEdgeIterator iterator;
    \n-
    2211 const iterator end = graph_->endEdges(vertex);
    \n-
    2212 for(iterator edge = graph_->beginEdges(vertex); edge != end; ++edge)
    \n-
    2213 if(aggregates[edge.target()]==aggregate)
    \n-
    2214 return true;
    \n-
    2215 return false;
    \n-
    2216 }
    \n-
    2217 template<class G>
    \n-
    2218 inline bool Aggregator<G>::connected(const Vertex& vertex,
    \n-
    2219 const SLList<AggregateDescriptor>& aggregateList,
    \n-
    2220 const AggregatesMap<Vertex>& aggregates) const
    \n-
    2221 {
    \n-
    2222 typedef typename SLList<AggregateDescriptor>::const_iterator Iter;
    \n-
    2223 for(Iter i=aggregateList.begin(); i!=aggregateList.end(); ++i)
    \n-
    2224 if(connected(vertex, *i, aggregates))
    \n-
    2225 return true;
    \n-
    2226 return false;
    \n-
    2227 }
    \n-
    2228
    \n-
    2229 template<class G>
    \n-
    2230 template<class C>
    \n-
    2231 void Aggregator<G>::growIsolatedAggregate(const Vertex& seed, const AggregatesMap<Vertex>& aggregates, const C& c)
    \n-
    2232 {
    \n-
    2233 SLList<Vertex> connectedAggregates;
    \n-
    2234 nonisoNeighbourAggregate(seed, aggregates,connectedAggregates);
    \n-
    2235
    \n-
    2236 while(aggregate_->size()< c.minAggregateSize() && aggregate_->connectSize() < c.maxConnectivity()) {
    \n-
    2237 double maxCon=-1;
    \n-
    2238 std::size_t maxFrontNeighbours=0;
    \n-
    2239
    \n-
    2240 Vertex candidate=AggregatesMap<Vertex>::UNAGGREGATED;
    \n-
    2241
    \n-
    2242 typedef typename std::vector<Vertex>::const_iterator Iterator;
    \n-
    2243
    \n-
    2244 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {
    \n-
    2245 if(distance(*vertex, aggregates)>c.maxDistance())
    \n-
    2246 continue; // distance of proposes aggregate too big
    \n-
    2247
    \n-
    2248 if(connectedAggregates.size()>0) {
    \n-
    2249 // there is already a neighbour cluster
    \n-
    2250 // front node must be connected to same neighbour cluster
    \n-
    2251
    \n-
    2252 if(!connected(*vertex, connectedAggregates, aggregates))
    \n-
    2253 continue;
    \n-
    2254 }
    \n-
    2255
    \n-
    2256 double con = connectivity(*vertex, aggregates);
    \n-
    2257
    \n-
    2258 if(con == maxCon) {
    \n-
    2259 std::size_t frontNeighbours = noFrontNeighbours(*vertex);
    \n-
    2260
    \n-
    2261 if(frontNeighbours >= maxFrontNeighbours) {
    \n-
    2262 maxFrontNeighbours = frontNeighbours;
    \n-
    2263 candidate = *vertex;
    \n-
    2264 }
    \n-
    2265 }else if(con > maxCon) {
    \n-
    2266 maxCon = con;
    \n-
    2267 maxFrontNeighbours = noFrontNeighbours(*vertex);
    \n-
    2268 candidate = *vertex;
    \n-
    2269 }
    \n-
    2270 }
    \n-
    2271
    \n-
    2272 if(candidate==AggregatesMap<Vertex>::UNAGGREGATED)
    \n-
    2273 break;
    \n-
    2274
    \n-
    2275 aggregate_->add(candidate);
    \n-
    2276 }
    \n-
    2277 }
    \n-
    2278
    \n-
    2279 template<class G>
    \n-
    2280 template<class C>
    \n-
    2281 void Aggregator<G>::growAggregate(const Vertex& seed, const AggregatesMap<Vertex>& aggregates, const C& c)
    \n-
    2282 {
    \n-
    2283 using std::min;
    \n-
    2284
    \n-
    2285 std::size_t distance_ =0;
    \n-
    2286 while(aggregate_->size() < c.minAggregateSize()&& distance_<c.maxDistance()) {
    \n-
    2287 int maxTwoCons=0, maxOneCons=0, maxNeighbours=-1;
    \n-
    2288 double maxCon=-1;
    \n-
    2289
    \n-
    2290 std::vector<Vertex> candidates;
    \n-
    2291 candidates.reserve(30);
    \n-
    2292
    \n-
    2293 typedef typename std::vector<Vertex>::const_iterator Iterator;
    \n-
    2294
    \n-
    2295 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {
    \n-
    2296 // Only nonisolated nodes are considered
    \n-
    2297 if(graph_->getVertexProperties(*vertex).isolated())
    \n-
    2298 continue;
    \n-
    2299
    \n-
    2300 int twoWayCons = twoWayConnections(*vertex, aggregate_->id(), aggregates);
    \n-
    2301
    \n-
    2302 /* The case of two way connections. */
    \n-
    2303 if( maxTwoCons == twoWayCons && twoWayCons > 0) {
    \n-
    2304 double con = connectivity(*vertex, aggregates);
    \n-
    2305
    \n-
    2306 if(con == maxCon) {
    \n-
    2307 int neighbours = noFrontNeighbours(*vertex);
    \n-
    2308
    \n-
    2309 if(neighbours > maxNeighbours) {
    \n-
    2310 maxNeighbours = neighbours;
    \n-
    2311 candidates.clear();
    \n-
    2312 candidates.push_back(*vertex);
    \n-
    2313 }else{
    \n-
    2314 candidates.push_back(*vertex);
    \n-
    2315 }
    \n-
    2316 }else if( con > maxCon) {
    \n-
    2317 maxCon = con;
    \n-
    2318 maxNeighbours = noFrontNeighbours(*vertex);
    \n-
    2319 candidates.clear();
    \n-
    2320 candidates.push_back(*vertex);
    \n-
    2321 }
    \n-
    2322 }else if(twoWayCons > maxTwoCons) {
    \n-
    2323 maxTwoCons = twoWayCons;
    \n-
    2324 maxCon = connectivity(*vertex, aggregates);
    \n-
    2325 maxNeighbours = noFrontNeighbours(*vertex);
    \n-
    2326 candidates.clear();
    \n-
    2327 candidates.push_back(*vertex);
    \n-
    2328
    \n-
    2329 // two way connections precede
    \n-
    2330 maxOneCons = std::numeric_limits<int>::max();
    \n-
    2331 }
    \n-
    2332
    \n-
    2333 if(twoWayCons > 0)
    \n-
    2334 {
    \n-
    2335 continue; // THis is a two-way node, skip tests for one way nodes
    \n-
    2336 }
    \n-
    2337
    \n-
    2338 /* The one way case */
    \n-
    2339 int oneWayCons = oneWayConnections(*vertex, aggregate_->id(), aggregates);
    \n-
    2340
    \n-
    2341 if(oneWayCons==0)
    \n-
    2342 continue; // No strong connections, skip the tests.
    \n-
    2343
    \n-
    2344 if(!admissible(*vertex, aggregate_->id(), aggregates))
    \n-
    2345 continue;
    \n-
    2346
    \n-
    2347 if( maxOneCons == oneWayCons && oneWayCons > 0) {
    \n-
    2348 double con = connectivity(*vertex, aggregates);
    \n-
    2349
    \n-
    2350 if(con == maxCon) {
    \n-
    2351 int neighbours = noFrontNeighbours(*vertex);
    \n-
    2352
    \n-
    2353 if(neighbours > maxNeighbours) {
    \n-
    2354 maxNeighbours = neighbours;
    \n-
    2355 candidates.clear();
    \n-
    2356 candidates.push_back(*vertex);
    \n-
    2357 }else{
    \n-
    2358 if(neighbours==maxNeighbours)
    \n-
    2359 {
    \n-
    2360 candidates.push_back(*vertex);
    \n-
    2361 }
    \n-
    2362 }
    \n-
    2363 }else if( con > maxCon) {
    \n-
    2364 maxCon = con;
    \n-
    2365 maxNeighbours = noFrontNeighbours(*vertex);
    \n-
    2366 candidates.clear();
    \n-
    2367 candidates.push_back(*vertex);
    \n-
    2368 }
    \n-
    2369 }else if(oneWayCons > maxOneCons) {
    \n-
    2370 maxOneCons = oneWayCons;
    \n-
    2371 maxCon = connectivity(*vertex, aggregates);
    \n-
    2372 maxNeighbours = noFrontNeighbours(*vertex);
    \n-
    2373 candidates.clear();
    \n-
    2374 candidates.push_back(*vertex);
    \n-
    2375 }
    \n-
    2376 }
    \n-
    2377
    \n-
    2378
    \n-
    2379 if(!candidates.size())
    \n-
    2380 break; // No more candidates found
    \n-
    2381 distance_=distance(seed, aggregates);
    \n-
    2382 candidates.resize(min(candidates.size(), c.maxAggregateSize()-
    \n-
    2383 aggregate_->size()));
    \n-
    2384 aggregate_->add(candidates);
    \n-
    2385 }
    \n-
    2386 }
    \n-
    2387
    \n-
    2388 template<typename V>
    \n-
    2389 template<typename M, typename G, typename C>
    \n-
    2390 std::tuple<int,int,int,int> AggregatesMap<V>::buildAggregates(const M& matrix, G& graph, const C& criterion,
    \n-
    2391 bool finestLevel)
    \n-
    2392 {
    \n-
    2393 Aggregator<G> aggregator;
    \n-
    2394 return aggregator.build(matrix, graph, *this, criterion, finestLevel);
    \n-
    2395 }
    \n-
    2396
    \n-
    2397 template<class G>
    \n-
    2398 template<class M, class C>
    \n-
    2399 std::tuple<int,int,int,int> Aggregator<G>::build(const M& m, G& graph, AggregatesMap<Vertex>& aggregates, const C& c,
    \n-
    2400 bool finestLevel)
    \n-
    2401 {
    \n-
    2402 using std::max;
    \n-
    2403 using std::min;
    \n-
    2404 // Stack for fast vertex access
    \n-
    2405 Stack stack_(graph, *this, aggregates);
    \n-
    2406
    \n-
    2407 graph_ = &graph;
    \n-
    2408
    \n-
    2409 aggregate_ = new Aggregate<G,VertexSet>(graph, aggregates, connected_, front_);
    \n-
    2410
    \n-
    2411 Timer watch;
    \n-
    2412 watch.reset();
    \n-
    2413
    \n-
    2414 buildDependency(graph, m, c, finestLevel);
    \n-
    2415
    \n-
    2416 dverb<<"Build dependency took "<< watch.elapsed()<<" seconds."<<std::endl;
    \n-
    2417 int noAggregates, conAggregates, isoAggregates, oneAggregates;
    \n-
    2418 std::size_t maxA=0, minA=1000000, avg=0;
    \n-
    2419 int skippedAggregates;
    \n-
    2420 noAggregates = conAggregates = isoAggregates = oneAggregates =
    \n-
    2421 skippedAggregates = 0;
    \n-
    2422
    \n-
    2423 while(true) {
    \n-
    2424 Vertex seed = stack_.pop();
    \n-
    2425
    \n-
    2426 if(seed == Stack::NullEntry)
    \n-
    2427 // No more unaggregated vertices. We are finished!
    \n-
    2428 break;
    \n-
    2429
    \n-
    2430 // Debugging output
    \n-
    2431 if((noAggregates+1)%10000 == 0)
    \n-
    2432 Dune::dverb<<"c";
    \n-
    2433 unmarkFront();
    \n-
    2434
    \n-
    2435 if(graph.getVertexProperties(seed).excludedBorder()) {
    \n-
    2436 aggregates[seed]=AggregatesMap<Vertex>::ISOLATED;
    \n-
    2437 ++skippedAggregates;
    \n-
    2438 continue;
    \n-
    2439 }
    \n-
    2440
    \n-
    2441 if(graph.getVertexProperties(seed).isolated()) {
    \n-
    2442 if(c.skipIsolated()) {
    \n-
    2443 // isolated vertices are not aggregated but skipped on the coarser levels.
    \n-
    2444 aggregates[seed]=AggregatesMap<Vertex>::ISOLATED;
    \n-
    2445 ++skippedAggregates;
    \n-
    2446 // skip rest as no agglomeration is done.
    \n-
    2447 continue;
    \n-
    2448 }else{
    \n-
    2449 aggregate_->seed(seed);
    \n-
    2450 growIsolatedAggregate(seed, aggregates, c);
    \n-
    2451 }
    \n-
    2452 }else{
    \n-
    2453 aggregate_->seed(seed);
    \n-
    2454 growAggregate(seed, aggregates, c);
    \n-
    2455 }
    \n-
    2456
    \n-
    2457 /* The rounding step. */
    \n-
    2458 while(!(graph.getVertexProperties(seed).isolated()) && aggregate_->size() < c.maxAggregateSize()) {
    \n-
    2459
    \n-
    2460 std::vector<Vertex> candidates;
    \n-
    2461 candidates.reserve(30);
    \n-
    2462
    \n-
    2463 typedef typename std::vector<Vertex>::const_iterator Iterator;
    \n-
    2464
    \n-
    2465 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {
    \n-
    2466
    \n-
    2467 if(graph.getVertexProperties(*vertex).isolated())
    \n-
    2468 continue; // No isolated nodes here
    \n-
    2469
    \n-
    2470 if(twoWayConnections( *vertex, aggregate_->id(), aggregates) == 0 &&
    \n-
    2471 (oneWayConnections( *vertex, aggregate_->id(), aggregates) == 0 ||
    \n-
    2472 !admissible( *vertex, aggregate_->id(), aggregates) ))
    \n-
    2473 continue;
    \n-
    2474
    \n-
    2475 std::pair<int,int> neighbourPair=neighbours(*vertex, aggregate_->id(),
    \n-
    2476 aggregates);
    \n-
    2477
    \n-
    2478 //if(aggregateNeighbours(*vertex, aggregate_->id(), aggregates) <= unusedNeighbours(*vertex, aggregates))
    \n-
    2479 // continue;
    \n-
    2480
    \n-
    2481 if(neighbourPair.first >= neighbourPair.second)
    \n-
    2482 continue;
    \n-
    2483
    \n-
    2484 if(distance(*vertex, aggregates) > c.maxDistance())
    \n-
    2485 continue; // Distance too far
    \n-
    2486 candidates.push_back(*vertex);
    \n-
    2487 break;
    \n-
    2488 }
    \n-
    2489
    \n-
    2490 if(!candidates.size()) break; // no more candidates found.
    \n-
    2491
    \n-
    2492 candidates.resize(min(candidates.size(), c.maxAggregateSize()-
    \n-
    2493 aggregate_->size()));
    \n-
    2494 aggregate_->add(candidates);
    \n-
    2495
    \n-
    2496 }
    \n-
    2497
    \n-
    2498 // try to merge aggregates consisting of only one nonisolated vertex with other aggregates
    \n-
    2499 if(aggregate_->size()==1 && c.maxAggregateSize()>1) {
    \n-
    2500 if(!graph.getVertexProperties(seed).isolated()) {
    \n-
    2501 Vertex mergedNeighbour = mergeNeighbour(seed, aggregates);
    \n-
    2502
    \n-
    2503 if(mergedNeighbour != AggregatesMap<Vertex>::UNAGGREGATED) {
    \n-
    2504 // assign vertex to the neighbouring cluster
    \n-
    2505 aggregates[seed] = aggregates[mergedNeighbour];
    \n-
    2506 aggregate_->invalidate();
    \n-
    2507 }else{
    \n-
    2508 ++avg;
    \n-
    2509 minA=min(minA,static_cast<std::size_t>(1));
    \n-
    2510 maxA=max(maxA,static_cast<std::size_t>(1));
    \n-
    2511 ++oneAggregates;
    \n-
    2512 ++conAggregates;
    \n-
    2513 }
    \n-
    2514 }else{
    \n-
    2515 ++avg;
    \n-
    2516 minA=min(minA,static_cast<std::size_t>(1));
    \n-
    2517 maxA=max(maxA,static_cast<std::size_t>(1));
    \n-
    2518 ++oneAggregates;
    \n-
    2519 ++isoAggregates;
    \n-
    2520 }
    \n-
    2521 ++avg;
    \n-
    2522 }else{
    \n-
    2523 avg+=aggregate_->size();
    \n-
    2524 minA=min(minA,aggregate_->size());
    \n-
    2525 maxA=max(maxA,aggregate_->size());
    \n-
    2526 if(graph.getVertexProperties(seed).isolated())
    \n-
    2527 ++isoAggregates;
    \n-
    2528 else
    \n-
    2529 ++conAggregates;
    \n-
    2530 }
    \n-
    2531
    \n-
    2532 }
    \n-
    2533
    \n-
    2534 Dune::dinfo<<"connected aggregates: "<<conAggregates;
    \n-
    2535 Dune::dinfo<<" isolated aggregates: "<<isoAggregates;
    \n-
    2536 if(conAggregates+isoAggregates>0)
    \n-
    2537 Dune::dinfo<<" one node aggregates: "<<oneAggregates<<" min size="
    \n-
    2538 <<minA<<" max size="<<maxA
    \n-
    2539 <<" avg="<<avg/(conAggregates+isoAggregates)<<std::endl;
    \n-
    2540
    \n-
    2541 delete aggregate_;
    \n-
    2542 return std::make_tuple(conAggregates+isoAggregates,isoAggregates,
    \n-
    2543 oneAggregates,skippedAggregates);
    \n-
    2544 }
    \n-
    2545
    \n-
    2546
    \n-
    2547 template<class G>
    \n-
    2548 Aggregator<G>::Stack::Stack(const MatrixGraph& graph, const Aggregator<G>& aggregatesBuilder,
    \n-
    2549 const AggregatesMap<Vertex>& aggregates)
    \n-
    2550 : graph_(graph), aggregatesBuilder_(aggregatesBuilder), aggregates_(aggregates), begin_(graph.begin()), end_(graph.end())
    \n-
    2551 {
    \n-
    2552 //vals_ = new Vertex[N];
    \n-
    2553 }
    \n-
    2554
    \n-
    2555 template<class G>
    \n-\n-
    2557 {
    \n-
    2558 //Dune::dverb << "Max stack size was "<<maxSize_<<" filled="<<filled_<<std::endl;
    \n-
    2559 //delete[] vals_;
    \n-
    2560 }
    \n-
    2561
    \n-
    2562 template<class G>
    \n-\n-
    2564 = std::numeric_limits<typename G::VertexDescriptor>::max();
    \n-
    2565
    \n-
    2566 template<class G>
    \n-
    2567 inline typename G::VertexDescriptor Aggregator<G>::Stack::pop()
    \n-
    2568 {
    \n-
    2569 for(; begin_!=end_ && aggregates_[*begin_] != AggregatesMap<Vertex>::UNAGGREGATED; ++begin_) ;
    \n-
    2570
    \n-
    2571 if(begin_!=end_)
    \n-
    2572 {
    \n-
    2573 typename G::VertexDescriptor current=*begin_;
    \n-
    2574 ++begin_;
    \n-
    2575 return current;
    \n-
    2576 }else
    \n-
    2577 return NullEntry;
    \n-
    2578 }
    \n-
    2579
    \n-
    2580#endif // DOXYGEN
    \n-
    2581
    \n-
    2582 template<class V>
    \n-
    \n-
    2583 void printAggregates2d(const AggregatesMap<V>& aggregates, int n, int m, std::ostream& os)
    \n-
    2584 {
    \n-
    2585 using std::max;
    \n-
    2586
    \n-
    2587 std::ios_base::fmtflags oldOpts=os.flags();
    \n-
    2588
    \n-
    2589 os.setf(std::ios_base::right, std::ios_base::adjustfield);
    \n-
    2590
    \n-
    2591 V maxVal=0;
    \n-
    2592 int width=1;
    \n-
    2593
    \n-
    2594 for(int i=0; i< n*m; i++)
    \n-
    2595 maxVal=max(maxVal, aggregates[i]);
    \n-
    2596
    \n-
    2597 for(int i=10; i < 1000000; i*=10)
    \n-
    2598 if(maxVal/i>0)
    \n-
    2599 width++;
    \n-
    2600 else
    \n-
    2601 break;
    \n-
    2602
    \n-
    2603 for(int j=0, entry=0; j < m; j++) {
    \n-
    2604 for(int i=0; i<n; i++, entry++) {
    \n-
    2605 os.width(width);
    \n-
    2606 os<<aggregates[entry]<<" ";
    \n-
    2607 }
    \n-
    2608
    \n-
    2609 os<<std::endl;
    \n-
    2610 }
    \n-
    2611 os<<std::endl;
    \n-
    2612 os.flags(oldOpts);
    \n-
    2613 }
    \n-
    \n-
    2614
    \n-
    2615
    \n-
    2616 } // namespace Amg
    \n-
    2617
    \n-
    2618} // namespace Dune
    \n-
    2619
    \n-
    2620
    \n-
    2621#endif
    \n-
    Parameter classes for customizing AMG.
    \n-\n-
    Provides classes for building the matrix graph.
    \n-
    Provides classes for handling internal properties in a graph.
    \n+
    704 assert(col != cend); // There should be a diagonal entry
    \n+
    705 *col = identity;
    \n+
    706
    \n+
    707 for(++col; col != cend; ++col)
    \n+
    708 *col = 0;
    \n+
    709 }
    \n+
    710 }
    \n+
    711 }
    \n+
    \n+
    712
    \n+
    713 template<class M, class O>
    \n+
    \n+\n+
    715 const SequentialInformation& pinfo,
    \n+
    716 const O& overlap)
    \n+
    717 {}
    \n+
    \n+
    718
    \n+
    719 } // namespace Amg
    \n+
    720} // namespace Dune
    \n+
    721#endif
    \n+\n+
    Provides classes for the Coloring process of AMG.
    \n
    Col col
    Definition matrixmatrix.hh:351
    \n-
    Matrix::ConstColIterator ColIter
    Constant column iterator of the matrix.
    Definition aggregates.hh:273
    \n-
    std::vector< real_type >::iterator valIter_
    Definition aggregates.hh:189
    \n-
    Matrix::ConstColIterator ColIter
    Constant column iterator of the matrix.
    Definition aggregates.hh:154
    \n-
    std::size_t breadthFirstSearch(const VertexDescriptor &start, const AggregateDescriptor &aggregate, const G &graph, L &visited, F1 &aggregateVisitor, F2 &nonAggregateVisitor, VM &visitedMap) const
    Breadth first search within an aggregate.
    \n-
    PoolAllocator< VertexDescriptor, 100 > Allocator
    The allocator we use for our lists and the set.
    Definition aggregates.hh:586
    \n-
    iterator begin()
    Definition aggregates.hh:737
    \n-
    int id()
    Get the id identifying the aggregate.
    \n-
    Norm norm_
    The functor for calculating the norm.
    Definition aggregates.hh:302
    \n-
    MatrixGraph::VertexDescriptor Vertex
    The vertex identifier.
    Definition aggregates.hh:920
    \n-
    AggregationCriterion()
    Constructor.
    Definition aggregates.hh:66
    \n-
    const Matrix * matrix_
    The matrix we work on.
    Definition aggregates.hh:357
    \n-
    auto operator()(const M &m, typename std::enable_if_t< Dune::IsNumber< M >::value > *sfinae=nullptr) const
    Compute the norm of a scalar.
    Definition aggregates.hh:406
    \n-
    void initRow(const Row &row, int index)
    \n-
    SymmetricMatrixDependency(const Parameters &parms)
    Definition aggregates.hh:168
    \n-
    M Matrix
    The matrix type we build the dependency of.
    Definition aggregates.hh:258
    \n-\n-
    G MatrixGraph
    The matrix graph type used.
    Definition aggregates.hh:915
    \n-
    Norm norm_
    The functor for calculating the norm.
    Definition aggregates.hh:363
    \n-
    void operator()(const EdgeIterator &edge) const
    Definition aggregates.hh:601
    \n-
    SymmetricCriterion()
    Definition aggregates.hh:524
    \n-
    Dependency()
    Definition aggregates.hh:290
    \n-
    void examine(const ColIter &col)
    \n-
    M Matrix
    The matrix type we build the dependency of.
    Definition aggregates.hh:319
    \n-
    real_type diagonal_
    The norm of the current diagonal.
    Definition aggregates.hh:187
    \n-
    N Norm
    The norm to use for examining the matrix entries.
    Definition aggregates.hh:263
    \n-
    iterator end()
    Definition aggregates.hh:742
    \n-
    UnSymmetricCriterion(const Parameters &parms)
    Definition aggregates.hh:541
    \n-
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n-
    void initRow(const Row &row, int index)
    Definition aggregates.hh:201
    \n-\n-
    static const Vertex NullEntry
    Definition aggregates.hh:1008
    \n-
    void examine(const ColIter &col)
    Definition aggregates.hh:214
    \n-
    Dependency(const Parameters &parms)
    Definition aggregates.hh:286
    \n-
    int row_
    index of the currently evaluated row.
    Definition aggregates.hh:185
    \n-
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n-
    std::tuple< int, int, int, int > build(const M &m, G &graph, AggregatesMap< Vertex > &aggregates, const C &c, bool finestLevel)
    Build the aggregates.
    \n-
    FrontNeighbourCounter(const MatrixGraph &front)
    Constructor.
    \n-
    Matrix::row_type Row
    Constant Row iterator of the matrix.
    Definition aggregates.hh:329
    \n-
    const Matrix * matrix_
    The matrix we work on.
    Definition aggregates.hh:296
    \n-
    const AggregateDescriptor & operator[](const VertexDescriptor &v) const
    Get the aggregate a vertex belongs to.
    \n-
    void examine(G &graph, const typename G::EdgeIterator &edge, const ColIter &col)
    \n-
    AggregateVisitor(const AggregatesMap< Vertex > &aggregates, const AggregateDescriptor &aggregate, Visitor &visitor)
    Constructor.
    \n-
    Matrix::ConstColIterator ColIter
    Constant column iterator of the matrix.
    Definition aggregates.hh:334
    \n-
    ~AggregatesMap()
    Destructor.
    \n-
    Matrix::field_type field_type
    The current max value.
    Definition aggregates.hh:179
    \n-
    void decrement()
    Decrement counter.
    \n-
    Aggregate(MatrixGraph &graph, AggregatesMap< Vertex > &aggregates, VertexSet &connectivity, std::vector< Vertex > &front_)
    Constructor.
    \n-
    V Visitor
    The type of the adapted visitor.
    Definition aggregates.hh:1064
    \n-
    std::size_t * SphereMap
    Type of the mapping of aggregate members onto distance spheres.
    Definition aggregates.hh:809
    \n-
    AggregationCriterion(const Parameters &parms)
    Definition aggregates.hh:70
    \n-
    Matrix::row_type Row
    Constant Row iterator of the matrix.
    Definition aggregates.hh:268
    \n-
    VertexSet::size_type connectSize()
    Get tne number of connections to other aggregates.
    \n-
    std::vector< real_type > vals_
    Definition aggregates.hh:188
    \n-
    N Norm
    The norm to use for examining the matrix entries.
    Definition aggregates.hh:324
    \n-
    void printAggregates2d(const AggregatesMap< V > &aggregates, int n, int m, std::ostream &os)
    Definition aggregates.hh:2583
    \n-
    void invalidate()
    Definition aggregates.hh:822
    \n-
    const_iterator begin() const
    Definition aggregates.hh:725
    \n-
    real_type maxValue_
    Definition aggregates.hh:181
    \n-
    Norm norm_
    The functor for calculating the norm.
    Definition aggregates.hh:183
    \n-
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n-
    VertexSet::const_iterator const_iterator
    Const iterator over a vertex list.
    Definition aggregates.hh:804
    \n-
    SymmetricCriterion(const Parameters &parms)
    Definition aggregates.hh:521
    \n-
    MatrixGraph::VertexDescriptor AggregateDescriptor
    The type of the aggregate descriptor.
    Definition aggregates.hh:923
    \n-
    real_type maxValue_
    Definition aggregates.hh:361
    \n-
    void init(const Matrix *matrix)
    Definition aggregates.hh:195
    \n-
    real_type diagonal_
    The norm of the current diagonal.
    Definition aggregates.hh:367
    \n-
    AggregateDescriptor * iterator
    Definition aggregates.hh:735
    \n-
    SymmetricDependency(const Parameters &parms)
    Definition aggregates.hh:348
    \n-
    FieldTraits< field_type >::real_type real_type
    Definition aggregates.hh:360
    \n-
    ~Aggregator()
    Destructor.
    \n-
    void examine(G &graph, const typename G::EdgeIterator &edge, const ColIter &col)
    \n-
    void add(const Vertex &vertex)
    Add a vertex to the aggregate.
    \n-
    T DependencyPolicy
    The policy for calculating the dependency graph.
    Definition aggregates.hh:55
    \n-
    void add(std::vector< Vertex > &vertex)
    \n-
    void examine(const ColIter &col)
    \n-
    Aggregator()
    Constructor.
    \n-
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    Examine an edge.
    \n-
    FrontMarker(std::vector< Vertex > &front, MatrixGraph &graph)
    Constructor.
    \n-
    FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const
    compute the norm of a matrix.
    Definition aggregates.hh:506
    \n-
    void init(const Matrix *matrix)
    \n+
    bool operator()(const OverlapVertex< A > &o1, const OverlapVertex< A > &o2)
    Definition galerkin.hh:155
    \n+
    static void constructNonOverlapConnectivity(R &row, G &graph, V &visitedMap, const AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename G::VertexDescriptor &seed)
    Construct the connectivity of an aggregate in the overlap.
    Definition galerkin.hh:313
    \n+
    G Graph
    The type of the graph.
    Definition galerkin.hh:211
    \n+
    void operator++()
    Definition galerkin.hh:539
    \n+
    void operator()(const ConstEdgeIterator &edge)
    Process an edge pointing to another aggregate.
    Definition galerkin.hh:359
    \n+
    void insert(const typename M::size_type &index)
    Definition galerkin.hh:552
    \n+
    static void constructOverlapConnectivity(R &row, G &graph, V &visitedMap, const AggregatesMap< typename G::VertexDescriptor > &aggregates, const OverlapVertex< typename G::VertexDescriptor > *&seed, const OverlapVertex< typename G::VertexDescriptor > *overlapEnd)
    Definition galerkin.hh:331
    \n+
    G::MutableMatrix * build(G &fineGraph, V &visitedMap, const ParallelInformation &pinfo, AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename G::Matrix::size_type &size, const Set &copy)
    Calculates the coarse matrix via a Galerkin product.
    Definition galerkin.hh:563
    \n+
    std::size_t index()
    Definition galerkin.hh:81
    \n+
    T ParallelInformation
    Definition galerkin.hh:120
    \n+
    G::VertexDescriptor Vertex
    Definition galerkin.hh:272
    \n+
    T Aggregate
    The aggregate descriptor.
    Definition galerkin.hh:37
    \n+
    SparsityBuilder(M &matrix)
    Constructor.
    Definition galerkin.hh:513
    \n+
    ConnectedBuilder(const AggregatesMap< Vertex > &aggregates, Graph &graph, VisitedMap &visitedMap, Set &connected)
    Constructor.
    Definition galerkin.hh:352
    \n+
    Graph::ConstEdgeIterator ConstEdgeIterator
    The constant edge iterator.
    Definition galerkin.hh:215
    \n+
    T Vertex
    The vertex descriptor.
    Definition galerkin.hh:42
    \n+
    G::VertexDescriptor Vertex
    Definition galerkin.hh:288
    \n+
    static void examine(G &graph, V &visitedMap, const T &pinfo, const AggregatesMap< Vertex > &aggregates, const O &overlap, const OverlapVertex< Vertex > *overlapVertices, const OverlapVertex< Vertex > *overlapEnd, R &row)
    Definition galerkin.hh:420
    \n+
    V VisitedMap
    The type of the map for marking vertices as visited.
    Definition galerkin.hh:225
    \n
    int visitNeighbours(const G &graph, const typename G::VertexDescriptor &vertex, V &visitor)
    Visit all neighbour vertices of a vertex in a graph.
    \n-
    void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)
    Sets reasonable default values for an isotropic problem.
    Definition aggregates.hh:82
    \n-
    const_iterator end() const
    Definition aggregates.hh:730
    \n-
    V AggregateDescriptor
    The aggregate descriptor type.
    Definition aggregates.hh:580
    \n-
    static const V ISOLATED
    Identifier of isolated vertices.
    Definition aggregates.hh:571
    \n-
    int row_
    index of the currently evaluated row.
    Definition aggregates.hh:365
    \n-
    SymmetricMatrixDependency()
    Definition aggregates.hh:171
    \n-\n-\n-
    real_type diagonal_
    The norm of the current diagonal.
    Definition aggregates.hh:306
    \n-
    std::size_t noVertices() const
    Get the number of vertices.
    \n-
    void setDefaultValuesAnisotropic(std::size_t dim, std::size_t diameter=2)
    Sets reasonable default values for an aisotropic problem.
    Definition aggregates.hh:105
    \n-
    AggregatesMap(std::size_t noVertices)
    Constructs with allocating memory.
    \n-
    Matrix::field_type field_type
    The current max value.
    Definition aggregates.hh:359
    \n-
    AggregateDescriptor & operator[](const VertexDescriptor &v)
    Get the aggregate a vertex belongs to.
    \n-
    AggregatesMap()
    Constructs without allocating memory.
    \n-
    int value()
    Access the current count.
    \n-
    SLList< VertexDescriptor, Allocator > VertexList
    The type of a single linked list of vertex descriptors.
    Definition aggregates.hh:592
    \n-\n-
    ConnectivityCounter(const VertexSet &connected, const AggregatesMap< Vertex > &aggregates)
    Constructor.
    \n-
    VertexSet::size_type size()
    Get the size of the aggregate.
    \n-
    const_iterator end() const
    get an iterator over the vertices of the aggregate.
    \n-
    void init(const Matrix *matrix)
    \n-
    UnSymmetricCriterion()
    Definition aggregates.hh:544
    \n-
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n-
    const AggregateDescriptor * const_iterator
    Definition aggregates.hh:723
    \n-
    int row_
    index of the currently evaluated row.
    Definition aggregates.hh:304
    \n-
    Stack(const MatrixGraph &graph, const Aggregator< G > &aggregatesBuilder, const AggregatesMap< Vertex > &aggregates)
    \n-
    FieldTraits< field_type >::real_type real_type
    Definition aggregates.hh:180
    \n-
    void initRow(const Row &row, int index)
    \n-
    M Matrix
    The matrix type we build the dependency of.
    Definition aggregates.hh:139
    \n-
    FieldTraits< field_type >::real_type real_type
    Definition aggregates.hh:299
    \n-
    const Matrix * matrix_
    The matrix we work on.
    Definition aggregates.hh:177
    \n-
    S VertexSet
    The type of a single linked list of vertex descriptors.
    Definition aggregates.hh:801
    \n-
    FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const
    compute the norm of a matrix.
    Definition aggregates.hh:490
    \n-
    static const V UNAGGREGATED
    Identifier of not yet aggregated vertices.
    Definition aggregates.hh:566
    \n-
    std::size_t breadthFirstSearch(const VertexDescriptor &start, const AggregateDescriptor &aggregate, const G &graph, F &aggregateVisitor, VM &visitedMap) const
    Breadth first search within an aggregate.
    \n-
    Matrix::field_type field_type
    The current max value.
    Definition aggregates.hh:298
    \n-
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n-
    std::ostream & operator<<(std::ostream &os, const AggregationCriterion< T > &criterion)
    Definition aggregates.hh:113
    \n-
    bool isIsolated()
    Definition aggregates.hh:240
    \n-
    void allocate(std::size_t noVertices)
    Allocate memory for holding the information.
    \n-
    N Norm
    The norm to use for examining the matrix entries.
    Definition aggregates.hh:144
    \n-
    FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const
    compute the norm of a matrix.
    Definition aggregates.hh:473
    \n-
    void reconstruct(const Vertex &vertex)
    Reconstruct the aggregat from an seed node.
    \n-
    const_iterator begin() const
    get an iterator over the vertices of the aggregate.
    \n-
    FieldTraits< typenameM::field_type >::real_type operator()(const M &m, typename std::enable_if_t<!Dune::IsNumber< M >::value > *sfinae=nullptr) const
    compute the norm of a matrix.
    Definition aggregates.hh:390
    \n-
    MatrixGraph::VertexDescriptor Vertex
    The vertex descriptor type.
    Definition aggregates.hh:789
    \n-
    void seed(const Vertex &vertex)
    Initialize the aggregate with one vertex.
    \n-\n-
    SymmetricDependency()
    Definition aggregates.hh:351
    \n-
    void clear()
    Clear the aggregate.
    \n-
    void free()
    Free the allocated memory.
    \n-
    void increment()
    Increment counter.
    \n-
    void buildDependency(G &graph, const typename C::Matrix &matrix, C criterion, bool finestLevel)
    Build the dependency of the matrix graph.
    \n-
    V VertexDescriptor
    The vertex descriptor type.
    Definition aggregates.hh:575
    \n-
    real_type maxValue_
    Definition aggregates.hh:300
    \n-
    std::tuple< int, int, int, int > buildAggregates(const M &matrix, G &graph, const C &criterion, bool finestLevel)
    Build the aggregates.
    \n-
    Matrix::row_type Row
    Constant Row iterator of the matrix.
    Definition aggregates.hh:149
    \n-
    PoolAllocator< Vertex, 100 > Allocator
    The allocator we use for our lists and the set.
    Definition aggregates.hh:795
    \n-
    G MatrixGraph
    Definition aggregates.hh:785
    \n-
    void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)
    \n-
    @ is_sign_preserving
    Definition aggregates.hh:483
    \n-
    @ is_sign_preserving
    Definition aggregates.hh:382
    \n-
    @ is_sign_preserving
    Definition aggregates.hh:499
    \n-
    @ is_sign_preserving
    Definition aggregates.hh:466
    \n+
    S Set
    The type of the connected set.
    Definition galerkin.hh:220
    \n+
    Aggregate * aggregate
    The aggregate the vertex belongs to.
    Definition galerkin.hh:47
    \n+
    std::size_t sumRowSize()
    Definition galerkin.hh:534
    \n+
    Vertex vertex
    The vertex descriptor.
    Definition galerkin.hh:52
    \n+
    std::size_t minRowSize()
    Definition galerkin.hh:528
    \n+
    static void set(M &coarse, const T &pinfo, const O &copy)
    Definition galerkin.hh:682
    \n+
    Graph::VertexDescriptor Vertex
    The vertex descriptor of the graph.
    Definition galerkin.hh:230
    \n+
    void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse, const I &pinfo, const O &copy)
    Calculate the galerkin product.
    \n+
    std::size_t maxRowSize()
    Definition galerkin.hh:523
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n-
    typename Imp::BlockTraits< T >::field_type field_type
    Export the type representing the underlying field.
    Definition matrix.hh:565
    \n-
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n-
    MatrixImp::DenseMatrixBase< T, A >::window_type row_type
    The type implementing a matrix row.
    Definition matrix.hh:574
    \n-
    Base class of all aggregation criterions.
    Definition aggregates.hh:49
    \n-
    Dependency policy for symmetric matrices.
    Definition aggregates.hh:134
    \n-
    Dependency policy for symmetric matrices.
    Definition aggregates.hh:253
    \n-
    Dependency policy for symmetric matrices.
    Definition aggregates.hh:314
    \n-
    Norm that uses only the [N][N] entry of the block to determine couplings.
    Definition aggregates.hh:379
    \n-
    Norm that uses only the [0][0] entry of the block to determine couplings.
    Definition aggregates.hh:455
    \n-
    Functor using the row sum (infinity) norm to determine strong couplings.
    Definition aggregates.hh:463
    \n-
    Definition aggregates.hh:480
    \n-
    Definition aggregates.hh:496
    \n-
    Criterion taking advantage of symmetric matrices.
    Definition aggregates.hh:519
    \n-
    Criterion suitable for unsymmetric matrices.
    Definition aggregates.hh:539
    \n-
    Class for building the aggregates.
    Definition aggregates.hh:909
    \n
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n
    A Dummy visitor that does nothing for each visited edge.
    Definition aggregates.hh:598
    \n-
    A class for temporarily storing the vertices of an aggregate in.
    Definition aggregates.hh:778
    \n-
    M::size_type VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:73
    \n-
    EdgeIteratorT< const MatrixGraph< Matrix > > ConstEdgeIterator
    The constant edge iterator type.
    Definition graph.hh:298
    \n-
    Iterator over all edges starting from a vertex.
    Definition graph.hh:95
    \n-
    The vertex iterator type of the graph.
    Definition graph.hh:209
    \n-
    All parameters for AMG.
    Definition parameters.hh:393
    \n+
    Definition galerkin.hh:33
    \n+
    Functor for building the sparsity pattern of the matrix using examineConnectivity.
    Definition galerkin.hh:63
    \n+
    Definition galerkin.hh:99
    \n+
    Definition galerkin.hh:118
    \n+
    Definition galerkin.hh:185
    \n+
    Visitor for identifying connected aggregates during a breadthFirstSearch.
    Definition galerkin.hh:206
    \n+
    Definition galerkin.hh:271
    \n+
    Definition galerkin.hh:300
    \n+
    Definition pinfo.hh:28
    \n+
    @ nonoverlapping
    Category for non-overlapping solvers.
    Definition solvercategory.hh:27
    \n+
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,2654 +1,816 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-aggregates.hh\n+galerkin.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_AGGREGATES_HH\n-6#define DUNE_AMG_AGGREGATES_HH\n+5#ifndef DUNE_GALERKIN_HH\n+6#define DUNE_GALERKIN_HH\n 7\n-8\n-9#include \"_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs_\b._\bh_\bh\"\n-10#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n-11#include \"_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b._\bh_\bh\"\n-12#include \"_\bc_\bo_\bm_\bb_\bi_\bn_\be_\bd_\bf_\bu_\bn_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-13\n-14#include \n-15#include \n-16#include \n-17#include \n-18#include \n-19#include \n-20\n-21#include \n-22#include \n-23#include \n-24#include \n-25#include \n-26#include \n-27#include \n-28\n-29namespace _\bD_\bu_\bn_\be\n-30{\n-31 namespace Amg\n-32 {\n-33\n-47 template\n-_\b4_\b8 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn : public T\n-49 {\n-50\n-51 public:\n-_\b5_\b5 typedef T _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\bo_\bl_\bi_\bc_\by;\n+8#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n+9#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15\n+16namespace _\bD_\bu_\bn_\be\n+17{\n+18 namespace Amg\n+19 {\n+31 template\n+_\b3_\b2 struct _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx\n+33 {\n+_\b3_\b7 typedef T _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be;\n+38\n+_\b4_\b2 typedef T _\bV_\be_\br_\bt_\be_\bx;\n+43\n+_\b4_\b7 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be* _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be;\n+48\n+_\b5_\b2 _\bV_\be_\br_\bt_\be_\bx _\bv_\be_\br_\bt_\be_\bx;\n+53 };\n+54\n+55\n 56\n-_\b6_\b6 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn()\n-67 : T()\n-68 {}\n-69\n-_\b7_\b0 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n-71 : T(parms)\n-72 {}\n-_\b8_\b2 void _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(std::size_t dim, std::size_t diameter=2)\n-83 {\n-84 this->setMaxDistance(diameter-1);\n-85 std::size_t csize=1;\n-86\n-87 for(; dim>0; dim--) {\n-88 csize*=diameter;\n-89 this->setMaxDistance(this->maxDistance()+diameter-1);\n-90 }\n-91 this->setMinAggregateSize(csize);\n-92 this->setMaxAggregateSize(static_cast(csize*1.5));\n-93 }\n-94\n-_\b1_\b0_\b5 void _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bA_\bn_\bi_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(std::size_t dim,std::size_t diameter=2)\n-106 {\n-107 _\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc(dim, diameter);\n-108 this->setMaxDistance(this->maxDistance()+dim-1);\n-109 }\n-110 };\n-111\n-112 template\n-_\b1_\b1_\b3 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\bT_\b>&\n-criterion)\n-114 {\n-115 os<<\"{ maxdistance=\"<\n-_\b1_\b3_\b3 class _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by : public _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-134 {\n-135 public:\n-_\b1_\b3_\b9 typedef M _\bM_\ba_\bt_\br_\bi_\bx;\n-140\n-_\b1_\b4_\b4 typedef N _\bN_\bo_\br_\bm;\n-145\n-_\b1_\b4_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bR_\bo_\bw;\n-150\n-_\b1_\b5_\b4 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bl_\bI_\bt_\be_\br;\n-155\n-156 void _\bi_\bn_\bi_\bt(const _\bM_\ba_\bt_\br_\bi_\bx* matrix);\n-157\n-158 void _\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int index);\n-159\n-160 void _\be_\bx_\ba_\bm_\bi_\bn_\be(const _\bC_\bo_\bl_\bI_\bt_\be_\br& _\bc_\bo_\bl);\n+61 template\n+_\b6_\b2 class _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br\n+63 {\n+64 public:\n+70 _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br(M& matrix);\n+71\n+72 void _\bi_\bn_\bs_\be_\br_\bt(const typename M::size_type& _\bi_\bn_\bd_\be_\bx);\n+73\n+74 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+75\n+76 std::size_t _\bm_\bi_\bn_\bR_\bo_\bw_\bS_\bi_\bz_\be();\n+77\n+78 std::size_t _\bm_\ba_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be();\n+79\n+80 std::size_t _\bs_\bu_\bm_\bR_\bo_\bw_\bS_\bi_\bz_\be();\n+_\b8_\b1 std::size_t _\bi_\bn_\bd_\be_\bx()\n+82 {\n+83 return row_.index();\n+84 }\n+85 private:\n+87 typename M::CreateIterator row_;\n+89 std::size_t minRowSize_;\n+91 std::size_t maxRowSize_;\n+92 std::size_t sumRowSize_;\n+93#ifdef DUNE_ISTL_WITH_CHECKING\n+94 bool diagonalInserted;\n+95#endif\n+96 };\n+97\n+_\b9_\b8 class _\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+99 {\n+100 public:\n+109 template\n+_\b1_\b1_\b0 void _\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be(const M& fine, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>& aggregates, M&\n+coarse,\n+111 const I& pinfo, const O& copy);\n+112\n+113 };\n+114\n+115 template\n+_\b1_\b1_\b6 class _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+117 : public _\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+118 {\n+119 public:\n+_\b1_\b2_\b0 typedef T _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n+121\n+131 template\n+132 typename G::MutableMatrix* _\bb_\bu_\bi_\bl_\bd(G& fineGraph, V& visitedMap,\n+133 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+134 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+135 const typename G::Matrix::size_type& size,\n+136 const Set& copy);\n+137 private:\n+138\n+145 template\n+146 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>*\n+147 buildOverlapVertices(const G& graph, const I& pinfo,\n+148 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+149 const Set& overlap,\n+150 std::size_t& overlapCount);\n+151\n+152 template\n+153 struct OVLess\n+154 {\n+_\b1_\b5_\b5 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bA_\b>& o1, const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bA_\b>& o2)\n+156 {\n+157 return *o1._\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be < *o2._\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be;\n+158 }\n+159 };\n+160 };\n 161\n-162 template\n-163 void _\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph, const typename G::EdgeIterator& edge, const _\bC_\bo_\bl_\bI_\bt_\be_\br&\n-_\bc_\bo_\bl);\n-164\n-165 bool _\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd();\n-166\n-167\n-_\b1_\b6_\b8 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n-169 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(parms)\n-170 {}\n-_\b1_\b7_\b1 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by()\n-172 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs()\n-173 {}\n-174\n-175 protected:\n-_\b1_\b7_\b7 const _\bM_\ba_\bt_\br_\bi_\bx* _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n-_\b1_\b7_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b1_\b8_\b0 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-_\b1_\b8_\b1 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_;\n-_\b1_\b8_\b3 _\bN_\bo_\br_\bm _\bn_\bo_\br_\bm_\b_;\n-_\b1_\b8_\b5 int _\br_\bo_\bw_\b_;\n-_\b1_\b8_\b7 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_;\n-_\b1_\b8_\b8 std::vector _\bv_\ba_\bl_\bs_\b_;\n-_\b1_\b8_\b9 typename std::vector::iterator _\bv_\ba_\bl_\bI_\bt_\be_\br_\b_;\n-190\n-191 };\n-192\n-193\n-194 template\n-_\b1_\b9_\b5 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt(const _\bM_\ba_\bt_\br_\bi_\bx* matrix)\n-196 {\n-197 matrix_ = matrix;\n-198 }\n+162 template<>\n+_\b1_\b6_\b3 class _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn>\n+164 : public _\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+165 {\n+166 public:\n+176 template\n+177 typename G::MutableMatrix* _\bb_\bu_\bi_\bl_\bd(G& fineGraph, V& visitedMap,\n+178 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+179 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+180 const typename G::Matrix::size_type& size,\n+181 const Set& copy);\n+182 };\n+183\n+_\b1_\b8_\b4 struct _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n+185 {\n+186 template\n+187 static void _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(R& row, G& graph, V& visitedMap,\n+188 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+189 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>*& seed,\n+190 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>* overlapEnd);\n+191\n+195 template\n+196 static void _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bN_\bo_\bn_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(R& row, G& graph, V&\n+visitedMap,\n+197 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+198 const typename G::VertexDescriptor& seed);\n 199\n-200 template\n-_\b2_\b0_\b1 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int\n-index)\n-202 {\n-203 using std::min;\n-204 vals_.assign(row.size(), 0.0);\n-205 assert(vals_.size()==row.size());\n-206 valIter_=vals_.begin();\n-207\n-208 maxValue_ = min(- std::numeric_limits::max(), std::\n-numeric_limits::min());\n-209 diagonal_=norm_(row[index]);\n-210 row_ = index;\n-211 }\n-212\n-213 template\n-_\b2_\b1_\b4 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(const _\bC_\bo_\bl_\bI_\bt_\be_\br& _\bc_\bo_\bl)\n-215 {\n-216 using std::max;\n-217 // skip positive offdiagonals if norm preserves sign of them.\n-218 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be eij = norm_(*_\bc_\bo_\bl);\n-219 if(!N::is_sign_preserving || eij<0) // || eji<0)\n-220 {\n-221 *valIter_ = eij/diagonal_*eij/norm_(matrix_->operator[](_\bc_\bo_\bl.index())\n-[_\bc_\bo_\bl.index()]);\n-222 maxValue_ = max(maxValue_, *valIter_);\n-223 }else\n-224 *valIter_ =0;\n-225 ++valIter_;\n-226 }\n-227\n-228 template\n-229 template\n-_\b2_\b3_\b0 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(G&, const typename G::\n-EdgeIterator& edge, const _\bC_\bo_\bl_\bI_\bt_\be_\br&)\n-231 {\n-232 if(*valIter_ > alpha() * maxValue_) {\n-233 edge.properties().setDepends();\n-234 edge.properties().setInfluences();\n-235 }\n-236 ++valIter_;\n-237 }\n-238\n-239 template\n-_\b2_\b4_\b0 inline bool _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd()\n-241 {\n-242 if(diagonal_==0)\n-243 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"No diagonal entry for row \"<\n+_\b2_\b0_\b5 class _\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br\n+206 {\n+207 public:\n+_\b2_\b1_\b1 typedef G _\bG_\br_\ba_\bp_\bh;\n+_\b2_\b1_\b5 typedef typename Graph::ConstEdgeIterator _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+216\n+_\b2_\b2_\b0 typedef S _\bS_\be_\bt;\n+221\n+_\b2_\b2_\b5 typedef V _\bV_\bi_\bs_\bi_\bt_\be_\bd_\bM_\ba_\bp;\n+226\n+_\b2_\b3_\b0 typedef typename Graph::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n+231\n+239 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, _\bG_\br_\ba_\bp_\bh& graph,\n+240 _\bV_\bi_\bs_\bi_\bt_\be_\bd_\bM_\ba_\bp& visitedMap, _\bS_\be_\bt& connected);\n+241\n+246 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n 247\n-251 template\n-_\b2_\b5_\b2 class _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by : public _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-253 {\n-254 public:\n-_\b2_\b5_\b8 typedef M _\bM_\ba_\bt_\br_\bi_\bx;\n-259\n-_\b2_\b6_\b3 typedef N _\bN_\bo_\br_\bm;\n-264\n-_\b2_\b6_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bR_\bo_\bw;\n-269\n-_\b2_\b7_\b3 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bl_\bI_\bt_\be_\br;\n-274\n-_\b2_\b7_\b5 void _\bi_\bn_\bi_\bt(const _\bM_\ba_\bt_\br_\bi_\bx* matrix);\n-276\n-_\b2_\b7_\b7 void _\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int index);\n-278\n-_\b2_\b7_\b9 void _\be_\bx_\ba_\bm_\bi_\bn_\be(const _\bC_\bo_\bl_\bI_\bt_\be_\br& _\bc_\bo_\bl);\n-280\n-281 template\n-_\b2_\b8_\b2 void _\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph, const typename G::EdgeIterator& edge, const _\bC_\bo_\bl_\bI_\bt_\be_\br&\n-_\bc_\bo_\bl);\n-283\n-_\b2_\b8_\b4 bool _\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd();\n-285\n-_\b2_\b8_\b6 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n-287 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(parms)\n-288 {}\n+248 private:\n+252 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n+253\n+254 _\bG_\br_\ba_\bp_\bh& graph_;\n+255\n+259 _\bV_\bi_\bs_\bi_\bt_\be_\bd_\bM_\ba_\bp& visitedMap_;\n+260\n+264 _\bS_\be_\bt& connected_;\n+265 };\n+266\n+267 };\n+268\n+269 template\n+_\b2_\b7_\b0 struct _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br : public _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n+271 {\n+_\b2_\b7_\b2 typedef typename G::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n+273\n+274 template\n+275 static void _\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph,\n+276 V& visitedMap,\n+277 const T& pinfo,\n+278 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+279 const O& overlap,\n+280 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>* overlapVertices,\n+281 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>* overlapEnd,\n+282 R& row);\n+283 };\n+284\n+285 template\n+_\b2_\b8_\b6 struct _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br : public\n+_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n+287 {\n+_\b2_\b8_\b8 typedef typename G::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n 289\n-_\b2_\b9_\b0 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by()\n-291 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs()\n-292 {}\n-293\n-294 protected:\n-_\b2_\b9_\b6 const _\bM_\ba_\bt_\br_\bi_\bx* _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n-_\b2_\b9_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b2_\b9_\b9 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-_\b3_\b0_\b0 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_;\n-_\b3_\b0_\b2 _\bN_\bo_\br_\bm _\bn_\bo_\br_\bm_\b_;\n-_\b3_\b0_\b4 int _\br_\bo_\bw_\b_;\n-_\b3_\b0_\b6 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_;\n-307 };\n-308\n-312 template\n-_\b3_\b1_\b3 class _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by : public _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-314 {\n-315 public:\n-_\b3_\b1_\b9 typedef M _\bM_\ba_\bt_\br_\bi_\bx;\n-320\n-_\b3_\b2_\b4 typedef N _\bN_\bo_\br_\bm;\n-325\n-_\b3_\b2_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bR_\bo_\bw;\n-330\n-_\b3_\b3_\b4 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bl_\bI_\bt_\be_\br;\n-335\n-_\b3_\b3_\b6 void _\bi_\bn_\bi_\bt(const _\bM_\ba_\bt_\br_\bi_\bx* matrix);\n-337\n-_\b3_\b3_\b8 void _\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int index);\n-339\n-_\b3_\b4_\b0 void _\be_\bx_\ba_\bm_\bi_\bn_\be(const _\bC_\bo_\bl_\bI_\bt_\be_\br& _\bc_\bo_\bl);\n-341\n-342 template\n-_\b3_\b4_\b3 void _\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph, const typename G::EdgeIterator& edge, const _\bC_\bo_\bl_\bI_\bt_\be_\br&\n-_\bc_\bo_\bl);\n-344\n-_\b3_\b4_\b5 bool _\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd();\n-346\n-347\n-_\b3_\b4_\b8 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n-349 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(parms)\n-350 {}\n-_\b3_\b5_\b1 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by()\n-352 : _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs()\n-353 {}\n-354\n-355 protected:\n-_\b3_\b5_\b7 const _\bM_\ba_\bt_\br_\bi_\bx* _\bm_\ba_\bt_\br_\bi_\bx_\b_;\n-_\b3_\b5_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b3_\b6_\b0 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-_\b3_\b6_\b1 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_;\n-_\b3_\b6_\b3 _\bN_\bo_\br_\bm _\bn_\bo_\br_\bm_\b_;\n-_\b3_\b6_\b5 int _\br_\bo_\bw_\b_;\n-_\b3_\b6_\b7 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_;\n-368 private:\n-369 void _\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int index, const std::true_type&);\n-370 void _\bi_\bn_\bi_\bt_\bR_\bo_\bw(const _\bR_\bo_\bw& row, int index, const std::false_type&);\n-371 };\n-372\n-377 template\n-_\b3_\b7_\b8 class _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n-379 {\n-380 public:\n-381 enum { /* @brief We preserve the sign.*/\n-382 _\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg = true\n-_\b3_\b8_\b3 };\n+290 template\n+291 static void _\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph,\n+292 V& visitedMap,\n+293 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+294 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+295 R& row);\n+296 };\n+297\n+298 template\n+_\b2_\b9_\b9 struct _\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br\n+300 {\n+301 template\n+302 static void _\bs_\be_\bt(M& coarse, const T& pinfo, const O& copy);\n+303 };\n+304\n+305 template<>\n+_\b3_\b0_\b6 struct _\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn>\n+307 {\n+308 template\n+309 static void _\bs_\be_\bt(M& coarse, const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo, const O&\n+copy);\n+310 };\n+311\n+312 template\n+_\b3_\b1_\b3 void _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bN_\bo_\bn_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(R& row,\n+G& graph, V& visitedMap,\n+314 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+315 const typename G::VertexDescriptor& seed)\n+316 {\n+317 assert(row.index()==aggregates[seed]);\n+318 row.insert(aggregates[seed]);\n+319 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bG_\b,_\bR_\b,_\bV_\b> conBuilder(aggregates, graph, visitedMap, row);\n+320 typedef typename G::VertexDescriptor Vertex;\n+321 typedef std::allocator Allocator;\n+322 typedef SLList VertexList;\n+323 typedef typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br DummyVisitor;\n+324 VertexList vlist;\n+325 DummyVisitor dummy;\n+326 aggregates.template breadthFirstSearch(seed,aggregates[seed],\n+graph, vlist, dummy,\n+327 conBuilder, visitedMap);\n+328 }\n+329\n+330 template\n+_\b3_\b3_\b1 void _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(R& row, G&\n+graph, V& visitedMap,\n+332 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+333 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>*& seed,\n+334 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>* overlapEnd)\n+335 {\n+336 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bG_\b,_\bR_\b,_\bV_\b> conBuilder(aggregates, graph, visitedMap, row);\n+337 const typename G::VertexDescriptor aggregate=*seed->_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be;\n+338\n+339 if (row.index()==*seed->_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be) {\n+340 while(seed != overlapEnd && aggregate == *seed->_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be) {\n+341 row.insert(*seed->_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be);\n+342 // Walk over all neighbours and add them to the connected array.\n+343 _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(graph, seed->_\bv_\be_\br_\bt_\be_\bx, conBuilder);\n+344 // Mark vertex as visited\n+345 put(visitedMap, seed->_\bv_\be_\br_\bt_\be_\bx, true);\n+346 ++seed;\n+347 }\n+348 }\n+349 }\n+350\n+351 template\n+_\b3_\b5_\b2 _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bG_\b,_\bS_\b,_\bV_\b>_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br\n+(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+353 _\bG_\br_\ba_\bp_\bh& graph, _\bV_\bi_\bs_\bi_\bt_\be_\bd_\bM_\ba_\bp& visitedMap,\n+354 _\bS_\be_\bt& connected)\n+355 : aggregates_(aggregates), graph_(graph), visitedMap_(visitedMap),\n+connected_(connected)\n+356 {}\n+357\n+358 template\n+_\b3_\b5_\b9 void _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bG_\b,_\bS_\b,_\bV_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const\n+_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n+360 {\n+361 const _\bV_\be_\br_\bt_\be_\bx& vertex = aggregates_[edge.target()];\n+362 assert(vertex!= _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n+363 if(vertex!= _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n+364 connected_.insert(vertex);\n+365 }\n+366\n+367 template\n+368 template\n+369 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>*\n+370 _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bT_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\bi_\bc_\be_\bs(const G& graph, const I& pinfo,\n+371 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+372 const Set& overlap,\n+373 std::size_t& overlapCount)\n+374 {\n+375 // count the overlap vertices.\n+376 typedef typename G::ConstVertexIterator ConstIterator;\n+377 typedef typename I::GlobalLookupIndexSet GlobalLookup;\n+378 typedef typename GlobalLookup::IndexPair IndexPair;\n+379\n+380 const ConstIterator end = graph.end();\n+381 overlapCount = 0;\n+382\n+383 const GlobalLookup& lookup=pinfo.globalLookup();\n 384\n-389 template\n-_\b3_\b9_\b0 typename FieldTraits::real_type _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const M&\n-m,\n-391 [[maybe_unused]] typename std::enable_if_t::value>*\n-sfinae = nullptr) const\n-392 {\n-393 typedef typename M::field_type field_type;\n-394 typedef typename FieldTraits::real_type real_type;\n-395 static_assert( std::is_convertible::value,\n-396 \"use of diagonal norm in AMG not implemented for complex field_type\");\n-397 return m[N][N];\n-398 // possible implementation for complex types: return signed_abs(m[N][N]);\n-399 }\n-400\n-405 template\n-_\b4_\b0_\b6 auto _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const M& m,\n-407 typename std::enable_if_t::value>* sfinae = nullptr)\n-const\n-408 {\n-409 typedef typename FieldTraits::real_type real_type;\n-410 static_assert( std::is_convertible::value,\n-411 \"use of diagonal norm in AMG not implemented for complex field_type\");\n-412 return m;\n-413 // possible implementation for complex types: return signed_abs(m[N][N]);\n-414 }\n-415\n-416 private:\n+385 for(ConstIterator vertex=graph.begin(); vertex != end; ++vertex) {\n+386 const IndexPair* pair = lookup.pair(*vertex);\n+387\n+388 if(pair!=0 && overlap.contains(pair->local().attribute()))\n+389 ++overlapCount;\n+390 }\n+391 // Allocate space\n+392 typedef typename G::VertexDescriptor Vertex;\n+393\n+394 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>* overlapVertices = new _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>\n+[overlapCount=0 ? 1 : overlapCount];\n+395 if(overlapCount==0)\n+396 return overlapVertices;\n+397\n+398 // Initialize them\n+399 overlapCount=0;\n+400 for(ConstIterator vertex=graph.begin(); vertex != end; ++vertex) {\n+401 const IndexPair* pair = lookup.pair(*vertex);\n+402\n+403 if(pair!=0 && overlap.contains(pair->local().attribute())) {\n+404 overlapVertices[overlapCount]._\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be = &aggregates[pair->local()];\n+405 overlapVertices[overlapCount]._\bv_\be_\br_\bt_\be_\bx = pair->local();\n+406 ++overlapCount;\n+407 }\n+408 }\n+409\n+410 dverb << overlapCount<<\" overlap vertices\"<());\n+413 // due to the sorting the isolated aggregates (to be skipped) are at the\n+end.\n+414\n+415 return overlapVertices;\n+416 }\n 417\n-419 template\n-420 static T signed_abs(const T & v)\n-421 {\n-422 return v;\n-423 }\n-424\n-426 template\n-427 static T signed_abs(const std::complex & v)\n+418 template\n+419 template\n+_\b4_\b2_\b0 void _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\bG_\b,_\bT_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph,\n+421 V& visitedMap,\n+422 const T& pinfo,\n+423 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+424 const O& overlap,\n+425 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>* overlapVertices,\n+426 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>* overlapEnd,\n+427 R& row)\n 428 {\n-429 // return sign * abs_value\n-430 // in case of complex numbers this extends to using the csgn function to\n-determine the sign\n-431 return csgn(v) * std::abs(v);\n-432 }\n+429 typedef typename T::GlobalLookupIndexSet GlobalLookup;\n+430 const GlobalLookup& lookup = pinfo.globalLookup();\n+431\n+432 typedef typename G::VertexIterator VertexIterator;\n 433\n-435 template\n-436 static T csgn(const T & v)\n-437 {\n-438 return (T(0) < v) - (v < T(0));\n-439 }\n-440\n-442 template\n-443 static T csgn(std::complex a)\n-444 {\n-445 return csgn(a.real())+(a.real() == 0.0)*csgn(a.imag());\n-446 }\n-447\n-448 };\n-449\n-_\b4_\b5_\b4 class _\bF_\bi_\br_\bs_\bt_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl : public _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl<0>\n-455 {};\n-456\n-_\b4_\b6_\b2 struct _\bR_\bo_\bw_\bS_\bu_\bm\n-463 {\n-464\n-465 enum { /* @brief We preserve the sign.*/\n-466 _\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg = false\n-_\b4_\b6_\b7 };\n-472 template\n-_\b4_\b7_\b3 typename FieldTraits::real_type _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const M&\n-m) const\n-474 {\n-475 return m.infinity_norm();\n-476 }\n-477 };\n-478\n-_\b4_\b7_\b9 struct _\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm\n-480 {\n-481\n-482 enum { /* @brief We preserve the sign.*/\n-483 _\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg = false\n-_\b4_\b8_\b4 };\n-489 template\n-_\b4_\b9_\b0 typename FieldTraits::real_type _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const M&\n-m) const\n-491 {\n-492 return m.frobenius_norm();\n-493 }\n-494 };\n-_\b4_\b9_\b5 struct _\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm\n-496 {\n-497\n-498 enum { /* @brief We preserve the sign.*/\n-499 _\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg = false\n-_\b5_\b0_\b0 };\n-505 template\n-_\b5_\b0_\b6 typename FieldTraits::real_type _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const M&\n-m) const\n-507 {\n-508 return 1;\n-509 }\n-510 };\n-517 template\n-_\b5_\b1_\b8 class _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn : public\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn >\n-519 {\n-520 public:\n-_\b5_\b2_\b1 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n-522 : _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn<_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by >(parms)\n-523 {}\n-_\b5_\b2_\b4 _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn()\n-525 {}\n-526 };\n-527\n-528\n-537 template\n-_\b5_\b3_\b8 class _\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn : public _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n->\n-539 {\n-540 public:\n-_\b5_\b4_\b1 _\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn(const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n-542 : _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn<_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by >(parms)\n-543 {}\n-_\b5_\b4_\b4 _\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn()\n-545 {}\n-546 };\n-547 // forward declaration\n-548 template class Aggregator;\n-549\n+434 VertexIterator vend=graph.end();\n+435\n+436#ifdef DUNE_ISTL_WITH_CHECKING\n+437 std::set examined;\n+438#endif\n+439\n+440 // The aggregates owned by the process have lower local indices\n+441 // then those not owned. We process them in the first pass.\n+442 // They represent the rows 0, 1, ..., n of the coarse matrix\n+443 for(VertexIterator vertex = graph.begin(); vertex != vend; ++vertex)\n+444 if(!_\bg_\be_\bt(visitedMap, *vertex)) {\n+445 // In the first pass we only process owner nodes\n+446 typedef typename GlobalLookup::IndexPair IndexPair;\n+447 const IndexPair* pair = lookup.pair(*vertex);\n+448 if(pair==0 || !overlap.contains(pair->local().attribute())) {\n+449#ifdef DUNE_ISTL_WITH_CHECKING\n+450 assert(examined.find(aggregates[*vertex])==examined.end());\n+451 examined.insert(aggregates[*vertex]);\n+452#endif\n+453 _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bN_\bo_\bn_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(row, graph, visitedMap, aggregates,\n+*vertex);\n+454\n+455 // only needed for ALU\n+456 // (ghosts with same global id as owners on the same process)\n+457 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(pinfo) == static_cast(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:\n+_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg)) {\n+458 if(overlapVertices != overlapEnd) {\n+459 if(*overlapVertices->_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n+460 _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(row, graph, visitedMap, aggregates,\n+overlapVertices, overlapEnd);\n+461 }\n+462 else{\n+463 ++overlapVertices;\n+464 }\n+465 }\n+466 }\n+467 ++row;\n+468 }\n+469 }\n+470\n+471 dvverb<<\"constructed \"<_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n+477\n+478#ifdef DUNE_ISTL_WITH_CHECKING\n+479 typedef typename GlobalLookup::IndexPair IndexPair;\n+480 const IndexPair* pair = lookup.pair(overlapVertices->_\bv_\be_\br_\bt_\be_\bx);\n+481 assert(pair!=0 && overlap.contains(pair->local().attribute()));\n+482 assert(examined.find(aggregates[overlapVertices->_\bv_\be_\br_\bt_\be_\bx])==examined.end());\n+483 examined.insert(aggregates[overlapVertices->_\bv_\be_\br_\bt_\be_\bx]);\n+484#endif\n+485 _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(row, graph, visitedMap, aggregates,\n+overlapVertices, overlapEnd);\n+486 ++row;\n+487 }else{\n+488 ++overlapVertices;\n+489 }\n+490 }\n+491\n+492 template\n+493 template\n+_\b4_\b9_\b4 void _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\bG_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph,\n+495 V& visitedMap,\n+496 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+497 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+498 R& row)\n+499 {\n+500 typedef typename G::VertexIterator VertexIterator;\n+501\n+502 VertexIterator vend=graph.end();\n+503 for(VertexIterator vertex = graph.begin(); vertex != vend; ++vertex) {\n+504 if(!_\bg_\be_\bt(visitedMap, *vertex)) {\n+505 _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bN_\bo_\bn_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(row, graph, visitedMap, aggregates,\n+*vertex);\n+506 ++row;\n+507 }\n+508 }\n+509\n+510 }\n+511\n+512 template\n+_\b5_\b1_\b3 _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br(M& matrix)\n+514 : row_(matrix.createbegin()),\n+515 minRowSize_(_\bs_\bt_\bd::numeric_limits<_\bs_\bt_\bd::size_t>::max()),\n+516 maxRowSize_(0), sumRowSize_(0)\n+517 {\n+518#ifdef DUNE_ISTL_WITH_CHECKING\n+519 diagonalInserted = false;\n+520#endif\n+521 }\n+522 template\n+_\b5_\b2_\b3 std::size_t _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bm_\ba_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be()\n+524 {\n+525 return maxRowSize_;\n+526 }\n+527 template\n+_\b5_\b2_\b8 std::size_t _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bm_\bi_\bn_\bR_\bo_\bw_\bS_\bi_\bz_\be()\n+529 {\n+530 return minRowSize_;\n+531 }\n+532\n+533 template\n+_\b5_\b3_\b4 std::size_t _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bs_\bu_\bm_\bR_\bo_\bw_\bS_\bi_\bz_\be()\n+535 {\n+536 return sumRowSize_;\n+537 }\n+538 template\n+_\b5_\b3_\b9 void _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+540 {\n+541 sumRowSize_ += row_.size();\n+542 minRowSize_=std::min(minRowSize_, row_.size());\n+543 maxRowSize_=std::max(maxRowSize_, row_.size());\n+544 ++row_;\n+545#ifdef DUNE_ISTL_WITH_CHECKING\n+546 assert(diagonalInserted);\n+547 diagonalInserted = false;\n+548#endif\n+549 }\n 550\n-558 template\n-_\b5_\b5_\b9 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-560 {\n-561 public:\n-562\n-_\b5_\b6_\b6 static const V _\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD;\n-567\n-_\b5_\b7_\b1 static const V _\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD;\n-_\b5_\b7_\b5 typedef V _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-576\n-_\b5_\b8_\b0 typedef V _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-581\n-_\b5_\b8_\b6 typedef PoolAllocator _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br;\n-587\n-_\b5_\b9_\b2 typedef SLList _\bV_\be_\br_\bt_\be_\bx_\bL_\bi_\bs_\bt;\n+551 template\n+_\b5_\b5_\b2 void _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt(const typename M::size_type& index)\n+553 {\n+554 row_.insert(index);\n+555#ifdef DUNE_ISTL_WITH_CHECKING\n+556 diagonalInserted = diagonalInserted || row_.index()==index;\n+557#endif\n+558 }\n+559\n+560 template\n+561 template\n+562 typename G::MutableMatrix*\n+_\b5_\b6_\b3 _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bT_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd(G& fineGraph, V& visitedMap,\n+564 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+565 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+566 const typename G::Matrix::size_type& size,\n+567 const Set& overlap)\n+568 {\n+569 typedef _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b> _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx;\n+570\n+571 std::size_t count;\n+572\n+573 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx* overlapVertices = buildOverlapVertices(fineGraph,\n+574 pinfo,\n+575 aggregates,\n+576 overlap,\n+577 count);\n+578 typedef typename G::MutableMatrix M;\n+579 M* coarseMatrix = new M(size, size, M::row_wise);\n+580\n+581 // Reset the visited flags of all vertices.\n+582 // As the isolated nodes will be skipped we simply mark them as visited\n+583\n+584 typedef typename G::VertexIterator Vertex;\n+585 Vertex vend = fineGraph.end();\n+586 for(Vertex vertex = fineGraph.begin(); vertex != vend; ++vertex) {\n+587 assert(aggregates[*vertex] != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:\n+_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n+588 put(visitedMap, *vertex, aggregates[*vertex]==_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n+589 }\n+590\n+591 typedef typename G::MutableMatrix M;\n+592 _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b> sparsityBuilder(*coarseMatrix);\n 593\n-_\b5_\b9_\b7 class _\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br\n-598 {\n-599 public:\n-600 template\n-_\b6_\b0_\b1 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)([[maybe_unused]] const EdgeIterator& edge) const\n-602 {}\n-603 };\n+594 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\bG_\b,_\bT_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(fineGraph, visitedMap, pinfo,\n+595 aggregates, overlap,\n+596 overlapVertices,\n+597 overlapVertices+count,\n+598 sparsityBuilder);\n+599\n+600 dinfo<N\n+()<<\"x\"<M()<<\" row: min=\"<(sparsityBuilder._\bs_\bu_\bm_\bR_\bo_\bw_\bS_\bi_\bz_\be())/coarseMatrix->N()\n+603 <\n-_\b6_\b3_\b5 std::tuple _\bb_\bu_\bi_\bl_\bd_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs(const M& matrix, G& graph,\n-const C& criterion,\n-636 bool finestLevel);\n-637\n-655 template\n-_\b6_\b5_\b6 std::size_t _\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& start,\n-657 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-658 const G& graph,\n-659 F& aggregateVisitor,\n-660 VM& visitedMap) const;\n-661\n-685 template\n-_\b6_\b8_\b6 std::size_t _\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& start,\n-687 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-688 const G& graph, L& visited, F1& aggregateVisitor,\n-689 F2& nonAggregateVisitor,\n-690 VM& visitedMap) const;\n-691\n-_\b6_\b9_\b7 void _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs);\n-698\n-_\b7_\b0_\b2 std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const;\n+605 delete[] overlapVertices;\n+606\n+607 return coarseMatrix;\n+608 }\n+609\n+610 template\n+611 typename G::MutableMatrix*\n+_\b6_\b1_\b2 _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd(G& fineGraph, V& visitedMap,\n+613 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+614 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n+615 const typename G::Matrix::size_type& size,\n+616 [[maybe_unused]] const Set& overlap)\n+617 {\n+618 typedef typename G::MutableMatrix M;\n+619 M* coarseMatrix = new M(size, size, M::row_wise);\n+620\n+621 // Reset the visited flags of all vertices.\n+622 // As the isolated nodes will be skipped we simply mark them as visited\n+623\n+624 typedef typename G::VertexIterator Vertex;\n+625 Vertex vend = fineGraph.end();\n+626 for(Vertex vertex = fineGraph.begin(); vertex != vend; ++vertex) {\n+627 assert(aggregates[*vertex] != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:\n+_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n+628 put(visitedMap, *vertex, aggregates[*vertex]==_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:\n+_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n+629 }\n+630\n+631 _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b> sparsityBuilder(*coarseMatrix);\n+632\n+633 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\bG_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(fineGraph,\n+visitedMap, pinfo,\n+634 aggregates, sparsityBuilder);\n+635 dinfo<<\"Matrix row: min=\"<(sparsityBuilder._\bs_\bu_\bm_\bR_\bo_\bw_\bS_\bi_\bz_\be())/coarseMatrix->N\n+()<\n+_\b6_\b4_\b2 void _\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be(const M& fine, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>&\n+aggregates, M& coarse,\n+643 const P& pinfo, [[maybe_unused]] const O& copy)\n+644 {\n+645 coarse = static_cast(0);\n+646\n+647 typedef typename M::ConstIterator RowIterator;\n+648 RowIterator endRow = fine.end();\n+649\n+650 for(RowIterator row = fine.begin(); row != endRow; ++row)\n+651 if(aggregates[row.index()] != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n+652 assert(aggregates[row.index()]!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n+653 typedef typename M::ConstColIterator ColIterator;\n+654 ColIterator endCol = row->end();\n+655\n+656 for(ColIterator _\bc_\bo_\bl = row->begin(); _\bc_\bo_\bl != endCol; ++_\bc_\bo_\bl)\n+657 if(aggregates[_\bc_\bo_\bl.index()] != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n+658 assert(aggregates[row.index()]!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n+659 coarse[aggregates[row.index()]][aggregates[_\bc_\bo_\bl.index()]]+=*_\bc_\bo_\bl;\n+660 }\n+661 }\n+662\n+663 // get the right diagonal matrix values on copy lines from owner processes\n+664 typedef typename M::block_type BlockType;\n+665 std::vector rowsize(coarse.N(),BlockType(0));\n+666 for (RowIterator row = coarse.begin(); row != coarse.end(); ++row)\n+667 rowsize[row.index()]=coarse[row.index()][row.index()];\n+668 pinfo.copyOwnerToAll(rowsize,rowsize);\n+669 for (RowIterator row = coarse.begin(); row != coarse.end(); ++row)\n+670 coarse[row.index()][row.index()] = rowsize[row.index()];\n+671\n+672 // don't set dirichlet boundaries for copy lines to make novlp case work,\n+673 // the preconditioner yields slightly different results now.\n+674\n+675 // Set the dirichlet border\n+676 //DirichletBoundarySetter

    ::template set(coarse, pinfo, copy);\n+677\n+678 }\n+679\n+680 template\n+681 template\n+_\b6_\b8_\b2 void _\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br_\b<_\bT_\b>_\b:_\b:_\bs_\be_\bt(M& coarse, const T& pinfo, const O&\n+copy)\n+683 {\n+684 typedef typename T::ParallelIndexSet::const_iterator ConstIterator;\n+685 ConstIterator end = pinfo.indexSet().end();\n+686 typedef typename M::block_type Block;\n+687 Block identity=Block(0.0);\n+688 for(typename Block::RowIterator b=identity.begin(); b != identity.end();\n+++b)\n+689 b->operator[](b.index())=1.0;\n+690\n+691 for(ConstIterator index = pinfo.indexSet().begin();\n+692 index != end; ++index) {\n+693 if(copy.contains(index->local().attribute())) {\n+694 typedef typename M::ColIterator ColIterator;\n+695 typedef typename M::row_type Row;\n+696 Row row = coarse[index->local()];\n+697 ColIterator cend = row.find(index->local());\n+698 ColIterator _\bc_\bo_\bl = row.begin();\n+699 for(; _\bc_\bo_\bl != cend; ++_\bc_\bo_\bl)\n+700 *_\bc_\bo_\bl = 0;\n+701\n+702 cend = row.end();\n 703\n-_\b7_\b0_\b7 void _\bf_\br_\be_\be();\n-708\n-_\b7_\b1_\b4 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& v);\n-715\n-_\b7_\b2_\b1 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& v) const;\n-722\n-_\b7_\b2_\b3 typedef const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-724\n-_\b7_\b2_\b5 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const\n-726 {\n-727 return aggregates_;\n-728 }\n-729\n-_\b7_\b3_\b0 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const\n-731 {\n-732 return aggregates_+_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs();\n-733 }\n-734\n-_\b7_\b3_\b5 typedef _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-736\n-_\b7_\b3_\b7 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn()\n-738 {\n-739 return aggregates_;\n-740 }\n-741\n-_\b7_\b4_\b2 _\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd()\n-743 {\n-744 return aggregates_+_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs();\n-745 }\n-746 private:\n-748 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>&) = delete;\n-750 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>& operator=(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>&) = delete;\n-751\n-755 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* aggregates_;\n-756\n-760 std::size_t noVertices_;\n-761 };\n-762\n-766 template\n-_\b7_\b6_\b7 void _\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(G& graph,\n-768 const typename C::Matrix& matrix,\n-769 C criterion,\n-770 bool finestLevel);\n-771\n-776 template\n-_\b7_\b7_\b7 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n-778 {\n-779\n-780 public:\n-781\n-782 /***\n-783 * @brief The type of the matrix graph we work with.\n-784 */\n-_\b7_\b8_\b5 typedef G _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n-_\b7_\b8_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bV_\be_\br_\bt_\be_\bx;\n-790\n-_\b7_\b9_\b5 typedef PoolAllocator _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br;\n-796\n-_\b8_\b0_\b1 typedef S _\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt;\n-802\n-_\b8_\b0_\b4 typedef typename VertexSet::const_iterator _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-805\n-_\b8_\b0_\b9 typedef std::size_t* _\bS_\bp_\bh_\be_\br_\be_\bM_\ba_\bp;\n-810\n-_\b8_\b1_\b9 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be(_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph, _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-820 _\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt& connectivity, std::vector& front_);\n-821\n-_\b8_\b2_\b2 void _\bi_\bn_\bv_\ba_\bl_\bi_\bd_\ba_\bt_\be()\n-823 {\n-824 --id_;\n-825 }\n-826\n-_\b8_\b3_\b3 void _\br_\be_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(const _\bV_\be_\br_\bt_\be_\bx& vertex);\n-834\n-_\b8_\b3_\b8 void _\bs_\be_\be_\bd(const _\bV_\be_\br_\bt_\be_\bx& vertex);\n-839\n-_\b8_\b4_\b3 void _\ba_\bd_\bd(const _\bV_\be_\br_\bt_\be_\bx& vertex);\n-844\n-_\b8_\b4_\b5 void _\ba_\bd_\bd(std::vector& vertex);\n-_\b8_\b4_\b9 void _\bc_\bl_\be_\ba_\br();\n-850\n-_\b8_\b5_\b4 typename VertexSet::size_type _\bs_\bi_\bz_\be();\n-_\b8_\b5_\b8 typename VertexSet::size_type _\bc_\bo_\bn_\bn_\be_\bc_\bt_\bS_\bi_\bz_\be();\n-859\n-_\b8_\b6_\b3 int _\bi_\bd();\n-864\n-_\b8_\b6_\b6 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n-867\n-_\b8_\b6_\b9 _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n-870\n-871 private:\n-875 _\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt vertices_;\n-876\n-881 int id_;\n-882\n-886 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph_;\n-887\n-891 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n-892\n-896 _\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt& connected_;\n-897\n-901 std::vector& front_;\n-902 };\n-903\n-907 template\n-_\b9_\b0_\b8 class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br\n-909 {\n-910 public:\n-911\n-_\b9_\b1_\b5 typedef G _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n-916\n-_\b9_\b2_\b0 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bV_\be_\br_\bt_\be_\bx;\n-921\n-_\b9_\b2_\b3 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-924\n-_\b9_\b2_\b8 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br();\n-929\n-_\b9_\b3_\b3 _\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br();\n-934\n-951 template\n-_\b9_\b5_\b2 std::tuple _\bb_\bu_\bi_\bl_\bd(const M& m, G& graph,\n-953 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, const C& c,\n-954 bool finestLevel);\n-955 private:\n-960 typedef PoolAllocator Allocator;\n-961\n-965 typedef SLList VertexList;\n-966\n-970 typedef std::set,Allocator> VertexSet;\n-971\n-975 typedef std::size_t* SphereMap;\n-976\n-980 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh* graph_;\n-981\n-985 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b,_\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt_\b>* aggregate_;\n-986\n-990 std::vector front_;\n-991\n-995 VertexSet connected_;\n-996\n-1000 int size_;\n-1001\n-1005 class Stack\n-1006 {\n-1007 public:\n-_\b1_\b0_\b0_\b8 static const _\bV_\be_\br_\bt_\be_\bx _\bN_\bu_\bl_\bl_\bE_\bn_\bt_\br_\by;\n-1009\n-_\b1_\b0_\b1_\b0 _\bS_\bt_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph,\n-1011 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>& aggregatesBuilder,\n-1012 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates);\n-_\b1_\b0_\b1_\b3 _\b~_\bS_\bt_\ba_\bc_\bk();\n-_\b1_\b0_\b1_\b4 _\bV_\be_\br_\bt_\be_\bx _\bp_\bo_\bp();\n-1015 private:\n-1016 enum { N = 1300000 };\n-1017\n-1019 const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph_;\n-1021 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>& aggregatesBuilder_;\n-1023 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n-1025 int size_;\n-1026 _\bV_\be_\br_\bt_\be_\bx maxSize_;\n-1028 typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br begin_;\n-1029 typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br end_;\n-1030\n-1032 _\bV_\be_\br_\bt_\be_\bx* vals_;\n-1033\n-1034 };\n-1035\n-_\b1_\b0_\b3_\b6 friend class Stack;\n-1037\n-1048 template\n-1049 void visitAggregateNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1050 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-1051 V& visitor) const;\n-1052\n-1057 template\n-1058 class AggregateVisitor\n-1059 {\n-1060 public:\n-_\b1_\b0_\b6_\b4 typedef V _\bV_\bi_\bs_\bi_\bt_\bo_\br;\n-_\b1_\b0_\b7_\b2 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1073 _\bV_\bi_\bs_\bi_\bt_\bo_\br& visitor);\n-1074\n-_\b1_\b0_\b8_\b1 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n-1082\n-1083 private:\n-1085 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n-1087 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br aggregate_;\n-1089 _\bV_\bi_\bs_\bi_\bt_\bo_\br* visitor_;\n-1090 };\n-1091\n-1095 class Counter\n-1096 {\n-1097 public:\n-_\b1_\b0_\b9_\b9 _\bC_\bo_\bu_\bn_\bt_\be_\br();\n-_\b1_\b1_\b0_\b1 int _\bv_\ba_\bl_\bu_\be();\n-1102\n-1103 protected:\n-_\b1_\b1_\b0_\b5 void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-_\b1_\b1_\b0_\b7 void _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt();\n-1108\n-1109 private:\n-1110 int count_;\n-1111 };\n-1112\n-1113\n-1118 class FrontNeighbourCounter : public Counter\n-1119 {\n-1120 public:\n-_\b1_\b1_\b2_\b5 _\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br(const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& front);\n-1126\n-_\b1_\b1_\b2_\b7 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n-1128\n-1129 private:\n-1130 const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph_;\n-1131 };\n-1132\n-1137 int noFrontNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex) const;\n-1138\n-1142 class TwoWayCounter : public Counter\n-1143 {\n-1144 public:\n-_\b1_\b1_\b4_\b5 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n-1146 };\n-1147\n-1159 int twoWayConnections(const _\bV_\be_\br_\bt_\be_\bx&, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1160 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n-1161\n-1165 class OneWayCounter : public Counter\n-1166 {\n-1167 public:\n-_\b1_\b1_\b6_\b8 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n-1169 };\n-1170\n-1182 int oneWayConnections(const _\bV_\be_\br_\bt_\be_\bx&, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1183 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n-1184\n-1191 class ConnectivityCounter : public Counter\n-1192 {\n-1193 public:\n-_\b1_\b2_\b0_\b0 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br(const VertexSet& connected, const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates);\n-1201\n-_\b1_\b2_\b0_\b2 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n-1203\n-1204 private:\n-1206 const VertexSet& connected_;\n-1208 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n-1209\n-1210 };\n-1211\n-1223 double connectivity(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n-aggregates) const;\n-1231 bool connected(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1232 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n-1233\n-1241 bool connected(const _\bV_\be_\br_\bt_\be_\bx& vertex, const SLList&\n-aggregateList,\n-1242 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n-1243\n-1251 class DependencyCounter : public Counter\n-1252 {\n-1253 public:\n-_\b1_\b2_\b5_\b7 _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br();\n-1258\n-_\b1_\b2_\b5_\b9 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n-1260 };\n-1261\n-1268 class FrontMarker\n-1269 {\n-1270 public:\n-_\b1_\b2_\b7_\b7 _\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br(std::vector& front, _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph);\n-1278\n-_\b1_\b2_\b7_\b9 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n-1280\n-1281 private:\n-1283 std::vector& front_;\n-1285 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph_;\n-1286 };\n-1287\n-1291 void unmarkFront();\n-1292\n-1307 int unusedNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n-aggregates) const;\n-1308\n-1322 std::pair neighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n-1323 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1324 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n-1341 int aggregateNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n-aggregate, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n-1342\n-1350 bool admissible(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n-aggregate, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates) const;\n-1351\n-1359 std::size_t distance(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n-aggregates);\n-1360\n-1369 _\bV_\be_\br_\bt_\be_\bx mergeNeighbour(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n-aggregates) const;\n-1370\n-1379 void nonisoNeighbourAggregate(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n-1380 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-1381 SLList& neighbours) const;\n-1382\n-1390 template\n-1391 void growAggregate(const _\bV_\be_\br_\bt_\be_\bx& vertex, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>&\n-aggregates, const C& c);\n-1392 template\n-1393 void growIsolatedAggregate(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, const C& c);\n-1394 };\n-1395\n-1396#ifndef DOXYGEN\n-1397\n-1398 template\n-1399 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt(const _\bM_\ba_\bt_\br_\bi_\bx* matrix)\n-1400 {\n-1401 matrix_ = matrix;\n-1402 }\n-1403\n-1404 template\n-1405 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw(const Row& row, int index)\n-1406 {\n-1407 initRow(row, index, std::is_convertible());\n-1408 }\n-1409\n-1410 template\n-1411 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw(const Row& row, int index,\n-const std::false_type&)\n-1412 {\n-1413 DUNE_THROW(InvalidStateException, \"field_type needs to convertible to\n-real_type\");\n-1414 }\n-1415\n-1416 template\n-1417 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw([[maybe_unused]] const Row&\n-row, int index, const std::true_type&)\n-1418 {\n-1419 using std::min;\n-1420 maxValue_ = min(- std::numeric_limits::max(),\n-std::numeric_limits::min());\n-1421 row_ = index;\n-1422 diagonal_ = norm_(matrix_->operator[](row_)[row_]);\n-1423 }\n-1424\n-1425 template\n-1426 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(const ColIter& _\bc_\bo_\bl)\n-1427 {\n-1428 using std::max;\n-1429 real_type eij = norm_(*_\bc_\bo_\bl);\n-1430 typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br opposite_entry =\n-1431 matrix_->operator[](_\bc_\bo_\bl.index()).find(row_);\n-1432 if ( opposite_entry == matrix_->operator[](_\bc_\bo_\bl.index()).end() )\n-1433 {\n-1434 // Consider this a weak connection we disregard.\n-1435 return;\n-1436 }\n-1437 real_type eji = norm_(*opposite_entry);\n-1438\n-1439 // skip positive offdiagonals if norm preserves sign of them.\n-1440 if(!N::is_sign_preserving || eij<0 || eji<0)\n-1441 maxValue_ = max(maxValue_,\n-1442 eij /diagonal_ * eji/\n-1443 norm_(matrix_->operator[](_\bc_\bo_\bl.index())[_\bc_\bo_\bl.index()]));\n-1444 }\n-1445\n-1446 template\n-1447 template\n-1448 inline void _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph, const typename G::\n-EdgeIterator& edge, const ColIter& _\bc_\bo_\bl)\n-1449 {\n-1450 real_type eij = norm_(*_\bc_\bo_\bl);\n-1451 typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br opposite_entry =\n-1452 matrix_->operator[](_\bc_\bo_\bl.index()).find(row_);\n-1453\n-1454 if ( opposite_entry == matrix_->operator[](_\bc_\bo_\bl.index()).end() )\n-1455 {\n-1456 // Consider this as a weak connection we disregard.\n-1457 return;\n-1458 }\n-1459 real_type eji = norm_(*opposite_entry);\n-1460 // skip positve offdiagonals if norm preserves sign of them.\n-1461 if(!N::is_sign_preserving || (eij<0 || eji<0))\n-1462 if(eji / norm_(matrix_->operator[](edge.target())[edge.target()]) *\n-1463 eij/ diagonal_ > alpha() * maxValue_) {\n-1464 edge.properties().setDepends();\n-1465 edge.properties().setInfluences();\n-1466 typename G::EdgeProperties& other = graph.getEdgeProperties(edge.target(),\n-edge.source());\n-1467 other.setInfluences();\n-1468 other.setDepends();\n-1469 }\n-1470 }\n-1471\n-1472 template\n-1473 inline bool _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd()\n-1474 {\n-1475 return maxValue_ < beta();\n-1476 }\n-1477\n-1478\n-1479 template\n-1480 inline void _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt(const Matrix* matrix)\n-1481 {\n-1482 matrix_ = matrix;\n-1483 }\n-1484\n-1485 template\n-1486 inline void _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw([[maybe_unused]] const Row& row, int\n-index)\n-1487 {\n-1488 using std::min;\n-1489 maxValue_ = min(- std::numeric_limits::max(), std::\n-numeric_limits::min());\n-1490 row_ = index;\n-1491 diagonal_ = norm_(matrix_->operator[](row_)[row_]);\n-1492 }\n-1493\n-1494 template\n-1495 inline void _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(const ColIter& _\bc_\bo_\bl)\n-1496 {\n-1497 using std::max;\n-1498 maxValue_ = max(maxValue_, -norm_(*_\bc_\bo_\bl));\n-1499 }\n-1500\n-1501 template\n-1502 template\n-1503 inline void _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph, const typename G::\n-EdgeIterator& edge, const ColIter& _\bc_\bo_\bl)\n-1504 {\n-1505 if(-norm_(*_\bc_\bo_\bl) >= maxValue_ * alpha()) {\n-1506 edge.properties().setDepends();\n-1507 typedef typename G::EdgeDescriptor ED;\n-1508 ED e= graph.findEdge(edge.target(), edge.source());\n-1509 if(e!=std::numeric_limits::max())\n-1510 {\n-1511 typename G::EdgeProperties& other = graph.getEdgeProperties(e);\n-1512 other.setInfluences();\n-1513 }\n-1514 }\n-1515 }\n-1516\n-1517 template\n-1518 inline bool _\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b<_\bM_\b,_\bN_\b>_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd()\n-1519 {\n-1520 return maxValue_ < beta() * diagonal_;\n-1521 }\n-1522\n-1523 template\n-1524 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be(MatrixGraph& graph, AggregatesMap&\n-aggregates,\n-1525 VertexSet& connected, std::vector& front)\n-1526 : vertices_(), id_(-1), graph_(graph), aggregates_(aggregates),\n-1527 connected_(connected), front_(front)\n-1528 {}\n-1529\n-1530 template\n-1531 void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\br_\be_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(const _\bV_\be_\br_\bt_\be_\bx& vertex)\n-1532 {\n-1533 /*\n-1534 vertices_.push_back(vertex);\n-1535 typedef typename VertexList::const_iterator iterator;\n-1536 iterator begin = vertices_.begin();\n-1537 iterator end = vertices_.end();*/\n-1538 throw \"Not yet implemented\";\n-1539\n-1540 // while(begin!=end){\n-1541 //for();\n-1542 // }\n-1543\n-1544 }\n-1545\n-1546 template\n-1547 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bs_\be_\be_\bd(const _\bV_\be_\br_\bt_\be_\bx& vertex)\n-1548 {\n-1549 dvverb<<\"Connected cleared\"<\n-1560 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\ba_\bd_\bd(const _\bV_\be_\br_\bt_\be_\bx& vertex)\n-1561 {\n-1562 vertices_.insert(vertex);\n-1563 aggregates_[vertex]=id_;\n-1564 if(front_.size())\n-1565 front_.erase(std::lower_bound(front_.begin(), front_.end(), vertex));\n-1566\n-1567\n-1568 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iterator;\n-1569 const iterator end = graph_.endEdges(vertex);\n-1570 for(iterator edge = graph_.beginEdges(vertex); edge != end; ++edge) {\n-1571 dvverb << \" Inserting \"<::UNAGGREGATED &&\n-1575 !graph_.getVertexProperties(edge.target()).front())\n-1576 {\n-1577 front_.push_back(edge.target());\n-1578 graph_.getVertexProperties(edge.target()).setFront();\n-1579 }\n-1580 }\n-1581 dvverb <\n-1586 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\ba_\bd_\bd(std::vector& vertices)\n-1587 {\n-1588#ifndef NDEBUG\n-1589 std::size_t oldsize = vertices_.size();\n-1590#endif\n-1591 typedef typename std::vector::iterator Iterator;\n-1592\n-1593 typedef typename VertexSet::iterator SIterator;\n-1594\n-1595 SIterator pos=vertices_.begin();\n-1596 std::vector newFront;\n-1597 newFront.reserve(front_.capacity());\n-1598\n-1599 std::set_difference(front_.begin(), front_.end(), vertices.begin(),\n-vertices.end(),\n-1600 std::back_inserter(newFront));\n-1601 front_=newFront;\n-1602\n-1603 for(Iterator vertex=vertices.begin(); vertex != vertices.end(); ++vertex)\n-1604 {\n-1605 pos=vertices_.insert(pos,*vertex);\n-1606 vertices_.insert(*vertex);\n-1607 graph_.getVertexProperties(*vertex).resetFront(); // Not a front node any\n-more.\n-1608 aggregates_[*vertex]=id_;\n-1609\n-1610 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iterator;\n-1611 const iterator end = graph_.endEdges(*vertex);\n-1612 for(iterator edge = graph_.beginEdges(*vertex); edge != end; ++edge) {\n-1613 dvverb << \" Inserting \"<::UNAGGREGATED &&\n-1616 !graph_.getVertexProperties(edge.target()).front())\n-1617 {\n-1618 front_.push_back(edge.target());\n-1619 graph_.getVertexProperties(edge.target()).setFront();\n-1620 }\n-1621 dvverb <<\" size=\"<\n-1629 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bc_\bl_\be_\ba_\br()\n-1630 {\n-1631 vertices_.clear();\n-1632 connected_.clear();\n-1633 id_=-1;\n-1634 }\n-1635\n-1636 template\n-1637 inline typename Aggregate::VertexSet::size_type\n-1638 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bs_\bi_\bz_\be()\n-1639 {\n-1640 return vertices_.size();\n-1641 }\n-1642\n-1643 template\n-1644 inline typename Aggregate::VertexSet::size_type\n-1645 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bc_\bo_\bn_\bn_\be_\bc_\bt_\bS_\bi_\bz_\be()\n-1646 {\n-1647 return connected_.size();\n-1648 }\n-1649\n-1650 template\n-1651 inline int _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bi_\bd()\n-1652 {\n-1653 return id_;\n-1654 }\n-1655\n-1656 template\n-1657 inline typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn()\n-const\n-1658 {\n-1659 return vertices_.begin();\n-1660 }\n-1661\n-1662 template\n-1663 inline typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b<_\bG_\b,_\bS_\b>_\b:_\b:_\be_\bn_\bd() const\n-1664 {\n-1665 return vertices_.end();\n-1666 }\n-1667\n-1668 template\n-1669 const V _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD = std::numeric_limits::max();\n-1670\n-1671 template\n-1672 const V _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD = std::numeric_limits::max()-1;\n-1673\n-1674 template\n-1675 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp()\n-1676 : aggregates_(0)\n-1677 {}\n-1678\n-1679 template\n-1680 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp()\n-1681 {\n-1682 if(aggregates_!=0)\n-1683 delete[] aggregates_;\n-1684 }\n-1685\n-1686\n-1687 template\n-1688 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(std::size_t noVertices)\n-1689 {\n-1690 allocate(noVertices);\n-1691 }\n-1692\n-1693 template\n-1694 inline std::size_t _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const\n-1695 {\n-1696 return noVertices_;\n-1697 }\n-1698\n-1699 template\n-1700 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(std::size_t noVertices)\n-1701 {\n-1702 aggregates_ = new _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br[noVertices];\n-1703 noVertices_ = noVertices;\n-1704\n-1705 for(std::size_t i=0; i < noVertices; i++)\n-1706 aggregates_[i]=UNAGGREGATED;\n-1707 }\n-1708\n-1709 template\n-1710 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bf_\br_\be_\be()\n-1711 {\n-1712 assert(aggregates_ != 0);\n-1713 delete[] aggregates_;\n-1714 aggregates_=0;\n-1715 }\n-1716\n-1717 template\n-1718 inline typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n-1719 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const VertexDescriptor& v)\n-1720 {\n-1721 return aggregates_[v];\n-1722 }\n-1723\n-1724 template\n-1725 inline const typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n-1726 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const VertexDescriptor& v) const\n-1727 {\n-1728 return aggregates_[v];\n-1729 }\n-1730\n-1731 template\n-1732 template\n-1733 inline std::size_t _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh(const V& start,\n-1734 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1735 const G& graph, F& aggregateVisitor,\n-1736 VM& visitedMap) const\n-1737 {\n-1738 VertexList vlist;\n-1739\n-1740 DummyEdgeVisitor dummy;\n-1741 return breadthFirstSearch(start, aggregate, graph, vlist,\n-aggregateVisitor, dummy, visitedMap);\n-1742 }\n-1743\n-1744 template\n-1745 template\n-1746 std::size_t _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh(const V& start,\n-1747 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1748 const G& graph,\n-1749 L& visited,\n-1750 F1& aggregateVisitor,\n-1751 F2& nonAggregateVisitor,\n-1752 VM& visitedMap) const\n-1753 {\n-1754 typedef typename L::const_iterator ListIterator;\n-1755 int visitedSpheres = 0;\n-1756\n-1757 visited.push_back(start);\n-1758 put(visitedMap, start, true);\n-1759\n-1760 ListIterator current = visited.begin();\n-1761 ListIterator end = visited.end();\n-1762 std::size_t i=0, size=visited.size();\n-1763\n-1764 // visit the neighbours of all vertices of the\n-1765 // current sphere.\n-1766 while(current != end) {\n-1767\n-1768 for(; i\n-1803 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br()\n-1804 : graph_(0), aggregate_(0), front_(), connected_(), size_(-1)\n-1805 {}\n-1806\n-1807 template\n-1808 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br()\n-1809 {\n-1810 size_=-1;\n-1811 }\n-1812\n-1813 template\n-1814 void _\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(G& graph,\n-1815 const typename C::Matrix& matrix,\n-1816 C criterion, bool firstlevel)\n-1817 {\n-1818 // assert(graph.isBuilt());\n-1819 typedef typename C::Matrix Matrix;\n-1820 typedef typename G::VertexIterator VertexIterator;\n-1821\n-1822 criterion.init(&matrix);\n-1823\n-1824 for(VertexIterator vertex = graph.begin(); vertex != graph.end();\n-++vertex) {\n-1825 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be Row;\n-1826\n-1827 const Row& row = matrix[*vertex];\n-1828\n-1829 // Tell the criterion what row we will examine now\n-1830 // This might for example be used for calculating the\n-1831 // maximum offdiagonal value\n-1832 criterion.initRow(row, *vertex);\n-1833\n-1834 // On a first path all columns are examined. After this\n-1835 // the calculator should know whether the vertex is isolated.\n-1836 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ColIterator;\n-1837 ColIterator end = row.end();\n-1838 typename FieldTraits::real_type\n-absoffdiag=0.;\n-1839\n-1840 using std::max;\n-1841 if(firstlevel) {\n-1842 for(ColIterator _\bc_\bo_\bl = row.begin(); _\bc_\bo_\bl != end; ++_\bc_\bo_\bl)\n-1843 if(_\bc_\bo_\bl.index()!=*vertex) {\n-1844 criterion.examine(_\bc_\bo_\bl);\n-1845 absoffdiag = max(absoffdiag, Impl::asMatrix(*col).frobenius_norm());\n-1846 }\n-1847\n-1848 if(absoffdiag==0)\n-1849 vertex.properties().setExcludedBorder();\n-1850 }\n-1851 else\n-1852 for(ColIterator _\bc_\bo_\bl = row.begin(); _\bc_\bo_\bl != end; ++_\bc_\bo_\bl)\n-1853 if(_\bc_\bo_\bl.index()!=*vertex)\n-1854 criterion.examine(_\bc_\bo_\bl);\n-1855\n-1856 // reset the vertex properties\n-1857 //vertex.properties().reset();\n-1858\n-1859 // Check whether the vertex is isolated.\n-1860 if(criterion.isIsolated()) {\n-1861 //std::cout<<\"ISOLATED: \"<<*vertex<\n-1881 template\n-1882 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b<_\bV_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br(const\n-AggregatesMap& aggregates,\n-1883 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate, V& visitor)\n-1884 : aggregates_(aggregates), aggregate_(aggregate), visitor_(&visitor)\n-1885 {}\n-1886\n-1887 template\n-1888 template\n-1889 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b<_\bV_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n-_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n-1890 {\n-1891 if(aggregates_[edge.target()]==aggregate_)\n-1892 visitor_->operator()(edge);\n-1893 }\n-1894\n-1895 template\n-1896 template\n-1897 inline void Aggregator::visitAggregateNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n-1898 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1899 const AggregatesMap& aggregates,\n-1900 V& visitor) const\n-1901 {\n-1902 // Only evaluates for edge pointing to the aggregate\n-1903 AggregateVisitor v(aggregates, aggregate, visitor);\n-1904 _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(*graph_, vertex, v);\n-1905 }\n-1906\n-1907\n-1908 template\n-1909 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br()\n-1910 : count_(0)\n-1911 {}\n-1912\n-1913 template\n-1914 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt()\n-1915 {\n-1916 ++count_;\n-1917 }\n-1918\n-1919 template\n-1920 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt()\n-1921 {\n-1922 --count_;\n-1923 }\n-1924 template\n-1925 inline int _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be()\n-1926 {\n-1927 return count_;\n-1928 }\n-1929\n-1930 template\n-1931 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bT_\bw_\bo_\bW_\ba_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n-_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n-1932 {\n-1933 if(edge.properties().isTwoWay())\n-1934 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-1935 }\n-1936\n-1937 template\n-1938 int Aggregator::twoWayConnections(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1939 const AggregatesMap& aggregates) const\n-1940 {\n-1941 TwoWayCounter counter;\n-1942 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);\n-1943 return counter.value();\n-1944 }\n-1945\n-1946 template\n-1947 int Aggregator::oneWayConnections(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-1948 const AggregatesMap& aggregates) const\n-1949 {\n-1950 OneWayCounter counter;\n-1951 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);\n-1952 return counter.value();\n-1953 }\n-1954\n-1955 template\n-1956 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bO_\bn_\be_\bW_\ba_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n-_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n-1957 {\n-1958 if(edge.properties().isOneWay())\n-1959 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-1960 }\n-1961\n-1962 template\n-1963 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br(const\n-VertexSet& connected,\n-1964 const AggregatesMap& aggregates)\n-1965 : Counter(), connected_(connected), aggregates_(aggregates)\n-1966 {}\n-1967\n-1968\n-1969 template\n-1970 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n-_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n-1971 {\n-1972 if(connected_.find(aggregates_[edge.target()]) == connected_.end() ||\n-aggregates_[edge.target()]==AggregatesMap::UNAGGREGATED)\n-1973 // Would be a new connection\n-1974 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-1975 else{\n-1976 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-1977 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-1978 }\n-1979 }\n-1980\n-1981 template\n-1982 inline double Aggregator::connectivity(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n-AggregatesMap& aggregates) const\n-1983 {\n-1984 ConnectivityCounter counter(connected_, aggregates);\n-1985 double noNeighbours=_\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(*graph_, vertex, counter);\n-1986 return (double)counter.value()/noNeighbours;\n-1987 }\n-1988\n-1989 template\n-1990 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br()\n-1991 : Counter()\n-1992 {}\n-1993\n-1994 template\n-1995 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n-_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n-1996 {\n-1997 if(edge.properties().depends())\n-1998 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-1999 if(edge.properties().influences())\n-2000 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-2001 }\n-2002\n-2003 template\n-2004 int Aggregator::unusedNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n-AggregatesMap& aggregates) const\n-2005 {\n-2006 return aggregateNeighbours(vertex, AggregatesMap::UNAGGREGATED,\n-aggregates);\n-2007 }\n-2008\n-2009 template\n-2010 std::pair Aggregator::neighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n-2011 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-2012 const AggregatesMap& aggregates) const\n-2013 {\n-2014 DependencyCounter unused, aggregated;\n-2015 typedef AggregateVisitor CounterT;\n-2016 typedef std::tuple CounterTuple;\n-2017 CombinedFunctor visitors(CounterTuple(CounterT(aggregates,\n-AggregatesMap::UNAGGREGATED, unused), CounterT(aggregates, aggregate,\n-aggregated)));\n-2018 _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(*graph_, vertex, visitors);\n-2019 return std::make_pair(unused.value(), aggregated.value());\n-2020 }\n-2021\n-2022\n-2023 template\n-2024 int Aggregator::aggregateNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate, const AggregatesMap& aggregates) const\n-2025 {\n-2026 DependencyCounter counter;\n-2027 visitAggregateNeighbours(vertex, aggregate, aggregates, counter);\n-2028 return counter.value();\n-2029 }\n-2030\n-2031 template\n-2032 std::size_t Aggregator::distance(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n-AggregatesMap& aggregates)\n-2033 {\n-2034 return 0;\n-2035 typename PropertyMapTypeSelector::Type visitedMap =\n-_\bg_\be_\bt(VertexVisitedTag(), *graph_);\n-2036 VertexList vlist;\n-2037 typename AggregatesMap::DummyEdgeVisitor dummy;\n-2038 return aggregates.template breadthFirstSearch(vertex,\n-2039 aggregate_->_\bi_\bd(), *graph_,\n-2040 vlist, dummy, dummy, visitedMap);\n-2041 }\n-2042\n-2043 template\n-2044 inline _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br(std::vector& front,\n-_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph)\n-2045 : front_(front), graph_(graph)\n-2046 {}\n-2047\n-2048 template\n-2049 inline void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n-_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n-2050 {\n-2051 _\bV_\be_\br_\bt_\be_\bx target = edge.target();\n-2052\n-2053 if(!graph_.getVertexProperties(target).front()) {\n-2054 front_.push_back(target);\n-2055 graph_.getVertexProperties(target).setFront();\n-2056 }\n-2057 }\n-2058\n-2059 template\n-2060 inline bool Aggregator::admissible(const _\bV_\be_\br_\bt_\be_\bx& vertex, const\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate, const AggregatesMap& aggregates) const\n-2061 {\n-2062 // Todo\n-2063 Dune::dvverb<<\" Admissible not yet implemented!\"<endEdges(vertex);\n-2071 for(Iterator edge = graph_->beginEdges(vertex); edge != vend; ++edge) {\n-2072 // if(edge.properties().depends() && !edge.properties().influences()\n-2073 if(edge.properties().isStrong()\n-2074 && aggregates[edge.target()]==aggregate)\n-2075 {\n-2076 // Search for another link to the aggregate\n-2077 Iterator edge1 = edge;\n-2078 for(++edge1; edge1 != vend; ++edge1) {\n-2079 //if(edge1.properties().depends() && !edge1.properties().influences()\n-2080 if(edge1.properties().isStrong()\n-2081 && aggregates[edge.target()]==aggregate)\n-2082 {\n-2083 //Search for an edge connecting the two vertices that is\n-2084 //strong\n-2085 bool found=false;\n-2086 Iterator v2end = graph_->endEdges(edge.target());\n-2087 for(Iterator edge2 = graph_->beginEdges(edge.target()); edge2 != v2end;\n-++edge2) {\n-2088 if(edge2.target()==edge1.target() &&\n-2089 edge2.properties().isStrong()) {\n-2090 found =true;\n-2091 break;\n-2092 }\n-2093 }\n-2094 if(found)\n-2095 {\n-2096 return true;\n-2097 }\n-2098 }\n-2099 }\n-2100 }\n-2101 }\n-2102\n-2103 // Situation 2: cluster node depends on front node and other cluster node\n-2105 vend = graph_->endEdges(vertex);\n-2106 for(Iterator edge = graph_->beginEdges(vertex); edge != vend; ++edge) {\n-2107 //if(!edge.properties().depends() && edge.properties().influences()\n-2108 if(edge.properties().isStrong()\n-2109 && aggregates[edge.target()]==aggregate)\n-2110 {\n-2111 // Search for a link from target that stays within the aggregate\n-2112 Iterator v1end = graph_->endEdges(edge.target());\n-2113\n-2114 for(Iterator edge1=graph_->beginEdges(edge.target()); edge1 != v1end;\n-++edge1) {\n-2115 //if(edge1.properties().depends() && !edge1.properties().influences()\n-2116 if(edge1.properties().isStrong()\n-2117 && aggregates[edge1.target()]==aggregate)\n-2118 {\n-2119 bool found=false;\n-2120 // Check if front node is also connected to this one\n-2121 Iterator v2end = graph_->endEdges(vertex);\n-2122 for(Iterator edge2 = graph_->beginEdges(vertex); edge2 != v2end; ++edge2)\n-{\n-2123 if(edge2.target()==edge1.target()) {\n-2124 if(edge2.properties().isStrong())\n-2125 found=true;\n-2126 break;\n-2127 }\n-2128 }\n-2129 if(found)\n-2130 {\n-2131 return true;\n-2132 }\n-2133 }\n-2134 }\n-2135 }\n-2136 }\n-2137 return false;\n-2138 }\n-2139\n-2140 template\n-2141 void Aggregator::unmarkFront()\n-2142 {\n-2143 typedef typename std::vector::const_iterator Iterator;\n-2144\n-2145 for(Iterator vertex=front_.begin(); vertex != front_.end(); ++vertex)\n-2146 graph_->getVertexProperties(*vertex).resetFront();\n-2147\n-2148 front_.clear();\n-2149 }\n-2150\n-2151 template\n-2152 inline void\n-2153 Aggregator::nonisoNeighbourAggregate(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n-2154 const AggregatesMap& aggregates,\n-2155 SLList& neighbours) const\n-2156 {\n-2157 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n-2158 Iterator end=graph_->beginEdges(vertex);\n-2159 neighbours.clear();\n-2160\n-2161 for(Iterator edge=graph_->beginEdges(vertex); edge!=end; ++edge)\n-2162 {\n-2163 if(aggregates[edge.target()]!=AggregatesMap::UNAGGREGATED &&\n-graph_->getVertexProperties(edge.target()).isolated())\n-2164 neighbours.push_back(aggregates[edge.target()]);\n-2165 }\n-2166 }\n-2167\n-2168 template\n-2169 inline typename G::VertexDescriptor Aggregator::mergeNeighbour(const\n-_\bV_\be_\br_\bt_\be_\bx& vertex, const AggregatesMap& aggregates) const\n-2170 {\n-2171 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n-2172\n-2173 Iterator end = graph_->endEdges(vertex);\n-2174 for(Iterator edge = graph_->beginEdges(vertex); edge != end; ++edge) {\n-2175 if(aggregates[edge.target()] != AggregatesMap::UNAGGREGATED &&\n-2176 graph_->getVertexProperties(edge.target()).isolated() == graph_-\n->getVertexProperties(edge.source()).isolated()) {\n-2177 if( graph_->getVertexProperties(vertex).isolated() ||\n-2178 ((edge.properties().depends() || edge.properties().influences())\n-2179 && admissible(vertex, aggregates[edge.target()], aggregates)))\n-2180 return edge.target();\n-2181 }\n-2182 }\n-2183 return AggregatesMap::UNAGGREGATED;\n-2184 }\n-2185\n-2186 template\n-2187 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br(const\n-_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph)\n-2188 : Counter(), graph_(graph)\n-2189 {}\n-2190\n-2191 template\n-2192 void _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const typename\n-_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n-2193 {\n-2194 if(graph_.getVertexProperties(edge.target()).front())\n-2195 _\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-2196 }\n-2197\n-2198 template\n-2199 int Aggregator::noFrontNeighbours(const _\bV_\be_\br_\bt_\be_\bx& vertex) const\n-2200 {\n-2201 FrontNeighbourCounter counter(*graph_);\n-2202 _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(*graph_, vertex, counter);\n-2203 return counter.value();\n-2204 }\n-2205 template\n-2206 inline bool Aggregator::connected(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n-2207 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& aggregate,\n-2208 const AggregatesMap& aggregates) const\n-2209 {\n-2210 typedef typename G::ConstEdgeIterator iterator;\n-2211 const iterator end = graph_->endEdges(vertex);\n-2212 for(iterator edge = graph_->beginEdges(vertex); edge != end; ++edge)\n-2213 if(aggregates[edge.target()]==aggregate)\n-2214 return true;\n-2215 return false;\n-2216 }\n-2217 template\n-2218 inline bool Aggregator::connected(const _\bV_\be_\br_\bt_\be_\bx& vertex,\n-2219 const SLList& aggregateList,\n-2220 const AggregatesMap& aggregates) const\n-2221 {\n-2222 typedef typename SLList::const_iterator Iter;\n-2223 for(Iter i=aggregateList.begin(); i!=aggregateList.end(); ++i)\n-2224 if(connected(vertex, *i, aggregates))\n-2225 return true;\n-2226 return false;\n-2227 }\n-2228\n-2229 template\n-2230 template\n-2231 void Aggregator::growIsolatedAggregate(const _\bV_\be_\br_\bt_\be_\bx& seed, const\n-AggregatesMap& aggregates, const C& c)\n-2232 {\n-2233 SLList connectedAggregates;\n-2234 nonisoNeighbourAggregate(seed, aggregates,connectedAggregates);\n-2235\n-2236 while(aggregate_->_\bs_\bi_\bz_\be()< c.minAggregateSize() && aggregate_->_\bc_\bo_\bn_\bn_\be_\bc_\bt_\bS_\bi_\bz_\be\n-() < c.maxConnectivity()) {\n-2237 double maxCon=-1;\n-2238 std::size_t maxFrontNeighbours=0;\n-2239\n-2240 _\bV_\be_\br_\bt_\be_\bx candidate=AggregatesMap::UNAGGREGATED;\n-2241\n-2242 typedef typename std::vector::const_iterator Iterator;\n-2243\n-2244 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {\n-2245 if(distance(*vertex, aggregates)>c.maxDistance())\n-2246 continue; // distance of proposes aggregate too big\n-2247\n-2248 if(connectedAggregates.size()>0) {\n-2249 // there is already a neighbour cluster\n-2250 // front node must be connected to same neighbour cluster\n-2251\n-2252 if(!connected(*vertex, connectedAggregates, aggregates))\n-2253 continue;\n-2254 }\n-2255\n-2256 double con = connectivity(*vertex, aggregates);\n-2257\n-2258 if(con == maxCon) {\n-2259 std::size_t frontNeighbours = noFrontNeighbours(*vertex);\n-2260\n-2261 if(frontNeighbours >= maxFrontNeighbours) {\n-2262 maxFrontNeighbours = frontNeighbours;\n-2263 candidate = *vertex;\n-2264 }\n-2265 }else if(con > maxCon) {\n-2266 maxCon = con;\n-2267 maxFrontNeighbours = noFrontNeighbours(*vertex);\n-2268 candidate = *vertex;\n-2269 }\n-2270 }\n-2271\n-2272 if(candidate==AggregatesMap::UNAGGREGATED)\n-2273 break;\n-2274\n-2275 aggregate_->_\ba_\bd_\bd(candidate);\n-2276 }\n-2277 }\n-2278\n-2279 template\n-2280 template\n-2281 void Aggregator::growAggregate(const _\bV_\be_\br_\bt_\be_\bx& seed, const\n-AggregatesMap& aggregates, const C& c)\n-2282 {\n-2283 using std::min;\n-2284\n-2285 std::size_t distance_ =0;\n-2286 while(aggregate_->_\bs_\bi_\bz_\be() < c.minAggregateSize()&& distance_ candidates;\n-2291 candidates.reserve(30);\n-2292\n-2293 typedef typename std::vector::const_iterator Iterator;\n-2294\n-2295 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {\n-2296 // Only nonisolated nodes are considered\n-2297 if(graph_->getVertexProperties(*vertex).isolated())\n-2298 continue;\n-2299\n-2300 int twoWayCons = twoWayConnections(*vertex, aggregate_->_\bi_\bd(), aggregates);\n-2301\n-2302 /* The case of two way connections. */\n-2303 if( maxTwoCons == twoWayCons && twoWayCons > 0) {\n-2304 double con = connectivity(*vertex, aggregates);\n-2305\n-2306 if(con == maxCon) {\n-2307 int neighbours = noFrontNeighbours(*vertex);\n-2308\n-2309 if(neighbours > maxNeighbours) {\n-2310 maxNeighbours = neighbours;\n-2311 candidates.clear();\n-2312 candidates.push_back(*vertex);\n-2313 }else{\n-2314 candidates.push_back(*vertex);\n-2315 }\n-2316 }else if( con > maxCon) {\n-2317 maxCon = con;\n-2318 maxNeighbours = noFrontNeighbours(*vertex);\n-2319 candidates.clear();\n-2320 candidates.push_back(*vertex);\n-2321 }\n-2322 }else if(twoWayCons > maxTwoCons) {\n-2323 maxTwoCons = twoWayCons;\n-2324 maxCon = connectivity(*vertex, aggregates);\n-2325 maxNeighbours = noFrontNeighbours(*vertex);\n-2326 candidates.clear();\n-2327 candidates.push_back(*vertex);\n-2328\n-2329 // two way connections precede\n-2330 maxOneCons = std::numeric_limits::max();\n-2331 }\n-2332\n-2333 if(twoWayCons > 0)\n-2334 {\n-2335 continue; // THis is a two-way node, skip tests for one way nodes\n-2336 }\n-2337\n-2338 /* The one way case */\n-2339 int oneWayCons = oneWayConnections(*vertex, aggregate_->_\bi_\bd(), aggregates);\n-2340\n-2341 if(oneWayCons==0)\n-2342 continue; // No strong connections, skip the tests.\n-2343\n-2344 if(!admissible(*vertex, aggregate_->_\bi_\bd(), aggregates))\n-2345 continue;\n-2346\n-2347 if( maxOneCons == oneWayCons && oneWayCons > 0) {\n-2348 double con = connectivity(*vertex, aggregates);\n-2349\n-2350 if(con == maxCon) {\n-2351 int neighbours = noFrontNeighbours(*vertex);\n-2352\n-2353 if(neighbours > maxNeighbours) {\n-2354 maxNeighbours = neighbours;\n-2355 candidates.clear();\n-2356 candidates.push_back(*vertex);\n-2357 }else{\n-2358 if(neighbours==maxNeighbours)\n-2359 {\n-2360 candidates.push_back(*vertex);\n-2361 }\n-2362 }\n-2363 }else if( con > maxCon) {\n-2364 maxCon = con;\n-2365 maxNeighbours = noFrontNeighbours(*vertex);\n-2366 candidates.clear();\n-2367 candidates.push_back(*vertex);\n-2368 }\n-2369 }else if(oneWayCons > maxOneCons) {\n-2370 maxOneCons = oneWayCons;\n-2371 maxCon = connectivity(*vertex, aggregates);\n-2372 maxNeighbours = noFrontNeighbours(*vertex);\n-2373 candidates.clear();\n-2374 candidates.push_back(*vertex);\n-2375 }\n-2376 }\n-2377\n-2378\n-2379 if(!candidates.size())\n-2380 break; // No more candidates found\n-2381 distance_=distance(seed, aggregates);\n-2382 candidates.resize(min(candidates.size(), c.maxAggregateSize()-\n-2383 aggregate_->_\bs_\bi_\bz_\be()));\n-2384 aggregate_->_\ba_\bd_\bd(candidates);\n-2385 }\n-2386 }\n-2387\n-2388 template\n-2389 template\n-2390 std::tuple _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs(const M&\n-matrix, G& graph, const C& criterion,\n-2391 bool finestLevel)\n-2392 {\n-2393 Aggregator aggregator;\n-2394 return aggregator.build(matrix, graph, *this, criterion, finestLevel);\n-2395 }\n-2396\n-2397 template\n-2398 template\n-2399 std::tuple _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd(const M& m, G& graph,\n-AggregatesMap& aggregates, const C& c,\n-2400 bool finestLevel)\n-2401 {\n-2402 using std::max;\n-2403 using std::min;\n-2404 // Stack for fast vertex access\n-2405 Stack stack_(graph, *this, aggregates);\n-2406\n-2407 graph_ = &graph;\n-2408\n-2409 aggregate_ = new Aggregate(graph, aggregates, connected_,\n-front_);\n-2410\n-2411 Timer watch;\n-2412 watch.reset();\n-2413\n-2414 _\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by(graph, m, c, finestLevel);\n-2415\n-2416 dverb<<\"Build dependency took \"<< watch.elapsed()<<\" seconds.\"<::ISOLATED;\n-2437 ++skippedAggregates;\n-2438 continue;\n-2439 }\n-2440\n-2441 if(graph.getVertexProperties(seed).isolated()) {\n-2442 if(c.skipIsolated()) {\n-2443 // isolated vertices are not aggregated but skipped on the coarser levels.\n-2444 aggregates[seed]=AggregatesMap::ISOLATED;\n-2445 ++skippedAggregates;\n-2446 // skip rest as no agglomeration is done.\n-2447 continue;\n-2448 }else{\n-2449 aggregate_->_\bs_\be_\be_\bd(seed);\n-2450 growIsolatedAggregate(seed, aggregates, c);\n-2451 }\n-2452 }else{\n-2453 aggregate_->_\bs_\be_\be_\bd(seed);\n-2454 growAggregate(seed, aggregates, c);\n-2455 }\n-2456\n-2457 /* The rounding step. */\n-2458 while(!(graph.getVertexProperties(seed).isolated()) && aggregate_->_\bs_\bi_\bz_\be()\n-< c.maxAggregateSize()) {\n-2459\n-2460 std::vector candidates;\n-2461 candidates.reserve(30);\n-2462\n-2463 typedef typename std::vector::const_iterator Iterator;\n-2464\n-2465 for(Iterator vertex = front_.begin(); vertex != front_.end(); ++vertex) {\n-2466\n-2467 if(graph.getVertexProperties(*vertex).isolated())\n-2468 continue; // No isolated nodes here\n-2469\n-2470 if(twoWayConnections( *vertex, aggregate_->_\bi_\bd(), aggregates) == 0 &&\n-2471 (oneWayConnections( *vertex, aggregate_->_\bi_\bd(), aggregates) == 0 ||\n-2472 !admissible( *vertex, aggregate_->_\bi_\bd(), aggregates) ))\n-2473 continue;\n-2474\n-2475 std::pair neighbourPair=neighbours(*vertex, aggregate_->_\bi_\bd(),\n-2476 aggregates);\n-2477\n-2478 //if(aggregateNeighbours(*vertex, aggregate_->id(), aggregates) <=\n-unusedNeighbours(*vertex, aggregates))\n-2479 // continue;\n-2480\n-2481 if(neighbourPair.first >= neighbourPair.second)\n-2482 continue;\n-2483\n-2484 if(distance(*vertex, aggregates) > c.maxDistance())\n-2485 continue; // Distance too far\n-2486 candidates.push_back(*vertex);\n-2487 break;\n-2488 }\n-2489\n-2490 if(!candidates.size()) break; // no more candidates found.\n-2491\n-2492 candidates.resize(min(candidates.size(), c.maxAggregateSize()-\n-2493 aggregate_->_\bs_\bi_\bz_\be()));\n-2494 aggregate_->_\ba_\bd_\bd(candidates);\n-2495\n-2496 }\n-2497\n-2498 // try to merge aggregates consisting of only one nonisolated vertex with\n-other aggregates\n-2499 if(aggregate_->_\bs_\bi_\bz_\be()==1 && c.maxAggregateSize()>1) {\n-2500 if(!graph.getVertexProperties(seed).isolated()) {\n-2501 _\bV_\be_\br_\bt_\be_\bx mergedNeighbour = mergeNeighbour(seed, aggregates);\n-2502\n-2503 if(mergedNeighbour != AggregatesMap::UNAGGREGATED) {\n-2504 // assign vertex to the neighbouring cluster\n-2505 aggregates[seed] = aggregates[mergedNeighbour];\n-2506 aggregate_->_\bi_\bn_\bv_\ba_\bl_\bi_\bd_\ba_\bt_\be();\n-2507 }else{\n-2508 ++avg;\n-2509 minA=min(minA,static_cast(1));\n-2510 maxA=max(maxA,static_cast(1));\n-2511 ++oneAggregates;\n-2512 ++conAggregates;\n-2513 }\n-2514 }else{\n-2515 ++avg;\n-2516 minA=min(minA,static_cast(1));\n-2517 maxA=max(maxA,static_cast(1));\n-2518 ++oneAggregates;\n-2519 ++isoAggregates;\n-2520 }\n-2521 ++avg;\n-2522 }else{\n-2523 avg+=aggregate_->_\bs_\bi_\bz_\be();\n-2524 minA=min(minA,aggregate_->_\bs_\bi_\bz_\be());\n-2525 maxA=max(maxA,aggregate_->_\bs_\bi_\bz_\be());\n-2526 if(graph.getVertexProperties(seed).isolated())\n-2527 ++isoAggregates;\n-2528 else\n-2529 ++conAggregates;\n-2530 }\n-2531\n-2532 }\n-2533\n-2534 Dune::dinfo<<\"connected aggregates: \"<0)\n-2537 Dune::dinfo<<\" one node aggregates: \"<\n-2548 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bS_\bt_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh& graph, const Aggregator&\n-aggregatesBuilder,\n-2549 const AggregatesMap& aggregates)\n-2550 : graph_(graph), aggregatesBuilder_(aggregatesBuilder), aggregates_\n-(aggregates), begin_(graph.begin()), end_(graph.end())\n-2551 {\n-2552 //vals_ = new Vertex[N];\n-2553 }\n-2554\n-2555 template\n-2556 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\b~_\bS_\bt_\ba_\bc_\bk()\n-2557 {\n-2558 //Dune::dverb << \"Max stack size was \"<\n-2563 const typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bN_\bu_\bl_\bl_\bE_\bn_\bt_\br_\by\n-2564 = std::numeric_limits::max();\n-2565\n-2566 template\n-2567 inline typename G::VertexDescriptor _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b<_\bG_\b>_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bp_\bo_\bp()\n-2568 {\n-2569 for(; begin_!=end_ && aggregates_[*begin_] != AggregatesMap::\n-UNAGGREGATED; ++begin_) ;\n-2570\n-2571 if(begin_!=end_)\n-2572 {\n-2573 typename G::VertexDescriptor current=*begin_;\n-2574 ++begin_;\n-2575 return current;\n-2576 }else\n-2577 return NullEntry;\n-2578 }\n-2579\n-2580#endif // DOXYGEN\n-2581\n-2582 template\n-_\b2_\b5_\b8_\b3 void _\bp_\br_\bi_\bn_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b2_\bd(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>& aggregates, int n, int m,\n-std::ostream& os)\n-2584 {\n-2585 using std::max;\n-2586\n-2587 std::ios_base::fmtflags oldOpts=os.flags();\n-2588\n-2589 os.setf(std::ios_base::right, std::ios_base::adjustfield);\n-2590\n-2591 V maxVal=0;\n-2592 int width=1;\n-2593\n-2594 for(int i=0; i< n*m; i++)\n-2595 maxVal=max(maxVal, aggregates[i]);\n-2596\n-2597 for(int i=10; i < 1000000; i*=10)\n-2598 if(maxVal/i>0)\n-2599 width++;\n-2600 else\n-2601 break;\n-2602\n-2603 for(int j=0, entry=0; j < m; j++) {\n-2604 for(int i=0; i\n+_\b7_\b1_\b4 void _\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br_\b<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bs_\be_\bt(M& coarse,\n+715 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n+716 const O& overlap)\n+717 {}\n+718\n+719 } // namespace Amg\n+720} // namespace Dune\n+721#endif\n+_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n+_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n+Provides classes for the Coloring process of AMG.\n _\bc_\bo_\bl\n Col col\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n-Matrix::ConstColIterator ColIter\n-Constant column iterator of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:273\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bv_\ba_\bl_\bI_\bt_\be_\br_\b_\n-std::vector< real_type >::iterator valIter_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:189\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n-Matrix::ConstColIterator ColIter\n-Constant column iterator of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:154\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh\n-std::size_t breadthFirstSearch(const VertexDescriptor &start, const\n-AggregateDescriptor &aggregate, const G &graph, L &visited, F1\n-&aggregateVisitor, F2 &nonAggregateVisitor, VM &visitedMap) const\n-Breadth first search within an aggregate.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n-PoolAllocator< VertexDescriptor, 100 > Allocator\n-The allocator we use for our lists and the set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:586\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-iterator begin()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:737\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bi_\bd\n-int id()\n-Get the id identifying the aggregate.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bn_\bo_\br_\bm_\b_\n-Norm norm_\n-The functor for calculating the norm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:302\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-MatrixGraph::VertexDescriptor Vertex\n-The vertex identifier.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:920\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-AggregationCriterion()\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bO_\bV_\bL_\be_\bs_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+bool operator()(const OverlapVertex< A > &o1, const OverlapVertex< A > &o2)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:155\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bN_\bo_\bn_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by\n+static void constructNonOverlapConnectivity(R &row, G &graph, V &visitedMap,\n+const AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename\n+G::VertexDescriptor &seed)\n+Construct the connectivity of an aggregate in the overlap.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:313\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh\n+G Graph\n+The type of the graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:211\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+void operator++()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:539\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const ConstEdgeIterator &edge)\n+Process an edge pointing to another aggregate.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:359\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt\n+void insert(const typename M::size_type &index)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:552\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by\n+static void constructOverlapConnectivity(R &row, G &graph, V &visitedMap, const\n+AggregatesMap< typename G::VertexDescriptor > &aggregates, const OverlapVertex<\n+typename G::VertexDescriptor > *&seed, const OverlapVertex< typename G::\n+VertexDescriptor > *overlapEnd)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:331\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bb_\bu_\bi_\bl_\bd\n+G::MutableMatrix * build(G &fineGraph, V &visitedMap, const ParallelInformation\n+&pinfo, AggregatesMap< typename G::VertexDescriptor > &aggregates, const\n+typename G::Matrix::size_type &size, const Set ©)\n+Calculates the coarse matrix via a Galerkin product.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:563\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n+std::size_t index()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+T ParallelInformation\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+G::VertexDescriptor Vertex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:272\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n+T Aggregate\n+The aggregate descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br\n+SparsityBuilder(M &matrix)\n Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:66\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n-const Matrix * matrix_\n-The matrix we work on.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:357\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-auto operator()(const M &m, typename std::enable_if_t< Dune::IsNumber< M >::\n-value > *sfinae=nullptr) const\n-Compute the norm of a scalar.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:406\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw\n-void initRow(const Row &row, int index)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-SymmetricMatrixDependency(const Parameters &parms)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:168\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-M Matrix\n-The matrix type we build the dependency of.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:258\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br\n-Counter()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:513\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br\n+ConnectedBuilder(const AggregatesMap< Vertex > &aggregates, Graph &graph,\n+VisitedMap &visitedMap, Set &connected)\n Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-G MatrixGraph\n-The matrix graph type used.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:915\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bn_\bo_\br_\bm_\b_\n-Norm norm_\n-The functor for calculating the norm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:363\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const EdgeIterator &edge) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:601\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-SymmetricCriterion()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:524\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-Dependency()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:290\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n-void examine(const ColIter &col)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-M Matrix\n-The matrix type we build the dependency of.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:319\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_\n-real_type diagonal_\n-The norm of the current diagonal.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:187\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bN_\bo_\br_\bm\n-N Norm\n-The norm to use for examining the matrix entries.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:263\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n-iterator end()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:742\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-UnSymmetricCriterion(const Parameters &parms)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:541\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bT_\bw_\bo_\bW_\ba_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw\n-void initRow(const Row &row, int index)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:201\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n-bool isIsolated()\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bN_\bu_\bl_\bl_\bE_\bn_\bt_\br_\by\n-static const Vertex NullEntry\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:1008\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n-void examine(const ColIter &col)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:214\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-Dependency(const Parameters &parms)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:286\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\bo_\bw_\b_\n-int row_\n-index of the currently evaluated row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:185\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bb_\bu_\bi_\bl_\bd\n-std::tuple< int, int, int, int > build(const M &m, G &graph, AggregatesMap<\n-Vertex > &aggregates, const C &c, bool finestLevel)\n-Build the aggregates.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br\n-FrontNeighbourCounter(const MatrixGraph &front)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bR_\bo_\bw\n-Matrix::row_type Row\n-Constant Row iterator of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:329\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n-const Matrix * matrix_\n-The matrix we work on.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:296\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-const AggregateDescriptor & operator[](const VertexDescriptor &v) const\n-Get the aggregate a vertex belongs to.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n-void examine(G &graph, const typename G::EdgeIterator &edge, const ColIter\n-&col)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br\n-AggregateVisitor(const AggregatesMap< Vertex > &aggregates, const\n-AggregateDescriptor &aggregate, Visitor &visitor)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n-Matrix::ConstColIterator ColIter\n-Constant column iterator of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:334\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-~AggregatesMap()\n-Destructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Matrix::field_type field_type\n-The current max value.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:179\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n-void decrement()\n-Decrement counter.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n-Aggregate(MatrixGraph &graph, AggregatesMap< Vertex > &aggregates, VertexSet\n-&connectivity, std::vector< Vertex > &front_)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b:_\b:_\bV_\bi_\bs_\bi_\bt_\bo_\br\n-V Visitor\n-The type of the adapted visitor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:1064\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bS_\bp_\bh_\be_\br_\be_\bM_\ba_\bp\n-std::size_t * SphereMap\n-Type of the mapping of aggregate members onto distance spheres.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:809\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-AggregationCriterion(const Parameters &parms)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bR_\bo_\bw\n-Matrix::row_type Row\n-Constant Row iterator of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:268\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bc_\bo_\bn_\bn_\be_\bc_\bt_\bS_\bi_\bz_\be\n-VertexSet::size_type connectSize()\n-Get tne number of connections to other aggregates.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bv_\ba_\bl_\bs_\b_\n-std::vector< real_type > vals_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:188\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bN_\bo_\br_\bm\n-N Norm\n-The norm to use for examining the matrix entries.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:324\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b2_\bd\n-void printAggregates2d(const AggregatesMap< V > &aggregates, int n, int m,\n-std::ostream &os)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:2583\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bi_\bn_\bv_\ba_\bl_\bi_\bd_\ba_\bt_\be\n-void invalidate()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:822\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-const_iterator begin() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:725\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_\n-real_type maxValue_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:181\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bn_\bo_\br_\bm_\b_\n-Norm norm_\n-The functor for calculating the norm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:183\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-VertexSet::const_iterator const_iterator\n-Const iterator over a vertex list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:804\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-SymmetricCriterion(const Parameters &parms)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:521\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-MatrixGraph::VertexDescriptor AggregateDescriptor\n-The type of the aggregate descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:923\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_\n-real_type maxValue_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:361\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt\n-void init(const Matrix *matrix)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:195\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_\n-real_type diagonal_\n-The norm of the current diagonal.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:367\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-AggregateDescriptor * iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:735\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-SymmetricDependency(const Parameters &parms)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:348\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:360\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br\n-~Aggregator()\n-Destructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n-void examine(G &graph, const typename G::EdgeIterator &edge, const ColIter\n-&col)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\ba_\bd_\bd\n-void add(const Vertex &vertex)\n-Add a vertex to the aggregate.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bP_\bo_\bl_\bi_\bc_\by\n-T DependencyPolicy\n-The policy for calculating the dependency graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:55\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\ba_\bd_\bd\n-void add(std::vector< Vertex > &vertex)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n-void examine(const ColIter &col)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br\n-Aggregator()\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n-Examine an edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bM_\ba_\br_\bk_\be_\br\n-FrontMarker(std::vector< Vertex > &front, MatrixGraph &graph)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const\n-compute the norm of a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:506\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt\n-void init(const Matrix *matrix)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:352\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Graph::ConstEdgeIterator ConstEdgeIterator\n+The constant edge iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:215\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+T Vertex\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:42\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\b _\bG_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+G::VertexDescriptor Vertex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:288\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n+static void examine(G &graph, V &visitedMap, const T &pinfo, const\n+AggregatesMap< Vertex > &aggregates, const O &overlap, const OverlapVertex<\n+Vertex > *overlapVertices, const OverlapVertex< Vertex > *overlapEnd, R &row)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:420\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bM_\ba_\bp\n+V VisitedMap\n+The type of the map for marking vertices as visited.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:225\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs\n int visitNeighbours(const G &graph, const typename G::VertexDescriptor &vertex,\n V &visitor)\n Visit all neighbour vertices of a vertex in a graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bI_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc\n-void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)\n-Sets reasonable default values for an isotropic problem.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n-const_iterator end() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:730\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-V AggregateDescriptor\n-The aggregate descriptor type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:580\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD\n-static const V ISOLATED\n-Identifier of isolated vertices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:571\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\bo_\bw_\b_\n-int row_\n-index of the currently evaluated row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:365\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-SymmetricMatrixDependency()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:171\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br\n-DependencyCounter()\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bp_\bo_\bp\n-Vertex pop()\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b_\n-real_type diagonal_\n-The norm of the current diagonal.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:306\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n-std::size_t noVertices() const\n-Get the number of vertices.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bV_\ba_\bl_\bu_\be_\bs_\bA_\bn_\bi_\bs_\bo_\bt_\br_\bo_\bp_\bi_\bc\n-void setDefaultValuesAnisotropic(std::size_t dim, std::size_t diameter=2)\n-Sets reasonable default values for an aisotropic problem.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:105\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-AggregatesMap(std::size_t noVertices)\n-Constructs with allocating memory.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Matrix::field_type field_type\n-The current max value.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:359\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-AggregateDescriptor & operator[](const VertexDescriptor &v)\n-Get the aggregate a vertex belongs to.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-AggregatesMap()\n-Constructs without allocating memory.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-int value()\n-Access the current count.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bL_\bi_\bs_\bt\n-SLList< VertexDescriptor, Allocator > VertexList\n-The type of a single linked list of vertex descriptors.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:592\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\b~_\bS_\bt_\ba_\bc_\bk\n-~Stack()\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bu_\bn_\bt_\be_\br\n-ConnectivityCounter(const VertexSet &connected, const AggregatesMap< Vertex >\n-&aggregates)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bs_\bi_\bz_\be\n-VertexSet::size_type size()\n-Get the size of the aggregate.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\be_\bn_\bd\n-const_iterator end() const\n-get an iterator over the vertices of the aggregate.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt\n-void init(const Matrix *matrix)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-UnSymmetricCriterion()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:544\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bF_\br_\bo_\bn_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-const AggregateDescriptor * const_iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:723\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\bo_\bw_\b_\n-int row_\n-index of the currently evaluated row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:304\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bS_\bt_\ba_\bc_\bk_\b:_\b:_\bS_\bt_\ba_\bc_\bk\n-Stack(const MatrixGraph &graph, const Aggregator< G > &aggregatesBuilder, const\n-AggregatesMap< Vertex > &aggregates)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:180\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bn_\bi_\bt_\bR_\bo_\bw\n-void initRow(const Row &row, int index)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-M Matrix\n-The matrix type we build the dependency of.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:139\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b_\n-const Matrix * matrix_\n-The matrix we work on.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:177\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bS_\be_\bt\n-S VertexSet\n-The type of a single linked list of vertex descriptors.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:801\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const\n-compute the norm of a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:490\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD\n-static const V UNAGGREGATED\n-Identifier of not yet aggregated vertices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:566\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\br_\be_\ba_\bd_\bt_\bh_\bF_\bi_\br_\bs_\bt_\bS_\be_\ba_\br_\bc_\bh\n-std::size_t breadthFirstSearch(const VertexDescriptor &start, const\n-AggregateDescriptor &aggregate, const G &graph, F &aggregateVisitor, VM\n-&visitedMap) const\n-Breadth first search within an aggregate.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Matrix::field_type field_type\n-The current max value.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:298\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bO_\bn_\be_\bW_\ba_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-std::ostream & operator<<(std::ostream &os, const AggregationCriterion< T >\n-&criterion)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:113\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n-bool isIsolated()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:240\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n-void allocate(std::size_t noVertices)\n-Allocate memory for holding the information.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bN_\bo_\br_\bm\n-N Norm\n-The norm to use for examining the matrix entries.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:144\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\bo_\bw_\bS_\bu_\bm_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-FieldTraits< typenameM::field_type >::real_type operator()(const M &m) const\n-compute the norm of a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:473\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\br_\be_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-void reconstruct(const Vertex &vertex)\n-Reconstruct the aggregat from an seed node.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-const_iterator begin() const\n-get an iterator over the vertices of the aggregate.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-FieldTraits< typenameM::field_type >::real_type operator()(const M &m, typename\n-std::enable_if_t::value > *sfinae=nullptr) const\n-compute the norm of a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:390\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-MatrixGraph::VertexDescriptor Vertex\n-The vertex descriptor type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:789\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bs_\be_\be_\bd\n-void seed(const Vertex &vertex)\n-Initialize the aggregate with one vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bi_\bs_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n-bool isIsolated()\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-SymmetricDependency()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:351\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bc_\bl_\be_\ba_\br\n-void clear()\n-Clear the aggregate.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bf_\br_\be_\be\n-void free()\n-Free the allocated memory.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n-void increment()\n-Increment counter.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-void buildDependency(G &graph, const typename C::Matrix &matrix, C criterion,\n-bool finestLevel)\n-Build the dependency of the matrix graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-V VertexDescriptor\n-The vertex descriptor type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:575\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bm_\ba_\bx_\bV_\ba_\bl_\bu_\be_\b_\n-real_type maxValue_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:300\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs\n-std::tuple< int, int, int, int > buildAggregates(const M &matrix, G &graph,\n-const C &criterion, bool finestLevel)\n-Build the aggregates.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b:_\b:_\bR_\bo_\bw\n-Matrix::row_type Row\n-Constant Row iterator of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n-PoolAllocator< Vertex, 100 > Allocator\n-The allocator we use for our lists and the set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:795\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-G MatrixGraph\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:785\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\bC_\bo_\bu_\bn_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const typename MatrixGraph::ConstEdgeIterator &edge)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm_\b:_\b:_\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg\n-@ is_sign_preserving\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:483\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b:_\b:_\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg\n-@ is_sign_preserving\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:382\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm_\b:_\b:_\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg\n-@ is_sign_preserving\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:499\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\bo_\bw_\bS_\bu_\bm_\b:_\b:_\bi_\bs_\b__\bs_\bi_\bg_\bn_\b__\bp_\br_\be_\bs_\be_\br_\bv_\bi_\bn_\bg\n-@ is_sign_preserving\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bS_\be_\bt\n+S Set\n+The type of the connected set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:220\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n+Aggregate * aggregate\n+The aggregate the vertex belongs to.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:47\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bs_\bu_\bm_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t sumRowSize()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:534\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b:_\b:_\bv_\be_\br_\bt_\be_\bx\n+Vertex vertex\n+The vertex descriptor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bm_\bi_\bn_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t minRowSize()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:528\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br_\b:_\b:_\bs_\be_\bt\n+static void set(M &coarse, const T &pinfo, const O ©)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:682\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+Graph::VertexDescriptor Vertex\n+The vertex descriptor of the graph.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:230\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be\n+void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse,\n+const I &pinfo, const O ©)\n+Calculate the galerkin product.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bm_\ba_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+std::size_t maxRowSize()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:523\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-A generic dynamic dense matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< T >::field_type field_type\n-Export the type representing the underlying field.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:565\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::const_iterator ConstColIterator\n-Const iterator for the entries of each row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n-MatrixImp::DenseMatrixBase< T, A >::window_type row_type\n-The type implementing a matrix row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:574\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-Base class of all aggregation criterions.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:49\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-Dependency policy for symmetric matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:134\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-Dependency policy for symmetric matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:253\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bD_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by\n-Dependency policy for symmetric matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:314\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n-Norm that uses only the [N][N] entry of the block to determine couplings.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:379\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\bi_\br_\bs_\bt_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n-Norm that uses only the [0][0] entry of the block to determine couplings.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:455\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\bo_\bw_\bS_\bu_\bm\n-Functor using the row sum (infinity) norm to determine strong couplings.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:463\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:480\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:496\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-Criterion taking advantage of symmetric matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:519\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-Criterion suitable for unsymmetric matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:539\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bo_\br\n-Class for building the aggregates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:909\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n Class providing information about the mapping of the vertices onto aggregates.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br\n A Dummy visitor that does nothing for each visited edge.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:598\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n-A class for temporarily storing the vertices of an aggregate in.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:778\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-M::size_type VertexDescriptor\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-EdgeIteratorT< const MatrixGraph< Matrix > > ConstEdgeIterator\n-The constant edge iterator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:298\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-Iterator over all edges starting from a vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-The vertex iterator type of the graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:209\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-All parameters for AMG.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:393\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:33\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br\n+Functor for building the sparsity pattern of the matrix using\n+examineConnectivity.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:63\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:118\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:185\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br\n+Visitor for identifying connected aggregates during a breadthFirstSearch.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:206\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:271\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:300\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n+@ nonoverlapping\n+Category for non-overlapping solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+static Category category(const OP &op, decltype(op.category()) *=nullptr)\n+Helperfunction to extract the solver category either from an enum, or from the\n+newly introduced virtu...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00110.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00110.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: graph.hh File Reference\n+dune-istl: transfer.hh File Reference\n \n \n \n \n \n \n \n@@ -71,94 +71,49 @@\n

    \n
    \n
    \n \n+ \n
    \n
    \n \n-

    Provides classes for building the matrix graph. \n+

    Prolongation and restriction for amg. \n More...

    \n-
    #include <cstddef>
    \n-#include <algorithm>
    \n-#include <vector>
    \n-#include <cassert>
    \n-#include <limits>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/iteratorfacades.hh>
    \n-#include <dune/istl/istlexception.hh>
    \n-#include <dune/common/propertymap.hh>
    \n+
    #include <dune/istl/bvector.hh>
    \n+#include <dune/istl/matrixredistribute.hh>
    \n+#include <dune/istl/paamg/pinfo.hh>
    \n+#include <dune/istl/owneroverlapcopy.hh>
    \n+#include <dune/istl/paamg/aggregates.hh>
    \n+#include <dune/common/exceptions.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n \n-\n-\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n

    \n Classes

    class  Dune::Amg::MatrixGraph< M >
     The (undirected) graph of a matrix. More...
    class  Dune::Amg::Transfer< V1, V2, T >
     
    class  Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C >
     Iterator over all edges starting from a vertex. More...
    class  Dune::Amg::Transfer< V, V1, SequentialInformation >
     
    class  Dune::Amg::MatrixGraph< M >::VertexIteratorT< C >
     The vertex iterator type of the graph. More...
     
    class  Dune::Amg::SubGraph< G, T >
     A subgraph of a graph. More...
     
    class  Dune::Amg::SubGraph< G, T >::EdgeIndexMap
     An index map for mapping the edges to indices. More...
     
    class  Dune::Amg::SubGraph< G, T >::EdgeIterator
     The edge iterator of the graph. More...
     
    class  Dune::Amg::SubGraph< G, T >::VertexIterator
     The vertex iterator of the graph. More...
     
    class  Dune::Amg::VertexPropertiesGraph< G, VP, VM >
     Attaches properties to the vertices of a graph. More...
     
    class  Dune::Amg::VertexPropertiesGraph< G, VP, VM >::VertexIteratorT< C >
     
    class  Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM >
     Attaches properties to the edges and vertices of a graph. More...
     
    class  Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM >::EdgeIteratorT< C >
     
    class  Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM >::VertexIteratorT< C >
     
    class  Dune::Amg::GraphVertexPropertiesSelector< G >
     Wrapper to access the internal edge properties of a graph via operator[]() More...
     
    class  Dune::Amg::GraphEdgePropertiesSelector< G >
     Wrapper to access the internal vertex properties of a graph via operator[]() More...
    class  Dune::Amg::Transfer< V, V1, OwnerOverlapCopyCommunication< T1, T2 > >
     
    \n \n \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-\n-\n-\n-\n-\n

    \n-Functions

    template<class G , class V >
    int Dune::Amg::visitNeighbours (const G &graph, const typename G::VertexDescriptor &vertex, V &visitor)
     Visit all neighbour vertices of a vertex in a graph.
     
    \n

    Detailed Description

    \n-

    Provides classes for building the matrix graph.

    \n+

    Prolongation and restriction for amg.

    \n
    Author
    Markus Blatt
    \n-

    During the coarsening process in AMG the matrix graph together with the dependencies, what connections in the graph are considered strong or weak, what vertices are isolated, etc., have to build. This information will be contained in the MatrixGraph class.

    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,85 +1,37 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-graph.hh File Reference\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+transfer.hh File Reference\n _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Provides classes for building the matrix graph. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-#include \n+Prolongation and restriction for amg. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\b _\bM_\b _\b>\n-\u00a0 The (undirected) graph of a matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b1_\b,_\b _\bV_\b2_\b,_\b _\bT_\b _\b>\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\b _\bM_\b _\b>_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\b _\bC_\b _\b>\n-\u00a0 Iterator over all edges starting from a vertex. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\b _\bM_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\b _\bC_\b _\b>\n-\u00a0 The vertex iterator type of the graph. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bT_\b _\b>\n-\u00a0 A subgraph of a graph. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bT_\b _\b>_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n-\u00a0 An index map for mapping the edges to indices. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bT_\b _\b>_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-\u00a0 The edge iterator of the graph. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bT_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-\u00a0 The vertex iterator of the graph. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bV_\bP_\b,_\b _\bV_\bM_\b _\b>\n-\u00a0 Attaches properties to the vertices of a graph. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bV_\bP_\b,_\b _\bV_\bM_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\b _\bC_\b _\b>\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bV_\bP_\b,_\b _\bE_\bP_\b,_\b _\bV_\bM_\b,_\b _\bE_\bM_\b _\b>\n-\u00a0 Attaches properties to the edges and vertices of a graph. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bV_\bP_\b,_\b _\bE_\bP_\b,_\b _\bV_\bM_\b,_\b _\bE_\bM_\b _\b>_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\b _\bC_\b _\b>\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bV_\bP_\b,_\b _\bE_\bP_\b,_\b _\bV_\bM_\b,_\b _\bE_\bM_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\b _\bC_\b _\b>\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bG_\b _\b>\n-\u00a0 Wrapper to access the internal edge properties of a graph via _\bo_\bp_\be_\br_\ba_\bt_\bo_\br\n- _\b[_\b]_\b(_\b) _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bG_\b _\b>\n-\u00a0 Wrapper to access the internal vertex properties of a graph via\n- _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b(_\b) _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-int\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs (const G &graph, const typename G::\n- VertexDescriptor &vertex, V &visitor)\n-\u00a0 Visit all neighbour vertices of a vertex in a graph.\n-\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides classes for building the matrix graph.\n+Prolongation and restriction for amg.\n Author\n Markus Blatt\n-During the coarsening process in AMG the matrix graph together with the\n-dependencies, what connections in the graph are considered strong or weak, what\n-vertices are isolated, etc., have to build. This information will be contained\n-in the MatrixGraph class.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00110_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00110_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: graph.hh Source File\n+dune-istl: transfer.hh Source File\n \n \n \n \n \n \n \n@@ -74,1821 +74,246 @@\n \n
    \n \n
    \n
    \n
    \n-
    graph.hh
    \n+
    transfer.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_GRAPH_HH
    \n-
    6#define DUNE_AMG_GRAPH_HH
    \n+
    5#ifndef DUNE_AMGTRANSFER_HH
    \n+
    6#define DUNE_AMGTRANSFER_HH
    \n
    7
    \n-
    8#include <cstddef>
    \n-
    9#include <algorithm>
    \n-
    10#include <vector>
    \n-
    11#include <cassert>
    \n-
    12#include <limits>
    \n-
    13#include <dune/common/typetraits.hh>
    \n-
    14#include <dune/common/iteratorfacades.hh>
    \n-\n-
    16#include <dune/common/propertymap.hh>
    \n-
    17
    \n-
    18namespace Dune
    \n-
    19{
    \n-
    20 namespace Amg
    \n-
    21 {
    \n-
    49 template<class M>
    \n-
    \n-\n-
    51 {
    \n-
    52 public:
    \n-
    56 typedef M Matrix;
    \n-
    57
    \n-
    61 typedef typename std::remove_const<M>::type MutableMatrix;
    \n-
    62
    \n-
    66 typedef typename M::block_type Weight;
    \n+\n+\n+\n+\n+\n+
    13#include <dune/common/exceptions.hh>
    \n+
    14
    \n+
    15namespace Dune
    \n+
    16{
    \n+
    17 namespace Amg
    \n+
    18 {
    \n+
    19
    \n+
    30 template<class V1, class V2, class T>
    \n+
    \n+\n+
    32 {
    \n+
    33
    \n+
    34 public:
    \n+
    35 typedef V1 Vertex;
    \n+
    36 typedef V2 Vector;
    \n+
    37
    \n+
    38 template<typename T1, typename R>
    \n+
    39 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n+
    40 Vector& fineRedist,T1 damp, R& redistributor=R());
    \n+
    41
    \n+
    42 template<typename T1, typename R>
    \n+
    43 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n+
    44 T1 damp);
    \n+
    45
    \n+
    46 static void restrictVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, const Vector& fine,
    \n+
    47 T& comm);
    \n+
    48 };
    \n+
    \n+
    49
    \n+
    50 template<class V,class V1>
    \n+
    \n+\n+
    52 {
    \n+
    53 public:
    \n+
    54 typedef V Vertex;
    \n+
    55 typedef V1 Vector;
    \n+\n+
    57 template<typename T1>
    \n+
    58 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n+
    59 Vector& fineRedist, T1 damp,
    \n+\n+
    61 const Redist& redist=Redist());
    \n+
    62 template<typename T1>
    \n+
    63 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n+
    64 T1 damp,
    \n+\n+
    66
    \n
    67
    \n-
    73 typedef typename M::size_type VertexDescriptor;
    \n-
    74
    \n-
    80 typedef std::ptrdiff_t EdgeDescriptor;
    \n-
    81
    \n-
    82 enum {
    \n-
    83 /*
    \n-
    84 * @brief Whether Matrix is mutable.
    \n-
    85 */
    \n-
    86 mutableMatrix = std::is_same<M, typename std::remove_const<M>::type>::value
    \n-
    87 };
    \n+
    68 static void restrictVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, const Vector& fine,
    \n+
    69 const SequentialInformation& comm);
    \n+
    70 };
    \n+
    \n+
    71
    \n+
    72#if HAVE_MPI
    \n+
    73
    \n+
    74 template<class V,class V1, class T1, class T2>
    \n+
    \n+\n+
    76 {
    \n+
    77 public:
    \n+
    78 typedef V Vertex;
    \n+
    79 typedef V1 Vector;
    \n+\n+
    81 template<typename T3>
    \n+
    82 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n+
    83 Vector& fineRedist, T3 damp, OwnerOverlapCopyCommunication<T1,T2>& comm,
    \n+
    84 const Redist& redist);
    \n+
    85 template<typename T3>
    \n+
    86 static void prolongateVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, Vector& fine,
    \n+\n
    88
    \n-
    89
    \n-
    93 template<class C>
    \n-
    \n-\n-
    95 {
    \n-
    96
    \n-
    97 public:
    \n-
    101 typedef typename std::remove_const<C>::type MutableContainer;
    \n-
    105 typedef const typename std::remove_const<C>::type ConstContainer;
    \n-
    106
    \n-
    107 friend class EdgeIteratorT<MutableContainer>;
    \n-
    108 friend class EdgeIteratorT<ConstContainer>;
    \n-
    109
    \n-
    110 enum {
    \n-
    112 isMutable = std::is_same<C, MutableContainer>::value
    \n-
    113 };
    \n-
    114
    \n-
    118 typedef typename std::conditional<isMutable && C::mutableMatrix,typename Matrix::row_type::Iterator,
    \n-
    119 typename Matrix::row_type::ConstIterator>::type
    \n-\n-
    121
    \n-
    125 typedef typename std::conditional<isMutable && C::mutableMatrix,typename M::block_type,
    \n-
    126 const typename M::block_type>::type
    \n-\n-
    128
    \n-\n-
    137 const ColIterator& end, const EdgeDescriptor& edge);
    \n-
    138
    \n-\n-
    146
    \n-
    151 template<class C1>
    \n-\n-
    153
    \n-
    154 typedef typename std::conditional<std::is_same<C, typename std::remove_const<C>::type>::value && C::mutableMatrix,
    \n-
    155 typename M::block_type, const typename M::block_type>::type
    \n-\n-
    157
    \n-\n-
    162
    \n-\n+
    89 static void restrictVector(const AggregatesMap<Vertex>& aggregates, Vector& coarse, const Vector& fine,
    \n+\n+
    91 };
    \n+
    \n+
    92
    \n+
    93#endif
    \n+
    94
    \n+
    95 template<class V, class V1>
    \n+
    96 template<typename T>
    \n+
    97 inline void
    \n+
    \n+\n+
    99 Vector& coarse, Vector& fine,
    \n+
    100 [[maybe_unused]] Vector& fineRedist,
    \n+
    101 T damp,
    \n+
    102 [[maybe_unused]] const SequentialInformation& comm,
    \n+
    103 [[maybe_unused]] const Redist& redist)
    \n+
    104 {
    \n+
    105 prolongateVector(aggregates, coarse, fine, damp);
    \n+
    106 }
    \n+
    \n+
    107 template<class V, class V1>
    \n+
    108 template<typename T>
    \n+
    109 inline void
    \n+
    \n+\n+
    111 Vector& coarse, Vector& fine,
    \n+
    112 T damp,
    \n+
    113 [[maybe_unused]] const SequentialInformation& comm)
    \n+
    114 {
    \n+
    115 typedef typename Vector::iterator Iterator;
    \n+
    116
    \n+
    117 Iterator end = coarse.end();
    \n+
    118 Iterator begin= coarse.begin();
    \n+
    119 for(; begin!=end; ++begin)
    \n+
    120 *begin*=damp;
    \n+
    121 end=fine.end();
    \n+
    122 begin=fine.begin();
    \n+
    123
    \n+
    124 for(Iterator block=begin; block != end; ++block) {
    \n+
    125 std::ptrdiff_t index=block-begin;
    \n+
    126 const Vertex& vertex = aggregates[index];
    \n+\n+
    128 *block += coarse[aggregates[index]];
    \n+
    129 }
    \n+
    130 }
    \n+
    \n+
    131
    \n+
    132 template<class V, class V1>
    \n+
    133 inline void
    \n+
    \n+\n+
    135 Vector& coarse,
    \n+
    136 const Vector& fine,
    \n+
    137 [[maybe_unused]] const SequentialInformation& comm)
    \n+
    138 {
    \n+
    139 // Set coarse vector to zero
    \n+
    140 coarse=0;
    \n+
    141
    \n+
    142 typedef typename Vector::const_iterator Iterator;
    \n+
    143 Iterator end = fine.end();
    \n+
    144 Iterator begin=fine.begin();
    \n+
    145
    \n+
    146 for(Iterator block=begin; block != end; ++block) {
    \n+
    147 const Vertex& vertex = aggregates[block-begin];
    \n+\n+
    149 coarse[vertex] += *block;
    \n+
    150 }
    \n+
    151 }
    \n+
    \n+
    152
    \n+
    153#if HAVE_MPI
    \n+
    154 template<class V, class V1, class T1, class T2>
    \n+
    155 template<typename T3>
    \n+
    \n+
    156 inline void Transfer<V,V1,OwnerOverlapCopyCommunication<T1,T2> >::prolongateVector(const AggregatesMap<Vertex>& aggregates,
    \n+
    157 Vector& coarse, Vector& fine,
    \n+
    158 Vector& fineRedist, T3 damp,
    \n+\n+
    160 const Redist& redist)
    \n+
    161 {
    \n+
    162 if(fineRedist.size()>0)
    \n+
    163 // we operated on the coarse level
    \n+
    164 Transfer<V,V1,SequentialInformation>::prolongateVector(aggregates, coarse, fineRedist, damp);
    \n
    165
    \n-
    167 bool operator!=(const EdgeIteratorT<typename std::remove_const<C>::type>& other) const;
    \n-
    168
    \n-
    170 bool operator!=(const EdgeIteratorT<const typename std::remove_const<C>::type>& other) const;
    \n-
    171
    \n-
    173 bool operator==(const EdgeIteratorT<typename std::remove_const<C>::type>& other) const;
    \n-
    174
    \n-
    176 bool operator==(const EdgeIteratorT<const typename std::remove_const<C>::type>& other) const;
    \n-
    177
    \n-\n-
    180
    \n-\n-
    183
    \n-
    185 const EdgeDescriptor& operator*() const;
    \n-
    186
    \n-\n-
    189
    \n-
    190 private:
    \n-
    192 VertexDescriptor source_;
    \n-
    194 ColIterator block_;
    \n-
    195 /***
    \n-
    196 * @brief The column iterator positioned at the end of the row
    \n-
    197 * of vertex source_
    \n-
    198 */
    \n-
    199 ColIterator blockEnd_;
    \n-
    201 EdgeDescriptor edge_;
    \n-
    202 };
    \n-
    \n-
    203
    \n-
    207 template<class C>
    \n-
    \n-\n-
    209 {
    \n-
    210 public:
    \n-
    214 typedef typename std::remove_const<C>::type MutableContainer;
    \n-
    218 typedef const typename std::remove_const<C>::type ConstContainer;
    \n-
    219
    \n-
    220 friend class VertexIteratorT<MutableContainer>;
    \n-
    221 friend class VertexIteratorT<ConstContainer>;
    \n-
    222
    \n-
    223 enum {
    \n-
    225 isMutable = std::is_same<C, MutableContainer>::value
    \n-
    226 };
    \n-
    227
    \n-
    233 explicit VertexIteratorT(C* graph, const VertexDescriptor& current);
    \n-
    234
    \n-
    242 explicit VertexIteratorT(const VertexDescriptor& current);
    \n-
    243
    \n-\n-
    245
    \n-\n-
    251
    \n-\n-
    254
    \n-\n-
    257
    \n-\n-
    260
    \n-\n-
    263
    \n-
    264 typedef typename std::conditional<std::is_same<C, typename std::remove_const<C>::type>::value && C::mutableMatrix,
    \n-
    265 typename M::block_type, const typename M::block_type>::type
    \n-\n-\n-
    269
    \n-\n-
    275
    \n-\n-
    282
    \n-\n-
    289
    \n-
    290 private:
    \n-
    291 C* graph_;
    \n-
    292 VertexDescriptor current_;
    \n-
    293 };
    \n-
    \n-
    294
    \n-\n-
    299
    \n-\n-
    304
    \n-\n-
    309
    \n-\n-
    314
    \n-\n-
    320
    \n-\n-
    325
    \n-\n-
    331
    \n-\n-
    337
    \n-\n-
    343
    \n-\n-
    349
    \n-\n-
    357
    \n-\n-
    365
    \n-
    366
    \n-\n-
    374
    \n-\n-
    382
    \n-\n-
    388
    \n-
    393 const Matrix& matrix() const;
    \n-
    394
    \n-
    398 std::size_t noVertices() const;
    \n-
    399
    \n-\n-
    407
    \n-
    411 std::size_t noEdges() const;
    \n-
    412
    \n-\n-
    420 const VertexDescriptor& target) const;
    \n-
    421
    \n-
    422 private:
    \n-
    424 Matrix& matrix_;
    \n-
    426 EdgeDescriptor* start_;
    \n-
    428 MatrixGraph(const MatrixGraph&);
    \n-
    429
    \n-
    430 };
    \n-
    \n-
    431
    \n-
    441 template<class G, class T>
    \n-
    \n-\n-
    443 {
    \n-
    444 public:
    \n-
    448 typedef G Graph;
    \n-
    449
    \n-
    454 typedef T Excluded;
    \n-
    455
    \n-
    459 typedef typename Graph::VertexDescriptor VertexDescriptor;
    \n-
    460
    \n-\n-
    462
    \n-
    \n-\n-
    470 {
    \n-
    471 public:
    \n-
    472 typedef ReadablePropertyMapTag Category;
    \n-
    473
    \n-
    \n-
    474 EdgeIndexMap(const EdgeDescriptor& firstEdge)
    \n-
    475 : firstEdge_(firstEdge)
    \n-
    476 {}
    \n-
    \n-
    477
    \n-
    \n-\n-
    480 : firstEdge_(emap.firstEdge_)
    \n-
    481 {}
    \n-
    \n-
    482
    \n-
    \n-
    483 std::size_t operator[](const EdgeDescriptor& edge) const
    \n-
    484 {
    \n-
    485 return edge-firstEdge_;
    \n-
    486 }
    \n-
    \n-
    487 private:
    \n-
    489 EdgeDescriptor firstEdge_;
    \n-\n-
    492 {}
    \n-
    493 };
    \n-
    \n-
    494
    \n-\n-
    500
    \n-
    \n-
    504 class EdgeIterator : public RandomAccessIteratorFacade<EdgeIterator,const EdgeDescriptor>
    \n-
    505 {
    \n-
    506 public:
    \n-
    512 explicit EdgeIterator(const VertexDescriptor& source, const EdgeDescriptor& edge);
    \n-
    513
    \n-
    521 explicit EdgeIterator(const EdgeDescriptor& edge);
    \n-
    522
    \n-
    524 bool equals(const EdgeIterator& other) const;
    \n-
    525
    \n-\n-
    528
    \n-\n-
    531
    \n-
    532 EdgeIterator& advance(std::ptrdiff_t n);
    \n-
    533
    \n-\n-
    536
    \n-
    538 const VertexDescriptor& target() const;
    \n-
    539
    \n-
    541 const VertexDescriptor& source() const;
    \n-
    542
    \n-
    543 std::ptrdiff_t distanceTo(const EdgeIterator& other) const;
    \n-
    544
    \n-
    545 private:
    \n-
    547 VertexDescriptor source_;
    \n-
    552 EdgeDescriptor edge_;
    \n-
    553 };
    \n-
    \n-
    554
    \n-
    \n-\n-
    559 : public ForwardIteratorFacade<VertexIterator,const VertexDescriptor>
    \n-
    560 {
    \n-
    561 public:
    \n-
    568 explicit VertexIterator(const SubGraph<G,T>* graph, const VertexDescriptor& current,
    \n-
    569 const VertexDescriptor& end);
    \n-
    570
    \n-
    571
    \n-
    578 explicit VertexIterator(const VertexDescriptor& current);
    \n-
    579
    \n-\n-
    582
    \n-
    584 bool equals(const VertexIterator& other) const;
    \n-
    585
    \n-\n-
    591
    \n-\n-
    598
    \n-\n-
    605
    \n-
    606 private:
    \n-
    608 const SubGraph<Graph,T>* graph_;
    \n-
    610 VertexDescriptor current_;
    \n-
    612 VertexDescriptor end_;
    \n-
    613 };
    \n-
    \n-
    614
    \n-\n-
    619
    \n-\n-
    624
    \n-\n-
    630
    \n-\n-
    636
    \n-\n-
    644
    \n-\n-
    652
    \n-
    656 std::size_t noVertices() const;
    \n-
    657
    \n-\n-
    665
    \n-
    669 std::size_t noEdges() const;
    \n-\n-
    677 const VertexDescriptor& target) const;
    \n-
    685 SubGraph(const Graph& graph, const T& excluded);
    \n-
    686
    \n-\n-
    691
    \n-
    692 private:
    \n-
    694 const T& excluded_;
    \n-
    696 std::size_t noVertices_;
    \n-
    698 VertexDescriptor endVertex_;
    \n-
    700 int noEdges_;
    \n-
    705 VertexDescriptor maxVertex_;
    \n-
    707 VertexDescriptor* edges_;
    \n-
    709 std::ptrdiff_t* start_;
    \n-
    711 std::ptrdiff_t* end_;
    \n-
    713 SubGraph(const SubGraph&)
    \n-
    714 {}
    \n-
    715 };
    \n-
    \n-
    716
    \n-
    717
    \n-
    721 template<class G, class VP, class VM=IdentityMap>
    \n-
    \n-\n-
    723 {
    \n-
    724 public:
    \n-
    728 typedef G Graph;
    \n-
    729
    \n-
    733 typedef typename Graph::VertexDescriptor VertexDescriptor;
    \n-
    734
    \n-
    738 typedef typename Graph::EdgeDescriptor EdgeDescriptor;
    \n-
    739
    \n-\n-
    744
    \n-
    756 typedef VM VertexMap;
    \n-
    757
    \n-
    761 typedef typename Graph::EdgeIterator EdgeIterator;
    \n-
    762
    \n-
    766 typedef typename Graph::ConstEdgeIterator ConstEdgeIterator;
    \n-
    767
    \n-\n-
    774
    \n-\n-
    781
    \n-\n-
    788
    \n-\n-
    795
    \n-
    796
    \n-
    797 template<class C>
    \n-
    \n-\n-
    799 : public std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n-
    800 C>::value,
    \n-
    801 typename Graph::VertexIterator,
    \n-
    802 typename Graph::ConstVertexIterator>::type
    \n-
    803 {
    \n-
    804 friend class VertexIteratorT<const typename std::remove_const<C>::type>;
    \n-
    805 friend class VertexIteratorT<typename std::remove_const<C>::type>;
    \n-
    806 public:
    \n-
    810 typedef typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n-
    811 C>::value,
    \n-
    812 typename Graph::VertexIterator,
    \n-
    813 typename Graph::ConstVertexIterator>::type
    \n-\n-
    815
    \n-
    819 typedef typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n-
    820 C>::value,
    \n-
    821 typename Graph::EdgeIterator,
    \n-
    822 typename Graph::ConstEdgeIterator>::type
    \n-\n-
    824
    \n-
    830 explicit VertexIteratorT(const Father& iter,
    \n-
    831 C* graph);
    \n-
    832
    \n-
    833
    \n-
    841 explicit VertexIteratorT(const Father& iter);
    \n-
    842
    \n-
    847 template<class C1>
    \n-
    848 VertexIteratorT(const VertexIteratorT<C1>& other);
    \n-
    849
    \n-
    853 typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,
    \n-
    854 VertexProperties&,
    \n-
    855 const VertexProperties&>::type
    \n-
    856 properties() const;
    \n-
    857
    \n-\n-
    864
    \n-\n-
    871
    \n-
    872 private:
    \n-
    876 C* graph_;
    \n-
    877 };
    \n-
    \n-
    878
    \n-
    882 typedef VertexIteratorT<VertexPropertiesGraph<Graph,
    \n-
    883 VertexProperties,VM> > VertexIterator;
    \n-
    884
    \n-
    888 typedef VertexIteratorT<const VertexPropertiesGraph<Graph,
    \n-
    889 VertexProperties,VM> > ConstVertexIterator;
    \n-
    890
    \n-\n-
    896
    \n-\n-
    902
    \n-\n-
    908
    \n-\n-
    914
    \n-
    920 VertexProperties& getVertexProperties(const VertexDescriptor& vertex);
    \n-
    921
    \n-
    927 const VertexProperties& getVertexProperties(const VertexDescriptor& vertex) const;
    \n-
    928
    \n-
    933 const Graph& graph() const;
    \n-
    934
    \n-
    938 std::size_t noVertices() const;
    \n-
    939
    \n-
    943 std::size_t noEdges() const;
    \n-
    944
    \n-\n-
    952
    \n-
    958 VertexPropertiesGraph(Graph& graph, const VertexMap vmap=VertexMap());
    \n-
    959
    \n-
    960 private:
    \n-
    961 VertexPropertiesGraph(const VertexPropertiesGraph&)
    \n-
    962 {}
    \n-
    963
    \n-
    965 Graph& graph_;
    \n-
    967 VertexMap vmap_;
    \n-
    969 std::vector<VertexProperties> vertexProperties_;
    \n-
    970
    \n-
    971 };
    \n-
    \n-
    972
    \n-
    976 template<class G, class VP, class EP, class VM=IdentityMap, class EM=IdentityMap>
    \n-
    \n-\n-
    978 {
    \n-
    979 public:
    \n-
    983 typedef G Graph;
    \n-
    984
    \n-
    988 typedef typename Graph::VertexDescriptor VertexDescriptor;
    \n-
    989
    \n-
    993 typedef typename Graph::EdgeDescriptor EdgeDescriptor;
    \n-
    994
    \n-\n-
    999
    \n-
    1011 typedef VM VertexMap;
    \n-
    1012
    \n-
    1016 typedef EP EdgeProperties;
    \n-
    1017
    \n-
    1018
    \n-
    1030 typedef EM EdgeMap;
    \n-
    1031
    \n-
    1032 template<class C>
    \n-
    \n-\n-
    1034 : public std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n-
    1035 C>::value,
    \n-
    1036 typename Graph::EdgeIterator,
    \n-
    1037 typename Graph::ConstEdgeIterator>::type
    \n-
    1038 {
    \n-
    1039
    \n-
    1040 friend class EdgeIteratorT<const typename std::remove_const<C>::type>;
    \n-
    1041 friend class EdgeIteratorT<typename std::remove_const<C>::type>;
    \n-
    1042 public:
    \n-
    1046 typedef typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n-
    1047 C>::value,
    \n-
    1048 typename Graph::EdgeIterator,
    \n-
    1049 typename Graph::ConstEdgeIterator>::type
    \n-\n-
    1051
    \n-
    1057 explicit EdgeIteratorT(const Father& iter,
    \n-
    1058 C* graph);
    \n-
    1059
    \n-
    1067 explicit EdgeIteratorT(const Father& iter);
    \n-
    1068
    \n-
    1073 template<class C1>
    \n-
    1074 EdgeIteratorT(const EdgeIteratorT<C1>& other);
    \n-
    1075
    \n-
    1079 typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,
    \n-
    1080 EdgeProperties&,
    \n-
    1081 const EdgeProperties&>::type
    \n-
    1082 properties() const;
    \n-
    1083
    \n-
    1084 private:
    \n-
    1088 C* graph_;
    \n-
    1089 };
    \n-
    \n-
    1090
    \n-
    1094 typedef EdgeIteratorT<PropertiesGraph<Graph,
    \n-
    1095 VertexProperties,
    \n-
    1096 EdgeProperties,VM,EM> > EdgeIterator;
    \n-
    1097
    \n-
    1101 typedef EdgeIteratorT<const PropertiesGraph<Graph,
    \n-
    1102 VertexProperties,
    \n-
    1103 EdgeProperties,VM,EM> > ConstEdgeIterator;
    \n-
    1104
    \n-
    1110 EdgeIterator beginEdges(const VertexDescriptor& source);
    \n-
    1111
    \n-
    1117 EdgeIterator endEdges(const VertexDescriptor& source);
    \n-
    1118
    \n-
    1124 ConstEdgeIterator beginEdges(const VertexDescriptor& source) const;
    \n-
    1125
    \n-
    1131 ConstEdgeIterator endEdges(const VertexDescriptor& source) const;
    \n-
    1132
    \n-
    1133
    \n-
    1134 template<class C>
    \n-
    \n-\n-
    1136 : public std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n-
    1137 C>::value,
    \n-
    1138 typename Graph::VertexIterator,
    \n-
    1139 typename Graph::ConstVertexIterator>::type
    \n-
    1140 {
    \n-
    1141 friend class VertexIteratorT<const typename std::remove_const<C>::type>;
    \n-
    1142 friend class VertexIteratorT<typename std::remove_const<C>::type>;
    \n-
    1143 public:
    \n-
    1147 typedef typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n-
    1148 C>::value,
    \n-
    1149 typename Graph::VertexIterator,
    \n-
    1150 typename Graph::ConstVertexIterator>::type
    \n-\n-
    1152
    \n-
    1158 explicit VertexIteratorT(const Father& iter,
    \n-
    1159 C* graph);
    \n-
    1160
    \n-
    1161
    \n-
    1169 explicit VertexIteratorT(const Father& iter);
    \n-
    1170
    \n-
    1175 template<class C1>
    \n-
    1176 VertexIteratorT(const VertexIteratorT<C1>& other);
    \n-
    1177
    \n-
    1181 typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,
    \n-
    1182 VertexProperties&,
    \n-
    1183 const VertexProperties&>::type
    \n-
    1184 properties() const;
    \n-
    1185
    \n-
    1191 EdgeIteratorT<C> begin() const;
    \n-
    1192
    \n-
    1198 EdgeIteratorT<C> end() const;
    \n-
    1199
    \n-
    1200 private:
    \n-
    1204 C* graph_;
    \n-
    1205 };
    \n-
    \n-
    1206
    \n-
    1210 typedef VertexIteratorT<PropertiesGraph<Graph,
    \n-
    1211 VertexProperties,
    \n-
    1212 EdgeProperties,VM,EM> > VertexIterator;
    \n-
    1213
    \n-
    1217 typedef VertexIteratorT<const PropertiesGraph<Graph,
    \n-
    1218 VertexProperties,
    \n-
    1219 EdgeProperties,VM,EM> > ConstVertexIterator;
    \n-
    1220
    \n-\n-
    1226
    \n-\n-
    1232
    \n-
    1237 ConstVertexIterator begin() const;
    \n-
    1238
    \n-\n-
    1244
    \n-
    1250 VertexProperties& getVertexProperties(const VertexDescriptor& vertex);
    \n-
    1251
    \n-
    1257 const VertexProperties& getVertexProperties(const VertexDescriptor& vertex) const;
    \n-
    1258
    \n-
    \n-
    1265 EdgeDescriptor findEdge(const VertexDescriptor& source,
    \n-
    1266 const VertexDescriptor& target)
    \n-
    1267 {
    \n-
    1268 return graph_.findEdge(source,target);
    \n-
    1269 }
    \n-
    \n-
    1270
    \n-\n-
    1277
    \n-
    1278
    \n-\n-
    1285
    \n-\n-
    1293 const VertexDescriptor& target);
    \n-
    1294
    \n-\n-
    1302 const VertexDescriptor& target) const;
    \n-
    1303
    \n-
    1308 const Graph& graph() const;
    \n-
    1309
    \n-
    1313 std::size_t noVertices() const;
    \n-
    1314
    \n-
    1318 std::size_t noEdges() const;
    \n-
    1319
    \n-\n-
    1327
    \n-\n-
    1335 const EdgeMap& emap=EdgeMap());
    \n-
    1336
    \n-
    1337 private:
    \n-\n-
    1339 {}
    \n-
    1340
    \n-
    1342 Graph& graph_;
    \n-
    1345 VertexMap vmap_;
    \n-
    1346 std::vector<VertexProperties> vertexProperties_;
    \n-
    1348 EdgeMap emap_;
    \n-
    1350 std::vector<EdgeProperties> edgeProperties_;
    \n-
    1351
    \n-
    1352 };
    \n-
    \n-
    1353
    \n-
    1354
    \n-
    1359 template<typename G>
    \n-
    \n-\n-
    1361 {
    \n-
    1362 public:
    \n-
    1366 typedef G Graph;
    \n-
    1370 typedef typename G::VertexProperties VertexProperties;
    \n-
    1374 typedef typename G::VertexDescriptor Vertex;
    \n-
    1375
    \n-
    \n-\n-
    1381 : graph_(g)
    \n-
    1382 {}
    \n-
    \n-
    \n-\n-
    1387 : graph_(0)
    \n-
    1388 {}
    \n-
    \n-
    1389
    \n-
    1390
    \n-
    \n-
    1395 VertexProperties& operator[](const Vertex& vertex) const
    \n-
    1396 {
    \n-
    1397 return graph_->getVertexProperties(vertex);
    \n-
    1398 }
    \n-
    \n-
    1399 private:
    \n-
    1400 Graph* graph_;
    \n-
    1401 };
    \n-
    \n-
    1402
    \n-
    1407 template<typename G>
    \n-
    \n-\n-
    1409 {
    \n-
    1410 public:
    \n-
    1414 typedef G Graph;
    \n-
    1418 typedef typename G::EdgeProperties EdgeProperties;
    \n-
    1422 typedef typename G::EdgeDescriptor Edge;
    \n-
    1423
    \n-
    \n-\n-
    1429 : graph_(g)
    \n-
    1430 {}
    \n-
    \n-
    \n-\n-
    1435 : graph_(0)
    \n-
    1436 {}
    \n-
    \n-
    1437
    \n-
    \n-
    1442 EdgeProperties& operator[](const Edge& edge) const
    \n-
    1443 {
    \n-
    1444 return graph_->getEdgeProperties(edge);
    \n-
    1445 }
    \n-
    \n-
    1446 private:
    \n-
    1447 Graph* graph_;
    \n-
    1448 };
    \n-
    \n-
    1449
    \n-
    1450
    \n-
    1461 template<class G, class V>
    \n-
    1462 int visitNeighbours(const G& graph, const typename G::VertexDescriptor& vertex,
    \n-
    1463 V& visitor);
    \n-
    1464
    \n-
    1465#ifndef DOXYGEN
    \n-
    1466
    \n-
    1467 template<class M>
    \n-\n-
    1469 : matrix_(matrix)
    \n-
    1470 {
    \n-
    1471 if(matrix_.N()!=matrix_.M())
    \n-
    1472 DUNE_THROW(ISTLError, "Matrix has to have as many columns as rows!");
    \n-
    1473
    \n-
    1474 start_ = new EdgeDescriptor[matrix_.N()+1];
    \n-
    1475
    \n-
    1476 typedef typename M::ConstIterator Iterator;
    \n-
    1477 start_[matrix_.begin().index()] = 0;
    \n-
    1478
    \n-
    1479 for(Iterator row=matrix_.begin(); row != matrix_.end(); ++row)
    \n-
    1480 start_[row.index()+1] = start_[row.index()] + row->size();
    \n-
    1481 }
    \n-
    1482
    \n-
    1483 template<class M>
    \n-
    1484 MatrixGraph<M>::~MatrixGraph()
    \n-
    1485 {
    \n-
    1486 delete[] start_;
    \n-
    1487 }
    \n-
    1488
    \n-
    1489 template<class M>
    \n-
    1490 inline std::size_t MatrixGraph<M>::noEdges() const
    \n-
    1491 {
    \n-
    1492 return start_[matrix_.N()];
    \n-
    1493 }
    \n-
    1494
    \n-
    1495 template<class M>
    \n-
    1496 inline std::size_t MatrixGraph<M>::noVertices() const
    \n-
    1497 {
    \n-
    1498 return matrix_.N();
    \n-
    1499 }
    \n-
    1500
    \n-
    1501 template<class M>
    \n-
    1502 inline typename MatrixGraph<M>::VertexDescriptor MatrixGraph<M>::maxVertex() const
    \n-
    1503 {
    \n-
    1504 return matrix_.N()-1;
    \n-
    1505 }
    \n-
    1506
    \n-
    1507 template<class M>
    \n-
    1508 typename MatrixGraph<M>::EdgeDescriptor
    \n-
    1509 MatrixGraph<M>::findEdge(const VertexDescriptor& source,
    \n-
    1510 const VertexDescriptor& target) const
    \n-
    1511 {
    \n-
    1512 typename M::ConstColIterator found =matrix_[source].find(target);
    \n-
    1513 if(found == matrix_[source].end())
    \n-
    1514 return std::numeric_limits<EdgeDescriptor>::max();
    \n-
    1515 std::size_t offset = found.offset();
    \n-
    1516 if(target>source)
    \n-
    1517 offset--;
    \n-
    1518
    \n-
    1519 assert(offset<noEdges());
    \n-
    1520
    \n-
    1521 return start_[source]+offset;
    \n-
    1522 }
    \n-
    1523
    \n-
    1524
    \n-
    1525 template<class M>
    \n-
    1526 inline M& MatrixGraph<M>::matrix()
    \n-
    1527 {
    \n-
    1528 return matrix_;
    \n-
    1529 }
    \n-
    1530
    \n-
    1531 template<class M>
    \n-
    1532 inline const M& MatrixGraph<M>::matrix() const
    \n-
    1533 {
    \n-
    1534 return matrix_;
    \n-
    1535 }
    \n-
    1536
    \n-
    1537 template<class M>
    \n-
    1538 template<class C>
    \n-
    1539 MatrixGraph<M>::EdgeIteratorT<C>::EdgeIteratorT(const VertexDescriptor& source, const ColIterator& block,
    \n-
    1540 const ColIterator& end, const EdgeDescriptor& edge)
    \n-
    1541 : source_(source), block_(block), blockEnd_(end), edge_(edge)
    \n-
    1542 {
    \n-
    1543 if(block_!=blockEnd_ && block_.index() == source_) {
    \n-
    1544 // This is the edge from the diagonal to the diagonal. Skip it.
    \n-
    1545 ++block_;
    \n-
    1546 }
    \n-
    1547 }
    \n-
    1548
    \n-
    1549 template<class M>
    \n-
    1550 template<class C>
    \n-
    1551 MatrixGraph<M>::EdgeIteratorT<C>::EdgeIteratorT(const ColIterator& block)
    \n-
    1552 : block_(block)
    \n-
    1553 {}
    \n-
    1554
    \n-
    1555 template<class M>
    \n-
    1556 template<class C>
    \n-
    1557 template<class C1>
    \n-
    1558 MatrixGraph<M>::EdgeIteratorT<C>::EdgeIteratorT(const EdgeIteratorT<C1>& other)
    \n-
    1559 : source_(other.source_), block_(other.block_), blockEnd_(other.blockEnd_), edge_(other.edge_)
    \n-
    1560 {}
    \n-
    1561
    \n-
    1562
    \n-
    1563 template<class M>
    \n-
    1564 template<class C>
    \n-
    1565 inline typename MatrixGraph<M>::template EdgeIteratorT<C>::WeightType&
    \n-
    1566 MatrixGraph<M>::EdgeIteratorT<C>::weight() const
    \n-
    1567 {
    \n-
    1568 return *block_;
    \n-
    1569 }
    \n-
    1570
    \n-
    1571 template<class M>
    \n-
    1572 template<class C>
    \n-
    1573 inline typename MatrixGraph<M>::template EdgeIteratorT<C>& MatrixGraph<M>::EdgeIteratorT<C>::operator++()
    \n-
    1574 {
    \n-
    1575 ++block_;
    \n-
    1576 ++edge_;
    \n-
    1577
    \n-
    1578 if(block_!=blockEnd_ && block_.index() == source_) {
    \n-
    1579 // This is the edge from the diagonal to the diagonal. Skip it.
    \n-
    1580 ++block_;
    \n-
    1581 }
    \n-
    1582
    \n-
    1583 return *this;
    \n-
    1584 }
    \n-
    1585
    \n-
    1586 template<class M>
    \n-
    1587 template<class C>
    \n-
    1588 inline bool MatrixGraph<M>::EdgeIteratorT<C>::operator!=(const typename MatrixGraph<M>::template EdgeIteratorT<typename std::remove_const<C>::type>& other) const
    \n-
    1589 {
    \n-
    1590 return block_!=other.block_;
    \n-
    1591 }
    \n-
    1592
    \n-
    1593 template<class M>
    \n-
    1594 template<class C>
    \n-
    1595 inline bool MatrixGraph<M>::EdgeIteratorT<C>::operator!=(const typename MatrixGraph<M>::template EdgeIteratorT<const typename std::remove_const<C>::type>& other) const
    \n-
    1596 {
    \n-
    1597 return block_!=other.block_;
    \n-
    1598 }
    \n-
    1599
    \n-
    1600 template<class M>
    \n-
    1601 template<class C>
    \n-
    1602 inline bool MatrixGraph<M>::EdgeIteratorT<C>::operator==(const typename MatrixGraph<M>::template EdgeIteratorT<typename std::remove_const<C>::type>& other) const
    \n-
    1603 {
    \n-
    1604 return block_==other.block_;
    \n-
    1605 }
    \n-
    1606
    \n-
    1607 template<class M>
    \n-
    1608 template<class C>
    \n-
    1609 inline bool MatrixGraph<M>::EdgeIteratorT<C>::operator==(const typename MatrixGraph<M>::template EdgeIteratorT<const typename std::remove_const<C>::type>& other) const
    \n-
    1610 {
    \n-
    1611 return block_==other.block_;
    \n-
    1612 }
    \n-
    1613
    \n-
    1614 template<class M>
    \n-
    1615 template<class C>
    \n-
    1616 inline typename MatrixGraph<M>::VertexDescriptor MatrixGraph<M>::EdgeIteratorT<C>::target() const
    \n-
    1617 {
    \n-
    1618 return block_.index();
    \n-
    1619 }
    \n-
    1620
    \n-
    1621 template<class M>
    \n-
    1622 template<class C>
    \n-
    1623 inline typename MatrixGraph<M>::VertexDescriptor MatrixGraph<M>::EdgeIteratorT<C>::source() const
    \n-
    1624 {
    \n-
    1625 return source_;
    \n-
    1626 }
    \n-
    1627
    \n-
    1628 template<class M>
    \n-
    1629 template<class C>
    \n-
    1630 inline const typename MatrixGraph<M>::EdgeDescriptor& MatrixGraph<M>::EdgeIteratorT<C>::operator*() const
    \n-
    1631 {
    \n-
    1632 return edge_;
    \n-
    1633 }
    \n-
    1634
    \n-
    1635 template<class M>
    \n-
    1636 template<class C>
    \n-
    1637 inline const typename MatrixGraph<M>::EdgeDescriptor* MatrixGraph<M>::EdgeIteratorT<C>::operator->() const
    \n-
    1638 {
    \n-
    1639 return &edge_;
    \n-
    1640 }
    \n-
    1641
    \n-
    1642 template<class M>
    \n-
    1643 template<class C>
    \n-
    1644 MatrixGraph<M>::VertexIteratorT<C>::VertexIteratorT(C* graph,
    \n-
    1645 const VertexDescriptor& current)
    \n-
    1646 : graph_(graph), current_(current)
    \n-
    1647 {}
    \n-
    1648
    \n-
    1649
    \n-
    1650 template<class M>
    \n-
    1651 template<class C>
    \n-
    1652 MatrixGraph<M>::VertexIteratorT<C>::VertexIteratorT(const VertexDescriptor& current)
    \n-
    1653 : current_(current)
    \n-
    1654 {}
    \n-
    1655
    \n-
    1656 template<class M>
    \n-
    1657 template<class C>
    \n-
    1658 MatrixGraph<M>::VertexIteratorT<C>::VertexIteratorT(const VertexIteratorT<MutableContainer>& other)
    \n-
    1659 : graph_(other.graph_), current_(other.current_)
    \n-
    1660 {}
    \n-
    1661
    \n-
    1662 template<class M>
    \n-
    1663 template<class C>
    \n-
    1664 inline bool MatrixGraph<M>::VertexIteratorT<C>::operator!=(const VertexIteratorT<MutableContainer>& other) const
    \n-
    1665 {
    \n-
    1666 return current_ != other.current_;
    \n-
    1667 }
    \n-
    1668
    \n-
    1669 template<class M>
    \n-
    1670 template<class C>
    \n-
    1671 inline bool MatrixGraph<M>::VertexIteratorT<C>::operator!=(const VertexIteratorT<ConstContainer>& other) const
    \n-
    1672 {
    \n-
    1673 return current_ != other.current_;
    \n-
    1674 }
    \n-
    1675
    \n-
    1676
    \n-
    1677 template<class M>
    \n-
    1678 template<class C>
    \n-
    1679 inline bool MatrixGraph<M>::VertexIteratorT<C>::operator==(const VertexIteratorT<MutableContainer>& other) const
    \n-
    1680 {
    \n-
    1681 return current_ == other.current_;
    \n-
    1682 }
    \n-
    1683
    \n-
    1684 template<class M>
    \n-
    1685 template<class C>
    \n-
    1686 inline bool MatrixGraph<M>::VertexIteratorT<C>::operator==(const VertexIteratorT<ConstContainer>& other) const
    \n-
    1687 {
    \n-
    1688 return current_ == other.current_;
    \n-
    1689 }
    \n-
    1690
    \n-
    1691 template<class M>
    \n-
    1692 template<class C>
    \n-
    1693 inline typename MatrixGraph<M>::template VertexIteratorT<C>& MatrixGraph<M>::VertexIteratorT<C>::operator++()
    \n-
    1694 {
    \n-
    1695 ++current_;
    \n-
    1696 return *this;
    \n-
    1697 }
    \n-
    1698
    \n-
    1699 template<class M>
    \n-
    1700 template<class C>
    \n-
    1701 inline typename MatrixGraph<M>::template VertexIteratorT<C>::WeightType&
    \n-
    1702 MatrixGraph<M>::VertexIteratorT<C>::weight() const
    \n-
    1703 {
    \n-
    1704 return graph_->matrix()[current_][current_];
    \n-
    1705 }
    \n-
    1706
    \n-
    1707 template<class M>
    \n-
    1708 template<class C>
    \n-
    1709 inline const typename MatrixGraph<M>::VertexDescriptor&
    \n-
    1710 MatrixGraph<M>::VertexIteratorT<C>::operator*() const
    \n-
    1711 {
    \n-
    1712 return current_;
    \n-
    1713 }
    \n-
    1714
    \n-
    1715 template<class M>
    \n-
    1716 template<class C>
    \n-
    1717 inline typename MatrixGraph<M>::template EdgeIteratorT<C>
    \n-
    1718 MatrixGraph<M>::VertexIteratorT<C>::begin() const
    \n-
    1719 {
    \n-
    1720 return graph_->beginEdges(current_);
    \n-
    1721 }
    \n-
    1722
    \n-
    1723 template<class M>
    \n-
    1724 template<class C>
    \n-
    1725 inline typename MatrixGraph<M>::template EdgeIteratorT<C>
    \n-
    1726 MatrixGraph<M>::VertexIteratorT<C>::end() const
    \n-
    1727 {
    \n-
    1728 return graph_->endEdges(current_);
    \n-
    1729 }
    \n-
    1730
    \n-
    1731 template<class M>
    \n-
    1732 inline typename MatrixGraph<M>::template VertexIteratorT<MatrixGraph<M> >
    \n-
    1733 MatrixGraph<M>::begin()
    \n-
    1734 {
    \n-
    1735 return VertexIterator(this,0);
    \n-
    1736 }
    \n-
    1737
    \n-
    1738 template<class M>
    \n-
    1739 inline typename MatrixGraph<M>::template VertexIteratorT<MatrixGraph<M> >
    \n-
    1740 MatrixGraph<M>::end()
    \n-
    1741 {
    \n-
    1742 return VertexIterator(matrix_.N());
    \n-
    1743 }
    \n-
    1744
    \n-
    1745
    \n-
    1746 template<class M>
    \n-
    1747 inline typename MatrixGraph<M>::template VertexIteratorT<const MatrixGraph<M> >
    \n-
    1748 MatrixGraph<M>::begin() const
    \n-
    1749 {
    \n-
    1750 return ConstVertexIterator(this, 0);
    \n-
    1751 }
    \n-
    1752
    \n-
    1753 template<class M>
    \n-
    1754 inline typename MatrixGraph<M>::template VertexIteratorT<const MatrixGraph<M> >
    \n-
    1755 MatrixGraph<M>::end() const
    \n-
    1756 {
    \n-
    1757 return ConstVertexIterator(matrix_.N());
    \n-
    1758 }
    \n-
    1759
    \n-
    1760 template<class M>
    \n-
    1761 inline typename MatrixGraph<M>::template EdgeIteratorT<MatrixGraph<M> >
    \n-
    1762 MatrixGraph<M>::beginEdges(const VertexDescriptor& source)
    \n-
    1763 {
    \n-
    1764 return EdgeIterator(source, matrix_.operator[](source).begin(),
    \n-
    1765 matrix_.operator[](source).end(), start_[source]);
    \n-
    1766 }
    \n-
    1767
    \n-
    1768 template<class M>
    \n-
    1769 inline typename MatrixGraph<M>::template EdgeIteratorT<MatrixGraph<M> >
    \n-
    1770 MatrixGraph<M>::endEdges(const VertexDescriptor& source)
    \n-
    1771 {
    \n-
    1772 return EdgeIterator(matrix_.operator[](source).end());
    \n-
    1773 }
    \n-
    1774
    \n-
    1775
    \n-
    1776 template<class M>
    \n-
    1777 inline typename MatrixGraph<M>::template EdgeIteratorT<const MatrixGraph<M> >
    \n-
    1778 MatrixGraph<M>::beginEdges(const VertexDescriptor& source) const
    \n-
    1779 {
    \n-
    1780 return ConstEdgeIterator(source, matrix_.operator[](source).begin(),
    \n-
    1781 matrix_.operator[](source).end(), start_[source]);
    \n-
    1782 }
    \n-
    1783
    \n-
    1784 template<class M>
    \n-
    1785 inline typename MatrixGraph<M>::template EdgeIteratorT<const MatrixGraph<M> >
    \n-
    1786 MatrixGraph<M>::endEdges(const VertexDescriptor& source) const
    \n-
    1787 {
    \n-
    1788 return ConstEdgeIterator(matrix_.operator[](source).end());
    \n-
    1789 }
    \n-
    1790
    \n-
    1791
    \n-
    1792 template<class G, class T>
    \n-
    1793 SubGraph<G,T>::EdgeIterator::EdgeIterator(const VertexDescriptor& source,
    \n-
    1794 const EdgeDescriptor& edge)
    \n-
    1795 : source_(source), edge_(edge)
    \n-
    1796 {}
    \n-
    1797
    \n-
    1798
    \n-
    1799 template<class G, class T>
    \n-
    1800 SubGraph<G,T>::EdgeIterator::EdgeIterator(const EdgeDescriptor& edge)
    \n-
    1801 : edge_(edge)
    \n-
    1802 {}
    \n-
    1803
    \n-
    1804 template<class G, class T>
    \n-
    1805 typename SubGraph<G,T>::EdgeIndexMap SubGraph<G,T>::getEdgeIndexMap()
    \n-
    1806 {
    \n-
    1807 return EdgeIndexMap(edges_);
    \n-
    1808 }
    \n-
    1809
    \n-
    1810 template<class G, class T>
    \n-
    1811 inline bool SubGraph<G,T>::EdgeIterator::equals(const EdgeIterator & other) const
    \n-
    1812 {
    \n-
    1813 return other.edge_==edge_;
    \n-
    1814 }
    \n-
    1815
    \n-
    1816 template<class G, class T>
    \n-
    1817 inline typename SubGraph<G,T>::EdgeIterator& SubGraph<G,T>::EdgeIterator::increment()
    \n-
    1818 {
    \n-
    1819 ++edge_;
    \n-
    1820 return *this;
    \n-
    1821 }
    \n-
    1822
    \n-
    1823 template<class G, class T>
    \n-
    1824 inline typename SubGraph<G,T>::EdgeIterator& SubGraph<G,T>::EdgeIterator::decrement()
    \n-
    1825 {
    \n-
    1826 --edge_;
    \n-
    1827 return *this;
    \n-
    1828 }
    \n-
    1829
    \n-
    1830 template<class G, class T>
    \n-
    1831 inline typename SubGraph<G,T>::EdgeIterator& SubGraph<G,T>::EdgeIterator::advance(std::ptrdiff_t n)
    \n-
    1832 {
    \n-
    1833 edge_+=n;
    \n-
    1834 return *this;
    \n-
    1835 }
    \n-
    1836 template<class G, class T>
    \n-
    1837 inline const typename G::VertexDescriptor& SubGraph<G,T>::EdgeIterator::source() const
    \n-
    1838 {
    \n-
    1839 return source_;
    \n-
    1840 }
    \n-
    1841
    \n-
    1842 template<class G, class T>
    \n-
    1843 inline const typename G::VertexDescriptor& SubGraph<G,T>::EdgeIterator::target() const
    \n-
    1844 {
    \n-
    1845 return *edge_;
    \n-
    1846 }
    \n-
    1847
    \n-
    1848
    \n-
    1849 template<class G, class T>
    \n-
    1850 inline const typename SubGraph<G,T>::EdgeDescriptor& SubGraph<G,T>::EdgeIterator::dereference() const
    \n-
    1851 {
    \n-
    1852 return edge_;
    \n-
    1853 }
    \n-
    1854
    \n-
    1855 template<class G, class T>
    \n-
    1856 inline std::ptrdiff_t SubGraph<G,T>::EdgeIterator::distanceTo(const EdgeIterator & other) const
    \n-
    1857 {
    \n-
    1858 return other.edge_-edge_;
    \n-
    1859 }
    \n-
    1860
    \n-
    1861 template<class G, class T>
    \n-
    1862 SubGraph<G,T>::VertexIterator::VertexIterator(const SubGraph<G,T>* graph,
    \n-
    1863 const VertexDescriptor& current,
    \n-
    1864 const VertexDescriptor& end)
    \n-
    1865 : graph_(graph), current_(current), end_(end)
    \n-
    1866 {
    \n-
    1867 // Skip excluded vertices
    \n-
    1868 typedef typename T::const_iterator Iterator;
    \n-
    1869
    \n-
    1870 for(Iterator vertex = graph_->excluded_.begin();
    \n-
    1871 current_ != end_ && *vertex;
    \n-
    1872 ++vertex)
    \n-
    1873 ++current_;
    \n-
    1874 assert(current_ == end_ || !graph_->excluded_[current_]);
    \n-
    1875 }
    \n-
    1876
    \n-
    1877 template<class G, class T>
    \n-
    1878 SubGraph<G,T>::VertexIterator::VertexIterator(const VertexDescriptor& current)
    \n-
    1879 : current_(current)
    \n-
    1880 {}
    \n-
    1881
    \n-
    1882 template<class G, class T>
    \n-
    1883 inline typename SubGraph<G,T>::VertexIterator& SubGraph<G,T>::VertexIterator::increment()
    \n-
    1884 {
    \n-
    1885 ++current_;
    \n-
    1886 //Skip excluded vertices
    \n-
    1887 while(current_ != end_ && graph_->excluded_[current_])
    \n-
    1888 ++current_;
    \n-
    1889
    \n-
    1890 assert(current_ == end_ || !graph_->excluded_[current_]);
    \n-
    1891 return *this;
    \n-
    1892 }
    \n-
    1893
    \n-
    1894 template<class G, class T>
    \n-
    1895 inline bool SubGraph<G,T>::VertexIterator::equals(const VertexIterator & other) const
    \n-
    1896 {
    \n-
    1897 return current_==other.current_;
    \n-
    1898 }
    \n-
    1899
    \n-
    1900 template<class G, class T>
    \n-
    1901 inline const typename G::VertexDescriptor& SubGraph<G,T>::VertexIterator::dereference() const
    \n-
    1902 {
    \n-
    1903 return current_;
    \n-
    1904 }
    \n-
    1905
    \n-
    1906 template<class G, class T>
    \n-
    1907 inline typename SubGraph<G,T>::EdgeIterator SubGraph<G,T>::VertexIterator::begin() const
    \n-
    1908 {
    \n-
    1909 return graph_->beginEdges(current_);
    \n-
    1910 }
    \n-
    1911
    \n-
    1912 template<class G, class T>
    \n-
    1913 inline typename SubGraph<G,T>::EdgeIterator SubGraph<G,T>::VertexIterator::end() const
    \n-
    1914 {
    \n-
    1915 return graph_->endEdges(current_);
    \n-
    1916 }
    \n-
    1917
    \n-
    1918 template<class G, class T>
    \n-
    1919 inline typename SubGraph<G,T>::VertexIterator SubGraph<G,T>::begin() const
    \n-
    1920 {
    \n-
    1921 return VertexIterator(this, 0, endVertex_);
    \n-
    1922 }
    \n-
    1923
    \n-
    1924
    \n-
    1925 template<class G, class T>
    \n-
    1926 inline typename SubGraph<G,T>::VertexIterator SubGraph<G,T>::end() const
    \n-
    1927 {
    \n-
    1928 return VertexIterator(endVertex_);
    \n-
    1929 }
    \n-
    1930
    \n-
    1931
    \n-
    1932 template<class G, class T>
    \n-
    1933 inline typename SubGraph<G,T>::EdgeIterator SubGraph<G,T>::beginEdges(const VertexDescriptor& source) const
    \n-
    1934 {
    \n-
    1935 return EdgeIterator(source, edges_+start_[source]);
    \n-
    1936 }
    \n-
    1937
    \n-
    1938 template<class G, class T>
    \n-
    1939 inline typename SubGraph<G,T>::EdgeIterator SubGraph<G,T>::endEdges(const VertexDescriptor& source) const
    \n-
    1940 {
    \n-
    1941 return EdgeIterator(edges_+end_[source]);
    \n-
    1942 }
    \n-
    1943
    \n-
    1944 template<class G, class T>
    \n-
    1945 std::size_t SubGraph<G,T>::noVertices() const
    \n-
    1946 {
    \n-
    1947 return noVertices_;
    \n-
    1948 }
    \n-
    1949
    \n-
    1950 template<class G, class T>
    \n-
    1951 inline typename SubGraph<G,T>::VertexDescriptor SubGraph<G,T>::maxVertex() const
    \n-
    1952 {
    \n-
    1953 return maxVertex_;
    \n-
    1954 }
    \n-
    1955
    \n-
    1956 template<class G, class T>
    \n-
    1957 inline std::size_t SubGraph<G,T>::noEdges() const
    \n-
    1958 {
    \n-
    1959 return noEdges_;
    \n-
    1960 }
    \n-
    1961
    \n-
    1962 template<class G, class T>
    \n-
    1963 inline typename SubGraph<G,T>::EdgeDescriptor SubGraph<G,T>::findEdge(const VertexDescriptor& source,
    \n-
    1964 const VertexDescriptor& target) const
    \n-
    1965 {
    \n-
    1966 const EdgeDescriptor edge = std::lower_bound(edges_+start_[source], edges_+end_[source], target);
    \n-
    1967 if(edge==edges_+end_[source] || *edge!=target)
    \n-
    1968 return std::numeric_limits<EdgeDescriptor>::max();
    \n-
    1969
    \n-
    1970 return edge;
    \n-
    1971 }
    \n-
    1972
    \n-
    1973 template<class G, class T>
    \n-
    1974 SubGraph<G,T>::~SubGraph()
    \n-
    1975 {
    \n-
    1976 delete[] edges_;
    \n-
    1977 delete[] end_;
    \n-
    1978 delete[] start_;
    \n-
    1979 }
    \n-
    1980
    \n-
    1981 template<class G, class T>
    \n-
    1982 SubGraph<G,T>::SubGraph(const G& graph, const T& excluded)
    \n-
    1983 : excluded_(excluded), noVertices_(0), endVertex_(0), maxVertex_(graph.maxVertex())
    \n-
    1984 {
    \n-
    1985 start_ = new std::ptrdiff_t[graph.noVertices()];
    \n-
    1986 end_ = new std::ptrdiff_t[graph.noVertices()];
    \n-
    1987 edges_ = new VertexDescriptor[graph.noEdges()];
    \n-
    1988
    \n-
    1989 VertexDescriptor* edge=edges_;
    \n-
    1990
    \n-
    1991 // Cater for the case that there are no vertices.
    \n-
    1992 // Otherwise endVertex_ will get 1 below.
    \n-
    1993 if ( graph.noVertices() == 0)
    \n-
    1994 return;
    \n-
    1995
    \n-
    1996 typedef typename Graph::ConstVertexIterator Iterator;
    \n-
    1997 Iterator endVertex=graph.end();
    \n-
    1998
    \n-
    1999 for(Iterator vertex = graph.begin(); vertex != endVertex; ++vertex)
    \n-
    2000 if(excluded_[*vertex])
    \n-
    2001 start_[*vertex]=end_[*vertex]=-1;
    \n-
    2002 else{
    \n-
    2003 ++noVertices_;
    \n-
    2004 endVertex_ = std::max(*vertex, endVertex_);
    \n-
    2005
    \n-
    2006 start_[*vertex] = edge-edges_;
    \n-
    2007
    \n-
    2008 auto endEdge = vertex.end();
    \n-
    2009
    \n-
    2010 for(auto iter=vertex.begin(); iter!= endEdge; ++iter)
    \n-
    2011 if(!excluded[iter.target()]) {
    \n-
    2012 *edge = iter.target();
    \n-
    2013 ++edge;
    \n-
    2014 }
    \n-
    2015
    \n-
    2016 end_[*vertex] = edge - edges_;
    \n-
    2017
    \n-
    2018 // Sort the edges
    \n-
    2019 std::sort(edges_+start_[*vertex], edge);
    \n-
    2020 }
    \n-
    2021 noEdges_ = edge-edges_;
    \n-
    2022 ++endVertex_;
    \n-
    2023 }
    \n-
    2024
    \n-
    2025 template<class G, class V, class VM>
    \n-
    2026 inline std::size_t VertexPropertiesGraph<G,V,VM>::noEdges() const
    \n-
    2027 {
    \n-
    2028 return graph_.noEdges();
    \n-
    2029 }
    \n-
    2030
    \n-
    2031 template<class G, class V, class VM>
    \n-
    2032 inline typename VertexPropertiesGraph<G,V,VM>::EdgeIterator
    \n-
    2033 VertexPropertiesGraph<G,V,VM>::beginEdges(const VertexDescriptor& source)
    \n-
    2034 {
    \n-
    2035 return graph_.beginEdges(source);
    \n-
    2036 }
    \n-
    2037
    \n-
    2038 template<class G, class V, class VM>
    \n-
    2039 inline typename VertexPropertiesGraph<G,V,VM>::EdgeIterator
    \n-
    2040 VertexPropertiesGraph<G,V,VM>::endEdges(const VertexDescriptor& source)
    \n-
    2041 {
    \n-
    2042 return graph_.endEdges(source);
    \n-
    2043 }
    \n-
    2044
    \n-
    2045 template<class G, class V, class VM>
    \n-
    2046 typename VertexPropertiesGraph<G,V,VM>::ConstEdgeIterator
    \n-
    2047 inline VertexPropertiesGraph<G,V,VM>::beginEdges(const VertexDescriptor& source) const
    \n-
    2048 {
    \n-
    2049 return graph_.beginEdges(source);
    \n-
    2050 }
    \n-
    2051
    \n-
    2052 template<class G, class V, class VM>
    \n-
    2053 typename VertexPropertiesGraph<G,V,VM>::ConstEdgeIterator
    \n-
    2054 VertexPropertiesGraph<G,V,VM>::endEdges(const VertexDescriptor& source) const
    \n-
    2055 {
    \n-
    2056 return graph_.endEdges(source);
    \n-
    2057 }
    \n-
    2058
    \n-
    2059 template<class G, class V, class VM>
    \n-
    2060 template<class C>
    \n-
    2061 VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>
    \n-
    2062 ::VertexIteratorT(const Father& iter,
    \n-
    2063 C* graph)
    \n-
    2064 : Father(iter), graph_(graph)
    \n-
    2065 {}
    \n-
    2066
    \n-
    2067 template<class G, class V, class VM>
    \n-
    2068 template<class C>
    \n-
    2069 VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>
    \n-
    2070 ::VertexIteratorT(const Father& iter)
    \n-
    2071 : Father(iter)
    \n-
    2072 {}
    \n-
    2073
    \n-
    2074 template<class G, class V, class VM>
    \n-
    2075 template<class C>
    \n-
    2076 template<class C1>
    \n-
    2077 VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>
    \n-
    2078 ::VertexIteratorT(const VertexIteratorT<C1>& other)
    \n-
    2079 : Father(other), graph_(other.graph_)
    \n-
    2080 {}
    \n-
    2081
    \n-
    2082 template<class G, class V, class VM>
    \n-
    2083 template<class C>
    \n-
    2084 typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,
    \n-
    2085 V&, const V&>::type
    \n-
    2086 inline VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>::properties() const
    \n-
    2087 {
    \n-
    2088 return graph_->getVertexProperties(Father::operator*());
    \n-
    2089 }
    \n-
    2090
    \n-
    2091 template<class G, class V, class VM>
    \n-
    2092 template<class C>
    \n-
    2093 typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n-
    2094 C>::value,
    \n-
    2095 typename G::EdgeIterator,
    \n-
    2096 typename G::ConstEdgeIterator>::type
    \n-
    2097 inline VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>::begin() const
    \n-
    2098 {
    \n-
    2099 return graph_->beginEdges(Father::operator*());
    \n-
    2100 }
    \n-
    2101
    \n-
    2102 template<class G, class V, class VM>
    \n-
    2103 template<class C>
    \n-
    2104 typename std::conditional<std::is_same<typename std::remove_const<C>::type,
    \n-
    2105 C>::value,
    \n-
    2106 typename G::EdgeIterator,
    \n-
    2107 typename G::ConstEdgeIterator>::type
    \n-
    2108 inline VertexPropertiesGraph<G,V,VM>::VertexIteratorT<C>::end() const
    \n-
    2109 {
    \n-
    2110 return graph_->endEdges(Father::operator*());
    \n-
    2111 }
    \n-
    2112
    \n-
    2113 template<class G, class V, class VM>
    \n-
    2114 inline typename VertexPropertiesGraph<G,V,VM>::VertexIterator VertexPropertiesGraph<G,V,VM>::begin()
    \n-
    2115 {
    \n-
    2116 return VertexIterator(graph_.begin(), this);
    \n-
    2117 }
    \n-
    2118
    \n-
    2119 template<class G, class V, class VM>
    \n-
    2120 inline typename VertexPropertiesGraph<G,V,VM>::VertexIterator VertexPropertiesGraph<G,V,VM>::end()
    \n-
    2121 {
    \n-
    2122 return VertexIterator(graph_.end());
    \n-
    2123 }
    \n-
    2124
    \n-
    2125
    \n-
    2126 template<class G, class V, class VM>
    \n-
    2127 inline typename VertexPropertiesGraph<G,V,VM>::ConstVertexIterator VertexPropertiesGraph<G,V,VM>::begin() const
    \n-
    2128 {
    \n-
    2129 return ConstVertexIterator(graph_.begin(), this);
    \n-
    2130 }
    \n-
    2131
    \n-
    2132 template<class G, class V, class VM>
    \n-
    2133 inline typename VertexPropertiesGraph<G,V,VM>::ConstVertexIterator VertexPropertiesGraph<G,V,VM>::end() const
    \n-
    2134 {
    \n-
    2135 return ConstVertexIterator(graph_.end());
    \n-
    2136 }
    \n-
    2137
    \n-
    2138 template<class G, class V, class VM>
    \n-
    2139 inline V& VertexPropertiesGraph<G,V,VM>::getVertexProperties(const VertexDescriptor& vertex)
    \n-
    2140 {
    \n-
    2141 return vertexProperties_[vmap_[vertex]];
    \n-
    2142 }
    \n-
    2143
    \n-
    2144 template<class G, class V, class VM>
    \n-
    2145 inline const V& VertexPropertiesGraph<G,V,VM>::getVertexProperties(const VertexDescriptor& vertex) const
    \n-
    2146 {
    \n-
    2147 return vertexProperties_[vmap_[vertex]];
    \n-
    2148 }
    \n-
    2149
    \n-
    2150 template<class G, class V, class VM>
    \n-
    2151 inline const G& VertexPropertiesGraph<G,V,VM>::graph() const
    \n-
    2152 {
    \n-
    2153 return graph_;
    \n-
    2154 }
    \n-
    2155
    \n-
    2156 template<class G, class V, class VM>
    \n-
    2157 inline std::size_t VertexPropertiesGraph<G,V,VM>::noVertices() const
    \n-
    2158 {
    \n-
    2159 return graph_.noVertices();
    \n-
    2160 }
    \n-
    2161
    \n-
    2162
    \n-
    2163 template<class G, class V, class VM>
    \n-
    2164 inline typename VertexPropertiesGraph<G,V,VM>::VertexDescriptor VertexPropertiesGraph<G,V,VM>::maxVertex() const
    \n-
    2165 {
    \n-
    2166 return graph_.maxVertex();
    \n-
    2167 }
    \n-
    2168
    \n-
    2169 template<class G, class V, class VM>
    \n-
    2170 VertexPropertiesGraph<G,V,VM>::VertexPropertiesGraph(Graph& graph, const VM vmap)
    \n-
    2171 : graph_(graph), vmap_(vmap), vertexProperties_(vmap_[graph_.maxVertex()+1], V())
    \n-
    2172 {}
    \n-
    2173
    \n-
    2174 template<class G, class V, class E, class VM, class EM>
    \n-
    2175 template<class C>
    \n-
    2176 PropertiesGraph<G,V,E,VM,EM>::EdgeIteratorT<C>::EdgeIteratorT(const Father& iter,
    \n-
    2177 C* graph)
    \n-
    2178 : Father(iter), graph_(graph)
    \n-
    2179 {}
    \n-
    2180
    \n-
    2181 template<class G, class V, class E, class VM, class EM>
    \n-
    2182 template<class C>
    \n-
    2183 PropertiesGraph<G,V,E,VM,EM>::EdgeIteratorT<C>::EdgeIteratorT(const Father& iter)
    \n-
    2184 : Father(iter)
    \n-
    2185 {}
    \n-
    2186
    \n-
    2187 template<class G, class V, class E, class VM, class EM>
    \n-
    2188 template<class C>
    \n-
    2189 template<class C1>
    \n-
    2190 PropertiesGraph<G,V,E,VM,EM>::EdgeIteratorT<C>::EdgeIteratorT(const EdgeIteratorT<C1>& other)
    \n-
    2191 : Father(other), graph_(other.graph_)
    \n-
    2192 {}
    \n-
    2193
    \n-
    2194
    \n-
    2195 template<class G, class V, class E, class VM, class EM>
    \n-
    2196 inline std::size_t PropertiesGraph<G,V,E,VM,EM>::noEdges() const
    \n-
    2197 {
    \n-
    2198 return graph_.noEdges();
    \n-
    2199 }
    \n-
    2200
    \n-
    2201 template<class G, class V, class E, class VM, class EM>
    \n-
    2202 template<class C>
    \n-
    2203 inline typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,E&,const E&>::type
    \n-
    2204 PropertiesGraph<G,V,E,VM,EM>::EdgeIteratorT<C>::properties() const
    \n-
    2205 {
    \n-
    2206 return graph_->getEdgeProperties(Father::operator*());
    \n-
    2207 }
    \n-
    2208
    \n-
    2209 template<class G, class V, class E, class VM, class EM>
    \n-
    2210 inline typename PropertiesGraph<G,V,E,VM,EM>::EdgeIterator
    \n-
    2211 PropertiesGraph<G,V,E,VM,EM>::beginEdges(const VertexDescriptor& source)
    \n-
    2212 {
    \n-
    2213 return EdgeIterator(graph_.beginEdges(source), this);
    \n-
    2214 }
    \n-
    2215
    \n-
    2216 template<class G, class V, class E, class VM, class EM>
    \n-
    2217 inline typename PropertiesGraph<G,V,E,VM,EM>::EdgeIterator
    \n-
    2218 PropertiesGraph<G,V,E,VM,EM>::endEdges(const VertexDescriptor& source)
    \n-
    2219 {
    \n-
    2220 return EdgeIterator(graph_.endEdges(source));
    \n-
    2221 }
    \n-
    2222
    \n-
    2223 template<class G, class V, class E, class VM, class EM>
    \n-
    2224 typename PropertiesGraph<G,V,E,VM,EM>::ConstEdgeIterator
    \n-
    2225 inline PropertiesGraph<G,V,E,VM,EM>::beginEdges(const VertexDescriptor& source) const
    \n-
    2226 {
    \n-
    2227 return ConstEdgeIterator(graph_.beginEdges(source), this);
    \n-
    2228 }
    \n-
    2229
    \n-
    2230 template<class G, class V, class E, class VM, class EM>
    \n-
    2231 typename PropertiesGraph<G,V,E,VM,EM>::ConstEdgeIterator
    \n-
    2232 PropertiesGraph<G,V,E,VM,EM>::endEdges(const VertexDescriptor& source) const
    \n-
    2233 {
    \n-
    2234 return ConstEdgeIterator(graph_.endEdges(source));
    \n-
    2235 }
    \n-
    2236
    \n-
    2237 template<class G, class V, class E, class VM, class EM>
    \n-
    2238 template<class C>
    \n-
    2239 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>
    \n-
    2240 ::VertexIteratorT(const Father& iter,
    \n-
    2241 C* graph)
    \n-
    2242 : Father(iter), graph_(graph)
    \n-
    2243 {}
    \n-
    2244
    \n-
    2245 template<class G, class V, class E, class VM, class EM>
    \n-
    2246 template<class C>
    \n-
    2247 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>
    \n-
    2248 ::VertexIteratorT(const Father& iter)
    \n-
    2249 : Father(iter)
    \n-
    2250 {}
    \n-
    2251
    \n-
    2252 template<class G, class V, class E, class VM, class EM>
    \n-
    2253 template<class C>
    \n-
    2254 template<class C1>
    \n-
    2255 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>
    \n-
    2256 ::VertexIteratorT(const VertexIteratorT<C1>& other)
    \n-
    2257 : Father(other), graph_(other.graph_)
    \n-
    2258 {}
    \n-
    2259
    \n-
    2260 template<class G, class V, class E, class VM, class EM>
    \n-
    2261 template<class C>
    \n-
    2262 inline typename std::conditional<std::is_same<C,typename std::remove_const<C>::type>::value,
    \n-
    2263 V&, const V&>::type
    \n-
    2264 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>::properties() const
    \n-
    2265 {
    \n-
    2266 return graph_->getVertexProperties(Father::operator*());
    \n-
    2267 }
    \n-
    2268
    \n-
    2269 template<class G, class V, class E, class VM, class EM>
    \n-
    2270 template<class C>
    \n-
    2271 inline typename PropertiesGraph<G,V,E,VM,EM>::template EdgeIteratorT<C>
    \n-
    2272 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>::begin() const
    \n-
    2273 {
    \n-
    2274 return graph_->beginEdges(Father::operator*());
    \n-
    2275 }
    \n-
    2276
    \n-
    2277 template<class G, class V, class E, class VM, class EM>
    \n-
    2278 template<class C>
    \n-
    2279 inline typename PropertiesGraph<G,V,E,VM,EM>::template EdgeIteratorT<C>
    \n-
    2280 PropertiesGraph<G,V,E,VM,EM>::VertexIteratorT<C>::end() const
    \n-
    2281 {
    \n-
    2282 return graph_->endEdges(Father::operator*());
    \n-
    2283 }
    \n-
    2284
    \n-
    2285 template<class G, class V, class E, class VM, class EM>
    \n-
    2286 inline typename PropertiesGraph<G,V,E,VM,EM>::VertexIterator PropertiesGraph<G,V,E,VM,EM>::begin()
    \n-
    2287 {
    \n-
    2288 return VertexIterator(graph_.begin(), this);
    \n-
    2289 }
    \n-
    2290
    \n-
    2291 template<class G, class V, class E, class VM, class EM>
    \n-
    2292 inline typename PropertiesGraph<G,V,E,VM,EM>::VertexIterator PropertiesGraph<G,V,E,VM,EM>::end()
    \n-
    2293 {
    \n-
    2294 return VertexIterator(graph_.end());
    \n-
    2295 }
    \n-
    2296
    \n-
    2297
    \n-
    2298 template<class G, class V, class E, class VM, class EM>
    \n-
    2299 inline typename PropertiesGraph<G,V,E,VM,EM>::ConstVertexIterator PropertiesGraph<G,V,E,VM,EM>::begin() const
    \n-
    2300 {
    \n-
    2301 return ConstVertexIterator(graph_.begin(), this);
    \n-
    2302 }
    \n-
    2303
    \n-
    2304 template<class G, class V, class E, class VM, class EM>
    \n-
    2305 inline typename PropertiesGraph<G,V,E,VM,EM>::ConstVertexIterator PropertiesGraph<G,V,E,VM,EM>::end() const
    \n-
    2306 {
    \n-
    2307 return ConstVertexIterator(graph_.end());
    \n-
    2308 }
    \n-
    2309
    \n-
    2310 template<class G, class V, class E, class VM, class EM>
    \n-
    2311 inline V& PropertiesGraph<G,V,E,VM,EM>::getVertexProperties(const VertexDescriptor& vertex)
    \n-
    2312 {
    \n-
    2313 return vertexProperties_[vmap_[vertex]];
    \n-
    2314 }
    \n-
    2315
    \n-
    2316 template<class G, class V, class E, class VM, class EM>
    \n-
    2317 inline const V& PropertiesGraph<G,V,E,VM,EM>::getVertexProperties(const VertexDescriptor& vertex) const
    \n-
    2318 {
    \n-
    2319 return vertexProperties_[vmap_[vertex]];
    \n-
    2320 }
    \n-
    2321
    \n-
    2322 template<class G, class V, class E, class VM, class EM>
    \n-
    2323 inline E& PropertiesGraph<G,V,E,VM,EM>::getEdgeProperties(const EdgeDescriptor& edge)
    \n-
    2324 {
    \n-
    2325 return edgeProperties_[emap_[edge]];
    \n-
    2326 }
    \n-
    2327
    \n-
    2328 template<class G, class V, class E, class VM, class EM>
    \n-
    2329 inline const E& PropertiesGraph<G,V,E,VM,EM>::getEdgeProperties(const EdgeDescriptor& edge) const
    \n-
    2330 {
    \n-
    2331 return edgeProperties_[emap_[edge]];
    \n-
    2332 }
    \n-
    2333
    \n-
    2334 template<class G, class V, class E, class VM, class EM>
    \n-
    2335 inline E& PropertiesGraph<G,V,E,VM,EM>::getEdgeProperties(const VertexDescriptor& source,
    \n-
    2336 const VertexDescriptor& target)
    \n-
    2337 {
    \n-
    2338 return getEdgeProperties(graph_.findEdge(source,target));
    \n-
    2339 }
    \n-
    2340
    \n-
    2341 template<class G, class V, class E, class VM, class EM>
    \n-
    2342 inline const E& PropertiesGraph<G,V,E,VM,EM>::getEdgeProperties(const VertexDescriptor& source,
    \n-
    2343 const VertexDescriptor& target) const
    \n-
    2344 {
    \n-
    2345 return getEdgeProperties(graph_.findEdge(source,target));
    \n-
    2346 }
    \n-
    2347
    \n-
    2348 template<class G, class V, class E, class VM, class EM>
    \n-
    2349 inline const G& PropertiesGraph<G,V,E,VM,EM>::graph() const
    \n-
    2350 {
    \n-
    2351 return graph_;
    \n-
    2352 }
    \n-
    2353
    \n-
    2354 template<class G, class V, class E, class VM, class EM>
    \n-
    2355 inline std::size_t PropertiesGraph<G,V,E,VM,EM>::noVertices() const
    \n-
    2356 {
    \n-
    2357 return graph_.noVertices();
    \n-
    2358 }
    \n-
    2359
    \n-
    2360
    \n-
    2361 template<class G, class V, class E, class VM, class EM>
    \n-
    2362 inline typename PropertiesGraph<G,V,E,VM,EM>::VertexDescriptor PropertiesGraph<G,V,E,VM,EM>::maxVertex() const
    \n-
    2363 {
    \n-
    2364 return graph_.maxVertex();
    \n-
    2365 }
    \n-
    2366
    \n-
    2367 template<class G, class V, class E, class VM, class EM>
    \n-
    2368 PropertiesGraph<G,V,E,VM,EM>::PropertiesGraph(Graph& graph, const VM& vmap, const EM& emap)
    \n-
    2369 : graph_(graph), vmap_(vmap), vertexProperties_(vmap_[graph_.maxVertex()+1], V()),
    \n-
    2370 emap_(emap), edgeProperties_(graph_.noEdges(), E())
    \n-
    2371 {}
    \n-
    2372
    \n-
    2373 template<class G, class V>
    \n-
    2374 inline int visitNeighbours(const G& graph, const typename G::VertexDescriptor& vertex,
    \n-
    2375 V& visitor)
    \n-
    2376 {
    \n-
    2377 typedef typename G::ConstEdgeIterator iterator;
    \n-
    2378 const iterator end = graph.endEdges(vertex);
    \n-
    2379 int noNeighbours=0;
    \n-
    2380 for(iterator edge = graph.beginEdges(vertex); edge != end; ++edge, ++noNeighbours)
    \n-
    2381 visitor(edge);
    \n-
    2382 return noNeighbours;
    \n-
    2383 }
    \n-
    2384
    \n-
    2385#endif // DOXYGEN
    \n-
    2386
    \n-
    2388 }
    \n-
    2389}
    \n-
    2390#endif
    \n-\n-
    int visitNeighbours(const G &graph, const typename G::VertexDescriptor &vertex, V &visitor)
    Visit all neighbour vertices of a vertex in a graph.
    \n-
    STL namespace.
    \n+
    166 // TODO This could be accomplished with one communication, too!
    \n+
    167 redist.redistributeBackward(fine, fineRedist);
    \n+
    168 comm.copyOwnerToAll(fine,fine);
    \n+
    169 }
    \n+
    \n+
    170
    \n+
    171 template<class V, class V1, class T1, class T2>
    \n+
    172 template<typename T3>
    \n+
    \n+\n+
    174 const AggregatesMap<Vertex>& aggregates,
    \n+
    175 Vector& coarse, Vector& fine, T3 damp,
    \n+
    176 [[maybe_unused]] OwnerOverlapCopyCommunication<T1,T2>& comm)
    \n+
    177 {
    \n+
    178 Transfer<V,V1,SequentialInformation>::prolongateVector(aggregates, coarse, fine, damp);
    \n+
    179 }
    \n+
    \n+
    180 template<class V, class V1, class T1, class T2>
    \n+
    \n+
    181 inline void Transfer<V,V1,OwnerOverlapCopyCommunication<T1,T2> >::restrictVector(const AggregatesMap<Vertex>& aggregates,
    \n+
    182 Vector& coarse, const Vector& fine,
    \n+\n+
    184 {
    \n+\n+
    186 // We need this here to avoid it in the smoothers on the coarse level.
    \n+
    187 // There (in the preconditioner d is const.
    \n+
    188 comm.project(coarse);
    \n+
    189 }
    \n+
    \n+
    190#endif
    \n+
    192 } // namspace Amg
    \n+
    193} // namspace Dune
    \n+
    194#endif
    \n+
    Functionality for redistributing a sparse matrix.
    \n+
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n+\n+
    Provides classes for the Coloring process of AMG.
    \n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    const_iterator end() const
    Definition aggregates.hh:730
    \n
    Definition allocator.hh:11
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n-
    MatrixGraph(Matrix &matrix)
    Constructor.
    \n-
    VertexIterator end()
    Get an iterator over the vertices.
    \n-
    VertexDescriptor maxVertex() const
    Get the maximal vertex descriptor.
    \n-
    M Matrix
    The type of the matrix we are a graph for.
    Definition graph.hh:56
    \n-
    ConstVertexIterator begin() const
    Get an iterator over the vertices.
    \n-
    VertexIteratorT< const MatrixGraph< Matrix > > ConstVertexIterator
    The constant vertex iterator type.
    Definition graph.hh:308
    \n-
    ~MatrixGraph()
    Destructor.
    \n-
    std::ptrdiff_t EdgeDescriptor
    The edge descriptor.
    Definition graph.hh:80
    \n-
    ConstEdgeIterator endEdges(const VertexDescriptor &source) const
    Get an iterator over the edges starting at a vertex.
    \n-
    M::size_type VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:73
    \n-
    const Matrix & matrix() const
    Get the underlying matrix.
    \n-
    @ mutableMatrix
    Definition graph.hh:86
    \n-
    ConstEdgeIterator beginEdges(const VertexDescriptor &source) const
    Get an iterator over the edges starting at a vertex.
    \n-
    ConstVertexIterator end() const
    Get an iterator over the vertices.
    \n-
    EdgeIteratorT< const MatrixGraph< Matrix > > ConstEdgeIterator
    The constant edge iterator type.
    Definition graph.hh:298
    \n-
    EdgeIterator beginEdges(const VertexDescriptor &source)
    Get an iterator over the edges starting at a vertex.
    \n-
    std::size_t noVertices() const
    Get the number of vertices in the graph.
    \n-
    EdgeDescriptor findEdge(const VertexDescriptor &source, const VertexDescriptor &target) const
    Find the descriptor of an edge.
    \n-
    M::block_type Weight
    The type of the weights.
    Definition graph.hh:66
    \n-
    std::remove_const< M >::type MutableMatrix
    The mutable type of the matrix we are a graph for.
    Definition graph.hh:61
    \n-
    EdgeIteratorT< MatrixGraph< Matrix > > EdgeIterator
    The mutable edge iterator type.
    Definition graph.hh:303
    \n-
    VertexIteratorT< MatrixGraph< Matrix > > VertexIterator
    The mutable vertex iterator type.
    Definition graph.hh:313
    \n-
    EdgeIterator endEdges(const VertexDescriptor &source)
    Get an iterator over the edges starting at a vertex.
    \n-
    std::size_t noEdges() const
    Get the number of edges in the graph.
    \n-
    Matrix & matrix()
    Get the underlying matrix.
    \n-
    VertexIterator begin()
    Get an iterator over the vertices.
    \n-
    Iterator over all edges starting from a vertex.
    Definition graph.hh:95
    \n-
    std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::value &&C::mutableMatrix, typenameM::block_type, consttypenameM::block_type >::type WeightType
    Definition graph.hh:156
    \n-
    EdgeIteratorT(const VertexDescriptor &source, const ColIterator &block, const ColIterator &end, const EdgeDescriptor &edge)
    Constructor.
    \n-
    @ isMutable
    whether C is mutable.
    Definition graph.hh:112
    \n-
    VertexDescriptor target() const
    The index of the target vertex of the current edge.
    \n-
    EdgeIteratorT< C > & operator++()
    preincrement operator.
    \n-
    bool operator!=(const EdgeIteratorT< const typename std::remove_const< C >::type > &other) const
    Inequality operator.
    \n-
    bool operator==(const EdgeIteratorT< const typename std::remove_const< C >::type > &other) const
    Equality operator.
    \n-
    EdgeIteratorT(const EdgeIteratorT< C1 > &other)
    Copy Constructor.
    \n-
    bool operator!=(const EdgeIteratorT< typename std::remove_const< C >::type > &other) const
    Inequality operator.
    \n-
    WeightType & weight() const
    Access the edge weight.
    \n-
    VertexDescriptor source() const
    The index of the source vertex of the current edge.
    \n-
    std::conditional< isMutable &&C::mutableMatrix, typenameMatrix::row_type::Iterator, typenameMatrix::row_type::ConstIterator >::type ColIterator
    The column iterator of the matrix we use.
    Definition graph.hh:120
    \n-
    const std::remove_const< C >::type ConstContainer
    The constant type of the container type.
    Definition graph.hh:105
    \n-
    bool operator==(const EdgeIteratorT< typename std::remove_const< C >::type > &other) const
    Equality operator.
    \n-
    EdgeIteratorT(const ColIterator &block)
    Constructor for the end iterator.
    \n-
    std::conditional< isMutable &&C::mutableMatrix, typenameM::block_type, consttypenameM::block_type >::type Weight
    The matrix block type we use as weights.
    Definition graph.hh:127
    \n-
    const EdgeDescriptor & operator*() const
    Get the edge descriptor.
    \n-
    const EdgeDescriptor * operator->() const
    Get the edge descriptor.
    \n-
    std::remove_const< C >::type MutableContainer
    The mutable type of the container type.
    Definition graph.hh:101
    \n-
    The vertex iterator type of the graph.
    Definition graph.hh:209
    \n-
    EdgeIteratorT< C > begin() const
    Get an iterator over all edges starting at the current vertex.
    \n-
    const VertexDescriptor & operator*() const
    Get the descriptor of the current vertex.
    \n-
    WeightType & weight() const
    Access the weight of the vertex.
    \n-
    VertexIteratorT(C *graph, const VertexDescriptor &current)
    Constructor.
    \n-
    std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::value &&C::mutableMatrix, typenameM::block_type, consttypenameM::block_type >::type WeightType
    Definition graph.hh:266
    \n-
    VertexIteratorT(const VertexIteratorT< MutableContainer > &other)
    \n-
    std::remove_const< C >::type MutableContainer
    The mutable type of the container type.
    Definition graph.hh:214
    \n-
    bool operator!=(const VertexIteratorT< MutableContainer > &other) const
    Inequality operator.
    \n-
    @ isMutable
    whether C is mutable.
    Definition graph.hh:225
    \n-
    bool operator==(const VertexIteratorT< MutableContainer > &other) const
    Equality operator.
    \n-
    const std::remove_const< C >::type ConstContainer
    The constant type of the container type.
    Definition graph.hh:218
    \n-
    VertexIteratorT< C > & operator++()
    Move to the next vertex.
    \n-
    EdgeIteratorT< C > end() const
    Get an iterator over all edges starting at the current vertex.
    \n-
    bool operator==(const VertexIteratorT< ConstContainer > &other) const
    Equality operator.
    \n-
    bool operator!=(const VertexIteratorT< ConstContainer > &other) const
    Inequality operator.
    \n-
    VertexIteratorT(const VertexDescriptor &current)
    Constructor for the end iterator.
    \n-
    A subgraph of a graph.
    Definition graph.hh:443
    \n-
    EdgeDescriptor findEdge(const VertexDescriptor &source, const VertexDescriptor &target) const
    Find the descriptor of an edge.
    \n-
    VertexDescriptor maxVertex() const
    Get the maximal vertex descriptor.
    \n-
    EdgeIndexMap getEdgeIndexMap()
    Get an edge index map for the graph.
    \n-
    std::size_t noEdges() const
    Get the number of edges in the graph.
    \n-
    ConstEdgeIterator endEdges(const VertexDescriptor &source) const
    Get an iterator over the edges starting at a vertex.
    \n-
    ConstVertexIterator end() const
    Get an iterator over the vertices.
    \n-
    ConstEdgeIterator beginEdges(const VertexDescriptor &source) const
    Get an iterator over the edges starting at a vertex.
    \n-
    std::size_t noVertices() const
    Get the number of vertices in the graph.
    \n-
    T Excluded
    Random access container providing information about which vertices are excluded.
    Definition graph.hh:454
    \n-
    ~SubGraph()
    Destructor.
    \n-
    EdgeIterator ConstEdgeIterator
    The constant edge iterator type.
    Definition graph.hh:618
    \n-
    G Graph
    The type of the graph we are a sub graph for.
    Definition graph.hh:448
    \n-
    VertexIterator ConstVertexIterator
    The constant vertex iterator type.
    Definition graph.hh:623
    \n-
    SubGraph(const Graph &graph, const T &excluded)
    Constructor.
    \n-
    ConstVertexIterator begin() const
    Get an iterator over the vertices.
    \n-
    Graph::VertexDescriptor VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:459
    \n-
    VertexDescriptor * EdgeDescriptor
    Definition graph.hh:461
    \n-
    An index map for mapping the edges to indices.
    Definition graph.hh:470
    \n-
    EdgeIndexMap(const EdgeIndexMap &emap)
    Protect copy construction.
    Definition graph.hh:479
    \n-
    ReadablePropertyMapTag Category
    Definition graph.hh:472
    \n-
    EdgeIndexMap(const EdgeDescriptor &firstEdge)
    Definition graph.hh:474
    \n-
    std::size_t operator[](const EdgeDescriptor &edge) const
    Definition graph.hh:483
    \n-
    The edge iterator of the graph.
    Definition graph.hh:505
    \n-
    const EdgeDescriptor & dereference() const
    The descriptor of the current edge.
    \n-
    EdgeIterator(const EdgeDescriptor &edge)
    Constructor for the end iterator.
    \n-
    bool equals(const EdgeIterator &other) const
    Equality operator.
    \n-
    EdgeIterator & advance(std::ptrdiff_t n)
    \n-
    EdgeIterator & increment()
    Preincrement operator.
    \n-
    const VertexDescriptor & target() const
    The index of the target vertex of the current edge.
    \n-
    const VertexDescriptor & source() const
    The index of the source vertex of the current edge.
    \n-
    EdgeIterator & decrement()
    Preincrement operator.
    \n-
    std::ptrdiff_t distanceTo(const EdgeIterator &other) const
    \n-
    EdgeIterator(const VertexDescriptor &source, const EdgeDescriptor &edge)
    Constructor.
    \n-
    The vertex iterator of the graph.
    Definition graph.hh:560
    \n-
    VertexIterator(const VertexDescriptor &current)
    Constructor for end iterator.
    \n-
    VertexIterator & increment()
    Preincrement operator.
    \n-
    EdgeIterator begin() const
    Get an iterator over all edges starting at the current vertex.
    \n-
    bool equals(const VertexIterator &other) const
    Equality iterator.
    \n-
    VertexIterator(const SubGraph< G, T > *graph, const VertexDescriptor &current, const VertexDescriptor &end)
    Constructor.
    \n-
    EdgeIterator end() const
    Get an iterator over all edges starting at the current vertex.
    \n-
    const VertexDescriptor & dereference() const
    Get the descriptor of the current vertex.
    \n-
    Attaches properties to the vertices of a graph.
    Definition graph.hh:723
    \n-
    const Graph & graph() const
    Get the graph the properties are attached to.
    \n-
    Graph::ConstEdgeIterator ConstEdgeIterator
    The type of the constant edge iterator.
    Definition graph.hh:766
    \n-
    VertexProperties & getVertexProperties(const VertexDescriptor &vertex)
    Get the properties associated with a vertex.
    \n-
    std::size_t noEdges() const
    Get the number of edges in the graph.
    \n-
    Graph::EdgeDescriptor EdgeDescriptor
    The edge descritor.
    Definition graph.hh:738
    \n-
    ConstEdgeIterator endEdges(const VertexDescriptor &source) const
    Get the mutable edge iterator over edges starting at a vertex.
    \n-
    Graph::VertexDescriptor VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:733
    \n-
    G Graph
    The graph we attach properties to.
    Definition graph.hh:728
    \n-
    VM VertexMap
    The type of the map for converting the VertexDescriptor to std::size_t.
    Definition graph.hh:756
    \n-
    EdgeIterator endEdges(const VertexDescriptor &source)
    Get the mutable edge iterator over edges starting at a vertex.
    \n-
    EdgeIterator beginEdges(const VertexDescriptor &source)
    Get the mutable edge iterator over edges starting at a vertex.
    \n-
    VP VertexProperties
    The type of the properties of the vertices.
    Definition graph.hh:743
    \n-
    std::size_t noVertices() const
    Get the number of vertices in the graph.
    \n-
    ConstEdgeIterator beginEdges(const VertexDescriptor &source) const
    Get the mutable edge iterator over edges starting at a vertex.
    \n-
    VertexDescriptor maxVertex() const
    Get the maximal vertex descriptor.
    \n-
    Graph::EdgeIterator EdgeIterator
    The type of the mutable edge iterator.
    Definition graph.hh:761
    \n-\n-
    std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::value, typenameGraph::EdgeIterator, typenameGraph::ConstEdgeIterator >::type EdgeIterator
    The class of the edge iterator.
    Definition graph.hh:823
    \n-
    std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::value, VertexProperties &, constVertexProperties & >::type properties() const
    Get the properties of the current Vertex.
    \n-
    EdgeIterator end() const
    Get an iterator over the edges starting from the current vertex.
    \n-
    std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::value, typenameGraph::VertexIterator, typenameGraph::ConstVertexIterator >::type Father
    The father class.
    Definition graph.hh:814
    \n-
    EdgeIterator begin() const
    Get an iterator over the edges starting from the current vertex.
    \n-
    Attaches properties to the edges and vertices of a graph.
    Definition graph.hh:978
    \n-
    std::size_t noVertices() const
    Get the number of vertices in the graph.
    \n-
    Graph::EdgeDescriptor EdgeDescriptor
    The edge descritor.
    Definition graph.hh:993
    \n-
    const EdgeProperties & getEdgeProperties(const VertexDescriptor &source, const VertexDescriptor &target) const
    Get the properties associated with a edge.
    \n-
    const EdgeProperties & getEdgeProperties(const EdgeDescriptor &edge) const
    Get the properties associated with a edge.
    \n-
    const Graph & graph() const
    Get the graph the properties are attached to.
    \n-
    VertexDescriptor maxVertex() const
    Get the maximal vertex descriptor.
    \n-
    G Graph
    The graph we attach properties to.
    Definition graph.hh:983
    \n-
    EM EdgeMap
    The type of the map for converting the EdgeDescriptor to std::size_t.
    Definition graph.hh:1030
    \n-
    VM VertexMap
    The type of the map for converting the VertexDescriptor to std::size_t.
    Definition graph.hh:1011
    \n-
    VP VertexProperties
    The type of the properties of the vertices.
    Definition graph.hh:998
    \n-
    std::size_t noEdges() const
    Get the number of edges in the graph.
    \n-
    EP EdgeProperties
    The type of the properties of the edges;.
    Definition graph.hh:1016
    \n-
    EdgeProperties & getEdgeProperties(const VertexDescriptor &source, const VertexDescriptor &target)
    Get the properties associated with a edge.
    \n-
    EdgeProperties & getEdgeProperties(const EdgeDescriptor &edge)
    Get the properties associated with a edge.
    \n-
    Graph::VertexDescriptor VertexDescriptor
    The vertex descriptor.
    Definition graph.hh:988
    \n-
    PropertiesGraph(Graph &graph, const VertexMap &vmap=VertexMap(), const EdgeMap &emap=EdgeMap())
    Constructor.
    \n-\n-
    std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::value, typenameGraph::EdgeIterator, typenameGraph::ConstEdgeIterator >::type Father
    The father class.
    Definition graph.hh:1050
    \n-\n-
    std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::value, typenameGraph::VertexIterator, typenameGraph::ConstVertexIterator >::type Father
    The father class.
    Definition graph.hh:1151
    \n-
    Wrapper to access the internal edge properties of a graph via operator[]()
    Definition graph.hh:1361
    \n-
    GraphVertexPropertiesSelector(G &g)
    Constructor.
    Definition graph.hh:1380
    \n-
    VertexProperties & operator[](const Vertex &vertex) const
    Get the properties associated to a vertex.
    Definition graph.hh:1395
    \n-
    G Graph
    The type of the graph with internal properties.
    Definition graph.hh:1366
    \n-
    G::VertexProperties VertexProperties
    The type of the vertex properties.
    Definition graph.hh:1370
    \n-
    GraphVertexPropertiesSelector()
    Default constructor.
    Definition graph.hh:1386
    \n-
    G::VertexDescriptor Vertex
    The vertex descriptor.
    Definition graph.hh:1374
    \n-
    Wrapper to access the internal vertex properties of a graph via operator[]()
    Definition graph.hh:1409
    \n-
    EdgeProperties & operator[](const Edge &edge) const
    Get the properties associated to a vertex.
    Definition graph.hh:1442
    \n-
    G::EdgeProperties EdgeProperties
    The type of the vertex properties.
    Definition graph.hh:1418
    \n-
    G::EdgeDescriptor Edge
    The edge descriptor.
    Definition graph.hh:1422
    \n-
    GraphEdgePropertiesSelector()
    Default constructor.
    Definition graph.hh:1434
    \n-
    G Graph
    The type of the graph with internal properties.
    Definition graph.hh:1414
    \n-
    GraphEdgePropertiesSelector(G &g)
    Constructor.
    Definition graph.hh:1428
    \n+
    Definition matrixredistribute.hh:22
    \n+
    void redistributeBackward(D &from, const D &to) const
    Definition matrixredistribute.hh:32
    \n+
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n+
    void project(T1 &x) const
    Set vector to zero at copy dofs.
    Definition owneroverlapcopy.hh:538
    \n+
    void copyOwnerToAll(const T &source, T &dest) const
    Communicate values from owner data points to all other data points.
    Definition owneroverlapcopy.hh:311
    \n+
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n+
    Definition pinfo.hh:28
    \n+
    Definition transfer.hh:32
    \n+
    static void restrictVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, const Vector &fine, T &comm)
    \n+
    static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, T1 damp)
    \n+
    static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, Vector &fineRedist, T1 damp, R &redistributor=R())
    \n+
    V1 Vertex
    Definition transfer.hh:35
    \n+
    V2 Vector
    Definition transfer.hh:36
    \n+
    RedistributeInformation< SequentialInformation > Redist
    Definition transfer.hh:56
    \n+\n+\n+
    static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, Vector &fineRedist, T1 damp, const SequentialInformation &comm=SequentialInformation(), const Redist &redist=Redist())
    \n+
    static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, T1 damp, const SequentialInformation &comm=SequentialInformation())
    \n+\n+
    RedistributeInformation< OwnerOverlapCopyCommunication< T1, T2 > > Redist
    Definition transfer.hh:80
    \n+\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,2286 +1,294 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-graph.hh\n+transfer.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_GRAPH_HH\n-6#define DUNE_AMG_GRAPH_HH\n+5#ifndef DUNE_AMGTRANSFER_HH\n+6#define DUNE_AMGTRANSFER_HH\n 7\n-8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14#include \n-15#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-16#include \n-17\n-18namespace _\bD_\bu_\bn_\be\n-19{\n-20 namespace Amg\n-21 {\n-49 template\n-_\b5_\b0 class _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-51 {\n-52 public:\n-_\b5_\b6 typedef M _\bM_\ba_\bt_\br_\bi_\bx;\n-57\n-_\b6_\b1 typedef typename std::remove_const::type _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bM_\ba_\bt_\br_\bi_\bx;\n-62\n-_\b6_\b6 typedef typename M::block_type _\bW_\be_\bi_\bg_\bh_\bt;\n+8#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+9#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh>\n+10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh>\n+11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n+12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh>\n+13#include \n+14\n+15namespace _\bD_\bu_\bn_\be\n+16{\n+17 namespace Amg\n+18 {\n+19\n+30 template\n+_\b3_\b1 class _\bT_\br_\ba_\bn_\bs_\bf_\be_\br\n+32 {\n+33\n+34 public:\n+_\b3_\b5 typedef V1 _\bV_\be_\br_\bt_\be_\bx;\n+_\b3_\b6 typedef V2 _\bV_\be_\bc_\bt_\bo_\br;\n+37\n+38 template\n+_\b3_\b9 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n+40 _\bV_\be_\bc_\bt_\bo_\br& fineRedist,T1 damp, R& redistributor=R());\n+41\n+42 template\n+_\b4_\b3 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n+44 T1 damp);\n+45\n+_\b4_\b6 static void _\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, _\bV_\be_\bc_\bt_\bo_\br&\n+coarse, const _\bV_\be_\bc_\bt_\bo_\br& fine,\n+47 T& comm);\n+48 };\n+49\n+50 template\n+_\b5_\b1 class _\bT_\br_\ba_\bn_\bs_\bf_\be_\br\n+52 {\n+53 public:\n+_\b5_\b4 typedef V _\bV_\be_\br_\bt_\be_\bx;\n+_\b5_\b5 typedef V1 _\bV_\be_\bc_\bt_\bo_\br;\n+_\b5_\b6 typedef _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b> _\bR_\be_\bd_\bi_\bs_\bt;\n+57 template\n+_\b5_\b8 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n+59 _\bV_\be_\bc_\bt_\bo_\br& fineRedist, T1 damp,\n+60 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm=_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn(),\n+61 const _\bR_\be_\bd_\bi_\bs_\bt& redist=_\bR_\be_\bd_\bi_\bs_\bt());\n+62 template\n+_\b6_\b3 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n+64 T1 damp,\n+65 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm=_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n+66\n 67\n-_\b7_\b3 typedef typename M::size_type _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-74\n-_\b8_\b0 typedef std::ptrdiff_t _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-81\n-82 enum {\n-83 /*\n-84 * @brief Whether Matrix is mutable.\n-85 */\n-86 _\bm_\bu_\bt_\ba_\bb_\bl_\be_\bM_\ba_\bt_\br_\bi_\bx = std::is_same::type>::value\n-_\b8_\b7 };\n+68 static void _\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, _\bV_\be_\bc_\bt_\bo_\br&\n+coarse, const _\bV_\be_\bc_\bt_\bo_\br& fine,\n+69 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm);\n+70 };\n+71\n+72#if HAVE_MPI\n+73\n+74 template\n+_\b7_\b5 class _\bT_\br_\ba_\bn_\bs_\bf_\be_\br >\n+76 {\n+77 public:\n+_\b7_\b8 typedef V _\bV_\be_\br_\bt_\be_\bx;\n+_\b7_\b9 typedef V1 _\bV_\be_\bc_\bt_\bo_\br;\n+_\b8_\b0 typedef _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> >\n+_\bR_\be_\bd_\bi_\bs_\bt;\n+81 template\n+82 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n+83 _\bV_\be_\bc_\bt_\bo_\br& fineRedist, T3 damp, _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm,\n+84 const _\bR_\be_\bd_\bi_\bs_\bt& redist);\n+85 template\n+86 static void _\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+_\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n+87 T3 damp, _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm);\n 88\n-89\n-93 template\n-_\b9_\b4 class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-95 {\n-96\n-97 public:\n-_\b1_\b0_\b1 typedef typename std::remove_const::type _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-_\b1_\b0_\b5 typedef const typename std::remove_const::type _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-106\n-107 friend class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT<_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br>;\n-108 friend class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT<_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br>;\n-109\n-110 enum {\n-112 _\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be = std::is_same::value\n-_\b1_\b1_\b3 };\n-114\n-118 typedef typename std::conditional<_\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be && C::mutableMatrix,typename\n-Matrix::row_type::Iterator,\n-119 typename Matrix::row_type::ConstIterator>::type\n-_\b1_\b2_\b0 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-121\n-125 typedef typename std::conditional<_\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be && C::mutableMatrix,typename\n-M::block_type,\n-126 const typename M::block_type>::type\n-_\b1_\b2_\b7 _\bW_\be_\bi_\bg_\bh_\bt;\n-128\n-_\b1_\b3_\b6 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bs_\bo_\bu_\br_\bc_\be, const _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& block,\n-137 const _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\be_\bn_\bd, const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& edge);\n-138\n-_\b1_\b4_\b5 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& block);\n-146\n-151 template\n-_\b1_\b5_\b2 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\b1_\b>& other);\n-153\n-154 typedef typename std::conditional::type>::value && C::mutableMatrix,\n-155 typename M::block_type, const typename M::block_type>::type\n-_\b1_\b5_\b6 _\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be;\n-157\n-_\b1_\b6_\b1 _\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be& _\bw_\be_\bi_\bg_\bh_\bt() const;\n-162\n-_\b1_\b6_\b4 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\b>& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+89 static void _\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, _\bV_\be_\bc_\bt_\bo_\br&\n+coarse, const _\bV_\be_\bc_\bt_\bo_\br& fine,\n+90 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm);\n+91 };\n+92\n+93#endif\n+94\n+95 template\n+96 template\n+97 inline void\n+_\b9_\b8 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+99 _\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n+100 [[maybe_unused]] _\bV_\be_\bc_\bt_\bo_\br& fineRedist,\n+101 T damp,\n+102 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm,\n+103 [[maybe_unused]] const _\bR_\be_\bd_\bi_\bs_\bt& redist)\n+104 {\n+105 prolongateVector(aggregates, coarse, fine, damp);\n+106 }\n+107 template\n+108 template\n+109 inline void\n+_\b1_\b1_\b0 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+111 _\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n+112 T damp,\n+113 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm)\n+114 {\n+115 typedef typename Vector::iterator Iterator;\n+116\n+117 Iterator end = coarse.end();\n+118 Iterator begin= coarse.begin();\n+119 for(; begin!=end; ++begin)\n+120 *begin*=damp;\n+121 end=fine.end();\n+122 begin=fine.begin();\n+123\n+124 for(Iterator block=begin; block != end; ++block) {\n+125 std::ptrdiff_t index=block-begin;\n+126 const _\bV_\be_\br_\bt_\be_\bx& vertex = aggregates[index];\n+127 if(vertex != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n+128 *block += coarse[aggregates[index]];\n+129 }\n+130 }\n+131\n+132 template\n+133 inline void\n+_\b1_\b3_\b4 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(const\n+_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+135 _\bV_\be_\bc_\bt_\bo_\br& coarse,\n+136 const _\bV_\be_\bc_\bt_\bo_\br& fine,\n+137 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& comm)\n+138 {\n+139 // Set coarse vector to zero\n+140 coarse=0;\n+141\n+142 typedef typename Vector::const_iterator Iterator;\n+143 Iterator end = fine._\be_\bn_\bd();\n+144 Iterator begin=fine.begin();\n+145\n+146 for(Iterator block=begin; block != end; ++block) {\n+147 const _\bV_\be_\br_\bt_\be_\bx& vertex = aggregates[block-begin];\n+148 if(vertex != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n+149 coarse[vertex] += *block;\n+150 }\n+151 }\n+152\n+153#if HAVE_MPI\n+154 template\n+155 template\n+_\b1_\b5_\b6 inline void _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> >::\n+prolongateVector(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+157 _\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine,\n+158 _\bV_\be_\bc_\bt_\bo_\br& fineRedist, T3 damp,\n+159 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm,\n+160 const _\bR_\be_\bd_\bi_\bs_\bt& redist)\n+161 {\n+162 if(fineRedist.size()>0)\n+163 // we operated on the coarse level\n+164 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(aggregates, coarse,\n+fineRedist, damp);\n 165\n-_\b1_\b6_\b7 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>&\n-other) const;\n-168\n-_\b1_\b7_\b0 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::\n-type>& other) const;\n-171\n-_\b1_\b7_\b3 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>&\n-other) const;\n-174\n-_\b1_\b7_\b6 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::\n-type>& other) const;\n-177\n-_\b1_\b7_\b9 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bt_\ba_\br_\bg_\be_\bt() const;\n-180\n-_\b1_\b8_\b2 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bs_\bo_\bu_\br_\bc_\be() const;\n-183\n-_\b1_\b8_\b5 const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*() const;\n-186\n-_\b1_\b8_\b8 const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>() const;\n-189\n-190 private:\n-192 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br source_;\n-194 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br block_;\n-195 /***\n-196 * @brief The column iterator positioned at the end of the row\n-197 * of vertex source_\n-198 */\n-199 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br blockEnd_;\n-201 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br edge_;\n-202 };\n-203\n-207 template\n-_\b2_\b0_\b8 class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-209 {\n-210 public:\n-_\b2_\b1_\b4 typedef typename std::remove_const::type _\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-_\b2_\b1_\b8 typedef const typename std::remove_const::type _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-219\n-220 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT<_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br>;\n-221 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT<_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br>;\n-222\n-223 enum {\n-225 _\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be = std::is_same::value\n-_\b2_\b2_\b6 };\n-227\n-_\b2_\b3_\b3 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(C* graph, const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& current);\n-234\n-_\b2_\b4_\b2 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& current);\n-243\n-_\b2_\b4_\b4 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b>& other);\n-245\n-_\b2_\b5_\b0 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\b>& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n-251\n-_\b2_\b5_\b3 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b>& other) const;\n-254\n-_\b2_\b5_\b6 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b>& other) const;\n-257\n-_\b2_\b5_\b9 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b>& other) const;\n-260\n-_\b2_\b6_\b2 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b>& other) const;\n-263\n-264 typedef typename std::conditional::type>::value && C::mutableMatrix,\n-265 typename M::block_type, const typename M::block_type>::type\n-_\b2_\b6_\b6 _\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be;\n-_\b2_\b6_\b8 _\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be& _\bw_\be_\bi_\bg_\bh_\bt() const;\n-269\n-_\b2_\b7_\b4 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*() const;\n-275\n-_\b2_\b8_\b1 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\b> _\bb_\be_\bg_\bi_\bn() const;\n-282\n-_\b2_\b8_\b8 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bC_\b> _\be_\bn_\bd() const;\n-289\n-290 private:\n-291 C* graph_;\n-292 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br current_;\n-293 };\n-294\n-_\b2_\b9_\b8 typedef _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> > _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-299\n-_\b3_\b0_\b3 typedef _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> > _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-304\n-_\b3_\b0_\b8 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> > _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-309\n-_\b3_\b1_\b3 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> > _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-314\n-_\b3_\b1_\b9 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh(_\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt_\br_\bi_\bx);\n-320\n-_\b3_\b2_\b4 _\b~_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh();\n-325\n-_\b3_\b3_\b0 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn();\n-331\n-_\b3_\b3_\b6 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd();\n-337\n-_\b3_\b4_\b2 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n-343\n-_\b3_\b4_\b8 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n-349\n-_\b3_\b5_\b6 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source);\n-357\n-_\b3_\b6_\b4 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source);\n-365\n-366\n-_\b3_\b7_\b3 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n-374\n-_\b3_\b8_\b1 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n-382\n-_\b3_\b8_\b7 _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt_\br_\bi_\bx();\n-388\n-_\b3_\b9_\b3 const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt_\br_\bi_\bx() const;\n-394\n-_\b3_\b9_\b8 std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const;\n-399\n-_\b4_\b0_\b6 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx() const;\n-407\n-_\b4_\b1_\b1 std::size_t _\bn_\bo_\bE_\bd_\bg_\be_\bs() const;\n-412\n-_\b4_\b1_\b9 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bf_\bi_\bn_\bd_\bE_\bd_\bg_\be(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source,\n-420 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& target) const;\n-421\n-422 private:\n-424 _\bM_\ba_\bt_\br_\bi_\bx& matrix_;\n-426 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* start_;\n-428 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh(const _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh&);\n-429\n-430 };\n-431\n-441 template\n-_\b4_\b4_\b2 class _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n-443 {\n-444 public:\n-_\b4_\b4_\b8 typedef G _\bG_\br_\ba_\bp_\bh;\n-449\n-_\b4_\b5_\b4 typedef T _\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd;\n-455\n-_\b4_\b5_\b9 typedef typename Graph::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-460\n-_\b4_\b6_\b1 typedef _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-462\n-_\b4_\b6_\b9 class _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n-470 {\n-471 public:\n-_\b4_\b7_\b2 typedef ReadablePropertyMapTag _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n-473\n-_\b4_\b7_\b4 _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp(const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& firstEdge)\n-475 : firstEdge_(firstEdge)\n-476 {}\n-477\n-_\b4_\b7_\b9 _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp(const _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp& emap)\n-480 : firstEdge_(emap.firstEdge_)\n-481 {}\n-482\n-_\b4_\b8_\b3 std::size_t _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& edge) const\n-484 {\n-485 return edge-firstEdge_;\n-486 }\n-487 private:\n-489 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br firstEdge_;\n-491 _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp()\n-492 {}\n-493 };\n-494\n-_\b4_\b9_\b9 _\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp _\bg_\be_\bt_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp();\n-500\n-_\b5_\b0_\b4 class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br : public RandomAccessIteratorFacade\n-505 {\n-506 public:\n-_\b5_\b1_\b2 explicit _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bs_\bo_\bu_\br_\bc_\be, const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n-edge);\n-513\n-_\b5_\b2_\b1 explicit _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& edge);\n-522\n-_\b5_\b2_\b4 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) const;\n-525\n-_\b5_\b2_\b7 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-528\n-_\b5_\b3_\b0 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt();\n-531\n-_\b5_\b3_\b2 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\ba_\bd_\bv_\ba_\bn_\bc_\be(std::ptrdiff_t n);\n-533\n-_\b5_\b3_\b5 const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const;\n-536\n-_\b5_\b3_\b8 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bt_\ba_\br_\bg_\be_\bt() const;\n-539\n-_\b5_\b4_\b1 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bs_\bo_\bu_\br_\bc_\be() const;\n-542\n-_\b5_\b4_\b3 std::ptrdiff_t _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) const;\n-544\n-545 private:\n-547 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br source_;\n-552 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br edge_;\n-553 };\n-554\n-_\b5_\b5_\b8 class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-559 : public ForwardIteratorFacade\n-560 {\n-561 public:\n-_\b5_\b6_\b8 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\bG_\b,_\bT_\b>* graph, const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br&\n-current,\n-569 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\be_\bn_\bd);\n-570\n-571\n-_\b5_\b7_\b8 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& current);\n-579\n-_\b5_\b8_\b1 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt();\n-582\n-_\b5_\b8_\b4 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) const;\n-585\n-_\b5_\b9_\b0 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const;\n-591\n-_\b5_\b9_\b7 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n-598\n-_\b6_\b0_\b4 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n-605\n-606 private:\n-608 const _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b<_\bG_\br_\ba_\bp_\bh_\b,_\bT_\b>* graph_;\n-610 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br current_;\n-612 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br end_;\n-613 };\n-614\n-_\b6_\b1_\b8 typedef _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-619\n-_\b6_\b2_\b3 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-624\n-_\b6_\b2_\b9 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n-630\n-_\b6_\b3_\b5 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n-636\n-_\b6_\b4_\b3 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n-644\n-_\b6_\b5_\b1 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n-652\n-_\b6_\b5_\b6 std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const;\n-657\n-_\b6_\b6_\b4 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx() const;\n-665\n-_\b6_\b6_\b9 std::size_t _\bn_\bo_\bE_\bd_\bg_\be_\bs() const;\n-_\b6_\b7_\b6 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bf_\bi_\bn_\bd_\bE_\bd_\bg_\be(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source,\n-677 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& target) const;\n-_\b6_\b8_\b5 _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh(const _\bG_\br_\ba_\bp_\bh& graph, const T& excluded);\n-686\n-_\b6_\b9_\b0 _\b~_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh();\n-691\n-692 private:\n-694 const T& excluded_;\n-696 std::size_t noVertices_;\n-698 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br endVertex_;\n-700 int noEdges_;\n-705 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br maxVertex_;\n-707 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br* edges_;\n-709 std::ptrdiff_t* start_;\n-711 std::ptrdiff_t* end_;\n-713 _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh(const _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh&)\n-714 {}\n-715 };\n-716\n-717\n-721 template\n-_\b7_\b2_\b2 class _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-723 {\n-724 public:\n-_\b7_\b2_\b8 typedef G _\bG_\br_\ba_\bp_\bh;\n-729\n-_\b7_\b3_\b3 typedef typename Graph::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-734\n-_\b7_\b3_\b8 typedef typename Graph::EdgeDescriptor _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-739\n-_\b7_\b4_\b3 typedef VP _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs;\n-744\n-_\b7_\b5_\b6 typedef VM _\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp;\n-757\n-_\b7_\b6_\b1 typedef typename Graph::EdgeIterator _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-762\n-_\b7_\b6_\b6 typedef typename Graph::ConstEdgeIterator _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-767\n-_\b7_\b7_\b3 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source);\n-774\n-_\b7_\b8_\b0 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source);\n-781\n-_\b7_\b8_\b7 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n-788\n-_\b7_\b9_\b4 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd_\bE_\bd_\bg_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source) const;\n-795\n-796\n-797 template\n-_\b7_\b9_\b8 class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-799 : public std::conditional::type,\n-800 C>::value,\n-801 typename Graph::VertexIterator,\n-802 typename Graph::ConstVertexIterator>::type\n-803 {\n-804 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n-805 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n-806 public:\n-810 typedef typename std::conditional::type,\n-811 C>::value,\n-812 typename Graph::VertexIterator,\n-813 typename Graph::ConstVertexIterator>::type\n-_\b8_\b1_\b4 _\bF_\ba_\bt_\bh_\be_\br;\n-815\n-819 typedef typename std::conditional::type,\n-820 C>::value,\n-821 typename Graph::EdgeIterator,\n-822 typename Graph::ConstEdgeIterator>::type\n-_\b8_\b2_\b3 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-824\n-_\b8_\b3_\b0 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter,\n-831 C* graph);\n-832\n-833\n-_\b8_\b4_\b1 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter);\n-842\n-847 template\n-_\b8_\b4_\b8 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const VertexIteratorT& other);\n-849\n-853 typename std::conditional::\n-type>::value,\n-854 VertexProperties&,\n-855 const VertexProperties&>::type\n-_\b8_\b5_\b6 _\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs() const;\n-857\n-_\b8_\b6_\b3 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n-864\n-_\b8_\b7_\b0 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n-871\n-872 private:\n-876 C* graph_;\n-877 };\n-878\n-882 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-884\n-888 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-890\n-_\b8_\b9_\b5 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn();\n-896\n-_\b9_\b0_\b1 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd();\n-902\n-_\b9_\b0_\b7 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const;\n-908\n-_\b9_\b1_\b3 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const;\n-914\n-_\b9_\b2_\b0 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const VertexDescriptor& vertex);\n-921\n-_\b9_\b2_\b7 const _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const VertexDescriptor& vertex)\n-const;\n-928\n-_\b9_\b3_\b3 const _\bG_\br_\ba_\bp_\bh& _\bg_\br_\ba_\bp_\bh() const;\n-934\n-_\b9_\b3_\b8 std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const;\n-939\n-_\b9_\b4_\b3 std::size_t _\bn_\bo_\bE_\bd_\bg_\be_\bs() const;\n-944\n-_\b9_\b5_\b1 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx() const;\n-952\n-_\b9_\b5_\b8 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(Graph& graph, const VertexMap vmap=VertexMap());\n-959\n-960 private:\n-961 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(const VertexPropertiesGraph&)\n-962 {}\n-963\n-965 _\bG_\br_\ba_\bp_\bh& graph_;\n-967 _\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp vmap_;\n-_\b9_\b6_\b9 std::vector vertexProperties_;\n-970\n-971 };\n-972\n-976 template\n-_\b9_\b7_\b7 class _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-978 {\n-979 public:\n-_\b9_\b8_\b3 typedef G _\bG_\br_\ba_\bp_\bh;\n-984\n-_\b9_\b8_\b8 typedef typename Graph::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-989\n-_\b9_\b9_\b3 typedef typename Graph::EdgeDescriptor _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br;\n-994\n-_\b9_\b9_\b8 typedef VP _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs;\n-999\n-_\b1_\b0_\b1_\b1 typedef VM _\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp;\n-1012\n-_\b1_\b0_\b1_\b6 typedef EP _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs;\n-1017\n-1018\n-_\b1_\b0_\b3_\b0 typedef EM _\bE_\bd_\bg_\be_\bM_\ba_\bp;\n-1031\n-1032 template\n-_\b1_\b0_\b3_\b3 class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-1034 : public std::conditional::\n-type,\n-1035 C>::value,\n-1036 typename Graph::EdgeIterator,\n-1037 typename Graph::ConstEdgeIterator>::type\n-1038 {\n-1039\n-1040 friend class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n-1041 friend class _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n-1042 public:\n-1046 typedef typename std::conditional::type,\n-1047 C>::value,\n-1048 typename Graph::EdgeIterator,\n-1049 typename Graph::ConstEdgeIterator>::type\n-_\b1_\b0_\b5_\b0 _\bF_\ba_\bt_\bh_\be_\br;\n-1051\n-_\b1_\b0_\b5_\b7 explicit _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter,\n-1058 C* graph);\n-1059\n-_\b1_\b0_\b6_\b7 explicit _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter);\n-1068\n-1073 template\n-_\b1_\b0_\b7_\b4 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const EdgeIteratorT& other);\n-1075\n-1079 typename std::conditional::\n-type>::value,\n-1080 EdgeProperties&,\n-1081 const EdgeProperties&>::type\n-_\b1_\b0_\b8_\b2 properties() const;\n-1083\n-1084 private:\n-_\b1_\b0_\b8_\b8 C* graph_;\n-1089 };\n-1090\n-1094 typedef _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-1097\n-1101 typedef _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-1104\n-_\b1_\b1_\b1_\b0 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br beginEdges(const VertexDescriptor& source);\n-1111\n-_\b1_\b1_\b1_\b7 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endEdges(const VertexDescriptor& source);\n-1118\n-_\b1_\b1_\b2_\b4 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br beginEdges(const VertexDescriptor& source) const;\n-1125\n-_\b1_\b1_\b3_\b1 _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endEdges(const VertexDescriptor& source) const;\n-1132\n-1133\n-1134 template\n-_\b1_\b1_\b3_\b5 class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-1136 : public std::conditional::\n-type,\n-1137 C>::value,\n-1138 typename Graph::VertexIterator,\n-1139 typename Graph::ConstVertexIterator>::type\n-1140 {\n-1141 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n-1142 friend class _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT::type>;\n-1143 public:\n-1147 typedef typename std::conditional::type,\n-1148 C>::value,\n-1149 typename Graph::VertexIterator,\n-1150 typename Graph::ConstVertexIterator>::type\n-_\b1_\b1_\b5_\b1 _\bF_\ba_\bt_\bh_\be_\br;\n-1152\n-_\b1_\b1_\b5_\b8 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter,\n-1159 C* graph);\n-1160\n-1161\n-_\b1_\b1_\b6_\b9 explicit _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const Father& iter);\n-1170\n-1175 template\n-_\b1_\b1_\b7_\b6 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT(const VertexIteratorT& other);\n-1177\n-1181 typename std::conditional::\n-type>::value,\n-1182 VertexProperties&,\n-1183 const VertexProperties&>::type\n-_\b1_\b1_\b8_\b4 properties() const;\n-1185\n-_\b1_\b1_\b9_\b1 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT begin() const;\n-1192\n-_\b1_\b1_\b9_\b8 _\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT end() const;\n-1199\n-1200 private:\n-1204 C* graph_;\n-1205 };\n-1206\n-1210 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-1213\n-1217 typedef _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT > _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-1220\n-_\b1_\b2_\b2_\b5 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br begin();\n-1226\n-_\b1_\b2_\b3_\b1 _\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br end();\n-1232\n-_\b1_\b2_\b3_\b7 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br begin() const;\n-1238\n-_\b1_\b2_\b4_\b3 _\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br end() const;\n-1244\n-_\b1_\b2_\b5_\b0 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& getVertexProperties(const VertexDescriptor& vertex);\n-1251\n-_\b1_\b2_\b5_\b7 const _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& getVertexProperties(const VertexDescriptor&\n-vertex) const;\n-1258\n-_\b1_\b2_\b6_\b5 _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br findEdge(const VertexDescriptor& source,\n-1266 const VertexDescriptor& target)\n-1267 {\n-1268 return graph_.findEdge(source,target);\n-1269 }\n-1270\n-_\b1_\b2_\b7_\b6 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& edge);\n-1277\n-1278\n-_\b1_\b2_\b8_\b4 const _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const _\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& edge) const;\n-1285\n-_\b1_\b2_\b9_\b2 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source,\n-1293 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& target);\n-1294\n-_\b1_\b3_\b0_\b1 const _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs(const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& source,\n-1302 const _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br& target) const;\n-1303\n-_\b1_\b3_\b0_\b8 const _\bG_\br_\ba_\bp_\bh& _\bg_\br_\ba_\bp_\bh() const;\n-1309\n-_\b1_\b3_\b1_\b3 std::size_t _\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs() const;\n-1314\n-_\b1_\b3_\b1_\b8 std::size_t _\bn_\bo_\bE_\bd_\bg_\be_\bs() const;\n-1319\n-_\b1_\b3_\b2_\b6 _\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br _\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx() const;\n-1327\n-_\b1_\b3_\b3_\b4 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(_\bG_\br_\ba_\bp_\bh& graph, const _\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp& vmap=_\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp(),\n-1335 const _\bE_\bd_\bg_\be_\bM_\ba_\bp& emap=_\bE_\bd_\bg_\be_\bM_\ba_\bp());\n-1336\n-1337 private:\n-1338 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(const _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh&)\n-1339 {}\n-1340\n-1342 Graph& graph_;\n-1345 VertexMap vmap_;\n-1346 std::vector vertexProperties_;\n-1348 EdgeMap emap_;\n-_\b1_\b3_\b5_\b0 std::vector edgeProperties_;\n-1351\n-1352 };\n-1353\n-1354\n-1359 template\n-_\b1_\b3_\b6_\b0 class _\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-1361 {\n-1362 public:\n-_\b1_\b3_\b6_\b6 typedef G _\bG_\br_\ba_\bp_\bh;\n-_\b1_\b3_\b7_\b0 typedef typename G::VertexProperties _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs;\n-_\b1_\b3_\b7_\b4 typedef typename G::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n-1375\n-_\b1_\b3_\b8_\b0 _\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br(G& g)\n-1381 : graph_(g)\n-1382 {}\n-_\b1_\b3_\b8_\b6 _\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br()\n-1387 : graph_(0)\n-1388 {}\n-1389\n-1390\n-_\b1_\b3_\b9_\b5 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bV_\be_\br_\bt_\be_\bx& vertex) const\n-1396 {\n-1397 return graph_->getVertexProperties(vertex);\n-1398 }\n-1399 private:\n-1400 Graph* graph_;\n-1401 };\n-1402\n-1407 template\n-_\b1_\b4_\b0_\b8 class _\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-1409 {\n-1410 public:\n-_\b1_\b4_\b1_\b4 typedef G _\bG_\br_\ba_\bp_\bh;\n-_\b1_\b4_\b1_\b8 typedef typename G::EdgeProperties _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs;\n-_\b1_\b4_\b2_\b2 typedef typename G::EdgeDescriptor _\bE_\bd_\bg_\be;\n-1423\n-_\b1_\b4_\b2_\b8 _\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br(G& g)\n-1429 : graph_(g)\n-1430 {}\n-_\b1_\b4_\b3_\b4 _\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br()\n-1435 : graph_(0)\n-1436 {}\n-1437\n-_\b1_\b4_\b4_\b2 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bE_\bd_\bg_\be& edge) const\n-1443 {\n-1444 return graph_->getEdgeProperties(edge);\n-1445 }\n-1446 private:\n-1447 Graph* graph_;\n-1448 };\n-1449\n-1450\n-1461 template\n-_\b1_\b4_\b6_\b2 int _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(const G& graph, const typename G::VertexDescriptor&\n-vertex,\n-1463 V& visitor);\n-1464\n-1465#ifndef DOXYGEN\n-1466\n-1467 template\n-1468 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bM_\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh(M& matrix)\n-1469 : matrix_(matrix)\n-1470 {\n-1471 if(matrix_.N()!=matrix_.M())\n-1472 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Matrix has to have as many columns as rows!\");\n-1473\n-1474 start_ = new EdgeDescriptor[matrix_.N()+1];\n-1475\n-1476 typedef typename M::ConstIterator Iterator;\n-1477 start_[matrix_.begin().index()] = 0;\n-1478\n-1479 for(Iterator row=matrix_.begin(); row != matrix_.end(); ++row)\n-1480 start_[row.index()+1] = start_[row.index()] + row->size();\n-1481 }\n-1482\n-1483 template\n-1484 MatrixGraph::~MatrixGraph()\n-1485 {\n-1486 delete[] start_;\n-1487 }\n-1488\n-1489 template\n-1490 inline std::size_t MatrixGraph::noEdges() const\n-1491 {\n-1492 return start_[matrix_.N()];\n-1493 }\n-1494\n-1495 template\n-1496 inline std::size_t MatrixGraph::noVertices() const\n-1497 {\n-1498 return matrix_.N();\n-1499 }\n-1500\n-1501 template\n-1502 inline typename MatrixGraph::VertexDescriptor MatrixGraph::maxVertex\n-() const\n-1503 {\n-1504 return matrix_.N()-1;\n-1505 }\n-1506\n-1507 template\n-1508 typename MatrixGraph::EdgeDescriptor\n-1509 MatrixGraph::findEdge(const VertexDescriptor& source,\n-1510 const VertexDescriptor& target) const\n-1511 {\n-1512 typename M::ConstColIterator found =matrix_[source].find(target);\n-1513 if(found == matrix_[source].end())\n-1514 return std::numeric_limits::max();\n-1515 std::size_t offset = found.offset();\n-1516 if(target>source)\n-1517 offset--;\n-1518\n-1519 assert(offset\n-1526 inline M& MatrixGraph::matrix()\n-1527 {\n-1528 return matrix_;\n-1529 }\n-1530\n-1531 template\n-1532 inline const M& MatrixGraph::matrix() const\n-1533 {\n-1534 return matrix_;\n-1535 }\n-1536\n-1537 template\n-1538 template\n-1539 MatrixGraph::EdgeIteratorT::EdgeIteratorT(const VertexDescriptor&\n-source, const ColIterator& block,\n-1540 const ColIterator& end, const EdgeDescriptor& edge)\n-1541 : source_(source), block_(block), blockEnd_(end), edge_(edge)\n-1542 {\n-1543 if(block_!=blockEnd_ && block_.index() == source_) {\n-1544 // This is the edge from the diagonal to the diagonal. Skip it.\n-1545 ++block_;\n-1546 }\n-1547 }\n-1548\n-1549 template\n-1550 template\n-1551 MatrixGraph::EdgeIteratorT::EdgeIteratorT(const ColIterator& block)\n-1552 : block_(block)\n-1553 {}\n-1554\n-1555 template\n-1556 template\n-1557 template\n-1558 MatrixGraph::EdgeIteratorT::EdgeIteratorT(const EdgeIteratorT&\n-other)\n-1559 : source_(other.source_), block_(other.block_), blockEnd_\n-(other.blockEnd_), edge_(other.edge_)\n-1560 {}\n-1561\n-1562\n-1563 template\n-1564 template\n-1565 inline typename MatrixGraph::template EdgeIteratorT::WeightType&\n-1566 MatrixGraph::EdgeIteratorT::weight() const\n-1567 {\n-1568 return *block_;\n-1569 }\n-1570\n-1571 template\n-1572 template\n-1573 inline typename MatrixGraph::template EdgeIteratorT&\n-MatrixGraph::EdgeIteratorT::operator++()\n-1574 {\n-1575 ++block_;\n-1576 ++edge_;\n-1577\n-1578 if(block_!=blockEnd_ && block_.index() == source_) {\n-1579 // This is the edge from the diagonal to the diagonal. Skip it.\n-1580 ++block_;\n-1581 }\n-1582\n-1583 return *this;\n-1584 }\n-1585\n-1586 template\n-1587 template\n-1588 inline bool MatrixGraph::EdgeIteratorT::operator!=(const typename\n-MatrixGraph::template EdgeIteratorT::type>&\n-other) const\n-1589 {\n-1590 return block_!=other.block_;\n-1591 }\n-1592\n-1593 template\n-1594 template\n-1595 inline bool MatrixGraph::EdgeIteratorT::operator!=(const typename\n-MatrixGraph::template EdgeIteratorT::\n-type>& other) const\n-1596 {\n-1597 return block_!=other.block_;\n-1598 }\n-1599\n-1600 template\n-1601 template\n-1602 inline bool MatrixGraph::EdgeIteratorT::operator==(const typename\n-MatrixGraph::template EdgeIteratorT::type>&\n-other) const\n-1603 {\n-1604 return block_==other.block_;\n-1605 }\n-1606\n-1607 template\n-1608 template\n-1609 inline bool MatrixGraph::EdgeIteratorT::operator==(const typename\n-MatrixGraph::template EdgeIteratorT::\n-type>& other) const\n-1610 {\n-1611 return block_==other.block_;\n-1612 }\n-1613\n-1614 template\n-1615 template\n-1616 inline typename MatrixGraph::VertexDescriptor MatrixGraph::\n-EdgeIteratorT::target() const\n-1617 {\n-1618 return block_.index();\n-1619 }\n-1620\n-1621 template\n-1622 template\n-1623 inline typename MatrixGraph::VertexDescriptor MatrixGraph::\n-EdgeIteratorT::source() const\n-1624 {\n-1625 return source_;\n-1626 }\n-1627\n-1628 template\n-1629 template\n-1630 inline const typename MatrixGraph::EdgeDescriptor& MatrixGraph::\n-EdgeIteratorT::operator*() const\n-1631 {\n-1632 return edge_;\n-1633 }\n-1634\n-1635 template\n-1636 template\n-1637 inline const typename MatrixGraph::EdgeDescriptor* MatrixGraph::\n-EdgeIteratorT::operator->() const\n-1638 {\n-1639 return &edge_;\n-1640 }\n-1641\n-1642 template\n-1643 template\n-1644 MatrixGraph::VertexIteratorT::VertexIteratorT(C* graph,\n-1645 const VertexDescriptor& current)\n-1646 : graph_(graph), current_(current)\n-1647 {}\n-1648\n-1649\n-1650 template\n-1651 template\n-1652 MatrixGraph::VertexIteratorT::VertexIteratorT(const\n-VertexDescriptor& current)\n-1653 : current_(current)\n-1654 {}\n-1655\n-1656 template\n-1657 template\n-1658 MatrixGraph::VertexIteratorT::VertexIteratorT(const\n-VertexIteratorT& other)\n-1659 : graph_(other.graph_), current_(other.current_)\n-1660 {}\n-1661\n-1662 template\n-1663 template\n-1664 inline bool MatrixGraph::VertexIteratorT::operator!=(const\n-VertexIteratorT& other) const\n-1665 {\n-1666 return current_ != other.current_;\n-1667 }\n-1668\n-1669 template\n-1670 template\n-1671 inline bool MatrixGraph::VertexIteratorT::operator!=(const\n-VertexIteratorT& other) const\n-1672 {\n-1673 return current_ != other.current_;\n-1674 }\n-1675\n-1676\n-1677 template\n-1678 template\n-1679 inline bool MatrixGraph::VertexIteratorT::operator==(const\n-VertexIteratorT& other) const\n-1680 {\n-1681 return current_ == other.current_;\n-1682 }\n-1683\n-1684 template\n-1685 template\n-1686 inline bool MatrixGraph::VertexIteratorT::operator==(const\n-VertexIteratorT& other) const\n-1687 {\n-1688 return current_ == other.current_;\n-1689 }\n-1690\n-1691 template\n-1692 template\n-1693 inline typename MatrixGraph::template VertexIteratorT&\n-MatrixGraph::VertexIteratorT::operator++()\n-1694 {\n-1695 ++current_;\n-1696 return *this;\n-1697 }\n-1698\n-1699 template\n-1700 template\n-1701 inline typename MatrixGraph::template VertexIteratorT::WeightType&\n-1702 MatrixGraph::VertexIteratorT::weight() const\n-1703 {\n-1704 return graph_->matrix()[current_][current_];\n-1705 }\n-1706\n-1707 template\n-1708 template\n-1709 inline const typename MatrixGraph::VertexDescriptor&\n-1710 MatrixGraph::VertexIteratorT::operator*() const\n-1711 {\n-1712 return current_;\n-1713 }\n-1714\n-1715 template\n-1716 template\n-1717 inline typename MatrixGraph::template EdgeIteratorT\n-1718 MatrixGraph::VertexIteratorT::begin() const\n-1719 {\n-1720 return graph_->beginEdges(current_);\n-1721 }\n-1722\n-1723 template\n-1724 template\n-1725 inline typename MatrixGraph::template EdgeIteratorT\n-1726 MatrixGraph::VertexIteratorT::end() const\n-1727 {\n-1728 return graph_->endEdges(current_);\n-1729 }\n-1730\n-1731 template\n-1732 inline typename MatrixGraph::template VertexIteratorT >\n-1733 MatrixGraph::begin()\n-1734 {\n-1735 return VertexIterator(this,0);\n-1736 }\n-1737\n-1738 template\n-1739 inline typename MatrixGraph::template VertexIteratorT >\n-1740 MatrixGraph::end()\n-1741 {\n-1742 return VertexIterator(matrix_.N());\n-1743 }\n-1744\n-1745\n-1746 template\n-1747 inline typename MatrixGraph::template VertexIteratorT >\n-1748 MatrixGraph::begin() const\n-1749 {\n-1750 return ConstVertexIterator(this, 0);\n-1751 }\n-1752\n-1753 template\n-1754 inline typename MatrixGraph::template VertexIteratorT >\n-1755 MatrixGraph::end() const\n-1756 {\n-1757 return ConstVertexIterator(matrix_.N());\n-1758 }\n-1759\n-1760 template\n-1761 inline typename MatrixGraph::template EdgeIteratorT >\n-1762 MatrixGraph::beginEdges(const VertexDescriptor& source)\n-1763 {\n-1764 return EdgeIterator(source, matrix_.operator[](source).begin(),\n-1765 matrix_.operator[](source).end(), start_[source]);\n-1766 }\n-1767\n-1768 template\n-1769 inline typename MatrixGraph::template EdgeIteratorT >\n-1770 MatrixGraph::endEdges(const VertexDescriptor& source)\n-1771 {\n-1772 return EdgeIterator(matrix_.operator[](source).end());\n-1773 }\n-1774\n-1775\n-1776 template\n-1777 inline typename MatrixGraph::template EdgeIteratorT >\n-1778 MatrixGraph::beginEdges(const VertexDescriptor& source) const\n-1779 {\n-1780 return ConstEdgeIterator(source, matrix_.operator[](source).begin(),\n-1781 matrix_.operator[](source).end(), start_[source]);\n-1782 }\n-1783\n-1784 template\n-1785 inline typename MatrixGraph::template EdgeIteratorT >\n-1786 MatrixGraph::endEdges(const VertexDescriptor& source) const\n-1787 {\n-1788 return ConstEdgeIterator(matrix_.operator[](source).end());\n-1789 }\n-1790\n-1791\n-1792 template\n-1793 SubGraph::EdgeIterator::EdgeIterator(const VertexDescriptor& source,\n-1794 const EdgeDescriptor& edge)\n-1795 : source_(source), edge_(edge)\n-1796 {}\n-1797\n-1798\n-1799 template\n-1800 SubGraph::EdgeIterator::EdgeIterator(const EdgeDescriptor& edge)\n-1801 : edge_(edge)\n-1802 {}\n-1803\n-1804 template\n-1805 typename SubGraph::EdgeIndexMap SubGraph::getEdgeIndexMap()\n-1806 {\n-1807 return EdgeIndexMap(edges_);\n-1808 }\n-1809\n-1810 template\n-1811 inline bool SubGraph::EdgeIterator::equals(const EdgeIterator &\n-other) const\n-1812 {\n-1813 return other.edge_==edge_;\n-1814 }\n-1815\n-1816 template\n-1817 inline typename SubGraph::EdgeIterator& SubGraph::EdgeIterator::\n-increment()\n-1818 {\n-1819 ++edge_;\n-1820 return *this;\n-1821 }\n-1822\n-1823 template\n-1824 inline typename SubGraph::EdgeIterator& SubGraph::EdgeIterator::\n-decrement()\n-1825 {\n-1826 --edge_;\n-1827 return *this;\n-1828 }\n-1829\n-1830 template\n-1831 inline typename SubGraph::EdgeIterator& SubGraph::EdgeIterator::\n-advance(std::ptrdiff_t n)\n-1832 {\n-1833 edge_+=n;\n-1834 return *this;\n-1835 }\n-1836 template\n-1837 inline const typename G::VertexDescriptor& SubGraph::EdgeIterator::\n-source() const\n-1838 {\n-1839 return source_;\n-1840 }\n-1841\n-1842 template\n-1843 inline const typename G::VertexDescriptor& SubGraph::EdgeIterator::\n-target() const\n-1844 {\n-1845 return *edge_;\n-1846 }\n-1847\n-1848\n-1849 template\n-1850 inline const typename SubGraph::EdgeDescriptor& SubGraph::\n-EdgeIterator::dereference() const\n-1851 {\n-1852 return edge_;\n-1853 }\n-1854\n-1855 template\n-1856 inline std::ptrdiff_t SubGraph::EdgeIterator::distanceTo(const\n-EdgeIterator & other) const\n-1857 {\n-1858 return other.edge_-edge_;\n-1859 }\n-1860\n-1861 template\n-1862 SubGraph::VertexIterator::VertexIterator(const SubGraph* graph,\n-1863 const VertexDescriptor& current,\n-1864 const VertexDescriptor& end)\n-1865 : graph_(graph), current_(current), end_(end)\n-1866 {\n-1867 // Skip excluded vertices\n-1868 typedef typename T::const_iterator Iterator;\n-1869\n-1870 for(Iterator vertex = graph_->excluded_.begin();\n-1871 current_ != end_ && *vertex;\n-1872 ++vertex)\n-1873 ++current_;\n-1874 assert(current_ == end_ || !graph_->excluded_[current_]);\n-1875 }\n-1876\n-1877 template\n-1878 SubGraph::VertexIterator::VertexIterator(const VertexDescriptor&\n-current)\n-1879 : current_(current)\n-1880 {}\n-1881\n-1882 template\n-1883 inline typename SubGraph::VertexIterator& SubGraph::\n-VertexIterator::increment()\n-1884 {\n-1885 ++current_;\n-1886 //Skip excluded vertices\n-1887 while(current_ != end_ && graph_->excluded_[current_])\n-1888 ++current_;\n-1889\n-1890 assert(current_ == end_ || !graph_->excluded_[current_]);\n-1891 return *this;\n-1892 }\n-1893\n-1894 template\n-1895 inline bool SubGraph::VertexIterator::equals(const VertexIterator &\n-other) const\n-1896 {\n-1897 return current_==other.current_;\n-1898 }\n-1899\n-1900 template\n-1901 inline const typename G::VertexDescriptor& SubGraph::VertexIterator::\n-dereference() const\n-1902 {\n-1903 return current_;\n-1904 }\n-1905\n-1906 template\n-1907 inline typename SubGraph::EdgeIterator SubGraph::\n-VertexIterator::begin() const\n-1908 {\n-1909 return graph_->beginEdges(current_);\n-1910 }\n-1911\n-1912 template\n-1913 inline typename SubGraph::EdgeIterator SubGraph::\n-VertexIterator::end() const\n-1914 {\n-1915 return graph_->endEdges(current_);\n-1916 }\n-1917\n-1918 template\n-1919 inline typename SubGraph::VertexIterator SubGraph::begin() const\n-1920 {\n-1921 return VertexIterator(this, 0, endVertex_);\n-1922 }\n-1923\n-1924\n-1925 template\n-1926 inline typename SubGraph::VertexIterator SubGraph::end() const\n-1927 {\n-1928 return VertexIterator(endVertex_);\n-1929 }\n-1930\n-1931\n-1932 template\n-1933 inline typename SubGraph::EdgeIterator SubGraph::beginEdges\n-(const VertexDescriptor& source) const\n-1934 {\n-1935 return EdgeIterator(source, edges_+start_[source]);\n-1936 }\n-1937\n-1938 template\n-1939 inline typename SubGraph::EdgeIterator SubGraph::endEdges(const\n-VertexDescriptor& source) const\n-1940 {\n-1941 return EdgeIterator(edges_+end_[source]);\n-1942 }\n-1943\n-1944 template\n-1945 std::size_t SubGraph::noVertices() const\n-1946 {\n-1947 return noVertices_;\n-1948 }\n-1949\n-1950 template\n-1951 inline typename SubGraph::VertexDescriptor SubGraph::maxVertex()\n-const\n-1952 {\n-1953 return maxVertex_;\n-1954 }\n-1955\n-1956 template\n-1957 inline std::size_t SubGraph::noEdges() const\n-1958 {\n-1959 return noEdges_;\n-1960 }\n-1961\n-1962 template\n-1963 inline typename SubGraph::EdgeDescriptor SubGraph::findEdge\n-(const VertexDescriptor& source,\n-1964 const VertexDescriptor& target) const\n-1965 {\n-1966 const EdgeDescriptor edge = std::lower_bound(edges_+start_[source],\n-edges_+end_[source], target);\n-1967 if(edge==edges_+end_[source] || *edge!=target)\n-1968 return std::numeric_limits::max();\n-1969\n-1970 return edge;\n-1971 }\n-1972\n-1973 template\n-1974 SubGraph::~SubGraph()\n-1975 {\n-1976 delete[] edges_;\n-1977 delete[] end_;\n-1978 delete[] start_;\n-1979 }\n-1980\n-1981 template\n-1982 SubGraph::SubGraph(const G& graph, const T& excluded)\n-1983 : excluded_(excluded), noVertices_(0), endVertex_(0), maxVertex_\n-(graph.maxVertex())\n-1984 {\n-1985 start_ = new std::ptrdiff_t[graph.noVertices()];\n-1986 end_ = new std::ptrdiff_t[graph.noVertices()];\n-1987 edges_ = new VertexDescriptor[graph.noEdges()];\n-1988\n-1989 VertexDescriptor* edge=edges_;\n-1990\n-1991 // Cater for the case that there are no vertices.\n-1992 // Otherwise endVertex_ will get 1 below.\n-1993 if ( graph.noVertices() == 0)\n-1994 return;\n-1995\n-1996 typedef typename Graph::ConstVertexIterator Iterator;\n-1997 Iterator endVertex=graph.end();\n-1998\n-1999 for(Iterator vertex = graph.begin(); vertex != endVertex; ++vertex)\n-2000 if(excluded_[*vertex])\n-2001 start_[*vertex]=end_[*vertex]=-1;\n-2002 else{\n-2003 ++noVertices_;\n-2004 endVertex_ = std::max(*vertex, endVertex_);\n-2005\n-2006 start_[*vertex] = edge-edges_;\n-2007\n-2008 auto endEdge = vertex.end();\n-2009\n-2010 for(auto iter=vertex.begin(); iter!= endEdge; ++iter)\n-2011 if(!excluded[iter.target()]) {\n-2012 *edge = iter.target();\n-2013 ++edge;\n-2014 }\n-2015\n-2016 end_[*vertex] = edge - edges_;\n-2017\n-2018 // Sort the edges\n-2019 std::sort(edges_+start_[*vertex], edge);\n-2020 }\n-2021 noEdges_ = edge-edges_;\n-2022 ++endVertex_;\n-2023 }\n-2024\n-2025 template\n-2026 inline std::size_t VertexPropertiesGraph::noEdges() const\n-2027 {\n-2028 return graph_.noEdges();\n-2029 }\n-2030\n-2031 template\n-2032 inline typename VertexPropertiesGraph::EdgeIterator\n-2033 VertexPropertiesGraph::beginEdges(const VertexDescriptor& source)\n-2034 {\n-2035 return graph_.beginEdges(source);\n-2036 }\n-2037\n-2038 template\n-2039 inline typename VertexPropertiesGraph::EdgeIterator\n-2040 VertexPropertiesGraph::endEdges(const VertexDescriptor& source)\n-2041 {\n-2042 return graph_.endEdges(source);\n-2043 }\n-2044\n-2045 template\n-2046 typename VertexPropertiesGraph::ConstEdgeIterator\n-2047 inline VertexPropertiesGraph::beginEdges(const VertexDescriptor&\n-source) const\n-2048 {\n-2049 return graph_.beginEdges(source);\n-2050 }\n-2051\n-2052 template\n-2053 typename VertexPropertiesGraph::ConstEdgeIterator\n-2054 VertexPropertiesGraph::endEdges(const VertexDescriptor& source)\n-const\n-2055 {\n-2056 return graph_.endEdges(source);\n-2057 }\n-2058\n-2059 template\n-2060 template\n-2061 VertexPropertiesGraph::VertexIteratorT\n-2062 ::VertexIteratorT(const Father& iter,\n-2063 C* graph)\n-2064 : Father(iter), graph_(graph)\n-2065 {}\n-2066\n-2067 template\n-2068 template\n-2069 VertexPropertiesGraph::VertexIteratorT\n-2070 ::VertexIteratorT(const Father& iter)\n-2071 : Father(iter)\n-2072 {}\n-2073\n-2074 template\n-2075 template\n-2076 template\n-2077 VertexPropertiesGraph::VertexIteratorT\n-2078 ::VertexIteratorT(const VertexIteratorT& other)\n-2079 : Father(other), graph_(other.graph_)\n-2080 {}\n-2081\n-2082 template\n-2083 template\n-2084 typename std::conditional::\n-type>::value,\n-2085 V&, const V&>::type\n-2086 inline VertexPropertiesGraph::VertexIteratorT::properties()\n-const\n-2087 {\n-2088 return graph_->getVertexProperties(Father::operator*());\n-2089 }\n-2090\n-2091 template\n-2092 template\n-2093 typename std::conditional::\n-type,\n-2094 C>::value,\n-2095 typename G::EdgeIterator,\n-2096 typename G::ConstEdgeIterator>::type\n-2097 inline VertexPropertiesGraph::VertexIteratorT::begin() const\n-2098 {\n-2099 return graph_->beginEdges(Father::operator*());\n-2100 }\n-2101\n-2102 template\n-2103 template\n-2104 typename std::conditional::\n-type,\n-2105 C>::value,\n-2106 typename G::EdgeIterator,\n-2107 typename G::ConstEdgeIterator>::type\n-2108 inline VertexPropertiesGraph::VertexIteratorT::end() const\n-2109 {\n-2110 return graph_->endEdges(Father::operator*());\n-2111 }\n-2112\n-2113 template\n-2114 inline typename VertexPropertiesGraph::VertexIterator\n-VertexPropertiesGraph::begin()\n-2115 {\n-2116 return VertexIterator(graph_.begin(), this);\n-2117 }\n-2118\n-2119 template\n-2120 inline typename VertexPropertiesGraph::VertexIterator\n-VertexPropertiesGraph::end()\n-2121 {\n-2122 return VertexIterator(graph_.end());\n-2123 }\n-2124\n-2125\n-2126 template\n-2127 inline typename VertexPropertiesGraph::ConstVertexIterator\n-VertexPropertiesGraph::begin() const\n-2128 {\n-2129 return ConstVertexIterator(graph_.begin(), this);\n-2130 }\n-2131\n-2132 template\n-2133 inline typename VertexPropertiesGraph::ConstVertexIterator\n-VertexPropertiesGraph::end() const\n-2134 {\n-2135 return ConstVertexIterator(graph_.end());\n-2136 }\n-2137\n-2138 template\n-2139 inline V& VertexPropertiesGraph::getVertexProperties(const\n-VertexDescriptor& vertex)\n-2140 {\n-2141 return vertexProperties_[vmap_[vertex]];\n-2142 }\n-2143\n-2144 template\n-2145 inline const V& VertexPropertiesGraph::getVertexProperties(const\n-VertexDescriptor& vertex) const\n-2146 {\n-2147 return vertexProperties_[vmap_[vertex]];\n-2148 }\n-2149\n-2150 template\n-2151 inline const G& VertexPropertiesGraph::graph() const\n-2152 {\n-2153 return graph_;\n-2154 }\n-2155\n-2156 template\n-2157 inline std::size_t VertexPropertiesGraph::noVertices() const\n-2158 {\n-2159 return graph_.noVertices();\n-2160 }\n-2161\n-2162\n-2163 template\n-2164 inline typename VertexPropertiesGraph::VertexDescriptor\n-VertexPropertiesGraph::maxVertex() const\n-2165 {\n-2166 return graph_.maxVertex();\n-2167 }\n-2168\n-2169 template\n-2170 VertexPropertiesGraph::VertexPropertiesGraph(Graph& graph, const\n-VM vmap)\n-2171 : graph_(graph), vmap_(vmap), vertexProperties_(vmap_[graph_.maxVertex\n-()+1], V())\n-2172 {}\n-2173\n-2174 template\n-2175 template\n-2176 PropertiesGraph::EdgeIteratorT::EdgeIteratorT(const\n-Father& iter,\n-2177 C* graph)\n-2178 : Father(iter), graph_(graph)\n-2179 {}\n-2180\n-2181 template\n-2182 template\n-2183 PropertiesGraph::EdgeIteratorT::EdgeIteratorT(const\n-Father& iter)\n-2184 : Father(iter)\n-2185 {}\n-2186\n-2187 template\n-2188 template\n-2189 template\n-2190 PropertiesGraph::EdgeIteratorT::EdgeIteratorT(const\n-EdgeIteratorT& other)\n-2191 : Father(other), graph_(other.graph_)\n-2192 {}\n-2193\n-2194\n-2195 template\n-2196 inline std::size_t PropertiesGraph::noEdges() const\n-2197 {\n-2198 return graph_.noEdges();\n-2199 }\n-2200\n-2201 template\n-2202 template\n-2203 inline typename std::conditional::type>::value,E&,const E&>::type\n-2204 PropertiesGraph::EdgeIteratorT::properties() const\n-2205 {\n-2206 return graph_->getEdgeProperties(Father::operator*());\n-2207 }\n-2208\n-2209 template\n-2210 inline typename PropertiesGraph::EdgeIterator\n-2211 PropertiesGraph::beginEdges(const VertexDescriptor& source)\n-2212 {\n-2213 return EdgeIterator(graph_.beginEdges(source), this);\n-2214 }\n-2215\n-2216 template\n-2217 inline typename PropertiesGraph::EdgeIterator\n-2218 PropertiesGraph::endEdges(const VertexDescriptor& source)\n-2219 {\n-2220 return EdgeIterator(graph_.endEdges(source));\n-2221 }\n-2222\n-2223 template\n-2224 typename PropertiesGraph::ConstEdgeIterator\n-2225 inline PropertiesGraph::beginEdges(const VertexDescriptor&\n-source) const\n-2226 {\n-2227 return ConstEdgeIterator(graph_.beginEdges(source), this);\n-2228 }\n-2229\n-2230 template\n-2231 typename PropertiesGraph::ConstEdgeIterator\n-2232 PropertiesGraph::endEdges(const VertexDescriptor& source)\n-const\n-2233 {\n-2234 return ConstEdgeIterator(graph_.endEdges(source));\n-2235 }\n-2236\n-2237 template\n-2238 template\n-2239 PropertiesGraph::VertexIteratorT\n-2240 ::VertexIteratorT(const Father& iter,\n-2241 C* graph)\n-2242 : Father(iter), graph_(graph)\n-2243 {}\n-2244\n-2245 template\n-2246 template\n-2247 PropertiesGraph::VertexIteratorT\n-2248 ::VertexIteratorT(const Father& iter)\n-2249 : Father(iter)\n-2250 {}\n-2251\n-2252 template\n-2253 template\n-2254 template\n-2255 PropertiesGraph::VertexIteratorT\n-2256 ::VertexIteratorT(const VertexIteratorT& other)\n-2257 : Father(other), graph_(other.graph_)\n-2258 {}\n-2259\n-2260 template\n-2261 template\n-2262 inline typename std::conditional::type>::value,\n-2263 V&, const V&>::type\n-2264 PropertiesGraph::VertexIteratorT::properties() const\n-2265 {\n-2266 return graph_->getVertexProperties(Father::operator*());\n-2267 }\n-2268\n-2269 template\n-2270 template\n-2271 inline typename PropertiesGraph::template EdgeIteratorT\n-2272 PropertiesGraph::VertexIteratorT::begin() const\n-2273 {\n-2274 return graph_->beginEdges(Father::operator*());\n-2275 }\n-2276\n-2277 template\n-2278 template\n-2279 inline typename PropertiesGraph::template EdgeIteratorT\n-2280 PropertiesGraph::VertexIteratorT::end() const\n-2281 {\n-2282 return graph_->endEdges(Father::operator*());\n-2283 }\n-2284\n-2285 template\n-2286 inline typename PropertiesGraph::VertexIterator\n-PropertiesGraph::begin()\n-2287 {\n-2288 return VertexIterator(graph_.begin(), this);\n-2289 }\n-2290\n-2291 template\n-2292 inline typename PropertiesGraph::VertexIterator\n-PropertiesGraph::end()\n-2293 {\n-2294 return VertexIterator(graph_.end());\n-2295 }\n-2296\n-2297\n-2298 template\n-2299 inline typename PropertiesGraph::ConstVertexIterator\n-PropertiesGraph::begin() const\n-2300 {\n-2301 return ConstVertexIterator(graph_.begin(), this);\n-2302 }\n-2303\n-2304 template\n-2305 inline typename PropertiesGraph::ConstVertexIterator\n-PropertiesGraph::end() const\n-2306 {\n-2307 return ConstVertexIterator(graph_.end());\n-2308 }\n-2309\n-2310 template\n-2311 inline V& PropertiesGraph::getVertexProperties(const\n-VertexDescriptor& vertex)\n-2312 {\n-2313 return vertexProperties_[vmap_[vertex]];\n-2314 }\n-2315\n-2316 template\n-2317 inline const V& PropertiesGraph::getVertexProperties(const\n-VertexDescriptor& vertex) const\n-2318 {\n-2319 return vertexProperties_[vmap_[vertex]];\n-2320 }\n-2321\n-2322 template\n-2323 inline E& PropertiesGraph::getEdgeProperties(const\n-EdgeDescriptor& edge)\n-2324 {\n-2325 return edgeProperties_[emap_[edge]];\n-2326 }\n-2327\n-2328 template\n-2329 inline const E& PropertiesGraph::getEdgeProperties(const\n-EdgeDescriptor& edge) const\n-2330 {\n-2331 return edgeProperties_[emap_[edge]];\n-2332 }\n-2333\n-2334 template\n-2335 inline E& PropertiesGraph::getEdgeProperties(const\n-VertexDescriptor& source,\n-2336 const VertexDescriptor& target)\n-2337 {\n-2338 return getEdgeProperties(graph_.findEdge(source,target));\n-2339 }\n-2340\n-2341 template\n-2342 inline const E& PropertiesGraph::getEdgeProperties(const\n-VertexDescriptor& source,\n-2343 const VertexDescriptor& target) const\n-2344 {\n-2345 return getEdgeProperties(graph_.findEdge(source,target));\n-2346 }\n-2347\n-2348 template\n-2349 inline const G& PropertiesGraph::graph() const\n-2350 {\n-2351 return graph_;\n-2352 }\n-2353\n-2354 template\n-2355 inline std::size_t PropertiesGraph::noVertices() const\n-2356 {\n-2357 return graph_.noVertices();\n-2358 }\n-2359\n-2360\n-2361 template\n-2362 inline typename PropertiesGraph::VertexDescriptor\n-PropertiesGraph::maxVertex() const\n-2363 {\n-2364 return graph_.maxVertex();\n-2365 }\n-2366\n-2367 template\n-2368 PropertiesGraph::PropertiesGraph(Graph& graph, const VM&\n-vmap, const EM& emap)\n-2369 : graph_(graph), vmap_(vmap), vertexProperties_(vmap_[graph_.maxVertex\n-()+1], V()),\n-2370 emap_(emap), edgeProperties_(graph_.noEdges(), E())\n-2371 {}\n-2372\n-2373 template\n-2374 inline int _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(const G& graph, const typename G::\n-VertexDescriptor& vertex,\n-2375 V& visitor)\n-2376 {\n-2377 typedef typename G::ConstEdgeIterator iterator;\n-2378 const iterator end = graph.endEdges(vertex);\n-2379 int noNeighbours=0;\n-2380 for(iterator edge = graph.beginEdges(vertex); edge != end; ++edge,\n-++noNeighbours)\n-2381 visitor(edge);\n-2382 return noNeighbours;\n-2383 }\n-2384\n-2385#endif // DOXYGEN\n-2386\n-2388 }\n-2389}\n-2390#endif\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs\n-int visitNeighbours(const G &graph, const typename G::VertexDescriptor &vertex,\n-V &visitor)\n-Visit all neighbour vertices of a vertex in a graph.\n-_\bs_\bt_\bd\n-STL namespace.\n+166 // TODO This could be accomplished with one communication, too!\n+167 redist._\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd(fine, fineRedist);\n+168 comm._\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl(fine,fine);\n+169 }\n+170\n+171 template\n+172 template\n+_\b1_\b7_\b3 inline void _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> >::\n+prolongateVector(\n+174 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+175 _\bV_\be_\bc_\bt_\bo_\br& coarse, _\bV_\be_\bc_\bt_\bo_\br& fine, T3 damp,\n+176 [[maybe_unused]] _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm)\n+177 {\n+178 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(aggregates, coarse,\n+fine, damp);\n+179 }\n+180 template\n+_\b1_\b8_\b1 inline void _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> >::\n+restrictVector(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n+182 _\bV_\be_\bc_\bt_\bo_\br& coarse, const _\bV_\be_\bc_\bt_\bo_\br& fine,\n+183 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& comm)\n+184 {\n+185 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bV_\b,_\bV_\b1_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(aggregates, coarse,\n+fine, _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n+186 // We need this here to avoid it in the smoothers on the coarse level.\n+187 // There (in the preconditioner d is const.\n+188 comm._\bp_\br_\bo_\bj_\be_\bc_\bt(coarse);\n+189 }\n+190#endif\n+192 } // namspace Amg\n+193} // namspace Dune\n+194#endif\n+_\bm_\ba_\bt_\br_\bi_\bx_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\b._\bh_\bh\n+Functionality for redistributing a sparse matrix.\n+_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n+Classes providing communication interfaces for overlapping Schwarz methods.\n+_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n+_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n+Provides classes for the Coloring process of AMG.\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n+const_iterator end() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:730\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-The (undirected) graph of a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-MatrixGraph(Matrix &matrix)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd\n-VertexIterator end()\n-Get an iterator over the vertices.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx\n-VertexDescriptor maxVertex() const\n-Get the maximal vertex descriptor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-M Matrix\n-The type of the matrix we are a graph for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-ConstVertexIterator begin() const\n-Get an iterator over the vertices.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-VertexIteratorT< const MatrixGraph< Matrix > > ConstVertexIterator\n-The constant vertex iterator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:308\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\b~_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-~MatrixGraph()\n-Destructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-std::ptrdiff_t EdgeDescriptor\n-The edge descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:80\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd_\bE_\bd_\bg_\be_\bs\n-ConstEdgeIterator endEdges(const VertexDescriptor &source) const\n-Get an iterator over the edges starting at a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-M::size_type VertexDescriptor\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n-const Matrix & matrix() const\n-Get the underlying matrix.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\bu_\bt_\ba_\bb_\bl_\be_\bM_\ba_\bt_\br_\bi_\bx\n-@ mutableMatrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:86\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs\n-ConstEdgeIterator beginEdges(const VertexDescriptor &source) const\n-Get an iterator over the edges starting at a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd\n-ConstVertexIterator end() const\n-Get an iterator over the vertices.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-EdgeIteratorT< const MatrixGraph< Matrix > > ConstEdgeIterator\n-The constant edge iterator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:298\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs\n-EdgeIterator beginEdges(const VertexDescriptor &source)\n-Get an iterator over the edges starting at a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n-std::size_t noVertices() const\n-Get the number of vertices in the graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bf_\bi_\bn_\bd_\bE_\bd_\bg_\be\n-EdgeDescriptor findEdge(const VertexDescriptor &source, const VertexDescriptor\n-&target) const\n-Find the descriptor of an edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bW_\be_\bi_\bg_\bh_\bt\n-M::block_type Weight\n-The type of the weights.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:66\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bM_\ba_\bt_\br_\bi_\bx\n-std::remove_const< M >::type MutableMatrix\n-The mutable type of the matrix we are a graph for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-EdgeIteratorT< MatrixGraph< Matrix > > EdgeIterator\n-The mutable edge iterator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:303\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-VertexIteratorT< MatrixGraph< Matrix > > VertexIterator\n-The mutable vertex iterator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:313\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd_\bE_\bd_\bg_\be_\bs\n-EdgeIterator endEdges(const VertexDescriptor &source)\n-Get an iterator over the edges starting at a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bE_\bd_\bg_\be_\bs\n-std::size_t noEdges() const\n-Get the number of edges in the graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n-Matrix & matrix()\n-Get the underlying matrix.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-VertexIterator begin()\n-Get an iterator over the vertices.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-Iterator over all edges starting from a vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be\n-std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::\n-value &&C::mutableMatrix, typenameM::block_type, consttypenameM::block_type >::\n-type WeightType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:156\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-EdgeIteratorT(const VertexDescriptor &source, const ColIterator &block, const\n-ColIterator &end, const EdgeDescriptor &edge)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be\n-@ isMutable\n-whether C is mutable.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:112\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bt_\ba_\br_\bg_\be_\bt\n-VertexDescriptor target() const\n-The index of the target vertex of the current edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n-EdgeIteratorT< C > & operator++()\n-preincrement operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n-bool operator!=(const EdgeIteratorT< const typename std::remove_const< C >::\n-type > &other) const\n-Inequality operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n-bool operator==(const EdgeIteratorT< const typename std::remove_const< C >::\n-type > &other) const\n-Equality operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-EdgeIteratorT(const EdgeIteratorT< C1 > &other)\n-Copy Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n-bool operator!=(const EdgeIteratorT< typename std::remove_const< C >::type >\n-&other) const\n-Inequality operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bw_\be_\bi_\bg_\bh_\bt\n-WeightType & weight() const\n-Access the edge weight.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bs_\bo_\bu_\br_\bc_\be\n-VertexDescriptor source() const\n-The index of the source vertex of the current edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-std::conditional< isMutable &&C::mutableMatrix, typenameMatrix::row_type::\n-Iterator, typenameMatrix::row_type::ConstIterator >::type ColIterator\n-The column iterator of the matrix we use.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-const std::remove_const< C >::type ConstContainer\n-The constant type of the container type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:105\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n-bool operator==(const EdgeIteratorT< typename std::remove_const< C >::type >\n-&other) const\n-Equality operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-EdgeIteratorT(const ColIterator &block)\n-Constructor for the end iterator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bW_\be_\bi_\bg_\bh_\bt\n-std::conditional< isMutable &&C::mutableMatrix, typenameM::block_type,\n-consttypenameM::block_type >::type Weight\n-The matrix block type we use as weights.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:127\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n-const EdgeDescriptor & operator*() const\n-Get the edge descriptor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n-const EdgeDescriptor * operator->() const\n-Get the edge descriptor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-std::remove_const< C >::type MutableContainer\n-The mutable type of the container type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:101\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-The vertex iterator type of the graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:209\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-EdgeIteratorT< C > begin() const\n-Get an iterator over all edges starting at the current vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n-const VertexDescriptor & operator*() const\n-Get the descriptor of the current vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bw_\be_\bi_\bg_\bh_\bt\n-WeightType & weight() const\n-Access the weight of the vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-VertexIteratorT(C *graph, const VertexDescriptor ¤t)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bW_\be_\bi_\bg_\bh_\bt_\bT_\by_\bp_\be\n-std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::\n-value &&C::mutableMatrix, typenameM::block_type, consttypenameM::block_type >::\n-type WeightType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:266\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-VertexIteratorT(const VertexIteratorT< MutableContainer > &other)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bM_\bu_\bt_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-std::remove_const< C >::type MutableContainer\n-The mutable type of the container type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:214\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n-bool operator!=(const VertexIteratorT< MutableContainer > &other) const\n-Inequality operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bi_\bs_\bM_\bu_\bt_\ba_\bb_\bl_\be\n-@ isMutable\n-whether C is mutable.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:225\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n-bool operator==(const VertexIteratorT< MutableContainer > &other) const\n-Equality operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-const std::remove_const< C >::type ConstContainer\n-The constant type of the container type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:218\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n-VertexIteratorT< C > & operator++()\n-Move to the next vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\be_\bn_\bd\n-EdgeIteratorT< C > end() const\n-Get an iterator over all edges starting at the current vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n-bool operator==(const VertexIteratorT< ConstContainer > &other) const\n-Equality operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n-bool operator!=(const VertexIteratorT< ConstContainer > &other) const\n-Inequality operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-VertexIteratorT(const VertexDescriptor ¤t)\n-Constructor for the end iterator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n-A subgraph of a graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:443\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bf_\bi_\bn_\bd_\bE_\bd_\bg_\be\n-EdgeDescriptor findEdge(const VertexDescriptor &source, const VertexDescriptor\n-&target) const\n-Find the descriptor of an edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx\n-VertexDescriptor maxVertex() const\n-Get the maximal vertex descriptor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n-EdgeIndexMap getEdgeIndexMap()\n-Get an edge index map for the graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bE_\bd_\bg_\be_\bs\n-std::size_t noEdges() const\n-Get the number of edges in the graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd_\bE_\bd_\bg_\be_\bs\n-ConstEdgeIterator endEdges(const VertexDescriptor &source) const\n-Get an iterator over the edges starting at a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd\n-ConstVertexIterator end() const\n-Get an iterator over the vertices.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs\n-ConstEdgeIterator beginEdges(const VertexDescriptor &source) const\n-Get an iterator over the edges starting at a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n-std::size_t noVertices() const\n-Get the number of vertices in the graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd\n-T Excluded\n-Random access container providing information about which vertices are\n-excluded.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:454\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\b~_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n-~SubGraph()\n-Destructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-EdgeIterator ConstEdgeIterator\n-The constant edge iterator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:618\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bG_\br_\ba_\bp_\bh\n-G Graph\n-The type of the graph we are a sub graph for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:448\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-VertexIterator ConstVertexIterator\n-The constant vertex iterator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:623\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n-SubGraph(const Graph &graph, const T &excluded)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-ConstVertexIterator begin() const\n-Get an iterator over the vertices.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-Graph::VertexDescriptor VertexDescriptor\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:459\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-VertexDescriptor * EdgeDescriptor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:461\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n-An index map for mapping the edges to indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:470\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n-EdgeIndexMap(const EdgeIndexMap &emap)\n-Protect copy construction.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:479\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-ReadablePropertyMapTag Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:472\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n-EdgeIndexMap(const EdgeDescriptor &firstEdge)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:474\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-std::size_t operator[](const EdgeDescriptor &edge) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:483\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-The edge iterator of the graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:505\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-const EdgeDescriptor & dereference() const\n-The descriptor of the current edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-EdgeIterator(const EdgeDescriptor &edge)\n-Constructor for the end iterator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const EdgeIterator &other) const\n-Equality operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be\n-EdgeIterator & advance(std::ptrdiff_t n)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n-EdgeIterator & increment()\n-Preincrement operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bt_\ba_\br_\bg_\be_\bt\n-const VertexDescriptor & target() const\n-The index of the target vertex of the current edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bo_\bu_\br_\bc_\be\n-const VertexDescriptor & source() const\n-The index of the source vertex of the current edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n-EdgeIterator & decrement()\n-Preincrement operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n-std::ptrdiff_t distanceTo(const EdgeIterator &other) const\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-EdgeIterator(const VertexDescriptor &source, const EdgeDescriptor &edge)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-The vertex iterator of the graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:560\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-VertexIterator(const VertexDescriptor ¤t)\n-Constructor for end iterator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n-VertexIterator & increment()\n-Preincrement operator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-EdgeIterator begin() const\n-Get an iterator over all edges starting at the current vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const VertexIterator &other) const\n-Equality iterator.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-VertexIterator(const SubGraph< G, T > *graph, const VertexDescriptor ¤t,\n-const VertexDescriptor &end)\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n-EdgeIterator end() const\n-Get an iterator over all edges starting at the current vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-const VertexDescriptor & dereference() const\n-Get the descriptor of the current vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-Attaches properties to the vertices of a graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:723\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\br_\ba_\bp_\bh\n-const Graph & graph() const\n-Get the graph the properties are attached to.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Graph::ConstEdgeIterator ConstEdgeIterator\n-The type of the constant edge iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:766\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-VertexProperties & getVertexProperties(const VertexDescriptor &vertex)\n-Get the properties associated with a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bE_\bd_\bg_\be_\bs\n-std::size_t noEdges() const\n-Get the number of edges in the graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-Graph::EdgeDescriptor EdgeDescriptor\n-The edge descritor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:738\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd_\bE_\bd_\bg_\be_\bs\n-ConstEdgeIterator endEdges(const VertexDescriptor &source) const\n-Get the mutable edge iterator over edges starting at a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-Graph::VertexDescriptor VertexDescriptor\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:733\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bG_\br_\ba_\bp_\bh\n-G Graph\n-The graph we attach properties to.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:728\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp\n-VM VertexMap\n-The type of the map for converting the VertexDescriptor to std::size_t.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:756\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\be_\bn_\bd_\bE_\bd_\bg_\be_\bs\n-EdgeIterator endEdges(const VertexDescriptor &source)\n-Get the mutable edge iterator over edges starting at a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs\n-EdgeIterator beginEdges(const VertexDescriptor &source)\n-Get the mutable edge iterator over edges starting at a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-VP VertexProperties\n-The type of the properties of the vertices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:743\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n-std::size_t noVertices() const\n-Get the number of vertices in the graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bb_\be_\bg_\bi_\bn_\bE_\bd_\bg_\be_\bs\n-ConstEdgeIterator beginEdges(const VertexDescriptor &source) const\n-Get the mutable edge iterator over edges starting at a vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx\n-VertexDescriptor maxVertex() const\n-Get the maximal vertex descriptor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Graph::EdgeIterator EdgeIterator\n-The type of the mutable edge iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:761\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:803\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::\n-value, typenameGraph::EdgeIterator, typenameGraph::ConstEdgeIterator >::type\n-EdgeIterator\n-The class of the edge iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:823\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-std::conditional< std::is_same< C, typenamestd::remove_const< C >::type >::\n-value, VertexProperties &, constVertexProperties & >::type properties() const\n-Get the properties of the current Vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\be_\bn_\bd\n-EdgeIterator end() const\n-Get an iterator over the edges starting from the current vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bF_\ba_\bt_\bh_\be_\br\n-std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::\n-value, typenameGraph::VertexIterator, typenameGraph::ConstVertexIterator >::\n-type Father\n-The father class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:814\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-EdgeIterator begin() const\n-Get an iterator over the edges starting from the current vertex.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-Attaches properties to the edges and vertices of a graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:978\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n-std::size_t noVertices() const\n-Get the number of vertices in the graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-Graph::EdgeDescriptor EdgeDescriptor\n-The edge descritor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:993\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-const EdgeProperties & getEdgeProperties(const VertexDescriptor &source, const\n-VertexDescriptor &target) const\n-Get the properties associated with a edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-const EdgeProperties & getEdgeProperties(const EdgeDescriptor &edge) const\n-Get the properties associated with a edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\br_\ba_\bp_\bh\n-const Graph & graph() const\n-Get the graph the properties are attached to.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx\n-VertexDescriptor maxVertex() const\n-Get the maximal vertex descriptor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bG_\br_\ba_\bp_\bh\n-G Graph\n-The graph we attach properties to.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:983\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bM_\ba_\bp\n-EM EdgeMap\n-The type of the map for converting the EdgeDescriptor to std::size_t.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1030\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bM_\ba_\bp\n-VM VertexMap\n-The type of the map for converting the VertexDescriptor to std::size_t.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1011\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-VP VertexProperties\n-The type of the properties of the vertices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:998\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bn_\bo_\bE_\bd_\bg_\be_\bs\n-std::size_t noEdges() const\n-Get the number of edges in the graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-EP EdgeProperties\n-The type of the properties of the edges;.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1016\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-EdgeProperties & getEdgeProperties(const VertexDescriptor &source, const\n-VertexDescriptor &target)\n-Get the properties associated with a edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-EdgeProperties & getEdgeProperties(const EdgeDescriptor &edge)\n-Get the properties associated with a edge.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br\n-Graph::VertexDescriptor VertexDescriptor\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:988\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-PropertiesGraph(Graph &graph, const VertexMap &vmap=VertexMap(), const EdgeMap\n-&emap=EdgeMap())\n-Constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1038\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bF_\ba_\bt_\bh_\be_\br\n-std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::\n-value, typenameGraph::EdgeIterator, typenameGraph::ConstEdgeIterator >::type\n-Father\n-The father class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1050\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1140\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bT_\b:_\b:_\bF_\ba_\bt_\bh_\be_\br\n-std::conditional< std::is_same< typenamestd::remove_const< C >::type, C >::\n-value, typenameGraph::VertexIterator, typenameGraph::ConstVertexIterator >::\n-type Father\n-The father class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1151\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-Wrapper to access the internal edge properties of a graph via operator[]()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1361\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-GraphVertexPropertiesSelector(G &g)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1380\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-VertexProperties & operator[](const Vertex &vertex) const\n-Get the properties associated to a vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh\n-G Graph\n-The type of the graph with internal properties.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1366\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-G::VertexProperties VertexProperties\n-The type of the vertex properties.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1370\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-GraphVertexPropertiesSelector()\n-Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1386\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-G::VertexDescriptor Vertex\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1374\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-Wrapper to access the internal vertex properties of a graph via operator[]()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1409\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-EdgeProperties & operator[](const Edge &edge) const\n-Get the properties associated to a vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1442\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-G::EdgeProperties EdgeProperties\n-The type of the vertex properties.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1418\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bE_\bd_\bg_\be\n-G::EdgeDescriptor Edge\n-The edge descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1422\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-GraphEdgePropertiesSelector()\n-Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1434\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh\n-G Graph\n-The type of the graph with internal properties.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1414\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-GraphEdgePropertiesSelector(G &g)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:1428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd\n+void redistributeBackward(D &from, const D &to) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+A class setting up standard communication for a two-valued attribute set with\n+owner/overlap/copy sema...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bp_\br_\bo_\bj_\be_\bc_\bt\n+void project(T1 &x) const\n+Set vector to zero at copy dofs.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:538\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl\n+void copyOwnerToAll(const T &source, T &dest) const\n+Communicate values from owner data points to all other data points.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:311\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n+Class providing information about the mapping of the vertices onto aggregates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b:_\b:_\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br\n+static void restrictVector(const AggregatesMap< Vertex > &aggregates, Vector\n+&coarse, const Vector &fine, T &comm)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br\n+static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector\n+&coarse, Vector &fine, T1 damp)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br\n+static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector\n+&coarse, Vector &fine, Vector &fineRedist, T1 damp, R &redistributor=R())\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+V1 Vertex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:35\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b:_\b:_\bV_\be_\bc_\bt_\bo_\br\n+V2 Vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt\n+RedistributeInformation< SequentialInformation > Redist\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+V Vertex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bV_\be_\bc_\bt_\bo_\br\n+V1 Vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:55\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br\n+static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector\n+&coarse, Vector &fine, Vector &fineRedist, T1 damp, const SequentialInformation\n+&comm=SequentialInformation(), const Redist &redist=Redist())\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br\n+static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector\n+&coarse, Vector &fine, T1 damp, const SequentialInformation\n+&comm=SequentialInformation())\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n+V Vertex\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt\n+RedistributeInformation< OwnerOverlapCopyCommunication< T1, T2 > > Redist\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:80\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\b _\bV_\b,_\b _\bV_\b1_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>_\b:_\b:_\bV_\be_\bc_\bt_\bo_\br\n+V1 Vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:79\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00113.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00113.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: galerkin.hh File Reference\n+dune-istl: amg.hh File Reference\n \n \n \n \n \n \n \n@@ -71,67 +71,72 @@\n \n
    \n \n \n+ \n \n
    \n \n-

    Provides a class for building the galerkin product based on a aggregation scheme. \n+

    The AMG preconditioner. \n More...

    \n-
    #include "aggregates.hh"
    \n-#include "pinfo.hh"
    \n-#include <dune/common/poolallocator.hh>
    \n-#include <dune/common/enumset.hh>
    \n-#include <set>
    \n-#include <limits>
    \n-#include <algorithm>
    \n+
    #include <memory>
    \n+#include <sstream>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/istl/paamg/smoother.hh>
    \n+#include <dune/istl/paamg/transfer.hh>
    \n+#include <dune/istl/paamg/matrixhierarchy.hh>
    \n+#include <dune/istl/solvers.hh>
    \n+#include <dune/istl/scalarproducts.hh>
    \n+#include <dune/istl/superlu.hh>
    \n+#include <dune/istl/umfpack.hh>
    \n+#include <dune/istl/solvertype.hh>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/scalarvectorview.hh>
    \n+#include <dune/common/scalarmatrixview.hh>
    \n+#include <dune/common/parametertree.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n \n-\n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n

    \n Classes

    struct  Dune::Amg::OverlapVertex< T >
    class  Dune::Amg::AMG< M, X, S, PI, A >
     Parallel algebraic multigrid based on agglomeration. More...
     
    class  Dune::Amg::SparsityBuilder< M >
     Functor for building the sparsity pattern of the matrix using examineConnectivity. More...
    struct  Dune::Amg::DirectSolverSelector< Matrix, Vector >
     
    class  Dune::Amg::BaseGalerkinProduct
    struct  Dune::Amg::DirectSolverSelector< Matrix, Vector >::Solver< M, SolverType >
     
    class  Dune::Amg::GalerkinProduct< T >
    struct  Dune::Amg::DirectSolverSelector< Matrix, Vector >::Solver< M, superlu >
     
    class  Dune::Amg::GalerkinProduct< SequentialInformation >
    struct  Dune::AMGCreator
     
    struct  Dune::Amg::BaseConnectivityConstructor
    struct  Dune::AMGCreator::isValidBlockType< class >
     
    class  Dune::Amg::BaseConnectivityConstructor::ConnectedBuilder< G, S, V >
     Visitor for identifying connected aggregates during a breadthFirstSearch. More...
     
    struct  Dune::Amg::ConnectivityConstructor< G, T >
     
    struct  Dune::Amg::ConnectivityConstructor< G, SequentialInformation >
     
    struct  Dune::Amg::DirichletBoundarySetter< T >
     
    struct  Dune::Amg::DirichletBoundarySetter< SequentialInformation >
    struct  Dune::AMGCreator::isValidBlockType< FieldMatrix< T, n, m > >
     
    \n \n \n \n \n \n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+\n+\n+\n

    \n+Functions

     Dune::DUNE_REGISTER_PRECONDITIONER ("amg", AMGCreator())
     
    \n

    Detailed Description

    \n-

    Provides a class for building the galerkin product based on a aggregation scheme.

    \n+

    The AMG preconditioner.

    \n
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,60 +1,60 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-galerkin.hh File Reference\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+amg.hh File Reference\n _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n \u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Provides a class for building the galerkin product based on a aggregation\n-scheme. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n-#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n-#include \n-#include \n-#include \n-#include \n-#include \n+The AMG preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+#include \n+#include \n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\b _\bT_\b _\b>\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bS_\b,_\b _\bP_\bI_\b,_\b _\bA_\b _\b>\n+\u00a0 Parallel algebraic multigrid based on agglomeration. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\b _\bM_\b _\b>\n-\u00a0 Functor for building the sparsity pattern of the matrix using\n- examineConnectivity. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\b>\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\b>_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,\n+ _\bS_\bo_\bl_\bv_\be_\br_\bT_\by_\bp_\be_\b _\b>\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bT_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\b>_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bs_\bu_\bp_\be_\br_\bl_\bu\n+ _\b>\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be_\b<_\b _\bc_\bl_\ba_\bs_\bs_\b _\b>\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\b _\bG_\b,_\b _\bS_\b,_\b _\bV_\b _\b>\n-\u00a0 Visitor for identifying connected aggregates during a\n- breadthFirstSearch. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\b _\bG_\b,_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\b _\bG_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br_\b<_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br_\b<_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"amg\", _\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br())\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides a class for building the galerkin product based on a aggregation\n-scheme.\n+The AMG preconditioner.\n Author\n Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00113_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00113_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: galerkin.hh Source File\n+dune-istl: amg.hh Source File\n \n \n \n \n \n \n \n@@ -74,738 +74,1278 @@\n \n
    \n \n
    \n
    \n
    \n-
    galerkin.hh
    \n+
    amg.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_GALERKIN_HH
    \n-
    6#define DUNE_GALERKIN_HH
    \n+
    5#ifndef DUNE_AMG_AMG_HH
    \n+
    6#define DUNE_AMG_AMG_HH
    \n
    7
    \n-
    8#include "aggregates.hh"
    \n-
    9#include "pinfo.hh"
    \n-
    10#include <dune/common/poolallocator.hh>
    \n-
    11#include <dune/common/enumset.hh>
    \n-
    12#include <set>
    \n-
    13#include <limits>
    \n-
    14#include <algorithm>
    \n-
    15
    \n-
    16namespace Dune
    \n-
    17{
    \n-
    18 namespace Amg
    \n-
    19 {
    \n-
    31 template<class T>
    \n-
    \n-\n-
    33 {
    \n-
    37 typedef T Aggregate;
    \n-
    38
    \n-
    42 typedef T Vertex;
    \n-
    43
    \n-\n+
    8#include <memory>
    \n+
    9#include <sstream>
    \n+
    10#include <dune/common/exceptions.hh>
    \n+\n+\n+\n+
    14#include <dune/istl/solvers.hh>
    \n+\n+
    16#include <dune/istl/superlu.hh>
    \n+
    17#include <dune/istl/umfpack.hh>
    \n+\n+
    19#include <dune/common/typetraits.hh>
    \n+
    20#include <dune/common/exceptions.hh>
    \n+
    21#include <dune/common/scalarvectorview.hh>
    \n+
    22#include <dune/common/scalarmatrixview.hh>
    \n+
    23#include <dune/common/parametertree.hh>
    \n+
    24
    \n+
    25namespace Dune
    \n+
    26{
    \n+
    27 namespace Amg
    \n+
    28 {
    \n+
    46 template<class M, class X, class S, class P, class K, class A>
    \n+
    47 class KAMG;
    \n
    48
    \n-\n-
    53 };
    \n-
    \n-
    54
    \n-
    55
    \n-
    56
    \n-
    61 template<class M>
    \n-
    \n-\n-
    63 {
    \n-
    64 public:
    \n-
    70 SparsityBuilder(M& matrix);
    \n-
    71
    \n-
    72 void insert(const typename M::size_type& index);
    \n-
    73
    \n-
    74 void operator++();
    \n-
    75
    \n-
    76 std::size_t minRowSize();
    \n-
    77
    \n-
    78 std::size_t maxRowSize();
    \n-
    79
    \n-
    80 std::size_t sumRowSize();
    \n-
    \n-
    81 std::size_t index()
    \n-
    82 {
    \n-
    83 return row_.index();
    \n-
    84 }
    \n-
    \n-
    85 private:
    \n-
    87 typename M::CreateIterator row_;
    \n-
    89 std::size_t minRowSize_;
    \n-
    91 std::size_t maxRowSize_;
    \n-
    92 std::size_t sumRowSize_;
    \n-
    93#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    94 bool diagonalInserted;
    \n-
    95#endif
    \n-
    96 };
    \n-
    \n-
    97
    \n-
    \n-\n-
    99 {
    \n-
    100 public:
    \n-
    109 template<class M, class V, class I, class O>
    \n-
    110 void calculate(const M& fine, const AggregatesMap<V>& aggregates, M& coarse,
    \n-
    111 const I& pinfo, const O& copy);
    \n-
    112
    \n-
    113 };
    \n-
    \n-
    114
    \n-
    115 template<class T>
    \n-
    \n-\n-
    117 : public BaseGalerkinProduct
    \n-
    118 {
    \n-
    119 public:
    \n-\n-
    121
    \n-
    131 template<class G, class V, class Set>
    \n-
    132 typename G::MutableMatrix* build(G& fineGraph, V& visitedMap,
    \n-
    133 const ParallelInformation& pinfo,
    \n-\n-
    135 const typename G::Matrix::size_type& size,
    \n-
    136 const Set& copy);
    \n-
    137 private:
    \n-
    138
    \n-
    145 template<class G, class I, class Set>
    \n-\n-
    147 buildOverlapVertices(const G& graph, const I& pinfo,
    \n-\n-
    149 const Set& overlap,
    \n-
    150 std::size_t& overlapCount);
    \n-
    151
    \n-
    152 template<class A>
    \n-
    153 struct OVLess
    \n-
    154 {
    \n-
    \n-\n-
    156 {
    \n-
    157 return *o1.aggregate < *o2.aggregate;
    \n-
    158 }
    \n-
    \n-
    159 };
    \n-
    160 };
    \n-
    \n-
    161
    \n-
    162 template<>
    \n-
    \n-\n-
    164 : public BaseGalerkinProduct
    \n-
    165 {
    \n-
    166 public:
    \n-
    176 template<class G, class V, class Set>
    \n-
    177 typename G::MutableMatrix* build(G& fineGraph, V& visitedMap,
    \n-
    178 const SequentialInformation& pinfo,
    \n-\n-
    180 const typename G::Matrix::size_type& size,
    \n-
    181 const Set& copy);
    \n-
    182 };
    \n-
    \n-
    183
    \n-
    \n-\n-
    185 {
    \n-
    186 template<class R, class G, class V>
    \n-
    187 static void constructOverlapConnectivity(R& row, G& graph, V& visitedMap,
    \n-\n-\n-\n-
    191
    \n-
    195 template<class R, class G, class V>
    \n-
    196 static void constructNonOverlapConnectivity(R& row, G& graph, V& visitedMap,
    \n-\n-
    198 const typename G::VertexDescriptor& seed);
    \n-
    199
    \n-
    200
    \n-
    204 template<class G, class S, class V>
    \n-
    \n-\n-
    206 {
    \n-
    207 public:
    \n-
    211 typedef G Graph;
    \n-
    215 typedef typename Graph::ConstEdgeIterator ConstEdgeIterator;
    \n-
    216
    \n-
    220 typedef S Set;
    \n-
    221
    \n-
    225 typedef V VisitedMap;
    \n-
    226
    \n-
    230 typedef typename Graph::VertexDescriptor Vertex;
    \n+
    49 template<class T>
    \n+
    50 class KAmgTwoGrid;
    \n+
    51
    \n+
    62 template<class M, class X, class S, class PI=SequentialInformation,
    \n+
    63 class A=std::allocator<X> >
    \n+
    \n+
    64 class AMG : public Preconditioner<X,X>
    \n+
    65 {
    \n+
    66 template<class M1, class X1, class S1, class P1, class K1, class A1>
    \n+
    67 friend class KAMG;
    \n+
    68
    \n+
    69 friend class KAmgTwoGrid<AMG>;
    \n+
    70
    \n+
    71 public:
    \n+
    73 typedef M Operator;
    \n+\n+\n+\n+
    85
    \n+
    87 typedef X Domain;
    \n+
    89 typedef X Range;
    \n+\n+
    97 typedef S Smoother;
    \n+
    98
    \n+\n+
    101
    \n+
    \n+
    111 AMG(OperatorHierarchy& matrices, CoarseSolver& coarseSolver,
    \n+
    112 const SmootherArgs& smootherArgs, const Parameters& parms);
    \n+
    113
    \n+
    125 template<class C>
    \n+
    \n+
    126 AMG(const Operator& fineOperator, const C& criterion,
    \n+
    127 const SmootherArgs& smootherArgs=SmootherArgs(),
    \n+\n+
    129
    \n+
    \n+
    180 AMG(std::shared_ptr<const Operator> fineOperator, const ParameterTree& configuration, const ParallelInformation& pinfo=ParallelInformation());
    \n+
    181
    \n+
    \n+
    185 AMG(const AMG& amg);
    \n+
    186
    \n+
    \n+
    188 void pre(Domain& x, Range& b);
    \n+
    189
    \n+
    \n+
    191 void apply(Domain& v, const Range& d);
    \n+
    192
    \n+
    \n+\n+
    195 {
    \n+
    196 return category_;
    \n+
    197 }
    \n+
    \n+
    198
    \n+
    \n+
    200 void post(Domain& x);
    \n+
    201
    \n+
    206 template<class A1>
    \n+
    \n+
    207 void getCoarsestAggregateNumbers(std::vector<std::size_t,A1>& cont);
    \n+
    208
    \n+
    \n+
    209 std::size_t levels();
    \n+
    210
    \n+
    \n+
    211 std::size_t maxlevels();
    \n+
    212
    \n+
    \n+\n+
    222 {
    \n+
    223 matrices_->recalculateGalerkin(NegateSet<typename PI::OwnerSet>());
    \n+
    224 }
    \n+
    \n+
    225
    \n+
    \n+\n
    231
    \n-
    239 ConnectedBuilder(const AggregatesMap<Vertex>& aggregates, Graph& graph,
    \n-
    240 VisitedMap& visitedMap, Set& connected);
    \n-
    241
    \n-
    246 void operator()(const ConstEdgeIterator& edge);
    \n-
    247
    \n-
    248 private:
    \n-
    252 const AggregatesMap<Vertex>& aggregates_;
    \n-
    253
    \n-
    254 Graph& graph_;
    \n-
    255
    \n-
    259 VisitedMap& visitedMap_;
    \n-
    260
    \n-
    264 Set& connected_;
    \n-
    265 };
    \n-
    \n-
    266
    \n-
    267 };
    \n-
    \n-
    268
    \n-
    269 template<class G, class T>
    \n-
    \n-\n-
    271 {
    \n-
    272 typedef typename G::VertexDescriptor Vertex;
    \n-
    273
    \n-
    274 template<class V, class O, class R>
    \n-
    275 static void examine(G& graph,
    \n-
    276 V& visitedMap,
    \n-
    277 const T& pinfo,
    \n-
    278 const AggregatesMap<Vertex>& aggregates,
    \n-
    279 const O& overlap,
    \n-
    280 const OverlapVertex<Vertex>* overlapVertices,
    \n-
    281 const OverlapVertex<Vertex>* overlapEnd,
    \n-
    282 R& row);
    \n-
    283 };
    \n-
    \n-
    284
    \n-
    285 template<class G>
    \n-
    \n-\n-
    287 {
    \n-
    288 typedef typename G::VertexDescriptor Vertex;
    \n-
    289
    \n-
    290 template<class V, class R>
    \n-
    291 static void examine(G& graph,
    \n-
    292 V& visitedMap,
    \n-
    293 const SequentialInformation& pinfo,
    \n-
    294 const AggregatesMap<Vertex>& aggregates,
    \n-
    295 R& row);
    \n-
    296 };
    \n-
    \n-
    297
    \n-
    298 template<class T>
    \n-
    \n-\n-
    300 {
    \n-
    301 template<class M, class O>
    \n-
    302 static void set(M& coarse, const T& pinfo, const O& copy);
    \n-
    303 };
    \n-
    \n-
    304
    \n-
    305 template<>
    \n-
    \n-\n-
    307 {
    \n-
    308 template<class M, class O>
    \n-
    309 static void set(M& coarse, const SequentialInformation& pinfo, const O& copy);
    \n-
    310 };
    \n-
    \n-
    311
    \n-
    312 template<class R, class G, class V>
    \n-
    \n-\n-\n-
    315 const typename G::VertexDescriptor& seed)
    \n-
    316 {
    \n-
    317 assert(row.index()==aggregates[seed]);
    \n-
    318 row.insert(aggregates[seed]);
    \n-
    319 ConnectedBuilder<G,R,V> conBuilder(aggregates, graph, visitedMap, row);
    \n-
    320 typedef typename G::VertexDescriptor Vertex;
    \n-
    321 typedef std::allocator<Vertex> Allocator;
    \n-
    322 typedef SLList<Vertex,Allocator> VertexList;
    \n-
    323 typedef typename AggregatesMap<Vertex>::DummyEdgeVisitor DummyVisitor;
    \n-
    324 VertexList vlist;
    \n-
    325 DummyVisitor dummy;
    \n-
    326 aggregates.template breadthFirstSearch<true,false>(seed,aggregates[seed], graph, vlist, dummy,
    \n-
    327 conBuilder, visitedMap);
    \n-
    328 }
    \n-
    \n-
    329
    \n-
    330 template<class R, class G, class V>
    \n-
    \n-\n-\n-\n-\n-
    335 {
    \n-
    336 ConnectedBuilder<G,R,V> conBuilder(aggregates, graph, visitedMap, row);
    \n-
    337 const typename G::VertexDescriptor aggregate=*seed->aggregate;
    \n-
    338
    \n-
    339 if (row.index()==*seed->aggregate) {
    \n-
    340 while(seed != overlapEnd && aggregate == *seed->aggregate) {
    \n-
    341 row.insert(*seed->aggregate);
    \n-
    342 // Walk over all neighbours and add them to the connected array.
    \n-
    343 visitNeighbours(graph, seed->vertex, conBuilder);
    \n-
    344 // Mark vertex as visited
    \n-
    345 put(visitedMap, seed->vertex, true);
    \n-
    346 ++seed;
    \n-
    347 }
    \n-
    348 }
    \n-
    349 }
    \n-
    \n-
    350
    \n-
    351 template<class G, class S, class V>
    \n-
    \n-\n-
    353 Graph& graph, VisitedMap& visitedMap,
    \n-
    354 Set& connected)
    \n-
    355 : aggregates_(aggregates), graph_(graph), visitedMap_(visitedMap), connected_(connected)
    \n-
    356 {}
    \n-
    \n-
    357
    \n-
    358 template<class G, class S, class V>
    \n-
    \n-\n-
    360 {
    \n-
    361 const Vertex& vertex = aggregates_[edge.target()];
    \n-\n-\n-
    364 connected_.insert(vertex);
    \n-
    365 }
    \n-
    \n-
    366
    \n-
    367 template<class T>
    \n-
    368 template<class G, class I, class Set>
    \n-\n-
    370 GalerkinProduct<T>::buildOverlapVertices(const G& graph, const I& pinfo,
    \n-\n-
    372 const Set& overlap,
    \n-
    373 std::size_t& overlapCount)
    \n-
    374 {
    \n-
    375 // count the overlap vertices.
    \n-
    376 typedef typename G::ConstVertexIterator ConstIterator;
    \n-
    377 typedef typename I::GlobalLookupIndexSet GlobalLookup;
    \n-
    378 typedef typename GlobalLookup::IndexPair IndexPair;
    \n-
    379
    \n-
    380 const ConstIterator end = graph.end();
    \n-
    381 overlapCount = 0;
    \n-
    382
    \n-
    383 const GlobalLookup& lookup=pinfo.globalLookup();
    \n-
    384
    \n-
    385 for(ConstIterator vertex=graph.begin(); vertex != end; ++vertex) {
    \n-
    386 const IndexPair* pair = lookup.pair(*vertex);
    \n-
    387
    \n-
    388 if(pair!=0 && overlap.contains(pair->local().attribute()))
    \n-
    389 ++overlapCount;
    \n-
    390 }
    \n-
    391 // Allocate space
    \n-
    392 typedef typename G::VertexDescriptor Vertex;
    \n-
    393
    \n-
    394 OverlapVertex<Vertex>* overlapVertices = new OverlapVertex<Vertex>[overlapCount=0 ? 1 : overlapCount];
    \n-
    395 if(overlapCount==0)
    \n-
    396 return overlapVertices;
    \n-
    397
    \n-
    398 // Initialize them
    \n-
    399 overlapCount=0;
    \n-
    400 for(ConstIterator vertex=graph.begin(); vertex != end; ++vertex) {
    \n-
    401 const IndexPair* pair = lookup.pair(*vertex);
    \n-
    402
    \n-
    403 if(pair!=0 && overlap.contains(pair->local().attribute())) {
    \n-
    404 overlapVertices[overlapCount].aggregate = &aggregates[pair->local()];
    \n-
    405 overlapVertices[overlapCount].vertex = pair->local();
    \n-
    406 ++overlapCount;
    \n-
    407 }
    \n-
    408 }
    \n-
    409
    \n-
    410 dverb << overlapCount<<" overlap vertices"<<std::endl;
    \n-
    411
    \n-
    412 std::sort(overlapVertices, overlapVertices+overlapCount, OVLess<Vertex>());
    \n-
    413 // due to the sorting the isolated aggregates (to be skipped) are at the end.
    \n-
    414
    \n-
    415 return overlapVertices;
    \n-
    416 }
    \n-
    417
    \n-
    418 template<class G, class T>
    \n-
    419 template<class V, class O, class R>
    \n-
    \n-\n-
    421 V& visitedMap,
    \n-
    422 const T& pinfo,
    \n-
    423 const AggregatesMap<Vertex>& aggregates,
    \n-
    424 const O& overlap,
    \n-
    425 const OverlapVertex<Vertex>* overlapVertices,
    \n-
    426 const OverlapVertex<Vertex>* overlapEnd,
    \n-
    427 R& row)
    \n-
    428 {
    \n-
    429 typedef typename T::GlobalLookupIndexSet GlobalLookup;
    \n-
    430 const GlobalLookup& lookup = pinfo.globalLookup();
    \n-
    431
    \n-
    432 typedef typename G::VertexIterator VertexIterator;
    \n-
    433
    \n-
    434 VertexIterator vend=graph.end();
    \n-
    435
    \n-
    436#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    437 std::set<Vertex> examined;
    \n-
    438#endif
    \n-
    439
    \n-
    440 // The aggregates owned by the process have lower local indices
    \n-
    441 // then those not owned. We process them in the first pass.
    \n-
    442 // They represent the rows 0, 1, ..., n of the coarse matrix
    \n-
    443 for(VertexIterator vertex = graph.begin(); vertex != vend; ++vertex)
    \n-
    444 if(!get(visitedMap, *vertex)) {
    \n-
    445 // In the first pass we only process owner nodes
    \n-
    446 typedef typename GlobalLookup::IndexPair IndexPair;
    \n-
    447 const IndexPair* pair = lookup.pair(*vertex);
    \n-
    448 if(pair==0 || !overlap.contains(pair->local().attribute())) {
    \n-
    449#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    450 assert(examined.find(aggregates[*vertex])==examined.end());
    \n-
    451 examined.insert(aggregates[*vertex]);
    \n-
    452#endif
    \n-
    453 constructNonOverlapConnectivity(row, graph, visitedMap, aggregates, *vertex);
    \n-
    454
    \n-
    455 // only needed for ALU
    \n-
    456 // (ghosts with same global id as owners on the same process)
    \n-
    457 if (SolverCategory::category(pinfo) == static_cast<int>(SolverCategory::nonoverlapping)) {
    \n-
    458 if(overlapVertices != overlapEnd) {
    \n-
    459 if(*overlapVertices->aggregate!=AggregatesMap<Vertex>::ISOLATED) {
    \n-
    460 constructOverlapConnectivity(row, graph, visitedMap, aggregates, overlapVertices, overlapEnd);
    \n-
    461 }
    \n-
    462 else{
    \n-
    463 ++overlapVertices;
    \n-
    464 }
    \n-
    465 }
    \n-
    466 }
    \n-
    467 ++row;
    \n-
    468 }
    \n-
    469 }
    \n-
    470
    \n-
    471 dvverb<<"constructed "<<row.index()<<" non-overlapping rows"<<std::endl;
    \n-
    472
    \n-
    473 // Now come the aggregates not owned by use.
    \n-
    474 // They represent the rows n+1, ..., N
    \n-
    475 while(overlapVertices != overlapEnd)
    \n-
    476 if(*overlapVertices->aggregate!=AggregatesMap<Vertex>::ISOLATED) {
    \n-
    477
    \n-
    478#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    479 typedef typename GlobalLookup::IndexPair IndexPair;
    \n-
    480 const IndexPair* pair = lookup.pair(overlapVertices->vertex);
    \n-
    481 assert(pair!=0 && overlap.contains(pair->local().attribute()));
    \n-
    482 assert(examined.find(aggregates[overlapVertices->vertex])==examined.end());
    \n-
    483 examined.insert(aggregates[overlapVertices->vertex]);
    \n-
    484#endif
    \n-
    485 constructOverlapConnectivity(row, graph, visitedMap, aggregates, overlapVertices, overlapEnd);
    \n-
    486 ++row;
    \n-
    487 }else{
    \n-
    488 ++overlapVertices;
    \n-
    489 }
    \n-
    490 }
    \n-
    \n-
    491
    \n-
    492 template<class G>
    \n-
    493 template<class V, class R>
    \n-
    \n-\n-
    495 V& visitedMap,
    \n-
    496 [[maybe_unused]] const SequentialInformation& pinfo,
    \n-
    497 const AggregatesMap<Vertex>& aggregates,
    \n-
    498 R& row)
    \n-
    499 {
    \n-
    500 typedef typename G::VertexIterator VertexIterator;
    \n-
    501
    \n-
    502 VertexIterator vend=graph.end();
    \n-
    503 for(VertexIterator vertex = graph.begin(); vertex != vend; ++vertex) {
    \n-
    504 if(!get(visitedMap, *vertex)) {
    \n-
    505 constructNonOverlapConnectivity(row, graph, visitedMap, aggregates, *vertex);
    \n-
    506 ++row;
    \n-
    507 }
    \n-
    508 }
    \n-
    509
    \n-
    510 }
    \n-
    \n-
    511
    \n-
    512 template<class M>
    \n-
    \n-\n-
    514 : row_(matrix.createbegin()),
    \n-
    515 minRowSize_(std::numeric_limits<std::size_t>::max()),
    \n-
    516 maxRowSize_(0), sumRowSize_(0)
    \n-
    517 {
    \n-
    518#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    519 diagonalInserted = false;
    \n-
    520#endif
    \n-
    521 }
    \n-
    \n-
    522 template<class M>
    \n-
    \n-\n-
    524 {
    \n-
    525 return maxRowSize_;
    \n-
    526 }
    \n-
    \n-
    527 template<class M>
    \n-
    \n-\n-
    529 {
    \n-
    530 return minRowSize_;
    \n-
    531 }
    \n-
    \n-
    532
    \n-
    533 template<class M>
    \n-
    \n-\n-
    535 {
    \n-
    536 return sumRowSize_;
    \n-
    537 }
    \n-
    \n-
    538 template<class M>
    \n-
    \n-\n-
    540 {
    \n-
    541 sumRowSize_ += row_.size();
    \n-
    542 minRowSize_=std::min(minRowSize_, row_.size());
    \n-
    543 maxRowSize_=std::max(maxRowSize_, row_.size());
    \n-
    544 ++row_;
    \n-
    545#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    546 assert(diagonalInserted);
    \n-
    547 diagonalInserted = false;
    \n-
    548#endif
    \n-
    549 }
    \n-
    \n-
    550
    \n-
    551 template<class M>
    \n-
    \n-
    552 void SparsityBuilder<M>::insert(const typename M::size_type& index)
    \n-
    553 {
    \n-
    554 row_.insert(index);
    \n-
    555#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    556 diagonalInserted = diagonalInserted || row_.index()==index;
    \n-
    557#endif
    \n-
    558 }
    \n-
    \n-
    559
    \n-
    560 template<class T>
    \n-
    561 template<class G, class V, class Set>
    \n-
    562 typename G::MutableMatrix*
    \n-
    \n-
    563 GalerkinProduct<T>::build(G& fineGraph, V& visitedMap,
    \n-
    564 const ParallelInformation& pinfo,
    \n-\n-
    566 const typename G::Matrix::size_type& size,
    \n-
    567 const Set& overlap)
    \n-
    568 {
    \n-\n-
    570
    \n-
    571 std::size_t count;
    \n-
    572
    \n-
    573 const OverlapVertex* overlapVertices = buildOverlapVertices(fineGraph,
    \n-
    574 pinfo,
    \n-
    575 aggregates,
    \n-
    576 overlap,
    \n-
    577 count);
    \n-
    578 typedef typename G::MutableMatrix M;
    \n-
    579 M* coarseMatrix = new M(size, size, M::row_wise);
    \n-
    580
    \n-
    581 // Reset the visited flags of all vertices.
    \n-
    582 // As the isolated nodes will be skipped we simply mark them as visited
    \n-
    583
    \n-
    584 typedef typename G::VertexIterator Vertex;
    \n-
    585 Vertex vend = fineGraph.end();
    \n-
    586 for(Vertex vertex = fineGraph.begin(); vertex != vend; ++vertex) {
    \n-\n-
    588 put(visitedMap, *vertex, aggregates[*vertex]==AggregatesMap<typename G::VertexDescriptor>::ISOLATED);
    \n-
    589 }
    \n+
    232 private:
    \n+
    233 /*
    \n+
    234 * @brief Helper function to create hierarchies with parameter tree.
    \n+
    235 *
    \n+
    236 * Will create the coarsen criterion with the norm and create the
    \n+
    237 * Hierarchies
    \n+
    238 * \\tparam Norm Type of the norm to use.
    \n+
    239 */
    \n+
    240 template<class Norm>
    \n+
    241 void createCriterionAndHierarchies(std::shared_ptr<const Operator> matrixptr,
    \n+
    242 const PI& pinfo, const Norm&,
    \n+
    243 const ParameterTree& configuration,
    \n+
    244 std::true_type compiles = std::true_type());
    \n+
    245 template<class Norm>
    \n+
    246 void createCriterionAndHierarchies(std::shared_ptr<const Operator> matrixptr,
    \n+
    247 const PI& pinfo, const Norm&,
    \n+
    248 const ParameterTree& configuration,
    \n+
    249 std::false_type);
    \n+
    254 template<class C>
    \n+
    255 void createHierarchies(C& criterion, std::shared_ptr<const Operator> matrixptr,
    \n+
    256 const PI& pinfo, const ParameterTree& configuration);
    \n+
    263 template<class C>
    \n+
    264 void createHierarchies(C& criterion,
    \n+
    265 const std::shared_ptr<const Operator>& matrixptr,
    \n+
    266 const PI& pinfo);
    \n+
    273 struct LevelContext
    \n+
    274 {
    \n+\n+\n+
    283 typename OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix;
    \n+\n+
    291 typename OperatorHierarchy::RedistributeInfoList::const_iterator redist;
    \n+
    295 typename OperatorHierarchy::AggregatesMapList::const_iterator aggregates;
    \n+\n+\n+\n+
    311 std::size_t level;
    \n+
    312 };
    \n+
    313
    \n+
    314
    \n+
    319 void mgc(LevelContext& levelContext);
    \n+
    320
    \n+
    321 void additiveMgc();
    \n+
    322
    \n+
    329 void moveToFineLevel(LevelContext& levelContext,bool processedFineLevel);
    \n+
    330
    \n+
    335 bool moveToCoarseLevel(LevelContext& levelContext);
    \n+
    336
    \n+
    341 void initIteratorsWithFineLevel(LevelContext& levelContext);
    \n+
    342
    \n+
    344 std::shared_ptr<OperatorHierarchy> matrices_;
    \n+
    346 SmootherArgs smootherArgs_;
    \n+
    348 std::shared_ptr<Hierarchy<Smoother,A> > smoothers_;
    \n+
    350 std::shared_ptr<CoarseSolver> solver_;
    \n+
    352 std::shared_ptr<Hierarchy<Range,A>> rhs_;
    \n+
    354 std::shared_ptr<Hierarchy<Domain,A>> lhs_;
    \n+
    356 std::shared_ptr<Hierarchy<Domain,A>> update_;
    \n+\n+
    360 std::shared_ptr<ScalarProduct> scalarProduct_;
    \n+
    362 std::size_t gamma_;
    \n+
    364 std::size_t preSteps_;
    \n+
    366 std::size_t postSteps_;
    \n+
    367 bool buildHierarchy_;
    \n+
    368 bool additive;
    \n+
    369 bool coarsesolverconverged;
    \n+
    370 std::shared_ptr<Smoother> coarseSmoother_;
    \n+
    372 SolverCategory::Category category_;
    \n+
    374 std::size_t verbosity_;
    \n+
    375
    \n+
    376 struct ToLower
    \n+
    377 {
    \n+
    \n+
    378 std::string operator()(const std::string& str)
    \n+
    379 {
    \n+
    380 std::stringstream retval;
    \n+
    381 std::ostream_iterator<char> out(retval);
    \n+
    382 std::transform(str.begin(), str.end(), out,
    \n+
    383 [](char c){
    \n+
    384 return std::tolower(c, std::locale::classic());
    \n+
    385 });
    \n+
    386 return retval.str();
    \n+
    387 }
    \n+
    \n+
    388 };
    \n+
    389 };
    \n+
    390
    \n+
    391 template<class M, class X, class S, class PI, class A>
    \n+
    \n+
    392 inline AMG<M,X,S,PI,A>::AMG(const AMG& amg)
    \n+
    393 : matrices_(amg.matrices_), smootherArgs_(amg.smootherArgs_),
    \n+
    394 smoothers_(amg.smoothers_), solver_(amg.solver_),
    \n+
    395 rhs_(), lhs_(), update_(),
    \n+
    396 scalarProduct_(amg.scalarProduct_), gamma_(amg.gamma_),
    \n+
    397 preSteps_(amg.preSteps_), postSteps_(amg.postSteps_),
    \n+
    398 buildHierarchy_(amg.buildHierarchy_),
    \n+
    399 additive(amg.additive), coarsesolverconverged(amg.coarsesolverconverged),
    \n+
    400 coarseSmoother_(amg.coarseSmoother_),
    \n+
    401 category_(amg.category_),
    \n+
    402 verbosity_(amg.verbosity_)
    \n+
    403 {}
    \n+
    \n+
    404
    \n+
    405 template<class M, class X, class S, class PI, class A>
    \n+
    \n+\n+
    407 const SmootherArgs& smootherArgs,
    \n+
    408 const Parameters& parms)
    \n+
    409 : matrices_(stackobject_to_shared_ptr(matrices)), smootherArgs_(smootherArgs),
    \n+
    410 smoothers_(new Hierarchy<Smoother,A>), solver_(&coarseSolver),
    \n+
    411 rhs_(), lhs_(), update_(), scalarProduct_(0),
    \n+
    412 gamma_(parms.getGamma()), preSteps_(parms.getNoPreSmoothSteps()),
    \n+
    413 postSteps_(parms.getNoPostSmoothSteps()), buildHierarchy_(false),
    \n+
    414 additive(parms.getAdditive()), coarsesolverconverged(true),
    \n+
    415 coarseSmoother_(),
    \n+
    416// #warning should category be retrieved from matrices?
    \n+
    417 category_(SolverCategory::category(*smoothers_->coarsest())),
    \n+
    418 verbosity_(parms.debugLevel())
    \n+
    419 {
    \n+
    420 assert(matrices_->isBuilt());
    \n+
    421
    \n+
    422 // build the necessary smoother hierarchies
    \n+
    423 matrices_->coarsenSmoother(*smoothers_, smootherArgs_);
    \n+
    424 }
    \n+
    \n+
    425
    \n+
    426 template<class M, class X, class S, class PI, class A>
    \n+
    427 template<class C>
    \n+
    \n+\n+
    429 const C& criterion,
    \n+
    430 const SmootherArgs& smootherArgs,
    \n+
    431 const PI& pinfo)
    \n+
    432 : smootherArgs_(smootherArgs),
    \n+
    433 smoothers_(new Hierarchy<Smoother,A>), solver_(),
    \n+
    434 rhs_(), lhs_(), update_(), scalarProduct_(),
    \n+
    435 gamma_(criterion.getGamma()), preSteps_(criterion.getNoPreSmoothSteps()),
    \n+
    436 postSteps_(criterion.getNoPostSmoothSteps()), buildHierarchy_(true),
    \n+
    437 additive(criterion.getAdditive()), coarsesolverconverged(true),
    \n+
    438 coarseSmoother_(),
    \n+
    439 category_(SolverCategory::category(pinfo)),
    \n+
    440 verbosity_(criterion.debugLevel())
    \n+
    441 {
    \n+\n+
    443 DUNE_THROW(InvalidSolverCategory, "Matrix and Communication must have the same SolverCategory!");
    \n+
    444 // TODO: reestablish compile time checks.
    \n+
    445 //static_assert(static_cast<int>(PI::category)==static_cast<int>(S::category),
    \n+
    446 // "Matrix and Solver must match in terms of category!");
    \n+
    447 auto matrixptr = stackobject_to_shared_ptr(matrix);
    \n+
    448 createHierarchies(criterion, matrixptr, pinfo);
    \n+
    449 }
    \n+
    \n+
    450
    \n+
    451 template<class M, class X, class S, class PI, class A>
    \n+
    \n+
    452 AMG<M,X,S,PI,A>::AMG(std::shared_ptr<const Operator> matrixptr,
    \n+
    453 const ParameterTree& configuration,
    \n+
    454 const ParallelInformation& pinfo) :
    \n+
    455 smoothers_(new Hierarchy<Smoother,A>),
    \n+
    456 solver_(), rhs_(), lhs_(), update_(), scalarProduct_(), buildHierarchy_(true),
    \n+
    457 coarsesolverconverged(true), coarseSmoother_(),
    \n+
    458 category_(SolverCategory::category(pinfo))
    \n+
    459 {
    \n+
    460
    \n+
    461 if (configuration.hasKey ("smootherIterations"))
    \n+
    462 smootherArgs_.iterations = configuration.get<int>("smootherIterations");
    \n+
    463
    \n+
    464 if (configuration.hasKey ("smootherRelaxation"))
    \n+
    465 smootherArgs_.relaxationFactor = configuration.get<typename SmootherArgs::RelaxationFactor>("smootherRelaxation");
    \n+
    466
    \n+
    467 auto normName = ToLower()(configuration.get("strengthMeasure", "diagonal"));
    \n+
    468 auto index = configuration.get<int>("diagonalRowIndex", 0);
    \n+
    469
    \n+
    470 if ( normName == "diagonal")
    \n+
    471 {
    \n+
    472 using field_type = typename M::field_type;
    \n+
    473 using real_type = typename FieldTraits<field_type>::real_type;
    \n+
    474 std::is_convertible<field_type, real_type> compiles;
    \n+
    475
    \n+
    476 switch (index)
    \n+
    477 {
    \n+
    478 case 0:
    \n+
    479 createCriterionAndHierarchies(matrixptr, pinfo, Diagonal<0>(), configuration, compiles);
    \n+
    480 break;
    \n+
    481 case 1:
    \n+
    482 createCriterionAndHierarchies(matrixptr, pinfo, Diagonal<1>(), configuration, compiles);
    \n+
    483 break;
    \n+
    484 case 2:
    \n+
    485 createCriterionAndHierarchies(matrixptr, pinfo, Diagonal<2>(), configuration, compiles);
    \n+
    486 break;
    \n+
    487 case 3:
    \n+
    488 createCriterionAndHierarchies(matrixptr, pinfo, Diagonal<3>(), configuration, compiles);
    \n+
    489 break;
    \n+
    490 case 4:
    \n+
    491 createCriterionAndHierarchies(matrixptr, pinfo, Diagonal<4>(), configuration, compiles);
    \n+
    492 break;
    \n+
    493 default:
    \n+
    494 DUNE_THROW(InvalidStateException, "Currently strengthIndex>4 is not supported.");
    \n+
    495 }
    \n+
    496 }
    \n+
    497 else if (normName == "rowsum")
    \n+
    498 createCriterionAndHierarchies(matrixptr, pinfo, RowSum(), configuration);
    \n+
    499 else if (normName == "frobenius")
    \n+
    500 createCriterionAndHierarchies(matrixptr, pinfo, FrobeniusNorm(), configuration);
    \n+
    501 else if (normName == "one")
    \n+
    502 createCriterionAndHierarchies(matrixptr, pinfo, AlwaysOneNorm(), configuration);
    \n+
    503 else
    \n+
    504 DUNE_THROW(Dune::NotImplemented, "Wrong config file: strengthMeasure "<<normName<<" is not supported by AMG");
    \n+
    505 }
    \n+
    \n+
    506
    \n+
    507 template<class M, class X, class S, class PI, class A>
    \n+
    508 template<class Norm>
    \n+
    509 void AMG<M,X,S,PI,A>::createCriterionAndHierarchies(std::shared_ptr<const Operator> matrixptr, const PI& pinfo, const Norm&, const ParameterTree& configuration, std::false_type)
    \n+
    510 {
    \n+
    511 DUNE_THROW(InvalidStateException, "Strength of connection measure does not support this type ("
    \n+
    512 << className<typename M::field_type>() << ") as it is lacking a conversion to"
    \n+
    513 << className<typename FieldTraits<typename M::field_type>::real_type>() << ".");
    \n+
    514 }
    \n+
    515
    \n+
    516 template<class M, class X, class S, class PI, class A>
    \n+
    517 template<class Norm>
    \n+
    518 void AMG<M,X,S,PI,A>::createCriterionAndHierarchies(std::shared_ptr<const Operator> matrixptr, const PI& pinfo, const Norm&, const ParameterTree& configuration, std::true_type)
    \n+
    519 {
    \n+
    520 if (configuration.get<bool>("criterionSymmetric", true))
    \n+
    521 {
    \n+
    522 using Criterion = Dune::Amg::CoarsenCriterion<
    \n+\n+
    524 Criterion criterion;
    \n+
    525 createHierarchies(criterion, matrixptr, pinfo, configuration);
    \n+
    526 }
    \n+
    527 else
    \n+
    528 {
    \n+
    529 using Criterion = Dune::Amg::CoarsenCriterion<
    \n+\n+
    531 Criterion criterion;
    \n+
    532 createHierarchies(criterion, matrixptr, pinfo, configuration);
    \n+
    533 }
    \n+
    534 }
    \n+
    535
    \n+
    536 template<class M, class X, class S, class PI, class A>
    \n+
    537 template<class C>
    \n+
    538 void AMG<M,X,S,PI,A>::createHierarchies(C& criterion, std::shared_ptr<const Operator> matrixptr, const PI& pinfo, const ParameterTree& configuration)
    \n+
    539 {
    \n+
    540 if (configuration.hasKey ("maxLevel"))
    \n+
    541 criterion.setMaxLevel(configuration.get<int>("maxLevel"));
    \n+
    542
    \n+
    543 if (configuration.hasKey ("minCoarseningRate"))
    \n+
    544 criterion.setMinCoarsenRate(configuration.get<int>("minCoarseningRate"));
    \n+
    545
    \n+
    546 if (configuration.hasKey ("coarsenTarget"))
    \n+
    547 criterion.setCoarsenTarget (configuration.get<int>("coarsenTarget"));
    \n+
    548
    \n+
    549 if (configuration.hasKey ("accumulationMode"))
    \n+
    550 {
    \n+
    551 std::string mode = ToLower()(configuration.get<std::string>("accumulationMode"));
    \n+
    552 if ( mode == "none")
    \n+
    553 criterion.setAccumulate(AccumulationMode::noAccu);
    \n+
    554 else if ( mode == "atonce" )
    \n+
    555 criterion.setAccumulate(AccumulationMode::atOnceAccu);
    \n+
    556 else if ( mode == "successive")
    \n+
    557 criterion.setCoarsenTarget (AccumulationMode::successiveAccu);
    \n+
    558 else
    \n+
    559 DUNE_THROW(InvalidSolverFactoryConfiguration, "Parameter accumulationMode does not allow value "
    \n+
    560 << mode <<".");
    \n+
    561 }
    \n+
    562
    \n+
    563 if (configuration.hasKey ("prolongationDampingFactor"))
    \n+
    564 criterion.setProlongationDampingFactor (configuration.get<double>("prolongationDampingFactor"));
    \n+
    565
    \n+
    566 if (configuration.hasKey("defaultAggregationSizeMode"))
    \n+
    567 {
    \n+
    568 auto mode = ToLower()(configuration.get<std::string>("defaultAggregationSizeMode"));
    \n+
    569 auto dim = configuration.get<std::size_t>("defaultAggregationDimension");
    \n+
    570 std::size_t maxDistance = 2;
    \n+
    571 if (configuration.hasKey("MaxAggregateDistance"))
    \n+
    572 maxDistance = configuration.get<std::size_t>("maxAggregateDistance");
    \n+
    573 if (mode == "isotropic")
    \n+
    574 criterion.setDefaultValuesIsotropic(dim, maxDistance);
    \n+
    575 else if(mode == "anisotropic")
    \n+
    576 criterion.setDefaultValuesAnisotropic(dim, maxDistance);
    \n+
    577 else
    \n+
    578 DUNE_THROW(InvalidSolverFactoryConfiguration, "Parameter accumulationMode does not allow value "
    \n+
    579 << mode <<".");
    \n+
    580 }
    \n+
    581
    \n+
    582 if (configuration.hasKey("maxAggregateDistance"))
    \n+
    583 criterion.setMaxDistance(configuration.get<std::size_t>("maxAggregateDistance"));
    \n+
    584
    \n+
    585 if (configuration.hasKey("minAggregateSize"))
    \n+
    586 criterion.setMinAggregateSize(configuration.get<std::size_t>("minAggregateSize"));
    \n+
    587
    \n+
    588 if (configuration.hasKey("maxAggregateSize"))
    \n+
    589 criterion.setMaxAggregateSize(configuration.get<std::size_t>("maxAggregateSize"));
    \n
    590
    \n-
    591 typedef typename G::MutableMatrix M;
    \n-
    592 SparsityBuilder<M> sparsityBuilder(*coarseMatrix);
    \n+
    591 if (configuration.hasKey("maxAggregateConnectivity"))
    \n+
    592 criterion.setMaxConnectivity(configuration.get<std::size_t>("maxAggregateConnectivity"));
    \n
    593
    \n-
    594 ConnectivityConstructor<G,T>::examine(fineGraph, visitedMap, pinfo,
    \n-
    595 aggregates, overlap,
    \n-
    596 overlapVertices,
    \n-
    597 overlapVertices+count,
    \n-
    598 sparsityBuilder);
    \n+
    594 if (configuration.hasKey ("alpha"))
    \n+
    595 criterion.setAlpha (configuration.get<double> ("alpha"));
    \n+
    596
    \n+
    597 if (configuration.hasKey ("beta"))
    \n+
    598 criterion.setBeta (configuration.get<double> ("beta"));
    \n
    599
    \n-
    600 dinfo<<pinfo.communicator().rank()<<": Matrix ("<<coarseMatrix->N()<<"x"<<coarseMatrix->M()<<" row: min="<<sparsityBuilder.minRowSize()<<" max="
    \n-
    601 <<sparsityBuilder.maxRowSize()<<" avg="
    \n-
    602 <<static_cast<double>(sparsityBuilder.sumRowSize())/coarseMatrix->N()
    \n-
    603 <<std::endl;
    \n-
    604
    \n-
    605 delete[] overlapVertices;
    \n-
    606
    \n-
    607 return coarseMatrix;
    \n-
    608 }
    \n-
    \n-
    609
    \n-
    610 template<class G, class V, class Set>
    \n-
    611 typename G::MutableMatrix*
    \n-
    \n-\n-
    613 const SequentialInformation& pinfo,
    \n-\n-
    615 const typename G::Matrix::size_type& size,
    \n-
    616 [[maybe_unused]] const Set& overlap)
    \n-
    617 {
    \n-
    618 typedef typename G::MutableMatrix M;
    \n-
    619 M* coarseMatrix = new M(size, size, M::row_wise);
    \n-
    620
    \n-
    621 // Reset the visited flags of all vertices.
    \n-
    622 // As the isolated nodes will be skipped we simply mark them as visited
    \n-
    623
    \n-
    624 typedef typename G::VertexIterator Vertex;
    \n-
    625 Vertex vend = fineGraph.end();
    \n-
    626 for(Vertex vertex = fineGraph.begin(); vertex != vend; ++vertex) {
    \n-\n-
    628 put(visitedMap, *vertex, aggregates[*vertex]==AggregatesMap<typename G::VertexDescriptor>::ISOLATED);
    \n-
    629 }
    \n-
    630
    \n-
    631 SparsityBuilder<M> sparsityBuilder(*coarseMatrix);
    \n-
    632
    \n-\n-
    634 aggregates, sparsityBuilder);
    \n-
    635 dinfo<<"Matrix row: min="<<sparsityBuilder.minRowSize()<<" max="
    \n-
    636 <<sparsityBuilder.maxRowSize()<<" average="
    \n-
    637 <<static_cast<double>(sparsityBuilder.sumRowSize())/coarseMatrix->N()<<std::endl;
    \n-
    638 return coarseMatrix;
    \n-
    639 }
    \n-
    \n-
    640
    \n-
    641 template<class M, class V, class P, class O>
    \n-
    \n-
    642 void BaseGalerkinProduct::calculate(const M& fine, const AggregatesMap<V>& aggregates, M& coarse,
    \n-
    643 const P& pinfo, [[maybe_unused]] const O& copy)
    \n-
    644 {
    \n-
    645 coarse = static_cast<typename M::field_type>(0);
    \n-
    646
    \n-
    647 typedef typename M::ConstIterator RowIterator;
    \n-
    648 RowIterator endRow = fine.end();
    \n-
    649
    \n-
    650 for(RowIterator row = fine.begin(); row != endRow; ++row)
    \n-
    651 if(aggregates[row.index()] != AggregatesMap<V>::ISOLATED) {
    \n-
    652 assert(aggregates[row.index()]!=AggregatesMap<V>::UNAGGREGATED);
    \n-
    653 typedef typename M::ConstColIterator ColIterator;
    \n-
    654 ColIterator endCol = row->end();
    \n-
    655
    \n-
    656 for(ColIterator col = row->begin(); col != endCol; ++col)
    \n-
    657 if(aggregates[col.index()] != AggregatesMap<V>::ISOLATED) {
    \n-
    658 assert(aggregates[row.index()]!=AggregatesMap<V>::UNAGGREGATED);
    \n-
    659 coarse[aggregates[row.index()]][aggregates[col.index()]]+=*col;
    \n-
    660 }
    \n-
    661 }
    \n-
    662
    \n-
    663 // get the right diagonal matrix values on copy lines from owner processes
    \n-
    664 typedef typename M::block_type BlockType;
    \n-
    665 std::vector<BlockType> rowsize(coarse.N(),BlockType(0));
    \n-
    666 for (RowIterator row = coarse.begin(); row != coarse.end(); ++row)
    \n-
    667 rowsize[row.index()]=coarse[row.index()][row.index()];
    \n-
    668 pinfo.copyOwnerToAll(rowsize,rowsize);
    \n-
    669 for (RowIterator row = coarse.begin(); row != coarse.end(); ++row)
    \n-
    670 coarse[row.index()][row.index()] = rowsize[row.index()];
    \n-
    671
    \n-
    672 // don't set dirichlet boundaries for copy lines to make novlp case work,
    \n-
    673 // the preconditioner yields slightly different results now.
    \n-
    674
    \n-
    675 // Set the dirichlet border
    \n-
    676 //DirichletBoundarySetter<P>::template set<M>(coarse, pinfo, copy);
    \n-
    677
    \n-
    678 }
    \n-
    \n-
    679
    \n-
    680 template<class T>
    \n-
    681 template<class M, class O>
    \n-
    \n-
    682 void DirichletBoundarySetter<T>::set(M& coarse, const T& pinfo, const O& copy)
    \n-
    683 {
    \n-
    684 typedef typename T::ParallelIndexSet::const_iterator ConstIterator;
    \n-
    685 ConstIterator end = pinfo.indexSet().end();
    \n-
    686 typedef typename M::block_type Block;
    \n-
    687 Block identity=Block(0.0);
    \n-
    688 for(typename Block::RowIterator b=identity.begin(); b != identity.end(); ++b)
    \n-
    689 b->operator[](b.index())=1.0;
    \n-
    690
    \n-
    691 for(ConstIterator index = pinfo.indexSet().begin();
    \n-
    692 index != end; ++index) {
    \n-
    693 if(copy.contains(index->local().attribute())) {
    \n-
    694 typedef typename M::ColIterator ColIterator;
    \n-
    695 typedef typename M::row_type Row;
    \n-
    696 Row row = coarse[index->local()];
    \n-
    697 ColIterator cend = row.find(index->local());
    \n-
    698 ColIterator col = row.begin();
    \n-
    699 for(; col != cend; ++col)
    \n-
    700 *col = 0;
    \n-
    701
    \n-
    702 cend = row.end();
    \n-
    703
    \n-
    704 assert(col != cend); // There should be a diagonal entry
    \n-
    705 *col = identity;
    \n-
    706
    \n-
    707 for(++col; col != cend; ++col)
    \n-
    708 *col = 0;
    \n-
    709 }
    \n-
    710 }
    \n-
    711 }
    \n-
    \n-
    712
    \n-
    713 template<class M, class O>
    \n-
    \n-\n-
    715 const SequentialInformation& pinfo,
    \n-
    716 const O& overlap)
    \n-
    717 {}
    \n-
    \n-
    718
    \n-
    719 } // namespace Amg
    \n-
    720} // namespace Dune
    \n-
    721#endif
    \n-
    Provides classes for the Coloring process of AMG.
    \n-\n+
    600 if (configuration.hasKey ("gamma"))
    \n+
    601 criterion.setGamma (configuration.get<std::size_t> ("gamma"));
    \n+
    602 gamma_ = criterion.getGamma();
    \n+
    603
    \n+
    604 if (configuration.hasKey ("additive"))
    \n+
    605 criterion.setAdditive (configuration.get<bool>("additive"));
    \n+
    606 additive = criterion.getAdditive();
    \n+
    607
    \n+
    608 if (configuration.hasKey ("preSteps"))
    \n+
    609 criterion.setNoPreSmoothSteps (configuration.get<std::size_t> ("preSteps"));
    \n+
    610 preSteps_ = criterion.getNoPreSmoothSteps ();
    \n+
    611
    \n+
    612 if (configuration.hasKey ("postSteps"))
    \n+
    613 criterion.setNoPostSmoothSteps (configuration.get<std::size_t> ("postSteps"));
    \n+
    614 postSteps_ = criterion.getNoPostSmoothSteps ();
    \n+
    615
    \n+
    616 verbosity_ = configuration.get("verbosity", 0);
    \n+
    617 criterion.setDebugLevel (verbosity_);
    \n+
    618
    \n+
    619 createHierarchies(criterion, matrixptr, pinfo);
    \n+
    620 }
    \n+
    621
    \n+
    622 template <class Matrix,
    \n+
    623 class Vector>
    \n+
    \n+\n+
    625 {
    \n+
    626 typedef typename Matrix :: field_type field_type;
    \n+\n+
    628
    \n+
    629 static constexpr SolverType solver =
    \n+
    630#if DISABLE_AMG_DIRECTSOLVER
    \n+
    631 none;
    \n+
    632#elif HAVE_SUITESPARSE_UMFPACK
    \n+\n+
    634#elif HAVE_SUPERLU
    \n+
    635 superlu ;
    \n+
    636#else
    \n+
    637 none;
    \n+
    638#endif
    \n+
    639
    \n+
    640 template <class M, SolverType>
    \n+
    \n+
    641 struct Solver
    \n+
    642 {
    \n+\n+
    \n+
    644 static type* create(const M& mat, bool verbose, bool reusevector )
    \n+
    645 {
    \n+
    646 DUNE_THROW(NotImplemented,"DirectSolver not selected");
    \n+
    647 return nullptr;
    \n+
    648 }
    \n+
    \n+
    649 static std::string name () { return "None"; }
    \n+
    650 };
    \n+
    \n+
    651#if HAVE_SUITESPARSE_UMFPACK
    \n+
    652 template <class M>
    \n+
    653 struct Solver< M, umfpack >
    \n+
    654 {
    \n+
    655 typedef UMFPack< M > type;
    \n+
    656 static type* create(const M& mat, bool verbose, bool reusevector )
    \n+
    657 {
    \n+
    658 return new type(mat, verbose, reusevector );
    \n+
    659 }
    \n+
    660 static std::string name () { return "UMFPack"; }
    \n+
    661 };
    \n+
    662#endif
    \n+
    663#if HAVE_SUPERLU
    \n+
    664 template <class M>
    \n+
    \n+
    665 struct Solver< M, superlu >
    \n+
    666 {
    \n+\n+
    \n+
    668 static type* create(const M& mat, bool verbose, bool reusevector )
    \n+
    669 {
    \n+
    670 return new type(mat, verbose, reusevector );
    \n+
    671 }
    \n+
    \n+
    672 static std::string name () { return "SuperLU"; }
    \n+
    673 };
    \n+
    \n+
    674#endif
    \n+
    675
    \n+
    676 // define direct solver type to be used
    \n+\n+
    678 typedef typename SelectedSolver :: type DirectSolver;
    \n+
    679 static constexpr bool isDirectSolver = solver != none;
    \n+
    680 static std::string name() { return SelectedSolver :: name (); }
    \n+
    \n+
    681 static DirectSolver* create(const Matrix& mat, bool verbose, bool reusevector )
    \n+
    682 {
    \n+
    683 return SelectedSolver :: create( mat, verbose, reusevector );
    \n+
    684 }
    \n+
    \n+
    685 };
    \n+
    \n+
    686
    \n+
    687 template<class M, class X, class S, class PI, class A>
    \n+
    688 template<class C>
    \n+
    689 void AMG<M,X,S,PI,A>::createHierarchies(C& criterion,
    \n+
    690 const std::shared_ptr<const Operator>& matrixptr,
    \n+
    691 const PI& pinfo)
    \n+
    692 {
    \n+
    693 Timer watch;
    \n+
    694 matrices_ = std::make_shared<OperatorHierarchy>(
    \n+
    695 std::const_pointer_cast<Operator>(matrixptr),
    \n+
    696 stackobject_to_shared_ptr(const_cast<PI&>(pinfo)));
    \n+
    697
    \n+
    698 matrices_->template build<NegateSet<typename PI::OwnerSet> >(criterion);
    \n+
    699
    \n+
    700 // build the necessary smoother hierarchies
    \n+
    701 matrices_->coarsenSmoother(*smoothers_, smootherArgs_);
    \n+
    702
    \n+
    703 // test whether we should solve on the coarse level. That is the case if we
    \n+
    704 // have that level and if there was a redistribution on this level then our
    \n+
    705 // communicator has to be valid (size()>0) as the smoother might try to communicate
    \n+
    706 // in the constructor.
    \n+
    707 if(buildHierarchy_ && matrices_->levels()==matrices_->maxlevels()
    \n+
    708 && ( ! matrices_->redistributeInformation().back().isSetup() ||
    \n+
    709 matrices_->parallelInformation().coarsest().getRedistributed().communicator().size() ) )
    \n+
    710 {
    \n+
    711 // We have the carsest level. Create the coarse Solver
    \n+
    712 SmootherArgs sargs(smootherArgs_);
    \n+
    713 sargs.iterations = 1;
    \n+
    714
    \n+\n+
    716 cargs.setArgs(sargs);
    \n+
    717 if(matrices_->redistributeInformation().back().isSetup()) {
    \n+
    718 // Solve on the redistributed partitioning
    \n+
    719 cargs.setMatrix(matrices_->matrices().coarsest().getRedistributed().getmat());
    \n+
    720 cargs.setComm(matrices_->parallelInformation().coarsest().getRedistributed());
    \n+
    721 }else{
    \n+
    722 cargs.setMatrix(matrices_->matrices().coarsest()->getmat());
    \n+
    723 cargs.setComm(*matrices_->parallelInformation().coarsest());
    \n+
    724 }
    \n+
    725
    \n+
    726 coarseSmoother_ = ConstructionTraits<Smoother>::construct(cargs);
    \n+
    727 scalarProduct_ = createScalarProduct<X>(cargs.getComm(),category());
    \n+
    728
    \n+
    729 typedef DirectSolverSelector< typename M::matrix_type, X > SolverSelector;
    \n+
    730
    \n+
    731 // Use superlu if we are purely sequential or with only one processor on the coarsest level.
    \n+
    732 if( SolverSelector::isDirectSolver &&
    \n+
    733 (std::is_same<ParallelInformation,SequentialInformation>::value // sequential mode
    \n+
    734 || matrices_->parallelInformation().coarsest()->communicator().size()==1 //parallel mode and only one processor
    \n+
    735 || (matrices_->parallelInformation().coarsest().isRedistributed()
    \n+
    736 && matrices_->parallelInformation().coarsest().getRedistributed().communicator().size()==1
    \n+
    737 && matrices_->parallelInformation().coarsest().getRedistributed().communicator().size()>0) )
    \n+
    738 )
    \n+
    739 { // redistribute and 1 proc
    \n+
    740 if(matrices_->parallelInformation().coarsest().isRedistributed())
    \n+
    741 {
    \n+
    742 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)
    \n+
    743 {
    \n+
    744 // We are still participating on this level
    \n+
    745 solver_.reset(SolverSelector::create(matrices_->matrices().coarsest().getRedistributed().getmat(), false, false));
    \n+
    746 }
    \n+
    747 else
    \n+
    748 solver_.reset();
    \n+
    749 }
    \n+
    750 else
    \n+
    751 {
    \n+
    752 solver_.reset(SolverSelector::create(matrices_->matrices().coarsest()->getmat(), false, false));
    \n+
    753 }
    \n+
    754 if(verbosity_>0 && matrices_->parallelInformation().coarsest()->communicator().rank()==0)
    \n+
    755 std::cout<< "Using a direct coarse solver (" << SolverSelector::name() << ")" << std::endl;
    \n+
    756 }
    \n+
    757 else
    \n+
    758 {
    \n+
    759 if(matrices_->parallelInformation().coarsest().isRedistributed())
    \n+
    760 {
    \n+
    761 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)
    \n+
    762 // We are still participating on this level
    \n+
    763
    \n+
    764 // we have to allocate these types using the rebound allocator
    \n+
    765 // in order to ensure that we fulfill the alignment requirements
    \n+
    766 solver_.reset(new BiCGSTABSolver<X>(const_cast<M&>(matrices_->matrices().coarsest().getRedistributed()),
    \n+
    767 *scalarProduct_,
    \n+
    768 *coarseSmoother_, 1E-2, 1000, 0));
    \n+
    769 else
    \n+
    770 solver_.reset();
    \n+
    771 }else
    \n+
    772 {
    \n+
    773 solver_.reset(new BiCGSTABSolver<X>(const_cast<M&>(*matrices_->matrices().coarsest()),
    \n+
    774 *scalarProduct_,
    \n+
    775 *coarseSmoother_, 1E-2, 1000, 0));
    \n+
    776 // // we have to allocate these types using the rebound allocator
    \n+
    777 // // in order to ensure that we fulfill the alignment requirements
    \n+
    778 // using Alloc = typename std::allocator_traits<A>::template rebind_alloc<BiCGSTABSolver<X>>;
    \n+
    779 // Alloc alloc;
    \n+
    780 // auto p = alloc.allocate(1);
    \n+
    781 // std::allocator_traits<Alloc>::construct(alloc, p,
    \n+
    782 // const_cast<M&>(*matrices_->matrices().coarsest()),
    \n+
    783 // *scalarProduct_,
    \n+
    784 // *coarseSmoother_, 1E-2, 1000, 0);
    \n+
    785 // solver_.reset(p,[](BiCGSTABSolver<X>* p){
    \n+
    786 // Alloc alloc;
    \n+
    787 // std::allocator_traits<Alloc>::destroy(alloc, p);
    \n+
    788 // alloc.deallocate(p,1);
    \n+
    789 // });
    \n+
    790 }
    \n+
    791 }
    \n+
    792 }
    \n+
    793
    \n+
    794 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator().rank()==0)
    \n+
    795 std::cout<<"Building hierarchy of "<<matrices_->maxlevels()<<" levels "
    \n+
    796 <<"(including coarse solver) took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n+
    797 }
    \n+
    798
    \n+
    799
    \n+
    800 template<class M, class X, class S, class PI, class A>
    \n+
    \n+\n+
    802 {
    \n+
    803 // Detect Matrix rows where all offdiagonal entries are
    \n+
    804 // zero and set x such that A_dd*x_d=b_d
    \n+
    805 // Thus users can be more careless when setting up their linear
    \n+
    806 // systems.
    \n+
    807 typedef typename M::matrix_type Matrix;
    \n+
    808 typedef typename Matrix::ConstRowIterator RowIter;
    \n+
    809 typedef typename Matrix::ConstColIterator ColIter;
    \n+
    810 typedef typename Matrix::block_type Block;
    \n+
    811 Block zero;
    \n+
    812 zero=typename Matrix::field_type();
    \n+
    813
    \n+
    814 const Matrix& mat=matrices_->matrices().finest()->getmat();
    \n+
    815 for(RowIter row=mat.begin(); row!=mat.end(); ++row) {
    \n+
    816 bool isDirichlet = true;
    \n+
    817 bool hasDiagonal = false;
    \n+
    818 Block diagonal{};
    \n+
    819 for(ColIter col=row->begin(); col!=row->end(); ++col) {
    \n+
    820 if(row.index()==col.index()) {
    \n+
    821 diagonal = *col;
    \n+
    822 hasDiagonal = true;
    \n+
    823 }else{
    \n+
    824 if(*col!=zero)
    \n+
    825 isDirichlet = false;
    \n+
    826 }
    \n+
    827 }
    \n+
    828 if(isDirichlet && hasDiagonal)
    \n+
    829 {
    \n+
    830 auto&& xEntry = Impl::asVector(x[row.index()]);
    \n+
    831 auto&& bEntry = Impl::asVector(b[row.index()]);
    \n+
    832 Impl::asMatrix(diagonal).solve(xEntry, bEntry);
    \n+
    833 }
    \n+
    834 }
    \n+
    835
    \n+
    836 if(smoothers_->levels()>0)
    \n+
    837 smoothers_->finest()->pre(x,b);
    \n+
    838 else
    \n+
    839 // No smoother to make x consistent! Do it by hand
    \n+
    840 matrices_->parallelInformation().coarsest()->copyOwnerToAll(x,x);
    \n+
    841 rhs_ = std::make_shared<Hierarchy<Range,A>>(std::make_shared<Range>(b));
    \n+
    842 lhs_ = std::make_shared<Hierarchy<Domain,A>>(std::make_shared<Domain>(x));
    \n+
    843 update_ = std::make_shared<Hierarchy<Domain,A>>(std::make_shared<Domain>(x));
    \n+
    844 matrices_->coarsenVector(*rhs_);
    \n+
    845 matrices_->coarsenVector(*lhs_);
    \n+
    846 matrices_->coarsenVector(*update_);
    \n+
    847
    \n+
    848 // Preprocess all smoothers
    \n+
    849 typedef typename Hierarchy<Smoother,A>::Iterator Iterator;
    \n+
    850 typedef typename Hierarchy<Range,A>::Iterator RIterator;
    \n+
    851 typedef typename Hierarchy<Domain,A>::Iterator DIterator;
    \n+
    852 Iterator coarsest = smoothers_->coarsest();
    \n+
    853 Iterator smoother = smoothers_->finest();
    \n+
    854 RIterator rhs = rhs_->finest();
    \n+
    855 DIterator lhs = lhs_->finest();
    \n+
    856 if(smoothers_->levels()>1) {
    \n+
    857
    \n+
    858 assert(lhs_->levels()==rhs_->levels());
    \n+
    859 assert(smoothers_->levels()==lhs_->levels() || matrices_->levels()==matrices_->maxlevels());
    \n+
    860 assert(smoothers_->levels()+1==lhs_->levels() || matrices_->levels()<matrices_->maxlevels());
    \n+
    861
    \n+
    862 if(smoother!=coarsest)
    \n+
    863 for(++smoother, ++lhs, ++rhs; smoother != coarsest; ++smoother, ++lhs, ++rhs)
    \n+
    864 smoother->pre(*lhs,*rhs);
    \n+
    865 smoother->pre(*lhs,*rhs);
    \n+
    866 }
    \n+
    867
    \n+
    868
    \n+
    869 // The preconditioner might change x and b. So we have to
    \n+
    870 // copy the changes to the original vectors.
    \n+
    871 x = *lhs_->finest();
    \n+
    872 b = *rhs_->finest();
    \n+
    873
    \n+
    874 }
    \n+
    \n+
    875 template<class M, class X, class S, class PI, class A>
    \n+
    \n+\n+
    877 {
    \n+
    878 return matrices_->levels();
    \n+
    879 }
    \n+
    \n+
    880 template<class M, class X, class S, class PI, class A>
    \n+
    \n+\n+
    882 {
    \n+
    883 return matrices_->maxlevels();
    \n+
    884 }
    \n+
    \n+
    885
    \n+
    887 template<class M, class X, class S, class PI, class A>
    \n+
    \n+\n+
    889 {
    \n+
    890 LevelContext levelContext;
    \n+
    891
    \n+
    892 if(additive) {
    \n+
    893 *(rhs_->finest())=d;
    \n+
    894 additiveMgc();
    \n+
    895 v=*lhs_->finest();
    \n+
    896 }else{
    \n+
    897 // Init all iterators for the current level
    \n+
    898 initIteratorsWithFineLevel(levelContext);
    \n+
    899
    \n+
    900
    \n+
    901 *levelContext.lhs = v;
    \n+
    902 *levelContext.rhs = d;
    \n+
    903 *levelContext.update=0;
    \n+
    904 levelContext.level=0;
    \n+
    905
    \n+
    906 mgc(levelContext);
    \n+
    907
    \n+
    908 if(postSteps_==0||matrices_->maxlevels()==1)
    \n+
    909 levelContext.pinfo->copyOwnerToAll(*levelContext.update, *levelContext.update);
    \n+
    910
    \n+
    911 v=*levelContext.update;
    \n+
    912 }
    \n+
    913
    \n+
    914 }
    \n+
    \n+
    915
    \n+
    916 template<class M, class X, class S, class PI, class A>
    \n+
    917 void AMG<M,X,S,PI,A>::initIteratorsWithFineLevel(LevelContext& levelContext)
    \n+
    918 {
    \n+
    919 levelContext.smoother = smoothers_->finest();
    \n+
    920 levelContext.matrix = matrices_->matrices().finest();
    \n+
    921 levelContext.pinfo = matrices_->parallelInformation().finest();
    \n+
    922 levelContext.redist =
    \n+
    923 matrices_->redistributeInformation().begin();
    \n+
    924 levelContext.aggregates = matrices_->aggregatesMaps().begin();
    \n+
    925 levelContext.lhs = lhs_->finest();
    \n+
    926 levelContext.update = update_->finest();
    \n+
    927 levelContext.rhs = rhs_->finest();
    \n+
    928 }
    \n+
    929
    \n+
    930 template<class M, class X, class S, class PI, class A>
    \n+
    931 bool AMG<M,X,S,PI,A>
    \n+
    932 ::moveToCoarseLevel(LevelContext& levelContext)
    \n+
    933 {
    \n+
    934
    \n+
    935 bool processNextLevel=true;
    \n+
    936
    \n+
    937 if(levelContext.redist->isSetup()) {
    \n+
    938 levelContext.redist->redistribute(static_cast<const Range&>(*levelContext.rhs),
    \n+
    939 levelContext.rhs.getRedistributed());
    \n+
    940 processNextLevel = levelContext.rhs.getRedistributed().size()>0;
    \n+
    941 if(processNextLevel) {
    \n+
    942 //restrict defect to coarse level right hand side.
    \n+
    943 typename Hierarchy<Range,A>::Iterator fineRhs = levelContext.rhs++;
    \n+
    944 ++levelContext.pinfo;
    \n+
    945 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n+
    946 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,
    \n+
    947 static_cast<const Range&>(fineRhs.getRedistributed()),
    \n+
    948 *levelContext.pinfo);
    \n+
    949 }
    \n+
    950 }else{
    \n+
    951 //restrict defect to coarse level right hand side.
    \n+
    952 typename Hierarchy<Range,A>::Iterator fineRhs = levelContext.rhs++;
    \n+
    953 ++levelContext.pinfo;
    \n+
    954 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n+
    955 ::restrictVector(*(*levelContext.aggregates),
    \n+
    956 *levelContext.rhs, static_cast<const Range&>(*fineRhs),
    \n+
    957 *levelContext.pinfo);
    \n+
    958 }
    \n+
    959
    \n+
    960 if(processNextLevel) {
    \n+
    961 // prepare coarse system
    \n+
    962 ++levelContext.lhs;
    \n+
    963 ++levelContext.update;
    \n+
    964 ++levelContext.matrix;
    \n+
    965 ++levelContext.level;
    \n+
    966 ++levelContext.redist;
    \n+
    967
    \n+
    968 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_->levels()<matrices_->maxlevels()) {
    \n+
    969 // next level is not the globally coarsest one
    \n+
    970 ++levelContext.smoother;
    \n+
    971 ++levelContext.aggregates;
    \n+
    972 }
    \n+
    973 // prepare the update on the next level
    \n+
    974 *levelContext.update=0;
    \n+
    975 }
    \n+
    976 return processNextLevel;
    \n+
    977 }
    \n+
    978
    \n+
    979 template<class M, class X, class S, class PI, class A>
    \n+
    980 void AMG<M,X,S,PI,A>
    \n+
    981 ::moveToFineLevel(LevelContext& levelContext, bool processNextLevel)
    \n+
    982 {
    \n+
    983 if(processNextLevel) {
    \n+
    984 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_->levels()<matrices_->maxlevels()) {
    \n+
    985 // previous level is not the globally coarsest one
    \n+
    986 --levelContext.smoother;
    \n+
    987 --levelContext.aggregates;
    \n+
    988 }
    \n+
    989 --levelContext.redist;
    \n+
    990 --levelContext.level;
    \n+
    991 //prolongate and add the correction (update is in coarse left hand side)
    \n+
    992 --levelContext.matrix;
    \n+
    993
    \n+
    994 //typename Hierarchy<Domain,A>::Iterator coarseLhs = lhs--;
    \n+
    995 --levelContext.lhs;
    \n+
    996 --levelContext.pinfo;
    \n+
    997 }
    \n+
    998 if(levelContext.redist->isSetup()) {
    \n+
    999 // Need to redistribute during prolongateVector
    \n+
    1000 levelContext.lhs.getRedistributed()=0;
    \n+
    1001 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n+
    1002 ::prolongateVector(*(*levelContext.aggregates), *levelContext.update, *levelContext.lhs,
    \n+
    1003 levelContext.lhs.getRedistributed(),
    \n+
    1004 matrices_->getProlongationDampingFactor(),
    \n+
    1005 *levelContext.pinfo, *levelContext.redist);
    \n+
    1006 }else{
    \n+
    1007 *levelContext.lhs=0;
    \n+
    1008 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n+
    1009 ::prolongateVector(*(*levelContext.aggregates), *levelContext.update, *levelContext.lhs,
    \n+
    1010 matrices_->getProlongationDampingFactor(),
    \n+
    1011 *levelContext.pinfo);
    \n+
    1012 }
    \n+
    1013
    \n+
    1014
    \n+
    1015 if(processNextLevel) {
    \n+
    1016 --levelContext.update;
    \n+
    1017 --levelContext.rhs;
    \n+
    1018 }
    \n+
    1019
    \n+
    1020 *levelContext.update += *levelContext.lhs;
    \n+
    1021 }
    \n+
    1022
    \n+
    1023 template<class M, class X, class S, class PI, class A>
    \n+
    \n+\n+
    1025 {
    \n+\n+
    1027 }
    \n+
    \n+
    \n+
    1028
    \n+
    1029 template<class M, class X, class S, class PI, class A>
    \n+
    1030 void AMG<M,X,S,PI,A>::mgc(LevelContext& levelContext){
    \n+
    1031 if(levelContext.matrix == matrices_->matrices().coarsest() && levels()==maxlevels()) {
    \n+
    1032 // Solve directly
    \n+\n+
    1034 res.converged=true; // If we do not compute this flag will not get updated
    \n+
    1035 if(levelContext.redist->isSetup()) {
    \n+
    1036 levelContext.redist->redistribute(*levelContext.rhs, levelContext.rhs.getRedistributed());
    \n+
    1037 if(levelContext.rhs.getRedistributed().size()>0) {
    \n+
    1038 // We are still participating in the computation
    \n+
    1039 levelContext.pinfo.getRedistributed().copyOwnerToAll(levelContext.rhs.getRedistributed(),
    \n+
    1040 levelContext.rhs.getRedistributed());
    \n+
    1041 solver_->apply(levelContext.update.getRedistributed(),
    \n+
    1042 levelContext.rhs.getRedistributed(), res);
    \n+
    1043 }
    \n+
    1044 levelContext.redist->redistributeBackward(*levelContext.update, levelContext.update.getRedistributed());
    \n+
    1045 levelContext.pinfo->copyOwnerToAll(*levelContext.update, *levelContext.update);
    \n+
    1046 }else{
    \n+
    1047 levelContext.pinfo->copyOwnerToAll(*levelContext.rhs, *levelContext.rhs);
    \n+
    1048 solver_->apply(*levelContext.update, *levelContext.rhs, res);
    \n+
    1049 }
    \n+
    1050
    \n+
    1051 if (!res.converged)
    \n+
    1052 coarsesolverconverged = false;
    \n+
    1053 }else{
    \n+
    1054 // presmoothing
    \n+
    1055 presmooth(levelContext, preSteps_);
    \n+
    1056
    \n+
    1057#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION
    \n+
    1058 bool processNextLevel = moveToCoarseLevel(levelContext);
    \n+
    1059
    \n+
    1060 if(processNextLevel) {
    \n+
    1061 // next level
    \n+
    1062 for(std::size_t i=0; i<gamma_; i++){
    \n+
    1063 mgc(levelContext);
    \n+
    1064 if (levelContext.matrix == matrices_->matrices().coarsest() && levels()==maxlevels())
    \n+
    1065 break;
    \n+
    1066 if(i+1 < gamma_){
    \n+
    1067 levelContext.matrix->applyscaleadd(-1., *levelContext.lhs, *levelContext.rhs);
    \n+
    1068 }
    \n+
    1069 }
    \n+
    1070 }
    \n+
    1071
    \n+
    1072 moveToFineLevel(levelContext, processNextLevel);
    \n+
    1073#else
    \n+
    1074 *lhs=0;
    \n+
    1075#endif
    \n+
    1076
    \n+
    1077 if(levelContext.matrix == matrices_->matrices().finest()) {
    \n+
    1078 coarsesolverconverged = matrices_->parallelInformation().finest()->communicator().prod(coarsesolverconverged);
    \n+
    1079 if(!coarsesolverconverged)
    \n+
    1080 DUNE_THROW(MathError, "Coarse solver did not converge");
    \n+
    1081 }
    \n+
    1082 // postsmoothing
    \n+
    1083 postsmooth(levelContext, postSteps_);
    \n+
    1084
    \n+
    1085 }
    \n+
    1086 }
    \n+
    1087
    \n+
    1088 template<class M, class X, class S, class PI, class A>
    \n+
    1089 void AMG<M,X,S,PI,A>::additiveMgc(){
    \n+
    1090
    \n+
    1091 // restrict residual to all levels
    \n+
    1092 typename ParallelInformationHierarchy::Iterator pinfo=matrices_->parallelInformation().finest();
    \n+
    1093 typename Hierarchy<Range,A>::Iterator rhs=rhs_->finest();
    \n+
    1094 typename Hierarchy<Domain,A>::Iterator lhs = lhs_->finest();
    \n+
    1095 typename OperatorHierarchy::AggregatesMapList::const_iterator aggregates=matrices_->aggregatesMaps().begin();
    \n+
    1096
    \n+
    1097 for(typename Hierarchy<Range,A>::Iterator fineRhs=rhs++; fineRhs != rhs_->coarsest(); fineRhs=rhs++, ++aggregates) {
    \n+
    1098 ++pinfo;
    \n+
    1099 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n+
    1100 ::restrictVector(*(*aggregates), *rhs, static_cast<const Range&>(*fineRhs), *pinfo);
    \n+
    1101 }
    \n+
    1102
    \n+
    1103 // pinfo is invalid, set to coarsest level
    \n+
    1104 //pinfo = matrices_->parallelInformation().coarsest
    \n+
    1105 // calculate correction for all levels
    \n+
    1106 lhs = lhs_->finest();
    \n+
    1107 typename Hierarchy<Smoother,A>::Iterator smoother = smoothers_->finest();
    \n+
    1108
    \n+
    1109 for(rhs=rhs_->finest(); rhs != rhs_->coarsest(); ++lhs, ++rhs, ++smoother) {
    \n+
    1110 // presmoothing
    \n+
    1111 *lhs=0;
    \n+
    1112 smoother->apply(*lhs, *rhs);
    \n+
    1113 }
    \n+
    1114
    \n+
    1115 // Coarse level solve
    \n+
    1116#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION
    \n+
    1117 InverseOperatorResult res;
    \n+
    1118 pinfo->copyOwnerToAll(*rhs, *rhs);
    \n+
    1119 solver_->apply(*lhs, *rhs, res);
    \n+
    1120
    \n+
    1121 if(!res.converged)
    \n+
    1122 DUNE_THROW(MathError, "Coarse solver did not converge");
    \n+
    1123#else
    \n+
    1124 *lhs=0;
    \n+
    1125#endif
    \n+
    1126 // Prologate and add up corrections from all levels
    \n+
    1127 --pinfo;
    \n+
    1128 --aggregates;
    \n+
    1129
    \n+
    1130 for(typename Hierarchy<Domain,A>::Iterator coarseLhs = lhs--; coarseLhs != lhs_->finest(); coarseLhs = lhs--, --aggregates, --pinfo) {
    \n+
    1131 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n+
    1132 ::prolongateVector(*(*aggregates), *coarseLhs, *lhs, 1.0, *pinfo);
    \n+
    1133 }
    \n+
    1134 }
    \n+
    1135
    \n+
    1136
    \n+
    1138 template<class M, class X, class S, class PI, class A>
    \n+
    \n+
    1139 void AMG<M,X,S,PI,A>::post([[maybe_unused]] Domain& x)
    \n+
    1140 {
    \n+
    1141 // Postprocess all smoothers
    \n+
    1142 typedef typename Hierarchy<Smoother,A>::Iterator Iterator;
    \n+
    1143 typedef typename Hierarchy<Domain,A>::Iterator DIterator;
    \n+
    1144 Iterator coarsest = smoothers_->coarsest();
    \n+
    1145 Iterator smoother = smoothers_->finest();
    \n+
    1146 DIterator lhs = lhs_->finest();
    \n+
    1147 if(smoothers_->levels()>0) {
    \n+
    1148 if(smoother != coarsest || matrices_->levels()<matrices_->maxlevels())
    \n+
    1149 smoother->post(*lhs);
    \n+
    1150 if(smoother!=coarsest)
    \n+
    1151 for(++smoother, ++lhs; smoother != coarsest; ++smoother, ++lhs)
    \n+
    1152 smoother->post(*lhs);
    \n+
    1153 smoother->post(*lhs);
    \n+
    1154 }
    \n+
    1155 lhs_ = nullptr;
    \n+
    1156 update_ = nullptr;
    \n+
    1157 rhs_ = nullptr;
    \n+
    1158 }
    \n+
    \n+
    1159
    \n+
    1160 template<class M, class X, class S, class PI, class A>
    \n+
    1161 template<class A1>
    \n+
    \n+
    1162 void AMG<M,X,S,PI,A>::getCoarsestAggregateNumbers(std::vector<std::size_t,A1>& cont)
    \n+
    1163 {
    \n+
    1164 matrices_->getCoarsestAggregatesOnFinest(cont);
    \n+
    1165 }
    \n+
    \n+
    1166
    \n+
    1167 } // end namespace Amg
    \n+
    1168
    \n+
    \n+\n+
    1170 template<class> struct isValidBlockType : std::false_type{};
    \n+
    1171 template<class T, int n, int m> struct isValidBlockType<FieldMatrix<T,n,m>> : std::true_type{};
    \n+
    1172
    \n+
    1173 template<class OP>
    \n+
    1174 std::shared_ptr<Dune::Preconditioner<typename OP::element_type::domain_type, typename OP::element_type::range_type> >
    \n+
    \n+
    1175 makeAMG(const OP& op, const std::string& smoother, const Dune::ParameterTree& config) const
    \n+
    1176 {
    \n+
    1177 DUNE_THROW(Dune::Exception, "Operator type not supported by AMG");
    \n+
    1178 }
    \n+
    \n+
    1179
    \n+
    1180 template<class M, class X, class Y>
    \n+
    1181 std::shared_ptr<Dune::Preconditioner<X,Y> >
    \n+
    \n+
    1182 makeAMG(const std::shared_ptr<MatrixAdapter<M,X,Y>>& op, const std::string& smoother,
    \n+
    1183 const Dune::ParameterTree& config) const
    \n+
    1184 {
    \n+
    1185 using OP = MatrixAdapter<M,X,Y>;
    \n+
    1186
    \n+
    1187 if(smoother == "ssor")
    \n+
    1188 return std::make_shared<Amg::AMG<OP, X, SeqSSOR<M,X,Y>>>(op, config);
    \n+
    1189 if(smoother == "sor")
    \n+
    1190 return std::make_shared<Amg::AMG<OP, X, SeqSOR<M,X,Y>>>(op, config);
    \n+
    1191 if(smoother == "jac")
    \n+
    1192 return std::make_shared<Amg::AMG<OP, X, SeqJac<M,X,Y>>>(op, config);
    \n+
    1193 if(smoother == "gs")
    \n+
    1194 return std::make_shared<Amg::AMG<OP, X, SeqGS<M,X,Y>>>(op, config);
    \n+
    1195 if(smoother == "ilu")
    \n+
    1196 return std::make_shared<Amg::AMG<OP, X, SeqILU<M,X,Y>>>(op, config);
    \n+
    1197 else
    \n+
    1198 DUNE_THROW(Dune::Exception, "Unknown smoother for AMG");
    \n+
    1199 }
    \n+
    \n+
    1200
    \n+
    1201 template<class M, class X, class Y, class C>
    \n+
    1202 std::shared_ptr<Dune::Preconditioner<X,Y> >
    \n+
    \n+
    1203 makeAMG(const std::shared_ptr<OverlappingSchwarzOperator<M,X,Y,C>>& op, const std::string& smoother,
    \n+
    1204 const Dune::ParameterTree& config) const
    \n+
    1205 {
    \n+\n+
    1207
    \n+
    1208 auto cop = std::static_pointer_cast<const OP>(op);
    \n+
    1209
    \n+
    1210 if(smoother == "ssor")
    \n+
    1211 return std::make_shared<Amg::AMG<OP, X, BlockPreconditioner<X,Y,C,SeqSSOR<M,X,Y>>,C>>(cop, config, op->getCommunication());
    \n+
    1212 if(smoother == "sor")
    \n+
    1213 return std::make_shared<Amg::AMG<OP, X, BlockPreconditioner<X,Y,C,SeqSOR<M,X,Y>>,C>>(cop, config, op->getCommunication());
    \n+
    1214 if(smoother == "jac")
    \n+
    1215 return std::make_shared<Amg::AMG<OP, X, BlockPreconditioner<X,Y,C,SeqJac<M,X,Y>>,C>>(cop, config, op->getCommunication());
    \n+
    1216 if(smoother == "gs")
    \n+
    1217 return std::make_shared<Amg::AMG<OP, X, BlockPreconditioner<X,Y,C,SeqGS<M,X,Y>>,C>>(cop, config, op->getCommunication());
    \n+
    1218 if(smoother == "ilu")
    \n+
    1219 return std::make_shared<Amg::AMG<OP, X, BlockPreconditioner<X,Y,C,SeqILU<M,X,Y>>,C>>(cop, config, op->getCommunication());
    \n+
    1220 else
    \n+
    1221 DUNE_THROW(Dune::Exception, "Unknown smoother for AMG");
    \n+
    1222 }
    \n+
    \n+
    1223
    \n+
    1224 template<class M, class X, class Y, class C>
    \n+
    1225 std::shared_ptr<Dune::Preconditioner<X,Y> >
    \n+
    \n+
    1226 makeAMG(const std::shared_ptr<NonoverlappingSchwarzOperator<M,X,Y,C>>& op, const std::string& smoother,
    \n+
    1227 const Dune::ParameterTree& config) const
    \n+
    1228 {
    \n+\n+
    1230
    \n+
    1231 if(smoother == "ssor")
    \n+
    1232 return std::make_shared<Amg::AMG<OP, X, NonoverlappingBlockPreconditioner<C,SeqSSOR<M,X,Y>>,C>>(op, config, op->getCommunication());
    \n+
    1233 if(smoother == "sor")
    \n+
    1234 return std::make_shared<Amg::AMG<OP, X, NonoverlappingBlockPreconditioner<C,SeqSOR<M,X,Y>>,C>>(op, config, op->getCommunication());
    \n+
    1235 if(smoother == "jac")
    \n+
    1236 return std::make_shared<Amg::AMG<OP, X, NonoverlappingBlockPreconditioner<C,SeqJac<M,X,Y>>,C>>(op, config, op->getCommunication());
    \n+
    1237 if(smoother == "gs")
    \n+
    1238 return std::make_shared<Amg::AMG<OP, X, NonoverlappingBlockPreconditioner<C,SeqGS<M,X,Y>>,C>>(op, config, op->getCommunication());
    \n+
    1239 if(smoother == "ilu")
    \n+
    1240 return std::make_shared<Amg::AMG<OP, X, NonoverlappingBlockPreconditioner<C,SeqILU<M,X,Y>>,C>>(op, config, op->getCommunication());
    \n+
    1241 else
    \n+
    1242 DUNE_THROW(Dune::Exception, "Unknown smoother for AMG");
    \n+
    1243 }
    \n+
    \n+
    1244
    \n+
    1245 template<typename TL, typename OP>
    \n+
    1246 std::shared_ptr<Dune::Preconditioner<typename Dune::TypeListElement<1, TL>::type,
    \n+
    1247 typename Dune::TypeListElement<2, TL>::type>>
    \n+
    \n+
    1248 operator() (TL tl, const std::shared_ptr<OP>& op, const Dune::ParameterTree& config,
    \n+\n+
    1250 {
    \n+
    1251 using field_type = typename OP::matrix_type::field_type;
    \n+
    1252 using real_type = typename FieldTraits<field_type>::real_type;
    \n+
    1253 if (!std::is_convertible<field_type, real_type>())
    \n+
    1254 DUNE_THROW(UnsupportedType, "AMG needs field_type(" <<
    \n+
    1255 className<field_type>() <<
    \n+
    1256 ") to be convertible to its real_type (" <<
    \n+
    1257 className<real_type>() <<
    \n+
    1258 ").");
    \n+
    1259 using D = typename Dune::TypeListElement<1, decltype(tl)>::type;
    \n+
    1260 using R = typename Dune::TypeListElement<2, decltype(tl)>::type;
    \n+
    1261 std::shared_ptr<Preconditioner<D,R>> amg;
    \n+
    1262 std::string smoother = config.get("smoother", "ssor");
    \n+
    1263 return makeAMG(op, smoother, config);
    \n+
    1264 }
    \n+
    \n+
    1265
    \n+
    1266 template<typename TL, typename OP>
    \n+
    1267 std::shared_ptr<Dune::Preconditioner<typename Dune::TypeListElement<1, TL>::type,
    \n+
    1268 typename Dune::TypeListElement<2, TL>::type>>
    \n+
    \n+
    1269 operator() (TL /*tl*/, const std::shared_ptr<OP>& /*mat*/, const Dune::ParameterTree& /*config*/,
    \n+\n+
    1271 {
    \n+
    1272 DUNE_THROW(UnsupportedType, "AMG needs a FieldMatrix as Matrix block_type");
    \n+
    1273 }
    \n+
    \n+
    1274 };
    \n+
    \n+
    1275
    \n+\n+
    1277} // end namespace Dune
    \n+
    1278
    \n+
    1279#endif
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    \n+
    Define base class for scalar product and norm.
    \n+
    #define DUNE_REGISTER_PRECONDITIONER(name,...)
    Definition solverregistry.hh:16
    \n+
    Provides a classes representing the hierarchies in AMG.
    \n+
    Classes for the generic construction and application of the smoothers.
    \n+
    Prolongation and restriction for amg.
    \n+
    Templates characterizing the type of a solver.
    \n+
    Classes for using SuperLU with ISTL matrices.
    \n+
    Classes for using UMFPack with ISTL matrices.
    \n+
    Implementations of the inverse operator interface.
    \n
    Col col
    Definition matrixmatrix.hh:351
    \n-
    bool operator()(const OverlapVertex< A > &o1, const OverlapVertex< A > &o2)
    Definition galerkin.hh:155
    \n-
    static void constructNonOverlapConnectivity(R &row, G &graph, V &visitedMap, const AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename G::VertexDescriptor &seed)
    Construct the connectivity of an aggregate in the overlap.
    Definition galerkin.hh:313
    \n-
    G Graph
    The type of the graph.
    Definition galerkin.hh:211
    \n-
    void operator++()
    Definition galerkin.hh:539
    \n-
    void operator()(const ConstEdgeIterator &edge)
    Process an edge pointing to another aggregate.
    Definition galerkin.hh:359
    \n-
    void insert(const typename M::size_type &index)
    Definition galerkin.hh:552
    \n-
    static void constructOverlapConnectivity(R &row, G &graph, V &visitedMap, const AggregatesMap< typename G::VertexDescriptor > &aggregates, const OverlapVertex< typename G::VertexDescriptor > *&seed, const OverlapVertex< typename G::VertexDescriptor > *overlapEnd)
    Definition galerkin.hh:331
    \n-
    G::MutableMatrix * build(G &fineGraph, V &visitedMap, const ParallelInformation &pinfo, AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename G::Matrix::size_type &size, const Set &copy)
    Calculates the coarse matrix via a Galerkin product.
    Definition galerkin.hh:563
    \n-
    std::size_t index()
    Definition galerkin.hh:81
    \n-
    T ParallelInformation
    Definition galerkin.hh:120
    \n-
    G::VertexDescriptor Vertex
    Definition galerkin.hh:272
    \n-
    T Aggregate
    The aggregate descriptor.
    Definition galerkin.hh:37
    \n-
    SparsityBuilder(M &matrix)
    Constructor.
    Definition galerkin.hh:513
    \n-
    ConnectedBuilder(const AggregatesMap< Vertex > &aggregates, Graph &graph, VisitedMap &visitedMap, Set &connected)
    Constructor.
    Definition galerkin.hh:352
    \n-
    Graph::ConstEdgeIterator ConstEdgeIterator
    The constant edge iterator.
    Definition galerkin.hh:215
    \n-
    T Vertex
    The vertex descriptor.
    Definition galerkin.hh:42
    \n-
    G::VertexDescriptor Vertex
    Definition galerkin.hh:288
    \n-
    static void examine(G &graph, V &visitedMap, const T &pinfo, const AggregatesMap< Vertex > &aggregates, const O &overlap, const OverlapVertex< Vertex > *overlapVertices, const OverlapVertex< Vertex > *overlapEnd, R &row)
    Definition galerkin.hh:420
    \n-
    V VisitedMap
    The type of the map for marking vertices as visited.
    Definition galerkin.hh:225
    \n-
    int visitNeighbours(const G &graph, const typename G::VertexDescriptor &vertex, V &visitor)
    Visit all neighbour vertices of a vertex in a graph.
    \n-
    S Set
    The type of the connected set.
    Definition galerkin.hh:220
    \n-
    Aggregate * aggregate
    The aggregate the vertex belongs to.
    Definition galerkin.hh:47
    \n-
    std::size_t sumRowSize()
    Definition galerkin.hh:534
    \n-
    Vertex vertex
    The vertex descriptor.
    Definition galerkin.hh:52
    \n-
    std::size_t minRowSize()
    Definition galerkin.hh:528
    \n-
    static void set(M &coarse, const T &pinfo, const O &copy)
    Definition galerkin.hh:682
    \n-
    Graph::VertexDescriptor Vertex
    The vertex descriptor of the graph.
    Definition galerkin.hh:230
    \n-
    void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse, const I &pinfo, const O &copy)
    Calculate the galerkin product.
    \n-
    std::size_t maxRowSize()
    Definition galerkin.hh:523
    \n-
    STL namespace.
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    AMG(const AMG &amg)
    Copy constructor.
    Definition amg.hh:392
    \n+
    void pre(Domain &x, Range &b)
    Prepare the preconditioner.
    Definition amg.hh:801
    \n+
    static DirectSolver * create(const Matrix &mat, bool verbose, bool reusevector)
    Definition amg.hh:681
    \n+
    static std::string name()
    Definition amg.hh:680
    \n+
    Hierarchy< Domain, A >::Iterator update
    The iterator over the updates.
    Definition amg.hh:303
    \n+
    Hierarchy< Range, A >::Iterator rhs
    The iterator over the right hand sided.
    Definition amg.hh:307
    \n+
    static std::string name()
    Definition amg.hh:672
    \n+
    bool usesDirectCoarseLevelSolver() const
    Check whether the coarse solver used is a direct solver.
    Definition amg.hh:1024
    \n+
    X Domain
    The domain type.
    Definition amg.hh:87
    \n+
    static type * create(const M &mat, bool verbose, bool reusevector)
    Definition amg.hh:644
    \n+
    AMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const SmootherArgs &smootherArgs, const Parameters &parms)
    Construct a new amg with a specific coarse solver.
    Definition amg.hh:406
    \n+
    AMG(std::shared_ptr< const Operator > fineOperator, const ParameterTree &configuration, const ParallelInformation &pinfo=ParallelInformation())
    Constructor an AMG via ParameterTree.
    Definition amg.hh:452
    \n+
    ParallelInformationHierarchy::Iterator pinfo
    The iterator over the parallel information.
    Definition amg.hh:287
    \n+
    SolverType
    Definition amg.hh:627
    \n+
    OperatorHierarchy::AggregatesMapList::const_iterator aggregates
    The iterator over the aggregates maps.
    Definition amg.hh:295
    \n+
    SmootherTraits< Smoother >::Arguments SmootherArgs
    The argument type for the construction of the smoother.
    Definition amg.hh:100
    \n+
    Solver< Matrix, solver > SelectedSolver
    Definition amg.hh:677
    \n+
    std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr< MatrixAdapter< M, X, Y > > &op, const std::string &smoother, const Dune::ParameterTree &config) const
    Definition amg.hh:1182
    \n+
    std::string operator()(const std::string &str)
    Definition amg.hh:378
    \n+
    std::shared_ptr< Dune::Preconditioner< typename OP::element_type::domain_type, typename OP::element_type::range_type > > makeAMG(const OP &op, const std::string &smoother, const Dune::ParameterTree &config) const
    Definition amg.hh:1175
    \n+
    S Smoother
    The type of the smoother.
    Definition amg.hh:97
    \n+
    static std::string name()
    Definition amg.hh:649
    \n+
    Hierarchy< Smoother, A >::Iterator smoother
    The iterator over the smoothers.
    Definition amg.hh:279
    \n+
    M Operator
    The matrix operator type.
    Definition amg.hh:73
    \n+
    OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix
    The iterator over the matrices.
    Definition amg.hh:283
    \n+\n+
    static type * create(const M &mat, bool verbose, bool reusevector)
    Definition amg.hh:668
    \n+
    OperatorHierarchy::RedistributeInfoList::const_iterator redist
    The iterator over the redistribution information.
    Definition amg.hh:291
    \n+
    X Range
    The range type.
    Definition amg.hh:89
    \n+
    void presmooth(LevelContext &levelContext, size_t steps)
    Apply pre smoothing on the current level.
    Definition smoother.hh:406
    \n+
    void getCoarsestAggregateNumbers(std::vector< std::size_t, A1 > &cont)
    Get the aggregate number of each unknown on the coarsest level.
    Definition amg.hh:1162
    \n+
    std::size_t levels()
    Definition amg.hh:876
    \n+
    InverseOperator< Vector, Vector > type
    Definition amg.hh:643
    \n+
    std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr< OverlappingSchwarzOperator< M, X, Y, C > > &op, const std::string &smoother, const Dune::ParameterTree &config) const
    Definition amg.hh:1203
    \n+
    Hierarchy< Domain, A >::Iterator lhs
    The iterator over the left hand side.
    Definition amg.hh:299
    \n+
    const void * Arguments
    A type holding all the arguments needed to call the constructor.
    Definition construction.hh:44
    \n+
    static constexpr SolverType solver
    Definition amg.hh:629
    \n+
    static std::shared_ptr< T > construct(Arguments &args)
    Construct an object with the specified arguments.
    Definition construction.hh:52
    \n+
    static constexpr bool isDirectSolver
    Definition amg.hh:679
    \n+
    void recalculateHierarchy()
    Recalculate the matrix hierarchy.
    Definition amg.hh:221
    \n+
    Matrix::field_type field_type
    Definition amg.hh:626
    \n+
    SelectedSolver::type DirectSolver
    Definition amg.hh:678
    \n+
    std::shared_ptr< Dune::Preconditioner< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL tl, const std::shared_ptr< OP > &op, const Dune::ParameterTree &config, std::enable_if_t< isValidBlockType< typename OP::matrix_type::block_type >::value, int >=0) const
    Definition amg.hh:1248
    \n+
    OperatorHierarchy::ParallelInformationHierarchy ParallelInformationHierarchy
    The parallal data distribution hierarchy type.
    Definition amg.hh:84
    \n+
    InverseOperator< X, X > CoarseSolver
    the type of the coarse solver.
    Definition amg.hh:91
    \n+
    void post(Domain &x)
    Clean up.
    Definition amg.hh:1139
    \n+
    std::size_t maxlevels()
    Definition amg.hh:881
    \n+
    std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr< NonoverlappingSchwarzOperator< M, X, Y, C > > &op, const std::string &smoother, const Dune::ParameterTree &config) const
    Definition amg.hh:1226
    \n+
    void postsmooth(LevelContext &levelContext, size_t steps)
    Apply post smoothing on the current level.
    Definition smoother.hh:428
    \n+
    std::size_t level
    The level index.
    Definition amg.hh:311
    \n+
    AMG(const Operator &fineOperator, const C &criterion, const SmootherArgs &smootherArgs=SmootherArgs(), const ParallelInformation &pinfo=ParallelInformation())
    Construct an AMG with an inexact coarse solver based on the smoother.
    Definition amg.hh:428
    \n+
    void apply(Domain &v, const Range &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition amg.hh:888
    \n+
    Smoother SmootherType
    Definition amg.hh:275
    \n+
    MatrixHierarchy< M, ParallelInformation, A > OperatorHierarchy
    The operator hierarchy type.
    Definition amg.hh:82
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition amg.hh:194
    \n+
    PI ParallelInformation
    The type of the parallel information. Either OwnerOverlapCommunication or another type describing the...
    Definition amg.hh:80
    \n+
    @ none
    Definition amg.hh:627
    \n+
    @ umfpack
    Definition amg.hh:627
    \n+
    @ superlu
    Definition amg.hh:627
    \n+
    @ atOnceAccu
    Accumulate data to one process at once.
    Definition parameters.hh:244
    \n+
    @ noAccu
    No data accumulution.
    Definition parameters.hh:238
    \n+
    @ successiveAccu
    Successively accumulate to fewer processes.
    Definition parameters.hh:248
    \n
    Definition allocator.hh:11
    \n-
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n-
    A Dummy visitor that does nothing for each visited edge.
    Definition aggregates.hh:598
    \n-
    Definition galerkin.hh:33
    \n-
    Functor for building the sparsity pattern of the matrix using examineConnectivity.
    Definition galerkin.hh:63
    \n-
    Definition galerkin.hh:99
    \n-
    Definition galerkin.hh:118
    \n-
    Definition galerkin.hh:185
    \n-
    Visitor for identifying connected aggregates during a breadthFirstSearch.
    Definition galerkin.hh:206
    \n-
    Definition galerkin.hh:271
    \n-
    Definition galerkin.hh:300
    \n+
    ConstIterator class for sequential access.
    Definition matrix.hh:404
    \n+
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n+
    typename Imp::BlockTraits< T >::field_type field_type
    Export the type representing the underlying field.
    Definition matrix.hh:565
    \n+
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n+
    T block_type
    Export the type representing the components.
    Definition matrix.hh:568
    \n+
    Definition matrixutils.hh:27
    \n+
    A nonoverlapping operator with communication object.
    Definition novlpschwarz.hh:61
    \n+
    Adapter to turn a matrix into a linear operator.
    Definition operators.hh:137
    \n+
    Norm that uses only the [N][N] entry of the block to determine couplings.
    Definition aggregates.hh:379
    \n+
    Functor using the row sum (infinity) norm to determine strong couplings.
    Definition aggregates.hh:463
    \n+
    Definition aggregates.hh:480
    \n+
    Definition aggregates.hh:496
    \n+
    Criterion taking advantage of symmetric matrices.
    Definition aggregates.hh:519
    \n+
    Criterion suitable for unsymmetric matrices.
    Definition aggregates.hh:539
    \n+
    an algebraic multigrid method using a Krylov-cycle.
    Definition kamg.hh:140
    \n+
    Two grid operator for AMG with Krylov cycle.
    Definition kamg.hh:33
    \n+
    Parallel algebraic multigrid based on agglomeration.
    Definition amg.hh:65
    \n+
    Definition amg.hh:625
    \n+\n+
    Definition amg.hh:1169
    \n+\n+
    An overlapping Schwarz operator.
    Definition schwarz.hh:75
    \n+\n+
    LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation > Iterator
    Type of the mutable iterator.
    Definition hierarchy.hh:216
    \n+
    Iterator over the levels in the hierarchy.
    Definition hierarchy.hh:120
    \n+
    The hierarchies build by the coarsening process.
    Definition matrixhierarchy.hh:61
    \n+
    The criterion describing the stop criteria for the coarsening process.
    Definition matrixhierarchy.hh:283
    \n+
    All parameters for AMG.
    Definition parameters.hh:393
    \n
    Definition pinfo.hh:28
    \n-
    @ nonoverlapping
    Category for non-overlapping solvers.
    Definition solvercategory.hh:27
    \n+
    The default class for the smoother arguments.
    Definition smoother.hh:38
    \n+
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioner.hh:39
    \n+
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n+
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n+
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n+
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n+
    Categories for the solvers.
    Definition solvercategory.hh:22
    \n+
    Category
    Definition solvercategory.hh:23
    \n
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n+
    Definition solvercategory.hh:54
    \n+
    Definition solverregistry.hh:77
    \n+
    Definition solvertype.hh:16
    \n+
    SuperLu Solver.
    Definition superlu.hh:271
    \n+
    Definition umfpack.hh:49
    \n+
    The UMFPack direct sparse solver.
    Definition umfpack.hh:335
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,816 +1,1597 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-galerkin.hh\n+amg.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_GALERKIN_HH\n-6#define DUNE_GALERKIN_HH\n+5#ifndef DUNE_AMG_AMG_HH\n+6#define DUNE_AMG_AMG_HH\n 7\n-8#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n-9#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n-10#include \n-11#include \n-12#include \n-13#include \n-14#include \n-15\n-16namespace _\bD_\bu_\bn_\be\n-17{\n-18 namespace Amg\n-19 {\n-31 template\n-_\b3_\b2 struct _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx\n-33 {\n-_\b3_\b7 typedef T _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be;\n-38\n-_\b4_\b2 typedef T _\bV_\be_\br_\bt_\be_\bx;\n-43\n-_\b4_\b7 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be* _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be;\n+8#include \n+9#include \n+10#include \n+11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n+12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n+13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh>\n+14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n+15#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n+16#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh>\n+17#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh>\n+18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+19#include \n+20#include \n+21#include \n+22#include \n+23#include \n+24\n+25namespace _\bD_\bu_\bn_\be\n+26{\n+27 namespace Amg\n+28 {\n+46 template\n+47 class KAMG;\n 48\n-_\b5_\b2 _\bV_\be_\br_\bt_\be_\bx _\bv_\be_\br_\bt_\be_\bx;\n-53 };\n-54\n-55\n-56\n-61 template\n-_\b6_\b2 class _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br\n-63 {\n-64 public:\n-70 _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br(M& matrix);\n-71\n-72 void _\bi_\bn_\bs_\be_\br_\bt(const typename M::size_type& _\bi_\bn_\bd_\be_\bx);\n-73\n-74 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n-75\n-76 std::size_t _\bm_\bi_\bn_\bR_\bo_\bw_\bS_\bi_\bz_\be();\n-77\n-78 std::size_t _\bm_\ba_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be();\n-79\n-80 std::size_t _\bs_\bu_\bm_\bR_\bo_\bw_\bS_\bi_\bz_\be();\n-_\b8_\b1 std::size_t _\bi_\bn_\bd_\be_\bx()\n-82 {\n-83 return row_.index();\n-84 }\n-85 private:\n-87 typename M::CreateIterator row_;\n-89 std::size_t minRowSize_;\n-91 std::size_t maxRowSize_;\n-92 std::size_t sumRowSize_;\n-93#ifdef DUNE_ISTL_WITH_CHECKING\n-94 bool diagonalInserted;\n-95#endif\n-96 };\n-97\n-_\b9_\b8 class _\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-99 {\n-100 public:\n-109 template\n-_\b1_\b1_\b0 void _\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be(const M& fine, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>& aggregates, M&\n-coarse,\n-111 const I& pinfo, const O& copy);\n-112\n-113 };\n-114\n-115 template\n-_\b1_\b1_\b6 class _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-117 : public _\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-118 {\n-119 public:\n-_\b1_\b2_\b0 typedef T _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n-121\n-131 template\n-132 typename G::MutableMatrix* _\bb_\bu_\bi_\bl_\bd(G& fineGraph, V& visitedMap,\n-133 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-134 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-135 const typename G::Matrix::size_type& size,\n-136 const Set& copy);\n-137 private:\n-138\n-145 template\n-146 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>*\n-147 buildOverlapVertices(const G& graph, const I& pinfo,\n-148 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-149 const Set& overlap,\n-150 std::size_t& overlapCount);\n-151\n-152 template\n-153 struct OVLess\n-154 {\n-_\b1_\b5_\b5 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bA_\b>& o1, const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bA_\b>& o2)\n-156 {\n-157 return *o1._\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be < *o2._\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be;\n-158 }\n-159 };\n-160 };\n-161\n-162 template<>\n-_\b1_\b6_\b3 class _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn>\n-164 : public _\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-165 {\n-166 public:\n-176 template\n-177 typename G::MutableMatrix* _\bb_\bu_\bi_\bl_\bd(G& fineGraph, V& visitedMap,\n-178 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-179 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-180 const typename G::Matrix::size_type& size,\n-181 const Set& copy);\n-182 };\n-183\n-_\b1_\b8_\b4 struct _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n-185 {\n-186 template\n-187 static void _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(R& row, G& graph, V& visitedMap,\n-188 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-189 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>*& seed,\n-190 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>* overlapEnd);\n-191\n-195 template\n-196 static void _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bN_\bo_\bn_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(R& row, G& graph, V&\n-visitedMap,\n-197 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-198 const typename G::VertexDescriptor& seed);\n-199\n-200\n-204 template\n-_\b2_\b0_\b5 class _\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br\n-206 {\n-207 public:\n-_\b2_\b1_\b1 typedef G _\bG_\br_\ba_\bp_\bh;\n-_\b2_\b1_\b5 typedef typename Graph::ConstEdgeIterator _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-216\n-_\b2_\b2_\b0 typedef S _\bS_\be_\bt;\n-221\n-_\b2_\b2_\b5 typedef V _\bV_\bi_\bs_\bi_\bt_\be_\bd_\bM_\ba_\bp;\n-226\n-_\b2_\b3_\b0 typedef typename Graph::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n+49 template\n+50 class KAmgTwoGrid;\n+51\n+62 template >\n+_\b6_\b4 class _\bA_\bM_\bG : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+65 {\n+66 template\n+_\b6_\b7 friend class _\bK_\bA_\bM_\bG;\n+68\n+69 friend class _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd<_\bA_\bM_\bG>;\n+70\n+71 public:\n+_\b7_\b3 typedef M _\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n+_\b8_\b0 typedef PI _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n+_\b8_\b2 typedef _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\b> _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n+_\b8_\b4 typedef typename _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n+85\n+_\b8_\b7 typedef X _\bD_\bo_\bm_\ba_\bi_\bn;\n+_\b8_\b9 typedef X _\bR_\ba_\bn_\bg_\be;\n+_\b9_\b1 typedef _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b> _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br;\n+_\b9_\b7 typedef S _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+98\n+_\b1_\b0_\b0 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n+101\n+_\b1_\b1_\b1 _\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br& coarseSolver,\n+112 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs, const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms);\n+113\n+125 template\n+_\b1_\b2_\b6 _\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& fineOperator, const C& criterion,\n+127 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs=_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs(),\n+128 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo=_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n+129\n+_\b1_\b8_\b0 _\bA_\bM_\bG(std::shared_ptr fineOperator, const ParameterTree&\n+configuration, const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo=_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n+181\n+_\b1_\b8_\b5 _\bA_\bM_\bG(const _\bA_\bM_\bG& amg);\n+186\n+_\b1_\b8_\b8 void _\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b);\n+189\n+_\b1_\b9_\b1 void _\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d);\n+192\n+_\b1_\b9_\b4 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+195 {\n+196 return category_;\n+197 }\n+198\n+_\b2_\b0_\b0 void _\bp_\bo_\bs_\bt(_\bD_\bo_\bm_\ba_\bi_\bn& x);\n+201\n+206 template\n+_\b2_\b0_\b7 void _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs(std::vector& cont);\n+208\n+_\b2_\b0_\b9 std::size_t _\bl_\be_\bv_\be_\bl_\bs();\n+210\n+_\b2_\b1_\b1 std::size_t _\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs();\n+212\n+_\b2_\b2_\b1 void _\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by()\n+222 {\n+223 matrices_->recalculateGalerkin(NegateSet());\n+224 }\n+225\n+_\b2_\b3_\b0 bool _\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br() const;\n 231\n-239 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates, _\bG_\br_\ba_\bp_\bh& graph,\n-240 _\bV_\bi_\bs_\bi_\bt_\be_\bd_\bM_\ba_\bp& visitedMap, _\bS_\be_\bt& connected);\n-241\n-246 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge);\n-247\n-248 private:\n-252 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n-253\n-254 _\bG_\br_\ba_\bp_\bh& graph_;\n-255\n-259 _\bV_\bi_\bs_\bi_\bt_\be_\bd_\bM_\ba_\bp& visitedMap_;\n-260\n-264 _\bS_\be_\bt& connected_;\n-265 };\n-266\n-267 };\n-268\n-269 template\n-_\b2_\b7_\b0 struct _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br : public _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n-271 {\n-_\b2_\b7_\b2 typedef typename G::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n-273\n-274 template\n-275 static void _\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph,\n-276 V& visitedMap,\n-277 const T& pinfo,\n-278 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-279 const O& overlap,\n-280 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>* overlapVertices,\n-281 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>* overlapEnd,\n-282 R& row);\n-283 };\n-284\n-285 template\n-_\b2_\b8_\b6 struct _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br : public\n-_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n-287 {\n-_\b2_\b8_\b8 typedef typename G::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n-289\n-290 template\n-291 static void _\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph,\n-292 V& visitedMap,\n-293 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-294 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-295 R& row);\n-296 };\n-297\n-298 template\n-_\b2_\b9_\b9 struct _\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br\n-300 {\n-301 template\n-302 static void _\bs_\be_\bt(M& coarse, const T& pinfo, const O& copy);\n-303 };\n-304\n-305 template<>\n-_\b3_\b0_\b6 struct _\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn>\n-307 {\n-308 template\n-309 static void _\bs_\be_\bt(M& coarse, const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo, const O&\n-copy);\n-310 };\n-311\n-312 template\n-_\b3_\b1_\b3 void _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bN_\bo_\bn_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(R& row,\n-G& graph, V& visitedMap,\n-314 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-315 const typename G::VertexDescriptor& seed)\n-316 {\n-317 assert(row.index()==aggregates[seed]);\n-318 row.insert(aggregates[seed]);\n-319 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bG_\b,_\bR_\b,_\bV_\b> conBuilder(aggregates, graph, visitedMap, row);\n-320 typedef typename G::VertexDescriptor Vertex;\n-321 typedef std::allocator Allocator;\n-322 typedef SLList VertexList;\n-323 typedef typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br DummyVisitor;\n-324 VertexList vlist;\n-325 DummyVisitor dummy;\n-326 aggregates.template breadthFirstSearch(seed,aggregates[seed],\n-graph, vlist, dummy,\n-327 conBuilder, visitedMap);\n-328 }\n-329\n-330 template\n-_\b3_\b3_\b1 void _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(R& row, G&\n-graph, V& visitedMap,\n-332 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-333 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>*& seed,\n-334 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>* overlapEnd)\n-335 {\n-336 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bG_\b,_\bR_\b,_\bV_\b> conBuilder(aggregates, graph, visitedMap, row);\n-337 const typename G::VertexDescriptor aggregate=*seed->_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be;\n-338\n-339 if (row.index()==*seed->_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be) {\n-340 while(seed != overlapEnd && aggregate == *seed->_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be) {\n-341 row.insert(*seed->_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be);\n-342 // Walk over all neighbours and add them to the connected array.\n-343 _\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs(graph, seed->_\bv_\be_\br_\bt_\be_\bx, conBuilder);\n-344 // Mark vertex as visited\n-345 put(visitedMap, seed->_\bv_\be_\br_\bt_\be_\bx, true);\n-346 ++seed;\n-347 }\n-348 }\n-349 }\n-350\n-351 template\n-_\b3_\b5_\b2 _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bG_\b,_\bS_\b,_\bV_\b>_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br\n-(const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-353 _\bG_\br_\ba_\bp_\bh& graph, _\bV_\bi_\bs_\bi_\bt_\be_\bd_\bM_\ba_\bp& visitedMap,\n-354 _\bS_\be_\bt& connected)\n-355 : aggregates_(aggregates), graph_(graph), visitedMap_(visitedMap),\n-connected_(connected)\n-356 {}\n-357\n-358 template\n-_\b3_\b5_\b9 void _\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bG_\b,_\bS_\b,_\bV_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const\n-_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& edge)\n-360 {\n-361 const _\bV_\be_\br_\bt_\be_\bx& vertex = aggregates_[edge.target()];\n-362 assert(vertex!= _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n-363 if(vertex!= _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD)\n-364 connected_.insert(vertex);\n-365 }\n-366\n-367 template\n-368 template\n-369 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>*\n-370 _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bT_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\bi_\bc_\be_\bs(const G& graph, const I& pinfo,\n-371 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-372 const Set& overlap,\n-373 std::size_t& overlapCount)\n-374 {\n-375 // count the overlap vertices.\n-376 typedef typename G::ConstVertexIterator ConstIterator;\n-377 typedef typename I::GlobalLookupIndexSet GlobalLookup;\n-378 typedef typename GlobalLookup::IndexPair IndexPair;\n-379\n-380 const ConstIterator end = graph.end();\n-381 overlapCount = 0;\n-382\n-383 const GlobalLookup& lookup=pinfo.globalLookup();\n-384\n-385 for(ConstIterator vertex=graph.begin(); vertex != end; ++vertex) {\n-386 const IndexPair* pair = lookup.pair(*vertex);\n-387\n-388 if(pair!=0 && overlap.contains(pair->local().attribute()))\n-389 ++overlapCount;\n-390 }\n-391 // Allocate space\n-392 typedef typename G::VertexDescriptor Vertex;\n-393\n-394 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>* overlapVertices = new _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>\n-[overlapCount=0 ? 1 : overlapCount];\n-395 if(overlapCount==0)\n-396 return overlapVertices;\n-397\n-398 // Initialize them\n-399 overlapCount=0;\n-400 for(ConstIterator vertex=graph.begin(); vertex != end; ++vertex) {\n-401 const IndexPair* pair = lookup.pair(*vertex);\n-402\n-403 if(pair!=0 && overlap.contains(pair->local().attribute())) {\n-404 overlapVertices[overlapCount]._\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be = &aggregates[pair->local()];\n-405 overlapVertices[overlapCount]._\bv_\be_\br_\bt_\be_\bx = pair->local();\n-406 ++overlapCount;\n-407 }\n-408 }\n-409\n-410 dverb << overlapCount<<\" overlap vertices\"<());\n-413 // due to the sorting the isolated aggregates (to be skipped) are at the\n-end.\n-414\n-415 return overlapVertices;\n-416 }\n-417\n-418 template\n-419 template\n-_\b4_\b2_\b0 void _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\bG_\b,_\bT_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph,\n-421 V& visitedMap,\n-422 const T& pinfo,\n-423 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-424 const O& overlap,\n-425 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>* overlapVertices,\n-426 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bV_\be_\br_\bt_\be_\bx_\b>* overlapEnd,\n-427 R& row)\n-428 {\n-429 typedef typename T::GlobalLookupIndexSet GlobalLookup;\n-430 const GlobalLookup& lookup = pinfo.globalLookup();\n-431\n-432 typedef typename G::VertexIterator VertexIterator;\n-433\n-434 VertexIterator vend=graph.end();\n-435\n-436#ifdef DUNE_ISTL_WITH_CHECKING\n-437 std::set examined;\n-438#endif\n-439\n-440 // The aggregates owned by the process have lower local indices\n-441 // then those not owned. We process them in the first pass.\n-442 // They represent the rows 0, 1, ..., n of the coarse matrix\n-443 for(VertexIterator vertex = graph.begin(); vertex != vend; ++vertex)\n-444 if(!_\bg_\be_\bt(visitedMap, *vertex)) {\n-445 // In the first pass we only process owner nodes\n-446 typedef typename GlobalLookup::IndexPair IndexPair;\n-447 const IndexPair* pair = lookup.pair(*vertex);\n-448 if(pair==0 || !overlap.contains(pair->local().attribute())) {\n-449#ifdef DUNE_ISTL_WITH_CHECKING\n-450 assert(examined.find(aggregates[*vertex])==examined.end());\n-451 examined.insert(aggregates[*vertex]);\n-452#endif\n-453 _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bN_\bo_\bn_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(row, graph, visitedMap, aggregates,\n-*vertex);\n-454\n-455 // only needed for ALU\n-456 // (ghosts with same global id as owners on the same process)\n-457 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(pinfo) == static_cast(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:\n-_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg)) {\n-458 if(overlapVertices != overlapEnd) {\n-459 if(*overlapVertices->_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n-460 _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(row, graph, visitedMap, aggregates,\n-overlapVertices, overlapEnd);\n-461 }\n-462 else{\n-463 ++overlapVertices;\n-464 }\n-465 }\n-466 }\n-467 ++row;\n-468 }\n-469 }\n-470\n-471 dvverb<<\"constructed \"<_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n-477\n-478#ifdef DUNE_ISTL_WITH_CHECKING\n-479 typedef typename GlobalLookup::IndexPair IndexPair;\n-480 const IndexPair* pair = lookup.pair(overlapVertices->_\bv_\be_\br_\bt_\be_\bx);\n-481 assert(pair!=0 && overlap.contains(pair->local().attribute()));\n-482 assert(examined.find(aggregates[overlapVertices->_\bv_\be_\br_\bt_\be_\bx])==examined.end());\n-483 examined.insert(aggregates[overlapVertices->_\bv_\be_\br_\bt_\be_\bx]);\n-484#endif\n-485 _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(row, graph, visitedMap, aggregates,\n-overlapVertices, overlapEnd);\n-486 ++row;\n-487 }else{\n-488 ++overlapVertices;\n-489 }\n-490 }\n-491\n-492 template\n-493 template\n-_\b4_\b9_\b4 void _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\bG_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(G& graph,\n-495 V& visitedMap,\n-496 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-497 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-498 R& row)\n-499 {\n-500 typedef typename G::VertexIterator VertexIterator;\n-501\n-502 VertexIterator vend=graph.end();\n-503 for(VertexIterator vertex = graph.begin(); vertex != vend; ++vertex) {\n-504 if(!_\bg_\be_\bt(visitedMap, *vertex)) {\n-505 _\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bN_\bo_\bn_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by(row, graph, visitedMap, aggregates,\n-*vertex);\n-506 ++row;\n-507 }\n-508 }\n-509\n-510 }\n-511\n-512 template\n-_\b5_\b1_\b3 _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br(M& matrix)\n-514 : row_(matrix.createbegin()),\n-515 minRowSize_(_\bs_\bt_\bd::numeric_limits<_\bs_\bt_\bd::size_t>::max()),\n-516 maxRowSize_(0), sumRowSize_(0)\n-517 {\n-518#ifdef DUNE_ISTL_WITH_CHECKING\n-519 diagonalInserted = false;\n-520#endif\n-521 }\n-522 template\n-_\b5_\b2_\b3 std::size_t _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bm_\ba_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be()\n-524 {\n-525 return maxRowSize_;\n+232 private:\n+233 /*\n+234 * @brief Helper function to create hierarchies with parameter tree.\n+235 *\n+236 * Will create the coarsen criterion with the norm and create the\n+237 * Hierarchies\n+238 * \\tparam Norm Type of the norm to use.\n+239 */\n+240 template\n+241 void createCriterionAndHierarchies(std::shared_ptr\n+matrixptr,\n+242 const PI& pinfo, const Norm&,\n+243 const ParameterTree& configuration,\n+244 std::true_type compiles = std::true_type());\n+245 template\n+246 void createCriterionAndHierarchies(std::shared_ptr\n+matrixptr,\n+247 const PI& pinfo, const Norm&,\n+248 const ParameterTree& configuration,\n+249 std::false_type);\n+254 template\n+255 void createHierarchies(C& criterion, std::shared_ptr\n+matrixptr,\n+256 const PI& pinfo, const ParameterTree& configuration);\n+263 template\n+264 void createHierarchies(C& criterion,\n+265 const std::shared_ptr& matrixptr,\n+266 const PI& pinfo);\n+273 struct LevelContext\n+274 {\n+_\b2_\b7_\b5 typedef _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be;\n+_\b2_\b7_\b9 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bs_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+_\b2_\b8_\b3 typename OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator _\bm_\ba_\bt_\br_\bi_\bx;\n+_\b2_\b8_\b7 typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bp_\bi_\bn_\bf_\bo;\n+_\b2_\b9_\b1 typename OperatorHierarchy::RedistributeInfoList::const_iterator _\br_\be_\bd_\bi_\bs_\bt;\n+_\b2_\b9_\b5 typename OperatorHierarchy::AggregatesMapList::const_iterator _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs;\n+_\b2_\b9_\b9 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bl_\bh_\bs;\n+_\b3_\b0_\b3 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bu_\bp_\bd_\ba_\bt_\be;\n+_\b3_\b0_\b7 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bR_\ba_\bn_\bg_\be_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\br_\bh_\bs;\n+_\b3_\b1_\b1 std::size_t _\bl_\be_\bv_\be_\bl;\n+312 };\n+313\n+314\n+319 void mgc(LevelContext& levelContext);\n+320\n+321 void additiveMgc();\n+322\n+329 void moveToFineLevel(LevelContext& levelContext,bool processedFineLevel);\n+330\n+335 bool moveToCoarseLevel(LevelContext& levelContext);\n+336\n+341 void initIteratorsWithFineLevel(LevelContext& levelContext);\n+342\n+344 std::shared_ptr matrices_;\n+346 _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs smootherArgs_;\n+348 std::shared_ptr > smoothers_;\n+350 std::shared_ptr solver_;\n+352 std::shared_ptr> rhs_;\n+354 std::shared_ptr> lhs_;\n+356 std::shared_ptr> update_;\n+358 using _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt = _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>;\n+360 std::shared_ptr scalarProduct_;\n+362 std::size_t gamma_;\n+364 std::size_t preSteps_;\n+366 std::size_t postSteps_;\n+367 bool buildHierarchy_;\n+368 bool additive;\n+369 bool coarsesolverconverged;\n+370 std::shared_ptr coarseSmoother_;\n+372 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category_;\n+374 std::size_t verbosity_;\n+375\n+376 struct ToLower\n+377 {\n+_\b3_\b7_\b8 std::string _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const std::string& str)\n+379 {\n+380 std::stringstream retval;\n+381 std::ostream_iterator out(retval);\n+382 std::transform(str.begin(), str.end(), out,\n+383 [](char c){\n+384 return std::tolower(c, std::locale::classic());\n+385 });\n+386 return retval.str();\n+387 }\n+388 };\n+389 };\n+390\n+391 template\n+_\b3_\b9_\b2 inline _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bA_\bM_\bG(const _\bA_\bM_\bG& amg)\n+393 : matrices_(amg.matrices_), smootherArgs_(amg.smootherArgs_),\n+394 smoothers_(amg.smoothers_), solver_(amg.solver_),\n+395 rhs_(), lhs_(), update_(),\n+396 scalarProduct_(amg.scalarProduct_), gamma_(amg.gamma_),\n+397 preSteps_(amg.preSteps_), postSteps_(amg.postSteps_),\n+398 buildHierarchy_(amg.buildHierarchy_),\n+399 additive(amg.additive), coarsesolverconverged(amg.coarsesolverconverged),\n+400 coarseSmoother_(amg.coarseSmoother_),\n+401 category_(amg.category_),\n+402 verbosity_(amg.verbosity_)\n+403 {}\n+404\n+405 template\n+_\b4_\b0_\b6 _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br&\n+coarseSolver,\n+407 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs,\n+408 const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n+409 : matrices_(stackobject_to_shared_ptr(matrices)), smootherArgs_\n+(smootherArgs),\n+410 smoothers_(new _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br,A>), solver_(&coarseSolver),\n+411 rhs_(), lhs_(), update_(), scalarProduct_(0),\n+412 gamma_(parms.getGamma()), preSteps_(parms.getNoPreSmoothSteps()),\n+413 postSteps_(parms.getNoPostSmoothSteps()), buildHierarchy_(false),\n+414 additive(parms.getAdditive()), coarsesolverconverged(true),\n+415 coarseSmoother_(),\n+416// #warning should category be retrieved from matrices?\n+417 category_(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::category(*smoothers_->coarsest())),\n+418 verbosity_(parms.debugLevel())\n+419 {\n+420 assert(matrices_->isBuilt());\n+421\n+422 // build the necessary smoother hierarchies\n+423 matrices_->coarsenSmoother(*smoothers_, smootherArgs_);\n+424 }\n+425\n+426 template\n+427 template\n+_\b4_\b2_\b8 _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& matrix,\n+429 const C& criterion,\n+430 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs,\n+431 const PI& pinfo)\n+432 : smootherArgs_(smootherArgs),\n+433 smoothers_(new _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br,A>), solver_(),\n+434 rhs_(), lhs_(), update_(), scalarProduct_(),\n+435 gamma_(criterion.getGamma()), preSteps_(criterion.getNoPreSmoothSteps()),\n+436 postSteps_(criterion.getNoPostSmoothSteps()), buildHierarchy_(true),\n+437 additive(criterion.getAdditive()), coarsesolverconverged(true),\n+438 coarseSmoother_(),\n+439 category_(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::category(pinfo)),\n+440 verbosity_(criterion.debugLevel())\n+441 {\n+442 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(matrix) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(pinfo))\n+443 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"Matrix and Communication must have the\n+same SolverCategory!\");\n+444 // TODO: reestablish compile time checks.\n+445 //static_assert(static_cast(PI::category)==static_cast(S::\n+category),\n+446 // \"Matrix and Solver must match in terms of category!\");\n+447 auto matrixptr = stackobject_to_shared_ptr(matrix);\n+448 createHierarchies(criterion, matrixptr, pinfo);\n+449 }\n+450\n+451 template\n+_\b4_\b5_\b2 _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bA_\bM_\bG(std::shared_ptr matrixptr,\n+453 const ParameterTree& configuration,\n+454 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo) :\n+455 smoothers_(new _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br,A>),\n+456 solver_(), rhs_(), lhs_(), update_(), scalarProduct_(), buildHierarchy_\n+(true),\n+457 coarsesolverconverged(true), coarseSmoother_(),\n+458 category_(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::category(pinfo))\n+459 {\n+460\n+461 if (configuration.hasKey (\"smootherIterations\"))\n+462 smootherArgs_.iterations = configuration.get(\"smootherIterations\");\n+463\n+464 if (configuration.hasKey (\"smootherRelaxation\"))\n+465 smootherArgs_.relaxationFactor = configuration.get(\"smootherRelaxation\");\n+466\n+467 auto normName = ToLower()(configuration.get(\"strengthMeasure\",\n+\"diagonal\"));\n+468 auto index = configuration.get(\"diagonalRowIndex\", 0);\n+469\n+470 if ( normName == \"diagonal\")\n+471 {\n+472 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename M::field_type;\n+473 using real_type = typename FieldTraits::real_type;\n+474 std::is_convertible compiles;\n+475\n+476 switch (index)\n+477 {\n+478 case 0:\n+479 createCriterionAndHierarchies(matrixptr, pinfo, _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b0_\b>(),\n+configuration, compiles);\n+480 break;\n+481 case 1:\n+482 createCriterionAndHierarchies(matrixptr, pinfo, _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b1_\b>(),\n+configuration, compiles);\n+483 break;\n+484 case 2:\n+485 createCriterionAndHierarchies(matrixptr, pinfo, _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b2_\b>(),\n+configuration, compiles);\n+486 break;\n+487 case 3:\n+488 createCriterionAndHierarchies(matrixptr, pinfo, _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b3_\b>(),\n+configuration, compiles);\n+489 break;\n+490 case 4:\n+491 createCriterionAndHierarchies(matrixptr, pinfo, _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b4_\b>(),\n+configuration, compiles);\n+492 break;\n+493 default:\n+494 DUNE_THROW(InvalidStateException, \"Currently strengthIndex>4 is not\n+supported.\");\n+495 }\n+496 }\n+497 else if (normName == \"rowsum\")\n+498 createCriterionAndHierarchies(matrixptr, pinfo, _\bR_\bo_\bw_\bS_\bu_\bm(), configuration);\n+499 else if (normName == \"frobenius\")\n+500 createCriterionAndHierarchies(matrixptr, pinfo, _\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm(),\n+configuration);\n+501 else if (normName == \"one\")\n+502 createCriterionAndHierarchies(matrixptr, pinfo, _\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm(),\n+configuration);\n+503 else\n+504 DUNE_THROW(Dune::NotImplemented, \"Wrong config file: strengthMeasure\n+\"<\n+508 template\n+509 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\bA_\bn_\bd_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\bi_\be_\bs(std::shared_ptr matrixptr, const PI& pinfo, const Norm&, const ParameterTree&\n+configuration, std::false_type)\n+510 {\n+511 DUNE_THROW(InvalidStateException, \"Strength of connection measure does not\n+support this type (\"\n+512 << className() << \") as it is lacking a conversion\n+to\"\n+513 << className::real_type>() <<\n+\".\");\n+514 }\n+515\n+516 template\n+517 template\n+518 void AMG::createCriterionAndHierarchies(std::shared_ptr matrixptr, const PI& pinfo, const Norm&, const ParameterTree&\n+configuration, std::true_type)\n+519 {\n+520 if (configuration.get(\"criterionSymmetric\", true))\n+521 {\n+522 using Criterion = _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn<\n+523 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b,_\bN_\bo_\br_\bm_\b> >;\n+524 Criterion criterion;\n+525 createHierarchies(criterion, matrixptr, pinfo, configuration);\n 526 }\n-527 template\n-_\b5_\b2_\b8 std::size_t _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bm_\bi_\bn_\bR_\bo_\bw_\bS_\bi_\bz_\be()\n-529 {\n-530 return minRowSize_;\n-531 }\n-532\n-533 template\n-_\b5_\b3_\b4 std::size_t _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bs_\bu_\bm_\bR_\bo_\bw_\bS_\bi_\bz_\be()\n-535 {\n-536 return sumRowSize_;\n-537 }\n-538 template\n-_\b5_\b3_\b9 void _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n-540 {\n-541 sumRowSize_ += row_.size();\n-542 minRowSize_=std::min(minRowSize_, row_.size());\n-543 maxRowSize_=std::max(maxRowSize_, row_.size());\n-544 ++row_;\n-545#ifdef DUNE_ISTL_WITH_CHECKING\n-546 assert(diagonalInserted);\n-547 diagonalInserted = false;\n-548#endif\n-549 }\n-550\n-551 template\n-_\b5_\b5_\b2 void _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b>_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt(const typename M::size_type& index)\n-553 {\n-554 row_.insert(index);\n-555#ifdef DUNE_ISTL_WITH_CHECKING\n-556 diagonalInserted = diagonalInserted || row_.index()==index;\n-557#endif\n-558 }\n-559\n-560 template\n-561 template\n-562 typename G::MutableMatrix*\n-_\b5_\b6_\b3 _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bT_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd(G& fineGraph, V& visitedMap,\n-564 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-565 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-566 const typename G::Matrix::size_type& size,\n-567 const Set& overlap)\n-568 {\n-569 typedef _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b> _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx;\n-570\n-571 std::size_t count;\n-572\n-573 const _\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx* overlapVertices = buildOverlapVertices(fineGraph,\n-574 pinfo,\n-575 aggregates,\n-576 overlap,\n-577 count);\n-578 typedef typename G::MutableMatrix M;\n-579 M* coarseMatrix = new M(size, size, M::row_wise);\n-580\n-581 // Reset the visited flags of all vertices.\n-582 // As the isolated nodes will be skipped we simply mark them as visited\n-583\n-584 typedef typename G::VertexIterator Vertex;\n-585 Vertex vend = fineGraph.end();\n-586 for(Vertex vertex = fineGraph.begin(); vertex != vend; ++vertex) {\n-587 assert(aggregates[*vertex] != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:\n-_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n-588 put(visitedMap, *vertex, aggregates[*vertex]==_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n-589 }\n+527 else\n+528 {\n+529 using Criterion = _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn<\n+530 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b,_\bN_\bo_\br_\bm_\b> >;\n+531 Criterion criterion;\n+532 createHierarchies(criterion, matrixptr, pinfo, configuration);\n+533 }\n+534 }\n+535\n+536 template\n+537 template\n+538 void AMG::createHierarchies(C& criterion, std::shared_ptr matrixptr, const PI& pinfo, const ParameterTree& configuration)\n+539 {\n+540 if (configuration.hasKey (\"maxLevel\"))\n+541 criterion.setMaxLevel(configuration.get(\"maxLevel\"));\n+542\n+543 if (configuration.hasKey (\"minCoarseningRate\"))\n+544 criterion.setMinCoarsenRate(configuration.get(\"minCoarseningRate\"));\n+545\n+546 if (configuration.hasKey (\"coarsenTarget\"))\n+547 criterion.setCoarsenTarget (configuration.get(\"coarsenTarget\"));\n+548\n+549 if (configuration.hasKey (\"accumulationMode\"))\n+550 {\n+551 std::string mode = ToLower()(configuration.get\n+(\"accumulationMode\"));\n+552 if ( mode == \"none\")\n+553 criterion.setAccumulate(_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be_\b:_\b:_\bn_\bo_\bA_\bc_\bc_\bu);\n+554 else if ( mode == \"atonce\" )\n+555 criterion.setAccumulate(_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be_\b:_\b:_\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu);\n+556 else if ( mode == \"successive\")\n+557 criterion.setCoarsenTarget (_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be_\b:_\b:_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu);\n+558 else\n+559 DUNE_THROW(InvalidSolverFactoryConfiguration, \"Parameter accumulationMode\n+does not allow value \"\n+560 << mode <<\".\");\n+561 }\n+562\n+563 if (configuration.hasKey (\"prolongationDampingFactor\"))\n+564 criterion.setProlongationDampingFactor (configuration.get\n+(\"prolongationDampingFactor\"));\n+565\n+566 if (configuration.hasKey(\"defaultAggregationSizeMode\"))\n+567 {\n+568 auto mode = ToLower()(configuration.get\n+(\"defaultAggregationSizeMode\"));\n+569 auto dim = configuration.get(\"defaultAggregationDimension\");\n+570 std::size_t maxDistance = 2;\n+571 if (configuration.hasKey(\"MaxAggregateDistance\"))\n+572 maxDistance = configuration.get(\"maxAggregateDistance\");\n+573 if (mode == \"isotropic\")\n+574 criterion.setDefaultValuesIsotropic(dim, maxDistance);\n+575 else if(mode == \"anisotropic\")\n+576 criterion.setDefaultValuesAnisotropic(dim, maxDistance);\n+577 else\n+578 DUNE_THROW(InvalidSolverFactoryConfiguration, \"Parameter accumulationMode\n+does not allow value \"\n+579 << mode <<\".\");\n+580 }\n+581\n+582 if (configuration.hasKey(\"maxAggregateDistance\"))\n+583 criterion.setMaxDistance(configuration.get\n+(\"maxAggregateDistance\"));\n+584\n+585 if (configuration.hasKey(\"minAggregateSize\"))\n+586 criterion.setMinAggregateSize(configuration.get\n+(\"minAggregateSize\"));\n+587\n+588 if (configuration.hasKey(\"maxAggregateSize\"))\n+589 criterion.setMaxAggregateSize(configuration.get\n+(\"maxAggregateSize\"));\n 590\n-591 typedef typename G::MutableMatrix M;\n-592 _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b> sparsityBuilder(*coarseMatrix);\n+591 if (configuration.hasKey(\"maxAggregateConnectivity\"))\n+592 criterion.setMaxConnectivity(configuration.get\n+(\"maxAggregateConnectivity\"));\n 593\n-594 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\bG_\b,_\bT_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(fineGraph, visitedMap, pinfo,\n-595 aggregates, overlap,\n-596 overlapVertices,\n-597 overlapVertices+count,\n-598 sparsityBuilder);\n+594 if (configuration.hasKey (\"alpha\"))\n+595 criterion.setAlpha (configuration.get (\"alpha\"));\n+596\n+597 if (configuration.hasKey (\"beta\"))\n+598 criterion.setBeta (configuration.get (\"beta\"));\n 599\n-600 dinfo<N\n-()<<\"x\"<M()<<\" row: min=\"<(sparsityBuilder._\bs_\bu_\bm_\bR_\bo_\bw_\bS_\bi_\bz_\be())/coarseMatrix->N()\n-603 <\n-611 typename G::MutableMatrix*\n-_\b6_\b1_\b2 _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bb_\bu_\bi_\bl_\bd(G& fineGraph, V& visitedMap,\n-613 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-614 const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>& aggregates,\n-615 const typename G::Matrix::size_type& size,\n-616 [[maybe_unused]] const Set& overlap)\n-617 {\n-618 typedef typename G::MutableMatrix M;\n-619 M* coarseMatrix = new M(size, size, M::row_wise);\n-620\n-621 // Reset the visited flags of all vertices.\n-622 // As the isolated nodes will be skipped we simply mark them as visited\n-623\n-624 typedef typename G::VertexIterator Vertex;\n-625 Vertex vend = fineGraph.end();\n-626 for(Vertex vertex = fineGraph.begin(); vertex != vend; ++vertex) {\n-627 assert(aggregates[*vertex] != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:\n-_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n-628 put(visitedMap, *vertex, aggregates[*vertex]==_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bG_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bo_\br_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n-629 }\n-630\n-631 _\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\bM_\b> sparsityBuilder(*coarseMatrix);\n-632\n-633 _\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\bG_\b,_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be(fineGraph,\n-visitedMap, pinfo,\n-634 aggregates, sparsityBuilder);\n-635 dinfo<<\"Matrix row: min=\"<(sparsityBuilder._\bs_\bu_\bm_\bR_\bo_\bw_\bS_\bi_\bz_\be())/coarseMatrix->N\n-()<\n-_\b6_\b4_\b2 void _\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be(const M& fine, const _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>&\n-aggregates, M& coarse,\n-643 const P& pinfo, [[maybe_unused]] const O& copy)\n-644 {\n-645 coarse = static_cast(0);\n-646\n-647 typedef typename M::ConstIterator RowIterator;\n-648 RowIterator endRow = fine.end();\n-649\n-650 for(RowIterator row = fine.begin(); row != endRow; ++row)\n-651 if(aggregates[row.index()] != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n-652 assert(aggregates[row.index()]!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n-653 typedef typename M::ConstColIterator ColIterator;\n-654 ColIterator endCol = row->end();\n-655\n-656 for(ColIterator _\bc_\bo_\bl = row->begin(); _\bc_\bo_\bl != endCol; ++_\bc_\bo_\bl)\n-657 if(aggregates[_\bc_\bo_\bl.index()] != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n-658 assert(aggregates[row.index()]!=_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\b>_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n-659 coarse[aggregates[row.index()]][aggregates[_\bc_\bo_\bl.index()]]+=*_\bc_\bo_\bl;\n-660 }\n-661 }\n-662\n-663 // get the right diagonal matrix values on copy lines from owner processes\n-664 typedef typename M::block_type BlockType;\n-665 std::vector rowsize(coarse.N(),BlockType(0));\n-666 for (RowIterator row = coarse.begin(); row != coarse.end(); ++row)\n-667 rowsize[row.index()]=coarse[row.index()][row.index()];\n-668 pinfo.copyOwnerToAll(rowsize,rowsize);\n-669 for (RowIterator row = coarse.begin(); row != coarse.end(); ++row)\n-670 coarse[row.index()][row.index()] = rowsize[row.index()];\n-671\n-672 // don't set dirichlet boundaries for copy lines to make novlp case work,\n-673 // the preconditioner yields slightly different results now.\n-674\n-675 // Set the dirichlet border\n-676 //DirichletBoundarySetter

    ::template set(coarse, pinfo, copy);\n-677\n-678 }\n-679\n-680 template\n-681 template\n-_\b6_\b8_\b2 void _\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br_\b<_\bT_\b>_\b:_\b:_\bs_\be_\bt(M& coarse, const T& pinfo, const O&\n-copy)\n-683 {\n-684 typedef typename T::ParallelIndexSet::const_iterator ConstIterator;\n-685 ConstIterator end = pinfo.indexSet().end();\n-686 typedef typename M::block_type Block;\n-687 Block identity=Block(0.0);\n-688 for(typename Block::RowIterator b=identity.begin(); b != identity.end();\n-++b)\n-689 b->operator[](b.index())=1.0;\n-690\n-691 for(ConstIterator index = pinfo.indexSet().begin();\n-692 index != end; ++index) {\n-693 if(copy.contains(index->local().attribute())) {\n-694 typedef typename M::ColIterator ColIterator;\n-695 typedef typename M::row_type Row;\n-696 Row row = coarse[index->local()];\n-697 ColIterator cend = row.find(index->local());\n-698 ColIterator _\bc_\bo_\bl = row.begin();\n-699 for(; _\bc_\bo_\bl != cend; ++_\bc_\bo_\bl)\n-700 *_\bc_\bo_\bl = 0;\n-701\n-702 cend = row.end();\n-703\n-704 assert(_\bc_\bo_\bl != cend); // There should be a diagonal entry\n-705 *_\bc_\bo_\bl = identity;\n-706\n-707 for(++_\bc_\bo_\bl; _\bc_\bo_\bl != cend; ++_\bc_\bo_\bl)\n-708 *_\bc_\bo_\bl = 0;\n-709 }\n-710 }\n-711 }\n-712\n-713 template\n-_\b7_\b1_\b4 void _\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br_\b<_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>_\b:_\b:_\bs_\be_\bt(M& coarse,\n-715 const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-716 const O& overlap)\n-717 {}\n-718\n-719 } // namespace Amg\n-720} // namespace Dune\n-721#endif\n-_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n-Provides classes for the Coloring process of AMG.\n-_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n+600 if (configuration.hasKey (\"gamma\"))\n+601 criterion.setGamma (configuration.get (\"gamma\"));\n+602 gamma_ = criterion.getGamma();\n+603\n+604 if (configuration.hasKey (\"additive\"))\n+605 criterion.setAdditive (configuration.get(\"additive\"));\n+606 additive = criterion.getAdditive();\n+607\n+608 if (configuration.hasKey (\"preSteps\"))\n+609 criterion.setNoPreSmoothSteps (configuration.get\n+(\"preSteps\"));\n+610 preSteps_ = criterion.getNoPreSmoothSteps ();\n+611\n+612 if (configuration.hasKey (\"postSteps\"))\n+613 criterion.setNoPostSmoothSteps (configuration.get\n+(\"postSteps\"));\n+614 postSteps_ = criterion.getNoPostSmoothSteps ();\n+615\n+616 verbosity_ = configuration.get(\"verbosity\", 0);\n+617 criterion.setDebugLevel (verbosity_);\n+618\n+619 createHierarchies(criterion, matrixptr, pinfo);\n+620 }\n+621\n+622 template \n+_\b6_\b2_\b4 struct _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+625 {\n+_\b6_\b2_\b6 typedef typename Matrix :: field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b6_\b2_\b7 enum _\bS_\bo_\bl_\bv_\be_\br_\bT_\by_\bp_\be { _\bu_\bm_\bf_\bp_\ba_\bc_\bk, _\bs_\bu_\bp_\be_\br_\bl_\bu, _\bn_\bo_\bn_\be };\n+628\n+_\b6_\b2_\b9 static constexpr _\bS_\bo_\bl_\bv_\be_\br_\bT_\by_\bp_\be _\bs_\bo_\bl_\bv_\be_\br =\n+630#if DISABLE_AMG_DIRECTSOLVER\n+631 _\bn_\bo_\bn_\be;\n+632#elif HAVE_SUITESPARSE_UMFPACK\n+633 _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b> :: valid ? _\bu_\bm_\bf_\bp_\ba_\bc_\bk :\n+_\bn_\bo_\bn_\be ;\n+634#elif HAVE_SUPERLU\n+635 _\bs_\bu_\bp_\be_\br_\bl_\bu ;\n+636#else\n+637 _\bn_\bo_\bn_\be;\n+638#endif\n+639\n+640 template \n+_\b6_\b4_\b1 struct _\bS_\bo_\bl_\bv_\be_\br\n+642 {\n+_\b6_\b4_\b3 typedef _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bV_\be_\bc_\bt_\bo_\br_\b,_\bV_\be_\bc_\bt_\bo_\br_\b> _\bt_\by_\bp_\be;\n+_\b6_\b4_\b4 static _\bt_\by_\bp_\be* _\bc_\br_\be_\ba_\bt_\be(const M& _\bm_\ba_\bt, bool verbose, bool reusevector )\n+645 {\n+646 DUNE_THROW(NotImplemented,\"DirectSolver not selected\");\n+647 return nullptr;\n+648 }\n+_\b6_\b4_\b9 static std::string _\bn_\ba_\bm_\be () { return \"None\"; }\n+650 };\n+651#if HAVE_SUITESPARSE_UMFPACK\n+652 template \n+653 struct Solver< M, _\bu_\bm_\bf_\bp_\ba_\bc_\bk >\n+654 {\n+655 typedef _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b<_\b _\bM_\b _\b> _\bt_\by_\bp_\be;\n+656 static _\bt_\by_\bp_\be* _\bc_\br_\be_\ba_\bt_\be(const M& _\bm_\ba_\bt, bool verbose, bool reusevector )\n+657 {\n+658 return new _\bt_\by_\bp_\be(_\bm_\ba_\bt, verbose, reusevector );\n+659 }\n+660 static std::string _\bn_\ba_\bm_\be () { return \"UMFPack\"; }\n+661 };\n+662#endif\n+663#if HAVE_SUPERLU\n+664 template \n+_\b6_\b6_\b5 struct _\bS_\bo_\bl_\bv_\be_\br< M, _\bs_\bu_\bp_\be_\br_\bl_\bu >\n+666 {\n+_\b6_\b6_\b7 typedef _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\b _\bM_\b _\b> _\bt_\by_\bp_\be;\n+_\b6_\b6_\b8 static _\bt_\by_\bp_\be* _\bc_\br_\be_\ba_\bt_\be(const M& _\bm_\ba_\bt, bool verbose, bool reusevector )\n+669 {\n+670 return new _\bt_\by_\bp_\be(_\bm_\ba_\bt, verbose, reusevector );\n+671 }\n+_\b6_\b7_\b2 static std::string _\bn_\ba_\bm_\be () { return \"SuperLU\"; }\n+673 };\n+674#endif\n+675\n+676 // define direct solver type to be used\n+_\b6_\b7_\b7 typedef _\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bs_\bo_\bl_\bv_\be_\br_\b _\b> _\bS_\be_\bl_\be_\bc_\bt_\be_\bd_\bS_\bo_\bl_\bv_\be_\br ;\n+_\b6_\b7_\b8 typedef typename SelectedSolver :: type _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br;\n+_\b6_\b7_\b9 static constexpr bool _\bi_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br = _\bs_\bo_\bl_\bv_\be_\br != _\bn_\bo_\bn_\be;\n+_\b6_\b8_\b0 static std::string _\bn_\ba_\bm_\be() { return SelectedSolver :: name (); }\n+_\b6_\b8_\b1 static _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br* _\bc_\br_\be_\ba_\bt_\be(const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt, bool verbose, bool\n+reusevector )\n+682 {\n+683 return SelectedSolver :: create( _\bm_\ba_\bt, verbose, reusevector );\n+684 }\n+685 };\n+686\n+687 template\n+688 template\n+689 void AMG::createHierarchies(C& criterion,\n+690 const std::shared_ptr& matrixptr,\n+691 const PI& pinfo)\n+692 {\n+693 Timer watch;\n+694 matrices_ = std::make_shared(\n+695 std::const_pointer_cast(matrixptr),\n+696 stackobject_to_shared_ptr(const_cast(pinfo)));\n+697\n+698 matrices_->template build >(criterion);\n+699\n+700 // build the necessary smoother hierarchies\n+701 matrices_->coarsenSmoother(*smoothers_, smootherArgs_);\n+702\n+703 // test whether we should solve on the coarse level. That is the case if we\n+704 // have that level and if there was a redistribution on this level then our\n+705 // communicator has to be valid (size()>0) as the smoother might try to\n+communicate\n+706 // in the constructor.\n+707 if(buildHierarchy_ && matrices_->levels()==matrices_->maxlevels()\n+708 && ( ! matrices_->redistributeInformation().back().isSetup() ||\n+709 matrices_->parallelInformation().coarsest().getRedistributed().communicator\n+().size() ) )\n+710 {\n+711 // We have the carsest level. Create the coarse Solver\n+712 SmootherArgs sargs(smootherArgs_);\n+713 sargs.iterations = 1;\n+714\n+715 typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs cargs;\n+716 cargs.setArgs(sargs);\n+717 if(matrices_->redistributeInformation().back().isSetup()) {\n+718 // Solve on the redistributed partitioning\n+719 cargs.setMatrix(matrices_->matrices().coarsest().getRedistributed().getmat\n+());\n+720 cargs.setComm(matrices_->parallelInformation().coarsest().getRedistributed\n+());\n+721 }else{\n+722 cargs.setMatrix(matrices_->matrices().coarsest()->getmat());\n+723 cargs.setComm(*matrices_->parallelInformation().coarsest());\n+724 }\n+725\n+726 coarseSmoother_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(cargs);\n+727 scalarProduct_ = createScalarProduct(cargs.getComm(),category());\n+728\n+729 typedef DirectSolverSelector< typename M::matrix_type, X > SolverSelector;\n+730\n+731 // Use superlu if we are purely sequential or with only one processor on\n+the coarsest level.\n+732 if( SolverSelector::isDirectSolver &&\n+733 (std::is_same::value /\n+/ sequential mode\n+734 || matrices_->parallelInformation().coarsest()->communicator().size()==1 //\n+parallel mode and only one processor\n+735 || (matrices_->parallelInformation().coarsest().isRedistributed()\n+736 && matrices_->parallelInformation().coarsest().getRedistributed\n+().communicator().size()==1\n+737 && matrices_->parallelInformation().coarsest().getRedistributed\n+().communicator().size()>0) )\n+738 )\n+739 { // redistribute and 1 proc\n+740 if(matrices_->parallelInformation().coarsest().isRedistributed())\n+741 {\n+742 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)\n+743 {\n+744 // We are still participating on this level\n+745 solver_.reset(SolverSelector::create(matrices_->matrices().coarsest\n+().getRedistributed().getmat(), false, false));\n+746 }\n+747 else\n+748 solver_.reset();\n+749 }\n+750 else\n+751 {\n+752 solver_.reset(SolverSelector::create(matrices_->matrices().coarsest()-\n+>getmat(), false, false));\n+753 }\n+754 if(verbosity_>0 && matrices_->parallelInformation().coarsest()-\n+>communicator().rank()==0)\n+755 std::cout<< \"Using a direct coarse solver (\" << SolverSelector::name() <<\n+\")\" << std::endl;\n+756 }\n+757 else\n+758 {\n+759 if(matrices_->parallelInformation().coarsest().isRedistributed())\n+760 {\n+761 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)\n+762 // We are still participating on this level\n+763\n+764 // we have to allocate these types using the rebound allocator\n+765 // in order to ensure that we fulfill the alignment requirements\n+766 solver_.reset(new BiCGSTABSolver(const_cast(matrices_->matrices\n+().coarsest().getRedistributed()),\n+767 *scalarProduct_,\n+768 *coarseSmoother_, 1E-2, 1000, 0));\n+769 else\n+770 solver_.reset();\n+771 }else\n+772 {\n+773 solver_.reset(new BiCGSTABSolver(const_cast(*matrices_->matrices\n+().coarsest()),\n+774 *scalarProduct_,\n+775 *coarseSmoother_, 1E-2, 1000, 0));\n+776 // // we have to allocate these types using the rebound allocator\n+777 // // in order to ensure that we fulfill the alignment requirements\n+778 // using Alloc = typename std::allocator_traits::template\n+rebind_alloc>;\n+779 // Alloc alloc;\n+780 // auto p = alloc.allocate(1);\n+781 // std::allocator_traits::construct(alloc, p,\n+782 // const_cast(*matrices_->matrices().coarsest()),\n+783 // *scalarProduct_,\n+784 // *coarseSmoother_, 1E-2, 1000, 0);\n+785 // solver_.reset(p,[](BiCGSTABSolver* p){\n+786 // Alloc alloc;\n+787 // std::allocator_traits::destroy(alloc, p);\n+788 // alloc.deallocate(p,1);\n+789 // });\n+790 }\n+791 }\n+792 }\n+793\n+794 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator\n+().rank()==0)\n+795 std::cout<<\"Building hierarchy of \"<maxlevels()<<\" levels \"\n+796 <<\"(including coarse solver) took \"<\n+_\b8_\b0_\b1 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b)\n+802 {\n+803 // Detect Matrix rows where all offdiagonal entries are\n+804 // zero and set x such that A_dd*x_d=b_d\n+805 // Thus users can be more careless when setting up their linear\n+806 // systems.\n+807 typedef typename M::matrix_type _\bM_\ba_\bt_\br_\bi_\bx;\n+808 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br RowIter;\n+809 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ColIter;\n+810 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be Block;\n+811 Block zero;\n+812 zero=typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be();\n+813\n+814 const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt=matrices_->matrices().finest()->getmat();\n+815 for(RowIter row=_\bm_\ba_\bt.begin(); row!=_\bm_\ba_\bt.end(); ++row) {\n+816 bool isDirichlet = true;\n+817 bool hasDiagonal = false;\n+818 Block diagonal{};\n+819 for(ColIter _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl!=row->end(); ++_\bc_\bo_\bl) {\n+820 if(row.index()==_\bc_\bo_\bl.index()) {\n+821 diagonal = *_\bc_\bo_\bl;\n+822 hasDiagonal = true;\n+823 }else{\n+824 if(*_\bc_\bo_\bl!=zero)\n+825 isDirichlet = false;\n+826 }\n+827 }\n+828 if(isDirichlet && hasDiagonal)\n+829 {\n+830 auto&& xEntry = Impl::asVector(x[row.index()]);\n+831 auto&& bEntry = Impl::asVector(b[row.index()]);\n+832 Impl::asMatrix(diagonal).solve(xEntry, bEntry);\n+833 }\n+834 }\n+835\n+836 if(smoothers_->levels()>0)\n+837 smoothers_->finest()->pre(x,b);\n+838 else\n+839 // No smoother to make x consistent! Do it by hand\n+840 matrices_->parallelInformation().coarsest()->copyOwnerToAll(x,x);\n+841 rhs_ = std::make_shared>(std::make_shared(b));\n+842 lhs_ = std::make_shared>(std::make_shared(x));\n+843 update_ = std::make_shared>(std::make_shared\n+(x));\n+844 matrices_->coarsenVector(*rhs_);\n+845 matrices_->coarsenVector(*lhs_);\n+846 matrices_->coarsenVector(*update_);\n+847\n+848 // Preprocess all smoothers\n+849 typedef typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n+850 typedef typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bR_\ba_\bn_\bg_\be_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br RIterator;\n+851 typedef typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br DIterator;\n+852 Iterator coarsest = smoothers_->coarsest();\n+853 Iterator smoother = smoothers_->finest();\n+854 RIterator rhs = rhs_->finest();\n+855 DIterator lhs = lhs_->finest();\n+856 if(smoothers_->levels()>1) {\n+857\n+858 assert(lhs_->levels()==rhs_->levels());\n+859 assert(smoothers_->levels()==lhs_->levels() || matrices_->levels\n+()==matrices_->maxlevels());\n+860 assert(smoothers_->levels()+1==lhs_->levels() || matrices_->levels\n+()maxlevels());\n+861\n+862 if(smoother!=coarsest)\n+863 for(++smoother, ++lhs, ++rhs; smoother != coarsest; ++smoother, ++lhs,\n+++rhs)\n+864 smoother->pre(*lhs,*rhs);\n+865 smoother->pre(*lhs,*rhs);\n+866 }\n+867\n+868\n+869 // The preconditioner might change x and b. So we have to\n+870 // copy the changes to the original vectors.\n+871 x = *lhs_->finest();\n+872 b = *rhs_->finest();\n+873\n+874 }\n+875 template\n+_\b8_\b7_\b6 std::size_t _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs()\n+877 {\n+878 return matrices_->levels();\n+879 }\n+880 template\n+_\b8_\b8_\b1 std::size_t _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs()\n+882 {\n+883 return matrices_->maxlevels();\n+884 }\n+885\n+887 template\n+_\b8_\b8_\b8 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n+889 {\n+890 LevelContext levelContext;\n+891\n+892 if(additive) {\n+893 *(rhs_->finest())=d;\n+894 additiveMgc();\n+895 v=*lhs_->finest();\n+896 }else{\n+897 // Init all iterators for the current level\n+898 initIteratorsWithFineLevel(levelContext);\n+899\n+900\n+901 *levelContext.lhs = v;\n+902 *levelContext.rhs = d;\n+903 *levelContext.update=0;\n+904 levelContext.level=0;\n+905\n+906 mgc(levelContext);\n+907\n+908 if(postSteps_==0||matrices_->maxlevels()==1)\n+909 levelContext.pinfo->copyOwnerToAll(*levelContext.update,\n+*levelContext.update);\n+910\n+911 v=*levelContext.update;\n+912 }\n+913\n+914 }\n+915\n+916 template\n+917 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bs_\bW_\bi_\bt_\bh_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl(LevelContext&\n+levelContext)\n+918 {\n+919 levelContext.smoother = smoothers_->finest();\n+920 levelContext.matrix = matrices_->matrices().finest();\n+921 levelContext.pinfo = matrices_->parallelInformation().finest();\n+922 levelContext.redist =\n+923 matrices_->redistributeInformation().begin();\n+924 levelContext.aggregates = matrices_->aggregatesMaps().begin();\n+925 levelContext.lhs = lhs_->finest();\n+926 levelContext.update = update_->finest();\n+927 levelContext.rhs = rhs_->finest();\n+928 }\n+929\n+930 template\n+931 bool AMG\n+932 ::moveToCoarseLevel(LevelContext& levelContext)\n+933 {\n+934\n+935 bool processNextLevel=true;\n+936\n+937 if(levelContext.redist->isSetup()) {\n+938 levelContext.redist->redistribute(static_cast\n+(*levelContext.rhs),\n+939 levelContext.rhs.getRedistributed());\n+940 processNextLevel = levelContext.rhs.getRedistributed().size()>0;\n+941 if(processNextLevel) {\n+942 //restrict defect to coarse level right hand side.\n+943 typename Hierarchy::Iterator fineRhs = levelContext.rhs++;\n+944 ++levelContext.pinfo;\n+945 Transfer\n+946 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,\n+947 static_cast(fineRhs.getRedistributed()),\n+948 *levelContext.pinfo);\n+949 }\n+950 }else{\n+951 //restrict defect to coarse level right hand side.\n+952 typename Hierarchy::Iterator fineRhs = levelContext.rhs++;\n+953 ++levelContext.pinfo;\n+954 Transfer\n+955 ::restrictVector(*(*levelContext.aggregates),\n+956 *levelContext.rhs, static_cast(*fineRhs),\n+957 *levelContext.pinfo);\n+958 }\n+959\n+960 if(processNextLevel) {\n+961 // prepare coarse system\n+962 ++levelContext.lhs;\n+963 ++levelContext.update;\n+964 ++levelContext.matrix;\n+965 ++levelContext.level;\n+966 ++levelContext.redist;\n+967\n+968 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_-\n+>levels()maxlevels()) {\n+969 // next level is not the globally coarsest one\n+970 ++levelContext.smoother;\n+971 ++levelContext.aggregates;\n+972 }\n+973 // prepare the update on the next level\n+974 *levelContext.update=0;\n+975 }\n+976 return processNextLevel;\n+977 }\n+978\n+979 template\n+980 void AMG\n+981 ::moveToFineLevel(LevelContext& levelContext, bool processNextLevel)\n+982 {\n+983 if(processNextLevel) {\n+984 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_-\n+>levels()maxlevels()) {\n+985 // previous level is not the globally coarsest one\n+986 --levelContext.smoother;\n+987 --levelContext.aggregates;\n+988 }\n+989 --levelContext.redist;\n+990 --levelContext.level;\n+991 //prolongate and add the correction (update is in coarse left hand side)\n+992 --levelContext.matrix;\n+993\n+994 //typename Hierarchy::Iterator coarseLhs = lhs--;\n+995 --levelContext.lhs;\n+996 --levelContext.pinfo;\n+997 }\n+998 if(levelContext.redist->isSetup()) {\n+999 // Need to redistribute during prolongateVector\n+1000 levelContext.lhs.getRedistributed()=0;\n+1001 Transfer\n+1002 ::prolongateVector(*(*levelContext.aggregates), *levelContext.update,\n+*levelContext.lhs,\n+1003 levelContext.lhs.getRedistributed(),\n+1004 matrices_->getProlongationDampingFactor(),\n+1005 *levelContext.pinfo, *levelContext.redist);\n+1006 }else{\n+1007 *levelContext.lhs=0;\n+1008 Transfer\n+1009 ::prolongateVector(*(*levelContext.aggregates), *levelContext.update,\n+*levelContext.lhs,\n+1010 matrices_->getProlongationDampingFactor(),\n+1011 *levelContext.pinfo);\n+1012 }\n+1013\n+1014\n+1015 if(processNextLevel) {\n+1016 --levelContext.update;\n+1017 --levelContext.rhs;\n+1018 }\n+1019\n+1020 *levelContext.update += *levelContext.lhs;\n+1021 }\n+1022\n+1023 template\n+_\b1_\b0_\b2_\b4 bool _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br() const\n+1025 {\n+1026 return _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be;\n+1027 }\n+1028\n+1029 template\n+1030 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bm_\bg_\bc(LevelContext& levelContext){\n+1031 if(levelContext.matrix == matrices_->matrices().coarsest() && levels\n+()==maxlevels()) {\n+1032 // Solve directly\n+1033 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n+1034 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd=true; // If we do not compute this flag will not get updated\n+1035 if(levelContext.redist->isSetup()) {\n+1036 levelContext.redist->redistribute(*levelContext.rhs,\n+levelContext.rhs.getRedistributed());\n+1037 if(levelContext.rhs.getRedistributed().size()>0) {\n+1038 // We are still participating in the computation\n+1039 levelContext.pinfo.getRedistributed().copyOwnerToAll\n+(levelContext.rhs.getRedistributed(),\n+1040 levelContext.rhs.getRedistributed());\n+1041 solver_->apply(levelContext.update.getRedistributed(),\n+1042 levelContext.rhs.getRedistributed(), res);\n+1043 }\n+1044 levelContext.redist->redistributeBackward(*levelContext.update,\n+levelContext.update.getRedistributed());\n+1045 levelContext.pinfo->copyOwnerToAll(*levelContext.update,\n+*levelContext.update);\n+1046 }else{\n+1047 levelContext.pinfo->copyOwnerToAll(*levelContext.rhs, *levelContext.rhs);\n+1048 solver_->apply(*levelContext.update, *levelContext.rhs, res);\n+1049 }\n+1050\n+1051 if (!res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd)\n+1052 coarsesolverconverged = false;\n+1053 }else{\n+1054 // presmoothing\n+1055 _\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh(levelContext, preSteps_);\n+1056\n+1057#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION\n+1058 bool processNextLevel = moveToCoarseLevel(levelContext);\n+1059\n+1060 if(processNextLevel) {\n+1061 // next level\n+1062 for(std::size_t i=0; imatrices().coarsest() && levels\n+()==maxlevels())\n+1065 break;\n+1066 if(i+1 < gamma_){\n+1067 levelContext.matrix->applyscaleadd(-1., *levelContext.lhs,\n+*levelContext.rhs);\n+1068 }\n+1069 }\n+1070 }\n+1071\n+1072 moveToFineLevel(levelContext, processNextLevel);\n+1073#else\n+1074 *lhs=0;\n+1075#endif\n+1076\n+1077 if(levelContext.matrix == matrices_->matrices().finest()) {\n+1078 coarsesolverconverged = matrices_->parallelInformation().finest()-\n+>communicator().prod(coarsesolverconverged);\n+1079 if(!coarsesolverconverged)\n+1080 DUNE_THROW(MathError, \"Coarse solver did not converge\");\n+1081 }\n+1082 // postsmoothing\n+1083 _\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh(levelContext, postSteps_);\n+1084\n+1085 }\n+1086 }\n+1087\n+1088 template\n+1089 void AMG::additiveMgc(){\n+1090\n+1091 // restrict residual to all levels\n+1092 typename ParallelInformationHierarchy::Iterator pinfo=matrices_-\n+>parallelInformation().finest();\n+1093 typename Hierarchy::Iterator rhs=rhs_->finest();\n+1094 typename Hierarchy::Iterator lhs = lhs_->finest();\n+1095 typename OperatorHierarchy::AggregatesMapList::const_iterator\n+aggregates=matrices_->aggregatesMaps().begin();\n+1096\n+1097 for(typename Hierarchy::Iterator fineRhs=rhs++; fineRhs != rhs_-\n+>coarsest(); fineRhs=rhs++, ++aggregates) {\n+1098 ++pinfo;\n+1099 Transfer\n+1100 ::restrictVector(*(*aggregates), *rhs, static_cast\n+(*fineRhs), *pinfo);\n+1101 }\n+1102\n+1103 // pinfo is invalid, set to coarsest level\n+1104 //pinfo = matrices_->parallelInformation().coarsest\n+1105 // calculate correction for all levels\n+1106 lhs = lhs_->finest();\n+1107 typename Hierarchy::Iterator smoother = smoothers_->finest();\n+1108\n+1109 for(rhs=rhs_->finest(); rhs != rhs_->coarsest(); ++lhs, ++rhs, ++smoother)\n+{\n+1110 // presmoothing\n+1111 *lhs=0;\n+1112 smoother->apply(*lhs, *rhs);\n+1113 }\n+1114\n+1115 // Coarse level solve\n+1116#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION\n+1117 InverseOperatorResult res;\n+1118 pinfo->copyOwnerToAll(*rhs, *rhs);\n+1119 solver_->apply(*lhs, *rhs, res);\n+1120\n+1121 if(!res.converged)\n+1122 DUNE_THROW(MathError, \"Coarse solver did not converge\");\n+1123#else\n+1124 *lhs=0;\n+1125#endif\n+1126 // Prologate and add up corrections from all levels\n+1127 --pinfo;\n+1128 --aggregates;\n+1129\n+1130 for(typename Hierarchy::Iterator coarseLhs = lhs--; coarseLhs !=\n+lhs_->finest(); coarseLhs = lhs--, --aggregates, --pinfo) {\n+1131 Transfer\n+1132 ::prolongateVector(*(*aggregates), *coarseLhs, *lhs, 1.0, *pinfo);\n+1133 }\n+1134 }\n+1135\n+1136\n+1138 template\n+_\b1_\b1_\b3_\b9 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bp_\bo_\bs_\bt([[maybe_unused]] _\bD_\bo_\bm_\ba_\bi_\bn& x)\n+1140 {\n+1141 // Postprocess all smoothers\n+1142 typedef typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n+1143 typedef typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br DIterator;\n+1144 Iterator coarsest = smoothers_->coarsest();\n+1145 Iterator smoother = smoothers_->finest();\n+1146 DIterator lhs = lhs_->finest();\n+1147 if(smoothers_->levels()>0) {\n+1148 if(smoother != coarsest || matrices_->levels()maxlevels())\n+1149 smoother->post(*lhs);\n+1150 if(smoother!=coarsest)\n+1151 for(++smoother, ++lhs; smoother != coarsest; ++smoother, ++lhs)\n+1152 smoother->post(*lhs);\n+1153 smoother->post(*lhs);\n+1154 }\n+1155 lhs_ = nullptr;\n+1156 update_ = nullptr;\n+1157 rhs_ = nullptr;\n+1158 }\n+1159\n+1160 template\n+1161 template\n+_\b1_\b1_\b6_\b2 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs(std::vector& cont)\n+1163 {\n+1164 matrices_->getCoarsestAggregatesOnFinest(cont);\n+1165 }\n+1166\n+1167 } // end namespace Amg\n+1168\n+_\b1_\b1_\b6_\b9 struct _\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br{\n+_\b1_\b1_\b7_\b0 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be : std::false_type{};\n+_\b1_\b1_\b7_\b1 template struct\n+_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx> : std::true_type{};\n+1172\n+1173 template\n+1174 std::shared_ptr >\n+_\b1_\b1_\b7_\b5 _\bm_\ba_\bk_\be_\bA_\bM_\bG(const OP& op, const std::string& smoother, const Dune::\n+ParameterTree& config) const\n+1176 {\n+1177 DUNE_THROW(Dune::Exception, \"Operator type not supported by AMG\");\n+1178 }\n+1179\n+1180 template\n+1181 std::shared_ptr >\n+_\b1_\b1_\b8_\b2 _\bm_\ba_\bk_\be_\bA_\bM_\bG(const std::shared_ptr<_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b>>& op, const std::\n+string& smoother,\n+1183 const Dune::ParameterTree& config) const\n+1184 {\n+1185 using OP = _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b>;\n+1186\n+1187 if(smoother == \"ssor\")\n+1188 return std::make_shared>>(op, config);\n+1189 if(smoother == \"sor\")\n+1190 return std::make_shared>>(op, config);\n+1191 if(smoother == \"jac\")\n+1192 return std::make_shared>>(op, config);\n+1193 if(smoother == \"gs\")\n+1194 return std::make_shared>>(op, config);\n+1195 if(smoother == \"ilu\")\n+1196 return std::make_shared>>(op, config);\n+1197 else\n+1198 DUNE_THROW(Dune::Exception, \"Unknown smoother for AMG\");\n+1199 }\n+1200\n+1201 template\n+1202 std::shared_ptr >\n+_\b1_\b2_\b0_\b3 _\bm_\ba_\bk_\be_\bA_\bM_\bG(const std::shared_ptr<_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b>>& op,\n+const std::string& smoother,\n+1204 const Dune::ParameterTree& config) const\n+1205 {\n+1206 using OP = _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b>;\n+1207\n+1208 auto cop = std::static_pointer_cast(op);\n+1209\n+1210 if(smoother == \"ssor\")\n+1211 return std::make_shared>,C>>(cop, config, op->getCommunication\n+());\n+1212 if(smoother == \"sor\")\n+1213 return std::make_shared>,C>>(cop, config, op->getCommunication\n+());\n+1214 if(smoother == \"jac\")\n+1215 return std::make_shared>,C>>(cop, config, op->getCommunication\n+());\n+1216 if(smoother == \"gs\")\n+1217 return std::make_shared>,C>>(cop, config, op->getCommunication\n+());\n+1218 if(smoother == \"ilu\")\n+1219 return std::make_shared>,C>>(cop, config, op->getCommunication\n+());\n+1220 else\n+1221 DUNE_THROW(Dune::Exception, \"Unknown smoother for AMG\");\n+1222 }\n+1223\n+1224 template\n+1225 std::shared_ptr >\n+_\b1_\b2_\b2_\b6 _\bm_\ba_\bk_\be_\bA_\bM_\bG(const std::shared_ptr<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b>>& op,\n+const std::string& smoother,\n+1227 const Dune::ParameterTree& config) const\n+1228 {\n+1229 using OP = _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b>;\n+1230\n+1231 if(smoother == \"ssor\")\n+1232 return std::make_shared>,C>>(op, config, op-\n+>getCommunication());\n+1233 if(smoother == \"sor\")\n+1234 return std::make_shared>,C>>(op, config, op-\n+>getCommunication());\n+1235 if(smoother == \"jac\")\n+1236 return std::make_shared>,C>>(op, config, op-\n+>getCommunication());\n+1237 if(smoother == \"gs\")\n+1238 return std::make_shared>,C>>(op, config, op-\n+>getCommunication());\n+1239 if(smoother == \"ilu\")\n+1240 return std::make_shared>,C>>(op, config, op-\n+>getCommunication());\n+1241 else\n+1242 DUNE_THROW(Dune::Exception, \"Unknown smoother for AMG\");\n+1243 }\n+1244\n+1245 template\n+1246 std::shared_ptr::type,\n+1247 typename Dune::TypeListElement<2, TL>::type>>\n+_\b1_\b2_\b4_\b8 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL tl, const std::shared_ptr& op, const Dune::\n+ParameterTree& config,\n+1249 std::enable_if_t<_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bO_\bP_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:\n+_\bv_\ba_\bl_\bu_\be,int> = 0) const\n+1250 {\n+1251 using field_type = typename OP::matrix_type::field_type;\n+1252 using real_type = typename FieldTraits::real_type;\n+1253 if (!std::is_convertible())\n+1254 DUNE_THROW(_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be, \"AMG needs field_type(\" <<\n+1255 className() <<\n+1256 \") to be convertible to its real_type (\" <<\n+1257 className() <<\n+1258 \").\");\n+1259 using D = typename Dune::TypeListElement<1, decltype(tl)>::type;\n+1260 using R = typename Dune::TypeListElement<2, decltype(tl)>::type;\n+1261 std::shared_ptr> amg;\n+1262 std::string smoother = config.get(\"smoother\", \"ssor\");\n+1263 return _\bm_\ba_\bk_\be_\bA_\bM_\bG(op, smoother, config);\n+1264 }\n+1265\n+1266 template\n+1267 std::shared_ptr::type,\n+1268 typename Dune::TypeListElement<2, TL>::type>>\n+_\b1_\b2_\b6_\b9 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const std::shared_ptr& /*mat*/, const Dune::\n+ParameterTree& /*config*/,\n+1270 std::enable_if_t_\b:_\b:\n+_\bv_\ba_\bl_\bu_\be,int> = 0) const\n+1271 {\n+1272 DUNE_THROW(_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be, \"AMG needs a FieldMatrix as Matrix\n+block_type\");\n+1273 }\n+1274 };\n+1275\n+_\b1_\b2_\b7_\b6 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"amg\", _\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br());\n+1277} // end namespace Dune\n+1278\n+1279#endif\n+_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n+Define base class for scalar product and norm.\n+_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR\n+#define DUNE_REGISTER_PRECONDITIONER(name,...)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:16\n+_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh\n+Provides a classes representing the hierarchies in AMG.\n+_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\n+Classes for the generic construction and application of the smoothers.\n+_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh\n+Prolongation and restriction for amg.\n+_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n+Templates characterizing the type of a solver.\n+_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh\n+Classes for using SuperLU with ISTL matrices.\n+_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh\n+Classes for using UMFPack with ISTL matrices.\n+_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n+Implementations of the inverse operator interface.\n _\bc_\bo_\bl\n Col col\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bO_\bV_\bL_\be_\bs_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-bool operator()(const OverlapVertex< A > &o1, const OverlapVertex< A > &o2)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:155\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bN_\bo_\bn_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by\n-static void constructNonOverlapConnectivity(R &row, G &graph, V &visitedMap,\n-const AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename\n-G::VertexDescriptor &seed)\n-Construct the connectivity of an aggregate in the overlap.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:313\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh\n-G Graph\n-The type of the graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n-void operator++()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:539\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const ConstEdgeIterator &edge)\n-Process an edge pointing to another aggregate.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:359\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt\n-void insert(const typename M::size_type &index)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:552\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by\n-static void constructOverlapConnectivity(R &row, G &graph, V &visitedMap, const\n-AggregatesMap< typename G::VertexDescriptor > &aggregates, const OverlapVertex<\n-typename G::VertexDescriptor > *&seed, const OverlapVertex< typename G::\n-VertexDescriptor > *overlapEnd)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:331\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bb_\bu_\bi_\bl_\bd\n-G::MutableMatrix * build(G &fineGraph, V &visitedMap, const ParallelInformation\n-&pinfo, AggregatesMap< typename G::VertexDescriptor > &aggregates, const\n-typename G::Matrix::size_type &size, const Set ©)\n-Calculates the coarse matrix via a Galerkin product.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:563\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n-std::size_t index()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-T ParallelInformation\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-G::VertexDescriptor Vertex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:272\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n-T Aggregate\n-The aggregate descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br\n-SparsityBuilder(M &matrix)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:513\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br\n-ConnectedBuilder(const AggregatesMap< Vertex > &aggregates, Graph &graph,\n-VisitedMap &visitedMap, Set &connected)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:352\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bE_\bd_\bg_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Graph::ConstEdgeIterator ConstEdgeIterator\n-The constant edge iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:215\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-T Vertex\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:42\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b<_\b _\bG_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-G::VertexDescriptor Vertex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:288\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\be_\bx_\ba_\bm_\bi_\bn_\be\n-static void examine(G &graph, V &visitedMap, const T &pinfo, const\n-AggregatesMap< Vertex > &aggregates, const O &overlap, const OverlapVertex<\n-Vertex > *overlapVertices, const OverlapVertex< Vertex > *overlapEnd, R &row)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:420\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bM_\ba_\bp\n-V VisitedMap\n-The type of the map for marking vertices as visited.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:225\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\bN_\be_\bi_\bg_\bh_\bb_\bo_\bu_\br_\bs\n-int visitNeighbours(const G &graph, const typename G::VertexDescriptor &vertex,\n-V &visitor)\n-Visit all neighbour vertices of a vertex in a graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bS_\be_\bt\n-S Set\n-The type of the connected set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:220\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be\n-Aggregate * aggregate\n-The aggregate the vertex belongs to.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:47\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bs_\bu_\bm_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t sumRowSize()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:534\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx_\b:_\b:_\bv_\be_\br_\bt_\be_\bx\n-Vertex vertex\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bm_\bi_\bn_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t minRowSize()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:528\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br_\b:_\b:_\bs_\be_\bt\n-static void set(M &coarse, const T &pinfo, const O ©)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:682\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-Graph::VertexDescriptor Vertex\n-The vertex descriptor of the graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:230\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be\n-void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse,\n-const I &pinfo, const O ©)\n-Calculate the galerkin product.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bm_\ba_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t maxRowSize()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:523\n-_\bs_\bt_\bd\n-STL namespace.\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bA_\bM_\bG\n+AMG(const AMG &amg)\n+Copy constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:392\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bp_\br_\be\n+void pre(Domain &x, Range &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:801\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n+static DirectSolver * create(const Matrix &mat, bool verbose, bool reusevector)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:681\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bn_\ba_\bm_\be\n+static std::string name()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:680\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bu_\bp_\bd_\ba_\bt_\be\n+Hierarchy< Domain, A >::Iterator update\n+The iterator over the updates.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:303\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\br_\bh_\bs\n+Hierarchy< Range, A >::Iterator rhs\n+The iterator over the right hand sided.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:307\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bs_\bu_\bp_\be_\br_\bl_\bu_\b _\b>_\b:_\b:_\bn_\ba_\bm_\be\n+static std::string name()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:672\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n+bool usesDirectCoarseLevelSolver() const\n+Check whether the coarse solver used is a direct solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1024\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n+X Domain\n+The domain type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:87\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n+static type * create(const M &mat, bool verbose, bool reusevector)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:644\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bA_\bM_\bG\n+AMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const SmootherArgs\n+&smootherArgs, const Parameters &parms)\n+Construct a new amg with a specific coarse solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:406\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bA_\bM_\bG\n+AMG(std::shared_ptr< const Operator > fineOperator, const ParameterTree\n+&configuration, const ParallelInformation &pinfo=ParallelInformation())\n+Constructor an AMG via ParameterTree.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:452\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bp_\bi_\bn_\bf_\bo\n+ParallelInformationHierarchy::Iterator pinfo\n+The iterator over the parallel information.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:287\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bT_\by_\bp_\be\n+SolverType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:627\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs\n+OperatorHierarchy::AggregatesMapList::const_iterator aggregates\n+The iterator over the aggregates maps.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:295\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+SmootherTraits< Smoother >::Arguments SmootherArgs\n+The argument type for the construction of the smoother.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:100\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\be_\bd_\bS_\bo_\bl_\bv_\be_\br\n+Solver< Matrix, solver > SelectedSolver\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:677\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bk_\be_\bA_\bM_\bG\n+std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr<\n+MatrixAdapter< M, X, Y > > &op, const std::string &smoother, const Dune::\n+ParameterTree &config) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1182\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bT_\bo_\bL_\bo_\bw_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+std::string operator()(const std::string &str)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:378\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bk_\be_\bA_\bM_\bG\n+std::shared_ptr< Dune::Preconditioner< typename OP::element_type::domain_type,\n+typename OP::element_type::range_type > > makeAMG(const OP &op, const std::\n+string &smoother, const Dune::ParameterTree &config) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1175\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n+S Smoother\n+The type of the smoother.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:97\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bn_\ba_\bm_\be\n+static std::string name()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:649\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br\n+Hierarchy< Smoother, A >::Iterator smoother\n+The iterator over the smoothers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:279\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+M Operator\n+The matrix operator type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n+OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix\n+The iterator over the matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:283\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bs_\bu_\bp_\be_\br_\bl_\bu_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+SuperLU< M > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:667\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bs_\bu_\bp_\be_\br_\bl_\bu_\b _\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n+static type * create(const M &mat, bool verbose, bool reusevector)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:668\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt\n+OperatorHierarchy::RedistributeInfoList::const_iterator redist\n+The iterator over the redistribution information.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:291\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be\n+X Range\n+The range type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:89\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh\n+void presmooth(LevelContext &levelContext, size_t steps)\n+Apply pre smoothing on the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:406\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs\n+void getCoarsestAggregateNumbers(std::vector< std::size_t, A1 > &cont)\n+Get the aggregate number of each unknown on the coarsest level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1162\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs\n+std::size_t levels()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:876\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bt_\by_\bp_\be\n+InverseOperator< Vector, Vector > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:643\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bk_\be_\bA_\bM_\bG\n+std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr<\n+OverlappingSchwarzOperator< M, X, Y, C > > &op, const std::string &smoother,\n+const Dune::ParameterTree &config) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1203\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bl_\bh_\bs\n+Hierarchy< Domain, A >::Iterator lhs\n+The iterator over the left hand side.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n+const void * Arguments\n+A type holding all the arguments needed to call the constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bo_\bl_\bv_\be_\br\n+static constexpr SolverType solver\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:629\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n+static std::shared_ptr< T > construct(Arguments &args)\n+Construct an object with the specified arguments.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n+static constexpr bool isDirectSolver\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:679\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+void recalculateHierarchy()\n+Recalculate the matrix hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:221\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Matrix::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:626\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n+SelectedSolver::type DirectSolver\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:678\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+std::shared_ptr< Dune::Preconditioner< typename Dune::TypeListElement< 1, TL\n+>::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL tl,\n+const std::shared_ptr< OP > &op, const Dune::ParameterTree &config, std::\n+enable_if_t< isValidBlockType< typename OP::matrix_type::block_type >::value,\n+int >=0) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1248\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+OperatorHierarchy::ParallelInformationHierarchy ParallelInformationHierarchy\n+The parallal data distribution hierarchy type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:84\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br\n+InverseOperator< X, X > CoarseSolver\n+the type of the coarse solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:91\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bp_\bo_\bs_\bt\n+void post(Domain &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1139\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs\n+std::size_t maxlevels()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:881\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bk_\be_\bA_\bM_\bG\n+std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr<\n+NonoverlappingSchwarzOperator< M, X, Y, C > > &op, const std::string &smoother,\n+const Dune::ParameterTree &config) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1226\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh\n+void postsmooth(LevelContext &levelContext, size_t steps)\n+Apply post smoothing on the current level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bl_\be_\bv_\be_\bl\n+std::size_t level\n+The level index.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:311\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bA_\bM_\bG\n+AMG(const Operator &fineOperator, const C &criterion, const SmootherArgs\n+&smootherArgs=SmootherArgs(), const ParallelInformation\n+&pinfo=ParallelInformation())\n+Construct an AMG with an inexact coarse solver based on the smoother.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(Domain &v, const Range &d)\n+Apply one step of the preconditioner to the system A(v)=d.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:888\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be\n+Smoother SmootherType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:275\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+MatrixHierarchy< M, ParallelInformation, A > OperatorHierarchy\n+The operator hierarchy type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:194\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+PI ParallelInformation\n+The type of the parallel information. Either OwnerOverlapCommunication or\n+another type describing the...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:80\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bn_\bo_\bn_\be\n+@ none\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:627\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bu_\bm_\bf_\bp_\ba_\bc_\bk\n+@ umfpack\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:627\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bu_\bp_\be_\br_\bl_\bu\n+@ superlu\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:627\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu\n+@ atOnceAccu\n+Accumulate data to one process at once.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:244\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bn_\bo_\bA_\bc_\bc_\bu\n+@ noAccu\n+No data accumulution.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:238\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu\n+@ successiveAccu\n+Successively accumulate to fewer processes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:248\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-Class providing information about the mapping of the vertices onto aggregates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bD_\bu_\bm_\bm_\by_\bE_\bd_\bg_\be_\bV_\bi_\bs_\bi_\bt_\bo_\br\n-A Dummy visitor that does nothing for each visited edge.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:598\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bV_\be_\br_\bt_\be_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bB_\bu_\bi_\bl_\bd_\be_\br\n-Functor for building the sparsity pattern of the matrix using\n-examineConnectivity.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:118\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:185\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\be_\bd_\bB_\bu_\bi_\bl_\bd_\be_\br\n-Visitor for identifying connected aggregates during a breadthFirstSearch.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:206\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bn_\be_\bc_\bt_\bi_\bv_\bi_\bt_\by_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:271\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt_\bB_\bo_\bu_\bn_\bd_\ba_\br_\by_\bS_\be_\bt_\bt_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:300\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator class for sequential access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:404\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< T >::field_type field_type\n+Export the type representing the underlying field.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:565\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::const_iterator ConstColIterator\n+Const iterator for the entries of each row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+T block_type\n+Export the type representing the components.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:568\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A nonoverlapping operator with communication object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br\n+Adapter to turn a matrix into a linear operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:137\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n+Norm that uses only the [N][N] entry of the block to determine couplings.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:379\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\bo_\bw_\bS_\bu_\bm\n+Functor using the row sum (infinity) norm to determine strong couplings.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:463\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:480\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:496\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+Criterion taking advantage of symmetric matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:519\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+Criterion suitable for unsymmetric matrices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:539\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG\n+an algebraic multigrid method using a Krylov-cycle.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:140\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd\n+Two grid operator for AMG with Krylov cycle.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:33\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG\n+Parallel algebraic multigrid based on agglomeration.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:65\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:625\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:642\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1169\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1170\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+An overlapping Schwarz operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation\n+> Iterator\n+Type of the mutable iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:216\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator over the levels in the hierarchy.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n+The hierarchies build by the coarsening process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n+The criterion describing the stop criteria for the coarsening process.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:283\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+All parameters for AMG.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:393\n _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n-@ nonoverlapping\n-Category for non-overlapping solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n+The default class for the smoother arguments.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:38\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:39\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Base class for scalar product and norm computation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+Statistics about the application of an inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n+bool converged\n+True if convergence criterion has been met.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Abstract base class for all solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Categories for the solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n static Category category(const OP &op, decltype(op.category()) *=nullptr)\n Helperfunction to extract the solver category either from an enum, or from the\n newly introduced virtu...\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:77\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU\n+SuperLu Solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:271\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:49\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n+The UMFPack direct sparse solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:335\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00116.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00116.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: hierarchy.hh File Reference\n+dune-istl: fastamgsmoother.hh File Reference\n \n \n \n \n \n \n \n@@ -72,49 +72,35 @@\n

  • dune
  • istl
  • paamg
  • \n
    \n \n
    \n \n- \n+
    fastamgsmoother.hh File Reference
    \n
    \n
    \n-\n-

    Provides a classes representing the hierarchies in AMG. \n-More...

    \n-
    #include <list>
    \n-#include <memory>
    \n-#include <limits>
    \n-#include <dune/common/stdstreams.hh>
    \n-#include <dune/common/timer.hh>
    \n-#include <dune/common/bigunsignedint.hh>
    \n-#include <dune/istl/paamg/construction.hh>
    \n+
    #include <cstddef>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n \n-\n-\n+\n \n

    \n Classes

    class  Dune::Amg::Hierarchy< T, A >
     A hierarchy of containers (e.g. matrices or vectors) More...
    struct  Dune::Amg::GaussSeidelPresmoothDefect< level >
     
    class  Dune::Amg::Hierarchy< T, A >::LevelIterator< C, T1 >
     Iterator over the levels in the hierarchy. More...
    struct  Dune::Amg::GaussSeidelPostsmoothDefect< level >
     
    \n \n \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-

    Detailed Description

    \n-

    Provides a classes representing the hierarchies in AMG.

    \n-
    Author
    Markus Blatt
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -2,37 +2,22 @@\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-hierarchy.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n-\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Provides a classes representing the hierarchies in AMG. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+fastamgsmoother.hh File Reference\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bT_\b,_\b _\bA_\b _\b>\n-\u00a0 A hierarchy of containers (e.g. matrices or vectors) _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b<_\b _\bl_\be_\bv_\be_\bl_\b _\b>\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bC_\b,_\b _\bT_\b1_\b _\b>\n-\u00a0 Iterator over the levels in the hierarchy. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b<_\b _\bl_\be_\bv_\be_\bl_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides a classes representing the hierarchies in AMG.\n- Author\n- Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00116_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00116_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: hierarchy.hh Source File\n+dune-istl: fastamgsmoother.hh Source File\n \n \n \n \n \n \n \n@@ -74,419 +74,127 @@\n \n
    \n \n
    \n \n
    \n-
    hierarchy.hh
    \n+
    fastamgsmoother.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMGHIERARCHY_HH
    \n-
    6#define DUNE_AMGHIERARCHY_HH
    \n+
    5#ifndef DUNE_ISTL_FASTAMGSMOOTHER_HH
    \n+
    6#define DUNE_ISTL_FASTAMGSMOOTHER_HH
    \n
    7
    \n-
    8#include <list>
    \n-
    9#include <memory>
    \n-
    10#include <limits>
    \n-
    11#include <dune/common/stdstreams.hh>
    \n-
    12#include <dune/common/timer.hh>
    \n-
    13#include <dune/common/bigunsignedint.hh>
    \n-\n-
    15
    \n-
    16namespace Dune
    \n-
    17{
    \n-
    18 namespace Amg
    \n-
    19 {
    \n-
    38 template<typename T, typename A=std::allocator<T> >
    \n-
    \n-\n-
    40 {
    \n-
    41 public:
    \n-
    45 typedef T MemberType;
    \n-
    46
    \n-
    47 template<typename T1, typename T2>
    \n-
    48 class LevelIterator;
    \n-
    49
    \n-
    50 private:
    \n-
    54 struct Element
    \n-
    55 {
    \n-
    56 friend class LevelIterator<Hierarchy<T,A>, T>;
    \n-
    57 friend class LevelIterator<const Hierarchy<T,A>, const T>;
    \n-
    58
    \n-
    60 std::weak_ptr<Element> coarser_;
    \n+
    8#include <cstddef>
    \n+
    9
    \n+
    10namespace Dune
    \n+
    11{
    \n+
    12 namespace Amg
    \n+
    13 {
    \n+
    14
    \n+
    15 template<std::size_t level>
    \n+
    \n+\n+
    17
    \n+
    18 template<typename M, typename X, typename Y>
    \n+
    \n+
    19 static void apply(const M& A, X& x, Y& d,
    \n+
    20 const Y& b)
    \n+
    21 {
    \n+
    22 typedef typename M::ConstRowIterator RowIterator;
    \n+
    23 typedef typename M::ConstColIterator ColIterator;
    \n+
    24
    \n+
    25 typename Y::iterator dIter=d.begin();
    \n+
    26 typename Y::const_iterator bIter=b.begin();
    \n+
    27 typename X::iterator xIter=x.begin();
    \n+
    28
    \n+
    29 for(RowIterator row=A.begin(), end=A.end(); row != end;
    \n+
    30 ++row, ++dIter, ++xIter, ++bIter)
    \n+
    31 {
    \n+
    32 ColIterator col=(*row).begin();
    \n+
    33 *dIter = *bIter;
    \n+
    34
    \n+
    35 for (; col.index()<row.index(); ++col)
    \n+
    36 (*col).mmv(x[col.index()],*dIter); // rhs -= sum_{j<i} a_ij * xnew_j
    \n+
    37 assert(row.index()==col.index());
    \n+
    38 ColIterator diag=col; // upper diagonal matrix not needed as x was 0 before.
    \n+
    39
    \n+
    40 // Not recursive yet. Just solve with the diagonal
    \n+
    41 diag->solve(*xIter,*dIter);
    \n+
    42 *dIter=0; //as r=v
    \n+
    43
    \n+
    44 // Update residual for the symmetric case
    \n+
    45 for(col=(*row).begin(); col.index()<row.index(); ++col)
    \n+
    46 col->mmv(*xIter, d[col.index()]); //d_j-=A_ij x_i
    \n+
    47 }
    \n+
    48 }
    \n+
    \n+
    49 };
    \n+
    \n+
    50
    \n+
    51 template<std::size_t level>
    \n+
    \n+\n+
    53
    \n+
    54 template<typename M, typename X, typename Y>
    \n+
    \n+
    55 static void apply(const M& A, X& x, Y& d,
    \n+
    56 const Y& b)
    \n+
    57 {
    \n+
    58 typedef typename M::ConstRowIterator RowIterator;
    \n+
    59 typedef typename M::ConstColIterator ColIterator;
    \n+
    60 typedef typename Y::block_type YBlock;
    \n
    61
    \n-
    63 std::shared_ptr<Element> finer_;
    \n-
    64
    \n-
    66 std::shared_ptr<MemberType> element_;
    \n-
    67
    \n-
    69 std::shared_ptr<MemberType> redistributed_;
    \n-
    70 };
    \n-
    71 public:
    \n+
    62 typename Y::iterator dIter=d.beforeEnd();
    \n+
    63 typename X::iterator xIter=x.beforeEnd();
    \n+
    64 typename Y::const_iterator bIter=b.beforeEnd();
    \n+
    65
    \n+
    66 for(RowIterator row=A.beforeEnd(), end=A.beforeBegin(); row != end;
    \n+
    67 --row, --dIter, --xIter, --bIter)
    \n+
    68 {
    \n+
    69 ColIterator endCol=(*row).beforeBegin();
    \n+
    70 ColIterator col=(*row).beforeEnd();
    \n+
    71 *dIter = *bIter;
    \n
    72
    \n-
    76 using Allocator = typename std::allocator_traits<A>::template rebind_alloc<Element>;
    \n-
    77
    \n-\n-
    79
    \n-
    \n-
    84 Hierarchy(const std::shared_ptr<MemberType> & first);
    \n-
    85
    \n-
    \n-
    89 Hierarchy() : levels_(0)
    \n-
    90 {}
    \n-
    \n-
    91
    \n-
    \n-
    95 Hierarchy(const Hierarchy& other);
    \n-
    96
    \n-
    \n-\n-
    102
    \n-
    \n-\n-
    104
    \n-
    \n-
    109 void addFiner(Arguments& args);
    \n-
    110
    \n-
    117 template<class C, class T1>
    \n-
    \n-\n-
    119 : public BidirectionalIteratorFacade<LevelIterator<C,T1>,T1,T1&>
    \n-
    120 {
    \n-
    121 friend class LevelIterator<typename std::remove_const<C>::type,
    \n-
    122 typename std::remove_const<T1>::type >;
    \n-
    123 friend class LevelIterator<const typename std::remove_const<C>::type,
    \n-
    124 const typename std::remove_const<T1>::type >;
    \n-
    125
    \n-
    126 public:
    \n-
    \n-\n-
    129 {}
    \n-
    \n-
    130
    \n-
    \n-
    131 LevelIterator(std::shared_ptr<Element> element)
    \n-
    132 : element_(element)
    \n-
    133 {}
    \n-
    \n-
    134
    \n-
    \n-
    136 LevelIterator(const LevelIterator<typename std::remove_const<C>::type,
    \n-
    137 typename std::remove_const<T1>::type>& other)
    \n-
    138 : element_(other.element_)
    \n-
    139 {}
    \n-
    \n-
    140
    \n-
    \n-
    142 LevelIterator(const LevelIterator<const typename std::remove_const<C>::type,
    \n-
    143 const typename std::remove_const<T1>::type>& other)
    \n-
    144 : element_(other.element_)
    \n-
    145 {}
    \n-
    \n-
    146
    \n-
    \n-
    150 bool equals(const LevelIterator<typename std::remove_const<C>::type,
    \n-
    151 typename std::remove_const<T1>::type>& other) const
    \n-
    152 {
    \n-
    153 return element_ == other.element_;
    \n-
    154 }
    \n-
    \n-
    155
    \n-
    \n-
    159 bool equals(const LevelIterator<const typename std::remove_const<C>::type,
    \n-
    160 const typename std::remove_const<T1>::type>& other) const
    \n-
    161 {
    \n-
    162 return element_ == other.element_;
    \n-
    163 }
    \n-
    \n-
    164
    \n-
    \n-
    166 T1& dereference() const
    \n-
    167 {
    \n-
    168 return *(element_->element_);
    \n-
    169 }
    \n-
    \n-
    170
    \n-
    \n-\n-
    173 {
    \n-
    174 element_ = element_->coarser_.lock();
    \n-
    175 }
    \n-
    \n-
    176
    \n-
    \n-\n-
    179 {
    \n-
    180 element_ = element_->finer_;
    \n-
    181 }
    \n-
    \n-
    182
    \n-
    \n-
    187 bool isRedistributed() const
    \n-
    188 {
    \n-
    189 return (bool)element_->redistributed_;
    \n-
    190 }
    \n-
    \n-
    191
    \n-
    \n-\n-
    197 {
    \n-
    198 assert(element_->redistributed_);
    \n-
    199 return *element_->redistributed_;
    \n-
    200 }
    \n-
    \n-
    \n-
    201 void addRedistributed(std::shared_ptr<T1> t)
    \n-
    202 {
    \n-
    203 element_->redistributed_ = t;
    \n-
    204 }
    \n-
    \n-
    205
    \n-
    \n-\n-
    207 {
    \n-
    208 element_->redistributed_ = nullptr;
    \n-
    209 }
    \n-
    \n-
    210
    \n-
    211 private:
    \n-
    212 std::shared_ptr<Element> element_;
    \n-
    213 };
    \n-
    \n-
    214
    \n-\n-
    217
    \n-\n-
    220
    \n-
    \n-\n-
    226
    \n-
    \n-\n-
    232
    \n-
    233
    \n-
    \n-\n-
    239
    \n-
    \n-\n-
    245
    \n-
    \n-
    250 std::size_t levels() const;
    \n-
    251
    \n-
    252 private:
    \n-
    258 std::shared_ptr<MemberType> originalFinest_;
    \n-
    260 std::shared_ptr<Element> finest_;
    \n-
    262 std::shared_ptr<Element> coarsest_;
    \n-
    264 Allocator allocator_;
    \n-
    266 int levels_;
    \n-
    267 };
    \n-
    268
    \n-
    269 template<class T, class A>
    \n-
    \n-
    270 Hierarchy<T,A>::Hierarchy(const std::shared_ptr<MemberType> & first)
    \n-
    271 : originalFinest_(first)
    \n-
    272 {
    \n-
    273 finest_ = std::allocate_shared<Element>(allocator_);
    \n-
    274 finest_->element_ = originalFinest_;
    \n-
    275 coarsest_ = finest_;
    \n-
    276 levels_ = 1;
    \n-
    277 }
    \n-
    \n-
    278
    \n-
    280 //TODO: do we actually want to support this? This might be very expensive?!
    \n-
    281 template<class T, class A>
    \n-
    \n-\n-
    283 : allocator_(other.allocator_),
    \n-
    284 levels_(other.levels_)
    \n-
    285 {
    \n-
    286 if(!other.finest_)
    \n-
    287 {
    \n-
    288 finest_=coarsest_=nullptr;
    \n-
    289 return;
    \n-
    290 }
    \n-
    291 finest_ = std::allocate_shared<Element>(allocator_);
    \n-
    292 std::shared_ptr<Element> finer_;
    \n-
    293 std::shared_ptr<Element> current_ = finest_;
    \n-
    294 std::weak_ptr<Element> otherWeak_ = other.finest_;
    \n-
    295
    \n-
    296 while(! otherWeak_.expired())
    \n-
    297 {
    \n-
    298 // create shared_ptr from weak_ptr, we just checked that this is safe
    \n-
    299 std::shared_ptr<Element> otherCurrent_ = std::shared_ptr<Element>(otherWeak_);
    \n-
    300 // clone current level
    \n-
    301 //TODO: should we use the allocator?
    \n-
    302 current_->element_ =
    \n-
    303 std::make_shared<MemberType>(*(otherCurrent_->element_));
    \n-
    304 current_->finer_=finer_;
    \n-
    305 if(otherCurrent_->redistributed_)
    \n-
    306 current_->redistributed_ =
    \n-
    307 std::make_shared<MemberType>(*(otherCurrent_->redistributed_));
    \n-
    308 finer_=current_;
    \n-
    309 if(not otherCurrent_->coarser_.expired())
    \n-
    310 {
    \n-
    311 auto c = std::allocate_shared<Element>(allocator_);
    \n-
    312 current_->coarser_ = c;
    \n-
    313 current_ = c;
    \n-
    314 }
    \n-
    315 // go to coarser level
    \n-
    316 otherWeak_ = otherCurrent_->coarser_;
    \n-
    317 }
    \n-
    318 coarsest_=current_;
    \n-
    319 }
    \n-
    \n-
    320
    \n-
    321 template<class T, class A>
    \n-
    \n-
    322 std::size_t Hierarchy<T,A>::levels() const
    \n-
    323 {
    \n-
    324 return levels_;
    \n-
    325 }
    \n-
    \n-
    \n-
    326
    \n-
    327 template<class T, class A>
    \n-
    \n-\n-
    329 {
    \n-
    330 coarsest_->redistributed_ = ConstructionTraits<MemberType>::construct(args);
    \n-
    331 }
    \n-
    \n-
    332
    \n-
    333 template<class T, class A>
    \n-
    \n-\n-
    335 {
    \n-
    336 if(!coarsest_) {
    \n-
    337 // we have no levels at all...
    \n-
    338 assert(!finest_);
    \n-
    339 // allocate into the shared_ptr
    \n-
    340 originalFinest_ = ConstructionTraits<MemberType>::construct(args);
    \n-
    341 coarsest_ = std::allocate_shared<Element>(allocator_);
    \n-
    342 coarsest_->element_ = originalFinest_;
    \n-
    343 finest_ = coarsest_;
    \n-
    344 }else{
    \n-
    345 auto old_coarsest = coarsest_;
    \n-
    346 coarsest_ = std::allocate_shared<Element>(allocator_);
    \n-
    347 coarsest_->finer_ = old_coarsest;
    \n-
    348 coarsest_->element_ = ConstructionTraits<MemberType>::construct(args);
    \n-
    349 old_coarsest->coarser_ = coarsest_;
    \n-
    350 }
    \n-
    351 ++levels_;
    \n-
    352 }
    \n-
    \n-
    353
    \n-
    354
    \n-
    355 template<class T, class A>
    \n-
    \n-\n-
    357 {
    \n-
    358 //TODO: wouldn't it be better to do this in the constructor?'
    \n-
    359 if(!finest_) {
    \n-
    360 // we have no levels at all...
    \n-
    361 assert(!coarsest_);
    \n-
    362 // allocate into the shared_ptr
    \n-
    363 originalFinest_ = ConstructionTraits<MemberType>::construct(args);
    \n-
    364 finest_ = std::allocate_shared<Element>(allocator_);
    \n-
    365 finest_->element = originalFinest_;
    \n-
    366 coarsest_ = finest_;
    \n-
    367 }else{
    \n-
    368 finest_->finer_ = std::allocate_shared<Element>(allocator_);
    \n-
    369 finest_->finer_->coarser_ = finest_;
    \n-
    370 finest_ = finest_->finer_;
    \n-
    371 finest_->element = ConstructionTraits<T>::construct(args);
    \n-
    372 }
    \n-
    373 ++levels_;
    \n-
    374 }
    \n-
    \n-
    375
    \n-
    376 template<class T, class A>
    \n-
    \n-\n-
    378 {
    \n-
    379 return Iterator(finest_);
    \n-
    380 }
    \n-
    \n-
    381
    \n-
    382 template<class T, class A>
    \n-
    \n-\n-
    384 {
    \n-
    385 return Iterator(coarsest_);
    \n-
    386 }
    \n-
    \n-
    387
    \n-
    388 template<class T, class A>
    \n-
    \n-\n-
    390 {
    \n-
    391 return ConstIterator(finest_);
    \n-
    392 }
    \n-
    \n-
    393
    \n-
    394 template<class T, class A>
    \n-
    \n-\n-
    396 {
    \n-
    397 return ConstIterator(coarsest_);
    \n-
    398 }
    \n-
    \n-
    \n-
    400 } // namespace Amg
    \n-
    401} // namespace Dune
    \n-
    402
    \n-
    403#endif
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    Helper classes for the construction of classes without empty constructor.
    \n-
    Hierarchy(const Hierarchy &other)
    Copy constructor (deep copy!).
    Definition hierarchy.hh:282
    \n-
    void addRedistributedOnCoarsest(Arguments &args)
    Definition hierarchy.hh:328
    \n-
    std::size_t levels() const
    Get the number of levels in the hierarchy.
    Definition hierarchy.hh:322
    \n-
    ConstIterator coarsest() const
    Get an iterator positioned at the coarsest level.
    Definition hierarchy.hh:395
    \n-
    void addCoarser(Arguments &args)
    Add an element on a coarser level.
    Definition hierarchy.hh:334
    \n-
    void addFiner(Arguments &args)
    Add an element on a finer level.
    Definition hierarchy.hh:356
    \n-
    Hierarchy(const std::shared_ptr< MemberType > &first)
    Construct a new hierarchy.
    Definition hierarchy.hh:270
    \n-
    const void * Arguments
    A type holding all the arguments needed to call the constructor.
    Definition construction.hh:44
    \n-
    static std::shared_ptr< T > construct(Arguments &args)
    Construct an object with the specified arguments.
    Definition construction.hh:52
    \n-
    Iterator coarsest()
    Get an iterator positioned at the coarsest level.
    Definition hierarchy.hh:383
    \n-
    ConstIterator finest() const
    Get an iterator positioned at the finest level.
    Definition hierarchy.hh:389
    \n-
    Iterator finest()
    Get an iterator positioned at the finest level.
    Definition hierarchy.hh:377
    \n-
    STL namespace.
    \n+
    73 for (; col.index()>row.index(); --col)
    \n+
    74 (*col).mmv(x[col.index()],*dIter); // rhs -= sum_{i>j} a_ij * xnew_j
    \n+
    75 assert(row.index()==col.index());
    \n+
    76 ColIterator diag=col;
    \n+
    77 YBlock v=*dIter;
    \n+
    78 // upper diagonal matrix
    \n+
    79 for (--col; col!=endCol; --col)
    \n+
    80 (*col).mmv(x[col.index()],v); // v -= sum_{j<i} a_ij * xold_j
    \n+
    81
    \n+
    82 // Not recursive yet. Just solve with the diagonal
    \n+
    83 diag->solve(*xIter,v);
    \n+
    84
    \n+
    85 *dIter-=v;
    \n+
    86
    \n+
    87 // Update residual for the symmetric case
    \n+
    88 // Skip residual computation as it is not needed.
    \n+
    89 //for(col=(*row).begin();col.index()<row.index(); ++col)
    \n+
    90 //col.mmv(*xIter, d[col.index()]); //d_j-=A_ij x_i
    \n+
    91 }
    \n+
    92 }
    \n+
    \n+
    93 };
    \n+
    \n+
    94 } // end namespace Amg
    \n+
    95} // end namespace Dune
    \n+
    96#endif
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n
    Definition allocator.hh:11
    \n-
    A hierarchy of containers (e.g. matrices or vectors)
    Definition hierarchy.hh:40
    \n-
    T MemberType
    The type of the container we store.
    Definition hierarchy.hh:45
    \n-
    LevelIterator< Hierarchy< T, A >, T > Iterator
    Type of the mutable iterator.
    Definition hierarchy.hh:216
    \n-
    LevelIterator< const Hierarchy< T, A >, const T > ConstIterator
    Type of the const iterator.
    Definition hierarchy.hh:219
    \n-
    ConstructionTraits< T >::Arguments Arguments
    Definition hierarchy.hh:78
    \n-
    Hierarchy()
    Construct an empty hierarchy.
    Definition hierarchy.hh:89
    \n-
    typename std::allocator_traits< A >::template rebind_alloc< Element > Allocator
    The allocator to use for the list elements.
    Definition hierarchy.hh:76
    \n-
    Iterator over the levels in the hierarchy.
    Definition hierarchy.hh:120
    \n-
    LevelIterator(const LevelIterator< typename std::remove_const< C >::type, typename std::remove_const< T1 >::type > &other)
    Copy constructor.
    Definition hierarchy.hh:136
    \n-
    void addRedistributed(std::shared_ptr< T1 > t)
    Definition hierarchy.hh:201
    \n-
    T1 & dereference() const
    Dereference the iterator.
    Definition hierarchy.hh:166
    \n-
    bool equals(const LevelIterator< typename std::remove_const< C >::type, typename std::remove_const< T1 >::type > &other) const
    Equality check.
    Definition hierarchy.hh:150
    \n-
    bool isRedistributed() const
    Check whether there was a redistribution at the current level.
    Definition hierarchy.hh:187
    \n-
    bool equals(const LevelIterator< const typename std::remove_const< C >::type, const typename std::remove_const< T1 >::type > &other) const
    Equality check.
    Definition hierarchy.hh:159
    \n-
    void increment()
    Move to the next coarser level.
    Definition hierarchy.hh:172
    \n-
    LevelIterator(const LevelIterator< const typename std::remove_const< C >::type, const typename std::remove_const< T1 >::type > &other)
    Copy constructor.
    Definition hierarchy.hh:142
    \n-
    void deleteRedistributed()
    Definition hierarchy.hh:206
    \n-
    void decrement()
    Move to the next fine level.
    Definition hierarchy.hh:178
    \n-
    LevelIterator(std::shared_ptr< Element > element)
    Definition hierarchy.hh:131
    \n-
    T1 & getRedistributed() const
    Get the redistributed container.
    Definition hierarchy.hh:196
    \n+
    Definition fastamgsmoother.hh:16
    \n+
    static void apply(const M &A, X &x, Y &d, const Y &b)
    Definition fastamgsmoother.hh:19
    \n+
    Definition fastamgsmoother.hh:52
    \n+
    static void apply(const M &A, X &x, Y &d, const Y &b)
    Definition fastamgsmoother.hh:55
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,442 +1,123 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n * _\bp_\ba_\ba_\bm_\bg\n-hierarchy.hh\n+fastamgsmoother.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMGHIERARCHY_HH\n-6#define DUNE_AMGHIERARCHY_HH\n+5#ifndef DUNE_ISTL_FASTAMGSMOOTHER_HH\n+6#define DUNE_ISTL_FASTAMGSMOOTHER_HH\n 7\n-8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-15\n-16namespace _\bD_\bu_\bn_\be\n-17{\n-18 namespace Amg\n-19 {\n-38 template >\n-_\b3_\b9 class _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-40 {\n-41 public:\n-_\b4_\b5 typedef T _\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be;\n-46\n-47 template\n-48 class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-49\n-50 private:\n-54 struct Element\n-55 {\n-56 friend class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br<_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by, T>;\n-57 friend class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br, const T>;\n-58\n-60 std::weak_ptr coarser_;\n+8#include \n+9\n+10namespace _\bD_\bu_\bn_\be\n+11{\n+12 namespace Amg\n+13 {\n+14\n+15 template\n+_\b1_\b6 struct _\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt {\n+17\n+18 template\n+_\b1_\b9 static void _\ba_\bp_\bp_\bl_\by(const M& A, X& x, Y& d,\n+20 const Y& b)\n+21 {\n+22 typedef typename M::ConstRowIterator RowIterator;\n+23 typedef typename M::ConstColIterator ColIterator;\n+24\n+25 typename Y::iterator dIter=d.begin();\n+26 typename Y::const_iterator bIter=b.begin();\n+27 typename X::iterator xIter=x.begin();\n+28\n+29 for(RowIterator row=A.begin(), end=A.end(); row != end;\n+30 ++row, ++dIter, ++xIter, ++bIter)\n+31 {\n+32 ColIterator _\bc_\bo_\bl=(*row).begin();\n+33 *dIter = *bIter;\n+34\n+35 for (; _\bc_\bo_\bl.index()solve(*xIter,*dIter);\n+42 *dIter=0; //as r=v\n+43\n+44 // Update residual for the symmetric case\n+45 for(_\bc_\bo_\bl=(*row).begin(); _\bc_\bo_\bl.index()mmv(*xIter, d[_\bc_\bo_\bl.index()]); //d_j-=A_ij x_i\n+47 }\n+48 }\n+49 };\n+50\n+51 template\n+_\b5_\b2 struct _\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt {\n+53\n+54 template\n+_\b5_\b5 static void _\ba_\bp_\bp_\bl_\by(const M& A, X& x, Y& d,\n+56 const Y& b)\n+57 {\n+58 typedef typename M::ConstRowIterator RowIterator;\n+59 typedef typename M::ConstColIterator ColIterator;\n+60 typedef typename Y::block_type YBlock;\n 61\n-63 std::shared_ptr finer_;\n-64\n-66 std::shared_ptr element_;\n-67\n-_\b6_\b9 std::shared_ptr redistributed_;\n-70 };\n-71 public:\n+62 typename Y::iterator dIter=d.beforeEnd();\n+63 typename X::iterator xIter=x.beforeEnd();\n+64 typename Y::const_iterator bIter=b.beforeEnd();\n+65\n+66 for(RowIterator row=A.beforeEnd(), end=A.beforeBegin(); row != end;\n+67 --row, --dIter, --xIter, --bIter)\n+68 {\n+69 ColIterator endCol=(*row).beforeBegin();\n+70 ColIterator _\bc_\bo_\bl=(*row).beforeEnd();\n+71 *dIter = *bIter;\n 72\n-_\b7_\b6 using _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br = typename std::allocator_traits::template\n-rebind_alloc;\n-77\n-_\b7_\b8 typedef typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs _\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs;\n-79\n-_\b8_\b4 _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(const std::shared_ptr & first);\n-85\n-_\b8_\b9 _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by() : levels_(0)\n-90 {}\n-91\n-_\b9_\b5 _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(const _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& other);\n-96\n-_\b1_\b0_\b1 void _\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args);\n-102\n-_\b1_\b0_\b3 void _\ba_\bd_\bd_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd_\bO_\bn_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args);\n-104\n-_\b1_\b0_\b9 void _\ba_\bd_\bd_\bF_\bi_\bn_\be_\br(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args);\n-110\n-117 template\n-_\b1_\b1_\b8 class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-119 : public BidirectionalIteratorFacade,T1,T1&>\n-120 {\n-121 friend class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n-122 typename std::remove_const::type >;\n-123 friend class _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n-124 const typename std::remove_const::type >;\n-125\n-126 public:\n-_\b1_\b2_\b8 _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br()\n-129 {}\n-130\n-_\b1_\b3_\b1 _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(std::shared_ptr element)\n-132 : element_(element)\n-133 {}\n-134\n-_\b1_\b3_\b6 _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n-137 typename std::remove_const::type>& other)\n-138 : element_(other.element_)\n-139 {}\n-140\n-_\b1_\b4_\b2 _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::\n-type,\n-143 const typename std::remove_const::type>& other)\n-144 : element_(other.element_)\n-145 {}\n-146\n-_\b1_\b5_\b0 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n-151 typename std::remove_const::type>& other) const\n-152 {\n-153 return element_ == other.element_;\n-154 }\n-155\n-_\b1_\b5_\b9 bool _\be_\bq_\bu_\ba_\bl_\bs(const _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br::type,\n-160 const typename std::remove_const::type>& other) const\n-161 {\n-162 return element_ == other.element_;\n-163 }\n-164\n-_\b1_\b6_\b6 T1& _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be() const\n-167 {\n-168 return *(element_->element_);\n-169 }\n-170\n-_\b1_\b7_\b2 void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt()\n-173 {\n-174 element_ = element_->coarser_.lock();\n-175 }\n-176\n-_\b1_\b7_\b8 void _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt()\n-179 {\n-180 element_ = element_->finer_;\n-181 }\n-182\n-_\b1_\b8_\b7 bool _\bi_\bs_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd() const\n-188 {\n-189 return (bool)element_->redistributed_;\n-190 }\n-191\n-_\b1_\b9_\b6 T1& _\bg_\be_\bt_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd() const\n-197 {\n-198 assert(element_->redistributed_);\n-199 return *element_->redistributed_;\n-200 }\n-_\b2_\b0_\b1 void _\ba_\bd_\bd_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd(std::shared_ptr t)\n-202 {\n-203 element_->redistributed_ = t;\n-204 }\n-205\n-_\b2_\b0_\b6 void _\bd_\be_\bl_\be_\bt_\be_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd()\n-207 {\n-208 element_->redistributed_ = nullptr;\n-209 }\n-210\n-211 private:\n-212 std::shared_ptr element_;\n-213 };\n-214\n-_\b2_\b1_\b6 typedef _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>,T> _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-217\n-_\b2_\b1_\b9 typedef _\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>, const T> _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-220\n-_\b2_\b2_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\be_\bs_\bt();\n-226\n-_\b2_\b3_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\bo_\ba_\br_\bs_\be_\bs_\bt();\n-232\n-233\n-_\b2_\b3_\b8 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\be_\bs_\bt() const;\n-239\n-_\b2_\b4_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\bo_\ba_\br_\bs_\be_\bs_\bt() const;\n-245\n-_\b2_\b5_\b0 std::size_t _\bl_\be_\bv_\be_\bl_\bs() const;\n-251\n-252 private:\n-258 std::shared_ptr originalFinest_;\n-260 std::shared_ptr finest_;\n-262 std::shared_ptr coarsest_;\n-264 _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br allocator_;\n-266 int levels_;\n-267 };\n-268\n-269 template\n-_\b2_\b7_\b0 _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(const std::shared_ptr & first)\n-271 : originalFinest_(first)\n-272 {\n-273 finest_ = std::allocate_shared(allocator_);\n-274 finest_->element_ = originalFinest_;\n-275 coarsest_ = finest_;\n-276 levels_ = 1;\n-277 }\n-278\n-280 //TODO: do we actually want to support this? This might be very expensive?!\n-281 template\n-_\b2_\b8_\b2 _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by(const _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& other)\n-283 : allocator_(other.allocator_),\n-284 levels_(other.levels_)\n-285 {\n-286 if(!other.finest_)\n-287 {\n-288 finest_=coarsest_=nullptr;\n-289 return;\n-290 }\n-291 finest_ = std::allocate_shared(allocator_);\n-292 std::shared_ptr finer_;\n-293 std::shared_ptr current_ = finest_;\n-294 std::weak_ptr otherWeak_ = other.finest_;\n-295\n-296 while(! otherWeak_.expired())\n-297 {\n-298 // create shared_ptr from weak_ptr, we just checked that this is safe\n-299 std::shared_ptr otherCurrent_ = std::shared_ptr\n-(otherWeak_);\n-300 // clone current level\n-301 //TODO: should we use the allocator?\n-302 current_->element_ =\n-303 std::make_shared(*(otherCurrent_->element_));\n-304 current_->finer_=finer_;\n-305 if(otherCurrent_->redistributed_)\n-306 current_->redistributed_ =\n-307 std::make_shared(*(otherCurrent_->redistributed_));\n-308 finer_=current_;\n-309 if(not otherCurrent_->coarser_.expired())\n-310 {\n-311 auto c = std::allocate_shared(allocator_);\n-312 current_->coarser_ = c;\n-313 current_ = c;\n-314 }\n-315 // go to coarser level\n-316 otherWeak_ = otherCurrent_->coarser_;\n-317 }\n-318 coarsest_=current_;\n-319 }\n-320\n-321 template\n-_\b3_\b2_\b2 std::size_t _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs() const\n-323 {\n-324 return levels_;\n-325 }\n-326\n-327 template\n-_\b3_\b2_\b8 void _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd_\bO_\bn_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-329 {\n-330 coarsest_->redistributed_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-(args);\n-331 }\n-332\n-333 template\n-_\b3_\b3_\b4 void _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-335 {\n-336 if(!coarsest_) {\n-337 // we have no levels at all...\n-338 assert(!finest_);\n-339 // allocate into the shared_ptr\n-340 originalFinest_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(args);\n-341 coarsest_ = std::allocate_shared(allocator_);\n-342 coarsest_->element_ = originalFinest_;\n-343 finest_ = coarsest_;\n-344 }else{\n-345 auto old_coarsest = coarsest_;\n-346 coarsest_ = std::allocate_shared(allocator_);\n-347 coarsest_->finer_ = old_coarsest;\n-348 coarsest_->element_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(args);\n-349 old_coarsest->coarser_ = coarsest_;\n-350 }\n-351 ++levels_;\n-352 }\n-353\n-354\n-355 template\n-_\b3_\b5_\b6 void _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bF_\bi_\bn_\be_\br(_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs& args)\n-357 {\n-358 //TODO: wouldn't it be better to do this in the constructor?'\n-359 if(!finest_) {\n-360 // we have no levels at all...\n-361 assert(!coarsest_);\n-362 // allocate into the shared_ptr\n-363 originalFinest_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bM_\be_\bm_\bb_\be_\br_\bT_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(args);\n-364 finest_ = std::allocate_shared(allocator_);\n-365 finest_->element = originalFinest_;\n-366 coarsest_ = finest_;\n-367 }else{\n-368 finest_->finer_ = std::allocate_shared(allocator_);\n-369 finest_->finer_->coarser_ = finest_;\n-370 finest_ = finest_->finer_;\n-371 finest_->element = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bT_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(args);\n-372 }\n-373 ++levels_;\n-374 }\n-375\n-376 template\n-_\b3_\b7_\b7 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bf_\bi_\bn_\be_\bs_\bt()\n-378 {\n-379 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(finest_);\n-380 }\n-381\n-382 template\n-_\b3_\b8_\b3 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bs_\bt()\n-384 {\n-385 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(coarsest_);\n-386 }\n-387\n-388 template\n-_\b3_\b8_\b9 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bf_\bi_\bn_\be_\bs_\bt() const\n-390 {\n-391 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(finest_);\n-392 }\n-393\n-394 template\n-_\b3_\b9_\b5 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bs_\bt() const\n-396 {\n-397 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(coarsest_);\n-398 }\n-400 } // namespace Amg\n-401} // namespace Dune\n-402\n-403#endif\n-_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-Helper classes for the construction of classes without empty constructor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-Hierarchy(const Hierarchy &other)\n-Copy constructor (deep copy!).\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:282\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\ba_\bd_\bd_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd_\bO_\bn_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt\n-void addRedistributedOnCoarsest(Arguments &args)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:328\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs\n-std::size_t levels() const\n-Get the number of levels in the hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:322\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bs_\bt\n-ConstIterator coarsest() const\n-Get an iterator positioned at the coarsest level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\ba_\bd_\bd_\bC_\bo_\ba_\br_\bs_\be_\br\n-void addCoarser(Arguments &args)\n-Add an element on a coarser level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:334\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\ba_\bd_\bd_\bF_\bi_\bn_\be_\br\n-void addFiner(Arguments &args)\n-Add an element on a finer level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:356\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-Hierarchy(const std::shared_ptr< MemberType > &first)\n-Construct a new hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:270\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-const void * Arguments\n-A type holding all the arguments needed to call the constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:44\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< T > construct(Arguments &args)\n-Construct an object with the specified arguments.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bs_\bt\n-Iterator coarsest()\n-Get an iterator positioned at the coarsest level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:383\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bf_\bi_\bn_\be_\bs_\bt\n-ConstIterator finest() const\n-Get an iterator positioned at the finest level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:389\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bf_\bi_\bn_\be_\bs_\bt\n-Iterator finest()\n-Get an iterator positioned at the finest level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:377\n-_\bs_\bt_\bd\n-STL namespace.\n+73 for (; _\bc_\bo_\bl.index()>row.index(); --_\bc_\bo_\bl)\n+74 (*col).mmv(x[_\bc_\bo_\bl.index()],*dIter); // rhs -= sum_{i>j} a_ij * xnew_j\n+75 assert(row.index()==_\bc_\bo_\bl.index());\n+76 ColIterator diag=_\bc_\bo_\bl;\n+77 YBlock v=*dIter;\n+78 // upper diagonal matrix\n+79 for (--_\bc_\bo_\bl; _\bc_\bo_\bl!=endCol; --_\bc_\bo_\bl)\n+80 (*col).mmv(x[_\bc_\bo_\bl.index()],v); // v -= sum_{jsolve(*xIter,v);\n+84\n+85 *dIter-=v;\n+86\n+87 // Update residual for the symmetric case\n+88 // Skip residual computation as it is not needed.\n+89 //for(col=(*row).begin();col.index(), T > Iterator\n-Type of the mutable iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:216\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-LevelIterator< const Hierarchy< T, A >, const T > ConstIterator\n-Type of the const iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:219\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-ConstructionTraits< T >::Arguments Arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:78\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-Hierarchy()\n-Construct an empty hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:89\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n-typename std::allocator_traits< A >::template rebind_alloc< Element > Allocator\n-The allocator to use for the list elements.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator over the levels in the hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-LevelIterator(const LevelIterator< typename std::remove_const< C >::type,\n-typename std::remove_const< T1 >::type > &other)\n-Copy constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:136\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bd_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd\n-void addRedistributed(std::shared_ptr< T1 > t)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:201\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-T1 & dereference() const\n-Dereference the iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:166\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const LevelIterator< typename std::remove_const< C >::type,\n-typename std::remove_const< T1 >::type > &other) const\n-Equality check.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd\n-bool isRedistributed() const\n-Check whether there was a redistribution at the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:187\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const LevelIterator< const typename std::remove_const< C >::type,\n-const typename std::remove_const< T1 >::type > &other) const\n-Equality check.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:159\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n-void increment()\n-Move to the next coarser level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:172\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-LevelIterator(const LevelIterator< const typename std::remove_const< C >::type,\n-const typename std::remove_const< T1 >::type > &other)\n-Copy constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:142\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bl_\be_\bt_\be_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd\n-void deleteRedistributed()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:206\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n-void decrement()\n-Move to the next fine level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:178\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-LevelIterator(std::shared_ptr< Element > element)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:131\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd\n-T1 & getRedistributed() const\n-Get the redistributed container.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:196\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamgsmoother.hh:16\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+static void apply(const M &A, X &x, Y &d, const Y &b)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamgsmoother.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamgsmoother.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+static void apply(const M &A, X &x, Y &d, const Y &b)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamgsmoother.hh:55\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00119.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00119.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: pinfo.hh File Reference\n+dune-istl: gsetc.hh File Reference\n \n \n \n \n \n \n \n@@ -65,47 +65,202 @@\n \n \n \n \n \n \n \n
    \n \n-
    pinfo.hh File Reference
    \n+Namespaces |\n+Enumerations |\n+Functions
    \n+
    gsetc.hh File Reference
    \n \n
    \n-
    #include <dune/common/parallel/communication.hh>
    \n-#include <dune/common/enumset.hh>
    \n-#include <dune/common/parallel/mpicommunication.hh>
    \n-#include <dune/common/parallel/mpitraits.hh>
    \n-#include <dune/common/parallel/remoteindices.hh>
    \n-#include <dune/common/parallel/interface.hh>
    \n-#include <dune/common/parallel/communicator.hh>
    \n-#include <dune/istl/solvercategory.hh>
    \n+\n+

    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way. \n+More...

    \n+
    #include <cmath>
    \n+#include <complex>
    \n+#include <iostream>
    \n+#include <iomanip>
    \n+#include <string>
    \n+#include <dune/common/hybridutilities.hh>
    \n+#include "multitypeblockvector.hh"
    \n+#include "multitypeblockmatrix.hh"
    \n+#include "istlexception.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::Amg::SequentialInformation
    struct  Dune::BL< l >
     compile-time parameter for block recursion depth More...
     
    struct  Dune::algmeta_btsolve< I, diag, relax >
     
    struct  Dune::algmeta_btsolve< 0, withdiag, withrelax >
     
    struct  Dune::algmeta_btsolve< 0, withdiag, norelax >
     
    struct  Dune::algmeta_btsolve< 0, nodiag, withrelax >
     
    struct  Dune::algmeta_btsolve< 0, nodiag, norelax >
     
    struct  Dune::algmeta_bdsolve< I, relax >
     
    struct  Dune::algmeta_bdsolve< 0, withrelax >
     
    struct  Dune::algmeta_bdsolve< 0, norelax >
     
    struct  Dune::algmeta_itsteps< I, M >
     
    struct  Dune::algmeta_itsteps< 0, M >
     
    struct  Dune::algmeta_itsteps< I, MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > >
     
    \n \n \n \n-\n-\n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+\n+\n+\n+\n+\n+

    \n+Enumerations

    enum  Dune::WithDiagType { Dune::withdiag =1\n+, Dune::nodiag =0\n+ }
     
    enum  Dune::WithRelaxType { Dune::withrelax =1\n+, Dune::norelax =0\n+ }
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Functions

    template<class M , class X , class Y >
    void Dune::bltsolve (const M &A, X &v, const Y &d)
     block lower triangular solve
     
    template<class M , class X , class Y , class K >
    void Dune::bltsolve (const M &A, X &v, const Y &d, const K &w)
     relaxed block lower triangular solve
     
    template<class M , class X , class Y >
    void Dune::ubltsolve (const M &A, X &v, const Y &d)
     unit block lower triangular solve
     
    template<class M , class X , class Y , class K >
    void Dune::ubltsolve (const M &A, X &v, const Y &d, const K &w)
     relaxed unit block lower triangular solve
     
    template<class M , class X , class Y >
    void Dune::butsolve (const M &A, X &v, const Y &d)
     block upper triangular solve
     
    template<class M , class X , class Y , class K >
    void Dune::butsolve (const M &A, X &v, const Y &d, const K &w)
     relaxed block upper triangular solve
     
    template<class M , class X , class Y >
    void Dune::ubutsolve (const M &A, X &v, const Y &d)
     unit block upper triangular solve
     
    template<class M , class X , class Y , class K >
    void Dune::ubutsolve (const M &A, X &v, const Y &d, const K &w)
     relaxed unit block upper triangular solve
     
    template<class M , class X , class Y , int l>
    void Dune::bltsolve (const M &A, X &v, const Y &d, BL< l >)
     block lower triangular solve
     
    template<class M , class X , class Y , class K , int l>
    void Dune::bltsolve (const M &A, X &v, const Y &d, const K &w, BL< l >)
     relaxed block lower triangular solve
     
    template<class M , class X , class Y , int l>
    void Dune::ubltsolve (const M &A, X &v, const Y &d, BL< l >)
     unit block lower triangular solve
     
    template<class M , class X , class Y , class K , int l>
    void Dune::ubltsolve (const M &A, X &v, const Y &d, const K &w, BL< l >)
     relaxed unit block lower triangular solve
     
    template<class M , class X , class Y , int l>
    void Dune::butsolve (const M &A, X &v, const Y &d, BL< l > bl)
     block upper triangular solve
     
    template<class M , class X , class Y , class K , int l>
    void Dune::butsolve (const M &A, X &v, const Y &d, const K &w, BL< l > bl)
     relaxed block upper triangular solve
     
    template<class M , class X , class Y , int l>
    void Dune::ubutsolve (const M &A, X &v, const Y &d, BL< l > bl)
     unit block upper triangular solve
     
    template<class M , class X , class Y , class K , int l>
    void Dune::ubutsolve (const M &A, X &v, const Y &d, const K &w, BL< l > bl)
     relaxed unit block upper triangular solve
     
    template<class M , class X , class Y >
    void Dune::bdsolve (const M &A, X &v, const Y &d)
     block diagonal solve, no relaxation
     
    template<class M , class X , class Y , class K >
    void Dune::bdsolve (const M &A, X &v, const Y &d, const K &w)
     block diagonal solve, with relaxation
     
    template<class M , class X , class Y , int l>
    void Dune::bdsolve (const M &A, X &v, const Y &d, BL< l >)
     block diagonal solve, no relaxation
     
    template<class M , class X , class Y , class K , int l>
    void Dune::bdsolve (const M &A, X &v, const Y &d, const K &w, BL< l >)
     block diagonal solve, with relaxation
     
    template<class M , class X , class Y , class K >
    void Dune::dbgs (const M &A, X &x, const Y &b, const K &w)
     GS step.
     
    template<class M , class X , class Y , class K , int l>
    void Dune::dbgs (const M &A, X &x, const Y &b, const K &w, BL< l >)
     GS step.
     
    template<class M , class X , class Y , class K >
    void Dune::bsorf (const M &A, X &x, const Y &b, const K &w)
     SOR step.
     
    template<class M , class X , class Y , class K , int l>
    void Dune::bsorf (const M &A, X &x, const Y &b, const K &w, BL< l >)
     SOR step.
     
    template<class M , class X , class Y , class K >
    void Dune::bsorb (const M &A, X &x, const Y &b, const K &w)
     SSOR step.
     
    template<class M , class X , class Y , class K , int l>
    void Dune::bsorb (const M &A, X &x, const Y &b, const K &w, BL< l >)
     Backward SOR step.
     
    template<class M , class X , class Y , class K >
    void Dune::dbjac (const M &A, X &x, const Y &b, const K &w)
     Jacobi step.
     
    template<class M , class X , class Y , class K , int l>
    void Dune::dbjac (const M &A, X &x, const Y &b, const K &w, BL< l >)
     Jacobi step.
     
    \n-
    \n+

    Detailed Description

    \n+

    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,28 +1,173 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-pinfo.hh File Reference\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh>\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bE_\bn_\bu_\bm_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+gsetc.hh File Reference\n+Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n+generic way. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+#include \"_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bL_\b<_\b _\bl_\b _\b>\n+\u00a0 compile-time parameter for block recursion depth _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\bI_\b,_\b _\bd_\bi_\ba_\bg_\b,_\b _\br_\be_\bl_\ba_\bx_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b _\bI_\b,_\b _\br_\be_\bl_\ba_\bx_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\b0_\b,_\b _\bM_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,\n+ _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+E\bEn\bnu\bum\bme\ber\bra\bat\bti\bio\bon\bns\bs\n+enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bW_\bi_\bt_\bh_\bD_\bi_\ba_\bg_\bT_\by_\bp_\be { _\bD_\bu_\bn_\be_\b:_\b:_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg =1 , _\bD_\bu_\bn_\be_\b:_\b:_\bn_\bo_\bd_\bi_\ba_\bg =0 }\n+\u00a0\n+enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bW_\bi_\bt_\bh_\bR_\be_\bl_\ba_\bx_\bT_\by_\bp_\be { _\bD_\bu_\bn_\be_\b:_\b:_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx =1 , _\bD_\bu_\bn_\be_\b:_\b:_\bn_\bo_\br_\be_\bl_\ba_\bx =0 }\n+\u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n+\u00a0 block lower triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w)\n+\u00a0 relaxed block lower triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n+\u00a0 unit block lower triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w)\n+\u00a0 relaxed unit block lower triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n+\u00a0 block upper triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w)\n+\u00a0 relaxed block upper triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n+\u00a0 unit block upper triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w)\n+\u00a0 relaxed unit block upper triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, _\bB_\bL< l >)\n+\u00a0 block lower triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w, _\bB_\bL< l >)\n+\u00a0 relaxed block lower triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, _\bB_\bL< l >)\n+\u00a0 unit block lower triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w, _\bB_\bL< l >)\n+\u00a0 relaxed unit block lower triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, _\bB_\bL< l > bl)\n+\u00a0 block upper triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w, _\bB_\bL< l > bl)\n+\u00a0 relaxed block upper triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, _\bB_\bL< l > bl)\n+\u00a0 unit block upper triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w, _\bB_\bL< l > bl)\n+\u00a0 relaxed unit block upper triangular solve\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n+\u00a0 block diagonal solve, no relaxation\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w)\n+\u00a0 block diagonal solve, with relaxation\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, _\bB_\bL< l >)\n+\u00a0 block diagonal solve, no relaxation\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d, const K &w, _\bB_\bL< l >)\n+\u00a0 block diagonal solve, with relaxation\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bg_\bs (const M &A, X &x, const Y &b, const K &w)\n+\u00a0 GS step.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bg_\bs (const M &A, X &x, const Y &b, const K &w, _\bB_\bL< l >)\n+\u00a0 GS step.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bf (const M &A, X &x, const Y &b, const K &w)\n+\u00a0 SOR step.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bf (const M &A, X &x, const Y &b, const K &w, _\bB_\bL< l >)\n+\u00a0 SOR step.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bb (const M &A, X &x, const Y &b, const K &w)\n+\u00a0 SSOR step.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bb (const M &A, X &x, const Y &b, const K &w, _\bB_\bL< l >)\n+\u00a0 Backward SOR step.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bj_\ba_\bc (const M &A, X &x, const Y &b, const K &w)\n+\u00a0 Jacobi step.\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bj_\ba_\bc (const M &A, X &x, const Y &b, const K &w, _\bB_\bL< l >)\n+\u00a0 Jacobi step.\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n+generic way.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00119_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00119_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: pinfo.hh Source File\n+dune-istl: gsetc.hh Source File\n \n \n \n \n \n \n \n@@ -70,174 +70,839 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n
    \n-
    pinfo.hh
    \n+
    gsetc.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_PINFO_HH
    \n-
    6#define DUNE_AMG_PINFO_HH
    \n+
    5#ifndef DUNE_ISTL_GSETC_HH
    \n+
    6#define DUNE_ISTL_GSETC_HH
    \n
    7
    \n-
    8#include <dune/common/parallel/communication.hh>
    \n-
    9#include <dune/common/enumset.hh>
    \n-
    10
    \n-
    11#if HAVE_MPI
    \n-
    12
    \n-
    13#include <dune/common/parallel/mpicommunication.hh>
    \n-
    14#include <dune/common/parallel/mpitraits.hh>
    \n-
    15#include <dune/common/parallel/remoteindices.hh>
    \n-
    16#include <dune/common/parallel/interface.hh>
    \n-
    17#include <dune/common/parallel/communicator.hh>
    \n+
    8#include <cmath>
    \n+
    9#include <complex>
    \n+
    10#include <iostream>
    \n+
    11#include <iomanip>
    \n+
    12#include <string>
    \n+
    13
    \n+
    14#include <dune/common/hybridutilities.hh>
    \n+
    15
    \n+\n+\n
    18
    \n-
    19#endif
    \n+
    19#include "istlexception.hh"
    \n
    20
    \n-\n-
    22namespace Dune
    \n-
    23{
    \n-
    24 namespace Amg
    \n-
    25 {
    \n-
    26
    \n-
    \n-\n-
    28 {
    \n-
    29 public:
    \n-
    30 typedef Communication<void*> MPICommunicator;
    \n-
    31 typedef EmptySet<int> CopyFlags;
    \n-
    32 typedef AllSet<int> OwnerSet;
    \n-
    33
    \n-
    \n-\n-\n-
    36 }
    \n-
    \n-
    37
    \n-
    \n-\n-
    39 {
    \n-
    40 return comm_;
    \n-
    41 }
    \n-
    \n+
    21
    \n+
    27namespace Dune {
    \n+
    28
    \n+
    39 //============================================================
    \n+
    40 // parameter types
    \n+
    41 //============================================================
    \n
    42
    \n-
    \n-
    43 int procs() const
    \n-
    44 {
    \n-
    45 return 1;
    \n-
    46 }
    \n-
    \n-
    47
    \n-
    48 template<typename T>
    \n-
    \n-
    49 T globalSum(const T& t) const
    \n-
    50 {
    \n-
    51 return t;
    \n-
    52 }
    \n+
    44 template<int l>
    \n+
    \n+
    45 struct BL {
    \n+
    46 enum {recursion_level = l};
    \n+
    47 };
    \n+
    \n+
    48
    \n+
    \n+\n+\n+
    51 nodiag=0
    \n+
    52 };
    \n
    \n
    53
    \n-\n-
    55
    \n-
    56 void buildGlobalLookup(std::size_t){}
    \n-
    57
    \n-\n-
    59
    \n-
    \n-\n-
    61 {
    \n-
    62 return gli;
    \n-
    63 }
    \n-
    \n-
    64
    \n-
    65 template<class V>
    \n-
    \n-
    66 void copyOwnerToAll([[maybe_unused]] V& v, [[maybe_unused]] V& v1) const
    \n-
    67 {}
    \n-
    \n-
    68
    \n-
    69 template<class V>
    \n-
    \n-
    70 void project([[maybe_unused]] V& v) const
    \n-
    71 {}
    \n-
    \n-
    72
    \n-
    73 template<class T1, class T2>
    \n-
    \n-
    74 void dot (const T1&, const T1&, T2&) const
    \n-
    75 {
    \n-
    76 // This function should never be called
    \n-
    77 std::abort();
    \n-
    78 }
    \n-
    \n-
    79
    \n-
    80 template<class T1>
    \n-
    \n-
    81 typename FieldTraits<typename T1::field_type>::real_type norm (const T1&) const
    \n-
    82 {
    \n-
    83 // This function should never be called
    \n-
    84 std::abort();
    \n-
    85 }
    \n-
    \n-
    86
    \n-
    87 template<class T>
    \n-
    \n-
    88 SequentialInformation(const Communication<T>&)
    \n-
    89 {}
    \n-
    \n-
    90
    \n-
    \n-\n-
    92 {}
    \n-
    \n-
    93
    \n-\n-
    96 private:
    \n-
    97 MPICommunicator comm_;
    \n-\n-
    99 };
    \n-
    \n-
    100
    \n-
    101
    \n-
    102 } // namespace Amg
    \n-
    103} //namespace Dune
    \n-
    104#endif
    \n-\n+
    \n+\n+\n+
    56 norelax=0
    \n+
    57 };
    \n+
    \n+
    58
    \n+
    59 //============================================================
    \n+
    60 // generic triangular solves
    \n+
    61 // consider block decomposition A = L + D + U
    \n+
    62 // we can invert L, L+D, U, U+D
    \n+
    63 // we can apply relaxation or not
    \n+
    64 // we can recurse over a fixed number of levels
    \n+
    65 //============================================================
    \n+
    66
    \n+
    67 // template meta program for triangular solves
    \n+
    68 template<int I, WithDiagType diag, WithRelaxType relax>
    \n+
    \n+\n+
    70 template<class M, class X, class Y, class K>
    \n+
    \n+
    71 static void bltsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    72 {
    \n+
    73 // iterator types
    \n+
    74 typedef typename M::ConstRowIterator rowiterator;
    \n+
    75 typedef typename M::ConstColIterator coliterator;
    \n+
    76 typedef typename Y::block_type bblock;
    \n+
    77
    \n+
    78 // local solve at each block and immediate update
    \n+
    79 rowiterator endi=A.end();
    \n+
    80 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n+
    81 {
    \n+
    82 bblock rhs(d[i.index()]);
    \n+
    83 coliterator j;
    \n+
    84 for (j=(*i).begin(); j.index()<i.index(); ++j)
    \n+
    85 (*j).mmv(v[j.index()],rhs);
    \n+
    86 algmeta_btsolve<I-1,diag,relax>::bltsolve(*j,v[i.index()],rhs,w);
    \n+
    87 }
    \n+
    88 }
    \n+
    \n+
    89 template<class M, class X, class Y, class K>
    \n+
    \n+
    90 static void butsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    91 {
    \n+
    92 // iterator types
    \n+
    93 typedef typename M::ConstRowIterator rowiterator;
    \n+
    94 typedef typename M::ConstColIterator coliterator;
    \n+
    95 typedef typename Y::block_type bblock;
    \n+
    96
    \n+
    97 // local solve at each block and immediate update
    \n+
    98 rowiterator rendi=A.beforeBegin();
    \n+
    99 for (rowiterator i=A.beforeEnd(); i!=rendi; --i)
    \n+
    100 {
    \n+
    101 bblock rhs(d[i.index()]);
    \n+
    102 coliterator j;
    \n+
    103 for (j=(*i).beforeEnd(); j.index()>i.index(); --j)
    \n+
    104 (*j).mmv(v[j.index()],rhs);
    \n+
    105 algmeta_btsolve<I-1,diag,relax>::butsolve(*j,v[i.index()],rhs,w);
    \n+
    106 }
    \n+
    107 }
    \n+
    \n+
    108 };
    \n+
    \n+
    109
    \n+
    110 // recursion end ...
    \n+
    111 template<>
    \n+
    \n+\n+
    113 template<class M, class X, class Y, class K>
    \n+
    \n+
    114 static void bltsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    115 {
    \n+
    116 A.solve(v,d);
    \n+
    117 v *= w;
    \n+
    118 }
    \n+
    \n+
    119 template<class M, class X, class Y, class K>
    \n+
    \n+
    120 static void butsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    121 {
    \n+
    122 A.solve(v,d);
    \n+
    123 v *= w;
    \n+
    124 }
    \n+
    \n+
    125 };
    \n+
    \n+
    126 template<>
    \n+
    \n+\n+
    128 template<class M, class X, class Y, class K>
    \n+
    \n+
    129 static void bltsolve (const M& A, X& v, const Y& d, const K& /*w*/)
    \n+
    130 {
    \n+
    131 A.solve(v,d);
    \n+
    132 }
    \n+
    \n+
    133 template<class M, class X, class Y, class K>
    \n+
    \n+
    134 static void butsolve (const M& A, X& v, const Y& d, const K& /*w*/)
    \n+
    135 {
    \n+
    136 A.solve(v,d);
    \n+
    137 }
    \n+
    \n+
    138 };
    \n+
    \n+
    139 template<>
    \n+
    \n+\n+
    141 template<class M, class X, class Y, class K>
    \n+
    \n+
    142 static void bltsolve (const M& /*A*/, X& v, const Y& d, const K& w)
    \n+
    143 {
    \n+
    144 v = d;
    \n+
    145 v *= w;
    \n+
    146 }
    \n+
    \n+
    147 template<class M, class X, class Y, class K>
    \n+
    \n+
    148 static void butsolve (const M& /*A*/, X& v, const Y& d, const K& w)
    \n+
    149 {
    \n+
    150 v = d;
    \n+
    151 v *= w;
    \n+
    152 }
    \n+
    \n+
    153 };
    \n+
    \n+
    154 template<>
    \n+
    \n+\n+
    156 template<class M, class X, class Y, class K>
    \n+
    \n+
    157 static void bltsolve (const M& /*A*/, X& v, const Y& d, const K& /*w*/)
    \n+
    158 {
    \n+
    159 v = d;
    \n+
    160 }
    \n+
    \n+
    161 template<class M, class X, class Y, class K>
    \n+
    \n+
    162 static void butsolve (const M& /*A*/, X& v, const Y& d, const K& /*w*/)
    \n+
    163 {
    \n+
    164 v = d;
    \n+
    165 }
    \n+
    \n+
    166 };
    \n+
    \n+
    167
    \n+
    168
    \n+
    169 // user calls
    \n+
    170
    \n+
    171 // default block recursion level = 1
    \n+
    172
    \n+
    174 template<class M, class X, class Y>
    \n+
    \n+
    175 void bltsolve (const M& A, X& v, const Y& d)
    \n+
    176 {
    \n+
    177 typename X::field_type w=1;
    \n+\n+
    179 }
    \n+
    \n+
    181 template<class M, class X, class Y, class K>
    \n+
    \n+
    182 void bltsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    183 {
    \n+\n+
    185 }
    \n+
    \n+
    187 template<class M, class X, class Y>
    \n+
    \n+
    188 void ubltsolve (const M& A, X& v, const Y& d)
    \n+
    189 {
    \n+
    190 typename X::field_type w=1;
    \n+\n+
    192 }
    \n+
    \n+
    194 template<class M, class X, class Y, class K>
    \n+
    \n+
    195 void ubltsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    196 {
    \n+\n+
    198 }
    \n+
    \n+
    199
    \n+
    201 template<class M, class X, class Y>
    \n+
    \n+
    202 void butsolve (const M& A, X& v, const Y& d)
    \n+
    203 {
    \n+
    204 typename X::field_type w=1;
    \n+\n+
    206 }
    \n+
    \n+
    208 template<class M, class X, class Y, class K>
    \n+
    \n+
    209 void butsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    210 {
    \n+\n+
    212 }
    \n+
    \n+
    214 template<class M, class X, class Y>
    \n+
    \n+
    215 void ubutsolve (const M& A, X& v, const Y& d)
    \n+
    216 {
    \n+
    217 typename X::field_type w=1;
    \n+\n+
    219 }
    \n+
    \n+
    221 template<class M, class X, class Y, class K>
    \n+
    \n+
    222 void ubutsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    223 {
    \n+\n+
    225 }
    \n+
    \n+
    226
    \n+
    227 // general block recursion level >= 0
    \n+
    228
    \n+
    230 template<class M, class X, class Y, int l>
    \n+
    \n+
    231 void bltsolve (const M& A, X& v, const Y& d, BL<l> /*bl*/)
    \n+
    232 {
    \n+
    233 typename X::field_type w=1;
    \n+\n+
    235 }
    \n+
    \n+
    237 template<class M, class X, class Y, class K, int l>
    \n+
    \n+
    238 void bltsolve (const M& A, X& v, const Y& d, const K& w, BL<l> /*bl*/)
    \n+
    239 {
    \n+\n+
    241 }
    \n+
    \n+
    243 template<class M, class X, class Y, int l>
    \n+
    \n+
    244 void ubltsolve (const M& A, X& v, const Y& d, BL<l> /*bl*/)
    \n+
    245 {
    \n+
    246 typename X::field_type w=1;
    \n+\n+
    248 }
    \n+
    \n+
    250 template<class M, class X, class Y, class K, int l>
    \n+
    \n+
    251 void ubltsolve (const M& A, X& v, const Y& d, const K& w, BL<l> /*bl*/)
    \n+
    252 {
    \n+\n+
    254 }
    \n+
    \n+
    255
    \n+
    257 template<class M, class X, class Y, int l>
    \n+
    \n+
    258 void butsolve (const M& A, X& v, const Y& d, BL<l> bl)
    \n+
    259 {
    \n+
    260 typename X::field_type w=1;
    \n+\n+
    262 }
    \n+
    \n+
    264 template<class M, class X, class Y, class K, int l>
    \n+
    \n+
    265 void butsolve (const M& A, X& v, const Y& d, const K& w, BL<l> bl)
    \n+
    266 {
    \n+\n+
    268 }
    \n+
    \n+
    270 template<class M, class X, class Y, int l>
    \n+
    \n+
    271 void ubutsolve (const M& A, X& v, const Y& d, BL<l> bl)
    \n+
    272 {
    \n+
    273 typename X::field_type w=1;
    \n+\n+
    275 }
    \n+
    \n+
    277 template<class M, class X, class Y, class K, int l>
    \n+
    \n+
    278 void ubutsolve (const M& A, X& v, const Y& d, const K& w, BL<l> bl)
    \n+
    279 {
    \n+\n+
    281 }
    \n+
    \n+
    282
    \n+
    283
    \n+
    284
    \n+
    285 //============================================================
    \n+
    286 // generic block diagonal solves
    \n+
    287 // consider block decomposition A = L + D + U
    \n+
    288 // we can apply relaxation or not
    \n+
    289 // we can recurse over a fixed number of levels
    \n+
    290 //============================================================
    \n+
    291
    \n+
    292 // template meta program for diagonal solves
    \n+
    293 template<int I, WithRelaxType relax>
    \n+
    \n+\n+
    295 template<class M, class X, class Y, class K>
    \n+
    \n+
    296 static void bdsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    297 {
    \n+
    298 // iterator types
    \n+
    299 typedef typename M::ConstRowIterator rowiterator;
    \n+
    300 typedef typename M::ConstColIterator coliterator;
    \n+
    301
    \n+
    302 // local solve at each block and immediate update
    \n+
    303 rowiterator rendi=A.beforeBegin();
    \n+
    304 for (rowiterator i=A.beforeEnd(); i!=rendi; --i)
    \n+
    305 {
    \n+
    306 coliterator ii=(*i).find(i.index());
    \n+
    307 algmeta_bdsolve<I-1,relax>::bdsolve(*ii,v[i.index()],d[i.index()],w);
    \n+
    308 }
    \n+
    309 }
    \n+
    \n+
    310 };
    \n+
    \n+
    311
    \n+
    312 // recursion end ...
    \n+
    313 template<>
    \n+
    \n+\n+
    315 template<class M, class X, class Y, class K>
    \n+
    \n+
    316 static void bdsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    317 {
    \n+
    318 A.solve(v,d);
    \n+
    319 v *= w;
    \n+
    320 }
    \n+
    \n+
    321 };
    \n+
    \n+
    322 template<>
    \n+
    \n+\n+
    324 template<class M, class X, class Y, class K>
    \n+
    \n+
    325 static void bdsolve (const M& A, X& v, const Y& d, const K& /*w*/)
    \n+
    326 {
    \n+
    327 A.solve(v,d);
    \n+
    328 }
    \n+
    \n+
    329 };
    \n+
    \n+
    330
    \n+
    331 // user calls
    \n+
    332
    \n+
    333 // default block recursion level = 1
    \n+
    334
    \n+
    336 template<class M, class X, class Y>
    \n+
    \n+
    337 void bdsolve (const M& A, X& v, const Y& d)
    \n+
    338 {
    \n+
    339 typename X::field_type w=1;
    \n+\n+
    341 }
    \n+
    \n+
    343 template<class M, class X, class Y, class K>
    \n+
    \n+
    344 void bdsolve (const M& A, X& v, const Y& d, const K& w)
    \n+
    345 {
    \n+\n+
    347 }
    \n+
    \n+
    348
    \n+
    349 // general block recursion level >= 0
    \n+
    350
    \n+
    352 template<class M, class X, class Y, int l>
    \n+
    \n+
    353 void bdsolve (const M& A, X& v, const Y& d, BL<l> /*bl*/)
    \n+
    354 {
    \n+
    355 typename X::field_type w=1;
    \n+\n+
    357 }
    \n+
    \n+
    359 template<class M, class X, class Y, class K, int l>
    \n+
    \n+
    360 void bdsolve (const M& A, X& v, const Y& d, const K& w, BL<l> /*bl*/)
    \n+
    361 {
    \n+\n+
    363 }
    \n+
    \n+
    364
    \n+
    365
    \n+
    366 //============================================================
    \n+
    367 // generic steps of iteration methods
    \n+
    368 // Jacobi, Gauss-Seidel, SOR, SSOR
    \n+
    369 // work directly on Ax=b, ie solve M(x^{i+1}-x^i) = w (b-Ax^i)
    \n+
    370 // we can recurse over a fixed number of levels
    \n+
    371 //============================================================
    \n+
    372
    \n+
    373 // template meta program for iterative solver steps
    \n+
    374 template<int I, typename M>
    \n+
    \n+\n+
    376
    \n+
    377 template<class X, class Y, class K>
    \n+
    \n+
    378 static void dbgs (const M& A, X& x, const Y& b, const K& w)
    \n+
    379 {
    \n+
    380 typedef typename M::ConstRowIterator rowiterator;
    \n+
    381 typedef typename M::ConstColIterator coliterator;
    \n+
    382 typedef typename Y::block_type bblock;
    \n+
    383 bblock rhs;
    \n+
    384
    \n+
    385 X xold(x); // remember old x
    \n+
    386
    \n+
    387 rowiterator endi=A.end();
    \n+
    388 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n+
    389 {
    \n+
    390 rhs = b[i.index()]; // rhs = b_i
    \n+
    391 coliterator endj=(*i).end();
    \n+
    392 coliterator j=(*i).begin();
    \n+
    393 if constexpr (IsNumber<typename M::block_type>())
    \n+
    394 {
    \n+
    395 for (; j.index()<i.index(); ++j)
    \n+
    396 rhs -= (*j) * x[j.index()];
    \n+
    397 coliterator diag=j++; // *diag = a_ii and increment coliterator j from a_ii to a_i+1,i to skip diagonal
    \n+
    398 for (; j != endj; ++j)
    \n+
    399 rhs -= (*j) * x[j.index()];
    \n+
    400 x[i.index()] = rhs / (*diag);
    \n+
    401 }
    \n+
    402 else
    \n+
    403 {
    \n+
    404 for (; j.index()<i.index(); ++j) // iterate over a_ij with j < i
    \n+
    405 (*j).mmv(x[j.index()],rhs); // rhs -= sum_{j<i} a_ij * xnew_j
    \n+
    406 coliterator diag=j++; // *diag = a_ii and increment coliterator j from a_ii to a_i+1,i to skip diagonal
    \n+
    407 for (; j != endj; ++j) // iterate over a_ij with j > i
    \n+
    408 (*j).mmv(x[j.index()],rhs); // rhs -= sum_{j>i} a_ij * xold_j
    \n+
    409 algmeta_itsteps<I-1,typename M::block_type>::dbgs(*diag,x[i.index()],rhs,w); // if I==1: xnew_i = rhs/a_ii
    \n+
    410 }
    \n+
    411 }
    \n+
    412 // next two lines: xnew_i = w / a_ii * (b_i - sum_{j<i} a_ij * xnew_j - sum_{j>=i} a_ij * xold_j) + (1-w)*xold;
    \n+
    413 x *= w;
    \n+
    414 x.axpy(K(1)-w,xold);
    \n+
    415 }
    \n+
    \n+
    416
    \n+
    417 template<class X, class Y, class K>
    \n+
    \n+
    418 static void bsorf (const M& A, X& x, const Y& b, const K& w)
    \n+
    419 {
    \n+
    420 typedef typename M::ConstRowIterator rowiterator;
    \n+
    421 typedef typename M::ConstColIterator coliterator;
    \n+
    422 typedef typename Y::block_type bblock;
    \n+
    423 typedef typename X::block_type xblock;
    \n+
    424 bblock rhs;
    \n+
    425 xblock v;
    \n+
    426
    \n+
    427 // Initialize nested data structure if there are entries
    \n+
    428 if(A.begin()!=A.end())
    \n+
    429 v=x[0];
    \n+
    430
    \n+
    431 rowiterator endi=A.end();
    \n+
    432 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n+
    433 {
    \n+
    434 rhs = b[i.index()]; // rhs = b_i
    \n+
    435 coliterator endj=(*i).end(); // iterate over a_ij with j < i
    \n+
    436 coliterator j=(*i).begin();
    \n+
    437 if constexpr (IsNumber<typename M::block_type>())
    \n+
    438 {
    \n+
    439 for (; j.index()<i.index(); ++j)
    \n+
    440 rhs -= (*j) * x[j.index()]; // rhs -= sum_{j<i} a_ij * xnew_j
    \n+
    441 coliterator diag=j; // *diag = a_ii
    \n+
    442 for (; j!=endj; ++j)
    \n+
    443 rhs -= (*j) * x[j.index()]; // rhs -= sum_{j<i} a_ij * xnew_j
    \n+
    444 v = rhs / (*diag);
    \n+
    445 x[i.index()] += w*v; // x_i = w / a_ii * (b_i - sum_{j<i} a_ij * xnew_j - sum_{j>=i} a_ij * xold_j)
    \n+
    446 }
    \n+
    447 else
    \n+
    448 {
    \n+
    449 for (; j.index()<i.index(); ++j)
    \n+
    450 (*j).mmv(x[j.index()],rhs); // rhs -= sum_{j<i} a_ij * xnew_j
    \n+
    451 coliterator diag=j; // *diag = a_ii
    \n+
    452 for (; j!=endj; ++j)
    \n+
    453 (*j).mmv(x[j.index()],rhs); // rhs -= sum_{j<i} a_ij * xnew_j
    \n+
    454 algmeta_itsteps<I-1,typename M::block_type>::bsorf(*diag,v,rhs,w); // if blocksize I==1: v = rhs/a_ii
    \n+
    455 x[i.index()].axpy(w,v); // x_i = w / a_ii * (b_i - sum_{j<i} a_ij * xnew_j - sum_{j>=i} a_ij * xold_j)
    \n+
    456 }
    \n+
    457 }
    \n+
    458 }
    \n+
    \n+
    459
    \n+
    460 template<class X, class Y, class K>
    \n+
    \n+
    461 static void bsorb (const M& A, X& x, const Y& b, const K& w)
    \n+
    462 {
    \n+
    463 typedef typename M::ConstRowIterator rowiterator;
    \n+
    464 typedef typename M::ConstColIterator coliterator;
    \n+
    465 typedef typename Y::block_type bblock;
    \n+
    466 typedef typename X::block_type xblock;
    \n+
    467 bblock rhs;
    \n+
    468 xblock v;
    \n+
    469
    \n+
    470 // Initialize nested data structure if there are entries
    \n+
    471 if(A.begin()!=A.end())
    \n+
    472 v=x[0];
    \n+
    473
    \n+
    474 rowiterator endi=A.beforeBegin();
    \n+
    475 for (rowiterator i=A.beforeEnd(); i!=endi; --i)
    \n+
    476 {
    \n+
    477 rhs = b[i.index()];
    \n+
    478 coliterator endj=(*i).end();
    \n+
    479 coliterator j=(*i).begin();
    \n+
    480 if constexpr (IsNumber<typename M::block_type>())
    \n+
    481 {
    \n+
    482 for (; j.index()<i.index(); ++j)
    \n+
    483 rhs -= (*j) * x[j.index()];
    \n+
    484 coliterator diag=j;
    \n+
    485 for (; j!=endj; ++j)
    \n+
    486 rhs -= (*j) * x[j.index()];
    \n+
    487 v = rhs / (*diag);
    \n+
    488 x[i.index()] += w*v;
    \n+
    489 }
    \n+
    490 else
    \n+
    491 {
    \n+
    492 for (; j.index()<i.index(); ++j)
    \n+
    493 j->mmv(x[j.index()],rhs);
    \n+
    494 coliterator diag=j;
    \n+
    495 for (; j!=endj; ++j)
    \n+
    496 j->mmv(x[j.index()],rhs);
    \n+\n+
    498 x[i.index()].axpy(w,v);
    \n+
    499 }
    \n+
    500 }
    \n+
    501 }
    \n+
    \n+
    502
    \n+
    503 template<class X, class Y, class K>
    \n+
    \n+
    504 static void dbjac (const M& A, X& x, const Y& b, const K& w)
    \n+
    505 {
    \n+
    506 typedef typename M::ConstRowIterator rowiterator;
    \n+
    507 typedef typename M::ConstColIterator coliterator;
    \n+
    508 typedef typename Y::block_type bblock;
    \n+
    509 bblock rhs;
    \n+
    510
    \n+
    511 X v(x); // allocate with same size
    \n+
    512
    \n+
    513 rowiterator endi=A.end();
    \n+
    514 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n+
    515 {
    \n+
    516 rhs = b[i.index()];
    \n+
    517 coliterator endj=(*i).end();
    \n+
    518 coliterator j=(*i).begin();
    \n+
    519 if constexpr (IsNumber<typename M::block_type>())
    \n+
    520 {
    \n+
    521 for (; j.index()<i.index(); ++j)
    \n+
    522 rhs -= (*j) * x[j.index()];
    \n+
    523 coliterator diag=j;
    \n+
    524 for (; j!=endj; ++j)
    \n+
    525 rhs -= (*j) * x[j.index()];
    \n+
    526 v[i.index()] = rhs / (*diag);
    \n+
    527 }
    \n+
    528 else
    \n+
    529 {
    \n+
    530 for (; j.index()<i.index(); ++j)
    \n+
    531 j->mmv(x[j.index()],rhs);
    \n+
    532 coliterator diag=j;
    \n+
    533 for (; j!=endj; ++j)
    \n+
    534 j->mmv(x[j.index()],rhs);
    \n+\n+
    536 }
    \n+
    537 }
    \n+
    538 x.axpy(w,v);
    \n+
    539 }
    \n+
    \n+
    540 };
    \n+
    \n+
    541 // end of recursion
    \n+
    542 template<typename M>
    \n+
    \n+
    543 struct algmeta_itsteps<0,M> {
    \n+
    544 template<class X, class Y, class K>
    \n+
    \n+
    545 static void dbgs (const M& A, X& x, const Y& b, const K& /*w*/)
    \n+
    546 {
    \n+
    547 A.solve(x,b);
    \n+
    548 }
    \n+
    \n+
    549 template<class X, class Y, class K>
    \n+
    \n+
    550 static void bsorf (const M& A, X& x, const Y& b, const K& /*w*/)
    \n+
    551 {
    \n+
    552 A.solve(x,b);
    \n+
    553 }
    \n+
    \n+
    554 template<class X, class Y, class K>
    \n+
    \n+
    555 static void bsorb (const M& A, X& x, const Y& b, const K& /*w*/)
    \n+
    556 {
    \n+
    557 A.solve(x,b);
    \n+
    558 }
    \n+
    \n+
    559 template<class X, class Y, class K>
    \n+
    \n+
    560 static void dbjac (const M& A, X& x, const Y& b, const K& /*w*/)
    \n+
    561 {
    \n+
    562 A.solve(x,b);
    \n+
    563 }
    \n+
    \n+
    564 };
    \n+
    \n+
    565
    \n+
    566 template<int I, typename T1, typename... MultiTypeMatrixArgs>
    \n+
    \n+
    567 struct algmeta_itsteps<I,MultiTypeBlockMatrix<T1, MultiTypeMatrixArgs...>> {
    \n+
    568 template<
    \n+
    569 typename... MultiTypeVectorArgs,
    \n+
    570 class K>
    \n+\n+
    579
    \n+
    580 template<
    \n+
    581 typename... MultiTypeVectorArgs,
    \n+
    582 class K>
    \n+\n+
    591
    \n+
    592 template<
    \n+
    593 typename... MultiTypeVectorArgs,
    \n+
    594 class K>
    \n+\n+
    603
    \n+
    604 template<
    \n+
    605 typename... MultiTypeVectorArgs,
    \n+
    606 class K
    \n+
    607 >
    \n+\n+
    616 };
    \n+
    \n+
    617
    \n+
    618 // user calls
    \n+
    619
    \n+
    621 template<class M, class X, class Y, class K>
    \n+
    \n+
    622 void dbgs (const M& A, X& x, const Y& b, const K& w)
    \n+
    623 {
    \n+\n+
    625 }
    \n+
    \n+
    627 template<class M, class X, class Y, class K, int l>
    \n+
    \n+
    628 void dbgs (const M& A, X& x, const Y& b, const K& w, BL<l> /*bl*/)
    \n+
    629 {
    \n+\n+
    631 }
    \n+
    \n+
    633 template<class M, class X, class Y, class K>
    \n+
    \n+
    634 void bsorf (const M& A, X& x, const Y& b, const K& w)
    \n+
    635 {
    \n+\n+
    637 }
    \n+
    \n+
    639 template<class M, class X, class Y, class K, int l>
    \n+
    \n+
    640 void bsorf (const M& A, X& x, const Y& b, const K& w, BL<l> /*bl*/)
    \n+
    641 {
    \n+\n+
    643 }
    \n+
    \n+
    645 template<class M, class X, class Y, class K>
    \n+
    \n+
    646 void bsorb (const M& A, X& x, const Y& b, const K& w)
    \n+
    647 {
    \n+\n+
    649 }
    \n+
    \n+
    651 template<class M, class X, class Y, class K, int l>
    \n+
    \n+
    652 void bsorb (const M& A, X& x, const Y& b, const K& w, BL<l> /*bl*/)
    \n+
    653 {
    \n+\n+
    655 }
    \n+
    \n+
    657 template<class M, class X, class Y, class K>
    \n+
    \n+
    658 void dbjac (const M& A, X& x, const Y& b, const K& w)
    \n+
    659 {
    \n+\n+
    661 }
    \n+
    \n+
    663 template<class M, class X, class Y, class K, int l>
    \n+
    \n+
    664 void dbjac (const M& A, X& x, const Y& b, const K& w, BL<l> /*bl*/)
    \n+
    665 {
    \n+\n+
    667 }
    \n+
    \n+
    668
    \n+
    669
    \n+
    672} // end namespace
    \n+
    673
    \n+
    674#endif
    \n+\n+\n+\n+
    static void dbjac(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:568
    \n+
    static void dbgs(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:484
    \n+
    static void bsorb(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:540
    \n+
    static constexpr size_type N()
    Return the number of matrix rows.
    Definition multitypeblockmatrix.hh:64
    \n+
    static void bsorf(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:513
    \n+
    void bltsolve(const M &A, X &v, const Y &d)
    block lower triangular solve
    Definition gsetc.hh:175
    \n+
    WithDiagType
    Definition gsetc.hh:49
    \n+
    void bsorb(const M &A, X &x, const Y &b, const K &w)
    SSOR step.
    Definition gsetc.hh:646
    \n+
    void ubltsolve(const M &A, X &v, const Y &d)
    unit block lower triangular solve
    Definition gsetc.hh:188
    \n+
    void dbjac(const M &A, X &x, const Y &b, const K &w)
    Jacobi step.
    Definition gsetc.hh:658
    \n+
    void dbgs(const M &A, X &x, const Y &b, const K &w)
    GS step.
    Definition gsetc.hh:622
    \n+
    WithRelaxType
    Definition gsetc.hh:54
    \n+
    void bdsolve(const M &A, X &v, const Y &d)
    block diagonal solve, no relaxation
    Definition gsetc.hh:337
    \n+
    void butsolve(const M &A, X &v, const Y &d)
    block upper triangular solve
    Definition gsetc.hh:202
    \n+
    void bsorf(const M &A, X &x, const Y &b, const K &w)
    SOR step.
    Definition gsetc.hh:634
    \n+
    void ubutsolve(const M &A, X &v, const Y &d)
    unit block upper triangular solve
    Definition gsetc.hh:215
    \n+
    @ nodiag
    Definition gsetc.hh:51
    \n+
    @ withdiag
    Definition gsetc.hh:50
    \n+
    @ norelax
    Definition gsetc.hh:56
    \n+
    @ withrelax
    Definition gsetc.hh:55
    \n
    Definition allocator.hh:11
    \n-
    Definition pinfo.hh:28
    \n-
    SequentialInformation()
    Definition pinfo.hh:91
    \n-
    T globalSum(const T &t) const
    Definition pinfo.hh:49
    \n-
    void dot(const T1 &, const T1 &, T2 &) const
    Definition pinfo.hh:74
    \n-
    EmptySet< int > CopyFlags
    Definition pinfo.hh:31
    \n-
    AllSet< int > OwnerSet
    Definition pinfo.hh:32
    \n-
    void copyOwnerToAll(V &v, V &v1) const
    Definition pinfo.hh:66
    \n-
    MPICommunicator communicator() const
    Definition pinfo.hh:38
    \n-
    void buildGlobalLookup(std::size_t)
    Definition pinfo.hh:56
    \n-
    FieldTraits< typenameT1::field_type >::real_type norm(const T1 &) const
    Definition pinfo.hh:81
    \n-
    void project(V &v) const
    Definition pinfo.hh:70
    \n-
    Communication< void * > MPICommunicator
    Definition pinfo.hh:30
    \n-
    SequentialInformation(const Communication< T > &)
    Definition pinfo.hh:88
    \n-
    const GlobalLookupIndexSet & globalLookup() const
    Definition pinfo.hh:60
    \n-
    SequentialInformation(const SequentialInformation &)
    Definition pinfo.hh:94
    \n-
    void freeGlobalLookup()
    Definition pinfo.hh:58
    \n-
    int GlobalLookupIndexSet
    Definition pinfo.hh:54
    \n-
    SolverCategory::Category category() const
    Definition pinfo.hh:34
    \n-
    int procs() const
    Definition pinfo.hh:43
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n+
    A Vector class to support different block types.
    Definition multitypeblockvector.hh:59
    \n+
    A Matrix class to support different block types.
    Definition multitypeblockmatrix.hh:46
    \n+
    compile-time parameter for block recursion depth
    Definition gsetc.hh:45
    \n+
    @ recursion_level
    Definition gsetc.hh:46
    \n+
    Definition gsetc.hh:69
    \n+
    static void butsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:90
    \n+
    static void bltsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:71
    \n+
    static void bltsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:114
    \n+
    static void butsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:120
    \n+
    static void bltsolve(const M &A, X &v, const Y &d, const K &)
    Definition gsetc.hh:129
    \n+
    static void butsolve(const M &A, X &v, const Y &d, const K &)
    Definition gsetc.hh:134
    \n+
    static void bltsolve(const M &, X &v, const Y &d, const K &w)
    Definition gsetc.hh:142
    \n+
    static void butsolve(const M &, X &v, const Y &d, const K &w)
    Definition gsetc.hh:148
    \n+
    static void bltsolve(const M &, X &v, const Y &d, const K &)
    Definition gsetc.hh:157
    \n+
    static void butsolve(const M &, X &v, const Y &d, const K &)
    Definition gsetc.hh:162
    \n+
    Definition gsetc.hh:294
    \n+
    static void bdsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:296
    \n+
    static void bdsolve(const M &A, X &v, const Y &d, const K &w)
    Definition gsetc.hh:316
    \n+
    static void bdsolve(const M &A, X &v, const Y &d, const K &)
    Definition gsetc.hh:325
    \n+
    Definition gsetc.hh:375
    \n+
    static void bsorb(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:461
    \n+
    static void bsorf(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:418
    \n+
    static void dbjac(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:504
    \n+
    static void dbgs(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:378
    \n+
    static void dbgs(const M &A, X &x, const Y &b, const K &)
    Definition gsetc.hh:545
    \n+
    static void dbjac(const M &A, X &x, const Y &b, const K &)
    Definition gsetc.hh:560
    \n+
    static void bsorf(const M &A, X &x, const Y &b, const K &)
    Definition gsetc.hh:550
    \n+
    static void bsorb(const M &A, X &x, const Y &b, const K &)
    Definition gsetc.hh:555
    \n+
    static void dbgs(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A, MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector< MultiTypeVectorArgs... > &b, const K &w)
    Definition gsetc.hh:571
    \n+
    static void dbjac(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A, MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector< MultiTypeVectorArgs... > &b, const K &w)
    Definition gsetc.hh:608
    \n+
    static void bsorf(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A, MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector< MultiTypeVectorArgs... > &b, const K &w)
    Definition gsetc.hh:583
    \n+
    static void bsorb(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A, MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector< MultiTypeVectorArgs... > &b, const K &w)
    Definition gsetc.hh:595
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,183 +1,832 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-pinfo.hh\n+gsetc.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_PINFO_HH\n-6#define DUNE_AMG_PINFO_HH\n+5#ifndef DUNE_ISTL_GSETC_HH\n+6#define DUNE_ISTL_GSETC_HH\n 7\n-8#include \n-9#include \n-10\n-11#if HAVE_MPI\n-12\n-13#include \n-14#include \n-15#include \n-16#include \n-17#include \n+8#include \n+9#include \n+10#include \n+11#include \n+12#include \n+13\n+14#include \n+15\n+16#include \"_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+17#include \"_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n 18\n-19#endif\n+19#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n 20\n-21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh>\n-22namespace _\bD_\bu_\bn_\be\n-23{\n-24 namespace Amg\n-25 {\n-26\n-_\b2_\b7 class _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-28 {\n-29 public:\n-_\b3_\b0 typedef Communication _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n-_\b3_\b1 typedef EmptySet _\bC_\bo_\bp_\by_\bF_\bl_\ba_\bg_\bs;\n-_\b3_\b2 typedef AllSet _\bO_\bw_\bn_\be_\br_\bS_\be_\bt;\n-33\n-_\b3_\b4 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by () const {\n-35 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-36 }\n-37\n-_\b3_\b8 _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br() const\n-39 {\n-40 return comm_;\n-41 }\n+21\n+27namespace _\bD_\bu_\bn_\be {\n+28\n+39 //============================================================\n+40 // parameter types\n+41 //============================================================\n 42\n-_\b4_\b3 int _\bp_\br_\bo_\bc_\bs() const\n-44 {\n-45 return 1;\n-46 }\n-47\n-48 template\n-_\b4_\b9 T _\bg_\bl_\bo_\bb_\ba_\bl_\bS_\bu_\bm(const T& t) const\n-50 {\n-51 return t;\n-52 }\n+44 template\n+_\b4_\b5 struct _\bB_\bL {\n+_\b4_\b6 enum {_\br_\be_\bc_\bu_\br_\bs_\bi_\bo_\bn_\b__\bl_\be_\bv_\be_\bl = l};\n+47 };\n+48\n+_\b4_\b9 enum _\bW_\bi_\bt_\bh_\bD_\bi_\ba_\bg_\bT_\by_\bp_\be {\n+_\b5_\b0 _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg=1,\n+51 _\bn_\bo_\bd_\bi_\ba_\bg=0\n+_\b5_\b2 };\n 53\n-_\b5_\b4 typedef int _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n-55\n-_\b5_\b6 void _\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(std::size_t){}\n-57\n-_\b5_\b8 void _\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(){}\n-59\n-_\b6_\b0 const _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& _\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp() const\n-61 {\n-62 return gli;\n-63 }\n-64\n-65 template\n-_\b6_\b6 void _\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl([[maybe_unused]] V& v, [[maybe_unused]] V& v1) const\n-67 {}\n-68\n-69 template\n-_\b7_\b0 void _\bp_\br_\bo_\bj_\be_\bc_\bt([[maybe_unused]] V& v) const\n-71 {}\n-72\n-73 template\n-_\b7_\b4 void _\bd_\bo_\bt (const T1&, const T1&, T2&) const\n-75 {\n-76 // This function should never be called\n-77 std::abort();\n-78 }\n-79\n-80 template\n-_\b8_\b1 typename FieldTraits::real_type _\bn_\bo_\br_\bm (const T1&)\n-const\n-82 {\n-83 // This function should never be called\n-84 std::abort();\n-85 }\n-86\n-87 template\n-_\b8_\b8 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn(const Communication&)\n-89 {}\n-90\n-_\b9_\b1 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn()\n-92 {}\n-93\n-_\b9_\b4 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn(const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn&)\n-95 {}\n-96 private:\n-97 _\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br comm_;\n-98 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt gli;\n-99 };\n-100\n-101\n-102 } // namespace Amg\n-103} //namespace Dune\n-104#endif\n-_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n+_\b5_\b4 enum _\bW_\bi_\bt_\bh_\bR_\be_\bl_\ba_\bx_\bT_\by_\bp_\be {\n+_\b5_\b5 _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx=1,\n+56 _\bn_\bo_\br_\be_\bl_\ba_\bx=0\n+_\b5_\b7 };\n+58\n+59 //============================================================\n+60 // generic triangular solves\n+61 // consider block decomposition A = L + D + U\n+62 // we can invert L, L+D, U, U+D\n+63 // we can apply relaxation or not\n+64 // we can recurse over a fixed number of levels\n+65 //============================================================\n+66\n+67 // template meta program for triangular solves\n+68 template\n+_\b6_\b9 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be {\n+70 template\n+_\b7_\b1 static void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+72 {\n+73 // iterator types\n+74 typedef typename M::ConstRowIterator rowiterator;\n+75 typedef typename M::ConstColIterator coliterator;\n+76 typedef typename Y::block_type bblock;\n+77\n+78 // local solve at each block and immediate update\n+79 rowiterator endi=A.end();\n+80 for (rowiterator i=A.begin(); i!=endi; ++i)\n+81 {\n+82 bblock rhs(d[i.index()]);\n+83 coliterator j;\n+84 for (j=(*i).begin(); j.index()_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(*j,v[i.index()],rhs,w);\n+87 }\n+88 }\n+89 template\n+_\b9_\b0 static void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+91 {\n+92 // iterator types\n+93 typedef typename M::ConstRowIterator rowiterator;\n+94 typedef typename M::ConstColIterator coliterator;\n+95 typedef typename Y::block_type bblock;\n+96\n+97 // local solve at each block and immediate update\n+98 rowiterator rendi=A.beforeBegin();\n+99 for (rowiterator i=A.beforeEnd(); i!=rendi; --i)\n+100 {\n+101 bblock rhs(d[i.index()]);\n+102 coliterator j;\n+103 for (j=(*i).beforeEnd(); j.index()>i.index(); --j)\n+104 (*j).mmv(v[j.index()],rhs);\n+105 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bI_\b-_\b1_\b,_\bd_\bi_\ba_\bg_\b,_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(*j,v[i.index()],rhs,w);\n+106 }\n+107 }\n+108 };\n+109\n+110 // recursion end ...\n+111 template<>\n+_\b1_\b1_\b2 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be<0,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx> {\n+113 template\n+_\b1_\b1_\b4 static void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+115 {\n+116 A.solve(v,d);\n+117 v *= w;\n+118 }\n+119 template\n+_\b1_\b2_\b0 static void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+121 {\n+122 A.solve(v,d);\n+123 v *= w;\n+124 }\n+125 };\n+126 template<>\n+_\b1_\b2_\b7 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be<0,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg,_\bn_\bo_\br_\be_\bl_\ba_\bx> {\n+128 template\n+_\b1_\b2_\b9 static void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& /*w*/)\n+130 {\n+131 A.solve(v,d);\n+132 }\n+133 template\n+_\b1_\b3_\b4 static void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& /*w*/)\n+135 {\n+136 A.solve(v,d);\n+137 }\n+138 };\n+139 template<>\n+_\b1_\b4_\b0 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be<0,_\bn_\bo_\bd_\bi_\ba_\bg,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx> {\n+141 template\n+_\b1_\b4_\b2 static void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& /*A*/, X& v, const Y& d, const K& w)\n+143 {\n+144 v = d;\n+145 v *= w;\n+146 }\n+147 template\n+_\b1_\b4_\b8 static void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& /*A*/, X& v, const Y& d, const K& w)\n+149 {\n+150 v = d;\n+151 v *= w;\n+152 }\n+153 };\n+154 template<>\n+_\b1_\b5_\b5 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be<0,_\bn_\bo_\bd_\bi_\ba_\bg,_\bn_\bo_\br_\be_\bl_\ba_\bx> {\n+156 template\n+_\b1_\b5_\b7 static void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& /*A*/, X& v, const Y& d, const K& /*w*/)\n+158 {\n+159 v = d;\n+160 }\n+161 template\n+_\b1_\b6_\b2 static void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& /*A*/, X& v, const Y& d, const K& /*w*/)\n+163 {\n+164 v = d;\n+165 }\n+166 };\n+167\n+168\n+169 // user calls\n+170\n+171 // default block recursion level = 1\n+172\n+174 template\n+_\b1_\b7_\b5 void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n+176 {\n+177 typename X::field_type w=1;\n+178 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+179 }\n+181 template\n+_\b1_\b8_\b2 void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+183 {\n+184 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+185 }\n+187 template\n+_\b1_\b8_\b8 void _\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n+189 {\n+190 typename X::field_type w=1;\n+191 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+192 }\n+194 template\n+_\b1_\b9_\b5 void _\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+196 {\n+197 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+198 }\n+199\n+201 template\n+_\b2_\b0_\b2 void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n+203 {\n+204 typename X::field_type w=1;\n+205 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+206 }\n+208 template\n+_\b2_\b0_\b9 void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+210 {\n+211 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+212 }\n+214 template\n+_\b2_\b1_\b5 void _\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n+216 {\n+217 typename X::field_type w=1;\n+218 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+219 }\n+221 template\n+_\b2_\b2_\b2 void _\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+223 {\n+224 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+225 }\n+226\n+227 // general block recursion level >= 0\n+228\n+230 template\n+_\b2_\b3_\b1 void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+232 {\n+233 typename X::field_type w=1;\n+234 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+235 }\n+237 template\n+_\b2_\b3_\b8 void _\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+239 {\n+240 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+241 }\n+243 template\n+_\b2_\b4_\b4 void _\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+245 {\n+246 typename X::field_type w=1;\n+247 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+248 }\n+250 template\n+_\b2_\b5_\b1 void _\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+252 {\n+253 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+254 }\n+255\n+257 template\n+_\b2_\b5_\b8 void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, _\bB_\bL_\b<_\bl_\b> bl)\n+259 {\n+260 typename X::field_type w=1;\n+261 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+262 }\n+264 template\n+_\b2_\b6_\b5 void _\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w, _\bB_\bL_\b<_\bl_\b> bl)\n+266 {\n+267 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+268 }\n+270 template\n+_\b2_\b7_\b1 void _\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, _\bB_\bL_\b<_\bl_\b> bl)\n+272 {\n+273 typename X::field_type w=1;\n+274 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+275 }\n+277 template\n+_\b2_\b7_\b8 void _\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w, _\bB_\bL_\b<_\bl_\b> bl)\n+279 {\n+280 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bn_\bo_\bd_\bi_\ba_\bg_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+281 }\n+282\n+283\n+284\n+285 //============================================================\n+286 // generic block diagonal solves\n+287 // consider block decomposition A = L + D + U\n+288 // we can apply relaxation or not\n+289 // we can recurse over a fixed number of levels\n+290 //============================================================\n+291\n+292 // template meta program for diagonal solves\n+293 template\n+_\b2_\b9_\b4 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be {\n+295 template\n+_\b2_\b9_\b6 static void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+297 {\n+298 // iterator types\n+299 typedef typename M::ConstRowIterator rowiterator;\n+300 typedef typename M::ConstColIterator coliterator;\n+301\n+302 // local solve at each block and immediate update\n+303 rowiterator rendi=A.beforeBegin();\n+304 for (rowiterator i=A.beforeEnd(); i!=rendi; --i)\n+305 {\n+306 coliterator ii=(*i).find(i.index());\n+307 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\bI_\b-_\b1_\b,_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be(*ii,v[i.index()],d[i.index()],w);\n+308 }\n+309 }\n+310 };\n+311\n+312 // recursion end ...\n+313 template<>\n+_\b3_\b1_\b4 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be<0,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx> {\n+315 template\n+_\b3_\b1_\b6 static void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+317 {\n+318 A.solve(v,d);\n+319 v *= w;\n+320 }\n+321 };\n+322 template<>\n+_\b3_\b2_\b3 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be<0,_\bn_\bo_\br_\be_\bl_\ba_\bx> {\n+324 template\n+_\b3_\b2_\b5 static void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& /*w*/)\n+326 {\n+327 A.solve(v,d);\n+328 }\n+329 };\n+330\n+331 // user calls\n+332\n+333 // default block recursion level = 1\n+334\n+336 template\n+_\b3_\b3_\b7 void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n+338 {\n+339 typename X::field_type w=1;\n+340 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+341 }\n+343 template\n+_\b3_\b4_\b4 void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w)\n+345 {\n+346 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b1_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+347 }\n+348\n+349 // general block recursion level >= 0\n+350\n+352 template\n+_\b3_\b5_\b3 void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+354 {\n+355 typename X::field_type w=1;\n+356 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bn_\bo_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+357 }\n+359 template\n+_\b3_\b6_\b0 void _\bb_\bd_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+361 {\n+362 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\bl_\b,_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be(A,v,d,w);\n+363 }\n+364\n+365\n+366 //============================================================\n+367 // generic steps of iteration methods\n+368 // Jacobi, Gauss-Seidel, SOR, SSOR\n+369 // work directly on Ax=b, ie solve M(x^{i+1}-x^i) = w (b-Ax^i)\n+370 // we can recurse over a fixed number of levels\n+371 //============================================================\n+372\n+373 // template meta program for iterative solver steps\n+374 template\n+_\b3_\b7_\b5 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs {\n+376\n+377 template\n+_\b3_\b7_\b8 static void _\bd_\bb_\bg_\bs (const M& A, X& x, const Y& b, const K& w)\n+379 {\n+380 typedef typename M::ConstRowIterator rowiterator;\n+381 typedef typename M::ConstColIterator coliterator;\n+382 typedef typename Y::block_type bblock;\n+383 bblock rhs;\n+384\n+385 X xold(x); // remember old x\n+386\n+387 rowiterator endi=A.end();\n+388 for (rowiterator i=A.begin(); i!=endi; ++i)\n+389 {\n+390 rhs = b[i.index()]; // rhs = b_i\n+391 coliterator endj=(*i).end();\n+392 coliterator j=(*i).begin();\n+393 if constexpr (IsNumber())\n+394 {\n+395 for (; j.index() i\n+408 (*j).mmv(x[j.index()],rhs); // rhs -= sum_{j>i} a_ij * xold_j\n+409 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bd_\bb_\bg_\bs(*diag,x[i.index\n+()],rhs,w); // if I==1: xnew_i = rhs/a_ii\n+410 }\n+411 }\n+412 // next two lines: xnew_i = w / a_ii * (b_i - sum_{j=i} a_ij * xold_j) + (1-w)*xold;\n+413 x *= w;\n+414 x.axpy(K(1)-w,xold);\n+415 }\n+416\n+417 template\n+_\b4_\b1_\b8 static void _\bb_\bs_\bo_\br_\bf (const M& A, X& x, const Y& b, const K& w)\n+419 {\n+420 typedef typename M::ConstRowIterator rowiterator;\n+421 typedef typename M::ConstColIterator coliterator;\n+422 typedef typename Y::block_type bblock;\n+423 typedef typename X::block_type xblock;\n+424 bblock rhs;\n+425 xblock v;\n+426\n+427 // Initialize nested data structure if there are entries\n+428 if(A.begin()!=A.end())\n+429 v=x[0];\n+430\n+431 rowiterator endi=A.end();\n+432 for (rowiterator i=A.begin(); i!=endi; ++i)\n+433 {\n+434 rhs = b[i.index()]; // rhs = b_i\n+435 coliterator endj=(*i).end(); // iterate over a_ij with j < i\n+436 coliterator j=(*i).begin();\n+437 if constexpr (IsNumber())\n+438 {\n+439 for (; j.index()=i} a_ij * xold_j)\n+446 }\n+447 else\n+448 {\n+449 for (; j.index()_\b:_\b:_\bb_\bs_\bo_\br_\bf(*diag,v,rhs,w); // if\n+blocksize I==1: v = rhs/a_ii\n+455 x[i.index()].axpy(w,v); // x_i = w / a_ii * (b_i - sum_{j=i} a_ij * xold_j)\n+456 }\n+457 }\n+458 }\n+459\n+460 template\n+_\b4_\b6_\b1 static void _\bb_\bs_\bo_\br_\bb (const M& A, X& x, const Y& b, const K& w)\n+462 {\n+463 typedef typename M::ConstRowIterator rowiterator;\n+464 typedef typename M::ConstColIterator coliterator;\n+465 typedef typename Y::block_type bblock;\n+466 typedef typename X::block_type xblock;\n+467 bblock rhs;\n+468 xblock v;\n+469\n+470 // Initialize nested data structure if there are entries\n+471 if(A.begin()!=A.end())\n+472 v=x[0];\n+473\n+474 rowiterator endi=A.beforeBegin();\n+475 for (rowiterator i=A.beforeEnd(); i!=endi; --i)\n+476 {\n+477 rhs = b[i.index()];\n+478 coliterator endj=(*i).end();\n+479 coliterator j=(*i).begin();\n+480 if constexpr (IsNumber())\n+481 {\n+482 for (; j.index()mmv(x[j.index()],rhs);\n+494 coliterator diag=j;\n+495 for (; j!=endj; ++j)\n+496 j->mmv(x[j.index()],rhs);\n+497 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(*diag,v,rhs,w);\n+498 x[i.index()].axpy(w,v);\n+499 }\n+500 }\n+501 }\n+502\n+503 template\n+_\b5_\b0_\b4 static void _\bd_\bb_\bj_\ba_\bc (const M& A, X& x, const Y& b, const K& w)\n+505 {\n+506 typedef typename M::ConstRowIterator rowiterator;\n+507 typedef typename M::ConstColIterator coliterator;\n+508 typedef typename Y::block_type bblock;\n+509 bblock rhs;\n+510\n+511 X v(x); // allocate with same size\n+512\n+513 rowiterator endi=A.end();\n+514 for (rowiterator i=A.begin(); i!=endi; ++i)\n+515 {\n+516 rhs = b[i.index()];\n+517 coliterator endj=(*i).end();\n+518 coliterator j=(*i).begin();\n+519 if constexpr (IsNumber())\n+520 {\n+521 for (; j.index()mmv(x[j.index()],rhs);\n+532 coliterator diag=j;\n+533 for (; j!=endj; ++j)\n+534 j->mmv(x[j.index()],rhs);\n+535 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(*diag,v[i.index\n+()],rhs,w);\n+536 }\n+537 }\n+538 x.axpy(w,v);\n+539 }\n+540 };\n+541 // end of recursion\n+542 template\n+_\b5_\b4_\b3 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs<0,M> {\n+544 template\n+_\b5_\b4_\b5 static void _\bd_\bb_\bg_\bs (const M& A, X& x, const Y& b, const K& /*w*/)\n+546 {\n+547 A.solve(x,b);\n+548 }\n+549 template\n+_\b5_\b5_\b0 static void _\bb_\bs_\bo_\br_\bf (const M& A, X& x, const Y& b, const K& /*w*/)\n+551 {\n+552 A.solve(x,b);\n+553 }\n+554 template\n+_\b5_\b5_\b5 static void _\bb_\bs_\bo_\br_\bb (const M& A, X& x, const Y& b, const K& /*w*/)\n+556 {\n+557 A.solve(x,b);\n+558 }\n+559 template\n+_\b5_\b6_\b0 static void _\bd_\bb_\bj_\ba_\bc (const M& A, X& x, const Y& b, const K& /*w*/)\n+561 {\n+562 A.solve(x,b);\n+563 }\n+564 };\n+565\n+566 template\n+_\b5_\b6_\b7 struct _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs>\n+{\n+568 template<\n+569 typename... MultiTypeVectorArgs,\n+570 class K>\n+_\b5_\b7_\b1 static void _\bd_\bb_\bg_\bs (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>&\n+A,\n+572 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& x,\n+573 const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& b,\n+574 const K& w)\n+575 {\n+576 static const int N = _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>_\b:_\b:_\bN();\n+577 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\b0_\b,_\bN_\b>_\b:_\b:_\bd_\bb_\bg_\bs(A, x, b, w);\n+578 }\n+579\n+580 template<\n+581 typename... MultiTypeVectorArgs,\n+582 class K>\n+_\b5_\b8_\b3 static void _\bb_\bs_\bo_\br_\bf (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>&\n+A,\n+584 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& x,\n+585 const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& b,\n+586 const K& w)\n+587 {\n+588 static const int N = _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>_\b:_\b:_\bN();\n+589 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\b0_\b,_\bN_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(A, x, b, w);\n+590 }\n+591\n+592 template<\n+593 typename... MultiTypeVectorArgs,\n+594 class K>\n+_\b5_\b9_\b5 static void _\bb_\bs_\bo_\br_\bb (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>&\n+A,\n+596 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& x,\n+597 const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& b,\n+598 const K& w)\n+599 {\n+600 static const int N = _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>_\b:_\b:_\bN();\n+601 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bN_\b-_\b1_\b,_\bN_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(A, x, b, w);\n+602 }\n+603\n+604 template<\n+605 typename... MultiTypeVectorArgs,\n+606 class K\n+607 >\n+_\b6_\b0_\b8 static void _\bd_\bb_\bj_\ba_\bc (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>&\n+A,\n+609 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& x,\n+610 const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bV_\be_\bc_\bt_\bo_\br_\bA_\br_\bg_\bs_\b._\b._\b._\b>& b,\n+611 const K& w)\n+612 {\n+613 static const int N = _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b>_\b:_\b:_\bN();\n+614 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\b0_\b,_\bN_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(A, x, b, w);\n+615 }\n+616 };\n+617\n+618 // user calls\n+619\n+621 template\n+_\b6_\b2_\b2 void _\bd_\bb_\bg_\bs (const M& A, X& x, const Y& b, const K& w)\n+623 {\n+624 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b1_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bg_\bs(A,x,b,w);\n+625 }\n+627 template\n+_\b6_\b2_\b8 void _\bd_\bb_\bg_\bs (const M& A, X& x, const Y& b, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+629 {\n+630 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bl_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bg_\bs(A,x,b,w);\n+631 }\n+633 template\n+_\b6_\b3_\b4 void _\bb_\bs_\bo_\br_\bf (const M& A, X& x, const Y& b, const K& w)\n+635 {\n+636 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b1_\b,_\bM_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(A,x,b,w);\n+637 }\n+639 template\n+_\b6_\b4_\b0 void _\bb_\bs_\bo_\br_\bf (const M& A, X& x, const Y& b, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+641 {\n+642 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bl_\b,_\bM_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(A,x,b,w);\n+643 }\n+645 template\n+_\b6_\b4_\b6 void _\bb_\bs_\bo_\br_\bb (const M& A, X& x, const Y& b, const K& w)\n+647 {\n+648 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b1_\b,_\bM_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(A,x,b,w);\n+649 }\n+651 template\n+_\b6_\b5_\b2 void _\bb_\bs_\bo_\br_\bb (const M& A, X& x, const Y& b, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+653 {\n+654 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bl_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bs_\bt_\bd_\b:_\b:_\br_\be_\bm_\bo_\bv_\be_\b__\bc_\bv_\b<_\bM_\b>_\b:_\b:_\bt_\by_\bp_\be>_\b:_\b:_\bb_\bs_\bo_\br_\bb(A,x,b,w);\n+655 }\n+657 template\n+_\b6_\b5_\b8 void _\bd_\bb_\bj_\ba_\bc (const M& A, X& x, const Y& b, const K& w)\n+659 {\n+660 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b1_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(A,x,b,w);\n+661 }\n+663 template\n+_\b6_\b6_\b4 void _\bd_\bb_\bj_\ba_\bc (const M& A, X& x, const Y& b, const K& w, _\bB_\bL_\b<_\bl_\b> /*bl*/)\n+665 {\n+666 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bl_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(A,x,b,w);\n+667 }\n+668\n+669\n+672} // end namespace\n+673\n+674#endif\n+_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+_\bm_\bu_\bl_\bt_\bi_\bt_\by_\bp_\be_\bb_\bl_\bo_\bc_\bk_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n+static void dbjac(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:568\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bg_\bs\n+static void dbgs(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:484\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+static void bsorb(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:540\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+static constexpr size_type N()\n+Return the number of matrix rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:64\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+static void bsorf(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:513\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n+void bltsolve(const M &A, X &v, const Y &d)\n+block lower triangular solve\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:175\n+_\bD_\bu_\bn_\be_\b:_\b:_\bW_\bi_\bt_\bh_\bD_\bi_\ba_\bg_\bT_\by_\bp_\be\n+WithDiagType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:49\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+void bsorb(const M &A, X &x, const Y &b, const K &w)\n+SSOR step.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:646\n+_\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n+void ubltsolve(const M &A, X &v, const Y &d)\n+unit block lower triangular solve\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:188\n+_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n+void dbjac(const M &A, X &x, const Y &b, const K &w)\n+Jacobi step.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:658\n+_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bg_\bs\n+void dbgs(const M &A, X &x, const Y &b, const K &w)\n+GS step.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:622\n+_\bD_\bu_\bn_\be_\b:_\b:_\bW_\bi_\bt_\bh_\bR_\be_\bl_\ba_\bx_\bT_\by_\bp_\be\n+WithRelaxType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be\n+void bdsolve(const M &A, X &v, const Y &d)\n+block diagonal solve, no relaxation\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:337\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n+void butsolve(const M &A, X &v, const Y &d)\n+block upper triangular solve\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:202\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+void bsorf(const M &A, X &x, const Y &b, const K &w)\n+SOR step.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:634\n+_\bD_\bu_\bn_\be_\b:_\b:_\bu_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n+void ubutsolve(const M &A, X &v, const Y &d)\n+unit block upper triangular solve\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:215\n+_\bD_\bu_\bn_\be_\b:_\b:_\bn_\bo_\bd_\bi_\ba_\bg\n+@ nodiag\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg\n+@ withdiag\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:50\n+_\bD_\bu_\bn_\be_\b:_\b:_\bn_\bo_\br_\be_\bl_\ba_\bx\n+@ norelax\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx\n+@ withrelax\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:55\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-SequentialInformation()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:91\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bS_\bu_\bm\n-T globalSum(const T &t) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:49\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bd_\bo_\bt\n-void dot(const T1 &, const T1 &, T2 &) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:74\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bF_\bl_\ba_\bg_\bs\n-EmptySet< int > CopyFlags\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:31\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n-AllSet< int > OwnerSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl\n-void copyOwnerToAll(V &v, V &v1) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:66\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n-MPICommunicator communicator() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:38\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n-void buildGlobalLookup(std::size_t)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bn_\bo_\br_\bm\n-FieldTraits< typenameT1::field_type >::real_type norm(const T1 &) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bp_\br_\bo_\bj_\be_\bc_\bt\n-void project(V &v) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bM_\bP_\bI_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n-Communication< void * > MPICommunicator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-SequentialInformation(const Communication< T > &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:88\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n-const GlobalLookupIndexSet & globalLookup() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:60\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-SequentialInformation(const SequentialInformation &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:94\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n-void freeGlobalLookup()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:58\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-int GlobalLookupIndexSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:54\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-SolverCategory::Category category() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:34\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bp_\br_\bo_\bc_\bs\n-int procs() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:43\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A Vector class to support different block types.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:59\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n+A Matrix class to support different block types.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bL\n+compile-time parameter for block recursion depth\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:45\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bL_\b:_\b:_\br_\be_\bc_\bu_\br_\bs_\bi_\bo_\bn_\b__\bl_\be_\bv_\be_\bl\n+@ recursion_level\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:69\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n+static void butsolve(const M &A, X &v, const Y &d, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:90\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n+static void bltsolve(const M &A, X &v, const Y &d, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:71\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n+static void bltsolve(const M &A, X &v, const Y &d, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n+static void butsolve(const M &A, X &v, const Y &d, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n+static void bltsolve(const M &A, X &v, const Y &d, const K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:129\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n+static void butsolve(const M &A, X &v, const Y &d, const K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:134\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n+static void bltsolve(const M &, X &v, const Y &d, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:142\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n+static void butsolve(const M &, X &v, const Y &d, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:148\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bl_\bt_\bs_\bo_\bl_\bv_\be\n+static void bltsolve(const M &, X &v, const Y &d, const K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:157\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bt_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\bd_\bi_\ba_\bg_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bu_\bt_\bs_\bo_\bl_\bv_\be\n+static void butsolve(const M &, X &v, const Y &d, const K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:162\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:294\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be\n+static void bdsolve(const M &A, X &v, const Y &d, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:296\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bw_\bi_\bt_\bh_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be\n+static void bdsolve(const M &A, X &v, const Y &d, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:316\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bb_\bd_\bs_\bo_\bl_\bv_\be_\b<_\b _\b0_\b,_\b _\bn_\bo_\br_\be_\bl_\ba_\bx_\b _\b>_\b:_\b:_\bb_\bd_\bs_\bo_\bl_\bv_\be\n+static void bdsolve(const M &A, X &v, const Y &d, const K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:325\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:375\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+static void bsorb(const M &A, X &x, const Y &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:461\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+static void bsorf(const M &A, X &x, const Y &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:418\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n+static void dbjac(const M &A, X &x, const Y &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:504\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bd_\bb_\bg_\bs\n+static void dbgs(const M &A, X &x, const Y &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:378\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\b0_\b,_\b _\bM_\b _\b>_\b:_\b:_\bd_\bb_\bg_\bs\n+static void dbgs(const M &A, X &x, const Y &b, const K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:545\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\b0_\b,_\b _\bM_\b _\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n+static void dbjac(const M &A, X &x, const Y &b, const K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\b0_\b,_\b _\bM_\b _\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+static void bsorf(const M &A, X &x, const Y &b, const K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:550\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\b0_\b,_\b _\bM_\b _\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+static void bsorb(const M &A, X &x, const Y &b, const K &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:555\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>\n+_\b>_\b:_\b:_\bd_\bb_\bg_\bs\n+static void dbgs(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A,\n+MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector<\n+MultiTypeVectorArgs... > &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:571\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>\n+_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n+static void dbjac(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A,\n+MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector<\n+MultiTypeVectorArgs... > &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:608\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>\n+_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+static void bsorf(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A,\n+MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector<\n+MultiTypeVectorArgs... > &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:583\n+_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\b _\bI_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>\n+_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+static void bsorb(const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A,\n+MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector<\n+MultiTypeVectorArgs... > &b, const K &w)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:595\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00122.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00122.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: fastamg.hh File Reference\n+dune-istl: solvertype.hh File Reference\n \n \n \n \n \n \n \n@@ -65,81 +65,44 @@\n
    \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n
    \n \n-
    fastamg.hh File Reference
    \n+Namespaces
    \n+
    solvertype.hh File Reference
    \n \n
    \n \n-

    A fast AMG method, that currently only allows only Gauss-Seidel smoothing and is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep with the defect calculation to reduce memory transfers. \n+

    Templates characterizing the type of a solver. \n More...

    \n-
    #include <memory>
    \n-#include <dune/common/exceptions.hh>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/istl/paamg/smoother.hh>
    \n-#include <dune/istl/paamg/transfer.hh>
    \n-#include <dune/istl/paamg/matrixhierarchy.hh>
    \n-#include <dune/istl/solvers.hh>
    \n-#include <dune/istl/scalarproducts.hh>
    \n-#include <dune/istl/superlu.hh>
    \n-#include <dune/istl/umfpack.hh>
    \n-#include <dune/istl/solvertype.hh>
    \n-#include <dune/istl/io.hh>
    \n-#include <dune/istl/preconditioners.hh>
    \n-#include "fastamgsmoother.hh"
    \n-
    \n+\n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n+\n \n

    \n Classes

    class  Dune::Amg::FastAMG< M, X, PI, A >
     A fast (sequential) algebraic multigrid based on agglomeration that saves memory bandwidth. More...
    struct  Dune::IsDirectSolver< Solver >
     
    struct  Dune::StoresColumnCompressed< Solver >
     
    \n \n \n \n-\n-\n-

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-\n-\n-\n

    \n-Macros

    #define DIRECTSOLVER   SuperLU
     
    \n

    Detailed Description

    \n-

    A fast AMG method, that currently only allows only Gauss-Seidel smoothing and is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep with the defect calculation to reduce memory transfers.

    \n-
    Author
    Markus Blatt
    \n-

    Macro Definition Documentation

    \n-\n-

    ◆ DIRECTSOLVER

    \n-\n-
    \n-
    \n- \n- \n- \n- \n-
    #define DIRECTSOLVER   SuperLU
    \n-
    \n-\n-
    \n-
    \n-
    \n+

    Templates characterizing the type of a solver.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,51 +1,22 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bM_\ba_\bc_\br_\bo_\bs\n-fastamg.hh File Reference\n-A fast AMG method, that currently only allows only Gauss-Seidel smoothing and\n-is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep\n-with the defect calculation to reduce memory transfers. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n-#include \"_\bf_\ba_\bs_\bt_\ba_\bm_\bg_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\"\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+solvertype.hh File Reference\n+Templates characterizing the type of a solver. _\bM_\bo_\br_\be_\b._\b._\b.\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bP_\bI_\b,_\b _\bA_\b _\b>\n-\u00a0 A fast (sequential) algebraic multigrid based on agglomeration that\n- saves memory bandwidth. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bS_\bo_\bl_\bv_\be_\br_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\b _\bS_\bo_\bl_\bv_\be_\br_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n-\u00a0\n-M\bMa\bac\bcr\bro\bos\bs\n-#define\u00a0 _\bD_\bI_\bR_\bE_\bC_\bT_\bS_\bO_\bL_\bV_\bE_\bR\u00a0\u00a0\u00a0SuperLU\n-\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-A fast AMG method, that currently only allows only Gauss-Seidel smoothing and\n-is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep\n-with the defect calculation to reduce memory transfers.\n- Author\n- Markus Blatt\n-*\b**\b**\b**\b**\b* M\bMa\bac\bcr\bro\bo D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDI\bIR\bRE\bEC\bCT\bTS\bSO\bOL\bLV\bVE\bER\bR *\b**\b**\b**\b**\b*\n-#define DIRECTSOLVER\u00a0\u00a0\u00a0SuperLU\n+Templates characterizing the type of a solver.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00122_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00122_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: fastamg.hh Source File\n+dune-istl: solvertype.hh Source File\n \n \n \n \n \n \n \n@@ -70,666 +70,58 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n
    \n-
    fastamg.hh
    \n+
    solvertype.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_FASTAMG_HH
    \n-
    6#define DUNE_ISTL_FASTAMG_HH
    \n+
    5#ifndef DUNE_ISTL_SOLVERTYPE_HH
    \n+
    6#define DUNE_ISTL_SOLVERTYPE_HH
    \n
    7
    \n-
    8#include <memory>
    \n-
    9#include <dune/common/exceptions.hh>
    \n-
    10#include <dune/common/typetraits.hh>
    \n-\n-\n-\n-
    14#include <dune/istl/solvers.hh>
    \n-\n-
    16#include <dune/istl/superlu.hh>
    \n-
    17#include <dune/istl/umfpack.hh>
    \n-\n-
    19#include <dune/istl/io.hh>
    \n-\n-
    21
    \n-
    22#include "fastamgsmoother.hh"
    \n-
    23
    \n-
    32namespace Dune
    \n-
    33{
    \n-
    34 namespace Amg
    \n-
    35 {
    \n-
    58 template<class M, class X, class PI=SequentialInformation, class A=std::allocator<X> >
    \n-
    \n-
    59 class FastAMG : public Preconditioner<X,X>
    \n-
    60 {
    \n-
    61 public:
    \n-
    63 typedef M Operator;
    \n-\n-\n-\n-
    75
    \n-
    77 typedef X Domain;
    \n-
    79 typedef X Range;
    \n-\n-
    82
    \n-
    90 FastAMG(OperatorHierarchy& matrices, CoarseSolver& coarseSolver,
    \n-
    91 const Parameters& parms,
    \n-
    92 bool symmetric=true);
    \n-
    93
    \n-
    105 template<class C>
    \n-
    106 FastAMG(const Operator& fineOperator, const C& criterion,
    \n-
    107 const Parameters& parms=Parameters(),
    \n-
    108 bool symmetric=true,
    \n-\n-
    110
    \n-
    114 FastAMG(const FastAMG& amg);
    \n-
    115
    \n-
    117 void pre(Domain& x, Range& b);
    \n-
    118
    \n-
    120 void apply(Domain& v, const Range& d);
    \n-
    121
    \n-
    \n-\n-
    124 {
    \n-\n-
    126 }
    \n+
    12namespace Dune
    \n+
    13{
    \n+
    14 template<typename Solver>
    \n+
    \n+\n+
    16 {
    \n+
    17 enum
    \n+
    18 {
    \n+
    24 value =false
    \n+
    25 };
    \n+
    26 };
    \n+
    \n+
    27
    \n+
    28 template<typename Solver>
    \n+
    \n+\n+
    30 {
    \n+
    31 enum
    \n+
    32 {
    \n+
    36 value = false
    \n+
    37 };
    \n+
    38 };
    \n
    \n-
    127
    \n-
    129 void post(Domain& x);
    \n-
    130
    \n-
    135 template<class A1>
    \n-
    136 void getCoarsestAggregateNumbers(std::vector<std::size_t,A1>& cont);
    \n-
    137
    \n-
    138 std::size_t levels();
    \n-
    139
    \n-
    140 std::size_t maxlevels();
    \n-
    141
    \n-
    \n-\n-
    151 {
    \n-
    152 matrices_->recalculateGalerkin(NegateSet<typename PI::OwnerSet>());
    \n-
    153 }
    \n-
    \n-
    154
    \n-
    159 bool usesDirectCoarseLevelSolver() const;
    \n-
    160
    \n-
    161 private:
    \n-
    168 template<class C>
    \n-
    169 void createHierarchies(C& criterion,
    \n-
    170 const std::shared_ptr<const Operator>& matrixptr,
    \n-
    171 const PI& pinfo);
    \n-
    172
    \n-
    179 struct LevelContext
    \n-
    180 {
    \n-
    184 typename OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix;
    \n-\n-
    192 typename OperatorHierarchy::RedistributeInfoList::const_iterator redist;
    \n-
    196 typename OperatorHierarchy::AggregatesMapList::const_iterator aggregates;
    \n-\n-\n-\n-
    212 std::size_t level;
    \n-
    213 };
    \n-
    214
    \n-
    216 void mgc(LevelContext& levelContext, Domain& x, const Range& b);
    \n-
    217
    \n-
    224 void presmooth(LevelContext& levelContext, Domain& x, const Range& b);
    \n-
    225
    \n-
    232 void postsmooth(LevelContext& levelContext, Domain& x, const Range& b);
    \n-
    233
    \n-
    240 void moveToFineLevel(LevelContext& levelContext, bool processedFineLevel,
    \n-
    241 Domain& fineX);
    \n-
    242
    \n-
    247 bool moveToCoarseLevel(LevelContext& levelContext);
    \n-
    248
    \n-
    253 void initIteratorsWithFineLevel(LevelContext& levelContext);
    \n-
    254
    \n-
    256 std::shared_ptr<OperatorHierarchy> matrices_;
    \n-
    258 std::shared_ptr<CoarseSolver> solver_;
    \n-
    260 std::shared_ptr<Hierarchy<Range,A>> rhs_;
    \n-
    262 std::shared_ptr<Hierarchy<Domain,A>> lhs_;
    \n-
    264 std::shared_ptr<Hierarchy<Domain,A>> residual_;
    \n-
    265
    \n-\n-
    269 std::shared_ptr<ScalarProduct> scalarProduct_;
    \n-
    271 std::size_t gamma_;
    \n-
    273 std::size_t preSteps_;
    \n-
    275 std::size_t postSteps_;
    \n-
    276 std::size_t level;
    \n-
    277 bool buildHierarchy_;
    \n-
    278 bool symmetric;
    \n-
    279 bool coarsesolverconverged;
    \n-\n-
    281 typedef std::shared_ptr<Smoother> SmootherPointer;
    \n-
    282 SmootherPointer coarseSmoother_;
    \n-
    284 std::size_t verbosity_;
    \n-
    285 };
    \n-
    \n-
    286
    \n-
    287 template<class M, class X, class PI, class A>
    \n-
    \n-\n-
    289 : matrices_(amg.matrices_), solver_(amg.solver_),
    \n-
    290 rhs_(), lhs_(), residual_(), scalarProduct_(amg.scalarProduct_),
    \n-
    291 gamma_(amg.gamma_), preSteps_(amg.preSteps_), postSteps_(amg.postSteps_),
    \n-
    292 symmetric(amg.symmetric), coarsesolverconverged(amg.coarsesolverconverged),
    \n-
    293 coarseSmoother_(amg.coarseSmoother_), verbosity_(amg.verbosity_)
    \n-
    294 {}
    \n-
    \n-
    295
    \n-
    296 template<class M, class X, class PI, class A>
    \n-
    \n-\n-
    298 const Parameters& parms, bool symmetric_)
    \n-
    299 : matrices_(stackobject_to_shared_ptr(matrices)), solver_(&coarseSolver),
    \n-
    300 rhs_(), lhs_(), residual_(), scalarProduct_(),
    \n-
    301 gamma_(parms.getGamma()), preSteps_(parms.getNoPreSmoothSteps()),
    \n-
    302 postSteps_(parms.getNoPostSmoothSteps()), buildHierarchy_(false),
    \n-
    303 symmetric(symmetric_), coarsesolverconverged(true),
    \n-
    304 coarseSmoother_(), verbosity_(parms.debugLevel())
    \n-
    305 {
    \n-
    306 if(preSteps_>1||postSteps_>1)
    \n-
    307 {
    \n-
    308 std::cerr<<"WARNING only one step of smoothing is supported!"<<std::endl;
    \n-
    309 preSteps_=postSteps_=0;
    \n-
    310 }
    \n-
    311 assert(matrices_->isBuilt());
    \n-
    312 static_assert(std::is_same<PI,SequentialInformation>::value,
    \n-
    313 "Currently only sequential runs are supported");
    \n-
    314 }
    \n-
    \n-
    315 template<class M, class X, class PI, class A>
    \n-
    316 template<class C>
    \n-
    \n-\n-
    318 const C& criterion,
    \n-
    319 const Parameters& parms,
    \n-
    320 bool symmetric_,
    \n-
    321 const PI& pinfo)
    \n-
    322 : solver_(), rhs_(), lhs_(), residual_(), scalarProduct_(), gamma_(parms.getGamma()),
    \n-
    323 preSteps_(parms.getNoPreSmoothSteps()), postSteps_(parms.getNoPostSmoothSteps()),
    \n-
    324 buildHierarchy_(true),
    \n-
    325 symmetric(symmetric_), coarsesolverconverged(true),
    \n-
    326 coarseSmoother_(), verbosity_(criterion.debugLevel())
    \n-
    327 {
    \n-
    328 if(preSteps_>1||postSteps_>1)
    \n-
    329 {
    \n-
    330 std::cerr<<"WARNING only one step of smoothing is supported!"<<std::endl;
    \n-
    331 preSteps_=postSteps_=1;
    \n-
    332 }
    \n-
    333 static_assert(std::is_same<PI,SequentialInformation>::value,
    \n-
    334 "Currently only sequential runs are supported");
    \n-
    335 // TODO: reestablish compile time checks.
    \n-
    336 //static_assert(static_cast<int>(PI::category)==static_cast<int>(S::category),
    \n-
    337 // "Matrix and Solver must match in terms of category!");
    \n-
    338 auto matrixptr = stackobject_to_shared_ptr(matrix);
    \n-
    339 createHierarchies(criterion, matrixptr, pinfo);
    \n-
    340 }
    \n-
    \n-
    341
    \n-
    342 template<class M, class X, class PI, class A>
    \n-
    343 template<class C>
    \n-
    344 void FastAMG<M,X,PI,A>::createHierarchies(C& criterion,
    \n-
    345 const std::shared_ptr<const Operator>& matrixptr,
    \n-
    346 const PI& pinfo)
    \n-
    347 {
    \n-
    348 Timer watch;
    \n-
    349 matrices_ = std::make_shared<OperatorHierarchy>(
    \n-
    350 std::const_pointer_cast<Operator>(matrixptr),
    \n-
    351 stackobject_to_shared_ptr(const_cast<PI&>(pinfo)));
    \n-
    352
    \n-
    353 matrices_->template build<NegateSet<typename PI::OwnerSet> >(criterion);
    \n-
    354
    \n-
    355 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator().rank()==0)
    \n-
    356 std::cout<<"Building Hierarchy of "<<matrices_->maxlevels()<<" levels took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n-
    357
    \n-
    358 if(buildHierarchy_ && matrices_->levels()==matrices_->maxlevels()) {
    \n-
    359 // We have the carsest level. Create the coarse Solver
    \n-
    360 typedef typename SmootherTraits<Smoother>::Arguments SmootherArgs;
    \n-
    361 SmootherArgs sargs;
    \n-
    362 sargs.iterations = 1;
    \n-
    363
    \n-\n-
    365 cargs.setArgs(sargs);
    \n-
    366 if(matrices_->redistributeInformation().back().isSetup()) {
    \n-
    367 // Solve on the redistributed partitioning
    \n-
    368 cargs.setMatrix(matrices_->matrices().coarsest().getRedistributed().getmat());
    \n-
    369 cargs.setComm(matrices_->parallelInformation().coarsest().getRedistributed());
    \n-
    370 }else{
    \n-
    371 cargs.setMatrix(matrices_->matrices().coarsest()->getmat());
    \n-
    372 cargs.setComm(*matrices_->parallelInformation().coarsest());
    \n-
    373 }
    \n-
    374
    \n-
    375 coarseSmoother_ = ConstructionTraits<Smoother>::construct(cargs);
    \n-
    376 scalarProduct_ = createScalarProduct<X>(cargs.getComm(),category());
    \n-
    377
    \n-
    378#if HAVE_SUPERLU|| HAVE_SUITESPARSE_UMFPACK
    \n-
    379#if HAVE_SUITESPARSE_UMFPACK
    \n-
    380#define DIRECTSOLVER UMFPack
    \n-
    381#else
    \n-
    382#define DIRECTSOLVER SuperLU
    \n-
    383#endif
    \n-
    384 // Use superlu if we are purely sequential or with only one processor on the coarsest level.
    \n-
    385 if(std::is_same<ParallelInformation,SequentialInformation>::value // sequential mode
    \n-
    386 || matrices_->parallelInformation().coarsest()->communicator().size()==1 //parallel mode and only one processor
    \n-
    387 || (matrices_->parallelInformation().coarsest().isRedistributed()
    \n-
    388 && matrices_->parallelInformation().coarsest().getRedistributed().communicator().size()==1
    \n-
    389 && matrices_->parallelInformation().coarsest().getRedistributed().communicator().size()>0)) { // redistribute and 1 proc
    \n-
    390 if(verbosity_>0 && matrices_->parallelInformation().coarsest()->communicator().rank()==0)
    \n-
    391 std::cout<<"Using superlu"<<std::endl;
    \n-
    392 if(matrices_->parallelInformation().coarsest().isRedistributed())
    \n-
    393 {
    \n-
    394 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)
    \n-
    395 // We are still participating on this level
    \n-
    396 solver_.reset(new DIRECTSOLVER<typename M::matrix_type>(matrices_->matrices().coarsest().getRedistributed().getmat(), false, false));
    \n-
    397 else
    \n-
    398 solver_.reset();
    \n-
    399 }else
    \n-
    400 solver_.reset(new DIRECTSOLVER<typename M::matrix_type>(matrices_->matrices().coarsest()->getmat(), false, false));
    \n-
    401 }else
    \n-
    402#undef DIRECTSOLVER
    \n-
    403#endif // HAVE_SUPERLU|| HAVE_SUITESPARSE_UMFPACK
    \n-
    404 {
    \n-
    405 if(matrices_->parallelInformation().coarsest().isRedistributed())
    \n-
    406 {
    \n-
    407 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)
    \n-
    408 // We are still participating on this level
    \n-
    409 solver_.reset(new BiCGSTABSolver<X>(const_cast<M&>(matrices_->matrices().coarsest().getRedistributed()),
    \n-
    410 *scalarProduct_,
    \n-
    411 *coarseSmoother_, 1E-2, 1000, 0));
    \n-
    412 else
    \n-
    413 solver_.reset();
    \n-
    414 }else
    \n-
    415 solver_.reset(new BiCGSTABSolver<X>(const_cast<M&>(*matrices_->matrices().coarsest()),
    \n-
    416 *scalarProduct_,
    \n-
    417 *coarseSmoother_, 1E-2, 1000, 0));
    \n-
    418 }
    \n-
    419 }
    \n-
    420
    \n-
    421 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator().rank()==0)
    \n-
    422 std::cout<<"Building Hierarchy of "<<matrices_->maxlevels()<<" levels took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n-
    423 }
    \n-
    424
    \n-
    425
    \n-
    426 template<class M, class X, class PI, class A>
    \n-
    \n-\n-
    428 {
    \n-
    429 Timer watch, watch1;
    \n-
    430 // Detect Matrix rows where all offdiagonal entries are
    \n-
    431 // zero and set x such that A_dd*x_d=b_d
    \n-
    432 // Thus users can be more careless when setting up their linear
    \n-
    433 // systems.
    \n-
    434 typedef typename M::matrix_type Matrix;
    \n-
    435 typedef typename Matrix::ConstRowIterator RowIter;
    \n-
    436 typedef typename Matrix::ConstColIterator ColIter;
    \n-
    437 typedef typename Matrix::block_type Block;
    \n-
    438 Block zero;
    \n-
    439 zero=typename Matrix::field_type();
    \n-
    440
    \n-
    441 const Matrix& mat=matrices_->matrices().finest()->getmat();
    \n-
    442 for(RowIter row=mat.begin(); row!=mat.end(); ++row) {
    \n-
    443 bool isDirichlet = true;
    \n-
    444 bool hasDiagonal = false;
    \n-
    445 ColIter diag;
    \n-
    446 for(ColIter col=row->begin(); col!=row->end(); ++col) {
    \n-
    447 if(row.index()==col.index()) {
    \n-
    448 diag = col;
    \n-
    449 hasDiagonal = (*col != zero);
    \n-
    450 }else{
    \n-
    451 if(*col!=zero)
    \n-
    452 isDirichlet = false;
    \n-
    453 }
    \n-
    454 }
    \n-
    455 if(isDirichlet && hasDiagonal)
    \n-
    456 diag->solve(x[row.index()], b[row.index()]);
    \n-
    457 }
    \n-
    458 if (verbosity_>0)
    \n-
    459 std::cout<<" Preprocessing Dirichlet took "<<watch1.elapsed()<<std::endl;
    \n-
    460 watch1.reset();
    \n-
    461 // No smoother to make x consistent! Do it by hand
    \n-
    462 matrices_->parallelInformation().coarsest()->copyOwnerToAll(x,x);
    \n-
    463 rhs_ = std::make_shared<Hierarchy<Range,A>>(std::make_shared<Range>(b));
    \n-
    464 lhs_ = std::make_shared<Hierarchy<Domain,A>>(std::make_shared<Domain>(x));
    \n-
    465 residual_ = std::make_shared<Hierarchy<Domain,A>>(std::make_shared<Domain>(x));
    \n-
    466 matrices_->coarsenVector(*rhs_);
    \n-
    467 matrices_->coarsenVector(*lhs_);
    \n-
    468 matrices_->coarsenVector(*residual_);
    \n-
    469
    \n-
    470 // The preconditioner might change x and b. So we have to
    \n-
    471 // copy the changes to the original vectors.
    \n-
    472 x = *lhs_->finest();
    \n-
    473 b = *rhs_->finest();
    \n-
    474 }
    \n-
    \n-
    475 template<class M, class X, class PI, class A>
    \n-
    \n-\n-
    477 {
    \n-
    478 return matrices_->levels();
    \n-
    479 }
    \n-
    \n-
    480 template<class M, class X, class PI, class A>
    \n-
    \n-\n-
    482 {
    \n-
    483 return matrices_->maxlevels();
    \n-
    484 }
    \n-
    \n-
    485
    \n-
    487 template<class M, class X, class PI, class A>
    \n-
    \n-\n-
    489 {
    \n-
    490 LevelContext levelContext;
    \n-
    491 // Init all iterators for the current level
    \n-
    492 initIteratorsWithFineLevel(levelContext);
    \n-
    493
    \n-
    494 assert(v.two_norm()==0);
    \n-
    495
    \n-
    496 level=0;
    \n-
    497 if(matrices_->maxlevels()==1){
    \n-
    498 // The coarse solver might modify the d!
    \n-
    499 Range b(d);
    \n-
    500 mgc(levelContext, v, b);
    \n-
    501 }else
    \n-
    502 mgc(levelContext, v, d);
    \n-
    503 if(postSteps_==0||matrices_->maxlevels()==1)
    \n-
    504 levelContext.pinfo->copyOwnerToAll(v, v);
    \n-
    505 }
    \n-
    \n-
    506
    \n-
    507 template<class M, class X, class PI, class A>
    \n-
    508 void FastAMG<M,X,PI,A>::initIteratorsWithFineLevel(LevelContext& levelContext)
    \n-
    509 {
    \n-
    510 levelContext.matrix = matrices_->matrices().finest();
    \n-
    511 levelContext.pinfo = matrices_->parallelInformation().finest();
    \n-
    512 levelContext.redist =
    \n-
    513 matrices_->redistributeInformation().begin();
    \n-
    514 levelContext.aggregates = matrices_->aggregatesMaps().begin();
    \n-
    515 levelContext.lhs = lhs_->finest();
    \n-
    516 levelContext.residual = residual_->finest();
    \n-
    517 levelContext.rhs = rhs_->finest();
    \n-
    518 levelContext.level=0;
    \n-
    519 }
    \n-
    520
    \n-
    521 template<class M, class X, class PI, class A>
    \n-
    522 bool FastAMG<M,X,PI,A>
    \n-
    523 ::moveToCoarseLevel(LevelContext& levelContext)
    \n-
    524 {
    \n-
    525 bool processNextLevel=true;
    \n-
    526
    \n-
    527 if(levelContext.redist->isSetup()) {
    \n-
    528 throw "bla";
    \n-
    529 levelContext.redist->redistribute(static_cast<const Range&>(*levelContext.residual),
    \n-
    530 levelContext.residual.getRedistributed());
    \n-
    531 processNextLevel = levelContext.residual.getRedistributed().size()>0;
    \n-
    532 if(processNextLevel) {
    \n-
    533 //restrict defect to coarse level right hand side.
    \n-
    534 ++levelContext.pinfo;
    \n-
    535 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n-
    536 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,
    \n-
    537 static_cast<const Range&>(levelContext.residual.getRedistributed()),
    \n-
    538 *levelContext.pinfo);
    \n-
    539 }
    \n-
    540 }else{
    \n-
    541 //restrict defect to coarse level right hand side.
    \n-
    542 ++levelContext.rhs;
    \n-
    543 ++levelContext.pinfo;
    \n-
    544 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n-
    545 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,
    \n-
    546 static_cast<const Range&>(*levelContext.residual), *levelContext.pinfo);
    \n-
    547 }
    \n-
    548
    \n-
    549 if(processNextLevel) {
    \n-
    550 // prepare coarse system
    \n-
    551 ++levelContext.residual;
    \n-
    552 ++levelContext.lhs;
    \n-
    553 ++levelContext.matrix;
    \n-
    554 ++levelContext.level;
    \n-
    555 ++levelContext.redist;
    \n-
    556
    \n-
    557 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_->levels()<matrices_->maxlevels()) {
    \n-
    558 // next level is not the globally coarsest one
    \n-
    559 ++levelContext.aggregates;
    \n-
    560 }
    \n-
    561 // prepare the lhs on the next level
    \n-
    562 *levelContext.lhs=0;
    \n-
    563 *levelContext.residual=0;
    \n-
    564 }
    \n-
    565 return processNextLevel;
    \n-
    566 }
    \n-
    567
    \n-
    568 template<class M, class X, class PI, class A>
    \n-
    569 void FastAMG<M,X,PI,A>
    \n-
    570 ::moveToFineLevel(LevelContext& levelContext, bool processNextLevel, Domain& x)
    \n-
    571 {
    \n-
    572 if(processNextLevel) {
    \n-
    573 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_->levels()<matrices_->maxlevels()) {
    \n-
    574 // previous level is not the globally coarsest one
    \n-
    575 --levelContext.aggregates;
    \n-
    576 }
    \n-
    577 --levelContext.redist;
    \n-
    578 --levelContext.level;
    \n-
    579 //prolongate and add the correction (update is in coarse left hand side)
    \n-
    580 --levelContext.matrix;
    \n-
    581 --levelContext.residual;
    \n-
    582
    \n-
    583 }
    \n-
    584
    \n-
    585 typename Hierarchy<Domain,A>::Iterator coarseLhs = levelContext.lhs--;
    \n-
    586 if(levelContext.redist->isSetup()) {
    \n-
    587
    \n-
    588 // Need to redistribute during prolongate
    \n-
    589 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n-
    590 ::prolongateVector(*(*levelContext.aggregates), *coarseLhs, x,
    \n-
    591 levelContext.lhs.getRedistributed(),
    \n-
    592 matrices_->getProlongationDampingFactor(),
    \n-
    593 *levelContext.pinfo, *levelContext.redist);
    \n-
    594 }else{
    \n-
    595 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n-
    596 ::prolongateVector(*(*levelContext.aggregates), *coarseLhs, x,
    \n-
    597 matrices_->getProlongationDampingFactor(), *levelContext.pinfo);
    \n-
    598
    \n-
    599 // printvector(std::cout, *lhs, "prolongated coarse grid correction", "lhs", 10, 10, 10);
    \n-
    600 }
    \n-
    601
    \n-
    602
    \n-
    603 if(processNextLevel) {
    \n-
    604 --levelContext.rhs;
    \n-
    605 }
    \n-
    606
    \n-
    607 }
    \n-
    608
    \n-
    609
    \n-
    610 template<class M, class X, class PI, class A>
    \n-
    611 void FastAMG<M,X,PI,A>
    \n-
    612 ::presmooth(LevelContext& levelContext, Domain& x, const Range& b)
    \n-
    613 {
    \n-
    614 constexpr auto bl = blockLevel<typename M::matrix_type>();
    \n-
    615 GaussSeidelPresmoothDefect<bl>::apply(levelContext.matrix->getmat(),
    \n-
    616 x,
    \n-
    617 *levelContext.residual,
    \n-
    618 b);
    \n-
    619 }
    \n-
    620
    \n-
    621 template<class M, class X, class PI, class A>
    \n-
    622 void FastAMG<M,X,PI,A>
    \n-
    623 ::postsmooth(LevelContext& levelContext, Domain& x, const Range& b)
    \n-
    624 {
    \n-
    625 constexpr auto bl = blockLevel<typename M::matrix_type>();
    \n-
    626 GaussSeidelPostsmoothDefect<bl>
    \n-
    627 ::apply(levelContext.matrix->getmat(), x, *levelContext.residual, b);
    \n-
    628 }
    \n-
    629
    \n-
    630
    \n-
    631 template<class M, class X, class PI, class A>
    \n-\n-
    636
    \n-
    637 template<class M, class X, class PI, class A>
    \n-
    638 void FastAMG<M,X,PI,A>::mgc(LevelContext& levelContext, Domain& v, const Range& b){
    \n-
    639
    \n-
    640 if(levelContext.matrix == matrices_->matrices().coarsest() && levels()==maxlevels()) {
    \n-
    641 // Solve directly
    \n-\n-
    643 res.converged=true; // If we do not compute this flag will not get updated
    \n-
    644 if(levelContext.redist->isSetup()) {
    \n-
    645 levelContext.redist->redistribute(b, levelContext.rhs.getRedistributed());
    \n-
    646 if(levelContext.rhs.getRedistributed().size()>0) {
    \n-
    647 // We are still participating in the computation
    \n-
    648 levelContext.pinfo.getRedistributed().copyOwnerToAll(levelContext.rhs.getRedistributed(),
    \n-
    649 levelContext.rhs.getRedistributed());
    \n-
    650 solver_->apply(levelContext.lhs.getRedistributed(), levelContext.rhs.getRedistributed(), res);
    \n-
    651 }
    \n-
    652 levelContext.redist->redistributeBackward(v, levelContext.lhs.getRedistributed());
    \n-
    653 levelContext.pinfo->copyOwnerToAll(v, v);
    \n-
    654 }else{
    \n-
    655 levelContext.pinfo->copyOwnerToAll(b, b);
    \n-
    656 solver_->apply(v, const_cast<Range&>(b), res);
    \n-
    657 }
    \n-
    658
    \n-
    659 // printvector(std::cout, *lhs, "coarse level update", "u", 10, 10, 10);
    \n-
    660 // printvector(std::cout, *rhs, "coarse level rhs", "rhs", 10, 10, 10);
    \n-
    661 if (!res.converged)
    \n-
    662 coarsesolverconverged = false;
    \n-
    663 }else{
    \n-
    664 // presmoothing
    \n-
    665 presmooth(levelContext, v, b);
    \n-
    666 // printvector(std::cout, *lhs, "update", "u", 10, 10, 10);
    \n-
    667 // printvector(std::cout, *residual, "post presmooth residual", "r", 10);
    \n-
    668#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION
    \n-
    669 bool processNextLevel = moveToCoarseLevel(levelContext);
    \n-
    670
    \n-
    671 if(processNextLevel) {
    \n-
    672 // next level
    \n-
    673 for(std::size_t i=0; i<gamma_; i++)
    \n-
    674 mgc(levelContext, *levelContext.lhs, *levelContext.rhs);
    \n-
    675 }
    \n-
    676
    \n-
    677 moveToFineLevel(levelContext, processNextLevel, v);
    \n-
    678#else
    \n-
    679 *lhs=0;
    \n-
    680#endif
    \n-
    681
    \n-
    682 if(levelContext.matrix == matrices_->matrices().finest()) {
    \n-
    683 coarsesolverconverged = matrices_->parallelInformation().finest()->communicator().prod(coarsesolverconverged);
    \n-
    684 if(!coarsesolverconverged)
    \n-
    685 DUNE_THROW(MathError, "Coarse solver did not converge");
    \n-
    686 }
    \n-
    687
    \n-
    688 postsmooth(levelContext, v, b);
    \n-
    689 }
    \n-
    690 }
    \n-
    691
    \n-
    692
    \n-
    694 template<class M, class X, class PI, class A>
    \n-
    \n-
    695 void FastAMG<M,X,PI,A>::post([[maybe_unused]] Domain& x)
    \n-
    696 {
    \n-
    697 lhs_=nullptr;
    \n-
    698 rhs_=nullptr;
    \n-
    699 residual_=nullptr;
    \n-
    700 }
    \n-
    \n-
    701
    \n-
    702 template<class M, class X, class PI, class A>
    \n-
    703 template<class A1>
    \n-
    \n-
    704 void FastAMG<M,X,PI,A>::getCoarsestAggregateNumbers(std::vector<std::size_t,A1>& cont)
    \n-
    705 {
    \n-
    706 matrices_->getCoarsestAggregatesOnFinest(cont);
    \n-
    707 }
    \n-
    \n-
    708
    \n-
    709 } // end namespace Amg
    \n-
    710} // end namespace Dune
    \n-
    711
    \n-
    712#endif
    \n-
    Classes for using SuperLU with ISTL matrices.
    \n-
    Some generic functions for pretty printing vectors and matrices.
    \n-
    Define general preconditioner interface.
    \n-
    Define base class for scalar product and norm.
    \n-
    Classes for using UMFPack with ISTL matrices.
    \n-
    Implementations of the inverse operator interface.
    \n-
    Prolongation and restriction for amg.
    \n-
    Provides a classes representing the hierarchies in AMG.
    \n-
    Classes for the generic construction and application of the smoothers.
    \n-\n-
    Templates characterizing the type of a solver.
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    void presmooth(LevelContext &levelContext, size_t steps)
    Apply pre smoothing on the current level.
    Definition smoother.hh:406
    \n-
    const void * Arguments
    A type holding all the arguments needed to call the constructor.
    Definition construction.hh:44
    \n-
    static std::shared_ptr< T > construct(Arguments &args)
    Construct an object with the specified arguments.
    Definition construction.hh:52
    \n-
    void postsmooth(LevelContext &levelContext, size_t steps)
    Apply post smoothing on the current level.
    Definition smoother.hh:428
    \n-
    int iterations
    The numbe of iterations to perform.
    Definition smoother.hh:47
    \n-
    OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix
    The iterator over the matrices.
    Definition fastamg.hh:184
    \n-
    void getCoarsestAggregateNumbers(std::vector< std::size_t, A1 > &cont)
    Get the aggregate number of each unknown on the coarsest level.
    Definition fastamg.hh:704
    \n-
    ParallelInformationHierarchy::Iterator pinfo
    The iterator over the parallel information.
    Definition fastamg.hh:188
    \n-
    void recalculateHierarchy()
    Recalculate the matrix hierarchy.
    Definition fastamg.hh:150
    \n-
    void post(Domain &x)
    Clean up.
    Definition fastamg.hh:695
    \n-
    std::size_t maxlevels()
    Definition fastamg.hh:481
    \n-
    X Domain
    The domain type.
    Definition fastamg.hh:77
    \n-
    Hierarchy< Domain, A >::Iterator residual
    The iterator over the residuals.
    Definition fastamg.hh:204
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition fastamg.hh:123
    \n-
    MatrixHierarchy< M, ParallelInformation, A > OperatorHierarchy
    The operator hierarchy type.
    Definition fastamg.hh:72
    \n-
    OperatorHierarchy::RedistributeInfoList::const_iterator redist
    The iterator over the redistribution information.
    Definition fastamg.hh:192
    \n-
    X Range
    The range type.
    Definition fastamg.hh:79
    \n-
    PI ParallelInformation
    The type of the parallel information. Either OwnerOverlapCommunication or another type describing the...
    Definition fastamg.hh:70
    \n-
    M Operator
    The matrix operator type.
    Definition fastamg.hh:63
    \n-
    std::size_t levels()
    Definition fastamg.hh:476
    \n-
    InverseOperator< X, X > CoarseSolver
    the type of the coarse solver.
    Definition fastamg.hh:81
    \n-
    bool usesDirectCoarseLevelSolver() const
    Check whether the coarse solver used is a direct solver.
    Definition fastamg.hh:632
    \n-
    Hierarchy< Domain, A >::Iterator lhs
    The iterator over the left hand side.
    Definition fastamg.hh:200
    \n-
    Hierarchy< Range, A >::Iterator rhs
    The iterator over the right hand sided.
    Definition fastamg.hh:208
    \n-
    std::size_t level
    The level index.
    Definition fastamg.hh:212
    \n-
    void apply(Domain &v, const Range &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition fastamg.hh:488
    \n-
    OperatorHierarchy::ParallelInformationHierarchy ParallelInformationHierarchy
    The parallal data distribution hierarchy type.
    Definition fastamg.hh:74
    \n-
    void pre(Domain &x, Range &b)
    Prepare the preconditioner.
    Definition fastamg.hh:427
    \n-
    FastAMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const Parameters &parms, bool symmetric=true)
    Construct a new amg with a specific coarse solver.
    Definition fastamg.hh:297
    \n-
    OperatorHierarchy::AggregatesMapList::const_iterator aggregates
    The iterator over the aggregates maps.
    Definition fastamg.hh:196
    \n+
    39} // end namespace Dune
    \n+
    40#endif
    \n
    Definition allocator.hh:11
    \n-
    ConstIterator class for sequential access.
    Definition matrix.hh:404
    \n-
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n-
    typename Imp::BlockTraits< T >::field_type field_type
    Export the type representing the underlying field.
    Definition matrix.hh:565
    \n-
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n-
    T block_type
    Export the type representing the components.
    Definition matrix.hh:568
    \n-
    A fast (sequential) algebraic multigrid based on agglomeration that saves memory bandwidth.
    Definition fastamg.hh:60
    \n-
    static void apply(const M &A, X &x, Y &d, const Y &b)
    Definition fastamgsmoother.hh:19
    \n-\n-
    LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation > Iterator
    Type of the mutable iterator.
    Definition hierarchy.hh:216
    \n-
    Iterator over the levels in the hierarchy.
    Definition hierarchy.hh:120
    \n-
    The hierarchies build by the coarsening process.
    Definition matrixhierarchy.hh:61
    \n-
    All parameters for AMG.
    Definition parameters.hh:393
    \n-
    The default class for the smoother arguments.
    Definition smoother.hh:38
    \n-
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n-
    Sequential SSOR preconditioner.
    Definition preconditioners.hh:141
    \n-
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n-
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n-
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n-
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n
    Definition solvertype.hh:16
    \n+
    @ value
    Whether this is a direct solver.
    Definition solvertype.hh:24
    \n+
    Definition solvertype.hh:30
    \n+
    @ value
    whether the solver internally uses column compressed storage
    Definition solvertype.hh:36
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,825 +1,53 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-fastamg.hh\n+solvertype.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_FASTAMG_HH\n-6#define DUNE_ISTL_FASTAMG_HH\n+5#ifndef DUNE_ISTL_SOLVERTYPE_HH\n+6#define DUNE_ISTL_SOLVERTYPE_HH\n 7\n-8#include \n-9#include \n-10#include \n-11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n-12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n-13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh>\n-14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n-15#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n-16#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh>\n-17#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh>\n-18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-19#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh>\n-20#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n-21\n-22#include \"_\bf_\ba_\bs_\bt_\ba_\bm_\bg_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\"\n-23\n-32namespace _\bD_\bu_\bn_\be\n-33{\n-34 namespace Amg\n-35 {\n-58 template >\n-_\b5_\b9 class _\bF_\ba_\bs_\bt_\bA_\bM_\bG : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-60 {\n-61 public:\n-_\b6_\b3 typedef M _\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n-_\b7_\b0 typedef PI _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n-_\b7_\b2 typedef _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\b> _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n-_\b7_\b4 typedef typename _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n-75\n-_\b7_\b7 typedef X _\bD_\bo_\bm_\ba_\bi_\bn;\n-_\b7_\b9 typedef X _\bR_\ba_\bn_\bg_\be;\n-_\b8_\b1 typedef _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b> _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br;\n-82\n-90 _\bF_\ba_\bs_\bt_\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br& coarseSolver,\n-91 const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms,\n-92 bool symmetric=true);\n-93\n-105 template\n-106 _\bF_\ba_\bs_\bt_\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& fineOperator, const C& criterion,\n-107 const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms=_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(),\n-108 bool symmetric=true,\n-109 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo=_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n-110\n-114 _\bF_\ba_\bs_\bt_\bA_\bM_\bG(const _\bF_\ba_\bs_\bt_\bA_\bM_\bG& amg);\n-115\n-117 void _\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b);\n-118\n-120 void _\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d);\n-121\n-_\b1_\b2_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-124 {\n-125 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-126 }\n-127\n-129 void _\bp_\bo_\bs_\bt(_\bD_\bo_\bm_\ba_\bi_\bn& x);\n-130\n-135 template\n-136 void _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs(std::vector& cont);\n-137\n-138 std::size_t _\bl_\be_\bv_\be_\bl_\bs();\n-139\n-140 std::size_t _\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs();\n-141\n-_\b1_\b5_\b0 void _\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by()\n-151 {\n-152 matrices_->recalculateGalerkin(NegateSet());\n-153 }\n-154\n-159 bool _\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br() const;\n-160\n-161 private:\n-168 template\n-169 void createHierarchies(C& criterion,\n-170 const std::shared_ptr& matrixptr,\n-171 const PI& pinfo);\n-172\n-179 struct LevelContext\n-180 {\n-_\b1_\b8_\b4 typename OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator _\bm_\ba_\bt_\br_\bi_\bx;\n-_\b1_\b8_\b8 typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bp_\bi_\bn_\bf_\bo;\n-_\b1_\b9_\b2 typename OperatorHierarchy::RedistributeInfoList::const_iterator _\br_\be_\bd_\bi_\bs_\bt;\n-_\b1_\b9_\b6 typename OperatorHierarchy::AggregatesMapList::const_iterator _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs;\n-_\b2_\b0_\b0 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bl_\bh_\bs;\n-_\b2_\b0_\b4 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\br_\be_\bs_\bi_\bd_\bu_\ba_\bl;\n-_\b2_\b0_\b8 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bR_\ba_\bn_\bg_\be_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\br_\bh_\bs;\n-_\b2_\b1_\b2 std::size_t _\bl_\be_\bv_\be_\bl;\n-213 };\n-214\n-216 void mgc(LevelContext& levelContext, _\bD_\bo_\bm_\ba_\bi_\bn& x, const _\bR_\ba_\bn_\bg_\be& b);\n-217\n-224 void presmooth(LevelContext& levelContext, _\bD_\bo_\bm_\ba_\bi_\bn& x, const _\bR_\ba_\bn_\bg_\be& b);\n-225\n-232 void postsmooth(LevelContext& levelContext, _\bD_\bo_\bm_\ba_\bi_\bn& x, const _\bR_\ba_\bn_\bg_\be& b);\n-233\n-240 void moveToFineLevel(LevelContext& levelContext, bool processedFineLevel,\n-241 _\bD_\bo_\bm_\ba_\bi_\bn& fineX);\n-242\n-247 bool moveToCoarseLevel(LevelContext& levelContext);\n-248\n-253 void initIteratorsWithFineLevel(LevelContext& levelContext);\n-254\n-256 std::shared_ptr matrices_;\n-258 std::shared_ptr solver_;\n-260 std::shared_ptr> rhs_;\n-262 std::shared_ptr> lhs_;\n-264 std::shared_ptr> residual_;\n-265\n-267 using _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt = _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>;\n-269 std::shared_ptr scalarProduct_;\n-271 std::size_t gamma_;\n-273 std::size_t preSteps_;\n-275 std::size_t postSteps_;\n-276 std::size_t level;\n-277 bool buildHierarchy_;\n-278 bool symmetric;\n-279 bool coarsesolverconverged;\n-280 typedef _\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b,_\bX_\b,_\bX_\b> _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-281 typedef std::shared_ptr SmootherPointer;\n-282 SmootherPointer coarseSmoother_;\n-284 std::size_t verbosity_;\n-285 };\n-286\n-287 template\n-_\b2_\b8_\b8 _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG(const _\bF_\ba_\bs_\bt_\bA_\bM_\bG& amg)\n-289 : matrices_(amg.matrices_), solver_(amg.solver_),\n-290 rhs_(), lhs_(), residual_(), scalarProduct_(amg.scalarProduct_),\n-291 gamma_(amg.gamma_), preSteps_(amg.preSteps_), postSteps_(amg.postSteps_),\n-292 symmetric(amg.symmetric), coarsesolverconverged(amg.coarsesolverconverged),\n-293 coarseSmoother_(amg.coarseSmoother_), verbosity_(amg.verbosity_)\n-294 {}\n-295\n-296 template\n-_\b2_\b9_\b7 _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br&\n-coarseSolver,\n-298 const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms, bool symmetric_)\n-299 : matrices_(stackobject_to_shared_ptr(matrices)), solver_(&coarseSolver),\n-300 rhs_(), lhs_(), residual_(), scalarProduct_(),\n-301 gamma_(parms.getGamma()), preSteps_(parms.getNoPreSmoothSteps()),\n-302 postSteps_(parms.getNoPostSmoothSteps()), buildHierarchy_(false),\n-303 symmetric(symmetric_), coarsesolverconverged(true),\n-304 coarseSmoother_(), verbosity_(parms.debugLevel())\n-305 {\n-306 if(preSteps_>1||postSteps_>1)\n-307 {\n-308 std::cerr<<\"WARNING only one step of smoothing is supported!\"<isBuilt());\n-312 static_assert(std::is_same::value,\n-313 \"Currently only sequential runs are supported\");\n-314 }\n-315 template\n-316 template\n-_\b3_\b1_\b7 _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& matrix,\n-318 const C& criterion,\n-319 const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms,\n-320 bool symmetric_,\n-321 const PI& pinfo)\n-322 : solver_(), rhs_(), lhs_(), residual_(), scalarProduct_(), gamma_\n-(parms.getGamma()),\n-323 preSteps_(parms.getNoPreSmoothSteps()), postSteps_\n-(parms.getNoPostSmoothSteps()),\n-324 buildHierarchy_(true),\n-325 symmetric(symmetric_), coarsesolverconverged(true),\n-326 coarseSmoother_(), verbosity_(criterion.debugLevel())\n-327 {\n-328 if(preSteps_>1||postSteps_>1)\n-329 {\n-330 std::cerr<<\"WARNING only one step of smoothing is supported!\"<::value,\n-334 \"Currently only sequential runs are supported\");\n-335 // TODO: reestablish compile time checks.\n-336 //static_assert(static_cast(PI::category)==static_cast(S::\n-category),\n-337 // \"Matrix and Solver must match in terms of category!\");\n-338 auto matrixptr = stackobject_to_shared_ptr(matrix);\n-339 createHierarchies(criterion, matrixptr, pinfo);\n-340 }\n-341\n-342 template\n-343 template\n-344 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\bi_\be_\bs(C& criterion,\n-345 const std::shared_ptr& matrixptr,\n-346 const PI& pinfo)\n-347 {\n-348 Timer watch;\n-349 matrices_ = std::make_shared(\n-350 std::const_pointer_cast(matrixptr),\n-351 stackobject_to_shared_ptr(const_cast(pinfo)));\n-352\n-353 matrices_->template build >(criterion);\n-354\n-355 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator\n-().rank()==0)\n-356 std::cout<<\"Building Hierarchy of \"<maxlevels()<<\" levels took\n-\"<levels()==matrices_->maxlevels()) {\n-359 // We have the carsest level. Create the coarse Solver\n-360 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs SmootherArgs;\n-361 SmootherArgs sargs;\n-362 sargs._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs = 1;\n-363\n-364 typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs cargs;\n-365 cargs.setArgs(sargs);\n-366 if(matrices_->redistributeInformation().back().isSetup()) {\n-367 // Solve on the redistributed partitioning\n-368 cargs.setMatrix(matrices_->matrices().coarsest().getRedistributed().getmat\n-());\n-369 cargs.setComm(matrices_->parallelInformation().coarsest().getRedistributed\n-());\n-370 }else{\n-371 cargs.setMatrix(matrices_->matrices().coarsest()->getmat());\n-372 cargs.setComm(*matrices_->parallelInformation().coarsest());\n-373 }\n-374\n-375 coarseSmoother_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(cargs);\n-376 scalarProduct_ = createScalarProduct(cargs.getComm(),category());\n-377\n-378#if HAVE_SUPERLU|| HAVE_SUITESPARSE_UMFPACK\n-379#if HAVE_SUITESPARSE_UMFPACK\n-380#define DIRECTSOLVER UMFPack\n-381#else\n-382#define DIRECTSOLVER SuperLU\n-383#endif\n-384 // Use superlu if we are purely sequential or with only one processor on\n-the coarsest level.\n-385 if(std::is_same::value /\n-/ sequential mode\n-386 || matrices_->parallelInformation().coarsest()->communicator().size()==1 //\n-parallel mode and only one processor\n-387 || (matrices_->parallelInformation().coarsest().isRedistributed()\n-388 && matrices_->parallelInformation().coarsest().getRedistributed\n-().communicator().size()==1\n-389 && matrices_->parallelInformation().coarsest().getRedistributed\n-().communicator().size()>0)) { // redistribute and 1 proc\n-390 if(verbosity_>0 && matrices_->parallelInformation().coarsest()-\n->communicator().rank()==0)\n-391 std::cout<<\"Using superlu\"<parallelInformation().coarsest().isRedistributed())\n-393 {\n-394 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)\n-395 // We are still participating on this level\n-396 solver_.reset(new DIRECTSOLVER(matrices_->matrices\n-().coarsest().getRedistributed().getmat(), false, false));\n-397 else\n-398 solver_.reset();\n-399 }else\n-400 solver_.reset(new DIRECTSOLVER(matrices_->matrices\n-().coarsest()->getmat(), false, false));\n-401 }else\n-402#undef DIRECTSOLVER\n-403#endif // HAVE_SUPERLU|| HAVE_SUITESPARSE_UMFPACK\n-404 {\n-405 if(matrices_->parallelInformation().coarsest().isRedistributed())\n-406 {\n-407 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)\n-408 // We are still participating on this level\n-409 solver_.reset(new BiCGSTABSolver(const_cast(matrices_->matrices\n-().coarsest().getRedistributed()),\n-410 *scalarProduct_,\n-411 *coarseSmoother_, 1E-2, 1000, 0));\n-412 else\n-413 solver_.reset();\n-414 }else\n-415 solver_.reset(new BiCGSTABSolver(const_cast(*matrices_->matrices\n-().coarsest()),\n-416 *scalarProduct_,\n-417 *coarseSmoother_, 1E-2, 1000, 0));\n-418 }\n-419 }\n-420\n-421 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator\n-().rank()==0)\n-422 std::cout<<\"Building Hierarchy of \"<maxlevels()<<\" levels took\n-\"<\n-_\b4_\b2_\b7 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b)\n-428 {\n-429 Timer watch, watch1;\n-430 // Detect Matrix rows where all offdiagonal entries are\n-431 // zero and set x such that A_dd*x_d=b_d\n-432 // Thus users can be more careless when setting up their linear\n-433 // systems.\n-434 typedef typename M::matrix_type _\bM_\ba_\bt_\br_\bi_\bx;\n-435 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br RowIter;\n-436 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ColIter;\n-437 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be Block;\n-438 Block zero;\n-439 zero=typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be();\n-440\n-441 const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt=matrices_->matrices().finest()->getmat();\n-442 for(RowIter row=_\bm_\ba_\bt.begin(); row!=_\bm_\ba_\bt.end(); ++row) {\n-443 bool isDirichlet = true;\n-444 bool hasDiagonal = false;\n-445 ColIter diag;\n-446 for(ColIter _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl!=row->end(); ++_\bc_\bo_\bl) {\n-447 if(row.index()==_\bc_\bo_\bl.index()) {\n-448 diag = _\bc_\bo_\bl;\n-449 hasDiagonal = (*_\bc_\bo_\bl != zero);\n-450 }else{\n-451 if(*_\bc_\bo_\bl!=zero)\n-452 isDirichlet = false;\n-453 }\n-454 }\n-455 if(isDirichlet && hasDiagonal)\n-456 diag->solve(x[row.index()], b[row.index()]);\n-457 }\n-458 if (verbosity_>0)\n-459 std::cout<<\" Preprocessing Dirichlet took \"<parallelInformation().coarsest()->copyOwnerToAll(x,x);\n-463 rhs_ = std::make_shared>(std::make_shared(b));\n-464 lhs_ = std::make_shared>(std::make_shared(x));\n-465 residual_ = std::make_shared>(std::make_shared\n-(x));\n-466 matrices_->coarsenVector(*rhs_);\n-467 matrices_->coarsenVector(*lhs_);\n-468 matrices_->coarsenVector(*residual_);\n-469\n-470 // The preconditioner might change x and b. So we have to\n-471 // copy the changes to the original vectors.\n-472 x = *lhs_->finest();\n-473 b = *rhs_->finest();\n-474 }\n-475 template\n-_\b4_\b7_\b6 std::size_t _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs()\n-477 {\n-478 return matrices_->levels();\n-479 }\n-480 template\n-_\b4_\b8_\b1 std::size_t _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs()\n-482 {\n-483 return matrices_->maxlevels();\n-484 }\n-485\n-487 template\n-_\b4_\b8_\b8 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n-489 {\n-490 LevelContext levelContext;\n-491 // Init all iterators for the current level\n-492 initIteratorsWithFineLevel(levelContext);\n-493\n-494 assert(v.two_norm()==0);\n-495\n-496 level=0;\n-497 if(matrices_->maxlevels()==1){\n-498 // The coarse solver might modify the d!\n-499 _\bR_\ba_\bn_\bg_\be b(d);\n-500 mgc(levelContext, v, b);\n-501 }else\n-502 mgc(levelContext, v, d);\n-503 if(postSteps_==0||matrices_->maxlevels()==1)\n-504 levelContext.pinfo->copyOwnerToAll(v, v);\n-505 }\n-506\n-507 template\n-508 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bs_\bW_\bi_\bt_\bh_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl(LevelContext&\n-levelContext)\n-509 {\n-510 levelContext.matrix = matrices_->matrices().finest();\n-511 levelContext.pinfo = matrices_->parallelInformation().finest();\n-512 levelContext.redist =\n-513 matrices_->redistributeInformation().begin();\n-514 levelContext.aggregates = matrices_->aggregatesMaps().begin();\n-515 levelContext.lhs = lhs_->finest();\n-516 levelContext.residual = residual_->finest();\n-517 levelContext.rhs = rhs_->finest();\n-518 levelContext.level=0;\n-519 }\n-520\n-521 template\n-522 bool FastAMG\n-523 ::moveToCoarseLevel(LevelContext& levelContext)\n-524 {\n-525 bool processNextLevel=true;\n-526\n-527 if(levelContext.redist->isSetup()) {\n-528 throw \"bla\";\n-529 levelContext.redist->redistribute(static_cast\n-(*levelContext.residual),\n-530 levelContext.residual.getRedistributed());\n-531 processNextLevel = levelContext.residual.getRedistributed().size()>0;\n-532 if(processNextLevel) {\n-533 //restrict defect to coarse level right hand side.\n-534 ++levelContext.pinfo;\n-535 Transfer\n-536 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,\n-537 static_cast(levelContext.residual.getRedistributed()),\n-538 *levelContext.pinfo);\n-539 }\n-540 }else{\n-541 //restrict defect to coarse level right hand side.\n-542 ++levelContext.rhs;\n-543 ++levelContext.pinfo;\n-544 Transfer\n-545 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,\n-546 static_cast(*levelContext.residual), *levelContext.pinfo);\n-547 }\n-548\n-549 if(processNextLevel) {\n-550 // prepare coarse system\n-551 ++levelContext.residual;\n-552 ++levelContext.lhs;\n-553 ++levelContext.matrix;\n-554 ++levelContext.level;\n-555 ++levelContext.redist;\n-556\n-557 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_-\n->levels()maxlevels()) {\n-558 // next level is not the globally coarsest one\n-559 ++levelContext.aggregates;\n-560 }\n-561 // prepare the lhs on the next level\n-562 *levelContext.lhs=0;\n-563 *levelContext.residual=0;\n-564 }\n-565 return processNextLevel;\n-566 }\n-567\n-568 template\n-569 void FastAMG\n-570 ::moveToFineLevel(LevelContext& levelContext, bool processNextLevel,\n-Domain& x)\n-571 {\n-572 if(processNextLevel) {\n-573 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_-\n->levels()maxlevels()) {\n-574 // previous level is not the globally coarsest one\n-575 --levelContext.aggregates;\n-576 }\n-577 --levelContext.redist;\n-578 --levelContext.level;\n-579 //prolongate and add the correction (update is in coarse left hand side)\n-580 --levelContext.matrix;\n-581 --levelContext.residual;\n-582\n-583 }\n-584\n-585 typename Hierarchy::Iterator coarseLhs = levelContext.lhs--;\n-586 if(levelContext.redist->isSetup()) {\n-587\n-588 // Need to redistribute during prolongate\n-589 Transfer\n-590 ::prolongateVector(*(*levelContext.aggregates), *coarseLhs, x,\n-591 levelContext.lhs.getRedistributed(),\n-592 matrices_->getProlongationDampingFactor(),\n-593 *levelContext.pinfo, *levelContext.redist);\n-594 }else{\n-595 Transfer\n-596 ::prolongateVector(*(*levelContext.aggregates), *coarseLhs, x,\n-597 matrices_->getProlongationDampingFactor(), *levelContext.pinfo);\n-598\n-599 // printvector(std::cout, *lhs, \"prolongated coarse grid correction\",\n-\"lhs\", 10, 10, 10);\n-600 }\n-601\n-602\n-603 if(processNextLevel) {\n-604 --levelContext.rhs;\n-605 }\n-606\n-607 }\n-608\n-609\n-610 template\n-611 void FastAMG\n-612 ::presmooth(LevelContext& levelContext, Domain& x, const Range& b)\n-613 {\n-614 constexpr auto bl = blockLevel();\n-615 _\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b<_\bb_\bl_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(levelContext.matrix->getmat(),\n-616 x,\n-617 *levelContext.residual,\n-618 b);\n-619 }\n-620\n-621 template\n-622 void FastAMG\n-623 ::postsmooth(LevelContext& levelContext, Domain& x, const Range& b)\n-624 {\n-625 constexpr auto bl = blockLevel();\n-626 GaussSeidelPostsmoothDefect\n-627 ::apply(levelContext.matrix->getmat(), x, *levelContext.residual, b);\n-628 }\n-629\n-630\n-631 template\n-_\b6_\b3_\b2 bool _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br() const\n-633 {\n-634 return _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be;\n-635 }\n-636\n-637 template\n-638 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bm_\bg_\bc(LevelContext& levelContext, Domain& v, const\n-Range& b){\n-639\n-640 if(levelContext.matrix == matrices_->matrices().coarsest() && levels\n-()==maxlevels()) {\n-641 // Solve directly\n-642 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n-643 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd=true; // If we do not compute this flag will not get updated\n-644 if(levelContext.redist->isSetup()) {\n-645 levelContext.redist->redistribute(b, levelContext.rhs.getRedistributed());\n-646 if(levelContext.rhs.getRedistributed().size()>0) {\n-647 // We are still participating in the computation\n-648 levelContext.pinfo.getRedistributed().copyOwnerToAll\n-(levelContext.rhs.getRedistributed(),\n-649 levelContext.rhs.getRedistributed());\n-650 solver_->apply(levelContext.lhs.getRedistributed(),\n-levelContext.rhs.getRedistributed(), res);\n-651 }\n-652 levelContext.redist->redistributeBackward(v,\n-levelContext.lhs.getRedistributed());\n-653 levelContext.pinfo->copyOwnerToAll(v, v);\n-654 }else{\n-655 levelContext.pinfo->copyOwnerToAll(b, b);\n-656 solver_->apply(v, const_cast(b), res);\n-657 }\n-658\n-659 // printvector(std::cout, *lhs, \"coarse level update\", \"u\", 10, 10, 10);\n-660 // printvector(std::cout, *rhs, \"coarse level rhs\", \"rhs\", 10, 10, 10);\n-661 if (!res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd)\n-662 coarsesolverconverged = false;\n-663 }else{\n-664 // presmoothing\n-665 _\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh(levelContext, v, b);\n-666 // printvector(std::cout, *lhs, \"update\", \"u\", 10, 10, 10);\n-667 // printvector(std::cout, *residual, \"post presmooth residual\", \"r\", 10);\n-668#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION\n-669 bool processNextLevel = moveToCoarseLevel(levelContext);\n-670\n-671 if(processNextLevel) {\n-672 // next level\n-673 for(std::size_t i=0; imatrices().finest()) {\n-683 coarsesolverconverged = matrices_->parallelInformation().finest()-\n->communicator().prod(coarsesolverconverged);\n-684 if(!coarsesolverconverged)\n-685 DUNE_THROW(MathError, \"Coarse solver did not converge\");\n-686 }\n-687\n-688 _\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh(levelContext, v, b);\n-689 }\n-690 }\n-691\n-692\n-694 template\n-_\b6_\b9_\b5 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bp_\bo_\bs_\bt([[maybe_unused]] _\bD_\bo_\bm_\ba_\bi_\bn& x)\n-696 {\n-697 lhs_=nullptr;\n-698 rhs_=nullptr;\n-699 residual_=nullptr;\n-700 }\n-701\n-702 template\n-703 template\n-_\b7_\b0_\b4 void _\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs(std::vector& cont)\n-705 {\n-706 matrices_->getCoarsestAggregatesOnFinest(cont);\n-707 }\n-708\n-709 } // end namespace Amg\n-710} // end namespace Dune\n-711\n-712#endif\n-_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh\n-Classes for using SuperLU with ISTL matrices.\n-_\bi_\bo_\b._\bh_\bh\n-Some generic functions for pretty printing vectors and matrices.\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n-Define general preconditioner interface.\n-_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n-Define base class for scalar product and norm.\n-_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh\n-Classes for using UMFPack with ISTL matrices.\n-_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n-Implementations of the inverse operator interface.\n-_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh\n-Prolongation and restriction for amg.\n-_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh\n-Provides a classes representing the hierarchies in AMG.\n-_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\n-Classes for the generic construction and application of the smoothers.\n-_\bf_\ba_\bs_\bt_\ba_\bm_\bg_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\n-_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n-Templates characterizing the type of a solver.\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh\n-void presmooth(LevelContext &levelContext, size_t steps)\n-Apply pre smoothing on the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:406\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-const void * Arguments\n-A type holding all the arguments needed to call the constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:44\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< T > construct(Arguments &args)\n-Construct an object with the specified arguments.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh\n-void postsmooth(LevelContext &levelContext, size_t steps)\n-Apply post smoothing on the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:428\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n-int iterations\n-The numbe of iterations to perform.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:47\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n-OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix\n-The iterator over the matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:184\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs\n-void getCoarsestAggregateNumbers(std::vector< std::size_t, A1 > &cont)\n-Get the aggregate number of each unknown on the coarsest level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:704\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bp_\bi_\bn_\bf_\bo\n-ParallelInformationHierarchy::Iterator pinfo\n-The iterator over the parallel information.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:188\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-void recalculateHierarchy()\n-Recalculate the matrix hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bp_\bo_\bs_\bt\n-void post(Domain &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:695\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs\n-std::size_t maxlevels()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:481\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n-X Domain\n-The domain type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:77\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\br_\be_\bs_\bi_\bd_\bu_\ba_\bl\n-Hierarchy< Domain, A >::Iterator residual\n-The iterator over the residuals.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:204\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:123\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-MatrixHierarchy< M, ParallelInformation, A > OperatorHierarchy\n-The operator hierarchy type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:72\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt\n-OperatorHierarchy::RedistributeInfoList::const_iterator redist\n-The iterator over the redistribution information.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:192\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be\n-X Range\n-The range type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:79\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-PI ParallelInformation\n-The type of the parallel information. Either OwnerOverlapCommunication or\n-another type describing the...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-M Operator\n-The matrix operator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs\n-std::size_t levels()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:476\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br\n-InverseOperator< X, X > CoarseSolver\n-the type of the coarse solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n-bool usesDirectCoarseLevelSolver() const\n-Check whether the coarse solver used is a direct solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:632\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bl_\bh_\bs\n-Hierarchy< Domain, A >::Iterator lhs\n-The iterator over the left hand side.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:200\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\br_\bh_\bs\n-Hierarchy< Range, A >::Iterator rhs\n-The iterator over the right hand sided.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:208\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bl_\be_\bv_\be_\bl\n-std::size_t level\n-The level index.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:212\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(Domain &v, const Range &d)\n-Apply one step of the preconditioner to the system A(v)=d.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:488\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-OperatorHierarchy::ParallelInformationHierarchy ParallelInformationHierarchy\n-The parallal data distribution hierarchy type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:74\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bp_\br_\be\n-void pre(Domain &x, Range &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:427\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG\n-FastAMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const\n-Parameters &parms, bool symmetric=true)\n-Construct a new amg with a specific coarse solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:297\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs\n-OperatorHierarchy::AggregatesMapList::const_iterator aggregates\n-The iterator over the aggregates maps.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:196\n+12namespace _\bD_\bu_\bn_\be\n+13{\n+14 template\n+_\b1_\b5 struct _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n+16 {\n+17 enum\n+18 {\n+24 _\bv_\ba_\bl_\bu_\be =false\n+_\b2_\b5 };\n+26 };\n+27\n+28 template\n+_\b2_\b9 struct _\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd\n+30 {\n+31 enum\n+32 {\n+36 _\bv_\ba_\bl_\bu_\be = false\n+_\b3_\b7 };\n+38 };\n+39} // end namespace Dune\n+40#endif\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:404\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-A generic dynamic dense matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< T >::field_type field_type\n-Export the type representing the underlying field.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:565\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::const_iterator ConstColIterator\n-Const iterator for the entries of each row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-T block_type\n-Export the type representing the components.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:568\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\ba_\bs_\bt_\bA_\bM_\bG\n-A fast (sequential) algebraic multigrid based on agglomeration that saves\n-memory bandwidth.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamg.hh:60\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bu_\bs_\bs_\bS_\be_\bi_\bd_\be_\bl_\bP_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh_\bD_\be_\bf_\be_\bc_\bt_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-static void apply(const M &A, X &x, Y &d, const Y &b)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn fastamgsmoother.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation\n-> Iterator\n-Type of the mutable iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:216\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator over the levels in the hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-The hierarchies build by the coarsening process.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-All parameters for AMG.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:393\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-The default class for the smoother arguments.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:38\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n-Sequential SSOR preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:141\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Base class for scalar product and norm computation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n-bool converged\n-True if convergence criterion has been met.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Abstract base class for all solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+@ value\n+Whether this is a direct solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:24\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+@ value\n+whether the solver internally uses column compressed storage\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:36\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00125.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00125.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: graphcreator.hh File Reference\n+dune-istl: vbvector.hh File Reference\n \n \n \n \n \n \n \n@@ -65,47 +65,58 @@\n
    \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n
    \n \n-
    graphcreator.hh File Reference
    \n+
    vbvector.hh File Reference
    \n
    \n
    \n-
    #include <tuple>
    \n-#include "graph.hh"
    \n-#include "dependency.hh"
    \n-#include "pinfo.hh"
    \n-#include <dune/istl/operators.hh>
    \n-#include <dune/istl/bcrsmatrix.hh>
    \n+\n+

    ??? \n+More...

    \n+
    #include <cmath>
    \n+#include <complex>
    \n+#include <iostream>
    \n+#include <iterator>
    \n+#include <memory>
    \n+#include <dune/common/iteratorfacades.hh>
    \n+#include "istlexception.hh"
    \n+#include "bvector.hh"
    \n+#include <dune/istl/blocklevel.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n+\n+\n+\n \n-\n+\n+\n \n

    \n Classes

    struct  Dune::Amg::PropertiesGraphCreator< M, PI >
    class  Dune::VariableBlockVector< B, A >
     A Vector of blocks with different blocksizes. More...
     
    class  Dune::VariableBlockVector< B, A >::CreateIterator
     Iterator class for sequential creation of blocks. More...
     
    struct  Dune::Amg::PropertiesGraphCreator< M, SequentialInformation >
    class  Dune::VariableBlockVector< B, A >::RealIterator< T, R >
     Iterator class for sequential access. More...
     
    \n \n \n \n-\n-\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-
    \n+

    Detailed Description

    \n+

    ???

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,28 +1,36 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-graphcreator.hh File Reference\n-#include \n-#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n-#include \"_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh\"\n-#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+vbvector.hh File Reference\n+??? _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bP_\bI_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n+\u00a0 A Vector of blocks with different blocksizes. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+\u00a0 Iterator class for sequential creation of blocks. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bR_\b _\b>\n+\u00a0 Iterator class for sequential access. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n-\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+???\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00125_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00125_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: graphcreator.hh Source File\n+dune-istl: vbvector.hh Source File\n \n \n \n \n \n \n \n@@ -70,156 +70,857 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n
    \n-
    graphcreator.hh
    \n+
    vbvector.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_GRAPHCREATOR_HH
    \n-
    6#define DUNE_AMG_GRAPHCREATOR_HH
    \n+
    5#ifndef DUNE_ISTL_VBVECTOR_HH
    \n+
    6#define DUNE_ISTL_VBVECTOR_HH
    \n
    7
    \n-
    8#include <tuple>
    \n-
    9
    \n-
    10#include "graph.hh"
    \n-
    11#include "dependency.hh"
    \n-
    12#include "pinfo.hh"
    \n-\n-\n-
    15
    \n-
    16namespace Dune
    \n-
    17{
    \n-
    18 namespace Amg
    \n-
    19 {
    \n-
    20 template<class M, class PI>
    \n-
    \n-\n-
    22 {
    \n-
    23 typedef typename M::matrix_type Matrix;
    \n-\n-\n-
    26 std::vector<bool> > SubGraph;
    \n-\n-\n-\n-
    30 IdentityMap,
    \n-\n-\n-
    33
    \n-
    34 typedef std::tuple<MatrixGraph*,PropertiesGraph*,SubGraph*> GraphTuple;
    \n-
    35
    \n-
    36 template<class OF, class T>
    \n-
    \n-
    37 static GraphTuple create(const M& matrix, T& excluded,
    \n-
    38 PI& pinfo, const OF& of)
    \n-
    39 {
    \n-
    40 MatrixGraph* mg = new MatrixGraph(matrix.getmat());
    \n-
    41 typedef typename PI::ParallelIndexSet ParallelIndexSet;
    \n-
    42 typedef typename ParallelIndexSet::const_iterator IndexIterator;
    \n-
    43 IndexIterator iend = pinfo.indexSet().end();
    \n-
    44
    \n-
    45 for(IndexIterator index = pinfo.indexSet().begin(); index != iend; ++index)
    \n-
    46 excluded[index->local()] = of.contains(index->local().attribute());
    \n-
    47
    \n-
    48 SubGraph* sg= new SubGraph(*mg, excluded);
    \n-
    49 PropertiesGraph* pg = new PropertiesGraph(*sg, IdentityMap(), sg->getEdgeIndexMap());
    \n-
    50 return GraphTuple(mg,pg,sg);
    \n-
    51 }
    \n-
    \n-
    52
    \n-
    \n-
    53 static void free(GraphTuple& graphs)
    \n-
    54 {
    \n-
    55 delete std::get<2>(graphs);
    \n-
    56 delete std::get<1>(graphs);
    \n-
    57 }
    \n-
    \n-
    58 };
    \n-
    \n+
    8#include <cmath>
    \n+
    9#include <complex>
    \n+
    10#include <iostream>
    \n+
    11#include <iterator>
    \n+
    12#include <memory>
    \n+
    13
    \n+
    14#include <dune/common/iteratorfacades.hh>
    \n+
    15#include "istlexception.hh"
    \n+
    16#include "bvector.hh"
    \n+
    17
    \n+\n+
    19
    \n+
    24namespace Dune {
    \n+
    25
    \n+
    41 template<class B, class A=std::allocator<B> >
    \n+
    \n+
    42 class VariableBlockVector : public Imp::block_vector_unmanaged<B,A>
    \n+
    43 // this derivation gives us all the blas level 1 and norms
    \n+
    44 // on the large array. However, access operators have to be
    \n+
    45 // overwritten.
    \n+
    46 {
    \n+
    47 // just a shorthand
    \n+
    48 typedef Imp::BlockVectorWindow<B,A> window_type;
    \n+
    49
    \n+
    50 public:
    \n+
    51
    \n+
    52 //===== type definitions and constants
    \n+
    53
    \n+
    55 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n+
    56
    \n+
    58 typedef A allocator_type;
    \n
    59
    \n-
    60 template<class M>
    \n-
    \n-\n-
    62 {
    \n-
    63 typedef typename M::matrix_type Matrix;
    \n-
    64
    \n-\n-
    66
    \n-\n-\n-\n-
    70 IdentityMap,
    \n-
    71 IdentityMap> PropertiesGraph;
    \n-
    72
    \n-
    73 typedef std::tuple<MatrixGraph*,PropertiesGraph*> GraphTuple;
    \n+
    64 typedef window_type& reference;
    \n+
    65
    \n+
    70 typedef const window_type& const_reference;
    \n+
    71
    \n+
    73 typedef typename A::size_type size_type;
    \n
    74
    \n-
    75 template<class OF, class T>
    \n-
    \n-
    76 static GraphTuple create([[maybe_unused]] const M& matrix,
    \n-
    77 [[maybe_unused]] T& excluded,
    \n-
    78 [[maybe_unused]] const SequentialInformation& pinfo,
    \n-
    79 const OF&)
    \n-
    80 {
    \n-
    81 MatrixGraph* mg = new MatrixGraph(matrix.getmat());
    \n-
    82 PropertiesGraph* pg = new PropertiesGraph(*mg, IdentityMap(), IdentityMap());
    \n-
    83 return GraphTuple(mg,pg);
    \n-
    84 }
    \n-
    \n+\n+
    81
    \n+\n
    85
    \n-
    \n-
    86 static void free(GraphTuple& graphs)
    \n-
    87 {
    \n-
    88 delete std::get<1>(graphs);
    \n-
    89 }
    \n-
    \n-
    90
    \n-
    91 };
    \n-
    \n-
    92
    \n-
    93 } //namespace Amg
    \n-
    94} // namespace Dune
    \n-
    95#endif
    \n-
    Implementation of the BCRSMatrix class.
    \n-
    Provides classes for building the matrix graph.
    \n-\n-
    Provides classes for initializing the link attributes of a matrix graph.
    \n-
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n+
    89 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n+
    90 static constexpr auto blocklevel = blockLevel<B>()+2;
    \n+
    91
    \n+
    92 //===== constructors and such
    \n+
    93
    \n+
    \n+
    97 VariableBlockVector () : Imp::block_vector_unmanaged<B,A>()
    \n+
    98 {
    \n+
    99 // nothing is known ...
    \n+
    100 nblocks = 0;
    \n+
    101 block = nullptr;
    \n+
    102 initialized = false;
    \n+
    103 }
    \n+
    \n+
    104
    \n+
    \n+
    108 explicit VariableBlockVector (size_type _nblocks) : Imp::block_vector_unmanaged<B,A>()
    \n+
    109 {
    \n+
    110 // we can allocate the windows now
    \n+
    111 nblocks = _nblocks;
    \n+
    112 if (nblocks>0)
    \n+
    113 {
    \n+
    114 block = windowAllocator_.allocate(nblocks);
    \n+
    115 new (block) window_type[nblocks];
    \n+
    116 }
    \n+
    117 else
    \n+
    118 {
    \n+
    119 nblocks = 0;
    \n+
    120 block = nullptr;
    \n+
    121 }
    \n+
    122
    \n+
    123 // Note: memory in base class still not allocated
    \n+
    124 // the vector not usable
    \n+
    125 initialized = false;
    \n+
    126 }
    \n+
    \n+
    127
    \n+
    \n+
    134 VariableBlockVector (size_type _nblocks, size_type m) : Imp::block_vector_unmanaged<B,A>()
    \n+
    135 {
    \n+
    136 // and we can allocate the big array in the base class
    \n+
    137 this->n = _nblocks*m;
    \n+
    138 if (this->n>0)
    \n+
    139 {
    \n+
    140 this->p = allocator_.allocate(this->n);
    \n+
    141 new (this->p)B[this->n];
    \n+
    142 }
    \n+
    143 else
    \n+
    144 {
    \n+
    145 this->n = 0;
    \n+
    146 this->p = nullptr;
    \n+
    147 }
    \n+
    148
    \n+
    149 // we can allocate the windows now
    \n+
    150 nblocks = _nblocks;
    \n+
    151 if (nblocks>0)
    \n+
    152 {
    \n+
    153 // allocate and construct the windows
    \n+
    154 block = windowAllocator_.allocate(nblocks);
    \n+
    155 new (block) window_type[nblocks];
    \n+
    156
    \n+
    157 // set the windows into the big array
    \n+
    158 for (size_type i=0; i<nblocks; ++i)
    \n+
    159 block[i].set(m,this->p+(i*m));
    \n+
    160 }
    \n+
    161 else
    \n+
    162 {
    \n+
    163 nblocks = 0;
    \n+
    164 block = nullptr;
    \n+
    165 }
    \n+
    166
    \n+
    167 // and the vector is usable
    \n+
    168 initialized = true;
    \n+
    169 }
    \n+
    \n+
    170
    \n+
    \n+\n+
    173 {
    \n+
    174 // allocate the big array in the base class
    \n+
    175 this->n = a.n;
    \n+
    176 if (this->n>0)
    \n+
    177 {
    \n+
    178 // allocate and construct objects
    \n+
    179 this->p = allocator_.allocate(this->n);
    \n+
    180 new (this->p)B[this->n];
    \n+
    181
    \n+
    182 // copy data
    \n+
    183 for (size_type i=0; i<this->n; i++) this->p[i]=a.p[i];
    \n+
    184 }
    \n+
    185 else
    \n+
    186 {
    \n+
    187 this->n = 0;
    \n+
    188 this->p = nullptr;
    \n+
    189 }
    \n+
    190
    \n+
    191 // we can allocate the windows now
    \n+
    192 nblocks = a.nblocks;
    \n+
    193 if (nblocks>0)
    \n+
    194 {
    \n+
    195 // alloc
    \n+
    196 block = windowAllocator_.allocate(nblocks);
    \n+
    197 new (block) window_type[nblocks];
    \n+
    198
    \n+
    199 // and we must set the windows
    \n+
    200 block[0].set(a.block[0].getsize(),this->p); // first block
    \n+
    201 for (size_type i=1; i<nblocks; ++i) // and the rest
    \n+
    202 block[i].set(a.block[i].getsize(),block[i-1].getptr()+block[i-1].getsize());
    \n+
    203 }
    \n+
    204 else
    \n+
    205 {
    \n+
    206 nblocks = 0;
    \n+
    207 block = nullptr;
    \n+
    208 }
    \n+
    209
    \n+
    210 // and we have a usable vector
    \n+
    211 initialized = true;
    \n+
    212 }
    \n+
    \n+
    213
    \n+
    \n+\n+
    216 {
    \n+
    217 if (this->n>0) {
    \n+
    218 size_type i=this->n;
    \n+
    219 while (i)
    \n+
    220 this->p[--i].~B();
    \n+
    221 allocator_.deallocate(this->p,this->n);
    \n+
    222 }
    \n+
    223 if (nblocks>0) {
    \n+
    224 size_type i=nblocks;
    \n+
    225 while (i)
    \n+
    226 block[--i].~window_type();
    \n+
    227 windowAllocator_.deallocate(block,nblocks);
    \n+
    228 }
    \n+
    229
    \n+
    230 }
    \n+
    \n+
    231
    \n+
    232
    \n+
    \n+
    234 void resize (size_type _nblocks)
    \n+
    235 {
    \n+
    236 // deconstruct objects and deallocate memory if necessary
    \n+
    237 if (this->n>0) {
    \n+
    238 size_type i=this->n;
    \n+
    239 while (i)
    \n+
    240 this->p[--i].~B();
    \n+
    241 allocator_.deallocate(this->p,this->n);
    \n+
    242 }
    \n+
    243 if (nblocks>0) {
    \n+
    244 size_type i=nblocks;
    \n+
    245 while (i)
    \n+
    246 block[--i].~window_type();
    \n+
    247 windowAllocator_.deallocate(block,nblocks);
    \n+
    248 }
    \n+
    249 this->n = 0;
    \n+
    250 this->p = nullptr;
    \n+
    251
    \n+
    252 // we can allocate the windows now
    \n+
    253 nblocks = _nblocks;
    \n+
    254 if (nblocks>0)
    \n+
    255 {
    \n+
    256 block = windowAllocator_.allocate(nblocks);
    \n+
    257 new (block) window_type[nblocks];
    \n+
    258 }
    \n+
    259 else
    \n+
    260 {
    \n+
    261 nblocks = 0;
    \n+
    262 block = nullptr;
    \n+
    263 }
    \n+
    264
    \n+
    265 // and the vector not fully usable
    \n+
    266 initialized = false;
    \n+
    267 }
    \n+
    \n+
    268
    \n+
    \n+
    270 void resize (size_type _nblocks, size_type m)
    \n+
    271 {
    \n+
    272 // deconstruct objects and deallocate memory if necessary
    \n+
    273 if (this->n>0) {
    \n+
    274 size_type i=this->n;
    \n+
    275 while (i)
    \n+
    276 this->p[--i].~B();
    \n+
    277 allocator_.deallocate(this->p,this->n);
    \n+
    278 }
    \n+
    279 if (nblocks>0) {
    \n+
    280 size_type i=nblocks;
    \n+
    281 while (i)
    \n+
    282 block[--i].~window_type();
    \n+
    283 windowAllocator_.deallocate(block,nblocks);
    \n+
    284 }
    \n+
    285
    \n+
    286 // and we can allocate the big array in the base class
    \n+
    287 this->n = _nblocks*m;
    \n+
    288 if (this->n>0)
    \n+
    289 {
    \n+
    290 this->p = allocator_.allocate(this->n);
    \n+
    291 new (this->p)B[this->n];
    \n+
    292 }
    \n+
    293 else
    \n+
    294 {
    \n+
    295 this->n = 0;
    \n+
    296 this->p = nullptr;
    \n+
    297 }
    \n+
    298
    \n+
    299 // we can allocate the windows now
    \n+
    300 nblocks = _nblocks;
    \n+
    301 if (nblocks>0)
    \n+
    302 {
    \n+
    303 // allocate and construct objects
    \n+
    304 block = windowAllocator_.allocate(nblocks);
    \n+
    305 new (block) window_type[nblocks];
    \n+
    306
    \n+
    307 // set the windows into the big array
    \n+
    308 for (size_type i=0; i<nblocks; ++i)
    \n+
    309 block[i].set(m,this->p+(i*m));
    \n+
    310 }
    \n+
    311 else
    \n+
    312 {
    \n+
    313 nblocks = 0;
    \n+
    314 block = nullptr;
    \n+
    315 }
    \n+
    316
    \n+
    317 // and the vector is usable
    \n+
    318 initialized = true;
    \n+
    319 }
    \n+
    \n+
    320
    \n+
    \n+\n+
    323 {
    \n+
    324 if (&a!=this) // check if this and a are different objects
    \n+
    325 {
    \n+
    326 // reallocate arrays if necessary
    \n+
    327 // Note: still the block sizes may vary !
    \n+
    328 if (this->n!=a.n || nblocks!=a.nblocks)
    \n+
    329 {
    \n+
    330 // deconstruct objects and deallocate memory if necessary
    \n+
    331 if (this->n>0) {
    \n+
    332 size_type i=this->n;
    \n+
    333 while (i)
    \n+
    334 this->p[--i].~B();
    \n+
    335 allocator_.deallocate(this->p,this->n);
    \n+
    336 }
    \n+
    337 if (nblocks>0) {
    \n+
    338 size_type i=nblocks;
    \n+
    339 while (i)
    \n+
    340 block[--i].~window_type();
    \n+
    341 windowAllocator_.deallocate(block,nblocks);
    \n+
    342 }
    \n+
    343
    \n+
    344 // allocate the big array in the base class
    \n+
    345 this->n = a.n;
    \n+
    346 if (this->n>0)
    \n+
    347 {
    \n+
    348 // allocate and construct objects
    \n+
    349 this->p = allocator_.allocate(this->n);
    \n+
    350 new (this->p)B[this->n];
    \n+
    351 }
    \n+
    352 else
    \n+
    353 {
    \n+
    354 this->n = 0;
    \n+
    355 this->p = nullptr;
    \n+
    356 }
    \n+
    357
    \n+
    358 // we can allocate the windows now
    \n+
    359 nblocks = a.nblocks;
    \n+
    360 if (nblocks>0)
    \n+
    361 {
    \n+
    362 // alloc
    \n+
    363 block = windowAllocator_.allocate(nblocks);
    \n+
    364 new (block) window_type[nblocks];
    \n+
    365 }
    \n+
    366 else
    \n+
    367 {
    \n+
    368 nblocks = 0;
    \n+
    369 block = nullptr;
    \n+
    370 }
    \n+
    371 }
    \n+
    372
    \n+
    373 // copy block structure, might be different although
    \n+
    374 // sizes are the same !
    \n+
    375 if (nblocks>0)
    \n+
    376 {
    \n+
    377 block[0].set(a.block[0].getsize(),this->p); // first block
    \n+
    378 for (size_type i=1; i<nblocks; ++i) // and the rest
    \n+
    379 block[i].set(a.block[i].getsize(),block[i-1].getptr()+block[i-1].getsize());
    \n+
    380 }
    \n+
    381
    \n+
    382 // and copy the data
    \n+
    383 for (size_type i=0; i<this->n; i++) this->p[i]=a.p[i];
    \n+
    384 }
    \n+
    385
    \n+
    386 // and we have a usable vector
    \n+
    387 initialized = true;
    \n+
    388
    \n+
    389 return *this; // Gebe Referenz zurueck damit a=b=c; klappt
    \n+
    390 }
    \n+
    \n+
    391
    \n+
    392
    \n+
    393 //===== assignment from scalar
    \n+
    394
    \n+
    \n+\n+
    397 {
    \n+
    398 (static_cast<Imp::block_vector_unmanaged<B,A>&>(*this)) = k;
    \n+
    399 return *this;
    \n+
    400 }
    \n+
    \n+
    401
    \n+
    402
    \n+
    403 //===== the creation interface
    \n+
    404
    \n+
    405 class CreateIterator;
    \n+
    406
    \n+
    407#ifndef DOXYGEN
    \n+
    408
    \n+
    409 // The window_type does not hand out a reference to its size,
    \n+
    410 // so in order to provide a valid iterator, we need a workaround
    \n+
    411 // to make assignment possible. This proxy enables just that by
    \n+
    412 // implicitly converting to the stored size for read access and
    \n+
    413 // tunneling assignment to the accessor method of the window.
    \n+
    414 struct SizeProxy
    \n+
    415 {
    \n+
    416
    \n+
    417 operator size_type() const
    \n+
    418 {
    \n+
    419 return target->getsize();
    \n+
    420 }
    \n+
    421
    \n+
    422 SizeProxy& operator=(size_type size)
    \n+
    423 {
    \n+
    424 target->setsize(size);
    \n+
    425 return *this;
    \n+
    426 }
    \n+
    427
    \n+
    428 private:
    \n+
    429
    \n+
    430 friend class CreateIterator;
    \n+
    431
    \n+
    432 SizeProxy(window_type& t)
    \n+
    433 : target(&t)
    \n+
    434 {}
    \n+
    435
    \n+
    436 window_type* target;
    \n+
    437 };
    \n+
    438
    \n+
    439#endif // DOXYGEN
    \n+
    440
    \n+
    \n+\n+
    443 {
    \n+
    444 public:
    \n+
    446 using iterator_category = std::output_iterator_tag;
    \n+
    447
    \n+\n+
    450
    \n+
    457 using difference_type = void;
    \n+
    458
    \n+\n+
    461
    \n+
    463 using reference = SizeProxy;
    \n+
    464
    \n+
    \n+
    466 CreateIterator (VariableBlockVector& _v, int _i, bool _isEnd) :
    \n+
    467 v(_v),
    \n+
    468 i(_i),
    \n+
    469 isEnd(_isEnd) {}
    \n+
    \n+
    470
    \n+
    \n+\n+
    472 // When the iterator gets destructed, we allocate the memory
    \n+
    473 // for the VariableBlockVector if
    \n+
    474 // 1. the current iterator was not created as enditerator
    \n+
    475 // 2. we're at the last block
    \n+
    476 // 3. the vector hasn't been initialized earlier
    \n+
    477 if (not isEnd && i==v.nblocks && not v.initialized)
    \n+
    478 v.allocate();
    \n+
    479 }
    \n+
    \n+
    480
    \n+
    \n+\n+
    483 {
    \n+
    484 // go to next block
    \n+
    485 ++i;
    \n+
    486
    \n+
    487 return *this;
    \n+
    488 }
    \n+
    \n+
    489
    \n+
    \n+\n+
    492 {
    \n+
    493 CreateIterator tmp(*this);
    \n+
    494 this->operator++();
    \n+
    495 return tmp;
    \n+
    496 }
    \n+
    \n+
    497
    \n+
    \n+
    499 bool operator!= (const CreateIterator& it) const
    \n+
    500 {
    \n+
    501 return (i!=it.i) || (&v!=&it.v);
    \n+
    502 }
    \n+
    \n+
    503
    \n+
    \n+
    505 bool operator== (const CreateIterator& it) const
    \n+
    506 {
    \n+
    507 return (i==it.i) && (&v==&it.v);
    \n+
    508 }
    \n+
    \n+
    509
    \n+
    \n+\n+
    512 {
    \n+
    513 return i;
    \n+
    514 }
    \n+
    \n+
    515
    \n+
    \n+\n+
    518 {
    \n+
    519 v.block[i].setsize(_k);
    \n+
    520 }
    \n+
    \n+
    521
    \n+
    523#ifdef DOXYGEN
    \n+
    524 size_type&
    \n+
    525#else
    \n+
    526 SizeProxy
    \n+
    527#endif
    \n+
    \n+\n+
    529 {
    \n+
    530 return {v.block[i]};
    \n+
    531 }
    \n+
    \n+
    532
    \n+
    533 private:
    \n+
    534 VariableBlockVector& v; // my vector
    \n+
    535 size_type i; // current block to be defined
    \n+
    536 const bool isEnd; // flag if this object was created as the end iterator.
    \n+
    537 };
    \n+
    \n+
    538
    \n+
    539 // CreateIterator wants to set all the arrays ...
    \n+
    540 friend class CreateIterator;
    \n+
    541
    \n+
    \n+\n+
    544 {
    \n+
    545#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    546 if (initialized) DUNE_THROW(ISTLError,"no CreateIterator in initialized state");
    \n+
    547#endif
    \n+
    548 return CreateIterator(*this,0, false);
    \n+
    549 }
    \n+
    \n+
    550
    \n+
    \n+\n+
    553 {
    \n+
    554 return CreateIterator(*this,nblocks, true);
    \n+
    555 }
    \n+
    \n+
    556
    \n+
    557
    \n+
    558 //===== access to components
    \n+
    559 // has to be overwritten from base class because it must
    \n+
    560 // return access to the windows
    \n+
    561
    \n+
    \n+
    563 window_type& operator[] (size_type i)
    \n+
    564 {
    \n+
    565#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    566 if (i>=nblocks) DUNE_THROW(ISTLError,"index out of range");
    \n+
    567#endif
    \n+
    568 return block[i];
    \n+
    569 }
    \n+
    \n+
    570
    \n+
    \n+
    572 const window_type& operator[] (size_type i) const
    \n+
    573 {
    \n+
    574#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    575 if (i<0 || i>=nblocks) DUNE_THROW(ISTLError,"index out of range");
    \n+
    576#endif
    \n+
    577 return block[i];
    \n+
    578 }
    \n+
    \n+
    579
    \n+
    581 template <class T, class R>
    \n+
    \n+\n+
    583 : public RandomAccessIteratorFacade<RealIterator<T,R>, T, R>
    \n+
    584 {
    \n+
    585 public:
    \n+
    \n+\n+
    588 {
    \n+
    589 p = nullptr;
    \n+
    590 i = 0;
    \n+
    591 }
    \n+
    \n+
    592
    \n+
    \n+
    594 RealIterator (window_type* _p, size_type _i)
    \n+
    595 : p(_p), i(_i)
    \n+
    596 {}
    \n+
    \n+
    597
    \n+
    \n+\n+
    600 {
    \n+
    601 ++i;
    \n+
    602 }
    \n+
    \n+
    603
    \n+
    \n+\n+
    606 {
    \n+
    607 --i;
    \n+
    608 }
    \n+
    \n+
    609
    \n+
    \n+
    611 bool equals (const RealIterator& it) const
    \n+
    612 {
    \n+
    613 return (p+i)==(it.p+it.i);
    \n+
    614 }
    \n+
    \n+
    615
    \n+
    \n+
    617 window_type& dereference () const
    \n+
    618 {
    \n+
    619 return p[i];
    \n+
    620 }
    \n+
    \n+
    621
    \n+
    \n+
    622 void advance(std::ptrdiff_t d)
    \n+
    623 {
    \n+
    624 i+=d;
    \n+
    625 }
    \n+
    \n+
    626
    \n+
    \n+
    627 std::ptrdiff_t distanceTo(const RealIterator& o) const
    \n+
    628 {
    \n+
    629 return o.i-i;
    \n+
    630 }
    \n+
    \n+
    631
    \n+
    632 // Needed for operator[] of the iterator
    \n+
    \n+
    633 window_type& elementAt (std::ptrdiff_t offset) const
    \n+
    634 {
    \n+
    635 return p[i+offset];
    \n+
    636 }
    \n+
    \n+
    637
    \n+
    \n+\n+
    640 {
    \n+
    641 return i;
    \n+
    642 }
    \n+
    \n+
    643
    \n+
    644 private:
    \n+
    645 window_type* p;
    \n+
    646 size_type i;
    \n+
    647 };
    \n+
    \n+
    648
    \n+\n+
    650
    \n+
    \n+\n+
    653 {
    \n+
    654 return Iterator(block,0);
    \n+
    655 }
    \n+
    \n+
    656
    \n+
    \n+\n+
    659 {
    \n+
    660 return Iterator(block,nblocks);
    \n+
    661 }
    \n+
    \n+
    662
    \n+
    \n+\n+
    666 {
    \n+
    667 return Iterator(block,nblocks-1);
    \n+
    668 }
    \n+
    \n+
    669
    \n+
    \n+\n+
    673 {
    \n+
    674 return Iterator(block,-1);
    \n+
    675 }
    \n+
    \n+
    676
    \n+\n+
    679
    \n+\n+
    682
    \n+\n+
    685
    \n+
    \n+\n+
    688 {
    \n+
    689 return ConstIterator(block,0);
    \n+
    690 }
    \n+
    \n+
    691
    \n+
    \n+\n+
    694 {
    \n+
    695 return ConstIterator(block,nblocks);
    \n+
    696 }
    \n+
    \n+
    697
    \n+
    \n+\n+
    701 {
    \n+
    702 return ConstIterator(block,nblocks-1);
    \n+
    703 }
    \n+
    \n+
    704
    \n+
    \n+\n+
    707 {
    \n+
    708 return ConstIterator(block,-1);
    \n+
    709 }
    \n+
    \n+
    710
    \n+
    \n+\n+
    713 {
    \n+
    714 return Iterator(block,std::min(i,nblocks));
    \n+
    715 }
    \n+
    \n+
    716
    \n+
    \n+\n+
    719 {
    \n+
    720 return ConstIterator(block,std::min(i,nblocks));
    \n+
    721 }
    \n+
    \n+
    722
    \n+
    723 //===== sizes
    \n+
    724
    \n+
    \n+
    726 size_type N () const
    \n+
    727 {
    \n+
    728 return nblocks;
    \n+
    729 }
    \n+
    \n+
    730
    \n+
    \n+\n+
    736 {
    \n+
    737 return nblocks;
    \n+
    738 }
    \n+
    \n+
    739
    \n+
    740
    \n+
    741 private:
    \n+
    742
    \n+
    743 void allocate() {
    \n+
    744 if (this->initialized)
    \n+
    745 DUNE_THROW(ISTLError, "Attempt to re-allocate already initialized VariableBlockVector");
    \n+
    746
    \n+
    747 // calculate space needed:
    \n+
    748 this->n=0;
    \n+
    749 for(size_type i = 0; i < nblocks; i++) {
    \n+
    750 this->n += block[i].size();
    \n+
    751 }
    \n+
    752
    \n+
    753 // now we can allocate the big array in the base class of v
    \n+
    754 if (this->n>0)
    \n+
    755 {
    \n+
    756 // allocate and construct objects
    \n+
    757 this->p = allocator_.allocate(this->n);
    \n+
    758 new (this->p)B[this->n];
    \n+
    759 }
    \n+
    760 else
    \n+
    761 {
    \n+
    762 this->p = nullptr;
    \n+
    763 }
    \n+
    764
    \n+
    765 // and we set the window pointers
    \n+
    766 this->block[0].setptr(this->p); // pointer to first block
    \n+
    767 for (size_type j=1; j<nblocks; ++j) // and the rest
    \n+
    768 block[j].setptr(block[j-1].getptr()+block[j-1].getsize());
    \n+
    769
    \n+
    770 // and the vector is ready
    \n+
    771 this->initialized = true;
    \n+
    772 }
    \n+
    773
    \n+
    774 size_type nblocks; // number of blocks in vector
    \n+
    775 window_type* block; // array of blocks pointing to the array in the base class
    \n+
    776 bool initialized; // true if vector has been initialized
    \n+
    777
    \n+
    778 A allocator_;
    \n+
    779
    \n+
    780 typename std::allocator_traits<A>::template rebind_alloc<window_type> windowAllocator_;
    \n+
    781 };
    \n+
    \n+
    782
    \n+
    783
    \n+
    784
    \n+
    787} // end namespace
    \n+
    788
    \n+
    789#endif
    \n+\n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Helper functions for determining the vector/matrix block level.
    \n
    Definition allocator.hh:11
    \n-
    Class representing the properties of an ede in the matrix graph.
    Definition dependency.hh:39
    \n-
    Class representing a node in the matrix graph.
    Definition dependency.hh:126
    \n-
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n-
    A subgraph of a graph.
    Definition graph.hh:443
    \n-
    EdgeIndexMap getEdgeIndexMap()
    Get an edge index map for the graph.
    \n-
    An index map for mapping the edges to indices.
    Definition graph.hh:470
    \n-
    Attaches properties to the edges and vertices of a graph.
    Definition graph.hh:978
    \n-
    Definition graphcreator.hh:22
    \n-
    Dune::Amg::SubGraph< MatrixGraph, std::vector< bool > > SubGraph
    Definition graphcreator.hh:26
    \n-
    Dune::Amg::PropertiesGraph< SubGraph, VertexProperties, EdgeProperties, IdentityMap, typename SubGraph::EdgeIndexMap > PropertiesGraph
    Definition graphcreator.hh:32
    \n-
    M::matrix_type Matrix
    Definition graphcreator.hh:23
    \n-
    static GraphTuple create(const M &matrix, T &excluded, PI &pinfo, const OF &of)
    Definition graphcreator.hh:37
    \n-
    static void free(GraphTuple &graphs)
    Definition graphcreator.hh:53
    \n-
    Dune::Amg::MatrixGraph< const Matrix > MatrixGraph
    Definition graphcreator.hh:24
    \n-
    std::tuple< MatrixGraph *, PropertiesGraph *, SubGraph * > GraphTuple
    Definition graphcreator.hh:34
    \n-
    Dune::Amg::MatrixGraph< const Matrix > MatrixGraph
    Definition graphcreator.hh:65
    \n-
    M::matrix_type Matrix
    Definition graphcreator.hh:63
    \n-
    Dune::Amg::PropertiesGraph< MatrixGraph, VertexProperties, EdgeProperties, IdentityMap, IdentityMap > PropertiesGraph
    Definition graphcreator.hh:71
    \n-
    std::tuple< MatrixGraph *, PropertiesGraph * > GraphTuple
    Definition graphcreator.hh:73
    \n-
    static GraphTuple create(const M &matrix, T &excluded, const SequentialInformation &pinfo, const OF &)
    Definition graphcreator.hh:76
    \n-
    static void free(GraphTuple &graphs)
    Definition graphcreator.hh:86
    \n-
    Definition pinfo.hh:28
    \n+
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    A Vector of blocks with different blocksizes.
    Definition vbvector.hh:46
    \n+
    RealIterator< value_type, window_type & > Iterator
    Definition vbvector.hh:649
    \n+
    VariableBlockVector()
    Definition vbvector.hh:97
    \n+
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition vbvector.hh:55
    \n+
    A allocator_type
    export the allocator type
    Definition vbvector.hh:58
    \n+
    VariableBlockVector(size_type _nblocks, size_type m)
    Definition vbvector.hh:134
    \n+
    size_type size() const
    Definition vbvector.hh:735
    \n+
    size_type N() const
    number of blocks in the vector (are of variable size here)
    Definition vbvector.hh:726
    \n+
    VariableBlockVector(const VariableBlockVector &a)
    copy constructor, has copy semantics
    Definition vbvector.hh:172
    \n+
    VariableBlockVector(size_type _nblocks)
    Definition vbvector.hh:108
    \n+
    ~VariableBlockVector()
    free dynamic memory
    Definition vbvector.hh:215
    \n+
    window_type & operator[](size_type i)
    random access to blocks
    Definition vbvector.hh:563
    \n+
    CreateIterator createend()
    get create iterator pointing to one after the last block
    Definition vbvector.hh:552
    \n+
    Iterator beforeBegin() const
    Definition vbvector.hh:672
    \n+
    CreateIterator createbegin()
    get initial create iterator
    Definition vbvector.hh:543
    \n+
    VariableBlockVector & operator=(const VariableBlockVector &a)
    assignment
    Definition vbvector.hh:322
    \n+
    static constexpr auto blocklevel
    Definition vbvector.hh:90
    \n+
    ConstIterator rend() const
    end ConstIterator
    Definition vbvector.hh:706
    \n+
    A::size_type size_type
    The size type for the index access.
    Definition vbvector.hh:73
    \n+
    ConstIterator find(size_type i) const
    random access returning iterator (end if not contained)
    Definition vbvector.hh:718
    \n+
    ConstIterator beforeEnd() const
    Definition vbvector.hh:700
    \n+
    Iterator find(size_type i)
    random access returning iterator (end if not contained)
    Definition vbvector.hh:712
    \n+
    const window_type & const_reference
    Export type used for const references to container entries.
    Definition vbvector.hh:70
    \n+
    RealIterator< const value_type, const window_type & > ConstIterator
    Const iterator.
    Definition vbvector.hh:681
    \n+
    Iterator end()
    end Iterator
    Definition vbvector.hh:658
    \n+
    ConstIterator begin() const
    begin ConstIterator
    Definition vbvector.hh:687
    \n+
    BlockVector< B, A > value_type
    Type of the elements of the outer vector, i.e., dynamic vectors of B.
    Definition vbvector.hh:80
    \n+
    ConstIterator end() const
    end ConstIterator
    Definition vbvector.hh:693
    \n+
    BlockVector< B, A > block_type
    Same as value_type, here for historical reasons.
    Definition vbvector.hh:84
    \n+
    void resize(size_type _nblocks, size_type m)
    same effect as constructor with same argument
    Definition vbvector.hh:270
    \n+
    window_type & reference
    Export type used for references to container entries.
    Definition vbvector.hh:64
    \n+
    void resize(size_type _nblocks)
    same effect as constructor with same argument
    Definition vbvector.hh:234
    \n+
    Iterator beforeEnd()
    Definition vbvector.hh:665
    \n+
    Iterator begin()
    begin Iterator
    Definition vbvector.hh:652
    \n+
    Iterator class for sequential creation of blocks.
    Definition vbvector.hh:443
    \n+
    bool operator==(const CreateIterator &it) const
    equality
    Definition vbvector.hh:505
    \n+
    size_type index() const
    dereferencing
    Definition vbvector.hh:511
    \n+
    SizeProxy reference
    reference type
    Definition vbvector.hh:463
    \n+
    size_type * pointer
    pointer type
    Definition vbvector.hh:460
    \n+
    bool operator!=(const CreateIterator &it) const
    inequality
    Definition vbvector.hh:499
    \n+
    ~CreateIterator()
    Definition vbvector.hh:471
    \n+
    size_type value_type
    value type
    Definition vbvector.hh:449
    \n+
    CreateIterator(VariableBlockVector &_v, int _i, bool _isEnd)
    constructor
    Definition vbvector.hh:466
    \n+
    void setblocksize(size_type _k)
    set size of current block
    Definition vbvector.hh:517
    \n+
    size_type & operator*()
    Access size of current block.
    Definition vbvector.hh:528
    \n+
    std::output_iterator_tag iterator_category
    iterator category
    Definition vbvector.hh:446
    \n+
    CreateIterator & operator++()
    prefix increment
    Definition vbvector.hh:482
    \n+
    void difference_type
    difference type (unused)
    Definition vbvector.hh:457
    \n+
    Iterator class for sequential access.
    Definition vbvector.hh:584
    \n+
    RealIterator(window_type *_p, size_type _i)
    constructor
    Definition vbvector.hh:594
    \n+
    bool equals(const RealIterator &it) const
    equality
    Definition vbvector.hh:611
    \n+
    size_type index() const
    Return the index of the entry this iterator is pointing to.
    Definition vbvector.hh:639
    \n+
    window_type & elementAt(std::ptrdiff_t offset) const
    Definition vbvector.hh:633
    \n+
    void decrement()
    prefix decrement
    Definition vbvector.hh:605
    \n+
    void advance(std::ptrdiff_t d)
    Definition vbvector.hh:622
    \n+
    void increment()
    prefix increment
    Definition vbvector.hh:599
    \n+
    RealIterator()
    constructor, no arguments
    Definition vbvector.hh:587
    \n+
    std::ptrdiff_t distanceTo(const RealIterator &o) const
    Definition vbvector.hh:627
    \n+
    window_type & dereference() const
    dereferencing
    Definition vbvector.hh:617
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,188 +1,930 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-graphcreator.hh\n+vbvector.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_GRAPHCREATOR_HH\n-6#define DUNE_AMG_GRAPHCREATOR_HH\n+5#ifndef DUNE_ISTL_VBVECTOR_HH\n+6#define DUNE_ISTL_VBVECTOR_HH\n 7\n-8#include \n-9\n-10#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n-11#include \"_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh\"\n-12#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n-13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n-14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-15\n-16namespace _\bD_\bu_\bn_\be\n-17{\n-18 namespace Amg\n-19 {\n-20 template\n-_\b2_\b1 struct _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br\n-22 {\n-_\b2_\b3 typedef typename M::matrix_type _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b2_\b4 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\ba_\bt_\br_\bi_\bx_\b> _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n-25 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh,\n-_\b2_\b6 std::vector > _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh;\n-27 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh<_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh,\n-28 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n-29 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n-30 IdentityMap,\n-31 typename _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp>\n-_\b3_\b2 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh;\n-33\n-_\b3_\b4 typedef std::tuple _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be;\n-35\n-36 template\n-_\b3_\b7 static _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be _\bc_\br_\be_\ba_\bt_\be(const M& matrix, T& excluded,\n-38 PI& pinfo, const OF& of)\n-39 {\n-40 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh* mg = new _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh(matrix.getmat());\n-41 typedef typename PI::ParallelIndexSet ParallelIndexSet;\n-42 typedef typename ParallelIndexSet::const_iterator IndexIterator;\n-43 IndexIterator iend = pinfo.indexSet().end();\n-44\n-45 for(IndexIterator index = pinfo.indexSet().begin(); index != iend; ++index)\n-46 excluded[index->local()] = of.contains(index->local().attribute());\n-47\n-48 _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh* sg= new _\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh(*mg, excluded);\n-49 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh* pg = new _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(*sg, IdentityMap(), sg-\n->_\bg_\be_\bt_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp());\n-50 return _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be(mg,pg,sg);\n-51 }\n-52\n-_\b5_\b3 static void _\bf_\br_\be_\be(_\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be& graphs)\n-54 {\n-55 delete std::get<2>(graphs);\n-56 delete std::get<1>(graphs);\n-57 }\n-58 };\n+8#include \n+9#include \n+10#include \n+11#include \n+12#include \n+13\n+14#include \n+15#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+16#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+17\n+18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+19\n+24namespace _\bD_\bu_\bn_\be {\n+25\n+41 template >\n+_\b4_\b2 class _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br : public Imp::block_vector_unmanaged\n+43 // this derivation gives us all the blas level 1 and norms\n+44 // on the large array. However, access operators have to be\n+45 // overwritten.\n+46 {\n+47 // just a shorthand\n+48 typedef Imp::BlockVectorWindow window_type;\n+49\n+50 public:\n+51\n+52 //===== type definitions and constants\n+53\n+_\b5_\b5 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n+56\n+_\b5_\b8 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n 59\n-60 template\n-_\b6_\b1 struct _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br\n-62 {\n-_\b6_\b3 typedef typename M::matrix_type _\bM_\ba_\bt_\br_\bi_\bx;\n-64\n-_\b6_\b5 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bM_\ba_\bt_\br_\bi_\bx_\b> _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n-66\n-67 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh,\n-68 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n-69 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n-70 IdentityMap,\n-_\b7_\b1 IdentityMap> _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh;\n-72\n-_\b7_\b3 typedef std::tuple _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be;\n+_\b6_\b4 typedef window_type& _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+65\n+_\b7_\b0 typedef const window_type& _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+71\n+_\b7_\b3 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n 74\n-75 template\n-_\b7_\b6 static _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be _\bc_\br_\be_\ba_\bt_\be([[maybe_unused]] const M& matrix,\n-77 [[maybe_unused]] T& excluded,\n-78 [[maybe_unused]] const _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-79 const OF&)\n-80 {\n-81 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh* mg = new _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh(matrix.getmat());\n-82 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh* pg = new _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh(*mg, IdentityMap(), IdentityMap\n-());\n-83 return _\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be(mg,pg);\n-84 }\n+_\b8_\b0 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bB_\b,_\bA_\b> _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be;\n+81\n+_\b8_\b4 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bB_\b,_\bA_\b> _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n 85\n-_\b8_\b6 static void _\bf_\br_\be_\be(_\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be& graphs)\n-87 {\n-88 delete std::get<1>(graphs);\n-89 }\n-90\n-91 };\n-92\n-93 } //namespace Amg\n-94} // namespace Dune\n-95#endif\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\n-Provides classes for building the matrix graph.\n-_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n-_\bd_\be_\bp_\be_\bn_\bd_\be_\bn_\bc_\by_\b._\bh_\bh\n-Provides classes for initializing the link attributes of a matrix graph.\n-_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n-Define general, extensible interface for operators. The available\n-implementation wraps a matrix.\n+89 [[deprecated(\"Use free function blockLevel(). Will be removed after 2.8.\")]]\n+_\b9_\b0 static constexpr auto _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+2;\n+91\n+92 //===== constructors and such\n+93\n+_\b9_\b7 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br () : Imp::block_vector_unmanaged()\n+98 {\n+99 // nothing is known ...\n+100 nblocks = 0;\n+101 block = nullptr;\n+102 initialized = false;\n+103 }\n+104\n+_\b1_\b0_\b8 explicit _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nblocks) : Imp::\n+block_vector_unmanaged()\n+109 {\n+110 // we can allocate the windows now\n+111 nblocks = _nblocks;\n+112 if (nblocks>0)\n+113 {\n+114 block = windowAllocator_.allocate(nblocks);\n+115 new (block) window_type[nblocks];\n+116 }\n+117 else\n+118 {\n+119 nblocks = 0;\n+120 block = nullptr;\n+121 }\n+122\n+123 // Note: memory in base class still not allocated\n+124 // the vector not usable\n+125 initialized = false;\n+126 }\n+127\n+_\b1_\b3_\b4 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nblocks, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be m) : Imp::\n+block_vector_unmanaged()\n+135 {\n+136 // and we can allocate the big array in the base class\n+137 this->n = _nblocks*m;\n+138 if (this->n>0)\n+139 {\n+140 this->p = allocator_.allocate(this->n);\n+141 new (this->p)B[this->n];\n+142 }\n+143 else\n+144 {\n+145 this->n = 0;\n+146 this->p = nullptr;\n+147 }\n+148\n+149 // we can allocate the windows now\n+150 nblocks = _nblocks;\n+151 if (nblocks>0)\n+152 {\n+153 // allocate and construct the windows\n+154 block = windowAllocator_.allocate(nblocks);\n+155 new (block) window_type[nblocks];\n+156\n+157 // set the windows into the big array\n+158 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; ip+(i*m));\n+160 }\n+161 else\n+162 {\n+163 nblocks = 0;\n+164 block = nullptr;\n+165 }\n+166\n+167 // and the vector is usable\n+168 initialized = true;\n+169 }\n+170\n+_\b1_\b7_\b2 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (const _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& a)\n+173 {\n+174 // allocate the big array in the base class\n+175 this->n = a.n;\n+176 if (this->n>0)\n+177 {\n+178 // allocate and construct objects\n+179 this->p = allocator_.allocate(this->n);\n+180 new (this->p)B[this->n];\n+181\n+182 // copy data\n+183 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; in; i++) this->p[i]=a.p[i];\n+184 }\n+185 else\n+186 {\n+187 this->n = 0;\n+188 this->p = nullptr;\n+189 }\n+190\n+191 // we can allocate the windows now\n+192 nblocks = a.nblocks;\n+193 if (nblocks>0)\n+194 {\n+195 // alloc\n+196 block = windowAllocator_.allocate(nblocks);\n+197 new (block) window_type[nblocks];\n+198\n+199 // and we must set the windows\n+200 block[0].set(a.block[0].getsize(),this->p); // first block\n+201 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=1; in>0) {\n+218 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n+219 while (i)\n+220 this->p[--i].~B();\n+221 allocator_.deallocate(this->p,this->n);\n+222 }\n+223 if (nblocks>0) {\n+224 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=nblocks;\n+225 while (i)\n+226 block[--i].~window_type();\n+227 windowAllocator_.deallocate(block,nblocks);\n+228 }\n+229\n+230 }\n+231\n+232\n+_\b2_\b3_\b4 void _\br_\be_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nblocks)\n+235 {\n+236 // deconstruct objects and deallocate memory if necessary\n+237 if (this->n>0) {\n+238 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n+239 while (i)\n+240 this->p[--i].~B();\n+241 allocator_.deallocate(this->p,this->n);\n+242 }\n+243 if (nblocks>0) {\n+244 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=nblocks;\n+245 while (i)\n+246 block[--i].~window_type();\n+247 windowAllocator_.deallocate(block,nblocks);\n+248 }\n+249 this->n = 0;\n+250 this->p = nullptr;\n+251\n+252 // we can allocate the windows now\n+253 nblocks = _nblocks;\n+254 if (nblocks>0)\n+255 {\n+256 block = windowAllocator_.allocate(nblocks);\n+257 new (block) window_type[nblocks];\n+258 }\n+259 else\n+260 {\n+261 nblocks = 0;\n+262 block = nullptr;\n+263 }\n+264\n+265 // and the vector not fully usable\n+266 initialized = false;\n+267 }\n+268\n+_\b2_\b7_\b0 void _\br_\be_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nblocks, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be m)\n+271 {\n+272 // deconstruct objects and deallocate memory if necessary\n+273 if (this->n>0) {\n+274 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n+275 while (i)\n+276 this->p[--i].~B();\n+277 allocator_.deallocate(this->p,this->n);\n+278 }\n+279 if (nblocks>0) {\n+280 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=nblocks;\n+281 while (i)\n+282 block[--i].~window_type();\n+283 windowAllocator_.deallocate(block,nblocks);\n+284 }\n+285\n+286 // and we can allocate the big array in the base class\n+287 this->n = _nblocks*m;\n+288 if (this->n>0)\n+289 {\n+290 this->p = allocator_.allocate(this->n);\n+291 new (this->p)B[this->n];\n+292 }\n+293 else\n+294 {\n+295 this->n = 0;\n+296 this->p = nullptr;\n+297 }\n+298\n+299 // we can allocate the windows now\n+300 nblocks = _nblocks;\n+301 if (nblocks>0)\n+302 {\n+303 // allocate and construct objects\n+304 block = windowAllocator_.allocate(nblocks);\n+305 new (block) window_type[nblocks];\n+306\n+307 // set the windows into the big array\n+308 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; ip+(i*m));\n+310 }\n+311 else\n+312 {\n+313 nblocks = 0;\n+314 block = nullptr;\n+315 }\n+316\n+317 // and the vector is usable\n+318 initialized = true;\n+319 }\n+320\n+_\b3_\b2_\b2 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& a)\n+323 {\n+324 if (&a!=this) // check if this and a are different objects\n+325 {\n+326 // reallocate arrays if necessary\n+327 // Note: still the block sizes may vary !\n+328 if (this->n!=a.n || nblocks!=a.nblocks)\n+329 {\n+330 // deconstruct objects and deallocate memory if necessary\n+331 if (this->n>0) {\n+332 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n+333 while (i)\n+334 this->p[--i].~B();\n+335 allocator_.deallocate(this->p,this->n);\n+336 }\n+337 if (nblocks>0) {\n+338 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=nblocks;\n+339 while (i)\n+340 block[--i].~window_type();\n+341 windowAllocator_.deallocate(block,nblocks);\n+342 }\n+343\n+344 // allocate the big array in the base class\n+345 this->n = a.n;\n+346 if (this->n>0)\n+347 {\n+348 // allocate and construct objects\n+349 this->p = allocator_.allocate(this->n);\n+350 new (this->p)B[this->n];\n+351 }\n+352 else\n+353 {\n+354 this->n = 0;\n+355 this->p = nullptr;\n+356 }\n+357\n+358 // we can allocate the windows now\n+359 nblocks = a.nblocks;\n+360 if (nblocks>0)\n+361 {\n+362 // alloc\n+363 block = windowAllocator_.allocate(nblocks);\n+364 new (block) window_type[nblocks];\n+365 }\n+366 else\n+367 {\n+368 nblocks = 0;\n+369 block = nullptr;\n+370 }\n+371 }\n+372\n+373 // copy block structure, might be different although\n+374 // sizes are the same !\n+375 if (nblocks>0)\n+376 {\n+377 block[0].set(a.block[0].getsize(),this->p); // first block\n+378 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=1; in; i++) this->p[i]=a.p[i];\n+384 }\n+385\n+386 // and we have a usable vector\n+387 initialized = true;\n+388\n+389 return *this; // Gebe Referenz zurueck damit a=b=c; klappt\n+390 }\n+391\n+392\n+393 //===== assignment from scalar\n+394\n+_\b3_\b9_\b6 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n+397 {\n+398 (static_cast&>(*this)) = k;\n+399 return *this;\n+400 }\n+401\n+402\n+403 //===== the creation interface\n+404\n+405 class CreateIterator;\n+406\n+407#ifndef DOXYGEN\n+408\n+409 // The window_type does not hand out a reference to its size,\n+410 // so in order to provide a valid iterator, we need a workaround\n+411 // to make assignment possible. This proxy enables just that by\n+412 // implicitly converting to the stored size for read access and\n+413 // tunneling assignment to the accessor method of the window.\n+414 struct SizeProxy\n+415 {\n+416\n+417 operator size_type() const\n+418 {\n+419 return target->getsize();\n+420 }\n+421\n+422 SizeProxy& operator=(size_type size)\n+423 {\n+424 target->setsize(size);\n+425 return *this;\n+426 }\n+427\n+428 private:\n+429\n+430 friend class CreateIterator;\n+431\n+432 SizeProxy(window_type& t)\n+433 : target(&t)\n+434 {}\n+435\n+436 window_type* target;\n+437 };\n+438\n+439#endif // DOXYGEN\n+440\n+_\b4_\b4_\b2 class _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+443 {\n+444 public:\n+_\b4_\b4_\b6 using _\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by = std::output_iterator_tag;\n+447\n+_\b4_\b4_\b9 using _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be = _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+450\n+_\b4_\b5_\b7 using _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be = void;\n+458\n+_\b4_\b6_\b0 using _\bp_\bo_\bi_\bn_\bt_\be_\br = _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be*;\n+461\n+_\b4_\b6_\b3 using _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = SizeProxy;\n+464\n+_\b4_\b6_\b6 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _v, int _i, bool _isEnd) :\n+467 v(_v),\n+468 i(_i),\n+469 isEnd(_isEnd) {}\n+470\n+_\b4_\b7_\b1 _\b~_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br() {\n+472 // When the iterator gets destructed, we allocate the memory\n+473 // for the VariableBlockVector if\n+474 // 1. the current iterator was not created as enditerator\n+475 // 2. we're at the last block\n+476 // 3. the vector hasn't been initialized earlier\n+477 if (not isEnd && i==v.nblocks && not v.initialized)\n+478 v.allocate();\n+479 }\n+480\n+_\b4_\b8_\b2 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+483 {\n+484 // go to next block\n+485 ++i;\n+486\n+487 return *this;\n+488 }\n+489\n+_\b4_\b9_\b1 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+_\b (int)\n+492 {\n+493 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br tmp(*this);\n+494 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n+495 return tmp;\n+496 }\n+497\n+_\b4_\b9_\b9 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+500 {\n+501 return (i!=it.i) || (&v!=&it.v);\n+502 }\n+503\n+_\b5_\b0_\b5 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+506 {\n+507 return (i==it.i) && (&v==&it.v);\n+508 }\n+509\n+_\b5_\b1_\b1 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx () const\n+512 {\n+513 return i;\n+514 }\n+515\n+_\b5_\b1_\b7 void _\bs_\be_\bt_\bb_\bl_\bo_\bc_\bk_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _k)\n+518 {\n+519 v.block[i].setsize(_k);\n+520 }\n+521\n+523#ifdef DOXYGEN\n+524 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be&\n+525#else\n+526 SizeProxy\n+527#endif\n+_\b5_\b2_\b8 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*()\n+529 {\n+530 return {v.block[i]};\n+531 }\n+532\n+533 private:\n+534 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& v; // my vector\n+535 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i; // current block to be defined\n+536 const bool isEnd; // flag if this object was created as the end iterator.\n+537 };\n+538\n+539 // CreateIterator wants to set all the arrays ...\n+_\b5_\b4_\b0 friend class _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+541\n+_\b5_\b4_\b3 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn ()\n+544 {\n+545#ifdef DUNE_ISTL_WITH_CHECKING\n+546 if (initialized) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"no CreateIterator in initialized\n+state\");\n+547#endif\n+548 return _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,0, false);\n+549 }\n+550\n+_\b5_\b5_\b2 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd ()\n+553 {\n+554 return _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,nblocks, true);\n+555 }\n+556\n+557\n+558 //===== access to components\n+559 // has to be overwritten from base class because it must\n+560 // return access to the windows\n+561\n+_\b5_\b6_\b3 window_type& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n+564 {\n+565#ifdef DUNE_ISTL_WITH_CHECKING\n+566 if (i>=nblocks) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n+567#endif\n+568 return block[i];\n+569 }\n+570\n+_\b5_\b7_\b2 const window_type& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n+573 {\n+574#ifdef DUNE_ISTL_WITH_CHECKING\n+575 if (i<0 || i>=nblocks) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n+576#endif\n+577 return block[i];\n+578 }\n+579\n+581 template \n+_\b5_\b8_\b2 class _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+583 : public RandomAccessIteratorFacade, T, R>\n+584 {\n+585 public:\n+_\b5_\b8_\b7 _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ()\n+588 {\n+589 p = nullptr;\n+590 i = 0;\n+591 }\n+592\n+_\b5_\b9_\b4 _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (window_type* _p, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i)\n+595 : p(_p), i(_i)\n+596 {}\n+597\n+_\b5_\b9_\b9 void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt()\n+600 {\n+601 ++i;\n+602 }\n+603\n+_\b6_\b0_\b5 void _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt()\n+606 {\n+607 --i;\n+608 }\n+609\n+_\b6_\b1_\b1 bool _\be_\bq_\bu_\ba_\bl_\bs (const _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+612 {\n+613 return (p+i)==(it.p+it.i);\n+614 }\n+615\n+_\b6_\b1_\b7 window_type& _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be () const\n+618 {\n+619 return p[i];\n+620 }\n+621\n+_\b6_\b2_\b2 void _\ba_\bd_\bv_\ba_\bn_\bc_\be(std::ptrdiff_t d)\n+623 {\n+624 i+=d;\n+625 }\n+626\n+_\b6_\b2_\b7 std::ptrdiff_t _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& o) const\n+628 {\n+629 return o.i-i;\n+630 }\n+631\n+632 // Needed for operator[] of the iterator\n+_\b6_\b3_\b3 window_type& _\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt (std::ptrdiff_t offset) const\n+634 {\n+635 return p[i+offset];\n+636 }\n+637\n+_\b6_\b3_\b9 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx() const\n+640 {\n+641 return i;\n+642 }\n+643\n+644 private:\n+645 window_type* p;\n+646 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i;\n+647 };\n+648\n+_\b6_\b4_\b9 using _\bI_\bt_\be_\br_\ba_\bt_\bo_\br = _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b,_\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be_\b&_\b>;\n+650\n+_\b6_\b5_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn ()\n+653 {\n+654 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,0);\n+655 }\n+656\n+_\b6_\b5_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd ()\n+659 {\n+660 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,nblocks);\n+661 }\n+662\n+_\b6_\b6_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n+666 {\n+667 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,nblocks-1);\n+668 }\n+669\n+_\b6_\b7_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n+673 {\n+674 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,-1);\n+675 }\n+676\n+_\b6_\b7_\b8 using _\bi_\bt_\be_\br_\ba_\bt_\bo_\br = _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+679\n+_\b6_\b8_\b1 using _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br = _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b,_\b _\bc_\bo_\bn_\bs_\bt_\b _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be_\b&_\b>;\n+682\n+_\b6_\b8_\b4 using _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br = _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+685\n+_\b6_\b8_\b7 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn () const\n+688 {\n+689 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,0);\n+690 }\n+691\n+_\b6_\b9_\b3 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd () const\n+694 {\n+695 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,nblocks);\n+696 }\n+697\n+_\b7_\b0_\b0 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd() const\n+701 {\n+702 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,nblocks-1);\n+703 }\n+704\n+_\b7_\b0_\b6 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\br_\be_\bn_\bd () const\n+707 {\n+708 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,-1);\n+709 }\n+710\n+_\b7_\b1_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\bd (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n+713 {\n+714 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,std::min(i,nblocks));\n+715 }\n+716\n+_\b7_\b1_\b8 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\bd (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n+719 {\n+720 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,std::min(i,nblocks));\n+721 }\n+722\n+723 //===== sizes\n+724\n+_\b7_\b2_\b6 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN () const\n+727 {\n+728 return nblocks;\n+729 }\n+730\n+_\b7_\b3_\b5 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be () const\n+736 {\n+737 return nblocks;\n+738 }\n+739\n+740\n+741 private:\n+742\n+743 void allocate() {\n+744 if (this->initialized)\n+745 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Attempt to re-allocate already initialized\n+VariableBlockVector\");\n+746\n+747 // calculate space needed:\n+748 this->n=0;\n+749 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i = 0; i < nblocks; i++) {\n+750 this->n += block[i].size();\n+751 }\n+752\n+753 // now we can allocate the big array in the base class of v\n+754 if (this->n>0)\n+755 {\n+756 // allocate and construct objects\n+757 this->p = allocator_.allocate(this->n);\n+758 new (this->p)B[this->n];\n+759 }\n+760 else\n+761 {\n+762 this->p = nullptr;\n+763 }\n+764\n+765 // and we set the window pointers\n+766 this->block[0].setptr(this->p); // pointer to first block\n+767 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=1; jinitialized = true;\n+772 }\n+773\n+774 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nblocks; // number of blocks in vector\n+775 window_type* block; // array of blocks pointing to the array in the base\n+class\n+776 bool initialized; // true if vector has been initialized\n+777\n+778 A allocator_;\n+779\n+780 typename std::allocator_traits::template rebind_alloc\n+windowAllocator_;\n+781 };\n+782\n+783\n+784\n+787} // end namespace\n+788\n+789#endif\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n+Helper functions for determining the vector/matrix block level.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-Class representing the properties of an ede in the matrix graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:39\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-Class representing a node in the matrix graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-The (undirected) graph of a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n-A subgraph of a graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:443\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bg_\be_\bt_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n-EdgeIndexMap getEdgeIndexMap()\n-Get an edge index map for the graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bE_\bd_\bg_\be_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n-An index map for mapping the edges to indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:470\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-Attaches properties to the edges and vertices of a graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:978\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bS_\bu_\bb_\bG_\br_\ba_\bp_\bh\n-Dune::Amg::SubGraph< MatrixGraph, std::vector< bool > > SubGraph\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:26\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-Dune::Amg::PropertiesGraph< SubGraph, VertexProperties, EdgeProperties,\n-IdentityMap, typename SubGraph::EdgeIndexMap > PropertiesGraph\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-M::matrix_type Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n-static GraphTuple create(const M &matrix, T &excluded, PI &pinfo, const OF &of)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bf_\br_\be_\be\n-static void free(GraphTuple &graphs)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-Dune::Amg::MatrixGraph< const Matrix > MatrixGraph\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:24\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be\n-std::tuple< MatrixGraph *, PropertiesGraph *, SubGraph * > GraphTuple\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:34\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-Dune::Amg::MatrixGraph< const Matrix > MatrixGraph\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:65\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-M::matrix_type Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-Dune::Amg::PropertiesGraph< MatrixGraph, VertexProperties, EdgeProperties,\n-IdentityMap, IdentityMap > PropertiesGraph\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:71\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bG_\br_\ba_\bp_\bh_\bT_\bu_\bp_\bl_\be\n-std::tuple< MatrixGraph *, PropertiesGraph * > GraphTuple\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n-static GraphTuple create(const M &matrix, T &excluded, const\n-SequentialInformation &pinfo, const OF &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\bC_\br_\be_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bf_\br_\be_\be\n-static void free(GraphTuple &graphs)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graphcreator.hh:86\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A vector of blocks with memory management.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A Vector of blocks with different blocksizes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealIterator< value_type, window_type & > Iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:649\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+VariableBlockVector()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:97\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< B >::field_type field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:55\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n+A allocator_type\n+export the allocator type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:58\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+VariableBlockVector(size_type _nblocks, size_type m)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:134\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be\n+size_type size() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:735\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bN\n+size_type N() const\n+number of blocks in the vector (are of variable size here)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:726\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+VariableBlockVector(const VariableBlockVector &a)\n+copy constructor, has copy semantics\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:172\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+VariableBlockVector(size_type _nblocks)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:108\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\b~_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+~VariableBlockVector()\n+free dynamic memory\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:215\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+window_type & operator[](size_type i)\n+random access to blocks\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:563\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd\n+CreateIterator createend()\n+get create iterator pointing to one after the last block\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:552\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n+Iterator beforeBegin() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:672\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn\n+CreateIterator createbegin()\n+get initial create iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:543\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+VariableBlockVector & operator=(const VariableBlockVector &a)\n+assignment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:322\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n+static constexpr auto blocklevel\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:90\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bn_\bd\n+ConstIterator rend() const\n+end ConstIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:706\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+The size type for the index access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\bn_\bd\n+ConstIterator find(size_type i) const\n+random access returning iterator (end if not contained)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:718\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+ConstIterator beforeEnd() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:700\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\bn_\bd\n+Iterator find(size_type i)\n+random access returning iterator (end if not contained)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:712\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+const window_type & const_reference\n+Export type used for const references to container entries.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealIterator< const value_type, const window_type & > ConstIterator\n+Const iterator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:681\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n+Iterator end()\n+end Iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:658\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+ConstIterator begin() const\n+begin ConstIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:687\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n+BlockVector< B, A > value_type\n+Type of the elements of the outer vector, i.e., dynamic vectors of B.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:80\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n+ConstIterator end() const\n+end ConstIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:693\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+BlockVector< B, A > block_type\n+Same as value_type, here for historical reasons.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:84\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n+void resize(size_type _nblocks, size_type m)\n+same effect as constructor with same argument\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:270\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+window_type & reference\n+Export type used for references to container entries.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:64\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n+void resize(size_type _nblocks)\n+same effect as constructor with same argument\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:234\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+Iterator beforeEnd()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:665\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+Iterator begin()\n+begin Iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:652\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator class for sequential creation of blocks.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:443\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const CreateIterator &it) const\n+equality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:505\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n+size_type index() const\n+dereferencing\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:511\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+SizeProxy reference\n+reference type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:463\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bp_\bo_\bi_\bn_\bt_\be_\br\n+size_type * pointer\n+pointer type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:460\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const CreateIterator &it) const\n+inequality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:499\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+~CreateIterator()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:471\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n+size_type value_type\n+value type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:449\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+CreateIterator(VariableBlockVector &_v, int _i, bool _isEnd)\n+constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\be_\bt_\bb_\bl_\bo_\bc_\bk_\bs_\bi_\bz_\be\n+void setblocksize(size_type _k)\n+set size of current block\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:517\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+size_type & operator*()\n+Access size of current block.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:528\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+std::output_iterator_tag iterator_category\n+iterator category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:446\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+CreateIterator & operator++()\n+prefix increment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:482\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n+void difference_type\n+difference type (unused)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:457\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator class for sequential access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:584\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealIterator(window_type *_p, size_type _i)\n+constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:594\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+bool equals(const RealIterator &it) const\n+equality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:611\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n+size_type index() const\n+Return the index of the entry this iterator is pointing to.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:639\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt\n+window_type & elementAt(std::ptrdiff_t offset) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:633\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n+void decrement()\n+prefix decrement\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:605\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be\n+void advance(std::ptrdiff_t d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:622\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n+void increment()\n+prefix increment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:599\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealIterator()\n+constructor, no arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:587\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n+std::ptrdiff_t distanceTo(const RealIterator &o) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:627\n+_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+window_type & dereference() const\n+dereferencing\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:617\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00128.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00128.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: twolevelmethod.hh File Reference\n+dune-istl: solvercategory.hh File Reference\n \n \n \n \n \n \n \n@@ -65,59 +65,41 @@\n \n \n \n \n \n \n \n
    \n \n- \n+
    solvercategory.hh File Reference
    \n
    \n
    \n-\n-

    Algebraic twolevel methods. \n-More...

    \n-
    #include <tuple>
    \n-#include <dune/istl/operators.hh>
    \n-#include "amg.hh"
    \n-#include "galerkin.hh"
    \n-#include <dune/istl/solver.hh>
    \n+
    #include <dune/common/exceptions.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n+\n+\n \n-\n-\n-\n-\n+\n \n

    \n Classes

    class  Dune::Amg::LevelTransferPolicy< FO, CO >
     Abstract base class for transfer between levels and creation of the coarse level system. More...
     
    class  Dune::Amg::AggregationLevelTransferPolicy< O, C >
     A LeveTransferPolicy that used aggregation to construct the coarse level system. More...
    struct  Dune::SolverCategory
     Categories for the solvers. More...
     
    class  Dune::Amg::OneStepAMGCoarseSolverPolicy< O, S, C >
     A policy class for solving the coarse level system using one step of AMG. More...
     
    class  Dune::Amg::TwoLevelMethod< FO, CSP, S >
    class  Dune::InvalidSolverCategory
     
    \n \n \n \n-\n-\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-

    Detailed Description

    \n-

    Algebraic twolevel methods.

    \n-
    Author
    Markus Blatt
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,44 +1,21 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-twolevelmethod.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n-\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Algebraic twolevel methods. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n-#include \"_\ba_\bm_\bg_\b._\bh_\bh\"\n-#include \"_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\"\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n+solvercategory.hh File Reference\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bF_\bO_\b,_\b _\bC_\bO_\b _\b>\n-\u00a0 Abstract base class for transfer between levels and creation of the\n- coarse level system. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+\u00a0 Categories for the solvers. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bO_\b,_\b _\bC_\b _\b>\n-\u00a0 A LeveTransferPolicy that used aggregation to construct the coarse\n- level system. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bO_\b,_\b _\bS_\b,_\b _\bC_\b _\b>\n-\u00a0 A policy class for solving the coarse level system using one step of\n- _\bA_\bM_\bG. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b<_\b _\bF_\bO_\b,_\b _\bC_\bS_\bP_\b,_\b _\bS_\b _\b>\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Algebraic twolevel methods.\n- Author\n- Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00128_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00128_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: twolevelmethod.hh Source File\n+dune-istl: solvercategory.hh Source File\n \n \n \n \n \n \n \n@@ -70,482 +70,81 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n
    \n-
    twolevelmethod.hh
    \n+
    solvercategory.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_TWOLEVELMETHOD_HH
    \n-
    6#define DUNE_ISTL_TWOLEVELMETHOD_HH
    \n+
    5#ifndef DUNE_ISTL_SOLVERCATEGORY_HH
    \n+
    6#define DUNE_ISTL_SOLVERCATEGORY_HH
    \n
    7
    \n-
    8#include <tuple>
    \n+
    8#include <dune/common/exceptions.hh>
    \n
    9
    \n-\n-
    11#include"amg.hh"
    \n-
    12#include"galerkin.hh"
    \n-
    13#include<dune/istl/solver.hh>
    \n-
    14
    \n-
    22namespace Dune
    \n-
    23{
    \n-
    24namespace Amg
    \n-
    25{
    \n-
    26
    \n-
    36template<class FO, class CO>
    \n-
    \n-\n-
    38{
    \n-
    39public:
    \n-
    44 typedef FO FineOperatorType;
    \n-
    48 typedef typename FineOperatorType::range_type FineRangeType;
    \n-
    52 typedef typename FineOperatorType::domain_type FineDomainType;
    \n-\n-
    61 typedef typename CoarseOperatorType::range_type CoarseRangeType;
    \n-
    65 typedef typename CoarseOperatorType::domain_type CoarseDomainType;
    \n-
    \n-
    70 std::shared_ptr<CoarseOperatorType>& getCoarseLevelOperator()
    \n-
    71 {
    \n-
    72 return operator_;
    \n-
    73 }
    \n-
    \n-
    \n-\n-
    79 {
    \n-
    80 return rhs_;
    \n-
    81 }
    \n-
    \n-
    82
    \n-
    \n-\n-
    88 {
    \n-
    89 return lhs_;
    \n-
    90 }
    \n-
    \n-
    100 virtual void moveToCoarseLevel(const FineRangeType& fineRhs)=0;
    \n-
    110 virtual void moveToFineLevel(FineDomainType& fineLhs)=0;
    \n-
    118 virtual void createCoarseLevelSystem(const FineOperatorType& fineOperator)=0;
    \n-
    119
    \n-
    121 virtual LevelTransferPolicy* clone() const =0;
    \n-
    122
    \n-\n-
    125
    \n-
    126 protected:
    \n-\n-\n-
    132 std::shared_ptr<CoarseOperatorType> operator_;
    \n-
    133};
    \n-
    \n-
    134
    \n-
    140template<class O, class C>
    \n-
    \n-\n-
    142 : public LevelTransferPolicy<O,O>
    \n-
    143{
    \n-\n-
    145public:
    \n-\n-
    147 typedef C Criterion;
    \n-\n-
    149
    \n-
    \n-\n-
    151 : criterion_(crit)
    \n-
    152 {}
    \n-
    \n-
    153
    \n-
    \n-
    154 void createCoarseLevelSystem(const O& fineOperator)
    \n-
    155 {
    \n-
    156 prolongDamp_ = criterion_.getProlongationDampingFactor();
    \n-\n-\n-\n-
    160 Dune::Amg::EdgeProperties,Dune::IdentityMap,Dune::IdentityMap> PropertiesGraph;
    \n-
    161 MatrixGraph mg(fineOperator.getmat());
    \n-
    162 PropertiesGraph pg(mg,Dune::IdentityMap(),Dune::IdentityMap());
    \n-
    163 typedef NegateSet<typename ParallelInformation::OwnerSet> OverlapFlags;
    \n-
    164
    \n-
    165 aggregatesMap_ = std::make_shared<AggregatesMap>(pg.maxVertex()+1);
    \n-
    166
    \n-
    167 int noAggregates, isoAggregates, oneAggregates, skippedAggregates;
    \n-
    168
    \n-
    169 std::tie(noAggregates, isoAggregates, oneAggregates, skippedAggregates) =
    \n-
    170 aggregatesMap_->buildAggregates(fineOperator.getmat(), pg, criterion_, true);
    \n-
    171 std::cout<<"no aggregates="<<noAggregates<<" iso="<<isoAggregates<<" one="<<oneAggregates<<" skipped="<<skippedAggregates<<std::endl;
    \n-
    172 // misuse coarsener to renumber aggregates
    \n-\n-
    174 typedef std::vector<bool>::iterator Iterator;
    \n-
    175 typedef Dune::IteratorPropertyMap<Iterator, Dune::IdentityMap> VisitedMap;
    \n-
    176 std::vector<bool> excluded(fineOperator.getmat().N(), false);
    \n-
    177 VisitedMap vm(excluded.begin(), Dune::IdentityMap());
    \n-\n-
    179 std::size_t aggregates = renumberer.coarsen(pinfo, pg, vm,
    \n-
    180 *aggregatesMap_, pinfo,
    \n-
    181 noAggregates);
    \n-
    182 std::vector<bool>& visited=excluded;
    \n-
    183
    \n-
    184 typedef std::vector<bool>::iterator Iterator;
    \n-
    185
    \n-
    186 for(Iterator iter= visited.begin(), end=visited.end();
    \n-
    187 iter != end; ++iter)
    \n-
    188 *iter=false;
    \n-
    189 matrix_.reset(productBuilder.build(mg, vm,
    \n-\n-
    191 *aggregatesMap_,
    \n-
    192 aggregates,
    \n-
    193 OverlapFlags()));
    \n-
    194 productBuilder.calculate(fineOperator.getmat(), *aggregatesMap_, *matrix_, pinfo, OverlapFlags());
    \n-
    195 this->lhs_.resize(this->matrix_->M());
    \n-
    196 this->rhs_.resize(this->matrix_->N());
    \n-
    197 this->operator_ = std::make_shared<O>(*matrix_);
    \n-
    198 }
    \n-
    \n-
    199
    \n-
    \n-
    200 void moveToCoarseLevel(const typename FatherType::FineRangeType& fineRhs)
    \n-
    201 {
    \n-\n-
    203 ::restrictVector(*aggregatesMap_, this->rhs_, fineRhs, ParallelInformation());
    \n-
    204 this->lhs_=0;
    \n-
    205 }
    \n-
    \n-
    206
    \n-
    \n-\n-
    208 {
    \n-\n-
    210 ::prolongateVector(*aggregatesMap_, this->lhs_, fineLhs,
    \n-
    211 prolongDamp_, ParallelInformation());
    \n-
    212 }
    \n-
    \n-
    213
    \n-
    \n-\n-
    215 {
    \n-
    216 return new AggregationLevelTransferPolicy(*this);
    \n-
    217 }
    \n-
    \n-
    218
    \n-
    219private:
    \n-
    220 typename O::matrix_type::field_type prolongDamp_;
    \n-
    221 std::shared_ptr<AggregatesMap> aggregatesMap_;
    \n-
    222 Criterion criterion_;
    \n-
    223 std::shared_ptr<typename O::matrix_type> matrix_;
    \n-
    224};
    \n-
    \n-
    225
    \n-
    232template<class O, class S, class C>
    \n-
    \n-\n-
    234{
    \n-
    235public:
    \n-
    237 typedef O Operator;
    \n-
    239 typedef typename O::range_type X;
    \n-
    241 typedef C Criterion;
    \n-
    243 typedef S Smoother;
    \n-\n-\n-
    \n-\n-
    254 : smootherArgs_(args), criterion_(c)
    \n-
    255 {}
    \n-
    \n-
    \n-\n-
    258 : coarseOperator_(other.coarseOperator_), smootherArgs_(other.smootherArgs_),
    \n-
    259 criterion_(other.criterion_)
    \n-
    260 {}
    \n-
    \n-
    261private:
    \n-
    268 struct AMGInverseOperator : public InverseOperator<X,X>
    \n-
    269 {
    \n-
    270 AMGInverseOperator(const typename AMGType::Operator& op,
    \n-
    271 const Criterion& crit,
    \n-
    272 const typename AMGType::SmootherArgs& args)
    \n-
    273 : amg_(op, crit,args), first_(true)
    \n-
    274 {}
    \n-
    275
    \n-
    276 void apply(X& x, X& b, [[maybe_unused]] double reduction, [[maybe_unused]] InverseOperatorResult& res)
    \n-
    277 {
    \n-
    278 if(first_)
    \n-
    279 {
    \n-
    280 amg_.pre(x,b);
    \n-
    281 first_=false;
    \n-
    282 x_=x;
    \n-
    283 }
    \n-
    284 amg_.apply(x,b);
    \n-
    285 }
    \n-
    286
    \n-
    287 void apply(X& x, X& b, InverseOperatorResult& res)
    \n-
    288 {
    \n-
    289 return apply(x,b,1e-8,res);
    \n-
    290 }
    \n-
    291
    \n-
    293 virtual SolverCategory::Category category() const
    \n-
    294 {
    \n-
    295 return amg_.category();
    \n-
    296 }
    \n-
    297
    \n-
    298 ~AMGInverseOperator()
    \n-
    299 {
    \n-
    300 if(!first_)
    \n-
    301 amg_.post(x_);
    \n-
    302 }
    \n-
    303 AMGInverseOperator(const AMGInverseOperator& other)
    \n-
    304 : x_(other.x_), amg_(other.amg_), first_(other.first_)
    \n-
    305 {
    \n-
    306 }
    \n-
    307 private:
    \n-
    308 X x_;
    \n-
    309 AMGType amg_;
    \n-
    310 bool first_;
    \n-
    311 };
    \n-
    312
    \n-
    313public:
    \n-
    315 typedef AMGInverseOperator CoarseLevelSolver;
    \n-
    316
    \n-
    324 template<class P>
    \n-
    \n-\n-
    326 {
    \n-
    327 coarseOperator_=transferPolicy.getCoarseLevelOperator();
    \n-
    328 AMGInverseOperator* inv = new AMGInverseOperator(*coarseOperator_,
    \n-
    329 criterion_,
    \n-
    330 smootherArgs_);
    \n-
    331
    \n-
    332 return inv; //std::shared_ptr<InverseOperator<X,X> >(inv);
    \n-
    333
    \n-
    334 }
    \n-
    \n-
    335
    \n-
    336private:
    \n-
    338 std::shared_ptr<Operator> coarseOperator_;
    \n-
    340 SmootherArgs smootherArgs_;
    \n-
    342 Criterion criterion_;
    \n-
    343};
    \n-
    \n-
    344
    \n-
    350template<class FO, class CSP, class S>
    \n-
    \n-\n-
    352 public Preconditioner<typename FO::domain_type, typename FO::range_type>
    \n-
    353{
    \n-
    354public:
    \n-\n-
    358 typedef typename CoarseLevelSolverPolicy::CoarseLevelSolver CoarseLevelSolver;
    \n-\n-
    367 typedef typename FineOperatorType::range_type FineRangeType;
    \n-
    371 typedef typename FineOperatorType::domain_type FineDomainType;
    \n-
    376 typedef typename CSP::Operator CoarseOperatorType;
    \n-
    380 typedef typename CoarseOperatorType::range_type CoarseRangeType;
    \n-
    384 typedef typename CoarseOperatorType::domain_type CoarseDomainType;
    \n-
    388 typedef S SmootherType;
    \n-
    389
    \n-
    \n-\n-
    405 std::shared_ptr<SmootherType> smoother,
    \n-\n-
    407 CoarseOperatorType>& policy,
    \n-
    408 CoarseLevelSolverPolicy& coarsePolicy,
    \n-
    409 std::size_t preSteps=1, std::size_t postSteps=1)
    \n-
    410 : operator_(&op), smoother_(smoother),
    \n-
    411 preSteps_(preSteps), postSteps_(postSteps)
    \n-
    412 {
    \n-
    413 policy_ = policy.clone();
    \n-
    414 policy_->createCoarseLevelSystem(*operator_);
    \n-
    415 coarseSolver_=coarsePolicy.createCoarseLevelSolver(*policy_);
    \n-
    416 }
    \n-
    \n-
    417
    \n-
    \n-\n-
    419 : operator_(other.operator_), coarseSolver_(new CoarseLevelSolver(*other.coarseSolver_)),
    \n-
    420 smoother_(other.smoother_), policy_(other.policy_->clone()),
    \n-
    421 preSteps_(other.preSteps_), postSteps_(other.postSteps_)
    \n-
    422 {}
    \n-
    \n-
    423
    \n-
    \n-\n-
    425 {
    \n-
    426 // Each instance has its own policy.
    \n-
    427 delete policy_;
    \n-
    428 delete coarseSolver_;
    \n-
    429 }
    \n-
    \n-
    430
    \n-
    \n-\n-
    432 {
    \n-
    433 smoother_->pre(x,b);
    \n-
    434 }
    \n-
    \n-
    435
    \n-
    \n-
    436 void post([[maybe_unused]] FineDomainType& x)
    \n-
    437 {}
    \n-
    \n-
    438
    \n-
    \n-\n-
    440 {
    \n-
    441 FineDomainType u(v);
    \n-
    442 FineRangeType rhs(d);
    \n-
    443 LevelContext context;
    \n-\n-
    445 context.pinfo=&info;
    \n-
    446 context.lhs=&u;
    \n-
    447 context.update=&v;
    \n-
    448 context.smoother=smoother_;
    \n-
    449 context.rhs=&rhs;
    \n-
    450 context.matrix=operator_;
    \n-
    451 // Presmoothing
    \n-
    452 presmooth(context, preSteps_);
    \n-
    453 //Coarse grid correction
    \n-
    454 policy_->moveToCoarseLevel(*context.rhs);
    \n-\n-
    456 coarseSolver_->apply(policy_->getCoarseLevelLhs(), policy_->getCoarseLevelRhs(), res);
    \n-
    457 *context.lhs=0;
    \n-
    458 policy_->moveToFineLevel(*context.lhs);
    \n-
    459 *context.update += *context.lhs;
    \n-
    460 // Postsmoothing
    \n-
    461 postsmooth(context, postSteps_);
    \n-
    462
    \n-
    463 }
    \n-
    \n-
    464
    \n-
    \n-\n-
    467 {
    \n-\n-
    469 }
    \n-
    \n-
    470
    \n-
    471private:
    \n-
    475 struct LevelContext
    \n-
    476 {
    \n-
    478 typedef S SmootherType;
    \n-
    480 std::shared_ptr<SmootherType> smoother;
    \n-
    482 FineDomainType* lhs;
    \n-
    483 /*
    \n-
    484 * @brief The right hand side holding the current residual.
    \n-
    485 *
    \n-
    486 * This is passed to the smoother as the right hand side.
    \n-
    487 */
    \n-
    488 FineRangeType* rhs;
    \n-
    494 FineDomainType* update;
    \n-\n-
    502 const FineOperatorType* matrix;
    \n-
    503 };
    \n-
    504 const FineOperatorType* operator_;
    \n-
    506 CoarseLevelSolver* coarseSolver_;
    \n-
    508 std::shared_ptr<S> smoother_;
    \n-
    510 LevelTransferPolicy<FO,typename CSP::Operator>* policy_;
    \n-
    512 std::size_t preSteps_;
    \n-
    514 std::size_t postSteps_;
    \n-
    515};
    \n-
    \n-
    516}// end namespace Amg
    \n-
    517}// end namespace Dune
    \n-
    518
    \n-
    520#endif
    \n-
    Provides a class for building the galerkin product based on a aggregation scheme.
    \n-
    The AMG preconditioner.
    \n-
    Define general, extensible interface for inverse operators.
    \n-
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n-
    G::MutableMatrix * build(G &fineGraph, V &visitedMap, const ParallelInformation &pinfo, AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename G::Matrix::size_type &size, const Set &copy)
    Calculates the coarse matrix via a Galerkin product.
    Definition galerkin.hh:563
    \n-
    SmootherTraits< Smoother >::Arguments SmootherArgs
    The argument type for the construction of the smoother.
    Definition amg.hh:100
    \n-
    Operator Operator
    The matrix operator type.
    Definition amg.hh:73
    \n-
    void presmooth(LevelContext &levelContext, size_t steps)
    Apply pre smoothing on the current level.
    Definition smoother.hh:406
    \n-
    void postsmooth(LevelContext &levelContext, size_t steps)
    Apply post smoothing on the current level.
    Definition smoother.hh:428
    \n-
    void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse, const I &pinfo, const O &copy)
    Calculate the galerkin product.
    \n+
    10
    \n+
    11namespace Dune {
    \n+
    12
    \n+
    \n+\n+
    22 {
    \n+
    \n+
    23 enum Category {
    \n+\n+\n+\n+
    30 };
    \n+
    \n+
    31
    \n+
    33 template<typename OP>
    \n+
    \n+
    34 static Category category(const OP& op, decltype(op.category())* = nullptr)
    \n+
    35 {
    \n+
    36 return op.category();
    \n+
    37 }
    \n+
    \n+
    38
    \n+
    39#ifndef DOXYGEN
    \n+
    40 // template<typename OP>
    \n+
    41 // static Category category(const OP& op, decltype(op.getSolverCategory())* = nullptr)
    \n+
    42 // {
    \n+
    43 // return op.getSolverCategory();
    \n+
    44 // }
    \n+
    45
    \n+
    46 template<typename OP>
    \n+
    47 static Category category(const OP& op, decltype(op.category)* = nullptr)
    \n+
    48 {
    \n+
    49 return OP::category;
    \n+
    50 }
    \n+
    51#endif
    \n+
    52 };
    \n+
    \n+
    53
    \n+
    54 class InvalidSolverCategory : public InvalidStateException{};
    \n+
    55
    \n+
    58} // end namespace
    \n+
    59
    \n+
    60#endif
    \n
    Definition allocator.hh:11
    \n-
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n-
    Parallel algebraic multigrid based on agglomeration.
    Definition amg.hh:65
    \n-
    Class representing the properties of an ede in the matrix graph.
    Definition dependency.hh:39
    \n-
    Class representing a node in the matrix graph.
    Definition dependency.hh:126
    \n-
    Definition galerkin.hh:118
    \n-
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n-
    Attaches properties to the edges and vertices of a graph.
    Definition graph.hh:978
    \n-
    VertexDescriptor maxVertex() const
    Get the maximal vertex descriptor.
    \n-
    Definition indicescoarsener.hh:36
    \n-
    Definition pinfo.hh:28
    \n-
    The default class for the smoother arguments.
    Definition smoother.hh:38
    \n-
    Definition transfer.hh:32
    \n-
    Abstract base class for transfer between levels and creation of the coarse level system.
    Definition twolevelmethod.hh:38
    \n-
    CO CoarseOperatorType
    The linear operator of the finel level system. Has to be derived from AssembledLinearOperator.
    Definition twolevelmethod.hh:57
    \n-
    virtual void moveToCoarseLevel(const FineRangeType &fineRhs)=0
    Transfers the data to the coarse level.
    \n-
    FineOperatorType::range_type FineRangeType
    The type of the range of the fine level operator.
    Definition twolevelmethod.hh:48
    \n-
    virtual void createCoarseLevelSystem(const FineOperatorType &fineOperator)=0
    Algebraically creates the coarse level system.
    \n-
    CoarseOperatorType::range_type CoarseRangeType
    The type of the range of the coarse level operator.
    Definition twolevelmethod.hh:61
    \n-
    virtual ~LevelTransferPolicy()
    Destructor.
    Definition twolevelmethod.hh:124
    \n-
    CoarseDomainType lhs_
    The coarse level lhs.
    Definition twolevelmethod.hh:130
    \n-
    virtual LevelTransferPolicy * clone() const =0
    Clone the current object.
    \n-
    CoarseDomainType & getCoarseLevelLhs()
    Get the coarse level left hand side.
    Definition twolevelmethod.hh:87
    \n-
    std::shared_ptr< CoarseOperatorType > operator_
    the coarse level linear operator.
    Definition twolevelmethod.hh:132
    \n-
    CoarseRangeType rhs_
    The coarse level rhs.
    Definition twolevelmethod.hh:128
    \n-
    virtual void moveToFineLevel(FineDomainType &fineLhs)=0
    Updates the fine level linear system after the correction of the coarse levels system.
    \n-
    std::shared_ptr< CoarseOperatorType > & getCoarseLevelOperator()
    Get the coarse level operator.
    Definition twolevelmethod.hh:70
    \n-
    CoarseRangeType & getCoarseLevelRhs()
    Get the coarse level right hand side.
    Definition twolevelmethod.hh:78
    \n-
    FO FineOperatorType
    The linear operator of the finel level system. Has to be derived from AssembledLinearOperator.
    Definition twolevelmethod.hh:44
    \n-
    CoarseOperatorType::domain_type CoarseDomainType
    The type of the domain of the coarse level operator.
    Definition twolevelmethod.hh:65
    \n-
    FineOperatorType::domain_type FineDomainType
    The type of the domain of the fine level operator.
    Definition twolevelmethod.hh:52
    \n-
    A LeveTransferPolicy that used aggregation to construct the coarse level system.
    Definition twolevelmethod.hh:143
    \n-
    C Criterion
    Definition twolevelmethod.hh:147
    \n-
    AggregationLevelTransferPolicy(const Criterion &crit)
    Definition twolevelmethod.hh:150
    \n-
    AggregationLevelTransferPolicy * clone() const
    Clone the current object.
    Definition twolevelmethod.hh:214
    \n-
    void moveToFineLevel(typename FatherType::FineDomainType &fineLhs)
    Updates the fine level linear system after the correction of the coarse levels system.
    Definition twolevelmethod.hh:207
    \n-
    void moveToCoarseLevel(const typename FatherType::FineRangeType &fineRhs)
    Definition twolevelmethod.hh:200
    \n-
    SequentialInformation ParallelInformation
    Definition twolevelmethod.hh:148
    \n-
    LevelTransferPolicy< O, O > FatherType
    Definition twolevelmethod.hh:146
    \n-
    void createCoarseLevelSystem(const O &fineOperator)
    Algebraically creates the coarse level system.
    Definition twolevelmethod.hh:154
    \n-
    A policy class for solving the coarse level system using one step of AMG.
    Definition twolevelmethod.hh:234
    \n-
    OneStepAMGCoarseSolverPolicy(const SmootherArgs &args, const Criterion &c)
    Constructs the coarse solver policy.
    Definition twolevelmethod.hh:253
    \n-
    AMGInverseOperator CoarseLevelSolver
    The type of solver constructed for the coarse level.
    Definition twolevelmethod.hh:315
    \n-
    OneStepAMGCoarseSolverPolicy(const OneStepAMGCoarseSolverPolicy &other)
    Copy constructor.
    Definition twolevelmethod.hh:257
    \n-
    O::range_type X
    The type of the range and domain of the operator.
    Definition twolevelmethod.hh:239
    \n-
    C Criterion
    The type of the crition used for the aggregation within AMG.
    Definition twolevelmethod.hh:241
    \n-
    Dune::Amg::SmootherTraits< S >::Arguments SmootherArgs
    The type of the arguments used for constructing the smoother.
    Definition twolevelmethod.hh:245
    \n-
    O Operator
    The type of the linear operator used.
    Definition twolevelmethod.hh:237
    \n-
    AMG< Operator, X, Smoother > AMGType
    The type of the AMG construct on the coarse level.
    Definition twolevelmethod.hh:247
    \n-
    CoarseLevelSolver * createCoarseLevelSolver(P &transferPolicy)
    Constructs a coarse level solver.
    Definition twolevelmethod.hh:325
    \n-
    S Smoother
    The type of the smoother used in AMG.
    Definition twolevelmethod.hh:243
    \n-
    Definition twolevelmethod.hh:353
    \n-
    CoarseOperatorType::range_type CoarseRangeType
    The type of the range of the coarse level operator.
    Definition twolevelmethod.hh:380
    \n-
    FineOperatorType::domain_type FineDomainType
    The type of the domain of the fine level operator.
    Definition twolevelmethod.hh:371
    \n-
    TwoLevelMethod(const TwoLevelMethod &other)
    Definition twolevelmethod.hh:418
    \n-
    void pre(FineDomainType &x, FineRangeType &b)
    Definition twolevelmethod.hh:431
    \n-
    FO FineOperatorType
    The linear operator of the finel level system. Has to be derived from AssembledLinearOperator.
    Definition twolevelmethod.hh:363
    \n-
    CoarseLevelSolverPolicy::CoarseLevelSolver CoarseLevelSolver
    The type of the coarse level solver.
    Definition twolevelmethod.hh:358
    \n-
    void apply(FineDomainType &v, const FineRangeType &d)
    Definition twolevelmethod.hh:439
    \n-
    CSP CoarseLevelSolverPolicy
    The type of the policy for constructing the coarse level solver.
    Definition twolevelmethod.hh:356
    \n-
    CoarseOperatorType::domain_type CoarseDomainType
    The type of the domain of the coarse level operator.
    Definition twolevelmethod.hh:384
    \n-
    TwoLevelMethod(const FineOperatorType &op, std::shared_ptr< SmootherType > smoother, const LevelTransferPolicy< FineOperatorType, CoarseOperatorType > &policy, CoarseLevelSolverPolicy &coarsePolicy, std::size_t preSteps=1, std::size_t postSteps=1)
    Constructs a two level method.
    Definition twolevelmethod.hh:404
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition twolevelmethod.hh:466
    \n-
    FineOperatorType::range_type FineRangeType
    The type of the range of the fine level operator.
    Definition twolevelmethod.hh:367
    \n-
    ~TwoLevelMethod()
    Definition twolevelmethod.hh:424
    \n-
    CSP::Operator CoarseOperatorType
    The linear operator of the finel level system. Has to be derived from AssembledLinearOperator.
    Definition twolevelmethod.hh:376
    \n-
    void post(FineDomainType &x)
    Definition twolevelmethod.hh:436
    \n-
    S SmootherType
    The type of the fine level smoother.
    Definition twolevelmethod.hh:388
    \n-
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n-
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n-
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n-
    virtual void apply(X &x, X &b, InverseOperatorResult &res)=0
    Apply inverse operator,.
    \n+
    Categories for the solvers.
    Definition solvercategory.hh:22
    \n
    Category
    Definition solvercategory.hh:23
    \n
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n+
    @ nonoverlapping
    Category for non-overlapping solvers.
    Definition solvercategory.hh:27
    \n+
    @ overlapping
    Category for overlapping solvers.
    Definition solvercategory.hh:29
    \n+
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n+
    Definition solvercategory.hh:54
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,663 +1,85 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-twolevelmethod.hh\n+solvercategory.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_TWOLEVELMETHOD_HH\n-6#define DUNE_ISTL_TWOLEVELMETHOD_HH\n+5#ifndef DUNE_ISTL_SOLVERCATEGORY_HH\n+6#define DUNE_ISTL_SOLVERCATEGORY_HH\n 7\n-8#include \n+8#include \n 9\n-10#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n-11#include\"_\ba_\bm_\bg_\b._\bh_\bh\"\n-12#include\"_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\"\n-13#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n-14\n-22namespace _\bD_\bu_\bn_\be\n-23{\n-24namespace Amg\n-25{\n-26\n-36template\n-_\b3_\b7class _\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-38{\n-39public:\n-_\b4_\b4 typedef FO _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be;\n-_\b4_\b8 typedef typename FineOperatorType::range_type _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be;\n-_\b5_\b2 typedef typename FineOperatorType::domain_type _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be;\n-_\b5_\b7 typedef CO _\bC_\bo_\ba_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be;\n-_\b6_\b1 typedef typename CoarseOperatorType::range_type _\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be;\n-_\b6_\b5 typedef typename CoarseOperatorType::domain_type _\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be;\n-_\b7_\b0 std::shared_ptr& _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br()\n-71 {\n-72 return _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n-73 }\n-_\b7_\b8 _\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be& _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bR_\bh_\bs()\n-79 {\n-80 return _\br_\bh_\bs_\b_;\n-81 }\n-82\n-_\b8_\b7 _\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bL_\bh_\bs()\n-88 {\n-89 return _\bl_\bh_\bs_\b_;\n-90 }\n-_\b1_\b0_\b0 virtual void _\bm_\bo_\bv_\be_\bT_\bo_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl(const _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be& fineRhs)=0;\n-_\b1_\b1_\b0 virtual void _\bm_\bo_\bv_\be_\bT_\bo_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl(_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& fineLhs)=0;\n-_\b1_\b1_\b8 virtual void _\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\by_\bs_\bt_\be_\bm(const _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be&\n-fineOperator)=0;\n-119\n-_\b1_\b2_\b1 virtual _\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by* _\bc_\bl_\bo_\bn_\be() const =0;\n-122\n-_\b1_\b2_\b4 virtual _\b~_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by(){}\n-125\n-126 protected:\n-_\b1_\b2_\b8 _\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be _\br_\bh_\bs_\b_;\n-_\b1_\b3_\b0 _\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be _\bl_\bh_\bs_\b_;\n-_\b1_\b3_\b2 std::shared_ptr _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n-133};\n-134\n-140template\n-_\b1_\b4_\b1class _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-142 : public _\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-143{\n-144 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bO_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b>\n-_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp;\n-145public:\n-_\b1_\b4_\b6 typedef _\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b<_\bO_\b,_\bO_\b> _\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be;\n-_\b1_\b4_\b7 typedef C _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn;\n-_\b1_\b4_\b8 typedef _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n-149\n-_\b1_\b5_\b0 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by(const _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn& crit)\n-151 : criterion_(crit)\n-152 {}\n-153\n-_\b1_\b5_\b4 void _\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\by_\bs_\bt_\be_\bm(const O& fineOperator)\n-155 {\n-156 prolongDamp_ = criterion_.getProlongationDampingFactor();\n-157 _\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b> productBuilder;\n-158 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bO_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b>\n-_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh;\n-159 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh<_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh,_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,\n-160 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs,Dune::IdentityMap,Dune::IdentityMap>\n-_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh;\n-161 _\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh mg(fineOperator.getmat());\n-162 _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh pg(mg,Dune::IdentityMap(),Dune::IdentityMap());\n-163 typedef NegateSet OverlapFlags;\n-164\n-165 aggregatesMap_ = std::make_shared(pg._\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx()+1);\n-166\n-167 int noAggregates, isoAggregates, oneAggregates, skippedAggregates;\n-168\n-169 std::tie(noAggregates, isoAggregates, oneAggregates, skippedAggregates) =\n-170 aggregatesMap_->buildAggregates(fineOperator.getmat(), pg, criterion_,\n-true);\n-171 std::cout<<\"no aggregates=\"<\n-renumberer;\n-174 typedef std::vector::iterator Iterator;\n-175 typedef Dune::IteratorPropertyMap VisitedMap;\n-176 std::vector excluded(fineOperator.getmat().N(), false);\n-177 VisitedMap vm(excluded.begin(), Dune::IdentityMap());\n-178 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn pinfo;\n-179 std::size_t aggregates = renumberer.coarsen(pinfo, pg, vm,\n-180 *aggregatesMap_, pinfo,\n-181 noAggregates);\n-182 std::vector& visited=excluded;\n-183\n-184 typedef std::vector::iterator Iterator;\n-185\n-186 for(Iterator iter= visited.begin(), end=visited.end();\n-187 iter != end; ++iter)\n-188 *iter=false;\n-189 matrix_.reset(productBuilder._\bb_\bu_\bi_\bl_\bd(mg, vm,\n-190 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn(),\n-191 *aggregatesMap_,\n-192 aggregates,\n-193 OverlapFlags()));\n-194 productBuilder._\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be(fineOperator.getmat(), *aggregatesMap_, *matrix_,\n-pinfo, OverlapFlags());\n-195 this->_\bl_\bh_\bs_\b_.resize(this->matrix_->M());\n-196 this->_\br_\bh_\bs_\b_.resize(this->matrix_->N());\n-197 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b_ = std::make_shared(*matrix_);\n-198 }\n-199\n-_\b2_\b0_\b0 void _\bm_\bo_\bv_\be_\bT_\bo_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl(const typename _\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b:_\b:_\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be& fineRhs)\n-201 {\n-202 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bs_\bt_\bd_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b:_\b:\n-_\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>\n-203_\b _\b:_\b:_\br_\be_\bs_\bt_\br_\bi_\bc_\bt_\bV_\be_\bc_\bt_\bo_\br(*aggregatesMap_, this->_\br_\bh_\bs_\b_, fineRhs, _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-());\n-204 this->_\bl_\bh_\bs_\b_=0;\n-205 }\n-206\n-_\b2_\b0_\b7 void _\bm_\bo_\bv_\be_\bT_\bo_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl(typename _\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b:_\b:_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& fineLhs)\n-208 {\n-209 _\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\b<_\bs_\bt_\bd_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\b,_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be_\b:_\b:\n-_\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be_\b,_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>\n-210_\b _\b:_\b:_\bp_\br_\bo_\bl_\bo_\bn_\bg_\ba_\bt_\be_\bV_\be_\bc_\bt_\bo_\br(*aggregatesMap_, this->_\bl_\bh_\bs_\b_, fineLhs,\n-211 prolongDamp_, _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n-212 }\n-213\n-_\b2_\b1_\b4 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by* _\bc_\bl_\bo_\bn_\be() const\n-215 {\n-216 return new _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by(*this);\n-217 }\n-218\n-219private:\n-220 typename O::matrix_type::field_type prolongDamp_;\n-221 std::shared_ptr aggregatesMap_;\n-222 _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn criterion_;\n-223 std::shared_ptr matrix_;\n-224};\n-225\n-232template\n-_\b2_\b3_\b3class _\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-234{\n-235public:\n-_\b2_\b3_\b7 typedef O _\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n-_\b2_\b3_\b9 typedef typename O::range_type _\bX;\n-_\b2_\b4_\b1 typedef C _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn;\n-_\b2_\b4_\b3 typedef S _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-_\b2_\b4_\b5 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n-_\b2_\b4_\b7 typedef _\bA_\bM_\bG_\b<_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\bX_\b,_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b> _\bA_\bM_\bG_\bT_\by_\bp_\be;\n-_\b2_\b5_\b3 _\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by(const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& args, const _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn& c)\n-254 : smootherArgs_(args), criterion_(c)\n-255 {}\n-_\b2_\b5_\b7 _\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by(const _\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by& other)\n-258 : coarseOperator_(other.coarseOperator_), smootherArgs_\n-(other.smootherArgs_),\n-259 criterion_(other.criterion_)\n-260 {}\n-261private:\n-268 struct AMGInverseOperator : public _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-269 {\n-270 AMGInverseOperator(const typename _\bA_\bM_\bG_\bT_\by_\bp_\be_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br& op,\n-271 const _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn& crit,\n-272 const typename _\bA_\bM_\bG_\bT_\by_\bp_\be_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& args)\n-273 : amg_(op, crit,args), first_(true)\n-274 {}\n-275\n-276 void apply(_\bX& x, _\bX& b, [[maybe_unused]] double reduction, [[maybe_unused]]\n-_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-277 {\n-278 if(first_)\n-279 {\n-280 amg_.pre(x,b);\n-281 first_=false;\n-282 x_=x;\n-283 }\n-284 amg_.apply(x,b);\n-285 }\n-286\n-287 void _\ba_\bp_\bp_\bl_\by(_\bX& x, _\bX& b, InverseOperatorResult& res)\n-288 {\n-289 return _\ba_\bp_\bp_\bl_\by(x,b,1e-8,res);\n-290 }\n-291\n-293 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category() const\n-294 {\n-295 return amg_.category();\n-296 }\n-297\n-298 ~AMGInverseOperator()\n-299 {\n-300 if(!first_)\n-301 amg_.post(x_);\n-302 }\n-303 AMGInverseOperator(const AMGInverseOperator& other)\n-304 : x_(other.x_), amg_(other.amg_), first_(other.first_)\n-305 {\n-306 }\n-307 private:\n-308 _\bX x_;\n-309 _\bA_\bM_\bG_\bT_\by_\bp_\be amg_;\n-310 bool first_;\n-311 };\n-312\n-313public:\n-_\b3_\b1_\b5 typedef AMGInverseOperator _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br;\n-316\n-324 template\n-_\b3_\b2_\b5 _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br* _\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br(P& transferPolicy)\n-326 {\n-327 coarseOperator_=transferPolicy.getCoarseLevelOperator();\n-328 AMGInverseOperator* inv = new AMGInverseOperator(*coarseOperator_,\n-329 criterion_,\n-330 smootherArgs_);\n-331\n-332 return inv; //std::shared_ptr >(inv);\n-333\n-334 }\n-335\n-336private:\n-338 std::shared_ptr coarseOperator_;\n-340 _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs smootherArgs_;\n-342 _\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn criterion_;\n-343};\n-344\n-350template\n-_\b3_\b5_\b1class _\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd :\n-352 public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-353{\n-354public:\n-_\b3_\b5_\b6 typedef CSP _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by;\n-_\b3_\b5_\b8 typedef typename CoarseLevelSolverPolicy::CoarseLevelSolver\n-_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br;\n-_\b3_\b6_\b3 typedef FO _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be;\n-_\b3_\b6_\b7 typedef typename FineOperatorType::range_type _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be;\n-_\b3_\b7_\b1 typedef typename FineOperatorType::domain_type _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be;\n-_\b3_\b7_\b6 typedef typename CSP::Operator _\bC_\bo_\ba_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be;\n-_\b3_\b8_\b0 typedef typename CoarseOperatorType::range_type _\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be;\n-_\b3_\b8_\b4 typedef typename CoarseOperatorType::domain_type _\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be;\n-_\b3_\b8_\b8 typedef S _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be;\n-389\n-_\b4_\b0_\b4 _\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd(const _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be& op,\n-405 std::shared_ptr smoother,\n-406 const _\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by<_\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be,\n-407 _\bC_\bo_\ba_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be>& policy,\n-408 _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by& coarsePolicy,\n-409 std::size_t preSteps=1, std::size_t postSteps=1)\n-410 : operator_(&op), smoother_(smoother),\n-411 preSteps_(preSteps), postSteps_(postSteps)\n-412 {\n-413 policy_ = policy._\bc_\bl_\bo_\bn_\be();\n-414 policy_->_\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\by_\bs_\bt_\be_\bm(*operator_);\n-415 coarseSolver_=coarsePolicy.createCoarseLevelSolver(*policy_);\n-416 }\n-417\n-_\b4_\b1_\b8 _\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd(const _\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd& other)\n-419 : operator_(other.operator_), coarseSolver_(new _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n-(*other.coarseSolver_)),\n-420 smoother_(other.smoother_), policy_(other.policy_->clone()),\n-421 preSteps_(other.preSteps_), postSteps_(other.postSteps_)\n-422 {}\n-423\n-_\b4_\b2_\b4 _\b~_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd()\n-425 {\n-426 // Each instance has its own policy.\n-427 delete policy_;\n-428 delete coarseSolver_;\n-429 }\n-430\n-_\b4_\b3_\b1 void _\bp_\br_\be(_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& x, _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be& b)\n-432 {\n-433 smoother_->pre(x,b);\n-434 }\n-435\n-_\b4_\b3_\b6 void _\bp_\bo_\bs_\bt([[maybe_unused]] _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& x)\n-437 {}\n-438\n-_\b4_\b3_\b9 void _\ba_\bp_\bp_\bl_\by(_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be& v, const _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be& d)\n-440 {\n-441 _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be u(v);\n-442 _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be rhs(d);\n-443 LevelContext context;\n-444 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn info;\n-445 context.pinfo=&info;\n-446 context.lhs=&u;\n-447 context.update=&v;\n-448 context.smoother=smoother_;\n-449 context.rhs=&rhs;\n-450 context.matrix=operator_;\n-451 // Presmoothing\n-452 _\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh(context, preSteps_);\n-453 //Coarse grid correction\n-454 policy_->_\bm_\bo_\bv_\be_\bT_\bo_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl(*context.rhs);\n-455 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n-456 coarseSolver_->apply(policy_->_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bL_\bh_\bs(), policy_-\n->_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bR_\bh_\bs(), res);\n-457 *context.lhs=0;\n-458 policy_->_\bm_\bo_\bv_\be_\bT_\bo_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl(*context.lhs);\n-459 *context.update += *context.lhs;\n-460 // Postsmoothing\n-461 _\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh(context, postSteps_);\n-462\n-463 }\n-464\n-_\b4_\b6_\b6 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-467 {\n-468 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-469 }\n-470\n-471private:\n-475 struct LevelContext\n-476 {\n-478 typedef S SmootherType;\n-480 std::shared_ptr smoother;\n-482 _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be* lhs;\n-483 /*\n-484 * @brief The right hand side holding the current residual.\n-485 *\n-486 * This is passed to the smoother as the right hand side.\n-487 */\n-488 _\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be* rhs;\n-494 _\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be* update;\n-496 _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn* pinfo;\n-502 const _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be* matrix;\n-503 };\n-504 const _\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be* operator_;\n-506 _\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br* coarseSolver_;\n-508 std::shared_ptr smoother_;\n-510 LevelTransferPolicy* policy_;\n-512 std::size_t preSteps_;\n-514 std::size_t postSteps_;\n-515};\n-516}// end namespace Amg\n-517}// end namespace Dune\n-518\n-520#endif\n-_\bg_\ba_\bl_\be_\br_\bk_\bi_\bn_\b._\bh_\bh\n-Provides a class for building the galerkin product based on a aggregation\n-scheme.\n-_\ba_\bm_\bg_\b._\bh_\bh\n-The AMG preconditioner.\n-_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n-Define general, extensible interface for inverse operators.\n-_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n-Define general, extensible interface for operators. The available\n-implementation wraps a matrix.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bb_\bu_\bi_\bl_\bd\n-G::MutableMatrix * build(G &fineGraph, V &visitedMap, const ParallelInformation\n-&pinfo, AggregatesMap< typename G::VertexDescriptor > &aggregates, const\n-typename G::Matrix::size_type &size, const Set ©)\n-Calculates the coarse matrix via a Galerkin product.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:563\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b<_\b _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bX_\b,_\b _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b _\b>_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-SmootherTraits< Smoother >::Arguments SmootherArgs\n-The argument type for the construction of the smoother.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:100\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b<_\b _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bX_\b,_\b _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b _\b>_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Operator Operator\n-The matrix operator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh\n-void presmooth(LevelContext &levelContext, size_t steps)\n-Apply pre smoothing on the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:406\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh\n-void postsmooth(LevelContext &levelContext, size_t steps)\n-Apply post smoothing on the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:428\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bB_\ba_\bs_\be_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be\n-void calculate(const M &fine, const AggregatesMap< V > &aggregates, M &coarse,\n-const I &pinfo, const O ©)\n-Calculate the galerkin product.\n+10\n+11namespace _\bD_\bu_\bn_\be {\n+12\n+_\b2_\b1 struct _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+22 {\n+_\b2_\b3 enum _\bC_\ba_\bt_\be_\bg_\bo_\br_\by {\n+_\b2_\b5 _\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl,\n+_\b2_\b7 _\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg,\n+29 _\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n+_\b3_\b0 };\n+31\n+33 template\n+_\b3_\b4 static _\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by(const OP& op, decltype(op.category())* = nullptr)\n+35 {\n+36 return op.category();\n+37 }\n+38\n+39#ifndef DOXYGEN\n+40 // template\n+41 // static Category category(const OP& op, decltype(op.getSolverCategory())*\n+= nullptr)\n+42 // {\n+43 // return op.getSolverCategory();\n+44 // }\n+45\n+46 template\n+47 static _\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by(const OP& op, decltype(op.category)* = nullptr)\n+48 {\n+49 return OP::category;\n+50 }\n+51#endif\n+52 };\n+53\n+_\b5_\b4 class _\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by : public InvalidStateException{};\n+55\n+58} // end namespace\n+59\n+60#endif\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-Class providing information about the mapping of the vertices onto aggregates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG\n-Parallel algebraic multigrid based on agglomeration.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:65\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-Class representing the properties of an ede in the matrix graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:39\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-Class representing a node in the matrix graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\ba_\bl_\be_\br_\bk_\bi_\bn_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn galerkin.hh:118\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-The (undirected) graph of a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-Attaches properties to the edges and vertices of a graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:978\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b:_\b:_\bm_\ba_\bx_\bV_\be_\br_\bt_\be_\bx\n-VertexDescriptor maxVertex() const\n-Get the maximal vertex descriptor.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bI_\bn_\bd_\bi_\bc_\be_\bs_\bC_\bo_\ba_\br_\bs_\be_\bn_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn indicescoarsener.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-The default class for the smoother arguments.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:38\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bf_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn transfer.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-Abstract base class for transfer between levels and creation of the coarse\n-level system.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:38\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n-CO CoarseOperatorType\n-The linear operator of the finel level system. Has to be derived from\n-AssembledLinearOperator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:57\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bm_\bo_\bv_\be_\bT_\bo_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl\n-virtual void moveToCoarseLevel(const FineRangeType &fineRhs)=0\n-Transfers the data to the coarse level.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be\n-FineOperatorType::range_type FineRangeType\n-The type of the range of the fine level operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\by_\bs_\bt_\be_\bm\n-virtual void createCoarseLevelSystem(const FineOperatorType &fineOperator)=0\n-Algebraically creates the coarse level system.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be\n-CoarseOperatorType::range_type CoarseRangeType\n-The type of the range of the coarse level operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\b~_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-virtual ~LevelTransferPolicy()\n-Destructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:124\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bl_\bh_\bs_\b_\n-CoarseDomainType lhs_\n-The coarse level lhs.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:130\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bc_\bl_\bo_\bn_\be\n-virtual LevelTransferPolicy * clone() const =0\n-Clone the current object.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bL_\bh_\bs\n-CoarseDomainType & getCoarseLevelLhs()\n-Get the coarse level left hand side.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:87\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b_\n-std::shared_ptr< CoarseOperatorType > operator_\n-the coarse level linear operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:132\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\br_\bh_\bs_\b_\n-CoarseRangeType rhs_\n-The coarse level rhs.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:128\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bm_\bo_\bv_\be_\bT_\bo_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl\n-virtual void moveToFineLevel(FineDomainType &fineLhs)=0\n-Updates the fine level linear system after the correction of the coarse levels\n-system.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-std::shared_ptr< CoarseOperatorType > & getCoarseLevelOperator()\n-Get the coarse level operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bR_\bh_\bs\n-CoarseRangeType & getCoarseLevelRhs()\n-Get the coarse level right hand side.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:78\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n-FO FineOperatorType\n-The linear operator of the finel level system. Has to be derived from\n-AssembledLinearOperator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:44\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be\n-CoarseOperatorType::domain_type CoarseDomainType\n-The type of the domain of the coarse level operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:65\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be\n-FineOperatorType::domain_type FineDomainType\n-The type of the domain of the fine level operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-A LeveTransferPolicy that used aggregation to construct the coarse level\n-system.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:143\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-C Criterion\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:147\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-AggregationLevelTransferPolicy(const Criterion &crit)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bc_\bl_\bo_\bn_\be\n-AggregationLevelTransferPolicy * clone() const\n-Clone the current object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:214\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bm_\bo_\bv_\be_\bT_\bo_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl\n-void moveToFineLevel(typename FatherType::FineDomainType &fineLhs)\n-Updates the fine level linear system after the correction of the coarse levels\n-system.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:207\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bm_\bo_\bv_\be_\bT_\bo_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl\n-void moveToCoarseLevel(const typename FatherType::FineRangeType &fineRhs)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:200\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-SequentialInformation ParallelInformation\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:148\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bF_\ba_\bt_\bh_\be_\br_\bT_\by_\bp_\be\n-LevelTransferPolicy< O, O > FatherType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:146\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\bi_\bo_\bn_\bL_\be_\bv_\be_\bl_\bT_\br_\ba_\bn_\bs_\bf_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\by_\bs_\bt_\be_\bm\n-void createCoarseLevelSystem(const O &fineOperator)\n-Algebraically creates the coarse level system.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:154\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-A policy class for solving the coarse level system using one step of AMG.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:234\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-OneStepAMGCoarseSolverPolicy(const SmootherArgs &args, const Criterion &c)\n-Constructs the coarse solver policy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:253\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n-AMGInverseOperator CoarseLevelSolver\n-The type of solver constructed for the coarse level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:315\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-OneStepAMGCoarseSolverPolicy(const OneStepAMGCoarseSolverPolicy &other)\n-Copy constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:257\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bX\n-O::range_type X\n-The type of the range and domain of the operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:239\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-C Criterion\n-The type of the crition used for the aggregation within AMG.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:241\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-Dune::Amg::SmootherTraits< S >::Arguments SmootherArgs\n-The type of the arguments used for constructing the smoother.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:245\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-O Operator\n-The type of the linear operator used.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:237\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bA_\bM_\bG_\bT_\by_\bp_\be\n-AMG< Operator, X, Smoother > AMGType\n-The type of the AMG construct on the coarse level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:247\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n-CoarseLevelSolver * createCoarseLevelSolver(P &transferPolicy)\n-Constructs a coarse level solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:325\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bO_\bn_\be_\bS_\bt_\be_\bp_\bA_\bM_\bG_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n-S Smoother\n-The type of the smoother used in AMG.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:243\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:353\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be\n-CoarseOperatorType::range_type CoarseRangeType\n-The type of the range of the coarse level operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:380\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bF_\bi_\bn_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be\n-FineOperatorType::domain_type FineDomainType\n-The type of the domain of the fine level operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:371\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd\n-TwoLevelMethod(const TwoLevelMethod &other)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:418\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bp_\br_\be\n-void pre(FineDomainType &x, FineRangeType &b)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:431\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bF_\bi_\bn_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n-FO FineOperatorType\n-The linear operator of the finel level system. Has to be derived from\n-AssembledLinearOperator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:363\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n-CoarseLevelSolverPolicy::CoarseLevelSolver CoarseLevelSolver\n-The type of the coarse level solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:358\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(FineDomainType &v, const FineRangeType &d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:439\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br_\bP_\bo_\bl_\bi_\bc_\by\n-CSP CoarseLevelSolverPolicy\n-The type of the policy for constructing the coarse level solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:356\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bD_\bo_\bm_\ba_\bi_\bn_\bT_\by_\bp_\be\n-CoarseOperatorType::domain_type CoarseDomainType\n-The type of the domain of the coarse level operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:384\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd\n-TwoLevelMethod(const FineOperatorType &op, std::shared_ptr< SmootherType >\n-smoother, const LevelTransferPolicy< FineOperatorType, CoarseOperatorType >\n-&policy, CoarseLevelSolverPolicy &coarsePolicy, std::size_t preSteps=1, std::\n-size_t postSteps=1)\n-Constructs a two level method.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:404\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bF_\bi_\bn_\be_\bR_\ba_\bn_\bg_\be_\bT_\by_\bp_\be\n-FineOperatorType::range_type FineRangeType\n-The type of the range of the fine level operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:367\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\b~_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd\n-~TwoLevelMethod()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:424\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n-CSP::Operator CoarseOperatorType\n-The linear operator of the finel level system. Has to be derived from\n-AssembledLinearOperator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:376\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bp_\bo_\bs_\bt\n-void post(FineDomainType &x)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:436\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bT_\bw_\bo_\bL_\be_\bv_\be_\bl_\bM_\be_\bt_\bh_\bo_\bd_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be\n-S SmootherType\n-The type of the fine level smoother.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn twolevelmethod.hh:388\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Abstract base class for all solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, X &b, InverseOperatorResult &res)=0\n-Apply inverse operator,.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Categories for the solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:22\n _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n Category\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n @ sequential\n Category for sequential solvers.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n+@ nonoverlapping\n+Category for non-overlapping solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n+@ overlapping\n+Category for overlapping solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:29\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+static Category category(const OP &op, decltype(op.category()) *=nullptr)\n+Helperfunction to extract the solver category either from an enum, or from the\n+newly introduced virtu...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:54\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00131.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00131.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: properties.hh File Reference\n+dune-istl: bvector.hh File Reference\n \n \n \n \n \n \n \n@@ -65,50 +65,71 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n \n+
    bvector.hh File Reference
    \n \n
    \n \n-

    Provides classes for handling internal properties in a graph. \n+

    This file implements a vector space as a tensor product of a given vector space. The number of components can be given at run-time. \n More...

    \n-
    #include <dune/common/propertymap.hh>
    \n+
    #include <algorithm>
    \n+#include <cmath>
    \n+#include <complex>
    \n+#include <initializer_list>
    \n+#include <limits>
    \n+#include <memory>
    \n+#include <utility>
    \n+#include <vector>
    \n+#include <dune/common/dotproduct.hh>
    \n+#include <dune/common/ftraits.hh>
    \n+#include <dune/common/fmatrix.hh>
    \n+#include <dune/common/fvector.hh>
    \n+#include <dune/common/promotiontraits.hh>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/scalarvectorview.hh>
    \n+#include <dune/istl/blocklevel.hh>
    \n+#include "basearray.hh"
    \n+#include "istlexception.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n-\n+\n \n

    \n Classes

    struct  Dune::Amg::VertexVisitedTag
     Tag idnetifying the visited property of a vertex. More...
    class  Dune::BlockVector< B, A >
     A vector of blocks with memory management. More...
     
    class  Dune::Amg::RandomAccessBundledPropertyMap< C, K, i, T, R >
     A property map that extracts one property out of a bundle using operator[]() More...
    struct  Dune::FieldTraits< BlockVector< B, A > >
     
    \n \n \n \n-\n-\n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+\n+\n+\n+\n+\n

    \n+Functions

    template<class K , class A >
    std::ostream & Dune::operator<< (std::ostream &s, const BlockVector< K, A > &v)
     Send BlockVector to an output stream.
     
    \n

    Detailed Description

    \n-

    Provides classes for handling internal properties in a graph.

    \n-
    Author
    Markus Blatt
    \n+

    This file implements a vector space as a tensor product of a given vector space. The number of components can be given at run-time.

    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,33 +1,49 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-properties.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n-\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Provides classes for handling internal properties in a graph. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+bvector.hh File Reference\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of components can be given at run-time. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+#include \"_\bb_\ba_\bs_\be_\ba_\br_\br_\ba_\by_\b._\bh_\bh\"\n+#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n-\u00a0 Tag idnetifying the visited property of a vertex. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n+\u00a0 A vector of blocks with memory management. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\b _\bC_\b,_\b _\bK_\b,_\b _\bi_\b,_\b _\bT_\b,_\b _\bR_\b _\b>\n-\u00a0 A property map that extracts one property out of a bundle using\n- _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b(_\b) _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &s, const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br< K, A >\n+ &v)\n+\u00a0 Send _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br to an output stream.\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides classes for handling internal properties in a graph.\n- Author\n- Markus Blatt\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of components can be given at run-time.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00131_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00131_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: properties.hh Source File\n+dune-istl: bvector.hh Source File\n \n \n \n \n \n \n \n@@ -70,99 +70,965 @@\n
    \n
    \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n
    \n-
    properties.hh
    \n+
    bvector.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_AMG_PROPERTIES_HH
    \n-
    6#define DUNE_ISTL_AMG_PROPERTIES_HH
    \n-
    7
    \n-
    8#include <dune/common/propertymap.hh>
    \n-
    9
    \n-
    10namespace Dune
    \n-
    11{
    \n-
    12
    \n-
    13 namespace Amg
    \n-
    14 {
    \n-
    \n-\n-
    29 {};
    \n-
    \n+
    5
    \n+
    6#ifndef DUNE_ISTL_BVECTOR_HH
    \n+
    7#define DUNE_ISTL_BVECTOR_HH
    \n+
    8
    \n+
    9#include <algorithm>
    \n+
    10#include <cmath>
    \n+
    11#include <complex>
    \n+
    12#include <initializer_list>
    \n+
    13#include <limits>
    \n+
    14#include <memory>
    \n+
    15#include <utility>
    \n+
    16#include <vector>
    \n+
    17
    \n+
    18#include <dune/common/dotproduct.hh>
    \n+
    19#include <dune/common/ftraits.hh>
    \n+
    20#include <dune/common/fmatrix.hh>
    \n+
    21#include <dune/common/fvector.hh>
    \n+
    22#include <dune/common/promotiontraits.hh>
    \n+
    23#include <dune/common/typetraits.hh>
    \n+
    24#include <dune/common/scalarvectorview.hh>
    \n+
    25
    \n+\n+
    27
    \n+
    28#include "basearray.hh"
    \n+
    29#include "istlexception.hh"
    \n
    30
    \n-
    31
    \n-
    38 template<typename C, typename K, std::size_t i,typename T=typename C::ValueType,
    \n-
    39 typename R = typename C::Reference>
    \n-
    \n-\n-
    41 : public RAPropertyMapHelper<R,
    \n-
    42 RandomAccessBundledPropertyMap<C,K,i,T,R> >
    \n-
    43 {
    \n-
    44 public:
    \n-
    46 typedef C Container;
    \n-
    47
    \n-
    49 typedef R Reference;
    \n+
    38namespace Dune {
    \n+
    39
    \n+
    41namespace Imp {
    \n+
    42
    \n+
    48 template <class B, bool isNumber>
    \n+
    49 class BlockTraitsImp;
    \n
    50
    \n-
    52 typedef K Key;
    \n-
    53
    \n-
    57 typedef LvaluePropertyMapTag Category;
    \n-
    58
    \n-
    59 enum {
    \n-
    61 index = i
    \n-
    62 };
    \n-
    63
    \n-
    \n-
    69 Reference operator[](const Key& key) const
    \n-
    70 {
    \n-
    71 return container_[key][index];
    \n-
    72 }
    \n-
    \n-
    73
    \n-
    \n-\n-
    79 : container_(&container)
    \n-
    80 {}
    \n-
    \n-
    81
    \n-
    \n-\n-
    84 : container_(0)
    \n-
    85 {}
    \n-
    \n-
    86
    \n-
    87 private:
    \n-
    89 Container* container_;
    \n-
    90 };
    \n-
    \n-
    91 }
    \n-
    92}
    \n+
    51 template <class B>
    \n+
    52 class BlockTraitsImp<B,true>
    \n+
    53 {
    \n+
    54 public:
    \n+
    55 using field_type = B;
    \n+
    56 };
    \n+
    57
    \n+
    58 template <class B>
    \n+
    59 class BlockTraitsImp<B,false>
    \n+
    60 {
    \n+
    61 public:
    \n+
    62 using field_type = typename B::field_type;
    \n+
    63 };
    \n+
    64
    \n+
    67 template <class B>
    \n+
    68 using BlockTraits = BlockTraitsImp<B,IsNumber<B>::value>;
    \n+
    69
    \n+
    83 template<class B, class A=std::allocator<B> >
    \n+
    84 class block_vector_unmanaged : public base_array_unmanaged<B,A>
    \n+
    85 {
    \n+
    86 public:
    \n+
    87
    \n+
    88 //===== type definitions and constants
    \n+
    89 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n+
    90
    \n+
    92 typedef B block_type;
    \n
    93
    \n-
    94#endif
    \n-
    Reference operator[](const Key &key) const
    Get the property for a key.
    Definition properties.hh:69
    \n-
    RandomAccessBundledPropertyMap()
    The default constructor.
    Definition properties.hh:83
    \n-
    R Reference
    The reference type of the container.
    Definition properties.hh:49
    \n-
    RandomAccessBundledPropertyMap(Container &container)
    Constructor.
    Definition properties.hh:78
    \n-
    K Key
    The key of the property map.
    Definition properties.hh:52
    \n-
    LvaluePropertyMapTag Category
    The category of the property map.
    Definition properties.hh:57
    \n-
    C Container
    The container that holds the properties.
    Definition properties.hh:46
    \n-
    @ index
    The index of the property in the bundle.
    Definition properties.hh:61
    \n+
    95 typedef A allocator_type;
    \n+
    96
    \n+
    98 typedef typename A::size_type size_type;
    \n+
    99
    \n+
    101 typedef typename base_array_unmanaged<B,A>::iterator Iterator;
    \n+
    102
    \n+
    104 typedef typename base_array_unmanaged<B,A>::const_iterator ConstIterator;
    \n+
    105
    \n+
    107 typedef B value_type;
    \n+
    108
    \n+
    110 typedef B& reference;
    \n+
    111
    \n+
    113 typedef const B& const_reference;
    \n+
    114
    \n+
    115 //===== assignment from scalar
    \n+
    117
    \n+
    118 block_vector_unmanaged& operator= (const field_type& k)
    \n+
    119 {
    \n+
    120 for (size_type i=0; i<this->n; i++)
    \n+
    121 (*this)[i] = k;
    \n+
    122 return *this;
    \n+
    123 }
    \n+
    124
    \n+
    125 //===== vector space arithmetic
    \n+
    127 block_vector_unmanaged& operator+= (const block_vector_unmanaged& y)
    \n+
    128 {
    \n+
    129#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    130 if (this->n!=y.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n+
    131#endif
    \n+
    132 for (size_type i=0; i<this->n; ++i) (*this)[i] += y[i];
    \n+
    133 return *this;
    \n+
    134 }
    \n+
    135
    \n+
    137 block_vector_unmanaged& operator-= (const block_vector_unmanaged& y)
    \n+
    138 {
    \n+
    139#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    140 if (this->n!=y.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n+
    141#endif
    \n+
    142 for (size_type i=0; i<this->n; ++i) (*this)[i] -= y[i];
    \n+
    143 return *this;
    \n+
    144 }
    \n+
    145
    \n+
    147 block_vector_unmanaged& operator*= (const field_type& k)
    \n+
    148 {
    \n+
    149 for (size_type i=0; i<this->n; ++i) (*this)[i] *= k;
    \n+
    150 return *this;
    \n+
    151 }
    \n+
    152
    \n+
    154 block_vector_unmanaged& operator/= (const field_type& k)
    \n+
    155 {
    \n+
    156 for (size_type i=0; i<this->n; ++i) (*this)[i] /= k;
    \n+
    157 return *this;
    \n+
    158 }
    \n+
    159
    \n+
    161 block_vector_unmanaged& axpy (const field_type& a, const block_vector_unmanaged& y)
    \n+
    162 {
    \n+
    163#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    164 if (this->n!=y.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n+
    165#endif
    \n+
    166 for (size_type i=0; i<this->n; ++i)
    \n+
    167 Impl::asVector((*this)[i]).axpy(a,Impl::asVector(y[i]));
    \n+
    168
    \n+
    169 return *this;
    \n+
    170 }
    \n+
    171
    \n+
    172
    \n+
    180 template<class OtherB, class OtherA>
    \n+
    181 auto operator* (const block_vector_unmanaged<OtherB,OtherA>& y) const
    \n+
    182 {
    \n+
    183 typedef typename PromotionTraits<field_type,typename BlockTraits<OtherB>::field_type>::PromotedType PromotedType;
    \n+
    184 PromotedType sum(0);
    \n+
    185#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    186 if (this->n!=y.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n+
    187#endif
    \n+
    188 for (size_type i=0; i<this->n; ++i) {
    \n+
    189 sum += PromotedType(((*this)[i])*y[i]);
    \n+
    190 }
    \n+
    191 return sum;
    \n+
    192 }
    \n+
    193
    \n+
    201 template<class OtherB, class OtherA>
    \n+
    202 auto dot(const block_vector_unmanaged<OtherB,OtherA>& y) const
    \n+
    203 {
    \n+
    204 typedef typename PromotionTraits<field_type,typename BlockTraits<OtherB>::field_type>::PromotedType PromotedType;
    \n+
    205 PromotedType sum(0);
    \n+
    206#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    207 if (this->n!=y.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n+
    208#endif
    \n+
    209
    \n+
    210 for (size_type i=0; i<this->n; ++i)
    \n+
    211 sum += Impl::asVector((*this)[i]).dot(Impl::asVector(y[i]));
    \n+
    212
    \n+
    213 return sum;
    \n+
    214 }
    \n+
    215
    \n+
    216 //===== norms
    \n+
    217
    \n+
    219 typename FieldTraits<field_type>::real_type one_norm () const
    \n+
    220 {
    \n+
    221 typename FieldTraits<field_type>::real_type sum=0;
    \n+
    222 for (size_type i=0; i<this->n; ++i)
    \n+
    223 sum += Impl::asVector((*this)[i]).one_norm();
    \n+
    224 return sum;
    \n+
    225 }
    \n+
    226
    \n+
    228 typename FieldTraits<field_type>::real_type one_norm_real () const
    \n+
    229 {
    \n+
    230 typename FieldTraits<field_type>::real_type sum=0;
    \n+
    231 for (size_type i=0; i<this->n; ++i)
    \n+
    232 sum += Impl::asVector((*this)[i]).one_norm_real();
    \n+
    233 return sum;
    \n+
    234 }
    \n+
    235
    \n+
    237 typename FieldTraits<field_type>::real_type two_norm () const
    \n+
    238 {
    \n+
    239 using std::sqrt;
    \n+
    240 return sqrt(two_norm2());
    \n+
    241 }
    \n+
    242
    \n+
    244 typename FieldTraits<field_type>::real_type two_norm2 () const
    \n+
    245 {
    \n+
    246 typename FieldTraits<field_type>::real_type sum=0;
    \n+
    247 for (size_type i=0; i<this->n; ++i)
    \n+
    248 sum += Impl::asVector((*this)[i]).two_norm2();
    \n+
    249 return sum;
    \n+
    250 }
    \n+
    251
    \n+
    253 template <typename ft = field_type,
    \n+
    254 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n+
    255 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n+
    256 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    257 using std::max;
    \n+
    258
    \n+
    259 real_type norm = 0;
    \n+
    260 for (auto const &xi : *this) {
    \n+
    261 real_type const a = Impl::asVector(xi).infinity_norm();
    \n+
    262 norm = max(a, norm);
    \n+
    263 }
    \n+
    264 return norm;
    \n+
    265 }
    \n+
    266
    \n+
    268 template <typename ft = field_type,
    \n+
    269 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n+
    270 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n+
    271 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    272 using std::max;
    \n+
    273
    \n+
    274 real_type norm = 0;
    \n+
    275 for (auto const &xi : *this) {
    \n+
    276 real_type const a = Impl::asVector(xi).infinity_norm_real();
    \n+
    277 norm = max(a, norm);
    \n+
    278 }
    \n+
    279 return norm;
    \n+
    280 }
    \n+
    281
    \n+
    283 template <typename ft = field_type,
    \n+
    284 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n+
    285 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n+
    286 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    287 using std::max;
    \n+
    288 using std::abs;
    \n+
    289
    \n+
    290 real_type norm = 0;
    \n+
    291 real_type isNaN = 1;
    \n+
    292
    \n+
    293 for (auto const &xi : *this) {
    \n+
    294 real_type const a = Impl::asVector(xi).infinity_norm();
    \n+
    295 norm = max(a, norm);
    \n+
    296 isNaN += a;
    \n+
    297 }
    \n+
    298 return norm * (isNaN / isNaN);
    \n+
    299 }
    \n+
    300
    \n+
    302 template <typename ft = field_type,
    \n+
    303 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n+
    304 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n+
    305 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    306 using std::max;
    \n+
    307
    \n+
    308 real_type norm = 0;
    \n+
    309 real_type isNaN = 1;
    \n+
    310
    \n+
    311 for (auto const &xi : *this) {
    \n+
    312 real_type const a = Impl::asVector(xi).infinity_norm_real();
    \n+
    313 norm = max(a, norm);
    \n+
    314 isNaN += a;
    \n+
    315 }
    \n+
    316
    \n+
    317 return norm * (isNaN / isNaN);
    \n+
    318 }
    \n+
    319
    \n+
    320 //===== sizes
    \n+
    321
    \n+
    323 size_type N () const
    \n+
    324 {
    \n+
    325 return this->n;
    \n+
    326 }
    \n+
    327
    \n+
    329 size_type dim () const
    \n+
    330 {
    \n+
    331 size_type d=0;
    \n+
    332
    \n+
    333 for (size_type i=0; i<this->n; i++)
    \n+
    334 d += Impl::asVector((*this)[i]).dim();
    \n+
    335
    \n+
    336 return d;
    \n+
    337 }
    \n+
    338
    \n+
    339 protected:
    \n+
    341 block_vector_unmanaged () : base_array_unmanaged<B,A>()
    \n+
    342 { }
    \n+
    343 };
    \n+
    344
    \n+
    346
    \n+
    351 template<class F>
    \n+
    352 class ScopeGuard {
    \n+
    353 F cleanupFunc_;
    \n+
    354 public:
    \n+
    355 ScopeGuard(F cleanupFunc) : cleanupFunc_(std::move(cleanupFunc)) {}
    \n+
    356 ScopeGuard(const ScopeGuard &) = delete;
    \n+
    357 ScopeGuard(ScopeGuard &&) = delete;
    \n+
    358 ScopeGuard &operator=(ScopeGuard) = delete;
    \n+
    359 ~ScopeGuard() { cleanupFunc_(); }
    \n+
    360 };
    \n+
    361
    \n+
    363
    \n+
    372 template<class F>
    \n+
    373 ScopeGuard<F> makeScopeGuard(F cleanupFunc)
    \n+
    374 {
    \n+
    375 return { std::move(cleanupFunc) };
    \n+
    376 }
    \n+
    377
    \n+
    378} // end namespace Imp
    \n+
    393 template<class B, class A=std::allocator<B> >
    \n+
    \n+
    394 class BlockVector : public Imp::block_vector_unmanaged<B,A>
    \n+
    395 {
    \n+
    396 public:
    \n+
    397
    \n+
    398 //===== type definitions and constants
    \n+
    399
    \n+
    401 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n+
    402
    \n+
    404 typedef B block_type;
    \n+
    405
    \n+
    407 typedef A allocator_type;
    \n+
    408
    \n+
    410 typedef typename A::size_type size_type;
    \n+
    411
    \n+
    413 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n+
    414 static constexpr unsigned int blocklevel = blockLevel<B>()+1;
    \n+
    415
    \n+
    417 typedef typename Imp::block_vector_unmanaged<B,A>::Iterator Iterator;
    \n+
    418
    \n+
    420 typedef typename Imp::block_vector_unmanaged<B,A>::ConstIterator ConstIterator;
    \n+
    421
    \n+
    422 //===== constructors and such
    \n+
    423
    \n+
    \n+\n+
    426 {
    \n+
    427 syncBaseArray();
    \n+
    428 }
    \n+
    \n+
    429
    \n+
    \n+
    431 explicit BlockVector (size_type _n) : storage_(_n)
    \n+
    432 {
    \n+
    433 syncBaseArray();
    \n+
    434 }
    \n+
    \n+
    435
    \n+
    \n+
    437 BlockVector (std::initializer_list<B> const &l) : storage_(l)
    \n+
    438 {
    \n+
    439 syncBaseArray();
    \n+
    440 }
    \n+
    \n+
    441
    \n+
    442
    \n+
    454 template<typename S>
    \n+
    \n+
    455 BlockVector (size_type _n, S _capacity)
    \n+
    456 {
    \n+
    457 static_assert(std::numeric_limits<S>::is_integer,
    \n+
    458 "capacity must be an unsigned integral type (be aware, that this constructor does not set the default value!)" );
    \n+
    459 if((size_type)_capacity > _n)
    \n+
    460 storage_.reserve(_capacity);
    \n+
    461 storage_.resize(_n);
    \n+
    462 syncBaseArray();
    \n+
    463 }
    \n+
    \n+
    464
    \n+
    465
    \n+
    \n+\n+
    476 {
    \n+
    477 [[maybe_unused]] const auto &guard =
    \n+
    478 Imp::makeScopeGuard([this]{ syncBaseArray(); });
    \n+
    479 storage_.reserve(capacity);
    \n+
    480 }
    \n+
    \n+
    481
    \n+
    \n+\n+
    489 {
    \n+
    490 return storage_.capacity();
    \n+
    491 }
    \n+
    \n+
    492
    \n+
    \n+
    503 void resize(size_type size)
    \n+
    504 {
    \n+
    505 [[maybe_unused]] const auto &guard =
    \n+
    506 Imp::makeScopeGuard([this]{ syncBaseArray(); });
    \n+
    507 storage_.resize(size);
    \n+
    508 }
    \n+
    \n+
    509
    \n+
    \n+\n+
    512 noexcept(noexcept(std::declval<BlockVector>().storage_ = a.storage_))
    \n+
    513 {
    \n+
    514 storage_ = a.storage_;
    \n+
    515 syncBaseArray();
    \n+
    516 }
    \n+
    \n+
    517
    \n+
    \n+\n+
    520 noexcept(noexcept(std::declval<BlockVector>().swap(a)))
    \n+
    521 {
    \n+
    522 swap(a);
    \n+
    523 }
    \n+
    \n+
    524
    \n+
    \n+\n+
    527 noexcept(noexcept(std::declval<BlockVector>().storage_ = a.storage_))
    \n+
    528 {
    \n+
    529 [[maybe_unused]] const auto &guard =
    \n+
    530 Imp::makeScopeGuard([this]{ syncBaseArray(); });
    \n+
    531 storage_ = a.storage_;
    \n+
    532 return *this;
    \n+
    533 }
    \n+
    \n+
    534
    \n+
    \n+\n+
    537 noexcept(noexcept(std::declval<BlockVector>().swap(a)))
    \n+
    538 {
    \n+
    539 swap(a);
    \n+
    540 return *this;
    \n+
    541 }
    \n+
    \n+
    542
    \n+
    \n+
    544 void swap(BlockVector &other)
    \n+
    545 noexcept(noexcept(
    \n+
    546 std::declval<BlockVector&>().storage_.swap(other.storage_)))
    \n+
    547 {
    \n+
    548 [[maybe_unused]] const auto &guard = Imp::makeScopeGuard([&]{
    \n+
    549 syncBaseArray();
    \n+
    550 other.syncBaseArray();
    \n+
    551 });
    \n+
    552 storage_.swap(other.storage_);
    \n+
    553 }
    \n+
    \n+
    554
    \n+
    \n+\n+
    557 {
    \n+
    558 // forward to operator= in base class
    \n+
    559 (static_cast<Imp::block_vector_unmanaged<B,A>&>(*this)) = k;
    \n+
    560 return *this;
    \n+
    561 }
    \n+
    \n+
    562
    \n+
    563 private:
    \n+
    564 void syncBaseArray() noexcept
    \n+
    565 {
    \n+
    566 this->p = storage_.data();
    \n+
    567 this->n = storage_.size();
    \n+
    568 }
    \n+
    569
    \n+
    570 std::vector<B, A> storage_;
    \n+
    571 };
    \n+
    \n+
    572
    \n+
    578 template<class B, class A>
    \n+
    \n+
    579 struct FieldTraits< BlockVector<B, A> >
    \n+
    580 {
    \n+
    581 typedef typename FieldTraits<B>::field_type field_type;
    \n+
    582 typedef typename FieldTraits<B>::real_type real_type;
    \n+
    583 };
    \n+
    \n+
    589 template<class K, class A>
    \n+
    \n+
    590 std::ostream& operator<< (std::ostream& s, const BlockVector<K, A>& v)
    \n+
    591 {
    \n+
    592 typedef typename BlockVector<K, A>::size_type size_type;
    \n+
    593
    \n+
    594 for (size_type i=0; i<v.size(); i++)
    \n+
    595 s << v[i] << std::endl;
    \n+
    596
    \n+
    597 return s;
    \n+
    598 }
    \n+
    \n+
    599
    \n+
    601namespace Imp {
    \n+
    602
    \n+
    621#ifndef DOXYGEN
    \n+
    622 template<class B, class A>
    \n+
    623#else
    \n+
    624 template<class B, class A=std::allocator<B> >
    \n+
    625#endif
    \n+
    626 class BlockVectorWindow : public Imp::block_vector_unmanaged<B,A>
    \n+
    627 {
    \n+
    628 public:
    \n+
    629
    \n+
    630 //===== type definitions and constants
    \n+
    631
    \n+
    633 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n+
    634
    \n+
    636 typedef B block_type;
    \n+
    637
    \n+
    639 typedef A allocator_type;
    \n+
    640
    \n+
    642 typedef typename A::size_type size_type;
    \n+
    643
    \n+
    645 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n+
    646 static constexpr unsigned int blocklevel = blockLevel<B>()+1;
    \n+
    647
    \n+
    649 typedef typename Imp::block_vector_unmanaged<B,A>::Iterator Iterator;
    \n+
    650
    \n+
    652 typedef typename Imp::block_vector_unmanaged<B,A>::ConstIterator ConstIterator;
    \n+
    653
    \n+
    654
    \n+
    655 //===== constructors and such
    \n+
    657 BlockVectorWindow () : Imp::block_vector_unmanaged<B,A>()
    \n+
    658 { }
    \n+
    659
    \n+
    661 BlockVectorWindow (B* _p, size_type _n)
    \n+
    662 {
    \n+
    663 this->n = _n;
    \n+
    664 this->p = _p;
    \n+
    665 }
    \n+
    666
    \n+
    668 BlockVectorWindow (const BlockVectorWindow& a)
    \n+
    669 {
    \n+
    670 this->n = a.n;
    \n+
    671 this->p = a.p;
    \n+
    672 }
    \n+
    673
    \n+
    675 BlockVectorWindow& operator= (const BlockVectorWindow& a)
    \n+
    676 {
    \n+
    677 // check correct size
    \n+
    678#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    679 if (this->n!=a.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n+
    680#endif
    \n+
    681
    \n+
    682 if (&a!=this) // check if this and a are different objects
    \n+
    683 {
    \n+
    684 // copy data
    \n+
    685 for (size_type i=0; i<this->n; i++) this->p[i]=a.p[i];
    \n+
    686 }
    \n+
    687 return *this;
    \n+
    688 }
    \n+
    689
    \n+
    691 BlockVectorWindow& operator= (const field_type& k)
    \n+
    692 {
    \n+
    693 (static_cast<Imp::block_vector_unmanaged<B,A>&>(*this)) = k;
    \n+
    694 return *this;
    \n+
    695 }
    \n+
    696
    \n+
    698 operator BlockVector<B, A>() const {
    \n+
    699 auto bv = BlockVector<B, A>(this->n);
    \n+
    700
    \n+
    701 std::copy(this->begin(), this->end(), bv.begin());
    \n+
    702
    \n+
    703 return bv;
    \n+
    704 }
    \n+
    705
    \n+
    706 //===== window manipulation methods
    \n+
    707
    \n+
    709 void set (size_type _n, B* _p)
    \n+
    710 {
    \n+
    711 this->n = _n;
    \n+
    712 this->p = _p;
    \n+
    713 }
    \n+
    714
    \n+
    716 void setsize (size_type _n)
    \n+
    717 {
    \n+
    718 this->n = _n;
    \n+
    719 }
    \n+
    720
    \n+
    722 void setptr (B* _p)
    \n+
    723 {
    \n+
    724 this->p = _p;
    \n+
    725 }
    \n+
    726
    \n+
    728 B* getptr ()
    \n+
    729 {
    \n+
    730 return this->p;
    \n+
    731 }
    \n+
    732
    \n+
    734 size_type getsize () const
    \n+
    735 {
    \n+
    736 return this->n;
    \n+
    737 }
    \n+
    738 };
    \n+
    739
    \n+
    740
    \n+
    741
    \n+
    752 template<class B, class A=std::allocator<B> >
    \n+
    753 class compressed_block_vector_unmanaged : public compressed_base_array_unmanaged<B,A>
    \n+
    754 {
    \n+
    755 public:
    \n+
    756
    \n+
    757 //===== type definitions and constants
    \n+
    758
    \n+
    760 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n+
    761
    \n+
    763 typedef B block_type;
    \n+
    764
    \n+
    766 typedef A allocator_type;
    \n+
    767
    \n+
    769 typedef typename compressed_base_array_unmanaged<B,A>::iterator Iterator;
    \n+
    770
    \n+
    772 typedef typename compressed_base_array_unmanaged<B,A>::const_iterator ConstIterator;
    \n+
    773
    \n+
    775 typedef typename A::size_type size_type;
    \n+
    776
    \n+
    777 //===== assignment from scalar
    \n+
    778
    \n+
    779 compressed_block_vector_unmanaged& operator= (const field_type& k)
    \n+
    780 {
    \n+
    781 for (size_type i=0; i<this->n; i++)
    \n+
    782 (this->p)[i] = k;
    \n+
    783 return *this;
    \n+
    784 }
    \n+
    785
    \n+
    786
    \n+
    787 //===== vector space arithmetic
    \n+
    788
    \n+
    790 template<class V>
    \n+
    791 compressed_block_vector_unmanaged& operator+= (const V& y)
    \n+
    792 {
    \n+
    793#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    794 if (!includesindexset(y)) DUNE_THROW(ISTLError,"index set mismatch");
    \n+
    795#endif
    \n+
    796 for (size_type i=0; i<y.n; ++i) this->operator[](y.j[i]) += y.p[i];
    \n+
    797 return *this;
    \n+
    798 }
    \n+
    799
    \n+
    801 template<class V>
    \n+
    802 compressed_block_vector_unmanaged& operator-= (const V& y)
    \n+
    803 {
    \n+
    804#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    805 if (!includesindexset(y)) DUNE_THROW(ISTLError,"index set mismatch");
    \n+
    806#endif
    \n+
    807 for (size_type i=0; i<y.n; ++i) this->operator[](y.j[i]) -= y.p[i];
    \n+
    808 return *this;
    \n+
    809 }
    \n+
    810
    \n+
    812 template<class V>
    \n+
    813 compressed_block_vector_unmanaged& axpy (const field_type& a, const V& y)
    \n+
    814 {
    \n+
    815#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    816 if (!includesindexset(y)) DUNE_THROW(ISTLError,"index set mismatch");
    \n+
    817#endif
    \n+
    818 for (size_type i=0; i<y.n; ++i)
    \n+
    819 Impl::asVector((*this)[y.j[i]]).axpy(a,Impl::asVector(y.p[i]));
    \n+
    820 return *this;
    \n+
    821 }
    \n+
    822
    \n+
    824 compressed_block_vector_unmanaged& operator*= (const field_type& k)
    \n+
    825 {
    \n+
    826 for (size_type i=0; i<this->n; ++i) (this->p)[i] *= k;
    \n+
    827 return *this;
    \n+
    828 }
    \n+
    829
    \n+
    831 compressed_block_vector_unmanaged& operator/= (const field_type& k)
    \n+
    832 {
    \n+
    833 for (size_type i=0; i<this->n; ++i) (this->p)[i] /= k;
    \n+
    834 return *this;
    \n+
    835 }
    \n+
    836
    \n+
    837
    \n+
    838 //===== Euclidean scalar product
    \n+
    839
    \n+
    841 field_type operator* (const compressed_block_vector_unmanaged& y) const
    \n+
    842 {
    \n+
    843#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    844 if (!includesindexset(y) || !y.includesindexset(*this) )
    \n+
    845 DUNE_THROW(ISTLError,"index set mismatch");
    \n+
    846#endif
    \n+
    847 field_type sum=0;
    \n+
    848 for (size_type i=0; i<this->n; ++i)
    \n+
    849 sum += (this->p)[i] * y[(this->j)[i]];
    \n+
    850 return sum;
    \n+
    851 }
    \n+
    852
    \n+
    853
    \n+
    854 //===== norms
    \n+
    855
    \n+
    857 typename FieldTraits<field_type>::real_type one_norm () const
    \n+
    858 {
    \n+
    859 typename FieldTraits<field_type>::real_type sum=0;
    \n+
    860 for (size_type i=0; i<this->n; ++i) sum += (this->p)[i].one_norm();
    \n+
    861 return sum;
    \n+
    862 }
    \n+
    863
    \n+
    865 typename FieldTraits<field_type>::real_type one_norm_real () const
    \n+
    866 {
    \n+
    867 typename FieldTraits<field_type>::real_type sum=0;
    \n+
    868 for (size_type i=0; i<this->n; ++i) sum += (this->p)[i].one_norm_real();
    \n+
    869 return sum;
    \n+
    870 }
    \n+
    871
    \n+
    873 typename FieldTraits<field_type>::real_type two_norm () const
    \n+
    874 {
    \n+
    875 using std::sqrt;
    \n+
    876 typename FieldTraits<field_type>::real_type sum=0;
    \n+
    877 for (size_type i=0; i<this->n; ++i) sum += (this->p)[i].two_norm2();
    \n+
    878 return sqrt(sum);
    \n+
    879 }
    \n+
    880
    \n+
    882 typename FieldTraits<field_type>::real_type two_norm2 () const
    \n+
    883 {
    \n+
    884 typename FieldTraits<field_type>::real_type sum=0;
    \n+
    885 for (size_type i=0; i<this->n; ++i) sum += (this->p)[i].two_norm2();
    \n+
    886 return sum;
    \n+
    887 }
    \n+
    888
    \n+
    890 template <typename ft = field_type,
    \n+
    891 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n+
    892 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n+
    893 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    894 using std::max;
    \n+
    895
    \n+
    896 real_type norm = 0;
    \n+
    897 for (auto const &x : *this) {
    \n+
    898 real_type const a = x.infinity_norm();
    \n+
    899 norm = max(a, norm);
    \n+
    900 }
    \n+
    901 return norm;
    \n+
    902 }
    \n+
    903
    \n+
    905 template <typename ft = field_type,
    \n+
    906 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n+
    907 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n+
    908 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    909 using std::max;
    \n+
    910
    \n+
    911 real_type norm = 0;
    \n+
    912 for (auto const &x : *this) {
    \n+
    913 real_type const a = x.infinity_norm_real();
    \n+
    914 norm = max(a, norm);
    \n+
    915 }
    \n+
    916 return norm;
    \n+
    917 }
    \n+
    918
    \n+
    920 template <typename ft = field_type,
    \n+
    921 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n+
    922 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n+
    923 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    924 using std::max;
    \n+
    925
    \n+
    926 real_type norm = 0;
    \n+
    927 real_type isNaN = 1;
    \n+
    928 for (auto const &x : *this) {
    \n+
    929 real_type const a = x.infinity_norm();
    \n+
    930 norm = max(a, norm);
    \n+
    931 isNaN += a;
    \n+
    932 }
    \n+
    933 return norm * (isNaN / isNaN);
    \n+
    934 }
    \n+
    935
    \n+
    937 template <typename ft = field_type,
    \n+
    938 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n+
    939 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n+
    940 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    941 using std::max;
    \n+
    942
    \n+
    943 real_type norm = 0;
    \n+
    944 real_type isNaN = 1;
    \n+
    945 for (auto const &x : *this) {
    \n+
    946 real_type const a = x.infinity_norm_real();
    \n+
    947 norm = max(a, norm);
    \n+
    948 isNaN += a;
    \n+
    949 }
    \n+
    950 return norm * (isNaN / isNaN);
    \n+
    951 }
    \n+
    952
    \n+
    953 //===== sizes
    \n+
    954
    \n+
    956 size_type N () const
    \n+
    957 {
    \n+
    958 return this->n;
    \n+
    959 }
    \n+
    960
    \n+
    962 size_type dim () const
    \n+
    963 {
    \n+
    964 size_type d=0;
    \n+
    965 for (size_type i=0; i<this->n; i++)
    \n+
    966 d += (this->p)[i].dim();
    \n+
    967 return d;
    \n+
    968 }
    \n+
    969
    \n+
    970 protected:
    \n+
    972 compressed_block_vector_unmanaged () : compressed_base_array_unmanaged<B,A>()
    \n+
    973 { }
    \n+
    974
    \n+
    976 template<class V>
    \n+
    977 bool includesindexset (const V& y)
    \n+
    978 {
    \n+
    979 typename V::ConstIterator e=this->end();
    \n+
    980 for (size_type i=0; i<y.n; i++)
    \n+
    981 if (this->find(y.j[i])==e)
    \n+
    982 return false;
    \n+
    983 return true;
    \n+
    984 }
    \n+
    985 };
    \n+
    986
    \n+
    987
    \n+
    1006 template<class B, class A=std::allocator<B> >
    \n+
    1007 class CompressedBlockVectorWindow : public compressed_block_vector_unmanaged<B,A>
    \n+
    1008 {
    \n+
    1009 public:
    \n+
    1010
    \n+
    1011 //===== type definitions and constants
    \n+
    1012
    \n+
    1014 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n+
    1015
    \n+
    1017 typedef B block_type;
    \n+
    1018
    \n+
    1020 typedef A allocator_type;
    \n+
    1021
    \n+
    1023 typedef typename A::size_type size_type;
    \n+
    1024
    \n+
    1026 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n+
    1027 static constexpr unsigned int blocklevel = blockLevel<B>()+1;
    \n+
    1028
    \n+
    1030 typedef typename compressed_block_vector_unmanaged<B,A>::Iterator Iterator;
    \n+
    1031
    \n+
    1033 typedef typename compressed_block_vector_unmanaged<B,A>::ConstIterator ConstIterator;
    \n+
    1034
    \n+
    1035
    \n+
    1036 //===== constructors and such
    \n+
    1038 CompressedBlockVectorWindow () : compressed_block_vector_unmanaged<B,A>()
    \n+
    1039 { }
    \n+
    1040
    \n+
    1042 CompressedBlockVectorWindow (B* _p, size_type* _j, size_type _n)
    \n+
    1043 {
    \n+
    1044 this->n = _n;
    \n+
    1045 this->p = _p;
    \n+
    1046 this->j = _j;
    \n+
    1047 }
    \n+
    1048
    \n+
    1050 CompressedBlockVectorWindow (const CompressedBlockVectorWindow& a)
    \n+
    1051 {
    \n+
    1052 this->n = a.n;
    \n+
    1053 this->p = a.p;
    \n+
    1054 this->j = a.j;
    \n+
    1055 }
    \n+
    1056
    \n+
    1058 CompressedBlockVectorWindow& operator= (const CompressedBlockVectorWindow& a)
    \n+
    1059 {
    \n+
    1060 // check correct size
    \n+
    1061#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1062 if (this->n!=a.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n+
    1063#endif
    \n+
    1064
    \n+
    1065 if (&a!=this) // check if this and a are different objects
    \n+
    1066 {
    \n+
    1067 // copy data
    \n+
    1068 for (size_type i=0; i<this->n; i++) this->p[i]=a.p[i];
    \n+
    1069 for (size_type i=0; i<this->n; i++) this->j[i]=a.j[i];
    \n+
    1070 }
    \n+
    1071 return *this;
    \n+
    1072 }
    \n+
    1073
    \n+
    1075 CompressedBlockVectorWindow& operator= (const field_type& k)
    \n+
    1076 {
    \n+
    1077 (static_cast<compressed_block_vector_unmanaged<B,A>&>(*this)) = k;
    \n+
    1078 return *this;
    \n+
    1079 }
    \n+
    1080
    \n+
    1081
    \n+
    1082 //===== window manipulation methods
    \n+
    1083
    \n+
    1085 void set (size_type _n, B* _p, size_type* _j)
    \n+
    1086 {
    \n+
    1087 this->n = _n;
    \n+
    1088 this->p = _p;
    \n+
    1089 this->j = _j;
    \n+
    1090 }
    \n+
    1091
    \n+
    1093 void setsize (size_type _n)
    \n+
    1094 {
    \n+
    1095 this->n = _n;
    \n+
    1096 }
    \n+
    1097
    \n+
    1099 void setptr (B* _p)
    \n+
    1100 {
    \n+
    1101 this->p = _p;
    \n+
    1102 }
    \n+
    1103
    \n+
    1105 void setindexptr (size_type* _j)
    \n+
    1106 {
    \n+
    1107 this->j = _j;
    \n+
    1108 }
    \n+
    1109
    \n+
    1111 B* getptr ()
    \n+
    1112 {
    \n+
    1113 return this->p;
    \n+
    1114 }
    \n+
    1115
    \n+
    1117 size_type* getindexptr ()
    \n+
    1118 {
    \n+
    1119 return this->j;
    \n+
    1120 }
    \n+
    1121
    \n+
    1123 const B* getptr () const
    \n+
    1124 {
    \n+
    1125 return this->p;
    \n+
    1126 }
    \n+
    1127
    \n+
    1129 const size_type* getindexptr () const
    \n+
    1130 {
    \n+
    1131 return this->j;
    \n+
    1132 }
    \n+
    1134 size_type getsize () const
    \n+
    1135 {
    \n+
    1136 return this->n;
    \n+
    1137 }
    \n+
    1138 };
    \n+
    1139
    \n+
    1140} // end namespace 'Imp'
    \n+
    1141
    \n+
    1142
    \n+
    1144 template<typename B, typename A>
    \n+
    1145 struct AutonomousValueType<Imp::BlockVectorWindow<B,A>>
    \n+
    1146 {
    \n+
    1147 using type = BlockVector<B, A>;
    \n+
    1148 };
    \n+
    1149
    \n+
    1150
    \n+
    1151} // end namespace 'Dune'
    \n+
    1152
    \n+
    1153#endif
    \n+\n+
    Helper functions for determining the vector/matrix block level.
    \n+
    Implements several basic array containers.
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n-
    Tag idnetifying the visited property of a vertex.
    Definition properties.hh:29
    \n-
    A property map that extracts one property out of a bundle using operator[]()
    Definition properties.hh:43
    \n+
    std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)
    Send BlockVector to an output stream.
    Definition bvector.hh:590
    \n+
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n+
    BlockVector()
    makes empty vector
    Definition bvector.hh:425
    \n+
    void reserve(size_type capacity)
    Reserve space.
    Definition bvector.hh:475
    \n+
    BlockVector(BlockVector &&a) noexcept(noexcept(std::declval< BlockVector >().swap(a)))
    move constructor
    Definition bvector.hh:519
    \n+
    BlockVector(size_type _n)
    make vector with _n components
    Definition bvector.hh:431
    \n+
    void resize(size_type size)
    Resize the vector.
    Definition bvector.hh:503
    \n+
    Imp::block_vector_unmanaged< B, A >::Iterator Iterator
    make iterators available as types
    Definition bvector.hh:417
    \n+
    static constexpr unsigned int blocklevel
    increment block level counter
    Definition bvector.hh:414
    \n+
    BlockVector(const BlockVector &a) noexcept(noexcept(std::declval< BlockVector >().storage_=a.storage_))
    copy constructor
    Definition bvector.hh:511
    \n+
    A allocator_type
    export the allocator type
    Definition bvector.hh:407
    \n+
    BlockVector & operator=(const BlockVector &a) noexcept(noexcept(std::declval< BlockVector >().storage_=a.storage_))
    assignment
    Definition bvector.hh:526
    \n+
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bvector.hh:401
    \n+
    A::size_type size_type
    The type for the index access.
    Definition bvector.hh:410
    \n+
    BlockVector(std::initializer_list< B > const &l)
    Construct from a std::initializer_list.
    Definition bvector.hh:437
    \n+
    size_type capacity() const
    Get the capacity of the vector.
    Definition bvector.hh:488
    \n+
    BlockVector(size_type _n, S _capacity)
    Make vector with _n components but preallocating capacity components.
    Definition bvector.hh:455
    \n+
    B block_type
    export the type representing the components
    Definition bvector.hh:404
    \n+
    void swap(BlockVector &other) noexcept(noexcept(std::declval< BlockVector & >().storage_.swap(other.storage_)))
    swap operation
    Definition bvector.hh:544
    \n+
    Imp::block_vector_unmanaged< B, A >::ConstIterator ConstIterator
    make iterators available as types
    Definition bvector.hh:420
    \n+
    FieldTraits< B >::real_type real_type
    Definition bvector.hh:582
    \n+
    FieldTraits< B >::field_type field_type
    Definition bvector.hh:581
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,110 +1,1010 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-properties.hh\n+bvector.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_AMG_PROPERTIES_HH\n-6#define DUNE_ISTL_AMG_PROPERTIES_HH\n-7\n-8#include \n-9\n-10namespace _\bD_\bu_\bn_\be\n-11{\n-12\n-13 namespace Amg\n-14 {\n-_\b2_\b8 struct _\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n-29 {};\n+5\n+6#ifndef DUNE_ISTL_BVECTOR_HH\n+7#define DUNE_ISTL_BVECTOR_HH\n+8\n+9#include \n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15#include \n+16#include \n+17\n+18#include \n+19#include \n+20#include \n+21#include \n+22#include \n+23#include \n+24#include \n+25\n+26#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+27\n+28#include \"_\bb_\ba_\bs_\be_\ba_\br_\br_\ba_\by_\b._\bh_\bh\"\n+29#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n 30\n-31\n-38 template\n-_\b4_\b0 class _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-41 : public RAPropertyMapHelper >\n-43 {\n-44 public:\n-_\b4_\b6 typedef C _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-47\n-_\b4_\b9 typedef R _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+38namespace _\bD_\bu_\bn_\be {\n+39\n+41namespace Imp {\n+42\n+48 template \n+49 class BlockTraitsImp;\n 50\n-_\b5_\b2 typedef K _\bK_\be_\by;\n-53\n-_\b5_\b7 typedef LvaluePropertyMapTag _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n-58\n-59 enum {\n-61 _\bi_\bn_\bd_\be_\bx = i\n-_\b6_\b2 };\n-63\n-_\b6_\b9 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bK_\be_\by& key) const\n-70 {\n-71 return container_[key][_\bi_\bn_\bd_\be_\bx];\n-72 }\n-73\n-_\b7_\b8 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& container)\n-79 : container_(&container)\n-80 {}\n-81\n-_\b8_\b3 _\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp()\n-84 : container_(0)\n-85 {}\n-86\n-87 private:\n-89 _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br* container_;\n-90 };\n-91 }\n-92}\n+51 template \n+52 class BlockTraitsImp\n+53 {\n+54 public:\n+55 using field_type = B;\n+56 };\n+57\n+58 template \n+59 class BlockTraitsImp\n+60 {\n+61 public:\n+62 using field_type = typename B::field_type;\n+63 };\n+64\n+67 template \n+68 using BlockTraits = BlockTraitsImp::value>;\n+69\n+83 template >\n+84 class block_vector_unmanaged : public base_array_unmanaged\n+85 {\n+86 public:\n+87\n+88 //===== type definitions and constants\n+89 using field_type = typename Imp::BlockTraits::field_type;\n+90\n+92 typedef B block_type;\n 93\n-94#endif\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-Reference operator[](const Key &key) const\n-Get the property for a key.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:69\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-RandomAccessBundledPropertyMap()\n-The default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:83\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-R Reference\n-The reference type of the container.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:49\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-RandomAccessBundledPropertyMap(Container &container)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:78\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bK_\be_\by\n-K Key\n-The key of the property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-LvaluePropertyMapTag Category\n-The category of the property map.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:57\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-C Container\n-The container that holds the properties.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bi_\bn_\bd_\be_\bx\n-@ index\n-The index of the property in the bundle.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:61\n+95 typedef A allocator_type;\n+96\n+98 typedef typename A::size_type size_type;\n+99\n+101 typedef typename base_array_unmanaged::iterator Iterator;\n+102\n+104 typedef typename base_array_unmanaged::const_iterator ConstIterator;\n+105\n+107 typedef B value_type;\n+108\n+110 typedef B& reference;\n+111\n+113 typedef const B& const_reference;\n+114\n+115 //===== assignment from scalar\n+117\n+118 block_vector_unmanaged& operator= (const field_type& k)\n+119 {\n+120 for (size_type i=0; in; i++)\n+121 (*this)[i] = k;\n+122 return *this;\n+123 }\n+124\n+125 //===== vector space arithmetic\n+127 block_vector_unmanaged& operator+= (const block_vector_unmanaged& y)\n+128 {\n+129#ifdef DUNE_ISTL_WITH_CHECKING\n+130 if (this->n!=y.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n+131#endif\n+132 for (size_type i=0; in; ++i) (*this)[i] += y[i];\n+133 return *this;\n+134 }\n+135\n+137 block_vector_unmanaged& operator-= (const block_vector_unmanaged& y)\n+138 {\n+139#ifdef DUNE_ISTL_WITH_CHECKING\n+140 if (this->n!=y.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n+141#endif\n+142 for (size_type i=0; in; ++i) (*this)[i] -= y[i];\n+143 return *this;\n+144 }\n+145\n+147 block_vector_unmanaged& operator*= (const field_type& k)\n+148 {\n+149 for (size_type i=0; in; ++i) (*this)[i] *= k;\n+150 return *this;\n+151 }\n+152\n+154 block_vector_unmanaged& operator/= (const field_type& k)\n+155 {\n+156 for (size_type i=0; in; ++i) (*this)[i] /= k;\n+157 return *this;\n+158 }\n+159\n+161 block_vector_unmanaged& axpy (const field_type& a, const\n+block_vector_unmanaged& y)\n+162 {\n+163#ifdef DUNE_ISTL_WITH_CHECKING\n+164 if (this->n!=y.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n+165#endif\n+166 for (size_type i=0; in; ++i)\n+167 Impl::asVector((*this)[i]).axpy(a,Impl::asVector(y[i]));\n+168\n+169 return *this;\n+170 }\n+171\n+172\n+180 template\n+181 auto operator* (const block_vector_unmanaged& y) const\n+182 {\n+183 typedef typename PromotionTraits::\n+field_type>::PromotedType PromotedType;\n+184 PromotedType sum(0);\n+185#ifdef DUNE_ISTL_WITH_CHECKING\n+186 if (this->n!=y.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n+187#endif\n+188 for (size_type i=0; in; ++i) {\n+189 sum += PromotedType(((*this)[i])*y[i]);\n+190 }\n+191 return sum;\n+192 }\n+193\n+201 template\n+202 auto dot(const block_vector_unmanaged& y) const\n+203 {\n+204 typedef typename PromotionTraits::\n+field_type>::PromotedType PromotedType;\n+205 PromotedType sum(0);\n+206#ifdef DUNE_ISTL_WITH_CHECKING\n+207 if (this->n!=y.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n+208#endif\n+209\n+210 for (size_type i=0; in; ++i)\n+211 sum += Impl::asVector((*this)[i]).dot(Impl::asVector(y[i]));\n+212\n+213 return sum;\n+214 }\n+215\n+216 //===== norms\n+217\n+219 typename FieldTraits::real_type one_norm () const\n+220 {\n+221 typename FieldTraits::real_type sum=0;\n+222 for (size_type i=0; in; ++i)\n+223 sum += Impl::asVector((*this)[i]).one_norm();\n+224 return sum;\n+225 }\n+226\n+228 typename FieldTraits::real_type one_norm_real () const\n+229 {\n+230 typename FieldTraits::real_type sum=0;\n+231 for (size_type i=0; in; ++i)\n+232 sum += Impl::asVector((*this)[i]).one_norm_real();\n+233 return sum;\n+234 }\n+235\n+237 typename FieldTraits::real_type two_norm () const\n+238 {\n+239 using std::sqrt;\n+240 return sqrt(two_norm2());\n+241 }\n+242\n+244 typename FieldTraits::real_type two_norm2 () const\n+245 {\n+246 typename FieldTraits::real_type sum=0;\n+247 for (size_type i=0; in; ++i)\n+248 sum += Impl::asVector((*this)[i]).two_norm2();\n+249 return sum;\n+250 }\n+251\n+253 template ::value, int>::type = 0>\n+255 typename FieldTraits::real_type infinity_norm() const {\n+256 using real_type = typename FieldTraits::real_type;\n+257 using std::max;\n+258\n+259 real_type norm = 0;\n+260 for (auto const &xi : *this) {\n+261 real_type const a = Impl::asVector(xi).infinity_norm();\n+262 norm = max(a, norm);\n+263 }\n+264 return norm;\n+265 }\n+266\n+268 template ::value, int>::type = 0>\n+270 typename FieldTraits::real_type infinity_norm_real() const {\n+271 using real_type = typename FieldTraits::real_type;\n+272 using std::max;\n+273\n+274 real_type norm = 0;\n+275 for (auto const &xi : *this) {\n+276 real_type const a = Impl::asVector(xi).infinity_norm_real();\n+277 norm = max(a, norm);\n+278 }\n+279 return norm;\n+280 }\n+281\n+283 template ::value, int>::type = 0>\n+285 typename FieldTraits::real_type infinity_norm() const {\n+286 using real_type = typename FieldTraits::real_type;\n+287 using std::max;\n+288 using std::abs;\n+289\n+290 real_type norm = 0;\n+291 real_type isNaN = 1;\n+292\n+293 for (auto const &xi : *this) {\n+294 real_type const a = Impl::asVector(xi).infinity_norm();\n+295 norm = max(a, norm);\n+296 isNaN += a;\n+297 }\n+298 return norm * (isNaN / isNaN);\n+299 }\n+300\n+302 template ::value, int>::type = 0>\n+304 typename FieldTraits::real_type infinity_norm_real() const {\n+305 using real_type = typename FieldTraits::real_type;\n+306 using std::max;\n+307\n+308 real_type norm = 0;\n+309 real_type isNaN = 1;\n+310\n+311 for (auto const &xi : *this) {\n+312 real_type const a = Impl::asVector(xi).infinity_norm_real();\n+313 norm = max(a, norm);\n+314 isNaN += a;\n+315 }\n+316\n+317 return norm * (isNaN / isNaN);\n+318 }\n+319\n+320 //===== sizes\n+321\n+323 size_type N () const\n+324 {\n+325 return this->n;\n+326 }\n+327\n+329 size_type dim () const\n+330 {\n+331 size_type d=0;\n+332\n+333 for (size_type i=0; in; i++)\n+334 d += Impl::asVector((*this)[i]).dim();\n+335\n+336 return d;\n+337 }\n+338\n+339 protected:\n+341 block_vector_unmanaged () : base_array_unmanaged()\n+342 { }\n+343 };\n+344\n+346\n+351 template\n+352 class ScopeGuard {\n+353 F cleanupFunc_;\n+354 public:\n+355 ScopeGuard(F cleanupFunc) : cleanupFunc_(_\bs_\bt_\bd::move(cleanupFunc)) {}\n+356 ScopeGuard(const ScopeGuard &) = delete;\n+357 ScopeGuard(ScopeGuard &&) = delete;\n+358 ScopeGuard &operator=(ScopeGuard) = delete;\n+359 ~ScopeGuard() { cleanupFunc_(); }\n+360 };\n+361\n+363\n+372 template\n+373 ScopeGuard makeScopeGuard(F cleanupFunc)\n+374 {\n+375 return { std::move(cleanupFunc) };\n+376 }\n+377\n+378} // end namespace Imp\n+393 template >\n+_\b3_\b9_\b4 class _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br : public Imp::block_vector_unmanaged\n+395 {\n+396 public:\n+397\n+398 //===== type definitions and constants\n+399\n+_\b4_\b0_\b1 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n+402\n+_\b4_\b0_\b4 typedef B _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+405\n+_\b4_\b0_\b7 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n+408\n+_\b4_\b1_\b0 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+411\n+413 [[deprecated(\"Use free function blockLevel(). Will be removed after\n+2.8.\")]]\n+_\b4_\b1_\b4 static constexpr unsigned int _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+1;\n+415\n+_\b4_\b1_\b7 typedef typename Imp::block_vector_unmanaged::Iterator _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+418\n+_\b4_\b2_\b0 typedef typename Imp::block_vector_unmanaged::ConstIterator\n+_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+421\n+422 //===== constructors and such\n+423\n+_\b4_\b2_\b5 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br ()\n+426 {\n+427 syncBaseArray();\n+428 }\n+429\n+_\b4_\b3_\b1 explicit _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n) : storage_(_n)\n+432 {\n+433 syncBaseArray();\n+434 }\n+435\n+_\b4_\b3_\b7 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (std::initializer_list const &l) : storage_(l)\n+438 {\n+439 syncBaseArray();\n+440 }\n+441\n+442\n+454 template\n+_\b4_\b5_\b5 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n, S _capacity)\n+456 {\n+457 static_assert(std::numeric_limits::is_integer,\n+458 \"capacity must be an unsigned integral type (be aware, that this\n+constructor does not set the default value!)\" );\n+459 if((_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be)_capacity > _n)\n+460 storage_.reserve(_capacity);\n+461 storage_.resize(_n);\n+462 syncBaseArray();\n+463 }\n+464\n+465\n+_\b4_\b7_\b5 void _\br_\be_\bs_\be_\br_\bv_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\ba_\bp_\ba_\bc_\bi_\bt_\by)\n+476 {\n+477 [[maybe_unused]] const auto &guard =\n+478 Imp::makeScopeGuard([this]{ syncBaseArray(); });\n+479 storage_.reserve(_\bc_\ba_\bp_\ba_\bc_\bi_\bt_\by);\n+480 }\n+481\n+_\b4_\b8_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\ba_\bp_\ba_\bc_\bi_\bt_\by() const\n+489 {\n+490 return storage_.capacity();\n+491 }\n+492\n+_\b5_\b0_\b3 void _\br_\be_\bs_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size)\n+504 {\n+505 [[maybe_unused]] const auto &guard =\n+506 Imp::makeScopeGuard([this]{ syncBaseArray(); });\n+507 storage_.resize(size);\n+508 }\n+509\n+_\b5_\b1_\b1 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br(const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br &a)\n+512 noexcept(noexcept(std::declval().storage_ = a.storage_))\n+513 {\n+514 storage_ = a.storage_;\n+515 syncBaseArray();\n+516 }\n+517\n+_\b5_\b1_\b9 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br(_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br &&a)\n+520 noexcept(noexcept(std::declval().swap(a)))\n+521 {\n+522 _\bs_\bw_\ba_\bp(a);\n+523 }\n+524\n+_\b5_\b2_\b6 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& a)\n+527 noexcept(noexcept(std::declval().storage_ = a.storage_))\n+528 {\n+529 [[maybe_unused]] const auto &guard =\n+530 Imp::makeScopeGuard([this]{ syncBaseArray(); });\n+531 storage_ = a.storage_;\n+532 return *this;\n+533 }\n+534\n+_\b5_\b3_\b6 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br&& a)\n+537 noexcept(noexcept(std::declval().swap(a)))\n+538 {\n+539 _\bs_\bw_\ba_\bp(a);\n+540 return *this;\n+541 }\n+542\n+_\b5_\b4_\b4 void _\bs_\bw_\ba_\bp(_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br &other)\n+545 noexcept(noexcept(\n+546 std::declval().storage_.swap(other.storage_)))\n+547 {\n+548 [[maybe_unused]] const auto &guard = Imp::makeScopeGuard([&]{\n+549 syncBaseArray();\n+550 other.syncBaseArray();\n+551 });\n+552 storage_.swap(other.storage_);\n+553 }\n+554\n+_\b5_\b5_\b6 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n+557 {\n+558 // forward to operator= in base class\n+559 (static_cast&>(*this)) = k;\n+560 return *this;\n+561 }\n+562\n+563 private:\n+564 void syncBaseArray() noexcept\n+565 {\n+566 this->p = storage_.data();\n+567 this->n = storage_.size();\n+568 }\n+569\n+570 std::vector storage_;\n+571 };\n+572\n+578 template\n+_\b5_\b7_\b9 struct FieldTraits< _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br >\n+580 {\n+_\b5_\b8_\b1 typedef typename FieldTraits::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b5_\b8_\b2 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+583 };\n+589 template\n+_\b5_\b9_\b0 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<_\b (std::ostream& s, const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bK_\b,_\b _\bA_\b>& v)\n+591 {\n+592 typedef typename _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bK_\b,_\b _\bA_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size_type;\n+593\n+594 for (size_type i=0; i\n+623#else\n+624 template >\n+625#endif\n+626 class BlockVectorWindow : public Imp::block_vector_unmanaged\n+627 {\n+628 public:\n+629\n+630 //===== type definitions and constants\n+631\n+633 using field_type = typename Imp::BlockTraits::field_type;\n+634\n+636 typedef B block_type;\n+637\n+639 typedef A allocator_type;\n+640\n+642 typedef typename A::size_type size_type;\n+643\n+645 [[deprecated(\"Use free function blockLevel(). Will be removed after\n+2.8.\")]]\n+646 static constexpr unsigned int blocklevel = blockLevel()+1;\n+647\n+649 typedef typename Imp::block_vector_unmanaged::Iterator Iterator;\n+650\n+652 typedef typename Imp::block_vector_unmanaged::ConstIterator\n+ConstIterator;\n+653\n+654\n+655 //===== constructors and such\n+657 BlockVectorWindow () : Imp::block_vector_unmanaged()\n+658 { }\n+659\n+661 BlockVectorWindow (B* _p, size_type _n)\n+662 {\n+663 this->n = _n;\n+664 this->p = _p;\n+665 }\n+666\n+668 BlockVectorWindow (const BlockVectorWindow& a)\n+669 {\n+670 this->n = a.n;\n+671 this->p = a.p;\n+672 }\n+673\n+675 BlockVectorWindow& operator= (const BlockVectorWindow& a)\n+676 {\n+677 // check correct size\n+678#ifdef DUNE_ISTL_WITH_CHECKING\n+679 if (this->n!=a.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n+680#endif\n+681\n+682 if (&a!=this) // check if this and a are different objects\n+683 {\n+684 // copy data\n+685 for (size_type i=0; in; i++) this->p[i]=a.p[i];\n+686 }\n+687 return *this;\n+688 }\n+689\n+691 BlockVectorWindow& operator= (const field_type& k)\n+692 {\n+693 (static_cast&>(*this)) = k;\n+694 return *this;\n+695 }\n+696\n+698 operator BlockVector() const {\n+699 auto bv = BlockVector(this->n);\n+700\n+701 std::copy(this->begin(), this->end(), bv.begin());\n+702\n+703 return bv;\n+704 }\n+705\n+706 //===== window manipulation methods\n+707\n+709 void set (size_type _n, B* _p)\n+710 {\n+711 this->n = _n;\n+712 this->p = _p;\n+713 }\n+714\n+716 void setsize (size_type _n)\n+717 {\n+718 this->n = _n;\n+719 }\n+720\n+722 void setptr (B* _p)\n+723 {\n+724 this->p = _p;\n+725 }\n+726\n+728 B* getptr ()\n+729 {\n+730 return this->p;\n+731 }\n+732\n+734 size_type getsize () const\n+735 {\n+736 return this->n;\n+737 }\n+738 };\n+739\n+740\n+741\n+752 template >\n+753 class compressed_block_vector_unmanaged : public\n+compressed_base_array_unmanaged\n+754 {\n+755 public:\n+756\n+757 //===== type definitions and constants\n+758\n+760 using field_type = typename Imp::BlockTraits::field_type;\n+761\n+763 typedef B block_type;\n+764\n+766 typedef A allocator_type;\n+767\n+769 typedef typename compressed_base_array_unmanaged::iterator Iterator;\n+770\n+772 typedef typename compressed_base_array_unmanaged::const_iterator\n+ConstIterator;\n+773\n+775 typedef typename A::size_type size_type;\n+776\n+777 //===== assignment from scalar\n+778\n+779 compressed_block_vector_unmanaged& operator= (const field_type& k)\n+780 {\n+781 for (size_type i=0; in; i++)\n+782 (this->p)[i] = k;\n+783 return *this;\n+784 }\n+785\n+786\n+787 //===== vector space arithmetic\n+788\n+790 template\n+791 compressed_block_vector_unmanaged& operator+= (const V& y)\n+792 {\n+793#ifdef DUNE_ISTL_WITH_CHECKING\n+794 if (!includesindexset(y)) DUNE_THROW(ISTLError,\"index set mismatch\");\n+795#endif\n+796 for (size_type i=0; ioperator[](y.j[i]) += y.p[i];\n+797 return *this;\n+798 }\n+799\n+801 template\n+802 compressed_block_vector_unmanaged& operator-= (const V& y)\n+803 {\n+804#ifdef DUNE_ISTL_WITH_CHECKING\n+805 if (!includesindexset(y)) DUNE_THROW(ISTLError,\"index set mismatch\");\n+806#endif\n+807 for (size_type i=0; ioperator[](y.j[i]) -= y.p[i];\n+808 return *this;\n+809 }\n+810\n+812 template\n+813 compressed_block_vector_unmanaged& axpy (const field_type& a, const V& y)\n+814 {\n+815#ifdef DUNE_ISTL_WITH_CHECKING\n+816 if (!includesindexset(y)) DUNE_THROW(ISTLError,\"index set mismatch\");\n+817#endif\n+818 for (size_type i=0; in; ++i) (this->p)[i] *= k;\n+827 return *this;\n+828 }\n+829\n+831 compressed_block_vector_unmanaged& operator/= (const field_type& k)\n+832 {\n+833 for (size_type i=0; in; ++i) (this->p)[i] /= k;\n+834 return *this;\n+835 }\n+836\n+837\n+838 //===== Euclidean scalar product\n+839\n+841 field_type operator* (const compressed_block_vector_unmanaged& y) const\n+842 {\n+843#ifdef DUNE_ISTL_WITH_CHECKING\n+844 if (!includesindexset(y) || !y.includesindexset(*this) )\n+845 DUNE_THROW(ISTLError,\"index set mismatch\");\n+846#endif\n+847 field_type sum=0;\n+848 for (size_type i=0; in; ++i)\n+849 sum += (this->p)[i] * y[(this->j)[i]];\n+850 return sum;\n+851 }\n+852\n+853\n+854 //===== norms\n+855\n+857 typename FieldTraits::real_type one_norm () const\n+858 {\n+859 typename FieldTraits::real_type sum=0;\n+860 for (size_type i=0; in; ++i) sum += (this->p)[i].one_norm();\n+861 return sum;\n+862 }\n+863\n+865 typename FieldTraits::real_type one_norm_real () const\n+866 {\n+867 typename FieldTraits::real_type sum=0;\n+868 for (size_type i=0; in; ++i) sum += (this->p)[i].one_norm_real();\n+869 return sum;\n+870 }\n+871\n+873 typename FieldTraits::real_type two_norm () const\n+874 {\n+875 using std::sqrt;\n+876 typename FieldTraits::real_type sum=0;\n+877 for (size_type i=0; in; ++i) sum += (this->p)[i].two_norm2();\n+878 return sqrt(sum);\n+879 }\n+880\n+882 typename FieldTraits::real_type two_norm2 () const\n+883 {\n+884 typename FieldTraits::real_type sum=0;\n+885 for (size_type i=0; in; ++i) sum += (this->p)[i].two_norm2();\n+886 return sum;\n+887 }\n+888\n+890 template ::value, int>::type = 0>\n+892 typename FieldTraits::real_type infinity_norm() const {\n+893 using real_type = typename FieldTraits::real_type;\n+894 using std::max;\n+895\n+896 real_type norm = 0;\n+897 for (auto const &x : *this) {\n+898 real_type const a = x.infinity_norm();\n+899 norm = max(a, norm);\n+900 }\n+901 return norm;\n+902 }\n+903\n+905 template ::value, int>::type = 0>\n+907 typename FieldTraits::real_type infinity_norm_real() const {\n+908 using real_type = typename FieldTraits::real_type;\n+909 using std::max;\n+910\n+911 real_type norm = 0;\n+912 for (auto const &x : *this) {\n+913 real_type const a = x.infinity_norm_real();\n+914 norm = max(a, norm);\n+915 }\n+916 return norm;\n+917 }\n+918\n+920 template ::value, int>::type = 0>\n+922 typename FieldTraits::real_type infinity_norm() const {\n+923 using real_type = typename FieldTraits::real_type;\n+924 using std::max;\n+925\n+926 real_type norm = 0;\n+927 real_type isNaN = 1;\n+928 for (auto const &x : *this) {\n+929 real_type const a = x.infinity_norm();\n+930 norm = max(a, norm);\n+931 isNaN += a;\n+932 }\n+933 return norm * (isNaN / isNaN);\n+934 }\n+935\n+937 template ::value, int>::type = 0>\n+939 typename FieldTraits::real_type infinity_norm_real() const {\n+940 using real_type = typename FieldTraits::real_type;\n+941 using std::max;\n+942\n+943 real_type norm = 0;\n+944 real_type isNaN = 1;\n+945 for (auto const &x : *this) {\n+946 real_type const a = x.infinity_norm_real();\n+947 norm = max(a, norm);\n+948 isNaN += a;\n+949 }\n+950 return norm * (isNaN / isNaN);\n+951 }\n+952\n+953 //===== sizes\n+954\n+956 size_type N () const\n+957 {\n+958 return this->n;\n+959 }\n+960\n+962 size_type dim () const\n+963 {\n+964 size_type d=0;\n+965 for (size_type i=0; in; i++)\n+966 d += (this->p)[i].dim();\n+967 return d;\n+968 }\n+969\n+970 protected:\n+972 compressed_block_vector_unmanaged () : compressed_base_array_unmanaged\n+()\n+973 { }\n+974\n+976 template\n+977 bool includesindexset (const V& y)\n+978 {\n+979 typename V::ConstIterator e=this->end();\n+980 for (size_type i=0; ifind(y.j[i])==e)\n+982 return false;\n+983 return true;\n+984 }\n+985 };\n+986\n+987\n+1006 template >\n+1007 class CompressedBlockVectorWindow : public\n+compressed_block_vector_unmanaged\n+1008 {\n+1009 public:\n+1010\n+1011 //===== type definitions and constants\n+1012\n+1014 using field_type = typename Imp::BlockTraits::field_type;\n+1015\n+1017 typedef B block_type;\n+1018\n+1020 typedef A allocator_type;\n+1021\n+1023 typedef typename A::size_type size_type;\n+1024\n+1026 [[deprecated(\"Use free function blockLevel(). Will be removed after\n+2.8.\")]]\n+1027 static constexpr unsigned int blocklevel = blockLevel()+1;\n+1028\n+1030 typedef typename compressed_block_vector_unmanaged::Iterator\n+Iterator;\n+1031\n+1033 typedef typename compressed_block_vector_unmanaged::ConstIterator\n+ConstIterator;\n+1034\n+1035\n+1036 //===== constructors and such\n+1038 CompressedBlockVectorWindow () : compressed_block_vector_unmanaged()\n+1039 { }\n+1040\n+1042 CompressedBlockVectorWindow (B* _p, size_type* _j, size_type _n)\n+1043 {\n+1044 this->n = _n;\n+1045 this->p = _p;\n+1046 this->j = _j;\n+1047 }\n+1048\n+1050 CompressedBlockVectorWindow (const CompressedBlockVectorWindow& a)\n+1051 {\n+1052 this->n = a.n;\n+1053 this->p = a.p;\n+1054 this->j = a.j;\n+1055 }\n+1056\n+1058 CompressedBlockVectorWindow& operator= (const CompressedBlockVectorWindow&\n+a)\n+1059 {\n+1060 // check correct size\n+1061#ifdef DUNE_ISTL_WITH_CHECKING\n+1062 if (this->n!=a.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n+1063#endif\n+1064\n+1065 if (&a!=this) // check if this and a are different objects\n+1066 {\n+1067 // copy data\n+1068 for (size_type i=0; in; i++) this->p[i]=a.p[i];\n+1069 for (size_type i=0; in; i++) this->j[i]=a.j[i];\n+1070 }\n+1071 return *this;\n+1072 }\n+1073\n+1075 CompressedBlockVectorWindow& operator= (const field_type& k)\n+1076 {\n+1077 (static_cast&>(*this)) = k;\n+1078 return *this;\n+1079 }\n+1080\n+1081\n+1082 //===== window manipulation methods\n+1083\n+1085 void set (size_type _n, B* _p, size_type* _j)\n+1086 {\n+1087 this->n = _n;\n+1088 this->p = _p;\n+1089 this->j = _j;\n+1090 }\n+1091\n+1093 void setsize (size_type _n)\n+1094 {\n+1095 this->n = _n;\n+1096 }\n+1097\n+1099 void setptr (B* _p)\n+1100 {\n+1101 this->p = _p;\n+1102 }\n+1103\n+1105 void setindexptr (size_type* _j)\n+1106 {\n+1107 this->j = _j;\n+1108 }\n+1109\n+1111 B* getptr ()\n+1112 {\n+1113 return this->p;\n+1114 }\n+1115\n+1117 size_type* getindexptr ()\n+1118 {\n+1119 return this->j;\n+1120 }\n+1121\n+1123 const B* getptr () const\n+1124 {\n+1125 return this->p;\n+1126 }\n+1127\n+1129 const size_type* getindexptr () const\n+1130 {\n+1131 return this->j;\n+1132 }\n+1134 size_type getsize () const\n+1135 {\n+1136 return this->n;\n+1137 }\n+1138 };\n+1139\n+1140} // end namespace 'Imp'\n+1141\n+1142\n+1144 template\n+1145 struct AutonomousValueType>\n+1146 {\n+1147 using type = BlockVector;\n+1148 };\n+1149\n+1150\n+1151} // end namespace 'Dune'\n+1152\n+1153#endif\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n+Helper functions for determining the vector/matrix block level.\n+_\bb_\ba_\bs_\be_\ba_\br_\br_\ba_\by_\b._\bh_\bh\n+Implements several basic array containers.\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n-Tag idnetifying the visited property of a vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:29\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bd_\bo_\bm_\bA_\bc_\bc_\be_\bs_\bs_\bB_\bu_\bn_\bd_\bl_\be_\bd_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-A property map that extracts one property out of a bundle using operator[]()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)\n+Send BlockVector to an output stream.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:590\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A vector of blocks with memory management.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+BlockVector()\n+makes empty vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:425\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\be_\br_\bv_\be\n+void reserve(size_type capacity)\n+Reserve space.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:475\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+BlockVector(BlockVector &&a) noexcept(noexcept(std::declval< BlockVector >\n+().swap(a)))\n+move constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:519\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+BlockVector(size_type _n)\n+make vector with _n components\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:431\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n+void resize(size_type size)\n+Resize the vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:503\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Imp::block_vector_unmanaged< B, A >::Iterator Iterator\n+make iterators available as types\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:417\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n+static constexpr unsigned int blocklevel\n+increment block level counter\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:414\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+BlockVector(const BlockVector &a) noexcept(noexcept(std::declval< BlockVector >\n+().storage_=a.storage_))\n+copy constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:511\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n+A allocator_type\n+export the allocator type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:407\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BlockVector & operator=(const BlockVector &a) noexcept(noexcept(std::declval<\n+BlockVector >().storage_=a.storage_))\n+assignment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:526\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< B >::field_type field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:401\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+The type for the index access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:410\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+BlockVector(std::initializer_list< B > const &l)\n+Construct from a std::initializer_list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:437\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bp_\ba_\bc_\bi_\bt_\by\n+size_type capacity() const\n+Get the capacity of the vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:488\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+BlockVector(size_type _n, S _capacity)\n+Make vector with _n components but preallocating capacity components.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:455\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+B block_type\n+export the type representing the components\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:404\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bw_\ba_\bp\n+void swap(BlockVector &other) noexcept(noexcept(std::declval< BlockVector & >\n+().storage_.swap(other.storage_)))\n+swap operation\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:544\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Imp::block_vector_unmanaged< B, A >::ConstIterator ConstIterator\n+make iterators available as types\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:420\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+FieldTraits< B >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:582\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+FieldTraits< B >::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:581\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00134.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00134.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: globalaggregates.hh File Reference\n+dune-istl: registry.hh File Reference\n \n \n \n \n \n \n \n@@ -65,61 +65,94 @@\n \n \n \n \n \n \n \n \n+
    registry.hh File Reference
    \n \n
    \n-\n-

    Provdes class for identifying aggregates globally. \n-More...

    \n-
    #include "aggregates.hh"
    \n-#include "pinfo.hh"
    \n-#include <dune/common/parallel/indexset.hh>
    \n+
    #include <cstddef>
    \n+#include <iostream>
    \n+#include <memory>
    \n+#include <string>
    \n+#include <utility>
    \n+#include "counter.hh"
    \n+#include <dune/common/typelist.hh>
    \n+#include <dune/common/hybridutilities.hh>
    \n+#include <dune/common/parameterizedobject.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Classes

    struct  Dune::Amg::GlobalAggregatesMap< T, TI >
     
    class  Dune::Amg::GlobalAggregatesMap< T, TI >::Proxy
     
    struct  Dune::Amg::AggregatesGatherScatter< T, TI >
     
    struct  Dune::Amg::AggregatesPublisher< T, O, I >
     
    struct  Dune::Amg::AggregatesPublisher< T, O, OwnerOverlapCopyCommunication< T1, T2 > >
     Utility class for publishing the aggregate number of the DOFs in the overlap to other processors and convert them to local indices. More...
     
    struct  Dune::Amg::AggregatesPublisher< T, O, SequentialInformation >
     
    struct  Dune::CommPolicy< Amg::GlobalAggregatesMap< T, TI > >
     
    \n \n \n \n-\n-\n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+\n+\n+\n

    \n+Macros

    #define DUNE_REGISTRY_PUT(Tag, id, ...)
     
    \n-

    Detailed Description

    \n-

    Provdes class for identifying aggregates globally.

    \n-
    Author
    Markus Blatt
    \n-
    \n+

    Macro Definition Documentation

    \n+\n+

    ◆ DUNE_REGISTRY_PUT

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    #define DUNE_REGISTRY_PUT( Tag,
     id,
     ... 
    )
    \n+
    \n+Value:
    namespace { \\
    \n+
    template<> \\
    \n+
    struct Registry<Tag, DUNE_GET_COUNTER(Tag)> \\
    \n+
    { \\
    \n+
    static auto getCreator() \\
    \n+
    { \\
    \n+
    return __VA_ARGS__; \\
    \n+
    } \\
    \n+
    static std::string name() { return id; } \\
    \n+
    }; \\
    \n+
    } \\
    \n+
    DUNE_INC_COUNTER(Tag)
    \n+
    #define DUNE_GET_COUNTER(Tag)
    Definition counter.hh:17
    \n+
    \n+
    \n+
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,45 +1,49 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-globalaggregates.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n-\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Provdes class for identifying aggregates globally. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n-#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n-#include \n+ * _\bc_\bo_\bm_\bm_\bo_\bn\n+_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bM_\ba_\bc_\br_\bo_\bs\n+registry.hh File Reference\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"_\bc_\bo_\bu_\bn_\bt_\be_\br_\b._\bh_\bh\"\n+#include \n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b:_\b:_\bP_\br_\bo_\bx_\by\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bI_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<\n- _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>_\b _\b>\n-\u00a0 Utility class for publishing the aggregate number of the DOFs in the\n- overlap to other processors and convert them to local indices. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b _\b>\n-\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+M\bMa\bac\bcr\bro\bos\bs\n+#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bR_\bY_\b__\bP_\bU_\bT(Tag, id, ...)\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provdes class for identifying aggregates globally.\n- Author\n- Markus Blatt\n+*\b**\b**\b**\b**\b* M\bMa\bac\bcr\bro\bo D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDU\bUN\bNE\bE_\b_R\bRE\bEG\bGI\bIS\bST\bTR\bRY\bY_\b_P\bPU\bUT\bT *\b**\b**\b**\b**\b*\n+#define DUNE_REGISTRY_PUT ( \u00a0 Tag,\n+ \u00a0 id,\n+ \u00a0 .\b..\b..\b.\u00a0\n+ )\n+V\bVa\bal\blu\bue\be:\b:\n+namespace { \\\n+template<> \\\n+struct Registry \\\n+{ \\\n+static auto getCreator() \\\n+{ \\\n+return __VA_ARGS__; \\\n+} \\\n+static std::string name() { return id; } \\\n+}; \\\n+} \\\n+DUNE_INC_COUNTER(Tag)\n+_\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR\n+#define DUNE_GET_COUNTER(Tag)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn counter.hh:17\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00134_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00134_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: globalaggregates.hh Source File\n+dune-istl: registry.hh Source File\n \n \n \n \n \n \n \n@@ -70,343 +70,106 @@\n \n \n \n \n \n \n \n
    \n-
    globalaggregates.hh
    \n+
    registry.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n-
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_GLOBALAGGREGATES_HH
    \n-
    6#define DUNE_GLOBALAGGREGATES_HH
    \n-
    7
    \n-
    18#include "aggregates.hh"
    \n-
    19#include "pinfo.hh"
    \n-
    20#include <dune/common/parallel/indexset.hh>
    \n-
    21
    \n-
    22namespace Dune
    \n-
    23{
    \n-
    24 namespace Amg
    \n-
    25 {
    \n-
    26
    \n-
    27 template<typename T, typename TI>
    \n-
    \n-\n-
    29 {
    \n-
    30 public:
    \n-
    31 typedef TI ParallelIndexSet;
    \n+
    3#ifndef DUNE_ISTL_COMMON_REGISTRY_HH
    \n+
    4#define DUNE_ISTL_COMMON_REGISTRY_HH
    \n+
    5
    \n+
    6#include <cstddef>
    \n+
    7#include <iostream>
    \n+
    8#include <memory>
    \n+
    9#include <string>
    \n+
    10#include <utility>
    \n+
    11
    \n+
    12#include "counter.hh"
    \n+
    13
    \n+
    14#include <dune/common/typelist.hh>
    \n+
    15#include <dune/common/hybridutilities.hh>
    \n+
    16#include <dune/common/parameterizedobject.hh>
    \n+
    17
    \n+
    \n+
    18#define DUNE_REGISTRY_PUT(Tag, id, ...) \\
    \n+
    19 namespace { \\
    \n+
    20 template<> \\
    \n+
    21 struct Registry<Tag, DUNE_GET_COUNTER(Tag)> \\
    \n+
    22 { \\
    \n+
    23 static auto getCreator() \\
    \n+
    24 { \\
    \n+
    25 return __VA_ARGS__; \\
    \n+
    26 } \\
    \n+
    27 static std::string name() { return id; } \\
    \n+
    28 }; \\
    \n+
    29 } \\
    \n+
    30 DUNE_INC_COUNTER(Tag)
    \n+
    \n+
    31
    \n
    32
    \n-
    33 typedef typename ParallelIndexSet::GlobalIndex GlobalIndex;
    \n-
    34
    \n-
    35 typedef typename ParallelIndexSet::GlobalIndex IndexedType;
    \n-
    36
    \n-
    37 typedef typename ParallelIndexSet::LocalIndex LocalIndex;
    \n+
    33namespace Dune {
    \n+
    34 namespace {
    \n+
    35 template<class Tag, std::size_t index>
    \n+
    36 struct Registry;
    \n+
    37 }
    \n
    38
    \n-
    39 typedef T Vertex;
    \n-
    40
    \n-
    \n-\n-
    42 const GlobalLookupIndexSet<ParallelIndexSet>& indexset)
    \n-
    43 : aggregates_(aggregates), indexset_(indexset)
    \n-
    44 {}
    \n-
    \n-
    45
    \n-
    \n-
    46 inline const GlobalIndex& operator[](std::size_t index) const
    \n-
    47 {
    \n-
    48 const Vertex& aggregate = aggregates_[index];
    \n-
    49 if(aggregate >= AggregatesMap<Vertex>::ISOLATED) {
    \n-
    50 assert(aggregate != AggregatesMap<Vertex>::UNAGGREGATED);
    \n-
    51 return isolatedMarker;
    \n-
    52 }else{
    \n-
    53 const Dune::IndexPair<GlobalIndex,LocalIndex >* pair = indexset_.pair(aggregate);
    \n-
    54 assert(pair!=0);
    \n-
    55 return pair->global();
    \n-
    56 }
    \n-
    57 }
    \n-
    \n-
    58
    \n-
    59
    \n-
    \n-
    60 inline GlobalIndex& get(std::size_t index)
    \n-
    61 {
    \n-
    62 const Vertex& aggregate = aggregates_[index];
    \n-
    63 assert(aggregate < AggregatesMap<Vertex>::ISOLATED);
    \n-
    64 const Dune::IndexPair<GlobalIndex,LocalIndex >* pair = indexset_.pair(aggregate);
    \n-
    65 assert(pair!=0);
    \n-
    66 return const_cast<GlobalIndex&>(pair->global());
    \n-
    67 }
    \n-
    \n-
    68
    \n-
    \n-
    69 class Proxy
    \n-
    70 {
    \n-
    71 public:
    \n-
    \n-
    72 Proxy(const GlobalLookupIndexSet<ParallelIndexSet>& indexset, Vertex& aggregate)
    \n-
    73 : indexset_(&indexset), aggregate_(&aggregate)
    \n-
    74 {}
    \n-
    \n-
    75
    \n-
    \n-
    76 Proxy& operator=(const GlobalIndex& global)
    \n-
    77 {
    \n-
    78 if(global==isolatedMarker)
    \n-\n-
    80 else{
    \n-
    81 //assert(global < AggregatesMap<Vertex>::ISOLATED);
    \n-
    82 *aggregate_ = indexset_->operator[](global).local();
    \n-
    83 }
    \n-
    84 return *this;
    \n-
    85 }
    \n-
    \n-
    86 private:
    \n-
    87 const GlobalLookupIndexSet<ParallelIndexSet>* indexset_;
    \n-
    88 Vertex* aggregate_;
    \n-
    89 };
    \n-
    \n-
    90
    \n-
    \n-
    91 inline Proxy operator[](std::size_t index)
    \n-
    92 {
    \n-
    93 return Proxy(indexset_, aggregates_[index]);
    \n-
    94 }
    \n-
    \n-
    95
    \n-
    \n-
    96 inline void put(const GlobalIndex& global, size_t i)
    \n-
    97 {
    \n-
    98 aggregates_[i]=indexset_[global].local();
    \n-
    99
    \n-
    100 }
    \n-
    \n-
    101
    \n-
    102 private:
    \n-
    103 AggregatesMap<Vertex>& aggregates_;
    \n-
    104 const GlobalLookupIndexSet<ParallelIndexSet>& indexset_;
    \n-
    105 static const GlobalIndex isolatedMarker;
    \n-
    106 };
    \n-
    \n-
    107
    \n-
    108 template<typename T, typename TI>
    \n-
    109 const typename TI::GlobalIndex GlobalAggregatesMap<T,TI>::isolatedMarker =
    \n-
    110 std::numeric_limits<typename TI::GlobalIndex>::max();
    \n-
    111
    \n-
    112 template<typename T, typename TI>
    \n-
    \n-\n-
    114 {
    \n-\n-
    116 typedef typename ParallelIndexSet::GlobalIndex GlobalIndex;
    \n-
    117
    \n-
    \n-
    118 static const GlobalIndex& gather(const GlobalAggregatesMap<T,TI>& ga, size_t i)
    \n-
    119 {
    \n-
    120 return ga[i];
    \n-
    121 }
    \n-
    \n-
    122
    \n-
    \n-
    123 static void scatter(GlobalAggregatesMap<T,TI>& ga, GlobalIndex global, size_t i)
    \n-
    124 {
    \n-
    125 ga[i]=global;
    \n-
    126 }
    \n-
    \n-
    127 };
    \n-
    \n-
    128
    \n-
    129 template<typename T, typename O, typename I>
    \n-
    \n-\n-
    131 {};
    \n-
    \n-
    132
    \n-
    133#if HAVE_MPI
    \n-
    134
    \n-
    135#endif
    \n-
    136
    \n-
    137 } // namespace Amg
    \n-
    138
    \n-
    139#if HAVE_MPI
    \n-
    140 // forward declaration
    \n-
    141 template<class T1, class T2>
    \n-\n-
    143#endif
    \n-
    144
    \n-
    145 namespace Amg
    \n-
    146 {
    \n-
    147
    \n-
    148#if HAVE_MPI
    \n-
    158 template<typename T, typename O, typename T1, typename T2>
    \n-
    \n-\n-
    160 {
    \n-
    161 typedef T Vertex;
    \n-
    162 typedef O OverlapFlags;
    \n-\n-\n-\n-
    166
    \n-
    \n-
    167 static void publish(AggregatesMap<Vertex>& aggregates,
    \n-
    168 ParallelInformation& pinfo,
    \n-
    169 const GlobalLookupIndexSet& globalLookup)
    \n-
    170 {
    \n-\n-
    172 GlobalMap gmap(aggregates, globalLookup);
    \n-
    173 pinfo.copyOwnerToAll(gmap,gmap);
    \n-
    174 // communication only needed for ALU
    \n-
    175 // (ghosts with same global id as owners on the same process)
    \n-
    176 if (SolverCategory::category(pinfo) == static_cast<int>(SolverCategory::nonoverlapping))
    \n-
    177 pinfo.copyCopyToAll(gmap,gmap);
    \n-
    178
    \n-
    179 typedef typename ParallelInformation::RemoteIndices::const_iterator Lists;
    \n-
    180 Lists lists = pinfo.remoteIndices().find(pinfo.communicator().rank());
    \n-
    181 if(lists!=pinfo.remoteIndices().end()) {
    \n-
    182
    \n-
    183 // For periodic boundary conditions we must renumber
    \n-
    184 // the aggregates of vertices in the overlap whose owners are
    \n-
    185 // on the same process
    \n-
    186 Vertex maxAggregate =0;
    \n-
    187 typedef typename AggregatesMap<Vertex>::const_iterator Iter;
    \n-
    188 for(Iter i=aggregates.begin(), end=aggregates.end(); i!=end; ++i)
    \n-
    189 maxAggregate = std::max(maxAggregate, *i);
    \n-
    190
    \n-
    191 // Compute new mapping of aggregates in the overlap that we also own
    \n-
    192 std::map<Vertex,Vertex> newMapping;
    \n-
    193
    \n-
    194 // insert all elements into map
    \n-
    195 typedef typename ParallelInformation::RemoteIndices::RemoteIndexList
    \n-
    196 ::const_iterator RIter;
    \n-
    197 for(RIter ri=lists->second.first->begin(), rend = lists->second.first->end();
    \n-
    198 ri!=rend; ++ri)
    \n-
    199 if(O::contains(ri->localIndexPair().local().attribute()))
    \n-
    200 newMapping.insert(std::make_pair(aggregates[ri->localIndexPair().local()],
    \n-
    201 maxAggregate));
    \n-
    202 // renumber
    \n-
    203 typedef typename std::map<Vertex,Vertex>::iterator MIter;
    \n-
    204 for(MIter mi=newMapping.begin(), mend=newMapping.end();
    \n-
    205 mi != mend; ++mi)
    \n-
    206 mi->second=++maxAggregate;
    \n-
    207
    \n-
    208
    \n-
    209 for(RIter ri=lists->second.first->begin(), rend = lists->second.first->end();
    \n-
    210 ri!=rend; ++ri)
    \n-
    211 if(O::contains(ri->localIndexPair().local().attribute()))
    \n-
    212 aggregates[ri->localIndexPair().local()] =
    \n-
    213 newMapping[aggregates[ri->localIndexPair().local()]];
    \n-
    214 }
    \n-
    215 }
    \n-
    \n-
    216 };
    \n-
    \n-
    217#endif
    \n-
    218
    \n-
    219 template<typename T, typename O>
    \n-
    \n-\n-
    221 {
    \n-
    222 typedef T Vertex;
    \n-\n-\n-
    225
    \n-
    \n-
    226 static void publish([[maybe_unused]] AggregatesMap<Vertex>& aggregates,
    \n-
    227 [[maybe_unused]] ParallelInformation& pinfo,
    \n-
    228 [[maybe_unused]] const GlobalLookupIndexSet& globalLookup)
    \n-
    229 {}
    \n-
    \n-
    230 };
    \n-
    \n-
    231
    \n-
    232 } // end Amg namespace
    \n-
    233
    \n-
    234
    \n-
    235#if HAVE_MPI
    \n-
    236 template<typename T, typename TI>
    \n-
    \n-
    237 struct CommPolicy<Amg::GlobalAggregatesMap<T,TI> >
    \n-
    238 {
    \n-\n-\n-
    241 typedef SizeOne IndexedTypeFlag;
    \n-
    \n-
    242 static int getSize(const Type&, int)
    \n-
    243 {
    \n-
    244 return 1;
    \n-
    245 }
    \n-
    \n-
    246 };
    \n-
    \n-
    247#endif
    \n-
    248
    \n-
    249} // end Dune namespace
    \n-
    250 /* @} */
    \n-
    251#endif
    \n-
    Provides classes for the Coloring process of AMG.
    \n-\n-
    ParallelInformation::GlobalLookupIndexSet GlobalLookupIndexSet
    Definition globalaggregates.hh:164
    \n-
    const GlobalIndex & operator[](std::size_t index) const
    Definition globalaggregates.hh:46
    \n-\n-
    static int getSize(const Type &, int)
    Definition globalaggregates.hh:242
    \n-
    Amg::GlobalAggregatesMap< T, TI >::IndexedType IndexedType
    Definition globalaggregates.hh:240
    \n-
    GlobalIndex & get(std::size_t index)
    Definition globalaggregates.hh:60
    \n-\n-
    static void publish(AggregatesMap< Vertex > &aggregates, ParallelInformation &pinfo, const GlobalLookupIndexSet &globalLookup)
    Definition globalaggregates.hh:226
    \n-
    SequentialInformation ParallelInformation
    Definition globalaggregates.hh:223
    \n-
    ParallelIndexSet::GlobalIndex GlobalIndex
    Definition globalaggregates.hh:33
    \n-
    ParallelInformation::ParallelIndexSet IndexSet
    Definition globalaggregates.hh:165
    \n-
    void put(const GlobalIndex &global, size_t i)
    Definition globalaggregates.hh:96
    \n-
    T Vertex
    Definition globalaggregates.hh:39
    \n-
    GlobalAggregatesMap(AggregatesMap< Vertex > &aggregates, const GlobalLookupIndexSet< ParallelIndexSet > &indexset)
    Definition globalaggregates.hh:41
    \n-
    TI ParallelIndexSet
    Definition globalaggregates.hh:31
    \n-
    Amg::AggregatesMap< T > Type
    Definition globalaggregates.hh:239
    \n-
    static void scatter(GlobalAggregatesMap< T, TI > &ga, GlobalIndex global, size_t i)
    Definition globalaggregates.hh:123
    \n-
    OwnerOverlapCopyCommunication< T1, T2 > ParallelInformation
    Definition globalaggregates.hh:163
    \n-
    const_iterator begin() const
    Definition aggregates.hh:725
    \n-
    SizeOne IndexedTypeFlag
    Definition globalaggregates.hh:241
    \n-
    Proxy(const GlobalLookupIndexSet< ParallelIndexSet > &indexset, Vertex &aggregate)
    Definition globalaggregates.hh:72
    \n-
    const_iterator end() const
    Definition aggregates.hh:730
    \n-
    static void publish(AggregatesMap< Vertex > &aggregates, ParallelInformation &pinfo, const GlobalLookupIndexSet &globalLookup)
    Definition globalaggregates.hh:167
    \n-
    ParallelIndexSet::GlobalIndex GlobalIndex
    Definition globalaggregates.hh:116
    \n-
    const AggregateDescriptor * const_iterator
    Definition aggregates.hh:723
    \n-
    ParallelIndexSet::LocalIndex LocalIndex
    Definition globalaggregates.hh:37
    \n-
    TI ParallelIndexSet
    Definition globalaggregates.hh:115
    \n-\n-
    ParallelInformation::GlobalLookupIndexSet GlobalLookupIndexSet
    Definition globalaggregates.hh:224
    \n-
    static const GlobalIndex & gather(const GlobalAggregatesMap< T, TI > &ga, size_t i)
    Definition globalaggregates.hh:118
    \n-
    Proxy & operator=(const GlobalIndex &global)
    Definition globalaggregates.hh:76
    \n-
    ParallelIndexSet::GlobalIndex IndexedType
    Definition globalaggregates.hh:35
    \n-
    Proxy operator[](std::size_t index)
    Definition globalaggregates.hh:91
    \n+
    39 namespace {
    \n+
    40 template<template<class> class Base, class V, class Tag, typename... Args>
    \n+
    41 auto registryGet(Tag , std::string name, Args... args)
    \n+
    42 {
    \n+
    43 constexpr auto count = DUNE_GET_COUNTER(Tag);
    \n+
    44 std::shared_ptr<Base<V> > result;
    \n+
    45 Dune::Hybrid::forEach(std::make_index_sequence<count>{},
    \n+
    46 [&](auto index) {
    \n+
    47 using Reg = Registry<Tag, index>;
    \n+
    48 if(!result && Reg::name() == name) {
    \n+
    49 result = Reg::getCreator()(Dune::MetaType<V>{}, args...);
    \n+
    50 }
    \n+
    51 });
    \n+
    52 return result;
    \n+
    53 }
    \n+
    54
    \n+
    55 /*
    \n+
    56 Register all creators from the registry in the Parameterizedobjectfactory An
    \n+
    57 object of V is passed in the creator ans should be used to determine the
    \n+
    58 template arguments.
    \n+
    59 */
    \n+
    60 template<class V, class Type, class Tag, class... Args>
    \n+
    61 int addRegistryToFactory(Dune::ParameterizedObjectFactory<Type(Args...), std::string>& factory,
    \n+
    62 Tag){
    \n+
    63 constexpr auto count = DUNE_GET_COUNTER(Tag);
    \n+
    64 Dune::Hybrid::forEach(std::make_index_sequence<count>{},
    \n+
    65 [&](auto index) {
    \n+
    66 // we first get the generic lambda
    \n+
    67 // and later specialize it with given parameters.
    \n+
    68 // doing all at once lead to an ICE woth g++-6
    \n+
    69 using Reg = Registry<Tag, index>;
    \n+
    70 auto genericcreator = Reg::getCreator();
    \n+
    71 factory.define(Reg::name(), [genericcreator](Args... args){
    \n+
    72 return genericcreator(V{}, args...);
    \n+
    73 });
    \n+
    74 });
    \n+
    75 return count;
    \n+
    76 }
    \n+
    77 } // end anonymous namespace
    \n+
    78} // end namespace Dune
    \n+
    79
    \n+
    80#endif // DUNE_ISTL_COMMON_REGISTRY_HH
    \n+\n+
    #define DUNE_GET_COUNTER(Tag)
    Definition counter.hh:17
    \n
    Definition allocator.hh:11
    \n-
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n-
    void copyCopyToAll(const T &source, T &dest) const
    Communicate values from copy data points to all other data points.
    Definition owneroverlapcopy.hh:328
    \n-
    Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet
    The type of the reverse lookup of indices.
    Definition owneroverlapcopy.hh:456
    \n-
    const Communication< MPI_Comm > & communicator() const
    Definition owneroverlapcopy.hh:299
    \n-
    void copyOwnerToAll(const T &source, T &dest) const
    Communicate values from owner data points to all other data points.
    Definition owneroverlapcopy.hh:311
    \n-
    const RemoteIndices & remoteIndices() const
    Get the underlying remote indices.
    Definition owneroverlapcopy.hh:471
    \n-
    Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet
    The type of the parallel index set.
    Definition owneroverlapcopy.hh:449
    \n-
    Class providing information about the mapping of the vertices onto aggregates.
    Definition aggregates.hh:560
    \n-
    Definition globalaggregates.hh:29
    \n-
    Definition globalaggregates.hh:70
    \n-
    Definition globalaggregates.hh:114
    \n-
    Definition globalaggregates.hh:131
    \n-
    Definition pinfo.hh:28
    \n-
    int GlobalLookupIndexSet
    Definition pinfo.hh:54
    \n-
    @ nonoverlapping
    Category for non-overlapping solvers.
    Definition solvercategory.hh:27
    \n-
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,424 +1,99 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-globalaggregates.hh\n+ * _\bc_\bo_\bm_\bm_\bo_\bn\n+registry.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n-4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_GLOBALAGGREGATES_HH\n-6#define DUNE_GLOBALAGGREGATES_HH\n-7\n-18#include \"_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\"\n-19#include \"_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\"\n-20#include \n-21\n-22namespace _\bD_\bu_\bn_\be\n-23{\n-24 namespace Amg\n-25 {\n-26\n-27 template\n-_\b2_\b8 struct _\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-29 {\n-30 public:\n-_\b3_\b1 typedef TI _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+3#ifndef DUNE_ISTL_COMMON_REGISTRY_HH\n+4#define DUNE_ISTL_COMMON_REGISTRY_HH\n+5\n+6#include \n+7#include \n+8#include \n+9#include \n+10#include \n+11\n+12#include \"_\bc_\bo_\bu_\bn_\bt_\be_\br_\b._\bh_\bh\"\n+13\n+14#include \n+15#include \n+16#include \n+17\n+_\b1_\b8#define DUNE_REGISTRY_PUT(Tag, id, ...) \\\n+19 namespace { \\\n+20 template<> \\\n+21 struct Registry \\\n+22 { \\\n+23 static auto getCreator() \\\n+24 { \\\n+25 return __VA_ARGS__; \\\n+26 } \\\n+27 static std::string name() { return id; } \\\n+28 }; \\\n+29 } \\\n+30 DUNE_INC_COUNTER(Tag)\n+31\n 32\n-_\b3_\b3 typedef typename ParallelIndexSet::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n-34\n-_\b3_\b5 typedef typename ParallelIndexSet::GlobalIndex _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n-36\n-_\b3_\b7 typedef typename ParallelIndexSet::LocalIndex _\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n+33namespace _\bD_\bu_\bn_\be {\n+34 namespace {\n+35 template\n+36 struct Registry;\n+37 }\n 38\n-_\b3_\b9 typedef T _\bV_\be_\br_\bt_\be_\bx;\n-40\n-_\b4_\b1 _\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp(_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-42 const GlobalLookupIndexSet& indexset)\n-43 : aggregates_(aggregates), indexset_(indexset)\n-44 {}\n-45\n-_\b4_\b6 inline const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t index) const\n-47 {\n-48 const _\bV_\be_\br_\bt_\be_\bx& aggregate = aggregates_[index];\n-49 if(aggregate >= _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD) {\n-50 assert(aggregate != _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bU_\bN_\bA_\bG_\bG_\bR_\bE_\bG_\bA_\bT_\bE_\bD);\n-51 return isolatedMarker;\n-52 }else{\n-53 const Dune::IndexPair* pair = indexset_.pair\n-(aggregate);\n-54 assert(pair!=0);\n-55 return pair->global();\n-56 }\n-57 }\n-58\n-59\n-_\b6_\b0 inline _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bg_\be_\bt(std::size_t index)\n-61 {\n-62 const _\bV_\be_\br_\bt_\be_\bx& aggregate = aggregates_[index];\n-63 assert(aggregate < _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n-64 const Dune::IndexPair* pair = indexset_.pair\n-(aggregate);\n-65 assert(pair!=0);\n-66 return const_cast<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx&>(pair->global());\n-67 }\n-68\n-_\b6_\b9 class _\bP_\br_\bo_\bx_\by\n-70 {\n-71 public:\n-_\b7_\b2 _\bP_\br_\bo_\bx_\by(const GlobalLookupIndexSet& indexset, _\bV_\be_\br_\bt_\be_\bx&\n-aggregate)\n-73 : indexset_(&indexset), aggregate_(&aggregate)\n-74 {}\n-75\n-_\b7_\b6 _\bP_\br_\bo_\bx_\by& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global)\n-77 {\n-78 if(global==isolatedMarker)\n-79 *aggregate_ = _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD;\n-80 else{\n-81 //assert(global < AggregatesMap::ISOLATED);\n-82 *aggregate_ = indexset_->operator[](global).local();\n-83 }\n-84 return *this;\n-85 }\n-86 private:\n-87 const GlobalLookupIndexSet* indexset_;\n-88 _\bV_\be_\br_\bt_\be_\bx* aggregate_;\n-89 };\n-90\n-_\b9_\b1 inline _\bP_\br_\bo_\bx_\by _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t index)\n-92 {\n-93 return _\bP_\br_\bo_\bx_\by(indexset_, aggregates_[index]);\n-94 }\n-95\n-_\b9_\b6 inline void _\bp_\bu_\bt(const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& global, size_t i)\n-97 {\n-98 aggregates_[i]=indexset_[global].local();\n-99\n-100 }\n-101\n-102 private:\n-103 _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates_;\n-104 const GlobalLookupIndexSet& indexset_;\n-105 static const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx isolatedMarker;\n-106 };\n-107\n-108 template\n-109 const typename TI::GlobalIndex GlobalAggregatesMap::isolatedMarker =\n-110 std::numeric_limits::max();\n-111\n-112 template\n-_\b1_\b1_\b3 struct _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-114 {\n-_\b1_\b1_\b5 typedef TI _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n-_\b1_\b1_\b6 typedef typename ParallelIndexSet::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n-117\n-_\b1_\b1_\b8 static const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bg_\ba_\bt_\bh_\be_\br(const _\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bT_\b,_\bT_\bI_\b>& ga,\n-size_t i)\n-119 {\n-120 return ga[i];\n-121 }\n-122\n-_\b1_\b2_\b3 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bT_\b,_\bT_\bI_\b>& ga, _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx global,\n-size_t i)\n-124 {\n-125 ga[i]=global;\n-126 }\n-127 };\n-128\n-129 template\n-_\b1_\b3_\b0 struct _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br\n-131 {};\n-132\n-133#if HAVE_MPI\n-134\n-135#endif\n-136\n-137 } // namespace Amg\n-138\n-139#if HAVE_MPI\n-140 // forward declaration\n-141 template\n-142 class _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn;\n-143#endif\n-144\n-145 namespace Amg\n-146 {\n-147\n-148#if HAVE_MPI\n-158 template\n-_\b1_\b5_\b9 struct _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br >\n-160 {\n-_\b1_\b6_\b1 typedef T _\bV_\be_\br_\bt_\be_\bx;\n-_\b1_\b6_\b2 typedef O _\bO_\bv_\be_\br_\bl_\ba_\bp_\bF_\bl_\ba_\bg_\bs;\n-_\b1_\b6_\b3 typedef _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n-_\b1_\b6_\b4 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n-_\b1_\b6_\b5 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n-166\n-_\b1_\b6_\b7 static void _\bp_\bu_\bb_\bl_\bi_\bs_\bh(_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-168 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-169 const _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& globalLookup)\n-170 {\n-171 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> GlobalMap;\n-172 GlobalMap gmap(aggregates, globalLookup);\n-173 pinfo._\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl(gmap,gmap);\n-174 // communication only needed for ALU\n-175 // (ghosts with same global id as owners on the same process)\n-176 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(pinfo) == static_cast(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:\n-_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg))\n-177 pinfo._\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl(gmap,gmap);\n-178\n-179 typedef typename ParallelInformation::RemoteIndices::const_iterator Lists;\n-180 Lists lists = pinfo._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().find(pinfo._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank());\n-181 if(lists!=pinfo._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().end()) {\n-182\n-183 // For periodic boundary conditions we must renumber\n-184 // the aggregates of vertices in the overlap whose owners are\n-185 // on the same process\n-186 _\bV_\be_\br_\bt_\be_\bx maxAggregate =0;\n-187 typedef typename _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br Iter;\n-188 for(Iter i=aggregates._\bb_\be_\bg_\bi_\bn(), end=aggregates._\be_\bn_\bd(); i!=end; ++i)\n-189 maxAggregate = std::max(maxAggregate, *i);\n-190\n-191 // Compute new mapping of aggregates in the overlap that we also own\n-192 std::map newMapping;\n-193\n-194 // insert all elements into map\n-195 typedef typename ParallelInformation::RemoteIndices::RemoteIndexList\n-196 ::const_iterator RIter;\n-197 for(RIter ri=lists->second.first->begin(), rend = lists->second.first->end\n-();\n-198 ri!=rend; ++ri)\n-199 if(O::contains(ri->localIndexPair().local().attribute()))\n-200 newMapping.insert(std::make_pair(aggregates[ri->localIndexPair().local()],\n-201 maxAggregate));\n-202 // renumber\n-203 typedef typename std::map::iterator MIter;\n-204 for(MIter mi=newMapping.begin(), mend=newMapping.end();\n-205 mi != mend; ++mi)\n-206 mi->second=++maxAggregate;\n-207\n-208\n-209 for(RIter ri=lists->second.first->begin(), rend = lists->second.first->end\n-();\n-210 ri!=rend; ++ri)\n-211 if(O::contains(ri->localIndexPair().local().attribute()))\n-212 aggregates[ri->localIndexPair().local()] =\n-213 newMapping[aggregates[ri->localIndexPair().local()]];\n-214 }\n-215 }\n-216 };\n-217#endif\n-218\n-219 template\n-_\b2_\b2_\b0 struct _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br\n-221 {\n-_\b2_\b2_\b2 typedef T _\bV_\be_\br_\bt_\be_\bx;\n-_\b2_\b2_\b3 typedef _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n-_\b2_\b2_\b4 typedef typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n-225\n-_\b2_\b2_\b6 static void _\bp_\bu_\bb_\bl_\bi_\bs_\bh([[maybe_unused]] _\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bV_\be_\br_\bt_\be_\bx_\b>& aggregates,\n-227 [[maybe_unused]] _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo,\n-228 [[maybe_unused]] const _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& globalLookup)\n-229 {}\n-230 };\n-231\n-232 } // end Amg namespace\n-233\n-234\n-235#if HAVE_MPI\n-236 template\n-_\b2_\b3_\b7 struct CommPolicy >\n-238 {\n-_\b2_\b3_\b9 typedef _\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bT_\b> _\bT_\by_\bp_\be;\n-_\b2_\b4_\b0 typedef typename _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\bT_\b,_\bT_\bI_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n-_\b2_\b4_\b1 typedef SizeOne _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg;\n-_\b2_\b4_\b2 static int _\bg_\be_\bt_\bS_\bi_\bz_\be(const _\bT_\by_\bp_\be&, int)\n-243 {\n-244 return 1;\n-245 }\n-246 };\n-247#endif\n-248\n-249} // end Dune namespace\n-250 /* @} */\n-251#endif\n-_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\b._\bh_\bh\n-Provides classes for the Coloring process of AMG.\n-_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n-_\b>_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-ParallelInformation::GlobalLookupIndexSet GlobalLookupIndexSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:164\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-const GlobalIndex & operator[](std::size_t index) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n-_\b>_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bF_\bl_\ba_\bg_\bs\n-O OverlapFlags\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:162\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bS_\bi_\bz_\be\n-static int getSize(const Type &, int)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:242\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n-Amg::GlobalAggregatesMap< T, TI >::IndexedType IndexedType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:240\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bg_\be_\bt\n-GlobalIndex & get(std::size_t index)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:60\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n-_\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-T Vertex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:161\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bp_\bu_\bb_\bl_\bi_\bs_\bh\n-static void publish(AggregatesMap< Vertex > &aggregates, ParallelInformation\n-&pinfo, const GlobalLookupIndexSet &globalLookup)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:226\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:\n-_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-SequentialInformation ParallelInformation\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:223\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-ParallelIndexSet::GlobalIndex GlobalIndex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n-_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-ParallelInformation::ParallelIndexSet IndexSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:165\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bp_\bu_\bt\n-void put(const GlobalIndex &global, size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:96\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-T Vertex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:39\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-GlobalAggregatesMap(AggregatesMap< Vertex > &aggregates, const\n-GlobalLookupIndexSet< ParallelIndexSet > &indexset)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:41\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-TI ParallelIndexSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:31\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n-Amg::AggregatesMap< T > Type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:239\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n-static void scatter(GlobalAggregatesMap< T, TI > &ga, GlobalIndex global,\n-size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:123\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n-_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-OwnerOverlapCopyCommunication< T1, T2 > ParallelInformation\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:163\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-const_iterator begin() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:725\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b<_\b _\bT_\b,_\b _\bT_\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg\n-SizeOne IndexedTypeFlag\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:241\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bP_\br_\bo_\bx_\by_\b:_\b:_\bP_\br_\bo_\bx_\by\n-Proxy(const GlobalLookupIndexSet< ParallelIndexSet > &indexset, Vertex\n-&aggregate)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:72\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n-const_iterator end() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:730\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b _\b>\n-_\b>_\b:_\b:_\bp_\bu_\bb_\bl_\bi_\bs_\bh\n-static void publish(AggregatesMap< Vertex > &aggregates, ParallelInformation\n-&pinfo, const GlobalLookupIndexSet &globalLookup)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:167\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-ParallelIndexSet::GlobalIndex GlobalIndex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:116\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-const AggregateDescriptor * const_iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:723\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-ParallelIndexSet::LocalIndex LocalIndex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-TI ParallelIndexSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:115\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-T Vertex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:222\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br_\b<_\b _\bT_\b,_\b _\bO_\b,_\b _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b _\b>_\b:_\b:\n-_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-ParallelInformation::GlobalLookupIndexSet GlobalLookupIndexSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:224\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n-static const GlobalIndex & gather(const GlobalAggregatesMap< T, TI > &ga,\n-size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:118\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bP_\br_\bo_\bx_\by_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-Proxy & operator=(const GlobalIndex &global)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n-ParallelIndexSet::GlobalIndex IndexedType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:35\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-Proxy operator[](std::size_t index)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:91\n+39 namespace {\n+40 template class Base, class V, class Tag, typename... Args>\n+41 auto registryGet(Tag , std::string name, Args... args)\n+42 {\n+43 constexpr auto count = _\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR(Tag);\n+44 std::shared_ptr > result;\n+45 Dune::Hybrid::forEach(std::make_index_sequence{},\n+46 [&](auto index) {\n+47 using Reg = Registry;\n+48 if(!result && Reg::name() == name) {\n+49 result = Reg::getCreator()(Dune::MetaType{}, args...);\n+50 }\n+51 });\n+52 return result;\n+53 }\n+54\n+55 /*\n+56 Register all creators from the registry in the Parameterizedobjectfactory An\n+57 object of V is passed in the creator ans should be used to determine the\n+58 template arguments.\n+59 */\n+60 template\n+61 int addRegistryToFactory(Dune::ParameterizedObjectFactory& factory,\n+62 Tag){\n+63 constexpr auto count = _\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR(Tag);\n+64 Dune::Hybrid::forEach(std::make_index_sequence{},\n+65 [&](auto index) {\n+66 // we first get the generic lambda\n+67 // and later specialize it with given parameters.\n+68 // doing all at once lead to an ICE woth g++-6\n+69 using Reg = Registry;\n+70 auto genericcreator = Reg::getCreator();\n+71 factory.define(Reg::name(), [genericcreator](Args... args){\n+72 return genericcreator(V{}, args...);\n+73 });\n+74 });\n+75 return count;\n+76 }\n+77 } // end anonymous namespace\n+78} // end namespace Dune\n+79\n+80#endif // DUNE_ISTL_COMMON_REGISTRY_HH\n+_\bc_\bo_\bu_\bn_\bt_\be_\br_\b._\bh_\bh\n+_\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR\n+#define DUNE_GET_COUNTER(Tag)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn counter.hh:17\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-A class setting up standard communication for a two-valued attribute set with\n-owner/overlap/copy sema...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl\n-void copyCopyToAll(const T &source, T &dest) const\n-Communicate values from copy data points to all other data points.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:328\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet\n-The type of the reverse lookup of indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:456\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n-const Communication< MPI_Comm > & communicator() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl\n-void copyOwnerToAll(const T &source, T &dest) const\n-Communicate values from owner data points to all other data points.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:311\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n-const RemoteIndices & remoteIndices() const\n-Get the underlying remote indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:471\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet\n-The type of the parallel index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:449\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-Class providing information about the mapping of the vertices onto aggregates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:560\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:29\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bM_\ba_\bp_\b:_\b:_\bP_\br_\bo_\bx_\by\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:114\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs_\bP_\bu_\bb_\bl_\bi_\bs_\bh_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn globalaggregates.hh:131\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-int GlobalLookupIndexSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:54\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n-@ nonoverlapping\n-Category for non-overlapping solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-static Category category(const OP &op, decltype(op.category()) *=nullptr)\n-Helperfunction to extract the solver category either from an enum, or from the\n-newly introduced virtu...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00137.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00137.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: kamg.hh File Reference\n+dune-istl: counter.hh File Reference\n \n \n \n \n \n \n \n@@ -65,51 +65,125 @@\n \n \n \n \n \n \n \n \n+
    counter.hh File Reference
    \n \n
    \n-\n-

    Provides an algebraic multigrid using a Krylov cycle. \n-More...

    \n-
    #include <dune/istl/preconditioners.hh>
    \n-#include "amg.hh"
    \n+
    #include <cassert>
    \n+#include <typeinfo>
    \n+#include <iostream>
    \n+#include <memory>
    \n+#include <tuple>
    \n+#include <utility>
    \n+#include <dune/common/typeutilities.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n-\n-\n-\n-\n-\n-\n-\n-

    \n-Classes

    class  Dune::Amg::KAmgTwoGrid< AMG >
     Two grid operator for AMG with Krylov cycle. More...
     
    class  Dune::Amg::KAMG< M, X, S, PI, K, A >
     an algebraic multigrid method using a Krylov-cycle. More...
     
    \n \n \n \n-\n+\n \n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
    namespace  Dune::CounterImpl
     
    \n+\n+\n+\n+\n+\n+

    \n+Macros

    #define DUNE_GET_COUNTER(Tag)    (counterFunc(Dune::PriorityTag<maxcount>{}, Tag{}, Dune::CounterImpl::ADLTag{}))
     
    #define DUNE_INC_COUNTER(Tag)
     
    \n+\n+\n+\n

    \n+Variables

    constexpr std::size_t maxcount = 100
     
    \n-

    Detailed Description

    \n-

    Provides an algebraic multigrid using a Krylov cycle.

    \n-
    Author
    Markus Blatt
    \n-
    \n+

    Macro Definition Documentation

    \n+\n+

    ◆ DUNE_GET_COUNTER

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    #define DUNE_GET_COUNTER( Tag)    (counterFunc(Dune::PriorityTag<maxcount>{}, Tag{}, Dune::CounterImpl::ADLTag{}))
    \n+
    \n+\n+
    \n+
    \n+\n+

    ◆ DUNE_INC_COUNTER

    \n+\n+
    \n+
    \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+ \n+
    #define DUNE_INC_COUNTER( Tag)
    \n+
    \n+Value:
    namespace { \\
    \n+
    namespace CounterImpl { \\
    \n+
    constexpr std::size_t \\
    \n+
    counterFunc(Dune::PriorityTag<DUNE_GET_COUNTER(Tag)+1> p, Tag, ADLTag) \\
    \n+
    { \\
    \n+
    return p.value; \\
    \n+
    } \\
    \n+
    } \\
    \n+
    } \\
    \n+
    static_assert(true, "unfudge indentation")
    \n+
    #define DUNE_GET_COUNTER(Tag)
    Definition counter.hh:17
    \n+
    \n+
    \n+
    \n+

    Variable Documentation

    \n+\n+

    ◆ maxcount

    \n+\n+
    \n+
    \n+\n+ \n+ \n+ \n+ \n+
    \n+ \n+ \n+ \n+ \n+
    constexpr std::size_t maxcount = 100
    \n+
    \n+constexpr
    \n+
    \n+\n+
    \n+
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,33 +1,56 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-kamg.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n-\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Provides an algebraic multigrid using a Krylov cycle. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n-#include \"_\ba_\bm_\bg_\b._\bh_\bh\"\n+ * _\bc_\bo_\bm_\bm_\bo_\bn\n+_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bM_\ba_\bc_\br_\bo_\bs | _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs\n+counter.hh File Reference\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\b _\bA_\bM_\bG_\b _\b>\n-\u00a0 Two grid operator for _\bA_\bM_\bG with Krylov cycle. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bS_\b,_\b _\bP_\bI_\b,_\b _\bK_\b,_\b _\bA_\b _\b>\n-\u00a0 an algebraic multigrid method using a Krylov-cycle. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\bI_\bm_\bp_\bl\n+\u00a0\n+M\bMa\bac\bcr\bro\bos\bs\n+#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR(Tag)\u00a0\u00a0\u00a0 (counterFunc(Dune::PriorityTag<_\bm_\ba_\bx_\bc_\bo_\bu_\bn_\bt>{},\n+ Tag{}, Dune::CounterImpl::ADLTag{}))\n+\u00a0\n+#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bI_\bN_\bC_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR(Tag)\n+\u00a0\n+V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs\n+constexpr std::size_t\u00a0 _\bm_\ba_\bx_\bc_\bo_\bu_\bn_\bt = 100\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides an algebraic multigrid using a Krylov cycle.\n- Author\n- Markus Blatt\n+*\b**\b**\b**\b**\b* M\bMa\bac\bcr\bro\bo D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDU\bUN\bNE\bE_\b_G\bGE\bET\bT_\b_C\bCO\bOU\bUN\bNT\bTE\bER\bR *\b**\b**\b**\b**\b*\n+#define DUNE_GET_COUNTER ( \u00a0 Tag ) \u00a0\u00a0\u00a0 (counterFunc(Dune::PriorityTag<_\bm_\ba_\bx_\bc_\bo_\bu_\bn_\bt>\n+ {}, Tag{}, Dune::CounterImpl::ADLTag{}))\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDU\bUN\bNE\bE_\b_I\bIN\bNC\bC_\b_C\bCO\bOU\bUN\bNT\bTE\bER\bR *\b**\b**\b**\b**\b*\n+#define DUNE_INC_COUNTER ( \u00a0 Tag )\n+V\bVa\bal\blu\bue\be:\b:\n+namespace { \\\n+namespace CounterImpl { \\\n+constexpr std::size_t \\\n+counterFunc(Dune::PriorityTag<_\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR(Tag)+1> p, Tag, ADLTag) \\\n+{ \\\n+return p.value; \\\n+} \\\n+} \\\n+} \\\n+static_assert(true, \"unfudge indentation\")\n+_\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR\n+#define DUNE_GET_COUNTER(Tag)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn counter.hh:17\n+*\b**\b**\b**\b**\b* V\bVa\bar\bri\bia\bab\bbl\ble\be D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0m\bma\bax\bxc\bco\bou\bun\bnt\bt *\b**\b**\b**\b**\b*\n+constexpr std::size_t maxcount = 100 constexpr\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00137_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00137_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: kamg.hh Source File\n+dune-istl: counter.hh Source File\n \n \n \n \n \n \n \n@@ -70,336 +70,77 @@\n \n \n \n \n \n \n \n
    \n-
    kamg.hh
    \n+
    counter.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n-
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_KAMG_HH
    \n-
    6#define DUNE_AMG_KAMG_HH
    \n-
    7
    \n-\n-
    9#include "amg.hh"
    \n-
    10
    \n-
    11namespace Dune
    \n-
    12{
    \n-
    13 namespace Amg
    \n-
    14 {
    \n-
    15
    \n-
    30 template<class AMG>
    \n-
    \n-\n-
    32 : public Preconditioner<typename AMG::Domain,typename AMG::Range>
    \n-
    33 {
    \n-
    35 typedef typename AMG::Domain Domain;
    \n-
    37 typedef typename AMG::Range Range;
    \n-
    38 public:
    \n-
    39
    \n-
    \n-\n-
    42 {
    \n-
    43 return amg_.category();
    \n-
    44 };
    \n-
    \n-
    45
    \n-
    \n-\n-
    54 : amg_(amg), coarseSolver_(coarseSolver)
    \n-
    55 {}
    \n-
    \n-
    56
    \n-
    \n-
    58 void pre([[maybe_unused]] typename AMG::Domain& x, [[maybe_unused]] typename AMG::Range& b)
    \n-
    59 {}
    \n-
    \n-
    60
    \n-
    \n-
    62 void post([[maybe_unused]] typename AMG::Domain& x)
    \n-
    63 {}
    \n-
    \n-
    64
    \n-
    \n-
    66 void apply(typename AMG::Domain& v, const typename AMG::Range& d)
    \n-
    67 {
    \n-
    68 // Copy data
    \n-
    69 *levelContext_->update=0;
    \n-
    70 *levelContext_->rhs = d;
    \n-
    71 *levelContext_->lhs = v;
    \n-
    72
    \n-
    73 presmooth(*levelContext_, amg_.preSteps_);
    \n-
    74 bool processFineLevel =
    \n-
    75 amg_.moveToCoarseLevel(*levelContext_);
    \n-
    76
    \n-
    77 if(processFineLevel) {
    \n-
    78 typename AMG::Range b=*levelContext_->rhs;
    \n-
    79 typename AMG::Domain x=*levelContext_->update;
    \n-\n-
    81 coarseSolver_->apply(x, b, res);
    \n-
    82 *levelContext_->update=x;
    \n-
    83 }
    \n-
    84
    \n-
    85 amg_.moveToFineLevel(*levelContext_, processFineLevel);
    \n-
    86
    \n-
    87 postsmooth(*levelContext_, amg_.postSteps_);
    \n-
    88 v=*levelContext_->update;
    \n-
    89 }
    \n-
    \n-
    90
    \n-
    \n-\n-
    96 {
    \n-
    97 return coarseSolver_;
    \n-
    98 }
    \n-
    \n-
    99
    \n-
    \n-
    104 void setLevelContext(std::shared_ptr<typename AMG::LevelContext> p)
    \n-
    105 {
    \n-
    106 levelContext_=p;
    \n-
    107 }
    \n-
    \n-
    108
    \n-
    \n-\n-
    111 {}
    \n-
    \n-
    112
    \n-
    113 private:
    \n-
    115 AMG& amg_;
    \n-
    117 std::shared_ptr<InverseOperator<Domain,Range> > coarseSolver_;
    \n-
    119 std::shared_ptr<typename AMG::LevelContext> levelContext_;
    \n-
    120 };
    \n-
    \n-
    121
    \n-
    122
    \n-
    123
    \n-
    137 template<class M, class X, class S, class PI=SequentialInformation,
    \n-
    138 class K=GeneralizedPCGSolver<X>, class A=std::allocator<X> >
    \n-
    \n-
    139 class KAMG : public Preconditioner<X,X>
    \n-
    140 {
    \n-
    141 public:
    \n-\n-
    145 typedef K KrylovSolver;
    \n-\n-\n-\n-\n-
    155 typedef typename Amg::Operator Operator;
    \n-
    157 typedef typename Amg::Domain Domain;
    \n-
    159 typedef typename Amg::Range Range;
    \n-\n-\n-
    164
    \n-
    \n-\n-
    167 {
    \n-
    168 return amg.category();
    \n-
    169 };
    \n-
    \n-
    170
    \n-
    182 KAMG(OperatorHierarchy& matrices, CoarseSolver& coarseSolver,
    \n-
    183 const SmootherArgs& smootherArgs, const Parameters& parms,
    \n-
    184 std::size_t maxLevelKrylovSteps=3, double minDefectReduction=1e-1);
    \n-
    185
    \n-
    199 template<class C>
    \n-
    200 KAMG(const Operator& fineOperator, const C& criterion,
    \n-
    201 const SmootherArgs& smootherArgs=SmootherArgs(),
    \n-
    202 std::size_t maxLevelKrylovSteps=3, double minDefectReduction=1e-1,
    \n-\n-
    204
    \n-
    206 void pre(Domain& x, Range& b);
    \n-
    208 void post(Domain& x);
    \n-
    210 void apply(Domain& v, const Range& d);
    \n-
    211
    \n-
    212 std::size_t maxlevels();
    \n-
    213
    \n-
    214 private:
    \n-
    216 Amg amg;
    \n-
    217
    \n-
    219 std::size_t maxLevelKrylovSteps;
    \n-
    220
    \n-
    222 double levelDefectReduction;
    \n-
    223
    \n-
    225 std::vector<std::shared_ptr<typename Amg::ScalarProduct> > scalarproducts;
    \n-
    226
    \n-
    228 std::vector<std::shared_ptr<KAmgTwoGrid<Amg> > > ksolvers;
    \n-
    229 };
    \n-
    \n-
    230
    \n-
    231
    \n-
    232 template<class M, class X, class S, class P, class K, class A>
    \n-
    \n-\n-
    234 const SmootherArgs& smootherArgs, const Parameters& params,
    \n-
    235 std::size_t ksteps, double reduction)
    \n-
    236 : amg(matrices, coarseSolver, smootherArgs, params),
    \n-
    237 maxLevelKrylovSteps(ksteps), levelDefectReduction(reduction)
    \n-
    238 {}
    \n-
    \n-
    239
    \n-
    240
    \n-
    241 template<class M, class X, class S, class P, class K, class A>
    \n-
    242 template<class C>
    \n-
    \n-
    243 KAMG<M,X,S,P,K,A>::KAMG(const Operator& fineOperator, const C& criterion,
    \n-
    244 const SmootherArgs& smootherArgs,
    \n-
    245 std::size_t ksteps, double reduction,
    \n-
    246 const ParallelInformation& pinfo)
    \n-
    247 : amg(fineOperator, criterion, smootherArgs, pinfo),
    \n-
    248 maxLevelKrylovSteps(ksteps), levelDefectReduction(reduction)
    \n-
    249 {}
    \n-
    \n-
    250
    \n-
    251
    \n-
    252 template<class M, class X, class S, class P, class K, class A>
    \n-
    \n-\n-
    254 {
    \n-
    255 amg.pre(x,b);
    \n-
    256 scalarproducts.reserve(amg.levels());
    \n-
    257 ksolvers.reserve(amg.levels());
    \n-
    258
    \n-
    259 typename OperatorHierarchy::ParallelMatrixHierarchy::Iterator
    \n-
    260 matrix = amg.matrices_->matrices().coarsest();
    \n-\n-
    262 pinfo = amg.matrices_->parallelInformation().coarsest();
    \n-
    263 bool hasCoarsest=(amg.levels()==amg.maxlevels());
    \n-
    264
    \n-
    265 if(hasCoarsest) {
    \n-
    266 if(matrix==amg.matrices_->matrices().finest())
    \n-
    267 return;
    \n-
    268 --matrix;
    \n-
    269 --pinfo;
    \n-
    270 ksolvers.push_back(std::shared_ptr<KAmgTwoGrid<Amg> >(new KAmgTwoGrid<Amg>(amg, amg.solver_)));
    \n-
    271 }else
    \n-
    272 ksolvers.push_back(std::shared_ptr<KAmgTwoGrid<Amg> >(new KAmgTwoGrid<Amg>(amg, std::shared_ptr<InverseOperator<Domain,Range> >())));
    \n-
    273
    \n-
    274 std::ostringstream s;
    \n-
    275
    \n-
    276 if(matrix!=amg.matrices_->matrices().finest())
    \n-
    277 while(true) {
    \n-
    278 scalarproducts.push_back(createScalarProduct<X>(*pinfo,category()));
    \n-
    279 std::shared_ptr<InverseOperator<Domain,Range> > ks =
    \n-
    280 std::shared_ptr<InverseOperator<Domain,Range> >(new KrylovSolver(*matrix, *(scalarproducts.back()),
    \n-
    281 *(ksolvers.back()), levelDefectReduction,
    \n-
    282 maxLevelKrylovSteps, 0));
    \n-
    283 ksolvers.push_back(std::shared_ptr<KAmgTwoGrid<Amg> >(new KAmgTwoGrid<Amg>(amg, ks)));
    \n-
    284 --matrix;
    \n-
    285 --pinfo;
    \n-
    286 if(matrix==amg.matrices_->matrices().finest())
    \n-
    287 break;
    \n-
    288 }
    \n-
    289 }
    \n-
    \n-
    290
    \n-
    291
    \n-
    292 template<class M, class X, class S, class P, class K, class A>
    \n-
    \n-\n-
    294 {
    \n-
    295 amg.post(x);
    \n-
    296
    \n-
    297 }
    \n-
    \n-
    298
    \n-
    299 template<class M, class X, class S, class P, class K, class A>
    \n-
    \n-\n-
    301 {
    \n-
    302 if(ksolvers.size()==0)
    \n-
    303 {
    \n-
    304 Range td=d;
    \n-\n-
    306 amg.solver_->apply(v,td,res);
    \n-
    307 }else
    \n-
    308 {
    \n-
    309 typedef typename Amg::LevelContext LevelContext;
    \n-
    310 std::shared_ptr<LevelContext> levelContext(new LevelContext);
    \n-
    311 amg.initIteratorsWithFineLevel(*levelContext);
    \n-
    312 typedef typename std::vector<std::shared_ptr<KAmgTwoGrid<Amg> > >::iterator Iter;
    \n-
    313 for(Iter solver=ksolvers.begin(); solver!=ksolvers.end(); ++solver)
    \n-
    314 (*solver)->setLevelContext(levelContext);
    \n-
    315 ksolvers.back()->apply(v,d);
    \n-
    316 }
    \n-
    317 }
    \n-
    \n-
    318
    \n-
    319 template<class M, class X, class S, class P, class K, class A>
    \n-
    \n-\n-
    321 {
    \n-
    322 return amg.maxlevels();
    \n-
    323 }
    \n-
    \n-
    324
    \n-
    326 } // Amg
    \n-
    327} // Dune
    \n-
    328
    \n-
    329#endif
    \n-
    Define general preconditioner interface.
    \n-
    The AMG preconditioner.
    \n-
    void apply(Domain &v, const Range &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition kamg.hh:300
    \n-
    X Domain
    The domain type.
    Definition amg.hh:87
    \n-
    KAMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const SmootherArgs &smootherArgs, const Parameters &parms, std::size_t maxLevelKrylovSteps=3, double minDefectReduction=1e-1)
    Construct a new amg with a specific coarse solver.
    Definition kamg.hh:233
    \n-
    std::size_t maxlevels()
    Definition kamg.hh:320
    \n-
    SmootherTraits< Smoother >::Arguments SmootherArgs
    The argument type for the construction of the smoother.
    Definition amg.hh:100
    \n-
    M Operator
    The matrix operator type.
    Definition amg.hh:73
    \n-
    void post(Domain &x)
    Clean up.
    Definition kamg.hh:293
    \n-
    X Range
    The range type.
    Definition amg.hh:89
    \n-
    void presmooth(LevelContext &levelContext, size_t steps)
    Apply pre smoothing on the current level.
    Definition smoother.hh:406
    \n-
    void postsmooth(LevelContext &levelContext, size_t steps)
    Apply post smoothing on the current level.
    Definition smoother.hh:428
    \n-
    void pre(Domain &x, Range &b)
    Prepare the preconditioner.
    Definition kamg.hh:253
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition amg.hh:194
    \n-
    PI ParallelInformation
    The type of the parallel information. Either OwnerOverlapCommunication or another type describing the...
    Definition amg.hh:80
    \n+
    3#ifndef DUNE_ISTL_COMMON_COUNTER_HH
    \n+
    4#define DUNE_ISTL_COMMON_COUNTER_HH
    \n+
    5
    \n+
    6#include <cassert>
    \n+
    7#include <typeinfo>
    \n+
    8#include <iostream>
    \n+
    9#include <memory>
    \n+
    10#include <tuple>
    \n+
    11#include <utility>
    \n+
    12
    \n+
    13#include <dune/common/typeutilities.hh>
    \n+
    14
    \n+
    15constexpr std::size_t maxcount = 100;
    \n+
    16
    \n+
    \n+
    17#define DUNE_GET_COUNTER(Tag) \\
    \n+
    18 (counterFunc(Dune::PriorityTag<maxcount>{}, Tag{}, Dune::CounterImpl::ADLTag{}))
    \n+
    \n+
    19
    \n+
    \n+
    20#define DUNE_INC_COUNTER(Tag) \\
    \n+
    21 namespace { \\
    \n+
    22 namespace CounterImpl { \\
    \n+
    23 constexpr std::size_t \\
    \n+
    24 counterFunc(Dune::PriorityTag<DUNE_GET_COUNTER(Tag)+1> p, Tag, ADLTag) \\
    \n+
    25 { \\
    \n+
    26 return p.value; \\
    \n+
    27 } \\
    \n+
    28 } \\
    \n+
    29 } \\
    \n+
    30 static_assert(true, "unfudge indentation")
    \n+
    \n+
    31
    \n+
    32namespace Dune {
    \n+
    33 namespace {
    \n+
    34
    \n+
    \n+
    35 namespace CounterImpl {
    \n+
    36
    \n+
    37 struct ADLTag {};
    \n+
    38
    \n+
    39 template<class Tag>
    \n+
    40 constexpr std::size_t counterFunc(Dune::PriorityTag<0>, Tag, ADLTag)
    \n+
    41 {
    \n+
    42 return 0;
    \n+
    43 }
    \n+
    44
    \n+
    45 } // end namespace CounterImpl
    \n+
    \n+
    46 } // end empty namespace
    \n+
    47} // end namespace Dune
    \n+
    48#endif // DUNE_ISTL_COMMON_COUNTER_HH
    \n+
    constexpr std::size_t maxcount
    Definition counter.hh:15
    \n
    Definition allocator.hh:11
    \n-
    an algebraic multigrid method using a Krylov-cycle.
    Definition kamg.hh:140
    \n-
    Amg::Domain Domain
    the type of the domain.
    Definition kamg.hh:157
    \n-
    Amg::SmootherArgs SmootherArgs
    The type of the arguments for construction of the smoothers.
    Definition kamg.hh:153
    \n-
    Amg::ParallelInformation ParallelInformation
    the type of the parallelinformation to use.
    Definition kamg.hh:151
    \n-
    Amg::CoarseSolver CoarseSolver
    The type of the coarse solver.
    Definition kamg.hh:149
    \n-
    Amg::OperatorHierarchy OperatorHierarchy
    The type of the hierarchy of operators.
    Definition kamg.hh:147
    \n-
    Amg::Range Range
    The type of the range.
    Definition kamg.hh:159
    \n-
    Amg::ScalarProduct ScalarProduct
    The type of the scalar product.
    Definition kamg.hh:163
    \n-
    AMG< M, X, S, PI, A > Amg
    The type of the underlying AMG.
    Definition kamg.hh:143
    \n-
    Amg::Operator Operator
    the type of the lineatr operator.
    Definition kamg.hh:155
    \n-
    Amg::ParallelInformationHierarchy ParallelInformationHierarchy
    The type of the hierarchy of parallel information.
    Definition kamg.hh:161
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition kamg.hh:166
    \n-
    K KrylovSolver
    The type of the Krylov solver for the cycle.
    Definition kamg.hh:145
    \n-
    Two grid operator for AMG with Krylov cycle.
    Definition kamg.hh:33
    \n-
    void pre(typename AMG::Domain &x, typename AMG::Range &b)
    Prepare the preconditioner.
    Definition kamg.hh:58
    \n-
    KAmgTwoGrid(AMG &amg, std::shared_ptr< InverseOperator< Domain, Range > > coarseSolver)
    Constructor.
    Definition kamg.hh:53
    \n-
    ~KAmgTwoGrid()
    Destructor.
    Definition kamg.hh:110
    \n-
    void post(typename AMG::Domain &x)
    Clean up.
    Definition kamg.hh:62
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition kamg.hh:41
    \n-
    void setLevelContext(std::shared_ptr< typename AMG::LevelContext > p)
    Set the level context pointer.
    Definition kamg.hh:104
    \n-
    InverseOperator< Domain, Range > * coarseSolver()
    Get a pointer to the coarse grid solver.
    Definition kamg.hh:95
    \n-
    void apply(typename AMG::Domain &v, const typename AMG::Range &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition kamg.hh:66
    \n-
    Parallel algebraic multigrid based on agglomeration.
    Definition amg.hh:65
    \n-\n-
    LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation > Iterator
    Type of the mutable iterator.
    Definition hierarchy.hh:216
    \n-
    The hierarchies build by the coarsening process.
    Definition matrixhierarchy.hh:61
    \n-
    All parameters for AMG.
    Definition parameters.hh:393
    \n-
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n-
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n-
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n-
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    Generalized preconditioned conjugate gradient solver.
    Definition solvers.hh:1307
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,433 +1,66 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-kamg.hh\n+ * _\bc_\bo_\bm_\bm_\bo_\bn\n+counter.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n-4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_KAMG_HH\n-6#define DUNE_AMG_KAMG_HH\n-7\n-8#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n-9#include \"_\ba_\bm_\bg_\b._\bh_\bh\"\n-10\n-11namespace _\bD_\bu_\bn_\be\n-12{\n-13 namespace Amg\n-14 {\n-15\n-30 template\n-_\b3_\b1 class _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd\n-32 : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-33 {\n-35 typedef typename _\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn Domain;\n-37 typedef typename _\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be Range;\n-38 public:\n-39\n-_\b4_\b1 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-42 {\n-43 return amg_._\bc_\ba_\bt_\be_\bg_\bo_\br_\by();\n-44 };\n-45\n-_\b5_\b3 _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd(_\bA_\bM_\bG& amg, std::shared_ptr<_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bR_\ba_\bn_\bg_\be_\b> >\n-_\bc_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br)\n-54 : amg_(amg), coarseSolver_(_\bc_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br)\n-55 {}\n-56\n-_\b5_\b8 void _\bp_\br_\be([[maybe_unused]] typename _\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn& x, [[maybe_unused]] typename\n-_\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be& b)\n-59 {}\n-60\n-_\b6_\b2 void _\bp_\bo_\bs_\bt([[maybe_unused]] typename _\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn& x)\n-63 {}\n-64\n-_\b6_\b6 void _\ba_\bp_\bp_\bl_\by(typename _\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn& v, const typename _\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be& d)\n-67 {\n-68 // Copy data\n-69 *levelContext_->update=0;\n-70 *levelContext_->rhs = d;\n-71 *levelContext_->lhs = v;\n-72\n-73 _\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh(*levelContext_, amg_.preSteps_);\n-74 bool processFineLevel =\n-75 amg_.moveToCoarseLevel(*levelContext_);\n-76\n-77 if(processFineLevel) {\n-78 typename _\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be b=*levelContext_->rhs;\n-79 typename _\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn x=*levelContext_->update;\n-80 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n-81 coarseSolver_->apply(x, b, res);\n-82 *levelContext_->update=x;\n-83 }\n-84\n-85 amg_.moveToFineLevel(*levelContext_, processFineLevel);\n-86\n-87 _\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh(*levelContext_, amg_.postSteps_);\n-88 v=*levelContext_->update;\n-89 }\n-90\n-_\b9_\b5 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bR_\ba_\bn_\bg_\be_\b>* _\bc_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br()\n-96 {\n-97 return coarseSolver_;\n-98 }\n-99\n-_\b1_\b0_\b4 void _\bs_\be_\bt_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt(std::shared_ptr p)\n-105 {\n-106 levelContext_=p;\n-107 }\n-108\n-_\b1_\b1_\b0 _\b~_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd()\n-111 {}\n-112\n-113 private:\n-115 _\bA_\bM_\bG& amg_;\n-117 std::shared_ptr > coarseSolver_;\n-119 std::shared_ptr levelContext_;\n-120 };\n-121\n-122\n-123\n-137 template, class A=std::allocator >\n-_\b1_\b3_\b9 class _\bK_\bA_\bM_\bG : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-140 {\n-141 public:\n-_\b1_\b4_\b3 typedef _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b> _\bA_\bm_\bg;\n-_\b1_\b4_\b5 typedef K _\bK_\br_\by_\bl_\bo_\bv_\bS_\bo_\bl_\bv_\be_\br;\n-_\b1_\b4_\b7 typedef typename _\bA_\bm_\bg_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n-_\b1_\b4_\b9 typedef typename _\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br;\n-_\b1_\b5_\b1 typedef typename _\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n-_\b1_\b5_\b3 typedef typename _\bA_\bm_\bg_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n-_\b1_\b5_\b5 typedef typename _\bA_\bm_\bg_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br _\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n-_\b1_\b5_\b7 typedef typename _\bA_\bm_\bg_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn _\bD_\bo_\bm_\ba_\bi_\bn;\n-_\b1_\b5_\b9 typedef typename _\bA_\bm_\bg_\b:_\b:_\bR_\ba_\bn_\bg_\be _\bR_\ba_\bn_\bg_\be;\n-_\b1_\b6_\b1 typedef typename _\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n-_\b1_\b6_\b3 typedef typename _\bA_\bm_\bg_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt;\n-164\n-_\b1_\b6_\b6 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-167 {\n-168 return amg._\bc_\ba_\bt_\be_\bg_\bo_\br_\by();\n-169 };\n-170\n-182 _\bK_\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br& coarseSolver,\n-183 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs, const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms,\n-184 std::size_t maxLevelKrylovSteps=3, double minDefectReduction=1e-1);\n-185\n-199 template\n-200 _\bK_\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& fineOperator, const C& criterion,\n-201 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs=_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs(),\n-202 std::size_t maxLevelKrylovSteps=3, double minDefectReduction=1e-1,\n-203 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo=_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n-204\n-206 void _\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b);\n-208 void _\bp_\bo_\bs_\bt(_\bD_\bo_\bm_\ba_\bi_\bn& x);\n-210 void _\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d);\n-211\n-212 std::size_t _\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs();\n-213\n-214 private:\n-216 _\bA_\bm_\bg amg;\n-217\n-219 std::size_t maxLevelKrylovSteps;\n-220\n-222 double levelDefectReduction;\n-223\n-225 std::vector > scalarproducts;\n-226\n-228 std::vector > > ksolvers;\n-229 };\n-230\n-231\n-232 template\n-_\b2_\b3_\b3 _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\bK_\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br&\n-coarseSolver,\n-234 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs, const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& params,\n-235 std::size_t ksteps, double reduction)\n-236 : amg(matrices, coarseSolver, smootherArgs, params),\n-237 maxLevelKrylovSteps(ksteps), levelDefectReduction(reduction)\n-238 {}\n-239\n-240\n-241 template\n-242 template\n-_\b2_\b4_\b3 _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\bK_\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& fineOperator, const C& criterion,\n-244 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs,\n-245 std::size_t ksteps, double reduction,\n-246 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo)\n-247 : amg(fineOperator, criterion, smootherArgs, pinfo),\n-248 maxLevelKrylovSteps(ksteps), levelDefectReduction(reduction)\n-249 {}\n-250\n-251\n-252 template\n-_\b2_\b5_\b3 void _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b)\n-254 {\n-255 amg.pre(x,b);\n-256 scalarproducts.reserve(amg.levels());\n-257 ksolvers.reserve(amg.levels());\n-258\n-259 typename OperatorHierarchy::ParallelMatrixHierarchy::Iterator\n-260 matrix = amg.matrices_->matrices().coarsest();\n-261 typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-262 pinfo = amg.matrices_->parallelInformation().coarsest();\n-263 bool hasCoarsest=(amg.levels()==amg.maxlevels());\n-264\n-265 if(hasCoarsest) {\n-266 if(matrix==amg.matrices_->matrices().finest())\n-267 return;\n-268 --matrix;\n-269 --pinfo;\n-270 ksolvers.push_back(std::shared_ptr<_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b> >(new _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b>\n-(amg, amg.solver_)));\n-271 }else\n-272 ksolvers.push_back(std::shared_ptr<_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b> >(new _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b>\n-(amg, std::shared_ptr<_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bR_\ba_\bn_\bg_\be_\b> >())));\n-273\n-274 std::ostringstream s;\n-275\n-276 if(matrix!=amg.matrices_->matrices().finest())\n-277 while(true) {\n-278 scalarproducts.push_back(createScalarProduct(*pinfo,category()));\n-279 std::shared_ptr > ks =\n-280 std::shared_ptr >(new _\bK_\br_\by_\bl_\bo_\bv_\bS_\bo_\bl_\bv_\be_\br(*matrix, *\n-(scalarproducts.back()),\n-281 *(ksolvers.back()), levelDefectReduction,\n-282 maxLevelKrylovSteps, 0));\n-283 ksolvers.push_back(std::shared_ptr<_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b> >(new _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b<_\bA_\bm_\bg_\b>\n-(amg, ks)));\n-284 --matrix;\n-285 --pinfo;\n-286 if(matrix==amg.matrices_->matrices().finest())\n-287 break;\n-288 }\n-289 }\n-290\n-291\n-292 template\n-_\b2_\b9_\b3 void _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\bp_\bo_\bs_\bt(_\bD_\bo_\bm_\ba_\bi_\bn& x)\n-294 {\n-295 amg.post(x);\n-296\n-297 }\n-298\n-299 template\n-_\b3_\b0_\b0 void _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n-301 {\n-302 if(ksolvers.size()==0)\n-303 {\n-304 _\bR_\ba_\bn_\bg_\be td=d;\n-305 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n-306 amg.solver_->apply(v,td,res);\n-307 }else\n-308 {\n-309 typedef typename Amg::LevelContext LevelContext;\n-310 std::shared_ptr levelContext(new LevelContext);\n-311 amg.initIteratorsWithFineLevel(*levelContext);\n-312 typedef typename std::vector > >::iterator\n-Iter;\n-313 for(Iter solver=ksolvers.begin(); solver!=ksolvers.end(); ++solver)\n-314 (*solver)->setLevelContext(levelContext);\n-315 ksolvers.back()->apply(v,d);\n-316 }\n-317 }\n-318\n-319 template\n-_\b3_\b2_\b0 std::size_t _\bK_\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\b,_\bK_\b,_\bA_\b>_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs()\n-321 {\n-322 return amg.maxlevels();\n-323 }\n-324\n-326 } // Amg\n-327} // Dune\n-328\n-329#endif\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n-Define general preconditioner interface.\n-_\ba_\bm_\bg_\b._\bh_\bh\n-The AMG preconditioner.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(Domain &v, const Range &d)\n-Apply one step of the preconditioner to the system A(v)=d.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:300\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n-X Domain\n-The domain type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:87\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bK_\bA_\bM_\bG\n-KAMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const\n-SmootherArgs &smootherArgs, const Parameters &parms, std::size_t\n-maxLevelKrylovSteps=3, double minDefectReduction=1e-1)\n-Construct a new amg with a specific coarse solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:233\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs\n-std::size_t maxlevels()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:320\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-SmootherTraits< Smoother >::Arguments SmootherArgs\n-The argument type for the construction of the smoother.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:100\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-M Operator\n-The matrix operator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bp_\bo_\bs_\bt\n-void post(Domain &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be\n-X Range\n-The range type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:89\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh\n-void presmooth(LevelContext &levelContext, size_t steps)\n-Apply pre smoothing on the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:406\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh\n-void postsmooth(LevelContext &levelContext, size_t steps)\n-Apply post smoothing on the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:428\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bp_\br_\be\n-void pre(Domain &x, Range &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:253\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:194\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-PI ParallelInformation\n-The type of the parallel information. Either OwnerOverlapCommunication or\n-another type describing the...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:80\n+3#ifndef DUNE_ISTL_COMMON_COUNTER_HH\n+4#define DUNE_ISTL_COMMON_COUNTER_HH\n+5\n+6#include \n+7#include \n+8#include \n+9#include \n+10#include \n+11#include \n+12\n+13#include \n+14\n+_\b1_\b5constexpr std::size_t _\bm_\ba_\bx_\bc_\bo_\bu_\bn_\bt = 100;\n+16\n+_\b1_\b7#define DUNE_GET_COUNTER(Tag) \\\n+18 (counterFunc(Dune::PriorityTag{}, Tag{}, Dune::CounterImpl::ADLTag\n+{}))\n+19\n+_\b2_\b0#define DUNE_INC_COUNTER(Tag) \\\n+21 namespace { \\\n+22 namespace CounterImpl { \\\n+23 constexpr std::size_t \\\n+24 counterFunc(Dune::PriorityTag p, Tag, ADLTag) \\\n+25 { \\\n+26 return p.value; \\\n+27 } \\\n+28 } \\\n+29 } \\\n+30 static_assert(true, \"unfudge indentation\")\n+31\n+32namespace _\bD_\bu_\bn_\be {\n+33 namespace {\n+34\n+_\b3_\b5 namespace CounterImpl {\n+36\n+37 struct ADLTag {};\n+38\n+39 template\n+40 constexpr std::size_t counterFunc(Dune::PriorityTag<0>, Tag, ADLTag)\n+41 {\n+42 return 0;\n+43 }\n+44\n+45 } // end namespace CounterImpl\n+46 } // end empty namespace\n+47} // end namespace Dune\n+48#endif // DUNE_ISTL_COMMON_COUNTER_HH\n+_\bm_\ba_\bx_\bc_\bo_\bu_\bn_\bt\n+constexpr std::size_t maxcount\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn counter.hh:15\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG\n-an algebraic multigrid method using a Krylov-cycle.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:140\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n-Amg::Domain Domain\n-the type of the domain.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:157\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-Amg::SmootherArgs SmootherArgs\n-The type of the arguments for construction of the smoothers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:153\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-Amg::ParallelInformation ParallelInformation\n-the type of the parallelinformation to use.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:151\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br\n-Amg::CoarseSolver CoarseSolver\n-The type of the coarse solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-Amg::OperatorHierarchy OperatorHierarchy\n-The type of the hierarchy of operators.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:147\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be\n-Amg::Range Range\n-The type of the range.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:159\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Amg::ScalarProduct ScalarProduct\n-The type of the scalar product.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:163\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bA_\bm_\bg\n-AMG< M, X, S, PI, A > Amg\n-The type of the underlying AMG.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:143\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Amg::Operator Operator\n-the type of the lineatr operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:155\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-Amg::ParallelInformationHierarchy ParallelInformationHierarchy\n-The type of the hierarchy of parallel information.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:161\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:166\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG_\b:_\b:_\bK_\br_\by_\bl_\bo_\bv_\bS_\bo_\bl_\bv_\be_\br\n-K KrylovSolver\n-The type of the Krylov solver for the cycle.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:145\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd\n-Two grid operator for AMG with Krylov cycle.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bp_\br_\be\n-void pre(typename AMG::Domain &x, typename AMG::Range &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:58\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd\n-KAmgTwoGrid(AMG &amg, std::shared_ptr< InverseOperator< Domain, Range > >\n-coarseSolver)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\b~_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd\n-~KAmgTwoGrid()\n-Destructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:110\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bp_\bo_\bs_\bt\n-void post(typename AMG::Domain &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:62\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:41\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bs_\be_\bt_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt\n-void setLevelContext(std::shared_ptr< typename AMG::LevelContext > p)\n-Set the level context pointer.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:104\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\bc_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br\n-InverseOperator< Domain, Range > * coarseSolver()\n-Get a pointer to the coarse grid solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(typename AMG::Domain &v, const typename AMG::Range &d)\n-Apply one step of the preconditioner to the system A(v)=d.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:66\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG\n-Parallel algebraic multigrid based on agglomeration.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:65\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation\n-> Iterator\n-Type of the mutable iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:216\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-The hierarchies build by the coarsening process.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-All parameters for AMG.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:393\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Base class for scalar product and norm computation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Abstract base class for all solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n-Generalized preconditioned conjugate gradient solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1307\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00140.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00140.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: dependency.hh File Reference\n+dune-istl: novlpschwarz.hh File Reference\n \n \n \n \n \n \n \n@@ -65,69 +65,61 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n \n+
    novlpschwarz.hh File Reference
    \n \n
    \n-\n-

    Provides classes for initializing the link attributes of a matrix graph. \n-More...

    \n-
    #include <bitset>
    \n-#include <ostream>
    \n-#include "graph.hh"
    \n-#include "properties.hh"
    \n-#include <dune/common/propertymap.hh>
    \n+
    #include <iostream>
    \n+#include <fstream>
    \n+#include <vector>
    \n+#include <sstream>
    \n+#include <cmath>
    \n+#include <dune/common/timer.hh>
    \n+#include <dune/common/hybridutilities.hh>
    \n+#include "io.hh"
    \n+#include "bvector.hh"
    \n+#include "vbvector.hh"
    \n+#include "bcrsmatrix.hh"
    \n+#include "gsetc.hh"
    \n+#include "ilu.hh"
    \n+#include "operators.hh"
    \n+#include "solvers.hh"
    \n+#include "preconditioners.hh"
    \n+#include "scalarproducts.hh"
    \n+#include "owneroverlapcopy.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n+\n+\n \n-\n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::Amg::EdgeProperties
     Class representing the properties of an ede in the matrix graph. More...
     
    class  Dune::Amg::VertexProperties
     Class representing a node in the matrix graph. More...
    class  Dune::NonoverlappingSchwarzOperator< M, X, Y, C >
     A nonoverlapping operator with communication object. More...
     
    class  Dune::Amg::PropertyGraphVertexPropertyMap< G, i >
     
    struct  Dune::PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >
    class  Dune::NonoverlappingBlockPreconditioner< C, P >
     Nonoverlapping parallel preconditioner. More...
     
    \n \n \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n

    \n-Functions

    template<typename G , typename EP , typename VM , typename EM >
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type Dune::get (const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
     
    std::ostream & Dune::Amg::operator<< (std::ostream &os, const EdgeProperties &props)
     
    std::ostream & Dune::Amg::operator<< (std::ostream &os, const VertexProperties &props)
     
    \n-

    Detailed Description

    \n-

    Provides classes for initializing the link attributes of a matrix graph.

    \n-
    Author
    Markus Blatt
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,56 +1,41 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-dependency.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n-\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-Provides classes for initializing the link attributes of a matrix graph.\n-_\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n-#include \"_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b._\bh_\bh\"\n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+novlpschwarz.hh File Reference\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"_\bi_\bo_\b._\bh_\bh\"\n+#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+#include \"_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n+#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n+#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n+#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n+#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n+#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n+#include \"_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-\u00a0 Class representing the properties of an ede in the matrix graph.\n- _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bC_\b _\b>\n+\u00a0 A nonoverlapping operator with communication object. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-\u00a0 Class representing a node in the matrix graph. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\b _\bG_\b,_\b _\bi_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\by_\bp_\be_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg_\b,_\b _\bA_\bm_\bg_\b:_\b:\n- _\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,_\b _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b,_\b _\bE_\bP_\b,_\b _\bV_\bM_\b,_\b _\bE_\bM_\b _\b>_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bC_\b,_\b _\bP_\b _\b>\n+\u00a0 Nonoverlapping parallel preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n- PropertyMapTypeSelector< _\bA_\bm_\bg_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg, _\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh< _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt (const _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n- G, _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs, EP, VM, EM > &tag, _\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh< G, _\bA_\bm_\bg_\b:_\b:\n- >::Type\u00a0 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs, EP, VM, EM > &graph)\n-\u00a0\n- std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream\n- &os, const _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs &props)\n-\u00a0\n- std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream\n- &os, const _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs &props)\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides classes for initializing the link attributes of a matrix graph.\n- Author\n- Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00140_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00140_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: dependency.hh Source File\n+dune-istl: novlpschwarz.hh Source File\n \n \n \n \n \n \n \n@@ -70,490 +70,385 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n
    \n-
    dependency.hh
    \n+
    novlpschwarz.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_DEPENDENCY_HH
    \n-
    6#define DUNE_AMG_DEPENDENCY_HH
    \n+
    5#ifndef DUNE_ISTL_NOVLPSCHWARZ_HH
    \n+
    6#define DUNE_ISTL_NOVLPSCHWARZ_HH
    \n
    7
    \n-
    8
    \n-
    9#include <bitset>
    \n-
    10#include <ostream>
    \n-
    11
    \n-
    12#include "graph.hh"
    \n-
    13#include "properties.hh"
    \n-
    14#include <dune/common/propertymap.hh>
    \n-
    15
    \n+
    8#include <iostream> // for input/output to shell
    \n+
    9#include <fstream> // for input/output to files
    \n+
    10#include <vector> // STL vector class
    \n+
    11#include <sstream>
    \n+
    12
    \n+
    13#include <cmath> // Yes, we do some math here
    \n+
    14
    \n+
    15#include <dune/common/timer.hh>
    \n
    16
    \n-
    17namespace Dune
    \n-
    18{
    \n-
    19 namespace Amg
    \n-
    20 {
    \n-
    \n-\n-
    39 {
    \n-
    40 friend std::ostream& operator<<(std::ostream& os, const EdgeProperties& props);
    \n-
    41 public:
    \n-\n-
    44
    \n-
    45 private:
    \n-
    46
    \n-
    47 std::bitset<SIZE> flags_;
    \n-
    48 public:
    \n-\n-
    51
    \n-
    53 std::bitset<SIZE>::reference operator[](std::size_t v);
    \n-
    54
    \n-
    56 bool operator[](std::size_t v) const;
    \n-
    57
    \n-
    63 bool depends() const;
    \n-
    64
    \n-
    69 void setDepends();
    \n-
    70
    \n-
    74 void resetDepends();
    \n-
    75
    \n-
    80 bool influences() const;
    \n-
    81
    \n-
    85 void setInfluences();
    \n-
    86
    \n-
    90 void resetInfluences();
    \n-
    91
    \n-
    96 bool isOneWay() const;
    \n-
    97
    \n-
    102 bool isTwoWay() const;
    \n-
    103
    \n-
    108 bool isStrong() const;
    \n-
    109
    \n-
    113 void reset();
    \n-
    114
    \n-
    118 void printFlags() const;
    \n-
    119 };
    \n-
    \n-
    120
    \n-
    \n-\n-
    127 friend std::ostream& operator<<(std::ostream& os, const VertexProperties& props);
    \n-
    128 public:
    \n-\n-
    130 private:
    \n+
    17#include <dune/common/hybridutilities.hh>
    \n+
    18
    \n+
    19#include "io.hh"
    \n+
    20#include "bvector.hh"
    \n+
    21#include "vbvector.hh"
    \n+
    22#include "bcrsmatrix.hh"
    \n+
    23#include "io.hh"
    \n+
    24#include "gsetc.hh"
    \n+
    25#include "ilu.hh"
    \n+
    26#include "operators.hh"
    \n+
    27#include "solvers.hh"
    \n+
    28#include "preconditioners.hh"
    \n+
    29#include "scalarproducts.hh"
    \n+
    30#include "owneroverlapcopy.hh"
    \n+
    31
    \n+
    32namespace Dune {
    \n+
    33
    \n+
    59 template<class M, class X, class Y, class C>
    \n+
    \n+\n+
    61 {
    \n+
    62 public:
    \n+
    64 typedef M matrix_type;
    \n+
    66 typedef X domain_type;
    \n+
    68 typedef Y range_type;
    \n+
    70 typedef typename X::field_type field_type;
    \n+\n+
    73
    \n+
    74 typedef typename C::PIS PIS;
    \n+
    75 typedef typename C::RI RI;
    \n+
    76 typedef typename RI::RemoteIndexList RIL;
    \n+
    77 typedef typename RI::const_iterator RIIterator;
    \n+
    78 typedef typename RIL::const_iterator RILIterator;
    \n+
    79 typedef typename M::ConstColIterator ColIterator;
    \n+
    80 typedef typename M::ConstRowIterator RowIterator;
    \n+
    81 typedef std::multimap<int,int> MM;
    \n+
    82 typedef std::multimap<int,std::pair<int,RILIterator> > RIMap;
    \n+
    83 typedef typename RIMap::iterator RIMapit;
    \n+
    84
    \n+
    \n+\n+
    93 : _A_(stackobject_to_shared_ptr(A)), communication(com), buildcomm(true)
    \n+
    94 {}
    \n+
    \n+
    95
    \n+
    \n+
    96 NonoverlappingSchwarzOperator (std::shared_ptr<const matrix_type> A, const communication_type& com)
    \n+
    97 : _A_(A), communication(com), buildcomm(true)
    \n+
    98 {}
    \n+
    \n+
    99
    \n+
    \n+
    101 virtual void apply (const X& x, Y& y) const
    \n+
    102 {
    \n+
    103 y = 0;
    \n+
    104 novlp_op_apply(x,y,1);
    \n+
    105 communication.addOwnerCopyToOwnerCopy(y,y);
    \n+
    106 }
    \n+
    \n+
    107
    \n+
    \n+
    109 virtual void applyscaleadd (field_type alpha, const X& x, Y& y) const
    \n+
    110 {
    \n+
    111 // only apply communication to alpha*A*x to make it consistent,
    \n+
    112 // y already has to be consistent.
    \n+
    113 Y y1(y);
    \n+
    114 y = 0;
    \n+
    115 novlp_op_apply(x,y,alpha);
    \n+
    116 communication.addOwnerCopyToOwnerCopy(y,y);
    \n+
    117 y += y1;
    \n+
    118 }
    \n+
    \n+
    119
    \n+
    \n+
    121 virtual const matrix_type& getmat () const
    \n+
    122 {
    \n+
    123 return *_A_;
    \n+
    124 }
    \n+
    \n+
    125
    \n+
    \n+
    126 void novlp_op_apply (const X& x, Y& y, field_type alpha) const
    \n+
    127 {
    \n+
    128 //get index sets
    \n+
    129 const PIS& pis=communication.indexSet();
    \n+
    130 const RI& ri = communication.remoteIndices();
    \n
    131
    \n-
    133 std::bitset<SIZE> flags_;
    \n-
    134
    \n-
    135 public:
    \n-\n-
    138
    \n-
    140 std::bitset<SIZE>::reference operator[](std::size_t v);
    \n-
    141
    \n-
    143 bool operator[](std::size_t v) const;
    \n-
    144
    \n-
    151 void setIsolated();
    \n-
    152
    \n-
    156 bool isolated() const;
    \n-
    157
    \n-
    161 void resetIsolated();
    \n-
    162
    \n-
    166 void setVisited();
    \n-
    167
    \n-
    171 bool visited() const;
    \n-
    172
    \n-
    176 void resetVisited();
    \n-
    177
    \n-
    181 void setFront();
    \n-
    182
    \n-
    186 bool front() const;
    \n-
    187
    \n-
    191 void resetFront();
    \n-
    192
    \n-
    196 void setExcludedBorder();
    \n-
    197
    \n-
    202 bool excludedBorder() const;
    \n-
    203
    \n-
    207 void resetExcludedBorder();
    \n-
    208
    \n-
    212 void reset();
    \n-
    213
    \n-
    214 };
    \n-
    \n-
    215
    \n-
    216 template<typename G, std::size_t i>
    \n-
    \n-\n-
    218 : public RAPropertyMapHelper<typename std::bitset<VertexProperties::SIZE>::reference,
    \n-
    219 PropertyGraphVertexPropertyMap<G,i> >
    \n-
    220 {
    \n-
    221 public:
    \n-
    222
    \n-
    223 typedef ReadWritePropertyMapTag Category;
    \n-
    224
    \n-
    225 enum {
    \n-
    227 index = i
    \n-
    228 };
    \n-
    229
    \n-
    233 typedef G Graph;
    \n-
    234
    \n-
    238 typedef std::bitset<VertexProperties::SIZE> BitSet;
    \n+
    132 // at the beginning make a multimap "bordercontribution".
    \n+
    133 // process has i and j as border dofs but is not the owner
    \n+
    134 // => only contribute to Ax if i,j is in bordercontribution
    \n+
    135 if (buildcomm == true) {
    \n+
    136
    \n+
    137 // set up mask vector
    \n+
    138 if (mask.size()!=static_cast<typename std::vector<double>::size_type>(x.size())) {
    \n+
    139 mask.resize(x.size());
    \n+
    140 for (typename std::vector<double>::size_type i=0; i<mask.size(); i++)
    \n+
    141 mask[i] = 1;
    \n+
    142 for (typename PIS::const_iterator i=pis.begin(); i!=pis.end(); ++i)
    \n+
    143 if (i->local().attribute()==OwnerOverlapCopyAttributeSet::copy)
    \n+
    144 mask[i->local().local()] = 0;
    \n+
    145 else if (i->local().attribute()==OwnerOverlapCopyAttributeSet::overlap)
    \n+
    146 mask[i->local().local()] = 2;
    \n+
    147 }
    \n+
    148
    \n+
    149 for (MM::iterator iter = bordercontribution.begin();
    \n+
    150 iter != bordercontribution.end(); ++iter)
    \n+
    151 bordercontribution.erase(iter);
    \n+
    152 std::map<int,int> owner; //key: local index i, value: process, that owns i
    \n+
    153 RIMap rimap;
    \n+
    154
    \n+
    155 // for each local index make multimap rimap:
    \n+
    156 // key: local index i, data: pair of process that knows i and pointer to RI entry
    \n+
    157 for (RowIterator i = _A_->begin(); i != _A_->end(); ++i)
    \n+
    158 if (mask[i.index()] == 0)
    \n+
    159 for (RIIterator remote = ri.begin(); remote != ri.end(); ++remote) {
    \n+
    160 RIL& ril = *(remote->second.first);
    \n+
    161 for (RILIterator rindex = ril.begin(); rindex != ril.end(); ++rindex)
    \n+
    162 if (rindex->attribute() != OwnerOverlapCopyAttributeSet::overlap)
    \n+
    163 if (rindex->localIndexPair().local().local() == i.index()) {
    \n+
    164 rimap.insert
    \n+
    165 (std::make_pair(i.index(),
    \n+
    166 std::pair<int,RILIterator>(remote->first, rindex)));
    \n+
    167 if(rindex->attribute()==OwnerOverlapCopyAttributeSet::owner)
    \n+
    168 owner.insert(std::make_pair(i.index(),remote->first));
    \n+
    169 }
    \n+
    170 }
    \n+
    171
    \n+
    172 int iowner = 0;
    \n+
    173 for (RowIterator i = _A_->begin(); i != _A_->end(); ++i) {
    \n+
    174 if (mask[i.index()] == 0) {
    \n+
    175 std::map<int,int>::iterator it = owner.find(i.index());
    \n+
    176 iowner = it->second;
    \n+
    177 std::pair<RIMapit, RIMapit> foundiit = rimap.equal_range(i.index());
    \n+
    178 for (ColIterator j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end(); ++j) {
    \n+
    179 if (mask[j.index()] == 0) {
    \n+
    180 bool flag = true;
    \n+
    181 for (RIMapit foundi = foundiit.first; foundi != foundiit.second; ++foundi) {
    \n+
    182 std::pair<RIMapit, RIMapit> foundjit = rimap.equal_range(j.index());
    \n+
    183 for (RIMapit foundj = foundjit.first; foundj != foundjit.second; ++foundj)
    \n+
    184 if (foundj->second.first == foundi->second.first)
    \n+
    185 if (foundj->second.second->attribute() == OwnerOverlapCopyAttributeSet::owner
    \n+
    186 || foundj->second.first == iowner
    \n+
    187 || foundj->second.first < communication.communicator().rank()) {
    \n+
    188 flag = false;
    \n+
    189 continue;
    \n+
    190 }
    \n+
    191 if (flag == false)
    \n+
    192 continue;
    \n+
    193 }
    \n+
    194 // don\u00b4t contribute to Ax if
    \n+
    195 // 1. the owner of j has i as interior/border dof
    \n+
    196 // 2. iowner has j as interior/border dof
    \n+
    197 // 3. there is another process with smaller rank that has i and j
    \n+
    198 // as interor/border dofs
    \n+
    199 // if the owner of j does not have i as interior/border dof,
    \n+
    200 // it will not be taken into account
    \n+
    201 if (flag==true)
    \n+
    202 bordercontribution.insert(std::pair<int,int>(i.index(),j.index()));
    \n+
    203 }
    \n+
    204 }
    \n+
    205 }
    \n+
    206 }
    \n+
    207 buildcomm = false;
    \n+
    208 }
    \n+
    209
    \n+
    210 //compute alpha*A*x nonoverlapping case
    \n+
    211 for (RowIterator i = _A_->begin(); i != _A_->end(); ++i) {
    \n+
    212 if (mask[i.index()] == 0) {
    \n+
    213 //dof doesn't belong to process but is border (not ghost)
    \n+
    214 for (ColIterator j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end(); ++j) {
    \n+
    215 if (mask[j.index()] == 1) //j is owner => then sum entries
    \n+
    216 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);
    \n+
    217 else if (mask[j.index()] == 0) {
    \n+
    218 std::pair<MM::iterator, MM::iterator> itp =
    \n+
    219 bordercontribution.equal_range(i.index());
    \n+
    220 for (MM::iterator it = itp.first; it != itp.second; ++it)
    \n+
    221 if ((*it).second == (int)j.index())
    \n+
    222 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);
    \n+
    223 }
    \n+
    224 }
    \n+
    225 }
    \n+
    226 else if (mask[i.index()] == 1) {
    \n+
    227 for (ColIterator j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end(); ++j)
    \n+
    228 if (mask[j.index()] != 2)
    \n+
    229 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);
    \n+
    230 }
    \n+
    231 }
    \n+
    232 }
    \n+
    \n+
    233
    \n+
    \n+\n+
    236 {
    \n+\n+
    238 }
    \n+
    \n
    239
    \n-
    243 typedef typename BitSet::reference Reference;
    \n-
    244
    \n-
    248 typedef bool ValueType;
    \n-
    249
    \n-
    253 typedef typename G::VertexDescriptor Vertex;
    \n-
    254
    \n-
    \n-\n-
    260 : graph_(&g)
    \n-
    261 {}
    \n-
    \n-
    262
    \n-
    \n-\n-
    267 : graph_(0)
    \n-
    268 {}
    \n-
    \n-
    269
    \n-
    270
    \n-
    \n-
    275 Reference operator[](const Vertex& vertex) const
    \n-
    276 {
    \n-
    277 return graph_->getVertexProperties(vertex)[index];
    \n-
    278 }
    \n-
    \n-
    279 private:
    \n-
    280 Graph* graph_;
    \n-
    281 };
    \n-
    \n-
    282
    \n-
    283 } // end namespace Amg
    \n-
    284
    \n-
    285 template<typename G, typename EP, typename VM, typename EM>
    \n-
    \n-
    286 struct PropertyMapTypeSelector<Amg::VertexVisitedTag,Amg::PropertiesGraph<G,Amg::VertexProperties,EP,VM,EM> >
    \n-
    287 {
    \n-\n-
    289 };
    \n-
    \n-
    290
    \n-
    291 template<typename G, typename EP, typename VM, typename EM>
    \n-
    292 typename PropertyMapTypeSelector<Amg::VertexVisitedTag,Amg::PropertiesGraph<G,Amg::VertexProperties,EP,VM,EM> >::Type
    \n-\n-
    297
    \n-
    298 namespace Amg
    \n-
    299 {
    \n-
    \n-
    300 inline std::ostream& operator<<(std::ostream& os, const EdgeProperties& props)
    \n-
    301 {
    \n-
    302 return os << props.flags_;
    \n-
    303 }
    \n-
    \n-
    304
    \n-
    \n-\n-
    306 : flags_()
    \n-
    307 {}
    \n-
    \n-
    308
    \n-
    309 inline std::bitset<EdgeProperties::SIZE>::reference
    \n-
    \n-\n-
    311 {
    \n-
    312 return flags_[v];
    \n-
    313 }
    \n-
    \n-
    314
    \n-
    \n-
    315 inline bool EdgeProperties::operator[](std::size_t i) const
    \n-
    316 {
    \n-
    317 return flags_[i];
    \n-
    318 }
    \n-
    \n-
    319
    \n-
    \n-\n-
    321 {
    \n-
    322 flags_.reset();
    \n-
    323 }
    \n-
    \n-
    324
    \n-
    \n-\n-
    326 {
    \n-
    327 // Set the INFLUENCE bit
    \n-
    328 //flags_ |= (1<<INFLUENCE);
    \n-
    329 flags_.set(INFLUENCE);
    \n-
    330 }
    \n+
    \n+\n+
    242 {
    \n+
    243 return communication;
    \n+
    244 }
    \n+
    \n+
    245 private:
    \n+
    246 std::shared_ptr<const matrix_type> _A_;
    \n+
    247 const communication_type& communication;
    \n+
    248 mutable bool buildcomm;
    \n+
    249 mutable std::vector<double> mask;
    \n+
    250 mutable std::multimap<int,int> bordercontribution;
    \n+
    251 };
    \n+
    \n+
    252
    \n+
    \n+
    255 namespace Amg
    \n+
    256 {
    \n+
    257 template<class T> struct ConstructionTraits;
    \n+
    258 }
    \n+
    \n+
    259
    \n+
    274 template<class C, class P>
    \n+
    \n+\n+
    276 : public Preconditioner<typename P::domain_type,typename P::range_type> {
    \n+
    277 friend struct Amg::ConstructionTraits<NonoverlappingBlockPreconditioner<C,P> >;
    \n+
    278 using X = typename P::domain_type;
    \n+
    279 using Y = typename P::range_type;
    \n+
    280 public:
    \n+
    282 typedef typename P::domain_type domain_type;
    \n+
    284 typedef typename P::range_type range_type;
    \n+\n+
    287
    \n+
    \n+\n+
    303 : _preconditioner(stackobject_to_shared_ptr(p)), _communication(c)
    \n+
    304 { }
    \n+
    \n+
    305
    \n+
    \n+
    313 NonoverlappingBlockPreconditioner (const std::shared_ptr<P>& p, const communication_type& c)
    \n+
    314 : _preconditioner(p), _communication(c)
    \n+
    315 { }
    \n+
    \n+
    316
    \n+
    \n+
    322 virtual void pre (domain_type& x, range_type& b)
    \n+
    323 {
    \n+
    324 _preconditioner->pre(x,b);
    \n+
    325 }
    \n
    \n-
    331
    \n+
    326
    \n
    \n-
    332 inline bool EdgeProperties::influences() const
    \n-
    333 {
    \n-
    334 // Test the INFLUENCE bit
    \n-
    335 return flags_.test(INFLUENCE);
    \n-
    336 }
    \n-
    \n-
    337
    \n-
    \n-\n-
    339 {
    \n-
    340 // Set the first bit.
    \n-
    341 //flags_ |= (1<<DEPEND);
    \n-
    342 flags_.set(DEPEND);
    \n-
    343 }
    \n-
    \n-
    344
    \n-
    \n-\n-
    346 {
    \n-
    347 // reset the first bit.
    \n-
    348 //flags_ &= ~(1<<DEPEND);
    \n-
    349 flags_.reset(DEPEND);
    \n-
    350 }
    \n-
    \n-
    351
    \n-
    \n-
    352 inline bool EdgeProperties::depends() const
    \n-
    353 {
    \n-
    354 // Return the first bit.
    \n-
    355 return flags_.test(DEPEND);
    \n+
    332 virtual void apply (domain_type& v, const range_type& d)
    \n+
    333 {
    \n+
    334 // block preconditioner equivalent to WrappedPreconditioner from
    \n+
    335 // pdelab/backend/ovlpistsolverbackend.hh,
    \n+
    336 // but not to BlockPreconditioner from schwarz.hh
    \n+
    337 _preconditioner->apply(v,d);
    \n+
    338 _communication.addOwnerCopyToOwnerCopy(v,v);
    \n+
    339 }
    \n+
    \n+
    340
    \n+
    341 template<bool forward>
    \n+
    \n+
    342 void apply (X& v, const Y& d)
    \n+
    343 {
    \n+
    344 _preconditioner->template apply<forward>(v,d);
    \n+
    345 _communication.addOwnerCopyToOwnerCopy(v,v);
    \n+
    346 }
    \n+
    \n+
    347
    \n+
    \n+
    353 virtual void post (domain_type& x)
    \n+
    354 {
    \n+
    355 _preconditioner->post(x);
    \n
    356 }
    \n
    \n
    357
    \n-
    \n-\n-
    359 {
    \n-
    360 // reset the second bit.
    \n-
    361 flags_ &= ~(1<<INFLUENCE);
    \n+
    \n+\n+
    360 {
    \n+\n
    362 }
    \n
    \n
    363
    \n-
    \n-
    364 inline bool EdgeProperties::isOneWay() const
    \n-
    365 {
    \n-
    366 // Test whether only the first bit is set
    \n-
    367 //return isStrong() && !isTwoWay();
    \n-
    368 return ((flags_) & std::bitset<SIZE>((1<<INFLUENCE)|(1<<DEPEND)))==(1<<DEPEND);
    \n-
    369 }
    \n-
    \n-
    370
    \n-
    \n-
    371 inline bool EdgeProperties::isTwoWay() const
    \n-
    372 {
    \n-
    373 // Test whether the first and second bit is set
    \n-
    374 return ((flags_) & std::bitset<SIZE>((1<<INFLUENCE)|(1<<DEPEND)))==((1<<INFLUENCE)|(1<<DEPEND));
    \n-
    375 }
    \n-
    \n-
    376
    \n-
    \n-
    377 inline bool EdgeProperties::isStrong() const
    \n-
    378 {
    \n-
    379 // Test whether the first or second bit is set
    \n-
    380 return ((flags_) & std::bitset<SIZE>((1<<INFLUENCE)|(1<<DEPEND))).to_ulong();
    \n-
    381 }
    \n-
    \n-
    382
    \n-
    383
    \n-
    \n-
    384 inline std::ostream& operator<<(std::ostream& os, const VertexProperties& props)
    \n-
    385 {
    \n-
    386 return os << props.flags_;
    \n-
    387 }
    \n-
    \n-
    388
    \n-
    \n-\n-
    390 : flags_()
    \n-
    391 {}
    \n-
    \n-
    392
    \n-
    393
    \n-
    394 inline std::bitset<VertexProperties::SIZE>::reference
    \n-
    \n-\n-
    396 {
    \n-
    397 return flags_[v];
    \n-
    398 }
    \n-
    \n-
    399
    \n-
    \n-
    400 inline bool VertexProperties::operator[](std::size_t v) const
    \n-
    401 {
    \n-
    402 return flags_[v];
    \n-
    403 }
    \n-
    \n-
    404
    \n-
    \n-\n-
    406 {
    \n-
    407 flags_.set(ISOLATED);
    \n-
    408 }
    \n-
    \n-
    409
    \n-
    \n-
    410 inline bool VertexProperties::isolated() const
    \n-
    411 {
    \n-
    412 return flags_.test(ISOLATED);
    \n-
    413 }
    \n-
    \n-
    414
    \n-
    \n-\n-
    416 {
    \n-
    417 flags_.reset(ISOLATED);
    \n-
    418 }
    \n-
    \n-
    419
    \n-
    \n-\n-
    421 {
    \n-
    422 flags_.set(VISITED);
    \n-
    423 }
    \n-
    \n-
    424
    \n-
    \n-
    425 inline bool VertexProperties::visited() const
    \n-
    426 {
    \n-
    427 return flags_.test(VISITED);
    \n-
    428 }
    \n-
    \n-
    429
    \n-
    \n-\n-
    431 {
    \n-
    432 flags_.reset(VISITED);
    \n-
    433 }
    \n-
    \n-
    434
    \n-
    \n-\n-
    436 {
    \n-
    437 flags_.set(FRONT);
    \n-
    438 }
    \n-
    \n-
    439
    \n-
    \n-
    440 inline bool VertexProperties::front() const
    \n-
    441 {
    \n-
    442 return flags_.test(FRONT);
    \n-
    443 }
    \n-
    \n-
    444
    \n-
    \n-\n-
    446 {
    \n-
    447 flags_.reset(FRONT);
    \n-
    448 }
    \n-
    \n-
    449
    \n-
    \n-\n-
    451 {
    \n-
    452 flags_.set(BORDER);
    \n-
    453 }
    \n-
    \n-
    454
    \n-
    \n-\n-
    456 {
    \n-
    457 return flags_.test(BORDER);
    \n-
    458 }
    \n-
    \n-
    459
    \n-
    \n-\n-
    461 {
    \n-
    462 flags_.reset(BORDER);
    \n-
    463 }
    \n-
    \n-
    464
    \n-
    \n-\n-
    466 {
    \n-
    467 flags_.reset();
    \n-
    468 }
    \n-
    \n-
    469
    \n-
    471 }
    \n-
    472}
    \n-
    473#endif
    \n-
    Provides classes for building the matrix graph.
    \n-
    Provides classes for handling internal properties in a graph.
    \n-
    bool depends() const
    Checks wether the vertex the edge points to depends on the vertex the edge starts.
    Definition dependency.hh:352
    \n-
    void resetFront()
    Resets the front node flag.
    Definition dependency.hh:445
    \n-
    std::bitset< VertexProperties::SIZE > BitSet
    The type of the bitset.
    Definition dependency.hh:238
    \n-
    bool isolated() const
    Checks wether the node is isolated.
    Definition dependency.hh:410
    \n-
    bool ValueType
    The value type.
    Definition dependency.hh:248
    \n-
    friend std::ostream & operator<<(std::ostream &os, const VertexProperties &props)
    Definition dependency.hh:384
    \n-
    BitSet::reference Reference
    The reference type.
    Definition dependency.hh:243
    \n-
    bool isTwoWay() const
    Checks wether the edge is two way. I.e. both the influence flag and the depends flag are that.
    Definition dependency.hh:371
    \n-
    void setInfluences()
    Marks the edge as one of which the start vertex by the end vertex.
    Definition dependency.hh:325
    \n-
    VertexProperties()
    Constructor.
    Definition dependency.hh:389
    \n-
    void setDepends()
    Marks the edge as one of which the end point depends on the starting point.
    Definition dependency.hh:338
    \n-
    PropertyGraphVertexPropertyMap()
    Default constructor.
    Definition dependency.hh:266
    \n-
    PropertyGraphVertexPropertyMap(G &g)
    Constructor.
    Definition dependency.hh:259
    \n-
    G::VertexDescriptor Vertex
    The vertex descriptor.
    Definition dependency.hh:253
    \n-
    void resetExcludedBorder()
    Marks the vertex as included in the aggregation.
    Definition dependency.hh:460
    \n-
    void setFront()
    Marks the node as belonging to the current clusters front.
    Definition dependency.hh:435
    \n-
    void reset()
    Reset all flags.
    Definition dependency.hh:465
    \n-
    void setVisited()
    Mark the node as already visited.
    Definition dependency.hh:420
    \n-
    EdgeProperties()
    Constructor.
    Definition dependency.hh:305
    \n-
    void resetInfluences()
    Resets the influence flag.
    Definition dependency.hh:358
    \n-
    G Graph
    The type of the graph with internal properties.
    Definition dependency.hh:233
    \n-
    std::bitset< SIZE >::reference operator[](std::size_t v)
    Access the bits directly.
    Definition dependency.hh:395
    \n-
    void printFlags() const
    Prints the attributes of the edge for debugging.
    \n-
    friend std::ostream & operator<<(std::ostream &os, const EdgeProperties &props)
    Definition dependency.hh:300
    \n-
    Amg::PropertyGraphVertexPropertyMap< Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM >, Amg::VertexProperties::VISITED > Type
    Definition dependency.hh:288
    \n-
    bool influences() const
    Checks wether the start vertex is influenced by the end vertex.
    Definition dependency.hh:332
    \n-
    void setIsolated()
    Marks that node as being isolated.
    Definition dependency.hh:405
    \n-
    bool excludedBorder() const
    Tests whether the vertex is excluded from the aggregation.
    Definition dependency.hh:455
    \n-
    void resetVisited()
    Resets the visited flag.
    Definition dependency.hh:430
    \n-
    bool visited() const
    Checks wether the node is marked as visited.
    Definition dependency.hh:425
    \n-
    Reference operator[](const Vertex &vertex) const
    Get the properties associated to a vertex.
    Definition dependency.hh:275
    \n-
    void reset()
    Reset all flags.
    Definition dependency.hh:320
    \n-
    void resetDepends()
    Resets the depends flag.
    Definition dependency.hh:345
    \n-
    ReadWritePropertyMapTag Category
    Definition dependency.hh:223
    \n-
    void resetIsolated()
    Resets the isolated flag.
    Definition dependency.hh:415
    \n-
    std::ostream & operator<<(std::ostream &os, const AggregationCriterion< T > &criterion)
    Definition aggregates.hh:113
    \n-
    bool isStrong() const
    Checks wether the edge is strong. I.e. the influence or depends flag is set.
    Definition dependency.hh:377
    \n-
    bool front() const
    Checks wether the node is marked as a front node.
    Definition dependency.hh:440
    \n-
    std::bitset< SIZE >::reference operator[](std::size_t v)
    Access the bits directly.
    Definition dependency.hh:310
    \n-
    void setExcludedBorder()
    Marks the vertex as excluded from the aggregation.
    Definition dependency.hh:450
    \n-
    bool isOneWay() const
    Checks wether the edge is one way. I.e. either the influence or the depends flag but is set.
    Definition dependency.hh:364
    \n-
    @ index
    the index to access in the bitset.
    Definition dependency.hh:227
    \n-
    @ VISITED
    Definition dependency.hh:129
    \n-
    @ ISOLATED
    Definition dependency.hh:129
    \n-
    @ SIZE
    Definition dependency.hh:129
    \n-
    @ BORDER
    Definition dependency.hh:129
    \n-
    @ FRONT
    Definition dependency.hh:129
    \n-
    @ DEPEND
    Definition dependency.hh:43
    \n-
    @ SIZE
    Definition dependency.hh:43
    \n-
    @ INFLUENCE
    Definition dependency.hh:43
    \n+
    364 private:
    \n+
    366 std::shared_ptr<P> _preconditioner;
    \n+
    367
    \n+
    369 const communication_type& _communication;
    \n+
    370 };
    \n+
    \n+
    371
    \n+
    374} // end namespace
    \n+
    375
    \n+
    376#endif
    \n+
    Define base class for scalar product and norm.
    \n+
    Some generic functions for pretty printing vectors and matrices.
    \n+
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n+
    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
    \n+\n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Implementation of the BCRSMatrix class.
    \n+
    Implementations of the inverse operator interface.
    \n+
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n+
    Define general preconditioner interface.
    \n+
    The incomplete LU factorization kernels.
    \n
    Definition allocator.hh:11
    \n-
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    Class representing the properties of an ede in the matrix graph.
    Definition dependency.hh:39
    \n-
    Class representing a node in the matrix graph.
    Definition dependency.hh:126
    \n-
    Definition dependency.hh:220
    \n-
    Attaches properties to the edges and vertices of a graph.
    Definition graph.hh:978
    \n-
    Tag idnetifying the visited property of a vertex.
    Definition properties.hh:29
    \n+
    A nonoverlapping operator with communication object.
    Definition novlpschwarz.hh:61
    \n+
    C::PIS PIS
    Definition novlpschwarz.hh:74
    \n+
    C communication_type
    The type of the communication object.
    Definition novlpschwarz.hh:72
    \n+
    std::multimap< int, std::pair< int, RILIterator > > RIMap
    Definition novlpschwarz.hh:82
    \n+
    C::RI RI
    Definition novlpschwarz.hh:75
    \n+
    void novlp_op_apply(const X &x, Y &y, field_type alpha) const
    Definition novlpschwarz.hh:126
    \n+
    NonoverlappingSchwarzOperator(std::shared_ptr< const matrix_type > A, const communication_type &com)
    Definition novlpschwarz.hh:96
    \n+
    M::ConstColIterator ColIterator
    Definition novlpschwarz.hh:79
    \n+
    virtual void apply(const X &x, Y &y) const
    apply operator to x:
    Definition novlpschwarz.hh:101
    \n+
    X domain_type
    The type of the domain.
    Definition novlpschwarz.hh:66
    \n+
    virtual SolverCategory::Category category() const
    Category of the linear operator (see SolverCategory::Category)
    Definition novlpschwarz.hh:235
    \n+
    RIMap::iterator RIMapit
    Definition novlpschwarz.hh:83
    \n+
    virtual const matrix_type & getmat() const
    get matrix via *
    Definition novlpschwarz.hh:121
    \n+
    RIL::const_iterator RILIterator
    Definition novlpschwarz.hh:78
    \n+
    std::multimap< int, int > MM
    Definition novlpschwarz.hh:81
    \n+
    Y range_type
    The type of the range.
    Definition novlpschwarz.hh:68
    \n+
    M matrix_type
    The type of the matrix we operate on.
    Definition novlpschwarz.hh:64
    \n+
    M::ConstRowIterator RowIterator
    Definition novlpschwarz.hh:80
    \n+
    const communication_type & getCommunication() const
    Get the object responsible for communication.
    Definition novlpschwarz.hh:241
    \n+
    virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const
    apply operator to x, scale and add:
    Definition novlpschwarz.hh:109
    \n+
    RI::RemoteIndexList RIL
    Definition novlpschwarz.hh:76
    \n+
    X::field_type field_type
    The field type of the range.
    Definition novlpschwarz.hh:70
    \n+
    NonoverlappingSchwarzOperator(const matrix_type &A, const communication_type &com)
    constructor: just store a reference to a matrix.
    Definition novlpschwarz.hh:92
    \n+
    RI::const_iterator RIIterator
    Definition novlpschwarz.hh:77
    \n+
    Nonoverlapping parallel preconditioner.
    Definition novlpschwarz.hh:276
    \n+
    NonoverlappingBlockPreconditioner(P &p, const communication_type &c)
    Constructor.
    Definition novlpschwarz.hh:302
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition novlpschwarz.hh:359
    \n+
    virtual void apply(domain_type &v, const range_type &d)
    Apply the preconditioner.
    Definition novlpschwarz.hh:332
    \n+
    P::range_type range_type
    The range type of the preconditioner.
    Definition novlpschwarz.hh:284
    \n+
    NonoverlappingBlockPreconditioner(const std::shared_ptr< P > &p, const communication_type &c)
    Constructor.
    Definition novlpschwarz.hh:313
    \n+
    virtual void post(domain_type &x)
    Clean up.
    Definition novlpschwarz.hh:353
    \n+
    C communication_type
    The type of the communication object.
    Definition novlpschwarz.hh:286
    \n+
    virtual void pre(domain_type &x, range_type &b)
    Prepare the preconditioner.
    Definition novlpschwarz.hh:322
    \n+
    void apply(X &v, const Y &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition novlpschwarz.hh:342
    \n+
    P::domain_type domain_type
    The domain type of the preconditioner.
    Definition novlpschwarz.hh:282
    \n+
    A linear operator exporting itself in matrix form.
    Definition operators.hh:109
    \n+
    @ owner
    Definition owneroverlapcopy.hh:61
    \n+
    @ copy
    Definition owneroverlapcopy.hh:61
    \n+
    @ overlap
    Definition owneroverlapcopy.hh:61
    \n+
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ nonoverlapping
    Category for non-overlapping solvers.
    Definition solvercategory.hh:27
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-us-ascii\n+utf-8\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,575 +1,474 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-dependency.hh\n+novlpschwarz.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_DEPENDENCY_HH\n-6#define DUNE_AMG_DEPENDENCY_HH\n+5#ifndef DUNE_ISTL_NOVLPSCHWARZ_HH\n+6#define DUNE_ISTL_NOVLPSCHWARZ_HH\n 7\n-8\n-9#include \n-10#include \n-11\n-12#include \"_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\"\n-13#include \"_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b._\bh_\bh\"\n-14#include \n-15\n+8#include // for input/output to shell\n+9#include // for input/output to files\n+10#include // STL vector class\n+11#include \n+12\n+13#include // Yes, we do some math here\n+14\n+15#include \n 16\n-17namespace _\bD_\bu_\bn_\be\n-18{\n-19 namespace Amg\n-20 {\n-_\b3_\b8 class _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-39 {\n-40 friend std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs&\n-props);\n-41 public:\n-_\b4_\b3 enum {_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE, _\bD_\bE_\bP_\bE_\bN_\bD, _\bS_\bI_\bZ_\bE};\n-44\n-45 private:\n-46\n-47 std::bitset flags_;\n-48 public:\n-50 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs();\n-51\n-53 std::bitset::reference _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v);\n-54\n-56 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v) const;\n-57\n-63 bool _\bd_\be_\bp_\be_\bn_\bd_\bs() const;\n-64\n-69 void _\bs_\be_\bt_\bD_\be_\bp_\be_\bn_\bd_\bs();\n-70\n-74 void _\br_\be_\bs_\be_\bt_\bD_\be_\bp_\be_\bn_\bd_\bs();\n-75\n-80 bool _\bi_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs() const;\n-81\n-85 void _\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs();\n-86\n-90 void _\br_\be_\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs();\n-91\n-96 bool _\bi_\bs_\bO_\bn_\be_\bW_\ba_\by() const;\n-97\n-102 bool _\bi_\bs_\bT_\bw_\bo_\bW_\ba_\by() const;\n-103\n-108 bool _\bi_\bs_\bS_\bt_\br_\bo_\bn_\bg() const;\n-109\n-113 void _\br_\be_\bs_\be_\bt();\n-114\n-_\b1_\b1_\b8 void _\bp_\br_\bi_\bn_\bt_\bF_\bl_\ba_\bg_\bs() const;\n-119 };\n-120\n-_\b1_\b2_\b6 class _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs {\n-127 friend std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs&\n-props);\n-128 public:\n-_\b1_\b2_\b9 enum { _\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD, _\bV_\bI_\bS_\bI_\bT_\bE_\bD, _\bF_\bR_\bO_\bN_\bT, _\bB_\bO_\bR_\bD_\bE_\bR, _\bS_\bI_\bZ_\bE };\n-130 private:\n+17#include \n+18\n+19#include \"_\bi_\bo_\b._\bh_\bh\"\n+20#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+21#include \"_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+22#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+23#include \"_\bi_\bo_\b._\bh_\bh\"\n+24#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n+25#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n+26#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n+27#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n+28#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n+29#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n+30#include \"_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\"\n+31\n+32namespace _\bD_\bu_\bn_\be {\n+33\n+59 template\n+_\b6_\b0 class _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br : public _\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+61 {\n+62 public:\n+_\b6_\b4 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b6_\b6 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b6_\b8 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b7_\b0 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b7_\b2 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n+73\n+_\b7_\b4 typedef typename C::PIS _\bP_\bI_\bS;\n+_\b7_\b5 typedef typename C::RI _\bR_\bI;\n+_\b7_\b6 typedef typename RI::RemoteIndexList _\bR_\bI_\bL;\n+_\b7_\b7 typedef typename RI::const_iterator _\bR_\bI_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b7_\b8 typedef typename RIL::const_iterator _\bR_\bI_\bL_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b7_\b9 typedef typename M::ConstColIterator _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b8_\b0 typedef typename M::ConstRowIterator _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b8_\b1 typedef std::multimap _\bM_\bM;\n+_\b8_\b2 typedef std::multimap > _\bR_\bI_\bM_\ba_\bp;\n+_\b8_\b3 typedef typename RIMap::iterator _\bR_\bI_\bM_\ba_\bp_\bi_\bt;\n+84\n+_\b9_\b2 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br (const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& A, const\n+_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& com)\n+93 : _A_(stackobject_to_shared_ptr(A)), communication(com), buildcomm(true)\n+94 {}\n+95\n+_\b9_\b6 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br (std::shared_ptr A, const\n+_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& com)\n+97 : _A_(A), communication(com), buildcomm(true)\n+98 {}\n+99\n+_\b1_\b0_\b1 virtual void _\ba_\bp_\bp_\bl_\by (const X& x, Y& y) const\n+102 {\n+103 y = 0;\n+104 _\bn_\bo_\bv_\bl_\bp_\b__\bo_\bp_\b__\ba_\bp_\bp_\bl_\by(x,y,1);\n+105 communication.addOwnerCopyToOwnerCopy(y,y);\n+106 }\n+107\n+_\b1_\b0_\b9 virtual void _\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd (_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha, const X& x, Y& y) const\n+110 {\n+111 // only apply communication to alpha*A*x to make it consistent,\n+112 // y already has to be consistent.\n+113 Y y1(y);\n+114 y = 0;\n+115 _\bn_\bo_\bv_\bl_\bp_\b__\bo_\bp_\b__\ba_\bp_\bp_\bl_\by(x,y,alpha);\n+116 communication.addOwnerCopyToOwnerCopy(y,y);\n+117 y += y1;\n+118 }\n+119\n+_\b1_\b2_\b1 virtual const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bg_\be_\bt_\bm_\ba_\bt () const\n+122 {\n+123 return *_A_;\n+124 }\n+125\n+_\b1_\b2_\b6 void _\bn_\bo_\bv_\bl_\bp_\b__\bo_\bp_\b__\ba_\bp_\bp_\bl_\by (const X& x, Y& y, _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha) const\n+127 {\n+128 //get index sets\n+129 const _\bP_\bI_\bS& pis=communication.indexSet();\n+130 const _\bR_\bI& ri = communication.remoteIndices();\n 131\n-133 std::bitset flags_;\n-134\n-135 public:\n-137 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs();\n-138\n-140 std::bitset::reference _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v);\n-141\n-143 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v) const;\n-144\n-151 void _\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd();\n-152\n-156 bool _\bi_\bs_\bo_\bl_\ba_\bt_\be_\bd() const;\n-157\n-161 void _\br_\be_\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd();\n-162\n-166 void _\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd();\n-167\n-171 bool _\bv_\bi_\bs_\bi_\bt_\be_\bd() const;\n-172\n-176 void _\br_\be_\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd();\n-177\n-181 void _\bs_\be_\bt_\bF_\br_\bo_\bn_\bt();\n-182\n-186 bool _\bf_\br_\bo_\bn_\bt() const;\n-187\n-191 void _\br_\be_\bs_\be_\bt_\bF_\br_\bo_\bn_\bt();\n-192\n-196 void _\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br();\n-197\n-202 bool _\be_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br() const;\n-203\n-207 void _\br_\be_\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br();\n-208\n-212 void _\br_\be_\bs_\be_\bt();\n-213\n-214 };\n-215\n-216 template\n-_\b2_\b1_\b7 class _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-218 : public RAPropertyMapHelper::\n-reference,\n-219 PropertyGraphVertexPropertyMap >\n-220 {\n-221 public:\n-222\n-_\b2_\b2_\b3 typedef ReadWritePropertyMapTag _\bC_\ba_\bt_\be_\bg_\bo_\br_\by;\n-224\n-225 enum {\n-227 _\bi_\bn_\bd_\be_\bx = i\n-_\b2_\b2_\b8 };\n-229\n-_\b2_\b3_\b3 typedef G _\bG_\br_\ba_\bp_\bh;\n-234\n-_\b2_\b3_\b8 typedef std::bitset _\bB_\bi_\bt_\bS_\be_\bt;\n+132 // at the beginning make a multimap \"bordercontribution\".\n+133 // process has i and j as border dofs but is not the owner\n+134 // => only contribute to Ax if i,j is in bordercontribution\n+135 if (buildcomm == true) {\n+136\n+137 // set up mask vector\n+138 if (mask.size()!=static_cast::size_type>\n+(x.size())) {\n+139 mask.resize(x.size());\n+140 for (typename std::vector::size_type i=0; ilocal().attribute()==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n+144 mask[i->local().local()] = 0;\n+145 else if (i->local().attribute()==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp)\n+146 mask[i->local().local()] = 2;\n+147 }\n+148\n+149 for (MM::iterator iter = bordercontribution.begin();\n+150 iter != bordercontribution.end(); ++iter)\n+151 bordercontribution.erase(iter);\n+152 std::map owner; //key: local index i, value: process, that owns i\n+153 _\bR_\bI_\bM_\ba_\bp rimap;\n+154\n+155 // for each local index make multimap rimap:\n+156 // key: local index i, data: pair of process that knows i and pointer to RI\n+entry\n+157 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i = _A_->begin(); i != _A_->end(); ++i)\n+158 if (mask[i.index()] == 0)\n+159 for (_\bR_\bI_\bI_\bt_\be_\br_\ba_\bt_\bo_\br remote = ri.begin(); remote != ri.end(); ++remote) {\n+160 _\bR_\bI_\bL& ril = *(remote->second.first);\n+161 for (_\bR_\bI_\bL_\bI_\bt_\be_\br_\ba_\bt_\bo_\br rindex = ril.begin(); rindex != ril.end(); ++rindex)\n+162 if (rindex->attribute() != _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp)\n+163 if (rindex->localIndexPair().local().local() == i.index()) {\n+164 rimap.insert\n+165 (std::make_pair(i.index(),\n+166 std::pair(remote->first, rindex)));\n+167 if(rindex->attribute()==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br)\n+168 owner.insert(std::make_pair(i.index(),remote->first));\n+169 }\n+170 }\n+171\n+172 int iowner = 0;\n+173 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i = _A_->begin(); i != _A_->end(); ++i) {\n+174 if (mask[i.index()] == 0) {\n+175 std::map::iterator it = owner.find(i.index());\n+176 iowner = it->second;\n+177 std::pair foundiit = rimap.equal_range(i.index());\n+178 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end\n+(); ++j) {\n+179 if (mask[j.index()] == 0) {\n+180 bool flag = true;\n+181 for (_\bR_\bI_\bM_\ba_\bp_\bi_\bt foundi = foundiit.first; foundi != foundiit.second; ++foundi)\n+{\n+182 std::pair foundjit = rimap.equal_range(j.index());\n+183 for (_\bR_\bI_\bM_\ba_\bp_\bi_\bt foundj = foundjit.first; foundj != foundjit.second; ++foundj)\n+184 if (foundj->second.first == foundi->second.first)\n+185 if (foundj->second.second->attribute() == _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:\n+_\bo_\bw_\bn_\be_\br\n+186 || foundj->second.first == iowner\n+187 || foundj->second.first < communication.communicator().rank()) {\n+188 flag = false;\n+189 continue;\n+190 }\n+191 if (flag == false)\n+192 continue;\n+193 }\n+194 // don\u00c2\u00b4t contribute to Ax if\n+195 // 1. the owner of j has i as interior/border dof\n+196 // 2. iowner has j as interior/border dof\n+197 // 3. there is another process with smaller rank that has i and j\n+198 // as interor/border dofs\n+199 // if the owner of j does not have i as interior/border dof,\n+200 // it will not be taken into account\n+201 if (flag==true)\n+202 bordercontribution.insert(std::pair(i.index(),j.index()));\n+203 }\n+204 }\n+205 }\n+206 }\n+207 buildcomm = false;\n+208 }\n+209\n+210 //compute alpha*A*x nonoverlapping case\n+211 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i = _A_->begin(); i != _A_->end(); ++i) {\n+212 if (mask[i.index()] == 0) {\n+213 //dof doesn't belong to process but is border (not ghost)\n+214 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end\n+(); ++j) {\n+215 if (mask[j.index()] == 1) //j is owner => then sum entries\n+216 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);\n+217 else if (mask[j.index()] == 0) {\n+218 std::pair itp =\n+219 bordercontribution.equal_range(i.index());\n+220 for (MM::iterator it = itp.first; it != itp.second; ++it)\n+221 if ((*it).second == (int)j.index())\n+222 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);\n+223 }\n+224 }\n+225 }\n+226 else if (mask[i.index()] == 1) {\n+227 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j = (*_A_)[i.index()].begin(); j != (*_A_)[i.index()].end\n+(); ++j)\n+228 if (mask[j.index()] != 2)\n+229 Impl::asMatrix(*j).usmv(alpha,x[j.index()],y[i.index()]);\n+230 }\n+231 }\n+232 }\n+233\n+_\b2_\b3_\b5 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+236 {\n+237 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg;\n+238 }\n 239\n-_\b2_\b4_\b3 typedef typename BitSet::reference _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-244\n-_\b2_\b4_\b8 typedef bool _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be;\n-249\n-_\b2_\b5_\b3 typedef typename G::VertexDescriptor _\bV_\be_\br_\bt_\be_\bx;\n-254\n-_\b2_\b5_\b9 _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp(G& g)\n-260 : graph_(&g)\n-261 {}\n-262\n-_\b2_\b6_\b6 _\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp()\n-267 : graph_(0)\n-268 {}\n-269\n-270\n-_\b2_\b7_\b5 _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](const _\bV_\be_\br_\bt_\be_\bx& vertex) const\n-276 {\n-277 return graph_->getVertexProperties(vertex)[_\bi_\bn_\bd_\be_\bx];\n-278 }\n-279 private:\n-280 _\bG_\br_\ba_\bp_\bh* graph_;\n-281 };\n-282\n-283 } // end namespace Amg\n-284\n-285 template\n-_\b2_\b8_\b6 struct PropertyMapTypeSelector >\n-287 {\n-_\b2_\b8_\b8 typedef _\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\bG_\b,_\bA_\bm_\bg_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b,_\bE_\bP_\b,_\bV_\bM_\b,_\bE_\bM_\b>, Amg::VertexProperties::VISITED> _\bT_\by_\bp_\be;\n-289 };\n-290\n-291 template\n-292 typename PropertyMapTypeSelector >::Type\n-_\b2_\b9_\b3 _\bg_\be_\bt([[maybe_unused]] const _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg& tag, _\bA_\bm_\bg_\b:_\b:\n-_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\bG_\b,_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b,_\bE_\bP_\b,_\bV_\bM_\b,_\bE_\bM_\b>& graph)\n-294 {\n-295 return _\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b<_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\bG_\b,_\bA_\bm_\bg_\b:_\b:\n-_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b,_\bE_\bP_\b,_\bV_\bM_\b,_\bE_\bM_\b>, _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bV_\bI_\bS_\bI_\bT_\bE_\bD>(graph);\n-296 }\n-297\n-298 namespace Amg\n-299 {\n-_\b3_\b0_\b0 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs&\n-props)\n-301 {\n-302 return os << props.flags_;\n-303 }\n-304\n-_\b3_\b0_\b5 inline _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs()\n-306 : flags_()\n-307 {}\n-308\n-309 inline std::bitset::reference\n-_\b3_\b1_\b0 _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v)\n-311 {\n-312 return flags_[v];\n-313 }\n-314\n-_\b3_\b1_\b5 inline bool _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t i) const\n-316 {\n-317 return flags_[i];\n-318 }\n-319\n-_\b3_\b2_\b0 inline void _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt()\n-321 {\n-322 flags_.reset();\n-323 }\n-324\n-_\b3_\b2_\b5 inline void _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs()\n-326 {\n-327 // Set the INFLUENCE bit\n-328 //flags_ |= (1< _A_;\n+247 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& communication;\n+248 mutable bool buildcomm;\n+249 mutable std::vector mask;\n+_\b2_\b5_\b0 mutable std::multimap bordercontribution;\n+251 };\n+252\n+_\b2_\b5_\b5 namespace Amg\n+256 {\n+257 template struct ConstructionTraits;\n+258 }\n+259\n+274 template\n+_\b2_\b7_\b5 class _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+276 : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n+277 friend struct Amg::\n+ConstructionTraits<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >;\n+278 using X = typename P::domain_type;\n+279 using Y = typename P::range_type;\n+280 public:\n+_\b2_\b8_\b2 typedef typename P::domain_type _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b2_\b8_\b4 typedef typename P::range_type _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b2_\b8_\b6 typedef C _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be;\n+287\n+_\b3_\b0_\b2 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br (P& p, const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& c)\n+303 : _preconditioner(stackobject_to_shared_ptr(p)), _communication(c)\n+304 { }\n+305\n+_\b3_\b1_\b3 _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br (const std::shared_ptr

    & p, const\n+_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& c)\n+314 : _preconditioner(p), _communication(c)\n+315 { }\n+316\n+_\b3_\b2_\b2 virtual void _\bp_\br_\be (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b)\n+323 {\n+324 _preconditioner->pre(x,b);\n+325 }\n+326\n+_\b3_\b3_\b2 virtual void _\ba_\bp_\bp_\bl_\by (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& v, const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& d)\n 333 {\n-334 // Test the INFLUENCE bit\n-335 return flags_.test(_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE);\n-336 }\n-337\n-_\b3_\b3_\b8 inline void _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bD_\be_\bp_\be_\bn_\bd_\bs()\n-339 {\n-340 // Set the first bit.\n-341 //flags_ |= (1<apply(v,d);\n+338 _communication.addOwnerCopyToOwnerCopy(v,v);\n+339 }\n+340\n+341 template\n+_\b3_\b4_\b2 void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+343 {\n+344 _preconditioner->template apply(v,d);\n+345 _communication.addOwnerCopyToOwnerCopy(v,v);\n+346 }\n+347\n+_\b3_\b5_\b3 virtual void _\bp_\bo_\bs_\bt (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x)\n+354 {\n+355 _preconditioner->post(x);\n 356 }\n 357\n-_\b3_\b5_\b8 inline void _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs()\n-359 {\n-360 // reset the second bit.\n-361 flags_ &= ~(1<<_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE);\n+_\b3_\b5_\b9 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+360 {\n+361 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg;\n 362 }\n 363\n-_\b3_\b6_\b4 inline bool _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bO_\bn_\be_\bW_\ba_\by() const\n-365 {\n-366 // Test whether only the first bit is set\n-367 //return isStrong() && !isTwoWay();\n-368 return ((flags_) & std::bitset((1<<_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE)|(1<<_\bD_\bE_\bP_\bE_\bN_\bD)))==\n-(1<<_\bD_\bE_\bP_\bE_\bN_\bD);\n-369 }\n-370\n-_\b3_\b7_\b1 inline bool _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bT_\bw_\bo_\bW_\ba_\by() const\n-372 {\n-373 // Test whether the first and second bit is set\n-374 return ((flags_) & std::bitset((1<<_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE)|(1<<_\bD_\bE_\bP_\bE_\bN_\bD)))==(\n-(1<<_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE)|(1<<_\bD_\bE_\bP_\bE_\bN_\bD));\n-375 }\n-376\n-_\b3_\b7_\b7 inline bool _\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bS_\bt_\br_\bo_\bn_\bg() const\n-378 {\n-379 // Test whether the first or second bit is set\n-380 return ((flags_) & std::bitset((1<<_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE)|(1<<_\bD_\bE_\bP_\bE_\bN_\bD))).to_ulong\n-();\n-381 }\n-382\n-383\n-_\b3_\b8_\b4 inline std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<(std::ostream& os, const _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs&\n-props)\n-385 {\n-386 return os << props.flags_;\n-387 }\n-388\n-_\b3_\b8_\b9 inline _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs()\n-390 : flags_()\n-391 {}\n-392\n-393\n-394 inline std::bitset::reference\n-_\b3_\b9_\b5 _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v)\n-396 {\n-397 return flags_[v];\n-398 }\n-399\n-_\b4_\b0_\b0 inline bool _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](std::size_t v) const\n-401 {\n-402 return flags_[v];\n-403 }\n-404\n-_\b4_\b0_\b5 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd()\n-406 {\n-407 flags_.set(_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n-408 }\n-409\n-_\b4_\b1_\b0 inline bool _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bo_\bl_\ba_\bt_\be_\bd() const\n-411 {\n-412 return flags_.test(_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n-413 }\n-414\n-_\b4_\b1_\b5 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd()\n-416 {\n-417 flags_.reset(_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD);\n-418 }\n-419\n-_\b4_\b2_\b0 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd()\n-421 {\n-422 flags_.set(_\bV_\bI_\bS_\bI_\bT_\bE_\bD);\n-423 }\n-424\n-_\b4_\b2_\b5 inline bool _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\be_\bd() const\n-426 {\n-427 return flags_.test(_\bV_\bI_\bS_\bI_\bT_\bE_\bD);\n-428 }\n-429\n-_\b4_\b3_\b0 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd()\n-431 {\n-432 flags_.reset(_\bV_\bI_\bS_\bI_\bT_\bE_\bD);\n-433 }\n-434\n-_\b4_\b3_\b5 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bF_\br_\bo_\bn_\bt()\n-436 {\n-437 flags_.set(_\bF_\bR_\bO_\bN_\bT);\n-438 }\n-439\n-_\b4_\b4_\b0 inline bool _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bf_\br_\bo_\bn_\bt() const\n-441 {\n-442 return flags_.test(_\bF_\bR_\bO_\bN_\bT);\n-443 }\n-444\n-_\b4_\b4_\b5 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bF_\br_\bo_\bn_\bt()\n-446 {\n-447 flags_.reset(_\bF_\bR_\bO_\bN_\bT);\n-448 }\n-449\n-_\b4_\b5_\b0 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br()\n-451 {\n-452 flags_.set(_\bB_\bO_\bR_\bD_\bE_\bR);\n-453 }\n-454\n-_\b4_\b5_\b5 inline bool _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\be_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br() const\n-456 {\n-457 return flags_.test(_\bB_\bO_\bR_\bD_\bE_\bR);\n-458 }\n-459\n-_\b4_\b6_\b0 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br()\n-461 {\n-462 flags_.reset(_\bB_\bO_\bR_\bD_\bE_\bR);\n-463 }\n-464\n-_\b4_\b6_\b5 inline void _\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt()\n-466 {\n-467 flags_.reset();\n-468 }\n-469\n-471 }\n-472}\n-473#endif\n-_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\n-Provides classes for building the matrix graph.\n-_\bp_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b._\bh_\bh\n-Provides classes for handling internal properties in a graph.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bd_\be_\bp_\be_\bn_\bd_\bs\n-bool depends() const\n-Checks wether the vertex the edge points to depends on the vertex the edge\n-starts.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:352\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bF_\br_\bo_\bn_\bt\n-void resetFront()\n-Resets the front node flag.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:445\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bB_\bi_\bt_\bS_\be_\bt\n-std::bitset< VertexProperties::SIZE > BitSet\n-The type of the bitset.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:238\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bo_\bl_\ba_\bt_\be_\bd\n-bool isolated() const\n-Checks wether the node is isolated.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:410\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n-bool ValueType\n-The value type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:248\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-friend std::ostream & operator<<(std::ostream &os, const VertexProperties\n-&props)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:384\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-BitSet::reference Reference\n-The reference type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:243\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bT_\bw_\bo_\bW_\ba_\by\n-bool isTwoWay() const\n-Checks wether the edge is two way. I.e. both the influence flag and the depends\n-flag are that.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:371\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs\n-void setInfluences()\n-Marks the edge as one of which the start vertex by the end vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:325\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-VertexProperties()\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:389\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bD_\be_\bp_\be_\bn_\bd_\bs\n-void setDepends()\n-Marks the edge as one of which the end point depends on the starting point.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:338\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-PropertyGraphVertexPropertyMap()\n-Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:266\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-PropertyGraphVertexPropertyMap(G &g)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:259\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bV_\be_\br_\bt_\be_\bx\n-G::VertexDescriptor Vertex\n-The vertex descriptor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:253\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br\n-void resetExcludedBorder()\n-Marks the vertex as included in the aggregation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:460\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bF_\br_\bo_\bn_\bt\n-void setFront()\n-Marks the node as belonging to the current clusters front.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:435\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt\n-void reset()\n-Reset all flags.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:465\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd\n-void setVisited()\n-Mark the node as already visited.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:420\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-EdgeProperties()\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:305\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs\n-void resetInfluences()\n-Resets the influence flag.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:358\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bG_\br_\ba_\bp_\bh\n-G Graph\n-The type of the graph with internal properties.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:233\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-std::bitset< SIZE >::reference operator[](std::size_t v)\n-Access the bits directly.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bF_\bl_\ba_\bg_\bs\n-void printFlags() const\n-Prints the attributes of the edge for debugging.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-friend std::ostream & operator<<(std::ostream &os, const EdgeProperties &props)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:300\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\bT_\by_\bp_\be_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg_\b,_\b _\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh_\b<_\b _\bG_\b,\n-_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b,_\b _\bE_\bP_\b,_\b _\bV_\bM_\b,_\b _\bE_\bM_\b _\b>_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n-Amg::PropertyGraphVertexPropertyMap< Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM >, Amg::VertexProperties::VISITED > Type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:288\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bn_\bf_\bl_\bu_\be_\bn_\bc_\be_\bs\n-bool influences() const\n-Checks wether the start vertex is influenced by the end vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:332\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n-void setIsolated()\n-Marks that node as being isolated.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:405\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\be_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br\n-bool excludedBorder() const\n-Tests whether the vertex is excluded from the aggregation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:455\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bV_\bi_\bs_\bi_\bt_\be_\bd\n-void resetVisited()\n-Resets the visited flag.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:430\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bv_\bi_\bs_\bi_\bt_\be_\bd\n-bool visited() const\n-Checks wether the node is marked as visited.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:425\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-Reference operator[](const Vertex &vertex) const\n-Get the properties associated to a vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:275\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt\n-void reset()\n-Reset all flags.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:320\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bD_\be_\bp_\be_\bn_\bd_\bs\n-void resetDepends()\n-Resets the depends flag.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:345\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-ReadWritePropertyMapTag Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:223\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bs_\bo_\bl_\ba_\bt_\be_\bd\n-void resetIsolated()\n-Resets the isolated flag.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:415\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-std::ostream & operator<<(std::ostream &os, const AggregationCriterion< T >\n-&criterion)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:113\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bS_\bt_\br_\bo_\bn_\bg\n-bool isStrong() const\n-Checks wether the edge is strong. I.e. the influence or depends flag is set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:377\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bf_\br_\bo_\bn_\bt\n-bool front() const\n-Checks wether the node is marked as a front node.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:440\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-std::bitset< SIZE >::reference operator[](std::size_t v)\n-Access the bits directly.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:310\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bs_\be_\bt_\bE_\bx_\bc_\bl_\bu_\bd_\be_\bd_\bB_\bo_\br_\bd_\be_\br\n-void setExcludedBorder()\n-Marks the vertex as excluded from the aggregation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:450\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bi_\bs_\bO_\bn_\be_\bW_\ba_\by\n-bool isOneWay() const\n-Checks wether the edge is one way. I.e. either the influence or the depends\n-flag but is set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:364\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp_\b:_\b:_\bi_\bn_\bd_\be_\bx\n-@ index\n-the index to access in the bitset.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:227\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bV_\bI_\bS_\bI_\bT_\bE_\bD\n-@ VISITED\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:129\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bI_\bS_\bO_\bL_\bA_\bT_\bE_\bD\n-@ ISOLATED\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:129\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bS_\bI_\bZ_\bE\n-@ SIZE\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:129\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bB_\bO_\bR_\bD_\bE_\bR\n-@ BORDER\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:129\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bF_\bR_\bO_\bN_\bT\n-@ FRONT\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:129\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bD_\bE_\bP_\bE_\bN_\bD\n-@ DEPEND\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:43\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bS_\bI_\bZ_\bE\n-@ SIZE\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:43\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\b:_\b:_\bI_\bN_\bF_\bL_\bU_\bE_\bN_\bC_\bE\n-@ INFLUENCE\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:43\n+364 private:\n+366 std::shared_ptr

    _preconditioner;\n+367\n+369 const _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be& _communication;\n+370 };\n+371\n+374} // end namespace\n+375\n+376#endif\n+_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n+Define base class for scalar product and norm.\n+_\bi_\bo_\b._\bh_\bh\n+Some generic functions for pretty printing vectors and matrices.\n+_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n+Classes providing communication interfaces for overlapping Schwarz methods.\n+_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\n+Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n+generic way.\n+_\bv_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+???\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n+_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n+Implementations of the inverse operator interface.\n+_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n+Define general, extensible interface for operators. The available\n+implementation wraps a matrix.\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n+Define general preconditioner interface.\n+_\bi_\bl_\bu_\b._\bh_\bh\n+The incomplete LU factorization kernels.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bE_\bd_\bg_\be_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-Class representing the properties of an ede in the matrix graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:39\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs\n-Class representing a node in the matrix graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bG_\br_\ba_\bp_\bh_\bV_\be_\br_\bt_\be_\bx_\bP_\br_\bo_\bp_\be_\br_\bt_\by_\bM_\ba_\bp\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:220\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\br_\bo_\bp_\be_\br_\bt_\bi_\be_\bs_\bG_\br_\ba_\bp_\bh\n-Attaches properties to the edges and vertices of a graph.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:978\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bV_\be_\br_\bt_\be_\bx_\bV_\bi_\bs_\bi_\bt_\be_\bd_\bT_\ba_\bg\n-Tag idnetifying the visited property of a vertex.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn properties.hh:29\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A nonoverlapping operator with communication object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bP_\bI_\bS\n+C::PIS PIS\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:74\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n+C communication_type\n+The type of the communication object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:72\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI_\bM_\ba_\bp\n+std::multimap< int, std::pair< int, RILIterator > > RIMap\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI\n+C::RI RI\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bn_\bo_\bv_\bl_\bp_\b__\bo_\bp_\b__\ba_\bp_\bp_\bl_\by\n+void novlp_op_apply(const X &x, Y &y, field_type alpha) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+NonoverlappingSchwarzOperator(std::shared_ptr< const matrix_type > A, const\n+communication_type &com)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:96\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+M::ConstColIterator ColIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:79\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(const X &x, Y &y) const\n+apply operator to x:\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:101\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The type of the domain.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:66\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the linear operator (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:235\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI_\bM_\ba_\bp_\bi_\bt\n+RIMap::iterator RIMapit\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:83\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bm_\ba_\bt\n+virtual const matrix_type & getmat() const\n+get matrix via *\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:121\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI_\bL_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RIL::const_iterator RILIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bM_\bM\n+std::multimap< int, int > MM\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The type of the range.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:68\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+The type of the matrix we operate on.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:64\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+M::ConstRowIterator RowIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:80\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+const communication_type & getCommunication() const\n+Get the object responsible for communication.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:241\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd\n+virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const\n+apply operator to x, scale and add:\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:109\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI_\bL\n+RI::RemoteIndexList RIL\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:76\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the range.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+NonoverlappingSchwarzOperator(const matrix_type &A, const communication_type\n+&com)\n+constructor: just store a reference to a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:92\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\bI_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RI::const_iterator RIIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:77\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Nonoverlapping parallel preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:276\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+NonoverlappingBlockPreconditioner(P &p, const communication_type &c)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:302\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:359\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(domain_type &v, const range_type &d)\n+Apply the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:332\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+P::range_type range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:284\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+NonoverlappingBlockPreconditioner(const std::shared_ptr< P > &p, const\n+communication_type &c)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:313\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(domain_type &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:353\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b__\bt_\by_\bp_\be\n+C communication_type\n+The type of the communication object.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:286\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\br_\be\n+virtual void pre(domain_type &x, range_type &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:322\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(X &v, const Y &d)\n+Apply one step of the preconditioner to the system A(v)=d.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:342\n+_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bB_\bl_\bo_\bc_\bk_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+P::domain_type domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:282\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A linear operator exporting itself in matrix form.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:109\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br\n+@ owner\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by\n+@ copy\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp\n+@ overlap\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n+@ nonoverlapping\n+Category for non-overlapping solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:27\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00143.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00143.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: amg.hh File Reference\n+dune-istl: solverfactory.hh File Reference\n \n \n \n \n \n \n \n@@ -65,79 +65,95 @@\n

    \n
    \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n
    \n \n- \n+
    solverfactory.hh File Reference
    \n
    \n
    \n-\n-

    The AMG preconditioner. \n-More...

    \n-
    #include <memory>
    \n-#include <sstream>
    \n-#include <dune/common/exceptions.hh>
    \n-#include <dune/istl/paamg/smoother.hh>
    \n-#include <dune/istl/paamg/transfer.hh>
    \n-#include <dune/istl/paamg/matrixhierarchy.hh>
    \n-#include <dune/istl/solvers.hh>
    \n-#include <dune/istl/scalarproducts.hh>
    \n-#include <dune/istl/superlu.hh>
    \n-#include <dune/istl/umfpack.hh>
    \n-#include <dune/istl/solvertype.hh>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/scalarvectorview.hh>
    \n-#include <dune/common/scalarmatrixview.hh>
    \n+
    #include <unordered_map>
    \n+#include <functional>
    \n+#include <memory>
    \n #include <dune/common/parametertree.hh>
    \n+#include <dune/common/singleton.hh>
    \n+#include "solverregistry.hh"
    \n+#include <dune/istl/solver.hh>
    \n+#include <dune/istl/schwarz.hh>
    \n+#include <dune/istl/novlpschwarz.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::Amg::AMG< M, X, S, PI, A >
     Parallel algebraic multigrid based on agglomeration. More...
     
    struct  Dune::Amg::DirectSolverSelector< Matrix, Vector >
     
    struct  Dune::Amg::DirectSolverSelector< Matrix, Vector >::Solver< M, SolverType >
     
    struct  Dune::Amg::DirectSolverSelector< Matrix, Vector >::Solver< M, superlu >
     
    struct  Dune::AMGCreator
     
    struct  Dune::AMGCreator::isValidBlockType< class >
     
    struct  Dune::AMGCreator::isValidBlockType< FieldMatrix< T, n, m > >
    class  Dune::SolverFactory< Operator >
     Factory to assembly solvers configured by a ParameterTree. More...
     
    \n \n \n \n-\n-\n+

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Typedefs

    template<class M , class X , class Y >
    using Dune::DirectSolverSignature = std::shared_ptr< InverseOperator< X, Y > >(const M &, const ParameterTree &)
     
    template<class M , class X , class Y >
    using Dune::DirectSolverFactory = Singleton< ParameterizedObjectFactory< DirectSolverSignature< M, X, Y > > >
     
    template<class M , class X , class Y >
    using Dune::PreconditionerSignature = std::shared_ptr< Preconditioner< X, Y > >(const std::shared_ptr< M > &, const ParameterTree &)
     
    template<class M , class X , class Y >
    using Dune::PreconditionerFactory = Singleton< ParameterizedObjectFactory< PreconditionerSignature< M, X, Y > > >
     
    template<class X , class Y >
    using Dune::IterativeSolverSignature = std::shared_ptr< InverseOperator< X, Y > >(const std::shared_ptr< LinearOperator< X, Y > > &, const std::shared_ptr< ScalarProduct< X > > &, const std::shared_ptr< Preconditioner< X, Y > >, const ParameterTree &)
     
    template<class X , class Y >
    using Dune::IterativeSolverFactory = Singleton< ParameterizedObjectFactory< IterativeSolverSignature< X, Y > > >
     
    \n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n Functions

     Dune::DUNE_REGISTER_PRECONDITIONER ("amg", AMGCreator())
     
    template<class O , class Preconditioner >
    std::shared_ptr< PreconditionerDune::wrapPreconditioner4Parallel (const std::shared_ptr< Preconditioner > &prec, const O &)
     
    template<class M , class X , class Y , class C , class Preconditioner >
    std::shared_ptr< PreconditionerDune::wrapPreconditioner4Parallel (const std::shared_ptr< Preconditioner > &prec, const std::shared_ptr< OverlappingSchwarzOperator< M, X, Y, C > > &op)
     
    template<class M , class X , class Y , class C , class Preconditioner >
    std::shared_ptr< PreconditionerDune::wrapPreconditioner4Parallel (const std::shared_ptr< Preconditioner > &prec, const std::shared_ptr< NonoverlappingSchwarzOperator< M, X, Y, C > > &op)
     
    template<class M , class X , class Y >
    std::shared_ptr< ScalarProduct< X > > Dune::createScalarProduct (const std::shared_ptr< MatrixAdapter< M, X, Y > > &)
     
    template<class M , class X , class Y , class C >
    std::shared_ptr< ScalarProduct< X > > Dune::createScalarProduct (const std::shared_ptr< OverlappingSchwarzOperator< M, X, Y, C > > &op)
     
    template<class M , class X , class Y , class C >
    std::shared_ptr< ScalarProduct< X > > Dune::createScalarProduct (const std::shared_ptr< NonoverlappingSchwarzOperator< M, X, Y, C > > &op)
     
    template<class Operator >
    std::shared_ptr< InverseOperator< typename Operator::domain_type, typename Operator::range_type > > Dune::getSolverFromFactory (std::shared_ptr< Operator > op, const ParameterTree &config, std::shared_ptr< Preconditioner< typename Operator::domain_type, typename Operator::range_type > > prec=nullptr)
     Instantiates an InverseOperator from an Operator and a configuration given as a ParameterTree.
     
    \n-

    Detailed Description

    \n-

    The AMG preconditioner.

    \n-
    Author
    Markus Blatt
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,60 +1,101 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-amg.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n-\u00bb _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\b _\bA_\bl_\bg_\be_\bb_\br_\ba_\bi_\bc_\b _\bM_\bu_\bl_\bt_\bi_\bg_\br_\bi_\bd\n-The AMG preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+solverfactory.hh File Reference\n+#include \n+#include \n #include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-#include \n-#include \n-#include \n #include \n+#include \n+#include \"_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\"\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bS_\b,_\b _\bP_\bI_\b,_\b _\bA_\b _\b>\n-\u00a0 Parallel algebraic multigrid based on agglomeration. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\b>_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,\n- _\bS_\bo_\bl_\bv_\be_\br_\bT_\by_\bp_\be_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\b>_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bs_\bu_\bp_\be_\br_\bl_\bu\n- _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be_\b<_\b _\bc_\bl_\ba_\bs_\bs_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b>\n+\u00a0 Factory to assembly solvers configured by a ParameterTree. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg\n+T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr< _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< X, Y > >\n+ (const M &, const ParameterTree &)\n+\u00a0\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by = Singleton< ParameterizedObjectFactory<\n+ _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be< M, X, Y > > >\n+\u00a0\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br< X, Y >\n+ >(const std::shared_ptr< M > &, const ParameterTree &)\n+\u00a0\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by = Singleton< ParameterizedObjectFactory<\n+ _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be< M, X, Y > > >\n+\u00a0\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr< _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< X, Y\n+ > >(const std::shared_ptr< _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< X, Y > > &, const std::\n+ shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > > &, const std::shared_ptr<\n+ _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br< X, Y > >, const ParameterTree &)\n+\u00a0\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by = Singleton< ParameterizedObjectFactory<\n+ _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be< X, Y > > >\n \u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"amg\", _\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br())\n+template\n+ std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl (const\n+ std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br > &prec,\n+ const O &)\n+\u00a0\n+template\n+ std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl (const\n+ std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br > &prec,\n+ const std::shared_ptr<\n+ _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< M, X, Y, C >\n+ > &op)\n+\u00a0\n+template\n+ std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl (const\n+ std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br > &prec,\n+ const std::shared_ptr<\n+ _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< M, X, Y,\n+ C > > &op)\n+\u00a0\n+template\n+std::shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const std::\n+ shared_ptr< _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br< M, X, Y > >\n+ &)\n+\u00a0\n+template\n+std::shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const std::\n+ shared_ptr< _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br<\n+ M, X, Y, C > > &op)\n+\u00a0\n+template\n+std::shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const std::\n+ shared_ptr<\n+ _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< M, X, Y,\n+ C > > &op)\n+\u00a0\n+template\n+ std::shared_ptr< _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\br_\bo_\bm_\bF_\ba_\bc_\bt_\bo_\br_\by (std::\n+ typename Operator::domain_type, shared_ptr< Operator > op, const\n+ typename Operator::range_type > >\u00a0 ParameterTree &config, std::shared_ptr<\n+ _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br< typename Operator::\n+ domain_type, typename Operator::\n+ range_type > > prec=nullptr)\n+ Instantiates an _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br from an\n+\u00a0 Operator and a configuration given as a\n+ ParameterTree.\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-The AMG preconditioner.\n- Author\n- Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00143_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00143_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: amg.hh Source File\n+dune-istl: solverfactory.hh Source File\n \n \n \n \n \n \n \n@@ -70,1282 +70,249 @@\n \n \n \n \n \n
    \n \n+
  • dune
  • istl
  • \n
    \n \n
    \n-
    amg.hh
    \n+
    solverfactory.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_AMG_AMG_HH
    \n-
    6#define DUNE_AMG_AMG_HH
    \n-
    7
    \n-
    8#include <memory>
    \n-
    9#include <sstream>
    \n-
    10#include <dune/common/exceptions.hh>
    \n-\n-\n-\n-
    14#include <dune/istl/solvers.hh>
    \n-\n-
    16#include <dune/istl/superlu.hh>
    \n-
    17#include <dune/istl/umfpack.hh>
    \n-\n-
    19#include <dune/common/typetraits.hh>
    \n-
    20#include <dune/common/exceptions.hh>
    \n-
    21#include <dune/common/scalarvectorview.hh>
    \n-
    22#include <dune/common/scalarmatrixview.hh>
    \n-
    23#include <dune/common/parametertree.hh>
    \n-
    24
    \n-
    25namespace Dune
    \n-
    26{
    \n-
    27 namespace Amg
    \n-
    28 {
    \n-
    46 template<class M, class X, class S, class P, class K, class A>
    \n-
    47 class KAMG;
    \n-
    48
    \n-
    49 template<class T>
    \n-
    50 class KAmgTwoGrid;
    \n-
    51
    \n-
    62 template<class M, class X, class S, class PI=SequentialInformation,
    \n-
    63 class A=std::allocator<X> >
    \n-
    \n-
    64 class AMG : public Preconditioner<X,X>
    \n-
    65 {
    \n-
    66 template<class M1, class X1, class S1, class P1, class K1, class A1>
    \n-
    67 friend class KAMG;
    \n-
    68
    \n-
    69 friend class KAmgTwoGrid<AMG>;
    \n-
    70
    \n-
    71 public:
    \n-
    73 typedef M Operator;
    \n-\n-\n-\n-
    85
    \n-
    87 typedef X Domain;
    \n-
    89 typedef X Range;
    \n-\n-
    97 typedef S Smoother;
    \n-
    98
    \n-\n-
    101
    \n-
    \n-
    111 AMG(OperatorHierarchy& matrices, CoarseSolver& coarseSolver,
    \n-
    112 const SmootherArgs& smootherArgs, const Parameters& parms);
    \n-
    113
    \n-
    125 template<class C>
    \n-
    \n-
    126 AMG(const Operator& fineOperator, const C& criterion,
    \n-
    127 const SmootherArgs& smootherArgs=SmootherArgs(),
    \n-\n-
    129
    \n-
    \n-
    180 AMG(std::shared_ptr<const Operator> fineOperator, const ParameterTree& configuration, const ParallelInformation& pinfo=ParallelInformation());
    \n-
    181
    \n-
    \n-
    185 AMG(const AMG& amg);
    \n-
    186
    \n-
    \n-
    188 void pre(Domain& x, Range& b);
    \n-
    189
    \n-
    \n-
    191 void apply(Domain& v, const Range& d);
    \n-
    192
    \n-
    \n-\n-
    195 {
    \n-
    196 return category_;
    \n-
    197 }
    \n-
    \n-
    198
    \n-
    \n-
    200 void post(Domain& x);
    \n-
    201
    \n-
    206 template<class A1>
    \n-
    \n-
    207 void getCoarsestAggregateNumbers(std::vector<std::size_t,A1>& cont);
    \n-
    208
    \n-
    \n-
    209 std::size_t levels();
    \n-
    210
    \n-
    \n-
    211 std::size_t maxlevels();
    \n-
    212
    \n-
    \n-\n-
    222 {
    \n-
    223 matrices_->recalculateGalerkin(NegateSet<typename PI::OwnerSet>());
    \n-
    224 }
    \n-
    \n-
    225
    \n-
    \n-\n-
    231
    \n-
    232 private:
    \n-
    233 /*
    \n-
    234 * @brief Helper function to create hierarchies with parameter tree.
    \n-
    235 *
    \n-
    236 * Will create the coarsen criterion with the norm and create the
    \n-
    237 * Hierarchies
    \n-
    238 * \\tparam Norm Type of the norm to use.
    \n-
    239 */
    \n-
    240 template<class Norm>
    \n-
    241 void createCriterionAndHierarchies(std::shared_ptr<const Operator> matrixptr,
    \n-
    242 const PI& pinfo, const Norm&,
    \n-
    243 const ParameterTree& configuration,
    \n-
    244 std::true_type compiles = std::true_type());
    \n-
    245 template<class Norm>
    \n-
    246 void createCriterionAndHierarchies(std::shared_ptr<const Operator> matrixptr,
    \n-
    247 const PI& pinfo, const Norm&,
    \n-
    248 const ParameterTree& configuration,
    \n-
    249 std::false_type);
    \n-
    254 template<class C>
    \n-
    255 void createHierarchies(C& criterion, std::shared_ptr<const Operator> matrixptr,
    \n-
    256 const PI& pinfo, const ParameterTree& configuration);
    \n-
    263 template<class C>
    \n-
    264 void createHierarchies(C& criterion,
    \n-
    265 const std::shared_ptr<const Operator>& matrixptr,
    \n-
    266 const PI& pinfo);
    \n-
    273 struct LevelContext
    \n-
    274 {
    \n-\n-\n-
    283 typename OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix;
    \n-\n-
    291 typename OperatorHierarchy::RedistributeInfoList::const_iterator redist;
    \n-
    295 typename OperatorHierarchy::AggregatesMapList::const_iterator aggregates;
    \n-\n-\n-\n-
    311 std::size_t level;
    \n-
    312 };
    \n-
    313
    \n-
    314
    \n-
    319 void mgc(LevelContext& levelContext);
    \n-
    320
    \n-
    321 void additiveMgc();
    \n-
    322
    \n-
    329 void moveToFineLevel(LevelContext& levelContext,bool processedFineLevel);
    \n-
    330
    \n-
    335 bool moveToCoarseLevel(LevelContext& levelContext);
    \n-
    336
    \n-
    341 void initIteratorsWithFineLevel(LevelContext& levelContext);
    \n-
    342
    \n-
    344 std::shared_ptr<OperatorHierarchy> matrices_;
    \n-
    346 SmootherArgs smootherArgs_;
    \n-
    348 std::shared_ptr<Hierarchy<Smoother,A> > smoothers_;
    \n-
    350 std::shared_ptr<CoarseSolver> solver_;
    \n-
    352 std::shared_ptr<Hierarchy<Range,A>> rhs_;
    \n-
    354 std::shared_ptr<Hierarchy<Domain,A>> lhs_;
    \n-
    356 std::shared_ptr<Hierarchy<Domain,A>> update_;
    \n-\n-
    360 std::shared_ptr<ScalarProduct> scalarProduct_;
    \n-
    362 std::size_t gamma_;
    \n-
    364 std::size_t preSteps_;
    \n-
    366 std::size_t postSteps_;
    \n-
    367 bool buildHierarchy_;
    \n-
    368 bool additive;
    \n-
    369 bool coarsesolverconverged;
    \n-
    370 std::shared_ptr<Smoother> coarseSmoother_;
    \n-
    372 SolverCategory::Category category_;
    \n-
    374 std::size_t verbosity_;
    \n-
    375
    \n-
    376 struct ToLower
    \n-
    377 {
    \n-
    \n-
    378 std::string operator()(const std::string& str)
    \n-
    379 {
    \n-
    380 std::stringstream retval;
    \n-
    381 std::ostream_iterator<char> out(retval);
    \n-
    382 std::transform(str.begin(), str.end(), out,
    \n-
    383 [](char c){
    \n-
    384 return std::tolower(c, std::locale::classic());
    \n-
    385 });
    \n-
    386 return retval.str();
    \n-
    387 }
    \n-
    \n-
    388 };
    \n-
    389 };
    \n-
    390
    \n-
    391 template<class M, class X, class S, class PI, class A>
    \n-
    \n-
    392 inline AMG<M,X,S,PI,A>::AMG(const AMG& amg)
    \n-
    393 : matrices_(amg.matrices_), smootherArgs_(amg.smootherArgs_),
    \n-
    394 smoothers_(amg.smoothers_), solver_(amg.solver_),
    \n-
    395 rhs_(), lhs_(), update_(),
    \n-
    396 scalarProduct_(amg.scalarProduct_), gamma_(amg.gamma_),
    \n-
    397 preSteps_(amg.preSteps_), postSteps_(amg.postSteps_),
    \n-
    398 buildHierarchy_(amg.buildHierarchy_),
    \n-
    399 additive(amg.additive), coarsesolverconverged(amg.coarsesolverconverged),
    \n-
    400 coarseSmoother_(amg.coarseSmoother_),
    \n-
    401 category_(amg.category_),
    \n-
    402 verbosity_(amg.verbosity_)
    \n-
    403 {}
    \n-
    \n-
    404
    \n-
    405 template<class M, class X, class S, class PI, class A>
    \n-
    \n-\n-
    407 const SmootherArgs& smootherArgs,
    \n-
    408 const Parameters& parms)
    \n-
    409 : matrices_(stackobject_to_shared_ptr(matrices)), smootherArgs_(smootherArgs),
    \n-
    410 smoothers_(new Hierarchy<Smoother,A>), solver_(&coarseSolver),
    \n-
    411 rhs_(), lhs_(), update_(), scalarProduct_(0),
    \n-
    412 gamma_(parms.getGamma()), preSteps_(parms.getNoPreSmoothSteps()),
    \n-
    413 postSteps_(parms.getNoPostSmoothSteps()), buildHierarchy_(false),
    \n-
    414 additive(parms.getAdditive()), coarsesolverconverged(true),
    \n-
    415 coarseSmoother_(),
    \n-
    416// #warning should category be retrieved from matrices?
    \n-
    417 category_(SolverCategory::category(*smoothers_->coarsest())),
    \n-
    418 verbosity_(parms.debugLevel())
    \n-
    419 {
    \n-
    420 assert(matrices_->isBuilt());
    \n-
    421
    \n-
    422 // build the necessary smoother hierarchies
    \n-
    423 matrices_->coarsenSmoother(*smoothers_, smootherArgs_);
    \n-
    424 }
    \n-
    \n-
    425
    \n-
    426 template<class M, class X, class S, class PI, class A>
    \n-
    427 template<class C>
    \n-
    \n-\n-
    429 const C& criterion,
    \n-
    430 const SmootherArgs& smootherArgs,
    \n-
    431 const PI& pinfo)
    \n-
    432 : smootherArgs_(smootherArgs),
    \n-
    433 smoothers_(new Hierarchy<Smoother,A>), solver_(),
    \n-
    434 rhs_(), lhs_(), update_(), scalarProduct_(),
    \n-
    435 gamma_(criterion.getGamma()), preSteps_(criterion.getNoPreSmoothSteps()),
    \n-
    436 postSteps_(criterion.getNoPostSmoothSteps()), buildHierarchy_(true),
    \n-
    437 additive(criterion.getAdditive()), coarsesolverconverged(true),
    \n-
    438 coarseSmoother_(),
    \n-
    439 category_(SolverCategory::category(pinfo)),
    \n-
    440 verbosity_(criterion.debugLevel())
    \n-
    441 {
    \n-\n-
    443 DUNE_THROW(InvalidSolverCategory, "Matrix and Communication must have the same SolverCategory!");
    \n-
    444 // TODO: reestablish compile time checks.
    \n-
    445 //static_assert(static_cast<int>(PI::category)==static_cast<int>(S::category),
    \n-
    446 // "Matrix and Solver must match in terms of category!");
    \n-
    447 auto matrixptr = stackobject_to_shared_ptr(matrix);
    \n-
    448 createHierarchies(criterion, matrixptr, pinfo);
    \n-
    449 }
    \n-
    \n-
    450
    \n-
    451 template<class M, class X, class S, class PI, class A>
    \n-
    \n-
    452 AMG<M,X,S,PI,A>::AMG(std::shared_ptr<const Operator> matrixptr,
    \n-
    453 const ParameterTree& configuration,
    \n-
    454 const ParallelInformation& pinfo) :
    \n-
    455 smoothers_(new Hierarchy<Smoother,A>),
    \n-
    456 solver_(), rhs_(), lhs_(), update_(), scalarProduct_(), buildHierarchy_(true),
    \n-
    457 coarsesolverconverged(true), coarseSmoother_(),
    \n-
    458 category_(SolverCategory::category(pinfo))
    \n-
    459 {
    \n-
    460
    \n-
    461 if (configuration.hasKey ("smootherIterations"))
    \n-
    462 smootherArgs_.iterations = configuration.get<int>("smootherIterations");
    \n-
    463
    \n-
    464 if (configuration.hasKey ("smootherRelaxation"))
    \n-
    465 smootherArgs_.relaxationFactor = configuration.get<typename SmootherArgs::RelaxationFactor>("smootherRelaxation");
    \n-
    466
    \n-
    467 auto normName = ToLower()(configuration.get("strengthMeasure", "diagonal"));
    \n-
    468 auto index = configuration.get<int>("diagonalRowIndex", 0);
    \n-
    469
    \n-
    470 if ( normName == "diagonal")
    \n-
    471 {
    \n-
    472 using field_type = typename M::field_type;
    \n-
    473 using real_type = typename FieldTraits<field_type>::real_type;
    \n-
    474 std::is_convertible<field_type, real_type> compiles;
    \n-
    475
    \n-
    476 switch (index)
    \n-
    477 {
    \n-
    478 case 0:
    \n-
    479 createCriterionAndHierarchies(matrixptr, pinfo, Diagonal<0>(), configuration, compiles);
    \n-
    480 break;
    \n-
    481 case 1:
    \n-
    482 createCriterionAndHierarchies(matrixptr, pinfo, Diagonal<1>(), configuration, compiles);
    \n-
    483 break;
    \n-
    484 case 2:
    \n-
    485 createCriterionAndHierarchies(matrixptr, pinfo, Diagonal<2>(), configuration, compiles);
    \n-
    486 break;
    \n-
    487 case 3:
    \n-
    488 createCriterionAndHierarchies(matrixptr, pinfo, Diagonal<3>(), configuration, compiles);
    \n-
    489 break;
    \n-
    490 case 4:
    \n-
    491 createCriterionAndHierarchies(matrixptr, pinfo, Diagonal<4>(), configuration, compiles);
    \n-
    492 break;
    \n-
    493 default:
    \n-
    494 DUNE_THROW(InvalidStateException, "Currently strengthIndex>4 is not supported.");
    \n-
    495 }
    \n-
    496 }
    \n-
    497 else if (normName == "rowsum")
    \n-
    498 createCriterionAndHierarchies(matrixptr, pinfo, RowSum(), configuration);
    \n-
    499 else if (normName == "frobenius")
    \n-
    500 createCriterionAndHierarchies(matrixptr, pinfo, FrobeniusNorm(), configuration);
    \n-
    501 else if (normName == "one")
    \n-
    502 createCriterionAndHierarchies(matrixptr, pinfo, AlwaysOneNorm(), configuration);
    \n-
    503 else
    \n-
    504 DUNE_THROW(Dune::NotImplemented, "Wrong config file: strengthMeasure "<<normName<<" is not supported by AMG");
    \n-
    505 }
    \n-
    \n-
    506
    \n-
    507 template<class M, class X, class S, class PI, class A>
    \n-
    508 template<class Norm>
    \n-
    509 void AMG<M,X,S,PI,A>::createCriterionAndHierarchies(std::shared_ptr<const Operator> matrixptr, const PI& pinfo, const Norm&, const ParameterTree& configuration, std::false_type)
    \n-
    510 {
    \n-
    511 DUNE_THROW(InvalidStateException, "Strength of connection measure does not support this type ("
    \n-
    512 << className<typename M::field_type>() << ") as it is lacking a conversion to"
    \n-
    513 << className<typename FieldTraits<typename M::field_type>::real_type>() << ".");
    \n-
    514 }
    \n-
    515
    \n-
    516 template<class M, class X, class S, class PI, class A>
    \n-
    517 template<class Norm>
    \n-
    518 void AMG<M,X,S,PI,A>::createCriterionAndHierarchies(std::shared_ptr<const Operator> matrixptr, const PI& pinfo, const Norm&, const ParameterTree& configuration, std::true_type)
    \n-
    519 {
    \n-
    520 if (configuration.get<bool>("criterionSymmetric", true))
    \n-
    521 {
    \n-
    522 using Criterion = Dune::Amg::CoarsenCriterion<
    \n-\n-
    524 Criterion criterion;
    \n-
    525 createHierarchies(criterion, matrixptr, pinfo, configuration);
    \n-
    526 }
    \n-
    527 else
    \n-
    528 {
    \n-
    529 using Criterion = Dune::Amg::CoarsenCriterion<
    \n-\n-
    531 Criterion criterion;
    \n-
    532 createHierarchies(criterion, matrixptr, pinfo, configuration);
    \n-
    533 }
    \n-
    534 }
    \n-
    535
    \n-
    536 template<class M, class X, class S, class PI, class A>
    \n-
    537 template<class C>
    \n-
    538 void AMG<M,X,S,PI,A>::createHierarchies(C& criterion, std::shared_ptr<const Operator> matrixptr, const PI& pinfo, const ParameterTree& configuration)
    \n-
    539 {
    \n-
    540 if (configuration.hasKey ("maxLevel"))
    \n-
    541 criterion.setMaxLevel(configuration.get<int>("maxLevel"));
    \n-
    542
    \n-
    543 if (configuration.hasKey ("minCoarseningRate"))
    \n-
    544 criterion.setMinCoarsenRate(configuration.get<int>("minCoarseningRate"));
    \n-
    545
    \n-
    546 if (configuration.hasKey ("coarsenTarget"))
    \n-
    547 criterion.setCoarsenTarget (configuration.get<int>("coarsenTarget"));
    \n-
    548
    \n-
    549 if (configuration.hasKey ("accumulationMode"))
    \n-
    550 {
    \n-
    551 std::string mode = ToLower()(configuration.get<std::string>("accumulationMode"));
    \n-
    552 if ( mode == "none")
    \n-
    553 criterion.setAccumulate(AccumulationMode::noAccu);
    \n-
    554 else if ( mode == "atonce" )
    \n-
    555 criterion.setAccumulate(AccumulationMode::atOnceAccu);
    \n-
    556 else if ( mode == "successive")
    \n-
    557 criterion.setCoarsenTarget (AccumulationMode::successiveAccu);
    \n-
    558 else
    \n-
    559 DUNE_THROW(InvalidSolverFactoryConfiguration, "Parameter accumulationMode does not allow value "
    \n-
    560 << mode <<".");
    \n-
    561 }
    \n-
    562
    \n-
    563 if (configuration.hasKey ("prolongationDampingFactor"))
    \n-
    564 criterion.setProlongationDampingFactor (configuration.get<double>("prolongationDampingFactor"));
    \n-
    565
    \n-
    566 if (configuration.hasKey("defaultAggregationSizeMode"))
    \n-
    567 {
    \n-
    568 auto mode = ToLower()(configuration.get<std::string>("defaultAggregationSizeMode"));
    \n-
    569 auto dim = configuration.get<std::size_t>("defaultAggregationDimension");
    \n-
    570 std::size_t maxDistance = 2;
    \n-
    571 if (configuration.hasKey("MaxAggregateDistance"))
    \n-
    572 maxDistance = configuration.get<std::size_t>("maxAggregateDistance");
    \n-
    573 if (mode == "isotropic")
    \n-
    574 criterion.setDefaultValuesIsotropic(dim, maxDistance);
    \n-
    575 else if(mode == "anisotropic")
    \n-
    576 criterion.setDefaultValuesAnisotropic(dim, maxDistance);
    \n-
    577 else
    \n-
    578 DUNE_THROW(InvalidSolverFactoryConfiguration, "Parameter accumulationMode does not allow value "
    \n-
    579 << mode <<".");
    \n-
    580 }
    \n-
    581
    \n-
    582 if (configuration.hasKey("maxAggregateDistance"))
    \n-
    583 criterion.setMaxDistance(configuration.get<std::size_t>("maxAggregateDistance"));
    \n-
    584
    \n-
    585 if (configuration.hasKey("minAggregateSize"))
    \n-
    586 criterion.setMinAggregateSize(configuration.get<std::size_t>("minAggregateSize"));
    \n-
    587
    \n-
    588 if (configuration.hasKey("maxAggregateSize"))
    \n-
    589 criterion.setMaxAggregateSize(configuration.get<std::size_t>("maxAggregateSize"));
    \n-
    590
    \n-
    591 if (configuration.hasKey("maxAggregateConnectivity"))
    \n-
    592 criterion.setMaxConnectivity(configuration.get<std::size_t>("maxAggregateConnectivity"));
    \n-
    593
    \n-
    594 if (configuration.hasKey ("alpha"))
    \n-
    595 criterion.setAlpha (configuration.get<double> ("alpha"));
    \n-
    596
    \n-
    597 if (configuration.hasKey ("beta"))
    \n-
    598 criterion.setBeta (configuration.get<double> ("beta"));
    \n-
    599
    \n-
    600 if (configuration.hasKey ("gamma"))
    \n-
    601 criterion.setGamma (configuration.get<std::size_t> ("gamma"));
    \n-
    602 gamma_ = criterion.getGamma();
    \n-
    603
    \n-
    604 if (configuration.hasKey ("additive"))
    \n-
    605 criterion.setAdditive (configuration.get<bool>("additive"));
    \n-
    606 additive = criterion.getAdditive();
    \n-
    607
    \n-
    608 if (configuration.hasKey ("preSteps"))
    \n-
    609 criterion.setNoPreSmoothSteps (configuration.get<std::size_t> ("preSteps"));
    \n-
    610 preSteps_ = criterion.getNoPreSmoothSteps ();
    \n-
    611
    \n-
    612 if (configuration.hasKey ("postSteps"))
    \n-
    613 criterion.setNoPostSmoothSteps (configuration.get<std::size_t> ("postSteps"));
    \n-
    614 postSteps_ = criterion.getNoPostSmoothSteps ();
    \n-
    615
    \n-
    616 verbosity_ = configuration.get("verbosity", 0);
    \n-
    617 criterion.setDebugLevel (verbosity_);
    \n-
    618
    \n-
    619 createHierarchies(criterion, matrixptr, pinfo);
    \n-
    620 }
    \n-
    621
    \n-
    622 template <class Matrix,
    \n-
    623 class Vector>
    \n-
    \n-\n-
    625 {
    \n-
    626 typedef typename Matrix :: field_type field_type;
    \n-\n-
    628
    \n-
    629 static constexpr SolverType solver =
    \n-
    630#if DISABLE_AMG_DIRECTSOLVER
    \n-
    631 none;
    \n-
    632#elif HAVE_SUITESPARSE_UMFPACK
    \n-\n-
    634#elif HAVE_SUPERLU
    \n-
    635 superlu ;
    \n-
    636#else
    \n-
    637 none;
    \n-
    638#endif
    \n-
    639
    \n-
    640 template <class M, SolverType>
    \n-
    \n-
    641 struct Solver
    \n-
    642 {
    \n-\n-
    \n-
    644 static type* create(const M& mat, bool verbose, bool reusevector )
    \n-
    645 {
    \n-
    646 DUNE_THROW(NotImplemented,"DirectSolver not selected");
    \n-
    647 return nullptr;
    \n-
    648 }
    \n-
    \n-
    649 static std::string name () { return "None"; }
    \n-
    650 };
    \n-
    \n-
    651#if HAVE_SUITESPARSE_UMFPACK
    \n-
    652 template <class M>
    \n-
    653 struct Solver< M, umfpack >
    \n-
    654 {
    \n-
    655 typedef UMFPack< M > type;
    \n-
    656 static type* create(const M& mat, bool verbose, bool reusevector )
    \n-
    657 {
    \n-
    658 return new type(mat, verbose, reusevector );
    \n-
    659 }
    \n-
    660 static std::string name () { return "UMFPack"; }
    \n-
    661 };
    \n-
    662#endif
    \n-
    663#if HAVE_SUPERLU
    \n-
    664 template <class M>
    \n-
    \n-
    665 struct Solver< M, superlu >
    \n-
    666 {
    \n-\n-
    \n-
    668 static type* create(const M& mat, bool verbose, bool reusevector )
    \n-
    669 {
    \n-
    670 return new type(mat, verbose, reusevector );
    \n-
    671 }
    \n-
    \n-
    672 static std::string name () { return "SuperLU"; }
    \n-
    673 };
    \n-
    \n-
    674#endif
    \n-
    675
    \n-
    676 // define direct solver type to be used
    \n-\n-
    678 typedef typename SelectedSolver :: type DirectSolver;
    \n-
    679 static constexpr bool isDirectSolver = solver != none;
    \n-
    680 static std::string name() { return SelectedSolver :: name (); }
    \n-
    \n-
    681 static DirectSolver* create(const Matrix& mat, bool verbose, bool reusevector )
    \n-
    682 {
    \n-
    683 return SelectedSolver :: create( mat, verbose, reusevector );
    \n-
    684 }
    \n-
    \n-
    685 };
    \n-
    \n-
    686
    \n-
    687 template<class M, class X, class S, class PI, class A>
    \n-
    688 template<class C>
    \n-
    689 void AMG<M,X,S,PI,A>::createHierarchies(C& criterion,
    \n-
    690 const std::shared_ptr<const Operator>& matrixptr,
    \n-
    691 const PI& pinfo)
    \n-
    692 {
    \n-
    693 Timer watch;
    \n-
    694 matrices_ = std::make_shared<OperatorHierarchy>(
    \n-
    695 std::const_pointer_cast<Operator>(matrixptr),
    \n-
    696 stackobject_to_shared_ptr(const_cast<PI&>(pinfo)));
    \n-
    697
    \n-
    698 matrices_->template build<NegateSet<typename PI::OwnerSet> >(criterion);
    \n-
    699
    \n-
    700 // build the necessary smoother hierarchies
    \n-
    701 matrices_->coarsenSmoother(*smoothers_, smootherArgs_);
    \n-
    702
    \n-
    703 // test whether we should solve on the coarse level. That is the case if we
    \n-
    704 // have that level and if there was a redistribution on this level then our
    \n-
    705 // communicator has to be valid (size()>0) as the smoother might try to communicate
    \n-
    706 // in the constructor.
    \n-
    707 if(buildHierarchy_ && matrices_->levels()==matrices_->maxlevels()
    \n-
    708 && ( ! matrices_->redistributeInformation().back().isSetup() ||
    \n-
    709 matrices_->parallelInformation().coarsest().getRedistributed().communicator().size() ) )
    \n-
    710 {
    \n-
    711 // We have the carsest level. Create the coarse Solver
    \n-
    712 SmootherArgs sargs(smootherArgs_);
    \n-
    713 sargs.iterations = 1;
    \n-
    714
    \n-\n-
    716 cargs.setArgs(sargs);
    \n-
    717 if(matrices_->redistributeInformation().back().isSetup()) {
    \n-
    718 // Solve on the redistributed partitioning
    \n-
    719 cargs.setMatrix(matrices_->matrices().coarsest().getRedistributed().getmat());
    \n-
    720 cargs.setComm(matrices_->parallelInformation().coarsest().getRedistributed());
    \n-
    721 }else{
    \n-
    722 cargs.setMatrix(matrices_->matrices().coarsest()->getmat());
    \n-
    723 cargs.setComm(*matrices_->parallelInformation().coarsest());
    \n-
    724 }
    \n-
    725
    \n-
    726 coarseSmoother_ = ConstructionTraits<Smoother>::construct(cargs);
    \n-
    727 scalarProduct_ = createScalarProduct<X>(cargs.getComm(),category());
    \n-
    728
    \n-
    729 typedef DirectSolverSelector< typename M::matrix_type, X > SolverSelector;
    \n-
    730
    \n-
    731 // Use superlu if we are purely sequential or with only one processor on the coarsest level.
    \n-
    732 if( SolverSelector::isDirectSolver &&
    \n-
    733 (std::is_same<ParallelInformation,SequentialInformation>::value // sequential mode
    \n-
    734 || matrices_->parallelInformation().coarsest()->communicator().size()==1 //parallel mode and only one processor
    \n-
    735 || (matrices_->parallelInformation().coarsest().isRedistributed()
    \n-
    736 && matrices_->parallelInformation().coarsest().getRedistributed().communicator().size()==1
    \n-
    737 && matrices_->parallelInformation().coarsest().getRedistributed().communicator().size()>0) )
    \n-
    738 )
    \n-
    739 { // redistribute and 1 proc
    \n-
    740 if(matrices_->parallelInformation().coarsest().isRedistributed())
    \n-
    741 {
    \n-
    742 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)
    \n-
    743 {
    \n-
    744 // We are still participating on this level
    \n-
    745 solver_.reset(SolverSelector::create(matrices_->matrices().coarsest().getRedistributed().getmat(), false, false));
    \n-
    746 }
    \n-
    747 else
    \n-
    748 solver_.reset();
    \n-
    749 }
    \n-
    750 else
    \n-
    751 {
    \n-
    752 solver_.reset(SolverSelector::create(matrices_->matrices().coarsest()->getmat(), false, false));
    \n-
    753 }
    \n-
    754 if(verbosity_>0 && matrices_->parallelInformation().coarsest()->communicator().rank()==0)
    \n-
    755 std::cout<< "Using a direct coarse solver (" << SolverSelector::name() << ")" << std::endl;
    \n-
    756 }
    \n-
    757 else
    \n-
    758 {
    \n-
    759 if(matrices_->parallelInformation().coarsest().isRedistributed())
    \n-
    760 {
    \n-
    761 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)
    \n-
    762 // We are still participating on this level
    \n-
    763
    \n-
    764 // we have to allocate these types using the rebound allocator
    \n-
    765 // in order to ensure that we fulfill the alignment requirements
    \n-
    766 solver_.reset(new BiCGSTABSolver<X>(const_cast<M&>(matrices_->matrices().coarsest().getRedistributed()),
    \n-
    767 *scalarProduct_,
    \n-
    768 *coarseSmoother_, 1E-2, 1000, 0));
    \n-
    769 else
    \n-
    770 solver_.reset();
    \n-
    771 }else
    \n-
    772 {
    \n-
    773 solver_.reset(new BiCGSTABSolver<X>(const_cast<M&>(*matrices_->matrices().coarsest()),
    \n-
    774 *scalarProduct_,
    \n-
    775 *coarseSmoother_, 1E-2, 1000, 0));
    \n-
    776 // // we have to allocate these types using the rebound allocator
    \n-
    777 // // in order to ensure that we fulfill the alignment requirements
    \n-
    778 // using Alloc = typename std::allocator_traits<A>::template rebind_alloc<BiCGSTABSolver<X>>;
    \n-
    779 // Alloc alloc;
    \n-
    780 // auto p = alloc.allocate(1);
    \n-
    781 // std::allocator_traits<Alloc>::construct(alloc, p,
    \n-
    782 // const_cast<M&>(*matrices_->matrices().coarsest()),
    \n-
    783 // *scalarProduct_,
    \n-
    784 // *coarseSmoother_, 1E-2, 1000, 0);
    \n-
    785 // solver_.reset(p,[](BiCGSTABSolver<X>* p){
    \n-
    786 // Alloc alloc;
    \n-
    787 // std::allocator_traits<Alloc>::destroy(alloc, p);
    \n-
    788 // alloc.deallocate(p,1);
    \n-
    789 // });
    \n-
    790 }
    \n-
    791 }
    \n-
    792 }
    \n-
    793
    \n-
    794 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator().rank()==0)
    \n-
    795 std::cout<<"Building hierarchy of "<<matrices_->maxlevels()<<" levels "
    \n-
    796 <<"(including coarse solver) took "<<watch.elapsed()<<" seconds."<<std::endl;
    \n-
    797 }
    \n-
    798
    \n-
    799
    \n-
    800 template<class M, class X, class S, class PI, class A>
    \n-
    \n-\n-
    802 {
    \n-
    803 // Detect Matrix rows where all offdiagonal entries are
    \n-
    804 // zero and set x such that A_dd*x_d=b_d
    \n-
    805 // Thus users can be more careless when setting up their linear
    \n-
    806 // systems.
    \n-
    807 typedef typename M::matrix_type Matrix;
    \n-
    808 typedef typename Matrix::ConstRowIterator RowIter;
    \n-
    809 typedef typename Matrix::ConstColIterator ColIter;
    \n-
    810 typedef typename Matrix::block_type Block;
    \n-
    811 Block zero;
    \n-
    812 zero=typename Matrix::field_type();
    \n-
    813
    \n-
    814 const Matrix& mat=matrices_->matrices().finest()->getmat();
    \n-
    815 for(RowIter row=mat.begin(); row!=mat.end(); ++row) {
    \n-
    816 bool isDirichlet = true;
    \n-
    817 bool hasDiagonal = false;
    \n-
    818 Block diagonal{};
    \n-
    819 for(ColIter col=row->begin(); col!=row->end(); ++col) {
    \n-
    820 if(row.index()==col.index()) {
    \n-
    821 diagonal = *col;
    \n-
    822 hasDiagonal = true;
    \n-
    823 }else{
    \n-
    824 if(*col!=zero)
    \n-
    825 isDirichlet = false;
    \n-
    826 }
    \n-
    827 }
    \n-
    828 if(isDirichlet && hasDiagonal)
    \n-
    829 {
    \n-
    830 auto&& xEntry = Impl::asVector(x[row.index()]);
    \n-
    831 auto&& bEntry = Impl::asVector(b[row.index()]);
    \n-
    832 Impl::asMatrix(diagonal).solve(xEntry, bEntry);
    \n-
    833 }
    \n-
    834 }
    \n-
    835
    \n-
    836 if(smoothers_->levels()>0)
    \n-
    837 smoothers_->finest()->pre(x,b);
    \n-
    838 else
    \n-
    839 // No smoother to make x consistent! Do it by hand
    \n-
    840 matrices_->parallelInformation().coarsest()->copyOwnerToAll(x,x);
    \n-
    841 rhs_ = std::make_shared<Hierarchy<Range,A>>(std::make_shared<Range>(b));
    \n-
    842 lhs_ = std::make_shared<Hierarchy<Domain,A>>(std::make_shared<Domain>(x));
    \n-
    843 update_ = std::make_shared<Hierarchy<Domain,A>>(std::make_shared<Domain>(x));
    \n-
    844 matrices_->coarsenVector(*rhs_);
    \n-
    845 matrices_->coarsenVector(*lhs_);
    \n-
    846 matrices_->coarsenVector(*update_);
    \n-
    847
    \n-
    848 // Preprocess all smoothers
    \n-
    849 typedef typename Hierarchy<Smoother,A>::Iterator Iterator;
    \n-
    850 typedef typename Hierarchy<Range,A>::Iterator RIterator;
    \n-
    851 typedef typename Hierarchy<Domain,A>::Iterator DIterator;
    \n-
    852 Iterator coarsest = smoothers_->coarsest();
    \n-
    853 Iterator smoother = smoothers_->finest();
    \n-
    854 RIterator rhs = rhs_->finest();
    \n-
    855 DIterator lhs = lhs_->finest();
    \n-
    856 if(smoothers_->levels()>1) {
    \n-
    857
    \n-
    858 assert(lhs_->levels()==rhs_->levels());
    \n-
    859 assert(smoothers_->levels()==lhs_->levels() || matrices_->levels()==matrices_->maxlevels());
    \n-
    860 assert(smoothers_->levels()+1==lhs_->levels() || matrices_->levels()<matrices_->maxlevels());
    \n-
    861
    \n-
    862 if(smoother!=coarsest)
    \n-
    863 for(++smoother, ++lhs, ++rhs; smoother != coarsest; ++smoother, ++lhs, ++rhs)
    \n-
    864 smoother->pre(*lhs,*rhs);
    \n-
    865 smoother->pre(*lhs,*rhs);
    \n-
    866 }
    \n-
    867
    \n-
    868
    \n-
    869 // The preconditioner might change x and b. So we have to
    \n-
    870 // copy the changes to the original vectors.
    \n-
    871 x = *lhs_->finest();
    \n-
    872 b = *rhs_->finest();
    \n-
    873
    \n-
    874 }
    \n-
    \n-
    875 template<class M, class X, class S, class PI, class A>
    \n-
    \n-\n-
    877 {
    \n-
    878 return matrices_->levels();
    \n-
    879 }
    \n-
    \n-
    880 template<class M, class X, class S, class PI, class A>
    \n-
    \n-\n-
    882 {
    \n-
    883 return matrices_->maxlevels();
    \n-
    884 }
    \n-
    \n-
    885
    \n-
    887 template<class M, class X, class S, class PI, class A>
    \n-
    \n-\n-
    889 {
    \n-
    890 LevelContext levelContext;
    \n-
    891
    \n-
    892 if(additive) {
    \n-
    893 *(rhs_->finest())=d;
    \n-
    894 additiveMgc();
    \n-
    895 v=*lhs_->finest();
    \n-
    896 }else{
    \n-
    897 // Init all iterators for the current level
    \n-
    898 initIteratorsWithFineLevel(levelContext);
    \n-
    899
    \n-
    900
    \n-
    901 *levelContext.lhs = v;
    \n-
    902 *levelContext.rhs = d;
    \n-
    903 *levelContext.update=0;
    \n-
    904 levelContext.level=0;
    \n-
    905
    \n-
    906 mgc(levelContext);
    \n-
    907
    \n-
    908 if(postSteps_==0||matrices_->maxlevels()==1)
    \n-
    909 levelContext.pinfo->copyOwnerToAll(*levelContext.update, *levelContext.update);
    \n-
    910
    \n-
    911 v=*levelContext.update;
    \n-
    912 }
    \n-
    913
    \n-
    914 }
    \n-
    \n-
    915
    \n-
    916 template<class M, class X, class S, class PI, class A>
    \n-
    917 void AMG<M,X,S,PI,A>::initIteratorsWithFineLevel(LevelContext& levelContext)
    \n-
    918 {
    \n-
    919 levelContext.smoother = smoothers_->finest();
    \n-
    920 levelContext.matrix = matrices_->matrices().finest();
    \n-
    921 levelContext.pinfo = matrices_->parallelInformation().finest();
    \n-
    922 levelContext.redist =
    \n-
    923 matrices_->redistributeInformation().begin();
    \n-
    924 levelContext.aggregates = matrices_->aggregatesMaps().begin();
    \n-
    925 levelContext.lhs = lhs_->finest();
    \n-
    926 levelContext.update = update_->finest();
    \n-
    927 levelContext.rhs = rhs_->finest();
    \n-
    928 }
    \n-
    929
    \n-
    930 template<class M, class X, class S, class PI, class A>
    \n-
    931 bool AMG<M,X,S,PI,A>
    \n-
    932 ::moveToCoarseLevel(LevelContext& levelContext)
    \n-
    933 {
    \n-
    934
    \n-
    935 bool processNextLevel=true;
    \n-
    936
    \n-
    937 if(levelContext.redist->isSetup()) {
    \n-
    938 levelContext.redist->redistribute(static_cast<const Range&>(*levelContext.rhs),
    \n-
    939 levelContext.rhs.getRedistributed());
    \n-
    940 processNextLevel = levelContext.rhs.getRedistributed().size()>0;
    \n-
    941 if(processNextLevel) {
    \n-
    942 //restrict defect to coarse level right hand side.
    \n-
    943 typename Hierarchy<Range,A>::Iterator fineRhs = levelContext.rhs++;
    \n-
    944 ++levelContext.pinfo;
    \n-
    945 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n-
    946 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,
    \n-
    947 static_cast<const Range&>(fineRhs.getRedistributed()),
    \n-
    948 *levelContext.pinfo);
    \n-
    949 }
    \n-
    950 }else{
    \n-
    951 //restrict defect to coarse level right hand side.
    \n-
    952 typename Hierarchy<Range,A>::Iterator fineRhs = levelContext.rhs++;
    \n-
    953 ++levelContext.pinfo;
    \n-
    954 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n-
    955 ::restrictVector(*(*levelContext.aggregates),
    \n-
    956 *levelContext.rhs, static_cast<const Range&>(*fineRhs),
    \n-
    957 *levelContext.pinfo);
    \n-
    958 }
    \n-
    959
    \n-
    960 if(processNextLevel) {
    \n-
    961 // prepare coarse system
    \n-
    962 ++levelContext.lhs;
    \n-
    963 ++levelContext.update;
    \n-
    964 ++levelContext.matrix;
    \n-
    965 ++levelContext.level;
    \n-
    966 ++levelContext.redist;
    \n-
    967
    \n-
    968 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_->levels()<matrices_->maxlevels()) {
    \n-
    969 // next level is not the globally coarsest one
    \n-
    970 ++levelContext.smoother;
    \n-
    971 ++levelContext.aggregates;
    \n-
    972 }
    \n-
    973 // prepare the update on the next level
    \n-
    974 *levelContext.update=0;
    \n-
    975 }
    \n-
    976 return processNextLevel;
    \n-
    977 }
    \n-
    978
    \n-
    979 template<class M, class X, class S, class PI, class A>
    \n-
    980 void AMG<M,X,S,PI,A>
    \n-
    981 ::moveToFineLevel(LevelContext& levelContext, bool processNextLevel)
    \n-
    982 {
    \n-
    983 if(processNextLevel) {
    \n-
    984 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_->levels()<matrices_->maxlevels()) {
    \n-
    985 // previous level is not the globally coarsest one
    \n-
    986 --levelContext.smoother;
    \n-
    987 --levelContext.aggregates;
    \n-
    988 }
    \n-
    989 --levelContext.redist;
    \n-
    990 --levelContext.level;
    \n-
    991 //prolongate and add the correction (update is in coarse left hand side)
    \n-
    992 --levelContext.matrix;
    \n-
    993
    \n-
    994 //typename Hierarchy<Domain,A>::Iterator coarseLhs = lhs--;
    \n-
    995 --levelContext.lhs;
    \n-
    996 --levelContext.pinfo;
    \n-
    997 }
    \n-
    998 if(levelContext.redist->isSetup()) {
    \n-
    999 // Need to redistribute during prolongateVector
    \n-
    1000 levelContext.lhs.getRedistributed()=0;
    \n-
    1001 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n-
    1002 ::prolongateVector(*(*levelContext.aggregates), *levelContext.update, *levelContext.lhs,
    \n-
    1003 levelContext.lhs.getRedistributed(),
    \n-
    1004 matrices_->getProlongationDampingFactor(),
    \n-
    1005 *levelContext.pinfo, *levelContext.redist);
    \n-
    1006 }else{
    \n-
    1007 *levelContext.lhs=0;
    \n-
    1008 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n-
    1009 ::prolongateVector(*(*levelContext.aggregates), *levelContext.update, *levelContext.lhs,
    \n-
    1010 matrices_->getProlongationDampingFactor(),
    \n-
    1011 *levelContext.pinfo);
    \n-
    1012 }
    \n-
    1013
    \n-
    1014
    \n-
    1015 if(processNextLevel) {
    \n-
    1016 --levelContext.update;
    \n-
    1017 --levelContext.rhs;
    \n-
    1018 }
    \n-
    1019
    \n-
    1020 *levelContext.update += *levelContext.lhs;
    \n-
    1021 }
    \n-
    1022
    \n-
    1023 template<class M, class X, class S, class PI, class A>
    \n-
    \n-\n-
    1025 {
    \n-\n-
    1027 }
    \n-
    \n-
    \n-
    1028
    \n-
    1029 template<class M, class X, class S, class PI, class A>
    \n-
    1030 void AMG<M,X,S,PI,A>::mgc(LevelContext& levelContext){
    \n-
    1031 if(levelContext.matrix == matrices_->matrices().coarsest() && levels()==maxlevels()) {
    \n-
    1032 // Solve directly
    \n-\n-
    1034 res.converged=true; // If we do not compute this flag will not get updated
    \n-
    1035 if(levelContext.redist->isSetup()) {
    \n-
    1036 levelContext.redist->redistribute(*levelContext.rhs, levelContext.rhs.getRedistributed());
    \n-
    1037 if(levelContext.rhs.getRedistributed().size()>0) {
    \n-
    1038 // We are still participating in the computation
    \n-
    1039 levelContext.pinfo.getRedistributed().copyOwnerToAll(levelContext.rhs.getRedistributed(),
    \n-
    1040 levelContext.rhs.getRedistributed());
    \n-
    1041 solver_->apply(levelContext.update.getRedistributed(),
    \n-
    1042 levelContext.rhs.getRedistributed(), res);
    \n-
    1043 }
    \n-
    1044 levelContext.redist->redistributeBackward(*levelContext.update, levelContext.update.getRedistributed());
    \n-
    1045 levelContext.pinfo->copyOwnerToAll(*levelContext.update, *levelContext.update);
    \n-
    1046 }else{
    \n-
    1047 levelContext.pinfo->copyOwnerToAll(*levelContext.rhs, *levelContext.rhs);
    \n-
    1048 solver_->apply(*levelContext.update, *levelContext.rhs, res);
    \n-
    1049 }
    \n-
    1050
    \n-
    1051 if (!res.converged)
    \n-
    1052 coarsesolverconverged = false;
    \n-
    1053 }else{
    \n-
    1054 // presmoothing
    \n-
    1055 presmooth(levelContext, preSteps_);
    \n-
    1056
    \n-
    1057#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION
    \n-
    1058 bool processNextLevel = moveToCoarseLevel(levelContext);
    \n-
    1059
    \n-
    1060 if(processNextLevel) {
    \n-
    1061 // next level
    \n-
    1062 for(std::size_t i=0; i<gamma_; i++){
    \n-
    1063 mgc(levelContext);
    \n-
    1064 if (levelContext.matrix == matrices_->matrices().coarsest() && levels()==maxlevels())
    \n-
    1065 break;
    \n-
    1066 if(i+1 < gamma_){
    \n-
    1067 levelContext.matrix->applyscaleadd(-1., *levelContext.lhs, *levelContext.rhs);
    \n-
    1068 }
    \n-
    1069 }
    \n-
    1070 }
    \n-
    1071
    \n-
    1072 moveToFineLevel(levelContext, processNextLevel);
    \n-
    1073#else
    \n-
    1074 *lhs=0;
    \n-
    1075#endif
    \n-
    1076
    \n-
    1077 if(levelContext.matrix == matrices_->matrices().finest()) {
    \n-
    1078 coarsesolverconverged = matrices_->parallelInformation().finest()->communicator().prod(coarsesolverconverged);
    \n-
    1079 if(!coarsesolverconverged)
    \n-
    1080 DUNE_THROW(MathError, "Coarse solver did not converge");
    \n-
    1081 }
    \n-
    1082 // postsmoothing
    \n-
    1083 postsmooth(levelContext, postSteps_);
    \n-
    1084
    \n-
    1085 }
    \n-
    1086 }
    \n-
    1087
    \n-
    1088 template<class M, class X, class S, class PI, class A>
    \n-
    1089 void AMG<M,X,S,PI,A>::additiveMgc(){
    \n-
    1090
    \n-
    1091 // restrict residual to all levels
    \n-
    1092 typename ParallelInformationHierarchy::Iterator pinfo=matrices_->parallelInformation().finest();
    \n-
    1093 typename Hierarchy<Range,A>::Iterator rhs=rhs_->finest();
    \n-
    1094 typename Hierarchy<Domain,A>::Iterator lhs = lhs_->finest();
    \n-
    1095 typename OperatorHierarchy::AggregatesMapList::const_iterator aggregates=matrices_->aggregatesMaps().begin();
    \n-
    1096
    \n-
    1097 for(typename Hierarchy<Range,A>::Iterator fineRhs=rhs++; fineRhs != rhs_->coarsest(); fineRhs=rhs++, ++aggregates) {
    \n-
    1098 ++pinfo;
    \n-
    1099 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n-
    1100 ::restrictVector(*(*aggregates), *rhs, static_cast<const Range&>(*fineRhs), *pinfo);
    \n-
    1101 }
    \n-
    1102
    \n-
    1103 // pinfo is invalid, set to coarsest level
    \n-
    1104 //pinfo = matrices_->parallelInformation().coarsest
    \n-
    1105 // calculate correction for all levels
    \n-
    1106 lhs = lhs_->finest();
    \n-
    1107 typename Hierarchy<Smoother,A>::Iterator smoother = smoothers_->finest();
    \n-
    1108
    \n-
    1109 for(rhs=rhs_->finest(); rhs != rhs_->coarsest(); ++lhs, ++rhs, ++smoother) {
    \n-
    1110 // presmoothing
    \n-
    1111 *lhs=0;
    \n-
    1112 smoother->apply(*lhs, *rhs);
    \n-
    1113 }
    \n-
    1114
    \n-
    1115 // Coarse level solve
    \n-
    1116#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION
    \n-
    1117 InverseOperatorResult res;
    \n-
    1118 pinfo->copyOwnerToAll(*rhs, *rhs);
    \n-
    1119 solver_->apply(*lhs, *rhs, res);
    \n-
    1120
    \n-
    1121 if(!res.converged)
    \n-
    1122 DUNE_THROW(MathError, "Coarse solver did not converge");
    \n-
    1123#else
    \n-
    1124 *lhs=0;
    \n-
    1125#endif
    \n-
    1126 // Prologate and add up corrections from all levels
    \n-
    1127 --pinfo;
    \n-
    1128 --aggregates;
    \n-
    1129
    \n-
    1130 for(typename Hierarchy<Domain,A>::Iterator coarseLhs = lhs--; coarseLhs != lhs_->finest(); coarseLhs = lhs--, --aggregates, --pinfo) {
    \n-
    1131 Transfer<typename OperatorHierarchy::AggregatesMap::AggregateDescriptor,Range,ParallelInformation>
    \n-
    1132 ::prolongateVector(*(*aggregates), *coarseLhs, *lhs, 1.0, *pinfo);
    \n-
    1133 }
    \n-
    1134 }
    \n-
    1135
    \n-
    1136
    \n-
    1138 template<class M, class X, class S, class PI, class A>
    \n-
    \n-
    1139 void AMG<M,X,S,PI,A>::post([[maybe_unused]] Domain& x)
    \n-
    1140 {
    \n-
    1141 // Postprocess all smoothers
    \n-
    1142 typedef typename Hierarchy<Smoother,A>::Iterator Iterator;
    \n-
    1143 typedef typename Hierarchy<Domain,A>::Iterator DIterator;
    \n-
    1144 Iterator coarsest = smoothers_->coarsest();
    \n-
    1145 Iterator smoother = smoothers_->finest();
    \n-
    1146 DIterator lhs = lhs_->finest();
    \n-
    1147 if(smoothers_->levels()>0) {
    \n-
    1148 if(smoother != coarsest || matrices_->levels()<matrices_->maxlevels())
    \n-
    1149 smoother->post(*lhs);
    \n-
    1150 if(smoother!=coarsest)
    \n-
    1151 for(++smoother, ++lhs; smoother != coarsest; ++smoother, ++lhs)
    \n-
    1152 smoother->post(*lhs);
    \n-
    1153 smoother->post(*lhs);
    \n-
    1154 }
    \n-
    1155 lhs_ = nullptr;
    \n-
    1156 update_ = nullptr;
    \n-
    1157 rhs_ = nullptr;
    \n-
    1158 }
    \n-
    \n-
    1159
    \n-
    1160 template<class M, class X, class S, class PI, class A>
    \n-
    1161 template<class A1>
    \n-
    \n-
    1162 void AMG<M,X,S,PI,A>::getCoarsestAggregateNumbers(std::vector<std::size_t,A1>& cont)
    \n-
    1163 {
    \n-
    1164 matrices_->getCoarsestAggregatesOnFinest(cont);
    \n-
    1165 }
    \n-
    \n-
    1166
    \n-
    1167 } // end namespace Amg
    \n-
    1168
    \n-
    \n-\n-
    1170 template<class> struct isValidBlockType : std::false_type{};
    \n-
    1171 template<class T, int n, int m> struct isValidBlockType<FieldMatrix<T,n,m>> : std::true_type{};
    \n-
    1172
    \n-
    1173 template<class OP>
    \n-
    1174 std::shared_ptr<Dune::Preconditioner<typename OP::element_type::domain_type, typename OP::element_type::range_type> >
    \n-
    \n-
    1175 makeAMG(const OP& op, const std::string& smoother, const Dune::ParameterTree& config) const
    \n-
    1176 {
    \n-
    1177 DUNE_THROW(Dune::Exception, "Operator type not supported by AMG");
    \n-
    1178 }
    \n-
    \n-
    1179
    \n-
    1180 template<class M, class X, class Y>
    \n-
    1181 std::shared_ptr<Dune::Preconditioner<X,Y> >
    \n-
    \n-
    1182 makeAMG(const std::shared_ptr<MatrixAdapter<M,X,Y>>& op, const std::string& smoother,
    \n-
    1183 const Dune::ParameterTree& config) const
    \n-
    1184 {
    \n-
    1185 using OP = MatrixAdapter<M,X,Y>;
    \n-
    1186
    \n-
    1187 if(smoother == "ssor")
    \n-
    1188 return std::make_shared<Amg::AMG<OP, X, SeqSSOR<M,X,Y>>>(op, config);
    \n-
    1189 if(smoother == "sor")
    \n-
    1190 return std::make_shared<Amg::AMG<OP, X, SeqSOR<M,X,Y>>>(op, config);
    \n-
    1191 if(smoother == "jac")
    \n-
    1192 return std::make_shared<Amg::AMG<OP, X, SeqJac<M,X,Y>>>(op, config);
    \n-
    1193 if(smoother == "gs")
    \n-
    1194 return std::make_shared<Amg::AMG<OP, X, SeqGS<M,X,Y>>>(op, config);
    \n-
    1195 if(smoother == "ilu")
    \n-
    1196 return std::make_shared<Amg::AMG<OP, X, SeqILU<M,X,Y>>>(op, config);
    \n-
    1197 else
    \n-
    1198 DUNE_THROW(Dune::Exception, "Unknown smoother for AMG");
    \n-
    1199 }
    \n-
    \n-
    1200
    \n-
    1201 template<class M, class X, class Y, class C>
    \n-
    1202 std::shared_ptr<Dune::Preconditioner<X,Y> >
    \n-
    \n-
    1203 makeAMG(const std::shared_ptr<OverlappingSchwarzOperator<M,X,Y,C>>& op, const std::string& smoother,
    \n-
    1204 const Dune::ParameterTree& config) const
    \n-
    1205 {
    \n-\n-
    1207
    \n-
    1208 auto cop = std::static_pointer_cast<const OP>(op);
    \n-
    1209
    \n-
    1210 if(smoother == "ssor")
    \n-
    1211 return std::make_shared<Amg::AMG<OP, X, BlockPreconditioner<X,Y,C,SeqSSOR<M,X,Y>>,C>>(cop, config, op->getCommunication());
    \n-
    1212 if(smoother == "sor")
    \n-
    1213 return std::make_shared<Amg::AMG<OP, X, BlockPreconditioner<X,Y,C,SeqSOR<M,X,Y>>,C>>(cop, config, op->getCommunication());
    \n-
    1214 if(smoother == "jac")
    \n-
    1215 return std::make_shared<Amg::AMG<OP, X, BlockPreconditioner<X,Y,C,SeqJac<M,X,Y>>,C>>(cop, config, op->getCommunication());
    \n-
    1216 if(smoother == "gs")
    \n-
    1217 return std::make_shared<Amg::AMG<OP, X, BlockPreconditioner<X,Y,C,SeqGS<M,X,Y>>,C>>(cop, config, op->getCommunication());
    \n-
    1218 if(smoother == "ilu")
    \n-
    1219 return std::make_shared<Amg::AMG<OP, X, BlockPreconditioner<X,Y,C,SeqILU<M,X,Y>>,C>>(cop, config, op->getCommunication());
    \n-
    1220 else
    \n-
    1221 DUNE_THROW(Dune::Exception, "Unknown smoother for AMG");
    \n-
    1222 }
    \n-
    \n-
    1223
    \n-
    1224 template<class M, class X, class Y, class C>
    \n-
    1225 std::shared_ptr<Dune::Preconditioner<X,Y> >
    \n-
    \n-
    1226 makeAMG(const std::shared_ptr<NonoverlappingSchwarzOperator<M,X,Y,C>>& op, const std::string& smoother,
    \n-
    1227 const Dune::ParameterTree& config) const
    \n-
    1228 {
    \n-\n-
    1230
    \n-
    1231 if(smoother == "ssor")
    \n-
    1232 return std::make_shared<Amg::AMG<OP, X, NonoverlappingBlockPreconditioner<C,SeqSSOR<M,X,Y>>,C>>(op, config, op->getCommunication());
    \n-
    1233 if(smoother == "sor")
    \n-
    1234 return std::make_shared<Amg::AMG<OP, X, NonoverlappingBlockPreconditioner<C,SeqSOR<M,X,Y>>,C>>(op, config, op->getCommunication());
    \n-
    1235 if(smoother == "jac")
    \n-
    1236 return std::make_shared<Amg::AMG<OP, X, NonoverlappingBlockPreconditioner<C,SeqJac<M,X,Y>>,C>>(op, config, op->getCommunication());
    \n-
    1237 if(smoother == "gs")
    \n-
    1238 return std::make_shared<Amg::AMG<OP, X, NonoverlappingBlockPreconditioner<C,SeqGS<M,X,Y>>,C>>(op, config, op->getCommunication());
    \n-
    1239 if(smoother == "ilu")
    \n-
    1240 return std::make_shared<Amg::AMG<OP, X, NonoverlappingBlockPreconditioner<C,SeqILU<M,X,Y>>,C>>(op, config, op->getCommunication());
    \n-
    1241 else
    \n-
    1242 DUNE_THROW(Dune::Exception, "Unknown smoother for AMG");
    \n-
    1243 }
    \n-
    \n-
    1244
    \n-
    1245 template<typename TL, typename OP>
    \n-
    1246 std::shared_ptr<Dune::Preconditioner<typename Dune::TypeListElement<1, TL>::type,
    \n-
    1247 typename Dune::TypeListElement<2, TL>::type>>
    \n-
    \n-
    1248 operator() (TL tl, const std::shared_ptr<OP>& op, const Dune::ParameterTree& config,
    \n-\n-
    1250 {
    \n-
    1251 using field_type = typename OP::matrix_type::field_type;
    \n-
    1252 using real_type = typename FieldTraits<field_type>::real_type;
    \n-
    1253 if (!std::is_convertible<field_type, real_type>())
    \n-
    1254 DUNE_THROW(UnsupportedType, "AMG needs field_type(" <<
    \n-
    1255 className<field_type>() <<
    \n-
    1256 ") to be convertible to its real_type (" <<
    \n-
    1257 className<real_type>() <<
    \n-
    1258 ").");
    \n-
    1259 using D = typename Dune::TypeListElement<1, decltype(tl)>::type;
    \n-
    1260 using R = typename Dune::TypeListElement<2, decltype(tl)>::type;
    \n-
    1261 std::shared_ptr<Preconditioner<D,R>> amg;
    \n-
    1262 std::string smoother = config.get("smoother", "ssor");
    \n-
    1263 return makeAMG(op, smoother, config);
    \n-
    1264 }
    \n-
    \n-
    1265
    \n-
    1266 template<typename TL, typename OP>
    \n-
    1267 std::shared_ptr<Dune::Preconditioner<typename Dune::TypeListElement<1, TL>::type,
    \n-
    1268 typename Dune::TypeListElement<2, TL>::type>>
    \n-
    \n-
    1269 operator() (TL /*tl*/, const std::shared_ptr<OP>& /*mat*/, const Dune::ParameterTree& /*config*/,
    \n-\n-
    1271 {
    \n-
    1272 DUNE_THROW(UnsupportedType, "AMG needs a FieldMatrix as Matrix block_type");
    \n-
    1273 }
    \n-
    \n-
    1274 };
    \n-
    \n-
    1275
    \n-\n-
    1277} // end namespace Dune
    \n-
    1278
    \n-
    1279#endif
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    \n-
    Classes for using SuperLU with ISTL matrices.
    \n-
    #define DUNE_REGISTER_PRECONDITIONER(name,...)
    Definition solverregistry.hh:16
    \n-
    Define base class for scalar product and norm.
    \n-
    Classes for using UMFPack with ISTL matrices.
    \n-
    Implementations of the inverse operator interface.
    \n-
    Prolongation and restriction for amg.
    \n-
    Provides a classes representing the hierarchies in AMG.
    \n-
    Classes for the generic construction and application of the smoothers.
    \n-
    Templates characterizing the type of a solver.
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n+
    5
    \n+
    6#ifndef DUNE_ISTL_SOLVERFACTORY_HH
    \n+
    7#define DUNE_ISTL_SOLVERFACTORY_HH
    \n+
    8
    \n+
    9#include <unordered_map>
    \n+
    10#include <functional>
    \n+
    11#include <memory>
    \n+
    12
    \n+
    13#include <dune/common/parametertree.hh>
    \n+
    14#include <dune/common/singleton.hh>
    \n+
    15
    \n+
    16#include "solverregistry.hh"
    \n+
    17#include <dune/istl/solver.hh>
    \n+
    18#include <dune/istl/schwarz.hh>
    \n+\n+
    20
    \n+
    21namespace Dune{
    \n+
    26 // Direct solver factory:
    \n+
    27 template<class M, class X, class Y>
    \n+
    28 using DirectSolverSignature = std::shared_ptr<InverseOperator<X,Y>>(const M&, const ParameterTree&);
    \n+
    29 template<class M, class X, class Y>
    \n+
    30 using DirectSolverFactory = Singleton<ParameterizedObjectFactory<DirectSolverSignature<M,X,Y>>>;
    \n+
    31
    \n+
    32 // Preconditioner factory:
    \n+
    33 template<class M, class X, class Y>
    \n+
    34 using PreconditionerSignature = std::shared_ptr<Preconditioner<X,Y>>(const std::shared_ptr<M>&, const ParameterTree&);
    \n+
    35 template<class M, class X, class Y>
    \n+
    36 using PreconditionerFactory = Singleton<ParameterizedObjectFactory<PreconditionerSignature<M,X,Y>>>;
    \n+
    37
    \n+
    38 // Iterative solver factory
    \n+
    39 template<class X, class Y>
    \n+
    40 using IterativeSolverSignature = std::shared_ptr<InverseOperator<X,Y>>(const std::shared_ptr<LinearOperator<X,Y>>&, const std::shared_ptr<ScalarProduct<X>>&, const std::shared_ptr<Preconditioner<X,Y>>, const ParameterTree&);
    \n+
    41 template<class X, class Y>
    \n+
    42 using IterativeSolverFactory = Singleton<ParameterizedObjectFactory<IterativeSolverSignature<X,Y>>>;
    \n+
    43
    \n+
    44 // initSolverFactories differs in different compilation units, so we have it
    \n+
    45 // in an anonymous namespace
    \n+
    46 namespace {
    \n+
    47
    \n+
    53 template<class O>
    \n+
    54 int initSolverFactories(){
    \n+
    55 using M = typename O::matrix_type;
    \n+
    56 using X = typename O::range_type;
    \n+
    57 using Y = typename O::domain_type;
    \n+
    58 using TL = Dune::TypeList<M,X,Y>;
    \n+\n+
    60 addRegistryToFactory<TL>(dsfac, DirectSolverTag{});
    \n+\n+
    62 addRegistryToFactory<TL>(pfac, PreconditionerTag{});
    \n+
    63 using TLS = Dune::TypeList<X,Y>;
    \n+\n+
    65 return addRegistryToFactory<TLS>(isfac, IterativeSolverTag{});
    \n+
    66 }
    \n+
    77 template<class O, class X, class Y>
    \n+
    78 [[deprecated("Use method 'initSolverFactories<O>' instead")]]
    \n+
    79 int initSolverFactories() {
    \n+
    80 return initSolverFactories<O>();
    \n+
    81 }
    \n+
    82 } // end anonymous namespace
    \n+
    83
    \n+
    84
    \n+
    85 template<class O, class Preconditioner>
    \n+
    \n+
    86 std::shared_ptr<Preconditioner> wrapPreconditioner4Parallel(const std::shared_ptr<Preconditioner>& prec,
    \n+
    87 const O&)
    \n+
    88 {
    \n+
    89 return prec;
    \n+
    90 }
    \n+
    \n+
    91
    \n+
    92 template<class M, class X, class Y, class C, class Preconditioner>
    \n+
    93 std::shared_ptr<Preconditioner>
    \n+
    \n+
    94 wrapPreconditioner4Parallel(const std::shared_ptr<Preconditioner>& prec,
    \n+
    95 const std::shared_ptr<OverlappingSchwarzOperator<M,X,Y,C> >& op)
    \n+
    96 {
    \n+
    97 return std::make_shared<BlockPreconditioner<X,Y,C,Preconditioner> >(prec, op->getCommunication());
    \n+
    98 }
    \n+
    \n+
    99
    \n+
    100 template<class M, class X, class Y, class C, class Preconditioner>
    \n+
    101 std::shared_ptr<Preconditioner>
    \n+
    \n+
    102 wrapPreconditioner4Parallel(const std::shared_ptr<Preconditioner>& prec,
    \n+
    103 const std::shared_ptr<NonoverlappingSchwarzOperator<M,X,Y,C> >& op)
    \n+
    104 {
    \n+
    105 return std::make_shared<NonoverlappingBlockPreconditioner<C,Preconditioner> >(prec, op->getCommunication());
    \n+
    106 }
    \n+
    \n+
    107
    \n+
    108 template<class M, class X, class Y>
    \n+
    \n+
    109 std::shared_ptr<ScalarProduct<X>> createScalarProduct(const std::shared_ptr<MatrixAdapter<M,X,Y> >&)
    \n+
    110 {
    \n+
    111 return std::make_shared<SeqScalarProduct<X>>();
    \n+
    112 }
    \n+
    \n+
    113 template<class M, class X, class Y, class C>
    \n+
    \n+
    114 std::shared_ptr<ScalarProduct<X>> createScalarProduct(const std::shared_ptr<OverlappingSchwarzOperator<M,X,Y,C> >& op)
    \n+
    115 {
    \n+
    116 return createScalarProduct<X>(op->getCommunication(), op->category());
    \n+
    117 }
    \n+
    \n+
    118
    \n+
    119 template<class M, class X, class Y, class C>
    \n+
    \n+
    120 std::shared_ptr<ScalarProduct<X>> createScalarProduct(const std::shared_ptr<NonoverlappingSchwarzOperator<M,X,Y,C> >& op)
    \n+
    121 {
    \n+
    122 return createScalarProduct<X>(op->getCommunication(), op->category());
    \n+
    123 }
    \n+
    \n+
    124
    \n+
    144 template<class Operator>
    \n+
    \n+\n+
    146 using Domain = typename Operator::domain_type;
    \n+
    147 using Range = typename Operator::range_type;
    \n+\n+\n+
    150
    \n+
    151 template<class O>
    \n+
    152 using _matrix_type = typename O::matrix_type;
    \n+
    153 using matrix_type = Std::detected_or_t<int, _matrix_type, Operator>;
    \n+
    154 static constexpr bool isAssembled = !std::is_same<matrix_type, int>::value;
    \n+
    155
    \n+
    156 static const matrix_type* getmat(std::shared_ptr<Operator> op){
    \n+
    157 std::shared_ptr<AssembledLinearOperator<matrix_type, Domain, Range>> aop
    \n+
    158 = std::dynamic_pointer_cast<AssembledLinearOperator<matrix_type, Domain, Range>>(op);
    \n+
    159 if(aop)
    \n+
    160 return &aop->getmat();
    \n+
    161 return nullptr;
    \n+
    162 }
    \n+
    163
    \n+
    164 public:
    \n+
    165
    \n+
    \n+
    168 static std::shared_ptr<Solver> get(std::shared_ptr<Operator> op,
    \n+
    169 const ParameterTree& config,
    \n+
    170 std::shared_ptr<Preconditioner> prec = nullptr){
    \n+
    171 std::string type = config.get<std::string>("type");
    \n+
    172 std::shared_ptr<Solver> result;
    \n+
    173 const matrix_type* mat = getmat(op);
    \n+
    174 if(mat){
    \n+\n+
    176 if(op->category()!=SolverCategory::sequential){
    \n+
    177 DUNE_THROW(NotImplemented, "The solver factory does not support parallel direct solvers!");
    \n+
    178 }
    \n+
    179 result = DirectSolverFactory<matrix_type, Domain, Range>::instance().create(type, *mat, config);
    \n+
    180 return result;
    \n+
    181 }
    \n+
    182 }
    \n+
    183 // if no direct solver is found it might be an iterative solver
    \n+\n+
    185 DUNE_THROW(Dune::InvalidStateException, "Solver not found in the factory.");
    \n+
    186 }
    \n+
    187 if(!prec){
    \n+
    188 const ParameterTree& precConfig = config.sub("preconditioner");
    \n+
    189 std::string prec_type = precConfig.get<std::string>("type");
    \n+
    190 prec = PreconditionerFactory<Operator, Domain, Range>::instance().create(prec_type, op, precConfig);
    \n+
    191 if (prec->category() != op->category() && prec->category() == SolverCategory::sequential)
    \n+
    192 // try to wrap to a parallel preconditioner
    \n+
    193 prec = wrapPreconditioner4Parallel(prec, op);
    \n+
    194 }
    \n+
    195 std::shared_ptr<ScalarProduct<Domain>> sp = createScalarProduct(op);
    \n+
    196 result = IterativeSolverFactory<Domain, Range>::instance().create(type, op, sp, prec, config);
    \n+
    197 return result;
    \n+
    198 }
    \n+
    \n+
    199
    \n+
    \n+
    203 static std::shared_ptr<Preconditioner> getPreconditioner(std::shared_ptr<Operator> op,
    \n+
    204 const ParameterTree& config){
    \n+
    205 const matrix_type* mat = getmat(op);
    \n+
    206 if(mat){
    \n+
    207 std::string prec_type = config.get<std::string>("type");
    \n+
    208 return PreconditionerFactory<Operator, Domain, Range>::instance().create(prec_type, op, config);
    \n+
    209 }else{
    \n+
    210 DUNE_THROW(InvalidStateException, "Could not obtain matrix from operator. Please pass in an AssembledLinearOperator.");
    \n+
    211 }
    \n+
    212 }
    \n+
    \n+
    213 };
    \n+
    \n+
    214
    \n+
    225 template<class Operator>
    \n+
    226 std::shared_ptr<InverseOperator<typename Operator::domain_type,
    \n+
    \n+
    227 typename Operator::range_type>> getSolverFromFactory(std::shared_ptr<Operator> op,
    \n+
    228 const ParameterTree& config,
    \n+
    229 std::shared_ptr<Preconditioner<typename Operator::domain_type,
    \n+
    230 typename Operator::range_type>> prec = nullptr){
    \n+
    231 return SolverFactory<Operator>::get(op, config, prec);
    \n+
    232 }
    \n+
    \n+
    233
    \n+
    237} // end namespace Dune
    \n+
    238
    \n+
    239
    \n+
    240#endif
    \n+\n+\n+\n+
    Define general, extensible interface for inverse operators.
    \n
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    AMG(const AMG &amg)
    Copy constructor.
    Definition amg.hh:392
    \n-
    void pre(Domain &x, Range &b)
    Prepare the preconditioner.
    Definition amg.hh:801
    \n-
    static DirectSolver * create(const Matrix &mat, bool verbose, bool reusevector)
    Definition amg.hh:681
    \n-
    static std::string name()
    Definition amg.hh:680
    \n-
    Hierarchy< Domain, A >::Iterator update
    The iterator over the updates.
    Definition amg.hh:303
    \n-
    Hierarchy< Range, A >::Iterator rhs
    The iterator over the right hand sided.
    Definition amg.hh:307
    \n-
    static std::string name()
    Definition amg.hh:672
    \n-
    bool usesDirectCoarseLevelSolver() const
    Check whether the coarse solver used is a direct solver.
    Definition amg.hh:1024
    \n-
    X Domain
    The domain type.
    Definition amg.hh:87
    \n-
    static type * create(const M &mat, bool verbose, bool reusevector)
    Definition amg.hh:644
    \n-
    AMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const SmootherArgs &smootherArgs, const Parameters &parms)
    Construct a new amg with a specific coarse solver.
    Definition amg.hh:406
    \n-
    AMG(std::shared_ptr< const Operator > fineOperator, const ParameterTree &configuration, const ParallelInformation &pinfo=ParallelInformation())
    Constructor an AMG via ParameterTree.
    Definition amg.hh:452
    \n-
    ParallelInformationHierarchy::Iterator pinfo
    The iterator over the parallel information.
    Definition amg.hh:287
    \n-
    SolverType
    Definition amg.hh:627
    \n-
    OperatorHierarchy::AggregatesMapList::const_iterator aggregates
    The iterator over the aggregates maps.
    Definition amg.hh:295
    \n-
    SmootherTraits< Smoother >::Arguments SmootherArgs
    The argument type for the construction of the smoother.
    Definition amg.hh:100
    \n-
    Solver< Matrix, solver > SelectedSolver
    Definition amg.hh:677
    \n-
    std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr< MatrixAdapter< M, X, Y > > &op, const std::string &smoother, const Dune::ParameterTree &config) const
    Definition amg.hh:1182
    \n-
    std::string operator()(const std::string &str)
    Definition amg.hh:378
    \n-
    std::shared_ptr< Dune::Preconditioner< typename OP::element_type::domain_type, typename OP::element_type::range_type > > makeAMG(const OP &op, const std::string &smoother, const Dune::ParameterTree &config) const
    Definition amg.hh:1175
    \n-
    S Smoother
    The type of the smoother.
    Definition amg.hh:97
    \n-
    static std::string name()
    Definition amg.hh:649
    \n-
    Hierarchy< Smoother, A >::Iterator smoother
    The iterator over the smoothers.
    Definition amg.hh:279
    \n-
    M Operator
    The matrix operator type.
    Definition amg.hh:73
    \n-
    OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix
    The iterator over the matrices.
    Definition amg.hh:283
    \n-\n-
    static type * create(const M &mat, bool verbose, bool reusevector)
    Definition amg.hh:668
    \n-
    OperatorHierarchy::RedistributeInfoList::const_iterator redist
    The iterator over the redistribution information.
    Definition amg.hh:291
    \n-
    X Range
    The range type.
    Definition amg.hh:89
    \n-
    void presmooth(LevelContext &levelContext, size_t steps)
    Apply pre smoothing on the current level.
    Definition smoother.hh:406
    \n-
    void getCoarsestAggregateNumbers(std::vector< std::size_t, A1 > &cont)
    Get the aggregate number of each unknown on the coarsest level.
    Definition amg.hh:1162
    \n-
    std::size_t levels()
    Definition amg.hh:876
    \n-
    InverseOperator< Vector, Vector > type
    Definition amg.hh:643
    \n-
    std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr< OverlappingSchwarzOperator< M, X, Y, C > > &op, const std::string &smoother, const Dune::ParameterTree &config) const
    Definition amg.hh:1203
    \n-
    Hierarchy< Domain, A >::Iterator lhs
    The iterator over the left hand side.
    Definition amg.hh:299
    \n-
    const void * Arguments
    A type holding all the arguments needed to call the constructor.
    Definition construction.hh:44
    \n-
    static constexpr SolverType solver
    Definition amg.hh:629
    \n-
    static std::shared_ptr< T > construct(Arguments &args)
    Construct an object with the specified arguments.
    Definition construction.hh:52
    \n-
    static constexpr bool isDirectSolver
    Definition amg.hh:679
    \n-
    void recalculateHierarchy()
    Recalculate the matrix hierarchy.
    Definition amg.hh:221
    \n-
    Matrix::field_type field_type
    Definition amg.hh:626
    \n-
    SelectedSolver::type DirectSolver
    Definition amg.hh:678
    \n-
    std::shared_ptr< Dune::Preconditioner< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL tl, const std::shared_ptr< OP > &op, const Dune::ParameterTree &config, std::enable_if_t< isValidBlockType< typename OP::matrix_type::block_type >::value, int >=0) const
    Definition amg.hh:1248
    \n-
    OperatorHierarchy::ParallelInformationHierarchy ParallelInformationHierarchy
    The parallal data distribution hierarchy type.
    Definition amg.hh:84
    \n-
    InverseOperator< X, X > CoarseSolver
    the type of the coarse solver.
    Definition amg.hh:91
    \n-
    void post(Domain &x)
    Clean up.
    Definition amg.hh:1139
    \n-
    std::size_t maxlevels()
    Definition amg.hh:881
    \n-
    std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr< NonoverlappingSchwarzOperator< M, X, Y, C > > &op, const std::string &smoother, const Dune::ParameterTree &config) const
    Definition amg.hh:1226
    \n-
    void postsmooth(LevelContext &levelContext, size_t steps)
    Apply post smoothing on the current level.
    Definition smoother.hh:428
    \n-
    std::size_t level
    The level index.
    Definition amg.hh:311
    \n-
    AMG(const Operator &fineOperator, const C &criterion, const SmootherArgs &smootherArgs=SmootherArgs(), const ParallelInformation &pinfo=ParallelInformation())
    Construct an AMG with an inexact coarse solver based on the smoother.
    Definition amg.hh:428
    \n-
    void apply(Domain &v, const Range &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition amg.hh:888
    \n-
    Smoother SmootherType
    Definition amg.hh:275
    \n-
    MatrixHierarchy< M, ParallelInformation, A > OperatorHierarchy
    The operator hierarchy type.
    Definition amg.hh:82
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition amg.hh:194
    \n-
    PI ParallelInformation
    The type of the parallel information. Either OwnerOverlapCommunication or another type describing the...
    Definition amg.hh:80
    \n-
    @ none
    Definition amg.hh:627
    \n-
    @ umfpack
    Definition amg.hh:627
    \n-
    @ superlu
    Definition amg.hh:627
    \n-
    @ atOnceAccu
    Accumulate data to one process at once.
    Definition parameters.hh:244
    \n-
    @ noAccu
    No data accumulution.
    Definition parameters.hh:238
    \n-
    @ successiveAccu
    Successively accumulate to fewer processes.
    Definition parameters.hh:248
    \n+
    Singleton< ParameterizedObjectFactory< PreconditionerSignature< M, X, Y > > > PreconditionerFactory
    Definition solverfactory.hh:36
    \n+
    Singleton< ParameterizedObjectFactory< DirectSolverSignature< M, X, Y > > > DirectSolverFactory
    Definition solverfactory.hh:30
    \n+
    std::shared_ptr< InverseOperator< X, Y > >(const std::shared_ptr< LinearOperator< X, Y > > &, const std::shared_ptr< ScalarProduct< X > > &, const std::shared_ptr< Preconditioner< X, Y > >, const ParameterTree &) IterativeSolverSignature
    Definition solverfactory.hh:40
    \n+
    std::shared_ptr< Preconditioner > wrapPreconditioner4Parallel(const std::shared_ptr< Preconditioner > &prec, const O &)
    Definition solverfactory.hh:86
    \n+
    std::shared_ptr< InverseOperator< X, Y > >(const M &, const ParameterTree &) DirectSolverSignature
    Definition solverfactory.hh:28
    \n+
    std::shared_ptr< InverseOperator< typename Operator::domain_type, typename Operator::range_type > > getSolverFromFactory(std::shared_ptr< Operator > op, const ParameterTree &config, std::shared_ptr< Preconditioner< typename Operator::domain_type, typename Operator::range_type > > prec=nullptr)
    Instantiates an InverseOperator from an Operator and a configuration given as a ParameterTree.
    Definition solverfactory.hh:227
    \n+
    Singleton< ParameterizedObjectFactory< IterativeSolverSignature< X, Y > > > IterativeSolverFactory
    Definition solverfactory.hh:42
    \n+
    std::shared_ptr< Preconditioner< X, Y > >(const std::shared_ptr< M > &, const ParameterTree &) PreconditionerSignature
    Definition solverfactory.hh:34
    \n
    Definition allocator.hh:11
    \n-
    ConstIterator class for sequential access.
    Definition matrix.hh:404
    \n-
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n-
    typename Imp::BlockTraits< T >::field_type field_type
    Export the type representing the underlying field.
    Definition matrix.hh:565
    \n-
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n-
    T block_type
    Export the type representing the components.
    Definition matrix.hh:568
    \n-
    Definition matrixutils.hh:27
    \n+
    std::shared_ptr< ScalarProduct< X > > createScalarProduct(const Comm &comm, SolverCategory::Category category)
    Definition scalarproducts.hh:242
    \n
    A nonoverlapping operator with communication object.
    Definition novlpschwarz.hh:61
    \n
    Adapter to turn a matrix into a linear operator.
    Definition operators.hh:137
    \n-
    Norm that uses only the [N][N] entry of the block to determine couplings.
    Definition aggregates.hh:379
    \n-
    Functor using the row sum (infinity) norm to determine strong couplings.
    Definition aggregates.hh:463
    \n-
    Definition aggregates.hh:480
    \n-
    Definition aggregates.hh:496
    \n-
    Criterion taking advantage of symmetric matrices.
    Definition aggregates.hh:519
    \n-
    Criterion suitable for unsymmetric matrices.
    Definition aggregates.hh:539
    \n-
    an algebraic multigrid method using a Krylov-cycle.
    Definition kamg.hh:140
    \n-
    Two grid operator for AMG with Krylov cycle.
    Definition kamg.hh:33
    \n-
    Parallel algebraic multigrid based on agglomeration.
    Definition amg.hh:65
    \n-
    Definition amg.hh:625
    \n-\n-
    Definition amg.hh:1169
    \n-\n
    An overlapping Schwarz operator.
    Definition schwarz.hh:75
    \n-\n-
    LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation > Iterator
    Type of the mutable iterator.
    Definition hierarchy.hh:216
    \n-
    Iterator over the levels in the hierarchy.
    Definition hierarchy.hh:120
    \n-
    The hierarchies build by the coarsening process.
    Definition matrixhierarchy.hh:61
    \n-
    The criterion describing the stop criteria for the coarsening process.
    Definition matrixhierarchy.hh:283
    \n-
    All parameters for AMG.
    Definition parameters.hh:393
    \n-
    Definition pinfo.hh:28
    \n-
    The default class for the smoother arguments.
    Definition smoother.hh:38
    \n
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n-
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioner.hh:39
    \n-
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n-
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n-
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n-
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n-
    Categories for the solvers.
    Definition solvercategory.hh:22
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n-
    Definition solvercategory.hh:54
    \n-
    Definition solverregistry.hh:77
    \n-
    Definition solvertype.hh:16
    \n-
    SuperLu Solver.
    Definition superlu.hh:271
    \n-
    Definition umfpack.hh:49
    \n-
    The UMFPack direct sparse solver.
    Definition umfpack.hh:335
    \n+\n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n+
    Factory to assembly solvers configured by a ParameterTree.
    Definition solverfactory.hh:145
    \n+
    static std::shared_ptr< Solver > get(std::shared_ptr< Operator > op, const ParameterTree &config, std::shared_ptr< Preconditioner > prec=nullptr)
    get a solver from the factory
    Definition solverfactory.hh:168
    \n+
    static std::shared_ptr< Preconditioner > getPreconditioner(std::shared_ptr< Operator > op, const ParameterTree &config)
    Construct a Preconditioner for a given Operator.
    Definition solverfactory.hh:203
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1597 +1,303 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bp_\ba_\ba_\bm_\bg\n-amg.hh\n+solverfactory.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_AMG_AMG_HH\n-6#define DUNE_AMG_AMG_HH\n-7\n-8#include \n-9#include \n-10#include \n-11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh>\n-12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh>\n-13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh>\n-14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n-15#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n-16#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh>\n-17#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh>\n-18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-19#include \n-20#include \n-21#include \n-22#include \n-23#include \n-24\n-25namespace _\bD_\bu_\bn_\be\n-26{\n-27 namespace Amg\n-28 {\n-46 template\n-47 class KAMG;\n-48\n-49 template\n-50 class KAmgTwoGrid;\n-51\n-62 template >\n-_\b6_\b4 class _\bA_\bM_\bG : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-65 {\n-66 template\n-_\b6_\b7 friend class _\bK_\bA_\bM_\bG;\n-68\n-69 friend class _\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd<_\bA_\bM_\bG>;\n-70\n-71 public:\n-_\b7_\b3 typedef M _\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n-_\b8_\b0 typedef PI _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn;\n-_\b8_\b2 typedef _\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bM_\b,_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\b> _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n-_\b8_\b4 typedef typename _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by;\n-85\n-_\b8_\b7 typedef X _\bD_\bo_\bm_\ba_\bi_\bn;\n-_\b8_\b9 typedef X _\bR_\ba_\bn_\bg_\be;\n-_\b9_\b1 typedef _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b> _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br;\n-_\b9_\b7 typedef S _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-98\n-_\b1_\b0_\b0 typedef typename _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs;\n-101\n-_\b1_\b1_\b1 _\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br& coarseSolver,\n-112 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs, const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms);\n-113\n-125 template\n-_\b1_\b2_\b6 _\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& fineOperator, const C& criterion,\n-127 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs=_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs(),\n-128 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo=_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n-129\n-_\b1_\b8_\b0 _\bA_\bM_\bG(std::shared_ptr fineOperator, const ParameterTree&\n-configuration, const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo=_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn());\n-181\n-_\b1_\b8_\b5 _\bA_\bM_\bG(const _\bA_\bM_\bG& amg);\n-186\n-_\b1_\b8_\b8 void _\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b);\n-189\n-_\b1_\b9_\b1 void _\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d);\n-192\n-_\b1_\b9_\b4 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-195 {\n-196 return category_;\n-197 }\n-198\n-_\b2_\b0_\b0 void _\bp_\bo_\bs_\bt(_\bD_\bo_\bm_\ba_\bi_\bn& x);\n-201\n-206 template\n-_\b2_\b0_\b7 void _\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs(std::vector& cont);\n-208\n-_\b2_\b0_\b9 std::size_t _\bl_\be_\bv_\be_\bl_\bs();\n-210\n-_\b2_\b1_\b1 std::size_t _\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs();\n-212\n-_\b2_\b2_\b1 void _\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by()\n-222 {\n-223 matrices_->recalculateGalerkin(NegateSet());\n-224 }\n-225\n-_\b2_\b3_\b0 bool _\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br() const;\n-231\n-232 private:\n-233 /*\n-234 * @brief Helper function to create hierarchies with parameter tree.\n-235 *\n-236 * Will create the coarsen criterion with the norm and create the\n-237 * Hierarchies\n-238 * \\tparam Norm Type of the norm to use.\n-239 */\n-240 template\n-241 void createCriterionAndHierarchies(std::shared_ptr\n-matrixptr,\n-242 const PI& pinfo, const Norm&,\n-243 const ParameterTree& configuration,\n-244 std::true_type compiles = std::true_type());\n-245 template\n-246 void createCriterionAndHierarchies(std::shared_ptr\n-matrixptr,\n-247 const PI& pinfo, const Norm&,\n-248 const ParameterTree& configuration,\n-249 std::false_type);\n-254 template\n-255 void createHierarchies(C& criterion, std::shared_ptr\n-matrixptr,\n-256 const PI& pinfo, const ParameterTree& configuration);\n-263 template\n-264 void createHierarchies(C& criterion,\n-265 const std::shared_ptr& matrixptr,\n-266 const PI& pinfo);\n-273 struct LevelContext\n-274 {\n-_\b2_\b7_\b5 typedef _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be;\n-_\b2_\b7_\b9 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bs_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-_\b2_\b8_\b3 typename OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator _\bm_\ba_\bt_\br_\bi_\bx;\n-_\b2_\b8_\b7 typename _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bp_\bi_\bn_\bf_\bo;\n-_\b2_\b9_\b1 typename OperatorHierarchy::RedistributeInfoList::const_iterator _\br_\be_\bd_\bi_\bs_\bt;\n-_\b2_\b9_\b5 typename OperatorHierarchy::AggregatesMapList::const_iterator _\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs;\n-_\b2_\b9_\b9 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bl_\bh_\bs;\n-_\b3_\b0_\b3 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bu_\bp_\bd_\ba_\bt_\be;\n-_\b3_\b0_\b7 typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bR_\ba_\bn_\bg_\be_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\br_\bh_\bs;\n-_\b3_\b1_\b1 std::size_t _\bl_\be_\bv_\be_\bl;\n-312 };\n-313\n-314\n-319 void mgc(LevelContext& levelContext);\n-320\n-321 void additiveMgc();\n-322\n-329 void moveToFineLevel(LevelContext& levelContext,bool processedFineLevel);\n-330\n-335 bool moveToCoarseLevel(LevelContext& levelContext);\n-336\n-341 void initIteratorsWithFineLevel(LevelContext& levelContext);\n-342\n-344 std::shared_ptr matrices_;\n-346 _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs smootherArgs_;\n-348 std::shared_ptr > smoothers_;\n-350 std::shared_ptr solver_;\n-352 std::shared_ptr> rhs_;\n-354 std::shared_ptr> lhs_;\n-356 std::shared_ptr> update_;\n-358 using _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt = _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>;\n-360 std::shared_ptr scalarProduct_;\n-362 std::size_t gamma_;\n-364 std::size_t preSteps_;\n-366 std::size_t postSteps_;\n-367 bool buildHierarchy_;\n-368 bool additive;\n-369 bool coarsesolverconverged;\n-370 std::shared_ptr coarseSmoother_;\n-372 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category_;\n-374 std::size_t verbosity_;\n-375\n-376 struct ToLower\n-377 {\n-_\b3_\b7_\b8 std::string _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const std::string& str)\n-379 {\n-380 std::stringstream retval;\n-381 std::ostream_iterator out(retval);\n-382 std::transform(str.begin(), str.end(), out,\n-383 [](char c){\n-384 return std::tolower(c, std::locale::classic());\n-385 });\n-386 return retval.str();\n-387 }\n-388 };\n-389 };\n-390\n-391 template\n-_\b3_\b9_\b2 inline _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bA_\bM_\bG(const _\bA_\bM_\bG& amg)\n-393 : matrices_(amg.matrices_), smootherArgs_(amg.smootherArgs_),\n-394 smoothers_(amg.smoothers_), solver_(amg.solver_),\n-395 rhs_(), lhs_(), update_(),\n-396 scalarProduct_(amg.scalarProduct_), gamma_(amg.gamma_),\n-397 preSteps_(amg.preSteps_), postSteps_(amg.postSteps_),\n-398 buildHierarchy_(amg.buildHierarchy_),\n-399 additive(amg.additive), coarsesolverconverged(amg.coarsesolverconverged),\n-400 coarseSmoother_(amg.coarseSmoother_),\n-401 category_(amg.category_),\n-402 verbosity_(amg.verbosity_)\n-403 {}\n-404\n-405 template\n-_\b4_\b0_\b6 _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bA_\bM_\bG(_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by& matrices, _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br&\n-coarseSolver,\n-407 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs,\n-408 const _\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs& parms)\n-409 : matrices_(stackobject_to_shared_ptr(matrices)), smootherArgs_\n-(smootherArgs),\n-410 smoothers_(new _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br,A>), solver_(&coarseSolver),\n-411 rhs_(), lhs_(), update_(), scalarProduct_(0),\n-412 gamma_(parms.getGamma()), preSteps_(parms.getNoPreSmoothSteps()),\n-413 postSteps_(parms.getNoPostSmoothSteps()), buildHierarchy_(false),\n-414 additive(parms.getAdditive()), coarsesolverconverged(true),\n-415 coarseSmoother_(),\n-416// #warning should category be retrieved from matrices?\n-417 category_(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::category(*smoothers_->coarsest())),\n-418 verbosity_(parms.debugLevel())\n-419 {\n-420 assert(matrices_->isBuilt());\n-421\n-422 // build the necessary smoother hierarchies\n-423 matrices_->coarsenSmoother(*smoothers_, smootherArgs_);\n-424 }\n-425\n-426 template\n-427 template\n-_\b4_\b2_\b8 _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bA_\bM_\bG(const _\bO_\bp_\be_\br_\ba_\bt_\bo_\br& matrix,\n-429 const C& criterion,\n-430 const _\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs& smootherArgs,\n-431 const PI& pinfo)\n-432 : smootherArgs_(smootherArgs),\n-433 smoothers_(new _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br,A>), solver_(),\n-434 rhs_(), lhs_(), update_(), scalarProduct_(),\n-435 gamma_(criterion.getGamma()), preSteps_(criterion.getNoPreSmoothSteps()),\n-436 postSteps_(criterion.getNoPostSmoothSteps()), buildHierarchy_(true),\n-437 additive(criterion.getAdditive()), coarsesolverconverged(true),\n-438 coarseSmoother_(),\n-439 category_(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::category(pinfo)),\n-440 verbosity_(criterion.debugLevel())\n-441 {\n-442 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(matrix) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(pinfo))\n-443 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"Matrix and Communication must have the\n-same SolverCategory!\");\n-444 // TODO: reestablish compile time checks.\n-445 //static_assert(static_cast(PI::category)==static_cast(S::\n-category),\n-446 // \"Matrix and Solver must match in terms of category!\");\n-447 auto matrixptr = stackobject_to_shared_ptr(matrix);\n-448 createHierarchies(criterion, matrixptr, pinfo);\n-449 }\n-450\n-451 template\n-_\b4_\b5_\b2 _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bA_\bM_\bG(std::shared_ptr matrixptr,\n-453 const ParameterTree& configuration,\n-454 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& pinfo) :\n-455 smoothers_(new _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br,A>),\n-456 solver_(), rhs_(), lhs_(), update_(), scalarProduct_(), buildHierarchy_\n-(true),\n-457 coarsesolverconverged(true), coarseSmoother_(),\n-458 category_(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::category(pinfo))\n-459 {\n-460\n-461 if (configuration.hasKey (\"smootherIterations\"))\n-462 smootherArgs_.iterations = configuration.get(\"smootherIterations\");\n-463\n-464 if (configuration.hasKey (\"smootherRelaxation\"))\n-465 smootherArgs_.relaxationFactor = configuration.get(\"smootherRelaxation\");\n-466\n-467 auto normName = ToLower()(configuration.get(\"strengthMeasure\",\n-\"diagonal\"));\n-468 auto index = configuration.get(\"diagonalRowIndex\", 0);\n-469\n-470 if ( normName == \"diagonal\")\n-471 {\n-472 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename M::field_type;\n-473 using real_type = typename FieldTraits::real_type;\n-474 std::is_convertible compiles;\n-475\n-476 switch (index)\n-477 {\n-478 case 0:\n-479 createCriterionAndHierarchies(matrixptr, pinfo, _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b0_\b>(),\n-configuration, compiles);\n-480 break;\n-481 case 1:\n-482 createCriterionAndHierarchies(matrixptr, pinfo, _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b1_\b>(),\n-configuration, compiles);\n-483 break;\n-484 case 2:\n-485 createCriterionAndHierarchies(matrixptr, pinfo, _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b2_\b>(),\n-configuration, compiles);\n-486 break;\n-487 case 3:\n-488 createCriterionAndHierarchies(matrixptr, pinfo, _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b3_\b>(),\n-configuration, compiles);\n-489 break;\n-490 case 4:\n-491 createCriterionAndHierarchies(matrixptr, pinfo, _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\b<_\b4_\b>(),\n-configuration, compiles);\n-492 break;\n-493 default:\n-494 DUNE_THROW(InvalidStateException, \"Currently strengthIndex>4 is not\n-supported.\");\n-495 }\n-496 }\n-497 else if (normName == \"rowsum\")\n-498 createCriterionAndHierarchies(matrixptr, pinfo, _\bR_\bo_\bw_\bS_\bu_\bm(), configuration);\n-499 else if (normName == \"frobenius\")\n-500 createCriterionAndHierarchies(matrixptr, pinfo, _\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm(),\n-configuration);\n-501 else if (normName == \"one\")\n-502 createCriterionAndHierarchies(matrixptr, pinfo, _\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm(),\n-configuration);\n-503 else\n-504 DUNE_THROW(Dune::NotImplemented, \"Wrong config file: strengthMeasure\n-\"<\n-508 template\n-509 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\bA_\bn_\bd_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\bi_\be_\bs(std::shared_ptr matrixptr, const PI& pinfo, const Norm&, const ParameterTree&\n-configuration, std::false_type)\n-510 {\n-511 DUNE_THROW(InvalidStateException, \"Strength of connection measure does not\n-support this type (\"\n-512 << className() << \") as it is lacking a conversion\n-to\"\n-513 << className::real_type>() <<\n-\".\");\n-514 }\n-515\n-516 template\n-517 template\n-518 void AMG::createCriterionAndHierarchies(std::shared_ptr matrixptr, const PI& pinfo, const Norm&, const ParameterTree&\n-configuration, std::true_type)\n-519 {\n-520 if (configuration.get(\"criterionSymmetric\", true))\n-521 {\n-522 using Criterion = _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn<\n-523 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b,_\bN_\bo_\br_\bm_\b> >;\n-524 Criterion criterion;\n-525 createHierarchies(criterion, matrixptr, pinfo, configuration);\n-526 }\n-527 else\n-528 {\n-529 using Criterion = _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn<\n-530 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b,_\bN_\bo_\br_\bm_\b> >;\n-531 Criterion criterion;\n-532 createHierarchies(criterion, matrixptr, pinfo, configuration);\n-533 }\n-534 }\n-535\n-536 template\n-537 template\n-538 void AMG::createHierarchies(C& criterion, std::shared_ptr matrixptr, const PI& pinfo, const ParameterTree& configuration)\n-539 {\n-540 if (configuration.hasKey (\"maxLevel\"))\n-541 criterion.setMaxLevel(configuration.get(\"maxLevel\"));\n-542\n-543 if (configuration.hasKey (\"minCoarseningRate\"))\n-544 criterion.setMinCoarsenRate(configuration.get(\"minCoarseningRate\"));\n-545\n-546 if (configuration.hasKey (\"coarsenTarget\"))\n-547 criterion.setCoarsenTarget (configuration.get(\"coarsenTarget\"));\n-548\n-549 if (configuration.hasKey (\"accumulationMode\"))\n-550 {\n-551 std::string mode = ToLower()(configuration.get\n-(\"accumulationMode\"));\n-552 if ( mode == \"none\")\n-553 criterion.setAccumulate(_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be_\b:_\b:_\bn_\bo_\bA_\bc_\bc_\bu);\n-554 else if ( mode == \"atonce\" )\n-555 criterion.setAccumulate(_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be_\b:_\b:_\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu);\n-556 else if ( mode == \"successive\")\n-557 criterion.setCoarsenTarget (_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bi_\bo_\bn_\bM_\bo_\bd_\be_\b:_\b:_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu);\n-558 else\n-559 DUNE_THROW(InvalidSolverFactoryConfiguration, \"Parameter accumulationMode\n-does not allow value \"\n-560 << mode <<\".\");\n-561 }\n-562\n-563 if (configuration.hasKey (\"prolongationDampingFactor\"))\n-564 criterion.setProlongationDampingFactor (configuration.get\n-(\"prolongationDampingFactor\"));\n-565\n-566 if (configuration.hasKey(\"defaultAggregationSizeMode\"))\n-567 {\n-568 auto mode = ToLower()(configuration.get\n-(\"defaultAggregationSizeMode\"));\n-569 auto dim = configuration.get(\"defaultAggregationDimension\");\n-570 std::size_t maxDistance = 2;\n-571 if (configuration.hasKey(\"MaxAggregateDistance\"))\n-572 maxDistance = configuration.get(\"maxAggregateDistance\");\n-573 if (mode == \"isotropic\")\n-574 criterion.setDefaultValuesIsotropic(dim, maxDistance);\n-575 else if(mode == \"anisotropic\")\n-576 criterion.setDefaultValuesAnisotropic(dim, maxDistance);\n-577 else\n-578 DUNE_THROW(InvalidSolverFactoryConfiguration, \"Parameter accumulationMode\n-does not allow value \"\n-579 << mode <<\".\");\n-580 }\n-581\n-582 if (configuration.hasKey(\"maxAggregateDistance\"))\n-583 criterion.setMaxDistance(configuration.get\n-(\"maxAggregateDistance\"));\n-584\n-585 if (configuration.hasKey(\"minAggregateSize\"))\n-586 criterion.setMinAggregateSize(configuration.get\n-(\"minAggregateSize\"));\n-587\n-588 if (configuration.hasKey(\"maxAggregateSize\"))\n-589 criterion.setMaxAggregateSize(configuration.get\n-(\"maxAggregateSize\"));\n-590\n-591 if (configuration.hasKey(\"maxAggregateConnectivity\"))\n-592 criterion.setMaxConnectivity(configuration.get\n-(\"maxAggregateConnectivity\"));\n-593\n-594 if (configuration.hasKey (\"alpha\"))\n-595 criterion.setAlpha (configuration.get (\"alpha\"));\n-596\n-597 if (configuration.hasKey (\"beta\"))\n-598 criterion.setBeta (configuration.get (\"beta\"));\n-599\n-600 if (configuration.hasKey (\"gamma\"))\n-601 criterion.setGamma (configuration.get (\"gamma\"));\n-602 gamma_ = criterion.getGamma();\n-603\n-604 if (configuration.hasKey (\"additive\"))\n-605 criterion.setAdditive (configuration.get(\"additive\"));\n-606 additive = criterion.getAdditive();\n-607\n-608 if (configuration.hasKey (\"preSteps\"))\n-609 criterion.setNoPreSmoothSteps (configuration.get\n-(\"preSteps\"));\n-610 preSteps_ = criterion.getNoPreSmoothSteps ();\n-611\n-612 if (configuration.hasKey (\"postSteps\"))\n-613 criterion.setNoPostSmoothSteps (configuration.get\n-(\"postSteps\"));\n-614 postSteps_ = criterion.getNoPostSmoothSteps ();\n-615\n-616 verbosity_ = configuration.get(\"verbosity\", 0);\n-617 criterion.setDebugLevel (verbosity_);\n-618\n-619 createHierarchies(criterion, matrixptr, pinfo);\n-620 }\n-621\n-622 template \n-_\b6_\b2_\b4 struct _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-625 {\n-_\b6_\b2_\b6 typedef typename Matrix :: field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b6_\b2_\b7 enum _\bS_\bo_\bl_\bv_\be_\br_\bT_\by_\bp_\be { _\bu_\bm_\bf_\bp_\ba_\bc_\bk, _\bs_\bu_\bp_\be_\br_\bl_\bu, _\bn_\bo_\bn_\be };\n-628\n-_\b6_\b2_\b9 static constexpr _\bS_\bo_\bl_\bv_\be_\br_\bT_\by_\bp_\be _\bs_\bo_\bl_\bv_\be_\br =\n-630#if DISABLE_AMG_DIRECTSOLVER\n-631 _\bn_\bo_\bn_\be;\n-632#elif HAVE_SUITESPARSE_UMFPACK\n-633 _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b> :: valid ? _\bu_\bm_\bf_\bp_\ba_\bc_\bk :\n-_\bn_\bo_\bn_\be ;\n-634#elif HAVE_SUPERLU\n-635 _\bs_\bu_\bp_\be_\br_\bl_\bu ;\n-636#else\n-637 _\bn_\bo_\bn_\be;\n-638#endif\n-639\n-640 template \n-_\b6_\b4_\b1 struct _\bS_\bo_\bl_\bv_\be_\br\n-642 {\n-_\b6_\b4_\b3 typedef _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bV_\be_\bc_\bt_\bo_\br_\b,_\bV_\be_\bc_\bt_\bo_\br_\b> _\bt_\by_\bp_\be;\n-_\b6_\b4_\b4 static _\bt_\by_\bp_\be* _\bc_\br_\be_\ba_\bt_\be(const M& _\bm_\ba_\bt, bool verbose, bool reusevector )\n-645 {\n-646 DUNE_THROW(NotImplemented,\"DirectSolver not selected\");\n-647 return nullptr;\n-648 }\n-_\b6_\b4_\b9 static std::string _\bn_\ba_\bm_\be () { return \"None\"; }\n-650 };\n-651#if HAVE_SUITESPARSE_UMFPACK\n-652 template \n-653 struct Solver< M, _\bu_\bm_\bf_\bp_\ba_\bc_\bk >\n-654 {\n-655 typedef _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b<_\b _\bM_\b _\b> _\bt_\by_\bp_\be;\n-656 static _\bt_\by_\bp_\be* _\bc_\br_\be_\ba_\bt_\be(const M& _\bm_\ba_\bt, bool verbose, bool reusevector )\n-657 {\n-658 return new _\bt_\by_\bp_\be(_\bm_\ba_\bt, verbose, reusevector );\n-659 }\n-660 static std::string _\bn_\ba_\bm_\be () { return \"UMFPack\"; }\n-661 };\n-662#endif\n-663#if HAVE_SUPERLU\n-664 template \n-_\b6_\b6_\b5 struct _\bS_\bo_\bl_\bv_\be_\br< M, _\bs_\bu_\bp_\be_\br_\bl_\bu >\n-666 {\n-_\b6_\b6_\b7 typedef _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\b _\bM_\b _\b> _\bt_\by_\bp_\be;\n-_\b6_\b6_\b8 static _\bt_\by_\bp_\be* _\bc_\br_\be_\ba_\bt_\be(const M& _\bm_\ba_\bt, bool verbose, bool reusevector )\n-669 {\n-670 return new _\bt_\by_\bp_\be(_\bm_\ba_\bt, verbose, reusevector );\n-671 }\n-_\b6_\b7_\b2 static std::string _\bn_\ba_\bm_\be () { return \"SuperLU\"; }\n-673 };\n-674#endif\n-675\n-676 // define direct solver type to be used\n-_\b6_\b7_\b7 typedef _\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bs_\bo_\bl_\bv_\be_\br_\b _\b> _\bS_\be_\bl_\be_\bc_\bt_\be_\bd_\bS_\bo_\bl_\bv_\be_\br ;\n-_\b6_\b7_\b8 typedef typename SelectedSolver :: type _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br;\n-_\b6_\b7_\b9 static constexpr bool _\bi_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br = _\bs_\bo_\bl_\bv_\be_\br != _\bn_\bo_\bn_\be;\n-_\b6_\b8_\b0 static std::string _\bn_\ba_\bm_\be() { return SelectedSolver :: name (); }\n-_\b6_\b8_\b1 static _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br* _\bc_\br_\be_\ba_\bt_\be(const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt, bool verbose, bool\n-reusevector )\n-682 {\n-683 return SelectedSolver :: create( _\bm_\ba_\bt, verbose, reusevector );\n-684 }\n-685 };\n-686\n-687 template\n-688 template\n-689 void AMG::createHierarchies(C& criterion,\n-690 const std::shared_ptr& matrixptr,\n-691 const PI& pinfo)\n-692 {\n-693 Timer watch;\n-694 matrices_ = std::make_shared(\n-695 std::const_pointer_cast(matrixptr),\n-696 stackobject_to_shared_ptr(const_cast(pinfo)));\n-697\n-698 matrices_->template build >(criterion);\n-699\n-700 // build the necessary smoother hierarchies\n-701 matrices_->coarsenSmoother(*smoothers_, smootherArgs_);\n-702\n-703 // test whether we should solve on the coarse level. That is the case if we\n-704 // have that level and if there was a redistribution on this level then our\n-705 // communicator has to be valid (size()>0) as the smoother might try to\n-communicate\n-706 // in the constructor.\n-707 if(buildHierarchy_ && matrices_->levels()==matrices_->maxlevels()\n-708 && ( ! matrices_->redistributeInformation().back().isSetup() ||\n-709 matrices_->parallelInformation().coarsest().getRedistributed().communicator\n-().size() ) )\n-710 {\n-711 // We have the carsest level. Create the coarse Solver\n-712 SmootherArgs sargs(smootherArgs_);\n-713 sargs.iterations = 1;\n-714\n-715 typename _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs cargs;\n-716 cargs.setArgs(sargs);\n-717 if(matrices_->redistributeInformation().back().isSetup()) {\n-718 // Solve on the redistributed partitioning\n-719 cargs.setMatrix(matrices_->matrices().coarsest().getRedistributed().getmat\n-());\n-720 cargs.setComm(matrices_->parallelInformation().coarsest().getRedistributed\n-());\n-721 }else{\n-722 cargs.setMatrix(matrices_->matrices().coarsest()->getmat());\n-723 cargs.setComm(*matrices_->parallelInformation().coarsest());\n-724 }\n-725\n-726 coarseSmoother_ = _\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b>_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt(cargs);\n-727 scalarProduct_ = createScalarProduct(cargs.getComm(),category());\n-728\n-729 typedef DirectSolverSelector< typename M::matrix_type, X > SolverSelector;\n-730\n-731 // Use superlu if we are purely sequential or with only one processor on\n-the coarsest level.\n-732 if( SolverSelector::isDirectSolver &&\n-733 (std::is_same::value /\n-/ sequential mode\n-734 || matrices_->parallelInformation().coarsest()->communicator().size()==1 //\n-parallel mode and only one processor\n-735 || (matrices_->parallelInformation().coarsest().isRedistributed()\n-736 && matrices_->parallelInformation().coarsest().getRedistributed\n-().communicator().size()==1\n-737 && matrices_->parallelInformation().coarsest().getRedistributed\n-().communicator().size()>0) )\n-738 )\n-739 { // redistribute and 1 proc\n-740 if(matrices_->parallelInformation().coarsest().isRedistributed())\n-741 {\n-742 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)\n-743 {\n-744 // We are still participating on this level\n-745 solver_.reset(SolverSelector::create(matrices_->matrices().coarsest\n-().getRedistributed().getmat(), false, false));\n-746 }\n-747 else\n-748 solver_.reset();\n-749 }\n-750 else\n-751 {\n-752 solver_.reset(SolverSelector::create(matrices_->matrices().coarsest()-\n->getmat(), false, false));\n-753 }\n-754 if(verbosity_>0 && matrices_->parallelInformation().coarsest()-\n->communicator().rank()==0)\n-755 std::cout<< \"Using a direct coarse solver (\" << SolverSelector::name() <<\n-\")\" << std::endl;\n-756 }\n-757 else\n-758 {\n-759 if(matrices_->parallelInformation().coarsest().isRedistributed())\n-760 {\n-761 if(matrices_->matrices().coarsest().getRedistributed().getmat().N()>0)\n-762 // We are still participating on this level\n-763\n-764 // we have to allocate these types using the rebound allocator\n-765 // in order to ensure that we fulfill the alignment requirements\n-766 solver_.reset(new BiCGSTABSolver(const_cast(matrices_->matrices\n-().coarsest().getRedistributed()),\n-767 *scalarProduct_,\n-768 *coarseSmoother_, 1E-2, 1000, 0));\n-769 else\n-770 solver_.reset();\n-771 }else\n-772 {\n-773 solver_.reset(new BiCGSTABSolver(const_cast(*matrices_->matrices\n-().coarsest()),\n-774 *scalarProduct_,\n-775 *coarseSmoother_, 1E-2, 1000, 0));\n-776 // // we have to allocate these types using the rebound allocator\n-777 // // in order to ensure that we fulfill the alignment requirements\n-778 // using Alloc = typename std::allocator_traits::template\n-rebind_alloc>;\n-779 // Alloc alloc;\n-780 // auto p = alloc.allocate(1);\n-781 // std::allocator_traits::construct(alloc, p,\n-782 // const_cast(*matrices_->matrices().coarsest()),\n-783 // *scalarProduct_,\n-784 // *coarseSmoother_, 1E-2, 1000, 0);\n-785 // solver_.reset(p,[](BiCGSTABSolver* p){\n-786 // Alloc alloc;\n-787 // std::allocator_traits::destroy(alloc, p);\n-788 // alloc.deallocate(p,1);\n-789 // });\n-790 }\n-791 }\n-792 }\n-793\n-794 if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator\n-().rank()==0)\n-795 std::cout<<\"Building hierarchy of \"<maxlevels()<<\" levels \"\n-796 <<\"(including coarse solver) took \"<\n-_\b8_\b0_\b1 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bp_\br_\be(_\bD_\bo_\bm_\ba_\bi_\bn& x, _\bR_\ba_\bn_\bg_\be& b)\n-802 {\n-803 // Detect Matrix rows where all offdiagonal entries are\n-804 // zero and set x such that A_dd*x_d=b_d\n-805 // Thus users can be more careless when setting up their linear\n-806 // systems.\n-807 typedef typename M::matrix_type _\bM_\ba_\bt_\br_\bi_\bx;\n-808 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br RowIter;\n-809 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ColIter;\n-810 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be Block;\n-811 Block zero;\n-812 zero=typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be();\n-813\n-814 const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt=matrices_->matrices().finest()->getmat();\n-815 for(RowIter row=_\bm_\ba_\bt.begin(); row!=_\bm_\ba_\bt.end(); ++row) {\n-816 bool isDirichlet = true;\n-817 bool hasDiagonal = false;\n-818 Block diagonal{};\n-819 for(ColIter _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl!=row->end(); ++_\bc_\bo_\bl) {\n-820 if(row.index()==_\bc_\bo_\bl.index()) {\n-821 diagonal = *_\bc_\bo_\bl;\n-822 hasDiagonal = true;\n-823 }else{\n-824 if(*_\bc_\bo_\bl!=zero)\n-825 isDirichlet = false;\n-826 }\n-827 }\n-828 if(isDirichlet && hasDiagonal)\n-829 {\n-830 auto&& xEntry = Impl::asVector(x[row.index()]);\n-831 auto&& bEntry = Impl::asVector(b[row.index()]);\n-832 Impl::asMatrix(diagonal).solve(xEntry, bEntry);\n-833 }\n-834 }\n-835\n-836 if(smoothers_->levels()>0)\n-837 smoothers_->finest()->pre(x,b);\n-838 else\n-839 // No smoother to make x consistent! Do it by hand\n-840 matrices_->parallelInformation().coarsest()->copyOwnerToAll(x,x);\n-841 rhs_ = std::make_shared>(std::make_shared(b));\n-842 lhs_ = std::make_shared>(std::make_shared(x));\n-843 update_ = std::make_shared>(std::make_shared\n-(x));\n-844 matrices_->coarsenVector(*rhs_);\n-845 matrices_->coarsenVector(*lhs_);\n-846 matrices_->coarsenVector(*update_);\n-847\n-848 // Preprocess all smoothers\n-849 typedef typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n-850 typedef typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bR_\ba_\bn_\bg_\be_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br RIterator;\n-851 typedef typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br DIterator;\n-852 Iterator coarsest = smoothers_->coarsest();\n-853 Iterator smoother = smoothers_->finest();\n-854 RIterator rhs = rhs_->finest();\n-855 DIterator lhs = lhs_->finest();\n-856 if(smoothers_->levels()>1) {\n-857\n-858 assert(lhs_->levels()==rhs_->levels());\n-859 assert(smoothers_->levels()==lhs_->levels() || matrices_->levels\n-()==matrices_->maxlevels());\n-860 assert(smoothers_->levels()+1==lhs_->levels() || matrices_->levels\n-()maxlevels());\n-861\n-862 if(smoother!=coarsest)\n-863 for(++smoother, ++lhs, ++rhs; smoother != coarsest; ++smoother, ++lhs,\n-++rhs)\n-864 smoother->pre(*lhs,*rhs);\n-865 smoother->pre(*lhs,*rhs);\n-866 }\n-867\n-868\n-869 // The preconditioner might change x and b. So we have to\n-870 // copy the changes to the original vectors.\n-871 x = *lhs_->finest();\n-872 b = *rhs_->finest();\n-873\n-874 }\n-875 template\n-_\b8_\b7_\b6 std::size_t _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs()\n-877 {\n-878 return matrices_->levels();\n-879 }\n-880 template\n-_\b8_\b8_\b1 std::size_t _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs()\n-882 {\n-883 return matrices_->maxlevels();\n-884 }\n-885\n-887 template\n-_\b8_\b8_\b8 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(_\bD_\bo_\bm_\ba_\bi_\bn& v, const _\bR_\ba_\bn_\bg_\be& d)\n-889 {\n-890 LevelContext levelContext;\n-891\n-892 if(additive) {\n-893 *(rhs_->finest())=d;\n-894 additiveMgc();\n-895 v=*lhs_->finest();\n-896 }else{\n-897 // Init all iterators for the current level\n-898 initIteratorsWithFineLevel(levelContext);\n-899\n-900\n-901 *levelContext.lhs = v;\n-902 *levelContext.rhs = d;\n-903 *levelContext.update=0;\n-904 levelContext.level=0;\n-905\n-906 mgc(levelContext);\n-907\n-908 if(postSteps_==0||matrices_->maxlevels()==1)\n-909 levelContext.pinfo->copyOwnerToAll(*levelContext.update,\n-*levelContext.update);\n-910\n-911 v=*levelContext.update;\n-912 }\n-913\n-914 }\n-915\n-916 template\n-917 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bi_\bn_\bi_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bs_\bW_\bi_\bt_\bh_\bF_\bi_\bn_\be_\bL_\be_\bv_\be_\bl(LevelContext&\n-levelContext)\n-918 {\n-919 levelContext.smoother = smoothers_->finest();\n-920 levelContext.matrix = matrices_->matrices().finest();\n-921 levelContext.pinfo = matrices_->parallelInformation().finest();\n-922 levelContext.redist =\n-923 matrices_->redistributeInformation().begin();\n-924 levelContext.aggregates = matrices_->aggregatesMaps().begin();\n-925 levelContext.lhs = lhs_->finest();\n-926 levelContext.update = update_->finest();\n-927 levelContext.rhs = rhs_->finest();\n-928 }\n-929\n-930 template\n-931 bool AMG\n-932 ::moveToCoarseLevel(LevelContext& levelContext)\n-933 {\n-934\n-935 bool processNextLevel=true;\n-936\n-937 if(levelContext.redist->isSetup()) {\n-938 levelContext.redist->redistribute(static_cast\n-(*levelContext.rhs),\n-939 levelContext.rhs.getRedistributed());\n-940 processNextLevel = levelContext.rhs.getRedistributed().size()>0;\n-941 if(processNextLevel) {\n-942 //restrict defect to coarse level right hand side.\n-943 typename Hierarchy::Iterator fineRhs = levelContext.rhs++;\n-944 ++levelContext.pinfo;\n-945 Transfer\n-946 ::restrictVector(*(*levelContext.aggregates), *levelContext.rhs,\n-947 static_cast(fineRhs.getRedistributed()),\n-948 *levelContext.pinfo);\n-949 }\n-950 }else{\n-951 //restrict defect to coarse level right hand side.\n-952 typename Hierarchy::Iterator fineRhs = levelContext.rhs++;\n-953 ++levelContext.pinfo;\n-954 Transfer\n-955 ::restrictVector(*(*levelContext.aggregates),\n-956 *levelContext.rhs, static_cast(*fineRhs),\n-957 *levelContext.pinfo);\n-958 }\n-959\n-960 if(processNextLevel) {\n-961 // prepare coarse system\n-962 ++levelContext.lhs;\n-963 ++levelContext.update;\n-964 ++levelContext.matrix;\n-965 ++levelContext.level;\n-966 ++levelContext.redist;\n-967\n-968 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_-\n->levels()maxlevels()) {\n-969 // next level is not the globally coarsest one\n-970 ++levelContext.smoother;\n-971 ++levelContext.aggregates;\n-972 }\n-973 // prepare the update on the next level\n-974 *levelContext.update=0;\n-975 }\n-976 return processNextLevel;\n-977 }\n-978\n-979 template\n-980 void AMG\n-981 ::moveToFineLevel(LevelContext& levelContext, bool processNextLevel)\n-982 {\n-983 if(processNextLevel) {\n-984 if(levelContext.matrix != matrices_->matrices().coarsest() || matrices_-\n->levels()maxlevels()) {\n-985 // previous level is not the globally coarsest one\n-986 --levelContext.smoother;\n-987 --levelContext.aggregates;\n-988 }\n-989 --levelContext.redist;\n-990 --levelContext.level;\n-991 //prolongate and add the correction (update is in coarse left hand side)\n-992 --levelContext.matrix;\n-993\n-994 //typename Hierarchy::Iterator coarseLhs = lhs--;\n-995 --levelContext.lhs;\n-996 --levelContext.pinfo;\n-997 }\n-998 if(levelContext.redist->isSetup()) {\n-999 // Need to redistribute during prolongateVector\n-1000 levelContext.lhs.getRedistributed()=0;\n-1001 Transfer\n-1002 ::prolongateVector(*(*levelContext.aggregates), *levelContext.update,\n-*levelContext.lhs,\n-1003 levelContext.lhs.getRedistributed(),\n-1004 matrices_->getProlongationDampingFactor(),\n-1005 *levelContext.pinfo, *levelContext.redist);\n-1006 }else{\n-1007 *levelContext.lhs=0;\n-1008 Transfer\n-1009 ::prolongateVector(*(*levelContext.aggregates), *levelContext.update,\n-*levelContext.lhs,\n-1010 matrices_->getProlongationDampingFactor(),\n-1011 *levelContext.pinfo);\n-1012 }\n-1013\n-1014\n-1015 if(processNextLevel) {\n-1016 --levelContext.update;\n-1017 --levelContext.rhs;\n-1018 }\n-1019\n-1020 *levelContext.update += *levelContext.lhs;\n-1021 }\n-1022\n-1023 template\n-_\b1_\b0_\b2_\b4 bool _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br() const\n-1025 {\n-1026 return _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be;\n-1027 }\n-1028\n-1029 template\n-1030 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bm_\bg_\bc(LevelContext& levelContext){\n-1031 if(levelContext.matrix == matrices_->matrices().coarsest() && levels\n-()==maxlevels()) {\n-1032 // Solve directly\n-1033 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n-1034 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd=true; // If we do not compute this flag will not get updated\n-1035 if(levelContext.redist->isSetup()) {\n-1036 levelContext.redist->redistribute(*levelContext.rhs,\n-levelContext.rhs.getRedistributed());\n-1037 if(levelContext.rhs.getRedistributed().size()>0) {\n-1038 // We are still participating in the computation\n-1039 levelContext.pinfo.getRedistributed().copyOwnerToAll\n-(levelContext.rhs.getRedistributed(),\n-1040 levelContext.rhs.getRedistributed());\n-1041 solver_->apply(levelContext.update.getRedistributed(),\n-1042 levelContext.rhs.getRedistributed(), res);\n-1043 }\n-1044 levelContext.redist->redistributeBackward(*levelContext.update,\n-levelContext.update.getRedistributed());\n-1045 levelContext.pinfo->copyOwnerToAll(*levelContext.update,\n-*levelContext.update);\n-1046 }else{\n-1047 levelContext.pinfo->copyOwnerToAll(*levelContext.rhs, *levelContext.rhs);\n-1048 solver_->apply(*levelContext.update, *levelContext.rhs, res);\n-1049 }\n-1050\n-1051 if (!res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd)\n-1052 coarsesolverconverged = false;\n-1053 }else{\n-1054 // presmoothing\n-1055 _\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh(levelContext, preSteps_);\n-1056\n-1057#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION\n-1058 bool processNextLevel = moveToCoarseLevel(levelContext);\n-1059\n-1060 if(processNextLevel) {\n-1061 // next level\n-1062 for(std::size_t i=0; imatrices().coarsest() && levels\n-()==maxlevels())\n-1065 break;\n-1066 if(i+1 < gamma_){\n-1067 levelContext.matrix->applyscaleadd(-1., *levelContext.lhs,\n-*levelContext.rhs);\n-1068 }\n-1069 }\n-1070 }\n-1071\n-1072 moveToFineLevel(levelContext, processNextLevel);\n-1073#else\n-1074 *lhs=0;\n-1075#endif\n-1076\n-1077 if(levelContext.matrix == matrices_->matrices().finest()) {\n-1078 coarsesolverconverged = matrices_->parallelInformation().finest()-\n->communicator().prod(coarsesolverconverged);\n-1079 if(!coarsesolverconverged)\n-1080 DUNE_THROW(MathError, \"Coarse solver did not converge\");\n-1081 }\n-1082 // postsmoothing\n-1083 _\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh(levelContext, postSteps_);\n-1084\n-1085 }\n-1086 }\n-1087\n-1088 template\n-1089 void AMG::additiveMgc(){\n-1090\n-1091 // restrict residual to all levels\n-1092 typename ParallelInformationHierarchy::Iterator pinfo=matrices_-\n->parallelInformation().finest();\n-1093 typename Hierarchy::Iterator rhs=rhs_->finest();\n-1094 typename Hierarchy::Iterator lhs = lhs_->finest();\n-1095 typename OperatorHierarchy::AggregatesMapList::const_iterator\n-aggregates=matrices_->aggregatesMaps().begin();\n-1096\n-1097 for(typename Hierarchy::Iterator fineRhs=rhs++; fineRhs != rhs_-\n->coarsest(); fineRhs=rhs++, ++aggregates) {\n-1098 ++pinfo;\n-1099 Transfer\n-1100 ::restrictVector(*(*aggregates), *rhs, static_cast\n-(*fineRhs), *pinfo);\n-1101 }\n-1102\n-1103 // pinfo is invalid, set to coarsest level\n-1104 //pinfo = matrices_->parallelInformation().coarsest\n-1105 // calculate correction for all levels\n-1106 lhs = lhs_->finest();\n-1107 typename Hierarchy::Iterator smoother = smoothers_->finest();\n-1108\n-1109 for(rhs=rhs_->finest(); rhs != rhs_->coarsest(); ++lhs, ++rhs, ++smoother)\n-{\n-1110 // presmoothing\n-1111 *lhs=0;\n-1112 smoother->apply(*lhs, *rhs);\n-1113 }\n-1114\n-1115 // Coarse level solve\n-1116#ifndef DUNE_AMG_NO_COARSEGRIDCORRECTION\n-1117 InverseOperatorResult res;\n-1118 pinfo->copyOwnerToAll(*rhs, *rhs);\n-1119 solver_->apply(*lhs, *rhs, res);\n-1120\n-1121 if(!res.converged)\n-1122 DUNE_THROW(MathError, \"Coarse solver did not converge\");\n-1123#else\n-1124 *lhs=0;\n-1125#endif\n-1126 // Prologate and add up corrections from all levels\n-1127 --pinfo;\n-1128 --aggregates;\n-1129\n-1130 for(typename Hierarchy::Iterator coarseLhs = lhs--; coarseLhs !=\n-lhs_->finest(); coarseLhs = lhs--, --aggregates, --pinfo) {\n-1131 Transfer\n-1132 ::prolongateVector(*(*aggregates), *coarseLhs, *lhs, 1.0, *pinfo);\n-1133 }\n-1134 }\n-1135\n-1136\n-1138 template\n-_\b1_\b1_\b3_\b9 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bp_\bo_\bs_\bt([[maybe_unused]] _\bD_\bo_\bm_\ba_\bi_\bn& x)\n-1140 {\n-1141 // Postprocess all smoothers\n-1142 typedef typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Iterator;\n-1143 typedef typename _\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br DIterator;\n-1144 Iterator coarsest = smoothers_->coarsest();\n-1145 Iterator smoother = smoothers_->finest();\n-1146 DIterator lhs = lhs_->finest();\n-1147 if(smoothers_->levels()>0) {\n-1148 if(smoother != coarsest || matrices_->levels()maxlevels())\n-1149 smoother->post(*lhs);\n-1150 if(smoother!=coarsest)\n-1151 for(++smoother, ++lhs; smoother != coarsest; ++smoother, ++lhs)\n-1152 smoother->post(*lhs);\n-1153 smoother->post(*lhs);\n-1154 }\n-1155 lhs_ = nullptr;\n-1156 update_ = nullptr;\n-1157 rhs_ = nullptr;\n-1158 }\n-1159\n-1160 template\n-1161 template\n-_\b1_\b1_\b6_\b2 void _\bA_\bM_\bG_\b<_\bM_\b,_\bX_\b,_\bS_\b,_\bP_\bI_\b,_\bA_\b>_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs(std::vector& cont)\n-1163 {\n-1164 matrices_->getCoarsestAggregatesOnFinest(cont);\n-1165 }\n-1166\n-1167 } // end namespace Amg\n-1168\n-_\b1_\b1_\b6_\b9 struct _\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br{\n-_\b1_\b1_\b7_\b0 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be : std::false_type{};\n-_\b1_\b1_\b7_\b1 template struct\n-_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx> : std::true_type{};\n-1172\n-1173 template\n-1174 std::shared_ptr >\n-_\b1_\b1_\b7_\b5 _\bm_\ba_\bk_\be_\bA_\bM_\bG(const OP& op, const std::string& smoother, const Dune::\n-ParameterTree& config) const\n-1176 {\n-1177 DUNE_THROW(Dune::Exception, \"Operator type not supported by AMG\");\n-1178 }\n-1179\n-1180 template\n-1181 std::shared_ptr >\n-_\b1_\b1_\b8_\b2 _\bm_\ba_\bk_\be_\bA_\bM_\bG(const std::shared_ptr<_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b>>& op, const std::\n-string& smoother,\n-1183 const Dune::ParameterTree& config) const\n-1184 {\n-1185 using OP = _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b>;\n-1186\n-1187 if(smoother == \"ssor\")\n-1188 return std::make_shared>>(op, config);\n-1189 if(smoother == \"sor\")\n-1190 return std::make_shared>>(op, config);\n-1191 if(smoother == \"jac\")\n-1192 return std::make_shared>>(op, config);\n-1193 if(smoother == \"gs\")\n-1194 return std::make_shared>>(op, config);\n-1195 if(smoother == \"ilu\")\n-1196 return std::make_shared>>(op, config);\n-1197 else\n-1198 DUNE_THROW(Dune::Exception, \"Unknown smoother for AMG\");\n-1199 }\n-1200\n-1201 template\n-1202 std::shared_ptr >\n-_\b1_\b2_\b0_\b3 _\bm_\ba_\bk_\be_\bA_\bM_\bG(const std::shared_ptr<_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b>>& op,\n-const std::string& smoother,\n-1204 const Dune::ParameterTree& config) const\n-1205 {\n-1206 using OP = _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b>;\n-1207\n-1208 auto cop = std::static_pointer_cast(op);\n-1209\n-1210 if(smoother == \"ssor\")\n-1211 return std::make_shared>,C>>(cop, config, op->getCommunication\n-());\n-1212 if(smoother == \"sor\")\n-1213 return std::make_shared>,C>>(cop, config, op->getCommunication\n-());\n-1214 if(smoother == \"jac\")\n-1215 return std::make_shared>,C>>(cop, config, op->getCommunication\n-());\n-1216 if(smoother == \"gs\")\n-1217 return std::make_shared>,C>>(cop, config, op->getCommunication\n-());\n-1218 if(smoother == \"ilu\")\n-1219 return std::make_shared>,C>>(cop, config, op->getCommunication\n-());\n-1220 else\n-1221 DUNE_THROW(Dune::Exception, \"Unknown smoother for AMG\");\n-1222 }\n-1223\n-1224 template\n-1225 std::shared_ptr >\n-_\b1_\b2_\b2_\b6 _\bm_\ba_\bk_\be_\bA_\bM_\bG(const std::shared_ptr<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b>>& op,\n-const std::string& smoother,\n-1227 const Dune::ParameterTree& config) const\n-1228 {\n-1229 using OP = _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b>;\n-1230\n-1231 if(smoother == \"ssor\")\n-1232 return std::make_shared>,C>>(op, config, op-\n->getCommunication());\n-1233 if(smoother == \"sor\")\n-1234 return std::make_shared>,C>>(op, config, op-\n->getCommunication());\n-1235 if(smoother == \"jac\")\n-1236 return std::make_shared>,C>>(op, config, op-\n->getCommunication());\n-1237 if(smoother == \"gs\")\n-1238 return std::make_shared>,C>>(op, config, op-\n->getCommunication());\n-1239 if(smoother == \"ilu\")\n-1240 return std::make_shared>,C>>(op, config, op-\n->getCommunication());\n-1241 else\n-1242 DUNE_THROW(Dune::Exception, \"Unknown smoother for AMG\");\n-1243 }\n-1244\n-1245 template\n-1246 std::shared_ptr::type,\n-1247 typename Dune::TypeListElement<2, TL>::type>>\n-_\b1_\b2_\b4_\b8 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL tl, const std::shared_ptr& op, const Dune::\n-ParameterTree& config,\n-1249 std::enable_if_t<_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bO_\bP_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:\n-_\bv_\ba_\bl_\bu_\be,int> = 0) const\n-1250 {\n-1251 using field_type = typename OP::matrix_type::field_type;\n-1252 using real_type = typename FieldTraits::real_type;\n-1253 if (!std::is_convertible())\n-1254 DUNE_THROW(_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be, \"AMG needs field_type(\" <<\n-1255 className() <<\n-1256 \") to be convertible to its real_type (\" <<\n-1257 className() <<\n-1258 \").\");\n-1259 using D = typename Dune::TypeListElement<1, decltype(tl)>::type;\n-1260 using R = typename Dune::TypeListElement<2, decltype(tl)>::type;\n-1261 std::shared_ptr> amg;\n-1262 std::string smoother = config.get(\"smoother\", \"ssor\");\n-1263 return _\bm_\ba_\bk_\be_\bA_\bM_\bG(op, smoother, config);\n-1264 }\n-1265\n-1266 template\n-1267 std::shared_ptr::type,\n-1268 typename Dune::TypeListElement<2, TL>::type>>\n-_\b1_\b2_\b6_\b9 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const std::shared_ptr& /*mat*/, const Dune::\n-ParameterTree& /*config*/,\n-1270 std::enable_if_t_\b:_\b:\n-_\bv_\ba_\bl_\bu_\be,int> = 0) const\n-1271 {\n-1272 DUNE_THROW(_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be, \"AMG needs a FieldMatrix as Matrix\n-block_type\");\n-1273 }\n-1274 };\n-1275\n-_\b1_\b2_\b7_\b6 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"amg\", _\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br());\n-1277} // end namespace Dune\n-1278\n-1279#endif\n-_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh\n-Classes for using SuperLU with ISTL matrices.\n-_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR\n-#define DUNE_REGISTER_PRECONDITIONER(name,...)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:16\n-_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n-Define base class for scalar product and norm.\n-_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh\n-Classes for using UMFPack with ISTL matrices.\n-_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n-Implementations of the inverse operator interface.\n-_\bt_\br_\ba_\bn_\bs_\bf_\be_\br_\b._\bh_\bh\n-Prolongation and restriction for amg.\n-_\bm_\ba_\bt_\br_\bi_\bx_\bh_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b._\bh_\bh\n-Provides a classes representing the hierarchies in AMG.\n-_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b._\bh_\bh\n-Classes for the generic construction and application of the smoothers.\n-_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n-Templates characterizing the type of a solver.\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+5\n+6#ifndef DUNE_ISTL_SOLVERFACTORY_HH\n+7#define DUNE_ISTL_SOLVERFACTORY_HH\n+8\n+9#include \n+10#include \n+11#include \n+12\n+13#include \n+14#include \n+15\n+16#include \"_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\"\n+17#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n+18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n+19#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n+20\n+21namespace _\bD_\bu_\bn_\be{\n+26 // Direct solver factory:\n+27 template\n+_\b2_\b8 using _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr>(const\n+M&, const ParameterTree&);\n+29 template\n+_\b3_\b0 using _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by =\n+Singleton>>;\n+31\n+32 // Preconditioner factory:\n+33 template\n+_\b3_\b4 using _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr>(const\n+std::shared_ptr&, const ParameterTree&);\n+35 template\n+_\b3_\b6 using _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by =\n+Singleton>>;\n+37\n+38 // Iterative solver factory\n+39 template\n+_\b4_\b0 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr>(const\n+std::shared_ptr>&, const std::\n+shared_ptr>&, const std::shared_ptr>,\n+const ParameterTree&);\n+41 template\n+_\b4_\b2 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by =\n+Singleton>>;\n+43\n+44 // initSolverFactories differs in different compilation units, so we have it\n+45 // in an anonymous namespace\n+46 namespace {\n+47\n+53 template\n+54 int initSolverFactories(){\n+55 using M = typename O::matrix_type;\n+56 using X = typename O::range_type;\n+57 using Y = typename O::domain_type;\n+58 using TL = Dune::TypeList;\n+59 auto& dsfac=_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be();\n+60 addRegistryToFactory(dsfac, DirectSolverTag{});\n+61 auto& pfac=_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bO_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be();\n+62 addRegistryToFactory(pfac, PreconditionerTag{});\n+63 using TLS = Dune::TypeList;\n+64 auto& isfac=_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be();\n+65 return addRegistryToFactory(isfac, IterativeSolverTag{});\n+66 }\n+77 template\n+78 [[deprecated(\"Use method 'initSolverFactories' instead\")]]\n+79 int initSolverFactories() {\n+80 return initSolverFactories();\n+81 }\n+82 } // end anonymous namespace\n+83\n+84\n+85 template\n+_\b8_\b6 std::shared_ptr _\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl(const std::\n+shared_ptr& prec,\n+87 const O&)\n+88 {\n+89 return prec;\n+90 }\n+91\n+92 template\n+93 std::shared_ptr\n+_\b9_\b4 _\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl(const std::shared_ptr& prec,\n+95 const std::shared_ptr<_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b> >& op)\n+96 {\n+97 return std::make_shared >(prec,\n+op->getCommunication());\n+98 }\n+99\n+100 template\n+101 std::shared_ptr\n+_\b1_\b0_\b2 _\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl(const std::shared_ptr& prec,\n+103 const std::shared_ptr<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b> >& op)\n+104 {\n+105 return std::make_shared\n+>(prec, op->getCommunication());\n+106 }\n+107\n+108 template\n+_\b1_\b0_\b9 std::shared_ptr> _\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(const std::\n+shared_ptr<_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b> >&)\n+110 {\n+111 return std::make_shared>();\n+112 }\n+113 template\n+_\b1_\b1_\b4 std::shared_ptr> _\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(const std::\n+shared_ptr<_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b> >& op)\n+115 {\n+116 return createScalarProduct(op->getCommunication(), op->category());\n+117 }\n+118\n+119 template\n+_\b1_\b2_\b0 std::shared_ptr> _\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(const std::\n+shared_ptr<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b> >& op)\n+121 {\n+122 return createScalarProduct(op->getCommunication(), op->category());\n+123 }\n+124\n+144 template\n+_\b1_\b4_\b5 class _\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by {\n+146 using Domain = typename Operator::domain_type;\n+147 using Range = typename Operator::range_type;\n+148 using _\bS_\bo_\bl_\bv_\be_\br = _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bR_\ba_\bn_\bg_\be_\b>;\n+149 using _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br = _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>;\n+150\n+151 template\n+152 using _matrix_type = typename O::matrix_type;\n+153 using matrix_type = Std::detected_or_t;\n+154 static constexpr bool isAssembled = !std::is_same::value;\n+155\n+156 static const matrix_type* getmat(std::shared_ptr op){\n+157 std::shared_ptr> aop\n+158 = std::dynamic_pointer_cast>(op);\n+159 if(aop)\n+160 return &aop->getmat();\n+161 return nullptr;\n+162 }\n+163\n+164 public:\n+165\n+_\b1_\b6_\b8 static std::shared_ptr _\bg_\be_\bt(std::shared_ptr op,\n+169 const ParameterTree& config,\n+170 std::shared_ptr prec = nullptr){\n+171 std::string type = config.get(\"type\");\n+172 std::shared_ptr result;\n+173 const matrix_type* _\bm_\ba_\bt = getmat(op);\n+174 if(_\bm_\ba_\bt){\n+175 if (_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b,_\b _\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().contains\n+(type)) {\n+176 if(op->category()!=_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl){\n+177 DUNE_THROW(NotImplemented, \"The solver factory does not support parallel\n+direct solvers!\");\n+178 }\n+179 result = _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b,_\b _\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().create\n+(type, *_\bm_\ba_\bt, config);\n+180 return result;\n+181 }\n+182 }\n+183 // if no direct solver is found it might be an iterative solver\n+184 if (!_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().contains(type)) {\n+185 DUNE_THROW(Dune::InvalidStateException, \"Solver not found in the\n+factory.\");\n+186 }\n+187 if(!prec){\n+188 const ParameterTree& precConfig = config.sub(\"preconditioner\");\n+189 std::string prec_type = precConfig.get(\"type\");\n+190 prec = _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().create\n+(prec_type, op, precConfig);\n+191 if (prec->category() != op->category() && prec->category() ==\n+_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl)\n+192 // try to wrap to a parallel preconditioner\n+193 prec = _\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl(prec, op);\n+194 }\n+195 std::shared_ptr> sp = _\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(op);\n+196 result = _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().create(type, op,\n+sp, prec, config);\n+197 return result;\n+198 }\n+199\n+_\b2_\b0_\b3 static std::shared_ptr _\bg_\be_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br(std::\n+shared_ptr op,\n+204 const ParameterTree& config){\n+205 const matrix_type* _\bm_\ba_\bt = getmat(op);\n+206 if(_\bm_\ba_\bt){\n+207 std::string prec_type = config.get(\"type\");\n+208 return _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().create\n+(prec_type, op, config);\n+209 }else{\n+210 DUNE_THROW(InvalidStateException, \"Could not obtain matrix from operator.\n+Please pass in an AssembledLinearOperator.\");\n+211 }\n+212 }\n+213 };\n+214\n+225 template\n+226 std::shared_ptr> _\bg_\be_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\br_\bo_\bm_\bF_\ba_\bc_\bt_\bo_\br_\by(std::\n+shared_ptr op,\n+228 const ParameterTree& config,\n+229 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br> prec = nullptr){\n+231 return _\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b:_\b:_\bg_\be_\bt(op, config, prec);\n+232 }\n+233\n+237} // end namespace Dune\n+238\n+239\n+240#endif\n+_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh\n+_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\n+_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh\n+_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n+Define general, extensible interface for inverse operators.\n _\bm_\ba_\bt\n Matrix & mat\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bA_\bM_\bG\n-AMG(const AMG &amg)\n-Copy constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:392\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bp_\br_\be\n-void pre(Domain &x, Range &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:801\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n-static DirectSolver * create(const Matrix &mat, bool verbose, bool reusevector)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:681\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bn_\ba_\bm_\be\n-static std::string name()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:680\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bu_\bp_\bd_\ba_\bt_\be\n-Hierarchy< Domain, A >::Iterator update\n-The iterator over the updates.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:303\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\br_\bh_\bs\n-Hierarchy< Range, A >::Iterator rhs\n-The iterator over the right hand sided.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:307\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bs_\bu_\bp_\be_\br_\bl_\bu_\b _\b>_\b:_\b:_\bn_\ba_\bm_\be\n-static std::string name()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:672\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bu_\bs_\be_\bs_\bD_\bi_\br_\be_\bc_\bt_\bC_\bo_\ba_\br_\bs_\be_\bL_\be_\bv_\be_\bl_\bS_\bo_\bl_\bv_\be_\br\n-bool usesDirectCoarseLevelSolver() const\n-Check whether the coarse solver used is a direct solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1024\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bD_\bo_\bm_\ba_\bi_\bn\n-X Domain\n-The domain type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:87\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n-static type * create(const M &mat, bool verbose, bool reusevector)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:644\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bA_\bM_\bG\n-AMG(OperatorHierarchy &matrices, CoarseSolver &coarseSolver, const SmootherArgs\n-&smootherArgs, const Parameters &parms)\n-Construct a new amg with a specific coarse solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:406\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bA_\bM_\bG\n-AMG(std::shared_ptr< const Operator > fineOperator, const ParameterTree\n-&configuration, const ParallelInformation &pinfo=ParallelInformation())\n-Constructor an AMG via ParameterTree.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:452\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bp_\bi_\bn_\bf_\bo\n-ParallelInformationHierarchy::Iterator pinfo\n-The iterator over the parallel information.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:287\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bT_\by_\bp_\be\n-SolverType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:627\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\ba_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bs\n-OperatorHierarchy::AggregatesMapList::const_iterator aggregates\n-The iterator over the aggregates maps.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:295\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-SmootherTraits< Smoother >::Arguments SmootherArgs\n-The argument type for the construction of the smoother.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:100\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\be_\bl_\be_\bc_\bt_\be_\bd_\bS_\bo_\bl_\bv_\be_\br\n-Solver< Matrix, solver > SelectedSolver\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:677\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bk_\be_\bA_\bM_\bG\n-std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr<\n-MatrixAdapter< M, X, Y > > &op, const std::string &smoother, const Dune::\n-ParameterTree &config) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1182\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bT_\bo_\bL_\bo_\bw_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-std::string operator()(const std::string &str)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:378\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bk_\be_\bA_\bM_\bG\n-std::shared_ptr< Dune::Preconditioner< typename OP::element_type::domain_type,\n-typename OP::element_type::range_type > > makeAMG(const OP &op, const std::\n-string &smoother, const Dune::ParameterTree &config) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1175\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br\n-S Smoother\n-The type of the smoother.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:97\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bn_\ba_\bm_\be\n-static std::string name()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:649\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br\n-Hierarchy< Smoother, A >::Iterator smoother\n-The iterator over the smoothers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:279\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-M Operator\n-The matrix operator type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n-OperatorHierarchy::ParallelMatrixHierarchy::ConstIterator matrix\n-The iterator over the matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:283\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bs_\bu_\bp_\be_\br_\bl_\bu_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-SuperLU< M > type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:667\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bs_\bu_\bp_\be_\br_\bl_\bu_\b _\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be\n-static type * create(const M &mat, bool verbose, bool reusevector)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:668\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt\n-OperatorHierarchy::RedistributeInfoList::const_iterator redist\n-The iterator over the redistribution information.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:291\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bR_\ba_\bn_\bg_\be\n-X Range\n-The range type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:89\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\br_\be_\bs_\bm_\bo_\bo_\bt_\bh\n-void presmooth(LevelContext &levelContext, size_t steps)\n-Apply pre smoothing on the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:406\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bg_\be_\bt_\bC_\bo_\ba_\br_\bs_\be_\bs_\bt_\bA_\bg_\bg_\br_\be_\bg_\ba_\bt_\be_\bN_\bu_\bm_\bb_\be_\br_\bs\n-void getCoarsestAggregateNumbers(std::vector< std::size_t, A1 > &cont)\n-Get the aggregate number of each unknown on the coarsest level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1162\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bl_\be_\bv_\be_\bl_\bs\n-std::size_t levels()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:876\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bt_\by_\bp_\be\n-InverseOperator< Vector, Vector > type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:643\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bk_\be_\bA_\bM_\bG\n-std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr<\n-OverlappingSchwarzOperator< M, X, Y, C > > &op, const std::string &smoother,\n-const Dune::ParameterTree &config) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1203\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bl_\bh_\bs\n-Hierarchy< Domain, A >::Iterator lhs\n-The iterator over the left hand side.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bA_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs\n-const void * Arguments\n-A type holding all the arguments needed to call the constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:44\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bo_\bl_\bv_\be_\br\n-static constexpr SolverType solver\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:629\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\br_\bu_\bc_\bt\n-static std::shared_ptr< T > construct(Arguments &args)\n-Construct an object with the specified arguments.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn construction.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n-static constexpr bool isDirectSolver\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:679\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\br_\be_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-void recalculateHierarchy()\n-Recalculate the matrix hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:221\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Matrix::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:626\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n-SelectedSolver::type DirectSolver\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:678\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-std::shared_ptr< Dune::Preconditioner< typename Dune::TypeListElement< 1, TL\n->::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL tl,\n-const std::shared_ptr< OP > &op, const Dune::ParameterTree &config, std::\n-enable_if_t< isValidBlockType< typename OP::matrix_type::block_type >::value,\n-int >=0) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1248\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-OperatorHierarchy::ParallelInformationHierarchy ParallelInformationHierarchy\n-The parallal data distribution hierarchy type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:84\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bS_\bo_\bl_\bv_\be_\br\n-InverseOperator< X, X > CoarseSolver\n-the type of the coarse solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:91\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bp_\bo_\bs_\bt\n-void post(Domain &x)\n-Clean up.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1139\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bm_\ba_\bx_\bl_\be_\bv_\be_\bl_\bs\n-std::size_t maxlevels()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:881\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bk_\be_\bA_\bM_\bG\n-std::shared_ptr< Dune::Preconditioner< X, Y > > makeAMG(const std::shared_ptr<\n-NonoverlappingSchwarzOperator< M, X, Y, C > > &op, const std::string &smoother,\n-const Dune::ParameterTree &config) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1226\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bp_\bo_\bs_\bt_\bs_\bm_\bo_\bo_\bt_\bh\n-void postsmooth(LevelContext &levelContext, size_t steps)\n-Apply post smoothing on the current level.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:428\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bl_\be_\bv_\be_\bl\n-std::size_t level\n-The level index.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:311\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bA_\bM_\bG\n-AMG(const Operator &fineOperator, const C &criterion, const SmootherArgs\n-&smootherArgs=SmootherArgs(), const ParallelInformation\n-&pinfo=ParallelInformation())\n-Construct an AMG with an inexact coarse solver based on the smoother.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:428\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(Domain &v, const Range &d)\n-Apply one step of the preconditioner to the system A(v)=d.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:888\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bL_\be_\bv_\be_\bl_\bC_\bo_\bn_\bt_\be_\bx_\bt_\b:_\b:_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bT_\by_\bp_\be\n-Smoother SmootherType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:275\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-MatrixHierarchy< M, ParallelInformation, A > OperatorHierarchy\n-The operator hierarchy type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:194\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-PI ParallelInformation\n-The type of the parallel information. Either OwnerOverlapCommunication or\n-another type describing the...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:80\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bn_\bo_\bn_\be\n-@ none\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:627\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bu_\bm_\bf_\bp_\ba_\bc_\bk\n-@ umfpack\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:627\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bu_\bp_\be_\br_\bl_\bu\n-@ superlu\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:627\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\ba_\bt_\bO_\bn_\bc_\be_\bA_\bc_\bc_\bu\n-@ atOnceAccu\n-Accumulate data to one process at once.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:244\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bn_\bo_\bA_\bc_\bc_\bu\n-@ noAccu\n-No data accumulution.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:238\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bs_\bu_\bc_\bc_\be_\bs_\bs_\bi_\bv_\be_\bA_\bc_\bc_\bu\n-@ successiveAccu\n-Successively accumulate to fewer processes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:248\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by\n+Singleton< ParameterizedObjectFactory< PreconditionerSignature< M, X, Y > > >\n+PreconditionerFactory\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by\n+Singleton< ParameterizedObjectFactory< DirectSolverSignature< M, X, Y > > >\n+DirectSolverFactory\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be\n+std::shared_ptr< InverseOperator< X, Y > >(const std::shared_ptr<\n+LinearOperator< X, Y > > &, const std::shared_ptr< ScalarProduct< X > > &,\n+const std::shared_ptr< Preconditioner< X, Y > >, const ParameterTree &)\n+IterativeSolverSignature\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:40\n+_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl\n+std::shared_ptr< Preconditioner > wrapPreconditioner4Parallel(const std::\n+shared_ptr< Preconditioner > &prec, const O &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:86\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be\n+std::shared_ptr< InverseOperator< X, Y > >(const M &, const ParameterTree &)\n+DirectSolverSignature\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:28\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\br_\bo_\bm_\bF_\ba_\bc_\bt_\bo_\br_\by\n+std::shared_ptr< InverseOperator< typename Operator::domain_type, typename\n+Operator::range_type > > getSolverFromFactory(std::shared_ptr< Operator > op,\n+const ParameterTree &config, std::shared_ptr< Preconditioner< typename\n+Operator::domain_type, typename Operator::range_type > > prec=nullptr)\n+Instantiates an InverseOperator from an Operator and a configuration given as a\n+ParameterTree.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:227\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by\n+Singleton< ParameterizedObjectFactory< IterativeSolverSignature< X, Y > > >\n+IterativeSolverFactory\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:42\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be\n+std::shared_ptr< Preconditioner< X, Y > >(const std::shared_ptr< M > &, const\n+ParameterTree &) PreconditionerSignature\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:34\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:404\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-A generic dynamic dense matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< T >::field_type field_type\n-Export the type representing the underlying field.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:565\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::const_iterator ConstColIterator\n-Const iterator for the entries of each row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-T block_type\n-Export the type representing the components.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:568\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+std::shared_ptr< ScalarProduct< X > > createScalarProduct(const Comm &comm,\n+SolverCategory::Category category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:242\n _\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n A nonoverlapping operator with communication object.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:61\n _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br\n Adapter to turn a matrix into a linear operator.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:137\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n-Norm that uses only the [N][N] entry of the block to determine couplings.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:379\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bR_\bo_\bw_\bS_\bu_\bm\n-Functor using the row sum (infinity) norm to determine strong couplings.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:463\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bF_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\bN_\bo_\br_\bm\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:480\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bl_\bw_\ba_\by_\bs_\bO_\bn_\be_\bN_\bo_\br_\bm\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:496\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-Criterion taking advantage of symmetric matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:519\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bU_\bn_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-Criterion suitable for unsymmetric matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn aggregates.hh:539\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bM_\bG\n-an algebraic multigrid method using a Krylov-cycle.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:140\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bK_\bA_\bm_\bg_\bT_\bw_\bo_\bG_\br_\bi_\bd\n-Two grid operator for AMG with Krylov cycle.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn kamg.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bA_\bM_\bG\n-Parallel algebraic multigrid based on agglomeration.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:65\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:625\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:642\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1169\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bM_\bG_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\bT_\by_\bp_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn amg.hh:1170\n _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n An overlapping Schwarz operator.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b<_\b _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b,_\b _\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-LevelIterator< Hierarchy< ParallelInformation, Allocator >, ParallelInformation\n-> Iterator\n-Type of the mutable iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:216\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by_\b:_\b:_\bL_\be_\bv_\be_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator over the levels in the hierarchy.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn hierarchy.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bH_\bi_\be_\br_\ba_\br_\bc_\bh_\by\n-The hierarchies build by the coarsening process.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bC_\bo_\ba_\br_\bs_\be_\bn_\bC_\br_\bi_\bt_\be_\br_\bi_\bo_\bn\n-The criterion describing the stop criteria for the coarsening process.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixhierarchy.hh:283\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n-All parameters for AMG.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn parameters.hh:393\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bD_\be_\bf_\ba_\bu_\bl_\bt_\bS_\bm_\bo_\bo_\bt_\bh_\be_\br_\bA_\br_\bg_\bs\n-The default class for the smoother arguments.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn smoother.hh:38\n _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n Base class for matrix free definition of preconditioners.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:39\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Base class for scalar product and norm computation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n-bool converged\n-True if convergence criterion has been met.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Abstract base class for all solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Categories for the solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-static Category category(const OP &op, decltype(op.category()) *=nullptr)\n-Helperfunction to extract the solver category either from an enum, or from the\n-newly introduced virtu...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:54\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:77\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU\n-SuperLu Solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:271\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:49\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n-The UMFPack direct sparse solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:335\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b _\b>\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by\n+Factory to assembly solvers configured by a ParameterTree.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:145\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b:_\b:_\bg_\be_\bt\n+static std::shared_ptr< Solver > get(std::shared_ptr< Operator > op, const\n+ParameterTree &config, std::shared_ptr< Preconditioner > prec=nullptr)\n+get a solver from the factory\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:168\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b:_\b:_\bg_\be_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+static std::shared_ptr< Preconditioner > getPreconditioner(std::shared_ptr<\n+Operator > op, const ParameterTree &config)\n+Construct a Preconditioner for a given Operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:203\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00146.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00146.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixindexset.hh File Reference\n+dune-istl: blocklevel.hh File Reference\n \n \n \n \n \n \n \n@@ -70,35 +70,56 @@\n \n \n
    \n \n-
    matrixindexset.hh File Reference
    \n+Namespaces |\n+Functions
    \n+
    blocklevel.hh File Reference
    \n \n
    \n-
    #include <vector>
    \n-#include <set>
    \n+\n+

    Helper functions for determining the vector/matrix block level. \n+More...

    \n+
    #include <algorithm>
    \n+#include <type_traits>
    \n+#include <dune/common/indices.hh>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/hybridutilities.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n-\n-\n-\n-\n-

    \n-Classes

    class  Dune::MatrixIndexSet
     Stores the nonzero entries in a sparse matrix. More...
     
    \n \n \n \n+

    \n Namespaces

    namespace  Dune
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Functions

    template<typename T >
    constexpr std::size_t Dune::maxBlockLevel ()
     Determine the maximum block level of a possibly nested vector/matrix type.
     
    template<typename T >
    constexpr std::size_t Dune::minBlockLevel ()
     Determine the minimum block level of a possibly nested vector/matrix type.
     
    template<typename T >
    constexpr bool Dune::hasUniqueBlockLevel ()
     Determine if a vector/matrix has a uniquely determinable block level.
     
    template<typename T >
    constexpr std::size_t Dune::blockLevel ()
     Determine the block level of a possibly nested vector/matrix type.
     
    \n-
    \n+

    Detailed Description

    \n+

    Helper functions for determining the vector/matrix block level.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,20 +1,43 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-matrixindexset.hh File Reference\n-#include \n-#include \n+_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+blocklevel.hh File Reference\n+Helper functions for determining the vector/matrix block level. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-\u00a0 Stores the nonzero entries in a sparse matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+constexpr std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bx_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl ()\n+\u00a0 Determine the maximum block level of a possibly nested\n+ vector/matrix type.\n+\u00a0\n+template\n+constexpr std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bi_\bn_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl ()\n+\u00a0 Determine the minimum block level of a possibly nested\n+ vector/matrix type.\n+\u00a0\n+template\n+ constexpr bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bU_\bn_\bi_\bq_\bu_\be_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl ()\n+\u00a0 Determine if a vector/matrix has a uniquely determinable\n+ block level.\n+\u00a0\n+template\n+constexpr std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl ()\n+\u00a0 Determine the block level of a possibly nested vector/\n+ matrix type.\n+\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Helper functions for determining the vector/matrix block level.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00146_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00146_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixindexset.hh Source File\n+dune-istl: blocklevel.hh Source File\n \n \n \n \n \n \n \n@@ -74,148 +74,203 @@\n \n
    \n \n
    \n \n
    \n-
    matrixindexset.hh
    \n+
    blocklevel.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_MATRIXINDEXSET_HH
    \n-
    6#define DUNE_ISTL_MATRIXINDEXSET_HH
    \n-
    7
    \n-
    8#include <vector>
    \n-
    9#include <set>
    \n-
    10
    \n-
    11namespace Dune {
    \n-
    12
    \n-
    13
    \n-
    \n-\n-
    16 {
    \n-
    17
    \n-
    18 public:
    \n-
    19 typedef std::size_t size_type;
    \n-
    20
    \n-
    \n-
    22 MatrixIndexSet() : rows_(0), cols_(0)
    \n-
    23 {}
    \n-
    \n-
    24
    \n-
    \n-
    26 MatrixIndexSet(size_type rows, size_type cols) : rows_(rows), cols_(cols) {
    \n-
    27 indices_.resize(rows_);
    \n-
    28 }
    \n-
    \n-
    29
    \n-
    \n-\n-
    32 rows_ = rows;
    \n-
    33 cols_ = cols;
    \n-
    34 indices_.resize(rows_);
    \n-
    35 }
    \n-
    \n-
    36
    \n-
    \n-
    38 void add(size_type i, size_type j) {
    \n-
    39 indices_[i].insert(j);
    \n-
    40 }
    \n-
    \n-
    41
    \n-
    \n-
    43 size_type size() const {
    \n-
    44 size_type entries = 0;
    \n-
    45 for (size_type i=0; i<rows_; i++)
    \n-
    46 entries += indices_[i].size();
    \n-
    47
    \n-
    48 return entries;
    \n-
    49 }
    \n-
    \n-
    50
    \n-
    52 size_type rows() const {return rows_;}
    \n-
    53
    \n+
    5
    \n+
    6#ifndef DUNE_ISTL_BLOCKLEVEL_HH
    \n+
    7#define DUNE_ISTL_BLOCKLEVEL_HH
    \n+
    8
    \n+
    9#include <algorithm>
    \n+
    10#include <type_traits>
    \n+
    11
    \n+
    12#include <dune/common/indices.hh>
    \n+
    13#include <dune/common/typetraits.hh>
    \n+
    14#include <dune/common/hybridutilities.hh>
    \n+
    15
    \n+
    21// forward declaration
    \n+
    22namespace Dune {
    \n+
    23template<typename... Args>
    \n+
    24class MultiTypeBlockVector;
    \n+
    25template<typename FirstRow, typename... Args>
    \n+
    26class MultiTypeBlockMatrix;
    \n+
    27} // end namespace Dune
    \n+
    28
    \n+
    29namespace Dune { namespace Impl {
    \n+
    30
    \n+
    31// forward declaration
    \n+
    32template<typename T> struct MaxBlockLevel;
    \n+
    33template<typename T> struct MinBlockLevel;
    \n+
    34
    \n+
    36template<typename M, template<typename B> typename BlockLevel, typename Op>
    \n+
    37constexpr std::size_t blockLevelMultiTypeBlockMatrix(const Op& op)
    \n+
    38{
    \n+
    39 // inialize with zeroth diagonal block
    \n+
    40 using namespace Dune::Indices;
    \n+
    41 using Block00 = typename std::decay_t<decltype(std::declval<M>()[_0][_0])>;
    \n+
    42 std::size_t blockLevel = BlockLevel<Block00>::value() + 1;
    \n+
    43 // iterate over all blocks to determine min/max block level
    \n+
    44 using namespace Dune::Hybrid;
    \n+
    45 forEach(integralRange(index_constant<M::N()>()), [&](auto&& i) {
    \n+
    46 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n+
    47 forEach(integralRange(index_constant<M::M()>()), [&](auto&& j) {
    \n+
    48 using Block = typename std::decay_t<decltype(std::declval<M>()[i][j])>;
    \n+
    49 blockLevel = op(blockLevel, BlockLevel<Block>::value() + 1);
    \n+
    50 });
    \n+
    51 });
    \n+
    52 return blockLevel;
    \n+
    53}
    \n
    54
    \n-
    56 size_type rowsize(size_type row) const {return indices_[row].size();}
    \n-
    57
    \n-
    64 template <class MatrixType>
    \n-
    \n-
    65 void import(const MatrixType& m, size_type rowOffset=0, size_type colOffset=0) {
    \n-
    66
    \n-
    67 typedef typename MatrixType::row_type RowType;
    \n-
    68 typedef typename RowType::ConstIterator ColumnIterator;
    \n-
    69
    \n-
    70 for (size_type rowIdx=0; rowIdx<m.N(); rowIdx++) {
    \n+
    56template<typename V, template<typename B> typename BlockLevel, typename Op>
    \n+
    57constexpr std::size_t blockLevelMultiTypeBlockVector(const Op& op)
    \n+
    58{
    \n+
    59 // inialize with zeroth block
    \n+
    60 using namespace Dune::Indices;
    \n+
    61 using Block0 = typename std::decay_t<decltype(std::declval<V>()[_0])>;
    \n+
    62 std::size_t blockLevel = BlockLevel<Block0>::value() + 1;
    \n+
    63 // iterate over all blocks to determine min/max block level
    \n+
    64 using namespace Dune::Hybrid;
    \n+
    65 forEach(integralRange(index_constant<V::size()>()), [&](auto&& i) {
    \n+
    66 using Block = typename std::decay_t<decltype(std::declval<V>()[i])>;
    \n+
    67 blockLevel = op(blockLevel, BlockLevel<Block>::value() + 1);
    \n+
    68 });
    \n+
    69 return blockLevel;
    \n+
    70}
    \n
    71
    \n-
    72 const RowType& row = m[rowIdx];
    \n-
    73
    \n-
    74 ColumnIterator cIt = row.begin();
    \n-
    75 ColumnIterator cEndIt = row.end();
    \n-
    76
    \n-
    77 for(; cIt!=cEndIt; ++cIt)
    \n-
    78 add(rowIdx+rowOffset, cIt.index()+colOffset);
    \n-
    79
    \n-
    80 }
    \n-
    81
    \n-
    82 }
    \n-
    \n-
    83
    \n-
    89 template <class MatrixType>
    \n-
    \n-
    90 void exportIdx(MatrixType& matrix) const {
    \n-
    91
    \n-
    92 matrix.setSize(rows_, cols_);
    \n-
    93 matrix.setBuildMode(MatrixType::random);
    \n-
    94
    \n-
    95 for (size_type i=0; i<rows_; i++)
    \n-
    96 matrix.setrowsize(i, indices_[i].size());
    \n-
    97
    \n-
    98 matrix.endrowsizes();
    \n-
    99
    \n-
    100 for (size_type i=0; i<rows_; i++) {
    \n-
    101
    \n-
    102 typename std::set<size_type>::iterator it = indices_[i].begin();
    \n-
    103 for (; it!=indices_[i].end(); ++it)
    \n-
    104 matrix.addindex(i, *it);
    \n-
    105
    \n-
    106 }
    \n-
    107
    \n-
    108 matrix.endindices();
    \n-
    109
    \n-
    110 }
    \n-
    \n-
    111
    \n-
    112 private:
    \n-
    113
    \n-
    114 std::vector<std::set<size_type> > indices_;
    \n-
    115
    \n-
    116 size_type rows_, cols_;
    \n-
    117
    \n-
    118 };
    \n-
    \n-
    119
    \n-
    120
    \n-
    121} // end namespace Dune
    \n-
    122
    \n-
    123#endif
    \n+
    72template<typename T>
    \n+
    73struct MaxBlockLevel
    \n+
    74{
    \n+
    75 static constexpr std::size_t value(){
    \n+
    76 if constexpr (IsNumber<T>::value)
    \n+
    77 return 0;
    \n+
    78 else
    \n+
    79 return MaxBlockLevel<typename T::block_type>::value() + 1;
    \n+
    80 }
    \n+
    81};
    \n+
    82
    \n+
    83template<typename T>
    \n+
    84struct MinBlockLevel
    \n+
    85{
    \n+
    86 // the default implementation assumes minBlockLevel == maxBlockLevel
    \n+
    87 static constexpr std::size_t value()
    \n+
    88 { return MaxBlockLevel<T>::value(); }
    \n+
    89};
    \n+
    90
    \n+
    91// max block level for MultiTypeBlockMatrix
    \n+
    92template<typename FirstRow, typename... Args>
    \n+
    93struct MaxBlockLevel<Dune::MultiTypeBlockMatrix<FirstRow, Args...>>
    \n+
    94{
    \n+
    95 static constexpr std::size_t value()
    \n+
    96 {
    \n+
    97 using M = MultiTypeBlockMatrix<FirstRow, Args...>;
    \n+
    98 constexpr auto max = [](const auto& a, const auto& b){ return std::max(a,b); };
    \n+
    99 return blockLevelMultiTypeBlockMatrix<M, MaxBlockLevel>(max);
    \n+
    100 }
    \n+
    101};
    \n+
    102
    \n+
    103// min block level for MultiTypeBlockMatrix
    \n+
    104template<typename FirstRow, typename... Args>
    \n+
    105struct MinBlockLevel<Dune::MultiTypeBlockMatrix<FirstRow, Args...>>
    \n+
    106{
    \n+
    107 static constexpr std::size_t value()
    \n+
    108 {
    \n+
    109 using M = MultiTypeBlockMatrix<FirstRow, Args...>;
    \n+
    110 constexpr auto min = [](const auto& a, const auto& b){ return std::min(a,b); };
    \n+
    111 return blockLevelMultiTypeBlockMatrix<M, MinBlockLevel>(min);
    \n+
    112 }
    \n+
    113};
    \n+
    114
    \n+
    115// max block level for MultiTypeBlockVector
    \n+
    116template<typename... Args>
    \n+
    117struct MaxBlockLevel<Dune::MultiTypeBlockVector<Args...>>
    \n+
    118{
    \n+
    119 static constexpr std::size_t value()
    \n+
    120 {
    \n+
    121 using V = MultiTypeBlockVector<Args...>;
    \n+
    122 constexpr auto max = [](const auto& a, const auto& b){ return std::max(a,b); };
    \n+
    123 return blockLevelMultiTypeBlockVector<V, MaxBlockLevel>(max);
    \n+
    124 }
    \n+
    125};
    \n+
    126
    \n+
    127// min block level for MultiTypeBlockVector
    \n+
    128template<typename... Args>
    \n+
    129struct MinBlockLevel<Dune::MultiTypeBlockVector<Args...>>
    \n+
    130{
    \n+
    131 static constexpr std::size_t value()
    \n+
    132 {
    \n+
    133 using V = MultiTypeBlockVector<Args...>;
    \n+
    134 constexpr auto min = [](const auto& a, const auto& b){ return std::min(a,b); };
    \n+
    135 return blockLevelMultiTypeBlockVector<V, MinBlockLevel>(min);
    \n+
    136 }
    \n+
    137};
    \n+
    138
    \n+
    139// special case: empty MultiTypeBlockVector
    \n+
    140template<>
    \n+
    141struct MaxBlockLevel<Dune::MultiTypeBlockVector<>>
    \n+
    142{
    \n+
    143 static constexpr std::size_t value()
    \n+
    144 { return 0; };
    \n+
    145};
    \n+
    146
    \n+
    147// special case: empty MultiTypeBlockVector
    \n+
    148template<>
    \n+
    149struct MinBlockLevel<Dune::MultiTypeBlockVector<>>
    \n+
    150{
    \n+
    151 static constexpr std::size_t value()
    \n+
    152 { return 0; };
    \n+
    153};
    \n+
    154
    \n+
    155}} // end namespace Dune::Impl
    \n+
    156
    \n+
    157namespace Dune {
    \n+
    158
    \n+
    160template<typename T>
    \n+
    \n+
    161constexpr std::size_t maxBlockLevel()
    \n+
    162{ return Impl::MaxBlockLevel<T>::value(); }
    \n+
    \n+
    163
    \n+
    165template<typename T>
    \n+
    \n+
    166constexpr std::size_t minBlockLevel()
    \n+
    167{ return Impl::MinBlockLevel<T>::value(); }
    \n+
    \n+
    168
    \n+
    170template<typename T>
    \n+
    \n+
    171constexpr bool hasUniqueBlockLevel()
    \n+
    172{ return maxBlockLevel<T>() == minBlockLevel<T>(); }
    \n+
    \n+
    173
    \n+
    175template<typename T>
    \n+
    \n+
    176constexpr std::size_t blockLevel()
    \n+
    177{
    \n+
    178 static_assert(hasUniqueBlockLevel<T>(), "Block level cannot be uniquely determined!");
    \n+
    179 return Impl::MaxBlockLevel<T>::value();
    \n+
    180}
    \n+
    \n+
    181
    \n+
    182} // end namespace Dune
    \n+
    183
    \n+
    184#endif
    \n
    Definition allocator.hh:11
    \n-
    Stores the nonzero entries in a sparse matrix.
    Definition matrixindexset.hh:16
    \n-
    void resize(size_type rows, size_type cols)
    Reset the size of an index set.
    Definition matrixindexset.hh:31
    \n-
    MatrixIndexSet()
    Default constructor.
    Definition matrixindexset.hh:22
    \n-
    void add(size_type i, size_type j)
    Add an index to the index set.
    Definition matrixindexset.hh:38
    \n-
    size_type rows() const
    Return the number of rows.
    Definition matrixindexset.hh:52
    \n-
    std::size_t size_type
    Definition matrixindexset.hh:19
    \n-
    void exportIdx(MatrixType &matrix) const
    Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet.
    Definition matrixindexset.hh:90
    \n-
    MatrixIndexSet(size_type rows, size_type cols)
    Constructor setting the matrix size.
    Definition matrixindexset.hh:26
    \n-
    size_type rowsize(size_type row) const
    Return the number of entries in a given row.
    Definition matrixindexset.hh:56
    \n-
    size_type size() const
    Return the number of entries.
    Definition matrixindexset.hh:43
    \n+
    constexpr bool hasUniqueBlockLevel()
    Determine if a vector/matrix has a uniquely determinable block level.
    Definition blocklevel.hh:171
    \n+
    constexpr std::size_t maxBlockLevel()
    Determine the maximum block level of a possibly nested vector/matrix type.
    Definition blocklevel.hh:161
    \n+
    constexpr std::size_t blockLevel()
    Determine the block level of a possibly nested vector/matrix type.
    Definition blocklevel.hh:176
    \n+
    constexpr std::size_t minBlockLevel()
    Determine the minimum block level of a possibly nested vector/matrix type.
    Definition blocklevel.hh:166
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,156 +1,207 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-matrixindexset.hh\n+blocklevel.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_MATRIXINDEXSET_HH\n-6#define DUNE_ISTL_MATRIXINDEXSET_HH\n-7\n-8#include \n-9#include \n-10\n-11namespace _\bD_\bu_\bn_\be {\n-12\n-13\n-_\b1_\b5 class _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-16 {\n-17\n-18 public:\n-_\b1_\b9 typedef std::size_t _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-20\n-_\b2_\b2 _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt() : rows_(0), cols_(0)\n-23 {}\n-24\n-_\b2_\b6 _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bs, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be cols) : rows_(_\br_\bo_\bw_\bs), cols_(cols) {\n-27 indices_.resize(rows_);\n-28 }\n-29\n-_\b3_\b1 void _\br_\be_\bs_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bs, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be cols) {\n-32 rows_ = _\br_\bo_\bw_\bs;\n-33 cols_ = cols;\n-34 indices_.resize(rows_);\n-35 }\n-36\n-_\b3_\b8 void _\ba_\bd_\bd(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j) {\n-39 indices_[i].insert(j);\n-40 }\n-41\n-_\b4_\b3 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be() const {\n-44 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be entries = 0;\n-45 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+10#include \n+11\n+12#include \n+13#include \n+14#include \n+15\n+21// forward declaration\n+22namespace _\bD_\bu_\bn_\be {\n+23template\n+24class MultiTypeBlockVector;\n+25template\n+26class MultiTypeBlockMatrix;\n+27} // end namespace Dune\n+28\n+29namespace _\bD_\bu_\bn_\be { namespace Impl {\n+30\n+31// forward declaration\n+32template struct MaxBlockLevel;\n+33template struct MinBlockLevel;\n+34\n+36template typename BlockLevel, typename Op>\n+37constexpr std::size_t blockLevelMultiTypeBlockMatrix(const Op& op)\n+38{\n+39 // inialize with zeroth diagonal block\n+40 using namespace Dune::Indices;\n+41 using Block00 = typename std::decay_t()[_0][_0])>;\n+42 std::size_t _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl = BlockLevel::value() + 1;\n+43 // iterate over all blocks to determine min/max block level\n+44 using namespace Dune::Hybrid;\n+45 forEach(integralRange(index_constant()), [&](auto&& i) {\n+46 using namespace Dune::Hybrid; // needed for icc, see issue #31\n+47 forEach(integralRange(index_constant()), [&](auto&& j) {\n+48 using Block = typename std::decay_t()[i][j])>;\n+49 _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl = op(_\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl, BlockLevel::value() + 1);\n+50 });\n+51 });\n+52 return _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl;\n+53}\n 54\n-_\b5_\b6 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bs_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row) const {return indices_[row].size();}\n-57\n-64 template \n-_\b6_\b5 void import(const MatrixType& m, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rowOffset=0, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-colOffset=0) {\n-66\n-67 typedef typename MatrixType::row_type RowType;\n-68 typedef typename RowType::ConstIterator ColumnIterator;\n-69\n-70 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rowIdx=0; rowIdx typename BlockLevel, typename Op>\n+57constexpr std::size_t blockLevelMultiTypeBlockVector(const Op& op)\n+58{\n+59 // inialize with zeroth block\n+60 using namespace Dune::Indices;\n+61 using Block0 = typename std::decay_t()[_0])>;\n+62 std::size_t _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl = BlockLevel::value() + 1;\n+63 // iterate over all blocks to determine min/max block level\n+64 using namespace Dune::Hybrid;\n+65 forEach(integralRange(index_constant()), [&](auto&& i) {\n+66 using Block = typename std::decay_t()[i])>;\n+67 _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl = op(_\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl, BlockLevel::value() + 1);\n+68 });\n+69 return _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl;\n+70}\n 71\n-72 const RowType& row = m[rowIdx];\n-73\n-74 ColumnIterator cIt = row.begin();\n-75 ColumnIterator cEndIt = row.end();\n-76\n-77 for(; cIt!=cEndIt; ++cIt)\n-78 _\ba_\bd_\bd(rowIdx+rowOffset, cIt.index()+colOffset);\n-79\n+72template\n+73struct MaxBlockLevel\n+74{\n+75 static constexpr std::size_t value(){\n+76 if constexpr (IsNumber::value)\n+77 return 0;\n+78 else\n+79 return MaxBlockLevel::value() + 1;\n 80 }\n-81\n-82 }\n-83\n-89 template \n-_\b9_\b0 void _\be_\bx_\bp_\bo_\br_\bt_\bI_\bd_\bx(MatrixType& matrix) const {\n-91\n-92 matrix.setSize(rows_, cols_);\n-93 matrix.setBuildMode(MatrixType::random);\n-94\n-95 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i::iterator it = indices_[i].begin();\n-103 for (; it!=indices_[i].end(); ++it)\n-104 matrix.addindex(i, *it);\n-105\n-106 }\n-107\n-108 matrix.endindices();\n-109\n-110 }\n-111\n-112 private:\n-113\n-114 std::vector > indices_;\n-115\n-116 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows_, cols_;\n-117\n-118 };\n-119\n-120\n-121} // end namespace Dune\n-122\n-123#endif\n+81};\n+82\n+83template\n+84struct MinBlockLevel\n+85{\n+86 // the default implementation assumes minBlockLevel == maxBlockLevel\n+87 static constexpr std::size_t value()\n+88 { return MaxBlockLevel::value(); }\n+89};\n+90\n+91// max block level for MultiTypeBlockMatrix\n+92template\n+93struct MaxBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockMatrix>\n+94{\n+95 static constexpr std::size_t value()\n+96 {\n+97 using M = MultiTypeBlockMatrix;\n+98 constexpr auto max = [](const auto& a, const auto& b){ return std::max(a,b);\n+};\n+99 return blockLevelMultiTypeBlockMatrix(max);\n+100 }\n+101};\n+102\n+103// min block level for MultiTypeBlockMatrix\n+104template\n+105struct MinBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockMatrix>\n+106{\n+107 static constexpr std::size_t value()\n+108 {\n+109 using M = MultiTypeBlockMatrix;\n+110 constexpr auto min = [](const auto& a, const auto& b){ return std::min\n+(a,b); };\n+111 return blockLevelMultiTypeBlockMatrix(min);\n+112 }\n+113};\n+114\n+115// max block level for MultiTypeBlockVector\n+116template\n+117struct MaxBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockVector>\n+118{\n+119 static constexpr std::size_t value()\n+120 {\n+121 using V = MultiTypeBlockVector;\n+122 constexpr auto max = [](const auto& a, const auto& b){ return std::max\n+(a,b); };\n+123 return blockLevelMultiTypeBlockVector(max);\n+124 }\n+125};\n+126\n+127// min block level for MultiTypeBlockVector\n+128template\n+129struct MinBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockVector>\n+130{\n+131 static constexpr std::size_t value()\n+132 {\n+133 using V = MultiTypeBlockVector;\n+134 constexpr auto min = [](const auto& a, const auto& b){ return std::min\n+(a,b); };\n+135 return blockLevelMultiTypeBlockVector(min);\n+136 }\n+137};\n+138\n+139// special case: empty MultiTypeBlockVector\n+140template<>\n+141struct MaxBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockVector<>>\n+142{\n+143 static constexpr std::size_t value()\n+144 { return 0; };\n+145};\n+146\n+147// special case: empty MultiTypeBlockVector\n+148template<>\n+149struct MinBlockLevel<_\bD_\bu_\bn_\be::MultiTypeBlockVector<>>\n+150{\n+151 static constexpr std::size_t value()\n+152 { return 0; };\n+153};\n+154\n+155}} // end namespace Dune::Impl\n+156\n+157namespace _\bD_\bu_\bn_\be {\n+158\n+160template\n+_\b1_\b6_\b1constexpr std::size_t _\bm_\ba_\bx_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl()\n+162{ return Impl::MaxBlockLevel::value(); }\n+163\n+165template\n+_\b1_\b6_\b6constexpr std::size_t _\bm_\bi_\bn_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl()\n+167{ return Impl::MinBlockLevel::value(); }\n+168\n+170template\n+_\b1_\b7_\b1constexpr bool _\bh_\ba_\bs_\bU_\bn_\bi_\bq_\bu_\be_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl()\n+172{ return maxBlockLevel() == minBlockLevel(); }\n+173\n+175template\n+_\b1_\b7_\b6constexpr std::size_t _\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl()\n+177{\n+178 static_assert(hasUniqueBlockLevel(), \"Block level cannot be uniquely\n+determined!\");\n+179 return Impl::MaxBlockLevel::value();\n+180}\n+181\n+182} // end namespace Dune\n+183\n+184#endif\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-Stores the nonzero entries in a sparse matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:16\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n-void resize(size_type rows, size_type cols)\n-Reset the size of an index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:31\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-MatrixIndexSet()\n-Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\ba_\bd_\bd\n-void add(size_type i, size_type j)\n-Add an index to the index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:38\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\br_\bo_\bw_\bs\n-size_type rows() const\n-Return the number of rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-std::size_t size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\be_\bx_\bp_\bo_\br_\bt_\bI_\bd_\bx\n-void exportIdx(MatrixType &matrix) const\n-Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:90\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-MatrixIndexSet(size_type rows, size_type cols)\n-Constructor setting the matrix size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:26\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\br_\bo_\bw_\bs_\bi_\bz_\be\n-size_type rowsize(size_type row) const\n-Return the number of entries in a given row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bs_\bi_\bz_\be\n-size_type size() const\n-Return the number of entries.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bh_\ba_\bs_\bU_\bn_\bi_\bq_\bu_\be_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl\n+constexpr bool hasUniqueBlockLevel()\n+Determine if a vector/matrix has a uniquely determinable block level.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn blocklevel.hh:171\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bx_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl\n+constexpr std::size_t maxBlockLevel()\n+Determine the maximum block level of a possibly nested vector/matrix type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn blocklevel.hh:161\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl\n+constexpr std::size_t blockLevel()\n+Determine the block level of a possibly nested vector/matrix type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn blocklevel.hh:176\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bi_\bn_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl\n+constexpr std::size_t minBlockLevel()\n+Determine the minimum block level of a possibly nested vector/matrix type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn blocklevel.hh:166\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00149.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00149.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: multitypeblockmatrix.hh File Reference\n+dune-istl: arpackpp.hh File Reference\n \n \n \n \n \n \n \n@@ -65,67 +65,47 @@\n \n \n \n \n \n \n \n
    \n \n-
    multitypeblockmatrix.hh File Reference
    \n+Namespaces
    \n+
    arpackpp.hh File Reference
    \n \n
    \n
    #include <cmath>
    \n #include <iostream>
    \n-#include <tuple>
    \n-#include <dune/common/hybridutilities.hh>
    \n-#include "istlexception.hh"
    \n-#include "gsetc.hh"
    \n+#include <string>
    \n+#include <dune/common/fvector.hh>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/istl/blocklevel.hh>
    \n+#include <dune/istl/bvector.hh>
    \n+#include <dune/istl/istlexception.hh>
    \n+#include <dune/istl/io.hh>
    \n+#include "arssym.h"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::MultiTypeBlockMatrix< FirstRow, Args >
     A Matrix class to support different block types. More...
     
    class  Dune::MultiTypeBlockMatrix_Solver_Col< I, crow, ccol, remain_col >
     part of solvers for MultiTypeBlockVector & MultiTypeBlockMatrix types More...
     
    class  Dune::MultiTypeBlockMatrix_Solver_Col< I, crow, ccol, 0 >
     
    class  Dune::MultiTypeBlockMatrix_Solver< I, crow, remain_row >
     solver for MultiTypeBlockVector & MultiTypeBlockMatrix types More...
     
    class  Dune::MultiTypeBlockMatrix_Solver< I, crow, 0 >
     
    struct  std::tuple_element< i, Dune::MultiTypeBlockMatrix< Args... > >
     Make std::tuple_element work for MultiTypeBlockMatrix. More...
    class  Dune::ArPackPlusPlus_Algorithms< BCRSMatrix, BlockVector >
     Wrapper to use a range of ARPACK++ eigenvalue solvers. More...
     
    \n \n \n \n-\n-\n-\n-

    \n Namespaces

    namespace  Dune
     
    namespace  std
     STL namespace.
     
    \n-\n-\n-\n-\n-\n

    \n-Functions

    template<typename T1 , typename... Args>
    std::ostream & Dune::operator<< (std::ostream &s, const MultiTypeBlockMatrix< T1, Args... > &m)
     << operator for a MultiTypeBlockMatrix
     
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,47 +1,29 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-multitypeblockmatrix.hh File Reference\n+ * _\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+arpackpp.hh File Reference\n #include \n #include \n-#include \n-#include \n-#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh>\n+#include \"arssym.h\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\br_\bs_\bt_\bR_\bo_\bw_\b,_\b _\bA_\br_\bg_\bs_\b _\b>\n-\u00a0 A _\bM_\ba_\bt_\br_\bi_\bx class to support different block types. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\bc_\bc_\bo_\bl_\b,_\b _\br_\be_\bm_\ba_\bi_\bn_\b__\bc_\bo_\bl_\b _\b>\n-\u00a0 part of solvers for _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br & _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx types\n- _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\bc_\bc_\bo_\bl_\b,_\b _\b0_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b _\b>\n-\u00a0 solver for _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br & _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx types _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\b0_\b _\b>\n-\u00a0\n-struct \u00a0 _\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b__\be_\bl_\be_\bm_\be_\bn_\bt_\b<_\b _\bi_\b,_\b _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>\n-\u00a0 Make std::tuple_element work for MultiTypeBlockMatrix. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b _\b>\n+\u00a0 Wrapper to use a range of ARPACK++ eigenvalue solvers. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bs_\bt_\bd\n-\u00a0 STL namespace.\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &s, const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx<\n- T1, Args... > &m)\n-\u00a0 << operator for a _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n-\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00149_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00149_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: multitypeblockmatrix.hh Source File\n+dune-istl: arpackpp.hh Source File\n \n \n \n \n \n \n \n@@ -70,670 +70,881 @@\n \n \n \n \n \n \n \n
    \n-
    multitypeblockmatrix.hh
    \n+
    arpackpp.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_MULTITYPEBLOCKMATRIX_HH
    \n-
    6#define DUNE_ISTL_MULTITYPEBLOCKMATRIX_HH
    \n+
    5#ifndef DUNE_ISTL_EIGENVALUE_ARPACKPP_HH
    \n+
    6#define DUNE_ISTL_EIGENVALUE_ARPACKPP_HH
    \n
    7
    \n-
    8#include <cmath>
    \n-
    9#include <iostream>
    \n-
    10#include <tuple>
    \n+
    8#if HAVE_ARPACKPP || defined DOXYGEN
    \n+
    9
    \n+
    10#include <cmath> // provides std::abs, std::pow, std::sqrt
    \n
    11
    \n-
    12#include <dune/common/hybridutilities.hh>
    \n-
    13
    \n-
    14#include "istlexception.hh"
    \n-
    15
    \n-
    16// forward declaration
    \n-
    17namespace Dune
    \n-
    18{
    \n-
    19 template<typename FirstRow, typename... Args>
    \n-
    20 class MultiTypeBlockMatrix;
    \n-
    21
    \n-
    22 template<int I, int crow, int remain_row>
    \n-
    23 class MultiTypeBlockMatrix_Solver;
    \n-
    24}
    \n-
    25
    \n-
    26#include "gsetc.hh"
    \n-
    27
    \n-
    28namespace Dune {
    \n-
    29
    \n-
    43 template<typename FirstRow, typename... Args>
    \n-
    \n-\n-
    45 : public std::tuple<FirstRow, Args...>
    \n-
    46 {
    \n-
    47 using ParentType = std::tuple<FirstRow, Args...>;
    \n-
    48 public:
    \n-
    49
    \n-
    51 using ParentType::ParentType;
    \n-
    52
    \n-
    56 typedef MultiTypeBlockMatrix<FirstRow, Args...> type;
    \n-
    57
    \n-
    59 using size_type = std::size_t;
    \n-
    60
    \n-
    61 typedef typename FirstRow::field_type field_type;
    \n-
    62
    \n-
    \n-
    64 static constexpr size_type N()
    \n-
    65 {
    \n-
    66 return 1+sizeof...(Args);
    \n-
    67 }
    \n-
    \n-
    68
    \n-
    74 [[deprecated("Use method 'N' instead")]]
    \n-
    \n-
    75 static constexpr size_type size()
    \n-
    76 {
    \n-
    77 return 1+sizeof...(Args);
    \n-
    78 }
    \n-
    \n-
    79
    \n-
    \n-
    81 static constexpr size_type M()
    \n-
    82 {
    \n-
    83 return FirstRow::size();
    \n-
    84 }
    \n-
    \n-
    85
    \n-
    102 template< size_type index >
    \n-
    103 auto
    \n-
    \n-
    104 operator[] ([[maybe_unused]] const std::integral_constant< size_type, index > indexVariable)
    \n-
    105 -> decltype(std::get<index>(*this))
    \n-
    106 {
    \n-
    107 return std::get<index>(*this);
    \n-
    108 }
    \n-
    \n-
    109
    \n-
    115 template< size_type index >
    \n-
    116 auto
    \n-
    \n-
    117 operator[] ([[maybe_unused]] const std::integral_constant< size_type, index > indexVariable) const
    \n-
    118 -> decltype(std::get<index>(*this))
    \n-
    119 {
    \n-
    120 return std::get<index>(*this);
    \n-
    121 }
    \n-
    \n+
    12#include <iostream> // provides std::cout, std::endl
    \n+
    13#include <string> // provides std::string
    \n+
    14
    \n+
    15#include <dune/common/fvector.hh> // provides Dune::FieldVector
    \n+
    16#include <dune/common/exceptions.hh> // provides DUNE_THROW(...)
    \n+
    17
    \n+
    18#include <dune/istl/blocklevel.hh> // provides Dune::blockLevel
    \n+
    19#include <dune/istl/bvector.hh> // provides Dune::BlockVector
    \n+
    20#include <dune/istl/istlexception.hh> // provides Dune::ISTLError
    \n+
    21#include <dune/istl/io.hh> // provides Dune::printvector(...)
    \n+
    22
    \n+
    23#ifdef Status
    \n+
    24#undef Status // prevent preprocessor from damaging the ARPACK++
    \n+
    25 // code when "X11/Xlib.h" is included (the latter
    \n+
    26 // defines Status as "#define Status int" and
    \n+
    27 // ARPACK++ provides a class with a method called
    \n+
    28 // Status)
    \n+
    29#endif
    \n+
    30#include "arssym.h" // provides ARSymStdEig
    \n+
    31
    \n+
    32namespace Dune
    \n+
    33{
    \n+
    34
    \n+
    39 namespace Impl {
    \n+
    55 template <class BCRSMatrix>
    \n+
    56 class ArPackPlusPlus_BCRSMatrixWrapper
    \n+
    57 {
    \n+
    58 public:
    \n+
    60 typedef typename BCRSMatrix::field_type Real;
    \n+
    61
    \n+
    62 public:
    \n+
    64 ArPackPlusPlus_BCRSMatrixWrapper (const BCRSMatrix& A)
    \n+
    65 : A_(A),
    \n+
    66 m_(A_.M() * mBlock), n_(A_.N() * nBlock)
    \n+
    67 {
    \n+
    68 // assert that BCRSMatrix type has blocklevel 2
    \n+
    69 static_assert
    \n+
    70 (blockLevel<BCRSMatrix>() == 2,
    \n+
    71 "Only BCRSMatrices with blocklevel 2 are supported.");
    \n+
    72
    \n+
    73 // allocate memory for auxiliary block vector objects
    \n+
    74 // which are compatible to matrix rows / columns
    \n+
    75 domainBlockVector.resize(A_.N());
    \n+
    76 rangeBlockVector.resize(A_.M());
    \n+
    77 }
    \n+
    78
    \n+
    80 inline void multMv (Real* v, Real* w)
    \n+
    81 {
    \n+
    82 // get vector v as an object of appropriate type
    \n+
    83 arrayToDomainBlockVector(v,domainBlockVector);
    \n+
    84
    \n+
    85 // perform matrix-vector product
    \n+
    86 A_.mv(domainBlockVector,rangeBlockVector);
    \n+
    87
    \n+
    88 // get vector w from object of appropriate type
    \n+
    89 rangeBlockVectorToArray(rangeBlockVector,w);
    \n+
    90 };
    \n+
    91
    \n+
    93 inline void multMtMv (Real* v, Real* w)
    \n+
    94 {
    \n+
    95 // get vector v as an object of appropriate type
    \n+
    96 arrayToDomainBlockVector(v,domainBlockVector);
    \n+
    97
    \n+
    98 // perform matrix-vector product
    \n+
    99 A_.mv(domainBlockVector,rangeBlockVector);
    \n+
    100 A_.mtv(rangeBlockVector,domainBlockVector);
    \n+
    101
    \n+
    102 // get vector w from object of appropriate type
    \n+
    103 domainBlockVectorToArray(domainBlockVector,w);
    \n+
    104 };
    \n+
    105
    \n+
    107 inline void multMMtv (Real* v, Real* w)
    \n+
    108 {
    \n+
    109 // get vector v as an object of appropriate type
    \n+
    110 arrayToRangeBlockVector(v,rangeBlockVector);
    \n+
    111
    \n+
    112 // perform matrix-vector product
    \n+
    113 A_.mtv(rangeBlockVector,domainBlockVector);
    \n+
    114 A_.mv(domainBlockVector,rangeBlockVector);
    \n+
    115
    \n+
    116 // get vector w from object of appropriate type
    \n+
    117 rangeBlockVectorToArray(rangeBlockVector,w);
    \n+
    118 };
    \n+
    119
    \n+
    121 inline int nrows () const { return m_; }
    \n
    122
    \n-
    126 template<typename T>
    \n-
    \n-
    127 void operator= (const T& newval) {
    \n-
    128 using namespace Dune::Hybrid;
    \n-
    129 auto size = index_constant<1+sizeof...(Args)>();
    \n-
    130 // Since Dune::Hybrid::size(MultiTypeBlockMatrix) is not implemented,
    \n-
    131 // we cannot use a plain forEach(*this, ...). This could be achieved,
    \n-
    132 // e.g., by implementing a static size() method.
    \n-
    133 forEach(integralRange(size), [&](auto&& i) {
    \n-
    134 (*this)[i] = newval;
    \n-
    135 });
    \n-
    136 }
    \n-
    \n-
    137
    \n-
    138 //===== vector space arithmetic
    \n-
    139
    \n-
    \n-\n-
    142 {
    \n-
    143 auto size = index_constant<N()>();
    \n-
    144 Hybrid::forEach(Hybrid::integralRange(size), [&](auto&& i) {
    \n-
    145 (*this)[i] *= k;
    \n-
    146 });
    \n-
    147
    \n-
    148 return *this;
    \n-
    149 }
    \n-
    \n-
    150
    \n-
    \n-\n-
    153 {
    \n-
    154 auto size = index_constant<N()>();
    \n-
    155 Hybrid::forEach(Hybrid::integralRange(size), [&](auto&& i) {
    \n-
    156 (*this)[i] /= k;
    \n-
    157 });
    \n+
    124 inline int ncols () const { return n_; }
    \n+
    125
    \n+
    126 protected:
    \n+
    127 // Number of rows and columns in each block of the matrix
    \n+
    128 constexpr static int mBlock = BCRSMatrix::block_type::rows;
    \n+
    129 constexpr static int nBlock = BCRSMatrix::block_type::cols;
    \n+
    130
    \n+
    131 // Type of vectors in the domain of the linear map associated with
    \n+
    132 // the matrix, i.e. block vectors compatible to matrix rows
    \n+
    133 constexpr static int dbvBlockSize = nBlock;
    \n+
    134 typedef Dune::FieldVector<Real,dbvBlockSize> DomainBlockVectorBlock;
    \n+
    135 typedef Dune::BlockVector<DomainBlockVectorBlock> DomainBlockVector;
    \n+
    136
    \n+
    137 // Type of vectors in the range of the linear map associated with
    \n+
    138 // the matrix, i.e. block vectors compatible to matrix columns
    \n+
    139 constexpr static int rbvBlockSize = mBlock;
    \n+
    140 typedef Dune::FieldVector<Real,rbvBlockSize> RangeBlockVectorBlock;
    \n+
    141 typedef Dune::BlockVector<RangeBlockVectorBlock> RangeBlockVector;
    \n+
    142
    \n+
    143 // Types for vector index access
    \n+
    144 typedef typename DomainBlockVector::size_type dbv_size_type;
    \n+
    145 typedef typename RangeBlockVector::size_type rbv_size_type;
    \n+
    146 typedef typename DomainBlockVectorBlock::size_type dbvb_size_type;
    \n+
    147 typedef typename RangeBlockVectorBlock::size_type rbvb_size_type;
    \n+
    148
    \n+
    149 // Get vector v from a block vector object which is compatible to
    \n+
    150 // matrix rows
    \n+
    151 static inline void
    \n+
    152 domainBlockVectorToArray (const DomainBlockVector& dbv, Real* v)
    \n+
    153 {
    \n+
    154 for (dbv_size_type block = 0; block < dbv.N(); ++block)
    \n+
    155 for (dbvb_size_type iBlock = 0; iBlock < dbvBlockSize; ++iBlock)
    \n+
    156 v[block*dbvBlockSize + iBlock] = dbv[block][iBlock];
    \n+
    157 }
    \n
    158
    \n-
    159 return *this;
    \n-
    160 }
    \n-
    \n-
    161
    \n-
    162
    \n-
    \n-\n-
    169 {
    \n-
    170 auto size = index_constant<N()>();
    \n-
    171 Hybrid::forEach(Hybrid::integralRange(size), [&](auto&& i) {
    \n-
    172 (*this)[i] += b[i];
    \n-
    173 });
    \n-
    174
    \n-
    175 return *this;
    \n-
    176 }
    \n-
    \n-
    177
    \n-
    \n-\n-
    184 {
    \n-
    185 auto size = index_constant<N()>();
    \n-
    186 Hybrid::forEach(Hybrid::integralRange(size), [&](auto&& i) {
    \n-
    187 (*this)[i] -= b[i];
    \n-
    188 });
    \n+
    159 // Get vector v from a block vector object which is compatible to
    \n+
    160 // matrix columns
    \n+
    161 static inline void
    \n+
    162 rangeBlockVectorToArray (const RangeBlockVector& rbv, Real* v)
    \n+
    163 {
    \n+
    164 for (rbv_size_type block = 0; block < rbv.N(); ++block)
    \n+
    165 for (rbvb_size_type iBlock = 0; iBlock < rbvBlockSize; ++iBlock)
    \n+
    166 v[block*rbvBlockSize + iBlock] = rbv[block][iBlock];
    \n+
    167 }
    \n+
    168
    \n+
    169 public:
    \n+
    172 static inline void arrayToDomainBlockVector (const Real* v,
    \n+
    173 DomainBlockVector& dbv)
    \n+
    174 {
    \n+
    175 for (dbv_size_type block = 0; block < dbv.N(); ++block)
    \n+
    176 for (dbvb_size_type iBlock = 0; iBlock < dbvBlockSize; ++iBlock)
    \n+
    177 dbv[block][iBlock] = v[block*dbvBlockSize + iBlock];
    \n+
    178 }
    \n+
    179
    \n+
    182 static inline void arrayToRangeBlockVector (const Real* v,
    \n+
    183 RangeBlockVector& rbv)
    \n+
    184 {
    \n+
    185 for (rbv_size_type block = 0; block < rbv.N(); ++block)
    \n+
    186 for (rbvb_size_type iBlock = 0; iBlock < rbvBlockSize; ++iBlock)
    \n+
    187 rbv[block][iBlock] = v[block*rbvBlockSize + iBlock];
    \n+
    188 }
    \n
    189
    \n-
    190 return *this;
    \n-
    191 }
    \n-
    \n-
    192
    \n-
    195 template<typename X, typename Y>
    \n-
    \n-
    196 void mv (const X& x, Y& y) const {
    \n-
    197 static_assert(X::size() == M(), "length of x does not match row length");
    \n-
    198 static_assert(Y::size() == N(), "length of y does not match row count");
    \n-
    199 y = 0; //reset y (for mv uses umv)
    \n-
    200 umv(x,y);
    \n-
    201 }
    \n-
    \n-
    202
    \n-
    205 template<typename X, typename Y>
    \n-
    \n-
    206 void umv (const X& x, Y& y) const {
    \n-
    207 static_assert(X::size() == M(), "length of x does not match row length");
    \n-
    208 static_assert(Y::size() == N(), "length of y does not match row count");
    \n-
    209 using namespace Dune::Hybrid;
    \n-
    210 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n-
    211 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    212 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n-
    213 (*this)[i][j].umv(x[j], y[i]);
    \n-
    214 });
    \n-
    215 });
    \n-
    216 }
    \n-
    \n-
    217
    \n-
    220 template<typename X, typename Y>
    \n-
    \n-
    221 void mmv (const X& x, Y& y) const {
    \n-
    222 static_assert(X::size() == M(), "length of x does not match row length");
    \n-
    223 static_assert(Y::size() == N(), "length of y does not match row count");
    \n-
    224 using namespace Dune::Hybrid;
    \n-
    225 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n-
    226 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    227 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n-
    228 (*this)[i][j].mmv(x[j], y[i]);
    \n-
    229 });
    \n-
    230 });
    \n-
    231 }
    \n-
    \n-
    232
    \n-
    235 template<typename AlphaType, typename X, typename Y>
    \n-
    \n-
    236 void usmv (const AlphaType& alpha, const X& x, Y& y) const {
    \n-
    237 static_assert(X::size() == M(), "length of x does not match row length");
    \n-
    238 static_assert(Y::size() == N(), "length of y does not match row count");
    \n-
    239 using namespace Dune::Hybrid;
    \n-
    240 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n-
    241 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    242 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n-
    243 (*this)[i][j].usmv(alpha, x[j], y[i]);
    \n-
    244 });
    \n-
    245 });
    \n-
    246 }
    \n-
    \n-
    247
    \n-
    250 template<typename X, typename Y>
    \n-
    \n-
    251 void mtv (const X& x, Y& y) const {
    \n-
    252 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n-
    253 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n-
    254 y = 0;
    \n-
    255 umtv(x,y);
    \n-
    256 }
    \n-
    \n-
    257
    \n-
    260 template<typename X, typename Y>
    \n-
    \n-
    261 void umtv (const X& x, Y& y) const {
    \n-
    262 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n-
    263 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n-
    264 using namespace Dune::Hybrid;
    \n-
    265 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n-
    266 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    267 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n-
    268 (*this)[j][i].umtv(x[j], y[i]);
    \n-
    269 });
    \n-
    270 });
    \n-
    271 }
    \n-
    \n-
    272
    \n-
    275 template<typename X, typename Y>
    \n-
    \n-
    276 void mmtv (const X& x, Y& y) const {
    \n-
    277 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n-
    278 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n-
    279 using namespace Dune::Hybrid;
    \n-
    280 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n-
    281 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    282 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n-
    283 (*this)[j][i].mmtv(x[j], y[i]);
    \n-
    284 });
    \n-
    285 });
    \n-
    286 }
    \n-
    \n-
    287
    \n-
    290 template<typename X, typename Y>
    \n-
    \n-
    291 void usmtv (const field_type& alpha, const X& x, Y& y) const {
    \n-
    292 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n-
    293 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n-
    294 using namespace Dune::Hybrid;
    \n-
    295 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n-
    296 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    297 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n-
    298 (*this)[j][i].usmtv(alpha, x[j], y[i]);
    \n-
    299 });
    \n-
    300 });
    \n-
    301 }
    \n-
    \n+
    190 protected:
    \n+
    191 // The DUNE-ISTL BCRSMatrix
    \n+
    192 const BCRSMatrix& A_;
    \n+
    193
    \n+
    194 // Number of rows and columns in the matrix
    \n+
    195 const int m_, n_;
    \n+
    196
    \n+
    197 // Auxiliary block vector objects which are
    \n+
    198 // compatible to matrix rows / columns
    \n+
    199 mutable DomainBlockVector domainBlockVector;
    \n+
    200 mutable RangeBlockVector rangeBlockVector;
    \n+
    201 };
    \n+
    202 } // end namespace Impl
    \n+
    203
    \n+
    243 template <typename BCRSMatrix, typename BlockVector>
    \n+
    \n+\n+
    245 {
    \n+
    246 public:
    \n+\n+
    248
    \n+
    249 public:
    \n+
    \n+\n+
    269 const unsigned int nIterationsMax = 100000,
    \n+
    270 const unsigned int verbosity_level = 0)
    \n+
    271 : m_(m), nIterationsMax_(nIterationsMax),
    \n+
    272 verbosity_level_(verbosity_level),
    \n+
    273 nIterations_(0),
    \n+
    274 title_(" ArPackPlusPlus_Algorithms: "),
    \n+
    275 blank_(title_.length(),' ')
    \n+
    276 {}
    \n+
    \n+
    277
    \n+
    \n+
    289 inline void computeSymMaxMagnitude (const Real& epsilon,
    \n+
    290 BlockVector& x, Real& lambda) const
    \n+
    291 {
    \n+
    292 // print verbosity information
    \n+
    293 if (verbosity_level_ > 0)
    \n+
    294 std::cout << title_ << "Computing an approximation of "
    \n+
    295 << "the dominant eigenvalue of a matrix which "
    \n+
    296 << "is assumed to be symmetric." << std::endl;
    \n+
    297
    \n+
    298 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n+
    299 // and to perform the product A*v (LU decomposition is not used)
    \n+
    300 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n+
    301 WrappedMatrix A(m_);
    \n
    302
    \n-
    305 template<typename X, typename Y>
    \n-
    \n-
    306 void umhv (const X& x, Y& y) const {
    \n-
    307 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n-
    308 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n-
    309 using namespace Dune::Hybrid;
    \n-
    310 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n-
    311 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    312 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n-
    313 (*this)[j][i].umhv(x[j], y[i]);
    \n-
    314 });
    \n-
    315 });
    \n-
    316 }
    \n-
    \n-
    317
    \n-
    320 template<typename X, typename Y>
    \n-
    \n-
    321 void mmhv (const X& x, Y& y) const {
    \n-
    322 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n-
    323 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n-
    324 using namespace Dune::Hybrid;
    \n-
    325 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n-
    326 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    327 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n-
    328 (*this)[j][i].mmhv(x[j], y[i]);
    \n-
    329 });
    \n-
    330 });
    \n-
    331 }
    \n-
    \n-
    332
    \n-
    335 template<typename X, typename Y>
    \n-
    \n-
    336 void usmhv (const field_type& alpha, const X& x, Y& y) const {
    \n-
    337 static_assert(X::size() == N(), "length of x does not match number of rows");
    \n-
    338 static_assert(Y::size() == M(), "length of y does not match number of columns");
    \n-
    339 using namespace Dune::Hybrid;
    \n-
    340 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {
    \n-
    341 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    342 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {
    \n-
    343 (*this)[j][i].usmhv(alpha, x[j], y[i]);
    \n-
    344 });
    \n-
    345 });
    \n-
    346 }
    \n-
    \n-
    347
    \n-
    348
    \n-
    349 //===== norms
    \n-
    350
    \n-
    \n-
    352 auto frobenius_norm2 () const
    \n-
    353 {
    \n-
    354 using field_type_00 = typename std::decay_t<decltype((*this)[Indices::_0][Indices::_0])>::field_type;
    \n-
    355 typename FieldTraits<field_type_00>::real_type sum=0;
    \n-
    356
    \n-
    357 auto rows = index_constant<N()>();
    \n-
    358 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {
    \n-
    359 auto cols = index_constant<MultiTypeBlockMatrix<FirstRow, Args...>::M()>();
    \n-
    360 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {
    \n-
    361 sum += (*this)[i][j].frobenius_norm2();
    \n-
    362 });
    \n-
    363 });
    \n-
    364
    \n-
    365 return sum;
    \n-
    366 }
    \n-
    \n-
    367
    \n-
    \n-
    369 typename FieldTraits<field_type>::real_type frobenius_norm () const
    \n-
    370 {
    \n-
    371 return sqrt(frobenius_norm2());
    \n-
    372 }
    \n-
    \n-
    373
    \n-
    \n-
    375 auto infinity_norm () const
    \n-
    376 {
    \n-
    377 using field_type_00 = typename std::decay_t<decltype((*this)[Indices::_0][Indices::_0])>::field_type;
    \n-
    378 using std::max;
    \n-
    379 typename FieldTraits<field_type_00>::real_type norm=0;
    \n-
    380
    \n-
    381 auto rows = index_constant<N()>();
    \n-
    382 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {
    \n-
    383
    \n-
    384 typename FieldTraits<field_type_00>::real_type sum=0;
    \n-
    385 auto cols = index_constant<MultiTypeBlockMatrix<FirstRow, Args...>::M()>();
    \n-
    386 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {
    \n-
    387 sum += (*this)[i][j].infinity_norm();
    \n-
    388 });
    \n-
    389 norm = max(sum, norm);
    \n-
    390 });
    \n-
    391
    \n-
    392 return norm;
    \n-
    393 }
    \n-
    \n-
    394
    \n-
    \n-
    396 auto infinity_norm_real () const
    \n-
    397 {
    \n-
    398 using field_type_00 = typename std::decay_t<decltype((*this)[Indices::_0][Indices::_0])>::field_type;
    \n-
    399 using std::max;
    \n-
    400 typename FieldTraits<field_type_00>::real_type norm=0;
    \n-
    401
    \n-
    402 auto rows = index_constant<N()>();
    \n-
    403 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {
    \n+
    303 // get number of rows and columns in A
    \n+
    304 const int nrows = A.nrows();
    \n+
    305 const int ncols = A.ncols();
    \n+
    306
    \n+
    307 // assert that A is square
    \n+
    308 if (nrows != ncols)
    \n+
    309 DUNE_THROW(Dune::ISTLError,"Matrix is not square ("
    \n+
    310 << nrows << "x" << ncols << ").");
    \n+
    311
    \n+
    312 // allocate memory for variables, set parameters
    \n+
    313 const int nev = 1; // Number of eigenvalues to compute
    \n+
    314 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n+
    315 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n+
    316 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n+
    317 Real* ev = new Real[nev]; // Computed eigenvalues of A
    \n+
    318 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n+
    319 int nconv; // Number of converged eigenvalues
    \n+
    320
    \n+
    321 // define what we need: eigenvalues with largest magnitude
    \n+
    322 char which[] = "LM";
    \n+
    323 ARSymStdEig<Real,WrappedMatrix>
    \n+
    324 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);
    \n+
    325
    \n+
    326 // set ARPACK verbosity mode if requested
    \n+
    327 if (verbosity_level_ > 3) dprob.Trace();
    \n+
    328
    \n+
    329 // find eigenvalues and eigenvectors of A, obtain the eigenvalues
    \n+
    330 nconv = dprob.Eigenvalues(ev,ivec);
    \n+
    331
    \n+
    332 // obtain approximated dominant eigenvalue of A
    \n+
    333 lambda = ev[nev-1];
    \n+
    334
    \n+
    335 // obtain associated approximated eigenvector of A
    \n+
    336 Real* x_raw = dprob.RawEigenvector(nev-1);
    \n+
    337 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);
    \n+
    338
    \n+
    339 // obtain number of Arnoldi update iterations actually taken
    \n+
    340 nIterations_ = dprob.GetIter();
    \n+
    341
    \n+
    342 // compute residual norm
    \n+
    343 BlockVector r(x);
    \n+
    344 Real* Ax_raw = new Real[nrows];
    \n+
    345 A.multMv(x_raw,Ax_raw);
    \n+
    346 WrappedMatrix::arrayToDomainBlockVector(Ax_raw,r);
    \n+
    347 r.axpy(-lambda,x);
    \n+
    348 const Real r_norm = r.two_norm();
    \n+
    349
    \n+
    350 // print verbosity information
    \n+
    351 if (verbosity_level_ > 0)
    \n+
    352 {
    \n+
    353 if (verbosity_level_ > 1)
    \n+
    354 {
    \n+
    355 // print some information about the problem
    \n+
    356 std::cout << blank_ << "Obtained eigenvalues of A by solving "
    \n+
    357 << "A*x = \u03bb*x using the ARPACK++ class ARSym"
    \n+
    358 << "StdEig:" << std::endl;
    \n+
    359 std::cout << blank_ << " converged eigenvalues of A: "
    \n+
    360 << nconv << " / " << nev << std::endl;
    \n+
    361 std::cout << blank_ << " dominant eigenvalue of A: "
    \n+
    362 << lambda << std::endl;
    \n+
    363 }
    \n+
    364 std::cout << blank_ << "Result ("
    \n+
    365 << "#iterations = " << nIterations_ << ", "
    \n+
    366 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n+
    367 << "\u03bb = " << lambda << std::endl;
    \n+
    368 if (verbosity_level_ > 2)
    \n+
    369 {
    \n+
    370 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n+
    371 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n+
    372 }
    \n+
    373 }
    \n+
    374
    \n+
    375 // free dynamically allocated memory
    \n+
    376 delete[] Ax_raw;
    \n+
    377 delete[] ev;
    \n+
    378 }
    \n+
    \n+
    379
    \n+
    \n+
    391 inline void computeSymMinMagnitude (const Real& epsilon,
    \n+
    392 BlockVector& x, Real& lambda) const
    \n+
    393 {
    \n+
    394 // print verbosity information
    \n+
    395 if (verbosity_level_ > 0)
    \n+
    396 std::cout << title_ << "Computing an approximation of the "
    \n+
    397 << "least dominant eigenvalue of a matrix which "
    \n+
    398 << "is assumed to be symmetric." << std::endl;
    \n+
    399
    \n+
    400 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n+
    401 // and to perform the product A*v (LU decomposition is not used)
    \n+
    402 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n+
    403 WrappedMatrix A(m_);
    \n
    404
    \n-
    405 typename FieldTraits<field_type_00>::real_type sum=0;
    \n-
    406 auto cols = index_constant<MultiTypeBlockMatrix<FirstRow, Args...>::M()>();
    \n-
    407 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {
    \n-
    408 sum += (*this)[i][j].infinity_norm_real();
    \n-
    409 });
    \n-
    410 norm = max(sum, norm);
    \n-
    411 });
    \n-
    412
    \n-
    413 return norm;
    \n-
    414 }
    \n-
    \n-
    415
    \n-
    416 };
    \n-
    \n-
    417
    \n-
    423 template<typename T1, typename... Args>
    \n-
    \n-
    424 std::ostream& operator<< (std::ostream& s, const MultiTypeBlockMatrix<T1,Args...>& m) {
    \n-
    425 auto N = index_constant<MultiTypeBlockMatrix<T1,Args...>::N()>();
    \n-
    426 auto M = index_constant<MultiTypeBlockMatrix<T1,Args...>::M()>();
    \n-
    427 using namespace Dune::Hybrid;
    \n-
    428 forEach(integralRange(N), [&](auto&& i) {
    \n-
    429 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    430 forEach(integralRange(M), [&](auto&& j) {
    \n-
    431 s << "\\t(" << i << ", " << j << "): \\n" << m[i][j];
    \n-
    432 });
    \n-
    433 });
    \n-
    434 s << std::endl;
    \n-
    435 return s;
    \n-
    436 }
    \n-
    \n-
    437
    \n-
    438 //make algmeta_itsteps known
    \n-
    439 template<int I, typename M>
    \n-
    440 struct algmeta_itsteps;
    \n-
    441
    \n-
    448 template<int I, int crow, int ccol, int remain_col> //MultiTypeBlockMatrix_Solver_Col: iterating over one row
    \n-
    \n-
    449 class MultiTypeBlockMatrix_Solver_Col { //calculating b- A[i][j]*x[j]
    \n-
    450 public:
    \n-
    454 template <typename Trhs, typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    455 static void calc_rhs(const TMatrix& A, TVector& x, TVector& v, Trhs& b, const K& w) {
    \n-
    456 std::get<ccol>( std::get<crow>(A) ).mmv( std::get<ccol>(x), b );
    \n-\n-
    458 }
    \n-
    \n-
    459
    \n-
    460 };
    \n-
    \n-
    461 template<int I, int crow, int ccol> //MultiTypeBlockMatrix_Solver_Col recursion end
    \n-
    \n-
    462 class MultiTypeBlockMatrix_Solver_Col<I,crow,ccol,0> {
    \n-
    463 public:
    \n-
    464 template <typename Trhs, typename TVector, typename TMatrix, typename K>
    \n-
    465 static void calc_rhs(const TMatrix&, TVector&, TVector&, Trhs&, const K&) {}
    \n-
    466 };
    \n-
    \n-
    467
    \n-
    468
    \n-
    469
    \n-
    476 template<int I, int crow, int remain_row>
    \n-
    \n-\n-
    478 public:
    \n-
    479
    \n-
    483 template <typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    484 static void dbgs(const TMatrix& A, TVector& x, const TVector& b, const K& w) {
    \n-
    485 TVector xold(x);
    \n-
    486 xold=x; //store old x values
    \n-\n-
    488 x *= w;
    \n-
    489 x.axpy(1-w,xold); //improve x
    \n-
    490 }
    \n-
    \n-
    491 template <typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    492 static void dbgs(const TMatrix& A, TVector& x, TVector& v, const TVector& b, const K& w) {
    \n-
    493 auto rhs = std::get<crow> (b);
    \n-
    494
    \n-
    495 MultiTypeBlockMatrix_Solver_Col<I,crow,0, TMatrix::M()>::calc_rhs(A,x,v,rhs,w); // calculate right side of equation
    \n-
    496 //solve on blocklevel I-1
    \n-
    497 using M =
    \n-
    498 typename std::remove_cv<
    \n-
    499 typename std::remove_reference<
    \n-
    500 decltype(std::get<crow>( std::get<crow>(A)))
    \n-
    501 >::type
    \n-
    502 >::type;
    \n-
    503 algmeta_itsteps<I-1,M>::dbgs(std::get<crow>( std::get<crow>(A)), std::get<crow>(x),rhs,w);
    \n-\n-
    505 }
    \n-
    \n-
    506
    \n-
    507
    \n-
    508
    \n-
    512 template <typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    513 static void bsorf(const TMatrix& A, TVector& x, const TVector& b, const K& w) {
    \n-
    514 TVector v;
    \n-
    515 v=x; //use latest x values in right side calculation
    \n-\n-
    517
    \n-
    518 }
    \n-
    \n-
    519 template <typename TVector, typename TMatrix, typename K> //recursion over all matrix rows (A)
    \n-
    \n-
    520 static void bsorf(const TMatrix& A, TVector& x, TVector& v, const TVector& b, const K& w) {
    \n-
    521 auto rhs = std::get<crow> (b);
    \n-
    522
    \n-
    523 MultiTypeBlockMatrix_Solver_Col<I,crow,0,TMatrix::M()>::calc_rhs(A,x,v,rhs,w); // calculate right side of equation
    \n-
    524 //solve on blocklevel I-1
    \n-
    525 using M =
    \n-
    526 typename std::remove_cv<
    \n-
    527 typename std::remove_reference<
    \n-
    528 decltype(std::get<crow>( std::get<crow>(A)))
    \n-
    529 >::type
    \n-
    530 >::type;
    \n-
    531 algmeta_itsteps<I-1,M>::bsorf(std::get<crow>( std::get<crow>(A)), std::get<crow>(v),rhs,w);
    \n-
    532 std::get<crow>(x).axpy(w,std::get<crow>(v));
    \n-\n-
    534 }
    \n-
    \n-
    535
    \n-
    539 template <typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    540 static void bsorb(const TMatrix& A, TVector& x, const TVector& b, const K& w) {
    \n-
    541 TVector v;
    \n-
    542 v=x; //use latest x values in right side calculation
    \n-\n-
    544
    \n-
    545 }
    \n-
    \n-
    546 template <typename TVector, typename TMatrix, typename K> //recursion over all matrix rows (A)
    \n-
    \n-
    547 static void bsorb(const TMatrix& A, TVector& x, TVector& v, const TVector& b, const K& w) {
    \n-
    548 auto rhs = std::get<crow> (b);
    \n-
    549
    \n-
    550 MultiTypeBlockMatrix_Solver_Col<I,crow,0, TMatrix::M()>::calc_rhs(A,x,v,rhs,w); // calculate right side of equation
    \n-
    551 //solve on blocklevel I-1
    \n-
    552 using M =
    \n-
    553 typename std::remove_cv<
    \n-
    554 typename std::remove_reference<
    \n-
    555 decltype(std::get<crow>( std::get<crow>(A)))
    \n-
    556 >::type
    \n-
    557 >::type;
    \n-
    558 algmeta_itsteps<I-1,M>::bsorb(std::get<crow>( std::get<crow>(A)), std::get<crow>(v),rhs,w);
    \n-
    559 std::get<crow>(x).axpy(w,std::get<crow>(v));
    \n-\n-
    561 }
    \n-
    \n-
    562
    \n+
    405 // get number of rows and columns in A
    \n+
    406 const int nrows = A.nrows();
    \n+
    407 const int ncols = A.ncols();
    \n+
    408
    \n+
    409 // assert that A is square
    \n+
    410 if (nrows != ncols)
    \n+
    411 DUNE_THROW(Dune::ISTLError,"Matrix is not square ("
    \n+
    412 << nrows << "x" << ncols << ").");
    \n+
    413
    \n+
    414 // allocate memory for variables, set parameters
    \n+
    415 const int nev = 1; // Number of eigenvalues to compute
    \n+
    416 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n+
    417 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n+
    418 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n+
    419 Real* ev = new Real[nev]; // Computed eigenvalues of A
    \n+
    420 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n+
    421 int nconv; // Number of converged eigenvalues
    \n+
    422
    \n+
    423 // define what we need: eigenvalues with smallest magnitude
    \n+
    424 char which[] = "SM";
    \n+
    425 ARSymStdEig<Real,WrappedMatrix>
    \n+
    426 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);
    \n+
    427
    \n+
    428 // set ARPACK verbosity mode if requested
    \n+
    429 if (verbosity_level_ > 3) dprob.Trace();
    \n+
    430
    \n+
    431 // find eigenvalues and eigenvectors of A, obtain the eigenvalues
    \n+
    432 nconv = dprob.Eigenvalues(ev,ivec);
    \n+
    433
    \n+
    434 // obtain approximated least dominant eigenvalue of A
    \n+
    435 lambda = ev[nev-1];
    \n+
    436
    \n+
    437 // obtain associated approximated eigenvector of A
    \n+
    438 Real* x_raw = dprob.RawEigenvector(nev-1);
    \n+
    439 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);
    \n+
    440
    \n+
    441 // obtain number of Arnoldi update iterations actually taken
    \n+
    442 nIterations_ = dprob.GetIter();
    \n+
    443
    \n+
    444 // compute residual norm
    \n+
    445 BlockVector r(x);
    \n+
    446 Real* Ax_raw = new Real[nrows];
    \n+
    447 A.multMv(x_raw,Ax_raw);
    \n+
    448 WrappedMatrix::arrayToDomainBlockVector(Ax_raw,r);
    \n+
    449 r.axpy(-lambda,x);
    \n+
    450 const Real r_norm = r.two_norm();
    \n+
    451
    \n+
    452 // print verbosity information
    \n+
    453 if (verbosity_level_ > 0)
    \n+
    454 {
    \n+
    455 if (verbosity_level_ > 1)
    \n+
    456 {
    \n+
    457 // print some information about the problem
    \n+
    458 std::cout << blank_ << "Obtained eigenvalues of A by solving "
    \n+
    459 << "A*x = \u03bb*x using the ARPACK++ class ARSym"
    \n+
    460 << "StdEig:" << std::endl;
    \n+
    461 std::cout << blank_ << " converged eigenvalues of A: "
    \n+
    462 << nconv << " / " << nev << std::endl;
    \n+
    463 std::cout << blank_ << " least dominant eigenvalue of A: "
    \n+
    464 << lambda << std::endl;
    \n+
    465 }
    \n+
    466 std::cout << blank_ << "Result ("
    \n+
    467 << "#iterations = " << nIterations_ << ", "
    \n+
    468 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n+
    469 << "\u03bb = " << lambda << std::endl;
    \n+
    470 if (verbosity_level_ > 2)
    \n+
    471 {
    \n+
    472 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n+
    473 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n+
    474 }
    \n+
    475 }
    \n+
    476
    \n+
    477 // free dynamically allocated memory
    \n+
    478 delete[] Ax_raw;
    \n+
    479 delete[] ev;
    \n+
    480 }
    \n+
    \n+
    481
    \n+
    \n+
    493 inline void computeSymCond2 (const Real& epsilon, Real& cond_2) const
    \n+
    494 {
    \n+
    495 // print verbosity information
    \n+
    496 if (verbosity_level_ > 0)
    \n+
    497 std::cout << title_ << "Computing an approximation of the "
    \n+
    498 << "spectral condition number of a matrix which "
    \n+
    499 << "is assumed to be symmetric." << std::endl;
    \n+
    500
    \n+
    501 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n+
    502 // and to perform the product A*v (LU decomposition is not used)
    \n+
    503 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n+
    504 WrappedMatrix A(m_);
    \n+
    505
    \n+
    506 // get number of rows and columns in A
    \n+
    507 const int nrows = A.nrows();
    \n+
    508 const int ncols = A.ncols();
    \n+
    509
    \n+
    510 // assert that A is square
    \n+
    511 if (nrows != ncols)
    \n+
    512 DUNE_THROW(Dune::ISTLError,"Matrix is not square ("
    \n+
    513 << nrows << "x" << ncols << ").");
    \n+
    514
    \n+
    515 // allocate memory for variables, set parameters
    \n+
    516 const int nev = 2; // Number of eigenvalues to compute
    \n+
    517 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n+
    518 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n+
    519 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n+
    520 Real* ev = new Real[nev]; // Computed eigenvalues of A
    \n+
    521 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n+
    522 int nconv; // Number of converged eigenvalues
    \n+
    523
    \n+
    524 // define what we need: eigenvalues from both ends of the spectrum
    \n+
    525 char which[] = "BE";
    \n+
    526 ARSymStdEig<Real,WrappedMatrix>
    \n+
    527 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);
    \n+
    528
    \n+
    529 // set ARPACK verbosity mode if requested
    \n+
    530 if (verbosity_level_ > 3) dprob.Trace();
    \n+
    531
    \n+
    532 // find eigenvalues and eigenvectors of A, obtain the eigenvalues
    \n+
    533 nconv = dprob.Eigenvalues(ev,ivec);
    \n+
    534
    \n+
    535 // obtain approximated dominant and least dominant eigenvalue of A
    \n+
    536 const Real& lambda_max = ev[nev-1];
    \n+
    537 const Real& lambda_min = ev[0];
    \n+
    538
    \n+
    539 // obtain associated approximated eigenvectors of A
    \n+
    540 Real* x_max_raw = dprob.RawEigenvector(nev-1);
    \n+
    541 Real* x_min_raw = dprob.RawEigenvector(0);
    \n+
    542
    \n+
    543 // obtain approximated spectral condition number of A
    \n+
    544 cond_2 = std::abs(lambda_max / lambda_min);
    \n+
    545
    \n+
    546 // obtain number of Arnoldi update iterations actually taken
    \n+
    547 nIterations_ = dprob.GetIter();
    \n+
    548
    \n+
    549 // compute each residual norm
    \n+
    550 Real* Ax_max_raw = new Real[nrows];
    \n+
    551 Real* Ax_min_raw = new Real[nrows];
    \n+
    552 A.multMv(x_max_raw,Ax_max_raw);
    \n+
    553 A.multMv(x_min_raw,Ax_min_raw);
    \n+
    554 Real r_max_norm = 0.0;
    \n+
    555 Real r_min_norm = 0.0;
    \n+
    556 for (int i = 0; i < nrows; ++i)
    \n+
    557 {
    \n+
    558 r_max_norm += std::pow(Ax_max_raw[i] - lambda_max * x_max_raw[i],2);
    \n+
    559 r_min_norm += std::pow(Ax_min_raw[i] - lambda_min * x_min_raw[i],2);
    \n+
    560 }
    \n+
    561 r_max_norm = std::sqrt(r_max_norm);
    \n+
    562 r_min_norm = std::sqrt(r_min_norm);
    \n
    563
    \n-
    567 template <typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    568 static void dbjac(const TMatrix& A, TVector& x, const TVector& b, const K& w) {
    \n-
    569 TVector v(x);
    \n-
    570 v=0; //calc new x in v
    \n-\n-
    572 x.axpy(w,v); //improve x
    \n-
    573 }
    \n-
    \n-
    574 template <typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    575 static void dbjac(const TMatrix& A, TVector& x, TVector& v, const TVector& b, const K& w) {
    \n-
    576 auto rhs = std::get<crow> (b);
    \n-
    577
    \n-
    578 MultiTypeBlockMatrix_Solver_Col<I,crow,0, TMatrix::M()>::calc_rhs(A,x,v,rhs,w); // calculate right side of equation
    \n-
    579 //solve on blocklevel I-1
    \n-
    580 using M =
    \n-
    581 typename std::remove_cv<
    \n-
    582 typename std::remove_reference<
    \n-
    583 decltype(std::get<crow>( std::get<crow>(A)))
    \n-
    584 >::type
    \n-
    585 >::type;
    \n-
    586 algmeta_itsteps<I-1,M>::dbjac(std::get<crow>( std::get<crow>(A)), std::get<crow>(v),rhs,w);
    \n-\n-
    588 }
    \n-
    \n+
    564 // print verbosity information
    \n+
    565 if (verbosity_level_ > 0)
    \n+
    566 {
    \n+
    567 if (verbosity_level_ > 1)
    \n+
    568 {
    \n+
    569 // print some information about the problem
    \n+
    570 std::cout << blank_ << "Obtained eigenvalues of A by solving "
    \n+
    571 << "A*x = \u03bb*x using the ARPACK++ class ARSym"
    \n+
    572 << "StdEig:" << std::endl;
    \n+
    573 std::cout << blank_ << " converged eigenvalues of A: "
    \n+
    574 << nconv << " / " << nev << std::endl;
    \n+
    575 std::cout << blank_ << " dominant eigenvalue of A: "
    \n+
    576 << lambda_max << std::endl;
    \n+
    577 std::cout << blank_ << " least dominant eigenvalue of A: "
    \n+
    578 << lambda_min << std::endl;
    \n+
    579 std::cout << blank_ << " spectral condition number of A: "
    \n+
    580 << cond_2 << std::endl;
    \n+
    581 }
    \n+
    582 std::cout << blank_ << "Result ("
    \n+
    583 << "#iterations = " << nIterations_ << ", "
    \n+
    584 << "\u2551residual\u2551_2 = {" << r_max_norm << ","
    \n+
    585 << r_min_norm << "}, " << "\u03bb = {"
    \n+
    586 << lambda_max << "," << lambda_min
    \n+
    587 << "}): cond_2 = " << cond_2 << std::endl;
    \n+
    588 }
    \n
    589
    \n-
    590
    \n-
    591
    \n-
    592
    \n-
    593 };
    \n-
    \n-
    594 template<int I, int crow> //recursion end for remain_row = 0
    \n-
    \n-\n-
    596 public:
    \n-
    597 template <typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    598 static void dbgs(const TMatrix&, TVector&, TVector&,
    \n-
    599 const TVector&, const K&) {}
    \n-
    \n-
    600
    \n-
    601 template <typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    602 static void bsorf(const TMatrix&, TVector&, TVector&,
    \n-
    603 const TVector&, const K&) {}
    \n-
    \n-
    604
    \n-
    605 template <typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    606 static void bsorb(const TMatrix&, TVector&, TVector&,
    \n-
    607 const TVector&, const K&) {}
    \n-
    \n-
    608
    \n-
    609 template <typename TVector, typename TMatrix, typename K>
    \n-
    \n-
    610 static void dbjac(const TMatrix&, TVector&, TVector&,
    \n-
    611 const TVector&, const K&) {}
    \n-
    \n-
    612 };
    \n-
    \n-
    613
    \n-
    614} // end namespace Dune
    \n-
    615
    \n-
    616namespace std
    \n-
    617{
    \n-
    622 template <size_t i, typename... Args>
    \n-
    \n-
    623 struct tuple_element<i,Dune::MultiTypeBlockMatrix<Args...> >
    \n-
    624 {
    \n-
    625 using type = typename std::tuple_element<i, std::tuple<Args...> >::type;
    \n-
    626 };
    \n-
    \n-
    627}
    \n-
    628#endif
    \n-
    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
    \n-\n-
    MultiTypeBlockMatrix< FirstRow, Args... > type
    Definition multitypeblockmatrix.hh:56
    \n-
    static void dbjac(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:568
    \n-
    MultiTypeBlockMatrix & operator+=(const MultiTypeBlockMatrix &b)
    Add the entries of another matrix to this one.
    Definition multitypeblockmatrix.hh:168
    \n-
    void mv(const X &x, Y &y) const
    y = A x
    Definition multitypeblockmatrix.hh:196
    \n-
    void mmtv(const X &x, Y &y) const
    y -= A^T x
    Definition multitypeblockmatrix.hh:276
    \n-
    void mmhv(const X &x, Y &y) const
    y -= A^H x
    Definition multitypeblockmatrix.hh:321
    \n-
    static void dbgs(const TMatrix &, TVector &, TVector &, const TVector &, const K &)
    Definition multitypeblockmatrix.hh:598
    \n-
    static void dbgs(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:484
    \n-
    static void bsorb(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:540
    \n-
    void usmhv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^H x
    Definition multitypeblockmatrix.hh:336
    \n-
    FirstRow::field_type field_type
    Definition multitypeblockmatrix.hh:61
    \n-
    void usmv(const AlphaType &alpha, const X &x, Y &y) const
    y += alpha A x
    Definition multitypeblockmatrix.hh:236
    \n-
    MultiTypeBlockMatrix & operator/=(const field_type &k)
    vector space division by scalar
    Definition multitypeblockmatrix.hh:152
    \n-
    typename std::tuple_element< i, std::tuple< Args... > >::type type
    Definition multitypeblockmatrix.hh:625
    \n-
    static void dbgs(const TMatrix &A, TVector &x, TVector &v, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:492
    \n-
    static void bsorf(const TMatrix &A, TVector &x, TVector &v, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:520
    \n-
    void umhv(const X &x, Y &y) const
    y += A^H x
    Definition multitypeblockmatrix.hh:306
    \n-
    FieldTraits< field_type >::real_type frobenius_norm() const
    frobenius norm: sqrt(sum over squared values of entries)
    Definition multitypeblockmatrix.hh:369
    \n-
    static constexpr size_type N()
    Return the number of matrix rows.
    Definition multitypeblockmatrix.hh:64
    \n-
    void usmtv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^T x
    Definition multitypeblockmatrix.hh:291
    \n-
    void operator=(const T &newval)
    Definition multitypeblockmatrix.hh:127
    \n-
    static void calc_rhs(const TMatrix &, TVector &, TVector &, Trhs &, const K &)
    Definition multitypeblockmatrix.hh:465
    \n-
    void umv(const X &x, Y &y) const
    y += A x
    Definition multitypeblockmatrix.hh:206
    \n-
    static void calc_rhs(const TMatrix &A, TVector &x, TVector &v, Trhs &b, const K &w)
    Definition multitypeblockmatrix.hh:455
    \n-
    static void bsorf(const TMatrix &A, TVector &x, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:513
    \n-
    static constexpr size_type size()
    Return the number of matrix rows.
    Definition multitypeblockmatrix.hh:75
    \n-
    static void dbjac(const TMatrix &, TVector &, TVector &, const TVector &, const K &)
    Definition multitypeblockmatrix.hh:610
    \n-
    auto infinity_norm_real() const
    Bastardized version of the infinity-norm / row-sum norm.
    Definition multitypeblockmatrix.hh:396
    \n-
    auto frobenius_norm2() const
    square of frobenius norm, need for block recursion
    Definition multitypeblockmatrix.hh:352
    \n-
    std::size_t size_type
    Type used for sizes.
    Definition multitypeblockmatrix.hh:59
    \n-
    auto infinity_norm() const
    Bastardized version of the infinity-norm / row-sum norm.
    Definition multitypeblockmatrix.hh:375
    \n-
    static void bsorb(const TMatrix &, TVector &, TVector &, const TVector &, const K &)
    Definition multitypeblockmatrix.hh:606
    \n-
    MultiTypeBlockMatrix & operator-=(const MultiTypeBlockMatrix &b)
    Subtract the entries of another matrix from this one.
    Definition multitypeblockmatrix.hh:183
    \n-
    auto operator[](const std::integral_constant< size_type, index > indexVariable) -> decltype(std::get< index >(*this))
    Random-access operator.
    Definition multitypeblockmatrix.hh:104
    \n-
    static void dbjac(const TMatrix &A, TVector &x, TVector &v, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:575
    \n-
    static void bsorf(const TMatrix &, TVector &, TVector &, const TVector &, const K &)
    Definition multitypeblockmatrix.hh:602
    \n-
    void mtv(const X &x, Y &y) const
    y = A^T x
    Definition multitypeblockmatrix.hh:251
    \n-
    static constexpr size_type M()
    Return the number of matrix columns.
    Definition multitypeblockmatrix.hh:81
    \n-
    void mmv(const X &x, Y &y) const
    y -= A x
    Definition multitypeblockmatrix.hh:221
    \n-
    void umtv(const X &x, Y &y) const
    y += A^T x
    Definition multitypeblockmatrix.hh:261
    \n-
    static void bsorb(const TMatrix &A, TVector &x, TVector &v, const TVector &b, const K &w)
    Definition multitypeblockmatrix.hh:547
    \n-
    MultiTypeBlockMatrix & operator*=(const field_type &k)
    vector space multiplication with scalar
    Definition multitypeblockmatrix.hh:141
    \n-
    STL namespace.
    \n+
    590 // free dynamically allocated memory
    \n+
    591 delete[] Ax_min_raw;
    \n+
    592 delete[] Ax_max_raw;
    \n+
    593 delete[] ev;
    \n+
    594 }
    \n+
    \n+
    595
    \n+
    \n+
    609 inline void computeNonSymMax (const Real& epsilon,
    \n+
    610 BlockVector& x, Real& sigma) const
    \n+
    611 {
    \n+
    612 // print verbosity information
    \n+
    613 if (verbosity_level_ > 0)
    \n+
    614 std::cout << title_ << "Computing an approximation of the "
    \n+
    615 << "largest singular value of a matrix which "
    \n+
    616 << "is assumed to be nonsymmetric." << std::endl;
    \n+
    617
    \n+
    618 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n+
    619 // and to perform the product A^T*A*v (LU decomposition is not used)
    \n+
    620 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n+
    621 WrappedMatrix A(m_);
    \n+
    622
    \n+
    623 // get number of rows and columns in A
    \n+
    624 const int nrows = A.nrows();
    \n+
    625 const int ncols = A.ncols();
    \n+
    626
    \n+
    627 // assert that A has more rows than columns (extend code later to the opposite case!)
    \n+
    628 if (nrows < ncols)
    \n+
    629 DUNE_THROW(Dune::ISTLError,"Matrix has less rows than "
    \n+
    630 << "columns (" << nrows << "x" << ncols << ")."
    \n+
    631 << " This case is not implemented, yet.");
    \n+
    632
    \n+
    633 // allocate memory for variables, set parameters
    \n+
    634 const int nev = 1; // Number of eigenvalues to compute
    \n+
    635 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n+
    636 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n+
    637 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n+
    638 Real* ev = new Real[nev]; // Computed eigenvalues of A^T*A
    \n+
    639 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n+
    640 int nconv; // Number of converged eigenvalues
    \n+
    641
    \n+
    642 // define what we need: eigenvalues with largest algebraic value
    \n+
    643 char which[] = "LA";
    \n+
    644 ARSymStdEig<Real,WrappedMatrix>
    \n+
    645 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);
    \n+
    646
    \n+
    647 // set ARPACK verbosity mode if requested
    \n+
    648 if (verbosity_level_ > 3) dprob.Trace();
    \n+
    649
    \n+
    650 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues
    \n+
    651 nconv = dprob.Eigenvalues(ev,ivec);
    \n+
    652
    \n+
    653 // obtain approximated largest eigenvalue of A^T*A
    \n+
    654 const Real& lambda = ev[nev-1];
    \n+
    655
    \n+
    656 // obtain associated approximated eigenvector of A^T*A
    \n+
    657 Real* x_raw = dprob.RawEigenvector(nev-1);
    \n+
    658 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);
    \n+
    659
    \n+
    660 // obtain number of Arnoldi update iterations actually taken
    \n+
    661 nIterations_ = dprob.GetIter();
    \n+
    662
    \n+
    663 // compute residual norm
    \n+
    664 BlockVector r(x);
    \n+
    665 Real* AtAx_raw = new Real[ncols];
    \n+
    666 A.multMtMv(x_raw,AtAx_raw);
    \n+
    667 WrappedMatrix::arrayToDomainBlockVector(AtAx_raw,r);
    \n+
    668 r.axpy(-lambda,x);
    \n+
    669 const Real r_norm = r.two_norm();
    \n+
    670
    \n+
    671 // calculate largest singular value of A (note that
    \n+
    672 // x is right-singular / left-singular vector of A)
    \n+
    673 sigma = std::sqrt(lambda);
    \n+
    674
    \n+
    675 // print verbosity information
    \n+
    676 if (verbosity_level_ > 0)
    \n+
    677 {
    \n+
    678 if (verbosity_level_ > 1)
    \n+
    679 {
    \n+
    680 // print some information about the problem
    \n+
    681 std::cout << blank_ << "Obtained singular values of A by sol"
    \n+
    682 << "ving (A^T*A)*x = \u03c3\u00b2*x using the ARPACK++ "
    \n+
    683 << "class ARSymStdEig:" << std::endl;
    \n+
    684 std::cout << blank_ << " converged eigenvalues of A^T*A: "
    \n+
    685 << nconv << " / " << nev << std::endl;
    \n+
    686 std::cout << blank_ << " largest eigenvalue of A^T*A: "
    \n+
    687 << lambda << std::endl;
    \n+
    688 std::cout << blank_ << " => largest singular value of A: "
    \n+
    689 << sigma << std::endl;
    \n+
    690 }
    \n+
    691 std::cout << blank_ << "Result ("
    \n+
    692 << "#iterations = " << nIterations_ << ", "
    \n+
    693 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n+
    694 << "\u03c3 = " << sigma << std::endl;
    \n+
    695 if (verbosity_level_ > 2)
    \n+
    696 {
    \n+
    697 // print approximated right-singular / left-singular vector
    \n+
    698 // via DUNE-ISTL I/O methods
    \n+
    699 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n+
    700 }
    \n+
    701 }
    \n+
    702
    \n+
    703 // free dynamically allocated memory
    \n+
    704 delete[] AtAx_raw;
    \n+
    705 delete[] ev;
    \n+
    706 }
    \n+
    \n+
    707
    \n+
    \n+
    721 inline void computeNonSymMin (const Real& epsilon,
    \n+
    722 BlockVector& x, Real& sigma) const
    \n+
    723 {
    \n+
    724 // print verbosity information
    \n+
    725 if (verbosity_level_ > 0)
    \n+
    726 std::cout << title_ << "Computing an approximation of the "
    \n+
    727 << "smallest singular value of a matrix which "
    \n+
    728 << "is assumed to be nonsymmetric." << std::endl;
    \n+
    729
    \n+
    730 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n+
    731 // and to perform the product A^T*A*v (LU decomposition is not used)
    \n+
    732 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n+
    733 WrappedMatrix A(m_);
    \n+
    734
    \n+
    735 // get number of rows and columns in A
    \n+
    736 const int nrows = A.nrows();
    \n+
    737 const int ncols = A.ncols();
    \n+
    738
    \n+
    739 // assert that A has more rows than columns (extend code later to the opposite case!)
    \n+
    740 if (nrows < ncols)
    \n+
    741 DUNE_THROW(Dune::ISTLError,"Matrix has less rows than "
    \n+
    742 << "columns (" << nrows << "x" << ncols << ")."
    \n+
    743 << " This case is not implemented, yet.");
    \n+
    744
    \n+
    745 // allocate memory for variables, set parameters
    \n+
    746 const int nev = 1; // Number of eigenvalues to compute
    \n+
    747 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n+
    748 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n+
    749 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n+
    750 Real* ev = new Real[nev]; // Computed eigenvalues of A^T*A
    \n+
    751 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n+
    752 int nconv; // Number of converged eigenvalues
    \n+
    753
    \n+
    754 // define what we need: eigenvalues with smallest algebraic value
    \n+
    755 char which[] = "SA";
    \n+
    756 ARSymStdEig<Real,WrappedMatrix>
    \n+
    757 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);
    \n+
    758
    \n+
    759 // set ARPACK verbosity mode if requested
    \n+
    760 if (verbosity_level_ > 3) dprob.Trace();
    \n+
    761
    \n+
    762 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues
    \n+
    763 nconv = dprob.Eigenvalues(ev,ivec);
    \n+
    764
    \n+
    765 // obtain approximated smallest eigenvalue of A^T*A
    \n+
    766 const Real& lambda = ev[nev-1];
    \n+
    767
    \n+
    768 // obtain associated approximated eigenvector of A^T*A
    \n+
    769 Real* x_raw = dprob.RawEigenvector(nev-1);
    \n+
    770 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);
    \n+
    771
    \n+
    772 // obtain number of Arnoldi update iterations actually taken
    \n+
    773 nIterations_ = dprob.GetIter();
    \n+
    774
    \n+
    775 // compute residual norm
    \n+
    776 BlockVector r(x);
    \n+
    777 Real* AtAx_raw = new Real[ncols];
    \n+
    778 A.multMtMv(x_raw,AtAx_raw);
    \n+
    779 WrappedMatrix::arrayToDomainBlockVector(AtAx_raw,r);
    \n+
    780 r.axpy(-lambda,x);
    \n+
    781 const Real r_norm = r.two_norm();
    \n+
    782
    \n+
    783 // calculate smallest singular value of A (note that
    \n+
    784 // x is right-singular / left-singular vector of A)
    \n+
    785 sigma = std::sqrt(lambda);
    \n+
    786
    \n+
    787 // print verbosity information
    \n+
    788 if (verbosity_level_ > 0)
    \n+
    789 {
    \n+
    790 if (verbosity_level_ > 1)
    \n+
    791 {
    \n+
    792 // print some information about the problem
    \n+
    793 std::cout << blank_ << "Obtained singular values of A by sol"
    \n+
    794 << "ving (A^T*A)*x = \u03c3\u00b2*x using the ARPACK++ "
    \n+
    795 << "class ARSymStdEig:" << std::endl;
    \n+
    796 std::cout << blank_ << " converged eigenvalues of A^T*A: "
    \n+
    797 << nconv << " / " << nev << std::endl;
    \n+
    798 std::cout << blank_ << " smallest eigenvalue of A^T*A: "
    \n+
    799 << lambda << std::endl;
    \n+
    800 std::cout << blank_ << " => smallest singular value of A: "
    \n+
    801 << sigma << std::endl;
    \n+
    802 }
    \n+
    803 std::cout << blank_ << "Result ("
    \n+
    804 << "#iterations = " << nIterations_ << ", "
    \n+
    805 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n+
    806 << "\u03c3 = " << sigma << std::endl;
    \n+
    807 if (verbosity_level_ > 2)
    \n+
    808 {
    \n+
    809 // print approximated right-singular / left-singular vector
    \n+
    810 // via DUNE-ISTL I/O methods
    \n+
    811 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n+
    812 }
    \n+
    813 }
    \n+
    814
    \n+
    815 // free dynamically allocated memory
    \n+
    816 delete[] AtAx_raw;
    \n+
    817 delete[] ev;
    \n+
    818 }
    \n+
    \n+
    819
    \n+
    \n+
    830 inline void computeNonSymCond2 (const Real& epsilon, Real& cond_2) const
    \n+
    831 {
    \n+
    832 // print verbosity information
    \n+
    833 if (verbosity_level_ > 0)
    \n+
    834 std::cout << title_ << "Computing an approximation of the "
    \n+
    835 << "spectral condition number of a matrix which "
    \n+
    836 << "is assumed to be nonsymmetric." << std::endl;
    \n+
    837
    \n+
    838 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n+
    839 // and to perform the product A^T*A*v (LU decomposition is not used)
    \n+
    840 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n+
    841 WrappedMatrix A(m_);
    \n+
    842
    \n+
    843 // get number of rows and columns in A
    \n+
    844 const int nrows = A.nrows();
    \n+
    845 const int ncols = A.ncols();
    \n+
    846
    \n+
    847 // assert that A has more rows than columns (extend code later to the opposite case!)
    \n+
    848 if (nrows < ncols)
    \n+
    849 DUNE_THROW(Dune::ISTLError,"Matrix has less rows than "
    \n+
    850 << "columns (" << nrows << "x" << ncols << ")."
    \n+
    851 << " This case is not implemented, yet.");
    \n+
    852
    \n+
    853 // allocate memory for variables, set parameters
    \n+
    854 const int nev = 2; // Number of eigenvalues to compute
    \n+
    855 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n+
    856 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n+
    857 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n+
    858 Real* ev = new Real[nev]; // Computed eigenvalues of A^T*A
    \n+
    859 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n+
    860 int nconv; // Number of converged eigenvalues
    \n+
    861
    \n+
    862 // define what we need: eigenvalues from both ends of the spectrum
    \n+
    863 char which[] = "BE";
    \n+
    864 ARSymStdEig<Real,WrappedMatrix>
    \n+
    865 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);
    \n+
    866
    \n+
    867 // set ARPACK verbosity mode if requested
    \n+
    868 if (verbosity_level_ > 3) dprob.Trace();
    \n+
    869
    \n+
    870 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues
    \n+
    871 nconv = dprob.Eigenvalues(ev,ivec);
    \n+
    872
    \n+
    873 // obtain approximated largest and smallest eigenvalue of A^T*A
    \n+
    874 const Real& lambda_max = ev[nev-1];
    \n+
    875 const Real& lambda_min = ev[0];
    \n+
    876
    \n+
    877 // obtain associated approximated eigenvectors of A^T*A
    \n+
    878 Real* x_max_raw = dprob.RawEigenvector(nev-1);
    \n+
    879 Real* x_min_raw = dprob.RawEigenvector(0);
    \n+
    880
    \n+
    881 // obtain number of Arnoldi update iterations actually taken
    \n+
    882 nIterations_ = dprob.GetIter();
    \n+
    883
    \n+
    884 // compute each residual norm
    \n+
    885 Real* AtAx_max_raw = new Real[ncols];
    \n+
    886 Real* AtAx_min_raw = new Real[ncols];
    \n+
    887 A.multMtMv(x_max_raw,AtAx_max_raw);
    \n+
    888 A.multMtMv(x_min_raw,AtAx_min_raw);
    \n+
    889 Real r_max_norm = 0.0;
    \n+
    890 Real r_min_norm = 0.0;
    \n+
    891 for (int i = 0; i < ncols; ++i)
    \n+
    892 {
    \n+
    893 r_max_norm += std::pow(AtAx_max_raw[i] - lambda_max * x_max_raw[i],2);
    \n+
    894 r_min_norm += std::pow(AtAx_min_raw[i] - lambda_min * x_min_raw[i],2);
    \n+
    895 }
    \n+
    896 r_max_norm = std::sqrt(r_max_norm);
    \n+
    897 r_min_norm = std::sqrt(r_min_norm);
    \n+
    898
    \n+
    899 // calculate largest and smallest singular value of A
    \n+
    900 const Real sigma_max = std::sqrt(lambda_max);
    \n+
    901 const Real sigma_min = std::sqrt(lambda_min);
    \n+
    902
    \n+
    903 // obtain approximated spectral condition number of A
    \n+
    904 cond_2 = sigma_max / sigma_min;
    \n+
    905
    \n+
    906 // print verbosity information
    \n+
    907 if (verbosity_level_ > 0)
    \n+
    908 {
    \n+
    909 if (verbosity_level_ > 1)
    \n+
    910 {
    \n+
    911 // print some information about the problem
    \n+
    912 std::cout << blank_ << "Obtained singular values of A by sol"
    \n+
    913 << "ving (A^T*A)*x = \u03c3\u00b2*x using the ARPACK++ "
    \n+
    914 << "class ARSymStdEig:" << std::endl;
    \n+
    915 std::cout << blank_ << " converged eigenvalues of A^T*A: "
    \n+
    916 << nconv << " / " << nev << std::endl;
    \n+
    917 std::cout << blank_ << " largest eigenvalue of A^T*A: "
    \n+
    918 << lambda_max << std::endl;
    \n+
    919 std::cout << blank_ << " smallest eigenvalue of A^T*A: "
    \n+
    920 << lambda_min << std::endl;
    \n+
    921 std::cout << blank_ << " => largest singular value of A: "
    \n+
    922 << sigma_max << std::endl;
    \n+
    923 std::cout << blank_ << " => smallest singular value of A: "
    \n+
    924 << sigma_min << std::endl;
    \n+
    925 }
    \n+
    926 std::cout << blank_ << "Result ("
    \n+
    927 << "#iterations = " << nIterations_ << ", "
    \n+
    928 << "\u2551residual\u2551_2 = {" << r_max_norm << ","
    \n+
    929 << r_min_norm << "}, " << "\u03c3 = {"
    \n+
    930 << sigma_max << "," << sigma_min
    \n+
    931 << "}): cond_2 = " << cond_2 << std::endl;
    \n+
    932 }
    \n+
    933
    \n+
    934 // free dynamically allocated memory
    \n+
    935 delete[] AtAx_min_raw;
    \n+
    936 delete[] AtAx_max_raw;
    \n+
    937 delete[] ev;
    \n+
    938 }
    \n+
    \n+
    939
    \n+
    \n+
    944 inline unsigned int getIterationCount () const
    \n+
    945 {
    \n+
    946 if (nIterations_ == 0)
    \n+
    947 DUNE_THROW(Dune::ISTLError,"No algorithm applied, yet.");
    \n+
    948
    \n+
    949 return nIterations_;
    \n+
    950 }
    \n+
    \n+
    951
    \n+
    952 protected:
    \n+
    953 // parameters related to iterative eigenvalue algorithms
    \n+\n+
    955 const unsigned int nIterationsMax_;
    \n+
    956
    \n+
    957 // verbosity setting
    \n+
    958 const unsigned int verbosity_level_;
    \n+
    959
    \n+
    960 // memory for storing temporary variables (mutable as they shall
    \n+
    961 // just be effectless auxiliary variables of the const apply*(...)
    \n+
    962 // methods)
    \n+
    963 mutable unsigned int nIterations_;
    \n+
    964
    \n+
    965 // constants for printing verbosity information
    \n+
    966 const std::string title_;
    \n+
    967 const std::string blank_;
    \n+
    968 };
    \n+
    \n+
    969
    \n+
    972} // namespace Dune
    \n+
    973
    \n+
    974#endif // HAVE_ARPACKPP
    \n+
    975
    \n+
    976#endif // DUNE_ISTL_EIGENVALUE_ARPACKPP_HH
    \n+
    Some generic functions for pretty printing vectors and matrices.
    \n+\n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Helper functions for determining the vector/matrix block level.
    \n+
    void printvector(std::ostream &s, const V &v, std::string title, std::string rowtext, int columns=1, int width=10, int precision=2)
    Print an ISTL vector.
    Definition io.hh:89
    \n
    Definition allocator.hh:11
    \n-
    std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)
    Send BlockVector to an output stream.
    Definition bvector.hh:590
    \n-
    A Matrix class to support different block types.
    Definition multitypeblockmatrix.hh:46
    \n-
    static void bsorb(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:461
    \n-
    static void bsorf(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:418
    \n-
    static void dbjac(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:504
    \n-
    static void dbgs(const M &A, X &x, const Y &b, const K &w)
    Definition gsetc.hh:378
    \n-
    solver for MultiTypeBlockVector & MultiTypeBlockMatrix types
    Definition multitypeblockmatrix.hh:477
    \n-
    part of solvers for MultiTypeBlockVector & MultiTypeBlockMatrix types
    Definition multitypeblockmatrix.hh:449
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bcrsmatrix.hh:488
    \n+
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n+
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bvector.hh:401
    \n+
    A::size_type size_type
    The type for the index access.
    Definition bvector.hh:410
    \n+
    Wrapper to use a range of ARPACK++ eigenvalue solvers.
    Definition arpackpp.hh:245
    \n+
    const unsigned int verbosity_level_
    Definition arpackpp.hh:958
    \n+
    unsigned int getIterationCount() const
    Return the number of iterations in last application of an algorithm.
    Definition arpackpp.hh:944
    \n+
    const std::string title_
    Definition arpackpp.hh:966
    \n+
    BlockVector::field_type Real
    Definition arpackpp.hh:247
    \n+
    void computeSymMaxMagnitude(const Real &epsilon, BlockVector &x, Real &lambda) const
    Assume the matrix to be square, symmetric and perform IRLM to compute an approximation lambda of its ...
    Definition arpackpp.hh:289
    \n+
    void computeSymMinMagnitude(const Real &epsilon, BlockVector &x, Real &lambda) const
    Assume the matrix to be square, symmetric and perform IRLM to compute an approximation lambda of its ...
    Definition arpackpp.hh:391
    \n+
    const BCRSMatrix & m_
    Definition arpackpp.hh:954
    \n+
    const unsigned int nIterationsMax_
    Definition arpackpp.hh:955
    \n+
    const std::string blank_
    Definition arpackpp.hh:967
    \n+
    ArPackPlusPlus_Algorithms(const BCRSMatrix &m, const unsigned int nIterationsMax=100000, const unsigned int verbosity_level=0)
    Construct from required parameters.
    Definition arpackpp.hh:268
    \n+
    void computeSymCond2(const Real &epsilon, Real &cond_2) const
    Assume the matrix to be square, symmetric and perform IRLM to compute an approximation of its spectra...
    Definition arpackpp.hh:493
    \n+
    unsigned int nIterations_
    Definition arpackpp.hh:963
    \n+
    void computeNonSymMin(const Real &epsilon, BlockVector &x, Real &sigma) const
    Assume the matrix to be nonsymmetric and perform IRLM to compute an approximation sigma of its smalle...
    Definition arpackpp.hh:721
    \n+
    void computeNonSymCond2(const Real &epsilon, Real &cond_2) const
    Assume the matrix to be nonsymmetric and perform IRLM to compute an approximation of its spectral con...
    Definition arpackpp.hh:830
    \n+
    void computeNonSymMax(const Real &epsilon, BlockVector &x, Real &sigma) const
    Assume the matrix to be nonsymmetric and perform IRLM to compute an approximation sigma of its larges...
    Definition arpackpp.hh:609
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-us-ascii\n+utf-8\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,756 +1,954 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-multitypeblockmatrix.hh\n+ * _\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be\n+arpackpp.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_MULTITYPEBLOCKMATRIX_HH\n-6#define DUNE_ISTL_MULTITYPEBLOCKMATRIX_HH\n+5#ifndef DUNE_ISTL_EIGENVALUE_ARPACKPP_HH\n+6#define DUNE_ISTL_EIGENVALUE_ARPACKPP_HH\n 7\n-8#include \n-9#include \n-10#include \n+8#if HAVE_ARPACKPP || defined DOXYGEN\n+9\n+10#include // provides std::abs, std::pow, std::sqrt\n 11\n-12#include \n-13\n-14#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-15\n-16// forward declaration\n-17namespace _\bD_\bu_\bn_\be\n-18{\n-19 template\n-20 class MultiTypeBlockMatrix;\n-21\n-22 template\n-23 class MultiTypeBlockMatrix_Solver;\n-24}\n-25\n-26#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n-27\n-28namespace _\bD_\bu_\bn_\be {\n-29\n-43 template\n-_\b4_\b4 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n-45 : public std::tuple\n-46 {\n-47 using ParentType = std::tuple;\n-48 public:\n-49\n-51 using ParentType::ParentType;\n-52\n-_\b5_\b6 typedef _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx _\bt_\by_\bp_\be;\n-57\n-_\b5_\b9 using _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be = std::size_t;\n-60\n-_\b6_\b1 typedef typename FirstRow::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-62\n-_\b6_\b4 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN()\n-65 {\n-66 return 1+sizeof...(Args);\n-67 }\n-68\n-74 [[deprecated(\"Use method 'N' instead\")]]\n-_\b7_\b5 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be()\n-76 {\n-77 return 1+sizeof...(Args);\n-78 }\n-79\n-_\b8_\b1 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bM()\n-82 {\n-83 return FirstRow::size();\n-84 }\n-85\n-102 template< size_type index >\n-103 auto\n-_\b1_\b0_\b4 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b ([[maybe_unused]] const std::integral_constant< size_type, index\n-> indexVariable)\n-105 -> decltype(std::get(*this))\n-106 {\n-107 return std::get(*this);\n-108 }\n-109\n-115 template< size_type index >\n-116 auto\n-_\b1_\b1_\b7 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b ([[maybe_unused]] const std::integral_constant< size_type, index\n-> indexVariable) const\n-118 -> decltype(std::get(*this))\n-119 {\n-120 return std::get(*this);\n-121 }\n+12#include // provides std::cout, std::endl\n+13#include // provides std::string\n+14\n+15#include // provides Dune::FieldVector\n+16#include // provides DUNE_THROW(...)\n+17\n+18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh> // provides Dune::blockLevel\n+19#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh> // provides Dune::BlockVector\n+20#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh> // provides Dune::ISTLError\n+21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh> // provides Dune::printvector(...)\n+22\n+23#ifdef Status\n+24#undef Status // prevent preprocessor from damaging the ARPACK++\n+25 // code when \"X11/Xlib.h\" is included (the latter\n+26 // defines Status as \"#define Status int\" and\n+27 // ARPACK++ provides a class with a method called\n+28 // Status)\n+29#endif\n+30#include \"arssym.h\" // provides ARSymStdEig\n+31\n+32namespace _\bD_\bu_\bn_\be\n+33{\n+34\n+39 namespace Impl {\n+55 template \n+56 class ArPackPlusPlus_BCRSMatrixWrapper\n+57 {\n+58 public:\n+60 typedef typename _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be Real;\n+61\n+62 public:\n+64 ArPackPlusPlus_BCRSMatrixWrapper (const BCRSMatrix& A)\n+65 : A_(A),\n+66 m_(A_.M() * mBlock), n_(A_.N() * nBlock)\n+67 {\n+68 // assert that BCRSMatrix type has blocklevel 2\n+69 static_assert\n+70 (blockLevel() == 2,\n+71 \"Only BCRSMatrices with blocklevel 2 are supported.\");\n+72\n+73 // allocate memory for auxiliary block vector objects\n+74 // which are compatible to matrix rows / columns\n+75 domainBlockVector.resize(A_.N());\n+76 rangeBlockVector.resize(A_.M());\n+77 }\n+78\n+80 inline void multMv (Real* v, Real* w)\n+81 {\n+82 // get vector v as an object of appropriate type\n+83 arrayToDomainBlockVector(v,domainBlockVector);\n+84\n+85 // perform matrix-vector product\n+86 A_.mv(domainBlockVector,rangeBlockVector);\n+87\n+88 // get vector w from object of appropriate type\n+89 rangeBlockVectorToArray(rangeBlockVector,w);\n+90 };\n+91\n+93 inline void multMtMv (Real* v, Real* w)\n+94 {\n+95 // get vector v as an object of appropriate type\n+96 arrayToDomainBlockVector(v,domainBlockVector);\n+97\n+98 // perform matrix-vector product\n+99 A_.mv(domainBlockVector,rangeBlockVector);\n+100 A_.mtv(rangeBlockVector,domainBlockVector);\n+101\n+102 // get vector w from object of appropriate type\n+103 domainBlockVectorToArray(domainBlockVector,w);\n+104 };\n+105\n+107 inline void multMMtv (Real* v, Real* w)\n+108 {\n+109 // get vector v as an object of appropriate type\n+110 arrayToRangeBlockVector(v,rangeBlockVector);\n+111\n+112 // perform matrix-vector product\n+113 A_.mtv(rangeBlockVector,domainBlockVector);\n+114 A_.mv(domainBlockVector,rangeBlockVector);\n+115\n+116 // get vector w from object of appropriate type\n+117 rangeBlockVectorToArray(rangeBlockVector,w);\n+118 };\n+119\n+121 inline int nrows () const { return m_; }\n 122\n-126 template\n-_\b1_\b2_\b7 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const T& newval) {\n-128 using namespace Dune::Hybrid;\n-129 auto _\bs_\bi_\bz_\be = index_constant<1+sizeof...(Args)>();\n-130 // Since Dune::Hybrid::size(MultiTypeBlockMatrix) is not implemented,\n-131 // we cannot use a plain forEach(*this, ...). This could be achieved,\n-132 // e.g., by implementing a static size() method.\n-133 forEach(integralRange(_\bs_\bi_\bz_\be), [&](auto&& i) {\n-134 (*this)[i] = newval;\n-135 });\n-136 }\n-137\n-138 //===== vector space arithmetic\n-139\n-_\b1_\b4_\b1 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n-142 {\n-143 auto _\bs_\bi_\bz_\be = index_constant();\n-144 Hybrid::forEach(Hybrid::integralRange(_\bs_\bi_\bz_\be), [&](auto&& i) {\n-145 (*this)[i] *= k;\n-146 });\n-147\n-148 return *this;\n-149 }\n-150\n-_\b1_\b5_\b2 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n+124 inline int ncols () const { return n_; }\n+125\n+126 protected:\n+127 // Number of rows and columns in each block of the matrix\n+128 constexpr static int mBlock = BCRSMatrix::block_type::rows;\n+129 constexpr static int nBlock = BCRSMatrix::block_type::cols;\n+130\n+131 // Type of vectors in the domain of the linear map associated with\n+132 // the matrix, i.e. block vectors compatible to matrix rows\n+133 constexpr static int dbvBlockSize = nBlock;\n+134 typedef Dune::FieldVector DomainBlockVectorBlock;\n+135 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\bB_\bl_\bo_\bc_\bk_\b> DomainBlockVector;\n+136\n+137 // Type of vectors in the range of the linear map associated with\n+138 // the matrix, i.e. block vectors compatible to matrix columns\n+139 constexpr static int rbvBlockSize = mBlock;\n+140 typedef Dune::FieldVector RangeBlockVectorBlock;\n+141 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bR_\ba_\bn_\bg_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\bB_\bl_\bo_\bc_\bk_\b> RangeBlockVector;\n+142\n+143 // Types for vector index access\n+144 typedef typename _\bD_\bo_\bm_\ba_\bi_\bn_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be dbv_size_type;\n+145 typedef typename _\bR_\ba_\bn_\bg_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rbv_size_type;\n+146 typedef typename DomainBlockVectorBlock::size_type dbvb_size_type;\n+147 typedef typename RangeBlockVectorBlock::size_type rbvb_size_type;\n+148\n+149 // Get vector v from a block vector object which is compatible to\n+150 // matrix rows\n+151 static inline void\n+152 domainBlockVectorToArray (const DomainBlockVector& dbv, Real* v)\n 153 {\n-154 auto _\bs_\bi_\bz_\be = index_constant();\n-155 Hybrid::forEach(Hybrid::integralRange(_\bs_\bi_\bz_\be), [&](auto&& i) {\n-156 (*this)[i] /= k;\n-157 });\n+154 for (dbv_size_type block = 0; block < dbv.N(); ++block)\n+155 for (dbvb_size_type iBlock = 0; iBlock < dbvBlockSize; ++iBlock)\n+156 v[block*dbvBlockSize + iBlock] = dbv[block][iBlock];\n+157 }\n 158\n-159 return *this;\n-160 }\n-161\n-162\n-_\b1_\b6_\b8 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& b)\n-169 {\n-170 auto _\bs_\bi_\bz_\be = index_constant();\n-171 Hybrid::forEach(Hybrid::integralRange(_\bs_\bi_\bz_\be), [&](auto&& i) {\n-172 (*this)[i] += b[i];\n-173 });\n-174\n-175 return *this;\n-176 }\n-177\n-_\b1_\b8_\b3 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& b)\n+159 // Get vector v from a block vector object which is compatible to\n+160 // matrix columns\n+161 static inline void\n+162 rangeBlockVectorToArray (const RangeBlockVector& rbv, Real* v)\n+163 {\n+164 for (rbv_size_type block = 0; block < rbv.N(); ++block)\n+165 for (rbvb_size_type iBlock = 0; iBlock < rbvBlockSize; ++iBlock)\n+166 v[block*rbvBlockSize + iBlock] = rbv[block][iBlock];\n+167 }\n+168\n+169 public:\n+172 static inline void arrayToDomainBlockVector (const Real* v,\n+173 DomainBlockVector& dbv)\n+174 {\n+175 for (dbv_size_type block = 0; block < dbv.N(); ++block)\n+176 for (dbvb_size_type iBlock = 0; iBlock < dbvBlockSize; ++iBlock)\n+177 dbv[block][iBlock] = v[block*dbvBlockSize + iBlock];\n+178 }\n+179\n+182 static inline void arrayToRangeBlockVector (const Real* v,\n+183 RangeBlockVector& rbv)\n 184 {\n-185 auto _\bs_\bi_\bz_\be = index_constant();\n-186 Hybrid::forEach(Hybrid::integralRange(_\bs_\bi_\bz_\be), [&](auto&& i) {\n-187 (*this)[i] -= b[i];\n-188 });\n+185 for (rbv_size_type block = 0; block < rbv.N(); ++block)\n+186 for (rbvb_size_type iBlock = 0; iBlock < rbvBlockSize; ++iBlock)\n+187 rbv[block][iBlock] = v[block*rbvBlockSize + iBlock];\n+188 }\n 189\n-190 return *this;\n-191 }\n-192\n-195 template\n-_\b1_\b9_\b6 void _\bm_\bv (const X& x, Y& y) const {\n-197 static_assert(X::size() == _\bM(), \"length of x does not match row length\");\n-198 static_assert(Y::size() == _\bN(), \"length of y does not match row count\");\n-199 y = 0; //reset y (for mv uses umv)\n-200 _\bu_\bm_\bv(x,y);\n-201 }\n-202\n-205 template\n-_\b2_\b0_\b6 void _\bu_\bm_\bv (const X& x, Y& y) const {\n-207 static_assert(X::size() == _\bM(), \"length of x does not match row length\");\n-208 static_assert(Y::size() == _\bN(), \"length of y does not match row count\");\n-209 using namespace Dune::Hybrid;\n-210 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n-211 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-212 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n-213 (*this)[i][j].umv(x[j], y[i]);\n-214 });\n-215 });\n-216 }\n-217\n-220 template\n-_\b2_\b2_\b1 void _\bm_\bm_\bv (const X& x, Y& y) const {\n-222 static_assert(X::size() == _\bM(), \"length of x does not match row length\");\n-223 static_assert(Y::size() == _\bN(), \"length of y does not match row count\");\n-224 using namespace Dune::Hybrid;\n-225 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n-226 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-227 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n-228 (*this)[i][j].mmv(x[j], y[i]);\n-229 });\n-230 });\n-231 }\n-232\n-235 template\n-_\b2_\b3_\b6 void _\bu_\bs_\bm_\bv (const AlphaType& alpha, const X& x, Y& y) const {\n-237 static_assert(X::size() == _\bM(), \"length of x does not match row length\");\n-238 static_assert(Y::size() == _\bN(), \"length of y does not match row count\");\n-239 using namespace Dune::Hybrid;\n-240 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n-241 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-242 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n-243 (*this)[i][j].usmv(alpha, x[j], y[i]);\n-244 });\n-245 });\n-246 }\n-247\n-250 template\n-_\b2_\b5_\b1 void _\bm_\bt_\bv (const X& x, Y& y) const {\n-252 static_assert(X::size() == _\bN(), \"length of x does not match number of\n-rows\");\n-253 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n-columns\");\n-254 y = 0;\n-255 _\bu_\bm_\bt_\bv(x,y);\n-256 }\n-257\n-260 template\n-_\b2_\b6_\b1 void _\bu_\bm_\bt_\bv (const X& x, Y& y) const {\n-262 static_assert(X::size() == _\bN(), \"length of x does not match number of\n-rows\");\n-263 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n-columns\");\n-264 using namespace Dune::Hybrid;\n-265 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n-266 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-267 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n-268 (*this)[j][i].umtv(x[j], y[i]);\n-269 });\n-270 });\n-271 }\n-272\n-275 template\n-_\b2_\b7_\b6 void _\bm_\bm_\bt_\bv (const X& x, Y& y) const {\n-277 static_assert(X::size() == _\bN(), \"length of x does not match number of\n-rows\");\n-278 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n-columns\");\n-279 using namespace Dune::Hybrid;\n-280 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n-281 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-282 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n-283 (*this)[j][i].mmtv(x[j], y[i]);\n-284 });\n-285 });\n-286 }\n-287\n-290 template\n-_\b2_\b9_\b1 void _\bu_\bs_\bm_\bt_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const {\n-292 static_assert(X::size() == _\bN(), \"length of x does not match number of\n-rows\");\n-293 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n-columns\");\n-294 using namespace Dune::Hybrid;\n-295 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n-296 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-297 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n-298 (*this)[j][i].usmtv(alpha, x[j], y[i]);\n-299 });\n-300 });\n-301 }\n+190 protected:\n+191 // The DUNE-ISTL BCRSMatrix\n+192 const BCRSMatrix& A_;\n+193\n+194 // Number of rows and columns in the matrix\n+195 const int m_, n_;\n+196\n+197 // Auxiliary block vector objects which are\n+198 // compatible to matrix rows / columns\n+199 mutable DomainBlockVector domainBlockVector;\n+200 mutable RangeBlockVector rangeBlockVector;\n+201 };\n+202 } // end namespace Impl\n+203\n+243 template \n+_\b2_\b4_\b4 class _\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n+245 {\n+246 public:\n+_\b2_\b4_\b7 typedef typename _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bR_\be_\ba_\bl;\n+248\n+249 public:\n+_\b2_\b6_\b8 _\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& m,\n+269 const unsigned int nIterationsMax = 100000,\n+270 const unsigned int verbosity_level = 0)\n+271 : _\bm_\b_(m), _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_(nIterationsMax),\n+272 _\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_(verbosity_level),\n+273 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_(0),\n+274 _\bt_\bi_\bt_\bl_\be_\b_(\" ArPackPlusPlus_Algorithms: \"),\n+275 _\bb_\bl_\ba_\bn_\bk_\b_(_\bt_\bi_\bt_\bl_\be_\b_.length(),' ')\n+276 {}\n+277\n+_\b2_\b8_\b9 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\ba_\bx_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be (const _\bR_\be_\ba_\bl& epsilon,\n+290 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n+291 {\n+292 // print verbosity information\n+293 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+294 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of \"\n+295 << \"the dominant eigenvalue of a matrix which \"\n+296 << \"is assumed to be symmetric.\" << std::endl;\n+297\n+298 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n+299 // and to perform the product A*v (LU decomposition is not used)\n+300 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n+301 WrappedMatrix A(_\bm_\b_);\n 302\n-305 template\n-_\b3_\b0_\b6 void _\bu_\bm_\bh_\bv (const X& x, Y& y) const {\n-307 static_assert(X::size() == _\bN(), \"length of x does not match number of\n-rows\");\n-308 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n-columns\");\n-309 using namespace Dune::Hybrid;\n-310 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n-311 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-312 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n-313 (*this)[j][i].umhv(x[j], y[i]);\n-314 });\n-315 });\n-316 }\n-317\n-320 template\n-_\b3_\b2_\b1 void _\bm_\bm_\bh_\bv (const X& x, Y& y) const {\n-322 static_assert(X::size() == _\bN(), \"length of x does not match number of\n-rows\");\n-323 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n-columns\");\n-324 using namespace Dune::Hybrid;\n-325 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n-326 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-327 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n-328 (*this)[j][i].mmhv(x[j], y[i]);\n-329 });\n-330 });\n-331 }\n-332\n-335 template\n-_\b3_\b3_\b6 void _\bu_\bs_\bm_\bh_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const {\n-337 static_assert(X::size() == _\bN(), \"length of x does not match number of\n-rows\");\n-338 static_assert(Y::size() == _\bM(), \"length of y does not match number of\n-columns\");\n-339 using namespace Dune::Hybrid;\n-340 forEach(integralRange(Hybrid::size(y)), [&](auto&& i) {\n-341 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-342 forEach(integralRange(Hybrid::size(x)), [&](auto&& j) {\n-343 (*this)[j][i].usmhv(alpha, x[j], y[i]);\n-344 });\n-345 });\n-346 }\n-347\n-348\n-349 //===== norms\n-350\n-_\b3_\b5_\b2 auto _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2 () const\n-353 {\n-354 using field_type_00 = typename std::decay_t_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-355 typename FieldTraits::real_type sum=0;\n-356\n-357 auto rows = index_constant();\n-358 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {\n-359 auto cols = index_constant::M()>();\n-360 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {\n-361 sum += (*this)[i][j].frobenius_norm2();\n-362 });\n-363 });\n-364\n-365 return sum;\n-366 }\n-367\n-_\b3_\b6_\b9 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm () const\n-370 {\n-371 return sqrt(_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2());\n+303 // get number of rows and columns in A\n+304 const int nrows = A.nrows();\n+305 const int ncols = A.ncols();\n+306\n+307 // assert that A is square\n+308 if (nrows != ncols)\n+309 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix is not square (\"\n+310 << nrows << \"x\" << ncols << \").\");\n+311\n+312 // allocate memory for variables, set parameters\n+313 const int nev = 1; // Number of eigenvalues to compute\n+314 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n+each iteration (0 == auto)\n+315 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n+values) (0 == machine precision)\n+316 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n+iterations allowed (0 == 100*nev)\n+317 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A\n+318 const bool ivec = true; // Flag deciding if eigenvectors shall be\n+determined\n+319 int nconv; // Number of converged eigenvalues\n+320\n+321 // define what we need: eigenvalues with largest magnitude\n+322 char which[] = \"LM\";\n+323 ARSymStdEig\n+324 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);\n+325\n+326 // set ARPACK verbosity mode if requested\n+327 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n+328\n+329 // find eigenvalues and eigenvectors of A, obtain the eigenvalues\n+330 nconv = dprob.Eigenvalues(ev,ivec);\n+331\n+332 // obtain approximated dominant eigenvalue of A\n+333 lambda = ev[nev-1];\n+334\n+335 // obtain associated approximated eigenvector of A\n+336 _\bR_\be_\ba_\bl* x_raw = dprob.RawEigenvector(nev-1);\n+337 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);\n+338\n+339 // obtain number of Arnoldi update iterations actually taken\n+340 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n+341\n+342 // compute residual norm\n+343 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br r(x);\n+344 _\bR_\be_\ba_\bl* Ax_raw = new _\bR_\be_\ba_\bl[nrows];\n+345 A.multMv(x_raw,Ax_raw);\n+346 WrappedMatrix::arrayToDomainBlockVector(Ax_raw,r);\n+347 r.axpy(-lambda,x);\n+348 const _\bR_\be_\ba_\bl r_norm = r.two_norm();\n+349\n+350 // print verbosity information\n+351 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+352 {\n+353 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n+354 {\n+355 // print some information about the problem\n+356 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained eigenvalues of A by solving \"\n+357 << \"A*x = \u00ce\u00bb*x using the ARPACK++ class ARSym\"\n+358 << \"StdEig:\" << std::endl;\n+359 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A: \"\n+360 << nconv << \" / \" << nev << std::endl;\n+361 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" dominant eigenvalue of A: \"\n+362 << lambda << std::endl;\n+363 }\n+364 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n+365 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n+366 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n+367 << \"\u00ce\u00bb = \" << lambda << std::endl;\n+368 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n+369 {\n+370 // print approximated eigenvector via DUNE-ISTL I/O methods\n+371 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n 372 }\n-373\n-_\b3_\b7_\b5 auto _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm () const\n-376 {\n-377 using field_type_00 = typename std::decay_t_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-378 using std::max;\n-379 typename FieldTraits::real_type norm=0;\n-380\n-381 auto rows = index_constant();\n-382 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {\n-383\n-384 typename FieldTraits::real_type sum=0;\n-385 auto cols = index_constant::M()>();\n-386 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {\n-387 sum += (*this)[i][j].infinity_norm();\n-388 });\n-389 norm = max(sum, norm);\n-390 });\n-391\n-392 return norm;\n-393 }\n-394\n-_\b3_\b9_\b6 auto _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl () const\n-397 {\n-398 using field_type_00 = typename std::decay_t_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-399 using std::max;\n-400 typename FieldTraits::real_type norm=0;\n-401\n-402 auto rows = index_constant();\n-403 Hybrid::forEach(Hybrid::integralRange(rows), [&](auto&& i) {\n+373 }\n+374\n+375 // free dynamically allocated memory\n+376 delete[] Ax_raw;\n+377 delete[] ev;\n+378 }\n+379\n+_\b3_\b9_\b1 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\bi_\bn_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be (const _\bR_\be_\ba_\bl& epsilon,\n+392 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n+393 {\n+394 // print verbosity information\n+395 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+396 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of the \"\n+397 << \"least dominant eigenvalue of a matrix which \"\n+398 << \"is assumed to be symmetric.\" << std::endl;\n+399\n+400 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n+401 // and to perform the product A*v (LU decomposition is not used)\n+402 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n+403 WrappedMatrix A(_\bm_\b_);\n 404\n-405 typename FieldTraits::real_type sum=0;\n-406 auto cols = index_constant::M()>();\n-407 Hybrid::forEach(Hybrid::integralRange(cols), [&](auto&& j) {\n-408 sum += (*this)[i][j].infinity_norm_real();\n-409 });\n-410 norm = max(sum, norm);\n-411 });\n-412\n-413 return norm;\n-414 }\n-415\n-416 };\n-417\n-423 template\n-_\b4_\b2_\b4 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<_\b (std::ostream& s, const\n-_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b1_\b,_\bA_\br_\bg_\bs_\b._\b._\b._\b>& m) {\n-425 auto N = index_constant::N()>();\n-426 auto M = index_constant::M()>();\n-427 using namespace Dune::Hybrid;\n-428 forEach(integralRange(N), [&](auto&& i) {\n-429 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-430 forEach(integralRange(M), [&](auto&& j) {\n-431 s << \"\\t(\" << i << \", \" << j << \"): \\n\" << m[i][j];\n-432 });\n-433 });\n-434 s << std::endl;\n-435 return s;\n-436 }\n-437\n-438 //make algmeta_itsteps known\n-439 template\n-440 struct algmeta_itsteps;\n-441\n-448 template //\n-MultiTypeBlockMatrix_Solver_Col: iterating over one row\n-_\b4_\b4_\b9 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl { //calculating b- A[i][j]*x[j]\n-450 public:\n-454 template \n-_\b4_\b5_\b5 static void _\bc_\ba_\bl_\bc_\b__\br_\bh_\bs(const TMatrix& A, TVector& x, TVector& v, Trhs& b,\n-const K& w) {\n-456 std::get( std::get(A) ).mmv( std::get(x), b );\n-457 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl_\b<_\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\bc_\bc_\bo_\bl_\b+_\b1_\b,_\b _\br_\be_\bm_\ba_\bi_\bn_\b__\bc_\bo_\bl_\b-_\b1_\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b__\br_\bh_\bs\n-(A,x,v,b,w); //next column element\n-458 }\n-459\n-460 };\n-461 template //MultiTypeBlockMatrix_Solver_Col\n-recursion end\n-_\b4_\b6_\b2 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl {\n-463 public:\n-464 template \n-_\b4_\b6_\b5 static void _\bc_\ba_\bl_\bc_\b__\br_\bh_\bs(const TMatrix&, TVector&, TVector&, Trhs&, const K&)\n-{}\n-466 };\n-467\n-468\n-469\n-476 template\n-_\b4_\b7_\b7 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br {\n-478 public:\n-479\n-483 template \n-_\b4_\b8_\b4 static void _\bd_\bb_\bg_\bs(const TMatrix& A, TVector& x, const TVector& b, const K&\n-w) {\n-485 TVector xold(x);\n-486 xold=x; //store old x values\n-487 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b>_\b:_\b:_\bd_\bb_\bg_\bs(A,x,x,b,w);\n-488 x *= w;\n-489 x.axpy(1-w,xold); //improve x\n-490 }\n-491 template \n-_\b4_\b9_\b2 static void _\bd_\bb_\bg_\bs(const TMatrix& A, TVector& x, TVector& v, const TVector&\n-b, const K& w) {\n-493 auto rhs = std::get (b);\n-494\n-495 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl::calc_rhs\n-(A,x,v,rhs,w); // calculate right side of equation\n-496 //solve on blocklevel I-1\n-497 using M =\n-498 typename std::remove_cv<\n-499 typename std::remove_reference<\n-500 decltype(std::get( std::get(A)))\n-501 >::type\n-502 >::type;\n-503 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bg_\bs(std::get( std::get(A)), std::\n-get(x),rhs,w);\n-504 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b+_\b1_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b-_\b1_\b>_\b:_\b:_\bd_\bb_\bg_\bs(A,x,v,b,w); //next\n-row\n-505 }\n-506\n-507\n-508\n-512 template \n-_\b5_\b1_\b3 static void _\bb_\bs_\bo_\br_\bf(const TMatrix& A, TVector& x, const TVector& b, const K&\n-w) {\n-514 TVector v;\n-515 v=x; //use latest x values in right side calculation\n-516 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(A,x,v,b,w);\n-517\n-518 }\n-519 template //recursion over\n-all matrix rows (A)\n-_\b5_\b2_\b0 static void _\bb_\bs_\bo_\br_\bf(const TMatrix& A, TVector& x, TVector& v, const TVector&\n-b, const K& w) {\n-521 auto rhs = std::get (b);\n-522\n-523 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl::calc_rhs\n-(A,x,v,rhs,w); // calculate right side of equation\n-524 //solve on blocklevel I-1\n-525 using M =\n-526 typename std::remove_cv<\n-527 typename std::remove_reference<\n-528 decltype(std::get( std::get(A)))\n-529 >::type\n-530 >::type;\n-531 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bM_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(std::get( std::get(A)), std::\n-get(v),rhs,w);\n-532 std::get(x).axpy(w,std::get(v));\n-533 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b+_\b1_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b-_\b1_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf(A,x,v,b,w); //\n-next row\n-534 }\n-535\n-539 template \n-_\b5_\b4_\b0 static void _\bb_\bs_\bo_\br_\bb(const TMatrix& A, TVector& x, const TVector& b, const K&\n-w) {\n-541 TVector v;\n-542 v=x; //use latest x values in right side calculation\n-543 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(A,x,v,b,w);\n-544\n-545 }\n-546 template //recursion over\n-all matrix rows (A)\n-_\b5_\b4_\b7 static void _\bb_\bs_\bo_\br_\bb(const TMatrix& A, TVector& x, TVector& v, const TVector&\n-b, const K& w) {\n-548 auto rhs = std::get (b);\n-549\n-550 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl::calc_rhs\n-(A,x,v,rhs,w); // calculate right side of equation\n-551 //solve on blocklevel I-1\n-552 using M =\n-553 typename std::remove_cv<\n-554 typename std::remove_reference<\n-555 decltype(std::get( std::get(A)))\n-556 >::type\n-557 >::type;\n-558 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bM_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(std::get( std::get(A)), std::\n-get(v),rhs,w);\n-559 std::get(x).axpy(w,std::get(v));\n-560 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b-_\b1_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b-_\b1_\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb(A,x,v,b,w); //\n-next row\n-561 }\n-562\n+405 // get number of rows and columns in A\n+406 const int nrows = A.nrows();\n+407 const int ncols = A.ncols();\n+408\n+409 // assert that A is square\n+410 if (nrows != ncols)\n+411 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix is not square (\"\n+412 << nrows << \"x\" << ncols << \").\");\n+413\n+414 // allocate memory for variables, set parameters\n+415 const int nev = 1; // Number of eigenvalues to compute\n+416 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n+each iteration (0 == auto)\n+417 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n+values) (0 == machine precision)\n+418 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n+iterations allowed (0 == 100*nev)\n+419 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A\n+420 const bool ivec = true; // Flag deciding if eigenvectors shall be\n+determined\n+421 int nconv; // Number of converged eigenvalues\n+422\n+423 // define what we need: eigenvalues with smallest magnitude\n+424 char which[] = \"SM\";\n+425 ARSymStdEig\n+426 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);\n+427\n+428 // set ARPACK verbosity mode if requested\n+429 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n+430\n+431 // find eigenvalues and eigenvectors of A, obtain the eigenvalues\n+432 nconv = dprob.Eigenvalues(ev,ivec);\n+433\n+434 // obtain approximated least dominant eigenvalue of A\n+435 lambda = ev[nev-1];\n+436\n+437 // obtain associated approximated eigenvector of A\n+438 _\bR_\be_\ba_\bl* x_raw = dprob.RawEigenvector(nev-1);\n+439 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);\n+440\n+441 // obtain number of Arnoldi update iterations actually taken\n+442 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n+443\n+444 // compute residual norm\n+445 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br r(x);\n+446 _\bR_\be_\ba_\bl* Ax_raw = new _\bR_\be_\ba_\bl[nrows];\n+447 A.multMv(x_raw,Ax_raw);\n+448 WrappedMatrix::arrayToDomainBlockVector(Ax_raw,r);\n+449 r.axpy(-lambda,x);\n+450 const _\bR_\be_\ba_\bl r_norm = r.two_norm();\n+451\n+452 // print verbosity information\n+453 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+454 {\n+455 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n+456 {\n+457 // print some information about the problem\n+458 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained eigenvalues of A by solving \"\n+459 << \"A*x = \u00ce\u00bb*x using the ARPACK++ class ARSym\"\n+460 << \"StdEig:\" << std::endl;\n+461 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A: \"\n+462 << nconv << \" / \" << nev << std::endl;\n+463 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" least dominant eigenvalue of A: \"\n+464 << lambda << std::endl;\n+465 }\n+466 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n+467 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n+468 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n+469 << \"\u00ce\u00bb = \" << lambda << std::endl;\n+470 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n+471 {\n+472 // print approximated eigenvector via DUNE-ISTL I/O methods\n+473 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n+474 }\n+475 }\n+476\n+477 // free dynamically allocated memory\n+478 delete[] Ax_raw;\n+479 delete[] ev;\n+480 }\n+481\n+_\b4_\b9_\b3 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bC_\bo_\bn_\bd_\b2 (const _\bR_\be_\ba_\bl& epsilon, _\bR_\be_\ba_\bl& cond_2) const\n+494 {\n+495 // print verbosity information\n+496 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+497 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of the \"\n+498 << \"spectral condition number of a matrix which \"\n+499 << \"is assumed to be symmetric.\" << std::endl;\n+500\n+501 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n+502 // and to perform the product A*v (LU decomposition is not used)\n+503 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n+504 WrappedMatrix A(_\bm_\b_);\n+505\n+506 // get number of rows and columns in A\n+507 const int nrows = A.nrows();\n+508 const int ncols = A.ncols();\n+509\n+510 // assert that A is square\n+511 if (nrows != ncols)\n+512 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix is not square (\"\n+513 << nrows << \"x\" << ncols << \").\");\n+514\n+515 // allocate memory for variables, set parameters\n+516 const int nev = 2; // Number of eigenvalues to compute\n+517 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n+each iteration (0 == auto)\n+518 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n+values) (0 == machine precision)\n+519 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n+iterations allowed (0 == 100*nev)\n+520 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A\n+521 const bool ivec = true; // Flag deciding if eigenvectors shall be\n+determined\n+522 int nconv; // Number of converged eigenvalues\n+523\n+524 // define what we need: eigenvalues from both ends of the spectrum\n+525 char which[] = \"BE\";\n+526 ARSymStdEig\n+527 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);\n+528\n+529 // set ARPACK verbosity mode if requested\n+530 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n+531\n+532 // find eigenvalues and eigenvectors of A, obtain the eigenvalues\n+533 nconv = dprob.Eigenvalues(ev,ivec);\n+534\n+535 // obtain approximated dominant and least dominant eigenvalue of A\n+536 const _\bR_\be_\ba_\bl& lambda_max = ev[nev-1];\n+537 const _\bR_\be_\ba_\bl& lambda_min = ev[0];\n+538\n+539 // obtain associated approximated eigenvectors of A\n+540 _\bR_\be_\ba_\bl* x_max_raw = dprob.RawEigenvector(nev-1);\n+541 _\bR_\be_\ba_\bl* x_min_raw = dprob.RawEigenvector(0);\n+542\n+543 // obtain approximated spectral condition number of A\n+544 cond_2 = std::abs(lambda_max / lambda_min);\n+545\n+546 // obtain number of Arnoldi update iterations actually taken\n+547 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n+548\n+549 // compute each residual norm\n+550 _\bR_\be_\ba_\bl* Ax_max_raw = new _\bR_\be_\ba_\bl[nrows];\n+551 _\bR_\be_\ba_\bl* Ax_min_raw = new _\bR_\be_\ba_\bl[nrows];\n+552 A.multMv(x_max_raw,Ax_max_raw);\n+553 A.multMv(x_min_raw,Ax_min_raw);\n+554 _\bR_\be_\ba_\bl r_max_norm = 0.0;\n+555 _\bR_\be_\ba_\bl r_min_norm = 0.0;\n+556 for (int i = 0; i < nrows; ++i)\n+557 {\n+558 r_max_norm += std::pow(Ax_max_raw[i] - lambda_max * x_max_raw[i],2);\n+559 r_min_norm += std::pow(Ax_min_raw[i] - lambda_min * x_min_raw[i],2);\n+560 }\n+561 r_max_norm = std::sqrt(r_max_norm);\n+562 r_min_norm = std::sqrt(r_min_norm);\n 563\n-567 template \n-_\b5_\b6_\b8 static void _\bd_\bb_\bj_\ba_\bc(const TMatrix& A, TVector& x, const TVector& b, const K&\n-w) {\n-569 TVector v(x);\n-570 v=0; //calc new x in v\n-571 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(A,x,v,b,w);\n-572 x.axpy(w,v); //improve x\n-573 }\n-574 template \n-_\b5_\b7_\b5 static void _\bd_\bb_\bj_\ba_\bc(const TMatrix& A, TVector& x, TVector& v, const TVector&\n-b, const K& w) {\n-576 auto rhs = std::get (b);\n-577\n-578 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl::calc_rhs\n-(A,x,v,rhs,w); // calculate right side of equation\n-579 //solve on blocklevel I-1\n-580 using M =\n-581 typename std::remove_cv<\n-582 typename std::remove_reference<\n-583 decltype(std::get( std::get(A)))\n-584 >::type\n-585 >::type;\n-586 _\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b<_\bI_\b-_\b1_\b,_\bM_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(std::get( std::get(A)), std::\n-get(v),rhs,w);\n-587 _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\b,_\bc_\br_\bo_\bw_\b+_\b1_\b,_\br_\be_\bm_\ba_\bi_\bn_\b__\br_\bo_\bw_\b-_\b1_\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc(A,x,v,b,w); //\n-next row\n+564 // print verbosity information\n+565 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+566 {\n+567 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n+568 {\n+569 // print some information about the problem\n+570 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained eigenvalues of A by solving \"\n+571 << \"A*x = \u00ce\u00bb*x using the ARPACK++ class ARSym\"\n+572 << \"StdEig:\" << std::endl;\n+573 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A: \"\n+574 << nconv << \" / \" << nev << std::endl;\n+575 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" dominant eigenvalue of A: \"\n+576 << lambda_max << std::endl;\n+577 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" least dominant eigenvalue of A: \"\n+578 << lambda_min << std::endl;\n+579 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" spectral condition number of A: \"\n+580 << cond_2 << std::endl;\n+581 }\n+582 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n+583 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n+584 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = {\" << r_max_norm << \",\"\n+585 << r_min_norm << \"}, \" << \"\u00ce\u00bb = {\"\n+586 << lambda_max << \",\" << lambda_min\n+587 << \"}): cond_2 = \" << cond_2 << std::endl;\n 588 }\n 589\n-590\n-591\n-592\n-593 };\n-594 template //recursion end for remain_row = 0\n-_\b5_\b9_\b5 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br {\n-596 public:\n-597 template \n-_\b5_\b9_\b8 static void _\bd_\bb_\bg_\bs(const TMatrix&, TVector&, TVector&,\n-599 const TVector&, const K&) {}\n-600\n-601 template \n-_\b6_\b0_\b2 static void _\bb_\bs_\bo_\br_\bf(const TMatrix&, TVector&, TVector&,\n-603 const TVector&, const K&) {}\n-604\n-605 template \n-_\b6_\b0_\b6 static void _\bb_\bs_\bo_\br_\bb(const TMatrix&, TVector&, TVector&,\n-607 const TVector&, const K&) {}\n-608\n-609 template \n-_\b6_\b1_\b0 static void _\bd_\bb_\bj_\ba_\bc(const TMatrix&, TVector&, TVector&,\n-611 const TVector&, const K&) {}\n-612 };\n-613\n-614} // end namespace Dune\n-615\n-616namespace _\bs_\bt_\bd\n-617{\n-622 template \n-_\b6_\b2_\b3 struct tuple_element >\n-624 {\n-_\b6_\b2_\b5 using _\bt_\by_\bp_\be = typename std::tuple_element >::type;\n-626 };\n-627}\n-628#endif\n-_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\n-Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n-generic way.\n+590 // free dynamically allocated memory\n+591 delete[] Ax_min_raw;\n+592 delete[] Ax_max_raw;\n+593 delete[] ev;\n+594 }\n+595\n+_\b6_\b0_\b9 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bM_\ba_\bx (const _\bR_\be_\ba_\bl& epsilon,\n+610 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& sigma) const\n+611 {\n+612 // print verbosity information\n+613 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+614 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of the \"\n+615 << \"largest singular value of a matrix which \"\n+616 << \"is assumed to be nonsymmetric.\" << std::endl;\n+617\n+618 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n+619 // and to perform the product A^T*A*v (LU decomposition is not used)\n+620 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n+621 WrappedMatrix A(_\bm_\b_);\n+622\n+623 // get number of rows and columns in A\n+624 const int nrows = A.nrows();\n+625 const int ncols = A.ncols();\n+626\n+627 // assert that A has more rows than columns (extend code later to the\n+opposite case!)\n+628 if (nrows < ncols)\n+629 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix has less rows than \"\n+630 << \"columns (\" << nrows << \"x\" << ncols << \").\"\n+631 << \" This case is not implemented, yet.\");\n+632\n+633 // allocate memory for variables, set parameters\n+634 const int nev = 1; // Number of eigenvalues to compute\n+635 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n+each iteration (0 == auto)\n+636 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n+values) (0 == machine precision)\n+637 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n+iterations allowed (0 == 100*nev)\n+638 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A^T*A\n+639 const bool ivec = true; // Flag deciding if eigenvectors shall be\n+determined\n+640 int nconv; // Number of converged eigenvalues\n+641\n+642 // define what we need: eigenvalues with largest algebraic value\n+643 char which[] = \"LA\";\n+644 ARSymStdEig\n+645 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);\n+646\n+647 // set ARPACK verbosity mode if requested\n+648 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n+649\n+650 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues\n+651 nconv = dprob.Eigenvalues(ev,ivec);\n+652\n+653 // obtain approximated largest eigenvalue of A^T*A\n+654 const _\bR_\be_\ba_\bl& lambda = ev[nev-1];\n+655\n+656 // obtain associated approximated eigenvector of A^T*A\n+657 _\bR_\be_\ba_\bl* x_raw = dprob.RawEigenvector(nev-1);\n+658 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);\n+659\n+660 // obtain number of Arnoldi update iterations actually taken\n+661 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n+662\n+663 // compute residual norm\n+664 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br r(x);\n+665 _\bR_\be_\ba_\bl* AtAx_raw = new _\bR_\be_\ba_\bl[ncols];\n+666 A.multMtMv(x_raw,AtAx_raw);\n+667 WrappedMatrix::arrayToDomainBlockVector(AtAx_raw,r);\n+668 r.axpy(-lambda,x);\n+669 const _\bR_\be_\ba_\bl r_norm = r.two_norm();\n+670\n+671 // calculate largest singular value of A (note that\n+672 // x is right-singular / left-singular vector of A)\n+673 sigma = std::sqrt(lambda);\n+674\n+675 // print verbosity information\n+676 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+677 {\n+678 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n+679 {\n+680 // print some information about the problem\n+681 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained singular values of A by sol\"\n+682 << \"ving (A^T*A)*x = \u00cf\u0083\u00c2\u00b2*x using the ARPACK++ \"\n+683 << \"class ARSymStdEig:\" << std::endl;\n+684 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A^T*A: \"\n+685 << nconv << \" / \" << nev << std::endl;\n+686 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" largest eigenvalue of A^T*A: \"\n+687 << lambda << std::endl;\n+688 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" => largest singular value of A: \"\n+689 << sigma << std::endl;\n+690 }\n+691 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n+692 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n+693 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n+694 << \"\u00cf\u0083 = \" << sigma << std::endl;\n+695 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n+696 {\n+697 // print approximated right-singular / left-singular vector\n+698 // via DUNE-ISTL I/O methods\n+699 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n+700 }\n+701 }\n+702\n+703 // free dynamically allocated memory\n+704 delete[] AtAx_raw;\n+705 delete[] ev;\n+706 }\n+707\n+_\b7_\b2_\b1 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bM_\bi_\bn (const _\bR_\be_\ba_\bl& epsilon,\n+722 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& sigma) const\n+723 {\n+724 // print verbosity information\n+725 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+726 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of the \"\n+727 << \"smallest singular value of a matrix which \"\n+728 << \"is assumed to be nonsymmetric.\" << std::endl;\n+729\n+730 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n+731 // and to perform the product A^T*A*v (LU decomposition is not used)\n+732 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n+733 WrappedMatrix A(_\bm_\b_);\n+734\n+735 // get number of rows and columns in A\n+736 const int nrows = A.nrows();\n+737 const int ncols = A.ncols();\n+738\n+739 // assert that A has more rows than columns (extend code later to the\n+opposite case!)\n+740 if (nrows < ncols)\n+741 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix has less rows than \"\n+742 << \"columns (\" << nrows << \"x\" << ncols << \").\"\n+743 << \" This case is not implemented, yet.\");\n+744\n+745 // allocate memory for variables, set parameters\n+746 const int nev = 1; // Number of eigenvalues to compute\n+747 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n+each iteration (0 == auto)\n+748 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n+values) (0 == machine precision)\n+749 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n+iterations allowed (0 == 100*nev)\n+750 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A^T*A\n+751 const bool ivec = true; // Flag deciding if eigenvectors shall be\n+determined\n+752 int nconv; // Number of converged eigenvalues\n+753\n+754 // define what we need: eigenvalues with smallest algebraic value\n+755 char which[] = \"SA\";\n+756 ARSymStdEig\n+757 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);\n+758\n+759 // set ARPACK verbosity mode if requested\n+760 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n+761\n+762 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues\n+763 nconv = dprob.Eigenvalues(ev,ivec);\n+764\n+765 // obtain approximated smallest eigenvalue of A^T*A\n+766 const _\bR_\be_\ba_\bl& lambda = ev[nev-1];\n+767\n+768 // obtain associated approximated eigenvector of A^T*A\n+769 _\bR_\be_\ba_\bl* x_raw = dprob.RawEigenvector(nev-1);\n+770 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);\n+771\n+772 // obtain number of Arnoldi update iterations actually taken\n+773 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n+774\n+775 // compute residual norm\n+776 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br r(x);\n+777 _\bR_\be_\ba_\bl* AtAx_raw = new _\bR_\be_\ba_\bl[ncols];\n+778 A.multMtMv(x_raw,AtAx_raw);\n+779 WrappedMatrix::arrayToDomainBlockVector(AtAx_raw,r);\n+780 r.axpy(-lambda,x);\n+781 const _\bR_\be_\ba_\bl r_norm = r.two_norm();\n+782\n+783 // calculate smallest singular value of A (note that\n+784 // x is right-singular / left-singular vector of A)\n+785 sigma = std::sqrt(lambda);\n+786\n+787 // print verbosity information\n+788 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+789 {\n+790 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n+791 {\n+792 // print some information about the problem\n+793 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained singular values of A by sol\"\n+794 << \"ving (A^T*A)*x = \u00cf\u0083\u00c2\u00b2*x using the ARPACK++ \"\n+795 << \"class ARSymStdEig:\" << std::endl;\n+796 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A^T*A: \"\n+797 << nconv << \" / \" << nev << std::endl;\n+798 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" smallest eigenvalue of A^T*A: \"\n+799 << lambda << std::endl;\n+800 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" => smallest singular value of A: \"\n+801 << sigma << std::endl;\n+802 }\n+803 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n+804 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n+805 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n+806 << \"\u00cf\u0083 = \" << sigma << std::endl;\n+807 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n+808 {\n+809 // print approximated right-singular / left-singular vector\n+810 // via DUNE-ISTL I/O methods\n+811 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n+812 }\n+813 }\n+814\n+815 // free dynamically allocated memory\n+816 delete[] AtAx_raw;\n+817 delete[] ev;\n+818 }\n+819\n+_\b8_\b3_\b0 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bC_\bo_\bn_\bd_\b2 (const _\bR_\be_\ba_\bl& epsilon, _\bR_\be_\ba_\bl& cond_2) const\n+831 {\n+832 // print verbosity information\n+833 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+834 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of the \"\n+835 << \"spectral condition number of a matrix which \"\n+836 << \"is assumed to be nonsymmetric.\" << std::endl;\n+837\n+838 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n+839 // and to perform the product A^T*A*v (LU decomposition is not used)\n+840 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n+841 WrappedMatrix A(_\bm_\b_);\n+842\n+843 // get number of rows and columns in A\n+844 const int nrows = A.nrows();\n+845 const int ncols = A.ncols();\n+846\n+847 // assert that A has more rows than columns (extend code later to the\n+opposite case!)\n+848 if (nrows < ncols)\n+849 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix has less rows than \"\n+850 << \"columns (\" << nrows << \"x\" << ncols << \").\"\n+851 << \" This case is not implemented, yet.\");\n+852\n+853 // allocate memory for variables, set parameters\n+854 const int nev = 2; // Number of eigenvalues to compute\n+855 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n+each iteration (0 == auto)\n+856 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n+values) (0 == machine precision)\n+857 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n+iterations allowed (0 == 100*nev)\n+858 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A^T*A\n+859 const bool ivec = true; // Flag deciding if eigenvectors shall be\n+determined\n+860 int nconv; // Number of converged eigenvalues\n+861\n+862 // define what we need: eigenvalues from both ends of the spectrum\n+863 char which[] = \"BE\";\n+864 ARSymStdEig\n+865 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);\n+866\n+867 // set ARPACK verbosity mode if requested\n+868 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n+869\n+870 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues\n+871 nconv = dprob.Eigenvalues(ev,ivec);\n+872\n+873 // obtain approximated largest and smallest eigenvalue of A^T*A\n+874 const _\bR_\be_\ba_\bl& lambda_max = ev[nev-1];\n+875 const _\bR_\be_\ba_\bl& lambda_min = ev[0];\n+876\n+877 // obtain associated approximated eigenvectors of A^T*A\n+878 _\bR_\be_\ba_\bl* x_max_raw = dprob.RawEigenvector(nev-1);\n+879 _\bR_\be_\ba_\bl* x_min_raw = dprob.RawEigenvector(0);\n+880\n+881 // obtain number of Arnoldi update iterations actually taken\n+882 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n+883\n+884 // compute each residual norm\n+885 _\bR_\be_\ba_\bl* AtAx_max_raw = new _\bR_\be_\ba_\bl[ncols];\n+886 _\bR_\be_\ba_\bl* AtAx_min_raw = new _\bR_\be_\ba_\bl[ncols];\n+887 A.multMtMv(x_max_raw,AtAx_max_raw);\n+888 A.multMtMv(x_min_raw,AtAx_min_raw);\n+889 _\bR_\be_\ba_\bl r_max_norm = 0.0;\n+890 _\bR_\be_\ba_\bl r_min_norm = 0.0;\n+891 for (int i = 0; i < ncols; ++i)\n+892 {\n+893 r_max_norm += std::pow(AtAx_max_raw[i] - lambda_max * x_max_raw[i],2);\n+894 r_min_norm += std::pow(AtAx_min_raw[i] - lambda_min * x_min_raw[i],2);\n+895 }\n+896 r_max_norm = std::sqrt(r_max_norm);\n+897 r_min_norm = std::sqrt(r_min_norm);\n+898\n+899 // calculate largest and smallest singular value of A\n+900 const _\bR_\be_\ba_\bl sigma_max = std::sqrt(lambda_max);\n+901 const _\bR_\be_\ba_\bl sigma_min = std::sqrt(lambda_min);\n+902\n+903 // obtain approximated spectral condition number of A\n+904 cond_2 = sigma_max / sigma_min;\n+905\n+906 // print verbosity information\n+907 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+908 {\n+909 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n+910 {\n+911 // print some information about the problem\n+912 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained singular values of A by sol\"\n+913 << \"ving (A^T*A)*x = \u00cf\u0083\u00c2\u00b2*x using the ARPACK++ \"\n+914 << \"class ARSymStdEig:\" << std::endl;\n+915 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A^T*A: \"\n+916 << nconv << \" / \" << nev << std::endl;\n+917 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" largest eigenvalue of A^T*A: \"\n+918 << lambda_max << std::endl;\n+919 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" smallest eigenvalue of A^T*A: \"\n+920 << lambda_min << std::endl;\n+921 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" => largest singular value of A: \"\n+922 << sigma_max << std::endl;\n+923 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" => smallest singular value of A: \"\n+924 << sigma_min << std::endl;\n+925 }\n+926 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n+927 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n+928 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = {\" << r_max_norm << \",\"\n+929 << r_min_norm << \"}, \" << \"\u00cf\u0083 = {\"\n+930 << sigma_max << \",\" << sigma_min\n+931 << \"}): cond_2 = \" << cond_2 << std::endl;\n+932 }\n+933\n+934 // free dynamically allocated memory\n+935 delete[] AtAx_min_raw;\n+936 delete[] AtAx_max_raw;\n+937 delete[] ev;\n+938 }\n+939\n+_\b9_\b4_\b4 inline unsigned int _\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bC_\bo_\bu_\bn_\bt () const\n+945 {\n+946 if (_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ == 0)\n+947 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"No algorithm applied, yet.\");\n+948\n+949 return _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_;\n+950 }\n+951\n+952 protected:\n+953 // parameters related to iterative eigenvalue algorithms\n+_\b9_\b5_\b4 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bm_\b_;\n+_\b9_\b5_\b5 const unsigned int _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_;\n+956\n+957 // verbosity setting\n+_\b9_\b5_\b8 const unsigned int _\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_;\n+959\n+960 // memory for storing temporary variables (mutable as they shall\n+961 // just be effectless auxiliary variables of the const apply*(...)\n+962 // methods)\n+_\b9_\b6_\b3 mutable unsigned int _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_;\n+964\n+965 // constants for printing verbosity information\n+_\b9_\b6_\b6 const std::string _\bt_\bi_\bt_\bl_\be_\b_;\n+_\b9_\b6_\b7 const std::string _\bb_\bl_\ba_\bn_\bk_\b_;\n+968 };\n+969\n+972} // namespace Dune\n+973\n+974#endif // HAVE_ARPACKPP\n+975\n+976#endif // DUNE_ISTL_EIGENVALUE_ARPACKPP_HH\n+_\bi_\bo_\b._\bh_\bh\n+Some generic functions for pretty printing vectors and matrices.\n _\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bt_\by_\bp_\be\n-MultiTypeBlockMatrix< FirstRow, Args... > type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n-static void dbjac(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:568\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n-MultiTypeBlockMatrix & operator+=(const MultiTypeBlockMatrix &b)\n-Add the entries of another matrix to this one.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:168\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n-void mv(const X &x, Y &y) const\n-y = A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:196\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bt_\bv\n-void mmtv(const X &x, Y &y) const\n-y -= A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:276\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bh_\bv\n-void mmhv(const X &x, Y &y) const\n-y -= A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:321\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\b0_\b _\b>_\b:_\b:_\bd_\bb_\bg_\bs\n-static void dbgs(const TMatrix &, TVector &, TVector &, const TVector &, const\n-K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:598\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bg_\bs\n-static void dbgs(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:484\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-static void bsorb(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:540\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bh_\bv\n-void usmhv(const field_type &alpha, const X &x, Y &y) const\n-y += alpha A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:336\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-FirstRow::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bv\n-void usmv(const AlphaType &alpha, const X &x, Y &y) const\n-y += alpha A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:236\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n-MultiTypeBlockMatrix & operator/=(const field_type &k)\n-vector space division by scalar\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:152\n-_\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b__\be_\bl_\be_\bm_\be_\bn_\bt_\b<_\b _\bi_\b,_\b _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-typename std::tuple_element< i, std::tuple< Args... > >::type type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:625\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bg_\bs\n-static void dbgs(const TMatrix &A, TVector &x, TVector &v, const TVector &b,\n-const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:492\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-static void bsorf(const TMatrix &A, TVector &x, TVector &v, const TVector &b,\n-const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:520\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bh_\bv\n-void umhv(const X &x, Y &y) const\n-y += A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:306\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm\n-FieldTraits< field_type >::real_type frobenius_norm() const\n-frobenius norm: sqrt(sum over squared values of entries)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:369\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-static constexpr size_type N()\n-Return the number of matrix rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:64\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bt_\bv\n-void usmtv(const field_type &alpha, const X &x, Y &y) const\n-y += alpha A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:291\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-void operator=(const T &newval)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:127\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\bc_\bc_\bo_\bl_\b,_\b _\b0_\b _\b>_\b:_\b:_\bc_\ba_\bl_\bc_\b__\br_\bh_\bs\n-static void calc_rhs(const TMatrix &, TVector &, TVector &, Trhs &, const K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:465\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bv\n-void umv(const X &x, Y &y) const\n-y += A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:206\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl_\b:_\b:_\bc_\ba_\bl_\bc_\b__\br_\bh_\bs\n-static void calc_rhs(const TMatrix &A, TVector &x, TVector &v, Trhs &b, const K\n-&w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:455\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-static void bsorf(const TMatrix &A, TVector &x, const TVector &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:513\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be\n-static constexpr size_type size()\n-Return the number of matrix rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\b0_\b _\b>_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n-static void dbjac(const TMatrix &, TVector &, TVector &, const TVector &, const\n-K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:610\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n-auto infinity_norm_real() const\n-Bastardized version of the infinity-norm / row-sum norm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:396\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2\n-auto frobenius_norm2() const\n-square of frobenius norm, need for block recursion\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:352\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-std::size_t size_type\n-Type used for sizes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:59\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n-auto infinity_norm() const\n-Bastardized version of the infinity-norm / row-sum norm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:375\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\b0_\b _\b>_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-static void bsorb(const TMatrix &, TVector &, TVector &, const TVector &, const\n-K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:606\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n-MultiTypeBlockMatrix & operator-=(const MultiTypeBlockMatrix &b)\n-Subtract the entries of another matrix from this one.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:183\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-auto operator[](const std::integral_constant< size_type, index > indexVariable)\n--> decltype(std::get< index >(*this))\n-Random-access operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:104\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n-static void dbjac(const TMatrix &A, TVector &x, TVector &v, const TVector &b,\n-const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:575\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bI_\b,_\b _\bc_\br_\bo_\bw_\b,_\b _\b0_\b _\b>_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-static void bsorf(const TMatrix &, TVector &, TVector &, const TVector &, const\n-K &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:602\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bt_\bv\n-void mtv(const X &x, Y &y) const\n-y = A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:251\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-static constexpr size_type M()\n-Return the number of matrix columns.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bv\n-void mmv(const X &x, Y &y) const\n-y -= A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:221\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bt_\bv\n-void umtv(const X &x, Y &y) const\n-y += A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:261\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-static void bsorb(const TMatrix &A, TVector &x, TVector &v, const TVector &b,\n-const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:547\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n-MultiTypeBlockMatrix & operator*=(const field_type &k)\n-vector space multiplication with scalar\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:141\n-_\bs_\bt_\bd\n-STL namespace.\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n+Helper functions for determining the vector/matrix block level.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br\n+void printvector(std::ostream &s, const V &v, std::string title, std::string\n+rowtext, int columns=1, int width=10, int precision=2)\n+Print an ISTL vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:89\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)\n-Send BlockVector to an output stream.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:590\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n-A Matrix class to support different block types.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bb_\bs_\bo_\br_\bb\n-static void bsorb(const M &A, X &x, const Y &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:461\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bb_\bs_\bo_\br_\bf\n-static void bsorf(const M &A, X &x, const Y &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:418\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n-static void dbjac(const M &A, X &x, const Y &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:504\n-_\bD_\bu_\bn_\be_\b:_\b:_\ba_\bl_\bg_\bm_\be_\bt_\ba_\b__\bi_\bt_\bs_\bt_\be_\bp_\bs_\b:_\b:_\bd_\bb_\bg_\bs\n-static void dbgs(const M &A, X &x, const Y &b, const K &w)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:378\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br\n-solver for MultiTypeBlockVector & MultiTypeBlockMatrix types\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:477\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b__\bS_\bo_\bl_\bv_\be_\br_\b__\bC_\bo_\bl\n-part of solvers for MultiTypeBlockVector & MultiTypeBlockMatrix types\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:449\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< B >::field_type field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:488\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A vector of blocks with memory management.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< B >::field_type field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:401\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+The type for the index access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:410\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n+Wrapper to use a range of ARPACK++ eigenvalue solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:245\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_\n+const unsigned int verbosity_level_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:958\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bC_\bo_\bu_\bn_\bt\n+unsigned int getIterationCount() const\n+Return the number of iterations in last application of an algorithm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:944\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bt_\bi_\bt_\bl_\be_\b_\n+const std::string title_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:966\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bR_\be_\ba_\bl\n+BlockVector::field_type Real\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:247\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\ba_\bx_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be\n+void computeSymMaxMagnitude(const Real &epsilon, BlockVector &x, Real &lambda)\n+const\n+Assume the matrix to be square, symmetric and perform IRLM to compute an\n+approximation lambda of its ...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:289\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\bi_\bn_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be\n+void computeSymMinMagnitude(const Real &epsilon, BlockVector &x, Real &lambda)\n+const\n+Assume the matrix to be square, symmetric and perform IRLM to compute an\n+approximation lambda of its ...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:391\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bm_\b_\n+const BCRSMatrix & m_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:954\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_\n+const unsigned int nIterationsMax_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:955\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bb_\bl_\ba_\bn_\bk_\b_\n+const std::string blank_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:967\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n+ArPackPlusPlus_Algorithms(const BCRSMatrix &m, const unsigned int\n+nIterationsMax=100000, const unsigned int verbosity_level=0)\n+Construct from required parameters.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:268\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bC_\bo_\bn_\bd_\b2\n+void computeSymCond2(const Real &epsilon, Real &cond_2) const\n+Assume the matrix to be square, symmetric and perform IRLM to compute an\n+approximation of its spectra...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:493\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n+unsigned int nIterations_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:963\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bM_\bi_\bn\n+void computeNonSymMin(const Real &epsilon, BlockVector &x, Real &sigma) const\n+Assume the matrix to be nonsymmetric and perform IRLM to compute an\n+approximation sigma of its smalle...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:721\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bC_\bo_\bn_\bd_\b2\n+void computeNonSymCond2(const Real &epsilon, Real &cond_2) const\n+Assume the matrix to be nonsymmetric and perform IRLM to compute an\n+approximation of its spectral con...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:830\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bM_\ba_\bx\n+void computeNonSymMax(const Real &epsilon, BlockVector &x, Real &sigma) const\n+Assume the matrix to be nonsymmetric and perform IRLM to compute an\n+approximation sigma of its larges...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:609\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00152.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00152.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: superlufunctions.hh File Reference\n+dune-istl: poweriteration.hh File Reference\n \n \n \n \n \n \n \n@@ -65,48 +65,55 @@\n \n \n \n \n \n \n \n
    \n
    \n-Macros
    \n-
    superlufunctions.hh File Reference
    \n+Classes |\n+Namespaces
    \n+
    poweriteration.hh File Reference
    \n \n
    \n-
    #include "supermatrix.h"
    \n-#include "slu_util.h"
    \n+
    #include <cstddef>
    \n+#include <cmath>
    \n+#include <type_traits>
    \n+#include <iostream>
    \n+#include <limits>
    \n+#include <ios>
    \n+#include <iomanip>
    \n+#include <memory>
    \n+#include <string>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/istl/blocklevel.hh>
    \n+#include <dune/istl/operators.hh>
    \n+#include <dune/istl/solvercategory.hh>
    \n+#include <dune/istl/solvertype.hh>
    \n+#include <dune/istl/istlexception.hh>
    \n+#include <dune/istl/io.hh>
    \n+#include <dune/istl/solvers.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n-\n-\n-\n+\n+\n+\n+\n+

    \n-Macros

    #define int_t   SUPERLU_INT_TYPE
     

    \n+Classes

    class  Dune::PowerIteration_Algorithms< BCRSMatrix, BlockVector >
     Iterative eigenvalue algorithms based on power iteration. More...
     
    \n+\n+\n+\n

    \n+Namespaces

    namespace  Dune
     
    \n-

    Macro Definition Documentation

    \n-\n-

    ◆ int_t

    \n-\n-
    \n-
    \n- \n- \n- \n- \n-
    #define int_t   SUPERLU_INT_TYPE
    \n-
    \n-\n-
    \n-
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,19 +1,36 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bM_\ba_\bc_\br_\bo_\bs\n-superlufunctions.hh File Reference\n-#include \"supermatrix.h\"\n-#include \"slu_util.h\"\n+ * _\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+poweriteration.hh File Reference\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-M\bMa\bac\bcr\bro\bos\bs\n-#define\u00a0 _\bi_\bn_\bt_\b__\bt\u00a0\u00a0\u00a0SUPERLU_INT_TYPE\n+C\bCl\bla\bas\bss\bse\bes\bs\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b _\b>\n+\u00a0 Iterative eigenvalue algorithms based on power iteration. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n+namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-*\b**\b**\b**\b**\b* M\bMa\bac\bcr\bro\bo D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0i\bin\bnt\bt_\b_t\bt *\b**\b**\b**\b**\b*\n-#define int_t\u00a0\u00a0\u00a0SUPERLU_INT_TYPE\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00152_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00152_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: superlufunctions.hh Source File\n+dune-istl: poweriteration.hh Source File\n \n \n \n \n \n \n \n@@ -70,139 +70,875 @@\n
    \n \n \n \n \n \n \n
    \n-
    superlufunctions.hh
    \n+
    poweriteration.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_SUPERLUFUNCTIONS_HH
    \n-
    6#define DUNE_ISTL_SUPERLUFUNCTIONS_HH
    \n-
    7#if HAVE_SUPERLU
    \n-
    8
    \n-
    9
    \n-
    10#define int_t SUPERLU_INT_TYPE
    \n-
    11#include "supermatrix.h"
    \n-
    12#include "slu_util.h"
    \n-
    13#undef int_t
    \n-
    14
    \n-
    15#if __has_include("slu_sdefs.h")
    \n-
    16extern "C" {
    \n-
    17 extern void
    \n-
    18 sgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
    \n-
    19 char *, float *, float *, SuperMatrix *, SuperMatrix *,
    \n-
    20 void *, int, SuperMatrix *, SuperMatrix *,
    \n-
    21 float *, float *, float *, float *,
    \n-
    22 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);
    \n-
    23
    \n-
    24 extern void
    \n-
    25 sCreate_Dense_Matrix(SuperMatrix *, int, int, float *, int,
    \n-
    26 Stype_t, Dtype_t, Mtype_t);
    \n-
    27 extern void
    \n-
    28 sCreate_CompCol_Matrix(SuperMatrix *, int, int, int, float *,
    \n-
    29 int *, int *, Stype_t, Dtype_t, Mtype_t);
    \n-
    30 extern int sQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
    \n-
    31
    \n-
    32 extern void sPrint_CompCol_Matrix(char *, SuperMatrix *);
    \n-
    33}
    \n-
    34#endif
    \n-
    35
    \n-
    36#if __has_include("slu_ddefs.h")
    \n-
    37extern "C" {
    \n-
    38 extern void
    \n-
    39 dgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
    \n-
    40 char *, double *, double *, SuperMatrix *, SuperMatrix *,
    \n-
    41 void *, int, SuperMatrix *, SuperMatrix *,
    \n-
    42 double *, double *, double *, double *,
    \n-
    43 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);
    \n-
    44
    \n-
    45 extern void
    \n-
    46 dCreate_CompCol_Matrix(SuperMatrix *, int, int, int, double *,
    \n-
    47 int *, int *, Stype_t, Dtype_t, Mtype_t);
    \n-
    48
    \n-
    49 extern void
    \n-
    50 dCreate_Dense_Matrix(SuperMatrix *, int, int, double *, int,
    \n-
    51 Stype_t, Dtype_t, Mtype_t);
    \n+
    5#ifndef DUNE_ISTL_EIGENVALUE_POWERITERATION_HH
    \n+
    6#define DUNE_ISTL_EIGENVALUE_POWERITERATION_HH
    \n+
    7
    \n+
    8#include <cstddef> // provides std::size_t
    \n+
    9#include <cmath> // provides std::sqrt, std::abs
    \n+
    10
    \n+
    11#include <type_traits> // provides std::is_same
    \n+
    12#include <iostream> // provides std::cout, std::endl
    \n+
    13#include <limits> // provides std::numeric_limits
    \n+
    14#include <ios> // provides std::left, std::ios::left
    \n+
    15#include <iomanip> // provides std::setw, std::resetiosflags
    \n+
    16#include <memory> // provides std::unique_ptr
    \n+
    17#include <string> // provides std::string
    \n+
    18
    \n+
    19#include <dune/common/exceptions.hh> // provides DUNE_THROW(...)
    \n+
    20
    \n+
    21#include <dune/istl/blocklevel.hh> // provides Dune::blockLevel
    \n+
    22#include <dune/istl/operators.hh> // provides Dune::LinearOperator
    \n+
    23#include <dune/istl/solvercategory.hh> // provides Dune::SolverCategory::sequential
    \n+
    24#include <dune/istl/solvertype.hh> // provides Dune::IsDirectSolver
    \n+
    25#include <dune/istl/operators.hh> // provides Dune::MatrixAdapter
    \n+
    26#include <dune/istl/istlexception.hh> // provides Dune::ISTLError
    \n+
    27#include <dune/istl/io.hh> // provides Dune::printvector(...)
    \n+
    28#include <dune/istl/solvers.hh> // provides Dune::InverseOperatorResult
    \n+
    29
    \n+
    30namespace Dune
    \n+
    31{
    \n+
    32
    \n+
    37 namespace Impl {
    \n+
    45 template <class X, class Y = X>
    \n+
    46 class ScalingLinearOperator : public Dune::LinearOperator<X,Y>
    \n+
    47 {
    \n+
    48 public:
    \n+
    49 typedef X domain_type;
    \n+
    50 typedef Y range_type;
    \n+
    51 typedef typename X::field_type field_type;
    \n
    52
    \n-
    53 extern int dQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
    \n-
    54
    \n-
    55 extern void dPrint_CompCol_Matrix(char *, SuperMatrix *);
    \n-
    56}
    \n-
    57#endif
    \n+
    53 ScalingLinearOperator (field_type immutable_scaling,
    \n+
    54 const field_type& mutable_scaling)
    \n+
    55 : immutable_scaling_(immutable_scaling),
    \n+
    56 mutable_scaling_(mutable_scaling)
    \n+
    57 {}
    \n
    58
    \n-
    59#if __has_include("slu_cdefs.h")
    \n-
    60#ifndef SUPERLU_TYPEDEF_COMPLEX
    \n-
    61// For now let's keep backwards compatible and let
    \n-
    62// complex be a typedef of doublecomplex
    \n-
    63#define SUPERLU_TYPEDEF_COMPLEX
    \n-
    64#endif
    \n-
    65#include "slu_scomplex.h"
    \n-
    66
    \n-
    67extern "C" {
    \n-
    68 extern void
    \n-
    69 cgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
    \n-
    70 char *, float *, float *, SuperMatrix *, SuperMatrix *,
    \n-
    71 void *, int, SuperMatrix *, SuperMatrix *,
    \n-
    72 float *, float *, float *, float *,
    \n-
    73 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);
    \n-
    74
    \n-
    75
    \n-
    76 extern void
    \n-
    77 cCreate_Dense_Matrix(SuperMatrix *, int, int, ::complex *, int,
    \n-
    78 Stype_t, Dtype_t, Mtype_t);
    \n-
    79
    \n-
    80
    \n-
    81 extern void
    \n-
    82 cCreate_CompCol_Matrix(SuperMatrix *, int, int, int, ::complex *,
    \n-
    83 int *, int *, Stype_t, Dtype_t, Mtype_t);
    \n-
    84
    \n-
    85 extern int cQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
    \n-
    86
    \n-
    87 extern void cPrint_CompCol_Matrix(char *, SuperMatrix *);
    \n-
    88}
    \n-
    89#endif
    \n-
    90
    \n-
    91#if __has_include("slu_zdefs.h")
    \n-
    92#include "slu_dcomplex.h"
    \n-
    93extern "C" {
    \n-
    94 extern void
    \n-
    95 zgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
    \n-
    96 char *, double *, double *, SuperMatrix *, SuperMatrix *,
    \n-
    97 void *, int, SuperMatrix *, SuperMatrix *,
    \n-
    98 double *, double *, double *, double *,
    \n-
    99 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);
    \n-
    100
    \n+
    59 virtual void apply (const X& x, Y& y) const
    \n+
    60 {
    \n+
    61 y = x;
    \n+
    62 y *= immutable_scaling_*mutable_scaling_;
    \n+
    63 }
    \n+
    64
    \n+
    65 virtual void applyscaleadd (field_type alpha, const X& x, Y& y) const
    \n+
    66 {
    \n+
    67 X temp(x);
    \n+
    68 temp *= immutable_scaling_*mutable_scaling_;
    \n+
    69 y.axpy(alpha,temp);
    \n+
    70 }
    \n+
    71
    \n+\n+
    74 {
    \n+\n+
    76 }
    \n+
    77
    \n+
    78 protected:
    \n+
    79 const field_type immutable_scaling_;
    \n+
    80 const field_type& mutable_scaling_;
    \n+
    81 };
    \n+
    82
    \n+
    83
    \n+
    92 template <class OP1, class OP2>
    \n+
    93 class LinearOperatorSum
    \n+
    94 : public Dune::LinearOperator<typename OP1::domain_type,
    \n+
    95 typename OP1::range_type>
    \n+
    96 {
    \n+
    97 public:
    \n+
    98 typedef typename OP1::domain_type domain_type;
    \n+
    99 typedef typename OP1::range_type range_type;
    \n+
    100 typedef typename domain_type::field_type field_type;
    \n
    101
    \n-
    102 extern void
    \n-
    103 zCreate_CompCol_Matrix(SuperMatrix *, int, int, int, doublecomplex *,
    \n-
    104 int *, int *, Stype_t, Dtype_t, Mtype_t);
    \n-
    105
    \n-
    106 extern void
    \n-
    107 zCreate_Dense_Matrix(SuperMatrix *, int, int, doublecomplex *, int,
    \n-
    108 Stype_t, Dtype_t, Mtype_t);
    \n-
    109
    \n-
    110 extern int zQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
    \n-
    111
    \n-
    112 extern void zPrint_CompCol_Matrix(char *, SuperMatrix *);
    \n-
    113}
    \n-
    114#endif
    \n-
    115
    \n+
    102 LinearOperatorSum (const OP1& op1, const OP2& op2)
    \n+
    103 : op1_(op1), op2_(op2)
    \n+
    104 {
    \n+
    105 static_assert(std::is_same<typename OP2::domain_type,domain_type>::value,
    \n+
    106 "Domain type of both operators doesn't match!");
    \n+
    107 static_assert(std::is_same<typename OP2::range_type,range_type>::value,
    \n+
    108 "Range type of both operators doesn't match!");
    \n+
    109 }
    \n+
    110
    \n+
    111 virtual void apply (const domain_type& x, range_type& y) const
    \n+
    112 {
    \n+
    113 op1_.apply(x,y);
    \n+
    114 op2_.applyscaleadd(1.0,x,y);
    \n+
    115 }
    \n
    116
    \n-
    117#endif
    \n-
    118#endif
    \n+
    117 virtual void applyscaleadd (field_type alpha,
    \n+
    118 const domain_type& x, range_type& y) const
    \n+
    119 {
    \n+
    120 range_type temp(y);
    \n+
    121 op1_.apply(x,temp);
    \n+
    122 op2_.applyscaleadd(1.0,x,temp);
    \n+
    123 y.axpy(alpha,temp);
    \n+
    124 }
    \n+
    125
    \n+
    127 virtual SolverCategory::Category category() const
    \n+
    128 {
    \n+\n+
    130 }
    \n+
    131
    \n+
    132 protected:
    \n+
    133 const OP1& op1_;
    \n+
    134 const OP2& op2_;
    \n+
    135 };
    \n+
    136 } // end namespace Impl
    \n+
    137
    \n+
    174 template <typename BCRSMatrix, typename BlockVector>
    \n+
    \n+\n+
    176 {
    \n+
    177 protected:
    \n+
    178 // Type definitions for type of iteration operator (m_ - mu_*I)
    \n+\n+\n+
    181 typedef Impl::ScalingLinearOperator<BlockVector> ScalingOperator;
    \n+
    182 typedef Impl::LinearOperatorSum<MatrixOperator,ScalingOperator> OperatorSum;
    \n+
    183
    \n+
    184 public:
    \n+\n+
    187
    \n+\n+
    190
    \n+
    191 public:
    \n+
    \n+\n+
    207 const unsigned int nIterationsMax = 1000,
    \n+
    208 const unsigned int verbosity_level = 0)
    \n+
    209 : m_(m), nIterationsMax_(nIterationsMax),
    \n+
    210 verbosity_level_(verbosity_level),
    \n+
    211 mu_(0.0),
    \n+\n+
    213 scalingOperator_(-1.0,mu_),
    \n+\n+
    215 nIterations_(0),
    \n+
    216 title_(" PowerIteration_Algorithms: "),
    \n+
    217 blank_(title_.length(),' ')
    \n+
    218 {
    \n+
    219 // assert that BCRSMatrix type has blocklevel 2
    \n+
    220 static_assert
    \n+
    221 (blockLevel<BCRSMatrix>() == 2,
    \n+
    222 "Only BCRSMatrices with blocklevel 2 are supported.");
    \n+
    223
    \n+
    224 // assert that BCRSMatrix type has square blocks
    \n+
    225 static_assert
    \n+
    226 (BCRSMatrix::block_type::rows == BCRSMatrix::block_type::cols,
    \n+
    227 "Only BCRSMatrices with square blocks are supported.");
    \n+
    228
    \n+
    229 // assert that m_ is square
    \n+
    230 const int nrows = m_.M() * BCRSMatrix::block_type::rows;
    \n+
    231 const int ncols = m_.N() * BCRSMatrix::block_type::cols;
    \n+
    232 if (nrows != ncols)
    \n+
    233 DUNE_THROW(Dune::ISTLError,"Matrix is not square ("
    \n+
    234 << nrows << "x" << ncols << ").");
    \n+
    235 }
    \n+
    \n+
    236
    \n+\n+
    241
    \n+\n+\n+
    247
    \n+
    \n+
    260 inline void applyPowerIteration (const Real& epsilon,
    \n+
    261 BlockVector& x, Real& lambda) const
    \n+
    262 {
    \n+
    263 // print verbosity information
    \n+
    264 if (verbosity_level_ > 0)
    \n+
    265 std::cout << title_
    \n+
    266 << "Performing power iteration approximating "
    \n+
    267 << "the dominant eigenvalue." << std::endl;
    \n+
    268
    \n+
    269 // allocate memory for auxiliary variables
    \n+
    270 BlockVector y(x);
    \n+
    271 BlockVector temp(x);
    \n+
    272
    \n+
    273 // perform power iteration
    \n+
    274 x *= (1.0 / x.two_norm());
    \n+
    275 m_.mv(x,y);
    \n+
    276 Real r_norm = std::numeric_limits<Real>::max();
    \n+
    277 nIterations_ = 0;
    \n+
    278 while (r_norm > epsilon)
    \n+
    279 {
    \n+
    280 // update and check number of iterations
    \n+\n+
    282 DUNE_THROW(Dune::ISTLError,"Power iteration did not converge "
    \n+
    283 << "in " << nIterationsMax_ << " iterations "
    \n+
    284 << "(\u2551residual\u2551_2 = " << r_norm << ", epsilon = "
    \n+
    285 << epsilon << ").");
    \n+
    286
    \n+
    287 // do one iteration of the power iteration algorithm
    \n+
    288 // (use that y = m_ * x)
    \n+
    289 x = y;
    \n+
    290 x *= (1.0 / y.two_norm());
    \n+
    291
    \n+
    292 // get approximated eigenvalue lambda via the Rayleigh quotient
    \n+
    293 m_.mv(x,y);
    \n+
    294 lambda = x * y;
    \n+
    295
    \n+
    296 // get norm of residual (use that y = m_ * x)
    \n+
    297 temp = y;
    \n+
    298 temp.axpy(-lambda,x);
    \n+
    299 r_norm = temp.two_norm();
    \n+
    300
    \n+
    301 // print verbosity information
    \n+
    302 if (verbosity_level_ > 1)
    \n+
    303 std::cout << blank_ << std::left
    \n+
    304 << "iteration " << std::setw(3) << nIterations_
    \n+
    305 << " (\u2551residual\u2551_2 = " << std::setw(11) << r_norm
    \n+
    306 << "): \u03bb = " << lambda << std::endl
    \n+
    307 << std::resetiosflags(std::ios::left);
    \n+
    308 }
    \n+
    309
    \n+
    310 // print verbosity information
    \n+
    311 if (verbosity_level_ > 0)
    \n+
    312 {
    \n+
    313 std::cout << blank_ << "Result ("
    \n+
    314 << "#iterations = " << nIterations_ << ", "
    \n+
    315 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n+
    316 << "\u03bb = " << lambda << std::endl;
    \n+
    317 if (verbosity_level_ > 2)
    \n+
    318 {
    \n+
    319 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n+
    320 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n+
    321 }
    \n+
    322 }
    \n+
    323 }
    \n+
    \n+
    324
    \n+
    353 template <typename ISTLLinearSolver,
    \n+
    354 bool avoidLinSolverCrime = false>
    \n+
    \n+
    355 inline void applyInverseIteration (const Real& epsilon,
    \n+
    356 ISTLLinearSolver& solver,
    \n+
    357 BlockVector& x, Real& lambda) const
    \n+
    358 {
    \n+
    359 constexpr Real gamma = 0.0;
    \n+
    360 applyInverseIteration(gamma,epsilon,solver,x,lambda);
    \n+
    361 }
    \n+
    \n+
    362
    \n+
    392 template <typename ISTLLinearSolver,
    \n+
    393 bool avoidLinSolverCrime = false>
    \n+
    \n+
    394 inline void applyInverseIteration (const Real& gamma,
    \n+
    395 const Real& epsilon,
    \n+
    396 ISTLLinearSolver& solver,
    \n+
    397 BlockVector& x, Real& lambda) const
    \n+
    398 {
    \n+
    399 // print verbosity information
    \n+
    400 if (verbosity_level_ > 0)
    \n+
    401 {
    \n+
    402 std::cout << title_;
    \n+
    403 if (gamma == 0.0)
    \n+
    404 std::cout << "Performing inverse iteration approximating "
    \n+
    405 << "the least dominant eigenvalue." << std::endl;
    \n+
    406 else
    \n+
    407 std::cout << "Performing inverse iteration with shift "
    \n+
    408 << "gamma = " << gamma << " approximating the "
    \n+
    409 << "eigenvalue closest to gamma." << std::endl;
    \n+
    410 }
    \n+
    411
    \n+
    412 // initialize iteration operator,
    \n+
    413 // initialize iteration matrix when needed
    \n+
    414 updateShiftMu(gamma,solver);
    \n+
    415
    \n+
    416 // allocate memory for linear solver statistics
    \n+
    417 Dune::InverseOperatorResult solver_statistics;
    \n+
    418
    \n+
    419 // allocate memory for auxiliary variables
    \n+
    420 BlockVector y(x);
    \n+
    421 Real y_norm;
    \n+
    422 BlockVector temp(x);
    \n+
    423
    \n+
    424 // perform inverse iteration with shift
    \n+
    425 x *= (1.0 / x.two_norm());
    \n+
    426 Real r_norm = std::numeric_limits<Real>::max();
    \n+
    427 nIterations_ = 0;
    \n+
    428 while (r_norm > epsilon)
    \n+
    429 {
    \n+
    430 // update and check number of iterations
    \n+\n+
    432 DUNE_THROW(Dune::ISTLError,"Inverse iteration "
    \n+
    433 << (gamma != 0.0 ? "with shift " : "") << "did not "
    \n+
    434 << "converge in " << nIterationsMax_ << " iterations "
    \n+
    435 << "(\u2551residual\u2551_2 = " << r_norm << ", epsilon = "
    \n+
    436 << epsilon << ").");
    \n+
    437
    \n+
    438 // do one iteration of the inverse iteration with shift algorithm,
    \n+
    439 // part 1: solve (m_ - gamma*I) * y = x for y
    \n+
    440 // (protect x from being changed)
    \n+
    441 temp = x;
    \n+
    442 solver.apply(y,temp,solver_statistics);
    \n+
    443
    \n+
    444 // get norm of y
    \n+
    445 y_norm = y.two_norm();
    \n+
    446
    \n+
    447 // compile time switch between accuracy and efficiency
    \n+
    448 if (avoidLinSolverCrime)
    \n+
    449 {
    \n+
    450 // get approximated eigenvalue lambda via the Rayleigh quotient
    \n+
    451 // (use that x_new = y / y_norm)
    \n+
    452 m_.mv(y,temp);
    \n+
    453 lambda = (y * temp) / (y_norm * y_norm);
    \n+
    454
    \n+
    455 // get norm of residual
    \n+
    456 // (use that x_new = y / y_norm, additionally use that temp = m_ * y)
    \n+
    457 temp.axpy(-lambda,y);
    \n+
    458 r_norm = temp.two_norm() / y_norm;
    \n+
    459 }
    \n+
    460 else
    \n+
    461 {
    \n+
    462 // get approximated eigenvalue lambda via the Rayleigh quotient
    \n+
    463 // (use that x_new = y / y_norm and use that (m_ - gamma*I) * y = x)
    \n+
    464 lambda = gamma + (y * x) / (y_norm * y_norm);
    \n+
    465
    \n+
    466 // get norm of residual
    \n+
    467 // (use that x_new = y / y_norm and use that (m_ - gamma*I) * y = x)
    \n+
    468 temp = x; temp.axpy(gamma-lambda,y);
    \n+
    469 r_norm = temp.two_norm() / y_norm;
    \n+
    470 }
    \n+
    471
    \n+
    472 // do one iteration of the inverse iteration with shift algorithm,
    \n+
    473 // part 2: update x
    \n+
    474 x = y;
    \n+
    475 x *= (1.0 / y_norm);
    \n+
    476
    \n+
    477 // print verbosity information
    \n+
    478 if (verbosity_level_ > 1)
    \n+
    479 std::cout << blank_ << std::left
    \n+
    480 << "iteration " << std::setw(3) << nIterations_
    \n+
    481 << " (\u2551residual\u2551_2 = " << std::setw(11) << r_norm
    \n+
    482 << "): \u03bb = " << lambda << std::endl
    \n+
    483 << std::resetiosflags(std::ios::left);
    \n+
    484 }
    \n+
    485
    \n+
    486 // print verbosity information
    \n+
    487 if (verbosity_level_ > 0)
    \n+
    488 {
    \n+
    489 std::cout << blank_ << "Result ("
    \n+
    490 << "#iterations = " << nIterations_ << ", "
    \n+
    491 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n+
    492 << "\u03bb = " << lambda << std::endl;
    \n+
    493 if (verbosity_level_ > 2)
    \n+
    494 {
    \n+
    495 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n+
    496 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n+
    497 }
    \n+
    498 }
    \n+
    499 }
    \n+
    \n+
    500
    \n+
    531 template <typename ISTLLinearSolver,
    \n+
    532 bool avoidLinSolverCrime = false>
    \n+
    \n+
    533 inline void applyRayleighQuotientIteration (const Real& epsilon,
    \n+
    534 ISTLLinearSolver& solver,
    \n+
    535 BlockVector& x, Real& lambda) const
    \n+
    536 {
    \n+
    537 // print verbosity information
    \n+
    538 if (verbosity_level_ > 0)
    \n+
    539 std::cout << title_
    \n+
    540 << "Performing Rayleigh quotient iteration for "
    \n+
    541 << "estimated eigenvalue " << lambda << "." << std::endl;
    \n+
    542
    \n+
    543 // allocate memory for linear solver statistics
    \n+
    544 Dune::InverseOperatorResult solver_statistics;
    \n+
    545
    \n+
    546 // allocate memory for auxiliary variables
    \n+
    547 BlockVector y(x);
    \n+
    548 Real y_norm;
    \n+
    549 Real lambda_update;
    \n+
    550 BlockVector temp(x);
    \n+
    551
    \n+
    552 // perform Rayleigh quotient iteration
    \n+
    553 x *= (1.0 / x.two_norm());
    \n+
    554 Real r_norm = std::numeric_limits<Real>::max();
    \n+
    555 nIterations_ = 0;
    \n+
    556 while (r_norm > epsilon)
    \n+
    557 {
    \n+
    558 // update and check number of iterations
    \n+\n+
    560 DUNE_THROW(Dune::ISTLError,"Rayleigh quotient iteration did not "
    \n+
    561 << "converge in " << nIterationsMax_ << " iterations "
    \n+
    562 << "(\u2551residual\u2551_2 = " << r_norm << ", epsilon = "
    \n+
    563 << epsilon << ").");
    \n+
    564
    \n+
    565 // update iteration operator,
    \n+
    566 // update iteration matrix when needed
    \n+
    567 updateShiftMu(lambda,solver);
    \n+
    568
    \n+
    569 // do one iteration of the Rayleigh quotient iteration algorithm,
    \n+
    570 // part 1: solve (m_ - lambda*I) * y = x for y
    \n+
    571 // (protect x from being changed)
    \n+
    572 temp = x;
    \n+
    573 solver.apply(y,temp,solver_statistics);
    \n+
    574
    \n+
    575 // get norm of y
    \n+
    576 y_norm = y.two_norm();
    \n+
    577
    \n+
    578 // compile time switch between accuracy and efficiency
    \n+
    579 if (avoidLinSolverCrime)
    \n+
    580 {
    \n+
    581 // get approximated eigenvalue lambda via the Rayleigh quotient
    \n+
    582 // (use that x_new = y / y_norm)
    \n+
    583 m_.mv(y,temp);
    \n+
    584 lambda = (y * temp) / (y_norm * y_norm);
    \n+
    585
    \n+
    586 // get norm of residual
    \n+
    587 // (use that x_new = y / y_norm, additionally use that temp = m_ * y)
    \n+
    588 temp.axpy(-lambda,y);
    \n+
    589 r_norm = temp.two_norm() / y_norm;
    \n+
    590 }
    \n+
    591 else
    \n+
    592 {
    \n+
    593 // get approximated eigenvalue lambda via the Rayleigh quotient
    \n+
    594 // (use that x_new = y / y_norm and use that (m_ - lambda_old*I) * y = x)
    \n+
    595 lambda_update = (y * x) / (y_norm * y_norm);
    \n+
    596 lambda += lambda_update;
    \n+
    597
    \n+
    598 // get norm of residual
    \n+
    599 // (use that x_new = y / y_norm and use that (m_ - lambda_old*I) * y = x)
    \n+
    600 temp = x; temp.axpy(-lambda_update,y);
    \n+
    601 r_norm = temp.two_norm() / y_norm;
    \n+
    602 }
    \n+
    603
    \n+
    604 // do one iteration of the Rayleigh quotient iteration algorithm,
    \n+
    605 // part 2: update x
    \n+
    606 x = y;
    \n+
    607 x *= (1.0 / y_norm);
    \n+
    608
    \n+
    609 // print verbosity information
    \n+
    610 if (verbosity_level_ > 1)
    \n+
    611 std::cout << blank_ << std::left
    \n+
    612 << "iteration " << std::setw(3) << nIterations_
    \n+
    613 << " (\u2551residual\u2551_2 = " << std::setw(11) << r_norm
    \n+
    614 << "): \u03bb = " << lambda << std::endl
    \n+
    615 << std::resetiosflags(std::ios::left);
    \n+
    616 }
    \n+
    617
    \n+
    618 // print verbosity information
    \n+
    619 if (verbosity_level_ > 0)
    \n+
    620 {
    \n+
    621 std::cout << blank_ << "Result ("
    \n+
    622 << "#iterations = " << nIterations_ << ", "
    \n+
    623 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n+
    624 << "\u03bb = " << lambda << std::endl;
    \n+
    625 if (verbosity_level_ > 2)
    \n+
    626 {
    \n+
    627 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n+
    628 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n+
    629 }
    \n+
    630 }
    \n+
    631 }
    \n+
    \n+
    632
    \n+
    689 template <typename ISTLLinearSolver,
    \n+
    690 bool avoidLinSolverCrime = false>
    \n+
    \n+
    691 inline void applyTLIMEIteration (const Real& gamma, const Real& eta,
    \n+
    692 const Real& epsilon,
    \n+
    693 ISTLLinearSolver& solver,
    \n+
    694 const Real& delta, const std::size_t& m,
    \n+
    695 bool& extrnl,
    \n+
    696 BlockVector& x, Real& lambda) const
    \n+
    697 {
    \n+
    698 // use same variable names as in [Szyld, 1988]
    \n+
    699 BlockVector& x_s = x;
    \n+
    700 Real& mu_s = lambda;
    \n+
    701
    \n+
    702 // print verbosity information
    \n+
    703 if (verbosity_level_ > 0)
    \n+
    704 std::cout << title_
    \n+
    705 << "Performing TLIME iteration for "
    \n+
    706 << "estimated eigenvalue in the "
    \n+
    707 << "interval (" << gamma - eta << ","
    \n+
    708 << gamma + eta << ")." << std::endl;
    \n+
    709
    \n+
    710 // allocate memory for linear solver statistics
    \n+
    711 Dune::InverseOperatorResult solver_statistics;
    \n+
    712
    \n+
    713 // allocate memory for auxiliary variables
    \n+
    714 bool doRQI;
    \n+
    715 Real mu;
    \n+
    716 BlockVector y(x_s);
    \n+
    717 Real omega;
    \n+
    718 Real mu_s_old;
    \n+
    719 Real mu_s_update;
    \n+
    720 BlockVector temp(x_s);
    \n+
    721 Real q_norm, r_norm;
    \n+
    722
    \n+
    723 // perform TLIME iteration
    \n+
    724 x_s *= (1.0 / x_s.two_norm());
    \n+
    725 extrnl = true;
    \n+
    726 doRQI = false;
    \n+
    727 r_norm = std::numeric_limits<Real>::max();
    \n+
    728 nIterations_ = 0;
    \n+
    729 while (r_norm > epsilon)
    \n+
    730 {
    \n+
    731 // update and check number of iterations
    \n+\n+
    733 DUNE_THROW(Dune::ISTLError,"TLIME iteration did not "
    \n+
    734 << "converge in " << nIterationsMax_
    \n+
    735 << " iterations (\u2551residual\u2551_2 = " << r_norm
    \n+
    736 << ", epsilon = " << epsilon << ").");
    \n+
    737
    \n+
    738 // set shift for next iteration according to inverse iteration
    \n+
    739 // with shift (II) resp. Rayleigh quotient iteration (RQI)
    \n+
    740 if (doRQI)
    \n+
    741 mu = mu_s;
    \n+
    742 else
    \n+
    743 mu = gamma;
    \n+
    744
    \n+
    745 // update II/RQI iteration operator,
    \n+
    746 // update II/RQI iteration matrix when needed
    \n+
    747 updateShiftMu(mu,solver);
    \n+
    748
    \n+
    749 // do one iteration of the II/RQI algorithm,
    \n+
    750 // part 1: solve (m_ - mu*I) * y = x for y
    \n+
    751 temp = x_s;
    \n+
    752 solver.apply(y,temp,solver_statistics);
    \n+
    753
    \n+
    754 // do one iteration of the II/RQI algorithm,
    \n+
    755 // part 2: compute omega
    \n+
    756 omega = (1.0 / y.two_norm());
    \n+
    757
    \n+
    758 // backup the old Rayleigh quotient
    \n+
    759 mu_s_old = mu_s;
    \n+
    760
    \n+
    761 // compile time switch between accuracy and efficiency
    \n+
    762 if (avoidLinSolverCrime)
    \n+
    763 {
    \n+
    764 // update the Rayleigh quotient mu_s, i.e. the approximated eigenvalue
    \n+
    765 // (use that x_new = y * omega)
    \n+
    766 m_.mv(y,temp);
    \n+
    767 mu_s = (y * temp) * (omega * omega);
    \n+
    768
    \n+
    769 // get norm of "the residual with respect to the shift used by II",
    \n+
    770 // use normal representation of q
    \n+
    771 // (use that x_new = y * omega, use that temp = m_ * y)
    \n+
    772 temp.axpy(-gamma,y);
    \n+
    773 q_norm = temp.two_norm() * omega;
    \n+
    774
    \n+
    775 // get norm of "the residual with respect to the Rayleigh quotient"
    \n+
    776 r_norm = q_norm*q_norm - (gamma-mu_s)*(gamma-mu_s);
    \n+
    777 // prevent that truncation errors invalidate the norm
    \n+
    778 // (we don't want to calculate sqrt of a negative number)
    \n+
    779 if (r_norm >= 0)
    \n+
    780 {
    \n+
    781 // use relation between the norms of r and q for efficiency
    \n+
    782 r_norm = std::sqrt(r_norm);
    \n+
    783 }
    \n+
    784 else
    \n+
    785 {
    \n+
    786 // use relation between r and q
    \n+
    787 // (use that x_new = y * omega, use that temp = (m_ - gamma*I) * y = q / omega)
    \n+
    788 temp.axpy(gamma-mu_s,y);
    \n+
    789 r_norm = temp.two_norm() * omega;
    \n+
    790 }
    \n+
    791 }
    \n+
    792 else
    \n+
    793 {
    \n+
    794 // update the Rayleigh quotient mu_s, i.e. the approximated eigenvalue
    \n+
    795 if (!doRQI)
    \n+
    796 {
    \n+
    797 // (use that x_new = y * omega, additionally use that (m_ - gamma*I) * y = x_s)
    \n+
    798 mu_s = gamma + (y * x_s) * (omega * omega);
    \n+
    799 }
    \n+
    800 else
    \n+
    801 {
    \n+
    802 // (use that x_new = y * omega, additionally use that (m_ - mu_s_old*I) * y = x_s)
    \n+
    803 mu_s_update = (y * x_s) * (omega * omega);
    \n+
    804 mu_s += mu_s_update;
    \n+
    805 }
    \n+
    806
    \n+
    807 // get norm of "the residual with respect to the shift used by II"
    \n+
    808 if (!doRQI)
    \n+
    809 {
    \n+
    810 // use special representation of q in the II case
    \n+
    811 // (use that x_new = y * omega, additionally use that (m_ - gamma*I) * y = x_s)
    \n+
    812 q_norm = omega;
    \n+
    813 }
    \n+
    814 else
    \n+
    815 {
    \n+
    816 // use special representation of q in the RQI case
    \n+
    817 // (use that x_new = y * omega, additionally use that (m_ - mu_s_old*I) * y = x_s)
    \n+
    818 temp = x_s; temp.axpy(mu_s-gamma,y);
    \n+
    819 q_norm = temp.two_norm() * omega;
    \n+
    820 }
    \n+
    821
    \n+
    822 // get norm of "the residual with respect to the Rayleigh quotient"
    \n+
    823 // don't use efficient relation between the norms of r and q, as
    \n+
    824 // this relation seems to yield a less accurate r_norm in the case
    \n+
    825 // where linear solver crime is admitted
    \n+
    826 if (!doRQI)
    \n+
    827 {
    \n+
    828 // (use that x_new = y * omega and use that (m_ - gamma*I) * y = x_s)
    \n+
    829 temp = x_s; temp.axpy(gamma-lambda,y);
    \n+
    830 r_norm = temp.two_norm() * omega;
    \n+
    831 }
    \n+
    832 else
    \n+
    833 {
    \n+
    834 // (use that x_new = y * omega and use that (m_ - mu_s_old*I) * y = x_s)
    \n+
    835 temp = x_s; temp.axpy(-mu_s_update,y);
    \n+
    836 r_norm = temp.two_norm() * omega;
    \n+
    837 }
    \n+
    838 }
    \n+
    839
    \n+
    840 // do one iteration of the II/RQI algorithm,
    \n+
    841 // part 3: update x
    \n+
    842 x_s = y; x_s *= omega;
    \n+
    843
    \n+
    844 // // for relative residual norm mode, scale with mu_s^{-1}
    \n+
    845 // r_norm /= std::abs(mu_s);
    \n+
    846
    \n+
    847 // print verbosity information
    \n+
    848 if (verbosity_level_ > 1)
    \n+
    849 std::cout << blank_ << "iteration "
    \n+
    850 << std::left << std::setw(3) << nIterations_
    \n+
    851 << " (" << (doRQI ? "RQI," : "II, ")
    \n+
    852 << " " << (doRQI ? "\u2014>" : " ") << " "
    \n+
    853 << "\u2551r\u2551_2 = " << std::setw(11) << r_norm
    \n+
    854 << ", " << (doRQI ? " " : "\u2014>") << " "
    \n+
    855 << "\u2551q\u2551_2 = " << std::setw(11) << q_norm
    \n+
    856 << "): \u03bb = " << lambda << std::endl
    \n+
    857 << std::resetiosflags(std::ios::left);
    \n+
    858
    \n+
    859 // check if the eigenvalue closest to gamma lies in J
    \n+
    860 if (!doRQI && q_norm < eta)
    \n+
    861 {
    \n+
    862 // J is not free of eigenvalues
    \n+
    863 extrnl = false;
    \n+
    864
    \n+
    865 // by theory we know now that mu_s also lies in J
    \n+
    866 assert(std::abs(mu_s-gamma) < eta);
    \n+
    867
    \n+
    868 // switch to RQI
    \n+
    869 doRQI = true;
    \n+
    870 }
    \n+
    871
    \n+
    872 // revert to II if J is not free of eigenvalues but
    \n+
    873 // at some point mu_s falls back again outside J
    \n+
    874 if (!extrnl && doRQI && std::abs(mu_s-gamma) >= eta)
    \n+
    875 doRQI = false;
    \n+
    876
    \n+
    877 // if eigenvalue closest to gamma does not lie in J use RQI
    \n+
    878 // solely to accelerate the convergence to this eigenvalue
    \n+
    879 // when II has become stationary
    \n+
    880 if (extrnl && !doRQI)
    \n+
    881 {
    \n+
    882 // switch to RQI if the relative change of the Rayleigh
    \n+
    883 // quotient indicates that II has become stationary
    \n+
    884 if (nIterations_ >= m &&
    \n+
    885 std::abs(mu_s - mu_s_old) / std::abs(mu_s) < delta)
    \n+
    886 doRQI = true;
    \n+
    887 }
    \n+
    888 }
    \n+
    889
    \n+
    890 // // compute final residual and lambda again (paranoia....)
    \n+
    891 // m_.mv(x_s,temp);
    \n+
    892 // mu_s = x_s * temp;
    \n+
    893 // temp.axpy(-mu_s,x_s);
    \n+
    894 // r_norm = temp.two_norm();
    \n+
    895 // // r_norm /= std::abs(mu_s);
    \n+
    896
    \n+
    897 // print verbosity information
    \n+
    898 if (verbosity_level_ > 0)
    \n+
    899 {
    \n+
    900 if (extrnl)
    \n+
    901 std::cout << blank_ << "Interval "
    \n+
    902 << "(" << gamma - eta << "," << gamma + eta
    \n+
    903 << ") is free of eigenvalues, approximating "
    \n+
    904 << "the closest eigenvalue." << std::endl;
    \n+
    905 std::cout << blank_ << "Result ("
    \n+
    906 << "#iterations = " << nIterations_ << ", "
    \n+
    907 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n+
    908 << "\u03bb = " << lambda << std::endl;
    \n+
    909 if (verbosity_level_ > 2)
    \n+
    910 {
    \n+
    911 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n+
    912 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n+
    913 }
    \n+
    914 }
    \n+
    915 }
    \n+
    \n+
    916
    \n+
    \n+\n+
    926 {
    \n+
    927 // return iteration operator
    \n+
    928 return itOperator_;
    \n+
    929 }
    \n+
    \n+
    930
    \n+
    \n+
    945 inline const BCRSMatrix& getIterationMatrix () const
    \n+
    946 {
    \n+
    947 // create iteration matrix on demand
    \n+
    948 if (!itMatrix_)
    \n+
    949 itMatrix_ = std::make_unique<BCRSMatrix>(m_);
    \n+
    950
    \n+
    951 // return iteration matrix
    \n+
    952 return *itMatrix_;
    \n+
    953 }
    \n+
    \n+
    954
    \n+
    \n+
    959 inline unsigned int getIterationCount () const
    \n+
    960 {
    \n+
    961 if (nIterations_ == 0)
    \n+
    962 DUNE_THROW(Dune::ISTLError,"No algorithm applied, yet.");
    \n+
    963
    \n+
    964 return nIterations_;
    \n+
    965 }
    \n+
    \n+
    966
    \n+
    967 protected:
    \n+
    982 template <typename ISTLLinearSolver>
    \n+
    \n+
    983 inline void updateShiftMu (const Real& mu,
    \n+
    984 ISTLLinearSolver& solver) const
    \n+
    985 {
    \n+
    986 // do nothing if new shift equals the old one
    \n+
    987 if (mu == mu_) return;
    \n+
    988
    \n+
    989 // update shift mu_, i.e. update iteration operator
    \n+
    990 mu_ = mu;
    \n+
    991
    \n+
    992 // update iteration matrix when needed
    \n+
    993 if (itMatrix_)
    \n+
    994 {
    \n+
    995 // iterate over entries in iteration matrix diagonal
    \n+
    996 constexpr int rowBlockSize = BCRSMatrix::block_type::rows;
    \n+
    997 constexpr int colBlockSize = BCRSMatrix::block_type::cols;
    \n+
    998 for (typename BCRSMatrix::size_type i = 0;
    \n+
    999 i < itMatrix_->M()*rowBlockSize; ++i)
    \n+
    1000 {
    \n+
    1001 // access m_[i,i] where i is the flat index of a row/column
    \n+
    1002 const Real& m_entry = m_
    \n+
    1003 [i/rowBlockSize][i/colBlockSize][i%rowBlockSize][i%colBlockSize];
    \n+
    1004 // access *itMatrix[i,i] where i is the flat index of a row/column
    \n+
    1005 Real& entry = (*itMatrix_)
    \n+
    1006 [i/rowBlockSize][i/colBlockSize][i%rowBlockSize][i%colBlockSize];
    \n+
    1007 // change current entry in iteration matrix diagonal
    \n+
    1008 entry = m_entry - mu_;
    \n+
    1009 }
    \n+
    1010 // notify linear solver about change of the iteration matrix object
    \n+\n+
    1012 (solver,*itMatrix_);
    \n+
    1013 }
    \n+
    1014 }
    \n+
    \n+
    1015
    \n+
    1016 protected:
    \n+
    1017 // parameters related to iterative eigenvalue algorithms
    \n+\n+
    1019 const unsigned int nIterationsMax_;
    \n+
    1020
    \n+
    1021 // verbosity setting
    \n+
    1022 const unsigned int verbosity_level_;
    \n+
    1023
    \n+
    1024 // shift mu_ used by iteration operator/matrix (m_ - mu_*I)
    \n+
    1025 mutable Real mu_;
    \n+
    1026
    \n+
    1027 // iteration operator (m_ - mu_*I), passing shift mu_ by reference
    \n+\n+\n+\n+
    1031
    \n+
    1032 // iteration matrix (m_ - mu_*I), provided on demand when needed
    \n+
    1033 // (e.g. for preconditioning)
    \n+
    1034 mutable std::unique_ptr<BCRSMatrix> itMatrix_;
    \n+
    1035
    \n+
    1036 // memory for storing temporary variables (mutable as they shall
    \n+
    1037 // just be effectless auxiliary variables of the const apply*(...)
    \n+
    1038 // methods)
    \n+
    1039 mutable unsigned int nIterations_;
    \n+
    1040
    \n+
    1041 // constants for printing verbosity information
    \n+
    1042 const std::string title_;
    \n+
    1043 const std::string blank_;
    \n+
    1044 };
    \n+
    \n+
    1045
    \n+
    1048} // namespace Dune
    \n+
    1049
    \n+
    1050#endif // DUNE_ISTL_EIGENVALUE_POWERITERATION_HH
    \n+
    Some generic functions for pretty printing vectors and matrices.
    \n+\n+
    Templates characterizing the type of a solver.
    \n+\n+
    Helper functions for determining the vector/matrix block level.
    \n+
    Implementations of the inverse operator interface.
    \n+
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n+
    void printvector(std::ostream &s, const V &v, std::string title, std::string rowtext, int columns=1, int width=10, int precision=2)
    Print an ISTL vector.
    Definition io.hh:89
    \n+
    Definition allocator.hh:11
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n+
    size_type M() const
    number of columns (counted in blocks)
    Definition bcrsmatrix.hh:1978
    \n+
    void mv(const X &x, Y &y) const
    y = A x
    Definition bcrsmatrix.hh:1612
    \n+
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n+
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n+
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bvector.hh:401
    \n+
    Iterative eigenvalue algorithms based on power iteration.
    Definition poweriteration.hh:176
    \n+
    std::unique_ptr< BCRSMatrix > itMatrix_
    Definition poweriteration.hh:1034
    \n+
    PowerIteration_Algorithms(const PowerIteration_Algorithms &)=delete
    \n+
    Impl::ScalingLinearOperator< BlockVector > ScalingOperator
    Definition poweriteration.hh:181
    \n+
    const std::string blank_
    Definition poweriteration.hh:1043
    \n+
    Impl::LinearOperatorSum< MatrixOperator, ScalingOperator > OperatorSum
    Definition poweriteration.hh:182
    \n+
    Dune::MatrixAdapter< BCRSMatrix, BlockVector, BlockVector > MatrixOperator
    Definition poweriteration.hh:180
    \n+
    void applyInverseIteration(const Real &epsilon, ISTLLinearSolver &solver, BlockVector &x, Real &lambda) const
    Perform the inverse iteration algorithm to compute an approximation lambda of the least dominant (i....
    Definition poweriteration.hh:355
    \n+
    void applyTLIMEIteration(const Real &gamma, const Real &eta, const Real &epsilon, ISTLLinearSolver &solver, const Real &delta, const std::size_t &m, bool &extrnl, BlockVector &x, Real &lambda) const
    Perform the "two-level iterative method for eigenvalue calculations (TLIME)" iteration algorit...
    Definition poweriteration.hh:691
    \n+
    IterationOperator & getIterationOperator()
    Return the iteration operator (m_ - mu_*I).
    Definition poweriteration.hh:925
    \n+
    OperatorSum itOperator_
    Definition poweriteration.hh:1030
    \n+
    const BCRSMatrix & m_
    Definition poweriteration.hh:1018
    \n+
    PowerIteration_Algorithms(const BCRSMatrix &m, const unsigned int nIterationsMax=1000, const unsigned int verbosity_level=0)
    Construct from required parameters.
    Definition poweriteration.hh:206
    \n+
    const unsigned int nIterationsMax_
    Definition poweriteration.hh:1019
    \n+
    void applyPowerIteration(const Real &epsilon, BlockVector &x, Real &lambda) const
    Perform the power iteration algorithm to compute an approximation lambda of the dominant (i....
    Definition poweriteration.hh:260
    \n+
    OperatorSum IterationOperator
    Type of iteration operator (m_ - mu_*I)
    Definition poweriteration.hh:189
    \n+
    void applyRayleighQuotientIteration(const Real &epsilon, ISTLLinearSolver &solver, BlockVector &x, Real &lambda) const
    Perform the Rayleigh quotient iteration algorithm to compute an approximation lambda of an eigenvalue...
    Definition poweriteration.hh:533
    \n+
    void applyInverseIteration(const Real &gamma, const Real &epsilon, ISTLLinearSolver &solver, BlockVector &x, Real &lambda) const
    Perform the inverse iteration with shift algorithm to compute an approximation lambda of the eigenval...
    Definition poweriteration.hh:394
    \n+
    const ScalingOperator scalingOperator_
    Definition poweriteration.hh:1029
    \n+
    void updateShiftMu(const Real &mu, ISTLLinearSolver &solver) const
    Update shift mu_, i.e. update iteration operator/matrix (m_ - mu_*I).
    Definition poweriteration.hh:983
    \n+
    PowerIteration_Algorithms & operator=(const PowerIteration_Algorithms &)=delete
    \n+
    unsigned int getIterationCount() const
    Return the number of iterations in last application of an algorithm.
    Definition poweriteration.hh:959
    \n+
    const MatrixOperator matrixOperator_
    Definition poweriteration.hh:1028
    \n+
    const BCRSMatrix & getIterationMatrix() const
    Return the iteration matrix (m_ - mu_*I), provided on demand when needed (e.g. for direct solvers or ...
    Definition poweriteration.hh:945
    \n+
    unsigned int nIterations_
    Definition poweriteration.hh:1039
    \n+
    const unsigned int verbosity_level_
    Definition poweriteration.hh:1022
    \n+
    const std::string title_
    Definition poweriteration.hh:1042
    \n+
    BlockVector::field_type Real
    Type of underlying field.
    Definition poweriteration.hh:186
    \n+
    Real mu_
    Definition poweriteration.hh:1025
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    A linear operator.
    Definition operators.hh:67
    \n+
    X::field_type field_type
    The field type of the operator.
    Definition operators.hh:74
    \n+
    virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const =0
    apply operator to x, scale and add:
    \n+
    virtual SolverCategory::Category category() const =0
    Category of the linear operator (see SolverCategory::Category)
    \n+
    Y range_type
    The type of the range of the operator.
    Definition operators.hh:72
    \n+
    virtual void apply(const X &x, Y &y) const =0
    apply operator to x: The input vector is consistent and the output must also be consistent on the in...
    \n+
    X domain_type
    The type of the domain of the operator.
    Definition operators.hh:70
    \n+
    Adapter to turn a matrix into a linear operator.
    Definition operators.hh:137
    \n+
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n+
    static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)
    Definition solver.hh:524
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-us-ascii\n+utf-8\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,129 +1,993 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-superlufunctions.hh\n+ * _\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be\n+poweriteration.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_SUPERLUFUNCTIONS_HH\n-6#define DUNE_ISTL_SUPERLUFUNCTIONS_HH\n-7#if HAVE_SUPERLU\n-8\n-9\n-_\b1_\b0#define int_t SUPERLU_INT_TYPE\n-11#include \"supermatrix.h\"\n-12#include \"slu_util.h\"\n-13#undef int_t\n-14\n-15#if __has_include(\"slu_sdefs.h\")\n-16extern \"C\" {\n-17 extern void\n-18 sgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,\n-19 char *, float *, float *, SuperMatrix *, SuperMatrix *,\n-20 void *, int, SuperMatrix *, SuperMatrix *,\n-21 float *, float *, float *, float *,\n-22 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);\n-23\n-24 extern void\n-25 sCreate_Dense_Matrix(SuperMatrix *, int, int, float *, int,\n-26 Stype_t, Dtype_t, Mtype_t);\n-27 extern void\n-28 sCreate_CompCol_Matrix(SuperMatrix *, int, int, int, float *,\n-29 int *, int *, Stype_t, Dtype_t, Mtype_t);\n-30 extern int sQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);\n-31\n-32 extern void sPrint_CompCol_Matrix(char *, SuperMatrix *);\n-33}\n-34#endif\n-35\n-36#if __has_include(\"slu_ddefs.h\")\n-37extern \"C\" {\n-38 extern void\n-39 dgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,\n-40 char *, double *, double *, SuperMatrix *, SuperMatrix *,\n-41 void *, int, SuperMatrix *, SuperMatrix *,\n-42 double *, double *, double *, double *,\n-43 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);\n-44\n-45 extern void\n-46 dCreate_CompCol_Matrix(SuperMatrix *, int, int, int, double *,\n-47 int *, int *, Stype_t, Dtype_t, Mtype_t);\n-48\n-49 extern void\n-50 dCreate_Dense_Matrix(SuperMatrix *, int, int, double *, int,\n-51 Stype_t, Dtype_t, Mtype_t);\n+5#ifndef DUNE_ISTL_EIGENVALUE_POWERITERATION_HH\n+6#define DUNE_ISTL_EIGENVALUE_POWERITERATION_HH\n+7\n+8#include // provides std::size_t\n+9#include // provides std::sqrt, std::abs\n+10\n+11#include // provides std::is_same\n+12#include // provides std::cout, std::endl\n+13#include // provides std::numeric_limits\n+14#include // provides std::left, std::ios::left\n+15#include // provides std::setw, std::resetiosflags\n+16#include // provides std::unique_ptr\n+17#include // provides std::string\n+18\n+19#include // provides DUNE_THROW(...)\n+20\n+21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh> // provides Dune::blockLevel\n+22#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh> // provides Dune::LinearOperator\n+23#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh> // provides Dune::SolverCategory::\n+sequential\n+24#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh> // provides Dune::IsDirectSolver\n+25#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh> // provides Dune::MatrixAdapter\n+26#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh> // provides Dune::ISTLError\n+27#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh> // provides Dune::printvector(...)\n+28#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh> // provides Dune::InverseOperatorResult\n+29\n+30namespace _\bD_\bu_\bn_\be\n+31{\n+32\n+37 namespace Impl {\n+45 template \n+46 class ScalingLinearOperator : public _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+47 {\n+48 public:\n+49 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+50 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+51 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n 52\n-53 extern int dQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);\n-54\n-55 extern void dPrint_CompCol_Matrix(char *, SuperMatrix *);\n-56}\n-57#endif\n+53 ScalingLinearOperator (field_type immutable_scaling,\n+54 const field_type& mutable_scaling)\n+55 : immutable_scaling_(immutable_scaling),\n+56 mutable_scaling_(mutable_scaling)\n+57 {}\n 58\n-59#if __has_include(\"slu_cdefs.h\")\n-60#ifndef SUPERLU_TYPEDEF_COMPLEX\n-61// For now let's keep backwards compatible and let\n-62// complex be a typedef of doublecomplex\n-63#define SUPERLU_TYPEDEF_COMPLEX\n-64#endif\n-65#include \"slu_scomplex.h\"\n-66\n-67extern \"C\" {\n-68 extern void\n-69 cgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,\n-70 char *, float *, float *, SuperMatrix *, SuperMatrix *,\n-71 void *, int, SuperMatrix *, SuperMatrix *,\n-72 float *, float *, float *, float *,\n-73 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);\n-74\n-75\n-76 extern void\n-77 cCreate_Dense_Matrix(SuperMatrix *, int, int, ::complex *, int,\n-78 Stype_t, Dtype_t, Mtype_t);\n-79\n-80\n-81 extern void\n-82 cCreate_CompCol_Matrix(SuperMatrix *, int, int, int, ::complex *,\n-83 int *, int *, Stype_t, Dtype_t, Mtype_t);\n-84\n-85 extern int cQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);\n-86\n-87 extern void cPrint_CompCol_Matrix(char *, SuperMatrix *);\n-88}\n-89#endif\n-90\n-91#if __has_include(\"slu_zdefs.h\")\n-92#include \"slu_dcomplex.h\"\n-93extern \"C\" {\n-94 extern void\n-95 zgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,\n-96 char *, double *, double *, SuperMatrix *, SuperMatrix *,\n-97 void *, int, SuperMatrix *, SuperMatrix *,\n-98 double *, double *, double *, double *,\n-99 GlobalLU_t*, mem_usage_t *, SuperLUStat_t *, int *);\n-100\n+59 virtual void _\ba_\bp_\bp_\bl_\by (const X& x, Y& y) const\n+60 {\n+61 y = x;\n+62 y *= immutable_scaling_*mutable_scaling_;\n+63 }\n+64\n+65 virtual void _\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd (field_type alpha, const X& x, Y& y) const\n+66 {\n+67 X temp(x);\n+68 temp *= immutable_scaling_*mutable_scaling_;\n+69 y.axpy(alpha,temp);\n+70 }\n+71\n+73 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+74 {\n+75 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+76 }\n+77\n+78 protected:\n+79 const field_type immutable_scaling_;\n+80 const field_type& mutable_scaling_;\n+81 };\n+82\n+83\n+92 template \n+93 class LinearOperatorSum\n+94 : public _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+96 {\n+97 public:\n+98 typedef typename OP1::domain_type domain_type;\n+99 typedef typename OP1::range_type range_type;\n+100 typedef typename domain_type::field_type field_type;\n 101\n-102 extern void\n-103 zCreate_CompCol_Matrix(SuperMatrix *, int, int, int, doublecomplex *,\n-104 int *, int *, Stype_t, Dtype_t, Mtype_t);\n-105\n-106 extern void\n-107 zCreate_Dense_Matrix(SuperMatrix *, int, int, doublecomplex *, int,\n-108 Stype_t, Dtype_t, Mtype_t);\n-109\n-110 extern int zQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);\n-111\n-112 extern void zPrint_CompCol_Matrix(char *, SuperMatrix *);\n-113}\n-114#endif\n-115\n+102 LinearOperatorSum (const OP1& op1, const OP2& op2)\n+103 : op1_(op1), op2_(op2)\n+104 {\n+105 static_assert(std::is_same::value,\n+106 \"Domain type of both operators doesn't match!\");\n+107 static_assert(std::is_same::value,\n+108 \"Range type of both operators doesn't match!\");\n+109 }\n+110\n+111 virtual void _\ba_\bp_\bp_\bl_\by (const domain_type& x, range_type& y) const\n+112 {\n+113 op1_.apply(x,y);\n+114 op2_.applyscaleadd(1.0,x,y);\n+115 }\n 116\n-117#endif\n-118#endif\n+117 virtual void _\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd (field_type alpha,\n+118 const domain_type& x, range_type& y) const\n+119 {\n+120 range_type temp(y);\n+121 op1_.apply(x,temp);\n+122 op2_.applyscaleadd(1.0,x,temp);\n+123 y.axpy(alpha,temp);\n+124 }\n+125\n+127 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+128 {\n+129 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+130 }\n+131\n+132 protected:\n+133 const OP1& op1_;\n+134 const OP2& op2_;\n+135 };\n+136 } // end namespace Impl\n+137\n+174 template \n+_\b1_\b7_\b5 class _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n+176 {\n+177 protected:\n+178 // Type definitions for type of iteration operator (m_ - mu_*I)\n+179 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b>\n+_\b1_\b8_\b0 _\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n+_\b1_\b8_\b1 typedef Impl::ScalingLinearOperator _\bS_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n+_\b1_\b8_\b2 typedef Impl::LinearOperatorSum\n+_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bS_\bu_\bm;\n+183\n+184 public:\n+_\b1_\b8_\b6 typedef typename _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bR_\be_\ba_\bl;\n+187\n+_\b1_\b8_\b9 typedef _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bS_\bu_\bm _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n+190\n+191 public:\n+_\b2_\b0_\b6 _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& m,\n+207 const unsigned int nIterationsMax = 1000,\n+208 const unsigned int verbosity_level = 0)\n+209 : _\bm_\b_(m), _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_(nIterationsMax),\n+210 _\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_(verbosity_level),\n+211 _\bm_\bu_\b_(0.0),\n+212 _\bm_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_(_\bm_\b_),\n+213 _\bs_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_(-1.0,_\bm_\bu_\b_),\n+214 _\bi_\bt_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_(_\bm_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_,_\bs_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_),\n+215 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_(0),\n+216 _\bt_\bi_\bt_\bl_\be_\b_(\" PowerIteration_Algorithms: \"),\n+217 _\bb_\bl_\ba_\bn_\bk_\b_(_\bt_\bi_\bt_\bl_\be_\b_.length(),' ')\n+218 {\n+219 // assert that BCRSMatrix type has blocklevel 2\n+220 static_assert\n+221 (blockLevel() == 2,\n+222 \"Only BCRSMatrices with blocklevel 2 are supported.\");\n+223\n+224 // assert that BCRSMatrix type has square blocks\n+225 static_assert\n+226 (BCRSMatrix::block_type::rows == BCRSMatrix::block_type::cols,\n+227 \"Only BCRSMatrices with square blocks are supported.\");\n+228\n+229 // assert that m_ is square\n+230 const int nrows = _\bm_\b_._\bM() * BCRSMatrix::block_type::rows;\n+231 const int ncols = _\bm_\b_._\bN() * BCRSMatrix::block_type::cols;\n+232 if (nrows != ncols)\n+233 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix is not square (\"\n+234 << nrows << \"x\" << ncols << \").\");\n+235 }\n+236\n+_\b2_\b4_\b0 _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs (const _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs&) = delete;\n+241\n+245 _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs&\n+_\b2_\b4_\b6 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs&) = delete;\n+247\n+_\b2_\b6_\b0 inline void _\ba_\bp_\bp_\bl_\by_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn (const _\bR_\be_\ba_\bl& epsilon,\n+261 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n+262 {\n+263 // print verbosity information\n+264 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+265 std::cout << _\bt_\bi_\bt_\bl_\be_\b_\n+266 << \"Performing power iteration approximating \"\n+267 << \"the dominant eigenvalue.\" << std::endl;\n+268\n+269 // allocate memory for auxiliary variables\n+270 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br y(x);\n+271 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br temp(x);\n+272\n+273 // perform power iteration\n+274 x *= (1.0 / x.two_norm());\n+275 _\bm_\b_._\bm_\bv(x,y);\n+276 _\bR_\be_\ba_\bl r_norm = std::numeric_limits::max();\n+277 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = 0;\n+278 while (r_norm > epsilon)\n+279 {\n+280 // update and check number of iterations\n+281 if (++_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ > _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_)\n+282 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Power iteration did not converge \"\n+283 << \"in \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_ << \" iterations \"\n+284 << \"(\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \", epsilon = \"\n+285 << epsilon << \").\");\n+286\n+287 // do one iteration of the power iteration algorithm\n+288 // (use that y = m_ * x)\n+289 x = y;\n+290 x *= (1.0 / y.two_norm());\n+291\n+292 // get approximated eigenvalue lambda via the Rayleigh quotient\n+293 _\bm_\b_._\bm_\bv(x,y);\n+294 lambda = x * y;\n+295\n+296 // get norm of residual (use that y = m_ * x)\n+297 temp = y;\n+298 temp.axpy(-lambda,x);\n+299 r_norm = temp.two_norm();\n+300\n+301 // print verbosity information\n+302 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n+303 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << std::left\n+304 << \"iteration \" << std::setw(3) << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n+305 << \" (\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << std::setw(11) << r_norm\n+306 << \"): \u00ce\u00bb = \" << lambda << std::endl\n+307 << std::resetiosflags(std::ios::left);\n+308 }\n+309\n+310 // print verbosity information\n+311 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+312 {\n+313 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n+314 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n+315 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n+316 << \"\u00ce\u00bb = \" << lambda << std::endl;\n+317 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n+318 {\n+319 // print approximated eigenvector via DUNE-ISTL I/O methods\n+320 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n+321 }\n+322 }\n+323 }\n+324\n+353 template \n+_\b3_\b5_\b5 inline void _\ba_\bp_\bp_\bl_\by_\bI_\bn_\bv_\be_\br_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn (const _\bR_\be_\ba_\bl& epsilon,\n+356 ISTLLinearSolver& solver,\n+357 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n+358 {\n+359 constexpr _\bR_\be_\ba_\bl gamma = 0.0;\n+360 _\ba_\bp_\bp_\bl_\by_\bI_\bn_\bv_\be_\br_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn(gamma,epsilon,solver,x,lambda);\n+361 }\n+362\n+392 template \n+_\b3_\b9_\b4 inline void _\ba_\bp_\bp_\bl_\by_\bI_\bn_\bv_\be_\br_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn (const _\bR_\be_\ba_\bl& gamma,\n+395 const _\bR_\be_\ba_\bl& epsilon,\n+396 ISTLLinearSolver& solver,\n+397 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n+398 {\n+399 // print verbosity information\n+400 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+401 {\n+402 std::cout << _\bt_\bi_\bt_\bl_\be_\b_;\n+403 if (gamma == 0.0)\n+404 std::cout << \"Performing inverse iteration approximating \"\n+405 << \"the least dominant eigenvalue.\" << std::endl;\n+406 else\n+407 std::cout << \"Performing inverse iteration with shift \"\n+408 << \"gamma = \" << gamma << \" approximating the \"\n+409 << \"eigenvalue closest to gamma.\" << std::endl;\n+410 }\n+411\n+412 // initialize iteration operator,\n+413 // initialize iteration matrix when needed\n+414 _\bu_\bp_\bd_\ba_\bt_\be_\bS_\bh_\bi_\bf_\bt_\bM_\bu(gamma,solver);\n+415\n+416 // allocate memory for linear solver statistics\n+417 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt solver_statistics;\n+418\n+419 // allocate memory for auxiliary variables\n+420 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br y(x);\n+421 _\bR_\be_\ba_\bl y_norm;\n+422 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br temp(x);\n+423\n+424 // perform inverse iteration with shift\n+425 x *= (1.0 / x.two_norm());\n+426 _\bR_\be_\ba_\bl r_norm = std::numeric_limits::max();\n+427 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = 0;\n+428 while (r_norm > epsilon)\n+429 {\n+430 // update and check number of iterations\n+431 if (++_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ > _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_)\n+432 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Inverse iteration \"\n+433 << (gamma != 0.0 ? \"with shift \" : \"\") << \"did not \"\n+434 << \"converge in \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_ << \" iterations \"\n+435 << \"(\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \", epsilon = \"\n+436 << epsilon << \").\");\n+437\n+438 // do one iteration of the inverse iteration with shift algorithm,\n+439 // part 1: solve (m_ - gamma*I) * y = x for y\n+440 // (protect x from being changed)\n+441 temp = x;\n+442 solver.apply(y,temp,solver_statistics);\n+443\n+444 // get norm of y\n+445 y_norm = y.two_norm();\n+446\n+447 // compile time switch between accuracy and efficiency\n+448 if (avoidLinSolverCrime)\n+449 {\n+450 // get approximated eigenvalue lambda via the Rayleigh quotient\n+451 // (use that x_new = y / y_norm)\n+452 _\bm_\b_._\bm_\bv(y,temp);\n+453 lambda = (y * temp) / (y_norm * y_norm);\n+454\n+455 // get norm of residual\n+456 // (use that x_new = y / y_norm, additionally use that temp = m_ * y)\n+457 temp.axpy(-lambda,y);\n+458 r_norm = temp.two_norm() / y_norm;\n+459 }\n+460 else\n+461 {\n+462 // get approximated eigenvalue lambda via the Rayleigh quotient\n+463 // (use that x_new = y / y_norm and use that (m_ - gamma*I) * y = x)\n+464 lambda = gamma + (y * x) / (y_norm * y_norm);\n+465\n+466 // get norm of residual\n+467 // (use that x_new = y / y_norm and use that (m_ - gamma*I) * y = x)\n+468 temp = x; temp.axpy(gamma-lambda,y);\n+469 r_norm = temp.two_norm() / y_norm;\n+470 }\n+471\n+472 // do one iteration of the inverse iteration with shift algorithm,\n+473 // part 2: update x\n+474 x = y;\n+475 x *= (1.0 / y_norm);\n+476\n+477 // print verbosity information\n+478 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n+479 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << std::left\n+480 << \"iteration \" << std::setw(3) << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n+481 << \" (\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << std::setw(11) << r_norm\n+482 << \"): \u00ce\u00bb = \" << lambda << std::endl\n+483 << std::resetiosflags(std::ios::left);\n+484 }\n+485\n+486 // print verbosity information\n+487 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+488 {\n+489 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n+490 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n+491 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n+492 << \"\u00ce\u00bb = \" << lambda << std::endl;\n+493 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n+494 {\n+495 // print approximated eigenvector via DUNE-ISTL I/O methods\n+496 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n+497 }\n+498 }\n+499 }\n+500\n+531 template \n+_\b5_\b3_\b3 inline void _\ba_\bp_\bp_\bl_\by_\bR_\ba_\by_\bl_\be_\bi_\bg_\bh_\bQ_\bu_\bo_\bt_\bi_\be_\bn_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn (const _\bR_\be_\ba_\bl& epsilon,\n+534 ISTLLinearSolver& solver,\n+535 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n+536 {\n+537 // print verbosity information\n+538 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+539 std::cout << _\bt_\bi_\bt_\bl_\be_\b_\n+540 << \"Performing Rayleigh quotient iteration for \"\n+541 << \"estimated eigenvalue \" << lambda << \".\" << std::endl;\n+542\n+543 // allocate memory for linear solver statistics\n+544 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt solver_statistics;\n+545\n+546 // allocate memory for auxiliary variables\n+547 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br y(x);\n+548 _\bR_\be_\ba_\bl y_norm;\n+549 _\bR_\be_\ba_\bl lambda_update;\n+550 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br temp(x);\n+551\n+552 // perform Rayleigh quotient iteration\n+553 x *= (1.0 / x.two_norm());\n+554 _\bR_\be_\ba_\bl r_norm = std::numeric_limits::max();\n+555 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = 0;\n+556 while (r_norm > epsilon)\n+557 {\n+558 // update and check number of iterations\n+559 if (++_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ > _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_)\n+560 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Rayleigh quotient iteration did not \"\n+561 << \"converge in \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_ << \" iterations \"\n+562 << \"(\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \", epsilon = \"\n+563 << epsilon << \").\");\n+564\n+565 // update iteration operator,\n+566 // update iteration matrix when needed\n+567 _\bu_\bp_\bd_\ba_\bt_\be_\bS_\bh_\bi_\bf_\bt_\bM_\bu(lambda,solver);\n+568\n+569 // do one iteration of the Rayleigh quotient iteration algorithm,\n+570 // part 1: solve (m_ - lambda*I) * y = x for y\n+571 // (protect x from being changed)\n+572 temp = x;\n+573 solver.apply(y,temp,solver_statistics);\n+574\n+575 // get norm of y\n+576 y_norm = y.two_norm();\n+577\n+578 // compile time switch between accuracy and efficiency\n+579 if (avoidLinSolverCrime)\n+580 {\n+581 // get approximated eigenvalue lambda via the Rayleigh quotient\n+582 // (use that x_new = y / y_norm)\n+583 _\bm_\b_._\bm_\bv(y,temp);\n+584 lambda = (y * temp) / (y_norm * y_norm);\n+585\n+586 // get norm of residual\n+587 // (use that x_new = y / y_norm, additionally use that temp = m_ * y)\n+588 temp.axpy(-lambda,y);\n+589 r_norm = temp.two_norm() / y_norm;\n+590 }\n+591 else\n+592 {\n+593 // get approximated eigenvalue lambda via the Rayleigh quotient\n+594 // (use that x_new = y / y_norm and use that (m_ - lambda_old*I) * y = x)\n+595 lambda_update = (y * x) / (y_norm * y_norm);\n+596 lambda += lambda_update;\n+597\n+598 // get norm of residual\n+599 // (use that x_new = y / y_norm and use that (m_ - lambda_old*I) * y = x)\n+600 temp = x; temp.axpy(-lambda_update,y);\n+601 r_norm = temp.two_norm() / y_norm;\n+602 }\n+603\n+604 // do one iteration of the Rayleigh quotient iteration algorithm,\n+605 // part 2: update x\n+606 x = y;\n+607 x *= (1.0 / y_norm);\n+608\n+609 // print verbosity information\n+610 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n+611 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << std::left\n+612 << \"iteration \" << std::setw(3) << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n+613 << \" (\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << std::setw(11) << r_norm\n+614 << \"): \u00ce\u00bb = \" << lambda << std::endl\n+615 << std::resetiosflags(std::ios::left);\n+616 }\n+617\n+618 // print verbosity information\n+619 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+620 {\n+621 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n+622 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n+623 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n+624 << \"\u00ce\u00bb = \" << lambda << std::endl;\n+625 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n+626 {\n+627 // print approximated eigenvector via DUNE-ISTL I/O methods\n+628 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n+629 }\n+630 }\n+631 }\n+632\n+689 template \n+_\b6_\b9_\b1 inline void _\ba_\bp_\bp_\bl_\by_\bT_\bL_\bI_\bM_\bE_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn (const _\bR_\be_\ba_\bl& gamma, const _\bR_\be_\ba_\bl& eta,\n+692 const _\bR_\be_\ba_\bl& epsilon,\n+693 ISTLLinearSolver& solver,\n+694 const _\bR_\be_\ba_\bl& delta, const std::size_t& m,\n+695 bool& extrnl,\n+696 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n+697 {\n+698 // use same variable names as in [Szyld, 1988]\n+699 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x_s = x;\n+700 _\bR_\be_\ba_\bl& mu_s = lambda;\n+701\n+702 // print verbosity information\n+703 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+704 std::cout << _\bt_\bi_\bt_\bl_\be_\b_\n+705 << \"Performing TLIME iteration for \"\n+706 << \"estimated eigenvalue in the \"\n+707 << \"interval (\" << gamma - eta << \",\"\n+708 << gamma + eta << \").\" << std::endl;\n+709\n+710 // allocate memory for linear solver statistics\n+711 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt solver_statistics;\n+712\n+713 // allocate memory for auxiliary variables\n+714 bool doRQI;\n+715 _\bR_\be_\ba_\bl mu;\n+716 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br y(x_s);\n+717 _\bR_\be_\ba_\bl omega;\n+718 _\bR_\be_\ba_\bl mu_s_old;\n+719 _\bR_\be_\ba_\bl mu_s_update;\n+720 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br temp(x_s);\n+721 _\bR_\be_\ba_\bl q_norm, r_norm;\n+722\n+723 // perform TLIME iteration\n+724 x_s *= (1.0 / x_s.two_norm());\n+725 extrnl = true;\n+726 doRQI = false;\n+727 r_norm = std::numeric_limits::max();\n+728 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = 0;\n+729 while (r_norm > epsilon)\n+730 {\n+731 // update and check number of iterations\n+732 if (++_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ > _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_)\n+733 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"TLIME iteration did not \"\n+734 << \"converge in \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_\n+735 << \" iterations (\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm\n+736 << \", epsilon = \" << epsilon << \").\");\n+737\n+738 // set shift for next iteration according to inverse iteration\n+739 // with shift (II) resp. Rayleigh quotient iteration (RQI)\n+740 if (doRQI)\n+741 mu = mu_s;\n+742 else\n+743 mu = gamma;\n+744\n+745 // update II/RQI iteration operator,\n+746 // update II/RQI iteration matrix when needed\n+747 _\bu_\bp_\bd_\ba_\bt_\be_\bS_\bh_\bi_\bf_\bt_\bM_\bu(mu,solver);\n+748\n+749 // do one iteration of the II/RQI algorithm,\n+750 // part 1: solve (m_ - mu*I) * y = x for y\n+751 temp = x_s;\n+752 solver.apply(y,temp,solver_statistics);\n+753\n+754 // do one iteration of the II/RQI algorithm,\n+755 // part 2: compute omega\n+756 omega = (1.0 / y.two_norm());\n+757\n+758 // backup the old Rayleigh quotient\n+759 mu_s_old = mu_s;\n+760\n+761 // compile time switch between accuracy and efficiency\n+762 if (avoidLinSolverCrime)\n+763 {\n+764 // update the Rayleigh quotient mu_s, i.e. the approximated eigenvalue\n+765 // (use that x_new = y * omega)\n+766 _\bm_\b_._\bm_\bv(y,temp);\n+767 mu_s = (y * temp) * (omega * omega);\n+768\n+769 // get norm of \"the residual with respect to the shift used by II\",\n+770 // use normal representation of q\n+771 // (use that x_new = y * omega, use that temp = m_ * y)\n+772 temp.axpy(-gamma,y);\n+773 q_norm = temp.two_norm() * omega;\n+774\n+775 // get norm of \"the residual with respect to the Rayleigh quotient\"\n+776 r_norm = q_norm*q_norm - (gamma-mu_s)*(gamma-mu_s);\n+777 // prevent that truncation errors invalidate the norm\n+778 // (we don't want to calculate sqrt of a negative number)\n+779 if (r_norm >= 0)\n+780 {\n+781 // use relation between the norms of r and q for efficiency\n+782 r_norm = std::sqrt(r_norm);\n+783 }\n+784 else\n+785 {\n+786 // use relation between r and q\n+787 // (use that x_new = y * omega, use that temp = (m_ - gamma*I) * y = q /\n+omega)\n+788 temp.axpy(gamma-mu_s,y);\n+789 r_norm = temp.two_norm() * omega;\n+790 }\n+791 }\n+792 else\n+793 {\n+794 // update the Rayleigh quotient mu_s, i.e. the approximated eigenvalue\n+795 if (!doRQI)\n+796 {\n+797 // (use that x_new = y * omega, additionally use that (m_ - gamma*I) * y =\n+x_s)\n+798 mu_s = gamma + (y * x_s) * (omega * omega);\n+799 }\n+800 else\n+801 {\n+802 // (use that x_new = y * omega, additionally use that (m_ - mu_s_old*I) * y\n+= x_s)\n+803 mu_s_update = (y * x_s) * (omega * omega);\n+804 mu_s += mu_s_update;\n+805 }\n+806\n+807 // get norm of \"the residual with respect to the shift used by II\"\n+808 if (!doRQI)\n+809 {\n+810 // use special representation of q in the II case\n+811 // (use that x_new = y * omega, additionally use that (m_ - gamma*I) * y =\n+x_s)\n+812 q_norm = omega;\n+813 }\n+814 else\n+815 {\n+816 // use special representation of q in the RQI case\n+817 // (use that x_new = y * omega, additionally use that (m_ - mu_s_old*I) * y\n+= x_s)\n+818 temp = x_s; temp.axpy(mu_s-gamma,y);\n+819 q_norm = temp.two_norm() * omega;\n+820 }\n+821\n+822 // get norm of \"the residual with respect to the Rayleigh quotient\"\n+823 // don't use efficient relation between the norms of r and q, as\n+824 // this relation seems to yield a less accurate r_norm in the case\n+825 // where linear solver crime is admitted\n+826 if (!doRQI)\n+827 {\n+828 // (use that x_new = y * omega and use that (m_ - gamma*I) * y = x_s)\n+829 temp = x_s; temp.axpy(gamma-lambda,y);\n+830 r_norm = temp.two_norm() * omega;\n+831 }\n+832 else\n+833 {\n+834 // (use that x_new = y * omega and use that (m_ - mu_s_old*I) * y = x_s)\n+835 temp = x_s; temp.axpy(-mu_s_update,y);\n+836 r_norm = temp.two_norm() * omega;\n+837 }\n+838 }\n+839\n+840 // do one iteration of the II/RQI algorithm,\n+841 // part 3: update x\n+842 x_s = y; x_s *= omega;\n+843\n+844 // // for relative residual norm mode, scale with mu_s^{-1}\n+845 // r_norm /= std::abs(mu_s);\n+846\n+847 // print verbosity information\n+848 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n+849 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"iteration \"\n+850 << std::left << std::setw(3) << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n+851 << \" (\" << (doRQI ? \"RQI,\" : \"II, \")\n+852 << \" \" << (doRQI ? \"\u00e2\u0080\u0094>\" : \" \") << \" \"\n+853 << \"\u00e2\u0095\u0091r\u00e2\u0095\u0091_2 = \" << std::setw(11) << r_norm\n+854 << \", \" << (doRQI ? \" \" : \"\u00e2\u0080\u0094>\") << \" \"\n+855 << \"\u00e2\u0095\u0091q\u00e2\u0095\u0091_2 = \" << std::setw(11) << q_norm\n+856 << \"): \u00ce\u00bb = \" << lambda << std::endl\n+857 << std::resetiosflags(std::ios::left);\n+858\n+859 // check if the eigenvalue closest to gamma lies in J\n+860 if (!doRQI && q_norm < eta)\n+861 {\n+862 // J is not free of eigenvalues\n+863 extrnl = false;\n+864\n+865 // by theory we know now that mu_s also lies in J\n+866 assert(std::abs(mu_s-gamma) < eta);\n+867\n+868 // switch to RQI\n+869 doRQI = true;\n+870 }\n+871\n+872 // revert to II if J is not free of eigenvalues but\n+873 // at some point mu_s falls back again outside J\n+874 if (!extrnl && doRQI && std::abs(mu_s-gamma) >= eta)\n+875 doRQI = false;\n+876\n+877 // if eigenvalue closest to gamma does not lie in J use RQI\n+878 // solely to accelerate the convergence to this eigenvalue\n+879 // when II has become stationary\n+880 if (extrnl && !doRQI)\n+881 {\n+882 // switch to RQI if the relative change of the Rayleigh\n+883 // quotient indicates that II has become stationary\n+884 if (_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ >= m &&\n+885 std::abs(mu_s - mu_s_old) / std::abs(mu_s) < delta)\n+886 doRQI = true;\n+887 }\n+888 }\n+889\n+890 // // compute final residual and lambda again (paranoia....)\n+891 // m_.mv(x_s,temp);\n+892 // mu_s = x_s * temp;\n+893 // temp.axpy(-mu_s,x_s);\n+894 // r_norm = temp.two_norm();\n+895 // // r_norm /= std::abs(mu_s);\n+896\n+897 // print verbosity information\n+898 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n+899 {\n+900 if (extrnl)\n+901 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Interval \"\n+902 << \"(\" << gamma - eta << \",\" << gamma + eta\n+903 << \") is free of eigenvalues, approximating \"\n+904 << \"the closest eigenvalue.\" << std::endl;\n+905 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n+906 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n+907 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n+908 << \"\u00ce\u00bb = \" << lambda << std::endl;\n+909 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n+910 {\n+911 // print approximated eigenvector via DUNE-ISTL I/O methods\n+912 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n+913 }\n+914 }\n+915 }\n+916\n+_\b9_\b2_\b5 inline _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bO_\bp_\be_\br_\ba_\bt_\bo_\br& _\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bO_\bp_\be_\br_\ba_\bt_\bo_\br ()\n+926 {\n+927 // return iteration operator\n+928 return _\bi_\bt_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n+929 }\n+930\n+_\b9_\b4_\b5 inline const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bM_\ba_\bt_\br_\bi_\bx () const\n+946 {\n+947 // create iteration matrix on demand\n+948 if (!_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_)\n+949 _\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_ = std::make_unique(_\bm_\b_);\n+950\n+951 // return iteration matrix\n+952 return *_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_;\n+953 }\n+954\n+_\b9_\b5_\b9 inline unsigned int _\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bC_\bo_\bu_\bn_\bt () const\n+960 {\n+961 if (_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ == 0)\n+962 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"No algorithm applied, yet.\");\n+963\n+964 return _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_;\n+965 }\n+966\n+967 protected:\n+982 template \n+_\b9_\b8_\b3 inline void _\bu_\bp_\bd_\ba_\bt_\be_\bS_\bh_\bi_\bf_\bt_\bM_\bu (const _\bR_\be_\ba_\bl& mu,\n+984 ISTLLinearSolver& solver) const\n+985 {\n+986 // do nothing if new shift equals the old one\n+987 if (mu == _\bm_\bu_\b_) return;\n+988\n+989 // update shift mu_, i.e. update iteration operator\n+990 _\bm_\bu_\b_ = mu;\n+991\n+992 // update iteration matrix when needed\n+993 if (_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_)\n+994 {\n+995 // iterate over entries in iteration matrix diagonal\n+996 constexpr int rowBlockSize = BCRSMatrix::block_type::rows;\n+997 constexpr int colBlockSize = BCRSMatrix::block_type::cols;\n+998 for (typename _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i = 0;\n+999 i < _\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_->M()*rowBlockSize; ++i)\n+1000 {\n+1001 // access m_[i,i] where i is the flat index of a row/column\n+1002 const _\bR_\be_\ba_\bl& m_entry = _\bm_\b_\n+1003 [i/rowBlockSize][i/colBlockSize][i%rowBlockSize][i%colBlockSize];\n+1004 // access *itMatrix[i,i] where i is the flat index of a row/column\n+1005 _\bR_\be_\ba_\bl& entry = (*itMatrix_)\n+1006 [i/rowBlockSize][i/colBlockSize][i%rowBlockSize][i%colBlockSize];\n+1007 // change current entry in iteration matrix diagonal\n+1008 entry = m_entry - _\bm_\bu_\b_;\n+1009 }\n+1010 // notify linear solver about change of the iteration matrix object\n+1011 _\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b,_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+1012 (solver,*_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_);\n+1013 }\n+1014 }\n+1015\n+1016 protected:\n+1017 // parameters related to iterative eigenvalue algorithms\n+_\b1_\b0_\b1_\b8 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bm_\b_;\n+_\b1_\b0_\b1_\b9 const unsigned int _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_;\n+1020\n+1021 // verbosity setting\n+_\b1_\b0_\b2_\b2 const unsigned int _\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_;\n+1023\n+1024 // shift mu_ used by iteration operator/matrix (m_ - mu_*I)\n+_\b1_\b0_\b2_\b5 mutable _\bR_\be_\ba_\bl _\bm_\bu_\b_;\n+1026\n+1027 // iteration operator (m_ - mu_*I), passing shift mu_ by reference\n+_\b1_\b0_\b2_\b8 const _\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br _\bm_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n+_\b1_\b0_\b2_\b9 const _\bS_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br _\bs_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n+_\b1_\b0_\b3_\b0 _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bS_\bu_\bm _\bi_\bt_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n+1031\n+1032 // iteration matrix (m_ - mu_*I), provided on demand when needed\n+1033 // (e.g. for preconditioning)\n+_\b1_\b0_\b3_\b4 mutable std::unique_ptr _\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_;\n+1035\n+1036 // memory for storing temporary variables (mutable as they shall\n+1037 // just be effectless auxiliary variables of the const apply*(...)\n+1038 // methods)\n+_\b1_\b0_\b3_\b9 mutable unsigned int _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_;\n+1040\n+1041 // constants for printing verbosity information\n+_\b1_\b0_\b4_\b2 const std::string _\bt_\bi_\bt_\bl_\be_\b_;\n+_\b1_\b0_\b4_\b3 const std::string _\bb_\bl_\ba_\bn_\bk_\b_;\n+1044 };\n+1045\n+1048} // namespace Dune\n+1049\n+1050#endif // DUNE_ISTL_EIGENVALUE_POWERITERATION_HH\n+_\bi_\bo_\b._\bh_\bh\n+Some generic functions for pretty printing vectors and matrices.\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n+Templates characterizing the type of a solver.\n+_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n+_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n+Helper functions for determining the vector/matrix block level.\n+_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n+Implementations of the inverse operator interface.\n+_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n+Define general, extensible interface for operators. The available\n+implementation wraps a matrix.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br\n+void printvector(std::ostream &s, const V &v, std::string title, std::string\n+rowtext, int columns=1, int width=10, int precision=2)\n+Print an ISTL vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:89\n+_\bD_\bu_\bn_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+The type for the index access and the size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n+size_type M() const\n+number of columns (counted in blocks)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1978\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n+void mv(const X &x, Y &y) const\n+y = A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1612\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+size_type N() const\n+number of rows (counted in blocks)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A vector of blocks with memory management.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< B >::field_type field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:401\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n+Iterative eigenvalue algorithms based on power iteration.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:176\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_\n+std::unique_ptr< BCRSMatrix > itMatrix_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1034\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n+PowerIteration_Algorithms(const PowerIteration_Algorithms &)=delete\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bS_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Impl::ScalingLinearOperator< BlockVector > ScalingOperator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:181\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bb_\bl_\ba_\bn_\bk_\b_\n+const std::string blank_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1043\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bS_\bu_\bm\n+Impl::LinearOperatorSum< MatrixOperator, ScalingOperator > OperatorSum\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:182\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Dune::MatrixAdapter< BCRSMatrix, BlockVector, BlockVector > MatrixOperator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:180\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bI_\bn_\bv_\be_\br_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+void applyInverseIteration(const Real &epsilon, ISTLLinearSolver &solver,\n+BlockVector &x, Real &lambda) const\n+Perform the inverse iteration algorithm to compute an approximation lambda of\n+the least dominant (i....\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:355\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bT_\bL_\bI_\bM_\bE_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+void applyTLIMEIteration(const Real &gamma, const Real &eta, const Real\n+&epsilon, ISTLLinearSolver &solver, const Real &delta, const std::size_t &m,\n+bool &extrnl, BlockVector &x, Real &lambda) const\n+Perform the \"two-level iterative method for eigenvalue calculations (TLIME)\"\n+iteration algorit...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:691\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+IterationOperator & getIterationOperator()\n+Return the iteration operator (m_ - mu_*I).\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:925\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bi_\bt_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_\n+OperatorSum itOperator_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1030\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bm_\b_\n+const BCRSMatrix & m_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1018\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n+PowerIteration_Algorithms(const BCRSMatrix &m, const unsigned int\n+nIterationsMax=1000, const unsigned int verbosity_level=0)\n+Construct from required parameters.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:206\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_\n+const unsigned int nIterationsMax_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1019\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+void applyPowerIteration(const Real &epsilon, BlockVector &x, Real &lambda)\n+const\n+Perform the power iteration algorithm to compute an approximation lambda of the\n+dominant (i....\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:260\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+OperatorSum IterationOperator\n+Type of iteration operator (m_ - mu_*I)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:189\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bR_\ba_\by_\bl_\be_\bi_\bg_\bh_\bQ_\bu_\bo_\bt_\bi_\be_\bn_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+void applyRayleighQuotientIteration(const Real &epsilon, ISTLLinearSolver\n+&solver, BlockVector &x, Real &lambda) const\n+Perform the Rayleigh quotient iteration algorithm to compute an approximation\n+lambda of an eigenvalue...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:533\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bI_\bn_\bv_\be_\br_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+void applyInverseIteration(const Real &gamma, const Real &epsilon,\n+ISTLLinearSolver &solver, BlockVector &x, Real &lambda) const\n+Perform the inverse iteration with shift algorithm to compute an approximation\n+lambda of the eigenval...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:394\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bs_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_\n+const ScalingOperator scalingOperator_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1029\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bu_\bp_\bd_\ba_\bt_\be_\bS_\bh_\bi_\bf_\bt_\bM_\bu\n+void updateShiftMu(const Real &mu, ISTLLinearSolver &solver) const\n+Update shift mu_, i.e. update iteration operator/matrix (m_ - mu_*I).\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:983\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+PowerIteration_Algorithms & operator=(const PowerIteration_Algorithms &)=delete\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bC_\bo_\bu_\bn_\bt\n+unsigned int getIterationCount() const\n+Return the number of iterations in last application of an algorithm.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:959\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_\n+const MatrixOperator matrixOperator_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1028\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bM_\ba_\bt_\br_\bi_\bx\n+const BCRSMatrix & getIterationMatrix() const\n+Return the iteration matrix (m_ - mu_*I), provided on demand when needed (e.g.\n+for direct solvers or ...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:945\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n+unsigned int nIterations_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1039\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_\n+const unsigned int verbosity_level_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1022\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bt_\bi_\bt_\bl_\be_\b_\n+const std::string title_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1042\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bR_\be_\ba_\bl\n+BlockVector::field_type Real\n+Type of underlying field.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:186\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bm_\bu_\b_\n+Real mu_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1025\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A linear operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:74\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd\n+virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const =0\n+apply operator to x, scale and add:\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const =0\n+Category of the linear operator (see SolverCategory::Category)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The type of the range of the operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:72\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(const X &x, Y &y) const =0\n+apply operator to x: The input vector is consistent and the output must also be\n+consistent on the in...\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The type of the domain of the operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br\n+Adapter to turn a matrix into a linear operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:137\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+Statistics about the application of an inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:524\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00155.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00155.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: overlappingschwarz.hh File Reference\n+dune-istl: preconditioner.hh File Reference\n \n \n \n \n \n \n \n@@ -71,133 +71,34 @@\n \n \n \n \n+
    preconditioner.hh File Reference
    \n \n
    \n-\n-

    Contains one level overlapping Schwarz preconditioners. \n-More...

    \n-
    #include <cassert>
    \n-#include <algorithm>
    \n-#include <functional>
    \n-#include <memory>
    \n-#include <vector>
    \n-#include <set>
    \n-#include <dune/common/dynmatrix.hh>
    \n-#include <dune/common/sllist.hh>
    \n-#include <dune/istl/bccsmatrixinitializer.hh>
    \n-#include "preconditioners.hh"
    \n-#include "superlu.hh"
    \n-#include "umfpack.hh"
    \n-#include "bvector.hh"
    \n-#include "bcrsmatrix.hh"
    \n-#include "ilusubdomainsolver.hh"
    \n-#include <dune/istl/solvertype.hh>
    \n+
    #include <dune/common/exceptions.hh>
    \n+#include "solvercategory.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::OverlappingSchwarzInitializer< I, S, D >
     Initializer for SuperLU Matrices representing the subdomains. More...
     
    struct  Dune::AdditiveSchwarzMode
     Tag that the tells the Schwarz method to be additive. More...
     
    struct  Dune::MultiplicativeSchwarzMode
     Tag that tells the Schwarz method to be multiplicative. More...
     
    struct  Dune::SymmetricMultiplicativeSchwarzMode
     Tag that tells the Schwarz method to be multiplicative and symmetric. More...
     
    class  Dune::DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y >
     
    class  Dune::OverlappingAssignerHelper< T, tag >
     
    class  Dune::OverlappingAssignerHelper< DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y >, false >
     
    struct  Dune::OverlappingAssignerHelper< S< BCRSMatrix< T, A > >, true >
     
    class  Dune::OverlappingAssignerILUBase< M, X, Y >
     
    class  Dune::OverlappingAssignerHelper< ILU0SubdomainSolver< M, X, Y >, false >
     
    class  Dune::OverlappingAssignerHelper< ILUNSubdomainSolver< M, X, Y >, false >
     
    struct  Dune::AdditiveAdder< S, T >
     
    struct  Dune::AdditiveAdder< S, BlockVector< T, A > >
     
    struct  Dune::MultiplicativeAdder< S, T >
     
    struct  Dune::MultiplicativeAdder< S, BlockVector< T, A > >
     
    struct  Dune::AdderSelector< T, X, S >
     template meta program for choosing how to add the correction. More...
     
    struct  Dune::AdderSelector< AdditiveSchwarzMode, X, S >
     
    struct  Dune::AdderSelector< MultiplicativeSchwarzMode, X, S >
     
    struct  Dune::AdderSelector< SymmetricMultiplicativeSchwarzMode, X, S >
     
    struct  Dune::IteratorDirectionSelector< T1, T2, forward >
     Helper template meta program for application of overlapping Schwarz. More...
     
    struct  Dune::IteratorDirectionSelector< T1, T2, false >
     
    struct  Dune::SeqOverlappingSchwarzApplier< T >
     Helper template meta program for application of overlapping Schwarz. More...
     
    struct  Dune::SeqOverlappingSchwarzApplier< SeqOverlappingSchwarz< M, X, SymmetricMultiplicativeSchwarzMode, TD, TA > >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerHelper< T, tag >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerHelper< DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y >, false >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerHelper< S< BCRSMatrix< T, A > >, true >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerILUBase< M, X, Y >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerHelper< ILU0SubdomainSolver< M, X, Y >, false >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerHelper< ILUNSubdomainSolver< M, X, Y >, false >
     
    class  Dune::SeqOverlappingSchwarz< M, X, TM, TD, TA >
     Sequential overlapping Schwarz preconditioner. More...
     
    struct  Dune::SeqOverlappingSchwarzDomainSize< M >
     
    struct  Dune::SeqOverlappingSchwarzDomainSize< BCRSMatrix< T, A > >
    class  Dune::Preconditioner< X, Y >
     Base class for matrix free definition of preconditioners. More...
     
    \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    \n-\n-\n-\n-\n-\n-\n-\n

    \n-Typedefs

    template<typename T >
    using Dune::OverlappingAssigner = OverlappingAssignerHelper< T, Dune::StoresColumnCompressed< T >::value >
     
    template<class T >
    using Dune::SeqOverlappingSchwarzAssembler = SeqOverlappingSchwarzAssemblerHelper< T, Dune::StoresColumnCompressed< T >::value >
     
    \n-

    Detailed Description

    \n-

    Contains one level overlapping Schwarz preconditioners.

    \n-
    Author
    Markus Blatt
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,130 +1,20 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs\n-overlappingschwarz.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n-Contains one level overlapping Schwarz preconditioners. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n-#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n-#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh\"\n-#include \"_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh\"\n-#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-#include \"_\bi_\bl_\bu_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\"\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+preconditioner.hh File Reference\n+#include \n+#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bI_\b,_\b _\bS_\b,_\b _\bD_\b _\b>\n-\u00a0 Initializer for _\bS_\bu_\bp_\be_\br_\bL_\bU Matrices representing the subdomains. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n-\u00a0 Tag that the tells the Schwarz method to be additive. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n-\u00a0 Tag that tells the Schwarz method to be multiplicative. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n-\u00a0 Tag that tells the Schwarz method to be multiplicative and symmetric.\n- _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bT_\b,_\b _\bt_\ba_\bg_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<\n- _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be\n- _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be\n- _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bX_\b,_\b _\bS_\b _\b>\n-\u00a0 template meta program for choosing how to add the correction. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\bo_\br_\bw_\ba_\br_\bd_\b _\b>\n-\u00a0 Helper template meta program for application of overlapping Schwarz.\n- _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bT_\b _\b>\n-\u00a0 Helper template meta program for application of overlapping Schwarz.\n- _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n- _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bT_\bD_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bT_\b,_\b _\bt_\ba_\bg_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<\n- _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,\n- _\bt_\br_\bu_\be_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,\n- _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,\n- _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bD_\b,_\b _\bT_\bA_\b _\b>\n-\u00a0 Sequential overlapping Schwarz preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be_\b<_\b _\bM_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0 Base class for matrix free definition of preconditioners. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br = _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br< T, _\bD_\bu_\bn_\be_\b:_\b:\n- _\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd< T >::value >\n-\u00a0\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br =\n- _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br< T, _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd< T\n- >::value >\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Contains one level overlapping Schwarz preconditioners.\n- Author\n- Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00155_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00155_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: overlappingschwarz.hh Source File\n+dune-istl: preconditioner.hh Source File\n \n \n \n \n \n \n \n@@ -74,1666 +74,73 @@\n \n
    \n \n
    \n \n
    \n-
    overlappingschwarz.hh
    \n+
    preconditioner.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_OVERLAPPINGSCHWARZ_HH
    \n-
    6#define DUNE_ISTL_OVERLAPPINGSCHWARZ_HH
    \n-
    7#include <cassert>
    \n-
    8#include <algorithm>
    \n-
    9#include <functional>
    \n-
    10#include <memory>
    \n-
    11#include <vector>
    \n-
    12#include <set>
    \n-
    13#include <dune/common/dynmatrix.hh>
    \n-
    14#include <dune/common/sllist.hh>
    \n-
    15
    \n-\n-
    17#include "preconditioners.hh"
    \n-
    18#include "superlu.hh"
    \n-
    19#include "umfpack.hh"
    \n-
    20#include "bvector.hh"
    \n-
    21#include "bcrsmatrix.hh"
    \n-
    22#include "ilusubdomainsolver.hh"
    \n-\n-
    24
    \n-
    25namespace Dune
    \n-
    26{
    \n-
    27
    \n-
    39 template<class M, class X, class TM, class TD, class TA>
    \n-
    40 class SeqOverlappingSchwarz;
    \n-
    41
    \n-
    45 template<class I, class S, class D>
    \n-
    \n-\n-
    47 {
    \n-
    48 public:
    \n-\n-
    51
    \n-
    52 typedef I InitializerList;
    \n-
    53 typedef typename InitializerList::value_type AtomInitializer;
    \n-
    54 typedef typename AtomInitializer::Matrix Matrix;
    \n-
    55 typedef typename Matrix::const_iterator Iter;
    \n-
    56 typedef typename Matrix::row_type::const_iterator CIter;
    \n-
    57
    \n-
    58 typedef S IndexSet;
    \n-
    59 typedef typename IndexSet::size_type size_type;
    \n-
    60
    \n-\n-
    62 const IndexSet& indices,
    \n-
    63 const subdomain_vector& domains);
    \n-
    64
    \n-
    65
    \n-
    66 void addRowNnz(const Iter& row);
    \n-
    67
    \n-
    68 void allocate();
    \n-
    69
    \n-
    70 void countEntries(const Iter& row, const CIter& col) const;
    \n-
    71
    \n-
    72 void calcColstart() const;
    \n-
    73
    \n-
    74 void copyValue(const Iter& row, const CIter& col) const;
    \n-
    75
    \n-
    76 void createMatrix() const;
    \n-
    77 private:
    \n-
    78 class IndexMap
    \n-
    79 {
    \n-
    80 public:
    \n-
    81 typedef typename S::size_type size_type;
    \n-
    82 typedef std::map<size_type,size_type> Map;
    \n-
    83 typedef typename Map::iterator iterator;
    \n-
    84 typedef typename Map::const_iterator const_iterator;
    \n-
    85
    \n-
    86 IndexMap();
    \n-
    87
    \n-
    88 void insert(size_type grow);
    \n-
    89
    \n-
    90 const_iterator find(size_type grow) const;
    \n-
    91
    \n-
    92 iterator find(size_type grow);
    \n-
    93
    \n-
    94 iterator begin();
    \n-
    95
    \n-
    96 const_iterator begin() const;
    \n-
    97
    \n-
    98 iterator end();
    \n-
    99
    \n-
    100 const_iterator end() const;
    \n-
    101
    \n-
    102 private:
    \n-
    103 std::map<size_type,size_type> map_;
    \n-
    104 size_type row;
    \n-
    105 };
    \n-
    106
    \n-
    107
    \n-
    108 typedef typename InitializerList::iterator InitIterator;
    \n-
    109 typedef typename IndexSet::const_iterator IndexIteratur;
    \n-
    110 InitializerList* initializers;
    \n-
    111 const IndexSet *indices;
    \n-
    112 mutable std::vector<IndexMap> indexMaps;
    \n-
    113 const subdomain_vector& domains;
    \n-
    114 };
    \n-
    \n-
    115
    \n-
    \n-\n-
    120 {};
    \n-
    \n-
    121
    \n-
    \n-\n-
    126 {};
    \n-
    \n-
    127
    \n-\n-
    134
    \n-
    139 template<class M, class X, class Y>
    \n-\n-
    141
    \n-
    142 // Specialization for BCRSMatrix
    \n-
    143 template<class K, class Al, class X, class Y>
    \n-
    \n-\n-
    145 {
    \n-
    146 typedef BCRSMatrix< K, Al> M;
    \n-
    147 public:
    \n-
    149 typedef typename std::remove_const<M>::type matrix_type;
    \n-
    150 typedef typename X::field_type field_type;
    \n-
    151 typedef typename std::remove_const<M>::type rilu_type;
    \n-
    153 typedef X domain_type;
    \n-
    155 typedef Y range_type;
    \n-
    156 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<K>()))>::rows;
    \n-
    157
    \n-
    \n-
    162 void apply (DynamicVector<field_type>& v, DynamicVector<field_type>& d)
    \n-
    163 {
    \n-
    164 assert(v.size() > 0);
    \n-
    165 assert(v.size() == d.size());
    \n-
    166 assert(A.rows() <= v.size());
    \n-
    167 assert(A.cols() <= v.size());
    \n-
    168 size_t sz = A.rows();
    \n-
    169 v.resize(sz);
    \n-
    170 d.resize(sz);
    \n-
    171 A.solve(v,d);
    \n-
    172 v.resize(v.capacity());
    \n-
    173 d.resize(d.capacity());
    \n-
    174 }
    \n-
    \n-
    175
    \n-
    183 template<class S>
    \n-
    \n-
    184 void setSubMatrix(const M& BCRS, S& rowset)
    \n-
    185 {
    \n-
    186 size_t sz = rowset.size();
    \n-
    187 A.resize(sz*n,sz*n);
    \n-
    188 typedef typename S::const_iterator SIter;
    \n-
    189 size_t r = 0, c = 0;
    \n-
    190 for(SIter rowIdx = rowset.begin(), rowEnd=rowset.end();
    \n-
    191 rowIdx!= rowEnd; ++rowIdx, r++)
    \n-
    192 {
    \n-
    193 c = 0;
    \n-
    194 for(SIter colIdx = rowset.begin(), colEnd=rowset.end();
    \n-
    195 colIdx!= colEnd; ++colIdx, c++)
    \n-
    196 {
    \n-
    197 if (BCRS[*rowIdx].find(*colIdx) == BCRS[*rowIdx].end())
    \n-
    198 continue;
    \n-
    199 for (size_t i=0; i<n; i++)
    \n-
    200 {
    \n-
    201 for (size_t j=0; j<n; j++)
    \n-
    202 {
    \n-
    203 A[r*n+i][c*n+j] = Impl::asMatrix(BCRS[*rowIdx][*colIdx])[i][j];
    \n-
    204 }
    \n-
    205 }
    \n-
    206 }
    \n-
    207 }
    \n-
    208 }
    \n-
    \n-
    209 private:
    \n-
    210 DynamicMatrix<K> A;
    \n-
    211 };
    \n-
    \n-
    212
    \n-
    213 template<typename T, bool tag>
    \n-
    \n-\n-
    215 {};
    \n-
    \n-
    216
    \n-
    217 template<typename T>
    \n-\n-
    219
    \n-
    220 // specialization for DynamicMatrix
    \n-
    221 template<class K, class Al, class X, class Y>
    \n-
    \n-\n-
    223 {
    \n-
    224 public:
    \n-\n-
    226 typedef typename X::field_type field_type;
    \n-
    227 typedef Y range_type;
    \n-
    228 typedef typename range_type::block_type block_type;
    \n-\n-
    230 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<K>()))>::rows;
    \n-
    238 OverlappingAssignerHelper(std::size_t maxlength, const BCRSMatrix<K, Al>& mat_, const X& b_, Y& x_);
    \n-
    239
    \n-
    243 inline
    \n-
    244 void deallocate();
    \n-
    245
    \n-
    249 inline
    \n-
    250 void resetIndexForNextDomain();
    \n-
    251
    \n-
    256 inline
    \n-
    257 DynamicVector<field_type> & lhs();
    \n-
    258
    \n-
    263 inline
    \n-
    264 DynamicVector<field_type> & rhs();
    \n-
    265
    \n-
    270 inline
    \n-
    271 void relaxResult(field_type relax);
    \n-
    272
    \n-
    277 void operator()(const size_type& domainIndex);
    \n-
    278
    \n-
    286 inline
    \n-
    287 void assignResult(block_type& res);
    \n-
    288
    \n-
    289 private:
    \n-
    293 const matrix_type* mat;
    \n-
    295 // we need a pointer, because we have to avoid deep copies
    \n-
    296 DynamicVector<field_type> * rhs_;
    \n-
    298 // we need a pointer, because we have to avoid deep copies
    \n-
    299 DynamicVector<field_type> * lhs_;
    \n-
    301 const range_type* b;
    \n-
    303 range_type* x;
    \n-
    305 std::size_t i;
    \n-
    307 std::size_t maxlength_;
    \n-
    308 };
    \n-
    \n-
    309
    \n-
    310#if HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n-
    311 template<template<class> class S, typename T, typename A>
    \n-
    \n-\n-
    313 {
    \n-\n-
    315 typedef typename S<BCRSMatrix<T, A>>::range_type range_type;
    \n-
    316 typedef typename range_type::field_type field_type;
    \n-
    317 typedef typename range_type::block_type block_type;
    \n-
    318
    \n-\n-
    320
    \n-
    321 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<T>()))>::rows;
    \n-
    322 static constexpr size_t m = std::decay_t<decltype(Impl::asMatrix(std::declval<T>()))>::cols;
    \n-
    330 OverlappingAssignerHelper(std::size_t maxlength, const matrix_type& mat,
    \n-
    331 const range_type& b, range_type& x);
    \n-
    337 void deallocate();
    \n-
    338
    \n-
    339 /*
    \n-
    340 * @brief Resets the local index to zero.
    \n-
    341 */
    \n-
    342 void resetIndexForNextDomain();
    \n-
    343
    \n-
    348 field_type* lhs();
    \n-
    349
    \n-
    354 field_type* rhs();
    \n-
    355
    \n-
    360 void relaxResult(field_type relax);
    \n-
    361
    \n-
    366 void operator()(const size_type& domain);
    \n-
    367
    \n-
    375 void assignResult(block_type& res);
    \n-
    376
    \n-
    377 private:
    \n-
    381 const matrix_type* mat;
    \n-
    383 field_type* rhs_;
    \n-
    385 field_type* lhs_;
    \n-
    387 const range_type* b;
    \n-
    389 range_type* x;
    \n-
    391 std::size_t i;
    \n-
    393 std::size_t maxlength_;
    \n-
    394 };
    \n-
    \n-
    395
    \n-
    396#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n-
    397
    \n-
    398 template<class M, class X, class Y>
    \n-
    \n-\n-
    400 {
    \n-
    401 public:
    \n-
    402 typedef M matrix_type;
    \n-
    403
    \n-
    404 typedef typename Y::field_type field_type;
    \n-
    405
    \n-
    406 typedef typename Y::block_type block_type;
    \n-
    407
    \n-
    408 typedef typename matrix_type::size_type size_type;
    \n-
    416 OverlappingAssignerILUBase(std::size_t maxlength, const M& mat,
    \n-
    417 const Y& b, X& x);
    \n-
    423 void deallocate();
    \n-
    424
    \n-\n-
    429
    \n-
    434 X& lhs();
    \n-
    435
    \n-
    440 Y& rhs();
    \n-
    441
    \n-
    446 void relaxResult(field_type relax);
    \n-
    447
    \n-
    452 void operator()(const size_type& domain);
    \n-
    453
    \n-
    461 void assignResult(block_type& res);
    \n-
    462
    \n-
    463 private:
    \n-
    467 const M* mat;
    \n-
    469 X* lhs_;
    \n-
    471 Y* rhs_;
    \n-
    473 const Y* b;
    \n-
    475 X* x;
    \n-
    477 size_type i;
    \n-
    478 };
    \n-
    \n-
    479
    \n-
    480 // specialization for ILU0
    \n-
    481 template<class M, class X, class Y>
    \n-
    \n-\n-
    483 : public OverlappingAssignerILUBase<M,X,Y>
    \n-
    484 {
    \n-
    485 public:
    \n-
    \n-
    493 OverlappingAssignerHelper(std::size_t maxlength, const M& mat,
    \n-
    494 const Y& b, X& x)
    \n-
    495 : OverlappingAssignerILUBase<M,X,Y>(maxlength, mat,b,x)
    \n-
    496 {}
    \n-
    \n-
    497 };
    \n-
    \n-
    498
    \n-
    499 // specialization for ILUN
    \n-
    500 template<class M, class X, class Y>
    \n-
    \n-\n-
    502 : public OverlappingAssignerILUBase<M,X,Y>
    \n-
    503 {
    \n-
    504 public:
    \n-
    \n-
    512 OverlappingAssignerHelper(std::size_t maxlength, const M& mat,
    \n-
    513 const Y& b, X& x)
    \n-
    514 : OverlappingAssignerILUBase<M,X,Y>(maxlength, mat,b,x)
    \n-
    515 {}
    \n-
    \n-
    516 };
    \n-
    \n-
    517
    \n-
    518 template<typename S, typename T>
    \n-
    \n-\n-
    520 {};
    \n-
    \n-
    521
    \n-
    522 template<typename S, typename T, typename A>
    \n-
    \n-
    523 struct AdditiveAdder<S, BlockVector<T,A> >
    \n-
    524 {
    \n-
    525 typedef typename A::size_type size_type;
    \n-
    526 typedef typename std::decay_t<decltype(Impl::asVector(std::declval<T>()))>::field_type field_type;
    \n-\n-
    528 OverlappingAssigner<S>& assigner, const field_type& relax_);
    \n-
    529 void operator()(const size_type& domain);
    \n-
    530 void axpy();
    \n-
    531 static constexpr size_t n = std::decay_t<decltype(Impl::asVector(std::declval<T>()))>::dimension;
    \n-
    532
    \n-
    533 private:
    \n-\n-\n-
    536 OverlappingAssigner<S>* assigner;
    \n-
    537 field_type relax;
    \n-
    538 };
    \n-
    \n-
    539
    \n-
    540 template<typename S,typename T>
    \n-
    \n-\n-
    542 {};
    \n-
    \n-
    543
    \n-
    544 template<typename S, typename T, typename A>
    \n-
    \n-\n-
    546 {
    \n-
    547 typedef typename A::size_type size_type;
    \n-
    548 typedef typename std::decay_t<decltype(Impl::asVector(std::declval<T>()))>::field_type field_type;
    \n-\n-
    550 OverlappingAssigner<S>& assigner_, const field_type& relax_);
    \n-
    551 void operator()(const size_type& domain);
    \n-
    552 void axpy();
    \n-
    553 static constexpr size_t n = std::decay_t<decltype(Impl::asVector(std::declval<T>()))>::dimension;
    \n-
    554
    \n-
    555 private:
    \n-\n-
    557 OverlappingAssigner<S>* assigner;
    \n-
    558 field_type relax;
    \n-
    559 };
    \n-
    \n-
    560
    \n-
    570 template<typename T, class X, class S>
    \n-
    \n-\n-
    572 {};
    \n-
    \n-
    573
    \n-
    574 template<class X, class S>
    \n-
    \n-\n-
    576 {
    \n-\n-
    578 };
    \n-
    \n-
    579
    \n-
    580 template<class X, class S>
    \n-
    \n-\n-
    582 {
    \n-\n-
    584 };
    \n-
    \n-
    585
    \n-
    586 template<class X, class S>
    \n-\n-
    591
    \n-
    603 template<typename T1, typename T2, bool forward>
    \n-
    \n-\n-
    605 {
    \n-
    606 typedef T1 solver_vector;
    \n-
    607 typedef typename solver_vector::iterator solver_iterator;
    \n-\n-
    609 typedef typename subdomain_vector::const_iterator domain_iterator;
    \n-
    610
    \n-
    \n-\n-
    612 {
    \n-
    613 return sv.begin();
    \n-
    614 }
    \n-
    \n-
    615
    \n-
    \n-\n-
    617 {
    \n-
    618 return sv.end();
    \n-
    619 }
    \n-
    \n-
    \n-\n-
    621 {
    \n-
    622 return sv.begin();
    \n-
    623 }
    \n-
    \n-
    624
    \n-
    \n-\n-
    626 {
    \n-
    627 return sv.end();
    \n-
    628 }
    \n-
    \n-
    629 };
    \n-
    \n-
    630
    \n-
    631 template<typename T1, typename T2>
    \n-
    \n-
    632 struct IteratorDirectionSelector<T1,T2,false>
    \n-
    633 {
    \n-
    634 typedef T1 solver_vector;
    \n-
    635 typedef typename solver_vector::reverse_iterator solver_iterator;
    \n-\n-
    637 typedef typename subdomain_vector::const_reverse_iterator domain_iterator;
    \n-
    638
    \n-
    \n-\n-
    640 {
    \n-
    641 return sv.rbegin();
    \n-
    642 }
    \n-
    \n-
    643
    \n-
    \n-\n-
    645 {
    \n-
    646 return sv.rend();
    \n-
    647 }
    \n-
    \n-
    \n-\n-
    649 {
    \n-
    650 return sv.rbegin();
    \n-
    651 }
    \n-
    \n-
    652
    \n-
    \n-\n-
    654 {
    \n-
    655 return sv.rend();
    \n-
    656 }
    \n-
    \n-
    657 };
    \n-
    \n-
    658
    \n-
    667 template<class T>
    \n-
    \n-\n-
    669 {
    \n-
    670 typedef T smoother;
    \n-
    671 typedef typename smoother::range_type range_type;
    \n-
    672
    \n-
    \n-
    673 static void apply(smoother& sm, range_type& v, const range_type& b)
    \n-
    674 {
    \n-
    675 sm.template apply<true>(v, b);
    \n-
    676 }
    \n-
    \n-
    677 };
    \n-
    \n-
    678
    \n-
    679 template<class M, class X, class TD, class TA>
    \n-
    \n-\n-
    681 {
    \n-\n-\n-
    684
    \n-
    \n-
    685 static void apply(smoother& sm, range_type& v, const range_type& b)
    \n-
    686 {
    \n-
    687 sm.template apply<true>(v, b);
    \n-
    688 sm.template apply<false>(v, b);
    \n-
    689 }
    \n-
    \n-
    690 };
    \n-
    \n-
    691
    \n-
    692 template<class T, bool tag>
    \n-\n-
    695
    \n-
    696 template<class T>
    \n-\n-
    698
    \n-
    699 template<class K, class Al, class X, class Y>
    \n-
    \n-\n-
    701 {
    \n-\n-
    703 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<K>()))>::rows;
    \n-
    704 template<class RowToDomain, class Solvers, class SubDomains>
    \n-
    705 static std::size_t assembleLocalProblems(const RowToDomain& rowToDomain, const matrix_type& mat,
    \n-
    706 Solvers& solvers, const SubDomains& domains,
    \n-
    707 bool onTheFly);
    \n-
    708 };
    \n-
    \n-
    709
    \n-
    710 template<template<class> class S, typename T, typename A>
    \n-
    \n-\n-
    712 {
    \n-\n-
    714 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<T>()))>::rows;
    \n-
    715 template<class RowToDomain, class Solvers, class SubDomains>
    \n-
    716 static std::size_t assembleLocalProblems(const RowToDomain& rowToDomain, const matrix_type& mat,
    \n-
    717 Solvers& solvers, const SubDomains& domains,
    \n-
    718 bool onTheFly);
    \n-
    719 };
    \n-
    \n-
    720
    \n-
    721 template<class M,class X, class Y>
    \n-
    \n-\n-
    723 {
    \n-
    724 typedef M matrix_type;
    \n-
    725 template<class RowToDomain, class Solvers, class SubDomains>
    \n-
    726 static std::size_t assembleLocalProblems(const RowToDomain& rowToDomain, const matrix_type& mat,
    \n-
    727 Solvers& solvers, const SubDomains& domains,
    \n-
    728 bool onTheFly);
    \n-
    729 };
    \n-
    \n-
    730
    \n-
    731 template<class M,class X, class Y>
    \n-
    \n-\n-\n-
    734 {};
    \n-
    \n-
    735
    \n-
    736 template<class M,class X, class Y>
    \n-
    \n-\n-\n-
    739 {};
    \n-
    \n-
    740
    \n-
    751 template<class M, class X, class TM=AdditiveSchwarzMode,
    \n-
    752 class TD=ILU0SubdomainSolver<M,X,X>, class TA=std::allocator<X> >
    \n-
    \n-\n-
    754 : public Preconditioner<X,X>
    \n-
    755 {
    \n-
    756 public:
    \n-
    760 typedef M matrix_type;
    \n-
    761
    \n-
    765 typedef X domain_type;
    \n-
    766
    \n-
    770 typedef X range_type;
    \n-
    771
    \n-
    778 typedef TM Mode;
    \n-
    779
    \n-
    783 typedef typename X::field_type field_type;
    \n-
    784
    \n-
    786 typedef typename matrix_type::size_type size_type;
    \n-
    787
    \n-
    789 typedef TA allocator;
    \n-
    790
    \n-
    792 typedef std::set<size_type, std::less<size_type>,
    \n-
    793 typename std::allocator_traits<TA>::template rebind_alloc<size_type> >
    \n-\n-
    795
    \n-
    797 typedef std::vector<subdomain_type, typename std::allocator_traits<TA>::template rebind_alloc<subdomain_type> > subdomain_vector;
    \n-
    798
    \n-\n-
    801
    \n-
    803 typedef std::vector<subdomain_list, typename std::allocator_traits<TA>::template rebind_alloc<subdomain_list> > rowtodomain_vector;
    \n-
    804
    \n-
    806 typedef TD slu;
    \n-
    807
    \n-
    809 typedef std::vector<slu, typename std::allocator_traits<TA>::template rebind_alloc<slu> > slu_vector;
    \n-
    810
    \n-
    \n-\n-
    825 field_type relaxationFactor=1, bool onTheFly_=true);
    \n-
    826
    \n-
    \n-\n-
    839 field_type relaxationFactor=1, bool onTheFly_=true);
    \n-
    840
    \n-
    \n-
    846 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] X& b)
    \n-
    847 {}
    \n-
    \n-
    848
    \n-
    \n-
    854 virtual void apply (X& v, const X& d);
    \n-
    855
    \n-
    \n-
    861 virtual void post ([[maybe_unused]] X& x)
    \n-
    862 {}
    \n-
    \n-
    863
    \n-
    864 template<bool forward>
    \n-
    \n-
    865 void apply(X& v, const X& d);
    \n-
    866
    \n-
    \n-\n-
    869 {
    \n-\n-
    871 }
    \n-
    \n-
    872
    \n-
    873 private:
    \n-
    874 const M& mat;
    \n-
    875 slu_vector solvers;
    \n-
    876 subdomain_vector subDomains;
    \n-
    877 field_type relax;
    \n-
    878
    \n-
    879 typename M::size_type maxlength;
    \n-
    880
    \n-
    881 bool onTheFly;
    \n-
    882 };
    \n-
    883
    \n-
    884
    \n-
    885
    \n-
    886 template<class I, class S, class D>
    \n-
    \n-\n-
    888 const IndexSet& idx,
    \n-
    889 const subdomain_vector& domains_)
    \n-
    890 : initializers(&il), indices(&idx), indexMaps(il.size()), domains(domains_)
    \n-
    891 {}
    \n-
    \n-
    892
    \n-
    893
    \n-
    894 template<class I, class S, class D>
    \n-
    \n-\n-
    896 {
    \n-
    897 typedef typename IndexSet::value_type::const_iterator iterator;
    \n-
    898 for(iterator domain=(*indices)[row.index()].begin(); domain != (*indices)[row.index()].end(); ++domain) {
    \n-
    899 (*initializers)[*domain].addRowNnz(row, domains[*domain]);
    \n-
    900 indexMaps[*domain].insert(row.index());
    \n-
    901 }
    \n-
    902 }
    \n-
    \n-
    903
    \n-
    904 template<class I, class S, class D>
    \n-
    \n-\n-
    906 {
    \n-
    907 for(auto&& i: *initializers)
    \n-
    908 i.allocateMatrixStorage();
    \n-
    909 for(auto&& i: *initializers)
    \n-
    910 i.allocateMarker();
    \n-
    911 }
    \n-
    \n-
    912
    \n-
    913 template<class I, class S, class D>
    \n-
    \n-\n-
    915 {
    \n-
    916 typedef typename IndexSet::value_type::const_iterator iterator;
    \n-
    917 for(iterator domain=(*indices)[row.index()].begin(); domain != (*indices)[row.index()].end(); ++domain) {
    \n-
    918 typename std::map<size_type,size_type>::const_iterator v = indexMaps[*domain].find(col.index());
    \n-
    919 if(v!= indexMaps[*domain].end()) {
    \n-
    920 (*initializers)[*domain].countEntries(indexMaps[*domain].find(col.index())->second);
    \n-
    921 }
    \n-
    922 }
    \n-
    923 }
    \n-
    \n-
    924
    \n-
    925 template<class I, class S, class D>
    \n-
    \n-\n-
    927 {
    \n-
    928 for(auto&& i : *initializers)
    \n-
    929 i.calcColstart();
    \n-
    930 }
    \n-
    \n-
    931
    \n-
    932 template<class I, class S, class D>
    \n-
    \n-\n-
    934 {
    \n-
    935 typedef typename IndexSet::value_type::const_iterator iterator;
    \n-
    936 for(iterator domain=(*indices)[row.index()].begin(); domain!= (*indices)[row.index()].end(); ++domain) {
    \n-
    937 typename std::map<size_type,size_type>::const_iterator v = indexMaps[*domain].find(col.index());
    \n-
    938 if(v!= indexMaps[*domain].end()) {
    \n-
    939 assert(indexMaps[*domain].end()!=indexMaps[*domain].find(row.index()));
    \n-
    940 (*initializers)[*domain].copyValue(col, indexMaps[*domain].find(row.index())->second,
    \n-
    941 v->second);
    \n-
    942 }
    \n-
    943 }
    \n-
    944 }
    \n-
    \n-
    945
    \n-
    946 template<class I, class S, class D>
    \n-
    \n-\n-
    948 {
    \n-
    949 std::vector<IndexMap>().swap(indexMaps);
    \n-
    950 for(auto&& i: *initializers)
    \n-
    951 i.createMatrix();
    \n-
    952 }
    \n+
    5#ifndef DUNE_ISTL_PRECONDITIONER_HH
    \n+
    6#define DUNE_ISTL_PRECONDITIONER_HH
    \n+
    7
    \n+
    8#include <dune/common/exceptions.hh>
    \n+
    9
    \n+
    10#include "solvercategory.hh"
    \n+
    11
    \n+
    12namespace Dune {
    \n+
    17 //=====================================================================
    \n+
    30 //=====================================================================
    \n+
    31 template<class X, class Y>
    \n+
    \n+\n+
    33 public:
    \n+
    35 typedef X domain_type;
    \n+
    37 typedef Y range_type;
    \n+
    39 typedef typename X::field_type field_type;
    \n+
    40
    \n+
    69 virtual void pre (X& x, Y& b) = 0;
    \n+
    70
    \n+
    81 virtual void apply (X& v, const Y& d) = 0;
    \n+
    82
    \n+
    91 virtual void post (X& x) = 0;
    \n+
    92
    \n+\n+
    95#if DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
    \n+
    96 {
    \n+
    97 DUNE_THROW(Dune::Exception,"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
    \n+
    98 }
    \n+
    99#else
    \n+
    100 = 0;
    \n+
    101#endif
    \n+
    102
    \n+
    104 virtual ~Preconditioner () {}
    \n+
    105
    \n+
    106 };
    \n
    \n-
    953
    \n-
    954 template<class I, class S, class D>
    \n-\n-
    958
    \n-
    959 template<class I, class S, class D>
    \n-
    \n-\n-
    961 {
    \n-
    962 assert(map_.find(grow)==map_.end());
    \n-
    963 map_.insert(std::make_pair(grow, row++));
    \n-
    964 }
    \n-
    \n-
    965
    \n-
    966 template<class I, class S, class D>
    \n-
    967 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::const_iterator
    \n-
    \n-\n-
    969 {
    \n-
    970 return map_.find(grow);
    \n-
    971 }
    \n-
    \n-
    972
    \n-
    973 template<class I, class S, class D>
    \n-
    974 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::iterator
    \n-
    \n-\n-
    976 {
    \n-
    977 return map_.find(grow);
    \n-
    978 }
    \n-
    \n-
    979
    \n-
    980 template<class I, class S, class D>
    \n-
    981 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::const_iterator
    \n-
    \n-\n-
    983 {
    \n-
    984 return map_.end();
    \n-
    985 }
    \n-
    \n-
    986
    \n-
    987 template<class I, class S, class D>
    \n-
    988 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::iterator
    \n-
    \n-\n-
    990 {
    \n-
    991 return map_.end();
    \n-
    992 }
    \n-
    \n-
    993
    \n-
    994 template<class I, class S, class D>
    \n-
    995 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::const_iterator
    \n-
    \n-\n-
    997 {
    \n-
    998 return map_.begin();
    \n-
    999 }
    \n-
    \n-
    1000
    \n-
    1001 template<class I, class S, class D>
    \n-
    1002 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::iterator
    \n-
    \n-\n-
    1004 {
    \n-
    1005 return map_.begin();
    \n-
    1006 }
    \n-
    \n-
    1007
    \n-
    1008 template<class M, class X, class TM, class TD, class TA>
    \n-
    \n-\n-
    1010 field_type relaxationFactor, bool fly)
    \n-
    1011 : mat(mat_), relax(relaxationFactor), onTheFly(fly)
    \n-
    1012 {
    \n-
    1013 typedef typename rowtodomain_vector::const_iterator RowDomainIterator;
    \n-
    1014 typedef typename subdomain_list::const_iterator DomainIterator;
    \n-
    1015#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1016 assert(rowToDomain.size()==mat.N());
    \n-
    1017 assert(rowToDomain.size()==mat.M());
    \n-
    1018
    \n-
    1019 for(RowDomainIterator iter=rowToDomain.begin(); iter != rowToDomain.end(); ++iter)
    \n-
    1020 assert(iter->size()>0);
    \n-
    1021
    \n-
    1022#endif
    \n-
    1023 // calculate the number of domains
    \n-
    1024 size_type domains=0;
    \n-
    1025 for(RowDomainIterator iter=rowToDomain.begin(); iter != rowToDomain.end(); ++iter)
    \n-
    1026 for(DomainIterator d=iter->begin(); d != iter->end(); ++d)
    \n-
    1027 domains=std::max(domains, *d);
    \n-
    1028 ++domains;
    \n-
    1029
    \n-
    1030 solvers.resize(domains);
    \n-
    1031 subDomains.resize(domains);
    \n-
    1032
    \n-
    1033 // initialize subdomains to row mapping from row to subdomain mapping
    \n-
    1034 size_type row=0;
    \n-
    1035 for(RowDomainIterator iter=rowToDomain.begin(); iter != rowToDomain.end(); ++iter, ++row)
    \n-
    1036 for(DomainIterator d=iter->begin(); d != iter->end(); ++d)
    \n-
    1037 subDomains[*d].insert(row);
    \n-
    1038
    \n-
    1039#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1040 size_type i=0;
    \n-
    1041 typedef typename subdomain_vector::const_iterator iterator;
    \n-
    1042 for(iterator iter=subDomains.begin(); iter != subDomains.end(); ++iter) {
    \n-
    1043 typedef typename subdomain_type::const_iterator entry_iterator;
    \n-
    1044 Dune::dvverb<<"domain "<<i++<<":";
    \n-
    1045 for(entry_iterator entry = iter->begin(); entry != iter->end(); ++entry) {
    \n-
    1046 Dune::dvverb<<" "<<*entry;
    \n-
    1047 }
    \n-
    1048 Dune::dvverb<<std::endl;
    \n-
    1049 }
    \n-
    1050#endif
    \n-\n-
    1052 ::assembleLocalProblems(rowToDomain, mat, solvers, subDomains, onTheFly);
    \n-
    1053 }
    \n-
    \n-
    1054
    \n-
    1055 template<class M, class X, class TM, class TD, class TA>
    \n-
    \n-\n-
    1057 const subdomain_vector& sd,
    \n-
    1058 field_type relaxationFactor,
    \n-
    1059 bool fly)
    \n-
    1060 : mat(mat_), solvers(sd.size()), subDomains(sd), relax(relaxationFactor),
    \n-
    1061 onTheFly(fly)
    \n-
    1062 {
    \n-
    1063 typedef typename subdomain_vector::const_iterator DomainIterator;
    \n-
    1064
    \n-
    1065#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1066 size_type i=0;
    \n-
    1067
    \n-
    1068 for(DomainIterator d=sd.begin(); d != sd.end(); ++d,++i) {
    \n-
    1069 //std::cout<<i<<": "<<d->size()<<std::endl;
    \n-
    1070 assert(d->size()>0);
    \n-
    1071 typedef typename DomainIterator::value_type::const_iterator entry_iterator;
    \n-
    1072 Dune::dvverb<<"domain "<<i<<":";
    \n-
    1073 for(entry_iterator entry = d->begin(); entry != d->end(); ++entry) {
    \n-
    1074 Dune::dvverb<<" "<<*entry;
    \n-
    1075 }
    \n-
    1076 Dune::dvverb<<std::endl;
    \n-
    1077 }
    \n-
    1078
    \n-
    1079#endif
    \n-
    1080
    \n-
    1081 // Create a row to subdomain mapping
    \n-\n-
    1083
    \n-\n-
    1085
    \n-
    1086 for(DomainIterator domain=sd.begin(); domain != sd.end(); ++domain, ++domainId) {
    \n-
    1087 typedef typename subdomain_type::const_iterator iterator;
    \n-
    1088 for(iterator row=domain->begin(); row != domain->end(); ++row)
    \n-
    1089 rowToDomain[*row].push_back(domainId);
    \n-
    1090 }
    \n-
    1091
    \n-\n-
    1093 ::assembleLocalProblems(rowToDomain, mat, solvers, subDomains, onTheFly);
    \n-
    1094 }
    \n-
    \n-
    1095
    \n-
    1102 template<class M>
    \n-\n-
    1104
    \n-
    1105 template<typename T, typename A>
    \n-
    \n-\n-
    1107 {
    \n-
    1108 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<T>()))>::rows;
    \n-
    1109 static constexpr size_t m = std::decay_t<decltype(Impl::asMatrix(std::declval<T>()))>::cols;
    \n-
    1110 template<class Domain>
    \n-
    \n-
    1111 static int size(const Domain & d)
    \n-
    1112 {
    \n-
    1113 assert(n==m);
    \n-
    1114 return m*d.size();
    \n-
    1115 }
    \n-
    \n-
    1116 };
    \n-
    \n-
    1117
    \n-
    1118 template<class K, class Al, class X, class Y>
    \n-
    1119 template<class RowToDomain, class Solvers, class SubDomains>
    \n-
    1120 std::size_t
    \n-
    \n-\n-
    1122 assembleLocalProblems([[maybe_unused]] const RowToDomain& rowToDomain,
    \n-
    1123 [[maybe_unused]] const matrix_type& mat,
    \n-
    1124 [[maybe_unused]] Solvers& solvers,
    \n-
    1125 const SubDomains& subDomains,
    \n-
    1126 [[maybe_unused]] bool onTheFly)
    \n-
    1127 {
    \n-
    1128 typedef typename SubDomains::const_iterator DomainIterator;
    \n-
    1129 std::size_t maxlength = 0;
    \n-
    1130
    \n-
    1131 assert(onTheFly);
    \n-
    1132
    \n-
    1133 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end(); ++domain)
    \n-
    1134 maxlength=std::max(maxlength, domain->size());
    \n-
    1135 maxlength*=n;
    \n-
    1136
    \n-
    1137 return maxlength;
    \n-
    1138 }
    \n-
    \n-
    1139
    \n-
    1140#if HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n-
    1141 template<template<class> class S, typename T, typename A>
    \n-
    1142 template<class RowToDomain, class Solvers, class SubDomains>
    \n-
    \n-
    1143 std::size_t SeqOverlappingSchwarzAssemblerHelper<S<BCRSMatrix<T,A>>,true>::assembleLocalProblems(const RowToDomain& rowToDomain,
    \n-
    1144 const matrix_type& mat,
    \n-
    1145 Solvers& solvers,
    \n-
    1146 const SubDomains& subDomains,
    \n-
    1147 bool onTheFly)
    \n-
    1148 {
    \n-
    1149 typedef typename S<BCRSMatrix<T,A>>::MatrixInitializer MatrixInitializer;
    \n-
    1150 typedef typename std::vector<MatrixInitializer>::iterator InitializerIterator;
    \n-
    1151 typedef typename SubDomains::const_iterator DomainIterator;
    \n-
    1152 typedef typename Solvers::iterator SolverIterator;
    \n-
    1153 std::size_t maxlength = 0;
    \n-
    1154
    \n-
    1155 if(onTheFly) {
    \n-
    1156 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end(); ++domain)
    \n-
    1157 maxlength=std::max(maxlength, domain->size());
    \n-
    1158 maxlength*=Impl::asMatrix(*mat[0].begin()).N();
    \n-
    1159 }else{
    \n-
    1160 // initialize the initializers
    \n-
    1161 DomainIterator domain=subDomains.begin();
    \n-
    1162
    \n-
    1163 // Create the initializers list.
    \n-
    1164 std::vector<MatrixInitializer> initializers(subDomains.size());
    \n-
    1165
    \n-
    1166 SolverIterator solver=solvers.begin();
    \n-
    1167 for(InitializerIterator initializer=initializers.begin(); initializer!=initializers.end();
    \n-
    1168 ++initializer, ++solver, ++domain) {
    \n-
    1169 solver->getInternalMatrix().N_=SeqOverlappingSchwarzDomainSize<matrix_type>::size(*domain);
    \n-
    1170 solver->getInternalMatrix().M_=SeqOverlappingSchwarzDomainSize<matrix_type>::size(*domain);
    \n-
    1171 //solver->setVerbosity(true);
    \n-
    1172 *initializer=MatrixInitializer(solver->getInternalMatrix());
    \n-
    1173 }
    \n-
    1174
    \n-
    1175 // Set up the supermatrices according to the subdomains
    \n-\n-
    1177 RowToDomain, SubDomains> Initializer;
    \n-
    1178
    \n-
    1179 Initializer initializer(initializers, rowToDomain, subDomains);
    \n-
    1180 copyToBCCSMatrix(initializer, mat);
    \n-
    1181
    \n-
    1182 // Calculate the LU decompositions
    \n-
    1183 for(auto&& s: solvers)
    \n-
    1184 s.decompose();
    \n-
    1185 for (SolverIterator solverIt = solvers.begin(); solverIt != solvers.end(); ++solverIt)
    \n-
    1186 {
    \n-
    1187 assert(solverIt->getInternalMatrix().N() == solverIt->getInternalMatrix().M());
    \n-
    1188 maxlength = std::max(maxlength, solverIt->getInternalMatrix().N());
    \n-
    1189 }
    \n-
    1190 }
    \n-
    1191 return maxlength;
    \n-
    1192 }
    \n-
    \n-
    1193
    \n-
    1194#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n-
    1195
    \n-
    1196 template<class M,class X,class Y>
    \n-
    1197 template<class RowToDomain, class Solvers, class SubDomains>
    \n-
    \n-
    1198 std::size_t SeqOverlappingSchwarzAssemblerILUBase<M,X,Y>::assembleLocalProblems([[maybe_unused]] const RowToDomain& rowToDomain,
    \n-
    1199 const matrix_type& mat,
    \n-
    1200 Solvers& solvers,
    \n-
    1201 const SubDomains& subDomains,
    \n-
    1202 bool onTheFly)
    \n-
    1203 {
    \n-
    1204 typedef typename SubDomains::const_iterator DomainIterator;
    \n-
    1205 typedef typename Solvers::iterator SolverIterator;
    \n-
    1206 std::size_t maxlength = 0;
    \n-
    1207
    \n-
    1208 if(onTheFly) {
    \n-
    1209 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end(); ++domain)
    \n-
    1210 maxlength=std::max(maxlength, domain->size());
    \n-
    1211 }else{
    \n-
    1212 // initialize the solvers of the local prolems.
    \n-
    1213 SolverIterator solver=solvers.begin();
    \n-
    1214 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end();
    \n-
    1215 ++domain, ++solver) {
    \n-
    1216 solver->setSubMatrix(mat, *domain);
    \n-
    1217 maxlength=std::max(maxlength, domain->size());
    \n-
    1218 }
    \n-
    1219 }
    \n-
    1220
    \n-
    1221 return maxlength;
    \n-
    1222
    \n-
    1223 }
    \n-
    \n-
    1224
    \n-
    1225
    \n-
    1226 template<class M, class X, class TM, class TD, class TA>
    \n-
    \n-\n-
    1228 {
    \n-\n-
    1230 }
    \n-
    \n-
    1231
    \n-
    1232 template<class M, class X, class TM, class TD, class TA>
    \n-
    1233 template<bool forward>
    \n-
    \n-\n-
    1235 {
    \n-
    1236 typedef slu_vector solver_vector;
    \n-\n-\n-
    1239 domain_iterator;
    \n-
    1240
    \n-
    1241 OverlappingAssigner<TD> assigner(maxlength, mat, b, x);
    \n-
    1242
    \n-\n-\n-
    1245 X v(x); // temporary for the update
    \n-
    1246 v=0;
    \n-
    1247
    \n-
    1248 typedef typename AdderSelector<TM,X,TD >::Adder Adder;
    \n-
    1249 Adder adder(v, x, assigner, relax);
    \n-
    1250
    \n-\n-
    1252 //Copy rhs to C-array for SuperLU
    \n-
    1253 std::for_each(domain->begin(), domain->end(), assigner);
    \n-
    1254 assigner.resetIndexForNextDomain();
    \n-
    1255 if(onTheFly) {
    \n-
    1256 // Create the subdomain solver
    \n-
    1257 slu sdsolver;
    \n-
    1258 sdsolver.setSubMatrix(mat, *domain);
    \n-
    1259 // Apply
    \n-
    1260 sdsolver.apply(assigner.lhs(), assigner.rhs());
    \n-
    1261 }else{
    \n-
    1262 solver->apply(assigner.lhs(), assigner.rhs());
    \n-
    1263 ++solver;
    \n-
    1264 }
    \n-
    1265
    \n-
    1266 //Add relaxed correction to from SuperLU to v
    \n-
    1267 std::for_each(domain->begin(), domain->end(), adder);
    \n-
    1268 assigner.resetIndexForNextDomain();
    \n-
    1269
    \n-
    1270 }
    \n-
    1271
    \n-
    1272 adder.axpy();
    \n-
    1273 assigner.deallocate();
    \n-
    1274 }
    \n-
    \n-
    \n-
    1275
    \n-
    1276 template<class K, class Al, class X, class Y>
    \n-\n-
    \n-
    1278 ::OverlappingAssignerHelper(std::size_t maxlength, const BCRSMatrix<K, Al>& mat_,
    \n-
    1279 const X& b_, Y& x_) :
    \n-
    1280 mat(&mat_),
    \n-
    1281 rhs_( new DynamicVector<field_type>(maxlength, 42) ),
    \n-
    1282 lhs_( new DynamicVector<field_type>(maxlength, -42) ),
    \n-
    1283 b(&b_),
    \n-
    1284 x(&x_),
    \n-
    1285 i(0),
    \n-
    1286 maxlength_(maxlength)
    \n-
    1287 {}
    \n-
    \n-
    1288
    \n-
    1289 template<class K, class Al, class X, class Y>
    \n-
    1290 void
    \n-\n-
    \n-
    1292 ::deallocate()
    \n-
    1293 {
    \n-
    1294 delete rhs_;
    \n-
    1295 delete lhs_;
    \n-
    1296 }
    \n-
    \n-
    1297
    \n-
    1298 template<class K, class Al, class X, class Y>
    \n-
    1299 void
    \n-\n-
    \n-
    1301 ::resetIndexForNextDomain()
    \n-
    1302 {
    \n-
    1303 i=0;
    \n-
    1304 }
    \n-
    \n-
    1305
    \n-
    1306 template<class K, class Al, class X, class Y>
    \n-
    1307 DynamicVector<typename X::field_type> &
    \n-\n-
    \n-
    1309 ::lhs()
    \n-
    1310 {
    \n-
    1311 return *lhs_;
    \n-
    1312 }
    \n-
    \n-
    1313
    \n-
    1314 template<class K, class Al, class X, class Y>
    \n-
    1315 DynamicVector<typename X::field_type> &
    \n-\n-
    \n-
    1317 ::rhs()
    \n-
    1318 {
    \n-
    1319 return *rhs_;
    \n-
    1320 }
    \n-
    \n-
    1321
    \n-
    1322 template<class K, class Al, class X, class Y>
    \n-
    1323 void
    \n-\n-
    \n-
    1325 ::relaxResult(field_type relax)
    \n-
    1326 {
    \n-
    1327 lhs() *= relax;
    \n-
    1328 }
    \n-
    \n-
    1329
    \n-
    1330 template<class K, class Al, class X, class Y>
    \n-
    1331 void
    \n-\n-
    \n-
    1333 ::operator()(const size_type& domainIndex)
    \n-
    1334 {
    \n-
    1335 lhs() = 0.0;
    \n-
    1336#if 0
    \n-
    1337 //assign right hand side of current domainindex block
    \n-
    1338 for(size_type j=0; j<n; ++j, ++i) {
    \n-
    1339 assert(i<maxlength_);
    \n-
    1340 rhs()[i]=(*b)[domainIndex][j];
    \n-
    1341 }
    \n-
    1342
    \n-
    1343 // loop over all Matrix row entries and calculate defect.
    \n-
    1344 typedef typename matrix_type::ConstColIterator col_iterator;
    \n-
    1345
    \n-
    1346 // calculate defect for current row index block
    \n-
    1347 for(col_iterator col=(*mat)[domainIndex].begin(); col!=(*mat)[domainIndex].end(); ++col) {
    \n-
    1348 block_type tmp(0.0);
    \n-
    1349 (*col).mv((*x)[col.index()], tmp);
    \n-
    1350 i-=n;
    \n-
    1351 for(size_type j=0; j<n; ++j, ++i) {
    \n-
    1352 assert(i<maxlength_);
    \n-
    1353 rhs()[i]-=tmp[j];
    \n-
    1354 }
    \n-
    1355 }
    \n-
    1356#else
    \n-
    1357 //assign right hand side of current domainindex block
    \n-
    1358 for(size_type j=0; j<n; ++j, ++i) {
    \n-
    1359 assert(i<maxlength_);
    \n-
    1360 rhs()[i]=Impl::asVector((*b)[domainIndex])[j];
    \n-
    1361
    \n-
    1362 // loop over all Matrix row entries and calculate defect.
    \n-
    1363 typedef typename matrix_type::ConstColIterator col_iterator;
    \n-
    1364
    \n-
    1365 // calculate defect for current row index block
    \n-
    1366 for(col_iterator col=(*mat)[domainIndex].begin(); col!=(*mat)[domainIndex].end(); ++col) {
    \n-
    1367 for(size_type k=0; k<n; ++k) {
    \n-
    1368 rhs()[i]-=Impl::asMatrix(*col)[j][k] * Impl::asVector((*x)[col.index()])[k];
    \n-
    1369 }
    \n-
    1370 }
    \n-
    1371 }
    \n-
    1372#endif
    \n-
    1373 }
    \n-
    \n-
    1374
    \n-
    1375 template<class K, class Al, class X, class Y>
    \n-
    1376 void
    \n-\n-
    \n-
    1378 ::assignResult(block_type& res)
    \n-
    1379 {
    \n-
    1380 // assign the result of the local solve to the global vector
    \n-
    1381 for(size_type j=0; j<n; ++j, ++i) {
    \n-
    1382 assert(i<maxlength_);
    \n-
    1383 Impl::asVector(res)[j]+=lhs()[i];
    \n-
    1384 }
    \n-
    1385 }
    \n-
    \n-
    1386
    \n-
    1387#if HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n-
    1388
    \n-
    1389 template<template<class> class S, typename T, typename A>
    \n-\n-
    \n-
    1391 ::OverlappingAssignerHelper(std::size_t maxlength,
    \n-
    1392 const BCRSMatrix<T,A>& mat_,
    \n-
    1393 const range_type& b_,
    \n-
    1394 range_type& x_)
    \n-
    1395 : mat(&mat_),
    \n-
    1396 b(&b_),
    \n-
    1397 x(&x_), i(0), maxlength_(maxlength)
    \n-
    1398 {
    \n-
    1399 rhs_ = new field_type[maxlength];
    \n-
    1400 lhs_ = new field_type[maxlength];
    \n-
    1401
    \n-
    1402 }
    \n-
    \n-
    1403
    \n-
    1404 template<template<class> class S, typename T, typename A>
    \n-
    \n-\n-
    1406 {
    \n-
    1407 delete[] rhs_;
    \n-
    1408 delete[] lhs_;
    \n-
    1409 }
    \n-
    \n-
    1410
    \n-
    1411 template<template<class> class S, typename T, typename A>
    \n-
    \n-
    1412 void OverlappingAssignerHelper<S<BCRSMatrix<T,A>>,true>::operator()(const size_type& domainIndex)
    \n-
    1413 {
    \n-
    1414 //assign right hand side of current domainindex block
    \n-
    1415 // rhs is an array of doubles!
    \n-
    1416 // rhs[starti] = b[domainindex]
    \n-
    1417 for(size_type j=0; j<n; ++j, ++i) {
    \n-
    1418 assert(i<maxlength_);
    \n-
    1419 rhs_[i]=Impl::asVector((*b)[domainIndex])[j];
    \n-
    1420 }
    \n-
    1421
    \n-
    1422
    \n-
    1423 // loop over all Matrix row entries and calculate defect.
    \n-
    1424 typedef typename matrix_type::ConstColIterator col_iterator;
    \n-
    1425
    \n-
    1426 // calculate defect for current row index block
    \n-
    1427 for(col_iterator col=(*mat)[domainIndex].begin(); col!=(*mat)[domainIndex].end(); ++col) {
    \n-
    1428 block_type tmp;
    \n-
    1429 Impl::asMatrix(*col).mv((*x)[col.index()], tmp);
    \n-
    1430 i-=n;
    \n-
    1431 for(size_type j=0; j<n; ++j, ++i) {
    \n-
    1432 assert(i<maxlength_);
    \n-
    1433 rhs_[i]-=Impl::asVector(tmp)[j];
    \n-
    1434 }
    \n-
    1435
    \n-
    1436 }
    \n-
    1437
    \n-
    1438 }
    \n-
    \n-
    1439
    \n-
    1440 template<template<class> class S, typename T, typename A>
    \n-
    \n-\n-
    1442 {
    \n-
    1443 for(size_type j=i+n; i<j; ++i) {
    \n-
    1444 assert(i<maxlength_);
    \n-
    1445 lhs_[i]*=relax;
    \n-
    1446 }
    \n-
    1447 i-=n;
    \n-
    1448 }
    \n-
    \n-
    1449
    \n-
    1450 template<template<class> class S, typename T, typename A>
    \n-
    \n-\n-
    1452 {
    \n-
    1453 // assign the result of the local solve to the global vector
    \n-
    1454 for(size_type j=0; j<n; ++j, ++i) {
    \n-
    1455 assert(i<maxlength_);
    \n-
    1456 Impl::asVector(res)[j]+=lhs_[i];
    \n-
    1457 }
    \n-
    1458 }
    \n-
    \n-
    1459
    \n-
    1460 template<template<class> class S, typename T, typename A>
    \n-
    \n-
    1461 void OverlappingAssignerHelper<S<BCRSMatrix<T,A>>,true>::resetIndexForNextDomain()
    \n-
    1462 {
    \n-
    1463 i=0;
    \n-
    1464 }
    \n-
    \n-
    1465
    \n-
    1466 template<template<class> class S, typename T, typename A>
    \n-
    1467 typename OverlappingAssignerHelper<S<BCRSMatrix<T,A>>,true>::field_type*
    \n-
    \n-\n-
    1469 {
    \n-
    1470 return lhs_;
    \n-
    1471 }
    \n-
    \n-
    1472
    \n-
    1473 template<template<class> class S, typename T, typename A>
    \n-
    1474 typename OverlappingAssignerHelper<S<BCRSMatrix<T,A>>,true>::field_type*
    \n-
    \n-\n-
    1476 {
    \n-
    1477 return rhs_;
    \n-
    1478 }
    \n-
    \n-
    1479
    \n-
    1480#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n-
    1481
    \n-
    1482 template<class M, class X, class Y>
    \n-
    \n-\n-
    1484 const M& mat_,
    \n-
    1485 const Y& b_,
    \n-
    1486 X& x_)
    \n-
    1487 : mat(&mat_),
    \n-
    1488 b(&b_),
    \n-
    1489 x(&x_), i(0)
    \n-
    1490 {
    \n-
    1491 rhs_= new Y(maxlength);
    \n-
    1492 lhs_ = new X(maxlength);
    \n-
    1493 }
    \n-
    \n-
    1494
    \n-
    1495 template<class M, class X, class Y>
    \n-
    \n-\n-
    1497 {
    \n-
    1498 delete rhs_;
    \n-
    1499 delete lhs_;
    \n-
    1500 }
    \n-
    \n-
    1501
    \n-
    1502 template<class M, class X, class Y>
    \n-
    \n-\n-
    1504 {
    \n-
    1505 (*rhs_)[i]=(*b)[domainIndex];
    \n-
    1506
    \n-
    1507 // loop over all Matrix row entries and calculate defect.
    \n-
    1508 typedef typename matrix_type::ConstColIterator col_iterator;
    \n-
    1509
    \n-
    1510 // calculate defect for current row index block
    \n-
    1511 for(col_iterator col=(*mat)[domainIndex].begin(); col!=(*mat)[domainIndex].end(); ++col) {
    \n-
    1512 Impl::asMatrix(*col).mmv((*x)[col.index()], (*rhs_)[i]);
    \n-
    1513 }
    \n-
    1514 // Goto next local index
    \n-
    1515 ++i;
    \n-
    1516 }
    \n-
    \n-
    1517
    \n-
    1518 template<class M, class X, class Y>
    \n-
    \n-\n-
    1520 {
    \n-
    1521 (*lhs_)[i]*=relax;
    \n-
    1522 }
    \n-
    \n-
    1523
    \n-
    1524 template<class M, class X, class Y>
    \n-
    \n-\n-
    1526 {
    \n-
    1527 res+=(*lhs_)[i++];
    \n-
    1528 }
    \n-
    \n-
    1529
    \n-
    1530 template<class M, class X, class Y>
    \n-
    \n-\n-
    1532 {
    \n-
    1533 return *lhs_;
    \n-
    1534 }
    \n-
    \n-
    1535
    \n-
    1536 template<class M, class X, class Y>
    \n-
    \n-\n-
    1538 {
    \n-
    1539 return *rhs_;
    \n-
    1540 }
    \n-
    \n-
    1541
    \n-
    1542 template<class M, class X, class Y>
    \n-
    \n-\n-
    1544 {
    \n-
    1545 i=0;
    \n-
    1546 }
    \n-
    \n-
    1547
    \n-
    1548 template<typename S, typename T, typename A>
    \n-
    \n-\n-
    1550 BlockVector<T,A>& x_,
    \n-
    1551 OverlappingAssigner<S>& assigner_,
    \n-
    1552 const field_type& relax_)
    \n-
    1553 : v(&v_), x(&x_), assigner(&assigner_), relax(relax_)
    \n-
    1554 {}
    \n-
    \n-
    1555
    \n-
    1556 template<typename S, typename T, typename A>
    \n-
    \n-
    1557 void AdditiveAdder<S,BlockVector<T,A> >::operator()(const size_type& domainIndex)
    \n-
    1558 {
    \n-
    1559 // add the result of the local solve to the current update
    \n-
    1560 assigner->assignResult((*v)[domainIndex]);
    \n-
    1561 }
    \n-
    \n-
    1562
    \n-
    1563
    \n-
    1564 template<typename S, typename T, typename A>
    \n-
    \n-\n-
    1566 {
    \n-
    1567 // relax the update and add it to the current guess.
    \n-
    1568 x->axpy(relax,*v);
    \n-
    1569 }
    \n-
    \n-
    1570
    \n-
    1571
    \n-
    1572 template<typename S, typename T, typename A>
    \n-\n-
    \n-
    1574 ::MultiplicativeAdder([[maybe_unused]] BlockVector<T,A>& v_,
    \n-
    1575 BlockVector<T,A>& x_,
    \n-
    1576 OverlappingAssigner<S>& assigner_, const field_type& relax_)
    \n-
    1577 : x(&x_), assigner(&assigner_), relax(relax_)
    \n-
    1578 {}
    \n-
    \n-
    1579
    \n-
    1580
    \n-
    1581 template<typename S,typename T, typename A>
    \n-
    \n-
    1582 void MultiplicativeAdder<S,BlockVector<T,A> >::operator()(const size_type& domainIndex)
    \n-
    1583 {
    \n-
    1584 // add the result of the local solve to the current guess
    \n-
    1585 assigner->relaxResult(relax);
    \n-
    1586 assigner->assignResult((*x)[domainIndex]);
    \n-
    1587 }
    \n-
    \n-
    1588
    \n-
    1589
    \n-
    1590 template<typename S,typename T, typename A>
    \n-
    \n-\n-
    1592 {
    \n-
    1593 // nothing to do, as the corrections already relaxed and added in operator()
    \n-
    1594 }
    \n-
    \n-
    1595
    \n-
    1596
    \n-
    1598}
    \n-
    1599
    \n-
    1600#endif
    \n-
    \n-
    \n-
    \n-
    \n-
    Classes for using SuperLU with ISTL matrices.
    \n-
    Define general preconditioner interface.
    \n-
    Classes for using UMFPack with ISTL matrices.
    \n-
    Various local subdomain solvers based on ILU for SeqOverlappingSchwarz.
    \n-
    Implementation of the BCRSMatrix class.
    \n-\n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n-
    Templates characterizing the type of a solver.
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    void addRowNnz(const Iter &row)
    Definition overlappingschwarz.hh:895
    \n-
    void apply(X &v, const X &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition overlappingschwarz.hh:1234
    \n-
    X & lhs()
    Get the local left hand side.
    Definition overlappingschwarz.hh:1531
    \n-
    void calcColstart() const
    Definition overlappingschwarz.hh:926
    \n-
    Y & rhs()
    Get the local right hand side.
    Definition overlappingschwarz.hh:1537
    \n-
    iterator end()
    Definition overlappingschwarz.hh:989
    \n-
    void resetIndexForNextDomain()
    Resets the local index to zero.
    Definition overlappingschwarz.hh:1543
    \n-
    void copyValue(const Iter &row, const CIter &col) const
    Definition overlappingschwarz.hh:933
    \n-
    void createMatrix() const
    Definition overlappingschwarz.hh:947
    \n-
    iterator begin()
    Definition overlappingschwarz.hh:1003
    \n-
    OverlappingSchwarzInitializer(InitializerList &il, const IndexSet &indices, const subdomain_vector &domains)
    Definition overlappingschwarz.hh:887
    \n-
    IndexMap()
    Definition overlappingschwarz.hh:955
    \n-
    virtual void apply(X &v, const X &d)
    Apply the precondtioner.
    Definition overlappingschwarz.hh:1227
    \n-
    OverlappingAssignerILUBase(std::size_t maxlength, const M &mat, const Y &b, X &x)
    Constructor.
    Definition overlappingschwarz.hh:1483
    \n-
    const_iterator find(size_type grow) const
    Definition overlappingschwarz.hh:968
    \n-
    void operator()(const size_type &domain)
    calculate one entry of the local defect.
    Definition overlappingschwarz.hh:1503
    \n-
    SeqOverlappingSchwarz(const matrix_type &mat, const subdomain_vector &subDomains, field_type relaxationFactor=1, bool onTheFly_=true)
    Construct the overlapping Schwarz method.
    Definition overlappingschwarz.hh:1056
    \n-
    void allocate()
    Definition overlappingschwarz.hh:905
    \n-
    void deallocate()
    Deallocates memory of the local vector.
    Definition overlappingschwarz.hh:1496
    \n-
    void insert(size_type grow)
    Definition overlappingschwarz.hh:960
    \n-
    void countEntries(const Iter &row, const CIter &col) const
    Definition overlappingschwarz.hh:914
    \n-
    static std::size_t assembleLocalProblems(const RowToDomain &rowToDomain, const matrix_type &mat, Solvers &solvers, const SubDomains &domains, bool onTheFly)
    Definition overlappingschwarz.hh:1198
    \n-
    void relaxResult(field_type relax)
    relax the result.
    Definition overlappingschwarz.hh:1519
    \n-
    void assignResult(block_type &res)
    Assigns the block to the current local index. At the same time the local defect is calculated for the...
    Definition overlappingschwarz.hh:1525
    \n-
    SeqOverlappingSchwarz(const matrix_type &mat, const rowtodomain_vector &rowToDomain, field_type relaxationFactor=1, bool onTheFly_=true)
    Definition overlappingschwarz.hh:1009
    \n+
    107
    \n+
    111}
    \n+
    112#endif
    \n+\n
    Definition allocator.hh:11
    \n-
    Initializer for SuperLU Matrices representing the subdomains.
    Definition overlappingschwarz.hh:47
    \n-
    Matrix::row_type::const_iterator CIter
    Definition overlappingschwarz.hh:56
    \n-
    S IndexSet
    Definition overlappingschwarz.hh:58
    \n-
    Matrix::const_iterator Iter
    Definition overlappingschwarz.hh:55
    \n-
    IndexSet::size_type size_type
    Definition overlappingschwarz.hh:59
    \n-
    I InitializerList
    Definition overlappingschwarz.hh:52
    \n-
    AtomInitializer::Matrix Matrix
    Definition overlappingschwarz.hh:54
    \n-
    InitializerList::value_type AtomInitializer
    Definition overlappingschwarz.hh:53
    \n-
    D subdomain_vector
    The vector type containing the subdomain to row index mapping.
    Definition overlappingschwarz.hh:50
    \n-
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    Iterator end()
    Get iterator to one beyond last row.
    Definition bcrsmatrix.hh:681
    \n-
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n-
    row_type::ConstIterator ConstColIterator
    Const iterator to the entries of a row.
    Definition bcrsmatrix.hh:741
    \n-
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n-
    Exact subdomain solver using ILU(p) with appropriate p.
    Definition ilusubdomainsolver.hh:78
    \n-
    Definition ilusubdomainsolver.hh:111
    \n-
    Sequential overlapping Schwarz preconditioner.
    Definition overlappingschwarz.hh:755
    \n-
    X::field_type field_type
    The field type of the preconditioner.
    Definition overlappingschwarz.hh:783
    \n-
    SLList< size_type, typename std::allocator_traits< TA >::template rebind_alloc< size_type > > subdomain_list
    The type for the row to subdomain mapping.
    Definition overlappingschwarz.hh:800
    \n-
    std::vector< slu, typename std::allocator_traits< TA >::template rebind_alloc< slu > > slu_vector
    The vector type containing subdomain solvers.
    Definition overlappingschwarz.hh:809
    \n-
    M matrix_type
    The type of the matrix to precondition.
    Definition overlappingschwarz.hh:760
    \n-
    TM Mode
    The mode (additive or multiplicative) of the Schwarz method.
    Definition overlappingschwarz.hh:778
    \n-
    X range_type
    The range type of the preconditioner.
    Definition overlappingschwarz.hh:770
    \n-
    std::set< size_type, std::less< size_type >, typename std::allocator_traits< TA >::template rebind_alloc< size_type > > subdomain_type
    The type for the subdomain to row index mapping.
    Definition overlappingschwarz.hh:794
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition overlappingschwarz.hh:765
    \n-
    TD slu
    The type for the subdomain solver in use.
    Definition overlappingschwarz.hh:806
    \n-
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition overlappingschwarz.hh:868
    \n-
    virtual void pre(X &x, X &b)
    Prepare the preconditioner.
    Definition overlappingschwarz.hh:846
    \n-
    virtual void post(X &x)
    Postprocess the preconditioner.
    Definition overlappingschwarz.hh:861
    \n-
    TA allocator
    The allocator to use.
    Definition overlappingschwarz.hh:789
    \n-
    std::vector< subdomain_type, typename std::allocator_traits< TA >::template rebind_alloc< subdomain_type > > subdomain_vector
    The vector type containing the subdomain to row index mapping.
    Definition overlappingschwarz.hh:797
    \n-
    std::vector< subdomain_list, typename std::allocator_traits< TA >::template rebind_alloc< subdomain_list > > rowtodomain_vector
    The vector type containing the row index to subdomain mapping.
    Definition overlappingschwarz.hh:803
    \n-
    matrix_type::size_type size_type
    The return type of the size method.
    Definition overlappingschwarz.hh:786
    \n-
    Definition overlappingschwarz.hh:694
    \n-
    Tag that the tells the Schwarz method to be additive.
    Definition overlappingschwarz.hh:120
    \n-
    Tag that tells the Schwarz method to be multiplicative.
    Definition overlappingschwarz.hh:126
    \n-
    Tag that tells the Schwarz method to be multiplicative and symmetric.
    Definition overlappingschwarz.hh:133
    \n-
    Exact subdomain solver using Dune::DynamicMatrix<T>::solve.
    Definition overlappingschwarz.hh:140
    \n-
    std::remove_const< M >::type matrix_type
    The matrix type the preconditioner is for.
    Definition overlappingschwarz.hh:149
    \n-
    X::field_type field_type
    Definition overlappingschwarz.hh:150
    \n-
    X domain_type
    The domain type of the preconditioner.
    Definition overlappingschwarz.hh:153
    \n-
    Y range_type
    The range type of the preconditioner.
    Definition overlappingschwarz.hh:155
    \n-
    void setSubMatrix(const M &BCRS, S &rowset)
    Set the data of the local problem.
    Definition overlappingschwarz.hh:184
    \n-
    void apply(DynamicVector< field_type > &v, DynamicVector< field_type > &d)
    Apply the subdomain solver.
    Definition overlappingschwarz.hh:162
    \n-
    std::remove_const< M >::type rilu_type
    Definition overlappingschwarz.hh:151
    \n-
    Definition overlappingschwarz.hh:215
    \n-\n-\n-\n-\n-\n-
    S< BCRSMatrix< T, A > >::range_type range_type
    Definition overlappingschwarz.hh:315
    \n-
    range_type::block_type block_type
    Definition overlappingschwarz.hh:317
    \n-
    range_type::field_type field_type
    Definition overlappingschwarz.hh:316
    \n-
    matrix_type::size_type size_type
    Definition overlappingschwarz.hh:319
    \n-
    BCRSMatrix< T, A > matrix_type
    Definition overlappingschwarz.hh:314
    \n-
    Definition overlappingschwarz.hh:400
    \n-
    matrix_type::size_type size_type
    Definition overlappingschwarz.hh:408
    \n-
    Y::field_type field_type
    Definition overlappingschwarz.hh:404
    \n-
    Y::block_type block_type
    Definition overlappingschwarz.hh:406
    \n-
    M matrix_type
    Definition overlappingschwarz.hh:402
    \n-
    OverlappingAssignerHelper(std::size_t maxlength, const M &mat, const Y &b, X &x)
    Constructor.
    Definition overlappingschwarz.hh:493
    \n-
    OverlappingAssignerHelper(std::size_t maxlength, const M &mat, const Y &b, X &x)
    Constructor.
    Definition overlappingschwarz.hh:512
    \n-
    Definition overlappingschwarz.hh:520
    \n-
    std::decay_t< decltype(Impl::asVector(std::declval< T >()))>::field_type field_type
    Definition overlappingschwarz.hh:526
    \n-
    A::size_type size_type
    Definition overlappingschwarz.hh:525
    \n-
    Definition overlappingschwarz.hh:542
    \n-
    A::size_type size_type
    Definition overlappingschwarz.hh:547
    \n-
    std::decay_t< decltype(Impl::asVector(std::declval< T >()))>::field_type field_type
    Definition overlappingschwarz.hh:548
    \n-
    template meta program for choosing how to add the correction.
    Definition overlappingschwarz.hh:572
    \n-
    AdditiveAdder< S, X > Adder
    Definition overlappingschwarz.hh:577
    \n-
    MultiplicativeAdder< S, X > Adder
    Definition overlappingschwarz.hh:583
    \n-
    MultiplicativeAdder< S, X > Adder
    Definition overlappingschwarz.hh:589
    \n-
    Helper template meta program for application of overlapping Schwarz.
    Definition overlappingschwarz.hh:605
    \n-
    static solver_iterator begin(solver_vector &sv)
    Definition overlappingschwarz.hh:611
    \n-
    solver_vector::iterator solver_iterator
    Definition overlappingschwarz.hh:607
    \n-
    static domain_iterator end(const subdomain_vector &sv)
    Definition overlappingschwarz.hh:625
    \n-
    subdomain_vector::const_iterator domain_iterator
    Definition overlappingschwarz.hh:609
    \n-
    T1 solver_vector
    Definition overlappingschwarz.hh:606
    \n-
    static domain_iterator begin(const subdomain_vector &sv)
    Definition overlappingschwarz.hh:620
    \n-
    T2 subdomain_vector
    Definition overlappingschwarz.hh:608
    \n-
    static solver_iterator end(solver_vector &sv)
    Definition overlappingschwarz.hh:616
    \n-
    T2 subdomain_vector
    Definition overlappingschwarz.hh:636
    \n-
    static solver_iterator end(solver_vector &sv)
    Definition overlappingschwarz.hh:644
    \n-
    solver_vector::reverse_iterator solver_iterator
    Definition overlappingschwarz.hh:635
    \n-
    subdomain_vector::const_reverse_iterator domain_iterator
    Definition overlappingschwarz.hh:637
    \n-
    static solver_iterator begin(solver_vector &sv)
    Definition overlappingschwarz.hh:639
    \n-
    T1 solver_vector
    Definition overlappingschwarz.hh:634
    \n-
    static domain_iterator begin(const subdomain_vector &sv)
    Definition overlappingschwarz.hh:648
    \n-
    static domain_iterator end(const subdomain_vector &sv)
    Definition overlappingschwarz.hh:653
    \n-
    Helper template meta program for application of overlapping Schwarz.
    Definition overlappingschwarz.hh:669
    \n-
    smoother::range_type range_type
    Definition overlappingschwarz.hh:671
    \n-
    T smoother
    Definition overlappingschwarz.hh:670
    \n-
    static void apply(smoother &sm, range_type &v, const range_type &b)
    Definition overlappingschwarz.hh:673
    \n-
    static void apply(smoother &sm, range_type &v, const range_type &b)
    Definition overlappingschwarz.hh:685
    \n-
    SeqOverlappingSchwarz< M, X, SymmetricMultiplicativeSchwarzMode, TD, TA > smoother
    Definition overlappingschwarz.hh:682
    \n-\n-\n-
    BCRSMatrix< T, A > matrix_type
    Definition overlappingschwarz.hh:713
    \n-
    Definition overlappingschwarz.hh:723
    \n-
    M matrix_type
    Definition overlappingschwarz.hh:724
    \n-
    Definition overlappingschwarz.hh:1103
    \n-
    static int size(const Domain &d)
    Definition overlappingschwarz.hh:1111
    \n
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    virtual void post(X &x)=0
    Clean up.
    \n+
    virtual void apply(X &v, const Y &d)=0
    Apply one step of the preconditioner to the system A(v)=d.
    \n+
    virtual ~Preconditioner()
    every abstract base class has a virtual destructor
    Definition preconditioner.hh:104
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition preconditioner.hh:37
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioner.hh:35
    \n+
    virtual SolverCategory::Category category() const =0
    Category of the preconditioner (see SolverCategory::Category)
    \n+
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioner.hh:39
    \n+
    virtual void pre(X &x, Y &b)=0
    Prepare the preconditioner.
    \n
    Category
    Definition solvercategory.hh:23
    \n-
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1878 +1,91 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-overlappingschwarz.hh\n+preconditioner.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_OVERLAPPINGSCHWARZ_HH\n-6#define DUNE_ISTL_OVERLAPPINGSCHWARZ_HH\n-7#include \n-8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14#include \n-15\n-16#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n-17#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n-18#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh\"\n-19#include \"_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh\"\n-20#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-21#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n-22#include \"_\bi_\bl_\bu_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\"\n-23#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-24\n-25namespace _\bD_\bu_\bn_\be\n-26{\n-27\n-39 template\n-40 class SeqOverlappingSchwarz;\n-41\n-45 template\n-_\b4_\b6 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-47 {\n-48 public:\n-_\b5_\b0 typedef D _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br;\n-51\n-_\b5_\b2 typedef I _\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\bL_\bi_\bs_\bt;\n-_\b5_\b3 typedef typename InitializerList::value_type _\bA_\bt_\bo_\bm_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n-_\b5_\b4 typedef typename AtomInitializer::Matrix _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b5_\b5 typedef typename Matrix::const_iterator _\bI_\bt_\be_\br;\n-_\b5_\b6 typedef typename Matrix::row_type::const_iterator _\bC_\bI_\bt_\be_\br;\n-57\n-_\b5_\b8 typedef S _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n-_\b5_\b9 typedef typename IndexSet::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-60\n-61 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br(_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\bL_\bi_\bs_\bt& il,\n-62 const _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indices,\n-63 const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& domains);\n-64\n-65\n-66 void _\ba_\bd_\bd_\bR_\bo_\bw_\bN_\bn_\bz(const _\bI_\bt_\be_\br& row);\n-67\n-68 void _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be();\n-69\n-70 void _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(const _\bI_\bt_\be_\br& row, const _\bC_\bI_\bt_\be_\br& _\bc_\bo_\bl) const;\n-71\n-72 void _\bc_\ba_\bl_\bc_\bC_\bo_\bl_\bs_\bt_\ba_\br_\bt() const;\n-73\n-74 void _\bc_\bo_\bp_\by_\bV_\ba_\bl_\bu_\be(const _\bI_\bt_\be_\br& row, const _\bC_\bI_\bt_\be_\br& _\bc_\bo_\bl) const;\n-75\n-76 void _\bc_\br_\be_\ba_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx() const;\n-77 private:\n-78 class IndexMap\n-79 {\n-80 public:\n-81 typedef typename S::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-82 typedef std::map Map;\n-83 typedef typename Map::iterator iterator;\n-84 typedef typename Map::const_iterator const_iterator;\n-85\n-86 _\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp();\n-87\n-88 void _\bi_\bn_\bs_\be_\br_\bt(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be grow);\n-89\n-90 const_iterator _\bf_\bi_\bn_\bd(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be grow) const;\n-91\n-92 iterator _\bf_\bi_\bn_\bd(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be grow);\n-93\n-94 iterator _\bb_\be_\bg_\bi_\bn();\n-95\n-96 const_iterator _\bb_\be_\bg_\bi_\bn() const;\n-97\n-98 iterator _\be_\bn_\bd();\n-99\n-100 const_iterator _\be_\bn_\bd() const;\n-101\n-102 private:\n-103 std::map map_;\n-104 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row;\n-105 };\n-106\n+5#ifndef DUNE_ISTL_PRECONDITIONER_HH\n+6#define DUNE_ISTL_PRECONDITIONER_HH\n+7\n+8#include \n+9\n+10#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n+11\n+12namespace _\bD_\bu_\bn_\be {\n+17 //=====================================================================\n+30 //=====================================================================\n+31 template\n+_\b3_\b2 class _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n+33 public:\n+_\b3_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b3_\b7 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b3_\b9 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+40\n+_\b6_\b9 virtual void _\bp_\br_\be (X& x, Y& b) = 0;\n+70\n+_\b8_\b1 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d) = 0;\n+82\n+_\b9_\b1 virtual void _\bp_\bo_\bs_\bt (X& x) = 0;\n+92\n+_\b9_\b4 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+95#if DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE\n+96 {\n+97 DUNE_THROW(Dune::Exception,\"It is necessary to implement the category method\n+in a derived classes, in the future this method will pure virtual.\");\n+98 }\n+99#else\n+100 = 0;\n+101#endif\n+102\n+_\b1_\b0_\b4 virtual _\b~_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br () {}\n+105\n+106 };\n 107\n-108 typedef typename InitializerList::iterator InitIterator;\n-109 typedef typename IndexSet::const_iterator IndexIteratur;\n-110 _\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\bL_\bi_\bs_\bt* initializers;\n-111 const _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt *indices;\n-112 mutable std::vector indexMaps;\n-113 const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& domains;\n-114 };\n-115\n-_\b1_\b1_\b9 struct _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n-120 {};\n-121\n-_\b1_\b2_\b5 struct _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n-126 {};\n-127\n-_\b1_\b3_\b2 struct _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n-133 {};\n-134\n-139 template\n-_\b1_\b4_\b0 class _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br;\n-141\n-142 // Specialization for BCRSMatrix\n-143 template\n-_\b1_\b4_\b4 class _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br< _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< K, Al>, X, Y >\n-145 {\n-146 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b> _\bM;\n-147 public:\n-_\b1_\b4_\b9 typedef typename std::remove_const::type _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b1_\b5_\b0 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b1_\b5_\b1 typedef typename std::remove_const::type _\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be;\n-_\b1_\b5_\b3 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b1_\b5_\b5 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b1_\b5_\b6 static constexpr size_t n = std::decay_t()))>::rows;\n-157\n-_\b1_\b6_\b2 void _\ba_\bp_\bp_\bl_\by (DynamicVector& v, DynamicVector& d)\n-163 {\n-164 assert(v.size() > 0);\n-165 assert(v.size() == d.size());\n-166 assert(A.rows() <= v.size());\n-167 assert(A.cols() <= v.size());\n-168 size_t sz = A.rows();\n-169 v.resize(sz);\n-170 d.resize(sz);\n-171 A.solve(v,d);\n-172 v.resize(v.capacity());\n-173 d.resize(d.capacity());\n-174 }\n-175\n-183 template\n-_\b1_\b8_\b4 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const _\bM& BCRS, S& rowset)\n-185 {\n-186 size_t sz = rowset.size();\n-187 A.resize(sz*n,sz*n);\n-188 typedef typename S::const_iterator SIter;\n-189 size_t r = 0, c = 0;\n-190 for(SIter rowIdx = rowset.begin(), rowEnd=rowset.end();\n-191 rowIdx!= rowEnd; ++rowIdx, r++)\n-192 {\n-193 c = 0;\n-194 for(SIter colIdx = rowset.begin(), colEnd=rowset.end();\n-195 colIdx!= colEnd; ++colIdx, c++)\n-196 {\n-197 if (BCRS[*rowIdx].find(*colIdx) == BCRS[*rowIdx]._\be_\bn_\bd())\n-198 continue;\n-199 for (size_t i=0; i A;\n-211 };\n-212\n-213 template\n-_\b2_\b1_\b4 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-215 {};\n-216\n-217 template\n-_\b2_\b1_\b8 using _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br = _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bT_\b,_\b _\bD_\bu_\bn_\be_\b:_\b:\n-_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\bT_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be>;\n-219\n-220 // specialization for DynamicMatrix\n-221 template\n-_\b2_\b2_\b2 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br< _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br<\n-_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx, X, Y >,false>\n-223 {\n-224 public:\n-_\b2_\b2_\b5 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b> _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b2_\b2_\b6 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b2_\b2_\b7 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b2_\b2_\b8 typedef typename range_type::block_type _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-_\b2_\b2_\b9 typedef typename _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-_\b2_\b3_\b0 static constexpr size_t n = std::decay_t()))>::rows;\n-238 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br(std::size_t maxlength, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\b _\bA_\bl_\b>&\n-mat_, const X& b_, Y& x_);\n-239\n-243 inline\n-244 void deallocate();\n-245\n-249 inline\n-250 void resetIndexForNextDomain();\n-251\n-256 inline\n-257 DynamicVector & lhs();\n-258\n-263 inline\n-264 DynamicVector & rhs();\n-265\n-270 inline\n-271 void relaxResult(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax);\n-272\n-277 void operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domainIndex);\n-278\n-286 inline\n-287 void assignResult(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res);\n-288\n-289 private:\n-293 const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be* _\bm_\ba_\bt;\n-295 // we need a pointer, because we have to avoid deep copies\n-296 DynamicVector * rhs_;\n-298 // we need a pointer, because we have to avoid deep copies\n-299 DynamicVector * lhs_;\n-301 const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be* b;\n-303 _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be* x;\n-305 std::size_t i;\n-307 std::size_t maxlength_;\n-308 };\n-309\n-310#if HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK\n-311 template class S, typename T, typename A>\n-_\b3_\b1_\b2 struct _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br>, true>\n-313 {\n-_\b3_\b1_\b4 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\b _\bA_\b> _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b3_\b1_\b5 typedef typename S>::range_type _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-_\b3_\b1_\b6 typedef typename range_type::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b3_\b1_\b7 typedef typename range_type::block_type _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-318\n-_\b3_\b1_\b9 typedef typename _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-320\n-_\b3_\b2_\b1 static constexpr size_t n = std::decay_t()))>::rows;\n-_\b3_\b2_\b2 static constexpr size_t m = std::decay_t()))>::cols;\n-330 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br(std::size_t maxlength, const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n-331 const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& x);\n-337 void deallocate();\n-338\n-339 /*\n-340 * @brief Resets the local index to zero.\n-341 */\n-342 void resetIndexForNextDomain();\n-343\n-348 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be* lhs();\n-349\n-354 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be* rhs();\n-355\n-360 void relaxResult(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax);\n-361\n-366 void operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domain);\n-367\n-375 void assignResult(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res);\n-376\n-377 private:\n-381 const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be* _\bm_\ba_\bt;\n-383 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be* rhs_;\n-385 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be* lhs_;\n-387 const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be* b;\n-389 _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be* x;\n-391 std::size_t i;\n-393 std::size_t maxlength_;\n-394 };\n-395\n-396#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK\n-397\n-398 template\n-_\b3_\b9_\b9 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n-400 {\n-401 public:\n-_\b4_\b0_\b2 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-403\n-_\b4_\b0_\b4 typedef typename Y::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-405\n-_\b4_\b0_\b6 typedef typename Y::block_type _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-407\n-_\b4_\b0_\b8 typedef typename matrix_type::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-416 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be(std::size_t maxlength, const M& mat,\n-417 const Y& b, X& x);\n-423 void _\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be();\n-424\n-428 void _\br_\be_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bF_\bo_\br_\bN_\be_\bx_\bt_\bD_\bo_\bm_\ba_\bi_\bn();\n-429\n-434 X& _\bl_\bh_\bs();\n-435\n-440 Y& _\br_\bh_\bs();\n-441\n-446 void _\br_\be_\bl_\ba_\bx_\bR_\be_\bs_\bu_\bl_\bt(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax);\n-447\n-452 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domain);\n-453\n-461 void _\ba_\bs_\bs_\bi_\bg_\bn_\bR_\be_\bs_\bu_\bl_\bt(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res);\n-462\n-463 private:\n-467 const M* mat;\n-469 X* lhs_;\n-471 Y* rhs_;\n-473 const Y* b;\n-475 X* x;\n-477 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i;\n-478 };\n-479\n-480 // specialization for ILU0\n-481 template\n-_\b4_\b8_\b2 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br, false>\n-483 : public _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n-484 {\n-485 public:\n-_\b4_\b9_\b3 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br(std::size_t maxlength, const M& _\bm_\ba_\bt,\n-494 const Y& b, X& x)\n-495 : _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be(maxlength, _\bm_\ba_\bt,b,x)\n-496 {}\n-497 };\n-498\n-499 // specialization for ILUN\n-500 template\n-_\b5_\b0_\b1 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br,false>\n-502 : public _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n-503 {\n-504 public:\n-_\b5_\b1_\b2 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br(std::size_t maxlength, const M& _\bm_\ba_\bt,\n-513 const Y& b, X& x)\n-514 : _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be(maxlength, _\bm_\ba_\bt,b,x)\n-515 {}\n-516 };\n-517\n-518 template\n-_\b5_\b1_\b9 struct _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br\n-520 {};\n-521\n-522 template\n-_\b5_\b2_\b3 struct _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br >\n-524 {\n-_\b5_\b2_\b5 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-_\b5_\b2_\b6 typedef typename std::decay_t\n-()))>::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-527 _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br(_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& v, _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& x,\n-528 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>& assigner, const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& relax_);\n-529 void operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domain);\n-530 void axpy();\n-_\b5_\b3_\b1 static constexpr size_t n = std::decay_t()))>::dimension;\n-532\n-533 private:\n-534 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>* v;\n-535 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>* x;\n-536 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>* assigner;\n-537 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax;\n-538 };\n-539\n-540 template\n-_\b5_\b4_\b1 struct _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br\n-542 {};\n-543\n-544 template\n-_\b5_\b4_\b5 struct _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br >\n-546 {\n-_\b5_\b4_\b7 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-_\b5_\b4_\b8 typedef typename std::decay_t\n-()))>::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-549 _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br(_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& v, _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& x,\n-550 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>& assigner_, const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& relax_);\n-551 void operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domain);\n-552 void axpy();\n-_\b5_\b5_\b3 static constexpr size_t n = std::decay_t()))>::dimension;\n-554\n-555 private:\n-556 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>* x;\n-557 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>* assigner;\n-558 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax;\n-559 };\n-560\n-570 template\n-_\b5_\b7_\b1 struct _\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-572 {};\n-573\n-574 template\n-_\b5_\b7_\b5 struct _\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br<_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be,X,S>\n-576 {\n-_\b5_\b7_\b7 typedef _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bX_\b> _\bA_\bd_\bd_\be_\br;\n-578 };\n-579\n-580 template\n-_\b5_\b8_\b1 struct _\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br<_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be,X,S>\n-582 {\n-_\b5_\b8_\b3 typedef _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bX_\b> _\bA_\bd_\bd_\be_\br;\n-584 };\n-585\n-586 template\n-_\b5_\b8_\b7 struct _\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br<_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be,X,S>\n-588 {\n-_\b5_\b8_\b9 typedef _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bX_\b> _\bA_\bd_\bd_\be_\br;\n-590 };\n-591\n-603 template\n-_\b6_\b0_\b4 struct _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-605 {\n-_\b6_\b0_\b6 typedef T1 _\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br;\n-_\b6_\b0_\b7 typedef typename solver_vector::iterator _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b6_\b0_\b8 typedef T2 _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br;\n-_\b6_\b0_\b9 typedef typename subdomain_vector::const_iterator _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-610\n-_\b6_\b1_\b1 static _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn(_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n-612 {\n-613 return sv.begin();\n-614 }\n-615\n-_\b6_\b1_\b6 static _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd(_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n-617 {\n-618 return sv.end();\n-619 }\n-_\b6_\b2_\b0 static _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn(const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n-621 {\n-622 return sv.begin();\n-623 }\n-624\n-_\b6_\b2_\b5 static _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd(const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n-626 {\n-627 return sv.end();\n-628 }\n-629 };\n-630\n-631 template\n-_\b6_\b3_\b2 struct _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-633 {\n-_\b6_\b3_\b4 typedef T1 _\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br;\n-_\b6_\b3_\b5 typedef typename solver_vector::reverse_iterator _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b6_\b3_\b6 typedef T2 _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br;\n-_\b6_\b3_\b7 typedef typename subdomain_vector::const_reverse_iterator _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-638\n-_\b6_\b3_\b9 static _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn(_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n-640 {\n-641 return sv.rbegin();\n-642 }\n-643\n-_\b6_\b4_\b4 static _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd(_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n-645 {\n-646 return sv.rend();\n-647 }\n-_\b6_\b4_\b8 static _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn(const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n-649 {\n-650 return sv.rbegin();\n-651 }\n-652\n-_\b6_\b5_\b3 static _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd(const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n-654 {\n-655 return sv.rend();\n-656 }\n-657 };\n-658\n-667 template\n-_\b6_\b6_\b8 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br\n-669 {\n-_\b6_\b7_\b0 typedef T _\bs_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-_\b6_\b7_\b1 typedef typename smoother::range_type _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-672\n-_\b6_\b7_\b3 static void _\ba_\bp_\bp_\bl_\by(_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br& sm, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& v, const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b)\n-674 {\n-675 sm.template apply(v, b);\n-676 }\n-677 };\n-678\n-679 template\n-_\b6_\b8_\b0 struct\n-_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n->\n-681 {\n-_\b6_\b8_\b2 typedef _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\bT_\bD_\b,_\bT_\bA_\b>\n-_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br;\n-_\b6_\b8_\b3 typedef typename _\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-684\n-_\b6_\b8_\b5 static void _\ba_\bp_\bp_\bl_\by(_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br& sm, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& v, const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b)\n-686 {\n-687 sm.template apply(v, b);\n-688 sm.template apply(v, b);\n-689 }\n-690 };\n-691\n-692 template\n-_\b6_\b9_\b3 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-694 {};\n-695\n-696 template\n-_\b6_\b9_\b7 using _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br =\n-_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bT_\b,_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\bT_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be>;\n-698\n-699 template\n-_\b7_\b0_\b0 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br< _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br<\n-_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< K, Al>, X, Y >,false>\n-701 {\n-_\b7_\b0_\b2 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b> _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b7_\b0_\b3 static constexpr size_t n = std::decay_t()))>::rows;\n-704 template\n-705 static std::size_t assembleLocalProblems(const RowToDomain& rowToDomain,\n-const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n-706 Solvers& solvers, const SubDomains& domains,\n-707 bool onTheFly);\n-708 };\n-709\n-710 template class S, typename T, typename A>\n-_\b7_\b1_\b1 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br>,true>\n-712 {\n-_\b7_\b1_\b3 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b> _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b7_\b1_\b4 static constexpr size_t n = std::decay_t()))>::rows;\n-715 template\n-716 static std::size_t assembleLocalProblems(const RowToDomain& rowToDomain,\n-const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n-717 Solvers& solvers, const SubDomains& domains,\n-718 bool onTheFly);\n-719 };\n-720\n-721 template\n-_\b7_\b2_\b2 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n-723 {\n-_\b7_\b2_\b4 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-725 template\n-726 static std::size_t _\ba_\bs_\bs_\be_\bm_\bb_\bl_\be_\bL_\bo_\bc_\ba_\bl_\bP_\br_\bo_\bb_\bl_\be_\bm_\bs(const RowToDomain& rowToDomain,\n-const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n-727 Solvers& solvers, const SubDomains& domains,\n-728 bool onTheFly);\n-729 };\n-730\n-731 template\n-_\b7_\b3_\b2 struct\n-_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br,false>\n-733 : public _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n-734 {};\n-735\n-736 template\n-_\b7_\b3_\b7 struct\n-_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br,false>\n-738 : public _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n-739 {};\n-740\n-751 template, class TA=std::allocator >\n-_\b7_\b5_\b3 class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n-754 : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-755 {\n-756 public:\n-_\b7_\b6_\b0 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-761\n-_\b7_\b6_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-766\n-_\b7_\b7_\b0 typedef X _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-771\n-_\b7_\b7_\b8 typedef _\bT_\bM _\bM_\bo_\bd_\be;\n-779\n-_\b7_\b8_\b3 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-784\n-_\b7_\b8_\b6 typedef typename matrix_type::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-787\n-_\b7_\b8_\b9 typedef _\bT_\bA _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br;\n-790\n-792 typedef std::set,\n-793 typename std::allocator_traits::template _\br_\be_\bb_\bi_\bn_\bd_\b__\ba_\bl_\bl_\bo_\bc_\b<_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b> >\n-_\b7_\b9_\b4 _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-795\n-_\b7_\b9_\b7 typedef std::vector::\n-template _\br_\be_\bb_\bi_\bn_\bd_\b__\ba_\bl_\bl_\bo_\bc_\b<_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be_\b> > _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br;\n-798\n-_\b8_\b0_\b0 typedef _\bS_\bL_\bL_\bi_\bs_\bt_\b<_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b,_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bs_\bt_\bd_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\br_\ba_\bi_\bt_\bs_\b<_\bT_\bA_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n-_\br_\be_\bb_\bi_\bn_\bd_\b__\ba_\bl_\bl_\bo_\bc_\b<_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b> > _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bl_\bi_\bs_\bt;\n-801\n-_\b8_\b0_\b3 typedef std::vector::\n-template _\br_\be_\bb_\bi_\bn_\bd_\b__\ba_\bl_\bl_\bo_\bc_\b<_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bl_\bi_\bs_\bt_\b> > _\br_\bo_\bw_\bt_\bo_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br;\n-804\n-_\b8_\b0_\b6 typedef _\bT_\bD _\bs_\bl_\bu;\n-807\n-_\b8_\b0_\b9 typedef std::vector::template\n-_\br_\be_\bb_\bi_\bn_\bd_\b__\ba_\bl_\bl_\bo_\bc_\b<_\bs_\bl_\bu_\b> > _\bs_\bl_\bu_\b__\bv_\be_\bc_\bt_\bo_\br;\n-810\n-_\b8_\b2_\b4 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz(const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& mat, const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br&\n-subDomains,\n-825 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relaxationFactor=1, bool _\bo_\bn_\bT_\bh_\be_\bF_\bl_\by_\b_=true);\n-826\n-_\b8_\b3_\b8 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz(const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& mat, const _\br_\bo_\bw_\bt_\bo_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br&\n-_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn,\n-839 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relaxationFactor=1, bool _\bo_\bn_\bT_\bh_\be_\bF_\bl_\by_\b_=true);\n-840\n-_\b8_\b4_\b6 virtual void _\bp_\br_\be ([[_\bm_\ba_\by_\bb_\be_\b__\bu_\bn_\bu_\bs_\be_\bd]] X& x, [[_\bm_\ba_\by_\bb_\be_\b__\bu_\bn_\bu_\bs_\be_\bd]] X& b)\n-847 {}\n-848\n-_\b8_\b5_\b4 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const X& _\bd);\n-855\n-_\b8_\b6_\b1 virtual void _\bp_\bo_\bs_\bt ([[_\bm_\ba_\by_\bb_\be_\b__\bu_\bn_\bu_\bs_\be_\bd]] X& x)\n-862 {}\n-863\n-864 template\n-_\b8_\b6_\b5 void _\ba_\bp_\bp_\bl_\by(X& v, const X& _\bd);\n-866\n-_\b8_\b6_\b8 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-869 {\n-870 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-871 }\n-872\n-873 private:\n-874 const M& mat;\n-875 _\bs_\bl_\bu_\b__\bv_\be_\bc_\bt_\bo_\br solvers;\n-876 _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br subDomains;\n-877 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax;\n-878\n-879 typename M::size_type maxlength;\n-880\n-881 bool onTheFly;\n-882 };\n-883\n-884\n-885\n-886 template\n-_\b8_\b8_\b7 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-(_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\bL_\bi_\bs_\bt& il,\n-888 const _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& idx,\n-889 const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& domains_)\n-890 : initializers(&il), indices(&idx), indexMaps(il.size()), domains(domains_)\n-891 {}\n-892\n-893\n-894 template\n-_\b8_\b9_\b5 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\ba_\bd_\bd_\bR_\bo_\bw_\bN_\bn_\bz(const _\bI_\bt_\be_\br& row)\n-896 {\n-897 typedef typename IndexSet::value_type::const_iterator iterator;\n-898 for(iterator domain=(*indices)[row.index()].begin(); domain != (*indices)\n-[row.index()].end(); ++domain) {\n-899 (*initializers)[*domain].addRowNnz(row, domains[*domain]);\n-900 indexMaps[*domain].insert(row.index());\n-901 }\n-902 }\n-903\n-904 template\n-_\b9_\b0_\b5 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be()\n-906 {\n-907 for(auto&& i: *initializers)\n-908 i.allocateMatrixStorage();\n-909 for(auto&& i: *initializers)\n-910 i.allocateMarker();\n-911 }\n-912\n-913 template\n-_\b9_\b1_\b4 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(const _\bI_\bt_\be_\br& row,\n-const _\bC_\bI_\bt_\be_\br& _\bc_\bo_\bl) const\n-915 {\n-916 typedef typename IndexSet::value_type::const_iterator iterator;\n-917 for(iterator domain=(*indices)[row.index()].begin(); domain != (*indices)\n-[row.index()].end(); ++domain) {\n-918 typename std::map::const_iterator v = indexMaps\n-[*domain].find(_\bc_\bo_\bl.index());\n-919 if(v!= indexMaps[*domain].end()) {\n-920 (*initializers)[*domain].countEntries(indexMaps[*domain].find(_\bc_\bo_\bl.index())-\n->second);\n-921 }\n-922 }\n-923 }\n-924\n-925 template\n-_\b9_\b2_\b6 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bc_\ba_\bl_\bc_\bC_\bo_\bl_\bs_\bt_\ba_\br_\bt() const\n-927 {\n-928 for(auto&& i : *initializers)\n-929 i.calcColstart();\n-930 }\n-931\n-932 template\n-_\b9_\b3_\b3 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bc_\bo_\bp_\by_\bV_\ba_\bl_\bu_\be(const _\bI_\bt_\be_\br& row, const\n-_\bC_\bI_\bt_\be_\br& _\bc_\bo_\bl) const\n-934 {\n-935 typedef typename IndexSet::value_type::const_iterator iterator;\n-936 for(iterator domain=(*indices)[row.index()].begin(); domain!= (*indices)\n-[row.index()].end(); ++domain) {\n-937 typename std::map::const_iterator v = indexMaps\n-[*domain].find(_\bc_\bo_\bl.index());\n-938 if(v!= indexMaps[*domain].end()) {\n-939 assert(indexMaps[*domain].end()!=indexMaps[*domain].find(row.index()));\n-940 (*initializers)[*domain].copyValue(_\bc_\bo_\bl, indexMaps[*domain].find(row.index\n-())->second,\n-941 v->second);\n-942 }\n-943 }\n-944 }\n-945\n-946 template\n-_\b9_\b4_\b7 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx() const\n-948 {\n-949 std::vector().swap(indexMaps);\n-950 for(auto&& i: *initializers)\n-951 i.createMatrix();\n-952 }\n-953\n-954 template\n-_\b9_\b5_\b5 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp()\n-956 : row(0)\n-957 {}\n-958\n-959 template\n-_\b9_\b6_\b0 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt(size_type grow)\n-961 {\n-962 assert(map_.find(grow)==map_.end());\n-963 map_.insert(std::make_pair(grow, row++));\n-964 }\n-965\n-966 template\n-967 typename OverlappingSchwarzInitializer::IndexMap::const_iterator\n-_\b9_\b6_\b8 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bf_\bi_\bn_\bd(size_type grow) const\n-969 {\n-970 return map_.find(grow);\n-971 }\n-972\n-973 template\n-974 typename OverlappingSchwarzInitializer::IndexMap::iterator\n-_\b9_\b7_\b5 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bf_\bi_\bn_\bd(size_type grow)\n-976 {\n-977 return map_.find(grow);\n-978 }\n-979\n-980 template\n-981 typename OverlappingSchwarzInitializer::IndexMap::const_iterator\n-_\b9_\b8_\b2 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd() const\n-983 {\n-984 return map_.end();\n-985 }\n-986\n-987 template\n-988 typename OverlappingSchwarzInitializer::IndexMap::iterator\n-_\b9_\b8_\b9 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd()\n-990 {\n-991 return map_.end();\n-992 }\n-993\n-994 template\n-995 typename OverlappingSchwarzInitializer::IndexMap::const_iterator\n-_\b9_\b9_\b6 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn() const\n-997 {\n-998 return map_.begin();\n-999 }\n-1000\n-1001 template\n-1002 typename OverlappingSchwarzInitializer::IndexMap::iterator\n-_\b1_\b0_\b0_\b3 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn()\n-1004 {\n-1005 return map_.begin();\n-1006 }\n-1007\n-1008 template\n-_\b1_\b0_\b0_\b9 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bD_\b,_\bT_\bA_\b>_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz(const\n-_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt_\b_, const _\br_\bo_\bw_\bt_\bo_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& _\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn,\n-1010 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relaxationFactor, bool _\bf_\bl_\by)\n-1011 : _\bm_\ba_\bt(_\bm_\ba_\bt_\b_), relax(relaxationFactor), onTheFly(_\bf_\bl_\by)\n-1012 {\n-1013 typedef typename rowtodomain_vector::const_iterator _\bR_\bo_\bw_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-1014 typedef typename subdomain_list::const_iterator _\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-1015#ifdef DUNE_ISTL_WITH_CHECKING\n-1016 _\ba_\bs_\bs_\be_\br_\bt(_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.size()==mat.N());\n-1017 _\ba_\bs_\bs_\be_\br_\bt(_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.size()==mat.M());\n-1018\n-1019 for(_\bR_\bo_\bw_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bi_\bt_\be_\br=_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.begin(); _\bi_\bt_\be_\br != _\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.end();\n-++_\bi_\bt_\be_\br)\n-1020 _\ba_\bs_\bs_\be_\br_\bt(_\bi_\bt_\be_\br->size()>0);\n-1021\n-1022#endif\n-1023 // calculate the number of domains\n-1024 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be domains=0;\n-1025 for(_\bR_\bo_\bw_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bi_\bt_\be_\br=_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.begin(); _\bi_\bt_\be_\br != _\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.end();\n-++_\bi_\bt_\be_\br)\n-1026 for(_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bd=_\bi_\bt_\be_\br->begin(); _\bd != _\bi_\bt_\be_\br->end(); ++_\bd)\n-1027 domains=std::max(domains, *_\bd);\n-1028 ++domains;\n-1029\n-1030 solvers.resize(domains);\n-1031 subDomains.resize(domains);\n-1032\n-1033 // initialize subdomains to row mapping from row to subdomain mapping\n-1034 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row=0;\n-1035 for(_\bR_\bo_\bw_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bi_\bt_\be_\br=_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.begin(); _\bi_\bt_\be_\br != _\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.end();\n-++_\bi_\bt_\be_\br, ++row)\n-1036 for(_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bd=_\bi_\bt_\be_\br->begin(); _\bd != _\bi_\bt_\be_\br->end(); ++_\bd)\n-1037 subDomains[*_\bd].insert(row);\n-1038\n-1039#ifdef DUNE_ISTL_WITH_CHECKING\n-1040 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0;\n-1041 typedef typename subdomain_vector::const_iterator iterator;\n-1042 for(iterator _\bi_\bt_\be_\br=subDomains.begin(); _\bi_\bt_\be_\br != subDomains.end(); ++_\bi_\bt_\be_\br) {\n-1043 typedef typename subdomain_type::const_iterator _\be_\bn_\bt_\br_\by_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-1044 Dune::dvverb<<\"domain \"<begin(); entry != _\bi_\bt_\be_\br->end(); ++entry) {\n-1046 Dune::dvverb<<\" \"<<*entry;\n-1047 }\n-1048 Dune::dvverb<\n-1052_\b _\b:_\b:_\ba_\bs_\bs_\be_\bm_\bb_\bl_\be_\bL_\bo_\bc_\ba_\bl_\bP_\br_\bo_\bb_\bl_\be_\bm_\bs(_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn, mat, solvers, subDomains, onTheFly);\n-1053 }\n-1054\n-1055 template\n-_\b1_\b0_\b5_\b6 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bD_\b,_\bT_\bA_\b>_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz(const\n-_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt_\b_,\n-1057 const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& _\bs_\bd,\n-1058 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relaxationFactor,\n-1059 bool _\bf_\bl_\by)\n-1060 : _\bm_\ba_\bt(_\bm_\ba_\bt_\b_), solvers(_\bs_\bd.size()), subDomains(_\bs_\bd), relax(relaxationFactor),\n-1061 onTheFly(_\bf_\bl_\by)\n-1062 {\n-1063 typedef typename subdomain_vector::const_iterator _\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-1064\n-1065#ifdef DUNE_ISTL_WITH_CHECKING\n-1066 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0;\n-1067\n-1068 for(_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bd=_\bs_\bd.begin(); _\bd != _\bs_\bd.end(); ++_\bd,++i) {\n-1069 //std::cout<size()<size()>0);\n-1071 typedef typename DomainIterator::value_type::const_iterator\n-_\be_\bn_\bt_\br_\by_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-1072 Dune::dvverb<<\"domain \"<begin(); entry != _\bd->end(); ++entry) {\n-1074 Dune::dvverb<<\" \"<<*entry;\n-1075 }\n-1076 Dune::dvverb<begin(); row != _\bd_\bo_\bm_\ba_\bi_\bn->end(); ++row)\n-1089 _\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn[*row].push_back(_\bd_\bo_\bm_\ba_\bi_\bn_\bI_\bd);\n-1090 }\n-1091\n-1092 maxlength = _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\b<_\bs_\bl_\bu_\b>\n-1093_\b _\b:_\b:_\ba_\bs_\bs_\be_\bm_\bb_\bl_\be_\bL_\bo_\bc_\ba_\bl_\bP_\br_\bo_\bb_\bl_\be_\bm_\bs(_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn, mat, solvers, subDomains, onTheFly);\n-1094 }\n-1095\n-1102 template\n-_\b1_\b1_\b0_\b3 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be {};\n-1104\n-1105 template\n-_\b1_\b1_\b0_\b6 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n-1107 {\n-_\b1_\b1_\b0_\b8 static constexpr size_t n = std::decay_t()))>::rows;\n-_\b1_\b1_\b0_\b9 static constexpr size_t m = std::decay_t()))>::cols;\n-1110 template\n-_\b1_\b1_\b1_\b1 static int _\bs_\bi_\bz_\be(const Domain & d)\n-1112 {\n-1113 assert(n==m);\n-1114 return m*d.size();\n-1115 }\n-1116 };\n-1117\n-1118 template\n-1119 template\n-1120 std::size_t\n-_\b1_\b1_\b2_\b1 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<\n-_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b>, X, Y >,false>::\n-1122 assembleLocalProblems([[maybe_unused]] const RowToDomain& rowToDomain,\n-1123 [[maybe_unused]] const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n-1124 [[maybe_unused]] Solvers& solvers,\n-1125 const SubDomains& subDomains,\n-1126 [[maybe_unused]] bool onTheFly)\n-1127 {\n-1128 typedef typename SubDomains::const_iterator DomainIterator;\n-1129 std::size_t maxlength = 0;\n-1130\n-1131 assert(onTheFly);\n-1132\n-1133 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end();\n-++domain)\n-1134 maxlength=std::max(maxlength, domain->size());\n-1135 maxlength*=n;\n-1136\n-1137 return maxlength;\n-1138 }\n-1139\n-1140#if HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK\n-1141 template class S, typename T, typename A>\n-1142 template\n-_\b1_\b1_\b4_\b3 std::size_t\n-_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::\n-assembleLocalProblems(const RowToDomain& rowToDomain,\n-1144 const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n-1145 Solvers& solvers,\n-1146 const SubDomains& subDomains,\n-1147 bool onTheFly)\n-1148 {\n-1149 typedef typename S>::MatrixInitializer MatrixInitializer;\n-1150 typedef typename std::vector::iterator\n-InitializerIterator;\n-1151 typedef typename SubDomains::const_iterator DomainIterator;\n-1152 typedef typename Solvers::iterator SolverIterator;\n-1153 std::size_t maxlength = 0;\n-1154\n-1155 if(onTheFly) {\n-1156 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end();\n-++domain)\n-1157 maxlength=std::max(maxlength, domain->size());\n-1158 maxlength*=Impl::asMatrix(*_\bm_\ba_\bt[0].begin()).N();\n-1159 }else{\n-1160 // initialize the initializers\n-1161 DomainIterator domain=subDomains.begin();\n-1162\n-1163 // Create the initializers list.\n-1164 std::vector initializers(subDomains.size());\n-1165\n-1166 SolverIterator solver=solvers.begin();\n-1167 for(InitializerIterator initializer=initializers.begin();\n-initializer!=initializers.end();\n-1168 ++initializer, ++solver, ++domain) {\n-1169 solver->getInternalMatrix\n-().N_=_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be_\b<_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bs_\bi_\bz_\be(*domain);\n-1170 solver->getInternalMatrix\n-().M_=_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be_\b<_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bs_\bi_\bz_\be(*domain);\n-1171 //solver->setVerbosity(true);\n-1172 *initializer=MatrixInitializer(solver->getInternalMatrix());\n-1173 }\n-1174\n-1175 // Set up the supermatrices according to the subdomains\n-1176 typedef _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bs_\bt_\bd_\b:_\b:_\bv_\be_\bc_\bt_\bo_\br_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b>,\n-1177 RowToDomain, SubDomains> Initializer;\n-1178\n-1179 Initializer initializer(initializers, rowToDomain, subDomains);\n-1180 copyToBCCSMatrix(initializer, _\bm_\ba_\bt);\n-1181\n-1182 // Calculate the LU decompositions\n-1183 for(auto&& s: solvers)\n-1184 s.decompose();\n-1185 for (SolverIterator solverIt = solvers.begin(); solverIt != solvers.end();\n-++solverIt)\n-1186 {\n-1187 assert(solverIt->getInternalMatrix().N() == solverIt->getInternalMatrix\n-().M());\n-1188 maxlength = std::max(maxlength, solverIt->getInternalMatrix().N());\n-1189 }\n-1190 }\n-1191 return maxlength;\n-1192 }\n-1193\n-1194#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK\n-1195\n-1196 template\n-1197 template\n-_\b1_\b1_\b9_\b8 std::size_t _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:\n-_\ba_\bs_\bs_\be_\bm_\bb_\bl_\be_\bL_\bo_\bc_\ba_\bl_\bP_\br_\bo_\bb_\bl_\be_\bm_\bs([[maybe_unused]] const RowToDomain& rowToDomain,\n-1199 const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n-1200 Solvers& solvers,\n-1201 const SubDomains& subDomains,\n-1202 bool onTheFly)\n-1203 {\n-1204 typedef typename SubDomains::const_iterator DomainIterator;\n-1205 typedef typename Solvers::iterator SolverIterator;\n-1206 std::size_t maxlength = 0;\n-1207\n-1208 if(onTheFly) {\n-1209 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end();\n-++domain)\n-1210 maxlength=std::max(maxlength, domain->size());\n-1211 }else{\n-1212 // initialize the solvers of the local prolems.\n-1213 SolverIterator solver=solvers.begin();\n-1214 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end();\n-1215 ++domain, ++solver) {\n-1216 solver->setSubMatrix(_\bm_\ba_\bt, *domain);\n-1217 maxlength=std::max(maxlength, domain->size());\n-1218 }\n-1219 }\n-1220\n-1221 return maxlength;\n-1222\n-1223 }\n-1224\n-1225\n-1226 template\n-_\b1_\b2_\b2_\b7 void _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bD_\b,_\bT_\bA_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(X& x, const X& b)\n-1228 {\n-1229 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(*this, x, b);\n-1230 }\n-1231\n-1232 template\n-1233 template\n-_\b1_\b2_\b3_\b4 void _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bD_\b,_\bT_\bA_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(X& x, const X& b)\n-1235 {\n-1236 typedef _\bs_\bl_\bu_\b__\bv_\be_\bc_\bt_\bo_\br solver_vector;\n-1237 typedef typename\n-_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bf_\bo_\br_\bw_\ba_\br_\bd_\b>_\b:_\b:\n-_\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br iterator;\n-1238 typedef typename\n-_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bf_\bo_\br_\bw_\ba_\br_\bd_\b>_\b:_\b:\n-_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-1239 domain_iterator;\n-1240\n-1241 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bT_\bD_\b> assigner(maxlength, _\bm_\ba_\bt, b, x);\n-1242\n-1243 domain_iterator\n-_\bd_\bo_\bm_\ba_\bi_\bn=_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bf_\bo_\br_\bw_\ba_\br_\bd_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-(subDomains);\n-1244 iterator solver =\n-_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bf_\bo_\br_\bw_\ba_\br_\bd_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-(solvers);\n-1245 X v(x); // temporary for the update\n-1246 v=0;\n-1247\n-1248 typedef typename _\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bT_\bM_\b,_\bX_\b,_\bT_\bD_\b _\b>_\b:_\b:_\bA_\bd_\bd_\be_\br Adder;\n-1249 Adder adder(v, x, assigner, relax);\n-1250\n-1251 for(; _\bd_\bo_\bm_\ba_\bi_\bn !=\n-_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bf_\bo_\br_\bw_\ba_\br_\bd_\b>_\b:_\b:_\be_\bn_\bd\n-(subDomains); ++_\bd_\bo_\bm_\ba_\bi_\bn) {\n-1252 //Copy rhs to C-array for SuperLU\n-1253 std::for_each(_\bd_\bo_\bm_\ba_\bi_\bn->begin(), _\bd_\bo_\bm_\ba_\bi_\bn->end(), assigner);\n-1254 assigner.resetIndexForNextDomain();\n-1255 if(onTheFly) {\n-1256 // Create the subdomain solver\n-1257 _\bs_\bl_\bu _\bs_\bd_\bs_\bo_\bl_\bv_\be_\br;\n-1258 _\bs_\bd_\bs_\bo_\bl_\bv_\be_\br.setSubMatrix(_\bm_\ba_\bt, *_\bd_\bo_\bm_\ba_\bi_\bn);\n-1259 // Apply\n-1260 _\bs_\bd_\bs_\bo_\bl_\bv_\be_\br.apply(assigner.lhs(), assigner.rhs());\n-1261 }else{\n-1262 solver->apply(assigner.lhs(), assigner.rhs());\n-1263 ++solver;\n-1264 }\n-1265\n-1266 //Add relaxed correction to from SuperLU to v\n-1267 std::for_each(_\bd_\bo_\bm_\ba_\bi_\bn->begin(), _\bd_\bo_\bm_\ba_\bi_\bn->end(), adder);\n-1268 assigner.resetIndexForNextDomain();\n-1269\n-1270 }\n-1271\n-1272 adder.axpy();\n-1273 assigner.deallocate();\n-1274 }\n-1275\n-1276 template\n-1277 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b>, X, Y >,false>\n-_\b1_\b2_\b7_\b8 ::OverlappingAssignerHelper(std::size_t maxlength, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,\n-_\bA_\bl_\b>& mat_,\n-1279 const X& b_, Y& x_) :\n-1280 _\bm_\ba_\bt(&mat_),\n-1281 rhs_( new DynamicVector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(maxlength, 42) ),\n-1282 lhs_( new DynamicVector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(maxlength, -42) ),\n-1283 b(&b_),\n-1284 x(&x_),\n-1285 i(0),\n-1286 maxlength_(maxlength)\n-1287 {}\n-1288\n-1289 template\n-1290 void\n-1291 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b>, X, Y >,false>\n-_\b1_\b2_\b9_\b2 ::deallocate()\n-1293 {\n-1294 delete rhs_;\n-1295 delete lhs_;\n-1296 }\n-1297\n-1298 template\n-1299 void\n-1300 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b>, X, Y >,false>\n-_\b1_\b3_\b0_\b1 ::resetIndexForNextDomain()\n-1302 {\n-1303 i=0;\n-1304 }\n-1305\n-1306 template\n-1307 DynamicVector &\n-1308 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b>, X, Y >,false>\n-_\b1_\b3_\b0_\b9 ::lhs()\n-1310 {\n-1311 return *lhs_;\n-1312 }\n-1313\n-1314 template\n-1315 DynamicVector &\n-1316 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b>, X, Y >,false>\n-_\b1_\b3_\b1_\b7 ::rhs()\n-1318 {\n-1319 return *rhs_;\n-1320 }\n-1321\n-1322 template\n-1323 void\n-1324 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b>, X, Y >,false>\n-_\b1_\b3_\b2_\b5 ::relaxResult(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax)\n-1326 {\n-1327 lhs() *= relax;\n-1328 }\n-1329\n-1330 template\n-1331 void\n-1332 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b>, X, Y >,false>\n-_\b1_\b3_\b3_\b3 ::operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domainIndex)\n-1334 {\n-1335 lhs() = 0.0;\n-1336#if 0\n-1337 //assign right hand side of current domainindex block\n-1338 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j\n-1376 void\n-1377 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b>, X, Y >,false>\n-_\b1_\b3_\b7_\b8 ::assignResult(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res)\n-1379 {\n-1380 // assign the result of the local solve to the global vector\n-1381 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j class S, typename T, typename A>\n-1390 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>\n-_\b1_\b3_\b9_\b1 ::OverlappingAssignerHelper(std::size_t maxlength,\n-1392 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>& mat_,\n-1393 const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b_,\n-1394 _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& x_)\n-1395 : _\bm_\ba_\bt(&mat_),\n-1396 b(&b_),\n-1397 x(&x_), i(0), maxlength_(maxlength)\n-1398 {\n-1399 rhs_ = new _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be[maxlength];\n-1400 lhs_ = new _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be[maxlength];\n-1401\n-1402 }\n-1403\n-1404 template class S, typename T, typename A>\n-_\b1_\b4_\b0_\b5 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b> >,true>::deallocate()\n-1406 {\n-1407 delete[] rhs_;\n-1408 delete[] lhs_;\n-1409 }\n-1410\n-1411 template class S, typename T, typename A>\n-_\b1_\b4_\b1_\b2 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::operator()(const\n-_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domainIndex)\n-1413 {\n-1414 //assign right hand side of current domainindex block\n-1415 // rhs is an array of doubles!\n-1416 // rhs[starti] = b[domainindex]\n-1417 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j class S, typename T, typename A>\n-_\b1_\b4_\b4_\b1 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::relaxResult\n-(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax)\n-1442 {\n-1443 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=i+n; i class S, typename T, typename A>\n-_\b1_\b4_\b5_\b1 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::assignResult\n-(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res)\n-1452 {\n-1453 // assign the result of the local solve to the global vector\n-1454 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j class S, typename T, typename A>\n-_\b1_\b4_\b6_\b1 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::\n-resetIndexForNextDomain()\n-1462 {\n-1463 i=0;\n-1464 }\n-1465\n-1466 template class S, typename T, typename A>\n-1467 typename _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::field_type*\n-_\b1_\b4_\b6_\b8 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::lhs()\n-1469 {\n-1470 return lhs_;\n-1471 }\n-1472\n-1473 template class S, typename T, typename A>\n-1474 typename _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::field_type*\n-_\b1_\b4_\b7_\b5 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::rhs()\n-1476 {\n-1477 return rhs_;\n-1478 }\n-1479\n-1480#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK\n-1481\n-1482 template\n-_\b1_\b4_\b8_\b3 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be(std::size_t\n-maxlength,\n-1484 const M& mat_,\n-1485 const Y& b_,\n-1486 X& x_)\n-1487 : _\bm_\ba_\bt(&mat_),\n-1488 b(&b_),\n-1489 x(&x_), i(0)\n-1490 {\n-1491 rhs_= new Y(maxlength);\n-1492 lhs_ = new X(maxlength);\n-1493 }\n-1494\n-1495 template\n-_\b1_\b4_\b9_\b6 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be()\n-1497 {\n-1498 delete rhs_;\n-1499 delete lhs_;\n-1500 }\n-1501\n-1502 template\n-_\b1_\b5_\b0_\b3 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be&\n-domainIndex)\n-1504 {\n-1505 (*rhs_)[i]=(*b)[domainIndex];\n-1506\n-1507 // loop over all Matrix row entries and calculate defect.\n-1508 typedef typename matrix_type::ConstColIterator col_iterator;\n-1509\n-1510 // calculate defect for current row index block\n-1511 for(col_iterator _\bc_\bo_\bl=(*_\bm_\ba_\bt)[domainIndex].begin(); _\bc_\bo_\bl!=(*mat)\n-[domainIndex].end(); ++_\bc_\bo_\bl) {\n-1512 Impl::asMatrix(*col).mmv((*x)[_\bc_\bo_\bl.index()], (*rhs_)[i]);\n-1513 }\n-1514 // Goto next local index\n-1515 ++i;\n-1516 }\n-1517\n-1518 template\n-_\b1_\b5_\b1_\b9 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\br_\be_\bl_\ba_\bx_\bR_\be_\bs_\bu_\bl_\bt(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax)\n-1520 {\n-1521 (*lhs_)[i]*=relax;\n-1522 }\n-1523\n-1524 template\n-_\b1_\b5_\b2_\b5 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\ba_\bs_\bs_\bi_\bg_\bn_\bR_\be_\bs_\bu_\bl_\bt(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res)\n-1526 {\n-1527 res+=(*lhs_)[i++];\n-1528 }\n-1529\n-1530 template\n-_\b1_\b5_\b3_\b1 X& _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bl_\bh_\bs()\n-1532 {\n-1533 return *lhs_;\n-1534 }\n-1535\n-1536 template\n-_\b1_\b5_\b3_\b7 Y& _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\br_\bh_\bs()\n-1538 {\n-1539 return *rhs_;\n-1540 }\n-1541\n-1542 template\n-_\b1_\b5_\b4_\b3 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bF_\bo_\br_\bN_\be_\bx_\bt_\bD_\bo_\bm_\ba_\bi_\bn()\n-1544 {\n-1545 i=0;\n-1546 }\n-1547\n-1548 template\n-_\b1_\b5_\b4_\b9 _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >::AdditiveAdder(_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& v_,\n-1550 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& x_,\n-1551 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>& assigner_,\n-1552 const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& relax_)\n-1553 : v(&v_), x(&x_), assigner(&assigner_), relax(relax_)\n-1554 {}\n-1555\n-1556 template\n-_\b1_\b5_\b5_\b7 void _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >::operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be&\n-domainIndex)\n-1558 {\n-1559 // add the result of the local solve to the current update\n-1560 assigner->assignResult((*v)[domainIndex]);\n-1561 }\n-1562\n-1563\n-1564 template\n-_\b1_\b5_\b6_\b5 void _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >::axpy()\n-1566 {\n-1567 // relax the update and add it to the current guess.\n-1568 x->axpy(relax,*v);\n-1569 }\n-1570\n-1571\n-1572 template\n-1573 _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >\n-_\b1_\b5_\b7_\b4 ::MultiplicativeAdder([[maybe_unused]] _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& v_,\n-1575 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& x_,\n-1576 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>& assigner_, const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& relax_)\n-1577 : x(&x_), assigner(&assigner_), relax(relax_)\n-1578 {}\n-1579\n-1580\n-1581 template\n-_\b1_\b5_\b8_\b2 void _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >::operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be&\n-domainIndex)\n-1583 {\n-1584 // add the result of the local solve to the current guess\n-1585 assigner->relaxResult(relax);\n-1586 assigner->assignResult((*x)[domainIndex]);\n-1587 }\n-1588\n-1589\n-1590 template\n-_\b1_\b5_\b9_\b1 void _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >::axpy()\n-1592 {\n-1593 // nothing to do, as the corrections already relaxed and added in operator\n-()\n-1594 }\n-1595\n-1596\n-1598}\n-1599\n-1600#endif\n-_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh\n-Classes for using SuperLU with ISTL matrices.\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n-Define general preconditioner interface.\n-_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh\n-Classes for using UMFPack with ISTL matrices.\n-_\bi_\bl_\bu_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n-Various local subdomain solvers based on ILU for SeqOverlappingSchwarz.\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n-_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n-Templates characterizing the type of a solver.\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\ba_\bd_\bd_\bR_\bo_\bw_\bN_\bn_\bz\n-void addRowNnz(const Iter &row)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:895\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(X &v, const X &d)\n-Apply one step of the preconditioner to the system A(v)=d.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1234\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bl_\bh_\bs\n-X & lhs()\n-Get the local left hand side.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1531\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bc_\ba_\bl_\bc_\bC_\bo_\bl_\bs_\bt_\ba_\br_\bt\n-void calcColstart() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:926\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\br_\bh_\bs\n-Y & rhs()\n-Get the local right hand side.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1537\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n-iterator end()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:989\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bF_\bo_\br_\bN_\be_\bx_\bt_\bD_\bo_\bm_\ba_\bi_\bn\n-void resetIndexForNextDomain()\n-Resets the local index to zero.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1543\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bc_\bo_\bp_\by_\bV_\ba_\bl_\bu_\be\n-void copyValue(const Iter &row, const CIter &col) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:933\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx\n-void createMatrix() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:947\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-iterator begin()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1003\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-OverlappingSchwarzInitializer(InitializerList &il, const IndexSet &indices,\n-const subdomain_vector &domains)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:887\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n-IndexMap()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:955\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &v, const X &d)\n-Apply the precondtioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1227\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n-OverlappingAssignerILUBase(std::size_t maxlength, const M &mat, const Y &b, X\n-&x)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1483\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bf_\bi_\bn_\bd\n-const_iterator find(size_type grow) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:968\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const size_type &domain)\n-calculate one entry of the local defect.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1503\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n-SeqOverlappingSchwarz(const matrix_type &mat, const subdomain_vector\n-&subDomains, field_type relaxationFactor=1, bool onTheFly_=true)\n-Construct the overlapping Schwarz method.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1056\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n-void allocate()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:905\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n-void deallocate()\n-Deallocates memory of the local vector.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1496\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt\n-void insert(size_type grow)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:960\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs\n-void countEntries(const Iter &row, const CIter &col) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:914\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\ba_\bs_\bs_\be_\bm_\bb_\bl_\be_\bL_\bo_\bc_\ba_\bl_\bP_\br_\bo_\bb_\bl_\be_\bm_\bs\n-static std::size_t assembleLocalProblems(const RowToDomain &rowToDomain, const\n-matrix_type &mat, Solvers &solvers, const SubDomains &domains, bool onTheFly)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1198\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\br_\be_\bl_\ba_\bx_\bR_\be_\bs_\bu_\bl_\bt\n-void relaxResult(field_type relax)\n-relax the result.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1519\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\ba_\bs_\bs_\bi_\bg_\bn_\bR_\be_\bs_\bu_\bl_\bt\n-void assignResult(block_type &res)\n-Assigns the block to the current local index. At the same time the local defect\n-is calculated for the...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1525\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n-SeqOverlappingSchwarz(const matrix_type &mat, const rowtodomain_vector\n-&rowToDomain, field_type relaxationFactor=1, bool onTheFly_=true)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1009\n+111}\n+112#endif\n+_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-Initializer for SuperLU Matrices representing the subdomains.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:47\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bC_\bI_\bt_\be_\br\n-Matrix::row_type::const_iterator CIter\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-S IndexSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:58\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bt_\be_\br\n-Matrix::const_iterator Iter\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:55\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-IndexSet::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:59\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\bL_\bi_\bs_\bt\n-I InitializerList\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-AtomInitializer::Matrix Matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:54\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bA_\bt_\bo_\bm_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-InitializerList::value_type AtomInitializer\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n-D subdomain_vector\n-The vector type containing the subdomain to row index mapping.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:50\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-Iterator end()\n-Get iterator to one beyond last row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:681\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-The type for the index access and the size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::ConstIterator ConstColIterator\n-Const iterator to the entries of a row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:741\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n-Exact subdomain solver using ILU(p) with appropriate p.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:78\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:111\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n-Sequential overlapping Schwarz preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:783\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bl_\bi_\bs_\bt\n-SLList< size_type, typename std::allocator_traits< TA >::template rebind_alloc<\n-size_type > > subdomain_list\n-The type for the row to subdomain mapping.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:800\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bl_\bu_\b__\bv_\be_\bc_\bt_\bo_\br\n-std::vector< slu, typename std::allocator_traits< TA >::template rebind_alloc<\n-slu > > slu_vector\n-The vector type containing subdomain solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:809\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-The type of the matrix to precondition.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:760\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bM_\bo_\bd_\be\n-TM Mode\n-The mode (additive or multiplicative) of the Schwarz method.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:778\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-X range_type\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(X &x)=0\n+Clean up.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &v, const Y &d)=0\n+Apply one step of the preconditioner to the system A(v)=d.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\b~_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+virtual ~Preconditioner()\n+every abstract base class has a virtual destructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:104\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:770\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-std::set< size_type, std::less< size_type >, typename std::allocator_traits< TA\n->::template rebind_alloc< size_type > > subdomain_type\n-The type for the subdomain to row index mapping.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:794\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n X domain_type\n The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:765\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bl_\bu\n-TD slu\n-The type for the subdomain solver in use.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:806\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:35\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const =0\n Category of the preconditioner (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:868\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bp_\br_\be\n-virtual void pre(X &x, X &b)\n-Prepare the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:846\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bp_\bo_\bs_\bt\n-virtual void post(X &x)\n-Postprocess the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:861\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n-TA allocator\n-The allocator to use.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:789\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n-std::vector< subdomain_type, typename std::allocator_traits< TA >::template\n-rebind_alloc< subdomain_type > > subdomain_vector\n-The vector type containing the subdomain to row index mapping.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:797\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\br_\bo_\bw_\bt_\bo_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n-std::vector< subdomain_list, typename std::allocator_traits< TA >::template\n-rebind_alloc< subdomain_list > > rowtodomain_vector\n-The vector type containing the row index to subdomain mapping.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:803\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-matrix_type::size_type size_type\n-The return type of the size method.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:786\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:694\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n-Tag that the tells the Schwarz method to be additive.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n-Tag that tells the Schwarz method to be multiplicative.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n-Tag that tells the Schwarz method to be multiplicative and symmetric.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:133\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n-Exact subdomain solver using Dune::DynamicMatrix::solve.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:140\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-std::remove_const< M >::type matrix_type\n-The matrix type the preconditioner is for.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The domain type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:153\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The range type of the preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:155\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n-void setSubMatrix(const M &BCRS, S &rowset)\n-Set the data of the local problem.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:184\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(DynamicVector< field_type > &v, DynamicVector< field_type > &d)\n-Apply the subdomain solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:162\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be\n-std::remove_const< M >::type rilu_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:151\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:215\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-matrix_type::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n X::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:226\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-BCRSMatrix< K, Al > matrix_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:225\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:227\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n-_\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-range_type::block_type block_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:228\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-S< BCRSMatrix< T, A > >::range_type range_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:315\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-range_type::block_type block_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:317\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-range_type::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:316\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-matrix_type::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:319\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-BCRSMatrix< T, A > matrix_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:314\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:400\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-matrix_type::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:408\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Y::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:404\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-Y::block_type block_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:406\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:402\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:\n-_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-OverlappingAssignerHelper(std::size_t maxlength, const M &mat, const Y &b, X\n-&x)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:493\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:\n-_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-OverlappingAssignerHelper(std::size_t maxlength, const M &mat, const Y &b, X\n-&x)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:512\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:520\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-std::decay_t< decltype(Impl::asVector(std::declval< T >()))>::field_type\n-field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:526\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:525\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:542\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:547\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-std::decay_t< decltype(Impl::asVector(std::declval< T >()))>::field_type\n-field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:548\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-template meta program for choosing how to add the correction.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:572\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>_\b:_\b:_\bA_\bd_\bd_\be_\br\n-AdditiveAdder< S, X > Adder\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:577\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>_\b:_\b:_\bA_\bd_\bd_\be_\br\n-MultiplicativeAdder< S, X > Adder\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:583\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>_\b:_\b:_\bA_\bd_\bd_\be_\br\n-MultiplicativeAdder< S, X > Adder\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:589\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n-Helper template meta program for application of overlapping Schwarz.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:605\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-static solver_iterator begin(solver_vector &sv)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:611\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-solver_vector::iterator solver_iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:607\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n-static domain_iterator end(const subdomain_vector &sv)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:625\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-subdomain_vector::const_iterator domain_iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:609\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br\n-T1 solver_vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:606\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-static domain_iterator begin(const subdomain_vector &sv)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:620\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n-T2 subdomain_vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:608\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n-static solver_iterator end(solver_vector &sv)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:616\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n-T2 subdomain_vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:636\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\be_\bn_\bd\n-static solver_iterator end(solver_vector &sv)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:644\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-solver_vector::reverse_iterator solver_iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:635\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-subdomain_vector::const_reverse_iterator domain_iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:637\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-static solver_iterator begin(solver_vector &sv)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:639\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br\n-T1 solver_vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:634\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-static domain_iterator begin(const subdomain_vector &sv)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:648\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\be_\bn_\bd\n-static domain_iterator end(const subdomain_vector &sv)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:653\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br\n-Helper template meta program for application of overlapping Schwarz.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:669\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-smoother::range_type range_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:671\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br\n-T smoother\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:670\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-static void apply(smoother &sm, range_type &v, const range_type &b)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:673\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bT_\bD_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-static void apply(smoother &sm, range_type &v, const range_type &b)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:685\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bT_\bD_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br\n-SeqOverlappingSchwarz< M, X, SymmetricMultiplicativeSchwarzMode, TD, TA >\n-smoother\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:682\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n-_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bT_\bD_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-smoother::range_type range_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:683\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<\n-_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-BCRSMatrix< K, Al > matrix_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:702\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:\n-_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-BCRSMatrix< T, A > matrix_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:713\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:723\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-M matrix_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:724\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1103\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be\n-static int size(const Domain &d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1111\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:39\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\br_\be\n+virtual void pre(X &x, Y &b)=0\n+Prepare the preconditioner.\n _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n Category\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00158.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00158.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: ildl.hh File Reference\n+dune-istl: ldl.hh File Reference\n \n \n \n \n \n \n \n@@ -70,55 +70,66 @@\n
    \n \n
    \n
    \n
    \n \n-
    ildl.hh File Reference
    \n+ \n
    \n
    \n \n-

    Incomplete LDL decomposition. \n+

    Class for using LDL with ISTL matrices. \n More...

    \n-
    #include <dune/common/scalarvectorview.hh>
    \n-#include <dune/common/scalarmatrixview.hh>
    \n-#include "ilu.hh"
    \n+
    #include <iostream>
    \n+#include <memory>
    \n+#include <type_traits>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/istl/bccsmatrixinitializer.hh>
    \n+#include <dune/istl/solvers.hh>
    \n+#include <dune/istl/solvertype.hh>
    \n+#include <dune/istl/solverfactory.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    class  Dune::LDL< Matrix >
     Use the LDL package to directly solve linear systems – empty default class. More...
     
    class  Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >
     The LDL direct sparse solver for matrices of type BCRSMatrix. More...
     
    struct  Dune::IsDirectSolver< LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > >
     
    struct  Dune::StoresColumnCompressed< LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > >
     
    struct  Dune::LDLCreator
     
    struct  Dune::LDLCreator::isValidBlock< F >
     
    struct  Dune::LDLCreator::isValidBlock< FieldVector< double, k > >
     
    \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n

    \n Functions

    template<class K , int m, int n>
    static void Dune::bildl_subtractBCT (const FieldMatrix< K, m, n > &B, const FieldMatrix< K, m, n > &CT, FieldMatrix< K, m, n > &A)
     
    template<class K >
    static void Dune::bildl_subtractBCT (const K &B, const K &CT, K &A, typename std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)
     
    template<class Matrix >
    static void Dune::bildl_subtractBCT (const Matrix &B, const Matrix &CT, Matrix &A, typename std::enable_if_t<!Dune::IsNumber< Matrix >::value > *sfinae=nullptr)
     
    template<class Matrix >
    void Dune::bildl_decompose (Matrix &A)
     compute ILDL decomposition of a symmetric matrix A
     
    template<class Matrix , class X , class Y >
    void Dune::bildl_backsolve (const Matrix &A, X &v, const Y &d, bool isLowerTriangular=false)
     
     Dune::DUNE_REGISTER_DIRECT_SOLVER ("ldl", Dune::LDLCreator())
     
    \n

    Detailed Description

    \n-

    Incomplete LDL decomposition.

    \n-
    Author
    Martin Nolte
    \n+

    Class for using LDL with ISTL matrices.

    \n+
    Author
    Marco Agnese, Andrea Sacconi
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,44 +1,50 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-ildl.hh File Reference\n-Incomplete LDL decomposition. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+ldl.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b)\n+Class for using LDL with ISTL matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\b>\n+\u00a0 Use the LDL package to directly solve linear systems \u2013 empty default\n+ class. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0 The LDL direct sparse solver for matrices of type _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\b _\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,\n+ _\bA_\b _\b>_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bF_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bk_\b _\b>_\b _\b>\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-static void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT (const _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, m, n > &B, const\n- _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, m, n > &CT, _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, m, n > &A)\n-\u00a0\n-template\n-static void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT (const K &B, const K &CT, K &A, typename\n- std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)\n-\u00a0\n-template\n-static void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT (const _\bM_\ba_\bt_\br_\bi_\bx &B, const _\bM_\ba_\bt_\br_\bi_\bx &CT, _\bM_\ba_\bt_\br_\bi_\bx\n- &A, typename std::enable_if_t::value >\n- *sfinae=nullptr)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bd_\be_\bc_\bo_\bm_\bp_\bo_\bs_\be (_\bM_\ba_\bt_\br_\bi_\bx &A)\n-\u00a0 compute ILDL decomposition of a symmetric matrix A\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bb_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be (const _\bM_\ba_\bt_\br_\bi_\bx &A, X &v, const Y &d, bool\n- isLowerTriangular=false)\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"ldl\", _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br())\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Incomplete LDL decomposition.\n+Class for using LDL with ISTL matrices.\n Author\n- Martin Nolte\n+ Marco Agnese, Andrea Sacconi\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00158_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00158_source.html", "has_internal_linenos": true, "unified_diff": "@@ -21,2537 +21,4947 @@\n 00000140: 2267 656e 6572 6174 6f72 2220 636f 6e74 \"generator\" cont\n 00000150: 656e 743d 2244 6f78 7967 656e 2031 2e39 ent=\"Doxygen 1.9\n 00000160: 2e38 222f 3e0a 3c6d 6574 6120 6e61 6d65 .8\"/>..dune-istl: il\n-000001c0: 646c 2e68 6820 536f 7572 6365 2046 696c dl.hh Source Fil\n-000001d0: 653c 2f74 6974 6c65 3e0a 3c6c 696e 6b20 e...\n-00000280: 3c2f 7363 7269 7074 3e0a 3c6c 696e 6b20 ...\n-00000310: 3c73 6372 6970 7420 7479 7065 3d22 7465 .\n-00000350: 3c6c 696e 6b20 6872 6566 3d22 646f 7879 ....
    .\n-00000420: 0a20 3c74 626f 6479 3e0a 203c 7472 2069 . . .\n-00000440: 2020 3c74 6420 6964 3d22 7072 6f6a 6563 . .\n-000004c0: 203c 2f74 626f 6479 3e0a 3c2f 7461 626c .....<\n-00000630: 7363 7269 7074 2074 7970 653d 2274 6578 script type=\"tex\n-00000640: 742f 6a61 7661 7363 7269 7074 2220 7372 t/javascript\" sr\n-00000650: 633d 226d 656e 752e 6a73 223e 3c2f 7363 c=\"menu.js\">..<\n-00000790: 2f64 6976 3e0a 3c73 6372 6970 7420 7479 /div>..<\n+00000280: 2f73 6372 6970 743e 0a3c 6c69 6e6b 2068 /script>...<\n+00000310: 7363 7269 7074 2074 7970 653d 2274 6578 script type=\"tex\n+00000320: 742f 6a61 7661 7363 7269 7074 2220 7372 t/javascript\" sr\n+00000330: 633d 2273 6561 7263 682f 7365 6172 6368 c=\"search/search\n+00000340: 2e6a 7322 3e3c 2f73 6372 6970 743e 0a3c .js\">.<\n+00000350: 6c69 6e6b 2068 7265 663d 2264 6f78 7967 link href=\"doxyg\n+00000360: 656e 2e63 7373 2220 7265 6c3d 2273 7479 en.css\" rel=\"sty\n+00000370: 6c65 7368 6565 7422 2074 7970 653d 2274 lesheet\" type=\"t\n+00000380: 6578 742f 6373 7322 202f 3e0a 3c2f 6865 ext/css\" />...
    ....
    .\n \n \n \n \n \n@@ -71,45 +71,81 @@\n \n
    \n
    \n
    \n \n-
    bdmatrix.hh File Reference
    \n+Namespaces |\n+Functions
    \n+ \n \n
    \n \n-

    Implementation of the BDMatrix class. \n+

    Classes for using SuperLU with ISTL matrices. \n More...

    \n-
    #include <memory>
    \n-#include <dune/common/rangeutilities.hh>
    \n-#include <dune/common/scalarmatrixview.hh>
    \n-#include <dune/istl/bcrsmatrix.hh>
    \n-#include <dune/istl/blocklevel.hh>
    \n+
    #include "superlufunctions.hh"
    \n+#include "solvers.hh"
    \n+#include "supermatrix.hh"
    \n+#include <algorithm>
    \n+#include <functional>
    \n+#include "bcrsmatrix.hh"
    \n+#include "bvector.hh"
    \n+#include "istlexception.hh"
    \n+#include <dune/common/fmatrix.hh>
    \n+#include <dune/common/fvector.hh>
    \n+#include <dune/common/stdstreams.hh>
    \n+#include <dune/istl/solvertype.hh>
    \n+#include <dune/istl/solverfactory.hh>
    \n
    \n

    Go to the source code of this file.

    \n
    . dune-istl 2.9.0<\n-000004a0: 2f73 7061 6e3e 0a20 2020 3c2f 6469 763e /span>. \n-000004b0: 0a20 203c 2f74 643e 0a20 3c2f 7472 3e0a .
    \n \n-\n-\n+\n \n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::BDMatrix< B, A >
     A block-diagonal matrix. More...
    struct  Dune::SuperLUSolveChooser< T >
     
    struct  Dune::FieldTraits< BDMatrix< B, A > >
    struct  Dune::SuperLUDenseMatChooser< T >
     
    struct  Dune::SuperLUQueryChooser< T >
     
    struct  Dune::QuerySpaceChooser< T >
     
    class  Dune::SuperLU< M >
     SuperLu Solver. More...
     
    struct  Dune::IsDirectSolver< SuperLU< BCRSMatrix< T, A > > >
     
    struct  Dune::StoresColumnCompressed< SuperLU< BCRSMatrix< T, A > > >
     
    struct  Dune::SuperLUCreator
     
    struct  Dune::SuperLUCreator::isValidBlock< class >
     
    struct  Dune::SuperLUCreator::isValidBlock< Dune::FieldVector< double, k > >
     
    struct  Dune::SuperLUCreator::isValidBlock< Dune::FieldVector< std::complex< double >, k > >
     
    struct  Dune::SuperLUCreator::isValidBlock< double >
     
    struct  Dune::SuperLUCreator::isValidBlock< std::complex< double > >
     
    \n \n \n \n+

    \n Namespaces

    namespace  Dune
     
    \n+\n+\n+\n

    \n+Functions

     Dune::DUNE_REGISTER_DIRECT_SOLVER ("superlu", SuperLUCreator())
     
    \n

    Detailed Description

    \n-

    Implementation of the BDMatrix class.

    \n-
    Author
    Oliver Sander
    \n+

    Classes for using SuperLU with ISTL matrices.

    \n+
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,30 +1,65 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-bdmatrix.hh File Reference\n-Implementation of the BDMatrix class. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+superlu.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b)\n+Classes for using SuperLU with ISTL matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\"\n+#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n+#include \"_\bs_\bu_\bp_\be_\br_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+#include \n+#include \n+#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n-\u00a0 A block-diagonal matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bT_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bT_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bQ_\bu_\be_\br_\by_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bT_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bQ_\bu_\be_\br_\by_\bS_\bp_\ba_\bc_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bT_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\b _\bM_\b _\b>\n+\u00a0 SuperLu Solver. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\b _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bc_\bl_\ba_\bs_\bs_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bk_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<\n+ _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bk_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"superlu\", _\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br())\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Implementation of the BDMatrix class.\n+Classes for using SuperLU with ISTL matrices.\n Author\n- Oliver Sander\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00161_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00161_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: bdmatrix.hh Source File\n+dune-istl: superlu.hh Source File\n \n \n \n \n \n \n \n@@ -74,189 +74,833 @@\n \n
    \n \n
    \n
    \n
    \n-
    bdmatrix.hh
    \n+
    superlu.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_BDMATRIX_HH
    \n-
    6#define DUNE_ISTL_BDMATRIX_HH
    \n+
    5#ifndef DUNE_ISTL_SUPERLU_HH
    \n+
    6#define DUNE_ISTL_SUPERLU_HH
    \n
    7
    \n-
    8#include <memory>
    \n+
    8#if HAVE_SUPERLU
    \n
    9
    \n-
    10#include <dune/common/rangeutilities.hh>
    \n-
    11#include <dune/common/scalarmatrixview.hh>
    \n-
    12
    \n-\n-\n-
    15
    \n-
    21namespace Dune {
    \n-
    31 template <class B, class A=std::allocator<B> >
    \n-
    \n-
    32 class BDMatrix : public BCRSMatrix<B,A>
    \n-
    33 {
    \n-
    34 public:
    \n-
    35
    \n-
    36 //===== type definitions and constants
    \n-
    37
    \n-
    39 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n-
    40
    \n-
    42 typedef B block_type;
    \n-
    43
    \n-
    45 typedef A allocator_type;
    \n+
    10#include "superlufunctions.hh"
    \n+
    11#include "solvers.hh"
    \n+
    12#include "supermatrix.hh"
    \n+
    13#include <algorithm>
    \n+
    14#include <functional>
    \n+
    15#include "bcrsmatrix.hh"
    \n+
    16#include "bvector.hh"
    \n+
    17#include "istlexception.hh"
    \n+
    18#include <dune/common/fmatrix.hh>
    \n+
    19#include <dune/common/fvector.hh>
    \n+
    20#include <dune/common/stdstreams.hh>
    \n+\n+\n+
    23
    \n+
    24namespace Dune
    \n+
    25{
    \n+
    26
    \n+
    37 template<class M, class T, class TM, class TD, class TA>
    \n+
    38 class SeqOverlappingSchwarz;
    \n+
    39
    \n+
    40 template<class T, bool tag>
    \n+
    41 struct SeqOverlappingSchwarzAssemblerHelper;
    \n+
    42
    \n+
    43 template<class T>
    \n+
    \n+\n+
    45 {};
    \n+
    \n
    46
    \n-
    48 //typedef BCRSMatrix<B,A>::row_type row_type;
    \n-
    49
    \n-
    51 typedef typename A::size_type size_type;
    \n-
    52
    \n-
    54 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n-
    55 static constexpr unsigned int blocklevel = blockLevel<B>()+1;
    \n-
    56
    \n-
    58 BDMatrix() : BCRSMatrix<B,A>() {}
    \n-
    59
    \n-
    \n-
    60 explicit BDMatrix(int size)
    \n-
    61 : BCRSMatrix<B,A>(size, size, BCRSMatrix<B,A>::random) {
    \n-
    62
    \n-
    63 for (int i=0; i<size; i++)
    \n-\n-
    65
    \n-\n+
    47 template<class T>
    \n+
    \n+\n+
    49 {};
    \n+
    \n+
    50
    \n+
    51 template<class T>
    \n+
    \n+\n+
    53 {};
    \n+
    \n+
    54
    \n+
    55 template<class T>
    \n+
    \n+\n+
    57 {};
    \n+
    \n+
    58
    \n+
    59#if __has_include("slu_sdefs.h")
    \n+
    60 template<>
    \n+
    61 struct SuperLUDenseMatChooser<float>
    \n+
    62 {
    \n+
    63 static void create(SuperMatrix *mat, int n, int m, float *dat, int n1,
    \n+
    64 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n+
    65 {
    \n+
    66 sCreate_Dense_Matrix(mat, n, m, dat, n1, stype, dtype, mtype);
    \n
    67
    \n-
    68 for (int i=0; i<size; i++)
    \n-
    69 this->BCRSMatrix<B,A>::addindex(i, i);
    \n-
    70
    \n-\n+
    68 }
    \n+
    69
    \n+
    70 static void destroy(SuperMatrix*)
    \n+
    71 {}
    \n
    72
    \n-
    73 }
    \n-
    \n-
    74
    \n-
    \n-
    76 BDMatrix (std::initializer_list<B> const &list)
    \n-
    77 : BDMatrix(list.size())
    \n-
    78 {
    \n-
    79 size_t i=0;
    \n-
    80 for (auto it = list.begin(); it != list.end(); ++it, ++i)
    \n-
    81 (*this)[i][i] = *it;
    \n-
    82 }
    \n-
    \n-
    83
    \n-
    \n-
    85 void setSize(size_type size)
    \n-
    86 {
    \n-
    87 this->BCRSMatrix<B,A>::setSize(size, // rows
    \n-
    88 size, // columns
    \n-
    89 size); // nonzeros
    \n-
    90
    \n-
    91 for (auto i : range(size))
    \n-\n-
    93
    \n-\n-
    95
    \n-
    96 for (auto i : range(size))
    \n-
    97 this->BCRSMatrix<B,A>::addindex(i, i);
    \n+
    73 };
    \n+
    74 template<>
    \n+
    75 struct SuperLUSolveChooser<float>
    \n+
    76 {
    \n+
    77 static void solve(superlu_options_t *options, SuperMatrix *mat, int *perm_c, int *perm_r, int *etree,
    \n+
    78 char *equed, float *R, float *C, SuperMatrix *L, SuperMatrix *U,
    \n+
    79 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,
    \n+
    80 float *rpg, float *rcond, float *ferr, float *berr,
    \n+
    81 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)
    \n+
    82 {
    \n+
    83 GlobalLU_t gLU;
    \n+
    84 sgssvx(options, mat, perm_c, perm_r, etree, equed, R, C,
    \n+
    85 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,
    \n+
    86 &gLU, memusage, stat, info);
    \n+
    87 }
    \n+
    88 };
    \n+
    89
    \n+
    90 template<>
    \n+
    91 struct QuerySpaceChooser<float>
    \n+
    92 {
    \n+
    93 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t* memusage)
    \n+
    94 {
    \n+
    95 sQuerySpace(L,U,memusage);
    \n+
    96 }
    \n+
    97 };
    \n
    98
    \n-\n-
    100 }
    \n-
    \n-
    101
    \n-
    \n-
    103 BDMatrix& operator= (const BDMatrix& other) {
    \n-
    104 this->BCRSMatrix<B,A>::operator=(other);
    \n-
    105 return *this;
    \n-
    106 }
    \n-
    \n-
    107
    \n-
    \n-\n-\n-
    111 return *this;
    \n-
    112 }
    \n-
    \n-
    113
    \n-
    119 template <class V>
    \n-
    \n-
    120 void solve (V& x, const V& rhs) const {
    \n-
    121 for (size_type i=0; i<this->N(); i++)
    \n-
    122 {
    \n-
    123 auto&& xv = Impl::asVector(x[i]);
    \n-
    124 auto&& rhsv = Impl::asVector(rhs[i]);
    \n-
    125 Impl::asMatrix((*this)[i][i]).solve(xv,rhsv);
    \n-
    126 }
    \n-
    127 }
    \n-
    \n-
    128
    \n-
    \n-
    130 void invert() {
    \n-
    131 for (size_type i=0; i<this->N(); i++)
    \n-
    132 Impl::asMatrix((*this)[i][i]).invert();
    \n-
    133 }
    \n-
    \n-
    134
    \n-
    135 private:
    \n-
    136
    \n-
    137 // ////////////////////////////////////////////////////////////////////////////
    \n-
    138 // The following methods from the base class should now actually be called
    \n-
    139 // ////////////////////////////////////////////////////////////////////////////
    \n-
    140
    \n-
    141 // createbegin and createend should be in there, too, but I can't get it to compile
    \n-
    142 // BCRSMatrix<B,A>::CreateIterator createbegin () {}
    \n-
    143 // BCRSMatrix<B,A>::CreateIterator createend () {}
    \n-
    144 void setrowsize (size_type i, size_type s) {}
    \n-
    145 void incrementrowsize (size_type i) {}
    \n-
    146 void endrowsizes () {}
    \n-
    147 void addindex (size_type row, size_type col) {}
    \n-
    148 void endindices () {}
    \n-
    149 };
    \n-
    \n+
    99#endif
    \n+
    100
    \n+
    101#if __has_include("slu_ddefs.h")
    \n+
    102
    \n+
    103 template<>
    \n+
    104 struct SuperLUDenseMatChooser<double>
    \n+
    105 {
    \n+
    106 static void create(SuperMatrix *mat, int n, int m, double *dat, int n1,
    \n+
    107 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n+
    108 {
    \n+
    109 dCreate_Dense_Matrix(mat, n, m, dat, n1, stype, dtype, mtype);
    \n+
    110
    \n+
    111 }
    \n+
    112
    \n+
    113 static void destroy(SuperMatrix * /* mat */)
    \n+
    114 {}
    \n+
    115 };
    \n+
    116 template<>
    \n+
    117 struct SuperLUSolveChooser<double>
    \n+
    118 {
    \n+
    119 static void solve(superlu_options_t *options, SuperMatrix *mat, int *perm_c, int *perm_r, int *etree,
    \n+
    120 char *equed, double *R, double *C, SuperMatrix *L, SuperMatrix *U,
    \n+
    121 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,
    \n+
    122 double *rpg, double *rcond, double *ferr, double *berr,
    \n+
    123 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)
    \n+
    124 {
    \n+
    125 GlobalLU_t gLU;
    \n+
    126 dgssvx(options, mat, perm_c, perm_r, etree, equed, R, C,
    \n+
    127 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,
    \n+
    128 &gLU, memusage, stat, info);
    \n+
    129 }
    \n+
    130 };
    \n+
    131
    \n+
    132 template<>
    \n+
    133 struct QuerySpaceChooser<double>
    \n+
    134 {
    \n+
    135 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t* memusage)
    \n+
    136 {
    \n+
    137 dQuerySpace(L,U,memusage);
    \n+
    138 }
    \n+
    139 };
    \n+
    140#endif
    \n+
    141
    \n+
    142#if __has_include("slu_zdefs.h")
    \n+
    143 template<>
    \n+
    144 struct SuperLUDenseMatChooser<std::complex<double> >
    \n+
    145 {
    \n+
    146 static void create(SuperMatrix *mat, int n, int m, std::complex<double> *dat, int n1,
    \n+
    147 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n+
    148 {
    \n+
    149 zCreate_Dense_Matrix(mat, n, m, reinterpret_cast<doublecomplex*>(dat), n1, stype, dtype, mtype);
    \n
    150
    \n-
    151 template<typename B, typename A>
    \n-
    \n-
    152 struct FieldTraits< BDMatrix<B, A> >
    \n-
    153 {
    \n-\n-
    155 using real_type = typename FieldTraits<field_type>::real_type;
    \n-
    156 };
    \n-
    \n-
    159} // end namespace Dune
    \n-
    160
    \n-
    161#endif
    \n-
    Helper functions for determining the vector/matrix block level.
    \n-
    Implementation of the BCRSMatrix class.
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n+
    151 }
    \n+
    152
    \n+
    153 static void destroy(SuperMatrix*)
    \n+
    154 {}
    \n+
    155 };
    \n+
    156
    \n+
    157 template<>
    \n+
    158 struct SuperLUSolveChooser<std::complex<double> >
    \n+
    159 {
    \n+
    160 static void solve(superlu_options_t *options, SuperMatrix *mat, int *perm_c, int *perm_r, int *etree,
    \n+
    161 char *equed, double *R, double *C, SuperMatrix *L, SuperMatrix *U,
    \n+
    162 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,
    \n+
    163 double *rpg, double *rcond, double *ferr, double *berr,
    \n+
    164 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)
    \n+
    165 {
    \n+
    166 GlobalLU_t gLU;
    \n+
    167 zgssvx(options, mat, perm_c, perm_r, etree, equed, R, C,
    \n+
    168 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,
    \n+
    169 &gLU, memusage, stat, info);
    \n+
    170 }
    \n+
    171 };
    \n+
    172
    \n+
    173 template<>
    \n+
    174 struct QuerySpaceChooser<std::complex<double> >
    \n+
    175 {
    \n+
    176 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t* memusage)
    \n+
    177 {
    \n+
    178 zQuerySpace(L,U,memusage);
    \n+
    179 }
    \n+
    180 };
    \n+
    181#endif
    \n+
    182
    \n+
    183#if __has_include("slu_cdefs.h")
    \n+
    184 template<>
    \n+
    185 struct SuperLUDenseMatChooser<std::complex<float> >
    \n+
    186 {
    \n+
    187 static void create(SuperMatrix *mat, int n, int m, std::complex<float> *dat, int n1,
    \n+
    188 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n+
    189 {
    \n+
    190 cCreate_Dense_Matrix(mat, n, m, reinterpret_cast< ::complex*>(dat), n1, stype, dtype, mtype);
    \n+
    191
    \n+
    192 }
    \n+
    193
    \n+
    194 static void destroy(SuperMatrix* /* mat */)
    \n+
    195 {}
    \n+
    196 };
    \n+
    197
    \n+
    198 template<>
    \n+
    199 struct SuperLUSolveChooser<std::complex<float> >
    \n+
    200 {
    \n+
    201 static void solve(superlu_options_t *options, SuperMatrix *mat, int *perm_c, int *perm_r, int *etree,
    \n+
    202 char *equed, float *R, float *C, SuperMatrix *L, SuperMatrix *U,
    \n+
    203 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,
    \n+
    204 float *rpg, float *rcond, float *ferr, float *berr,
    \n+
    205 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)
    \n+
    206 {
    \n+
    207 GlobalLU_t gLU;
    \n+
    208 cgssvx(options, mat, perm_c, perm_r, etree, equed, R, C,
    \n+
    209 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,
    \n+
    210 &gLU, memusage, stat, info);
    \n+
    211 }
    \n+
    212 };
    \n+
    213
    \n+
    214 template<>
    \n+
    215 struct QuerySpaceChooser<std::complex<float> >
    \n+
    216 {
    \n+
    217 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t* memusage)
    \n+
    218 {
    \n+
    219 cQuerySpace(L,U,memusage);
    \n+
    220 }
    \n+
    221 };
    \n+
    222#endif
    \n+
    223
    \n+
    224 namespace Impl
    \n+
    225 {
    \n+
    226 template<class M>
    \n+
    227 struct SuperLUVectorChooser
    \n+
    228 {};
    \n+
    229
    \n+
    230 template<typename T, typename A, int n, int m>
    \n+
    231 struct SuperLUVectorChooser<BCRSMatrix<FieldMatrix<T,n,m>,A > >
    \n+
    232 {
    \n+
    234 using domain_type = BlockVector<
    \n+
    235 FieldVector<T,m>,
    \n+
    236 typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,m> > >;
    \n+
    238 using range_type = BlockVector<
    \n+
    239 FieldVector<T,n>,
    \n+
    240 typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,n> > >;
    \n+
    241 };
    \n+
    242
    \n+
    243 template<typename T, typename A>
    \n+
    244 struct SuperLUVectorChooser<BCRSMatrix<T,A> >
    \n+
    245 {
    \n+
    247 using domain_type = BlockVector<T, A>;
    \n+
    249 using range_type = BlockVector<T, A>;
    \n+
    250 };
    \n+
    251 }
    \n+
    252
    \n+
    266 template<typename M>
    \n+
    \n+\n+
    268 : public InverseOperator<
    \n+
    269 typename Impl::SuperLUVectorChooser<M>::domain_type,
    \n+
    270 typename Impl::SuperLUVectorChooser<M>::range_type >
    \n+
    271 {
    \n+
    272 using T = typename M::field_type;
    \n+
    273 public:
    \n+
    275 using Matrix = M;
    \n+
    276 using matrix_type = M;
    \n+\n+\n+
    282 using domain_type = typename Impl::SuperLUVectorChooser<M>::domain_type;
    \n+
    284 using range_type = typename Impl::SuperLUVectorChooser<M>::range_type;
    \n+
    285
    \n+
    \n+\n+
    288 {
    \n+\n+
    290 }
    \n+
    \n+
    291
    \n+
    306 explicit SuperLU(const Matrix& mat, bool verbose=false,
    \n+
    307 bool reusevector=true);
    \n+
    308
    \n+
    309
    \n+
    \n+
    320 SuperLU(const Matrix& mat, const ParameterTree& config)
    \n+
    321 : SuperLU(mat, config.get<bool>("verbose", false), config.get<bool>("reuseVector", true))
    \n+
    322 {}
    \n+
    \n+
    323
    \n+
    330 SuperLU();
    \n+
    331
    \n+
    332 ~SuperLU();
    \n+
    333
    \n+\n+
    338
    \n+
    \n+
    342 void apply (domain_type& x, range_type& b, [[maybe_unused]] double reduction, InverseOperatorResult& res)
    \n+
    343 {
    \n+
    344 apply(x,b,res);
    \n+
    345 }
    \n+
    \n+
    346
    \n+
    350 void apply(T* x, T* b);
    \n+
    351
    \n+
    353 void setMatrix(const Matrix& mat);
    \n+
    354
    \n+
    \n+
    355 typename SuperLUMatrix::size_type nnz() const
    \n+
    356 {
    \n+
    357 return mat.nonzeroes();
    \n+
    358 }
    \n+
    \n+
    359
    \n+
    360 template<class S>
    \n+
    361 void setSubMatrix(const Matrix& mat, const S& rowIndexSet);
    \n+
    362
    \n+
    363 void setVerbosity(bool v);
    \n+
    364
    \n+
    369 void free();
    \n+
    370
    \n+
    371 const char* name() { return "SuperLU"; }
    \n+
    372 private:
    \n+
    373 template<class Mat,class X, class TM, class TD, class T1>
    \n+\n+\n+
    376
    \n+
    377 SuperLUMatrix& getInternalMatrix() { return mat; }
    \n+
    378
    \n+
    380 void decompose();
    \n+
    381
    \n+\n+
    383 SuperMatrix L, U, B, X;
    \n+
    384 int *perm_c, *perm_r, *etree;
    \n+
    385 typename GetSuperLUType<T>::float_type *R, *C;
    \n+
    386 T *bstore;
    \n+
    387 superlu_options_t options;
    \n+
    388 char equed;
    \n+
    389 void *work;
    \n+
    390 int lwork;
    \n+
    391 bool first, verbose, reusevector;
    \n+
    392 };
    \n+
    \n+
    393
    \n+
    394 template<typename M>
    \n+
    395 SuperLU<M>
    \n+
    \n+
    396 ::~SuperLU()
    \n+
    397 {
    \n+
    398 if(mat.N()+mat.M()>0)
    \n+
    399 free();
    \n+
    400 }
    \n+
    \n+
    401
    \n+
    402 template<typename M>
    \n+
    \n+\n+
    404 {
    \n+
    405 delete[] perm_c;
    \n+
    406 delete[] perm_r;
    \n+
    407 delete[] etree;
    \n+
    408 delete[] R;
    \n+
    409 delete[] C;
    \n+
    410 if(lwork>=0) {
    \n+
    411 Destroy_SuperNode_Matrix(&L);
    \n+
    412 Destroy_CompCol_Matrix(&U);
    \n+
    413 }
    \n+
    414 lwork=0;
    \n+
    415 if(!first && reusevector) {
    \n+
    416 SUPERLU_FREE(B.Store);
    \n+
    417 SUPERLU_FREE(X.Store);
    \n+
    418 }
    \n+
    419 mat.free();
    \n+
    420 }
    \n+
    \n+
    421
    \n+
    422 template<typename M>
    \n+\n+
    \n+
    424 ::SuperLU(const Matrix& mat_, bool verbose_, bool reusevector_)
    \n+
    425 : work(0), lwork(0), first(true), verbose(verbose_),
    \n+
    426 reusevector(reusevector_)
    \n+
    427 {
    \n+
    428 setMatrix(mat_);
    \n+
    429
    \n+
    430 }
    \n+
    \n+
    431 template<typename M>
    \n+
    \n+\n+
    433 : work(0), lwork(0),verbose(false),
    \n+
    434 reusevector(false)
    \n+
    435 {}
    \n+
    \n+
    436 template<typename M>
    \n+
    \n+\n+
    438 {
    \n+
    439 verbose=v;
    \n+
    440 }
    \n+
    \n+
    441
    \n+
    442 template<typename M>
    \n+
    \n+\n+
    444 {
    \n+
    445 if(mat.N()+mat.M()>0) {
    \n+
    446 free();
    \n+
    447 }
    \n+
    448 lwork=0;
    \n+
    449 work=0;
    \n+
    450 //a=&mat_;
    \n+
    451 mat=mat_;
    \n+
    452 decompose();
    \n+
    453 }
    \n+
    \n+
    454
    \n+
    455 template<typename M>
    \n+
    456 template<class S>
    \n+
    \n+\n+
    458 const S& mrs)
    \n+
    459 {
    \n+
    460 if(mat.N()+mat.M()>0) {
    \n+
    461 free();
    \n+
    462 }
    \n+
    463 lwork=0;
    \n+
    464 work=0;
    \n+
    465 //a=&mat_;
    \n+
    466 mat.setMatrix(mat_,mrs);
    \n+
    467 decompose();
    \n+
    468 }
    \n+
    \n+
    469
    \n+
    470 template<typename M>
    \n+\n+
    472 {
    \n+
    473
    \n+
    474 first = true;
    \n+
    475 perm_c = new int[mat.M()];
    \n+
    476 perm_r = new int[mat.N()];
    \n+
    477 etree = new int[mat.M()];
    \n+
    478 R = new typename GetSuperLUType<T>::float_type[mat.N()];
    \n+
    479 C = new typename GetSuperLUType<T>::float_type[mat.M()];
    \n+
    480
    \n+
    481 set_default_options(&options);
    \n+
    482 // Do the factorization
    \n+
    483 B.ncol=0;
    \n+
    484 B.Stype=SLU_DN;
    \n+\n+
    486 B.Mtype= SLU_GE;
    \n+
    487 DNformat fakeFormat;
    \n+
    488 fakeFormat.lda=mat.N();
    \n+
    489 B.Store=&fakeFormat;
    \n+
    490 X.Stype=SLU_DN;
    \n+\n+
    492 X.Mtype= SLU_GE;
    \n+
    493 X.ncol=0;
    \n+
    494 X.Store=&fakeFormat;
    \n+
    495
    \n+
    496 typename GetSuperLUType<T>::float_type rpg, rcond, ferr=1e10, berr=1e10;
    \n+
    497 int info;
    \n+
    498 mem_usage_t memusage;
    \n+
    499 SuperLUStat_t stat;
    \n+
    500
    \n+
    501 StatInit(&stat);
    \n+
    502 SuperLUSolveChooser<T>::solve(&options, &static_cast<SuperMatrix&>(mat), perm_c, perm_r, etree, &equed, R, C,
    \n+
    503 &L, &U, work, lwork, &B, &X, &rpg, &rcond, &ferr,
    \n+
    504 &berr, &memusage, &stat, &info);
    \n+
    505
    \n+
    506 if(verbose) {
    \n+
    507 dinfo<<"LU factorization: dgssvx() returns info "<< info<<std::endl;
    \n+
    508
    \n+
    509 auto nSuperLUCol = static_cast<SuperMatrix&>(mat).ncol;
    \n+
    510
    \n+
    511 if ( info == 0 || info == nSuperLUCol+1 ) {
    \n+
    512
    \n+
    513 if ( options.PivotGrowth )
    \n+
    514 dinfo<<"Recip. pivot growth = "<<rpg<<std::endl;
    \n+
    515 if ( options.ConditionNumber )
    \n+
    516 dinfo<<"Recip. condition number = %e\\n"<< rcond<<std::endl;
    \n+
    517 SCformat* Lstore = (SCformat *) L.Store;
    \n+
    518 NCformat* Ustore = (NCformat *) U.Store;
    \n+
    519 dinfo<<"No of nonzeros in factor L = "<< Lstore->nnz<<std::endl;
    \n+
    520 dinfo<<"No of nonzeros in factor U = "<< Ustore->nnz<<std::endl;
    \n+
    521 dinfo<<"No of nonzeros in L+U = "<< Lstore->nnz + Ustore->nnz - nSuperLUCol<<std::endl;
    \n+
    522 QuerySpaceChooser<T>::querySpace(&L, &U, &memusage);
    \n+
    523 dinfo<<"L\\\\U MB "<<memusage.for_lu/1e6<<" \\ttotal MB needed "<<memusage.total_needed/1e6
    \n+
    524 <<" \\texpansions ";
    \n+
    525 std::cout<<stat.expansions<<std::endl;
    \n+
    526
    \n+
    527 } else if ( info > 0 && lwork == -1 ) { // Memory allocation failed
    \n+
    528 dinfo<<"** Estimated memory: "<< info - nSuperLUCol<<std::endl;
    \n+
    529 }
    \n+
    530 if ( options.PrintStat ) StatPrint(&stat);
    \n+
    531 }
    \n+
    532 StatFree(&stat);
    \n+
    533 /*
    \n+
    534 NCformat* Ustore = (NCformat *) U.Store;
    \n+
    535 int k=0;
    \n+
    536 dPrint_CompCol_Matrix("U", &U);
    \n+
    537 for(int i=0; i < U.ncol; ++i, ++k){
    \n+
    538 std::cout<<i<<": ";
    \n+
    539 for(int c=Ustore->colptr[i]; c < Ustore->colptr[i+1]; ++c)
    \n+
    540 //if(Ustore->rowind[c]==i)
    \n+
    541 std::cout<<Ustore->rowind[c]<<"->"<<((double*)Ustore->nzval)[c]<<" ";
    \n+
    542 if(k==0){
    \n+
    543 //
    \n+
    544 k=-1;
    \n+
    545 }std::cout<<std::endl;
    \n+
    546 }
    \n+
    547 dPrint_SuperNode_Matrix("L", &L);
    \n+
    548 for(int i=0; i < U.ncol; ++i, ++k){
    \n+
    549 std::cout<<i<<": ";
    \n+
    550 for(int c=Ustore->colptr[i]; c < Ustore->colptr[i+1]; ++c)
    \n+
    551 //if(Ustore->rowind[c]==i)
    \n+
    552 std::cout<<Ustore->rowind[c]<<"->"<<((double*)Ustore->nzval)[c]<<" ";
    \n+
    553 if(k==0){
    \n+
    554 //
    \n+
    555 k=-1;
    \n+
    556 }std::cout<<std::endl;
    \n+
    557 } */
    \n+
    558 options.Fact = FACTORED;
    \n+
    559 }
    \n+
    560
    \n+
    561 template<typename M>
    \n+
    562 void SuperLU<M>
    \n+
    \n+\n+
    564 {
    \n+
    565 if (mat.N() != b.dim())
    \n+
    566 DUNE_THROW(ISTLError, "Size of right-hand-side vector b does not match the number of matrix rows!");
    \n+
    567 if (mat.M() != x.dim())
    \n+
    568 DUNE_THROW(ISTLError, "Size of solution vector x does not match the number of matrix columns!");
    \n+
    569 if (mat.M()+mat.N()==0)
    \n+
    570 DUNE_THROW(ISTLError, "Matrix of SuperLU is null!");
    \n+
    571
    \n+
    572 SuperMatrix* mB = &B;
    \n+
    573 SuperMatrix* mX = &X;
    \n+
    574 SuperMatrix rB, rX;
    \n+
    575 if (reusevector) {
    \n+
    576 if(first) {
    \n+
    577 SuperLUDenseMatChooser<T>::create(&B, (int)mat.N(), 1, reinterpret_cast<T*>(&b[0]), (int)mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
    \n+
    578 SuperLUDenseMatChooser<T>::create(&X, (int)mat.N(), 1, reinterpret_cast<T*>(&x[0]), (int)mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
    \n+
    579 first=false;
    \n+
    580 }else{
    \n+
    581 ((DNformat*)B.Store)->nzval=&b[0];
    \n+
    582 ((DNformat*)X.Store)->nzval=&x[0];
    \n+
    583 }
    \n+
    584 } else {
    \n+
    585 SuperLUDenseMatChooser<T>::create(&rB, (int)mat.N(), 1, reinterpret_cast<T*>(&b[0]), (int)mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
    \n+
    586 SuperLUDenseMatChooser<T>::create(&rX, (int)mat.N(), 1, reinterpret_cast<T*>(&x[0]), (int)mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
    \n+
    587 mB = &rB;
    \n+
    588 mX = &rX;
    \n+
    589 }
    \n+
    590 typename GetSuperLUType<T>::float_type rpg, rcond, ferr=1e10, berr;
    \n+
    591 int info;
    \n+
    592 mem_usage_t memusage;
    \n+
    593 SuperLUStat_t stat;
    \n+
    594 /* Initialize the statistics variables. */
    \n+
    595 StatInit(&stat);
    \n+
    596 /*
    \n+
    597 range_type d=b;
    \n+
    598 a->usmv(-1, x, d);
    \n+
    599
    \n+
    600 double def0=d.two_norm();
    \n+
    601 */
    \n+
    602 options.IterRefine=SLU_DOUBLE;
    \n+
    603
    \n+
    604 SuperLUSolveChooser<T>::solve(&options, &static_cast<SuperMatrix&>(mat), perm_c, perm_r, etree, &equed, R, C,
    \n+
    605 &L, &U, work, lwork, mB, mX, &rpg, &rcond, &ferr, &berr,
    \n+
    606 &memusage, &stat, &info);
    \n+
    607
    \n+
    608 res.iterations=1;
    \n+
    609
    \n+
    610 /*
    \n+
    611 if(options.Equil==YES)
    \n+
    612 // undo scaling of right hand side
    \n+
    613 std::transform(reinterpret_cast<T*>(&b[0]),reinterpret_cast<T*>(&b[0])+mat.M(),
    \n+
    614 C, reinterpret_cast<T*>(&d[0]), std::divides<T>());
    \n+
    615 else
    \n+
    616 d=b;
    \n+
    617 a->usmv(-1, x, d);
    \n+
    618 res.reduction=d.two_norm()/def0;
    \n+
    619 res.conv_rate = res.reduction;
    \n+
    620 res.converged=(res.reduction<1e-10||d.two_norm()<1e-18);
    \n+
    621 */
    \n+
    622 res.converged=true;
    \n+
    623
    \n+
    624 if(verbose) {
    \n+
    625
    \n+
    626 dinfo<<"Triangular solve: dgssvx() returns info "<< info<<std::endl;
    \n+
    627
    \n+
    628 auto nSuperLUCol = static_cast<SuperMatrix&>(mat).ncol;
    \n+
    629
    \n+
    630 if ( info == 0 || info == nSuperLUCol+1 ) {
    \n+
    631
    \n+
    632 if ( options.IterRefine ) {
    \n+
    633 std::cout<<"Iterative Refinement: steps="
    \n+
    634 <<stat.RefineSteps<<" FERR="<<ferr<<" BERR="<<berr<<std::endl;
    \n+
    635 }else
    \n+
    636 std::cout<<" FERR="<<ferr<<" BERR="<<berr<<std::endl;
    \n+
    637 } else if ( info > 0 && lwork == -1 ) { // Memory allocation failed
    \n+
    638 std::cout<<"** Estimated memory: "<< info - nSuperLUCol<<" bytes"<<std::endl;
    \n+
    639 }
    \n+
    640
    \n+
    641 if ( options.PrintStat ) StatPrint(&stat);
    \n+
    642 }
    \n+
    643 StatFree(&stat);
    \n+
    644 if (!reusevector) {
    \n+
    645 SUPERLU_FREE(rB.Store);
    \n+
    646 SUPERLU_FREE(rX.Store);
    \n+
    647 }
    \n+
    648 }
    \n+
    \n+
    649
    \n+
    650 template<typename M>
    \n+
    651 void SuperLU<M>
    \n+
    \n+
    652 ::apply(T* x, T* b)
    \n+
    653 {
    \n+
    654 if(mat.N()+mat.M()==0)
    \n+
    655 DUNE_THROW(ISTLError, "Matrix of SuperLU is null!");
    \n+
    656
    \n+
    657 SuperMatrix* mB = &B;
    \n+
    658 SuperMatrix* mX = &X;
    \n+
    659 SuperMatrix rB, rX;
    \n+
    660 if (reusevector) {
    \n+
    661 if(first) {
    \n+
    662 SuperLUDenseMatChooser<T>::create(&B, mat.N(), 1, b, mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
    \n+
    663 SuperLUDenseMatChooser<T>::create(&X, mat.N(), 1, x, mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
    \n+
    664 first=false;
    \n+
    665 }else{
    \n+
    666 ((DNformat*) B.Store)->nzval=b;
    \n+
    667 ((DNformat*)X.Store)->nzval=x;
    \n+
    668 }
    \n+
    669 } else {
    \n+
    670 SuperLUDenseMatChooser<T>::create(&rB, mat.N(), 1, b, mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
    \n+
    671 SuperLUDenseMatChooser<T>::create(&rX, mat.N(), 1, x, mat.N(), SLU_DN, GetSuperLUType<T>::type, SLU_GE);
    \n+
    672 mB = &rB;
    \n+
    673 mX = &rX;
    \n+
    674 }
    \n+
    675
    \n+
    676 typename GetSuperLUType<T>::float_type rpg, rcond, ferr=1e10, berr;
    \n+
    677 int info;
    \n+
    678 mem_usage_t memusage;
    \n+
    679 SuperLUStat_t stat;
    \n+
    680 /* Initialize the statistics variables. */
    \n+
    681 StatInit(&stat);
    \n+
    682
    \n+
    683 options.IterRefine=SLU_DOUBLE;
    \n+
    684
    \n+
    685 SuperLUSolveChooser<T>::solve(&options, &static_cast<SuperMatrix&>(mat), perm_c, perm_r, etree, &equed, R, C,
    \n+
    686 &L, &U, work, lwork, mB, mX, &rpg, &rcond, &ferr, &berr,
    \n+
    687 &memusage, &stat, &info);
    \n+
    688
    \n+
    689 if(verbose) {
    \n+
    690 dinfo<<"Triangular solve: dgssvx() returns info "<< info<<std::endl;
    \n+
    691
    \n+
    692 auto nSuperLUCol = static_cast<SuperMatrix&>(mat).ncol;
    \n+
    693
    \n+
    694 if ( info == 0 || info == nSuperLUCol+1 ) { // Factorization has succeeded
    \n+
    695
    \n+
    696 if ( options.IterRefine ) {
    \n+
    697 dinfo<<"Iterative Refinement: steps="
    \n+
    698 <<stat.RefineSteps<<" FERR="<<ferr<<" BERR="<<berr<<std::endl;
    \n+
    699 }else
    \n+
    700 dinfo<<" FERR="<<ferr<<" BERR="<<berr<<std::endl;
    \n+
    701 } else if ( info > 0 && lwork == -1 ) { // Memory allocation failed
    \n+
    702 dinfo<<"** Estimated memory: "<< info - nSuperLUCol<<" bytes"<<std::endl;
    \n+
    703 }
    \n+
    704 if ( options.PrintStat ) StatPrint(&stat);
    \n+
    705 }
    \n+
    706
    \n+
    707 StatFree(&stat);
    \n+
    708 if (!reusevector) {
    \n+
    709 SUPERLU_FREE(rB.Store);
    \n+
    710 SUPERLU_FREE(rX.Store);
    \n+
    711 }
    \n+
    712 }
    \n+
    \n+
    715 template<typename T, typename A>
    \n+
    \n+\n+
    717 {
    \n+
    718 enum { value=true};
    \n+
    719 };
    \n+
    \n+
    720
    \n+
    721 template<typename T, typename A>
    \n+
    \n+\n+
    723 {
    \n+
    724 enum { value = true };
    \n+
    725 };
    \n+
    \n+
    726
    \n+
    \n+\n+
    728 template<class> struct isValidBlock : std::false_type{};
    \n+
    729 template<int k> struct isValidBlock<Dune::FieldVector<double,k>> : std::true_type{};
    \n+
    730 template<int k> struct isValidBlock<Dune::FieldVector<std::complex<double>,k>> : std::true_type{};
    \n+
    731 template<typename TL, typename M>
    \n+
    732 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
    \n+
    733 typename Dune::TypeListElement<2, TL>::type>>
    \n+
    \n+
    734 operator() (TL /*tl*/, const M& mat, const Dune::ParameterTree& config,
    \n+
    735 std::enable_if_t<isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
    \n+
    736 {
    \n+
    737 int verbose = config.get("verbose", 0);
    \n+
    738 return std::make_shared<Dune::SuperLU<M>>(mat,verbose);
    \n+
    739 }
    \n+
    \n+
    740
    \n+
    741 // second version with SFINAE to validate the template parameters of SuperLU
    \n+
    742 template<typename TL, typename M>
    \n+
    743 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
    \n+
    744 typename Dune::TypeListElement<2, TL>::type>>
    \n+
    \n+
    745 operator() (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /*config*/,
    \n+
    746 std::enable_if_t<!isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
    \n+
    747 {
    \n+
    748 DUNE_THROW(UnsupportedType,
    \n+
    749 "Unsupported Type in SuperLU (only double and std::complex<double> supported)");
    \n+
    750 }
    \n+
    \n+
    751 };
    \n+
    \n+
    752 template<> struct SuperLUCreator::isValidBlock<double> : std::true_type{};
    \n+
    753 template<> struct SuperLUCreator::isValidBlock<std::complex<double>> : std::true_type{};
    \n+
    754
    \n+\n+
    756} // end namespace DUNE
    \n+
    757
    \n+
    758// undefine macros from SuperLU's slu_util.h
    \n+
    759#undef FIRSTCOL_OF_SNODE
    \n+
    760#undef NO_MARKER
    \n+
    761#undef NUM_TEMPV
    \n+
    762#undef USER_ABORT
    \n+
    763#undef USER_MALLOC
    \n+
    764#undef SUPERLU_MALLOC
    \n+
    765#undef USER_FREE
    \n+
    766#undef SUPERLU_FREE
    \n+
    767#undef CHECK_MALLOC
    \n+
    768#undef SUPERLU_MAX
    \n+
    769#undef SUPERLU_MIN
    \n+
    770#undef L_SUB_START
    \n+
    771#undef L_SUB
    \n+
    772#undef L_NZ_START
    \n+
    773#undef L_FST_SUPC
    \n+
    774#undef U_NZ_START
    \n+
    775#undef U_SUB
    \n+
    776#undef TRUE
    \n+
    777#undef FALSE
    \n+
    778#undef EMPTY
    \n+
    779#undef NODROP
    \n+
    780#undef DROP_BASIC
    \n+
    781#undef DROP_PROWS
    \n+
    782#undef DROP_COLUMN
    \n+
    783#undef DROP_AREA
    \n+
    784#undef DROP_SECONDARY
    \n+
    785#undef DROP_DYNAMIC
    \n+
    786#undef DROP_INTERP
    \n+
    787#undef MILU_ALPHA
    \n+
    788
    \n+
    789#endif // HAVE_SUPERLU
    \n+
    790#endif // DUNE_SUPERLU_HH
    \n+\n+
    #define DUNE_REGISTER_DIRECT_SOLVER(name,...)
    Definition solverregistry.hh:13
    \n+\n+
    Templates characterizing the type of a solver.
    \n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+\n+
    Implementation of the BCRSMatrix class.
    \n+
    Implementations of the inverse operator interface.
    \n+\n+
    void setSubMatrix(const Matrix &mat, const S &rowIndexSet)
    Definition superlu.hh:457
    \n+
    void apply(domain_type &x, range_type &b, InverseOperatorResult &res)
    Apply inverse operator,.
    Definition superlu.hh:563
    \n+
    void setVerbosity(bool v)
    Definition superlu.hh:437
    \n+
    void free()
    free allocated space.
    Definition superlu.hh:403
    \n+
    ~SuperLU()
    Definition superlu.hh:396
    \n+
    SuperLU()
    Empty default constructor.
    Definition superlu.hh:432
    \n+
    void setMatrix(const Matrix &mat)
    Initialize data from given matrix.
    Definition superlu.hh:443
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n+
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    void endrowsizes()
    indicate that size of all rows is defined
    Definition bcrsmatrix.hh:1149
    \n-
    @ random
    Build entries randomly.
    Definition bcrsmatrix.hh:530
    \n-
    void endindices()
    indicate that all indices are defined, check consistency
    Definition bcrsmatrix.hh:1248
    \n-
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n-
    void setSize(size_type rows, size_type columns, size_type nnz=0)
    Set the size of the matrix.
    Definition bcrsmatrix.hh:861
    \n-
    BCRSMatrix & operator=(const BCRSMatrix &Mat)
    assignment
    Definition bcrsmatrix.hh:911
    \n-
    A block-diagonal matrix.
    Definition bdmatrix.hh:33
    \n-
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bdmatrix.hh:39
    \n-
    A::size_type size_type
    implement row_type with compressed vector
    Definition bdmatrix.hh:51
    \n-
    BDMatrix()
    Default constructor.
    Definition bdmatrix.hh:58
    \n-
    BDMatrix(std::initializer_list< B > const &list)
    Construct from a std::initializer_list.
    Definition bdmatrix.hh:76
    \n-
    B block_type
    export the type representing the components
    Definition bdmatrix.hh:42
    \n-
    void solve(V &x, const V &rhs) const
    Solve the system Ax=b in O(n) time.
    Definition bdmatrix.hh:120
    \n-
    A allocator_type
    export the allocator type
    Definition bdmatrix.hh:45
    \n-
    BDMatrix(int size)
    Definition bdmatrix.hh:60
    \n-
    BDMatrix & operator=(const BDMatrix &other)
    assignment
    Definition bdmatrix.hh:103
    \n-
    static constexpr unsigned int blocklevel
    increment block level counter
    Definition bdmatrix.hh:55
    \n-
    void setSize(size_type size)
    Resize the matrix. Invalidates the content!
    Definition bdmatrix.hh:85
    \n-
    void invert()
    Inverts the matrix.
    Definition bdmatrix.hh:130
    \n-
    typename BDMatrix< B, A >::field_type field_type
    Definition bdmatrix.hh:154
    \n-
    typename FieldTraits< field_type >::real_type real_type
    Definition bdmatrix.hh:155
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    Sequential overlapping Schwarz preconditioner.
    Definition overlappingschwarz.hh:755
    \n+
    Definition overlappingschwarz.hh:694
    \n+
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n+
    size_type M() const
    Return the number of columns.
    Definition matrix.hh:700
    \n+
    size_type N() const
    Return the number of rows.
    Definition matrix.hh:695
    \n+
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n+
    int iterations
    Number of iterations.
    Definition solver.hh:67
    \n+
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n+
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n+
    Definition solverregistry.hh:77
    \n+
    Definition solvertype.hh:16
    \n+
    @ value
    Whether this is a direct solver.
    Definition solvertype.hh:24
    \n+
    Definition solvertype.hh:30
    \n+
    @ value
    whether the solver internally uses column compressed storage
    Definition solvertype.hh:36
    \n+
    Definition superlu.hh:45
    \n+
    Definition superlu.hh:49
    \n+
    Definition superlu.hh:53
    \n+
    Definition superlu.hh:57
    \n+
    SuperLu Solver.
    Definition superlu.hh:271
    \n+
    SuperLUMatrix::size_type nnz() const
    Definition superlu.hh:355
    \n+
    void apply(domain_type &x, range_type &b, double reduction, InverseOperatorResult &res)
    apply inverse operator, with given convergence criteria.
    Definition superlu.hh:342
    \n+
    typename Impl::SuperLUVectorChooser< M >::range_type range_type
    The type of the range of the solver.
    Definition superlu.hh:284
    \n+
    M matrix_type
    Definition superlu.hh:276
    \n+
    SuperMatrixInitializer< Matrix > MatrixInitializer
    Type of an associated initializer class.
    Definition superlu.hh:280
    \n+
    M Matrix
    The matrix type.
    Definition superlu.hh:275
    \n+
    typename Impl::SuperLUVectorChooser< M >::domain_type domain_type
    The type of the domain of the solver.
    Definition superlu.hh:282
    \n+
    const char * name()
    Definition superlu.hh:371
    \n+
    virtual SolverCategory::Category category() const
    Category of the solver (see SolverCategory::Category)
    Definition superlu.hh:287
    \n+
    Dune::SuperLUMatrix< Matrix > SuperLUMatrix
    The corresponding SuperLU Matrix type.
    Definition superlu.hh:278
    \n+
    SuperLU(const Matrix &mat, const ParameterTree &config)
    Constructs the SuperLU solver.
    Definition superlu.hh:320
    \n+
    Definition superlu.hh:727
    \n+
    std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL, const M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock< typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0) const
    Definition superlu.hh:734
    \n+
    Definition superlu.hh:728
    \n+
    Definition supermatrix.hh:132
    \n+
    Utility class for converting an ISTL Matrix into a SuperLU Matrix.
    Definition supermatrix.hh:175
    \n+
    Definition supermatrix.hh:179
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,234 +1,947 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-bdmatrix.hh\n+superlu.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_BDMATRIX_HH\n-6#define DUNE_ISTL_BDMATRIX_HH\n+5#ifndef DUNE_ISTL_SUPERLU_HH\n+6#define DUNE_ISTL_SUPERLU_HH\n 7\n-8#include \n+8#if HAVE_SUPERLU\n 9\n-10#include \n-11#include \n-12\n-13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n-15\n-21namespace _\bD_\bu_\bn_\be {\n-31 template >\n-_\b3_\b2 class _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx : public _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-33 {\n-34 public:\n-35\n-36 //===== type definitions and constants\n-37\n-_\b3_\b9 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n-40\n-_\b4_\b2 typedef B _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-43\n-_\b4_\b5 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n+10#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\"\n+11#include \"_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\"\n+12#include \"_\bs_\bu_\bp_\be_\br_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+13#include \n+14#include \n+15#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+16#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+17#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+18#include \n+19#include \n+20#include \n+21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+22#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n+23\n+24namespace _\bD_\bu_\bn_\be\n+25{\n+26\n+37 template\n+38 class SeqOverlappingSchwarz;\n+39\n+40 template\n+41 struct SeqOverlappingSchwarzAssemblerHelper;\n+42\n+43 template\n+_\b4_\b4 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n+45 {};\n 46\n-48 //typedef BCRSMatrix::row_type row_type;\n-49\n-_\b5_\b1 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-52\n-54 [[deprecated(\"Use free function blockLevel(). Will be removed after 2.8.\")]]\n-_\b5_\b5 static constexpr unsigned int _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+1;\n-56\n-_\b5_\b8 _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx() : _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx() {}\n-59\n-_\b6_\b0 explicit _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx(int size)\n-61 : _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx(size, size, _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx::_\br_\ba_\bn_\bd_\bo_\bm) {\n-62\n-63 for (int i=0; i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be(i, 1);\n-65\n-66 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs();\n+47 template\n+_\b4_\b8 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br\n+49 {};\n+50\n+51 template\n+_\b5_\b2 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bQ_\bu_\be_\br_\by_\bC_\bh_\bo_\bo_\bs_\be_\br\n+53 {};\n+54\n+55 template\n+_\b5_\b6 struct _\bQ_\bu_\be_\br_\by_\bS_\bp_\ba_\bc_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n+57 {};\n+58\n+59#if __has_include(\"slu_sdefs.h\")\n+60 template<>\n+61 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br\n+62 {\n+63 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, float *dat, int n1,\n+64 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n+65 {\n+66 sCreate_Dense_Matrix(_\bm_\ba_\bt, n, m, dat, n1, stype, dtype, mtype);\n 67\n-68 for (int i=0; i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i);\n-70\n-71 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs();\n+68 }\n+69\n+70 static void destroy(SuperMatrix*)\n+71 {}\n 72\n-73 }\n-74\n-_\b7_\b6 _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx (std::initializer_list const &list)\n-77 : _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx(list.size())\n-78 {\n-79 size_t i=0;\n-80 for (auto it = list.begin(); it != list.end(); ++it, ++i)\n-81 (*this)[i][i] = *it;\n-82 }\n-83\n-_\b8_\b5 void _\bs_\be_\bt_\bS_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size)\n-86 {\n-87 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be(size, // rows\n-88 size, // columns\n-89 size); // nonzeros\n-90\n-91 for (auto i : range(size))\n-92 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be(i, 1);\n-93\n-94 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs();\n-95\n-96 for (auto i : range(size))\n-97 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i);\n+73 };\n+74 template<>\n+75 struct SuperLUSolveChooser\n+76 {\n+77 static void solve(superlu_options_t *options, SuperMatrix *_\bm_\ba_\bt, int *perm_c,\n+int *perm_r, int *etree,\n+78 char *equed, float *R, float *C, SuperMatrix *L, SuperMatrix *U,\n+79 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,\n+80 float *rpg, float *rcond, float *ferr, float *berr,\n+81 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)\n+82 {\n+83 GlobalLU_t gLU;\n+84 sgssvx(options, _\bm_\ba_\bt, perm_c, perm_r, etree, equed, R, C,\n+85 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,\n+86 &gLU, memusage, stat, info);\n+87 }\n+88 };\n+89\n+90 template<>\n+91 struct QuerySpaceChooser\n+92 {\n+93 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t*\n+memusage)\n+94 {\n+95 sQuerySpace(L,U,memusage);\n+96 }\n+97 };\n 98\n-99 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs();\n-100 }\n-101\n-_\b1_\b0_\b3 _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx& other) {\n-104 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(other);\n-105 return *this;\n-106 }\n-107\n-_\b1_\b0_\b9 _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k) {\n-110 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(k);\n-111 return *this;\n-112 }\n-113\n-119 template \n-_\b1_\b2_\b0 void _\bs_\bo_\bl_\bv_\be (V& x, const V& rhs) const {\n-121 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i_\bN(); i++)\n-122 {\n-123 auto&& xv = Impl::asVector(x[i]);\n-124 auto&& rhsv = Impl::asVector(rhs[i]);\n-125 Impl::asMatrix((*this)[i][i]).solve(xv,rhsv);\n-126 }\n-127 }\n-128\n-_\b1_\b3_\b0 void _\bi_\bn_\bv_\be_\br_\bt() {\n-131 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i_\bN(); i++)\n-132 Impl::asMatrix((*this)[i][i])._\bi_\bn_\bv_\be_\br_\bt();\n-133 }\n-134\n-135 private:\n-136\n-137 // ////////////////////////////////////////////////////////////////////////\n-////\n-138 // The following methods from the base class should now actually be called\n-139 // ////////////////////////////////////////////////////////////////////////\n-////\n-140\n-141 // createbegin and createend should be in there, too, but I can't get it to\n-compile\n-142 // BCRSMatrix::CreateIterator createbegin () {}\n-143 // BCRSMatrix::CreateIterator createend () {}\n-144 void setrowsize (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s) {}\n-145 void incrementrowsize (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) {}\n-146 void endrowsizes () {}\n-147 void addindex (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl) {}\n-148 void endindices () {}\n-149 };\n+99#endif\n+100\n+101#if __has_include(\"slu_ddefs.h\")\n+102\n+103 template<>\n+104 struct SuperLUDenseMatChooser\n+105 {\n+106 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, double *dat, int n1,\n+107 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n+108 {\n+109 dCreate_Dense_Matrix(_\bm_\ba_\bt, n, m, dat, n1, stype, dtype, mtype);\n+110\n+111 }\n+112\n+113 static void destroy(SuperMatrix * /* mat */)\n+114 {}\n+115 };\n+116 template<>\n+117 struct SuperLUSolveChooser\n+118 {\n+119 static void solve(superlu_options_t *options, SuperMatrix *_\bm_\ba_\bt, int\n+*perm_c, int *perm_r, int *etree,\n+120 char *equed, double *R, double *C, SuperMatrix *L, SuperMatrix *U,\n+121 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,\n+122 double *rpg, double *rcond, double *ferr, double *berr,\n+123 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)\n+124 {\n+125 GlobalLU_t gLU;\n+126 dgssvx(options, _\bm_\ba_\bt, perm_c, perm_r, etree, equed, R, C,\n+127 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,\n+128 &gLU, memusage, stat, info);\n+129 }\n+130 };\n+131\n+132 template<>\n+133 struct QuerySpaceChooser\n+134 {\n+135 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t*\n+memusage)\n+136 {\n+137 dQuerySpace(L,U,memusage);\n+138 }\n+139 };\n+140#endif\n+141\n+142#if __has_include(\"slu_zdefs.h\")\n+143 template<>\n+144 struct SuperLUDenseMatChooser<_\bs_\bt_\bd::complex >\n+145 {\n+146 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, std::complex\n+*dat, int n1,\n+147 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n+148 {\n+149 zCreate_Dense_Matrix(_\bm_\ba_\bt, n, m, reinterpret_cast(dat), n1,\n+stype, dtype, mtype);\n 150\n-151 template\n-_\b1_\b5_\b2 struct FieldTraits< _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx >\n-153 {\n-_\b1_\b5_\b4 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\b _\bA_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b1_\b5_\b5 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n-156 };\n-159} // end namespace Dune\n-160\n-161#endif\n-_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n-Helper functions for determining the vector/matrix block level.\n+151 }\n+152\n+153 static void destroy(SuperMatrix*)\n+154 {}\n+155 };\n+156\n+157 template<>\n+158 struct SuperLUSolveChooser<_\bs_\bt_\bd::complex >\n+159 {\n+160 static void solve(superlu_options_t *options, SuperMatrix *_\bm_\ba_\bt, int\n+*perm_c, int *perm_r, int *etree,\n+161 char *equed, double *R, double *C, SuperMatrix *L, SuperMatrix *U,\n+162 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,\n+163 double *rpg, double *rcond, double *ferr, double *berr,\n+164 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)\n+165 {\n+166 GlobalLU_t gLU;\n+167 zgssvx(options, _\bm_\ba_\bt, perm_c, perm_r, etree, equed, R, C,\n+168 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,\n+169 &gLU, memusage, stat, info);\n+170 }\n+171 };\n+172\n+173 template<>\n+174 struct QuerySpaceChooser<_\bs_\bt_\bd::complex >\n+175 {\n+176 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t*\n+memusage)\n+177 {\n+178 zQuerySpace(L,U,memusage);\n+179 }\n+180 };\n+181#endif\n+182\n+183#if __has_include(\"slu_cdefs.h\")\n+184 template<>\n+185 struct SuperLUDenseMatChooser<_\bs_\bt_\bd::complex >\n+186 {\n+187 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, std::complex\n+*dat, int n1,\n+188 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n+189 {\n+190 cCreate_Dense_Matrix(_\bm_\ba_\bt, n, m, reinterpret_cast< ::complex*>(dat), n1,\n+stype, dtype, mtype);\n+191\n+192 }\n+193\n+194 static void destroy(SuperMatrix* /* mat */)\n+195 {}\n+196 };\n+197\n+198 template<>\n+199 struct SuperLUSolveChooser<_\bs_\bt_\bd::complex >\n+200 {\n+201 static void solve(superlu_options_t *options, SuperMatrix *_\bm_\ba_\bt, int\n+*perm_c, int *perm_r, int *etree,\n+202 char *equed, float *R, float *C, SuperMatrix *L, SuperMatrix *U,\n+203 void *work, int lwork, SuperMatrix *B, SuperMatrix *X,\n+204 float *rpg, float *rcond, float *ferr, float *berr,\n+205 mem_usage_t *memusage, SuperLUStat_t *stat, int *info)\n+206 {\n+207 GlobalLU_t gLU;\n+208 cgssvx(options, _\bm_\ba_\bt, perm_c, perm_r, etree, equed, R, C,\n+209 L, U, work, lwork, B, X, rpg, rcond, ferr, berr,\n+210 &gLU, memusage, stat, info);\n+211 }\n+212 };\n+213\n+214 template<>\n+215 struct QuerySpaceChooser<_\bs_\bt_\bd::complex >\n+216 {\n+217 static void querySpace(SuperMatrix* L, SuperMatrix* U, mem_usage_t*\n+memusage)\n+218 {\n+219 cQuerySpace(L,U,memusage);\n+220 }\n+221 };\n+222#endif\n+223\n+224 namespace Impl\n+225 {\n+226 template\n+227 struct SuperLUVectorChooser\n+228 {};\n+229\n+230 template\n+231 struct SuperLUVectorChooser,A > >\n+232 {\n+234 using domain_type = BlockVector<\n+235 FieldVector,\n+236 typename std::allocator_traits::template rebind_alloc >\n+>;\n+238 using range_type = BlockVector<\n+239 FieldVector,\n+240 typename std::allocator_traits::template rebind_alloc >\n+>;\n+241 };\n+242\n+243 template\n+244 struct SuperLUVectorChooser >\n+245 {\n+247 using domain_type = BlockVector;\n+249 using range_type = BlockVector;\n+250 };\n+251 }\n+252\n+266 template\n+_\b2_\b6_\b7 class _\bS_\bu_\bp_\be_\br_\bL_\bU\n+268 : public _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br<\n+269 typename Impl::SuperLUVectorChooser::domain_type,\n+270 typename Impl::SuperLUVectorChooser::range_type >\n+271 {\n+272 using T = typename M::field_type;\n+273 public:\n+_\b2_\b7_\b5 using _\bM_\ba_\bt_\br_\bi_\bx = M;\n+_\b2_\b7_\b6 using _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be = M;\n+_\b2_\b7_\b8 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx;\n+_\b2_\b8_\b0 typedef _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n+_\b2_\b8_\b2 using _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be = typename Impl::SuperLUVectorChooser::domain_type;\n+_\b2_\b8_\b4 using _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be = typename Impl::SuperLUVectorChooser::range_type;\n+285\n+_\b2_\b8_\b7 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+288 {\n+289 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+290 }\n+291\n+306 explicit _\bS_\bu_\bp_\be_\br_\bL_\bU(const _\bM_\ba_\bt_\br_\bi_\bx& mat, bool verbose=false,\n+307 bool reusevector=true);\n+308\n+309\n+_\b3_\b2_\b0 _\bS_\bu_\bp_\be_\br_\bL_\bU(const _\bM_\ba_\bt_\br_\bi_\bx& mat, const ParameterTree& config)\n+321 : _\bS_\bu_\bp_\be_\br_\bL_\bU(_\bm_\ba_\bt, config._\bg_\be_\bt(\"verbose\", false), config._\bg_\be_\bt\n+(\"reuseVector\", true))\n+322 {}\n+323\n+330 _\bS_\bu_\bp_\be_\br_\bL_\bU();\n+331\n+332 _\b~_\bS_\bu_\bp_\be_\br_\bL_\bU();\n+333\n+337 void _\ba_\bp_\bp_\bl_\by(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res);\n+338\n+_\b3_\b4_\b2 void _\ba_\bp_\bp_\bl_\by (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, [[maybe_unused]] double\n+reduction, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+343 {\n+344 _\ba_\bp_\bp_\bl_\by(x,b,res);\n+345 }\n+346\n+350 void _\ba_\bp_\bp_\bl_\by(T* x, T* b);\n+351\n+353 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& mat);\n+354\n+_\b3_\b5_\b5 typename SuperLUMatrix::size_type _\bn_\bn_\bz() const\n+356 {\n+357 return mat.nonzeroes();\n+358 }\n+359\n+360 template\n+361 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& mat, const S& rowIndexSet);\n+362\n+363 void _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(bool v);\n+364\n+369 void _\bf_\br_\be_\be();\n+370\n+_\b3_\b7_\b1 const char* _\bn_\ba_\bm_\be() { return \"SuperLU\"; }\n+372 private:\n+373 template\n+_\b3_\b7_\b4 friend class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz;\n+375 friend struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bS_\bu_\bp_\be_\br_\bL_\bU<_\bM_\ba_\bt_\br_\bi_\bx>,true>;\n+376\n+377 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx& getInternalMatrix() { return _\bm_\ba_\bt; }\n+378\n+380 void decompose();\n+381\n+382 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx _\bm_\ba_\bt;\n+383 SuperMatrix L, U, B, X;\n+384 int *perm_c, *perm_r, *etree;\n+385 typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be *R, *C;\n+386 T *bstore;\n+387 superlu_options_t options;\n+388 char equed;\n+389 void *work;\n+390 int lwork;\n+391 bool first, verbose, reusevector;\n+392 };\n+393\n+394 template\n+395 SuperLU\n+_\b3_\b9_\b6 ::~SuperLU()\n+397 {\n+398 if(_\bm_\ba_\bt._\bN()+_\bm_\ba_\bt._\bM()>0)\n+399 free();\n+400 }\n+401\n+402 template\n+_\b4_\b0_\b3 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bf_\br_\be_\be()\n+404 {\n+405 delete[] perm_c;\n+406 delete[] perm_r;\n+407 delete[] etree;\n+408 delete[] R;\n+409 delete[] C;\n+410 if(lwork>=0) {\n+411 Destroy_SuperNode_Matrix(&L);\n+412 Destroy_CompCol_Matrix(&U);\n+413 }\n+414 lwork=0;\n+415 if(!first && reusevector) {\n+416 SUPERLU_FREE(B.Store);\n+417 SUPERLU_FREE(X.Store);\n+418 }\n+419 _\bm_\ba_\bt.free();\n+420 }\n+421\n+422 template\n+423 _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>\n+_\b4_\b2_\b4_\b _\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU(const _\bM_\ba_\bt_\br_\bi_\bx& mat_, bool verbose_, bool reusevector_)\n+425 : work(0), lwork(0), first(true), verbose(verbose_),\n+426 reusevector(reusevector_)\n+427 {\n+428 _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(mat_);\n+429\n+430 }\n+431 template\n+_\b4_\b3_\b2 _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU()\n+433 : work(0), lwork(0),verbose(false),\n+434 reusevector(false)\n+435 {}\n+436 template\n+_\b4_\b3_\b7 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(bool v)\n+438 {\n+439 verbose=v;\n+440 }\n+441\n+442 template\n+_\b4_\b4_\b3 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& mat_)\n+444 {\n+445 if(_\bm_\ba_\bt._\bN()+_\bm_\ba_\bt._\bM()>0) {\n+446 free();\n+447 }\n+448 lwork=0;\n+449 work=0;\n+450 //a=&mat_;\n+451 _\bm_\ba_\bt=mat_;\n+452 decompose();\n+453 }\n+454\n+455 template\n+456 template\n+_\b4_\b5_\b7 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& mat_,\n+458 const S& mrs)\n+459 {\n+460 if(_\bm_\ba_\bt._\bN()+_\bm_\ba_\bt._\bM()>0) {\n+461 free();\n+462 }\n+463 lwork=0;\n+464 work=0;\n+465 //a=&mat_;\n+466 _\bm_\ba_\bt.setMatrix(mat_,mrs);\n+467 decompose();\n+468 }\n+469\n+470 template\n+471 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>_\b:_\b:_\bd_\be_\bc_\bo_\bm_\bp_\bo_\bs_\be()\n+472 {\n+473\n+474 first = true;\n+475 perm_c = new int[_\bm_\ba_\bt._\bM()];\n+476 perm_r = new int[_\bm_\ba_\bt._\bN()];\n+477 etree = new int[_\bm_\ba_\bt._\bM()];\n+478 R = new typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be[_\bm_\ba_\bt._\bN()];\n+479 C = new typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be[_\bm_\ba_\bt._\bM()];\n+480\n+481 set_default_options(&options);\n+482 // Do the factorization\n+483 B.ncol=0;\n+484 B.Stype=SLU_DN;\n+485 B.Dtype=_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be;\n+486 B.Mtype= SLU_GE;\n+487 DNformat fakeFormat;\n+488 fakeFormat.lda=_\bm_\ba_\bt._\bN();\n+489 B.Store=&fakeFormat;\n+490 X.Stype=SLU_DN;\n+491 X.Dtype=_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be;\n+492 X.Mtype= SLU_GE;\n+493 X.ncol=0;\n+494 X.Store=&fakeFormat;\n+495\n+496 typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be rpg, rcond, ferr=1e10, berr=1e10;\n+497 int info;\n+498 mem_usage_t memusage;\n+499 SuperLUStat_t stat;\n+500\n+501 StatInit(&stat);\n+502 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be(&options, &static_cast(_\bm_\ba_\bt),\n+perm_c, perm_r, etree, &equed, R, C,\n+503 &L, &U, work, lwork, &B, &X, &rpg, &rcond, &ferr,\n+504 &berr, &memusage, &stat, &info);\n+505\n+506 if(verbose) {\n+507 dinfo<<\"LU factorization: dgssvx() returns info \"<< info<(_\bm_\ba_\bt).ncol;\n+510\n+511 if ( info == 0 || info == nSuperLUCol+1 ) {\n+512\n+513 if ( options.PivotGrowth )\n+514 dinfo<<\"Recip. pivot growth = \"<nnz<nnz<nnz + Ustore->nnz -\n+nSuperLUCol<_\b:_\b:_\bq_\bu_\be_\br_\by_\bS_\bp_\ba_\bc_\be(&L, &U, &memusage);\n+523 dinfo<<\"L\\\\U MB \"< 0 && lwork == -1 ) { // Memory allocation failed\n+528 dinfo<<\"** Estimated memory: \"<< info - nSuperLUCol<colptr[i]; c < Ustore->colptr[i+1]; ++c)\n+540 //if(Ustore->rowind[c]==i)\n+541 std::cout<rowind[c]<<\"->\"<<((double*)Ustore->nzval)[c]<<\" \";\n+542 if(k==0){\n+543 //\n+544 k=-1;\n+545 }std::cout<colptr[i]; c < Ustore->colptr[i+1]; ++c)\n+551 //if(Ustore->rowind[c]==i)\n+552 std::cout<rowind[c]<<\"->\"<<((double*)Ustore->nzval)[c]<<\" \";\n+553 if(k==0){\n+554 //\n+555 k=-1;\n+556 }std::cout<\n+562 void SuperLU\n+_\b5_\b6_\b3 ::apply(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+564 {\n+565 if (_\bm_\ba_\bt._\bN() != b.dim())\n+566 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Size of right-hand-side vector b does not match the\n+number of matrix rows!\");\n+567 if (_\bm_\ba_\bt._\bM() != x.dim())\n+568 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Size of solution vector x does not match the number\n+of matrix columns!\");\n+569 if (_\bm_\ba_\bt._\bM()+_\bm_\ba_\bt._\bN()==0)\n+570 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Matrix of SuperLU is null!\");\n+571\n+572 SuperMatrix* mB = &B;\n+573 SuperMatrix* mX = &X;\n+574 SuperMatrix rB, rX;\n+575 if (reusevector) {\n+576 if(first) {\n+577 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&B, (int)_\bm_\ba_\bt._\bN(), 1, reinterpret_cast\n+(&b[0]), (int)_\bm_\ba_\bt._\bN(), SLU_DN, _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n+578 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&X, (int)_\bm_\ba_\bt._\bN(), 1, reinterpret_cast\n+(&x[0]), (int)_\bm_\ba_\bt._\bN(), SLU_DN, _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n+579 first=false;\n+580 }else{\n+581 ((DNformat*)B.Store)->nzval=&b[0];\n+582 ((DNformat*)X.Store)->nzval=&x[0];\n+583 }\n+584 } else {\n+585 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&rB, (int)_\bm_\ba_\bt._\bN(), 1,\n+reinterpret_cast(&b[0]), (int)_\bm_\ba_\bt._\bN(), SLU_DN, _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be,\n+SLU_GE);\n+586 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&rX, (int)_\bm_\ba_\bt._\bN(), 1,\n+reinterpret_cast(&x[0]), (int)_\bm_\ba_\bt._\bN(), SLU_DN, _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be,\n+SLU_GE);\n+587 mB = &rB;\n+588 mX = &rX;\n+589 }\n+590 typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be rpg, rcond, ferr=1e10, berr;\n+591 int info;\n+592 mem_usage_t memusage;\n+593 SuperLUStat_t stat;\n+594 /* Initialize the statistics variables. */\n+595 StatInit(&stat);\n+596 /*\n+597 range_type d=b;\n+598 a->usmv(-1, x, d);\n+599\n+600 double def0=d.two_norm();\n+601 */\n+602 options.IterRefine=SLU_DOUBLE;\n+603\n+604 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be(&options, &static_cast(_\bm_\ba_\bt),\n+perm_c, perm_r, etree, &equed, R, C,\n+605 &L, &U, work, lwork, mB, mX, &rpg, &rcond, &ferr, &berr,\n+606 &memusage, &stat, &info);\n+607\n+608 res._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs=1;\n+609\n+610 /*\n+611 if(options.Equil==YES)\n+612 // undo scaling of right hand side\n+613 std::transform(reinterpret_cast(&b[0]),reinterpret_cast(&b\n+[0])+mat.M(),\n+614 C, reinterpret_cast(&d[0]), std::divides());\n+615 else\n+616 d=b;\n+617 a->usmv(-1, x, d);\n+618 res.reduction=d.two_norm()/def0;\n+619 res.conv_rate = res.reduction;\n+620 res.converged=(res.reduction<1e-10||d.two_norm()<1e-18);\n+621 */\n+622 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd=true;\n+623\n+624 if(verbose) {\n+625\n+626 dinfo<<\"Triangular solve: dgssvx() returns info \"<< info<(_\bm_\ba_\bt).ncol;\n+629\n+630 if ( info == 0 || info == nSuperLUCol+1 ) {\n+631\n+632 if ( options.IterRefine ) {\n+633 std::cout<<\"Iterative Refinement: steps=\"\n+634 < 0 && lwork == -1 ) { // Memory allocation failed\n+638 std::cout<<\"** Estimated memory: \"<< info - nSuperLUCol<<\" bytes\"<\n+651 void _\bS_\bu_\bp_\be_\br_\bL_\bU_\b<_\bM_\b>\n+_\b6_\b5_\b2_\b _\b:_\b:_\ba_\bp_\bp_\bl_\by(T* x, T* b)\n+653 {\n+654 if(_\bm_\ba_\bt._\bN()+_\bm_\ba_\bt._\bM()==0)\n+655 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Matrix of SuperLU is null!\");\n+656\n+657 SuperMatrix* mB = &B;\n+658 SuperMatrix* mX = &X;\n+659 SuperMatrix rB, rX;\n+660 if (reusevector) {\n+661 if(first) {\n+662 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&B, _\bm_\ba_\bt._\bN(), 1, b, _\bm_\ba_\bt._\bN(), SLU_DN,\n+_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n+663 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&X, _\bm_\ba_\bt._\bN(), 1, x, _\bm_\ba_\bt._\bN(), SLU_DN,\n+_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n+664 first=false;\n+665 }else{\n+666 ((DNformat*) B.Store)->nzval=b;\n+667 ((DNformat*)X.Store)->nzval=x;\n+668 }\n+669 } else {\n+670 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&rB, _\bm_\ba_\bt._\bN(), 1, b, _\bm_\ba_\bt._\bN(), SLU_DN,\n+_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n+671 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&rX, _\bm_\ba_\bt._\bN(), 1, x, _\bm_\ba_\bt._\bN(), SLU_DN,\n+_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be, SLU_GE);\n+672 mB = &rB;\n+673 mX = &rX;\n+674 }\n+675\n+676 typename _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be rpg, rcond, ferr=1e10, berr;\n+677 int info;\n+678 mem_usage_t memusage;\n+679 SuperLUStat_t stat;\n+680 /* Initialize the statistics variables. */\n+681 StatInit(&stat);\n+682\n+683 options.IterRefine=SLU_DOUBLE;\n+684\n+685 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bT_\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be(&options, &static_cast(_\bm_\ba_\bt),\n+perm_c, perm_r, etree, &equed, R, C,\n+686 &L, &U, work, lwork, mB, mX, &rpg, &rcond, &ferr, &berr,\n+687 &memusage, &stat, &info);\n+688\n+689 if(verbose) {\n+690 dinfo<<\"Triangular solve: dgssvx() returns info \"<< info<(_\bm_\ba_\bt).ncol;\n+693\n+694 if ( info == 0 || info == nSuperLUCol+1 ) { // Factorization has succeeded\n+695\n+696 if ( options.IterRefine ) {\n+697 dinfo<<\"Iterative Refinement: steps=\"\n+698 < 0 && lwork == -1 ) { // Memory allocation failed\n+702 dinfo<<\"** Estimated memory: \"<< info - nSuperLUCol<<\" bytes\"<\n+_\b7_\b1_\b6 struct _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br<_\bS_\bu_\bp_\be_\br_\bL_\bU<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx > >\n+717 {\n+_\b7_\b1_\b8 enum { _\bv_\ba_\bl_\bu_\be=true};\n+719 };\n+720\n+721 template\n+_\b7_\b2_\b2 struct _\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd<_\bS_\bu_\bp_\be_\br_\bL_\bU<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx > >\n+723 {\n+_\b7_\b2_\b4 enum { _\bv_\ba_\bl_\bu_\be = true };\n+725 };\n+726\n+_\b7_\b2_\b7 struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br {\n+_\b7_\b2_\b8 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk : std::false_type{};\n+_\b7_\b2_\b9 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk<_\bD_\bu_\bn_\be::FieldVector> : std::\n+true_type{};\n+_\b7_\b3_\b0 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk<_\bD_\bu_\bn_\be::FieldVector,k>> : std::true_type{};\n+731 template\n+732 std::shared_ptr::type,\n+733 typename Dune::TypeListElement<2, TL>::type>>\n+_\b7_\b3_\b4 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& _\bm_\ba_\bt, const Dune::ParameterTree& config,\n+735 std::enable_if_t<_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::type::\n+block_type>::value,int> = 0) const\n+736 {\n+737 int verbose = config.get(\"verbose\", 0);\n+738 return std::make_shared>(_\bm_\ba_\bt,verbose);\n+739 }\n+740\n+741 // second version with SFINAE to validate the template parameters of\n+SuperLU\n+742 template\n+743 std::shared_ptr::type,\n+744 typename Dune::TypeListElement<2, TL>::type>>\n+_\b7_\b4_\b5 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /\n+*config*/,\n+746 std::enable_if_t::\n+type::block_type>::value,int> = 0) const\n+747 {\n+748 DUNE_THROW(_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be,\n+749 \"Unsupported Type in SuperLU (only double and std::complex\n+supported)\");\n+750 }\n+751 };\n+_\b7_\b5_\b2 template<> struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk : std::true_type{};\n+_\b7_\b5_\b3 template<> struct _\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk<_\bs_\bt_\bd::complex> :\n+std::true_type{};\n+754\n+_\b7_\b5_\b5 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"superlu\", _\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br());\n+756} // end namespace DUNE\n+757\n+758// undefine macros from SuperLU's slu_util.h\n+759#undef FIRSTCOL_OF_SNODE\n+760#undef NO_MARKER\n+761#undef NUM_TEMPV\n+762#undef USER_ABORT\n+763#undef USER_MALLOC\n+764#undef SUPERLU_MALLOC\n+765#undef USER_FREE\n+766#undef SUPERLU_FREE\n+767#undef CHECK_MALLOC\n+768#undef SUPERLU_MAX\n+769#undef SUPERLU_MIN\n+770#undef L_SUB_START\n+771#undef L_SUB\n+772#undef L_NZ_START\n+773#undef L_FST_SUPC\n+774#undef U_NZ_START\n+775#undef U_SUB\n+776#undef TRUE\n+777#undef FALSE\n+778#undef EMPTY\n+779#undef NODROP\n+780#undef DROP_BASIC\n+781#undef DROP_PROWS\n+782#undef DROP_COLUMN\n+783#undef DROP_AREA\n+784#undef DROP_SECONDARY\n+785#undef DROP_DYNAMIC\n+786#undef DROP_INTERP\n+787#undef MILU_ALPHA\n+788\n+789#endif // HAVE_SUPERLU\n+790#endif // DUNE_SUPERLU_HH\n+_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR\n+#define DUNE_REGISTER_DIRECT_SOLVER(name,...)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:13\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n+Templates characterizing the type of a solver.\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh\n _\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n Implementation of the BCRSMatrix class.\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n+Implementations of the inverse operator interface.\n+_\bs_\bu_\bp_\be_\br_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n+void setSubMatrix(const Matrix &mat, const S &rowIndexSet)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:457\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(domain_type &x, range_type &b, InverseOperatorResult &res)\n+Apply inverse operator,.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:563\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by\n+void setVerbosity(bool v)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:437\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bf_\br_\be_\be\n+void free()\n+free allocated space.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:403\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\b~_\bS_\bu_\bp_\be_\br_\bL_\bU\n+~SuperLU()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:396\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU\n+SuperLU()\n+Empty default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:432\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+void setMatrix(const Matrix &mat)\n+Initialize data from given matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:443\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n+Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n A sparse block matrix with compressed row storage.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs\n-void endrowsizes()\n-indicate that size of all rows is defined\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\ba_\bn_\bd_\bo_\bm\n-@ random\n-Build entries randomly.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:530\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs\n-void endindices()\n-indicate that all indices are defined, check consistency\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1248\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n+Sequential overlapping Schwarz preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:694\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n+size_type M() const\n+Return the number of columns.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:700\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n size_type N() const\n-number of rows (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n-void setSize(size_type rows, size_type columns, size_type nnz=0)\n-Set the size of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:861\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-BCRSMatrix & operator=(const BCRSMatrix &Mat)\n-assignment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:911\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx\n-A block-diagonal matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< B >::field_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:39\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-implement row_type with compressed vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx\n-BDMatrix()\n-Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:58\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx\n-BDMatrix(std::initializer_list< B > const &list)\n-Construct from a std::initializer_list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-B block_type\n-export the type representing the components\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:42\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bo_\bl_\bv_\be\n-void solve(V &x, const V &rhs) const\n-Solve the system Ax=b in O(n) time.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n-A allocator_type\n-export the allocator type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:45\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx\n-BDMatrix(int size)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:60\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-BDMatrix & operator=(const BDMatrix &other)\n-assignment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:103\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n-static constexpr unsigned int blocklevel\n-increment block level counter\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:55\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n-void setSize(size_type size)\n-Resize the matrix. Invalidates the content!\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:85\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bv_\be_\br_\bt\n-void invert()\n-Inverts the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:130\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename BDMatrix< B, A >::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:154\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-typename FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:155\n+Return the number of rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:695\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+Statistics about the application of an inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n+int iterations\n+Number of iterations.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n+bool converged\n+True if convergence criterion has been met.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Abstract base class for all solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:77\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+@ value\n+Whether this is a direct solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:24\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+@ value\n+whether the solver internally uses column compressed storage\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bS_\bo_\bl_\bv_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:45\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\bC_\bh_\bo_\bo_\bs_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:49\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bQ_\bu_\be_\br_\by_\bC_\bh_\bo_\bo_\bs_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bQ_\bu_\be_\br_\by_\bS_\bp_\ba_\bc_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:57\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU\n+SuperLu Solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:271\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bn_\bn_\bz\n+SuperLUMatrix::size_type nnz() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:355\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(domain_type &x, range_type &b, double reduction,\n+InverseOperatorResult &res)\n+apply inverse operator, with given convergence criteria.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:342\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+typename Impl::SuperLUVectorChooser< M >::range_type range_type\n+The type of the range of the solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:284\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:276\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+SuperMatrixInitializer< Matrix > MatrixInitializer\n+Type of an associated initializer class.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:280\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+M Matrix\n+The matrix type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:275\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+typename Impl::SuperLUVectorChooser< M >::domain_type domain_type\n+The type of the domain of the solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:282\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bn_\ba_\bm_\be\n+const char * name()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:371\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the solver (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:287\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n+Dune::SuperLUMatrix< Matrix > SuperLUMatrix\n+The corresponding SuperLU Matrix type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:278\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU\n+SuperLU(const Matrix &mat, const ParameterTree &config)\n+Constructs the SuperLU solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:320\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:727\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL\n+>::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL, const\n+M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock<\n+typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0)\n+const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:734\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:728\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:132\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n+Utility class for converting an ISTL Matrix into a SuperLU Matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:175\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:179\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00164.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00164.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: counter.hh File Reference\n+dune-istl: bcrsmatrix.hh File Reference\n \n \n \n \n \n \n \n@@ -65,125 +65,79 @@\n
    \n
    \n \n \n \n \n \n
    \n \n-
    counter.hh File Reference
    \n+Classes |\n+Namespaces
    \n+
    bcrsmatrix.hh File Reference
    \n \n
    \n-
    #include <cassert>
    \n-#include <typeinfo>
    \n+\n+

    Implementation of the BCRSMatrix class. \n+More...

    \n+
    #include <cmath>
    \n+#include <complex>
    \n+#include <set>
    \n #include <iostream>
    \n+#include <algorithm>
    \n+#include <numeric>
    \n+#include <vector>
    \n+#include <map>
    \n #include <memory>
    \n-#include <tuple>
    \n-#include <utility>
    \n-#include <dune/common/typeutilities.hh>
    \n+#include "istlexception.hh"
    \n+#include "bvector.hh"
    \n+#include "matrixutils.hh"
    \n+#include <dune/common/stdstreams.hh>
    \n+#include <dune/common/iteratorfacades.hh>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/ftraits.hh>
    \n+#include <dune/common/scalarvectorview.hh>
    \n+#include <dune/common/scalarmatrixview.hh>
    \n+#include <dune/istl/blocklevel.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    struct  Dune::CompressionStatistics< size_type >
     Statistics about compression achieved in implicit mode. More...
     
    class  Dune::ImplicitMatrixBuilder< M_ >
     A wrapper for uniform access to the BCRSMatrix during and after the build stage in implicit build mode. More...
     
    class  Dune::ImplicitMatrixBuilder< M_ >::row_object
     Proxy row object for entry access. More...
     
    class  Dune::BCRSMatrix< B, A >
     A sparse block matrix with compressed row storage. More...
     
    class  Dune::BCRSMatrix< B, A >::RealRowIterator< T >
     Iterator access to matrix rows More...
     
    class  Dune::BCRSMatrix< B, A >::CreateIterator
     Iterator class for sequential creation of blocks More...
     
    struct  Dune::FieldTraits< BCRSMatrix< B, A > >
     
    \n \n \n \n-\n-\n-

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::CounterImpl
     
    \n-\n-\n-\n-\n-\n-

    \n-Macros

    #define DUNE_GET_COUNTER(Tag)    (counterFunc(Dune::PriorityTag<maxcount>{}, Tag{}, Dune::CounterImpl::ADLTag{}))
     
    #define DUNE_INC_COUNTER(Tag)
     
    \n-\n-\n-\n

    \n-Variables

    constexpr std::size_t maxcount = 100
     
    \n-

    Macro Definition Documentation

    \n-\n-

    ◆ DUNE_GET_COUNTER

    \n-\n-
    \n-
    \n- \n- \n- \n- \n- \n- \n- \n- \n-
    #define DUNE_GET_COUNTER( Tag)    (counterFunc(Dune::PriorityTag<maxcount>{}, Tag{}, Dune::CounterImpl::ADLTag{}))
    \n-
    \n-\n-
    \n-
    \n-\n-

    ◆ DUNE_INC_COUNTER

    \n-\n-
    \n-
    \n- \n- \n- \n- \n- \n- \n- \n- \n-
    #define DUNE_INC_COUNTER( Tag)
    \n-
    \n-Value:
    namespace { \\
    \n-
    namespace CounterImpl { \\
    \n-
    constexpr std::size_t \\
    \n-
    counterFunc(Dune::PriorityTag<DUNE_GET_COUNTER(Tag)+1> p, Tag, ADLTag) \\
    \n-
    { \\
    \n-
    return p.value; \\
    \n-
    } \\
    \n-
    } \\
    \n-
    } \\
    \n-
    static_assert(true, "unfudge indentation")
    \n-
    #define DUNE_GET_COUNTER(Tag)
    Definition counter.hh:17
    \n-
    \n-
    \n-
    \n-

    Variable Documentation

    \n-\n-

    ◆ maxcount

    \n-\n-
    \n-
    \n-\n- \n- \n- \n- \n-
    \n- \n- \n- \n- \n-
    constexpr std::size_t maxcount = 100
    \n-
    \n-constexpr
    \n-
    \n-\n-
    \n-
    \n-
    \n+

    Detailed Description

    \n+

    Implementation of the BCRSMatrix class.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,56 +1,58 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bM_\ba_\bc_\br_\bo_\bs | _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs\n-counter.hh File Reference\n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+bcrsmatrix.hh File Reference\n+Implementation of the BCRSMatrix class. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n #include \n+#include \n+#include \n+#include \n+#include \n #include \n-#include \n-#include \n-#include \n+#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs_\b<_\b _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b _\b>\n+\u00a0 Statistics about compression achieved in implicit mode. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\b _\bM_\b__\b _\b>\n+\u00a0 A wrapper for uniform access to the _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx during and after the\n+ build stage in implicit build mode. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b<_\b _\bM_\b__\b _\b>_\b:_\b:_\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt\n+\u00a0 Proxy row object for entry access. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n+\u00a0 A sparse block matrix with compressed row storage. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\b _\b>\n+\u00a0 Iterator access to matrix rows _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+\u00a0 Iterator class for sequential creation of blocks _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bu_\bn_\bt_\be_\br_\bI_\bm_\bp_\bl\n-\u00a0\n-M\bMa\bac\bcr\bro\bos\bs\n-#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR(Tag)\u00a0\u00a0\u00a0 (counterFunc(Dune::PriorityTag<_\bm_\ba_\bx_\bc_\bo_\bu_\bn_\bt>{},\n- Tag{}, Dune::CounterImpl::ADLTag{}))\n-\u00a0\n-#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bI_\bN_\bC_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR(Tag)\n-\u00a0\n-V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs\n-constexpr std::size_t\u00a0 _\bm_\ba_\bx_\bc_\bo_\bu_\bn_\bt = 100\n-\u00a0\n-*\b**\b**\b**\b**\b* M\bMa\bac\bcr\bro\bo D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDU\bUN\bNE\bE_\b_G\bGE\bET\bT_\b_C\bCO\bOU\bUN\bNT\bTE\bER\bR *\b**\b**\b**\b**\b*\n-#define DUNE_GET_COUNTER ( \u00a0 Tag ) \u00a0\u00a0\u00a0 (counterFunc(Dune::PriorityTag<_\bm_\ba_\bx_\bc_\bo_\bu_\bn_\bt>\n- {}, Tag{}, Dune::CounterImpl::ADLTag{}))\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDU\bUN\bNE\bE_\b_I\bIN\bNC\bC_\b_C\bCO\bOU\bUN\bNT\bTE\bER\bR *\b**\b**\b**\b**\b*\n-#define DUNE_INC_COUNTER ( \u00a0 Tag )\n-V\bVa\bal\blu\bue\be:\b:\n-namespace { \\\n-namespace CounterImpl { \\\n-constexpr std::size_t \\\n-counterFunc(Dune::PriorityTag<_\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR(Tag)+1> p, Tag, ADLTag) \\\n-{ \\\n-return p.value; \\\n-} \\\n-} \\\n-} \\\n-static_assert(true, \"unfudge indentation\")\n-_\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR\n-#define DUNE_GET_COUNTER(Tag)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn counter.hh:17\n-*\b**\b**\b**\b**\b* V\bVa\bar\bri\bia\bab\bbl\ble\be D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0m\bma\bax\bxc\bco\bou\bun\bnt\bt *\b**\b**\b**\b**\b*\n-constexpr std::size_t maxcount = 100 constexpr\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Implementation of the BCRSMatrix class.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00164_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00164_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: counter.hh Source File\n+dune-istl: bcrsmatrix.hh Source File\n \n \n \n \n \n \n \n@@ -70,77 +70,2076 @@\n \n \n \n \n \n \n \n
    \n-
    counter.hh
    \n+
    bcrsmatrix.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3#ifndef DUNE_ISTL_COMMON_COUNTER_HH
    \n-
    4#define DUNE_ISTL_COMMON_COUNTER_HH
    \n+
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n+
    4// vi: set et ts=4 sw=2 sts=2:
    \n
    5
    \n-
    6#include <cassert>
    \n-
    7#include <typeinfo>
    \n-
    8#include <iostream>
    \n-
    9#include <memory>
    \n-
    10#include <tuple>
    \n-
    11#include <utility>
    \n-
    12
    \n-
    13#include <dune/common/typeutilities.hh>
    \n-
    14
    \n-
    15constexpr std::size_t maxcount = 100;
    \n-
    16
    \n-
    \n-
    17#define DUNE_GET_COUNTER(Tag) \\
    \n-
    18 (counterFunc(Dune::PriorityTag<maxcount>{}, Tag{}, Dune::CounterImpl::ADLTag{}))
    \n-
    \n-
    19
    \n-
    \n-
    20#define DUNE_INC_COUNTER(Tag) \\
    \n-
    21 namespace { \\
    \n-
    22 namespace CounterImpl { \\
    \n-
    23 constexpr std::size_t \\
    \n-
    24 counterFunc(Dune::PriorityTag<DUNE_GET_COUNTER(Tag)+1> p, Tag, ADLTag) \\
    \n-
    25 { \\
    \n-
    26 return p.value; \\
    \n-
    27 } \\
    \n-
    28 } \\
    \n-
    29 } \\
    \n-
    30 static_assert(true, "unfudge indentation")
    \n-
    \n-
    31
    \n-
    32namespace Dune {
    \n-
    33 namespace {
    \n-
    34
    \n-
    \n-
    35 namespace CounterImpl {
    \n+
    6#ifndef DUNE_ISTL_BCRSMATRIX_HH
    \n+
    7#define DUNE_ISTL_BCRSMATRIX_HH
    \n+
    8
    \n+
    9#include <cmath>
    \n+
    10#include <complex>
    \n+
    11#include <set>
    \n+
    12#include <iostream>
    \n+
    13#include <algorithm>
    \n+
    14#include <numeric>
    \n+
    15#include <vector>
    \n+
    16#include <map>
    \n+
    17#include <memory>
    \n+
    18
    \n+
    19#include "istlexception.hh"
    \n+
    20#include "bvector.hh"
    \n+
    21#include "matrixutils.hh"
    \n+
    22#include <dune/common/stdstreams.hh>
    \n+
    23#include <dune/common/iteratorfacades.hh>
    \n+
    24#include <dune/common/typetraits.hh>
    \n+
    25#include <dune/common/ftraits.hh>
    \n+
    26#include <dune/common/scalarvectorview.hh>
    \n+
    27#include <dune/common/scalarmatrixview.hh>
    \n+
    28
    \n+\n+
    30
    \n+
    35namespace Dune {
    \n
    36
    \n-
    37 struct ADLTag {};
    \n-
    38
    \n-
    39 template<class Tag>
    \n-
    40 constexpr std::size_t counterFunc(Dune::PriorityTag<0>, Tag, ADLTag)
    \n-
    41 {
    \n-
    42 return 0;
    \n-
    43 }
    \n-
    44
    \n-
    45 } // end namespace CounterImpl
    \n-
    \n-
    46 } // end empty namespace
    \n-
    47} // end namespace Dune
    \n-
    48#endif // DUNE_ISTL_COMMON_COUNTER_HH
    \n-
    constexpr std::size_t maxcount
    Definition counter.hh:15
    \n+
    76 template<typename M>
    \n+
    77 struct MatrixDimension;
    \n+
    78
    \n+
    80
    \n+
    86 template<typename size_type>
    \n+
    \n+\n+
    88 {
    \n+
    90 double avg;
    \n+
    92 size_type maximum;
    \n+
    94 size_type overflow_total;
    \n+
    96
    \n+
    99 double mem_ratio;
    \n+
    100 };
    \n+
    \n+
    101
    \n+
    103
    \n+
    115 template<class M_>
    \n+
    \n+\n+
    117 {
    \n+
    118
    \n+
    119 public:
    \n+
    120
    \n+
    122 typedef M_ Matrix;
    \n+
    123
    \n+\n+
    126
    \n+
    128 typedef typename Matrix::size_type size_type;
    \n+
    129
    \n+
    131
    \n+
    \n+\n+
    137 {
    \n+
    138
    \n+
    139 public:
    \n+
    140
    \n+
    \n+\n+
    143 {
    \n+
    144 return _m.entry(_i,j);
    \n+
    145 }
    \n+
    \n+
    146
    \n+
    147#ifndef DOXYGEN
    \n+
    148
    \n+\n+
    150 : _m(m)
    \n+
    151 , _i(i)
    \n+
    152 {}
    \n+
    153
    \n+
    154#endif
    \n+
    155
    \n+
    156 private:
    \n+
    157
    \n+
    158 Matrix& _m;
    \n+\n+
    160
    \n+
    161 };
    \n+
    \n+
    162
    \n+
    164
    \n+
    \n+\n+
    171 : _m(m)
    \n+
    172 {
    \n+
    173 if (m.buildMode() != Matrix::implicit)
    \n+
    174 DUNE_THROW(BCRSMatrixError,"You can only create an ImplicitBuilder for a matrix in implicit build mode");
    \n+
    175 if (m.buildStage() != Matrix::building)
    \n+
    176 DUNE_THROW(BCRSMatrixError,"You can only create an ImplicitBuilder for a matrix with set size that has not been compressed() yet");
    \n+
    177 }
    \n+
    \n+
    178
    \n+
    180
    \n+
    \n+
    194 ImplicitMatrixBuilder(Matrix& m, size_type rows, size_type cols, size_type avg_cols_per_row, double overflow_fraction)
    \n+
    195 : _m(m)
    \n+
    196 {
    \n+
    197 if (m.buildStage() != Matrix::notAllocated)
    \n+
    198 DUNE_THROW(BCRSMatrixError,"You can only set up a matrix for this ImplicitBuilder if it has no memory allocated yet");
    \n+
    199 m.setBuildMode(Matrix::implicit);
    \n+
    200 m.setImplicitBuildModeParameters(avg_cols_per_row,overflow_fraction);
    \n+
    201 m.setSize(rows,cols);
    \n+
    202 }
    \n+
    \n+
    203
    \n+
    \n+\n+
    206 {
    \n+
    207 return row_object(_m,i);
    \n+
    208 }
    \n+
    \n+
    209
    \n+
    \n+
    211 size_type N() const
    \n+
    212 {
    \n+
    213 return _m.N();
    \n+
    214 }
    \n+
    \n+
    215
    \n+
    \n+
    217 size_type M() const
    \n+
    218 {
    \n+
    219 return _m.M();
    \n+
    220 }
    \n+
    \n+
    221
    \n+
    222 private:
    \n+
    223
    \n+
    224 Matrix& _m;
    \n+
    225
    \n+
    226 };
    \n+
    \n+
    227
    \n+
    464 template<class B, class A=std::allocator<B> >
    \n+
    \n+\n+
    466 {
    \n+
    467 friend struct MatrixDimension<BCRSMatrix>;
    \n+
    468 public:
    \n+
    \n+\n+\n+\n+\n+\n+
    482 built=3
    \n+
    483 };
    \n+
    \n+
    484
    \n+
    485 //===== type definitions and constants
    \n+
    486
    \n+
    488 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n+
    489
    \n+
    491 typedef B block_type;
    \n+
    492
    \n+
    494 typedef A allocator_type;
    \n+
    495
    \n+
    497 typedef Imp::CompressedBlockVectorWindow<B,A> row_type;
    \n+
    498
    \n+
    500 typedef typename A::size_type size_type;
    \n+
    501
    \n+
    503 typedef ::Dune::CompressionStatistics<size_type> CompressionStatistics;
    \n+
    504
    \n+
    506 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n+
    507 static constexpr unsigned int blocklevel = blockLevel<B>()+1;
    \n+
    508
    \n+
    \n+\n+\n+\n+\n+
    543 unknown
    \n+
    544 };
    \n+
    \n+
    545
    \n+
    546 //===== random access interface to rows of the matrix
    \n+
    547
    \n+
    \n+\n+
    550 {
    \n+
    551#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    552 if (build_mode == implicit && ready != built)
    \n+
    553 DUNE_THROW(BCRSMatrixError,"You cannot use operator[] in implicit build mode before calling compress()");
    \n+
    554 if (r==0) DUNE_THROW(BCRSMatrixError,"row not initialized yet");
    \n+
    555 if (i>=n) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    556#endif
    \n+
    557 return r[i];
    \n+
    558 }
    \n+
    \n+
    559
    \n+
    \n+\n+
    562 {
    \n+
    563#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    564 if (build_mode == implicit && ready != built)
    \n+
    565 DUNE_THROW(BCRSMatrixError,"You cannot use operator[] in implicit build mode before calling compress()");
    \n+
    566 if (built!=ready) DUNE_THROW(BCRSMatrixError,"row not initialized yet");
    \n+
    567 if (i>=n) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    568#endif
    \n+
    569 return r[i];
    \n+
    570 }
    \n+
    \n+
    571
    \n+
    572
    \n+
    573 //===== iterator interface to rows of the matrix
    \n+
    574
    \n+
    576 template<class T>
    \n+
    \n+\n+
    578 : public RandomAccessIteratorFacade<RealRowIterator<T>, T>
    \n+
    579 {
    \n+
    580
    \n+
    581 public:
    \n+
    583 typedef typename std::remove_const<T>::type ValueType;
    \n+
    584
    \n+
    585 friend class RandomAccessIteratorFacade<RealRowIterator<const ValueType>, const ValueType>;
    \n+
    586 friend class RandomAccessIteratorFacade<RealRowIterator<ValueType>, ValueType>;
    \n+
    587 friend class RealRowIterator<const ValueType>;
    \n+
    588 friend class RealRowIterator<ValueType>;
    \n+
    589
    \n+
    \n+\n+
    592 : p(_p), i(_i)
    \n+
    593 {}
    \n+
    \n+
    594
    \n+
    \n+\n+
    597 : p(0), i(0)
    \n+
    598 {}
    \n+
    \n+
    599
    \n+
    \n+\n+
    601 : p(it.p), i(it.i)
    \n+
    602 {}
    \n+
    \n+
    603
    \n+
    604
    \n+
    \n+\n+
    607 {
    \n+
    608 return i;
    \n+
    609 }
    \n+
    \n+
    610
    \n+
    \n+
    611 std::ptrdiff_t distanceTo(const RealRowIterator<ValueType>& other) const
    \n+
    612 {
    \n+
    613 assert(other.p==p);
    \n+
    614 return (other.i-i);
    \n+
    615 }
    \n+
    \n+
    616
    \n+
    \n+
    617 std::ptrdiff_t distanceTo(const RealRowIterator<const ValueType>& other) const
    \n+
    618 {
    \n+
    619 assert(other.p==p);
    \n+
    620 return (other.i-i);
    \n+
    621 }
    \n+
    \n+
    622
    \n+
    \n+
    624 bool equals (const RealRowIterator<ValueType>& other) const
    \n+
    625 {
    \n+
    626 assert(other.p==p);
    \n+
    627 return i==other.i;
    \n+
    628 }
    \n+
    \n+
    629
    \n+
    \n+
    631 bool equals (const RealRowIterator<const ValueType>& other) const
    \n+
    632 {
    \n+
    633 assert(other.p==p);
    \n+
    634 return i==other.i;
    \n+
    635 }
    \n+
    \n+
    636
    \n+
    637 private:
    \n+
    639 void increment()
    \n+
    640 {
    \n+
    641 ++i;
    \n+
    642 }
    \n+
    643
    \n+
    645 void decrement()
    \n+
    646 {
    \n+
    647 --i;
    \n+
    648 }
    \n+
    649
    \n+
    650 void advance(std::ptrdiff_t diff)
    \n+
    651 {
    \n+
    652 i+=diff;
    \n+
    653 }
    \n+
    654
    \n+
    655 T& elementAt(std::ptrdiff_t diff) const
    \n+
    656 {
    \n+
    657 return p[i+diff];
    \n+
    658 }
    \n+
    659
    \n+
    661 row_type& dereference () const
    \n+
    662 {
    \n+
    663 return p[i];
    \n+
    664 }
    \n+
    665
    \n+
    666 row_type* p;
    \n+
    667 size_type i;
    \n+
    668 };
    \n+
    \n+
    669
    \n+\n+\n+
    673
    \n+
    \n+\n+
    676 {
    \n+
    677 return Iterator(r,0);
    \n+
    678 }
    \n+
    \n+
    679
    \n+
    \n+\n+
    682 {
    \n+
    683 return Iterator(r,n);
    \n+
    684 }
    \n+
    \n+
    685
    \n+
    \n+\n+
    689 {
    \n+
    690 return Iterator(r,n-1);
    \n+
    691 }
    \n+
    \n+
    692
    \n+
    \n+\n+
    696 {
    \n+
    697 return Iterator(r,-1);
    \n+
    698 }
    \n+
    \n+
    699
    \n+\n+
    702
    \n+
    704 typedef typename row_type::Iterator ColIterator;
    \n+
    705
    \n+\n+\n+
    709
    \n+
    710
    \n+
    \n+\n+
    713 {
    \n+
    714 return ConstIterator(r,0);
    \n+
    715 }
    \n+
    \n+
    716
    \n+
    \n+\n+
    719 {
    \n+
    720 return ConstIterator(r,n);
    \n+
    721 }
    \n+
    \n+
    722
    \n+
    \n+\n+
    726 {
    \n+
    727 return ConstIterator(r,n-1);
    \n+
    728 }
    \n+
    \n+
    729
    \n+
    \n+\n+
    733 {
    \n+
    734 return ConstIterator(r,-1);
    \n+
    735 }
    \n+
    \n+
    736
    \n+\n+
    739
    \n+
    741 typedef typename row_type::ConstIterator ConstColIterator;
    \n+
    742
    \n+
    743 //===== constructors & resizers
    \n+
    744
    \n+
    745 // we use a negative compressionBufferSize to indicate that the implicit
    \n+
    746 // mode parameters have not been set yet
    \n+
    747
    \n+
    \n+\n+
    750 : build_mode(unknown), ready(notAllocated), n(0), m(0), nnz_(0),
    \n+
    751 allocationSize_(0), r(0), a(0),
    \n+\n+
    753 {}
    \n+
    \n+
    754
    \n+
    \n+\n+
    757 : build_mode(bm), ready(notAllocated), n(0), m(0), nnz_(0),
    \n+
    758 allocationSize_(0), r(0), a(0),
    \n+\n+
    760 {
    \n+
    761 allocate(_n, _m, _nnz,true,false);
    \n+
    762 }
    \n+
    \n+
    763
    \n+
    \n+\n+
    766 : build_mode(bm), ready(notAllocated), n(0), m(0), nnz_(0),
    \n+
    767 allocationSize_(0), r(0), a(0),
    \n+\n+
    769 {
    \n+
    770 allocate(_n, _m,0,true,false);
    \n+
    771 }
    \n+
    \n+
    772
    \n+
    774
    \n+
    \n+
    784 BCRSMatrix (size_type _n, size_type _m, size_type _avg, double compressionBufferSize, BuildMode bm)
    \n+
    785 : build_mode(bm), ready(notAllocated), n(0), m(0), nnz_(0),
    \n+
    786 allocationSize_(0), r(0), a(0),
    \n+
    787 avg(_avg), compressionBufferSize_(compressionBufferSize)
    \n+
    788 {
    \n+
    789 if (bm != implicit)
    \n+
    790 DUNE_THROW(BCRSMatrixError,"Only call this constructor when using the implicit build mode");
    \n+
    791 // Prevent user from setting a negative compression buffer size:
    \n+
    792 // 1) It doesn't make sense
    \n+
    793 // 2) We use a negative value to indicate that the parameters
    \n+
    794 // have not been set yet
    \n+
    795 if (compressionBufferSize_ < 0.0)
    \n+
    796 DUNE_THROW(BCRSMatrixError,"You cannot set a negative overflow fraction");
    \n+
    797 implicit_allocate(_n,_m);
    \n+
    798 }
    \n+
    \n+
    799
    \n+
    \n+\n+
    806 : build_mode(Mat.build_mode), ready(notAllocated), n(0), m(0), nnz_(0),
    \n+
    807 allocationSize_(0), r(0), a(0),
    \n+\n+
    809 {
    \n+
    810 if (!(Mat.ready == notAllocated || Mat.ready == built))
    \n+
    811 DUNE_THROW(InvalidStateException,"BCRSMatrix can only be copy-constructed when source matrix is completely empty (size not set) or fully built)");
    \n+
    812
    \n+
    813 // deep copy in global array
    \n+
    814 size_type _nnz = Mat.nonzeroes();
    \n+
    815
    \n+
    816 j_ = Mat.j_; // enable column index sharing, release array in case of row-wise allocation
    \n+
    817 allocate(Mat.n, Mat.m, _nnz, true, true);
    \n+
    818
    \n+
    819 // build window structure
    \n+\n+
    821 }
    \n+
    \n+
    822
    \n+
    \n+\n+
    825 {
    \n+
    826 deallocate();
    \n+
    827 }
    \n+
    \n+
    828
    \n+
    \n+\n+
    834 {
    \n+
    835 if (ready == notAllocated)
    \n+
    836 {
    \n+
    837 build_mode = bm;
    \n+
    838 return;
    \n+
    839 }
    \n+
    840 if (ready == building && (build_mode == unknown || build_mode == random || build_mode == row_wise) && (bm == row_wise || bm == random))
    \n+
    841 build_mode = bm;
    \n+
    842 else
    \n+
    843 DUNE_THROW(InvalidStateException, "Matrix structure cannot be changed at this stage anymore (ready == "<<ready<<").");
    \n+
    844 }
    \n+
    \n+
    845
    \n+
    \n+
    861 void setSize(size_type rows, size_type columns, size_type nnz=0)
    \n+
    862 {
    \n+
    863 // deallocate already setup memory
    \n+
    864 deallocate();
    \n+
    865
    \n+
    866 if (build_mode == implicit)
    \n+
    867 {
    \n+
    868 if (nnz>0)
    \n+
    869 DUNE_THROW(Dune::BCRSMatrixError,"number of non-zeroes may not be set in implicit mode, use setImplicitBuildModeParameters() instead");
    \n+
    870
    \n+
    871 // implicit allocates differently
    \n+
    872 implicit_allocate(rows,columns);
    \n+
    873 }
    \n+
    874 else
    \n+
    875 {
    \n+
    876 // allocate matrix memory
    \n+
    877 allocate(rows, columns, nnz, true, false);
    \n+
    878 }
    \n+
    879 }
    \n+
    \n+
    880
    \n+
    \n+
    889 void setImplicitBuildModeParameters(size_type _avg, double compressionBufferSize)
    \n+
    890 {
    \n+
    891 // Prevent user from setting a negative compression buffer size:
    \n+
    892 // 1) It doesn't make sense
    \n+
    893 // 2) We use a negative value to indicate that the parameters
    \n+
    894 // have not been set yet
    \n+
    895 if (compressionBufferSize < 0.0)
    \n+
    896 DUNE_THROW(BCRSMatrixError,"You cannot set a negative compressionBufferSize value");
    \n+
    897
    \n+
    898 // make sure the parameters aren't changed after memory has been allocated
    \n+
    899 if (ready != notAllocated)
    \n+
    900 DUNE_THROW(InvalidStateException,"You cannot modify build mode parameters at this stage anymore");
    \n+
    901 avg = _avg;
    \n+
    902 compressionBufferSize_ = compressionBufferSize;
    \n+
    903 }
    \n+
    \n+
    904
    \n+
    \n+\n+
    912 {
    \n+
    913 // return immediately when self-assignment
    \n+
    914 if (&Mat==this) return *this;
    \n+
    915
    \n+
    916 if (!((ready == notAllocated || ready == built) && (Mat.ready == notAllocated || Mat.ready == built)))
    \n+
    917 DUNE_THROW(InvalidStateException,"BCRSMatrix can only be copied when both target and source are empty or fully built)");
    \n+
    918
    \n+
    919 // make it simple: ALWAYS throw away memory for a and j_
    \n+
    920 // and deallocate rows only if n != Mat.n
    \n+
    921 deallocate(n!=Mat.n);
    \n+
    922
    \n+
    923 // reallocate the rows if required
    \n+
    924 if (n>0 && n!=Mat.n) {
    \n+
    925 // free rows
    \n+
    926 for(row_type *riter=r+(n-1), *rend=r-1; riter!=rend; --riter)
    \n+
    927 std::allocator_traits<decltype(rowAllocator_)>::destroy(rowAllocator_, riter);
    \n+
    928 rowAllocator_.deallocate(r,n);
    \n+
    929 }
    \n+
    930
    \n+
    931 nnz_ = Mat.nonzeroes();
    \n+
    932
    \n+
    933 // allocate a, share j_
    \n+
    934 j_ = Mat.j_;
    \n+
    935 allocate(Mat.n, Mat.m, nnz_, n!=Mat.n, true);
    \n+
    936
    \n+
    937 // build window structure
    \n+\n+
    939 return *this;
    \n+
    940 }
    \n+
    \n+
    941
    \n+
    \n+\n+
    944 {
    \n+
    945
    \n+
    946 if (!(ready == notAllocated || ready == built))
    \n+
    947 DUNE_THROW(InvalidStateException,"Scalar assignment only works on fully built BCRSMatrix)");
    \n+
    948
    \n+
    949 for (size_type i=0; i<n; i++) r[i] = k;
    \n+
    950 return *this;
    \n+
    951 }
    \n+
    \n+
    952
    \n+
    953 //===== row-wise creation interface
    \n+
    954
    \n+
    \n+\n+
    957 {
    \n+
    958 public:
    \n+
    \n+\n+
    961 : Mat(_Mat), i(_i), nnz(0), current_row(nullptr, Mat.j_.get(), 0)
    \n+
    962 {
    \n+
    963 if (Mat.build_mode == unknown && Mat.ready == building)
    \n+
    964 {
    \n+
    965 Mat.build_mode = row_wise;
    \n+
    966 }
    \n+
    967 if (i==0 && Mat.ready != building)
    \n+
    968 DUNE_THROW(BCRSMatrixError,"creation only allowed for uninitialized matrix");
    \n+
    969 if(Mat.build_mode!=row_wise)
    \n+
    970 DUNE_THROW(BCRSMatrixError,"creation only allowed if row wise allocation was requested in the constructor");
    \n+
    971 if(i==0 && _Mat.N()==0)
    \n+
    972 // empty Matrix is always built.
    \n+
    973 Mat.ready = built;
    \n+
    974 }
    \n+
    \n+
    975
    \n+
    \n+\n+
    978 {
    \n+
    979 // this should only be called if matrix is in creation
    \n+
    980 if (Mat.ready != building)
    \n+
    981 DUNE_THROW(BCRSMatrixError,"matrix already built up");
    \n+
    982
    \n+
    983 // row i is defined through the pattern
    \n+
    984 // get memory for the row and initialize the j_ array
    \n+
    985 // this depends on the allocation mode
    \n+
    986
    \n+
    987 // compute size of the row
    \n+
    988 size_type s = pattern.size();
    \n+
    989
    \n+
    990 if(s>0) {
    \n+
    991 // update number of nonzeroes including this row
    \n+
    992 nnz += s;
    \n+
    993
    \n+
    994 // alloc memory / set window
    \n+
    995 if (Mat.nnz_ > 0)
    \n+
    996 {
    \n+
    997 // memory is allocated in one long array
    \n+
    998
    \n+
    999 // check if that memory is sufficient
    \n+
    1000 if (nnz > Mat.nnz_)
    \n+
    1001 DUNE_THROW(BCRSMatrixError,"allocated nnz too small");
    \n+
    1002
    \n+
    1003 // set row i
    \n+
    1004 Mat.r[i].set(s,nullptr,current_row.getindexptr());
    \n+
    1005 current_row.setindexptr(current_row.getindexptr()+s);
    \n+
    1006 }else{
    \n+
    1007 // memory is allocated individually per row
    \n+
    1008 // allocate and set row i
    \n+
    1009 B* b = Mat.allocator_.allocate(s);
    \n+
    1010 // use placement new to call constructor that allocates
    \n+
    1011 // additional memory.
    \n+
    1012 new (b) B[s];
    \n+
    1013 size_type* j = Mat.sizeAllocator_.allocate(s);
    \n+
    1014 Mat.r[i].set(s,b,j);
    \n+
    1015 }
    \n+
    1016 }else
    \n+
    1017 // setup empty row
    \n+
    1018 Mat.r[i].set(0,nullptr,nullptr);
    \n+
    1019
    \n+
    1020 // initialize the j array for row i from pattern
    \n+
    1021 std::copy(pattern.cbegin(), pattern.cend(), Mat.r[i].getindexptr());
    \n+
    1022
    \n+
    1023 // now go to next row
    \n+
    1024 i++;
    \n+
    1025 pattern.clear();
    \n+
    1026
    \n+
    1027 // check if this was last row
    \n+
    1028 if (i==Mat.n)
    \n+
    1029 {
    \n+
    1030 Mat.ready = built;
    \n+
    1031 if(Mat.nnz_ > 0)
    \n+
    1032 {
    \n+
    1033 // Set nnz to the exact number of nonzero blocks inserted
    \n+
    1034 // as some methods rely on it
    \n+
    1035 Mat.nnz_ = nnz;
    \n+
    1036 // allocate data array
    \n+
    1037 Mat.allocateData();
    \n+
    1038 Mat.setDataPointers();
    \n+
    1039 }
    \n+
    1040 }
    \n+
    1041 // done
    \n+
    1042 return *this;
    \n+
    1043 }
    \n+
    \n+
    1044
    \n+
    \n+
    1046 bool operator!= (const CreateIterator& it) const
    \n+
    1047 {
    \n+
    1048 return (i!=it.i) || (&Mat!=&it.Mat);
    \n+
    1049 }
    \n+
    \n+
    1050
    \n+
    \n+
    1052 bool operator== (const CreateIterator& it) const
    \n+
    1053 {
    \n+
    1054 return (i==it.i) && (&Mat==&it.Mat);
    \n+
    1055 }
    \n+
    \n+
    1056
    \n+
    \n+\n+
    1059 {
    \n+
    1060 return i;
    \n+
    1061 }
    \n+
    \n+
    1062
    \n+
    \n+\n+
    1065 {
    \n+
    1066 pattern.insert(j);
    \n+
    1067 }
    \n+
    \n+
    1068
    \n+
    \n+\n+
    1071 {
    \n+
    1072 return pattern.find(j) != pattern.end();
    \n+
    1073 }
    \n+
    \n+
    \n+\n+
    1080 {
    \n+
    1081 return pattern.size();
    \n+
    1082 }
    \n+
    \n+
    1083
    \n+
    1084 private:
    \n+
    1085 BCRSMatrix& Mat; // the matrix we are defining
    \n+
    1086 size_type i; // current row to be defined
    \n+
    1087 size_type nnz; // count total number of nonzeros
    \n+
    1088 typedef std::set<size_type,std::less<size_type> > PatternType;
    \n+
    1089 PatternType pattern; // used to compile entries in a row
    \n+
    1090 row_type current_row; // row pointing to the current row to setup
    \n+
    1091 };
    \n+
    \n+
    1092
    \n+
    1094 friend class CreateIterator;
    \n+
    1095
    \n+
    \n+\n+
    1098 {
    \n+
    1099 return CreateIterator(*this,0);
    \n+
    1100 }
    \n+
    \n+
    1101
    \n+
    \n+\n+
    1104 {
    \n+
    1105 return CreateIterator(*this,n);
    \n+
    1106 }
    \n+
    \n+
    1107
    \n+
    1108
    \n+
    1109 //===== random creation interface
    \n+
    1110
    \n+
    \n+\n+
    1118 {
    \n+
    1119 if (build_mode!=random)
    \n+
    1120 DUNE_THROW(BCRSMatrixError,"requires random build mode");
    \n+
    1121 if (ready != building)
    \n+
    1122 DUNE_THROW(BCRSMatrixError,"matrix row sizes already built up");
    \n+
    1123
    \n+
    1124 r[i].setsize(s);
    \n+
    1125 }
    \n+
    \n+
    1126
    \n+
    \n+\n+
    1129 {
    \n+
    1130#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1131 if (r==0) DUNE_THROW(BCRSMatrixError,"row not initialized yet");
    \n+
    1132 if (i>=n) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1133#endif
    \n+
    1134 return r[i].getsize();
    \n+
    1135 }
    \n+
    \n+
    1136
    \n+
    \n+\n+
    1139 {
    \n+
    1140 if (build_mode!=random)
    \n+
    1141 DUNE_THROW(BCRSMatrixError,"requires random build mode");
    \n+
    1142 if (ready != building)
    \n+
    1143 DUNE_THROW(BCRSMatrixError,"matrix row sizes already built up");
    \n+
    1144
    \n+
    1145 r[i].setsize(r[i].getsize()+s);
    \n+
    1146 }
    \n+
    \n+
    1147
    \n+
    \n+\n+
    1150 {
    \n+
    1151 if (build_mode!=random)
    \n+
    1152 DUNE_THROW(BCRSMatrixError,"requires random build mode");
    \n+
    1153 if (ready != building)
    \n+
    1154 DUNE_THROW(BCRSMatrixError,"matrix row sizes already built up");
    \n+
    1155
    \n+
    1156 // compute total size, check positivity
    \n+
    1157 size_type total=0;
    \n+
    1158 for (size_type i=0; i<n; i++)
    \n+
    1159 {
    \n+
    1160 total += r[i].getsize();
    \n+
    1161 }
    \n+
    1162
    \n+
    1163 if(nnz_ == 0)
    \n+
    1164 // allocate/check memory
    \n+
    1165 allocate(n,m,total,false,false);
    \n+
    1166 else if(nnz_ < total)
    \n+
    1167 DUNE_THROW(BCRSMatrixError,"Specified number of nonzeros ("<<nnz_<<") not "
    \n+
    1168 <<"sufficient for calculated nonzeros ("<<total<<"! ");
    \n+
    1169
    \n+
    1170 // set the window pointers correctly
    \n+\n+
    1172
    \n+
    1173 // initialize j_ array with m (an invalid column index)
    \n+
    1174 // this indicates an unused entry
    \n+
    1175 for (size_type k=0; k<nnz_; k++)
    \n+
    1176 j_.get()[k] = m;
    \n+\n+
    1178 }
    \n+
    \n+
    1179
    \n+
    1181
    \n+
    \n+\n+
    1192 {
    \n+
    1193 if (build_mode!=random)
    \n+
    1194 DUNE_THROW(BCRSMatrixError,"requires random build mode");
    \n+
    1195 if (ready==built)
    \n+
    1196 DUNE_THROW(BCRSMatrixError,"matrix already built up");
    \n+
    1197 if (ready==building)
    \n+
    1198 DUNE_THROW(BCRSMatrixError,"matrix row sizes not built up yet");
    \n+
    1199 if (ready==notAllocated)
    \n+
    1200 DUNE_THROW(BCRSMatrixError,"matrix size not set and no memory allocated yet");
    \n+
    1201
    \n+
    1202 if (col >= m)
    \n+
    1203 DUNE_THROW(BCRSMatrixError,"column index exceeds matrix size");
    \n+
    1204
    \n+
    1205 // get row range
    \n+
    1206 size_type* const first = r[row].getindexptr();
    \n+
    1207 size_type* const last = first + r[row].getsize();
    \n+
    1208
    \n+
    1209 // find correct insertion position for new column index
    \n+
    1210 size_type* pos = std::lower_bound(first,last,col);
    \n+
    1211
    \n+
    1212 // check if index is already in row
    \n+
    1213 if (pos!=last && *pos == col) return;
    \n+
    1214
    \n+
    1215 // find end of already inserted column indices
    \n+
    1216 size_type* end = std::lower_bound(pos,last,m);
    \n+
    1217 if (end==last)
    \n+
    1218 DUNE_THROW(BCRSMatrixError,"row is too small");
    \n+
    1219
    \n+
    1220 // insert new column index at correct position
    \n+
    1221 std::copy_backward(pos,end,end+1);
    \n+
    1222 *pos = col;
    \n+
    1223 }
    \n+
    \n+
    1224
    \n+
    1226
    \n+
    1233 template<typename It>
    \n+
    \n+
    1234 void setIndices(size_type row, It begin, It end)
    \n+
    1235 {
    \n+
    1236 size_type row_size = r[row].size();
    \n+
    1237 size_type* col_begin = r[row].getindexptr();
    \n+
    1238 size_type* col_end;
    \n+
    1239 // consistency check between allocated row size and number of passed column indices
    \n+
    1240 if ((col_end = std::copy(begin,end,r[row].getindexptr())) != col_begin + row_size)
    \n+
    1241 DUNE_THROW(BCRSMatrixError,"Given size of row " << row
    \n+
    1242 << " (" << row_size
    \n+
    1243 << ") does not match number of passed entries (" << (col_end - col_begin) << ")");
    \n+
    1244 std::sort(col_begin,col_end);
    \n+
    1245 }
    \n+
    \n+
    1246
    \n+
    \n+\n+
    1249 {
    \n+
    1250 if (build_mode!=random)
    \n+
    1251 DUNE_THROW(BCRSMatrixError,"requires random build mode");
    \n+
    1252 if (ready==built)
    \n+
    1253 DUNE_THROW(BCRSMatrixError,"matrix already built up");
    \n+
    1254 if (ready==building)
    \n+
    1255 DUNE_THROW(BCRSMatrixError,"row sizes are not built up yet");
    \n+
    1256 if (ready==notAllocated)
    \n+
    1257 DUNE_THROW(BCRSMatrixError,"matrix size not set and no memory allocated yet");
    \n+
    1258
    \n+
    1259 // check if there are undefined indices
    \n+
    1260 RowIterator endi=end();
    \n+
    1261 for (RowIterator i=begin(); i!=endi; ++i)
    \n+
    1262 {
    \n+
    1263 ColIterator endj = (*i).end();
    \n+
    1264 for (ColIterator j=(*i).begin(); j!=endj; ++j) {
    \n+
    1265 if (j.index() >= m) {
    \n+
    1266 dwarn << "WARNING: size of row "<< i.index()<<" is "<<j.offset()<<". But was specified as being "<< (*i).end().offset()
    \n+
    1267 <<". This means you are wasting valuable space and creating additional cache misses!"<<std::endl;
    \n+
    1268 nnz_ -= ((*i).end().offset() - j.offset());
    \n+
    1269 r[i.index()].setsize(j.offset());
    \n+
    1270 break;
    \n+
    1271 }
    \n+
    1272 }
    \n+
    1273 }
    \n+
    1274
    \n+
    1275 allocateData();
    \n+\n+
    1277
    \n+
    1278 // if not, set matrix to built
    \n+
    1279 ready = built;
    \n+
    1280 }
    \n+
    \n+
    1281
    \n+
    1282 //===== implicit creation interface
    \n+
    1283
    \n+
    1285
    \n+
    \n+\n+
    1297 {
    \n+
    1298#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1299 if (build_mode!=implicit)
    \n+
    1300 DUNE_THROW(BCRSMatrixError,"requires implicit build mode");
    \n+
    1301 if (ready==built)
    \n+
    1302 DUNE_THROW(BCRSMatrixError,"matrix already built up, use operator[] for entry access now");
    \n+
    1303 if (ready==notAllocated)
    \n+
    1304 DUNE_THROW(BCRSMatrixError,"matrix size not set and no memory allocated yet");
    \n+
    1305 if (ready!=building)
    \n+
    1306 DUNE_THROW(InvalidStateException,"You may only use entry() during the 'building' stage");
    \n+
    1307
    \n+
    1308 if (row >= n)
    \n+
    1309 DUNE_THROW(BCRSMatrixError,"row index exceeds matrix size");
    \n+
    1310 if (col >= m)
    \n+
    1311 DUNE_THROW(BCRSMatrixError,"column index exceeds matrix size");
    \n+
    1312#endif
    \n+
    1313
    \n+
    1314 size_type* begin = r[row].getindexptr();
    \n+
    1315 size_type* end = begin + r[row].getsize();
    \n+
    1316
    \n+
    1317 size_type* pos = std::find(begin, end, col);
    \n+
    1318
    \n+
    1319 //treat the case that there was a match in the array
    \n+
    1320 if (pos != end)
    \n+
    1321 if (*pos == col)
    \n+
    1322 {
    \n+
    1323 std::ptrdiff_t offset = pos - r[row].getindexptr();
    \n+
    1324 B* aptr = r[row].getptr() + offset;
    \n+
    1325
    \n+
    1326 return *aptr;
    \n+
    1327 }
    \n+
    1328
    \n+
    1329 //determine whether overflow has to be taken into account or not
    \n+
    1330 if (r[row].getsize() == avg)
    \n+
    1331 return overflow[std::make_pair(row,col)];
    \n+
    1332 else
    \n+
    1333 {
    \n+
    1334 //modify index array
    \n+
    1335 *end = col;
    \n+
    1336
    \n+
    1337 //do simultaneous operations on data array a
    \n+
    1338 std::ptrdiff_t offset = end - r[row].getindexptr();
    \n+
    1339 B* apos = r[row].getptr() + offset;
    \n+
    1340
    \n+
    1341 //increase rowsize
    \n+
    1342 r[row].setsize(r[row].getsize()+1);
    \n+
    1343
    \n+
    1344 //return reference to the newly created entry
    \n+
    1345 return *apos;
    \n+
    1346 }
    \n+
    1347 }
    \n+
    \n+
    1348
    \n+
    1350
    \n+
    \n+\n+
    1361 {
    \n+
    1362 if (build_mode!=implicit)
    \n+
    1363 DUNE_THROW(BCRSMatrixError,"requires implicit build mode");
    \n+
    1364 if (ready==built)
    \n+
    1365 DUNE_THROW(BCRSMatrixError,"matrix already built up, no more need for compression");
    \n+
    1366 if (ready==notAllocated)
    \n+
    1367 DUNE_THROW(BCRSMatrixError,"matrix size not set and no memory allocated yet");
    \n+
    1368 if (ready!=building)
    \n+
    1369 DUNE_THROW(InvalidStateException,"You may only call compress() at the end of the 'building' stage");
    \n+
    1370
    \n+
    1371 //calculate statistics
    \n+\n+
    1373 stats.overflow_total = overflow.size();
    \n+
    1374 stats.maximum = 0;
    \n+
    1375
    \n+
    1376 //get insertion iterators pointing to one before start (for later use of ++it)
    \n+
    1377 size_type* jiit = j_.get();
    \n+
    1378 B* aiit = a;
    \n+
    1379
    \n+
    1380 //get iterator to the smallest overflow element
    \n+
    1381 typename OverflowType::iterator oit = overflow.begin();
    \n+
    1382
    \n+
    1383 //store a copy of index pointers on which to perform sorting
    \n+
    1384 std::vector<size_type*> perm;
    \n+
    1385
    \n+
    1386 //iterate over all rows and copy elements into their position in the compressed array
    \n+
    1387 for (size_type i=0; i<n; i++)
    \n+
    1388 {
    \n+
    1389 //get old pointers into a and j and size without overflow changes
    \n+
    1390 size_type* begin = r[i].getindexptr();
    \n+
    1391 //B* apos = r[i].getptr();
    \n+
    1392 size_type size = r[i].getsize();
    \n+
    1393
    \n+
    1394 perm.resize(size);
    \n+
    1395
    \n+
    1396 typename std::vector<size_type*>::iterator it = perm.begin();
    \n+
    1397 for (size_type* iit = begin; iit < begin + size; ++iit, ++it)
    \n+
    1398 *it = iit;
    \n+
    1399
    \n+
    1400 //sort permutation array
    \n+
    1401 std::sort(perm.begin(),perm.end(),PointerCompare<size_type>());
    \n+
    1402
    \n+
    1403 //change row window pointer to their new positions
    \n+
    1404 r[i].setindexptr(jiit);
    \n+
    1405 r[i].setptr(aiit);
    \n+
    1406
    \n+
    1407 for (it = perm.begin(); it != perm.end(); ++it)
    \n+
    1408 {
    \n+
    1409 //check whether there are elements in the overflow area which take precedence
    \n+
    1410 while ((oit!=overflow.end()) && (oit->first < std::make_pair(i,**it)))
    \n+
    1411 {
    \n+
    1412 //check whether there is enough memory to write to
    \n+
    1413 if (jiit > begin)
    \n+\n+
    1415 "Allocated memory for BCRSMatrix exhausted during compress()!"
    \n+
    1416 "Please increase either the average number of entries per row or the compressionBufferSize value."
    \n+
    1417 );
    \n+
    1418 //copy an element from the overflow area to the insertion position in a and j
    \n+
    1419 *jiit = oit->first.second;
    \n+
    1420 ++jiit;
    \n+
    1421 *aiit = oit->second;
    \n+
    1422 ++aiit;
    \n+
    1423 ++oit;
    \n+
    1424 r[i].setsize(r[i].getsize()+1);
    \n+
    1425 }
    \n+
    1426
    \n+
    1427 //check whether there is enough memory to write to
    \n+
    1428 if (jiit > begin)
    \n+\n+
    1430 "Allocated memory for BCRSMatrix exhausted during compress()!"
    \n+
    1431 "Please increase either the average number of entries per row or the compressionBufferSize value."
    \n+
    1432 );
    \n+
    1433
    \n+
    1434 //copy element from array
    \n+
    1435 *jiit = **it;
    \n+
    1436 ++jiit;
    \n+
    1437 B* apos = *it - j_.get() + a;
    \n+
    1438 *aiit = *apos;
    \n+
    1439 ++aiit;
    \n+
    1440 }
    \n+
    1441
    \n+
    1442 //copy remaining elements from the overflow area
    \n+
    1443 while ((oit!=overflow.end()) && (oit->first.first == i))
    \n+
    1444 {
    \n+
    1445 //check whether there is enough memory to write to
    \n+
    1446 if (jiit > begin)
    \n+\n+
    1448 "Allocated memory for BCRSMatrix exhausted during compress()!"
    \n+
    1449 "Please increase either the average number of entries per row or the compressionBufferSize value."
    \n+
    1450 );
    \n+
    1451
    \n+
    1452 //copy and element from the overflow area to the insertion position in a and j
    \n+
    1453 *jiit = oit->first.second;
    \n+
    1454 ++jiit;
    \n+
    1455 *aiit = oit->second;
    \n+
    1456 ++aiit;
    \n+
    1457 ++oit;
    \n+
    1458 r[i].setsize(r[i].getsize()+1);
    \n+
    1459 }
    \n+
    1460
    \n+
    1461 // update maximum row size
    \n+
    1462 if (r[i].getsize()>stats.maximum)
    \n+
    1463 stats.maximum = r[i].getsize();
    \n+
    1464 }
    \n+
    1465
    \n+
    1466 // overflow area may be cleared
    \n+
    1467 overflow.clear();
    \n+
    1468
    \n+
    1469 //determine average number of entries and memory usage
    \n+
    1470 std::ptrdiff_t diff = (r[n-1].getindexptr() + r[n-1].getsize() - j_.get());
    \n+
    1471 nnz_ = diff;
    \n+
    1472 stats.avg = (double) (nnz_) / (double) n;
    \n+
    1473 stats.mem_ratio = (double) (nnz_) / (double) allocationSize_;
    \n+
    1474
    \n+
    1475 //matrix is now built
    \n+
    1476 ready = built;
    \n+
    1477
    \n+
    1478 return stats;
    \n+
    1479 }
    \n+
    \n+
    1480
    \n+
    1481 //===== vector space arithmetic
    \n+
    1482
    \n+
    \n+\n+
    1485 {
    \n+
    1486#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1487 if (ready != built)
    \n+
    1488 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1489#endif
    \n+
    1490
    \n+
    1491 if (nnz_ > 0)
    \n+
    1492 {
    \n+
    1493 // process 1D array
    \n+
    1494 for (size_type i=0; i<nnz_; i++)
    \n+
    1495 a[i] *= k;
    \n+
    1496 }
    \n+
    1497 else
    \n+
    1498 {
    \n+
    1499 RowIterator endi=end();
    \n+
    1500 for (RowIterator i=begin(); i!=endi; ++i)
    \n+
    1501 {
    \n+
    1502 ColIterator endj = (*i).end();
    \n+
    1503 for (ColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1504 (*j) *= k;
    \n+
    1505 }
    \n+
    1506 }
    \n+
    1507
    \n+
    1508 return *this;
    \n+
    1509 }
    \n+
    \n+
    1510
    \n+
    \n+\n+
    1513 {
    \n+
    1514#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1515 if (ready != built)
    \n+
    1516 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1517#endif
    \n+
    1518
    \n+
    1519 if (nnz_ > 0)
    \n+
    1520 {
    \n+
    1521 // process 1D array
    \n+
    1522 for (size_type i=0; i<nnz_; i++)
    \n+
    1523 a[i] /= k;
    \n+
    1524 }
    \n+
    1525 else
    \n+
    1526 {
    \n+
    1527 RowIterator endi=end();
    \n+
    1528 for (RowIterator i=begin(); i!=endi; ++i)
    \n+
    1529 {
    \n+
    1530 ColIterator endj = (*i).end();
    \n+
    1531 for (ColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1532 (*j) /= k;
    \n+
    1533 }
    \n+
    1534 }
    \n+
    1535
    \n+
    1536 return *this;
    \n+
    1537 }
    \n+
    \n+
    1538
    \n+
    1539
    \n+
    \n+\n+
    1546 {
    \n+
    1547#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1548 if (ready != built || b.ready != built)
    \n+
    1549 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1550 if(N()!=b.N() || M() != b.M())
    \n+
    1551 DUNE_THROW(RangeError, "Matrix sizes do not match!");
    \n+
    1552#endif
    \n+
    1553 RowIterator endi=end();
    \n+
    1554 ConstRowIterator j=b.begin();
    \n+
    1555 for (RowIterator i=begin(); i!=endi; ++i, ++j) {
    \n+
    1556 i->operator+=(*j);
    \n+
    1557 }
    \n+
    1558
    \n+
    1559 return *this;
    \n+
    1560 }
    \n+
    \n+
    1561
    \n+
    \n+\n+
    1568 {
    \n+
    1569#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1570 if (ready != built || b.ready != built)
    \n+
    1571 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1572 if(N()!=b.N() || M() != b.M())
    \n+
    1573 DUNE_THROW(RangeError, "Matrix sizes do not match!");
    \n+
    1574#endif
    \n+
    1575 RowIterator endi=end();
    \n+
    1576 ConstRowIterator j=b.begin();
    \n+
    1577 for (RowIterator i=begin(); i!=endi; ++i, ++j) {
    \n+
    1578 i->operator-=(*j);
    \n+
    1579 }
    \n+
    1580
    \n+
    1581 return *this;
    \n+
    1582 }
    \n+
    \n+
    1583
    \n+
    \n+\n+
    1593 {
    \n+
    1594#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1595 if (ready != built || b.ready != built)
    \n+
    1596 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1597 if(N()!=b.N() || M() != b.M())
    \n+
    1598 DUNE_THROW(RangeError, "Matrix sizes do not match!");
    \n+
    1599#endif
    \n+
    1600 RowIterator endi=end();
    \n+
    1601 ConstRowIterator j=b.begin();
    \n+
    1602 for(RowIterator i=begin(); i!=endi; ++i, ++j)
    \n+
    1603 i->axpy(alpha, *j);
    \n+
    1604
    \n+
    1605 return *this;
    \n+
    1606 }
    \n+
    \n+
    1607
    \n+
    1608 //===== linear maps
    \n+
    1609
    \n+
    1611 template<class X, class Y>
    \n+
    \n+
    1612 void mv (const X& x, Y& y) const
    \n+
    1613 {
    \n+
    1614#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1615 if (ready != built)
    \n+
    1616 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1617 if (x.N()!=M()) DUNE_THROW(BCRSMatrixError,
    \n+
    1618 "Size mismatch: M: " << N() << "x" << M() << " x: " << x.N());
    \n+
    1619 if (y.N()!=N()) DUNE_THROW(BCRSMatrixError,
    \n+
    1620 "Size mismatch: M: " << N() << "x" << M() << " y: " << y.N());
    \n+
    1621#endif
    \n+
    1622 ConstRowIterator endi=end();
    \n+
    1623 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n+
    1624 {
    \n+
    1625 y[i.index()]=0;
    \n+
    1626 ConstColIterator endj = (*i).end();
    \n+
    1627 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1628 {
    \n+
    1629 auto&& xj = Impl::asVector(x[j.index()]);
    \n+
    1630 auto&& yi = Impl::asVector(y[i.index()]);
    \n+
    1631 Impl::asMatrix(*j).umv(xj, yi);
    \n+
    1632 }
    \n+
    1633 }
    \n+
    1634 }
    \n+
    \n+
    1635
    \n+
    1637 template<class X, class Y>
    \n+
    \n+
    1638 void umv (const X& x, Y& y) const
    \n+
    1639 {
    \n+
    1640#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1641 if (ready != built)
    \n+
    1642 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1643 if (x.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1644 if (y.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1645#endif
    \n+
    1646 ConstRowIterator endi=end();
    \n+
    1647 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n+
    1648 {
    \n+
    1649 ConstColIterator endj = (*i).end();
    \n+
    1650 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1651 {
    \n+
    1652 auto&& xj = Impl::asVector(x[j.index()]);
    \n+
    1653 auto&& yi = Impl::asVector(y[i.index()]);
    \n+
    1654 Impl::asMatrix(*j).umv(xj,yi);
    \n+
    1655 }
    \n+
    1656 }
    \n+
    1657 }
    \n+
    \n+
    1658
    \n+
    1660 template<class X, class Y>
    \n+
    \n+
    1661 void mmv (const X& x, Y& y) const
    \n+
    1662 {
    \n+
    1663#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1664 if (ready != built)
    \n+
    1665 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1666 if (x.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1667 if (y.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1668#endif
    \n+
    1669 ConstRowIterator endi=end();
    \n+
    1670 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n+
    1671 {
    \n+
    1672 ConstColIterator endj = (*i).end();
    \n+
    1673 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1674 {
    \n+
    1675 auto&& xj = Impl::asVector(x[j.index()]);
    \n+
    1676 auto&& yi = Impl::asVector(y[i.index()]);
    \n+
    1677 Impl::asMatrix(*j).mmv(xj,yi);
    \n+
    1678 }
    \n+
    1679 }
    \n+
    1680 }
    \n+
    \n+
    1681
    \n+
    1683 template<class X, class Y, class F>
    \n+
    \n+
    1684 void usmv (F&& alpha, const X& x, Y& y) const
    \n+
    1685 {
    \n+
    1686#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1687 if (ready != built)
    \n+
    1688 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1689 if (x.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1690 if (y.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1691#endif
    \n+
    1692 ConstRowIterator endi=end();
    \n+
    1693 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n+
    1694 {
    \n+
    1695 ConstColIterator endj = (*i).end();
    \n+
    1696 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1697 {
    \n+
    1698 auto&& xj = Impl::asVector(x[j.index()]);
    \n+
    1699 auto&& yi = Impl::asVector(y[i.index()]);
    \n+
    1700 Impl::asMatrix(*j).usmv(alpha,xj,yi);
    \n+
    1701 }
    \n+
    1702 }
    \n+
    1703 }
    \n+
    \n+
    1704
    \n+
    1706 template<class X, class Y>
    \n+
    \n+
    1707 void mtv (const X& x, Y& y) const
    \n+
    1708 {
    \n+
    1709#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1710 if (ready != built)
    \n+
    1711 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1712 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1713 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1714#endif
    \n+
    1715 for(size_type i=0; i<y.N(); ++i)
    \n+
    1716 y[i]=0;
    \n+
    1717 umtv(x,y);
    \n+
    1718 }
    \n+
    \n+
    1719
    \n+
    1721 template<class X, class Y>
    \n+
    \n+
    1722 void umtv (const X& x, Y& y) const
    \n+
    1723 {
    \n+
    1724#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1725 if (ready != built)
    \n+
    1726 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1727 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1728 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1729#endif
    \n+
    1730 ConstRowIterator endi=end();
    \n+
    1731 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n+
    1732 {
    \n+
    1733 ConstColIterator endj = (*i).end();
    \n+
    1734 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1735 {
    \n+
    1736 auto&& xi = Impl::asVector(x[i.index()]);
    \n+
    1737 auto&& yj = Impl::asVector(y[j.index()]);
    \n+
    1738 Impl::asMatrix(*j).umtv(xi,yj);
    \n+
    1739 }
    \n+
    1740 }
    \n+
    1741 }
    \n+
    \n+
    1742
    \n+
    1744 template<class X, class Y>
    \n+
    \n+
    1745 void mmtv (const X& x, Y& y) const
    \n+
    1746 {
    \n+
    1747#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1748 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1749 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1750#endif
    \n+
    1751 ConstRowIterator endi=end();
    \n+
    1752 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n+
    1753 {
    \n+
    1754 ConstColIterator endj = (*i).end();
    \n+
    1755 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1756 {
    \n+
    1757 auto&& xi = Impl::asVector(x[i.index()]);
    \n+
    1758 auto&& yj = Impl::asVector(y[j.index()]);
    \n+
    1759 Impl::asMatrix(*j).mmtv(xi,yj);
    \n+
    1760 }
    \n+
    1761 }
    \n+
    1762 }
    \n+
    \n+
    1763
    \n+
    1765 template<class X, class Y>
    \n+
    \n+
    1766 void usmtv (const field_type& alpha, const X& x, Y& y) const
    \n+
    1767 {
    \n+
    1768#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1769 if (ready != built)
    \n+
    1770 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1771 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1772 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1773#endif
    \n+
    1774 ConstRowIterator endi=end();
    \n+
    1775 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n+
    1776 {
    \n+
    1777 ConstColIterator endj = (*i).end();
    \n+
    1778 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1779 {
    \n+
    1780 auto&& xi = Impl::asVector(x[i.index()]);
    \n+
    1781 auto&& yj = Impl::asVector(y[j.index()]);
    \n+
    1782 Impl::asMatrix(*j).usmtv(alpha,xi,yj);
    \n+
    1783 }
    \n+
    1784 }
    \n+
    1785 }
    \n+
    \n+
    1786
    \n+
    1788 template<class X, class Y>
    \n+
    \n+
    1789 void umhv (const X& x, Y& y) const
    \n+
    1790 {
    \n+
    1791#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1792 if (ready != built)
    \n+
    1793 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1794 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1795 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1796#endif
    \n+
    1797 ConstRowIterator endi=end();
    \n+
    1798 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n+
    1799 {
    \n+
    1800 ConstColIterator endj = (*i).end();
    \n+
    1801 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1802 {
    \n+
    1803 auto&& xi = Impl::asVector(x[i.index()]);
    \n+
    1804 auto&& yj = Impl::asVector(y[j.index()]);
    \n+
    1805 Impl::asMatrix(*j).umhv(xi,yj);
    \n+
    1806 }
    \n+
    1807 }
    \n+
    1808 }
    \n+
    \n+
    1809
    \n+
    1811 template<class X, class Y>
    \n+
    \n+
    1812 void mmhv (const X& x, Y& y) const
    \n+
    1813 {
    \n+
    1814#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1815 if (ready != built)
    \n+
    1816 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1817 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1818 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1819#endif
    \n+
    1820 ConstRowIterator endi=end();
    \n+
    1821 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n+
    1822 {
    \n+
    1823 ConstColIterator endj = (*i).end();
    \n+
    1824 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1825 {
    \n+
    1826 auto&& xi = Impl::asVector(x[i.index()]);
    \n+
    1827 auto&& yj = Impl::asVector(y[j.index()]);
    \n+
    1828 Impl::asMatrix(*j).mmhv(xi,yj);
    \n+
    1829 }
    \n+
    1830 }
    \n+
    1831 }
    \n+
    \n+
    1832
    \n+
    1834 template<class X, class Y>
    \n+
    \n+
    1835 void usmhv (const field_type& alpha, const X& x, Y& y) const
    \n+
    1836 {
    \n+
    1837#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1838 if (ready != built)
    \n+
    1839 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1840 if (x.N()!=N()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1841 if (y.N()!=M()) DUNE_THROW(BCRSMatrixError,"index out of range");
    \n+
    1842#endif
    \n+
    1843 ConstRowIterator endi=end();
    \n+
    1844 for (ConstRowIterator i=this->begin(); i!=endi; ++i)
    \n+
    1845 {
    \n+
    1846 ConstColIterator endj = (*i).end();
    \n+
    1847 for (ConstColIterator j=(*i).begin(); j!=endj; ++j)
    \n+
    1848 {
    \n+
    1849 auto&& xi = Impl::asVector(x[i.index()]);
    \n+
    1850 auto&& yj = Impl::asVector(y[j.index()]);
    \n+
    1851 Impl::asMatrix(*j).usmhv(alpha,xi,yj);
    \n+
    1852 }
    \n+
    1853 }
    \n+
    1854 }
    \n+
    \n+
    1855
    \n+
    1856
    \n+
    1857 //===== norms
    \n+
    1858
    \n+
    \n+
    1860 typename FieldTraits<field_type>::real_type frobenius_norm2 () const
    \n+
    1861 {
    \n+
    1862#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1863 if (ready != built)
    \n+
    1864 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1865#endif
    \n+
    1866
    \n+
    1867 typename FieldTraits<field_type>::real_type sum=0;
    \n+
    1868
    \n+
    1869 for (auto&& row : (*this))
    \n+
    1870 for (auto&& entry : row)
    \n+
    1871 sum += Impl::asMatrix(entry).frobenius_norm2();
    \n+
    1872
    \n+
    1873 return sum;
    \n+
    1874 }
    \n+
    \n+
    1875
    \n+
    \n+
    1877 typename FieldTraits<field_type>::real_type frobenius_norm () const
    \n+
    1878 {
    \n+
    1879 return sqrt(frobenius_norm2());
    \n+
    1880 }
    \n+
    \n+
    1881
    \n+
    1883 template <typename ft = field_type,
    \n+
    1884 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n+
    \n+
    1885 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n+
    1886 if (ready != built)
    \n+
    1887 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1888
    \n+
    1889 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    1890 using std::max;
    \n+
    1891
    \n+
    1892 real_type norm = 0;
    \n+
    1893 for (auto const &x : *this) {
    \n+
    1894 real_type sum = 0;
    \n+
    1895 for (auto const &y : x)
    \n+
    1896 sum += Impl::asMatrix(y).infinity_norm();
    \n+
    1897 norm = max(sum, norm);
    \n+
    1898 }
    \n+
    1899 return norm;
    \n+
    1900 }
    \n+
    \n+
    1901
    \n+
    1903 template <typename ft = field_type,
    \n+
    1904 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n+
    \n+
    1905 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n+
    1906 if (ready != built)
    \n+
    1907 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1908
    \n+
    1909 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    1910 using std::max;
    \n+
    1911
    \n+
    1912 real_type norm = 0;
    \n+
    1913 for (auto const &x : *this) {
    \n+
    1914 real_type sum = 0;
    \n+
    1915 for (auto const &y : x)
    \n+
    1916 sum += Impl::asMatrix(y).infinity_norm_real();
    \n+
    1917 norm = max(sum, norm);
    \n+
    1918 }
    \n+
    1919 return norm;
    \n+
    1920 }
    \n+
    \n+
    1921
    \n+
    1923 template <typename ft = field_type,
    \n+
    1924 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n+
    \n+
    1925 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n+
    1926 if (ready != built)
    \n+
    1927 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1928
    \n+
    1929 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    1930 using std::max;
    \n+
    1931
    \n+
    1932 real_type norm = 0;
    \n+
    1933 real_type isNaN = 1;
    \n+
    1934 for (auto const &x : *this) {
    \n+
    1935 real_type sum = 0;
    \n+
    1936 for (auto const &y : x)
    \n+
    1937 sum += Impl::asMatrix(y).infinity_norm();
    \n+
    1938 norm = max(sum, norm);
    \n+
    1939 isNaN += sum;
    \n+
    1940 }
    \n+
    1941
    \n+
    1942 return norm * (isNaN / isNaN);
    \n+
    1943 }
    \n+
    \n+
    1944
    \n+
    1946 template <typename ft = field_type,
    \n+
    1947 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n+
    \n+
    1948 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n+
    1949 if (ready != built)
    \n+
    1950 DUNE_THROW(BCRSMatrixError,"You can only call arithmetic operations on fully built BCRSMatrix instances");
    \n+
    1951
    \n+
    1952 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    1953 using std::max;
    \n+
    1954
    \n+
    1955 real_type norm = 0;
    \n+
    1956 real_type isNaN = 1;
    \n+
    1957
    \n+
    1958 for (auto const &x : *this) {
    \n+
    1959 real_type sum = 0;
    \n+
    1960 for (auto const &y : x)
    \n+
    1961 sum += Impl::asMatrix(y).infinity_norm_real();
    \n+
    1962 norm = max(sum, norm);
    \n+
    1963 isNaN += sum;
    \n+
    1964 }
    \n+
    1965
    \n+
    1966 return norm * (isNaN / isNaN);
    \n+
    1967 }
    \n+
    \n+
    1968
    \n+
    1969 //===== sizes
    \n+
    1970
    \n+
    \n+
    1972 size_type N () const
    \n+
    1973 {
    \n+
    1974 return n;
    \n+
    1975 }
    \n+
    \n+
    1976
    \n+
    \n+
    1978 size_type M () const
    \n+
    1979 {
    \n+
    1980 return m;
    \n+
    1981 }
    \n+
    \n+
    1982
    \n+
    \n+\n+
    1985 {
    \n+
    1986 // in case of row-wise allocation
    \n+
    1987 if( nnz_ <= 0 )
    \n+
    1988 nnz_ = std::accumulate( begin(), end(), size_type( 0 ), [] ( size_type s, const row_type &row ) { return s+row.getsize(); } );
    \n+
    1989 return nnz_;
    \n+
    1990 }
    \n+
    \n+
    1991
    \n+
    \n+\n+
    1994 {
    \n+
    1995 return ready;
    \n+
    1996 }
    \n+
    \n+
    1997
    \n+
    \n+\n+
    2000 {
    \n+
    2001 return build_mode;
    \n+
    2002 }
    \n+
    \n+
    2003
    \n+
    2004 //===== query
    \n+
    2005
    \n+
    \n+
    2007 bool exists (size_type i, size_type j) const
    \n+
    2008 {
    \n+
    2009#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    2010 if (i<0 || i>=n) DUNE_THROW(BCRSMatrixError,"row index out of range");
    \n+
    2011 if (j<0 || j>=m) DUNE_THROW(BCRSMatrixError,"column index out of range");
    \n+
    2012#endif
    \n+
    2013 return (r[i].size() && r[i].find(j) != r[i].end());
    \n+
    2014 }
    \n+
    \n+
    2015
    \n+
    2016
    \n+
    2017 protected:
    \n+
    2018 // state information
    \n+
    2019 BuildMode build_mode; // row wise or whole matrix
    \n+
    2020 BuildStage ready; // indicate the stage the matrix building is in
    \n+
    2021
    \n+
    2022 // The allocator used for memory management
    \n+
    2023 typename std::allocator_traits<A>::template rebind_alloc<B> allocator_;
    \n+
    2024
    \n+
    2025 typename std::allocator_traits<A>::template rebind_alloc<row_type> rowAllocator_;
    \n+
    2026
    \n+
    2027 typename std::allocator_traits<A>::template rebind_alloc<size_type> sizeAllocator_;
    \n+
    2028
    \n+
    2029 // size of the matrix
    \n+
    2030 size_type n; // number of rows
    \n+
    2031 size_type m; // number of columns
    \n+
    2032 mutable size_type nnz_; // number of nonzeroes contained in the matrix
    \n+
    2033 size_type allocationSize_; //allocated size of a and j arrays, except in implicit mode: nnz_==allocationsSize_
    \n+
    2034 // zero means that memory is allocated separately for each row.
    \n+
    2035
    \n+
    2036 // the rows are dynamically allocated
    \n+
    2037 row_type* r; // [n] the individual rows having pointers into a,j arrays
    \n+
    2038
    \n+
    2039 // dynamically allocated memory
    \n+
    2040 B* a; // [allocationSize] non-zero entries of the matrix in row-wise ordering
    \n+
    2041 // If a single array of column indices is used, it can be shared
    \n+
    2042 // between different matrices with the same sparsity pattern
    \n+
    2043 std::shared_ptr<size_type> j_; // [allocationSize] column indices of entries
    \n+
    2044
    \n+
    2045 // additional data is needed in implicit buildmode
    \n+\n+\n+
    2048
    \n+
    2049 typedef std::map<std::pair<size_type,size_type>, B> OverflowType;
    \n+\n+
    2051
    \n+
    \n+\n+
    2053 {
    \n+
    2054 row_type current_row(a,j_.get(),0); // Pointers to current row data
    \n+
    2055 for (size_type i=0; i<n; i++, ++row) {
    \n+
    2056 // set row i
    \n+
    2057 size_type s = row->getsize();
    \n+
    2058
    \n+
    2059 if (s>0) {
    \n+
    2060 // setup pointers and size
    \n+
    2061 r[i].set(s,current_row.getptr(), current_row.getindexptr());
    \n+
    2062 // update pointer for next row
    \n+
    2063 current_row.setptr(current_row.getptr()+s);
    \n+
    2064 current_row.setindexptr(current_row.getindexptr()+s);
    \n+
    2065 } else{
    \n+
    2066 // empty row
    \n+
    2067 r[i].set(0,nullptr,nullptr);
    \n+
    2068 }
    \n+
    2069 }
    \n+
    2070 }
    \n+
    \n+
    2071
    \n+
    2073
    \n+
    \n+\n+
    2078 {
    \n+
    2079 size_type* jptr = j_.get();
    \n+
    2080 for (size_type i=0; i<n; ++i, ++row) {
    \n+
    2081 // set row i
    \n+
    2082 size_type s = row->getsize();
    \n+
    2083
    \n+
    2084 if (s>0) {
    \n+
    2085 // setup pointers and size
    \n+
    2086 r[i].setsize(s);
    \n+
    2087 r[i].setindexptr(jptr);
    \n+
    2088 } else{
    \n+
    2089 // empty row
    \n+
    2090 r[i].set(0,nullptr,nullptr);
    \n+
    2091 }
    \n+
    2092
    \n+
    2093 // advance position in global array
    \n+
    2094 jptr += s;
    \n+
    2095 }
    \n+
    2096 }
    \n+
    \n+
    2097
    \n+
    2099
    \n+
    \n+\n+
    2104 {
    \n+
    2105 B* aptr = a;
    \n+
    2106 for (size_type i=0; i<n; ++i) {
    \n+
    2107 // set row i
    \n+
    2108 if (r[i].getsize() > 0) {
    \n+
    2109 // setup pointers and size
    \n+
    2110 r[i].setptr(aptr);
    \n+
    2111 } else{
    \n+
    2112 // empty row
    \n+
    2113 r[i].set(0,nullptr,nullptr);
    \n+
    2114 }
    \n+
    2115
    \n+
    2116 // advance position in global array
    \n+
    2117 aptr += r[i].getsize();
    \n+
    2118 }
    \n+
    2119 }
    \n+
    \n+
    2120
    \n+
    \n+\n+
    2123 {
    \n+
    2124 setWindowPointers(Mat.begin());
    \n+
    2125
    \n+
    2126 // copy data
    \n+
    2127 for (size_type i=0; i<n; i++) r[i] = Mat.r[i];
    \n+
    2128
    \n+
    2129 // finish off
    \n+
    2130 build_mode = row_wise; // dummy
    \n+
    2131 ready = built;
    \n+
    2132 }
    \n+
    \n+
    2133
    \n+
    \n+
    2139 void deallocate(bool deallocateRows=true)
    \n+
    2140 {
    \n+
    2141
    \n+
    2142 if (notAllocated)
    \n+
    2143 return;
    \n+
    2144
    \n+
    2145 if (allocationSize_>0)
    \n+
    2146 {
    \n+
    2147 // a,j_ have been allocated as one long vector
    \n+
    2148 j_.reset();
    \n+
    2149 if (a)
    \n+
    2150 {
    \n+
    2151 for(B *aiter=a+(allocationSize_-1), *aend=a-1; aiter!=aend; --aiter)
    \n+
    2152 std::allocator_traits<decltype(allocator_)>::destroy(allocator_, aiter);
    \n+
    2153 allocator_.deallocate(a,allocationSize_);
    \n+
    2154 a = nullptr;
    \n+
    2155 }
    \n+
    2156 }
    \n+
    2157 else if (r)
    \n+
    2158 {
    \n+
    2159 // check if memory for rows have been allocated individually
    \n+
    2160 for (size_type i=0; i<n; i++)
    \n+
    2161 if (r[i].getsize()>0)
    \n+
    2162 {
    \n+
    2163 for (B *col=r[i].getptr()+(r[i].getsize()-1),
    \n+
    2164 *colend = r[i].getptr()-1; col!=colend; --col) {
    \n+
    2165 std::allocator_traits<decltype(allocator_)>::destroy(allocator_, col);
    \n+
    2166 }
    \n+
    2167 sizeAllocator_.deallocate(r[i].getindexptr(),1);
    \n+
    2168 allocator_.deallocate(r[i].getptr(),1);
    \n+
    2169 // clear out row data in case we don't want to deallocate the rows
    \n+
    2170 // otherwise we might run into a double free problem here later
    \n+
    2171 r[i].set(0,nullptr,nullptr);
    \n+
    2172 }
    \n+
    2173 }
    \n+
    2174
    \n+
    2175 // deallocate the rows
    \n+
    2176 if (n>0 && deallocateRows && r) {
    \n+
    2177 for(row_type *riter=r+(n-1), *rend=r-1; riter!=rend; --riter)
    \n+
    2178 std::allocator_traits<decltype(rowAllocator_)>::destroy(rowAllocator_, riter);
    \n+
    2179 rowAllocator_.deallocate(r,n);
    \n+
    2180 r = nullptr;
    \n+
    2181 }
    \n+
    2182
    \n+
    2183 // Mark matrix as not built at all.
    \n+\n+
    2185
    \n+
    2186 }
    \n+
    \n+
    2187
    \n+
    \n+
    2205 void allocate(size_type rows, size_type columns, size_type allocationSize, bool allocateRows, bool allocate_data)
    \n+
    2206 {
    \n+
    2207 // Store size
    \n+
    2208 n = rows;
    \n+
    2209 m = columns;
    \n+
    2210 nnz_ = allocationSize;
    \n+
    2211 allocationSize_ = allocationSize;
    \n+
    2212
    \n+
    2213 // allocate rows
    \n+
    2214 if(allocateRows) {
    \n+
    2215 if (n>0) {
    \n+
    2216 if (r)
    \n+
    2217 DUNE_THROW(InvalidStateException,"Rows have already been allocated, cannot allocate a second time");
    \n+
    2218 r = rowAllocator_.allocate(rows);
    \n+
    2219 // initialize row entries
    \n+
    2220 for(row_type* ri=r; ri!=r+rows; ++ri)
    \n+
    2221 std::allocator_traits<decltype(rowAllocator_)>::construct(rowAllocator_, ri, row_type());
    \n+
    2222 }else{
    \n+
    2223 r = 0;
    \n+
    2224 }
    \n+
    2225 }
    \n+
    2226
    \n+
    2227 // allocate a and j_ array
    \n+
    2228 if (allocate_data)
    \n+
    2229 allocateData();
    \n+
    2230 // allocate column indices only if not yet present (enable sharing)
    \n+
    2231 if (allocationSize_>0) {
    \n+
    2232 // we copy allocator and size to the deleter since _j may outlive this class
    \n+
    2233 if (!j_.get())
    \n+
    2234 j_.reset(sizeAllocator_.allocate(allocationSize_),
    \n+
    2235 [alloc = sizeAllocator_, size = allocationSize_](auto ptr) mutable {
    \n+
    2236 alloc.deallocate(ptr, size);
    \n+
    2237 });
    \n+
    2238 }else{
    \n+
    2239 j_.reset();
    \n+
    2240 }
    \n+
    2241
    \n+
    2242 // Mark the matrix as not built.
    \n+
    2243 ready = building;
    \n+
    2244 }
    \n+
    \n+
    2245
    \n+
    \n+\n+
    2247 {
    \n+
    2248 if (a)
    \n+
    2249 DUNE_THROW(InvalidStateException,"Cannot allocate data array (already allocated)");
    \n+
    2250 if (allocationSize_>0) {
    \n+
    2251 a = allocator_.allocate(allocationSize_);
    \n+
    2252 // use placement new to call constructor that allocates
    \n+
    2253 // additional memory.
    \n+
    2254 new (a) B[allocationSize_];
    \n+
    2255 } else {
    \n+
    2256 a = nullptr;
    \n+
    2257 }
    \n+
    2258 }
    \n+
    \n+
    2259
    \n+
    \n+\n+
    2266 {
    \n+
    2267 if (build_mode != implicit)
    \n+
    2268 DUNE_THROW(InvalidStateException,"implicit_allocate() may only be called in implicit build mode");
    \n+
    2269 if (ready != notAllocated)
    \n+
    2270 DUNE_THROW(InvalidStateException,"memory has already been allocated");
    \n+
    2271
    \n+
    2272 // check to make sure the user has actually set the parameters
    \n+
    2273 if (compressionBufferSize_ < 0)
    \n+
    2274 DUNE_THROW(InvalidStateException,"You have to set the implicit build mode parameters before starting to build the matrix");
    \n+
    2275 //calculate size of overflow region, add buffer for row sort!
    \n+\n+
    2277 allocationSize_ = _n*avg + osize;
    \n+
    2278
    \n+
    2279 allocate(_n, _m, allocationSize_,true,true);
    \n+
    2280
    \n+
    2281 //set row pointers correctly
    \n+
    2282 size_type* jptr = j_.get() + osize;
    \n+
    2283 B* aptr = a + osize;
    \n+
    2284 for (size_type i=0; i<n; i++)
    \n+
    2285 {
    \n+
    2286 r[i].set(0,aptr,jptr);
    \n+
    2287 jptr = jptr + avg;
    \n+
    2288 aptr = aptr + avg;
    \n+
    2289 }
    \n+
    2290
    \n+
    2291 ready = building;
    \n+
    2292 }
    \n+
    \n+
    2293 };
    \n+
    \n+
    2294
    \n+
    2295
    \n+
    2296 template<class B, class A>
    \n+
    \n+
    2297 struct FieldTraits< BCRSMatrix<B, A> >
    \n+
    2298 {
    \n+\n+
    2300 using real_type = typename FieldTraits<field_type>::real_type;
    \n+
    2301 };
    \n+
    \n+
    2302
    \n+
    2305} // end namespace
    \n+
    2306
    \n+
    2307#endif
    \n+\n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Helper functions for determining the vector/matrix block level.
    \n+
    Some handy generic functions for ISTL matrices.
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n
    Definition allocator.hh:11
    \n+
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n+
    Definition matrixutils.hh:211
    \n+
    Statistics about compression achieved in implicit mode.
    Definition bcrsmatrix.hh:88
    \n+
    size_type overflow_total
    total number of elements written to the overflow area during construction.
    Definition bcrsmatrix.hh:94
    \n+
    size_type maximum
    maximum number of non-zeroes per row.
    Definition bcrsmatrix.hh:92
    \n+
    double avg
    average number of non-zeroes per row.
    Definition bcrsmatrix.hh:90
    \n+
    double mem_ratio
    fraction of wasted memory resulting from non-used overflow area.
    Definition bcrsmatrix.hh:99
    \n+
    A wrapper for uniform access to the BCRSMatrix during and after the build stage in implicit build mod...
    Definition bcrsmatrix.hh:117
    \n+
    Matrix::block_type block_type
    The block_type of the underlying matrix.
    Definition bcrsmatrix.hh:125
    \n+
    ImplicitMatrixBuilder(Matrix &m)
    Creates an ImplicitMatrixBuilder for matrix m.
    Definition bcrsmatrix.hh:170
    \n+
    M_ Matrix
    The underlying matrix.
    Definition bcrsmatrix.hh:122
    \n+
    ImplicitMatrixBuilder(Matrix &m, size_type rows, size_type cols, size_type avg_cols_per_row, double overflow_fraction)
    Sets up matrix m for implicit construction using the given parameters and creates an ImplicitBmatrixu...
    Definition bcrsmatrix.hh:194
    \n+
    size_type M() const
    The number of columns in the matrix.
    Definition bcrsmatrix.hh:217
    \n+
    Matrix::size_type size_type
    The size_type of the underlying matrix.
    Definition bcrsmatrix.hh:128
    \n+
    row_object operator[](size_type i) const
    Returns a proxy for entries in row i.
    Definition bcrsmatrix.hh:205
    \n+
    size_type N() const
    The number of rows in the matrix.
    Definition bcrsmatrix.hh:211
    \n+
    Proxy row object for entry access.
    Definition bcrsmatrix.hh:137
    \n+
    block_type & operator[](size_type j) const
    Returns entry in column j.
    Definition bcrsmatrix.hh:142
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bcrsmatrix.hh:488
    \n+
    std::allocator_traits< A >::template rebind_alloc< row_type > rowAllocator_
    Definition bcrsmatrix.hh:2025
    \n+
    bool exists(size_type i, size_type j) const
    return true if (i,j) is in pattern
    Definition bcrsmatrix.hh:2007
    \n+
    BuildStage buildStage() const
    The current build stage of the matrix.
    Definition bcrsmatrix.hh:1993
    \n+
    Iterator begin()
    Get iterator to first row.
    Definition bcrsmatrix.hh:675
    \n+
    void copyWindowStructure(const BCRSMatrix &Mat)
    Copy the window structure from another matrix.
    Definition bcrsmatrix.hh:2122
    \n+
    B & entry(size_type row, size_type col)
    Returns reference to entry (row,col) of the matrix.
    Definition bcrsmatrix.hh:1296
    \n+
    void mmhv(const X &x, Y &y) const
    y -= A^H x
    Definition bcrsmatrix.hh:1812
    \n+
    void usmhv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^H x
    Definition bcrsmatrix.hh:1835
    \n+
    void umtv(const X &x, Y &y) const
    y += A^T x
    Definition bcrsmatrix.hh:1722
    \n+
    double compressionBufferSize_
    Definition bcrsmatrix.hh:2047
    \n+
    size_type m
    Definition bcrsmatrix.hh:2031
    \n+
    RealRowIterator< const row_type > const_iterator
    The const iterator over the matrix rows.
    Definition bcrsmatrix.hh:707
    \n+
    static constexpr unsigned int blocklevel
    increment block level counter
    Definition bcrsmatrix.hh:507
    \n+
    void allocate(size_type rows, size_type columns, size_type allocationSize, bool allocateRows, bool allocate_data)
    Allocate memory for the matrix structure.
    Definition bcrsmatrix.hh:2205
    \n+
    BCRSMatrix & axpy(field_type alpha, const BCRSMatrix &b)
    Add the scaled entries of another matrix to this one.
    Definition bcrsmatrix.hh:1592
    \n+
    FieldTraits< ft >::real_type infinity_norm_real() const
    simplified infinity norm (uses Manhattan norm for complex values)
    Definition bcrsmatrix.hh:1905
    \n+
    ~BCRSMatrix()
    destructor
    Definition bcrsmatrix.hh:824
    \n+
    void allocateData()
    Definition bcrsmatrix.hh:2246
    \n+
    void deallocate(bool deallocateRows=true)
    deallocate memory of the matrix.
    Definition bcrsmatrix.hh:2139
    \n+
    Iterator RowIterator
    rename the iterators for easier access
    Definition bcrsmatrix.hh:701
    \n+
    row_type & operator[](size_type i)
    random access to the rows
    Definition bcrsmatrix.hh:549
    \n+
    BCRSMatrix()
    an empty matrix
    Definition bcrsmatrix.hh:749
    \n+
    void endrowsizes()
    indicate that size of all rows is defined
    Definition bcrsmatrix.hh:1149
    \n+
    void incrementrowsize(size_type i, size_type s=1)
    increment size of row i by s (1 by default)
    Definition bcrsmatrix.hh:1138
    \n+
    void mtv(const X &x, Y &y) const
    y = A^T x
    Definition bcrsmatrix.hh:1707
    \n+
    void umhv(const X &x, Y &y) const
    y += A^H x
    Definition bcrsmatrix.hh:1789
    \n+
    size_type nonzeroes() const
    number of blocks that are stored (the number of blocks that possibly are nonzero)
    Definition bcrsmatrix.hh:1984
    \n+
    size_type allocationSize_
    Definition bcrsmatrix.hh:2033
    \n+
    ConstIterator ConstRowIterator
    rename the const row iterator for easier access
    Definition bcrsmatrix.hh:738
    \n+
    BuildStage ready
    Definition bcrsmatrix.hh:2020
    \n+
    BuildMode build_mode
    Definition bcrsmatrix.hh:2019
    \n+
    void setrowsize(size_type i, size_type s)
    Set number of indices in row i to s.
    Definition bcrsmatrix.hh:1117
    \n+
    RealRowIterator< row_type > Iterator
    Definition bcrsmatrix.hh:672
    \n+
    size_type nnz_
    Definition bcrsmatrix.hh:2032
    \n+
    BCRSMatrix & operator*=(const field_type &k)
    vector space multiplication with scalar
    Definition bcrsmatrix.hh:1484
    \n+
    std::allocator_traits< A >::template rebind_alloc< size_type > sizeAllocator_
    Definition bcrsmatrix.hh:2027
    \n+
    RealRowIterator< row_type > iterator
    The iterator over the (mutable matrix rows.
    Definition bcrsmatrix.hh:671
    \n+
    void usmtv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^T x
    Definition bcrsmatrix.hh:1766
    \n+
    ConstIterator beforeBegin() const
    Definition bcrsmatrix.hh:732
    \n+
    RealRowIterator< const row_type > ConstIterator
    Definition bcrsmatrix.hh:708
    \n+
    Iterator beforeBegin()
    Definition bcrsmatrix.hh:695
    \n+
    B * a
    Definition bcrsmatrix.hh:2040
    \n+
    BuildMode
    we support two modes
    Definition bcrsmatrix.hh:510
    \n+
    @ implicit
    Build entries randomly with an educated guess for the number of entries per row.
    Definition bcrsmatrix.hh:539
    \n+
    @ unknown
    Build mode not set!
    Definition bcrsmatrix.hh:543
    \n+
    @ random
    Build entries randomly.
    Definition bcrsmatrix.hh:530
    \n+
    @ row_wise
    Build in a row-wise manner.
    Definition bcrsmatrix.hh:521
    \n+
    BCRSMatrix(size_type _n, size_type _m, size_type _nnz, BuildMode bm)
    matrix with known number of nonzeroes
    Definition bcrsmatrix.hh:756
    \n+
    ::Dune::CompressionStatistics< size_type > CompressionStatistics
    The type for the statistics object returned by compress()
    Definition bcrsmatrix.hh:503
    \n+
    BCRSMatrix & operator-=(const BCRSMatrix &b)
    Subtract the entries of another matrix from this one.
    Definition bcrsmatrix.hh:1567
    \n+
    BCRSMatrix(const BCRSMatrix &Mat)
    copy constructor
    Definition bcrsmatrix.hh:805
    \n+
    Iterator end()
    Get iterator to one beyond last row.
    Definition bcrsmatrix.hh:681
    \n+
    row_type * r
    Definition bcrsmatrix.hh:2037
    \n+
    void setIndices(size_type row, It begin, It end)
    Set all column indices for row from the given iterator range.
    Definition bcrsmatrix.hh:1234
    \n+
    void addindex(size_type row, size_type col)
    add index (row,col) to the matrix
    Definition bcrsmatrix.hh:1191
    \n+
    std::map< std::pair< size_type, size_type >, B > OverflowType
    Definition bcrsmatrix.hh:2049
    \n+
    row_type::Iterator ColIterator
    Iterator for the entries of each row.
    Definition bcrsmatrix.hh:704
    \n+
    FieldTraits< field_type >::real_type frobenius_norm() const
    frobenius norm: sqrt(sum over squared values of entries)
    Definition bcrsmatrix.hh:1877
    \n+
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n+
    BCRSMatrix & operator/=(const field_type &k)
    vector space division by scalar
    Definition bcrsmatrix.hh:1512
    \n+
    OverflowType overflow
    Definition bcrsmatrix.hh:2050
    \n+
    BCRSMatrix & operator+=(const BCRSMatrix &b)
    Add the entries of another matrix to this one.
    Definition bcrsmatrix.hh:1545
    \n+
    BCRSMatrix(size_type _n, size_type _m, size_type _avg, double compressionBufferSize, BuildMode bm)
    construct matrix with a known average number of entries per row
    Definition bcrsmatrix.hh:784
    \n+
    CreateIterator createend()
    get create iterator pointing to one after the last block
    Definition bcrsmatrix.hh:1103
    \n+
    FieldTraits< field_type >::real_type frobenius_norm2() const
    square of frobenius norm, need for block recursion
    Definition bcrsmatrix.hh:1860
    \n+
    Iterator beforeEnd()
    Definition bcrsmatrix.hh:688
    \n+
    row_type::ConstIterator ConstColIterator
    Const iterator to the entries of a row.
    Definition bcrsmatrix.hh:741
    \n+
    void usmv(F &&alpha, const X &x, Y &y) const
    y += alpha A x
    Definition bcrsmatrix.hh:1684
    \n+
    size_type getrowsize(size_type i) const
    get current number of indices in row i
    Definition bcrsmatrix.hh:1128
    \n+
    size_type M() const
    number of columns (counted in blocks)
    Definition bcrsmatrix.hh:1978
    \n+
    size_type n
    Definition bcrsmatrix.hh:2030
    \n+
    Imp::CompressedBlockVectorWindow< B, A > row_type
    implement row_type with compressed vector
    Definition bcrsmatrix.hh:497
    \n+
    CreateIterator createbegin()
    get initial create iterator
    Definition bcrsmatrix.hh:1097
    \n+
    BuildStage
    Definition bcrsmatrix.hh:469
    \n+
    @ rowSizesBuilt
    The row sizes of the matrix are known.
    Definition bcrsmatrix.hh:480
    \n+
    @ built
    The matrix structure is fully built.
    Definition bcrsmatrix.hh:482
    \n+
    @ notbuilt
    Matrix is not built at all, no memory has been allocated, build mode and size can still be set.
    Definition bcrsmatrix.hh:471
    \n+
    @ notAllocated
    Matrix is not built at all, no memory has been allocated, build mode and size can still be set.
    Definition bcrsmatrix.hh:473
    \n+
    @ building
    Matrix is currently being built, some memory has been allocated, build mode and size are fixed.
    Definition bcrsmatrix.hh:475
    \n+
    BuildMode buildMode() const
    The currently selected build mode of the matrix.
    Definition bcrsmatrix.hh:1999
    \n+
    void mmv(const X &x, Y &y) const
    y -= A x
    Definition bcrsmatrix.hh:1661
    \n+
    FieldTraits< ft >::real_type infinity_norm() const
    infinity norm (row sum norm, how to generalize for blocks?)
    Definition bcrsmatrix.hh:1885
    \n+
    void mv(const X &x, Y &y) const
    y = A x
    Definition bcrsmatrix.hh:1612
    \n+
    B block_type
    export the type representing the components
    Definition bcrsmatrix.hh:491
    \n+
    void mmtv(const X &x, Y &y) const
    y -= A^T x
    Definition bcrsmatrix.hh:1745
    \n+
    size_type avg
    Definition bcrsmatrix.hh:2046
    \n+
    void umv(const X &x, Y &y) const
    y += A x
    Definition bcrsmatrix.hh:1638
    \n+
    void implicit_allocate(size_type _n, size_type _m)
    organizes allocation implicit mode calculates correct array size to be allocated and sets the the win...
    Definition bcrsmatrix.hh:2265
    \n+
    void setImplicitBuildModeParameters(size_type _avg, double compressionBufferSize)
    Set parameters needed for creation in implicit build mode.
    Definition bcrsmatrix.hh:889
    \n+
    BCRSMatrix(size_type _n, size_type _m, BuildMode bm)
    matrix with unknown number of nonzeroes
    Definition bcrsmatrix.hh:765
    \n+
    void endindices()
    indicate that all indices are defined, check consistency
    Definition bcrsmatrix.hh:1248
    \n+
    CompressionStatistics compress()
    Finishes the buildstage in implicit mode.
    Definition bcrsmatrix.hh:1360
    \n+
    void setDataPointers()
    Set data pointers for all rows.
    Definition bcrsmatrix.hh:2103
    \n+
    std::allocator_traits< A >::template rebind_alloc< B > allocator_
    Definition bcrsmatrix.hh:2023
    \n+
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n+
    void setBuildMode(BuildMode bm)
    Sets the build mode of the matrix.
    Definition bcrsmatrix.hh:833
    \n+
    void setSize(size_type rows, size_type columns, size_type nnz=0)
    Set the size of the matrix.
    Definition bcrsmatrix.hh:861
    \n+
    std::shared_ptr< size_type > j_
    Definition bcrsmatrix.hh:2043
    \n+
    void setWindowPointers(ConstRowIterator row)
    Definition bcrsmatrix.hh:2052
    \n+
    BCRSMatrix & operator=(const BCRSMatrix &Mat)
    assignment
    Definition bcrsmatrix.hh:911
    \n+
    void setColumnPointers(ConstRowIterator row)
    Copy row sizes from iterator range starting at row and set column index pointers for all rows.
    Definition bcrsmatrix.hh:2077
    \n+
    ConstIterator end() const
    Get const iterator to one beyond last row.
    Definition bcrsmatrix.hh:718
    \n+
    ConstIterator begin() const
    Get const iterator to first row.
    Definition bcrsmatrix.hh:712
    \n+
    A allocator_type
    export the allocator type
    Definition bcrsmatrix.hh:494
    \n+
    ConstIterator beforeEnd() const
    Definition bcrsmatrix.hh:725
    \n+
    Iterator access to matrix rows
    Definition bcrsmatrix.hh:579
    \n+
    RealRowIterator()
    empty constructor, use with care!
    Definition bcrsmatrix.hh:596
    \n+
    bool equals(const RealRowIterator< ValueType > &other) const
    equality
    Definition bcrsmatrix.hh:624
    \n+
    std::remove_const< T >::type ValueType
    The unqualified value type.
    Definition bcrsmatrix.hh:583
    \n+
    RealRowIterator(const RealRowIterator< ValueType > &it)
    Definition bcrsmatrix.hh:600
    \n+
    bool equals(const RealRowIterator< const ValueType > &other) const
    equality
    Definition bcrsmatrix.hh:631
    \n+
    RealRowIterator(row_type *_p, size_type _i)
    constructor
    Definition bcrsmatrix.hh:591
    \n+
    std::ptrdiff_t distanceTo(const RealRowIterator< const ValueType > &other) const
    Definition bcrsmatrix.hh:617
    \n+
    size_type index() const
    return index
    Definition bcrsmatrix.hh:606
    \n+
    std::ptrdiff_t distanceTo(const RealRowIterator< ValueType > &other) const
    Definition bcrsmatrix.hh:611
    \n+
    Iterator class for sequential creation of blocks
    Definition bcrsmatrix.hh:957
    \n+
    bool operator==(const CreateIterator &it) const
    equality
    Definition bcrsmatrix.hh:1052
    \n+
    CreateIterator & operator++()
    prefix increment
    Definition bcrsmatrix.hh:977
    \n+
    size_type index() const
    The number of the row that the iterator currently points to.
    Definition bcrsmatrix.hh:1058
    \n+
    bool operator!=(const CreateIterator &it) const
    inequality
    Definition bcrsmatrix.hh:1046
    \n+
    CreateIterator(BCRSMatrix &_Mat, size_type _i)
    constructor
    Definition bcrsmatrix.hh:960
    \n+
    void insert(size_type j)
    put column index in row
    Definition bcrsmatrix.hh:1064
    \n+
    bool contains(size_type j)
    return true if column index is in row
    Definition bcrsmatrix.hh:1070
    \n+
    size_type size() const
    Get the current row size.
    Definition bcrsmatrix.hh:1079
    \n+
    typename BCRSMatrix< B, A >::field_type field_type
    Definition bcrsmatrix.hh:2299
    \n+
    typename FieldTraits< field_type >::real_type real_type
    Definition bcrsmatrix.hh:2300
    \n+
    Error specific to BCRSMatrix.
    Definition istlexception.hh:24
    \n+
    Thrown when the compression buffer used by the implicit BCRSMatrix construction is exhausted.
    Definition istlexception.hh:37
    \n+
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n+
    A::size_type size_type
    Type for indices and sizes.
    Definition matrix.hh:577
    \n+
    T block_type
    Export the type representing the components.
    Definition matrix.hh:568
    \n+
    Definition matrixutils.hh:538
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,66 +1,2387 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bc_\bo_\bm_\bm_\bo_\bn\n-counter.hh\n+bcrsmatrix.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3#ifndef DUNE_ISTL_COMMON_COUNTER_HH\n-4#define DUNE_ISTL_COMMON_COUNTER_HH\n+3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n+4// vi: set et ts=4 sw=2 sts=2:\n 5\n-6#include \n-7#include \n-8#include \n-9#include \n-10#include \n-11#include \n-12\n-13#include \n-14\n-_\b1_\b5constexpr std::size_t _\bm_\ba_\bx_\bc_\bo_\bu_\bn_\bt = 100;\n-16\n-_\b1_\b7#define DUNE_GET_COUNTER(Tag) \\\n-18 (counterFunc(Dune::PriorityTag{}, Tag{}, Dune::CounterImpl::ADLTag\n-{}))\n-19\n-_\b2_\b0#define DUNE_INC_COUNTER(Tag) \\\n-21 namespace { \\\n-22 namespace CounterImpl { \\\n-23 constexpr std::size_t \\\n-24 counterFunc(Dune::PriorityTag p, Tag, ADLTag) \\\n-25 { \\\n-26 return p.value; \\\n-27 } \\\n-28 } \\\n-29 } \\\n-30 static_assert(true, \"unfudge indentation\")\n-31\n-32namespace _\bD_\bu_\bn_\be {\n-33 namespace {\n-34\n-_\b3_\b5 namespace CounterImpl {\n+6#ifndef DUNE_ISTL_BCRSMATRIX_HH\n+7#define DUNE_ISTL_BCRSMATRIX_HH\n+8\n+9#include \n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15#include \n+16#include \n+17#include \n+18\n+19#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+20#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+21#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n+22#include \n+23#include \n+24#include \n+25#include \n+26#include \n+27#include \n+28\n+29#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+30\n+35namespace _\bD_\bu_\bn_\be {\n 36\n-37 struct ADLTag {};\n-38\n-39 template\n-40 constexpr std::size_t counterFunc(Dune::PriorityTag<0>, Tag, ADLTag)\n-41 {\n-42 return 0;\n-43 }\n-44\n-45 } // end namespace CounterImpl\n-46 } // end empty namespace\n-47} // end namespace Dune\n-48#endif // DUNE_ISTL_COMMON_COUNTER_HH\n-_\bm_\ba_\bx_\bc_\bo_\bu_\bn_\bt\n-constexpr std::size_t maxcount\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn counter.hh:15\n+76 template\n+77 struct MatrixDimension;\n+78\n+80\n+86 template\n+_\b8_\b7 struct _\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs\n+88 {\n+_\b9_\b0 double _\ba_\bv_\bg;\n+_\b9_\b2 size_type _\bm_\ba_\bx_\bi_\bm_\bu_\bm;\n+_\b9_\b4 size_type _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw_\b__\bt_\bo_\bt_\ba_\bl;\n+96\n+_\b9_\b9 double _\bm_\be_\bm_\b__\br_\ba_\bt_\bi_\bo;\n+100 };\n+101\n+103\n+115 template\n+_\b1_\b1_\b6 class _\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br\n+117 {\n+118\n+119 public:\n+120\n+_\b1_\b2_\b2 typedef M_ _\bM_\ba_\bt_\br_\bi_\bx;\n+123\n+_\b1_\b2_\b5 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+126\n+_\b1_\b2_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+129\n+131\n+_\b1_\b3_\b6 class _\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt\n+137 {\n+138\n+139 public:\n+140\n+_\b1_\b4_\b2 _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j) const\n+143 {\n+144 return _m.entry(_i,j);\n+145 }\n+146\n+147#ifndef DOXYGEN\n+148\n+149 _\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt(_\bM_\ba_\bt_\br_\bi_\bx& m, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n+150 : _m(m)\n+151 , _i(i)\n+152 {}\n+153\n+154#endif\n+155\n+156 private:\n+157\n+158 _\bM_\ba_\bt_\br_\bi_\bx& _m;\n+_\b1_\b5_\b9 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i;\n+160\n+161 };\n+162\n+164\n+_\b1_\b7_\b0 _\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br(_\bM_\ba_\bt_\br_\bi_\bx& m)\n+171 : _m(m)\n+172 {\n+173 if (m.buildMode() != Matrix::implicit)\n+174 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only create an ImplicitBuilder for a\n+matrix in implicit build mode\");\n+175 if (m.buildStage() != Matrix::building)\n+176 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only create an ImplicitBuilder for a\n+matrix with set size that has not been compressed() yet\");\n+177 }\n+178\n+180\n+_\b1_\b9_\b4 _\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br(_\bM_\ba_\bt_\br_\bi_\bx& m, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be cols, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+avg_cols_per_row, double overflow_fraction)\n+195 : _m(m)\n+196 {\n+197 if (m.buildStage() != Matrix::notAllocated)\n+198 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only set up a matrix for this\n+ImplicitBuilder if it has no memory allocated yet\");\n+199 m.setBuildMode(Matrix::implicit);\n+200 m.setImplicitBuildModeParameters(avg_cols_per_row,overflow_fraction);\n+201 m.setSize(rows,cols);\n+202 }\n+203\n+_\b2_\b0_\b5 _\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n+206 {\n+207 return _\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt(_m,i);\n+208 }\n+209\n+_\b2_\b1_\b1 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN() const\n+212 {\n+213 return _m.N();\n+214 }\n+215\n+_\b2_\b1_\b7 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bM() const\n+218 {\n+219 return _m.M();\n+220 }\n+221\n+222 private:\n+223\n+224 _\bM_\ba_\bt_\br_\bi_\bx& _m;\n+225\n+226 };\n+227\n+464 template >\n+_\b4_\b6_\b5 class _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+466 {\n+467 friend struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx>;\n+468 public:\n+_\b4_\b6_\b9 enum _\bB_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be {\n+_\b4_\b7_\b1 _\bn_\bo_\bt_\bb_\bu_\bi_\bl_\bt=0,\n+_\b4_\b7_\b3 _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd=0,\n+_\b4_\b7_\b5 _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg=1,\n+_\b4_\b8_\b0 _\br_\bo_\bw_\bS_\bi_\bz_\be_\bs_\bB_\bu_\bi_\bl_\bt=2,\n+482 _\bb_\bu_\bi_\bl_\bt=3\n+_\b4_\b8_\b3 };\n+484\n+485 //===== type definitions and constants\n+486\n+_\b4_\b8_\b8 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n+489\n+_\b4_\b9_\b1 typedef B _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+492\n+_\b4_\b9_\b4 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n+495\n+_\b4_\b9_\b7 typedef Imp::CompressedBlockVectorWindow _\br_\bo_\bw_\b__\bt_\by_\bp_\be;\n+498\n+_\b5_\b0_\b0 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+501\n+_\b5_\b0_\b3 typedef ::Dune::CompressionStatistics _\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs;\n+504\n+506 [[deprecated(\"Use free function blockLevel(). Will be removed after\n+2.8.\")]]\n+_\b5_\b0_\b7 static constexpr unsigned int _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+1;\n+508\n+_\b5_\b1_\b0 enum _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be {\n+_\b5_\b2_\b1 _\br_\bo_\bw_\b__\bw_\bi_\bs_\be,\n+_\b5_\b3_\b0 _\br_\ba_\bn_\bd_\bo_\bm,\n+_\b5_\b3_\b9 _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt,\n+543 _\bu_\bn_\bk_\bn_\bo_\bw_\bn\n+_\b5_\b4_\b4 };\n+545\n+546 //===== random access interface to rows of the matrix\n+547\n+_\b5_\b4_\b9 _\br_\bo_\bw_\b__\bt_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n+550 {\n+551#ifdef DUNE_ISTL_WITH_CHECKING\n+552 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt && _\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+553 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You cannot use operator[] in implicit build\n+mode before calling compress()\");\n+554 if (_\br==0) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row not initialized yet\");\n+555 if (i>=_\bn) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+556#endif\n+557 return _\br[i];\n+558 }\n+559\n+_\b5_\b6_\b1 const _\br_\bo_\bw_\b__\bt_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n+562 {\n+563#ifdef DUNE_ISTL_WITH_CHECKING\n+564 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt && _\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+565 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You cannot use operator[] in implicit build\n+mode before calling compress()\");\n+566 if (_\bb_\bu_\bi_\bl_\bt!=_\br_\be_\ba_\bd_\by) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row not initialized yet\");\n+567 if (i>=_\bn) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+568#endif\n+569 return _\br[i];\n+570 }\n+571\n+572\n+573 //===== iterator interface to rows of the matrix\n+574\n+576 template\n+_\b5_\b7_\b7 class _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+578 : public RandomAccessIteratorFacade, T>\n+579 {\n+580\n+581 public:\n+_\b5_\b8_\b3 typedef typename std::remove_const::type _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be;\n+584\n+585 friend class RandomAccessIteratorFacade<_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br,\n+const _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be>;\n+586 friend class RandomAccessIteratorFacade<_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br<_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be>,\n+_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be>;\n+587 friend class _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+588 friend class _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br<_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be>;\n+589\n+_\b5_\b9_\b1 _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (_\br_\bo_\bw_\b__\bt_\by_\bp_\be* _p, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i)\n+592 : p(_p), i(_i)\n+593 {}\n+594\n+_\b5_\b9_\b6 _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ()\n+597 : p(0), i(0)\n+598 {}\n+599\n+_\b6_\b0_\b0 _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(const _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b>& it)\n+601 : p(it.p), i(it.i)\n+602 {}\n+603\n+604\n+_\b6_\b0_\b6 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx () const\n+607 {\n+608 return i;\n+609 }\n+610\n+_\b6_\b1_\b1 std::ptrdiff_t _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b>& other) const\n+612 {\n+613 assert(other.p==p);\n+614 return (other.i-i);\n+615 }\n+616\n+_\b6_\b1_\b7 std::ptrdiff_t _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b>& other)\n+const\n+618 {\n+619 assert(other.p==p);\n+620 return (other.i-i);\n+621 }\n+622\n+_\b6_\b2_\b4 bool _\be_\bq_\bu_\ba_\bl_\bs (const _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b>& other) const\n+625 {\n+626 assert(other.p==p);\n+627 return i==other.i;\n+628 }\n+629\n+_\b6_\b3_\b1 bool _\be_\bq_\bu_\ba_\bl_\bs (const _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be_\b>& other) const\n+632 {\n+633 assert(other.p==p);\n+634 return i==other.i;\n+635 }\n+636\n+637 private:\n+639 void increment()\n+640 {\n+641 ++i;\n+642 }\n+643\n+645 void decrement()\n+646 {\n+647 --i;\n+648 }\n+649\n+650 void advance(std::ptrdiff_t diff)\n+651 {\n+652 i+=diff;\n+653 }\n+654\n+655 T& elementAt(std::ptrdiff_t diff) const\n+656 {\n+657 return p[i+diff];\n+658 }\n+659\n+661 _\br_\bo_\bw_\b__\bt_\by_\bp_\be& dereference () const\n+662 {\n+663 return p[i];\n+664 }\n+665\n+666 _\br_\bo_\bw_\b__\bt_\by_\bp_\be* p;\n+667 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i;\n+668 };\n+669\n+_\b6_\b7_\b1 typedef _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\br_\bo_\bw_\b__\bt_\by_\bp_\be_\b> _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b6_\b7_\b2 typedef _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\br_\bo_\bw_\b__\bt_\by_\bp_\be_\b> _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+673\n+_\b6_\b7_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn ()\n+676 {\n+677 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,0);\n+678 }\n+679\n+_\b6_\b8_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd ()\n+682 {\n+683 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,_\bn);\n+684 }\n+685\n+_\b6_\b8_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n+689 {\n+690 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,_\bn-1);\n+691 }\n+692\n+_\b6_\b9_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn ()\n+696 {\n+697 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,-1);\n+698 }\n+699\n+_\b7_\b0_\b1 typedef _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+702\n+_\b7_\b0_\b4 typedef typename row_type::Iterator _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+705\n+_\b7_\b0_\b7 typedef _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\br_\bo_\bw_\b__\bt_\by_\bp_\be_\b> _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b7_\b0_\b8 typedef _\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\br_\bo_\bw_\b__\bt_\by_\bp_\be_\b> _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+709\n+710\n+_\b7_\b1_\b2 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn () const\n+713 {\n+714 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,0);\n+715 }\n+716\n+_\b7_\b1_\b8 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd () const\n+719 {\n+720 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,_\bn);\n+721 }\n+722\n+_\b7_\b2_\b5 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd() const\n+726 {\n+727 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,_\bn-1);\n+728 }\n+729\n+_\b7_\b3_\b2 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n+733 {\n+734 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(_\br,-1);\n+735 }\n+736\n+_\b7_\b3_\b8 typedef _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+739\n+_\b7_\b4_\b1 typedef typename row_type::ConstIterator _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+742\n+743 //===== constructors & resizers\n+744\n+745 // we use a negative compressionBufferSize to indicate that the implicit\n+746 // mode parameters have not been set yet\n+747\n+_\b7_\b4_\b9 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx ()\n+750 : _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be(_\bu_\bn_\bk_\bn_\bo_\bw_\bn), _\br_\be_\ba_\bd_\by(_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd), _\bn(0), _\bm(0), _\bn_\bn_\bz_\b_(0),\n+751 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_(0), _\br(0), _\ba(0),\n+752 _\ba_\bv_\bg(0), _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_(-1.0)\n+753 {}\n+754\n+_\b7_\b5_\b6 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _m, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nnz, _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be bm)\n+757 : _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be(bm), _\br_\be_\ba_\bd_\by(_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd), _\bn(0), _\bm(0), _\bn_\bn_\bz_\b_(0),\n+758 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_(0), _\br(0), _\ba(0),\n+759 _\ba_\bv_\bg(0), _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_(-1.0)\n+760 {\n+761 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_n, _m, _nnz,true,false);\n+762 }\n+763\n+_\b7_\b6_\b5 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _m, _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be bm)\n+766 : _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be(bm), _\br_\be_\ba_\bd_\by(_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd), _\bn(0), _\bm(0), _\bn_\bn_\bz_\b_(0),\n+767 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_(0), _\br(0), _\ba(0),\n+768 _\ba_\bv_\bg(0), _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_(-1.0)\n+769 {\n+770 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_n, _m,0,true,false);\n+771 }\n+772\n+774\n+_\b7_\b8_\b4 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _m, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _avg, double\n+compressionBufferSize, _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be bm)\n+785 : _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be(bm), _\br_\be_\ba_\bd_\by(_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd), _\bn(0), _\bm(0), _\bn_\bn_\bz_\b_(0),\n+786 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_(0), _\br(0), _\ba(0),\n+787 _\ba_\bv_\bg(_avg), _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_(compressionBufferSize)\n+788 {\n+789 if (bm != _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt)\n+790 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"Only call this constructor when using the\n+implicit build mode\");\n+791 // Prevent user from setting a negative compression buffer size:\n+792 // 1) It doesn't make sense\n+793 // 2) We use a negative value to indicate that the parameters\n+794 // have not been set yet\n+795 if (_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_ < 0.0)\n+796 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You cannot set a negative overflow fraction\");\n+797 _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\b__\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_n,_m);\n+798 }\n+799\n+_\b8_\b0_\b5 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& Mat)\n+806 : _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be(Mat._\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be), _\br_\be_\ba_\bd_\by(_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd), _\bn(0), _\bm(0), _\bn_\bn_\bz_\b_(0),\n+807 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_(0), _\br(0), _\ba(0),\n+808 _\ba_\bv_\bg(Mat._\ba_\bv_\bg), _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_(Mat._\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_)\n+809 {\n+810 if (!(Mat._\br_\be_\ba_\bd_\by == _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd || Mat._\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bt))\n+811 DUNE_THROW(InvalidStateException,\"BCRSMatrix can only be copy-constructed\n+when source matrix is completely empty (size not set) or fully built)\");\n+812\n+813 // deep copy in global array\n+814 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nnz = Mat._\bn_\bo_\bn_\bz_\be_\br_\bo_\be_\bs();\n+815\n+816 _\bj_\b_ = Mat._\bj_\b_; // enable column index sharing, release array in case of row-\n+wise allocation\n+817 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(Mat._\bn, Mat._\bm, _nnz, true, true);\n+818\n+819 // build window structure\n+820 _\bc_\bo_\bp_\by_\bW_\bi_\bn_\bd_\bo_\bw_\bS_\bt_\br_\bu_\bc_\bt_\bu_\br_\be(Mat);\n+821 }\n+822\n+_\b8_\b2_\b4 _\b~_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx ()\n+825 {\n+826 _\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be();\n+827 }\n+828\n+_\b8_\b3_\b3 void _\bs_\be_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be(_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be bm)\n+834 {\n+835 if (_\br_\be_\ba_\bd_\by == _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n+836 {\n+837 _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be = bm;\n+838 return;\n+839 }\n+840 if (_\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg && (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\bu_\bn_\bk_\bn_\bo_\bw_\bn || _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\br_\ba_\bn_\bd_\bo_\bm ||\n+_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\br_\bo_\bw_\b__\bw_\bi_\bs_\be) && (bm == _\br_\bo_\bw_\b__\bw_\bi_\bs_\be || bm == _\br_\ba_\bn_\bd_\bo_\bm))\n+841 _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be = bm;\n+842 else\n+843 DUNE_THROW(InvalidStateException, \"Matrix structure cannot be changed at\n+this stage anymore (ready == \"<<_\br_\be_\ba_\bd_\by<<\").\");\n+844 }\n+845\n+_\b8_\b6_\b1 void _\bs_\be_\bt_\bS_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nnz=0)\n+862 {\n+863 // deallocate already setup memory\n+864 _\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be();\n+865\n+866 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt)\n+867 {\n+868 if (nnz>0)\n+869 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"number of non-zeroes may not be set in\n+implicit mode, use setImplicitBuildModeParameters() instead\");\n+870\n+871 // implicit allocates differently\n+872 _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\b__\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(rows,columns);\n+873 }\n+874 else\n+875 {\n+876 // allocate matrix memory\n+877 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(rows, columns, nnz, true, false);\n+878 }\n+879 }\n+880\n+_\b8_\b8_\b9 void _\bs_\be_\bt_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _avg, double\n+compressionBufferSize)\n+890 {\n+891 // Prevent user from setting a negative compression buffer size:\n+892 // 1) It doesn't make sense\n+893 // 2) We use a negative value to indicate that the parameters\n+894 // have not been set yet\n+895 if (compressionBufferSize < 0.0)\n+896 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You cannot set a negative compressionBufferSize\n+value\");\n+897\n+898 // make sure the parameters aren't changed after memory has been allocated\n+899 if (_\br_\be_\ba_\bd_\by != _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n+900 DUNE_THROW(InvalidStateException,\"You cannot modify build mode parameters\n+at this stage anymore\");\n+901 _\ba_\bv_\bg = _avg;\n+902 _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_ = compressionBufferSize;\n+903 }\n+904\n+_\b9_\b1_\b1 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& Mat)\n+912 {\n+913 // return immediately when self-assignment\n+914 if (&Mat==this) return *this;\n+915\n+916 if (!((_\br_\be_\ba_\bd_\by == _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd || _\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bt) && (Mat._\br_\be_\ba_\bd_\by ==\n+_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd || Mat._\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bt)))\n+917 DUNE_THROW(InvalidStateException,\"BCRSMatrix can only be copied when both\n+target and source are empty or fully built)\");\n+918\n+919 // make it simple: ALWAYS throw away memory for a and j_\n+920 // and deallocate rows only if n != Mat.n\n+921 _\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_\bn!=Mat._\bn);\n+922\n+923 // reallocate the rows if required\n+924 if (_\bn>0 && _\bn!=Mat._\bn) {\n+925 // free rows\n+926 for(_\br_\bo_\bw_\b__\bt_\by_\bp_\be *riter=_\br+(_\bn-1), *rend=_\br-1; riter!=rend; --riter)\n+927 std::allocator_traits::destroy(_\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_,\n+riter);\n+928 _\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.deallocate(_\br,_\bn);\n+929 }\n+930\n+931 _\bn_\bn_\bz_\b_ = Mat._\bn_\bo_\bn_\bz_\be_\br_\bo_\be_\bs();\n+932\n+933 // allocate a, share j_\n+934 _\bj_\b_ = Mat._\bj_\b_;\n+935 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(Mat._\bn, Mat._\bm, _\bn_\bn_\bz_\b_, _\bn!=Mat._\bn, true);\n+936\n+937 // build window structure\n+938 _\bc_\bo_\bp_\by_\bW_\bi_\bn_\bd_\bo_\bw_\bS_\bt_\br_\bu_\bc_\bt_\bu_\br_\be(Mat);\n+939 return *this;\n+940 }\n+941\n+_\b9_\b4_\b3 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n+944 {\n+945\n+946 if (!(_\br_\be_\ba_\bd_\by == _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd || _\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bt))\n+947 DUNE_THROW(InvalidStateException,\"Scalar assignment only works on fully\n+built BCRSMatrix)\");\n+948\n+949 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++) _\br[i] = k;\n+950 return *this;\n+951 }\n+952\n+953 //===== row-wise creation interface\n+954\n+_\b9_\b5_\b6 class _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+957 {\n+958 public:\n+_\b9_\b6_\b0 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _Mat, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i)\n+961 : Mat(_Mat), i(_i), nnz(0), current_row(nullptr, Mat._\bj_\b_._\bg_\be_\bt(), 0)\n+962 {\n+963 if (Mat._\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be == _\bu_\bn_\bk_\bn_\bo_\bw_\bn && Mat._\br_\be_\ba_\bd_\by == _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n+964 {\n+965 Mat._\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be = _\br_\bo_\bw_\b__\bw_\bi_\bs_\be;\n+966 }\n+967 if (i==0 && Mat._\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n+968 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"creation only allowed for uninitialized\n+matrix\");\n+969 if(Mat._\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\br_\bo_\bw_\b__\bw_\bi_\bs_\be)\n+970 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"creation only allowed if row wise allocation\n+was requested in the constructor\");\n+971 if(i==0 && _Mat._\bN()==0)\n+972 // empty Matrix is always built.\n+973 Mat._\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bt;\n+974 }\n+975\n+_\b9_\b7_\b7 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+978 {\n+979 // this should only be called if matrix is in creation\n+980 if (Mat._\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n+981 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix already built up\");\n+982\n+983 // row i is defined through the pattern\n+984 // get memory for the row and initialize the j_ array\n+985 // this depends on the allocation mode\n+986\n+987 // compute size of the row\n+988 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s = pattern.size();\n+989\n+990 if(s>0) {\n+991 // update number of nonzeroes including this row\n+992 nnz += s;\n+993\n+994 // alloc memory / set window\n+995 if (Mat._\bn_\bn_\bz_\b_ > 0)\n+996 {\n+997 // memory is allocated in one long array\n+998\n+999 // check if that memory is sufficient\n+1000 if (nnz > Mat._\bn_\bn_\bz_\b_)\n+1001 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"allocated nnz too small\");\n+1002\n+1003 // set row i\n+1004 Mat._\br[i].set(s,nullptr,current_row.getindexptr());\n+1005 current_row.setindexptr(current_row.getindexptr()+s);\n+1006 }else{\n+1007 // memory is allocated individually per row\n+1008 // allocate and set row i\n+1009 B* b = Mat._\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.allocate(s);\n+1010 // use placement new to call constructor that allocates\n+1011 // additional memory.\n+1012 new (b) B[s];\n+1013 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* j = Mat._\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.allocate(s);\n+1014 Mat._\br[i].set(s,b,j);\n+1015 }\n+1016 }else\n+1017 // setup empty row\n+1018 Mat._\br[i].set(0,nullptr,nullptr);\n+1019\n+1020 // initialize the j array for row i from pattern\n+1021 std::copy(pattern.cbegin(), pattern.cend(), Mat._\br[i].getindexptr());\n+1022\n+1023 // now go to next row\n+1024 i++;\n+1025 pattern.clear();\n+1026\n+1027 // check if this was last row\n+1028 if (i==Mat._\bn)\n+1029 {\n+1030 Mat._\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bt;\n+1031 if(Mat._\bn_\bn_\bz_\b_ > 0)\n+1032 {\n+1033 // Set nnz to the exact number of nonzero blocks inserted\n+1034 // as some methods rely on it\n+1035 Mat._\bn_\bn_\bz_\b_ = nnz;\n+1036 // allocate data array\n+1037 Mat._\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bD_\ba_\bt_\ba();\n+1038 Mat._\bs_\be_\bt_\bD_\ba_\bt_\ba_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs();\n+1039 }\n+1040 }\n+1041 // done\n+1042 return *this;\n+1043 }\n+1044\n+_\b1_\b0_\b4_\b6 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+1047 {\n+1048 return (i!=it.i) || (&Mat!=&it.Mat);\n+1049 }\n+1050\n+_\b1_\b0_\b5_\b2 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+1053 {\n+1054 return (i==it.i) && (&Mat==&it.Mat);\n+1055 }\n+1056\n+_\b1_\b0_\b5_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx () const\n+1059 {\n+1060 return i;\n+1061 }\n+1062\n+_\b1_\b0_\b6_\b4 void _\bi_\bn_\bs_\be_\br_\bt (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n+1065 {\n+1066 pattern.insert(j);\n+1067 }\n+1068\n+_\b1_\b0_\b7_\b0 bool _\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n+1071 {\n+1072 return pattern.find(j) != pattern.end();\n+1073 }\n+_\b1_\b0_\b7_\b9 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be() const\n+1080 {\n+1081 return pattern.size();\n+1082 }\n+1083\n+1084 private:\n+1085 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& Mat; // the matrix we are defining\n+1086 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i; // current row to be defined\n+1087 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nnz; // count total number of nonzeros\n+1088 typedef std::set > PatternType;\n+1089 PatternType pattern; // used to compile entries in a row\n+1090 _\br_\bo_\bw_\b__\bt_\by_\bp_\be current_row; // row pointing to the current row to setup\n+1091 };\n+1092\n+_\b1_\b0_\b9_\b4 friend class _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1095\n+_\b1_\b0_\b9_\b7 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn ()\n+1098 {\n+1099 return _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,0);\n+1100 }\n+1101\n+_\b1_\b1_\b0_\b3 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd ()\n+1104 {\n+1105 return _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,_\bn);\n+1106 }\n+1107\n+1108\n+1109 //===== random creation interface\n+1110\n+_\b1_\b1_\b1_\b7 void _\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s)\n+1118 {\n+1119 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\br_\ba_\bn_\bd_\bo_\bm)\n+1120 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"requires random build mode\");\n+1121 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n+1122 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix row sizes already built up\");\n+1123\n+1124 _\br[i].setsize(s);\n+1125 }\n+1126\n+_\b1_\b1_\b2_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bg_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n+1129 {\n+1130#ifdef DUNE_ISTL_WITH_CHECKING\n+1131 if (_\br==0) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row not initialized yet\");\n+1132 if (i>=_\bn) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1133#endif\n+1134 return _\br[i].getsize();\n+1135 }\n+1136\n+_\b1_\b1_\b3_\b8 void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s = 1)\n+1139 {\n+1140 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\br_\ba_\bn_\bd_\bo_\bm)\n+1141 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"requires random build mode\");\n+1142 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n+1143 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix row sizes already built up\");\n+1144\n+1145 _\br[i].setsize(_\br[i].getsize()+s);\n+1146 }\n+1147\n+_\b1_\b1_\b4_\b9 void _\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs ()\n+1150 {\n+1151 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\br_\ba_\bn_\bd_\bo_\bm)\n+1152 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"requires random build mode\");\n+1153 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n+1154 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix row sizes already built up\");\n+1155\n+1156 // compute total size, check positivity\n+1157 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be total=0;\n+1158 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++)\n+1159 {\n+1160 total += _\br[i].getsize();\n+1161 }\n+1162\n+1163 if(_\bn_\bn_\bz_\b_ == 0)\n+1164 // allocate/check memory\n+1165 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_\bn,_\bm,total,false,false);\n+1166 else if(_\bn_\bn_\bz_\b_ < total)\n+1167 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"Specified number of nonzeros (\"<<_\bn_\bn_\bz_\b_<<\") not\n+\"\n+1168 <<\"sufficient for calculated nonzeros (\"<= _\bm)\n+1203 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"column index exceeds matrix size\");\n+1204\n+1205 // get row range\n+1206 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* const first = _\br[row].getindexptr();\n+1207 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* const last = first + _\br[row].getsize();\n+1208\n+1209 // find correct insertion position for new column index\n+1210 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* pos = std::lower_bound(first,last,_\bc_\bo_\bl);\n+1211\n+1212 // check if index is already in row\n+1213 if (pos!=last && *pos == _\bc_\bo_\bl) return;\n+1214\n+1215 // find end of already inserted column indices\n+1216 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* _\be_\bn_\bd = std::lower_bound(pos,last,_\bm);\n+1217 if (_\be_\bn_\bd==last)\n+1218 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row is too small\");\n+1219\n+1220 // insert new column index at correct position\n+1221 std::copy_backward(pos,_\be_\bn_\bd,_\be_\bn_\bd+1);\n+1222 *pos = _\bc_\bo_\bl;\n+1223 }\n+1224\n+1226\n+1233 template\n+_\b1_\b2_\b3_\b4 void _\bs_\be_\bt_\bI_\bn_\bd_\bi_\bc_\be_\bs(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row, It _\bb_\be_\bg_\bi_\bn, It _\be_\bn_\bd)\n+1235 {\n+1236 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row_size = _\br[row].size();\n+1237 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* col_begin = _\br[row].getindexptr();\n+1238 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* col_end;\n+1239 // consistency check between allocated row size and number of passed\n+column indices\n+1240 if ((col_end = std::copy(_\bb_\be_\bg_\bi_\bn,_\be_\bn_\bd,_\br[row].getindexptr())) != col_begin +\n+row_size)\n+1241 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"Given size of row \" << row\n+1242 << \" (\" << row_size\n+1243 << \") does not match number of passed entries (\" << (col_end - col_begin)\n+<< \")\");\n+1244 std::sort(col_begin,col_end);\n+1245 }\n+1246\n+_\b1_\b2_\b4_\b8 void _\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs ()\n+1249 {\n+1250 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\br_\ba_\bn_\bd_\bo_\bm)\n+1251 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"requires random build mode\");\n+1252 if (_\br_\be_\ba_\bd_\by==_\bb_\bu_\bi_\bl_\bt)\n+1253 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix already built up\");\n+1254 if (_\br_\be_\ba_\bd_\by==_\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n+1255 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row sizes are not built up yet\");\n+1256 if (_\br_\be_\ba_\bd_\by==_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n+1257 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix size not set and no memory allocated\n+yet\");\n+1258\n+1259 // check if there are undefined indices\n+1260 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1261 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1262 {\n+1263 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1264 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j) {\n+1265 if (j.index() >= _\bm) {\n+1266 dwarn << \"WARNING: size of row \"<< i.index()<<\" is \"<= _\bn)\n+1309 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row index exceeds matrix size\");\n+1310 if (_\bc_\bo_\bl >= _\bm)\n+1311 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"column index exceeds matrix size\");\n+1312#endif\n+1313\n+1314 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* _\bb_\be_\bg_\bi_\bn = _\br[row].getindexptr();\n+1315 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* _\be_\bn_\bd = _\bb_\be_\bg_\bi_\bn + _\br[row].getsize();\n+1316\n+1317 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* pos = std::find(_\bb_\be_\bg_\bi_\bn, _\be_\bn_\bd, _\bc_\bo_\bl);\n+1318\n+1319 //treat the case that there was a match in the array\n+1320 if (pos != _\be_\bn_\bd)\n+1321 if (*pos == _\bc_\bo_\bl)\n+1322 {\n+1323 std::ptrdiff_t offset = pos - _\br[row].getindexptr();\n+1324 B* aptr = _\br[row].getptr() + offset;\n+1325\n+1326 return *aptr;\n+1327 }\n+1328\n+1329 //determine whether overflow has to be taken into account or not\n+1330 if (_\br[row].getsize() == _\ba_\bv_\bg)\n+1331 return _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw[std::make_pair(row,_\bc_\bo_\bl)];\n+1332 else\n+1333 {\n+1334 //modify index array\n+1335 *_\be_\bn_\bd = _\bc_\bo_\bl;\n+1336\n+1337 //do simultaneous operations on data array a\n+1338 std::ptrdiff_t offset = _\be_\bn_\bd - _\br[row].getindexptr();\n+1339 B* apos = _\br[row].getptr() + offset;\n+1340\n+1341 //increase rowsize\n+1342 _\br[row].setsize(_\br[row].getsize()+1);\n+1343\n+1344 //return reference to the newly created entry\n+1345 return *apos;\n+1346 }\n+1347 }\n+1348\n+1350\n+_\b1_\b3_\b6_\b0 _\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs()\n+1361 {\n+1362 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be!=_\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt)\n+1363 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"requires implicit build mode\");\n+1364 if (_\br_\be_\ba_\bd_\by==_\bb_\bu_\bi_\bl_\bt)\n+1365 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix already built up, no more need for\n+compression\");\n+1366 if (_\br_\be_\ba_\bd_\by==_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n+1367 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"matrix size not set and no memory allocated\n+yet\");\n+1368 if (_\br_\be_\ba_\bd_\by!=_\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg)\n+1369 DUNE_THROW(InvalidStateException,\"You may only call compress() at the end\n+of the 'building' stage\");\n+1370\n+1371 //calculate statistics\n+1372 _\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs stats;\n+1373 stats._\bo_\bv_\be_\br_\bf_\bl_\bo_\bw_\b__\bt_\bo_\bt_\ba_\bl = _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw.size();\n+1374 stats._\bm_\ba_\bx_\bi_\bm_\bu_\bm = 0;\n+1375\n+1376 //get insertion iterators pointing to one before start (for later use of\n+++it)\n+1377 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* jiit = _\bj_\b_.get();\n+1378 B* aiit = _\ba;\n+1379\n+1380 //get iterator to the smallest overflow element\n+1381 typename OverflowType::iterator oit = _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw.begin();\n+1382\n+1383 //store a copy of index pointers on which to perform sorting\n+1384 std::vector perm;\n+1385\n+1386 //iterate over all rows and copy elements into their position in the\n+compressed array\n+1387 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++)\n+1388 {\n+1389 //get old pointers into a and j and size without overflow changes\n+1390 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* _\bb_\be_\bg_\bi_\bn = _\br[i].getindexptr();\n+1391 //B* apos = r[i].getptr();\n+1392 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size = _\br[i].getsize();\n+1393\n+1394 perm.resize(size);\n+1395\n+1396 typename std::vector::iterator it = perm.begin();\n+1397 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* iit = _\bb_\be_\bg_\bi_\bn; iit < _\bb_\be_\bg_\bi_\bn + size; ++iit, ++it)\n+1398 *it = iit;\n+1399\n+1400 //sort permutation array\n+1401 std::sort(perm.begin(),perm.end(),_\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be_\b<_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b>());\n+1402\n+1403 //change row window pointer to their new positions\n+1404 _\br[i].setindexptr(jiit);\n+1405 _\br[i].setptr(aiit);\n+1406\n+1407 for (it = perm.begin(); it != perm.end(); ++it)\n+1408 {\n+1409 //check whether there are elements in the overflow area which take\n+precedence\n+1410 while ((oit!=_\bo_\bv_\be_\br_\bf_\bl_\bo_\bw.end()) && (oit->first < std::make_pair(i,**it)))\n+1411 {\n+1412 //check whether there is enough memory to write to\n+1413 if (jiit > _\bb_\be_\bg_\bi_\bn)\n+1414 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd,\n+1415 \"Allocated memory for BCRSMatrix exhausted during compress()!\"\n+1416 \"Please increase either the average number of entries per row or the\n+compressionBufferSize value.\"\n+1417 );\n+1418 //copy an element from the overflow area to the insertion position in a\n+and j\n+1419 *jiit = oit->first.second;\n+1420 ++jiit;\n+1421 *aiit = oit->second;\n+1422 ++aiit;\n+1423 ++oit;\n+1424 _\br[i].setsize(_\br[i].getsize()+1);\n+1425 }\n+1426\n+1427 //check whether there is enough memory to write to\n+1428 if (jiit > _\bb_\be_\bg_\bi_\bn)\n+1429 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd,\n+1430 \"Allocated memory for BCRSMatrix exhausted during compress()!\"\n+1431 \"Please increase either the average number of entries per row or the\n+compressionBufferSize value.\"\n+1432 );\n+1433\n+1434 //copy element from array\n+1435 *jiit = **it;\n+1436 ++jiit;\n+1437 B* apos = *it - _\bj_\b_.get() + _\ba;\n+1438 *aiit = *apos;\n+1439 ++aiit;\n+1440 }\n+1441\n+1442 //copy remaining elements from the overflow area\n+1443 while ((oit!=_\bo_\bv_\be_\br_\bf_\bl_\bo_\bw.end()) && (oit->first.first == i))\n+1444 {\n+1445 //check whether there is enough memory to write to\n+1446 if (jiit > _\bb_\be_\bg_\bi_\bn)\n+1447 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd,\n+1448 \"Allocated memory for BCRSMatrix exhausted during compress()!\"\n+1449 \"Please increase either the average number of entries per row or the\n+compressionBufferSize value.\"\n+1450 );\n+1451\n+1452 //copy and element from the overflow area to the insertion position in a\n+and j\n+1453 *jiit = oit->first.second;\n+1454 ++jiit;\n+1455 *aiit = oit->second;\n+1456 ++aiit;\n+1457 ++oit;\n+1458 _\br[i].setsize(_\br[i].getsize()+1);\n+1459 }\n+1460\n+1461 // update maximum row size\n+1462 if (_\br[i].getsize()>stats._\bm_\ba_\bx_\bi_\bm_\bu_\bm)\n+1463 stats._\bm_\ba_\bx_\bi_\bm_\bu_\bm = _\br[i].getsize();\n+1464 }\n+1465\n+1466 // overflow area may be cleared\n+1467 _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw.clear();\n+1468\n+1469 //determine average number of entries and memory usage\n+1470 std::ptrdiff_t diff = (_\br[_\bn-1].getindexptr() + _\br[_\bn-1].getsize() - _\bj_\b_.get\n+());\n+1471 _\bn_\bn_\bz_\b_ = diff;\n+1472 stats._\ba_\bv_\bg = (double) (_\bn_\bn_\bz_\b_) / (double) _\bn;\n+1473 stats._\bm_\be_\bm_\b__\br_\ba_\bt_\bi_\bo = (double) (_\bn_\bn_\bz_\b_) / (double) _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_;\n+1474\n+1475 //matrix is now built\n+1476 _\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bt;\n+1477\n+1478 return stats;\n+1479 }\n+1480\n+1481 //===== vector space arithmetic\n+1482\n+_\b1_\b4_\b8_\b4 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n+1485 {\n+1486#ifdef DUNE_ISTL_WITH_CHECKING\n+1487 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1488 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1489#endif\n+1490\n+1491 if (_\bn_\bn_\bz_\b_ > 0)\n+1492 {\n+1493 // process 1D array\n+1494 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn_\bn_\bz_\b_; i++)\n+1495 _\ba[i] *= k;\n+1496 }\n+1497 else\n+1498 {\n+1499 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1500 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1501 {\n+1502 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1503 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1504 (*j) *= k;\n+1505 }\n+1506 }\n+1507\n+1508 return *this;\n+1509 }\n+1510\n+_\b1_\b5_\b1_\b2 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n+1513 {\n+1514#ifdef DUNE_ISTL_WITH_CHECKING\n+1515 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1516 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1517#endif\n+1518\n+1519 if (_\bn_\bn_\bz_\b_ > 0)\n+1520 {\n+1521 // process 1D array\n+1522 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn_\bn_\bz_\b_; i++)\n+1523 _\ba[i] /= k;\n+1524 }\n+1525 else\n+1526 {\n+1527 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1528 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1529 {\n+1530 _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1531 for (_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1532 (*j) /= k;\n+1533 }\n+1534 }\n+1535\n+1536 return *this;\n+1537 }\n+1538\n+1539\n+_\b1_\b5_\b4_\b5 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& b)\n+1546 {\n+1547#ifdef DUNE_ISTL_WITH_CHECKING\n+1548 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt || b._\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1549 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1550 if(_\bN()!=b._\bN() || _\bM() != b._\bM())\n+1551 DUNE_THROW(RangeError, \"Matrix sizes do not match!\");\n+1552#endif\n+1553 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1554 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=b._\bb_\be_\bg_\bi_\bn();\n+1555 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i, ++j) {\n+1556 i->operator+=(*j);\n+1557 }\n+1558\n+1559 return *this;\n+1560 }\n+1561\n+_\b1_\b5_\b6_\b7 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& b)\n+1568 {\n+1569#ifdef DUNE_ISTL_WITH_CHECKING\n+1570 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt || b._\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1571 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1572 if(_\bN()!=b._\bN() || _\bM() != b._\bM())\n+1573 DUNE_THROW(RangeError, \"Matrix sizes do not match!\");\n+1574#endif\n+1575 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1576 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=b._\bb_\be_\bg_\bi_\bn();\n+1577 for (_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i, ++j) {\n+1578 i->operator-=(*j);\n+1579 }\n+1580\n+1581 return *this;\n+1582 }\n+1583\n+_\b1_\b5_\b9_\b2 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\ba_\bx_\bp_\by(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& b)\n+1593 {\n+1594#ifdef DUNE_ISTL_WITH_CHECKING\n+1595 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt || b._\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1596 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1597 if(_\bN()!=b._\bN() || _\bM() != b._\bM())\n+1598 DUNE_THROW(RangeError, \"Matrix sizes do not match!\");\n+1599#endif\n+1600 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1601 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=b._\bb_\be_\bg_\bi_\bn();\n+1602 for(_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i, ++j)\n+1603 i->axpy(alpha, *j);\n+1604\n+1605 return *this;\n+1606 }\n+1607\n+1608 //===== linear maps\n+1609\n+1611 template\n+_\b1_\b6_\b1_\b2 void _\bm_\bv (const X& x, Y& y) const\n+1613 {\n+1614#ifdef DUNE_ISTL_WITH_CHECKING\n+1615 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1616 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1617 if (x.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\n+1618 \"Size mismatch: M: \" << _\bN() << \"x\" << _\bM() << \" x: \" << x.N());\n+1619 if (y.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\n+1620 \"Size mismatch: M: \" << _\bN() << \"x\" << _\bM() << \" y: \" << y.N());\n+1621#endif\n+1622 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1623 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1624 {\n+1625 y[i.index()]=0;\n+1626 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1627 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1628 {\n+1629 auto&& xj = Impl::asVector(x[j.index()]);\n+1630 auto&& yi = Impl::asVector(y[i.index()]);\n+1631 Impl::asMatrix(*j).umv(xj, yi);\n+1632 }\n+1633 }\n+1634 }\n+1635\n+1637 template\n+_\b1_\b6_\b3_\b8 void _\bu_\bm_\bv (const X& x, Y& y) const\n+1639 {\n+1640#ifdef DUNE_ISTL_WITH_CHECKING\n+1641 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1642 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1643 if (x.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1644 if (y.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1645#endif\n+1646 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1647 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1648 {\n+1649 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1650 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1651 {\n+1652 auto&& xj = Impl::asVector(x[j.index()]);\n+1653 auto&& yi = Impl::asVector(y[i.index()]);\n+1654 Impl::asMatrix(*j).umv(xj,yi);\n+1655 }\n+1656 }\n+1657 }\n+1658\n+1660 template\n+_\b1_\b6_\b6_\b1 void _\bm_\bm_\bv (const X& x, Y& y) const\n+1662 {\n+1663#ifdef DUNE_ISTL_WITH_CHECKING\n+1664 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1665 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1666 if (x.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1667 if (y.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1668#endif\n+1669 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1670 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1671 {\n+1672 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1673 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1674 {\n+1675 auto&& xj = Impl::asVector(x[j.index()]);\n+1676 auto&& yi = Impl::asVector(y[i.index()]);\n+1677 Impl::asMatrix(*j).mmv(xj,yi);\n+1678 }\n+1679 }\n+1680 }\n+1681\n+1683 template\n+_\b1_\b6_\b8_\b4 void _\bu_\bs_\bm_\bv (F&& alpha, const X& x, Y& y) const\n+1685 {\n+1686#ifdef DUNE_ISTL_WITH_CHECKING\n+1687 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1688 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1689 if (x.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1690 if (y.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1691#endif\n+1692 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1693 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1694 {\n+1695 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1696 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1697 {\n+1698 auto&& xj = Impl::asVector(x[j.index()]);\n+1699 auto&& yi = Impl::asVector(y[i.index()]);\n+1700 Impl::asMatrix(*j).usmv(alpha,xj,yi);\n+1701 }\n+1702 }\n+1703 }\n+1704\n+1706 template\n+_\b1_\b7_\b0_\b7 void _\bm_\bt_\bv (const X& x, Y& y) const\n+1708 {\n+1709#ifdef DUNE_ISTL_WITH_CHECKING\n+1710 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1711 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1712 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1713 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1714#endif\n+1715 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b1_\b7_\b2_\b2 void _\bu_\bm_\bt_\bv (const X& x, Y& y) const\n+1723 {\n+1724#ifdef DUNE_ISTL_WITH_CHECKING\n+1725 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1726 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1727 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1728 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1729#endif\n+1730 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1731 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1732 {\n+1733 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1734 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1735 {\n+1736 auto&& xi = Impl::asVector(x[i.index()]);\n+1737 auto&& yj = Impl::asVector(y[j.index()]);\n+1738 Impl::asMatrix(*j).umtv(xi,yj);\n+1739 }\n+1740 }\n+1741 }\n+1742\n+1744 template\n+_\b1_\b7_\b4_\b5 void _\bm_\bm_\bt_\bv (const X& x, Y& y) const\n+1746 {\n+1747#ifdef DUNE_ISTL_WITH_CHECKING\n+1748 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1749 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1750#endif\n+1751 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1752 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1753 {\n+1754 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1755 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1756 {\n+1757 auto&& xi = Impl::asVector(x[i.index()]);\n+1758 auto&& yj = Impl::asVector(y[j.index()]);\n+1759 Impl::asMatrix(*j).mmtv(xi,yj);\n+1760 }\n+1761 }\n+1762 }\n+1763\n+1765 template\n+_\b1_\b7_\b6_\b6 void _\bu_\bs_\bm_\bt_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const\n+1767 {\n+1768#ifdef DUNE_ISTL_WITH_CHECKING\n+1769 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1770 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1771 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1772 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1773#endif\n+1774 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1775 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1776 {\n+1777 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1778 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1779 {\n+1780 auto&& xi = Impl::asVector(x[i.index()]);\n+1781 auto&& yj = Impl::asVector(y[j.index()]);\n+1782 Impl::asMatrix(*j).usmtv(alpha,xi,yj);\n+1783 }\n+1784 }\n+1785 }\n+1786\n+1788 template\n+_\b1_\b7_\b8_\b9 void _\bu_\bm_\bh_\bv (const X& x, Y& y) const\n+1790 {\n+1791#ifdef DUNE_ISTL_WITH_CHECKING\n+1792 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1793 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1794 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1795 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1796#endif\n+1797 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1798 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1799 {\n+1800 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1801 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1802 {\n+1803 auto&& xi = Impl::asVector(x[i.index()]);\n+1804 auto&& yj = Impl::asVector(y[j.index()]);\n+1805 Impl::asMatrix(*j).umhv(xi,yj);\n+1806 }\n+1807 }\n+1808 }\n+1809\n+1811 template\n+_\b1_\b8_\b1_\b2 void _\bm_\bm_\bh_\bv (const X& x, Y& y) const\n+1813 {\n+1814#ifdef DUNE_ISTL_WITH_CHECKING\n+1815 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1816 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1817 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1818 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1819#endif\n+1820 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1821 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1822 {\n+1823 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1824 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1825 {\n+1826 auto&& xi = Impl::asVector(x[i.index()]);\n+1827 auto&& yj = Impl::asVector(y[j.index()]);\n+1828 Impl::asMatrix(*j).mmhv(xi,yj);\n+1829 }\n+1830 }\n+1831 }\n+1832\n+1834 template\n+_\b1_\b8_\b3_\b5 void _\bu_\bs_\bm_\bh_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const\n+1836 {\n+1837#ifdef DUNE_ISTL_WITH_CHECKING\n+1838 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1839 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1840 if (x.N()!=_\bN()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1841 if (y.N()!=_\bM()) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"index out of range\");\n+1842#endif\n+1843 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endi=_\be_\bn_\bd();\n+1844 for (_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br i=this->_\bb_\be_\bg_\bi_\bn(); i!=endi; ++i)\n+1845 {\n+1846 _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br endj = (*i).end();\n+1847 for (_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br j=(*i).begin(); j!=endj; ++j)\n+1848 {\n+1849 auto&& xi = Impl::asVector(x[i.index()]);\n+1850 auto&& yj = Impl::asVector(y[j.index()]);\n+1851 Impl::asMatrix(*j).usmhv(alpha,xi,yj);\n+1852 }\n+1853 }\n+1854 }\n+1855\n+1856\n+1857 //===== norms\n+1858\n+_\b1_\b8_\b6_\b0 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2 () const\n+1861 {\n+1862#ifdef DUNE_ISTL_WITH_CHECKING\n+1863 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1864 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1865#endif\n+1866\n+1867 typename FieldTraits::real_type sum=0;\n+1868\n+1869 for (auto&& row : (*this))\n+1870 for (auto&& _\be_\bn_\bt_\br_\by : row)\n+1871 sum += Impl::asMatrix(_\be_\bn_\bt_\br_\by).frobenius_norm2();\n+1872\n+1873 return sum;\n+1874 }\n+1875\n+_\b1_\b8_\b7_\b7 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm () const\n+1878 {\n+1879 return sqrt(_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2());\n+1880 }\n+1881\n+1883 template ::value, int>::type = 0>\n+_\b1_\b8_\b8_\b5 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const {\n+1886 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1887 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1888\n+1889 using real_type = typename FieldTraits::real_type;\n+1890 using std::max;\n+1891\n+1892 real_type norm = 0;\n+1893 for (auto const &x : *this) {\n+1894 real_type sum = 0;\n+1895 for (auto const &y : x)\n+1896 sum += Impl::asMatrix(y).infinity_norm();\n+1897 norm = max(sum, norm);\n+1898 }\n+1899 return norm;\n+1900 }\n+1901\n+1903 template ::value, int>::type = 0>\n+_\b1_\b9_\b0_\b5 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n+1906 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1907 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1908\n+1909 using real_type = typename FieldTraits::real_type;\n+1910 using std::max;\n+1911\n+1912 real_type norm = 0;\n+1913 for (auto const &x : *this) {\n+1914 real_type sum = 0;\n+1915 for (auto const &y : x)\n+1916 sum += Impl::asMatrix(y).infinity_norm_real();\n+1917 norm = max(sum, norm);\n+1918 }\n+1919 return norm;\n+1920 }\n+1921\n+1923 template ::value, int>::type = 0>\n+_\b1_\b9_\b2_\b5 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const {\n+1926 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1927 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1928\n+1929 using real_type = typename FieldTraits::real_type;\n+1930 using std::max;\n+1931\n+1932 real_type norm = 0;\n+1933 real_type isNaN = 1;\n+1934 for (auto const &x : *this) {\n+1935 real_type sum = 0;\n+1936 for (auto const &y : x)\n+1937 sum += Impl::asMatrix(y).infinity_norm();\n+1938 norm = max(sum, norm);\n+1939 isNaN += sum;\n+1940 }\n+1941\n+1942 return norm * (isNaN / isNaN);\n+1943 }\n+1944\n+1946 template ::value, int>::type = 0>\n+_\b1_\b9_\b4_\b8 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n+1949 if (_\br_\be_\ba_\bd_\by != _\bb_\bu_\bi_\bl_\bt)\n+1950 DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"You can only call arithmetic operations on\n+fully built BCRSMatrix instances\");\n+1951\n+1952 using real_type = typename FieldTraits::real_type;\n+1953 using std::max;\n+1954\n+1955 real_type norm = 0;\n+1956 real_type isNaN = 1;\n+1957\n+1958 for (auto const &x : *this) {\n+1959 real_type sum = 0;\n+1960 for (auto const &y : x)\n+1961 sum += Impl::asMatrix(y).infinity_norm_real();\n+1962 norm = max(sum, norm);\n+1963 isNaN += sum;\n+1964 }\n+1965\n+1966 return norm * (isNaN / isNaN);\n+1967 }\n+1968\n+1969 //===== sizes\n+1970\n+_\b1_\b9_\b7_\b2 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN () const\n+1973 {\n+1974 return _\bn;\n+1975 }\n+1976\n+_\b1_\b9_\b7_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bM () const\n+1979 {\n+1980 return _\bm;\n+1981 }\n+1982\n+_\b1_\b9_\b8_\b4 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn_\bo_\bn_\bz_\be_\br_\bo_\be_\bs () const\n+1985 {\n+1986 // in case of row-wise allocation\n+1987 if( _\bn_\bn_\bz_\b_ <= 0 )\n+1988 _\bn_\bn_\bz_\b_ = std::accumulate( _\bb_\be_\bg_\bi_\bn(), _\be_\bn_\bd(), _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be( 0 ), [] ( _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s,\n+const _\br_\bo_\bw_\b__\bt_\by_\bp_\be &row ) { return s+row.getsize(); } );\n+1989 return _\bn_\bn_\bz_\b_;\n+1990 }\n+1991\n+_\b1_\b9_\b9_\b3 _\bB_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be _\bb_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be() const\n+1994 {\n+1995 return _\br_\be_\ba_\bd_\by;\n+1996 }\n+1997\n+_\b1_\b9_\b9_\b9 _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be _\bb_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be() const\n+2000 {\n+2001 return _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be;\n+2002 }\n+2003\n+2004 //===== query\n+2005\n+_\b2_\b0_\b0_\b7 bool _\be_\bx_\bi_\bs_\bt_\bs (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j) const\n+2008 {\n+2009#ifdef DUNE_ISTL_WITH_CHECKING\n+2010 if (i<0 || i>=_\bn) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"row index out of range\");\n+2011 if (j<0 || j>=_\bm) DUNE_THROW(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br,\"column index out of range\");\n+2012#endif\n+2013 return (_\br[i].size() && _\br[i].find(j) != _\br[i]._\be_\bn_\bd());\n+2014 }\n+2015\n+2016\n+2017 protected:\n+2018 // state information\n+_\b2_\b0_\b1_\b9 _\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be; // row wise or whole matrix\n+_\b2_\b0_\b2_\b0 _\bB_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be _\br_\be_\ba_\bd_\by; // indicate the stage the matrix building is in\n+2021\n+2022 // The allocator used for memory management\n+_\b2_\b0_\b2_\b3 typename std::allocator_traits::template rebind_alloc _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_;\n+2024\n+_\b2_\b0_\b2_\b5 typename std::allocator_traits::template rebind_alloc\n+_\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_;\n+2026\n+_\b2_\b0_\b2_\b7 typename std::allocator_traits::template rebind_alloc\n+_\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_;\n+2028\n+2029 // size of the matrix\n+_\b2_\b0_\b3_\b0 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn; // number of rows\n+_\b2_\b0_\b3_\b1 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bm; // number of columns\n+_\b2_\b0_\b3_\b2 mutable _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn_\bn_\bz_\b_; // number of nonzeroes contained in the matrix\n+_\b2_\b0_\b3_\b3 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_; //allocated size of a and j arrays, except in\n+implicit mode: nnz_==allocationsSize_\n+2034 // zero means that memory is allocated separately for each row.\n+2035\n+2036 // the rows are dynamically allocated\n+_\b2_\b0_\b3_\b7 _\br_\bo_\bw_\b__\bt_\by_\bp_\be* _\br; // [n] the individual rows having pointers into a,j arrays\n+2038\n+2039 // dynamically allocated memory\n+_\b2_\b0_\b4_\b0 B* _\ba; // [allocationSize] non-zero entries of the matrix in row-wise\n+ordering\n+2041 // If a single array of column indices is used, it can be shared\n+2042 // between different matrices with the same sparsity pattern\n+_\b2_\b0_\b4_\b3 std::shared_ptr _\bj_\b_; // [allocationSize] column indices of\n+entries\n+2044\n+2045 // additional data is needed in implicit buildmode\n+_\b2_\b0_\b4_\b6 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\ba_\bv_\bg;\n+_\b2_\b0_\b4_\b7 double _\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_;\n+2048\n+_\b2_\b0_\b4_\b9 typedef std::map, B> _\bO_\bv_\be_\br_\bf_\bl_\bo_\bw_\bT_\by_\bp_\be;\n+_\b2_\b0_\b5_\b0 _\bO_\bv_\be_\br_\bf_\bl_\bo_\bw_\bT_\by_\bp_\be _\bo_\bv_\be_\br_\bf_\bl_\bo_\bw;\n+2051\n+_\b2_\b0_\b5_\b2 void _\bs_\be_\bt_\bW_\bi_\bn_\bd_\bo_\bw_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs(_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br row)\n+2053 {\n+2054 _\br_\bo_\bw_\b__\bt_\by_\bp_\be current_row(_\ba,_\bj_\b_.get(),0); // Pointers to current row data\n+2055 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++, ++row) {\n+2056 // set row i\n+2057 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s = row->getsize();\n+2058\n+2059 if (s>0) {\n+2060 // setup pointers and size\n+2061 _\br[i].set(s,current_row.getptr(), current_row.getindexptr());\n+2062 // update pointer for next row\n+2063 current_row.setptr(current_row.getptr()+s);\n+2064 current_row.setindexptr(current_row.getindexptr()+s);\n+2065 } else{\n+2066 // empty row\n+2067 _\br[i].set(0,nullptr,nullptr);\n+2068 }\n+2069 }\n+2070 }\n+2071\n+2073\n+_\b2_\b0_\b7_\b7 void _\bs_\be_\bt_\bC_\bo_\bl_\bu_\bm_\bn_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs(_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br row)\n+2078 {\n+2079 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* jptr = _\bj_\b_.get();\n+2080 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; ++i, ++row) {\n+2081 // set row i\n+2082 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s = row->getsize();\n+2083\n+2084 if (s>0) {\n+2085 // setup pointers and size\n+2086 _\br[i].setsize(s);\n+2087 _\br[i].setindexptr(jptr);\n+2088 } else{\n+2089 // empty row\n+2090 _\br[i].set(0,nullptr,nullptr);\n+2091 }\n+2092\n+2093 // advance position in global array\n+2094 jptr += s;\n+2095 }\n+2096 }\n+2097\n+2099\n+_\b2_\b1_\b0_\b3 void _\bs_\be_\bt_\bD_\ba_\bt_\ba_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs()\n+2104 {\n+2105 B* aptr = _\ba;\n+2106 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; ++i) {\n+2107 // set row i\n+2108 if (_\br[i].getsize() > 0) {\n+2109 // setup pointers and size\n+2110 _\br[i].setptr(aptr);\n+2111 } else{\n+2112 // empty row\n+2113 _\br[i].set(0,nullptr,nullptr);\n+2114 }\n+2115\n+2116 // advance position in global array\n+2117 aptr += _\br[i].getsize();\n+2118 }\n+2119 }\n+2120\n+_\b2_\b1_\b2_\b2 void _\bc_\bo_\bp_\by_\bW_\bi_\bn_\bd_\bo_\bw_\bS_\bt_\br_\bu_\bc_\bt_\bu_\br_\be(const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& Mat)\n+2123 {\n+2124 _\bs_\be_\bt_\bW_\bi_\bn_\bd_\bo_\bw_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs(Mat._\bb_\be_\bg_\bi_\bn());\n+2125\n+2126 // copy data\n+2127 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++) _\br[i] = Mat._\br[i];\n+2128\n+2129 // finish off\n+2130 _\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be = _\br_\bo_\bw_\b__\bw_\bi_\bs_\be; // dummy\n+2131 _\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bt;\n+2132 }\n+2133\n+_\b2_\b1_\b3_\b9 void _\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(bool deallocateRows=true)\n+2140 {\n+2141\n+2142 if (_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n+2143 return;\n+2144\n+2145 if (_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_>0)\n+2146 {\n+2147 // a,j_ have been allocated as one long vector\n+2148 _\bj_\b_.reset();\n+2149 if (_\ba)\n+2150 {\n+2151 for(B *aiter=_\ba+(_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_-1), *aend=_\ba-1; aiter!=aend; --aiter)\n+2152 std::allocator_traits::destroy(_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_, aiter);\n+2153 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.deallocate(_\ba,_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_);\n+2154 _\ba = nullptr;\n+2155 }\n+2156 }\n+2157 else if (_\br)\n+2158 {\n+2159 // check if memory for rows have been allocated individually\n+2160 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++)\n+2161 if (_\br[i].getsize()>0)\n+2162 {\n+2163 for (B *_\bc_\bo_\bl=_\br[i].getptr()+(_\br[i].getsize()-1),\n+2164 *colend = _\br[i].getptr()-1; _\bc_\bo_\bl!=colend; --_\bc_\bo_\bl) {\n+2165 std::allocator_traits::destroy(_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_, _\bc_\bo_\bl);\n+2166 }\n+2167 _\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.deallocate(_\br[i].getindexptr(),1);\n+2168 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.deallocate(_\br[i].getptr(),1);\n+2169 // clear out row data in case we don't want to deallocate the rows\n+2170 // otherwise we might run into a double free problem here later\n+2171 _\br[i].set(0,nullptr,nullptr);\n+2172 }\n+2173 }\n+2174\n+2175 // deallocate the rows\n+2176 if (_\bn>0 && deallocateRows && _\br) {\n+2177 for(_\br_\bo_\bw_\b__\bt_\by_\bp_\be *riter=_\br+(_\bn-1), *rend=_\br-1; riter!=rend; --riter)\n+2178 std::allocator_traits::destroy(_\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_,\n+riter);\n+2179 _\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.deallocate(_\br,_\bn);\n+2180 _\br = nullptr;\n+2181 }\n+2182\n+2183 // Mark matrix as not built at all.\n+2184 _\br_\be_\ba_\bd_\by=_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd;\n+2185\n+2186 }\n+2187\n+_\b2_\b2_\b0_\b5 void _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be allocationSize,\n+bool allocateRows, bool allocate_data)\n+2206 {\n+2207 // Store size\n+2208 _\bn = rows;\n+2209 _\bm = columns;\n+2210 _\bn_\bn_\bz_\b_ = allocationSize;\n+2211 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_ = allocationSize;\n+2212\n+2213 // allocate rows\n+2214 if(allocateRows) {\n+2215 if (_\bn>0) {\n+2216 if (_\br)\n+2217 DUNE_THROW(InvalidStateException,\"Rows have already been allocated, cannot\n+allocate a second time\");\n+2218 _\br = _\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.allocate(rows);\n+2219 // initialize row entries\n+2220 for(_\br_\bo_\bw_\b__\bt_\by_\bp_\be* ri=_\br; ri!=_\br+rows; ++ri)\n+2221 std::allocator_traits::construct(_\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_,\n+ri, _\br_\bo_\bw_\b__\bt_\by_\bp_\be());\n+2222 }else{\n+2223 _\br = 0;\n+2224 }\n+2225 }\n+2226\n+2227 // allocate a and j_ array\n+2228 if (allocate_data)\n+2229 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bD_\ba_\bt_\ba();\n+2230 // allocate column indices only if not yet present (enable sharing)\n+2231 if (_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_>0) {\n+2232 // we copy allocator and size to the deleter since _j may outlive this\n+class\n+2233 if (!_\bj_\b_.get())\n+2234 _\bj_\b_.reset(_\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.allocate(_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_),\n+2235 [alloc = _\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_, size = _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_](auto ptr) mutable {\n+2236 alloc.deallocate(ptr, size);\n+2237 });\n+2238 }else{\n+2239 _\bj_\b_.reset();\n+2240 }\n+2241\n+2242 // Mark the matrix as not built.\n+2243 _\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg;\n+2244 }\n+2245\n+_\b2_\b2_\b4_\b6 void _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bD_\ba_\bt_\ba()\n+2247 {\n+2248 if (_\ba)\n+2249 DUNE_THROW(InvalidStateException,\"Cannot allocate data array (already\n+allocated)\");\n+2250 if (_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_>0) {\n+2251 _\ba = _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_.allocate(_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_);\n+2252 // use placement new to call constructor that allocates\n+2253 // additional memory.\n+2254 new (_\ba) B[_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_];\n+2255 } else {\n+2256 _\ba = nullptr;\n+2257 }\n+2258 }\n+2259\n+_\b2_\b2_\b6_\b5 void _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\b__\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _m)\n+2266 {\n+2267 if (_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be != _\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt)\n+2268 DUNE_THROW(InvalidStateException,\"implicit_allocate() may only be called\n+in implicit build mode\");\n+2269 if (_\br_\be_\ba_\bd_\by != _\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd)\n+2270 DUNE_THROW(InvalidStateException,\"memory has already been allocated\");\n+2271\n+2272 // check to make sure the user has actually set the parameters\n+2273 if (_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_ < 0)\n+2274 DUNE_THROW(InvalidStateException,\"You have to set the implicit build mode\n+parameters before starting to build the matrix\");\n+2275 //calculate size of overflow region, add buffer for row sort!\n+2276 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be osize = (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be) (_n*_\ba_\bv_\bg)*_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_ + 4*_\ba_\bv_\bg;\n+2277 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_ = _n*_\ba_\bv_\bg + osize;\n+2278\n+2279 _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be(_n, _m, _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_,true,true);\n+2280\n+2281 //set row pointers correctly\n+2282 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be* jptr = _\bj_\b_.get() + osize;\n+2283 B* aptr = _\ba + osize;\n+2284 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bn; i++)\n+2285 {\n+2286 _\br[i].set(0,aptr,jptr);\n+2287 jptr = jptr + _\ba_\bv_\bg;\n+2288 aptr = aptr + _\ba_\bv_\bg;\n+2289 }\n+2290\n+2291 _\br_\be_\ba_\bd_\by = _\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg;\n+2292 }\n+2293 };\n+2294\n+2295\n+2296 template\n+_\b2_\b2_\b9_\b7 struct FieldTraits< _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n+2298 {\n+_\b2_\b2_\b9_\b9 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\b _\bA_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b2_\b3_\b0_\b0 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n+2301 };\n+2302\n+2305} // end namespace\n+2306\n+2307#endif\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n+Helper functions for determining the vector/matrix block level.\n+_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\n+Some handy generic functions for ISTL matrices.\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n+Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:211\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs\n+Statistics about compression achieved in implicit mode.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:88\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs_\b:_\b:_\bo_\bv_\be_\br_\bf_\bl_\bo_\bw_\b__\bt_\bo_\bt_\ba_\bl\n+size_type overflow_total\n+total number of elements written to the overflow area during construction.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:94\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs_\b:_\b:_\bm_\ba_\bx_\bi_\bm_\bu_\bm\n+size_type maximum\n+maximum number of non-zeroes per row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:92\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs_\b:_\b:_\ba_\bv_\bg\n+double avg\n+average number of non-zeroes per row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:90\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs_\b:_\b:_\bm_\be_\bm_\b__\br_\ba_\bt_\bi_\bo\n+double mem_ratio\n+fraction of wasted memory resulting from non-used overflow area.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br\n+A wrapper for uniform access to the BCRSMatrix during and after the build stage\n+in implicit build mod...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:117\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+Matrix::block_type block_type\n+The block_type of the underlying matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:125\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br\n+ImplicitMatrixBuilder(Matrix &m)\n+Creates an ImplicitMatrixBuilder for matrix m.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:170\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+M_ Matrix\n+The underlying matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:122\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br\n+ImplicitMatrixBuilder(Matrix &m, size_type rows, size_type cols, size_type\n+avg_cols_per_row, double overflow_fraction)\n+Sets up matrix m for implicit construction using the given parameters and\n+creates an ImplicitBmatrixu...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:194\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bM\n+size_type M() const\n+The number of columns in the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:217\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+The size_type of the underlying matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:128\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+row_object operator[](size_type i) const\n+Returns a proxy for entries in row i.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:205\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\bN\n+size_type N() const\n+The number of rows in the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:211\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt\n+Proxy row object for entry access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:137\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bu_\bi_\bl_\bd_\be_\br_\b:_\b:_\br_\bo_\bw_\b__\bo_\bb_\bj_\be_\bc_\bt_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+block_type & operator[](size_type j) const\n+Returns entry in column j.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:142\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< B >::field_type field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:488\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_\n+std::allocator_traits< A >::template rebind_alloc< row_type > rowAllocator_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2025\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs\n+bool exists(size_type i, size_type j) const\n+return true if (i,j) is in pattern\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2007\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be\n+BuildStage buildStage() const\n+The current build stage of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1993\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+Iterator begin()\n+Get iterator to first row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:675\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bp_\by_\bW_\bi_\bn_\bd_\bo_\bw_\bS_\bt_\br_\bu_\bc_\bt_\bu_\br_\be\n+void copyWindowStructure(const BCRSMatrix &Mat)\n+Copy the window structure from another matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2122\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bt_\br_\by\n+B & entry(size_type row, size_type col)\n+Returns reference to entry (row,col) of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1296\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bh_\bv\n+void mmhv(const X &x, Y &y) const\n+y -= A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1812\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bh_\bv\n+void usmhv(const field_type &alpha, const X &x, Y &y) const\n+y += alpha A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1835\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bt_\bv\n+void umtv(const X &x, Y &y) const\n+y += A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1722\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bS_\bi_\bz_\be_\b_\n+double compressionBufferSize_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2047\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm\n+size_type m\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2031\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealRowIterator< const row_type > const_iterator\n+The const iterator over the matrix rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:707\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n+static constexpr unsigned int blocklevel\n+increment block level counter\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:507\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n+void allocate(size_type rows, size_type columns, size_type allocationSize, bool\n+allocateRows, bool allocate_data)\n+Allocate memory for the matrix structure.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2205\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bx_\bp_\by\n+BCRSMatrix & axpy(field_type alpha, const BCRSMatrix &b)\n+Add the scaled entries of another matrix to this one.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1592\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n+FieldTraits< ft >::real_type infinity_norm_real() const\n+simplified infinity norm (uses Manhattan norm for complex values)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1905\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\b~_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+~BCRSMatrix()\n+destructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:824\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bD_\ba_\bt_\ba\n+void allocateData()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2246\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n+void deallocate(bool deallocateRows=true)\n+deallocate memory of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2139\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator RowIterator\n+rename the iterators for easier access\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:701\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+row_type & operator[](size_type i)\n+random access to the rows\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:549\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix()\n+an empty matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:749\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs\n+void endrowsizes()\n+indicate that size of all rows is defined\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be\n+void incrementrowsize(size_type i, size_type s=1)\n+increment size of row i by s (1 by default)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1138\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bt_\bv\n+void mtv(const X &x, Y &y) const\n+y = A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1707\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bh_\bv\n+void umhv(const X &x, Y &y) const\n+y += A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1789\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bn_\bo_\bn_\bz_\be_\br_\bo_\be_\bs\n+size_type nonzeroes() const\n+number of blocks that are stored (the number of blocks that possibly are\n+nonzero)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1984\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bi_\bo_\bn_\bS_\bi_\bz_\be_\b_\n+size_type allocationSize_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2033\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator ConstRowIterator\n+rename the const row iterator for easier access\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:738\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\be_\ba_\bd_\by\n+BuildStage ready\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2020\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\b__\bm_\bo_\bd_\be\n+BuildMode build_mode\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2019\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be\n+void setrowsize(size_type i, size_type s)\n+Set number of indices in row i to s.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1117\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealRowIterator< row_type > Iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:672\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bn_\bn_\bz_\b_\n+size_type nnz_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2032\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n+BCRSMatrix & operator*=(const field_type &k)\n+vector space multiplication with scalar\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1484\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_\n+std::allocator_traits< A >::template rebind_alloc< size_type > sizeAllocator_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2027\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealRowIterator< row_type > iterator\n+The iterator over the (mutable matrix rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:671\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bt_\bv\n+void usmtv(const field_type &alpha, const X &x, Y &y) const\n+y += alpha A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1766\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n+ConstIterator beforeBegin() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:732\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealRowIterator< const row_type > ConstIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:708\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n+Iterator beforeBegin()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:695\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba\n+B * a\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2040\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be\n+BuildMode\n+we support two modes\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:510\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt\n+@ implicit\n+Build entries randomly with an educated guess for the number of entries per\n+row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:539\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn\n+@ unknown\n+Build mode not set!\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:543\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\ba_\bn_\bd_\bo_\bm\n+@ random\n+Build entries randomly.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:530\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bw_\bi_\bs_\be\n+@ row_wise\n+Build in a row-wise manner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:521\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix(size_type _n, size_type _m, size_type _nnz, BuildMode bm)\n+matrix with known number of nonzeroes\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:756\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bS_\bt_\ba_\bt_\bi_\bs_\bt_\bi_\bc_\bs\n+::Dune::CompressionStatistics< size_type > CompressionStatistics\n+The type for the statistics object returned by compress()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:503\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n+BCRSMatrix & operator-=(const BCRSMatrix &b)\n+Subtract the entries of another matrix from this one.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1567\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix(const BCRSMatrix &Mat)\n+copy constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:805\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+Iterator end()\n+Get iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:681\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br\n+row_type * r\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2037\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+void setIndices(size_type row, It begin, It end)\n+Set all column indices for row from the given iterator range.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1234\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx\n+void addindex(size_type row, size_type col)\n+add index (row,col) to the matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1191\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bO_\bv_\be_\br_\bf_\bl_\bo_\bw_\bT_\by_\bp_\be\n+std::map< std::pair< size_type, size_type >, B > OverflowType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2049\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::Iterator ColIterator\n+Iterator for the entries of each row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:704\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm\n+FieldTraits< field_type >::real_type frobenius_norm() const\n+frobenius norm: sqrt(sum over squared values of entries)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1877\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+The type for the index access and the size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n+BCRSMatrix & operator/=(const field_type &k)\n+vector space division by scalar\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1512\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bv_\be_\br_\bf_\bl_\bo_\bw\n+OverflowType overflow\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2050\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n+BCRSMatrix & operator+=(const BCRSMatrix &b)\n+Add the entries of another matrix to this one.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1545\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix(size_type _n, size_type _m, size_type _avg, double\n+compressionBufferSize, BuildMode bm)\n+construct matrix with a known average number of entries per row\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:784\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd\n+CreateIterator createend()\n+get create iterator pointing to one after the last block\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1103\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2\n+FieldTraits< field_type >::real_type frobenius_norm2() const\n+square of frobenius norm, need for block recursion\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1860\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+Iterator beforeEnd()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:688\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::ConstIterator ConstColIterator\n+Const iterator to the entries of a row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:741\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bv\n+void usmv(F &&alpha, const X &x, Y &y) const\n+y += alpha A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1684\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bg_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be\n+size_type getrowsize(size_type i) const\n+get current number of indices in row i\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1128\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n+size_type M() const\n+number of columns (counted in blocks)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1978\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bn\n+size_type n\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2030\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n+Imp::CompressedBlockVectorWindow< B, A > row_type\n+implement row_type with compressed vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:497\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn\n+CreateIterator createbegin()\n+get initial create iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1097\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bu_\bi_\bl_\bd_\bS_\bt_\ba_\bg_\be\n+BuildStage\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:469\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\bS_\bi_\bz_\be_\bs_\bB_\bu_\bi_\bl_\bt\n+@ rowSizesBuilt\n+The row sizes of the matrix are known.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:480\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bu_\bi_\bl_\bt\n+@ built\n+The matrix structure is fully built.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:482\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bn_\bo_\bt_\bb_\bu_\bi_\bl_\bt\n+@ notbuilt\n+Matrix is not built at all, no memory has been allocated, build mode and size\n+can still be set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:471\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bn_\bo_\bt_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\be_\bd\n+@ notAllocated\n+Matrix is not built at all, no memory has been allocated, build mode and size\n+can still be set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:473\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bi_\bn_\bg\n+@ building\n+Matrix is currently being built, some memory has been allocated, build mode and\n+size are fixed.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:475\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be\n+BuildMode buildMode() const\n+The currently selected build mode of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1999\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bv\n+void mmv(const X &x, Y &y) const\n+y -= A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1661\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n+FieldTraits< ft >::real_type infinity_norm() const\n+infinity norm (row sum norm, how to generalize for blocks?)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1885\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n+void mv(const X &x, Y &y) const\n+y = A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1612\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+B block_type\n+export the type representing the components\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:491\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bt_\bv\n+void mmtv(const X &x, Y &y) const\n+y -= A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1745\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bv_\bg\n+size_type avg\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2046\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bv\n+void umv(const X &x, Y &y) const\n+y += A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1638\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\b__\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n+void implicit_allocate(size_type _n, size_type _m)\n+organizes allocation implicit mode calculates correct array size to be\n+allocated and sets the the win...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2265\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be_\bP_\ba_\br_\ba_\bm_\be_\bt_\be_\br_\bs\n+void setImplicitBuildModeParameters(size_type _avg, double\n+compressionBufferSize)\n+Set parameters needed for creation in implicit build mode.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:889\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix(size_type _n, size_type _m, BuildMode bm)\n+matrix with unknown number of nonzeroes\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:765\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs\n+void endindices()\n+indicate that all indices are defined, check consistency\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1248\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs\n+CompressionStatistics compress()\n+Finishes the buildstage in implicit mode.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1360\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bD_\ba_\bt_\ba_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs\n+void setDataPointers()\n+Set data pointers for all rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2103\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b_\n+std::allocator_traits< A >::template rebind_alloc< B > allocator_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2023\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+size_type N() const\n+number of rows (counted in blocks)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be\n+void setBuildMode(BuildMode bm)\n+Sets the build mode of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:833\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n+void setSize(size_type rows, size_type columns, size_type nnz=0)\n+Set the size of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:861\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bj_\b_\n+std::shared_ptr< size_type > j_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2043\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bW_\bi_\bn_\bd_\bo_\bw_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs\n+void setWindowPointers(ConstRowIterator row)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2052\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BCRSMatrix & operator=(const BCRSMatrix &Mat)\n+assignment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:911\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bC_\bo_\bl_\bu_\bm_\bn_\bP_\bo_\bi_\bn_\bt_\be_\br_\bs\n+void setColumnPointers(ConstRowIterator row)\n+Copy row sizes from iterator range starting at row and set column index\n+pointers for all rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2077\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+ConstIterator end() const\n+Get const iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:718\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+ConstIterator begin() const\n+Get const iterator to first row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:712\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n+A allocator_type\n+export the allocator type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:494\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+ConstIterator beforeEnd() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:725\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator access to matrix rows\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:579\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealRowIterator()\n+empty constructor, use with care!\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:596\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+bool equals(const RealRowIterator< ValueType > &other) const\n+equality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:624\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bV_\ba_\bl_\bu_\be_\bT_\by_\bp_\be\n+std::remove_const< T >::type ValueType\n+The unqualified value type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:583\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealRowIterator(const RealRowIterator< ValueType > &it)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:600\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n+bool equals(const RealRowIterator< const ValueType > &other) const\n+equality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:631\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+RealRowIterator(row_type *_p, size_type _i)\n+constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:591\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n+std::ptrdiff_t distanceTo(const RealRowIterator< const ValueType > &other)\n+const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:617\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n+size_type index() const\n+return index\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:606\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n+std::ptrdiff_t distanceTo(const RealRowIterator< ValueType > &other) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:611\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator class for sequential creation of blocks\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:957\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const CreateIterator &it) const\n+equality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1052\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+CreateIterator & operator++()\n+prefix increment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:977\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n+size_type index() const\n+The number of the row that the iterator currently points to.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1058\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const CreateIterator &it) const\n+inequality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1046\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+CreateIterator(BCRSMatrix &_Mat, size_type _i)\n+constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:960\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt\n+void insert(size_type j)\n+put column index in row\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1064\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bt_\ba_\bi_\bn_\bs\n+bool contains(size_type j)\n+return true if column index is in row\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1070\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be\n+size_type size() const\n+Get the current row size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1079\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename BCRSMatrix< B, A >::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+typename FieldTraits< field_type >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:2300\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\bE_\br_\br_\bo_\br\n+Error specific to BCRSMatrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:24\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bm_\bp_\bl_\bi_\bc_\bi_\bt_\bM_\bo_\bd_\be_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\bi_\bo_\bn_\bB_\bu_\bf_\bf_\be_\br_\bE_\bx_\bh_\ba_\bu_\bs_\bt_\be_\bd\n+Thrown when the compression buffer used by the implicit BCRSMatrix construction\n+is exhausted.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+Type for indices and sizes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:577\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+T block_type\n+Export the type representing the components.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:568\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:538\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00167.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00167.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: registry.hh File Reference\n+dune-istl: umfpack.hh File Reference\n \n \n \n \n \n \n \n@@ -65,94 +65,81 @@\n \n \n \n \n \n \n \n
    \n \n-
    registry.hh File Reference
    \n+Functions
    \n+ \n \n
    \n-
    #include <cstddef>
    \n-#include <iostream>
    \n-#include <memory>
    \n-#include <string>
    \n-#include <utility>
    \n-#include "counter.hh"
    \n-#include <dune/common/typelist.hh>
    \n-#include <dune/common/hybridutilities.hh>
    \n-#include <dune/common/parameterizedobject.hh>
    \n+\n+

    Classes for using UMFPack with ISTL matrices. \n+More...

    \n+
    #include <complex>
    \n+#include <type_traits>
    \n+#include <umfpack.h>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/fmatrix.hh>
    \n+#include <dune/common/fvector.hh>
    \n+#include <dune/istl/bccsmatrixinitializer.hh>
    \n+#include <dune/istl/bcrsmatrix.hh>
    \n+#include <dune/istl/solvers.hh>
    \n+#include <dune/istl/solvertype.hh>
    \n+#include <dune/istl/solverfactory.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    struct  Dune::UMFPackMethodChooser< SCalar, Integer >
     
    struct  Dune::UMFPackMethodChooser< double, std::true_type >
     
    struct  Dune::UMFPackMethodChooser< double, std::false_type >
     
    struct  Dune::UMFPackMethodChooser< std::complex< double >, std::true_type >
     
    struct  Dune::UMFPackMethodChooser< std::complex< double >, std::false_type >
     
    class  Dune::UMFPack< M >
     The UMFPack direct sparse solver. More...
     
    struct  Dune::IsDirectSolver< UMFPack< BCRSMatrix< FieldMatrix< T, n, m >, A > > >
     
    struct  Dune::StoresColumnCompressed< UMFPack< BCRSMatrix< T, A > > >
     
    struct  Dune::UMFPackCreator
     
    struct  Dune::UMFPackCreator::isValidBlock< F, class >
     
    struct  Dune::UMFPackCreator::isValidBlock< B, std::enable_if_t< std::is_same< typename FieldTraits< B >::real_type, double >::value > >
     
    \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    \n-\n-\n-\n+\n+\n+\n

    \n-Macros

    #define DUNE_REGISTRY_PUT(Tag, id, ...)
     

    \n+Functions

     Dune::DUNE_REGISTER_DIRECT_SOLVER ("umfpack", Dune::UMFPackCreator())
     
    \n-

    Macro Definition Documentation

    \n-\n-

    ◆ DUNE_REGISTRY_PUT

    \n-\n-
    \n-
    \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n- \n-
    #define DUNE_REGISTRY_PUT( Tag,
     id,
     ... 
    )
    \n-
    \n-Value:
    namespace { \\
    \n-
    template<> \\
    \n-
    struct Registry<Tag, DUNE_GET_COUNTER(Tag)> \\
    \n-
    { \\
    \n-
    static auto getCreator() \\
    \n-
    { \\
    \n-
    return __VA_ARGS__; \\
    \n-
    } \\
    \n-
    static std::string name() { return id; } \\
    \n-
    }; \\
    \n-
    } \\
    \n-
    DUNE_INC_COUNTER(Tag)
    \n-
    #define DUNE_GET_COUNTER(Tag)
    Definition counter.hh:17
    \n-
    \n-
    \n-
    \n-
    \n+

    Detailed Description

    \n+

    Classes for using UMFPack with ISTL matrices.

    \n+
    Author
    Dominic Kempf
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,49 +1,60 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bc_\bo_\bm_\bm_\bo_\bn\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bM_\ba_\bc_\br_\bo_\bs\n-registry.hh File Reference\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \"_\bc_\bo_\bu_\bn_\bt_\be_\br_\b._\bh_\bh\"\n-#include \n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+umfpack.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b)\n+Classes for using UMFPack with ISTL matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bS_\bC_\ba_\bl_\ba_\br_\b,_\b _\bI_\bn_\bt_\be_\bg_\be_\br_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b<_\b _\bM_\b _\b>\n+\u00a0 The UMFPack direct sparse solver. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>\n+ _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\b _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bF_\b,_\b _\bc_\bl_\ba_\bs_\bs_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bB_\b,_\b _\bs_\bt_\bd_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\b__\bi_\bf_\b__\bt_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bi_\bs_\b__\bs_\ba_\bm_\be_\b<\n+ _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be_\b,_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b _\b>_\b _\b>\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-M\bMa\bac\bcr\bro\bos\bs\n-#define\u00a0 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bR_\bY_\b__\bP_\bU_\bT(Tag, id, ...)\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"umfpack\", _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br())\n \u00a0\n-*\b**\b**\b**\b**\b* M\bMa\bac\bcr\bro\bo D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0D\bDU\bUN\bNE\bE_\b_R\bRE\bEG\bGI\bIS\bST\bTR\bRY\bY_\b_P\bPU\bUT\bT *\b**\b**\b**\b**\b*\n-#define DUNE_REGISTRY_PUT ( \u00a0 Tag,\n- \u00a0 id,\n- \u00a0 .\b..\b..\b.\u00a0\n- )\n-V\bVa\bal\blu\bue\be:\b:\n-namespace { \\\n-template<> \\\n-struct Registry \\\n-{ \\\n-static auto getCreator() \\\n-{ \\\n-return __VA_ARGS__; \\\n-} \\\n-static std::string name() { return id; } \\\n-}; \\\n-} \\\n-DUNE_INC_COUNTER(Tag)\n-_\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR\n-#define DUNE_GET_COUNTER(Tag)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn counter.hh:17\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Classes for using UMFPack with ISTL matrices.\n+ Author\n+ Dominic Kempf\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00167_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00167_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: registry.hh Source File\n+dune-istl: umfpack.hh Source File\n \n \n \n \n \n \n \n@@ -70,106 +70,903 @@\n \n \n \n \n \n \n \n
    \n-
    registry.hh
    \n+
    umfpack.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3#ifndef DUNE_ISTL_COMMON_REGISTRY_HH
    \n-
    4#define DUNE_ISTL_COMMON_REGISTRY_HH
    \n-
    5
    \n-
    6#include <cstddef>
    \n-
    7#include <iostream>
    \n-
    8#include <memory>
    \n-
    9#include <string>
    \n-
    10#include <utility>
    \n-
    11
    \n-
    12#include "counter.hh"
    \n-
    13
    \n-
    14#include <dune/common/typelist.hh>
    \n-
    15#include <dune/common/hybridutilities.hh>
    \n-
    16#include <dune/common/parameterizedobject.hh>
    \n-
    17
    \n-
    \n-
    18#define DUNE_REGISTRY_PUT(Tag, id, ...) \\
    \n-
    19 namespace { \\
    \n-
    20 template<> \\
    \n-
    21 struct Registry<Tag, DUNE_GET_COUNTER(Tag)> \\
    \n-
    22 { \\
    \n-
    23 static auto getCreator() \\
    \n-
    24 { \\
    \n-
    25 return __VA_ARGS__; \\
    \n-
    26 } \\
    \n-
    27 static std::string name() { return id; } \\
    \n-
    28 }; \\
    \n-
    29 } \\
    \n-
    30 DUNE_INC_COUNTER(Tag)
    \n-
    \n-
    31
    \n-
    32
    \n-
    33namespace Dune {
    \n-
    34 namespace {
    \n-
    35 template<class Tag, std::size_t index>
    \n-
    36 struct Registry;
    \n-
    37 }
    \n-
    38
    \n-
    39 namespace {
    \n-
    40 template<template<class> class Base, class V, class Tag, typename... Args>
    \n-
    41 auto registryGet(Tag , std::string name, Args... args)
    \n-
    42 {
    \n-
    43 constexpr auto count = DUNE_GET_COUNTER(Tag);
    \n-
    44 std::shared_ptr<Base<V> > result;
    \n-
    45 Dune::Hybrid::forEach(std::make_index_sequence<count>{},
    \n-
    46 [&](auto index) {
    \n-
    47 using Reg = Registry<Tag, index>;
    \n-
    48 if(!result && Reg::name() == name) {
    \n-
    49 result = Reg::getCreator()(Dune::MetaType<V>{}, args...);
    \n-
    50 }
    \n-
    51 });
    \n-
    52 return result;
    \n-
    53 }
    \n-
    54
    \n-
    55 /*
    \n-
    56 Register all creators from the registry in the Parameterizedobjectfactory An
    \n-
    57 object of V is passed in the creator ans should be used to determine the
    \n-
    58 template arguments.
    \n-
    59 */
    \n-
    60 template<class V, class Type, class Tag, class... Args>
    \n-
    61 int addRegistryToFactory(Dune::ParameterizedObjectFactory<Type(Args...), std::string>& factory,
    \n-
    62 Tag){
    \n-
    63 constexpr auto count = DUNE_GET_COUNTER(Tag);
    \n-
    64 Dune::Hybrid::forEach(std::make_index_sequence<count>{},
    \n-
    65 [&](auto index) {
    \n-
    66 // we first get the generic lambda
    \n-
    67 // and later specialize it with given parameters.
    \n-
    68 // doing all at once lead to an ICE woth g++-6
    \n-
    69 using Reg = Registry<Tag, index>;
    \n-
    70 auto genericcreator = Reg::getCreator();
    \n-
    71 factory.define(Reg::name(), [genericcreator](Args... args){
    \n-
    72 return genericcreator(V{}, args...);
    \n-
    73 });
    \n-
    74 });
    \n-
    75 return count;
    \n-
    76 }
    \n-
    77 } // end anonymous namespace
    \n-
    78} // end namespace Dune
    \n-
    79
    \n-
    80#endif // DUNE_ISTL_COMMON_REGISTRY_HH
    \n-\n-
    #define DUNE_GET_COUNTER(Tag)
    Definition counter.hh:17
    \n+
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n+
    4// vi: set et ts=4 sw=2 sts=2:
    \n+
    5#ifndef DUNE_ISTL_UMFPACK_HH
    \n+
    6#define DUNE_ISTL_UMFPACK_HH
    \n+
    7
    \n+
    8#if HAVE_SUITESPARSE_UMFPACK || defined DOXYGEN
    \n+
    9
    \n+
    10#include<complex>
    \n+
    11#include<type_traits>
    \n+
    12
    \n+
    13#include<umfpack.h>
    \n+
    14
    \n+
    15#include<dune/common/exceptions.hh>
    \n+
    16#include<dune/common/fmatrix.hh>
    \n+
    17#include<dune/common/fvector.hh>
    \n+\n+\n+\n+\n+\n+
    23
    \n+
    24
    \n+
    25
    \n+
    26namespace Dune {
    \n+
    38 // FORWARD DECLARATIONS
    \n+
    39 template<class M, class T, class TM, class TD, class TA>
    \n+
    40 class SeqOverlappingSchwarz;
    \n+
    41
    \n+
    42 template<class T, bool tag>
    \n+
    43 struct SeqOverlappingSchwarzAssemblerHelper;
    \n+
    44
    \n+
    45 // wrapper class for C-Function Calls in the backend. Choose the right function namespace
    \n+
    46 // depending on the template parameter used.
    \n+
    47template<typename SCalar, typename Integer>
    \n+
    \n+\n+
    49 {
    \n+
    50 static constexpr bool valid = false ;
    \n+
    51 };
    \n+
    \n+
    52
    \n+
    53 template<>
    \n+
    \n+
    54 struct UMFPackMethodChooser<double, std::true_type>
    \n+
    55 {
    \n+
    56 static constexpr bool valid = true ;
    \n+
    57
    \n+
    58 template<typename... A>
    \n+
    \n+
    59 static void defaults(A... args)
    \n+
    60 {
    \n+
    61 umfpack_dl_defaults(args...);
    \n+
    62 }
    \n+
    \n+
    63 template<typename... A>
    \n+
    \n+
    64 static void free_numeric(A... args)
    \n+
    65 {
    \n+
    66 umfpack_dl_free_numeric(args...);
    \n+
    67 }
    \n+
    \n+
    68 template<typename... A>
    \n+
    \n+
    69 static void free_symbolic(A... args)
    \n+
    70 {
    \n+
    71 umfpack_dl_free_symbolic(args...);
    \n+
    72 }
    \n+
    \n+
    73 template<typename... A>
    \n+
    \n+
    74 static int load_numeric(A... args)
    \n+
    75 {
    \n+
    76 return umfpack_dl_load_numeric(args...);
    \n+
    77 }
    \n+
    \n+
    78 template<typename... A>
    \n+
    \n+
    79 static void numeric(A... args)
    \n+
    80 {
    \n+
    81 umfpack_dl_numeric(args...);
    \n+
    82 }
    \n+
    \n+
    83 template<typename... A>
    \n+
    \n+
    84 static void report_info(A... args)
    \n+
    85 {
    \n+
    86 umfpack_dl_report_info(args...);
    \n+
    87 }
    \n+
    \n+
    88 template<typename... A>
    \n+
    \n+
    89 static void report_status(A... args)
    \n+
    90 {
    \n+
    91 umfpack_dl_report_status(args...);
    \n+
    92 }
    \n+
    \n+
    93 template<typename... A>
    \n+
    \n+
    94 static int save_numeric(A... args)
    \n+
    95 {
    \n+
    96 return umfpack_dl_save_numeric(args...);
    \n+
    97 }
    \n+
    \n+
    98 template<typename... A>
    \n+
    \n+
    99 static void solve(A... args)
    \n+
    100 {
    \n+
    101 umfpack_dl_solve(args...);
    \n+
    102 }
    \n+
    \n+
    103 template<typename... A>
    \n+
    \n+
    104 static void symbolic(A... args)
    \n+
    105 {
    \n+
    106 umfpack_dl_symbolic(args...);
    \n+
    107 }
    \n+
    \n+
    108 };
    \n+
    \n+
    109
    \n+
    110 template<>
    \n+
    \n+
    111 struct UMFPackMethodChooser<double, std::false_type>
    \n+
    112 {
    \n+
    113 static constexpr bool valid = true ;
    \n+
    114
    \n+
    115 template<typename... A>
    \n+
    \n+
    116 static void defaults(A... args)
    \n+
    117 {
    \n+
    118 umfpack_di_defaults(args...);
    \n+
    119 }
    \n+
    \n+
    120 template<typename... A>
    \n+
    \n+
    121 static void free_numeric(A... args)
    \n+
    122 {
    \n+
    123 umfpack_di_free_numeric(args...);
    \n+
    124 }
    \n+
    \n+
    125 template<typename... A>
    \n+
    \n+
    126 static void free_symbolic(A... args)
    \n+
    127 {
    \n+
    128 umfpack_di_free_symbolic(args...);
    \n+
    129 }
    \n+
    \n+
    130 template<typename... A>
    \n+
    \n+
    131 static int load_numeric(A... args)
    \n+
    132 {
    \n+
    133 return umfpack_di_load_numeric(args...);
    \n+
    134 }
    \n+
    \n+
    135 template<typename... A>
    \n+
    \n+
    136 static void numeric(A... args)
    \n+
    137 {
    \n+
    138 umfpack_di_numeric(args...);
    \n+
    139 }
    \n+
    \n+
    140 template<typename... A>
    \n+
    \n+
    141 static void report_info(A... args)
    \n+
    142 {
    \n+
    143 umfpack_di_report_info(args...);
    \n+
    144 }
    \n+
    \n+
    145 template<typename... A>
    \n+
    \n+
    146 static void report_status(A... args)
    \n+
    147 {
    \n+
    148 umfpack_di_report_status(args...);
    \n+
    149 }
    \n+
    \n+
    150 template<typename... A>
    \n+
    \n+
    151 static int save_numeric(A... args)
    \n+
    152 {
    \n+
    153 return umfpack_di_save_numeric(args...);
    \n+
    154 }
    \n+
    \n+
    155 template<typename... A>
    \n+
    \n+
    156 static void solve(A... args)
    \n+
    157 {
    \n+
    158 umfpack_di_solve(args...);
    \n+
    159 }
    \n+
    \n+
    160 template<typename... A>
    \n+
    \n+
    161 static void symbolic(A... args)
    \n+
    162 {
    \n+
    163 umfpack_di_symbolic(args...);
    \n+
    164 }
    \n+
    \n+
    165 };
    \n+
    \n+
    166
    \n+
    167 template<>
    \n+
    \n+
    168 struct UMFPackMethodChooser<std::complex<double>, std::true_type>
    \n+
    169 {
    \n+
    170 static constexpr bool valid = true ;
    \n+
    171
    \n+
    172 using umf_int_type = int64_t;
    \n+
    173
    \n+
    174 template<typename... A>
    \n+
    \n+
    175 static void defaults(A... args)
    \n+
    176 {
    \n+
    177 umfpack_zl_defaults(args...);
    \n+
    178 }
    \n+
    \n+
    179 template<typename... A>
    \n+
    \n+
    180 static void free_numeric(A... args)
    \n+
    181 {
    \n+
    182 umfpack_zl_free_numeric(args...);
    \n+
    183 }
    \n+
    \n+
    184 template<typename... A>
    \n+
    \n+
    185 static void free_symbolic(A... args)
    \n+
    186 {
    \n+
    187 umfpack_zl_free_symbolic(args...);
    \n+
    188 }
    \n+
    \n+
    189 template<typename... A>
    \n+
    \n+
    190 static int load_numeric(A... args)
    \n+
    191 {
    \n+
    192 return umfpack_zl_load_numeric(args...);
    \n+
    193 }
    \n+
    \n+
    194 template<typename... A>
    \n+
    \n+
    195 static void numeric(const umf_int_type* cs, const umf_int_type* ri, const double* val, A... args)
    \n+
    196 {
    \n+
    197 umfpack_zl_numeric(cs,ri,val,NULL,args...);
    \n+
    198 }
    \n+
    \n+
    199 template<typename... A>
    \n+
    \n+
    200 static void report_info(A... args)
    \n+
    201 {
    \n+
    202 umfpack_zl_report_info(args...);
    \n+
    203 }
    \n+
    \n+
    204 template<typename... A>
    \n+
    \n+
    205 static void report_status(A... args)
    \n+
    206 {
    \n+
    207 umfpack_zl_report_status(args...);
    \n+
    208 }
    \n+
    \n+
    209 template<typename... A>
    \n+
    \n+
    210 static int save_numeric(A... args)
    \n+
    211 {
    \n+
    212 return umfpack_zl_save_numeric(args...);
    \n+
    213 }
    \n+
    \n+
    214 template<typename... A>
    \n+
    \n+
    215 static void solve(umf_int_type m, const umf_int_type* cs, const umf_int_type* ri, std::complex<double>* val, double* x, const double* b,A... args)
    \n+
    216 {
    \n+
    217 const double* cval = reinterpret_cast<const double*>(val);
    \n+
    218 umfpack_zl_solve(m,cs,ri,cval,NULL,x,NULL,b,NULL,args...);
    \n+
    219 }
    \n+
    \n+
    220 template<typename... A>
    \n+
    \n+
    221 static void symbolic(umf_int_type m, umf_int_type n, const umf_int_type* cs, const umf_int_type* ri, const double* val, A... args)
    \n+
    222 {
    \n+
    223 umfpack_zl_symbolic(m,n,cs,ri,val,NULL,args...);
    \n+
    224 }
    \n+
    \n+
    225 };
    \n+
    \n+
    226
    \n+
    227
    \n+
    228 template<>
    \n+
    \n+
    229 struct UMFPackMethodChooser<std::complex<double>, std::false_type>
    \n+
    230 {
    \n+
    231 static constexpr bool valid = true ;
    \n+
    232
    \n+
    233 using umf_int_type = int32_t;
    \n+
    234
    \n+
    235 template<typename... A>
    \n+
    \n+
    236 static void defaults(A... args)
    \n+
    237 {
    \n+
    238 umfpack_zi_defaults(args...);
    \n+
    239 }
    \n+
    \n+
    240 template<typename... A>
    \n+
    \n+
    241 static void free_numeric(A... args)
    \n+
    242 {
    \n+
    243 umfpack_zi_free_numeric(args...);
    \n+
    244 }
    \n+
    \n+
    245 template<typename... A>
    \n+
    \n+
    246 static void free_symbolic(A... args)
    \n+
    247 {
    \n+
    248 umfpack_zi_free_symbolic(args...);
    \n+
    249 }
    \n+
    \n+
    250 template<typename... A>
    \n+
    \n+
    251 static int load_numeric(A... args)
    \n+
    252 {
    \n+
    253 return umfpack_zi_load_numeric(args...);
    \n+
    254 }
    \n+
    \n+
    255 template<typename... A>
    \n+
    \n+
    256 static void numeric(const umf_int_type* cs, const umf_int_type* ri, const double* val, A... args)
    \n+
    257 {
    \n+
    258 umfpack_zi_numeric(cs,ri,val,NULL,args...);
    \n+
    259 }
    \n+
    \n+
    260 template<typename... A>
    \n+
    \n+
    261 static void report_info(A... args)
    \n+
    262 {
    \n+
    263 umfpack_zi_report_info(args...);
    \n+
    264 }
    \n+
    \n+
    265 template<typename... A>
    \n+
    \n+
    266 static void report_status(A... args)
    \n+
    267 {
    \n+
    268 umfpack_zi_report_status(args...);
    \n+
    269 }
    \n+
    \n+
    270 template<typename... A>
    \n+
    \n+
    271 static int save_numeric(A... args)
    \n+
    272 {
    \n+
    273 return umfpack_zi_save_numeric(args...);
    \n+
    274 }
    \n+
    \n+
    275 template<typename... A>
    \n+
    \n+
    276 static void solve(umf_int_type m, const umf_int_type* cs, const umf_int_type* ri, std::complex<double>* val, double* x, const double* b,A... args)
    \n+
    277 {
    \n+
    278 const double* cval = reinterpret_cast<const double*>(val);
    \n+
    279 umfpack_zi_solve(m,cs,ri,cval,NULL,x,NULL,b,NULL,args...);
    \n+
    280 }
    \n+
    \n+
    281 template<typename... A>
    \n+
    \n+
    282 static void symbolic(umf_int_type m, std::size_t n, const umf_int_type* cs, const umf_int_type* ri, const double* val, A... args)
    \n+
    283 {
    \n+
    284 umfpack_zi_symbolic(m,n,cs,ri,val,NULL,args...);
    \n+
    285 }
    \n+
    \n+
    286 };
    \n+
    \n+
    287
    \n+
    288 namespace Impl
    \n+
    289 {
    \n+
    290 template<class M>
    \n+
    291 struct UMFPackVectorChooser
    \n+
    292 {};
    \n+
    293
    \n+
    294 template<typename T, typename A, int n, int m>
    \n+
    295 struct UMFPackVectorChooser<BCRSMatrix<FieldMatrix<T,n,m>,A > >
    \n+
    296 {
    \n+
    298 using domain_type = BlockVector<
    \n+
    299 FieldVector<T,m>,
    \n+
    300 typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,m> > >;
    \n+
    302 using range_type = BlockVector<
    \n+
    303 FieldVector<T,n>,
    \n+
    304 typename std::allocator_traits<A>::template rebind_alloc<FieldVector<T,n> > >;
    \n+
    305 };
    \n+
    306
    \n+
    307 template<typename T, typename A>
    \n+
    308 struct UMFPackVectorChooser<BCRSMatrix<T,A> >
    \n+
    309 {
    \n+
    311 using domain_type = BlockVector<T, A>;
    \n+
    313 using range_type = BlockVector<T, A>;
    \n+
    314 };
    \n+
    315 }
    \n+
    316
    \n+
    330 template<typename M>
    \n+
    \n+\n+
    332 : public InverseOperator<
    \n+
    333 typename Impl::UMFPackVectorChooser<M>::domain_type,
    \n+
    334 typename Impl::UMFPackVectorChooser<M>::range_type >
    \n+
    335 {
    \n+
    336 using T = typename M::field_type;
    \n+
    337
    \n+
    338 public:
    \n+
    340 using Matrix = M;
    \n+
    341 using matrix_type = M;
    \n+
    342 using umf_int_type = std::conditional_t<(sizeof(typename M::size_type) == 8), int64_t, int32_t>;
    \n+
    344 typedef ISTL::Impl::BCCSMatrix<typename Matrix::field_type, umf_int_type> UMFPackMatrix;
    \n+
    346 typedef ISTL::Impl::BCCSMatrixInitializer<M, umf_int_type> MatrixInitializer;
    \n+
    348 using domain_type = typename Impl::UMFPackVectorChooser<M>::domain_type;
    \n+
    350 using range_type = typename Impl::UMFPackVectorChooser<M>::range_type;
    \n+
    351
    \n+
    \n+\n+
    354 {
    \n+\n+
    356 }
    \n+
    \n+
    357
    \n+
    \n+
    366 UMFPack(const Matrix& matrix, int verbose=0) : matrixIsLoaded_(false)
    \n+
    367 {
    \n+
    368 //check whether T is a supported type
    \n+
    369 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
    \n+
    370 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n+
    371 Caller::defaults(UMF_Control);
    \n+
    372 setVerbosity(verbose);
    \n+
    373 setMatrix(matrix);
    \n+
    374 }
    \n+
    \n+
    375
    \n+
    \n+
    384 UMFPack(const Matrix& matrix, int verbose, bool) : matrixIsLoaded_(false)
    \n+
    385 {
    \n+
    386 //check whether T is a supported type
    \n+
    387 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
    \n+
    388 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n+
    389 Caller::defaults(UMF_Control);
    \n+
    390 setVerbosity(verbose);
    \n+
    391 setMatrix(matrix);
    \n+
    392 }
    \n+
    \n+
    393
    \n+
    \n+
    403 UMFPack(const Matrix& mat_, const ParameterTree& config)
    \n+
    404 : UMFPack(mat_, config.get<int>("verbose", 0))
    \n+
    405 {}
    \n+
    \n+
    406
    \n+
    \n+
    409 UMFPack() : matrixIsLoaded_(false), verbosity_(0)
    \n+
    410 {
    \n+
    411 //check whether T is a supported type
    \n+
    412 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
    \n+
    413 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n+
    414 Caller::defaults(UMF_Control);
    \n+
    415 }
    \n+
    \n+
    416
    \n+
    \n+
    427 UMFPack(const Matrix& mat_, const char* file, int verbose=0)
    \n+
    428 {
    \n+
    429 //check whether T is a supported type
    \n+
    430 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
    \n+
    431 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n+
    432 Caller::defaults(UMF_Control);
    \n+
    433 setVerbosity(verbose);
    \n+
    434 int errcode = Caller::load_numeric(&UMF_Numeric, const_cast<char*>(file));
    \n+
    435 if ((errcode == UMFPACK_ERROR_out_of_memory) || (errcode == UMFPACK_ERROR_file_IO))
    \n+
    436 {
    \n+
    437 matrixIsLoaded_ = false;
    \n+
    438 setMatrix(mat_);
    \n+
    439 saveDecomposition(file);
    \n+
    440 }
    \n+
    441 else
    \n+
    442 {
    \n+
    443 matrixIsLoaded_ = true;
    \n+
    444 std::cout << "UMFPack decomposition successfully loaded from " << file << std::endl;
    \n+
    445 }
    \n+
    446 }
    \n+
    \n+
    447
    \n+
    \n+
    454 UMFPack(const char* file, int verbose=0)
    \n+
    455 {
    \n+
    456 //check whether T is a supported type
    \n+
    457 static_assert((std::is_same<T,double>::value) || (std::is_same<T,std::complex<double> >::value),
    \n+
    458 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n+
    459 Caller::defaults(UMF_Control);
    \n+
    460 int errcode = Caller::load_numeric(&UMF_Numeric, const_cast<char*>(file));
    \n+
    461 if (errcode == UMFPACK_ERROR_out_of_memory)
    \n+
    462 DUNE_THROW(Dune::Exception, "ran out of memory while loading UMFPack decomposition");
    \n+
    463 if (errcode == UMFPACK_ERROR_file_IO)
    \n+
    464 DUNE_THROW(Dune::Exception, "IO error while loading UMFPack decomposition");
    \n+
    465 matrixIsLoaded_ = true;
    \n+
    466 std::cout << "UMFPack decomposition successfully loaded from " << file << std::endl;
    \n+
    467 setVerbosity(verbose);
    \n+
    468 }
    \n+
    \n+
    469
    \n+
    \n+
    470 virtual ~UMFPack()
    \n+
    471 {
    \n+
    472 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)
    \n+
    473 free();
    \n+
    474 }
    \n+
    \n+
    475
    \n+
    \n+\n+
    480 {
    \n+
    481 if (umfpackMatrix_.N() != b.dim())
    \n+
    482 DUNE_THROW(Dune::ISTLError, "Size of right-hand-side vector b does not match the number of matrix rows!");
    \n+
    483 if (umfpackMatrix_.M() != x.dim())
    \n+
    484 DUNE_THROW(Dune::ISTLError, "Size of solution vector x does not match the number of matrix columns!");
    \n+
    485 if (b.size() == 0)
    \n+
    486 return;
    \n+
    487
    \n+
    488 double UMF_Apply_Info[UMFPACK_INFO];
    \n+
    489 Caller::solve(UMFPACK_A,
    \n+
    490 umfpackMatrix_.getColStart(),
    \n+
    491 umfpackMatrix_.getRowIndex(),
    \n+
    492 umfpackMatrix_.getValues(),
    \n+
    493 reinterpret_cast<double*>(&x[0]),
    \n+
    494 reinterpret_cast<double*>(&b[0]),
    \n+
    495 UMF_Numeric,
    \n+
    496 UMF_Control,
    \n+
    497 UMF_Apply_Info);
    \n+
    498
    \n+
    499 //this is a direct solver
    \n+
    500 res.iterations = 1;
    \n+
    501 res.converged = true;
    \n+
    502 res.elapsed = UMF_Apply_Info[UMFPACK_SOLVE_WALLTIME];
    \n+
    503
    \n+
    504 printOnApply(UMF_Apply_Info);
    \n+
    505 }
    \n+
    \n+
    506
    \n+
    \n+
    510 virtual void apply (domain_type& x, range_type& b, [[maybe_unused]] double reduction, InverseOperatorResult& res)
    \n+
    511 {
    \n+
    512 apply(x,b,res);
    \n+
    513 }
    \n+
    \n+
    514
    \n+
    \n+
    520 void apply(T* x, T* b)
    \n+
    521 {
    \n+
    522 double UMF_Apply_Info[UMFPACK_INFO];
    \n+
    523 Caller::solve(UMFPACK_A,
    \n+
    524 umfpackMatrix_.getColStart(),
    \n+
    525 umfpackMatrix_.getRowIndex(),
    \n+
    526 umfpackMatrix_.getValues(),
    \n+
    527 x,
    \n+
    528 b,
    \n+
    529 UMF_Numeric,
    \n+
    530 UMF_Control,
    \n+
    531 UMF_Apply_Info);
    \n+
    532 printOnApply(UMF_Apply_Info);
    \n+
    533 }
    \n+
    \n+
    534
    \n+
    \n+
    546 void setOption(unsigned int option, double value)
    \n+
    547 {
    \n+
    548 if (option >= UMFPACK_CONTROL)
    \n+
    549 DUNE_THROW(RangeError, "Requested non-existing UMFPack option");
    \n+
    550
    \n+
    551 UMF_Control[option] = value;
    \n+
    552 }
    \n+
    \n+
    553
    \n+
    \n+
    557 void saveDecomposition(const char* file)
    \n+
    558 {
    \n+
    559 int errcode = Caller::save_numeric(UMF_Numeric, const_cast<char*>(file));
    \n+
    560 if (errcode != UMFPACK_OK)
    \n+
    561 DUNE_THROW(Dune::Exception,"IO ERROR while trying to save UMFPack decomposition");
    \n+
    562 }
    \n+
    \n+
    563
    \n+
    \n+
    565 void setMatrix(const Matrix& matrix)
    \n+
    566 {
    \n+
    567 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)
    \n+
    568 free();
    \n+
    569 if (matrix.N() == 0 or matrix.M() == 0)
    \n+
    570 return;
    \n+
    571
    \n+
    572 if (umfpackMatrix_.N() + umfpackMatrix_.M() + umfpackMatrix_.nonzeroes() != 0)
    \n+
    573 umfpackMatrix_.free();
    \n+
    574 umfpackMatrix_.setSize(MatrixDimension<Matrix>::rowdim(matrix),
    \n+\n+
    576 ISTL::Impl::BCCSMatrixInitializer<Matrix, umf_int_type> initializer(umfpackMatrix_);
    \n+
    577
    \n+
    578 copyToBCCSMatrix(initializer, matrix);
    \n+
    579
    \n+
    580 decompose();
    \n+
    581 }
    \n+
    \n+
    582
    \n+
    583 template<class S>
    \n+
    \n+
    584 void setSubMatrix(const Matrix& _mat, const S& rowIndexSet)
    \n+
    585 {
    \n+
    586 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)
    \n+
    587 free();
    \n+
    588
    \n+
    589 if (umfpackMatrix_.N() + umfpackMatrix_.M() + umfpackMatrix_.nonzeroes() != 0)
    \n+
    590 umfpackMatrix_.free();
    \n+
    591
    \n+
    592 umfpackMatrix_.setSize(rowIndexSet.size()*MatrixDimension<Matrix>::rowdim(_mat) / _mat.N(),
    \n+
    593 rowIndexSet.size()*MatrixDimension<Matrix>::coldim(_mat) / _mat.M());
    \n+
    594 ISTL::Impl::BCCSMatrixInitializer<Matrix, umf_int_type> initializer(umfpackMatrix_);
    \n+
    595
    \n+
    596 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<Matrix,std::set<std::size_t> >(_mat,rowIndexSet));
    \n+
    597
    \n+
    598 decompose();
    \n+
    599 }
    \n+
    \n+
    600
    \n+
    \n+
    608 void setVerbosity(int v)
    \n+
    609 {
    \n+
    610 verbosity_ = v;
    \n+
    611 // set the verbosity level in UMFPack
    \n+
    612 if (verbosity_ == 0)
    \n+
    613 UMF_Control[UMFPACK_PRL] = 1;
    \n+
    614 if (verbosity_ == 1)
    \n+
    615 UMF_Control[UMFPACK_PRL] = 2;
    \n+
    616 if (verbosity_ == 2)
    \n+
    617 UMF_Control[UMFPACK_PRL] = 4;
    \n+
    618 }
    \n+
    \n+
    619
    \n+
    \n+\n+
    625 {
    \n+
    626 return UMF_Numeric;
    \n+
    627 }
    \n+
    \n+
    628
    \n+
    \n+\n+
    634 {
    \n+
    635 return umfpackMatrix_;
    \n+
    636 }
    \n+
    \n+
    637
    \n+
    \n+
    642 void free()
    \n+
    643 {
    \n+
    644 if (!matrixIsLoaded_)
    \n+
    645 {
    \n+
    646 Caller::free_symbolic(&UMF_Symbolic);
    \n+
    647 umfpackMatrix_.free();
    \n+
    648 }
    \n+
    649 Caller::free_numeric(&UMF_Numeric);
    \n+
    650 matrixIsLoaded_ = false;
    \n+
    651 }
    \n+
    \n+
    652
    \n+
    653 const char* name() { return "UMFPACK"; }
    \n+
    654
    \n+
    655 private:
    \n+
    656 typedef typename Dune::UMFPackMethodChooser<T,std::integral_constant<bool, (sizeof(typename M::size_type) == 8)>> Caller;
    \n+
    657
    \n+
    658 template<class Mat,class X, class TM, class TD, class T1>
    \n+\n+\n+
    661
    \n+
    663 void decompose()
    \n+
    664 {
    \n+
    665 double UMF_Decomposition_Info[UMFPACK_INFO];
    \n+
    666 Caller::symbolic(static_cast<umf_int_type>(umfpackMatrix_.N()),
    \n+
    667 static_cast<umf_int_type>(umfpackMatrix_.N()),
    \n+
    668 umfpackMatrix_.getColStart(),
    \n+
    669 umfpackMatrix_.getRowIndex(),
    \n+
    670 reinterpret_cast<double*>(umfpackMatrix_.getValues()),
    \n+
    671 &UMF_Symbolic,
    \n+
    672 UMF_Control,
    \n+
    673 UMF_Decomposition_Info);
    \n+
    674 Caller::numeric(umfpackMatrix_.getColStart(),
    \n+
    675 umfpackMatrix_.getRowIndex(),
    \n+
    676 reinterpret_cast<double*>(umfpackMatrix_.getValues()),
    \n+
    677 UMF_Symbolic,
    \n+
    678 &UMF_Numeric,
    \n+
    679 UMF_Control,
    \n+
    680 UMF_Decomposition_Info);
    \n+
    681 Caller::report_status(UMF_Control,UMF_Decomposition_Info[UMFPACK_STATUS]);
    \n+
    682 if (verbosity_ == 1)
    \n+
    683 {
    \n+
    684 std::cout << "[UMFPack Decomposition]" << std::endl;
    \n+
    685 std::cout << "Wallclock Time taken: " << UMF_Decomposition_Info[UMFPACK_NUMERIC_WALLTIME] << " (CPU Time: " << UMF_Decomposition_Info[UMFPACK_NUMERIC_TIME] << ")" << std::endl;
    \n+
    686 std::cout << "Flops taken: " << UMF_Decomposition_Info[UMFPACK_FLOPS] << std::endl;
    \n+
    687 std::cout << "Peak Memory Usage: " << UMF_Decomposition_Info[UMFPACK_PEAK_MEMORY]*UMF_Decomposition_Info[UMFPACK_SIZE_OF_UNIT] << " bytes" << std::endl;
    \n+
    688 std::cout << "Condition number estimate: " << 1./UMF_Decomposition_Info[UMFPACK_RCOND] << std::endl;
    \n+
    689 std::cout << "Numbers of non-zeroes in decomposition: L: " << UMF_Decomposition_Info[UMFPACK_LNZ] << " U: " << UMF_Decomposition_Info[UMFPACK_UNZ] << std::endl;
    \n+
    690 }
    \n+
    691 if (verbosity_ == 2)
    \n+
    692 {
    \n+
    693 Caller::report_info(UMF_Control,UMF_Decomposition_Info);
    \n+
    694 }
    \n+
    695 }
    \n+
    696
    \n+
    697 void printOnApply(double* UMF_Info)
    \n+
    698 {
    \n+
    699 Caller::report_status(UMF_Control,UMF_Info[UMFPACK_STATUS]);
    \n+
    700 if (verbosity_ > 0)
    \n+
    701 {
    \n+
    702 std::cout << "[UMFPack Solve]" << std::endl;
    \n+
    703 std::cout << "Wallclock Time: " << UMF_Info[UMFPACK_SOLVE_WALLTIME] << " (CPU Time: " << UMF_Info[UMFPACK_SOLVE_TIME] << ")" << std::endl;
    \n+
    704 std::cout << "Flops Taken: " << UMF_Info[UMFPACK_SOLVE_FLOPS] << std::endl;
    \n+
    705 std::cout << "Iterative Refinement steps taken: " << UMF_Info[UMFPACK_IR_TAKEN] << std::endl;
    \n+
    706 std::cout << "Error Estimate: " << UMF_Info[UMFPACK_OMEGA1] << " resp. " << UMF_Info[UMFPACK_OMEGA2] << std::endl;
    \n+
    707 }
    \n+
    708 }
    \n+
    709
    \n+
    710 UMFPackMatrix umfpackMatrix_;
    \n+
    711 bool matrixIsLoaded_;
    \n+
    712 int verbosity_;
    \n+
    713 void *UMF_Symbolic;
    \n+
    714 void *UMF_Numeric;
    \n+
    715 double UMF_Control[UMFPACK_CONTROL];
    \n+
    716 };
    \n+
    \n+
    717
    \n+
    718 template<typename T, typename A, int n, int m>
    \n+
    \n+\n+
    720 {
    \n+
    721 enum { value=true};
    \n+
    722 };
    \n+
    \n+
    723
    \n+
    724 template<typename T, typename A>
    \n+
    \n+\n+
    726 {
    \n+
    727 enum { value = true };
    \n+
    728 };
    \n+
    \n+
    729
    \n+
    \n+\n+
    731 template<class F,class=void> struct isValidBlock : std::false_type{};
    \n+
    732 template<class B> struct isValidBlock<B, std::enable_if_t<std::is_same<typename FieldTraits<B>::real_type,double>::value>> : std::true_type {};
    \n+
    733
    \n+
    734 template<typename TL, typename M>
    \n+
    735 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
    \n+
    736 typename Dune::TypeListElement<2, TL>::type>>
    \n+
    \n+
    737 operator() (TL /*tl*/, const M& mat, const Dune::ParameterTree& config,
    \n+
    738 std::enable_if_t<
    \n+
    739 isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
    \n+
    740 {
    \n+
    741 int verbose = config.get("verbose", 0);
    \n+
    742 return std::make_shared<Dune::UMFPack<M>>(mat,verbose);
    \n+
    743 }
    \n+
    \n+
    744
    \n+
    745 // second version with SFINAE to validate the template parameters of UMFPack
    \n+
    746 template<typename TL, typename M>
    \n+
    747 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
    \n+
    748 typename Dune::TypeListElement<2, TL>::type>>
    \n+
    \n+
    749 operator() (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /*config*/,
    \n+
    750 std::enable_if_t<
    \n+
    751 !isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
    \n+
    752 {
    \n+
    753 DUNE_THROW(UnsupportedType,
    \n+
    754 "Unsupported Type in UMFPack (only double and std::complex<double> supported)");
    \n+
    755 }
    \n+
    \n+
    756 };
    \n+
    \n+\n+
    758} // end namespace Dune
    \n+
    759
    \n+
    760#endif // HAVE_SUITESPARSE_UMFPACK
    \n+
    761
    \n+
    762#endif //DUNE_ISTL_UMFPACK_HH
    \n+\n+
    #define DUNE_REGISTER_DIRECT_SOLVER(name,...)
    Definition solverregistry.hh:13
    \n+
    Templates characterizing the type of a solver.
    \n+\n+
    Implementation of the BCRSMatrix class.
    \n+
    Implementations of the inverse operator interface.
    \n+
    static void numeric(const umf_int_type *cs, const umf_int_type *ri, const double *val, A... args)
    Definition umfpack.hh:256
    \n+
    void free()
    free allocated space.
    Definition umfpack.hh:642
    \n+
    static void solve(umf_int_type m, const umf_int_type *cs, const umf_int_type *ri, std::complex< double > *val, double *x, const double *b, A... args)
    Definition umfpack.hh:215
    \n+
    virtual void apply(domain_type &x, range_type &b, InverseOperatorResult &res)
    Apply inverse operator,.
    Definition umfpack.hh:479
    \n+
    ISTL::Impl::BCCSMatrixInitializer< M, umf_int_type > MatrixInitializer
    Type of an associated initializer class.
    Definition umfpack.hh:346
    \n+
    static void report_info(A... args)
    Definition umfpack.hh:200
    \n+
    virtual SolverCategory::Category category() const
    Category of the solver (see SolverCategory::Category)
    Definition umfpack.hh:353
    \n+
    M matrix_type
    Definition umfpack.hh:341
    \n+
    void setMatrix(const Matrix &matrix)
    Initialize data from given matrix.
    Definition umfpack.hh:565
    \n+
    static int save_numeric(A... args)
    Definition umfpack.hh:210
    \n+
    static void numeric(A... args)
    Definition umfpack.hh:79
    \n+
    UMFPack(const Matrix &mat_, const ParameterTree &config)
    Construct a solver object from a matrix.
    Definition umfpack.hh:403
    \n+
    static void symbolic(umf_int_type m, umf_int_type n, const umf_int_type *cs, const umf_int_type *ri, const double *val, A... args)
    Definition umfpack.hh:221
    \n+
    std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL, const M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock< typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0) const
    Definition umfpack.hh:737
    \n+
    static void report_status(A... args)
    Definition umfpack.hh:89
    \n+
    UMFPack(const Matrix &mat_, const char *file, int verbose=0)
    Try loading a decomposition from file and do a decomposition if unsuccessful.
    Definition umfpack.hh:427
    \n+
    static int load_numeric(A... args)
    Definition umfpack.hh:131
    \n+
    static void free_numeric(A... args)
    Definition umfpack.hh:64
    \n+
    static void defaults(A... args)
    Definition umfpack.hh:175
    \n+
    typename Impl::UMFPackVectorChooser< M >::range_type range_type
    The type of the range of the solver.
    Definition umfpack.hh:350
    \n+
    static int save_numeric(A... args)
    Definition umfpack.hh:271
    \n+
    static void report_info(A... args)
    Definition umfpack.hh:84
    \n+
    static void solve(A... args)
    Definition umfpack.hh:99
    \n+
    UMFPack()
    default constructor
    Definition umfpack.hh:409
    \n+\n+
    static int load_numeric(A... args)
    Definition umfpack.hh:251
    \n+
    static void symbolic(A... args)
    Definition umfpack.hh:161
    \n+
    static void numeric(A... args)
    Definition umfpack.hh:136
    \n+
    static void report_info(A... args)
    Definition umfpack.hh:141
    \n+
    static void report_status(A... args)
    Definition umfpack.hh:205
    \n+
    static void free_symbolic(A... args)
    Definition umfpack.hh:69
    \n+
    static void free_symbolic(A... args)
    Definition umfpack.hh:185
    \n+
    static void numeric(const umf_int_type *cs, const umf_int_type *ri, const double *val, A... args)
    Definition umfpack.hh:195
    \n+
    void setSubMatrix(const Matrix &_mat, const S &rowIndexSet)
    Definition umfpack.hh:584
    \n+
    static void solve(A... args)
    Definition umfpack.hh:156
    \n+
    static void free_numeric(A... args)
    Definition umfpack.hh:180
    \n+
    void apply(T *x, T *b)
    additional apply method with c-arrays in analogy to superlu
    Definition umfpack.hh:520
    \n+\n+
    static constexpr bool valid
    Definition umfpack.hh:50
    \n+
    void setVerbosity(int v)
    sets the verbosity level for the UMFPack solver
    Definition umfpack.hh:608
    \n+
    UMFPack(const char *file, int verbose=0)
    try loading a decomposition from file
    Definition umfpack.hh:454
    \n+
    static void defaults(A... args)
    Definition umfpack.hh:236
    \n+
    static int save_numeric(A... args)
    Definition umfpack.hh:151
    \n+
    static int load_numeric(A... args)
    Definition umfpack.hh:74
    \n+
    static void symbolic(A... args)
    Definition umfpack.hh:104
    \n+
    virtual ~UMFPack()
    Definition umfpack.hh:470
    \n+
    const char * name()
    Definition umfpack.hh:653
    \n+
    ISTL::Impl::BCCSMatrix< typename Matrix::field_type, umf_int_type > UMFPackMatrix
    The corresponding UMFPack matrix type.
    Definition umfpack.hh:344
    \n+
    static void free_symbolic(A... args)
    Definition umfpack.hh:126
    \n+
    void saveDecomposition(const char *file)
    saves a decomposition to a file
    Definition umfpack.hh:557
    \n+
    UMFPackMatrix & getInternalMatrix()
    Return the column compress matrix from UMFPack.
    Definition umfpack.hh:633
    \n+
    static void free_numeric(A... args)
    Definition umfpack.hh:121
    \n+
    static void free_numeric(A... args)
    Definition umfpack.hh:241
    \n+
    static void solve(umf_int_type m, const umf_int_type *cs, const umf_int_type *ri, std::complex< double > *val, double *x, const double *b, A... args)
    Definition umfpack.hh:276
    \n+
    static void report_status(A... args)
    Definition umfpack.hh:146
    \n+
    typename Impl::UMFPackVectorChooser< M >::domain_type domain_type
    The type of the domain of the solver.
    Definition umfpack.hh:348
    \n+
    UMFPack(const Matrix &matrix, int verbose=0)
    Construct a solver object from a matrix.
    Definition umfpack.hh:366
    \n+
    static int save_numeric(A... args)
    Definition umfpack.hh:94
    \n+
    static void report_info(A... args)
    Definition umfpack.hh:261
    \n+
    virtual void apply(domain_type &x, range_type &b, double reduction, InverseOperatorResult &res)
    apply inverse operator, with given convergence criteria.
    Definition umfpack.hh:510
    \n+
    void setOption(unsigned int option, double value)
    Set UMFPack-specific options.
    Definition umfpack.hh:546
    \n+
    static void defaults(A... args)
    Definition umfpack.hh:59
    \n+
    M Matrix
    The matrix type.
    Definition umfpack.hh:340
    \n+
    static void symbolic(umf_int_type m, std::size_t n, const umf_int_type *cs, const umf_int_type *ri, const double *val, A... args)
    Definition umfpack.hh:282
    \n+
    static void free_symbolic(A... args)
    Definition umfpack.hh:246
    \n+
    static void defaults(A... args)
    Definition umfpack.hh:116
    \n+
    std::conditional_t<(sizeof(typename M::size_type)==8), int64_t, int32_t > umf_int_type
    Definition umfpack.hh:342
    \n+
    static int load_numeric(A... args)
    Definition umfpack.hh:190
    \n+
    UMFPack(const Matrix &matrix, int verbose, bool)
    Constructor for compatibility with SuperLU standard constructor.
    Definition umfpack.hh:384
    \n+
    void * getFactorization()
    Return the matrix factorization.
    Definition umfpack.hh:624
    \n+
    static void report_status(A... args)
    Definition umfpack.hh:266
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n+
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n+
    Definition matrixutils.hh:211
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    Sequential overlapping Schwarz preconditioner.
    Definition overlappingschwarz.hh:755
    \n+
    Definition overlappingschwarz.hh:694
    \n+
    Definition matrixutils.hh:27
    \n+
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n+
    double elapsed
    Elapsed time in seconds.
    Definition solver.hh:82
    \n+
    int iterations
    Number of iterations.
    Definition solver.hh:67
    \n+
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n+
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n+
    Definition solverregistry.hh:77
    \n+
    Definition solvertype.hh:16
    \n+
    @ value
    Whether this is a direct solver.
    Definition solvertype.hh:24
    \n+
    Definition solvertype.hh:30
    \n+
    @ value
    whether the solver internally uses column compressed storage
    Definition solvertype.hh:36
    \n+
    Definition umfpack.hh:49
    \n+
    The UMFPack direct sparse solver.
    Definition umfpack.hh:335
    \n+
    Definition umfpack.hh:730
    \n+
    Definition umfpack.hh:731
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,99 +1,1059 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\bc_\bo_\bm_\bm_\bo_\bn\n-registry.hh\n+umfpack.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3#ifndef DUNE_ISTL_COMMON_REGISTRY_HH\n-4#define DUNE_ISTL_COMMON_REGISTRY_HH\n-5\n-6#include \n-7#include \n-8#include \n-9#include \n-10#include \n-11\n-12#include \"_\bc_\bo_\bu_\bn_\bt_\be_\br_\b._\bh_\bh\"\n-13\n-14#include \n-15#include \n-16#include \n-17\n-_\b1_\b8#define DUNE_REGISTRY_PUT(Tag, id, ...) \\\n-19 namespace { \\\n-20 template<> \\\n-21 struct Registry \\\n-22 { \\\n-23 static auto getCreator() \\\n-24 { \\\n-25 return __VA_ARGS__; \\\n-26 } \\\n-27 static std::string name() { return id; } \\\n-28 }; \\\n-29 } \\\n-30 DUNE_INC_COUNTER(Tag)\n-31\n-32\n-33namespace _\bD_\bu_\bn_\be {\n-34 namespace {\n-35 template\n-36 struct Registry;\n-37 }\n-38\n-39 namespace {\n-40 template class Base, class V, class Tag, typename... Args>\n-41 auto registryGet(Tag , std::string name, Args... args)\n-42 {\n-43 constexpr auto count = _\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR(Tag);\n-44 std::shared_ptr > result;\n-45 Dune::Hybrid::forEach(std::make_index_sequence{},\n-46 [&](auto index) {\n-47 using Reg = Registry;\n-48 if(!result && Reg::name() == name) {\n-49 result = Reg::getCreator()(Dune::MetaType{}, args...);\n-50 }\n-51 });\n-52 return result;\n-53 }\n-54\n-55 /*\n-56 Register all creators from the registry in the Parameterizedobjectfactory An\n-57 object of V is passed in the creator ans should be used to determine the\n-58 template arguments.\n-59 */\n-60 template\n-61 int addRegistryToFactory(Dune::ParameterizedObjectFactory& factory,\n-62 Tag){\n-63 constexpr auto count = _\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR(Tag);\n-64 Dune::Hybrid::forEach(std::make_index_sequence{},\n-65 [&](auto index) {\n-66 // we first get the generic lambda\n-67 // and later specialize it with given parameters.\n-68 // doing all at once lead to an ICE woth g++-6\n-69 using Reg = Registry;\n-70 auto genericcreator = Reg::getCreator();\n-71 factory.define(Reg::name(), [genericcreator](Args... args){\n-72 return genericcreator(V{}, args...);\n-73 });\n-74 });\n-75 return count;\n-76 }\n-77 } // end anonymous namespace\n-78} // end namespace Dune\n-79\n-80#endif // DUNE_ISTL_COMMON_REGISTRY_HH\n-_\bc_\bo_\bu_\bn_\bt_\be_\br_\b._\bh_\bh\n-_\bD_\bU_\bN_\bE_\b__\bG_\bE_\bT_\b__\bC_\bO_\bU_\bN_\bT_\bE_\bR\n-#define DUNE_GET_COUNTER(Tag)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn counter.hh:17\n+3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n+4// vi: set et ts=4 sw=2 sts=2:\n+5#ifndef DUNE_ISTL_UMFPACK_HH\n+6#define DUNE_ISTL_UMFPACK_HH\n+7\n+8#if HAVE_SUITESPARSE_UMFPACK || defined DOXYGEN\n+9\n+10#include\n+11#include\n+12\n+13#include\n+14\n+15#include\n+16#include\n+17#include\n+18#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n+19#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+20#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n+21#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+22#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n+23\n+24\n+25\n+26namespace _\bD_\bu_\bn_\be {\n+38 // FORWARD DECLARATIONS\n+39 template\n+40 class SeqOverlappingSchwarz;\n+41\n+42 template\n+43 struct SeqOverlappingSchwarzAssemblerHelper;\n+44\n+45 // wrapper class for C-Function Calls in the backend. Choose the right\n+function namespace\n+46 // depending on the template parameter used.\n+47template\n+_\b4_\b8 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br\n+49 {\n+_\b5_\b0 static constexpr bool _\bv_\ba_\bl_\bi_\bd = false ;\n+51 };\n+52\n+53 template<>\n+_\b5_\b4 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br\n+55 {\n+_\b5_\b6 static constexpr bool _\bv_\ba_\bl_\bi_\bd = true ;\n+57\n+58 template\n+_\b5_\b9 static void _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs(A... args)\n+60 {\n+61 umfpack_dl_defaults(args...);\n+62 }\n+63 template\n+_\b6_\b4 static void _\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+65 {\n+66 umfpack_dl_free_numeric(args...);\n+67 }\n+68 template\n+_\b6_\b9 static void _\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n+70 {\n+71 umfpack_dl_free_symbolic(args...);\n+72 }\n+73 template\n+_\b7_\b4 static int _\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+75 {\n+76 return umfpack_dl_load_numeric(args...);\n+77 }\n+78 template\n+_\b7_\b9 static void _\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+80 {\n+81 umfpack_dl_numeric(args...);\n+82 }\n+83 template\n+_\b8_\b4 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo(A... args)\n+85 {\n+86 umfpack_dl_report_info(args...);\n+87 }\n+88 template\n+_\b8_\b9 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs(A... args)\n+90 {\n+91 umfpack_dl_report_status(args...);\n+92 }\n+93 template\n+_\b9_\b4 static int _\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+95 {\n+96 return umfpack_dl_save_numeric(args...);\n+97 }\n+98 template\n+_\b9_\b9 static void _\bs_\bo_\bl_\bv_\be(A... args)\n+100 {\n+101 umfpack_dl_solve(args...);\n+102 }\n+103 template\n+_\b1_\b0_\b4 static void _\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n+105 {\n+106 umfpack_dl_symbolic(args...);\n+107 }\n+108 };\n+109\n+110 template<>\n+_\b1_\b1_\b1 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br\n+112 {\n+_\b1_\b1_\b3 static constexpr bool _\bv_\ba_\bl_\bi_\bd = true ;\n+114\n+115 template\n+_\b1_\b1_\b6 static void _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs(A... args)\n+117 {\n+118 umfpack_di_defaults(args...);\n+119 }\n+120 template\n+_\b1_\b2_\b1 static void _\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+122 {\n+123 umfpack_di_free_numeric(args...);\n+124 }\n+125 template\n+_\b1_\b2_\b6 static void _\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n+127 {\n+128 umfpack_di_free_symbolic(args...);\n+129 }\n+130 template\n+_\b1_\b3_\b1 static int _\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+132 {\n+133 return umfpack_di_load_numeric(args...);\n+134 }\n+135 template\n+_\b1_\b3_\b6 static void _\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+137 {\n+138 umfpack_di_numeric(args...);\n+139 }\n+140 template\n+_\b1_\b4_\b1 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo(A... args)\n+142 {\n+143 umfpack_di_report_info(args...);\n+144 }\n+145 template\n+_\b1_\b4_\b6 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs(A... args)\n+147 {\n+148 umfpack_di_report_status(args...);\n+149 }\n+150 template\n+_\b1_\b5_\b1 static int _\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+152 {\n+153 return umfpack_di_save_numeric(args...);\n+154 }\n+155 template\n+_\b1_\b5_\b6 static void _\bs_\bo_\bl_\bv_\be(A... args)\n+157 {\n+158 umfpack_di_solve(args...);\n+159 }\n+160 template\n+_\b1_\b6_\b1 static void _\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n+162 {\n+163 umfpack_di_symbolic(args...);\n+164 }\n+165 };\n+166\n+167 template<>\n+_\b1_\b6_\b8 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br<_\bs_\bt_\bd::complex, std::true_type>\n+169 {\n+_\b1_\b7_\b0 static constexpr bool _\bv_\ba_\bl_\bi_\bd = true ;\n+171\n+_\b1_\b7_\b2 using _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be = int64_t;\n+173\n+174 template\n+_\b1_\b7_\b5 static void _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs(A... args)\n+176 {\n+177 umfpack_zl_defaults(args...);\n+178 }\n+179 template\n+_\b1_\b8_\b0 static void _\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+181 {\n+182 umfpack_zl_free_numeric(args...);\n+183 }\n+184 template\n+_\b1_\b8_\b5 static void _\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n+186 {\n+187 umfpack_zl_free_symbolic(args...);\n+188 }\n+189 template\n+_\b1_\b9_\b0 static int _\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+191 {\n+192 return umfpack_zl_load_numeric(args...);\n+193 }\n+194 template\n+_\b1_\b9_\b5 static void _\bn_\bu_\bm_\be_\br_\bi_\bc(const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* cs, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, const\n+double* val, A... args)\n+196 {\n+197 umfpack_zl_numeric(cs,ri,val,NULL,args...);\n+198 }\n+199 template\n+_\b2_\b0_\b0 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo(A... args)\n+201 {\n+202 umfpack_zl_report_info(args...);\n+203 }\n+204 template\n+_\b2_\b0_\b5 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs(A... args)\n+206 {\n+207 umfpack_zl_report_status(args...);\n+208 }\n+209 template\n+_\b2_\b1_\b0 static int _\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+211 {\n+212 return umfpack_zl_save_numeric(args...);\n+213 }\n+214 template\n+_\b2_\b1_\b5 static void _\bs_\bo_\bl_\bv_\be(_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be m, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* cs, const\n+_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, std::complex* val, double* x, const double* b,A...\n+args)\n+216 {\n+217 const double* cval = reinterpret_cast(val);\n+218 umfpack_zl_solve(m,cs,ri,cval,NULL,x,NULL,b,NULL,args...);\n+219 }\n+220 template\n+_\b2_\b2_\b1 static void _\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be m, _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be n, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be*\n+cs, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, const double* val, A... args)\n+222 {\n+223 umfpack_zl_symbolic(m,n,cs,ri,val,NULL,args...);\n+224 }\n+225 };\n+226\n+227\n+228 template<>\n+_\b2_\b2_\b9 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br<_\bs_\bt_\bd::complex, std::false_type>\n+230 {\n+_\b2_\b3_\b1 static constexpr bool _\bv_\ba_\bl_\bi_\bd = true ;\n+232\n+_\b2_\b3_\b3 using _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be = int32_t;\n+234\n+235 template\n+_\b2_\b3_\b6 static void _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs(A... args)\n+237 {\n+238 umfpack_zi_defaults(args...);\n+239 }\n+240 template\n+_\b2_\b4_\b1 static void _\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+242 {\n+243 umfpack_zi_free_numeric(args...);\n+244 }\n+245 template\n+_\b2_\b4_\b6 static void _\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(A... args)\n+247 {\n+248 umfpack_zi_free_symbolic(args...);\n+249 }\n+250 template\n+_\b2_\b5_\b1 static int _\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+252 {\n+253 return umfpack_zi_load_numeric(args...);\n+254 }\n+255 template\n+_\b2_\b5_\b6 static void _\bn_\bu_\bm_\be_\br_\bi_\bc(const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* cs, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, const\n+double* val, A... args)\n+257 {\n+258 umfpack_zi_numeric(cs,ri,val,NULL,args...);\n+259 }\n+260 template\n+_\b2_\b6_\b1 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo(A... args)\n+262 {\n+263 umfpack_zi_report_info(args...);\n+264 }\n+265 template\n+_\b2_\b6_\b6 static void _\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs(A... args)\n+267 {\n+268 umfpack_zi_report_status(args...);\n+269 }\n+270 template\n+_\b2_\b7_\b1 static int _\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc(A... args)\n+272 {\n+273 return umfpack_zi_save_numeric(args...);\n+274 }\n+275 template\n+_\b2_\b7_\b6 static void _\bs_\bo_\bl_\bv_\be(_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be m, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* cs, const\n+_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, std::complex* val, double* x, const double* b,A...\n+args)\n+277 {\n+278 const double* cval = reinterpret_cast(val);\n+279 umfpack_zi_solve(m,cs,ri,cval,NULL,x,NULL,b,NULL,args...);\n+280 }\n+281 template\n+_\b2_\b8_\b2 static void _\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc(_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be m, std::size_t n, const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* cs,\n+const _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be* ri, const double* val, A... args)\n+283 {\n+284 umfpack_zi_symbolic(m,n,cs,ri,val,NULL,args...);\n+285 }\n+286 };\n+287\n+288 namespace Impl\n+289 {\n+290 template\n+291 struct UMFPackVectorChooser\n+292 {};\n+293\n+294 template\n+295 struct UMFPackVectorChooser,A > >\n+296 {\n+298 using domain_type = BlockVector<\n+299 FieldVector,\n+300 typename std::allocator_traits::template rebind_alloc >\n+>;\n+302 using range_type = BlockVector<\n+303 FieldVector,\n+304 typename std::allocator_traits::template rebind_alloc >\n+>;\n+305 };\n+306\n+307 template\n+308 struct UMFPackVectorChooser >\n+309 {\n+311 using domain_type = BlockVector;\n+313 using range_type = BlockVector;\n+314 };\n+315 }\n+316\n+330 template\n+_\b3_\b3_\b1 class _\bU_\bM_\bF_\bP_\ba_\bc_\bk\n+332 : public _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br<\n+333 typename Impl::UMFPackVectorChooser::domain_type,\n+334 typename Impl::UMFPackVectorChooser::range_type >\n+335 {\n+336 using T = typename M::field_type;\n+337\n+338 public:\n+_\b3_\b4_\b0 using _\bM_\ba_\bt_\br_\bi_\bx = M;\n+_\b3_\b4_\b1 using _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be = M;\n+_\b3_\b4_\b2 using _\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be = std::conditional_t<(sizeof(typename M::size_type) ==\n+8), int64_t, int32_t>;\n+_\b3_\b4_\b4 typedef ISTL::Impl::BCCSMatrix\n+_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx;\n+_\b3_\b4_\b6 typedef ISTL::Impl::BCCSMatrixInitializer\n+_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n+_\b3_\b4_\b8 using _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be = typename Impl::UMFPackVectorChooser::domain_type;\n+_\b3_\b5_\b0 using _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be = typename Impl::UMFPackVectorChooser::range_type;\n+351\n+_\b3_\b5_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+354 {\n+355 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+356 }\n+357\n+_\b3_\b6_\b6 _\bU_\bM_\bF_\bP_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, int verbose=0) : matrixIsLoaded_(false)\n+367 {\n+368 //check whether T is a supported type\n+369 static_assert((std::is_same::value) || (std::is_same >::value),\n+370 \"Unsupported Type in UMFPack (only double and std::complex\n+supported)\");\n+371 Caller::defaults(UMF_Control);\n+372 _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(verbose);\n+373 _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(matrix);\n+374 }\n+375\n+_\b3_\b8_\b4 _\bU_\bM_\bF_\bP_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, int verbose, bool) : matrixIsLoaded_(false)\n+385 {\n+386 //check whether T is a supported type\n+387 static_assert((std::is_same::value) || (std::is_same >::value),\n+388 \"Unsupported Type in UMFPack (only double and std::complex\n+supported)\");\n+389 Caller::defaults(UMF_Control);\n+390 _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(verbose);\n+391 _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(matrix);\n+392 }\n+393\n+_\b4_\b0_\b3 _\bU_\bM_\bF_\bP_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& mat_, const ParameterTree& config)\n+404 : _\bU_\bM_\bF_\bP_\ba_\bc_\bk(mat_, config._\bg_\be_\bt(\"verbose\", 0))\n+405 {}\n+406\n+_\b4_\b0_\b9 _\bU_\bM_\bF_\bP_\ba_\bc_\bk() : matrixIsLoaded_(false), verbosity_(0)\n+410 {\n+411 //check whether T is a supported type\n+412 static_assert((std::is_same::value) || (std::is_same >::value),\n+413 \"Unsupported Type in UMFPack (only double and std::complex\n+supported)\");\n+414 Caller::defaults(UMF_Control);\n+415 }\n+416\n+_\b4_\b2_\b7 _\bU_\bM_\bF_\bP_\ba_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& mat_, const char* file, int verbose=0)\n+428 {\n+429 //check whether T is a supported type\n+430 static_assert((std::is_same::value) || (std::is_same >::value),\n+431 \"Unsupported Type in UMFPack (only double and std::complex\n+supported)\");\n+432 Caller::defaults(UMF_Control);\n+433 _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(verbose);\n+434 int errcode = Caller::load_numeric(&UMF_Numeric, const_cast(file));\n+435 if ((errcode == UMFPACK_ERROR_out_of_memory) || (errcode ==\n+UMFPACK_ERROR_file_IO))\n+436 {\n+437 matrixIsLoaded_ = false;\n+438 _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(mat_);\n+439 _\bs_\ba_\bv_\be_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(file);\n+440 }\n+441 else\n+442 {\n+443 matrixIsLoaded_ = true;\n+444 std::cout << \"UMFPack decomposition successfully loaded from \" << file <<\n+std::endl;\n+445 }\n+446 }\n+447\n+_\b4_\b5_\b4 _\bU_\bM_\bF_\bP_\ba_\bc_\bk(const char* file, int verbose=0)\n+455 {\n+456 //check whether T is a supported type\n+457 static_assert((std::is_same::value) || (std::is_same >::value),\n+458 \"Unsupported Type in UMFPack (only double and std::complex\n+supported)\");\n+459 Caller::defaults(UMF_Control);\n+460 int errcode = Caller::load_numeric(&UMF_Numeric, const_cast(file));\n+461 if (errcode == UMFPACK_ERROR_out_of_memory)\n+462 DUNE_THROW(Dune::Exception, \"ran out of memory while loading UMFPack\n+decomposition\");\n+463 if (errcode == UMFPACK_ERROR_file_IO)\n+464 DUNE_THROW(Dune::Exception, \"IO error while loading UMFPack\n+decomposition\");\n+465 matrixIsLoaded_ = true;\n+466 std::cout << \"UMFPack decomposition successfully loaded from \" << file <<\n+std::endl;\n+467 _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(verbose);\n+468 }\n+469\n+_\b4_\b7_\b0 virtual _\b~_\bU_\bM_\bF_\bP_\ba_\bc_\bk()\n+471 {\n+472 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)\n+473 _\bf_\br_\be_\be();\n+474 }\n+475\n+_\b4_\b7_\b9 virtual void _\ba_\bp_\bp_\bl_\by(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt&\n+res)\n+480 {\n+481 if (umfpackMatrix_.N() != b.dim())\n+482 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Size of right-hand-side vector b does not\n+match the number of matrix rows!\");\n+483 if (umfpackMatrix_.M() != x.dim())\n+484 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Size of solution vector x does not match the\n+number of matrix columns!\");\n+485 if (b.size() == 0)\n+486 return;\n+487\n+488 double UMF_Apply_Info[UMFPACK_INFO];\n+489 Caller::solve(UMFPACK_A,\n+490 umfpackMatrix_.getColStart(),\n+491 umfpackMatrix_.getRowIndex(),\n+492 umfpackMatrix_.getValues(),\n+493 reinterpret_cast(&x[0]),\n+494 reinterpret_cast(&b[0]),\n+495 UMF_Numeric,\n+496 UMF_Control,\n+497 UMF_Apply_Info);\n+498\n+499 //this is a direct solver\n+500 res._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs = 1;\n+501 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = true;\n+502 res._\be_\bl_\ba_\bp_\bs_\be_\bd = UMF_Apply_Info[UMFPACK_SOLVE_WALLTIME];\n+503\n+504 printOnApply(UMF_Apply_Info);\n+505 }\n+506\n+_\b5_\b1_\b0 virtual void _\ba_\bp_\bp_\bl_\by (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, [[maybe_unused]] double\n+reduction, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+511 {\n+512 _\ba_\bp_\bp_\bl_\by(x,b,res);\n+513 }\n+514\n+_\b5_\b2_\b0 void _\ba_\bp_\bp_\bl_\by(T* x, T* b)\n+521 {\n+522 double UMF_Apply_Info[UMFPACK_INFO];\n+523 Caller::solve(UMFPACK_A,\n+524 umfpackMatrix_.getColStart(),\n+525 umfpackMatrix_.getRowIndex(),\n+526 umfpackMatrix_.getValues(),\n+527 x,\n+528 b,\n+529 UMF_Numeric,\n+530 UMF_Control,\n+531 UMF_Apply_Info);\n+532 printOnApply(UMF_Apply_Info);\n+533 }\n+534\n+_\b5_\b4_\b6 void _\bs_\be_\bt_\bO_\bp_\bt_\bi_\bo_\bn(unsigned int option, double value)\n+547 {\n+548 if (option >= UMFPACK_CONTROL)\n+549 DUNE_THROW(RangeError, \"Requested non-existing UMFPack option\");\n+550\n+551 UMF_Control[option] = value;\n+552 }\n+553\n+_\b5_\b5_\b7 void _\bs_\ba_\bv_\be_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(const char* file)\n+558 {\n+559 int errcode = Caller::save_numeric(UMF_Numeric, const_cast(file));\n+560 if (errcode != UMFPACK_OK)\n+561 DUNE_THROW(Dune::Exception,\"IO ERROR while trying to save UMFPack\n+decomposition\");\n+562 }\n+563\n+_\b5_\b6_\b5 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& matrix)\n+566 {\n+567 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)\n+568 _\bf_\br_\be_\be();\n+569 if (matrix.N() == 0 or matrix.M() == 0)\n+570 return;\n+571\n+572 if (umfpackMatrix_.N() + umfpackMatrix_.M() + umfpackMatrix_.nonzeroes() !=\n+0)\n+573 umfpackMatrix_.free();\n+574 umfpackMatrix_.setSize(_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(matrix),\n+575 _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(matrix));\n+576 ISTL::Impl::BCCSMatrixInitializer initializer\n+(umfpackMatrix_);\n+577\n+578 copyToBCCSMatrix(initializer, matrix);\n+579\n+580 decompose();\n+581 }\n+582\n+583 template\n+_\b5_\b8_\b4 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& _mat, const S& rowIndexSet)\n+585 {\n+586 if ((umfpackMatrix_.N() + umfpackMatrix_.M() > 0) || matrixIsLoaded_)\n+587 _\bf_\br_\be_\be();\n+588\n+589 if (umfpackMatrix_.N() + umfpackMatrix_.M() + umfpackMatrix_.nonzeroes() !=\n+0)\n+590 umfpackMatrix_.free();\n+591\n+592 umfpackMatrix_.setSize(rowIndexSet.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+(_mat) / _mat.N(),\n+593 rowIndexSet.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(_mat) / _mat.M());\n+594 ISTL::Impl::BCCSMatrixInitializer initializer\n+(umfpackMatrix_);\n+595\n+596 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<_\bM_\ba_\bt_\br_\bi_\bx,std::\n+set >(_mat,rowIndexSet));\n+597\n+598 decompose();\n+599 }\n+600\n+_\b6_\b0_\b8 void _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(int v)\n+609 {\n+610 verbosity_ = v;\n+611 // set the verbosity level in UMFPack\n+612 if (verbosity_ == 0)\n+613 UMF_Control[UMFPACK_PRL] = 1;\n+614 if (verbosity_ == 1)\n+615 UMF_Control[UMFPACK_PRL] = 2;\n+616 if (verbosity_ == 2)\n+617 UMF_Control[UMFPACK_PRL] = 4;\n+618 }\n+619\n+_\b6_\b2_\b4 void* _\bg_\be_\bt_\bF_\ba_\bc_\bt_\bo_\br_\bi_\bz_\ba_\bt_\bi_\bo_\bn()\n+625 {\n+626 return UMF_Numeric;\n+627 }\n+628\n+_\b6_\b3_\b3 _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx& _\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx()\n+634 {\n+635 return umfpackMatrix_;\n+636 }\n+637\n+_\b6_\b4_\b2 void _\bf_\br_\be_\be()\n+643 {\n+644 if (!matrixIsLoaded_)\n+645 {\n+646 Caller::free_symbolic(&UMF_Symbolic);\n+647 umfpackMatrix_.free();\n+648 }\n+649 Caller::free_numeric(&UMF_Numeric);\n+650 matrixIsLoaded_ = false;\n+651 }\n+652\n+_\b6_\b5_\b3 const char* _\bn_\ba_\bm_\be() { return \"UMFPACK\"; }\n+654\n+655 private:\n+656 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br> Caller;\n+657\n+658 template\n+_\b6_\b5_\b9 friend class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz;\n+660 friend struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bU_\bM_\bF_\bP_\ba_\bc_\bk<_\bM_\ba_\bt_\br_\bi_\bx>,true>;\n+661\n+663 void decompose()\n+664 {\n+665 double UMF_Decomposition_Info[UMFPACK_INFO];\n+666 Caller::symbolic(static_cast<_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be>(umfpackMatrix_.N()),\n+667 static_cast<_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be>(umfpackMatrix_.N()),\n+668 umfpackMatrix_.getColStart(),\n+669 umfpackMatrix_.getRowIndex(),\n+670 reinterpret_cast(umfpackMatrix_.getValues()),\n+671 &UMF_Symbolic,\n+672 UMF_Control,\n+673 UMF_Decomposition_Info);\n+674 Caller::numeric(umfpackMatrix_.getColStart(),\n+675 umfpackMatrix_.getRowIndex(),\n+676 reinterpret_cast(umfpackMatrix_.getValues()),\n+677 UMF_Symbolic,\n+678 &UMF_Numeric,\n+679 UMF_Control,\n+680 UMF_Decomposition_Info);\n+681 Caller::report_status(UMF_Control,UMF_Decomposition_Info[UMFPACK_STATUS]);\n+682 if (verbosity_ == 1)\n+683 {\n+684 std::cout << \"[UMFPack Decomposition]\" << std::endl;\n+685 std::cout << \"Wallclock Time taken: \" << UMF_Decomposition_Info\n+[UMFPACK_NUMERIC_WALLTIME] << \" (CPU Time: \" << UMF_Decomposition_Info\n+[UMFPACK_NUMERIC_TIME] << \")\" << std::endl;\n+686 std::cout << \"Flops taken: \" << UMF_Decomposition_Info[UMFPACK_FLOPS] <<\n+std::endl;\n+687 std::cout << \"Peak Memory Usage: \" << UMF_Decomposition_Info\n+[UMFPACK_PEAK_MEMORY]*UMF_Decomposition_Info[UMFPACK_SIZE_OF_UNIT] << \" bytes\"\n+<< std::endl;\n+688 std::cout << \"Condition number estimate: \" << 1./UMF_Decomposition_Info\n+[UMFPACK_RCOND] << std::endl;\n+689 std::cout << \"Numbers of non-zeroes in decomposition: L: \" <<\n+UMF_Decomposition_Info[UMFPACK_LNZ] << \" U: \" << UMF_Decomposition_Info\n+[UMFPACK_UNZ] << std::endl;\n+690 }\n+691 if (verbosity_ == 2)\n+692 {\n+693 Caller::report_info(UMF_Control,UMF_Decomposition_Info);\n+694 }\n+695 }\n+696\n+697 void printOnApply(double* UMF_Info)\n+698 {\n+699 Caller::report_status(UMF_Control,UMF_Info[UMFPACK_STATUS]);\n+700 if (verbosity_ > 0)\n+701 {\n+702 std::cout << \"[UMFPack Solve]\" << std::endl;\n+703 std::cout << \"Wallclock Time: \" << UMF_Info[UMFPACK_SOLVE_WALLTIME] << \"\n+(CPU Time: \" << UMF_Info[UMFPACK_SOLVE_TIME] << \")\" << std::endl;\n+704 std::cout << \"Flops Taken: \" << UMF_Info[UMFPACK_SOLVE_FLOPS] << std::endl;\n+705 std::cout << \"Iterative Refinement steps taken: \" << UMF_Info\n+[UMFPACK_IR_TAKEN] << std::endl;\n+706 std::cout << \"Error Estimate: \" << UMF_Info[UMFPACK_OMEGA1] << \" resp. \" <<\n+UMF_Info[UMFPACK_OMEGA2] << std::endl;\n+707 }\n+708 }\n+709\n+710 _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx umfpackMatrix_;\n+711 bool matrixIsLoaded_;\n+712 int verbosity_;\n+713 void *UMF_Symbolic;\n+714 void *UMF_Numeric;\n+715 double UMF_Control[UMFPACK_CONTROL];\n+716 };\n+717\n+718 template\n+_\b7_\b1_\b9 struct _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br<_\bU_\bM_\bF_\bP_\ba_\bc_\bk<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A> > >\n+720 {\n+_\b7_\b2_\b1 enum { _\bv_\ba_\bl_\bu_\be=true};\n+722 };\n+723\n+724 template\n+_\b7_\b2_\b5 struct _\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd<_\bU_\bM_\bF_\bP_\ba_\bc_\bk<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx > >\n+726 {\n+_\b7_\b2_\b7 enum { _\bv_\ba_\bl_\bu_\be = true };\n+728 };\n+729\n+_\b7_\b3_\b0 struct _\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br {\n+_\b7_\b3_\b1 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk : std::false_type{};\n+_\b7_\b3_\b2 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::real_type,double>::value>> : std::true_type\n+{};\n+733\n+734 template\n+735 std::shared_ptr::type,\n+736 typename Dune::TypeListElement<2, TL>::type>>\n+_\b7_\b3_\b7 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& _\bm_\ba_\bt, const Dune::ParameterTree& config,\n+738 std::enable_if_t<\n+739 _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::type::block_type>::\n+value,int> = 0) const\n+740 {\n+741 int verbose = config.get(\"verbose\", 0);\n+742 return std::make_shared>(_\bm_\ba_\bt,verbose);\n+743 }\n+744\n+745 // second version with SFINAE to validate the template parameters of\n+UMFPack\n+746 template\n+747 std::shared_ptr::type,\n+748 typename Dune::TypeListElement<2, TL>::type>>\n+_\b7_\b4_\b9 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /\n+*config*/,\n+750 std::enable_if_t<\n+751 !_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::type::block_type>::\n+value,int> = 0) const\n+752 {\n+753 DUNE_THROW(_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be,\n+754 \"Unsupported Type in UMFPack (only double and std::complex\n+supported)\");\n+755 }\n+756 };\n+_\b7_\b5_\b7 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"umfpack\",_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br());\n+758} // end namespace Dune\n+759\n+760#endif // HAVE_SUITESPARSE_UMFPACK\n+761\n+762#endif //DUNE_ISTL_UMFPACK_HH\n+_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh\n+_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR\n+#define DUNE_REGISTER_DIRECT_SOLVER(name,...)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:13\n+_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n+Templates characterizing the type of a solver.\n+_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n+_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n+Implementations of the inverse operator interface.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bn_\bu_\bm_\be_\br_\bi_\bc\n+static void numeric(const umf_int_type *cs, const umf_int_type *ri, const\n+double *val, A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:256\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bf_\br_\be_\be\n+void free()\n+free allocated space.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:642\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be\n+static void solve(umf_int_type m, const umf_int_type *cs, const umf_int_type\n+*ri, std::complex< double > *val, double *x, const double *b, A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:215\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(domain_type &x, range_type &b, InverseOperatorResult &res)\n+Apply inverse operator,.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:479\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+ISTL::Impl::BCCSMatrixInitializer< M, umf_int_type > MatrixInitializer\n+Type of an associated initializer class.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:346\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo\n+static void report_info(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:200\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the solver (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:353\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:341\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+void setMatrix(const Matrix &matrix)\n+Initialize data from given matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:565\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static int save_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:210\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bn_\bu_\bm_\be_\br_\bi_\bc\n+static void numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:79\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n+UMFPack(const Matrix &mat_, const ParameterTree &config)\n+Construct a solver object from a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:403\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n+static void symbolic(umf_int_type m, umf_int_type n, const umf_int_type *cs,\n+const umf_int_type *ri, const double *val, A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:221\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL\n+>::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL, const\n+M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock<\n+typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0)\n+const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:737\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs\n+static void report_status(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:89\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n+UMFPack(const Matrix &mat_, const char *file, int verbose=0)\n+Try loading a decomposition from file and do a decomposition if unsuccessful.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:427\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static int load_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:131\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static void free_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:64\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs\n+static void defaults(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:175\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+typename Impl::UMFPackVectorChooser< M >::range_type range_type\n+The type of the range of the solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:350\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static int save_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:271\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo\n+static void report_info(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:84\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be\n+static void solve(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n+UMFPack()\n+default constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:409\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be\n+int64_t umf_int_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:172\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static int load_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:251\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n+static void symbolic(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:161\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bn_\bu_\bm_\be_\br_\bi_\bc\n+static void numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:136\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo\n+static void report_info(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:141\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs\n+static void report_status(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:205\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n+static void free_symbolic(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:69\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n+static void free_symbolic(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:185\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bn_\bu_\bm_\be_\br_\bi_\bc\n+static void numeric(const umf_int_type *cs, const umf_int_type *ri, const\n+double *val, A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:195\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n+void setSubMatrix(const Matrix &_mat, const S &rowIndexSet)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:584\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be\n+static void solve(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:156\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static void free_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:180\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(T *x, T *b)\n+additional apply method with c-arrays in analogy to superlu\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:520\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be\n+int32_t umf_int_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:233\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b:_\b:_\bv_\ba_\bl_\bi_\bd\n+static constexpr bool valid\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:50\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by\n+void setVerbosity(int v)\n+sets the verbosity level for the UMFPack solver\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:608\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n+UMFPack(const char *file, int verbose=0)\n+try loading a decomposition from file\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:454\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs\n+static void defaults(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:236\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static int save_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:151\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static int load_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:74\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n+static void symbolic(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:104\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\b~_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n+virtual ~UMFPack()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:470\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bn_\ba_\bm_\be\n+const char * name()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:653\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n+ISTL::Impl::BCCSMatrix< typename Matrix::field_type, umf_int_type >\n+UMFPackMatrix\n+The corresponding UMFPack matrix type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:344\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n+static void free_symbolic(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\ba_\bv_\be_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n+void saveDecomposition(const char *file)\n+saves a decomposition to a file\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:557\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx\n+UMFPackMatrix & getInternalMatrix()\n+Return the column compress matrix from UMFPack.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:633\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static void free_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:121\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\bf_\br_\be_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static void free_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:241\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be\n+static void solve(umf_int_type m, const umf_int_type *cs, const umf_int_type\n+*ri, std::complex< double > *val, double *x, const double *b, A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:276\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs\n+static void report_status(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:146\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+typename Impl::UMFPackVectorChooser< M >::domain_type domain_type\n+The type of the domain of the solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:348\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n+UMFPack(const Matrix &matrix, int verbose=0)\n+Construct a solver object from a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:366\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\ba_\bv_\be_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static int save_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:94\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\br_\be_\bp_\bo_\br_\bt_\b__\bi_\bn_\bf_\bo\n+static void report_info(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:261\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(domain_type &x, range_type &b, double reduction,\n+InverseOperatorResult &res)\n+apply inverse operator, with given convergence criteria.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:510\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bs_\be_\bt_\bO_\bp_\bt_\bi_\bo_\bn\n+void setOption(unsigned int option, double value)\n+Set UMFPack-specific options.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:546\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs\n+static void defaults(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:59\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+M Matrix\n+The matrix type.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:340\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n+static void symbolic(umf_int_type m, std::size_t n, const umf_int_type *cs,\n+const umf_int_type *ri, const double *val, A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:282\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\bf_\br_\be_\be_\b__\bs_\by_\bm_\bb_\bo_\bl_\bi_\bc\n+static void free_symbolic(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:246\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\bs\n+static void defaults(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:116\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bu_\bm_\bf_\b__\bi_\bn_\bt_\b__\bt_\by_\bp_\be\n+std::conditional_t<(sizeof(typename M::size_type)==8), int64_t, int32_t >\n+umf_int_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:342\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bt_\br_\bu_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\bl_\bo_\ba_\bd_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n+static int load_numeric(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:190\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n+UMFPack(const Matrix &matrix, int verbose, bool)\n+Constructor for compatibility with SuperLU standard constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:384\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\b:_\b:_\bg_\be_\bt_\bF_\ba_\bc_\bt_\bo_\br_\bi_\bz_\ba_\bt_\bi_\bo_\bn\n+void * getFactorization()\n+Return the matrix factorization.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:624\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b,_\b _\bs_\bt_\bd_\b:_\b:_\bf_\ba_\bl_\bs_\be_\b__\bt_\by_\bp_\be_\b _\b>_\b:_\b:\n+_\br_\be_\bp_\bo_\br_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs\n+static void report_status(A... args)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:266\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n+Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:211\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n+Sequential overlapping Schwarz preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:694\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+Statistics about the application of an inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\be_\bl_\ba_\bp_\bs_\be_\bd\n+double elapsed\n+Elapsed time in seconds.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n+int iterations\n+Number of iterations.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n+bool converged\n+True if convergence criterion has been met.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Abstract base class for all solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:77\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+@ value\n+Whether this is a direct solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:24\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+@ value\n+whether the solver internally uses column compressed storage\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bM_\be_\bt_\bh_\bo_\bd_\bC_\bh_\bo_\bo_\bs_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:49\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk\n+The UMFPack direct sparse solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:335\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:730\n+_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn umfpack.hh:731\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00170.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00170.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: solver.hh File Reference\n+dune-istl: matrixindexset.hh File Reference\n \n \n \n \n \n \n \n@@ -72,69 +72,33 @@\n
  • dune
  • istl
  • \n \n \n
    \n \n- \n+
    matrixindexset.hh File Reference
    \n
    \n
    \n-\n-

    Define general, extensible interface for inverse operators. \n-More...

    \n-
    #include <iomanip>
    \n-#include <ostream>
    \n-#include <string>
    \n-#include <functional>
    \n-#include <dune/common/exceptions.hh>
    \n-#include <dune/common/shared_ptr.hh>
    \n-#include <dune/common/simd/io.hh>
    \n-#include <dune/common/simd/simd.hh>
    \n-#include <dune/common/parametertree.hh>
    \n-#include <dune/common/timer.hh>
    \n-#include "solvertype.hh"
    \n-#include "preconditioner.hh"
    \n-#include "operators.hh"
    \n-#include "scalarproducts.hh"
    \n+
    #include <vector>
    \n+#include <set>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    struct  Dune::InverseOperatorResult
     Statistics about the application of an inverse operator. More...
     
    class  Dune::InverseOperator< X, Y >
     Abstract base class for all solvers. More...
     
    class  Dune::IterativeSolver< X, Y >
     Base class for all implementations of iterative solvers. More...
     
    class  Dune::IterativeSolver< X, Y >::Iteration< CountType >
     Class for controlling iterative methods. More...
     
    class  Dune::SolverHelper< ISTLLinearSolver, BCRSMatrix >
     Helper class for notifying a DUNE-ISTL linear solver about a change of the iteration matrix object in a unified way, i.e. independent from the solver's type (direct/iterative). More...
     
    struct  Dune::SolverHelper< ISTLLinearSolver, BCRSMatrix >::Implementation< is_direct_solver, Dummy >
     Implementation that works together with iterative ISTL solvers, e.g. Dune::CGSolver or Dune::BiCGSTABSolver. More...
     
    struct  Dune::SolverHelper< ISTLLinearSolver, BCRSMatrix >::Implementation< true, Dummy >
     Implementation that works together with direct ISTL solvers, e.g. Dune::SuperLU or Dune::UMFPack. More...
    class  Dune::MatrixIndexSet
     Stores the nonzero entries in a sparse matrix. More...
     
    \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    \n-

    Detailed Description

    \n-

    Define general, extensible interface for inverse operators.

    \n-

    Implementation here covers only inversion of linear operators, but the implementation might be used for nonlinear operators as well.

    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,62 +1,20 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-solver.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs\n-Define general, extensible interface for inverse operators. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \"_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\"\n-#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\"\n-#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n-#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n+matrixindexset.hh File Reference\n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-\u00a0 Statistics about the application of an inverse operator. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0 Abstract base class for all solvers. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0 Base class for all implementations of iterative solvers. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bC_\bo_\bu_\bn_\bt_\bT_\by_\bp_\be_\b _\b>\n-\u00a0 Class for controlling iterative methods. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b,_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b _\b>\n- Helper class for notifying a DUNE-ISTL linear solver about a change of\n-\u00a0 the iteration matrix object in a unified way, i.e. independent from\n- the solver's type (direct/iterative). _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b,_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b _\b>_\b:_\b:_\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b<\n- _\bi_\bs_\b__\bd_\bi_\br_\be_\bc_\bt_\b__\bs_\bo_\bl_\bv_\be_\br_\b,_\b _\bD_\bu_\bm_\bm_\by_\b _\b>\n-\u00a0 _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn that works together with iterative _\bI_\bS_\bT_\bL solvers, e.g.\n- _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br or _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b,_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b _\b>_\b:_\b:_\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b<\n- _\bt_\br_\bu_\be_\b,_\b _\bD_\bu_\bm_\bm_\by_\b _\b>\n-\u00a0 _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn that works together with direct _\bI_\bS_\bT_\bL solvers, e.g.\n- _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU or _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+\u00a0 Stores the nonzero entries in a sparse matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Define general, extensible interface for inverse operators.\n-Implementation here covers only inversion of linear operators, but the\n-implementation might be used for nonlinear operators as well.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00170_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00170_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: solver.hh Source File\n+dune-istl: matrixindexset.hh Source File\n \n \n \n \n \n \n \n@@ -74,495 +74,148 @@\n \n
    \n \n
    \n \n
    \n-
    solver.hh
    \n+
    matrixindexset.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5
    \n-
    6#ifndef DUNE_ISTL_SOLVER_HH
    \n-
    7#define DUNE_ISTL_SOLVER_HH
    \n-
    8
    \n-
    9#include <iomanip>
    \n-
    10#include <ostream>
    \n-
    11#include <string>
    \n-
    12#include <functional>
    \n+
    5#ifndef DUNE_ISTL_MATRIXINDEXSET_HH
    \n+
    6#define DUNE_ISTL_MATRIXINDEXSET_HH
    \n+
    7
    \n+
    8#include <vector>
    \n+
    9#include <set>
    \n+
    10
    \n+
    11namespace Dune {
    \n+
    12
    \n
    13
    \n-
    14#include <dune/common/exceptions.hh>
    \n-
    15#include <dune/common/shared_ptr.hh>
    \n-
    16#include <dune/common/simd/io.hh>
    \n-
    17#include <dune/common/simd/simd.hh>
    \n-
    18#include <dune/common/parametertree.hh>
    \n-
    19#include <dune/common/timer.hh>
    \n+
    \n+\n+
    16 {
    \n+
    17
    \n+
    18 public:
    \n+
    19 typedef std::size_t size_type;
    \n
    20
    \n-
    21#include "solvertype.hh"
    \n-
    22#include "preconditioner.hh"
    \n-
    23#include "operators.hh"
    \n-
    24#include "scalarproducts.hh"
    \n-
    25
    \n-
    26namespace Dune
    \n-
    27{
    \n-
    \n-\n-
    48 {
    \n-
    \n-\n-
    51 {
    \n-
    52 clear();
    \n-
    53 }
    \n-
    \n+
    \n+
    22 MatrixIndexSet() : rows_(0), cols_(0)
    \n+
    23 {}
    \n+
    \n+
    24
    \n+
    \n+
    26 MatrixIndexSet(size_type rows, size_type cols) : rows_(rows), cols_(cols) {
    \n+
    27 indices_.resize(rows_);
    \n+
    28 }
    \n+
    \n+
    29
    \n+
    \n+\n+
    32 rows_ = rows;
    \n+
    33 cols_ = cols;
    \n+
    34 indices_.resize(rows_);
    \n+
    35 }
    \n+
    \n+
    36
    \n+
    \n+
    38 void add(size_type i, size_type j) {
    \n+
    39 indices_[i].insert(j);
    \n+
    40 }
    \n+
    \n+
    41
    \n+
    \n+
    43 size_type size() const {
    \n+
    44 size_type entries = 0;
    \n+
    45 for (size_type i=0; i<rows_; i++)
    \n+
    46 entries += indices_[i].size();
    \n+
    47
    \n+
    48 return entries;
    \n+
    49 }
    \n+
    \n+
    50
    \n+
    52 size_type rows() const {return rows_;}
    \n+
    53
    \n
    54
    \n-
    \n-
    56 void clear ()
    \n-
    57 {
    \n-
    58 iterations = 0;
    \n-
    59 reduction = 0;
    \n-
    60 converged = false;
    \n-
    61 conv_rate = 1;
    \n-
    62 elapsed = 0;
    \n-\n-
    64 }
    \n-
    \n-
    65
    \n-\n-
    68
    \n-
    70 double reduction;
    \n+
    56 size_type rowsize(size_type row) const {return indices_[row].size();}
    \n+
    57
    \n+
    64 template <class MatrixType>
    \n+
    \n+
    65 void import(const MatrixType& m, size_type rowOffset=0, size_type colOffset=0) {
    \n+
    66
    \n+
    67 typedef typename MatrixType::row_type RowType;
    \n+
    68 typedef typename RowType::ConstIterator ColumnIterator;
    \n+
    69
    \n+
    70 for (size_type rowIdx=0; rowIdx<m.N(); rowIdx++) {
    \n
    71
    \n-\n-
    74
    \n-
    76 double conv_rate;
    \n-
    77
    \n-
    79 double condition_estimate = -1;
    \n-
    80
    \n-
    82 double elapsed;
    \n-
    83 };
    \n-
    \n-
    84
    \n-
    85
    \n-
    86 //=====================================================================
    \n-
    98 template<class X, class Y>
    \n-
    \n-\n-
    100 public:
    \n-
    102 typedef X domain_type;
    \n-
    103
    \n-
    105 typedef Y range_type;
    \n-
    106
    \n-
    108 typedef typename X::field_type field_type;
    \n+
    72 const RowType& row = m[rowIdx];
    \n+
    73
    \n+
    74 ColumnIterator cIt = row.begin();
    \n+
    75 ColumnIterator cEndIt = row.end();
    \n+
    76
    \n+
    77 for(; cIt!=cEndIt; ++cIt)
    \n+
    78 add(rowIdx+rowOffset, cIt.index()+colOffset);
    \n+
    79
    \n+
    80 }
    \n+
    81
    \n+
    82 }
    \n+
    \n+
    83
    \n+
    89 template <class MatrixType>
    \n+
    \n+
    90 void exportIdx(MatrixType& matrix) const {
    \n+
    91
    \n+
    92 matrix.setSize(rows_, cols_);
    \n+
    93 matrix.setBuildMode(MatrixType::random);
    \n+
    94
    \n+
    95 for (size_type i=0; i<rows_; i++)
    \n+
    96 matrix.setrowsize(i, indices_[i].size());
    \n+
    97
    \n+
    98 matrix.endrowsizes();
    \n+
    99
    \n+
    100 for (size_type i=0; i<rows_; i++) {
    \n+
    101
    \n+
    102 typename std::set<size_type>::iterator it = indices_[i].begin();
    \n+
    103 for (; it!=indices_[i].end(); ++it)
    \n+
    104 matrix.addindex(i, *it);
    \n+
    105
    \n+
    106 }
    \n+
    107
    \n+
    108 matrix.endindices();
    \n
    109
    \n-
    111 typedef typename FieldTraits<field_type>::real_type real_type;
    \n-
    112
    \n-
    114 typedef Simd::Scalar<real_type> scalar_real_type;
    \n+
    110 }
    \n+
    \n+
    111
    \n+
    112 private:
    \n+
    113
    \n+
    114 std::vector<std::set<size_type> > indices_;
    \n
    115
    \n-
    128 virtual void apply (X& x, Y& b, InverseOperatorResult& res) = 0;
    \n-
    129
    \n-
    143 virtual void apply (X& x, Y& b, double reduction, InverseOperatorResult& res) = 0;
    \n-
    144
    \n-\n-
    147#ifdef DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
    \n-
    148 {
    \n-
    149 DUNE_THROW(Dune::Exception,"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
    \n-
    150 }
    \n-
    151#else
    \n-
    152 = 0;
    \n-
    153#endif
    \n-
    154
    \n-
    156 virtual ~InverseOperator () {}
    \n-
    157
    \n-
    158 protected:
    \n-
    159 // spacing values
    \n-
    160 enum { iterationSpacing = 5 , normSpacing = 16 };
    \n-
    161
    \n-
    \n-
    163 void printHeader(std::ostream& s) const
    \n-
    164 {
    \n-
    165 s << std::setw(iterationSpacing) << " Iter";
    \n-
    166 s << std::setw(normSpacing) << "Defect";
    \n-
    167 s << std::setw(normSpacing) << "Rate" << std::endl;
    \n-
    168 }
    \n-
    \n-
    169
    \n-
    171 template <typename CountType, typename DataType>
    \n-
    \n-
    172 void printOutput(std::ostream& s,
    \n-
    173 const CountType& iter,
    \n-
    174 const DataType& norm,
    \n-
    175 const DataType& norm_old) const
    \n-
    176 {
    \n-
    177 const DataType rate = norm/norm_old;
    \n-
    178 s << std::setw(iterationSpacing) << iter << " ";
    \n-
    179 s << std::setw(normSpacing) << Simd::io(norm) << " ";
    \n-
    180 s << std::setw(normSpacing) << Simd::io(rate) << std::endl;
    \n-
    181 }
    \n-
    \n-
    182
    \n-
    184 template <typename CountType, typename DataType>
    \n-
    \n-
    185 void printOutput(std::ostream& s,
    \n-
    186 const CountType& iter,
    \n-
    187 const DataType& norm) const
    \n-
    188 {
    \n-
    189 s << std::setw(iterationSpacing) << iter << " ";
    \n-
    190 s << std::setw(normSpacing) << Simd::io(norm) << std::endl;
    \n-
    191 }
    \n-
    \n-
    192 };
    \n-
    \n-
    193
    \n-
    202 template<class X, class Y>
    \n-
    \n-
    203 class IterativeSolver : public InverseOperator<X,Y>{
    \n-
    204 public:
    \n-\n-\n-\n-
    208 using typename InverseOperator<X,Y>::real_type;
    \n-\n-
    210
    \n-
    \n-
    230 IterativeSolver (const LinearOperator<X,Y>& op, Preconditioner<X,Y>& prec, scalar_real_type reduction, int maxit, int verbose) :
    \n-
    231 _op(stackobject_to_shared_ptr(op)),
    \n-
    232 _prec(stackobject_to_shared_ptr(prec)),
    \n-
    233 _sp(new SeqScalarProduct<X>),
    \n-
    234 _reduction(reduction), _maxit(maxit), _verbose(verbose), _category(SolverCategory::sequential)
    \n-
    235 {
    \n-\n-
    237 DUNE_THROW(InvalidSolverCategory, "LinearOperator has to be sequential!");
    \n-\n-
    239 DUNE_THROW(InvalidSolverCategory, "Preconditioner has to be sequential!");
    \n-
    240 }
    \n-
    \n-
    241
    \n-
    \n-\n-
    263 scalar_real_type reduction, int maxit, int verbose) :
    \n-
    264 _op(stackobject_to_shared_ptr(op)),
    \n-
    265 _prec(stackobject_to_shared_ptr(prec)),
    \n-
    266 _sp(stackobject_to_shared_ptr(sp)),
    \n-
    267 _reduction(reduction), _maxit(maxit), _verbose(verbose), _category(SolverCategory::category(op))
    \n-
    268 {
    \n-\n-
    270 DUNE_THROW(InvalidSolverCategory, "LinearOperator and Preconditioner must have the same SolverCategory!");
    \n-\n-
    272 DUNE_THROW(InvalidSolverCategory, "LinearOperator and ScalarProduct must have the same SolverCategory!");
    \n-
    273 }
    \n-
    \n-
    274
    \n-
    \n-
    290 IterativeSolver (std::shared_ptr<const LinearOperator<X,Y> > op, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n-
    291 IterativeSolver(op,std::make_shared<SeqScalarProduct<X>>(),prec,
    \n-
    292 configuration.get<real_type>("reduction"),
    \n-
    293 configuration.get<int>("maxit"),
    \n-
    294 configuration.get<int>("verbose"))
    \n-
    295 {}
    \n-
    \n-
    296
    \n-
    \n-
    313 IterativeSolver (std::shared_ptr<const LinearOperator<X,Y> > op, std::shared_ptr<const ScalarProduct<X> > sp, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n-
    314 IterativeSolver(op,sp,prec,
    \n-
    315 configuration.get<scalar_real_type>("reduction"),
    \n-
    316 configuration.get<int>("maxit"),
    \n-
    317 configuration.get<int>("verbose"))
    \n-
    318 {}
    \n-
    \n-
    319
    \n-
    \n-
    340 IterativeSolver (std::shared_ptr<const LinearOperator<X,Y>> op,
    \n-
    341 std::shared_ptr<const ScalarProduct<X>> sp,
    \n-
    342 std::shared_ptr<Preconditioner<X,Y>> prec,
    \n-
    343 scalar_real_type reduction, int maxit, int verbose) :
    \n-
    344 _op(op),
    \n-
    345 _prec(prec),
    \n-
    346 _sp(sp),
    \n-
    347 _reduction(reduction), _maxit(maxit), _verbose(verbose),
    \n-\n-
    349 {
    \n-\n-
    351 DUNE_THROW(InvalidSolverCategory, "LinearOperator and Preconditioner must have the same SolverCategory!");
    \n-\n-
    353 DUNE_THROW(InvalidSolverCategory, "LinearOperator and ScalarProduct must have the same SolverCategory!");
    \n-
    354 }
    \n-
    \n-
    355
    \n-
    356 // #warning actually we want to have this as the default and just implement the second one
    \n-
    357 // //! \\copydoc InverseOperator::apply(X&,Y&,InverseOperatorResult&)
    \n-
    358 // virtual void apply (X& x, Y& b, InverseOperatorResult& res)
    \n-
    359 // {
    \n-
    360 // apply(x,b,_reduction,res);
    \n-
    361 // }
    \n-
    362
    \n-
    363#ifndef DOXYGEN
    \n-
    364 // make sure the three-argument apply from the base class does not get shadowed
    \n-
    365 // by the redefined four-argument version below
    \n-
    366 using InverseOperator<X,Y>::apply;
    \n-
    367#endif
    \n-
    368
    \n-
    \n-
    374 virtual void apply (X& x, X& b, double reduction, InverseOperatorResult& res)
    \n-
    375 {
    \n-
    376 scalar_real_type saved_reduction = _reduction;
    \n-
    377 _reduction = reduction;
    \n-
    378 this->apply(x,b,res);
    \n-
    379 _reduction = saved_reduction;
    \n-
    380 }
    \n-
    \n-
    381
    \n-
    \n-\n-
    384 {
    \n-
    385 return _category;
    \n-
    386 }
    \n-
    \n-
    387
    \n-
    \n-
    388 std::string name() const{
    \n-
    389 std::string name = className(*this);
    \n-
    390 return name.substr(0, name.find("<"));
    \n-
    391 }
    \n-
    \n-
    392
    \n-
    410 template<class CountType = unsigned int>
    \n-
    \n-
    411 class Iteration {
    \n-
    412 public:
    \n-
    \n-\n-
    414 : _i(0)
    \n-
    415 , _res(res)
    \n-
    416 , _parent(parent)
    \n-
    417 , _valid(true)
    \n-
    418 {
    \n-
    419 res.clear();
    \n-
    420 if(_parent._verbose>0){
    \n-
    421 std::cout << "=== " << parent.name() << std::endl;
    \n-
    422 if(_parent._verbose > 1)
    \n-
    423 _parent.printHeader(std::cout);
    \n-
    424 }
    \n-
    425 }
    \n-
    \n-
    426
    \n-
    427 Iteration(const Iteration&) = delete;
    \n-
    \n-\n-
    429 : _def0(other._def0)
    \n-
    430 , _def(other._def)
    \n-
    431 , _i(other._i)
    \n-
    432 , _watch(other._watch)
    \n-
    433 , _res(other._res)
    \n-
    434 , _parent(other._parent)
    \n-
    435 , _valid(other._valid)
    \n-
    436 {
    \n-
    437 other._valid = false;
    \n-
    438 }
    \n-
    \n-
    439
    \n-
    \n-\n-
    441 if(_valid)
    \n-
    442 finalize();
    \n-
    443 }
    \n-
    \n-
    444
    \n-
    \n-
    455 bool step(CountType i, real_type def){
    \n-
    456 if (!Simd::allTrue(isFinite(def))) // check for inf or NaN
    \n-
    457 {
    \n-
    458 if (_parent._verbose>0)
    \n-
    459 std::cout << "=== " << _parent.name() << ": abort due to infinite or NaN defect"
    \n-
    460 << std::endl;
    \n-
    461 DUNE_THROW(SolverAbort,
    \n-
    462 _parent.name() << ": defect=" << Simd::io(def)
    \n-
    463 << " is infinite or NaN");
    \n-
    464 }
    \n-
    465 if(i == 0)
    \n-
    466 _def0 = def;
    \n-
    467 if(_parent._verbose > 1){
    \n-
    468 if(i!=0)
    \n-
    469 _parent.printOutput(std::cout,i,def,_def);
    \n-
    470 else
    \n-
    471 _parent.printOutput(std::cout,i,def);
    \n-
    472 }
    \n-
    473 _def = def;
    \n-
    474 _i = i;
    \n-
    475 _res.converged = (Simd::allTrue(def<_def0*_parent._reduction || def<real_type(1E-30))); // convergence check
    \n-
    476 return _res.converged;
    \n-
    477 }
    \n-
    \n-
    478
    \n-
    479 protected:
    \n-
    \n-
    480 void finalize(){
    \n-
    481 _res.converged = (Simd::allTrue(_def<_def0*_parent._reduction || _def<real_type(1E-30)));
    \n-\n-
    483 _res.reduction = static_cast<double>(Simd::max(_def/_def0));
    \n-
    484 _res.conv_rate = pow(_res.reduction,1.0/_i);
    \n-
    485 _res.elapsed = _watch.elapsed();
    \n-
    486 if (_parent._verbose>0) // final print
    \n-
    487 {
    \n-
    488 std::cout << "=== rate=" << _res.conv_rate
    \n-
    489 << ", T=" << _res.elapsed
    \n-
    490 << ", TIT=" << _res.elapsed/_res.iterations
    \n-
    491 << ", IT=" << _res.iterations << std::endl;
    \n-
    492 }
    \n-
    493 }
    \n-
    \n-
    494
    \n-
    495 real_type _def0 = 0.0, _def = 0.0;
    \n-
    496 CountType _i;
    \n-
    497 Timer _watch;
    \n-\n-\n-
    500 bool _valid;
    \n-
    501 };
    \n-
    \n-
    502
    \n-
    503 protected:
    \n-
    504 std::shared_ptr<const LinearOperator<X,Y>> _op;
    \n-
    505 std::shared_ptr<Preconditioner<X,Y>> _prec;
    \n-
    506 std::shared_ptr<const ScalarProduct<X>> _sp;
    \n-\n-\n-\n-\n-
    511 };
    \n-
    \n-
    512
    \n-
    520 template <typename ISTLLinearSolver, typename BCRSMatrix>
    \n-
    \n-\n-
    522 {
    \n-
    523 public:
    \n-
    \n-
    524 static void setMatrix (ISTLLinearSolver& solver,
    \n-
    525 const BCRSMatrix& matrix)
    \n-
    526 {
    \n-
    527 static const bool is_direct_solver
    \n-\n-\n-\n-
    531 }
    \n-
    \n-
    532
    \n-
    533 protected:
    \n-
    538 template <bool is_direct_solver, typename Dummy = void>
    \n-
    \n-\n-
    540 {
    \n-
    \n-
    541 static void setMatrix (ISTLLinearSolver&,
    \n-
    542 const BCRSMatrix&)
    \n-
    543 {}
    \n-
    \n-
    544 };
    \n-
    \n-
    545
    \n-
    550 template <typename Dummy>
    \n-
    \n-
    551 struct Implementation<true,Dummy>
    \n-
    552 {
    \n-
    \n-
    553 static void setMatrix (ISTLLinearSolver& solver,
    \n-
    554 const BCRSMatrix& matrix)
    \n-
    555 {
    \n-
    556 solver.setMatrix(matrix);
    \n-
    557 }
    \n-
    \n-
    558 };
    \n-
    \n-
    559 };
    \n-
    \n-
    560
    \n-
    564}
    \n-
    565
    \n-
    566#endif
    \n-
    Define base class for scalar product and norm.
    \n-\n-
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n-
    Templates characterizing the type of a solver.
    \n-
    STL namespace.
    \n+
    116 size_type rows_, cols_;
    \n+
    117
    \n+
    118 };
    \n+
    \n+
    119
    \n+
    120
    \n+
    121} // end namespace Dune
    \n+
    122
    \n+
    123#endif
    \n
    Definition allocator.hh:11
    \n-
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n-
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    Thrown when a solver aborts due to some problem.
    Definition istlexception.hh:46
    \n-
    A linear operator.
    Definition operators.hh:67
    \n-
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n-
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n-
    Default implementation for the scalar case.
    Definition scalarproducts.hh:168
    \n-
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n-
    InverseOperatorResult()
    Default constructor.
    Definition solver.hh:50
    \n-
    double condition_estimate
    Estimate of condition number.
    Definition solver.hh:79
    \n-
    double elapsed
    Elapsed time in seconds.
    Definition solver.hh:82
    \n-
    int iterations
    Number of iterations.
    Definition solver.hh:67
    \n-
    double reduction
    Reduction achieved: .
    Definition solver.hh:70
    \n-
    void clear()
    Resets all data.
    Definition solver.hh:56
    \n-
    double conv_rate
    Convergence rate (average reduction per step)
    Definition solver.hh:76
    \n-
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n-
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n-
    void printHeader(std::ostream &s) const
    helper function for printing header of solver output
    Definition solver.hh:163
    \n-
    virtual ~InverseOperator()
    Destructor.
    Definition solver.hh:156
    \n-
    void printOutput(std::ostream &s, const CountType &iter, const DataType &norm) const
    helper function for printing solver output
    Definition solver.hh:185
    \n-
    void printOutput(std::ostream &s, const CountType &iter, const DataType &norm, const DataType &norm_old) const
    helper function for printing solver output
    Definition solver.hh:172
    \n-
    virtual void apply(X &x, Y &b, double reduction, InverseOperatorResult &res)=0
    apply inverse operator, with given convergence criteria.
    \n-
    Simd::Scalar< real_type > scalar_real_type
    scalar type underlying the field_type
    Definition solver.hh:114
    \n-
    Y range_type
    Type of the range of the operator to be inverted.
    Definition solver.hh:105
    \n-
    @ normSpacing
    Definition solver.hh:160
    \n-
    @ iterationSpacing
    Definition solver.hh:160
    \n-
    X domain_type
    Type of the domain of the operator to be inverted.
    Definition solver.hh:102
    \n-
    virtual void apply(X &x, Y &b, InverseOperatorResult &res)=0
    Apply inverse operator,.
    \n-
    X::field_type field_type
    The field type of the operator.
    Definition solver.hh:108
    \n-
    FieldTraits< field_type >::real_type real_type
    The real type of the field type (is the same if using real numbers, but differs for std::complex)
    Definition solver.hh:111
    \n-
    virtual SolverCategory::Category category() const =0
    Category of the solver (see SolverCategory::Category)
    \n-
    Base class for all implementations of iterative solvers.
    Definition solver.hh:203
    \n-
    IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Constructor.
    Definition solver.hh:313
    \n-
    IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Constructor.
    Definition solver.hh:290
    \n-
    virtual void apply(X &x, X &b, double reduction, InverseOperatorResult &res)
    Apply inverse operator with given reduction factor.
    Definition solver.hh:374
    \n-
    std::shared_ptr< const ScalarProduct< X > > _sp
    Definition solver.hh:506
    \n-
    IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, Y > > prec, scalar_real_type reduction, int maxit, int verbose)
    General constructor to initialize an iterative solver.
    Definition solver.hh:340
    \n-
    std::string name() const
    Definition solver.hh:388
    \n-
    IterativeSolver(const LinearOperator< X, Y > &op, Preconditioner< X, Y > &prec, scalar_real_type reduction, int maxit, int verbose)
    General constructor to initialize an iterative solver.
    Definition solver.hh:230
    \n-
    std::shared_ptr< const LinearOperator< X, Y > > _op
    Definition solver.hh:504
    \n-
    int _maxit
    Definition solver.hh:508
    \n-
    int _verbose
    Definition solver.hh:509
    \n-
    scalar_real_type _reduction
    Definition solver.hh:507
    \n-
    IterativeSolver(const LinearOperator< X, Y > &op, const ScalarProduct< X > &sp, Preconditioner< X, Y > &prec, scalar_real_type reduction, int maxit, int verbose)
    General constructor to initialize an iterative solver.
    Definition solver.hh:262
    \n-
    SolverCategory::Category _category
    Definition solver.hh:510
    \n-
    std::shared_ptr< Preconditioner< X, Y > > _prec
    Definition solver.hh:505
    \n-
    virtual SolverCategory::Category category() const
    Category of the solver (see SolverCategory::Category)
    Definition solver.hh:383
    \n-
    Class for controlling iterative methods.
    Definition solver.hh:411
    \n-
    Iteration(const IterativeSolver &parent, InverseOperatorResult &res)
    Definition solver.hh:413
    \n-
    Iteration(Iteration &&other)
    Definition solver.hh:428
    \n-
    InverseOperatorResult & _res
    Definition solver.hh:498
    \n-
    const IterativeSolver & _parent
    Definition solver.hh:499
    \n-
    Timer _watch
    Definition solver.hh:497
    \n-
    Iteration(const Iteration &)=delete
    \n-
    CountType _i
    Definition solver.hh:496
    \n-
    real_type _def0
    Definition solver.hh:495
    \n-
    bool step(CountType i, real_type def)
    registers the iteration step, checks for invalid defect norm and convergence.
    Definition solver.hh:455
    \n-
    void finalize()
    Definition solver.hh:480
    \n-
    real_type _def
    Definition solver.hh:495
    \n-
    ~Iteration()
    Definition solver.hh:440
    \n-
    bool _valid
    Definition solver.hh:500
    \n-
    Helper class for notifying a DUNE-ISTL linear solver about a change of the iteration matrix object in...
    Definition solver.hh:522
    \n-
    static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)
    Definition solver.hh:524
    \n-
    Implementation that works together with iterative ISTL solvers, e.g. Dune::CGSolver or Dune::BiCGSTAB...
    Definition solver.hh:540
    \n-
    static void setMatrix(ISTLLinearSolver &, const BCRSMatrix &)
    Definition solver.hh:541
    \n-
    static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)
    Definition solver.hh:553
    \n-
    Categories for the solvers.
    Definition solvercategory.hh:22
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n-
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n-
    Definition solvercategory.hh:54
    \n-
    Definition solvertype.hh:16
    \n+
    Stores the nonzero entries in a sparse matrix.
    Definition matrixindexset.hh:16
    \n+
    void resize(size_type rows, size_type cols)
    Reset the size of an index set.
    Definition matrixindexset.hh:31
    \n+
    MatrixIndexSet()
    Default constructor.
    Definition matrixindexset.hh:22
    \n+
    void add(size_type i, size_type j)
    Add an index to the index set.
    Definition matrixindexset.hh:38
    \n+
    size_type rows() const
    Return the number of rows.
    Definition matrixindexset.hh:52
    \n+
    std::size_t size_type
    Definition matrixindexset.hh:19
    \n+
    void exportIdx(MatrixType &matrix) const
    Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet.
    Definition matrixindexset.hh:90
    \n+
    MatrixIndexSet(size_type rows, size_type cols)
    Constructor setting the matrix size.
    Definition matrixindexset.hh:26
    \n+
    size_type rowsize(size_type row) const
    Return the number of entries in a given row.
    Definition matrixindexset.hh:56
    \n+
    size_type size() const
    Return the number of entries.
    Definition matrixindexset.hh:43
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,642 +1,156 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-solver.hh\n+matrixindexset.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5\n-6#ifndef DUNE_ISTL_SOLVER_HH\n-7#define DUNE_ISTL_SOLVER_HH\n-8\n-9#include \n-10#include \n-11#include \n-12#include \n+5#ifndef DUNE_ISTL_MATRIXINDEXSET_HH\n+6#define DUNE_ISTL_MATRIXINDEXSET_HH\n+7\n+8#include \n+9#include \n+10\n+11namespace _\bD_\bu_\bn_\be {\n+12\n 13\n-14#include \n-15#include \n-16#include \n-17#include \n-18#include \n-19#include \n+_\b1_\b5 class _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+16 {\n+17\n+18 public:\n+_\b1_\b9 typedef std::size_t _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n 20\n-21#include \"_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\"\n-22#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\"\n-23#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n-24#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n-25\n-26namespace _\bD_\bu_\bn_\be\n-27{\n-_\b4_\b7 struct _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-48 {\n-_\b5_\b0 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt ()\n-51 {\n-52 _\bc_\bl_\be_\ba_\br();\n-53 }\n+_\b2_\b2 _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt() : rows_(0), cols_(0)\n+23 {}\n+24\n+_\b2_\b6 _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bs, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be cols) : rows_(_\br_\bo_\bw_\bs), cols_(cols) {\n+27 indices_.resize(rows_);\n+28 }\n+29\n+_\b3_\b1 void _\br_\be_\bs_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bs, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be cols) {\n+32 rows_ = _\br_\bo_\bw_\bs;\n+33 cols_ = cols;\n+34 indices_.resize(rows_);\n+35 }\n+36\n+_\b3_\b8 void _\ba_\bd_\bd(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j) {\n+39 indices_[i].insert(j);\n+40 }\n+41\n+_\b4_\b3 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be() const {\n+44 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be entries = 0;\n+45 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b6_\b5 void import(const MatrixType& m, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rowOffset=0, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+colOffset=0) {\n+66\n+67 typedef typename MatrixType::row_type RowType;\n+68 typedef typename RowType::ConstIterator ColumnIterator;\n+69\n+70 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rowIdx=0; rowIdx\n-_\b9_\b9 class _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br {\n-100 public:\n-_\b1_\b0_\b2 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-103\n-_\b1_\b0_\b5 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-106\n-_\b1_\b0_\b8 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+72 const RowType& row = m[rowIdx];\n+73\n+74 ColumnIterator cIt = row.begin();\n+75 ColumnIterator cEndIt = row.end();\n+76\n+77 for(; cIt!=cEndIt; ++cIt)\n+78 _\ba_\bd_\bd(rowIdx+rowOffset, cIt.index()+colOffset);\n+79\n+80 }\n+81\n+82 }\n+83\n+89 template \n+_\b9_\b0 void _\be_\bx_\bp_\bo_\br_\bt_\bI_\bd_\bx(MatrixType& matrix) const {\n+91\n+92 matrix.setSize(rows_, cols_);\n+93 matrix.setBuildMode(MatrixType::random);\n+94\n+95 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i::iterator it = indices_[i].begin();\n+103 for (; it!=indices_[i].end(); ++it)\n+104 matrix.addindex(i, *it);\n+105\n+106 }\n+107\n+108 matrix.endindices();\n 109\n-_\b1_\b1_\b1 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-112\n-_\b1_\b1_\b4 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+110 }\n+111\n+112 private:\n+113\n+114 std::vector > indices_;\n 115\n-_\b1_\b2_\b8 virtual void _\ba_\bp_\bp_\bl_\by (X& x, Y& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res) = 0;\n-129\n-_\b1_\b4_\b3 virtual void _\ba_\bp_\bp_\bl_\by (X& x, Y& b, double reduction, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt&\n-res) = 0;\n-144\n-_\b1_\b4_\b6 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-147#ifdef DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE\n-148 {\n-149 DUNE_THROW(Dune::Exception,\"It is necessary to implement the category\n-method in a derived classes, in the future this method will pure virtual.\");\n-150 }\n-151#else\n-152 = 0;\n-153#endif\n-154\n-_\b1_\b5_\b6 virtual _\b~_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br () {}\n-157\n-158 protected:\n-159 // spacing values\n-_\b1_\b6_\b0 enum { _\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bS_\bp_\ba_\bc_\bi_\bn_\bg = 5 , _\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg = 16 };\n-161\n-_\b1_\b6_\b3 void _\bp_\br_\bi_\bn_\bt_\bH_\be_\ba_\bd_\be_\br(std::ostream& s) const\n-164 {\n-165 s << std::setw(_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << \" Iter\";\n-166 s << std::setw(_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << \"Defect\";\n-167 s << std::setw(_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << \"Rate\" << std::endl;\n-168 }\n-169\n-171 template \n-_\b1_\b7_\b2 void _\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt(std::ostream& s,\n-173 const CountType& iter,\n-174 const DataType& norm,\n-175 const DataType& norm_old) const\n-176 {\n-177 const DataType rate = norm/norm_old;\n-178 s << std::setw(_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << iter << \" \";\n-179 s << std::setw(_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << Simd::io(norm) << \" \";\n-180 s << std::setw(_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << Simd::io(rate) << std::endl;\n-181 }\n-182\n-184 template \n-_\b1_\b8_\b5 void _\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt(std::ostream& s,\n-186 const CountType& iter,\n-187 const DataType& norm) const\n-188 {\n-189 s << std::setw(_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << iter << \" \";\n-190 s << std::setw(_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << Simd::io(norm) << std::endl;\n-191 }\n-192 };\n-193\n-202 template\n-_\b2_\b0_\b3 class _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br{\n-204 public:\n-205 using typename _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-206 using typename _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-207 using typename _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-208 using typename _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-209 using typename _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-210\n-_\b2_\b3_\b0 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>& op, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>& prec,\n-_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose) :\n-231 _\b__\bo_\bp(stackobject_to_shared_ptr(op)),\n-232 _\b__\bp_\br_\be_\bc(stackobject_to_shared_ptr(prec)),\n-233 _\b__\bs_\bp(new _\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt),\n-234 _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn(reduction), _\b__\bm_\ba_\bx_\bi_\bt(maxit), _\b__\bv_\be_\br_\bb_\bo_\bs_\be(verbose), _\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::sequential)\n-235 {\n-236 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(op) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl)\n-237 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"LinearOperator has to be sequential!\");\n-238 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(prec) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl)\n-239 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"Preconditioner has to be sequential!\");\n-240 }\n-241\n-_\b2_\b6_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>& op, const _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>& sp,\n-_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>& prec,\n-263 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose) :\n-264 _\b__\bo_\bp(stackobject_to_shared_ptr(op)),\n-265 _\b__\bp_\br_\be_\bc(stackobject_to_shared_ptr(prec)),\n-266 _\b__\bs_\bp(stackobject_to_shared_ptr(sp)),\n-267 _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn(reduction), _\b__\bm_\ba_\bx_\bi_\bt(maxit), _\b__\bv_\be_\br_\bb_\bo_\bs_\be(verbose), _\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(op))\n-268 {\n-269 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(op) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(prec))\n-270 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"LinearOperator and Preconditioner must\n-have the same SolverCategory!\");\n-271 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(op) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(sp))\n-272 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"LinearOperator and ScalarProduct must\n-have the same SolverCategory!\");\n-273 }\n-274\n-_\b2_\b9_\b0 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op, std::\n-shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> > prec, const ParameterTree& configuration) :\n-291 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,_\bs_\bt_\bd::make_shared<_\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt>(),prec,\n-292 configuration._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be>(\"reduction\"),\n-293 configuration._\bg_\be_\bt(\"maxit\"),\n-294 configuration._\bg_\be_\bt(\"verbose\"))\n-295 {}\n-296\n-_\b3_\b1_\b3 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op, std::\n-shared_ptr > sp, std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> >\n-prec, const ParameterTree& configuration) :\n-314 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,\n-315 configuration._\bg_\be_\bt<_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be>(\"reduction\"),\n-316 configuration._\bg_\be_\bt(\"maxit\"),\n-317 configuration._\bg_\be_\bt(\"verbose\"))\n-318 {}\n-319\n-_\b3_\b4_\b0 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n-341 std::shared_ptr> sp,\n-342 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>> prec,\n-343 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose) :\n-344 _\b__\bo_\bp(op),\n-345 _\b__\bp_\br_\be_\bc(prec),\n-346 _\b__\bs_\bp(sp),\n-347 _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn(reduction), _\b__\bm_\ba_\bx_\bi_\bt(maxit), _\b__\bv_\be_\br_\bb_\bo_\bs_\be(verbose),\n-348 _\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*op))\n-349 {\n-350 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*op) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*prec))\n-351 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"LinearOperator and Preconditioner must\n-have the same SolverCategory!\");\n-352 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*op) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*sp))\n-353 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"LinearOperator and ScalarProduct must\n-have the same SolverCategory!\");\n-354 }\n-355\n-356 // #warning actually we want to have this as the default and just implement\n-the second one\n-357 // //! \\copydoc InverseOperator::apply(X&,Y&,InverseOperatorResult&)\n-358 // virtual void apply (X& x, Y& b, InverseOperatorResult& res)\n-359 // {\n-360 // apply(x,b,_reduction,res);\n-361 // }\n-362\n-363#ifndef DOXYGEN\n-364 // make sure the three-argument apply from the base class does not get\n-shadowed\n-365 // by the redefined four-argument version below\n-366 using _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n-367#endif\n-368\n-_\b3_\b7_\b4 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, double reduction, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt&\n-res)\n-375 {\n-376 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be saved_reduction = _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-377 _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn = reduction;\n-378 this->_\ba_\bp_\bp_\bl_\by(x,b,res);\n-379 _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn = saved_reduction;\n-380 }\n-381\n-_\b3_\b8_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-384 {\n-385 return _\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by;\n-386 }\n-387\n-_\b3_\b8_\b8 std::string _\bn_\ba_\bm_\be() const{\n-389 std::string _\bn_\ba_\bm_\be = className(*this);\n-390 return _\bn_\ba_\bm_\be.substr(0, _\bn_\ba_\bm_\be.find(\"<\"));\n-391 }\n-392\n-410 template\n-_\b4_\b1_\b1 class _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn {\n-412 public:\n-_\b4_\b1_\b3 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn(const _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br& parent, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-414 : _\b__\bi(0)\n-415 , _\b__\br_\be_\bs(res)\n-416 , _\b__\bp_\ba_\br_\be_\bn_\bt(parent)\n-417 , _\b__\bv_\ba_\bl_\bi_\bd(true)\n-418 {\n-419 res._\bc_\bl_\be_\ba_\br();\n-420 if(_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\bv_\be_\br_\bb_\bo_\bs_\be>0){\n-421 std::cout << \"=== \" << parent._\bn_\ba_\bm_\be() << std::endl;\n-422 if(_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\bv_\be_\br_\bb_\bo_\bs_\be > 1)\n-423 _\b__\bp_\ba_\br_\be_\bn_\bt._\bp_\br_\bi_\bn_\bt_\bH_\be_\ba_\bd_\be_\br(std::cout);\n-424 }\n-425 }\n-426\n-_\b4_\b2_\b7 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn(const _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn&) = delete;\n-_\b4_\b2_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn(_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn&& other)\n-429 : _\b__\bd_\be_\bf_\b0(other._\b__\bd_\be_\bf_\b0)\n-430 , _\b__\bd_\be_\bf(other._\b__\bd_\be_\bf)\n-431 , _\b__\bi(other._\b__\bi)\n-432 , _\b__\bw_\ba_\bt_\bc_\bh(other._\b__\bw_\ba_\bt_\bc_\bh)\n-433 , _\b__\br_\be_\bs(other._\b__\br_\be_\bs)\n-434 , _\b__\bp_\ba_\br_\be_\bn_\bt(other._\b__\bp_\ba_\br_\be_\bn_\bt)\n-435 , _\b__\bv_\ba_\bl_\bi_\bd(other._\b__\bv_\ba_\bl_\bi_\bd)\n-436 {\n-437 other._valid = false;\n-438 }\n-439\n-_\b4_\b4_\b0 _\b~_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn(){\n-441 if(_\b__\bv_\ba_\bl_\bi_\bd)\n-442 _\bf_\bi_\bn_\ba_\bl_\bi_\bz_\be();\n-443 }\n-444\n-_\b4_\b5_\b5 bool _\bs_\bt_\be_\bp(CountType i, _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def){\n-456 if (!Simd::allTrue(isFinite(def))) // check for inf or NaN\n-457 {\n-458 if (_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\bv_\be_\br_\bb_\bo_\bs_\be>0)\n-459 std::cout << \"=== \" << _\b__\bp_\ba_\br_\be_\bn_\bt._\bn_\ba_\bm_\be() << \": abort due to infinite or NaN\n-defect\"\n-460 << std::endl;\n-461 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt,\n-462 _\b__\bp_\ba_\br_\be_\bn_\bt._\bn_\ba_\bm_\be() << \": defect=\" << Simd::io(def)\n-463 << \" is infinite or NaN\");\n-464 }\n-465 if(i == 0)\n-466 _\b__\bd_\be_\bf_\b0 = def;\n-467 if(_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\bv_\be_\br_\bb_\bo_\bs_\be > 1){\n-468 if(i!=0)\n-469 _\b__\bp_\ba_\br_\be_\bn_\bt._\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt(std::cout,i,def,_\b__\bd_\be_\bf);\n-470 else\n-471 _\b__\bp_\ba_\br_\be_\bn_\bt._\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt(std::cout,i,def);\n-472 }\n-473 _\b__\bd_\be_\bf = def;\n-474 _\b__\bi = i;\n-475 _\b__\br_\be_\bs._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = (Simd::allTrue(def<_\b__\bd_\be_\bf_\b0*_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn ||\n-def<_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1E-30))); // convergence check\n-476 return _\b__\br_\be_\bs._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd;\n-477 }\n-478\n-479 protected:\n-_\b4_\b8_\b0 void _\bf_\bi_\bn_\ba_\bl_\bi_\bz_\be(){\n-481 _\b__\br_\be_\bs._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = (Simd::allTrue(_\b__\bd_\be_\bf<_\b__\bd_\be_\bf_\b0*_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn ||\n-_\b__\bd_\be_\bf<_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1E-30)));\n-482 _\b__\br_\be_\bs._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs = _\b__\bi;\n-483 _\b__\br_\be_\bs._\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn = static_cast(Simd::max(_\b__\bd_\be_\bf/_\b__\bd_\be_\bf_\b0));\n-484 _\b__\br_\be_\bs._\bc_\bo_\bn_\bv_\b__\br_\ba_\bt_\be = pow(_\b__\br_\be_\bs._\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn,1.0/_\b__\bi);\n-485 _\b__\br_\be_\bs._\be_\bl_\ba_\bp_\bs_\be_\bd = _\b__\bw_\ba_\bt_\bc_\bh.elapsed();\n-486 if (_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\bv_\be_\br_\bb_\bo_\bs_\be>0) // final print\n-487 {\n-488 std::cout << \"=== rate=\" << _\b__\br_\be_\bs._\bc_\bo_\bn_\bv_\b__\br_\ba_\bt_\be\n-489 << \", T=\" << _\b__\br_\be_\bs._\be_\bl_\ba_\bp_\bs_\be_\bd\n-490 << \", TIT=\" << _\b__\br_\be_\bs._\be_\bl_\ba_\bp_\bs_\be_\bd/_\b__\br_\be_\bs._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n-491 << \", IT=\" << _\b__\br_\be_\bs._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs << std::endl;\n-492 }\n-493 }\n-494\n-_\b4_\b9_\b5 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\b__\bd_\be_\bf_\b0 = 0.0, _\b__\bd_\be_\bf = 0.0;\n-_\b4_\b9_\b6 CountType _\b__\bi;\n-_\b4_\b9_\b7 Timer _\b__\bw_\ba_\bt_\bc_\bh;\n-_\b4_\b9_\b8 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& _\b__\br_\be_\bs;\n-_\b4_\b9_\b9 const _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br& _\b__\bp_\ba_\br_\be_\bn_\bt;\n-_\b5_\b0_\b0 bool _\b__\bv_\ba_\bl_\bi_\bd;\n-501 };\n-502\n-503 protected:\n-_\b5_\b0_\b4 std::shared_ptr> _\b__\bo_\bp;\n-_\b5_\b0_\b5 std::shared_ptr> _\b__\bp_\br_\be_\bc;\n-_\b5_\b0_\b6 std::shared_ptr> _\b__\bs_\bp;\n-_\b5_\b0_\b7 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n-_\b5_\b0_\b8 int _\b__\bm_\ba_\bx_\bi_\bt;\n-_\b5_\b0_\b9 int _\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n-_\b5_\b1_\b0 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by;\n-511 };\n-512\n-520 template \n-_\b5_\b2_\b1 class _\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-522 {\n-523 public:\n-_\b5_\b2_\b4 static void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx (ISTLLinearSolver& solver,\n-525 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& matrix)\n-526 {\n-527 static const bool is_direct_solver\n-528 = _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be;\n-529 _\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b,_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:\n-530_\b _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bs_\b__\bd_\bi_\br_\be_\bc_\bt_\b__\bs_\bo_\bl_\bv_\be_\br_\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(solver,matrix);\n-531 }\n-532\n-533 protected:\n-538 template \n-_\b5_\b3_\b9 struct _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn\n-540 {\n-_\b5_\b4_\b1 static void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx (ISTLLinearSolver&,\n-542 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx&)\n-543 {}\n-544 };\n-545\n-550 template \n-_\b5_\b5_\b1 struct _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn\n-552 {\n-_\b5_\b5_\b3 static void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx (ISTLLinearSolver& solver,\n-554 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& matrix)\n-555 {\n-556 solver.setMatrix(matrix);\n-557 }\n-558 };\n-559 };\n-560\n-564}\n-565\n-566#endif\n-_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n-Define base class for scalar product and norm.\n-_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\n-_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n-Define general, extensible interface for operators. The available\n-implementation wraps a matrix.\n-_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n-Templates characterizing the type of a solver.\n-_\bs_\bt_\bd\n-STL namespace.\n+116 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows_, cols_;\n+117\n+118 };\n+119\n+120\n+121} // end namespace Dune\n+122\n+123#endif\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt\n-Thrown when a solver aborts due to some problem.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-A linear operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Base class for scalar product and norm computation.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-Default implementation for the scalar case.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:168\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-InverseOperatorResult()\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Stores the nonzero entries in a sparse matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:16\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n+void resize(size_type rows, size_type cols)\n+Reset the size of an index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:31\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+MatrixIndexSet()\n Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:50\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\b__\be_\bs_\bt_\bi_\bm_\ba_\bt_\be\n-double condition_estimate\n-Estimate of condition number.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:79\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\be_\bl_\ba_\bp_\bs_\be_\bd\n-double elapsed\n-Elapsed time in seconds.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n-int iterations\n-Number of iterations.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn\n-double reduction\n-Reduction achieved: .\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bl_\be_\ba_\br\n-void clear()\n-Resets all data.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\b__\br_\ba_\bt_\be\n-double conv_rate\n-Convergence rate (average reduction per step)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n-bool converged\n-True if convergence criterion has been met.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Abstract base class for all solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bH_\be_\ba_\bd_\be_\br\n-void printHeader(std::ostream &s) const\n-helper function for printing header of solver output\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:163\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-virtual ~InverseOperator()\n-Destructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:156\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt\n-void printOutput(std::ostream &s, const CountType &iter, const DataType &norm)\n-const\n-helper function for printing solver output\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:185\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt\n-void printOutput(std::ostream &s, const CountType &iter, const DataType &norm,\n-const DataType &norm_old) const\n-helper function for printing solver output\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:172\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, Y &b, double reduction, InverseOperatorResult &res)=0\n-apply inverse operator, with given convergence criteria.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-Simd::Scalar< real_type > scalar_real_type\n-scalar type underlying the field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:114\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-Type of the range of the operator to be inverted.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:105\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg\n-@ normSpacing\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:160\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bS_\bp_\ba_\bc_\bi_\bn_\bg\n-@ iterationSpacing\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:160\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-Type of the domain of the operator to be inverted.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:102\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, Y &b, InverseOperatorResult &res)=0\n-Apply inverse operator,.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:108\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-FieldTraits< field_type >::real_type real_type\n-The real type of the field type (is the same if using real numbers, but differs\n-for std::complex)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:111\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const =0\n-Category of the solver (see SolverCategory::Category)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n-Base class for all implementations of iterative solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:203\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n-IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n-shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n-X > > prec, const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:313\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n-IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n-shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:290\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(X &x, X &b, double reduction, InverseOperatorResult &res)\n-Apply inverse operator with given reduction factor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:374\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp\n-std::shared_ptr< const ScalarProduct< X > > _sp\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:506\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n-IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n-shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n-Y > > prec, scalar_real_type reduction, int maxit, int verbose)\n-General constructor to initialize an iterative solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:340\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bn_\ba_\bm_\be\n-std::string name() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:388\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n-IterativeSolver(const LinearOperator< X, Y > &op, Preconditioner< X, Y > &prec,\n-scalar_real_type reduction, int maxit, int verbose)\n-General constructor to initialize an iterative solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:230\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp\n-std::shared_ptr< const LinearOperator< X, Y > > _op\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:504\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt\n-int _maxit\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:508\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be\n-int _verbose\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:509\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn\n-scalar_real_type _reduction\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:507\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n-IterativeSolver(const LinearOperator< X, Y > &op, const ScalarProduct< X > &sp,\n-Preconditioner< X, Y > &prec, scalar_real_type reduction, int maxit, int\n-verbose)\n-General constructor to initialize an iterative solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:262\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-SolverCategory::Category _category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:510\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc\n-std::shared_ptr< Preconditioner< X, Y > > _prec\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:505\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the solver (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:383\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-Class for controlling iterative methods.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:411\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-Iteration(const IterativeSolver &parent, InverseOperatorResult &res)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:413\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-Iteration(Iteration &&other)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:428\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\br_\be_\bs\n-InverseOperatorResult & _res\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:498\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bp_\ba_\br_\be_\bn_\bt\n-const IterativeSolver & _parent\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:499\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bw_\ba_\bt_\bc_\bh\n-Timer _watch\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:497\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-Iteration(const Iteration &)=delete\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bi\n-CountType _i\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:496\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bd_\be_\bf_\b0\n-real_type _def0\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:495\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\bt_\be_\bp\n-bool step(CountType i, real_type def)\n-registers the iteration step, checks for invalid defect norm and convergence.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:455\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bf_\bi_\bn_\ba_\bl_\bi_\bz_\be\n-void finalize()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:480\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bd_\be_\bf\n-real_type _def\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:495\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b~_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-~Iteration()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:440\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bv_\ba_\bl_\bi_\bd\n-bool _valid\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:500\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-Helper class for notifying a DUNE-ISTL linear solver about a change of the\n-iteration matrix object in...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:522\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:524\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn\n-Implementation that works together with iterative ISTL solvers, e.g. Dune::\n-CGSolver or Dune::BiCGSTAB...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:540\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-static void setMatrix(ISTLLinearSolver &, const BCRSMatrix &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:541\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bt_\br_\bu_\be_\b,_\b _\bD_\bu_\bm_\bm_\by_\b _\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:553\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Categories for the solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-static Category category(const OP &op, decltype(op.category()) *=nullptr)\n-Helperfunction to extract the solver category either from an enum, or from the\n-newly introduced virtu...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:54\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\ba_\bd_\bd\n+void add(size_type i, size_type j)\n+Add an index to the index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:38\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\br_\bo_\bw_\bs\n+size_type rows() const\n+Return the number of rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+std::size_t size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\be_\bx_\bp_\bo_\br_\bt_\bI_\bd_\bx\n+void exportIdx(MatrixType &matrix) const\n+Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:90\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+MatrixIndexSet(size_type rows, size_type cols)\n+Constructor setting the matrix size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:26\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\br_\bo_\bw_\bs_\bi_\bz_\be\n+size_type rowsize(size_type row) const\n+Return the number of entries in a given row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bs_\bi_\bz_\be\n+size_type size() const\n+Return the number of entries.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixindexset.hh:43\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00173.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00173.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: foreach.hh File Reference\n+dune-istl: solvers.hh File Reference\n \n \n \n \n \n \n \n@@ -70,58 +70,112 @@\n
    \n \n
    \n \n
    \n \n-
    foreach.hh File Reference
    \n+ \n
    \n
    \n-
    #include <type_traits>
    \n-#include <utility>
    \n-#include <cassert>
    \n+\n+

    Implementations of the inverse operator interface. \n+More...

    \n+
    #include <array>
    \n+#include <cmath>
    \n+#include <complex>
    \n+#include <iostream>
    \n+#include <memory>
    \n+#include <type_traits>
    \n+#include <vector>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/math.hh>
    \n+#include <dune/common/simd/io.hh>
    \n+#include <dune/common/simd/simd.hh>
    \n #include <dune/common/std/type_traits.hh>
    \n-#include <dune/common/diagonalmatrix.hh>
    \n-#include <dune/common/hybridutilities.hh>
    \n-#include <dune/common/indices.hh>
    \n-#include <dune/istl/bcrsmatrix.hh>
    \n-#include <dune/istl/scaledidmatrix.hh>
    \n+#include <dune/common/timer.hh>
    \n+#include <dune/istl/allocator.hh>
    \n+#include <dune/istl/bcrsmatrix.hh>
    \n+#include <dune/istl/eigenvalue/arpackpp.hh>
    \n+#include <dune/istl/istlexception.hh>
    \n+#include <dune/istl/operators.hh>
    \n+#include <dune/istl/preconditioner.hh>
    \n+#include <dune/istl/scalarproducts.hh>
    \n+#include <dune/istl/solver.hh>
    \n+#include <dune/istl/solverregistry.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+

    \n+Classes

    class  Dune::LoopSolver< X >
     Preconditioned loop solver. More...
     
    class  Dune::GradientSolver< X >
     gradient method More...
     
    class  Dune::CGSolver< X >
     conjugate gradient method More...
     
    class  Dune::BiCGSTABSolver< X >
     Bi-conjugate Gradient Stabilized (BiCG-STAB) More...
     
    class  Dune::MINRESSolver< X >
     Minimal Residual Method (MINRES) More...
     
    class  Dune::RestartedGMResSolver< X, Y, F >
     implements the Generalized Minimal Residual (GMRes) method More...
     
    class  Dune::RestartedFlexibleGMResSolver< X, Y, F >
     implements the Flexible Generalized Minimal Residual (FGMRes) method (right preconditioned) More...
     
    class  Dune::GeneralizedPCGSolver< X >
     Generalized preconditioned conjugate gradient solver. More...
     
    class  Dune::RestartedFCGSolver< X >
     Accelerated flexible conjugate gradient method. More...
     
    class  Dune::CompleteFCGSolver< X >
     Complete flexible conjugate gradient method. More...
     
    \n \n \n \n-\n-\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::ForEach
     
    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n Functions

    template<class Matrix >
    auto Dune::ForEach::rows (Matrix const &matrix)
     
    template<class Matrix >
    auto Dune::ForEach::cols (Matrix const &matrix)
     
    template<class Vector >
    auto Dune::ForEach::size (Vector const &vector)
     
    template<class Vector , class F >
    std::size_t Dune::flatVectorForEach (Vector &&vector, F &&f, std::size_t offset=0)
     Traverse a blocked vector and call a functor at each scalar entry.
     
    template<class Matrix , class F >
    std::pair< std::size_t, std::size_t > Dune::flatMatrixForEach (Matrix &&matrix, F &&f, std::size_t rowOffset=0, std::size_t colOffset=0)
     Traverse a blocked matrix and call a functor at each scalar entry.
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("loopsolver", defaultIterativeSolverCreator< Dune::LoopSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("gradientsolver", defaultIterativeSolverCreator< Dune::GradientSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("cgsolver", defaultIterativeSolverCreator< Dune::CGSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("bicgstabsolver", defaultIterativeSolverCreator< Dune::BiCGSTABSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("minressolver", defaultIterativeSolverCreator< Dune::MINRESSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("restartedgmressolver", defaultIterativeSolverCreator< Dune::RestartedGMResSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("restartedflexiblegmressolver", defaultIterativeSolverCreator< Dune::RestartedFlexibleGMResSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("generalizedpcgsolver", defaultIterativeSolverCreator< Dune::GeneralizedPCGSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("restartedfcgsolver", defaultIterativeSolverCreator< Dune::RestartedFCGSolver >())
     
     Dune::DUNE_REGISTER_ITERATIVE_SOLVER ("completefcgsolver", defaultIterativeSolverCreator< Dune::CompleteFCGSolver >())
     
    \n-
    \n+

    Detailed Description

    \n+

    Implementations of the inverse operator interface.

    \n+

    This file provides various preconditioned Krylov methods.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,51 +1,104 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-foreach.hh File Reference\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+solvers.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs\n+Implementations of the inverse operator interface. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n #include \n-#include \n-#include \n+#include \n+#include \n+#include \n+#include \n+#include \n #include \n-#include \n-#include \n-#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b._\bh_\bh>\n #include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be_\b/_\ba_\br_\bp_\ba_\bc_\bk_\bp_\bp_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n+C\bCl\bla\bas\bss\bse\bes\bs\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n+\u00a0 Preconditioned loop solver. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n+\u00a0 gradient method _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n+\u00a0 conjugate gradient method _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n+\u00a0 Bi-conjugate Gradient Stabilized (BiCG-STAB) _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n+\u00a0 Minimal Residual Method (MINRES) _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bF_\b _\b>\n+\u00a0 implements the Generalized Minimal Residual (GMRes) method _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bl_\be_\bx_\bi_\bb_\bl_\be_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b,_\b _\bF_\b _\b>\n+\u00a0 implements the Flexible Generalized Minimal Residual (FGMRes) method\n+ (right preconditioned) _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n+\u00a0 Generalized preconditioned conjugate gradient solver. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n+\u00a0 Accelerated flexible conjugate gradient method. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\bl_\be_\bt_\be_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b _\b>\n+\u00a0 Complete flexible conjugate gradient method. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh\n-\u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n- auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\br_\bo_\bw_\bs (_\bM_\ba_\bt_\br_\bi_\bx const\n- &matrix)\n-\u00a0\n-template\n- auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bc_\bo_\bl_\bs (_\bM_\ba_\bt_\br_\bi_\bx const\n- &matrix)\n-\u00a0\n-template\n- auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bs_\bi_\bz_\be (Vector const\n- &vector)\n-\u00a0\n-template\n- std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh (Vector\n- &&vector, F &&f, std::size_t offset=0)\n-\u00a0 Traverse a blocked vector and call a\n- functor at each scalar entry.\n-\u00a0\n-template\n-std::pair< std::size_t, std::size_t >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh (_\bM_\ba_\bt_\br_\bi_\bx\n- &&matrix, F &&f, std::size_t\n- rowOffset=0, std::size_t colOffset=0)\n-\u00a0 Traverse a blocked matrix and call a\n- functor at each scalar entry.\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"loopsolver\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"gradientsolver\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"cgsolver\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"bicgstabsolver\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"minressolver\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"restartedgmressolver\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"restartedflexiblegmressolver\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bl_\be_\bx_\bi_\bb_\bl_\be_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"generalizedpcgsolver\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"restartedfcgsolver\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"completefcgsolver\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\bl_\be_\bt_\be_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br >())\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Implementations of the inverse operator interface.\n+This file provides various preconditioned Krylov methods.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00173_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00173_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: foreach.hh Source File\n+dune-istl: solvers.hh Source File\n \n \n \n \n \n \n \n@@ -74,201 +74,1670 @@\n \n
    \n \n
    \n \n
    \n-
    foreach.hh
    \n+
    solvers.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3#pragma once
    \n-
    4
    \n-
    5#include<type_traits>
    \n-
    6#include<utility>
    \n-
    7#include<cassert>
    \n+
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n+
    4// vi: set et ts=4 sw=2 sts=2:
    \n+
    5
    \n+
    6#ifndef DUNE_ISTL_SOLVERS_HH
    \n+
    7#define DUNE_ISTL_SOLVERS_HH
    \n
    8
    \n-
    9#include<dune/common/std/type_traits.hh>
    \n-
    10#include<dune/common/diagonalmatrix.hh>
    \n-
    11#include<dune/common/hybridutilities.hh>
    \n-
    12#include<dune/common/indices.hh>
    \n-
    13
    \n-\n-\n+
    9#include <array>
    \n+
    10#include <cmath>
    \n+
    11#include <complex>
    \n+
    12#include <iostream>
    \n+
    13#include <memory>
    \n+
    14#include <type_traits>
    \n+
    15#include <vector>
    \n
    16
    \n-
    17namespace Dune{
    \n-
    18
    \n-
    19 namespace Impl {
    \n-
    20
    \n-
    21 // stolen from dune-functions: we call a type "scalar" if it does not support index accessing
    \n-
    22 template<class C>
    \n-
    23 using StaticIndexAccessConcept = decltype(std::declval<C>()[Dune::Indices::_0]);
    \n-
    24
    \n-
    25 template<class C>
    \n-
    26 using IsScalar = std::negation<Dune::Std::is_detected<StaticIndexAccessConcept, std::remove_reference_t<C>>>;
    \n-
    27
    \n-
    28 // Type trait for matrix types that supports
    \n-
    29 // - iteration done row-wise
    \n-
    30 // - sparse iteration over nonzero entries
    \n-
    31 template <class T>
    \n-
    32 struct IsRowMajorSparse : std::false_type {};
    \n+
    17#include <dune/common/exceptions.hh>
    \n+
    18#include <dune/common/math.hh>
    \n+
    19#include <dune/common/simd/io.hh>
    \n+
    20#include <dune/common/simd/simd.hh>
    \n+
    21#include <dune/common/std/type_traits.hh>
    \n+
    22#include <dune/common/timer.hh>
    \n+
    23
    \n+\n+\n+\n+\n+\n+\n+\n+
    31#include <dune/istl/solver.hh>
    \n+\n
    33
    \n-
    34 // This is supported by the following matrix types:
    \n-
    35 template <class B, class A>
    \n-
    36 struct IsRowMajorSparse<BCRSMatrix<B,A>> : std::true_type {};
    \n-
    37
    \n-
    38 template <class K, int n>
    \n-
    39 struct IsRowMajorSparse<DiagonalMatrix<K,n>> : std::true_type {};
    \n-
    40
    \n-
    41 template <class K, int n>
    \n-
    42 struct IsRowMajorSparse<ScaledIdentityMatrix<K,n>> : std::true_type {};
    \n-
    43
    \n-
    44
    \n-
    45 template <class Matrix>
    \n-
    46 auto rows(Matrix const& /*matrix*/, PriorityTag<2>) -> std::integral_constant<std::size_t, Matrix::N()> { return {}; }
    \n-
    47
    \n-
    48 template <class Matrix>
    \n-
    49 auto cols(Matrix const& /*matrix*/, PriorityTag<2>) -> std::integral_constant<std::size_t, Matrix::M()> { return {}; }
    \n-
    50
    \n-
    51 template <class Matrix>
    \n-
    52 auto rows(Matrix const& matrix, PriorityTag<1>) -> decltype(matrix.N()) { return matrix.N(); }
    \n-
    53
    \n-
    54 template <class Matrix>
    \n-
    55 auto cols(Matrix const& matrix, PriorityTag<1>) -> decltype(matrix.M()) { return matrix.M(); }
    \n-
    56
    \n-
    57 template <class Vector>
    \n-
    58 auto size(Vector const& /*vector*/, PriorityTag<2>) -> std::integral_constant<std::size_t, Vector::size()> { return {}; }
    \n-
    59
    \n-
    60 template <class Vector>
    \n-
    61 auto size(Vector const& vector, PriorityTag<1>) -> decltype(vector.size()) { return vector.size(); }
    \n-
    62
    \n-
    63
    \n-
    64 } // end namespace Impl
    \n+
    34namespace Dune {
    \n+
    46 //=====================================================================
    \n+
    47 // Implementation of this interface
    \n+
    48 //=====================================================================
    \n+
    49
    \n+
    58 template<class X>
    \n+
    \n+
    59 class LoopSolver : public IterativeSolver<X,X> {
    \n+
    60 public:
    \n+\n+\n+\n+\n
    65
    \n-
    \n-
    66namespace ForEach{
    \n-
    67
    \n-
    68 template <class Matrix>
    \n-
    69 auto rows(Matrix const& matrix) { return Impl::rows(matrix, PriorityTag<5>{}); }
    \n-
    70
    \n-
    71 template <class Matrix>
    \n-
    72 auto cols(Matrix const& matrix) { return Impl::cols(matrix, PriorityTag<5>{}); }
    \n-
    73
    \n-
    74 template <class Vector>
    \n-
    75 auto size(Vector const& vector) { return Impl::size(vector, PriorityTag<5>{}); }
    \n-
    76
    \n-
    77} // namespace ForEach
    \n-
    \n-
    78
    \n-
    79
    \n+
    66 // copy base class constructors
    \n+
    67 using IterativeSolver<X,X>::IterativeSolver;
    \n+
    68
    \n+
    69 // don't shadow four-argument version of apply defined in the base class
    \n+
    70 using IterativeSolver<X,X>::apply;
    \n+
    71
    \n+
    \n+
    73 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n+
    74 {
    \n+
    75 Iteration iteration(*this, res);
    \n+
    76 _prec->pre(x,b);
    \n+
    77
    \n+
    78 // overwrite b with defect
    \n+
    79 _op->applyscaleadd(-1,x,b);
    \n
    80
    \n-
    81
    \n-
    94template <class Vector, class F>
    \n-
    \n-
    95std::size_t flatVectorForEach(Vector&& vector, F&& f, std::size_t offset = 0)
    \n-
    96{
    \n-
    97 using V = std::decay_t<Vector>;
    \n-
    98 if constexpr( Impl::IsScalar<V>::value )
    \n-
    99 {
    \n-
    100 f(vector, offset);
    \n-
    101 return 1;
    \n-
    102 }
    \n-
    103 else
    \n-
    104 {
    \n-
    105 std::size_t idx = 0;
    \n-
    106 Hybrid::forEach(Dune::range(ForEach::size(vector)), [&](auto i) {
    \n-
    107 idx += flatVectorForEach(vector[i], f, offset + idx);
    \n-
    108 });
    \n-
    109 return idx;
    \n-
    110 }
    \n-
    111}
    \n-
    \n-
    112
    \n-
    113
    \n-
    131template <class Matrix, class F>
    \n-
    \n-
    132std::pair<std::size_t,std::size_t> flatMatrixForEach(Matrix&& matrix, F&& f, std::size_t rowOffset = 0, std::size_t colOffset = 0)
    \n-
    133{
    \n-
    134 using M = std::decay_t<Matrix>;
    \n-
    135 if constexpr ( Impl::IsScalar<M>::value )
    \n-
    136 {
    \n-
    137 f(matrix,rowOffset,colOffset);
    \n-
    138 return {1,1};
    \n-
    139 }
    \n-
    140 else
    \n-
    141 {
    \n-
    142 // if M supports the IsRowMajorSparse type trait: iterate just over the nonzero entries and
    \n-
    143 // and compute the flat row/col size directly
    \n-
    144 if constexpr ( Impl::IsRowMajorSparse<M>::value )
    \n-
    145 {
    \n-
    146 using Block = std::decay_t<decltype(matrix[0][0])>;
    \n-
    147
    \n-
    148 // find an existing block or at least try to create one
    \n-
    149 auto block = [&]{
    \n-
    150 for (auto const& row : matrix)
    \n-
    151 for (auto const& entry : row)
    \n-
    152 return entry;
    \n-
    153 return Block{};
    \n-
    154 }();
    \n-
    155
    \n-
    156 // compute the scalar size of the block
    \n-
    157 auto [blockRows, blockCols] = flatMatrixForEach(block, [](...){});
    \n-
    158
    \n-
    159 // check whether we have valid sized blocks
    \n-
    160 assert( ( blockRows!=0 or blockCols!=0 ) and "the block size can't be zero");
    \n-
    161
    \n-
    162 for ( auto rowIt = matrix.begin(); rowIt != matrix.end(); rowIt++ )
    \n-
    163 {
    \n-
    164 auto&& row = *rowIt;
    \n-
    165 auto rowIdx = rowIt.index();
    \n-
    166 for ( auto colIt = row.begin(); colIt != row.end(); colIt++ )
    \n-
    167 {
    \n-
    168 auto&& entry = *colIt;
    \n-
    169 auto colIdx = colIt.index();
    \n-
    170 auto [ dummyRows, dummyCols ] = flatMatrixForEach(entry, f, rowOffset + rowIdx*blockRows, colOffset + colIdx*blockCols);
    \n-
    171 assert( dummyRows == blockRows and dummyCols == blockCols and "we need the same size of each block in this matrix type");
    \n-
    172 }
    \n-
    173 }
    \n-
    174
    \n-
    175 return { matrix.N()*blockRows, matrix.M()*blockCols };
    \n-
    176 }
    \n-
    177 // all other matrix types are accessed index-wise with dynamic flat row/col counting
    \n-
    178 else
    \n-
    179 {
    \n-
    180 std::size_t r = 0, c = 0;
    \n-
    181 std::size_t nRows, nCols;
    \n-
    182
    \n-
    183 Hybrid::forEach(Dune::range(ForEach::rows(matrix)), [&](auto i) {
    \n-
    184 c = 0;
    \n-
    185 Hybrid::forEach(Dune::range(ForEach::cols(matrix)), [&](auto j) {
    \n-
    186 std::tie(nRows,nCols) = flatMatrixForEach(matrix[i][j], f, rowOffset + r, colOffset + c);
    \n-
    187 c += nCols;
    \n-
    188 });
    \n-
    189 r += nRows;
    \n-
    190 });
    \n-
    191 return {r,c};
    \n-
    192 }
    \n-
    193 }
    \n-
    194}
    \n-
    \n-
    195
    \n-
    196} // namespace Dune
    \n-
    Implementation of the BCRSMatrix class.
    \n-
    This file implements a quadratic matrix of fixed size which is a multiple of the identity.
    \n+
    81 // compute norm, \\todo parallelization
    \n+
    82 real_type def = _sp->norm(b);
    \n+
    83 if(iteration.step(0, def)){
    \n+
    84 _prec->post(x);
    \n+
    85 return;
    \n+
    86 }
    \n+
    87 // prepare preconditioner
    \n+
    88
    \n+
    89 // allocate correction vector
    \n+
    90 X v(x);
    \n+
    91
    \n+
    92 // iteration loop
    \n+
    93 int i=1;
    \n+
    94 for ( ; i<=_maxit; i++ )
    \n+
    95 {
    \n+
    96 v = 0; // clear correction
    \n+
    97 _prec->apply(v,b); // apply preconditioner
    \n+
    98 x += v; // update solution
    \n+
    99 _op->applyscaleadd(-1,v,b); // update defect
    \n+
    100 def=_sp->norm(b); // comp defect norm
    \n+
    101 if(iteration.step(i, def))
    \n+
    102 break;
    \n+
    103 }
    \n+
    104
    \n+
    105 // postprocess preconditioner
    \n+
    106 _prec->post(x);
    \n+
    107 }
    \n+
    \n+
    108
    \n+
    109 protected:
    \n+
    110 using IterativeSolver<X,X>::_op;
    \n+
    111 using IterativeSolver<X,X>::_prec;
    \n+
    112 using IterativeSolver<X,X>::_sp;
    \n+\n+
    114 using IterativeSolver<X,X>::_maxit;
    \n+
    115 using IterativeSolver<X,X>::_verbose;
    \n+\n+
    117 };
    \n+
    \n+
    118 DUNE_REGISTER_ITERATIVE_SOLVER("loopsolver", defaultIterativeSolverCreator<Dune::LoopSolver>());
    \n+
    119
    \n+
    120
    \n+
    121 // all these solvers are taken from the SUMO library
    \n+
    123 template<class X>
    \n+
    \n+
    124 class GradientSolver : public IterativeSolver<X,X> {
    \n+
    125 public:
    \n+\n+\n+\n+
    129 using typename IterativeSolver<X,X>::real_type;
    \n+
    130
    \n+
    131 // copy base class constructors
    \n+
    132 using IterativeSolver<X,X>::IterativeSolver;
    \n+
    133
    \n+
    134 // don't shadow four-argument version of apply defined in the base class
    \n+
    135 using IterativeSolver<X,X>::apply;
    \n+
    136
    \n+
    \n+
    142 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n+
    143 {
    \n+
    144 Iteration iteration(*this, res);
    \n+
    145 _prec->pre(x,b); // prepare preconditioner
    \n+
    146
    \n+
    147 _op->applyscaleadd(-1,x,b); // overwrite b with defec
    \n+
    148
    \n+
    149 real_type def = _sp->norm(b); // compute norm
    \n+
    150 if(iteration.step(0, def)){
    \n+
    151 _prec->post(x);
    \n+
    152 return;
    \n+
    153 }
    \n+
    154
    \n+
    155 X p(x); // create local vectors
    \n+
    156 X q(b);
    \n+
    157
    \n+
    158 int i=1; // loop variables
    \n+
    159 field_type lambda;
    \n+
    160 for ( ; i<=_maxit; i++ )
    \n+
    161 {
    \n+
    162 p = 0; // clear correction
    \n+
    163 _prec->apply(p,b); // apply preconditioner
    \n+
    164 _op->apply(p,q); // q=Ap
    \n+
    165 auto alpha = _sp->dot(q,p);
    \n+
    166 lambda = Simd::cond(def==field_type(0.),
    \n+
    167 field_type(0.), // no need for minimization if def is already 0
    \n+
    168 _sp->dot(p,b)/alpha); // minimization
    \n+
    169 x.axpy(lambda,p); // update solution
    \n+
    170 b.axpy(-lambda,q); // update defect
    \n+
    171
    \n+
    172 def =_sp->norm(b); // comp defect norm
    \n+
    173 if(iteration.step(i, def))
    \n+
    174 break;
    \n+
    175 }
    \n+
    176 // postprocess preconditioner
    \n+
    177 _prec->post(x);
    \n+
    178 }
    \n+
    \n+
    179
    \n+
    180 protected:
    \n+
    181 using IterativeSolver<X,X>::_op;
    \n+
    182 using IterativeSolver<X,X>::_prec;
    \n+
    183 using IterativeSolver<X,X>::_sp;
    \n+\n+
    185 using IterativeSolver<X,X>::_maxit;
    \n+
    186 using IterativeSolver<X,X>::_verbose;
    \n+\n+
    188 };
    \n+
    \n+
    189 DUNE_REGISTER_ITERATIVE_SOLVER("gradientsolver", defaultIterativeSolverCreator<Dune::GradientSolver>());
    \n+
    190
    \n+
    192 template<class X>
    \n+
    \n+
    193 class CGSolver : public IterativeSolver<X,X> {
    \n+
    194 public:
    \n+\n+\n+\n+
    198 using typename IterativeSolver<X,X>::real_type;
    \n+
    199
    \n+
    200 // copy base class constructors
    \n+
    201 using IterativeSolver<X,X>::IterativeSolver;
    \n+
    202
    \n+
    203 private:
    \n+\n+
    205
    \n+
    206 protected:
    \n+
    207
    \n+
    208 static constexpr bool enableConditionEstimate = (std::is_same_v<field_type,float> || std::is_same_v<field_type,double>);
    \n+
    209
    \n+
    210 public:
    \n+
    211
    \n+
    212 // don't shadow four-argument version of apply defined in the base class
    \n+
    213 using IterativeSolver<X,X>::apply;
    \n+
    214
    \n+
    \n+\n+
    223 scalar_real_type reduction, int maxit, int verbose, bool condition_estimate) : IterativeSolver<X,X>(op, prec, reduction, maxit, verbose),
    \n+
    224 condition_estimate_(condition_estimate)
    \n+
    225 {
    \n+
    226 if (condition_estimate && !enableConditionEstimate) {
    \n+
    227 condition_estimate_ = false;
    \n+
    228 std::cerr << "WARNING: Condition estimate was disabled. It is only available for double and float field types!" << std::endl;
    \n+
    229 }
    \n+
    230 }
    \n+
    \n+
    231
    \n+
    \n+\n+
    240 scalar_real_type reduction, int maxit, int verbose, bool condition_estimate) : IterativeSolver<X,X>(op, sp, prec, reduction, maxit, verbose),
    \n+
    241 condition_estimate_(condition_estimate)
    \n+
    242 {
    \n+
    243 if (condition_estimate && !(std::is_same<field_type,float>::value || std::is_same<field_type,double>::value)) {
    \n+
    244 condition_estimate_ = false;
    \n+
    245 std::cerr << "WARNING: Condition estimate was disabled. It is only available for double and float field types!" << std::endl;
    \n+
    246 }
    \n+
    247 }
    \n+
    \n+
    248
    \n+
    \n+
    256 CGSolver (std::shared_ptr<const LinearOperator<X,X>> op, std::shared_ptr<ScalarProduct<X>> sp,
    \n+
    257 std::shared_ptr<Preconditioner<X,X>> prec,
    \n+
    258 scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)
    \n+
    259 : IterativeSolver<X,X>(op, sp, prec, reduction, maxit, verbose),
    \n+
    260 condition_estimate_(condition_estimate)
    \n+
    261 {
    \n+
    262 if (condition_estimate && !(std::is_same<field_type,float>::value || std::is_same<field_type,double>::value)) {
    \n+
    263 condition_estimate_ = false;
    \n+
    264 std::cerr << "WARNING: Condition estimate was disabled. It is only available for double and float field types!" << std::endl;
    \n+
    265 }
    \n+
    266 }
    \n+
    \n+
    267
    \n+
    \n+
    279 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n+
    280 {
    \n+
    281 Iteration iteration(*this,res);
    \n+
    282 _prec->pre(x,b); // prepare preconditioner
    \n+
    283
    \n+
    284 _op->applyscaleadd(-1,x,b); // overwrite b with defect
    \n+
    285
    \n+
    286 real_type def = _sp->norm(b); // compute norm
    \n+
    287 if(iteration.step(0, def)){
    \n+
    288 _prec->post(x);
    \n+
    289 return;
    \n+
    290 }
    \n+
    291
    \n+
    292 X p(x); // the search direction
    \n+
    293 X q(x); // a temporary vector
    \n+
    294
    \n+
    295 // Remember lambda and beta values for condition estimate
    \n+
    296 std::vector<real_type> lambdas(0);
    \n+
    297 std::vector<real_type> betas(0);
    \n+
    298
    \n+
    299 // some local variables
    \n+
    300 field_type rho,rholast,lambda,alpha,beta;
    \n+
    301
    \n+
    302 // determine initial search direction
    \n+
    303 p = 0; // clear correction
    \n+
    304 _prec->apply(p,b); // apply preconditioner
    \n+
    305 rholast = _sp->dot(p,b); // orthogonalization
    \n+
    306
    \n+
    307 // the loop
    \n+
    308 int i=1;
    \n+
    309 for ( ; i<=_maxit; i++ )
    \n+
    310 {
    \n+
    311 // minimize in given search direction p
    \n+
    312 _op->apply(p,q); // q=Ap
    \n+
    313 alpha = _sp->dot(p,q); // scalar product
    \n+
    314 lambda = Simd::cond(def==field_type(0.), field_type(0.), rholast/alpha); // minimization
    \n+
    315 if constexpr (enableConditionEstimate)
    \n+
    316 if (condition_estimate_)
    \n+
    317 lambdas.push_back(std::real(lambda));
    \n+
    318 x.axpy(lambda,p); // update solution
    \n+
    319 b.axpy(-lambda,q); // update defect
    \n+
    320
    \n+
    321 // convergence test
    \n+
    322 def=_sp->norm(b); // comp defect norm
    \n+
    323 if(iteration.step(i, def))
    \n+
    324 break;
    \n+
    325
    \n+
    326 // determine new search direction
    \n+
    327 q = 0; // clear correction
    \n+
    328 _prec->apply(q,b); // apply preconditioner
    \n+
    329 rho = _sp->dot(q,b); // orthogonalization
    \n+
    330 beta = Simd::cond(def==field_type(0.), field_type(0.), rho/rholast); // scaling factor
    \n+
    331 if constexpr (enableConditionEstimate)
    \n+
    332 if (condition_estimate_)
    \n+
    333 betas.push_back(std::real(beta));
    \n+
    334 p *= beta; // scale old search direction
    \n+
    335 p += q; // orthogonalization with correction
    \n+
    336 rholast = rho; // remember rho for recurrence
    \n+
    337 }
    \n+
    338
    \n+
    339 _prec->post(x); // postprocess preconditioner
    \n+
    340
    \n+
    341 if (condition_estimate_) {
    \n+
    342#if HAVE_ARPACKPP
    \n+
    343 if constexpr (enableConditionEstimate) {
    \n+
    344 using std::sqrt;
    \n+
    345
    \n+
    346 // Build T matrix which has extreme eigenvalues approximating
    \n+
    347 // those of the original system
    \n+
    348 // (see Y. Saad, Iterative methods for sparse linear systems)
    \n+
    349
    \n+\n+
    351
    \n+
    352 for (auto row = T.createbegin(); row != T.createend(); ++row) {
    \n+
    353 if (row.index() > 0)
    \n+
    354 row.insert(row.index()-1);
    \n+
    355 row.insert(row.index());
    \n+
    356 if (row.index() < T.N() - 1)
    \n+
    357 row.insert(row.index()+1);
    \n+
    358 }
    \n+
    359 for (int row = 0; row < i; ++row) {
    \n+
    360 if (row > 0) {
    \n+
    361 T[row][row-1] = sqrt(betas[row-1]) / lambdas[row-1];
    \n+
    362 }
    \n+
    363
    \n+
    364 T[row][row] = 1.0 / lambdas[row];
    \n+
    365 if (row > 0) {
    \n+
    366 T[row][row] += betas[row-1] / lambdas[row-1];
    \n+
    367 }
    \n+
    368
    \n+
    369 if (row < i - 1) {
    \n+
    370 T[row][row+1] = sqrt(betas[row]) / lambdas[row];
    \n+
    371 }
    \n+
    372 }
    \n+
    373
    \n+
    374 // Compute largest and smallest eigenvalue of T matrix and return as estimate
    \n+\n+
    376
    \n+
    377 real_type eps = 0.0;
    \n+
    378 COND_VEC eigv;
    \n+
    379 real_type min_eigv, max_eigv;
    \n+
    380 arpack.computeSymMinMagnitude (eps, eigv, min_eigv);
    \n+
    381 arpack.computeSymMaxMagnitude (eps, eigv, max_eigv);
    \n+
    382
    \n+
    383 res.condition_estimate = max_eigv / min_eigv;
    \n+
    384
    \n+
    385 if (this->_verbose > 0) {
    \n+
    386 std::cout << "Min eigv estimate: " << Simd::io(min_eigv) << '\\n';
    \n+
    387 std::cout << "Max eigv estimate: " << Simd::io(max_eigv) << '\\n';
    \n+
    388 std::cout << "Condition estimate: "
    \n+
    389 << Simd::io(max_eigv / min_eigv) << std::endl;
    \n+
    390 }
    \n+
    391 }
    \n+
    392#else
    \n+
    393 std::cerr << "WARNING: Condition estimate was requested. This requires ARPACK, but ARPACK was not found!" << std::endl;
    \n+
    394#endif
    \n+
    395 }
    \n+
    396 }
    \n+
    \n+
    397
    \n+
    398 private:
    \n+
    399 bool condition_estimate_ = false;
    \n+
    400
    \n+
    401 // Matrix and vector types used for condition estimate
    \n+\n+\n+
    404
    \n+
    405 protected:
    \n+
    406 using IterativeSolver<X,X>::_op;
    \n+
    407 using IterativeSolver<X,X>::_prec;
    \n+
    408 using IterativeSolver<X,X>::_sp;
    \n+\n+
    410 using IterativeSolver<X,X>::_maxit;
    \n+
    411 using IterativeSolver<X,X>::_verbose;
    \n+\n+
    413 };
    \n+
    \n+
    414 DUNE_REGISTER_ITERATIVE_SOLVER("cgsolver", defaultIterativeSolverCreator<Dune::CGSolver>());
    \n+
    415
    \n+
    416 // Ronald Kriemanns BiCG-STAB implementation from Sumo
    \n+
    418 template<class X>
    \n+
    \n+
    419 class BiCGSTABSolver : public IterativeSolver<X,X> {
    \n+
    420 public:
    \n+\n+\n+\n+
    424 using typename IterativeSolver<X,X>::real_type;
    \n+
    425
    \n+
    426 // copy base class constructors
    \n+
    427 using IterativeSolver<X,X>::IterativeSolver;
    \n+
    428
    \n+
    429 // don't shadow four-argument version of apply defined in the base class
    \n+
    430 using IterativeSolver<X,X>::apply;
    \n+
    431
    \n+
    \n+
    439 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n+
    440 {
    \n+
    441 using std::abs;
    \n+
    442 const Simd::Scalar<real_type> EPSILON=1e-80;
    \n+
    443 using std::abs;
    \n+
    444 double it;
    \n+
    445 field_type rho, rho_new, alpha, beta, h, omega;
    \n+
    446 real_type norm;
    \n+
    447
    \n+
    448 //
    \n+
    449 // get vectors and matrix
    \n+
    450 //
    \n+
    451 X& r=b;
    \n+
    452 X p(x);
    \n+
    453 X v(x);
    \n+
    454 X t(x);
    \n+
    455 X y(x);
    \n+
    456 X rt(x);
    \n+
    457
    \n+
    458 //
    \n+
    459 // begin iteration
    \n+
    460 //
    \n+
    461
    \n+
    462 // r = r - Ax; rt = r
    \n+
    463 Iteration<double> iteration(*this,res);
    \n+
    464 _prec->pre(x,r); // prepare preconditioner
    \n+
    465
    \n+
    466 _op->applyscaleadd(-1,x,r); // overwrite b with defect
    \n+
    467
    \n+
    468 rt=r;
    \n+
    469
    \n+
    470 norm = _sp->norm(r);
    \n+
    471 if(iteration.step(0, norm)){
    \n+
    472 _prec->post(x);
    \n+
    473 return;
    \n+
    474 }
    \n+
    475 p=0;
    \n+
    476 v=0;
    \n+
    477
    \n+
    478 rho = 1;
    \n+
    479 alpha = 1;
    \n+
    480 omega = 1;
    \n+
    481
    \n+
    482 //
    \n+
    483 // iteration
    \n+
    484 //
    \n+
    485
    \n+
    486 for (it = 0.5; it < _maxit; it+=.5)
    \n+
    487 {
    \n+
    488 //
    \n+
    489 // preprocess, set vecsizes etc.
    \n+
    490 //
    \n+
    491
    \n+
    492 // rho_new = < rt , r >
    \n+
    493 rho_new = _sp->dot(rt,r);
    \n+
    494
    \n+
    495 // look if breakdown occurred
    \n+
    496 if (Simd::allTrue(abs(rho) <= EPSILON))
    \n+
    497 DUNE_THROW(SolverAbort,"breakdown in BiCGSTAB - rho "
    \n+
    498 << Simd::io(rho) << " <= EPSILON " << EPSILON
    \n+
    499 << " after " << it << " iterations");
    \n+
    500 if (Simd::allTrue(abs(omega) <= EPSILON))
    \n+
    501 DUNE_THROW(SolverAbort,"breakdown in BiCGSTAB - omega "
    \n+
    502 << Simd::io(omega) << " <= EPSILON " << EPSILON
    \n+
    503 << " after " << it << " iterations");
    \n+
    504
    \n+
    505
    \n+
    506 if (it<1)
    \n+
    507 p = r;
    \n+
    508 else
    \n+
    509 {
    \n+
    510 beta = Simd::cond(norm==field_type(0.),
    \n+
    511 field_type(0.), // no need for orthogonalization if norm is already 0
    \n+
    512 ( rho_new / rho ) * ( alpha / omega ));
    \n+
    513 p.axpy(-omega,v); // p = r + beta (p - omega*v)
    \n+
    514 p *= beta;
    \n+
    515 p += r;
    \n+
    516 }
    \n+
    517
    \n+
    518 // y = W^-1 * p
    \n+
    519 y = 0;
    \n+
    520 _prec->apply(y,p); // apply preconditioner
    \n+
    521
    \n+
    522 // v = A * y
    \n+
    523 _op->apply(y,v);
    \n+
    524
    \n+
    525 // alpha = rho_new / < rt, v >
    \n+
    526 h = _sp->dot(rt,v);
    \n+
    527
    \n+
    528 if ( Simd::allTrue(abs(h) < EPSILON) )
    \n+
    529 DUNE_THROW(SolverAbort,"abs(h) < EPSILON in BiCGSTAB - abs(h) "
    \n+
    530 << Simd::io(abs(h)) << " < EPSILON " << EPSILON
    \n+
    531 << " after " << it << " iterations");
    \n+
    532
    \n+
    533 alpha = Simd::cond(norm==field_type(0.),
    \n+
    534 field_type(0.),
    \n+
    535 rho_new / h);
    \n+
    536
    \n+
    537 // apply first correction to x
    \n+
    538 // x <- x + alpha y
    \n+
    539 x.axpy(alpha,y);
    \n+
    540
    \n+
    541 // r = r - alpha*v
    \n+
    542 r.axpy(-alpha,v);
    \n+
    543
    \n+
    544 //
    \n+
    545 // test stop criteria
    \n+
    546 //
    \n+
    547
    \n+
    548 norm = _sp->norm(r);
    \n+
    549 if(iteration.step(it, norm)){
    \n+
    550 break;
    \n+
    551 }
    \n+
    552
    \n+
    553 it+=.5;
    \n+
    554
    \n+
    555 // y = W^-1 * r
    \n+
    556 y = 0;
    \n+
    557 _prec->apply(y,r);
    \n+
    558
    \n+
    559 // t = A * y
    \n+
    560 _op->apply(y,t);
    \n+
    561
    \n+
    562 // omega = < t, r > / < t, t >
    \n+
    563 h = _sp->dot(t,t);
    \n+
    564 omega = Simd::cond(norm==field_type(0.),
    \n+
    565 field_type(0.),
    \n+
    566 _sp->dot(t,r)/h);
    \n+
    567
    \n+
    568 // apply second correction to x
    \n+
    569 // x <- x + omega y
    \n+
    570 x.axpy(omega,y);
    \n+
    571
    \n+
    572 // r = s - omega*t (remember : r = s)
    \n+
    573 r.axpy(-omega,t);
    \n+
    574
    \n+
    575 rho = rho_new;
    \n+
    576
    \n+
    577 //
    \n+
    578 // test stop criteria
    \n+
    579 //
    \n+
    580
    \n+
    581 norm = _sp->norm(r);
    \n+
    582 if(iteration.step(it, norm)){
    \n+
    583 break;
    \n+
    584 }
    \n+
    585 } // end for
    \n+
    586
    \n+
    587 _prec->post(x); // postprocess preconditioner
    \n+
    588 }
    \n+
    \n+
    589
    \n+
    590 protected:
    \n+
    591 using IterativeSolver<X,X>::_op;
    \n+
    592 using IterativeSolver<X,X>::_prec;
    \n+
    593 using IterativeSolver<X,X>::_sp;
    \n+\n+
    595 using IterativeSolver<X,X>::_maxit;
    \n+
    596 using IterativeSolver<X,X>::_verbose;
    \n+
    597 template<class CountType>
    \n+\n+
    599 };
    \n+
    \n+
    600 DUNE_REGISTER_ITERATIVE_SOLVER("bicgstabsolver", defaultIterativeSolverCreator<Dune::BiCGSTABSolver>());
    \n+
    601
    \n+
    608 template<class X>
    \n+
    \n+
    609 class MINRESSolver : public IterativeSolver<X,X> {
    \n+
    610 public:
    \n+\n+\n+\n+
    614 using typename IterativeSolver<X,X>::real_type;
    \n+
    615
    \n+
    616 // copy base class constructors
    \n+
    617 using IterativeSolver<X,X>::IterativeSolver;
    \n+
    618
    \n+
    619 // don't shadow four-argument version of apply defined in the base class
    \n+
    620 using IterativeSolver<X,X>::apply;
    \n+
    621
    \n+
    \n+
    627 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n+
    628 {
    \n+
    629 using std::sqrt;
    \n+
    630 using std::abs;
    \n+
    631 Iteration iteration(*this, res);
    \n+
    632 // prepare preconditioner
    \n+
    633 _prec->pre(x,b);
    \n+
    634
    \n+
    635 // overwrite rhs with defect
    \n+
    636 _op->applyscaleadd(-1.0,x,b); // b -= Ax
    \n+
    637
    \n+
    638 // some temporary vectors
    \n+
    639 X z(b), dummy(b);
    \n+
    640 z = 0.0;
    \n+
    641
    \n+
    642 // calculate preconditioned defect
    \n+
    643 _prec->apply(z,b); // r = W^-1 (b - Ax)
    \n+
    644 real_type def = _sp->norm(z);
    \n+
    645 if (iteration.step(0, def)){
    \n+
    646 _prec->post(x);
    \n+
    647 return;
    \n+
    648 }
    \n+
    649
    \n+
    650 // recurrence coefficients as computed in Lanczos algorithm
    \n+
    651 field_type alpha, beta;
    \n+
    652 // diagonal entries of givens rotation
    \n+
    653 std::array<real_type,2> c{{0.0,0.0}};
    \n+
    654 // off-diagonal entries of givens rotation
    \n+
    655 std::array<field_type,2> s{{0.0,0.0}};
    \n+
    656
    \n+
    657 // recurrence coefficients (column k of tridiag matrix T_k)
    \n+
    658 std::array<field_type,3> T{{0.0,0.0,0.0}};
    \n+
    659
    \n+
    660 // the rhs vector of the min problem
    \n+
    661 std::array<field_type,2> xi{{1.0,0.0}};
    \n+
    662
    \n+
    663 // beta is real and positive in exact arithmetic
    \n+
    664 // since it is the norm of the basis vectors (in unpreconditioned case)
    \n+
    665 beta = sqrt(_sp->dot(b,z));
    \n+
    666 field_type beta0 = beta;
    \n+
    667
    \n+
    668 // the search directions
    \n+
    669 std::array<X,3> p{{b,b,b}};
    \n+
    670 p[0] = 0.0;
    \n+
    671 p[1] = 0.0;
    \n+
    672 p[2] = 0.0;
    \n+
    673
    \n+
    674 // orthonormal basis vectors (in unpreconditioned case)
    \n+
    675 std::array<X,3> q{{b,b,b}};
    \n+
    676 q[0] = 0.0;
    \n+
    677 q[1] *= Simd::cond(def==field_type(0.),
    \n+
    678 field_type(0.),
    \n+
    679 real_type(1.0)/beta);
    \n+
    680 q[2] = 0.0;
    \n+
    681
    \n+
    682 z *= Simd::cond(def==field_type(0.),
    \n+
    683 field_type(0.),
    \n+
    684 real_type(1.0)/beta);
    \n+
    685
    \n+
    686 // the loop
    \n+
    687 int i = 1;
    \n+
    688 for( ; i<=_maxit; i++) {
    \n+
    689
    \n+
    690 dummy = z;
    \n+
    691 int i1 = i%3,
    \n+
    692 i0 = (i1+2)%3,
    \n+
    693 i2 = (i1+1)%3;
    \n+
    694
    \n+
    695 // symmetrically preconditioned Lanczos algorithm (see Greenbaum p.121)
    \n+
    696 _op->apply(z,q[i2]); // q[i2] = Az
    \n+
    697 q[i2].axpy(-beta,q[i0]);
    \n+
    698 // alpha is real since it is the diagonal entry of the hermitian tridiagonal matrix
    \n+
    699 // from the Lanczos Algorithm
    \n+
    700 // so the order in the scalar product doesn't matter even for the complex case
    \n+
    701 alpha = _sp->dot(z,q[i2]);
    \n+
    702 q[i2].axpy(-alpha,q[i1]);
    \n+
    703
    \n+
    704 z = 0.0;
    \n+
    705 _prec->apply(z,q[i2]);
    \n+
    706
    \n+
    707 // beta is real and positive in exact arithmetic
    \n+
    708 // since it is the norm of the basis vectors (in unpreconditioned case)
    \n+
    709 beta = sqrt(_sp->dot(q[i2],z));
    \n+
    710
    \n+
    711 q[i2] *= Simd::cond(def==field_type(0.),
    \n+
    712 field_type(0.),
    \n+
    713 real_type(1.0)/beta);
    \n+
    714 z *= Simd::cond(def==field_type(0.),
    \n+
    715 field_type(0.),
    \n+
    716 real_type(1.0)/beta);
    \n+
    717
    \n+
    718 // QR Factorization of recurrence coefficient matrix
    \n+
    719 // apply previous givens rotations to last column of T
    \n+
    720 T[1] = T[2];
    \n+
    721 if(i>2) {
    \n+
    722 T[0] = s[i%2]*T[1];
    \n+
    723 T[1] = c[i%2]*T[1];
    \n+
    724 }
    \n+
    725 if(i>1) {
    \n+
    726 T[2] = c[(i+1)%2]*alpha - s[(i+1)%2]*T[1];
    \n+
    727 T[1] = c[(i+1)%2]*T[1] + s[(i+1)%2]*alpha;
    \n+
    728 }
    \n+
    729 else
    \n+
    730 T[2] = alpha;
    \n+
    731
    \n+
    732 // update QR factorization
    \n+
    733 generateGivensRotation(T[2],beta,c[i%2],s[i%2]);
    \n+
    734 // to last column of T_k
    \n+
    735 T[2] = c[i%2]*T[2] + s[i%2]*beta;
    \n+
    736 // and to the rhs xi of the min problem
    \n+
    737 xi[i%2] = -s[i%2]*xi[(i+1)%2];
    \n+
    738 xi[(i+1)%2] *= c[i%2];
    \n+
    739
    \n+
    740 // compute correction direction
    \n+
    741 p[i2] = dummy;
    \n+
    742 p[i2].axpy(-T[1],p[i1]);
    \n+
    743 p[i2].axpy(-T[0],p[i0]);
    \n+
    744 p[i2] *= real_type(1.0)/T[2];
    \n+
    745
    \n+
    746 // apply correction/update solution
    \n+
    747 x.axpy(beta0*xi[(i+1)%2],p[i2]);
    \n+
    748
    \n+
    749 // remember beta_old
    \n+
    750 T[2] = beta;
    \n+
    751
    \n+
    752 // check for convergence
    \n+
    753 // the last entry in the rhs of the min-problem is the residual
    \n+
    754 def = abs(beta0*xi[i%2]);
    \n+
    755 if(iteration.step(i, def)){
    \n+
    756 break;
    \n+
    757 }
    \n+
    758 } // end for
    \n+
    759
    \n+
    760 // postprocess preconditioner
    \n+
    761 _prec->post(x);
    \n+
    762 }
    \n+
    \n+
    763
    \n+
    764 private:
    \n+
    765
    \n+
    766 void generateGivensRotation(field_type &dx, field_type &dy, real_type &cs, field_type &sn)
    \n+
    767 {
    \n+
    768 using std::sqrt;
    \n+
    769 using std::abs;
    \n+
    770 using std::max;
    \n+
    771 using std::min;
    \n+
    772 const real_type eps = 1e-15;
    \n+
    773 real_type norm_dx = abs(dx);
    \n+
    774 real_type norm_dy = abs(dy);
    \n+
    775 real_type norm_max = max(norm_dx, norm_dy);
    \n+
    776 real_type norm_min = min(norm_dx, norm_dy);
    \n+
    777 real_type temp = norm_min/norm_max;
    \n+
    778 // we rewrite the code in a vectorizable fashion
    \n+
    779 cs = Simd::cond(norm_dy < eps,
    \n+
    780 real_type(1.0),
    \n+
    781 Simd::cond(norm_dx < eps,
    \n+
    782 real_type(0.0),
    \n+
    783 Simd::cond(norm_dy > norm_dx,
    \n+
    784 real_type(1.0)/sqrt(real_type(1.0) + temp*temp)*temp,
    \n+
    785 real_type(1.0)/sqrt(real_type(1.0) + temp*temp)
    \n+
    786 )));
    \n+
    787 sn = Simd::cond(norm_dy < eps,
    \n+
    788 field_type(0.0),
    \n+
    789 Simd::cond(norm_dx < eps,
    \n+
    790 field_type(1.0),
    \n+
    791 Simd::cond(norm_dy > norm_dx,
    \n+
    792 // dy and dx are real in exact arithmetic
    \n+
    793 // thus dx*dy is real so we can explicitly enforce it
    \n+
    794 field_type(1.0)/sqrt(real_type(1.0) + temp*temp)*dx*dy/norm_dx/norm_dy,
    \n+
    795 // dy and dx is real in exact arithmetic
    \n+
    796 // so we don't have to conjugate both of them
    \n+
    797 field_type(1.0)/sqrt(real_type(1.0) + temp*temp)*dy/dx
    \n+
    798 )));
    \n+
    799 }
    \n+
    800
    \n+
    801 protected:
    \n+
    802 using IterativeSolver<X,X>::_op;
    \n+
    803 using IterativeSolver<X,X>::_prec;
    \n+
    804 using IterativeSolver<X,X>::_sp;
    \n+
    805 using IterativeSolver<X,X>::_reduction;
    \n+
    806 using IterativeSolver<X,X>::_maxit;
    \n+
    807 using IterativeSolver<X,X>::_verbose;
    \n+\n+
    809 };
    \n+
    \n+
    810 DUNE_REGISTER_ITERATIVE_SOLVER("minressolver", defaultIterativeSolverCreator<Dune::MINRESSolver>());
    \n+
    811
    \n+
    825 template<class X, class Y=X, class F = Y>
    \n+
    \n+\n+
    827 {
    \n+
    828 public:
    \n+\n+\n+\n+
    832 using typename IterativeSolver<X,Y>::real_type;
    \n+
    833
    \n+
    834 protected:
    \n+\n+
    836
    \n+\n+\n+
    841
    \n+
    842 public:
    \n+
    843
    \n+
    \n+
    850 RestartedGMResSolver (const LinearOperator<X,Y>& op, Preconditioner<X,Y>& prec, scalar_real_type reduction, int restart, int maxit, int verbose) :
    \n+
    851 IterativeSolver<X,Y>::IterativeSolver(op,prec,reduction,maxit,verbose),
    \n+
    852 _restart(restart)
    \n+
    853 {}
    \n+
    \n+
    854
    \n+
    \n+
    861 RestartedGMResSolver (const LinearOperator<X,Y>& op, const ScalarProduct<X>& sp, Preconditioner<X,Y>& prec, scalar_real_type reduction, int restart, int maxit, int verbose) :
    \n+
    862 IterativeSolver<X,Y>::IterativeSolver(op,sp,prec,reduction,maxit,verbose),
    \n+
    863 _restart(restart)
    \n+
    864 {}
    \n+
    \n+
    865
    \n+
    \n+
    878 RestartedGMResSolver (std::shared_ptr<const LinearOperator<X,Y> > op, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n+
    879 IterativeSolver<X,Y>::IterativeSolver(op,prec,configuration),
    \n+
    880 _restart(configuration.get<int>("restart"))
    \n+
    881 {}
    \n+
    \n+
    882
    \n+
    \n+
    883 RestartedGMResSolver (std::shared_ptr<const LinearOperator<X,Y> > op, std::shared_ptr<const ScalarProduct<X> > sp, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n+
    884 IterativeSolver<X,Y>::IterativeSolver(op,sp,prec,configuration),
    \n+
    885 _restart(configuration.get<int>("restart"))
    \n+
    886 {}
    \n+
    \n+
    887
    \n+
    \n+
    894 RestartedGMResSolver (std::shared_ptr<const LinearOperator<X,Y>> op,
    \n+
    895 std::shared_ptr<const ScalarProduct<X>> sp,
    \n+
    896 std::shared_ptr<Preconditioner<X,Y>> prec,
    \n+
    897 scalar_real_type reduction, int restart, int maxit, int verbose) :
    \n+
    898 IterativeSolver<X,Y>::IterativeSolver(op,sp,prec,reduction,maxit,verbose),
    \n+
    899 _restart(restart)
    \n+
    900 {}
    \n+
    \n+
    901
    \n+
    \n+
    910 virtual void apply (X& x, Y& b, InverseOperatorResult& res)
    \n+
    911 {
    \n+
    912 apply(x,b,Simd::max(_reduction),res);
    \n+
    913 }
    \n+
    \n+
    914
    \n+
    \n+
    923 virtual void apply (X& x, Y& b, [[maybe_unused]] double reduction, InverseOperatorResult& res)
    \n+
    924 {
    \n+
    925 using std::abs;
    \n+
    926 const Simd::Scalar<real_type> EPSILON = 1e-80;
    \n+
    927 const int m = _restart;
    \n+
    928 real_type norm = 0.0;
    \n+
    929 int j = 1;
    \n+
    930 std::vector<field_type,fAlloc> s(m+1), sn(m);
    \n+
    931 std::vector<real_type,rAlloc> cs(m);
    \n+
    932 // need copy of rhs if GMRes has to be restarted
    \n+
    933 Y b2(b);
    \n+
    934 // helper vector
    \n+
    935 Y w(b);
    \n+
    936 std::vector< std::vector<field_type,fAlloc> > H(m+1,s);
    \n+
    937 std::vector<F> v(m+1,b);
    \n+
    938
    \n+
    939 Iteration iteration(*this,res);
    \n+
    940
    \n+
    941 // clear solver statistics and set res.converged to false
    \n+
    942 _prec->pre(x,b);
    \n+
    943
    \n+
    944 // calculate defect and overwrite rhs with it
    \n+
    945 _op->applyscaleadd(-1.0,x,b); // b -= Ax
    \n+
    946 // calculate preconditioned defect
    \n+
    947 v[0] = 0.0; _prec->apply(v[0],b); // r = W^-1 b
    \n+
    948 norm = _sp->norm(v[0]);
    \n+
    949 if(iteration.step(0, norm)){
    \n+
    950 _prec->post(x);
    \n+
    951 return;
    \n+
    952 }
    \n+
    953
    \n+
    954 while(j <= _maxit && res.converged != true) {
    \n+
    955
    \n+
    956 int i = 0;
    \n+
    957 v[0] *= Simd::cond(norm==real_type(0.),
    \n+
    958 real_type(0.),
    \n+
    959 real_type(1.0)/norm);
    \n+
    960 s[0] = norm;
    \n+
    961 for(i=1; i<m+1; i++)
    \n+
    962 s[i] = 0.0;
    \n+
    963
    \n+
    964 for(i=0; i < m && j <= _maxit && res.converged != true; i++, j++) {
    \n+
    965 w = 0.0;
    \n+
    966 // use v[i+1] as temporary vector
    \n+
    967 v[i+1] = 0.0;
    \n+
    968 // do Arnoldi algorithm
    \n+
    969 _op->apply(v[i],v[i+1]);
    \n+
    970 _prec->apply(w,v[i+1]);
    \n+
    971 for(int k=0; k<i+1; k++) {
    \n+
    972 // notice that _sp->dot(v[k],w) = v[k]\\adjoint w
    \n+
    973 // so one has to pay attention to the order
    \n+
    974 // in the scalar product for the complex case
    \n+
    975 // doing the modified Gram-Schmidt algorithm
    \n+
    976 H[k][i] = _sp->dot(v[k],w);
    \n+
    977 // w -= H[k][i] * v[k]
    \n+
    978 w.axpy(-H[k][i],v[k]);
    \n+
    979 }
    \n+
    980 H[i+1][i] = _sp->norm(w);
    \n+
    981 if(Simd::allTrue(abs(H[i+1][i]) < EPSILON))
    \n+
    982 DUNE_THROW(SolverAbort,
    \n+
    983 "breakdown in GMRes - |w| == 0.0 after " << j << " iterations");
    \n+
    984
    \n+
    985 // normalize new vector
    \n+
    986 v[i+1] = w;
    \n+
    987 v[i+1] *= Simd::cond(norm==real_type(0.),
    \n+
    988 field_type(0.),
    \n+
    989 real_type(1.0)/H[i+1][i]);
    \n+
    990
    \n+
    991 // update QR factorization
    \n+
    992 for(int k=0; k<i; k++)
    \n+
    993 applyPlaneRotation(H[k][i],H[k+1][i],cs[k],sn[k]);
    \n+
    994
    \n+
    995 // compute new givens rotation
    \n+
    996 generatePlaneRotation(H[i][i],H[i+1][i],cs[i],sn[i]);
    \n+
    997 // finish updating QR factorization
    \n+
    998 applyPlaneRotation(H[i][i],H[i+1][i],cs[i],sn[i]);
    \n+
    999 applyPlaneRotation(s[i],s[i+1],cs[i],sn[i]);
    \n+
    1000
    \n+
    1001 // norm of the defect is the last component the vector s
    \n+
    1002 norm = abs(s[i+1]);
    \n+
    1003
    \n+
    1004 iteration.step(j, norm);
    \n+
    1005
    \n+
    1006 } // end for
    \n+
    1007
    \n+
    1008 // calculate update vector
    \n+
    1009 w = 0.0;
    \n+
    1010 update(w,i,H,s,v);
    \n+
    1011 // and current iterate
    \n+
    1012 x += w;
    \n+
    1013
    \n+
    1014 // restart GMRes if convergence was not achieved,
    \n+
    1015 // i.e. linear defect has not reached desired reduction
    \n+
    1016 // and if j < _maxit (do not restart on last iteration)
    \n+
    1017 if( res.converged != true && j < _maxit ) {
    \n+
    1018
    \n+
    1019 if(_verbose > 0)
    \n+
    1020 std::cout << "=== GMRes::restart" << std::endl;
    \n+
    1021 // get saved rhs
    \n+
    1022 b = b2;
    \n+
    1023 // calculate new defect
    \n+
    1024 _op->applyscaleadd(-1.0,x,b); // b -= Ax;
    \n+
    1025 // calculate preconditioned defect
    \n+
    1026 v[0] = 0.0;
    \n+
    1027 _prec->apply(v[0],b);
    \n+
    1028 norm = _sp->norm(v[0]);
    \n+
    1029 }
    \n+
    1030
    \n+
    1031 } //end while
    \n+
    1032
    \n+
    1033 // postprocess preconditioner
    \n+
    1034 _prec->post(x);
    \n+
    1035 }
    \n+
    \n+
    1036
    \n+
    1037 protected :
    \n+
    1038
    \n+
    \n+
    1039 void update(X& w, int i,
    \n+
    1040 const std::vector<std::vector<field_type,fAlloc> >& H,
    \n+
    1041 const std::vector<field_type,fAlloc>& s,
    \n+
    1042 const std::vector<X>& v) {
    \n+
    1043 // solution vector of the upper triangular system
    \n+
    1044 std::vector<field_type,fAlloc> y(s);
    \n+
    1045
    \n+
    1046 // backsolve
    \n+
    1047 for(int a=i-1; a>=0; a--) {
    \n+
    1048 field_type rhs(s[a]);
    \n+
    1049 for(int b=a+1; b<i; b++)
    \n+
    1050 rhs -= H[a][b]*y[b];
    \n+
    1051 y[a] = Simd::cond(rhs==field_type(0.),
    \n+
    1052 field_type(0.),
    \n+
    1053 rhs/H[a][a]);
    \n+
    1054
    \n+
    1055 // compute update on the fly
    \n+
    1056 // w += y[a]*v[a]
    \n+
    1057 w.axpy(y[a],v[a]);
    \n+
    1058 }
    \n+
    1059 }
    \n+
    \n+
    1060
    \n+
    1061 template<typename T>
    \n+
    \n+
    1062 typename std::enable_if<std::is_same<field_type,real_type>::value,T>::type conjugate(const T& t) {
    \n+
    1063 return t;
    \n+
    1064 }
    \n+
    \n+
    1065
    \n+
    1066 template<typename T>
    \n+
    \n+
    1067 typename std::enable_if<!std::is_same<field_type,real_type>::value,T>::type conjugate(const T& t) {
    \n+
    1068 using std::conj;
    \n+
    1069 return conj(t);
    \n+
    1070 }
    \n+
    \n+
    1071
    \n+
    1072 void
    \n+
    \n+\n+
    1074 {
    \n+
    1075 using std::sqrt;
    \n+
    1076 using std::abs;
    \n+
    1077 using std::max;
    \n+
    1078 using std::min;
    \n+
    1079 const real_type eps = 1e-15;
    \n+
    1080 real_type norm_dx = abs(dx);
    \n+
    1081 real_type norm_dy = abs(dy);
    \n+
    1082 real_type norm_max = max(norm_dx, norm_dy);
    \n+
    1083 real_type norm_min = min(norm_dx, norm_dy);
    \n+
    1084 real_type temp = norm_min/norm_max;
    \n+
    1085 // we rewrite the code in a vectorizable fashion
    \n+
    1086 cs = Simd::cond(norm_dy < eps,
    \n+
    1087 real_type(1.0),
    \n+
    1088 Simd::cond(norm_dx < eps,
    \n+
    1089 real_type(0.0),
    \n+
    1090 Simd::cond(norm_dy > norm_dx,
    \n+
    1091 real_type(1.0)/sqrt(real_type(1.0) + temp*temp)*temp,
    \n+
    1092 real_type(1.0)/sqrt(real_type(1.0) + temp*temp)
    \n+
    1093 )));
    \n+
    1094 sn = Simd::cond(norm_dy < eps,
    \n+
    1095 field_type(0.0),
    \n+
    1096 Simd::cond(norm_dx < eps,
    \n+
    1097 field_type(1.0),
    \n+
    1098 Simd::cond(norm_dy > norm_dx,
    \n+
    1099 field_type(1.0)/sqrt(real_type(1.0) + temp*temp)*dx*conjugate(dy)/norm_dx/norm_dy,
    \n+
    1100 field_type(1.0)/sqrt(real_type(1.0) + temp*temp)*conjugate(dy/dx)
    \n+
    1101 )));
    \n+
    1102 }
    \n+
    \n+
    1103
    \n+
    1104
    \n+
    1105 void
    \n+
    \n+\n+
    1107 {
    \n+
    1108 field_type temp = cs * dx + sn * dy;
    \n+
    1109 dy = -conjugate(sn) * dx + cs * dy;
    \n+
    1110 dx = temp;
    \n+
    1111 }
    \n+
    \n+
    1112
    \n+
    1113 using IterativeSolver<X,Y>::_op;
    \n+
    1114 using IterativeSolver<X,Y>::_prec;
    \n+
    1115 using IterativeSolver<X,Y>::_sp;
    \n+
    1116 using IterativeSolver<X,Y>::_reduction;
    \n+
    1117 using IterativeSolver<X,Y>::_maxit;
    \n+
    1118 using IterativeSolver<X,Y>::_verbose;
    \n+\n+\n+
    1121 };
    \n+
    \n+
    1122 DUNE_REGISTER_ITERATIVE_SOLVER("restartedgmressolver", defaultIterativeSolverCreator<Dune::RestartedGMResSolver>());
    \n+
    1123
    \n+
    1137 template<class X, class Y=X, class F = Y>
    \n+
    \n+\n+
    1139 {
    \n+
    1140 public:
    \n+\n+\n+\n+\n+
    1145
    \n+
    1146 private:
    \n+\n+
    1148
    \n+
    1150 using fAlloc = typename RestartedGMResSolver<X,Y>::fAlloc;
    \n+
    1152 using rAlloc = typename RestartedGMResSolver<X,Y>::rAlloc;
    \n+
    1153
    \n+
    1154 public:
    \n+
    1155 // copy base class constructors
    \n+
    1156 using RestartedGMResSolver<X,Y>::RestartedGMResSolver;
    \n+
    1157
    \n+
    1158 // don't shadow four-argument version of apply defined in the base class
    \n+
    1159 using RestartedGMResSolver<X,Y>::apply;
    \n+
    1160
    \n+
    \n+
    1169 void apply (X& x, Y& b, [[maybe_unused]] double reduction, InverseOperatorResult& res) override
    \n+
    1170 {
    \n+
    1171 using std::abs;
    \n+
    1172 const Simd::Scalar<real_type> EPSILON = 1e-80;
    \n+
    1173 const int m = _restart;
    \n+
    1174 real_type norm = 0.0;
    \n+
    1175 int i, j = 1, k;
    \n+
    1176 std::vector<field_type,fAlloc> s(m+1), sn(m);
    \n+
    1177 std::vector<real_type,rAlloc> cs(m);
    \n+
    1178 // helper vector
    \n+
    1179 Y tmp(b);
    \n+
    1180 std::vector< std::vector<field_type,fAlloc> > H(m+1,s);
    \n+
    1181 std::vector<F> v(m+1,b);
    \n+
    1182 std::vector<X> w(m+1,b);
    \n+
    1183
    \n+
    1184 Iteration iteration(*this,res);
    \n+
    1185 // setup preconditioner if it does something in pre
    \n+
    1186
    \n+
    1187 // calculate residual and overwrite a copy of the rhs with it
    \n+
    1188 _prec->pre(x, b);
    \n+
    1189 v[0] = b;
    \n+
    1190 _op->applyscaleadd(-1.0, x, v[0]); // b -= Ax
    \n+
    1191
    \n+
    1192 norm = _sp->norm(v[0]); // the residual norm
    \n+
    1193 if(iteration.step(0, norm)){
    \n+
    1194 _prec->post(x);
    \n+
    1195 return;
    \n+
    1196 }
    \n+
    1197
    \n+
    1198 // start iterations
    \n+
    1199 res.converged = false;;
    \n+
    1200 while(j <= _maxit && res.converged != true)
    \n+
    1201 {
    \n+
    1202 v[0] *= (1.0 / norm);
    \n+
    1203 s[0] = norm;
    \n+
    1204 for(i=1; i<m+1; ++i)
    \n+
    1205 s[i] = 0.0;
    \n+
    1206
    \n+
    1207 // inner loop
    \n+
    1208 for(i=0; i < m && j <= _maxit && res.converged != true; i++, j++)
    \n+
    1209 {
    \n+
    1210 w[i] = 0.0;
    \n+
    1211 // compute wi = M^-1*vi (also called zi)
    \n+
    1212 _prec->apply(w[i], v[i]);
    \n+
    1213 // compute vi = A*wi
    \n+
    1214 // use v[i+1] as temporary vector for w
    \n+
    1215 _op->apply(w[i], v[i+1]);
    \n+
    1216 // do Arnoldi algorithm
    \n+
    1217 for(int kk=0; kk<i+1; kk++)
    \n+
    1218 {
    \n+
    1219 // notice that _sp->dot(v[k],v[i+1]) = v[k]\\adjoint v[i+1]
    \n+
    1220 // so one has to pay attention to the order
    \n+
    1221 // in the scalar product for the complex case
    \n+
    1222 // doing the modified Gram-Schmidt algorithm
    \n+
    1223 H[kk][i] = _sp->dot(v[kk],v[i+1]);
    \n+
    1224 // w -= H[k][i] * v[kk]
    \n+
    1225 v[i+1].axpy(-H[kk][i], v[kk]);
    \n+
    1226 }
    \n+
    1227 H[i+1][i] = _sp->norm(v[i+1]);
    \n+
    1228 if(Simd::allTrue(abs(H[i+1][i]) < EPSILON))
    \n+
    1229 DUNE_THROW(SolverAbort, "breakdown in fGMRes - |w| (-> "
    \n+
    1230 << w[i] << ") == 0.0 after "
    \n+
    1231 << j << " iterations");
    \n+
    1232
    \n+
    1233 // v[i+1] = w*1/H[i+1][i]
    \n+
    1234 v[i+1] *= real_type(1.0)/H[i+1][i];
    \n+
    1235
    \n+
    1236 // update QR factorization
    \n+
    1237 for(k=0; k<i; k++)
    \n+
    1238 this->applyPlaneRotation(H[k][i],H[k+1][i],cs[k],sn[k]);
    \n+
    1239
    \n+
    1240 // compute new givens rotation
    \n+
    1241 this->generatePlaneRotation(H[i][i],H[i+1][i],cs[i],sn[i]);
    \n+
    1242
    \n+
    1243 // finish updating QR factorization
    \n+
    1244 this->applyPlaneRotation(H[i][i],H[i+1][i],cs[i],sn[i]);
    \n+
    1245 this->applyPlaneRotation(s[i],s[i+1],cs[i],sn[i]);
    \n+
    1246
    \n+
    1247 // norm of the residual is the last component of vector s
    \n+
    1248 using std::abs;
    \n+
    1249 norm = abs(s[i+1]);
    \n+
    1250 iteration.step(j, norm);
    \n+
    1251 } // end inner for loop
    \n+
    1252
    \n+
    1253 // calculate update vector
    \n+
    1254 tmp = 0.0;
    \n+
    1255 this->update(tmp, i, H, s, w);
    \n+
    1256 // and update current iterate
    \n+
    1257 x += tmp;
    \n+
    1258
    \n+
    1259 // restart fGMRes if convergence was not achieved,
    \n+
    1260 // i.e. linear residual has not reached desired reduction
    \n+
    1261 // and if still j < _maxit (do not restart on last iteration)
    \n+
    1262 if( res.converged != true && j < _maxit)
    \n+
    1263 {
    \n+
    1264 if (_verbose > 0)
    \n+
    1265 std::cout << "=== fGMRes::restart" << std::endl;
    \n+
    1266 // get rhs
    \n+
    1267 v[0] = b;
    \n+
    1268 // calculate new defect
    \n+
    1269 _op->applyscaleadd(-1.0, x,v[0]); // b -= Ax;
    \n+
    1270 // calculate preconditioned defect
    \n+
    1271 norm = _sp->norm(v[0]); // update the residual norm
    \n+
    1272 }
    \n+
    1273
    \n+
    1274 } // end outer while loop
    \n+
    1275
    \n+
    1276 // post-process preconditioner
    \n+
    1277 _prec->post(x);
    \n+
    1278 }
    \n+
    \n+
    1279
    \n+
    1280private:
    \n+
    1281 using RestartedGMResSolver<X,Y>::_op;
    \n+
    1282 using RestartedGMResSolver<X,Y>::_prec;
    \n+
    1283 using RestartedGMResSolver<X,Y>::_sp;
    \n+\n+\n+\n+\n+
    1288 using Iteration = typename IterativeSolver<X,X>::template Iteration<unsigned int>;
    \n+
    1289 };
    \n+
    \n+
    1290 DUNE_REGISTER_ITERATIVE_SOLVER("restartedflexiblegmressolver", defaultIterativeSolverCreator<Dune::RestartedFlexibleGMResSolver>());
    \n+
    1291
    \n+
    1305 template<class X>
    \n+
    \n+\n+
    1307 {
    \n+
    1308 public:
    \n+
    1309 using typename IterativeSolver<X,X>::domain_type;
    \n+
    1310 using typename IterativeSolver<X,X>::range_type;
    \n+
    1311 using typename IterativeSolver<X,X>::field_type;
    \n+
    1312 using typename IterativeSolver<X,X>::real_type;
    \n+
    1313
    \n+
    1314 private:
    \n+\n+
    1316
    \n+\n+
    1319
    \n+
    1320 public:
    \n+
    1321
    \n+
    1322 // don't shadow four-argument version of apply defined in the base class
    \n+
    1323 using IterativeSolver<X,X>::apply;
    \n+
    1324
    \n+
    \n+
    1331 GeneralizedPCGSolver (const LinearOperator<X,X>& op, Preconditioner<X,X>& prec, scalar_real_type reduction, int maxit, int verbose, int restart = 10) :
    \n+
    1332 IterativeSolver<X,X>::IterativeSolver(op,prec,reduction,maxit,verbose),
    \n+
    1333 _restart(restart)
    \n+
    1334 {}
    \n+
    \n+
    1335
    \n+
    \n+
    1343 GeneralizedPCGSolver (const LinearOperator<X,X>& op, const ScalarProduct<X>& sp, Preconditioner<X,X>& prec, scalar_real_type reduction, int maxit, int verbose, int restart = 10) :
    \n+
    1344 IterativeSolver<X,X>::IterativeSolver(op,sp,prec,reduction,maxit,verbose),
    \n+
    1345 _restart(restart)
    \n+
    1346 {}
    \n+
    \n+
    1347
    \n+
    1348
    \n+
    \n+
    1361 GeneralizedPCGSolver (std::shared_ptr<const LinearOperator<X,X> > op, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n+
    1362 IterativeSolver<X,X>::IterativeSolver(op,prec,configuration),
    \n+
    1363 _restart(configuration.get<int>("restart"))
    \n+
    1364 {}
    \n+
    \n+
    1365
    \n+
    \n+
    1366 GeneralizedPCGSolver (std::shared_ptr<const LinearOperator<X,X> > op, std::shared_ptr<const ScalarProduct<X> > sp, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n+
    1367 IterativeSolver<X,X>::IterativeSolver(op,sp,prec,configuration),
    \n+
    1368 _restart(configuration.get<int>("restart"))
    \n+
    1369 {}
    \n+
    \n+
    \n+
    1377 GeneralizedPCGSolver (std::shared_ptr<const LinearOperator<X,X>> op,
    \n+
    1378 std::shared_ptr<const ScalarProduct<X>> sp,
    \n+
    1379 std::shared_ptr<Preconditioner<X,X>> prec,
    \n+
    1380 scalar_real_type reduction, int maxit, int verbose,
    \n+
    1381 int restart = 10) :
    \n+
    1382 IterativeSolver<X,X>::IterativeSolver(op,sp,prec,reduction,maxit,verbose),
    \n+
    1383 _restart(restart)
    \n+
    1384 {}
    \n+
    \n+
    1385
    \n+
    \n+
    1391 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n+
    1392 {
    \n+
    1393 Iteration iteration(*this, res);
    \n+
    1394 _prec->pre(x,b); // prepare preconditioner
    \n+
    1395 _op->applyscaleadd(-1,x,b); // overwrite b with defect
    \n+
    1396
    \n+
    1397 std::vector<std::shared_ptr<X> > p(_restart);
    \n+
    1398 std::vector<field_type,fAlloc> pp(_restart);
    \n+
    1399 X q(x); // a temporary vector
    \n+
    1400 X prec_res(x); // a temporary vector for preconditioner output
    \n+
    1401
    \n+
    1402 p[0].reset(new X(x));
    \n+
    1403
    \n+
    1404 real_type def = _sp->norm(b); // compute norm
    \n+
    1405 if(iteration.step(0, def)){
    \n+
    1406 _prec->post(x);
    \n+
    1407 return;
    \n+
    1408 }
    \n+
    1409 // some local variables
    \n+
    1410 field_type rho, lambda;
    \n+
    1411
    \n+
    1412 int i=0;
    \n+
    1413 int ii=0;
    \n+
    1414 // determine initial search direction
    \n+
    1415 *(p[0]) = 0; // clear correction
    \n+
    1416 _prec->apply(*(p[0]),b); // apply preconditioner
    \n+
    1417 rho = _sp->dot(*(p[0]),b); // orthogonalization
    \n+
    1418 _op->apply(*(p[0]),q); // q=Ap
    \n+
    1419 pp[0] = _sp->dot(*(p[0]),q); // scalar product
    \n+
    1420 lambda = rho/pp[0]; // minimization
    \n+
    1421 x.axpy(lambda,*(p[0])); // update solution
    \n+
    1422 b.axpy(-lambda,q); // update defect
    \n+
    1423
    \n+
    1424 // convergence test
    \n+
    1425 def=_sp->norm(b); // comp defect norm
    \n+
    1426 ++i;
    \n+
    1427 if(iteration.step(i, def)){
    \n+
    1428 _prec->post(x);
    \n+
    1429 return;
    \n+
    1430 }
    \n+
    1431
    \n+
    1432 while(i<_maxit) {
    \n+
    1433 // the loop
    \n+
    1434 int end=std::min(_restart, _maxit-i+1);
    \n+
    1435 for (ii=1; ii<end; ++ii )
    \n+
    1436 {
    \n+
    1437 //std::cout<<" ii="<<ii<<" i="<<i<<std::endl;
    \n+
    1438 // compute next conjugate direction
    \n+
    1439 prec_res = 0; // clear correction
    \n+
    1440 _prec->apply(prec_res,b); // apply preconditioner
    \n+
    1441
    \n+
    1442 p[ii].reset(new X(prec_res));
    \n+
    1443 _op->apply(prec_res, q);
    \n+
    1444
    \n+
    1445 for(int j=0; j<ii; ++j) {
    \n+
    1446 rho =_sp->dot(q,*(p[j]))/pp[j];
    \n+
    1447 p[ii]->axpy(-rho, *(p[j]));
    \n+
    1448 }
    \n+
    1449
    \n+
    1450 // minimize in given search direction
    \n+
    1451 _op->apply(*(p[ii]),q); // q=Ap
    \n+
    1452 pp[ii] = _sp->dot(*(p[ii]),q); // scalar product
    \n+
    1453 rho = _sp->dot(*(p[ii]),b); // orthogonalization
    \n+
    1454 lambda = rho/pp[ii]; // minimization
    \n+
    1455 x.axpy(lambda,*(p[ii])); // update solution
    \n+
    1456 b.axpy(-lambda,q); // update defect
    \n+
    1457
    \n+
    1458 // convergence test
    \n+
    1459 def = _sp->norm(b); // comp defect norm
    \n+
    1460
    \n+
    1461 ++i;
    \n+
    1462 iteration.step(i, def);
    \n+
    1463 }
    \n+
    1464 if(res.converged)
    \n+
    1465 break;
    \n+
    1466 if(end==_restart) {
    \n+
    1467 *(p[0])=*(p[_restart-1]);
    \n+
    1468 pp[0]=pp[_restart-1];
    \n+
    1469 }
    \n+
    1470 }
    \n+
    1471
    \n+
    1472 // postprocess preconditioner
    \n+
    1473 _prec->post(x);
    \n+
    1474
    \n+
    1475 }
    \n+
    \n+
    1476
    \n+
    1477 private:
    \n+
    1478 using IterativeSolver<X,X>::_op;
    \n+
    1479 using IterativeSolver<X,X>::_prec;
    \n+
    1480 using IterativeSolver<X,X>::_sp;
    \n+
    1481 using IterativeSolver<X,X>::_reduction;
    \n+
    1482 using IterativeSolver<X,X>::_maxit;
    \n+
    1483 using IterativeSolver<X,X>::_verbose;
    \n+
    1484 using Iteration = typename IterativeSolver<X,X>::template Iteration<unsigned int>;
    \n+
    1485 int _restart;
    \n+
    1486 };
    \n+
    \n+
    1487 DUNE_REGISTER_ITERATIVE_SOLVER("generalizedpcgsolver", defaultIterativeSolverCreator<Dune::GeneralizedPCGSolver>());
    \n+
    1488
    \n+
    1500 template<class X>
    \n+
    \n+\n+
    1502 public:
    \n+
    1503 using typename IterativeSolver<X,X>::domain_type;
    \n+
    1504 using typename IterativeSolver<X,X>::range_type;
    \n+
    1505 using typename IterativeSolver<X,X>::field_type;
    \n+
    1506 using typename IterativeSolver<X,X>::real_type;
    \n+
    1507
    \n+
    1508 private:
    \n+\n+
    1510
    \n+
    1511 public:
    \n+
    1512 // don't shadow four-argument version of apply defined in the base class
    \n+
    1513 using IterativeSolver<X,X>::apply;
    \n+
    \n+\n+
    1520 scalar_real_type reduction, int maxit, int verbose, int mmax = 10) : IterativeSolver<X,X>(op, prec, reduction, maxit, verbose), _mmax(mmax)
    \n+
    1521 {
    \n+
    1522 }
    \n+
    \n+
    1523
    \n+
    \n+\n+
    1530 scalar_real_type reduction, int maxit, int verbose, int mmax = 10) : IterativeSolver<X,X>(op, sp, prec, reduction, maxit, verbose), _mmax(mmax)
    \n+
    1531 {
    \n+
    1532 }
    \n+
    \n+
    1533
    \n+
    \n+
    1539 RestartedFCGSolver (std::shared_ptr<const LinearOperator<X,X>> op,
    \n+
    1540 std::shared_ptr<const ScalarProduct<X>> sp,
    \n+
    1541 std::shared_ptr<Preconditioner<X,X>> prec,
    \n+
    1542 scalar_real_type reduction, int maxit, int verbose,
    \n+
    1543 int mmax = 10)
    \n+
    1544 : IterativeSolver<X,X>(op, sp, prec, reduction, maxit, verbose), _mmax(mmax)
    \n+
    1545 {}
    \n+
    \n+
    1546
    \n+
    \n+
    1559 RestartedFCGSolver (std::shared_ptr<const LinearOperator<X,X>> op,
    \n+
    1560 std::shared_ptr<Preconditioner<X,X>> prec,
    \n+
    1561 const ParameterTree& config)
    \n+
    1562 : IterativeSolver<X,X>(op, prec, config), _mmax(config.get("mmax", 10))
    \n+
    1563 {}
    \n+
    \n+
    1564
    \n+
    \n+
    1565 RestartedFCGSolver (std::shared_ptr<const LinearOperator<X,X>> op,
    \n+
    1566 std::shared_ptr<const ScalarProduct<X>> sp,
    \n+
    1567 std::shared_ptr<Preconditioner<X,X>> prec,
    \n+
    1568 const ParameterTree& config)
    \n+
    1569 : IterativeSolver<X,X>(op, sp, prec, config), _mmax(config.get("mmax", 10))
    \n+
    1570 {}
    \n+
    \n+
    1571
    \n+
    \n+
    1584 virtual void apply (X& x, X& b, InverseOperatorResult& res)
    \n+
    1585 {
    \n+\n+
    1587 res.clear();
    \n+
    1588 Iteration iteration(*this,res);
    \n+
    1589 _prec->pre(x,b); // prepare preconditioner
    \n+
    1590 _op->applyscaleadd(-1,x,b); // overwrite b with defect
    \n+
    1591
    \n+
    1592 //arrays for interim values:
    \n+
    1593 std::vector<X> d(_mmax+1, x); // array for directions
    \n+
    1594 std::vector<X> Ad(_mmax+1, x); // array for Ad[i]
    \n+
    1595 std::vector<field_type,rAlloc> ddotAd(_mmax+1,0); // array for <d[i],Ad[i]>
    \n+
    1596 X w(x);
    \n+
    1597
    \n+
    1598 real_type def = _sp->norm(b); // compute norm
    \n+
    1599 if(iteration.step(0, def)){
    \n+
    1600 _prec->post(x);
    \n+
    1601 return;
    \n+
    1602 }
    \n+
    1603
    \n+
    1604 // some local variables
    \n+
    1605 field_type alpha;
    \n+
    1606
    \n+
    1607 // the loop
    \n+
    1608 int i=1;
    \n+
    1609 int i_bounded=0;
    \n+
    1610 while(i<=_maxit && !res.converged) {
    \n+
    1611 for (; i_bounded <= _mmax && i<= _maxit; i_bounded++) {
    \n+
    1612 d[i_bounded] = 0; // reset search direction
    \n+
    1613 _prec->apply(d[i_bounded], b); // apply preconditioner
    \n+
    1614 w = d[i_bounded]; // copy of current d[i]
    \n+
    1615 // orthogonalization with previous directions
    \n+
    1616 orthogonalizations(i_bounded,Ad,w,ddotAd,d);
    \n+
    1617
    \n+
    1618 //saving interim values for future calculating
    \n+
    1619 _op->apply(d[i_bounded], Ad[i_bounded]); // save Ad[i]
    \n+
    1620 ddotAd[i_bounded]=_sp->dot(d[i_bounded],Ad[i_bounded]); // save <d[i],Ad[i]>
    \n+
    1621 alpha = _sp->dot(d[i_bounded], b)/ddotAd[i_bounded]; // <d[i],b>/<d[i],Ad[i]>
    \n+
    1622
    \n+
    1623 //update solution and defect
    \n+
    1624 x.axpy(alpha, d[i_bounded]);
    \n+
    1625 b.axpy(-alpha, Ad[i_bounded]);
    \n+
    1626
    \n+
    1627 // convergence test
    \n+
    1628 def = _sp->norm(b); // comp defect norm
    \n+
    1629
    \n+
    1630 iteration.step(i, def);
    \n+
    1631 i++;
    \n+
    1632 }
    \n+
    1633 //restart: exchange first and last stored values
    \n+
    1634 cycle(Ad,d,ddotAd,i_bounded);
    \n+
    1635 }
    \n+
    1636
    \n+
    1637 //correct i which is wrong if convergence was not achieved.
    \n+
    1638 i=std::min(_maxit,i);
    \n+
    1639
    \n+
    1640 _prec->post(x); // postprocess preconditioner
    \n+
    1641 }
    \n+
    \n+
    1642
    \n+
    1643 private:
    \n+
    1644 //This function is called every iteration to orthogonalize against the last search directions
    \n+
    1645 virtual void orthogonalizations(const int& i_bounded,const std::vector<X>& Ad, const X& w, const std::vector<field_type,ReboundAllocatorType<X,field_type>>& ddotAd,std::vector<X>& d) {
    \n+
    1646 // The RestartedFCGSolver uses only values with lower array index;
    \n+
    1647 for (int k = 0; k < i_bounded; k++) {
    \n+
    1648 d[i_bounded].axpy(-_sp->dot(Ad[k], w) / ddotAd[k], d[k]); // d[i] -= <<Ad[k],w>/<d[k],Ad[k]>>d[k]
    \n+
    1649 }
    \n+
    1650 }
    \n+
    1651
    \n+
    1652 // This function is called every mmax iterations to handle limited array sizes.
    \n+
    1653 virtual void cycle(std::vector<X>& Ad,std::vector<X>& d,std::vector<field_type,ReboundAllocatorType<X,field_type> >& ddotAd,int& i_bounded) {
    \n+
    1654 // Reset loop index and exchange the first and last arrays
    \n+
    1655 i_bounded = 1;
    \n+
    1656 std::swap(Ad[0], Ad[_mmax]);
    \n+
    1657 std::swap(d[0], d[_mmax]);
    \n+
    1658 std::swap(ddotAd[0], ddotAd[_mmax]);
    \n+
    1659 }
    \n+
    1660
    \n+
    1661 protected:
    \n+\n+
    1663 using IterativeSolver<X,X>::_op;
    \n+
    1664 using IterativeSolver<X,X>::_prec;
    \n+
    1665 using IterativeSolver<X,X>::_sp;
    \n+
    1666 using IterativeSolver<X,X>::_reduction;
    \n+
    1667 using IterativeSolver<X,X>::_maxit;
    \n+
    1668 using IterativeSolver<X,X>::_verbose;
    \n+\n+
    1670 };
    \n+
    \n+
    1671 DUNE_REGISTER_ITERATIVE_SOLVER("restartedfcgsolver", defaultIterativeSolverCreator<Dune::RestartedFCGSolver>());
    \n+
    1672
    \n+
    1679 template<class X>
    \n+
    \n+\n+
    1681 public:
    \n+\n+
    1683 using typename RestartedFCGSolver<X>::range_type;
    \n+
    1684 using typename RestartedFCGSolver<X>::field_type;
    \n+
    1685 using typename RestartedFCGSolver<X>::real_type;
    \n+
    1686
    \n+
    1687 // copy base class constructors
    \n+
    1688 using RestartedFCGSolver<X>::RestartedFCGSolver;
    \n+
    1689
    \n+
    1690 // don't shadow four-argument version of apply defined in the base class
    \n+\n+
    1692
    \n+
    1693 // just a minor part of the RestartedFCGSolver apply method will be modified
    \n+
    \n+
    1694 virtual void apply (X& x, X& b, InverseOperatorResult& res) override {
    \n+
    1695 // reset limiter of orthogonalization loop
    \n+
    1696 _k_limit = 0;
    \n+
    1697 this->RestartedFCGSolver<X>::apply(x,b,res);
    \n+
    1698 };
    \n+
    \n+
    1699
    \n+
    1700 private:
    \n+
    1701 // This function is called every iteration to orthogonalize against the last search directions.
    \n+
    1702 virtual void orthogonalizations(const int& i_bounded,const std::vector<X>& Ad, const X& w, const std::vector<field_type,ReboundAllocatorType<X,field_type>>& ddotAd,std::vector<X>& d) override {
    \n+
    1703 // This FCGSolver uses values with higher array indexes too, if existent.
    \n+
    1704 for (int k = 0; k < _k_limit; k++) {
    \n+
    1705 if(i_bounded!=k)
    \n+
    1706 d[i_bounded].axpy(-_sp->dot(Ad[k], w) / ddotAd[k], d[k]); // d[i] -= <<Ad[k],w>/<d[k],Ad[k]>>d[k]
    \n+
    1707 }
    \n+
    1708 // The loop limit increase, if array is not completely filled.
    \n+
    1709 if(_k_limit<=i_bounded)
    \n+
    1710 _k_limit++;
    \n+
    1711
    \n+
    1712 };
    \n+
    1713
    \n+
    1714 // This function is called every mmax iterations to handle limited array sizes.
    \n+
    1715 virtual void cycle(std::vector<X>& Ad, [[maybe_unused]] std::vector<X>& d, [[maybe_unused]] std::vector<field_type,ReboundAllocatorType<X,field_type> >& ddotAd,int& i_bounded) override {
    \n+
    1716 // Only the loop index i_bounded return to 0, if it reached mmax.
    \n+
    1717 i_bounded = 0;
    \n+
    1718 // Now all arrays are filled and the loop in void orthogonalizations can use the whole arrays.
    \n+
    1719 _k_limit = Ad.size();
    \n+
    1720 };
    \n+
    1721
    \n+
    1722 int _k_limit = 0;
    \n+
    1723
    \n+
    1724 protected:
    \n+\n+
    1726 using RestartedFCGSolver<X>::_op;
    \n+\n+
    1728 using RestartedFCGSolver<X>::_sp;
    \n+\n+\n+\n+
    1732 };
    \n+
    \n+
    1733 DUNE_REGISTER_ITERATIVE_SOLVER("completefcgsolver", defaultIterativeSolverCreator<Dune::CompleteFCGSolver>());
    \n+
    1735} // end namespace
    \n+
    1736
    \n+
    1737#endif
    \n+
    Define base class for scalar product and norm.
    \n+\n+\n+
    #define DUNE_REGISTER_ITERATIVE_SOLVER(name,...)
    Definition solverregistry.hh:19
    \n+\n+\n+\n+
    Implementation of the BCRSMatrix class.
    \n+
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n+
    Define general, extensible interface for inverse operators.
    \n
    Definition allocator.hh:11
    \n-
    std::pair< std::size_t, std::size_t > flatMatrixForEach(Matrix &&matrix, F &&f, std::size_t rowOffset=0, std::size_t colOffset=0)
    Traverse a blocked matrix and call a functor at each scalar entry.
    Definition foreach.hh:132
    \n-
    std::size_t flatVectorForEach(Vector &&vector, F &&f, std::size_t offset=0)
    Traverse a blocked vector and call a functor at each scalar entry.
    Definition foreach.hh:95
    \n-
    auto rows(Matrix const &matrix)
    Definition foreach.hh:69
    \n-
    auto cols(Matrix const &matrix)
    Definition foreach.hh:72
    \n-
    auto size(Vector const &vector)
    Definition foreach.hh:75
    \n-
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n-
    size_type M() const
    Return the number of columns.
    Definition matrix.hh:700
    \n-
    size_type N() const
    Return the number of rows.
    Definition matrix.hh:695
    \n+
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n+
    typename std::allocator_traits< typename AllocatorTraits< T >::type >::template rebind_alloc< X > ReboundAllocatorType
    Definition allocator.hh:37
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    @ row_wise
    Build in a row-wise manner.
    Definition bcrsmatrix.hh:521
    \n+
    CreateIterator createend()
    get create iterator pointing to one after the last block
    Definition bcrsmatrix.hh:1103
    \n+
    CreateIterator createbegin()
    get initial create iterator
    Definition bcrsmatrix.hh:1097
    \n+
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n+
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n+
    Wrapper to use a range of ARPACK++ eigenvalue solvers.
    Definition arpackpp.hh:245
    \n+
    void computeSymMaxMagnitude(const Real &epsilon, BlockVector &x, Real &lambda) const
    Assume the matrix to be square, symmetric and perform IRLM to compute an approximation lambda of its ...
    Definition arpackpp.hh:289
    \n+
    void computeSymMinMagnitude(const Real &epsilon, BlockVector &x, Real &lambda) const
    Assume the matrix to be square, symmetric and perform IRLM to compute an approximation lambda of its ...
    Definition arpackpp.hh:391
    \n+
    Thrown when a solver aborts due to some problem.
    Definition istlexception.hh:46
    \n+
    A linear operator.
    Definition operators.hh:67
    \n+
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n+
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n+
    double condition_estimate
    Estimate of condition number.
    Definition solver.hh:79
    \n+
    void clear()
    Resets all data.
    Definition solver.hh:56
    \n+
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n+
    Simd::Scalar< real_type > scalar_real_type
    scalar type underlying the field_type
    Definition solver.hh:114
    \n+
    Y range_type
    Type of the range of the operator to be inverted.
    Definition solver.hh:105
    \n+
    X domain_type
    Type of the domain of the operator to be inverted.
    Definition solver.hh:102
    \n+
    X::field_type field_type
    The field type of the operator.
    Definition solver.hh:108
    \n+
    FieldTraits< field_type >::real_type real_type
    The real type of the field type (is the same if using real numbers, but differs for std::complex)
    Definition solver.hh:111
    \n+
    Base class for all implementations of iterative solvers.
    Definition solver.hh:203
    \n+
    std::shared_ptr< const ScalarProduct< X > > _sp
    Definition solver.hh:506
    \n+
    std::shared_ptr< const LinearOperator< X, X > > _op
    Definition solver.hh:504
    \n+
    int _maxit
    Definition solver.hh:508
    \n+
    int _verbose
    Definition solver.hh:509
    \n+
    scalar_real_type _reduction
    Definition solver.hh:507
    \n+
    std::shared_ptr< Preconditioner< X, X > > _prec
    Definition solver.hh:505
    \n+
    Preconditioned loop solver.
    Definition solvers.hh:59
    \n+
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator,.
    Definition solvers.hh:73
    \n+
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:116
    \n+
    gradient method
    Definition solvers.hh:124
    \n+
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:142
    \n+
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:187
    \n+
    conjugate gradient method
    Definition solvers.hh:193
    \n+
    CGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)
    Constructor to initialize a CG solver.
    Definition solvers.hh:256
    \n+
    static constexpr bool enableConditionEstimate
    Definition solvers.hh:208
    \n+
    CGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X > &sp, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)
    Constructor to initialize a CG solver.
    Definition solvers.hh:239
    \n+
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:279
    \n+
    CGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)
    Constructor to initialize a CG solver.
    Definition solvers.hh:222
    \n+
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:412
    \n+
    Bi-conjugate Gradient Stabilized (BiCG-STAB)
    Definition solvers.hh:419
    \n+
    typename IterativeSolver< X, X >::template Iteration< CountType > Iteration
    Definition solvers.hh:598
    \n+
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:439
    \n+
    Minimal Residual Method (MINRES)
    Definition solvers.hh:609
    \n+
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:627
    \n+
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:808
    \n+
    implements the Generalized Minimal Residual (GMRes) method
    Definition solvers.hh:827
    \n+
    RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Constructor.
    Definition solvers.hh:878
    \n+
    std::enable_if<!std::is_same< field_type, real_type >::value, T >::type conjugate(const T &t)
    Definition solvers.hh:1067
    \n+
    RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Definition solvers.hh:883
    \n+
    void update(X &w, int i, const std::vector< std::vector< field_type, fAlloc > > &H, const std::vector< field_type, fAlloc > &s, const std::vector< X > &v)
    Definition solvers.hh:1039
    \n+
    std::enable_if< std::is_same< field_type, real_type >::value, T >::type conjugate(const T &t)
    Definition solvers.hh:1062
    \n+
    ReboundAllocatorType< X, field_type > fAlloc
    field_type Allocator retrieved from domain type
    Definition solvers.hh:838
    \n+
    int _restart
    Definition solvers.hh:1120
    \n+
    ReboundAllocatorType< X, real_type > rAlloc
    real_type Allocator retrieved from domain type
    Definition solvers.hh:840
    \n+
    virtual void apply(X &x, Y &b, double reduction, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:923
    \n+
    RestartedGMResSolver(const LinearOperator< X, Y > &op, Preconditioner< X, Y > &prec, scalar_real_type reduction, int restart, int maxit, int verbose)
    Set up RestartedGMResSolver solver.
    Definition solvers.hh:850
    \n+
    RestartedGMResSolver(const LinearOperator< X, Y > &op, const ScalarProduct< X > &sp, Preconditioner< X, Y > &prec, scalar_real_type reduction, int restart, int maxit, int verbose)
    Set up RestartedGMResSolver solver.
    Definition solvers.hh:861
    \n+
    void generatePlaneRotation(field_type &dx, field_type &dy, real_type &cs, field_type &sn)
    Definition solvers.hh:1073
    \n+
    RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, Y > > prec, scalar_real_type reduction, int restart, int maxit, int verbose)
    Set up RestartedGMResSolver solver.
    Definition solvers.hh:894
    \n+
    virtual void apply(X &x, Y &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:910
    \n+
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:1119
    \n+
    void applyPlaneRotation(field_type &dx, field_type &dy, real_type &cs, field_type &sn)
    Definition solvers.hh:1106
    \n+
    implements the Flexible Generalized Minimal Residual (FGMRes) method (right preconditioned)
    Definition solvers.hh:1139
    \n+
    void apply(X &x, Y &b, double reduction, InverseOperatorResult &res) override
    Apply inverse operator.
    Definition solvers.hh:1169
    \n+
    Generalized preconditioned conjugate gradient solver.
    Definition solvers.hh:1307
    \n+
    GeneralizedPCGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X > &sp, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, int restart=10)
    Set up nonlinear preconditioned conjugate gradient solver.
    Definition solvers.hh:1343
    \n+
    GeneralizedPCGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, int restart=10)
    Set up nonlinear preconditioned conjugate gradient solver.
    Definition solvers.hh:1331
    \n+
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:1391
    \n+
    GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Constructor.
    Definition solvers.hh:1361
    \n+
    GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, scalar_real_type reduction, int maxit, int verbose, int restart=10)
    Set up nonlinear preconditioned conjugate gradient solver.
    Definition solvers.hh:1377
    \n+
    GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Definition solvers.hh:1366
    \n+
    Accelerated flexible conjugate gradient method.
    Definition solvers.hh:1501
    \n+
    RestartedFCGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, int mmax=10)
    Constructor to initialize a RestartedFCG solver.
    Definition solvers.hh:1519
    \n+
    RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &config)
    Constructor.
    Definition solvers.hh:1559
    \n+
    RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, scalar_real_type reduction, int maxit, int verbose, int mmax=10)
    Constructor to initialize a RestartedFCG solver.
    Definition solvers.hh:1539
    \n+
    int _mmax
    Definition solvers.hh:1662
    \n+
    RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &config)
    Definition solvers.hh:1565
    \n+
    typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration
    Definition solvers.hh:1669
    \n+
    virtual void apply(X &x, X &b, InverseOperatorResult &res)
    Apply inverse operator.
    Definition solvers.hh:1584
    \n+
    RestartedFCGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X > &sp, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int verbose, int mmax=10)
    Constructor to initialize a RestartedFCG solver.
    Definition solvers.hh:1529
    \n+
    Complete flexible conjugate gradient method.
    Definition solvers.hh:1680
    \n+
    virtual void apply(X &x, X &b, InverseOperatorResult &res) override
    Apply inverse operator.
    Definition solvers.hh:1694
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,233 +1,1929 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-foreach.hh\n+solvers.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3#pragma once\n-4\n-5#include\n-6#include\n-7#include\n+3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n+4// vi: set et ts=4 sw=2 sts=2:\n+5\n+6#ifndef DUNE_ISTL_SOLVERS_HH\n+7#define DUNE_ISTL_SOLVERS_HH\n 8\n-9#include\n-10#include\n-11#include\n-12#include\n-13\n-14#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-15#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+9#include \n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15#include \n 16\n-17namespace _\bD_\bu_\bn_\be{\n-18\n-19 namespace Impl {\n-20\n-21 // stolen from dune-functions: we call a type \"scalar\" if it does not\n-support index accessing\n-22 template\n-23 using StaticIndexAccessConcept = decltype(std::declval()[Dune::Indices::\n-_0]);\n-24\n-25 template\n-26 using IsScalar = std::negation>>;\n-27\n-28 // Type trait for matrix types that supports\n-29 // - iteration done row-wise\n-30 // - sparse iteration over nonzero entries\n-31 template \n-32 struct IsRowMajorSparse : std::false_type {};\n+17#include \n+18#include \n+19#include \n+20#include \n+21#include \n+22#include \n+23\n+24#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b._\bh_\bh>\n+25#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+26#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be_\b/_\ba_\br_\bp_\ba_\bc_\bk_\bp_\bp_\b._\bh_\bh>\n+27#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+28#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n+29#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh>\n+30#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh>\n+31#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n+32#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh>\n 33\n-34 // This is supported by the following matrix types:\n-35 template \n-36 struct IsRowMajorSparse> : std::true_type {};\n-37\n-38 template \n-39 struct IsRowMajorSparse> : std::true_type {};\n-40\n-41 template \n-42 struct IsRowMajorSparse> : std::true_type {};\n-43\n-44\n-45 template \n-46 auto rows(Matrix const& /*matrix*/, PriorityTag<2>) -> std::\n-integral_constant { return {}; }\n-47\n-48 template \n-49 auto cols(Matrix const& /*matrix*/, PriorityTag<2>) -> std::\n-integral_constant { return {}; }\n-50\n-51 template \n-52 auto rows(Matrix const& matrix, PriorityTag<1>) -> decltype(matrix.N())\n-{ return matrix.N(); }\n-53\n-54 template \n-55 auto cols(Matrix const& matrix, PriorityTag<1>) -> decltype(matrix.M())\n-{ return matrix.M(); }\n-56\n-57 template \n-58 auto size(Vector const& /*vector*/, PriorityTag<2>) -> std::\n-integral_constant { return {}; }\n-59\n-60 template \n-61 auto size(Vector const& vector, PriorityTag<1>) -> decltype(vector.size())\n-{ return vector.size(); }\n-62\n-63\n-64 } // end namespace Impl\n+34namespace _\bD_\bu_\bn_\be {\n+46 //=====================================================================\n+47 // Implementation of this interface\n+48 //=====================================================================\n+49\n+58 template\n+_\b5_\b9 class _\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n+60 public:\n+61 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+62 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+63 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+64 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n 65\n-_\b6_\b6namespace ForEach{\n-67\n-68 template \n-_\b6_\b9 auto _\br_\bo_\bw_\bs(_\bM_\ba_\bt_\br_\bi_\bx const& matrix) { return Impl::rows(matrix, PriorityTag<5>\n-{}); }\n-70\n-71 template \n-_\b7_\b2 auto _\bc_\bo_\bl_\bs(_\bM_\ba_\bt_\br_\bi_\bx const& matrix) { return Impl::cols(matrix, PriorityTag<5>\n-{}); }\n-73\n-74 template \n-_\b7_\b5 auto _\bs_\bi_\bz_\be(Vector const& vector) { return Impl::size(vector, PriorityTag<5>\n-{}); }\n-76\n-77} // namespace ForEach\n-78\n-79\n+66 // copy base class constructors\n+67 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::IterativeSolver;\n+68\n+69 // don't shadow four-argument version of apply defined in the base class\n+70 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+71\n+_\b7_\b3 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+74 {\n+75 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this, res);\n+76 _\b__\bp_\br_\be_\bc->pre(x,b);\n+77\n+78 // overwrite b with defect\n+79 _\b__\bo_\bp->applyscaleadd(-1,x,b);\n 80\n-81\n-94template \n-_\b9_\b5std::size_t _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(Vector&& vector, F&& f, std::size_t offset = 0)\n-96{\n-97 using V = std::decay_t;\n-98 if constexpr( Impl::IsScalar::value )\n-99 {\n-100 f(vector, offset);\n-101 return 1;\n-102 }\n-103 else\n-104 {\n-105 std::size_t idx = 0;\n-106 Hybrid::forEach(Dune::range(_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bs_\bi_\bz_\be(vector)), [&](auto i) {\n-107 idx += _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(vector[i], f, offset + idx);\n-108 });\n-109 return idx;\n-110 }\n-111}\n-112\n-113\n-131template \n-_\b1_\b3_\b2std::pair _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh(_\bM_\ba_\bt_\br_\bi_\bx&& matrix, F&& f,\n-std::size_t rowOffset = 0, std::size_t colOffset = 0)\n-133{\n-134 using M = std::decay_t;\n-135 if constexpr ( Impl::IsScalar::value )\n-136 {\n-137 f(matrix,rowOffset,colOffset);\n-138 return {1,1};\n-139 }\n-140 else\n-141 {\n-142 // if M supports the IsRowMajorSparse type trait: iterate just over the\n-nonzero entries and\n-143 // and compute the flat row/col size directly\n-144 if constexpr ( Impl::IsRowMajorSparse::value )\n-145 {\n-146 using Block = std::decay_t;\n-147\n-148 // find an existing block or at least try to create one\n-149 auto block = [&]{\n-150 for (auto const& row : matrix)\n-151 for (auto const& entry : row)\n-152 return entry;\n-153 return Block{};\n-154 }();\n-155\n-156 // compute the scalar size of the block\n-157 auto [blockRows, blockCols] = _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh(block, [](...){});\n-158\n-159 // check whether we have valid sized blocks\n-160 assert( ( blockRows!=0 or blockCols!=0 ) and \"the block size can't be\n-zero\");\n-161\n-162 for ( auto rowIt = matrix.begin(); rowIt != matrix.end(); rowIt++ )\n-163 {\n-164 auto&& row = *rowIt;\n-165 auto rowIdx = rowIt.index();\n-166 for ( auto colIt = row.begin(); colIt != row.end(); colIt++ )\n-167 {\n-168 auto&& entry = *colIt;\n-169 auto colIdx = colIt.index();\n-170 auto [ dummyRows, dummyCols ] = _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh(entry, f, rowOffset +\n-rowIdx*blockRows, colOffset + colIdx*blockCols);\n-171 assert( dummyRows == blockRows and dummyCols == blockCols and \"we need the\n-same size of each block in this matrix type\");\n-172 }\n-173 }\n-174\n-175 return { matrix.N()*blockRows, matrix.M()*blockCols };\n-176 }\n-177 // all other matrix types are accessed index-wise with dynamic flat row/col\n-counting\n-178 else\n-179 {\n-180 std::size_t r = 0, c = 0;\n-181 std::size_t nRows, nCols;\n-182\n-183 Hybrid::forEach(Dune::range(_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\br_\bo_\bw_\bs(matrix)), [&](auto i) {\n-184 c = 0;\n-185 Hybrid::forEach(Dune::range(_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bc_\bo_\bl_\bs(matrix)), [&](auto j) {\n-186 std::tie(nRows,nCols) = _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh(matrix[i][j], f, rowOffset + r,\n-colOffset + c);\n-187 c += nCols;\n-188 });\n-189 r += nRows;\n-190 });\n-191 return {r,c};\n-192 }\n-193 }\n-194}\n-195\n-196} // namespace Dune\n+81 // compute norm, \\todo parallelization\n+82 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(b);\n+83 if(iteration.step(0, def)){\n+84 _\b__\bp_\br_\be_\bc->post(x);\n+85 return;\n+86 }\n+87 // prepare preconditioner\n+88\n+89 // allocate correction vector\n+90 X v(x);\n+91\n+92 // iteration loop\n+93 int i=1;\n+94 for ( ; i<=_\b__\bm_\ba_\bx_\bi_\bt; i++ )\n+95 {\n+96 v = 0; // clear correction\n+97 _\b__\bp_\br_\be_\bc->apply(v,b); // apply preconditioner\n+98 x += v; // update solution\n+99 _\b__\bo_\bp->applyscaleadd(-1,v,b); // update defect\n+100 def=_\b__\bs_\bp->norm(b); // comp defect norm\n+101 if(iteration.step(i, def))\n+102 break;\n+103 }\n+104\n+105 // postprocess preconditioner\n+106 _\b__\bp_\br_\be_\bc->post(x);\n+107 }\n+108\n+109 protected:\n+110 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n+111 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n+112 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n+113 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+114 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n+115 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+_\b1_\b1_\b6 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n+117 };\n+_\b1_\b1_\b8 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"loopsolver\",\n+defaultIterativeSolverCreator());\n+119\n+120\n+121 // all these solvers are taken from the SUMO library\n+123 template\n+_\b1_\b2_\b4 class _\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n+125 public:\n+126 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+127 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+128 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+129 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+130\n+131 // copy base class constructors\n+132 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::IterativeSolver;\n+133\n+134 // don't shadow four-argument version of apply defined in the base class\n+135 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+136\n+_\b1_\b4_\b2 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+143 {\n+144 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this, res);\n+145 _\b__\bp_\br_\be_\bc->pre(x,b); // prepare preconditioner\n+146\n+147 _\b__\bo_\bp->applyscaleadd(-1,x,b); // overwrite b with defec\n+148\n+149 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(b); // compute norm\n+150 if(iteration.step(0, def)){\n+151 _\b__\bp_\br_\be_\bc->post(x);\n+152 return;\n+153 }\n+154\n+155 X p(x); // create local vectors\n+156 X q(b);\n+157\n+158 int i=1; // loop variables\n+159 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be lambda;\n+160 for ( ; i<=_\b__\bm_\ba_\bx_\bi_\bt; i++ )\n+161 {\n+162 p = 0; // clear correction\n+163 _\b__\bp_\br_\be_\bc->apply(p,b); // apply preconditioner\n+164 _\b__\bo_\bp->apply(p,q); // q=Ap\n+165 auto alpha = _\b__\bs_\bp->dot(q,p);\n+166 lambda = Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+167 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), // no need for minimization if def is already 0\n+168 _\b__\bs_\bp->dot(p,b)/alpha); // minimization\n+169 x.axpy(lambda,p); // update solution\n+170 b.axpy(-lambda,q); // update defect\n+171\n+172 def =_\b__\bs_\bp->norm(b); // comp defect norm\n+173 if(iteration.step(i, def))\n+174 break;\n+175 }\n+176 // postprocess preconditioner\n+177 _\b__\bp_\br_\be_\bc->post(x);\n+178 }\n+179\n+180 protected:\n+181 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n+182 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n+183 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n+184 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+185 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n+186 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+_\b1_\b8_\b7 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n+188 };\n+_\b1_\b8_\b9 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"gradientsolver\",\n+defaultIterativeSolverCreator());\n+190\n+192 template\n+_\b1_\b9_\b3 class _\bC_\bG_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n+194 public:\n+195 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+196 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+197 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+198 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+199\n+200 // copy base class constructors\n+201 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::IterativeSolver;\n+202\n+203 private:\n+204 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+205\n+206 protected:\n+207\n+_\b2_\b0_\b8 static constexpr bool _\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be = (std::\n+is_same_v || std::is_same_v);\n+209\n+210 public:\n+211\n+212 // don't shadow four-argument version of apply defined in the base class\n+213 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+214\n+_\b2_\b2_\b2 _\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>& prec,\n+223 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, bool\n+condition_estimate) : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, prec, reduction, maxit,\n+verbose),\n+224 condition_estimate_(condition_estimate)\n+225 {\n+226 if (condition_estimate && !_\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be) {\n+227 condition_estimate_ = false;\n+228 std::cerr << \"WARNING: Condition estimate was disabled. It is only\n+available for double and float field types!\" << std::endl;\n+229 }\n+230 }\n+231\n+_\b2_\b3_\b9 _\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, const _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>& sp,\n+_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>& prec,\n+240 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, bool\n+condition_estimate) : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, sp, prec, reduction, maxit,\n+verbose),\n+241 condition_estimate_(condition_estimate)\n+242 {\n+243 if (condition_estimate && !(std::is_same::value || std::\n+is_same::value)) {\n+244 condition_estimate_ = false;\n+245 std::cerr << \"WARNING: Condition estimate was disabled. It is only\n+available for double and float field types!\" << std::endl;\n+246 }\n+247 }\n+248\n+_\b2_\b5_\b6 _\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op, std::\n+shared_ptr<_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>> sp,\n+257 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>> prec,\n+258 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, bool\n+condition_estimate)\n+259 : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, sp, prec, reduction, maxit, verbose),\n+260 condition_estimate_(condition_estimate)\n+261 {\n+262 if (condition_estimate && !(std::is_same::value || std::\n+is_same::value)) {\n+263 condition_estimate_ = false;\n+264 std::cerr << \"WARNING: Condition estimate was disabled. It is only\n+available for double and float field types!\" << std::endl;\n+265 }\n+266 }\n+267\n+_\b2_\b7_\b9 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+280 {\n+281 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this,res);\n+282 _\b__\bp_\br_\be_\bc->pre(x,b); // prepare preconditioner\n+283\n+284 _\b__\bo_\bp->applyscaleadd(-1,x,b); // overwrite b with defect\n+285\n+286 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(b); // compute norm\n+287 if(iteration.step(0, def)){\n+288 _\b__\bp_\br_\be_\bc->post(x);\n+289 return;\n+290 }\n+291\n+292 X p(x); // the search direction\n+293 X q(x); // a temporary vector\n+294\n+295 // Remember lambda and beta values for condition estimate\n+296 std::vector lambdas(0);\n+297 std::vector betas(0);\n+298\n+299 // some local variables\n+300 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be rho,rholast,lambda,alpha,beta;\n+301\n+302 // determine initial search direction\n+303 p = 0; // clear correction\n+304 _\b__\bp_\br_\be_\bc->apply(p,b); // apply preconditioner\n+305 rholast = _\b__\bs_\bp->dot(p,b); // orthogonalization\n+306\n+307 // the loop\n+308 int i=1;\n+309 for ( ; i<=_\b__\bm_\ba_\bx_\bi_\bt; i++ )\n+310 {\n+311 // minimize in given search direction p\n+312 _\b__\bo_\bp->apply(p,q); // q=Ap\n+313 alpha = _\b__\bs_\bp->dot(p,q); // scalar product\n+314 lambda = Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), rholast/alpha); /\n+/ minimization\n+315 if constexpr (_\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be)\n+316 if (condition_estimate_)\n+317 lambdas.push_back(std::real(lambda));\n+318 x.axpy(lambda,p); // update solution\n+319 b.axpy(-lambda,q); // update defect\n+320\n+321 // convergence test\n+322 def=_\b__\bs_\bp->norm(b); // comp defect norm\n+323 if(iteration.step(i, def))\n+324 break;\n+325\n+326 // determine new search direction\n+327 q = 0; // clear correction\n+328 _\b__\bp_\br_\be_\bc->apply(q,b); // apply preconditioner\n+329 rho = _\b__\bs_\bp->dot(q,b); // orthogonalization\n+330 beta = Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), rho/rholast); /\n+/ scaling factor\n+331 if constexpr (_\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be)\n+332 if (condition_estimate_)\n+333 betas.push_back(std::real(beta));\n+334 p *= beta; // scale old search direction\n+335 p += q; // orthogonalization with correction\n+336 rholast = rho; // remember rho for recurrence\n+337 }\n+338\n+339 _\b__\bp_\br_\be_\bc->post(x); // postprocess preconditioner\n+340\n+341 if (condition_estimate_) {\n+342#if HAVE_ARPACKPP\n+343 if constexpr (_\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be) {\n+344 using std::sqrt;\n+345\n+346 // Build T matrix which has extreme eigenvalues approximating\n+347 // those of the original system\n+348 // (see Y. Saad, Iterative methods for sparse linear systems)\n+349\n+350 _\bC_\bO_\bN_\bD_\b__\bM_\bA_\bT T(i, i, _\bC_\bO_\bN_\bD_\b__\bM_\bA_\bT_\b:_\b:_\br_\bo_\bw_\b__\bw_\bi_\bs_\be);\n+351\n+352 for (auto row = T._\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn(); row != T._\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd(); ++row) {\n+353 if (row.index() > 0)\n+354 row.insert(row.index()-1);\n+355 row.insert(row.index());\n+356 if (row.index() < T._\bN() - 1)\n+357 row.insert(row.index()+1);\n+358 }\n+359 for (int row = 0; row < i; ++row) {\n+360 if (row > 0) {\n+361 T[row][row-1] = sqrt(betas[row-1]) / lambdas[row-1];\n+362 }\n+363\n+364 T[row][row] = 1.0 / lambdas[row];\n+365 if (row > 0) {\n+366 T[row][row] += betas[row-1] / lambdas[row-1];\n+367 }\n+368\n+369 if (row < i - 1) {\n+370 T[row][row+1] = sqrt(betas[row]) / lambdas[row];\n+371 }\n+372 }\n+373\n+374 // Compute largest and smallest eigenvalue of T matrix and return as\n+estimate\n+375 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b<_\bC_\bO_\bN_\bD_\b__\bM_\bA_\bT_\b,_\b _\bC_\bO_\bN_\bD_\b__\bV_\bE_\bC_\b> arpack(T);\n+376\n+377 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be eps = 0.0;\n+378 _\bC_\bO_\bN_\bD_\b__\bV_\bE_\bC eigv;\n+379 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be min_eigv, max_eigv;\n+380 arpack._\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\bi_\bn_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be (eps, eigv, min_eigv);\n+381 arpack._\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\ba_\bx_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be (eps, eigv, max_eigv);\n+382\n+383 res._\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\b__\be_\bs_\bt_\bi_\bm_\ba_\bt_\be = max_eigv / min_eigv;\n+384\n+385 if (this->_\b__\bv_\be_\br_\bb_\bo_\bs_\be > 0) {\n+386 std::cout << \"Min eigv estimate: \" << Simd::io(min_eigv) << '\\n';\n+387 std::cout << \"Max eigv estimate: \" << Simd::io(max_eigv) << '\\n';\n+388 std::cout << \"Condition estimate: \"\n+389 << Simd::io(max_eigv / min_eigv) << std::endl;\n+390 }\n+391 }\n+392#else\n+393 std::cerr << \"WARNING: Condition estimate was requested. This requires\n+ARPACK, but ARPACK was not found!\" << std::endl;\n+394#endif\n+395 }\n+396 }\n+397\n+398 private:\n+399 bool condition_estimate_ = false;\n+400\n+401 // Matrix and vector types used for condition estimate\n+402 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be_\b,_\b1_\b,_\b1_\b> > COND_MAT;\n+403 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be_\b,_\b1_\b> > COND_VEC;\n+404\n+405 protected:\n+406 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n+407 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n+408 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n+409 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+410 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n+411 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+_\b4_\b1_\b2 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n+413 };\n+_\b4_\b1_\b4 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"cgsolver\",\n+defaultIterativeSolverCreator());\n+415\n+416 // Ronald Kriemanns BiCG-STAB implementation from Sumo\n+418 template\n+_\b4_\b1_\b9 class _\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n+420 public:\n+421 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+422 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+423 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+424 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+425\n+426 // copy base class constructors\n+427 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::IterativeSolver;\n+428\n+429 // don't shadow four-argument version of apply defined in the base class\n+430 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+431\n+_\b4_\b3_\b9 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+440 {\n+441 using std::abs;\n+442 const Simd::Scalar EPSILON=1e-80;\n+443 using std::abs;\n+444 double it;\n+445 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be rho, rho_new, alpha, beta, h, omega;\n+446 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm;\n+447\n+448 //\n+449 // get vectors and matrix\n+450 //\n+451 X& r=b;\n+452 X p(x);\n+453 X v(x);\n+454 X t(x);\n+455 X y(x);\n+456 X rt(x);\n+457\n+458 //\n+459 // begin iteration\n+460 //\n+461\n+462 // r = r - Ax; rt = r\n+463 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bd_\bo_\bu_\bb_\bl_\be_\b> iteration(*this,res);\n+464 _\b__\bp_\br_\be_\bc->pre(x,r); // prepare preconditioner\n+465\n+466 _\b__\bo_\bp->applyscaleadd(-1,x,r); // overwrite b with defect\n+467\n+468 rt=r;\n+469\n+470 norm = _\b__\bs_\bp->norm(r);\n+471 if(iteration.step(0, norm)){\n+472 _\b__\bp_\br_\be_\bc->post(x);\n+473 return;\n+474 }\n+475 p=0;\n+476 v=0;\n+477\n+478 rho = 1;\n+479 alpha = 1;\n+480 omega = 1;\n+481\n+482 //\n+483 // iteration\n+484 //\n+485\n+486 for (it = 0.5; it < _\b__\bm_\ba_\bx_\bi_\bt; it+=.5)\n+487 {\n+488 //\n+489 // preprocess, set vecsizes etc.\n+490 //\n+491\n+492 // rho_new = < rt , r >\n+493 rho_new = _\b__\bs_\bp->dot(rt,r);\n+494\n+495 // look if breakdown occurred\n+496 if (Simd::allTrue(abs(rho) <= EPSILON))\n+497 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt,\"breakdown in BiCGSTAB - rho \"\n+498 << Simd::io(rho) << \" <= EPSILON \" << EPSILON\n+499 << \" after \" << it << \" iterations\");\n+500 if (Simd::allTrue(abs(omega) <= EPSILON))\n+501 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt,\"breakdown in BiCGSTAB - omega \"\n+502 << Simd::io(omega) << \" <= EPSILON \" << EPSILON\n+503 << \" after \" << it << \" iterations\");\n+504\n+505\n+506 if (it<1)\n+507 p = r;\n+508 else\n+509 {\n+510 beta = Simd::cond(norm==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+511 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.), // no need for orthogonalization if norm is already 0\n+512 ( rho_new / rho ) * ( alpha / omega ));\n+513 p.axpy(-omega,v); // p = r + beta (p - omega*v)\n+514 p *= beta;\n+515 p += r;\n+516 }\n+517\n+518 // y = W^-1 * p\n+519 y = 0;\n+520 _\b__\bp_\br_\be_\bc->apply(y,p); // apply preconditioner\n+521\n+522 // v = A * y\n+523 _\b__\bo_\bp->apply(y,v);\n+524\n+525 // alpha = rho_new / < rt, v >\n+526 h = _\b__\bs_\bp->dot(rt,v);\n+527\n+528 if ( Simd::allTrue(abs(h) < EPSILON) )\n+529 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt,\"abs(h) < EPSILON in BiCGSTAB - abs(h) \"\n+530 << Simd::io(abs(h)) << \" < EPSILON \" << EPSILON\n+531 << \" after \" << it << \" iterations\");\n+532\n+533 alpha = Simd::cond(norm==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+534 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+535 rho_new / h);\n+536\n+537 // apply first correction to x\n+538 // x <- x + alpha y\n+539 x.axpy(alpha,y);\n+540\n+541 // r = r - alpha*v\n+542 r.axpy(-alpha,v);\n+543\n+544 //\n+545 // test stop criteria\n+546 //\n+547\n+548 norm = _\b__\bs_\bp->norm(r);\n+549 if(iteration.step(it, norm)){\n+550 break;\n+551 }\n+552\n+553 it+=.5;\n+554\n+555 // y = W^-1 * r\n+556 y = 0;\n+557 _\b__\bp_\br_\be_\bc->apply(y,r);\n+558\n+559 // t = A * y\n+560 _\b__\bo_\bp->apply(y,t);\n+561\n+562 // omega = < t, r > / < t, t >\n+563 h = _\b__\bs_\bp->dot(t,t);\n+564 omega = Simd::cond(norm==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+565 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+566 _\b__\bs_\bp->dot(t,r)/h);\n+567\n+568 // apply second correction to x\n+569 // x <- x + omega y\n+570 x.axpy(omega,y);\n+571\n+572 // r = s - omega*t (remember : r = s)\n+573 r.axpy(-omega,t);\n+574\n+575 rho = rho_new;\n+576\n+577 //\n+578 // test stop criteria\n+579 //\n+580\n+581 norm = _\b__\bs_\bp->norm(r);\n+582 if(iteration.step(it, norm)){\n+583 break;\n+584 }\n+585 } // end for\n+586\n+587 _\b__\bp_\br_\be_\bc->post(x); // postprocess preconditioner\n+588 }\n+589\n+590 protected:\n+591 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n+592 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n+593 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n+594 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+595 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n+596 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+597 template\n+_\b5_\b9_\b8 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\bo_\bu_\bn_\bt_\bT_\by_\bp_\be_\b>;\n+599 };\n+_\b6_\b0_\b0 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"bicgstabsolver\",\n+defaultIterativeSolverCreator());\n+601\n+608 template\n+_\b6_\b0_\b9 class _\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n+610 public:\n+611 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+612 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+613 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+614 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+615\n+616 // copy base class constructors\n+617 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::IterativeSolver;\n+618\n+619 // don't shadow four-argument version of apply defined in the base class\n+620 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+621\n+_\b6_\b2_\b7 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+628 {\n+629 using std::sqrt;\n+630 using std::abs;\n+631 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this, res);\n+632 // prepare preconditioner\n+633 _\b__\bp_\br_\be_\bc->pre(x,b);\n+634\n+635 // overwrite rhs with defect\n+636 _\b__\bo_\bp->applyscaleadd(-1.0,x,b); // b -= Ax\n+637\n+638 // some temporary vectors\n+639 X z(b), dummy(b);\n+640 z = 0.0;\n+641\n+642 // calculate preconditioned defect\n+643 _\b__\bp_\br_\be_\bc->apply(z,b); // r = W^-1 (b - Ax)\n+644 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(z);\n+645 if (iteration.step(0, def)){\n+646 _\b__\bp_\br_\be_\bc->post(x);\n+647 return;\n+648 }\n+649\n+650 // recurrence coefficients as computed in Lanczos algorithm\n+651 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha, beta;\n+652 // diagonal entries of givens rotation\n+653 std::array c{{0.0,0.0}};\n+654 // off-diagonal entries of givens rotation\n+655 std::array s{{0.0,0.0}};\n+656\n+657 // recurrence coefficients (column k of tridiag matrix T_k)\n+658 std::array T{{0.0,0.0,0.0}};\n+659\n+660 // the rhs vector of the min problem\n+661 std::array xi{{1.0,0.0}};\n+662\n+663 // beta is real and positive in exact arithmetic\n+664 // since it is the norm of the basis vectors (in unpreconditioned case)\n+665 beta = sqrt(_\b__\bs_\bp->dot(b,z));\n+666 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be beta0 = beta;\n+667\n+668 // the search directions\n+669 std::array p{{b,b,b}};\n+670 p[0] = 0.0;\n+671 p[1] = 0.0;\n+672 p[2] = 0.0;\n+673\n+674 // orthonormal basis vectors (in unpreconditioned case)\n+675 std::array q{{b,b,b}};\n+676 q[0] = 0.0;\n+677 q[1] *= Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+678 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+679 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/beta);\n+680 q[2] = 0.0;\n+681\n+682 z *= Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+683 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+684 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/beta);\n+685\n+686 // the loop\n+687 int i = 1;\n+688 for( ; i<=_\b__\bm_\ba_\bx_\bi_\bt; i++) {\n+689\n+690 dummy = z;\n+691 int i1 = i%3,\n+692 i0 = (i1+2)%3,\n+693 i2 = (i1+1)%3;\n+694\n+695 // symmetrically preconditioned Lanczos algorithm (see Greenbaum p.121)\n+696 _\b__\bo_\bp->apply(z,q[i2]); // q[i2] = Az\n+697 q[i2].axpy(-beta,q[i0]);\n+698 // alpha is real since it is the diagonal entry of the hermitian\n+tridiagonal matrix\n+699 // from the Lanczos Algorithm\n+700 // so the order in the scalar product doesn't matter even for the complex\n+case\n+701 alpha = _\b__\bs_\bp->dot(z,q[i2]);\n+702 q[i2].axpy(-alpha,q[i1]);\n+703\n+704 z = 0.0;\n+705 _\b__\bp_\br_\be_\bc->apply(z,q[i2]);\n+706\n+707 // beta is real and positive in exact arithmetic\n+708 // since it is the norm of the basis vectors (in unpreconditioned case)\n+709 beta = sqrt(_\b__\bs_\bp->dot(q[i2],z));\n+710\n+711 q[i2] *= Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+712 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+713 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/beta);\n+714 z *= Simd::cond(def==_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+715 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+716 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/beta);\n+717\n+718 // QR Factorization of recurrence coefficient matrix\n+719 // apply previous givens rotations to last column of T\n+720 T[1] = T[2];\n+721 if(i>2) {\n+722 T[0] = s[i%2]*T[1];\n+723 T[1] = c[i%2]*T[1];\n+724 }\n+725 if(i>1) {\n+726 T[2] = c[(i+1)%2]*alpha - s[(i+1)%2]*T[1];\n+727 T[1] = c[(i+1)%2]*T[1] + s[(i+1)%2]*alpha;\n+728 }\n+729 else\n+730 T[2] = alpha;\n+731\n+732 // update QR factorization\n+733 generateGivensRotation(T[2],beta,c[i%2],s[i%2]);\n+734 // to last column of T_k\n+735 T[2] = c[i%2]*T[2] + s[i%2]*beta;\n+736 // and to the rhs xi of the min problem\n+737 xi[i%2] = -s[i%2]*xi[(i+1)%2];\n+738 xi[(i+1)%2] *= c[i%2];\n+739\n+740 // compute correction direction\n+741 p[i2] = dummy;\n+742 p[i2].axpy(-T[1],p[i1]);\n+743 p[i2].axpy(-T[0],p[i0]);\n+744 p[i2] *= _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/T[2];\n+745\n+746 // apply correction/update solution\n+747 x.axpy(beta0*xi[(i+1)%2],p[i2]);\n+748\n+749 // remember beta_old\n+750 T[2] = beta;\n+751\n+752 // check for convergence\n+753 // the last entry in the rhs of the min-problem is the residual\n+754 def = abs(beta0*xi[i%2]);\n+755 if(iteration.step(i, def)){\n+756 break;\n+757 }\n+758 } // end for\n+759\n+760 // postprocess preconditioner\n+761 _\b__\bp_\br_\be_\bc->post(x);\n+762 }\n+763\n+764 private:\n+765\n+766 void generateGivensRotation(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dx, _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dy, _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be &cs,\n+_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &sn)\n+767 {\n+768 using std::sqrt;\n+769 using std::abs;\n+770 using std::max;\n+771 using std::min;\n+772 const _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be eps = 1e-15;\n+773 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_dx = abs(dx);\n+774 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_dy = abs(dy);\n+775 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_max = max(norm_dx, norm_dy);\n+776 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_min = min(norm_dx, norm_dy);\n+777 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be temp = norm_min/norm_max;\n+778 // we rewrite the code in a vectorizable fashion\n+779 cs = Simd::cond(norm_dy < eps,\n+780 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0),\n+781 Simd::cond(norm_dx < eps,\n+782 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(0.0),\n+783 Simd::cond(norm_dy > norm_dx,\n+784 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*temp,\n+785 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)\n+786 )));\n+787 sn = Simd::cond(norm_dy < eps,\n+788 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.0),\n+789 Simd::cond(norm_dx < eps,\n+790 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0),\n+791 Simd::cond(norm_dy > norm_dx,\n+792 // dy and dx are real in exact arithmetic\n+793 // thus dx*dy is real so we can explicitly enforce it\n+794 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*dx*dy/norm_dx/norm_dy,\n+795 // dy and dx is real in exact arithmetic\n+796 // so we don't have to conjugate both of them\n+797 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*dy/dx\n+798 )));\n+799 }\n+800\n+801 protected:\n+802 using IterativeSolver_\b:_\b:_\b__\bo_\bp;\n+803 using IterativeSolver_\b:_\b:_\b__\bp_\br_\be_\bc;\n+804 using IterativeSolver_\b:_\b:_\b__\bs_\bp;\n+805 using IterativeSolver_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+806 using IterativeSolver_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n+807 using IterativeSolver_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+_\b8_\b0_\b8 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n+809 };\n+_\b8_\b1_\b0 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"minressolver\",\n+defaultIterativeSolverCreator());\n+811\n+825 template\n+_\b8_\b2_\b6 class _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n+827 {\n+828 public:\n+829 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+830 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+831 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+832 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+833\n+834 protected:\n+835 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+836\n+_\b8_\b3_\b8 using _\bf_\bA_\bl_\bl_\bo_\bc = _\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>;\n+_\b8_\b4_\b0 using _\br_\bA_\bl_\bl_\bo_\bc = _\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be_\b>;\n+841\n+842 public:\n+843\n+_\b8_\b5_\b0 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>& op, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>&\n+prec, _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int restart, int maxit, int verbose) :\n+851 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,prec,reduction,maxit,verbose),\n+852 _\b__\br_\be_\bs_\bt_\ba_\br_\bt(restart)\n+853 {}\n+854\n+_\b8_\b6_\b1 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>& op, const\n+_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>& sp, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>& prec, _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction,\n+int restart, int maxit, int verbose) :\n+862 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,reduction,maxit,verbose),\n+863 _\b__\br_\be_\bs_\bt_\ba_\br_\bt(restart)\n+864 {}\n+865\n+_\b8_\b7_\b8 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op, std::\n+shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> > prec, const ParameterTree& configuration) :\n+879 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,prec,configuration),\n+880 _\b__\br_\be_\bs_\bt_\ba_\br_\bt(configuration._\bg_\be_\bt(\"restart\"))\n+881 {}\n+882\n+_\b8_\b8_\b3 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op, std::\n+shared_ptr > sp, std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> >\n+prec, const ParameterTree& configuration) :\n+884 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,configuration),\n+885 _\b__\br_\be_\bs_\bt_\ba_\br_\bt(configuration._\bg_\be_\bt(\"restart\"))\n+886 {}\n+887\n+_\b8_\b9_\b4 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n+895 std::shared_ptr> sp,\n+896 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>> prec,\n+897 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int restart, int maxit, int verbose) :\n+898 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,reduction,maxit,verbose),\n+899 _\b__\br_\be_\bs_\bt_\ba_\br_\bt(restart)\n+900 {}\n+901\n+_\b9_\b1_\b0 virtual void _\ba_\bp_\bp_\bl_\by (X& x, Y& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+911 {\n+912 _\ba_\bp_\bp_\bl_\by(x,b,Simd::max(_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn),res);\n+913 }\n+914\n+_\b9_\b2_\b3 virtual void _\ba_\bp_\bp_\bl_\by (X& x, Y& b, [[maybe_unused]] double reduction,\n+_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+924 {\n+925 using std::abs;\n+926 const Simd::Scalar EPSILON = 1e-80;\n+927 const int m = _\b__\br_\be_\bs_\bt_\ba_\br_\bt;\n+928 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm = 0.0;\n+929 int j = 1;\n+930 std::vector s(m+1), sn(m);\n+931 std::vector cs(m);\n+932 // need copy of rhs if GMRes has to be restarted\n+933 Y b2(b);\n+934 // helper vector\n+935 Y w(b);\n+936 std::vector< std::vector > H(m+1,s);\n+937 std::vector v(m+1,b);\n+938\n+939 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this,res);\n+940\n+941 // clear solver statistics and set res.converged to false\n+942 _\b__\bp_\br_\be_\bc->pre(x,b);\n+943\n+944 // calculate defect and overwrite rhs with it\n+945 _\b__\bo_\bp->applyscaleadd(-1.0,x,b); // b -= Ax\n+946 // calculate preconditioned defect\n+947 v[0] = 0.0; _\b__\bp_\br_\be_\bc->apply(v[0],b); // r = W^-1 b\n+948 norm = _\b__\bs_\bp->norm(v[0]);\n+949 if(iteration.step(0, norm)){\n+950 _\b__\bp_\br_\be_\bc->post(x);\n+951 return;\n+952 }\n+953\n+954 while(j <= _\b__\bm_\ba_\bx_\bi_\bt && res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd != true) {\n+955\n+956 int i = 0;\n+957 v[0] *= Simd::cond(norm==_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(0.),\n+958 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(0.),\n+959 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/norm);\n+960 s[0] = norm;\n+961 for(i=1; iapply(v[i],v[i+1]);\n+970 _\b__\bp_\br_\be_\bc->apply(w,v[i+1]);\n+971 for(int k=0; kdot(v[k],w) = v[k]\\adjoint w\n+973 // so one has to pay attention to the order\n+974 // in the scalar product for the complex case\n+975 // doing the modified Gram-Schmidt algorithm\n+976 H[k][i] = _\b__\bs_\bp->dot(v[k],w);\n+977 // w -= H[k][i] * v[k]\n+978 w.axpy(-H[k][i],v[k]);\n+979 }\n+980 H[i+1][i] = _\b__\bs_\bp->norm(w);\n+981 if(Simd::allTrue(abs(H[i+1][i]) < EPSILON))\n+982 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt,\n+983 \"breakdown in GMRes - |w| == 0.0 after \" << j << \" iterations\");\n+984\n+985 // normalize new vector\n+986 v[i+1] = w;\n+987 v[i+1] *= Simd::cond(norm==_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(0.),\n+988 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.),\n+989 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/H[i+1][i]);\n+990\n+991 // update QR factorization\n+992 for(int k=0; k 0)\n+1020 std::cout << \"=== GMRes::restart\" << std::endl;\n+1021 // get saved rhs\n+1022 b = b2;\n+1023 // calculate new defect\n+1024 _\b__\bo_\bp->applyscaleadd(-1.0,x,b); // b -= Ax;\n+1025 // calculate preconditioned defect\n+1026 v[0] = 0.0;\n+1027 _\b__\bp_\br_\be_\bc->apply(v[0],b);\n+1028 norm = _\b__\bs_\bp->norm(v[0]);\n+1029 }\n+1030\n+1031 } //end while\n+1032\n+1033 // postprocess preconditioner\n+1034 _\b__\bp_\br_\be_\bc->post(x);\n+1035 }\n+1036\n+1037 protected :\n+1038\n+_\b1_\b0_\b3_\b9 void _\bu_\bp_\bd_\ba_\bt_\be(X& w, int i,\n+1040 const std::vector >& H,\n+1041 const std::vector& s,\n+1042 const std::vector& v) {\n+1043 // solution vector of the upper triangular system\n+1044 std::vector y(s);\n+1045\n+1046 // backsolve\n+1047 for(int a=i-1; a>=0; a--) {\n+1048 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be rhs(s[a]);\n+1049 for(int b=a+1; b\n+_\b1_\b0_\b6_\b2 typename std::enable_if::value,T>::type\n+_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be(const T& t) {\n+1063 return t;\n+1064 }\n+1065\n+1066 template\n+_\b1_\b0_\b6_\b7 typename std::enable_if::value,T>::\n+type _\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be(const T& t) {\n+1068 using std::conj;\n+1069 return conj(t);\n+1070 }\n+1071\n+1072 void\n+_\b1_\b0_\b7_\b3 _\bg_\be_\bn_\be_\br_\ba_\bt_\be_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dx, _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dy, _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be &cs,\n+_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &sn)\n+1074 {\n+1075 using std::sqrt;\n+1076 using std::abs;\n+1077 using std::max;\n+1078 using std::min;\n+1079 const _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be eps = 1e-15;\n+1080 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_dx = abs(dx);\n+1081 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_dy = abs(dy);\n+1082 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_max = max(norm_dx, norm_dy);\n+1083 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm_min = min(norm_dx, norm_dy);\n+1084 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be temp = norm_min/norm_max;\n+1085 // we rewrite the code in a vectorizable fashion\n+1086 cs = Simd::cond(norm_dy < eps,\n+1087 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0),\n+1088 Simd::cond(norm_dx < eps,\n+1089 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(0.0),\n+1090 Simd::cond(norm_dy > norm_dx,\n+1091 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*temp,\n+1092 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)\n+1093 )));\n+1094 sn = Simd::cond(norm_dy < eps,\n+1095 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0.0),\n+1096 Simd::cond(norm_dx < eps,\n+1097 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0),\n+1098 Simd::cond(norm_dy > norm_dx,\n+1099 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*dx*_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be(dy)/norm_dx/\n+norm_dy,\n+1100 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1.0)/sqrt(_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0) + temp*temp)*_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be(dy/dx)\n+1101 )));\n+1102 }\n+1103\n+1104\n+1105 void\n+_\b1_\b1_\b0_\b6 _\ba_\bp_\bp_\bl_\by_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dx, _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &dy, _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be &cs,\n+_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be &sn)\n+1107 {\n+1108 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be temp = cs * dx + sn * dy;\n+1109 dy = -_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be(sn) * dx + cs * dy;\n+1110 dx = temp;\n+1111 }\n+1112\n+1113 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n+1114 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n+1115 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n+1116 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+1117 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n+1118 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+_\b1_\b1_\b1_\b9 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n+_\b1_\b1_\b2_\b0 int _\b__\br_\be_\bs_\bt_\ba_\br_\bt;\n+1121 };\n+_\b1_\b1_\b2_\b2 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"restartedgmressolver\",\n+defaultIterativeSolverCreator());\n+1123\n+1137 template\n+_\b1_\b1_\b3_\b8 class _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bl_\be_\bx_\bi_\bb_\bl_\be_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br : public _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n+1139 {\n+1140 public:\n+1141 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+1142 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+1143 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+1144 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+1145\n+1146 private:\n+1147 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+1148\n+1150 using fAlloc = typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bf_\bA_\bl_\bl_\bo_\bc;\n+1152 using rAlloc = typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\bA_\bl_\bl_\bo_\bc;\n+1153\n+1154 public:\n+1155 // copy base class constructors\n+1156 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br::RestartedGMResSolver;\n+1157\n+1158 // don't shadow four-argument version of apply defined in the base class\n+1159 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+1160\n+_\b1_\b1_\b6_\b9 void _\ba_\bp_\bp_\bl_\by (X& x, Y& b, [[maybe_unused]] double reduction,\n+_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res) override\n+1170 {\n+1171 using std::abs;\n+1172 const Simd::Scalar EPSILON = 1e-80;\n+1173 const int m = _\b__\br_\be_\bs_\bt_\ba_\br_\bt;\n+1174 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be norm = 0.0;\n+1175 int i, j = 1, k;\n+1176 std::vector s(m+1), sn(m);\n+1177 std::vector cs(m);\n+1178 // helper vector\n+1179 Y tmp(b);\n+1180 std::vector< std::vector > H(m+1,s);\n+1181 std::vector v(m+1,b);\n+1182 std::vector w(m+1,b);\n+1183\n+1184 Iteration iteration(*this,res);\n+1185 // setup preconditioner if it does something in pre\n+1186\n+1187 // calculate residual and overwrite a copy of the rhs with it\n+1188 _\b__\bp_\br_\be_\bc->pre(x, b);\n+1189 v[0] = b;\n+1190 _\b__\bo_\bp->applyscaleadd(-1.0, x, v[0]); // b -= Ax\n+1191\n+1192 norm = _\b__\bs_\bp->norm(v[0]); // the residual norm\n+1193 if(iteration.step(0, norm)){\n+1194 _\b__\bp_\br_\be_\bc->post(x);\n+1195 return;\n+1196 }\n+1197\n+1198 // start iterations\n+1199 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = false;;\n+1200 while(j <= _\b__\bm_\ba_\bx_\bi_\bt && res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd != true)\n+1201 {\n+1202 v[0] *= (1.0 / norm);\n+1203 s[0] = norm;\n+1204 for(i=1; iapply(w[i], v[i]);\n+1213 // compute vi = A*wi\n+1214 // use v[i+1] as temporary vector for w\n+1215 _\b__\bo_\bp->apply(w[i], v[i+1]);\n+1216 // do Arnoldi algorithm\n+1217 for(int kk=0; kkdot(v[k],v[i+1]) = v[k]\\adjoint v[i+1]\n+1220 // so one has to pay attention to the order\n+1221 // in the scalar product for the complex case\n+1222 // doing the modified Gram-Schmidt algorithm\n+1223 H[kk][i] = _\b__\bs_\bp->dot(v[kk],v[i+1]);\n+1224 // w -= H[k][i] * v[kk]\n+1225 v[i+1].axpy(-H[kk][i], v[kk]);\n+1226 }\n+1227 H[i+1][i] = _\b__\bs_\bp->norm(v[i+1]);\n+1228 if(Simd::allTrue(abs(H[i+1][i]) < EPSILON))\n+1229 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt, \"breakdown in fGMRes - |w| (-> \"\n+1230 << w[i] << \") == 0.0 after \"\n+1231 << j << \" iterations\");\n+1232\n+1233 // v[i+1] = w*1/H[i+1][i]\n+1234 v[i+1] *= _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1.0)/H[i+1][i];\n+1235\n+1236 // update QR factorization\n+1237 for(k=0; k_\ba_\bp_\bp_\bl_\by_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(H[k][i],H[k+1][i],cs[k],sn[k]);\n+1239\n+1240 // compute new givens rotation\n+1241 this->_\bg_\be_\bn_\be_\br_\ba_\bt_\be_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(H[i][i],H[i+1][i],cs[i],sn[i]);\n+1242\n+1243 // finish updating QR factorization\n+1244 this->_\ba_\bp_\bp_\bl_\by_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(H[i][i],H[i+1][i],cs[i],sn[i]);\n+1245 this->_\ba_\bp_\bp_\bl_\by_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn(s[i],s[i+1],cs[i],sn[i]);\n+1246\n+1247 // norm of the residual is the last component of vector s\n+1248 using std::abs;\n+1249 norm = abs(s[i+1]);\n+1250 iteration.step(j, norm);\n+1251 } // end inner for loop\n+1252\n+1253 // calculate update vector\n+1254 tmp = 0.0;\n+1255 this->_\bu_\bp_\bd_\ba_\bt_\be(tmp, i, H, s, w);\n+1256 // and update current iterate\n+1257 x += tmp;\n+1258\n+1259 // restart fGMRes if convergence was not achieved,\n+1260 // i.e. linear residual has not reached desired reduction\n+1261 // and if still j < _maxit (do not restart on last iteration)\n+1262 if( res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd != true && j < _\b__\bm_\ba_\bx_\bi_\bt)\n+1263 {\n+1264 if (_\b__\bv_\be_\br_\bb_\bo_\bs_\be > 0)\n+1265 std::cout << \"=== fGMRes::restart\" << std::endl;\n+1266 // get rhs\n+1267 v[0] = b;\n+1268 // calculate new defect\n+1269 _\b__\bo_\bp->applyscaleadd(-1.0, x,v[0]); // b -= Ax;\n+1270 // calculate preconditioned defect\n+1271 norm = _\b__\bs_\bp->norm(v[0]); // update the residual norm\n+1272 }\n+1273\n+1274 } // end outer while loop\n+1275\n+1276 // post-process preconditioner\n+1277 _\b__\bp_\br_\be_\bc->post(x);\n+1278 }\n+1279\n+1280private:\n+1281 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n+1282 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n+1283 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n+1284 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+1285 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n+1286 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+1287 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bs_\bt_\ba_\br_\bt;\n+1288 using Iteration = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n+Iteration;\n+1289 };\n+_\b1_\b2_\b9_\b0 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"restartedflexiblegmressolver\",\n+defaultIterativeSolverCreator());\n+1291\n+1305 template\n+_\b1_\b3_\b0_\b6 class _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n+1307 {\n+1308 public:\n+1309 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+1310 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+1311 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+1312 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+1313\n+1314 private:\n+1315 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+1316\n+1318 using fAlloc = _\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>;\n+1319\n+1320 public:\n+1321\n+1322 // don't shadow four-argument version of apply defined in the base class\n+1323 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+1324\n+_\b1_\b3_\b3_\b1 _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>&\n+prec, _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, int restart = 10) :\n+1332 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,prec,reduction,maxit,verbose),\n+1333 _restart(restart)\n+1334 {}\n+1335\n+_\b1_\b3_\b4_\b3 _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, const\n+_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>& sp, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>& prec, _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction,\n+int maxit, int verbose, int restart = 10) :\n+1344 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,reduction,maxit,verbose),\n+1345 _restart(restart)\n+1346 {}\n+1347\n+1348\n+_\b1_\b3_\b6_\b1 _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op,\n+std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> > prec, const ParameterTree& configuration)\n+:\n+1362 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,prec,configuration),\n+1363 _restart(configuration._\bg_\be_\bt(\"restart\"))\n+1364 {}\n+1365\n+_\b1_\b3_\b6_\b6 _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op,\n+std::shared_ptr > sp, std::\n+shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> > prec, const ParameterTree& configuration) :\n+1367 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,configuration),\n+1368 _restart(configuration._\bg_\be_\bt(\"restart\"))\n+1369 {}\n+_\b1_\b3_\b7_\b7 _\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n+1378 std::shared_ptr> sp,\n+1379 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>> prec,\n+1380 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose,\n+1381 int restart = 10) :\n+1382 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br::_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,reduction,maxit,verbose),\n+1383 _restart(restart)\n+1384 {}\n+1385\n+_\b1_\b3_\b9_\b1 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+1392 {\n+1393 Iteration iteration(*this, res);\n+1394 _\b__\bp_\br_\be_\bc->pre(x,b); // prepare preconditioner\n+1395 _\b__\bo_\bp->applyscaleadd(-1,x,b); // overwrite b with defect\n+1396\n+1397 std::vector > p(_restart);\n+1398 std::vector pp(_restart);\n+1399 X q(x); // a temporary vector\n+1400 X prec_res(x); // a temporary vector for preconditioner output\n+1401\n+1402 p[0].reset(new X(x));\n+1403\n+1404 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(b); // compute norm\n+1405 if(iteration.step(0, def)){\n+1406 _\b__\bp_\br_\be_\bc->post(x);\n+1407 return;\n+1408 }\n+1409 // some local variables\n+1410 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be rho, lambda;\n+1411\n+1412 int i=0;\n+1413 int ii=0;\n+1414 // determine initial search direction\n+1415 *(p[0]) = 0; // clear correction\n+1416 _\b__\bp_\br_\be_\bc->apply(*(p[0]),b); // apply preconditioner\n+1417 rho = _\b__\bs_\bp->dot(*(p[0]),b); // orthogonalization\n+1418 _\b__\bo_\bp->apply(*(p[0]),q); // q=Ap\n+1419 pp[0] = _\b__\bs_\bp->dot(*(p[0]),q); // scalar product\n+1420 lambda = rho/pp[0]; // minimization\n+1421 x.axpy(lambda,*(p[0])); // update solution\n+1422 b.axpy(-lambda,q); // update defect\n+1423\n+1424 // convergence test\n+1425 def=_\b__\bs_\bp->norm(b); // comp defect norm\n+1426 ++i;\n+1427 if(iteration.step(i, def)){\n+1428 _\b__\bp_\br_\be_\bc->post(x);\n+1429 return;\n+1430 }\n+1431\n+1432 while(i<_\b__\bm_\ba_\bx_\bi_\bt) {\n+1433 // the loop\n+1434 int end=std::min(_restart, _\b__\bm_\ba_\bx_\bi_\bt-i+1);\n+1435 for (ii=1; iiapply(prec_res,b); // apply preconditioner\n+1441\n+1442 p[ii].reset(new X(prec_res));\n+1443 _\b__\bo_\bp->apply(prec_res, q);\n+1444\n+1445 for(int j=0; jdot(q,*(p[j]))/pp[j];\n+1447 p[ii]->axpy(-rho, *(p[j]));\n+1448 }\n+1449\n+1450 // minimize in given search direction\n+1451 _\b__\bo_\bp->apply(*(p[ii]),q); // q=Ap\n+1452 pp[ii] = _\b__\bs_\bp->dot(*(p[ii]),q); // scalar product\n+1453 rho = _\b__\bs_\bp->dot(*(p[ii]),b); // orthogonalization\n+1454 lambda = rho/pp[ii]; // minimization\n+1455 x.axpy(lambda,*(p[ii])); // update solution\n+1456 b.axpy(-lambda,q); // update defect\n+1457\n+1458 // convergence test\n+1459 def = _\b__\bs_\bp->norm(b); // comp defect norm\n+1460\n+1461 ++i;\n+1462 iteration.step(i, def);\n+1463 }\n+1464 if(res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd)\n+1465 break;\n+1466 if(end==_restart) {\n+1467 *(p[0])=*(p[_restart-1]);\n+1468 pp[0]=pp[_restart-1];\n+1469 }\n+1470 }\n+1471\n+1472 // postprocess preconditioner\n+1473 _\b__\bp_\br_\be_\bc->post(x);\n+1474\n+1475 }\n+1476\n+1477 private:\n+1478 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n+1479 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n+1480 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n+1481 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+1482 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n+1483 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+1484 using Iteration = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n+Iteration;\n+1485 int _restart;\n+1486 };\n+_\b1_\b4_\b8_\b7 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"generalizedpcgsolver\",\n+defaultIterativeSolverCreator());\n+1488\n+1500 template\n+_\b1_\b5_\b0_\b1 class _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br {\n+1502 public:\n+1503 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+1504 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+1505 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+1506 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+1507\n+1508 private:\n+1509 using typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+1510\n+1511 public:\n+1512 // don't shadow four-argument version of apply defined in the base class\n+1513 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+_\b1_\b5_\b1_\b9 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>&\n+prec,\n+1520 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, int mmax = 10) :\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, prec, reduction, maxit, verbose), _\b__\bm_\bm_\ba_\bx(mmax)\n+1521 {\n+1522 }\n+1523\n+_\b1_\b5_\b2_\b9 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bX_\b>& op, const _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>&\n+sp, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>& prec,\n+1530 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose, int mmax = 10) :\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, sp, prec, reduction, maxit, verbose), _\b__\bm_\bm_\ba_\bx(mmax)\n+1531 {\n+1532 }\n+1533\n+_\b1_\b5_\b3_\b9 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n+1540 std::shared_ptr> sp,\n+1541 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>> prec,\n+1542 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose,\n+1543 int mmax = 10)\n+1544 : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, sp, prec, reduction, maxit, verbose), _\b__\bm_\bm_\ba_\bx\n+(mmax)\n+1545 {}\n+1546\n+_\b1_\b5_\b5_\b9 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n+1560 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>> prec,\n+1561 const ParameterTree& config)\n+1562 : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, prec, config), _\b__\bm_\bm_\ba_\bx(config._\bg_\be_\bt(\"mmax\", 10))\n+1563 {}\n+1564\n+_\b1_\b5_\b6_\b5 _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n+1566 std::shared_ptr> sp,\n+1567 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b>> prec,\n+1568 const ParameterTree& config)\n+1569 : _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op, sp, prec, config), _\b__\bm_\bm_\ba_\bx(config._\bg_\be_\bt(\"mmax\",\n+10))\n+1570 {}\n+1571\n+_\b1_\b5_\b8_\b4 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+1585 {\n+1586 using rAlloc = _\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>;\n+1587 res._\bc_\bl_\be_\ba_\br();\n+1588 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn iteration(*this,res);\n+1589 _\b__\bp_\br_\be_\bc->pre(x,b); // prepare preconditioner\n+1590 _\b__\bo_\bp->applyscaleadd(-1,x,b); // overwrite b with defect\n+1591\n+1592 //arrays for interim values:\n+1593 std::vector d(_\b__\bm_\bm_\ba_\bx+1, x); // array for directions\n+1594 std::vector Ad(_\b__\bm_\bm_\ba_\bx+1, x); // array for Ad[i]\n+1595 std::vector ddotAd(_\b__\bm_\bm_\ba_\bx+1,0); // array for \n+1596 X w(x);\n+1597\n+1598 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def = _\b__\bs_\bp->norm(b); // compute norm\n+1599 if(iteration.step(0, def)){\n+1600 _\b__\bp_\br_\be_\bc->post(x);\n+1601 return;\n+1602 }\n+1603\n+1604 // some local variables\n+1605 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha;\n+1606\n+1607 // the loop\n+1608 int i=1;\n+1609 int i_bounded=0;\n+1610 while(i<=_\b__\bm_\ba_\bx_\bi_\bt && !res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd) {\n+1611 for (; i_bounded <= _\b__\bm_\bm_\ba_\bx && i<= _\b__\bm_\ba_\bx_\bi_\bt; i_bounded++) {\n+1612 d[i_bounded] = 0; // reset search direction\n+1613 _\b__\bp_\br_\be_\bc->apply(d[i_bounded], b); // apply preconditioner\n+1614 w = d[i_bounded]; // copy of current d[i]\n+1615 // orthogonalization with previous directions\n+1616 orthogonalizations(i_bounded,Ad,w,ddotAd,d);\n+1617\n+1618 //saving interim values for future calculating\n+1619 _\b__\bo_\bp->apply(d[i_bounded], Ad[i_bounded]); // save Ad[i]\n+1620 ddotAd[i_bounded]=_\b__\bs_\bp->dot(d[i_bounded],Ad[i_bounded]); // save \n+1621 alpha = _\b__\bs_\bp->dot(d[i_bounded], b)/ddotAd[i_bounded]; // /\n+1622\n+1623 //update solution and defect\n+1624 x.axpy(alpha, d[i_bounded]);\n+1625 b.axpy(-alpha, Ad[i_bounded]);\n+1626\n+1627 // convergence test\n+1628 def = _\b__\bs_\bp->norm(b); // comp defect norm\n+1629\n+1630 iteration.step(i, def);\n+1631 i++;\n+1632 }\n+1633 //restart: exchange first and last stored values\n+1634 cycle(Ad,d,ddotAd,i_bounded);\n+1635 }\n+1636\n+1637 //correct i which is wrong if convergence was not achieved.\n+1638 i=std::min(_\b__\bm_\ba_\bx_\bi_\bt,i);\n+1639\n+1640 _\b__\bp_\br_\be_\bc->post(x); // postprocess preconditioner\n+1641 }\n+1642\n+1643 private:\n+1644 //This function is called every iteration to orthogonalize against the\n+last search directions\n+1645 virtual void orthogonalizations(const int& i_bounded,const std::vector&\n+Ad, const X& w, const std::\n+vector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be,_\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>>& ddotAd,std::vector&\n+d) {\n+1646 // The RestartedFCGSolver uses only values with lower array index;\n+1647 for (int k = 0; k < i_bounded; k++) {\n+1648 d[i_bounded].axpy(-_\b__\bs_\bp->dot(Ad[k], w) / ddotAd[k], d[k]); // d[i] -= </>d[k]\n+1649 }\n+1650 }\n+1651\n+1652 // This function is called every mmax iterations to handle limited array\n+sizes.\n+1653 virtual void cycle(std::vector& Ad,std::vector& d,std::\n+vector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be,ReboundAllocatorType >& ddotAd,int& i_bounded)\n+{\n+1654 // Reset loop index and exchange the first and last arrays\n+1655 i_bounded = 1;\n+1656 std::swap(Ad[0], Ad[_\b__\bm_\bm_\ba_\bx]);\n+1657 std::swap(d[0], d[_\b__\bm_\bm_\ba_\bx]);\n+1658 std::swap(ddotAd[0], ddotAd[_\b__\bm_\bm_\ba_\bx]);\n+1659 }\n+1660\n+1661 protected:\n+_\b1_\b6_\b6_\b2 int _\b__\bm_\bm_\ba_\bx;\n+1663 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n+1664 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n+1665 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n+1666 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+1667 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n+1668 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+_\b1_\b6_\b6_\b9 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn = typename _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b,_\bX_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\bu_\bn_\bs_\bi_\bg_\bn_\be_\bd_\b _\bi_\bn_\bt_\b>;\n+1670 };\n+_\b1_\b6_\b7_\b1 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"restartedfcgsolver\",\n+defaultIterativeSolverCreator());\n+1672\n+1679 template\n+_\b1_\b6_\b8_\b0 class _\bC_\bo_\bm_\bp_\bl_\be_\bt_\be_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br : public _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br {\n+1681 public:\n+1682 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+1683 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+1684 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+1685 using typename _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+1686\n+1687 // copy base class constructors\n+1688 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br::RestartedFCGSolver;\n+1689\n+1690 // don't shadow four-argument version of apply defined in the base class\n+1691 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+1692\n+1693 // just a minor part of the RestartedFCGSolver apply method will be\n+modified\n+_\b1_\b6_\b9_\b4 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res) override {\n+1695 // reset limiter of orthogonalization loop\n+1696 _k_limit = 0;\n+1697 this->_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b<_\bX_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(x,b,res);\n+1698 };\n+1699\n+1700 private:\n+1701 // This function is called every iteration to orthogonalize against the\n+last search directions.\n+1702 virtual void orthogonalizations(const int& i_bounded,const std::vector&\n+Ad, const X& w, const std::\n+vector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be,_\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be_\b<_\bX_\b,_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>>& ddotAd,std::vector&\n+d) override {\n+1703 // This FCGSolver uses values with higher array indexes too, if existent.\n+1704 for (int k = 0; k < _k_limit; k++) {\n+1705 if(i_bounded!=k)\n+1706 d[i_bounded].axpy(-_\b__\bs_\bp->dot(Ad[k], w) / ddotAd[k], d[k]); // d[i] -= </>d[k]\n+1707 }\n+1708 // The loop limit increase, if array is not completely filled.\n+1709 if(_k_limit<=i_bounded)\n+1710 _k_limit++;\n+1711\n+1712 };\n+1713\n+1714 // This function is called every mmax iterations to handle limited array\n+sizes.\n+1715 virtual void cycle(std::vector& Ad, [[maybe_unused]] std::vector& d,\n+[[maybe_unused]] std::vector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be,ReboundAllocatorType >&\n+ddotAd,int& i_bounded) override {\n+1716 // Only the loop index i_bounded return to 0, if it reached mmax.\n+1717 i_bounded = 0;\n+1718 // Now all arrays are filled and the loop in void orthogonalizations can\n+use the whole arrays.\n+1719 _k_limit = Ad.size();\n+1720 };\n+1721\n+1722 int _k_limit = 0;\n+1723\n+1724 protected:\n+1725 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\bm_\ba_\bx;\n+1726 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp;\n+1727 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc;\n+1728 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp;\n+1729 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+1730 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt;\n+1731 using _\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+1732 };\n+_\b1_\b7_\b3_\b3 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"completefcgsolver\",\n+defaultIterativeSolverCreator());\n+1735} // end namespace\n+1736\n+1737#endif\n+_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n+Define base class for scalar product and norm.\n+_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b._\bh_\bh\n+_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\n+_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bI_\bT_\bE_\bR_\bA_\bT_\bI_\bV_\bE_\b__\bS_\bO_\bL_\bV_\bE_\bR\n+#define DUNE_REGISTER_ITERATIVE_SOLVER(name,...)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:19\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\ba_\br_\bp_\ba_\bc_\bk_\bp_\bp_\b._\bh_\bh\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\n _\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n Implementation of the BCRSMatrix class.\n-_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-This file implements a quadratic matrix of fixed size which is a multiple of\n-the identity.\n+_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n+Define general, extensible interface for operators. The available\n+implementation wraps a matrix.\n+_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n+Define general, extensible interface for inverse operators.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh\n-std::pair< std::size_t, std::size_t > flatMatrixForEach(Matrix &&matrix, F &&f,\n-std::size_t rowOffset=0, std::size_t colOffset=0)\n-Traverse a blocked matrix and call a functor at each scalar entry.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:132\n-_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh\n-std::size_t flatVectorForEach(Vector &&vector, F &&f, std::size_t offset=0)\n-Traverse a blocked vector and call a functor at each scalar entry.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\br_\bo_\bw_\bs\n-auto rows(Matrix const &matrix)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:69\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bc_\bo_\bl_\bs\n-auto cols(Matrix const &matrix)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:72\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bs_\bi_\bz_\be\n-auto size(Vector const &vector)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-A generic dynamic dense matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-size_type M() const\n-Return the number of columns.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:700\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n+Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bb_\bo_\bu_\bn_\bd_\bA_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\bT_\by_\bp_\be\n+typename std::allocator_traits< typename AllocatorTraits< T >::type >::template\n+rebind_alloc< X > ReboundAllocatorType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bw_\bi_\bs_\be\n+@ row_wise\n+Build in a row-wise manner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:521\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd\n+CreateIterator createend()\n+get create iterator pointing to one after the last block\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1103\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn\n+CreateIterator createbegin()\n+get initial create iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1097\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n size_type N() const\n-Return the number of rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:695\n+number of rows (counted in blocks)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A vector of blocks with memory management.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n+Wrapper to use a range of ARPACK++ eigenvalue solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:245\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\ba_\bx_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be\n+void computeSymMaxMagnitude(const Real &epsilon, BlockVector &x, Real &lambda)\n+const\n+Assume the matrix to be square, symmetric and perform IRLM to compute an\n+approximation lambda of its ...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:289\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\bi_\bn_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be\n+void computeSymMinMagnitude(const Real &epsilon, BlockVector &x, Real &lambda)\n+const\n+Assume the matrix to be square, symmetric and perform IRLM to compute an\n+approximation lambda of its ...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:391\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt\n+Thrown when a solver aborts due to some problem.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A linear operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Base class for scalar product and norm computation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+Statistics about the application of an inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\b__\be_\bs_\bt_\bi_\bm_\ba_\bt_\be\n+double condition_estimate\n+Estimate of condition number.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:79\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bl_\be_\ba_\br\n+void clear()\n+Resets all data.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n+bool converged\n+True if convergence criterion has been met.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+Simd::Scalar< real_type > scalar_real_type\n+scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+Type of the range of the operator to be inverted.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:105\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+Type of the domain of the operator to be inverted.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:102\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:108\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+FieldTraits< field_type >::real_type real_type\n+The real type of the field type (is the same if using real numbers, but differs\n+for std::complex)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:111\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n+Base class for all implementations of iterative solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:203\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\bs_\bp\n+std::shared_ptr< const ScalarProduct< X > > _sp\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:506\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\bo_\bp\n+std::shared_ptr< const LinearOperator< X, X > > _op\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:504\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt\n+int _maxit\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:508\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be\n+int _verbose\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:509\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn\n+scalar_real_type _reduction\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:507\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bX_\b _\b>_\b:_\b:_\b__\bp_\br_\be_\bc\n+std::shared_ptr< Preconditioner< X, X > > _prec\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:505\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br\n+Preconditioned loop solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:59\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, X &b, InverseOperatorResult &res)\n+Apply inverse operator,.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bo_\bo_\bp_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:116\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br\n+gradient method\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:124\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, X &b, InverseOperatorResult &res)\n+Apply inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:142\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\br_\ba_\bd_\bi_\be_\bn_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:187\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+conjugate gradient method\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:193\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+CGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::shared_ptr<\n+ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec,\n+scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)\n+Constructor to initialize a CG solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:256\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\be_\bn_\ba_\bb_\bl_\be_\bC_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\bE_\bs_\bt_\bi_\bm_\ba_\bt_\be\n+static constexpr bool enableConditionEstimate\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:208\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+CGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X > &sp,\n+Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int\n+verbose, bool condition_estimate)\n+Constructor to initialize a CG solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:239\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, X &b, InverseOperatorResult &res)\n+Apply inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:279\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+CGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X > &prec,\n+scalar_real_type reduction, int maxit, int verbose, bool condition_estimate)\n+Constructor to initialize a CG solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:222\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:412\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br\n+Bi-conjugate Gradient Stabilized (BiCG-STAB)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:419\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+typename IterativeSolver< X, X >::template Iteration< CountType > Iteration\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:598\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, X &b, InverseOperatorResult &res)\n+Apply inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:439\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br\n+Minimal Residual Method (MINRES)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:609\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, X &b, InverseOperatorResult &res)\n+Apply inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:627\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bI_\bN_\bR_\bE_\bS_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:808\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n+implements the Generalized Minimal Residual (GMRes) method\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:827\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n+RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n+shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:878\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be\n+std::enable_if::value, T >::type\n+conjugate(const T &t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1067\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n+RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n+shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n+X > > prec, const ParameterTree &configuration)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:883\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bu_\bp_\bd_\ba_\bt_\be\n+void update(X &w, int i, const std::vector< std::vector< field_type, fAlloc > >\n+&H, const std::vector< field_type, fAlloc > &s, const std::vector< X > &v)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1039\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bc_\bo_\bn_\bj_\bu_\bg_\ba_\bt_\be\n+std::enable_if< std::is_same< field_type, real_type >::value, T >::type\n+conjugate(const T &t)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1062\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bf_\bA_\bl_\bl_\bo_\bc\n+ReboundAllocatorType< X, field_type > fAlloc\n+field_type Allocator retrieved from domain type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:838\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bs_\bt_\ba_\br_\bt\n+int _restart\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\bA_\bl_\bl_\bo_\bc\n+ReboundAllocatorType< X, real_type > rAlloc\n+real_type Allocator retrieved from domain type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:840\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, Y &b, double reduction, InverseOperatorResult &res)\n+Apply inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:923\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n+RestartedGMResSolver(const LinearOperator< X, Y > &op, Preconditioner< X, Y >\n+&prec, scalar_real_type reduction, int restart, int maxit, int verbose)\n+Set up RestartedGMResSolver solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:850\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n+RestartedGMResSolver(const LinearOperator< X, Y > &op, const ScalarProduct< X >\n+&sp, Preconditioner< X, Y > &prec, scalar_real_type reduction, int restart, int\n+maxit, int verbose)\n+Set up RestartedGMResSolver solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:861\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bg_\be_\bn_\be_\br_\ba_\bt_\be_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn\n+void generatePlaneRotation(field_type &dx, field_type &dy, real_type &cs,\n+field_type &sn)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1073\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n+RestartedGMResSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n+shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n+Y > > prec, scalar_real_type reduction, int restart, int maxit, int verbose)\n+Set up RestartedGMResSolver solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:894\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, Y &b, InverseOperatorResult &res)\n+Apply inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:910\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1119\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bP_\bl_\ba_\bn_\be_\bR_\bo_\bt_\ba_\bt_\bi_\bo_\bn\n+void applyPlaneRotation(field_type &dx, field_type &dy, real_type &cs,\n+field_type &sn)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1106\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bl_\be_\bx_\bi_\bb_\bl_\be_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br\n+implements the Flexible Generalized Minimal Residual (FGMRes) method (right\n+preconditioned)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1139\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bl_\be_\bx_\bi_\bb_\bl_\be_\bG_\bM_\bR_\be_\bs_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(X &x, Y &b, double reduction, InverseOperatorResult &res) override\n+Apply inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1169\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+Generalized preconditioned conjugate gradient solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1307\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+GeneralizedPCGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X >\n+&sp, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int\n+verbose, int restart=10)\n+Set up nonlinear preconditioned conjugate gradient solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1343\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+GeneralizedPCGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X >\n+&prec, scalar_real_type reduction, int maxit, int verbose, int restart=10)\n+Set up nonlinear preconditioned conjugate gradient solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1331\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, X &b, InverseOperatorResult &res)\n+Apply inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1391\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n+shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1361\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n+shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n+X > > prec, scalar_real_type reduction, int maxit, int verbose, int restart=10)\n+Set up nonlinear preconditioned conjugate gradient solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1377\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bG_\be_\bn_\be_\br_\ba_\bl_\bi_\bz_\be_\bd_\bP_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+GeneralizedPCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n+shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n+X > > prec, const ParameterTree &configuration)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1366\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+Accelerated flexible conjugate gradient method.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1501\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+RestartedFCGSolver(const LinearOperator< X, X > &op, Preconditioner< X, X >\n+&prec, scalar_real_type reduction, int maxit, int verbose, int mmax=10)\n+Constructor to initialize a RestartedFCG solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1519\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n+shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &config)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1559\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n+shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n+X > > prec, scalar_real_type reduction, int maxit, int verbose, int mmax=10)\n+Constructor to initialize a RestartedFCG solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1539\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\bm_\ba_\bx\n+int _mmax\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1662\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+RestartedFCGSolver(std::shared_ptr< const LinearOperator< X, X > > op, std::\n+shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n+X > > prec, const ParameterTree &config)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1565\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+typename IterativeSolver< X, X >::template Iteration< unsigned int > Iteration\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1669\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, X &b, InverseOperatorResult &res)\n+Apply inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1584\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bR_\be_\bs_\bt_\ba_\br_\bt_\be_\bd_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+RestartedFCGSolver(const LinearOperator< X, X > &op, const ScalarProduct< X >\n+&sp, Preconditioner< X, X > &prec, scalar_real_type reduction, int maxit, int\n+verbose, int mmax=10)\n+Constructor to initialize a RestartedFCG solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1529\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\bl_\be_\bt_\be_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br\n+Complete flexible conjugate gradient method.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1680\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bp_\bl_\be_\bt_\be_\bF_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, X &b, InverseOperatorResult &res) override\n+Apply inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvers.hh:1694\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00176.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00176.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixmarket.hh File Reference\n+dune-istl: supermatrix.hh File Reference\n \n \n \n \n \n \n \n@@ -71,265 +71,63 @@\n \n \n \n \n+
    supermatrix.hh File Reference
    \n \n
    \n-\n-

    Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices. \n-More...

    \n-
    #include <algorithm>
    \n-#include <complex>
    \n-#include <cstddef>
    \n-#include <fstream>
    \n-#include <ios>
    \n-#include <iostream>
    \n-#include <istream>
    \n-#include <limits>
    \n-#include <ostream>
    \n-#include <set>
    \n-#include <sstream>
    \n-#include <string>
    \n-#include <tuple>
    \n-#include <type_traits>
    \n-#include <vector>
    \n-#include <dune/common/exceptions.hh>
    \n+
    #include "bcrsmatrix.hh"
    \n+#include "bvector.hh"
    \n #include <dune/common/fmatrix.hh>
    \n #include <dune/common/fvector.hh>
    \n-#include <dune/common/hybridutilities.hh>
    \n-#include <dune/common/stdstreams.hh>
    \n-#include <dune/common/simd/simd.hh>
    \n-#include <dune/istl/bcrsmatrix.hh>
    \n-#include <dune/istl/bvector.hh>
    \n-#include <dune/istl/matrixutils.hh>
    \n-#include <dune/istl/owneroverlapcopy.hh>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <limits>
    \n+#include <dune/istl/bccsmatrixinitializer.hh>
    \n+#include "superlufunctions.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n+\n+\n \n-\n-\n+\n \n-\n-\n+\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n

    \n Classes

    struct  Dune::MatrixMarketImpl::mm_numeric_type< T >
     Helper metaprogram to get the matrix market string representation of the numeric type. More...
     
    struct  Dune::MatrixMarketImpl::mm_numeric_type< int >
     
    struct  Dune::MatrixMarketImpl::mm_numeric_type< double >
     
    struct  Dune::MatrixMarketImpl::mm_numeric_type< float >
     
    struct  Dune::MatrixMarketImpl::mm_numeric_type< std::complex< double > >
     
    struct  Dune::MatrixMarketImpl::mm_numeric_type< std::complex< float > >
     
    struct  Dune::MatrixMarketImpl::mm_header_printer< BCRSMatrix< T, A > >
     
    struct  Dune::MatrixMarketImpl::mm_header_printer< BlockVector< B, A > >
     
    struct  Dune::MatrixMarketImpl::mm_header_printer< FieldVector< T, j > >
     
    struct  Dune::MatrixMarketImpl::mm_header_printer< FieldMatrix< T, i, j > >
    struct  Dune::SuperMatrixCreateSparseChooser< T >
     
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< BlockVector< T, A > >
    struct  Dune::SuperMatrixPrinter< T >
     
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< BlockVector< FieldVector< T, i >, A > >
    struct  Dune::BaseGetSuperLUType< T >
     
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< BCRSMatrix< T, A > >
    struct  Dune::GetSuperLUType< T >
     
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< BCRSMatrix< FieldMatrix< T, i, j >, A > >
    struct  Dune::GetSuperLUType< double >
     
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< FieldMatrix< T, i, j > >
    struct  Dune::GetSuperLUType< float >
     
    struct  Dune::MatrixMarketImpl::mm_block_structure_header< FieldVector< T, i > >
    struct  Dune::GetSuperLUType< std::complex< double > >
     
    struct  Dune::MatrixMarketImpl::MMHeader
    struct  Dune::GetSuperLUType< std::complex< float > >
     
    struct  Dune::MatrixMarketImpl::IndexData< T >
    struct  Dune::SuperLUMatrix< M >
     Utility class for converting an ISTL Matrix into a SuperLU Matrix. More...
     
    struct  Dune::MatrixMarketImpl::NumericWrapper< T >
     a wrapper class of numeric values. More...
    struct  Dune::SuperMatrixInitializer< M >
     
    struct  Dune::MatrixMarketImpl::PatternDummy
     Utility class for marking the pattern type of the MatrixMarket matrices. More...
    class  Dune::SuperLUMatrix< BCRSMatrix< B, TA > >
     Converter for BCRSMatrix to SuperLU Matrix. More...
     
    struct  Dune::MatrixMarketImpl::NumericWrapper< PatternDummy >
     
    struct  Dune::MatrixMarketImpl::MatrixValuesSetter< D, brows, bcols >
     Functor to the data values of the matrix. More...
     
    struct  Dune::MatrixMarketImpl::MatrixValuesSetter< PatternDummy, brows, bcols >
     
    struct  Dune::MatrixMarketImpl::is_complex< T >
     
    struct  Dune::MatrixMarketImpl::is_complex< std::complex< T > >
     
    struct  Dune::MatrixMarketImpl::mm_multipliers< M >
     
    struct  Dune::MatrixMarketImpl::mm_multipliers< BCRSMatrix< B, A > >
     
    struct  Dune::MatrixMarketImpl::mm_multipliers< BCRSMatrix< FieldMatrix< B, i, j >, A > >
     
    class  Dune::MatrixMarketFormatError
    class  Dune::SuperMatrixInitializer< BCRSMatrix< B, A > >
     
    \n \n \n \n-\n-\n-

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::MatrixMarketImpl
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Enumerations

    enum  Dune::MatrixMarketImpl::LineType { Dune::MatrixMarketImpl::MM_HEADER\n-, Dune::MatrixMarketImpl::MM_ISTLSTRUCT\n-, Dune::MatrixMarketImpl::DATA\n- }
     
    enum  { Dune::MatrixMarketImpl::MM_MAX_LINE_LENGTH =1025\n- }
     
    enum  Dune::MatrixMarketImpl::MM_TYPE { Dune::MatrixMarketImpl::coordinate_type\n-, Dune::MatrixMarketImpl::array_type\n-, Dune::MatrixMarketImpl::unknown_type\n- }
     
    enum  Dune::MatrixMarketImpl::MM_CTYPE {
    \n-  Dune::MatrixMarketImpl::integer_type\n-, Dune::MatrixMarketImpl::double_type\n-, Dune::MatrixMarketImpl::complex_type\n-, Dune::MatrixMarketImpl::pattern\n-,
    \n-  Dune::MatrixMarketImpl::unknown_ctype\n-
    \n- }
     
    enum  Dune::MatrixMarketImpl::MM_STRUCTURE {
    \n-  Dune::MatrixMarketImpl::general\n-, Dune::MatrixMarketImpl::symmetric\n-, Dune::MatrixMarketImpl::skew_symmetric\n-, Dune::MatrixMarketImpl::hermitian\n-,
    \n-  Dune::MatrixMarketImpl::unknown_structure\n-
    \n- }
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Functions

    bool Dune::MatrixMarketImpl::lineFeed (std::istream &file)
     
    void Dune::MatrixMarketImpl::skipComments (std::istream &file)
     
    bool Dune::MatrixMarketImpl::readMatrixMarketBanner (std::istream &file, MMHeader &mmHeader)
     
    template<std::size_t brows, std::size_t bcols>
    std::tuple< std::size_t, std::size_t, std::size_t > Dune::MatrixMarketImpl::calculateNNZ (std::size_t rows, std::size_t cols, std::size_t entries, const MMHeader &header)
     
    template<typename T >
    std::istream & Dune::MatrixMarketImpl::operator>> (std::istream &is, NumericWrapper< T > &num)
     
    std::istream & Dune::MatrixMarketImpl::operator>> (std::istream &is, NumericWrapper< PatternDummy > &num)
     
    template<typename T >
    bool Dune::MatrixMarketImpl::operator< (const IndexData< T > &i1, const IndexData< T > &i2)
     LessThan operator.
     
    template<typename T >
    std::istream & Dune::MatrixMarketImpl::operator>> (std::istream &is, IndexData< T > &data)
     Read IndexData from a stream.
     
    template<typename T >
    std::istream & Dune::MatrixMarketImpl::operator>> (std::istream &is, IndexData< NumericWrapper< std::complex< T > > > &data)
     Read IndexData from a stream. Specialization for std::complex.
     
    template<class T >
    std::enable_if_t<!is_complex< T >::value, T > Dune::MatrixMarketImpl::conj (const T &r)
     
    template<class T >
    std::enable_if_t< is_complex< T >::value, T > Dune::MatrixMarketImpl::conj (const T &r)
     
    template<typename T , typename A , typename D >
    void Dune::MatrixMarketImpl::readSparseEntries (Dune::BCRSMatrix< T, A > &matrix, std::istream &file, std::size_t entries, const MMHeader &mmHeader, const D &)
     
    std::tuple< std::string, std::string > Dune::MatrixMarketImpl::splitFilename (const std::string &filename)
     
    void Dune::mm_read_header (std::size_t &rows, std::size_t &cols, MatrixMarketImpl::MMHeader &header, std::istream &istr, bool isVector)
     
    template<typename T , typename A >
    void Dune::mm_read_vector_entries (Dune::BlockVector< T, A > &vector, std::size_t size, std::istream &istr, size_t lane)
     
    template<typename T , typename A , int entries>
    void Dune::mm_read_vector_entries (Dune::BlockVector< Dune::FieldVector< T, entries >, A > &vector, std::size_t size, std::istream &istr, size_t lane)
     
    template<typename T , typename A >
    void Dune::readMatrixMarket (Dune::BlockVector< T, A > &vector, std::istream &istr)
     Reads a BlockVector from a matrix market file.
     
    template<typename T , typename A >
    void Dune::readMatrixMarket (Dune::BCRSMatrix< T, A > &matrix, std::istream &istr)
     Reads a sparse matrix from a matrix market file.
     
    template<typename B >
    void Dune::mm_print_entry (const B &entry, std::size_t rowidx, std::size_t colidx, std::ostream &ostr)
     
    template<typename V >
    void Dune::mm_print_vector_entry (const V &entry, std::ostream &ostr, const std::integral_constant< int, 1 > &, size_t lane)
     
    template<typename V >
    void Dune::mm_print_vector_entry (const V &vector, std::ostream &ostr, const std::integral_constant< int, 0 > &, size_t lane)
     
    template<typename T , typename A >
    std::size_t Dune::countEntries (const BlockVector< T, A > &vector)
     
    template<typename T , typename A , int i>
    std::size_t Dune::countEntries (const BlockVector< FieldVector< T, i >, A > &vector)
     
    template<typename V >
    void Dune::writeMatrixMarket (const V &vector, std::ostream &ostr, const std::integral_constant< int, 0 > &)
     
    template<typename M >
    void Dune::writeMatrixMarket (const M &matrix, std::ostream &ostr, const std::integral_constant< int, 1 > &)
     
    template<typename M >
    void Dune::writeMatrixMarket (const M &matrix, std::ostream &ostr)
     writes a ISTL matrix or vector to a stream in matrix market format.
     
    template<typename M >
    void Dune::storeMatrixMarket (const M &matrix, std::string filename, int prec=default_precision)
     Stores a parallel matrix/vector in matrix market format in a file.
     
    template<typename M , typename G , typename L >
    void Dune::storeMatrixMarket (const M &matrix, std::string filename, const OwnerOverlapCopyCommunication< G, L > &comm, bool storeIndices=true, int prec=default_precision)
     Stores a parallel matrix/vector in matrix market format in a file.
     
    template<typename M , typename G , typename L >
    void Dune::loadMatrixMarket (M &matrix, const std::string &filename, OwnerOverlapCopyCommunication< G, L > &comm, bool readIndices=true)
     Load a parallel matrix/vector stored in matrix market format.
     
    template<typename M >
    void Dune::loadMatrixMarket (M &matrix, const std::string &filename)
     Load a matrix/vector stored in matrix market format.
     
    \n-\n-\n-\n

    \n-Variables

    static const int Dune::default_precision = -1
     
    \n-

    Detailed Description

    \n-

    Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices.

    \n-
    Author
    Markus Blatt
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,316 +1,50 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bE_\bn_\bu_\bm_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs | _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs\n-matrixmarket.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bS_\bp_\ba_\br_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bc_\bl_\ba_\bs_\bs_\be_\bs \u00bb\n-_\bI_\bO_\b _\bf_\bo_\br_\b _\bm_\ba_\bt_\br_\bi_\bc_\be_\bs_\b _\ba_\bn_\bd_\b _\bv_\be_\bc_\bt_\bo_\br_\bs_\b.\n-Provides classes for reading and writing MatrixMarket Files with an extension\n-for parallel matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+supermatrix.hh File Reference\n+#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n #include \n #include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n+#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bT_\b _\b>\n-\u00a0 Helper metaprogram to get the matrix market string representation of\n- the numeric type. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bi_\bn_\bt_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bj_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\b _\bT_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,_\b _\bj_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bT_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>\n- _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bT_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<\n- _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bi_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bT_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>\n- _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<\n- _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,_\b _\bj_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,\n- _\bj_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bi_\b _\b>\n- _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bM_\b _\b>\n+\u00a0 Utility class for converting an _\bI_\bS_\bT_\bL _\bM_\ba_\bt_\br_\bi_\bx into a _\bS_\bu_\bp_\be_\br_\bL_\bU _\bM_\ba_\bt_\br_\bi_\bx.\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\b _\bT_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bM_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b<_\b _\bT_\b _\b>\n-\u00a0 a wrapper class of numeric values. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n+\u00a0 Converter for _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx to _\bS_\bu_\bp_\be_\br_\bL_\bU _\bM_\ba_\bt_\br_\bi_\bx. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by\n-\u00a0 Utility class for marking the pattern type of the MatrixMarket\n- matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b<_\b _\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b<_\b _\bD_\b,_\b _\bb_\br_\bo_\bw_\bs_\b,_\b _\bb_\bc_\bo_\bl_\bs_\b _\b>\n-\u00a0 Functor to the data values of the matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b<_\b _\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by_\b,_\b _\bb_\br_\bo_\bw_\bs_\b,_\b _\bb_\bc_\bo_\bl_\bs\n- _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bT_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bT_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\b _\bM_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bi_\b,\n- _\bj_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl\n-\u00a0\n-E\bEn\bnu\bum\bme\ber\bra\bat\bti\bio\bon\bns\bs\n-enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bL_\bi_\bn_\be_\bT_\by_\bp_\be { _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bH_\bE_\bA_\bD_\bE_\bR ,\n- _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bI_\bS_\bT_\bL_\bS_\bT_\bR_\bU_\bC_\bT , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bD_\bA_\bT_\bA }\n-\u00a0\n-enum \u00a0 { _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bM_\bA_\bX_\b__\bL_\bI_\bN_\bE_\b__\bL_\bE_\bN_\bG_\bT_\bH =1025 }\n-\u00a0\n-enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bT_\bY_\bP_\bE { _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:\n- _\bc_\bo_\bo_\br_\bd_\bi_\bn_\ba_\bt_\be_\b__\bt_\by_\bp_\be , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\ba_\br_\br_\ba_\by_\b__\bt_\by_\bp_\be , _\bD_\bu_\bn_\be_\b:_\b:\n- _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bt_\by_\bp_\be }\n-\u00a0\n-enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bC_\bT_\bY_\bP_\bE {\n- \u00a0\u00a0_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bi_\bn_\bt_\be_\bg_\be_\br_\b__\bt_\by_\bp_\be , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:\n- _\bd_\bo_\bu_\bb_\bl_\be_\b__\bt_\by_\bp_\be , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b__\bt_\by_\bp_\be , _\bD_\bu_\bn_\be_\b:_\b:\n- _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bp_\ba_\bt_\bt_\be_\br_\bn ,\n- \u00a0\u00a0_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bc_\bt_\by_\bp_\be\n- }\n-\u00a0\n-enum \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bS_\bT_\bR_\bU_\bC_\bT_\bU_\bR_\bE {\n- \u00a0\u00a0_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bg_\be_\bn_\be_\br_\ba_\bl , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc ,\n- _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc , _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:\n- _\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn ,\n- \u00a0\u00a0_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be\n- }\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n- bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bl_\bi_\bn_\be_\bF_\be_\be_\bd (std::\n- istream &file)\n-\u00a0\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bk_\bi_\bp_\bC_\bo_\bm_\bm_\be_\bn_\bt_\bs\n- (std::istream &file)\n-\u00a0\n- bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:\n- _\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bB_\ba_\bn_\bn_\be_\br (std::istream\n- &file, _\bM_\bM_\bH_\be_\ba_\bd_\be_\br &mmHeader)\n-\u00a0\n-template\n- std::tuple< std::size_t, std::size_t, _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bN_\bN_\bZ\n- std::size_t >\u00a0 (std::size_t rows, std::size_t cols,\n- std::size_t entries, const _\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n- &header)\n-\u00a0\n-template\n- std::istream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n- (std::istream &is, _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br< T >\n- &num)\n-\u00a0\n- std::istream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n- (std::istream &is, _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br<\n- _\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by > &num)\n-\u00a0\n-template\n- bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<\n- (const _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba< T > &i1, const\n- _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba< T > &i2)\n-\u00a0 LessThan operator.\n-\u00a0\n-template\n- std::istream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n- (std::istream &is, _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba< T >\n- &data)\n-\u00a0 Read _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba from a stream.\n-\u00a0\n-template\n- std::istream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n- (std::istream &is, _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba<\n- _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br< std::complex< T > > >\n- &data)\n-\u00a0 Read _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba from a stream.\n- Specialization for std::complex.\n-\u00a0\n-template\n- std::enable_if_t:: _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bn_\bj (const T\n- value, T >\u00a0 &r)\n-\u00a0\n-template\n- std::enable_if_t< _\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx< T >:: _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bn_\bj (const T\n- value, T >\u00a0 &r)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:\n- _\br_\be_\ba_\bd_\bS_\bp_\ba_\br_\bs_\be_\bE_\bn_\bt_\br_\bi_\be_\bs (_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< T,\n- A > &matrix, std::istream &file, std::\n- size_t entries, const _\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n- &mmHeader, const D &)\n-\u00a0\n-std::tuple< std::string, std::string >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n- (const std::string &filename)\n-\u00a0\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bh_\be_\ba_\bd_\be_\br (std::size_t\n- &rows, std::size_t &cols,\n- _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br &header,\n- std::istream &istr, bool isVector)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs (_\bD_\bu_\bn_\be_\b:_\b:\n- _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br< T, A > &vector, std::\n- size_t size, std::istream &istr, size_t\n- lane)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs (_\bD_\bu_\bn_\be_\b:_\b:\n- _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br< Dune::FieldVector< T,\n- entries >, A > &vector, std::size_t\n- size, std::istream &istr, size_t lane)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (_\bD_\bu_\bn_\be_\b:_\b:\n- _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br< T, A > &vector, std::\n- istream &istr)\n-\u00a0 Reads a _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br from a matrix\n- market file.\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (_\bD_\bu_\bn_\be_\b:_\b:\n- _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< T, A > &matrix, std::\n- istream &istr)\n-\u00a0 Reads a sparse matrix from a matrix\n- market file.\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\be_\bn_\bt_\br_\by (const B &entry,\n- std::size_t rowidx, std::size_t colidx,\n- std::ostream &ostr)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by (const V\n- &entry, std::ostream &ostr, const std::\n- integral_constant< int, 1 > &, size_t\n- lane)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by (const V\n- &vector, std::ostream &ostr, const\n- std::integral_constant< int, 0 > &,\n- size_t lane)\n-\u00a0\n-template\n- std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs (const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br<\n- T, A > &vector)\n-\u00a0\n-template\n- std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs (const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br<\n- FieldVector< T, i >, A > &vector)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (const V\n- &vector, std::ostream &ostr, const\n- std::integral_constant< int, 0 > &)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (const M\n- &matrix, std::ostream &ostr, const\n- std::integral_constant< int, 1 > &)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (const M\n- &matrix, std::ostream &ostr)\n-\u00a0 writes a _\bI_\bS_\bT_\bL matrix or vector to a\n- stream in matrix market format.\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bs_\bt_\bo_\br_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (const M\n- &matrix, std::string filename, int\n- prec=_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn)\n-\u00a0 Stores a parallel matrix/vector in\n- matrix market format in a file.\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bs_\bt_\bo_\br_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (const M\n- &matrix, std::string filename, const\n- _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< G, L >\n- &comm, bool storeIndices=true, int\n- prec=_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn)\n-\u00a0 Stores a parallel matrix/vector in\n- matrix market format in a file.\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (M &matrix,\n- const std::string &filename,\n- _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< G, L >\n- &comm, bool readIndices=true)\n-\u00a0 Load a parallel matrix/vector stored in\n- matrix market format.\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt (M &matrix,\n- const std::string &filename)\n-\u00a0 Load a matrix/vector stored in matrix\n- market format.\n-\u00a0\n-V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs\n-static const int\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn = -1\n-\u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Provides classes for reading and writing MatrixMarket Files with an extension\n-for parallel matrices.\n- Author\n- Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00176_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00176_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixmarket.hh Source File\n+dune-istl: supermatrix.hh Source File\n \n \n \n \n \n \n \n@@ -74,1499 +74,427 @@\n \n
    \n \n
    \n \n
    \n-
    matrixmarket.hh
    \n+
    supermatrix.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_MATRIXMARKET_HH
    \n-
    6#define DUNE_ISTL_MATRIXMARKET_HH
    \n+
    5#ifndef DUNE_ISTL_SUPERMATRIX_HH
    \n+
    6#define DUNE_ISTL_SUPERMATRIX_HH
    \n
    7
    \n-
    8#include <algorithm>
    \n-
    9#include <complex>
    \n-
    10#include <cstddef>
    \n-
    11#include <fstream>
    \n-
    12#include <ios>
    \n-
    13#include <iostream>
    \n-
    14#include <istream>
    \n+
    8#if HAVE_SUPERLU
    \n+
    9
    \n+
    10#include "bcrsmatrix.hh"
    \n+
    11#include "bvector.hh"
    \n+
    12#include <dune/common/fmatrix.hh>
    \n+
    13#include <dune/common/fvector.hh>
    \n+
    14#include <dune/common/typetraits.hh>
    \n
    15#include <limits>
    \n-
    16#include <ostream>
    \n-
    17#include <set>
    \n-
    18#include <sstream>
    \n-
    19#include <string>
    \n-
    20#include <tuple>
    \n-
    21#include <type_traits>
    \n-
    22#include <vector>
    \n+
    16
    \n+\n+
    18
    \n+
    19#include "superlufunctions.hh"
    \n+
    20
    \n+
    21namespace Dune
    \n+
    22{
    \n
    23
    \n-
    24#include <dune/common/exceptions.hh>
    \n-
    25#include <dune/common/fmatrix.hh>
    \n-
    26#include <dune/common/fvector.hh>
    \n-
    27#include <dune/common/hybridutilities.hh>
    \n-
    28#include <dune/common/stdstreams.hh>
    \n-
    29#include <dune/common/simd/simd.hh>
    \n-
    30
    \n-\n-
    32#include <dune/istl/bvector.hh>
    \n-
    33#include <dune/istl/matrixutils.hh> // countNonZeros()
    \n-\n-
    35
    \n-
    36namespace Dune
    \n-
    37{
    \n-
    38
    \n-
    \n-
    64 namespace MatrixMarketImpl
    \n-
    65 {
    \n-
    75 template<class T>
    \n-
    \n-\n-
    77 enum {
    \n-
    81 is_numeric=false
    \n-
    82 };
    \n-
    83 };
    \n-
    \n-
    84
    \n-
    85 template<>
    \n-
    \n-
    86 struct mm_numeric_type<int>
    \n-
    87 {
    \n-
    88 enum {
    \n-
    92 is_numeric=true
    \n-
    93 };
    \n-
    94
    \n-
    \n-
    95 static std::string str()
    \n-
    96 {
    \n-
    97 return "integer";
    \n-
    98 }
    \n-
    \n-
    99 };
    \n-
    \n+
    24 template<class T>
    \n+
    \n+\n+
    26 {};
    \n+
    \n+
    27
    \n+
    28 template<class T>
    \n+
    \n+\n+
    30 {};
    \n+
    \n+
    31
    \n+
    32#if __has_include("slu_sdefs.h")
    \n+
    33 template<>
    \n+\n+
    35 {
    \n+
    36 static void create(SuperMatrix *mat, int n, int m, int offset,
    \n+
    37 float *values, int *rowindex, int* colindex,
    \n+
    38 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n+
    39 {
    \n+
    40 sCreate_CompCol_Matrix(mat, n, m, offset, values, rowindex, colindex,
    \n+
    41 stype, dtype, mtype);
    \n+
    42 }
    \n+
    43 };
    \n+
    44
    \n+
    45 template<>
    \n+
    46 struct SuperMatrixPrinter<float>
    \n+
    47 {
    \n+
    48 static void print(char* name, SuperMatrix* mat)
    \n+
    49 {
    \n+
    50 sPrint_CompCol_Matrix(name, mat);
    \n+
    51 }
    \n+
    52 };
    \n+
    53#endif
    \n+
    54
    \n+
    55#if __has_include("slu_ddefs.h")
    \n+
    56 template<>
    \n+
    57 struct SuperMatrixCreateSparseChooser<double>
    \n+
    58 {
    \n+
    59 static void create(SuperMatrix *mat, int n, int m, int offset,
    \n+
    60 double *values, int *rowindex, int* colindex,
    \n+
    61 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n+
    62 {
    \n+
    63 dCreate_CompCol_Matrix(mat, n, m, offset, values, rowindex, colindex,
    \n+
    64 stype, dtype, mtype);
    \n+
    65 }
    \n+
    66 };
    \n+
    67
    \n+
    68 template<>
    \n+
    69 struct SuperMatrixPrinter<double>
    \n+
    70 {
    \n+
    71 static void print(char* name, SuperMatrix* mat)
    \n+
    72 {
    \n+
    73 dPrint_CompCol_Matrix(name, mat);
    \n+
    74 }
    \n+
    75 };
    \n+
    76#endif
    \n+
    77
    \n+
    78#if __has_include("slu_cdefs.h")
    \n+
    79 template<>
    \n+
    80 struct SuperMatrixCreateSparseChooser<std::complex<float> >
    \n+
    81 {
    \n+
    82 static void create(SuperMatrix *mat, int n, int m, int offset,
    \n+
    83 std::complex<float> *values, int *rowindex, int* colindex,
    \n+
    84 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n+
    85 {
    \n+
    86 cCreate_CompCol_Matrix(mat, n, m, offset, reinterpret_cast< ::complex*>(values),
    \n+
    87 rowindex, colindex, stype, dtype, mtype);
    \n+
    88 }
    \n+
    89 };
    \n+
    90
    \n+
    91 template<>
    \n+
    92 struct SuperMatrixPrinter<std::complex<float> >
    \n+
    93 {
    \n+
    94 static void print(char* name, SuperMatrix* mat)
    \n+
    95 {
    \n+
    96 cPrint_CompCol_Matrix(name, mat);
    \n+
    97 }
    \n+
    98 };
    \n+
    99#endif
    \n
    100
    \n-
    101 template<>
    \n-
    \n-
    102 struct mm_numeric_type<double>
    \n-
    103 {
    \n-
    104 enum {
    \n-
    108 is_numeric=true
    \n-
    109 };
    \n-
    110
    \n-
    \n-
    111 static std::string str()
    \n-
    112 {
    \n-
    113 return "real";
    \n-
    114 }
    \n-
    \n-
    115 };
    \n-
    \n-
    116
    \n-
    117 template<>
    \n-
    \n-
    118 struct mm_numeric_type<float>
    \n-
    119 {
    \n-
    120 enum {
    \n-
    124 is_numeric=true
    \n-
    125 };
    \n-
    126
    \n-
    \n-
    127 static std::string str()
    \n-
    128 {
    \n-
    129 return "real";
    \n-
    130 }
    \n-
    \n-
    131 };
    \n-
    \n-
    132
    \n-
    133 template<>
    \n-
    \n-
    134 struct mm_numeric_type<std::complex<double> >
    \n-
    135 {
    \n-
    136 enum {
    \n-
    140 is_numeric=true
    \n-
    141 };
    \n-
    142
    \n-
    \n-
    143 static std::string str()
    \n-
    144 {
    \n-
    145 return "complex";
    \n-
    146 }
    \n-
    \n-
    147 };
    \n-
    \n-
    148
    \n-
    149 template<>
    \n-
    \n-
    150 struct mm_numeric_type<std::complex<float> >
    \n-
    151 {
    \n-
    152 enum {
    \n-
    156 is_numeric=true
    \n-
    157 };
    \n-
    158
    \n-
    \n-
    159 static std::string str()
    \n-
    160 {
    \n-
    161 return "complex";
    \n-
    162 }
    \n-
    \n-
    163 };
    \n-
    \n-
    164
    \n-
    173 template<class M>
    \n-\n-
    175
    \n-
    176 template<typename T, typename A>
    \n-
    \n-\n-
    178 {
    \n-
    \n-
    179 static void print(std::ostream& os)
    \n-
    180 {
    \n-
    181 os<<"%%MatrixMarket matrix coordinate ";
    \n-
    182 os<<mm_numeric_type<Simd::Scalar<typename Imp::BlockTraits<T>::field_type>>::str()<<" general"<<std::endl;
    \n-
    183 }
    \n-
    \n-
    184 };
    \n-
    \n-
    185
    \n-
    186 template<typename B, typename A>
    \n-
    \n-\n-
    188 {
    \n-
    \n-
    189 static void print(std::ostream& os)
    \n-
    190 {
    \n-
    191 os<<"%%MatrixMarket matrix array ";
    \n-
    192 os<<mm_numeric_type<Simd::Scalar<typename Imp::BlockTraits<B>::field_type>>::str()<<" general"<<std::endl;
    \n-
    193 }
    \n-
    \n-
    194 };
    \n-
    \n-
    195
    \n-
    196 template<typename T, int j>
    \n-
    \n-
    197 struct mm_header_printer<FieldVector<T,j> >
    \n-
    198 {
    \n-
    \n-
    199 static void print(std::ostream& os)
    \n-
    200 {
    \n-
    201 os<<"%%MatrixMarket matrix array ";
    \n-
    202 os<<mm_numeric_type<T>::str()<<" general"<<std::endl;
    \n-
    203 }
    \n-
    \n-
    204 };
    \n-
    \n+
    101#if __has_include("slu_zdefs.h")
    \n+
    102 template<>
    \n+
    103 struct SuperMatrixCreateSparseChooser<std::complex<double> >
    \n+
    104 {
    \n+
    105 static void create(SuperMatrix *mat, int n, int m, int offset,
    \n+
    106 std::complex<double> *values, int *rowindex, int* colindex,
    \n+
    107 Stype_t stype, Dtype_t dtype, Mtype_t mtype)
    \n+
    108 {
    \n+
    109 zCreate_CompCol_Matrix(mat, n, m, offset, reinterpret_cast<doublecomplex*>(values),
    \n+
    110 rowindex, colindex, stype, dtype, mtype);
    \n+
    111 }
    \n+
    112 };
    \n+
    113
    \n+
    114 template<>
    \n+
    115 struct SuperMatrixPrinter<std::complex<double> >
    \n+
    116 {
    \n+
    117 static void print(char* name, SuperMatrix* mat)
    \n+
    118 {
    \n+
    119 zPrint_CompCol_Matrix(name, mat);
    \n+
    120 }
    \n+
    121 };
    \n+
    122#endif
    \n+
    123
    \n+
    124 template<class T>
    \n+
    \n+\n+
    126 {
    \n+
    127 static const Dtype_t type;
    \n+
    128 };
    \n+
    \n+
    129
    \n+
    130 template<class T>
    \n+
    \n+\n+
    132 {};
    \n+
    \n+
    133
    \n+
    134 template<class T>
    \n+
    135 const Dtype_t BaseGetSuperLUType<T>::type =
    \n+
    136 std::is_same<T,float>::value ? SLU_S :
    \n+
    137 ( std::is_same<T,std::complex<double> >::value ? SLU_Z :
    \n+
    138 ( std::is_same<T,std::complex<float> >::value ? SLU_C : SLU_D ));
    \n+
    139
    \n+
    140 template<>
    \n+
    \n+
    141 struct GetSuperLUType<double>
    \n+
    142 : public BaseGetSuperLUType<double>
    \n+
    143 {
    \n+
    144 typedef double float_type;
    \n+
    145 };
    \n+
    \n+
    146
    \n+
    147 template<>
    \n+
    \n+
    148 struct GetSuperLUType<float>
    \n+
    149 : public BaseGetSuperLUType<float>
    \n+
    150 {
    \n+
    151 typedef float float_type;
    \n+
    152 };
    \n+
    \n+
    153
    \n+
    154 template<>
    \n+
    \n+
    155 struct GetSuperLUType<std::complex<double> >
    \n+
    156 : public BaseGetSuperLUType<std::complex<double> >
    \n+
    157 {
    \n+
    158 typedef double float_type;
    \n+
    159 };
    \n+
    \n+
    160
    \n+
    161 template<>
    \n+
    \n+
    162 struct GetSuperLUType<std::complex<float> >
    \n+
    163 : public BaseGetSuperLUType<std::complex<float> >
    \n+
    164 {
    \n+
    165 typedef float float_type;
    \n+
    166
    \n+
    167 };
    \n+
    \n+
    168
    \n+
    173 template<class M>
    \n+
    \n+\n+
    175 {};
    \n+
    \n+
    176
    \n+
    177 template<class M>
    \n+
    \n+\n+
    179 {};
    \n+
    \n+
    180
    \n+
    181 template<class T>
    \n+
    182 class SuperLU;
    \n+
    183
    \n+
    184 template<class M, class X, class TM, class TD, class T1>
    \n+\n+
    186
    \n+
    187 template<class T, bool flag>
    \n+\n+
    189
    \n+
    193 template<class B, class TA>
    \n+
    \n+\n+
    195 : public ISTL::Impl::BCCSMatrix<typename BCRSMatrix<B,TA>::field_type, int>
    \n+
    196 {
    \n+
    197 template<class M, class X, class TM, class TD, class T1>
    \n+\n+
    199 friend struct SuperMatrixInitializer<BCRSMatrix<B,TA> >;
    \n+
    200 public:
    \n+\n+
    203
    \n+\n
    205
    \n-
    206 template<typename T, int i, int j>
    \n-
    \n-\n-
    208 {
    \n-
    \n-
    209 static void print(std::ostream& os)
    \n-
    210 {
    \n-
    211 os<<"%%MatrixMarket matrix array ";
    \n-
    212 os<<mm_numeric_type<T>::str()<<" general"<<std::endl;
    \n-
    213 }
    \n-
    \n-
    214 };
    \n-
    \n-
    215
    \n-
    224 template<class M>
    \n-\n-
    226
    \n-
    227 template<typename T, typename A>
    \n-
    \n-\n-
    229 {
    \n-\n-
    231 static_assert(IsNumber<T>::value, "Only scalar entries are expected here!");
    \n-
    232
    \n-
    \n-
    233 static void print(std::ostream& os, const M&)
    \n-
    234 {
    \n-
    235 os<<"% ISTL_STRUCT blocked ";
    \n-
    236 os<<"1 1"<<std::endl;
    \n-
    237 }
    \n-
    \n-
    238 };
    \n-
    \n-
    239
    \n-
    240 template<typename T, typename A, int i>
    \n-
    \n-
    241 struct mm_block_structure_header<BlockVector<FieldVector<T,i>,A> >
    \n-
    242 {
    \n-\n-
    244
    \n-
    \n-
    245 static void print(std::ostream& os, const M&)
    \n-
    246 {
    \n-
    247 os<<"% ISTL_STRUCT blocked ";
    \n-
    248 os<<i<<" "<<1<<std::endl;
    \n-
    249 }
    \n-
    \n-
    250 };
    \n-
    \n-
    251
    \n-
    252 template<typename T, typename A>
    \n-
    \n-\n-
    254 {
    \n-\n-
    256 static_assert(IsNumber<T>::value, "Only scalar entries are expected here!");
    \n-
    257
    \n-
    \n-
    258 static void print(std::ostream& os, const M&)
    \n-
    259 {
    \n-
    260 os<<"% ISTL_STRUCT blocked ";
    \n-
    261 os<<"1 1"<<std::endl;
    \n-
    262 }
    \n-
    \n-
    263 };
    \n-
    \n-
    264
    \n-
    265 template<typename T, typename A, int i, int j>
    \n-
    \n-\n-
    267 {
    \n-\n-
    269
    \n-
    \n-
    270 static void print(std::ostream& os, const M&)
    \n-
    271 {
    \n-
    272 os<<"% ISTL_STRUCT blocked ";
    \n-
    273 os<<i<<" "<<j<<std::endl;
    \n-
    274 }
    \n-
    \n-
    275 };
    \n-
    \n-
    276
    \n-
    277
    \n-
    278 template<typename T, int i, int j>
    \n-
    \n-\n-
    280 {
    \n-\n-
    282
    \n-
    \n-
    283 static void print(std::ostream& os, const M& m)
    \n-
    284 {}
    \n-
    \n-
    285 };
    \n-
    \n-
    286
    \n-
    287 template<typename T, int i>
    \n-
    \n-
    288 struct mm_block_structure_header<FieldVector<T,i> >
    \n-
    289 {
    \n-
    290 typedef FieldVector<T,i> M;
    \n+
    206 typedef typename Matrix::size_type size_type;
    \n+
    207
    \n+
    \n+
    212 explicit SuperLUMatrix(const Matrix& mat) : ISTL::Impl::BCCSMatrix<BCRSMatrix<B,TA>, int>(mat)
    \n+
    213 {}
    \n+
    \n+
    214
    \n+
    \n+
    215 SuperLUMatrix() : ISTL::Impl::BCCSMatrix<typename BCRSMatrix<B,TA>::field_type, int>()
    \n+
    216 {}
    \n+
    \n+
    217
    \n+
    \n+\n+
    220 {
    \n+
    221 if (this->N_+this->M_*this->Nnz_ != 0)
    \n+
    222 free();
    \n+
    223 }
    \n+
    \n+
    224
    \n+
    \n+
    226 operator SuperMatrix&()
    \n+
    227 {
    \n+
    228 return A;
    \n+
    229 }
    \n+
    \n+
    230
    \n+
    \n+
    232 operator const SuperMatrix&() const
    \n+
    233 {
    \n+
    234 return A;
    \n+
    235 }
    \n+
    \n+
    236
    \n+
    \n+\n+
    238 {
    \n+
    239 if (this->N_ + this->M_ + this->Nnz_!=0)
    \n+
    240 free();
    \n+
    241
    \n+
    242 using Matrix = BCRSMatrix<B,TA>;
    \n+\n+\n+
    245 ISTL::Impl::BCCSMatrixInitializer<Matrix, int> initializer(*this);
    \n+
    246
    \n+
    247 copyToBCCSMatrix(initializer, mat);
    \n+
    248
    \n+\n+
    250 ::create(&A, this->N_, this->M_, this->colstart[this->N_],
    \n+
    251 this->values,this->rowindex, this->colstart, SLU_NC,
    \n+
    252 static_cast<Dtype_t>(GetSuperLUType<typename Matrix::field_type>::type), SLU_GE);
    \n+
    253 return *this;
    \n+
    254 }
    \n+
    \n+
    255
    \n+
    \n+\n+
    257 {
    \n+
    258 if (this->N_ + this->M_ + this->Nnz_!=0)
    \n+
    259 free();
    \n+
    260
    \n+
    261 using Matrix = BCRSMatrix<B,TA>;
    \n+\n+\n+
    264 ISTL::Impl::BCCSMatrixInitializer<Matrix, int> initializer(*this);
    \n+
    265
    \n+
    266 copyToBCCSMatrix(initializer, mat);
    \n+
    267
    \n+\n+
    269 ::create(&A, this->N_, this->M_, this->colstart[this->N_],
    \n+
    270 this->values,this->rowindex, this->colstart, SLU_NC,
    \n+
    271 static_cast<Dtype_t>(GetSuperLUType<B>::type), SLU_GE);
    \n+
    272 return *this;
    \n+
    273 }
    \n+
    \n+
    274
    \n+
    \n+
    281 virtual void setMatrix(const Matrix& mat, const std::set<std::size_t>& mrs)
    \n+
    282 {
    \n+
    283 if(this->N_+this->M_+this->Nnz_!=0)
    \n+
    284 free();
    \n+
    285 this->N_=mrs.size()*MatrixDimension<typename Matrix::block_type>::rowdim(*(mat[0].begin()));
    \n+
    286 this->M_=mrs.size()*MatrixDimension<typename Matrix::block_type>::coldim(*(mat[0].begin()));
    \n+
    287 SuperMatrixInitializer<Matrix> initializer(*this);
    \n+
    288
    \n+
    289 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<Matrix,std::set<std::size_t> >(mat,mrs));
    \n+
    290 }
    \n+
    \n
    291
    \n-
    \n-
    292 static void print(std::ostream& os, const M& m)
    \n-
    293 {}
    \n-
    \n-
    294 };
    \n-
    \n-
    295
    \n-\n-
    297 enum { MM_MAX_LINE_LENGTH=1025 };
    \n+
    \n+
    293 virtual void setMatrix(const Matrix& mat)
    \n+
    294 {
    \n+\n+\n+
    297 SuperMatrixInitializer<Matrix> initializer(*this);
    \n
    298
    \n-\n-
    300
    \n-\n-
    302
    \n-\n-
    304
    \n-
    \n-
    305 struct MMHeader
    \n-
    306 {
    \n-\n-\n-\n-\n-
    313 };
    \n-
    \n-
    314
    \n-
    \n-
    315 inline bool lineFeed(std::istream& file)
    \n-
    316 {
    \n-
    317 char c;
    \n-
    318 if(!file.eof())
    \n-
    319 c=file.peek();
    \n-
    320 else
    \n-
    321 return false;
    \n-
    322 // ignore whitespace
    \n-
    323 while(c==' ')
    \n-
    324 {
    \n-
    325 file.get();
    \n-
    326 if(file.eof())
    \n-
    327 return false;
    \n-
    328 c=file.peek();
    \n-
    329 }
    \n-
    330
    \n-
    331 if(c=='\\n') {
    \n-
    332 /* eat the line feed */
    \n-
    333 file.get();
    \n-
    334 return true;
    \n-
    335 }
    \n-
    336 return false;
    \n-
    337 }
    \n-
    \n-
    338
    \n-
    \n-
    339 inline void skipComments(std::istream& file)
    \n-
    340 {
    \n-
    341 lineFeed(file);
    \n-
    342 char c=file.peek();
    \n-
    343 // ignore comment lines
    \n-
    344 while(c=='%')
    \n-
    345 {
    \n-
    346 /* discard the rest of the line */
    \n-
    347 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    348 c=file.peek();
    \n-
    349 }
    \n-
    350 }
    \n-
    \n-
    351
    \n-
    352
    \n-
    \n-
    353 inline bool readMatrixMarketBanner(std::istream& file, MMHeader& mmHeader)
    \n-
    354 {
    \n-
    355 std::string buffer;
    \n-
    356 char c;
    \n-
    357 file >> buffer;
    \n-
    358 c=buffer[0];
    \n-
    359 mmHeader=MMHeader();
    \n-
    360 if(c!='%')
    \n-
    361 return false;
    \n-
    362 dverb<<buffer<<std::endl;
    \n-
    363 /* read the banner */
    \n-
    364 if(buffer!="%%MatrixMarket") {
    \n-
    365 /* discard the rest of the line */
    \n-
    366 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    367 return false;
    \n-
    368 }
    \n-
    369
    \n-
    370 if(lineFeed(file))
    \n-
    371 /* premature end of line */
    \n-
    372 return false;
    \n-
    373
    \n-
    374 /* read the matrix_type */
    \n-
    375 file >> buffer;
    \n-
    376
    \n-
    377 if(buffer != "matrix")
    \n-
    378 {
    \n-
    379 /* discard the rest of the line */
    \n-
    380 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    381 return false;
    \n-
    382 }
    \n-
    383
    \n-
    384 if(lineFeed(file))
    \n-
    385 /* premature end of line */
    \n-
    386 return false;
    \n-
    387
    \n-
    388 /* The type of the matrix */
    \n-
    389 file >> buffer;
    \n-
    390
    \n-
    391 if(buffer.empty())
    \n-
    392 return false;
    \n-
    393
    \n-
    394 std::transform(buffer.begin(), buffer.end(), buffer.begin(),
    \n-
    395 ::tolower);
    \n-
    396
    \n-
    397 switch(buffer[0])
    \n-
    398 {
    \n-
    399 case 'a' :
    \n-
    400 /* sanity check */
    \n-
    401 if(buffer != "array")
    \n-
    402 {
    \n-
    403 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    404 return false;
    \n-
    405 }
    \n-
    406 mmHeader.type=array_type;
    \n-
    407 break;
    \n-
    408 case 'c' :
    \n-
    409 /* sanity check */
    \n-
    410 if(buffer != "coordinate")
    \n-
    411 {
    \n-
    412 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    413 return false;
    \n-
    414 }
    \n-
    415 mmHeader.type=coordinate_type;
    \n-
    416 break;
    \n-
    417 default :
    \n-
    418 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    419 return false;
    \n-
    420 }
    \n-
    421
    \n-
    422 if(lineFeed(file))
    \n-
    423 /* premature end of line */
    \n-
    424 return false;
    \n-
    425
    \n-
    426 /* The numeric type used. */
    \n-
    427 file >> buffer;
    \n-
    428
    \n-
    429 if(buffer.empty())
    \n-
    430 return false;
    \n-
    431
    \n-
    432 std::transform(buffer.begin(), buffer.end(), buffer.begin(),
    \n-
    433 ::tolower);
    \n-
    434 switch(buffer[0])
    \n-
    435 {
    \n-
    436 case 'i' :
    \n-
    437 /* sanity check */
    \n-
    438 if(buffer != "integer")
    \n-
    439 {
    \n-
    440 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    441 return false;
    \n-
    442 }
    \n-
    443 mmHeader.ctype=integer_type;
    \n-
    444 break;
    \n-
    445 case 'r' :
    \n-
    446 /* sanity check */
    \n-
    447 if(buffer != "real")
    \n-
    448 {
    \n-
    449 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    450 return false;
    \n-
    451 }
    \n-
    452 mmHeader.ctype=double_type;
    \n-
    453 break;
    \n-
    454 case 'c' :
    \n-
    455 /* sanity check */
    \n-
    456 if(buffer != "complex")
    \n-
    457 {
    \n-
    458 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    459 return false;
    \n-
    460 }
    \n-
    461 mmHeader.ctype=complex_type;
    \n-
    462 break;
    \n-
    463 case 'p' :
    \n-
    464 /* sanity check */
    \n-
    465 if(buffer != "pattern")
    \n-
    466 {
    \n-
    467 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    468 return false;
    \n-
    469 }
    \n-
    470 mmHeader.ctype=pattern;
    \n-
    471 break;
    \n-
    472 default :
    \n-
    473 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    474 return false;
    \n-
    475 }
    \n-
    476
    \n-
    477 if(lineFeed(file))
    \n-
    478 return false;
    \n-
    479
    \n-
    480 file >> buffer;
    \n-
    481
    \n-
    482 std::transform(buffer.begin(), buffer.end(), buffer.begin(),
    \n-
    483 ::tolower);
    \n-
    484 switch(buffer[0])
    \n-
    485 {
    \n-
    486 case 'g' :
    \n-
    487 /* sanity check */
    \n-
    488 if(buffer != "general")
    \n-
    489 {
    \n-
    490 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    491 return false;
    \n-
    492 }
    \n-
    493 mmHeader.structure=general;
    \n-
    494 break;
    \n-
    495 case 'h' :
    \n-
    496 /* sanity check */
    \n-
    497 if(buffer != "hermitian")
    \n-
    498 {
    \n-
    499 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    500 return false;
    \n-
    501 }
    \n-
    502 mmHeader.structure=hermitian;
    \n-
    503 break;
    \n-
    504 case 's' :
    \n-
    505 if(buffer.size()==1) {
    \n-
    506 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    507 return false;
    \n-
    508 }
    \n-
    509
    \n-
    510 switch(buffer[1])
    \n-
    511 {
    \n-
    512 case 'y' :
    \n-
    513 /* sanity check */
    \n-
    514 if(buffer != "symmetric")
    \n-
    515 {
    \n-
    516 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    517 return false;
    \n-
    518 }
    \n-
    519 mmHeader.structure=symmetric;
    \n-
    520 break;
    \n-
    521 case 'k' :
    \n-
    522 /* sanity check */
    \n-
    523 if(buffer != "skew-symmetric")
    \n-
    524 {
    \n-
    525 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    526 return false;
    \n-
    527 }
    \n-
    528 mmHeader.structure=skew_symmetric;
    \n-
    529 break;
    \n-
    530 default :
    \n-
    531 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    532 return false;
    \n-
    533 }
    \n-
    534 break;
    \n-
    535 default :
    \n-
    536 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    537 return false;
    \n-
    538 }
    \n-
    539 file.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    540 c=file.peek();
    \n-
    541 return true;
    \n-
    542
    \n-
    543 }
    \n-
    \n-
    544
    \n-
    545 template<std::size_t brows, std::size_t bcols>
    \n-
    546 std::tuple<std::size_t, std::size_t, std::size_t>
    \n-
    \n-
    547 calculateNNZ(std::size_t rows, std::size_t cols, std::size_t entries, const MMHeader& header)
    \n-
    548 {
    \n-
    549 std::size_t blockrows=rows/brows;
    \n-
    550 std::size_t blockcols=cols/bcols;
    \n-
    551 std::size_t blocksize=brows*bcols;
    \n-
    552 std::size_t blockentries=0;
    \n-
    553
    \n-
    554 switch(header.structure)
    \n-
    555 {
    \n-
    556 case general :
    \n-
    557 blockentries = entries/blocksize; break;
    \n-
    558 case skew_symmetric :
    \n-
    559 blockentries = 2*entries/blocksize; break;
    \n-
    560 case symmetric :
    \n-
    561 blockentries = (2*entries-rows)/blocksize; break;
    \n-
    562 case hermitian :
    \n-
    563 blockentries = (2*entries-rows)/blocksize; break;
    \n-
    564 default :
    \n-
    565 throw Dune::NotImplemented();
    \n-
    566 }
    \n-
    567 return std::make_tuple(blockrows, blockcols, blockentries);
    \n-
    568 }
    \n-
    \n-
    569
    \n-
    570 /*
    \n-
    571 * @brief Storage class for the column index and the numeric value.
    \n-
    572 *
    \n-
    573 * \\tparam T Either a NumericWrapper of the numeric type or PatternDummy
    \n-
    574 * for MatrixMarket pattern case.
    \n-
    575 */
    \n-
    576 template<typename T>
    \n-
    \n-
    577 struct IndexData : public T
    \n-
    578 {
    \n-
    579 std::size_t index = {};
    \n-
    580 };
    \n-
    \n-
    581
    \n-
    582
    \n-
    593 template<typename T>
    \n-
    \n-\n-
    595 {
    \n-
    596 T number = {};
    \n-
    \n-
    597 operator T&()
    \n-
    598 {
    \n-
    599 return number;
    \n-
    600 }
    \n-
    \n-
    601 };
    \n-
    \n-
    602
    \n-
    \n-\n-
    607 {};
    \n-
    \n-
    608
    \n-
    609 template<>
    \n-
    \n-\n-
    611 {};
    \n-
    \n-
    612
    \n-
    613 template<typename T>
    \n-
    \n-
    614 std::istream& operator>>(std::istream& is, NumericWrapper<T>& num)
    \n-
    615 {
    \n-
    616 return is>>num.number;
    \n-
    617 }
    \n-
    \n-
    618
    \n-
    \n-
    619 inline std::istream& operator>>(std::istream& is, [[maybe_unused]] NumericWrapper<PatternDummy>& num)
    \n-
    620 {
    \n-
    621 return is;
    \n-
    622 }
    \n-
    \n-
    623
    \n-
    629 template<typename T>
    \n-
    \n-
    630 bool operator<(const IndexData<T>& i1, const IndexData<T>& i2)
    \n-
    631 {
    \n-
    632 return i1.index<i2.index;
    \n-
    633 }
    \n-
    \n-
    634
    \n-
    640 template<typename T>
    \n-
    \n-
    641 std::istream& operator>>(std::istream& is, IndexData<T>& data)
    \n-
    642 {
    \n-
    643 is>>data.index;
    \n-
    644 /* MatrixMarket indices are one based. Decrement for C++ */
    \n-
    645 --data.index;
    \n-
    646 return is>>data.number;
    \n-
    647 }
    \n-
    \n-
    648
    \n-
    654 template<typename T>
    \n-
    \n-
    655 std::istream& operator>>(std::istream& is, IndexData<NumericWrapper<std::complex<T>>>& data)
    \n-
    656 {
    \n-
    657 is>>data.index;
    \n-
    658 /* MatrixMarket indices are one based. Decrement for C++ */
    \n-
    659 --data.index;
    \n-
    660 // real and imaginary part needs to be read separately as
    \n-
    661 // complex numbers are not provided in pair form. (x,y)
    \n-
    662 NumericWrapper<T> real, imag;
    \n-
    663 is>>real;
    \n-
    664 is>>imag;
    \n-
    665 data.number = {real.number, imag.number};
    \n-
    666 return is;
    \n-
    667 }
    \n-
    \n-
    668
    \n-
    675 template<typename D, int brows, int bcols>
    \n-
    \n-\n-
    677 {
    \n-
    683 template<typename T>
    \n-
    \n-
    684 void operator()(const std::vector<std::set<IndexData<D> > >& rows,
    \n-
    685 BCRSMatrix<T>& matrix)
    \n-
    686 {
    \n-
    687 static_assert(IsNumber<T>::value && brows==1 && bcols==1, "Only scalar entries are expected here!");
    \n-
    688 for (auto iter=matrix.begin(); iter!= matrix.end(); ++iter)
    \n-
    689 {
    \n-
    690 auto brow=iter.index();
    \n-
    691 for (auto siter=rows[brow].begin(); siter != rows[brow].end(); ++siter)
    \n-
    692 (*iter)[siter->index] = siter->number;
    \n-
    693 }
    \n-
    694 }
    \n-
    \n-
    695
    \n-
    701 template<typename T>
    \n-
    \n-
    702 void operator()(const std::vector<std::set<IndexData<D> > >& rows,
    \n-\n-
    704 {
    \n-
    705 for (auto iter=matrix.begin(); iter!= matrix.end(); ++iter)
    \n-
    706 {
    \n-
    707 for (auto brow=iter.index()*brows,
    \n-
    708 browend=iter.index()*brows+brows;
    \n-
    709 brow<browend; ++brow)
    \n-
    710 {
    \n-
    711 for (auto siter=rows[brow].begin(), send=rows[brow].end();
    \n-
    712 siter != send; ++siter)
    \n-
    713 (*iter)[siter->index/bcols][brow%brows][siter->index%bcols]=siter->number;
    \n-
    714 }
    \n-
    715 }
    \n-
    716 }
    \n-
    \n-
    717 };
    \n-
    \n-
    718
    \n-
    719 template<int brows, int bcols>
    \n-
    \n-\n-
    721 {
    \n-
    722 template<typename M>
    \n-
    \n-
    723 void operator()(const std::vector<std::set<IndexData<PatternDummy> > >& rows,
    \n-
    724 M& matrix)
    \n-
    725 {}
    \n-
    \n-
    726 };
    \n-
    \n-
    727
    \n-
    728 template<class T> struct is_complex : std::false_type {};
    \n-
    729 template<class T> struct is_complex<std::complex<T>> : std::true_type {};
    \n-
    730
    \n-
    731 // wrapper for std::conj. Returns T if T is not complex.
    \n-
    732 template<class T>
    \n-
    \n-
    733 std::enable_if_t<!is_complex<T>::value, T> conj(const T& r){
    \n-
    734 return r;
    \n-
    735 }
    \n-
    \n-
    736
    \n-
    737 template<class T>
    \n-
    \n-
    738 std::enable_if_t<is_complex<T>::value, T> conj(const T& r){
    \n-
    739 return std::conj(r);
    \n-
    740 }
    \n-
    \n-
    741
    \n-
    742 template<typename M>
    \n-
    \n-\n-
    744 {};
    \n-
    \n-
    745
    \n-
    746 template<typename B, typename A>
    \n-
    \n-\n-
    748 {
    \n-
    749 enum {
    \n-
    750 rows = 1,
    \n-
    751 cols = 1
    \n-
    752 };
    \n-
    753 };
    \n-
    \n-
    754
    \n-
    755 template<typename B, int i, int j, typename A>
    \n-
    \n-\n-
    757 {
    \n-
    758 enum {
    \n-
    759 rows = i,
    \n-
    760 cols = j
    \n-
    761 };
    \n-
    762 };
    \n-
    \n-
    763
    \n-
    764 template<typename T, typename A, typename D>
    \n-
    \n-\n-
    766 std::istream& file, std::size_t entries,
    \n-
    767 const MMHeader& mmHeader, const D&)
    \n-
    768 {
    \n-\n-
    770
    \n-
    771 // Number of rows and columns of T, if it is a matrix (1x1 otherwise)
    \n-
    772 constexpr int brows = mm_multipliers<Matrix>::rows;
    \n-
    773 constexpr int bcols = mm_multipliers<Matrix>::cols;
    \n-
    774
    \n-
    775 // First path
    \n-
    776 // store entries together with column index in a separate
    \n-
    777 // data structure
    \n-
    778 std::vector<std::set<IndexData<D> > > rows(matrix.N()*brows);
    \n-
    779
    \n-
    780 auto readloop = [&] (auto symmetryFixup) {
    \n-
    781 for(std::size_t i = 0; i < entries; ++i) {
    \n-
    782 std::size_t row;
    \n-
    783 IndexData<D> data;
    \n-
    784 skipComments(file);
    \n-
    785 file>>row;
    \n-
    786 --row; // Index was 1 based.
    \n-
    787 assert(row/bcols<matrix.N());
    \n-
    788 file>>data;
    \n-
    789 assert(data.index/bcols<matrix.M());
    \n-
    790 rows[row].insert(data);
    \n-
    791 if(row!=data.index)
    \n-
    792 symmetryFixup(row, data);
    \n-
    793 }
    \n-
    794 };
    \n-
    795
    \n-
    796 switch(mmHeader.structure)
    \n-
    797 {
    \n-
    798 case general:
    \n-
    799 readloop([](auto...){});
    \n-
    800 break;
    \n-
    801 case symmetric :
    \n-
    802 readloop([&](auto row, auto data) {
    \n-
    803 IndexData<D> data_sym(data);
    \n-
    804 data_sym.index = row;
    \n-
    805 rows[data.index].insert(data_sym);
    \n-
    806 });
    \n-
    807 break;
    \n-
    808 case skew_symmetric :
    \n-
    809 readloop([&](auto row, auto data) {
    \n-
    810 IndexData<D> data_sym;
    \n-
    811 data_sym.number = -data.number;
    \n-
    812 data_sym.index = row;
    \n-
    813 rows[data.index].insert(data_sym);
    \n-
    814 });
    \n-
    815 break;
    \n-
    816 case hermitian :
    \n-
    817 readloop([&](auto row, auto data) {
    \n-
    818 IndexData<D> data_sym;
    \n-
    819 data_sym.number = conj(data.number);
    \n-
    820 data_sym.index = row;
    \n-
    821 rows[data.index].insert(data_sym);
    \n-
    822 });
    \n-
    823 break;
    \n-
    824 default:
    \n-
    825 DUNE_THROW(Dune::NotImplemented,
    \n-
    826 "Only general, symmetric, skew-symmetric and hermitian is supported right now!");
    \n-
    827 }
    \n-
    828
    \n-
    829 // Setup the matrix sparsity pattern
    \n-
    830 int nnz=0;
    \n-
    831 for(typename Matrix::CreateIterator iter=matrix.createbegin();
    \n-
    832 iter!= matrix.createend(); ++iter)
    \n-
    833 {
    \n-
    834 for(std::size_t brow=iter.index()*brows, browend=iter.index()*brows+brows;
    \n-
    835 brow<browend; ++brow)
    \n-
    836 {
    \n-
    837 typedef typename std::set<IndexData<D> >::const_iterator Siter;
    \n-
    838 for(Siter siter=rows[brow].begin(), send=rows[brow].end();
    \n-
    839 siter != send; ++siter, ++nnz)
    \n-
    840 iter.insert(siter->index/bcols);
    \n-
    841 }
    \n-
    842 }
    \n-
    843
    \n-
    844 //Set the matrix values
    \n-
    845 matrix=0;
    \n-
    846
    \n-\n-
    848
    \n-
    849 Setter(rows, matrix);
    \n-
    850 }
    \n-
    \n-
    851
    \n-
    \n-
    852 inline std::tuple<std::string, std::string> splitFilename(const std::string& filename) {
    \n-
    853 std::size_t lastdot = filename.find_last_of(".");
    \n-
    854 if(lastdot == std::string::npos)
    \n-
    855 return std::make_tuple(filename, "");
    \n-
    856 else {
    \n-
    857 std::string potentialFileExtension = filename.substr(lastdot);
    \n-
    858 if (potentialFileExtension == ".mm" || potentialFileExtension == ".mtx")
    \n-
    859 return std::make_tuple(filename.substr(0, lastdot), potentialFileExtension);
    \n-
    860 else
    \n-
    861 return std::make_tuple(filename, "");
    \n-
    862 }
    \n-
    863 }
    \n-
    \n-
    864
    \n-
    865 } // end namespace MatrixMarketImpl
    \n-
    \n-
    866
    \n-
    \n-
    867 class MatrixMarketFormatError : public Dune::Exception
    \n-
    868 {};
    \n-
    \n-
    869
    \n-
    870
    \n-
    \n-
    871 inline void mm_read_header(std::size_t& rows, std::size_t& cols,
    \n-
    872 MatrixMarketImpl::MMHeader& header, std::istream& istr,
    \n-
    873 bool isVector)
    \n-
    874 {
    \n-
    875 using namespace MatrixMarketImpl;
    \n-
    876
    \n-
    877 if(!readMatrixMarketBanner(istr, header)) {
    \n-
    878 std::cerr << "First line was not a correct Matrix Market banner. Using default:\\n"
    \n-
    879 << "%%MatrixMarket matrix coordinate real general"<<std::endl;
    \n-
    880 // Go to the beginning of the file
    \n-
    881 istr.clear() ;
    \n-
    882 istr.seekg(0, std::ios::beg);
    \n-
    883 if(isVector)
    \n-
    884 header.type=array_type;
    \n-
    885 }
    \n-
    886
    \n-
    887 skipComments(istr);
    \n-
    888
    \n-
    889 if(lineFeed(istr))
    \n-\n-
    891
    \n-
    892 istr >> rows;
    \n-
    893
    \n-
    894 if(lineFeed(istr))
    \n-\n-
    896 istr >> cols;
    \n-
    897 }
    \n-
    \n-
    898
    \n-
    899 template<typename T, typename A>
    \n-
    \n-\n-
    901 std::size_t size,
    \n-
    902 std::istream& istr,
    \n-
    903 size_t lane)
    \n-
    904 {
    \n-
    905 for (int i=0; size>0; ++i, --size)
    \n-
    906 istr>>Simd::lane(lane,vector[i]);
    \n-
    907 }
    \n-
    \n-
    908
    \n-
    909 template<typename T, typename A, int entries>
    \n-
    \n-
    910 void mm_read_vector_entries(Dune::BlockVector<Dune::FieldVector<T,entries>,A>& vector,
    \n-
    911 std::size_t size,
    \n-
    912 std::istream& istr,
    \n-
    913 size_t lane)
    \n-
    914 {
    \n-
    915 for(int i=0; size>0; ++i, --size) {
    \n-
    916 Simd::Scalar<T> val;
    \n-
    917 istr>>val;
    \n-
    918 Simd::lane(lane, vector[i/entries][i%entries])=val;
    \n-
    919 }
    \n-
    920 }
    \n-
    \n-
    921
    \n-
    922
    \n-
    929 template<typename T, typename A>
    \n-
    \n-\n-
    931 std::istream& istr)
    \n-
    932 {
    \n-
    933 typedef typename Dune::BlockVector<T,A>::field_type field_type;
    \n-
    934 using namespace MatrixMarketImpl;
    \n-
    935
    \n-
    936 MMHeader header;
    \n-
    937 std::size_t rows, cols;
    \n-
    938 mm_read_header(rows,cols,header,istr, true);
    \n-
    939 if(cols!=Simd::lanes<field_type>()) {
    \n-
    940 if(Simd::lanes<field_type>() == 1)
    \n-
    941 DUNE_THROW(MatrixMarketFormatError, "cols!=1, therefore this is no vector!");
    \n-
    942 else
    \n-
    943 DUNE_THROW(MatrixMarketFormatError, "cols does not match the number of lanes in the field_type!");
    \n-
    944 }
    \n-
    945
    \n-
    946 if(header.type!=array_type)
    \n-
    947 DUNE_THROW(MatrixMarketFormatError, "Vectors have to be stored in array format!");
    \n-
    948
    \n-
    949
    \n-
    950 if constexpr (Dune::IsNumber<T>())
    \n-
    951 vector.resize(rows);
    \n-
    952 else
    \n-
    953 {
    \n-
    954 T dummy;
    \n-
    955 auto blocksize = dummy.size();
    \n-
    956 std::size_t size=rows/blocksize;
    \n-
    957 if(size*blocksize!=rows)
    \n-
    958 DUNE_THROW(MatrixMarketFormatError, "Block size of vector is not correct!");
    \n-
    959
    \n-
    960 vector.resize(size);
    \n-
    961 }
    \n-
    962
    \n-
    963 istr.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    964 for(size_t l=0;l<Simd::lanes<field_type>();++l){
    \n-
    965 mm_read_vector_entries(vector, rows, istr, l);
    \n-
    966 }
    \n-
    967 }
    \n-
    \n-
    968
    \n-
    975 template<typename T, typename A>
    \n-
    \n-\n-
    977 std::istream& istr)
    \n-
    978 {
    \n-
    979 using namespace MatrixMarketImpl;
    \n-\n-
    981
    \n-
    982 MMHeader header;
    \n-
    983 if(!readMatrixMarketBanner(istr, header)) {
    \n-
    984 std::cerr << "First line was not a correct Matrix Market banner. Using default:\\n"
    \n-
    985 << "%%MatrixMarket matrix coordinate real general"<<std::endl;
    \n-
    986 // Go to the beginning of the file
    \n-
    987 istr.clear() ;
    \n-
    988 istr.seekg(0, std::ios::beg);
    \n-
    989 }
    \n-
    990 skipComments(istr);
    \n-
    991
    \n-
    992 std::size_t rows, cols, entries;
    \n-
    993
    \n-
    994 if(lineFeed(istr))
    \n-\n-
    996
    \n-
    997 istr >> rows;
    \n-
    998
    \n-
    999 if(lineFeed(istr))
    \n-\n-
    1001 istr >> cols;
    \n-
    1002
    \n-
    1003 if(lineFeed(istr))
    \n-\n-
    1005
    \n-
    1006 istr >>entries;
    \n-
    1007
    \n-
    1008 std::size_t nnz, blockrows, blockcols;
    \n-
    1009
    \n-
    1010 // Number of rows and columns of T, if it is a matrix (1x1 otherwise)
    \n-
    1011 constexpr int brows = mm_multipliers<Matrix>::rows;
    \n-
    1012 constexpr int bcols = mm_multipliers<Matrix>::cols;
    \n-
    1013
    \n-
    1014 std::tie(blockrows, blockcols, nnz) = calculateNNZ<brows, bcols>(rows, cols, entries, header);
    \n-
    1015
    \n-
    1016 istr.ignore(std::numeric_limits<std::streamsize>::max(),'\\n');
    \n-
    1017
    \n-
    1018
    \n-
    1019 matrix.setSize(blockrows, blockcols, nnz);
    \n-\n-
    1021
    \n-
    1022 if(header.type==array_type)
    \n-
    1023 DUNE_THROW(Dune::NotImplemented, "Array format currently not supported for matrices!");
    \n-
    1024
    \n-
    1025 readSparseEntries(matrix, istr, entries, header, NumericWrapper<typename Matrix::field_type>());
    \n-
    1026 }
    \n-
    \n-
    1027
    \n-
    1028 // Print a scalar entry
    \n-
    1029 template<typename B>
    \n-
    \n-
    1030 void mm_print_entry(const B& entry,
    \n-
    1031 std::size_t rowidx,
    \n-
    1032 std::size_t colidx,
    \n-
    1033 std::ostream& ostr)
    \n-
    1034 {
    \n-
    1035 if constexpr (IsNumber<B>())
    \n-
    1036 ostr << rowidx << " " << colidx << " " << entry << std::endl;
    \n-
    1037 else
    \n-
    1038 {
    \n-
    1039 for (auto row=entry.begin(); row != entry.end(); ++row, ++rowidx) {
    \n-
    1040 int coli=colidx;
    \n-
    1041 for (auto col = row->begin(); col != row->end(); ++col, ++coli)
    \n-
    1042 ostr<< rowidx<<" "<<coli<<" "<<*col<<std::endl;
    \n-
    1043 }
    \n-
    1044 }
    \n-
    1045 }
    \n-
    \n-
    1046
    \n-
    1047 // Write a vector entry
    \n-
    1048 template<typename V>
    \n-
    \n-
    1049 void mm_print_vector_entry(const V& entry, std::ostream& ostr,
    \n-
    1050 const std::integral_constant<int,1>&,
    \n-
    1051 size_t lane)
    \n-
    1052 {
    \n-
    1053 ostr<<Simd::lane(lane,entry)<<std::endl;
    \n-
    1054 }
    \n-
    \n-
    1055
    \n-
    1056 // Write a vector
    \n-
    1057 template<typename V>
    \n-
    \n-
    1058 void mm_print_vector_entry(const V& vector, std::ostream& ostr,
    \n-
    1059 const std::integral_constant<int,0>&,
    \n-
    1060 size_t lane)
    \n-
    1061 {
    \n-
    1062 using namespace MatrixMarketImpl;
    \n-
    1063
    \n-
    1064 // Is the entry a supported numeric type?
    \n-
    1065 const int isnumeric = mm_numeric_type<Simd::Scalar<typename V::block_type>>::is_numeric;
    \n-
    1066 typedef typename V::const_iterator VIter;
    \n-
    1067
    \n-
    1068 for(VIter i=vector.begin(); i != vector.end(); ++i)
    \n-
    1069
    \n-
    1070 mm_print_vector_entry(*i, ostr,
    \n-
    1071 std::integral_constant<int,isnumeric>(),
    \n-
    1072 lane);
    \n-
    1073 }
    \n-
    \n-
    1074
    \n-
    1075 template<typename T, typename A>
    \n-
    \n-
    1076 std::size_t countEntries(const BlockVector<T,A>& vector)
    \n-
    1077 {
    \n-
    1078 return vector.size();
    \n-
    1079 }
    \n-
    \n-
    1080
    \n-
    1081 template<typename T, typename A, int i>
    \n-
    \n-
    1082 std::size_t countEntries(const BlockVector<FieldVector<T,i>,A>& vector)
    \n-
    1083 {
    \n-
    1084 return vector.size()*i;
    \n-
    1085 }
    \n-
    \n-
    1086
    \n-
    1087 // Version for writing vectors.
    \n-
    1088 template<typename V>
    \n-
    \n-
    1089 void writeMatrixMarket(const V& vector, std::ostream& ostr,
    \n-
    1090 const std::integral_constant<int,0>&)
    \n-
    1091 {
    \n-
    1092 using namespace MatrixMarketImpl;
    \n-
    1093 typedef typename V::field_type field_type;
    \n-
    1094
    \n-
    1095 ostr<<countEntries(vector)<<" "<<Simd::lanes<field_type>()<<std::endl;
    \n-
    1096 const int isnumeric = mm_numeric_type<Simd::Scalar<V>>::is_numeric;
    \n-
    1097 for(size_t l=0;l<Simd::lanes<field_type>(); ++l){
    \n-
    1098 mm_print_vector_entry(vector,ostr, std::integral_constant<int,isnumeric>(), l);
    \n-
    1099 }
    \n-
    1100 }
    \n-
    \n-
    1101
    \n-
    1102 // Versions for writing matrices
    \n-
    1103 template<typename M>
    \n-
    \n-
    1104 void writeMatrixMarket(const M& matrix,
    \n-
    1105 std::ostream& ostr,
    \n-
    1106 const std::integral_constant<int,1>&)
    \n-
    1107 {
    \n-
    1108 ostr<<matrix.N()*MatrixMarketImpl::mm_multipliers<M>::rows<<" "
    \n-\n-
    1110 <<countNonZeros(matrix)<<std::endl;
    \n-
    1111
    \n-
    1112 typedef typename M::const_iterator riterator;
    \n-
    1113 typedef typename M::ConstColIterator citerator;
    \n-
    1114 for(riterator row=matrix.begin(); row != matrix.end(); ++row)
    \n-
    1115 for(citerator col = row->begin(); col != row->end(); ++col)
    \n-
    1116 // Matrix Market indexing start with 1!
    \n-\n-\n-
    1119 }
    \n-
    \n-
    1120
    \n-
    1121
    \n-
    1125 template<typename M>
    \n-
    \n-
    1126 void writeMatrixMarket(const M& matrix,
    \n-
    1127 std::ostream& ostr)
    \n-
    1128 {
    \n-
    1129 using namespace MatrixMarketImpl;
    \n-
    1130
    \n-
    1131 // Write header information
    \n-
    1132 mm_header_printer<M>::print(ostr);
    \n-
    1133 mm_block_structure_header<M>::print(ostr,matrix);
    \n-
    1134 // Choose the correct function for matrix and vector
    \n-
    1135 writeMatrixMarket(matrix,ostr,std::integral_constant<int,IsMatrix<M>::value>());
    \n-
    1136 }
    \n-
    \n-
    1137
    \n-
    1138 static const int default_precision = -1;
    \n-
    1150 template<typename M>
    \n-
    \n-
    1151 void storeMatrixMarket(const M& matrix,
    \n-
    1152 std::string filename,
    \n-
    1153 int prec=default_precision)
    \n-
    1154 {
    \n-
    1155 auto [pureFilename, extension] = MatrixMarketImpl::splitFilename(filename);
    \n-
    1156 std::string rfilename;
    \n-
    1157 std::ofstream file;
    \n-
    1158 if (extension != "") {
    \n-
    1159 rfilename = pureFilename + extension;
    \n-
    1160 file.open(rfilename.c_str());
    \n-
    1161 if(!file)
    \n-
    1162 DUNE_THROW(IOError, "Could not open file for storage: " << rfilename.c_str());
    \n-
    1163 }
    \n-
    1164 else {
    \n-
    1165 // only try .mm so we do not ignore potential errors
    \n-
    1166 rfilename = pureFilename + ".mm";
    \n-
    1167 file.open(rfilename.c_str());
    \n-
    1168 if(!file)
    \n-
    1169 DUNE_THROW(IOError, "Could not open file for storage: " << rfilename.c_str());
    \n-
    1170 }
    \n-
    1171
    \n-
    1172 file.setf(std::ios::scientific,std::ios::floatfield);
    \n-
    1173 if(prec>0)
    \n-
    1174 file.precision(prec);
    \n-
    1175 writeMatrixMarket(matrix, file);
    \n-
    1176 file.close();
    \n-
    1177 }
    \n-
    \n-
    1178
    \n-
    1179#if HAVE_MPI
    \n-
    1194 template<typename M, typename G, typename L>
    \n-
    \n-
    1195 void storeMatrixMarket(const M& matrix,
    \n-
    1196 std::string filename,
    \n-\n-
    1198 bool storeIndices=true,
    \n-
    1199 int prec=default_precision)
    \n-
    1200 {
    \n-
    1201 // Get our rank
    \n-
    1202 int rank = comm.communicator().rank();
    \n-
    1203 // Write the local matrix
    \n-
    1204 auto [pureFilename, extension] = MatrixMarketImpl::splitFilename(filename);
    \n-
    1205 std::string rfilename;
    \n-
    1206 std::ofstream file;
    \n-
    1207 if (extension != "") {
    \n-
    1208 rfilename = pureFilename + "_" + std::to_string(rank) + extension;
    \n-
    1209 file.open(rfilename.c_str());
    \n-
    1210 dverb<< rfilename <<std::endl;
    \n-
    1211 if(!file)
    \n-
    1212 DUNE_THROW(IOError, "Could not open file for storage: " << rfilename.c_str());
    \n-
    1213 }
    \n-
    1214 else {
    \n-
    1215 // only try .mm so we do not ignore potential errors
    \n-
    1216 rfilename = pureFilename + "_" + std::to_string(rank) + ".mm";
    \n-
    1217 file.open(rfilename.c_str());
    \n-
    1218 dverb<< rfilename <<std::endl;
    \n-
    1219 if(!file)
    \n-
    1220 DUNE_THROW(IOError, "Could not open file for storage: " << rfilename.c_str());
    \n-
    1221 }
    \n-
    1222 file.setf(std::ios::scientific,std::ios::floatfield);
    \n-
    1223 if(prec>0)
    \n-
    1224 file.precision(prec);
    \n-
    1225 writeMatrixMarket(matrix, file);
    \n-
    1226 file.close();
    \n-
    1227
    \n-
    1228 if(!storeIndices)
    \n-
    1229 return;
    \n-
    1230
    \n-
    1231 // Write the global to local index mapping
    \n-
    1232 rfilename = pureFilename + "_" + std::to_string(rank) + ".idx";
    \n-
    1233 file.open(rfilename.c_str());
    \n-
    1234 if(!file)
    \n-
    1235 DUNE_THROW(IOError, "Could not open file for storage: " << rfilename.c_str());
    \n-
    1236 file.setf(std::ios::scientific,std::ios::floatfield);
    \n-\n-
    1238 typedef typename IndexSet::const_iterator Iterator;
    \n-
    1239 for(Iterator iter = comm.indexSet().begin();
    \n-
    1240 iter != comm.indexSet().end(); ++iter) {
    \n-
    1241 file << iter->global()<<" "<<(std::size_t)iter->local()<<" "
    \n-
    1242 <<(int)iter->local().attribute()<<" "<<(int)iter->local().isPublic()<<std::endl;
    \n-
    1243 }
    \n-
    1244 // Store neighbour information for efficient remote indices setup.
    \n-
    1245 file<<"neighbours:";
    \n-
    1246 const std::set<int>& neighbours=comm.remoteIndices().getNeighbours();
    \n-
    1247 typedef std::set<int>::const_iterator SIter;
    \n-
    1248 for(SIter neighbour=neighbours.begin(); neighbour != neighbours.end(); ++neighbour) {
    \n-
    1249 file<<" "<< *neighbour;
    \n-
    1250 }
    \n-
    1251 file.close();
    \n-
    1252 }
    \n-
    \n-
    1253
    \n-
    1268 template<typename M, typename G, typename L>
    \n-
    \n-
    1269 void loadMatrixMarket(M& matrix,
    \n-
    1270 const std::string& filename,
    \n-\n-
    1272 bool readIndices=true)
    \n-
    1273 {
    \n-
    1274 using namespace MatrixMarketImpl;
    \n-
    1275
    \n-\n-
    1277 typedef typename LocalIndexT::Attribute Attribute;
    \n-
    1278 // Get our rank
    \n-
    1279 int rank = comm.communicator().rank();
    \n-
    1280 // load local matrix
    \n-
    1281 auto [pureFilename, extension] = MatrixMarketImpl::splitFilename(filename);
    \n-
    1282 std::string rfilename;
    \n-
    1283 std::ifstream file;
    \n-
    1284 if (extension != "") {
    \n-
    1285 rfilename = pureFilename + "_" + std::to_string(rank) + extension;
    \n-
    1286 file.open(rfilename.c_str(), std::ios::in);
    \n-
    1287 dverb<< rfilename <<std::endl;
    \n-
    1288 if(!file)
    \n-
    1289 DUNE_THROW(IOError, "Could not open file: " << rfilename.c_str());
    \n-
    1290 }
    \n-
    1291 else {
    \n-
    1292 // try both .mm and .mtx
    \n-
    1293 rfilename = pureFilename + "_" + std::to_string(rank) + ".mm";
    \n-
    1294 file.open(rfilename.c_str(), std::ios::in);
    \n-
    1295 if(!file) {
    \n-
    1296 rfilename = pureFilename + "_" + std::to_string(rank) + ".mtx";
    \n-
    1297 file.open(rfilename.c_str(), std::ios::in);
    \n-
    1298 dverb<< rfilename <<std::endl;
    \n-
    1299 if(!file)
    \n-
    1300 DUNE_THROW(IOError, "Could not open file: " << rfilename.c_str());
    \n-
    1301 }
    \n-
    1302 }
    \n-
    1303 readMatrixMarket(matrix,file);
    \n-
    1304 file.close();
    \n-
    1305
    \n-
    1306 if(!readIndices)
    \n-
    1307 return;
    \n-
    1308
    \n-
    1309 // read indices
    \n-\n-
    1311 IndexSet& pis=comm.pis;
    \n-
    1312 rfilename = pureFilename + "_" + std::to_string(rank) + ".idx";
    \n-
    1313 file.open(rfilename.c_str());
    \n-
    1314 if(!file)
    \n-
    1315 DUNE_THROW(IOError, "Could not open file: " << rfilename.c_str());
    \n-
    1316 if(pis.size()!=0)
    \n-
    1317 DUNE_THROW(InvalidIndexSetState, "Index set is not empty!");
    \n-
    1318
    \n-
    1319 pis.beginResize();
    \n-
    1320 while(!file.eof() && file.peek()!='n') {
    \n-
    1321 G g;
    \n-
    1322 file >>g;
    \n-
    1323 std::size_t l;
    \n-
    1324 file >>l;
    \n-
    1325 int c;
    \n-
    1326 file >>c;
    \n-
    1327 bool b;
    \n-
    1328 file >> b;
    \n-
    1329 pis.add(g,LocalIndexT(l,Attribute(c),b));
    \n-
    1330 lineFeed(file);
    \n-
    1331 }
    \n-
    1332 pis.endResize();
    \n-
    1333 if(!file.eof()) {
    \n-
    1334 // read neighbours
    \n-
    1335 std::string s;
    \n-
    1336 file>>s;
    \n-
    1337 if(s!="neighbours:")
    \n-
    1338 DUNE_THROW(MatrixMarketFormatError, "was expecting the string: \\"neighbours:\\"");
    \n-
    1339 std::set<int> nb;
    \n-
    1340 while(!file.eof()) {
    \n-
    1341 int i;
    \n-
    1342 file >> i;
    \n-
    1343 nb.insert(i);
    \n-
    1344 }
    \n-
    1345 file.close();
    \n-
    1346 comm.ri.setNeighbours(nb);
    \n-
    1347 }
    \n-
    1348 comm.ri.template rebuild<false>();
    \n-
    1349 }
    \n-
    \n-
    1350
    \n-
    1351 #endif
    \n-
    1352
    \n-
    1363 template<typename M>
    \n-
    \n-
    1364 void loadMatrixMarket(M& matrix,
    \n-
    1365 const std::string& filename)
    \n-
    1366 {
    \n-
    1367 auto [pureFilename, extension] = MatrixMarketImpl::splitFilename(filename);
    \n-
    1368 std::string rfilename;
    \n-
    1369 std::ifstream file;
    \n-
    1370 if (extension != "") {
    \n-
    1371 rfilename = pureFilename + extension;
    \n-
    1372 file.open(rfilename.c_str());
    \n-
    1373 if(!file)
    \n-
    1374 DUNE_THROW(IOError, "Could not open file: " << rfilename.c_str());
    \n-
    1375 }
    \n-
    1376 else {
    \n-
    1377 // try both .mm and .mtx
    \n-
    1378 rfilename = pureFilename + ".mm";
    \n-
    1379 file.open(rfilename.c_str(), std::ios::in);
    \n-
    1380 if(!file) {
    \n-
    1381 rfilename = pureFilename + ".mtx";
    \n-
    1382 file.open(rfilename.c_str(), std::ios::in);
    \n-
    1383 if(!file)
    \n-
    1384 DUNE_THROW(IOError, "Could not open file: " << rfilename.c_str());
    \n-
    1385 }
    \n-
    1386 }
    \n-
    1387 readMatrixMarket(matrix,file);
    \n-
    1388 file.close();
    \n-
    1389 }
    \n-
    \n-
    1390
    \n-
    1392}
    \n-
    1393#endif
    \n-
    Some handy generic functions for ISTL matrices.
    \n-
    Implementation of the BCRSMatrix class.
    \n-
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n-
    auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::value > *sfinae=nullptr)
    Get the number of nonzero fields in the matrix.
    Definition matrixutils.hh:119
    \n-
    void readMatrixMarket(Dune::BlockVector< T, A > &vector, std::istream &istr)
    Reads a BlockVector from a matrix market file.
    Definition matrixmarket.hh:930
    \n-
    void storeMatrixMarket(const M &matrix, std::string filename, int prec=default_precision)
    Stores a parallel matrix/vector in matrix market format in a file.
    Definition matrixmarket.hh:1151
    \n-
    void loadMatrixMarket(M &matrix, const std::string &filename, OwnerOverlapCopyCommunication< G, L > &comm, bool readIndices=true)
    Load a parallel matrix/vector stored in matrix market format.
    Definition matrixmarket.hh:1269
    \n-
    std::size_t countEntries(const BlockVector< T, A > &vector)
    Definition matrixmarket.hh:1076
    \n-
    void writeMatrixMarket(const V &vector, std::ostream &ostr, const std::integral_constant< int, 0 > &)
    Definition matrixmarket.hh:1089
    \n-
    void mm_print_vector_entry(const V &entry, std::ostream &ostr, const std::integral_constant< int, 1 > &, size_t lane)
    Definition matrixmarket.hh:1049
    \n-
    static const int default_precision
    Definition matrixmarket.hh:1138
    \n-
    void mm_read_vector_entries(Dune::BlockVector< T, A > &vector, std::size_t size, std::istream &istr, size_t lane)
    Definition matrixmarket.hh:900
    \n-
    void mm_read_header(std::size_t &rows, std::size_t &cols, MatrixMarketImpl::MMHeader &header, std::istream &istr, bool isVector)
    Definition matrixmarket.hh:871
    \n-
    void mm_print_entry(const B &entry, std::size_t rowidx, std::size_t colidx, std::ostream &ostr)
    Definition matrixmarket.hh:1030
    \n+
    299 copyToBCCSMatrix(initializer, mat);
    \n+
    300 }
    \n+
    \n+
    301
    \n+
    \n+
    303 virtual void free()
    \n+
    304 {
    \n+
    305 ISTL::Impl::BCCSMatrix<typename BCRSMatrix<B,TA>::field_type, int>::free();
    \n+
    306 SUPERLU_FREE(A.Store);
    \n+
    307 }
    \n+
    \n+
    308 private:
    \n+
    309 SuperMatrix A;
    \n+
    310 };
    \n+
    \n+
    311
    \n+
    312 template<class B, class A>
    \n+
    \n+\n+
    314 : public ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<B,A>, int>
    \n+
    315 {
    \n+
    316 template<class I, class S, class D>
    \n+\n+
    318 public:
    \n+\n+\n+
    321
    \n+
    \n+
    322 SuperMatrixInitializer(SuperLUMatrix& lum) : ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<B,A>, int>(lum)
    \n+
    323 ,slumat(&lum)
    \n+
    324 {}
    \n+
    \n+
    325
    \n+
    \n+
    326 SuperMatrixInitializer() : ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<B,A>, int>()
    \n+
    327 {}
    \n+
    \n+
    328
    \n+
    \n+
    329 virtual void createMatrix() const
    \n+
    330 {
    \n+
    331 ISTL::Impl::BCCSMatrixInitializer<BCRSMatrix<B,A>, int>::createMatrix();
    \n+\n+
    333 ::create(&slumat->A, slumat->N_, slumat->M_, slumat->colstart[this->cols],
    \n+
    334 slumat->values,slumat->rowindex, slumat->colstart, SLU_NC,
    \n+
    335 static_cast<Dtype_t>(GetSuperLUType<typename Matrix::field_type>::type), SLU_GE);
    \n+
    336 }
    \n+
    \n+
    337 private:
    \n+
    338 SuperLUMatrix* slumat;
    \n+
    339 };
    \n+
    \n+
    340}
    \n+
    341#endif // HAVE_SUPERLU
    \n+
    342#endif
    \n+\n+\n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Implementation of the BCRSMatrix class.
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n
    STL namespace.
    \n
    Definition allocator.hh:11
    \n-
    std::tuple< std::size_t, std::size_t, std::size_t > calculateNNZ(std::size_t rows, std::size_t cols, std::size_t entries, const MMHeader &header)
    Definition matrixmarket.hh:547
    \n-
    bool operator<(const IndexData< T > &i1, const IndexData< T > &i2)
    LessThan operator.
    Definition matrixmarket.hh:630
    \n-
    LineType
    Definition matrixmarket.hh:296
    \n-
    @ DATA
    Definition matrixmarket.hh:296
    \n-
    @ MM_HEADER
    Definition matrixmarket.hh:296
    \n-
    @ MM_ISTLSTRUCT
    Definition matrixmarket.hh:296
    \n-
    bool readMatrixMarketBanner(std::istream &file, MMHeader &mmHeader)
    Definition matrixmarket.hh:353
    \n-
    void readSparseEntries(Dune::BCRSMatrix< T, A > &matrix, std::istream &file, std::size_t entries, const MMHeader &mmHeader, const D &)
    Definition matrixmarket.hh:765
    \n-
    MM_TYPE
    Definition matrixmarket.hh:299
    \n-
    @ array_type
    Definition matrixmarket.hh:299
    \n-
    @ coordinate_type
    Definition matrixmarket.hh:299
    \n-
    @ unknown_type
    Definition matrixmarket.hh:299
    \n-
    std::istream & operator>>(std::istream &is, NumericWrapper< T > &num)
    Definition matrixmarket.hh:614
    \n-
    void skipComments(std::istream &file)
    Definition matrixmarket.hh:339
    \n-
    bool lineFeed(std::istream &file)
    Definition matrixmarket.hh:315
    \n-
    @ MM_MAX_LINE_LENGTH
    Definition matrixmarket.hh:297
    \n-
    MM_STRUCTURE
    Definition matrixmarket.hh:303
    \n-
    @ skew_symmetric
    Definition matrixmarket.hh:303
    \n-
    @ general
    Definition matrixmarket.hh:303
    \n-
    @ hermitian
    Definition matrixmarket.hh:303
    \n-
    @ unknown_structure
    Definition matrixmarket.hh:303
    \n-
    @ symmetric
    Definition matrixmarket.hh:303
    \n-
    MM_CTYPE
    Definition matrixmarket.hh:301
    \n-
    @ unknown_ctype
    Definition matrixmarket.hh:301
    \n-
    @ pattern
    Definition matrixmarket.hh:301
    \n-
    @ complex_type
    Definition matrixmarket.hh:301
    \n-
    @ double_type
    Definition matrixmarket.hh:301
    \n-
    @ integer_type
    Definition matrixmarket.hh:301
    \n-
    std::enable_if_t<!is_complex< T >::value, T > conj(const T &r)
    Definition matrixmarket.hh:733
    \n-
    std::tuple< std::string, std::string > splitFilename(const std::string &filename)
    Definition matrixmarket.hh:852
    \n+
    Initializer for SuperLU Matrices representing the subdomains.
    Definition overlappingschwarz.hh:47
    \n+
    static auto coldim(const M &A)
    Definition matrixutils.hh:219
    \n+
    static auto rowdim(const M &A)
    Definition matrixutils.hh:214
    \n
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    Iterator begin()
    Get iterator to first row.
    Definition bcrsmatrix.hh:675
    \n-
    Iterator end()
    Get iterator to one beyond last row.
    Definition bcrsmatrix.hh:681
    \n-
    CreateIterator createend()
    get create iterator pointing to one after the last block
    Definition bcrsmatrix.hh:1103
    \n-
    size_type M() const
    number of columns (counted in blocks)
    Definition bcrsmatrix.hh:1978
    \n-
    CreateIterator createbegin()
    get initial create iterator
    Definition bcrsmatrix.hh:1097
    \n-
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n-
    void setBuildMode(BuildMode bm)
    Sets the build mode of the matrix.
    Definition bcrsmatrix.hh:833
    \n-
    void setSize(size_type rows, size_type columns, size_type nnz=0)
    Set the size of the matrix.
    Definition bcrsmatrix.hh:861
    \n-
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n-
    void resize(size_type size)
    Resize the vector.
    Definition bvector.hh:503
    \n-
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bvector.hh:401
    \n-
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n-
    Helper metaprogram to get the matrix market string representation of the numeric type.
    Definition matrixmarket.hh:76
    \n-
    @ is_numeric
    Whether T is a supported numeric type.
    Definition matrixmarket.hh:81
    \n-
    static std::string str()
    Definition matrixmarket.hh:95
    \n-
    static std::string str()
    Definition matrixmarket.hh:111
    \n-
    static std::string str()
    Definition matrixmarket.hh:127
    \n-
    static std::string str()
    Definition matrixmarket.hh:143
    \n-
    static std::string str()
    Definition matrixmarket.hh:159
    \n-
    Meta program to write the correct Matrix Market header.
    Definition matrixmarket.hh:174
    \n-
    static void print(std::ostream &os)
    Definition matrixmarket.hh:179
    \n-
    static void print(std::ostream &os)
    Definition matrixmarket.hh:189
    \n-
    static void print(std::ostream &os)
    Definition matrixmarket.hh:199
    \n-
    static void print(std::ostream &os)
    Definition matrixmarket.hh:209
    \n-
    Metaprogram for writing the ISTL block structure header.
    Definition matrixmarket.hh:225
    \n-
    static void print(std::ostream &os, const M &)
    Definition matrixmarket.hh:233
    \n-
    BlockVector< T, A > M
    Definition matrixmarket.hh:230
    \n-
    BlockVector< FieldVector< T, i >, A > M
    Definition matrixmarket.hh:243
    \n-
    static void print(std::ostream &os, const M &)
    Definition matrixmarket.hh:245
    \n-
    BCRSMatrix< T, A > M
    Definition matrixmarket.hh:255
    \n-
    static void print(std::ostream &os, const M &)
    Definition matrixmarket.hh:258
    \n-
    BCRSMatrix< FieldMatrix< T, i, j >, A > M
    Definition matrixmarket.hh:268
    \n-
    static void print(std::ostream &os, const M &)
    Definition matrixmarket.hh:270
    \n-
    static void print(std::ostream &os, const M &m)
    Definition matrixmarket.hh:283
    \n-
    FieldMatrix< T, i, j > M
    Definition matrixmarket.hh:281
    \n-
    static void print(std::ostream &os, const M &m)
    Definition matrixmarket.hh:292
    \n-
    FieldVector< T, i > M
    Definition matrixmarket.hh:290
    \n-
    Definition matrixmarket.hh:306
    \n-
    MM_STRUCTURE structure
    Definition matrixmarket.hh:312
    \n-
    MM_TYPE type
    Definition matrixmarket.hh:310
    \n-
    MMHeader()
    Definition matrixmarket.hh:307
    \n-
    MM_CTYPE ctype
    Definition matrixmarket.hh:311
    \n-
    Definition matrixmarket.hh:578
    \n-
    std::size_t index
    Definition matrixmarket.hh:579
    \n-
    a wrapper class of numeric values.
    Definition matrixmarket.hh:595
    \n-
    T number
    Definition matrixmarket.hh:596
    \n-
    Utility class for marking the pattern type of the MatrixMarket matrices.
    Definition matrixmarket.hh:607
    \n-
    Functor to the data values of the matrix.
    Definition matrixmarket.hh:677
    \n-
    void operator()(const std::vector< std::set< IndexData< D > > > &rows, BCRSMatrix< T > &matrix)
    Sets the matrix values.
    Definition matrixmarket.hh:684
    \n-
    void operator()(const std::vector< std::set< IndexData< D > > > &rows, BCRSMatrix< FieldMatrix< T, brows, bcols > > &matrix)
    Sets the matrix values.
    Definition matrixmarket.hh:702
    \n-
    void operator()(const std::vector< std::set< IndexData< PatternDummy > > > &rows, M &matrix)
    Definition matrixmarket.hh:723
    \n-
    Definition matrixmarket.hh:728
    \n-
    Definition matrixmarket.hh:744
    \n-
    Definition matrixmarket.hh:868
    \n-
    Definition matrixutils.hh:27
    \n-
    Test whether a type is an ISTL Matrix.
    Definition matrixutils.hh:504
    \n-
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n-
    const ParallelIndexSet & indexSet() const
    Get the underlying parallel index set.
    Definition owneroverlapcopy.hh:462
    \n-
    const Communication< MPI_Comm > & communicator() const
    Definition owneroverlapcopy.hh:299
    \n-
    const RemoteIndices & remoteIndices() const
    Get the underlying remote indices.
    Definition owneroverlapcopy.hh:471
    \n-
    Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet
    The type of the parallel index set.
    Definition owneroverlapcopy.hh:449
    \n+
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n+
    Sequential overlapping Schwarz preconditioner.
    Definition overlappingschwarz.hh:755
    \n+
    Definition overlappingschwarz.hh:694
    \n+
    SuperLu Solver.
    Definition superlu.hh:271
    \n+
    Definition supermatrix.hh:26
    \n+
    Definition supermatrix.hh:30
    \n+
    Definition supermatrix.hh:126
    \n+
    static const Dtype_t type
    Definition supermatrix.hh:127
    \n+
    Definition supermatrix.hh:132
    \n+
    double float_type
    Definition supermatrix.hh:144
    \n+
    float float_type
    Definition supermatrix.hh:151
    \n+
    double float_type
    Definition supermatrix.hh:158
    \n+
    float float_type
    Definition supermatrix.hh:165
    \n+
    Utility class for converting an ISTL Matrix into a SuperLU Matrix.
    Definition supermatrix.hh:175
    \n+
    Definition supermatrix.hh:179
    \n+
    virtual void free()
    free allocated space.
    Definition supermatrix.hh:303
    \n+
    SuperLUMatrix< BCRSMatrix< B, TA > > & operator=(const SuperLUMatrix< BCRSMatrix< B, TA > > &mat)
    Definition supermatrix.hh:256
    \n+
    SuperLUMatrix< BCRSMatrix< B, TA > > & operator=(const BCRSMatrix< B, TA > &mat)
    Definition supermatrix.hh:237
    \n+
    SuperLUMatrix(const Matrix &mat)
    Constructor that initializes the data.
    Definition supermatrix.hh:212
    \n+
    virtual void setMatrix(const Matrix &mat)
    Initialize data from given matrix.
    Definition supermatrix.hh:293
    \n+
    SuperLUMatrix()
    Definition supermatrix.hh:215
    \n+
    Matrix::size_type size_type
    Definition supermatrix.hh:206
    \n+
    BCRSMatrix< B, TA > Matrix
    The type of the matrix to convert.
    Definition supermatrix.hh:202
    \n+
    virtual void setMatrix(const Matrix &mat, const std::set< std::size_t > &mrs)
    Initialize data from a given set of matrix rows and columns.
    Definition supermatrix.hh:281
    \n+
    virtual ~SuperLUMatrix()
    Destructor.
    Definition supermatrix.hh:219
    \n+
    Dune::SuperLUMatrix< Matrix > SuperLUMatrix
    Definition supermatrix.hh:320
    \n+
    BCRSMatrix< B, A > Matrix
    Definition supermatrix.hh:319
    \n+
    SuperMatrixInitializer()
    Definition supermatrix.hh:326
    \n+
    virtual void createMatrix() const
    Definition supermatrix.hh:329
    \n+
    SuperMatrixInitializer(SuperLUMatrix &lum)
    Definition supermatrix.hh:322
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1632 +1,461 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-matrixmarket.hh\n+supermatrix.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_MATRIXMARKET_HH\n-6#define DUNE_ISTL_MATRIXMARKET_HH\n+5#ifndef DUNE_ISTL_SUPERMATRIX_HH\n+6#define DUNE_ISTL_SUPERMATRIX_HH\n 7\n-8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14#include \n+8#if HAVE_SUPERLU\n+9\n+10#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+11#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+12#include \n+13#include \n+14#include \n 15#include \n-16#include \n-17#include \n-18#include \n-19#include \n-20#include \n-21#include \n-22#include \n+16\n+17#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n+18\n+19#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\"\n+20\n+21namespace _\bD_\bu_\bn_\be\n+22{\n 23\n-24#include \n-25#include \n-26#include \n-27#include \n-28#include \n-29#include \n-30\n-31#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-32#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-33#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh> // countNonZeros()\n-34#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-35\n-36namespace _\bD_\bu_\bn_\be\n-37{\n-38\n-_\b6_\b4 namespace MatrixMarketImpl\n-65 {\n-75 template\n-_\b7_\b6 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be {\n-77 enum {\n-81 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=false\n-_\b8_\b2 };\n-83 };\n-84\n-85 template<>\n-_\b8_\b6 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be\n-87 {\n-88 enum {\n-92 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=true\n-_\b9_\b3 };\n-94\n-_\b9_\b5 static std::string _\bs_\bt_\br()\n-96 {\n-97 return \"integer\";\n-98 }\n-99 };\n+24 template\n+_\b2_\b5 struct _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n+26 {};\n+27\n+28 template\n+_\b2_\b9 struct _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\bi_\bn_\bt_\be_\br\n+30 {};\n+31\n+32#if __has_include(\"slu_sdefs.h\")\n+33 template<>\n+34 struct _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n+35 {\n+36 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, int offset,\n+37 float *values, int *rowindex, int* colindex,\n+38 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n+39 {\n+40 sCreate_CompCol_Matrix(_\bm_\ba_\bt, n, m, offset, values, rowindex, colindex,\n+41 stype, dtype, mtype);\n+42 }\n+43 };\n+44\n+45 template<>\n+46 struct SuperMatrixPrinter\n+47 {\n+48 static void print(char* name, SuperMatrix* _\bm_\ba_\bt)\n+49 {\n+50 sPrint_CompCol_Matrix(name, _\bm_\ba_\bt);\n+51 }\n+52 };\n+53#endif\n+54\n+55#if __has_include(\"slu_ddefs.h\")\n+56 template<>\n+57 struct SuperMatrixCreateSparseChooser\n+58 {\n+59 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, int offset,\n+60 double *values, int *rowindex, int* colindex,\n+61 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n+62 {\n+63 dCreate_CompCol_Matrix(_\bm_\ba_\bt, n, m, offset, values, rowindex, colindex,\n+64 stype, dtype, mtype);\n+65 }\n+66 };\n+67\n+68 template<>\n+69 struct SuperMatrixPrinter\n+70 {\n+71 static void print(char* name, SuperMatrix* _\bm_\ba_\bt)\n+72 {\n+73 dPrint_CompCol_Matrix(name, _\bm_\ba_\bt);\n+74 }\n+75 };\n+76#endif\n+77\n+78#if __has_include(\"slu_cdefs.h\")\n+79 template<>\n+80 struct SuperMatrixCreateSparseChooser<_\bs_\bt_\bd::complex >\n+81 {\n+82 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, int offset,\n+83 std::complex *values, int *rowindex, int* colindex,\n+84 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n+85 {\n+86 cCreate_CompCol_Matrix(_\bm_\ba_\bt, n, m, offset, reinterpret_cast< ::complex*>\n+(values),\n+87 rowindex, colindex, stype, dtype, mtype);\n+88 }\n+89 };\n+90\n+91 template<>\n+92 struct SuperMatrixPrinter<_\bs_\bt_\bd::complex >\n+93 {\n+94 static void print(char* name, SuperMatrix* _\bm_\ba_\bt)\n+95 {\n+96 cPrint_CompCol_Matrix(name, _\bm_\ba_\bt);\n+97 }\n+98 };\n+99#endif\n 100\n-101 template<>\n-_\b1_\b0_\b2 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be\n-103 {\n-104 enum {\n-108 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=true\n-_\b1_\b0_\b9 };\n-110\n-_\b1_\b1_\b1 static std::string _\bs_\bt_\br()\n-112 {\n-113 return \"real\";\n-114 }\n-115 };\n-116\n-117 template<>\n-_\b1_\b1_\b8 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be\n-119 {\n-120 enum {\n-124 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=true\n-_\b1_\b2_\b5 };\n-126\n-_\b1_\b2_\b7 static std::string _\bs_\bt_\br()\n-128 {\n-129 return \"real\";\n-130 }\n-131 };\n-132\n-133 template<>\n-_\b1_\b3_\b4 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be<_\bs_\bt_\bd::complex >\n-135 {\n-136 enum {\n-140 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=true\n-_\b1_\b4_\b1 };\n-142\n-_\b1_\b4_\b3 static std::string _\bs_\bt_\br()\n-144 {\n-145 return \"complex\";\n-146 }\n-147 };\n-148\n-149 template<>\n-_\b1_\b5_\b0 struct _\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be<_\bs_\bt_\bd::complex >\n-151 {\n-152 enum {\n-156 _\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc=true\n-_\b1_\b5_\b7 };\n-158\n-_\b1_\b5_\b9 static std::string _\bs_\bt_\br()\n-160 {\n-161 return \"complex\";\n-162 }\n-163 };\n-164\n+101#if __has_include(\"slu_zdefs.h\")\n+102 template<>\n+103 struct SuperMatrixCreateSparseChooser<_\bs_\bt_\bd::complex >\n+104 {\n+105 static void create(SuperMatrix *_\bm_\ba_\bt, int n, int m, int offset,\n+106 std::complex *values, int *rowindex, int* colindex,\n+107 Stype_t stype, Dtype_t dtype, Mtype_t mtype)\n+108 {\n+109 zCreate_CompCol_Matrix(_\bm_\ba_\bt, n, m, offset, reinterpret_cast\n+(values),\n+110 rowindex, colindex, stype, dtype, mtype);\n+111 }\n+112 };\n+113\n+114 template<>\n+115 struct SuperMatrixPrinter<_\bs_\bt_\bd::complex >\n+116 {\n+117 static void print(char* name, SuperMatrix* _\bm_\ba_\bt)\n+118 {\n+119 zPrint_CompCol_Matrix(name, _\bm_\ba_\bt);\n+120 }\n+121 };\n+122#endif\n+123\n+124 template\n+_\b1_\b2_\b5 struct _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n+126 {\n+_\b1_\b2_\b7 static const Dtype_t _\bt_\by_\bp_\be;\n+128 };\n+129\n+130 template\n+_\b1_\b3_\b1 struct _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n+132 {};\n+133\n+134 template\n+135 const Dtype_t _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bT_\b>_\b:_\b:_\bt_\by_\bp_\be =\n+136 std::is_same::value ? SLU_S :\n+137 ( std::is_same >::value ? SLU_Z :\n+138 ( std::is_same >::value ? SLU_C : SLU_D ));\n+139\n+140 template<>\n+_\b1_\b4_\b1 struct _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n+142 : public _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n+143 {\n+_\b1_\b4_\b4 typedef double _\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be;\n+145 };\n+146\n+147 template<>\n+_\b1_\b4_\b8 struct _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n+149 : public _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n+150 {\n+_\b1_\b5_\b1 typedef float _\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be;\n+152 };\n+153\n+154 template<>\n+_\b1_\b5_\b5 struct _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be<_\bs_\bt_\bd::complex >\n+156 : public _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be >\n+157 {\n+_\b1_\b5_\b8 typedef double _\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be;\n+159 };\n+160\n+161 template<>\n+_\b1_\b6_\b2 struct _\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be<_\bs_\bt_\bd::complex >\n+163 : public _\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be >\n+164 {\n+_\b1_\b6_\b5 typedef float _\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be;\n+166\n+167 };\n+168\n 173 template\n-_\b1_\b7_\b4 struct _\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br;\n-175\n-176 template\n-_\b1_\b7_\b7 struct _\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n-178 {\n-_\b1_\b7_\b9 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os)\n-180 {\n-181 os<<\"%%MatrixMarket matrix coordinate \";\n-182 os<::\n-field_type>>::str()<<\" general\"<\n-_\b1_\b8_\b7 struct _\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br >\n-188 {\n-_\b1_\b8_\b9 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os)\n-190 {\n-191 os<<\"%%MatrixMarket matrix array \";\n-192 os<::\n-field_type>>::str()<<\" general\"<\n-_\b1_\b9_\b7 struct _\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br >\n-198 {\n-_\b1_\b9_\b9 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os)\n-200 {\n-201 os<<\"%%MatrixMarket matrix array \";\n-202 os<::str()<<\" general\"<\n+_\b1_\b7_\b8 struct _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+179 {};\n+180\n+181 template\n+182 class _\bS_\bu_\bp_\be_\br_\bL_\bU;\n+183\n+184 template\n+185 class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz;\n+186\n+187 template\n+188 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br;\n+189\n+193 template\n+_\b1_\b9_\b4 class _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n+195 : public ISTL::Impl::BCCSMatrix::field_type, int>\n+196 {\n+197 template\n+_\b1_\b9_\b8 friend class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz;\n+199 friend struct _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >;\n+200 public:\n+_\b2_\b0_\b2 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n+203\n+204 friend struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bS_\bu_\bp_\be_\br_\bL_\bU<_\bM_\ba_\bt_\br_\bi_\bx>, true>;\n 205\n-206 template\n-_\b2_\b0_\b7 struct _\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx >\n-208 {\n-_\b2_\b0_\b9 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os)\n-210 {\n-211 os<<\"%%MatrixMarket matrix array \";\n-212 os<::str()<<\" general\"<\n-_\b2_\b2_\b5 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br;\n-226\n-227 template\n-_\b2_\b2_\b8 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br >\n-229 {\n-_\b2_\b3_\b0 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> _\bM;\n-231 static_assert(IsNumber::value, \"Only scalar entries are expected\n-here!\");\n-232\n-_\b2_\b3_\b3 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM&)\n-234 {\n-235 os<<\"% ISTL_STRUCT blocked \";\n-236 os<<\"1 1\"<\n-_\b2_\b4_\b1 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br<_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br,A> >\n-242 {\n-_\b2_\b4_\b3 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bi_\b>,A> _\bM;\n-244\n-_\b2_\b4_\b5 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM&)\n-246 {\n-247 os<<\"% ISTL_STRUCT blocked \";\n-248 os<\n-_\b2_\b5_\b3 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n-254 {\n-_\b2_\b5_\b5 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b> _\bM;\n-256 static_assert(IsNumber::value, \"Only scalar entries are expected\n-here!\");\n-257\n-_\b2_\b5_\b8 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM&)\n-259 {\n-260 os<<\"% ISTL_STRUCT blocked \";\n-261 os<<\"1 1\"<\n-_\b2_\b6_\b6 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A> >\n-267 {\n-_\b2_\b6_\b8 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bi_\b,_\bj_\b>,A> _\bM;\n-269\n-_\b2_\b7_\b0 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM&)\n-271 {\n-272 os<<\"% ISTL_STRUCT blocked \";\n-273 os<\n-_\b2_\b7_\b9 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx >\n-280 {\n-_\b2_\b8_\b1 typedef _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bi_\b,_\bj_\b> _\bM;\n-282\n-_\b2_\b8_\b3 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM& m)\n-284 {}\n-285 };\n-286\n-287 template\n-_\b2_\b8_\b8 struct _\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br >\n-289 {\n-_\b2_\b9_\b0 typedef FieldVector _\bM;\n+_\b2_\b0_\b6 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+207\n+_\b2_\b1_\b2 explicit _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt) : ISTL::Impl::\n+BCCSMatrix<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx, int>(_\bm_\ba_\bt)\n+213 {}\n+214\n+_\b2_\b1_\b5 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx() : ISTL::Impl::BCCSMatrix::\n+field_type, int>()\n+216 {}\n+217\n+_\b2_\b1_\b9 virtual _\b~_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx()\n+220 {\n+221 if (this->N_+this->M_*this->Nnz_ != 0)\n+222 free();\n+223 }\n+224\n+_\b2_\b2_\b6 operator SuperMatrix&()\n+227 {\n+228 return A;\n+229 }\n+230\n+_\b2_\b3_\b2 operator const SuperMatrix&() const\n+233 {\n+234 return A;\n+235 }\n+236\n+_\b2_\b3_\b7 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b> >& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>& _\bm_\ba_\bt)\n+238 {\n+239 if (this->N_ + this->M_ + this->Nnz_!=0)\n+240 free();\n+241\n+242 using _\bM_\ba_\bt_\br_\bi_\bx = _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>;\n+243 this->N_ = _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(_\bm_\ba_\bt);\n+244 this->M_ = _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(_\bm_\ba_\bt);\n+245 ISTL::Impl::BCCSMatrixInitializer initializer(*this);\n+246\n+247 copyToBCCSMatrix(initializer, _\bm_\ba_\bt);\n+248\n+249 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>\n+250_\b _\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&A, this->N_, this->M_, this->colstart[this->N_],\n+251 this->values,this->rowindex, this->colstart, SLU_NC,\n+252 static_cast(_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bt_\by_\bp_\be),\n+SLU_GE);\n+253 return *this;\n+254 }\n+255\n+_\b2_\b5_\b6 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b> >& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(const _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n+<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b> >& _\bm_\ba_\bt)\n+257 {\n+258 if (this->N_ + this->M_ + this->Nnz_!=0)\n+259 free();\n+260\n+261 using _\bM_\ba_\bt_\br_\bi_\bx = _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>;\n+262 this->N_ = _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(_\bm_\ba_\bt);\n+263 this->M_ = _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(_\bm_\ba_\bt);\n+264 ISTL::Impl::BCCSMatrixInitializer initializer(*this);\n+265\n+266 copyToBCCSMatrix(initializer, _\bm_\ba_\bt);\n+267\n+268 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bB_\b>\n+269_\b _\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&A, this->N_, this->M_, this->colstart[this->N_],\n+270 this->values,this->rowindex, this->colstart, SLU_NC,\n+271 static_cast(_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bB_\b>_\b:_\b:_\bt_\by_\bp_\be), SLU_GE);\n+272 return *this;\n+273 }\n+274\n+_\b2_\b8_\b1 virtual void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt, const std::set& mrs)\n+282 {\n+283 if(this->N_+this->M_+this->Nnz_!=0)\n+284 free();\n+285 this->N_=mrs.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(*\n+(_\bm_\ba_\bt[0].begin()));\n+286 this->M_=mrs.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(*\n+(_\bm_\ba_\bt[0].begin()));\n+287 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> initializer(*this);\n+288\n+289 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<_\bM_\ba_\bt_\br_\bi_\bx,std::\n+set >(_\bm_\ba_\bt,mrs));\n+290 }\n 291\n-_\b2_\b9_\b2 static void _\bp_\br_\bi_\bn_\bt(std::ostream& os, const _\bM& m)\n-293 {}\n-294 };\n-295\n-_\b2_\b9_\b6 enum _\bL_\bi_\bn_\be_\bT_\by_\bp_\be { _\bM_\bM_\b__\bH_\bE_\bA_\bD_\bE_\bR, _\bM_\bM_\b__\bI_\bS_\bT_\bL_\bS_\bT_\bR_\bU_\bC_\bT, _\bD_\bA_\bT_\bA };\n-_\b2_\b9_\b7 enum { _\bM_\bM_\b__\bM_\bA_\bX_\b__\bL_\bI_\bN_\bE_\b__\bL_\bE_\bN_\bG_\bT_\bH=1025 };\n+_\b2_\b9_\b3 virtual void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt)\n+294 {\n+295 this->N_=_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(_\bm_\ba_\bt);\n+296 this->M_=_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(_\bm_\ba_\bt);\n+297 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> initializer(*this);\n 298\n-_\b2_\b9_\b9 enum _\bM_\bM_\b__\bT_\bY_\bP_\bE { _\bc_\bo_\bo_\br_\bd_\bi_\bn_\ba_\bt_\be_\b__\bt_\by_\bp_\be, _\ba_\br_\br_\ba_\by_\b__\bt_\by_\bp_\be, _\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bt_\by_\bp_\be };\n-300\n-_\b3_\b0_\b1 enum _\bM_\bM_\b__\bC_\bT_\bY_\bP_\bE { _\bi_\bn_\bt_\be_\bg_\be_\br_\b__\bt_\by_\bp_\be, _\bd_\bo_\bu_\bb_\bl_\be_\b__\bt_\by_\bp_\be, _\bc_\bo_\bm_\bp_\bl_\be_\bx_\b__\bt_\by_\bp_\be, _\bp_\ba_\bt_\bt_\be_\br_\bn,\n-_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bc_\bt_\by_\bp_\be };\n-302\n-_\b3_\b0_\b3 enum _\bM_\bM_\b__\bS_\bT_\bR_\bU_\bC_\bT_\bU_\bR_\bE { _\bg_\be_\bn_\be_\br_\ba_\bl, _\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc, _\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc, _\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn,\n-_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be };\n-304\n-_\b3_\b0_\b5 struct _\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n-306 {\n-_\b3_\b0_\b7 _\bM_\bM_\bH_\be_\ba_\bd_\be_\br()\n-308 : _\bt_\by_\bp_\be(_\bc_\bo_\bo_\br_\bd_\bi_\bn_\ba_\bt_\be_\b__\bt_\by_\bp_\be), _\bc_\bt_\by_\bp_\be(_\bd_\bo_\bu_\bb_\bl_\be_\b__\bt_\by_\bp_\be), _\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be(_\bg_\be_\bn_\be_\br_\ba_\bl)\n-309 {}\n-_\b3_\b1_\b0 _\bM_\bM_\b__\bT_\bY_\bP_\bE _\bt_\by_\bp_\be;\n-_\b3_\b1_\b1 _\bM_\bM_\b__\bC_\bT_\bY_\bP_\bE _\bc_\bt_\by_\bp_\be;\n-_\b3_\b1_\b2 _\bM_\bM_\b__\bS_\bT_\bR_\bU_\bC_\bT_\bU_\bR_\bE _\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be;\n-313 };\n-314\n-_\b3_\b1_\b5 inline bool _\bl_\bi_\bn_\be_\bF_\be_\be_\bd(std::istream& file)\n-316 {\n-317 char c;\n-318 if(!file.eof())\n-319 c=file.peek();\n-320 else\n-321 return false;\n-322 // ignore whitespace\n-323 while(c==' ')\n-324 {\n-325 file.get();\n-326 if(file.eof())\n-327 return false;\n-328 c=file.peek();\n-329 }\n-330\n-331 if(c=='\\n') {\n-332 /* eat the line feed */\n-333 file.get();\n-334 return true;\n-335 }\n-336 return false;\n-337 }\n-338\n-_\b3_\b3_\b9 inline void _\bs_\bk_\bi_\bp_\bC_\bo_\bm_\bm_\be_\bn_\bt_\bs(std::istream& file)\n-340 {\n-341 _\bl_\bi_\bn_\be_\bF_\be_\be_\bd(file);\n-342 char c=file.peek();\n-343 // ignore comment lines\n-344 while(c=='%')\n-345 {\n-346 /* discard the rest of the line */\n-347 file.ignore(std::numeric_limits::max(),'\\n');\n-348 c=file.peek();\n-349 }\n-350 }\n-351\n-352\n-_\b3_\b5_\b3 inline bool _\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bB_\ba_\bn_\bn_\be_\br(std::istream& file, _\bM_\bM_\bH_\be_\ba_\bd_\be_\br& mmHeader)\n-354 {\n-355 std::string buffer;\n-356 char c;\n-357 file >> buffer;\n-358 c=buffer[0];\n-359 mmHeader=_\bM_\bM_\bH_\be_\ba_\bd_\be_\br();\n-360 if(c!='%')\n-361 return false;\n-362 dverb<::max(),'\\n');\n-367 return false;\n-368 }\n-369\n-370 if(_\bl_\bi_\bn_\be_\bF_\be_\be_\bd(file))\n-371 /* premature end of line */\n-372 return false;\n-373\n-374 /* read the matrix_type */\n-375 file >> buffer;\n-376\n-377 if(buffer != \"matrix\")\n-378 {\n-379 /* discard the rest of the line */\n-380 file.ignore(std::numeric_limits::max(),'\\n');\n-381 return false;\n-382 }\n-383\n-384 if(_\bl_\bi_\bn_\be_\bF_\be_\be_\bd(file))\n-385 /* premature end of line */\n-386 return false;\n-387\n-388 /* The type of the matrix */\n-389 file >> buffer;\n-390\n-391 if(buffer.empty())\n-392 return false;\n-393\n-394 std::transform(buffer.begin(), buffer.end(), buffer.begin(),\n-395 ::tolower);\n-396\n-397 switch(buffer[0])\n-398 {\n-399 case 'a' :\n-400 /* sanity check */\n-401 if(buffer != \"array\")\n-402 {\n-403 file.ignore(std::numeric_limits::max(),'\\n');\n-404 return false;\n-405 }\n-406 mmHeader._\bt_\by_\bp_\be=_\ba_\br_\br_\ba_\by_\b__\bt_\by_\bp_\be;\n-407 break;\n-408 case 'c' :\n-409 /* sanity check */\n-410 if(buffer != \"coordinate\")\n-411 {\n-412 file.ignore(std::numeric_limits::max(),'\\n');\n-413 return false;\n-414 }\n-415 mmHeader._\bt_\by_\bp_\be=_\bc_\bo_\bo_\br_\bd_\bi_\bn_\ba_\bt_\be_\b__\bt_\by_\bp_\be;\n-416 break;\n-417 default :\n-418 file.ignore(std::numeric_limits::max(),'\\n');\n-419 return false;\n-420 }\n-421\n-422 if(_\bl_\bi_\bn_\be_\bF_\be_\be_\bd(file))\n-423 /* premature end of line */\n-424 return false;\n-425\n-426 /* The numeric type used. */\n-427 file >> buffer;\n-428\n-429 if(buffer.empty())\n-430 return false;\n-431\n-432 std::transform(buffer.begin(), buffer.end(), buffer.begin(),\n-433 ::tolower);\n-434 switch(buffer[0])\n-435 {\n-436 case 'i' :\n-437 /* sanity check */\n-438 if(buffer != \"integer\")\n-439 {\n-440 file.ignore(std::numeric_limits::max(),'\\n');\n-441 return false;\n-442 }\n-443 mmHeader._\bc_\bt_\by_\bp_\be=_\bi_\bn_\bt_\be_\bg_\be_\br_\b__\bt_\by_\bp_\be;\n-444 break;\n-445 case 'r' :\n-446 /* sanity check */\n-447 if(buffer != \"real\")\n-448 {\n-449 file.ignore(std::numeric_limits::max(),'\\n');\n-450 return false;\n-451 }\n-452 mmHeader._\bc_\bt_\by_\bp_\be=_\bd_\bo_\bu_\bb_\bl_\be_\b__\bt_\by_\bp_\be;\n-453 break;\n-454 case 'c' :\n-455 /* sanity check */\n-456 if(buffer != \"complex\")\n-457 {\n-458 file.ignore(std::numeric_limits::max(),'\\n');\n-459 return false;\n-460 }\n-461 mmHeader._\bc_\bt_\by_\bp_\be=_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b__\bt_\by_\bp_\be;\n-462 break;\n-463 case 'p' :\n-464 /* sanity check */\n-465 if(buffer != \"pattern\")\n-466 {\n-467 file.ignore(std::numeric_limits::max(),'\\n');\n-468 return false;\n-469 }\n-470 mmHeader._\bc_\bt_\by_\bp_\be=_\bp_\ba_\bt_\bt_\be_\br_\bn;\n-471 break;\n-472 default :\n-473 file.ignore(std::numeric_limits::max(),'\\n');\n-474 return false;\n-475 }\n-476\n-477 if(_\bl_\bi_\bn_\be_\bF_\be_\be_\bd(file))\n-478 return false;\n-479\n-480 file >> buffer;\n-481\n-482 std::transform(buffer.begin(), buffer.end(), buffer.begin(),\n-483 ::tolower);\n-484 switch(buffer[0])\n-485 {\n-486 case 'g' :\n-487 /* sanity check */\n-488 if(buffer != \"general\")\n-489 {\n-490 file.ignore(std::numeric_limits::max(),'\\n');\n-491 return false;\n-492 }\n-493 mmHeader._\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be=_\bg_\be_\bn_\be_\br_\ba_\bl;\n-494 break;\n-495 case 'h' :\n-496 /* sanity check */\n-497 if(buffer != \"hermitian\")\n-498 {\n-499 file.ignore(std::numeric_limits::max(),'\\n');\n-500 return false;\n-501 }\n-502 mmHeader._\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be=_\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn;\n-503 break;\n-504 case 's' :\n-505 if(buffer.size()==1) {\n-506 file.ignore(std::numeric_limits::max(),'\\n');\n-507 return false;\n-508 }\n-509\n-510 switch(buffer[1])\n-511 {\n-512 case 'y' :\n-513 /* sanity check */\n-514 if(buffer != \"symmetric\")\n-515 {\n-516 file.ignore(std::numeric_limits::max(),'\\n');\n-517 return false;\n-518 }\n-519 mmHeader._\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be=_\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc;\n-520 break;\n-521 case 'k' :\n-522 /* sanity check */\n-523 if(buffer != \"skew-symmetric\")\n-524 {\n-525 file.ignore(std::numeric_limits::max(),'\\n');\n-526 return false;\n-527 }\n-528 mmHeader._\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be=_\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc;\n-529 break;\n-530 default :\n-531 file.ignore(std::numeric_limits::max(),'\\n');\n-532 return false;\n-533 }\n-534 break;\n-535 default :\n-536 file.ignore(std::numeric_limits::max(),'\\n');\n-537 return false;\n-538 }\n-539 file.ignore(std::numeric_limits::max(),'\\n');\n-540 c=file.peek();\n-541 return true;\n-542\n-543 }\n-544\n-545 template\n-546 std::tuple\n-_\b5_\b4_\b7 _\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bN_\bN_\bZ(std::size_t rows, std::size_t cols, std::size_t entries, const\n-_\bM_\bM_\bH_\be_\ba_\bd_\be_\br& header)\n-548 {\n-549 std::size_t blockrows=rows/brows;\n-550 std::size_t blockcols=cols/bcols;\n-551 std::size_t blocksize=brows*bcols;\n-552 std::size_t blockentries=0;\n-553\n-554 switch(header._\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be)\n-555 {\n-556 case _\bg_\be_\bn_\be_\br_\ba_\bl :\n-557 blockentries = entries/blocksize; break;\n-558 case _\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc :\n-559 blockentries = 2*entries/blocksize; break;\n-560 case _\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc :\n-561 blockentries = (2*entries-rows)/blocksize; break;\n-562 case _\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn :\n-563 blockentries = (2*entries-rows)/blocksize; break;\n-564 default :\n-565 throw Dune::NotImplemented();\n-566 }\n-567 return std::make_tuple(blockrows, blockcols, blockentries);\n-568 }\n-569\n-570 /*\n-571 * @brief Storage class for the column index and the numeric value.\n-572 *\n-573 * \\tparam T Either a NumericWrapper of the numeric type or PatternDummy\n-574 * for MatrixMarket pattern case.\n-575 */\n-576 template\n-_\b5_\b7_\b7 struct _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba : public T\n-578 {\n-_\b5_\b7_\b9 std::size_t _\bi_\bn_\bd_\be_\bx = {};\n-580 };\n-581\n-582\n-593 template\n-_\b5_\b9_\b4 struct _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br\n-595 {\n-_\b5_\b9_\b6 T _\bn_\bu_\bm_\bb_\be_\br = {};\n-_\b5_\b9_\b7 operator T&()\n-598 {\n-599 return _\bn_\bu_\bm_\bb_\be_\br;\n-600 }\n-601 };\n-602\n-_\b6_\b0_\b6 struct _\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by\n-607 {};\n-608\n-609 template<>\n-_\b6_\b1_\b0 struct _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br<_\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by>\n-611 {};\n-612\n-613 template\n-_\b6_\b1_\b4 std::istream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>(std::istream& is, _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b<_\bT_\b>& num)\n-615 {\n-616 return is>>num._\bn_\bu_\bm_\bb_\be_\br;\n-617 }\n-618\n-_\b6_\b1_\b9 inline std::istream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>(std::istream& is, [[maybe_unused]]\n-_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b<_\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by_\b>& num)\n-620 {\n-621 return is;\n-622 }\n-623\n-629 template\n-_\b6_\b3_\b0 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<(const _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bT_\b>& i1, const _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bT_\b>& i2)\n-631 {\n-632 return i1._\bi_\bn_\bd_\be_\bx\n-_\b6_\b4_\b1 std::istream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>(std::istream& is, _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bT_\b>& data)\n-642 {\n-643 is>>data._\bi_\bn_\bd_\be_\bx;\n-644 /* MatrixMarket indices are one based. Decrement for C++ */\n-645 --data._\bi_\bn_\bd_\be_\bx;\n-646 return is>>data.number;\n-647 }\n-648\n-654 template\n-_\b6_\b5_\b5 std::istream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>(std::istream& is, _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba<_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br>>& data)\n-656 {\n-657 is>>data._\bi_\bn_\bd_\be_\bx;\n-658 /* MatrixMarket indices are one based. Decrement for C++ */\n-659 --data.index;\n-660 // real and imaginary part needs to be read separately as\n-661 // complex numbers are not provided in pair form. (x,y)\n-662 _\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b<_\bT_\b> real, imag;\n-663 is>>real;\n-664 is>>imag;\n-665 data._\bn_\bu_\bm_\bb_\be_\br = {real._\bn_\bu_\bm_\bb_\be_\br, imag._\bn_\bu_\bm_\bb_\be_\br};\n-666 return is;\n-667 }\n-668\n-675 template\n-_\b6_\b7_\b6 struct _\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br\n-677 {\n-683 template\n-_\b6_\b8_\b4 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const std::vector > >& rows,\n-685 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& matrix)\n-686 {\n-687 static_assert(IsNumber::value && brows==1 && bcols==1, \"Only scalar\n-entries are expected here!\");\n-688 for (auto iter=matrix._\bb_\be_\bg_\bi_\bn(); iter!= matrix._\be_\bn_\bd(); ++iter)\n-689 {\n-690 auto brow=iter.index();\n-691 for (auto siter=rows[brow].begin(); siter != rows[brow].end(); ++siter)\n-692 (*iter)[siter->index] = siter->number;\n-693 }\n-694 }\n-695\n-701 template\n-_\b7_\b0_\b2 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const std::vector > >& rows,\n-703 _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bb_\br_\bo_\bw_\bs_\b,_\bb_\bc_\bo_\bl_\bs_\b> >& matrix)\n-704 {\n-705 for (auto iter=matrix.begin(); iter!= matrix.end(); ++iter)\n-706 {\n-707 for (auto brow=iter.index()*brows,\n-708 browend=iter.index()*brows+brows;\n-709 browindex/bcols][brow%brows][siter->index%bcols]=siter->number;\n-714 }\n-715 }\n-716 }\n-717 };\n-718\n-719 template\n-_\b7_\b2_\b0 struct _\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br<_\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by,brows,bcols>\n-721 {\n-722 template\n-_\b7_\b2_\b3 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const std::vector > >&\n-rows,\n-724 M& matrix)\n-725 {}\n-726 };\n-727\n-_\b7_\b2_\b8 template struct _\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx : std::false_type {};\n-_\b7_\b2_\b9 template struct _\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx<_\bs_\bt_\bd::complex> : std::true_type {};\n-730\n-731 // wrapper for std::conj. Returns T if T is not complex.\n-732 template\n-_\b7_\b3_\b3 std::enable_if_t::value, T> _\bc_\bo_\bn_\bj(const T& r){\n-734 return r;\n-735 }\n-736\n-737 template\n-_\b7_\b3_\b8 std::enable_if_t::value, T> _\bc_\bo_\bn_\bj(const T& r){\n-739 return std::conj(r);\n-740 }\n-741\n-742 template\n-_\b7_\b4_\b3 struct _\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs\n-744 {};\n-745\n-746 template\n-_\b7_\b4_\b7 struct _\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n-748 {\n-749 enum {\n-_\b7_\b5_\b0 rows = 1,\n-751 cols = 1\n-_\b7_\b5_\b2 };\n-753 };\n-754\n-755 template\n-_\b7_\b5_\b6 struct _\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A> >\n-757 {\n-758 enum {\n-_\b7_\b5_\b9 rows = i,\n-760 cols = j\n-_\b7_\b6_\b1 };\n-762 };\n-763\n-764 template\n-_\b7_\b6_\b5 void _\br_\be_\ba_\bd_\bS_\bp_\ba_\br_\bs_\be_\bE_\bn_\bt_\br_\bi_\be_\bs(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>& matrix,\n-766 std::istream& file, std::size_t entries,\n-767 const _\bM_\bM_\bH_\be_\ba_\bd_\be_\br& mmHeader, const D&)\n-768 {\n-769 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n-770\n-771 // Number of rows and columns of T, if it is a matrix (1x1 otherwise)\n-772 constexpr int brows = _\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bs;\n-773 constexpr int bcols = _\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bs;\n-774\n-775 // First path\n-776 // store entries together with column index in a separate\n-777 // data structure\n-778 std::vector > > rows(matrix._\bN()*brows);\n-779\n-780 auto readloop = [&] (auto symmetryFixup) {\n-781 for(std::size_t i = 0; i < entries; ++i) {\n-782 std::size_t row;\n-783 _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bD_\b> data;\n-784 _\bs_\bk_\bi_\bp_\bC_\bo_\bm_\bm_\be_\bn_\bt_\bs(file);\n-785 file>>row;\n-786 --row; // Index was 1 based.\n-787 assert(row/bcols>data;\n-789 assert(data._\bi_\bn_\bd_\be_\bx/bcols data_sym(data);\n-804 data_sym._\bi_\bn_\bd_\be_\bx = row;\n-805 rows[data.index].insert(data_sym);\n-806 });\n-807 break;\n-808 case _\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc :\n-809 readloop([&](auto row, auto data) {\n-810 _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bD_\b> data_sym;\n-811 data_sym.number = -data.number;\n-812 data_sym._\bi_\bn_\bd_\be_\bx = row;\n-813 rows[data.index].insert(data_sym);\n-814 });\n-815 break;\n-816 case _\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn :\n-817 readloop([&](auto row, auto data) {\n-818 _\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b<_\bD_\b> data_sym;\n-819 data_sym.number = _\bc_\bo_\bn_\bj(data.number);\n-820 data_sym._\bi_\bn_\bd_\be_\bx = row;\n-821 rows[data.index].insert(data_sym);\n-822 });\n-823 break;\n-824 default:\n-825 DUNE_THROW(Dune::NotImplemented,\n-826 \"Only general, symmetric, skew-symmetric and hermitian is supported right\n-now!\");\n-827 }\n-828\n-829 // Setup the matrix sparsity pattern\n-830 int nnz=0;\n-831 for(typename Matrix::CreateIterator iter=matrix._\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn();\n-832 iter!= matrix._\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd(); ++iter)\n-833 {\n-834 for(std::size_t brow=iter.index()*brows, browend=iter.index()*brows+brows;\n-835 brow >::const_iterator Siter;\n-838 for(Siter siter=rows[brow].begin(), send=rows[brow].end();\n-839 siter != send; ++siter, ++nnz)\n-840 iter.insert(siter->index/bcols);\n-841 }\n-842 }\n-843\n-844 //Set the matrix values\n-845 matrix=0;\n-846\n-847 _\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b<_\bD_\b,_\bb_\br_\bo_\bw_\bs_\b,_\bb_\bc_\bo_\bl_\bs_\b> Setter;\n-848\n-849 Setter(rows, matrix);\n-850 }\n-851\n-_\b8_\b5_\b2 inline std::tuple _\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be(const std::\n-string& filename) {\n-853 std::size_t lastdot = filename.find_last_of(\".\");\n-854 if(lastdot == std::string::npos)\n-855 return std::make_tuple(filename, \"\");\n-856 else {\n-857 std::string potentialFileExtension = filename.substr(lastdot);\n-858 if (potentialFileExtension == \".mm\" || potentialFileExtension == \".mtx\")\n-859 return std::make_tuple(filename.substr(0, lastdot),\n-potentialFileExtension);\n-860 else\n-861 return std::make_tuple(filename, \"\");\n-862 }\n-863 }\n-864\n-865 } // end namespace MatrixMarketImpl\n-866\n-_\b8_\b6_\b7 class _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br : public Dune::Exception\n-868 {};\n-869\n-870\n-_\b8_\b7_\b1 inline void _\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bh_\be_\ba_\bd_\be_\br(std::size_t& rows, std::size_t& cols,\n-872 _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br& header, std::istream& istr,\n-873 bool isVector)\n-874 {\n-875 using namespace MatrixMarketImpl;\n-876\n-877 if(!readMatrixMarketBanner(istr, header)) {\n-878 std::cerr << \"First line was not a correct Matrix Market banner. Using\n-default:\\n\"\n-879 << \"%%MatrixMarket matrix coordinate real general\"<> rows;\n-893\n-894 if(lineFeed(istr))\n-895 throw _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br();\n-896 istr >> cols;\n-897 }\n-898\n-899 template\n-_\b9_\b0_\b0 void _\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& vector,\n-901 std::size_t size,\n-902 std::istream& istr,\n-903 size_t lane)\n-904 {\n-905 for (int i=0; size>0; ++i, --size)\n-906 istr>>Simd::lane(lane,vector[i]);\n-907 }\n-908\n-909 template\n-_\b9_\b1_\b0 void _\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br,A>& vector,\n-911 std::size_t size,\n-912 std::istream& istr,\n-913 size_t lane)\n-914 {\n-915 for(int i=0; size>0; ++i, --size) {\n-916 Simd::Scalar val;\n-917 istr>>val;\n-918 Simd::lane(lane, vector[i/entries][i%entries])=val;\n-919 }\n-920 }\n-921\n-922\n-929 template\n-_\b9_\b3_\b0 void _\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& vector,\n-931 std::istream& istr)\n-932 {\n-933 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be field_type;\n-934 using namespace MatrixMarketImpl;\n-935\n-936 MMHeader header;\n-937 std::size_t rows, cols;\n-938 _\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bh_\be_\ba_\bd_\be_\br(rows,cols,header,istr, true);\n-939 if(cols!=Simd::lanes()) {\n-940 if(Simd::lanes() == 1)\n-941 DUNE_THROW(_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br, \"cols!=1, therefore this is no\n-vector!\");\n-942 else\n-943 DUNE_THROW(_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br, \"cols does not match the number of\n-lanes in the field_type!\");\n-944 }\n-945\n-946 if(header.type!=array_type)\n-947 DUNE_THROW(_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br, \"Vectors have to be stored in array\n-format!\");\n-948\n-949\n-950 if constexpr (Dune::IsNumber())\n-951 vector._\br_\be_\bs_\bi_\bz_\be(rows);\n-952 else\n-953 {\n-954 T dummy;\n-955 auto blocksize = dummy.size();\n-956 std::size_t size=rows/blocksize;\n-957 if(size*blocksize!=rows)\n-958 DUNE_THROW(_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br, \"Block size of vector is not\n-correct!\");\n-959\n-960 vector._\br_\be_\bs_\bi_\bz_\be(size);\n-961 }\n-962\n-963 istr.ignore(std::numeric_limits::max(),'\\n');\n-964 for(size_t l=0;l();++l){\n-965 _\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs(vector, rows, istr, l);\n-966 }\n-967 }\n-968\n-975 template\n-_\b9_\b7_\b6 void _\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>& matrix,\n-977 std::istream& istr)\n-978 {\n-979 using namespace MatrixMarketImpl;\n-980 using _\bM_\ba_\bt_\br_\bi_\bx = _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>;\n-981\n-982 MMHeader header;\n-983 if(!readMatrixMarketBanner(istr, header)) {\n-984 std::cerr << \"First line was not a correct Matrix Market banner. Using\n-default:\\n\"\n-985 << \"%%MatrixMarket matrix coordinate real general\"<> rows;\n-998\n-999 if(lineFeed(istr))\n-1000 throw _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br();\n-1001 istr >> cols;\n-1002\n-1003 if(lineFeed(istr))\n-1004 throw _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br();\n-1005\n-1006 istr >>entries;\n-1007\n-1008 std::size_t nnz, blockrows, blockcols;\n-1009\n-1010 // Number of rows and columns of T, if it is a matrix (1x1 otherwise)\n-1011 constexpr int brows = mm_multipliers::rows;\n-1012 constexpr int bcols = mm_multipliers::cols;\n-1013\n-1014 std::tie(blockrows, blockcols, nnz) = calculateNNZ(rows,\n-cols, entries, header);\n-1015\n-1016 istr.ignore(std::numeric_limits::max(),'\\n');\n-1017\n-1018\n-1019 matrix._\bs_\be_\bt_\bS_\bi_\bz_\be(blockrows, blockcols, nnz);\n-1020 matrix._\bs_\be_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\br_\bo_\bw_\b__\bw_\bi_\bs_\be);\n-1021\n-1022 if(header.type==array_type)\n-1023 DUNE_THROW(Dune::NotImplemented, \"Array format currently not supported for\n-matrices!\");\n-1024\n-1025 readSparseEntries(matrix, istr, entries, header, NumericWrapper());\n-1026 }\n-1027\n-1028 // Print a scalar entry\n-1029 template\n-_\b1_\b0_\b3_\b0 void _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\be_\bn_\bt_\br_\by(const B& entry,\n-1031 std::size_t rowidx,\n-1032 std::size_t colidx,\n-1033 std::ostream& ostr)\n-1034 {\n-1035 if constexpr (IsNumber())\n-1036 ostr << rowidx << \" \" << colidx << \" \" << entry << std::endl;\n-1037 else\n-1038 {\n-1039 for (auto row=entry.begin(); row != entry.end(); ++row, ++rowidx) {\n-1040 int coli=colidx;\n-1041 for (auto _\bc_\bo_\bl = row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl, ++coli)\n-1042 ostr<< rowidx<<\" \"<\n-_\b1_\b0_\b4_\b9 void _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by(const V& entry, std::ostream& ostr,\n-1050 const std::integral_constant&,\n-1051 size_t lane)\n-1052 {\n-1053 ostr<\n-_\b1_\b0_\b5_\b8 void _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by(const V& vector, std::ostream& ostr,\n-1059 const std::integral_constant&,\n-1060 size_t lane)\n-1061 {\n-1062 using namespace MatrixMarketImpl;\n-1063\n-1064 // Is the entry a supported numeric type?\n-1065 const int isnumeric = mm_numeric_type>::is_numeric;\n-1066 typedef typename V::const_iterator VIter;\n-1067\n-1068 for(VIter i=vector.begin(); i != vector.end(); ++i)\n-1069\n-1070 _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by(*i, ostr,\n-1071 std::integral_constant(),\n-1072 lane);\n-1073 }\n-1074\n-1075 template\n-_\b1_\b0_\b7_\b6 std::size_t _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& vector)\n-1077 {\n-1078 return vector.size();\n-1079 }\n-1080\n-1081 template\n-_\b1_\b0_\b8_\b2 std::size_t _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br,A>& vector)\n-1083 {\n-1084 return vector.size()*i;\n-1085 }\n-1086\n-1087 // Version for writing vectors.\n-1088 template\n-_\b1_\b0_\b8_\b9 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(const V& vector, std::ostream& ostr,\n-1090 const std::integral_constant&)\n-1091 {\n-1092 using namespace MatrixMarketImpl;\n-1093 typedef typename V::field_type field_type;\n-1094\n-1095 ostr<<_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(vector)<<\" \"<()<>::is_numeric;\n-1097 for(size_t l=0;l(); ++l){\n-1098 _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by(vector,ostr, std::integral_constant\n-(), l);\n-1099 }\n-1100 }\n-1101\n-1102 // Versions for writing matrices\n-1103 template\n-_\b1_\b1_\b0_\b4 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(const M& matrix,\n-1105 std::ostream& ostr,\n-1106 const std::integral_constant&)\n-1107 {\n-1108 ostr<_\b:_\b:_\br_\bo_\bw_\bs<<\" \"\n-1109 <_\b:_\b:_\bc_\bo_\bl_\bs<<\" \"\n-1110 <<_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(matrix)<begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl)\n-1116 // Matrix Market indexing start with 1!\n-1117 _\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\be_\bn_\bt_\br_\by(*_\bc_\bo_\bl, row.index()*_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\bM_\b>_\b:_\b:\n-_\br_\bo_\bw_\bs+1,\n-1118 _\bc_\bo_\bl.index()*_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs_\b<_\bM_\b>_\b:_\b:_\bc_\bo_\bl_\bs+1, ostr);\n-1119 }\n-1120\n-1121\n-1125 template\n-_\b1_\b1_\b2_\b6 void _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(const M& matrix,\n-1127 std::ostream& ostr)\n-1128 {\n-1129 using namespace MatrixMarketImpl;\n-1130\n-1131 // Write header information\n-1132 mm_header_printer::print(ostr);\n-1133 mm_block_structure_header::print(ostr,matrix);\n-1134 // Choose the correct function for matrix and vector\n-1135 _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(matrix,ostr,std::integral_constant_\b:_\b:\n-_\bv_\ba_\bl_\bu_\be>());\n-1136 }\n-1137\n-_\b1_\b1_\b3_\b8 static const int _\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn = -1;\n-1150 template\n-_\b1_\b1_\b5_\b1 void _\bs_\bt_\bo_\br_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(const M& matrix,\n-1152 std::string filename,\n-1153 int prec=_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn)\n-1154 {\n-1155 auto [pureFilename, extension] = _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n-(filename);\n-1156 std::string rfilename;\n-1157 std::ofstream file;\n-1158 if (extension != \"\") {\n-1159 rfilename = pureFilename + extension;\n-1160 file.open(rfilename.c_str());\n-1161 if(!file)\n-1162 DUNE_THROW(IOError, \"Could not open file for storage: \" << rfilename.c_str\n-());\n-1163 }\n-1164 else {\n-1165 // only try .mm so we do not ignore potential errors\n-1166 rfilename = pureFilename + \".mm\";\n-1167 file.open(rfilename.c_str());\n-1168 if(!file)\n-1169 DUNE_THROW(IOError, \"Could not open file for storage: \" << rfilename.c_str\n-());\n-1170 }\n-1171\n-1172 file.setf(std::ios::scientific,std::ios::floatfield);\n-1173 if(prec>0)\n-1174 file.precision(prec);\n-1175 _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(matrix, file);\n-1176 file.close();\n-1177 }\n-1178\n-1179#if HAVE_MPI\n-1194 template\n-_\b1_\b1_\b9_\b5 void _\bs_\bt_\bo_\br_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(const M& matrix,\n-1196 std::string filename,\n-1197 const _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bG_\b,_\bL_\b>& comm,\n-1198 bool storeIndices=true,\n-1199 int prec=_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn)\n-1200 {\n-1201 // Get our rank\n-1202 int rank = comm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank();\n-1203 // Write the local matrix\n-1204 auto [pureFilename, extension] = _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n-(filename);\n-1205 std::string rfilename;\n-1206 std::ofstream file;\n-1207 if (extension != \"\") {\n-1208 rfilename = pureFilename + \"_\" + std::to_string(rank) + extension;\n-1209 file.open(rfilename.c_str());\n-1210 dverb<< rfilename <0)\n-1224 file.precision(prec);\n-1225 _\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(matrix, file);\n-1226 file.close();\n-1227\n-1228 if(!storeIndices)\n-1229 return;\n-1230\n-1231 // Write the global to local index mapping\n-1232 rfilename = pureFilename + \"_\" + std::to_string(rank) + \".idx\";\n-1233 file.open(rfilename.c_str());\n-1234 if(!file)\n-1235 DUNE_THROW(IOError, \"Could not open file for storage: \" << rfilename.c_str\n-());\n-1236 file.setf(std::ios::scientific,std::ios::floatfield);\n-1237 typedef typename _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bG_\b,_\bL_\b>_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-IndexSet;\n-1238 typedef typename IndexSet::const_iterator Iterator;\n-1239 for(Iterator iter = comm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt().begin();\n-1240 iter != comm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt().end(); ++iter) {\n-1241 file << iter->global()<<\" \"<<(std::size_t)iter->local()<<\" \"\n-1242 <<(int)iter->local().attribute()<<\" \"<<(int)iter->local().isPublic\n-()<& neighbours=comm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().getNeighbours();\n-1247 typedef std::set::const_iterator SIter;\n-1248 for(SIter neighbour=neighbours.begin(); neighbour != neighbours.end();\n-++neighbour) {\n-1249 file<<\" \"<< *neighbour;\n-1250 }\n-1251 file.close();\n-1252 }\n-1253\n-1268 template\n-_\b1_\b2_\b6_\b9 void _\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(M& matrix,\n-1270 const std::string& filename,\n-1271 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bG_\b,_\bL_\b>& comm,\n-1272 bool readIndices=true)\n-1273 {\n-1274 using namespace MatrixMarketImpl;\n-1275\n-1276 using LocalIndexT = typename _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bG_\b,_\bL_\b>_\b:_\b:\n-_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n-1277 typedef typename LocalIndexT::Attribute Attribute;\n-1278 // Get our rank\n-1279 int rank = comm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank();\n-1280 // load local matrix\n-1281 auto [pureFilename, extension] = _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n-(filename);\n-1282 std::string rfilename;\n-1283 std::ifstream file;\n-1284 if (extension != \"\") {\n-1285 rfilename = pureFilename + \"_\" + std::to_string(rank) + extension;\n-1286 file.open(rfilename.c_str(), std::ios::in);\n-1287 dverb<< rfilename <_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-IndexSet;\n-1311 IndexSet& pis=comm.pis;\n-1312 rfilename = pureFilename + \"_\" + std::to_string(rank) + \".idx\";\n-1313 file.open(rfilename.c_str());\n-1314 if(!file)\n-1315 DUNE_THROW(IOError, \"Could not open file: \" << rfilename.c_str());\n-1316 if(pis.size()!=0)\n-1317 DUNE_THROW(InvalidIndexSetState, \"Index set is not empty!\");\n-1318\n-1319 pis.beginResize();\n-1320 while(!file.eof() && file.peek()!='n') {\n-1321 G g;\n-1322 file >>g;\n-1323 std::size_t l;\n-1324 file >>l;\n-1325 int c;\n-1326 file >>c;\n-1327 bool b;\n-1328 file >> b;\n-1329 pis.add(g,LocalIndexT(l,Attribute(c),b));\n-1330 lineFeed(file);\n-1331 }\n-1332 pis.endResize();\n-1333 if(!file.eof()) {\n-1334 // read neighbours\n-1335 std::string s;\n-1336 file>>s;\n-1337 if(s!=\"neighbours:\")\n-1338 DUNE_THROW(_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br, \"was expecting the string:\n-\\\"neighbours:\\\"\");\n-1339 std::set nb;\n-1340 while(!file.eof()) {\n-1341 int i;\n-1342 file >> i;\n-1343 nb.insert(i);\n-1344 }\n-1345 file.close();\n-1346 comm.ri.setNeighbours(nb);\n-1347 }\n-1348 comm.ri.template rebuild();\n-1349 }\n-1350\n-1351 #endif\n-1352\n-1363 template\n-_\b1_\b3_\b6_\b4 void _\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(M& matrix,\n-1365 const std::string& filename)\n-1366 {\n-1367 auto [pureFilename, extension] = _\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n-(filename);\n-1368 std::string rfilename;\n-1369 std::ifstream file;\n-1370 if (extension != \"\") {\n-1371 rfilename = pureFilename + extension;\n-1372 file.open(rfilename.c_str());\n-1373 if(!file)\n-1374 DUNE_THROW(IOError, \"Could not open file: \" << rfilename.c_str());\n-1375 }\n-1376 else {\n-1377 // try both .mm and .mtx\n-1378 rfilename = pureFilename + \".mm\";\n-1379 file.open(rfilename.c_str(), std::ios::in);\n-1380 if(!file) {\n-1381 rfilename = pureFilename + \".mtx\";\n-1382 file.open(rfilename.c_str(), std::ios::in);\n-1383 if(!file)\n-1384 DUNE_THROW(IOError, \"Could not open file: \" << rfilename.c_str());\n-1385 }\n-1386 }\n-1387 _\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(matrix,file);\n-1388 file.close();\n-1389 }\n-1390\n-1392}\n-1393#endif\n-_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\n-Some handy generic functions for ISTL matrices.\n-_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n-Implementation of the BCRSMatrix class.\n-_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n-Classes providing communication interfaces for overlapping Schwarz methods.\n+299 copyToBCCSMatrix(initializer, _\bm_\ba_\bt);\n+300 }\n+301\n+_\b3_\b0_\b3 virtual void _\bf_\br_\be_\be()\n+304 {\n+305 ISTL::Impl::BCCSMatrix::field_type, int>::free();\n+306 SUPERLU_FREE(A.Store);\n+307 }\n+308 private:\n+309 SuperMatrix A;\n+310 };\n+311\n+312 template\n+_\b3_\b1_\b3 class _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n+314 : public ISTL::Impl::BCCSMatrixInitializer, int>\n+315 {\n+316 template\n+_\b3_\b1_\b7 friend class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n+318 public:\n+_\b3_\b1_\b9 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b3_\b2_\b0 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b> _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx;\n+321\n+_\b3_\b2_\b2 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br(_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx& lum) : ISTL::Impl::\n+BCCSMatrixInitializer<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx, int>(lum)\n+323 ,slumat(&lum)\n+324 {}\n+325\n+_\b3_\b2_\b6 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br() : ISTL::Impl::\n+BCCSMatrixInitializer<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx, int>()\n+327 {}\n+328\n+_\b3_\b2_\b9 virtual void _\bc_\br_\be_\ba_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx() const\n+330 {\n+331 ISTL::Impl::BCCSMatrixInitializer, int>::createMatrix();\n+332 _\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>\n+333_\b _\b:_\b:_\bc_\br_\be_\ba_\bt_\be(&slumat->A, slumat->N_, slumat->M_, slumat->colstart[this->cols],\n+334 slumat->values,slumat->rowindex, slumat->colstart, SLU_NC,\n+335 static_cast(_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bt_\by_\bp_\be),\n+SLU_GE);\n+336 }\n+337 private:\n+338 _\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx* slumat;\n+339 };\n+340}\n+341#endif // HAVE_SUPERLU\n+342#endif\n+_\bs_\bu_\bp_\be_\br_\bl_\bu_\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs_\b._\bh_\bh\n+_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh\n _\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n This file implements a vector space as a tensor product of a given vector\n space. The number of compon...\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs\n-auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::\n-value > *sfinae=nullptr)\n-Get the number of nonzero fields in the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:119\n-_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt\n-void readMatrixMarket(Dune::BlockVector< T, A > &vector, std::istream &istr)\n-Reads a BlockVector from a matrix market file.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:930\n-_\bD_\bu_\bn_\be_\b:_\b:_\bs_\bt_\bo_\br_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt\n-void storeMatrixMarket(const M &matrix, std::string filename, int\n-prec=default_precision)\n-Stores a parallel matrix/vector in matrix market format in a file.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1151\n-_\bD_\bu_\bn_\be_\b:_\b:_\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt\n-void loadMatrixMarket(M &matrix, const std::string &filename,\n-OwnerOverlapCopyCommunication< G, L > &comm, bool readIndices=true)\n-Load a parallel matrix/vector stored in matrix market format.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1269\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs\n-std::size_t countEntries(const BlockVector< T, A > &vector)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1076\n-_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\bi_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt\n-void writeMatrixMarket(const V &vector, std::ostream &ostr, const std::\n-integral_constant< int, 0 > &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1089\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\by\n-void mm_print_vector_entry(const V &entry, std::ostream &ostr, const std::\n-integral_constant< int, 1 > &, size_t lane)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1049\n-_\bD_\bu_\bn_\be_\b:_\b:_\bd_\be_\bf_\ba_\bu_\bl_\bt_\b__\bp_\br_\be_\bc_\bi_\bs_\bi_\bo_\bn\n-static const int default_precision\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1138\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bv_\be_\bc_\bt_\bo_\br_\b__\be_\bn_\bt_\br_\bi_\be_\bs\n-void mm_read_vector_entries(Dune::BlockVector< T, A > &vector, std::size_t\n-size, std::istream &istr, size_t lane)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:900\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\br_\be_\ba_\bd_\b__\bh_\be_\ba_\bd_\be_\br\n-void mm_read_header(std::size_t &rows, std::size_t &cols, MatrixMarketImpl::\n-MMHeader &header, std::istream &istr, bool isVector)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:871\n-_\bD_\bu_\bn_\be_\b:_\b:_\bm_\bm_\b__\bp_\br_\bi_\bn_\bt_\b__\be_\bn_\bt_\br_\by\n-void mm_print_entry(const B &entry, std::size_t rowidx, std::size_t colidx,\n-std::ostream &ostr)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1030\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n _\bs_\bt_\bd\n STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\ba_\bl_\bc_\bu_\bl_\ba_\bt_\be_\bN_\bN_\bZ\n-std::tuple< std::size_t, std::size_t, std::size_t > calculateNNZ(std::size_t\n-rows, std::size_t cols, std::size_t entries, const MMHeader &header)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:547\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<\n-bool operator<(const IndexData< T > &i1, const IndexData< T > &i2)\n-LessThan operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:630\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bL_\bi_\bn_\be_\bT_\by_\bp_\be\n-LineType\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:296\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bD_\bA_\bT_\bA\n-@ DATA\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:296\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bH_\bE_\bA_\bD_\bE_\bR\n-@ MM_HEADER\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:296\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bI_\bS_\bT_\bL_\bS_\bT_\bR_\bU_\bC_\bT\n-@ MM_ISTLSTRUCT\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:296\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\br_\be_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bB_\ba_\bn_\bn_\be_\br\n-bool readMatrixMarketBanner(std::istream &file, MMHeader &mmHeader)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:353\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\br_\be_\ba_\bd_\bS_\bp_\ba_\br_\bs_\be_\bE_\bn_\bt_\br_\bi_\be_\bs\n-void readSparseEntries(Dune::BCRSMatrix< T, A > &matrix, std::istream &file,\n-std::size_t entries, const MMHeader &mmHeader, const D &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:765\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bT_\bY_\bP_\bE\n-MM_TYPE\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\ba_\br_\br_\ba_\by_\b__\bt_\by_\bp_\be\n-@ array_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bo_\br_\bd_\bi_\bn_\ba_\bt_\be_\b__\bt_\by_\bp_\be\n-@ coordinate_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bt_\by_\bp_\be\n-@ unknown_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b>\n-std::istream & operator>>(std::istream &is, NumericWrapper< T > &num)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:614\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bk_\bi_\bp_\bC_\bo_\bm_\bm_\be_\bn_\bt_\bs\n-void skipComments(std::istream &file)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:339\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bl_\bi_\bn_\be_\bF_\be_\be_\bd\n-bool lineFeed(std::istream &file)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:315\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bM_\bA_\bX_\b__\bL_\bI_\bN_\bE_\b__\bL_\bE_\bN_\bG_\bT_\bH\n-@ MM_MAX_LINE_LENGTH\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:297\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bS_\bT_\bR_\bU_\bC_\bT_\bU_\bR_\bE\n-MM_STRUCTURE\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bk_\be_\bw_\b__\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc\n-@ skew_symmetric\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bg_\be_\bn_\be_\br_\ba_\bl\n-@ general\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bh_\be_\br_\bm_\bi_\bt_\bi_\ba_\bn\n-@ hermitian\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be\n-@ unknown_structure\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\by_\bm_\bm_\be_\bt_\br_\bi_\bc\n-@ symmetric\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:303\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\b__\bC_\bT_\bY_\bP_\bE\n-MM_CTYPE\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bu_\bn_\bk_\bn_\bo_\bw_\bn_\b__\bc_\bt_\by_\bp_\be\n-@ unknown_ctype\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bp_\ba_\bt_\bt_\be_\br_\bn\n-@ pattern\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b__\bt_\by_\bp_\be\n-@ complex_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bd_\bo_\bu_\bb_\bl_\be_\b__\bt_\by_\bp_\be\n-@ double_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bi_\bn_\bt_\be_\bg_\be_\br_\b__\bt_\by_\bp_\be\n-@ integer_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:301\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bc_\bo_\bn_\bj\n-std::enable_if_t::value, T > conj(const T &r)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:733\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bs_\bp_\bl_\bi_\bt_\bF_\bi_\bl_\be_\bn_\ba_\bm_\be\n-std::tuple< std::string, std::string > splitFilename(const std::string\n-&filename)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:852\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+Initializer for SuperLU Matrices representing the subdomains.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:47\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static auto coldim(const M &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:219\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static auto rowdim(const M &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:214\n _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n A sparse block matrix with compressed row storage.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-Iterator begin()\n-Get iterator to first row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:675\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-Iterator end()\n-Get iterator to one beyond last row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:681\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd\n-CreateIterator createend()\n-get create iterator pointing to one after the last block\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1103\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-size_type M() const\n-number of columns (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1978\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn\n-CreateIterator createbegin()\n-get initial create iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1097\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-number of rows (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bB_\bu_\bi_\bl_\bd_\bM_\bo_\bd_\be\n-void setBuildMode(BuildMode bm)\n-Sets the build mode of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:833\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n-void setSize(size_type rows, size_type columns, size_type nnz=0)\n-Set the size of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:861\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n-void resize(size_type size)\n-Resize the vector.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:503\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< B >::field_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:401\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-A generic dynamic dense matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be\n-Helper metaprogram to get the matrix market string representation of the\n-numeric type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:76\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b:_\b:_\bi_\bs_\b__\bn_\bu_\bm_\be_\br_\bi_\bc\n-@ is_numeric\n-Whether T is a supported numeric type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bi_\bn_\bt_\b _\b>_\b:_\b:_\bs_\bt_\br\n-static std::string str()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b:_\b:_\bs_\bt_\br\n-static std::string str()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:111\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b:_\b:_\bs_\bt_\br\n-static std::string str()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:127\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b _\b>_\b:_\b:_\bs_\bt_\br\n-static std::string str()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:143\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bn_\bu_\bm_\be_\br_\bi_\bc_\b__\bt_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b _\b>_\b:_\b:_\bs_\bt_\br\n-static std::string str()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:159\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br\n-Meta program to write the correct Matrix Market header.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n-static void print(std::ostream &os)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:179\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n-static void print(std::ostream &os)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:189\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bj_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n-static void print(std::ostream &os)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:199\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bh_\be_\ba_\bd_\be_\br_\b__\bp_\br_\bi_\bn_\bt_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,_\b _\bj_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n-static void print(std::ostream &os)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:209\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br\n-Metaprogram for writing the ISTL block structure header.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:225\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n-static void print(std::ostream &os, const M &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:233\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM\n-BlockVector< T, A > M\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:230\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,\n-_\bi_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM\n-BlockVector< FieldVector< T, i >, A > M\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:243\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,\n-_\bi_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n-static void print(std::ostream &os, const M &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:245\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM\n-BCRSMatrix< T, A > M\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:255\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n-static void print(std::ostream &os, const M &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:258\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,\n-_\bi_\b,_\b _\bj_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM\n-BCRSMatrix< FieldMatrix< T, i, j >, A > M\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:268\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,\n-_\bi_\b,_\b _\bj_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n-static void print(std::ostream &os, const M &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:270\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,_\b _\bj_\b _\b>_\b _\b>_\b:_\b:\n-_\bp_\br_\bi_\bn_\bt\n-static void print(std::ostream &os, const M &m)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:283\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bi_\b,_\b _\bj_\b _\b>_\b _\b>_\b:_\b:_\bM\n-FieldMatrix< T, i, j > M\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:281\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bi_\b _\b>_\b _\b>_\b:_\b:_\bp_\br_\bi_\bn_\bt\n-static void print(std::ostream &os, const M &m)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:292\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bb_\bl_\bo_\bc_\bk_\b__\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be_\b__\bh_\be_\ba_\bd_\be_\br_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bi_\b _\b>_\b _\b>_\b:_\b:_\bM\n-FieldVector< T, i > M\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:290\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:306\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br_\b:_\b:_\bs_\bt_\br_\bu_\bc_\bt_\bu_\br_\be\n-MM_STRUCTURE structure\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:312\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br_\b:_\b:_\bt_\by_\bp_\be\n-MM_TYPE type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:310\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br\n-MMHeader()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:307\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\bM_\bH_\be_\ba_\bd_\be_\br_\b:_\b:_\bc_\bt_\by_\bp_\be\n-MM_CTYPE ctype\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:311\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:578\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bD_\ba_\bt_\ba_\b:_\b:_\bi_\bn_\bd_\be_\bx\n-std::size_t index\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:579\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br\n-a wrapper class of numeric values.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:595\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bN_\bu_\bm_\be_\br_\bi_\bc_\bW_\br_\ba_\bp_\bp_\be_\br_\b:_\b:_\bn_\bu_\bm_\bb_\be_\br\n-T number\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:596\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by\n-Utility class for marking the pattern type of the MatrixMarket matrices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:607\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br\n-Functor to the data values of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:677\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const std::vector< std::set< IndexData< D > > > &rows,\n-BCRSMatrix< T > &matrix)\n-Sets the matrix values.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:684\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const std::vector< std::set< IndexData< D > > > &rows,\n-BCRSMatrix< FieldMatrix< T, brows, bcols > > &matrix)\n-Sets the matrix values.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:702\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bV_\ba_\bl_\bu_\be_\bs_\bS_\be_\bt_\bt_\be_\br_\b<_\b _\bP_\ba_\bt_\bt_\be_\br_\bn_\bD_\bu_\bm_\bm_\by_\b,_\b _\bb_\br_\bo_\bw_\bs_\b,_\b _\bb_\bc_\bo_\bl_\bs_\b _\b>_\b:_\b:\n-_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-void operator()(const std::vector< std::set< IndexData< PatternDummy > > >\n-&rows, M &matrix)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:723\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bi_\bs_\b__\bc_\bo_\bm_\bp_\bl_\be_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:728\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bI_\bm_\bp_\bl_\b:_\b:_\bm_\bm_\b__\bm_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\be_\br_\bs\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:744\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt_\bF_\bo_\br_\bm_\ba_\bt_\bE_\br_\br_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:868\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx\n-Test whether a type is an ISTL Matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:504\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-A class setting up standard communication for a two-valued attribute set with\n-owner/overlap/copy sema...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bn_\bd_\be_\bx_\bS_\be_\bt\n-const ParallelIndexSet & indexSet() const\n-Get the underlying parallel index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:462\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n-const Communication< MPI_Comm > & communicator() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n-const RemoteIndices & remoteIndices() const\n-Get the underlying remote indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:471\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet\n-The type of the parallel index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:449\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+The type for the index access and the size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n+Sequential overlapping Schwarz preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:694\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU\n+SuperLu Solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn superlu.hh:271\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bC_\br_\be_\ba_\bt_\be_\bS_\bp_\ba_\br_\bs_\be_\bC_\bh_\bo_\bo_\bs_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:26\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bP_\br_\bi_\bn_\bt_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\ba_\bs_\be_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b:_\b:_\bt_\by_\bp_\be\n+static const Dtype_t type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:127\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:132\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be\n+double float_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:144\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be\n+float float_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:151\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b _\b>_\b _\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be\n+double float_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:158\n+_\bD_\bu_\bn_\be_\b:_\b:_\bG_\be_\bt_\bS_\bu_\bp_\be_\br_\bL_\bU_\bT_\by_\bp_\be_\b<_\b _\bs_\bt_\bd_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bx_\b<_\b _\bf_\bl_\bo_\ba_\bt_\b _\b>_\b _\b>_\b:_\b:_\bf_\bl_\bo_\ba_\bt_\b__\bt_\by_\bp_\be\n+float float_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:165\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n+Utility class for converting an ISTL Matrix into a SuperLU Matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:175\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:179\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\br_\be_\be\n+virtual void free()\n+free allocated space.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:303\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+SuperLUMatrix< BCRSMatrix< B, TA > > & operator=(const SuperLUMatrix<\n+BCRSMatrix< B, TA > > &mat)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:256\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+SuperLUMatrix< BCRSMatrix< B, TA > > & operator=(const BCRSMatrix< B, TA >\n+&mat)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:237\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n+SuperLUMatrix(const Matrix &mat)\n+Constructor that initializes the data.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:212\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+virtual void setMatrix(const Matrix &mat)\n+Initialize data from given matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n+SuperLUMatrix()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:215\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:206\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix< B, TA > Matrix\n+The type of the matrix to convert.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:202\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+virtual void setMatrix(const Matrix &mat, const std::set< std::size_t > &mrs)\n+Initialize data from a given set of matrix rows and columns.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:281\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\b~_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n+virtual ~SuperLUMatrix()\n+Destructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:219\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU_\bM_\ba_\bt_\br_\bi_\bx\n+Dune::SuperLUMatrix< Matrix > SuperLUMatrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:320\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix< B, A > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:319\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+SuperMatrixInitializer()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:326\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx\n+virtual void createMatrix() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:329\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bu_\bp_\be_\br_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+SuperMatrixInitializer(SuperLUMatrix &lum)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn supermatrix.hh:322\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00179.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00179.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: solverfactory.hh File Reference\n+dune-istl: matrix.hh File Reference\n \n \n \n \n \n \n \n@@ -71,89 +71,59 @@\n \n \n \n
    \n \n-
    solverfactory.hh File Reference
    \n+Namespaces
    \n+
    matrix.hh File Reference
    \n \n
    \n-
    #include <unordered_map>
    \n-#include <functional>
    \n+\n+

    A dynamic dense block matrix class. \n+More...

    \n+
    #include <cmath>
    \n #include <memory>
    \n-#include <dune/common/parametertree.hh>
    \n-#include <dune/common/singleton.hh>
    \n-#include "solverregistry.hh"
    \n-#include <dune/istl/solver.hh>
    \n-#include <dune/istl/schwarz.hh>
    \n-#include <dune/istl/novlpschwarz.hh>
    \n+#include <dune/common/ftraits.hh>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/scalarvectorview.hh>
    \n+#include <dune/common/scalarmatrixview.hh>
    \n+#include <dune/istl/bvector.hh>
    \n+#include <dune/istl/istlexception.hh>
    \n+#include <dune/istl/blocklevel.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::SolverFactory< Operator >
     Factory to assembly solvers configured by a ParameterTree. More...
    class  Dune::MatrixImp::DenseMatrixBase< B, A >
     A Vector of blocks with different blocksizes. More...
     
    class  Dune::MatrixImp::DenseMatrixBase< B, A >::Iterator
     Iterator class for sequential access. More...
     
    class  Dune::MatrixImp::DenseMatrixBase< B, A >::ConstIterator
     ConstIterator class for sequential access. More...
     
    class  Dune::Matrix< T, A >
     A generic dynamic dense matrix. More...
     
    struct  Dune::FieldTraits< Matrix< T, A > >
     
    \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Typedefs

    template<class M , class X , class Y >
    using Dune::DirectSolverSignature = std::shared_ptr< InverseOperator< X, Y > >(const M &, const ParameterTree &)
     
    template<class M , class X , class Y >
    using Dune::DirectSolverFactory = Singleton< ParameterizedObjectFactory< DirectSolverSignature< M, X, Y > > >
     
    template<class M , class X , class Y >
    using Dune::PreconditionerSignature = std::shared_ptr< Preconditioner< X, Y > >(const std::shared_ptr< M > &, const ParameterTree &)
     
    template<class M , class X , class Y >
    using Dune::PreconditionerFactory = Singleton< ParameterizedObjectFactory< PreconditionerSignature< M, X, Y > > >
     
    template<class X , class Y >
    using Dune::IterativeSolverSignature = std::shared_ptr< InverseOperator< X, Y > >(const std::shared_ptr< LinearOperator< X, Y > > &, const std::shared_ptr< ScalarProduct< X > > &, const std::shared_ptr< Preconditioner< X, Y > >, const ParameterTree &)
     
    template<class X , class Y >
    using Dune::IterativeSolverFactory = Singleton< ParameterizedObjectFactory< IterativeSolverSignature< X, Y > > >
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n

    \n-Functions

    template<class O , class Preconditioner >
    std::shared_ptr< PreconditionerDune::wrapPreconditioner4Parallel (const std::shared_ptr< Preconditioner > &prec, const O &)
     
    template<class M , class X , class Y , class C , class Preconditioner >
    std::shared_ptr< PreconditionerDune::wrapPreconditioner4Parallel (const std::shared_ptr< Preconditioner > &prec, const std::shared_ptr< OverlappingSchwarzOperator< M, X, Y, C > > &op)
     
    template<class M , class X , class Y , class C , class Preconditioner >
    std::shared_ptr< PreconditionerDune::wrapPreconditioner4Parallel (const std::shared_ptr< Preconditioner > &prec, const std::shared_ptr< NonoverlappingSchwarzOperator< M, X, Y, C > > &op)
     
    template<class M , class X , class Y >
    std::shared_ptr< ScalarProduct< X > > Dune::createScalarProduct (const std::shared_ptr< MatrixAdapter< M, X, Y > > &)
     
    template<class M , class X , class Y , class C >
    std::shared_ptr< ScalarProduct< X > > Dune::createScalarProduct (const std::shared_ptr< OverlappingSchwarzOperator< M, X, Y, C > > &op)
     
    template<class M , class X , class Y , class C >
    std::shared_ptr< ScalarProduct< X > > Dune::createScalarProduct (const std::shared_ptr< NonoverlappingSchwarzOperator< M, X, Y, C > > &op)
     
    template<class Operator >
    std::shared_ptr< InverseOperator< typename Operator::domain_type, typename Operator::range_type > > Dune::getSolverFromFactory (std::shared_ptr< Operator > op, const ParameterTree &config, std::shared_ptr< Preconditioner< typename Operator::domain_type, typename Operator::range_type > > prec=nullptr)
     Instantiates an InverseOperator from an Operator and a configuration given as a ParameterTree.
     
    namespace  Dune::MatrixImp
     
    \n-
    \n+

    Detailed Description

    \n+

    A dynamic dense block matrix class.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,101 +1,43 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-solverfactory.hh File Reference\n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+matrix.hh File Reference\n+A dynamic dense block matrix class. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n #include \n-#include \n-#include \n-#include \"_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\"\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\b _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b _\b>\n-\u00a0 Factory to assembly solvers configured by a ParameterTree. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n+\u00a0 A Vector of blocks with different blocksizes. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+\u00a0 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br class for sequential access. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+\u00a0 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br class for sequential access. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>\n+\u00a0 A generic dynamic dense matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr< _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< X, Y > >\n- (const M &, const ParameterTree &)\n-\u00a0\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by = Singleton< ParameterizedObjectFactory<\n- _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be< M, X, Y > > >\n-\u00a0\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br< X, Y >\n- >(const std::shared_ptr< M > &, const ParameterTree &)\n-\u00a0\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by = Singleton< ParameterizedObjectFactory<\n- _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be< M, X, Y > > >\n-\u00a0\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr< _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< X, Y\n- > >(const std::shared_ptr< _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< X, Y > > &, const std::\n- shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > > &, const std::shared_ptr<\n- _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br< X, Y > >, const ParameterTree &)\n-\u00a0\n-template\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by = Singleton< ParameterizedObjectFactory<\n- _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be< X, Y > > >\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n- std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl (const\n- std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br > &prec,\n- const O &)\n-\u00a0\n-template\n- std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl (const\n- std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br > &prec,\n- const std::shared_ptr<\n- _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< M, X, Y, C >\n- > &op)\n-\u00a0\n-template\n- std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl (const\n- std::shared_ptr< _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br > &prec,\n- const std::shared_ptr<\n- _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< M, X, Y,\n- C > > &op)\n-\u00a0\n-template\n-std::shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const std::\n- shared_ptr< _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br< M, X, Y > >\n- &)\n-\u00a0\n-template\n-std::shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const std::\n- shared_ptr< _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br<\n- M, X, Y, C > > &op)\n-\u00a0\n-template\n-std::shared_ptr< _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt< X > >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt (const std::\n- shared_ptr<\n- _\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< M, X, Y,\n- C > > &op)\n-\u00a0\n-template\n- std::shared_ptr< _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\br_\bo_\bm_\bF_\ba_\bc_\bt_\bo_\br_\by (std::\n- typename Operator::domain_type, shared_ptr< Operator > op, const\n- typename Operator::range_type > >\u00a0 ParameterTree &config, std::shared_ptr<\n- _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br< typename Operator::\n- domain_type, typename Operator::\n- range_type > > prec=nullptr)\n- Instantiates an _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br from an\n-\u00a0 Operator and a configuration given as a\n- ParameterTree.\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+A dynamic dense block matrix class.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00179_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00179_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: solverfactory.hh Source File\n+dune-istl: matrix.hh Source File\n \n \n \n \n \n \n \n@@ -74,245 +74,1258 @@\n \n
    \n \n
    \n \n
    \n-
    solverfactory.hh
    \n+
    matrix.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5
    \n-
    6#ifndef DUNE_ISTL_SOLVERFACTORY_HH
    \n-
    7#define DUNE_ISTL_SOLVERFACTORY_HH
    \n-
    8
    \n-
    9#include <unordered_map>
    \n-
    10#include <functional>
    \n-
    11#include <memory>
    \n-
    12
    \n-
    13#include <dune/common/parametertree.hh>
    \n-
    14#include <dune/common/singleton.hh>
    \n-
    15
    \n-
    16#include "solverregistry.hh"
    \n-
    17#include <dune/istl/solver.hh>
    \n-
    18#include <dune/istl/schwarz.hh>
    \n-\n-
    20
    \n-
    21namespace Dune{
    \n-
    26 // Direct solver factory:
    \n-
    27 template<class M, class X, class Y>
    \n-
    28 using DirectSolverSignature = std::shared_ptr<InverseOperator<X,Y>>(const M&, const ParameterTree&);
    \n-
    29 template<class M, class X, class Y>
    \n-
    30 using DirectSolverFactory = Singleton<ParameterizedObjectFactory<DirectSolverSignature<M,X,Y>>>;
    \n-
    31
    \n-
    32 // Preconditioner factory:
    \n-
    33 template<class M, class X, class Y>
    \n-
    34 using PreconditionerSignature = std::shared_ptr<Preconditioner<X,Y>>(const std::shared_ptr<M>&, const ParameterTree&);
    \n-
    35 template<class M, class X, class Y>
    \n-
    36 using PreconditionerFactory = Singleton<ParameterizedObjectFactory<PreconditionerSignature<M,X,Y>>>;
    \n-
    37
    \n-
    38 // Iterative solver factory
    \n-
    39 template<class X, class Y>
    \n-
    40 using IterativeSolverSignature = std::shared_ptr<InverseOperator<X,Y>>(const std::shared_ptr<LinearOperator<X,Y>>&, const std::shared_ptr<ScalarProduct<X>>&, const std::shared_ptr<Preconditioner<X,Y>>, const ParameterTree&);
    \n-
    41 template<class X, class Y>
    \n-
    42 using IterativeSolverFactory = Singleton<ParameterizedObjectFactory<IterativeSolverSignature<X,Y>>>;
    \n-
    43
    \n-
    44 // initSolverFactories differs in different compilation units, so we have it
    \n-
    45 // in an anonymous namespace
    \n-
    46 namespace {
    \n-
    47
    \n-
    53 template<class O>
    \n-
    54 int initSolverFactories(){
    \n-
    55 using M = typename O::matrix_type;
    \n-
    56 using X = typename O::range_type;
    \n-
    57 using Y = typename O::domain_type;
    \n-
    58 using TL = Dune::TypeList<M,X,Y>;
    \n-\n-
    60 addRegistryToFactory<TL>(dsfac, DirectSolverTag{});
    \n-\n-
    62 addRegistryToFactory<TL>(pfac, PreconditionerTag{});
    \n-
    63 using TLS = Dune::TypeList<X,Y>;
    \n-\n-
    65 return addRegistryToFactory<TLS>(isfac, IterativeSolverTag{});
    \n-
    66 }
    \n-
    77 template<class O, class X, class Y>
    \n-
    78 [[deprecated("Use method 'initSolverFactories<O>' instead")]]
    \n-
    79 int initSolverFactories() {
    \n-
    80 return initSolverFactories<O>();
    \n-
    81 }
    \n-
    82 } // end anonymous namespace
    \n-
    83
    \n-
    84
    \n-
    85 template<class O, class Preconditioner>
    \n-
    \n-
    86 std::shared_ptr<Preconditioner> wrapPreconditioner4Parallel(const std::shared_ptr<Preconditioner>& prec,
    \n-
    87 const O&)
    \n-
    88 {
    \n-
    89 return prec;
    \n-
    90 }
    \n-
    \n-
    91
    \n-
    92 template<class M, class X, class Y, class C, class Preconditioner>
    \n-
    93 std::shared_ptr<Preconditioner>
    \n-
    \n-
    94 wrapPreconditioner4Parallel(const std::shared_ptr<Preconditioner>& prec,
    \n-
    95 const std::shared_ptr<OverlappingSchwarzOperator<M,X,Y,C> >& op)
    \n-
    96 {
    \n-
    97 return std::make_shared<BlockPreconditioner<X,Y,C,Preconditioner> >(prec, op->getCommunication());
    \n-
    98 }
    \n-
    \n-
    99
    \n-
    100 template<class M, class X, class Y, class C, class Preconditioner>
    \n-
    101 std::shared_ptr<Preconditioner>
    \n-
    \n-
    102 wrapPreconditioner4Parallel(const std::shared_ptr<Preconditioner>& prec,
    \n-
    103 const std::shared_ptr<NonoverlappingSchwarzOperator<M,X,Y,C> >& op)
    \n-
    104 {
    \n-
    105 return std::make_shared<NonoverlappingBlockPreconditioner<C,Preconditioner> >(prec, op->getCommunication());
    \n-
    106 }
    \n-
    \n-
    107
    \n-
    108 template<class M, class X, class Y>
    \n-
    \n-
    109 std::shared_ptr<ScalarProduct<X>> createScalarProduct(const std::shared_ptr<MatrixAdapter<M,X,Y> >&)
    \n-
    110 {
    \n-
    111 return std::make_shared<SeqScalarProduct<X>>();
    \n-
    112 }
    \n-
    \n-
    113 template<class M, class X, class Y, class C>
    \n-
    \n-
    114 std::shared_ptr<ScalarProduct<X>> createScalarProduct(const std::shared_ptr<OverlappingSchwarzOperator<M,X,Y,C> >& op)
    \n-
    115 {
    \n-
    116 return createScalarProduct<X>(op->getCommunication(), op->category());
    \n-
    117 }
    \n-
    \n-
    118
    \n-
    119 template<class M, class X, class Y, class C>
    \n-
    \n-
    120 std::shared_ptr<ScalarProduct<X>> createScalarProduct(const std::shared_ptr<NonoverlappingSchwarzOperator<M,X,Y,C> >& op)
    \n-
    121 {
    \n-
    122 return createScalarProduct<X>(op->getCommunication(), op->category());
    \n-
    123 }
    \n-
    \n-
    124
    \n-
    144 template<class Operator>
    \n-
    \n-\n-
    146 using Domain = typename Operator::domain_type;
    \n-
    147 using Range = typename Operator::range_type;
    \n-\n-\n-
    150
    \n-
    151 template<class O>
    \n-
    152 using _matrix_type = typename O::matrix_type;
    \n-
    153 using matrix_type = Std::detected_or_t<int, _matrix_type, Operator>;
    \n-
    154 static constexpr bool isAssembled = !std::is_same<matrix_type, int>::value;
    \n-
    155
    \n-
    156 static const matrix_type* getmat(std::shared_ptr<Operator> op){
    \n-
    157 std::shared_ptr<AssembledLinearOperator<matrix_type, Domain, Range>> aop
    \n-
    158 = std::dynamic_pointer_cast<AssembledLinearOperator<matrix_type, Domain, Range>>(op);
    \n-
    159 if(aop)
    \n-
    160 return &aop->getmat();
    \n-
    161 return nullptr;
    \n-
    162 }
    \n-
    163
    \n-
    164 public:
    \n-
    165
    \n-
    \n-
    168 static std::shared_ptr<Solver> get(std::shared_ptr<Operator> op,
    \n-
    169 const ParameterTree& config,
    \n-
    170 std::shared_ptr<Preconditioner> prec = nullptr){
    \n-
    171 std::string type = config.get<std::string>("type");
    \n-
    172 std::shared_ptr<Solver> result;
    \n-
    173 const matrix_type* mat = getmat(op);
    \n-
    174 if(mat){
    \n-\n-
    176 if(op->category()!=SolverCategory::sequential){
    \n-
    177 DUNE_THROW(NotImplemented, "The solver factory does not support parallel direct solvers!");
    \n-
    178 }
    \n-
    179 result = DirectSolverFactory<matrix_type, Domain, Range>::instance().create(type, *mat, config);
    \n-
    180 return result;
    \n-
    181 }
    \n-
    182 }
    \n-
    183 // if no direct solver is found it might be an iterative solver
    \n-\n-
    185 DUNE_THROW(Dune::InvalidStateException, "Solver not found in the factory.");
    \n-
    186 }
    \n-
    187 if(!prec){
    \n-
    188 const ParameterTree& precConfig = config.sub("preconditioner");
    \n-
    189 std::string prec_type = precConfig.get<std::string>("type");
    \n-
    190 prec = PreconditionerFactory<Operator, Domain, Range>::instance().create(prec_type, op, precConfig);
    \n-
    191 if (prec->category() != op->category() && prec->category() == SolverCategory::sequential)
    \n-
    192 // try to wrap to a parallel preconditioner
    \n-
    193 prec = wrapPreconditioner4Parallel(prec, op);
    \n-
    194 }
    \n-
    195 std::shared_ptr<ScalarProduct<Domain>> sp = createScalarProduct(op);
    \n-
    196 result = IterativeSolverFactory<Domain, Range>::instance().create(type, op, sp, prec, config);
    \n-
    197 return result;
    \n-
    198 }
    \n-
    \n-
    199
    \n-
    \n-
    203 static std::shared_ptr<Preconditioner> getPreconditioner(std::shared_ptr<Operator> op,
    \n-
    204 const ParameterTree& config){
    \n-
    205 const matrix_type* mat = getmat(op);
    \n-
    206 if(mat){
    \n-
    207 std::string prec_type = config.get<std::string>("type");
    \n-
    208 return PreconditionerFactory<Operator, Domain, Range>::instance().create(prec_type, op, config);
    \n-
    209 }else{
    \n-
    210 DUNE_THROW(InvalidStateException, "Could not obtain matrix from operator. Please pass in an AssembledLinearOperator.");
    \n-
    211 }
    \n-
    212 }
    \n-
    \n-
    213 };
    \n-
    \n-
    214
    \n-
    225 template<class Operator>
    \n-
    226 std::shared_ptr<InverseOperator<typename Operator::domain_type,
    \n-
    \n-
    227 typename Operator::range_type>> getSolverFromFactory(std::shared_ptr<Operator> op,
    \n-
    228 const ParameterTree& config,
    \n-
    229 std::shared_ptr<Preconditioner<typename Operator::domain_type,
    \n-
    230 typename Operator::range_type>> prec = nullptr){
    \n-
    231 return SolverFactory<Operator>::get(op, config, prec);
    \n-
    232 }
    \n-
    \n-
    233
    \n-
    237} // end namespace Dune
    \n-
    238
    \n+
    5#ifndef DUNE_ISTL_MATRIX_HH
    \n+
    6#define DUNE_ISTL_MATRIX_HH
    \n+
    7
    \n+
    12#include <cmath>
    \n+
    13#include <memory>
    \n+
    14
    \n+
    15#include <dune/common/ftraits.hh>
    \n+
    16#include <dune/common/typetraits.hh>
    \n+
    17#include <dune/common/scalarvectorview.hh>
    \n+
    18#include <dune/common/scalarmatrixview.hh>
    \n+
    19
    \n+
    20#include <dune/istl/bvector.hh>
    \n+\n+\n+
    23
    \n+
    24namespace Dune {
    \n+
    25
    \n+
    \n+
    26namespace MatrixImp
    \n+
    27{
    \n+
    39 template<class B, class A=std::allocator<B> >
    \n+
    \n+
    40 class DenseMatrixBase : public Imp::block_vector_unmanaged<B,A>
    \n+
    41 // this derivation gives us all the blas level 1 and norms
    \n+
    42 // on the large array. However, access operators have to be
    \n+
    43 // overwritten.
    \n+
    44 {
    \n+
    45 public:
    \n+
    46
    \n+
    47 //===== type definitions and constants
    \n+
    48
    \n+
    50 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n+
    51
    \n+
    53 typedef A allocator_type;
    \n+
    54
    \n+
    56 typedef typename A::size_type size_type;
    \n+
    57
    \n+\n+
    64
    \n+\n+
    68
    \n+
    69 // just a shorthand
    \n+
    70 typedef Imp::BlockVectorWindow<B,A> window_type;
    \n+
    71
    \n+\n+
    73
    \n+\n+
    75
    \n+
    76
    \n+
    77 //===== constructors and such
    \n+
    78
    \n+
    \n+
    82 DenseMatrixBase () : Imp::block_vector_unmanaged<B,A>()
    \n+
    83 {
    \n+
    84 // nothing is known ...
    \n+
    85 rows_ = 0;
    \n+
    86 columns_ = 0;
    \n+
    87 }
    \n+
    \n+
    88
    \n+
    \n+
    95 DenseMatrixBase (size_type rows, size_type columns) : Imp::block_vector_unmanaged<B,A>()
    \n+
    96 {
    \n+
    97 // and we can allocate the big array in the base class
    \n+
    98 this->n = rows*columns;
    \n+
    99 columns_ = columns;
    \n+
    100 if (this->n>0)
    \n+
    101 {
    \n+
    102 this->p = allocator_.allocate(this->n);
    \n+
    103 new (this->p)B[this->n];
    \n+
    104 }
    \n+
    105 else
    \n+
    106 {
    \n+
    107 this->n = 0;
    \n+
    108 this->p = 0;
    \n+
    109 }
    \n+
    110
    \n+
    111 // we can allocate the windows now
    \n+
    112 rows_ = rows;
    \n+
    113 }
    \n+
    \n+
    114
    \n+
    \n+\n+
    117 {
    \n+
    118 // allocate the big array in the base class
    \n+
    119 this->n = a.n;
    \n+
    120 columns_ = a.columns_;
    \n+
    121 if (this->n>0)
    \n+
    122 {
    \n+
    123 // allocate and construct objects
    \n+
    124 this->p = allocator_.allocate(this->n);
    \n+
    125 new (this->p)B[this->n];
    \n+
    126
    \n+
    127 // copy data
    \n+
    128 for (size_type i=0; i<this->n; i++)
    \n+
    129 this->p[i]=a.p[i];
    \n+
    130 }
    \n+
    131 else
    \n+
    132 {
    \n+
    133 this->n = 0;
    \n+
    134 this->p = nullptr;
    \n+
    135 }
    \n+
    136
    \n+
    137 // we can allocate the windows now
    \n+
    138 rows_ = a.rows_;
    \n+
    139 }
    \n+
    \n+
    140
    \n+
    \n+\n+
    143 {
    \n+
    144 if (this->n>0) {
    \n+
    145 size_type i=this->n;
    \n+
    146 while (i)
    \n+
    147 this->p[--i].~B();
    \n+
    148 allocator_.deallocate(this->p,this->n);
    \n+
    149 }
    \n+
    150 }
    \n+
    \n+
    151
    \n+
    \n+
    153 void resize (size_type rows, size_type columns)
    \n+
    154 {
    \n+
    155 // deconstruct objects and deallocate memory if necessary
    \n+
    156 if (this->n>0) {
    \n+
    157 size_type i=this->n;
    \n+
    158 while (i)
    \n+
    159 this->p[--i].~B();
    \n+
    160 allocator_.deallocate(this->p,this->n);
    \n+
    161 }
    \n+
    162
    \n+
    163 // and we can allocate the big array in the base class
    \n+
    164 this->n = rows*columns;
    \n+
    165 if (this->n>0)
    \n+
    166 {
    \n+
    167 this->p = allocator_.allocate(this->n);
    \n+
    168 new (this->p)B[this->n];
    \n+
    169 }
    \n+
    170 else
    \n+
    171 {
    \n+
    172 this->n = 0;
    \n+
    173 this->p = nullptr;
    \n+
    174 }
    \n+
    175
    \n+
    176 // we can allocate the windows now
    \n+
    177 rows_ = rows;
    \n+
    178 columns_ = columns;
    \n+
    179 }
    \n+
    \n+
    180
    \n+
    \n+\n+
    183 {
    \n+
    184 if (&a!=this) // check if this and a are different objects
    \n+
    185 {
    \n+
    186 columns_ = a.columns_;
    \n+
    187 // reallocate arrays if necessary
    \n+
    188 // Note: still the block sizes may vary !
    \n+
    189 if (this->n!=a.n || rows_!=a.rows_)
    \n+
    190 {
    \n+
    191 // deconstruct objects and deallocate memory if necessary
    \n+
    192 if (this->n>0) {
    \n+
    193 size_type i=this->n;
    \n+
    194 while (i)
    \n+
    195 this->p[--i].~B();
    \n+
    196 allocator_.deallocate(this->p,this->n);
    \n+
    197 }
    \n+
    198
    \n+
    199 // allocate the big array in the base class
    \n+
    200 this->n = a.n;
    \n+
    201 if (this->n>0)
    \n+
    202 {
    \n+
    203 // allocate and construct objects
    \n+
    204 this->p = allocator_.allocate(this->n);
    \n+
    205 new (this->p)B[this->n];
    \n+
    206 }
    \n+
    207 else
    \n+
    208 {
    \n+
    209 this->n = 0;
    \n+
    210 this->p = nullptr;
    \n+
    211 }
    \n+
    212
    \n+
    213 // Copy number of rows
    \n+
    214 rows_ = a.rows_;
    \n+
    215 }
    \n+
    216
    \n+
    217 // and copy the data
    \n+
    218 for (size_type i=0; i<this->n; i++)
    \n+
    219 this->p[i]=a.p[i];
    \n+
    220 }
    \n+
    221
    \n+
    222 return *this;
    \n+
    223 }
    \n+
    \n+
    224
    \n+
    225
    \n+
    226 //===== assignment from scalar
    \n+
    227
    \n+
    \n+\n+
    230 {
    \n+
    231 (static_cast<Imp::block_vector_unmanaged<B,A>&>(*this)) = k;
    \n+
    232 return *this;
    \n+
    233 }
    \n+
    \n+
    234
    \n+
    235
    \n+
    236 //===== access to components
    \n+
    237 // has to be overwritten from base class because it must
    \n+
    238 // return access to the windows
    \n
    239
    \n-
    240#endif
    \n-\n-\n-\n-
    Define general, extensible interface for inverse operators.
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    Singleton< ParameterizedObjectFactory< PreconditionerSignature< M, X, Y > > > PreconditionerFactory
    Definition solverfactory.hh:36
    \n-
    Singleton< ParameterizedObjectFactory< DirectSolverSignature< M, X, Y > > > DirectSolverFactory
    Definition solverfactory.hh:30
    \n-
    std::shared_ptr< InverseOperator< X, Y > >(const std::shared_ptr< LinearOperator< X, Y > > &, const std::shared_ptr< ScalarProduct< X > > &, const std::shared_ptr< Preconditioner< X, Y > >, const ParameterTree &) IterativeSolverSignature
    Definition solverfactory.hh:40
    \n-
    std::shared_ptr< Preconditioner > wrapPreconditioner4Parallel(const std::shared_ptr< Preconditioner > &prec, const O &)
    Definition solverfactory.hh:86
    \n-
    std::shared_ptr< InverseOperator< X, Y > >(const M &, const ParameterTree &) DirectSolverSignature
    Definition solverfactory.hh:28
    \n-
    std::shared_ptr< InverseOperator< typename Operator::domain_type, typename Operator::range_type > > getSolverFromFactory(std::shared_ptr< Operator > op, const ParameterTree &config, std::shared_ptr< Preconditioner< typename Operator::domain_type, typename Operator::range_type > > prec=nullptr)
    Instantiates an InverseOperator from an Operator and a configuration given as a ParameterTree.
    Definition solverfactory.hh:227
    \n-
    Singleton< ParameterizedObjectFactory< IterativeSolverSignature< X, Y > > > IterativeSolverFactory
    Definition solverfactory.hh:42
    \n-
    std::shared_ptr< Preconditioner< X, Y > >(const std::shared_ptr< M > &, const ParameterTree &) PreconditionerSignature
    Definition solverfactory.hh:34
    \n+
    \n+\n+
    242 {
    \n+
    243#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    244 if (i>=rows_) DUNE_THROW(ISTLError,"index out of range");
    \n+
    245#endif
    \n+
    246 return window_type(this->p + i*columns_, columns_);
    \n+
    247 }
    \n+
    \n+
    248
    \n+
    \n+\n+
    251 {
    \n+
    252#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    253 if (i<0 || i>=rows_) DUNE_THROW(ISTLError,"index out of range");
    \n+
    254#endif
    \n+
    255 return window_type(this->p + i*columns_, columns_);
    \n+
    256 }
    \n+
    \n+
    257
    \n+
    258 // forward declaration
    \n+
    259 class ConstIterator;
    \n+
    260
    \n+
    \n+\n+
    263 {
    \n+
    264 public:
    \n+
    \n+\n+
    267 : window_(nullptr,0)
    \n+
    268 {
    \n+
    269 i = 0;
    \n+
    270 }
    \n+
    \n+
    271
    \n+
    272 Iterator (Iterator& other) = default;
    \n+
    273 Iterator (Iterator&& other) = default;
    \n+
    274
    \n+
    \n+
    276 Iterator (B* data, size_type columns, size_type _i)
    \n+
    277 : i(_i),
    \n+
    278 window_(data + _i*columns, columns)
    \n+
    279 {}
    \n+
    \n+
    280
    \n+
    \n+\n+
    283 {
    \n+
    284 i = other.i;
    \n+
    285 // Do NOT use window_.operator=, because that copies the window content, not just the window!
    \n+
    286 window_.set(other.window_.getsize(),other.window_.getptr());
    \n+
    287 return *this;
    \n+
    288 }
    \n+
    \n+
    289
    \n+
    \n+\n+
    292 {
    \n+
    293 i = other.i;
    \n+
    294 // Do NOT use window_.operator=, because that copies the window content, not just the window!
    \n+
    295 window_.set(other.window_.getsize(),other.window_.getptr());
    \n+
    296 return *this;
    \n+
    297 }
    \n+
    \n+
    298
    \n+
    \n+\n+
    301 {
    \n+
    302 ++i;
    \n+
    303 window_.setptr(window_.getptr()+window_.getsize());
    \n+
    304 return *this;
    \n+
    305 }
    \n+
    \n+
    306
    \n+
    \n+\n+
    309 {
    \n+
    310 --i;
    \n+
    311 window_.setptr(window_.getptr()-window_.getsize());
    \n+
    312 return *this;
    \n+
    313 }
    \n+
    \n+
    314
    \n+
    \n+
    316 bool operator== (const Iterator& it) const
    \n+
    317 {
    \n+
    318 return window_.getptr() == it.window_.getptr();
    \n+
    319 }
    \n+
    \n+
    320
    \n+
    \n+
    322 bool operator!= (const Iterator& it) const
    \n+
    323 {
    \n+
    324 return window_.getptr() != it.window_.getptr();
    \n+
    325 }
    \n+
    \n+
    326
    \n+
    \n+
    328 bool operator== (const ConstIterator& it) const
    \n+
    329 {
    \n+
    330 return window_.getptr() == it.window_.getptr();
    \n+
    331 }
    \n+
    \n+
    332
    \n+
    \n+
    334 bool operator!= (const ConstIterator& it) const
    \n+
    335 {
    \n+
    336 return window_.getptr() != it.window_.getptr();
    \n+
    337 }
    \n+
    \n+
    338
    \n+
    \n+\n+
    341 {
    \n+
    342 return window_;
    \n+
    343 }
    \n+
    \n+
    344
    \n+
    \n+\n+
    347 {
    \n+
    348 return &window_;
    \n+
    349 }
    \n+
    \n+
    350
    \n+
    351 // return index corresponding to pointer
    \n+
    \n+\n+
    353 {
    \n+
    354 return i;
    \n+
    355 }
    \n+
    \n+
    356
    \n+
    357 friend class ConstIterator;
    \n+
    358
    \n+
    359 private:
    \n+
    360 size_type i;
    \n+
    361 mutable window_type window_;
    \n+
    362 };
    \n+
    \n+
    363
    \n+
    \n+\n+
    366 {
    \n+
    367 return Iterator(this->p, columns_, 0);
    \n+
    368 }
    \n+
    \n+
    369
    \n+
    \n+\n+
    372 {
    \n+
    373 return Iterator(this->p, columns_, rows_);
    \n+
    374 }
    \n+
    \n+
    375
    \n+
    \n+\n+
    379 {
    \n+
    380 return Iterator(this->p, columns_, rows_-1);
    \n+
    381 }
    \n+
    \n+
    382
    \n+
    \n+\n+
    386 {
    \n+
    387 return Iterator(this->p, columns_, -1);
    \n+
    388 }
    \n+
    \n+
    389
    \n+
    \n+\n+
    392 {
    \n+
    393 return Iterator(this->p, columns_, std::min(i,rows_));
    \n+
    394 }
    \n+
    \n+
    395
    \n+
    \n+\n+
    398 {
    \n+
    399 return ConstIterator(this->p, columns_, std::min(i,rows_));
    \n+
    400 }
    \n+
    \n+
    401
    \n+
    \n+\n+
    404 {
    \n+
    405 public:
    \n+
    \n+\n+
    408 : window_(nullptr,0)
    \n+
    409 {
    \n+
    410 i = 0;
    \n+
    411 }
    \n+
    \n+
    412
    \n+
    \n+
    414 ConstIterator (const B* data, size_type columns, size_type _i)
    \n+
    415 : i(_i),
    \n+
    416 window_(const_cast<B*>(data + _i * columns), columns)
    \n+
    417 {}
    \n+
    \n+
    418
    \n+
    \n+\n+
    421 : i(it.i), window_(it.window_.getptr(),it.window_.getsize())
    \n+
    422 {}
    \n+
    \n+
    423
    \n+
    \n+\n+
    425 {
    \n+
    426 i = other.i;
    \n+
    427 // Do NOT use window_.operator=, because that copies the window content, not just the window!
    \n+
    428 window_.set(other.window_.getsize(),other.window_.getptr());
    \n+
    429 return *this;
    \n+
    430 }
    \n+
    \n+
    431
    \n+
    \n+\n+
    433 {
    \n+
    434 i = other.i;
    \n+
    435 // Do NOT use window_.operator=, because that copies the window content, not just the window!
    \n+
    436 window_.set(other.window_.getsize(),other.window_.getptr());
    \n+
    437 return *this;
    \n+
    438 }
    \n+
    \n+
    439
    \n+
    \n+\n+
    442 {
    \n+
    443 ++i;
    \n+
    444 window_.setptr(window_.getptr()+window_.getsize());
    \n+
    445 return *this;
    \n+
    446 }
    \n+
    \n+
    447
    \n+
    \n+\n+
    450 {
    \n+
    451 --i;
    \n+
    452 window_.setptr(window_.getptr()-window_.getsize());
    \n+
    453 return *this;
    \n+
    454 }
    \n+
    \n+
    455
    \n+
    \n+
    457 bool operator== (const ConstIterator& it) const
    \n+
    458 {
    \n+
    459 return window_.getptr() == it.window_.getptr();
    \n+
    460 }
    \n+
    \n+
    461
    \n+
    \n+
    463 bool operator!= (const ConstIterator& it) const
    \n+
    464 {
    \n+
    465 return window_.getptr() != it.window_.getptr();
    \n+
    466 }
    \n+
    \n+
    467
    \n+
    \n+
    469 bool operator== (const Iterator& it) const
    \n+
    470 {
    \n+
    471 return window_.getptr() == it.window_.getptr();
    \n+
    472 }
    \n+
    \n+
    473
    \n+
    \n+
    475 bool operator!= (const Iterator& it) const
    \n+
    476 {
    \n+
    477 return window_.getptr() != it.window_.getptr();
    \n+
    478 }
    \n+
    \n+
    479
    \n+
    \n+
    481 const window_type& operator* () const
    \n+
    482 {
    \n+
    483 return window_;
    \n+
    484 }
    \n+
    \n+
    485
    \n+
    \n+\n+
    488 {
    \n+
    489 return &window_;
    \n+
    490 }
    \n+
    \n+
    491
    \n+
    492 // return index corresponding to pointer
    \n+
    \n+\n+
    494 {
    \n+
    495 return i;
    \n+
    496 }
    \n+
    \n+
    497
    \n+
    498 friend class Iterator;
    \n+
    499
    \n+
    500 private:
    \n+
    501 size_type i;
    \n+
    502 mutable window_type window_;
    \n+
    503 };
    \n+
    \n+
    504
    \n+\n+
    507
    \n+\n+
    510
    \n+
    \n+\n+
    513 {
    \n+
    514 return ConstIterator(this->p, columns_, 0);
    \n+
    515 }
    \n+
    \n+
    516
    \n+
    \n+\n+
    519 {
    \n+
    520 return ConstIterator(this->p, columns_, rows_);
    \n+
    521 }
    \n+
    \n+
    522
    \n+
    \n+\n+
    526 {
    \n+
    527 return ConstIterator(this->p, columns_, rows_-1);
    \n+
    528 }
    \n+
    \n+
    529
    \n+
    \n+\n+
    532 {
    \n+
    533 return ConstIterator(this->p, columns_, -1);
    \n+
    534 }
    \n+
    \n+
    535
    \n+
    536 //===== sizes
    \n+
    537
    \n+
    \n+
    539 size_type N () const
    \n+
    540 {
    \n+
    541 return rows_;
    \n+
    542 }
    \n+
    \n+
    543
    \n+
    544
    \n+
    545 private:
    \n+
    546 size_type rows_; // number of matrix rows
    \n+
    547 size_type columns_; // number of matrix columns
    \n+
    548
    \n+
    549 A allocator_;
    \n+
    550 };
    \n+
    \n+
    551
    \n+
    552} // namespace MatrixImp
    \n+
    \n+
    553
    \n+
    559 template<class T, class A=std::allocator<T> >
    \n+
    \n+
    560 class Matrix
    \n+
    561 {
    \n+
    562 public:
    \n+
    563
    \n+
    565 using field_type = typename Imp::BlockTraits<T>::field_type;
    \n+
    566
    \n+
    568 typedef T block_type;
    \n+
    569
    \n+
    571 typedef A allocator_type;
    \n+
    572
    \n+\n+
    575
    \n+
    577 typedef typename A::size_type size_type;
    \n+
    578
    \n+\n+
    581
    \n+
    583 typedef typename row_type::iterator ColIterator;
    \n+
    584
    \n+\n+
    587
    \n+
    589 typedef typename row_type::const_iterator ConstColIterator;
    \n+
    590
    \n+
    592 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n+
    593 static constexpr auto blocklevel = blockLevel<T>()+1;
    \n+
    594
    \n+
    \n+
    596 Matrix() : data_(0,0), cols_(0)
    \n+
    597 {}
    \n+
    \n+
    598
    \n+
    \n+
    601 Matrix(size_type rows, size_type cols) : data_(rows,cols), cols_(cols)
    \n+
    602 {}
    \n+
    \n+
    603
    \n+
    \n+
    608 void setSize(size_type rows, size_type cols) {
    \n+
    609 data_.resize(rows,cols);
    \n+
    610 cols_ = cols;
    \n+
    611 }
    \n+
    \n+
    612
    \n+
    \n+\n+
    615 {
    \n+
    616 return data_.begin();
    \n+
    617 }
    \n+
    \n+
    618
    \n+
    \n+\n+
    621 {
    \n+
    622 return data_.end();
    \n+
    623 }
    \n+
    \n+
    624
    \n+
    \n+\n+
    628 {
    \n+
    629 return data_.beforeEnd();
    \n+
    630 }
    \n+
    \n+
    631
    \n+
    \n+\n+
    635 {
    \n+
    636 return data_.beforeBegin();
    \n+
    637 }
    \n+
    \n+
    638
    \n+
    \n+\n+
    641 {
    \n+
    642 return data_.begin();
    \n+
    643 }
    \n+
    \n+
    644
    \n+
    \n+\n+
    647 {
    \n+
    648 return data_.end();
    \n+
    649 }
    \n+
    \n+
    650
    \n+
    \n+\n+
    654 {
    \n+
    655 return data_.beforeEnd();
    \n+
    656 }
    \n+
    \n+
    657
    \n+
    \n+\n+
    661 {
    \n+
    662 return data_.beforeBegin();
    \n+
    663 }
    \n+
    \n+
    664
    \n+
    \n+\n+
    667 {
    \n+
    668 data_ = t;
    \n+
    669 return *this;
    \n+
    670 }
    \n+
    \n+
    671
    \n+
    \n+\n+
    674#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    675 if (row<0)
    \n+
    676 DUNE_THROW(ISTLError, "Can't access negative rows!");
    \n+
    677 if (row>=N())
    \n+
    678 DUNE_THROW(ISTLError, "Row index out of range!");
    \n+
    679#endif
    \n+
    680 return data_[row];
    \n+
    681 }
    \n+
    \n+
    682
    \n+
    \n+
    684 const row_type operator[](size_type row) const {
    \n+
    685#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    686 if (row<0)
    \n+
    687 DUNE_THROW(ISTLError, "Can't access negative rows!");
    \n+
    688 if (row>=N())
    \n+
    689 DUNE_THROW(ISTLError, "Row index out of range!");
    \n+
    690#endif
    \n+
    691 return data_[row];
    \n+
    692 }
    \n+
    \n+
    693
    \n+
    \n+
    695 size_type N() const {
    \n+
    696 return data_.N();
    \n+
    697 }
    \n+
    \n+
    698
    \n+
    \n+
    700 size_type M() const {
    \n+
    701 return cols_;
    \n+
    702 }
    \n+
    \n+
    703
    \n+
    \n+\n+
    706 data_ *= scalar;
    \n+
    707 return (*this);
    \n+
    708 }
    \n+
    \n+
    709
    \n+
    \n+\n+
    712 data_ /= scalar;
    \n+
    713 return (*this);
    \n+
    714 }
    \n+
    \n+
    715
    \n+
    \n+\n+
    722#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    723 if(N()!=b.N() || M() != b.M())
    \n+
    724 DUNE_THROW(RangeError, "Matrix sizes do not match!");
    \n+
    725#endif
    \n+
    726 data_ += b.data_;
    \n+
    727 return (*this);
    \n+
    728 }
    \n+
    \n+
    729
    \n+
    \n+\n+
    736#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    737 if(N()!=b.N() || M() != b.M())
    \n+
    738 DUNE_THROW(RangeError, "Matrix sizes do not match!");
    \n+
    739#endif
    \n+
    740 data_ -= b.data_;
    \n+
    741 return (*this);
    \n+
    742 }
    \n+
    \n+
    743
    \n+
    \n+\n+
    746 Matrix out(M(), N());
    \n+
    747 for (size_type i=0; i<N(); i++)
    \n+
    748 for (size_type j=0; j<M(); j++)
    \n+
    749 out[j][i] = (*this)[i][j];
    \n+
    750
    \n+
    751 return out;
    \n+
    752 }
    \n+
    \n+
    753
    \n+
    \n+
    755 friend Matrix<T> operator*(const Matrix<T>& m1, const Matrix<T>& m2) {
    \n+
    756 Matrix<T> out(m1.N(), m2.M());
    \n+
    757 out = 0;
    \n+
    758
    \n+
    759 for (size_type i=0; i<out.N(); i++ ) {
    \n+
    760 for ( size_type j=0; j<out.M(); j++ )
    \n+
    761 for (size_type k=0; k<m1.M(); k++)
    \n+
    762 out[i][j] += m1[i][k]*m2[k][j];
    \n+
    763 }
    \n+
    764
    \n+
    765 return out;
    \n+
    766 }
    \n+
    \n+
    767
    \n+
    769 template <class X, class Y>
    \n+
    \n+
    770 friend Y operator*(const Matrix<T>& m, const X& vec) {
    \n+
    771#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    772 if (m.M()!=vec.size())
    \n+
    773 DUNE_THROW(ISTLError, "Vector size doesn't match the number of matrix columns!");
    \n+
    774#endif
    \n+
    775 Y out(m.N());
    \n+
    776 out = 0;
    \n+
    777
    \n+
    778 for (size_type i=0; i<out.size(); i++ ) {
    \n+
    779 for ( size_type j=0; j<vec.size(); j++ )
    \n+
    780 out[i] += m[i][j]*vec[j];
    \n+
    781 }
    \n+
    782
    \n+
    783 return out;
    \n+
    784 }
    \n+
    \n+
    785
    \n+
    787 template <class X, class Y>
    \n+
    \n+
    788 void mv(const X& x, Y& y) const
    \n+
    789 {
    \n+
    790#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    791 if (x.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    792 if (y.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    793#endif
    \n+
    794 for (size_type i=0; i<data_.N(); i++) {
    \n+
    795 y[i]=0;
    \n+
    796 for (size_type j=0; j<cols_; j++)
    \n+
    797 {
    \n+
    798 auto&& xj = Impl::asVector(x[j]);
    \n+
    799 auto&& yi = Impl::asVector(y[i]);
    \n+
    800 Impl::asMatrix((*this)[i][j]).umv(xj, yi);
    \n+
    801 }
    \n+
    802 }
    \n+
    803 }
    \n+
    \n+
    804
    \n+
    806 template<class X, class Y>
    \n+
    \n+
    807 void mtv (const X& x, Y& y) const
    \n+
    808 {
    \n+
    809#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    810 if (x.N()!=N()) DUNE_THROW(ISTLError,"index out of range");
    \n+
    811 if (y.N()!=M()) DUNE_THROW(ISTLError,"index out of range");
    \n+
    812#endif
    \n+
    813 for(size_type i=0; i<y.N(); ++i)
    \n+
    814 y[i]=0;
    \n+
    815 umtv(x,y);
    \n+
    816 }
    \n+
    \n+
    817
    \n+
    819 template <class X, class Y>
    \n+
    \n+
    820 void umv(const X& x, Y& y) const
    \n+
    821 {
    \n+
    822#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    823 if (x.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    824 if (y.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    825#endif
    \n+
    826 for (size_type i=0; i<data_.N(); i++)
    \n+
    827 for (size_type j=0; j<cols_; j++)
    \n+
    828 {
    \n+
    829 auto&& xj = Impl::asVector(x[j]);
    \n+
    830 auto&& yi = Impl::asVector(y[i]);
    \n+
    831 Impl::asMatrix((*this)[i][j]).umv(xj, yi);
    \n+
    832 }
    \n+
    833 }
    \n+
    \n+
    834
    \n+
    836 template<class X, class Y>
    \n+
    \n+
    837 void mmv (const X& x, Y& y) const
    \n+
    838 {
    \n+
    839#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    840 if (x.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    841 if (y.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    842#endif
    \n+
    843 for (size_type i=0; i<data_.N(); i++)
    \n+
    844 for (size_type j=0; j<cols_; j++)
    \n+
    845 {
    \n+
    846 auto&& xj = Impl::asVector(x[j]);
    \n+
    847 auto&& yi = Impl::asVector(y[i]);
    \n+
    848 Impl::asMatrix((*this)[i][j]).mmv(xj, yi);
    \n+
    849 }
    \n+
    850 }
    \n+
    \n+
    851
    \n+
    853 template <class X, class Y>
    \n+
    \n+
    854 void usmv(const field_type& alpha, const X& x, Y& y) const
    \n+
    855 {
    \n+
    856#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    857 if (x.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    858 if (y.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    859#endif
    \n+
    860 for (size_type i=0; i<data_.N(); i++)
    \n+
    861 for (size_type j=0; j<cols_; j++)
    \n+
    862 {
    \n+
    863 auto&& xj = Impl::asVector(x[j]);
    \n+
    864 auto&& yi = Impl::asVector(y[i]);
    \n+
    865 Impl::asMatrix((*this)[i][j]).usmv(alpha, xj, yi);
    \n+
    866 }
    \n+
    867 }
    \n+
    \n+
    868
    \n+
    870 template<class X, class Y>
    \n+
    \n+
    871 void umtv (const X& x, Y& y) const
    \n+
    872 {
    \n+
    873#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    874 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    875 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    876#endif
    \n+
    877 for (size_type i=0; i<data_.N(); i++)
    \n+
    878 for (size_type j=0; j<cols_; j++)
    \n+
    879 {
    \n+
    880 auto&& xi = Impl::asVector(x[i]);
    \n+
    881 auto&& yj = Impl::asVector(y[j]);
    \n+
    882 Impl::asMatrix((*this)[i][j]).umtv(xi, yj);
    \n+
    883 }
    \n+
    884 }
    \n+
    \n+
    885
    \n+
    887 template<class X, class Y>
    \n+
    \n+
    888 void mmtv (const X& x, Y& y) const
    \n+
    889 {
    \n+
    890#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    891 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    892 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    893#endif
    \n+
    894 for (size_type i=0; i<data_.N(); i++)
    \n+
    895 for (size_type j=0; j<cols_; j++)
    \n+
    896 {
    \n+
    897 auto&& xi = Impl::asVector(x[i]);
    \n+
    898 auto&& yj = Impl::asVector(y[j]);
    \n+
    899 Impl::asMatrix((*this)[i][j]).mmtv(xi, yj);
    \n+
    900 }
    \n+
    901 }
    \n+
    \n+
    902
    \n+
    904 template<class X, class Y>
    \n+
    \n+
    905 void usmtv (const field_type& alpha, const X& x, Y& y) const
    \n+
    906 {
    \n+
    907#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    908 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    909 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    910#endif
    \n+
    911 for (size_type i=0; i<data_.N(); i++)
    \n+
    912 for (size_type j=0; j<cols_; j++)
    \n+
    913 {
    \n+
    914 auto&& xi = Impl::asVector(x[i]);
    \n+
    915 auto&& yj = Impl::asVector(y[j]);
    \n+
    916 Impl::asMatrix((*this)[i][j]).usmtv(alpha, xi, yj);
    \n+
    917 }
    \n+
    918 }
    \n+
    \n+
    919
    \n+
    921 template<class X, class Y>
    \n+
    \n+
    922 void umhv (const X& x, Y& y) const
    \n+
    923 {
    \n+
    924#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    925 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    926 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    927#endif
    \n+
    928 for (size_type i=0; i<data_.N(); i++)
    \n+
    929 for (size_type j=0; j<cols_; j++)
    \n+
    930 {
    \n+
    931 auto&& xi = Impl::asVector(x[i]);
    \n+
    932 auto&& yj = Impl::asVector(y[j]);
    \n+
    933 Impl::asMatrix((*this)[i][j]).umhv(xi,yj);
    \n+
    934 }
    \n+
    935 }
    \n+
    \n+
    936
    \n+
    938 template<class X, class Y>
    \n+
    \n+
    939 void mmhv (const X& x, Y& y) const
    \n+
    940 {
    \n+
    941#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    942 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    943 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    944#endif
    \n+
    945 for (size_type i=0; i<data_.N(); i++)
    \n+
    946 for (size_type j=0; j<cols_; j++)
    \n+
    947 {
    \n+
    948 auto&& xi = Impl::asVector(x[i]);
    \n+
    949 auto&& yj = Impl::asVector(y[j]);
    \n+
    950 Impl::asMatrix((*this)[i][j]).mmhv(xi,yj);
    \n+
    951 }
    \n+
    952 }
    \n+
    \n+
    953
    \n+
    955 template<class X, class Y>
    \n+
    \n+
    956 void usmhv (const field_type& alpha, const X& x, Y& y) const
    \n+
    957 {
    \n+
    958#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    959 if (x.N()!=N()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    960 if (y.N()!=M()) DUNE_THROW(ISTLError,"vector/matrix size mismatch!");
    \n+
    961#endif
    \n+
    962 for (size_type i=0; i<data_.N(); i++)
    \n+
    963 for (size_type j=0; j<cols_; j++)
    \n+
    964 {
    \n+
    965 auto&& xi = Impl::asVector(x[i]);
    \n+
    966 auto&& yj = Impl::asVector(y[j]);
    \n+
    967 Impl::asMatrix((*this)[i][j]).usmhv(alpha,xi,yj);
    \n+
    968 }
    \n+
    969 }
    \n+
    \n+
    970
    \n+
    971 //===== norms
    \n+
    972
    \n+
    \n+
    974 typename FieldTraits<field_type>::real_type frobenius_norm () const
    \n+
    975 {
    \n+
    976 return std::sqrt(frobenius_norm2());
    \n+
    977 }
    \n+
    \n+
    978
    \n+
    \n+
    980 typename FieldTraits<field_type>::real_type frobenius_norm2 () const
    \n+
    981 {
    \n+
    982 typename FieldTraits<field_type>::real_type sum=0;
    \n+
    983 for (size_type i=0; i<this->N(); i++)
    \n+
    984 for (size_type j=0; j<this->M(); j++)
    \n+
    985 sum += Impl::asMatrix(data_[i][j]).frobenius_norm2();
    \n+
    986 return sum;
    \n+
    987 }
    \n+
    \n+
    988
    \n+
    990 template <typename ft = field_type,
    \n+
    991 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n+
    \n+
    992 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n+
    993 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    994 using std::max;
    \n+
    995
    \n+
    996 real_type norm = 0;
    \n+
    997 for (auto const &x : *this) {
    \n+
    998 real_type sum = 0;
    \n+
    999 for (auto const &y : x)
    \n+
    1000 sum += Impl::asMatrix(y).infinity_norm();
    \n+
    1001 norm = max(sum, norm);
    \n+
    1002 isNaN += sum;
    \n+
    1003 }
    \n+
    1004
    \n+
    1005 return norm;
    \n+
    1006 }
    \n+
    \n+
    1007
    \n+
    1009 template <typename ft = field_type,
    \n+
    1010 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n+
    \n+
    1011 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n+
    1012 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    1013 using std::max;
    \n+
    1014
    \n+
    1015 real_type norm = 0;
    \n+
    1016 for (auto const &x : *this) {
    \n+
    1017 real_type sum = 0;
    \n+
    1018 for (auto const &y : x)
    \n+
    1019 sum += Impl::asMatrix(y).infinity_norm_real();
    \n+
    1020 norm = max(sum, norm);
    \n+
    1021 }
    \n+
    1022 return norm;
    \n+
    1023 }
    \n+
    \n+
    1024
    \n+
    1026 template <typename ft = field_type,
    \n+
    1027 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n+
    \n+
    1028 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n+
    1029 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    1030 using std::max;
    \n+
    1031
    \n+
    1032 real_type norm = 0;
    \n+
    1033 real_type isNaN = 1;
    \n+
    1034 for (auto const &x : *this) {
    \n+
    1035 real_type sum = 0;
    \n+
    1036 for (auto const &y : x)
    \n+
    1037 sum += Impl::asMatrix(y).infinity_norm();
    \n+
    1038 norm = max(sum, norm);
    \n+
    1039 isNaN += sum;
    \n+
    1040 }
    \n+
    1041
    \n+
    1042 return norm * (isNaN / isNaN);
    \n+
    1043 }
    \n+
    \n+
    1044
    \n+
    1046 template <typename ft = field_type,
    \n+
    1047 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n+
    \n+
    1048 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n+
    1049 using real_type = typename FieldTraits<ft>::real_type;
    \n+
    1050 using std::max;
    \n+
    1051
    \n+
    1052 real_type norm = 0;
    \n+
    1053 real_type isNaN = 1;
    \n+
    1054 for (auto const &x : *this) {
    \n+
    1055 real_type sum = 0;
    \n+
    1056 for (auto const &y : x)
    \n+
    1057 sum += Impl::asMatrix(y).infinity_norm_real();
    \n+
    1058 norm = max(sum, norm);
    \n+
    1059 isNaN += sum;
    \n+
    1060 }
    \n+
    1061
    \n+
    1062 return norm * (isNaN / isNaN);
    \n+
    1063 }
    \n+
    \n+
    1064
    \n+
    1065 //===== query
    \n+
    1066
    \n+
    \n+
    1068 bool exists ([[maybe_unused]] size_type i, [[maybe_unused]] size_type j) const
    \n+
    1069 {
    \n+
    1070#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1071 if (i<0 || i>=N()) DUNE_THROW(ISTLError,"row index out of range");
    \n+
    1072 if (j<0 || i>=M()) DUNE_THROW(ISTLError,"column index out of range");
    \n+
    1073#endif
    \n+
    1074 return true;
    \n+
    1075 }
    \n+
    \n+
    1076
    \n+
    1077 protected:
    \n+
    1078
    \n+\n+
    1082
    \n+\n+
    1089 };
    \n+
    \n+
    1090
    \n+
    1091 template<class T, class A>
    \n+
    \n+
    1092 struct FieldTraits< Matrix<T, A> >
    \n+
    1093 {
    \n+\n+
    1095 using real_type = typename FieldTraits<field_type>::real_type;
    \n+
    1096 };
    \n+
    \n+
    1097
    \n+
    1099} // end namespace Dune
    \n+
    1100
    \n+
    1101#endif
    \n+\n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Helper functions for determining the vector/matrix block level.
    \n
    Definition allocator.hh:11
    \n-
    std::shared_ptr< ScalarProduct< X > > createScalarProduct(const Comm &comm, SolverCategory::Category category)
    Definition scalarproducts.hh:242
    \n-
    A nonoverlapping operator with communication object.
    Definition novlpschwarz.hh:61
    \n-
    Adapter to turn a matrix into a linear operator.
    Definition operators.hh:137
    \n-
    An overlapping Schwarz operator.
    Definition schwarz.hh:75
    \n-
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n-\n-
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n-
    Factory to assembly solvers configured by a ParameterTree.
    Definition solverfactory.hh:145
    \n-
    static std::shared_ptr< Solver > get(std::shared_ptr< Operator > op, const ParameterTree &config, std::shared_ptr< Preconditioner > prec=nullptr)
    get a solver from the factory
    Definition solverfactory.hh:168
    \n-
    static std::shared_ptr< Preconditioner > getPreconditioner(std::shared_ptr< Operator > op, const ParameterTree &config)
    Construct a Preconditioner for a given Operator.
    Definition solverfactory.hh:203
    \n+
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    A Vector of blocks with different blocksizes.
    Definition matrix.hh:44
    \n+
    Imp::BlockVectorWindow< B, A > window_type
    Definition matrix.hh:70
    \n+
    BlockVector< B, A > block_type
    Same as value_type, here for historical reasons.
    Definition matrix.hh:67
    \n+
    DenseMatrixBase & operator=(const DenseMatrixBase &a)
    assignment
    Definition matrix.hh:182
    \n+
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition matrix.hh:50
    \n+
    Iterator beforeBegin() const
    Definition matrix.hh:385
    \n+
    void resize(size_type rows, size_type columns)
    same effect as constructor with same argument
    Definition matrix.hh:153
    \n+
    const window_type const_reference
    Definition matrix.hh:74
    \n+
    DenseMatrixBase(size_type rows, size_type columns)
    Definition matrix.hh:95
    \n+
    Iterator end()
    end Iterator
    Definition matrix.hh:371
    \n+
    reference operator[](size_type i)
    random access to blocks
    Definition matrix.hh:241
    \n+
    BlockVector< B, A > value_type
    Type of the elements of the outer vector, i.e., dynamic vectors of B.
    Definition matrix.hh:63
    \n+
    Iterator find(size_type i)
    random access returning iterator (end if not contained)
    Definition matrix.hh:391
    \n+
    size_type N() const
    number of blocks in the vector (are of variable size here)
    Definition matrix.hh:539
    \n+
    ConstIterator beforeEnd() const
    Definition matrix.hh:525
    \n+
    ConstIterator end() const
    end ConstIterator
    Definition matrix.hh:518
    \n+
    window_type reference
    Definition matrix.hh:72
    \n+
    ConstIterator rend() const
    end ConstIterator
    Definition matrix.hh:531
    \n+
    Iterator beforeEnd()
    Definition matrix.hh:378
    \n+
    ConstIterator begin() const
    begin ConstIterator
    Definition matrix.hh:512
    \n+
    A allocator_type
    export the allocator type
    Definition matrix.hh:53
    \n+
    DenseMatrixBase()
    Definition matrix.hh:82
    \n+
    ConstIterator find(size_type i) const
    random access returning iterator (end if not contained)
    Definition matrix.hh:397
    \n+
    A::size_type size_type
    The size type for the index access.
    Definition matrix.hh:56
    \n+
    ~DenseMatrixBase()
    free dynamic memory
    Definition matrix.hh:142
    \n+
    Iterator begin()
    begin Iterator
    Definition matrix.hh:365
    \n+
    DenseMatrixBase(const DenseMatrixBase &a)
    copy constructor, has copy semantics
    Definition matrix.hh:116
    \n+
    Iterator class for sequential access.
    Definition matrix.hh:263
    \n+
    Iterator & operator--()
    prefix decrement
    Definition matrix.hh:308
    \n+
    size_type index() const
    Definition matrix.hh:352
    \n+\n+\n+
    bool operator!=(const Iterator &it) const
    inequality
    Definition matrix.hh:322
    \n+
    Iterator & operator=(Iterator &&other)
    Move assignment.
    Definition matrix.hh:282
    \n+
    Iterator & operator++()
    prefix increment
    Definition matrix.hh:300
    \n+
    Iterator()
    constructor, no arguments
    Definition matrix.hh:266
    \n+
    window_type & operator*() const
    dereferencing
    Definition matrix.hh:340
    \n+
    bool operator==(const Iterator &it) const
    equality
    Definition matrix.hh:316
    \n+
    Iterator & operator=(Iterator &other)
    Copy assignment.
    Definition matrix.hh:291
    \n+
    Iterator(B *data, size_type columns, size_type _i)
    constructor
    Definition matrix.hh:276
    \n+
    window_type * operator->() const
    arrow
    Definition matrix.hh:346
    \n+
    ConstIterator class for sequential access.
    Definition matrix.hh:404
    \n+
    const window_type * operator->() const
    arrow
    Definition matrix.hh:487
    \n+
    const window_type & operator*() const
    dereferencing
    Definition matrix.hh:481
    \n+
    ConstIterator & operator++()
    prefix increment
    Definition matrix.hh:441
    \n+
    ConstIterator(const B *data, size_type columns, size_type _i)
    constructor from pointer
    Definition matrix.hh:414
    \n+
    ConstIterator & operator--()
    prefix decrement
    Definition matrix.hh:449
    \n+
    ConstIterator(const Iterator &it)
    constructor from non_const iterator
    Definition matrix.hh:420
    \n+
    bool operator!=(const ConstIterator &it) const
    inequality
    Definition matrix.hh:463
    \n+
    ConstIterator()
    constructor
    Definition matrix.hh:407
    \n+
    bool operator==(const ConstIterator &it) const
    equality
    Definition matrix.hh:457
    \n+
    size_type index() const
    Definition matrix.hh:493
    \n+
    ConstIterator & operator=(Iterator &&other)
    Definition matrix.hh:424
    \n+
    ConstIterator & operator=(Iterator &other)
    Definition matrix.hh:432
    \n+
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n+
    size_type cols_
    Number of columns of the matrix.
    Definition matrix.hh:1088
    \n+
    FieldTraits< ft >::real_type infinity_norm() const
    infinity norm (row sum norm, how to generalize for blocks?)
    Definition matrix.hh:992
    \n+
    A allocator_type
    Export the allocator.
    Definition matrix.hh:571
    \n+
    FieldTraits< ft >::real_type infinity_norm_real() const
    simplified infinity norm (uses Manhattan norm for complex values)
    Definition matrix.hh:1011
    \n+
    void usmhv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^H x
    Definition matrix.hh:956
    \n+
    void usmv(const field_type &alpha, const X &x, Y &y) const
    Definition matrix.hh:854
    \n+
    A::size_type size_type
    Type for indices and sizes.
    Definition matrix.hh:577
    \n+
    MatrixImp::DenseMatrixBase< T, A > data_
    Abuse DenseMatrixBase as an engine for a 2d array ISTL-style.
    Definition matrix.hh:1081
    \n+
    Matrix transpose() const
    Return the transpose of the matrix.
    Definition matrix.hh:745
    \n+
    void mtv(const X &x, Y &y) const
    y = A^T x
    Definition matrix.hh:807
    \n+
    void umv(const X &x, Y &y) const
    y += A x
    Definition matrix.hh:820
    \n+
    void mv(const X &x, Y &y) const
    y = A x
    Definition matrix.hh:788
    \n+
    MatrixImp::DenseMatrixBase< T, A >::ConstIterator ConstRowIterator
    Const iterator over the matrix rows.
    Definition matrix.hh:586
    \n+
    void setSize(size_type rows, size_type cols)
    Change the matrix size.
    Definition matrix.hh:608
    \n+
    RowIterator beforeBegin()
    Definition matrix.hh:634
    \n+
    RowIterator beforeEnd()
    Definition matrix.hh:627
    \n+
    Matrix()
    Create empty matrix.
    Definition matrix.hh:596
    \n+
    Matrix & operator-=(const Matrix &b)
    Subtract the entries of another matrix from this one.
    Definition matrix.hh:735
    \n+
    FieldTraits< field_type >::real_type frobenius_norm2() const
    square of frobenius norm, need for block recursion
    Definition matrix.hh:980
    \n+
    row_type::iterator ColIterator
    Iterator for the entries of each row.
    Definition matrix.hh:583
    \n+
    ConstRowIterator beforeEnd() const
    Definition matrix.hh:653
    \n+
    Matrix & operator=(const field_type &t)
    Assignment from scalar.
    Definition matrix.hh:666
    \n+
    RowIterator end()
    Get iterator to one beyond last row.
    Definition matrix.hh:620
    \n+
    const row_type operator[](size_type row) const
    The const index operator.
    Definition matrix.hh:684
    \n+
    ConstRowIterator end() const
    Get const iterator to one beyond last row.
    Definition matrix.hh:646
    \n+
    friend Y operator*(const Matrix< T > &m, const X &vec)
    Generic matrix-vector multiplication.
    Definition matrix.hh:770
    \n+
    Matrix< T > & operator*=(const field_type &scalar)
    Multiplication with a scalar.
    Definition matrix.hh:705
    \n+
    row_type operator[](size_type row)
    The index operator.
    Definition matrix.hh:673
    \n+
    void mmv(const X &x, Y &y) const
    y -= A x
    Definition matrix.hh:837
    \n+
    Matrix & operator+=(const Matrix &b)
    Add the entries of another matrix to this one.
    Definition matrix.hh:721
    \n+
    ConstRowIterator begin() const
    Get const iterator to first row.
    Definition matrix.hh:640
    \n+
    void mmhv(const X &x, Y &y) const
    y -= A^H x
    Definition matrix.hh:939
    \n+
    RowIterator begin()
    Get iterator to first row.
    Definition matrix.hh:614
    \n+
    typename Imp::BlockTraits< T >::field_type field_type
    Export the type representing the underlying field.
    Definition matrix.hh:565
    \n+
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n+
    static constexpr auto blocklevel
    The number of nesting levels the matrix contains.
    Definition matrix.hh:593
    \n+
    size_type M() const
    Return the number of columns.
    Definition matrix.hh:700
    \n+
    T block_type
    Export the type representing the components.
    Definition matrix.hh:568
    \n+
    bool exists(size_type i, size_type j) const
    return true if (i,j) is in pattern
    Definition matrix.hh:1068
    \n+
    Matrix< T > & operator/=(const field_type &scalar)
    Division by a scalar.
    Definition matrix.hh:711
    \n+
    friend Matrix< T > operator*(const Matrix< T > &m1, const Matrix< T > &m2)
    Generic matrix multiplication.
    Definition matrix.hh:755
    \n+
    void umtv(const X &x, Y &y) const
    y += A^T x
    Definition matrix.hh:871
    \n+
    void mmtv(const X &x, Y &y) const
    y -= A^T x
    Definition matrix.hh:888
    \n+
    MatrixImp::DenseMatrixBase< T, A >::window_type row_type
    The type implementing a matrix row.
    Definition matrix.hh:574
    \n+
    FieldTraits< field_type >::real_type frobenius_norm() const
    frobenius norm: sqrt(sum over squared values of entries)
    Definition matrix.hh:974
    \n+
    void usmtv(const field_type &alpha, const X &x, Y &y) const
    y += alpha A^T x
    Definition matrix.hh:905
    \n+
    void umhv(const X &x, Y &y) const
    y += A^H x
    Definition matrix.hh:922
    \n+
    size_type N() const
    Return the number of rows.
    Definition matrix.hh:695
    \n+
    ConstRowIterator beforeBegin() const
    Definition matrix.hh:660
    \n+
    Matrix(size_type rows, size_type cols)
    Create uninitialized matrix of size rows x cols.
    Definition matrix.hh:601
    \n+
    MatrixImp::DenseMatrixBase< T, A >::Iterator RowIterator
    Iterator over the matrix rows.
    Definition matrix.hh:580
    \n+
    typename Matrix< T, A >::field_type field_type
    Definition matrix.hh:1094
    \n+
    typename FieldTraits< field_type >::real_type real_type
    Definition matrix.hh:1095
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,303 +1,1378 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-solverfactory.hh\n+matrix.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5\n-6#ifndef DUNE_ISTL_SOLVERFACTORY_HH\n-7#define DUNE_ISTL_SOLVERFACTORY_HH\n-8\n-9#include \n-10#include \n-11#include \n-12\n-13#include \n-14#include \n-15\n-16#include \"_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\"\n-17#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n-18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n-19#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh>\n-20\n-21namespace _\bD_\bu_\bn_\be{\n-26 // Direct solver factory:\n-27 template\n-_\b2_\b8 using _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr>(const\n-M&, const ParameterTree&);\n-29 template\n-_\b3_\b0 using _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by =\n-Singleton>>;\n-31\n-32 // Preconditioner factory:\n-33 template\n-_\b3_\b4 using _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr>(const\n-std::shared_ptr&, const ParameterTree&);\n-35 template\n-_\b3_\b6 using _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by =\n-Singleton>>;\n-37\n-38 // Iterative solver factory\n-39 template\n-_\b4_\b0 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be = std::shared_ptr>(const\n-std::shared_ptr>&, const std::\n-shared_ptr>&, const std::shared_ptr>,\n-const ParameterTree&);\n-41 template\n-_\b4_\b2 using _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by =\n-Singleton>>;\n-43\n-44 // initSolverFactories differs in different compilation units, so we have it\n-45 // in an anonymous namespace\n-46 namespace {\n-47\n-53 template\n-54 int initSolverFactories(){\n-55 using M = typename O::matrix_type;\n-56 using X = typename O::range_type;\n-57 using Y = typename O::domain_type;\n-58 using TL = Dune::TypeList;\n-59 auto& dsfac=_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be();\n-60 addRegistryToFactory(dsfac, DirectSolverTag{});\n-61 auto& pfac=_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bO_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be();\n-62 addRegistryToFactory(pfac, PreconditionerTag{});\n-63 using TLS = Dune::TypeList;\n-64 auto& isfac=_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be();\n-65 return addRegistryToFactory(isfac, IterativeSolverTag{});\n-66 }\n-77 template\n-78 [[deprecated(\"Use method 'initSolverFactories' instead\")]]\n-79 int initSolverFactories() {\n-80 return initSolverFactories();\n-81 }\n-82 } // end anonymous namespace\n-83\n-84\n-85 template\n-_\b8_\b6 std::shared_ptr _\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl(const std::\n-shared_ptr& prec,\n-87 const O&)\n-88 {\n-89 return prec;\n-90 }\n-91\n-92 template\n-93 std::shared_ptr\n-_\b9_\b4 _\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl(const std::shared_ptr& prec,\n-95 const std::shared_ptr<_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b> >& op)\n+5#ifndef DUNE_ISTL_MATRIX_HH\n+6#define DUNE_ISTL_MATRIX_HH\n+7\n+12#include \n+13#include \n+14\n+15#include \n+16#include \n+17#include \n+18#include \n+19\n+20#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n+22#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+23\n+24namespace _\bD_\bu_\bn_\be {\n+25\n+_\b2_\b6namespace MatrixImp\n+27{\n+39 template >\n+_\b4_\b0 class _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be : public Imp::block_vector_unmanaged\n+41 // this derivation gives us all the blas level 1 and norms\n+42 // on the large array. However, access operators have to be\n+43 // overwritten.\n+44 {\n+45 public:\n+46\n+47 //===== type definitions and constants\n+48\n+_\b5_\b0 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n+51\n+_\b5_\b3 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n+54\n+_\b5_\b6 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+57\n+_\b6_\b3 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bB_\b,_\bA_\b> _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be;\n+64\n+_\b6_\b7 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bB_\b,_\bA_\b> _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+68\n+69 // just a shorthand\n+_\b7_\b0 typedef Imp::BlockVectorWindow _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be;\n+71\n+_\b7_\b2 typedef _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+73\n+_\b7_\b4 typedef const _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+75\n+76\n+77 //===== constructors and such\n+78\n+_\b8_\b2 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be () : Imp::block_vector_unmanaged()\n+83 {\n+84 // nothing is known ...\n+85 rows_ = 0;\n+86 columns_ = 0;\n+87 }\n+88\n+_\b9_\b5 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns) : Imp::\n+block_vector_unmanaged()\n 96 {\n-97 return std::make_shared >(prec,\n-op->getCommunication());\n-98 }\n-99\n-100 template\n-101 std::shared_ptr\n-_\b1_\b0_\b2 _\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl(const std::shared_ptr& prec,\n-103 const std::shared_ptr<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b> >& op)\n-104 {\n-105 return std::make_shared\n->(prec, op->getCommunication());\n-106 }\n-107\n-108 template\n-_\b1_\b0_\b9 std::shared_ptr> _\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(const std::\n-shared_ptr<_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b> >&)\n-110 {\n-111 return std::make_shared>();\n-112 }\n-113 template\n-_\b1_\b1_\b4 std::shared_ptr> _\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(const std::\n-shared_ptr<_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b> >& op)\n-115 {\n-116 return createScalarProduct(op->getCommunication(), op->category());\n-117 }\n-118\n-119 template\n-_\b1_\b2_\b0 std::shared_ptr> _\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(const std::\n-shared_ptr<_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bC_\b> >& op)\n-121 {\n-122 return createScalarProduct(op->getCommunication(), op->category());\n-123 }\n-124\n-144 template\n-_\b1_\b4_\b5 class _\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by {\n-146 using Domain = typename Operator::domain_type;\n-147 using Range = typename Operator::range_type;\n-148 using _\bS_\bo_\bl_\bv_\be_\br = _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\bR_\ba_\bn_\bg_\be_\b>;\n-149 using _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br = _\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>;\n-150\n-151 template\n-152 using _matrix_type = typename O::matrix_type;\n-153 using matrix_type = Std::detected_or_t;\n-154 static constexpr bool isAssembled = !std::is_same::value;\n-155\n-156 static const matrix_type* getmat(std::shared_ptr op){\n-157 std::shared_ptr> aop\n-158 = std::dynamic_pointer_cast>(op);\n-159 if(aop)\n-160 return &aop->getmat();\n-161 return nullptr;\n-162 }\n-163\n-164 public:\n-165\n-_\b1_\b6_\b8 static std::shared_ptr _\bg_\be_\bt(std::shared_ptr op,\n-169 const ParameterTree& config,\n-170 std::shared_ptr prec = nullptr){\n-171 std::string type = config.get(\"type\");\n-172 std::shared_ptr result;\n-173 const matrix_type* _\bm_\ba_\bt = getmat(op);\n-174 if(_\bm_\ba_\bt){\n-175 if (_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b,_\b _\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().contains\n-(type)) {\n-176 if(op->category()!=_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl){\n-177 DUNE_THROW(NotImplemented, \"The solver factory does not support parallel\n-direct solvers!\");\n-178 }\n-179 result = _\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b,_\b _\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().create\n-(type, *_\bm_\ba_\bt, config);\n-180 return result;\n-181 }\n-182 }\n-183 // if no direct solver is found it might be an iterative solver\n-184 if (!_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().contains(type)) {\n-185 DUNE_THROW(Dune::InvalidStateException, \"Solver not found in the\n-factory.\");\n-186 }\n-187 if(!prec){\n-188 const ParameterTree& precConfig = config.sub(\"preconditioner\");\n-189 std::string prec_type = precConfig.get(\"type\");\n-190 prec = _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().create\n-(prec_type, op, precConfig);\n-191 if (prec->category() != op->category() && prec->category() ==\n-_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl)\n-192 // try to wrap to a parallel preconditioner\n-193 prec = _\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl(prec, op);\n-194 }\n-195 std::shared_ptr> sp = _\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt(op);\n-196 result = _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().create(type, op,\n-sp, prec, config);\n-197 return result;\n-198 }\n-199\n-_\b2_\b0_\b3 static std::shared_ptr _\bg_\be_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br(std::\n-shared_ptr op,\n-204 const ParameterTree& config){\n-205 const matrix_type* _\bm_\ba_\bt = getmat(op);\n-206 if(_\bm_\ba_\bt){\n-207 std::string prec_type = config.get(\"type\");\n-208 return _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b,_\b _\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b>_\b:_\b:_\bi_\bn_\bs_\bt_\ba_\bn_\bc_\be().create\n-(prec_type, op, config);\n-209 }else{\n-210 DUNE_THROW(InvalidStateException, \"Could not obtain matrix from operator.\n-Please pass in an AssembledLinearOperator.\");\n+97 // and we can allocate the big array in the base class\n+98 this->n = rows*columns;\n+99 columns_ = columns;\n+100 if (this->n>0)\n+101 {\n+102 this->p = allocator_.allocate(this->n);\n+103 new (this->p)B[this->n];\n+104 }\n+105 else\n+106 {\n+107 this->n = 0;\n+108 this->p = 0;\n+109 }\n+110\n+111 // we can allocate the windows now\n+112 rows_ = rows;\n+113 }\n+114\n+_\b1_\b1_\b6 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be& a)\n+117 {\n+118 // allocate the big array in the base class\n+119 this->n = a.n;\n+120 columns_ = a.columns_;\n+121 if (this->n>0)\n+122 {\n+123 // allocate and construct objects\n+124 this->p = allocator_.allocate(this->n);\n+125 new (this->p)B[this->n];\n+126\n+127 // copy data\n+128 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; in; i++)\n+129 this->p[i]=a.p[i];\n+130 }\n+131 else\n+132 {\n+133 this->n = 0;\n+134 this->p = nullptr;\n+135 }\n+136\n+137 // we can allocate the windows now\n+138 rows_ = a.rows_;\n+139 }\n+140\n+_\b1_\b4_\b2 _\b~_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be ()\n+143 {\n+144 if (this->n>0) {\n+145 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n+146 while (i)\n+147 this->p[--i].~B();\n+148 allocator_.deallocate(this->p,this->n);\n+149 }\n+150 }\n+151\n+_\b1_\b5_\b3 void _\br_\be_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns)\n+154 {\n+155 // deconstruct objects and deallocate memory if necessary\n+156 if (this->n>0) {\n+157 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n+158 while (i)\n+159 this->p[--i].~B();\n+160 allocator_.deallocate(this->p,this->n);\n+161 }\n+162\n+163 // and we can allocate the big array in the base class\n+164 this->n = rows*columns;\n+165 if (this->n>0)\n+166 {\n+167 this->p = allocator_.allocate(this->n);\n+168 new (this->p)B[this->n];\n+169 }\n+170 else\n+171 {\n+172 this->n = 0;\n+173 this->p = nullptr;\n+174 }\n+175\n+176 // we can allocate the windows now\n+177 rows_ = rows;\n+178 columns_ = columns;\n+179 }\n+180\n+_\b1_\b8_\b2 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be& a)\n+183 {\n+184 if (&a!=this) // check if this and a are different objects\n+185 {\n+186 columns_ = a.columns_;\n+187 // reallocate arrays if necessary\n+188 // Note: still the block sizes may vary !\n+189 if (this->n!=a.n || rows_!=a.rows_)\n+190 {\n+191 // deconstruct objects and deallocate memory if necessary\n+192 if (this->n>0) {\n+193 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n+194 while (i)\n+195 this->p[--i].~B();\n+196 allocator_.deallocate(this->p,this->n);\n+197 }\n+198\n+199 // allocate the big array in the base class\n+200 this->n = a.n;\n+201 if (this->n>0)\n+202 {\n+203 // allocate and construct objects\n+204 this->p = allocator_.allocate(this->n);\n+205 new (this->p)B[this->n];\n+206 }\n+207 else\n+208 {\n+209 this->n = 0;\n+210 this->p = nullptr;\n 211 }\n-212 }\n-213 };\n-214\n-225 template\n-226 std::shared_ptr> _\bg_\be_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\br_\bo_\bm_\bF_\ba_\bc_\bt_\bo_\br_\by(std::\n-shared_ptr op,\n-228 const ParameterTree& config,\n-229 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br> prec = nullptr){\n-231 return _\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b<_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b>_\b:_\b:_\bg_\be_\bt(op, config, prec);\n-232 }\n-233\n-237} // end namespace Dune\n-238\n+212\n+213 // Copy number of rows\n+214 rows_ = a.rows_;\n+215 }\n+216\n+217 // and copy the data\n+218 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; in; i++)\n+219 this->p[i]=a.p[i];\n+220 }\n+221\n+222 return *this;\n+223 }\n+224\n+225\n+226 //===== assignment from scalar\n+227\n+_\b2_\b2_\b9 _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n+230 {\n+231 (static_cast&>(*this)) = k;\n+232 return *this;\n+233 }\n+234\n+235\n+236 //===== access to components\n+237 // has to be overwritten from base class because it must\n+238 // return access to the windows\n 239\n-240#endif\n-_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh\n-_\bn_\bo_\bv_\bl_\bp_\bs_\bc_\bh_\bw_\ba_\br_\bz_\b._\bh_\bh\n-_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\n-_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n-Define general, extensible interface for inverse operators.\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by\n-Singleton< ParameterizedObjectFactory< PreconditionerSignature< M, X, Y > > >\n-PreconditionerFactory\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by\n-Singleton< ParameterizedObjectFactory< DirectSolverSignature< M, X, Y > > >\n-DirectSolverFactory\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be\n-std::shared_ptr< InverseOperator< X, Y > >(const std::shared_ptr<\n-LinearOperator< X, Y > > &, const std::shared_ptr< ScalarProduct< X > > &,\n-const std::shared_ptr< Preconditioner< X, Y > >, const ParameterTree &)\n-IterativeSolverSignature\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:40\n-_\bD_\bu_\bn_\be_\b:_\b:_\bw_\br_\ba_\bp_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b4_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl\n-std::shared_ptr< Preconditioner > wrapPreconditioner4Parallel(const std::\n-shared_ptr< Preconditioner > &prec, const O &)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:86\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be\n-std::shared_ptr< InverseOperator< X, Y > >(const M &, const ParameterTree &)\n-DirectSolverSignature\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt_\bS_\bo_\bl_\bv_\be_\br_\bF_\br_\bo_\bm_\bF_\ba_\bc_\bt_\bo_\br_\by\n-std::shared_ptr< InverseOperator< typename Operator::domain_type, typename\n-Operator::range_type > > getSolverFromFactory(std::shared_ptr< Operator > op,\n-const ParameterTree &config, std::shared_ptr< Preconditioner< typename\n-Operator::domain_type, typename Operator::range_type > > prec=nullptr)\n-Instantiates an InverseOperator from an Operator and a configuration given as a\n-ParameterTree.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:227\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by\n-Singleton< ParameterizedObjectFactory< IterativeSolverSignature< X, Y > > >\n-IterativeSolverFactory\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:42\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bS_\bi_\bg_\bn_\ba_\bt_\bu_\br_\be\n-std::shared_ptr< Preconditioner< X, Y > >(const std::shared_ptr< M > &, const\n-ParameterTree &) PreconditionerSignature\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:34\n+_\b2_\b4_\b1 _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n+242 {\n+243#ifdef DUNE_ISTL_WITH_CHECKING\n+244 if (i>=rows_) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n+245#endif\n+246 return _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be(this->p + i*columns_, columns_);\n+247 }\n+248\n+_\b2_\b5_\b0 _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n+251 {\n+252#ifdef DUNE_ISTL_WITH_CHECKING\n+253 if (i<0 || i>=rows_) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n+254#endif\n+255 return _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be(this->p + i*columns_, columns_);\n+256 }\n+257\n+258 // forward declaration\n+259 class ConstIterator;\n+260\n+_\b2_\b6_\b2 class _\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+263 {\n+264 public:\n+_\b2_\b6_\b6 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br ()\n+267 : window_(nullptr,0)\n+268 {\n+269 i = 0;\n+270 }\n+271\n+_\b2_\b7_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br (_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other) = default;\n+_\b2_\b7_\b3 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br (_\bI_\bt_\be_\br_\ba_\bt_\bo_\br&& other) = default;\n+274\n+_\b2_\b7_\b6 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br (B* data, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i)\n+277 : i(_i),\n+278 window_(data + _i*columns, columns)\n+279 {}\n+280\n+_\b2_\b8_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(_\bI_\bt_\be_\br_\ba_\bt_\bo_\br&& other)\n+283 {\n+284 i = other.i;\n+285 // Do NOT use window_.operator=, because that copies the window content,\n+not just the window!\n+286 window_.set(other.window_.getsize(),other.window_.getptr());\n+287 return *this;\n+288 }\n+289\n+_\b2_\b9_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other)\n+292 {\n+293 i = other.i;\n+294 // Do NOT use window_.operator=, because that copies the window content,\n+not just the window!\n+295 window_.set(other.window_.getsize(),other.window_.getptr());\n+296 return *this;\n+297 }\n+298\n+_\b3_\b0_\b0 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+301 {\n+302 ++i;\n+303 window_.setptr(window_.getptr()+window_.getsize());\n+304 return *this;\n+305 }\n+306\n+_\b3_\b0_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-()\n+309 {\n+310 --i;\n+311 window_.setptr(window_.getptr()-window_.getsize());\n+312 return *this;\n+313 }\n+314\n+_\b3_\b1_\b6 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+317 {\n+318 return window_.getptr() == it.window_.getptr();\n+319 }\n+320\n+_\b3_\b2_\b2 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+323 {\n+324 return window_.getptr() != it.window_.getptr();\n+325 }\n+326\n+_\b3_\b2_\b8 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+329 {\n+330 return window_.getptr() == it.window_.getptr();\n+331 }\n+332\n+_\b3_\b3_\b4 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+335 {\n+336 return window_.getptr() != it.window_.getptr();\n+337 }\n+338\n+_\b3_\b4_\b0 _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b () const\n+341 {\n+342 return window_;\n+343 }\n+344\n+_\b3_\b4_\b6 _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be* _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>_\b () const\n+347 {\n+348 return &window_;\n+349 }\n+350\n+351 // return index corresponding to pointer\n+_\b3_\b5_\b2 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx () const\n+353 {\n+354 return i;\n+355 }\n+356\n+_\b3_\b5_\b7 friend class _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+358\n+359 private:\n+360 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i;\n+361 mutable _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be window_;\n+362 };\n+363\n+_\b3_\b6_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn ()\n+366 {\n+367 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, 0);\n+368 }\n+369\n+_\b3_\b7_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd ()\n+372 {\n+373 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, rows_);\n+374 }\n+375\n+_\b3_\b7_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n+379 {\n+380 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, rows_-1);\n+381 }\n+382\n+_\b3_\b8_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n+386 {\n+387 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, -1);\n+388 }\n+389\n+_\b3_\b9_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\bd (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n+392 {\n+393 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, std::min(i,rows_));\n+394 }\n+395\n+_\b3_\b9_\b7 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\bd (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n+398 {\n+399 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, std::min(i,rows_));\n+400 }\n+401\n+_\b4_\b0_\b3 class _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+404 {\n+405 public:\n+_\b4_\b0_\b7 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ()\n+408 : window_(nullptr,0)\n+409 {\n+410 i = 0;\n+411 }\n+412\n+_\b4_\b1_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (const B* data, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i)\n+415 : i(_i),\n+416 window_(const_cast(data + _i * columns), columns)\n+417 {}\n+418\n+_\b4_\b2_\b0 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it)\n+421 : i(it.i), window_(it.window_.getptr(),it.window_.getsize())\n+422 {}\n+423\n+_\b4_\b2_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(_\bI_\bt_\be_\br_\ba_\bt_\bo_\br&& other)\n+425 {\n+426 i = other.i;\n+427 // Do NOT use window_.operator=, because that copies the window content,\n+not just the window!\n+428 window_.set(other.window_.getsize(),other.window_.getptr());\n+429 return *this;\n+430 }\n+431\n+_\b4_\b3_\b2 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& other)\n+433 {\n+434 i = other.i;\n+435 // Do NOT use window_.operator=, because that copies the window content,\n+not just the window!\n+436 window_.set(other.window_.getsize(),other.window_.getptr());\n+437 return *this;\n+438 }\n+439\n+_\b4_\b4_\b1 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n+442 {\n+443 ++i;\n+444 window_.setptr(window_.getptr()+window_.getsize());\n+445 return *this;\n+446 }\n+447\n+_\b4_\b4_\b9 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-()\n+450 {\n+451 --i;\n+452 window_.setptr(window_.getptr()-window_.getsize());\n+453 return *this;\n+454 }\n+455\n+_\b4_\b5_\b7 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+458 {\n+459 return window_.getptr() == it.window_.getptr();\n+460 }\n+461\n+_\b4_\b6_\b3 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+464 {\n+465 return window_.getptr() != it.window_.getptr();\n+466 }\n+467\n+_\b4_\b6_\b9 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+470 {\n+471 return window_.getptr() == it.window_.getptr();\n+472 }\n+473\n+_\b4_\b7_\b5 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n+476 {\n+477 return window_.getptr() != it.window_.getptr();\n+478 }\n+479\n+_\b4_\b8_\b1 const _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b () const\n+482 {\n+483 return window_;\n+484 }\n+485\n+_\b4_\b8_\b7 const _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be* _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>_\b () const\n+488 {\n+489 return &window_;\n+490 }\n+491\n+492 // return index corresponding to pointer\n+_\b4_\b9_\b3 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx () const\n+494 {\n+495 return i;\n+496 }\n+497\n+_\b4_\b9_\b8 friend class _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+499\n+500 private:\n+501 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i;\n+502 mutable _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be window_;\n+503 };\n+504\n+_\b5_\b0_\b6 using _\bi_\bt_\be_\br_\ba_\bt_\bo_\br = _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+507\n+_\b5_\b0_\b9 using _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br = _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+510\n+_\b5_\b1_\b2 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn () const\n+513 {\n+514 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, 0);\n+515 }\n+516\n+_\b5_\b1_\b8 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd () const\n+519 {\n+520 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, rows_);\n+521 }\n+522\n+_\b5_\b2_\b5 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd() const\n+526 {\n+527 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, rows_-1);\n+528 }\n+529\n+_\b5_\b3_\b1 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\br_\be_\bn_\bd () const\n+532 {\n+533 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(this->p, columns_, -1);\n+534 }\n+535\n+536 //===== sizes\n+537\n+_\b5_\b3_\b9 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN () const\n+540 {\n+541 return rows_;\n+542 }\n+543\n+544\n+545 private:\n+546 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows_; // number of matrix rows\n+547 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be columns_; // number of matrix columns\n+548\n+549 A allocator_;\n+550 };\n+551\n+552} // namespace MatrixImp\n+553\n+559 template >\n+_\b5_\b6_\b0 class _\bM_\ba_\bt_\br_\bi_\bx\n+561 {\n+562 public:\n+563\n+_\b5_\b6_\b5 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n+566\n+_\b5_\b6_\b8 typedef T _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+569\n+_\b5_\b7_\b1 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n+572\n+_\b5_\b7_\b4 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\b__\bt_\by_\bp_\be;\n+575\n+_\b5_\b7_\b7 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+578\n+_\b5_\b8_\b0 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+581\n+_\b5_\b8_\b3 typedef typename row_type::iterator _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+584\n+_\b5_\b8_\b6 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\bT_\b,_\bA_\b>_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+587\n+_\b5_\b8_\b9 typedef typename row_type::const_iterator _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+590\n+592 [[deprecated(\"Use free function blockLevel(). Will be removed after\n+2.8.\")]]\n+_\b5_\b9_\b3 static constexpr auto _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+1;\n+594\n+_\b5_\b9_\b6 _\bM_\ba_\bt_\br_\bi_\bx() : _\bd_\ba_\bt_\ba_\b_(0,0), _\bc_\bo_\bl_\bs_\b_(0)\n+597 {}\n+598\n+_\b6_\b0_\b1 _\bM_\ba_\bt_\br_\bi_\bx(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be cols) : _\bd_\ba_\bt_\ba_\b_(rows,cols), _\bc_\bo_\bl_\bs_\b_(cols)\n+602 {}\n+603\n+_\b6_\b0_\b8 void _\bs_\be_\bt_\bS_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be cols) {\n+609 _\bd_\ba_\bt_\ba_\b_.resize(rows,cols);\n+610 _\bc_\bo_\bl_\bs_\b_ = cols;\n+611 }\n+612\n+_\b6_\b1_\b4 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn()\n+615 {\n+616 return _\bd_\ba_\bt_\ba_\b_.begin();\n+617 }\n+618\n+_\b6_\b2_\b0 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd()\n+621 {\n+622 return _\bd_\ba_\bt_\ba_\b_.end();\n+623 }\n+624\n+_\b6_\b2_\b7 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n+628 {\n+629 return _\bd_\ba_\bt_\ba_\b_.beforeEnd();\n+630 }\n+631\n+_\b6_\b3_\b4 _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn ()\n+635 {\n+636 return _\bd_\ba_\bt_\ba_\b_.beforeBegin();\n+637 }\n+638\n+_\b6_\b4_\b0 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn() const\n+641 {\n+642 return _\bd_\ba_\bt_\ba_\b_.begin();\n+643 }\n+644\n+_\b6_\b4_\b6 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd() const\n+647 {\n+648 return _\bd_\ba_\bt_\ba_\b_.end();\n+649 }\n+650\n+_\b6_\b5_\b3 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd() const\n+654 {\n+655 return _\bd_\ba_\bt_\ba_\b_.beforeEnd();\n+656 }\n+657\n+_\b6_\b6_\b0 _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n+661 {\n+662 return _\bd_\ba_\bt_\ba_\b_.beforeBegin();\n+663 }\n+664\n+_\b6_\b6_\b6 _\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& t)\n+667 {\n+668 _\bd_\ba_\bt_\ba_\b_ = t;\n+669 return *this;\n+670 }\n+671\n+_\b6_\b7_\b3 _\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row) {\n+674#ifdef DUNE_ISTL_WITH_CHECKING\n+675 if (row<0)\n+676 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Can't access negative rows!\");\n+677 if (row>=_\bN())\n+678 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Row index out of range!\");\n+679#endif\n+680 return _\bd_\ba_\bt_\ba_\b_[row];\n+681 }\n+682\n+_\b6_\b8_\b4 const _\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row) const {\n+685#ifdef DUNE_ISTL_WITH_CHECKING\n+686 if (row<0)\n+687 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Can't access negative rows!\");\n+688 if (row>=_\bN())\n+689 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Row index out of range!\");\n+690#endif\n+691 return _\bd_\ba_\bt_\ba_\b_[row];\n+692 }\n+693\n+_\b6_\b9_\b5 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN() const {\n+696 return _\bd_\ba_\bt_\ba_\b_.N();\n+697 }\n+698\n+_\b7_\b0_\b0 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bM() const {\n+701 return _\bc_\bo_\bl_\bs_\b_;\n+702 }\n+703\n+_\b7_\b0_\b5 _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=(const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& scalar) {\n+706 _\bd_\ba_\bt_\ba_\b_ *= scalar;\n+707 return (*this);\n+708 }\n+709\n+_\b7_\b1_\b1 _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=(const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& scalar) {\n+712 _\bd_\ba_\bt_\ba_\b_ /= scalar;\n+713 return (*this);\n+714 }\n+715\n+_\b7_\b2_\b1 _\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bM_\ba_\bt_\br_\bi_\bx& b) {\n+722#ifdef DUNE_ISTL_WITH_CHECKING\n+723 if(_\bN()!=b._\bN() || _\bM() != b._\bM())\n+724 DUNE_THROW(RangeError, \"Matrix sizes do not match!\");\n+725#endif\n+726 _\bd_\ba_\bt_\ba_\b_ += b._\bd_\ba_\bt_\ba_\b_;\n+727 return (*this);\n+728 }\n+729\n+_\b7_\b3_\b5 _\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bM_\ba_\bt_\br_\bi_\bx& b) {\n+736#ifdef DUNE_ISTL_WITH_CHECKING\n+737 if(_\bN()!=b._\bN() || _\bM() != b._\bM())\n+738 DUNE_THROW(RangeError, \"Matrix sizes do not match!\");\n+739#endif\n+740 _\bd_\ba_\bt_\ba_\b_ -= b._\bd_\ba_\bt_\ba_\b_;\n+741 return (*this);\n+742 }\n+743\n+_\b7_\b4_\b5 _\bM_\ba_\bt_\br_\bi_\bx _\bt_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be() const {\n+746 _\bM_\ba_\bt_\br_\bi_\bx out(_\bM(), _\bN());\n+747 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bN(); i++)\n+748 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bM(); j++)\n+749 out[j][i] = (*this)[i][j];\n+750\n+751 return out;\n+752 }\n+753\n+_\b7_\b5_\b5 friend _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b> _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*(const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& m1, const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& m2) {\n+756 _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b> out(m1._\bN(), m2._\bM());\n+757 out = 0;\n+758\n+759 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b7_\b7_\b0 friend Y _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*(const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b>& m, const X& vec) {\n+771#ifdef DUNE_ISTL_WITH_CHECKING\n+772 if (m._\bM()!=vec.size())\n+773 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Vector size doesn't match the number of matrix\n+columns!\");\n+774#endif\n+775 Y out(m._\bN());\n+776 out = 0;\n+777\n+778 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b7_\b8_\b8 void _\bm_\bv(const X& x, Y& y) const\n+789 {\n+790#ifdef DUNE_ISTL_WITH_CHECKING\n+791 if (x.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+792 if (y.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+793#endif\n+794 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++) {\n+795 y[i]=0;\n+796 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n+797 {\n+798 auto&& xj = Impl::asVector(x[j]);\n+799 auto&& yi = Impl::asVector(y[i]);\n+800 Impl::asMatrix((*this)[i][j]).umv(xj, yi);\n+801 }\n+802 }\n+803 }\n+804\n+806 template\n+_\b8_\b0_\b7 void _\bm_\bt_\bv (const X& x, Y& y) const\n+808 {\n+809#ifdef DUNE_ISTL_WITH_CHECKING\n+810 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n+811 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n+812#endif\n+813 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b8_\b2_\b0 void _\bu_\bm_\bv(const X& x, Y& y) const\n+821 {\n+822#ifdef DUNE_ISTL_WITH_CHECKING\n+823 if (x.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+824 if (y.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+825#endif\n+826 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n+827 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n+828 {\n+829 auto&& xj = Impl::asVector(x[j]);\n+830 auto&& yi = Impl::asVector(y[i]);\n+831 Impl::asMatrix((*this)[i][j]).umv(xj, yi);\n+832 }\n+833 }\n+834\n+836 template\n+_\b8_\b3_\b7 void _\bm_\bm_\bv (const X& x, Y& y) const\n+838 {\n+839#ifdef DUNE_ISTL_WITH_CHECKING\n+840 if (x.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+841 if (y.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+842#endif\n+843 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n+844 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n+845 {\n+846 auto&& xj = Impl::asVector(x[j]);\n+847 auto&& yi = Impl::asVector(y[i]);\n+848 Impl::asMatrix((*this)[i][j]).mmv(xj, yi);\n+849 }\n+850 }\n+851\n+853 template \n+_\b8_\b5_\b4 void _\bu_\bs_\bm_\bv(const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const\n+855 {\n+856#ifdef DUNE_ISTL_WITH_CHECKING\n+857 if (x.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+858 if (y.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+859#endif\n+860 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n+861 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n+862 {\n+863 auto&& xj = Impl::asVector(x[j]);\n+864 auto&& yi = Impl::asVector(y[i]);\n+865 Impl::asMatrix((*this)[i][j]).usmv(alpha, xj, yi);\n+866 }\n+867 }\n+868\n+870 template\n+_\b8_\b7_\b1 void _\bu_\bm_\bt_\bv (const X& x, Y& y) const\n+872 {\n+873#ifdef DUNE_ISTL_WITH_CHECKING\n+874 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+875 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+876#endif\n+877 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n+878 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n+879 {\n+880 auto&& xi = Impl::asVector(x[i]);\n+881 auto&& yj = Impl::asVector(y[j]);\n+882 Impl::asMatrix((*this)[i][j]).umtv(xi, yj);\n+883 }\n+884 }\n+885\n+887 template\n+_\b8_\b8_\b8 void _\bm_\bm_\bt_\bv (const X& x, Y& y) const\n+889 {\n+890#ifdef DUNE_ISTL_WITH_CHECKING\n+891 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+892 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+893#endif\n+894 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n+895 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n+896 {\n+897 auto&& xi = Impl::asVector(x[i]);\n+898 auto&& yj = Impl::asVector(y[j]);\n+899 Impl::asMatrix((*this)[i][j]).mmtv(xi, yj);\n+900 }\n+901 }\n+902\n+904 template\n+_\b9_\b0_\b5 void _\bu_\bs_\bm_\bt_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const\n+906 {\n+907#ifdef DUNE_ISTL_WITH_CHECKING\n+908 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+909 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+910#endif\n+911 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n+912 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n+913 {\n+914 auto&& xi = Impl::asVector(x[i]);\n+915 auto&& yj = Impl::asVector(y[j]);\n+916 Impl::asMatrix((*this)[i][j]).usmtv(alpha, xi, yj);\n+917 }\n+918 }\n+919\n+921 template\n+_\b9_\b2_\b2 void _\bu_\bm_\bh_\bv (const X& x, Y& y) const\n+923 {\n+924#ifdef DUNE_ISTL_WITH_CHECKING\n+925 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+926 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+927#endif\n+928 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n+929 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n+930 {\n+931 auto&& xi = Impl::asVector(x[i]);\n+932 auto&& yj = Impl::asVector(y[j]);\n+933 Impl::asMatrix((*this)[i][j]).umhv(xi,yj);\n+934 }\n+935 }\n+936\n+938 template\n+_\b9_\b3_\b9 void _\bm_\bm_\bh_\bv (const X& x, Y& y) const\n+940 {\n+941#ifdef DUNE_ISTL_WITH_CHECKING\n+942 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+943 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+944#endif\n+945 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n+946 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n+947 {\n+948 auto&& xi = Impl::asVector(x[i]);\n+949 auto&& yj = Impl::asVector(y[j]);\n+950 Impl::asMatrix((*this)[i][j]).mmhv(xi,yj);\n+951 }\n+952 }\n+953\n+955 template\n+_\b9_\b5_\b6 void _\bu_\bs_\bm_\bh_\bv (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& alpha, const X& x, Y& y) const\n+957 {\n+958#ifdef DUNE_ISTL_WITH_CHECKING\n+959 if (x.N()!=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+960 if (y.N()!=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"vector/matrix size mismatch!\");\n+961#endif\n+962 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i<_\bd_\ba_\bt_\ba_\b_.N(); i++)\n+963 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j<_\bc_\bo_\bl_\bs_\b_; j++)\n+964 {\n+965 auto&& xi = Impl::asVector(x[i]);\n+966 auto&& yj = Impl::asVector(y[j]);\n+967 Impl::asMatrix((*this)[i][j]).usmhv(alpha,xi,yj);\n+968 }\n+969 }\n+970\n+971 //===== norms\n+972\n+_\b9_\b7_\b4 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm () const\n+975 {\n+976 return std::sqrt(_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2());\n+977 }\n+978\n+_\b9_\b8_\b0 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2 () const\n+981 {\n+982 typename FieldTraits::real_type sum=0;\n+983 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i_\bN(); i++)\n+984 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j_\bM(); j++)\n+985 sum += Impl::asMatrix(_\bd_\ba_\bt_\ba_\b_[i][j]).frobenius_norm2();\n+986 return sum;\n+987 }\n+988\n+990 template ::value, int>::type = 0>\n+_\b9_\b9_\b2 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const {\n+993 using real_type = typename FieldTraits::real_type;\n+994 using std::max;\n+995\n+996 real_type norm = 0;\n+997 for (auto const &x : *this) {\n+998 real_type sum = 0;\n+999 for (auto const &y : x)\n+1000 sum += Impl::asMatrix(y).infinity_norm();\n+1001 norm = max(sum, norm);\n+1002 isNaN += sum;\n+1003 }\n+1004\n+1005 return norm;\n+1006 }\n+1007\n+1009 template ::value, int>::type = 0>\n+_\b1_\b0_\b1_\b1 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n+1012 using real_type = typename FieldTraits::real_type;\n+1013 using std::max;\n+1014\n+1015 real_type norm = 0;\n+1016 for (auto const &x : *this) {\n+1017 real_type sum = 0;\n+1018 for (auto const &y : x)\n+1019 sum += Impl::asMatrix(y).infinity_norm_real();\n+1020 norm = max(sum, norm);\n+1021 }\n+1022 return norm;\n+1023 }\n+1024\n+1026 template ::value, int>::type = 0>\n+_\b1_\b0_\b2_\b8 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const {\n+1029 using real_type = typename FieldTraits::real_type;\n+1030 using std::max;\n+1031\n+1032 real_type norm = 0;\n+1033 real_type isNaN = 1;\n+1034 for (auto const &x : *this) {\n+1035 real_type sum = 0;\n+1036 for (auto const &y : x)\n+1037 sum += Impl::asMatrix(y).infinity_norm();\n+1038 norm = max(sum, norm);\n+1039 isNaN += sum;\n+1040 }\n+1041\n+1042 return norm * (isNaN / isNaN);\n+1043 }\n+1044\n+1046 template ::value, int>::type = 0>\n+_\b1_\b0_\b4_\b8 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n+1049 using real_type = typename FieldTraits::real_type;\n+1050 using std::max;\n+1051\n+1052 real_type norm = 0;\n+1053 real_type isNaN = 1;\n+1054 for (auto const &x : *this) {\n+1055 real_type sum = 0;\n+1056 for (auto const &y : x)\n+1057 sum += Impl::asMatrix(y).infinity_norm_real();\n+1058 norm = max(sum, norm);\n+1059 isNaN += sum;\n+1060 }\n+1061\n+1062 return norm * (isNaN / isNaN);\n+1063 }\n+1064\n+1065 //===== query\n+1066\n+_\b1_\b0_\b6_\b8 bool _\be_\bx_\bi_\bs_\bt_\bs ([[maybe_unused]] _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, [[maybe_unused]] _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n+const\n+1069 {\n+1070#ifdef DUNE_ISTL_WITH_CHECKING\n+1071 if (i<0 || i>=_\bN()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"row index out of range\");\n+1072 if (j<0 || i>=_\bM()) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"column index out of range\");\n+1073#endif\n+1074 return true;\n+1075 }\n+1076\n+1077 protected:\n+1078\n+_\b1_\b0_\b8_\b1 _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b<_\bT_\b,_\bA_\b> _\bd_\ba_\bt_\ba_\b_;\n+1082\n+_\b1_\b0_\b8_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bs_\b_;\n+1089 };\n+1090\n+1091 template\n+_\b1_\b0_\b9_\b2 struct FieldTraits< _\bM_\ba_\bt_\br_\bi_\bx >\n+1093 {\n+_\b1_\b0_\b9_\b4 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\b _\bA_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b1_\b0_\b9_\b5 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n+1096 };\n+1097\n+1099} // end namespace Dune\n+1100\n+1101#endif\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n+Helper functions for determining the vector/matrix block level.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n-std::shared_ptr< ScalarProduct< X > > createScalarProduct(const Comm &comm,\n-SolverCategory::Category category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:242\n-_\bD_\bu_\bn_\be_\b:_\b:_\bN_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-A nonoverlapping operator with communication object.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn novlpschwarz.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br\n-Adapter to turn a matrix into a linear operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:137\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-An overlapping Schwarz operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn schwarz.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-Base class for matrix free definition of preconditioners.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bD_\bo_\bm_\ba_\bi_\bn_\b,_\b _\bR_\ba_\bn_\bg_\be_\b _\b>\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by\n-Factory to assembly solvers configured by a ParameterTree.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:145\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b:_\b:_\bg_\be_\bt\n-static std::shared_ptr< Solver > get(std::shared_ptr< Operator > op, const\n-ParameterTree &config, std::shared_ptr< Preconditioner > prec=nullptr)\n-get a solver from the factory\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:168\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bF_\ba_\bc_\bt_\bo_\br_\by_\b:_\b:_\bg_\be_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n-static std::shared_ptr< Preconditioner > getPreconditioner(std::shared_ptr<\n-Operator > op, const ParameterTree &config)\n-Construct a Preconditioner for a given Operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverfactory.hh:203\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A vector of blocks with memory management.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be\n+A Vector of blocks with different blocksizes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:44\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be\n+Imp::BlockVectorWindow< B, A > window_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+BlockVector< B, A > block_type\n+Same as value_type, here for historical reasons.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+DenseMatrixBase & operator=(const DenseMatrixBase &a)\n+assignment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:182\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< B >::field_type field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:50\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n+Iterator beforeBegin() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:385\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n+void resize(size_type rows, size_type columns)\n+same effect as constructor with same argument\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:153\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+const window_type const_reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:74\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be\n+DenseMatrixBase(size_type rows, size_type columns)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\be_\bn_\bd\n+Iterator end()\n+end Iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:371\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+reference operator[](size_type i)\n+random access to blocks\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:241\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n+BlockVector< B, A > value_type\n+Type of the elements of the outer vector, i.e., dynamic vectors of B.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:63\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bf_\bi_\bn_\bd\n+Iterator find(size_type i)\n+random access returning iterator (end if not contained)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:391\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bN\n+size_type N() const\n+number of blocks in the vector (are of variable size here)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:539\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+ConstIterator beforeEnd() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:525\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\be_\bn_\bd\n+ConstIterator end() const\n+end ConstIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:518\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+window_type reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:72\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\br_\be_\bn_\bd\n+ConstIterator rend() const\n+end ConstIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:531\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+Iterator beforeEnd()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:378\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+ConstIterator begin() const\n+begin ConstIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:512\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n+A allocator_type\n+export the allocator type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be\n+DenseMatrixBase()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bf_\bi_\bn_\bd\n+ConstIterator find(size_type i) const\n+random access returning iterator (end if not contained)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:397\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+The size type for the index access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\b~_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be\n+~DenseMatrixBase()\n+free dynamic memory\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:142\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+Iterator begin()\n+begin Iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:365\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be\n+DenseMatrixBase(const DenseMatrixBase &a)\n+copy constructor, has copy semantics\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:116\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator class for sequential access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:263\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n+Iterator & operator--()\n+prefix decrement\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:308\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n+size_type index() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:352\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator(Iterator &other)=default\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator(Iterator &&other)=default\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const Iterator &it) const\n+inequality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:322\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+Iterator & operator=(Iterator &&other)\n+Move assignment.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:282\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+Iterator & operator++()\n+prefix increment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:300\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator()\n+constructor, no arguments\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:266\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+window_type & operator*() const\n+dereferencing\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:340\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const Iterator &it) const\n+equality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:316\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+Iterator & operator=(Iterator &other)\n+Copy assignment.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:291\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator(B *data, size_type columns, size_type _i)\n+constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:276\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n+window_type * operator->() const\n+arrow\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:346\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator class for sequential access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:404\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b>\n+const window_type * operator->() const\n+arrow\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:487\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+const window_type & operator*() const\n+dereferencing\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:481\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n+ConstIterator & operator++()\n+prefix increment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:441\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator(const B *data, size_type columns, size_type _i)\n+constructor from pointer\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:414\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b-\n+ConstIterator & operator--()\n+prefix decrement\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:449\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator(const Iterator &it)\n+constructor from non_const iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:420\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const ConstIterator &it) const\n+inequality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:463\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator()\n+constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:407\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const ConstIterator &it) const\n+equality\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:457\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n+size_type index() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:493\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+ConstIterator & operator=(Iterator &&other)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:424\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+ConstIterator & operator=(Iterator &other)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:432\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bl_\bs_\b_\n+size_type cols_\n+Number of columns of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1088\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n+FieldTraits< ft >::real_type infinity_norm() const\n+infinity norm (row sum norm, how to generalize for blocks?)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:992\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n+A allocator_type\n+Export the allocator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:571\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n+FieldTraits< ft >::real_type infinity_norm_real() const\n+simplified infinity norm (uses Manhattan norm for complex values)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1011\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bh_\bv\n+void usmhv(const field_type &alpha, const X &x, Y &y) const\n+y += alpha A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:956\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bv\n+void usmv(const field_type &alpha, const X &x, Y &y) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:854\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+Type for indices and sizes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:577\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\ba_\bt_\ba_\b_\n+MatrixImp::DenseMatrixBase< T, A > data_\n+Abuse DenseMatrixBase as an engine for a 2d array ISTL-style.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1081\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bt_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be\n+Matrix transpose() const\n+Return the transpose of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:745\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bt_\bv\n+void mtv(const X &x, Y &y) const\n+y = A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:807\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bv\n+void umv(const X &x, Y &y) const\n+y += A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:820\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n+void mv(const X &x, Y &y) const\n+y = A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:788\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+MatrixImp::DenseMatrixBase< T, A >::ConstIterator ConstRowIterator\n+Const iterator over the matrix rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:586\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n+void setSize(size_type rows, size_type cols)\n+Change the matrix size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:608\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n+RowIterator beforeBegin()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:634\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+RowIterator beforeEnd()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:627\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+Matrix()\n+Create empty matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:596\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n+Matrix & operator-=(const Matrix &b)\n+Subtract the entries of another matrix from this one.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:735\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2\n+FieldTraits< field_type >::real_type frobenius_norm2() const\n+square of frobenius norm, need for block recursion\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:980\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::iterator ColIterator\n+Iterator for the entries of each row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:583\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+ConstRowIterator beforeEnd() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:653\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+Matrix & operator=(const field_type &t)\n+Assignment from scalar.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:666\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+RowIterator end()\n+Get iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:620\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+const row_type operator[](size_type row) const\n+The const index operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:684\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+ConstRowIterator end() const\n+Get const iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:646\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+friend Y operator*(const Matrix< T > &m, const X &vec)\n+Generic matrix-vector multiplication.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:770\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n+Matrix< T > & operator*=(const field_type &scalar)\n+Multiplication with a scalar.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:705\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+row_type operator[](size_type row)\n+The index operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:673\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bv\n+void mmv(const X &x, Y &y) const\n+y -= A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:837\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n+Matrix & operator+=(const Matrix &b)\n+Add the entries of another matrix to this one.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:721\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+ConstRowIterator begin() const\n+Get const iterator to first row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:640\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bh_\bv\n+void mmhv(const X &x, Y &y) const\n+y -= A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:939\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+RowIterator begin()\n+Get iterator to first row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:614\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< T >::field_type field_type\n+Export the type representing the underlying field.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:565\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::const_iterator ConstColIterator\n+Const iterator for the entries of each row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n+static constexpr auto blocklevel\n+The number of nesting levels the matrix contains.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:593\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n+size_type M() const\n+Return the number of columns.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:700\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+T block_type\n+Export the type representing the components.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:568\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs\n+bool exists(size_type i, size_type j) const\n+return true if (i,j) is in pattern\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1068\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n+Matrix< T > & operator/=(const field_type &scalar)\n+Division by a scalar.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:711\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+friend Matrix< T > operator*(const Matrix< T > &m1, const Matrix< T > &m2)\n+Generic matrix multiplication.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:755\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bt_\bv\n+void umtv(const X &x, Y &y) const\n+y += A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:871\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bt_\bv\n+void mmtv(const X &x, Y &y) const\n+y -= A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:888\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n+MatrixImp::DenseMatrixBase< T, A >::window_type row_type\n+The type implementing a matrix row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:574\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm\n+FieldTraits< field_type >::real_type frobenius_norm() const\n+frobenius norm: sqrt(sum over squared values of entries)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:974\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bt_\bv\n+void usmtv(const field_type &alpha, const X &x, Y &y) const\n+y += alpha A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:905\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bh_\bv\n+void umhv(const X &x, Y &y) const\n+y += A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:922\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+size_type N() const\n+Return the number of rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:695\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n+ConstRowIterator beforeBegin() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:660\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+Matrix(size_type rows, size_type cols)\n+Create uninitialized matrix of size rows x cols.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:601\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+MatrixImp::DenseMatrixBase< T, A >::Iterator RowIterator\n+Iterator over the matrix rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:580\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Matrix< T, A >::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1094\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+typename FieldTraits< field_type >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:1095\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00182.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00182.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: btdmatrix.hh File Reference\n+dune-istl: overlappingschwarz.hh File Reference\n \n \n \n \n \n \n \n@@ -71,45 +71,133 @@\n \n \n \n
    \n \n-
    btdmatrix.hh File Reference
    \n+Namespaces |\n+Typedefs
    \n+ \n \n
    \n \n-

    Implementation of the BTDMatrix class. \n+

    Contains one level overlapping Schwarz preconditioners. \n More...

    \n-
    #include <dune/common/fmatrix.hh>
    \n-#include <dune/common/scalarvectorview.hh>
    \n-#include <dune/common/scalarmatrixview.hh>
    \n-#include <dune/istl/bcrsmatrix.hh>
    \n-#include <dune/istl/blocklevel.hh>
    \n+
    #include <cassert>
    \n+#include <algorithm>
    \n+#include <functional>
    \n+#include <memory>
    \n+#include <vector>
    \n+#include <set>
    \n+#include <dune/common/dynmatrix.hh>
    \n+#include <dune/common/sllist.hh>
    \n+#include <dune/istl/bccsmatrixinitializer.hh>
    \n+#include "preconditioners.hh"
    \n+#include "superlu.hh"
    \n+#include "umfpack.hh"
    \n+#include "bvector.hh"
    \n+#include "bcrsmatrix.hh"
    \n+#include "ilusubdomainsolver.hh"
    \n+#include <dune/istl/solvertype.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::BTDMatrix< B, A >
     A block-tridiagonal matrix. More...
    class  Dune::OverlappingSchwarzInitializer< I, S, D >
     Initializer for SuperLU Matrices representing the subdomains. More...
     
    struct  Dune::FieldTraits< BTDMatrix< B, A > >
    struct  Dune::AdditiveSchwarzMode
     Tag that the tells the Schwarz method to be additive. More...
     
    struct  Dune::MultiplicativeSchwarzMode
     Tag that tells the Schwarz method to be multiplicative. More...
     
    struct  Dune::SymmetricMultiplicativeSchwarzMode
     Tag that tells the Schwarz method to be multiplicative and symmetric. More...
     
    class  Dune::DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y >
     
    class  Dune::OverlappingAssignerHelper< T, tag >
     
    class  Dune::OverlappingAssignerHelper< DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y >, false >
     
    struct  Dune::OverlappingAssignerHelper< S< BCRSMatrix< T, A > >, true >
     
    class  Dune::OverlappingAssignerILUBase< M, X, Y >
     
    class  Dune::OverlappingAssignerHelper< ILU0SubdomainSolver< M, X, Y >, false >
     
    class  Dune::OverlappingAssignerHelper< ILUNSubdomainSolver< M, X, Y >, false >
     
    struct  Dune::AdditiveAdder< S, T >
     
    struct  Dune::AdditiveAdder< S, BlockVector< T, A > >
     
    struct  Dune::MultiplicativeAdder< S, T >
     
    struct  Dune::MultiplicativeAdder< S, BlockVector< T, A > >
     
    struct  Dune::AdderSelector< T, X, S >
     template meta program for choosing how to add the correction. More...
     
    struct  Dune::AdderSelector< AdditiveSchwarzMode, X, S >
     
    struct  Dune::AdderSelector< MultiplicativeSchwarzMode, X, S >
     
    struct  Dune::AdderSelector< SymmetricMultiplicativeSchwarzMode, X, S >
     
    struct  Dune::IteratorDirectionSelector< T1, T2, forward >
     Helper template meta program for application of overlapping Schwarz. More...
     
    struct  Dune::IteratorDirectionSelector< T1, T2, false >
     
    struct  Dune::SeqOverlappingSchwarzApplier< T >
     Helper template meta program for application of overlapping Schwarz. More...
     
    struct  Dune::SeqOverlappingSchwarzApplier< SeqOverlappingSchwarz< M, X, SymmetricMultiplicativeSchwarzMode, TD, TA > >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerHelper< T, tag >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerHelper< DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y >, false >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerHelper< S< BCRSMatrix< T, A > >, true >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerILUBase< M, X, Y >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerHelper< ILU0SubdomainSolver< M, X, Y >, false >
     
    struct  Dune::SeqOverlappingSchwarzAssemblerHelper< ILUNSubdomainSolver< M, X, Y >, false >
     
    class  Dune::SeqOverlappingSchwarz< M, X, TM, TD, TA >
     Sequential overlapping Schwarz preconditioner. More...
     
    struct  Dune::SeqOverlappingSchwarzDomainSize< M >
     
    struct  Dune::SeqOverlappingSchwarzDomainSize< BCRSMatrix< T, A > >
     
    \n \n \n \n+

    \n Namespaces

    namespace  Dune
     
    \n+\n+\n+\n+\n+\n+\n+\n

    \n+Typedefs

    template<typename T >
    using Dune::OverlappingAssigner = OverlappingAssignerHelper< T, Dune::StoresColumnCompressed< T >::value >
     
    template<class T >
    using Dune::SeqOverlappingSchwarzAssembler = SeqOverlappingSchwarzAssemblerHelper< T, Dune::StoresColumnCompressed< T >::value >
     
    \n

    Detailed Description

    \n-

    Implementation of the BTDMatrix class.

    \n-
    Author
    Oliver Sander
    \n+

    Contains one level overlapping Schwarz preconditioners.

    \n+
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,30 +1,130 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-btdmatrix.hh File Reference\n-Implementation of the BTDMatrix class. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs\n+overlappingschwarz.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n+Contains one level overlapping Schwarz preconditioners. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n+#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n+#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh\"\n+#include \"_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh\"\n+#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+#include \"_\bi_\bl_\bu_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\"\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n-\u00a0 A block-tridiagonal matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\bI_\b,_\b _\bS_\b,_\b _\bD_\b _\b>\n+\u00a0 Initializer for _\bS_\bu_\bp_\be_\br_\bL_\bU Matrices representing the subdomains. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n+\u00a0 Tag that the tells the Schwarz method to be additive. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n+\u00a0 Tag that tells the Schwarz method to be multiplicative. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n+\u00a0 Tag that tells the Schwarz method to be multiplicative and symmetric.\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bT_\b,_\b _\bt_\ba_\bg_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<\n+ _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be\n+ _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be\n+ _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bT_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bT_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bX_\b,_\b _\bS_\b _\b>\n+\u00a0 template meta program for choosing how to add the correction. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\bo_\br_\bw_\ba_\br_\bd_\b _\b>\n+\u00a0 Helper template meta program for application of overlapping Schwarz.\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bT_\b _\b>\n+\u00a0 Helper template meta program for application of overlapping Schwarz.\n+ _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n+ _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bT_\bD_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bT_\b,_\b _\bt_\ba_\bg_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<\n+ _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,\n+ _\bt_\br_\bu_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,\n+ _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,\n+ _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bT_\bM_\b,_\b _\bT_\bD_\b,_\b _\bT_\bA_\b _\b>\n+\u00a0 Sequential overlapping Schwarz preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be_\b<_\b _\bM_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br = _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br< T, _\bD_\bu_\bn_\be_\b:_\b:\n+ _\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd< T >::value >\n+\u00a0\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br =\n+ _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br< T, _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd< T\n+ >::value >\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Implementation of the BTDMatrix class.\n+Contains one level overlapping Schwarz preconditioners.\n Author\n- Oliver Sander\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00182_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00182_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: btdmatrix.hh Source File\n+dune-istl: overlappingschwarz.hh Source File\n \n \n \n \n \n \n \n@@ -74,240 +74,1666 @@\n \n
    \n \n
    \n
    \n
    \n-
    btdmatrix.hh
    \n+
    overlappingschwarz.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_BTDMATRIX_HH
    \n-
    6#define DUNE_ISTL_BTDMATRIX_HH
    \n-
    7
    \n-
    8#include <dune/common/fmatrix.hh>
    \n-
    9#include <dune/common/scalarvectorview.hh>
    \n-
    10#include <dune/common/scalarmatrixview.hh>
    \n-\n-\n-
    13
    \n-
    19namespace Dune {
    \n-
    29 template <class B, class A=std::allocator<B> >
    \n-
    \n-
    30 class BTDMatrix : public BCRSMatrix<B,A>
    \n-
    31 {
    \n-
    32 public:
    \n-
    33
    \n-
    34 //===== type definitions and constants
    \n-
    35
    \n-
    37 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n-
    38
    \n-
    40 typedef B block_type;
    \n+
    5#ifndef DUNE_ISTL_OVERLAPPINGSCHWARZ_HH
    \n+
    6#define DUNE_ISTL_OVERLAPPINGSCHWARZ_HH
    \n+
    7#include <cassert>
    \n+
    8#include <algorithm>
    \n+
    9#include <functional>
    \n+
    10#include <memory>
    \n+
    11#include <vector>
    \n+
    12#include <set>
    \n+
    13#include <dune/common/dynmatrix.hh>
    \n+
    14#include <dune/common/sllist.hh>
    \n+
    15
    \n+\n+
    17#include "preconditioners.hh"
    \n+
    18#include "superlu.hh"
    \n+
    19#include "umfpack.hh"
    \n+
    20#include "bvector.hh"
    \n+
    21#include "bcrsmatrix.hh"
    \n+
    22#include "ilusubdomainsolver.hh"
    \n+\n+
    24
    \n+
    25namespace Dune
    \n+
    26{
    \n+
    27
    \n+
    39 template<class M, class X, class TM, class TD, class TA>
    \n+
    40 class SeqOverlappingSchwarz;
    \n
    41
    \n-
    43 typedef A allocator_type;
    \n-
    44
    \n-
    46 //typedef BCRSMatrix<B,A>::row_type row_type;
    \n-
    47
    \n-
    49 typedef typename A::size_type size_type;
    \n-
    50
    \n-
    52 [[deprecated("Use free blockLevel function. Will be removed after 2.8.")]]
    \n-
    53 static constexpr auto blocklevel = blockLevel<B>()+1;
    \n-
    54
    \n-
    56 BTDMatrix() : BCRSMatrix<B,A>() {}
    \n+
    45 template<class I, class S, class D>
    \n+
    \n+\n+
    47 {
    \n+
    48 public:
    \n+\n+
    51
    \n+
    52 typedef I InitializerList;
    \n+
    53 typedef typename InitializerList::value_type AtomInitializer;
    \n+
    54 typedef typename AtomInitializer::Matrix Matrix;
    \n+
    55 typedef typename Matrix::const_iterator Iter;
    \n+
    56 typedef typename Matrix::row_type::const_iterator CIter;
    \n
    57
    \n-
    \n-
    58 explicit BTDMatrix(size_type size)
    \n-
    59 : BCRSMatrix<B,A>(size, size, BCRSMatrix<B,A>::random)
    \n-
    60 {
    \n-
    61 // Set number of entries for each row
    \n-
    62 // All rows get three entries, except for the first and the last one
    \n-
    63 for (size_t i=0; i<size; i++)
    \n-
    64 this->BCRSMatrix<B,A>::setrowsize(i, 3 - (i==0) - (i==(size-1)));
    \n+
    58 typedef S IndexSet;
    \n+
    59 typedef typename IndexSet::size_type size_type;
    \n+
    60
    \n+\n+
    62 const IndexSet& indices,
    \n+
    63 const subdomain_vector& domains);
    \n+
    64
    \n
    65
    \n-\n+
    66 void addRowNnz(const Iter& row);
    \n
    67
    \n-
    68 // The actual entries for each row
    \n-
    69 for (size_t i=0; i<size; i++) {
    \n-
    70 if (i>0)
    \n-
    71 this->BCRSMatrix<B,A>::addindex(i, i-1);
    \n-
    72 this->BCRSMatrix<B,A>::addindex(i, i );
    \n-
    73 if (i<size-1)
    \n-
    74 this->BCRSMatrix<B,A>::addindex(i, i+1);
    \n-
    75 }
    \n-
    76
    \n-\n-
    78 }
    \n-
    \n-
    79
    \n-
    \n-
    81 void setSize(size_type size)
    \n-
    82 {
    \n-
    83 auto nonZeros = (size==0) ? 0 : size + 2*(size-1);
    \n-
    84 this->BCRSMatrix<B,A>::setSize(size, // rows
    \n-
    85 size, // columns
    \n-
    86 nonZeros);
    \n+
    68 void allocate();
    \n+
    69
    \n+
    70 void countEntries(const Iter& row, const CIter& col) const;
    \n+
    71
    \n+
    72 void calcColstart() const;
    \n+
    73
    \n+
    74 void copyValue(const Iter& row, const CIter& col) const;
    \n+
    75
    \n+
    76 void createMatrix() const;
    \n+
    77 private:
    \n+
    78 class IndexMap
    \n+
    79 {
    \n+
    80 public:
    \n+
    81 typedef typename S::size_type size_type;
    \n+
    82 typedef std::map<size_type,size_type> Map;
    \n+
    83 typedef typename Map::iterator iterator;
    \n+
    84 typedef typename Map::const_iterator const_iterator;
    \n+
    85
    \n+
    86 IndexMap();
    \n
    87
    \n-
    88 // Set number of entries for each row
    \n-
    89 // All rows get three entries, except for the first and the last one
    \n-
    90 for (size_t i=0; i<size; i++)
    \n-
    91 this->BCRSMatrix<B,A>::setrowsize(i, 3 - (i==0) - (i==(size-1)));
    \n-
    92
    \n-\n-
    94
    \n-
    95 // The actual entries for each row
    \n-
    96 for (size_t i=0; i<size; i++) {
    \n-
    97 if (i>0)
    \n-
    98 this->BCRSMatrix<B,A>::addindex(i, i-1);
    \n-
    99 this->BCRSMatrix<B,A>::addindex(i, i );
    \n-
    100 if (i<size-1)
    \n-
    101 this->BCRSMatrix<B,A>::addindex(i, i+1);
    \n-
    102 }
    \n-
    103
    \n-\n-
    105 }
    \n-
    \n+
    88 void insert(size_type grow);
    \n+
    89
    \n+
    90 const_iterator find(size_type grow) const;
    \n+
    91
    \n+
    92 iterator find(size_type grow);
    \n+
    93
    \n+
    94 iterator begin();
    \n+
    95
    \n+
    96 const_iterator begin() const;
    \n+
    97
    \n+
    98 iterator end();
    \n+
    99
    \n+
    100 const_iterator end() const;
    \n+
    101
    \n+
    102 private:
    \n+
    103 std::map<size_type,size_type> map_;
    \n+
    104 size_type row;
    \n+
    105 };
    \n
    106
    \n-
    \n-\n-
    109 this->BCRSMatrix<B,A>::operator=(other);
    \n-
    110 return *this;
    \n-
    111 }
    \n-
    \n-
    112
    \n-
    \n-\n-\n-
    116 return *this;
    \n-
    117 }
    \n-
    \n-
    118
    \n-
    124 template <class V>
    \n-
    \n-
    125 void solve (V& x, const V& rhs) const {
    \n-
    126
    \n-
    127 // special handling for 1x1 matrices. The generic algorithm doesn't work for them
    \n-
    128 if (this->N()==1) {
    \n-
    129 auto&& x0 = Impl::asVector(x[0]);
    \n-
    130 auto&& rhs0 = Impl::asVector(rhs[0]);
    \n-
    131 Impl::asMatrix((*this)[0][0]).solve(x0, rhs0);
    \n-
    132 return;
    \n-
    133 }
    \n+
    107
    \n+
    108 typedef typename InitializerList::iterator InitIterator;
    \n+
    109 typedef typename IndexSet::const_iterator IndexIteratur;
    \n+
    110 InitializerList* initializers;
    \n+
    111 const IndexSet *indices;
    \n+
    112 mutable std::vector<IndexMap> indexMaps;
    \n+
    113 const subdomain_vector& domains;
    \n+
    114 };
    \n+
    \n+
    115
    \n+
    \n+\n+
    120 {};
    \n+
    \n+
    121
    \n+
    \n+\n+
    126 {};
    \n+
    \n+
    127
    \n+\n
    134
    \n-
    135 // Make copies of the rhs and the right matrix band
    \n-
    136 V d = rhs;
    \n-
    137 std::vector<block_type> c(this->N()-1);
    \n-
    138 for (size_t i=0; i<this->N()-1; i++)
    \n-
    139 c[i] = (*this)[i][i+1];
    \n-
    140
    \n-
    141 /* Modify the coefficients. */
    \n-
    142 block_type a_00_inv = (*this)[0][0];
    \n-
    143 Impl::asMatrix(a_00_inv).invert();
    \n-
    144
    \n-
    145 //c[0] /= (*this)[0][0]; /* Division by zero risk. */
    \n-
    146 block_type tmp = a_00_inv;
    \n-
    147 Impl::asMatrix(tmp).rightmultiply(Impl::asMatrix(c[0]));
    \n-
    148 c[0] = tmp;
    \n-
    149
    \n-
    150 // d = a^{-1} d /* Division by zero would imply a singular matrix. */
    \n-
    151 auto d_0_tmp = d[0];
    \n-
    152 auto&& d_0 = Impl::asVector(d[0]);
    \n-
    153 Impl::asMatrix(a_00_inv).mv(Impl::asVector(d_0_tmp),d_0);
    \n-
    154
    \n-
    155 for (unsigned int i = 1; i < this->N(); i++) {
    \n-
    156
    \n-
    157 // id = ( a_ii - c_{i-1} a_{i, i-1} ) ^{-1}
    \n-
    158 block_type tmp;
    \n-
    159 tmp = (*this)[i][i-1];
    \n-
    160 Impl::asMatrix(tmp).rightmultiply(Impl::asMatrix(c[i-1]));
    \n-
    161
    \n-
    162 block_type id = (*this)[i][i];
    \n-
    163 id -= tmp;
    \n-
    164 Impl::asMatrix(id).invert(); /* Division by zero risk. */
    \n-
    165
    \n-
    166 if (i<c.size()) {
    \n-
    167 Impl::asMatrix(c[i]).leftmultiply(Impl::asMatrix(id)); /* Last value calculated is redundant. */
    \n-
    168 }
    \n-
    169
    \n-
    170 // d[i] = (d[i] - d[i-1] * (*this)[i][i-1]) * id;
    \n-
    171 auto&& d_i = Impl::asVector(d[i]);
    \n-
    172 Impl::asMatrix((*this)[i][i-1]).mmv(Impl::asVector(d[i-1]), d_i);
    \n-
    173 auto tmpVec = d[i];
    \n-
    174 Impl::asMatrix(id).mv(Impl::asVector(tmpVec), d_i);
    \n-
    175 }
    \n-
    176
    \n-
    177 /* Now back substitute. */
    \n-
    178 x[this->N() - 1] = d[this->N() - 1];
    \n-
    179 for (int i = this->N() - 2; i >= 0; i--) {
    \n-
    180 //x[i] = d[i] - c[i] * x[i + 1];
    \n-
    181 x[i] = d[i];
    \n-
    182 auto&& x_i = Impl::asVector(x[i]);
    \n-
    183 Impl::asMatrix(c[i]).mmv(Impl::asVector(x[i+1]), x_i);
    \n-
    184 }
    \n-
    185
    \n-
    186 }
    \n-
    \n-
    187
    \n-
    188 private:
    \n-
    189
    \n-
    190 // ////////////////////////////////////////////////////////////////////////////
    \n-
    191 // The following methods from the base class should now actually be called
    \n-
    192 // ////////////////////////////////////////////////////////////////////////////
    \n-
    193
    \n-
    194 // createbegin and createend should be in there, too, but I can't get it to compile
    \n-
    195 // BCRSMatrix<B,A>::CreateIterator createbegin () {}
    \n-
    196 // BCRSMatrix<B,A>::CreateIterator createend () {}
    \n-
    197 void setrowsize (size_type i, size_type s) {}
    \n-
    198 void incrementrowsize (size_type i) {}
    \n-
    199 void endrowsizes () {}
    \n-
    200 void addindex (size_type row, size_type col) {}
    \n-
    201 void endindices () {}
    \n-
    202 };
    \n-
    \n-
    203
    \n-
    204 template<typename B, typename A>
    \n-
    \n-
    205 struct FieldTraits< BTDMatrix<B, A> >
    \n-
    206 {
    \n-\n-
    208 using real_type = typename FieldTraits<field_type>::real_type;
    \n-
    209 };
    \n-
    \n-
    210
    \n-
    213} // end namespace Dune
    \n-
    214
    \n-
    215#endif
    \n-
    Helper functions for determining the vector/matrix block level.
    \n-
    Implementation of the BCRSMatrix class.
    \n+
    139 template<class M, class X, class Y>
    \n+\n+
    141
    \n+
    142 // Specialization for BCRSMatrix
    \n+
    143 template<class K, class Al, class X, class Y>
    \n+
    \n+\n+
    145 {
    \n+
    146 typedef BCRSMatrix< K, Al> M;
    \n+
    147 public:
    \n+
    149 typedef typename std::remove_const<M>::type matrix_type;
    \n+
    150 typedef typename X::field_type field_type;
    \n+
    151 typedef typename std::remove_const<M>::type rilu_type;
    \n+
    153 typedef X domain_type;
    \n+
    155 typedef Y range_type;
    \n+
    156 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<K>()))>::rows;
    \n+
    157
    \n+
    \n+
    162 void apply (DynamicVector<field_type>& v, DynamicVector<field_type>& d)
    \n+
    163 {
    \n+
    164 assert(v.size() > 0);
    \n+
    165 assert(v.size() == d.size());
    \n+
    166 assert(A.rows() <= v.size());
    \n+
    167 assert(A.cols() <= v.size());
    \n+
    168 size_t sz = A.rows();
    \n+
    169 v.resize(sz);
    \n+
    170 d.resize(sz);
    \n+
    171 A.solve(v,d);
    \n+
    172 v.resize(v.capacity());
    \n+
    173 d.resize(d.capacity());
    \n+
    174 }
    \n+
    \n+
    175
    \n+
    183 template<class S>
    \n+
    \n+
    184 void setSubMatrix(const M& BCRS, S& rowset)
    \n+
    185 {
    \n+
    186 size_t sz = rowset.size();
    \n+
    187 A.resize(sz*n,sz*n);
    \n+
    188 typedef typename S::const_iterator SIter;
    \n+
    189 size_t r = 0, c = 0;
    \n+
    190 for(SIter rowIdx = rowset.begin(), rowEnd=rowset.end();
    \n+
    191 rowIdx!= rowEnd; ++rowIdx, r++)
    \n+
    192 {
    \n+
    193 c = 0;
    \n+
    194 for(SIter colIdx = rowset.begin(), colEnd=rowset.end();
    \n+
    195 colIdx!= colEnd; ++colIdx, c++)
    \n+
    196 {
    \n+
    197 if (BCRS[*rowIdx].find(*colIdx) == BCRS[*rowIdx].end())
    \n+
    198 continue;
    \n+
    199 for (size_t i=0; i<n; i++)
    \n+
    200 {
    \n+
    201 for (size_t j=0; j<n; j++)
    \n+
    202 {
    \n+
    203 A[r*n+i][c*n+j] = Impl::asMatrix(BCRS[*rowIdx][*colIdx])[i][j];
    \n+
    204 }
    \n+
    205 }
    \n+
    206 }
    \n+
    207 }
    \n+
    208 }
    \n+
    \n+
    209 private:
    \n+
    210 DynamicMatrix<K> A;
    \n+
    211 };
    \n+
    \n+
    212
    \n+
    213 template<typename T, bool tag>
    \n+
    \n+\n+
    215 {};
    \n+
    \n+
    216
    \n+
    217 template<typename T>
    \n+\n+
    219
    \n+
    220 // specialization for DynamicMatrix
    \n+
    221 template<class K, class Al, class X, class Y>
    \n+
    \n+\n+
    223 {
    \n+
    224 public:
    \n+\n+
    226 typedef typename X::field_type field_type;
    \n+
    227 typedef Y range_type;
    \n+
    228 typedef typename range_type::block_type block_type;
    \n+\n+
    230 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<K>()))>::rows;
    \n+
    238 OverlappingAssignerHelper(std::size_t maxlength, const BCRSMatrix<K, Al>& mat_, const X& b_, Y& x_);
    \n+
    239
    \n+
    243 inline
    \n+
    244 void deallocate();
    \n+
    245
    \n+
    249 inline
    \n+
    250 void resetIndexForNextDomain();
    \n+
    251
    \n+
    256 inline
    \n+
    257 DynamicVector<field_type> & lhs();
    \n+
    258
    \n+
    263 inline
    \n+
    264 DynamicVector<field_type> & rhs();
    \n+
    265
    \n+
    270 inline
    \n+
    271 void relaxResult(field_type relax);
    \n+
    272
    \n+
    277 void operator()(const size_type& domainIndex);
    \n+
    278
    \n+
    286 inline
    \n+
    287 void assignResult(block_type& res);
    \n+
    288
    \n+
    289 private:
    \n+
    293 const matrix_type* mat;
    \n+
    295 // we need a pointer, because we have to avoid deep copies
    \n+
    296 DynamicVector<field_type> * rhs_;
    \n+
    298 // we need a pointer, because we have to avoid deep copies
    \n+
    299 DynamicVector<field_type> * lhs_;
    \n+
    301 const range_type* b;
    \n+
    303 range_type* x;
    \n+
    305 std::size_t i;
    \n+
    307 std::size_t maxlength_;
    \n+
    308 };
    \n+
    \n+
    309
    \n+
    310#if HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n+
    311 template<template<class> class S, typename T, typename A>
    \n+
    \n+\n+
    313 {
    \n+\n+
    315 typedef typename S<BCRSMatrix<T, A>>::range_type range_type;
    \n+
    316 typedef typename range_type::field_type field_type;
    \n+
    317 typedef typename range_type::block_type block_type;
    \n+
    318
    \n+\n+
    320
    \n+
    321 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<T>()))>::rows;
    \n+
    322 static constexpr size_t m = std::decay_t<decltype(Impl::asMatrix(std::declval<T>()))>::cols;
    \n+
    330 OverlappingAssignerHelper(std::size_t maxlength, const matrix_type& mat,
    \n+
    331 const range_type& b, range_type& x);
    \n+
    337 void deallocate();
    \n+
    338
    \n+
    339 /*
    \n+
    340 * @brief Resets the local index to zero.
    \n+
    341 */
    \n+
    342 void resetIndexForNextDomain();
    \n+
    343
    \n+
    348 field_type* lhs();
    \n+
    349
    \n+
    354 field_type* rhs();
    \n+
    355
    \n+
    360 void relaxResult(field_type relax);
    \n+
    361
    \n+
    366 void operator()(const size_type& domain);
    \n+
    367
    \n+
    375 void assignResult(block_type& res);
    \n+
    376
    \n+
    377 private:
    \n+
    381 const matrix_type* mat;
    \n+
    383 field_type* rhs_;
    \n+
    385 field_type* lhs_;
    \n+
    387 const range_type* b;
    \n+
    389 range_type* x;
    \n+
    391 std::size_t i;
    \n+
    393 std::size_t maxlength_;
    \n+
    394 };
    \n+
    \n+
    395
    \n+
    396#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n+
    397
    \n+
    398 template<class M, class X, class Y>
    \n+
    \n+\n+
    400 {
    \n+
    401 public:
    \n+
    402 typedef M matrix_type;
    \n+
    403
    \n+
    404 typedef typename Y::field_type field_type;
    \n+
    405
    \n+
    406 typedef typename Y::block_type block_type;
    \n+
    407
    \n+
    408 typedef typename matrix_type::size_type size_type;
    \n+
    416 OverlappingAssignerILUBase(std::size_t maxlength, const M& mat,
    \n+
    417 const Y& b, X& x);
    \n+
    423 void deallocate();
    \n+
    424
    \n+\n+
    429
    \n+
    434 X& lhs();
    \n+
    435
    \n+
    440 Y& rhs();
    \n+
    441
    \n+
    446 void relaxResult(field_type relax);
    \n+
    447
    \n+
    452 void operator()(const size_type& domain);
    \n+
    453
    \n+
    461 void assignResult(block_type& res);
    \n+
    462
    \n+
    463 private:
    \n+
    467 const M* mat;
    \n+
    469 X* lhs_;
    \n+
    471 Y* rhs_;
    \n+
    473 const Y* b;
    \n+
    475 X* x;
    \n+
    477 size_type i;
    \n+
    478 };
    \n+
    \n+
    479
    \n+
    480 // specialization for ILU0
    \n+
    481 template<class M, class X, class Y>
    \n+
    \n+\n+
    483 : public OverlappingAssignerILUBase<M,X,Y>
    \n+
    484 {
    \n+
    485 public:
    \n+
    \n+
    493 OverlappingAssignerHelper(std::size_t maxlength, const M& mat,
    \n+
    494 const Y& b, X& x)
    \n+
    495 : OverlappingAssignerILUBase<M,X,Y>(maxlength, mat,b,x)
    \n+
    496 {}
    \n+
    \n+
    497 };
    \n+
    \n+
    498
    \n+
    499 // specialization for ILUN
    \n+
    500 template<class M, class X, class Y>
    \n+
    \n+\n+
    502 : public OverlappingAssignerILUBase<M,X,Y>
    \n+
    503 {
    \n+
    504 public:
    \n+
    \n+
    512 OverlappingAssignerHelper(std::size_t maxlength, const M& mat,
    \n+
    513 const Y& b, X& x)
    \n+
    514 : OverlappingAssignerILUBase<M,X,Y>(maxlength, mat,b,x)
    \n+
    515 {}
    \n+
    \n+
    516 };
    \n+
    \n+
    517
    \n+
    518 template<typename S, typename T>
    \n+
    \n+\n+
    520 {};
    \n+
    \n+
    521
    \n+
    522 template<typename S, typename T, typename A>
    \n+
    \n+
    523 struct AdditiveAdder<S, BlockVector<T,A> >
    \n+
    524 {
    \n+
    525 typedef typename A::size_type size_type;
    \n+
    526 typedef typename std::decay_t<decltype(Impl::asVector(std::declval<T>()))>::field_type field_type;
    \n+\n+
    528 OverlappingAssigner<S>& assigner, const field_type& relax_);
    \n+
    529 void operator()(const size_type& domain);
    \n+
    530 void axpy();
    \n+
    531 static constexpr size_t n = std::decay_t<decltype(Impl::asVector(std::declval<T>()))>::dimension;
    \n+
    532
    \n+
    533 private:
    \n+\n+\n+
    536 OverlappingAssigner<S>* assigner;
    \n+
    537 field_type relax;
    \n+
    538 };
    \n+
    \n+
    539
    \n+
    540 template<typename S,typename T>
    \n+
    \n+\n+
    542 {};
    \n+
    \n+
    543
    \n+
    544 template<typename S, typename T, typename A>
    \n+
    \n+\n+
    546 {
    \n+
    547 typedef typename A::size_type size_type;
    \n+
    548 typedef typename std::decay_t<decltype(Impl::asVector(std::declval<T>()))>::field_type field_type;
    \n+\n+
    550 OverlappingAssigner<S>& assigner_, const field_type& relax_);
    \n+
    551 void operator()(const size_type& domain);
    \n+
    552 void axpy();
    \n+
    553 static constexpr size_t n = std::decay_t<decltype(Impl::asVector(std::declval<T>()))>::dimension;
    \n+
    554
    \n+
    555 private:
    \n+\n+
    557 OverlappingAssigner<S>* assigner;
    \n+
    558 field_type relax;
    \n+
    559 };
    \n+
    \n+
    560
    \n+
    570 template<typename T, class X, class S>
    \n+
    \n+\n+
    572 {};
    \n+
    \n+
    573
    \n+
    574 template<class X, class S>
    \n+
    \n+\n+
    576 {
    \n+\n+
    578 };
    \n+
    \n+
    579
    \n+
    580 template<class X, class S>
    \n+
    \n+\n+
    582 {
    \n+\n+
    584 };
    \n+
    \n+
    585
    \n+
    586 template<class X, class S>
    \n+\n+
    591
    \n+
    603 template<typename T1, typename T2, bool forward>
    \n+
    \n+\n+
    605 {
    \n+
    606 typedef T1 solver_vector;
    \n+
    607 typedef typename solver_vector::iterator solver_iterator;
    \n+\n+
    609 typedef typename subdomain_vector::const_iterator domain_iterator;
    \n+
    610
    \n+
    \n+\n+
    612 {
    \n+
    613 return sv.begin();
    \n+
    614 }
    \n+
    \n+
    615
    \n+
    \n+\n+
    617 {
    \n+
    618 return sv.end();
    \n+
    619 }
    \n+
    \n+
    \n+\n+
    621 {
    \n+
    622 return sv.begin();
    \n+
    623 }
    \n+
    \n+
    624
    \n+
    \n+\n+
    626 {
    \n+
    627 return sv.end();
    \n+
    628 }
    \n+
    \n+
    629 };
    \n+
    \n+
    630
    \n+
    631 template<typename T1, typename T2>
    \n+
    \n+
    632 struct IteratorDirectionSelector<T1,T2,false>
    \n+
    633 {
    \n+
    634 typedef T1 solver_vector;
    \n+
    635 typedef typename solver_vector::reverse_iterator solver_iterator;
    \n+\n+
    637 typedef typename subdomain_vector::const_reverse_iterator domain_iterator;
    \n+
    638
    \n+
    \n+\n+
    640 {
    \n+
    641 return sv.rbegin();
    \n+
    642 }
    \n+
    \n+
    643
    \n+
    \n+\n+
    645 {
    \n+
    646 return sv.rend();
    \n+
    647 }
    \n+
    \n+
    \n+\n+
    649 {
    \n+
    650 return sv.rbegin();
    \n+
    651 }
    \n+
    \n+
    652
    \n+
    \n+\n+
    654 {
    \n+
    655 return sv.rend();
    \n+
    656 }
    \n+
    \n+
    657 };
    \n+
    \n+
    658
    \n+
    667 template<class T>
    \n+
    \n+\n+
    669 {
    \n+
    670 typedef T smoother;
    \n+
    671 typedef typename smoother::range_type range_type;
    \n+
    672
    \n+
    \n+
    673 static void apply(smoother& sm, range_type& v, const range_type& b)
    \n+
    674 {
    \n+
    675 sm.template apply<true>(v, b);
    \n+
    676 }
    \n+
    \n+
    677 };
    \n+
    \n+
    678
    \n+
    679 template<class M, class X, class TD, class TA>
    \n+
    \n+\n+
    681 {
    \n+\n+\n+
    684
    \n+
    \n+
    685 static void apply(smoother& sm, range_type& v, const range_type& b)
    \n+
    686 {
    \n+
    687 sm.template apply<true>(v, b);
    \n+
    688 sm.template apply<false>(v, b);
    \n+
    689 }
    \n+
    \n+
    690 };
    \n+
    \n+
    691
    \n+
    692 template<class T, bool tag>
    \n+\n+
    695
    \n+
    696 template<class T>
    \n+\n+
    698
    \n+
    699 template<class K, class Al, class X, class Y>
    \n+
    \n+\n+
    701 {
    \n+\n+
    703 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<K>()))>::rows;
    \n+
    704 template<class RowToDomain, class Solvers, class SubDomains>
    \n+
    705 static std::size_t assembleLocalProblems(const RowToDomain& rowToDomain, const matrix_type& mat,
    \n+
    706 Solvers& solvers, const SubDomains& domains,
    \n+
    707 bool onTheFly);
    \n+
    708 };
    \n+
    \n+
    709
    \n+
    710 template<template<class> class S, typename T, typename A>
    \n+
    \n+\n+
    712 {
    \n+\n+
    714 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<T>()))>::rows;
    \n+
    715 template<class RowToDomain, class Solvers, class SubDomains>
    \n+
    716 static std::size_t assembleLocalProblems(const RowToDomain& rowToDomain, const matrix_type& mat,
    \n+
    717 Solvers& solvers, const SubDomains& domains,
    \n+
    718 bool onTheFly);
    \n+
    719 };
    \n+
    \n+
    720
    \n+
    721 template<class M,class X, class Y>
    \n+
    \n+\n+
    723 {
    \n+
    724 typedef M matrix_type;
    \n+
    725 template<class RowToDomain, class Solvers, class SubDomains>
    \n+
    726 static std::size_t assembleLocalProblems(const RowToDomain& rowToDomain, const matrix_type& mat,
    \n+
    727 Solvers& solvers, const SubDomains& domains,
    \n+
    728 bool onTheFly);
    \n+
    729 };
    \n+
    \n+
    730
    \n+
    731 template<class M,class X, class Y>
    \n+
    \n+\n+\n+
    734 {};
    \n+
    \n+
    735
    \n+
    736 template<class M,class X, class Y>
    \n+
    \n+\n+\n+
    739 {};
    \n+
    \n+
    740
    \n+
    751 template<class M, class X, class TM=AdditiveSchwarzMode,
    \n+
    752 class TD=ILU0SubdomainSolver<M,X,X>, class TA=std::allocator<X> >
    \n+
    \n+\n+
    754 : public Preconditioner<X,X>
    \n+
    755 {
    \n+
    756 public:
    \n+
    760 typedef M matrix_type;
    \n+
    761
    \n+
    765 typedef X domain_type;
    \n+
    766
    \n+
    770 typedef X range_type;
    \n+
    771
    \n+
    778 typedef TM Mode;
    \n+
    779
    \n+
    783 typedef typename X::field_type field_type;
    \n+
    784
    \n+
    786 typedef typename matrix_type::size_type size_type;
    \n+
    787
    \n+
    789 typedef TA allocator;
    \n+
    790
    \n+
    792 typedef std::set<size_type, std::less<size_type>,
    \n+
    793 typename std::allocator_traits<TA>::template rebind_alloc<size_type> >
    \n+\n+
    795
    \n+
    797 typedef std::vector<subdomain_type, typename std::allocator_traits<TA>::template rebind_alloc<subdomain_type> > subdomain_vector;
    \n+
    798
    \n+\n+
    801
    \n+
    803 typedef std::vector<subdomain_list, typename std::allocator_traits<TA>::template rebind_alloc<subdomain_list> > rowtodomain_vector;
    \n+
    804
    \n+
    806 typedef TD slu;
    \n+
    807
    \n+
    809 typedef std::vector<slu, typename std::allocator_traits<TA>::template rebind_alloc<slu> > slu_vector;
    \n+
    810
    \n+
    \n+\n+
    825 field_type relaxationFactor=1, bool onTheFly_=true);
    \n+
    826
    \n+
    \n+\n+
    839 field_type relaxationFactor=1, bool onTheFly_=true);
    \n+
    840
    \n+
    \n+
    846 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] X& b)
    \n+
    847 {}
    \n+
    \n+
    848
    \n+
    \n+
    854 virtual void apply (X& v, const X& d);
    \n+
    855
    \n+
    \n+
    861 virtual void post ([[maybe_unused]] X& x)
    \n+
    862 {}
    \n+
    \n+
    863
    \n+
    864 template<bool forward>
    \n+
    \n+
    865 void apply(X& v, const X& d);
    \n+
    866
    \n+
    \n+\n+
    869 {
    \n+\n+
    871 }
    \n+
    \n+
    872
    \n+
    873 private:
    \n+
    874 const M& mat;
    \n+
    875 slu_vector solvers;
    \n+
    876 subdomain_vector subDomains;
    \n+
    877 field_type relax;
    \n+
    878
    \n+
    879 typename M::size_type maxlength;
    \n+
    880
    \n+
    881 bool onTheFly;
    \n+
    882 };
    \n+
    883
    \n+
    884
    \n+
    885
    \n+
    886 template<class I, class S, class D>
    \n+
    \n+\n+
    888 const IndexSet& idx,
    \n+
    889 const subdomain_vector& domains_)
    \n+
    890 : initializers(&il), indices(&idx), indexMaps(il.size()), domains(domains_)
    \n+
    891 {}
    \n+
    \n+
    892
    \n+
    893
    \n+
    894 template<class I, class S, class D>
    \n+
    \n+\n+
    896 {
    \n+
    897 typedef typename IndexSet::value_type::const_iterator iterator;
    \n+
    898 for(iterator domain=(*indices)[row.index()].begin(); domain != (*indices)[row.index()].end(); ++domain) {
    \n+
    899 (*initializers)[*domain].addRowNnz(row, domains[*domain]);
    \n+
    900 indexMaps[*domain].insert(row.index());
    \n+
    901 }
    \n+
    902 }
    \n+
    \n+
    903
    \n+
    904 template<class I, class S, class D>
    \n+
    \n+\n+
    906 {
    \n+
    907 for(auto&& i: *initializers)
    \n+
    908 i.allocateMatrixStorage();
    \n+
    909 for(auto&& i: *initializers)
    \n+
    910 i.allocateMarker();
    \n+
    911 }
    \n+
    \n+
    912
    \n+
    913 template<class I, class S, class D>
    \n+
    \n+\n+
    915 {
    \n+
    916 typedef typename IndexSet::value_type::const_iterator iterator;
    \n+
    917 for(iterator domain=(*indices)[row.index()].begin(); domain != (*indices)[row.index()].end(); ++domain) {
    \n+
    918 typename std::map<size_type,size_type>::const_iterator v = indexMaps[*domain].find(col.index());
    \n+
    919 if(v!= indexMaps[*domain].end()) {
    \n+
    920 (*initializers)[*domain].countEntries(indexMaps[*domain].find(col.index())->second);
    \n+
    921 }
    \n+
    922 }
    \n+
    923 }
    \n+
    \n+
    924
    \n+
    925 template<class I, class S, class D>
    \n+
    \n+\n+
    927 {
    \n+
    928 for(auto&& i : *initializers)
    \n+
    929 i.calcColstart();
    \n+
    930 }
    \n+
    \n+
    931
    \n+
    932 template<class I, class S, class D>
    \n+
    \n+\n+
    934 {
    \n+
    935 typedef typename IndexSet::value_type::const_iterator iterator;
    \n+
    936 for(iterator domain=(*indices)[row.index()].begin(); domain!= (*indices)[row.index()].end(); ++domain) {
    \n+
    937 typename std::map<size_type,size_type>::const_iterator v = indexMaps[*domain].find(col.index());
    \n+
    938 if(v!= indexMaps[*domain].end()) {
    \n+
    939 assert(indexMaps[*domain].end()!=indexMaps[*domain].find(row.index()));
    \n+
    940 (*initializers)[*domain].copyValue(col, indexMaps[*domain].find(row.index())->second,
    \n+
    941 v->second);
    \n+
    942 }
    \n+
    943 }
    \n+
    944 }
    \n+
    \n+
    945
    \n+
    946 template<class I, class S, class D>
    \n+
    \n+\n+
    948 {
    \n+
    949 std::vector<IndexMap>().swap(indexMaps);
    \n+
    950 for(auto&& i: *initializers)
    \n+
    951 i.createMatrix();
    \n+
    952 }
    \n+
    \n+
    953
    \n+
    954 template<class I, class S, class D>
    \n+\n+
    958
    \n+
    959 template<class I, class S, class D>
    \n+
    \n+\n+
    961 {
    \n+
    962 assert(map_.find(grow)==map_.end());
    \n+
    963 map_.insert(std::make_pair(grow, row++));
    \n+
    964 }
    \n+
    \n+
    965
    \n+
    966 template<class I, class S, class D>
    \n+
    967 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::const_iterator
    \n+
    \n+\n+
    969 {
    \n+
    970 return map_.find(grow);
    \n+
    971 }
    \n+
    \n+
    972
    \n+
    973 template<class I, class S, class D>
    \n+
    974 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::iterator
    \n+
    \n+\n+
    976 {
    \n+
    977 return map_.find(grow);
    \n+
    978 }
    \n+
    \n+
    979
    \n+
    980 template<class I, class S, class D>
    \n+
    981 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::const_iterator
    \n+
    \n+\n+
    983 {
    \n+
    984 return map_.end();
    \n+
    985 }
    \n+
    \n+
    986
    \n+
    987 template<class I, class S, class D>
    \n+
    988 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::iterator
    \n+
    \n+\n+
    990 {
    \n+
    991 return map_.end();
    \n+
    992 }
    \n+
    \n+
    993
    \n+
    994 template<class I, class S, class D>
    \n+
    995 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::const_iterator
    \n+
    \n+\n+
    997 {
    \n+
    998 return map_.begin();
    \n+
    999 }
    \n+
    \n+
    1000
    \n+
    1001 template<class I, class S, class D>
    \n+
    1002 typename OverlappingSchwarzInitializer<I,S,D>::IndexMap::iterator
    \n+
    \n+\n+
    1004 {
    \n+
    1005 return map_.begin();
    \n+
    1006 }
    \n+
    \n+
    1007
    \n+
    1008 template<class M, class X, class TM, class TD, class TA>
    \n+
    \n+\n+
    1010 field_type relaxationFactor, bool fly)
    \n+
    1011 : mat(mat_), relax(relaxationFactor), onTheFly(fly)
    \n+
    1012 {
    \n+
    1013 typedef typename rowtodomain_vector::const_iterator RowDomainIterator;
    \n+
    1014 typedef typename subdomain_list::const_iterator DomainIterator;
    \n+
    1015#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1016 assert(rowToDomain.size()==mat.N());
    \n+
    1017 assert(rowToDomain.size()==mat.M());
    \n+
    1018
    \n+
    1019 for(RowDomainIterator iter=rowToDomain.begin(); iter != rowToDomain.end(); ++iter)
    \n+
    1020 assert(iter->size()>0);
    \n+
    1021
    \n+
    1022#endif
    \n+
    1023 // calculate the number of domains
    \n+
    1024 size_type domains=0;
    \n+
    1025 for(RowDomainIterator iter=rowToDomain.begin(); iter != rowToDomain.end(); ++iter)
    \n+
    1026 for(DomainIterator d=iter->begin(); d != iter->end(); ++d)
    \n+
    1027 domains=std::max(domains, *d);
    \n+
    1028 ++domains;
    \n+
    1029
    \n+
    1030 solvers.resize(domains);
    \n+
    1031 subDomains.resize(domains);
    \n+
    1032
    \n+
    1033 // initialize subdomains to row mapping from row to subdomain mapping
    \n+
    1034 size_type row=0;
    \n+
    1035 for(RowDomainIterator iter=rowToDomain.begin(); iter != rowToDomain.end(); ++iter, ++row)
    \n+
    1036 for(DomainIterator d=iter->begin(); d != iter->end(); ++d)
    \n+
    1037 subDomains[*d].insert(row);
    \n+
    1038
    \n+
    1039#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1040 size_type i=0;
    \n+
    1041 typedef typename subdomain_vector::const_iterator iterator;
    \n+
    1042 for(iterator iter=subDomains.begin(); iter != subDomains.end(); ++iter) {
    \n+
    1043 typedef typename subdomain_type::const_iterator entry_iterator;
    \n+
    1044 Dune::dvverb<<"domain "<<i++<<":";
    \n+
    1045 for(entry_iterator entry = iter->begin(); entry != iter->end(); ++entry) {
    \n+
    1046 Dune::dvverb<<" "<<*entry;
    \n+
    1047 }
    \n+
    1048 Dune::dvverb<<std::endl;
    \n+
    1049 }
    \n+
    1050#endif
    \n+\n+
    1052 ::assembleLocalProblems(rowToDomain, mat, solvers, subDomains, onTheFly);
    \n+
    1053 }
    \n+
    \n+
    1054
    \n+
    1055 template<class M, class X, class TM, class TD, class TA>
    \n+
    \n+\n+
    1057 const subdomain_vector& sd,
    \n+
    1058 field_type relaxationFactor,
    \n+
    1059 bool fly)
    \n+
    1060 : mat(mat_), solvers(sd.size()), subDomains(sd), relax(relaxationFactor),
    \n+
    1061 onTheFly(fly)
    \n+
    1062 {
    \n+
    1063 typedef typename subdomain_vector::const_iterator DomainIterator;
    \n+
    1064
    \n+
    1065#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    1066 size_type i=0;
    \n+
    1067
    \n+
    1068 for(DomainIterator d=sd.begin(); d != sd.end(); ++d,++i) {
    \n+
    1069 //std::cout<<i<<": "<<d->size()<<std::endl;
    \n+
    1070 assert(d->size()>0);
    \n+
    1071 typedef typename DomainIterator::value_type::const_iterator entry_iterator;
    \n+
    1072 Dune::dvverb<<"domain "<<i<<":";
    \n+
    1073 for(entry_iterator entry = d->begin(); entry != d->end(); ++entry) {
    \n+
    1074 Dune::dvverb<<" "<<*entry;
    \n+
    1075 }
    \n+
    1076 Dune::dvverb<<std::endl;
    \n+
    1077 }
    \n+
    1078
    \n+
    1079#endif
    \n+
    1080
    \n+
    1081 // Create a row to subdomain mapping
    \n+\n+
    1083
    \n+\n+
    1085
    \n+
    1086 for(DomainIterator domain=sd.begin(); domain != sd.end(); ++domain, ++domainId) {
    \n+
    1087 typedef typename subdomain_type::const_iterator iterator;
    \n+
    1088 for(iterator row=domain->begin(); row != domain->end(); ++row)
    \n+
    1089 rowToDomain[*row].push_back(domainId);
    \n+
    1090 }
    \n+
    1091
    \n+\n+
    1093 ::assembleLocalProblems(rowToDomain, mat, solvers, subDomains, onTheFly);
    \n+
    1094 }
    \n+
    \n+
    1095
    \n+
    1102 template<class M>
    \n+\n+
    1104
    \n+
    1105 template<typename T, typename A>
    \n+
    \n+\n+
    1107 {
    \n+
    1108 static constexpr size_t n = std::decay_t<decltype(Impl::asMatrix(std::declval<T>()))>::rows;
    \n+
    1109 static constexpr size_t m = std::decay_t<decltype(Impl::asMatrix(std::declval<T>()))>::cols;
    \n+
    1110 template<class Domain>
    \n+
    \n+
    1111 static int size(const Domain & d)
    \n+
    1112 {
    \n+
    1113 assert(n==m);
    \n+
    1114 return m*d.size();
    \n+
    1115 }
    \n+
    \n+
    1116 };
    \n+
    \n+
    1117
    \n+
    1118 template<class K, class Al, class X, class Y>
    \n+
    1119 template<class RowToDomain, class Solvers, class SubDomains>
    \n+
    1120 std::size_t
    \n+
    \n+\n+
    1122 assembleLocalProblems([[maybe_unused]] const RowToDomain& rowToDomain,
    \n+
    1123 [[maybe_unused]] const matrix_type& mat,
    \n+
    1124 [[maybe_unused]] Solvers& solvers,
    \n+
    1125 const SubDomains& subDomains,
    \n+
    1126 [[maybe_unused]] bool onTheFly)
    \n+
    1127 {
    \n+
    1128 typedef typename SubDomains::const_iterator DomainIterator;
    \n+
    1129 std::size_t maxlength = 0;
    \n+
    1130
    \n+
    1131 assert(onTheFly);
    \n+
    1132
    \n+
    1133 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end(); ++domain)
    \n+
    1134 maxlength=std::max(maxlength, domain->size());
    \n+
    1135 maxlength*=n;
    \n+
    1136
    \n+
    1137 return maxlength;
    \n+
    1138 }
    \n+
    \n+
    1139
    \n+
    1140#if HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n+
    1141 template<template<class> class S, typename T, typename A>
    \n+
    1142 template<class RowToDomain, class Solvers, class SubDomains>
    \n+
    \n+
    1143 std::size_t SeqOverlappingSchwarzAssemblerHelper<S<BCRSMatrix<T,A>>,true>::assembleLocalProblems(const RowToDomain& rowToDomain,
    \n+
    1144 const matrix_type& mat,
    \n+
    1145 Solvers& solvers,
    \n+
    1146 const SubDomains& subDomains,
    \n+
    1147 bool onTheFly)
    \n+
    1148 {
    \n+
    1149 typedef typename S<BCRSMatrix<T,A>>::MatrixInitializer MatrixInitializer;
    \n+
    1150 typedef typename std::vector<MatrixInitializer>::iterator InitializerIterator;
    \n+
    1151 typedef typename SubDomains::const_iterator DomainIterator;
    \n+
    1152 typedef typename Solvers::iterator SolverIterator;
    \n+
    1153 std::size_t maxlength = 0;
    \n+
    1154
    \n+
    1155 if(onTheFly) {
    \n+
    1156 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end(); ++domain)
    \n+
    1157 maxlength=std::max(maxlength, domain->size());
    \n+
    1158 maxlength*=Impl::asMatrix(*mat[0].begin()).N();
    \n+
    1159 }else{
    \n+
    1160 // initialize the initializers
    \n+
    1161 DomainIterator domain=subDomains.begin();
    \n+
    1162
    \n+
    1163 // Create the initializers list.
    \n+
    1164 std::vector<MatrixInitializer> initializers(subDomains.size());
    \n+
    1165
    \n+
    1166 SolverIterator solver=solvers.begin();
    \n+
    1167 for(InitializerIterator initializer=initializers.begin(); initializer!=initializers.end();
    \n+
    1168 ++initializer, ++solver, ++domain) {
    \n+
    1169 solver->getInternalMatrix().N_=SeqOverlappingSchwarzDomainSize<matrix_type>::size(*domain);
    \n+
    1170 solver->getInternalMatrix().M_=SeqOverlappingSchwarzDomainSize<matrix_type>::size(*domain);
    \n+
    1171 //solver->setVerbosity(true);
    \n+
    1172 *initializer=MatrixInitializer(solver->getInternalMatrix());
    \n+
    1173 }
    \n+
    1174
    \n+
    1175 // Set up the supermatrices according to the subdomains
    \n+\n+
    1177 RowToDomain, SubDomains> Initializer;
    \n+
    1178
    \n+
    1179 Initializer initializer(initializers, rowToDomain, subDomains);
    \n+
    1180 copyToBCCSMatrix(initializer, mat);
    \n+
    1181
    \n+
    1182 // Calculate the LU decompositions
    \n+
    1183 for(auto&& s: solvers)
    \n+
    1184 s.decompose();
    \n+
    1185 for (SolverIterator solverIt = solvers.begin(); solverIt != solvers.end(); ++solverIt)
    \n+
    1186 {
    \n+
    1187 assert(solverIt->getInternalMatrix().N() == solverIt->getInternalMatrix().M());
    \n+
    1188 maxlength = std::max(maxlength, solverIt->getInternalMatrix().N());
    \n+
    1189 }
    \n+
    1190 }
    \n+
    1191 return maxlength;
    \n+
    1192 }
    \n+
    \n+
    1193
    \n+
    1194#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n+
    1195
    \n+
    1196 template<class M,class X,class Y>
    \n+
    1197 template<class RowToDomain, class Solvers, class SubDomains>
    \n+
    \n+
    1198 std::size_t SeqOverlappingSchwarzAssemblerILUBase<M,X,Y>::assembleLocalProblems([[maybe_unused]] const RowToDomain& rowToDomain,
    \n+
    1199 const matrix_type& mat,
    \n+
    1200 Solvers& solvers,
    \n+
    1201 const SubDomains& subDomains,
    \n+
    1202 bool onTheFly)
    \n+
    1203 {
    \n+
    1204 typedef typename SubDomains::const_iterator DomainIterator;
    \n+
    1205 typedef typename Solvers::iterator SolverIterator;
    \n+
    1206 std::size_t maxlength = 0;
    \n+
    1207
    \n+
    1208 if(onTheFly) {
    \n+
    1209 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end(); ++domain)
    \n+
    1210 maxlength=std::max(maxlength, domain->size());
    \n+
    1211 }else{
    \n+
    1212 // initialize the solvers of the local prolems.
    \n+
    1213 SolverIterator solver=solvers.begin();
    \n+
    1214 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end();
    \n+
    1215 ++domain, ++solver) {
    \n+
    1216 solver->setSubMatrix(mat, *domain);
    \n+
    1217 maxlength=std::max(maxlength, domain->size());
    \n+
    1218 }
    \n+
    1219 }
    \n+
    1220
    \n+
    1221 return maxlength;
    \n+
    1222
    \n+
    1223 }
    \n+
    \n+
    1224
    \n+
    1225
    \n+
    1226 template<class M, class X, class TM, class TD, class TA>
    \n+
    \n+\n+
    1228 {
    \n+\n+
    1230 }
    \n+
    \n+
    1231
    \n+
    1232 template<class M, class X, class TM, class TD, class TA>
    \n+
    1233 template<bool forward>
    \n+
    \n+\n+
    1235 {
    \n+
    1236 typedef slu_vector solver_vector;
    \n+\n+\n+
    1239 domain_iterator;
    \n+
    1240
    \n+
    1241 OverlappingAssigner<TD> assigner(maxlength, mat, b, x);
    \n+
    1242
    \n+\n+\n+
    1245 X v(x); // temporary for the update
    \n+
    1246 v=0;
    \n+
    1247
    \n+
    1248 typedef typename AdderSelector<TM,X,TD >::Adder Adder;
    \n+
    1249 Adder adder(v, x, assigner, relax);
    \n+
    1250
    \n+\n+
    1252 //Copy rhs to C-array for SuperLU
    \n+
    1253 std::for_each(domain->begin(), domain->end(), assigner);
    \n+
    1254 assigner.resetIndexForNextDomain();
    \n+
    1255 if(onTheFly) {
    \n+
    1256 // Create the subdomain solver
    \n+
    1257 slu sdsolver;
    \n+
    1258 sdsolver.setSubMatrix(mat, *domain);
    \n+
    1259 // Apply
    \n+
    1260 sdsolver.apply(assigner.lhs(), assigner.rhs());
    \n+
    1261 }else{
    \n+
    1262 solver->apply(assigner.lhs(), assigner.rhs());
    \n+
    1263 ++solver;
    \n+
    1264 }
    \n+
    1265
    \n+
    1266 //Add relaxed correction to from SuperLU to v
    \n+
    1267 std::for_each(domain->begin(), domain->end(), adder);
    \n+
    1268 assigner.resetIndexForNextDomain();
    \n+
    1269
    \n+
    1270 }
    \n+
    1271
    \n+
    1272 adder.axpy();
    \n+
    1273 assigner.deallocate();
    \n+
    1274 }
    \n+
    \n+
    \n+
    1275
    \n+
    1276 template<class K, class Al, class X, class Y>
    \n+\n+
    \n+
    1278 ::OverlappingAssignerHelper(std::size_t maxlength, const BCRSMatrix<K, Al>& mat_,
    \n+
    1279 const X& b_, Y& x_) :
    \n+
    1280 mat(&mat_),
    \n+
    1281 rhs_( new DynamicVector<field_type>(maxlength, 42) ),
    \n+
    1282 lhs_( new DynamicVector<field_type>(maxlength, -42) ),
    \n+
    1283 b(&b_),
    \n+
    1284 x(&x_),
    \n+
    1285 i(0),
    \n+
    1286 maxlength_(maxlength)
    \n+
    1287 {}
    \n+
    \n+
    1288
    \n+
    1289 template<class K, class Al, class X, class Y>
    \n+
    1290 void
    \n+\n+
    \n+
    1292 ::deallocate()
    \n+
    1293 {
    \n+
    1294 delete rhs_;
    \n+
    1295 delete lhs_;
    \n+
    1296 }
    \n+
    \n+
    1297
    \n+
    1298 template<class K, class Al, class X, class Y>
    \n+
    1299 void
    \n+\n+
    \n+
    1301 ::resetIndexForNextDomain()
    \n+
    1302 {
    \n+
    1303 i=0;
    \n+
    1304 }
    \n+
    \n+
    1305
    \n+
    1306 template<class K, class Al, class X, class Y>
    \n+
    1307 DynamicVector<typename X::field_type> &
    \n+\n+
    \n+
    1309 ::lhs()
    \n+
    1310 {
    \n+
    1311 return *lhs_;
    \n+
    1312 }
    \n+
    \n+
    1313
    \n+
    1314 template<class K, class Al, class X, class Y>
    \n+
    1315 DynamicVector<typename X::field_type> &
    \n+\n+
    \n+
    1317 ::rhs()
    \n+
    1318 {
    \n+
    1319 return *rhs_;
    \n+
    1320 }
    \n+
    \n+
    1321
    \n+
    1322 template<class K, class Al, class X, class Y>
    \n+
    1323 void
    \n+\n+
    \n+
    1325 ::relaxResult(field_type relax)
    \n+
    1326 {
    \n+
    1327 lhs() *= relax;
    \n+
    1328 }
    \n+
    \n+
    1329
    \n+
    1330 template<class K, class Al, class X, class Y>
    \n+
    1331 void
    \n+\n+
    \n+
    1333 ::operator()(const size_type& domainIndex)
    \n+
    1334 {
    \n+
    1335 lhs() = 0.0;
    \n+
    1336#if 0
    \n+
    1337 //assign right hand side of current domainindex block
    \n+
    1338 for(size_type j=0; j<n; ++j, ++i) {
    \n+
    1339 assert(i<maxlength_);
    \n+
    1340 rhs()[i]=(*b)[domainIndex][j];
    \n+
    1341 }
    \n+
    1342
    \n+
    1343 // loop over all Matrix row entries and calculate defect.
    \n+
    1344 typedef typename matrix_type::ConstColIterator col_iterator;
    \n+
    1345
    \n+
    1346 // calculate defect for current row index block
    \n+
    1347 for(col_iterator col=(*mat)[domainIndex].begin(); col!=(*mat)[domainIndex].end(); ++col) {
    \n+
    1348 block_type tmp(0.0);
    \n+
    1349 (*col).mv((*x)[col.index()], tmp);
    \n+
    1350 i-=n;
    \n+
    1351 for(size_type j=0; j<n; ++j, ++i) {
    \n+
    1352 assert(i<maxlength_);
    \n+
    1353 rhs()[i]-=tmp[j];
    \n+
    1354 }
    \n+
    1355 }
    \n+
    1356#else
    \n+
    1357 //assign right hand side of current domainindex block
    \n+
    1358 for(size_type j=0; j<n; ++j, ++i) {
    \n+
    1359 assert(i<maxlength_);
    \n+
    1360 rhs()[i]=Impl::asVector((*b)[domainIndex])[j];
    \n+
    1361
    \n+
    1362 // loop over all Matrix row entries and calculate defect.
    \n+
    1363 typedef typename matrix_type::ConstColIterator col_iterator;
    \n+
    1364
    \n+
    1365 // calculate defect for current row index block
    \n+
    1366 for(col_iterator col=(*mat)[domainIndex].begin(); col!=(*mat)[domainIndex].end(); ++col) {
    \n+
    1367 for(size_type k=0; k<n; ++k) {
    \n+
    1368 rhs()[i]-=Impl::asMatrix(*col)[j][k] * Impl::asVector((*x)[col.index()])[k];
    \n+
    1369 }
    \n+
    1370 }
    \n+
    1371 }
    \n+
    1372#endif
    \n+
    1373 }
    \n+
    \n+
    1374
    \n+
    1375 template<class K, class Al, class X, class Y>
    \n+
    1376 void
    \n+\n+
    \n+
    1378 ::assignResult(block_type& res)
    \n+
    1379 {
    \n+
    1380 // assign the result of the local solve to the global vector
    \n+
    1381 for(size_type j=0; j<n; ++j, ++i) {
    \n+
    1382 assert(i<maxlength_);
    \n+
    1383 Impl::asVector(res)[j]+=lhs()[i];
    \n+
    1384 }
    \n+
    1385 }
    \n+
    \n+
    1386
    \n+
    1387#if HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n+
    1388
    \n+
    1389 template<template<class> class S, typename T, typename A>
    \n+\n+
    \n+
    1391 ::OverlappingAssignerHelper(std::size_t maxlength,
    \n+
    1392 const BCRSMatrix<T,A>& mat_,
    \n+
    1393 const range_type& b_,
    \n+
    1394 range_type& x_)
    \n+
    1395 : mat(&mat_),
    \n+
    1396 b(&b_),
    \n+
    1397 x(&x_), i(0), maxlength_(maxlength)
    \n+
    1398 {
    \n+
    1399 rhs_ = new field_type[maxlength];
    \n+
    1400 lhs_ = new field_type[maxlength];
    \n+
    1401
    \n+
    1402 }
    \n+
    \n+
    1403
    \n+
    1404 template<template<class> class S, typename T, typename A>
    \n+
    \n+\n+
    1406 {
    \n+
    1407 delete[] rhs_;
    \n+
    1408 delete[] lhs_;
    \n+
    1409 }
    \n+
    \n+
    1410
    \n+
    1411 template<template<class> class S, typename T, typename A>
    \n+
    \n+
    1412 void OverlappingAssignerHelper<S<BCRSMatrix<T,A>>,true>::operator()(const size_type& domainIndex)
    \n+
    1413 {
    \n+
    1414 //assign right hand side of current domainindex block
    \n+
    1415 // rhs is an array of doubles!
    \n+
    1416 // rhs[starti] = b[domainindex]
    \n+
    1417 for(size_type j=0; j<n; ++j, ++i) {
    \n+
    1418 assert(i<maxlength_);
    \n+
    1419 rhs_[i]=Impl::asVector((*b)[domainIndex])[j];
    \n+
    1420 }
    \n+
    1421
    \n+
    1422
    \n+
    1423 // loop over all Matrix row entries and calculate defect.
    \n+
    1424 typedef typename matrix_type::ConstColIterator col_iterator;
    \n+
    1425
    \n+
    1426 // calculate defect for current row index block
    \n+
    1427 for(col_iterator col=(*mat)[domainIndex].begin(); col!=(*mat)[domainIndex].end(); ++col) {
    \n+
    1428 block_type tmp;
    \n+
    1429 Impl::asMatrix(*col).mv((*x)[col.index()], tmp);
    \n+
    1430 i-=n;
    \n+
    1431 for(size_type j=0; j<n; ++j, ++i) {
    \n+
    1432 assert(i<maxlength_);
    \n+
    1433 rhs_[i]-=Impl::asVector(tmp)[j];
    \n+
    1434 }
    \n+
    1435
    \n+
    1436 }
    \n+
    1437
    \n+
    1438 }
    \n+
    \n+
    1439
    \n+
    1440 template<template<class> class S, typename T, typename A>
    \n+
    \n+\n+
    1442 {
    \n+
    1443 for(size_type j=i+n; i<j; ++i) {
    \n+
    1444 assert(i<maxlength_);
    \n+
    1445 lhs_[i]*=relax;
    \n+
    1446 }
    \n+
    1447 i-=n;
    \n+
    1448 }
    \n+
    \n+
    1449
    \n+
    1450 template<template<class> class S, typename T, typename A>
    \n+
    \n+\n+
    1452 {
    \n+
    1453 // assign the result of the local solve to the global vector
    \n+
    1454 for(size_type j=0; j<n; ++j, ++i) {
    \n+
    1455 assert(i<maxlength_);
    \n+
    1456 Impl::asVector(res)[j]+=lhs_[i];
    \n+
    1457 }
    \n+
    1458 }
    \n+
    \n+
    1459
    \n+
    1460 template<template<class> class S, typename T, typename A>
    \n+
    \n+
    1461 void OverlappingAssignerHelper<S<BCRSMatrix<T,A>>,true>::resetIndexForNextDomain()
    \n+
    1462 {
    \n+
    1463 i=0;
    \n+
    1464 }
    \n+
    \n+
    1465
    \n+
    1466 template<template<class> class S, typename T, typename A>
    \n+
    1467 typename OverlappingAssignerHelper<S<BCRSMatrix<T,A>>,true>::field_type*
    \n+
    \n+\n+
    1469 {
    \n+
    1470 return lhs_;
    \n+
    1471 }
    \n+
    \n+
    1472
    \n+
    1473 template<template<class> class S, typename T, typename A>
    \n+
    1474 typename OverlappingAssignerHelper<S<BCRSMatrix<T,A>>,true>::field_type*
    \n+
    \n+\n+
    1476 {
    \n+
    1477 return rhs_;
    \n+
    1478 }
    \n+
    \n+
    1479
    \n+
    1480#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK
    \n+
    1481
    \n+
    1482 template<class M, class X, class Y>
    \n+
    \n+\n+
    1484 const M& mat_,
    \n+
    1485 const Y& b_,
    \n+
    1486 X& x_)
    \n+
    1487 : mat(&mat_),
    \n+
    1488 b(&b_),
    \n+
    1489 x(&x_), i(0)
    \n+
    1490 {
    \n+
    1491 rhs_= new Y(maxlength);
    \n+
    1492 lhs_ = new X(maxlength);
    \n+
    1493 }
    \n+
    \n+
    1494
    \n+
    1495 template<class M, class X, class Y>
    \n+
    \n+\n+
    1497 {
    \n+
    1498 delete rhs_;
    \n+
    1499 delete lhs_;
    \n+
    1500 }
    \n+
    \n+
    1501
    \n+
    1502 template<class M, class X, class Y>
    \n+
    \n+\n+
    1504 {
    \n+
    1505 (*rhs_)[i]=(*b)[domainIndex];
    \n+
    1506
    \n+
    1507 // loop over all Matrix row entries and calculate defect.
    \n+
    1508 typedef typename matrix_type::ConstColIterator col_iterator;
    \n+
    1509
    \n+
    1510 // calculate defect for current row index block
    \n+
    1511 for(col_iterator col=(*mat)[domainIndex].begin(); col!=(*mat)[domainIndex].end(); ++col) {
    \n+
    1512 Impl::asMatrix(*col).mmv((*x)[col.index()], (*rhs_)[i]);
    \n+
    1513 }
    \n+
    1514 // Goto next local index
    \n+
    1515 ++i;
    \n+
    1516 }
    \n+
    \n+
    1517
    \n+
    1518 template<class M, class X, class Y>
    \n+
    \n+\n+
    1520 {
    \n+
    1521 (*lhs_)[i]*=relax;
    \n+
    1522 }
    \n+
    \n+
    1523
    \n+
    1524 template<class M, class X, class Y>
    \n+
    \n+\n+
    1526 {
    \n+
    1527 res+=(*lhs_)[i++];
    \n+
    1528 }
    \n+
    \n+
    1529
    \n+
    1530 template<class M, class X, class Y>
    \n+
    \n+\n+
    1532 {
    \n+
    1533 return *lhs_;
    \n+
    1534 }
    \n+
    \n+
    1535
    \n+
    1536 template<class M, class X, class Y>
    \n+
    \n+\n+
    1538 {
    \n+
    1539 return *rhs_;
    \n+
    1540 }
    \n+
    \n+
    1541
    \n+
    1542 template<class M, class X, class Y>
    \n+
    \n+\n+
    1544 {
    \n+
    1545 i=0;
    \n+
    1546 }
    \n+
    \n+
    1547
    \n+
    1548 template<typename S, typename T, typename A>
    \n+
    \n+\n+
    1550 BlockVector<T,A>& x_,
    \n+
    1551 OverlappingAssigner<S>& assigner_,
    \n+
    1552 const field_type& relax_)
    \n+
    1553 : v(&v_), x(&x_), assigner(&assigner_), relax(relax_)
    \n+
    1554 {}
    \n+
    \n+
    1555
    \n+
    1556 template<typename S, typename T, typename A>
    \n+
    \n+
    1557 void AdditiveAdder<S,BlockVector<T,A> >::operator()(const size_type& domainIndex)
    \n+
    1558 {
    \n+
    1559 // add the result of the local solve to the current update
    \n+
    1560 assigner->assignResult((*v)[domainIndex]);
    \n+
    1561 }
    \n+
    \n+
    1562
    \n+
    1563
    \n+
    1564 template<typename S, typename T, typename A>
    \n+
    \n+\n+
    1566 {
    \n+
    1567 // relax the update and add it to the current guess.
    \n+
    1568 x->axpy(relax,*v);
    \n+
    1569 }
    \n+
    \n+
    1570
    \n+
    1571
    \n+
    1572 template<typename S, typename T, typename A>
    \n+\n+
    \n+
    1574 ::MultiplicativeAdder([[maybe_unused]] BlockVector<T,A>& v_,
    \n+
    1575 BlockVector<T,A>& x_,
    \n+
    1576 OverlappingAssigner<S>& assigner_, const field_type& relax_)
    \n+
    1577 : x(&x_), assigner(&assigner_), relax(relax_)
    \n+
    1578 {}
    \n+
    \n+
    1579
    \n+
    1580
    \n+
    1581 template<typename S,typename T, typename A>
    \n+
    \n+
    1582 void MultiplicativeAdder<S,BlockVector<T,A> >::operator()(const size_type& domainIndex)
    \n+
    1583 {
    \n+
    1584 // add the result of the local solve to the current guess
    \n+
    1585 assigner->relaxResult(relax);
    \n+
    1586 assigner->assignResult((*x)[domainIndex]);
    \n+
    1587 }
    \n+
    \n+
    1588
    \n+
    1589
    \n+
    1590 template<typename S,typename T, typename A>
    \n+
    \n+\n+
    1592 {
    \n+
    1593 // nothing to do, as the corrections already relaxed and added in operator()
    \n+
    1594 }
    \n+
    \n+
    1595
    \n+
    1596
    \n+
    1598}
    \n+
    1599
    \n+
    1600#endif
    \n+
    \n+
    \n+
    \n+
    \n+\n+
    Templates characterizing the type of a solver.
    \n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    Classes for using SuperLU with ISTL matrices.
    \n+
    Implementation of the BCRSMatrix class.
    \n+
    Classes for using UMFPack with ISTL matrices.
    \n+
    Various local subdomain solvers based on ILU for SeqOverlappingSchwarz.
    \n+
    Define general preconditioner interface.
    \n
    Col col
    Definition matrixmatrix.hh:351
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    void addRowNnz(const Iter &row)
    Definition overlappingschwarz.hh:895
    \n+
    void apply(X &v, const X &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition overlappingschwarz.hh:1234
    \n+
    X & lhs()
    Get the local left hand side.
    Definition overlappingschwarz.hh:1531
    \n+
    void calcColstart() const
    Definition overlappingschwarz.hh:926
    \n+
    Y & rhs()
    Get the local right hand side.
    Definition overlappingschwarz.hh:1537
    \n+
    iterator end()
    Definition overlappingschwarz.hh:989
    \n+
    void resetIndexForNextDomain()
    Resets the local index to zero.
    Definition overlappingschwarz.hh:1543
    \n+
    void copyValue(const Iter &row, const CIter &col) const
    Definition overlappingschwarz.hh:933
    \n+
    void createMatrix() const
    Definition overlappingschwarz.hh:947
    \n+
    iterator begin()
    Definition overlappingschwarz.hh:1003
    \n+
    OverlappingSchwarzInitializer(InitializerList &il, const IndexSet &indices, const subdomain_vector &domains)
    Definition overlappingschwarz.hh:887
    \n+
    IndexMap()
    Definition overlappingschwarz.hh:955
    \n+
    virtual void apply(X &v, const X &d)
    Apply the precondtioner.
    Definition overlappingschwarz.hh:1227
    \n+
    OverlappingAssignerILUBase(std::size_t maxlength, const M &mat, const Y &b, X &x)
    Constructor.
    Definition overlappingschwarz.hh:1483
    \n+
    const_iterator find(size_type grow) const
    Definition overlappingschwarz.hh:968
    \n+
    void operator()(const size_type &domain)
    calculate one entry of the local defect.
    Definition overlappingschwarz.hh:1503
    \n+
    SeqOverlappingSchwarz(const matrix_type &mat, const subdomain_vector &subDomains, field_type relaxationFactor=1, bool onTheFly_=true)
    Construct the overlapping Schwarz method.
    Definition overlappingschwarz.hh:1056
    \n+
    void allocate()
    Definition overlappingschwarz.hh:905
    \n+
    void deallocate()
    Deallocates memory of the local vector.
    Definition overlappingschwarz.hh:1496
    \n+
    void insert(size_type grow)
    Definition overlappingschwarz.hh:960
    \n+
    void countEntries(const Iter &row, const CIter &col) const
    Definition overlappingschwarz.hh:914
    \n+
    static std::size_t assembleLocalProblems(const RowToDomain &rowToDomain, const matrix_type &mat, Solvers &solvers, const SubDomains &domains, bool onTheFly)
    Definition overlappingschwarz.hh:1198
    \n+
    void relaxResult(field_type relax)
    relax the result.
    Definition overlappingschwarz.hh:1519
    \n+
    void assignResult(block_type &res)
    Assigns the block to the current local index. At the same time the local defect is calculated for the...
    Definition overlappingschwarz.hh:1525
    \n+
    SeqOverlappingSchwarz(const matrix_type &mat, const rowtodomain_vector &rowToDomain, field_type relaxationFactor=1, bool onTheFly_=true)
    Definition overlappingschwarz.hh:1009
    \n
    Definition allocator.hh:11
    \n+
    Initializer for SuperLU Matrices representing the subdomains.
    Definition overlappingschwarz.hh:47
    \n+
    Matrix::row_type::const_iterator CIter
    Definition overlappingschwarz.hh:56
    \n+
    S IndexSet
    Definition overlappingschwarz.hh:58
    \n+
    Matrix::const_iterator Iter
    Definition overlappingschwarz.hh:55
    \n+
    IndexSet::size_type size_type
    Definition overlappingschwarz.hh:59
    \n+
    I InitializerList
    Definition overlappingschwarz.hh:52
    \n+
    AtomInitializer::Matrix Matrix
    Definition overlappingschwarz.hh:54
    \n+
    InitializerList::value_type AtomInitializer
    Definition overlappingschwarz.hh:53
    \n+
    D subdomain_vector
    The vector type containing the subdomain to row index mapping.
    Definition overlappingschwarz.hh:50
    \n
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    void endrowsizes()
    indicate that size of all rows is defined
    Definition bcrsmatrix.hh:1149
    \n-
    @ random
    Build entries randomly.
    Definition bcrsmatrix.hh:530
    \n-
    void addindex(size_type row, size_type col)
    add index (row,col) to the matrix
    Definition bcrsmatrix.hh:1191
    \n-
    void endindices()
    indicate that all indices are defined, check consistency
    Definition bcrsmatrix.hh:1248
    \n-
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n-
    void setSize(size_type rows, size_type columns, size_type nnz=0)
    Set the size of the matrix.
    Definition bcrsmatrix.hh:861
    \n-
    BCRSMatrix & operator=(const BCRSMatrix &Mat)
    assignment
    Definition bcrsmatrix.hh:911
    \n-
    A block-tridiagonal matrix.
    Definition btdmatrix.hh:31
    \n-
    static constexpr auto blocklevel
    increment block level counter
    Definition btdmatrix.hh:53
    \n-
    BTDMatrix(size_type size)
    Definition btdmatrix.hh:58
    \n-
    void solve(V &x, const V &rhs) const
    Use the Thomas algorithm to solve the system Ax=b in O(n) time.
    Definition btdmatrix.hh:125
    \n-
    A::size_type size_type
    implement row_type with compressed vector
    Definition btdmatrix.hh:49
    \n-
    A allocator_type
    export the allocator type
    Definition btdmatrix.hh:43
    \n-
    B block_type
    export the type representing the components
    Definition btdmatrix.hh:40
    \n-
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition btdmatrix.hh:37
    \n-
    BTDMatrix & operator=(const BTDMatrix &other)
    assignment
    Definition btdmatrix.hh:108
    \n-
    BTDMatrix()
    Default constructor.
    Definition btdmatrix.hh:56
    \n-
    void setSize(size_type size)
    Resize the matrix. Invalidates the content!
    Definition btdmatrix.hh:81
    \n-
    typename FieldTraits< field_type >::real_type real_type
    Definition btdmatrix.hh:208
    \n-
    typename BTDMatrix< B, A >::field_type field_type
    Definition btdmatrix.hh:207
    \n+
    Iterator end()
    Get iterator to one beyond last row.
    Definition bcrsmatrix.hh:681
    \n+
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n+
    row_type::ConstIterator ConstColIterator
    Const iterator to the entries of a row.
    Definition bcrsmatrix.hh:741
    \n+
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n+
    Exact subdomain solver using ILU(p) with appropriate p.
    Definition ilusubdomainsolver.hh:78
    \n+
    Definition ilusubdomainsolver.hh:111
    \n+
    Sequential overlapping Schwarz preconditioner.
    Definition overlappingschwarz.hh:755
    \n+
    X::field_type field_type
    The field type of the preconditioner.
    Definition overlappingschwarz.hh:783
    \n+
    SLList< size_type, typename std::allocator_traits< TA >::template rebind_alloc< size_type > > subdomain_list
    The type for the row to subdomain mapping.
    Definition overlappingschwarz.hh:800
    \n+
    std::vector< slu, typename std::allocator_traits< TA >::template rebind_alloc< slu > > slu_vector
    The vector type containing subdomain solvers.
    Definition overlappingschwarz.hh:809
    \n+
    M matrix_type
    The type of the matrix to precondition.
    Definition overlappingschwarz.hh:760
    \n+
    TM Mode
    The mode (additive or multiplicative) of the Schwarz method.
    Definition overlappingschwarz.hh:778
    \n+
    X range_type
    The range type of the preconditioner.
    Definition overlappingschwarz.hh:770
    \n+
    std::set< size_type, std::less< size_type >, typename std::allocator_traits< TA >::template rebind_alloc< size_type > > subdomain_type
    The type for the subdomain to row index mapping.
    Definition overlappingschwarz.hh:794
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition overlappingschwarz.hh:765
    \n+
    TD slu
    The type for the subdomain solver in use.
    Definition overlappingschwarz.hh:806
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition overlappingschwarz.hh:868
    \n+
    virtual void pre(X &x, X &b)
    Prepare the preconditioner.
    Definition overlappingschwarz.hh:846
    \n+
    virtual void post(X &x)
    Postprocess the preconditioner.
    Definition overlappingschwarz.hh:861
    \n+
    TA allocator
    The allocator to use.
    Definition overlappingschwarz.hh:789
    \n+
    std::vector< subdomain_type, typename std::allocator_traits< TA >::template rebind_alloc< subdomain_type > > subdomain_vector
    The vector type containing the subdomain to row index mapping.
    Definition overlappingschwarz.hh:797
    \n+
    std::vector< subdomain_list, typename std::allocator_traits< TA >::template rebind_alloc< subdomain_list > > rowtodomain_vector
    The vector type containing the row index to subdomain mapping.
    Definition overlappingschwarz.hh:803
    \n+
    matrix_type::size_type size_type
    The return type of the size method.
    Definition overlappingschwarz.hh:786
    \n+
    Definition overlappingschwarz.hh:694
    \n+
    Tag that the tells the Schwarz method to be additive.
    Definition overlappingschwarz.hh:120
    \n+
    Tag that tells the Schwarz method to be multiplicative.
    Definition overlappingschwarz.hh:126
    \n+
    Tag that tells the Schwarz method to be multiplicative and symmetric.
    Definition overlappingschwarz.hh:133
    \n+
    Exact subdomain solver using Dune::DynamicMatrix<T>::solve.
    Definition overlappingschwarz.hh:140
    \n+
    std::remove_const< M >::type matrix_type
    The matrix type the preconditioner is for.
    Definition overlappingschwarz.hh:149
    \n+
    X::field_type field_type
    Definition overlappingschwarz.hh:150
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition overlappingschwarz.hh:153
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition overlappingschwarz.hh:155
    \n+
    void setSubMatrix(const M &BCRS, S &rowset)
    Set the data of the local problem.
    Definition overlappingschwarz.hh:184
    \n+
    void apply(DynamicVector< field_type > &v, DynamicVector< field_type > &d)
    Apply the subdomain solver.
    Definition overlappingschwarz.hh:162
    \n+
    std::remove_const< M >::type rilu_type
    Definition overlappingschwarz.hh:151
    \n+
    Definition overlappingschwarz.hh:215
    \n+\n+\n+\n+\n+\n+
    S< BCRSMatrix< T, A > >::range_type range_type
    Definition overlappingschwarz.hh:315
    \n+
    range_type::block_type block_type
    Definition overlappingschwarz.hh:317
    \n+
    range_type::field_type field_type
    Definition overlappingschwarz.hh:316
    \n+
    matrix_type::size_type size_type
    Definition overlappingschwarz.hh:319
    \n+
    BCRSMatrix< T, A > matrix_type
    Definition overlappingschwarz.hh:314
    \n+
    Definition overlappingschwarz.hh:400
    \n+
    matrix_type::size_type size_type
    Definition overlappingschwarz.hh:408
    \n+
    Y::field_type field_type
    Definition overlappingschwarz.hh:404
    \n+
    Y::block_type block_type
    Definition overlappingschwarz.hh:406
    \n+
    M matrix_type
    Definition overlappingschwarz.hh:402
    \n+
    OverlappingAssignerHelper(std::size_t maxlength, const M &mat, const Y &b, X &x)
    Constructor.
    Definition overlappingschwarz.hh:493
    \n+
    OverlappingAssignerHelper(std::size_t maxlength, const M &mat, const Y &b, X &x)
    Constructor.
    Definition overlappingschwarz.hh:512
    \n+
    Definition overlappingschwarz.hh:520
    \n+
    std::decay_t< decltype(Impl::asVector(std::declval< T >()))>::field_type field_type
    Definition overlappingschwarz.hh:526
    \n+
    A::size_type size_type
    Definition overlappingschwarz.hh:525
    \n+
    Definition overlappingschwarz.hh:542
    \n+
    A::size_type size_type
    Definition overlappingschwarz.hh:547
    \n+
    std::decay_t< decltype(Impl::asVector(std::declval< T >()))>::field_type field_type
    Definition overlappingschwarz.hh:548
    \n+
    template meta program for choosing how to add the correction.
    Definition overlappingschwarz.hh:572
    \n+
    AdditiveAdder< S, X > Adder
    Definition overlappingschwarz.hh:577
    \n+
    MultiplicativeAdder< S, X > Adder
    Definition overlappingschwarz.hh:583
    \n+
    MultiplicativeAdder< S, X > Adder
    Definition overlappingschwarz.hh:589
    \n+
    Helper template meta program for application of overlapping Schwarz.
    Definition overlappingschwarz.hh:605
    \n+
    static solver_iterator begin(solver_vector &sv)
    Definition overlappingschwarz.hh:611
    \n+
    solver_vector::iterator solver_iterator
    Definition overlappingschwarz.hh:607
    \n+
    static domain_iterator end(const subdomain_vector &sv)
    Definition overlappingschwarz.hh:625
    \n+
    subdomain_vector::const_iterator domain_iterator
    Definition overlappingschwarz.hh:609
    \n+
    T1 solver_vector
    Definition overlappingschwarz.hh:606
    \n+
    static domain_iterator begin(const subdomain_vector &sv)
    Definition overlappingschwarz.hh:620
    \n+
    T2 subdomain_vector
    Definition overlappingschwarz.hh:608
    \n+
    static solver_iterator end(solver_vector &sv)
    Definition overlappingschwarz.hh:616
    \n+
    T2 subdomain_vector
    Definition overlappingschwarz.hh:636
    \n+
    static solver_iterator end(solver_vector &sv)
    Definition overlappingschwarz.hh:644
    \n+
    solver_vector::reverse_iterator solver_iterator
    Definition overlappingschwarz.hh:635
    \n+
    subdomain_vector::const_reverse_iterator domain_iterator
    Definition overlappingschwarz.hh:637
    \n+
    static solver_iterator begin(solver_vector &sv)
    Definition overlappingschwarz.hh:639
    \n+
    T1 solver_vector
    Definition overlappingschwarz.hh:634
    \n+
    static domain_iterator begin(const subdomain_vector &sv)
    Definition overlappingschwarz.hh:648
    \n+
    static domain_iterator end(const subdomain_vector &sv)
    Definition overlappingschwarz.hh:653
    \n+
    Helper template meta program for application of overlapping Schwarz.
    Definition overlappingschwarz.hh:669
    \n+
    smoother::range_type range_type
    Definition overlappingschwarz.hh:671
    \n+
    T smoother
    Definition overlappingschwarz.hh:670
    \n+
    static void apply(smoother &sm, range_type &v, const range_type &b)
    Definition overlappingschwarz.hh:673
    \n+
    static void apply(smoother &sm, range_type &v, const range_type &b)
    Definition overlappingschwarz.hh:685
    \n+
    SeqOverlappingSchwarz< M, X, SymmetricMultiplicativeSchwarzMode, TD, TA > smoother
    Definition overlappingschwarz.hh:682
    \n+\n+\n+
    BCRSMatrix< T, A > matrix_type
    Definition overlappingschwarz.hh:713
    \n+
    Definition overlappingschwarz.hh:723
    \n+
    M matrix_type
    Definition overlappingschwarz.hh:724
    \n+
    Definition overlappingschwarz.hh:1103
    \n+
    static int size(const Domain &d)
    Definition overlappingschwarz.hh:1111
    \n+
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,288 +1,1878 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-btdmatrix.hh\n+overlappingschwarz.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_BTDMATRIX_HH\n-6#define DUNE_ISTL_BTDMATRIX_HH\n-7\n-8#include \n-9#include \n-10#include \n-11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n-13\n-19namespace _\bD_\bu_\bn_\be {\n-29 template >\n-_\b3_\b0 class _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx : public _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-31 {\n-32 public:\n-33\n-34 //===== type definitions and constants\n-35\n-_\b3_\b7 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n-38\n-_\b4_\b0 typedef B _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+5#ifndef DUNE_ISTL_OVERLAPPINGSCHWARZ_HH\n+6#define DUNE_ISTL_OVERLAPPINGSCHWARZ_HH\n+7#include \n+8#include \n+9#include \n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15\n+16#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n+17#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\"\n+18#include \"_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh\"\n+19#include \"_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh\"\n+20#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n+21#include \"_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+22#include \"_\bi_\bl_\bu_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\"\n+23#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+24\n+25namespace _\bD_\bu_\bn_\be\n+26{\n+27\n+39 template\n+40 class SeqOverlappingSchwarz;\n 41\n-_\b4_\b3 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n-44\n-46 //typedef BCRSMatrix::row_type row_type;\n-47\n-_\b4_\b9 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-50\n-52 [[deprecated(\"Use free blockLevel function. Will be removed after 2.8.\")]]\n-_\b5_\b3 static constexpr auto _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+1;\n-54\n-_\b5_\b6 _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx() : _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx() {}\n+45 template\n+_\b4_\b6 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+47 {\n+48 public:\n+_\b5_\b0 typedef D _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br;\n+51\n+_\b5_\b2 typedef I _\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\bL_\bi_\bs_\bt;\n+_\b5_\b3 typedef typename InitializerList::value_type _\bA_\bt_\bo_\bm_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n+_\b5_\b4 typedef typename AtomInitializer::Matrix _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b5_\b5 typedef typename Matrix::const_iterator _\bI_\bt_\be_\br;\n+_\b5_\b6 typedef typename Matrix::row_type::const_iterator _\bC_\bI_\bt_\be_\br;\n 57\n-_\b5_\b8 explicit _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size)\n-59 : _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx(size, size, _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx::_\br_\ba_\bn_\bd_\bo_\bm)\n-60 {\n-61 // Set number of entries for each row\n-62 // All rows get three entries, except for the first and the last one\n-63 for (size_t i=0; i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be(i, 3 - (i==0) - (i==(size-1)));\n+_\b5_\b8 typedef S _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n+_\b5_\b9 typedef typename IndexSet::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+60\n+61 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br(_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\bL_\bi_\bs_\bt& il,\n+62 const _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& indices,\n+63 const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& domains);\n+64\n 65\n-66 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs();\n+66 void _\ba_\bd_\bd_\bR_\bo_\bw_\bN_\bn_\bz(const _\bI_\bt_\be_\br& row);\n 67\n-68 // The actual entries for each row\n-69 for (size_t i=0; i0)\n-71 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i-1);\n-72 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i );\n-73 if (i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i+1);\n-75 }\n-76\n-77 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs();\n-78 }\n-79\n-_\b8_\b1 void _\bs_\be_\bt_\bS_\bi_\bz_\be(size_type size)\n-82 {\n-83 auto nonZeros = (size==0) ? 0 : size + 2*(size-1);\n-84 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be(size, // rows\n-85 size, // columns\n-86 nonZeros);\n+68 void _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be();\n+69\n+70 void _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(const _\bI_\bt_\be_\br& row, const _\bC_\bI_\bt_\be_\br& _\bc_\bo_\bl) const;\n+71\n+72 void _\bc_\ba_\bl_\bc_\bC_\bo_\bl_\bs_\bt_\ba_\br_\bt() const;\n+73\n+74 void _\bc_\bo_\bp_\by_\bV_\ba_\bl_\bu_\be(const _\bI_\bt_\be_\br& row, const _\bC_\bI_\bt_\be_\br& _\bc_\bo_\bl) const;\n+75\n+76 void _\bc_\br_\be_\ba_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx() const;\n+77 private:\n+78 class IndexMap\n+79 {\n+80 public:\n+81 typedef typename S::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+82 typedef std::map Map;\n+83 typedef typename Map::iterator iterator;\n+84 typedef typename Map::const_iterator const_iterator;\n+85\n+86 _\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp();\n 87\n-88 // Set number of entries for each row\n-89 // All rows get three entries, except for the first and the last one\n-90 for (size_t i=0; i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be(i, 3 - (i==0) - (i==(size-1)));\n-92\n-93 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs();\n-94\n-95 // The actual entries for each row\n-96 for (size_t i=0; i0)\n-98 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i-1);\n-99 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i );\n-100 if (i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i+1);\n-102 }\n-103\n-104 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs();\n-105 }\n+88 void _\bi_\bn_\bs_\be_\br_\bt(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be grow);\n+89\n+90 const_iterator _\bf_\bi_\bn_\bd(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be grow) const;\n+91\n+92 iterator _\bf_\bi_\bn_\bd(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be grow);\n+93\n+94 iterator _\bb_\be_\bg_\bi_\bn();\n+95\n+96 const_iterator _\bb_\be_\bg_\bi_\bn() const;\n+97\n+98 iterator _\be_\bn_\bd();\n+99\n+100 const_iterator _\be_\bn_\bd() const;\n+101\n+102 private:\n+103 std::map map_;\n+104 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row;\n+105 };\n 106\n-_\b1_\b0_\b8 _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx& other) {\n-109 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(other);\n-110 return *this;\n-111 }\n-112\n-_\b1_\b1_\b4 _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k) {\n-115 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(k);\n-116 return *this;\n-117 }\n-118\n-124 template \n-_\b1_\b2_\b5 void _\bs_\bo_\bl_\bv_\be (V& x, const V& rhs) const {\n-126\n-127 // special handling for 1x1 matrices. The generic algorithm doesn't work\n-for them\n-128 if (this->_\bN()==1) {\n-129 auto&& x0 = Impl::asVector(x[0]);\n-130 auto&& rhs0 = Impl::asVector(rhs[0]);\n-131 Impl::asMatrix((*this)[0][0]).solve(x0, rhs0);\n-132 return;\n-133 }\n+107\n+108 typedef typename InitializerList::iterator InitIterator;\n+109 typedef typename IndexSet::const_iterator IndexIteratur;\n+110 _\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\bL_\bi_\bs_\bt* initializers;\n+111 const _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt *indices;\n+112 mutable std::vector indexMaps;\n+113 const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& domains;\n+114 };\n+115\n+_\b1_\b1_\b9 struct _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n+120 {};\n+121\n+_\b1_\b2_\b5 struct _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n+126 {};\n+127\n+_\b1_\b3_\b2 struct _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n+133 {};\n 134\n-135 // Make copies of the rhs and the right matrix band\n-136 V d = rhs;\n-137 std::vector c(this->_\bN()-1);\n-138 for (size_t i=0; i_\bN()-1; i++)\n-139 c[i] = (*this)[i][i+1];\n-140\n-141 /* Modify the coefficients. */\n-142 _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be a_00_inv = (*this)[0][0];\n-143 Impl::asMatrix(a_00_inv).invert();\n-144\n-145 //c[0] /= (*this)[0][0]; /* Division by zero risk. */\n-146 _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be tmp = a_00_inv;\n-147 Impl::asMatrix(tmp).rightmultiply(Impl::asMatrix(c[0]));\n-148 c[0] = tmp;\n-149\n-150 // d = a^{-1} d /* Division by zero would imply a singular matrix. */\n-151 auto d_0_tmp = d[0];\n-152 auto&& d_0 = Impl::asVector(d[0]);\n-153 Impl::asMatrix(a_00_inv).mv(Impl::asVector(d_0_tmp),d_0);\n-154\n-155 for (unsigned int i = 1; i < this->_\bN(); i++) {\n-156\n-157 // id = ( a_ii - c_{i-1} a_{i, i-1} ) ^{-1}\n-158 _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be tmp;\n-159 tmp = (*this)[i][i-1];\n-160 Impl::asMatrix(tmp).rightmultiply(Impl::asMatrix(c[i-1]));\n-161\n-162 _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be id = (*this)[i][i];\n-163 id -= tmp;\n-164 Impl::asMatrix(id).invert(); /* Division by zero risk. */\n-165\n-166 if (i_\bN() - 1] = d[this->_\bN() - 1];\n-179 for (int i = this->_\bN() - 2; i >= 0; i--) {\n-180 //x[i] = d[i] - c[i] * x[i + 1];\n-181 x[i] = d[i];\n-182 auto&& x_i = Impl::asVector(x[i]);\n-183 Impl::asMatrix(c[i]).mmv(Impl::asVector(x[i+1]), x_i);\n-184 }\n-185\n-186 }\n-187\n-188 private:\n-189\n-190 // ////////////////////////////////////////////////////////////////////////\n-////\n-191 // The following methods from the base class should now actually be called\n-192 // ////////////////////////////////////////////////////////////////////////\n-////\n-193\n-194 // createbegin and createend should be in there, too, but I can't get it to\n-compile\n-195 // BCRSMatrix::CreateIterator createbegin () {}\n-196 // BCRSMatrix::CreateIterator createend () {}\n-197 void setrowsize (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s) {}\n-198 void incrementrowsize (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) {}\n-199 void endrowsizes () {}\n-200 void addindex (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl) {}\n-201 void endindices () {}\n-202 };\n-203\n-204 template\n-_\b2_\b0_\b5 struct FieldTraits< _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx >\n-206 {\n-_\b2_\b0_\b7 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\b _\bA_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b2_\b0_\b8 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n-209 };\n-210\n-213} // end namespace Dune\n-214\n-215#endif\n-_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n-Helper functions for determining the vector/matrix block level.\n+139 template\n+_\b1_\b4_\b0 class _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br;\n+141\n+142 // Specialization for BCRSMatrix\n+143 template\n+_\b1_\b4_\b4 class _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br< _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< K, Al>, X, Y >\n+145 {\n+146 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b> _\bM;\n+147 public:\n+_\b1_\b4_\b9 typedef typename std::remove_const::type _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b1_\b5_\b0 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b1_\b5_\b1 typedef typename std::remove_const::type _\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be;\n+_\b1_\b5_\b3 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b1_\b5_\b5 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b1_\b5_\b6 static constexpr size_t n = std::decay_t()))>::rows;\n+157\n+_\b1_\b6_\b2 void _\ba_\bp_\bp_\bl_\by (DynamicVector& v, DynamicVector& d)\n+163 {\n+164 assert(v.size() > 0);\n+165 assert(v.size() == d.size());\n+166 assert(A.rows() <= v.size());\n+167 assert(A.cols() <= v.size());\n+168 size_t sz = A.rows();\n+169 v.resize(sz);\n+170 d.resize(sz);\n+171 A.solve(v,d);\n+172 v.resize(v.capacity());\n+173 d.resize(d.capacity());\n+174 }\n+175\n+183 template\n+_\b1_\b8_\b4 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const _\bM& BCRS, S& rowset)\n+185 {\n+186 size_t sz = rowset.size();\n+187 A.resize(sz*n,sz*n);\n+188 typedef typename S::const_iterator SIter;\n+189 size_t r = 0, c = 0;\n+190 for(SIter rowIdx = rowset.begin(), rowEnd=rowset.end();\n+191 rowIdx!= rowEnd; ++rowIdx, r++)\n+192 {\n+193 c = 0;\n+194 for(SIter colIdx = rowset.begin(), colEnd=rowset.end();\n+195 colIdx!= colEnd; ++colIdx, c++)\n+196 {\n+197 if (BCRS[*rowIdx].find(*colIdx) == BCRS[*rowIdx]._\be_\bn_\bd())\n+198 continue;\n+199 for (size_t i=0; i A;\n+211 };\n+212\n+213 template\n+_\b2_\b1_\b4 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+215 {};\n+216\n+217 template\n+_\b2_\b1_\b8 using _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br = _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bT_\b,_\b _\bD_\bu_\bn_\be_\b:_\b:\n+_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\bT_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be>;\n+219\n+220 // specialization for DynamicMatrix\n+221 template\n+_\b2_\b2_\b2 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br< _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br<\n+_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx, X, Y >,false>\n+223 {\n+224 public:\n+_\b2_\b2_\b5 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b> _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b2_\b2_\b6 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b2_\b2_\b7 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b2_\b2_\b8 typedef typename range_type::block_type _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+_\b2_\b2_\b9 typedef typename _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+_\b2_\b3_\b0 static constexpr size_t n = std::decay_t()))>::rows;\n+238 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br(std::size_t maxlength, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\b _\bA_\bl_\b>&\n+mat_, const X& b_, Y& x_);\n+239\n+243 inline\n+244 void deallocate();\n+245\n+249 inline\n+250 void resetIndexForNextDomain();\n+251\n+256 inline\n+257 DynamicVector & lhs();\n+258\n+263 inline\n+264 DynamicVector & rhs();\n+265\n+270 inline\n+271 void relaxResult(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax);\n+272\n+277 void operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domainIndex);\n+278\n+286 inline\n+287 void assignResult(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res);\n+288\n+289 private:\n+293 const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be* _\bm_\ba_\bt;\n+295 // we need a pointer, because we have to avoid deep copies\n+296 DynamicVector * rhs_;\n+298 // we need a pointer, because we have to avoid deep copies\n+299 DynamicVector * lhs_;\n+301 const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be* b;\n+303 _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be* x;\n+305 std::size_t i;\n+307 std::size_t maxlength_;\n+308 };\n+309\n+310#if HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK\n+311 template class S, typename T, typename A>\n+_\b3_\b1_\b2 struct _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br>, true>\n+313 {\n+_\b3_\b1_\b4 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\b _\bA_\b> _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b3_\b1_\b5 typedef typename S>::range_type _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b3_\b1_\b6 typedef typename range_type::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b3_\b1_\b7 typedef typename range_type::block_type _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+318\n+_\b3_\b1_\b9 typedef typename _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+320\n+_\b3_\b2_\b1 static constexpr size_t n = std::decay_t()))>::rows;\n+_\b3_\b2_\b2 static constexpr size_t m = std::decay_t()))>::cols;\n+330 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br(std::size_t maxlength, const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n+331 const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& x);\n+337 void deallocate();\n+338\n+339 /*\n+340 * @brief Resets the local index to zero.\n+341 */\n+342 void resetIndexForNextDomain();\n+343\n+348 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be* lhs();\n+349\n+354 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be* rhs();\n+355\n+360 void relaxResult(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax);\n+361\n+366 void operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domain);\n+367\n+375 void assignResult(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res);\n+376\n+377 private:\n+381 const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be* _\bm_\ba_\bt;\n+383 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be* rhs_;\n+385 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be* lhs_;\n+387 const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be* b;\n+389 _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be* x;\n+391 std::size_t i;\n+393 std::size_t maxlength_;\n+394 };\n+395\n+396#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK\n+397\n+398 template\n+_\b3_\b9_\b9 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n+400 {\n+401 public:\n+_\b4_\b0_\b2 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+403\n+_\b4_\b0_\b4 typedef typename Y::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+405\n+_\b4_\b0_\b6 typedef typename Y::block_type _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+407\n+_\b4_\b0_\b8 typedef typename matrix_type::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+416 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be(std::size_t maxlength, const M& mat,\n+417 const Y& b, X& x);\n+423 void _\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be();\n+424\n+428 void _\br_\be_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bF_\bo_\br_\bN_\be_\bx_\bt_\bD_\bo_\bm_\ba_\bi_\bn();\n+429\n+434 X& _\bl_\bh_\bs();\n+435\n+440 Y& _\br_\bh_\bs();\n+441\n+446 void _\br_\be_\bl_\ba_\bx_\bR_\be_\bs_\bu_\bl_\bt(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax);\n+447\n+452 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domain);\n+453\n+461 void _\ba_\bs_\bs_\bi_\bg_\bn_\bR_\be_\bs_\bu_\bl_\bt(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res);\n+462\n+463 private:\n+467 const M* mat;\n+469 X* lhs_;\n+471 Y* rhs_;\n+473 const Y* b;\n+475 X* x;\n+477 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i;\n+478 };\n+479\n+480 // specialization for ILU0\n+481 template\n+_\b4_\b8_\b2 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br, false>\n+483 : public _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n+484 {\n+485 public:\n+_\b4_\b9_\b3 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br(std::size_t maxlength, const M& _\bm_\ba_\bt,\n+494 const Y& b, X& x)\n+495 : _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be(maxlength, _\bm_\ba_\bt,b,x)\n+496 {}\n+497 };\n+498\n+499 // specialization for ILUN\n+500 template\n+_\b5_\b0_\b1 class _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br,false>\n+502 : public _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n+503 {\n+504 public:\n+_\b5_\b1_\b2 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br(std::size_t maxlength, const M& _\bm_\ba_\bt,\n+513 const Y& b, X& x)\n+514 : _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be(maxlength, _\bm_\ba_\bt,b,x)\n+515 {}\n+516 };\n+517\n+518 template\n+_\b5_\b1_\b9 struct _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br\n+520 {};\n+521\n+522 template\n+_\b5_\b2_\b3 struct _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br >\n+524 {\n+_\b5_\b2_\b5 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+_\b5_\b2_\b6 typedef typename std::decay_t\n+()))>::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+527 _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br(_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& v, _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& x,\n+528 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>& assigner, const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& relax_);\n+529 void operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domain);\n+530 void axpy();\n+_\b5_\b3_\b1 static constexpr size_t n = std::decay_t()))>::dimension;\n+532\n+533 private:\n+534 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>* v;\n+535 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>* x;\n+536 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>* assigner;\n+537 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax;\n+538 };\n+539\n+540 template\n+_\b5_\b4_\b1 struct _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br\n+542 {};\n+543\n+544 template\n+_\b5_\b4_\b5 struct _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br >\n+546 {\n+_\b5_\b4_\b7 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+_\b5_\b4_\b8 typedef typename std::decay_t\n+()))>::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+549 _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br(_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& v, _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& x,\n+550 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>& assigner_, const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& relax_);\n+551 void operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domain);\n+552 void axpy();\n+_\b5_\b5_\b3 static constexpr size_t n = std::decay_t()))>::dimension;\n+554\n+555 private:\n+556 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>* x;\n+557 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>* assigner;\n+558 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax;\n+559 };\n+560\n+570 template\n+_\b5_\b7_\b1 struct _\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+572 {};\n+573\n+574 template\n+_\b5_\b7_\b5 struct _\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br<_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be,X,S>\n+576 {\n+_\b5_\b7_\b7 typedef _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bX_\b> _\bA_\bd_\bd_\be_\br;\n+578 };\n+579\n+580 template\n+_\b5_\b8_\b1 struct _\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br<_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be,X,S>\n+582 {\n+_\b5_\b8_\b3 typedef _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bX_\b> _\bA_\bd_\bd_\be_\br;\n+584 };\n+585\n+586 template\n+_\b5_\b8_\b7 struct _\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br<_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be,X,S>\n+588 {\n+_\b5_\b8_\b9 typedef _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bX_\b> _\bA_\bd_\bd_\be_\br;\n+590 };\n+591\n+603 template\n+_\b6_\b0_\b4 struct _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+605 {\n+_\b6_\b0_\b6 typedef T1 _\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br;\n+_\b6_\b0_\b7 typedef typename solver_vector::iterator _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b6_\b0_\b8 typedef T2 _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br;\n+_\b6_\b0_\b9 typedef typename subdomain_vector::const_iterator _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+610\n+_\b6_\b1_\b1 static _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn(_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n+612 {\n+613 return sv.begin();\n+614 }\n+615\n+_\b6_\b1_\b6 static _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd(_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n+617 {\n+618 return sv.end();\n+619 }\n+_\b6_\b2_\b0 static _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn(const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n+621 {\n+622 return sv.begin();\n+623 }\n+624\n+_\b6_\b2_\b5 static _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd(const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n+626 {\n+627 return sv.end();\n+628 }\n+629 };\n+630\n+631 template\n+_\b6_\b3_\b2 struct _\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+633 {\n+_\b6_\b3_\b4 typedef T1 _\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br;\n+_\b6_\b3_\b5 typedef typename solver_vector::reverse_iterator _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b6_\b3_\b6 typedef T2 _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br;\n+_\b6_\b3_\b7 typedef typename subdomain_vector::const_reverse_iterator _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+638\n+_\b6_\b3_\b9 static _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn(_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n+640 {\n+641 return sv.rbegin();\n+642 }\n+643\n+_\b6_\b4_\b4 static _\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd(_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n+645 {\n+646 return sv.rend();\n+647 }\n+_\b6_\b4_\b8 static _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn(const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n+649 {\n+650 return sv.rbegin();\n+651 }\n+652\n+_\b6_\b5_\b3 static _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd(const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& sv)\n+654 {\n+655 return sv.rend();\n+656 }\n+657 };\n+658\n+667 template\n+_\b6_\b6_\b8 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br\n+669 {\n+_\b6_\b7_\b0 typedef T _\bs_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+_\b6_\b7_\b1 typedef typename smoother::range_type _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+672\n+_\b6_\b7_\b3 static void _\ba_\bp_\bp_\bl_\by(_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br& sm, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& v, const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b)\n+674 {\n+675 sm.template apply(v, b);\n+676 }\n+677 };\n+678\n+679 template\n+_\b6_\b8_\b0 struct\n+_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n+>\n+681 {\n+_\b6_\b8_\b2 typedef _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\bT_\bD_\b,_\bT_\bA_\b>\n+_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br;\n+_\b6_\b8_\b3 typedef typename _\bs_\bm_\bo_\bo_\bt_\bh_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+684\n+_\b6_\b8_\b5 static void _\ba_\bp_\bp_\bl_\by(_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br& sm, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& v, const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b)\n+686 {\n+687 sm.template apply(v, b);\n+688 sm.template apply(v, b);\n+689 }\n+690 };\n+691\n+692 template\n+_\b6_\b9_\b3 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+694 {};\n+695\n+696 template\n+_\b6_\b9_\b7 using _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br =\n+_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bT_\b,_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\bT_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be>;\n+698\n+699 template\n+_\b7_\b0_\b0 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br< _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br<\n+_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< K, Al>, X, Y >,false>\n+701 {\n+_\b7_\b0_\b2 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b> _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b7_\b0_\b3 static constexpr size_t n = std::decay_t()))>::rows;\n+704 template\n+705 static std::size_t assembleLocalProblems(const RowToDomain& rowToDomain,\n+const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n+706 Solvers& solvers, const SubDomains& domains,\n+707 bool onTheFly);\n+708 };\n+709\n+710 template class S, typename T, typename A>\n+_\b7_\b1_\b1 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br>,true>\n+712 {\n+_\b7_\b1_\b3 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b> _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b7_\b1_\b4 static constexpr size_t n = std::decay_t()))>::rows;\n+715 template\n+716 static std::size_t assembleLocalProblems(const RowToDomain& rowToDomain,\n+const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n+717 Solvers& solvers, const SubDomains& domains,\n+718 bool onTheFly);\n+719 };\n+720\n+721 template\n+_\b7_\b2_\b2 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n+723 {\n+_\b7_\b2_\b4 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+725 template\n+726 static std::size_t _\ba_\bs_\bs_\be_\bm_\bb_\bl_\be_\bL_\bo_\bc_\ba_\bl_\bP_\br_\bo_\bb_\bl_\be_\bm_\bs(const RowToDomain& rowToDomain,\n+const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n+727 Solvers& solvers, const SubDomains& domains,\n+728 bool onTheFly);\n+729 };\n+730\n+731 template\n+_\b7_\b3_\b2 struct\n+_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br,false>\n+733 : public _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n+734 {};\n+735\n+736 template\n+_\b7_\b3_\b7 struct\n+_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br,false>\n+738 : public _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n+739 {};\n+740\n+751 template, class TA=std::allocator >\n+_\b7_\b5_\b3 class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n+754 : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+755 {\n+756 public:\n+_\b7_\b6_\b0 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+761\n+_\b7_\b6_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+766\n+_\b7_\b7_\b0 typedef X _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+771\n+_\b7_\b7_\b8 typedef _\bT_\bM _\bM_\bo_\bd_\be;\n+779\n+_\b7_\b8_\b3 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+784\n+_\b7_\b8_\b6 typedef typename matrix_type::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+787\n+_\b7_\b8_\b9 typedef _\bT_\bA _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br;\n+790\n+792 typedef std::set,\n+793 typename std::allocator_traits::template _\br_\be_\bb_\bi_\bn_\bd_\b__\ba_\bl_\bl_\bo_\bc_\b<_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b> >\n+_\b7_\b9_\b4 _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+795\n+_\b7_\b9_\b7 typedef std::vector::\n+template _\br_\be_\bb_\bi_\bn_\bd_\b__\ba_\bl_\bl_\bo_\bc_\b<_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be_\b> > _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br;\n+798\n+_\b8_\b0_\b0 typedef _\bS_\bL_\bL_\bi_\bs_\bt_\b<_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b,_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bs_\bt_\bd_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\br_\ba_\bi_\bt_\bs_\b<_\bT_\bA_\b>_\b:_\b:_\bt_\be_\bm_\bp_\bl_\ba_\bt_\be\n+_\br_\be_\bb_\bi_\bn_\bd_\b__\ba_\bl_\bl_\bo_\bc_\b<_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be_\b> > _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bl_\bi_\bs_\bt;\n+801\n+_\b8_\b0_\b3 typedef std::vector::\n+template _\br_\be_\bb_\bi_\bn_\bd_\b__\ba_\bl_\bl_\bo_\bc_\b<_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bl_\bi_\bs_\bt_\b> > _\br_\bo_\bw_\bt_\bo_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br;\n+804\n+_\b8_\b0_\b6 typedef _\bT_\bD _\bs_\bl_\bu;\n+807\n+_\b8_\b0_\b9 typedef std::vector::template\n+_\br_\be_\bb_\bi_\bn_\bd_\b__\ba_\bl_\bl_\bo_\bc_\b<_\bs_\bl_\bu_\b> > _\bs_\bl_\bu_\b__\bv_\be_\bc_\bt_\bo_\br;\n+810\n+_\b8_\b2_\b4 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz(const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& mat, const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br&\n+subDomains,\n+825 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relaxationFactor=1, bool _\bo_\bn_\bT_\bh_\be_\bF_\bl_\by_\b_=true);\n+826\n+_\b8_\b3_\b8 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz(const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& mat, const _\br_\bo_\bw_\bt_\bo_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br&\n+_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn,\n+839 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relaxationFactor=1, bool _\bo_\bn_\bT_\bh_\be_\bF_\bl_\by_\b_=true);\n+840\n+_\b8_\b4_\b6 virtual void _\bp_\br_\be ([[_\bm_\ba_\by_\bb_\be_\b__\bu_\bn_\bu_\bs_\be_\bd]] X& x, [[_\bm_\ba_\by_\bb_\be_\b__\bu_\bn_\bu_\bs_\be_\bd]] X& b)\n+847 {}\n+848\n+_\b8_\b5_\b4 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const X& _\bd);\n+855\n+_\b8_\b6_\b1 virtual void _\bp_\bo_\bs_\bt ([[_\bm_\ba_\by_\bb_\be_\b__\bu_\bn_\bu_\bs_\be_\bd]] X& x)\n+862 {}\n+863\n+864 template\n+_\b8_\b6_\b5 void _\ba_\bp_\bp_\bl_\by(X& v, const X& _\bd);\n+866\n+_\b8_\b6_\b8 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+869 {\n+870 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+871 }\n+872\n+873 private:\n+874 const M& mat;\n+875 _\bs_\bl_\bu_\b__\bv_\be_\bc_\bt_\bo_\br solvers;\n+876 _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br subDomains;\n+877 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax;\n+878\n+879 typename M::size_type maxlength;\n+880\n+881 bool onTheFly;\n+882 };\n+883\n+884\n+885\n+886 template\n+_\b8_\b8_\b7 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+(_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\bL_\bi_\bs_\bt& il,\n+888 const _\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& idx,\n+889 const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& domains_)\n+890 : initializers(&il), indices(&idx), indexMaps(il.size()), domains(domains_)\n+891 {}\n+892\n+893\n+894 template\n+_\b8_\b9_\b5 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\ba_\bd_\bd_\bR_\bo_\bw_\bN_\bn_\bz(const _\bI_\bt_\be_\br& row)\n+896 {\n+897 typedef typename IndexSet::value_type::const_iterator iterator;\n+898 for(iterator domain=(*indices)[row.index()].begin(); domain != (*indices)\n+[row.index()].end(); ++domain) {\n+899 (*initializers)[*domain].addRowNnz(row, domains[*domain]);\n+900 indexMaps[*domain].insert(row.index());\n+901 }\n+902 }\n+903\n+904 template\n+_\b9_\b0_\b5 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be()\n+906 {\n+907 for(auto&& i: *initializers)\n+908 i.allocateMatrixStorage();\n+909 for(auto&& i: *initializers)\n+910 i.allocateMarker();\n+911 }\n+912\n+913 template\n+_\b9_\b1_\b4 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(const _\bI_\bt_\be_\br& row,\n+const _\bC_\bI_\bt_\be_\br& _\bc_\bo_\bl) const\n+915 {\n+916 typedef typename IndexSet::value_type::const_iterator iterator;\n+917 for(iterator domain=(*indices)[row.index()].begin(); domain != (*indices)\n+[row.index()].end(); ++domain) {\n+918 typename std::map::const_iterator v = indexMaps\n+[*domain].find(_\bc_\bo_\bl.index());\n+919 if(v!= indexMaps[*domain].end()) {\n+920 (*initializers)[*domain].countEntries(indexMaps[*domain].find(_\bc_\bo_\bl.index())-\n+>second);\n+921 }\n+922 }\n+923 }\n+924\n+925 template\n+_\b9_\b2_\b6 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bc_\ba_\bl_\bc_\bC_\bo_\bl_\bs_\bt_\ba_\br_\bt() const\n+927 {\n+928 for(auto&& i : *initializers)\n+929 i.calcColstart();\n+930 }\n+931\n+932 template\n+_\b9_\b3_\b3 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bc_\bo_\bp_\by_\bV_\ba_\bl_\bu_\be(const _\bI_\bt_\be_\br& row, const\n+_\bC_\bI_\bt_\be_\br& _\bc_\bo_\bl) const\n+934 {\n+935 typedef typename IndexSet::value_type::const_iterator iterator;\n+936 for(iterator domain=(*indices)[row.index()].begin(); domain!= (*indices)\n+[row.index()].end(); ++domain) {\n+937 typename std::map::const_iterator v = indexMaps\n+[*domain].find(_\bc_\bo_\bl.index());\n+938 if(v!= indexMaps[*domain].end()) {\n+939 assert(indexMaps[*domain].end()!=indexMaps[*domain].find(row.index()));\n+940 (*initializers)[*domain].copyValue(_\bc_\bo_\bl, indexMaps[*domain].find(row.index\n+())->second,\n+941 v->second);\n+942 }\n+943 }\n+944 }\n+945\n+946 template\n+_\b9_\b4_\b7 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx() const\n+948 {\n+949 std::vector().swap(indexMaps);\n+950 for(auto&& i: *initializers)\n+951 i.createMatrix();\n+952 }\n+953\n+954 template\n+_\b9_\b5_\b5 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp()\n+956 : row(0)\n+957 {}\n+958\n+959 template\n+_\b9_\b6_\b0 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt(size_type grow)\n+961 {\n+962 assert(map_.find(grow)==map_.end());\n+963 map_.insert(std::make_pair(grow, row++));\n+964 }\n+965\n+966 template\n+967 typename OverlappingSchwarzInitializer::IndexMap::const_iterator\n+_\b9_\b6_\b8 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bf_\bi_\bn_\bd(size_type grow) const\n+969 {\n+970 return map_.find(grow);\n+971 }\n+972\n+973 template\n+974 typename OverlappingSchwarzInitializer::IndexMap::iterator\n+_\b9_\b7_\b5 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bf_\bi_\bn_\bd(size_type grow)\n+976 {\n+977 return map_.find(grow);\n+978 }\n+979\n+980 template\n+981 typename OverlappingSchwarzInitializer::IndexMap::const_iterator\n+_\b9_\b8_\b2 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd() const\n+983 {\n+984 return map_.end();\n+985 }\n+986\n+987 template\n+988 typename OverlappingSchwarzInitializer::IndexMap::iterator\n+_\b9_\b8_\b9 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd()\n+990 {\n+991 return map_.end();\n+992 }\n+993\n+994 template\n+995 typename OverlappingSchwarzInitializer::IndexMap::const_iterator\n+_\b9_\b9_\b6 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn() const\n+997 {\n+998 return map_.begin();\n+999 }\n+1000\n+1001 template\n+1002 typename OverlappingSchwarzInitializer::IndexMap::iterator\n+_\b1_\b0_\b0_\b3 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bI_\b,_\bS_\b,_\bD_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn()\n+1004 {\n+1005 return map_.begin();\n+1006 }\n+1007\n+1008 template\n+_\b1_\b0_\b0_\b9 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bD_\b,_\bT_\bA_\b>_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz(const\n+_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt_\b_, const _\br_\bo_\bw_\bt_\bo_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& _\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn,\n+1010 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relaxationFactor, bool _\bf_\bl_\by)\n+1011 : _\bm_\ba_\bt(_\bm_\ba_\bt_\b_), relax(relaxationFactor), onTheFly(_\bf_\bl_\by)\n+1012 {\n+1013 typedef typename rowtodomain_vector::const_iterator _\bR_\bo_\bw_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1014 typedef typename subdomain_list::const_iterator _\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1015#ifdef DUNE_ISTL_WITH_CHECKING\n+1016 _\ba_\bs_\bs_\be_\br_\bt(_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.size()==mat.N());\n+1017 _\ba_\bs_\bs_\be_\br_\bt(_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.size()==mat.M());\n+1018\n+1019 for(_\bR_\bo_\bw_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bi_\bt_\be_\br=_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.begin(); _\bi_\bt_\be_\br != _\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.end();\n+++_\bi_\bt_\be_\br)\n+1020 _\ba_\bs_\bs_\be_\br_\bt(_\bi_\bt_\be_\br->size()>0);\n+1021\n+1022#endif\n+1023 // calculate the number of domains\n+1024 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be domains=0;\n+1025 for(_\bR_\bo_\bw_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bi_\bt_\be_\br=_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.begin(); _\bi_\bt_\be_\br != _\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.end();\n+++_\bi_\bt_\be_\br)\n+1026 for(_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bd=_\bi_\bt_\be_\br->begin(); _\bd != _\bi_\bt_\be_\br->end(); ++_\bd)\n+1027 domains=std::max(domains, *_\bd);\n+1028 ++domains;\n+1029\n+1030 solvers.resize(domains);\n+1031 subDomains.resize(domains);\n+1032\n+1033 // initialize subdomains to row mapping from row to subdomain mapping\n+1034 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row=0;\n+1035 for(_\bR_\bo_\bw_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bi_\bt_\be_\br=_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.begin(); _\bi_\bt_\be_\br != _\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn.end();\n+++_\bi_\bt_\be_\br, ++row)\n+1036 for(_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bd=_\bi_\bt_\be_\br->begin(); _\bd != _\bi_\bt_\be_\br->end(); ++_\bd)\n+1037 subDomains[*_\bd].insert(row);\n+1038\n+1039#ifdef DUNE_ISTL_WITH_CHECKING\n+1040 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0;\n+1041 typedef typename subdomain_vector::const_iterator iterator;\n+1042 for(iterator _\bi_\bt_\be_\br=subDomains.begin(); _\bi_\bt_\be_\br != subDomains.end(); ++_\bi_\bt_\be_\br) {\n+1043 typedef typename subdomain_type::const_iterator _\be_\bn_\bt_\br_\by_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1044 Dune::dvverb<<\"domain \"<begin(); entry != _\bi_\bt_\be_\br->end(); ++entry) {\n+1046 Dune::dvverb<<\" \"<<*entry;\n+1047 }\n+1048 Dune::dvverb<\n+1052_\b _\b:_\b:_\ba_\bs_\bs_\be_\bm_\bb_\bl_\be_\bL_\bo_\bc_\ba_\bl_\bP_\br_\bo_\bb_\bl_\be_\bm_\bs(_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn, mat, solvers, subDomains, onTheFly);\n+1053 }\n+1054\n+1055 template\n+_\b1_\b0_\b5_\b6 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bD_\b,_\bT_\bA_\b>_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz(const\n+_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt_\b_,\n+1057 const _\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br& _\bs_\bd,\n+1058 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relaxationFactor,\n+1059 bool _\bf_\bl_\by)\n+1060 : _\bm_\ba_\bt(_\bm_\ba_\bt_\b_), solvers(_\bs_\bd.size()), subDomains(_\bs_\bd), relax(relaxationFactor),\n+1061 onTheFly(_\bf_\bl_\by)\n+1062 {\n+1063 typedef typename subdomain_vector::const_iterator _\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1064\n+1065#ifdef DUNE_ISTL_WITH_CHECKING\n+1066 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0;\n+1067\n+1068 for(_\bD_\bo_\bm_\ba_\bi_\bn_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bd=_\bs_\bd.begin(); _\bd != _\bs_\bd.end(); ++_\bd,++i) {\n+1069 //std::cout<size()<size()>0);\n+1071 typedef typename DomainIterator::value_type::const_iterator\n+_\be_\bn_\bt_\br_\by_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+1072 Dune::dvverb<<\"domain \"<begin(); entry != _\bd->end(); ++entry) {\n+1074 Dune::dvverb<<\" \"<<*entry;\n+1075 }\n+1076 Dune::dvverb<begin(); row != _\bd_\bo_\bm_\ba_\bi_\bn->end(); ++row)\n+1089 _\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn[*row].push_back(_\bd_\bo_\bm_\ba_\bi_\bn_\bI_\bd);\n+1090 }\n+1091\n+1092 maxlength = _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\b<_\bs_\bl_\bu_\b>\n+1093_\b _\b:_\b:_\ba_\bs_\bs_\be_\bm_\bb_\bl_\be_\bL_\bo_\bc_\ba_\bl_\bP_\br_\bo_\bb_\bl_\be_\bm_\bs(_\br_\bo_\bw_\bT_\bo_\bD_\bo_\bm_\ba_\bi_\bn, mat, solvers, subDomains, onTheFly);\n+1094 }\n+1095\n+1102 template\n+_\b1_\b1_\b0_\b3 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be {};\n+1104\n+1105 template\n+_\b1_\b1_\b0_\b6 struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n+1107 {\n+_\b1_\b1_\b0_\b8 static constexpr size_t n = std::decay_t()))>::rows;\n+_\b1_\b1_\b0_\b9 static constexpr size_t m = std::decay_t()))>::cols;\n+1110 template\n+_\b1_\b1_\b1_\b1 static int _\bs_\bi_\bz_\be(const Domain & d)\n+1112 {\n+1113 assert(n==m);\n+1114 return m*d.size();\n+1115 }\n+1116 };\n+1117\n+1118 template\n+1119 template\n+1120 std::size_t\n+_\b1_\b1_\b2_\b1 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<\n+_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b>, X, Y >,false>::\n+1122 assembleLocalProblems([[maybe_unused]] const RowToDomain& rowToDomain,\n+1123 [[maybe_unused]] const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n+1124 [[maybe_unused]] Solvers& solvers,\n+1125 const SubDomains& subDomains,\n+1126 [[maybe_unused]] bool onTheFly)\n+1127 {\n+1128 typedef typename SubDomains::const_iterator DomainIterator;\n+1129 std::size_t maxlength = 0;\n+1130\n+1131 assert(onTheFly);\n+1132\n+1133 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end();\n+++domain)\n+1134 maxlength=std::max(maxlength, domain->size());\n+1135 maxlength*=n;\n+1136\n+1137 return maxlength;\n+1138 }\n+1139\n+1140#if HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK\n+1141 template class S, typename T, typename A>\n+1142 template\n+_\b1_\b1_\b4_\b3 std::size_t\n+_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::\n+assembleLocalProblems(const RowToDomain& rowToDomain,\n+1144 const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n+1145 Solvers& solvers,\n+1146 const SubDomains& subDomains,\n+1147 bool onTheFly)\n+1148 {\n+1149 typedef typename S>::MatrixInitializer MatrixInitializer;\n+1150 typedef typename std::vector::iterator\n+InitializerIterator;\n+1151 typedef typename SubDomains::const_iterator DomainIterator;\n+1152 typedef typename Solvers::iterator SolverIterator;\n+1153 std::size_t maxlength = 0;\n+1154\n+1155 if(onTheFly) {\n+1156 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end();\n+++domain)\n+1157 maxlength=std::max(maxlength, domain->size());\n+1158 maxlength*=Impl::asMatrix(*_\bm_\ba_\bt[0].begin()).N();\n+1159 }else{\n+1160 // initialize the initializers\n+1161 DomainIterator domain=subDomains.begin();\n+1162\n+1163 // Create the initializers list.\n+1164 std::vector initializers(subDomains.size());\n+1165\n+1166 SolverIterator solver=solvers.begin();\n+1167 for(InitializerIterator initializer=initializers.begin();\n+initializer!=initializers.end();\n+1168 ++initializer, ++solver, ++domain) {\n+1169 solver->getInternalMatrix\n+().N_=_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be_\b<_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bs_\bi_\bz_\be(*domain);\n+1170 solver->getInternalMatrix\n+().M_=_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be_\b<_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bs_\bi_\bz_\be(*domain);\n+1171 //solver->setVerbosity(true);\n+1172 *initializer=MatrixInitializer(solver->getInternalMatrix());\n+1173 }\n+1174\n+1175 // Set up the supermatrices according to the subdomains\n+1176 typedef _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\bs_\bt_\bd_\b:_\b:_\bv_\be_\bc_\bt_\bo_\br_\b<_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b>,\n+1177 RowToDomain, SubDomains> Initializer;\n+1178\n+1179 Initializer initializer(initializers, rowToDomain, subDomains);\n+1180 copyToBCCSMatrix(initializer, _\bm_\ba_\bt);\n+1181\n+1182 // Calculate the LU decompositions\n+1183 for(auto&& s: solvers)\n+1184 s.decompose();\n+1185 for (SolverIterator solverIt = solvers.begin(); solverIt != solvers.end();\n+++solverIt)\n+1186 {\n+1187 assert(solverIt->getInternalMatrix().N() == solverIt->getInternalMatrix\n+().M());\n+1188 maxlength = std::max(maxlength, solverIt->getInternalMatrix().N());\n+1189 }\n+1190 }\n+1191 return maxlength;\n+1192 }\n+1193\n+1194#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK\n+1195\n+1196 template\n+1197 template\n+_\b1_\b1_\b9_\b8 std::size_t _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:\n+_\ba_\bs_\bs_\be_\bm_\bb_\bl_\be_\bL_\bo_\bc_\ba_\bl_\bP_\br_\bo_\bb_\bl_\be_\bm_\bs([[maybe_unused]] const RowToDomain& rowToDomain,\n+1199 const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& _\bm_\ba_\bt,\n+1200 Solvers& solvers,\n+1201 const SubDomains& subDomains,\n+1202 bool onTheFly)\n+1203 {\n+1204 typedef typename SubDomains::const_iterator DomainIterator;\n+1205 typedef typename Solvers::iterator SolverIterator;\n+1206 std::size_t maxlength = 0;\n+1207\n+1208 if(onTheFly) {\n+1209 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end();\n+++domain)\n+1210 maxlength=std::max(maxlength, domain->size());\n+1211 }else{\n+1212 // initialize the solvers of the local prolems.\n+1213 SolverIterator solver=solvers.begin();\n+1214 for(DomainIterator domain=subDomains.begin(); domain!=subDomains.end();\n+1215 ++domain, ++solver) {\n+1216 solver->setSubMatrix(_\bm_\ba_\bt, *domain);\n+1217 maxlength=std::max(maxlength, domain->size());\n+1218 }\n+1219 }\n+1220\n+1221 return maxlength;\n+1222\n+1223 }\n+1224\n+1225\n+1226 template\n+_\b1_\b2_\b2_\b7 void _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bD_\b,_\bT_\bA_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(X& x, const X& b)\n+1228 {\n+1229 _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(*this, x, b);\n+1230 }\n+1231\n+1232 template\n+1233 template\n+_\b1_\b2_\b3_\b4 void _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\bM_\b,_\bX_\b,_\bT_\bM_\b,_\bT_\bD_\b,_\bT_\bA_\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by(X& x, const X& b)\n+1235 {\n+1236 typedef _\bs_\bl_\bu_\b__\bv_\be_\bc_\bt_\bo_\br solver_vector;\n+1237 typedef typename\n+_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bf_\bo_\br_\bw_\ba_\br_\bd_\b>_\b:_\b:\n+_\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br iterator;\n+1238 typedef typename\n+_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bf_\bo_\br_\bw_\ba_\br_\bd_\b>_\b:_\b:\n+_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+1239 domain_iterator;\n+1240\n+1241 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bT_\bD_\b> assigner(maxlength, _\bm_\ba_\bt, b, x);\n+1242\n+1243 domain_iterator\n+_\bd_\bo_\bm_\ba_\bi_\bn=_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bf_\bo_\br_\bw_\ba_\br_\bd_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+(subDomains);\n+1244 iterator solver =\n+_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bf_\bo_\br_\bw_\ba_\br_\bd_\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+(solvers);\n+1245 X v(x); // temporary for the update\n+1246 v=0;\n+1247\n+1248 typedef typename _\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bT_\bM_\b,_\bX_\b,_\bT_\bD_\b _\b>_\b:_\b:_\bA_\bd_\bd_\be_\br Adder;\n+1249 Adder adder(v, x, assigner, relax);\n+1250\n+1251 for(; _\bd_\bo_\bm_\ba_\bi_\bn !=\n+_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br_\b,_\bf_\bo_\br_\bw_\ba_\br_\bd_\b>_\b:_\b:_\be_\bn_\bd\n+(subDomains); ++_\bd_\bo_\bm_\ba_\bi_\bn) {\n+1252 //Copy rhs to C-array for SuperLU\n+1253 std::for_each(_\bd_\bo_\bm_\ba_\bi_\bn->begin(), _\bd_\bo_\bm_\ba_\bi_\bn->end(), assigner);\n+1254 assigner.resetIndexForNextDomain();\n+1255 if(onTheFly) {\n+1256 // Create the subdomain solver\n+1257 _\bs_\bl_\bu _\bs_\bd_\bs_\bo_\bl_\bv_\be_\br;\n+1258 _\bs_\bd_\bs_\bo_\bl_\bv_\be_\br.setSubMatrix(_\bm_\ba_\bt, *_\bd_\bo_\bm_\ba_\bi_\bn);\n+1259 // Apply\n+1260 _\bs_\bd_\bs_\bo_\bl_\bv_\be_\br.apply(assigner.lhs(), assigner.rhs());\n+1261 }else{\n+1262 solver->apply(assigner.lhs(), assigner.rhs());\n+1263 ++solver;\n+1264 }\n+1265\n+1266 //Add relaxed correction to from SuperLU to v\n+1267 std::for_each(_\bd_\bo_\bm_\ba_\bi_\bn->begin(), _\bd_\bo_\bm_\ba_\bi_\bn->end(), adder);\n+1268 assigner.resetIndexForNextDomain();\n+1269\n+1270 }\n+1271\n+1272 adder.axpy();\n+1273 assigner.deallocate();\n+1274 }\n+1275\n+1276 template\n+1277 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b>, X, Y >,false>\n+_\b1_\b2_\b7_\b8 ::OverlappingAssignerHelper(std::size_t maxlength, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,\n+_\bA_\bl_\b>& mat_,\n+1279 const X& b_, Y& x_) :\n+1280 _\bm_\ba_\bt(&mat_),\n+1281 rhs_( new DynamicVector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(maxlength, 42) ),\n+1282 lhs_( new DynamicVector<_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(maxlength, -42) ),\n+1283 b(&b_),\n+1284 x(&x_),\n+1285 i(0),\n+1286 maxlength_(maxlength)\n+1287 {}\n+1288\n+1289 template\n+1290 void\n+1291 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b>, X, Y >,false>\n+_\b1_\b2_\b9_\b2 ::deallocate()\n+1293 {\n+1294 delete rhs_;\n+1295 delete lhs_;\n+1296 }\n+1297\n+1298 template\n+1299 void\n+1300 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b>, X, Y >,false>\n+_\b1_\b3_\b0_\b1 ::resetIndexForNextDomain()\n+1302 {\n+1303 i=0;\n+1304 }\n+1305\n+1306 template\n+1307 DynamicVector &\n+1308 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b>, X, Y >,false>\n+_\b1_\b3_\b0_\b9 ::lhs()\n+1310 {\n+1311 return *lhs_;\n+1312 }\n+1313\n+1314 template\n+1315 DynamicVector &\n+1316 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b>, X, Y >,false>\n+_\b1_\b3_\b1_\b7 ::rhs()\n+1318 {\n+1319 return *rhs_;\n+1320 }\n+1321\n+1322 template\n+1323 void\n+1324 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b>, X, Y >,false>\n+_\b1_\b3_\b2_\b5 ::relaxResult(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax)\n+1326 {\n+1327 lhs() *= relax;\n+1328 }\n+1329\n+1330 template\n+1331 void\n+1332 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b>, X, Y >,false>\n+_\b1_\b3_\b3_\b3 ::operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domainIndex)\n+1334 {\n+1335 lhs() = 0.0;\n+1336#if 0\n+1337 //assign right hand side of current domainindex block\n+1338 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j\n+1376 void\n+1377 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b>, X, Y >,false>\n+_\b1_\b3_\b7_\b8 ::assignResult(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res)\n+1379 {\n+1380 // assign the result of the local solve to the global vector\n+1381 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j class S, typename T, typename A>\n+1390 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>\n+_\b1_\b3_\b9_\b1 ::OverlappingAssignerHelper(std::size_t maxlength,\n+1392 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>& mat_,\n+1393 const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b_,\n+1394 _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& x_)\n+1395 : _\bm_\ba_\bt(&mat_),\n+1396 b(&b_),\n+1397 x(&x_), i(0), maxlength_(maxlength)\n+1398 {\n+1399 rhs_ = new _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be[maxlength];\n+1400 lhs_ = new _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be[maxlength];\n+1401\n+1402 }\n+1403\n+1404 template class S, typename T, typename A>\n+_\b1_\b4_\b0_\b5 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b> >,true>::deallocate()\n+1406 {\n+1407 delete[] rhs_;\n+1408 delete[] lhs_;\n+1409 }\n+1410\n+1411 template class S, typename T, typename A>\n+_\b1_\b4_\b1_\b2 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::operator()(const\n+_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be& domainIndex)\n+1413 {\n+1414 //assign right hand side of current domainindex block\n+1415 // rhs is an array of doubles!\n+1416 // rhs[starti] = b[domainindex]\n+1417 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j class S, typename T, typename A>\n+_\b1_\b4_\b4_\b1 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::relaxResult\n+(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax)\n+1442 {\n+1443 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=i+n; i class S, typename T, typename A>\n+_\b1_\b4_\b5_\b1 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::assignResult\n+(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res)\n+1452 {\n+1453 // assign the result of the local solve to the global vector\n+1454 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=0; j class S, typename T, typename A>\n+_\b1_\b4_\b6_\b1 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::\n+resetIndexForNextDomain()\n+1462 {\n+1463 i=0;\n+1464 }\n+1465\n+1466 template class S, typename T, typename A>\n+1467 typename _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::field_type*\n+_\b1_\b4_\b6_\b8 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::lhs()\n+1469 {\n+1470 return lhs_;\n+1471 }\n+1472\n+1473 template class S, typename T, typename A>\n+1474 typename _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::field_type*\n+_\b1_\b4_\b7_\b5 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bS_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bA_\b>>,true>::rhs()\n+1476 {\n+1477 return rhs_;\n+1478 }\n+1479\n+1480#endif // HAVE_SUPERLU || HAVE_SUITESPARSE_UMFPACK\n+1481\n+1482 template\n+_\b1_\b4_\b8_\b3 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be(std::size_t\n+maxlength,\n+1484 const M& mat_,\n+1485 const Y& b_,\n+1486 X& x_)\n+1487 : _\bm_\ba_\bt(&mat_),\n+1488 b(&b_),\n+1489 x(&x_), i(0)\n+1490 {\n+1491 rhs_= new Y(maxlength);\n+1492 lhs_ = new X(maxlength);\n+1493 }\n+1494\n+1495 template\n+_\b1_\b4_\b9_\b6 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be()\n+1497 {\n+1498 delete rhs_;\n+1499 delete lhs_;\n+1500 }\n+1501\n+1502 template\n+_\b1_\b5_\b0_\b3 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be&\n+domainIndex)\n+1504 {\n+1505 (*rhs_)[i]=(*b)[domainIndex];\n+1506\n+1507 // loop over all Matrix row entries and calculate defect.\n+1508 typedef typename matrix_type::ConstColIterator col_iterator;\n+1509\n+1510 // calculate defect for current row index block\n+1511 for(col_iterator _\bc_\bo_\bl=(*_\bm_\ba_\bt)[domainIndex].begin(); _\bc_\bo_\bl!=(*mat)\n+[domainIndex].end(); ++_\bc_\bo_\bl) {\n+1512 Impl::asMatrix(*col).mmv((*x)[_\bc_\bo_\bl.index()], (*rhs_)[i]);\n+1513 }\n+1514 // Goto next local index\n+1515 ++i;\n+1516 }\n+1517\n+1518 template\n+_\b1_\b5_\b1_\b9 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\br_\be_\bl_\ba_\bx_\bR_\be_\bs_\bu_\bl_\bt(_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax)\n+1520 {\n+1521 (*lhs_)[i]*=relax;\n+1522 }\n+1523\n+1524 template\n+_\b1_\b5_\b2_\b5 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\ba_\bs_\bs_\bi_\bg_\bn_\bR_\be_\bs_\bu_\bl_\bt(_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& res)\n+1526 {\n+1527 res+=(*lhs_)[i++];\n+1528 }\n+1529\n+1530 template\n+_\b1_\b5_\b3_\b1 X& _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bl_\bh_\bs()\n+1532 {\n+1533 return *lhs_;\n+1534 }\n+1535\n+1536 template\n+_\b1_\b5_\b3_\b7 Y& _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\br_\bh_\bs()\n+1538 {\n+1539 return *rhs_;\n+1540 }\n+1541\n+1542 template\n+_\b1_\b5_\b4_\b3 void _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bF_\bo_\br_\bN_\be_\bx_\bt_\bD_\bo_\bm_\ba_\bi_\bn()\n+1544 {\n+1545 i=0;\n+1546 }\n+1547\n+1548 template\n+_\b1_\b5_\b4_\b9 _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >::AdditiveAdder(_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& v_,\n+1550 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& x_,\n+1551 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>& assigner_,\n+1552 const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& relax_)\n+1553 : v(&v_), x(&x_), assigner(&assigner_), relax(relax_)\n+1554 {}\n+1555\n+1556 template\n+_\b1_\b5_\b5_\b7 void _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >::operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be&\n+domainIndex)\n+1558 {\n+1559 // add the result of the local solve to the current update\n+1560 assigner->assignResult((*v)[domainIndex]);\n+1561 }\n+1562\n+1563\n+1564 template\n+_\b1_\b5_\b6_\b5 void _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >::axpy()\n+1566 {\n+1567 // relax the update and add it to the current guess.\n+1568 x->axpy(relax,*v);\n+1569 }\n+1570\n+1571\n+1572 template\n+1573 _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >\n+_\b1_\b5_\b7_\b4 ::MultiplicativeAdder([[maybe_unused]] _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& v_,\n+1575 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b>& x_,\n+1576 _\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\bS_\b>& assigner_, const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& relax_)\n+1577 : x(&x_), assigner(&assigner_), relax(relax_)\n+1578 {}\n+1579\n+1580\n+1581 template\n+_\b1_\b5_\b8_\b2 void _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >::operator()(const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be&\n+domainIndex)\n+1583 {\n+1584 // add the result of the local solve to the current guess\n+1585 assigner->relaxResult(relax);\n+1586 assigner->assignResult((*x)[domainIndex]);\n+1587 }\n+1588\n+1589\n+1590 template\n+_\b1_\b5_\b9_\b1 void _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\bS_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bA_\b> >::axpy()\n+1592 {\n+1593 // nothing to do, as the corrections already relaxed and added in operator\n+()\n+1594 }\n+1595\n+1596\n+1598}\n+1599\n+1600#endif\n+_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh\n+_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n+Templates characterizing the type of a solver.\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bs_\bu_\bp_\be_\br_\bl_\bu_\b._\bh_\bh\n+Classes for using SuperLU with ISTL matrices.\n _\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n Implementation of the BCRSMatrix class.\n+_\bu_\bm_\bf_\bp_\ba_\bc_\bk_\b._\bh_\bh\n+Classes for using UMFPack with ISTL matrices.\n+_\bi_\bl_\bu_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n+Various local subdomain solvers based on ILU for SeqOverlappingSchwarz.\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n+Define general preconditioner interface.\n _\bc_\bo_\bl\n Col col\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\ba_\bd_\bd_\bR_\bo_\bw_\bN_\bn_\bz\n+void addRowNnz(const Iter &row)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:895\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(X &v, const X &d)\n+Apply one step of the preconditioner to the system A(v)=d.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1234\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bl_\bh_\bs\n+X & lhs()\n+Get the local left hand side.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1531\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bc_\ba_\bl_\bc_\bC_\bo_\bl_\bs_\bt_\ba_\br_\bt\n+void calcColstart() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:926\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\br_\bh_\bs\n+Y & rhs()\n+Get the local right hand side.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1537\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\be_\bn_\bd\n+iterator end()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:989\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\br_\be_\bs_\be_\bt_\bI_\bn_\bd_\be_\bx_\bF_\bo_\br_\bN_\be_\bx_\bt_\bD_\bo_\bm_\ba_\bi_\bn\n+void resetIndexForNextDomain()\n+Resets the local index to zero.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1543\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bc_\bo_\bp_\by_\bV_\ba_\bl_\bu_\be\n+void copyValue(const Iter &row, const CIter &col) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:933\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx\n+void createMatrix() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:947\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+iterator begin()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1003\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+OverlappingSchwarzInitializer(InitializerList &il, const IndexSet &indices,\n+const subdomain_vector &domains)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:887\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp\n+IndexMap()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:955\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &v, const X &d)\n+Apply the precondtioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1227\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n+OverlappingAssignerILUBase(std::size_t maxlength, const M &mat, const Y &b, X\n+&x)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1483\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bf_\bi_\bn_\bd\n+const_iterator find(size_type grow) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:968\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+void operator()(const size_type &domain)\n+calculate one entry of the local defect.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1503\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n+SeqOverlappingSchwarz(const matrix_type &mat, const subdomain_vector\n+&subDomains, field_type relaxationFactor=1, bool onTheFly_=true)\n+Construct the overlapping Schwarz method.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1056\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n+void allocate()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:905\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bd_\be_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\be\n+void deallocate()\n+Deallocates memory of the local vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1496\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bM_\ba_\bp_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt\n+void insert(size_type grow)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:960\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs\n+void countEntries(const Iter &row, const CIter &col) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:914\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\ba_\bs_\bs_\be_\bm_\bb_\bl_\be_\bL_\bo_\bc_\ba_\bl_\bP_\br_\bo_\bb_\bl_\be_\bm_\bs\n+static std::size_t assembleLocalProblems(const RowToDomain &rowToDomain, const\n+matrix_type &mat, Solvers &solvers, const SubDomains &domains, bool onTheFly)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1198\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\br_\be_\bl_\ba_\bx_\bR_\be_\bs_\bu_\bl_\bt\n+void relaxResult(field_type relax)\n+relax the result.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1519\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\ba_\bs_\bs_\bi_\bg_\bn_\bR_\be_\bs_\bu_\bl_\bt\n+void assignResult(block_type &res)\n+Assigns the block to the current local index. At the same time the local defect\n+is calculated for the...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1525\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n+SeqOverlappingSchwarz(const matrix_type &mat, const rowtodomain_vector\n+&rowToDomain, field_type relaxationFactor=1, bool onTheFly_=true)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1009\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+Initializer for SuperLU Matrices representing the subdomains.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:47\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bC_\bI_\bt_\be_\br\n+Matrix::row_type::const_iterator CIter\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+S IndexSet\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:58\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bt_\be_\br\n+Matrix::const_iterator Iter\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:55\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+IndexSet::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:59\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\bL_\bi_\bs_\bt\n+I InitializerList\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+AtomInitializer::Matrix Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bA_\bt_\bo_\bm_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n+InitializerList::value_type AtomInitializer\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n+D subdomain_vector\n+The vector type containing the subdomain to row index mapping.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:50\n _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n A sparse block matrix with compressed row storage.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs\n-void endrowsizes()\n-indicate that size of all rows is defined\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\ba_\bn_\bd_\bo_\bm\n-@ random\n-Build entries randomly.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:530\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx\n-void addindex(size_type row, size_type col)\n-add index (row,col) to the matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1191\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs\n-void endindices()\n-indicate that all indices are defined, check consistency\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1248\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-number of rows (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n-void setSize(size_type rows, size_type columns, size_type nnz=0)\n-Set the size of the matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:861\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-BCRSMatrix & operator=(const BCRSMatrix &Mat)\n-assignment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:911\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx\n-A block-tridiagonal matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:31\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n-static constexpr auto blocklevel\n-increment block level counter\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx\n-BTDMatrix(size_type size)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:58\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bo_\bl_\bv_\be\n-void solve(V &x, const V &rhs) const\n-Use the Thomas algorithm to solve the system Ax=b in O(n) time.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:125\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+Iterator end()\n+Get iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:681\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n A::size_type size_type\n-implement row_type with compressed vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:49\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n-A allocator_type\n-export the allocator type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:43\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-B block_type\n-export the type representing the components\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:40\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< B >::field_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-BTDMatrix & operator=(const BTDMatrix &other)\n-assignment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:108\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx\n-BTDMatrix()\n-Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n-void setSize(size_type size)\n-Resize the matrix. Invalidates the content!\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-typename FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:208\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bT_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename BTDMatrix< B, A >::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn btdmatrix.hh:207\n+The type for the index access and the size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::ConstIterator ConstColIterator\n+Const iterator to the entries of a row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:741\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n+A vector of blocks with memory management.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n+Exact subdomain solver using ILU(p) with appropriate p.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:111\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n+Sequential overlapping Schwarz preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:783\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bl_\bi_\bs_\bt\n+SLList< size_type, typename std::allocator_traits< TA >::template rebind_alloc<\n+size_type > > subdomain_list\n+The type for the row to subdomain mapping.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:800\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bl_\bu_\b__\bv_\be_\bc_\bt_\bo_\br\n+std::vector< slu, typename std::allocator_traits< TA >::template rebind_alloc<\n+slu > > slu_vector\n+The vector type containing subdomain solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:809\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+The type of the matrix to precondition.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:760\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bM_\bo_\bd_\be\n+TM Mode\n+The mode (additive or multiplicative) of the Schwarz method.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:778\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+X range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:770\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+std::set< size_type, std::less< size_type >, typename std::allocator_traits< TA\n+>::template rebind_alloc< size_type > > subdomain_type\n+The type for the subdomain to row index mapping.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:794\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:765\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bl_\bu\n+TD slu\n+The type for the subdomain solver in use.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:806\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:868\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bp_\br_\be\n+virtual void pre(X &x, X &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:846\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(X &x)\n+Postprocess the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:861\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br\n+TA allocator\n+The allocator to use.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:789\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n+std::vector< subdomain_type, typename std::allocator_traits< TA >::template\n+rebind_alloc< subdomain_type > > subdomain_vector\n+The vector type containing the subdomain to row index mapping.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:797\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\br_\bo_\bw_\bt_\bo_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n+std::vector< subdomain_list, typename std::allocator_traits< TA >::template\n+rebind_alloc< subdomain_list > > rowtodomain_vector\n+The vector type containing the row index to subdomain mapping.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:803\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+matrix_type::size_type size_type\n+The return type of the size method.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:786\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:694\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n+Tag that the tells the Schwarz method to be additive.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n+Tag that tells the Schwarz method to be multiplicative.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:126\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be\n+Tag that tells the Schwarz method to be multiplicative and symmetric.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:133\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n+Exact subdomain solver using Dune::DynamicMatrix::solve.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:140\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+std::remove_const< M >::type matrix_type\n+The matrix type the preconditioner is for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:153\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:155\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n+void setSubMatrix(const M &BCRS, S &rowset)\n+Set the data of the local problem.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:184\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(DynamicVector< field_type > &v, DynamicVector< field_type > &d)\n+Apply the subdomain solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:162\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be\n+std::remove_const< M >::type rilu_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:151\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:215\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+matrix_type::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:229\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:226\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+BCRSMatrix< K, Al > matrix_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:225\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:227\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,\n+_\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+range_type::block_type block_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:228\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+S< BCRSMatrix< T, A > >::range_type range_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:315\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+range_type::block_type block_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:317\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+range_type::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:316\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+matrix_type::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:319\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+BCRSMatrix< T, A > matrix_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:314\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:400\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+matrix_type::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:408\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Y::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:404\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+Y::block_type block_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:406\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:402\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:\n+_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+OverlappingAssignerHelper(std::size_t maxlength, const M &mat, const Y &b, X\n+&x)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:493\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:\n+_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+OverlappingAssignerHelper(std::size_t maxlength, const M &mat, const Y &b, X\n+&x)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:512\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:520\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+std::decay_t< decltype(Impl::asVector(std::declval< T >()))>::field_type\n+field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:526\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:525\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:542\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:547\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bA_\bd_\bd_\be_\br_\b<_\b _\bS_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+std::decay_t< decltype(Impl::asVector(std::declval< T >()))>::field_type\n+field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:548\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+template meta program for choosing how to add the correction.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:572\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\bd_\bd_\bi_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>_\b:_\b:_\bA_\bd_\bd_\be_\br\n+AdditiveAdder< S, X > Adder\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:577\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>_\b:_\b:_\bA_\bd_\bd_\be_\br\n+MultiplicativeAdder< S, X > Adder\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:583\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bd_\bd_\be_\br_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bX_\b,_\b _\bS_\b _\b>_\b:_\b:_\bA_\bd_\bd_\be_\br\n+MultiplicativeAdder< S, X > Adder\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:589\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br\n+Helper template meta program for application of overlapping Schwarz.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:605\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+static solver_iterator begin(solver_vector &sv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:611\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+solver_vector::iterator solver_iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:607\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n+static domain_iterator end(const subdomain_vector &sv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:625\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+subdomain_vector::const_iterator domain_iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:609\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br\n+T1 solver_vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:606\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+static domain_iterator begin(const subdomain_vector &sv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:620\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n+T2 subdomain_vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:608\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n+static solver_iterator end(solver_vector &sv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:616\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bs_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bv_\be_\bc_\bt_\bo_\br\n+T2 subdomain_vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:636\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\be_\bn_\bd\n+static solver_iterator end(solver_vector &sv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:644\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be_\br_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+solver_vector::reverse_iterator solver_iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:635\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+subdomain_vector::const_reverse_iterator domain_iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:637\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+static solver_iterator begin(solver_vector &sv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:639\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bs_\bo_\bl_\bv_\be_\br_\b__\bv_\be_\bc_\bt_\bo_\br\n+T1 solver_vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:634\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+static domain_iterator begin(const subdomain_vector &sv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:648\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\bD_\bi_\br_\be_\bc_\bt_\bi_\bo_\bn_\bS_\be_\bl_\be_\bc_\bt_\bo_\br_\b<_\b _\bT_\b1_\b,_\b _\bT_\b2_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\be_\bn_\bd\n+static domain_iterator end(const subdomain_vector &sv)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:653\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br\n+Helper template meta program for application of overlapping Schwarz.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:669\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+smoother::range_type range_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:671\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br\n+T smoother\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:670\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+static void apply(smoother &sm, range_type &v, const range_type &b)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:673\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bT_\bD_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+static void apply(smoother &sm, range_type &v, const range_type &b)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:685\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bT_\bD_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bm_\bo_\bo_\bt_\bh_\be_\br\n+SeqOverlappingSchwarz< M, X, SymmetricMultiplicativeSchwarzMode, TD, TA >\n+smoother\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:682\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bp_\bp_\bl_\bi_\be_\br_\b<_\b _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\b<_\b _\bM_\b,_\b _\bX_\b,\n+_\bS_\by_\bm_\bm_\be_\bt_\br_\bi_\bc_\bM_\bu_\bl_\bt_\bi_\bp_\bl_\bi_\bc_\ba_\bt_\bi_\bv_\be_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bM_\bo_\bd_\be_\b,_\b _\bT_\bD_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+smoother::range_type range_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:683\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<\n+_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bA_\bl_\b _\b>_\b,_\b _\bX_\b,_\b _\bY_\b _\b>_\b,_\b _\bf_\ba_\bl_\bs_\be_\b _\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+BCRSMatrix< K, Al > matrix_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:702\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bS_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b,_\b _\bt_\br_\bu_\be_\b _\b>_\b:_\b:\n+_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+BCRSMatrix< T, A > matrix_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:713\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:723\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bI_\bL_\bU_\bB_\ba_\bs_\be_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:724\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1103\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bD_\bo_\bm_\ba_\bi_\bn_\bS_\bi_\bz_\be_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be\n+static int size(const Domain &d)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:1111\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00185.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00185.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: ilu.hh File Reference\n+dune-istl: bdmatrix.hh File Reference\n \n \n \n \n \n \n \n@@ -71,79 +71,45 @@\n \n
    \n \n
    \n \n-
    ilu.hh File Reference
    \n+Namespaces
    \n+
    bdmatrix.hh File Reference
    \n \n
    \n \n-

    The incomplete LU factorization kernels. \n+

    Implementation of the BDMatrix class. \n More...

    \n-
    #include <cmath>
    \n-#include <complex>
    \n-#include <map>
    \n-#include <vector>
    \n-#include <dune/common/fmatrix.hh>
    \n-#include <dune/common/scalarvectorview.hh>
    \n+
    #include <memory>
    \n+#include <dune/common/rangeutilities.hh>
    \n #include <dune/common/scalarmatrixview.hh>
    \n-#include "istlexception.hh"
    \n+#include <dune/istl/bcrsmatrix.hh>
    \n+#include <dune/istl/blocklevel.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n+\n+\n \n

    \n Classes

    struct  Dune::ILU::CRS< B, Alloc >
     a simple compressed row storage matrix class More...
    class  Dune::BDMatrix< B, A >
     A block-diagonal matrix. More...
     
    struct  Dune::FieldTraits< BDMatrix< B, A > >
     
    \n \n \n \n-\n-\n-

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::ILU
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n

    \n-Functions

    template<class M >
    void Dune::ILU::blockILU0Decomposition (M &A)
     compute ILU decomposition of A. A is overwritten by its decomposition
     
    template<class M , class X , class Y >
    void Dune::ILU::blockILUBacksolve (const M &A, X &v, const Y &d)
     LU backsolve with stored inverse.
     
    template<class M >
    M::field_type & Dune::ILU::firstMatrixElement (M &A, typename std::enable_if_t<!Dune::IsNumber< M >::value > *sfinae=nullptr)
     
    template<class K >
    K & Dune::ILU::firstMatrixElement (K &A, typename std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)
     
    template<class K , int n, int m>
    K & Dune::ILU::firstMatrixElement (FieldMatrix< K, n, m > &A)
     
    template<class M >
    void Dune::ILU::blockILUDecomposition (const M &A, int n, M &ILU)
     
    template<class M , class CRS , class InvVector >
    void Dune::ILU::convertToCRS (const M &A, CRS &lower, CRS &upper, InvVector &inv)
     convert ILU decomposition into CRS format for lower and upper triangular and inverse.
     
    template<class CRS , class InvVector , class X , class Y >
    void Dune::ILU::blockILUBacksolve (const CRS &lower, const CRS &upper, const InvVector &inv, X &v, const Y &d)
     LU backsolve with stored inverse in CRS format for lower and upper triangular.
     
    \n

    Detailed Description

    \n-

    The incomplete LU factorization kernels.

    \n+

    Implementation of the BDMatrix class.

    \n+
    Author
    Oliver Sander
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,67 +1,30 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-ilu.hh File Reference\n-The incomplete LU factorization kernels. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+bdmatrix.hh File Reference\n+Implementation of the BDMatrix class. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n #include \n-#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b<_\b _\bB_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>\n-\u00a0 a simple compressed row storage matrix class _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n+\u00a0 A block-diagonal matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn (M &A)\n-\u00a0 compute _\bI_\bL_\bU decomposition of A. A is overwritten by its\n- decomposition\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n-\u00a0 LU backsolve with stored inverse.\n-\u00a0\n-template\n-M::field_type &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (M &A, typename std::\n- enable_if_t::value > *sfinae=nullptr)\n-\u00a0\n-template\n- K &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (K &A, typename std::\n- enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)\n-\u00a0\n-template\n- K &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, n, m > &A)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn (const M &A, int n, M &ILU)\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bt_\bT_\bo_\bC_\bR_\bS (const M &A, _\bC_\bR_\bS &lower, _\bC_\bR_\bS &upper,\n- InvVector &inv)\n-\u00a0 convert _\bI_\bL_\bU decomposition into _\bC_\bR_\bS format for lower and upper\n- triangular and inverse.\n-\u00a0\n-template\n- void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be (const _\bC_\bR_\bS &lower, const _\bC_\bR_\bS\n- &upper, const InvVector &inv, X &v, const Y &d)\n-\u00a0 LU backsolve with stored inverse in _\bC_\bR_\bS format for lower and\n- upper triangular.\n-\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-The incomplete LU factorization kernels.\n+Implementation of the BDMatrix class.\n+ Author\n+ Oliver Sander\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00185_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00185_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: ilu.hh Source File\n+dune-istl: bdmatrix.hh Source File\n \n \n \n \n \n \n \n@@ -74,475 +74,189 @@\n \n
    \n \n
    \n
    \n
    \n-
    ilu.hh
    \n+
    bdmatrix.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_ILU_HH
    \n-
    6#define DUNE_ISTL_ILU_HH
    \n+
    5#ifndef DUNE_ISTL_BDMATRIX_HH
    \n+
    6#define DUNE_ISTL_BDMATRIX_HH
    \n
    7
    \n-
    8#include <cmath>
    \n-
    9#include <complex>
    \n-
    10#include <map>
    \n-
    11#include <vector>
    \n+
    8#include <memory>
    \n+
    9
    \n+
    10#include <dune/common/rangeutilities.hh>
    \n+
    11#include <dune/common/scalarmatrixview.hh>
    \n
    12
    \n-
    13#include <dune/common/fmatrix.hh>
    \n-
    14#include <dune/common/scalarvectorview.hh>
    \n-
    15#include <dune/common/scalarmatrixview.hh>
    \n-
    16
    \n-
    17#include "istlexception.hh"
    \n-
    18
    \n-
    23namespace Dune {
    \n-
    24
    \n-
    \n-
    29 namespace ILU {
    \n-
    30
    \n-
    32 template<class M>
    \n-
    \n-\n-
    34 {
    \n-
    35 // iterator types
    \n-
    36 typedef typename M::RowIterator rowiterator;
    \n-
    37 typedef typename M::ColIterator coliterator;
    \n-
    38 typedef typename M::block_type block;
    \n-
    39
    \n-
    40 // implement left looking variant with stored inverse
    \n-
    41 rowiterator endi=A.end();
    \n-
    42 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n-
    43 {
    \n-
    44 // coliterator is diagonal after the following loop
    \n-
    45 coliterator endij=(*i).end(); // end of row i
    \n-
    46 coliterator ij;
    \n-
    47
    \n-
    48 // eliminate entries left of diagonal; store L factor
    \n-
    49 for (ij=(*i).begin(); ij.index()<i.index(); ++ij)
    \n-
    50 {
    \n-
    51 // find A_jj which eliminates A_ij
    \n-
    52 coliterator jj = A[ij.index()].find(ij.index());
    \n-
    53
    \n-
    54 // compute L_ij = A_jj^-1 * A_ij
    \n-
    55 Impl::asMatrix(*ij).rightmultiply(Impl::asMatrix(*jj));
    \n+\n+\n+
    15
    \n+
    21namespace Dune {
    \n+
    31 template <class B, class A=std::allocator<B> >
    \n+
    \n+
    32 class BDMatrix : public BCRSMatrix<B,A>
    \n+
    33 {
    \n+
    34 public:
    \n+
    35
    \n+
    36 //===== type definitions and constants
    \n+
    37
    \n+
    39 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n+
    40
    \n+
    42 typedef B block_type;
    \n+
    43
    \n+
    45 typedef A allocator_type;
    \n+
    46
    \n+
    48 //typedef BCRSMatrix<B,A>::row_type row_type;
    \n+
    49
    \n+
    51 typedef typename A::size_type size_type;
    \n+
    52
    \n+
    54 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n+
    55 static constexpr unsigned int blocklevel = blockLevel<B>()+1;
    \n
    56
    \n-
    57 // modify row
    \n-
    58 coliterator endjk=A[ij.index()].end(); // end of row j
    \n-
    59 coliterator jk=jj; ++jk;
    \n-
    60 coliterator ik=ij; ++ik;
    \n-
    61 while (ik!=endij && jk!=endjk)
    \n-
    62 if (ik.index()==jk.index())
    \n-
    63 {
    \n-
    64 block B(*jk);
    \n-
    65 Impl::asMatrix(B).leftmultiply(Impl::asMatrix(*ij));
    \n-
    66 *ik -= B;
    \n-
    67 ++ik; ++jk;
    \n-
    68 }
    \n-
    69 else
    \n-
    70 {
    \n-
    71 if (ik.index()<jk.index())
    \n-
    72 ++ik;
    \n-
    73 else
    \n-
    74 ++jk;
    \n-
    75 }
    \n-
    76 }
    \n-
    77
    \n-
    78 // invert pivot and store it in A
    \n-
    79 if (ij.index()!=i.index())
    \n-
    80 DUNE_THROW(ISTLError,"diagonal entry missing");
    \n-
    81 try {
    \n-
    82 Impl::asMatrix(*ij).invert(); // compute inverse of diagonal block
    \n-
    83 }
    \n-
    84 catch (Dune::FMatrixError & e) {
    \n-
    85 DUNE_THROW(MatrixBlockError, "ILU failed to invert matrix block A["
    \n-
    86 << i.index() << "][" << ij.index() << "]" << e.what();
    \n-
    87 th__ex.r=i.index(); th__ex.c=ij.index(););
    \n-
    88 }
    \n-
    89 }
    \n-
    90 }
    \n-
    \n-
    91
    \n-
    93 template<class M, class X, class Y>
    \n-
    \n-
    94 void blockILUBacksolve (const M& A, X& v, const Y& d)
    \n-
    95 {
    \n-
    96 // iterator types
    \n-
    97 typedef typename M::ConstRowIterator rowiterator;
    \n-
    98 typedef typename M::ConstColIterator coliterator;
    \n-
    99 typedef typename Y::block_type dblock;
    \n-
    100 typedef typename X::block_type vblock;
    \n+
    58 BDMatrix() : BCRSMatrix<B,A>() {}
    \n+
    59
    \n+
    \n+
    60 explicit BDMatrix(int size)
    \n+
    61 : BCRSMatrix<B,A>(size, size, BCRSMatrix<B,A>::random) {
    \n+
    62
    \n+
    63 for (int i=0; i<size; i++)
    \n+\n+
    65
    \n+\n+
    67
    \n+
    68 for (int i=0; i<size; i++)
    \n+
    69 this->BCRSMatrix<B,A>::addindex(i, i);
    \n+
    70
    \n+\n+
    72
    \n+
    73 }
    \n+
    \n+
    74
    \n+
    \n+
    76 BDMatrix (std::initializer_list<B> const &list)
    \n+
    77 : BDMatrix(list.size())
    \n+
    78 {
    \n+
    79 size_t i=0;
    \n+
    80 for (auto it = list.begin(); it != list.end(); ++it, ++i)
    \n+
    81 (*this)[i][i] = *it;
    \n+
    82 }
    \n+
    \n+
    83
    \n+
    \n+
    85 void setSize(size_type size)
    \n+
    86 {
    \n+
    87 this->BCRSMatrix<B,A>::setSize(size, // rows
    \n+
    88 size, // columns
    \n+
    89 size); // nonzeros
    \n+
    90
    \n+
    91 for (auto i : range(size))
    \n+\n+
    93
    \n+\n+
    95
    \n+
    96 for (auto i : range(size))
    \n+
    97 this->BCRSMatrix<B,A>::addindex(i, i);
    \n+
    98
    \n+\n+
    100 }
    \n+
    \n
    101
    \n-
    102 // lower triangular solve
    \n-
    103 rowiterator endi=A.end();
    \n-
    104 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n-
    105 {
    \n-
    106 // We need to be careful here: Directly using
    \n-
    107 // auto rhs = Impl::asVector(d[ i.index() ]);
    \n-
    108 // is not OK in case this is a proxy. Hence
    \n-
    109 // we first have to copy the value. Notice that
    \n-
    110 // this is still not OK, if the vector type itself returns
    \n-
    111 // proxy references.
    \n-
    112 dblock rhsValue(d[i.index()]);
    \n-
    113 auto&& rhs = Impl::asVector(rhsValue);
    \n-
    114 for (coliterator j=(*i).begin(); j.index()<i.index(); ++j)
    \n-
    115 Impl::asMatrix(*j).mmv(Impl::asVector(v[j.index()]),rhs);
    \n-
    116 Impl::asVector(v[i.index()]) = rhs; // Lii = I
    \n-
    117 }
    \n-
    118
    \n-
    119 // upper triangular solve
    \n-
    120 rowiterator rendi=A.beforeBegin();
    \n-
    121 for (rowiterator i=A.beforeEnd(); i!=rendi; --i)
    \n+
    \n+
    103 BDMatrix& operator= (const BDMatrix& other) {
    \n+
    104 this->BCRSMatrix<B,A>::operator=(other);
    \n+
    105 return *this;
    \n+
    106 }
    \n+
    \n+
    107
    \n+
    \n+\n+\n+
    111 return *this;
    \n+
    112 }
    \n+
    \n+
    113
    \n+
    119 template <class V>
    \n+
    \n+
    120 void solve (V& x, const V& rhs) const {
    \n+
    121 for (size_type i=0; i<this->N(); i++)
    \n
    122 {
    \n-
    123 // We need to be careful here: Directly using
    \n-
    124 // auto rhs = Impl::asVector(v[ i.index() ]);
    \n-
    125 // is not OK in case this is a proxy. Hence
    \n-
    126 // we first have to copy the value. Notice that
    \n-
    127 // this is still not OK, if the vector type itself returns
    \n-
    128 // proxy references.
    \n-
    129 vblock rhsValue(v[i.index()]);
    \n-
    130 auto&& rhs = Impl::asVector(rhsValue);
    \n-
    131 coliterator j;
    \n-
    132 for (j=(*i).beforeEnd(); j.index()>i.index(); --j)
    \n-
    133 Impl::asMatrix(*j).mmv(Impl::asVector(v[j.index()]),rhs);
    \n-
    134 auto&& vi = Impl::asVector(v[i.index()]);
    \n-
    135 Impl::asMatrix(*j).mv(rhs,vi); // diagonal stores inverse!
    \n-
    136 }
    \n-
    137 }
    \n-
    \n-
    138
    \n-
    139 // recursive function template to access first entry of a matrix
    \n-
    140 template<class M>
    \n-
    \n-
    141 typename M::field_type& firstMatrixElement (M& A,
    \n-
    142 [[maybe_unused]] typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr)
    \n-
    143 {
    \n-
    144 return firstMatrixElement(*(A.begin()->begin()));
    \n-
    145 }
    \n-
    \n-
    146
    \n-
    147 template<class K>
    \n-
    \n-\n-
    149 [[maybe_unused]] typename std::enable_if_t<Dune::IsNumber<K>::value>* sfinae = nullptr)
    \n-
    150 {
    \n-
    151 return A;
    \n-
    152 }
    \n-
    \n-
    153
    \n-
    154 template<class K, int n, int m>
    \n-
    \n-\n-
    156 {
    \n-
    157 return A[0][0];
    \n-
    158 }
    \n-
    \n-
    159
    \n-
    166 template<class M>
    \n-
    \n-
    167 void blockILUDecomposition (const M& A, int n, M& ILU)
    \n-
    168 {
    \n-
    169 // iterator types
    \n-
    170 typedef typename M::ColIterator coliterator;
    \n-
    171 typedef typename M::ConstRowIterator crowiterator;
    \n-
    172 typedef typename M::ConstColIterator ccoliterator;
    \n-
    173 typedef typename M::CreateIterator createiterator;
    \n-
    174 typedef typename M::field_type K;
    \n-
    175 typedef std::map<size_t, int> map;
    \n-
    176 typedef typename map::iterator mapiterator;
    \n-
    177
    \n-
    178 // symbolic factorization phase, store generation number in first matrix element
    \n-
    179 crowiterator endi=A.end();
    \n-
    180 createiterator ci=ILU.createbegin();
    \n-
    181 for (crowiterator i=A.begin(); i!=endi; ++i)
    \n-
    182 {
    \n-
    183 map rowpattern; // maps column index to generation
    \n-
    184
    \n-
    185 // initialize pattern with row of A
    \n-
    186 for (ccoliterator j=(*i).begin(); j!=(*i).end(); ++j)
    \n-
    187 rowpattern[j.index()] = 0;
    \n-
    188
    \n-
    189 // eliminate entries in row which are to the left of the diagonal
    \n-
    190 for (mapiterator ik=rowpattern.begin(); (*ik).first<i.index(); ++ik)
    \n-
    191 {
    \n-
    192 if ((*ik).second<n)
    \n-
    193 {
    \n-
    194 coliterator endk = ILU[(*ik).first].end(); // end of row k
    \n-
    195 coliterator kj = ILU[(*ik).first].find((*ik).first); // diagonal in k
    \n-
    196 for (++kj; kj!=endk; ++kj) // row k eliminates in row i
    \n-
    197 {
    \n-
    198 // we misuse the storage to store an int. If the field_type is std::complex, we have to access the real/abs part
    \n-
    199 // starting from C++11, we can use std::abs to always return a real value, even if it is double/float
    \n-
    200 using std::abs;
    \n-
    201 int generation = (int) Simd::lane(0, abs( firstMatrixElement(*kj) ));
    \n-
    202 if (generation<n)
    \n-
    203 {
    \n-
    204 mapiterator ij = rowpattern.find(kj.index());
    \n-
    205 if (ij==rowpattern.end())
    \n-
    206 {
    \n-
    207 rowpattern[kj.index()] = generation+1;
    \n-
    208 }
    \n-
    209 }
    \n-
    210 }
    \n-
    211 }
    \n-
    212 }
    \n-
    213
    \n-
    214 // create row
    \n-
    215 for (mapiterator ik=rowpattern.begin(); ik!=rowpattern.end(); ++ik)
    \n-
    216 ci.insert((*ik).first);
    \n-
    217 ++ci; // now row i exist
    \n-
    218
    \n-
    219 // write generation index into entries
    \n-
    220 coliterator endILUij = ILU[i.index()].end();;
    \n-
    221 for (coliterator ILUij=ILU[i.index()].begin(); ILUij!=endILUij; ++ILUij)
    \n-
    222 Simd::lane(0, firstMatrixElement(*ILUij)) = (Simd::Scalar<K>) rowpattern[ILUij.index()];
    \n-
    223 }
    \n-
    224
    \n-
    225 // copy entries of A
    \n-
    226 for (crowiterator i=A.begin(); i!=endi; ++i)
    \n-
    227 {
    \n-
    228 coliterator ILUij;
    \n-
    229 coliterator endILUij = ILU[i.index()].end();;
    \n-
    230 for (ILUij=ILU[i.index()].begin(); ILUij!=endILUij; ++ILUij)
    \n-
    231 (*ILUij) = 0; // clear row
    \n-
    232 ccoliterator Aij = (*i).begin();
    \n-
    233 ccoliterator endAij = (*i).end();
    \n-
    234 ILUij = ILU[i.index()].begin();
    \n-
    235 while (Aij!=endAij && ILUij!=endILUij)
    \n-
    236 {
    \n-
    237 if (Aij.index()==ILUij.index())
    \n-
    238 {
    \n-
    239 *ILUij = *Aij;
    \n-
    240 ++Aij; ++ILUij;
    \n-
    241 }
    \n-
    242 else
    \n-
    243 {
    \n-
    244 if (Aij.index()<ILUij.index())
    \n-
    245 ++Aij;
    \n-
    246 else
    \n-
    247 ++ILUij;
    \n-
    248 }
    \n-
    249 }
    \n-
    250 }
    \n-
    251
    \n-
    252 // call decomposition on pattern
    \n-\n-
    254 }
    \n-
    \n-
    255
    \n-
    257 template <class B, class Alloc = std::allocator<B>>
    \n-
    \n-
    258 struct CRS
    \n-
    259 {
    \n-
    260 typedef B block_type;
    \n-
    261 typedef size_t size_type;
    \n-
    262
    \n-
    263 CRS() : nRows_( 0 ) {}
    \n-
    264
    \n-
    265 size_type rows() const { return nRows_; }
    \n-
    266
    \n-
    \n-\n-
    268 {
    \n-
    269 assert( rows_[ rows() ] != size_type(-1) );
    \n-
    270 return rows_[ rows() ];
    \n-
    271 }
    \n-
    \n-
    272
    \n-
    \n-
    273 void resize( const size_type nRows )
    \n-
    274 {
    \n-
    275 if( nRows_ != nRows )
    \n-
    276 {
    \n-
    277 nRows_ = nRows ;
    \n-
    278 rows_.resize( nRows_+1, size_type(-1) );
    \n-
    279 }
    \n-
    280 }
    \n-
    \n-
    281
    \n-
    \n-\n-
    283 {
    \n-
    284 const size_type needed = values_.size() + nonZeros ;
    \n-
    285 if( values_.capacity() < needed )
    \n-
    286 {
    \n-
    287 const size_type estimate = needed * 1.1;
    \n-
    288 values_.reserve( estimate );
    \n-
    289 cols_.reserve( estimate );
    \n-
    290 }
    \n-
    291 }
    \n-
    \n-
    292
    \n-
    \n-
    293 void push_back( const block_type& value, const size_type index )
    \n-
    294 {
    \n-
    295 values_.push_back( value );
    \n-
    296 cols_.push_back( index );
    \n-
    297 }
    \n-
    \n-
    298
    \n-
    299 std::vector< size_type > rows_;
    \n-
    300 std::vector< block_type, Alloc> values_;
    \n-
    301 std::vector< size_type > cols_;
    \n-\n-
    303 };
    \n-
    \n-
    304
    \n-
    306 template<class M, class CRS, class InvVector>
    \n-
    \n-
    307 void convertToCRS(const M& A, CRS& lower, CRS& upper, InvVector& inv )
    \n-
    308 {
    \n-
    309 typedef typename M :: size_type size_type;
    \n-
    310
    \n-
    311 lower.resize( A.N() );
    \n-
    312 upper.resize( A.N() );
    \n-
    313 inv.resize( A.N() );
    \n-
    314
    \n-
    315 // lower and upper triangular should store half of non zeros minus diagonal
    \n-
    316 const size_t memEstimate = (A.nonzeroes() - A.N())/2;
    \n-
    317
    \n-
    318 assert( A.nonzeroes() != 0 );
    \n-
    319 lower.reserveAdditional( memEstimate );
    \n-
    320 upper.reserveAdditional( memEstimate );
    \n-
    321
    \n-
    322 const auto endi = A.end();
    \n-
    323 size_type row = 0;
    \n-
    324 size_type colcount = 0;
    \n-
    325 lower.rows_[ 0 ] = colcount;
    \n-
    326 for (auto i=A.begin(); i!=endi; ++i, ++row)
    \n-
    327 {
    \n-
    328 const size_type iIndex = i.index();
    \n-
    329
    \n-
    330 // store entries left of diagonal
    \n-
    331 for (auto j=(*i).begin(); j.index() < iIndex; ++j )
    \n-
    332 {
    \n-
    333 lower.push_back( (*j), j.index() );
    \n-
    334 ++colcount;
    \n-
    335 }
    \n-
    336 lower.rows_[ iIndex+1 ] = colcount;
    \n-
    337 }
    \n-
    338
    \n-
    339 const auto rendi = A.beforeBegin();
    \n-
    340 row = 0;
    \n-
    341 colcount = 0;
    \n-
    342 upper.rows_[ 0 ] = colcount ;
    \n-
    343
    \n-
    344 // NOTE: upper and inv store entries in reverse row and col order,
    \n-
    345 // reverse here relative to ILU
    \n-
    346 for (auto i=A.beforeEnd(); i!=rendi; --i, ++ row )
    \n-
    347 {
    \n-
    348 const auto endij=(*i).beforeBegin(); // end of row i
    \n-
    349
    \n-
    350 const size_type iIndex = i.index();
    \n-
    351
    \n-
    352 // store in reverse row order for faster access during backsolve
    \n-
    353 for (auto j=(*i).beforeEnd(); j != endij; --j )
    \n-
    354 {
    \n-
    355 const size_type jIndex = j.index();
    \n-
    356 if( j.index() == iIndex )
    \n-
    357 {
    \n-
    358 inv[ row ] = (*j);
    \n-
    359 break; // assuming consecutive ordering of A
    \n-
    360 }
    \n-
    361 else if ( j.index() >= i.index() )
    \n-
    362 {
    \n-
    363 upper.push_back( (*j), jIndex );
    \n-
    364 ++colcount ;
    \n-
    365 }
    \n-
    366 }
    \n-
    367 upper.rows_[ row+1 ] = colcount;
    \n-
    368 }
    \n-
    369 } // end convertToCRS
    \n-
    \n-
    370
    \n-
    372 template<class CRS, class InvVector, class X, class Y>
    \n-
    \n-
    373 void blockILUBacksolve (const CRS& lower,
    \n-
    374 const CRS& upper,
    \n-
    375 const InvVector& inv,
    \n-
    376 X& v, const Y& d)
    \n-
    377 {
    \n-
    378 // iterator types
    \n-
    379 typedef typename Y :: block_type dblock;
    \n-
    380 typedef typename X :: block_type vblock;
    \n-
    381 typedef typename X :: size_type size_type ;
    \n-
    382
    \n-
    383 const size_type iEnd = lower.rows();
    \n-
    384 const size_type lastRow = iEnd - 1;
    \n-
    385 if( iEnd != upper.rows() )
    \n-
    386 {
    \n-
    387 DUNE_THROW(ISTLError,"ILU::blockILUBacksolve: lower and upper rows must be the same");
    \n-
    388 }
    \n-
    389
    \n-
    390 // lower triangular solve
    \n-
    391 for( size_type i=0; i<iEnd; ++ i )
    \n-
    392 {
    \n-
    393 dblock rhsValue( d[ i ] );
    \n-
    394 auto&& rhs = Impl::asVector(rhsValue);
    \n-
    395 const size_type rowI = lower.rows_[ i ];
    \n-
    396 const size_type rowINext = lower.rows_[ i+1 ];
    \n-
    397
    \n-
    398 for( size_type col = rowI; col < rowINext; ++ col )
    \n-
    399 Impl::asMatrix(lower.values_[ col ]).mmv( Impl::asVector(v[ lower.cols_[ col ] ] ), rhs );
    \n-
    400
    \n-
    401 Impl::asVector(v[ i ]) = rhs; // Lii = I
    \n-
    402 }
    \n-
    403
    \n-
    404 // upper triangular solve
    \n-
    405 for( size_type i=0; i<iEnd; ++ i )
    \n-
    406 {
    \n-
    407 auto&& vBlock = Impl::asVector(v[ lastRow - i ]);
    \n-
    408 vblock rhsValue ( v[ lastRow - i ] );
    \n-
    409 auto&& rhs = Impl::asVector(rhsValue);
    \n-
    410 const size_type rowI = upper.rows_[ i ];
    \n-
    411 const size_type rowINext = upper.rows_[ i+1 ];
    \n-
    412
    \n-
    413 for( size_type col = rowI; col < rowINext; ++ col )
    \n-
    414 Impl::asMatrix(upper.values_[ col ]).mmv( Impl::asVector(v[ upper.cols_[ col ] ]), rhs );
    \n-
    415
    \n-
    416 // apply inverse and store result
    \n-
    417 Impl::asMatrix(inv[ i ]).mv(rhs, vBlock);
    \n-
    418 }
    \n-
    419 }
    \n-
    \n-
    420
    \n-
    421 } // end namespace ILU
    \n-
    \n-
    422
    \n-
    425} // end namespace
    \n-
    426
    \n-
    427#endif
    \n-\n+
    123 auto&& xv = Impl::asVector(x[i]);
    \n+
    124 auto&& rhsv = Impl::asVector(rhs[i]);
    \n+
    125 Impl::asMatrix((*this)[i][i]).solve(xv,rhsv);
    \n+
    126 }
    \n+
    127 }
    \n+
    \n+
    128
    \n+
    \n+
    130 void invert() {
    \n+
    131 for (size_type i=0; i<this->N(); i++)
    \n+
    132 Impl::asMatrix((*this)[i][i]).invert();
    \n+
    133 }
    \n+
    \n+
    134
    \n+
    135 private:
    \n+
    136
    \n+
    137 // ////////////////////////////////////////////////////////////////////////////
    \n+
    138 // The following methods from the base class should now actually be called
    \n+
    139 // ////////////////////////////////////////////////////////////////////////////
    \n+
    140
    \n+
    141 // createbegin and createend should be in there, too, but I can't get it to compile
    \n+
    142 // BCRSMatrix<B,A>::CreateIterator createbegin () {}
    \n+
    143 // BCRSMatrix<B,A>::CreateIterator createend () {}
    \n+
    144 void setrowsize (size_type i, size_type s) {}
    \n+
    145 void incrementrowsize (size_type i) {}
    \n+
    146 void endrowsizes () {}
    \n+
    147 void addindex (size_type row, size_type col) {}
    \n+
    148 void endindices () {}
    \n+
    149 };
    \n+
    \n+
    150
    \n+
    151 template<typename B, typename A>
    \n+
    \n+
    152 struct FieldTraits< BDMatrix<B, A> >
    \n+
    153 {
    \n+\n+
    155 using real_type = typename FieldTraits<field_type>::real_type;
    \n+
    156 };
    \n+
    \n+
    159} // end namespace Dune
    \n+
    160
    \n+
    161#endif
    \n+
    Helper functions for determining the vector/matrix block level.
    \n+
    Implementation of the BCRSMatrix class.
    \n
    Col col
    Definition matrixmatrix.hh:351
    \n
    Definition allocator.hh:11
    \n-
    void convertToCRS(const M &A, CRS &lower, CRS &upper, InvVector &inv)
    convert ILU decomposition into CRS format for lower and upper triangular and inverse.
    Definition ilu.hh:307
    \n-
    void blockILUBacksolve(const M &A, X &v, const Y &d)
    LU backsolve with stored inverse.
    Definition ilu.hh:94
    \n-
    M::field_type & firstMatrixElement(M &A, typename std::enable_if_t<!Dune::IsNumber< M >::value > *sfinae=nullptr)
    Definition ilu.hh:141
    \n-
    void blockILU0Decomposition(M &A)
    compute ILU decomposition of A. A is overwritten by its decomposition
    Definition ilu.hh:33
    \n-
    void blockILUDecomposition(const M &A, int n, M &ILU)
    Definition ilu.hh:167
    \n-
    a simple compressed row storage matrix class
    Definition ilu.hh:259
    \n-
    std::vector< size_type > cols_
    Definition ilu.hh:301
    \n-
    size_type nonZeros() const
    Definition ilu.hh:267
    \n-
    void resize(const size_type nRows)
    Definition ilu.hh:273
    \n-
    size_type rows() const
    Definition ilu.hh:265
    \n-
    CRS()
    Definition ilu.hh:263
    \n-
    void reserveAdditional(const size_type nonZeros)
    Definition ilu.hh:282
    \n-
    B block_type
    Definition ilu.hh:260
    \n-
    std::vector< block_type, Alloc > values_
    Definition ilu.hh:300
    \n-
    size_type nRows_
    Definition ilu.hh:302
    \n-
    size_t size_type
    Definition ilu.hh:261
    \n-
    std::vector< size_type > rows_
    Definition ilu.hh:299
    \n-
    void push_back(const block_type &value, const size_type index)
    Definition ilu.hh:293
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    Error when performing an operation on a matrix block.
    Definition istlexception.hh:52
    \n-
    Definition matrixutils.hh:27
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    void endrowsizes()
    indicate that size of all rows is defined
    Definition bcrsmatrix.hh:1149
    \n+
    @ random
    Build entries randomly.
    Definition bcrsmatrix.hh:530
    \n+
    void endindices()
    indicate that all indices are defined, check consistency
    Definition bcrsmatrix.hh:1248
    \n+
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n+
    void setSize(size_type rows, size_type columns, size_type nnz=0)
    Set the size of the matrix.
    Definition bcrsmatrix.hh:861
    \n+
    BCRSMatrix & operator=(const BCRSMatrix &Mat)
    assignment
    Definition bcrsmatrix.hh:911
    \n+
    A block-diagonal matrix.
    Definition bdmatrix.hh:33
    \n+
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bdmatrix.hh:39
    \n+
    A::size_type size_type
    implement row_type with compressed vector
    Definition bdmatrix.hh:51
    \n+
    BDMatrix()
    Default constructor.
    Definition bdmatrix.hh:58
    \n+
    BDMatrix(std::initializer_list< B > const &list)
    Construct from a std::initializer_list.
    Definition bdmatrix.hh:76
    \n+
    B block_type
    export the type representing the components
    Definition bdmatrix.hh:42
    \n+
    void solve(V &x, const V &rhs) const
    Solve the system Ax=b in O(n) time.
    Definition bdmatrix.hh:120
    \n+
    A allocator_type
    export the allocator type
    Definition bdmatrix.hh:45
    \n+
    BDMatrix(int size)
    Definition bdmatrix.hh:60
    \n+
    BDMatrix & operator=(const BDMatrix &other)
    assignment
    Definition bdmatrix.hh:103
    \n+
    static constexpr unsigned int blocklevel
    increment block level counter
    Definition bdmatrix.hh:55
    \n+
    void setSize(size_type size)
    Resize the matrix. Invalidates the content!
    Definition bdmatrix.hh:85
    \n+
    void invert()
    Inverts the matrix.
    Definition bdmatrix.hh:130
    \n+
    typename BDMatrix< B, A >::field_type field_type
    Definition bdmatrix.hh:154
    \n+
    typename FieldTraits< field_type >::real_type real_type
    Definition bdmatrix.hh:155
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,499 +1,234 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-ilu.hh\n+bdmatrix.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_ILU_HH\n-6#define DUNE_ISTL_ILU_HH\n+5#ifndef DUNE_ISTL_BDMATRIX_HH\n+6#define DUNE_ISTL_BDMATRIX_HH\n 7\n-8#include \n-9#include \n-10#include \n-11#include \n+8#include \n+9\n+10#include \n+11#include \n 12\n-13#include \n-14#include \n-15#include \n-16\n-17#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-18\n-23namespace _\bD_\bu_\bn_\be {\n-24\n-_\b2_\b9 namespace ILU {\n-30\n-32 template\n-_\b3_\b3 void _\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn (M& A)\n-34 {\n-35 // iterator types\n-36 typedef typename M::RowIterator rowiterator;\n-37 typedef typename M::ColIterator coliterator;\n-38 typedef typename M::block_type block;\n-39\n-40 // implement left looking variant with stored inverse\n-41 rowiterator endi=A.end();\n-42 for (rowiterator i=A.begin(); i!=endi; ++i)\n-43 {\n-44 // coliterator is diagonal after the following loop\n-45 coliterator endij=(*i).end(); // end of row i\n-46 coliterator ij;\n-47\n-48 // eliminate entries left of diagonal; store L factor\n-49 for (ij=(*i).begin(); ij.index()\n+14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+15\n+21namespace _\bD_\bu_\bn_\be {\n+31 template >\n+_\b3_\b2 class _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx : public _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+33 {\n+34 public:\n+35\n+36 //===== type definitions and constants\n+37\n+_\b3_\b9 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n+40\n+_\b4_\b2 typedef B _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+43\n+_\b4_\b5 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n+46\n+48 //typedef BCRSMatrix::row_type row_type;\n+49\n+_\b5_\b1 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+52\n+54 [[deprecated(\"Use free function blockLevel(). Will be removed after 2.8.\")]]\n+_\b5_\b5 static constexpr unsigned int _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+1;\n 56\n-57 // modify row\n-58 coliterator endjk=A[ij.index()].end(); // end of row j\n-59 coliterator jk=jj; ++jk;\n-60 coliterator ik=ij; ++ik;\n-61 while (ik!=endij && jk!=endjk)\n-62 if (ik.index()==jk.index())\n-63 {\n-64 block B(*jk);\n-65 Impl::asMatrix(B).leftmultiply(Impl::asMatrix(*ij));\n-66 *ik -= B;\n-67 ++ik; ++jk;\n-68 }\n-69 else\n-70 {\n-71 if (ik.index()\n-_\b9_\b4 void _\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n-95 {\n-96 // iterator types\n-97 typedef typename M::ConstRowIterator rowiterator;\n-98 typedef typename M::ConstColIterator coliterator;\n-99 typedef typename Y::block_type dblock;\n-100 typedef typename X::block_type vblock;\n+_\b5_\b8 _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx() : _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx() {}\n+59\n+_\b6_\b0 explicit _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx(int size)\n+61 : _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx(size, size, _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx::_\br_\ba_\bn_\bd_\bo_\bm) {\n+62\n+63 for (int i=0; i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be(i, 1);\n+65\n+66 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs();\n+67\n+68 for (int i=0; i_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i);\n+70\n+71 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs();\n+72\n+73 }\n+74\n+_\b7_\b6 _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx (std::initializer_list const &list)\n+77 : _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx(list.size())\n+78 {\n+79 size_t i=0;\n+80 for (auto it = list.begin(); it != list.end(); ++it, ++i)\n+81 (*this)[i][i] = *it;\n+82 }\n+83\n+_\b8_\b5 void _\bs_\be_\bt_\bS_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size)\n+86 {\n+87 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be(size, // rows\n+88 size, // columns\n+89 size); // nonzeros\n+90\n+91 for (auto i : range(size))\n+92 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bs_\be_\bt_\br_\bo_\bw_\bs_\bi_\bz_\be(i, 1);\n+93\n+94 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs();\n+95\n+96 for (auto i : range(size))\n+97 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\ba_\bd_\bd_\bi_\bn_\bd_\be_\bx(i, i);\n+98\n+99 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs();\n+100 }\n 101\n-102 // lower triangular solve\n-103 rowiterator endi=A.end();\n-104 for (rowiterator i=A.begin(); i!=endi; ++i)\n-105 {\n-106 // We need to be careful here: Directly using\n-107 // auto rhs = Impl::asVector(d[ i.index() ]);\n-108 // is not OK in case this is a proxy. Hence\n-109 // we first have to copy the value. Notice that\n-110 // this is still not OK, if the vector type itself returns\n-111 // proxy references.\n-112 dblock rhsValue(d[i.index()]);\n-113 auto&& rhs = Impl::asVector(rhsValue);\n-114 for (coliterator j=(*i).begin(); j.index()_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(other);\n+105 return *this;\n+106 }\n+107\n+_\b1_\b0_\b9 _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k) {\n+110 this->_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bA_\b>_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=(k);\n+111 return *this;\n+112 }\n+113\n+119 template \n+_\b1_\b2_\b0 void _\bs_\bo_\bl_\bv_\be (V& x, const V& rhs) const {\n+121 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i_\bN(); i++)\n 122 {\n-123 // We need to be careful here: Directly using\n-124 // auto rhs = Impl::asVector(v[ i.index() ]);\n-125 // is not OK in case this is a proxy. Hence\n-126 // we first have to copy the value. Notice that\n-127 // this is still not OK, if the vector type itself returns\n-128 // proxy references.\n-129 vblock rhsValue(v[i.index()]);\n-130 auto&& rhs = Impl::asVector(rhsValue);\n-131 coliterator j;\n-132 for (j=(*i).beforeEnd(); j.index()>i.index(); --j)\n-133 Impl::asMatrix(*j).mmv(Impl::asVector(v[j.index()]),rhs);\n-134 auto&& vi = Impl::asVector(v[i.index()]);\n-135 Impl::asMatrix(*j).mv(rhs,vi); // diagonal stores inverse!\n-136 }\n-137 }\n-138\n-139 // recursive function template to access first entry of a matrix\n-140 template\n-_\b1_\b4_\b1 typename M::field_type& _\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (M& A,\n-142 [[maybe_unused]] typename std::enable_if_t::value>*\n-sfinae = nullptr)\n-143 {\n-144 return _\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt(*(A.begin()->begin()));\n-145 }\n-146\n-147 template\n-_\b1_\b4_\b8 K& _\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (K& A,\n-149 [[maybe_unused]] typename std::enable_if_t::value>*\n-sfinae = nullptr)\n-150 {\n-151 return A;\n-152 }\n-153\n-154 template\n-_\b1_\b5_\b5 K& _\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b,_\bm_\b>& A)\n-156 {\n-157 return A[0][0];\n-158 }\n-159\n-166 template\n-_\b1_\b6_\b7 void _\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn (const M& A, int n, M& ILU)\n-168 {\n-169 // iterator types\n-170 typedef typename M::ColIterator coliterator;\n-171 typedef typename M::ConstRowIterator crowiterator;\n-172 typedef typename M::ConstColIterator ccoliterator;\n-173 typedef typename M::CreateIterator createiterator;\n-174 typedef typename M::field_type K;\n-175 typedef std::map map;\n-176 typedef typename map::iterator mapiterator;\n-177\n-178 // symbolic factorization phase, store generation number in first matrix\n-element\n-179 crowiterator endi=A.end();\n-180 createiterator ci=ILU.createbegin();\n-181 for (crowiterator i=A.begin(); i!=endi; ++i)\n-182 {\n-183 map rowpattern; // maps column index to generation\n-184\n-185 // initialize pattern with row of A\n-186 for (ccoliterator j=(*i).begin(); j!=(*i).end(); ++j)\n-187 rowpattern[j.index()] = 0;\n-188\n-189 // eliminate entries in row which are to the left of the diagonal\n-190 for (mapiterator ik=rowpattern.begin(); (*ik).first) rowpattern\n-[ILUij.index()];\n-223 }\n-224\n-225 // copy entries of A\n-226 for (crowiterator i=A.begin(); i!=endi; ++i)\n-227 {\n-228 coliterator ILUij;\n-229 coliterator endILUij = ILU[i.index()].end();;\n-230 for (ILUij=ILU[i.index()].begin(); ILUij!=endILUij; ++ILUij)\n-231 (*ILUij) = 0; // clear row\n-232 ccoliterator Aij = (*i).begin();\n-233 ccoliterator endAij = (*i).end();\n-234 ILUij = ILU[i.index()].begin();\n-235 while (Aij!=endAij && ILUij!=endILUij)\n-236 {\n-237 if (Aij.index()==ILUij.index())\n-238 {\n-239 *ILUij = *Aij;\n-240 ++Aij; ++ILUij;\n-241 }\n-242 else\n-243 {\n-244 if (Aij.index()>\n-_\b2_\b5_\b8 struct _\bC_\bR_\bS\n-259 {\n-_\b2_\b6_\b0 typedef B _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-_\b2_\b6_\b1 typedef size_t _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-262\n-_\b2_\b6_\b3 _\bC_\bR_\bS() : _\bn_\bR_\bo_\bw_\bs_\b_( 0 ) {}\n-264\n-_\b2_\b6_\b5 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bs() const { return _\bn_\bR_\bo_\bw_\bs_\b_; }\n-266\n-_\b2_\b6_\b7 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn_\bo_\bn_\bZ_\be_\br_\bo_\bs() const\n-268 {\n-269 assert( _\br_\bo_\bw_\bs_\b_[ _\br_\bo_\bw_\bs() ] != _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be(-1) );\n-270 return _\br_\bo_\bw_\bs_\b_[ _\br_\bo_\bw_\bs() ];\n-271 }\n-272\n-_\b2_\b7_\b3 void _\br_\be_\bs_\bi_\bz_\be( const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nRows )\n-274 {\n-275 if( _\bn_\bR_\bo_\bw_\bs_\b_ != nRows )\n-276 {\n-277 _\bn_\bR_\bo_\bw_\bs_\b_ = nRows ;\n-278 _\br_\bo_\bw_\bs_\b_.resize( _\bn_\bR_\bo_\bw_\bs_\b_+1, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be(-1) );\n-279 }\n-280 }\n-281\n-_\b2_\b8_\b2 void _\br_\be_\bs_\be_\br_\bv_\be_\bA_\bd_\bd_\bi_\bt_\bi_\bo_\bn_\ba_\bl( const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn_\bo_\bn_\bZ_\be_\br_\bo_\bs )\n-283 {\n-284 const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be needed = _\bv_\ba_\bl_\bu_\be_\bs_\b_.size() + _\bn_\bo_\bn_\bZ_\be_\br_\bo_\bs ;\n-285 if( _\bv_\ba_\bl_\bu_\be_\bs_\b_.capacity() < needed )\n-286 {\n-287 const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be estimate = needed * 1.1;\n-288 _\bv_\ba_\bl_\bu_\be_\bs_\b_.reserve( estimate );\n-289 _\bc_\bo_\bl_\bs_\b_.reserve( estimate );\n-290 }\n-291 }\n-292\n-_\b2_\b9_\b3 void _\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk( const _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& value, const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be index )\n-294 {\n-295 _\bv_\ba_\bl_\bu_\be_\bs_\b_.push_back( value );\n-296 _\bc_\bo_\bl_\bs_\b_.push_back( index );\n-297 }\n-298\n-_\b2_\b9_\b9 std::vector< size_type > _\br_\bo_\bw_\bs_\b_;\n-_\b3_\b0_\b0 std::vector< block_type, Alloc> _\bv_\ba_\bl_\bu_\be_\bs_\b_;\n-_\b3_\b0_\b1 std::vector< size_type > _\bc_\bo_\bl_\bs_\b_;\n-_\b3_\b0_\b2 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn_\bR_\bo_\bw_\bs_\b_;\n-303 };\n-304\n-306 template\n-_\b3_\b0_\b7 void _\bc_\bo_\bn_\bv_\be_\br_\bt_\bT_\bo_\bC_\bR_\bS(const M& A, _\bC_\bR_\bS& lower, _\bC_\bR_\bS& upper, InvVector& inv )\n-308 {\n-309 typedef typename M :: size_type size_type;\n-310\n-311 lower._\br_\be_\bs_\bi_\bz_\be( A.N() );\n-312 upper._\br_\be_\bs_\bi_\bz_\be( A.N() );\n-313 inv.resize( A.N() );\n-314\n-315 // lower and upper triangular should store half of non zeros minus diagonal\n-316 const size_t memEstimate = (A.nonzeroes() - A.N())/2;\n-317\n-318 assert( A.nonzeroes() != 0 );\n-319 lower._\br_\be_\bs_\be_\br_\bv_\be_\bA_\bd_\bd_\bi_\bt_\bi_\bo_\bn_\ba_\bl( memEstimate );\n-320 upper._\br_\be_\bs_\be_\br_\bv_\be_\bA_\bd_\bd_\bi_\bt_\bi_\bo_\bn_\ba_\bl( memEstimate );\n-321\n-322 const auto endi = A.end();\n-323 size_type row = 0;\n-324 size_type colcount = 0;\n-325 lower._\br_\bo_\bw_\bs_\b_[ 0 ] = colcount;\n-326 for (auto i=A.begin(); i!=endi; ++i, ++row)\n-327 {\n-328 const size_type iIndex = i.index();\n-329\n-330 // store entries left of diagonal\n-331 for (auto j=(*i).begin(); j.index() < iIndex; ++j )\n-332 {\n-333 lower._\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk( (*j), j.index() );\n-334 ++colcount;\n-335 }\n-336 lower._\br_\bo_\bw_\bs_\b_[ iIndex+1 ] = colcount;\n-337 }\n-338\n-339 const auto rendi = A.beforeBegin();\n-340 row = 0;\n-341 colcount = 0;\n-342 upper._\br_\bo_\bw_\bs_\b_[ 0 ] = colcount ;\n-343\n-344 // NOTE: upper and inv store entries in reverse row and col order,\n-345 // reverse here relative to ILU\n-346 for (auto i=A.beforeEnd(); i!=rendi; --i, ++ row )\n-347 {\n-348 const auto endij=(*i).beforeBegin(); // end of row i\n-349\n-350 const size_type iIndex = i.index();\n-351\n-352 // store in reverse row order for faster access during backsolve\n-353 for (auto j=(*i).beforeEnd(); j != endij; --j )\n-354 {\n-355 const size_type jIndex = j.index();\n-356 if( j.index() == iIndex )\n-357 {\n-358 inv[ row ] = (*j);\n-359 break; // assuming consecutive ordering of A\n-360 }\n-361 else if ( j.index() >= i.index() )\n-362 {\n-363 upper._\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk( (*j), jIndex );\n-364 ++colcount ;\n-365 }\n-366 }\n-367 upper._\br_\bo_\bw_\bs_\b_[ row+1 ] = colcount;\n-368 }\n-369 } // end convertToCRS\n-370\n-372 template\n-_\b3_\b7_\b3 void _\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be (const _\bC_\bR_\bS& lower,\n-374 const _\bC_\bR_\bS& upper,\n-375 const InvVector& inv,\n-376 X& v, const Y& d)\n-377 {\n-378 // iterator types\n-379 typedef typename Y :: block_type dblock;\n-380 typedef typename X :: block_type vblock;\n-381 typedef typename X :: size_type size_type ;\n-382\n-383 const size_type iEnd = lower._\br_\bo_\bw_\bs();\n-384 const size_type lastRow = iEnd - 1;\n-385 if( iEnd != upper._\br_\bo_\bw_\bs() )\n-386 {\n-387 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"ILU::blockILUBacksolve: lower and upper rows must be\n-the same\");\n-388 }\n-389\n-390 // lower triangular solve\n-391 for( size_type i=0; i_\bN(); i++)\n+132 Impl::asMatrix((*this)[i][i])._\bi_\bn_\bv_\be_\br_\bt();\n+133 }\n+134\n+135 private:\n+136\n+137 // ////////////////////////////////////////////////////////////////////////\n+////\n+138 // The following methods from the base class should now actually be called\n+139 // ////////////////////////////////////////////////////////////////////////\n+////\n+140\n+141 // createbegin and createend should be in there, too, but I can't get it to\n+compile\n+142 // BCRSMatrix::CreateIterator createbegin () {}\n+143 // BCRSMatrix::CreateIterator createend () {}\n+144 void setrowsize (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be s) {}\n+145 void incrementrowsize (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) {}\n+146 void endrowsizes () {}\n+147 void addindex (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be row, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl) {}\n+148 void endindices () {}\n+149 };\n+150\n+151 template\n+_\b1_\b5_\b2 struct FieldTraits< _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx >\n+153 {\n+_\b1_\b5_\b4 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\b _\bA_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b1_\b5_\b5 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n+156 };\n+159} // end namespace Dune\n+160\n+161#endif\n+_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n+Helper functions for determining the vector/matrix block level.\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n _\bc_\bo_\bl\n Col col\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bt_\bT_\bo_\bC_\bR_\bS\n-void convertToCRS(const M &A, CRS &lower, CRS &upper, InvVector &inv)\n-convert ILU decomposition into CRS format for lower and upper triangular and\n-inverse.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:307\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be\n-void blockILUBacksolve(const M &A, X &v, const Y &d)\n-LU backsolve with stored inverse.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:94\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt\n-M::field_type & firstMatrixElement(M &A, typename std::enable_if_t::value > *sfinae=nullptr)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:141\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n-void blockILU0Decomposition(M &A)\n-compute ILU decomposition of A. A is overwritten by its decomposition\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:33\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n-void blockILUDecomposition(const M &A, int n, M &ILU)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:167\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS\n-a simple compressed row storage matrix class\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:259\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bc_\bo_\bl_\bs_\b_\n-std::vector< size_type > cols_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:301\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bn_\bo_\bn_\bZ_\be_\br_\bo_\bs\n-size_type nonZeros() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:267\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n-void resize(const size_type nRows)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:273\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\br_\bo_\bw_\bs\n-size_type rows() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:265\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bC_\bR_\bS\n-CRS()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:263\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\br_\be_\bs_\be_\br_\bv_\be_\bA_\bd_\bd_\bi_\bt_\bi_\bo_\bn_\ba_\bl\n-void reserveAdditional(const size_type nonZeros)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:282\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\br_\bo_\bw_\bs_\bi_\bz_\be_\bs\n+void endrowsizes()\n+indicate that size of all rows is defined\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\ba_\bn_\bd_\bo_\bm\n+@ random\n+Build entries randomly.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:530\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd_\bi_\bn_\bd_\bi_\bc_\be_\bs\n+void endindices()\n+indicate that all indices are defined, check consistency\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1248\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+size_type N() const\n+number of rows (counted in blocks)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n+void setSize(size_type rows, size_type columns, size_type nnz=0)\n+Set the size of the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:861\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BCRSMatrix & operator=(const BCRSMatrix &Mat)\n+assignment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:911\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx\n+A block-diagonal matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:33\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename Imp::BlockTraits< B >::field_type field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:39\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+implement row_type with compressed vector\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx\n+BDMatrix()\n+Default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:58\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx\n+BDMatrix(std::initializer_list< B > const &list)\n+Construct from a std::initializer_list.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:76\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n B block_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:260\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bv_\ba_\bl_\bu_\be_\bs_\b_\n-std::vector< block_type, Alloc > values_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:300\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bn_\bR_\bo_\bw_\bs_\b_\n-size_type nRows_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:302\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-size_t size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:261\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\br_\bo_\bw_\bs_\b_\n-std::vector< size_type > rows_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk\n-void push_back(const block_type &value, const size_type index)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br\n-Error when performing an operation on a matrix block.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n+export the type representing the components\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:42\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bo_\bl_\bv_\be\n+void solve(V &x, const V &rhs) const\n+Solve the system Ax=b in O(n) time.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:120\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n+A allocator_type\n+export the allocator type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:45\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx\n+BDMatrix(int size)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:60\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+BDMatrix & operator=(const BDMatrix &other)\n+assignment\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:103\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n+static constexpr unsigned int blocklevel\n+increment block level counter\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:55\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\be_\bt_\bS_\bi_\bz_\be\n+void setSize(size_type size)\n+Resize the matrix. Invalidates the content!\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:85\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bv_\be_\br_\bt\n+void invert()\n+Inverts the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:130\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename BDMatrix< B, A >::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:154\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bD_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+typename FieldTraits< field_type >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bdmatrix.hh:155\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00188.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00188.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: multitypeblockvector.hh File Reference\n+dune-istl: cholmod.hh File Reference\n \n \n \n \n \n \n \n@@ -69,60 +69,19 @@\n \n
    \n \n
    \n
    \n
    \n- \n-
    multitypeblockvector.hh File Reference
    \n+
    cholmod.hh File Reference
    \n
    \n
    \n-
    #include <cmath>
    \n-#include <iostream>
    \n-#include <tuple>
    \n-#include <dune/common/dotproduct.hh>
    \n-#include <dune/common/ftraits.hh>
    \n-#include <dune/common/hybridutilities.hh>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/std/type_traits.hh>
    \n-#include "istlexception.hh"
    \n-#include "gsetc.hh"
    \n-
    \n+\n

    Go to the source code of this file.

    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Classes

    struct  Dune::FieldTraits< MultiTypeBlockVector< Args... > >
     
    class  Dune::MultiTypeBlockVector< Args >
     A Vector class to support different block types. More...
     
    struct  std::tuple_element< i, Dune::MultiTypeBlockVector< Args... > >
     Make std::tuple_element work for MultiTypeBlockVector. More...
     
    \n-\n-\n-\n-\n-\n-\n-

    \n-Namespaces

    namespace  Dune
     
    namespace  std
     STL namespace.
     
    \n-\n-\n-\n-\n-\n-

    \n-Functions

    template<typename... Args>
    std::ostream & Dune::operator<< (std::ostream &s, const MultiTypeBlockVector< Args... > &v)
     Send MultiTypeBlockVector to an outstream.
     
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,42 +1,10 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-multitypeblockvector.hh File Reference\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n+cholmod.hh File Reference\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b _\b>\n-\u00a0 A Vector class to support different block types. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b__\be_\bl_\be_\bm_\be_\bn_\bt_\b<_\b _\bi_\b,_\b _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>\n-\u00a0 Make std::tuple_element work for MultiTypeBlockVector. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n-namespace \u00a0 _\bD_\bu_\bn_\be\n-\u00a0\n-namespace \u00a0 _\bs_\bt_\bd\n-\u00a0 STL namespace.\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &s, const _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br<\n- Args... > &v)\n-\u00a0 Send _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br to an outstream.\n-\u00a0\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00188_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00188_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: multitypeblockvector.hh Source File\n+dune-istl: cholmod.hh Source File\n \n \n \n \n \n \n \n@@ -74,354 +74,378 @@\n \n
    \n \n
    \n \n
    \n-
    multitypeblockvector.hh
    \n+
    cholmod.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n-
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_MULTITYPEBLOCKVECTOR_HH
    \n-
    6#define DUNE_ISTL_MULTITYPEBLOCKVECTOR_HH
    \n-
    7
    \n-
    8#include <cmath>
    \n-
    9#include <iostream>
    \n-
    10#include <tuple>
    \n-
    11
    \n-
    12#include <dune/common/dotproduct.hh>
    \n-
    13#include <dune/common/ftraits.hh>
    \n-
    14#include <dune/common/hybridutilities.hh>
    \n-
    15#include <dune/common/typetraits.hh>
    \n-
    16#include <dune/common/std/type_traits.hh>
    \n+
    3#pragma once
    \n+
    4
    \n+
    5#if HAVE_SUITESPARSE_CHOLMOD
    \n+
    6
    \n+
    7#include <dune/common/fmatrix.hh>
    \n+
    8#include <dune/common/fvector.hh>
    \n+\n+
    10#include <dune/istl/bvector.hh>
    \n+
    11#include<dune/istl/solver.hh>
    \n+\n+
    13#include <dune/istl/foreach.hh>
    \n+
    14
    \n+
    15#include <vector>
    \n+
    16#include <memory>
    \n
    17
    \n-
    18#include "istlexception.hh"
    \n+
    18#include <cholmod.h>
    \n
    19
    \n-
    20// forward declaration
    \n-
    21namespace Dune {
    \n-
    22 template < typename... Args >
    \n-
    23 class MultiTypeBlockVector;
    \n-
    24}
    \n-
    25
    \n-
    26#include "gsetc.hh"
    \n-
    27
    \n-
    28namespace Dune {
    \n-
    29
    \n-
    41 template <typename... Args>
    \n-
    \n-
    42 struct FieldTraits< MultiTypeBlockVector<Args...> >
    \n+
    20namespace Dune {
    \n+
    21
    \n+
    22namespace Impl{
    \n+
    23
    \n+
    32 struct NoIgnore
    \n+
    33 {
    \n+
    34 const NoIgnore& operator[](std::size_t) const { return *this; }
    \n+
    35 explicit operator bool() const { return false; }
    \n+
    36 static constexpr std::size_t size() { return 0; }
    \n+
    37
    \n+
    38 };
    \n+
    39
    \n+
    40
    \n+
    41 template<class BlockedVector, class FlatVector>
    \n+
    42 void copyToFlatVector(const BlockedVector& blockedVector, FlatVector& flatVector)
    \n
    43 {
    \n-
    44 using field_type = typename MultiTypeBlockVector<Args...>::field_type;
    \n-
    45 using real_type = typename FieldTraits<field_type>::real_type;
    \n-
    46 };
    \n-
    \n-
    56 template < typename... Args >
    \n-
    \n-\n-
    58 : public std::tuple<Args...>
    \n-
    59 {
    \n-
    61 typedef std::tuple<Args...> TupleType;
    \n-
    62 public:
    \n-
    63
    \n-
    65 using size_type = std::size_t;
    \n-
    66
    \n-
    70 using TupleType::TupleType;
    \n+
    44 // traverse the vector once just to compute the size
    \n+
    45 std::size_t len = flatVectorForEach(blockedVector, [&](auto&&, auto...){});
    \n+
    46 flatVector.resize(len);
    \n+
    47
    \n+
    48 flatVectorForEach(blockedVector, [&](auto&& entry, auto offset){
    \n+
    49 flatVector[offset] = entry;
    \n+
    50 });
    \n+
    51 }
    \n+
    52
    \n+
    53 // special (dummy) case for NoIgnore
    \n+
    54 template<class FlatVector>
    \n+
    55 void copyToFlatVector(const NoIgnore&, FlatVector&)
    \n+
    56 {
    \n+
    57 // just do nothing
    \n+
    58 return;
    \n+
    59 }
    \n+
    60
    \n+
    61 template<class FlatVector, class BlockedVector>
    \n+
    62 void copyToBlockedVector(const FlatVector& flatVector, BlockedVector& blockedVector)
    \n+
    63 {
    \n+
    64 flatVectorForEach(blockedVector, [&](auto& entry, auto offset){
    \n+
    65 entry = flatVector[offset];
    \n+
    66 });
    \n+
    67 }
    \n+
    68
    \n+
    69
    \n+
    70} //namespace Impl
    \n
    71
    \n-
    75 typedef MultiTypeBlockVector<Args...> type;
    \n-
    76
    \n-
    82 using field_type = Std::detected_t<std::common_type_t, typename FieldTraits< std::decay_t<Args> >::field_type...>;
    \n-
    83
    \n-
    84 // make sure that we have an std::common_type: using an assertion produces a more readable error message
    \n-
    85 // than a compiler template instantiation error
    \n-
    86 static_assert ( sizeof...(Args) == 0 or not std::is_same_v<field_type, Std::nonesuch>,
    \n-
    87 "No std::common_type implemented for the given field_types of the Args. Please provide an implementation and check that a FieldTraits class is present for your type.");
    \n-
    88
    \n-
    89
    \n-
    \n-
    95 static constexpr size_type size()
    \n-
    96 {
    \n-
    97 return sizeof...(Args);
    \n-
    98 }
    \n-
    \n-
    99
    \n-
    \n-
    102 static constexpr size_type N()
    \n-
    103 {
    \n-
    104 return sizeof...(Args);
    \n-
    105 }
    \n-
    \n+
    76template<class Vector>
    \n+
    77class Cholmod : public InverseOperator<Vector, Vector>
    \n+
    78{
    \n+
    79public:
    \n+
    80
    \n+
    86 Cholmod()
    \n+
    87 {
    \n+
    88 cholmod_start(&c_);
    \n+
    89 }
    \n+
    90
    \n+
    96 ~Cholmod()
    \n+
    97 {
    \n+
    98 if (L_)
    \n+
    99 cholmod_free_factor(&L_, &c_);
    \n+
    100 cholmod_finish(&c_);
    \n+
    101 }
    \n+
    102
    \n+
    103 // forbid copying to avoid freeing memory twice
    \n+
    104 Cholmod(const Cholmod&) = delete;
    \n+
    105 Cholmod& operator=(const Cholmod&) = delete;
    \n
    106
    \n-
    113 [[deprecated("Use method 'N' instead")]]
    \n-
    \n-
    114 int count() const
    \n-
    115 {
    \n-
    116 return sizeof...(Args);
    \n-
    117 }
    \n-
    \n-
    118
    \n-
    \n-\n-
    121 {
    \n-
    122 size_type result = 0;
    \n-
    123 Hybrid::forEach(std::make_index_sequence<N()>{},
    \n-
    124 [&](auto i){result += std::get<i>(*this).dim();});
    \n-
    125
    \n-
    126 return result;
    \n-
    127 }
    \n-
    \n-
    128
    \n-
    147 template< size_type index >
    \n-
    148 typename std::tuple_element<index,TupleType>::type&
    \n-
    \n-
    149 operator[] ([[maybe_unused]] const std::integral_constant< size_type, index > indexVariable)
    \n-
    150 {
    \n-
    151 return std::get<index>(*this);
    \n-
    152 }
    \n-
    \n-
    153
    \n-
    159 template< size_type index >
    \n-
    160 const typename std::tuple_element<index,TupleType>::type&
    \n-
    \n-
    161 operator[] ([[maybe_unused]] const std::integral_constant< size_type, index > indexVariable) const
    \n-
    162 {
    \n-
    163 return std::get<index>(*this);
    \n-
    164 }
    \n-
    \n+
    107
    \n+
    110 void apply (Vector& x, Vector& b, [[maybe_unused]] double reduction, InverseOperatorResult& res)
    \n+
    111 {
    \n+
    112 apply(x,b,res);
    \n+
    113 }
    \n+
    114
    \n+
    120 void apply(Vector& x, Vector& b, InverseOperatorResult& res)
    \n+
    121 {
    \n+
    122 // do nothing if N=0
    \n+
    123 if ( nIsZero_ )
    \n+
    124 {
    \n+
    125 return;
    \n+
    126 }
    \n+
    127
    \n+
    128 if (x.size() != b.size())
    \n+
    129 DUNE_THROW(Exception, "Error in apply(): sizes of x and b do not match!");
    \n+
    130
    \n+
    131 // cast to double array
    \n+
    132 auto b2 = std::make_unique<double[]>(L_->n);
    \n+
    133 auto x2 = std::make_unique<double[]>(L_->n);
    \n+
    134
    \n+
    135 // copy to cholmod
    \n+
    136 auto bp = b2.get();
    \n+
    137
    \n+
    138 flatVectorForEach(b, [&](auto&& entry, auto&& flatIndex){
    \n+
    139 if ( subIndices_.empty() )
    \n+
    140 bp[ flatIndex ] = entry;
    \n+
    141 else
    \n+
    142 if( subIndices_[ flatIndex ] != std::numeric_limits<std::size_t>::max() )
    \n+
    143 bp[ subIndices_[ flatIndex ] ] = entry;
    \n+
    144 });
    \n+
    145
    \n+
    146 // create a cholmod dense object
    \n+
    147 auto b3 = make_cholmod_dense(cholmod_allocate_dense(L_->n, 1, L_->n, CHOLMOD_REAL, &c_), &c_);
    \n+
    148 // cast because void-ptr
    \n+
    149 auto b4 = static_cast<double*>(b3->x);
    \n+
    150 std::copy(b2.get(), b2.get() + L_->n, b4);
    \n+
    151
    \n+
    152 // solve for a cholmod x object
    \n+
    153 auto x3 = make_cholmod_dense(cholmod_solve(CHOLMOD_A, L_, b3.get(), &c_), &c_);
    \n+
    154 // cast because void-ptr
    \n+
    155 auto xp = static_cast<double*>(x3->x);
    \n+
    156
    \n+
    157 // copy into x
    \n+
    158 flatVectorForEach(x, [&](auto&& entry, auto&& flatIndex){
    \n+
    159 if ( subIndices_.empty() )
    \n+
    160 entry = xp[ flatIndex ];
    \n+
    161 else
    \n+
    162 if( subIndices_[ flatIndex ] != std::numeric_limits<std::size_t>::max() )
    \n+
    163 entry = xp[ subIndices_[ flatIndex ] ];
    \n+
    164 });
    \n
    165
    \n-
    168 template<typename T>
    \n-
    \n-
    169 void operator= (const T& newval) {
    \n-
    170 Dune::Hybrid::forEach(*this, [&](auto&& entry) {
    \n-
    171 entry = newval;
    \n-
    172 });
    \n-
    173 }
    \n-
    \n-
    174
    \n-
    \n-
    178 void operator+= (const type& newv) {
    \n-
    179 using namespace Dune::Hybrid;
    \n-
    180 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {
    \n-
    181 (*this)[i] += newv[i];
    \n-
    182 });
    \n-
    183 }
    \n-
    \n-
    184
    \n-
    \n-
    188 void operator-= (const type& newv) {
    \n-
    189 using namespace Dune::Hybrid;
    \n-
    190 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {
    \n-
    191 (*this)[i] -= newv[i];
    \n-
    192 });
    \n-
    193 }
    \n-
    \n-
    194
    \n-
    196 template<class T,
    \n-
    197 std::enable_if_t< IsNumber<T>::value, int> = 0>
    \n-
    \n-
    198 void operator*= (const T& w) {
    \n-
    199 Hybrid::forEach(*this, [&](auto&& entry) {
    \n-
    200 entry *= w;
    \n-
    201 });
    \n-
    202 }
    \n-
    \n-
    203
    \n-
    205 template<class T,
    \n-
    206 std::enable_if_t< IsNumber<T>::value, int> = 0>
    \n-
    \n-
    207 void operator/= (const T& w) {
    \n-
    208 Hybrid::forEach(*this, [&](auto&& entry) {
    \n-
    209 entry /= w;
    \n-
    210 });
    \n-
    211 }
    \n-
    \n+
    166 // statistics for a direct solver
    \n+
    167 res.iterations = 1;
    \n+
    168 res.converged = true;
    \n+
    169 }
    \n+
    170
    \n+
    171
    \n+
    177 template<class Matrix>
    \n+
    178 void setMatrix(const Matrix& matrix)
    \n+
    179 {
    \n+
    180 const Impl::NoIgnore* noIgnore = nullptr;
    \n+
    181 setMatrix(matrix, noIgnore);
    \n+
    182 }
    \n+
    183
    \n+
    198 template<class Matrix, class Ignore>
    \n+
    199 void setMatrix(const Matrix& matrix, const Ignore* ignore)
    \n+
    200 {
    \n+
    201 // count the number of entries and diagonal entries
    \n+
    202 int nonZeros = 0;
    \n+
    203 int numberOfIgnoredDofs = 0;
    \n+
    204
    \n+
    205
    \n+
    206 auto [flatRows,flatCols] = flatMatrixForEach( matrix, [&](auto&& /*entry*/, auto&& flatRowIndex, auto&& flatColIndex){
    \n+
    207 if( flatRowIndex <= flatColIndex )
    \n+
    208 nonZeros++;
    \n+
    209 });
    \n+
    210
    \n+
    211 std::vector<bool> flatIgnore;
    \n
    212
    \n-
    \n-
    213 field_type operator* (const type& newv) const {
    \n-
    214 using namespace Dune::Hybrid;
    \n-
    215 return accumulate(integralRange(Hybrid::size(*this)), field_type(0), [&](auto&& a, auto&& i) {
    \n-
    216 return a + (*this)[i]*newv[i];
    \n-
    217 });
    \n-
    218 }
    \n-
    \n-
    219
    \n-
    \n-
    220 field_type dot (const type& newv) const {
    \n-
    221 using namespace Dune::Hybrid;
    \n-
    222 return accumulate(integralRange(Hybrid::size(*this)), field_type(0), [&](auto&& a, auto&& i) {
    \n-
    223 return a + (*this)[i].dot(newv[i]);
    \n-
    224 });
    \n-
    225 }
    \n-
    \n-
    226
    \n-
    \n-
    229 auto one_norm() const {
    \n-
    230 using namespace Dune::Hybrid;
    \n-
    231 return accumulate(*this, typename FieldTraits<field_type>::real_type(0), [&](auto&& a, auto&& entry) {
    \n-
    232 return a + entry.one_norm();
    \n-
    233 });
    \n-
    234 }
    \n-
    \n-
    235
    \n-
    \n-
    238 auto one_norm_real() const {
    \n-
    239 using namespace Dune::Hybrid;
    \n-
    240 return accumulate(*this, typename FieldTraits<field_type>::real_type(0), [&](auto&& a, auto&& entry) {
    \n-
    241 return a + entry.one_norm_real();
    \n-
    242 });
    \n-
    243 }
    \n-
    \n-
    244
    \n-
    \n-
    247 typename FieldTraits<field_type>::real_type two_norm2() const {
    \n-
    248 using namespace Dune::Hybrid;
    \n-
    249 return accumulate(*this, typename FieldTraits<field_type>::real_type(0), [&](auto&& a, auto&& entry) {
    \n-
    250 return a + entry.two_norm2();
    \n-
    251 });
    \n-
    252 }
    \n-
    \n+
    213 if ( ignore )
    \n+
    214 {
    \n+
    215 Impl::copyToFlatVector(*ignore,flatIgnore);
    \n+
    216 numberOfIgnoredDofs = std::count(flatIgnore.begin(),flatIgnore.end(),true);
    \n+
    217 }
    \n+
    218
    \n+
    219 // Total number of rows
    \n+
    220 int N = flatRows - numberOfIgnoredDofs;
    \n+
    221
    \n+
    222 nIsZero_ = (N <= 0);
    \n+
    223
    \n+
    224 if ( nIsZero_ )
    \n+
    225 {
    \n+
    226 return;
    \n+
    227 }
    \n+
    228
    \n+
    229 /*
    \n+
    230 * CHOLMOD uses compressed-column sparse matrices, but for symmetric
    \n+
    231 * matrices this is the same as the compressed-row sparse matrix used
    \n+
    232 * by DUNE. So we can just store M\u1d40 instead of M (as M = M\u1d40).
    \n+
    233 */
    \n+
    234 const auto deleter = [c = &this->c_](auto* p) {
    \n+
    235 cholmod_free_sparse(&p, c);
    \n+
    236 };
    \n+
    237 auto M = std::unique_ptr<cholmod_sparse, decltype(deleter)>(
    \n+
    238 cholmod_allocate_sparse(N, // # rows
    \n+
    239 N, // # cols
    \n+
    240 nonZeros, // # of nonzeroes
    \n+
    241 1, // indices are sorted ( 1 = true)
    \n+
    242 1, // matrix is "packed" ( 1 = true)
    \n+
    243 -1, // stype of matrix ( -1 = consider the lower part only )
    \n+
    244 CHOLMOD_REAL, // xtype of matrix ( CHOLMOD_REAL = single array, no complex numbers)
    \n+
    245 &c_ // cholmod_common ptr
    \n+
    246 ), deleter);
    \n+
    247
    \n+
    248 // copy the data of BCRS matrix to Cholmod Sparse matrix
    \n+
    249 int* Ap = static_cast<int*>(M->p);
    \n+
    250 int* Ai = static_cast<int*>(M->i);
    \n+
    251 double* Ax = static_cast<double*>(M->x);
    \n+
    252
    \n
    253
    \n-
    256 typename FieldTraits<field_type>::real_type two_norm() const {return sqrt(this->two_norm2());}
    \n-
    257
    \n-
    \n-
    260 typename FieldTraits<field_type>::real_type infinity_norm() const
    \n-
    261 {
    \n-
    262 using namespace Dune::Hybrid;
    \n-
    263 using std::max;
    \n-
    264 using real_type = typename FieldTraits<field_type>::real_type;
    \n-
    265
    \n-
    266 real_type result = 0.0;
    \n-
    267 // Compute max norm tracking appearing nan values
    \n-
    268 // if the field type supports nan.
    \n-
    269 if constexpr (HasNaN<field_type>()) {
    \n-
    270 // This variable will preserve any nan value
    \n-
    271 real_type nanTracker = 1.0;
    \n-
    272 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    273 forEach(*this, [&](auto&& entry) {
    \n-
    274 real_type entryNorm = entry.infinity_norm();
    \n-
    275 result = max(entryNorm, result);
    \n-
    276 nanTracker += entryNorm;
    \n-
    277 });
    \n-
    278 // Incorporate possible nan value into result
    \n-
    279 result *= (nanTracker / nanTracker);
    \n-
    280 } else {
    \n-
    281 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    282 forEach(*this, [&](auto&& entry) {
    \n-
    283 result = max(entry.infinity_norm(), result);
    \n-
    284 });
    \n-
    285 }
    \n-
    286 return result;
    \n-
    287 }
    \n-
    \n-
    288
    \n-
    \n-
    291 typename FieldTraits<field_type>::real_type infinity_norm_real() const
    \n-
    292 {
    \n-
    293 using namespace Dune::Hybrid;
    \n-
    294 using std::max;
    \n-
    295 using real_type = typename FieldTraits<field_type>::real_type;
    \n-
    296
    \n-
    297 real_type result = 0.0;
    \n-
    298 // Compute max norm tracking appearing nan values
    \n-
    299 // if the field type supports nan.
    \n-
    300 if constexpr (HasNaN<field_type>()) {
    \n-
    301 // This variable will preserve any nan value
    \n-
    302 real_type nanTracker = 1.0;
    \n-
    303 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    304 forEach(*this, [&](auto&& entry) {
    \n-
    305 real_type entryNorm = entry.infinity_norm_real();
    \n-
    306 result = max(entryNorm, result);
    \n-
    307 nanTracker += entryNorm;
    \n-
    308 });
    \n-
    309 // Incorporate possible nan value into result
    \n-
    310 result *= (nanTracker / nanTracker);
    \n-
    311 } else {
    \n-
    312 using namespace Dune::Hybrid; // needed for icc, see issue #31
    \n-
    313 forEach(*this, [&](auto&& entry) {
    \n-
    314 result = max(entry.infinity_norm_real(), result);
    \n-
    315 });
    \n-
    316 }
    \n-
    317 return result;
    \n-
    318 }
    \n-
    \n+
    254 if ( ignore )
    \n+
    255 {
    \n+
    256 // init the mapping
    \n+
    257 subIndices_.resize(flatRows,std::numeric_limits<std::size_t>::max());
    \n+
    258
    \n+
    259 std::size_t subIndexCounter = 0;
    \n+
    260
    \n+
    261 for ( std::size_t i=0; i<flatRows; i++ )
    \n+
    262 {
    \n+
    263 if ( not flatIgnore[ i ] )
    \n+
    264 {
    \n+
    265 subIndices_[ i ] = subIndexCounter++;
    \n+
    266 }
    \n+
    267 }
    \n+
    268 }
    \n+
    269
    \n+
    270 // at first, we need to compute the row starts "Ap"
    \n+
    271 // therefore, we count all (not ignored) entries in each row and in the end we accumulate everything
    \n+
    272 flatMatrixForEach(matrix, [&](auto&& /*entry*/, auto&& flatRowIndex, auto&& flatColIndex){
    \n+
    273
    \n+
    274 // stop if ignored
    \n+
    275 if ( ignore and ( flatIgnore[flatRowIndex] or flatIgnore[flatColIndex] ) )
    \n+
    276 return;
    \n+
    277
    \n+
    278 // stop if in lower half
    \n+
    279 if ( flatRowIndex > flatColIndex )
    \n+
    280 return;
    \n+
    281
    \n+
    282 // ok, count the entry
    \n+
    283 auto idx = ignore ? subIndices_[flatRowIndex] : flatRowIndex;
    \n+
    284 Ap[idx+1]++;
    \n+
    285
    \n+
    286 });
    \n+
    287
    \n+
    288 // now accumulate
    \n+
    289 Ap[0] = 0;
    \n+
    290 for ( int i=0; i<N; i++ )
    \n+
    291 {
    \n+
    292 Ap[i+1] += Ap[i];
    \n+
    293 }
    \n+
    294
    \n+
    295 // we need a compressed row position counter
    \n+
    296 std::vector<std::size_t> rowPosition(N,0);
    \n+
    297
    \n+
    298 // now we can set the entries
    \n+
    299 flatMatrixForEach(matrix, [&](auto&& entry, auto&& flatRowIndex, auto&& flatColIndex){
    \n+
    300
    \n+
    301 // stop if ignored
    \n+
    302 if ( ignore and ( flatIgnore[flatRowIndex] or flatIgnore[flatColIndex] ) )
    \n+
    303 return;
    \n+
    304
    \n+
    305 // stop if in lower half
    \n+
    306 if ( flatRowIndex > flatColIndex )
    \n+
    307 return;
    \n+
    308
    \n+
    309 // ok, set the entry
    \n+
    310 auto rowIdx = ignore ? subIndices_[flatRowIndex] : flatRowIndex;
    \n+
    311 auto colIdx = ignore ? subIndices_[flatColIndex] : flatColIndex;
    \n+
    312 auto rowStart = Ap[rowIdx];
    \n+
    313 auto rowPos = rowPosition[rowIdx];
    \n+
    314 Ai[ rowStart + rowPos ] = colIdx;
    \n+
    315 Ax[ rowStart + rowPos ] = entry;
    \n+
    316 rowPosition[rowIdx]++;
    \n+
    317
    \n+
    318 });
    \n
    319
    \n-
    324 template<typename Ta>
    \n-
    \n-
    325 void axpy (const Ta& a, const type& y) {
    \n-
    326 using namespace Dune::Hybrid;
    \n-
    327 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {
    \n-
    328 (*this)[i].axpy(a, y[i]);
    \n-
    329 });
    \n-
    330 }
    \n-
    \n+
    320 // Now analyse the pattern and optimal row order
    \n+
    321 L_ = cholmod_analyze(M.get(), &c_);
    \n+
    322
    \n+
    323 // Do the factorization (this may take some time)
    \n+
    324 cholmod_factorize(M.get(), L_, &c_);
    \n+
    325 }
    \n+
    326
    \n+
    327 virtual SolverCategory::Category category() const
    \n+
    328 {
    \n+
    329 return SolverCategory::Category::sequential;
    \n+
    330 }
    \n
    331
    \n-
    332 };
    \n-
    \n-
    333
    \n-
    334
    \n-
    335
    \n-
    338 template <typename... Args>
    \n-
    \n-
    339 std::ostream& operator<< (std::ostream& s, const MultiTypeBlockVector<Args...>& v) {
    \n-
    340 using namespace Dune::Hybrid;
    \n-
    341 forEach(integralRange(Dune::Hybrid::size(v)), [&](auto&& i) {
    \n-
    342 s << "\\t(" << i << "):\\n" << v[i] << "\\n";
    \n-
    343 });
    \n-
    344 return s;
    \n-
    345 }
    \n-
    \n-
    346
    \n-
    347} // end namespace Dune
    \n-
    348
    \n-
    349namespace std
    \n-
    350{
    \n-
    355 template <size_t i, typename... Args>
    \n-
    \n-
    356 struct tuple_element<i,Dune::MultiTypeBlockVector<Args...> >
    \n-
    357 {
    \n-
    358 using type = typename std::tuple_element<i, std::tuple<Args...> >::type;
    \n-
    359 };
    \n-
    \n-
    360}
    \n-
    361
    \n-
    362#endif
    \n-
    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
    \n-\n-
    void operator=(const T &newval)
    Assignment operator.
    Definition multitypeblockvector.hh:169
    \n-
    std::size_t size_type
    Type used for vector sizes.
    Definition multitypeblockvector.hh:65
    \n-
    typename FieldTraits< field_type >::real_type real_type
    Definition multitypeblockvector.hh:45
    \n-
    int count() const
    Definition multitypeblockvector.hh:114
    \n-
    static constexpr size_type N()
    Number of elements.
    Definition multitypeblockvector.hh:102
    \n-
    Std::detected_t< std::common_type_t, typename FieldTraits< std::decay_t< Args > >::field_type... > field_type
    The type used for scalars.
    Definition multitypeblockvector.hh:82
    \n-
    static constexpr size_type size()
    Return the number of non-zero vector entries.
    Definition multitypeblockvector.hh:95
    \n-
    std::tuple_element< index, TupleType >::type & operator[](const std::integral_constant< size_type, index > indexVariable)
    Random-access operator.
    Definition multitypeblockvector.hh:149
    \n-
    FieldTraits< field_type >::real_type two_norm() const
    Compute the Euclidean norm.
    Definition multitypeblockvector.hh:256
    \n-
    typename MultiTypeBlockVector< Args... >::field_type field_type
    Definition multitypeblockvector.hh:44
    \n-
    size_type dim() const
    Number of scalar elements.
    Definition multitypeblockvector.hh:120
    \n-
    field_type dot(const type &newv) const
    Definition multitypeblockvector.hh:220
    \n-
    void operator*=(const T &w)
    Multiplication with a scalar.
    Definition multitypeblockvector.hh:198
    \n-
    void axpy(const Ta &a, const type &y)
    Axpy operation on this vector (*this += a * y)
    Definition multitypeblockvector.hh:325
    \n-
    void operator/=(const T &w)
    Division by a scalar.
    Definition multitypeblockvector.hh:207
    \n-
    MultiTypeBlockVector< Args... > type
    Definition multitypeblockvector.hh:75
    \n-
    FieldTraits< field_type >::real_type infinity_norm_real() const
    Compute the simplified maximum norm (uses 1-norm for complex values)
    Definition multitypeblockvector.hh:291
    \n-
    auto one_norm() const
    Compute the 1-norm.
    Definition multitypeblockvector.hh:229
    \n-
    void operator-=(const type &newv)
    Definition multitypeblockvector.hh:188
    \n-
    field_type operator*(const type &newv) const
    Definition multitypeblockvector.hh:213
    \n-
    void operator+=(const type &newv)
    Definition multitypeblockvector.hh:178
    \n-
    typename std::tuple_element< i, std::tuple< Args... > >::type type
    Definition multitypeblockvector.hh:358
    \n-
    FieldTraits< field_type >::real_type infinity_norm() const
    Compute the maximum norm.
    Definition multitypeblockvector.hh:260
    \n-
    auto one_norm_real() const
    Compute the simplified 1-norm (uses 1-norm also for complex values)
    Definition multitypeblockvector.hh:238
    \n-
    FieldTraits< field_type >::real_type two_norm2() const
    Compute the squared Euclidean norm.
    Definition multitypeblockvector.hh:247
    \n-
    STL namespace.
    \n+
    337 cholmod_common& cholmodCommonObject()
    \n+
    338 {
    \n+
    339 return c_;
    \n+
    340 }
    \n+
    341
    \n+
    347 cholmod_factor& cholmodFactor()
    \n+
    348 {
    \n+
    349 return *L_;
    \n+
    350 }
    \n+
    351
    \n+
    357 const cholmod_factor& cholmodFactor() const
    \n+
    358 {
    \n+
    359 return *L_;
    \n+
    360 }
    \n+
    361private:
    \n+
    362
    \n+
    363 // create a std::unique_ptr to a cholmod_dense object with a deleter
    \n+
    364 // that calls the appropriate cholmod cleanup routine
    \n+
    365 auto make_cholmod_dense(cholmod_dense* x, cholmod_common* c)
    \n+
    366 {
    \n+
    367 const auto deleter = [c](auto* p) {
    \n+
    368 cholmod_free_dense(&p, c);
    \n+
    369 };
    \n+
    370 return std::unique_ptr<cholmod_dense, decltype(deleter)>(x, deleter);
    \n+
    371 }
    \n+
    372
    \n+
    373 cholmod_common c_;
    \n+
    374 cholmod_factor* L_ = nullptr;
    \n+
    375
    \n+
    376 // indicator for a 0x0 problem (due to ignore dof's)
    \n+
    377 bool nIsZero_ = false;
    \n+
    378
    \n+
    379 // vector mapping all indices in flat order to the not ignored indices
    \n+
    380 std::vector<std::size_t> subIndices_;
    \n+
    381};
    \n+
    382
    \n+
    383 struct CholmodCreator{
    \n+
    384 template<class F> struct isValidBlock : std::false_type{};
    \n+
    385 template<int k> struct isValidBlock<FieldVector<double,k>> : std::true_type{};
    \n+
    386 template<int k> struct isValidBlock<FieldVector<float,k>> : std::true_type{};
    \n+
    387
    \n+
    388 template<class TL, typename M>
    \n+
    389 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
    \n+
    390 typename Dune::TypeListElement<2, TL>::type>>
    \n+
    391 operator()(TL /*tl*/, const M& mat, const Dune::ParameterTree& /*config*/,
    \n+
    392 std::enable_if_t<isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
    \n+
    393 {
    \n+
    394 using D = typename Dune::TypeListElement<1, TL>::type;
    \n+
    395 auto solver = std::make_shared<Dune::Cholmod<D>>();
    \n+
    396 solver->setMatrix(mat);
    \n+
    397 return solver;
    \n+
    398 }
    \n+
    399
    \n+
    400 // second version with SFINAE to validate the template parameters of Cholmod
    \n+
    401 template<typename TL, typename M>
    \n+
    402 std::shared_ptr<Dune::InverseOperator<typename Dune::TypeListElement<1, TL>::type,
    \n+
    403 typename Dune::TypeListElement<2, TL>::type>>
    \n+
    404 operator() (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /*config*/,
    \n+
    405 std::enable_if_t<!isValidBlock<typename Dune::TypeListElement<1, TL>::type::block_type>::value,int> = 0) const
    \n+
    406 {
    \n+
    407 DUNE_THROW(UnsupportedType, "Unsupported Type in Cholmod");
    \n+
    408 }
    \n+
    409 };
    \n+
    410 DUNE_REGISTER_DIRECT_SOLVER("cholmod", Dune::CholmodCreator());
    \n+
    411
    \n+
    412} /* namespace Dune */
    \n+
    413
    \n+
    414#endif // HAVE_SUITESPARSE_CHOLMOD
    \n+
    #define DUNE_REGISTER_DIRECT_SOLVER(name,...)
    Definition solverregistry.hh:13
    \n+
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+\n+
    Implementation of the BCRSMatrix class.
    \n+\n+
    Define general, extensible interface for inverse operators.
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n
    Definition allocator.hh:11
    \n-
    std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)
    Send BlockVector to an output stream.
    Definition bvector.hh:590
    \n-
    A Vector class to support different block types.
    Definition multitypeblockvector.hh:59
    \n+
    std::pair< std::size_t, std::size_t > flatMatrixForEach(Matrix &&matrix, F &&f, std::size_t rowOffset=0, std::size_t colOffset=0)
    Traverse a blocked matrix and call a functor at each scalar entry.
    Definition foreach.hh:132
    \n+
    std::size_t flatVectorForEach(Vector &&vector, F &&f, std::size_t offset=0)
    Traverse a blocked vector and call a functor at each scalar entry.
    Definition foreach.hh:95
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-us-ascii\n+utf-8\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,393 +1,406 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-multitypeblockvector.hh\n+cholmod.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n-4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_MULTITYPEBLOCKVECTOR_HH\n-6#define DUNE_ISTL_MULTITYPEBLOCKVECTOR_HH\n-7\n-8#include \n-9#include \n-10#include \n-11\n-12#include \n-13#include \n-14#include \n-15#include \n-16#include \n+3#pragma once\n+4\n+5#if HAVE_SUITESPARSE_CHOLMOD\n+6\n+7#include \n+8#include \n+9#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n+11#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh>\n+12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n+13#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bf_\bo_\br_\be_\ba_\bc_\bh_\b._\bh_\bh>\n+14\n+15#include \n+16#include \n 17\n-18#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+18#include \n 19\n-20// forward declaration\n-21namespace _\bD_\bu_\bn_\be {\n-22 template < typename... Args >\n-23 class MultiTypeBlockVector;\n-24}\n-25\n-26#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n-27\n-28namespace _\bD_\bu_\bn_\be {\n-29\n-41 template \n-_\b4_\b2 struct FieldTraits< _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br >\n+20namespace _\bD_\bu_\bn_\be {\n+21\n+22namespace Impl{\n+23\n+32 struct NoIgnore\n+33 {\n+34 const NoIgnore& operator[](std::size_t) const { return *this; }\n+35 explicit operator bool() const { return false; }\n+36 static constexpr std::size_t size() { return 0; }\n+37\n+38 };\n+39\n+40\n+41 template\n+42 void copyToFlatVector(const BlockedVector& blockedVector, FlatVector&\n+flatVector)\n 43 {\n-_\b4_\b4 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br::field_type;\n-_\b4_\b5 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n-46 };\n-56 template < typename... Args >\n-_\b5_\b7 class _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-58 : public std::tuple\n-59 {\n-61 typedef std::tuple TupleType;\n-62 public:\n-63\n-_\b6_\b5 using _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be = std::size_t;\n-66\n-70 using TupleType::TupleType;\n+44 // traverse the vector once just to compute the size\n+45 std::size_t len = _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(blockedVector, [&](auto&&, auto...){});\n+46 flatVector.resize(len);\n+47\n+48 _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(blockedVector, [&](auto&& entry, auto offset){\n+49 flatVector[offset] = entry;\n+50 });\n+51 }\n+52\n+53 // special (dummy) case for NoIgnore\n+54 template\n+55 void copyToFlatVector(const NoIgnore&, FlatVector&)\n+56 {\n+57 // just do nothing\n+58 return;\n+59 }\n+60\n+61 template\n+62 void copyToBlockedVector(const FlatVector& flatVector, BlockedVector&\n+blockedVector)\n+63 {\n+64 _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(blockedVector, [&](auto& entry, auto offset){\n+65 entry = flatVector[offset];\n+66 });\n+67 }\n+68\n+69\n+70} //namespace Impl\n 71\n-_\b7_\b5 typedef _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br _\bt_\by_\bp_\be;\n-76\n-_\b8_\b2 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = Std::detected_t >_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be...>;\n-83\n-84 // make sure that we have an std::common_type: using an assertion produces a\n-more readable error message\n-85 // than a compiler template instantiation error\n-86 static_assert ( sizeof...(Args) == 0 or not std::is_same_v,\n-87 \"No std::common_type implemented for the given field_types of the Args.\n-Please provide an implementation and check that a FieldTraits class is present\n-for your type.\");\n-88\n-89\n-_\b9_\b5 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be()\n-96 {\n-97 return sizeof...(Args);\n-98 }\n-99\n-_\b1_\b0_\b2 static constexpr _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN()\n-103 {\n-104 return sizeof...(Args);\n-105 }\n+76template\n+77class Cholmod : public InverseOperator\n+78{\n+79public:\n+80\n+86 Cholmod()\n+87 {\n+88 cholmod_start(&c_);\n+89 }\n+90\n+96 ~Cholmod()\n+97 {\n+98 if (L_)\n+99 cholmod_free_factor(&L_, &c_);\n+100 cholmod_finish(&c_);\n+101 }\n+102\n+103 // forbid copying to avoid freeing memory twice\n+104 Cholmod(const Cholmod&) = delete;\n+105 Cholmod& operator=(const Cholmod&) = delete;\n 106\n-113 [[deprecated(\"Use method 'N' instead\")]]\n-_\b1_\b1_\b4 int _\bc_\bo_\bu_\bn_\bt() const\n-115 {\n-116 return sizeof...(Args);\n-117 }\n-118\n-_\b1_\b2_\b0 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bd_\bi_\bm() const\n+107\n+110 void apply (Vector& x, Vector& b, [[maybe_unused]] double reduction,\n+InverseOperatorResult& res)\n+111 {\n+112 apply(x,b,res);\n+113 }\n+114\n+120 void apply(Vector& x, Vector& b, InverseOperatorResult& res)\n 121 {\n-122 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be result = 0;\n-123 Hybrid::forEach(std::make_index_sequence<_\bN()>{},\n-124 [&](auto i){result += std::get(*this).dim();});\n-125\n-126 return result;\n-127 }\n-128\n-147 template< size_type index >\n-148 typename std::tuple_element::type&\n-_\b1_\b4_\b9 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b ([[maybe_unused]] const std::integral_constant< size_type, index\n-> indexVariable)\n-150 {\n-151 return std::get(*this);\n-152 }\n-153\n-159 template< size_type index >\n-160 const typename std::tuple_element::type&\n-_\b1_\b6_\b1 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b ([[maybe_unused]] const std::integral_constant< size_type, index\n-> indexVariable) const\n-162 {\n-163 return std::get(*this);\n-164 }\n+122 // do nothing if N=0\n+123 if ( nIsZero_ )\n+124 {\n+125 return;\n+126 }\n+127\n+128 if (x.size() != b.size())\n+129 DUNE_THROW(Exception, \"Error in apply(): sizes of x and b do not match!\");\n+130\n+131 // cast to double array\n+132 auto b2 = std::make_unique(L_->n);\n+133 auto x2 = std::make_unique(L_->n);\n+134\n+135 // copy to cholmod\n+136 auto bp = b2.get();\n+137\n+138 _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(b, [&](auto&& entry, auto&& flatIndex){\n+139 if ( subIndices_.empty() )\n+140 bp[ flatIndex ] = entry;\n+141 else\n+142 if( subIndices_[ flatIndex ] != std::numeric_limits::max() )\n+143 bp[ subIndices_[ flatIndex ] ] = entry;\n+144 });\n+145\n+146 // create a cholmod dense object\n+147 auto b3 = make_cholmod_dense(cholmod_allocate_dense(L_->n, 1, L_->n,\n+CHOLMOD_REAL, &c_), &c_);\n+148 // cast because void-ptr\n+149 auto b4 = static_cast(b3->x);\n+150 std::copy(b2.get(), b2.get() + L_->n, b4);\n+151\n+152 // solve for a cholmod x object\n+153 auto x3 = make_cholmod_dense(cholmod_solve(CHOLMOD_A, L_, b3.get(), &c_),\n+&c_);\n+154 // cast because void-ptr\n+155 auto xp = static_cast(x3->x);\n+156\n+157 // copy into x\n+158 _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(x, [&](auto&& entry, auto&& flatIndex){\n+159 if ( subIndices_.empty() )\n+160 entry = xp[ flatIndex ];\n+161 else\n+162 if( subIndices_[ flatIndex ] != std::numeric_limits::max() )\n+163 entry = xp[ subIndices_[ flatIndex ] ];\n+164 });\n 165\n-168 template\n-_\b1_\b6_\b9 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const T& newval) {\n-170 Dune::Hybrid::forEach(*this, [&](auto&& entry) {\n-171 entry = newval;\n-172 });\n-173 }\n-174\n-_\b1_\b7_\b8 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bt_\by_\bp_\be& newv) {\n-179 using namespace Dune::Hybrid;\n-180 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {\n-181 (*this)[i] += newv[i];\n-182 });\n-183 }\n-184\n-_\b1_\b8_\b8 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bt_\by_\bp_\be& newv) {\n-189 using namespace Dune::Hybrid;\n-190 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {\n-191 (*this)[i] -= newv[i];\n-192 });\n-193 }\n-194\n-196 template::value, int> = 0>\n-_\b1_\b9_\b8 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=_\b (const T& w) {\n-199 Hybrid::forEach(*this, [&](auto&& entry) {\n-200 entry *= w;\n-201 });\n-202 }\n-203\n-205 template::value, int> = 0>\n-_\b2_\b0_\b7 void _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=_\b (const T& w) {\n-208 Hybrid::forEach(*this, [&](auto&& entry) {\n-209 entry /= w;\n-210 });\n-211 }\n+166 // statistics for a direct solver\n+167 res.iterations = 1;\n+168 res.converged = true;\n+169 }\n+170\n+171\n+177 template\n+178 void setMatrix(const Matrix& matrix)\n+179 {\n+180 const Impl::NoIgnore* noIgnore = nullptr;\n+181 setMatrix(matrix, noIgnore);\n+182 }\n+183\n+198 template\n+199 void setMatrix(const Matrix& matrix, const Ignore* ignore)\n+200 {\n+201 // count the number of entries and diagonal entries\n+202 int nonZeros = 0;\n+203 int numberOfIgnoredDofs = 0;\n+204\n+205\n+206 auto [flatRows,flatCols] = _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh( matrix, [&](auto&& /*entry*/,\n+auto&& flatRowIndex, auto&& flatColIndex){\n+207 if( flatRowIndex <= flatColIndex )\n+208 nonZeros++;\n+209 });\n+210\n+211 std::vector flatIgnore;\n 212\n-_\b2_\b1_\b3 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b (const _\bt_\by_\bp_\be& newv) const {\n-214 using namespace Dune::Hybrid;\n-215 return accumulate(integralRange(Hybrid::size(*this)), _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0), [&]\n-(auto&& a, auto&& i) {\n-216 return a + (*this)[i]*newv[i];\n-217 });\n-218 }\n-219\n-_\b2_\b2_\b0 _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bd_\bo_\bt (const _\bt_\by_\bp_\be& newv) const {\n-221 using namespace Dune::Hybrid;\n-222 return accumulate(integralRange(Hybrid::size(*this)), _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(0), [&]\n-(auto&& a, auto&& i) {\n-223 return a + (*this)[i].dot(newv[i]);\n-224 });\n-225 }\n-226\n-_\b2_\b2_\b9 auto _\bo_\bn_\be_\b__\bn_\bo_\br_\bm() const {\n-230 using namespace Dune::Hybrid;\n-231 return accumulate(*this, typename FieldTraits::real_type(0),\n-[&](auto&& a, auto&& entry) {\n-232 return a + entry.one_norm();\n-233 });\n-234 }\n-235\n-_\b2_\b3_\b8 auto _\bo_\bn_\be_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const {\n-239 using namespace Dune::Hybrid;\n-240 return accumulate(*this, typename FieldTraits::real_type(0),\n-[&](auto&& a, auto&& entry) {\n-241 return a + entry.one_norm_real();\n-242 });\n-243 }\n-244\n-_\b2_\b4_\b7 typename FieldTraits::real_type _\bt_\bw_\bo_\b__\bn_\bo_\br_\bm_\b2() const {\n-248 using namespace Dune::Hybrid;\n-249 return accumulate(*this, typename FieldTraits::real_type(0),\n-[&](auto&& a, auto&& entry) {\n-250 return a + entry.two_norm2();\n-251 });\n-252 }\n+213 if ( ignore )\n+214 {\n+215 Impl::copyToFlatVector(*ignore,flatIgnore);\n+216 numberOfIgnoredDofs = std::count(flatIgnore.begin(),flatIgnore.end(),true);\n+217 }\n+218\n+219 // Total number of rows\n+220 int N = flatRows - numberOfIgnoredDofs;\n+221\n+222 nIsZero_ = (N <= 0);\n+223\n+224 if ( nIsZero_ )\n+225 {\n+226 return;\n+227 }\n+228\n+229 /*\n+230 * CHOLMOD uses compressed-column sparse matrices, but for symmetric\n+231 * matrices this is the same as the compressed-row sparse matrix used\n+232 * by DUNE. So we can just store M\u00e1\u00b5\u0080 instead of M (as M = M\u00e1\u00b5\u0080).\n+233 */\n+234 const auto deleter = [c = &this->c_](auto* p) {\n+235 cholmod_free_sparse(&p, c);\n+236 };\n+237 auto M = std::unique_ptr(\n+238 cholmod_allocate_sparse(N, // # rows\n+239 N, // # cols\n+240 nonZeros, // # of nonzeroes\n+241 1, // indices are sorted ( 1 = true)\n+242 1, // matrix is \"packed\" ( 1 = true)\n+243 -1, // stype of matrix ( -1 = consider the lower part only )\n+244 CHOLMOD_REAL, // xtype of matrix ( CHOLMOD_REAL = single array, no complex\n+numbers)\n+245 &c_ // cholmod_common ptr\n+246 ), deleter);\n+247\n+248 // copy the data of BCRS matrix to Cholmod Sparse matrix\n+249 int* Ap = static_cast(M->p);\n+250 int* Ai = static_cast(M->i);\n+251 double* Ax = static_cast(M->x);\n+252\n 253\n-_\b2_\b5_\b6 typename FieldTraits::real_type _\bt_\bw_\bo_\b__\bn_\bo_\br_\bm() const {return sqrt\n-(this->_\bt_\bw_\bo_\b__\bn_\bo_\br_\bm_\b2());}\n-257\n-_\b2_\b6_\b0 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm() const\n-261 {\n-262 using namespace Dune::Hybrid;\n-263 using std::max;\n-264 using real_type = typename FieldTraits::real_type;\n-265\n-266 real_type result = 0.0;\n-267 // Compute max norm tracking appearing nan values\n-268 // if the field type supports nan.\n-269 if constexpr (HasNaN()) {\n-270 // This variable will preserve any nan value\n-271 real_type nanTracker = 1.0;\n-272 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-273 forEach(*this, [&](auto&& entry) {\n-274 real_type entryNorm = entry.infinity_norm();\n-275 result = max(entryNorm, result);\n-276 nanTracker += entryNorm;\n-277 });\n-278 // Incorporate possible nan value into result\n-279 result *= (nanTracker / nanTracker);\n-280 } else {\n-281 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-282 forEach(*this, [&](auto&& entry) {\n-283 result = max(entry.infinity_norm(), result);\n-284 });\n-285 }\n-286 return result;\n-287 }\n-288\n-_\b2_\b9_\b1 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl() const\n-292 {\n-293 using namespace Dune::Hybrid;\n-294 using std::max;\n-295 using real_type = typename FieldTraits::real_type;\n-296\n-297 real_type result = 0.0;\n-298 // Compute max norm tracking appearing nan values\n-299 // if the field type supports nan.\n-300 if constexpr (HasNaN()) {\n-301 // This variable will preserve any nan value\n-302 real_type nanTracker = 1.0;\n-303 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-304 forEach(*this, [&](auto&& entry) {\n-305 real_type entryNorm = entry.infinity_norm_real();\n-306 result = max(entryNorm, result);\n-307 nanTracker += entryNorm;\n-308 });\n-309 // Incorporate possible nan value into result\n-310 result *= (nanTracker / nanTracker);\n-311 } else {\n-312 using namespace Dune::Hybrid; // needed for icc, see issue #31\n-313 forEach(*this, [&](auto&& entry) {\n-314 result = max(entry.infinity_norm_real(), result);\n-315 });\n-316 }\n-317 return result;\n-318 }\n+254 if ( ignore )\n+255 {\n+256 // init the mapping\n+257 subIndices_.resize(flatRows,std::numeric_limits::max());\n+258\n+259 std::size_t subIndexCounter = 0;\n+260\n+261 for ( std::size_t i=0; i flatColIndex )\n+280 return;\n+281\n+282 // ok, count the entry\n+283 auto idx = ignore ? subIndices_[flatRowIndex] : flatRowIndex;\n+284 Ap[idx+1]++;\n+285\n+286 });\n+287\n+288 // now accumulate\n+289 Ap[0] = 0;\n+290 for ( int i=0; i rowPosition(N,0);\n+297\n+298 // now we can set the entries\n+299 _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh(matrix, [&](auto&& entry, auto&& flatRowIndex, auto&&\n+flatColIndex){\n+300\n+301 // stop if ignored\n+302 if ( ignore and ( flatIgnore[flatRowIndex] or flatIgnore[flatColIndex] ) )\n+303 return;\n+304\n+305 // stop if in lower half\n+306 if ( flatRowIndex > flatColIndex )\n+307 return;\n+308\n+309 // ok, set the entry\n+310 auto rowIdx = ignore ? subIndices_[flatRowIndex] : flatRowIndex;\n+311 auto colIdx = ignore ? subIndices_[flatColIndex] : flatColIndex;\n+312 auto rowStart = Ap[rowIdx];\n+313 auto rowPos = rowPosition[rowIdx];\n+314 Ai[ rowStart + rowPos ] = colIdx;\n+315 Ax[ rowStart + rowPos ] = entry;\n+316 rowPosition[rowIdx]++;\n+317\n+318 });\n 319\n-324 template\n-_\b3_\b2_\b5 void _\ba_\bx_\bp_\by (const Ta& a, const _\bt_\by_\bp_\be& y) {\n-326 using namespace Dune::Hybrid;\n-327 forEach(integralRange(Hybrid::size(*this)), [&](auto&& i) {\n-328 (*this)[i].axpy(a, y[i]);\n-329 });\n+320 // Now analyse the pattern and optimal row order\n+321 L_ = cholmod_analyze(M.get(), &c_);\n+322\n+323 // Do the factorization (this may take some time)\n+324 cholmod_factorize(M.get(), L_, &c_);\n+325 }\n+326\n+327 virtual SolverCategory::Category category() const\n+328 {\n+329 return SolverCategory::Category::sequential;\n 330 }\n 331\n-332 };\n-333\n-334\n-335\n-338 template \n-_\b3_\b3_\b9 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<_\b (std::ostream& s, const\n-_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bA_\br_\bg_\bs_\b._\b._\b._\b>& v) {\n-340 using namespace Dune::Hybrid;\n-341 forEach(integralRange(Dune::Hybrid::size(v)), [&](auto&& i) {\n-342 s << \"\\t(\" << i << \"):\\n\" << v[i] << \"\\n\";\n-343 });\n-344 return s;\n-345 }\n-346\n-347} // end namespace Dune\n-348\n-349namespace _\bs_\bt_\bd\n-350{\n-355 template \n-_\b3_\b5_\b6 struct tuple_element >\n-357 {\n-_\b3_\b5_\b8 using _\bt_\by_\bp_\be = typename std::tuple_element >::type;\n-359 };\n-360}\n-361\n-362#endif\n-_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\n-Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n-generic way.\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-void operator=(const T &newval)\n-Assignment operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:169\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-std::size_t size_type\n-Type used for vector sizes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:65\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-typename FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:45\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bu_\bn_\bt\n-int count() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:114\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bN\n-static constexpr size_type N()\n-Number of elements.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:102\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-Std::detected_t< std::common_type_t, typename FieldTraits< std::decay_t< Args >\n->::field_type... > field_type\n-The type used for scalars.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be\n-static constexpr size_type size()\n-Return the number of non-zero vector entries.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-std::tuple_element< index, TupleType >::type & operator[](const std::\n-integral_constant< size_type, index > indexVariable)\n-Random-access operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:149\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bt_\bw_\bo_\b__\bn_\bo_\br_\bm\n-FieldTraits< field_type >::real_type two_norm() const\n-Compute the Euclidean norm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:256\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename MultiTypeBlockVector< Args... >::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:44\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bm\n-size_type dim() const\n-Number of scalar elements.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bt\n-field_type dot(const type &newv) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:220\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n-void operator*=(const T &w)\n-Multiplication with a scalar.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:198\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\ba_\bx_\bp_\by\n-void axpy(const Ta &a, const type &y)\n-Axpy operation on this vector (*this += a * y)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:325\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n-void operator/=(const T &w)\n-Division by a scalar.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:207\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bt_\by_\bp_\be\n-MultiTypeBlockVector< Args... > type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n-FieldTraits< field_type >::real_type infinity_norm_real() const\n-Compute the simplified maximum norm (uses 1-norm for complex values)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:291\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bn_\be_\b__\bn_\bo_\br_\bm\n-auto one_norm() const\n-Compute the 1-norm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n-void operator-=(const type &newv)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:188\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n-field_type operator*(const type &newv) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:213\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n-void operator+=(const type &newv)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:178\n-_\bs_\bt_\bd_\b:_\b:_\bt_\bu_\bp_\bl_\be_\b__\be_\bl_\be_\bm_\be_\bn_\bt_\b<_\b _\bi_\b,_\b _\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n-typename std::tuple_element< i, std::tuple< Args... > >::type type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:358\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n-FieldTraits< field_type >::real_type infinity_norm() const\n-Compute the maximum norm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:260\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bn_\be_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n-auto one_norm_real() const\n-Compute the simplified 1-norm (uses 1-norm also for complex values)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:238\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bt_\bw_\bo_\b__\bn_\bo_\br_\bm_\b2\n-FieldTraits< field_type >::real_type two_norm2() const\n-Compute the squared Euclidean norm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:247\n-_\bs_\bt_\bd\n-STL namespace.\n+337 cholmod_common& cholmodCommonObject()\n+338 {\n+339 return c_;\n+340 }\n+341\n+347 cholmod_factor& cholmodFactor()\n+348 {\n+349 return *L_;\n+350 }\n+351\n+357 const cholmod_factor& cholmodFactor() const\n+358 {\n+359 return *L_;\n+360 }\n+361private:\n+362\n+363 // create a std::unique_ptr to a cholmod_dense object with a deleter\n+364 // that calls the appropriate cholmod cleanup routine\n+365 auto make_cholmod_dense(cholmod_dense* x, cholmod_common* c)\n+366 {\n+367 const auto deleter = [c](auto* p) {\n+368 cholmod_free_dense(&p, c);\n+369 };\n+370 return std::unique_ptr(x, deleter);\n+371 }\n+372\n+373 cholmod_common c_;\n+374 cholmod_factor* L_ = nullptr;\n+375\n+376 // indicator for a 0x0 problem (due to ignore dof's)\n+377 bool nIsZero_ = false;\n+378\n+379 // vector mapping all indices in flat order to the not ignored indices\n+380 std::vector subIndices_;\n+381};\n+382\n+383 struct CholmodCreator{\n+384 template struct isValidBlock : std::false_type{};\n+385 template struct isValidBlock> : std::true_type\n+{};\n+386 template struct isValidBlock> : std::true_type\n+{};\n+387\n+388 template\n+389 std::shared_ptr::type,\n+390 typename Dune::TypeListElement<2, TL>::type>>\n+391 operator()(TL /*tl*/, const M& _\bm_\ba_\bt, const Dune::ParameterTree& /*config*/,\n+392 std::enable_if_t::type::\n+block_type>::value,int> = 0) const\n+393 {\n+394 using D = typename Dune::TypeListElement<1, TL>::type;\n+395 auto solver = std::make_shared>();\n+396 solver->setMatrix(_\bm_\ba_\bt);\n+397 return solver;\n+398 }\n+399\n+400 // second version with SFINAE to validate the template parameters of\n+Cholmod\n+401 template\n+402 std::shared_ptr::type,\n+403 typename Dune::TypeListElement<2, TL>::type>>\n+404 operator() (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /\n+*config*/,\n+405 std::enable_if_t::\n+type::block_type>::value,int> = 0) const\n+406 {\n+407 DUNE_THROW(UnsupportedType, \"Unsupported Type in Cholmod\");\n+408 }\n+409 };\n+410 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"cholmod\", Dune::CholmodCreator());\n+411\n+412} /* namespace Dune */\n+413\n+414#endif // HAVE_SUITESPARSE_CHOLMOD\n+_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR\n+#define DUNE_REGISTER_DIRECT_SOLVER(name,...)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:13\n+_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n+This file implements a vector space as a tensor product of a given vector\n+space. The number of compon...\n+_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n+_\bf_\bo_\br_\be_\ba_\bc_\bh_\b._\bh_\bh\n+_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n+Define general, extensible interface for inverse operators.\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)\n-Send BlockVector to an output stream.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:590\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A Vector class to support different block types.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockvector.hh:59\n+_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh\n+std::pair< std::size_t, std::size_t > flatMatrixForEach(Matrix &&matrix, F &&f,\n+std::size_t rowOffset=0, std::size_t colOffset=0)\n+Traverse a blocked matrix and call a functor at each scalar entry.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:132\n+_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh\n+std::size_t flatVectorForEach(Vector &&vector, F &&f, std::size_t offset=0)\n+Traverse a blocked vector and call a functor at each scalar entry.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:95\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00191.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00191.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: ldl.hh File Reference\n+dune-istl: foreach.hh File Reference\n \n \n \n \n \n \n \n@@ -70,66 +70,58 @@\n
    \n \n
    \n \n
    \n \n- \n+
    foreach.hh File Reference
    \n
    \n
    \n-\n-

    Class for using LDL with ISTL matrices. \n-More...

    \n-
    #include <iostream>
    \n-#include <memory>
    \n-#include <type_traits>
    \n-#include <dune/common/exceptions.hh>
    \n-#include <dune/istl/bccsmatrixinitializer.hh>
    \n-#include <dune/istl/solvers.hh>
    \n-#include <dune/istl/solvertype.hh>
    \n-#include <dune/istl/solverfactory.hh>
    \n+
    #include <type_traits>
    \n+#include <utility>
    \n+#include <cassert>
    \n+#include <dune/common/std/type_traits.hh>
    \n+#include <dune/common/diagonalmatrix.hh>
    \n+#include <dune/common/hybridutilities.hh>
    \n+#include <dune/common/indices.hh>
    \n+#include <dune/istl/bcrsmatrix.hh>
    \n+#include <dune/istl/scaledidmatrix.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-

    \n-Classes

    class  Dune::LDL< Matrix >
     Use the LDL package to directly solve linear systems – empty default class. More...
     
    class  Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >
     The LDL direct sparse solver for matrices of type BCRSMatrix. More...
     
    struct  Dune::IsDirectSolver< LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > >
     
    struct  Dune::StoresColumnCompressed< LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > >
     
    struct  Dune::LDLCreator
     
    struct  Dune::LDLCreator::isValidBlock< F >
     
    struct  Dune::LDLCreator::isValidBlock< FieldVector< double, k > >
     
    \n \n \n \n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::ForEach
     
    \n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n Functions

     Dune::DUNE_REGISTER_DIRECT_SOLVER ("ldl", Dune::LDLCreator())
     
    template<class Matrix >
    auto Dune::ForEach::rows (Matrix const &matrix)
     
    template<class Matrix >
    auto Dune::ForEach::cols (Matrix const &matrix)
     
    template<class Vector >
    auto Dune::ForEach::size (Vector const &vector)
     
    template<class Vector , class F >
    std::size_t Dune::flatVectorForEach (Vector &&vector, F &&f, std::size_t offset=0)
     Traverse a blocked vector and call a functor at each scalar entry.
     
    template<class Matrix , class F >
    std::pair< std::size_t, std::size_t > Dune::flatMatrixForEach (Matrix &&matrix, F &&f, std::size_t rowOffset=0, std::size_t colOffset=0)
     Traverse a blocked matrix and call a functor at each scalar entry.
     
    \n-

    Detailed Description

    \n-

    Class for using LDL with ISTL matrices.

    \n-
    Author
    Marco Agnese, Andrea Sacconi
    \n-
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,50 +1,51 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-ldl.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b)\n-Class for using LDL with ISTL matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n+_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+foreach.hh File Reference\n #include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\b>\n-\u00a0 Use the LDL package to directly solve linear systems \u2013 empty default\n- class. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>\n-\u00a0 The LDL direct sparse solver for matrices of type _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\b _\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,\n- _\bA_\b _\b>_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bF_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\bk_\b _\b>_\b _\b>\n-\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh\n+\u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"ldl\", _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br())\n+template\n+ auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\br_\bo_\bw_\bs (_\bM_\ba_\bt_\br_\bi_\bx const\n+ &matrix)\n+\u00a0\n+template\n+ auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bc_\bo_\bl_\bs (_\bM_\ba_\bt_\br_\bi_\bx const\n+ &matrix)\n+\u00a0\n+template\n+ auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bs_\bi_\bz_\be (Vector const\n+ &vector)\n+\u00a0\n+template\n+ std::size_t\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh (Vector\n+ &&vector, F &&f, std::size_t offset=0)\n+\u00a0 Traverse a blocked vector and call a\n+ functor at each scalar entry.\n+\u00a0\n+template\n+std::pair< std::size_t, std::size_t >\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh (_\bM_\ba_\bt_\br_\bi_\bx\n+ &&matrix, F &&f, std::size_t\n+ rowOffset=0, std::size_t colOffset=0)\n+\u00a0 Traverse a blocked matrix and call a\n+ functor at each scalar entry.\n \u00a0\n-*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Class for using LDL with ISTL matrices.\n- Author\n- Marco Agnese, Andrea Sacconi\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00191_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00191_source.html", "has_internal_linenos": true, "unified_diff": "@@ -21,4947 +21,2128 @@\n 00000140: 2267 656e 6572 6174 6f72 2220 636f 6e74 \"generator\" cont\n 00000150: 656e 743d 2244 6f78 7967 656e 2031 2e39 ent=\"Doxygen 1.9\n 00000160: 2e38 222f 3e0a 3c6d 6574 6120 6e61 6d65 .8\"/>..dune-istl: ld\n-000001c0: 6c2e 6868 2053 6f75 7263 6520 4669 6c65 l.hh Source File\n-000001d0: 3c2f 7469 746c 653e 0a3c 6c69 6e6b 2068 ...<\n-00000280: 2f73 6372 6970 743e 0a3c 6c69 6e6b 2068 /script>...<\n-00000310: 7363 7269 7074 2074 7970 653d 2274 6578 script type=\"tex\n-00000320: 742f 6a61 7661 7363 7269 7074 2220 7372 t/javascript\" sr\n-00000330: 633d 2273 6561 7263 682f 7365 6172 6368 c=\"search/search\n-00000340: 2e6a 7322 3e3c 2f73 6372 6970 743e 0a3c .js\">.<\n-00000350: 6c69 6e6b 2068 7265 663d 2264 6f78 7967 link href=\"doxyg\n-00000360: 656e 2e63 7373 2220 7265 6c3d 2273 7479 en.css\" rel=\"sty\n-00000370: 6c65 7368 6565 7422 2074 7970 653d 2274 lesheet\" type=\"t\n-00000380: 6578 742f 6373 7322 202f 3e0a 3c2f 6865 ext/css\" />...
    ....
    ..<\n+00000250: 7363 7269 7074 2074 7970 653d 2274 6578 script type=\"tex\n+00000260: 742f 6a61 7661 7363 7269 7074 2220 7372 t/javascript\" sr\n+00000270: 633d 2264 796e 7365 6374 696f 6e73 2e6a c=\"dynsections.j\n+00000280: 7322 3e3c 2f73 6372 6970 743e 0a3c 6c69 s\">..<\n+000002d0: 7363 7269 7074 2074 7970 653d 2274 6578 script type=\"tex\n+000002e0: 742f 6a61 7661 7363 7269 7074 2220 7372 t/javascript\" sr\n+000002f0: 633d 2273 6561 7263 682f 7365 6172 6368 c=\"search/search\n+00000300: 6461 7461 2e6a 7322 3e3c 2f73 6372 6970 data.js\">..<\n+00000780: 6469 7620 6964 3d22 6d61 696e 2d6e 6176 div id=\"main-nav\n+00000790: 223e 3c2f 6469 763e 0a3c 7363 7269 7074 \">
    ../* @lic\n+000007c0: 656e 7365 206d 6167 6e65 743a 3f78 743d ense magnet:?xt=\n+000007d0: 7572 6e3a 6274 6968 3a64 3364 3961 3961 urn:btih:d3d9a9a\n+000007e0: 3635 3935 3532 3166 3936 3636 6135 6539 6595521f9666a5e9\n+000007f0: 3463 6338 3330 6461 6238 3362 3635 3639 4cc830dab83b6569\n+00000800: 3926 616d 703b 646e 3d65 7870 6174 2e74 9&dn=expat.t\n+00000810: 7874 204d 4954 202a 2f0a 2428 646f 6375 xt MIT */.$(docu\n+00000820: 6d65 6e74 292e 7265 6164 7928 6675 6e63 ment).ready(func\n+00000830: 7469 6f6e 2829 207b 2069 6e69 745f 636f tion() { init_co\n+00000840: 6465 666f 6c64 2830 293b 207d 293b 0a2f defold(0); });./\n+00000850: 2a20 406c 6963 656e 7365 2d65 6e64 202a * @license-end *\n+00000860: 2f0a 3c2f 7363 7269 7074 3e0a 3c21 2d2d /...
    .
    ...
    .
    .
    .
    .
    <\n+00000a20: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    Loading\n+00000a50: 2e2e 2e3c 2f64 6976 3e0a 3c64 6976 2063 ...
    .
    S\n+00000a80: 6561 7263 6869 6e67 2e2e 2e3c 2f64 6976 earching....
    No Matche\n+00000ac0: 733c 2f64 6976 3e0a 3c2f 6469 763e 0a3c s
    .
    .<\n+00000ad0: 2f64 6976 3e0a 3c2f 6469 763e 0a3c 2f64 /div>.
    ...
    .
      .\n+00000b10: 3c6c 6920 636c 6173 733d 226e 6176 656c
    • dune
    • \n+00000b70: 3c6c 6920 636c 6173 733d 226e 6176 656c
    • istl
    • \n+00000bd0: 2020 3c2f 756c 3e0a 3c2f 6469 763e 0a3c
    .
    .<\n+00000be0: 2f64 6976 3e3c 212d 2d20 746f 7020 2d2d /div>.\n+00000c60: 3c64 6976 2063 6c61 7373 3d22 636f 6e74
    .Go \n+00000c90: 746f 2074 6865 2064 6f63 756d 656e 7461 to the documenta\n+00000ca0: 7469 6f6e 206f 6620 7468 6973 2066 696c tion of this fil\n+00000cb0: 652e 3c2f 613e 3c64 6976 2063 6c61 7373 e.
    <\n+00000d00: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00000d10: 6e6f 223e 2020 2020 313c 2f73 7061 6e3e no\"> 1\n+00000d20: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // SPDX-Fi\n+00000d40: 6c65 436f 7079 7269 6768 7454 6578 743a leCopyrightText:\n+00000d50: 2043 6f70 7972 6967 6874 2028 4329 2044 Copyright (C) D\n+00000d60: 554e 4520 5072 6f6a 6563 7420 636f 6e74 UNE Project cont\n+00000d70: 7269 6275 746f 7273 2c20 7365 6520 6669 ributors, see fi\n+00000d80: 6c65 204c 4943 454e 5345 2e6d 6420 696e le LICENSE.md in\n+00000d90: 206d 6f64 756c 6520 726f 6f74 3c2f 7370 module root
    .
    2// SPDX-Lice\n+00000e20: 6e73 652d 4964 656e 7469 6669 6572 3a20 nse-Identifier: \n+00000e30: 4c69 6365 6e73 6552 6566 2d47 504c 2d32 LicenseRef-GPL-2\n+00000e40: 2e30 2d6f 6e6c 792d 7769 7468 2d44 554e .0-only-with-DUN\n+00000e50: 452d 6578 6365 7074 696f 6e3c 2f73 7061 E-exception
    .
    3#pragma \n+00000ee0: 6f6e 6365 3c2f 7370 616e 3e3c 2f64 6976 once.
    4<\n+00000f40: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+00000f60: 3c61 2069 643d 226c 3030 3030 3522 206e 5#in\n+00000fc0: 636c 7564 6526 6c74 3b74 7970 655f 7472 clude<type_tr\n+00000fd0: 6169 7473 2667 743b 3c2f 7370 616e 3e3c aits><\n+00000fe0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00001030: 2020 363c 2f73 7061 6e3e 3c73 7061 6e20 6#include<\n+00001060: 3b75 7469 6c69 7479 2667 743b 3c2f 7370 ;utility>
    .
    7#includ\n+000010f0: 6526 6c74 3b63 6173 7365 7274 2667 743b e<cassert>\n+00001100: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00001120: 3c61 2069 643d 226c 3030 3030 3822 206e 8
    .
    9#includ\n+000011e0: 6526 6c74 3b64 756e 652f 636f 6d6d 6f6e e<dune/common\n+000011f0: 2f73 7464 2f74 7970 655f 7472 6169 7473 /std/type_traits\n+00001200: 2e68 6826 6774 3b3c 2f73 7061 6e3e 3c2f .hh>.
    \n+00001260: 3130 3c2f 7370 616e 3e3c 7370 616e 2063 10#include<\n+00001290: 6475 6e65 2f63 6f6d 6d6f 6e2f 6469 6167 dune/common/diag\n+000012a0: 6f6e 616c 6d61 7472 6978 2e68 6826 6774 onalmatrix.hh>\n+000012b0: 3b3c 2f73 7061 6e3e 3c2f 6469 763e 0a3c ;
    .<\n+000012c0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000012d0: 3e3c 6120 6964 3d22 6c30 3030 3131 2220 > 11#i\n+00001330: 6e63 6c75 6465 266c 743b 6475 6e65 2f63 nclude<dune/c\n+00001340: 6f6d 6d6f 6e2f 6879 6272 6964 7574 696c ommon/hybridutil\n+00001350: 6974 6965 732e 6868 2667 743b 3c2f 7370 ities.hh>
    .
    12#includ\n+000013e0: 6526 6c74 3b64 756e 652f 636f 6d6d 6f6e e<dune/common\n+000013f0: 2f69 6e64 6963 6573 2e68 6826 6774 3b3c /indices.hh><\n+00001400: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00001420: 6120 6964 3d22 6c30 3030 3133 2220 6e61 a id=\"l00013\" na\n+00001430: 6d65 3d22 6c30 3030 3133 223e 3c2f 613e me=\"l00013\">\n+00001440: 3c73 7061 6e20 636c 6173 733d 226c 696e 13
    .
    14#include\n+000014e0: 266c 743b 3c61 2063 6c61 7373 3d22 636f <dune/istl\n+00001510: 2f62 6372 736d 6174 7269 782e 6868 3c2f /bcrsmatrix.hh>.
    1\n+00001580: 353c 2f73 7061 6e3e 3c73 7061 6e20 636c 5#include<<\n+000015b0: 6120 636c 6173 733d 2263 6f64 6522 2068 a class=\"code\" h\n+000015c0: 7265 663d 2261 3030 3232 372e 6874 6d6c ref=\"a00227.html\n+000015d0: 223e 6475 6e65 2f69 7374 6c2f 7363 616c \">dune/istl/scal\n+000015e0: 6564 6964 6d61 7472 6978 2e68 683c 2f61 edidmatrix.hh>.
    16\n+00001650: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+00001660: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00001670: 3e3c 6120 6964 3d22 6c30 3030 3137 2220 > 17namespa\n+000016d0: 6365 203c 2f73 7061 6e3e 3c61 2063 6c61 ce Dune{
    .
    18 <\n+00001770: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+000017c0: 2031 393c 2f73 7061 6e3e 2020 3c73 7061 19 namespace Impl {
    .\n 00001800: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00001870: 2069 643d 226c 3030 3032 3122 206e 616d id=\"l00021\" nam\n+00001880: 653d 226c 3030 3032 3122 3e3c 2f61 3e3c e=\"l00021\"><\n 00001890: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-000018a0: 6e6f 223e 2020 2032 323c 2f73 7061 6e3e no\"> 22\n-000018b0: 3c73 7061 6e20 636c 6173 733d 2270 7265 #incl\n-000018d0: 7564 6520 266c 743b 6475 6e65 2f63 6f6d ude <dune/com\n-000018e0: 6d6f 6e2f 6578 6365 7074 696f 6e73 2e68 mon/exceptions.h\n-000018f0: 6826 6774 3b3c 2f73 7061 6e3e 3c2f 6469 h>.
    23\n-00001950: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n-00001960: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00001970: 3e3c 6120 6964 3d22 6c30 3030 3234 2220 > 24#i\n-000019d0: 6e63 6c75 6465 2026 6c74 3b3c 6120 636c nclude <du\n-00001a00: 6e65 2f69 7374 6c2f 6263 6373 6d61 7472 ne/istl/bccsmatr\n-00001a10: 6978 696e 6974 6961 6c69 7a65 722e 6868 ixinitializer.hh\n-00001a20: 3c2f 613e 2667 743b 3c2f 7370 616e 3e3c ><\n-00001a30: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00001a80: 2032 353c 2f73 7061 6e3e 3c73 7061 6e20 25#include &l\n-00001ab0: 743b 3c61 2063 6c61 7373 3d22 636f 6465 t;dune/istl/s\n-00001ae0: 6f6c 7665 7273 2e68 683c 2f61 3e26 6774 olvers.hh>\n-00001af0: 3b3c 2f73 7061 6e3e 3c2f 6469 763e 0a3c ;
    .<\n-00001b00: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00001b10: 3e3c 6120 6964 3d22 6c30 3030 3236 2220 > 26#i\n-00001b70: 6e63 6c75 6465 2026 6c74 3b3c 6120 636c nclude <du\n-00001ba0: 6e65 2f69 7374 6c2f 736f 6c76 6572 7479 ne/istl/solverty\n-00001bb0: 7065 2e68 683c 2f61 3e26 6774 3b3c 2f73 pe.hh>
    .
    27<\n-00001c20: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n-00001c30: 726f 6365 7373 6f72 223e 2369 6e63 6c75 rocessor\">#inclu\n-00001c40: 6465 2026 6c74 3b3c 6120 636c 6173 733d de <dune/i\n-00001c70: 7374 6c2f 736f 6c76 6572 6661 6374 6f72 stl/solverfactor\n-00001c80: 792e 6868 3c2f 613e 2667 743b 3c2f 7370 y.hh>
    .
    28 <\n-00001cf0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00001d40: 2032 393c 2f73 7061 6e3e 3c73 7061 6e20 29\n-00001d60: 6e61 6d65 7370 6163 6520 3c2f 7370 616e namespace Dune {.
    41<\n-00001e00: 2f73 7061 6e3e 2020 3c73 7061 6e20 636c /span> //\n-00001e20: 2066 6f72 7761 7264 2064 6563 6c61 7261 forward declara\n-00001e30: 7469 6f6e 733c 2f73 7061 6e3e 3c2f 6469 tions.
    42\n-00001e90: 3c2f 7370 616e 3e20 203c 7370 616e 2063 t\n-00001eb0: 656d 706c 6174 653c 2f73 7061 6e3e 266c emplate&l\n-00001ec0: 743b 3c73 7061 6e20 636c 6173 733d 226b t;class M, cl\n-00001f00: 6173 733c 2f73 7061 6e3e 2054 2c20 3c73 ass T, class\n-00001f30: 2054 4d2c 203c 7370 616e 2063 6c61 7373 TM, class\n-00001f50: 3c2f 7370 616e 3e20 5444 2c20 3c73 7061 TD, class T\n-00001f80: 4126 6774 3b3c 2f64 6976 3e0a 3c64 6976 A>
    .<\n-00001fc0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00001fd0: 6e6f 223e 2020 2034 333c 2f73 7061 6e3e no\"> 43
    \n-00001fe0: 2020 3c73 7061 6e20 636c 6173 733d 226b class SeqOverlapp\n-00002010: 696e 6753 6368 7761 727a 3b3c 2f64 6976 ingSchwarz;.
    44<\n-00002070: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n-00002090: 3c61 2069 643d 226c 3030 3034 3522 206e 45 templa\n-000020f0: 7465 3c2f 7370 616e 3e26 6c74 3b3c 7370 te<class \n-00002120: 542c 203c 7370 616e 2063 6c61 7373 3d22 T, boo\n-00002140: 6c3c 2f73 7061 6e3e 2074 6167 2667 743b l tag>\n-00002150: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-000021a0: 2020 3436 3c2f 7370 616e 3e20 203c 7370 46 struct SeqOverlappingS\n-000021e0: 6368 7761 727a 4173 7365 6d62 6c65 7248 chwarzAssemblerH\n-000021f0: 656c 7065 723b 3c2f 6469 763e 0a3c 6469 elper;
    .<\n-00002210: 6120 6964 3d22 6c30 3030 3437 2220 6e61 a id=\"l00047\" na\n-00002220: 6d65 3d22 6c30 3030 3437 223e 3c2f 613e me=\"l00047\">\n-00002230: 3c73 7061 6e20 636c 6173 733d 226c 696e 47
    .
    54 <\n-000022b0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-000022c0: 6f72 6422 3e74 656d 706c 6174 653c 2f73 ord\">template<cl\n-000022f0: 6173 733c 2f73 7061 6e3e 204d 6174 7269 ass Matri\n-00002300: 7826 6774 3b3c 2f64 6976 3e0a 3c64 6976 x>
    ...<\n-00002440: 6120 6964 3d22 6c30 3030 3536 2220 6e61 a id=\"l00056\" na\n-00002450: 6d65 3d22 6c30 3030 3536 223e 3c2f 613e me=\"l00056\">\n-00002460: 3c73 7061 6e20 636c 6173 733d 226c 696e 56 {};
    ..
    5\n-000024e0: 373c 2f73 7061 6e3e 203c 2f64 6976 3e0a 7
    .\n-000024f0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n-00002660: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n-000027d0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00002800: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 73 : public <\n-00002850: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n-00002860: 5f63 6c61 7373 2220 6872 6566 3d22 6130 _class\" href=\"a0\n-00002870: 3237 3034 2e68 746d 6c22 3e49 6e76 6572 2704.html\">Inver\n-00002880: 7365 4f70 6572 6174 6f72 3c2f 613e 266c seOperator&l\n-00002890: 743b 426c 6f63 6b56 6563 746f 7226 6c74 t;BlockVector<\n-000028a0: 3b46 6965 6c64 5665 6374 6f72 266c 743b ;FieldVector<\n-000028b0: 542c 6d26 6774 3b2c 2074 7970 656e 616d T,m>, typenam\n-000028c0: 6520 7374 643a 3a61 6c6c 6f63 6174 6f72 e std::allocator\n-000028d0: 5f74 7261 6974 7326 6c74 3b41 2667 743b _traits<A>\n-000028e0: 3a3a 7465 6d70 6c61 7465 2072 6562 696e ::template rebin\n-000028f0: 645f 616c 6c6f 6326 6c74 3b46 6965 6c64 d_alloc<Field\n-00002900: 5665 6374 6f72 266c 743b 542c 6d26 6774 Vector<T,m>\n-00002910: 3b20 2667 743b 2026 6774 3b2c 3c2f 6469 ; > >,.
    74\n-00002970: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n-00002980: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00002990: 2020 2020 426c 6f63 6b56 6563 746f 7226 BlockVector&\n-000029a0: 6c74 3b46 6965 6c64 5665 6374 6f72 266c lt;FieldVector&l\n-000029b0: 743b 542c 6e26 6774 3b2c 2074 7970 656e t;T,n>, typen\n-000029c0: 616d 6520 7374 643a 3a61 6c6c 6f63 6174 ame std::allocat\n-000029d0: 6f72 5f74 7261 6974 7326 6c74 3b41 2667 or_traits<A&g\n-000029e0: 743b 3a3a 7465 6d70 6c61 7465 2072 6562 t;::template reb\n-000029f0: 696e 645f 616c 6c6f 6326 6c74 3b46 6965 ind_alloc<Fie\n-00002a00: 6c64 5665 6374 6f72 266c 743b 542c 6e26 ldVector<T,n&\n-00002a10: 6774 3b20 2667 743b 2026 6774 3b20 2667 gt; > > &g\n-00002a20: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    75 {\n-00002a80: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00002ad0: 2020 3736 3c2f 7370 616e 3e20 2020 203c 76 <\n-00002ae0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00002af0: 6f72 6422 3e70 7562 6c69 633c 2f73 7061 ord\">public:
    ..
    <\n-00002ce0: 6120 636c 6173 733d 226c 696e 6522 2068 a class=\"line\" h\n-00002cf0: 7265 663d 2261 3030 3233 332e 6874 6d6c ref=\"a00233.html\n-00002d00: 2367 6139 3633 6435 3930 3334 3264 3537 #ga963d590342d57\n-00002d10: 3936 6366 6366 6434 3631 3431 6262 6135 96cfcfd46141bba5\n-00002d20: 3162 6522 3e20 2020 3739 3c2f 613e 3c2f 1be\"> 79 t\n-00002d50: 7970 6564 6566 3c2f 7370 616e 3e20 3c61 ypedef Dune::\n-00002d90: 4243 5253 4d61 7472 6978 266c 743b 4669 BCRSMatrix<Fi\n-00002da0: 656c 644d 6174 7269 7826 6c74 3b54 2c6e eldMatrix<T,n\n-00002db0: 2c6d 2667 743b 3c2f 613e 2c41 2667 743b ,m>,A>\n-00002dc0: 203c 6120 636c 6173 733d 2263 6f64 6520 matrix_type;
    .
    81\n-00002ec0: 3c2f 7370 616e 3e20 2020 203c 7370 616e typedef \n-00002ef0: 4475 6e65 3a3a 4953 544c 3a3a 496d 706c Dune::ISTL::Impl\n-00002f00: 3a3a 4243 4353 4d61 7472 6978 266c 743b ::BCCSMatrix<\n-00002f10: 542c 696e 7426 6774 3b20 3c61 2063 6c61 T,int> LDLMa\n-00002f70: 7472 6978 3c2f 613e 3b3c 2f64 6976 3e0a trix;
    .\n-00002f80: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n-00002fb0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> \n-00003010: 2038 333c 2f61 3e3c 2f73 7061 6e3e 2020 83 \n-00003020: 2020 3c73 7061 6e20 636c 6173 733d 226b typedef<\n-00003040: 2f73 7061 6e3e 2049 5354 4c3a 3a49 6d70 /span> ISTL::Imp\n-00003050: 6c3a 3a42 4343 534d 6174 7269 7849 6e69 l::BCCSMatrixIni\n-00003060: 7469 616c 697a 6572 266c 743b 4243 5253 tializer<BCRS\n-00003070: 4d61 7472 6978 266c 743b 4669 656c 644d Matrix<FieldM\n-00003080: 6174 7269 7826 6c74 3b54 2c6e 2c6d 2667 atrix<T,n,m&g\n-00003090: 743b 2c41 2667 743b 2c20 3c73 7061 6e20 t;,A>, int&g\n-000030c0: 743b 203c 6120 636c 6173 733d 2263 6f64 t; MatrixInitia\n-00003120: 6c69 7a65 723c 2f61 3e3b 3c2f 6469 763e lizer;
    \n-00003130: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n-00003350: 6120 6964 3d22 6c30 3030 3837 2220 6e61 a id=\"l00087\" na\n-00003360: 6d65 3d22 6c30 3030 3837 223e 3c2f 613e me=\"l00087\">\n-00003370: 3c73 7061 6e20 636c 6173 733d 226c 696e 87\n-000033d0: 3c2f 613e 3c2f 7370 616e 3e20 2020 203c <\n-000033e0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-000033f0: 6f72 6422 3e74 7970 6564 6566 3c2f 7370 ord\">typedef \n-00003430: 4475 6e65 3a3a 426c 6f63 6b56 6563 746f Dune::BlockVecto\n-00003440: 7226 6c74 3b46 6965 6c64 5665 6374 6f72 r<FieldVector\n-00003450: 266c 743b 542c 6e26 6774 3b3c 2f61 3e2c <T,n>,\n-00003460: 203c 7370 616e 2063 6c61 7373 3d22 6b65 typename<\n-00003480: 2f73 7061 6e3e 2073 7464 3a3a 616c 6c6f /span> std::allo\n-00003490: 6361 746f 725f 7472 6169 7473 266c 743b cator_traits<\n-000034a0: 4126 6774 3b3a 3a74 656d 706c 6174 6520 A>::template \n-000034b0: 7265 6269 6e64 5f61 6c6c 6f63 266c 743b rebind_alloc<\n-000034c0: 4669 656c 6456 6563 746f 7226 6c74 3b54 FieldVector<T\n-000034d0: 2c6e 2667 743b 2026 6774 3b20 2667 743b ,n> > >\n-000034e0: 203c 6120 636c 6173 733d 2263 6f64 6520 range_type\n-00003540: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-00003590: 2020 2038 383c 2f73 7061 6e3e 203c 2f64 88 .
    ..<\n-000037e0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-000037f0: 6e6f 223e 2020 2039 313c 2f73 7061 6e3e no\"> 91\n-00003800: 3c73 7061 6e20 636c 6173 733d 226b 6579 {
    ..\n-00003960: 3c61 2069 643d 226c 3030 3039 3322 206e 93 }
    ..
    \n-00003a00: 3934 3c2f 7370 616e 3e20 3c2f 6469 763e 94
    \n-00003a10: 0a3c 6469 7620 636c 6173 733d 2266 6f6c .
    .
    <\n-00003aa0: 6120 636c 6173 733d 226c 696e 6522 2068 a class=\"line\" h\n-00003ab0: 7265 663d 2261 3030 3233 332e 6874 6d6c ref=\"a00233.html\n-00003ac0: 2367 6166 6663 3339 3130 3265 6233 6332 #gaffc39102eb3c2\n-00003ad0: 3062 6130 3537 6332 3839 3762 3433 6264 0ba057c2897b43bd\n-00003ae0: 6136 6622 3e20 2031 3034 3c2f 613e 3c2f a6f\"> 104 LDL(const Matrix&\n-00003bb0: 3b20 6d61 7472 6978 2c20 3c73 7061 6e20 ; matrix, int v\n-00003be0: 6572 626f 7365 3d30 2920 3a20 6d61 7472 erbose=0) : matr\n-00003bf0: 6978 4973 4c6f 6164 6564 5f28 6661 6c73 ixIsLoaded_(fals\n-00003c00: 6529 2c20 7665 7262 6f73 655f 2876 6572 e), verbose_(ver\n-00003c10: 626f 7365 293c 2f64 6976 3e0a 3c64 6976 bose)
    .<\n-00003c50: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00003c60: 6e6f 223e 2020 3130 353c 2f73 7061 6e3e no\"> 105\n-00003c70: 2020 2020 7b3c 2f64 6976 3e0a 3c64 6976 {
    .<\n-00003cb0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00003cc0: 6e6f 223e 2020 3130 363c 2f73 7061 6e3e no\"> 106\n-00003cd0: 2020 2020 2020 3c73 7061 6e20 636c 6173 //ch\n-00003cf0: 6563 6b20 7768 6574 6865 7220 5420 6973 eck whether T is\n-00003d00: 2061 2073 7570 706f 7274 6564 2074 7970 a supported typ\n-00003d10: 653c 2f73 7061 6e3e 3c2f 6469 763e 0a3c e
    .<\n-00003d20: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00003d30: 3e3c 6120 6964 3d22 6c30 3031 3037 2220 > 107 s\n-00003d90: 7461 7469 635f 6173 7365 7274 3c2f 7370 tatic_assert(std::is_same\n-00003db0: 266c 743b 542c 646f 7562 6c65 2667 743b <T,double>\n-00003dc0: 3a3a 7661 6c75 652c 3c73 7061 6e20 636c ::value,"Unsupp\n-00003df0: 6f72 7465 6420 5479 7065 2069 6e20 4c44 orted Type in LD\n-00003e00: 4c20 286f 6e6c 7920 646f 7562 6c65 2073 L (only double s\n-00003e10: 7570 706f 7274 6564 2926 7175 6f74 3b3c upported)"<\n-00003e20: 2f73 7061 6e3e 293b 3c2f 6469 763e 0a3c /span>);
    .<\n-00003e30: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00003e40: 3e3c 6120 6964 3d22 6c30 3031 3038 2220 > 108 setMatr\n-00003e90: 6978 286d 6174 7269 7829 3b3c 2f64 6976 ix(matrix);.
    109<\n-00003ef0: 2f73 7061 6e3e 2020 2020 7d3c 2f64 6976 /span> }.
    .
    110 .
    .
    120 L\n-000040a0: 444c 3c2f 613e 283c 7370 616e 2063 6c61 DL(con\n-000040c0: 7374 3c2f 7370 616e 3e20 3c61 2063 6c61 st Matrix\n-00004100: 2661 6d70 3b20 6d61 7472 6978 2c20 3c73 & matrix, int verbose, bool) : matrixIsLoa\n-00004170: 6465 645f 2866 616c 7365 292c 2076 6572 ded_(false), ver\n-00004180: 626f 7365 5f28 7665 7262 6f73 6529 3c2f bose_(verbose).
    1\n-000041e0: 3231 3c2f 7370 616e 3e20 2020 207b 3c2f 21 {.
    1\n-00004240: 3232 3c2f 7370 616e 3e20 2020 2020 203c 22 <\n-00004250: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n-00004260: 656e 7422 3e2f 2f63 6865 636b 2077 6865 ent\">//check whe\n-00004270: 7468 6572 2054 2069 7320 6120 7375 7070 ther T is a supp\n-00004280: 6f72 7465 6420 7479 7065 3c2f 7370 616e orted type
    .
    \n-000042e0: 2020 3132 333c 2f73 7061 6e3e 2020 2020 123 \n-000042f0: 2020 3c73 7061 6e20 636c 6173 733d 226b static_a\n-00004310: 7373 6572 743c 2f73 7061 6e3e 2873 7464 ssert(std\n-00004320: 3a3a 6973 5f73 616d 6526 6c74 3b54 2c64 ::is_same<T,d\n-00004330: 6f75 626c 6526 6774 3b3a 3a76 616c 7565 ouble>::value\n-00004340: 2c3c 7370 616e 2063 6c61 7373 3d22 7374 ,&qu\n-00004360: 6f74 3b55 6e73 7570 706f 7274 6564 2054 ot;Unsupported T\n-00004370: 7970 6520 696e 204c 444c 2028 6f6e 6c79 ype in LDL (only\n-00004380: 2064 6f75 626c 6520 7375 7070 6f72 7465 double supporte\n-00004390: 6429 2671 756f 743b 3c2f 7370 616e 3e29 d)")\n-000043a0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-000043f0: 2020 3132 343c 2f73 7061 6e3e 2020 2020 124 \n-00004400: 2020 7365 744d 6174 7269 7828 6d61 7472 setMatrix(matr\n-00004410: 6978 293b 3c2f 6469 763e 0a3c 6469 7620 ix);
    .
    125 \n-00004470: 2020 207d 3c2f 6469 763e 0a3c 2f64 6976 }
    ..
    126<\n-000044d0: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    ..
    136 LDL(\n-00004620: 3c73 7061 6e20 636c 6173 733d 226b 6579 const M\n-00004670: 6174 7269 783c 2f61 3e26 616d 703b 206d atrix& m\n-00004680: 6174 7269 782c 203c 7370 616e 2063 6c61 atrix, con\n-000046a0: 7374 3c2f 7370 616e 3e20 5061 7261 6d65 st Parame\n-000046b0: 7465 7254 7265 6526 616d 703b 2063 6f6e terTree& con\n-000046c0: 6669 6729 3c2f 6469 763e 0a3c 6469 7620 fig)
    .
    137 \n-00004720: 2020 2020 203a 203c 6120 636c 6173 733d : LDL(matri\n-00004760: 782c 2063 6f6e 6669 672e 3c61 2063 6c61 x, config.get<int>("\n-000047f0: 7665 7262 6f73 6526 7175 6f74 3b3c 2f73 verbose", 0))
    .\n-00004810: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n-00004870: 0a3c 2f64 6976 3e0a 3c64 6976 2063 6c61 .
    .
    \n-000048c0: 2020 3133 393c 2f73 7061 6e3e 203c 2f64 139 .
    .
    141 LD\n-00004a10: 4c3c 2f61 3e28 2920 3a20 6d61 7472 6978 L() : matrix\n-00004a20: 4973 4c6f 6164 6564 5f28 6661 6c73 6529 IsLoaded_(false)\n-00004a30: 2c20 7665 7262 6f73 655f 2830 293c 2f64 , verbose_(0).
    14\n-00004a90: 323c 2f73 7061 6e3e 2020 2020 7b7d 3c2f 2 {}.
    .<\n-00004ae0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00004af0: 6e6f 223e 2020 3134 333c 2f73 7061 6e3e no\"> 143\n-00004b00: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    .\n-00004b60: 3c61 2069 643d 226c 3030 3134 3522 206e 14\n-00004be0: 353c 2f61 3e3c 2f73 7061 6e3e 2020 2020 5 \n-00004bf0: 3c73 7061 6e20 636c 6173 733d 226b 6579 virtual ~LDL(\n-00004c70: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n-00004cc0: 2020 3134 363c 2f73 7061 6e3e 2020 2020 146 \n-00004cd0: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n-00004d20: 2020 3134 373c 2f73 7061 6e3e 2020 2020 147 \n-00004d30: 2020 3c73 7061 6e20 636c 6173 733d 226b if ((ldlMatri\n-00004d60: 785f 2e4e 2829 202b 206c 646c 4d61 7472 x_.N() + ldlMatr\n-00004d70: 6978 5f2e 4d28 2920 2667 743b 2030 2920 ix_.M() > 0) \n-00004d80: 7c7c 206d 6174 7269 7849 734c 6f61 6465 || matrixIsLoade\n-00004d90: 645f 293c 2f64 6976 3e0a 3c64 6976 2063 d_)
    .
    148 \n-00004df0: 2020 2020 2020 6672 6565 2829 3b3c 2f64 free();.
    14\n-00004e50: 393c 2f73 7061 6e3e 2020 2020 7d3c 2f64 9 }.
    .
    150 \n-00004ec0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    .<\n-00004f20: 6120 6964 3d22 6c30 3031 3532 2220 6e61 a id=\"l00152\" na\n-00004f30: 6d65 3d22 6c30 3031 3532 223e 3c2f 613e me=\"l00152\">\n-00004f40: 3c73 7061 6e20 636c 6173 733d 226c 696e 152\n-00004fa0: 3c2f 613e 3c2f 7370 616e 3e20 2020 203c <\n-00004fb0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00004fc0: 6f72 6422 3e76 6972 7475 616c 3c2f 7370 ord\">virtual vo\n-00004ff0: 6964 3c2f 7370 616e 3e20 3c61 2063 6c61 id appl\n-00005050: 793c 2f61 3e28 3c61 2063 6c61 7373 3d22 y(domain_type& x, range_type\n-000050d0: 3c2f 613e 2661 6d70 3b20 622c 203c 6120 & b, Invers\n-00005110: 654f 7065 7261 746f 7252 6573 756c 743c eOperatorResult<\n-00005120: 2f61 3e26 616d 703b 2072 6573 293c 2f64 /a>& res).
    15\n-00005180: 333c 2f73 7061 6e3e 2020 2020 7b3c 2f64 3 {.
    15\n-000051e0: 343c 2f73 7061 6e3e 2020 2020 2020 3c73 4 const\n-00005210: 203c 7370 616e 2063 6c61 7373 3d22 6b65 int dimMat(ldl\n-00005240: 4d61 7472 6978 5f2e 4e28 2929 3b3c 2f64 Matrix_.N());.
    15\n-000052a0: 353c 2f73 7061 6e3e 2020 2020 2020 6c64 5 ld\n-000052b0: 6c5f 7065 726d 2864 696d 4d61 742c 2059 l_perm(dimMat, Y\n-000052c0: 5f2c 203c 7370 616e 2063 6c61 7373 3d22 _, reinter\n-000052e0: 7072 6574 5f63 6173 7426 6c74 3b3c 2f73 pret_cast<do\n-00005310: 7562 6c65 3c2f 7370 616e 3e2a 3c73 7061 uble*>(&a\n-00005340: 6d70 3b62 5b30 5d29 2c20 505f 293b 3c2f mp;b[0]), P_);.
    1\n-000053a0: 3536 3c2f 7370 616e 3e20 2020 2020 206c 56 l\n-000053b0: 646c 5f6c 736f 6c76 6528 6469 6d4d 6174 dl_lsolve(dimMat\n-000053c0: 2c20 595f 2c20 4c70 5f2c 204c 695f 2c20 , Y_, Lp_, Li_, \n-000053d0: 4c78 5f29 3b3c 2f64 6976 3e0a 3c64 6976 Lx_);
    .<\n-00005410: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00005420: 6e6f 223e 2020 3135 373c 2f73 7061 6e3e no\"> 157\n-00005430: 2020 2020 2020 6c64 6c5f 6473 6f6c 7665 ldl_dsolve\n-00005440: 2864 696d 4d61 742c 2059 5f2c 2044 5f29 (dimMat, Y_, D_)\n-00005450: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-000054a0: 2020 3135 383c 2f73 7061 6e3e 2020 2020 158 \n-000054b0: 2020 6c64 6c5f 6c74 736f 6c76 6528 6469 ldl_ltsolve(di\n-000054c0: 6d4d 6174 2c20 595f 2c20 4c70 5f2c 204c mMat, Y_, Lp_, L\n-000054d0: 695f 2c20 4c78 5f29 3b3c 2f64 6976 3e0a i_, Lx_);
    .\n-000054e0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n-00005510: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 159 ldl_pe\n-00005540: 726d 7428 6469 6d4d 6174 2c20 3c73 7061 rmt(dimMat, reinterpret_ca\n-00005570: 7374 266c 743b 3c2f 7370 616e 3e3c 7370 st<double*><\n-000055c0: 2f73 7061 6e3e 2826 616d 703b 785b 305d /span>(&x[0]\n-000055d0: 292c 2059 5f2c 2050 5f29 3b3c 2f64 6976 ), Y_, P_);.
    160<\n-00005630: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> // this is a d\n-00005660: 6972 6563 7420 736f 6c76 6572 3c2f 7370 irect solver
    .
    161 \n-000056d0: 2020 2020 7265 732e 3c61 2063 6c61 7373 res.iterati\n-00005730: 6f6e 733c 2f61 3e20 3d20 313b 3c2f 6469 ons = 1;.
    162\n-00005790: 3c2f 7370 616e 3e20 2020 2020 2072 6573 res\n-000057a0: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .converged \n-00005800: 3d20 3c73 7061 6e20 636c 6173 733d 226b = true;
    .
    163 \n-00005880: 2020 207d 3c2f 6469 763e 0a3c 2f64 6976 }
    ..
    164<\n-000058e0: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    ..
    21\n+000018b0: 2020 3c73 7061 6e20 636c 6173 733d 2263 // stole\n+000018d0: 6e20 6672 6f6d 2064 756e 652d 6675 6e63 n from dune-func\n+000018e0: 7469 6f6e 733a 2077 6520 6361 6c6c 2061 tions: we call a\n+000018f0: 2074 7970 6520 2671 756f 743b 7363 616c type "scal\n+00001900: 6172 2671 756f 743b 2069 6620 6974 2064 ar" if it d\n+00001910: 6f65 7320 6e6f 7420 7375 7070 6f72 7420 oes not support \n+00001920: 696e 6465 7820 6163 6365 7373 696e 673c index accessing<\n+00001930: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00001950: 6120 6964 3d22 6c30 3030 3232 2220 6e61 a id=\"l00022\" na\n+00001960: 6d65 3d22 6c30 3030 3232 223e 3c2f 613e me=\"l00022\">\n+00001970: 3c73 7061 6e20 636c 6173 733d 226c 696e 22 templat\n+000019b0: 653c 2f73 7061 6e3e 266c 743b 3c73 7061 e<class C\n+000019e0: 2667 743b 3c2f 6469 763e 0a3c 6469 7620 >
    .
    23 \n+00001a40: 203c 7370 616e 2063 6c61 7373 3d22 6b65 using StaticIndexA\n+00001a70: 6363 6573 7343 6f6e 6365 7074 203d 203c ccessConcept = <\n+00001a80: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00001a90: 6f72 6422 3e64 6563 6c74 7970 653c 2f73 ord\">decltype(std::declva\n+00001ab0: 6c26 6c74 3b43 2667 743b 2829 5b44 756e l<C>()[Dun\n+00001ac0: 653a 3a49 6e64 6963 6573 3a3a 5f30 5d29 e::Indices::_0])\n+00001ad0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00001b20: 2020 2032 343c 2f73 7061 6e3e 203c 2f64 24 .
    2\n+00001b80: 353c 2f73 7061 6e3e 2020 3c73 7061 6e20 5 \n+00001ba0: 7465 6d70 6c61 7465 3c2f 7370 616e 3e26 template&\n+00001bb0: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;class C>.
    26<\n+00001c30: 2f73 7061 6e3e 2020 3c73 7061 6e20 636c /span> us\n+00001c50: 696e 6720 3c2f 7370 616e 3e49 7353 6361 ing IsSca\n+00001c60: 6c61 7220 3d20 7374 643a 3a6e 6567 6174 lar = std::negat\n+00001c70: 696f 6e26 6c74 3b44 756e 653a 3a53 7464 ion<Dune::Std\n+00001c80: 3a3a 6973 5f64 6574 6563 7465 6426 6c74 ::is_detected<\n+00001c90: 3b53 7461 7469 6349 6e64 6578 4163 6365 ;StaticIndexAcce\n+00001ca0: 7373 436f 6e63 6570 742c 2073 7464 3a3a ssConcept, std::\n+00001cb0: 7265 6d6f 7665 5f72 6566 6572 656e 6365 remove_reference\n+00001cc0: 5f74 266c 743b 4326 6774 3b26 6774 3b26 _t<C>>&\n+00001cd0: 6774 3b3b 3c2f 6469 763e 0a3c 6469 7620 gt;;
    .
    27 \n+00001d30: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00001d80: 2020 3238 3c2f 7370 616e 3e20 203c 7370 28 // Type trait\n+00001db0: 2066 6f72 206d 6174 7269 7820 7479 7065 for matrix type\n+00001dc0: 7320 7468 6174 2073 7570 706f 7274 733c s that supports<\n+00001dd0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00001df0: 6120 6964 3d22 6c30 3030 3239 2220 6e61 a id=\"l00029\" na\n+00001e00: 6d65 3d22 6c30 3030 3239 223e 3c2f 613e me=\"l00029\">\n+00001e10: 3c73 7061 6e20 636c 6173 733d 226c 696e 29 // - it\n+00001e50: 6572 6174 696f 6e20 646f 6e65 2072 6f77 eration done row\n+00001e60: 2d77 6973 653c 2f73 7061 6e3e 3c2f 6469 -wise.
    30\n+00001ec0: 3c2f 7370 616e 3e20 203c 7370 616e 2063 /\n+00001ee0: 2f20 2d20 7370 6172 7365 2069 7465 7261 / - sparse itera\n+00001ef0: 7469 6f6e 206f 7665 7220 6e6f 6e7a 6572 tion over nonzer\n+00001f00: 6f20 656e 7472 6965 733c 2f73 7061 6e3e o entries\n+00001f10: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00001f60: 2020 3331 3c2f 7370 616e 3e20 203c 7370 31 template <cla\n+00001fb0: 7373 3c2f 7370 616e 3e20 5426 6774 3b3c ss T><\n+00001fc0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00002010: 2033 323c 2f73 7061 6e3e 2020 3c73 7061 32 struct \n+00002040: 4973 526f 774d 616a 6f72 5370 6172 7365 IsRowMajorSparse\n+00002050: 203a 2073 7464 3a3a 6661 6c73 655f 7479 : std::false_ty\n+00002060: 7065 207b 7d3b 3c2f 6469 763e 0a3c 6469 pe {};
    .<\n+00002080: 6120 6964 3d22 6c30 3030 3333 2220 6e61 a id=\"l00033\" na\n+00002090: 6d65 3d22 6c30 3030 3333 223e 3c2f 613e me=\"l00033\">\n+000020a0: 3c73 7061 6e20 636c 6173 733d 226c 696e 33
    .
    34 <\n+00002120: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+00002130: 656e 7422 3e2f 2f20 5468 6973 2069 7320 ent\">// This is \n+00002140: 7375 7070 6f72 7465 6420 6279 2074 6865 supported by the\n+00002150: 2066 6f6c 6c6f 7769 6e67 206d 6174 7269 following matri\n+00002160: 7820 7479 7065 733a 3c2f 7370 616e 3e3c x types:<\n+00002170: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+000021c0: 2033 353c 2f73 7061 6e3e 2020 3c73 7061 35 template <clas\n+00002210: 733c 2f73 7061 6e3e 2042 2c20 3c73 7061 s B, class A\n+00002240: 2667 743b 3c2f 6469 763e 0a3c 6469 7620 >
    .
    36 \n+000022a0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 struct IsRowMajorS\n+000022d0: 7061 7273 6526 6c74 3b42 4352 534d 6174 parse<BCRSMat\n+000022e0: 7269 7826 6c74 3b42 2c41 2667 743b 2667 rix<B,A>&g\n+000022f0: 743b 203a 2073 7464 3a3a 7472 7565 5f74 t; : std::true_t\n+00002300: 7970 6520 7b7d 3b3c 2f64 6976 3e0a 3c64 ype {};
    .\n+00002320: 3c61 2069 643d 226c 3030 3033 3722 206e 37
    .
    38 \n+000023c0: 3c73 7061 6e20 636c 6173 733d 226b 6579 template <\n+00002400: 636c 6173 733c 2f73 7061 6e3e 204b 2c20 class K, \n+00002410: 3c73 7061 6e20 636c 6173 733d 226b 6579 int n>
    \n+00002440: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00002470: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 39 str\n+000024b0: 7563 7420 3c2f 7370 616e 3e49 7352 6f77 uct IsRow\n+000024c0: 4d61 6a6f 7253 7061 7273 6526 6c74 3b44 MajorSparse<D\n+000024d0: 6961 676f 6e61 6c4d 6174 7269 7826 6c74 iagonalMatrix<\n+000024e0: 3b4b 2c6e 2667 743b 2667 743b 203a 2073 ;K,n>> : s\n+000024f0: 7464 3a3a 7472 7565 5f74 7970 6520 7b7d td::true_type {}\n+00002500: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00002550: 2020 2034 303c 2f73 7061 6e3e 203c 2f64 40 .
    4\n+000025b0: 313c 2f73 7061 6e3e 2020 3c73 7061 6e20 1 \n+000025d0: 7465 6d70 6c61 7465 3c2f 7370 616e 3e20 template \n+000025e0: 266c 743b 3c73 7061 6e20 636c 6173 733d <class<\n+00002600: 2f73 7061 6e3e 204b 2c20 3c73 7061 6e20 /span> K, int n\n+00002630: 2667 743b 3c2f 6469 763e 0a3c 6469 7620 >
    .
    42 \n+00002690: 203c 7370 616e 2063 6c61 7373 3d22 6b65 struct IsRowMajorS\n+000026c0: 7061 7273 6526 6c74 3b53 6361 6c65 6449 parse<ScaledI\n+000026d0: 6465 6e74 6974 794d 6174 7269 7826 6c74 dentityMatrix<\n+000026e0: 3b4b 2c6e 2667 743b 2667 743b 203a 2073 ;K,n>> : s\n+000026f0: 7464 3a3a 7472 7565 5f74 7970 6520 7b7d td::true_type {}\n+00002700: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00002750: 2020 2034 333c 2f73 7061 6e3e 203c 2f64 43 .
    4\n+000027b0: 343c 2f73 7061 6e3e 203c 2f64 6976 3e0a 4
    .\n+000027c0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+000027f0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 45 temp\n+00002830: 6c61 7465 3c2f 7370 616e 3e20 266c 743b late <\n+00002840: 3c73 7061 6e20 636c 6173 733d 226b 6579 class Matrix>.
    4\n+000028c0: 363c 2f73 7061 6e3e 2020 3c73 7061 6e20 6 \n+000028e0: 6175 746f 3c2f 7370 616e 3e20 726f 7773 auto rows\n+000028f0: 284d 6174 7269 7820 3c73 7061 6e20 636c (Matrix co\n+00002910: 6e73 743c 2f73 7061 6e3e 2661 6d70 3b20 nst& \n+00002920: 3c73 7061 6e20 636c 6173 733d 2263 6f6d /*matrix*/\n+00002940: 3c2f 7370 616e 3e2c 2050 7269 6f72 6974 , Priorit\n+00002950: 7954 6167 266c 743b 3226 6774 3b29 202d yTag<2>) -\n+00002960: 2667 743b 2073 7464 3a3a 696e 7465 6772 > std::integr\n+00002970: 616c 5f63 6f6e 7374 616e 7426 6c74 3b73 al_constant<s\n+00002980: 7464 3a3a 7369 7a65 5f74 2c20 3c61 2063 td::size_t, Mat\n+000029e0: 7269 783a 3a4e 3c2f 613e 2829 2667 743b rix::N()>\n+000029f0: 207b 203c 7370 616e 2063 6c61 7373 3d22 { ret\n+00002a10: 7572 6e3c 2f73 7061 6e3e 207b 7d3b 207d urn {}; }\n+00002a20: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00002a70: 2020 3437 3c2f 7370 616e 3e20 3c2f 6469 47 .
    48\n+00002ad0: 3c2f 7370 616e 3e20 203c 7370 616e 2063 t\n+00002af0: 656d 706c 6174 653c 2f73 7061 6e3e 2026 emplate &\n+00002b00: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;class Matrix>\n+00002b30: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00002b80: 2020 3439 3c2f 7370 616e 3e20 203c 7370 49 auto c\n+00002bb0: 6f6c 7328 4d61 7472 6978 203c 7370 616e ols(Matrix const&am\n+00002be0: 703b 203c 7370 616e 2063 6c61 7373 3d22 p; /*matri\n+00002c00: 782a 2f3c 2f73 7061 6e3e 2c20 5072 696f x*/, Prio\n+00002c10: 7269 7479 5461 6726 6c74 3b32 2667 743b rityTag<2>\n+00002c20: 2920 2d26 6774 3b20 7374 643a 3a69 6e74 ) -> std::int\n+00002c30: 6567 7261 6c5f 636f 6e73 7461 6e74 266c egral_constant&l\n+00002c40: 743b 7374 643a 3a73 697a 655f 742c 203c t;std::size_t, <\n+00002c50: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+00002c60: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n+00002c70: 2261 3031 3436 302e 6874 6d6c 2361 6430 \"a01460.html#ad0\n+00002c80: 6332 3537 6236 6636 3166 3038 3232 6464 c257b6f61f0822dd\n+00002c90: 6637 6463 6435 6161 6339 6566 6437 223e f7dcd5aac9efd7\">\n+00002ca0: 4d61 7472 6978 3a3a 4d3c 2f61 3e28 2926 Matrix::M()&\n+00002cb0: 6774 3b20 7b20 3c73 7061 6e20 636c 6173 gt; { \n+00002cd0: 7265 7475 726e 3c2f 7370 616e 3e20 7b7d return {}\n+00002ce0: 3b20 7d3c 2f64 6976 3e0a 3c64 6976 2063 ; }
    .
    50 <\n+00002d40: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00002d90: 2035 313c 2f73 7061 6e3e 2020 3c73 7061 51 template <clas\n+00002de0: 733c 2f73 7061 6e3e 204d 6174 7269 7826 s Matrix&\n+00002df0: 6774 3b3c 2f64 6976 3e0a 3c64 6976 2063 gt;
    .
    52 \n+00002e50: 3c73 7061 6e20 636c 6173 733d 226b 6579 auto rows(Matrix const\n+00002ea0: 2661 6d70 3b20 6d61 7472 6978 2c20 5072 & matrix, Pr\n+00002eb0: 696f 7269 7479 5461 6726 6c74 3b31 2667 iorityTag<1&g\n+00002ec0: 743b 2920 2d26 6774 3b20 3c73 7061 6e20 t;) -> \n+00002ee0: 6465 636c 7479 7065 3c2f 7370 616e 3e28 decltype(\n+00002ef0: 6d61 7472 6978 2e4e 2829 2920 7b20 3c73 matrix.N()) { return matrix.N()\n+00002f30: 3b20 7d3c 2f64 6976 3e0a 3c64 6976 2063 ; }
    .
    53 <\n+00002f90: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00002fe0: 2035 343c 2f73 7061 6e3e 2020 3c73 7061 54 template <clas\n+00003030: 733c 2f73 7061 6e3e 204d 6174 7269 7826 s Matrix&\n+00003040: 6774 3b3c 2f64 6976 3e0a 3c64 6976 2063 gt;
    .
    55 \n+000030a0: 3c73 7061 6e20 636c 6173 733d 226b 6579 auto cols(Matrix const\n+000030f0: 2661 6d70 3b20 6d61 7472 6978 2c20 5072 & matrix, Pr\n+00003100: 696f 7269 7479 5461 6726 6c74 3b31 2667 iorityTag<1&g\n+00003110: 743b 2920 2d26 6774 3b20 3c73 7061 6e20 t;) -> \n+00003130: 6465 636c 7479 7065 3c2f 7370 616e 3e28 decltype(\n+00003140: 6d61 7472 6978 2e4d 2829 2920 7b20 3c73 matrix.M()) { return matrix.M()\n+00003180: 3b20 7d3c 2f64 6976 3e0a 3c64 6976 2063 ; }
    .
    56 <\n+000031e0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00003230: 2035 373c 2f73 7061 6e3e 2020 3c73 7061 57 template <clas\n+00003280: 733c 2f73 7061 6e3e 2056 6563 746f 7226 s Vector&\n+00003290: 6774 3b3c 2f64 6976 3e0a 3c64 6976 2063 gt;
    .
    58 \n+000032f0: 3c73 7061 6e20 636c 6173 733d 226b 6579 auto size(Vector const\n+00003340: 2661 6d70 3b20 3c73 7061 6e20 636c 6173 & /*ve\n+00003360: 6374 6f72 2a2f 3c2f 7370 616e 3e2c 2050 ctor*/, P\n+00003370: 7269 6f72 6974 7954 6167 266c 743b 3226 riorityTag<2&\n+00003380: 6774 3b29 202d 2667 743b 2073 7464 3a3a gt;) -> std::\n+00003390: 696e 7465 6772 616c 5f63 6f6e 7374 616e integral_constan\n+000033a0: 7426 6c74 3b73 7464 3a3a 7369 7a65 5f74 t<std::size_t\n+000033b0: 2c20 5665 6374 6f72 3a3a 7369 7a65 2829 , Vector::size()\n+000033c0: 2667 743b 207b 203c 7370 616e 2063 6c61 > { return {\n+000033f0: 7d3b 207d 3c2f 6469 763e 0a3c 6469 7620 }; }
    .
    59 \n+00003450: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000034a0: 2020 3630 3c2f 7370 616e 3e20 203c 7370 60 template <cla\n+000034f0: 7373 3c2f 7370 616e 3e20 5665 6374 6f72 ss Vector\n+00003500: 2667 743b 3c2f 6469 763e 0a3c 6469 7620 >
    .
    61 \n+00003560: 203c 7370 616e 2063 6c61 7373 3d22 6b65 auto size(Vector <\n+00003590: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+000035a0: 6f72 6422 3e63 6f6e 7374 3c2f 7370 616e ord\">const& vector, P\n+000035c0: 7269 6f72 6974 7954 6167 266c 743b 3126 riorityTag<1&\n+000035d0: 6774 3b29 202d 2667 743b 203c 7370 616e gt;) -> decltype\n+00003600: 2876 6563 746f 722e 7369 7a65 2829 2920 (vector.size()) \n+00003610: 7b20 3c73 7061 6e20 636c 6173 733d 226b { retu\n+00003630: 726e 3c2f 7370 616e 3e20 7665 6374 6f72 rn vector\n+00003640: 2e73 697a 6528 293b 207d 3c2f 6469 763e .size(); }
    \n+00003650: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+000036c0: 6120 6964 3d22 6c30 3030 3633 2220 6e61 a id=\"l00063\" na\n+000036d0: 6d65 3d22 6c30 3030 3633 223e 3c2f 613e me=\"l00063\">\n+000036e0: 3c73 7061 6e20 636c 6173 733d 226c 696e 63
    .
    64 }\n+00003760: 203c 7370 616e 2063 6c61 7373 3d22 636f // end na\n+00003780: 6d65 7370 6163 6520 496d 706c 3c2f 7370 mespace Impl
    .
    65 <\n+000037f0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    .<\n+00003870: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00003880: 6e6f 223e 3c61 2063 6c61 7373 3d22 6c69 no\"> 66\n+000038b0: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 nam\n+000038d0: 6573 7061 6365 203c 2f73 7061 6e3e 466f espace Fo\n+000038e0: 7245 6163 687b 3c2f 6469 763e 0a3c 6469 rEach{
    .<\n+00003900: 6120 6964 3d22 6c30 3030 3637 2220 6e61 a id=\"l00067\" na\n+00003910: 6d65 3d22 6c30 3030 3637 223e 3c2f 613e me=\"l00067\">\n+00003920: 3c73 7061 6e20 636c 6173 733d 226c 696e 67
    .
    68 <\n+000039a0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+000039b0: 6f72 6422 3e74 656d 706c 6174 653c 2f73 ord\">template <c\n+000039e0: 6c61 7373 3c2f 7370 616e 3e20 4d61 7472 lass Matr\n+000039f0: 6978 2667 743b 3c2f 6469 763e 0a3c 6469 ix>
    .<\n+00003a10: 6120 6964 3d22 6c30 3030 3639 2220 6e61 a id=\"l00069\" na\n+00003a20: 6d65 3d22 6c30 3030 3639 223e 3c2f 613e me=\"l00069\">\n+00003a30: 3c73 7061 6e20 636c 6173 733d 226c 696e 69<\n+00003a90: 2f61 3e3c 2f73 7061 6e3e 2020 3c73 7061 /a> auto r\n+00003b10: 6f77 733c 2f61 3e28 3c61 2063 6c61 7373 ows(Matrix <\n+00003b50: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00003b60: 6f72 6422 3e63 6f6e 7374 3c2f 7370 616e ord\">const& matrix) {\n+00003b80: 203c 7370 616e 2063 6c61 7373 3d22 6b65 retur\n+00003ba0: 6e3c 2f73 7061 6e3e 2049 6d70 6c3a 3a72 n Impl::r\n+00003bb0: 6f77 7328 6d61 7472 6978 2c20 5072 696f ows(matrix, Prio\n+00003bc0: 7269 7479 5461 6726 6c74 3b35 2667 743b rityTag<5>\n+00003bd0: 7b7d 293b 207d 3c2f 6469 763e 0a3c 6469 {}); }
    .<\n+00003bf0: 6120 6964 3d22 6c30 3030 3730 2220 6e61 a id=\"l00070\" na\n+00003c00: 6d65 3d22 6c30 3030 3730 223e 3c2f 613e me=\"l00070\">\n+00003c10: 3c73 7061 6e20 636c 6173 733d 226c 696e 70
    .
    71 <\n+00003c90: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00003ca0: 6f72 6422 3e74 656d 706c 6174 653c 2f73 ord\">template <c\n+00003cd0: 6c61 7373 3c2f 7370 616e 3e20 4d61 7472 lass Matr\n+00003ce0: 6978 2667 743b 3c2f 6469 763e 0a3c 6469 ix>
    .<\n+00003d00: 6120 6964 3d22 6c30 3030 3732 2220 6e61 a id=\"l00072\" na\n+00003d10: 6d65 3d22 6c30 3030 3732 223e 3c2f 613e me=\"l00072\">\n+00003d20: 3c73 7061 6e20 636c 6173 733d 226c 696e 72<\n+00003d80: 2f61 3e3c 2f73 7061 6e3e 2020 3c73 7061 /a> auto c\n+00003e00: 6f6c 733c 2f61 3e28 3c61 2063 6c61 7373 ols(Matrix <\n+00003e40: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00003e50: 6f72 6422 3e63 6f6e 7374 3c2f 7370 616e ord\">const& matrix) {\n+00003e70: 203c 7370 616e 2063 6c61 7373 3d22 6b65 retur\n+00003e90: 6e3c 2f73 7061 6e3e 2049 6d70 6c3a 3a63 n Impl::c\n+00003ea0: 6f6c 7328 6d61 7472 6978 2c20 5072 696f ols(matrix, Prio\n+00003eb0: 7269 7479 5461 6726 6c74 3b35 2667 743b rityTag<5>\n+00003ec0: 7b7d 293b 207d 3c2f 6469 763e 0a3c 6469 {}); }
    .<\n+00003ee0: 6120 6964 3d22 6c30 3030 3733 2220 6e61 a id=\"l00073\" na\n+00003ef0: 6d65 3d22 6c30 3030 3733 223e 3c2f 613e me=\"l00073\">\n+00003f00: 3c73 7061 6e20 636c 6173 733d 226c 696e 73
    .
    74 <\n+00003f80: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00003f90: 6f72 6422 3e74 656d 706c 6174 653c 2f73 ord\">template <c\n+00003fc0: 6c61 7373 3c2f 7370 616e 3e20 5665 6374 lass Vect\n+00003fd0: 6f72 2667 743b 3c2f 6469 763e 0a3c 6469 or>
    .<\n+00003ff0: 6120 6964 3d22 6c30 3030 3735 2220 6e61 a id=\"l00075\" na\n+00004000: 6d65 3d22 6c30 3030 3735 223e 3c2f 613e me=\"l00075\">\n+00004010: 3c73 7061 6e20 636c 6173 733d 226c 696e 75<\n+00004070: 2f61 3e3c 2f73 7061 6e3e 2020 3c73 7061 /a> auto s\n+000040f0: 697a 653c 2f61 3e28 5665 6374 6f72 203c ize(Vector <\n+00004100: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00004110: 6f72 6422 3e63 6f6e 7374 3c2f 7370 616e ord\">const& vector) {\n+00004130: 203c 7370 616e 2063 6c61 7373 3d22 6b65 retur\n+00004150: 6e3c 2f73 7061 6e3e 2049 6d70 6c3a 3a73 n Impl::s\n+00004160: 697a 6528 7665 6374 6f72 2c20 5072 696f ize(vector, Prio\n+00004170: 7269 7479 5461 6726 6c74 3b35 2667 743b rityTag<5>\n+00004180: 7b7d 293b 207d 3c2f 6469 763e 0a3c 6469 {}); }
    .<\n+000041a0: 6120 6964 3d22 6c30 3030 3736 2220 6e61 a id=\"l00076\" na\n+000041b0: 6d65 3d22 6c30 3030 3736 223e 3c2f 613e me=\"l00076\">\n+000041c0: 3c73 7061 6e20 636c 6173 733d 226c 696e 76
    .
    77} <\n+00004240: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+00004250: 656e 7422 3e2f 2f20 6e61 6d65 7370 6163 ent\">// namespac\n+00004260: 6520 466f 7245 6163 683c 2f73 7061 6e3e e ForEach\n+00004270: 3c2f 6469 763e 0a3c 2f64 6976 3e0a 3c64
    .
    .\n+00004290: 3c61 2069 643d 226c 3030 3037 3822 206e 78
    .
    79 <\n+00004330: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00004380: 2038 303c 2f73 7061 6e3e 203c 2f64 6976 80 .
    81<\n+000043e0: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+00004400: 3c61 2069 643d 226c 3030 3039 3422 206e 94template\n+00004460: 3c2f 7370 616e 3e20 266c 743b 3c73 7061 <class V\n+00004490: 6563 746f 722c 203c 7370 616e 2063 6c61 ector, cla\n+000044b0: 7373 3c2f 7370 616e 3e20 4626 6774 3b3c ss F><\n+000044c0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    .<\n+00004540: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00004550: 6e6f 223e 3c61 2063 6c61 7373 3d22 6c69 no\"> 95std::si\n+000045b0: 7a65 5f74 203c 6120 636c 6173 733d 2263 ze_t flatVector\n+00004610: 466f 7245 6163 683c 2f61 3e28 5665 6374 ForEach(Vect\n+00004620: 6f72 2661 6d70 3b26 616d 703b 2076 6563 or&& vec\n+00004630: 746f 722c 2046 2661 6d70 3b26 616d 703b tor, F&&\n+00004640: 2066 2c20 7374 643a 3a73 697a 655f 7420 f, std::size_t \n+00004650: 6f66 6673 6574 203d 2030 293c 2f64 6976 offset = 0).
    96<\n+000046b0: 2f73 7061 6e3e 7b3c 2f64 6976 3e0a 3c64 /span>{
    .\n+000046d0: 3c61 2069 643d 226c 3030 3039 3722 206e 97 using \n+00004730: 3c2f 7370 616e 3e56 203d 2073 7464 3a3a V = std::\n+00004740: 6465 6361 795f 7426 6c74 3b56 6563 746f decay_t<Vecto\n+00004750: 7226 6774 3b3b 3c2f 6469 763e 0a3c 6469 r>;
    .<\n+00004770: 6120 6964 3d22 6c30 3030 3938 2220 6e61 a id=\"l00098\" na\n+00004780: 6d65 3d22 6c30 3030 3938 223e 3c2f 613e me=\"l00098\">\n+00004790: 3c73 7061 6e20 636c 6173 733d 226c 696e 98 if<\n+000047d0: 2f73 7061 6e3e 203c 7370 616e 2063 6c61 /span> con\n+000047f0: 7374 6578 7072 3c2f 7370 616e 3e28 2049 stexpr( I\n+00004800: 6d70 6c3a 3a49 7353 6361 6c61 7226 6c74 mpl::IsScalar<\n+00004810: 3b56 2667 743b 3a3a 7661 6c75 6520 293c ;V>::value )<\n+00004820: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00004870: 2039 393c 2f73 7061 6e3e 2020 7b3c 2f64 99 {.
    10\n+000048d0: 303c 2f73 7061 6e3e 2020 2020 6628 7665 0 f(ve\n+000048e0: 6374 6f72 2c20 6f66 6673 6574 293b 3c2f ctor, offset);.
    1\n+00004940: 3031 3c2f 7370 616e 3e20 2020 203c 7370 01 return 1;
    .\n+00004990: 3c61 2069 643d 226c 3030 3130 3222 206e 102 }
    .<\n+00004a10: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00004a20: 6e6f 223e 2020 3130 333c 2f73 7061 6e3e no\"> 103\n+00004a30: 2020 3c73 7061 6e20 636c 6173 733d 226b else\n+00004a50: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00004a70: 3c61 2069 643d 226c 3030 3130 3422 206e 104 {
    .<\n+00004af0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00004b00: 6e6f 223e 2020 3130 353c 2f73 7061 6e3e no\"> 105\n+00004b10: 2020 2020 7374 643a 3a73 697a 655f 7420 std::size_t \n+00004b20: 6964 7820 3d20 303b 3c2f 6469 763e 0a3c idx = 0;
    .<\n+00004b30: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00004b40: 3e3c 6120 6964 3d22 6c30 3031 3036 2220 > 106 Hybrid::f\n+00004b90: 6f72 4561 6368 2844 756e 653a 3a72 616e orEach(Dune::ran\n+00004ba0: 6765 283c 6120 636c 6173 733d 2263 6f64 ge(ForEach::siz\n+00004c00: 653c 2f61 3e28 7665 6374 6f72 2929 2c20 e(vector)), \n+00004c10: 5b26 616d 703b 5d28 3c73 7061 6e20 636c [&](au\n+00004c30: 746f 3c2f 7370 616e 3e20 6929 207b 3c2f to i) {.
    1\n+00004c90: 3037 3c2f 7370 616e 3e20 2020 2020 2069 07 i\n+00004ca0: 6478 202b 3d20 3c61 2063 6c61 7373 3d22 dx += flatVecto\n+00004d00: 7246 6f72 4561 6368 3c2f 613e 2876 6563 rForEach(vec\n+00004d10: 746f 725b 695d 2c20 662c 206f 6666 7365 tor[i], f, offse\n+00004d20: 7420 2b20 6964 7829 3b3c 2f64 6976 3e0a t + idx);
    .\n+00004d30: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00004d60: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 108 });.
    109<\n+00004de0: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> return idx;
    .<\n+00004e30: 6120 6964 3d22 6c30 3031 3130 2220 6e61 a id=\"l00110\" na\n+00004e40: 6d65 3d22 6c30 3031 3130 223e 3c2f 613e me=\"l00110\">\n+00004e50: 3c73 7061 6e20 636c 6173 733d 226c 696e 110 }
    .
    111}\n+00004ed0: 3c2f 6469 763e 0a3c 2f64 6976 3e0a 3c64
    .
    .\n+00004ef0: 3c61 2069 643d 226c 3030 3131 3222 206e 112
    .
    113 <\n+00004f90: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00004fe0: 3133 313c 2f73 7061 6e3e 3c73 7061 6e20 131\n+00005000: 7465 6d70 6c61 7465 3c2f 7370 616e 3e20 template \n+00005010: 266c 743b 3c73 7061 6e20 636c 6173 733d <class<\n+00005030: 2f73 7061 6e3e 204d 6174 7269 782c 203c /span> Matrix, <\n+00005040: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00005050: 6f72 6422 3e63 6c61 7373 3c2f 7370 616e ord\">class F>
    ..
    132std::pair<st\n+00005160: 643a 3a73 697a 655f 742c 7374 643a 3a73 d::size_t,std::s\n+00005170: 697a 655f 7426 6774 3b20 3c61 2063 6c61 ize_t> flatM\n+000051d0: 6174 7269 7846 6f72 4561 6368 3c2f 613e atrixForEach\n+000051e0: 283c 6120 636c 6173 733d 2263 6f64 6520 (Mat\n+00005210: 7269 783c 2f61 3e26 616d 703b 2661 6d70 rix&&\n+00005220: 3b20 6d61 7472 6978 2c20 4626 616d 703b ; matrix, F&\n+00005230: 2661 6d70 3b20 662c 2073 7464 3a3a 7369 & f, std::si\n+00005240: 7a65 5f74 2072 6f77 4f66 6673 6574 203d ze_t rowOffset =\n+00005250: 2030 2c20 7374 643a 3a73 697a 655f 7420 0, std::size_t \n+00005260: 636f 6c4f 6666 7365 7420 3d20 3029 3c2f colOffset = 0).
    1\n+000052c0: 3333 3c2f 7370 616e 3e7b 3c2f 6469 763e 33{
    \n+000052d0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00005300: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 134 usi\n+00005340: 6e67 203c 2f73 7061 6e3e 4d20 3d20 7374 ng M = st\n+00005350: 643a 3a64 6563 6179 5f74 266c 743b 4d61 d::decay_t<Ma\n+00005360: 7472 6978 2667 743b 3b3c 2f64 6976 3e0a trix>;
    .\n+00005370: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    136 \n+00005490: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n+000054e0: 2020 3133 373c 2f73 7061 6e3e 2020 2020 137 \n+000054f0: 6628 6d61 7472 6978 2c72 6f77 4f66 6673 f(matrix,rowOffs\n+00005500: 6574 2c63 6f6c 4f66 6673 6574 293b 3c2f et,colOffset);.
    1\n+00005560: 3338 3c2f 7370 616e 3e20 2020 203c 7370 38 return {1,1};.
    139<\n+000055f0: 2f73 7061 6e3e 2020 7d3c 2f64 6976 3e0a /span> }
    .\n+00005600: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00005630: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 140 \n+00005670: 656c 7365 3c2f 7370 616e 3e3c 2f64 6976 else.
    141<\n+000056d0: 2f73 7061 6e3e 2020 7b3c 2f64 6976 3e0a /span> {
    .\n+000056e0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n+00005800: 2031 3433 3c2f 7370 616e 3e20 2020 203c 143 <\n+00005810: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+00005820: 656e 7422 3e2f 2f20 616e 6420 636f 6d70 ent\">// and comp\n+00005830: 7574 6520 7468 6520 666c 6174 2072 6f77 ute the flat row\n+00005840: 2f63 6f6c 2073 697a 6520 6469 7265 6374 /col size direct\n+00005850: 6c79 3c2f 7370 616e 3e3c 2f64 6976 3e0a ly
    .\n+00005860: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00005890: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 144 if constexpr ( Impl::IsRow\n+00005910: 4d61 6a6f 7253 7061 7273 6526 6c74 3b4d MajorSparse<M\n+00005920: 2667 743b 3a3a 7661 6c75 6520 293c 2f64 >::value ).
    166 virt\n-000059f0: 7561 6c3c 2f73 7061 6e3e 203c 7370 616e ual void\n-00005a20: 203c 6120 636c 6173 733d 2263 6f64 6520 apply(domain_\n-00005ab0: 7479 7065 3c2f 613e 2661 6d70 3b20 782c type& x,\n-00005ac0: 203c 6120 636c 6173 733d 2263 6f64 6520 ran\n-00005af0: 6765 5f74 7970 653c 2f61 3e26 616d 703b ge_type&\n-00005b00: 2062 2c20 5b5b 6d61 7962 655f 756e 7573 b, [[maybe_unus\n-00005b10: 6564 5d5d 203c 7370 616e 2063 6c61 7373 ed]] d\n-00005b30: 6f75 626c 653c 2f73 7061 6e3e 2072 6564 ouble red\n-00005b40: 7563 7469 6f6e 2c20 3c61 2063 6c61 7373 uction, InverseOper\n-00005b80: 6174 6f72 5265 7375 6c74 3c2f 613e 2661 atorResult&a\n-00005b90: 6d70 3b20 7265 7329 3c2f 6469 763e 0a3c mp; res)
    .<\n-00005ba0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00005bb0: 3e3c 6120 6964 3d22 6c30 3031 3637 2220 > 167 {
    .<\n-00005c00: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00005c10: 3e3c 6120 6964 3d22 6c30 3031 3638 2220 > 168 apply(x\n-00005c60: 2c62 2c72 6573 293b 3c2f 6469 763e 0a3c ,b,res);
    .<\n-00005c70: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00005c80: 3e3c 6120 6964 3d22 6c30 3031 3639 2220 > 169 }
    .<\n-00005cd0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00005d20: 3137 303c 2f73 7061 6e3e 203c 2f64 6976 170 .
    .
    \n-00005dc0: 3c61 2063 6c61 7373 3d22 6c69 6e65 2220 176<\n-00005e10: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> void \n-00005e40: 3c61 2063 6c61 7373 3d22 636f 6465 2068 apply(T* x\n-00005ea0: 2c20 542a 2062 293c 2f64 6976 3e0a 3c64 , T* b)
    .\n-00005ec0: 3c61 2069 643d 226c 3030 3137 3722 206e 177 {
    .\n-00005f20: 3c61 2069 643d 226c 3030 3137 3822 206e 178 co\n-00005f80: 6e73 743c 2f73 7061 6e3e 203c 7370 616e nst int \n-00005fb0: 6469 6d4d 6174 286c 646c 4d61 7472 6978 dimMat(ldlMatrix\n-00005fc0: 5f2e 4e28 2929 3b3c 2f64 6976 3e0a 3c64 _.N());
    .\n-00005fe0: 3c61 2069 643d 226c 3030 3137 3922 206e 179 ldl_perm\n-00006030: 2864 696d 4d61 742c 2059 5f2c 2062 2c20 (dimMat, Y_, b, \n-00006040: 505f 293b 3c2f 6469 763e 0a3c 6469 7620 P_);
    .
    180 \n-000060a0: 2020 2020 206c 646c 5f6c 736f 6c76 6528 ldl_lsolve(\n-000060b0: 6469 6d4d 6174 2c20 595f 2c20 4c70 5f2c dimMat, Y_, Lp_,\n-000060c0: 204c 695f 2c20 4c78 5f29 3b3c 2f64 6976 Li_, Lx_);.
    181<\n-00006120: 2f73 7061 6e3e 2020 2020 2020 6c64 6c5f /span> ldl_\n-00006130: 6473 6f6c 7665 2864 696d 4d61 742c 2059 dsolve(dimMat, Y\n-00006140: 5f2c 2044 5f29 3b3c 2f64 6976 3e0a 3c64 _, D_);
    .\n-00006160: 3c61 2069 643d 226c 3030 3138 3222 206e 182 ldl_ltso\n-000061b0: 6c76 6528 6469 6d4d 6174 2c20 595f 2c20 lve(dimMat, Y_, \n-000061c0: 4c70 5f2c 204c 695f 2c20 4c78 5f29 3b3c Lp_, Li_, Lx_);<\n-000061d0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00006220: 3138 333c 2f73 7061 6e3e 2020 2020 2020 183 \n-00006230: 6c64 6c5f 7065 726d 7428 6469 6d4d 6174 ldl_permt(dimMat\n-00006240: 2c20 782c 2059 5f2c 2050 5f29 3b3c 2f64 , x, Y_, P_);.
    18\n-000062a0: 343c 2f73 7061 6e3e 2020 2020 7d3c 2f64 4 }.
    .
    185 \n-00006310: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    .<\n-00006370: 6120 6964 3d22 6c30 3031 3836 2220 6e61 a id=\"l00186\" na\n-00006380: 6d65 3d22 6c30 3031 3836 223e 3c2f 613e me=\"l00186\">\n-00006390: 3c73 7061 6e20 636c 6173 733d 226c 696e 186\n-000063f0: 3c2f 613e 3c2f 7370 616e 3e20 2020 203c <\n-00006400: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00006410: 6f72 6474 7970 6522 3e76 6f69 643c 2f73 ordtype\">void setOption\n-00006480: 3c2f 613e 285b 5b6d 6179 6265 5f75 6e75 ([[maybe_unu\n-00006490: 7365 645d 5d20 3c73 7061 6e20 636c 6173 sed]] \n-000064b0: 756e 7369 676e 6564 3c2f 7370 616e 3e20 unsigned \n-000064c0: 3c73 7061 6e20 636c 6173 733d 226b 6579 int option, [[m\n-000064f0: 6179 6265 5f75 6e75 7365 645d 5d20 3c73 aybe_unused]] double value).
    187\n-00006580: 3c2f 7370 616e 3e20 2020 207b 7d3c 2f64 {}.
    .
    188 \n-000065f0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    .<\n-00006650: 6120 6964 3d22 6c30 3031 3930 2220 6e61 a id=\"l00190\" na\n-00006660: 6d65 3d22 6c30 3031 3930 223e 3c2f 613e me=\"l00190\">\n-00006670: 3c73 7061 6e20 636c 6173 733d 226c 696e 190\n-000066d0: 3c2f 613e 3c2f 7370 616e 3e20 2020 203c <\n-000066e0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-000066f0: 6f72 6474 7970 6522 3e76 6f69 643c 2f73 ordtype\">void setMatrix\n-00006760: 3c2f 613e 283c 7370 616e 2063 6c61 7373 (const\n-00006780: 3c2f 7370 616e 3e20 3c61 2063 6c61 7373 Matrix&a\n-000067c0: 6d70 3b20 6d61 7472 6978 293c 2f64 6976 mp; matrix).
    191<\n-00006820: 2f73 7061 6e3e 2020 2020 7b3c 2f64 6976 /span> {.
    192<\n-00006880: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> if \n-000068b0: 2828 6c64 6c4d 6174 7269 785f 2e4e 2829 ((ldlMatrix_.N()\n-000068c0: 202b 206c 646c 4d61 7472 6978 5f2e 4d28 + ldlMatrix_.M(\n-000068d0: 2920 2667 743b 2030 2920 7c7c 206d 6174 ) > 0) || mat\n-000068e0: 7269 7849 734c 6f61 6465 645f 293c 2f64 rixIsLoaded_).
    19\n-00006940: 333c 2f73 7061 6e3e 2020 2020 2020 2020 3 \n-00006950: 6672 6565 2829 3b3c 2f64 6976 3e0a 3c64 free();
    .\n-00006970: 3c61 2069 643d 226c 3030 3139 3422 206e 194
    .
    195 \n-00006a10: 2020 2020 3c73 7061 6e20 636c 6173 733d if\n-00006a30: 3c2f 7370 616e 3e20 286c 646c 4d61 7472 (ldlMatr\n-00006a40: 6978 5f2e 4e28 2920 2b20 6c64 6c4d 6174 ix_.N() + ldlMat\n-00006a50: 7269 785f 2e4d 2829 202b 206c 646c 4d61 rix_.M() + ldlMa\n-00006a60: 7472 6978 5f2e 6e6f 6e7a 6572 6f65 7328 trix_.nonzeroes(\n-00006a70: 2920 213d 2030 293c 2f64 6976 3e0a 3c64 ) != 0)
    .\n-00006a90: 3c61 2069 643d 226c 3030 3139 3622 206e 196 ldlMat\n-00006ae0: 7269 785f 2e66 7265 6528 293b 3c2f 6469 rix_.free();.
    197\n-00006b40: 3c2f 7370 616e 3e20 2020 2020 206c 646c ldl\n-00006b50: 4d61 7472 6978 5f2e 7365 7453 697a 6528 Matrix_.setSize(\n-00006b60: 3c61 2063 6c61 7373 3d22 636f 6465 2068 Mat\n-00006b90: 7269 7844 696d 656e 7369 6f6e 266c 743b rixDimension<\n-00006ba0: 4d61 7472 6978 2667 743b 3a3a 726f 7764 Matrix>::rowd\n-00006bb0: 696d 3c2f 613e 286d 6174 7269 7829 2c3c im(matrix),<\n-00006bc0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00006c10: 3139 383c 2f73 7061 6e3e 2020 2020 2020 198 \n-00006c20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00006c30: 2020 203c 6120 636c 6173 733d 2263 6f64 \n-00006c60: 4d61 7472 6978 4469 6d65 6e73 696f 6e26 MatrixDimension&\n-00006c70: 6c74 3b4d 6174 7269 7826 6774 3b3a 3a63 lt;Matrix>::c\n-00006c80: 6f6c 6469 6d3c 2f61 3e28 6d61 7472 6978 oldim(matrix\n-00006c90: 2929 3b3c 2f64 6976 3e0a 3c64 6976 2063 ));
    .
    199 \n-00006cf0: 2020 2020 4953 544c 3a3a 496d 706c 3a3a ISTL::Impl::\n-00006d00: 4243 4353 4d61 7472 6978 496e 6974 6961 BCCSMatrixInitia\n-00006d10: 6c69 7a65 7226 6c74 3b4d 6174 7269 782c lizer<Matrix,\n-00006d20: 2069 6e74 2667 743b 2069 6e69 7469 616c int> initial\n-00006d30: 697a 6572 286c 646c 4d61 7472 6978 5f29 izer(ldlMatrix_)\n-00006d40: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-00006d90: 2020 3230 303c 2f73 7061 6e3e 203c 2f64 200 .
    20\n-00006df0: 313c 2f73 7061 6e3e 2020 2020 2020 636f 1 co\n-00006e00: 7079 546f 4243 4353 4d61 7472 6978 2869 pyToBCCSMatrix(i\n-00006e10: 6e69 7469 616c 697a 6572 2c20 6d61 7472 nitializer, matr\n-00006e20: 6978 293b 3c2f 6469 763e 0a3c 6469 7620 ix);
    .
    202 \n-00006e80: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00006ed0: 2032 3033 3c2f 7370 616e 3e20 2020 2020 203 \n-00006ee0: 2064 6563 6f6d 706f 7365 2829 3b3c 2f64 decompose(); 14\n+00005980: 353c 2f73 7061 6e3e 2020 2020 7b3c 2f64 5 {.
    14\n+000059e0: 363c 2f73 7061 6e3e 2020 2020 2020 3c73 6 using Block = std::de\n+00005a20: 6361 795f 7426 6c74 3b3c 7370 616e 2063 cay_t<d\n+00005a40: 6563 6c74 7970 653c 2f73 7061 6e3e 286d ecltype(m\n+00005a50: 6174 7269 785b 305d 5b30 5d29 2667 743b atrix[0][0])>\n+00005a60: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00005ab0: 2020 3134 373c 2f73 7061 6e3e 203c 2f64 147 .
    14\n+00005b10: 383c 2f73 7061 6e3e 2020 2020 2020 3c73 8 // find an e\n+00005b40: 7869 7374 696e 6720 626c 6f63 6b20 6f72 xisting block or\n+00005b50: 2061 7420 6c65 6173 7420 7472 7920 746f at least try to\n+00005b60: 2063 7265 6174 6520 6f6e 653c 2f73 7061 create one
    .
    149 \n+00005bd0: 2020 203c 7370 616e 2063 6c61 7373 3d22 auto block = [&a\n+00005c00: 6d70 3b5d 7b3c 2f64 6976 3e0a 3c64 6976 mp;]{
    .<\n+00005c40: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00005c50: 6e6f 223e 2020 3135 303c 2f73 7061 6e3e no\"> 150\n+00005c60: 2020 2020 2020 2020 3c73 7061 6e20 636c for (auto \n+00005cb0: 3c73 7061 6e20 636c 6173 733d 226b 6579 const& row : ma\n+00005ce0: 7472 6978 293c 2f64 6976 3e0a 3c64 6976 trix)
    .<\n+00005d20: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00005d30: 6e6f 223e 2020 3135 313c 2f73 7061 6e3e no\"> 151\n+00005d40: 2020 2020 2020 2020 2020 3c73 7061 6e20 for (\n+00005d70: 3c73 7061 6e20 636c 6173 733d 226b 6579 auto const& entry \n+00005dc0: 3a20 726f 7729 3c2f 6469 763e 0a3c 6469 : row)
    .<\n+00005de0: 6120 6964 3d22 6c30 3031 3532 2220 6e61 a id=\"l00152\" na\n+00005df0: 6d65 3d22 6c30 3031 3532 223e 3c2f 613e me=\"l00152\">\n+00005e00: 3c73 7061 6e20 636c 6173 733d 226c 696e 152 return entry;.
    153<\n+00005eb0: 2f73 7061 6e3e 2020 2020 2020 2020 3c73 /span> return Block{};.
    1\n+00005f40: 3534 3c2f 7370 616e 3e20 2020 2020 207d 54 }\n+00005f50: 2829 3b3c 2f64 6976 3e0a 3c64 6976 2063 ();
    .
    155 <\n+00005fb0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00006000: 3135 363c 2f73 7061 6e3e 2020 2020 2020 156 \n+00006010: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // compute\n+00006030: 2074 6865 2073 6361 6c61 7220 7369 7a65 the scalar size\n+00006040: 206f 6620 7468 6520 626c 6f63 6b3c 2f73 of the block
    .
    157 \n+000060b0: 2020 2020 203c 7370 616e 2063 6c61 7373 auto<\n+000060d0: 2f73 7061 6e3e 205b 626c 6f63 6b52 6f77 /span> [blockRow\n+000060e0: 732c 2062 6c6f 636b 436f 6c73 5d20 3d20 s, blockCols] = \n+000060f0: 3c61 2063 6c61 7373 3d22 636f 6465 2068 flatMatrixForEa\n+00006150: 6368 3c2f 613e 2862 6c6f 636b 2c20 5b5d ch(block, []\n+00006160: 282e 2e2e 297b 7d29 3b3c 2f64 6976 3e0a (...){});
    .\n+00006170: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00006200: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00006210: 6e6f 223e 2020 3135 393c 2f73 7061 6e3e no\"> 159\n+00006220: 2020 2020 2020 3c73 7061 6e20 636c 6173 // c\n+00006240: 6865 636b 2077 6865 7468 6572 2077 6520 heck whether we \n+00006250: 6861 7665 2076 616c 6964 2073 697a 6564 have valid sized\n+00006260: 2062 6c6f 636b 733c 2f73 7061 6e3e 3c2f blocks.
    1\n+000062c0: 3630 3c2f 7370 616e 3e20 2020 2020 2061 60 a\n+000062d0: 7373 6572 7428 2028 2062 6c6f 636b 526f ssert( ( blockRo\n+000062e0: 7773 213d 3020 6f72 2062 6c6f 636b 436f ws!=0 or blockCo\n+000062f0: 6c73 213d 3020 2920 616e 6420 3c73 7061 ls!=0 ) and "th\n+00006320: 6520 626c 6f63 6b20 7369 7a65 2063 616e e block size can\n+00006330: 2623 3339 3b74 2062 6520 7a65 726f 2671 't be zero&q\n+00006340: 756f 743b 3c2f 7370 616e 3e29 3b3c 2f64 uot;);.
    16\n+000063a0: 313c 2f73 7061 6e3e 203c 2f64 6976 3e0a 1
    .\n+000063b0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+000063e0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 162 for (\n+00006430: 203c 7370 616e 2063 6c61 7373 3d22 6b65 auto rowIt = matri\n+00006460: 782e 6265 6769 6e28 293b 2072 6f77 4974 x.begin(); rowIt\n+00006470: 2021 3d20 6d61 7472 6978 2e65 6e64 2829 != matrix.end()\n+00006480: 3b20 726f 7749 742b 2b20 293c 2f64 6976 ; rowIt++ ).
    163<\n+000064e0: 2f73 7061 6e3e 2020 2020 2020 7b3c 2f64 /span> {.
    16\n+00006540: 343c 2f73 7061 6e3e 2020 2020 2020 2020 4 \n+00006550: 3c73 7061 6e20 636c 6173 733d 226b 6579 auto&& row \n+00006580: 3d20 2a72 6f77 4974 3b3c 2f64 6976 3e0a = *rowIt;
    .\n+00006590: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00006660: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00006670: 6e6f 223e 2020 3136 363c 2f73 7061 6e3e no\"> 166
    \n+00006680: 2020 2020 2020 2020 3c73 7061 6e20 636c for ( <\n+000066b0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+000066c0: 6f72 6422 3e61 7574 6f3c 2f73 7061 6e3e ord\">auto\n+000066d0: 2063 6f6c 4974 203d 2072 6f77 2e62 6567 colIt = row.beg\n+000066e0: 696e 2829 3b20 636f 6c49 7420 213d 2072 in(); colIt != r\n+000066f0: 6f77 2e65 6e64 2829 3b20 636f 6c49 742b ow.end(); colIt+\n+00006700: 2b20 293c 2f64 6976 3e0a 3c64 6976 2063 + )
    .
    167 \n+00006760: 2020 2020 2020 7b3c 2f64 6976 3e0a 3c64 {
    .\n+00006780: 3c61 2069 643d 226c 3030 3136 3822 206e 168 auto&am\n+000067f0: 703b 2661 6d70 3b20 656e 7472 7920 3d20 p;& entry = \n+00006800: 2a63 6f6c 4974 3b3c 2f64 6976 3e0a 3c64 *colIt;
    .\n+00006820: 3c61 2069 643d 226c 3030 3136 3922 206e 169 auto co\n+00006890: 6c49 6478 203d 2063 6f6c 4974 2e69 6e64 lIdx = colIt.ind\n+000068a0: 6578 2829 3b3c 2f64 6976 3e0a 3c64 6976 ex();
    .<\n+000068e0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000068f0: 6e6f 223e 2020 3137 303c 2f73 7061 6e3e no\"> 170\n+00006900: 2020 2020 2020 2020 2020 3c73 7061 6e20 \n+00006920: 6175 746f 3c2f 7370 616e 3e20 5b20 6475 auto [ du\n+00006930: 6d6d 7952 6f77 732c 2064 756d 6d79 436f mmyRows, dummyCo\n+00006940: 6c73 205d 203d 203c 6120 636c 6173 733d ls ] = flatMatr\n+000069a0: 6978 466f 7245 6163 683c 2f61 3e28 656e ixForEach(en\n+000069b0: 7472 792c 2066 2c20 726f 774f 6666 7365 try, f, rowOffse\n+000069c0: 7420 2b20 726f 7749 6478 2a62 6c6f 636b t + rowIdx*block\n+000069d0: 526f 7773 2c20 636f 6c4f 6666 7365 7420 Rows, colOffset \n+000069e0: 2b20 636f 6c49 6478 2a62 6c6f 636b 436f + colIdx*blockCo\n+000069f0: 6c73 293b 3c2f 6469 763e 0a3c 6469 7620 ls);
    .
    171 \n+00006a50: 2020 2020 2020 2020 2061 7373 6572 7428 assert(\n+00006a60: 2064 756d 6d79 526f 7773 203d 3d20 626c dummyRows == bl\n+00006a70: 6f63 6b52 6f77 7320 616e 6420 6475 6d6d ockRows and dumm\n+00006a80: 7943 6f6c 7320 3d3d 2062 6c6f 636b 436f yCols == blockCo\n+00006a90: 6c73 2061 6e64 203c 7370 616e 2063 6c61 ls and "we need\n+00006ac0: 2074 6865 2073 616d 6520 7369 7a65 206f the same size o\n+00006ad0: 6620 6561 6368 2062 6c6f 636b 2069 6e20 f each block in \n+00006ae0: 7468 6973 206d 6174 7269 7820 7479 7065 this matrix type\n+00006af0: 2671 756f 743b 3c2f 7370 616e 3e29 3b3c ");<\n+00006b00: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00006b50: 3137 323c 2f73 7061 6e3e 2020 2020 2020 172 \n+00006b60: 2020 7d3c 2f64 6976 3e0a 3c64 6976 2063 }
    .
    173 \n+00006bc0: 2020 2020 7d3c 2f64 6976 3e0a 3c64 6976 }
    .<\n+00006c00: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00006c10: 6e6f 223e 2020 3137 343c 2f73 7061 6e3e no\"> 174\n+00006c20: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+00006c70: 2020 3137 353c 2f73 7061 6e3e 2020 2020 175 \n+00006c80: 2020 3c73 7061 6e20 636c 6173 733d 226b retu\n+00006ca0: 726e 3c2f 7370 616e 3e20 7b20 6d61 7472 rn { matr\n+00006cb0: 6978 2e4e 2829 2a62 6c6f 636b 526f 7773 ix.N()*blockRows\n+00006cc0: 2c20 6d61 7472 6978 2e4d 2829 2a62 6c6f , matrix.M()*blo\n+00006cd0: 636b 436f 6c73 207d 3b3c 2f64 6976 3e0a ckCols };
    .\n+00006ce0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+00006d40: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+00006e10: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00006e40: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 178 else.
    17\n+00006ee0: 393c 2f73 7061 6e3e 2020 2020 7b3c 2f64 9 {.
    20\n-00006f40: 343c 2f73 7061 6e3e 2020 2020 7d3c 2f64 4 }.
    .
    205 \n-00006fb0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00007000: 2032 3036 3c2f 7370 616e 3e20 2020 203c 206 <\n-00007010: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00007020: 6f72 6422 3e74 656d 706c 6174 653c 2f73 ord\">template<cl\n-00007050: 6173 733c 2f73 7061 6e3e 2053 2667 743b ass S>\n-00007060: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    .<\n-000070c0: 6120 6964 3d22 6c30 3032 3037 2220 6e61 a id=\"l00207\" na\n-000070d0: 6d65 3d22 6c30 3032 3037 223e 3c2f 613e me=\"l00207\">\n-000070e0: 3c73 7061 6e20 636c 6173 733d 226c 696e 207\n-00007140: 3c2f 613e 3c2f 7370 616e 3e20 2020 203c <\n-00007150: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00007160: 6f72 6474 7970 6522 3e76 6f69 643c 2f73 ordtype\">void setSubMat\n-000071d0: 7269 783c 2f61 3e28 3c73 7061 6e20 636c rix(co\n-000071f0: 6e73 743c 2f73 7061 6e3e 203c 6120 636c nst Matrix& matrix, <\n-00007240: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00007250: 6f72 6422 3e63 6f6e 7374 3c2f 7370 616e ord\">const S& rowInde\n-00007270: 7853 6574 293c 2f64 6976 3e0a 3c64 6976 xSet)
    .<\n-000072b0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-000072c0: 6e6f 223e 2020 3230 383c 2f73 7061 6e3e no\"> 208\n-000072d0: 2020 2020 7b3c 2f64 6976 3e0a 3c64 6976 {
    .<\n-00007310: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00007320: 6e6f 223e 2020 3230 393c 2f73 7061 6e3e no\"> 209\n-00007330: 2020 2020 2020 3c73 7061 6e20 636c 6173 \n-00007350: 6966 3c2f 7370 616e 3e20 2828 6c64 6c4d if ((ldlM\n-00007360: 6174 7269 785f 2e4e 2829 202b 206c 646c atrix_.N() + ldl\n-00007370: 4d61 7472 6978 5f2e 4d28 2920 2667 743b Matrix_.M() >\n-00007380: 2030 2920 7c7c 206d 6174 7269 7849 734c 0) || matrixIsL\n-00007390: 6f61 6465 645f 293c 2f64 6976 3e0a 3c64 oaded_)
    .\n-000073b0: 3c61 2069 643d 226c 3030 3231 3022 206e 210 free()\n-00007400: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-00007450: 2020 3231 313c 2f73 7061 6e3e 203c 2f64 211 .
    21\n-000074b0: 323c 2f73 7061 6e3e 2020 2020 2020 3c73 2 if (ldlMatrix_.N(\n-000074f0: 2920 2b20 6c64 6c4d 6174 7269 785f 2e4d ) + ldlMatrix_.M\n-00007500: 2829 202b 206c 646c 4d61 7472 6978 5f2e () + ldlMatrix_.\n-00007510: 6e6f 6e7a 6572 6f65 7328 2920 213d 2030 nonzeroes() != 0\n-00007520: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n-00007570: 2020 3231 333c 2f73 7061 6e3e 2020 2020 213 \n-00007580: 2020 2020 6c64 6c4d 6174 7269 785f 2e66 ldlMatrix_.f\n-00007590: 7265 6528 293b 3c2f 6469 763e 0a3c 6469 ree();
    .<\n-000075b0: 6120 6964 3d22 6c30 3032 3134 2220 6e61 a id=\"l00214\" na\n-000075c0: 6d65 3d22 6c30 3032 3134 223e 3c2f 613e me=\"l00214\">\n-000075d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 214
    .
    215 \n-00007650: 2020 206c 646c 4d61 7472 6978 5f2e 7365 ldlMatrix_.se\n-00007660: 7453 697a 6528 726f 7749 6e64 6578 5365 tSize(rowIndexSe\n-00007670: 742e 7369 7a65 2829 2a3c 6120 636c 6173 t.size()*MatrixDime\n-000076b0: 6e73 696f 6e26 6c74 3b4d 6174 7269 7826 nsion<Matrix&\n-000076c0: 6774 3b3a 3a72 6f77 6469 6d3c 2f61 3e28 gt;::rowdim(\n-000076d0: 6d61 7472 6978 2920 2f20 6d61 7472 6978 matrix) / matrix\n-000076e0: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .N(),
    \n-00007740: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00007770: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 216 \n-000077a0: 2020 2020 2020 2020 2020 2020 2020 726f ro\n-000077b0: 7749 6e64 6578 5365 742e 7369 7a65 2829 wIndexSet.size()\n-000077c0: 2a3c 6120 636c 6173 733d 2263 6f64 6520 *Ma\n-000077f0: 7472 6978 4469 6d65 6e73 696f 6e26 6c74 trixDimension<\n-00007800: 3b4d 6174 7269 7826 6774 3b3a 3a63 6f6c ;Matrix>::col\n-00007810: 6469 6d3c 2f61 3e28 6d61 7472 6978 2920 dim(matrix) \n-00007820: 2f20 6d61 7472 6978 2e3c 6120 636c 6173 / matrix.M(\n-00007880: 2929 3b3c 2f64 6976 3e0a 3c64 6976 2063 ));
    .
    217 \n-000078e0: 2020 2020 4953 544c 3a3a 496d 706c 3a3a ISTL::Impl::\n-000078f0: 4243 4353 4d61 7472 6978 496e 6974 6961 BCCSMatrixInitia\n-00007900: 6c69 7a65 7226 6c74 3b4d 6174 7269 782c lizer<Matrix,\n-00007910: 2069 6e74 2667 743b 2069 6e69 7469 616c int> initial\n-00007920: 697a 6572 286c 646c 4d61 7472 6978 5f29 izer(ldlMatrix_)\n-00007930: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-00007980: 2020 3231 383c 2f73 7061 6e3e 203c 2f64 218 .
    21\n-000079e0: 393c 2f73 7061 6e3e 2020 2020 2020 636f 9 co\n-000079f0: 7079 546f 4243 4353 4d61 7472 6978 2869 pyToBCCSMatrix(i\n-00007a00: 6e69 7469 616c 697a 6572 2c20 4953 544c nitializer, ISTL\n-00007a10: 3a3a 496d 706c 3a3a 4d61 7472 6978 526f ::Impl::MatrixRo\n-00007a20: 7753 7562 7365 7426 6c74 3b3c 6120 636c wSubset<Matrix,std::set<st\n-00007a70: 643a 3a73 697a 655f 7426 6774 3b20 2667 d::size_t> &g\n-00007a80: 743b 286d 6174 7269 782c 726f 7749 6e64 t;(matrix,rowInd\n-00007a90: 6578 5365 7429 293b 3c2f 6469 763e 0a3c exSet));
    .<\n-00007aa0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00007ab0: 3e3c 6120 6964 3d22 6c30 3032 3230 2220 > 220
    .
    221 \n-00007b50: 2020 2020 2064 6563 6f6d 706f 7365 2829 decompose()\n-00007b60: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-00007bb0: 2020 3232 323c 2f73 7061 6e3e 2020 2020 222 \n-00007bc0: 7d3c 2f64 6976 3e0a 3c2f 6469 763e 0a3c }
    .
    .<\n-00007bd0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00007be0: 3e3c 6120 6964 3d22 6c30 3032 3233 2220 > 223
    .
    \n-00007c70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00007ca0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d \n-00007d00: 2032 3238 3c2f 613e 3c2f 7370 616e 3e20 228 \n-00007d10: 2020 203c 7370 616e 2063 6c61 7373 3d22 inline<\n-00007d30: 2f73 7061 6e3e 203c 7370 616e 2063 6c61 /span> void s\n-00007db0: 6574 5665 7262 6f73 6974 793c 2f61 3e28 etVerbosity(\n-00007dc0: 3c73 7061 6e20 636c 6173 733d 226b 6579 int v)
    .\n-00007e00: 3c61 2069 643d 226c 3030 3232 3922 206e 229 {
    .\n-00007e60: 3c61 2069 643d 226c 3030 3233 3022 206e 230 verbose_\n-00007eb0: 3d76 3b3c 2f64 6976 3e0a 3c64 6976 2063 =v;
    .
    231 \n-00007f10: 2020 7d3c 2f64 6976 3e0a 3c2f 6469 763e }
    .
    \n-00007f20: 0a3c 6469 7620 636c 6173 733d 226c 696e ....<\n-00008170: 6120 6964 3d22 6c30 3032 3338 2220 6e61 a id=\"l00238\" na\n-00008180: 6d65 3d22 6c30 3032 3338 223e 3c2f 613e me=\"l00238\">\n-00008190: 3c73 7061 6e20 636c 6173 733d 226c 696e 238 {
    .<\n-000081d0: 6120 6964 3d22 6c30 3032 3339 2220 6e61 a id=\"l00239\" na\n-000081e0: 6d65 3d22 6c30 3032 3339 223e 3c2f 613e me=\"l00239\">\n-000081f0: 3c73 7061 6e20 636c 6173 733d 226c 696e 239 return l\n-00008240: 646c 4d61 7472 6978 5f3b 3c2f 6469 763e dlMatrix_;
    \n-00008250: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n-000082b0: 0a3c 2f64 6976 3e0a 3c64 6976 2063 6c61 .
    .
    \n-00008300: 2020 3234 313c 2f73 7061 6e3e 203c 2f64 241 .
    .
    246 void free().
    2\n-000084d0: 3437 3c2f 7370 616e 3e20 2020 207b 3c2f 47 {.
    2\n-00008530: 3438 3c2f 7370 616e 3e20 2020 2020 203c 48 <\n-00008540: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00008550: 6f72 6422 3e64 656c 6574 653c 2f73 7061 ord\">delete [] D_;
    .\n-00008570: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    250 \n-00008650: 2020 2020 203c 7370 616e 2063 6c61 7373 delet\n-00008670: 653c 2f73 7061 6e3e 205b 5d20 4c70 5f3b e [] Lp_;\n-00008680: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-000086d0: 2032 3531 3c2f 7370 616e 3e20 2020 2020 251 \n-000086e0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 delete [] Lx_;.
    252\n-00008760: 3c2f 7370 616e 3e20 2020 2020 203c 7370 delete\n-00008790: 205b 5d20 4c69 5f3b 3c2f 6469 763e 0a3c [] Li_;
    .<\n-000087a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-000087b0: 3e3c 6120 6964 3d22 6c30 3032 3533 2220 > 253 d\n-00008810: 656c 6574 653c 2f73 7061 6e3e 205b 5d20 elete [] \n-00008820: 505f 3b3c 2f64 6976 3e0a 3c64 6976 2063 P_;
    .
    254 \n-00008880: 2020 2020 3c73 7061 6e20 636c 6173 733d delete\n-000088a0: 3c2f 7370 616e 3e20 5b5d 2050 696e 765f [] Pinv_\n-000088b0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-00008900: 2020 3235 353c 2f73 7061 6e3e 2020 2020 255 \n-00008910: 2020 6c64 6c4d 6174 7269 785f 2e66 7265 ldlMatrix_.fre\n-00008920: 6528 293b 3c2f 6469 763e 0a3c 6469 7620 e();
    .
    256 \n-00008980: 2020 2020 206d 6174 7269 7849 734c 6f61 matrixIsLoa\n-00008990: 6465 645f 203d 203c 7370 616e 2063 6c61 ded_ = fal\n-000089b0: 7365 3c2f 7370 616e 3e3b 3c2f 6469 763e se;
    \n-000089c0: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n-00008a20: 0a3c 2f64 6976 3e0a 3c64 6976 2063 6c61 .
    .
    \n-00008a70: 2020 3235 383c 2f73 7061 6e3e 203c 2f64 258 .
    ..<\n-00008c50: 6120 6964 3d22 6c30 3032 3631 2220 6e61 a id=\"l00261\" na\n-00008c60: 6d65 3d22 6c30 3032 3631 223e 3c2f 613e me=\"l00261\">\n-00008c70: 3c73 7061 6e20 636c 6173 733d 226c 696e 261 {
    .<\n-00008cb0: 6120 6964 3d22 6c30 3032 3632 2220 6e61 a id=\"l00262\" na\n-00008cc0: 6d65 3d22 6c30 3032 3632 223e 3c2f 613e me=\"l00262\">\n-00008cd0: 3c73 7061 6e20 636c 6173 733d 226c 696e 262 return <\n-00008d20: 7370 616e 2063 6c61 7373 3d22 7374 7269 span class=\"stri\n-00008d30: 6e67 6c69 7465 7261 6c22 3e26 7175 6f74 ngliteral\">"\n-00008d40: 3b4c 444c 2671 756f 743b 3c2f 7370 616e ;LDL";
    .
    263 \n-00008db0: 207d 3c2f 6469 763e 0a3c 2f64 6976 3e0a }
    .
    .\n-00008dc0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 ..
    \n-00008ef0: 2020 3236 393c 2f61 3e3c 2f73 7061 6e3e 269\n-00008f00: 2020 2020 3c73 7061 6e20 636c 6173 733d inline\n-00008f20: 3c2f 7370 616e 3e20 3c73 7061 6e20 636c double*\n-00008f50: 203c 6120 636c 6173 733d 2263 6f64 6520 getD().
    27\n-00009000: 303c 2f73 7061 6e3e 2020 2020 7b3c 2f64 0 {.
    27\n-00009060: 313c 2f73 7061 6e3e 2020 2020 2020 3c73 1 return D_;
    .\n-000090a0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n-00009100: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00009150: 2032 3733 3c2f 7370 616e 3e20 3c2f 6469 273 .
    .
    278\n-00009240: 3c2f 7370 616e 3e20 2020 203c 7370 616e inline <\n-00009270: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00009280: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int* getLp\n-000092f0: 2829 3c2f 6469 763e 0a3c 6469 7620 636c ()
    .
    279 \n-00009350: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    280 \n-000093b0: 2020 203c 7370 616e 2063 6c61 7373 3d22 ret\n-000093d0: 7572 6e3c 2f73 7061 6e3e 204c 705f 3b3c urn Lp_;<\n-000093e0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00009430: 3238 313c 2f73 7061 6e3e 2020 2020 7d3c 281 }<\n-00009440: 2f64 6976 3e0a 3c2f 6469 763e 0a3c 6469 /div>.
    .<\n-00009460: 6120 6964 3d22 6c30 3032 3832 2220 6e61 a id=\"l00282\" na\n-00009470: 6d65 3d22 6c30 3032 3832 223e 3c2f 613e me=\"l00282\">\n-00009480: 3c73 7061 6e20 636c 6173 733d 226c 696e 282
    .
    .<\n-000094f0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00009500: 3e3c 6120 6964 3d22 6c30 3032 3837 2220 > 2\n-00009580: 3837 3c2f 613e 3c2f 7370 616e 3e20 2020 87 \n-00009590: 203c 7370 616e 2063 6c61 7373 3d22 6b65 inline i\n-000095d0: 6e74 3c2f 7370 616e 3e2a 203c 6120 636c nt* get\n-00009630: 4c69 3c2f 613e 2829 3c2f 6469 763e 0a3c Li()
    .<\n-00009640: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00009650: 3e3c 6120 6964 3d22 6c30 3032 3838 2220 > 288 {
    .<\n-000096a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-000096b0: 3e3c 6120 6964 3d22 6c30 3032 3839 2220 > 289 return\n-00009720: 204c 695f 3b3c 2f64 6976 3e0a 3c64 6976 Li_;
    .<\n-00009760: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00009770: 6e6f 223e 2020 3239 303c 2f73 7061 6e3e no\"> 290\n-00009780: 2020 2020 7d3c 2f64 6976 3e0a 3c2f 6469 }
    ..
    291\n-000097e0: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n-000097f0: 6469 7620 636c 6173 733d 2266 6f6c 646f div class=\"foldo\n-00009800: 7065 6e22 2069 643d 2266 6f6c 646f 7065 pen\" id=\"foldope\n-00009810: 6e30 3032 3936 2220 6461 7461 2d73 7461 n00296\" data-sta\n-00009820: 7274 3d22 7b22 2064 6174 612d 656e 643d rt=\"{\" data-end=\n-00009830: 227d 223e 0a3c 6469 7620 636c 6173 733d \"}\">.
    296 inl\n-000098f0: 696e 653c 2f73 7061 6e3e 203c 7370 616e ine double* getLx(\n-00009980: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n-000099d0: 2020 3239 373c 2f73 7061 6e3e 2020 2020 297 \n-000099e0: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n-00009a30: 2020 3239 383c 2f73 7061 6e3e 2020 2020 298 \n-00009a40: 2020 3c73 7061 6e20 636c 6173 733d 226b retu\n-00009a60: 726e 3c2f 7370 616e 3e20 4c78 5f3b 3c2f rn Lx_;.
    2\n-00009ac0: 3939 3c2f 7370 616e 3e20 2020 207d 3c2f 99 }.
    .<\n-00009b10: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00009b20: 6e6f 223e 2020 3330 303c 2f73 7061 6e3e no\"> 300\n-00009b30: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n-00009b80: 2020 3330 313c 2f73 7061 6e3e 2020 2020 301 \n-00009b90: 3c73 7061 6e20 636c 6173 733d 226b 6579 private:
    .<\n-00009bf0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00009c00: 6e6f 223e 2020 3330 323c 2f73 7061 6e3e no\"> 302\n-00009c10: 2020 2020 3c73 7061 6e20 636c 6173 733d templa\n-00009c30: 7465 3c2f 7370 616e 3e26 6c74 3b3c 7370 te<class \n-00009c60: 4d2c 3c73 7061 6e20 636c 6173 733d 226b M,class X, cl\n-00009ca0: 6173 733c 2f73 7061 6e3e 2054 4d2c 203c ass TM, <\n-00009cb0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00009cc0: 6f72 6422 3e63 6c61 7373 3c2f 7370 616e ord\">class TD, clas\n-00009cf0: 733c 2f73 7061 6e3e 2054 3126 6774 3b3c s T1><\n-00009d00: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    303 fr\n-00009dc0: 6965 6e64 3c2f 7370 616e 3e20 3c73 7061 iend class <\n-00009df0: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n-00009e00: 5f63 6c61 7373 2220 6872 6566 3d22 6130 _class\" href=\"a0\n-00009e10: 3134 3132 2e68 746d 6c22 3e53 6571 4f76 1412.html\">SeqOv\n-00009e20: 6572 6c61 7070 696e 6753 6368 7761 727a erlappingSchwarz\n-00009e30: 3c2f 613e 3b3c 2f64 6976 3e0a 3c64 6976 ;
    .<\n-00009e70: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00009e80: 6e6f 223e 2020 3330 343c 2f73 7061 6e3e no\"> 304
    \n-00009e90: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n-00009ee0: 2020 3330 353c 2f73 7061 6e3e 2020 2020 305 \n-00009ef0: 3c73 7061 6e20 636c 6173 733d 226b 6579 friend struct\n-00009f30: 203c 2f73 7061 6e3e 3c61 2063 6c61 7373 SeqOverlapp\n-00009f70: 696e 6753 6368 7761 727a 4173 7365 6d62 ingSchwarzAssemb\n-00009f80: 6c65 7248 656c 7065 723c 2f61 3e26 6c74 lerHelper<\n-00009f90: 3b3c 6120 636c 6173 733d 2263 6f64 6520 ;LDL\n-00009fc0: 3c2f 613e 266c 743b 3c61 2063 6c61 7373 <Matrix&g\n-0000a000: 743b 2c74 7275 6526 6774 3b3b 3c2f 6469 t;,true>;.
    306\n-0000a060: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n-0000a070: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000a080: 3e3c 6120 6964 3d22 6c30 3033 3038 2220 > 308 void dec\n-0000a0f0: 6f6d 706f 7365 2829 3c2f 6469 763e 0a3c ompose()
    .<\n-0000a100: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000a110: 3e3c 6120 6964 3d22 6c30 3033 3039 2220 > 309 {
    .<\n-0000a160: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000a170: 3e3c 6120 6964 3d22 6c30 3033 3130 2220 > 310 /\n-0000a1d0: 2f20 616c 6c6f 6361 7465 2076 6563 746f / allocate vecto\n-0000a1e0: 7273 3c2f 7370 616e 3e3c 2f64 6976 3e0a rs
    .\n-0000a1f0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n-0000a2b0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n-0000a3b0: 2020 3331 333c 2f73 7061 6e3e 2020 2020 313 \n-0000a3c0: 2020 595f 203d 203c 7370 616e 2063 6c61 Y_ = new\n-0000a3e0: 3c2f 7370 616e 3e20 3c73 7061 6e20 636c double \n-0000a410: 5b64 696d 4d61 745d 3b3c 2f64 6976 3e0a [dimMat];
    .\n-0000a420: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    315 \n-0000a530: 2020 2020 5061 7265 6e74 5f20 3d20 3c73 Parent_ = new <\n-0000a560: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-0000a570: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int [dimMat];.
    31\n-0000a5e0: 363c 2f73 7061 6e3e 2020 2020 2020 4c6e 6 Ln\n-0000a5f0: 7a5f 203d 203c 7370 616e 2063 6c61 7373 z_ = new \n-0000a630: 696e 743c 2f73 7061 6e3e 205b 6469 6d4d int [dimM\n-0000a640: 6174 5d3b 3c2f 6469 763e 0a3c 6469 7620 at];
    .
    317 \n-0000a6a0: 2020 2020 2046 6c61 675f 203d 203c 7370 Flag_ = new int [dimMat];.
    318\n-0000a750: 3c2f 7370 616e 3e20 2020 2020 2050 6174 Pat\n-0000a760: 7465 726e 5f20 3d20 3c73 7061 6e20 636c tern_ = ne\n-0000a780: 773c 2f73 7061 6e3e 203c 7370 616e 2063 w int [d\n-0000a7b0: 696d 4d61 745d 3b3c 2f64 6976 3e0a 3c64 imMat];
    .\n-0000a7d0: 3c61 2069 643d 226c 3030 3331 3922 206e 319 P_ = new int [dimMat];.
    320\n-0000a8c0: 3c2f 7370 616e 3e20 2020 2020 2050 696e Pin\n-0000a8d0: 765f 203d 203c 7370 616e 2063 6c61 7373 v_ = new \n-0000a910: 696e 743c 2f73 7061 6e3e 205b 6469 6d4d int [dimM\n-0000a920: 6174 5d3b 3c2f 6469 763e 0a3c 6469 7620 at];
    .
    321 \n-0000a980: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000a9d0: 2033 3232 3c2f 7370 616e 3e20 2020 2020 322 \n-0000a9e0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 doubl\n-0000aa00: 653c 2f73 7061 6e3e 2049 6e66 6f20 5b41 e Info [A\n-0000aa10: 4d44 5f49 4e46 4f5d 3b3c 2f64 6976 3e0a MD_INFO];
    .\n-0000aa20: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n-0000aa50: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 323 if(am\n-0000aaa0: 645f 6f72 6465 7220 2864 696d 4d61 742c d_order (dimMat,\n-0000aab0: 206c 646c 4d61 7472 6978 5f2e 6765 7443 ldlMatrix_.getC\n-0000aac0: 6f6c 5374 6172 7428 292c 206c 646c 4d61 olStart(), ldlMa\n-0000aad0: 7472 6978 5f2e 6765 7452 6f77 496e 6465 trix_.getRowInde\n-0000aae0: 7828 292c 2050 5f2c 2028 3c73 7061 6e20 x(), P_, (double *) NULL, Info)\n-0000ab20: 2026 6c74 3b20 414d 445f 4f4b 293c 2f64 < AMD_OK).
    32\n-0000ab80: 343c 2f73 7061 6e3e 2020 2020 2020 2020 4 \n-0000ab90: 4455 4e45 5f54 4852 4f57 2849 6e76 616c DUNE_THROW(Inval\n-0000aba0: 6964 5374 6174 6545 7863 6570 7469 6f6e idStateException\n-0000abb0: 2c3c 7370 616e 2063 6c61 7373 3d22 7374 ,&qu\n-0000abd0: 6f74 3b45 7272 6f72 3a20 414d 4420 6661 ot;Error: AMD fa\n-0000abe0: 696c 6564 2126 7175 6f74 3b3c 2f73 7061 iled!");
    .
    325 \n-0000ac50: 2020 2020 203c 7370 616e 2063 6c61 7373 i\n-0000ac70: 663c 2f73 7061 6e3e 2876 6572 626f 7365 f(verbose\n-0000ac80: 5f20 2667 743b 2030 293c 2f64 6976 3e0a _ > 0)
    .\n-0000ac90: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n-0000acc0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 326 amd_\n-0000acf0: 696e 666f 2028 496e 666f 293b 3c2f 6469 info (Info);.
    327\n-0000ad50: 3c2f 7370 616e 3e20 2020 2020 203c 7370 // compute th\n-0000ad80: 6520 7379 6d62 6f6c 6963 2066 6163 746f e symbolic facto\n-0000ad90: 7269 7361 7469 6f6e 3c2f 7370 616e 3e3c risation<\n-0000ada0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-0000adf0: 3332 383c 2f73 7061 6e3e 2020 2020 2020 328 \n-0000ae00: 6c64 6c5f 7379 6d62 6f6c 6963 2864 696d ldl_symbolic(dim\n-0000ae10: 4d61 742c 206c 646c 4d61 7472 6978 5f2e Mat, ldlMatrix_.\n-0000ae20: 6765 7443 6f6c 5374 6172 7428 292c 206c getColStart(), l\n-0000ae30: 646c 4d61 7472 6978 5f2e 6765 7452 6f77 dlMatrix_.getRow\n-0000ae40: 496e 6465 7828 292c 204c 705f 2c20 5061 Index(), Lp_, Pa\n-0000ae50: 7265 6e74 5f2c 204c 6e7a 5f2c 2046 6c61 rent_, Lnz_, Fla\n-0000ae60: 675f 2c20 505f 2c20 5069 6e76 5f29 3b3c g_, P_, Pinv_);<\n-0000ae70: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-0000aec0: 3332 393c 2f73 7061 6e3e 2020 2020 2020 329 \n-0000aed0: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // initial\n-0000aef0: 6973 6520 7468 6f73 6520 656e 7472 6965 ise those entrie\n-0000af00: 7320 6f66 2061 6464 6974 696f 6e61 6c56 s of additionalV\n-0000af10: 6563 746f 7273 5f20 7768 6f73 6520 6469 ectors_ whose di\n-0000af20: 6d65 6e73 696f 6e20 6973 206b 6e6f 776e mension is known\n-0000af30: 206f 6e6c 7920 6e6f 773c 2f73 7061 6e3e only now\n-0000af40: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000af90: 2033 3330 3c2f 7370 616e 3e20 2020 2020 330 \n-0000afa0: 204c 785f 203d 203c 7370 616e 2063 6c61 Lx_ = new\n-0000afc0: 3c2f 7370 616e 3e20 3c73 7061 6e20 636c double \n-0000aff0: 5b4c 705f 5b64 696d 4d61 745d 5d3b 3c2f [Lp_[dimMat]];.
    3\n-0000b050: 3331 3c2f 7370 616e 3e20 2020 2020 204c 31 L\n-0000b060: 695f 203d 203c 7370 616e 2063 6c61 7373 i_ = new \n-0000b0a0: 696e 743c 2f73 7061 6e3e 205b 4c70 5f5b int [Lp_[\n-0000b0b0: 6469 6d4d 6174 5d5d 3b3c 2f64 6976 3e0a dimMat]];
    .\n-0000b0c0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n-0000b0f0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 332 \n-0000b130: 2f2f 2063 6f6d 7075 7465 2074 6865 206e // compute the n\n-0000b140: 756d 6572 6963 2066 6163 746f 7269 7361 umeric factorisa\n-0000b150: 7469 6f6e 3c2f 7370 616e 3e3c 2f64 6976 tion.
    333<\n-0000b1b0: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> const <\n-0000b1e0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-0000b1f0: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int rank(ldl_num\n-0000b210: 6572 6963 2864 696d 4d61 742c 206c 646c eric(dimMat, ldl\n-0000b220: 4d61 7472 6978 5f2e 6765 7443 6f6c 5374 Matrix_.getColSt\n-0000b230: 6172 7428 292c 206c 646c 4d61 7472 6978 art(), ldlMatrix\n-0000b240: 5f2e 6765 7452 6f77 496e 6465 7828 292c _.getRowIndex(),\n-0000b250: 206c 646c 4d61 7472 6978 5f2e 6765 7456 ldlMatrix_.getV\n-0000b260: 616c 7565 7328 292c 3c2f 6469 763e 0a3c alues(),
    .<\n-0000b270: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000b280: 3e3c 6120 6964 3d22 6c30 3033 3334 2220 > 334 \n-0000b2d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b2e0: 2020 2020 4c70 5f2c 2050 6172 656e 745f Lp_, Parent_\n-0000b2f0: 2c20 4c6e 7a5f 2c20 4c69 5f2c 204c 785f , Lnz_, Li_, Lx_\n-0000b300: 2c20 445f 2c20 595f 2c20 5061 7474 6572 , D_, Y_, Patter\n-0000b310: 6e5f 2c20 466c 6167 5f2c 2050 5f2c 2050 n_, Flag_, P_, P\n-0000b320: 696e 765f 2929 3b3c 2f64 6976 3e0a 3c64 inv_));
    .\n-0000b340: 3c61 2069 643d 226c 3030 3333 3522 206e 335 //\n-0000b3a0: 2066 7265 6520 7465 6d70 6f72 6172 7920 free temporary \n-0000b3b0: 7665 6374 6f72 733c 2f73 7061 6e3e 3c2f vectors.
    3\n-0000b410: 3336 3c2f 7370 616e 3e20 2020 2020 203c 36 <\n-0000b420: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-0000b430: 6f72 6422 3e64 656c 6574 653c 2f73 7061 ord\">delete [] Flag_;.
    337\n-0000b4a0: 3c2f 7370 616e 3e20 2020 2020 203c 7370 delete\n-0000b4d0: 205b 5d20 5061 7474 6572 6e5f 3b3c 2f64 [] Pattern_;.
    33\n-0000b530: 383c 2f73 7061 6e3e 2020 2020 2020 3c73 8 delete [] Parent_;.
    33\n-0000b5c0: 393c 2f73 7061 6e3e 2020 2020 2020 3c73 9 delete [] Lnz_;
    \n-0000b600: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n-0000b670: 6120 6964 3d22 6c30 3033 3431 2220 6e61 a id=\"l00341\" na\n-0000b680: 6d65 3d22 6c30 3033 3431 223e 3c2f 613e me=\"l00341\">\n-0000b690: 3c73 7061 6e20 636c 6173 733d 226c 696e 341 if(rank!\n-0000b6e0: 3d64 696d 4d61 7429 3c2f 6469 763e 0a3c =dimMat)
    .<\n-0000b6f0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000b700: 3e3c 6120 6964 3d22 6c30 3033 3432 2220 > 342 DUNE_\n-0000b750: 5448 524f 5728 496e 7661 6c69 6453 7461 THROW(InvalidSta\n-0000b760: 7465 4578 6365 7074 696f 6e2c 3c73 7061 teException,"Er\n-0000b790: 726f 723a 204c 444c 2066 6163 746f 7269 ror: LDL factori\n-0000b7a0: 7361 7469 6f6e 2066 6169 6c65 6421 2671 sation failed!&q\n-0000b7b0: 756f 743b 3c2f 7370 616e 3e29 3b3c 2f64 uot;);.
    34\n-0000b810: 333c 2f73 7061 6e3e 2020 2020 7d3c 2f64 3 }.
    34\n-0000b870: 343c 2f73 7061 6e3e 203c 2f64 6976 3e0a 4
    .\n-0000b880: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n-0000b8b0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 345 LDLMatri\n-0000b8e0: 7820 6c64 6c4d 6174 7269 785f 3b3c 2f64 x ldlMatrix_;.
    34\n-0000b940: 363c 2f73 7061 6e3e 2020 2020 3c73 7061 6 bool matrixIsLoaded\n-0000b980: 5f3b 3c2f 6469 763e 0a3c 6469 7620 636c _;
    .
    347 \n-0000b9e0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 int verbose_;<\n-0000ba10: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-0000ba60: 3334 383c 2f73 7061 6e3e 2020 2020 3c73 348 int* Lp_;
    .<\n-0000baa0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000bab0: 3e3c 6120 6964 3d22 6c30 3033 3439 2220 > 349 int* Par\n-0000bb20: 656e 745f 3b3c 2f64 6976 3e0a 3c64 6976 ent_;
    .<\n-0000bb60: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000bb70: 6e6f 223e 2020 3335 303c 2f73 7061 6e3e no\"> 350\n-0000bb80: 2020 2020 3c73 7061 6e20 636c 6173 733d in\n-0000bba0: 743c 2f73 7061 6e3e 2a20 4c6e 7a5f 3b3c t* Lnz_;<\n-0000bbb0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-0000bc00: 3335 313c 2f73 7061 6e3e 2020 2020 3c73 351 int* Flag_;
    \n-0000bc40: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-0000bc70: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 352 int* P\n-0000bcc0: 6174 7465 726e 5f3b 3c2f 6469 763e 0a3c attern_;
    .<\n-0000bcd0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000bce0: 3e3c 6120 6964 3d22 6c30 3033 3533 2220 > 353 int* P_;\n-0000bd50: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000bda0: 2033 3534 3c2f 7370 616e 3e20 2020 203c 354 <\n-0000bdb0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-0000bdc0: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int* Pinv_;.
    355<\n-0000be30: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> double* D_;
    .<\n-0000be80: 6120 6964 3d22 6c30 3033 3536 2220 6e61 a id=\"l00356\" na\n-0000be90: 6d65 3d22 6c30 3033 3536 223e 3c2f 613e me=\"l00356\">\n-0000bea0: 3c73 7061 6e20 636c 6173 733d 226c 696e 356 d\n-0000bee0: 6f75 626c 653c 2f73 7061 6e3e 2a20 595f ouble* Y_\n-0000bef0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-0000bf40: 2020 3335 373c 2f73 7061 6e3e 2020 2020 357 \n-0000bf50: 3c73 7061 6e20 636c 6173 733d 226b 6579 double\n-0000bf70: 3c2f 7370 616e 3e2a 204c 785f 3b3c 2f64 * Lx_;.
    35\n-0000bfd0: 383c 2f73 7061 6e3e 2020 2020 3c73 7061 8 int\n-0000c000: 2a20 4c69 5f3b 3c2f 6469 763e 0a3c 6469 * Li_;
    .<\n-0000c020: 6120 6964 3d22 6c30 3033 3539 2220 6e61 a id=\"l00359\" na\n-0000c030: 6d65 3d22 6c30 3033 3539 223e 3c2f 613e me=\"l00359\">\n-0000c040: 3c73 7061 6e20 636c 6173 733d 226c 696e 359 };
    ..
    360\n-0000c0c0: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n-0000c0d0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000c0e0: 3e3c 6120 6964 3d22 6c30 3033 3631 2220 > 361 templ\n-0000c140: 6174 653c 2f73 7061 6e3e 266c 743b 3c73 ate<typename T, typ\n-0000c190: 656e 616d 653c 2f73 7061 6e3e 2041 2c20 ename A, \n-0000c1a0: 3c73 7061 6e20 636c 6173 733d 226b 6579 int n, int m&g\n-0000c1f0: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    .\n-0000c240: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n-0000c440: 2020 3336 333c 2f73 7061 6e3e 2020 7b3c 363 {<\n-0000c450: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    364<\n-0000c510: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n-0000c530: 656e 756d 3c2f 7370 616e 3e20 7b3c 6120 enum {\n-0000c5b0: 7661 6c75 653c 2f61 3e20 3d20 3c73 7061 value = true};<\n-0000c5e0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-0000c630: 3336 353c 2f73 7061 6e3e 2020 7d3b 3c2f 365 };.
    .<\n-0000c680: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000c690: 6e6f 223e 2020 3336 363c 2f73 7061 6e3e no\"> 366\n-0000c6a0: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n-0000c6f0: 2020 3336 373c 2f73 7061 6e3e 2020 3c73 367 template<typ\n-0000c740: 656e 616d 653c 2f73 7061 6e3e 2054 2c20 ename T, \n-0000c750: 3c73 7061 6e20 636c 6173 733d 226b 6579 typename A, int n,\n-0000c7a0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 int m>.
    .
    368 stru\n-0000c8b0: 6374 203c 2f73 7061 6e3e 3c61 2063 6c61 ct StoresCol\n-0000c8f0: 756d 6e43 6f6d 7072 6573 7365 643c 2f61 umnCompressed<LDL<BCRSMatr\n-0000c970: 6978 3c2f 613e 266c 743b 3c61 2063 6c61 ix<FieldMatri\n-0000c9b0: 783c 2f61 3e26 6c74 3b54 2c6e 2c6d 2667 x<T,n,m&g\n-0000c9c0: 743b 2c41 2667 743b 2026 6774 3b20 2667 t;,A> > &g\n-0000c9d0: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    369 {\n-0000ca30: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    <\n-0000ca80: 6120 636c 6173 733d 226c 696e 6522 2068 a class=\"line\" h\n-0000ca90: 7265 663d 2261 3030 3233 332e 6874 6d6c ref=\"a00233.html\n-0000caa0: 2367 6761 3562 3266 3636 6561 3432 6332 #gga5b2f66ea42c2\n-0000cab0: 3431 6561 6461 3164 3035 3535 3335 3163 41eada1d0555351c\n-0000cac0: 3636 6538 6136 3365 3238 3631 6234 3135 66e8a63e2861b415\n-0000cad0: 3730 3938 6664 3164 3963 6334 3365 3236 7098fd1d9cc43e26\n-0000cae0: 6633 3339 3922 3e20 2033 3730 3c2f 613e f3399\"> 370\n-0000caf0: 3c2f 7370 616e 3e20 2020 203c 7370 616e enum {value = true};\n-0000cbc0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000cc10: 2033 3731 3c2f 7370 616e 3e20 207d 3b3c 371 };<\n-0000cc20: 2f64 6976 3e0a 3c2f 6469 763e 0a3c 6469 /div>.
    .<\n-0000cc40: 6120 6964 3d22 6c30 3033 3732 2220 6e61 a id=\"l00372\" na\n-0000cc50: 6d65 3d22 6c30 3033 3732 223e 3c2f 613e me=\"l00372\">\n-0000cc60: 3c73 7061 6e20 636c 6173 733d 226c 696e 372
    .
    .\n-0000ccd0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n-0000cd00: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 373\n-0000cd40: 3c2f 613e 3c2f 7370 616e 3e20 203c 7370 struct LD\n-0000cda0: 4c43 7265 6174 6f72 3c2f 613e 207b 3c2f LCreator {.
    \n-0000ce20: 2020 3337 343c 2f61 3e3c 2f73 7061 6e3e 374\n-0000ce30: 2020 2020 3c73 7061 6e20 636c 6173 733d templa\n-0000ce50: 7465 3c2f 7370 616e 3e26 6c74 3b3c 7370 te<class \n-0000ce80: 4626 6774 3b20 3c73 7061 6e20 636c 6173 F> stru\n-0000cea0: 6374 203c 2f73 7061 6e3e 3c61 2063 6c61 ct isValidBl\n-0000cee0: 6f63 6b3c 2f61 3e20 3a20 7374 643a 3a66 ock : std::f\n-0000cef0: 616c 7365 5f74 7970 657b 7d3b 3c2f 6469 alse_type{};.
    \n-0000cf70: 3337 353c 2f61 3e3c 2f73 7061 6e3e 2020 375 \n-0000cf80: 2020 3c73 7061 6e20 636c 6173 733d 226b template\n-0000cfa0: 3c2f 7370 616e 3e26 6c74 3b3c 7370 616e <int \n-0000cfd0: 6b26 6774 3b20 3c73 7061 6e20 636c 6173 k> stru\n-0000cff0: 6374 203c 2f73 7061 6e3e 3c61 2063 6c61 ct isValidBl\n-0000d030: 6f63 6b3c 2f61 3e26 6c74 3b46 6965 6c64 ock<Field\n-0000d040: 5665 6374 6f72 266c 743b 646f 7562 6c65 Vector<double\n-0000d050: 2c6b 2667 743b 2667 743b 203a 2073 7464 ,k>> : std\n-0000d060: 3a3a 7472 7565 5f74 7970 657b 7d3b 3c2f ::true_type{};.
    3\n-0000d0c0: 3736 3c2f 7370 616e 3e20 3c2f 6469 763e 76
    \n-0000d0d0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-0000d100: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 377 t\n-0000d140: 656d 706c 6174 653c 2f73 7061 6e3e 266c emplate&l\n-0000d150: 743b 3c73 7061 6e20 636c 6173 733d 226b t;typename\n-0000d170: 3c2f 7370 616e 3e20 544c 2c20 3c73 7061 TL, typename M>
    .\n-0000d1c0: 3c61 2069 643d 226c 3030 3337 3822 206e 378 std::share\n-0000d210: 645f 7074 7226 6c74 3b44 756e 653a 3a49 d_ptr<Dune::I\n-0000d220: 6e76 6572 7365 4f70 6572 6174 6f72 266c nverseOperator&l\n-0000d230: 743b 7479 7065 6e61 6d65 2044 756e 653a t;typename Dune:\n-0000d240: 3a54 7970 654c 6973 7445 6c65 6d65 6e74 :TypeListElement\n-0000d250: 266c 743b 312c 2054 4c26 6774 3b3a 3a74 <1, TL>::t\n-0000d260: 7970 652c 3c2f 6469 763e 0a3c 6469 7620 ype,
    .
    379 \n-0000d2c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d2d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d2e0: 2020 2020 2020 2020 203c 7370 616e 2063 t\n-0000d300: 7970 656e 616d 653c 2f73 7061 6e3e 2044 ypename D\n-0000d310: 756e 653a 3a54 7970 654c 6973 7445 6c65 une::TypeListEle\n-0000d320: 6d65 6e74 266c 743b 322c 2054 4c26 6774 ment<2, TL>\n-0000d330: 3b3a 3a74 7970 6526 6774 3b26 6774 3b3c ;::type>><\n-0000d340: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    .<\n-0000d3c0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000d3d0: 6e6f 223e 3c61 2063 6c61 7373 3d22 6c69 no\"> 380<\n-0000d420: 2f61 3e3c 2f73 7061 6e3e 2020 2020 3c61 /a> \n-0000d480: 6f70 6572 6174 6f72 2829 203c 2f61 3e28 operator() (\n-0000d490: 544c 203c 7370 616e 2063 6c61 7373 3d22 TL /*tl*/<\n-0000d4b0: 2f73 7061 6e3e 2c20 3c73 7061 6e20 636c /span>, co\n-0000d4d0: 6e73 743c 2f73 7061 6e3e 204d 2661 6d70 nst M&\n-0000d4e0: 3b20 3c61 2063 6c61 7373 3d22 636f 6465 ; mat, const \n-0000d560: 4475 6e65 3a3a 5061 7261 6d65 7465 7254 Dune::ParameterT\n-0000d570: 7265 6526 616d 703b 2063 6f6e 6669 672c ree& config,\n-0000d580: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000d5d0: 2033 3831 3c2f 7370 616e 3e20 2020 2020 381 \n-0000d5e0: 2073 7464 3a3a 656e 6162 6c65 5f69 665f std::enable_if_\n-0000d5f0: 7426 6c74 3b3c 2f64 6976 3e0a 3c64 6976 t<
    .<\n-0000d630: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000d640: 6e6f 223e 2020 3338 323c 2f73 7061 6e3e no\"> 382\n-0000d650: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d660: 3c61 2063 6c61 7373 3d22 636f 6465 2068 isV\n-0000d690: 616c 6964 426c 6f63 6b3c 2f61 3e26 6c74 alidBlock<\n-0000d6a0: 3b3c 7370 616e 2063 6c61 7373 3d22 6b65 ;typename<\n-0000d6c0: 2f73 7061 6e3e 2044 756e 653a 3a54 7970 /span> Dune::Typ\n-0000d6d0: 654c 6973 7445 6c65 6d65 6e74 266c 743b eListElement<\n-0000d6e0: 312c 2054 4c26 6774 3b3a 3a74 7970 653a 1, TL>::type:\n-0000d6f0: 3a62 6c6f 636b 5f74 7970 6526 6774 3b3a :block_type>:\n-0000d700: 3a76 616c 7565 2c3c 7370 616e 2063 6c61 :value,int> \n-0000d730: 3d20 3029 3c73 7061 6e20 636c 6173 733d = 0) const\n-0000d750: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n-0000d770: 3c61 2069 643d 226c 3030 3338 3322 206e 383 {
    .
    384 \n-0000d830: 2020 2020 203c 7370 616e 2063 6c61 7373 i\n-0000d850: 6e74 3c2f 7370 616e 3e20 7665 7262 6f73 nt verbos\n-0000d860: 6520 3d20 636f 6e66 6967 2e67 6574 283c e = config.get(<\n-0000d870: 7370 616e 2063 6c61 7373 3d22 7374 7269 span class=\"stri\n-0000d880: 6e67 6c69 7465 7261 6c22 3e26 7175 6f74 ngliteral\">"\n-0000d890: 3b76 6572 626f 7365 2671 756f 743b 3c2f ;verbose", 0);
    \n-0000d8b0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-0000d8e0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 385 return std::make_sha\n-0000d940: 7265 6426 6c74 3b44 756e 653a 3a4c 444c red<Dune::LDL\n-0000d950: 266c 743b 4d26 6774 3b26 6774 3b28 3c61 <M>>(\n-0000d9b0: 6d61 743c 2f61 3e2c 7665 7262 6f73 6529 mat,verbose)\n-0000d9c0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-0000da10: 2020 3338 363c 2f73 7061 6e3e 2020 2020 386 \n-0000da20: 7d3c 2f64 6976 3e0a 3c2f 6469 763e 0a3c }
    .
    .<\n-0000da30: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000da40: 3e3c 6120 6964 3d22 6c30 3033 3837 2220 > 387
    .
    388 \n-0000dae0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // seco\n-0000db00: 6e64 2076 6572 7369 6f6e 2077 6974 6820 nd version with \n-0000db10: 5346 494e 4145 2074 6f20 7661 6c69 6461 SFINAE to valida\n-0000db20: 7465 2074 6865 2074 656d 706c 6174 6520 te the template \n-0000db30: 7061 7261 6d65 7465 7273 206f 6620 4c44 parameters of LD\n-0000db40: 4c3c 2f73 7061 6e3e 3c2f 6469 763e 0a3c L
    .<\n-0000db50: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000db60: 3e3c 6120 6964 3d22 6c30 3033 3839 2220 > 389 tem\n-0000dbc0: 706c 6174 653c 2f73 7061 6e3e 266c 743b plate<\n-0000dbd0: 3c73 7061 6e20 636c 6173 733d 226b 6579 typename TL, \n-0000dc10: 7479 7065 6e61 6d65 3c2f 7370 616e 3e20 typename \n-0000dc20: 4d26 6774 3b3c 2f64 6976 3e0a 3c64 6976 M>
    .<\n-0000dc60: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000dc70: 6e6f 223e 2020 3339 303c 2f73 7061 6e3e no\"> 390\n-0000dc80: 2020 2020 7374 643a 3a73 6861 7265 645f std::shared_\n-0000dc90: 7074 7226 6c74 3b44 756e 653a 3a49 6e76 ptr<Dune::Inv\n-0000dca0: 6572 7365 4f70 6572 6174 6f72 266c 743b erseOperator<\n-0000dcb0: 7479 7065 6e61 6d65 2044 756e 653a 3a54 typename Dune::T\n-0000dcc0: 7970 654c 6973 7445 6c65 6d65 6e74 266c ypeListElement&l\n-0000dcd0: 743b 312c 2054 4c26 6774 3b3a 3a74 7970 t;1, TL>::typ\n-0000dce0: 652c 3c2f 6469 763e 0a3c 6469 7620 636c e,
    .
    391 \n-0000dd40: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dd50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dd60: 2020 2020 2020 203c 7370 616e 2063 6c61 typ\n-0000dd80: 656e 616d 653c 2f73 7061 6e3e 2044 756e ename Dun\n-0000dd90: 653a 3a54 7970 654c 6973 7445 6c65 6d65 e::TypeListEleme\n-0000dda0: 6e74 266c 743b 322c 2054 4c26 6774 3b3a nt<2, TL>:\n-0000ddb0: 3a74 7970 6526 6774 3b26 6774 3b3c 2f64 :type>>.
    .
    392 op\n-0000df00: 6572 6174 6f72 2829 203c 2f61 3e28 544c erator() (TL\n-0000df10: 203c 7370 616e 2063 6c61 7373 3d22 636f /*tl*/, cons\n-0000df50: 743c 2f73 7061 6e3e 204d 2661 6d70 3b20 t M& \n-0000df60: 3c73 7061 6e20 636c 6173 733d 2263 6f6d /*mat*/, cons\n-0000dfa0: 743c 2f73 7061 6e3e 2044 756e 653a 3a50 t Dune::P\n-0000dfb0: 6172 616d 6574 6572 5472 6565 2661 6d70 arameterTree&\n-0000dfc0: 3b20 3c73 7061 6e20 636c 6173 733d 2263 ; /*config\n-0000dfe0: 2a2f 3c2f 7370 616e 3e2c 3c2f 6469 763e */,
    \n-0000dff0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-0000e020: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 393 std::\n-0000e050: 656e 6162 6c65 5f69 665f 7426 6c74 3b3c enable_if_t<<\n-0000e060: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-0000e0b0: 3339 343c 2f73 7061 6e3e 2020 2020 2020 394 \n-0000e0c0: 2020 2020 2020 2020 2020 213c 6120 636c !isValidB\n-0000e100: 6c6f 636b 3c2f 613e 266c 743b 3c73 7061 lock<typename Dune::TypeList\n-0000e140: 456c 656d 656e 7426 6c74 3b31 2c20 544c Element<1, TL\n-0000e150: 2667 743b 3a3a 7479 7065 3a3a 626c 6f63 >::type::bloc\n-0000e160: 6b5f 7479 7065 2667 743b 3a3a 7661 6c75 k_type>::valu\n-0000e170: 652c 3c73 7061 6e20 636c 6173 733d 226b e,int<\n-0000e190: 2f73 7061 6e3e 2667 743b 203d 2030 293c /span>> = 0)<\n-0000e1a0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-0000e1b0: 6f72 6422 3e20 636f 6e73 743c 2f73 7061 ord\"> const
    .
    395 {<\n-0000e240: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-0000e290: 3339 363c 2f73 7061 6e3e 2020 2020 2020 396 \n-0000e2a0: 4455 4e45 5f54 4852 4f57 283c 6120 636c DUNE_THROW(Unsupport\n-0000e2e0: 6564 5479 7065 3c2f 613e 2c3c 2f64 6976 edType,.
    397<\n-0000e340: 2f73 7061 6e3e 2020 2020 2020 2020 3c73 /span> "\n-0000e370: 556e 7375 7070 6f72 7465 6420 5479 7065 Unsupported Type\n-0000e380: 2069 6e20 4c44 4c20 286f 6e6c 7920 646f in LDL (only do\n-0000e390: 7562 6c65 2061 6e64 2073 7464 3a3a 636f uble and std::co\n-0000e3a0: 6d70 6c65 7826 6c74 3b64 6f75 626c 6526 mplex<double&\n-0000e3b0: 6774 3b20 7375 7070 6f72 7465 6429 2671 gt; supported)&q\n-0000e3c0: 756f 743b 3c2f 7370 616e 3e29 3b3c 2f64 uot;);.
    39\n-0000e420: 383c 2f73 7061 6e3e 2020 2020 7d3c 2f64 8 }.
    .
    399 \n-0000e490: 207d 3b3c 2f64 6976 3e0a 3c2f 6469 763e };
    .
    \n-0000e4a0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..\n-0000e630: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n-0000e6c0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000e6d0: 6e6f 223e 2020 3430 323c 2f73 7061 6e3e no\"> 402\n-0000e6e0: 7d20 3c73 7061 6e20 636c 6173 733d 2263 } // end n\n-0000e700: 616d 6573 7061 6365 2044 756e 653c 2f73 amespace Dune
    .
    403 \n-0000e770: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000e7c0: 2034 3034 3c2f 7370 616e 3e20 3c2f 6469 404 .
    405\n-0000e820: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 #endif \n-0000e850: 3c73 7061 6e20 636c 6173 733d 2263 6f6d //HAVE_SUI\n-0000e870: 5445 5350 4152 5345 5f4c 444c 3c2f 7370 TESPARSE_LDL
    .
    406#endif \n-0000e900: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 //D\n-0000e920: 554e 455f 4953 544c 5f4c 444c 5f48 483c UNE_ISTL_LDL_HH<\n-0000e930: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .
    DU\n-0000e9d0: 4e45 5f52 4547 4953 5445 525f 4449 5245 NE_REGISTER_DIRE\n-0000e9e0: 4354 5f53 4f4c 5645 523c 2f61 3e3c 2f64 CT_SOLVER
    #define D\n-0000ea10: 554e 455f 5245 4749 5354 4552 5f44 4952 UNE_REGISTER_DIR\n-0000ea20: 4543 545f 534f 4c56 4552 286e 616d 652c ECT_SOLVER(name,\n-0000ea30: 2e2e 2e29 3c2f 6469 763e 3c64 6976 2063 ...)
    \n-0000ea50: 4465 6669 6e69 7469 6f6e 3c2f 623e 2073 Definition s\n-0000ea60: 6f6c 7665 7272 6567 6973 7472 792e 6868 olverregistry.hh\n-0000ea70: 3a31 333c 2f64 6976 3e3c 2f64 6976 3e0a :13
    .\n-0000ea80: 3c64 6976 2063 6c61 7373 3d22 7474 6322
    sol\n-0000ead0: 7665 7273 2e68 683c 2f61 3e3c 2f64 6976 vers.hh
    Implementati\n-0000eb00: 6f6e 7320 6f66 2074 6865 2069 6e76 6572 ons of the inver\n-0000eb10: 7365 206f 7065 7261 746f 7220 696e 7465 se operator inte\n-0000eb20: 7266 6163 652e 3c2f 6469 763e 3c2f 6469 rface.
    .\n-0000eba0: 0a3c 6469 7620 636c 6173 733d 2274 7463 ..
    solvertype.h\n-0000ec70: 683c 2f61 3e3c 2f64 6976 3e3c 6469 7620 h
    Te\n-0000ec90: 6d70 6c61 7465 7320 6368 6172 6163 7465 mplates characte\n-0000eca0: 7269 7a69 6e67 2074 6865 2074 7970 6520 rizing the type \n-0000ecb0: 6f66 2061 2073 6f6c 7665 722e 3c2f 6469 of a solver.
    .
    \n-0000eef0: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    \n-0000eff0: 4475 6e65 3a3a 4243 5253 4d61 7472 6978 Dune::BCRSMatrix\n-0000f000: 266c 743b 2046 6965 6c64 4d61 7472 6978 < FieldMatrix\n-0000f010: 266c 743b 2054 2c20 6e2c 206d 2026 6774 < T, n, m >\n-0000f020: 3b2c 2041 2026 6774 3b20 4d61 7472 6978 ;, A > Matrix\n-0000f030: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    The mat\n-0000f050: 7269 7820 7479 7065 2e3c 2f64 6976 3e3c rix type.
    <\n-0000f060: 6469 7620 636c 6173 733d 2274 7464 6566 div class=\"ttdef\n-0000f070: 223e 3c62 3e44 6566 696e 6974 696f 6e3c \">Definition<\n-0000f080: 2f62 3e20 6c64 6c2e 6868 3a37 383c 2f64 /b> ldl.hh:78
    .
    \n-0000f0e0: 3c64 6976 2063 6c61 7373 3d22 7474 6e61
    Dun\n-0000f130: 653a 3a4c 444c 266c 743b 2042 4352 534d e::LDL< BCRSM\n-0000f140: 6174 7269 7826 6c74 3b20 4669 656c 644d atrix< FieldM\n-0000f150: 6174 7269 7826 6c74 3b20 542c 206e 2c20 atrix< T, n, \n-0000f160: 6d20 2667 743b 2c20 4120 2667 743b 2026 m >, A > &\n-0000f170: 6774 3b3a 3a67 6574 4c70 3c2f 613e 3c2f gt;::getLp
    int * ge\n-0000f1a0: 744c 7028 293c 2f64 6976 3e3c 6469 7620 tLp()
    Ge\n-0000f1c0: 7420 6661 6374 6f72 697a 6174 696f 6e20 t factorization \n-0000f1d0: 4c70 2e3c 2f64 6976 3e3c 6469 7620 636c Lp.
    D\n-0000f1f0: 6566 696e 6974 696f 6e3c 2f62 3e20 6c64 efinition ld\n-0000f200: 6c2e 6868 3a32 3738 3c2f 6469 763e 3c2f l.hh:278
    .
    <\n-0000f270: 6120 6872 6566 3d22 6130 3032 3333 2e68 a href=\"a00233.h\n-0000f280: 746d 6c23 6761 3330 3238 3931 3466 3339 tml#ga3028914f39\n-0000f290: 3035 3033 6464 3862 3162 3666 3732 6331 0503dd8b1b6f72c1\n-0000f2a0: 6234 6433 6565 223e 4475 6e65 3a3a 4c44 b4d3ee\">Dune::LD\n-0000f2b0: 4c26 6c74 3b20 4243 5253 4d61 7472 6978 L< BCRSMatrix\n-0000f2c0: 266c 743b 2046 6965 6c64 4d61 7472 6978 < FieldMatrix\n-0000f2d0: 266c 743b 2054 2c20 6e2c 206d 2026 6774 < T, n, m >\n-0000f2e0: 3b2c 2041 2026 6774 3b20 2667 743b 3a3a ;, A > >::\n-0000f2f0: 6765 7449 6e74 6572 6e61 6c4d 6174 7269 getInternalMatri\n-0000f300: 783c 2f61 3e3c 2f64 6976 3e3c 6469 7620 x
    L\n-0000f320: 444c 4d61 7472 6978 2026 616d 703b 2067 DLMatrix & g\n-0000f330: 6574 496e 7465 726e 616c 4d61 7472 6978 etInternalMatrix\n-0000f340: 2829 3c2f 6469 763e 3c64 6976 2063 6c61 ()
    Retur\n-0000f360: 6e20 7468 6520 636f 6c75 6d6e 2063 6f6d n the column com\n-0000f370: 7072 6573 7320 6d61 7472 6978 2e3c 2f64 press matrix.
    Definit\n-0000f3a0: 696f 6e3c 2f62 3e20 6c64 6c2e 6868 3a32 ion ldl.hh:2\n-0000f3b0: 3337 3c2f 6469 763e 3c2f 6469 763e 0a3c 37
    .<\n-0000f3c0: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n-0000f3d0: 6964 3d22 6161 3030 3233 335f 6874 6d6c id=\"aa00233_html\n-0000f3e0: 5f67 6134 3934 6637 3138 3235 3434 6561 _ga494f7182544ea\n-0000f3f0: 6663 3931 6266 3861 3035 3731 3533 3936 fc91bf8a05715396\n-0000f400: 3862 3922 3e3c 6469 7620 636c 6173 733d 8b9\">Dune::ISTL::Imp\n-0000f4d0: 6c3a 3a42 4343 534d 6174 7269 7826 6c74 l::BCCSMatrix<\n-0000f4e0: 3b20 542c 2069 6e74 2026 6774 3b20 4c44 ; T, int > LD\n-0000f4f0: 4c4d 6174 7269 783c 2f64 6976 3e3c 6469 LMatrix
    \n-0000f510: 5468 6520 636f 7272 6573 706f 6e64 696e The correspondin\n-0000f520: 6720 5375 7065 724c 5520 4d61 7472 6978 g SuperLU Matrix\n-0000f530: 2074 7970 652e 3c2f 6469 763e 3c64 6976 type.
    <\n-0000f550: 623e 4465 6669 6e69 7469 6f6e 3c2f 623e b>Definition
    \n-0000f560: 206c 646c 2e68 683a 3831 3c2f 6469 763e ldl.hh:81
    \n-0000f570: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    Dune::\n-0000f610: 4c44 4c26 6c74 3b20 4243 5253 4d61 7472 LDL< BCRSMatr\n-0000f620: 6978 266c 743b 2046 6965 6c64 4d61 7472 ix< FieldMatr\n-0000f630: 6978 266c 743b 2054 2c20 6e2c 206d 2026 ix< T, n, m &\n-0000f640: 6774 3b2c 2041 2026 6774 3b20 2667 743b gt;, A > >\n-0000f650: 3a3a 6765 744c 783c 2f61 3e3c 2f64 6976 ::getLx
    double * ge\n-0000f680: 744c 7828 293c 2f64 6976 3e3c 6469 7620 tLx()
    Ge\n-0000f6a0: 7420 6661 6374 6f72 697a 6174 696f 6e20 t factorization \n-0000f6b0: 4c78 2e3c 2f64 6976 3e3c 6469 7620 636c Lx.
    D\n-0000f6d0: 6566 696e 6974 696f 6e3c 2f62 3e20 6c64 efinition ld\n-0000f6e0: 6c2e 6868 3a32 3936 3c2f 6469 763e 3c2f l.hh:296
    .
    <\n-0000f750: 6120 6872 6566 3d22 6130 3032 3333 2e68 a href=\"a00233.h\n-0000f760: 746d 6c23 6761 3533 3232 3636 6263 3463 tml#ga532266bc4c\n-0000f770: 3030 6139 3833 3838 6437 6436 6431 3432 00a98388d7d6d142\n-0000f780: 6462 6364 3336 223e 4475 6e65 3a3a 4c44 dbcd36\">Dune::LD\n-0000f790: 4c26 6c74 3b20 4243 5253 4d61 7472 6978 L< BCRSMatrix\n-0000f7a0: 266c 743b 2046 6965 6c64 4d61 7472 6978 < FieldMatrix\n-0000f7b0: 266c 743b 2054 2c20 6e2c 206d 2026 6774 < T, n, m >\n-0000f7c0: 3b2c 2041 2026 6774 3b20 2667 743b 3a3a ;, A > >::\n-0000f7d0: 7365 7456 6572 626f 7369 7479 3c2f 613e setVerbosity\n-0000f7e0: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    void s\n-0000f800: 6574 5665 7262 6f73 6974 7928 696e 7420 etVerbosity(int \n-0000f810: 7629 3c2f 6469 763e 3c64 6976 2063 6c61 v)
    Sets \n-0000f830: 7468 6520 7665 7262 6f73 6974 7920 6c65 the verbosity le\n-0000f840: 7665 6c20 666f 7220 7468 6520 736f 6c76 vel for the solv\n-0000f850: 6572 2e3c 2f64 6976 3e3c 6469 7620 636c er.
    D\n-0000f870: 6566 696e 6974 696f 6e3c 2f62 3e20 6c64 efinition ld\n-0000f880: 6c2e 6868 3a32 3238 3c2f 6469 763e 3c2f l.hh:228
    .
    <\n-0000f8f0: 6120 6872 6566 3d22 6130 3032 3333 2e68 a href=\"a00233.h\n-0000f900: 746d 6c23 6761 3535 3263 3965 3237 3064 tml#ga552c9e270d\n-0000f910: 6135 6161 3233 3933 6630 6437 3136 3139 a5aa2393f0d71619\n-0000f920: 3534 3435 3034 223e 4475 6e65 3a3a 4c44 544504\">Dune::LD\n-0000f930: 4c26 6c74 3b20 4243 5253 4d61 7472 6978 L< BCRSMatrix\n-0000f940: 266c 743b 2046 6965 6c64 4d61 7472 6978 < FieldMatrix\n-0000f950: 266c 743b 2054 2c20 6e2c 206d 2026 6774 < T, n, m >\n-0000f960: 3b2c 2041 2026 6774 3b20 2667 743b 3a3a ;, A > >::\n-0000f970: 6170 706c 793c 2f61 3e3c 2f64 6976 3e3c apply
    <\n-0000f980: 6469 7620 636c 6173 733d 2274 7464 6563 div class=\"ttdec\n-0000f990: 6922 3e76 6f69 6420 6170 706c 7928 5420 i\">void apply(T \n-0000f9a0: 2a78 2c20 5420 2a62 293c 2f64 6976 3e3c *x, T *b)
    <\n-0000f9b0: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n-0000f9c0: 223e 4164 6469 7469 6f6e 616c 2061 7070 \">Additional app\n-0000f9d0: 6c79 206d 6574 686f 6420 7769 7468 2063 ly method with c\n-0000f9e0: 2d61 7272 6179 7320 696e 2061 6e61 6c6f -arrays in analo\n-0000f9f0: 6779 2074 6f20 7375 7065 726c 752e 3c2f gy to superlu.
    Defini\n-0000fa20: 7469 6f6e 3c2f 623e 206c 646c 2e68 683a tion ldl.hh:\n-0000fa30: 3137 363c 2f64 6976 3e3c 2f64 6976 3e0a 176
    .\n-0000fa40: 3c64 6976 2063 6c61 7373 3d22 7474 6322
    vi\n-0000fb40: 7274 7561 6c20 766f 6964 2061 7070 6c79 rtual void apply\n-0000fb50: 2864 6f6d 6169 6e5f 7479 7065 2026 616d (domain_type &am\n-0000fb60: 703b 782c 2072 616e 6765 5f74 7970 6520 p;x, range_type \n-0000fb70: 2661 6d70 3b62 2c20 646f 7562 6c65 2072 &b, double r\n-0000fb80: 6564 7563 7469 6f6e 2c20 496e 7665 7273 eduction, Invers\n-0000fb90: 654f 7065 7261 746f 7252 6573 756c 7420 eOperatorResult \n-0000fba0: 2661 6d70 3b72 6573 293c 2f64 6976 3e3c &res)
    <\n-0000fbb0: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n-0000fbc0: 223e 6170 706c 7920 696e 7665 7273 6520 \">apply inverse \n-0000fbd0: 6f70 6572 6174 6f72 2c20 7769 7468 2067 operator, with g\n-0000fbe0: 6976 656e 2063 6f6e 7665 7267 656e 6365 iven convergence\n-0000fbf0: 2063 7269 7465 7269 612e 3c2f 6469 763e criteria.
    \n-0000fc00: 3c64 6976 2063 6c61 7373 3d22 7474 6465
    Definition\n-0000fc20: 3c2f 623e 206c 646c 2e68 683a 3136 363c ldl.hh:166<\n-0000fc30: 2f64 6976 3e3c 2f64 6976 3e0a 3c64 6976 /div>
    .
    D\n-0000fd40: 756e 653a 3a42 6c6f 636b 5665 6374 6f72 une::BlockVector\n-0000fd50: 266c 743b 2046 6965 6c64 5665 6374 6f72 < FieldVector\n-0000fd60: 266c 743b 2054 2c20 6e20 2667 743b 2c20 < T, n >, \n-0000fd70: 7479 7065 6e61 6d65 2073 7464 3a3a 616c typename std::al\n-0000fd80: 6c6f 6361 746f 725f 7472 6169 7473 266c locator_traits&l\n-0000fd90: 743b 2041 2026 6774 3b3a 3a74 656d 706c t; A >::templ\n-0000fda0: 6174 6520 7265 6269 6e64 5f61 6c6c 6f63 ate rebind_alloc\n-0000fdb0: 266c 743b 2046 6965 6c64 5665 6374 6f72 < FieldVector\n-0000fdc0: 266c 743b 2054 2c20 6e20 2667 743b 2026 < T, n > &\n-0000fdd0: 6774 3b20 2667 743b 2072 616e 6765 5f74 gt; > range_t\n-0000fde0: 7970 653c 2f64 6976 3e3c 6469 7620 636c ype
    The \n-0000fe00: 7479 7065 206f 6620 7468 6520 7261 6e67 type of the rang\n-0000fe10: 6520 6f66 2074 6865 2073 6f6c 7665 722e e of the solver.\n-0000fe20: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    Defi\n-0000fe40: 6e69 7469 6f6e 3c2f 623e 206c 646c 2e68 nition ldl.h\n-0000fe50: 683a 3837 3c2f 6469 763e 3c2f 6469 763e h:87
    \n-0000fe60: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    vi\n-0000ff60: 7274 7561 6c20 7e4c 444c 2829 3c2f 6469 rtual ~LDL()
    Default con\n-0000ff90: 7374 7275 6374 6f72 2e3c 2f64 6976 3e3c structor.
    <\n-0000ffa0: 6469 7620 636c 6173 733d 2274 7464 6566 div class=\"ttdef\n-0000ffb0: 223e 3c62 3e44 6566 696e 6974 696f 6e3c \">Definition<\n-0000ffc0: 2f62 3e20 6c64 6c2e 6868 3a31 3435 3c2f /b> ldl.hh:145
    .
    Du\n-00010070: 6e65 3a3a 4c44 4c26 6c74 3b20 4243 5253 ne::LDL< BCRS\n-00010080: 4d61 7472 6978 266c 743b 2046 6965 6c64 Matrix< Field\n-00010090: 4d61 7472 6978 266c 743b 2054 2c20 6e2c Matrix< T, n,\n-000100a0: 206d 2026 6774 3b2c 2041 2026 6774 3b20 m >, A > \n-000100b0: 2667 743b 3a3a 6672 6565 3c2f 613e 3c2f >::free
    void fre\n-000100e0: 6528 293c 2f64 6976 3e3c 6469 7620 636c e()
    Free\n-00010100: 2061 6c6c 6f63 6174 6564 2073 7061 6365 allocated space\n-00010110: 2e3c 2f64 6976 3e3c 6469 7620 636c 6173 .
    Def\n-00010130: 696e 6974 696f 6e3c 2f62 3e20 6c64 6c2e inition ldl.\n-00010140: 6868 3a32 3436 3c2f 6469 763e 3c2f 6469 hh:246
    .
    virtual void ap\n-00010260: 706c 7928 646f 6d61 696e 5f74 7970 6520 ply(domain_type \n-00010270: 2661 6d70 3b78 2c20 7261 6e67 655f 7479 &x, range_ty\n-00010280: 7065 2026 616d 703b 622c 2049 6e76 6572 pe &b, Inver\n-00010290: 7365 4f70 6572 6174 6f72 5265 7375 6c74 seOperatorResult\n-000102a0: 2026 616d 703b 7265 7329 3c2f 6469 763e &res)
    \n-000102b0: 3c64 6976 2063 6c61 7373 3d22 7474 646f
    Apply inverse\n-000102d0: 206f 7065 7261 746f 722c 2e3c 2f64 6976 operator,.
    Definitio\n-00010300: 6e3c 2f62 3e20 6c64 6c2e 6868 3a31 3532 n ldl.hh:152\n-00010310: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .Get factorizati\n-00010450: 6f6e 204c 692e 3c2f 6469 763e 3c64 6976 on Li.
    <\n-00010470: 623e 4465 6669 6e69 7469 6f6e 3c2f 623e b>Definition
    \n-00010480: 206c 646c 2e68 683a 3238 373c 2f64 6976 ldl.hh:287
    ..
    \n-00010710: 3c64 6976 2063 6c61 7373 3d22 7474 6465
    void setMatr\n-00010730: 6978 2863 6f6e 7374 204d 6174 7269 7820 ix(const Matrix \n-00010740: 2661 6d70 3b6d 6174 7269 7829 3c2f 6469 &matrix)
    Initialize \n-00010770: 6461 7461 2066 726f 6d20 6769 7665 6e20 data from given \n-00010780: 6d61 7472 6978 2e3c 2f64 6976 3e3c 6469 matrix.
    \n-000107a0: 3c62 3e44 6566 696e 6974 696f 6e3c 2f62 Definition ldl.hh:190
    ..
    LDL(co\n-00010a40: 6e73 7420 4d61 7472 6978 2026 616d 703b nst Matrix &\n-00010a50: 6d61 7472 6978 2c20 696e 7420 7665 7262 matrix, int verb\n-00010a60: 6f73 652c 2062 6f6f 6c29 3c2f 6469 763e ose, bool)
    \n-00010a70: 3c64 6976 2063 6c61 7373 3d22 7474 646f
    Constructor f\n-00010a90: 6f72 2063 6f6d 7061 7469 6269 6c69 7479 or compatibility\n-00010aa0: 2077 6974 6820 5375 7065 724c 5520 7374 with SuperLU st\n-00010ab0: 616e 6461 7264 2063 6f6e 7374 7275 6374 andard construct\n-00010ac0: 6f72 2e3c 2f64 6976 3e3c 6469 7620 636c or.
    D\n-00010ae0: 6566 696e 6974 696f 6e3c 2f62 3e20 6c64 efinition ld\n-00010af0: 6c2e 6868 3a31 3230 3c2f 6469 763e 3c2f l.hh:120
    .
    <\n-00010b60: 6120 6872 6566 3d22 6130 3032 3333 2e68 a href=\"a00233.h\n-00010b70: 746d 6c23 6761 6261 6333 3734 3764 3564 tml#gabac3747d5d\n-00010b80: 3761 3766 6433 3130 3731 6332 3234 6435 7a7fd31071c224d5\n-00010b90: 3437 3238 6662 223e 4475 6e65 3a3a 4c44 4728fb\">Dune::LD\n-00010ba0: 4c26 6c74 3b20 4243 5253 4d61 7472 6978 L< BCRSMatrix\n-00010bb0: 266c 743b 2046 6965 6c64 4d61 7472 6978 < FieldMatrix\n-00010bc0: 266c 743b 2054 2c20 6e2c 206d 2026 6774 < T, n, m >\n-00010bd0: 3b2c 2041 2026 6774 3b20 2667 743b 3a3a ;, A > >::\n-00010be0: 6765 7444 3c2f 613e 3c2f 6469 763e 3c64 getD
    double * getD(\n-00010c10: 293c 2f64 6976 3e3c 6469 7620 636c 6173 )
    Get fa\n-00010c30: 6374 6f72 697a 6174 696f 6e20 6469 6167 ctorization diag\n-00010c40: 6f6e 616c 206d 6174 7269 7820 442e 3c2f onal matrix D.
    Defini\n-00010c70: 7469 6f6e 3c2f 623e 206c 646c 2e68 683a tion ldl.hh:\n-00010c80: 3236 393c 2f64 6976 3e3c 2f64 6976 3e0a 269
    .\n-00010c90: 3c64 6976 2063 6c61 7373 3d22 7474 6322
    \n-00010dd0: 3c64 6976 2063 6c61 7373 3d22 7474 646f
    Constructs th\n-00010df0: 6520 4c44 4c20 736f 6c76 6572 2e3c 2f64 e LDL solver.
    Definit\n-00010e20: 696f 6e3c 2f62 3e20 6c64 6c2e 6868 3a31 ion ldl.hh:1\n-00010e30: 3336 3c2f 6469 763e 3c2f 6469 763e 0a3c 36
    .<\n-00010e40: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n-00010e50: 6964 3d22 6161 3030 3233 335f 6874 6d6c id=\"aa00233_html\n-00010e60: 5f67 6163 6230 6562 6632 3036 6164 6139 _gacb0ebf206ada9\n-00010e70: 3861 6438 3139 3732 3062 3030 6537 6532 8ad819720b00e7e2\n-00010e80: 3734 6122 3e3c 6469 7620 636c 6173 733d 74a\">
    \n-00010f40: 7669 7274 7561 6c20 536f 6c76 6572 4361 virtual SolverCa\n-00010f50: 7465 676f 7279 3a3a 4361 7465 676f 7279 tegory::Category\n-00010f60: 2063 6174 6567 6f72 7928 2920 636f 6e73 category() cons\n-00010f70: 743c 2f64 6976 3e3c 6469 7620 636c 6173 t
    Catego\n-00010f90: 7279 206f 6620 7468 6520 736f 6c76 6572 ry of the solver\n-00010fa0: 2028 7365 6520 536f 6c76 6572 4361 7465 (see SolverCate\n-00010fb0: 676f 7279 3a3a 4361 7465 676f 7279 293c gory::Category)<\n-00010fc0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n-00010fe0: 6974 696f 6e3c 2f62 3e20 6c64 6c2e 6868 ition ldl.hh\n-00010ff0: 3a39 303c 2f64 6976 3e3c 2f64 6976 3e0a :90
    .\n-00011000: 3c64 6976 2063 6c61 7373 3d22 7474 6322
    ISTL::\n-00011110: 496d 706c 3a3a 4243 4353 4d61 7472 6978 Impl::BCCSMatrix\n-00011120: 496e 6974 6961 6c69 7a65 7226 6c74 3b20 Initializer< \n-00011130: 4243 5253 4d61 7472 6978 266c 743b 2046 BCRSMatrix< F\n-00011140: 6965 6c64 4d61 7472 6978 266c 743b 2054 ieldMatrix< T\n-00011150: 2c20 6e2c 206d 2026 6774 3b2c 2041 2026 , n, m >, A &\n-00011160: 6774 3b2c 2069 6e74 2026 6774 3b20 4d61 gt;, int > Ma\n-00011170: 7472 6978 496e 6974 6961 6c69 7a65 723c trixInitializer<\n-00011180: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Type of \n-000111a0: 616e 2061 7373 6f63 6961 7465 6420 696e an associated in\n-000111b0: 6974 6961 6c69 7a65 7220 636c 6173 732e itializer class.\n-000111c0: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    Defi\n-000111e0: 6e69 7469 6f6e 3c2f 623e 206c 646c 2e68 nition ldl.h\n-000111f0: 683a 3833 3c2f 6469 763e 3c2f 6469 763e h:83
    \n-00011200: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    st\n-000112d0: 643a 3a73 6861 7265 645f 7074 7226 6c74 d::shared_ptr<\n-000112e0: 3b20 4475 6e65 3a3a 496e 7665 7273 654f ; Dune::InverseO\n-000112f0: 7065 7261 746f 7226 6c74 3b20 7479 7065 perator< type\n-00011300: 6e61 6d65 2044 756e 653a 3a54 7970 654c name Dune::TypeL\n-00011310: 6973 7445 6c65 6d65 6e74 266c 743b 2031 istElement< 1\n-00011320: 2c20 544c 2026 6774 3b3a 3a74 7970 652c , TL >::type,\n-00011330: 2074 7970 656e 616d 6520 4475 6e65 3a3a typename Dune::\n-00011340: 5479 7065 4c69 7374 456c 656d 656e 7426 TypeListElement&\n-00011350: 6c74 3b20 322c 2054 4c20 2667 743b 3a3a lt; 2, TL >::\n-00011360: 7479 7065 2026 6774 3b20 2667 743b 206f type > > o\n-00011370: 7065 7261 746f 7228 2928 544c 2c20 636f perator()(TL, co\n-00011380: 6e73 7420 4d20 2661 6d70 3b6d 6174 2c20 nst M &mat, \n-00011390: 636f 6e73 7420 4475 6e65 3a3a 5061 7261 const Dune::Para\n-000113a0: 6d65 7465 7254 7265 6520 2661 6d70 3b63 meterTree &c\n-000113b0: 6f6e 6669 672c 2073 7464 3a3a 656e 6162 onfig, std::enab\n-000113c0: 6c65 5f69 665f 7426 6c74 3b20 6973 5661 le_if_t< isVa\n-000113d0: 6c69 6442 6c6f 636b 266c 743b 2074 7970 lidBlock< typ\n-000113e0: 656e 616d 6520 4475 6e65 3a3a 5479 7065 ename Dune::Type\n-000113f0: 4c69 7374 456c 656d 656e 7426 6c74 3b20 ListElement< \n-00011400: 312c 2054 4c20 2667 743b 3a3a 7479 7065 1, TL >::type\n-00011410: 3a3a 626c 6f63 6b5f 7479 7065 2026 6774 ::block_type >\n-00011420: 3b3a 3a76 616c 7565 2c20 696e 7420 2667 ;::value, int &g\n-00011430: 743b 3d30 2920 636f 6e73 743c 2f64 6976 t;=0) const
    Definitio\n-00011460: 6e3c 2f62 3e20 6c64 6c2e 6868 3a33 3830 n ldl.hh:380\n-00011470: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .
    const \n-00011580: 6368 6172 202a 206e 616d 6528 293c 2f64 char * name()
    Get method\n-000115b0: 206e 616d 652e 3c2f 6469 763e 3c64 6976 name.
    <\n-000115d0: 623e 4465 6669 6e69 7469 6f6e 3c2f 623e b>Definition
    \n-000115e0: 206c 646c 2e68 683a 3236 303c 2f64 6976 ldl.hh:260
    ..
    De\n-000118a0: 6661 756c 7420 636f 6e73 7472 7563 746f fault constructo\n-000118b0: 722e 3c2f 6469 763e 3c64 6976 2063 6c61 r.
    De\n-000118d0: 6669 6e69 7469 6f6e 3c2f 623e 206c 646c finition ldl\n-000118e0: 2e68 683a 3134 313c 2f64 6976 3e3c 2f64 .hh:141
    .
    Dune::LDL\n-00011990: 266c 743b 2042 4352 534d 6174 7269 7826 < BCRSMatrix&\n-000119a0: 6c74 3b20 4669 656c 644d 6174 7269 7826 lt; FieldMatrix&\n-000119b0: 6c74 3b20 542c 206e 2c20 6d20 2667 743b lt; T, n, m >\n-000119c0: 2c20 4120 2667 743b 2026 6774 3b3a 3a4c , A > >::L\n-000119d0: 444c 3c2f 613e 3c2f 6469 763e 3c64 6976 DL
    \n-000119f0: 4c44 4c28 636f 6e73 7420 4d61 7472 6978 LDL(const Matrix\n-00011a00: 2026 616d 703b 6d61 7472 6978 2c20 696e &matrix, in\n-00011a10: 7420 7665 7262 6f73 653d 3029 3c2f 6469 t verbose=0)
    Construct a\n-00011a40: 2073 6f6c 7665 7220 6f62 6a65 6374 2066 solver object f\n-00011a50: 726f 6d20 6120 4243 5253 4d61 7472 6978 rom a BCRSMatrix\n-00011a60: 2e3c 2f64 6976 3e3c 6469 7620 636c 6173 .
    Def\n-00011a80: 696e 6974 696f 6e3c 2f62 3e20 6c64 6c2e inition ldl.\n-00011a90: 6868 3a31 3034 3c2f 6469 763e 3c2f 6469 hh:104
    .
    mat
    Matrix &a\n-00011b60: 6d70 3b20 6d61 743c 2f64 6976 3e3c 6469 mp; mat
    \n-00011b80: 3c62 3e44 6566 696e 6974 696f 6e3c 2f62 Definition matrixmatrix.h\n-00011ba0: 683a 3334 373c 2f64 6976 3e3c 2f64 6976 h:347
    .
    \n-00011c20: 3c62 3e44 6566 696e 6974 696f 6e3c 2f62 Definition allocator.hh:1\n-00011c40: 313c 2f64 6976 3e3c 2f64 6976 3e0a 3c64 1
    .
    D\n-00011ce0: 756e 653a 3a67 6574 3c2f 613e 3c2f 6469 une::get
    PropertyMa\n-00011d10: 7054 7970 6553 656c 6563 746f 7226 6c74 pTypeSelector<\n-00011d20: 3b20 416d 673a 3a56 6572 7465 7856 6973 ; Amg::VertexVis\n-00011d30: 6974 6564 5461 672c 2041 6d67 3a3a 5072 itedTag, Amg::Pr\n-00011d40: 6f70 6572 7469 6573 4772 6170 6826 6c74 opertiesGraph<\n-00011d50: 3b20 472c 2041 6d67 3a3a 5665 7274 6578 ; G, Amg::Vertex\n-00011d60: 5072 6f70 6572 7469 6573 2c20 4550 2c20 Properties, EP, \n-00011d70: 564d 2c20 454d 2026 6774 3b20 2667 743b VM, EM > >\n-00011d80: 3a3a 5479 7065 2067 6574 2863 6f6e 7374 ::Type get(const\n-00011d90: 2041 6d67 3a3a 5665 7274 6578 5669 7369 Amg::VertexVisi\n-00011da0: 7465 6454 6167 2026 616d 703b 7461 672c tedTag &tag,\n-00011db0: 2041 6d67 3a3a 5072 6f70 6572 7469 6573 Amg::Properties\n-00011dc0: 4772 6170 6826 6c74 3b20 472c 2041 6d67 Graph< G, Amg\n-00011dd0: 3a3a 5665 7274 6578 5072 6f70 6572 7469 ::VertexProperti\n-00011de0: 6573 2c20 4550 2c20 564d 2c20 454d 2026 es, EP, VM, EM &\n-00011df0: 6774 3b20 2661 6d70 3b67 7261 7068 293c gt; &graph)<\n-00011e00: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n-00011e20: 6974 696f 6e3c 2f62 3e20 6465 7065 6e64 ition depend\n-00011e30: 656e 6379 2e68 683a 3239 333c 2f64 6976 ency.hh:293
    .
    <\n-00011e80: 6120 6872 6566 3d22 6130 3131 3336 2e68 a href=\"a01136.h\n-00011e90: 746d 6c22 3e44 756e 653a 3a4d 6174 7269 tml\">Dune::Matri\n-00011ea0: 7844 696d 656e 7369 6f6e 3c2f 613e 3c2f xDimension
    Defini\n-00011ed0: 7469 6f6e 3c2f 623e 206d 6174 7269 7875 tion matrixu\n-00011ee0: 7469 6c73 2e68 683a 3231 313c 2f64 6976 tils.hh:211
    .
    <\n-00011f30: 6120 6872 6566 3d22 6130 3131 3532 2e68 a href=\"a01152.h\n-00011f40: 746d 6c22 3e44 756e 653a 3a42 4352 534d tml\">Dune::BCRSM\n-00011f50: 6174 7269 783c 2f61 3e3c 2f64 6976 3e3c atrix
    <\n-00011f60: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n-00011f70: 223e 4120 7370 6172 7365 2062 6c6f 636b \">A sparse block\n-00011f80: 206d 6174 7269 7820 7769 7468 2063 6f6d matrix with com\n-00011f90: 7072 6573 7365 6420 726f 7720 7374 6f72 pressed row stor\n-00011fa0: 6167 652e 3c2f 6469 763e 3c64 6976 2063 age.
    \n-00011fc0: 4465 6669 6e69 7469 6f6e 3c2f 623e 2062 Definition b\n-00011fd0: 6372 736d 6174 7269 782e 6868 3a34 3636 crsmatrix.hh:466\n-00011fe0: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .
    s\n-000120b0: 697a 655f 7479 7065 204d 2829 2063 6f6e ize_type M() con\n-000120c0: 7374 3c2f 6469 763e 3c64 6976 2063 6c61 st
    numbe\n-000120e0: 7220 6f66 2063 6f6c 756d 6e73 2028 636f r of columns (co\n-000120f0: 756e 7465 6420 696e 2062 6c6f 636b 7329 unted in blocks)\n-00012100: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    Defi\n-00012120: 6e69 7469 6f6e 3c2f 623e 2062 6372 736d nition bcrsm\n-00012130: 6174 7269 782e 6868 3a31 3937 383c 2f64 atrix.hh:1978
    .
    <\n-00012190: 6469 7620 636c 6173 733d 2274 746e 616d div class=\"ttnam\n-000121a0: 6522 3e3c 6120 6872 6566 3d22 6130 3131 e\">Dune:\n-000121e0: 3a42 4352 534d 6174 7269 783a 3a4e 3c2f :BCRSMatrix::N
    size\n-00012210: 5f74 7970 6520 4e28 2920 636f 6e73 743c _type N() const<\n-00012220: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    number o\n-00012240: 6620 726f 7773 2028 636f 756e 7465 6420 f rows (counted \n-00012250: 696e 2062 6c6f 636b 7329 3c2f 6469 763e in blocks)
    \n-00012260: 3c64 6976 2063 6c61 7373 3d22 7474 6465
    Definition\n-00012280: 3c2f 623e 2062 6372 736d 6174 7269 782e bcrsmatrix.\n-00012290: 6868 3a31 3937 323c 2f64 6976 3e3c 2f64 hh:1972
    .
    A\n-00012320: 2076 6563 746f 7220 6f66 2062 6c6f 636b vector of block\n-00012330: 7320 7769 7468 206d 656d 6f72 7920 6d61 s with memory ma\n-00012340: 6e61 6765 6d65 6e74 2e3c 2f64 6976 3e3c nagement.
    <\n-00012350: 6469 7620 636c 6173 733d 2274 7464 6566 div class=\"ttdef\n-00012360: 223e 3c62 3e44 6566 696e 6974 696f 6e3c \">Definition<\n-00012370: 2f62 3e20 6276 6563 746f 722e 6868 3a33 /b> bvector.hh:3\n-00012380: 3935 3c2f 6469 763e 3c2f 6469 763e 0a3c 95
    .<\n-00012390: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n-000123a0: 6964 3d22 6161 3031 3431 325f 6874 6d6c id=\"aa01412_html\n-000123b0: 223e 3c64 6976 2063 6c61 7373 3d22 7474 \">
    Dune\n-000123e0: 3a3a 5365 714f 7665 726c 6170 7069 6e67 ::SeqOverlapping\n-000123f0: 5363 6877 6172 7a3c 2f61 3e3c 2f64 6976 Schwarz
    Sequential o\n-00012420: 7665 726c 6170 7069 6e67 2053 6368 7761 verlapping Schwa\n-00012430: 727a 2070 7265 636f 6e64 6974 696f 6e65 rz preconditione\n-00012440: 722e 3c2f 6469 763e 3c64 6976 2063 6c61 r.
    De\n-00012460: 6669 6e69 7469 6f6e 3c2f 623e 206f 7665 finition ove\n-00012470: 726c 6170 7069 6e67 7363 6877 6172 7a2e rlappingschwarz.\n-00012480: 6868 3a37 3535 3c2f 6469 763e 3c2f 6469 hh:755
    .
    \n-000124e0: 4475 6e65 3a3a 5365 714f 7665 726c 6170 Dune::SeqOverlap\n-000124f0: 7069 6e67 5363 6877 6172 7a41 7373 656d pingSchwarzAssem\n-00012500: 626c 6572 4865 6c70 6572 3c2f 613e 3c2f blerHelper
    Defini\n-00012530: 7469 6f6e 3c2f 623e 206f 7665 726c 6170 tion overlap\n-00012540: 7069 6e67 7363 6877 6172 7a2e 6868 3a36 pingschwarz.hh:6\n-00012550: 3934 3c2f 6469 763e 3c2f 6469 763e 0a3c 94
    .<\n-00012560: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n-00012570: 6964 3d22 6161 3031 3432 305f 6874 6d6c id=\"aa01420_html\n-00012580: 223e 3c64 6976 2063 6c61 7373 3d22 7474 \"><\n-000125c0: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n-000125d0: 223e 5573 6520 7468 6520 4c44 4c20 7061 \">Use the LDL pa\n-000125e0: 636b 6167 6520 746f 2064 6972 6563 746c ckage to directl\n-000125f0: 7920 736f 6c76 6520 6c69 6e65 6172 2073 y solve linear s\n-00012600: 7973 7465 6d73 20e2 8093 2065 6d70 7479 ystems ... empty\n-00012610: 2064 6566 6175 6c74 2063 6c61 7373 2e3c default class.<\n-00012620: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n-00012640: 6974 696f 6e3c 2f62 3e20 6c64 6c2e 6868 ition ldl.hh\n-00012650: 3a35 363c 2f64 6976 3e3c 2f64 6976 3e0a :56
    .\n-00012660: 3c64 6976 2063 6c61 7373 3d22 7474 6322
    ..<\n-00012860: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n-00012870: 6964 3d22 6161 3032 3730 305f 6874 6d6c id=\"aa02700_html\n-00012880: 223e 3c64 6976 2063 6c61 7373 3d22 7474 \">
    Dune\n-000128b0: 3a3a 496e 7665 7273 654f 7065 7261 746f ::InverseOperato\n-000128c0: 7252 6573 756c 743c 2f61 3e3c 2f64 6976 rResult
    Statistics a\n-000128f0: 626f 7574 2074 6865 2061 7070 6c69 6361 bout the applica\n-00012900: 7469 6f6e 206f 6620 616e 2069 6e76 6572 tion of an inver\n-00012910: 7365 206f 7065 7261 746f 722e 3c2f 6469 se operator.
    Definiti\n-00012940: 6f6e 3c2f 623e 2073 6f6c 7665 722e 6868 on solver.hh\n-00012950: 3a34 383c 2f64 6976 3e3c 2f64 6976 3e0a :48
    .\n-00012960: 3c64 6976 2063 6c61 7373 3d22 7474 6322
    Dune::InverseOp\n-00012a00: 6572 6174 6f72 5265 7375 6c74 3a3a 6974 eratorResult::it\n-00012a10: 6572 6174 696f 6e73 3c2f 613e 3c2f 6469 erations
    int iterat\n-00012a40: 696f 6e73 3c2f 6469 763e 3c64 6976 2063 ions
    Num\n-00012a60: 6265 7220 6f66 2069 7465 7261 7469 6f6e ber of iteration\n-00012a70: 732e 3c2f 6469 763e 3c64 6976 2063 6c61 s.
    De\n-00012a90: 6669 6e69 7469 6f6e 3c2f 623e 2073 6f6c finition sol\n-00012aa0: 7665 722e 6868 3a36 373c 2f64 6976 3e3c ver.hh:67
    <\n-00012ab0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    <\n-00012b10: 6120 6872 6566 3d22 6130 3237 3030 2e68 a href=\"a02700.h\n-00012b20: 746d 6c23 6166 6566 6533 3636 6333 6333 tml#afefe366c3c3\n-00012b30: 3661 3561 3961 3539 3963 3262 6134 6337 6a5a9a599c2ba4c7\n-00012b40: 3131 6162 3622 3e44 756e 653a 3a49 6e76 11ab6\">Dune::Inv\n-00012b50: 6572 7365 4f70 6572 6174 6f72 5265 7375 erseOperatorResu\n-00012b60: 6c74 3a3a 636f 6e76 6572 6765 643c 2f61 lt::converged
    bool \n-00012b90: 636f 6e76 6572 6765 643c 2f64 6976 3e3c converged
    <\n-00012ba0: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n-00012bb0: 223e 5472 7565 2069 6620 636f 6e76 6572 \">True if conver\n-00012bc0: 6765 6e63 6520 6372 6974 6572 696f 6e20 gence criterion \n-00012bd0: 6861 7320 6265 656e 206d 6574 2e3c 2f64 has been met.
    Definit\n-00012c00: 696f 6e3c 2f62 3e20 736f 6c76 6572 2e68 ion solver.h\n-00012c10: 683a 3733 3c2f 6469 763e 3c2f 6469 763e h:73
    \n-00012c20: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    \n-00012ca0: 4162 7374 7261 6374 2062 6173 6520 636c Abstract base cl\n-00012cb0: 6173 7320 666f 7220 616c 6c20 736f 6c76 ass for all solv\n-00012cc0: 6572 732e 3c2f 6469 763e 3c64 6976 2063 ers.
    \n-00012ce0: 4465 6669 6e69 7469 6f6e 3c2f 623e 2073 Definition s\n-00012cf0: 6f6c 7665 722e 6868 3a39 393c 2f64 6976 olver.hh:99
    .
    Dune::S\n-00012da0: 6f6c 7665 7243 6174 6567 6f72 793a 3a43 olverCategory::C\n-00012db0: 6174 6567 6f72 793c 2f61 3e3c 2f64 6976 ategory
    Category
    Definit\n-00012e00: 696f 6e3c 2f62 3e20 736f 6c76 6572 6361 ion solverca\n-00012e10: 7465 676f 7279 2e68 683a 3233 3c2f 6469 tegory.hh:23
    .
    <\n-00012e90: 6469 7620 636c 6173 733d 2274 746e 616d div class=\"ttnam\n-00012ea0: 6522 3e3c 6120 6872 6566 3d22 6130 3237 e\">Dune\n-00012f00: 3a3a 536f 6c76 6572 4361 7465 676f 7279 ::SolverCategory\n-00012f10: 3a3a 7365 7175 656e 7469 616c 3c2f 613e ::sequential\n-00012f20: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    @ sequ\n-00012f40: 656e 7469 616c 3c2f 6469 763e 3c64 6976 ential
    C\n-00012f60: 6174 6567 6f72 7920 666f 7220 7365 7175 ategory for sequ\n-00012f70: 656e 7469 616c 2073 6f6c 7665 7273 2e3c ential solvers.<\n-00012f80: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n-00012fa0: 6974 696f 6e3c 2f62 3e20 736f 6c76 6572 ition solver\n-00012fb0: 6361 7465 676f 7279 2e68 683a 3235 3c2f category.hh:25
    .
    .\n-000130a0: 3c64 6976 2063 6c61 7373 3d22 7474 6e61 .
    \n-00013190: 3c64 6976 2063 6c61 7373 3d22 7474 6e61
    Dun\n-00013200: 653a 3a49 7344 6972 6563 7453 6f6c 7665 e::IsDirectSolve\n-00013210: 723a 3a76 616c 7565 3c2f 613e 3c2f 6469 r::value
    @ value
    Whether th\n-00013260: 6973 2069 7320 6120 6469 7265 6374 2073 is is a direct s\n-00013270: 6f6c 7665 722e 3c2f 6469 763e 3c64 6976 olver.
    <\n-00013290: 623e 4465 6669 6e69 7469 6f6e 3c2f 623e b>Definition\n-000132a0: 2073 6f6c 7665 7274 7970 652e 6868 3a32 solvertype.hh:2\n-000132b0: 343c 2f64 6976 3e3c 2f64 6976 3e0a 3c64 4
    .
    Dune:\n-00013310: 3a53 746f 7265 7343 6f6c 756d 6e43 6f6d :StoresColumnCom\n-00013320: 7072 6573 7365 643c 2f61 3e3c 2f64 6976 pressed
    Definitio\n-00013350: 6e3c 2f62 3e20 736f 6c76 6572 7479 7065 n solvertype\n-00013360: 2e68 683a 3330 3c2f 6469 763e 3c2f 6469 .hh:30
    .
    Dune::Stor\n-00013450: 6573 436f 6c75 6d6e 436f 6d70 7265 7373 esColumnCompress\n-00013460: 6564 3a3a 7661 6c75 653c 2f61 3e3c 2f64 ed::value
    @ value
    whether t\n-000134b0: 6865 2073 6f6c 7665 7220 696e 7465 726e he solver intern\n-000134c0: 616c 6c79 2075 7365 7320 636f 6c75 6d6e ally uses column\n-000134d0: 2063 6f6d 7072 6573 7365 6420 7374 6f72 compressed stor\n-000134e0: 6167 653c 2f64 6976 3e3c 6469 7620 636c age
    D\n-00013500: 6566 696e 6974 696f 6e3c 2f62 3e20 736f efinition so\n-00013510: 6c76 6572 7479 7065 2e68 683a 3336 3c2f lvertype.hh:36
    ...
    .Generat\n-000135b0: 6564 2062 7926 2331 3630 3b3c 6120 6872 ed by \"doxyg\n-00013630: 1.9.8.\n-00013640: 3c2f 736d 616c 6c3e 3c2f 6164 6472 6573 ...\n+00006f10: 3138 3022 206e 616d 653d 226c 3030 3138 180\" name=\"l0018\n+00006f20: 3022 3e3c 2f61 3e3c 7370 616e 2063 6c61 0\"> 18\n+00006f40: 303c 2f73 7061 6e3e 2020 2020 2020 7374 0 st\n+00006f50: 643a 3a73 697a 655f 7420 7220 3d20 302c d::size_t r = 0,\n+00006f60: 2063 203d 2030 3b3c 2f64 6976 3e0a 3c64 c = 0;
    .\n+00006f80: 3c61 2069 643d 226c 3030 3138 3122 206e 181 std::siz\n+00006fd0: 655f 7420 6e52 6f77 732c 206e 436f 6c73 e_t nRows, nCols\n+00006fe0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00007030: 2020 3138 323c 2f73 7061 6e3e 203c 2f64 182 .
    18\n+00007090: 333c 2f73 7061 6e3e 2020 2020 2020 4879 3 Hy\n+000070a0: 6272 6964 3a3a 666f 7245 6163 6828 4475 brid::forEach(Du\n+000070b0: 6e65 3a3a 7261 6e67 6528 3c61 2063 6c61 ne::range(ForEa\n+00007110: 6368 3a3a 726f 7773 3c2f 613e 286d 6174 ch::rows(mat\n+00007120: 7269 7829 292c 205b 2661 6d70 3b5d 283c rix)), [&](<\n+00007130: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00007140: 6f72 6422 3e61 7574 6f3c 2f73 7061 6e3e ord\">auto\n+00007150: 2069 2920 7b3c 2f64 6976 3e0a 3c64 6976 i) {
    .<\n+00007190: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000071a0: 6e6f 223e 2020 3138 343c 2f73 7061 6e3e no\"> 184\n+000071b0: 2020 2020 2020 2020 6320 3d20 303b 3c2f c = 0;.
    1\n+00007210: 3835 3c2f 7370 616e 3e20 2020 2020 2020 85 \n+00007220: 2048 7962 7269 643a 3a66 6f72 4561 6368 Hybrid::forEach\n+00007230: 2844 756e 653a 3a72 616e 6765 283c 6120 (Dune::range(Fo\n+00007290: 7245 6163 683a 3a63 6f6c 733c 2f61 3e28 rEach::cols(\n+000072a0: 6d61 7472 6978 2929 2c20 5b26 616d 703b matrix)), [&\n+000072b0: 5d28 3c73 7061 6e20 636c 6173 733d 226b ](auto j) {
    .<\n+000072e0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000072f0: 3e3c 6120 6964 3d22 6c30 3031 3836 2220 > 186 std\n+00007340: 3a3a 7469 6528 6e52 6f77 732c 6e43 6f6c ::tie(nRows,nCol\n+00007350: 7329 203d 203c 6120 636c 6173 733d 2263 s) = flatMatrix\n+000073b0: 466f 7245 6163 683c 2f61 3e28 6d61 7472 ForEach(matr\n+000073c0: 6978 5b69 5d5b 6a5d 2c20 662c 2072 6f77 ix[i][j], f, row\n+000073d0: 4f66 6673 6574 202b 2072 2c20 636f 6c4f Offset + r, colO\n+000073e0: 6666 7365 7420 2b20 6329 3b3c 2f64 6976 ffset + c);.
    187<\n+00007440: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00007450: 6320 2b3d 206e 436f 6c73 3b3c 2f64 6976 c += nCols;.
    188<\n+000074b0: 2f73 7061 6e3e 2020 2020 2020 2020 7d29 /span> })\n+000074c0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00007510: 2020 3138 393c 2f73 7061 6e3e 2020 2020 189 \n+00007520: 2020 2020 7220 2b3d 206e 526f 7773 3b3c r += nRows;<\n+00007530: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00007580: 3139 303c 2f73 7061 6e3e 2020 2020 2020 190 \n+00007590: 7d29 3b3c 2f64 6976 3e0a 3c64 6976 2063 });
    .
    191 \n+000075f0: 2020 2020 3c73 7061 6e20 636c 6173 733d re\n+00007610: 7475 726e 3c2f 7370 616e 3e20 7b72 2c63 turn {r,c\n+00007620: 7d3b 3c2f 6469 763e 0a3c 6469 7620 636c };
    .
    192 \n+00007680: 207d 3c2f 6469 763e 0a3c 6469 7620 636c }
    .
    193 }\n+000076e0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00007730: 2031 3934 3c2f 7370 616e 3e7d 3c2f 6469 194}.
    .
    195 <\n+000077a0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+000077f0: 3139 363c 2f73 7061 6e3e 7d20 3c73 7061 196} // namespace D\n+00007820: 756e 653c 2f73 7061 6e3e 3c2f 6469 763e une
    \n+00007830: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    bc\n+00007880: 7273 6d61 7472 6978 2e68 683c 2f61 3e3c rsmatrix.hh<\n+00007890: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Implemen\n+000078b0: 7461 7469 6f6e 206f 6620 7468 6520 4243 tation of the BC\n+000078c0: 5253 4d61 7472 6978 2063 6c61 7373 2e3c RSMatrix class.<\n+000078d0: 2f64 6976 3e3c 2f64 6976 3e0a 3c64 6976 /div>
    .<\n+00007900: 6469 7620 636c 6173 733d 2274 746e 616d div class=\"ttnam\n+00007910: 6522 3e3c 6120 6872 6566 3d22 6130 3032 e\">scaledi\n+00007930: 646d 6174 7269 782e 6868 3c2f 613e 3c2f dmatrix.hh
    This file\n+00007960: 2069 6d70 6c65 6d65 6e74 7320 6120 7175 implements a qu\n+00007970: 6164 7261 7469 6320 6d61 7472 6978 206f adratic matrix o\n+00007980: 6620 6669 7865 6420 7369 7a65 2077 6869 f fixed size whi\n+00007990: 6368 2069 7320 6120 6d75 6c74 6970 6c65 ch is a multiple\n+000079a0: 206f 6620 7468 6520 6964 656e 7469 7479 of the identity\n+000079b0: 2e3c 2f64 6976 3e3c 2f64 6976 3e0a 3c64 .
    ..\n+00007b20: 7374 643a 3a70 6169 7226 6c74 3b20 7374 std::pair< st\n+00007b30: 643a 3a73 697a 655f 742c 2073 7464 3a3a d::size_t, std::\n+00007b40: 7369 7a65 5f74 2026 6774 3b20 666c 6174 size_t > flat\n+00007b50: 4d61 7472 6978 466f 7245 6163 6828 4d61 MatrixForEach(Ma\n+00007b60: 7472 6978 2026 616d 703b 2661 6d70 3b6d trix &&m\n+00007b70: 6174 7269 782c 2046 2026 616d 703b 2661 atrix, F &&a\n+00007b80: 6d70 3b66 2c20 7374 643a 3a73 697a 655f mp;f, std::size_\n+00007b90: 7420 726f 774f 6666 7365 743d 302c 2073 t rowOffset=0, s\n+00007ba0: 7464 3a3a 7369 7a65 5f74 2063 6f6c 4f66 td::size_t colOf\n+00007bb0: 6673 6574 3d30 293c 2f64 6976 3e3c 6469 fset=0)
    \n+00007bd0: 5472 6176 6572 7365 2061 2062 6c6f 636b Traverse a block\n+00007be0: 6564 206d 6174 7269 7820 616e 6420 6361 ed matrix and ca\n+00007bf0: 6c6c 2061 2066 756e 6374 6f72 2061 7420 ll a functor at \n+00007c00: 6561 6368 2073 6361 6c61 7220 656e 7472 each scalar entr\n+00007c10: 792e 3c2f 6469 763e 3c64 6976 2063 6c61 y.
    De\n+00007c30: 6669 6e69 7469 6f6e 3c2f 623e 2066 6f72 finition for\n+00007c40: 6561 6368 2e68 683a 3133 323c 2f64 6976 each.hh:132
    .
    st\n+00007d20: 643a 3a73 697a 655f 7420 666c 6174 5665 d::size_t flatVe\n+00007d30: 6374 6f72 466f 7245 6163 6828 5665 6374 ctorForEach(Vect\n+00007d40: 6f72 2026 616d 703b 2661 6d70 3b76 6563 or &&vec\n+00007d50: 746f 722c 2046 2026 616d 703b 2661 6d70 tor, F &&\n+00007d60: 3b66 2c20 7374 643a 3a73 697a 655f 7420 ;f, std::size_t \n+00007d70: 6f66 6673 6574 3d30 293c 2f64 6976 3e3c offset=0)
    <\n+00007d80: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n+00007d90: 223e 5472 6176 6572 7365 2061 2062 6c6f \">Traverse a blo\n+00007da0: 636b 6564 2076 6563 746f 7220 616e 6420 cked vector and \n+00007db0: 6361 6c6c 2061 2066 756e 6374 6f72 2061 call a functor a\n+00007dc0: 7420 6561 6368 2073 6361 6c61 7220 656e t each scalar en\n+00007dd0: 7472 792e 3c2f 6469 763e 3c64 6976 2063 try.
    \n+00007df0: 4465 6669 6e69 7469 6f6e 3c2f 623e 2066 Definition f\n+00007e00: 6f72 6561 6368 2e68 683a 3935 3c2f 6469 oreach.hh:95
    .
    auto \n+00007ee0: 726f 7773 284d 6174 7269 7820 636f 6e73 rows(Matrix cons\n+00007ef0: 7420 2661 6d70 3b6d 6174 7269 7829 3c2f t &matrix)
    Defini\n+00007f20: 7469 6f6e 3c2f 623e 2066 6f72 6561 6368 tion foreach\n+00007f30: 2e68 683a 3639 3c2f 6469 763e 3c2f 6469 .hh:69
    .
    Dune::ForEac\n+00007fe0: 683a 3a63 6f6c 733c 2f61 3e3c 2f64 6976 h::cols
    auto cols(M\n+00008010: 6174 7269 7820 636f 6e73 7420 2661 6d70 atrix const &\n+00008020: 3b6d 6174 7269 7829 3c2f 6469 763e 3c64 ;matrix)
    Definition foreach.hh:72\n+00008060: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .
    a\n+00008130: 7574 6f20 7369 7a65 2856 6563 746f 7220 uto size(Vector \n+00008140: 636f 6e73 7420 2661 6d70 3b76 6563 746f const &vecto\n+00008150: 7229 3c2f 6469 763e 3c64 6976 2063 6c61 r)
    De\n+00008170: 6669 6e69 7469 6f6e 3c2f 623e 2066 6f72 finition for\n+00008180: 6561 6368 2e68 683a 3735 3c2f 6469 763e each.hh:75
    \n+00008190: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    Dune::Matrix\n+000081f0: 3c2f 613e 3c2f 6469 763e 3c64 6976 2063
    A g\n+00008210: 656e 6572 6963 2064 796e 616d 6963 2064 eneric dynamic d\n+00008220: 656e 7365 206d 6174 7269 782e 3c2f 6469 ense matrix.
    Definiti\n+00008250: 6f6e 3c2f 623e 206d 6174 7269 782e 6868 on matrix.hh\n+00008260: 3a35 3631 3c2f 6469 763e 3c2f 6469 763e :561
    \n+00008270: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    s\n+00008330: 697a 655f 7479 7065 204d 2829 2063 6f6e ize_type M() con\n+00008340: 7374 3c2f 6469 763e 3c64 6976 2063 6c61 st
    Retur\n+00008360: 6e20 7468 6520 6e75 6d62 6572 206f 6620 n the number of \n+00008370: 636f 6c75 6d6e 732e 3c2f 6469 763e 3c64 columns.
    Definition matrix.hh:700\n+000083b0: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    ...\n+00008550: 3c68 7220 636c 6173 733d 2266 6f6f 7465
    .Generated by\n+00008590: 2623 3136 303b 3c61 2068 7265 663d 2268  \"doxygen\"/\n+00008610: 3c2f 613e 2031 2e39 2e38 0a3c 2f73 6d61 1.9.8.
    ...\n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,535 +1,233 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-ldl.hh\n+foreach.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n-4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_LDL_HH\n-6#define DUNE_ISTL_LDL_HH\n-7\n-8#if HAVE_SUITESPARSE_LDL || defined DOXYGEN\n-9\n-10#include \n-11#include \n-12#include \n+3#pragma once\n+4\n+5#include\n+6#include\n+7#include\n+8\n+9#include\n+10#include\n+11#include\n+12#include\n 13\n-14#ifdef __cplusplus\n-15extern \"C\"\n-16{\n-17#include \"ldl.h\"\n-18#include \"amd.h\"\n-19}\n-20#endif\n-21\n-22#include \n-23\n-24#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n-25#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n-26#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-27#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n-28\n-29namespace _\bD_\bu_\bn_\be {\n-41 // forward declarations\n-42 template\n-43 class SeqOverlappingSchwarz;\n+14#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+15#include<_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+16\n+17namespace _\bD_\bu_\bn_\be{\n+18\n+19 namespace Impl {\n+20\n+21 // stolen from dune-functions: we call a type \"scalar\" if it does not\n+support index accessing\n+22 template\n+23 using StaticIndexAccessConcept = decltype(std::declval()[Dune::Indices::\n+_0]);\n+24\n+25 template\n+26 using IsScalar = std::negation>>;\n+27\n+28 // Type trait for matrix types that supports\n+29 // - iteration done row-wise\n+30 // - sparse iteration over nonzero entries\n+31 template \n+32 struct IsRowMajorSparse : std::false_type {};\n+33\n+34 // This is supported by the following matrix types:\n+35 template \n+36 struct IsRowMajorSparse> : std::true_type {};\n+37\n+38 template \n+39 struct IsRowMajorSparse> : std::true_type {};\n+40\n+41 template \n+42 struct IsRowMajorSparse> : std::true_type {};\n+43\n 44\n-45 template\n-46 struct SeqOverlappingSchwarzAssemblerHelper;\n+45 template \n+46 auto rows(Matrix const& /*matrix*/, PriorityTag<2>) -> std::\n+integral_constant { return {}; }\n 47\n-54 template\n-_\b5_\b5 class _\bL_\bD_\bL\n-56 {};\n-57\n-71 template\n-_\b7_\b2 class _\bL_\bD_\bL<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A > >\n-73 : public _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br, typename std::\n-allocator_traits::template rebind_alloc > >,\n-74 BlockVector, typename std::allocator_traits::template\n-rebind_alloc > > >\n-75 {\n-76 public:\n-_\b7_\b8 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b7_\b9 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b8_\b1 typedef Dune::ISTL::Impl::BCCSMatrix _\bL_\bD_\bL_\bM_\ba_\bt_\br_\bi_\bx;\n-_\b8_\b3 typedef ISTL::Impl::BCCSMatrixInitializer,A>,\n-int> _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n-_\b8_\b5 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bm_\b>, typename std::\n-allocator_traits::template rebind_alloc > > _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b8_\b7 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bn_\b>, typename std::\n-allocator_traits::template rebind_alloc > > _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-88\n-_\b9_\b0 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-91 {\n-92 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-93 }\n-94\n-_\b1_\b0_\b4 _\bL_\bD_\bL(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, int verbose=0) : matrixIsLoaded_(false), verbose_\n-(verbose)\n-105 {\n-106 //check whether T is a supported type\n-107 static_assert(std::is_same::value,\"Unsupported Type in LDL (only\n-double supported)\");\n-108 setMatrix(matrix);\n-109 }\n-110\n-_\b1_\b2_\b0 _\bL_\bD_\bL(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, int verbose, bool) : matrixIsLoaded_(false),\n-verbose_(verbose)\n-121 {\n-122 //check whether T is a supported type\n-123 static_assert(std::is_same::value,\"Unsupported Type in LDL (only\n-double supported)\");\n-124 setMatrix(matrix);\n-125 }\n-126\n-_\b1_\b3_\b6 _\bL_\bD_\bL(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, const ParameterTree& config)\n-137 : _\bL_\bD_\bL(matrix, config._\bg_\be_\bt(\"verbose\", 0))\n-138 {}\n-139\n-_\b1_\b4_\b1 _\bL_\bD_\bL() : matrixIsLoaded_(false), verbose_(0)\n-142 {}\n-143\n-_\b1_\b4_\b5 virtual _\b~_\bL_\bD_\bL()\n-146 {\n-147 if ((ldlMatrix_.N() + ldlMatrix_.M() > 0) || matrixIsLoaded_)\n-148 free();\n-149 }\n-150\n-_\b1_\b5_\b2 virtual void _\ba_\bp_\bp_\bl_\by(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt&\n-res)\n-153 {\n-154 const int dimMat(ldlMatrix_.N());\n-155 ldl_perm(dimMat, Y_, reinterpret_cast(&b[0]), P_);\n-156 ldl_lsolve(dimMat, Y_, Lp_, Li_, Lx_);\n-157 ldl_dsolve(dimMat, Y_, D_);\n-158 ldl_ltsolve(dimMat, Y_, Lp_, Li_, Lx_);\n-159 ldl_permt(dimMat, reinterpret_cast(&x[0]), Y_, P_);\n-160 // this is a direct solver\n-161 res._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs = 1;\n-162 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = true;\n-163 }\n-164\n-_\b1_\b6_\b6 virtual void _\ba_\bp_\bp_\bl_\by(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, [[maybe_unused]] double\n-reduction, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+48 template \n+49 auto cols(Matrix const& /*matrix*/, PriorityTag<2>) -> std::\n+integral_constant { return {}; }\n+50\n+51 template \n+52 auto rows(Matrix const& matrix, PriorityTag<1>) -> decltype(matrix.N())\n+{ return matrix.N(); }\n+53\n+54 template \n+55 auto cols(Matrix const& matrix, PriorityTag<1>) -> decltype(matrix.M())\n+{ return matrix.M(); }\n+56\n+57 template \n+58 auto size(Vector const& /*vector*/, PriorityTag<2>) -> std::\n+integral_constant { return {}; }\n+59\n+60 template \n+61 auto size(Vector const& vector, PriorityTag<1>) -> decltype(vector.size())\n+{ return vector.size(); }\n+62\n+63\n+64 } // end namespace Impl\n+65\n+_\b6_\b6namespace ForEach{\n+67\n+68 template \n+_\b6_\b9 auto _\br_\bo_\bw_\bs(_\bM_\ba_\bt_\br_\bi_\bx const& matrix) { return Impl::rows(matrix, PriorityTag<5>\n+{}); }\n+70\n+71 template \n+_\b7_\b2 auto _\bc_\bo_\bl_\bs(_\bM_\ba_\bt_\br_\bi_\bx const& matrix) { return Impl::cols(matrix, PriorityTag<5>\n+{}); }\n+73\n+74 template \n+_\b7_\b5 auto _\bs_\bi_\bz_\be(Vector const& vector) { return Impl::size(vector, PriorityTag<5>\n+{}); }\n+76\n+77} // namespace ForEach\n+78\n+79\n+80\n+81\n+94template \n+_\b9_\b5std::size_t _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(Vector&& vector, F&& f, std::size_t offset = 0)\n+96{\n+97 using V = std::decay_t;\n+98 if constexpr( Impl::IsScalar::value )\n+99 {\n+100 f(vector, offset);\n+101 return 1;\n+102 }\n+103 else\n+104 {\n+105 std::size_t idx = 0;\n+106 Hybrid::forEach(Dune::range(_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bs_\bi_\bz_\be(vector)), [&](auto i) {\n+107 idx += _\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh(vector[i], f, offset + idx);\n+108 });\n+109 return idx;\n+110 }\n+111}\n+112\n+113\n+131template \n+_\b1_\b3_\b2std::pair _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh(_\bM_\ba_\bt_\br_\bi_\bx&& matrix, F&& f,\n+std::size_t rowOffset = 0, std::size_t colOffset = 0)\n+133{\n+134 using M = std::decay_t;\n+135 if constexpr ( Impl::IsScalar::value )\n+136 {\n+137 f(matrix,rowOffset,colOffset);\n+138 return {1,1};\n+139 }\n+140 else\n+141 {\n+142 // if M supports the IsRowMajorSparse type trait: iterate just over the\n+nonzero entries and\n+143 // and compute the flat row/col size directly\n+144 if constexpr ( Impl::IsRowMajorSparse::value )\n+145 {\n+146 using Block = std::decay_t;\n+147\n+148 // find an existing block or at least try to create one\n+149 auto block = [&]{\n+150 for (auto const& row : matrix)\n+151 for (auto const& entry : row)\n+152 return entry;\n+153 return Block{};\n+154 }();\n+155\n+156 // compute the scalar size of the block\n+157 auto [blockRows, blockCols] = _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh(block, [](...){});\n+158\n+159 // check whether we have valid sized blocks\n+160 assert( ( blockRows!=0 or blockCols!=0 ) and \"the block size can't be\n+zero\");\n+161\n+162 for ( auto rowIt = matrix.begin(); rowIt != matrix.end(); rowIt++ )\n+163 {\n+164 auto&& row = *rowIt;\n+165 auto rowIdx = rowIt.index();\n+166 for ( auto colIt = row.begin(); colIt != row.end(); colIt++ )\n 167 {\n-168 apply(x,b,res);\n-169 }\n-170\n-_\b1_\b7_\b6 void _\ba_\bp_\bp_\bl_\by(T* x, T* b)\n-177 {\n-178 const int dimMat(ldlMatrix_.N());\n-179 ldl_perm(dimMat, Y_, b, P_);\n-180 ldl_lsolve(dimMat, Y_, Lp_, Li_, Lx_);\n-181 ldl_dsolve(dimMat, Y_, D_);\n-182 ldl_ltsolve(dimMat, Y_, Lp_, Li_, Lx_);\n-183 ldl_permt(dimMat, x, Y_, P_);\n-184 }\n-185\n-_\b1_\b8_\b6 void _\bs_\be_\bt_\bO_\bp_\bt_\bi_\bo_\bn([[maybe_unused]] unsigned int option, [[maybe_unused]]\n-double value)\n-187 {}\n-188\n-_\b1_\b9_\b0 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& matrix)\n-191 {\n-192 if ((ldlMatrix_.N() + ldlMatrix_.M() > 0) || matrixIsLoaded_)\n-193 free();\n-194\n-195 if (ldlMatrix_.N() + ldlMatrix_.M() + ldlMatrix_.nonzeroes() != 0)\n-196 ldlMatrix_.free();\n-197 ldlMatrix_.setSize(_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(matrix),\n-198 _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(matrix));\n-199 ISTL::Impl::BCCSMatrixInitializer initializer(ldlMatrix_);\n-200\n-201 copyToBCCSMatrix(initializer, matrix);\n-202\n-203 decompose();\n-204 }\n-205\n-206 template\n-_\b2_\b0_\b7 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, const S& rowIndexSet)\n-208 {\n-209 if ((ldlMatrix_.N() + ldlMatrix_.M() > 0) || matrixIsLoaded_)\n-210 free();\n-211\n-212 if (ldlMatrix_.N() + ldlMatrix_.M() + ldlMatrix_.nonzeroes() != 0)\n-213 ldlMatrix_.free();\n-214\n-215 ldlMatrix_.setSize(rowIndexSet.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-(matrix) / matrix._\bN(),\n-216 rowIndexSet.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(matrix) / matrix._\bM());\n-217 ISTL::Impl::BCCSMatrixInitializer initializer(ldlMatrix_);\n-218\n-219 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<_\bM_\ba_\bt_\br_\bi_\bx,std::\n-set >(matrix,rowIndexSet));\n-220\n-221 decompose();\n-222 }\n-223\n-_\b2_\b2_\b8 inline void _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(int v)\n-229 {\n-230 verbose_=v;\n-231 }\n-232\n-_\b2_\b3_\b7 inline _\bL_\bD_\bL_\bM_\ba_\bt_\br_\bi_\bx& _\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx()\n-238 {\n-239 return ldlMatrix_;\n-240 }\n-241\n-_\b2_\b4_\b6 void _\bf_\br_\be_\be()\n-247 {\n-248 delete [] D_;\n-249 delete [] Y_;\n-250 delete [] Lp_;\n-251 delete [] Lx_;\n-252 delete [] Li_;\n-253 delete [] P_;\n-254 delete [] Pinv_;\n-255 ldlMatrix_.free();\n-256 matrixIsLoaded_ = false;\n-257 }\n-258\n-_\b2_\b6_\b0 inline const char* _\bn_\ba_\bm_\be()\n-261 {\n-262 return \"LDL\";\n-263 }\n-264\n-_\b2_\b6_\b9 inline double* _\bg_\be_\bt_\bD()\n-270 {\n-271 return D_;\n-272 }\n-273\n-_\b2_\b7_\b8 inline int* _\bg_\be_\bt_\bL_\bp()\n-279 {\n-280 return Lp_;\n-281 }\n-282\n-_\b2_\b8_\b7 inline int* _\bg_\be_\bt_\bL_\bi()\n-288 {\n-289 return Li_;\n-290 }\n-291\n-_\b2_\b9_\b6 inline double* _\bg_\be_\bt_\bL_\bx()\n-297 {\n-298 return Lx_;\n-299 }\n-300\n-301 private:\n-302 template\n-_\b3_\b0_\b3 friend class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz;\n-304\n-305 friend struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bL_\bD_\bL<_\bM_\ba_\bt_\br_\bi_\bx>,true>;\n-306\n-308 void decompose()\n-309 {\n-310 // allocate vectors\n-311 const int dimMat(ldlMatrix_.N());\n-312 D_ = new double [dimMat];\n-313 Y_ = new double [dimMat];\n-314 Lp_ = new int [dimMat + 1];\n-315 Parent_ = new int [dimMat];\n-316 Lnz_ = new int [dimMat];\n-317 Flag_ = new int [dimMat];\n-318 Pattern_ = new int [dimMat];\n-319 P_ = new int [dimMat];\n-320 Pinv_ = new int [dimMat];\n-321\n-322 double Info [AMD_INFO];\n-323 if(amd_order (dimMat, ldlMatrix_.getColStart(), ldlMatrix_.getRowIndex(),\n-P_, (double *) NULL, Info) < AMD_OK)\n-324 DUNE_THROW(InvalidStateException,\"Error: AMD failed!\");\n-325 if(verbose_ > 0)\n-326 amd_info (Info);\n-327 // compute the symbolic factorisation\n-328 ldl_symbolic(dimMat, ldlMatrix_.getColStart(), ldlMatrix_.getRowIndex(),\n-Lp_, Parent_, Lnz_, Flag_, P_, Pinv_);\n-329 // initialise those entries of additionalVectors_ whose dimension is known\n-only now\n-330 Lx_ = new double [Lp_[dimMat]];\n-331 Li_ = new int [Lp_[dimMat]];\n-332 // compute the numeric factorisation\n-333 const int rank(ldl_numeric(dimMat, ldlMatrix_.getColStart(),\n-ldlMatrix_.getRowIndex(), ldlMatrix_.getValues(),\n-334 Lp_, Parent_, Lnz_, Li_, Lx_, D_, Y_, Pattern_, Flag_, P_, Pinv_));\n-335 // free temporary vectors\n-336 delete [] Flag_;\n-337 delete [] Pattern_;\n-338 delete [] Parent_;\n-339 delete [] Lnz_;\n-340\n-341 if(rank!=dimMat)\n-342 DUNE_THROW(InvalidStateException,\"Error: LDL factorisation failed!\");\n-343 }\n-344\n-345 LDLMatrix ldlMatrix_;\n-346 bool matrixIsLoaded_;\n-347 int verbose_;\n-348 int* Lp_;\n-349 int* Parent_;\n-350 int* Lnz_;\n-351 int* Flag_;\n-352 int* Pattern_;\n-353 int* P_;\n-354 int* Pinv_;\n-355 double* D_;\n-356 double* Y_;\n-357 double* Lx_;\n-358 int* Li_;\n-359 };\n-360\n-361 template\n-_\b3_\b6_\b2 struct _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br<_\bL_\bD_\bL<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A> > >\n-363 {\n-_\b3_\b6_\b4 enum {_\bv_\ba_\bl_\bu_\be = true};\n-365 };\n-366\n-367 template\n-_\b3_\b6_\b8 struct _\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd<_\bL_\bD_\bL<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A> > >\n-369 {\n-_\b3_\b7_\b0 enum {_\bv_\ba_\bl_\bu_\be = true};\n-371 };\n-372\n-_\b3_\b7_\b3 struct _\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br {\n-_\b3_\b7_\b4 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk : std::false_type{};\n-_\b3_\b7_\b5 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk> : std::true_type\n-{};\n-376\n-377 template\n-378 std::shared_ptr::type,\n-379 typename Dune::TypeListElement<2, TL>::type>>\n-_\b3_\b8_\b0 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& _\bm_\ba_\bt, const Dune::ParameterTree& config,\n-381 std::enable_if_t<\n-382 _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::type::block_type>::\n-value,int> = 0) const\n-383 {\n-384 int verbose = config.get(\"verbose\", 0);\n-385 return std::make_shared>(_\bm_\ba_\bt,verbose);\n-386 }\n-387\n-388 // second version with SFINAE to validate the template parameters of LDL\n-389 template\n-390 std::shared_ptr::type,\n-391 typename Dune::TypeListElement<2, TL>::type>>\n-_\b3_\b9_\b2 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /\n-*config*/,\n-393 std::enable_if_t<\n-394 !_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::type::block_type>::\n-value,int> = 0) const\n-395 {\n-396 DUNE_THROW(_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be,\n-397 \"Unsupported Type in LDL (only double and std::complex\n-supported)\");\n-398 }\n-399 };\n-_\b4_\b0_\b0 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"ldl\", _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br());\n-401\n-402} // end namespace Dune\n-403\n-404\n-405#endif //HAVE_SUITESPARSE_LDL\n-406#endif //DUNE_ISTL_LDL_HH\n-_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR\n-#define DUNE_REGISTER_DIRECT_SOLVER(name,...)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:13\n-_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n-Implementations of the inverse operator interface.\n-_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh\n-_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh\n-_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n-Templates characterizing the type of a solver.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-Dune::BlockVector< FieldVector< T, m >, typename std::allocator_traits< A >::\n-template rebind_alloc< FieldVector< T, m > > > domain_type\n-The type of the domain of the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:85\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-Dune::BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n-The matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:78\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bL_\bp\n-int * getLp()\n-Get factorization Lp.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:278\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx\n-LDLMatrix & getInternalMatrix()\n-Return the column compress matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:237\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bL_\bD_\bL_\bM_\ba_\bt_\br_\bi_\bx\n-Dune::ISTL::Impl::BCCSMatrix< T, int > LDLMatrix\n-The corresponding SuperLU Matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bL_\bx\n-double * getLx()\n-Get factorization Lx.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:296\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by\n-void setVerbosity(int v)\n-Sets the verbosity level for the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:228\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-void apply(T *x, T *b)\n-Additional apply method with c-arrays in analogy to superlu.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:176\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(domain_type &x, range_type &b, double reduction,\n-InverseOperatorResult &res)\n-apply inverse operator, with given convergence criteria.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:166\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Dune::BlockVector< FieldVector< T, n >, typename std::allocator_traits< A >::\n-template rebind_alloc< FieldVector< T, n > > > range_type\n-The type of the range of the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:87\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\b~_\bL_\bD_\bL\n-virtual ~LDL()\n-Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:145\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\br_\be_\be\n-void free()\n-Free allocated space.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:246\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(domain_type &x, range_type &b, InverseOperatorResult &res)\n-Apply inverse operator,.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:152\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bL_\bi\n-int * getLi()\n-Get factorization Li.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:287\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-Dune::BCRSMatrix< FieldMatrix< T, n, m >, A > matrix_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:79\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-void setMatrix(const Matrix &matrix)\n-Initialize data from given matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:190\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bO_\bp_\bt_\bi_\bo_\bn\n-void setOption(unsigned int option, double value)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:186\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bL_\bD_\bL\n-LDL(const Matrix &matrix, int verbose, bool)\n-Constructor for compatibility with SuperLU standard constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bD\n-double * getD()\n-Get factorization diagonal matrix D.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:269\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bL_\bD_\bL\n-LDL(const Matrix &matrix, const ParameterTree &config)\n-Constructs the LDL solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:136\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the solver (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:90\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-ISTL::Impl::BCCSMatrixInitializer< BCRSMatrix< FieldMatrix< T, n, m >, A >, int\n-> MatrixInitializer\n-Type of an associated initializer class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:83\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL\n->::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL, const\n-M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock<\n-typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0)\n-const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:380\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bn_\ba_\bm_\be\n-const char * name()\n-Get method name.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:260\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n-void setSubMatrix(const Matrix &matrix, const S &rowIndexSet)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:207\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bL_\bD_\bL\n-LDL()\n-Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:141\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bL_\bD_\bL\n-LDL(const Matrix &matrix, int verbose=0)\n-Construct a solver object from a BCRSMatrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:104\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+168 auto&& entry = *colIt;\n+169 auto colIdx = colIt.index();\n+170 auto [ dummyRows, dummyCols ] = _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh(entry, f, rowOffset +\n+rowIdx*blockRows, colOffset + colIdx*blockCols);\n+171 assert( dummyRows == blockRows and dummyCols == blockCols and \"we need the\n+same size of each block in this matrix type\");\n+172 }\n+173 }\n+174\n+175 return { matrix.N()*blockRows, matrix.M()*blockCols };\n+176 }\n+177 // all other matrix types are accessed index-wise with dynamic flat row/col\n+counting\n+178 else\n+179 {\n+180 std::size_t r = 0, c = 0;\n+181 std::size_t nRows, nCols;\n+182\n+183 Hybrid::forEach(Dune::range(_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\br_\bo_\bw_\bs(matrix)), [&](auto i) {\n+184 c = 0;\n+185 Hybrid::forEach(Dune::range(_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bc_\bo_\bl_\bs(matrix)), [&](auto j) {\n+186 std::tie(nRows,nCols) = _\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh(matrix[i][j], f, rowOffset + r,\n+colOffset + c);\n+187 c += nCols;\n+188 });\n+189 r += nRows;\n+190 });\n+191 return {r,c};\n+192 }\n+193 }\n+194}\n+195\n+196} // namespace Dune\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n+_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+This file implements a quadratic matrix of fixed size which is a multiple of\n+the identity.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n+_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bF_\bo_\br_\bE_\ba_\bc_\bh\n+std::pair< std::size_t, std::size_t > flatMatrixForEach(Matrix &&matrix, F &&f,\n+std::size_t rowOffset=0, std::size_t colOffset=0)\n+Traverse a blocked matrix and call a functor at each scalar entry.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:132\n+_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bl_\ba_\bt_\bV_\be_\bc_\bt_\bo_\br_\bF_\bo_\br_\bE_\ba_\bc_\bh\n+std::size_t flatVectorForEach(Vector &&vector, F &&f, std::size_t offset=0)\n+Traverse a blocked vector and call a functor at each scalar entry.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\br_\bo_\bw_\bs\n+auto rows(Matrix const &matrix)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:69\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bc_\bo_\bl_\bs\n+auto cols(Matrix const &matrix)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:72\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bo_\br_\bE_\ba_\bc_\bh_\b:_\b:_\bs_\bi_\bz_\be\n+auto size(Vector const &vector)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn foreach.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n size_type M() const\n-number of columns (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1978\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+Return the number of columns.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:700\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n size_type N() const\n-number of rows (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n-Sequential overlapping Schwarz preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:694\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL\n-Use the LDL package to directly solve linear systems \u00e2\u0080\u0093 empty default class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:56\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:373\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bD_\bL_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ldl.hh:374\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n-int iterations\n-Number of iterations.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n-bool converged\n-True if convergence criterion has been met.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Abstract base class for all solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:77\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-@ value\n-Whether this is a direct solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:24\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-@ value\n-whether the solver internally uses column compressed storage\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:36\n+Return the number of rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:695\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00194.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00194.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: operators.hh File Reference\n+dune-istl: spqr.hh File Reference\n \n \n \n \n \n \n \n@@ -71,51 +71,65 @@\n \n
    \n
    \n \n+ \n
    \n
    \n \n-

    Define general, extensible interface for operators. The available implementation wraps a matrix. \n+

    Class for using SPQR with ISTL matrices. \n More...

    \n-
    #include <cmath>
    \n-#include <complex>
    \n-#include <iostream>
    \n-#include <iomanip>
    \n-#include <string>
    \n+
    #include <complex>
    \n+#include <type_traits>
    \n+#include <SuiteSparseQR.hpp>
    \n #include <dune/common/exceptions.hh>
    \n-#include <dune/common/shared_ptr.hh>
    \n-#include "solvercategory.hh"
    \n+#include <dune/istl/bccsmatrixinitializer.hh>
    \n+#include <dune/istl/solvers.hh>
    \n+#include <dune/istl/solvertype.hh>
    \n+#include <dune/istl/solverfactory.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::LinearOperator< X, Y >
     A linear operator. More...
    class  Dune::SPQR< Matrix >
     Use the SPQR package to directly solve linear systems – empty default class. More...
     
    class  Dune::AssembledLinearOperator< M, X, Y >
     A linear operator exporting itself in matrix form. More...
    class  Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >
     The SPQR direct sparse solver for matrices of type BCRSMatrix. More...
     
    class  Dune::MatrixAdapter< M, X, Y >
     Adapter to turn a matrix into a linear operator. More...
    struct  Dune::IsDirectSolver< SPQR< BCRSMatrix< T, A > > >
     
    struct  Dune::StoresColumnCompressed< SPQR< BCRSMatrix< T, A > > >
     
    struct  Dune::SPQRCreator
     
    struct  Dune::SPQRCreator::isValidBlock< class >
     
    struct  Dune::SPQRCreator::isValidBlock< FieldVector< double, 1 > >
     
    \n \n \n \n+

    \n Namespaces

    namespace  Dune
     
    \n+\n+\n+\n

    \n+Functions

     Dune::DUNE_REGISTER_DIRECT_SOLVER ("spqr", Dune::SPQRCreator())
     
    \n

    Detailed Description

    \n-

    Define general, extensible interface for operators. The available implementation wraps a matrix.

    \n+

    Class for using SPQR with ISTL matrices.

    \n+
    Author
    Marco Agnese, Andrea Sacconi
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,39 +1,49 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-operators.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-_\bc_\bo_\bn_\bc_\be_\bp_\bt\n-Define general, extensible interface for operators. The available\n-implementation wraps a matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+spqr.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b)\n+Class for using SPQR with ISTL matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n #include \n-#include \n-#include \n-#include \n+#include \n+#include \n #include \n-#include \n-#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0 A linear operator. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\b>\n+\u00a0 Use the SPQR package to directly solve linear systems \u2013 empty default\n+ class. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0 A linear operator exporting itself in matrix form. _\bM_\bo_\br_\be_\b._\b._\b.\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0 The SPQR direct sparse solver for matrices of type _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n-\u00a0 Adapter to turn a matrix into a linear operator. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\b _\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\bC_\br_\be_\ba_\bt_\bo_\br\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bc_\bl_\ba_\bs_\bs_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk_\b<_\b _\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bd_\bo_\bu_\bb_\bl_\be_\b,_\b _\b1_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR (\"spqr\", _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\bC_\br_\be_\ba_\bt_\bo_\br())\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Define general, extensible interface for operators. The available\n-implementation wraps a matrix.\n+Class for using SPQR with ISTL matrices.\n+ Author\n+ Marco Agnese, Andrea Sacconi\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00194_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00194_source.html", "has_internal_linenos": true, "unified_diff": "@@ -21,2108 +21,4679 @@\n 00000140: 2267 656e 6572 6174 6f72 2220 636f 6e74 \"generator\" cont\n 00000150: 656e 743d 2244 6f78 7967 656e 2031 2e39 ent=\"Doxygen 1.9\n 00000160: 2e38 222f 3e0a 3c6d 6574 6120 6e61 6d65 .8\"/>..dune-istl: op\n-000001c0: 6572 6174 6f72 732e 6868 2053 6f75 7263 erators.hh Sourc\n-000001d0: 6520 4669 6c65 3c2f 7469 746c 653e 0a3c e File.<\n-000001e0: 6c69 6e6b 2068 7265 663d 2274 6162 732e link href=\"tabs.\n-000001f0: 6373 7322 2072 656c 3d22 7374 796c 6573 css\" rel=\"styles\n-00000200: 6865 6574 2220 7479 7065 3d22 7465 7874 heet\" type=\"text\n-00000210: 2f63 7373 222f 3e0a 3c73 6372 6970 7420 /css\"/>.\n-00000250: 0a3c 7363 7269 7074 2074 7970 653d 2274 ..<\n-00000290: 6c69 6e6b 2068 7265 663d 2273 6561 7263 link href=\"searc\n-000002a0: 682f 7365 6172 6368 2e63 7373 2220 7265 h/search.css\" re\n-000002b0: 6c3d 2273 7479 6c65 7368 6565 7422 2074 l=\"stylesheet\" t\n-000002c0: 7970 653d 2274 6578 742f 6373 7322 2f3e ype=\"text/css\"/>\n-000002d0: 0a3c 7363 7269 7074 2074 7970 653d 2274 .../* @l\n-00000690: 6963 656e 7365 206d 6167 6e65 743a 3f78 icense magnet:?x\n-000006a0: 743d 7572 6e3a 6274 6968 3a64 3364 3961 t=urn:btih:d3d9a\n-000006b0: 3961 3635 3935 3532 3166 3936 3636 6135 9a6595521f9666a5\n-000006c0: 6539 3463 6338 3330 6461 6238 3362 3635 e94cc830dab83b65\n-000006d0: 3639 3926 616d 703b 646e 3d65 7870 6174 699&dn=expat\n-000006e0: 2e74 7874 204d 4954 202a 2f0a 2428 6675 .txt MIT */.$(fu\n-000006f0: 6e63 7469 6f6e 2829 207b 0a20 2069 6e69 nction() {. ini\n-00000700: 744d 656e 7528 2727 2c74 7275 652c 6661 tMenu('',true,fa\n-00000710: 6c73 652c 2773 6561 7263 682e 7068 7027 lse,'search.php'\n-00000720: 2c27 5365 6172 6368 2729 3b0a 2020 2428 ,'Search');. $(\n-00000730: 646f 6375 6d65 6e74 292e 7265 6164 7928 document).ready(\n-00000740: 6675 6e63 7469 6f6e 2829 207b 2069 6e69 function() { ini\n-00000750: 745f 7365 6172 6368 2829 3b20 7d29 3b0a t_search(); });.\n-00000760: 7d29 3b0a 2f2a 2040 6c69 6365 6e73 652d });./* @license-\n-00000770: 656e 6420 2a2f 0a3c 2f73 6372 6970 743e end */.\n-00000780: 0a3c 6469 7620 6964 3d22 6d61 696e 2d6e .
    ../* @l\n-000007c0: 6963 656e 7365 206d 6167 6e65 743a 3f78 icense magnet:?x\n-000007d0: 743d 7572 6e3a 6274 6968 3a64 3364 3961 t=urn:btih:d3d9a\n-000007e0: 3961 3635 3935 3532 3166 3936 3636 6135 9a6595521f9666a5\n-000007f0: 6539 3463 6338 3330 6461 6238 3362 3635 e94cc830dab83b65\n-00000800: 3639 3926 616d 703b 646e 3d65 7870 6174 699&dn=expat\n-00000810: 2e74 7874 204d 4954 202a 2f0a 2428 646f .txt MIT */.$(do\n-00000820: 6375 6d65 6e74 292e 7265 6164 7928 6675 cument).ready(fu\n-00000830: 6e63 7469 6f6e 2829 207b 2069 6e69 745f nction() { init_\n-00000840: 636f 6465 666f 6c64 2830 293b 207d 293b codefold(0); });\n-00000850: 0a2f 2a20 406c 6963 656e 7365 2d65 6e64 ./* @license-end\n-00000860: 202a 2f0a 3c2f 7363 7269 7074 3e0a 3c21 */...
    .
    ...
    .
    .
    .
    .
    .
    Loadi\n-00000a50: 6e67 2e2e 2e3c 2f64 6976 3e0a 3c64 6976 ng...
    .Searching....
    No Matc\n-00000ac0: 6865 733c 2f64 6976 3e0a 3c2f 6469 763e hes
    .
    \n-00000ad0: 0a3c 2f64 6976 3e0a 3c2f 6469 763e 0a3c .
    .
    .<\n-00000ae0: 2f64 6976 3e0a 0a3c 6469 7620 6964 3d22 /div>..\n-00000be0: 0a3c 2f64 6976 3e3c 212d 2d20 746f 7020 .
    .
    .
    operators\n-00000c40: 2e68 683c 2f64 6976 3e3c 2f64 6976 3e0a .hh
    .\n-00000c50: 3c2f 6469 763e 3c21 2d2d 6865 6164 6572
    .
    .Go to the docum\n-00000ca0: 656e 7461 7469 6f6e 206f 6620 7468 6973 entation of this\n-00000cb0: 2066 696c 652e 3c2f 613e 3c64 6976 2063 file.
    \n-00000cd0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n-00000dc0: 3c61 2069 643d 226c 3030 3030 3222 206e 2// SPDX-\n-00000e20: 4c69 6365 6e73 652d 4964 656e 7469 6669 License-Identifi\n-00000e30: 6572 3a20 4c69 6365 6e73 6552 6566 2d47 er: LicenseRef-G\n-00000e40: 504c 2d32 2e30 2d6f 6e6c 792d 7769 7468 PL-2.0-only-with\n-00000e50: 2d44 554e 452d 6578 6365 7074 696f 6e3c -DUNE-exception<\n-00000e60: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n-00000e80: 6120 6964 3d22 6c30 3030 3033 2220 6e61 a id=\"l00003\" na\n-00000e90: 6d65 3d22 6c30 3030 3033 223e 3c2f 613e me=\"l00003\">\n-00000ea0: 3c73 7061 6e20 636c 6173 733d 226c 696e 3// -*- ta\n-00000ee0: 622d 7769 6474 683a 2034 3b20 696e 6465 b-width: 4; inde\n-00000ef0: 6e74 2d74 6162 732d 6d6f 6465 3a20 6e69 nt-tabs-mode: ni\n-00000f00: 6c3b 2063 2d62 6173 6963 2d6f 6666 7365 l; c-basic-offse\n-00000f10: 743a 2032 202d 2a2d 3c2f 7370 616e 3e3c t: 2 -*-<\n-00000f20: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00000f70: 2020 343c 2f73 7061 6e3e 3c73 7061 6e20 4\n-00000f90: 2f2f 2076 693a 2073 6574 2065 7420 7473 // vi: set et ts\n-00000fa0: 3d34 2073 773d 3220 7374 733d 323a 3c2f =4 sw=2 sts=2:
    .<\n-00000ff0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00001000: 6e6f 223e 2020 2020 353c 2f73 7061 6e3e no\"> 5
    \n-00001010: 3c73 7061 6e20 636c 6173 733d 2270 7265 #ifnd\n-00001030: 6566 2044 554e 455f 4953 544c 5f4f 5045 ef DUNE_ISTL_OPE\n-00001040: 5241 544f 5253 5f48 483c 2f73 7061 6e3e RATORS_HH\n-00001050: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-000010a0: 2020 2036 3c2f 7370 616e 3e3c 7370 616e 6#define DU\n-000010d0: 4e45 5f49 5354 4c5f 4f50 4552 4154 4f52 NE_ISTL_OPERATOR\n-000010e0: 535f 4848 3c2f 7370 616e 3e3c 2f64 6976 S_HH.
    7<\n-00001140: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n-00001160: 3c61 2069 643d 226c 3030 3030 3822 206e 8#in\n-000011c0: 636c 7564 6520 266c 743b 636d 6174 6826 clude <cmath&\n-000011d0: 6774 3b3c 2f73 7061 6e3e 3c2f 6469 763e gt;
    \n-000011e0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00001210: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 9\n-00001250: 2369 6e63 6c75 6465 2026 6c74 3b63 6f6d #include <com\n-00001260: 706c 6578 2667 743b 3c2f 7370 616e 3e3c plex><\n-00001270: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-000012c0: 2031 303c 2f73 7061 6e3e 3c73 7061 6e20 10#include &l\n-000012f0: 743b 696f 7374 7265 616d 2667 743b 3c2f t;iostream>
    .<\n-00001340: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00001350: 6e6f 223e 2020 2031 313c 2f73 7061 6e3e no\"> 11
    \n-00001360: 3c73 7061 6e20 636c 6173 733d 2270 7265 #incl\n-00001380: 7564 6520 266c 743b 696f 6d61 6e69 7026 ude <iomanip&\n-00001390: 6774 3b3c 2f73 7061 6e3e 3c2f 6469 763e gt;
    \n-000013a0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-000013d0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 12\n-00001410: 2369 6e63 6c75 6465 2026 6c74 3b73 7472 #include <str\n-00001420: 696e 6726 6774 3b3c 2f73 7061 6e3e 3c2f ing>.
    \n-00001480: 3133 3c2f 7370 616e 3e20 3c2f 6469 763e 13
    \n-00001490: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-000014c0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 14\n-00001500: 2369 6e63 6c75 6465 2026 6c74 3b64 756e #include <dun\n-00001510: 652f 636f 6d6d 6f6e 2f65 7863 6570 7469 e/common/excepti\n-00001520: 6f6e 732e 6868 2667 743b 3c2f 7370 616e ons.hh>
    .
    \n-00001580: 2020 2031 353c 2f73 7061 6e3e 3c73 7061 15#include \n-000015b0: 266c 743b 6475 6e65 2f63 6f6d 6d6f 6e2f <dune/common/\n-000015c0: 7368 6172 6564 5f70 7472 2e68 6826 6774 shared_ptr.hh>\n-000015d0: 3b3c 2f73 7061 6e3e 3c2f 6469 763e 0a3c ;
    .<\n-000015e0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-000015f0: 3e3c 6120 6964 3d22 6c30 3030 3136 2220 > 16
    .
    17<\n-00001690: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n-000016a0: 726f 6365 7373 6f72 223e 2369 6e63 6c75 rocessor\">#inclu\n-000016b0: 6465 2026 7175 6f74 3b3c 6120 636c 6173 de "solv\n-000016e0: 6572 6361 7465 676f 7279 2e68 683c 2f61 ercategory.hh".
    \n-00001750: 3138 3c2f 7370 616e 3e20 3c2f 6469 763e 18
    \n-00001760: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n-000017d0: 6120 6964 3d22 6c30 3030 3230 2220 6e61 a id=\"l00020\" na\n-000017e0: 6d65 3d22 6c30 3030 3230 223e 3c2f 613e me=\"l00020\">\n-000017f0: 3c73 7061 6e20 636c 6173 733d 226c 696e 20namespace\n-00001830: 203c 2f73 7061 6e3e 3c61 2063 6c61 7373 Dune\n-00001870: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    21 .
    \n-00001920: 3434 3c2f 7370 616e 3e20 203c 7370 616e 44 //=============\n-00001950: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00001960: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00001970: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00001980: 3d3d 3d3d 3d3d 3d3d 3c2f 7370 616e 3e3c ========<\n-00001990: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-000019e0: 2034 353c 2f73 7061 6e3e 2020 3c73 7061 45 // Abstract op\n-00001a10: 6572 6174 6f72 2069 6e74 6572 6661 6365 erator interface\n-00001a20: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n-00001a40: 3c61 2069 643d 226c 3030 3034 3622 206e 46 //====\n-00001aa0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00001ab0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00001ac0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00001ad0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00001ae0: 3d3c 2f73 7061 6e3e 3c2f 6469 763e 0a3c =
    .<\n-00001af0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00001b00: 3e3c 6120 6964 3d22 6c30 3030 3437 2220 > 47
    .
    48 \n-00001ba0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00001bf0: 2020 3636 3c2f 7370 616e 3e20 203c 7370 66 template<clas\n-00001c40: 733c 2f73 7061 6e3e 2058 2c20 3c73 7061 s X, class Y\n-00001c70: 2667 743b 3c2f 6469 763e 0a3c 6469 7620 >
    .
    .
    \n-00001d30: 3637 3c2f 613e 3c2f 7370 616e 3e20 203c 67 <\n-00001d40: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00001d50: 6f72 6422 3e63 6c61 7373 203c 2f73 7061 ord\">class Li\n-00001d90: 6e65 6172 4f70 6572 6174 6f72 3c2f 613e nearOperator\n-00001da0: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    68 <\n-00001e00: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00001e10: 6f72 6422 3e70 7562 6c69 633c 2f73 7061 ord\">public:
    .
    70\n-00001ec0: 3c2f 7370 616e 3e20 2020 203c 7370 616e typedef \n-00001ef0: 5820 3c61 2063 6c61 7373 3d22 636f 6465 X domain_type;
    .
    72<\n-00001ff0: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n-00002010: 7479 7065 6465 663c 2f73 7061 6e3e 2059 typedef Y\n-00002020: 203c 6120 636c 6173 733d 2263 6f64 6520 range_type;\n-00002080: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    <\n-000020d0: 6120 636c 6173 733d 226c 696e 6522 2068 a class=\"line\" h\n-000020e0: 7265 663d 2261 3031 3834 302e 6874 6d6c ref=\"a01840.html\n-000020f0: 2361 3564 3532 3138 6539 6662 3637 3965 #a5d5218e9fb679e\n-00002100: 6364 3731 3063 3365 3938 6636 3939 3466 cd710c3e98f6994f\n-00002110: 3139 223e 2020 2037 343c 2f61 3e3c 2f73 19\"> 74 ty\n-00002140: 7065 6465 663c 2f73 7061 6e3e 203c 7370 pedef typename X::field_type\n-00002180: 203c 6120 636c 6173 733d 2263 6f64 6520 field_type;\n-000021e0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00002230: 2020 3735 3c2f 7370 616e 3e20 3c2f 6469 75 .
    \n-000022d0: 2020 2038 303c 2f61 3e3c 2f73 7061 6e3e 80\n-000022e0: 2020 2020 3c73 7061 6e20 636c 6173 733d virtua\n-00002300: 6c3c 2f73 7061 6e3e 203c 7370 616e 2063 l void <\n-00002330: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n-00002340: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n-00002350: 2261 3031 3834 302e 6874 6d6c 2361 6436 \"a01840.html#ad6\n-00002360: 6332 3066 3137 6366 3266 3334 3231 6364 c20f17cf2f3421cd\n-00002370: 3338 3862 3262 3630 6664 3066 6533 223e 388b2b60fd0fe3\">\n-00002380: 6170 706c 793c 2f61 3e20 283c 7370 616e apply (const X&\n-000023b0: 616d 703b 2078 2c20 5926 616d 703b 2079 amp; x, Y& y\n-000023c0: 2920 3c73 7061 6e20 636c 6173 733d 226b ) const = 0;
    .\n-000023f0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n-00002480: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00002490: 6e6f 223e 3c61 2063 6c61 7373 3d22 6c69 no\"> 83 virtual void\n-00002530: 3c2f 7370 616e 3e20 3c61 2063 6c61 7373 applysc\n-00002590: 616c 6561 6464 3c2f 613e 2028 3c61 2063 aleadd (fiel\n-000025f0: 645f 7479 7065 3c2f 613e 2061 6c70 6861 d_type alpha\n-00002600: 2c20 3c73 7061 6e20 636c 6173 733d 226b , const X& x, Y\n-00002630: 2661 6d70 3b20 7929 203c 7370 616e 2063 & y) c\n-00002650: 6f6e 7374 3c2f 7370 616e 3e20 3d20 303b onst = 0;\n-00002660: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-000026b0: 2020 3834 3c2f 7370 616e 3e20 3c2f 6469 84 .
    \n-00002750: 2020 2038 363c 2f61 3e3c 2f73 7061 6e3e 86\n-00002760: 2020 2020 3c73 7061 6e20 636c 6173 733d virtua\n-00002780: 6c3c 2f73 7061 6e3e 203c 6120 636c 6173 l ~Linea\n-000027e0: 724f 7065 7261 746f 723c 2f61 3e20 2829 rOperator ()\n-000027f0: 207b 7d3c 2f64 6976 3e0a 3c64 6976 2063 {}
    .
    87 <\n-00002850: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>..
    90#if DUNE\n-00002a70: 5f49 5354 4c5f 5355 5050 4f52 545f 4f4c _ISTL_SUPPORT_OL\n-00002a80: 445f 4341 5445 474f 5259 5f49 4e54 4552 D_CATEGORY_INTER\n-00002a90: 4641 4345 3c2f 7370 616e 3e3c 2f64 6976 FACE.
    91<\n-00002af0: 2f73 7061 6e3e 2020 2020 7b3c 2f64 6976 /span> {.
    92<\n-00002b50: 2f73 7061 6e3e 2020 2020 2020 4455 4e45 /span> DUNE\n-00002b60: 5f54 4852 4f57 2844 756e 653a 3a45 7863 _THROW(Dune::Exc\n-00002b70: 6570 7469 6f6e 2c3c 7370 616e 2063 6c61 eption,"It is n\n-00002ba0: 6563 6573 7361 7279 2074 6f20 696d 706c ecessary to impl\n-00002bb0: 656d 656e 7420 7468 6520 6361 7465 676f ement the catego\n-00002bc0: 7279 206d 6574 686f 6420 696e 2061 2064 ry method in a d\n-00002bd0: 6572 6976 6564 2063 6c61 7373 6573 2c20 erived classes, \n-00002be0: 696e 2074 6865 2066 7574 7572 6520 7468 in the future th\n-00002bf0: 6973 206d 6574 686f 6420 7769 6c6c 2070 is method will p\n-00002c00: 7572 6520 7669 7274 7561 6c2e 2671 756f ure virtual.&quo\n-00002c10: 743b 3c2f 7370 616e 3e29 3b3c 2f64 6976 t;);.
    93<\n-00002c70: 2f73 7061 6e3e 2020 2020 7d3b 3c2f 6469 /span> };.
    94\n-00002cd0: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 #else.
    \n-00002d50: 3935 3c2f 7370 616e 3e20 2020 203d 2030 95 = 0\n-00002d60: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-00002db0: 2020 2039 363c 2f73 7061 6e3e 3c73 7061 96#endif
    .
    97 \n-00002e40: 207d 3b3c 2f64 6976 3e0a 3c2f 6469 763e };
    .
    \n-00002e50: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n-00002ec0: 6120 6964 3d22 6c30 3030 3939 2220 6e61 a id=\"l00099\" na\n-00002ed0: 6d65 3d22 6c30 3030 3939 223e 3c2f 613e me=\"l00099\">\n-00002ee0: 3c73 7061 6e20 636c 6173 733d 226c 696e 99
    .
    108 <\n-00002f60: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00002f70: 6f72 6422 3e74 656d 706c 6174 653c 2f73 ord\">template<cl\n-00002fa0: 6173 733c 2f73 7061 6e3e 204d 2c20 3c73 ass M, class\n-00002fd0: 2058 2c20 3c73 7061 6e20 636c 6173 733d X, class<\n-00002ff0: 2f73 7061 6e3e 2059 2667 743b 3c2f 6469 /span> Y>.
    ..
    110 \n-00003200: 3c73 7061 6e20 636c 6173 733d 226b 6579 public:
    ..
    113\n-000033f0: 3c2f 7370 616e 3e20 2020 203c 7370 616e typedef \n-00003420: 5820 3c61 2063 6c61 7373 3d22 636f 6465 X domain_type;
    .
    114<\n-00003520: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n-00003540: 7479 7065 6465 663c 2f73 7061 6e3e 2059 typedef Y\n-00003550: 203c 6120 636c 6173 733d 2263 6f64 6520 range_type;\n-000035b0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    <\n-00003600: 6120 636c 6173 733d 226c 696e 6522 2068 a class=\"line\" h\n-00003610: 7265 663d 2261 3031 3834 342e 6874 6d6c ref=\"a01844.html\n-00003620: 2361 3934 3438 6339 6536 3566 3462 3965 #a9448c9e65f4b9e\n-00003630: 6164 6664 3464 6563 3461 3063 6333 3762 adfd4dec4a0cc37b\n-00003640: 3536 223e 2020 3131 353c 2f61 3e3c 2f73 56\"> 115 ty\n-00003670: 7065 6465 663c 2f73 7061 6e3e 203c 7370 pedef typename X::field_type\n-000036b0: 203c 6120 636c 6173 733d 2263 6f64 6520 field_type;\n-00003710: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00003760: 2031 3136 3c2f 7370 616e 3e20 3c2f 6469 116 .
    \n-00003800: 2020 3131 383c 2f61 3e3c 2f73 7061 6e3e 118\n-00003810: 2020 2020 3c73 7061 6e20 636c 6173 733d virtua\n-00003830: 6c3c 2f73 7061 6e3e 203c 7370 616e 2063 l c\n-00003850: 6f6e 7374 3c2f 7370 616e 3e20 4d26 616d onst M&am\n-00003860: 703b 203c 6120 636c 6173 733d 2263 6f64 p; getmat (\n-000038c0: 2920 3c73 7061 6e20 636c 6173 733d 226b ) const = 0;
    .\n-000038f0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n-00003980: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00003990: 6e6f 223e 3c61 2063 6c61 7373 3d22 6c69 no\"> 121 virtual ~AssembledLin\n-00003a70: 6561 724f 7065 7261 746f 723c 2f61 3e20 earOperator \n-00003a80: 2829 207b 7d3c 2f64 6976 3e0a 3c64 6976 () {}
    .<\n-00003ac0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00003ad0: 6e6f 223e 2020 3132 323c 2f73 7061 6e3e no\"> 122\n-00003ae0: 2020 7d3b 3c2f 6469 763e 0a3c 2f64 6976 };
    ..
    123<\n-00003b40: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n-00003b60: 3c61 2069 643d 226c 3030 3132 3422 206e 124
    .
    125 <\n-00003c00: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00003c50: 3132 363c 2f73 7061 6e3e 2020 3c73 7061 126 //============\n-00003c80: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00003c90: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00003ca0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00003cb0: 3d3d 3d3d 3d3d 3d3d 3d3c 2f73 7061 6e3e =========\n-00003cc0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00003d10: 2031 3237 3c2f 7370 616e 3e20 203c 7370 127 // Implementa\n-00003d40: 7469 6f6e 2066 6f72 2049 5354 4c2d 6d61 tion for ISTL-ma\n-00003d50: 7472 6978 2062 6173 6564 206f 7065 7261 trix based opera\n-00003d60: 746f 723c 2f73 7061 6e3e 3c2f 6469 763e tor
    \n-00003d70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00003da0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 128 //=\n-00003de0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00003df0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00003e00: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00003e10: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00003e20: 3d3d 3d3d 3c2f 7370 616e 3e3c 2f64 6976 ====.
    129<\n-00003e80: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n-00003ea0: 3c61 2069 643d 226c 3030 3133 3522 206e 135 templa\n-00003f00: 7465 3c2f 7370 616e 3e26 6c74 3b3c 7370 te<class \n-00003f30: 4d2c 203c 7370 616e 2063 6c61 7373 3d22 M, class X, c\n-00003f70: 6c61 7373 3c2f 7370 616e 3e20 5926 6774 lass Y>\n-00003f80: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    ..\n-00004140: 3c61 2069 643d 226c 3030 3133 3722 206e 137 {
    .<\n-000041c0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-000041d0: 6e6f 223e 2020 3133 383c 2f73 7061 6e3e no\"> 138
    \n-000041e0: 2020 3c73 7061 6e20 636c 6173 733d 226b public:
    .<\n-00004220: 6120 6964 3d22 6c30 3031 3430 2220 6e61 a id=\"l00140\" na\n-00004230: 6d65 3d22 6c30 3031 3430 223e 3c2f 613e me=\"l00140\">\n-00004240: 3c73 7061 6e20 636c 6173 733d 226c 696e 140<\n-000042a0: 2f61 3e3c 2f73 7061 6e3e 2020 2020 3c73 /a> typedef M matrix_type\n-00004330: 3c2f 613e 3b3c 2f64 6976 3e0a 3c64 6976 ;
    .<\n-00004370: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00004380: 6e6f 223e 3c61 2063 6c61 7373 3d22 6c69 no\"> 141 typedef X domain_type<\n-00004460: 2f61 3e3b 3c2f 6469 763e 0a3c 6469 7620 /a>;
    ..
    143<\n-00004630: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n-00004650: 7479 7065 6465 663c 2f73 7061 6e3e 203c typedef <\n-00004660: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00004670: 6f72 6422 3e74 7970 656e 616d 653c 2f73 ord\">typename X::field_ty\n-00004690: 7065 203c 6120 636c 6173 733d 2263 6f64 pe field_type;
    .
    144 .
    146 expl\n-00004810: 6963 6974 3c2f 7370 616e 3e20 3c61 2063 icit Mat\n-00004870: 7269 7841 6461 7074 6572 3c2f 613e 2028 rixAdapter (\n-00004880: 3c73 7061 6e20 636c 6173 733d 226b 6579 const M& A) : _\n-000048b0: 415f 2873 7461 636b 6f62 6a65 6374 5f74 A_(stackobject_t\n-000048c0: 6f5f 7368 6172 6564 5f70 7472 2841 2929 o_shared_ptr(A))\n-000048d0: 207b 7d3c 2f64 6976 3e0a 3c64 6976 2063 {}
    .
    147 <\n-00004930: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    149 exp\n-000049f0: 6c69 6369 743c 2f73 7061 6e3e 203c 6120 licit Ma\n-00004a50: 7472 6978 4164 6170 7465 723c 2f61 3e20 trixAdapter \n-00004a60: 2873 7464 3a3a 7368 6172 6564 5f70 7472 (std::shared_ptr\n-00004a70: 266c 743b 636f 6e73 7420 4d26 6774 3b20 <const M> \n-00004a80: 4129 203a 205f 415f 2841 2920 7b7d 3c2f A) : _A_(A) {}.
    1\n-00004ae0: 3530 3c2f 7370 616e 3e20 3c2f 6469 763e 50
    \n-00004af0: 0a3c 6469 7620 636c 6173 733d 2266 6f6c .
    .
    <\n-00004b80: 6120 636c 6173 733d 226c 696e 6522 2068 a class=\"line\" h\n-00004b90: 7265 663d 2261 3031 3834 382e 6874 6d6c ref=\"a01848.html\n-00004ba0: 2361 6233 3937 3661 3230 6564 6139 6634 #ab3976a20eda9f4\n-00004bb0: 3338 6631 6265 3066 6263 3961 6339 3365 38f1be0fbc9ac93e\n-00004bc0: 3562 223e 2020 3135 323c 2f61 3e3c 2f73 5b\"> 152 void a\n-00004c50: 7070 6c79 3c2f 613e 2028 3c73 7061 6e20 pply (\n-00004c70: 636f 6e73 743c 2f73 7061 6e3e 2058 2661 const X&a\n-00004c80: 6d70 3b20 782c 2059 2661 6d70 3b20 7929 mp; x, Y& y)\n-00004c90: 3c73 7061 6e20 636c 6173 733d 226b 6579 const ove\n-00004cb0: 7272 6964 653c 2f73 7061 6e3e 3c2f 6469 rride.
    153\n-00004d10: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 \n-00004d30: 203c 2f73 7061 6e3e 7b3c 2f64 6976 3e0a {
    .\n-00004d40: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n-00004db0: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n-00004e10: 0a3c 2f64 6976 3e0a 3c64 6976 2063 6c61 .
    .
    \n-00004e60: 2020 3135 363c 2f73 7061 6e3e 203c 2f64 156 .
    .
    158\n-00004f50: 3c2f 7370 616e 3e20 2020 203c 7370 616e void\n-00004f80: 203c 6120 636c 6173 733d 2263 6f64 6520 applyscaleadd<\n-00004fe0: 2f61 3e20 283c 6120 636c 6173 733d 2263 /a> (field_type<\n-00005040: 2f61 3e20 616c 7068 612c 203c 7370 616e /a> alpha, const X&\n-00005070: 616d 703b 2078 2c20 5926 616d 703b 2079 amp; x, Y& y\n-00005080: 293c 7370 616e 2063 6c61 7373 3d22 6b65 ) const ov\n-000050a0: 6572 7269 6465 3c2f 7370 616e 3e3c 2f64 erride.
    15\n-00005100: 393c 2f73 7061 6e3e 3c73 7061 6e20 636c 9 \n-00005120: 2020 3c2f 7370 616e 3e7b 3c2f 6469 763e {
    \n-00005130: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00005160: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 160 _A_-&\n-00005190: 6774 3b75 736d 7628 616c 7068 612c 782c gt;usmv(alpha,x,\n-000051a0: 7929 3b3c 2f64 6976 3e0a 3c64 6976 2063 y);
    .
    161 \n-00005200: 2020 7d3c 2f64 6976 3e0a 3c2f 6469 763e }
    .
    \n-00005210: 0a3c 6469 7620 636c 6173 733d 226c 696e ...
    \n-00005340: 2020 3136 343c 2f61 3e3c 2f73 7061 6e3e 164\n-00005350: 2020 2020 3c73 7061 6e20 636c 6173 733d const<\n-00005370: 2f73 7061 6e3e 204d 2661 6d70 3b20 3c61 /span> M& g\n-000053d0: 6574 6d61 743c 2f61 3e20 2829 3c73 7061 etmat () const overrid\n-00005400: 653c 2f73 7061 6e3e 3c2f 6469 763e 0a3c e
    .<\n-00005410: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00005420: 3e3c 6120 6964 3d22 6c30 3031 3635 2220 > 165 {
    .<\n-000054c0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-000054d0: 6e6f 223e 2020 3136 363c 2f73 7061 6e3e no\"> 166\n-000054e0: 2020 2020 2020 3c73 7061 6e20 636c 6173 \n-00005500: 7265 7475 726e 3c2f 7370 616e 3e20 2a5f return *_\n-00005510: 415f 3b3c 2f64 6976 3e0a 3c64 6976 2063 A_;
    .
    167 \n-00005570: 2020 7d3c 2f64 6976 3e0a 3c2f 6469 763e }
    .
    \n-00005580: 0a3c 6469 7620 636c 6173 733d 226c 696e ....
    \n-00005810: 2031 3731 3c2f 7370 616e 3e3c 7370 616e 171 {..<\n-00005960: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00005970: 3e3c 6120 6964 3d22 6c30 3031 3733 2220 > 173 }
    .<\n-000059c0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00005a10: 3137 343c 2f73 7061 6e3e 203c 2f64 6976 174 .
    175<\n-00005a70: 2f73 7061 6e3e 2020 3c73 7061 6e20 636c /span> pr\n-00005a90: 6976 6174 653c 2f73 7061 6e3e 3a3c 2f64 ivate:.
    17\n-00005af0: 363c 2f73 7061 6e3e 2020 2020 3c73 7061 6 const s\n-00005b20: 7464 3a3a 7368 6172 6564 5f70 7472 266c td::shared_ptr&l\n-00005b30: 743b 636f 6e73 7420 4d26 6774 3b20 5f41 t;const M> _A\n-00005b40: 5f3b 3c2f 6469 763e 0a3c 6469 7620 636c _;
    .
    177 }\n-00005ba0: 3b3c 2f64 6976 3e0a 3c2f 6469 763e 0a3c ;
    .
    .<\n-00005bb0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00005bc0: 3e3c 6120 6964 3d22 6c30 3031 3738 2220 > 178
    .
    181}\n-00005c60: 203c 7370 616e 2063 6c61 7373 3d22 636f // end na\n-00005c80: 6d65 7370 6163 653c 2f73 7061 6e3e 3c2f mespace.
    1\n-00005ce0: 3832 3c2f 7370 616e 3e20 3c2f 6469 763e 82
    \n-00005cf0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00005d20: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 183\n-00005d60: 2365 6e64 6966 3c2f 7370 616e 3e3c 2f64 #endif..<\n-00005e80: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n-00005e90: 6964 3d22 6161 3031 3834 305f 6874 6d6c id=\"aa01840_html\n-00005ea0: 223e 3c64 6976 2063 6c61 7373 3d22 7474 \">
    A l\n-00005f00: 696e 6561 7220 6f70 6572 6174 6f72 2e3c inear operator.<\n-00005f10: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n-00005f30: 6974 696f 6e3c 2f62 3e20 6f70 6572 6174 ition operat\n-00005f40: 6f72 732e 6868 3a36 373c 2f64 6976 3e3c ors.hh:67
    <\n-00005f50: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    <\n-00005fb0: 6120 6872 6566 3d22 6130 3138 3430 2e68 a href=\"a01840.h\n-00005fc0: 746d 6c23 6130 6535 6230 6438 3663 3937 tml#a0e5b0d86c97\n-00005fd0: 6235 3964 3663 3735 3937 3731 3836 6530 b59d6c75977186e0\n-00005fe0: 6335 3534 3022 3e44 756e 653a 3a4c 696e c5540\">Dune::Lin\n-00005ff0: 6561 724f 7065 7261 746f 723a 3a7e 4c69 earOperator::~Li\n-00006000: 6e65 6172 4f70 6572 6174 6f72 3c2f 613e nearOperator\n-00006010: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    virtua\n-00006030: 6c20 7e4c 696e 6561 724f 7065 7261 746f l ~LinearOperato\n-00006040: 7228 293c 2f64 6976 3e3c 6469 7620 636c r()
    ever\n-00006060: 7920 6162 7374 7261 6374 2062 6173 6520 y abstract base \n-00006070: 636c 6173 7320 6861 7320 6120 7669 7274 class has a virt\n-00006080: 7561 6c20 6465 7374 7275 6374 6f72 3c2f ual destructor
    Defini\n-000060b0: 7469 6f6e 3c2f 623e 206f 7065 7261 746f tion operato\n-000060c0: 7273 2e68 683a 3836 3c2f 6469 763e 3c2f rs.hh:86
    .
    Dune::Line\n-00006170: 6172 4f70 6572 6174 6f72 3a3a 6669 656c arOperator::fiel\n-00006180: 645f 7479 7065 3c2f 613e 3c2f 6469 763e d_type
    \n-00006190: 3c64 6976 2063 6c61 7373 3d22 7474 6465
    X::field_typ\n-000061b0: 6520 6669 656c 645f 7479 7065 3c2f 6469 e field_type
    The field t\n-000061e0: 7970 6520 6f66 2074 6865 206f 7065 7261 ype of the opera\n-000061f0: 746f 722e 3c2f 6469 763e 3c64 6976 2063 tor.
    \n-00006210: 4465 6669 6e69 7469 6f6e 3c2f 623e 206f Definition o\n-00006220: 7065 7261 746f 7273 2e68 683a 3734 3c2f perators.hh:74
    .
    \n-00006280: 3c64 6976 2063 6c61 7373 3d22 7474 6e61
    vir\n-00006310: 7475 616c 2076 6f69 6420 6170 706c 7973 tual void applys\n-00006320: 6361 6c65 6164 6428 6669 656c 645f 7479 caleadd(field_ty\n-00006330: 7065 2061 6c70 6861 2c20 636f 6e73 7420 pe alpha, const \n-00006340: 5820 2661 6d70 3b78 2c20 5920 2661 6d70 X &x, Y &\n-00006350: 3b79 2920 636f 6e73 7420 3d30 3c2f 6469 ;y) const =0
    apply opera\n-00006380: 746f 7220 746f 2078 2c20 7363 616c 6520 tor to x, scale \n-00006390: 616e 6420 6164 643a 3c2f 6469 763e 3c2f and add:
    .
    virtual Solver\n-00006480: 4361 7465 676f 7279 3a3a 4361 7465 676f Category::Catego\n-00006490: 7279 2063 6174 6567 6f72 7928 2920 636f ry category() co\n-000064a0: 6e73 7420 3d30 3c2f 6469 763e 3c64 6976 nst =0
    C\n-000064c0: 6174 6567 6f72 7920 6f66 2074 6865 206c ategory of the l\n-000064d0: 696e 6561 7220 6f70 6572 6174 6f72 2028 inear operator (\n-000064e0: 7365 6520 536f 6c76 6572 4361 7465 676f see SolverCatego\n-000064f0: 7279 3a3a 4361 7465 676f 7279 293c 2f64 ry::Category)
    .
    <\n-00006550: 6469 7620 636c 6173 733d 2274 746e 616d div class=\"ttnam\n-00006560: 6522 3e3c 6120 6872 6566 3d22 6130 3138 e\">Dune:\n-000065a0: 3a4c 696e 6561 724f 7065 7261 746f 723a :LinearOperator:\n-000065b0: 3a72 616e 6765 5f74 7970 653c 2f61 3e3c :range_type<\n-000065c0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Y range\n-000065e0: 5f74 7970 653c 2f64 6976 3e3c 6469 7620 _type
    Th\n-00006600: 6520 7479 7065 206f 6620 7468 6520 7261 e type of the ra\n-00006610: 6e67 6520 6f66 2074 6865 206f 7065 7261 nge of the opera\n-00006620: 746f 722e 3c2f 6469 763e 3c64 6976 2063 tor.
    \n-00006640: 4465 6669 6e69 7469 6f6e 3c2f 623e 206f Definition o\n-00006650: 7065 7261 746f 7273 2e68 683a 3732 3c2f perators.hh:72
    .
    \n-000066b0: 3c64 6976 2063 6c61 7373 3d22 7474 6e61
    Dune\n-00006700: 3a3a 4c69 6e65 6172 4f70 6572 6174 6f72 ::LinearOperator\n-00006710: 3a3a 6170 706c 793c 2f61 3e3c 2f64 6976 ::apply
    virtual voi\n-00006740: 6420 6170 706c 7928 636f 6e73 7420 5820 d apply(const X \n-00006750: 2661 6d70 3b78 2c20 5920 2661 6d70 3b79 &x, Y &y\n-00006760: 2920 636f 6e73 7420 3d30 3c2f 6469 763e ) const =0
    \n-00006770: 3c64 6976 2063 6c61 7373 3d22 7474 646f
    apply operato\n-00006790: 7220 746f 2078 3a20 2054 6865 2069 6e70 r to x: The inp\n-000067a0: 7574 2076 6563 746f 7220 6973 2063 6f6e ut vector is con\n-000067b0: 7369 7374 656e 7420 616e 6420 7468 6520 sistent and the \n-000067c0: 6f75 7470 7574 206d 7573 7420 616c 736f output must also\n-000067d0: 2062 6520 636f 6e73 6973 7465 6e74 206f be consistent o\n-000067e0: 6e20 7468 6520 696e 2e2e 2e3c 2f64 6976 n the in...
    .
    Dune::L\n-00006890: 696e 6561 724f 7065 7261 746f 723a 3a64 inearOperator::d\n-000068a0: 6f6d 6169 6e5f 7479 7065 3c2f 613e 3c2f omain_type
    X domain\n-000068d0: 5f74 7970 653c 2f64 6976 3e3c 6469 7620 _type
    Th\n-000068f0: 6520 7479 7065 206f 6620 7468 6520 646f e type of the do\n-00006900: 6d61 696e 206f 6620 7468 6520 6f70 6572 main of the oper\n-00006910: 6174 6f72 2e3c 2f64 6976 3e3c 6469 7620 ator.
    Definition \n-00006940: 6f70 6572 6174 6f72 732e 6868 3a37 303c operators.hh:70<\n-00006950: 2f64 6976 3e3c 2f64 6976 3e0a 3c64 6976 /div>
    .<\n-00006980: 6469 7620 636c 6173 733d 2274 746e 616d div class=\"ttnam\n-00006990: 6522 3e3c 6120 6872 6566 3d22 6130 3138 e\">Dune::A\n-000069b0: 7373 656d 626c 6564 4c69 6e65 6172 4f70 ssembledLinearOp\n-000069c0: 6572 6174 6f72 3c2f 613e 3c2f 6469 763e erator
    \n-000069d0: 3c64 6976 2063 6c61 7373 3d22 7474 646f
    A linear oper\n-000069f0: 6174 6f72 2065 7870 6f72 7469 6e67 2069 ator exporting i\n-00006a00: 7473 656c 6620 696e 206d 6174 7269 7820 tself in matrix \n-00006a10: 666f 726d 2e3c 2f64 6976 3e3c 6469 7620 form.
    Definition \n-00006a40: 6f70 6572 6174 6f72 732e 6868 3a31 3039 operators.hh:109\n-00006a50: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .virtual const M\n-00006b40: 2026 616d 703b 2067 6574 6d61 7428 2920 & getmat() \n-00006b50: 636f 6e73 7420 3d30 3c2f 6469 763e 3c64 const =0
    get matrix via \n-00006b80: 2a3c 2f64 6976 3e3c 2f64 6976 3e0a 3c64 *
    .
    D\n-00006c20: 756e 653a 3a41 7373 656d 626c 6564 4c69 une::AssembledLi\n-00006c30: 6e65 6172 4f70 6572 6174 6f72 3a3a 646f nearOperator::do\n-00006c40: 6d61 696e 5f74 7970 653c 2f61 3e3c 2f64 main_type
    X domain_\n-00006c70: 7479 7065 3c2f 6469 763e 3c64 6976 2063 type
    \n-00006c90: 4465 6669 6e69 7469 6f6e 3c2f 623e 206f Definition o\n-00006ca0: 7065 7261 746f 7273 2e68 683a 3131 333c perators.hh:113<\n-00006cb0: 2f64 6976 3e3c 2f64 6976 3e0a 3c64 6976 /div>
    .\n-00006d80: 3c64 6976 2063 6c61 7373 3d22 7474 6465
    X::field_typ\n-00006da0: 6520 6669 656c 645f 7479 7065 3c2f 6469 e field_type
    Definiti\n-00006dd0: 6f6e 3c2f 623e 206f 7065 7261 746f 7273 on operators\n-00006de0: 2e68 683a 3131 353c 2f64 6976 3e3c 2f64 .hh:115
    .
    .\n-00006f20: 3c64 6976 2063 6c61 7373 3d22 7474 6322
    Dune::Assembled\n-00006fc0: 4c69 6e65 6172 4f70 6572 6174 6f72 3a3a LinearOperator::\n-00006fd0: 6d61 7472 6978 5f74 7970 653c 2f61 3e3c matrix_type<\n-00006fe0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    M matri\n-00007000: 785f 7479 7065 3c2f 6469 763e 3c64 6976 x_type
    e\n-00007020: 7870 6f72 7420 7479 7065 732c 2075 7375 xport types, usu\n-00007030: 616c 6c79 2074 6865 7920 636f 6d65 2066 ally they come f\n-00007040: 726f 6d20 7468 6520 6465 7269 7665 6420 rom the derived \n-00007050: 636c 6173 733c 2f64 6976 3e3c 6469 7620 class
    Definition \n-00007080: 6f70 6572 6174 6f72 732e 6868 3a31 3132 operators.hh:112\n-00007090: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .<\n-00007170: 6469 7620 636c 6173 733d 2274 7464 6563 div class=\"ttdec\n-00007180: 6922 3e76 6972 7475 616c 207e 4173 7365 i\">virtual ~Asse\n-00007190: 6d62 6c65 644c 696e 6561 724f 7065 7261 mbledLinearOpera\n-000071a0: 746f 7228 293c 2f64 6976 3e3c 6469 7620 tor()
    ev\n-000071c0: 6572 7920 6162 7374 7261 6374 2062 6173 ery abstract bas\n-000071d0: 6520 636c 6173 7320 6861 7320 6120 7669 e class has a vi\n-000071e0: 7274 7561 6c20 6465 7374 7275 6374 6f72 rtual destructor\n-000071f0: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    Defi\n-00007210: 6e69 7469 6f6e 3c2f 623e 206f 7065 7261 nition opera\n-00007220: 746f 7273 2e68 683a 3132 313c 2f64 6976 tors.hh:121
    .
    <\n-00007270: 6120 6872 6566 3d22 6130 3138 3438 2e68 a href=\"a01848.h\n-00007280: 746d 6c22 3e44 756e 653a 3a4d 6174 7269 tml\">Dune::Matri\n-00007290: 7841 6461 7074 6572 3c2f 613e 3c2f 6469 xAdapter
    Adapter to \n-000072c0: 7475 726e 2061 206d 6174 7269 7820 696e turn a matrix in\n-000072d0: 746f 2061 206c 696e 6561 7220 6f70 6572 to a linear oper\n-000072e0: 6174 6f72 2e3c 2f64 6976 3e3c 6469 7620 ator.
    Definition \n-00007310: 6f70 6572 6174 6f72 732e 6868 3a31 3337 operators.hh:137\n-00007320: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .
    Ma\n-00007400: 7472 6978 4164 6170 7465 7228 7374 643a trixAdapter(std:\n-00007410: 3a73 6861 7265 645f 7074 7226 6c74 3b20 :shared_ptr< \n-00007420: 636f 6e73 7420 4d20 2667 743b 2041 293c const M > A)<\n-00007430: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    construc\n-00007450: 746f 723a 2073 746f 7265 2061 6e20 7374 tor: store an st\n-00007460: 643a 3a73 6861 7265 645f 7074 7220 746f d::shared_ptr to\n-00007470: 2061 206d 6174 7269 783c 2f64 6976 3e3c a matrix
    <\n-00007480: 6469 7620 636c 6173 733d 2274 7464 6566 div class=\"ttdef\n-00007490: 223e 3c62 3e44 6566 696e 6974 696f 6e3c \">Definition<\n-000074a0: 2f62 3e20 6f70 6572 6174 6f72 732e 6868 /b> operators.hh\n-000074b0: 3a31 3439 3c2f 6469 763e 3c2f 6469 763e :149
    \n-000074c0: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    MatrixAdapter(\n-000075a0: 636f 6e73 7420 4d20 2661 6d70 3b41 293c const M &A)<\n-000075b0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    construc\n-000075d0: 746f 723a 206a 7573 7420 7374 6f72 6520 tor: just store \n-000075e0: 6120 7265 6665 7265 6e63 6520 746f 2061 a reference to a\n-000075f0: 206d 6174 7269 783c 2f64 6976 3e3c 6469 matrix
    \n-00007610: 3c62 3e44 6566 696e 6974 696f 6e3c 2f62 Definition operators.hh:1\n-00007630: 3436 3c2f 6469 763e 3c2f 6469 763e 0a3c 46
    .<\n-00007640: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n-00007650: 6964 3d22 6161 3031 3834 385f 6874 6d6c id=\"aa01848_html\n-00007660: 5f61 3332 3235 3632 6434 3734 3239 3566 _a322562d474295f\n-00007670: 3430 6161 3031 6131 6631 3736 3963 3166 40aa01a1f1769c1f\n-00007680: 6135 223e 3c64 6976 2063 6c61 7373 3d22 a5\">\n-00007710: 766f 6964 2061 7070 6c79 7363 616c 6561 void applyscalea\n-00007720: 6464 2866 6965 6c64 5f74 7970 6520 616c dd(field_type al\n-00007730: 7068 612c 2063 6f6e 7374 2058 2026 616d pha, const X &am\n-00007740: 703b 782c 2059 2026 616d 703b 7929 2063 p;x, Y &y) c\n-00007750: 6f6e 7374 206f 7665 7272 6964 653c 2f64 onst override
    apply oper\n-00007780: 6174 6f72 2074 6f20 782c 2073 6361 6c65 ator to x, scale\n-00007790: 2061 6e64 2061 6464 3a3c 2f64 6976 3e3c and add:
    <\n-000077a0: 6469 7620 636c 6173 733d 2274 7464 6566 div class=\"ttdef\n-000077b0: 223e 3c62 3e44 6566 696e 6974 696f 6e3c \">Definition<\n-000077c0: 2f62 3e20 6f70 6572 6174 6f72 732e 6868 /b> operators.hh\n-000077d0: 3a31 3538 3c2f 6469 763e 3c2f 6469 763e :158
    \n-000077e0: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    Y\n-000078b0: 2072 616e 6765 5f74 7970 653c 2f64 6976 range_type
    Definitio\n-000078e0: 6e3c 2f62 3e20 6f70 6572 6174 6f72 732e n operators.\n-000078f0: 6868 3a31 3432 3c2f 6469 763e 3c2f 6469 hh:142
    .
    X domain_type<\n-000079e0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n-00007a00: 6974 696f 6e3c 2f62 3e20 6f70 6572 6174 ition operat\n-00007a10: 6f72 732e 6868 3a31 3431 3c2f 6469 763e ors.hh:141
    \n-00007a20: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00007a80: 3c61 2068 7265 663d 2261 3031 3834 382e Dune::Ma\n-00007ac0: 7472 6978 4164 6170 7465 723a 3a66 6965 trixAdapter::fie\n-00007ad0: 6c64 5f74 7970 653c 2f61 3e3c 2f64 6976 ld_type
    X::field_ty\n-00007b00: 7065 2066 6965 6c64 5f74 7970 653c 2f64 pe field_type
    Definit\n-00007b30: 696f 6e3c 2f62 3e20 6f70 6572 6174 6f72 ion operator\n-00007b40: 732e 6868 3a31 3433 3c2f 6469 763e 3c2f s.hh:143
    .
    Dune::Matr\n-00007bf0: 6978 4164 6170 7465 723a 3a67 6574 6d61 ixAdapter::getma\n-00007c00: 743c 2f61 3e3c 2f64 6976 3e3c 6469 7620 t
    c\n-00007c20: 6f6e 7374 204d 2026 616d 703b 2067 6574 onst M & get\n-00007c30: 6d61 7428 2920 636f 6e73 7420 6f76 6572 mat() const over\n-00007c40: 7269 6465 3c2f 6469 763e 3c64 6976 2063 ride
    get\n-00007c60: 206d 6174 7269 7820 7669 6120 2a3c 2f64 matrix via *
    Definit\n-00007c90: 696f 6e3c 2f62 3e20 6f70 6572 6174 6f72 ion operator\n-00007ca0: 732e 6868 3a31 3634 3c2f 6469 763e 3c2f s.hh:164
    dune-istl: sp\n+000001c0: 7172 2e68 6820 536f 7572 6365 2046 696c qr.hh Source Fil\n+000001d0: 653c 2f74 6974 6c65 3e0a 3c6c 696e 6b20 e...\n+00000280: 3c2f 7363 7269 7074 3e0a 3c6c 696e 6b20 ...\n+00000310: 3c73 6372 6970 7420 7479 7065 3d22 7465 .\n+00000350: 3c6c 696e 6b20 6872 6566 3d22 646f 7879 ....
    .\n+00000420: 0a20 3c74 626f 6479 3e0a 203c 7472 2069 . . .\n+00000440: 2020 3c74 6420 6964 3d22 7072 6f6a 6563 . .\n+000004c0: 203c 2f74 626f 6479 3e0a 3c2f 7461 626c .....<\n+00000630: 7363 7269 7074 2074 7970 653d 2274 6578 script type=\"tex\n+00000640: 742f 6a61 7661 7363 7269 7074 2220 7372 t/javascript\" sr\n+00000650: 633d 226d 656e 752e 6a73 223e 3c2f 7363 c=\"menu.js\">..<\n+00000790: 2f64 6976 3e0a 3c73 6372 6970 7420 7479 /div>..\n-00000280: 3c2f 7363 7269 7074 3e0a 3c6c 696e 6b20 ...\n-00000310: 3c73 6372 6970 7420 7479 7065 3d22 7465 .\n-00000350: 3c6c 696e 6b20 6872 6566 3d22 646f 7879 ....
    .
    . dune-istl 2.9.0<\n+000004a0: 2f73 7061 6e3e 0a20 2020 3c2f 6469 763e /span>. \n+000004b0: 0a20 203c 2f74 643e 0a20 3c2f 7472 3e0a .
    \n-00000420: 0a20 3c74 626f 6479 3e0a 203c 7472 2069 . . .\n-00000440: 2020 3c74 6420 6964 3d22 7072 6f6a 6563 . .\n-000004c0: 203c 2f74 626f 6479 3e0a 3c2f 7461 626c .....<\n-00000630: 7363 7269 7074 2074 7970 653d 2274 6578 script type=\"tex\n-00000640: 742f 6a61 7661 7363 7269 7074 2220 7372 t/javascript\" sr\n-00000650: 633d 226d 656e 752e 6a73 223e 3c2f 7363 c=\"menu.js\">..<\n-00000790: 2f64 6976 3e0a 3c73 6372 6970 7420 7479 /div>.\n+00000290: 0a3c 6c69 6e6b 2068 7265 663d 2273 6561 ....../* \n+00000690: 406c 6963 656e 7365 206d 6167 6e65 743a @license magnet:\n+000006a0: 3f78 743d 7572 6e3a 6274 6968 3a64 3364 ?xt=urn:btih:d3d\n+000006b0: 3961 3961 3635 3935 3532 3166 3936 3636 9a9a6595521f9666\n+000006c0: 6135 6539 3463 6338 3330 6461 6238 3362 a5e94cc830dab83b\n+000006d0: 3635 3639 3926 616d 703b 646e 3d65 7870 65699&dn=exp\n+000006e0: 6174 2e74 7874 204d 4954 202a 2f0a 2428 at.txt MIT */.$(\n+000006f0: 6675 6e63 7469 6f6e 2829 207b 0a20 2069 function() {. i\n+00000700: 6e69 744d 656e 7528 2727 2c74 7275 652c nitMenu('',true,\n+00000710: 6661 6c73 652c 2773 6561 7263 682e 7068 false,'search.ph\n+00000720: 7027 2c27 5365 6172 6368 2729 3b0a 2020 p','Search');. \n+00000730: 2428 646f 6375 6d65 6e74 292e 7265 6164 $(document).read\n+00000740: 7928 6675 6e63 7469 6f6e 2829 207b 2069 y(function() { i\n+00000750: 6e69 745f 7365 6172 6368 2829 3b20 7d29 nit_search(); })\n+00000760: 3b0a 7d29 3b0a 2f2a 2040 6c69 6365 6e73 ;.});./* @licens\n+00000770: 652d 656e 6420 2a2f 0a3c 2f73 6372 6970 e-end */..
    ../* \n+000007c0: 406c 6963 656e 7365 206d 6167 6e65 743a @license magnet:\n+000007d0: 3f78 743d 7572 6e3a 6274 6968 3a64 3364 ?xt=urn:btih:d3d\n+000007e0: 3961 3961 3635 3935 3532 3166 3936 3636 9a9a6595521f9666\n+000007f0: 6135 6539 3463 6338 3330 6461 6238 3362 a5e94cc830dab83b\n+00000800: 3635 3639 3926 616d 703b 646e 3d65 7870 65699&dn=exp\n+00000810: 6174 2e74 7874 204d 4954 202a 2f0a 2428 at.txt MIT */.$(\n+00000820: 646f 6375 6d65 6e74 292e 7265 6164 7928 document).ready(\n+00000830: 6675 6e63 7469 6f6e 2829 207b 2069 6e69 function() { ini\n+00000840: 745f 636f 6465 666f 6c64 2830 293b 207d t_codefold(0); }\n+00000850: 293b 0a2f 2a20 406c 6963 656e 7365 2d65 );./* @license-e\n+00000860: 6e64 202a 2f0a 3c2f 7363 7269 7074 3e0a nd */..\n+00000870: 3c21 2d2d 2077 696e 646f 7720 7368 6f77 .
    .
    .....
    ..<\n+00000a10: 6469 7620 6964 3d22 5352 5265 7375 6c74 div id=\"SRResult\n+00000a20: 7322 3e3c 2f64 6976 3e0a 3c64 6976 2063 s\">
    .
    Loa\n+00000a50: 6469 6e67 2e2e 2e3c 2f64 6976 3e0a 3c64 ding...
    .Searching...<\n+00000a90: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    No Ma\n+00000ac0: 7463 6865 733c 2f64 6976 3e0a 3c2f 6469 tches
    ...\n-00000ae0: 0a0a 3c64 6976 2069 643d 226e 6176 2d70 ....<\n-00000bf0: 6469 7620 636c 6173 733d 2268 6561 6465 div class=\"heade\n-00000c00: 7222 3e0a 2020 3c64 6976 2063 6c61 7373 r\">.
    <\n-00000c20: 6469 7620 636c 6173 733d 2274 6974 6c65 div class=\"title\n-00000c30: 223e 7370 7172 2e68 683c 2f64 6976 3e3c \">spqr.hh
    <\n-00000c40: 2f64 6976 3e0a 3c2f 6469 763e 3c21 2d2d /div>..
    \n-00000c70: 0a3c 6120 6872 6566 3d22 6130 3031 3937 .Go to the\n-00000c90: 2064 6f63 756d 656e 7461 7469 6f6e 206f documentation o\n-00000ca0: 6620 7468 6973 2066 696c 652e 3c2f 613e f this file.\n-00000cb0: 3c64 6976 2063 6c61 7373 3d22 6672 6167
    \n-00000d10: 2020 313c 2f73 7061 6e3e 3c73 7061 6e20 1\n-00000d30: 2f2f 2053 5044 582d 4669 6c65 436f 7079 // SPDX-FileCopy\n-00000d40: 7269 6768 7454 6578 743a 2043 6f70 7972 rightText: Copyr\n-00000d50: 6967 6874 2028 4329 2044 554e 4520 5072 ight (C) DUNE Pr\n-00000d60: 6f6a 6563 7420 636f 6e74 7269 6275 746f oject contributo\n-00000d70: 7273 2c20 7365 6520 6669 6c65 204c 4943 rs, see file LIC\n-00000d80: 454e 5345 2e6d 6420 696e 206d 6f64 756c ENSE.md in modul\n-00000d90: 6520 726f 6f74 3c2f 7370 616e 3e3c 2f64 e root.
    \n-00000df0: 323c 2f73 7061 6e3e 3c73 7061 6e20 636c 2//\n-00000e10: 2053 5044 582d 4c69 6365 6e73 652d 4964 SPDX-License-Id\n-00000e20: 656e 7469 6669 6572 3a20 4c69 6365 6e73 entifier: Licens\n-00000e30: 6552 6566 2d47 504c 2d32 2e30 2d6f 6e6c eRef-GPL-2.0-onl\n-00000e40: 792d 7769 7468 2d44 554e 452d 6578 6365 y-with-DUNE-exce\n-00000e50: 7074 696f 6e3c 2f73 7061 6e3e 3c2f 6469 ption.
    3\n-00000eb0: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 // \n-00000ed0: 2d2a 2d20 7461 622d 7769 6474 683a 2034 -*- tab-width: 4\n-00000ee0: 3b20 696e 6465 6e74 2d74 6162 732d 6d6f ; indent-tabs-mo\n-00000ef0: 6465 3a20 6e69 6c3b 2063 2d62 6173 6963 de: nil; c-basic\n-00000f00: 2d6f 6666 7365 743a 2032 202d 2a2d 3c2f -offset: 2 -*-
    .<\n-00000f50: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00000f60: 6e6f 223e 2020 2020 343c 2f73 7061 6e3e no\"> 4\n-00000f70: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // vi: set\n-00000f90: 2065 7420 7473 3d34 2073 773d 3220 7374 et ts=4 sw=2 st\n-00000fa0: 733d 323a 3c2f 7370 616e 3e3c 2f64 6976 s=2:.
    5<\n-00001000: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#ifndef DUNE_IS\n-00001030: 544c 5f53 5051 525f 4848 3c2f 7370 616e TL_SPQR_HH
    .
    \n-00001090: 2020 2020 363c 2f73 7061 6e3e 3c73 7061 6#define D\n-000010c0: 554e 455f 4953 544c 5f53 5051 525f 4848 UNE_ISTL_SPQR_HH\n-000010d0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n-000010f0: 3c61 2069 643d 226c 3030 3030 3722 206e 7
    .
    8#if HAV\n-000011b0: 455f 5355 4954 4553 5041 5253 455f 5350 E_SUITESPARSE_SP\n-000011c0: 5152 207c 7c20 6465 6669 6e65 6420 444f QR || defined DO\n-000011d0: 5859 4745 4e3c 2f73 7061 6e3e 3c2f 6469 XYGEN.
    9\n-00001230: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n-00001240: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00001250: 3e3c 6120 6964 3d22 6c30 3030 3130 2220 > 10#i\n-000012b0: 6e63 6c75 6465 2026 6c74 3b63 6f6d 706c nclude <compl\n-000012c0: 6578 2667 743b 3c2f 7370 616e 3e3c 2f64 ex>.
    1\n-00001320: 313c 2f73 7061 6e3e 3c73 7061 6e20 636c 1#include <\n-00001350: 7479 7065 5f74 7261 6974 7326 6774 3b3c type_traits><\n-00001360: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n-00001380: 6120 6964 3d22 6c30 3030 3132 2220 6e61 a id=\"l00012\" na\n-00001390: 6d65 3d22 6c30 3030 3132 223e 3c2f 613e me=\"l00012\">\n-000013a0: 3c73 7061 6e20 636c 6173 733d 226c 696e 12
    .
    13#include\n-00001440: 2026 6c74 3b53 7569 7465 5370 6172 7365 <SuiteSparse\n-00001450: 5152 2e68 7070 2667 743b 3c2f 7370 616e QR.hpp>
    .
    \n-000014b0: 2020 2031 343c 2f73 7061 6e3e 203c 2f64 14 .
    1\n-00001510: 353c 2f73 7061 6e3e 3c73 7061 6e20 636c 5#include <\n-00001540: 6475 6e65 2f63 6f6d 6d6f 6e2f 6578 6365 dune/common/exce\n-00001550: 7074 696f 6e73 2e68 6826 6774 3b3c 2f73 ptions.hh>
    .
    16 \n-000015c0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00001610: 2020 3137 3c2f 7370 616e 3e3c 7370 616e 17#include &\n-00001640: 6c74 3b3c 6120 636c 6173 733d 2263 6f64 lt;dune/istl/\n-00001670: 6263 6373 6d61 7472 6978 696e 6974 6961 bccsmatrixinitia\n-00001680: 6c69 7a65 722e 6868 3c2f 613e 2667 743b lizer.hh>\n-00001690: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n-000016b0: 3c61 2069 643d 226c 3030 3031 3822 206e 18#in\n-00001710: 636c 7564 6520 266c 743b 3c61 2063 6c61 clude <dun\n-00001740: 652f 6973 746c 2f73 6f6c 7665 7273 2e68 e/istl/solvers.h\n-00001750: 683c 2f61 3e26 6774 3b3c 2f73 7061 6e3e h>\n-00001760: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-000017b0: 2020 3139 3c2f 7370 616e 3e3c 7370 616e 19#include &\n-000017e0: 6c74 3b3c 6120 636c 6173 733d 2263 6f64 lt;dune/istl/\n-00001810: 736f 6c76 6572 7479 7065 2e68 683c 2f61 solvertype.hh>.
    20\n-00001880: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 #include <<\n-000018b0: 6120 636c 6173 733d 2263 6f64 6522 2068 a class=\"code\" h\n-000018c0: 7265 663d 2261 3030 3137 392e 6874 6d6c ref=\"a00179.html\n-000018d0: 223e 6475 6e65 2f69 7374 6c2f 736f 6c76 \">dune/istl/solv\n-000018e0: 6572 6661 6374 6f72 792e 6868 3c2f 613e erfactory.hh\n-000018f0: 2667 743b 3c2f 7370 616e 3e3c 2f64 6976 >.
    21<\n-00001950: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n-00001970: 3c61 2069 643d 226c 3030 3032 3222 206e 22namespac\n-000019d0: 6520 3c2f 7370 616e 3e3c 6120 636c 6173 e Dune {
    .
    34 \n-00001a70: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // forward\n-00001a90: 2064 6563 6c61 7261 7469 6f6e 733c 2f73 declarations
    .
    35 \n-00001b00: 203c 7370 616e 2063 6c61 7373 3d22 6b65 template<\n-00001b20: 2f73 7061 6e3e 266c 743b 3c73 7061 6e20 /span><\n-00001b40: 636c 6173 733c 2f73 7061 6e3e 204d 2c20 class M, \n-00001b50: 3c73 7061 6e20 636c 6173 733d 226b 6579 class T, clas\n-00001b90: 733c 2f73 7061 6e3e 2054 4d2c 203c 7370 s TM, class \n-00001bc0: 5444 2c20 3c73 7061 6e20 636c 6173 733d TD, class<\n-00001be0: 2f73 7061 6e3e 2054 4126 6774 3b3c 2f64 /span> TA>.
    3\n-00001c40: 363c 2f73 7061 6e3e 2020 3c73 7061 6e20 6 \n-00001c60: 636c 6173 7320 3c2f 7370 616e 3e53 6571 class Seq\n-00001c70: 4f76 6572 6c61 7070 696e 6753 6368 7761 OverlappingSchwa\n-00001c80: 727a 3b3c 2f64 6976 3e0a 3c64 6976 2063 rz;
    .
    37 <\n-00001ce0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00001d30: 2033 383c 2f73 7061 6e3e 2020 3c73 7061 38 template<class\n-00001d80: 3c2f 7370 616e 3e20 542c 203c 7370 616e T, bool\n-00001db0: 2074 6167 2667 743b 3c2f 6469 763e 0a3c tag>
    .<\n-00001dc0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00001dd0: 3e3c 6120 6964 3d22 6c30 3030 3339 2220 > 39 struc\n-00001e30: 7420 3c2f 7370 616e 3e53 6571 4f76 6572 t SeqOver\n-00001e40: 6c61 7070 696e 6753 6368 7761 727a 4173 lappingSchwarzAs\n-00001e50: 7365 6d62 6c65 7248 656c 7065 723b 3c2f semblerHelper;.
    \n-00001eb0: 3430 3c2f 7370 616e 3e20 3c2f 6469 763e 40
    \n-00001ec0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00001ef0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 46 tem\n-00001f30: 706c 6174 653c 2f73 7061 6e3e 266c 743b plate<\n-00001f40: 3c73 7061 6e20 636c 6173 733d 226b 6579 class Matrix>.
    .
    47<\n-00002030: 2f73 7061 6e3e 2020 3c73 7061 6e20 636c /span> cl\n-00002050: 6173 7320 3c2f 7370 616e 3e3c 6120 636c ass SPQR<\n-00002090: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-000020e0: 2034 383c 2f73 7061 6e3e 2020 7b7d 3b3c 48 {};<\n-000020f0: 2f64 6976 3e0a 3c2f 6469 763e 0a3c 6469 /div>.
    .<\n-00002110: 6120 6964 3d22 6c30 3030 3439 2220 6e61 a id=\"l00049\" na\n-00002120: 6d65 3d22 6c30 3030 3439 223e 3c2f 613e me=\"l00049\">\n-00002130: 3c73 7061 6e20 636c 6173 733d 226c 696e 49
    .
    63 <\n-000021b0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-000021c0: 6f72 6422 3e74 656d 706c 6174 653c 2f73 ord\">template<ty\n-000021f0: 7065 6e61 6d65 3c2f 7370 616e 3e20 542c pename T,\n-00002200: 203c 7370 616e 2063 6c61 7373 3d22 6b65 typename<\n-00002220: 2f73 7061 6e3e 2041 2c20 3c73 7061 6e20 /span> A, int n\n-00002250: 2c20 3c73 7061 6e20 636c 6173 733d 226b , int<\n-00002270: 2f73 7061 6e3e 206d 2667 743b 3c2f 6469 /span> m>.
    .
    64 cla\n-00002360: 7373 203c 2f73 7061 6e3e 3c61 2063 6c61 ss SPQR&l\n-000023a0: 743b 3c61 2063 6c61 7373 3d22 636f 6465 t;BC\n-000023d0: 5253 4d61 7472 6978 3c2f 613e 266c 743b RSMatrix<\n-000023e0: 3c61 2063 6c61 7373 3d22 636f 6465 2068 Fiel\n-00002410: 644d 6174 7269 783c 2f61 3e26 6c74 3b54 dMatrix<T\n-00002420: 2c6e 2c6d 2667 743b 2c41 2026 6774 3b20 ,n,m>,A > \n-00002430: 2667 743b 3c2f 6469 763e 0a3c 6469 7620 >
    .
    65 \n-00002490: 2020 203a 203c 7370 616e 2063 6c61 7373 : publi\n-000024b0: 633c 2f73 7061 6e3e 203c 6120 636c 6173 c InverseOper\n-000024f0: 6174 6f72 3c2f 613e 266c 743b 426c 6f63 ator<Bloc\n-00002500: 6b56 6563 746f 7226 6c74 3b46 6965 6c64 kVector<Field\n-00002510: 5665 6374 6f72 266c 743b 542c 6d26 6774 Vector<T,m>\n-00002520: 3b2c 2074 7970 656e 616d 6520 7374 643a ;, typename std:\n-00002530: 3a61 6c6c 6f63 6174 6f72 5f74 7261 6974 :allocator_trait\n-00002540: 7326 6c74 3b41 2667 743b 3a3a 7465 6d70 s<A>::temp\n-00002550: 6c61 7465 2072 6562 696e 645f 616c 6c6f late rebind_allo\n-00002560: 6326 6c74 3b46 6965 6c64 5665 6374 6f72 c<FieldVector\n-00002570: 266c 743b 542c 6d26 6774 3b20 2667 743b <T,m> >\n-00002580: 2026 6774 3b2c 3c2f 6469 763e 0a3c 6469 >,
    .<\n-000025a0: 6120 6964 3d22 6c30 3030 3636 2220 6e61 a id=\"l00066\" na\n-000025b0: 6d65 3d22 6c30 3030 3636 223e 3c2f 613e me=\"l00066\">\n-000025c0: 3c73 7061 6e20 636c 6173 733d 226c 696e 66 \n-000025f0: 2020 2020 2020 2020 2020 2020 2020 426c Bl\n-00002600: 6f63 6b56 6563 746f 7226 6c74 3b46 6965 ockVector<Fie\n-00002610: 6c64 5665 6374 6f72 266c 743b 542c 6e26 ldVector<T,n&\n-00002620: 6774 3b2c 2074 7970 656e 616d 6520 7374 gt;, typename st\n-00002630: 643a 3a61 6c6c 6f63 6174 6f72 5f74 7261 d::allocator_tra\n-00002640: 6974 7326 6c74 3b41 2667 743b 3a3a 7465 its<A>::te\n-00002650: 6d70 6c61 7465 2072 6562 696e 645f 616c mplate rebind_al\n-00002660: 6c6f 6326 6c74 3b46 6965 6c64 5665 6374 loc<FieldVect\n-00002670: 6f72 266c 743b 542c 6e26 6774 3b20 2667 or<T,n> &g\n-00002680: 743b 2026 6774 3b20 2667 743b 3c2f 6469 t; > >.
    67\n-000026e0: 3c2f 7370 616e 3e20 207b 3c2f 6469 763e {
    \n-000026f0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00002720: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 68 p\n-00002760: 7562 6c69 633c 2f73 7061 6e3e 3a3c 2f64 ublic:.\n-00002900: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00002930: 3c2f 613e 3c73 7061 6e20 636c 6173 733d \n-00002990: 2020 3731 3c2f 613e 3c2f 7370 616e 3e20 71 \n-000029a0: 2020 203c 7370 616e 2063 6c61 7373 3d22 typedef\n-000029c0: 3c2f 7370 616e 3e20 3c61 2063 6c61 7373 Dune::BCRSMa\n-00002a00: 7472 6978 266c 743b 4669 656c 644d 6174 trix<FieldMat\n-00002a10: 7269 7826 6c74 3b54 2c6e 2c6d 2667 743b rix<T,n,m>\n-00002a20: 3c2f 613e 2c41 2667 743b 203c 6120 636c ,A> matr\n-00002a80: 6978 5f74 7970 653c 2f61 3e3b 3c2f 6469 ix_type;.
    73 typed\n-00002b50: 6566 3c2f 7370 616e 3e20 4953 544c 3a3a ef ISTL::\n-00002b60: 496d 706c 3a3a 4243 4353 4d61 7472 6978 Impl::BCCSMatrix\n-00002b70: 266c 743b 542c 696e 7426 6774 3b20 3c61 <T,int> S\n-00002bd0: 5051 524d 6174 7269 783c 2f61 3e3b 3c2f PQRMatrix;.
    75 typ\n-00002ca0: 6564 6566 3c2f 7370 616e 3e20 4953 544c edef ISTL\n-00002cb0: 3a3a 496d 706c 3a3a 4243 4353 4d61 7472 ::Impl::BCCSMatr\n-00002cc0: 6978 496e 6974 6961 6c69 7a65 7226 6c74 ixInitializer<\n-00002cd0: 3b42 4352 534d 6174 7269 7826 6c74 3b46 ;BCRSMatrix<F\n-00002ce0: 6965 6c64 4d61 7472 6978 266c 743b 542c ieldMatrix<T,\n-00002cf0: 6e2c 6d26 6774 3b2c 4126 6774 3b2c 203c n,m>,A>, <\n-00002d00: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00002d10: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int> MatrixI\n-00002d80: 6e69 7469 616c 697a 6572 3c2f 613e 3b3c nitializer;<\n-00002d90: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    77 ty\n-00002e50: 7065 6465 663c 2f73 7061 6e3e 203c 6120 pedef Dune::B\n-00002e90: 6c6f 636b 5665 6374 6f72 266c 743b 4669 lockVector<Fi\n-00002ea0: 656c 6456 6563 746f 7226 6c74 3b54 2c6d eldVector<T,m\n-00002eb0: 2667 743b 3c2f 613e 2c20 3c73 7061 6e20 >, \n-00002ed0: 7479 7065 6e61 6d65 3c2f 7370 616e 3e20 typename \n-00002ee0: 7374 643a 3a61 6c6c 6f63 6174 6f72 5f74 std::allocator_t\n-00002ef0: 7261 6974 7326 6c74 3b41 2667 743b 3a3a raits<A>::\n-00002f00: 7465 6d70 6c61 7465 2072 6562 696e 645f template rebind_\n-00002f10: 616c 6c6f 6326 6c74 3b46 6965 6c64 5665 alloc<FieldVe\n-00002f20: 6374 6f72 266c 743b 542c 6d26 6774 3b20 ctor<T,m> \n-00002f30: 2667 743b 2026 6774 3b20 3c61 2063 6c61 > > domai\n-00002f90: 6e5f 7479 7065 3c2f 613e 3b3c 2f64 6976 n_type;.
    \n-00003030: 2020 2037 393c 2f61 3e3c 2f73 7061 6e3e 79\n-00003040: 2020 2020 3c73 7061 6e20 636c 6173 733d typede\n-00003060: 663c 2f73 7061 6e3e 203c 6120 636c 6173 f Dune::Block\n-000030a0: 5665 6374 6f72 266c 743b 4669 656c 6456 Vector<FieldV\n-000030b0: 6563 746f 7226 6c74 3b54 2c6e 2667 743b ector<T,n>\n-000030c0: 3c2f 613e 2c20 3c73 7061 6e20 636c 6173 , type\n-000030e0: 6e61 6d65 3c2f 7370 616e 3e20 7374 643a name std:\n-000030f0: 3a61 6c6c 6f63 6174 6f72 5f74 7261 6974 :allocator_trait\n-00003100: 7326 6c74 3b41 2667 743b 3a3a 7465 6d70 s<A>::temp\n-00003110: 6c61 7465 2072 6562 696e 645f 616c 6c6f late rebind_allo\n-00003120: 6326 6c74 3b46 6965 6c64 5665 6374 6f72 c<FieldVector\n-00003130: 266c 743b 542c 6e26 6774 3b20 2667 743b <T,n> >\n-00003140: 2026 6774 3b20 3c61 2063 6c61 7373 3d22 > range_typ\n-000031a0: 653c 2f61 3e3b 3c2f 6469 763e 0a3c 6469 e;
    .<\n-000031c0: 6120 6964 3d22 6c30 3030 3830 2220 6e61 a id=\"l00080\" na\n-000031d0: 6d65 3d22 6c30 3030 3830 223e 3c2f 613e me=\"l00080\">\n-000031e0: 3c73 7061 6e20 636c 6173 733d 226c 696e 80
    .
    .<\n-00003250: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00003260: 3e3c 6120 6964 3d22 6c30 3030 3832 2220 > \n-000032e0: 3832 3c2f 613e 3c2f 7370 616e 3e20 2020 82 \n-000032f0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 virtual Solver\n-00003370: 4361 7465 676f 7279 3a3a 4361 7465 676f Category::Catego\n-00003380: 7279 3c2f 613e 203c 6120 636c 6173 733d ry categor\n-000033e0: 793c 2f61 3e28 293c 7370 616e 2063 6c61 y() co\n-00003400: 6e73 743c 2f73 7061 6e3e 3c2f 6469 763e nst
    \n-00003410: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00003440: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 83 <\n-00003480: 2f73 7061 6e3e 7b3c 2f64 6976 3e0a 3c64 /span>{
    .\n-000034a0: 3c61 2069 643d 226c 3030 3038 3422 206e 84 return \n-00003510: 3c61 2063 6c61 7373 3d22 636f 6465 2068 SolverCategor\n-00003590: 793a 3a43 6174 6567 6f72 793a 3a73 6571 y::Category::seq\n-000035a0: 7565 6e74 6961 6c3c 2f61 3e3b 3c2f 6469 uential;.
    85\n-00003600: 3c2f 7370 616e 3e20 2020 207d 3c2f 6469 }.
    .
    86 <\n-00003670: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    .<\n-000036f0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00003700: 6e6f 223e 3c61 2063 6c61 7373 3d22 6c69 no\"> 95<\n-00003750: 2f61 3e3c 2f73 7061 6e3e 2020 2020 3c61 /a> \n-000037b0: 5350 5152 3c2f 613e 283c 7370 616e 2063 SPQR(c\n-000037d0: 6f6e 7374 3c2f 7370 616e 3e20 3c61 2063 onst Matrix& matrix, \n-00003820: 3c73 7061 6e20 636c 6173 733d 226b 6579 int verbose=0) \n-00003850: 3a20 6d61 7472 6978 4973 4c6f 6164 6564 : matrixIsLoaded\n-00003860: 5f28 6661 6c73 6529 2c20 7665 7262 6f73 _(false), verbos\n-00003870: 655f 2876 6572 626f 7365 293c 2f64 6976 e_(verbose).
    96<\n-000038d0: 2f73 7061 6e3e 2020 2020 7b3c 2f64 6976 /span> {.
    97<\n-00003930: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> //check whethe\n-00003960: 7220 5420 6973 2061 2073 7570 706f 7274 r T is a support\n-00003970: 6564 2074 7970 653c 2f73 7061 6e3e 3c2f ed type.
    \n-000039d0: 3938 3c2f 7370 616e 3e20 2020 2020 203c 98 <\n-000039e0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-000039f0: 6f72 6422 3e73 7461 7469 635f 6173 7365 ord\">static_asse\n-00003a00: 7274 3c2f 7370 616e 3e28 2873 7464 3a3a rt((std::\n-00003a10: 6973 5f73 616d 6526 6c74 3b54 2c64 6f75 is_same<T,dou\n-00003a20: 626c 6526 6774 3b3a 3a76 616c 7565 2920 ble>::value) \n-00003a30: 7c7c 2028 7374 643a 3a69 735f 7361 6d65 || (std::is_same\n-00003a40: 266c 743b 542c 7374 643a 3a63 6f6d 706c <T,std::compl\n-00003a50: 6578 266c 743b 646f 7562 6c65 2667 743b ex<double>\n-00003a60: 2026 6774 3b3a 3a76 616c 7565 292c 3c2f >::value),.
    \n-00003ac0: 3939 3c2f 7370 616e 3e20 2020 2020 2020 99 \n-00003ad0: 2020 2020 2020 2020 2020 2020 203c 7370 "U\n-00003b00: 6e73 7570 706f 7274 6564 2054 7970 6520 nsupported Type \n-00003b10: 696e 2053 5051 5220 286f 6e6c 7920 646f in SPQR (only do\n-00003b20: 7562 6c65 2061 6e64 2073 7464 3a3a 636f uble and std::co\n-00003b30: 6d70 6c65 7826 6c74 3b64 6f75 626c 6526 mplex<double&\n-00003b40: 6774 3b20 7375 7070 6f72 7465 6429 2671 gt; supported)&q\n-00003b50: 756f 743b 3c2f 7370 616e 3e29 3b3c 2f64 uot;);.
    10\n-00003bb0: 303c 2f73 7061 6e3e 2020 2020 2020 6363 0 cc\n-00003bc0: 5f20 3d20 3c73 7061 6e20 636c 6173 733d _ = new cholmod_com\n-00003bf0: 6d6f 6e28 293b 3c2f 6469 763e 0a3c 6469 mon();
    .<\n-00003c10: 6120 6964 3d22 6c30 3031 3031 2220 6e61 a id=\"l00101\" na\n-00003c20: 6d65 3d22 6c30 3031 3031 223e 3c2f 613e me=\"l00101\">\n-00003c30: 3c73 7061 6e20 636c 6173 733d 226c 696e 101 cholmod_l\n-00003c60: 5f73 7461 7274 2863 635f 293b 3c2f 6469 _start(cc_);.
    102\n-00003cc0: 3c2f 7370 616e 3e20 2020 2020 2073 6574 set\n-00003cd0: 4d61 7472 6978 286d 6174 7269 7829 3b3c Matrix(matrix);<\n-00003ce0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00003d30: 3130 333c 2f73 7061 6e3e 2020 2020 7d3c 103 }<\n-00003d40: 2f64 6976 3e0a 3c2f 6469 763e 0a3c 6469 /div>.
    .<\n-00003d60: 6120 6964 3d22 6c30 3031 3034 2220 6e61 a id=\"l00104\" na\n-00003d70: 6d65 3d22 6c30 3031 3034 223e 3c2f 613e me=\"l00104\">\n-00003d80: 3c73 7061 6e20 636c 6173 733d 226c 696e 104
    .
    .<\n-00003df0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00003e00: 3e3c 6120 6964 3d22 6c30 3031 3133 2220 > 1\n-00003e80: 3133 3c2f 613e 3c2f 7370 616e 3e20 2020 13 \n-00003e90: 203c 6120 636c 6173 733d 2263 6f64 6520 SPQR(const <\n-00003f10: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n-00003f20: 5f63 6c61 7373 2220 6872 6566 3d22 6130 _class\" href=\"a0\n-00003f30: 3131 3532 2e68 746d 6c22 3e4d 6174 7269 1152.html\">Matri\n-00003f40: 783c 2f61 3e26 616d 703b 206d 6174 7269 x& matri\n-00003f50: 782c 203c 7370 616e 2063 6c61 7373 3d22 x, int\n-00003f70: 3c2f 7370 616e 3e20 7665 7262 6f73 652c verbose,\n-00003f80: 203c 7370 616e 2063 6c61 7373 3d22 6b65 bool<\n-00003fa0: 2f73 7061 6e3e 2920 3a20 6d61 7472 6978 /span>) : matrix\n-00003fb0: 4973 4c6f 6164 6564 5f28 6661 6c73 6529 IsLoaded_(false)\n-00003fc0: 2c20 7665 7262 6f73 655f 2876 6572 626f , verbose_(verbo\n-00003fd0: 7365 293c 2f64 6976 3e0a 3c64 6976 2063 se)
    .
    114 \n-00004030: 2020 7b3c 2f64 6976 3e0a 3c64 6976 2063 {
    .
    115 \n-00004090: 2020 2020 3c73 7061 6e20 636c 6173 733d //chec\n-000040b0: 6b20 7768 6574 6865 7220 5420 6973 2061 k whether T is a\n-000040c0: 2073 7570 706f 7274 6564 2074 7970 653c supported type<\n-000040d0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n-000040f0: 6120 6964 3d22 6c30 3031 3136 2220 6e61 a id=\"l00116\" na\n-00004100: 6d65 3d22 6c30 3031 3136 223e 3c2f 613e me=\"l00116\">\n-00004110: 3c73 7061 6e20 636c 6173 733d 226c 696e 116 sta\n-00004150: 7469 635f 6173 7365 7274 3c2f 7370 616e tic_assert((std::is_same&\n-00004170: 6c74 3b54 2c64 6f75 626c 6526 6774 3b3a lt;T,double>:\n-00004180: 3a76 616c 7565 2920 7c7c 2028 7374 643a :value) || (std:\n-00004190: 3a69 735f 7361 6d65 266c 743b 542c 7374 :is_same<T,st\n-000041a0: 643a 3a63 6f6d 706c 6578 266c 743b 646f d::complex<do\n-000041b0: 7562 6c65 2667 743b 2026 6774 3b3a 3a76 uble> >::v\n-000041c0: 616c 7565 292c 3c2f 6469 763e 0a3c 6469 alue),
    .<\n-000041e0: 6120 6964 3d22 6c30 3031 3137 2220 6e61 a id=\"l00117\" na\n-000041f0: 6d65 3d22 6c30 3031 3137 223e 3c2f 613e me=\"l00117\">\n-00004200: 3c73 7061 6e20 636c 6173 733d 226c 696e 117 \n-00004230: 2020 2020 203c 7370 616e 2063 6c61 7373 "Unsupport\n-00004260: 6564 2054 7970 6520 696e 2053 5051 5220 ed Type in SPQR \n-00004270: 286f 6e6c 7920 646f 7562 6c65 2061 6e64 (only double and\n-00004280: 2073 7464 3a3a 636f 6d70 6c65 7826 6c74 std::complex<\n-00004290: 3b64 6f75 626c 6526 6774 3b20 7375 7070 ;double> supp\n-000042a0: 6f72 7465 6429 2671 756f 743b 3c2f 7370 orted)");
    .<\n-000042f0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00004300: 6e6f 223e 2020 3131 383c 2f73 7061 6e3e no\"> 118\n-00004310: 2020 2020 2020 6363 5f20 3d20 3c73 7061 cc_ = new cho\n-00004340: 6c6d 6f64 5f63 6f6d 6d6f 6e28 293b 3c2f lmod_common();.
    1\n-000043a0: 3139 3c2f 7370 616e 3e20 2020 2020 2063 19 c\n-000043b0: 686f 6c6d 6f64 5f6c 5f73 7461 7274 2863 holmod_l_start(c\n-000043c0: 635f 293b 3c2f 6469 763e 0a3c 6469 7620 c_);
    .
    120 \n-00004420: 2020 2020 2073 6574 4d61 7472 6978 286d setMatrix(m\n-00004430: 6174 7269 7829 3b3c 2f64 6976 3e0a 3c64 atrix);
    .\n-00004450: 3c61 2069 643d 226c 3030 3132 3122 206e 121 }
    ..
    1\n-000044f0: 3232 3c2f 7370 616e 3e20 3c2f 6469 763e 22
    \n-00004500: 0a3c 6469 7620 636c 6173 733d 2266 6f6c .
    .
    <\n-00004590: 6120 636c 6173 733d 226c 696e 6522 2068 a class=\"line\" h\n-000045a0: 7265 663d 2261 3030 3233 332e 6874 6d6c ref=\"a00233.html\n-000045b0: 2367 6162 3962 6664 6435 3531 3334 3765 #gab9bfdd551347e\n-000045c0: 6336 3064 6432 3265 6461 3533 3532 3933 c60dd22eda535293\n-000045d0: 6536 3322 3e20 2031 3332 3c2f 613e 3c2f e63\"> 132 SPQR<\n-00004640: 2f61 3e28 3c73 7061 6e20 636c 6173 733d /a>(const<\n-00004660: 2f73 7061 6e3e 203c 6120 636c 6173 733d /span> Matrix&am\n-000046a0: 703b 206d 6174 7269 782c 203c 7370 616e p; matrix, const Pa\n-000046d0: 7261 6d65 7465 7254 7265 6526 616d 703b rameterTree&\n-000046e0: 2063 6f6e 6669 6729 3c2f 6469 763e 0a3c config)
    .<\n-000046f0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00004700: 3e3c 6120 6964 3d22 6c30 3031 3333 2220 > 133 : SPQR(\n-00004780: 6d61 7472 6978 2c20 636f 6e66 6967 2e3c matrix, config.<\n-00004790: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n-000047a0: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n-000047b0: 2261 3030 3234 392e 6874 6d6c 2361 3334 \"a00249.html#a34\n-000047c0: 6637 3563 3538 6536 3536 3832 3362 3538 f75c58e656823b58\n-000047d0: 6533 6166 3137 6330 3966 6230 3365 223e e3af17c09fb03e\">\n-000047e0: 6765 743c 2f61 3e26 6c74 3b69 6e74 2667 get<int&g\n-000047f0: 743b 283c 7370 616e 2063 6c61 7373 3d22 t;(&\n-00004810: 7175 6f74 3b76 6572 626f 7365 2671 756f quot;verbose&quo\n-00004820: 743b 3c2f 7370 616e 3e2c 2030 2929 3c2f t;, 0)).
    1\n-00004880: 3334 3c2f 7370 616e 3e20 2020 207b 7d3c 34 {}<\n-00004890: 2f64 6976 3e0a 3c2f 6469 763e 0a3c 6469 /div>.
    .<\n-000048b0: 6120 6964 3d22 6c30 3031 3335 2220 6e61 a id=\"l00135\" na\n-000048c0: 6d65 3d22 6c30 3031 3335 223e 3c2f 613e me=\"l00135\">\n-000048d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 135
    .
    .<\n-00004940: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00004950: 3e3c 6120 6964 3d22 6c30 3031 3337 2220 > 1\n-000049d0: 3337 3c2f 613e 3c2f 7370 616e 3e20 2020 37 \n-000049e0: 203c 6120 636c 6173 733d 2263 6f64 6520 SPQR() : \n-00004a40: 6d61 7472 6978 4973 4c6f 6164 6564 5f28 matrixIsLoaded_(\n-00004a50: 6661 6c73 6529 2c20 7665 7262 6f73 655f false), verbose_\n-00004a60: 2830 293c 2f64 6976 3e0a 3c64 6976 2063 (0)
    .
    138 \n-00004ac0: 2020 7b3c 2f64 6976 3e0a 3c64 6976 2063 {
    .
    139 \n-00004b20: 2020 2020 3c73 7061 6e20 636c 6173 733d //chec\n-00004b40: 6b20 7768 6574 6865 7220 5420 6973 2061 k whether T is a\n-00004b50: 2073 7570 706f 7274 6564 2074 7970 653c supported type<\n-00004b60: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n-00004b80: 6120 6964 3d22 6c30 3031 3430 2220 6e61 a id=\"l00140\" na\n-00004b90: 6d65 3d22 6c30 3031 3430 223e 3c2f 613e me=\"l00140\">\n-00004ba0: 3c73 7061 6e20 636c 6173 733d 226c 696e 140 sta\n-00004be0: 7469 635f 6173 7365 7274 3c2f 7370 616e tic_assert((std::is_same&\n-00004c00: 6c74 3b54 2c64 6f75 626c 6526 6774 3b3a lt;T,double>:\n-00004c10: 3a76 616c 7565 2920 7c7c 2028 7374 643a :value) || (std:\n-00004c20: 3a69 735f 7361 6d65 266c 743b 542c 7374 :is_same<T,st\n-00004c30: 643a 3a63 6f6d 706c 6578 266c 743b 646f d::complex<do\n-00004c40: 7562 6c65 2667 743b 2026 6774 3b3a 3a76 uble> >::v\n-00004c50: 616c 7565 292c 3c2f 6469 763e 0a3c 6469 alue),
    .<\n-00004c70: 6120 6964 3d22 6c30 3031 3431 2220 6e61 a id=\"l00141\" na\n-00004c80: 6d65 3d22 6c30 3031 3431 223e 3c2f 613e me=\"l00141\">\n-00004c90: 3c73 7061 6e20 636c 6173 733d 226c 696e 141 \n-00004cc0: 2020 2020 203c 7370 616e 2063 6c61 7373 "Unsupport\n-00004cf0: 6564 2054 7970 6520 696e 2053 5051 5220 ed Type in SPQR \n-00004d00: 286f 6e6c 7920 646f 7562 6c65 2061 6e64 (only double and\n-00004d10: 2073 7464 3a3a 636f 6d70 6c65 7826 6c74 std::complex<\n-00004d20: 3b64 6f75 626c 6526 6774 3b20 7375 7070 ;double> supp\n-00004d30: 6f72 7465 6429 2671 756f 743b 3c2f 7370 orted)");
    .<\n-00004d80: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00004d90: 6e6f 223e 2020 3134 323c 2f73 7061 6e3e no\"> 142\n-00004da0: 2020 2020 2020 6363 5f20 3d20 3c73 7061 cc_ = new cho\n-00004dd0: 6c6d 6f64 5f63 6f6d 6d6f 6e28 293b 3c2f lmod_common();.
    1\n-00004e30: 3433 3c2f 7370 616e 3e20 2020 2020 2063 43 c\n-00004e40: 686f 6c6d 6f64 5f6c 5f73 7461 7274 2863 holmod_l_start(c\n-00004e50: 635f 293b 3c2f 6469 763e 0a3c 6469 7620 c_);
    .
    144 \n-00004eb0: 2020 207d 3c2f 6469 763e 0a3c 2f64 6976 }
    ..
    145<\n-00004f10: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    ..
    147 virt\n-00005020: 7561 6c3c 2f73 7061 6e3e 203c 6120 636c ual ~SP\n-00005080: 5152 3c2f 613e 2829 3c2f 6469 763e 0a3c QR()
    .<\n-00005090: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-000050a0: 3e3c 6120 6964 3d22 6c30 3031 3438 2220 > 148 {
    .<\n-000050f0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00005100: 3e3c 6120 6964 3d22 6c30 3031 3439 2220 > 149 if ((s\n-00005170: 7071 724d 6174 7269 785f 2e4e 2829 202b pqrMatrix_.N() +\n-00005180: 2073 7071 724d 6174 7269 785f 2e4d 2829 spqrMatrix_.M()\n-00005190: 2026 6774 3b20 3029 207c 7c20 6d61 7472 > 0) || matr\n-000051a0: 6978 4973 4c6f 6164 6564 5f29 3c2f 6469 ixIsLoaded_).
    150\n-00005200: 3c2f 7370 616e 3e20 2020 2020 2020 2066 f\n-00005210: 7265 6528 293b 3c2f 6469 763e 0a3c 6469 ree();
    .<\n-00005230: 6120 6964 3d22 6c30 3031 3531 2220 6e61 a id=\"l00151\" na\n-00005240: 6d65 3d22 6c30 3031 3531 223e 3c2f 613e me=\"l00151\">\n-00005250: 3c73 7061 6e20 636c 6173 733d 226c 696e 151 cholmod_l\n-00005280: 5f66 696e 6973 6828 6363 5f29 3b3c 2f64 _finish(cc_);.
    15\n-000052e0: 323c 2f73 7061 6e3e 2020 2020 7d3c 2f64 2 }.
    .
    153 \n-00005350: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    .<\n-000053b0: 6120 6964 3d22 6c30 3031 3535 2220 6e61 a id=\"l00155\" na\n-000053c0: 6d65 3d22 6c30 3031 3535 223e 3c2f 613e me=\"l00155\">\n-000053d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 155\n-00005430: 3c2f 613e 3c2f 7370 616e 3e20 2020 203c <\n-00005440: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00005450: 6f72 6422 3e76 6972 7475 616c 3c2f 7370 ord\">virtual vo\n-00005480: 6964 3c2f 7370 616e 3e20 3c61 2063 6c61 id appl\n-000054e0: 793c 2f61 3e28 3c61 2063 6c61 7373 3d22 y(domain_type& x, range_type\n-00005560: 3c2f 613e 2661 6d70 3b20 622c 203c 6120 & b, Invers\n-000055a0: 654f 7065 7261 746f 7252 6573 756c 743c eOperatorResult<\n-000055b0: 2f61 3e26 616d 703b 2072 6573 293c 2f64 /a>& res).
    15\n-00005610: 363c 2f73 7061 6e3e 2020 2020 7b3c 2f64 6 {.
    15\n-00005670: 373c 2f73 7061 6e3e 2020 2020 2020 3c73 7 const\n-000056a0: 2073 7464 3a3a 7369 7a65 5f74 206e 756d std::size_t num\n-000056b0: 526f 7773 2873 7071 724d 6174 7269 785f Rows(spqrMatrix_\n-000056c0: 2e4e 2829 293b 3c2f 6469 763e 0a3c 6469 .N());
    .<\n-000056e0: 6120 6964 3d22 6c30 3031 3538 2220 6e61 a id=\"l00158\" na\n-000056f0: 6d65 3d22 6c30 3031 3538 223e 3c2f 613e me=\"l00158\">\n-00005700: 3c73 7061 6e20 636c 6173 733d 226c 696e 158 // \n-00005740: 6669 6c6c 2042 3c2f 7370 616e 3e3c 2f64 fill B.
    15\n-000057a0: 393c 2f73 7061 6e3e 2020 2020 2020 3c73 9 for(std::size_t k\n-000057e0: 203d 2030 3b20 6b20 213d 206e 756d 526f = 0; k != numRo\n-000057f0: 7773 2f6e 3b20 2b2b 6b29 3c2f 6469 763e ws/n; ++k)
    \n-00005800: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00005830: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 160 for (int\n-000058a0: 3c2f 7370 616e 3e20 6c20 3d20 303b 206c l = 0; l\n-000058b0: 2026 6c74 3b20 6e3b 202b 2b6c 293c 2f64 < n; ++l).
    16\n-00005910: 313c 2f73 7061 6e3e 2020 2020 2020 2020 1 \n-00005920: 2020 283c 7370 616e 2063 6c61 7373 3d22 (static_\n-00005940: 6361 7374 266c 743b 3c2f 7370 616e 3e54 cast<T\n-00005950: 2a3c 7370 616e 2063 6c61 7373 3d22 6b65 *>(B_->x))[n*\n-00005980: 6b2b 6c5d 203d 2062 5b6b 5d5b 6c5d 3b3c k+l] = b[k][l];<\n-00005990: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-000059e0: 3136 323c 2f73 7061 6e3e 203c 2f64 6976 162 .
    163<\n-00005a40: 2f73 7061 6e3e 2020 2020 2020 6368 6f6c /span> chol\n-00005a50: 6d6f 645f 6465 6e73 652a 2042 5465 6d70 mod_dense* BTemp\n-00005a60: 203d 2042 5f3b 3c2f 6469 763e 0a3c 6469 = B_;
    .<\n-00005a80: 6120 6964 3d22 6c30 3031 3634 2220 6e61 a id=\"l00164\" na\n-00005a90: 6d65 3d22 6c30 3031 3634 223e 3c2f 613e me=\"l00164\">\n-00005aa0: 3c73 7061 6e20 636c 6173 733d 226c 696e 164 B_ = Suit\n-00005ad0: 6553 7061 7273 6551 525f 716d 756c 7426 eSparseQR_qmult&\n-00005ae0: 6c74 3b54 2667 743b 2830 2c20 7370 7172 lt;T>(0, spqr\n-00005af0: 6661 6374 6f72 697a 6174 696f 6e5f 2c20 factorization_, \n-00005b00: 425f 2c20 6363 5f29 3b3c 2f64 6976 3e0a B_, cc_);
    .\n-00005b10: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n-00005bc0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00005bf0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 166 cholm\n-00005c20: 6f64 5f6c 5f66 7265 655f 6465 6e73 6528 od_l_free_dense(\n-00005c30: 2661 6d70 3b42 5465 6d70 2c20 6363 5f29 &BTemp, cc_)\n-00005c40: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-00005c90: 2020 3136 373c 2f73 7061 6e3e 203c 2f64 167 .
    16\n-00005cf0: 383c 2f73 7061 6e3e 2020 2020 2020 3c73 8 const\n-00005d20: 2073 7464 3a3a 7369 7a65 5f74 206e 756d std::size_t num\n-00005d30: 436f 6c73 2873 7071 724d 6174 7269 785f Cols(spqrMatrix_\n-00005d40: 2e4d 2829 293b 3c2f 6469 763e 0a3c 6469 .M());
    .<\n-00005d60: 6120 6964 3d22 6c30 3031 3639 2220 6e61 a id=\"l00169\" na\n-00005d70: 6d65 3d22 6c30 3031 3639 223e 3c2f 613e me=\"l00169\">\n-00005d80: 3c73 7061 6e20 636c 6173 733d 226c 696e 169 // \n-00005dc0: 6669 6c6c 2078 3c2f 7370 616e 3e3c 2f64 fill x.
    17\n-00005e20: 303c 2f73 7061 6e3e 2020 2020 2020 3c73 0 for(std::size_t k\n-00005e60: 203d 2030 3b20 6b20 213d 206e 756d 436f = 0; k != numCo\n-00005e70: 6c73 2f6d 3b20 2b2b 6b29 3c2f 6469 763e ls/m; ++k)
    \n-00005e80: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00005eb0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 171 for (int\n-00005f20: 3c2f 7370 616e 3e20 6c20 3d20 303b 206c l = 0; l\n-00005f30: 2026 6c74 3b20 6d3b 202b 2b6c 293c 2f64 < m; ++l).
    17\n-00005f90: 323c 2f73 7061 6e3e 2020 2020 2020 2020 2 \n-00005fa0: 2020 785b 6b5d 5b6c 5d20 3d20 283c 7370 x[k][l] = (static_cast&l\n-00005fd0: 743b 3c2f 7370 616e 3e54 2a3c 7370 616e t;T*>(X-&\n-00006000: 6774 3b78 2929 5b6d 2a6b 2b6c 5d3b 3c2f gt;x))[m*k+l];.
    1\n-00006060: 3733 3c2f 7370 616e 3e20 3c2f 6469 763e 73
    \n-00006070: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-000060a0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 174 cholm\n-000060d0: 6f64 5f6c 5f66 7265 655f 6465 6e73 6528 od_l_free_dense(\n-000060e0: 2661 6d70 3b58 2c20 6363 5f29 3b3c 2f64 &X, cc_);.
    17\n-00006140: 353c 2f73 7061 6e3e 2020 2020 2020 3c73 5 // this is a\n-00006170: 2064 6972 6563 7420 736f 6c76 6572 3c2f direct solver
    .<\n-000061c0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-000061d0: 6e6f 223e 2020 3137 363c 2f73 7061 6e3e no\"> 176
    \n-000061e0: 2020 2020 2020 7265 732e 3c61 2063 6c61 res.itera\n-00006240: 7469 6f6e 733c 2f61 3e20 3d20 313b 3c2f tions = 1;.
    1\n-000062a0: 3737 3c2f 7370 616e 3e20 2020 2020 2072 77 r\n-000062b0: 6573 2e3c 6120 636c 6173 733d 2263 6f64 es.converged = true;
    .<\n-00006350: 6120 6964 3d22 6c30 3031 3738 2220 6e61 a id=\"l00178\" na\n-00006360: 6d65 3d22 6c30 3031 3738 223e 3c2f 613e me=\"l00178\">\n-00006370: 3c73 7061 6e20 636c 6173 733d 226c 696e 178 if(verbo\n-000063c0: 7365 5f20 2667 743b 2030 293c 2f64 6976 se_ > 0).
    179<\n-00006420: 2f73 7061 6e3e 2020 2020 2020 7b3c 2f64 /span> {.
    18\n-00006480: 303c 2f73 7061 6e3e 2020 2020 2020 2020 0 \n-00006490: 7374 643a 3a63 6f75 7426 6c74 3b26 6c74 std::cout<<\n-000064a0: 3b73 7464 3a3a 656e 646c 266c 743b 266c ;std::endl<&l\n-000064b0: 743b 3c73 7061 6e20 636c 6173 733d 2273 t;&q\n-000064d0: 756f 743b 536f 6c76 696e 6720 7769 7468 uot;Solving with\n-000064e0: 2053 7569 7465 5370 6172 7365 5152 2671 SuiteSparseQR&q\n-000064f0: 756f 743b 3c2f 7370 616e 3e26 6c74 3b26 uot;<&\n-00006500: 6c74 3b73 7464 3a3a 656e 646c 3b3c 2f64 lt;std::endl;.
    18\n-00006560: 313c 2f73 7061 6e3e 2020 2020 2020 2020 1 \n-00006570: 7374 643a 3a63 6f75 7426 6c74 3b26 6c74 std::cout<<\n-00006580: 3b3c 7370 616e 2063 6c61 7373 3d22 7374 ;&qu\n-000065a0: 6f74 3b46 6c6f 7073 2054 616b 656e 3a20 ot;Flops Taken: \n-000065b0: 2671 756f 743b 3c2f 7370 616e 3e26 6c74 "<\n-000065c0: 3b26 6c74 3b63 635f 2d26 6774 3b53 5051 ;<cc_->SPQ\n-000065d0: 525f 666c 6f70 636f 756e 7426 6c74 3b26 R_flopcount<&\n-000065e0: 6c74 3b73 7464 3a3a 656e 646c 3b3c 2f64 lt;std::endl;.
    18\n-00006640: 323c 2f73 7061 6e3e 2020 2020 2020 2020 2 \n-00006650: 7374 643a 3a63 6f75 7426 6c74 3b26 6c74 std::cout<<\n-00006660: 3b3c 7370 616e 2063 6c61 7373 3d22 7374 ;&qu\n-00006680: 6f74 3b41 6e61 6c79 7369 7320 5469 6d65 ot;Analysis Time\n-00006690: 3a20 2671 756f 743b 3c2f 7370 616e 3e26 : "&\n-000066a0: 6c74 3b26 6c74 3b63 635f 2d26 6774 3b53 lt;<cc_->S\n-000066b0: 5051 525f 616e 616c 797a 655f 7469 6d65 PQR_analyze_time\n-000066c0: 266c 743b 266c 743b 3c73 7061 6e20 636c <<" s&quo\n-000066f0: 743b 3c2f 7370 616e 3e26 6c74 3b26 6c74 t;<<\n-00006700: 3b73 7464 3a3a 656e 646c 3b3c 2f64 6976 ;std::endl;.
    183<\n-00006760: 2f73 7061 6e3e 2020 2020 2020 2020 7374 /span> st\n-00006770: 643a 3a63 6f75 7426 6c74 3b26 6c74 3b3c d::cout<<<\n-00006780: 7370 616e 2063 6c61 7373 3d22 7374 7269 span class=\"stri\n-00006790: 6e67 6c69 7465 7261 6c22 3e26 7175 6f74 ngliteral\">"\n-000067a0: 3b46 6163 746f 7269 7a65 2054 696d 653a ;Factorize Time:\n-000067b0: 2026 7175 6f74 3b3c 2f73 7061 6e3e 266c "&l\n-000067c0: 743b 266c 743b 6363 5f2d 2667 743b 5350 t;<cc_->SP\n-000067d0: 5152 5f66 6163 746f 7269 7a65 5f74 696d QR_factorize_tim\n-000067e0: 6526 6c74 3b26 6c74 3b3c 7370 616e 2063 e<<" s&qu\n-00006810: 6f74 3b3c 2f73 7061 6e3e 266c 743b 266c ot;<&l\n-00006820: 743b 7374 643a 3a65 6e64 6c3b 3c2f 6469 t;std::endl;.
    184\n-00006880: 3c2f 7370 616e 3e20 2020 2020 2020 2073 s\n-00006890: 7464 3a3a 636f 7574 266c 743b 266c 743b td::cout<<\n-000068a0: 3c73 7061 6e20 636c 6173 733d 2273 7472 &quo\n-000068c0: 743b 4261 636b 736f 6c76 6520 5469 6d65 t;Backsolve Time\n-000068d0: 3a20 2671 756f 743b 3c2f 7370 616e 3e26 : "&\n-000068e0: 6c74 3b26 6c74 3b63 635f 2d26 6774 3b53 lt;<cc_->S\n-000068f0: 5051 525f 736f 6c76 655f 7469 6d65 266c PQR_solve_time&l\n-00006900: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<" s"\n-00006930: 3c2f 7370 616e 3e26 6c74 3b26 6c74 3b73 <<s\n-00006940: 7464 3a3a 656e 646c 3b3c 2f64 6976 3e0a td::endl;
    .\n-00006950: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n-00006a70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00006aa0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 186 std\n-00006ad0: 3a3a 636f 7574 266c 743b 266c 743b 3c73 ::cout<<"\n-00006b00: 5261 6e6b 2045 7374 696d 6174 653a 2026 Rank Estimate: &\n-00006b10: 7175 6f74 3b3c 2f73 7061 6e3e 266c 743b quot;<\n-00006b20: 266c 743b 6363 5f2d 2667 743b 5350 5152 <cc_->SPQR\n-00006b30: 5f69 7374 6174 5b34 5d26 6c74 3b26 6c74 _istat[4]<<\n-00006b40: 3b73 7464 3a3a 656e 646c 266c 743b 266c ;std::endl<&l\n-00006b50: 743b 7374 643a 3a65 6e64 6c3b 3c2f 6469 t;std::endl;.
    187\n-00006bb0: 3c2f 7370 616e 3e20 2020 2020 207d 3c2f }.
    1\n-00006c10: 3838 3c2f 7370 616e 3e20 2020 207d 3c2f 88 }.
    .<\n-00006c60: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00006c70: 6e6f 223e 2020 3138 393c 2f73 7061 6e3e no\"> 189\n-00006c80: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    .\n-00006ce0: 3c61 2069 643d 226c 3030 3139 3122 206e 19\n-00006d60: 313c 2f61 3e3c 2f73 7061 6e3e 2020 2020 1 \n-00006d70: 3c73 7061 6e20 636c 6173 733d 226b 6579 virtual v\n-00006db0: 6f69 643c 2f73 7061 6e3e 203c 6120 636c oid app\n-00006e10: 6c79 3c2f 613e 2028 3c61 2063 6c61 7373 ly (domain_type<\n-00006e50: 2f61 3e26 616d 703b 2078 2c20 3c61 2063 /a>& x, range_ty\n-00006e90: 7065 3c2f 613e 2661 6d70 3b20 622c 205b pe& b, [\n-00006ea0: 5b6d 6179 6265 5f75 6e75 7365 645d 5d20 [maybe_unused]] \n-00006eb0: 3c73 7061 6e20 636c 6173 733d 226b 6579 double\n-00006ed0: 3c2f 7370 616e 3e20 7265 6475 6374 696f reductio\n-00006ee0: 6e2c 203c 6120 636c 6173 733d 2263 6f64 n, \n-00006f10: 496e 7665 7273 654f 7065 7261 746f 7252 InverseOperatorR\n-00006f20: 6573 756c 743c 2f61 3e26 616d 703b 2072 esult& r\n-00006f30: 6573 293c 2f64 6976 3e0a 3c64 6976 2063 es)
    .
    192 \n-00006f90: 2020 7b3c 2f64 6976 3e0a 3c64 6976 2063 {
    .
    193 \n-00006ff0: 2020 2020 6170 706c 7928 782c 2062 2c20 apply(x, b, \n-00007000: 7265 7329 3b3c 2f64 6976 3e0a 3c64 6976 res);
    .<\n-00007040: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00007050: 6e6f 223e 2020 3139 343c 2f73 7061 6e3e no\"> 194\n-00007060: 2020 2020 7d3c 2f64 6976 3e0a 3c2f 6469 }
    ..
    195\n-000070c0: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n-000070d0: 6469 7620 636c 6173 733d 2266 6f6c 646f div class=\"foldo\n-000070e0: 7065 6e22 2069 643d 2266 6f6c 646f 7065 pen\" id=\"foldope\n-000070f0: 6e30 3031 3936 2220 6461 7461 2d73 7461 n00196\" data-sta\n-00007100: 7274 3d22 7b22 2064 6174 612d 656e 643d rt=\"{\" data-end=\n-00007110: 227d 223e 0a3c 6469 7620 636c 6173 733d \"}\">.
    196 void s\n-00007230: 6574 4f70 7469 6f6e 3c2f 613e 285b 5b6d etOption([[m\n-00007240: 6179 6265 5f75 6e75 7365 645d 5d20 3c73 aybe_unused]] unsigned\n-00007270: 3c2f 7370 616e 3e20 3c73 7061 6e20 636c int opt\n-000072a0: 696f 6e2c 205b 5b6d 6179 6265 5f75 6e75 ion, [[maybe_unu\n-000072b0: 7365 645d 5d20 3c73 7061 6e20 636c 6173 sed]] \n-000072d0: 646f 7562 6c65 3c2f 7370 616e 3e20 7661 double va\n-000072e0: 6c75 6529 3c2f 6469 763e 0a3c 6469 7620 lue)
    .
    197 \n-00007340: 2020 207b 7d3c 2f64 6976 3e0a 3c2f 6469 {}
    ..
    198\n-000073a0: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n-000073b0: 6469 7620 636c 6173 733d 2266 6f6c 646f div class=\"foldo\n-000073c0: 7065 6e22 2069 643d 2266 6f6c 646f 7065 pen\" id=\"foldope\n-000073d0: 6e30 3032 3030 2220 6461 7461 2d73 7461 n00200\" data-sta\n-000073e0: 7274 3d22 7b22 2064 6174 612d 656e 643d rt=\"{\" data-end=\n-000073f0: 227d 223e 0a3c 6469 7620 636c 6173 733d \"}\">.
    200 void s\n-00007510: 6574 4d61 7472 6978 3c2f 613e 283c 7370 etMatrix(const \n-00007540: 3c61 2063 6c61 7373 3d22 636f 6465 2068 Matr\n-00007570: 6978 3c2f 613e 2661 6d70 3b20 6d61 7472 ix& matr\n-00007580: 6978 293c 2f64 6976 3e0a 3c64 6976 2063 ix)
    .
    201 \n-000075e0: 2020 7b3c 2f64 6976 3e0a 3c64 6976 2063 {
    .
    202 \n-00007640: 2020 2020 3c73 7061 6e20 636c 6173 733d if\n-00007660: 3c2f 7370 616e 3e20 2828 7370 7172 4d61 ((spqrMa\n-00007670: 7472 6978 5f2e 4e28 2920 2b20 7370 7172 trix_.N() + spqr\n-00007680: 4d61 7472 6978 5f2e 4d28 2920 2667 743b Matrix_.M() >\n-00007690: 2030 2920 7c7c 206d 6174 7269 7849 734c 0) || matrixIsL\n-000076a0: 6f61 6465 645f 293c 2f64 6976 3e0a 3c64 oaded_)
    .\n-000076c0: 3c61 2069 643d 226c 3030 3230 3322 206e 203 free()\n-00007710: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-00007760: 2020 3230 343c 2f73 7061 6e3e 203c 2f64 204 .
    20\n-000077c0: 353c 2f73 7061 6e3e 2020 2020 2020 3c73 5 if (spqrMatrix_.N\n-00007800: 2829 202b 2073 7071 724d 6174 7269 785f () + spqrMatrix_\n-00007810: 2e4d 2829 202b 2073 7071 724d 6174 7269 .M() + spqrMatri\n-00007820: 785f 2e6e 6f6e 7a65 726f 6573 2829 2021 x_.nonzeroes() !\n-00007830: 3d20 3029 3c2f 6469 763e 0a3c 6469 7620 = 0)
    .
    206 \n-00007890: 2020 2020 2020 2073 7071 724d 6174 7269 spqrMatri\n-000078a0: 785f 2e66 7265 6528 293b 3c2f 6469 763e x_.free();
    \n-000078b0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-000078e0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 207 spqrM\n-00007910: 6174 7269 785f 2e73 6574 5369 7a65 283c atrix_.setSize(<\n-00007920: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n-00007930: 5f73 7472 7563 7422 2068 7265 663d 2261 _struct\" href=\"a\n-00007940: 3031 3133 362e 6874 6d6c 223e 4d61 7472 01136.html\">Matr\n-00007950: 6978 4469 6d65 6e73 696f 6e26 6c74 3b4d ixDimension<M\n-00007960: 6174 7269 7826 6774 3b3a 3a72 6f77 6469 atrix>::rowdi\n-00007970: 6d3c 2f61 3e28 6d61 7472 6978 292c 3c2f m(matrix),.
    2\n-000079d0: 3038 3c2f 7370 616e 3e20 2020 2020 2020 08 \n-000079e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-000079f0: 2020 203c 6120 636c 6173 733d 2263 6f64 \n-00007a20: 4d61 7472 6978 4469 6d65 6e73 696f 6e26 MatrixDimension&\n-00007a30: 6c74 3b4d 6174 7269 7826 6774 3b3a 3a63 lt;Matrix>::c\n-00007a40: 6f6c 6469 6d3c 2f61 3e28 6d61 7472 6978 oldim(matrix\n-00007a50: 2929 3b3c 2f64 6976 3e0a 3c64 6976 2063 ));
    .
    209 \n-00007ab0: 2020 2020 4953 544c 3a3a 496d 706c 3a3a ISTL::Impl::\n-00007ac0: 4243 4353 4d61 7472 6978 496e 6974 6961 BCCSMatrixInitia\n-00007ad0: 6c69 7a65 7226 6c74 3b4d 6174 7269 782c lizer<Matrix,\n-00007ae0: 2069 6e74 2667 743b 2069 6e69 7469 616c int> initial\n-00007af0: 697a 6572 2873 7071 724d 6174 7269 785f izer(spqrMatrix_\n-00007b00: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    210 .
    2\n-00007bb0: 3131 3c2f 7370 616e 3e20 2020 2020 2063 11 c\n-00007bc0: 6f70 7954 6f42 4343 534d 6174 7269 7828 opyToBCCSMatrix(\n-00007bd0: 696e 6974 6961 6c69 7a65 722c 206d 6174 initializer, mat\n-00007be0: 7269 7829 3b3c 2f64 6976 3e0a 3c64 6976 rix);
    .<\n-00007c20: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00007c30: 6e6f 223e 2020 3231 323c 2f73 7061 6e3e no\"> 212\n-00007c40: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n-00007c90: 2020 3231 333c 2f73 7061 6e3e 2020 2020 213 \n-00007ca0: 2020 6465 636f 6d70 6f73 6528 293b 3c2f decompose();.
    2\n-00007d00: 3134 3c2f 7370 616e 3e20 2020 207d 3c2f 14 }.
    .<\n-00007d50: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-00007d60: 6e6f 223e 2020 3231 353c 2f73 7061 6e3e no\"> 215\n-00007d70: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n-00007dc0: 2020 3231 363c 2f73 7061 6e3e 2020 2020 216 \n-00007dd0: 3c73 7061 6e20 636c 6173 733d 226b 6579 template<c\n-00007e10: 6c61 7373 3c2f 7370 616e 3e20 5326 6774 lass S>\n-00007e20: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    ..<\n-00008050: 6120 6964 3d22 6c30 3032 3138 2220 6e61 a id=\"l00218\" na\n-00008060: 6d65 3d22 6c30 3032 3138 223e 3c2f 613e me=\"l00218\">\n-00008070: 3c73 7061 6e20 636c 6173 733d 226c 696e 218 {
    .<\n-000080b0: 6120 6964 3d22 6c30 3032 3139 2220 6e61 a id=\"l00219\" na\n-000080c0: 6d65 3d22 6c30 3032 3139 223e 3c2f 613e me=\"l00219\">\n-000080d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 219 if ((spq\n-00008120: 724d 6174 7269 785f 2e4e 2829 202b 2073 rMatrix_.N() + s\n-00008130: 7071 724d 6174 7269 785f 2e4d 2829 2026 pqrMatrix_.M() &\n-00008140: 6774 3b20 3029 207c 7c20 6d61 7472 6978 gt; 0) || matrix\n-00008150: 4973 4c6f 6164 6564 5f29 3c2f 6469 763e IsLoaded_)
    \n-00008160: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00008190: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 220 fre\n-000081c0: 6528 293b 3c2f 6469 763e 0a3c 6469 7620 e();
    .
    221 \n-00008220: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-00008270: 2032 3232 3c2f 7370 616e 3e20 2020 2020 222 \n-00008280: 203c 7370 616e 2063 6c61 7373 3d22 6b65 if (spqrMatrix\n-000082b0: 5f2e 4e28 2920 2b20 7370 7172 4d61 7472 _.N() + spqrMatr\n-000082c0: 6978 5f2e 4d28 2920 2b20 7370 7172 4d61 ix_.M() + spqrMa\n-000082d0: 7472 6978 5f2e 6e6f 6e7a 6572 6f65 7328 trix_.nonzeroes(\n-000082e0: 2920 213d 2030 293c 2f64 6976 3e0a 3c64 ) != 0)
    .\n-00008300: 3c61 2069 643d 226c 3030 3232 3322 206e 223 spqrMa\n-00008350: 7472 6978 5f2e 6672 6565 2829 3b3c 2f64 trix_.free();.
    22\n-000083b0: 343c 2f73 7061 6e3e 203c 2f64 6976 3e0a 4
    .\n-000083c0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    226 \n-00008560: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00008570: 2020 2020 2020 2072 6f77 496e 6465 7853 rowIndexS\n-00008580: 6574 2e73 697a 6528 292a 3c61 2063 6c61 et.size()*MatrixDim\n-000085c0: 656e 7369 6f6e 266c 743b 4d61 7472 6978 ension<Matrix\n-000085d0: 2667 743b 3a3a 636f 6c64 696d 3c2f 613e >::coldim\n-000085e0: 286d 6174 7269 7829 202f 206d 6174 7269 (matrix) / matri\n-000085f0: 782e 3c61 2063 6c61 7373 3d22 636f 6465 x.M());.
    227\n-000086a0: 3c2f 7370 616e 3e20 2020 2020 2049 5354 IST\n-000086b0: 4c3a 3a49 6d70 6c3a 3a42 4343 534d 6174 L::Impl::BCCSMat\n-000086c0: 7269 7849 6e69 7469 616c 697a 6572 266c rixInitializer&l\n-000086d0: 743b 4d61 7472 6978 2c20 696e 7426 6774 t;Matrix, int>\n-000086e0: 3b20 696e 6974 6961 6c69 7a65 7228 7370 ; initializer(sp\n-000086f0: 7172 4d61 7472 6978 5f29 3b3c 2f64 6976 qrMatrix_);.
    228<\n-00008750: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n-00008770: 3c61 2069 643d 226c 3030 3232 3922 206e 229 copyToBC\n-000087c0: 4353 4d61 7472 6978 2869 6e69 7469 616c CSMatrix(initial\n-000087d0: 697a 6572 2c20 4953 544c 3a3a 496d 706c izer, ISTL::Impl\n-000087e0: 3a3a 4d61 7472 6978 526f 7753 7562 7365 ::MatrixRowSubse\n-000087f0: 7426 6c74 3b3c 6120 636c 6173 733d 2263 t<Matrix,std:\n-00008830: 3a73 6574 266c 743b 7374 643a 3a73 697a :set<std::siz\n-00008840: 655f 7426 6774 3b20 2667 743b 286d 6174 e_t> >(mat\n-00008850: 7269 782c 726f 7749 6e64 6578 5365 7429 rix,rowIndexSet)\n-00008860: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    230 .
    2\n-00008910: 3331 3c2f 7370 616e 3e20 2020 2020 2064 31 d\n-00008920: 6563 6f6d 706f 7365 2829 3b3c 2f64 6976 ecompose();.
    232<\n-00008980: 2f73 7061 6e3e 2020 2020 7d3c 2f64 6976 /span> }.
    .
    233 .
    ..
    \n-00008c00: 2020 3233 393c 2f73 7061 6e3e 2020 2020 239 \n-00008c10: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n-00008c60: 2020 3234 303c 2f73 7061 6e3e 2020 2020 240 \n-00008c70: 2020 7665 7262 6f73 655f 3d76 3b3c 2f64 verbose_=v;.
    24\n-00008cd0: 313c 2f73 7061 6e3e 2020 2020 7d3c 2f64 1 }.
    .
    242 \n-00008d40: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    .<\n-00008da0: 6120 6964 3d22 6c30 3032 3437 2220 6e61 a id=\"l00247\" na\n-00008db0: 6d65 3d22 6c30 3032 3437 223e 3c2f 613e me=\"l00247\">\n-00008dc0: 3c73 7061 6e20 636c 6173 733d 226c 696e 247\n-00008e20: 3c2f 613e 3c2f 7370 616e 3e20 2020 203c <\n-00008e30: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00008e40: 6f72 6422 3e69 6e6c 696e 653c 2f73 7061 ord\">inline SuiteSparseQR\n-00008e60: 5f66 6163 746f 7269 7a61 7469 6f6e 266c _factorization&l\n-00008e70: 743b 5426 6774 3b2a 203c 6120 636c 6173 t;T>* getFa\n-00008ed0: 6374 6f72 697a 6174 696f 6e3c 2f61 3e28 ctorization(\n-00008ee0: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n-00008f30: 2020 3234 383c 2f73 7061 6e3e 2020 2020 248 \n-00008f40: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n-00008f90: 2020 3234 393c 2f73 7061 6e3e 2020 2020 249 \n-00008fa0: 2020 3c73 7061 6e20 636c 6173 733d 226b retu\n-00008fc0: 726e 3c2f 7370 616e 3e20 7370 7172 6661 rn spqrfa\n-00008fd0: 6374 6f72 697a 6174 696f 6e5f 3b3c 2f64 ctorization_;.
    25\n-00009030: 303c 2f73 7061 6e3e 2020 2020 7d3c 2f64 0 }.
    .
    251 \n-000090a0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    .<\n-00009100: 6120 6964 3d22 6c30 3032 3536 2220 6e61 a id=\"l00256\" na\n-00009110: 6d65 3d22 6c30 3032 3536 223e 3c2f 613e me=\"l00256\">\n-00009120: 3c73 7061 6e20 636c 6173 733d 226c 696e 256\n-00009180: 3c2f 613e 3c2f 7370 616e 3e20 2020 203c <\n-00009190: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-000091a0: 6f72 6422 3e69 6e6c 696e 653c 2f73 7061 ord\">inline SPQRMatrix& getInt\n-00009270: 6572 6e61 6c4d 6174 7269 783c 2f61 3e28 ernalMatrix(\n-00009280: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n-000092d0: 2020 3235 373c 2f73 7061 6e3e 2020 2020 257 \n-000092e0: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n-00009330: 2020 3235 383c 2f73 7061 6e3e 2020 2020 258 \n-00009340: 2020 3c73 7061 6e20 636c 6173 733d 226b retu\n-00009360: 726e 3c2f 7370 616e 3e20 7370 7172 4d61 rn spqrMa\n-00009370: 7472 6978 5f3b 3c2f 6469 763e 0a3c 6469 trix_;
    .<\n-00009390: 6120 6964 3d22 6c30 3032 3539 2220 6e61 a id=\"l00259\" na\n-000093a0: 6d65 3d22 6c30 3032 3539 223e 3c2f 613e me=\"l00259\">\n-000093b0: 3c73 7061 6e20 636c 6173 733d 226c 696e 259 }
    ..
    26\n-00009430: 303c 2f73 7061 6e3e 203c 2f64 6976 3e0a 0
    .\n-00009440: 3c64 6976 2063 6c61 7373 3d22 666f 6c64
    .
    265 void \n-000095a0: 6672 6565 3c2f 613e 2829 3c2f 6469 763e free()
    \n-000095b0: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n-00009610: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-00009640: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 267 cholm\n-00009670: 6f64 5f6c 5f66 7265 655f 7370 6172 7365 od_l_free_sparse\n-00009680: 2826 616d 703b 415f 2c20 6363 5f29 3b3c (&A_, cc_);<\n-00009690: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-000096e0: 3236 383c 2f73 7061 6e3e 2020 2020 2020 268 \n-000096f0: 6368 6f6c 6d6f 645f 6c5f 6672 6565 5f64 cholmod_l_free_d\n-00009700: 656e 7365 2826 616d 703b 425f 2c20 6363 ense(&B_, cc\n-00009710: 5f29 3b3c 2f64 6976 3e0a 3c64 6976 2063 _);
    .
    269 \n-00009770: 2020 2020 5375 6974 6553 7061 7273 6551 SuiteSparseQ\n-00009780: 525f 6672 6565 266c 743b 5426 6774 3b28 R_free<T>(\n-00009790: 2661 6d70 3b73 7071 7266 6163 746f 7269 &spqrfactori\n-000097a0: 7a61 7469 6f6e 5f2c 2063 635f 293b 3c2f zation_, cc_);.
    2\n-00009800: 3730 3c2f 7370 616e 3e20 2020 2020 2073 70 s\n-00009810: 7071 724d 6174 7269 785f 2e66 7265 6528 pqrMatrix_.free(\n-00009820: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    271 \n-00009880: 2020 206d 6174 7269 7849 734c 6f61 6465 matrixIsLoade\n-00009890: 645f 203d 203c 7370 616e 2063 6c61 7373 d_ = false\n-000098b0: 3c2f 7370 616e 3e3b 3c2f 6469 763e 0a3c ;
    .<\n-000098c0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-000098d0: 3e3c 6120 6964 3d22 6c30 3032 3732 2220 > 272 }
    .<\n-00009920: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-00009970: 3237 333c 2f73 7061 6e3e 203c 2f64 6976 273 .
    .
    \n-00009a10: 3c61 2063 6c61 7373 3d22 6c69 6e65 2220 275<\n-00009a60: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n-00009a80: 696e 6c69 6e65 3c2f 7370 616e 3e20 3c73 inline const\n-00009ab0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 char<\n-00009ad0: 2f73 7061 6e3e 2a20 3c61 2063 6c61 7373 /span>* name()
    .
    276 \n-00009b90: 2020 207b 3c2f 6469 763e 0a3c 6469 7620 {
    .
    277 \n-00009bf0: 2020 2020 203c 7370 616e 2063 6c61 7373 r\n-00009c10: 6574 7572 6e3c 2f73 7061 6e3e 203c 7370 eturn "S\n-00009c40: 5051 5226 7175 6f74 3b3c 2f73 7061 6e3e PQR"\n-00009c50: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-00009ca0: 2020 3237 383c 2f73 7061 6e3e 2020 2020 278 \n-00009cb0: 7d3c 2f64 6976 3e0a 3c2f 6469 763e 0a3c }
    .
    .<\n-00009cc0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00009cd0: 3e3c 6120 6964 3d22 6c30 3032 3739 2220 > 279
    .
    280 \n-00009d70: 2020 203c 7370 616e 2063 6c61 7373 3d22 private\n-00009d90: 3c2f 7370 616e 3e3a 3c2f 6469 763e 0a3c :
    .<\n-00009da0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-00009db0: 3e3c 6120 6964 3d22 6c30 3032 3831 2220 > 281 tem\n-00009e10: 706c 6174 653c 2f73 7061 6e3e 266c 743b plate<\n-00009e20: 3c73 7061 6e20 636c 6173 733d 226b 6579 class M,class\n-00009e60: 3c2f 7370 616e 3e20 582c 203c 7370 616e X, class TM\n-00009e90: 2c20 3c73 7061 6e20 636c 6173 733d 226b , class TD, c\n-00009ed0: 6c61 7373 3c2f 7370 616e 3e20 5431 2667 lass T1&g\n-00009ee0: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    282\n-00009f80: 3c2f 7370 616e 3e20 2020 203c 7370 616e friend <\n-00009fb0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-00009fc0: 6f72 6422 3e63 6c61 7373 203c 2f73 7061 ord\">class Se\n-0000a000: 714f 7665 726c 6170 7069 6e67 5363 6877 qOverlappingSchw\n-0000a010: 6172 7a3c 2f61 3e3b 3c2f 6469 763e 0a3c arz;
    .<\n-0000a020: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000a030: 3e3c 6120 6964 3d22 6c30 3032 3833 2220 > 283
    .
    284 \n-0000a0d0: 2020 203c 7370 616e 2063 6c61 7373 3d22 friend<\n-0000a0f0: 2f73 7061 6e3e 203c 7370 616e 2063 6c61 /span> str\n-0000a110: 7563 7420 3c2f 7370 616e 3e3c 6120 636c uct SeqOverl\n-0000a150: 6170 7069 6e67 5363 6877 6172 7a41 7373 appingSchwarzAss\n-0000a160: 656d 626c 6572 4865 6c70 6572 3c2f 613e emblerHelper\n-0000a170: 266c 743b 3c61 2063 6c61 7373 3d22 636f <\n-0000a1a0: 5350 5152 3c2f 613e 266c 743b 3c61 2063 SPQR<Matrix>,true>;\n-0000a1f0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000a240: 2032 3835 3c2f 7370 616e 3e20 3c2f 6469 285 .
    287\n-0000a2a0: 3c2f 7370 616e 3e20 2020 203c 7370 616e void\n-0000a2d0: 2064 6563 6f6d 706f 7365 2829 3c2f 6469 decompose().
    288\n-0000a330: 3c2f 7370 616e 3e20 2020 207b 3c2f 6469 {.
    289\n-0000a390: 3c2f 7370 616e 3e20 2020 2020 203c 7370 const \n-0000a3c0: 7374 643a 3a73 697a 655f 7420 6e72 6f77 std::size_t nrow\n-0000a3d0: 7328 7370 7172 4d61 7472 6978 5f2e 4e28 s(spqrMatrix_.N(\n-0000a3e0: 2929 3b3c 2f64 6976 3e0a 3c64 6976 2063 ));
    .
    290 \n-0000a440: 2020 2020 3c73 7061 6e20 636c 6173 733d const<\n-0000a460: 2f73 7061 6e3e 2073 7464 3a3a 7369 7a65 /span> std::size\n-0000a470: 5f74 206e 636f 6c73 2873 7071 724d 6174 _t ncols(spqrMat\n-0000a480: 7269 785f 2e4d 2829 293b 3c2f 6469 763e rix_.M());
    \n-0000a490: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-0000a4c0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 291 const st\n-0000a510: 643a 3a73 697a 655f 7420 6e6e 7a28 7370 d::size_t nnz(sp\n-0000a520: 7172 4d61 7472 6978 5f2e 6765 7443 6f6c qrMatrix_.getCol\n-0000a530: 5374 6172 7428 295b 6e63 6f6c 735d 293b Start()[ncols]);\n-0000a540: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000a590: 2032 3932 3c2f 7370 616e 3e20 3c2f 6469 292 .
    293\n-0000a5f0: 3c2f 7370 616e 3e20 2020 2020 203c 7370 // initialise\n-0000a620: 2074 6865 206d 6174 7269 7820 4120 2873 the matrix A (s\n-0000a630: 6f72 7465 642c 2070 6163 6b65 642c 2075 orted, packed, u\n-0000a640: 6e73 796d 6d65 7472 6963 2c20 7265 616c nsymmetric, real\n-0000a650: 2065 6e74 7269 6573 293c 2f73 7061 6e3e entries)\n-0000a660: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000a6b0: 2032 3934 3c2f 7370 616e 3e20 2020 2020 294 \n-0000a6c0: 2041 5f20 3d20 6368 6f6c 6d6f 645f 6c5f A_ = cholmod_l_\n-0000a6d0: 616c 6c6f 6361 7465 5f73 7061 7273 6528 allocate_sparse(\n-0000a6e0: 6e72 6f77 732c 206e 636f 6c73 2c20 6e6e nrows, ncols, nn\n-0000a6f0: 7a2c 2031 2c20 312c 2030 2c20 312c 2063 z, 1, 1, 0, 1, c\n-0000a700: 635f 293b 3c2f 6469 763e 0a3c 6469 7620 c_);
    .
    295 \n-0000a760: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000a7b0: 2032 3936 3c2f 7370 616e 3e20 2020 2020 296 \n-0000a7c0: 203c 7370 616e 2063 6c61 7373 3d22 636f // copy a\n-0000a7e0: 6c6c 2074 6865 2065 6e74 7269 6573 206f ll the entries o\n-0000a7f0: 6620 4170 2c20 4169 2c20 4178 3c2f 7370 f Ap, Ai, Ax
    .
    297 \n-0000a860: 2020 2020 3c73 7061 6e20 636c 6173 733d fo\n-0000a880: 723c 2f73 7061 6e3e 2873 7464 3a3a 7369 r(std::si\n-0000a890: 7a65 5f74 206b 203d 2030 3b20 6b20 213d ze_t k = 0; k !=\n-0000a8a0: 2028 6e63 6f6c 732b 3129 3b20 2b2b 6b29 (ncols+1); ++k)\n-0000a8b0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000a900: 2032 3938 3c2f 7370 616e 3e20 2020 2020 298 \n-0000a910: 2020 2028 3c73 7061 6e20 636c 6173 733d (static\n-0000a930: 5f63 6173 7426 6c74 3b3c 2f73 7061 6e3e _cast<\n-0000a940: 3c73 7061 6e20 636c 6173 733d 226b 6579 long \n-0000a980: 696e 743c 2f73 7061 6e3e 202a 3c73 7061 int *>(A_\n-0000a9b0: 2d26 6774 3b70 2929 5b6b 5d20 3d20 7370 ->p))[k] = sp\n-0000a9c0: 7172 4d61 7472 6978 5f2e 6765 7443 6f6c qrMatrix_.getCol\n-0000a9d0: 5374 6172 7428 295b 6b5d 3b3c 2f64 6976 Start()[k];.
    299<\n-0000aa30: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n-0000aa50: 3c61 2069 643d 226c 3030 3330 3022 206e 300 for(std\n-0000aac0: 3a3a 7369 7a65 5f74 206b 203d 2030 3b20 ::size_t k = 0; \n-0000aad0: 6b20 213d 206e 6e7a 3b20 2b2b 6b29 3c2f k != nnz; ++k).
    3\n-0000ab30: 3031 3c2f 7370 616e 3e20 2020 2020 207b 01 {\n-0000ab40: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000ab90: 2033 3032 3c2f 7370 616e 3e20 2020 2020 302 \n-0000aba0: 2020 2028 3c73 7061 6e20 636c 6173 733d (static\n-0000abc0: 5f63 6173 7426 6c74 3b3c 2f73 7061 6e3e _cast<\n-0000abd0: 3c73 7061 6e20 636c 6173 733d 226b 6579 long \n-0000ac10: 696e 743c 2f73 7061 6e3e 2a3c 7370 616e int*>(A_-\n-0000ac40: 2667 743b 6929 295b 6b5d 203d 2073 7071 >i))[k] = spq\n-0000ac50: 724d 6174 7269 785f 2e67 6574 526f 7749 rMatrix_.getRowI\n-0000ac60: 6e64 6578 2829 5b6b 5d3b 3c2f 6469 763e ndex()[k];
    \n-0000ac70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-0000aca0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 303 (static_cast&\n-0000acf0: 6c74 3b3c 2f73 7061 6e3e 542a 3c73 7061 lt;T*>(A_\n-0000ad20: 2d26 6774 3b78 2929 5b6b 5d20 3d20 7370 ->x))[k] = sp\n-0000ad30: 7172 4d61 7472 6978 5f2e 6765 7456 616c qrMatrix_.getVal\n-0000ad40: 7565 7328 295b 6b5d 3b3c 2f64 6976 3e0a ues()[k];
    .\n-0000ad50: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n-0000ad80: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 304 }.
    305<\n-0000ae00: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n-0000ae20: 3c61 2069 643d 226c 3030 3330 3622 206e 306 //\n-0000ae80: 2069 6e69 7469 616c 6973 6520 7468 6520 initialise the \n-0000ae90: 7665 6374 6f72 2042 3c2f 7370 616e 3e3c vector B<\n-0000aea0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n-0000aef0: 3330 373c 2f73 7061 6e3e 2020 2020 2020 307 \n-0000af00: 425f 203d 2063 686f 6c6d 6f64 5f6c 5f61 B_ = cholmod_l_a\n-0000af10: 6c6c 6f63 6174 655f 6465 6e73 6528 6e72 llocate_dense(nr\n-0000af20: 6f77 732c 2031 2c20 6e72 6f77 732c 2041 ows, 1, nrows, A\n-0000af30: 5f2d 2667 743b 7874 7970 652c 2063 635f _->xtype, cc_\n-0000af40: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    308 \n-0000afa0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // comp\n-0000afc0: 7574 6520 6661 6374 6f72 697a 6174 696f ute factorizatio\n-0000afd0: 6e20 6f66 2041 3c2f 7370 616e 3e3c 2f64 n of A.
    30\n-0000b030: 393c 2f73 7061 6e3e 2020 2020 2020 7370 9 sp\n-0000b040: 7172 6661 6374 6f72 697a 6174 696f 6e5f qrfactorization_\n-0000b050: 3d53 7569 7465 5370 6172 7365 5152 5f66 =SuiteSparseQR_f\n-0000b060: 6163 746f 7269 7a65 266c 743b 5426 6774 actorize<T>\n-0000b070: 3b28 5350 5152 5f4f 5244 4552 494e 475f ;(SPQR_ORDERING_\n-0000b080: 4445 4641 554c 542c 5350 5152 5f44 4546 DEFAULT,SPQR_DEF\n-0000b090: 4155 4c54 5f54 4f4c 2c41 5f2c 6363 5f29 AULT_TOL,A_,cc_)\n-0000b0a0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n-0000b0f0: 2020 3331 303c 2f73 7061 6e3e 2020 2020 310 \n-0000b100: 7d3c 2f64 6976 3e0a 3c64 6976 2063 6c61 }
    .
    \n-0000b150: 2020 3331 313c 2f73 7061 6e3e 203c 2f64 311 .
    31\n-0000b1b0: 323c 2f73 7061 6e3e 2020 2020 5350 5152 2 SPQR\n-0000b1c0: 4d61 7472 6978 2073 7071 724d 6174 7269 Matrix spqrMatri\n-0000b1d0: 785f 3b3c 2f64 6976 3e0a 3c64 6976 2063 x_;
    .
    313 \n-0000b230: 2020 3c73 7061 6e20 636c 6173 733d 226b bool\n-0000b250: 3c2f 7370 616e 3e20 6d61 7472 6978 4973 matrixIs\n-0000b260: 4c6f 6164 6564 5f3b 3c2f 6469 763e 0a3c Loaded_;
    .<\n-0000b270: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000b280: 3e3c 6120 6964 3d22 6c30 3033 3134 2220 > 314 int verb\n-0000b2f0: 6f73 655f 3b3c 2f64 6976 3e0a 3c64 6976 ose_;
    .<\n-0000b330: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000b340: 6e6f 223e 2020 3331 353c 2f73 7061 6e3e no\"> 315\n-0000b350: 2020 2020 6368 6f6c 6d6f 645f 636f 6d6d cholmod_comm\n-0000b360: 6f6e 2a20 6363 5f3b 3c2f 6469 763e 0a3c on* cc_;
    .<\n-0000b370: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000b380: 3e3c 6120 6964 3d22 6c30 3033 3136 2220 > 316 cholmod_s\n-0000b3d0: 7061 7273 652a 2041 5f3b 3c2f 6469 763e parse* A_;
    \n-0000b3e0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-0000b410: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 317 cholmod\n-0000b440: 5f64 656e 7365 2a20 425f 3b3c 2f64 6976 _dense* B_;.
    318<\n-0000b4a0: 2f73 7061 6e3e 2020 2020 5375 6974 6553 /span> SuiteS\n-0000b4b0: 7061 7273 6551 525f 6661 6374 6f72 697a parseQR_factoriz\n-0000b4c0: 6174 696f 6e26 6c74 3b54 2667 743b 2a20 ation<T>* \n-0000b4d0: 7370 7172 6661 6374 6f72 697a 6174 696f spqrfactorizatio\n-0000b4e0: 6e5f 3b3c 2f64 6976 3e0a 3c64 6976 2063 n_;
    .
    319 \n-0000b540: 7d3b 3c2f 6469 763e 0a3c 2f64 6976 3e0a };
    .
    .\n-0000b550: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n-0000b5e0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000b5f0: 6e6f 223e 2020 3332 313c 2f73 7061 6e3e no\"> 321\n-0000b600: 2020 3c73 7061 6e20 636c 6173 733d 226b template\n-0000b620: 3c2f 7370 616e 3e26 6c74 3b3c 7370 616e <typename\n-0000b650: 2054 2c20 3c73 7061 6e20 636c 6173 733d T, typena\n-0000b670: 6d65 3c2f 7370 616e 3e20 4126 6774 3b3c me A><\n-0000b680: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    .<\n-0000b6e0: 6120 6964 3d22 6c30 3033 3232 2220 6e61 a id=\"l00322\" na\n-0000b6f0: 6d65 3d22 6c30 3033 3232 223e 3c2f 613e me=\"l00322\">\n-0000b700: 3c73 7061 6e20 636c 6173 733d 226c 696e 322 \n-0000b760: 7374 7275 6374 203c 2f73 7061 6e3e 3c61 struct IsDir\n-0000b7a0: 6563 7453 6f6c 7665 723c 2f61 3e26 6c74 ectSolver<\n-0000b7b0: 3b3c 6120 636c 6173 733d 2263 6f64 6520 ;SPQ\n-0000b7e0: 523c 2f61 3e26 6c74 3b3c 6120 636c 6173 R<BCRSMatrix<\n-0000b820: 2f61 3e26 6c74 3b54 2c41 2667 743b 2026 /a><T,A> &\n-0000b830: 6774 3b20 2667 743b 3c2f 6469 763e 0a3c gt; >
    .<\n-0000b840: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000b850: 3e3c 6120 6964 3d22 6c30 3033 3233 2220 > 323 {
    .<\n-0000b8b0: 6120 6964 3d22 6c30 3033 3234 2220 6e61 a id=\"l00324\" na\n-0000b8c0: 6d65 3d22 6c30 3033 3234 223e 3c2f 613e me=\"l00324\">\n-0000b8d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 3\n-0000b950: 3234 3c2f 613e 3c2f 7370 616e 3e20 2020 24 \n-0000b960: 203c 7370 616e 2063 6c61 7373 3d22 6b65 enum {value\n-0000ba00: 203d 203c 7370 616e 2063 6c61 7373 3d22 = true};
    .<\n-0000ba40: 6120 6964 3d22 6c30 3033 3235 2220 6e61 a id=\"l00325\" na\n-0000ba50: 6d65 3d22 6c30 3033 3235 223e 3c2f 613e me=\"l00325\">\n-0000ba60: 3c73 7061 6e20 636c 6173 733d 226c 696e 325 };
    ..
    326\n-0000bae0: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n-0000baf0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000bb00: 3e3c 6120 6964 3d22 6c30 3033 3237 2220 > 327 templ\n-0000bb60: 6174 653c 2f73 7061 6e3e 266c 743b 3c73 ate<typename T, typ\n-0000bbb0: 656e 616d 653c 2f73 7061 6e3e 2041 2667 ename A&g\n-0000bbc0: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    .\n-0000bc10: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    329 \n-0000bde0: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    ..
    \n-0000bfc0: 2020 3333 313c 2f73 7061 6e3e 2020 7d3b 331 };\n-0000bfd0: 3c2f 6469 763e 0a3c 2f64 6976 3e0a 3c64
    .
    .\n-0000bff0: 3c61 2069 643d 226c 3030 3333 3222 206e 332
    .
    \n-0000c080: 0a3c 6469 7620 636c 6173 733d 226c 696e ..
    <\n-0000c1b0: 6120 636c 6173 733d 226c 696e 6522 2068 a class=\"line\" h\n-0000c1c0: 7265 663d 2261 3032 3832 382e 6874 6d6c ref=\"a02828.html\n-0000c1d0: 223e 2020 3333 343c 2f61 3e3c 2f73 7061 \"> 334 temp\n-0000c200: 6c61 7465 3c2f 7370 616e 3e26 6c74 3b3c late<<\n-0000c210: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-0000c220: 6f72 6422 3e63 6c61 7373 3c2f 7370 616e ord\">class> stru\n-0000c250: 6374 203c 2f73 7061 6e3e 3c61 2063 6c61 ct isValidBl\n-0000c290: 6f63 6b3c 2f61 3e20 3a20 7374 643a 3a66 ock : std::f\n-0000c2a0: 616c 7365 5f74 7970 657b 7d3b 3c2f 6469 alse_type{};.
    335\n-0000c300: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n-0000c310: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000c320: 3e3c 6120 6964 3d22 6c30 3033 3336 2220 > 336 tem\n-0000c380: 706c 6174 653c 2f73 7061 6e3e 266c 743b plate<\n-0000c390: 3c73 7061 6e20 636c 6173 733d 226b 6579 typename TL, \n-0000c3d0: 7479 7065 6e61 6d65 3c2f 7370 616e 3e20 typename \n-0000c3e0: 4d26 6774 3b3c 2f64 6976 3e0a 3c64 6976 M>
    .<\n-0000c420: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000c430: 6e6f 223e 2020 3333 373c 2f73 7061 6e3e no\"> 337\n-0000c440: 2020 2020 7374 643a 3a73 6861 7265 645f std::shared_\n-0000c450: 7074 7226 6c74 3b44 756e 653a 3a49 6e76 ptr<Dune::Inv\n-0000c460: 6572 7365 4f70 6572 6174 6f72 266c 743b erseOperator<\n-0000c470: 7479 7065 6e61 6d65 2044 756e 653a 3a54 typename Dune::T\n-0000c480: 7970 654c 6973 7445 6c65 6d65 6e74 266c ypeListElement&l\n-0000c490: 743b 312c 2054 4c26 6774 3b3a 3a74 7970 t;1, TL>::typ\n-0000c4a0: 652c 3c2f 6469 763e 0a3c 6469 7620 636c e,
    .
    338 \n-0000c500: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c510: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c520: 2020 2020 2020 203c 7370 616e 2063 6c61 typ\n-0000c540: 656e 616d 653c 2f73 7061 6e3e 2044 756e ename Dun\n-0000c550: 653a 3a54 7970 654c 6973 7445 6c65 6d65 e::TypeListEleme\n-0000c560: 6e74 266c 743b 322c 2054 4c26 6774 3b3a nt<2, TL>:\n-0000c570: 3a74 7970 6526 6774 3b26 6774 3b3c 2f64 :type>>.
    .
    339 op\n-0000c6c0: 6572 6174 6f72 2829 203c 2f61 3e28 544c erator() (TL\n-0000c6d0: 203c 7370 616e 2063 6c61 7373 3d22 636f /*tl*/, cons\n-0000c710: 743c 2f73 7061 6e3e 204d 2661 6d70 3b20 t M& \n-0000c720: 3c61 2063 6c61 7373 3d22 636f 6465 2068 mat, const Du\n-0000c7a0: 6e65 3a3a 5061 7261 6d65 7465 7254 7265 ne::ParameterTre\n-0000c7b0: 6526 616d 703b 2063 6f6e 6669 672c 3c2f e& config,.
    3\n-0000c810: 3430 3c2f 7370 616e 3e20 2020 2020 2073 40 s\n-0000c820: 7464 3a3a 656e 6162 6c65 5f69 665f 7426 td::enable_if_t&\n-0000c830: 6c74 3b3c 2f64 6976 3e0a 3c64 6976 2063 lt;
    .
    341 \n-0000c890: 2020 2020 2020 2020 2020 2020 2020 3c61 isVal\n-0000c8d0: 6964 426c 6f63 6b3c 2f61 3e26 6c74 3b3c idBlock<<\n-0000c8e0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n-0000c8f0: 6f72 6422 3e74 7970 656e 616d 653c 2f73 ord\">typename Dune::TypeL\n-0000c910: 6973 7445 6c65 6d65 6e74 266c 743b 312c istElement<1,\n-0000c920: 2054 4c26 6774 3b3a 3a74 7970 653a 3a62 TL>::type::b\n-0000c930: 6c6f 636b 5f74 7970 6526 6774 3b3a 3a76 lock_type>::v\n-0000c940: 616c 7565 2c3c 7370 616e 2063 6c61 7373 alue,i\n-0000c960: 6e74 3c2f 7370 616e 3e26 6774 3b20 3d20 nt> = \n-0000c970: 3029 3c73 7061 6e20 636c 6173 733d 226b 0) const
    .<\n-0000c9d0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000c9e0: 6e6f 223e 2020 3334 323c 2f73 7061 6e3e no\"> 342\n-0000c9f0: 3c73 7061 6e20 636c 6173 733d 226b 6579 {
    .
    343 \n-0000ca70: 2020 203c 7370 616e 2063 6c61 7373 3d22 int\n-0000ca90: 3c2f 7370 616e 3e20 7665 7262 6f73 6520 verbose \n-0000caa0: 3d20 636f 6e66 6967 2e67 6574 283c 7370 = config.get("v\n-0000cad0: 6572 626f 7365 2671 756f 743b 3c2f 7370 erbose", 0);
    .<\n-0000caf0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000cb00: 3e3c 6120 6964 3d22 6c30 3033 3434 2220 > 344 return\n-0000cb70: 2073 7464 3a3a 6d61 6b65 5f73 6861 7265 std::make_share\n-0000cb80: 6426 6c74 3b44 756e 653a 3a53 5051 5226 d<Dune::SPQR&\n-0000cb90: 6c74 3b4d 2667 743b 2667 743b 283c 6120 lt;M>>(m\n-0000cbf0: 6174 3c2f 613e 2c76 6572 626f 7365 293b at,verbose);\n-0000cc00: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000cc50: 2033 3435 3c2f 7370 616e 3e20 2020 207d 345 }\n-0000cc60: 3c2f 6469 763e 0a3c 2f64 6976 3e0a 3c64
    .
    .\n-0000cc80: 3c61 2069 643d 226c 3030 3334 3622 206e 346
    .
    347 \n-0000cd20: 2020 3c73 7061 6e20 636c 6173 733d 2263 // secon\n-0000cd40: 6420 7665 7273 696f 6e20 7769 7468 2053 d version with S\n-0000cd50: 4649 4e41 4520 746f 2076 616c 6964 6174 FINAE to validat\n-0000cd60: 6520 7468 6520 7465 6d70 6c61 7465 2070 e the template p\n-0000cd70: 6172 616d 6574 6572 7320 6f66 2053 5051 arameters of SPQ\n-0000cd80: 523c 2f73 7061 6e3e 3c2f 6469 763e 0a3c R
    .<\n-0000cd90: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n-0000cda0: 3e3c 6120 6964 3d22 6c30 3033 3438 2220 > 348 tem\n-0000ce00: 706c 6174 653c 2f73 7061 6e3e 266c 743b plate<\n-0000ce10: 3c73 7061 6e20 636c 6173 733d 226b 6579 typename TL, \n-0000ce50: 7479 7065 6e61 6d65 3c2f 7370 616e 3e20 typename \n-0000ce60: 4d26 6774 3b3c 2f64 6976 3e0a 3c64 6976 M>
    .<\n-0000cea0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n-0000ceb0: 6e6f 223e 2020 3334 393c 2f73 7061 6e3e no\"> 349\n-0000cec0: 2020 2020 7374 643a 3a73 6861 7265 645f std::shared_\n-0000ced0: 7074 7226 6c74 3b44 756e 653a 3a49 6e76 ptr<Dune::Inv\n-0000cee0: 6572 7365 4f70 6572 6174 6f72 266c 743b erseOperator<\n-0000cef0: 7479 7065 6e61 6d65 2044 756e 653a 3a54 typename Dune::T\n-0000cf00: 7970 654c 6973 7445 6c65 6d65 6e74 266c ypeListElement&l\n-0000cf10: 743b 312c 2054 4c26 6774 3b3a 3a74 7970 t;1, TL>::typ\n-0000cf20: 652c 3c2f 6469 763e 0a3c 6469 7620 636c e,
    .
    350 \n-0000cf80: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cf90: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cfa0: 2020 2020 2020 203c 7370 616e 2063 6c61 typ\n-0000cfc0: 656e 616d 653c 2f73 7061 6e3e 2044 756e ename Dun\n-0000cfd0: 653a 3a54 7970 654c 6973 7445 6c65 6d65 e::TypeListEleme\n-0000cfe0: 6e74 266c 743b 322c 2054 4c26 6774 3b3a nt<2, TL>:\n-0000cff0: 3a74 7970 6526 6774 3b26 6774 3b3c 2f64 :type>>.
    .
    351 op\n-0000d140: 6572 6174 6f72 2829 203c 2f61 3e28 544c erator() (TL\n-0000d150: 203c 7370 616e 2063 6c61 7373 3d22 636f /*tl*/, cons\n-0000d190: 743c 2f73 7061 6e3e 204d 2661 6d70 3b20 t M& \n-0000d1a0: 3c73 7061 6e20 636c 6173 733d 2263 6f6d /*mat*/, cons\n-0000d1e0: 743c 2f73 7061 6e3e 2044 756e 653a 3a50 t Dune::P\n-0000d1f0: 6172 616d 6574 6572 5472 6565 2661 6d70 arameterTree&\n-0000d200: 3b20 3c73 7061 6e20 636c 6173 733d 2263 ; /*config\n-0000d220: 2a2f 3c2f 7370 616e 3e2c 3c2f 6469 763e */,
    \n-0000d230: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-0000d260: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 352 std::\n-0000d290: 656e 6162 6c65 5f69 665f 7426 6c74 3b21 enable_if_t<!\n-0000d2a0: 3c61 2063 6c61 7373 3d22 636f 6465 2068 isV\n-0000d2d0: 616c 6964 426c 6f63 6b3c 2f61 3e26 6c74 alidBlock<\n-0000d2e0: 3b3c 7370 616e 2063 6c61 7373 3d22 6b65 ;typename<\n-0000d300: 2f73 7061 6e3e 2044 756e 653a 3a54 7970 /span> Dune::Typ\n-0000d310: 654c 6973 7445 6c65 6d65 6e74 266c 743b eListElement<\n-0000d320: 312c 2054 4c26 6774 3b3a 3a74 7970 653a 1, TL>::type:\n-0000d330: 3a62 6c6f 636b 5f74 7970 6526 6774 3b3a :block_type>:\n-0000d340: 3a76 616c 7565 2c3c 7370 616e 2063 6c61 :value,int> \n-0000d370: 3d20 3029 3c73 7061 6e20 636c 6173 733d = 0) const\n-0000d390: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n-0000d3b0: 3c61 2069 643d 226c 3030 3335 3322 206e 353 {
    .
    354 \n-0000d470: 2020 2020 2044 554e 455f 5448 524f 5728 DUNE_THROW(\n-0000d480: 3c61 2063 6c61 7373 3d22 636f 6465 2068 Unsu\n-0000d4b0: 7070 6f72 7465 6454 7970 653c 2f61 3e2c pportedType,\n-0000d4c0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n-0000d510: 2033 3535 3c2f 7370 616e 3e20 2020 2020 355 \n-0000d520: 2020 203c 7370 616e 2063 6c61 7373 3d22 &\n-0000d540: 7175 6f74 3b55 6e73 7570 706f 7274 6564 quot;Unsupported\n-0000d550: 2054 7970 6520 696e 2053 5051 5220 286f Type in SPQR (o\n-0000d560: 6e6c 7920 646f 7562 6c65 2061 6e64 2073 nly double and s\n-0000d570: 7464 3a3a 636f 6d70 6c65 7826 6c74 3b64 td::complex<d\n-0000d580: 6f75 626c 6526 6774 3b20 7375 7070 6f72 ouble> suppor\n-0000d590: 7465 6429 2671 756f 743b 3c2f 7370 616e ted)");
    .
    356 \n-0000d600: 2020 7d3c 2f64 6976 3e0a 3c2f 6469 763e }
    .
    \n-0000d610: 0a3c 6469 7620 636c 6173 733d 226c 696e ..\n-0000d670: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    <\n-0000d6c0: 6120 636c 6173 733d 226c 696e 6522 2068 a class=\"line\" h\n-0000d6d0: 7265 663d 2261 3032 3833 322e 6874 6d6c ref=\"a02832.html\n-0000d6e0: 223e 2020 3335 383c 2f61 3e3c 2f73 7061 \"> 358 templa\n-0000d710: 7465 3c2f 7370 616e 3e26 6c74 3b26 6774 te<>\n-0000d720: 3b20 3c73 7061 6e20 636c 6173 733d 226b ; struct <\n-0000d740: 2f73 7061 6e3e 3c61 2063 6c61 7373 3d22 /span>SPQRCreator::\n-0000d780: 6973 5661 6c69 6442 6c6f 636b 3c2f 613e isValidBlock\n-0000d790: 266c 743b 4669 656c 6456 6563 746f 7226 <FieldVector&\n-0000d7a0: 6c74 3b64 6f75 626c 652c 3126 6774 3b26 lt;double,1>&\n-0000d7b0: 6774 3b20 3a20 7374 643a 3a74 7275 655f gt; : std::true_\n-0000d7c0: 7479 7065 7b7d 3b3c 2f64 6976 3e0a 3c64 type{};
    .\n-0000d7e0: 3c61 2069 643d 226c 3030 3335 3922 206e 359 // std\n-0000d840: 3a3a 636f 6d70 6c65 7820 6973 2074 656d ::complex is tem\n-0000d850: 706f 7261 7279 2064 6973 6162 6c65 642c porary disabled,\n-0000d860: 2062 6563 6175 7365 2069 7420 6661 696c because it fail\n-0000d870: 7320 6966 206c 6962 632b 2b20 6973 2075 s if libc++ is u\n-0000d880: 7365 643c 2f73 7061 6e3e 3c2f 6469 763e sed
    \n-0000d890: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n-0000d8c0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 360 //t\n-0000d900: 656d 706c 6174 6526 6c74 3b26 6774 3b20 emplate<> \n-0000d910: 7374 7275 6374 2053 5051 5243 7265 6174 struct SPQRCreat\n-0000d920: 6f72 3a3a 6973 5661 6c69 644d 6174 7269 or::isValidMatri\n-0000d930: 7842 6c6f 636b 266c 743b 4669 656c 644d xBlock<FieldM\n-0000d940: 6174 7269 7826 6c74 3b73 7464 3a3a 636f atrix<std::co\n-0000d950: 6d70 6c65 7826 6c74 3b64 6f75 626c 6526 mplex<double&\n-0000d960: 6774 3b2c 312c 3126 6774 3b26 6774 3b20 gt;,1,1>> \n-0000d970: 3a20 7374 643a 3a74 7275 655f 7479 7065 : std::true_type\n-0000d980: 7b7d 3b3c 2f73 7061 6e3e 3c2f 6469 763e {};
    \n-0000d990: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n-0000dc20: 6120 6964 3d22 6c30 3033 3634 2220 6e61 a id=\"l00364\" na\n-0000dc30: 6d65 3d22 6c30 3033 3634 223e 3c2f 613e me=\"l00364\">\n-0000dc40: 3c73 7061 6e20 636c 6173 733d 226c 696e 364
    .
    365 .
    3\n-0000dd10: 3636 3c2f 7370 616e 3e3c 7370 616e 2063 66#endif //HAVE_S\n-0000dd60: 5549 5445 5350 4152 5345 5f53 5051 523c UITESPARSE_SPQR<\n-0000dd70: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n-0000dd90: 6120 6964 3d22 6c30 3033 3637 2220 6e61 a id=\"l00367\" na\n-0000dda0: 6d65 3d22 6c30 3033 3637 223e 3c2f 613e me=\"l00367\">\n-0000ddb0: 3c73 7061 6e20 636c 6173 733d 226c 696e 367#end\n-0000ddf0: 6966 203c 2f73 7061 6e3e 3c73 7061 6e20 if \n-0000de10: 2f2f 4455 4e45 5f49 5354 4c5f 5350 5152 //DUNE_ISTL_SPQR\n-0000de20: 5f48 483c 2f73 7061 6e3e 3c2f 6469 763e _HH
    \n-0000de30: 0a3c 6469 7620 636c 6173 733d 2274 7463 ..
    solvers.hh<\n-0000dfd0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Implemen\n-0000dff0: 7461 7469 6f6e 7320 6f66 2074 6865 2069 tations of the i\n-0000e000: 6e76 6572 7365 206f 7065 7261 746f 7220 nverse operator \n-0000e010: 696e 7465 7266 6163 652e 3c2f 6469 763e interface.
    \n-0000e020: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    solverfactor\n-0000e080: 792e 6868 3c2f 613e 3c2f 6469 763e 3c2f y.hh
    .
    .<\n-0000e170: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n-0000e180: 223e 5465 6d70 6c61 7465 7320 6368 6172 \">Templates char\n-0000e190: 6163 7465 7269 7a69 6e67 2074 6865 2074 acterizing the t\n-0000e1a0: 7970 6520 6f66 2061 2073 6f6c 7665 722e ype of a solver.\n-0000e1b0: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .Dune::BCRSMatr\n-0000e2d0: 6978 266c 743b 2046 6965 6c64 4d61 7472 ix< FieldMatr\n-0000e2e0: 6978 266c 743b 2054 2c20 6e2c 206d 2026 ix< T, n, m &\n-0000e2f0: 6774 3b2c 2041 2026 6774 3b20 6d61 7472 gt;, A > matr\n-0000e300: 6978 5f74 7970 653c 2f64 6976 3e3c 6469 ix_type
    \n-0000e320: 3c62 3e44 6566 696e 6974 696f 6e3c 2f62 Definition spqr.hh:71
    .
    <\n-0000e390: 6469 7620 636c 6173 733d 2274 746e 616d div class=\"ttnam\n-0000e3a0: 6522 3e3c 6120 6872 6566 3d22 6130 3032 e\">Dune\n-0000e3e0: 3a3a 5350 5152 266c 743b 2042 4352 534d ::SPQR< BCRSM\n-0000e3f0: 6174 7269 7826 6c74 3b20 4669 656c 644d atrix< FieldM\n-0000e400: 6174 7269 7826 6c74 3b20 542c 206e 2c20 atrix< T, n, \n-0000e410: 6d20 2667 743b 2c20 4120 2667 743b 2026 m >, A > &\n-0000e420: 6774 3b3a 3a7e 5350 5152 3c2f 613e 3c2f gt;::~SPQR
    virtual \n-0000e450: 7e53 5051 5228 293c 2f64 6976 3e3c 6469 ~SPQR()
    \n-0000e470: 4465 7374 7275 6374 6f72 2e3c 2f64 6976 Destructor.
    Definitio\n-0000e4a0: 6e3c 2f62 3e20 7370 7172 2e68 683a 3134 n spqr.hh:14\n-0000e4b0: 373c 2f64 6976 3e3c 2f64 6976 3e0a 3c64 7
    .
    .
    virtu\n-0000e790: 616c 2053 6f6c 7665 7243 6174 6567 6f72 al SolverCategor\n-0000e7a0: 793a 3a43 6174 6567 6f72 7920 6361 7465 y::Category cate\n-0000e7b0: 676f 7279 2829 2063 6f6e 7374 3c2f 6469 gory() const
    Category of\n-0000e7e0: 2074 6865 2073 6f6c 7665 7220 2873 6565 the solver (see\n-0000e7f0: 2053 6f6c 7665 7243 6174 6567 6f72 793a SolverCategory:\n-0000e800: 3a43 6174 6567 6f72 7929 3c2f 6469 763e :Category)
    \n-0000e810: 3c64 6976 2063 6c61 7373 3d22 7474 6465
    Definition\n-0000e830: 3c2f 623e 2073 7071 722e 6868 3a38 323c spqr.hh:82<\n-0000e840: 2f64 6976 3e3c 2f64 6976 3e0a 3c64 6976 /div>
    .
    D\n-0000e8e0: 756e 653a 3a53 5051 5226 6c74 3b20 4243 une::SPQR< BC\n-0000e8f0: 5253 4d61 7472 6978 266c 743b 2046 6965 RSMatrix< Fie\n-0000e900: 6c64 4d61 7472 6978 266c 743b 2054 2c20 ldMatrix< T, \n-0000e910: 6e2c 206d 2026 6774 3b2c 2041 2026 6774 n, m >, A >\n-0000e920: 3b20 2667 743b 3a3a 6765 7449 6e74 6572 ; >::getInter\n-0000e930: 6e61 6c4d 6174 7269 783c 2f61 3e3c 2f64 nalMatrix
    SPQRMatri\n-0000e960: 7820 2661 6d70 3b20 6765 7449 6e74 6572 x & getInter\n-0000e970: 6e61 6c4d 6174 7269 7828 293c 2f64 6976 nalMatrix()
    Return the c\n-0000e9a0: 6f6c 756d 6e20 636f 7070 7265 7373 6564 olumn coppressed\n-0000e9b0: 206d 6174 7269 782e 3c2f 6469 763e 3c64 matrix.
    Definition spqr.hh:256
    .
    vo\n-0000eb00: 6964 2073 6574 4d61 7472 6978 2863 6f6e id setMatrix(con\n-0000eb10: 7374 204d 6174 7269 7820 2661 6d70 3b6d st Matrix &m\n-0000eb20: 6174 7269 7829 3c2f 6469 763e 3c64 6976 atrix)
    I\n-0000eb40: 6e69 7469 616c 697a 6520 6461 7461 2066 nitialize data f\n-0000eb50: 726f 6d20 6769 7665 6e20 6d61 7472 6978 rom given matrix\n-0000eb60: 2e3c 2f64 6976 3e3c 6469 7620 636c 6173 .
    Def\n-0000eb80: 696e 6974 696f 6e3c 2f62 3e20 7370 7172 inition spqr\n-0000eb90: 2e68 683a 3230 303c 2f64 6976 3e3c 2f64 .hh:200
    .
    Dune::SPQ\n-0000ec40: 5226 6c74 3b20 4243 5253 4d61 7472 6978 R< BCRSMatrix\n-0000ec50: 266c 743b 2046 6965 6c64 4d61 7472 6978 < FieldMatrix\n-0000ec60: 266c 743b 2054 2c20 6e2c 206d 2026 6774 < T, n, m >\n-0000ec70: 3b2c 2041 2026 6774 3b20 2667 743b 3a3a ;, A > >::\n-0000ec80: 4d61 7472 6978 496e 6974 6961 6c69 7a65 MatrixInitialize\n-0000ec90: 723c 2f61 3e3c 2f64 6976 3e3c 6469 7620 r
    I\n-0000ecb0: 5354 4c3a 3a49 6d70 6c3a 3a42 4343 534d STL::Impl::BCCSM\n-0000ecc0: 6174 7269 7849 6e69 7469 616c 697a 6572 atrixInitializer\n-0000ecd0: 266c 743b 2042 4352 534d 6174 7269 7826 < BCRSMatrix&\n-0000ece0: 6c74 3b20 4669 656c 644d 6174 7269 7826 lt; FieldMatrix&\n-0000ecf0: 6c74 3b20 542c 206e 2c20 6d20 2667 743b lt; T, n, m >\n-0000ed00: 2c20 4120 2667 743b 2c20 696e 7420 2667 , A >, int &g\n-0000ed10: 743b 204d 6174 7269 7849 6e69 7469 616c t; MatrixInitial\n-0000ed20: 697a 6572 3c2f 6469 763e 3c64 6976 2063 izer
    Typ\n-0000ed40: 6520 6f66 2061 6e20 6173 736f 6369 6174 e of an associat\n-0000ed50: 6564 2069 6e69 7469 616c 697a 6572 2063 ed initializer c\n-0000ed60: 6c61 7373 2e3c 2f64 6976 3e3c 6469 7620 lass.
    Definition \n-0000ed90: 7370 7172 2e68 683a 3735 3c2f 6469 763e spqr.hh:75
    \n-0000eda0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    Dune::\n-0000ee40: 5350 5152 266c 743b 2042 4352 534d 6174 SPQR< BCRSMat\n-0000ee50: 7269 7826 6c74 3b20 4669 656c 644d 6174 rix< FieldMat\n-0000ee60: 7269 7826 6c74 3b20 542c 206e 2c20 6d20 rix< T, n, m \n-0000ee70: 2667 743b 2c20 4120 2667 743b 2026 6774 >, A > >\n-0000ee80: 3b3a 3a4d 6174 7269 783c 2f61 3e3c 2f64 ;::Matrix
    Dune::BCR\n-0000eeb0: 534d 6174 7269 7826 6c74 3b20 4669 656c SMatrix< Fiel\n-0000eec0: 644d 6174 7269 7826 6c74 3b20 542c 206e dMatrix< T, n\n-0000eed0: 2c20 6d20 2667 743b 2c20 4120 2667 743b , m >, A >\n-0000eee0: 204d 6174 7269 783c 2f64 6976 3e3c 6469 Matrix
    \n-0000ef00: 5468 6520 6d61 7472 6978 2074 7970 652e The matrix type.\n-0000ef10: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    Defi\n-0000ef30: 6e69 7469 6f6e 3c2f 623e 2073 7071 722e nition spqr.\n-0000ef40: 6868 3a37 303c 2f64 6976 3e3c 2f64 6976 hh:70
    .D\n-0000f070: 6566 6175 6c74 2063 6f6e 7374 7275 6374 efault construct\n-0000f080: 6f72 2e3c 2f64 6976 3e3c 6469 7620 636c or.
    D\n-0000f0a0: 6566 696e 6974 696f 6e3c 2f62 3e20 7370 efinition sp\n-0000f0b0: 7172 2e68 683a 3133 373c 2f64 6976 3e3c qr.hh:137
    <\n-0000f0c0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.\n-0000f180: 3c64 6976 2063 6c61 7373 3d22 7474 6465
    std::shared_\n-0000f1a0: 7074 7226 6c74 3b20 4475 6e65 3a3a 496e ptr< Dune::In\n-0000f1b0: 7665 7273 654f 7065 7261 746f 7226 6c74 verseOperator<\n-0000f1c0: 3b20 7479 7065 6e61 6d65 2044 756e 653a ; typename Dune:\n-0000f1d0: 3a54 7970 654c 6973 7445 6c65 6d65 6e74 :TypeListElement\n-0000f1e0: 266c 743b 2031 2c20 544c 2026 6774 3b3a < 1, TL >:\n-0000f1f0: 3a74 7970 652c 2074 7970 656e 616d 6520 :type, typename \n-0000f200: 4475 6e65 3a3a 5479 7065 4c69 7374 456c Dune::TypeListEl\n-0000f210: 656d 656e 7426 6c74 3b20 322c 2054 4c20 ement< 2, TL \n-0000f220: 2667 743b 3a3a 7479 7065 2026 6774 3b20 >::type > \n-0000f230: 2667 743b 206f 7065 7261 746f 7228 2928 > operator()(\n-0000f240: 544c 2c20 636f 6e73 7420 4d20 2661 6d70 TL, const M &\n-0000f250: 3b6d 6174 2c20 636f 6e73 7420 4475 6e65 ;mat, const Dune\n-0000f260: 3a3a 5061 7261 6d65 7465 7254 7265 6520 ::ParameterTree \n-0000f270: 2661 6d70 3b63 6f6e 6669 672c 2073 7464 &config, std\n-0000f280: 3a3a 656e 6162 6c65 5f69 665f 7426 6c74 ::enable_if_t<\n-0000f290: 3b20 6973 5661 6c69 6442 6c6f 636b 266c ; isValidBlock&l\n-0000f2a0: 743b 2074 7970 656e 616d 6520 4475 6e65 t; typename Dune\n-0000f2b0: 3a3a 5479 7065 4c69 7374 456c 656d 656e ::TypeListElemen\n-0000f2c0: 7426 6c74 3b20 312c 2054 4c20 2667 743b t< 1, TL >\n-0000f2d0: 3a3a 7479 7065 3a3a 626c 6f63 6b5f 7479 ::type::block_ty\n-0000f2e0: 7065 2026 6774 3b3a 3a76 616c 7565 2c20 pe >::value, \n-0000f2f0: 696e 7420 2667 743b 3d30 2920 636f 6e73 int >=0) cons\n-0000f300: 743c 2f64 6976 3e3c 6469 7620 636c 6173 t
    Def\n-0000f320: 696e 6974 696f 6e3c 2f62 3e20 7370 7172 inition spqr\n-0000f330: 2e68 683a 3333 393c 2f64 6976 3e3c 2f64 .hh:339
    .
    Dune::SPQ\n-0000f3e0: 5226 6c74 3b20 4243 5253 4d61 7472 6978 R< BCRSMatrix\n-0000f3f0: 266c 743b 2046 6965 6c64 4d61 7472 6978 < FieldMatrix\n-0000f400: 266c 743b 2054 2c20 6e2c 206d 2026 6774 < T, n, m >\n-0000f410: 3b2c 2041 2026 6774 3b20 2667 743b 3a3a ;, A > >::\n-0000f420: 6e61 6d65 3c2f 613e 3c2f 6469 763e 3c64 name
    const char * n\n-0000f450: 616d 6528 293c 2f64 6976 3e3c 6469 7620 ame()
    Ge\n-0000f470: 7420 6d65 7468 6f64 206e 616d 652e 3c2f t method name.
    Defini\n-0000f4a0: 7469 6f6e 3c2f 623e 2073 7071 722e 6868 tion spqr.hh\n-0000f4b0: 3a32 3735 3c2f 6469 763e 3c2f 6469 763e :275
    \n-0000f4c0: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    R\n-0000f620: 6574 7572 6e20 7468 6520 6d61 7472 6978 eturn the matrix\n-0000f630: 2066 6163 746f 7269 7a61 7469 6f6e 2e3c factorization.<\n-0000f640: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n-0000f660: 6974 696f 6e3c 2f62 3e20 7370 7172 2e68 ition spqr.h\n-0000f670: 683a 3234 373c 2f64 6976 3e3c 2f64 6976 h:247
    .
    Dune::SPQR&\n-0000f720: 6c74 3b20 4243 5253 4d61 7472 6978 266c lt; BCRSMatrix&l\n-0000f730: 743b 2046 6965 6c64 4d61 7472 6978 266c t; FieldMatrix&l\n-0000f740: 743b 2054 2c20 6e2c 206d 2026 6774 3b2c t; T, n, m >,\n-0000f750: 2041 2026 6774 3b20 2667 743b 3a3a 7365 A > >::se\n-0000f760: 7456 6572 626f 7369 7479 3c2f 613e 3c2f tVerbosity
    void set\n-0000f790: 5665 7262 6f73 6974 7928 696e 7420 7629 Verbosity(int v)\n-0000f7a0: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    Sets th\n-0000f7c0: 6520 7665 7262 6f73 6974 7920 6c65 7665 e verbosity leve\n-0000f7d0: 6c20 666f 7220 7468 6520 736f 6c76 6572 l for the solver\n-0000f7e0: 2e3c 2f64 6976 3e3c 6469 7620 636c 6173 .
    Def\n-0000f800: 696e 6974 696f 6e3c 2f62 3e20 7370 7172 inition spqr\n-0000f810: 2e68 683a 3233 383c 2f64 6976 3e3c 2f64 .hh:238
    .
    Dune::SPQ\n-0000f8c0: 5226 6c74 3b20 4243 5253 4d61 7472 6978 R< BCRSMatrix\n-0000f8d0: 266c 743b 2046 6965 6c64 4d61 7472 6978 < FieldMatrix\n-0000f8e0: 266c 743b 2054 2c20 6e2c 206d 2026 6774 < T, n, m >\n-0000f8f0: 3b2c 2041 2026 6774 3b20 2667 743b 3a3a ;, A > >::\n-0000f900: 5350 5152 4d61 7472 6978 3c2f 613e 3c2f SPQRMatrix
    ISTL::Im\n-0000f930: 706c 3a3a 4243 4353 4d61 7472 6978 266c pl::BCCSMatrix&l\n-0000f940: 743b 2054 2c20 696e 7420 2667 743b 2053 t; T, int > S\n-0000f950: 5051 524d 6174 7269 783c 2f64 6976 3e3c PQRMatrix
    <\n-0000f960: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n-0000f970: 223e 5468 6520 636f 7272 6573 706f 6e64 \">The correspond\n-0000f980: 696e 6720 5375 7065 724c 5520 4d61 7472 ing SuperLU Matr\n-0000f990: 6978 2074 7970 652e 3c2f 6469 763e 3c64 ix type.
    Definition spqr.hh:73
    .
    \n-0000fa20: 3c64 6976 2063 6c61 7373 3d22 7474 6e61
    Dun\n-0000fa70: 653a 3a53 5051 5226 6c74 3b20 4243 5253 e::SPQR< BCRS\n-0000fa80: 4d61 7472 6978 266c 743b 2046 6965 6c64 Matrix< Field\n-0000fa90: 4d61 7472 6978 266c 743b 2054 2c20 6e2c Matrix< T, n,\n-0000faa0: 206d 2026 6774 3b2c 2041 2026 6774 3b20 m >, A > \n-0000fab0: 2667 743b 3a3a 6170 706c 793c 2f61 3e3c >::apply<\n-0000fac0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    virtual\n-0000fae0: 2076 6f69 6420 6170 706c 7928 646f 6d61 void apply(doma\n-0000faf0: 696e 5f74 7970 6520 2661 6d70 3b78 2c20 in_type &x, \n-0000fb00: 7261 6e67 655f 7479 7065 2026 616d 703b range_type &\n-0000fb10: 622c 2064 6f75 626c 6520 7265 6475 6374 b, double reduct\n-0000fb20: 696f 6e2c 2049 6e76 6572 7365 4f70 6572 ion, InverseOper\n-0000fb30: 6174 6f72 5265 7375 6c74 2026 616d 703b atorResult &\n-0000fb40: 7265 7329 3c2f 6469 763e 3c64 6976 2063 res)
    app\n-0000fb60: 6c79 2069 6e76 6572 7365 206f 7065 7261 ly inverse opera\n-0000fb70: 746f 722c 2077 6974 6820 6769 7665 6e20 tor, with given \n-0000fb80: 636f 6e76 6572 6765 6e63 6520 6372 6974 convergence crit\n-0000fb90: 6572 6961 2e3c 2f64 6976 3e3c 6469 7620 eria.
    Definition \n-0000fbc0: 7370 7172 2e68 683a 3139 313c 2f64 6976 spqr.hh:191
    .
    Dune:\n-0000fc70: 3a53 5051 5226 6c74 3b20 4243 5253 4d61 :SPQR< BCRSMa\n-0000fc80: 7472 6978 266c 743b 2046 6965 6c64 4d61 trix< FieldMa\n-0000fc90: 7472 6978 266c 743b 2054 2c20 6e2c 206d trix< T, n, m\n-0000fca0: 2026 6774 3b2c 2041 2026 6774 3b20 2667 >, A > &g\n-0000fcb0: 743b 3a3a 6672 6565 3c2f 613e 3c2f 6469 t;::free
    void free(\n-0000fce0: 293c 2f64 6976 3e3c 6469 7620 636c 6173 )
    Free a\n-0000fd00: 6c6c 6f63 6174 6564 2073 7061 6365 2e3c llocated space.<\n-0000fd10: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n-0000fd30: 6974 696f 6e3c 2f62 3e20 7370 7172 2e68 ition spqr.h\n-0000fd40: 683a 3236 353c 2f64 6976 3e3c 2f64 6976 h:265
    .
    \n-0000fe50: 5350 5152 2863 6f6e 7374 204d 6174 7269 SPQR(const Matri\n-0000fe60: 7820 2661 6d70 3b6d 6174 7269 782c 2063 x &matrix, c\n-0000fe70: 6f6e 7374 2050 6172 616d 6574 6572 5472 onst ParameterTr\n-0000fe80: 6565 2026 616d 703b 636f 6e66 6967 293c ee &config)<\n-0000fe90: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Construc\n-0000feb0: 7473 2074 6865 2053 5051 5220 736f 6c76 ts the SPQR solv\n-0000fec0: 6572 2e3c 2f64 6976 3e3c 6469 7620 636c er.
    D\n-0000fee0: 6566 696e 6974 696f 6e3c 2f62 3e20 7370 efinition sp\n-0000fef0: 7172 2e68 683a 3133 323c 2f64 6976 3e3c qr.hh:132
    <\n-0000ff00: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    Dune::\n-00010010: 426c 6f63 6b56 6563 746f 7226 6c74 3b20 BlockVector< \n-00010020: 4669 656c 6456 6563 746f 7226 6c74 3b20 FieldVector< \n-00010030: 542c 206e 2026 6774 3b2c 2074 7970 656e T, n >, typen\n-00010040: 616d 6520 7374 643a 3a61 6c6c 6f63 6174 ame std::allocat\n-00010050: 6f72 5f74 7261 6974 7326 6c74 3b20 4120 or_traits< A \n-00010060: 2667 743b 3a3a 7465 6d70 6c61 7465 2072 >::template r\n-00010070: 6562 696e 645f 616c 6c6f 6326 6c74 3b20 ebind_alloc< \n-00010080: 4669 656c 6456 6563 746f 7226 6c74 3b20 FieldVector< \n-00010090: 542c 206e 2026 6774 3b20 2667 743b 2026 T, n > > &\n-000100a0: 6774 3b20 7261 6e67 655f 7479 7065 3c2f gt; range_type
    The type \n-000100d0: 6f66 2074 6865 2072 616e 6765 206f 6620 of the range of \n-000100e0: 7468 6520 736f 6c76 6572 2e3c 2f64 6976 the solver.
    Definitio\n-00010110: 6e3c 2f62 3e20 7370 7172 2e68 683a 3739 n spqr.hh:79\n-00010120: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .<\n-00010220: 6469 7620 636c 6173 733d 2274 7464 6563 div class=\"ttdec\n-00010230: 6922 3e76 6f69 6420 7365 7453 7562 4d61 i\">void setSubMa\n-00010240: 7472 6978 2863 6f6e 7374 204d 6174 7269 trix(const Matri\n-00010250: 7820 2661 6d70 3b6d 6174 7269 782c 2063 x &matrix, c\n-00010260: 6f6e 7374 2053 2026 616d 703b 726f 7749 onst S &rowI\n-00010270: 6e64 6578 5365 7429 3c2f 6469 763e 3c64 ndexSet)
    Definition spqr.hh:217
    .
    \n-000103c0: 4475 6e65 3a3a 426c 6f63 6b56 6563 746f Dune::BlockVecto\n-000103d0: 7226 6c74 3b20 4669 656c 6456 6563 746f r< FieldVecto\n-000103e0: 7226 6c74 3b20 542c 206d 2026 6774 3b2c r< T, m >,\n-000103f0: 2074 7970 656e 616d 6520 7374 643a 3a61 typename std::a\n-00010400: 6c6c 6f63 6174 6f72 5f74 7261 6974 7326 llocator_traits&\n-00010410: 6c74 3b20 4120 2667 743b 3a3a 7465 6d70 lt; A >::temp\n-00010420: 6c61 7465 2072 6562 696e 645f 616c 6c6f late rebind_allo\n-00010430: 6326 6c74 3b20 4669 656c 6456 6563 746f c< FieldVecto\n-00010440: 7226 6c74 3b20 542c 206d 2026 6774 3b20 r< T, m > \n-00010450: 2667 743b 2026 6774 3b20 646f 6d61 696e > > domain\n-00010460: 5f74 7970 653c 2f64 6976 3e3c 6469 7620 _type
    Th\n-00010480: 6520 7479 7065 206f 6620 7468 6520 646f e type of the do\n-00010490: 6d61 696e 206f 6620 7468 6520 736f 6c76 main of the solv\n-000104a0: 6572 2e3c 2f64 6976 3e3c 6469 7620 636c er.
    D\n-000104c0: 6566 696e 6974 696f 6e3c 2f62 3e20 7370 efinition sp\n-000104d0: 7172 2e68 683a 3737 3c2f 6469 763e 3c2f qr.hh:77
    .
    <\n-00010540: 6120 6872 6566 3d22 6130 3032 3333 2e68 a href=\"a00233.h\n-00010550: 746d 6c23 6761 6539 6366 6430 3932 6630 tml#gae9cfd092f0\n-00010560: 6561 3965 6361 3131 6537 3831 3038 3162 ea9eca11e781081b\n-00010570: 6631 6236 3666 223e 4475 6e65 3a3a 5350 f1b66f\">Dune::SP\n-00010580: 5152 266c 743b 2042 4352 534d 6174 7269 QR< BCRSMatri\n-00010590: 7826 6c74 3b20 4669 656c 644d 6174 7269 x< FieldMatri\n-000105a0: 7826 6c74 3b20 542c 206e 2c20 6d20 2667 x< T, n, m &g\n-000105b0: 743b 2c20 4120 2667 743b 2026 6774 3b3a t;, A > >:\n-000105c0: 3a61 7070 6c79 3c2f 613e 3c2f 6469 763e :apply
    \n-000105d0: 3c64 6976 2063 6c61 7373 3d22 7474 6465
    virtual void\n-000105f0: 2061 7070 6c79 2864 6f6d 6169 6e5f 7479 apply(domain_ty\n-00010600: 7065 2026 616d 703b 782c 2072 616e 6765 pe &x, range\n-00010610: 5f74 7970 6520 2661 6d70 3b62 2c20 496e _type &b, In\n-00010620: 7665 7273 654f 7065 7261 746f 7252 6573 verseOperatorRes\n-00010630: 756c 7420 2661 6d70 3b72 6573 293c 2f64 ult &res)
    Apply inve\n-00010660: 7273 6520 6f70 6572 6174 6f72 2c2e 3c2f rse operator,.
    Defini\n-00010690: 7469 6f6e 3c2f 623e 2073 7071 722e 6868 tion spqr.hh\n-000106a0: 3a31 3535 3c2f 6469 763e 3c2f 6469 763e :155
    \n-000106b0: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    \n-000107a0: 3c64 6976 2063 6c61 7373 3d22 7474 6465
    void setOpti\n-000107c0: 6f6e 2875 6e73 6967 6e65 6420 696e 7420 on(unsigned int \n-000107d0: 6f70 7469 6f6e 2c20 646f 7562 6c65 2076 option, double v\n-000107e0: 616c 7565 293c 2f64 6976 3e3c 6469 7620 alue)
    Definition \n-00010810: 7370 7172 2e68 683a 3139 363c 2f64 6976 spqr.hh:196
    .
    Dune:\n-000108c0: 3a53 5051 5226 6c74 3b20 4243 5253 4d61 :SPQR< BCRSMa\n-000108d0: 7472 6978 266c 743b 2046 6965 6c64 4d61 trix< FieldMa\n-000108e0: 7472 6978 266c 743b 2054 2c20 6e2c 206d trix< T, n, m\n-000108f0: 2026 6774 3b2c 2041 2026 6774 3b20 2667 >, A > &g\n-00010900: 743b 3a3a 5350 5152 3c2f 613e 3c2f 6469 t;::SPQR
    SPQR(const\n-00010930: 204d 6174 7269 7820 2661 6d70 3b6d 6174 Matrix &mat\n-00010940: 7269 782c 2069 6e74 2076 6572 626f 7365 rix, int verbose\n-00010950: 3d30 293c 2f64 6976 3e3c 6469 7620 636c =0)
    Cons\n-00010970: 7472 7563 7420 6120 736f 6c76 6572 206f truct a solver o\n-00010980: 626a 6563 7420 6672 6f6d 2061 2042 4352 bject from a BCR\n-00010990: 534d 6174 7269 782e 3c2f 6469 763e 3c64 SMatrix.
    Definition spqr.hh:95
    .
    \n-00010a20: 3c64 6976 2063 6c61 7373 3d22 7474 6e61
    Ma\n-00010a90: 7472 6978 2026 616d 703b 206d 6174 3c2f trix & mat
    Defini\n-00010ac0: 7469 6f6e 3c2f 623e 206d 6174 7269 786d tion matrixm\n-00010ad0: 6174 7269 782e 6868 3a33 3437 3c2f 6469 atrix.hh:347
    .
    \n-00010b20: 3c61 2068 7265 663d 2261 3030 3234 392e Dune
    Defini\n-00010b60: 7469 6f6e 3c2f 623e 2061 6c6c 6f63 6174 tion allocat\n-00010b70: 6f72 2e68 683a 3131 3c2f 6469 763e 3c2f or.hh:11
    .
    Dune::get<\n-00010c20: 2f61 3e3c 2f64 6976 3e3c 6469 7620 636c /a>
    Pro\n-00010c40: 7065 7274 794d 6170 5479 7065 5365 6c65 pertyMapTypeSele\n-00010c50: 6374 6f72 266c 743b 2041 6d67 3a3a 5665 ctor< Amg::Ve\n-00010c60: 7274 6578 5669 7369 7465 6454 6167 2c20 rtexVisitedTag, \n-00010c70: 416d 673a 3a50 726f 7065 7274 6965 7347 Amg::PropertiesG\n-00010c80: 7261 7068 266c 743b 2047 2c20 416d 673a raph< G, Amg:\n-00010c90: 3a56 6572 7465 7850 726f 7065 7274 6965 :VertexPropertie\n-00010ca0: 732c 2045 502c 2056 4d2c 2045 4d20 2667 s, EP, VM, EM &g\n-00010cb0: 743b 2026 6774 3b3a 3a54 7970 6520 6765 t; >::Type ge\n-00010cc0: 7428 636f 6e73 7420 416d 673a 3a56 6572 t(const Amg::Ver\n-00010cd0: 7465 7856 6973 6974 6564 5461 6720 2661 texVisitedTag &a\n-00010ce0: 6d70 3b74 6167 2c20 416d 673a 3a50 726f mp;tag, Amg::Pro\n-00010cf0: 7065 7274 6965 7347 7261 7068 266c 743b pertiesGraph<\n-00010d00: 2047 2c20 416d 673a 3a56 6572 7465 7850 G, Amg::VertexP\n-00010d10: 726f 7065 7274 6965 732c 2045 502c 2056 roperties, EP, V\n-00010d20: 4d2c 2045 4d20 2667 743b 2026 616d 703b M, EM > &\n-00010d30: 6772 6170 6829 3c2f 6469 763e 3c64 6976 graph)
    <\n-00010d50: 623e 4465 6669 6e69 7469 6f6e 3c2f 623e b>Definition
    \n-00010d60: 2064 6570 656e 6465 6e63 792e 6868 3a32 dependency.hh:2\n-00010d70: 3933 3c2f 6469 763e 3c2f 6469 763e 0a3c 93
    .<\n-00010d80: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n-00010d90: 6964 3d22 6161 3031 3133 365f 6874 6d6c id=\"aa01136_html\n-00010da0: 223e 3c64 6976 2063 6c61 7373 3d22 7474 \">
    Definition \n-00010e10: 6d61 7472 6978 7574 696c 732e 6868 3a32 matrixutils.hh:2\n-00010e20: 3131 3c2f 6469 763e 3c2f 6469 763e 0a3c 11
    .<\n-00010e30: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n-00010e40: 6964 3d22 6161 3031 3135 325f 6874 6d6c id=\"aa01152_html\n-00010e50: 223e 3c64 6976 2063 6c61 7373 3d22 7474 \">
    Dune\n-00010e80: 3a3a 4243 5253 4d61 7472 6978 3c2f 613e ::BCRSMatrix\n-00010e90: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    A spars\n-00010eb0: 6520 626c 6f63 6b20 6d61 7472 6978 2077 e block matrix w\n-00010ec0: 6974 6820 636f 6d70 7265 7373 6564 2072 ith compressed r\n-00010ed0: 6f77 2073 746f 7261 6765 2e3c 2f64 6976 ow storage.
    Definitio\n-00010f00: 6e3c 2f62 3e20 6263 7273 6d61 7472 6978 n bcrsmatrix\n-00010f10: 2e68 683a 3436 363c 2f64 6976 3e3c 2f64 .hh:466
    .
    Dune::BCRSM\n-00010fc0: 6174 7269 783a 3a4d 3c2f 613e 3c2f 6469 atrix::M
    size_type \n-00010ff0: 4d28 2920 636f 6e73 743c 2f64 6976 3e3c M() const
    <\n-00011000: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n-00011010: 223e 6e75 6d62 6572 206f 6620 636f 6c75 \">number of colu\n-00011020: 6d6e 7320 2863 6f75 6e74 6564 2069 6e20 mns (counted in \n-00011030: 626c 6f63 6b73 293c 2f64 6976 3e3c 6469 blocks)
    \n-00011050: 3c62 3e44 6566 696e 6974 696f 6e3c 2f62 Definition bcrsmatrix.hh:\n-00011070: 3139 3738 3c2f 6469 763e 3c2f 6469 763e 1978
    \n-00011080: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    <\n-00011130: 6469 7620 636c 6173 733d 2274 7464 6563 div class=\"ttdec\n-00011140: 6922 3e73 697a 655f 7479 7065 204e 2829 i\">size_type N()\n-00011150: 2063 6f6e 7374 3c2f 6469 763e 3c64 6976 const
    n\n-00011170: 756d 6265 7220 6f66 2072 6f77 7320 2863 umber of rows (c\n-00011180: 6f75 6e74 6564 2069 6e20 626c 6f63 6b73 ounted in blocks\n-00011190: 293c 2f64 6976 3e3c 6469 7620 636c 6173 )
    Def\n-000111b0: 696e 6974 696f 6e3c 2f62 3e20 6263 7273 inition bcrs\n-000111c0: 6d61 7472 6978 2e68 683a 3139 3732 3c2f matrix.hh:1972
    .
    Dune::Bl\n-00011230: 6f63 6b56 6563 746f 723c 2f61 3e3c 2f64 ockVector
    A vector o\n-00011260: 6620 626c 6f63 6b73 2077 6974 6820 6d65 f blocks with me\n-00011270: 6d6f 7279 206d 616e 6167 656d 656e 742e mory management.\n-00011280: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    Defi\n-000112a0: 6e69 7469 6f6e 3c2f 623e 2062 7665 6374 nition bvect\n-000112b0: 6f72 2e68 683a 3339 353c 2f64 6976 3e3c or.hh:395
    <\n-000112c0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>..
    Definition \n-00011470: 6f76 6572 6c61 7070 696e 6773 6368 7761 overlappingschwa\n-00011480: 727a 2e68 683a 3639 343c 2f64 6976 3e3c rz.hh:694
    <\n-00011490: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    Definition matrixutils.h\n-00011530: 683a 3237 3c2f 6469 763e 3c2f 6469 763e h:27
    \n-00011540: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    Du\n-00011590: 6e65 3a3a 496e 7665 7273 654f 7065 7261 ne::InverseOpera\n-000115a0: 746f 7252 6573 756c 743c 2f61 3e3c 2f64 torResult
    Statistics\n-000115d0: 2061 626f 7574 2074 6865 2061 7070 6c69 about the appli\n-000115e0: 6361 7469 6f6e 206f 6620 616e 2069 6e76 cation of an inv\n-000115f0: 6572 7365 206f 7065 7261 746f 722e 3c2f erse operator.
    Defini\n-00011620: 7469 6f6e 3c2f 623e 2073 6f6c 7665 722e tion solver.\n-00011630: 6868 3a34 383c 2f64 6976 3e3c 2f64 6976 hh:48
    .
    Dune::Inverse\n-000116e0: 4f70 6572 6174 6f72 5265 7375 6c74 3a3a OperatorResult::\n-000116f0: 6974 6572 6174 696f 6e73 3c2f 613e 3c2f iterations
    int iter\n-00011720: 6174 696f 6e73 3c2f 6469 763e 3c64 6976 ations
    N\n-00011740: 756d 6265 7220 6f66 2069 7465 7261 7469 umber of iterati\n-00011750: 6f6e 732e 3c2f 6469 763e 3c64 6976 2063 ons.
    \n-00011770: 4465 6669 6e69 7469 6f6e 3c2f 623e 2073 Definition s\n-00011780: 6f6c 7665 722e 6868 3a36 373c 2f64 6976 olver.hh:67
    .
    boo\n-00011870: 6c20 636f 6e76 6572 6765 643c 2f64 6976 l converged
    True if conv\n-000118a0: 6572 6765 6e63 6520 6372 6974 6572 696f ergence criterio\n-000118b0: 6e20 6861 7320 6265 656e 206d 6574 2e3c n has been met.<\n-000118c0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n-000118e0: 6974 696f 6e3c 2f62 3e20 736f 6c76 6572 ition solver\n-000118f0: 2e68 683a 3733 3c2f 6469 763e 3c2f 6469 .hh:73
    .
    <\n-00011970: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n-00011980: 223e 4162 7374 7261 6374 2062 6173 6520 \">Abstract base \n-00011990: 636c 6173 7320 666f 7220 616c 6c20 736f class for all so\n-000119a0: 6c76 6572 732e 3c2f 6469 763e 3c64 6976 lvers.
    <\n-000119c0: 623e 4465 6669 6e69 7469 6f6e 3c2f 623e b>Definition
    \n-000119d0: 2073 6f6c 7665 722e 6868 3a39 393c 2f64 solver.hh:99
    ..<\n-00011d60: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n-00011d70: 6964 3d22 6161 3032 3830 305f 6874 6d6c id=\"aa02800_html\n-00011d80: 223e 3c64 6976 2063 6c61 7373 3d22 7474 \">
    \n-00011de0: 4465 6669 6e69 7469 6f6e 3c2f 623e 2073 Definition s\n-00011df0: 6f6c 7665 7274 7970 652e 6868 3a31 363c olvertype.hh:16<\n-00011e00: 2f64 6976 3e3c 2f64 6976 3e0a 3c64 6976 /div>
    .
    D\n-00011ee0: 756e 653a 3a49 7344 6972 6563 7453 6f6c une::IsDirectSol\n-00011ef0: 7665 723a 3a76 616c 7565 3c2f 613e 3c2f ver::value
    @ value<\n-00011f20: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Whether \n-00011f40: 7468 6973 2069 7320 6120 6469 7265 6374 this is a direct\n-00011f50: 2073 6f6c 7665 722e 3c2f 6469 763e 3c64 solver.
    Definition solvertype.hh\n-00011f90: 3a32 343c 2f64 6976 3e3c 2f64 6976 3e0a :24
    .\n-00011fa0: 3c64 6976 2063 6c61 7373 3d22 7474 6322
    Dun\n-00011ff0: 653a 3a53 746f 7265 7343 6f6c 756d 6e43 e::StoresColumnC\n-00012000: 6f6d 7072 6573 7365 643c 2f61 3e3c 2f64 ompressed
    Definit\n-00012030: 696f 6e3c 2f62 3e20 736f 6c76 6572 7479 ion solverty\n-00012040: 7065 2e68 683a 3330 3c2f 6469 763e 3c2f pe.hh:30
    .
    <\n-000120d0: 6120 6872 6566 3d22 6130 3238 3034 2e68 a href=\"a02804.h\n-000120e0: 746d 6c23 6161 6130 3732 3235 3662 3638 tml#aaa072256b68\n-000120f0: 3030 6263 3030 6362 6331 6534 3635 6239 00bc00cbc1e465b9\n-00012100: 3631 6361 6661 6362 3732 3465 3138 6364 61cafacb724e18cd\n-00012110: 3839 6536 6366 3739 3765 6533 3230 3863 89e6cf797ee3208c\n-00012120: 3362 6330 3063 223e 4475 6e65 3a3a 5374 3bc00c\">Dune::St\n-00012130: 6f72 6573 436f 6c75 6d6e 436f 6d70 7265 oresColumnCompre\n-00012140: 7373 6564 3a3a 7661 6c75 653c 2f61 3e3c ssed::value<\n-00012150: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    @ value\n-00012170: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    whether\n-00012190: 2074 6865 2073 6f6c 7665 7220 696e 7465 the solver inte\n-000121a0: 726e 616c 6c79 2075 7365 7320 636f 6c75 rnally uses colu\n-000121b0: 6d6e 2063 6f6d 7072 6573 7365 6420 7374 mn compressed st\n-000121c0: 6f72 6167 653c 2f64 6976 3e3c 6469 7620 orage
    Definition \n-000121f0: 736f 6c76 6572 7479 7065 2e68 683a 3336 solvertype.hh:36\n-00012200: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .\n-00012230: 3c64 6976 2063 6c61 7373 3d22 7474 6e61 Use the SPQR pa\n-00012290: 636b 6167 6520 746f 2064 6972 6563 746c ckage to directl\n-000122a0: 7920 736f 6c76 6520 6c69 6e65 6172 2073 y solve linear s\n-000122b0: 7973 7465 6d73 20e2 8093 2065 6d70 7479 ystems ... empty\n-000122c0: 2064 6566 6175 6c74 2063 6c61 7373 2e3c default class.<\n-000122d0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n-000122f0: 6974 696f 6e3c 2f62 3e20 7370 7172 2e68 ition spqr.h\n-00012300: 683a 3438 3c2f 6469 763e 3c2f 6469 763e h:48
    \n-00012310: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    <\n-00012470: 212d 2d20 6672 6167 6d65 6e74 202d 2d3e !-- fragment -->\n-00012480: 3c2f 6469 763e 3c21 2d2d 2063 6f6e 7465
    ..
    .
    reparti\n+00000c40: 7469 6f6e 2e68 683c 2f64 6976 3e3c 2f64 tion.hh
    .
    .
    .<\n+00000c80: 6120 6872 6566 3d22 6130 3031 3937 2e68 a href=\"a00197.h\n+00000c90: 746d 6c22 3e47 6f20 746f 2074 6865 2064 tml\">Go to the d\n+00000ca0: 6f63 756d 656e 7461 7469 6f6e 206f 6620 ocumentation of \n+00000cb0: 7468 6973 2066 696c 652e 3c2f 613e 3c64 this file.
    \n+00000d20: 313c 2f73 7061 6e3e 3c73 7061 6e20 636c 1//\n+00000d40: 2053 5044 582d 4669 6c65 436f 7079 7269 SPDX-FileCopyri\n+00000d50: 6768 7454 6578 743a 2043 6f70 7972 6967 ghtText: Copyrig\n+00000d60: 6874 2028 4329 2044 554e 4520 5072 6f6a ht (C) DUNE Proj\n+00000d70: 6563 7420 636f 6e74 7269 6275 746f 7273 ect contributors\n+00000d80: 2c20 7365 6520 6669 6c65 204c 4943 454e , see file LICEN\n+00000d90: 5345 2e6d 6420 696e 206d 6f64 756c 6520 SE.md in module \n+00000da0: 726f 6f74 3c2f 7370 616e 3e3c 2f64 6976 root.
    2<\n+00000e00: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>// S\n+00000e20: 5044 582d 4c69 6365 6e73 652d 4964 656e PDX-License-Iden\n+00000e30: 7469 6669 6572 3a20 4c69 6365 6e73 6552 tifier: LicenseR\n+00000e40: 6566 2d47 504c 2d32 2e30 2d6f 6e6c 792d ef-GPL-2.0-only-\n+00000e50: 7769 7468 2d44 554e 452d 6578 6365 7074 with-DUNE-except\n+00000e60: 696f 6e3c 2f73 7061 6e3e 3c2f 6469 763e ion
    \n+00000e70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00000ea0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 3// -*\n+00000ee0: 2d20 7461 622d 7769 6474 683a 2034 3b20 - tab-width: 4; \n+00000ef0: 696e 6465 6e74 2d74 6162 732d 6d6f 6465 indent-tabs-mode\n+00000f00: 3a20 6e69 6c3b 2063 2d62 6173 6963 2d6f : nil; c-basic-o\n+00000f10: 6666 7365 743a 2032 202d 2a2d 3c2f 7370 ffset: 2 -*-
    .
    4// vi: set e\n+00000fa0: 7420 7473 3d34 2073 773d 3220 7374 733d t ts=4 sw=2 sts=\n+00000fb0: 323a 3c2f 7370 616e 3e3c 2f64 6976 3e0a 2:
    .\n+00000fc0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00001070: 6120 6964 3d22 6c30 3030 3036 2220 6e61 a id=\"l00006\" na\n+00001080: 6d65 3d22 6c30 3030 3036 223e 3c2f 613e me=\"l00006\">\n+00001090: 3c73 7061 6e20 636c 6173 733d 226c 696e 6#def\n+000010d0: 696e 6520 4455 4e45 5f49 5354 4c5f 5245 ine DUNE_ISTL_RE\n+000010e0: 5041 5254 4954 494f 4e5f 4848 3c2f 7370 PARTITION_HH
    .
    7 <\n+00001150: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+000011a0: 2020 383c 2f73 7061 6e3e 3c73 7061 6e20 8#include &l\n+000011d0: 743b 6361 7373 6572 7426 6774 3b3c 2f73 t;cassert>
    .
    9<\n+00001240: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n+00001250: 726f 6365 7373 6f72 223e 2369 6e63 6c75 rocessor\">#inclu\n+00001260: 6465 2026 6c74 3b6d 6170 2667 743b 3c2f de <map>
    .<\n+000012b0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000012c0: 6e6f 223e 2020 2031 303c 2f73 7061 6e3e no\"> 10\n+000012d0: 3c73 7061 6e20 636c 6173 733d 2270 7265 #incl\n+000012f0: 7564 6520 266c 743b 7574 696c 6974 7926 ude <utility&\n+00001300: 6774 3b3c 2f73 7061 6e3e 3c2f 6469 763e gt;
    \n+00001310: 0a3c 6469 7620 636c 6173 733d 226c 696e ..
    15// Works beca\n+000015d0: 7573 6520 5061 724d 4554 4953 2f4d 4554 use ParMETIS/MET\n+000015e0: 4953 2063 6865 636b 7320 7768 6574 6865 IS checks whethe\n+000015f0: 7220 636f 6d70 696c 6572 2069 7320 432b r compiler is C+\n+00001600: 2b20 616e 6420 6f74 6865 7277 6973 653c + and otherwise<\n+00001610: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00001630: 6120 6964 3d22 6c30 3030 3136 2220 6e61 a id=\"l00016\" na\n+00001640: 6d65 3d22 6c30 3030 3136 223e 3c2f 613e me=\"l00016\">\n+00001650: 3c73 7061 6e20 636c 6173 733d 226c 696e 16// does n\n+00001690: 6f74 2075 7365 2065 7874 6572 6e20 2671 ot use extern &q\n+000016a0: 756f 743b 4326 7175 6f74 3b2e 2054 6865 uot;C". The\n+000016b0: 7266 6f72 6520 6e6f 206e 6573 7465 6420 rfore no nested \n+000016c0: 6578 7465 726e 2026 7175 6f74 3b43 2671 extern "C&q\n+000016d0: 756f 743b 2077 696c 6c20 6265 2063 7265 uot; will be cre\n+000016e0: 6174 6564 3c2f 7370 616e 3e3c 2f64 6976 ated.
    17<\n+00001740: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>exte\n+00001760: 726e 3c2f 7370 616e 3e20 3c73 7061 6e20 rn "C&qu\n+00001790: 6f74 3b3c 2f73 7061 6e3e 3c2f 6469 763e ot;
    \n+000017a0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00001810: 6120 6964 3d22 6c30 3030 3139 2220 6e61 a id=\"l00019\" na\n+00001820: 6d65 3d22 6c30 3030 3139 223e 3c2f 613e me=\"l00019\">\n+00001830: 3c73 7061 6e20 636c 6173 733d 226c 696e 19#inc\n+00001870: 6c75 6465 2026 6c74 3b70 6172 6d65 7469 lude <parmeti\n+00001880: 732e 6826 6774 3b3c 2f73 7061 6e3e 3c2f s.h>.
    \n+000018e0: 3230 3c2f 7370 616e 3e7d 3c2f 6469 763e 20}
    \n+000018f0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00001920: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 21\n+00001960: 2365 6e64 6966 3c2f 7370 616e 3e3c 2f64 #endif.
    2\n+000019c0: 323c 2f73 7061 6e3e 203c 2f64 6976 3e0a 2
    .\n+000019d0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00001a00: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 23#\n+00001a40: 696e 636c 7564 6520 266c 743b 6475 6e65 include <dune\n+00001a50: 2f63 6f6d 6d6f 6e2f 7469 6d65 722e 6868 /common/timer.hh\n+00001a60: 2667 743b 3c2f 7370 616e 3e3c 2f64 6976 >.
    24<\n+00001ac0: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#include <du\n+00001af0: 6e65 2f63 6f6d 6d6f 6e2f 656e 756d 7365 ne/common/enumse\n+00001b00: 742e 6868 2667 743b 3c2f 7370 616e 3e3c t.hh><\n+00001b10: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00001b60: 2032 353c 2f73 7061 6e3e 3c73 7061 6e20 25#include &l\n+00001b90: 743b 6475 6e65 2f63 6f6d 6d6f 6e2f 7374 t;dune/common/st\n+00001ba0: 6473 7472 6561 6d73 2e68 6826 6774 3b3c dstreams.hh><\n+00001bb0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00001bd0: 6120 6964 3d22 6c30 3030 3236 2220 6e61 a id=\"l00026\" na\n+00001be0: 6d65 3d22 6c30 3030 3236 223e 3c2f 613e me=\"l00026\">\n+00001bf0: 3c73 7061 6e20 636c 6173 733d 226c 696e 26#inc\n+00001c30: 6c75 6465 2026 6c74 3b64 756e 652f 636f lude <dune/co\n+00001c40: 6d6d 6f6e 2f70 6172 616c 6c65 6c2f 6d70 mmon/parallel/mp\n+00001c50: 6974 7261 6974 732e 6868 2667 743b 3c2f itraits.hh>
    .<\n+00001ca0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00001cb0: 6e6f 223e 2020 2032 373c 2f73 7061 6e3e no\"> 27\n+00001cc0: 3c73 7061 6e20 636c 6173 733d 2270 7265 #incl\n+00001ce0: 7564 6520 266c 743b 6475 6e65 2f63 6f6d ude <dune/com\n+00001cf0: 6d6f 6e2f 7061 7261 6c6c 656c 2f63 6f6d mon/parallel/com\n+00001d00: 6d75 6e69 6361 746f 722e 6868 2667 743b municator.hh>\n+00001d10: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00001d30: 3c61 2069 643d 226c 3030 3032 3822 206e 28#in\n+00001d90: 636c 7564 6520 266c 743b 6475 6e65 2f63 clude <dune/c\n+00001da0: 6f6d 6d6f 6e2f 7061 7261 6c6c 656c 2f69 ommon/parallel/i\n+00001db0: 6e64 6578 7365 742e 6868 2667 743b 3c2f ndexset.hh>
    .<\n+00001e00: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00001e10: 6e6f 223e 2020 2032 393c 2f73 7061 6e3e no\"> 29
    \n+00001e20: 3c73 7061 6e20 636c 6173 733d 2270 7265 #incl\n+00001e40: 7564 6520 266c 743b 6475 6e65 2f63 6f6d ude <dune/com\n+00001e50: 6d6f 6e2f 7061 7261 6c6c 656c 2f69 6e64 mon/parallel/ind\n+00001e60: 6963 6573 7379 6e63 6572 2e68 6826 6774 icessyncer.hh>\n+00001e70: 3b3c 2f73 7061 6e3e 3c2f 6469 763e 0a3c ;
    .<\n+00001e80: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00001e90: 3e3c 6120 6964 3d22 6c30 3030 3330 2220 > 30#i\n+00001ef0: 6e63 6c75 6465 2026 6c74 3b64 756e 652f nclude <dune/\n+00001f00: 636f 6d6d 6f6e 2f70 6172 616c 6c65 6c2f common/parallel/\n+00001f10: 7265 6d6f 7465 696e 6469 6365 732e 6868 remoteindices.hh\n+00001f20: 2667 743b 3c2f 7370 616e 3e3c 2f64 6976 >.
    31<\n+00001f80: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#include <du\n+00001fb0: 6e65 2f63 6f6d 6d6f 6e2f 7261 6e67 6575 ne/common/rangeu\n+00001fc0: 7469 6c69 7469 6573 2e68 6826 6774 3b3c tilities.hh><\n+00001fd0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00001ff0: 6120 6964 3d22 6c30 3030 3332 2220 6e61 a id=\"l00032\" na\n+00002000: 6d65 3d22 6c30 3030 3332 223e 3c2f 613e me=\"l00032\">\n+00002010: 3c73 7061 6e20 636c 6173 733d 226c 696e 32
    ..
    34<\n+00002160: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n+00002170: 726f 6365 7373 6f72 223e 2369 6e63 6c75 rocessor\">#inclu\n+00002180: 6465 2026 6c74 3b3c 6120 636c 6173 733d de <dune/i\n+000021b0: 7374 6c2f 7061 616d 672f 6772 6170 682e stl/paamg/graph.\n+000021c0: 6868 3c2f 613e 2667 743b 3c2f 7370 616e hh>
    .
    \n+00002220: 2020 2033 353c 2f73 7061 6e3e 203c 2f64 35 .
    4\n+00002280: 343c 2f73 7061 6e3e 3c73 7061 6e20 636c 4na\n+000022a0: 6d65 7370 6163 6520 3c2f 7370 616e 3e3c mespace <\n+000022b0: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+000022c0: 5f6e 616d 6573 7061 6365 2220 6872 6566 _namespace\" href\n+000022d0: 3d22 6130 3032 3439 2e68 746d 6c22 3e44 =\"a00249.html\">D\n+000022e0: 756e 653c 2f61 3e3c 2f64 6976 3e0a 3c64 une
    .\n+00002300: 3c61 2069 643d 226c 3030 3034 3522 206e 45{
    ..<\n+000025a0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000025b0: 6e6f 223e 2020 2034 393c 2f73 7061 6e3e no\"> 49\n+000025c0: 2020 2020 3c73 7061 6e20 636c 6173 733d // pro\n+000025e0: 7669 6465 2074 6865 7365 2074 7970 6564 vide these typed\n+000025f0: 6566 733c 2f73 7061 6e3e 3c2f 6469 763e efs
    \n+00002600: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00002630: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 50\n+00002670: 2369 6620 4841 5645 5f50 4152 4d45 5449 #if HAVE_PARMETI\n+00002680: 5320 2661 6d70 3b26 616d 703b 2064 6566 S && def\n+00002690: 696e 6564 2852 4541 4c54 5950 4557 4944 ined(REALTYPEWID\n+000026a0: 5448 293c 2f73 7061 6e3e 3c2f 6469 763e TH)
    \n+000026b0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00002800: 6120 6964 3d22 6c30 3030 3532 2220 6e61 a id=\"l00052\" na\n+00002810: 6d65 3d22 6c30 3030 3532 223e 3c2f 613e me=\"l00052\">\n+00002820: 3c73 7061 6e20 636c 6173 733d 226c 696e 52#els\n+00002860: 653c 2f73 7061 6e3e 3c2f 6469 763e 0a3c e
    .<\n+00002870: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00002880: 3e3c 6120 6964 3d22 6c30 3030 3533 2220 > 5\n+00002900: 333c 2f61 3e3c 2f73 7061 6e3e 2020 2020 3 \n+00002910: 3c73 7061 6e20 636c 6173 733d 226b 6579 using real_t = \n+00002990: 666c 6f61 743b 3c2f 6469 763e 0a3c 6469 float;
    .<\n+000029b0: 6120 6964 3d22 6c30 3030 3534 2220 6e61 a id=\"l00054\" na\n+000029c0: 6d65 3d22 6c30 3030 3534 223e 3c2f 613e me=\"l00054\">\n+000029d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 54#end\n+00002a10: 6966 3c2f 7370 616e 3e3c 2f64 6976 3e0a if
    .\n+00002a20: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00002ab0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00002ac0: 6e6f 223e 2020 2035 363c 2f73 7061 6e3e no\"> 56\n+00002ad0: 3c73 7061 6e20 636c 6173 733d 2270 7265 #if H\n+00002af0: 4156 455f 5041 524d 4554 4953 2026 616d AVE_PARMETIS &am\n+00002b00: 703b 2661 6d70 3b20 6465 6669 6e65 6428 p;& defined(\n+00002b10: 4944 5854 5950 4557 4944 5448 293c 2f73 IDXTYPEWIDTH)
    .
    57 \n+00002b80: 2020 203c 7370 616e 2063 6c61 7373 3d22 using <\n+00002ba0: 2f73 7061 6e3e 3c61 2063 6c61 7373 3d22 /span>idx_t \n+00002c00: 3d20 3c61 2063 6c61 7373 3d22 636f 6465 = ::idx_t;.
    \n+00002cb0: 3538 3c2f 7370 616e 3e3c 7370 616e 2063 58#elif HAVE_P\n+00002ce0: 4152 4d45 5449 5320 2661 6d70 3b26 616d ARMETIS &&am\n+00002cf0: 703b 2064 6566 696e 6564 2848 4156 455f p; defined(HAVE_\n+00002d00: 5343 4f54 4348 5f4e 554d 5f54 5950 4529 SCOTCH_NUM_TYPE)\n+00002d10: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00002d30: 3c61 2069 643d 226c 3030 3035 3922 206e 59 usin\n+00002d90: 6720 3c2f 7370 616e 3e3c 6120 636c 6173 g idx_t = SCOTCH_Num;\n+00002e00: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00002e50: 2020 3630 3c2f 7370 616e 3e3c 7370 616e 60#elif HAVE\n+00002e80: 5f50 4152 4d45 5449 533c 2f73 7061 6e3e _PARMETIS\n+00002e90: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00002ee0: 2020 3631 3c2f 7370 616e 3e20 2020 203c 61 <\n+00002ef0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00002f00: 6f72 6422 3e75 7369 6e67 203c 2f73 7061 ord\">using idx_t = in\n+00002f70: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    62#else
    ..\n+00003140: 3c61 2069 643d 226c 3030 3036 3422 206e 64#en\n+000031a0: 6469 663c 2f73 7061 6e3e 3c2f 6469 763e dif
    \n+000031b0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00003210: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00003260: 2036 363c 2f73 7061 6e3e 203c 2f64 6976 66 .
    67<\n+000032c0: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+000032e0: 3c61 2069 643d 226c 3030 3036 3822 206e 68#if\n+00003340: 2048 4156 455f 4d50 493c 2f73 7061 6e3e HAVE_MPI\n+00003350: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000033a0: 2020 3832 3c2f 7370 616e 3e20 203c 7370 82 template<clas\n+000033f0: 733c 2f73 7061 6e3e 2047 2c20 3c73 7061 s G, class T\n+00003420: 312c 203c 7370 616e 2063 6c61 7373 3d22 1, class T2>.
    .
    83<\n+00003530: 2f73 7061 6e3e 2020 3c73 7061 6e20 636c /span> void f\n+000035b0: 696c 6c49 6e64 6578 5365 7448 6f6c 6573 illIndexSetHoles\n+000035c0: 3c2f 613e 283c 7370 616e 2063 6c61 7373 (const\n+000035e0: 3c2f 7370 616e 3e20 4726 616d 703b 2067 G& g\n+000035f0: 7261 7068 2c20 3c61 2063 6c61 7373 3d22 raph, Dune::OwnerOve\n+00003630: 726c 6170 436f 7079 436f 6d6d 756e 6963 rlapCopyCommunic\n+00003640: 6174 696f 6e26 6c74 3b54 312c 5432 2667 ation<T1,T2&g\n+00003650: 743b 3c2f 613e 2661 6d70 3b20 6f6f 636f t;& ooco\n+00003660: 6d6d 293c 2f64 6976 3e0a 3c64 6976 2063 mm)
    .
    84 \n+000036c0: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n+00003710: 2020 2038 353c 2f73 7061 6e3e 2020 2020 85 \n+00003720: 3c73 7061 6e20 636c 6173 733d 226b 6579 typedef typen\n+00003760: 616d 653c 2f73 7061 6e3e 203c 6120 636c ame Dune:\n+000037c0: 3a4f 776e 6572 4f76 6572 6c61 7043 6f70 :OwnerOverlapCop\n+000037d0: 7943 6f6d 6d75 6e69 6361 7469 6f6e 266c yCommunication&l\n+000037e0: 743b 5431 2c54 3226 6774 3b3a 3a50 6172 t;T1,T2>::Par\n+000037f0: 616c 6c65 6c49 6e64 6578 5365 743c 2f61 allelIndexSet IndexSet;.
    86<\n+00003860: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n+00003880: 7479 7065 6465 663c 2f73 7061 6e3e 203c typedef <\n+00003890: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+000038a0: 6f72 6422 3e74 7970 656e 616d 653c 2f73 ord\">typename IndexSet::L\n+000038c0: 6f63 616c 496e 6465 783a 3a41 7474 7269 ocalIndex::Attri\n+000038d0: 6275 7465 2041 7474 7269 6275 7465 3b3c bute Attribute;<\n+000038e0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00003930: 2038 373c 2f73 7061 6e3e 203c 2f64 6976 87 .
    88<\n+00003990: 2f73 7061 6e3e 2020 2020 496e 6465 7853 /span> IndexS\n+000039a0: 6574 2661 6d70 3b20 696e 6465 7853 6574 et& indexSet\n+000039b0: 203d 206f 6f63 6f6d 6d2e 3c61 2063 6c61 = oocomm.index\n+00003a10: 5365 743c 2f61 3e28 293b 3c2f 6469 763e Set();
    \n+00003a20: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00003c10: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00003c20: 6e6f 223e 2020 2039 303c 2f73 7061 6e3e no\"> 90\n+00003c30: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+00003c80: 2020 2039 313c 2f73 7061 6e3e 2020 2020 91 \n+00003c90: 7374 643a 3a73 697a 655f 7420 7375 6d3d std::size_t sum=\n+00003ca0: 302c 206e 6565 6465 6420 3d20 6772 6170 0, needed = grap\n+00003cb0: 682e 6e6f 5665 7274 6963 6573 2829 2d69 h.noVertices()-i\n+00003cc0: 6e64 6578 5365 742e 7369 7a65 2829 3b3c ndexSet.size();<\n+00003cd0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00003d20: 2039 323c 2f73 7061 6e3e 2020 2020 7374 92 st\n+00003d30: 643a 3a76 6563 746f 7226 6c74 3b73 7464 d::vector<std\n+00003d40: 3a3a 7369 7a65 5f74 2667 743b 206e 6565 ::size_t> nee\n+00003d50: 6465 6461 6c6c 286f 6f63 6f6d 6d2e 3c61 dedall(oocomm.c\n+00003db0: 6f6d 6d75 6e69 6361 746f 723c 2f61 3e28 ommunicator(\n+00003dc0: 292e 7369 7a65 2829 2c20 3029 3b3c 2f64 ).size(), 0);.
    9\n+00003e20: 333c 2f73 7061 6e3e 203c 2f64 6976 3e0a 3
    .\n+00003e30: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00004190: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000041a0: 6e6f 223e 2020 2039 373c 2f73 7061 6e3e no\"> 97\n+000041b0: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+00004200: 2020 2039 383c 2f73 7061 6e3e 2020 2020 98 \n+00004210: 3c73 7061 6e20 636c 6173 733d 226b 6579 if(sum==0).
    99<\n+00004290: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> // Nothing to \n+000042c0: 646f 3c2f 7370 616e 3e3c 2f64 6976 3e0a do
    .\n+000042d0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    101 .
    1\n+00004400: 3032 3c2f 7370 616e 3e20 2020 203c 7370 02 //Compute Max\n+00004430: 696d 756d 2047 6c6f 6261 6c20 496e 6465 imum Global Inde\n+00004440: 783c 2f73 7061 6e3e 3c2f 6469 763e 0a3c x
    .<\n+00004450: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00004460: 3e3c 6120 6964 3d22 6c30 3031 3033 2220 > 103 T1 maxgi=\n+000044b0: 303b 3c2f 6469 763e 0a3c 6469 7620 636c 0;
    .
    104 \n+00004510: 203c 7370 616e 2063 6c61 7373 3d22 6b65 auto end = indexSe\n+00004540: 742e 656e 6428 293b 3c2f 6469 763e 0a3c t.end();
    .<\n+00004550: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00004560: 3e3c 6120 6964 3d22 6c30 3031 3035 2220 > 105 for(auto it\n+000045f0: 203d 2069 6e64 6578 5365 742e 6265 6769 = indexSet.begi\n+00004600: 6e28 293b 2069 7420 213d 2065 6e64 3b20 n(); it != end; \n+00004610: 2b2b 6974 293c 2f64 6976 3e0a 3c64 6976 ++it)
    .<\n+00004650: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00004660: 6e6f 223e 2020 3130 363c 2f73 7061 6e3e no\"> 106\n+00004670: 2020 2020 2020 6d61 7867 693d 7374 643a maxgi=std:\n+00004680: 3a6d 6178 286d 6178 6769 2c69 742d 2667 :max(maxgi,it-&g\n+00004690: 743b 676c 6f62 616c 2829 293b 3c2f 6469 t;global());.
    107\n+000046f0: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+00004700: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00004710: 3e3c 6120 6964 3d22 6c30 3031 3038 2220 > 108 //P\n+00004770: 726f 6365 7373 2070 2063 7265 6174 6573 rocess p creates\n+00004780: 2067 6c6f 6261 6c20 696e 6469 6365 7320 global indices \n+00004790: 636f 6e73 6563 7574 6976 656c 793c 2f73 consecutively
    .
    109 \n+00004800: 2020 203c 7370 616e 2063 6c61 7373 3d22 //start\n+00004820: 696e 6720 6174 6d61 7867 692b 5c73 756d ing atmaxgi+\\sum\n+00004830: 5f7b 693d 317d 5e70 206e 6565 6465 6461 _{i=1}^p neededa\n+00004840: 6c6c 5b69 5d3c 2f73 7061 6e3e 3c2f 6469 ll[i].
    110\n+000048a0: 3c2f 7370 616e 3e20 2020 203c 7370 616e // All created \n+000048d0: 696e 6469 6365 7320 6172 6520 6f77 6e65 indices are owne\n+000048e0: 6420 6279 2074 6865 2070 726f 6365 7373 d by the process\n+000048f0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00004910: 3c61 2069 643d 226c 3030 3131 3122 206e 111 maxgi=ooco\n+00004960: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+000049c0: 3c2f 613e 2829 2e6d 6178 286d 6178 6769 ().max(maxgi\n+000049d0: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    112 \n+00004a30: 202b 2b6d 6178 6769 3b20 203c 7370 616e ++maxgi; //Sart with the\n+00004a60: 206e 6578 7420 6672 6565 2069 6e64 6578 next free index\n+00004a70: 2e3c 2f73 7061 6e3e 3c2f 6469 763e 0a3c .
    .<\n+00004a80: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00004a90: 3e3c 6120 6964 3d22 6c30 3031 3133 2220 > 113
    .
    114 \n+00004b30: 2020 203c 7370 616e 2063 6c61 7373 3d22 for\n+00004b50: 3c2f 7370 616e 3e28 3c73 7061 6e20 636c (int i=0\n+00004b80: 3b20 6926 6c74 3b6f 6f63 6f6d 6d2e 3c61 ; i<oocomm.c\n+00004be0: 6f6d 6d75 6e69 6361 746f 723c 2f61 3e28 ommunicator(\n+00004bf0: 292e 7261 6e6b 2829 3b20 2b2b 6929 3c2f ).rank(); ++i).
    1\n+00004c50: 3135 3c2f 7370 616e 3e20 2020 2020 206d 15 m\n+00004c60: 6178 6769 3d6d 6178 6769 2b6e 6565 6465 axgi=maxgi+neede\n+00004c70: 6461 6c6c 5b69 5d3b 2020 203c 7370 616e dall[i]; // TODO: make t\n+00004ca0: 6869 7320 6d6f 7265 2067 656e 6572 6963 his more generic\n+00004cb0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00004cd0: 3c61 2069 643d 226c 3030 3131 3622 206e 116
    .
    117 \n+00004d70: 2020 3c73 7061 6e20 636c 6173 733d 2263 // Store\n+00004d90: 2074 6865 2067 6c6f 6261 6c20 696e 6465 the global inde\n+00004da0: 7820 696e 666f 726d 6174 696f 6e20 666f x information fo\n+00004db0: 7220 7265 7061 6972 696e 6720 7468 6520 r repairing the \n+00004dc0: 7265 6d6f 7465 2069 6e64 6578 2069 6e66 remote index inf\n+00004dd0: 6f72 6d61 7469 6f6e 3c2f 7370 616e 3e3c ormation<\n+00004de0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00004e30: 3131 383c 2f73 7061 6e3e 2020 2020 7374 118 st\n+00004e40: 643a 3a6d 6170 266c 743b 696e 742c 534c d::map<int,SL\n+00004e50: 4c69 7374 266c 743b 7374 643a 3a70 6169 List<std::pai\n+00004e60: 7226 6c74 3b54 312c 4174 7472 6962 7574 r<T1,Attribut\n+00004e70: 6526 6774 3b20 2667 743b 2026 6774 3b20 e> > > \n+00004e80: 676c 6f62 616c 496e 6469 6365 733b 3c2f globalIndices;.
    1\n+00004ee0: 3139 3c2f 7370 616e 3e20 2020 2073 746f 19 sto\n+00004ef0: 7265 476c 6f62 616c 496e 6469 6365 734f reGlobalIndicesO\n+00004f00: 6652 656d 6f74 6549 6e64 6963 6573 2867 fRemoteIndices(g\n+00004f10: 6c6f 6261 6c49 6e64 6963 6573 2c20 6f6f lobalIndices, oo\n+00004f20: 636f 6d6d 2e3c 6120 636c 6173 733d 2263 comm.remoteIndi\n+00004f80: 6365 733c 2f61 3e28 2929 3b3c 2f64 6976 ces());.
    120<\n+00004fe0: 2f73 7061 6e3e 2020 2020 696e 6465 7853 /span> indexS\n+00004ff0: 6574 2e62 6567 696e 5265 7369 7a65 2829 et.beginResize()\n+00005000: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00005050: 2020 3132 313c 2f73 7061 6e3e 203c 2f64 121 .
    12\n+000050b0: 323c 2f73 7061 6e3e 2020 2020 3c73 7061 2 for\n+000050e0: 283c 7370 616e 2063 6c61 7373 3d22 6b65 (auto vertex = grap\n+00005110: 682e 6265 6769 6e28 292c 2076 656e 643d h.begin(), vend=\n+00005120: 6772 6170 682e 656e 6428 293b 2076 6572 graph.end(); ver\n+00005130: 7465 7820 213d 2076 656e 643b 202b 2b76 tex != vend; ++v\n+00005140: 6572 7465 7829 207b 3c2f 6469 763e 0a3c ertex) {
    .<\n+00005150: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00005160: 3e3c 6120 6964 3d22 6c30 3031 3233 2220 > 123 c\n+000051c0: 6f6e 7374 3c2f 7370 616e 3e20 3c73 7061 onst typename IndexSet::Inde\n+00005200: 7850 6169 722a 2070 6169 723d 6c6f 6f6b xPair* pair=look\n+00005210: 7570 2e70 6169 7228 2a76 6572 7465 7829 up.pair(*vertex)\n+00005220: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00005270: 2020 3132 343c 2f73 7061 6e3e 2020 2020 124 \n+00005280: 2020 3c73 7061 6e20 636c 6173 733d 226b if(pair==0) {\n+000052b0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00005300: 2031 3235 3c2f 7370 616e 3e20 2020 2020 125 \n+00005310: 2020 203c 7370 616e 2063 6c61 7373 3d22 // No i\n+00005330: 6e64 6578 2079 6574 2c20 6164 6420 6e65 ndex yet, add ne\n+00005340: 7720 6f6e 653c 2f73 7061 6e3e 3c2f 6469 w one.
    126\n+000053a0: 3c2f 7370 616e 3e20 2020 2020 2020 2069 i\n+000053b0: 6e64 6578 5365 742e 6164 6428 6d61 7867 ndexSet.add(maxg\n+000053c0: 692c 203c 7370 616e 2063 6c61 7373 3d22 i, typenam\n+000053e0: 653c 2f73 7061 6e3e 2049 6e64 6578 5365 e IndexSe\n+000053f0: 743a 3a4c 6f63 616c 496e 6465 7828 2a76 t::LocalIndex(*v\n+00005400: 6572 7465 782c 203c 6120 636c 6173 733d ertex, OwnerO\n+00005480: 7665 726c 6170 436f 7079 4174 7472 6962 verlapCopyAttrib\n+00005490: 7574 6553 6574 3a3a 6f77 6e65 723c 2f61 uteSet::owner, false));
    .<\n+000054d0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000054e0: 3e3c 6120 6964 3d22 6c30 3031 3237 2220 > 127 ++max\n+00005530: 6769 3b3c 2f64 6976 3e0a 3c64 6976 2063 gi;
    .
    128 \n+00005590: 2020 2020 7d3c 2f64 6976 3e0a 3c64 6976 }
    .<\n+000055d0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000055e0: 6e6f 223e 2020 3132 393c 2f73 7061 6e3e no\"> 129\n+000055f0: 2020 2020 7d3c 2f64 6976 3e0a 3c64 6976 }
    .<\n+00005630: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00005640: 6e6f 223e 2020 3133 303c 2f73 7061 6e3e no\"> 130\n+00005650: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+000056a0: 2020 3133 313c 2f73 7061 6e3e 2020 2020 131 \n+000056b0: 696e 6465 7853 6574 2e65 6e64 5265 7369 indexSet.endResi\n+000056c0: 7a65 2829 3b3c 2f64 6976 3e0a 3c64 6976 ze();
    .<\n+00005700: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00005710: 6e6f 223e 2020 3133 323c 2f73 7061 6e3e no\"> 132\n+00005720: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+00005770: 2020 3133 333c 2f73 7061 6e3e 2020 2020 133 \n+00005780: 7265 7061 6972 4c6f 6361 6c49 6e64 6578 repairLocalIndex\n+00005790: 506f 696e 7465 7273 2867 6c6f 6261 6c49 Pointers(globalI\n+000057a0: 6e64 6963 6573 2c20 6f6f 636f 6d6d 2e3c ndices, oocomm.<\n+000057b0: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+000057c0: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n+000057d0: 2261 3031 3938 342e 6874 6d6c 2361 6365 \"a01984.html#ace\n+000057e0: 6530 3265 6464 3532 3261 6636 3762 6663 e02edd522af67bfc\n+000057f0: 3630 3130 3533 6261 3737 3664 6333 223e 601053ba776dc3\">\n+00005800: 7265 6d6f 7465 496e 6469 6365 733c 2f61 remoteIndices(), indexSet);<\n+00005820: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00005870: 3133 343c 2f73 7061 6e3e 203c 2f64 6976 134 .
    135<\n+000058d0: 2f73 7061 6e3e 2020 2020 6f6f 636f 6d6d /span> oocomm\n+000058e0: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .freeGlobalLook\n+00005940: 7570 3c2f 613e 2829 3b3c 2f64 6976 3e0a up();
    .\n+00005950: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00005a20: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00005a30: 3e3c 6120 6964 3d22 6c30 3031 3337 2220 > 137#i\n+00005a90: 6664 6566 2044 4542 5547 5f52 4550 4152 fdef DEBUG_REPAR\n+00005aa0: 543c 2f73 7061 6e3e 3c2f 6469 763e 0a3c T
    .<\n+00005ab0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00005ac0: 3e3c 6120 6964 3d22 6c30 3031 3338 2220 > 138 std::cout\n+00005b10: 266c 743b 266c 743b 3c73 7061 6e20 636c <<"Holes \n+00005b40: 6172 6520 6669 6c6c 6564 2126 7175 6f74 are filled!"\n+00005b50: 3b3c 2f73 7061 6e3e 266c 743b 266c 743b ;<<\n+00005b60: 7374 643a 3a65 6e64 6c3b 3c2f 6469 763e std::endl;
    \n+00005b70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00005ba0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 139 std::co\n+00005bd0: 7574 266c 743b 266c 743b 6f6f 636f 6d6d ut<<oocomm\n+00005be0: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .communicator().rank()<&\n+00005c50: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+00005c70: 7175 6f74 3b3a 2026 7175 6f74 3b3c 2f73 quot;: "<<ooco\n+00005c90: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.indexSet\n+00005cf0: 2829 266c 743b 266c 743b 7374 643a 3a65 ()<<std::e\n+00005d00: 6e64 6c3b 3c2f 6469 763e 0a3c 6469 7620 ndl;
    .
    140<\n+00005d60: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n+00005d70: 726f 6365 7373 6f72 223e 2365 6e64 6966 rocessor\">#endif\n+00005d80: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00005da0: 3c61 2069 643d 226c 3030 3134 3122 206e 141 }
    ..
    142\n+00005e40: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+00005e50: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00005e60: 3e3c 6120 6964 3d22 6c30 3031 3433 2220 > 143 names\n+00005ec0: 7061 6365 3c2f 7370 616e 3e3c 2f64 6976 pace.
    144<\n+00005f20: 2f73 7061 6e3e 2020 7b3c 2f64 6976 3e0a /span> {
    .\n+00005f30: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00005fc0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00005fd0: 6e6f 223e 2020 3134 363c 2f73 7061 6e3e no\"> 146\n+00005fe0: 2020 2020 3c73 7061 6e20 636c 6173 733d class \n+00006000: 3c2f 7370 616e 3e50 6172 6d65 7469 7344 ParmetisD\n+00006010: 756e 6549 6e64 6578 4d61 703c 2f64 6976 uneIndexMap.
    147<\n+00006070: 2f73 7061 6e3e 2020 2020 7b3c 2f64 6976 /span> {.
    148<\n+000060d0: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n+000060f0: 7075 626c 6963 3c2f 7370 616e 3e3a 3c2f public:.
    1\n+00006150: 3439 3c2f 7370 616e 3e20 2020 2020 203c 49 <\n+00006160: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00006170: 6f72 6422 3e74 656d 706c 6174 653c 2f73 ord\">template<cl\n+000061a0: 6173 733c 2f73 7061 6e3e 2047 7261 7068 ass Graph\n+000061b0: 2c20 3c73 7061 6e20 636c 6173 733d 226b , class OOComm><\n+000061e0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00006230: 3135 303c 2f73 7061 6e3e 2020 2020 2020 150 \n+00006240: 5061 726d 6574 6973 4475 6e65 496e 6465 ParmetisDuneInde\n+00006250: 784d 6170 283c 7370 616e 2063 6c61 7373 xMap(const\n+00006270: 3c2f 7370 616e 3e20 4772 6170 6826 616d Graph&am\n+00006280: 703b 2067 7261 7068 2c20 3c73 7061 6e20 p; graph, \n+000062a0: 636f 6e73 743c 2f73 7061 6e3e 204f 4f43 const OOC\n+000062b0: 6f6d 6d26 616d 703b 2063 6f6d 293b 3c2f omm& com);.
    1\n+00006310: 3531 3c2f 7370 616e 3e20 2020 2020 203c 51 <\n+00006320: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00006330: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int toParmetis(<\n+00006350: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00006360: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int i) con\n+00006390: 7374 3c2f 7370 616e 3e3c 2f64 6976 3e0a st
    .\n+000063a0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00006420: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00006430: 3e3c 6120 6964 3d22 6c30 3031 3533 2220 > 153 return duneToParmeti\n+000064b0: 735b 695d 3b3c 2f64 6976 3e0a 3c64 6976 s[i];
    .<\n+000064f0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00006500: 6e6f 223e 2020 3135 343c 2f73 7061 6e3e no\"> 154
    \n+00006510: 2020 2020 2020 7d3c 2f64 6976 3e0a 3c64 }
    .\n+00006530: 3c61 2069 643d 226c 3030 3135 3522 206e 155 int toL\n+000065a0: 6f63 616c 5061 726d 6574 6973 283c 7370 ocalParmetis(int i) const\n+000065f0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00006610: 3c61 2069 643d 226c 3030 3135 3622 206e 156 {
    .<\n+00006690: 6120 6964 3d22 6c30 3031 3537 2220 6e61 a id=\"l00157\" na\n+000066a0: 6d65 3d22 6c30 3031 3537 223e 3c2f 613e me=\"l00157\">\n+000066b0: 3c73 7061 6e20 636c 6173 733d 226c 696e 157 return\n+00006700: 2064 756e 6554 6f50 6172 6d65 7469 735b duneToParmetis[\n+00006710: 695d 2d62 6173 655f 3b3c 2f64 6976 3e0a i]-base_;
    .\n+00006720: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00006750: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 158 }.
    159<\n+000067d0: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> int\n+00006800: 206f 7065 7261 746f 725b 5d28 3c73 7061 operator[](int\n+00006830: 2069 293c 7370 616e 2063 6c61 7373 3d22 i) const<\n+00006850: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00006870: 6120 6964 3d22 6c30 3031 3630 2220 6e61 a id=\"l00160\" na\n+00006880: 6d65 3d22 6c30 3031 3630 223e 3c2f 613e me=\"l00160\">\n+00006890: 3c73 7061 6e20 636c 6173 733d 226c 696e 160 {
    .<\n+00006910: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00006920: 6e6f 223e 2020 3136 313c 2f73 7061 6e3e no\"> 161
    \n+00006930: 2020 2020 2020 2020 3c73 7061 6e20 636c return \n+00006960: 6475 6e65 546f 5061 726d 6574 6973 5b69 duneToParmetis[i\n+00006970: 5d3b 3c2f 6469 763e 0a3c 6469 7620 636c ];
    .
    162 \n+000069d0: 2020 207d 3c2f 6469 763e 0a3c 6469 7620 }
    .
    163 \n+00006a30: 2020 2020 203c 7370 616e 2063 6c61 7373 i\n+00006a50: 6e74 3c2f 7370 616e 3e20 746f 4475 6e65 nt toDune\n+00006a60: 283c 7370 616e 2063 6c61 7373 3d22 6b65 (int i) c\n+00006aa0: 6f6e 7374 3c2f 7370 616e 3e3c 2f64 6976 onst.
    164<\n+00006b00: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span> \n+00006b20: 2020 3c2f 7370 616e 3e7b 3c2f 6469 763e {
    \n+00006b30: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00006b60: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 165 return parmetisToD\n+00006bc0: 756e 655b 695d 3b3c 2f64 6976 3e0a 3c64 une[i];
    .\n+00006be0: 3c61 2069 643d 226c 3030 3136 3622 206e 166 }
    .\n+00006c30: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00006c60: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 167 std::v\n+00006c90: 6563 746f 7226 6c74 3b69 6e74 2667 743b ector<int>\n+00006ca0: 3a3a 7369 7a65 5f74 7970 6520 6e75 6d4f ::size_type numO\n+00006cb0: 664f 776e 5674 7828 293c 7370 616e 2063 fOwnVtx() \n+00006cd0: 636f 6e73 743c 2f73 7061 6e3e 3c2f 6469 const.
    168\n+00006d30: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 \n+00006d50: 2020 203c 2f73 7061 6e3e 7b3c 2f64 6976 {.
    169<\n+00006db0: 2f73 7061 6e3e 2020 2020 2020 2020 3c73 /span> return parmetisTo\n+00006df0: 4475 6e65 2e73 697a 6528 293b 3c2f 6469 Dune.size();.
    170\n+00006e50: 3c2f 7370 616e 3e20 2020 2020 207d 3c2f }.
    1\n+00006eb0: 3731 3c2f 7370 616e 3e20 2020 2020 203c 71 <\n+00006ec0: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+00006ed0: 5f74 7970 6564 6566 2220 6872 6566 3d22 _typedef\" href=\"\n+00006ee0: 6130 3032 3635 2e68 746d 6c23 6162 3162 a00265.html#ab1b\n+00006ef0: 3837 3965 6562 6435 6433 3237 3031 6337 879eebd5d32701c7\n+00006f00: 6235 3837 3962 6265 3634 6131 3722 3e4d b5879bbe64a17\">M\n+00006f10: 6574 6973 3a3a 6964 785f 743c 2f61 3e2a etis::idx_t*\n+00006f20: 2076 7478 4469 7374 2829 3c2f 6469 763e vtxDist()
    \n+00006f30: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00006f60: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 172 {.
    173\n+00006fe0: 3c2f 7370 616e 3e20 2020 2020 2020 203c <\n+00006ff0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00007000: 6f72 6466 6c6f 7722 3e72 6574 7572 6e3c ordflow\">return<\n+00007010: 2f73 7061 6e3e 2026 616d 703b 7674 7844 /span> &vtxD\n+00007020: 6973 745f 5b30 5d3b 3c2f 6469 763e 0a3c ist_[0];
    .<\n+00007030: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00007040: 3e3c 6120 6964 3d22 6c30 3031 3734 2220 > 174 }
    \n+00007090: 0a3c 6469 7620 636c 6173 733d 226c 696e ..
    176 \n+00007220: 203c 7370 616e 2063 6c61 7373 3d22 6b65 private:
    .<\n+00007260: 6120 6964 3d22 6c30 3031 3737 2220 6e61 a id=\"l00177\" na\n+00007270: 6d65 3d22 6c30 3031 3737 223e 3c2f 613e me=\"l00177\">\n+00007280: 3c73 7061 6e20 636c 6173 733d 226c 696e 177 int base\n+000072d0: 5f3b 3c2f 6469 763e 0a3c 6469 7620 636c _;
    .
    178 \n+00007330: 2020 2073 7464 3a3a 7665 6374 6f72 266c std::vector&l\n+00007340: 743b 696e 7426 6774 3b20 6475 6e65 546f t;int> duneTo\n+00007350: 5061 726d 6574 6973 3b3c 2f64 6976 3e0a Parmetis;
    .\n+00007360: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n+00007430: 2031 3830 3c2f 7370 616e 3e20 2020 2020 180 \n+00007440: 203c 7370 616e 2063 6c61 7373 3d22 636f // range \n+00007460: 6f66 2076 6572 7469 6365 7320 666f 7220 of vertices for \n+00007470: 7072 6f63 6573 736f 7220 693a 2076 7478 processor i: vtx\n+00007480: 6469 7374 5b69 5d20 746f 2076 7478 6469 dist[i] to vtxdi\n+00007490: 7374 5b69 2b31 5d20 2870 6172 6d65 7469 st[i+1] (parmeti\n+000074a0: 7320 676c 6f62 616c 293c 2f73 7061 6e3e s global)\n+000074b0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00007500: 2031 3831 3c2f 7370 616e 3e20 2020 2020 181 \n+00007510: 2073 7464 3a3a 7665 6374 6f72 266c 743b std::vector<\n+00007520: 4d65 7469 733a 3a69 6478 5f74 2667 743b Metis::idx_t>\n+00007530: 2076 7478 4469 7374 5f3b 3c2f 6469 763e vtxDist_;
    \n+00007540: 0a3c 6469 7620 636c 6173 733d 226c 696e ..
    185 \n+00007730: 2050 6172 6d65 7469 7344 756e 6549 6e64 ParmetisDuneInd\n+00007740: 6578 4d61 703a 3a50 6172 6d65 7469 7344 exMap::ParmetisD\n+00007750: 756e 6549 6e64 6578 4d61 7028 3c73 7061 uneIndexMap(const G\n+00007780: 2661 6d70 3b20 6772 6170 682c 203c 7370 & graph, const \n+000077b0: 4f4f 436f 6d6d 2661 6d70 3b20 6f6f 636f OOComm& ooco\n+000077c0: 6d6d 293c 2f64 6976 3e0a 3c64 6976 2063 mm)
    .
    186 \n+00007820: 2020 2020 3a20 6475 6e65 546f 5061 726d : duneToParm\n+00007830: 6574 6973 2867 7261 7068 2e6e 6f56 6572 etis(graph.noVer\n+00007840: 7469 6365 7328 292c 202d 3129 2c20 7674 tices(), -1), vt\n+00007850: 7844 6973 745f 286f 6f63 6f6d 6d2e 636f xDist_(oocomm.co\n+00007860: 6d6d 756e 6963 6174 6f72 2829 2e73 697a mmunicator().siz\n+00007870: 6528 292b 3129 3c2f 6469 763e 0a3c 6469 e()+1)
    .<\n+00007890: 6120 6964 3d22 6c30 3031 3837 2220 6e61 a id=\"l00187\" na\n+000078a0: 6d65 3d22 6c30 3031 3837 223e 3c2f 613e me=\"l00187\">\n+000078b0: 3c73 7061 6e20 636c 6173 733d 226c 696e 187 {
    .<\n+000078f0: 6120 6964 3d22 6c30 3031 3838 2220 6e61 a id=\"l00188\" na\n+00007900: 6d65 3d22 6c30 3031 3838 223e 3c2f 613e me=\"l00188\">\n+00007910: 3c73 7061 6e20 636c 6173 733d 226c 696e 188 int npes\n+00007960: 3d6f 6f63 6f6d 6d2e 636f 6d6d 756e 6963 =oocomm.communic\n+00007970: 6174 6f72 2829 2e73 697a 6528 292c 206d ator().size(), m\n+00007980: 7970 653d 6f6f 636f 6d6d 2e63 6f6d 6d75 ype=oocomm.commu\n+00007990: 6e69 6361 746f 7228 292e 7261 6e6b 2829 nicator().rank()\n+000079a0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+000079f0: 2020 3138 393c 2f73 7061 6e3e 203c 2f64 189 .
    19\n+00007a50: 303c 2f73 7061 6e3e 2020 2020 2020 3c73 0 typedef typenam\n+00007aa0: 653c 2f73 7061 6e3e 204f 4f43 6f6d 6d3a e OOComm:\n+00007ab0: 3a4f 776e 6572 5365 7420 4f77 6e65 7253 :OwnerSet OwnerS\n+00007ac0: 6574 3b3c 2f64 6976 3e0a 3c64 6976 2063 et;
    .
    191 <\n+00007b20: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00007b70: 3139 323c 2f73 7061 6e3e 2020 2020 2020 192 \n+00007b80: 3c73 7061 6e20 636c 6173 733d 226b 6579 int numOfOwnVtx\n+00007bb0: 3d30 3b3c 2f64 6976 3e0a 3c64 6976 2063 =0;
    .
    193 \n+00007c10: 2020 2020 3c73 7061 6e20 636c 6173 733d auto end = ooco\n+00007c40: 6d6d 2e69 6e64 6578 5365 7428 292e 656e mm.indexSet().en\n+00007c50: 6428 293b 3c2f 6469 763e 0a3c 6469 7620 d();
    .
    194 \n+00007cb0: 2020 2020 203c 7370 616e 2063 6c61 7373 f\n+00007cd0: 6f72 3c2f 7370 616e 3e28 3c73 7061 6e20 or(\n+00007cf0: 6175 746f 3c2f 7370 616e 3e20 696e 6465 auto inde\n+00007d00: 7820 3d20 6f6f 636f 6d6d 2e69 6e64 6578 x = oocomm.index\n+00007d10: 5365 7428 292e 6265 6769 6e28 293b 2069 Set().begin(); i\n+00007d20: 6e64 6578 2021 3d20 656e 643b 202b 2b69 ndex != end; ++i\n+00007d30: 6e64 6578 2920 7b3c 2f64 6976 3e0a 3c64 ndex) {
    .\n+00007d50: 3c61 2069 643d 226c 3030 3139 3522 206e 195 if (O\n+00007dc0: 776e 6572 5365 743a 3a63 6f6e 7461 696e wnerSet::contain\n+00007dd0: 7328 696e 6465 782d 2667 743b 6c6f 6361 s(index->loca\n+00007de0: 6c28 292e 6174 7472 6962 7574 6528 2929 l().attribute())\n+00007df0: 2920 7b3c 2f64 6976 3e0a 3c64 6976 2063 ) {
    .
    196 \n+00007e50: 2020 2020 2020 2020 6e75 6d4f 664f 776e numOfOwn\n+00007e60: 5674 782b 2b3b 3c2f 6469 763e 0a3c 6469 Vtx++;
    .<\n+00007e80: 6120 6964 3d22 6c30 3031 3937 2220 6e61 a id=\"l00197\" na\n+00007e90: 6d65 3d22 6c30 3031 3937 223e 3c2f 613e me=\"l00197\">\n+00007ea0: 3c73 7061 6e20 636c 6173 733d 226c 696e 197 }
    \n+00007ed0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00007f00: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 198 }.
    199\n+00007f80: 3c2f 7370 616e 3e20 2020 2020 2070 6172 par\n+00007f90: 6d65 7469 7354 6f44 756e 652e 7265 7369 metisToDune.resi\n+00007fa0: 7a65 286e 756d 4f66 4f77 6e56 7478 293b ze(numOfOwnVtx);\n+00007fb0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00008000: 2032 3030 3c2f 7370 616e 3e20 2020 2020 200 \n+00008010: 2073 7464 3a3a 7665 6374 6f72 266c 743b std::vector<\n+00008020: 696e 7426 6774 3b20 676c 6f62 616c 4e75 int> globalNu\n+00008030: 6d4f 6656 7478 286e 7065 7329 3b3c 2f64 mOfVtx(npes);.
    20\n+00008090: 313c 2f73 7061 6e3e 2020 2020 2020 3c73 1 // make this\n+000080c0: 206e 756d 6265 7220 6176 6169 6c61 626c number availabl\n+000080d0: 6520 746f 2061 6c6c 2070 726f 6365 7373 e to all process\n+000080e0: 6573 3c2f 7370 616e 3e3c 2f64 6976 3e0a es
    .\n+000080f0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    203 <\n+00008210: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00008260: 3230 343c 2f73 7061 6e3e 2020 2020 2020 204 \n+00008270: 3c73 7061 6e20 636c 6173 733d 226b 6579 int base=0;.
    205\n+000082f0: 3c2f 7370 616e 3e20 2020 2020 2076 7478 vtx\n+00008300: 4469 7374 5f5b 305d 203d 2030 3b3c 2f64 Dist_[0] = 0;.
    20\n+00008360: 363c 2f73 7061 6e3e 2020 2020 2020 3c73 6 for(int\n+000083b0: 3c2f 7370 616e 3e20 693d 303b 2069 266c i=0; i&l\n+000083c0: 743b 6e70 6573 3b20 692b 2b29 207b 3c2f t;npes; i++) {.
    2\n+00008420: 3037 3c2f 7370 616e 3e20 2020 2020 2020 07 \n+00008430: 203c 7370 616e 2063 6c61 7373 3d22 6b65 if (i<mype)\n+00008460: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    208 \n+000084c0: 2020 2020 2020 2062 6173 6520 2b3d 2067 base += g\n+000084d0: 6c6f 6261 6c4e 756d 4f66 5674 785b 695d lobalNumOfVtx[i]\n+000084e0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00008530: 2020 3230 393c 2f73 7061 6e3e 2020 2020 209 \n+00008540: 2020 2020 7d3c 2f64 6976 3e0a 3c64 6976 }
    .<\n+00008580: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00008590: 6e6f 223e 2020 3231 303c 2f73 7061 6e3e no\"> 210\n+000085a0: 2020 2020 2020 2020 7674 7844 6973 745f vtxDist_\n+000085b0: 5b69 2b31 5d20 3d20 7674 7844 6973 745f [i+1] = vtxDist_\n+000085c0: 5b69 5d20 2b20 676c 6f62 616c 4e75 6d4f [i] + globalNumO\n+000085d0: 6656 7478 5b69 5d3b 3c2f 6469 763e 0a3c fVtx[i];
    .<\n+000085e0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000085f0: 3e3c 6120 6964 3d22 6c30 3032 3131 2220 > 211 }
    \n+00008640: 0a3c 6469 7620 636c 6173 733d 226c 696e ..
    213 \n+00008770: 2020 2020 6261 7365 5f3d 6261 7365 3b3c base_=base;<\n+00008780: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+000087d0: 3231 343c 2f73 7061 6e3e 203c 2f64 6976 214 .
    215<\n+00008830: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#ifdef DEBUG_RE\n+00008860: 5041 5254 3c2f 7370 616e 3e3c 2f64 6976 PART.
    216<\n+000088c0: 2f73 7061 6e3e 2020 2020 2020 7374 643a /span> std:\n+000088d0: 3a63 6f75 7420 266c 743b 266c 743b 206f :cout << o\n+000088e0: 6f63 6f6d 6d2e 636f 6d6d 756e 6963 6174 ocomm.communicat\n+000088f0: 6f72 2829 2e72 616e 6b28 2926 6c74 3b26 or().rank()<&\n+00008900: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+00008920: 7175 6f74 3b20 7674 7844 6973 743a 2026 quot; vtxDist: &\n+00008930: 7175 6f74 3b3c 2f73 7061 6e3e 3b3c 2f64 quot;;.
    21\n+00008990: 373c 2f73 7061 6e3e 2020 2020 2020 3c73 7 for(int\n+000089e0: 3c2f 7370 616e 3e20 693d 303b 2069 266c i=0; i&l\n+000089f0: 743b 3d20 6e70 6573 3b20 2b2b 6929 3c2f t;= npes; ++i).
    2\n+00008a50: 3138 3c2f 7370 616e 3e20 2020 2020 2020 18 \n+00008a60: 2073 7464 3a3a 636f 7574 2026 6c74 3b26 std::cout <&\n+00008a70: 6c74 3b20 7674 7844 6973 745f 5b69 5d26 lt; vtxDist_[i]&\n+00008a80: 6c74 3b26 6c74 3b3c 7370 616e 2063 6c61 lt;<" "\n+00008ab0: 3c2f 7370 616e 3e3b 3c2f 6469 763e 0a3c ;
    .<\n+00008ac0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00008ad0: 3e3c 6120 6964 3d22 6c30 3032 3139 2220 > 219 std::co\n+00008b20: 7574 266c 743b 266c 743b 7374 643a 3a65 ut<<std::e\n+00008b30: 6e64 6c3b 3c2f 6469 763e 0a3c 6469 7620 ndl;
    .
    220<\n+00008b90: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n+00008ba0: 726f 6365 7373 6f72 223e 2365 6e64 6966 rocessor\">#endif\n+00008bb0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00008bd0: 3c61 2069 643d 226c 3030 3232 3122 206e 221
    .
    222 \n+00008c70: 2020 2020 3c73 7061 6e20 636c 6173 733d // Tra\n+00008c90: 7665 7273 6520 7468 6520 6772 6170 6820 verse the graph \n+00008ca0: 616e 6420 6173 7369 676e 2061 206e 6577 and assign a new\n+00008cb0: 2063 6f6e 7365 6375 7469 7665 206e 756d consecutive num\n+00008cc0: 6265 722f 696e 6465 783c 2f73 7061 6e3e ber/index\n+00008cd0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00008d20: 2032 3233 3c2f 7370 616e 3e20 2020 2020 223 \n+00008d30: 203c 7370 616e 2063 6c61 7373 3d22 636f // starti\n+00008d50: 6e67 2062 7920 2671 756f 743b 6261 7365 ng by "base\n+00008d60: 2671 756f 743b 2074 6f20 616c 6c20 6f77 " to all ow\n+00008d70: 6e65 7220 7665 7274 6963 6573 2e3c 2f73 ner vertices.
    .
    224 \n+00008de0: 2020 2020 203c 7370 616e 2063 6c61 7373 // Th\n+00008e00: 6520 6e65 7720 696e 6465 7820 6973 2075 e new index is u\n+00008e10: 7365 6420 6173 2074 6865 2050 6172 4d45 sed as the ParME\n+00008e20: 5449 5320 676c 6f62 616c 2069 6e64 6578 TIS global index\n+00008e30: 2061 6e64 2069 733c 2f73 7061 6e3e 3c2f and is.
    2\n+00008e90: 3235 3c2f 7370 616e 3e20 2020 2020 203c 25 <\n+00008ea0: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+00008eb0: 656e 7422 3e2f 2f20 7374 6f72 6564 2069 ent\">// stored i\n+00008ec0: 6e20 7468 6520 7665 6374 6f72 2026 7175 n the vector &qu\n+00008ed0: 6f74 3b64 756e 6554 6f50 6172 6d65 7469 ot;duneToParmeti\n+00008ee0: 7326 7175 6f74 3b3c 2f73 7061 6e3e 3c2f s".
    2\n+00008f40: 3236 3c2f 7370 616e 3e20 2020 2020 203c 26 <\n+00008f50: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00008f60: 6f72 6422 3e61 7574 6f3c 2f73 7061 6e3e ord\">auto\n+00008f70: 2076 656e 6420 3d20 6772 6170 682e 656e vend = graph.en\n+00008f80: 6428 293b 3c2f 6469 763e 0a3c 6469 7620 d();
    .
    227 \n+00008fe0: 2020 2020 203c 7370 616e 2063 6c61 7373 f\n+00009000: 6f72 3c2f 7370 616e 3e28 3c73 7061 6e20 or(\n+00009020: 6175 746f 3c2f 7370 616e 3e20 7665 7274 auto vert\n+00009030: 6578 203d 2067 7261 7068 2e62 6567 696e ex = graph.begin\n+00009040: 2829 3b20 7665 7274 6578 2021 3d20 7665 (); vertex != ve\n+00009050: 6e64 3b20 2b2b 7665 7274 6578 2920 7b3c nd; ++vertex) {<\n+00009060: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+000090b0: 3232 383c 2f73 7061 6e3e 2020 2020 2020 228 \n+000090c0: 2020 3c73 7061 6e20 636c 6173 733d 226b const typen\n+00009100: 616d 653c 2f73 7061 6e3e 204f 4f43 6f6d ame OOCom\n+00009110: 6d3a 3a50 6172 616c 6c65 6c49 6e64 6578 m::ParallelIndex\n+00009120: 5365 743a 3a49 6e64 6578 5061 6972 2a20 Set::IndexPair* \n+00009130: 696e 6465 783d 6f6f 636f 6d6d 2e67 6c6f index=oocomm.glo\n+00009140: 6261 6c4c 6f6f 6b75 7028 292e 7061 6972 balLookup().pair\n+00009150: 282a 7665 7274 6578 293b 3c2f 6469 763e (*vertex);
    \n+00009160: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00009190: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 229 ass\n+000091c0: 6572 7428 696e 6465 7829 3b3c 2f64 6976 ert(index);.
    230<\n+00009220: 2f73 7061 6e3e 2020 2020 2020 2020 3c73 /span> if (OwnerSet::con\n+00009260: 7461 696e 7328 696e 6465 782d 2667 743b tains(index->\n+00009270: 6c6f 6361 6c28 292e 6174 7472 6962 7574 local().attribut\n+00009280: 6528 2929 2920 7b3c 2f64 6976 3e0a 3c64 e())) {
    .\n+000092a0: 3c61 2069 643d 226c 3030 3233 3122 206e 231 // assign and \n+00009310: 636f 756e 7420 7468 6520 696e 6465 783c count the index<\n+00009320: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00009340: 6120 6964 3d22 6c30 3032 3332 2220 6e61 a id=\"l00232\" na\n+00009350: 6d65 3d22 6c30 3032 3332 223e 3c2f 613e me=\"l00232\">\n+00009360: 3c73 7061 6e20 636c 6173 733d 226c 696e 232 parme\n+00009390: 7469 7354 6f44 756e 655b 6261 7365 2d62 tisToDune[base-b\n+000093a0: 6173 655f 5d3d 696e 6465 782d 2667 743b ase_]=index->\n+000093b0: 6c6f 6361 6c28 293b 3c2f 6469 763e 0a3c local();
    .<\n+000093c0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000093d0: 3e3c 6120 6964 3d22 6c30 3032 3333 2220 > 233 dun\n+00009420: 6554 6f50 6172 6d65 7469 735b 696e 6465 eToParmetis[inde\n+00009430: 782d 2667 743b 6c6f 6361 6c28 295d 203d x->local()] =\n+00009440: 2062 6173 652b 2b3b 3c2f 6469 763e 0a3c base++;
    .<\n+00009450: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00009460: 3e3c 6120 6964 3d22 6c30 3032 3334 2220 > 234 }.
    235\n+00009500: 3c2f 7370 616e 3e20 2020 2020 207d 3c2f }.
    2\n+00009560: 3336 3c2f 7370 616e 3e20 3c2f 6469 763e 36
    \n+00009570: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000095a0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 237 // At this poin\n+000095f0: 742c 2065 7665 7279 2070 726f 6365 7373 t, every process\n+00009600: 206b 6e6f 7773 2074 6865 2050 6172 4d45 knows the ParME\n+00009610: 5449 5320 676c 6f62 616c 2069 6e64 6578 TIS global index\n+00009620: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00009640: 3c61 2069 643d 226c 3030 3233 3822 206e 238 //\n+000096a0: 206f 6620 6974 2623 3339 3b73 206f 776e of it's own\n+000096b0: 6572 2076 6572 7469 6365 732e 2054 6865 er vertices. The\n+000096c0: 206e 6578 7420 7374 6570 2069 7320 746f next step is to\n+000096d0: 2067 6574 2074 6865 3c2f 7370 616e 3e3c get the<\n+000096e0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00009730: 3233 393c 2f73 7061 6e3e 2020 2020 2020 239 \n+00009740: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // ParMETI\n+00009760: 5320 676c 6f62 616c 2069 6e64 6578 206f S global index o\n+00009770: 6620 7468 6520 6f76 6572 6c61 7020 7665 f the overlap ve\n+00009780: 7274 6963 6573 2066 726f 6d20 7468 653c rtices from the<\n+00009790: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+000097b0: 6120 6964 3d22 6c30 3032 3430 2220 6e61 a id=\"l00240\" na\n+000097c0: 6d65 3d22 6c30 3032 3430 223e 3c2f 613e me=\"l00240\">\n+000097d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 240 // \n+00009810: 6173 736f 6369 6174 6564 2070 726f 6365 associated proce\n+00009820: 7373 6573 2e20 546f 2064 6f20 7468 6973 sses. To do this\n+00009830: 2c20 7468 6520 4475 6e65 3a3a 496e 7465 , the Dune::Inte\n+00009840: 7266 6163 6520 636c 6173 733c 2f73 7061 rface class
    .
    241 \n+000098b0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // is u\n+000098d0: 7365 642e 3c2f 7370 616e 3e3c 2f64 6976 sed..
    242<\n+00009930: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#ifdef DEBUG_RE\n+00009960: 5041 5254 3c2f 7370 616e 3e3c 2f64 6976 PART.
    243<\n+000099c0: 2f73 7061 6e3e 2020 2020 2020 7374 643a /span> std:\n+000099d0: 3a63 6f75 7420 266c 743b 266c 743b 6f6f :cout <<oo\n+000099e0: 636f 6d6d 2e63 6f6d 6d75 6e69 6361 746f comm.communicato\n+000099f0: 7228 292e 7261 6e6b 2829 266c 743b 266c r().rank()<&l\n+00009a00: 743b 3c73 7061 6e20 636c 6173 733d 2273 t;&q\n+00009a20: 756f 743b 3a20 6265 666f 7265 2026 7175 uot;: before &qu\n+00009a30: 6f74 3b3c 2f73 7061 6e3e 3b3c 2f64 6976 ot;;.
    244<\n+00009a90: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> for\n+00009ac0: 2873 7464 3a3a 7369 7a65 5f74 2069 3d30 (std::size_t i=0\n+00009ad0: 3b20 6926 6c74 3b64 756e 6554 6f50 6172 ; i<duneToPar\n+00009ae0: 6d65 7469 732e 7369 7a65 2829 3b20 2b2b metis.size(); ++\n+00009af0: 6929 3c2f 6469 763e 0a3c 6469 7620 636c i)
    .
    245 \n+00009b50: 2020 2020 2073 7464 3a3a 636f 7574 266c std::cout&l\n+00009b60: 743b 266c 743b 6475 6e65 546f 5061 726d t;<duneToParm\n+00009b70: 6574 6973 5b69 5d26 6c74 3b26 6c74 3b3c etis[i]<<<\n+00009b80: 7370 616e 2063 6c61 7373 3d22 7374 7269 span class=\"stri\n+00009b90: 6e67 6c69 7465 7261 6c22 3e26 7175 6f74 ngliteral\">"\n+00009ba0: 3b20 2671 756f 743b 3c2f 7370 616e 3e3b ; ";\n+00009bb0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00009c00: 2032 3436 3c2f 7370 616e 3e20 2020 2020 246 \n+00009c10: 2073 7464 3a3a 636f 7574 266c 743b 266c std::cout<&l\n+00009c20: 743b 7374 643a 3a65 6e64 6c3b 3c2f 6469 t;std::endl;.
    247\n+00009c80: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 #endif<\n+00009cb0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00009d00: 3234 383c 2f73 7061 6e3e 2020 2020 2020 248 \n+00009d10: 6f6f 636f 6d6d 2e63 6f70 794f 776e 6572 oocomm.copyOwner\n+00009d20: 546f 416c 6c28 6475 6e65 546f 5061 726d ToAll(duneToParm\n+00009d30: 6574 6973 2c64 756e 6554 6f50 6172 6d65 etis,duneToParme\n+00009d40: 7469 7329 3b3c 2f64 6976 3e0a 3c64 6976 tis);
    .<\n+00009d80: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00009d90: 6e6f 223e 2020 3234 393c 2f73 7061 6e3e no\"> 249\n+00009da0: 3c73 7061 6e20 636c 6173 733d 2270 7265 #ifde\n+00009dc0: 6620 4445 4255 475f 5245 5041 5254 3c2f f DEBUG_REPART
    .<\n+00009e10: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00009e20: 6e6f 223e 2020 3235 303c 2f73 7061 6e3e no\"> 250\n+00009e30: 2020 2020 2020 7374 643a 3a63 6f75 7420 std::cout \n+00009e40: 266c 743b 266c 743b 6f6f 636f 6d6d 2e63 <<oocomm.c\n+00009e50: 6f6d 6d75 6e69 6361 746f 7228 292e 7261 ommunicator().ra\n+00009e60: 6e6b 2829 266c 743b 266c 743b 3c73 7061 nk()<<": \n+00009e90: 6166 7465 7220 2671 756f 743b 3c2f 7370 after ";
    .
    251 \n+00009f00: 2020 2020 203c 7370 616e 2063 6c61 7373 f\n+00009f20: 6f72 3c2f 7370 616e 3e28 7374 643a 3a73 or(std::s\n+00009f30: 697a 655f 7420 693d 303b 2069 266c 743b ize_t i=0; i<\n+00009f40: 6475 6e65 546f 5061 726d 6574 6973 2e73 duneToParmetis.s\n+00009f50: 697a 6528 293b 202b 2b69 293c 2f64 6976 ize(); ++i).
    252<\n+00009fb0: 2f73 7061 6e3e 2020 2020 2020 2020 7374 /span> st\n+00009fc0: 643a 3a63 6f75 7426 6c74 3b26 6c74 3b64 d::cout<<d\n+00009fd0: 756e 6554 6f50 6172 6d65 7469 735b 695d uneToParmetis[i]\n+00009fe0: 266c 743b 266c 743b 3c73 7061 6e20 636c <<" "\n+0000a010: 3b3c 2f73 7061 6e3e 3b3c 2f64 6976 3e0a ;;
    .\n+0000a020: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0000a0d0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000a0e0: 6e6f 223e 2020 3235 343c 2f73 7061 6e3e no\"> 254\n+0000a0f0: 3c73 7061 6e20 636c 6173 733d 2270 7265 #endi\n+0000a110: 663c 2f73 7061 6e3e 3c2f 6469 763e 0a3c f
    .<\n+0000a120: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0000a130: 3e3c 6120 6964 3d22 6c30 3032 3535 2220 > 255 }
    .<\n+0000a180: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0000a190: 3e3c 6120 6964 3d22 6c30 3032 3536 2220 > 256 }
    .<\n+0000a1f0: 6120 6964 3d22 6c30 3032 3537 2220 6e61 a id=\"l00257\" na\n+0000a200: 6d65 3d22 6c30 3032 3537 223e 3c2f 613e me=\"l00257\">\n+0000a210: 3c73 7061 6e20 636c 6173 733d 226c 696e 257
    ..<\n+0000a430: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000a440: 6e6f 223e 2020 3236 303c 2f73 7061 6e3e no\"> 260\n+0000a450: 2020 7b3c 2f64 6976 3e0a 3c64 6976 2063 {
    .
    .\n+0000a4a0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0000a4d0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 2\n+0000a530: 3631 3c2f 613e 3c2f 7370 616e 3e20 2020 61 \n+0000a540: 203c 7370 616e 2063 6c61 7373 3d22 6b65 void<\n+0000a560: 2f73 7061 6e3e 203c 6120 636c 6173 733d /span> setCommu\n+0000a5c0: 6e69 6361 746f 723c 2f61 3e28 4d50 495f nicator(MPI_\n+0000a5d0: 436f 6d6d 2063 6f6d 6d29 3c2f 6469 763e Comm comm)
    \n+0000a5e0: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n+0000a640: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0000a670: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 263 commu\n+0000a6a0: 6e69 6361 746f 725f 3d63 6f6d 6d3b 3c2f nicator_=comm;.
    2\n+0000a700: 3634 3c2f 7370 616e 3e20 2020 207d 3c2f 64 }.
    .<\n+0000a750: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000a760: 6e6f 223e 2020 3236 353c 2f73 7061 6e3e no\"> 265
    \n+0000a770: 2020 2020 3c73 7061 6e20 636c 6173 733d templa\n+0000a790: 7465 3c2f 7370 616e 3e26 6c74 3b3c 7370 te<class \n+0000a7c0: 466c 6167 732c 3c73 7061 6e20 636c 6173 Flags,clas\n+0000a7e0: 733c 2f73 7061 6e3e 2049 5326 6774 3b3c s IS><\n+0000a7f0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    .<\n+0000a870: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000a880: 6e6f 223e 3c61 2063 6c61 7373 3d22 6c69 no\"> 266 void buildSendInt\n+0000a960: 6572 6661 6365 3c2f 613e 283c 7370 616e erface(const st\n+0000a990: 643a 3a76 6563 746f 7226 6c74 3b69 6e74 d::vector<int\n+0000a9a0: 2667 743b 2661 6d70 3b20 746f 5061 7274 >& toPart\n+0000a9b0: 2c20 3c73 7061 6e20 636c 6173 733d 226b , const IS& idx\n+0000a9e0: 7365 7429 3c2f 6469 763e 0a3c 6469 7620 set)
    .
    267 \n+0000aa40: 2020 207b 3c2f 6469 763e 0a3c 6469 7620 {
    .
    268 \n+0000aaa0: 2020 2020 2073 7464 3a3a 6d61 7026 6c74 std::map<\n+0000aab0: 3b69 6e74 2c69 6e74 2667 743b 2073 697a ;int,int> siz\n+0000aac0: 6573 3b3c 2f64 6976 3e0a 3c64 6976 2063 es;
    .
    269 <\n+0000ab20: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0000ab70: 3237 303c 2f73 7061 6e3e 2020 2020 2020 270 \n+0000ab80: 3c73 7061 6e20 636c 6173 733d 226b 6579 for(auto<\n+0000abc0: 2f73 7061 6e3e 2069 3d69 6478 7365 742e /span> i=idxset.\n+0000abd0: 6265 6769 6e28 292c 2065 6e64 3d69 6478 begin(), end=idx\n+0000abe0: 7365 742e 656e 6428 293b 2069 213d 656e set.end(); i!=en\n+0000abf0: 643b 202b 2b69 293c 2f64 6976 3e0a 3c64 d; ++i)
    .\n+0000ac10: 3c61 2069 643d 226c 3030 3237 3122 206e 271 if(Fl\n+0000ac80: 6167 733a 3a63 6f6e 7461 696e 7328 692d ags::contains(i-\n+0000ac90: 2667 743b 6c6f 6361 6c28 292e 6174 7472 >local().attr\n+0000aca0: 6962 7574 6528 2929 293c 2f64 6976 3e0a ibute()))
    .\n+0000acb0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0000ace0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 272 ++\n+0000ad10: 7369 7a65 735b 746f 5061 7274 5b69 2d26 sizes[toPart[i-&\n+0000ad20: 6774 3b6c 6f63 616c 2829 5d5d 3b3c 2f64 gt;local()]];.
    27\n+0000ad80: 333c 2f73 7061 6e3e 203c 2f64 6976 3e0a 3
    .\n+0000ad90: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0000ae40: 6120 6964 3d22 6c30 3032 3735 2220 6e61 a id=\"l00275\" na\n+0000ae50: 6d65 3d22 6c30 3032 3735 223e 3c2f 613e me=\"l00275\">\n+0000ae60: 3c73 7061 6e20 636c 6173 733d 226c 696e 275 for(auto i=\n+0000aed0: 7369 7a65 732e 6265 6769 6e28 292c 2065 sizes.begin(), e\n+0000aee0: 6e64 3d73 697a 6573 2e65 6e64 2829 3b20 nd=sizes.end(); \n+0000aef0: 6921 3d65 6e64 3b20 2b2b 6929 3c2f 6469 i!=end; ++i).
    276\n+0000af50: 3c2f 7370 616e 3e20 2020 2020 2020 2069 i\n+0000af60: 6e74 6572 6661 6365 7328 295b 692d 2667 nterfaces()[i-&g\n+0000af70: 743b 6669 7273 745d 2e66 6972 7374 2e72 t;first].first.r\n+0000af80: 6573 6572 7665 2869 2d26 6774 3b73 6563 eserve(i->sec\n+0000af90: 6f6e 6429 3b3c 2f64 6976 3e0a 3c64 6976 ond);
    .<\n+0000afd0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000afe0: 6e6f 223e 2020 3237 373c 2f73 7061 6e3e no\"> 277\n+0000aff0: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+0000b040: 2020 3237 383c 2f73 7061 6e3e 2020 2020 278 \n+0000b050: 2020 3c73 7061 6e20 636c 6173 733d 2263 //Insert\n+0000b070: 2074 6865 2069 6e74 6572 6661 6365 2069 the interface i\n+0000b080: 6e66 6f72 6d61 7469 6f6e 3c2f 7370 616e nformation
    .
    \n+0000b0e0: 2020 3237 393c 2f73 7061 6e3e 2020 2020 279 \n+0000b0f0: 2020 3c73 7061 6e20 636c 6173 733d 226b for<\n+0000b110: 2f73 7061 6e3e 283c 7370 616e 2063 6c61 /span>(aut\n+0000b130: 6f3c 2f73 7061 6e3e 2069 3d69 6478 7365 o i=idxse\n+0000b140: 742e 6265 6769 6e28 292c 2065 6e64 3d69 t.begin(), end=i\n+0000b150: 6478 7365 742e 656e 6428 293b 2069 213d dxset.end(); i!=\n+0000b160: 656e 643b 202b 2b69 293c 2f64 6976 3e0a end; ++i)
    .\n+0000b170: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0000b1a0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 280 if(\n+0000b1f0: 466c 6167 733a 3a63 6f6e 7461 696e 7328 Flags::contains(\n+0000b200: 692d 2667 743b 6c6f 6361 6c28 292e 6174 i->local().at\n+0000b210: 7472 6962 7574 6528 2929 293c 2f64 6976 tribute())).
    281<\n+0000b270: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+0000b280: 696e 7465 7266 6163 6573 2829 5b74 6f50 interfaces()[toP\n+0000b290: 6172 745b 692d 2667 743b 6c6f 6361 6c28 art[i->local(\n+0000b2a0: 295d 5d2e 6669 7273 742e 6164 6428 692d )]].first.add(i-\n+0000b2b0: 2667 743b 6c6f 6361 6c28 2929 3b3c 2f64 >local());.
    28\n+0000b310: 323c 2f73 7061 6e3e 2020 2020 7d3c 2f64 2 }.
    .
    283 \n+0000b380: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    .<\n+0000b3e0: 6120 6964 3d22 6c30 3032 3834 2220 6e61 a id=\"l00284\" na\n+0000b3f0: 6d65 3d22 6c30 3032 3834 223e 3c2f 613e me=\"l00284\">\n+0000b400: 3c73 7061 6e20 636c 6173 733d 226c 696e 284<\n+0000b460: 2f61 3e3c 2f73 7061 6e3e 2020 2020 3c73 /a> void reserveSpac\n+0000b4f0: 6546 6f72 5265 6365 6976 6549 6e74 6572 eForReceiveInter\n+0000b500: 6661 6365 3c2f 613e 283c 7370 616e 2063 face(int pr\n+0000b530: 6f63 2c20 3c73 7061 6e20 636c 6173 733d oc, in\n+0000b550: 743c 2f73 7061 6e3e 2073 697a 6529 3c2f t size).
    2\n+0000b5b0: 3835 3c2f 7370 616e 3e20 2020 207b 3c2f 85 {.
    2\n+0000b610: 3836 3c2f 7370 616e 3e20 2020 2020 2069 86 i\n+0000b620: 6e74 6572 6661 6365 7328 295b 7072 6f63 nterfaces()[proc\n+0000b630: 5d2e 7365 636f 6e64 2e72 6573 6572 7665 ].second.reserve\n+0000b640: 2873 697a 6529 3b3c 2f64 6976 3e0a 3c64 (size);
    .\n+0000b660: 3c61 2069 643d 226c 3030 3238 3722 206e 287 }
    ..
    .
    288 void addReceiveInd\n+0000b820: 6578 3c2f 613e 283c 7370 616e 2063 6c61 ex(int proc\n+0000b850: 2c20 7374 643a 3a73 697a 655f 7420 6964 , std::size_t id\n+0000b860: 7829 3c2f 6469 763e 0a3c 6469 7620 636c x)
    .
    289 \n+0000b8c0: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    290 \n+0000b920: 2020 2069 6e74 6572 6661 6365 7328 295b interfaces()[\n+0000b930: 7072 6f63 5d2e 7365 636f 6e64 2e61 6464 proc].second.add\n+0000b940: 2869 6478 293b 3c2f 6469 763e 0a3c 6469 (idx);
    .<\n+0000b960: 6120 6964 3d22 6c30 3032 3931 2220 6e61 a id=\"l00291\" na\n+0000b970: 6d65 3d22 6c30 3032 3931 223e 3c2f 613e me=\"l00291\">\n+0000b980: 3c73 7061 6e20 636c 6173 733d 226c 696e 291 }
    ..
    29\n+0000ba00: 323c 2f73 7061 6e3e 2020 2020 3c73 7061 2 template<typen\n+0000ba50: 616d 653c 2f73 7061 6e3e 2054 4726 6774 ame TG>\n+0000ba60: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    .\n+0000bac0: 3c61 2069 643d 226c 3030 3239 3322 206e 293\n+0000bb40: 3c2f 613e 3c2f 7370 616e 3e20 2020 203c <\n+0000bb50: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0000bb60: 6f72 6474 7970 6522 3e76 6f69 643c 2f73 ordtype\">void buildRecei\n+0000bbd0: 7665 496e 7465 7266 6163 653c 2f61 3e28 veInterface(\n+0000bbe0: 7374 643a 3a76 6563 746f 7226 6c74 3b73 std::vector<s\n+0000bbf0: 7464 3a3a 7061 6972 266c 743b 5447 2c69 td::pair<TG,i\n+0000bc00: 6e74 2667 743b 2026 6774 3b26 616d 703b nt> >&\n+0000bc10: 2069 6e64 6963 6573 293c 2f64 6976 3e0a indices)
    .\n+0000bc20: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+0000bc80: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n+0000bcf0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0000bd20: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 296 for(\n+0000bd70: 3c73 7061 6e20 636c 6173 733d 226b 6579 auto idx=indices.be\n+0000bda0: 6769 6e28 293b 2069 6478 213d 2069 6e64 gin(); idx!= ind\n+0000bdb0: 6963 6573 2e65 6e64 2829 3b20 2b2b 6964 ices.end(); ++id\n+0000bdc0: 7829 207b 3c2f 6469 763e 0a3c 6469 7620 x) {
    .
    297 \n+0000be20: 2020 2020 2020 2069 6e74 6572 6661 6365 interface\n+0000be30: 7328 295b 6964 782d 2667 743b 7365 636f s()[idx->seco\n+0000be40: 6e64 5d2e 7365 636f 6e64 2e61 6464 2869 nd].second.add(i\n+0000be50: 2b2b 293b 3c2f 6469 763e 0a3c 6469 7620 ++);
    .
    298 \n+0000beb0: 2020 2020 207d 3c2f 6469 763e 0a3c 6469 }
    .<\n+0000bed0: 6120 6964 3d22 6c30 3032 3939 2220 6e61 a id=\"l00299\" na\n+0000bee0: 6d65 3d22 6c30 3032 3939 223e 3c2f 613e me=\"l00299\">\n+0000bef0: 3c73 7061 6e20 636c 6173 733d 226c 696e 299 }
    ..
    30\n+0000bf70: 303c 2f73 7061 6e3e 203c 2f64 6976 3e0a 0
    .\n+0000bf80: 3c64 6976 2063 6c61 7373 3d22 666f 6c64
    ..
    302 \n+0000c130: 2020 207b 7d3c 2f64 6976 3e0a 3c2f 6469 {}
    ..
    303\n+0000c190: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+0000c1a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0000c1b0: 3e3c 6120 6964 3d22 6c30 3033 3034 2220 > 304 };
    ..
    3\n+0000c250: 3035 3c2f 7370 616e 3e20 3c2f 6469 763e 05
    \n+0000c260: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0000c290: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 306 nam\n+0000c2d0: 6573 7061 6365 3c2f 7370 616e 3e3c 2f64 espace.
    30\n+0000c330: 373c 2f73 7061 6e3e 2020 7b3c 2f64 6976 7 {.
    317<\n+0000c390: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n+0000c3b0: 7465 6d70 6c61 7465 3c2f 7370 616e 3e26 template&\n+0000c3c0: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;class GI>.
    318\n+0000c440: 3c2f 7370 616e 3e20 2020 203c 7370 616e void\n+0000c470: 2063 7265 6174 6553 656e 6442 7566 2873 createSendBuf(s\n+0000c480: 7464 3a3a 7665 6374 6f72 266c 743b 4749 td::vector<GI\n+0000c490: 2667 743b 2661 6d70 3b20 6f77 6e65 7256 >& ownerV\n+0000c4a0: 6563 2c20 7374 643a 3a73 6574 266c 743b ec, std::set<\n+0000c4b0: 4749 2667 743b 2661 6d70 3b20 6f76 6572 GI>& over\n+0000c4c0: 6c61 7056 6563 2c20 7374 643a 3a73 6574 lapVec, std::set\n+0000c4d0: 266c 743b 696e 7426 6774 3b26 616d 703b <int>&\n+0000c4e0: 206e 6569 6768 626f 7273 2c20 3c73 7061 neighbors, char *sendBuf, int\n+0000c540: 2062 7566 6665 7273 697a 652c 204d 5049 buffersize, MPI\n+0000c550: 5f43 6f6d 6d20 636f 6d6d 2920 7b3c 2f64 _Comm comm) {.
    31\n+0000c5b0: 393c 2f73 7061 6e3e 2020 2020 2020 3c73 9 // Pack owne\n+0000c5e0: 7220 7665 7274 6963 6573 3c2f 7370 616e r vertices
    .
    \n+0000c640: 2020 3332 303c 2f73 7061 6e3e 2020 2020 320 \n+0000c650: 2020 7374 643a 3a73 697a 655f 7420 733d std::size_t s=\n+0000c660: 6f77 6e65 7256 6563 2e73 697a 6528 293b ownerVec.size();\n+0000c670: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0000c6c0: 2033 3231 3c2f 7370 616e 3e20 2020 2020 321 \n+0000c6d0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 int pos=0;.
    322\n+0000c750: 3c2f 7370 616e 3e20 2020 2020 203c 7370 if\n+0000c780: 2873 3d3d 3029 3c2f 6469 763e 0a3c 6469 (s==0)
    .<\n+0000c7a0: 6120 6964 3d22 6c30 3033 3233 2220 6e61 a id=\"l00323\" na\n+0000c7b0: 6d65 3d22 6c30 3033 3233 223e 3c2f 613e me=\"l00323\">\n+0000c7c0: 3c73 7061 6e20 636c 6173 733d 226c 696e 323 ownerVe\n+0000c7f0: 632e 7265 7369 7a65 2831 293b 203c 7370 c.resize(1); // otherwise \n+0000c820: 776f 756c 6420 7265 6164 2062 6579 6f6e would read beyon\n+0000c830: 6420 7468 6520 6d65 6d6f 7279 2062 6f75 d the memory bou\n+0000c840: 6e64 3c2f 7370 616e 3e3c 2f64 6976 3e0a nd
    .\n+0000c850: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0000c880: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 324 MPI_Pa\n+0000c8b0: 636b 2826 616d 703b 732c 2031 2c20 4d50 ck(&s, 1, MP\n+0000c8c0: 4954 7261 6974 7326 6c74 3b73 7464 3a3a ITraits<std::\n+0000c8d0: 7369 7a65 5f74 2667 743b 3a3a 6765 7454 size_t>::getT\n+0000c8e0: 7970 6528 292c 2073 656e 6442 7566 2c20 ype(), sendBuf, \n+0000c8f0: 6275 6666 6572 7369 7a65 2c20 2661 6d70 buffersize, &\n+0000c900: 3b70 6f73 2c20 636f 6d6d 293b 3c2f 6469 ;pos, comm);.
    325\n+0000c960: 3c2f 7370 616e 3e20 2020 2020 204d 5049 MPI\n+0000c970: 5f50 6163 6b28 2661 6d70 3b28 6f77 6e65 _Pack(&(owne\n+0000c980: 7256 6563 5b30 5d29 2c20 732c 204d 5049 rVec[0]), s, MPI\n+0000c990: 5472 6169 7473 266c 743b 4749 2667 743b Traits<GI>\n+0000c9a0: 3a3a 6765 7454 7970 6528 292c 2073 656e ::getType(), sen\n+0000c9b0: 6442 7566 2c20 6275 6666 6572 7369 7a65 dBuf, buffersize\n+0000c9c0: 2c20 2661 6d70 3b70 6f73 2c20 636f 6d6d , &pos, comm\n+0000c9d0: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    326 \n+0000ca30: 2020 2073 203d 206f 7665 726c 6170 5665 s = overlapVe\n+0000ca40: 632e 7369 7a65 2829 3b3c 2f64 6976 3e0a c.size();
    .\n+0000ca50: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0000ca80: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 327 MPI_Pa\n+0000cab0: 636b 2826 616d 703b 732c 2031 2c20 4d50 ck(&s, 1, MP\n+0000cac0: 4954 7261 6974 7326 6c74 3b73 7464 3a3a ITraits<std::\n+0000cad0: 7369 7a65 5f74 2667 743b 3a3a 6765 7454 size_t>::getT\n+0000cae0: 7970 6528 292c 2073 656e 6442 7566 2c20 ype(), sendBuf, \n+0000caf0: 6275 6666 6572 7369 7a65 2c20 2661 6d70 buffersize, &\n+0000cb00: 3b70 6f73 2c20 636f 6d6d 293b 3c2f 6469 ;pos, comm);.
    328\n+0000cb60: 3c2f 7370 616e 3e20 2020 2020 203c 7370 for(auto i=overlapVec\n+0000cbc0: 2e62 6567 696e 2829 2c20 656e 643d 206f .begin(), end= o\n+0000cbd0: 7665 726c 6170 5665 632e 656e 6428 293b verlapVec.end();\n+0000cbe0: 2069 2021 3d20 656e 643b 202b 2b69 293c i != end; ++i)<\n+0000cbf0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0000cc40: 3332 393c 2f73 7061 6e3e 2020 2020 2020 329 \n+0000cc50: 2020 4d50 495f 5061 636b 283c 7370 616e MPI_Pack(const_cast<<\n+0000cc80: 2f73 7061 6e3e 4749 2a3c 7370 616e 2063 /span>GI*&\n+0000cca0: 6774 3b3c 2f73 7061 6e3e 2826 616d 703b gt;(&\n+0000ccb0: 282a 6929 292c 2031 2c20 4d50 4954 7261 (*i)), 1, MPITra\n+0000ccc0: 6974 7326 6c74 3b47 4926 6774 3b3a 3a67 its<GI>::g\n+0000ccd0: 6574 5479 7065 2829 2c20 7365 6e64 4275 etType(), sendBu\n+0000cce0: 662c 2062 7566 6665 7273 697a 652c 2026 f, buffersize, &\n+0000ccf0: 616d 703b 706f 732c 2063 6f6d 6d29 3b3c amp;pos, comm);<\n+0000cd00: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0000cd50: 3333 303c 2f73 7061 6e3e 203c 2f64 6976 330 .
    331<\n+0000cdb0: 2f73 7061 6e3e 2020 2020 2020 733d 6e65 /span> s=ne\n+0000cdc0: 6967 6862 6f72 732e 7369 7a65 2829 3b3c ighbors.size();<\n+0000cdd0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0000ce20: 3333 323c 2f73 7061 6e3e 2020 2020 2020 332 \n+0000ce30: 4d50 495f 5061 636b 2826 616d 703b 732c MPI_Pack(&s,\n+0000ce40: 2031 2c20 4d50 4954 7261 6974 7326 6c74 1, MPITraits<\n+0000ce50: 3b73 7464 3a3a 7369 7a65 5f74 2667 743b ;std::size_t>\n+0000ce60: 3a3a 6765 7454 7970 6528 292c 2073 656e ::getType(), sen\n+0000ce70: 6442 7566 2c20 6275 6666 6572 7369 7a65 dBuf, buffersize\n+0000ce80: 2c20 2661 6d70 3b70 6f73 2c20 636f 6d6d , &pos, comm\n+0000ce90: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    333 .
    3\n+0000cf40: 3334 3c2f 7370 616e 3e20 2020 2020 203c 34 <\n+0000cf50: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0000cf60: 6f72 6466 6c6f 7722 3e66 6f72 3c2f 7370 ordflow\">for(auto i=neighbor\n+0000cfa0: 732e 6265 6769 6e28 292c 2065 6e64 3d20 s.begin(), end= \n+0000cfb0: 6e65 6967 6862 6f72 732e 656e 6428 293b neighbors.end();\n+0000cfc0: 2069 2021 3d20 656e 643b 202b 2b69 293c i != end; ++i)<\n+0000cfd0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0000d020: 3333 353c 2f73 7061 6e3e 2020 2020 2020 335 \n+0000d030: 2020 4d50 495f 5061 636b 283c 7370 616e MPI_Pack(const_cast<<\n+0000d060: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>\n+0000d080: 696e 743c 2f73 7061 6e3e 2a3c 7370 616e int*>(&am\n+0000d0b0: 703b 282a 6929 292c 2031 2c20 4d50 495f p;(*i)), 1, MPI_\n+0000d0c0: 494e 542c 2073 656e 6442 7566 2c20 6275 INT, sendBuf, bu\n+0000d0d0: 6666 6572 7369 7a65 2c20 2661 6d70 3b70 ffersize, &p\n+0000d0e0: 6f73 2c20 636f 6d6d 293b 3c2f 6469 763e os, comm);
    \n+0000d0f0: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n+0000d150: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0000d180: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 345 t\n+0000d1c0: 656d 706c 6174 653c 2f73 7061 6e3e 266c emplate&l\n+0000d1d0: 743b 3c73 7061 6e20 636c 6173 733d 226b t;class GI>.
    346<\n+0000d250: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> void \n+0000d280: 7361 7665 5265 6376 4275 6628 3c73 7061 saveRecvBuf(char *recvBuf, int\n+0000d2e0: 2062 7566 6665 7253 697a 652c 2073 7464 bufferSize, std\n+0000d2f0: 3a3a 7665 6374 6f72 266c 743b 7374 643a ::vector<std:\n+0000d300: 3a70 6169 7226 6c74 3b47 492c 696e 7426 :pair<GI,int&\n+0000d310: 6774 3b20 2667 743b 2661 6d70 3b20 6f77 gt; >& ow\n+0000d320: 6e65 7256 6563 2c3c 2f64 6976 3e0a 3c64 nerVec,
    .\n+0000d340: 3c61 2069 643d 226c 3030 3334 3722 206e 347 \n+0000d390: 2020 2020 2020 2073 7464 3a3a 7365 7426 std::set&\n+0000d3a0: 6c74 3b47 4926 6774 3b26 616d 703b 206f lt;GI>& o\n+0000d3b0: 7665 726c 6170 5665 632c 2073 7464 3a3a verlapVec, std::\n+0000d3c0: 7365 7426 6c74 3b69 6e74 2667 743b 2661 set<int>&a\n+0000d3d0: 6d70 3b20 6e65 6967 6862 6f72 732c 2052 mp; neighbors, R\n+0000d3e0: 6564 6973 7472 6962 7574 6549 6e74 6572 edistributeInter\n+0000d3f0: 6661 6365 2661 6d70 3b20 696e 662c 203c face& inf, <\n+0000d400: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0000d410: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int from, MPI_Co\n+0000d430: 6d6d 2063 6f6d 6d29 207b 3c2f 6469 763e mm comm) {
    \n+0000d440: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0000d470: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 348 std::\n+0000d4a0: 7369 7a65 5f74 2073 697a 653b 3c2f 6469 size_t size;.
    349\n+0000d500: 3c2f 7370 616e 3e20 2020 2020 203c 7370 int pos=0;
    .<\n+0000d540: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0000d550: 3e3c 6120 6964 3d22 6c30 3033 3530 2220 > 350 /\n+0000d5b0: 2f20 756e 7061 636b 206f 776e 6572 2076 / unpack owner v\n+0000d5c0: 6572 7469 6365 733c 2f73 7061 6e3e 3c2f ertices.
    3\n+0000d620: 3531 3c2f 7370 616e 3e20 2020 2020 204d 51 M\n+0000d630: 5049 5f55 6e70 6163 6b28 7265 6376 4275 PI_Unpack(recvBu\n+0000d640: 662c 2062 7566 6665 7253 697a 652c 2026 f, bufferSize, &\n+0000d650: 616d 703b 706f 732c 2026 616d 703b 7369 amp;pos, &si\n+0000d660: 7a65 2c20 312c 204d 5049 5472 6169 7473 ze, 1, MPITraits\n+0000d670: 266c 743b 7374 643a 3a73 697a 655f 7426 <std::size_t&\n+0000d680: 6774 3b3a 3a67 6574 5479 7065 2829 2c20 gt;::getType(), \n+0000d690: 636f 6d6d 293b 3c2f 6469 763e 0a3c 6469 comm);
    .<\n+0000d6b0: 6120 6964 3d22 6c30 3033 3532 2220 6e61 a id=\"l00352\" na\n+0000d6c0: 6d65 3d22 6c30 3033 3532 223e 3c2f 613e me=\"l00352\">\n+0000d6d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 352 inf.reser\n+0000d700: 7665 5370 6163 6546 6f72 5265 6365 6976 veSpaceForReceiv\n+0000d710: 6549 6e74 6572 6661 6365 2866 726f 6d2c eInterface(from,\n+0000d720: 2073 697a 6529 3b3c 2f64 6976 3e0a 3c64 size);
    .\n+0000d740: 3c61 2069 643d 226c 3030 3335 3322 206e 353 ownerVec\n+0000d790: 2e72 6573 6572 7665 286f 776e 6572 5665 .reserve(ownerVe\n+0000d7a0: 632e 7369 7a65 2829 2b73 697a 6529 3b3c c.size()+size);<\n+0000d7b0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0000d800: 3335 343c 2f73 7061 6e3e 2020 2020 2020 354 \n+0000d810: 3c73 7061 6e20 636c 6173 733d 226b 6579 for(; size!=0; \n+0000d840: 2d2d 7369 7a65 2920 7b3c 2f64 6976 3e0a --size) {
    .\n+0000d850: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    356 \n+0000d910: 2020 2020 204d 5049 5f55 6e70 6163 6b28 MPI_Unpack(\n+0000d920: 7265 6376 4275 662c 2062 7566 6665 7253 recvBuf, bufferS\n+0000d930: 697a 652c 2026 616d 703b 706f 732c 2026 ize, &pos, &\n+0000d940: 616d 703b 6769 2c20 312c 204d 5049 5472 amp;gi, 1, MPITr\n+0000d950: 6169 7473 266c 743b 4749 2667 743b 3a3a aits<GI>::\n+0000d960: 6765 7454 7970 6528 292c 2063 6f6d 6d29 getType(), comm)\n+0000d970: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0000d9c0: 2020 3335 373c 2f73 7061 6e3e 2020 2020 357 \n+0000d9d0: 2020 2020 6f77 6e65 7256 6563 2e70 7573 ownerVec.pus\n+0000d9e0: 685f 6261 636b 2873 7464 3a3a 6d61 6b65 h_back(std::make\n+0000d9f0: 5f70 6169 7228 6769 2c66 726f 6d29 293b _pair(gi,from));\n+0000da00: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0000da50: 2033 3538 3c2f 7370 616e 3e20 2020 2020 358 \n+0000da60: 207d 3c2f 6469 763e 0a3c 6469 7620 636c }
    .
    359 \n+0000dac0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // unpa\n+0000dae0: 636b 206f 7665 726c 6170 2076 6572 7469 ck overlap verti\n+0000daf0: 6365 733c 2f73 7061 6e3e 3c2f 6469 763e ces
    \n+0000db00: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0000db30: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 360 MPI_U\n+0000db60: 6e70 6163 6b28 7265 6376 4275 662c 2062 npack(recvBuf, b\n+0000db70: 7566 6665 7253 697a 652c 2026 616d 703b ufferSize, &\n+0000db80: 706f 732c 2026 616d 703b 7369 7a65 2c20 pos, &size, \n+0000db90: 312c 204d 5049 5472 6169 7473 266c 743b 1, MPITraits<\n+0000dba0: 7374 643a 3a73 697a 655f 7426 6774 3b3a std::size_t>:\n+0000dbb0: 3a67 6574 5479 7065 2829 2c20 636f 6d6d :getType(), comm\n+0000dbc0: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    361 \n+0000dc20: 2020 203c 7370 616e 2063 6c61 7373 3d22 typenam\n+0000dc40: 653c 2f73 7061 6e3e 2073 7464 3a3a 7365 e std::se\n+0000dc50: 7426 6c74 3b47 4926 6774 3b3a 3a69 7465 t<GI>::ite\n+0000dc60: 7261 746f 7220 6970 6f73 203d 206f 7665 rator ipos = ove\n+0000dc70: 726c 6170 5665 632e 6265 6769 6e28 293b rlapVec.begin();\n+0000dc80: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0000dcd0: 2033 3632 3c2f 7370 616e 3e20 2020 2020 362 \n+0000dce0: 2044 756e 653a 3a64 7665 7262 2026 6c74 Dune::dverb <\n+0000dcf0: 3b26 6c74 3b20 3c73 7061 6e20 636c 6173 ;< "unpackin\n+0000dd20: 6720 2671 756f 743b 3c2f 7370 616e 3e26 g "&\n+0000dd30: 6c74 3b26 6c74 3b73 697a 6526 6c74 3b26 lt;<size<&\n+0000dd40: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+0000dd60: 7175 6f74 3b20 6f76 6572 6c61 7026 7175 quot; overlap&qu\n+0000dd70: 6f74 3b3c 2f73 7061 6e3e 266c 743b 266c ot;<&l\n+0000dd80: 743b 7374 643a 3a65 6e64 6c3b 3c2f 6469 t;std::endl;.
    363\n+0000dde0: 3c2f 7370 616e 3e20 2020 2020 203c 7370 for(; size!=0; --s\n+0000de20: 697a 6529 207b 3c2f 6469 763e 0a3c 6469 ize) {
    .<\n+0000de40: 6120 6964 3d22 6c30 3033 3634 2220 6e61 a id=\"l00364\" na\n+0000de50: 6d65 3d22 6c30 3033 3634 223e 3c2f 613e me=\"l00364\">\n+0000de60: 3c73 7061 6e20 636c 6173 733d 226c 696e 364 GI gi;<\n+0000de90: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0000dee0: 3336 353c 2f73 7061 6e3e 2020 2020 2020 365 \n+0000def0: 2020 4d50 495f 556e 7061 636b 2872 6563 MPI_Unpack(rec\n+0000df00: 7642 7566 2c20 6275 6666 6572 5369 7a65 vBuf, bufferSize\n+0000df10: 2c20 2661 6d70 3b70 6f73 2c20 2661 6d70 , &pos, &\n+0000df20: 3b67 692c 2031 2c20 4d50 4954 7261 6974 ;gi, 1, MPITrait\n+0000df30: 7326 6c74 3b47 4926 6774 3b3a 3a67 6574 s<GI>::get\n+0000df40: 5479 7065 2829 2c20 636f 6d6d 293b 3c2f Type(), comm);.
    3\n+0000dfa0: 3636 3c2f 7370 616e 3e20 2020 2020 2020 66 \n+0000dfb0: 2069 706f 733d 6f76 6572 6c61 7056 6563 ipos=overlapVec\n+0000dfc0: 2e69 6e73 6572 7428 6970 6f73 2c20 6769 .insert(ipos, gi\n+0000dfd0: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    367 \n+0000e030: 2020 207d 3c2f 6469 763e 0a3c 6469 7620 }
    .
    368 \n+0000e090: 2020 2020 203c 7370 616e 2063 6c61 7373 //unp\n+0000e0b0: 6163 6b20 6e65 6967 6862 6f72 733c 2f73 ack neighbors
    .
    369 \n+0000e120: 2020 2020 204d 5049 5f55 6e70 6163 6b28 MPI_Unpack(\n+0000e130: 7265 6376 4275 662c 2062 7566 6665 7253 recvBuf, bufferS\n+0000e140: 697a 652c 2026 616d 703b 706f 732c 2026 ize, &pos, &\n+0000e150: 616d 703b 7369 7a65 2c20 312c 2020 4d50 amp;size, 1, MP\n+0000e160: 4954 7261 6974 7326 6c74 3b73 7464 3a3a ITraits<std::\n+0000e170: 7369 7a65 5f74 2667 743b 3a3a 6765 7454 size_t>::getT\n+0000e180: 7970 6528 292c 2063 6f6d 6d29 3b3c 2f64 ype(), comm);.
    37\n+0000e1e0: 303c 2f73 7061 6e3e 2020 2020 2020 4475 0 Du\n+0000e1f0: 6e65 3a3a 6476 6572 6220 266c 743b 266c ne::dverb <&l\n+0000e200: 743b 203c 7370 616e 2063 6c61 7373 3d22 t; &\n+0000e220: 7175 6f74 3b75 6e70 6163 6b69 6e67 2026 quot;unpacking &\n+0000e230: 7175 6f74 3b3c 2f73 7061 6e3e 266c 743b quot;<\n+0000e240: 266c 743b 7369 7a65 266c 743b 266c 743b <size<<\n+0000e250: 3c73 7061 6e20 636c 6173 733d 2273 7472 &quo\n+0000e270: 743b 206e 6569 6768 626f 7273 2671 756f t; neighbors&quo\n+0000e280: 743b 3c2f 7370 616e 3e26 6c74 3b26 6c74 t;<<\n+0000e290: 3b73 7464 3a3a 656e 646c 3b3c 2f64 6976 ;std::endl;.
    371<\n+0000e2f0: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> typename std::set<in\n+0000e330: 7426 6774 3b3a 3a69 7465 7261 746f 7220 t>::iterator \n+0000e340: 6e70 6f73 203d 206e 6569 6768 626f 7273 npos = neighbors\n+0000e350: 2e62 6567 696e 2829 3b3c 2f64 6976 3e0a .begin();
    .\n+0000e360: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    373 \n+0000e450: 2020 2020 2020 3c73 7061 6e20 636c 6173 \n+0000e470: 696e 743c 2f73 7061 6e3e 206e 3b3c 2f64 int n;.
    37\n+0000e4d0: 343c 2f73 7061 6e3e 2020 2020 2020 2020 4 \n+0000e4e0: 4d50 495f 556e 7061 636b 2872 6563 7642 MPI_Unpack(recvB\n+0000e4f0: 7566 2c20 6275 6666 6572 5369 7a65 2c20 uf, bufferSize, \n+0000e500: 2661 6d70 3b70 6f73 2c20 2661 6d70 3b6e &pos, &n\n+0000e510: 2c20 312c 204d 5049 5f49 4e54 2c20 636f , 1, MPI_INT, co\n+0000e520: 6d6d 293b 3c2f 6469 763e 0a3c 6469 7620 mm);
    .
    375 \n+0000e580: 2020 2020 2020 206e 706f 733d 6e65 6967 npos=neig\n+0000e590: 6862 6f72 732e 696e 7365 7274 286e 706f hbors.insert(npo\n+0000e5a0: 732c 206e 293b 3c2f 6469 763e 0a3c 6469 s, n);
    .<\n+0000e5c0: 6120 6964 3d22 6c30 3033 3736 2220 6e61 a id=\"l00376\" na\n+0000e5d0: 6d65 3d22 6c30 3033 3736 223e 3c2f 613e me=\"l00376\">\n+0000e5e0: 3c73 7061 6e20 636c 6173 733d 226c 696e 376 }
    .<\n+0000e610: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0000e620: 3e3c 6120 6964 3d22 6c30 3033 3737 2220 > 377 }
    .<\n+0000e670: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0000e680: 3e3c 6120 6964 3d22 6c30 3033 3738 2220 > 378
    .
    392 \n+0000e720: 2020 203c 7370 616e 2063 6c61 7373 3d22 templat\n+0000e740: 653c 2f73 7061 6e3e 266c 743b 3c73 7061 e<typename T>
    .\n+0000e790: 3c61 2069 643d 226c 3030 3339 3322 206e 393 \n+0000e7f0: 766f 6964 3c2f 7370 616e 3e20 6765 7444 void getD\n+0000e800: 6f6d 6169 6e28 3c73 7061 6e20 636c 6173 omain(cons\n+0000e820: 743c 2f73 7061 6e3e 204d 5049 5f43 6f6d t MPI_Com\n+0000e830: 6d26 616d 703b 2063 6f6d 6d2c 2054 202a m& comm, T *\n+0000e840: 7061 7274 2c20 3c73 7061 6e20 636c 6173 part, \n+0000e860: 696e 743c 2f73 7061 6e3e 206e 756d 4f66 int numOf\n+0000e870: 4f77 6e56 7478 2c20 3c73 7061 6e20 636c OwnVtx, int npa\n+0000e8a0: 7274 732c 203c 7370 616e 2063 6c61 7373 rts, i\n+0000e8c0: 6e74 3c2f 7370 616e 3e20 2a6d 7944 6f6d nt *myDom\n+0000e8d0: 6169 6e2c 2073 7464 3a3a 7665 6374 6f72 ain, std::vector\n+0000e8e0: 266c 743b 696e 7426 6774 3b20 2661 6d70 <int> &\n+0000e8f0: 3b64 6f6d 6169 6e4d 6170 7069 6e67 2920 ;domainMapping) \n+0000e900: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n+0000e950: 2020 3339 343c 2f73 7061 6e3e 2020 2020 394 \n+0000e960: 2020 3c73 7061 6e20 636c 6173 733d 226b int<\n+0000e980: 2f73 7061 6e3e 206e 7065 732c 206d 7970 /span> npes, myp\n+0000e990: 653b 3c2f 6469 763e 0a3c 6469 7620 636c e;
    .
    395 \n+0000e9f0: 2020 204d 5049 5f43 6f6d 6d5f 7369 7a65 MPI_Comm_size\n+0000ea00: 2863 6f6d 6d2c 2026 616d 703b 6e70 6573 (comm, &npes\n+0000ea10: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    396 \n+0000ea70: 2020 204d 5049 5f43 6f6d 6d5f 7261 6e6b MPI_Comm_rank\n+0000ea80: 2863 6f6d 6d2c 2026 616d 703b 6d79 7065 (comm, &mype\n+0000ea90: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    397 \n+0000eaf0: 2020 204d 5049 5f53 7461 7475 7320 7374 MPI_Status st\n+0000eb00: 6174 7573 3b3c 2f64 6976 3e0a 3c64 6976 atus;
    .<\n+0000eb40: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000eb50: 6e6f 223e 2020 3339 383c 2f73 7061 6e3e no\"> 398
    \n+0000eb60: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+0000ebb0: 2020 3339 393c 2f73 7061 6e3e 2020 2020 399 \n+0000ebc0: 2020 2a6d 7944 6f6d 6169 6e20 3d20 2d31 *myDomain = -1\n+0000ebd0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0000ec20: 2020 3430 303c 2f73 7061 6e3e 2020 2020 400 \n+0000ec30: 2020 3c73 7061 6e20 636c 6173 733d 226b int<\n+0000ec50: 2f73 7061 6e3e 2069 3d30 3b3c 2f64 6976 /span> i=0;.
    401<\n+0000ecb0: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> int\n+0000ece0: 206a 3d30 3b3c 2f64 6976 3e0a 3c64 6976 j=0;
    .<\n+0000ed20: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000ed30: 6e6f 223e 2020 3430 323c 2f73 7061 6e3e no\"> 402
    \n+0000ed40: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+0000ed90: 2020 3430 333c 2f73 7061 6e3e 2020 2020 403 \n+0000eda0: 2020 7374 643a 3a76 6563 746f 7226 6c74 std::vector<\n+0000edb0: 3b69 6e74 2667 743b 2064 6f6d 6169 6e28 ;int> domain(\n+0000edc0: 6e70 6172 7473 2c20 3029 3b3c 2f64 6976 nparts, 0);.
    404<\n+0000ee20: 2f73 7061 6e3e 2020 2020 2020 7374 643a /span> std:\n+0000ee30: 3a76 6563 746f 7226 6c74 3b69 6e74 2667 :vector<int&g\n+0000ee40: 743b 2061 7373 6967 6e65 6428 6e70 6573 t; assigned(npes\n+0000ee50: 2c20 3029 3b3c 2f64 6976 3e0a 3c64 6976 , 0);
    .<\n+0000ee90: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000eea0: 6e6f 223e 2020 3430 353c 2f73 7061 6e3e no\"> 405\n+0000eeb0: 2020 2020 2020 3c73 7061 6e20 636c 6173 // i\n+0000eed0: 6e69 7420 646f 6d61 696e 204d 6170 7069 nit domain Mappi\n+0000eee0: 6e67 3c2f 7370 616e 3e3c 2f64 6976 3e0a ng
    .\n+0000eef0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+0000ef80: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0000f010: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000f020: 6e6f 223e 2020 3430 383c 2f73 7061 6e3e no\"> 408
    \n+0000f030: 2020 2020 2020 3c73 7061 6e20 636c 6173 // c\n+0000f050: 6f75 6e74 2074 6865 206f 6363 7572 7265 ount the occurre\n+0000f060: 6e63 6520 6f66 2064 6f6d 6169 6e73 3c2f nce of domains
    .<\n+0000f0b0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000f0c0: 6e6f 223e 2020 3430 393c 2f73 7061 6e3e no\"> 409\n+0000f0d0: 2020 2020 2020 3c73 7061 6e20 636c 6173 \n+0000f0f0: 666f 723c 2f73 7061 6e3e 2028 693d 303b for (i=0;\n+0000f100: 2069 266c 743b 6e75 6d4f 664f 776e 5674 i<numOfOwnVt\n+0000f110: 783b 2069 2b2b 2920 7b3c 2f64 6976 3e0a x; i++) {
    .\n+0000f120: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0000f150: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 410 doma\n+0000f180: 696e 5b70 6172 745b 695d 5d2b 2b3b 3c2f in[part[i]]++;.
    4\n+0000f1e0: 3131 3c2f 7370 616e 3e20 2020 2020 207d 11 }\n+0000f1f0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0000f240: 2034 3132 3c2f 7370 616e 3e20 3c2f 6469 412 .
    413\n+0000f2a0: 3c2f 7370 616e 3e20 2020 2020 2073 7464 std\n+0000f2b0: 3a3a 7665 6374 6f72 266c 743b 696e 7426 ::vector<int&\n+0000f2c0: 6774 3b20 646f 6d61 696e 4d61 7472 6978 gt; domainMatrix\n+0000f2d0: 286e 7065 7320 2a20 6e70 6172 7473 2c20 (npes * nparts, \n+0000f2e0: 2d31 293b 3c2f 6469 763e 0a3c 6469 7620 -1);
    .
    414 \n+0000f340: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0000f390: 2034 3135 3c2f 7370 616e 3e20 2020 2020 415 \n+0000f3a0: 203c 7370 616e 2063 6c61 7373 3d22 636f // init b\n+0000f3c0: 7566 6665 7220 7769 7468 2074 6865 206f uffer with the o\n+0000f3d0: 776e 2064 6f6d 6169 6e3c 2f73 7061 6e3e wn domain\n+0000f3e0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0000f430: 2034 3136 3c2f 7370 616e 3e20 2020 2020 416 \n+0000f440: 203c 7370 616e 2063 6c61 7373 3d22 6b65 int *buf = new int[nparts];.
    417<\n+0000f510: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> for\n+0000f540: 2028 693d 303b 2069 266c 743b 6e70 6172 (i=0; i<npar\n+0000f550: 7473 3b20 692b 2b29 207b 3c2f 6469 763e ts; i++) {
    \n+0000f560: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0000f590: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 418 buf\n+0000f5c0: 5b69 5d20 3d20 646f 6d61 696e 5b69 5d3b [i] = domain[i];\n+0000f5d0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0000f620: 2034 3139 3c2f 7370 616e 3e20 2020 2020 419 \n+0000f630: 2020 2064 6f6d 6169 6e4d 6174 7269 785b domainMatrix[\n+0000f640: 6d79 7065 2a6e 7061 7274 732b 695d 203d mype*nparts+i] =\n+0000f650: 2064 6f6d 6169 6e5b 695d 3b3c 2f64 6976 domain[i];.
    420<\n+0000f6b0: 2f73 7061 6e3e 2020 2020 2020 7d3c 2f64 /span> }.
    42\n+0000f710: 313c 2f73 7061 6e3e 2020 2020 2020 3c73 1 int pe=0;
    .<\n+0000f750: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0000f760: 3e3c 6120 6964 3d22 6c30 3034 3232 2220 > 422 int sr\n+0000f7d0: 6320 3d20 286d 7970 652d 312b 6e70 6573 c = (mype-1+npes\n+0000f7e0: 2925 6e70 6573 3b3c 2f64 6976 3e0a 3c64 )%npes;
    .\n+0000f800: 3c61 2069 643d 226c 3030 3432 3322 206e 423 int des\n+0000f870: 7420 3d20 286d 7970 652b 3129 256e 7065 t = (mype+1)%npe\n+0000f880: 733b 3c2f 6469 763e 0a3c 6469 7620 636c s;
    .
    424 \n+0000f8e0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // ring\n+0000f900: 2063 6f6d 6d75 6e69 6361 7469 6f6e 2c20 communication, \n+0000f910: 7765 206e 6565 6420 6e2d 3120 636f 6d6d we need n-1 comm\n+0000f920: 756e 6963 6174 696f 6e73 2066 6f72 206e unications for n\n+0000f930: 2070 726f 6365 7373 6f72 733c 2f73 7061 processors
    .
    425 \n+0000f9a0: 2020 203c 7370 616e 2063 6c61 7373 3d22 for\n+0000f9c0: 3c2f 7370 616e 3e20 2869 3d30 3b20 6926 (i=0; i&\n+0000f9d0: 6c74 3b6e 7065 732d 313b 2069 2b2b 2920 lt;npes-1; i++) \n+0000f9e0: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n+0000fa30: 2020 3432 363c 2f73 7061 6e3e 2020 2020 426 \n+0000fa40: 2020 2020 4d50 495f 5365 6e64 7265 6376 MPI_Sendrecv\n+0000fa50: 5f72 6570 6c61 6365 2862 7566 2c20 6e70 _replace(buf, np\n+0000fa60: 6172 7473 2c20 4d50 495f 494e 542c 2064 arts, MPI_INT, d\n+0000fa70: 6573 742c 2030 2c20 7372 632c 2030 2c20 est, 0, src, 0, \n+0000fa80: 636f 6d6d 2c20 2661 6d70 3b73 7461 7475 comm, &statu\n+0000fa90: 7329 3b3c 2f64 6976 3e0a 3c64 6976 2063 s);
    .
    427 \n+0000faf0: 2020 2020 2020 3c73 7061 6e20 636c 6173 // p\n+0000fb10: 6520 6973 2074 6865 2070 726f 6365 7373 e is the process\n+0000fb20: 206f 6620 7468 6520 6163 7475 616c 2072 of the actual r\n+0000fb30: 6563 6569 7665 6420 6275 6666 6572 3c2f eceived buffer
    .<\n+0000fb80: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000fb90: 6e6f 223e 2020 3432 383c 2f73 7061 6e3e no\"> 428\n+0000fba0: 2020 2020 2020 2020 7065 203d 2028 286d pe = ((m\n+0000fbb0: 7970 652d 312d 6929 2b6e 7065 7329 256e ype-1-i)+npes)%n\n+0000fbc0: 7065 733b 3c2f 6469 763e 0a3c 6469 7620 pes;
    .
    429 \n+0000fc20: 2020 2020 2020 203c 7370 616e 2063 6c61 for(j=0;\n+0000fc50: 206a 266c 743b 6e70 6172 7473 3b20 6a2b j<nparts; j+\n+0000fc60: 2b29 207b 3c2f 6469 763e 0a3c 6469 7620 +) {
    .
    430 \n+0000fcc0: 2020 2020 2020 2020 203c 7370 616e 2063 /\n+0000fce0: 2f20 7361 7665 2074 6865 2076 616c 7565 / save the value\n+0000fcf0: 7320 746f 2074 6865 2064 6f6d 6169 6e20 s to the domain \n+0000fd00: 6d61 7472 6978 3c2f 7370 616e 3e3c 2f64 matrix.
    43\n+0000fd60: 313c 2f73 7061 6e3e 2020 2020 2020 2020 1 \n+0000fd70: 2020 646f 6d61 696e 4d61 7472 6978 5b70 domainMatrix[p\n+0000fd80: 652a 6e70 6172 7473 2b6a 5d20 3d20 6275 e*nparts+j] = bu\n+0000fd90: 665b 6a5d 3b3c 2f64 6976 3e0a 3c64 6976 f[j];
    .<\n+0000fdd0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0000fde0: 6e6f 223e 2020 3433 323c 2f73 7061 6e3e no\"> 432\n+0000fdf0: 2020 2020 2020 2020 7d3c 2f64 6976 3e0a }
    .\n+0000fe00: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0000fe30: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 433 }.
    434<\n+0000feb0: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> delete[\n+0000fee0: 5d20 6275 663b 3c2f 6469 763e 0a3c 6469 ] buf;
    .<\n+0000ff00: 6120 6964 3d22 6c30 3034 3335 2220 6e61 a id=\"l00435\" na\n+0000ff10: 6d65 3d22 6c30 3034 3335 223e 3c2f 613e me=\"l00435\">\n+0000ff20: 3c73 7061 6e20 636c 6173 733d 226c 696e 435
    .
    436 \n+0000ffa0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // Star\n+0000ffc0: 7420 7468 6520 646f 6d61 696e 2063 616c t the domain cal\n+0000ffd0: 6375 6c61 7469 6f6e 2e3c 2f73 7061 6e3e culation.\n+0000ffe0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00010030: 2034 3337 3c2f 7370 616e 3e20 2020 2020 437 \n+00010040: 203c 7370 616e 2063 6c61 7373 3d22 636f // The pr\n+00010060: 6f63 6573 7320 7768 6963 6820 636f 6e74 ocess which cont\n+00010070: 6169 6e73 2074 6865 206d 6178 696d 756d ains the maximum\n+00010080: 206e 756d 6265 7220 6f66 2076 6572 7469 number of verti\n+00010090: 6365 7320 6f66 2061 3c2f 7370 616e 3e3c ces of a<\n+000100a0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+000100f0: 3433 383c 2f73 7061 6e3e 2020 2020 2020 438 \n+00010100: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // particu\n+00010120: 6c61 7220 646f 6d61 696e 2069 7320 7365 lar domain is se\n+00010130: 6c65 6374 6564 2074 6f20 6368 6f6f 7365 lected to choose\n+00010140: 2069 7426 2333 393b 7320 6661 766f 7261 it's favora\n+00010150: 7465 2064 6f6d 6169 6e3c 2f73 7061 6e3e te domain\n+00010160: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000101b0: 2034 3339 3c2f 7370 616e 3e20 2020 2020 439 \n+000101c0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 int maxOccuran\n+000101f0: 6365 203d 2030 3b3c 2f64 6976 3e0a 3c64 ce = 0;
    .\n+00010210: 3c61 2069 643d 226c 3030 3434 3022 206e 440 pe = -1;\n+00010260: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000102b0: 2034 3431 3c2f 7370 616e 3e20 2020 2020 441 \n+000102c0: 2073 7464 3a3a 7365 7426 6c74 3b73 7464 std::set<std\n+000102d0: 3a3a 7369 7a65 5f74 2667 743b 2075 6e61 ::size_t> una\n+000102e0: 7373 6967 6e65 643b 3c2f 6469 763e 0a3c ssigned;
    .<\n+000102f0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00010300: 3e3c 6120 6964 3d22 6c30 3034 3432 2220 > 442
    .
    443 \n+000103a0: 2020 2020 203c 7370 616e 2063 6c61 7373 f\n+000103c0: 6f72 3c2f 7370 616e 3e28 693d 303b 2069 or(i=0; i\n+000103d0: 266c 743b 6e70 6172 7473 3b20 692b 2b29 <nparts; i++)\n+000103e0: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    444 \n+00010440: 2020 2020 203c 7370 616e 2063 6c61 7373 f\n+00010460: 6f72 3c2f 7370 616e 3e28 6a3d 303b 206a or(j=0; j\n+00010470: 266c 743b 6e70 6573 3b20 6a2b 2b29 207b <npes; j++) {\n+00010480: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000104d0: 2034 3435 3c2f 7370 616e 3e20 2020 2020 445 \n+000104e0: 2020 2020 203c 7370 616e 2063 6c61 7373 // pr\n+00010500: 6f63 6573 7320 6861 7320 6e6f 2064 6f6d ocess has no dom\n+00010510: 6169 6e20 6173 7369 676e 6564 3c2f 7370 ain assigned
    .
    446 \n+00010580: 2020 2020 2020 2020 3c73 7061 6e20 636c if (ass\n+000105b0: 6967 6e65 645b 6a5d 3d3d 3029 207b 3c2f igned[j]==0) {.
    4\n+00010610: 3437 3c2f 7370 616e 3e20 2020 2020 2020 47 \n+00010620: 2020 2020 203c 7370 616e 2063 6c61 7373 i\n+00010640: 663c 2f73 7061 6e3e 2028 6d61 784f 6363 f (maxOcc\n+00010650: 7572 616e 6365 2026 6c74 3b20 646f 6d61 urance < doma\n+00010660: 696e 4d61 7472 6978 5b6a 2a6e 7061 7274 inMatrix[j*npart\n+00010670: 732b 695d 2920 7b3c 2f64 6976 3e0a 3c64 s+i]) {
    .\n+00010690: 3c61 2069 643d 226c 3030 3434 3822 206e 448 \n+000106e0: 6d61 784f 6363 7572 616e 6365 203d 2064 maxOccurance = d\n+000106f0: 6f6d 6169 6e4d 6174 7269 785b 6a2a 6e70 omainMatrix[j*np\n+00010700: 6172 7473 2b69 5d3b 3c2f 6469 763e 0a3c arts+i];
    .<\n+00010710: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00010720: 3e3c 6120 6964 3d22 6c30 3034 3439 2220 > 449 \n+00010770: 2070 6520 3d20 6a3b 3c2f 6469 763e 0a3c pe = j;
    .<\n+00010780: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00010790: 3e3c 6120 6964 3d22 6c30 3034 3530 2220 > 450 }\n+000107e0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00010830: 2034 3531 3c2f 7370 616e 3e20 2020 2020 451 \n+00010840: 2020 2020 207d 3c2f 6469 763e 0a3c 6469 }
    .<\n+00010860: 6120 6964 3d22 6c30 3034 3532 2220 6e61 a id=\"l00452\" na\n+00010870: 6d65 3d22 6c30 3034 3532 223e 3c2f 613e me=\"l00452\">\n+00010880: 3c73 7061 6e20 636c 6173 733d 226c 696e 452
    .
    453 \n+00010900: 2020 2020 207d 3c2f 6469 763e 0a3c 6469 }
    .<\n+00010920: 6120 6964 3d22 6c30 3034 3534 2220 6e61 a id=\"l00454\" na\n+00010930: 6d65 3d22 6c30 3034 3534 223e 3c2f 613e me=\"l00454\">\n+00010940: 3c73 7061 6e20 636c 6173 733d 226c 696e 454 if (pe\n+00010990: 213d 2d31 2920 7b3c 2f64 6976 3e0a 3c64 !=-1) {
    .\n+000109b0: 3c61 2069 643d 226c 3030 3435 3522 206e 455 // process got\n+00010a20: 2061 2064 6f6d 6169 6e2c 202e 2e2e 3c2f a domain, ...
    .<\n+00010a70: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00010a80: 6e6f 223e 2020 3435 363c 2f73 7061 6e3e no\"> 456\n+00010a90: 2020 2020 2020 2020 2020 646f 6d61 696e domain\n+00010aa0: 4d61 7070 696e 675b 695d 203d 2070 653b Mapping[i] = pe;\n+00010ab0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00010b00: 2034 3537 3c2f 7370 616e 3e20 2020 2020 457 \n+00010b10: 2020 2020 203c 7370 616e 2063 6c61 7373 // ..\n+00010b30: 2e6d 6172 6b20 6173 2061 7373 6967 6e65 .mark as assigne\n+00010b40: 643c 2f73 7061 6e3e 3c2f 6469 763e 0a3c d
    .<\n+00010b50: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00010b60: 3e3c 6120 6964 3d22 6c30 3034 3538 2220 > 458 ass\n+00010bb0: 6967 6e65 645b 7065 5d20 3d20 313b 3c2f igned[pe] = 1;.
    4\n+00010c10: 3539 3c2f 7370 616e 3e20 2020 2020 2020 59 \n+00010c20: 2020 203c 7370 616e 2063 6c61 7373 3d22 if<\n+00010c40: 2f73 7061 6e3e 2028 7065 3d3d 6d79 7065 /span> (pe==mype\n+00010c50: 2920 7b3c 2f64 6976 3e0a 3c64 6976 2063 ) {
    .
    460 \n+00010cb0: 2020 2020 2020 2020 2020 2a6d 7944 6f6d *myDom\n+00010cc0: 6169 6e20 3d20 693b 3c2f 6469 763e 0a3c ain = i;
    .<\n+00010cd0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00010ce0: 3e3c 6120 6964 3d22 6c30 3034 3631 2220 > 461 }.
    4\n+00010d80: 3632 3c2f 7370 616e 3e20 2020 2020 2020 62 \n+00010d90: 2020 2070 6520 3d20 2d31 3b3c 2f64 6976 pe = -1;.
    463<\n+00010df0: 2f73 7061 6e3e 2020 2020 2020 2020 7d3c /span> }<\n+00010e00: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00010e50: 3436 343c 2f73 7061 6e3e 2020 2020 2020 464 \n+00010e60: 2020 3c73 7061 6e20 636c 6173 733d 226b else\n+00010e80: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00010ea0: 3c61 2069 643d 226c 3030 3436 3522 206e 465 {.
    466<\n+00010f40: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00010f50: 756e 6173 7369 676e 6564 2e69 6e73 6572 unassigned.inser\n+00010f60: 7428 6929 3b3c 2f64 6976 3e0a 3c64 6976 t(i);
    .<\n+00010fa0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00010fb0: 6e6f 223e 2020 3436 373c 2f73 7061 6e3e no\"> 467
    \n+00010fc0: 2020 2020 2020 2020 7d3c 2f64 6976 3e0a }
    .\n+00010fd0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00011000: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 468 maxO\n+00011030: 6363 7572 616e 6365 203d 2030 3b3c 2f64 ccurance = 0;.
    46\n+00011090: 393c 2f73 7061 6e3e 2020 2020 2020 7d3c 9 }<\n+000110a0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+000110f0: 3437 303c 2f73 7061 6e3e 203c 2f64 6976 470 .
    471<\n+00011150: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> typename std::vector<\n+00011190: 3b69 6e74 2667 743b 3a3a 6974 6572 6174 ;int>::iterat\n+000111a0: 6f72 206e 6578 745f 6672 6565 203d 2061 or next_free = a\n+000111b0: 7373 6967 6e65 642e 6265 6769 6e28 293b ssigned.begin();\n+000111c0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00011210: 2034 3732 3c2f 7370 616e 3e20 3c2f 6469 472 .
    473\n+00011270: 3c2f 7370 616e 3e20 2020 2020 203c 7370 for(auto udomain = un\n+000112d0: 6173 7369 676e 6564 2e62 6567 696e 2829 assigned.begin()\n+000112e0: 2c3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ,
    .
    \n+00011330: 2020 3437 343c 2f73 7061 6e3e 2020 2020 474 \n+00011340: 2020 2020 2020 2020 656e 6420 3d20 756e end = un\n+00011350: 6173 7369 676e 6564 2e65 6e64 2829 3b20 assigned.end(); \n+00011360: 7564 6f6d 6169 6e20 213d 2065 6e64 3b20 udomain != end; \n+00011370: 2b2b 7564 6f6d 6169 6e29 3c2f 6469 763e ++udomain)
    \n+00011380: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000113b0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 475 {.
    476\n+00011430: 3c2f 7370 616e 3e20 2020 2020 2020 206e n\n+00011440: 6578 745f 6672 6565 203d 2073 7464 3a3a ext_free = std::\n+00011450: 6669 6e64 5f69 6628 6e65 7874 5f66 7265 find_if(next_fre\n+00011460: 652c 2061 7373 6967 6e65 642e 656e 6428 e, assigned.end(\n+00011470: 292c 2073 7464 3a3a 6269 6e64 2873 7464 ), std::bind(std\n+00011480: 3a3a 6c65 7373 266c 743b 696e 7426 6774 ::less<int>\n+00011490: 3b28 292c 2073 7464 3a3a 706c 6163 6568 ;(), std::placeh\n+000114a0: 6f6c 6465 7273 3a3a 5f31 2c20 3129 293b olders::_1, 1));\n+000114b0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00011500: 2034 3737 3c2f 7370 616e 3e20 2020 2020 477 \n+00011510: 2020 2061 7373 6572 7428 6e65 7874 5f66 assert(next_f\n+00011520: 7265 6520 213d 2020 6173 7369 676e 6564 ree != assigned\n+00011530: 2e65 6e64 2829 293b 3c2f 6469 763e 0a3c .end());
    .<\n+00011540: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00011550: 3e3c 6120 6964 3d22 6c30 3034 3738 2220 > 478 domai\n+000115a0: 6e4d 6170 7069 6e67 5b2a 7564 6f6d 6169 nMapping[*udomai\n+000115b0: 6e5d 203d 206e 6578 745f 6672 6565 2d61 n] = next_free-a\n+000115c0: 7373 6967 6e65 642e 6265 6769 6e28 293b ssigned.begin();\n+000115d0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00011620: 2034 3739 3c2f 7370 616e 3e20 2020 2020 479 \n+00011630: 2020 202a 6e65 7874 5f66 7265 6520 3d20 *next_free = \n+00011640: 313b 3c2f 6469 763e 0a3c 6469 7620 636c 1;
    .
    480 \n+000116a0: 2020 207d 3c2f 6469 763e 0a3c 6469 7620 }
    .
    481 \n+00011700: 2020 207d 3c2f 6469 763e 0a3c 6469 7620 }
    .
    482 \n+00011760: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000117b0: 2034 3833 3c2f 7370 616e 3e20 2020 203c 483 <\n+000117c0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+000117d0: 6f72 6422 3e73 7472 7563 7420 3c2f 7370 ord\">struct SortFirst.
    484\n+00011840: 3c2f 7370 616e 3e20 2020 207b 3c2f 6469 {.
    485\n+000118a0: 3c2f 7370 616e 3e20 2020 2020 203c 7370 template<clas\n+000118f0: 733c 2f73 7061 6e3e 2054 2667 743b 3c2f s T>.
    4\n+00011950: 3836 3c2f 7370 616e 3e20 2020 2020 203c 86 <\n+00011960: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00011970: 6f72 6474 7970 6522 3e62 6f6f 6c3c 2f73 ordtype\">bool operator()(\n+00011990: 3c73 7061 6e20 636c 6173 733d 226b 6579 const T& t1, const\n+000119e0: 2054 2661 6d70 3b20 7432 293c 7370 616e T& t2) const.
    4\n+00011a60: 3837 3c2f 7370 616e 3e3c 7370 616e 2063 87 \n+00011a80: 2020 2020 203c 2f73 7061 6e3e 7b3c 2f64 {.
    48\n+00011ae0: 383c 2f73 7061 6e3e 2020 2020 2020 2020 8 \n+00011af0: 3c73 7061 6e20 636c 6173 733d 226b 6579 return\n+00011b10: 3c2f 7370 616e 3e20 7431 266c 743b 7432 t1<t2\n+00011b20: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00011b70: 2020 3438 393c 2f73 7061 6e3e 2020 2020 489 \n+00011b80: 2020 7d3c 2f64 6976 3e0a 3c64 6976 2063 }
    .
    490 \n+00011be0: 2020 7d3b 3c2f 6469 763e 0a3c 6469 7620 };
    .
    491 \n+00011c40: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00011c90: 2034 3932 3c2f 7370 616e 3e20 3c2f 6469 492 .
    503\n+00011cf0: 3c2f 7370 616e 3e20 2020 203c 7370 616e template\n+00011d20: 266c 743b 3c73 7061 6e20 636c 6173 733d <class<\n+00011d40: 2f73 7061 6e3e 2047 4926 6774 3b3c 2f64 /span> GI>.
    50\n+00011da0: 343c 2f73 7061 6e3e 2020 2020 3c73 7061 4 void mergeVec(std::\n+00011de0: 7665 6374 6f72 266c 743b 7374 643a 3a70 vector<std::p\n+00011df0: 6169 7226 6c74 3b47 492c 2069 6e74 2667 air<GI, int&g\n+00011e00: 743b 2026 6774 3b26 616d 703b 206f 776e t; >& own\n+00011e10: 6572 5665 632c 2073 7464 3a3a 7365 7426 erVec, std::set&\n+00011e20: 6c74 3b47 4926 6774 3b26 616d 703b 206f lt;GI>& o\n+00011e30: 7665 726c 6170 5365 7429 207b 3c2f 6469 verlapSet) {.
    505\n+00011e90: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+00011ea0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00011eb0: 3e3c 6120 6964 3d22 6c30 3035 3036 2220 > 506#i\n+00011f10: 6664 6566 2044 4542 5547 5f52 4550 4152 fdef DEBUG_REPAR\n+00011f20: 543c 2f73 7061 6e3e 3c2f 6469 763e 0a3c T
    .<\n+00011f30: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00011f40: 3e3c 6120 6964 3d22 6c30 3035 3037 2220 > 507 /\n+00011fa0: 2f20 5361 6665 7479 2063 6865 636b 2066 / Safety check f\n+00011fb0: 6f72 2064 7570 6c69 6361 7465 732e 3c2f or duplicates.
    .<\n+00012000: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00012010: 6e6f 223e 2020 3530 383c 2f73 7061 6e3e no\"> 508\n+00012020: 2020 2020 2020 3c73 7061 6e20 636c 6173 \n+00012040: 6966 3c2f 7370 616e 3e28 6f77 6e65 7256 if(ownerV\n+00012050: 6563 2e73 697a 6528 2926 6774 3b30 293c ec.size()>0)<\n+00012060: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+000120b0: 3530 393c 2f73 7061 6e3e 2020 2020 2020 509 \n+000120c0: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n+00012110: 2020 3531 303c 2f73 7061 6e3e 2020 2020 510 \n+00012120: 2020 2020 3c73 7061 6e20 636c 6173 733d auto old=ownerV\n+00012150: 6563 2e62 6567 696e 2829 3b3c 2f64 6976 ec.begin();.
    511<\n+000121b0: 2f73 7061 6e3e 2020 2020 2020 2020 3c73 /span> for(auto i=old+1, en\n+00012210: 643d 6f77 6e65 7256 6563 2e65 6e64 2829 d=ownerVec.end()\n+00012220: 3b20 6920 213d 2065 6e64 3b20 6f6c 643d ; i != end; old=\n+00012230: 692b 2b29 3c2f 6469 763e 0a3c 6469 7620 i++)
    .
    512 \n+00012290: 2020 2020 2020 207b 3c2f 6469 763e 0a3c {
    .<\n+000122a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000122b0: 3e3c 6120 6964 3d22 6c30 3035 3133 2220 > 513 if\n+00012320: 2869 2d26 6774 3b66 6972 7374 3d3d 6f6c (i->first==ol\n+00012330: 642d 2667 743b 6669 7273 7429 3c2f 6469 d->first).
    514\n+00012390: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+000123a0: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    515 \n+00012400: 2020 2020 2020 2020 2073 7464 3a3a 6365 std::ce\n+00012410: 7272 266c 743b 266c 743b 3c73 7061 6e20 rr<<"Valu\n+00012440: 6520 6174 2069 6e64 6573 2671 756f 743b e at indes"\n+00012450: 3c2f 7370 616e 3e26 6c74 3b26 6c74 3b6f <<o\n+00012460: 6c64 2d6f 776e 6572 5665 632e 6265 6769 ld-ownerVec.begi\n+00012470: 6e28 2926 6c74 3b26 6c74 3b3c 7370 616e n()<<" is\n+000124a0: 2074 6865 2073 616d 6520 6173 2061 7420 the same as at \n+000124b0: 696e 6465 7820 2671 756f 743b 3c2f 7370 index "
    .
    516 \n+00012520: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012530: 2020 2026 6c74 3b26 6c74 3b69 2d6f 776e <<i-own\n+00012540: 6572 5665 632e 6265 6769 6e28 2926 6c74 erVec.begin()<\n+00012550: 3b26 6c74 3b3c 7370 616e 2063 6c61 7373 ;<" ["<\n+00012580: 2f73 7061 6e3e 266c 743b 266c 743b 6f6c /span><<ol\n+00012590: 642d 2667 743b 6669 7273 7426 6c74 3b26 d->first<&\n+000125a0: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+000125c0: 7175 6f74 3b2c 2671 756f 743b 3c2f 7370 quot;,"<<old-&\n+000125e0: 6774 3b73 6563 6f6e 6426 6c74 3b26 6c74 gt;second<<\n+000125f0: 3b3c 7370 616e 2063 6c61 7373 3d22 7374 ;&qu\n+00012610: 6f74 3b5d 3d3d 5b26 7175 6f74 3b3c 2f73 ot;]==["
    .
    517 \n+00012680: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012690: 2020 2020 266c 743b 266c 743b 692d 2667 <<i-&g\n+000126a0: 743b 6669 7273 7426 6c74 3b26 6c74 3b3c t;first<<<\n+000126b0: 7370 616e 2063 6c61 7373 3d22 7374 7269 span class=\"stri\n+000126c0: 6e67 6c69 7465 7261 6c22 3e26 7175 6f74 ngliteral\">"\n+000126d0: 3b2c 2671 756f 743b 3c2f 7370 616e 3e26 ;,"&\n+000126e0: 6c74 3b26 6c74 3b69 2d26 6774 3b73 6563 lt;<i->sec\n+000126f0: 6f6e 6426 6c74 3b26 6c74 3b3c 7370 616e ond<<"]&q\n+00012720: 756f 743b 3c2f 7370 616e 3e26 6c74 3b26 uot;<&\n+00012730: 6c74 3b73 7464 3a3a 656e 646c 3b3c 2f64 lt;std::endl;.
    51\n+00012790: 383c 2f73 7061 6e3e 2020 2020 2020 2020 8 \n+000127a0: 2020 2020 3c73 7061 6e20 636c 6173 733d th\n+000127c0: 726f 773c 2f73 7061 6e3e 203c 7370 616e row "Huc\n+000127f0: 6821 2671 756f 743b 3c2f 7370 616e 3e3b h!";\n+00012800: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00012850: 2035 3139 3c2f 7370 616e 3e20 2020 2020 519 \n+00012860: 2020 2020 207d 3c2f 6469 763e 0a3c 6469 }
    .<\n+00012880: 6120 6964 3d22 6c30 3035 3230 2220 6e61 a id=\"l00520\" na\n+00012890: 6d65 3d22 6c30 3035 3230 223e 3c2f 613e me=\"l00520\">\n+000128a0: 3c73 7061 6e20 636c 6173 733d 226c 696e 520 }
    \n+000128d0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00012900: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 521 }.
    522\n+00012980: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+00012990: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000129a0: 3e3c 6120 6964 3d22 6c30 3035 3233 2220 > 523#e\n+00012a00: 6e64 6966 3c2f 7370 616e 3e3c 2f64 6976 ndif.
    524<\n+00012a60: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+00012a80: 3c61 2069 643d 226c 3030 3532 3522 206e 525 au\n+00012ae0: 746f 3c2f 7370 616e 3e20 763d 6f77 6e65 to v=owne\n+00012af0: 7256 6563 2e62 6567 696e 2829 2c20 7665 rVec.begin(), ve\n+00012b00: 6e64 3d6f 776e 6572 5665 632e 656e 6428 nd=ownerVec.end(\n+00012b10: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    526 \n+00012b70: 2020 203c 7370 616e 2063 6c61 7373 3d22 for\n+00012b90: 3c2f 7370 616e 3e28 3c73 7061 6e20 636c (au\n+00012bb0: 746f 3c2f 7370 616e 3e20 733d 6f76 6572 to s=over\n+00012bc0: 6c61 7053 6574 2e62 6567 696e 2829 2c20 lapSet.begin(), \n+00012bd0: 7365 6e64 3d6f 7665 726c 6170 5365 742e send=overlapSet.\n+00012be0: 656e 6428 293b 2073 213d 7365 6e64 3b29 end(); s!=send;)\n+00012bf0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00012c40: 2035 3237 3c2f 7370 616e 3e20 2020 2020 527 \n+00012c50: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    528 \n+00012cb0: 2020 2020 203c 7370 616e 2063 6c61 7373 w\n+00012cd0: 6869 6c65 3c2f 7370 616e 3e28 7621 3d76 hile(v!=v\n+00012ce0: 656e 6420 2661 6d70 3b26 616d 703b 2076 end && v\n+00012cf0: 2d26 6774 3b66 6972 7374 266c 743b 2a73 ->first<*s\n+00012d00: 2920 2b2b 763b 3c2f 6469 763e 0a3c 6469 ) ++v;
    .<\n+00012d20: 6120 6964 3d22 6c30 3035 3239 2220 6e61 a id=\"l00529\" na\n+00012d30: 6d65 3d22 6c30 3035 3239 223e 3c2f 613e me=\"l00529\">\n+00012d40: 3c73 7061 6e20 636c 6173 733d 226c 696e 529 if(v!=\n+00012d90: 7665 6e64 2026 616d 703b 2661 6d70 3b20 vend && \n+00012da0: 762d 2667 743b 6669 7273 743d 3d2a 7329 v->first==*s)\n+00012db0: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    530 \n+00012e10: 2020 2020 2020 203c 7370 616e 2063 6c61 // \n+00012e30: 4d6f 7665 2074 6f20 7468 6520 6e65 7874 Move to the next\n+00012e40: 2065 6c65 6d65 6e74 2062 6566 6f72 6520 element before \n+00012e50: 6572 6173 696e 673c 2f73 7061 6e3e 3c2f erasing.
    5\n+00012eb0: 3331 3c2f 7370 616e 3e20 2020 2020 2020 31 \n+00012ec0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // thus\n+00012ee0: 2073 2073 7461 7973 2076 616c 6964 213c s stays valid!<\n+00012ef0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00012f10: 6120 6964 3d22 6c30 3035 3332 2220 6e61 a id=\"l00532\" na\n+00012f20: 6d65 3d22 6c30 3035 3332 223e 3c2f 613e me=\"l00532\">\n+00012f30: 3c73 7061 6e20 636c 6173 733d 226c 696e 532 auto tmp\n+00012f80: 3d73 3b3c 2f64 6976 3e0a 3c64 6976 2063 =s;
    .
    533 \n+00012fe0: 2020 2020 2020 2020 2b2b 733b 3c2f 6469 ++s;.
    534\n+00013040: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00013050: 206f 7665 726c 6170 5365 742e 6572 6173 overlapSet.eras\n+00013060: 6528 746d 7029 3b3c 2f64 6976 3e0a 3c64 e(tmp);
    .\n+00013080: 3c61 2069 643d 226c 3030 3533 3522 206e 535 }else\n+000130f0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00013140: 2035 3336 3c2f 7370 616e 3e20 2020 2020 536 \n+00013150: 2020 2020 202b 2b73 3b3c 2f64 6976 3e0a ++s;
    .\n+00013160: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00013190: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 537 }.
    538<\n+00013210: 2f73 7061 6e3e 2020 2020 7d3c 2f64 6976 /span> }.
    539<\n+00013270: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+00013290: 3c61 2069 643d 226c 3030 3534 3022 206e 540
    .
    554 \n+00013330: 2020 3c73 7061 6e20 636c 6173 733d 226b template\n+00013350: 3c2f 7370 616e 3e26 6c74 3b3c 7370 616e <class Ow\n+00013380: 6e65 7253 6574 2c20 3c73 7061 6e20 636c nerSet, cl\n+000133a0: 6173 733c 2f73 7061 6e3e 2047 7261 7068 ass Graph\n+000133b0: 2c20 3c73 7061 6e20 636c 6173 733d 226b , class IS, c\n+000133f0: 6c61 7373 3c2f 7370 616e 3e20 4749 2667 lass GI&g\n+00013400: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    555 \n+00013460: 203c 7370 616e 2063 6c61 7373 3d22 6b65 void<\n+00013480: 2f73 7061 6e3e 2067 6574 4e65 6967 6862 /span> getNeighb\n+00013490: 6f72 283c 7370 616e 2063 6c61 7373 3d22 or(const Graph&\n+000134c0: 2067 2c20 7374 643a 3a76 6563 746f 7226 g, std::vector&\n+000134d0: 6c74 3b69 6e74 2667 743b 2661 6d70 3b20 lt;int>& \n+000134e0: 7061 7274 2c3c 2f64 6976 3e0a 3c64 6976 part,
    .<\n+00013520: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00013530: 6e6f 223e 2020 3535 363c 2f73 7061 6e3e no\"> 556\n+00013540: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00013550: 2020 2020 203c 7370 616e 2063 6c61 7373 typen\n+00013570: 616d 653c 2f73 7061 6e3e 2047 7261 7068 ame Graph\n+00013580: 3a3a 5665 7274 6578 4465 7363 7269 7074 ::VertexDescript\n+00013590: 6f72 2076 7478 2c20 3c73 7061 6e20 636c or vtx, co\n+000135b0: 6e73 743c 2f73 7061 6e3e 2049 5326 616d nst IS&am\n+000135c0: 703b 2069 6e64 6578 5365 742c 3c2f 6469 p; indexSet,.
    557\n+00013620: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00013630: 2020 2020 2020 2020 2020 2020 3c73 7061 int\n+00013660: 2074 6f50 652c 2073 7464 3a3a 7365 7426 toPe, std::set&\n+00013670: 6c74 3b47 4926 6774 3b26 616d 703b 206e lt;GI>& n\n+00013680: 6569 6768 626f 722c 2073 7464 3a3a 7365 eighbor, std::se\n+00013690: 7426 6c74 3b69 6e74 2667 743b 2661 6d70 t<int>&\n+000136a0: 3b20 6e65 6967 6862 6f72 5072 6f63 7329 ; neighborProcs)\n+000136b0: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    558 \n+00013710: 2020 203c 7370 616e 2063 6c61 7373 3d22 for\n+00013730: 3c2f 7370 616e 3e28 3c73 7061 6e20 636c (au\n+00013750: 746f 3c2f 7370 616e 3e20 6564 6765 3d67 to edge=g\n+00013760: 2e62 6567 696e 4564 6765 7328 7674 7829 .beginEdges(vtx)\n+00013770: 2c20 656e 643d 672e 656e 6445 6467 6573 , end=g.endEdges\n+00013780: 2876 7478 293b 2065 6467 6521 3d65 6e64 (vtx); edge!=end\n+00013790: 3b20 2b2b 6564 6765 293c 2f64 6976 3e0a ; ++edge)
    .\n+000137a0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+000137d0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 559 {.
    560<\n+00013850: 2f73 7061 6e3e 2020 2020 2020 2020 3c73 /span> const\n+00013880: 203c 7370 616e 2063 6c61 7373 3d22 6b65 typename<\n+000138a0: 2f73 7061 6e3e 2049 533a 3a49 6e64 6578 /span> IS::Index\n+000138b0: 5061 6972 2a20 7069 6e64 6578 203d 2069 Pair* pindex = i\n+000138c0: 6e64 6578 5365 742e 7061 6972 2865 6467 ndexSet.pair(edg\n+000138d0: 652e 7461 7267 6574 2829 293b 3c2f 6469 e.target());.
    561\n+00013930: 3c2f 7370 616e 3e20 2020 2020 2020 2061 a\n+00013940: 7373 6572 7428 7069 6e64 6578 293b 3c2f ssert(pindex);.
    5\n+000139a0: 3632 3c2f 7370 616e 3e20 2020 2020 2020 62 \n+000139b0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 if(part[pindex\n+000139e0: 2d26 6774 3b6c 6f63 616c 2829 5d21 3d74 ->local()]!=t\n+000139f0: 6f50 6520 7c7c 2021 4f77 6e65 7253 6574 oPe || !OwnerSet\n+00013a00: 3a3a 636f 6e74 6169 6e73 2870 696e 6465 ::contains(pinde\n+00013a10: 782d 2667 743b 6c6f 6361 6c28 292e 6174 x->local().at\n+00013a20: 7472 6962 7574 6528 2929 293c 2f64 6976 tribute())).
    563<\n+00013a80: 2f73 7061 6e3e 2020 2020 2020 2020 7b3c /span> {<\n+00013a90: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00013ae0: 3536 343c 2f73 7061 6e3e 2020 2020 2020 564 \n+00013af0: 2020 2020 3c73 7061 6e20 636c 6173 733d // is \n+00013b10: 7365 6e74 2074 6f20 616e 6f74 6865 7220 sent to another \n+00013b20: 7072 6f63 6573 7320 616e 6420 7468 6572 process and ther\n+00013b30: 6566 6f72 6520 6265 636f 6d65 7320 6f76 efore becomes ov\n+00013b40: 6572 6c61 703c 2f73 7061 6e3e 3c2f 6469 erlap.
    565\n+00013ba0: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00013bb0: 206e 6569 6768 626f 722e 696e 7365 7274 neighbor.insert\n+00013bc0: 2870 696e 6465 782d 2667 743b 676c 6f62 (pindex->glob\n+00013bd0: 616c 2829 293b 3c2f 6469 763e 0a3c 6469 al());
    .<\n+00013bf0: 6120 6964 3d22 6c30 3035 3636 2220 6e61 a id=\"l00566\" na\n+00013c00: 6d65 3d22 6c30 3035 3636 223e 3c2f 613e me=\"l00566\">\n+00013c10: 3c73 7061 6e20 636c 6173 733d 226c 696e 566 neigh\n+00013c40: 626f 7250 726f 6373 2e69 6e73 6572 7428 borProcs.insert(\n+00013c50: 7061 7274 5b70 696e 6465 782d 2667 743b part[pindex->\n+00013c60: 6c6f 6361 6c28 295d 293b 3c2f 6469 763e local()]);
    \n+00013c70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00013ca0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 567 }.
    5\n+00013d20: 3638 3c2f 7370 616e 3e20 2020 2020 207d 68 }\n+00013d30: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00013d80: 2035 3639 3c2f 7370 616e 3e20 2020 207d 569 }\n+00013d90: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00013de0: 2035 3730 3c2f 7370 616e 3e20 3c2f 6469 570 .
    571\n+00013e40: 3c2f 7370 616e 3e20 2020 203c 7370 616e template\n+00013e70: 266c 743b 3c73 7061 6e20 636c 6173 733d <class<\n+00013e90: 2f73 7061 6e3e 2054 2c20 3c73 7061 6e20 /span> T, \n+00013eb0: 636c 6173 733c 2f73 7061 6e3e 2049 2667 class I&g\n+00013ec0: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    572 \n+00013f20: 203c 7370 616e 2063 6c61 7373 3d22 6b65 void<\n+00013f40: 2f73 7061 6e3e 206d 795f 7075 7368 5f62 /span> my_push_b\n+00013f50: 6163 6b28 7374 643a 3a76 6563 746f 7226 ack(std::vector&\n+00013f60: 6c74 3b54 2667 743b 2661 6d70 3b20 6f77 lt;T>& ow\n+00013f70: 6e65 7256 6563 2c20 3c73 7061 6e20 636c nerVec, co\n+00013f90: 6e73 743c 2f73 7061 6e3e 2049 2661 6d70 nst I&\n+00013fa0: 3b20 696e 6465 782c 205b 5b6d 6179 6265 ; index, [[maybe\n+00013fb0: 5f75 6e75 7365 645d 5d20 3c73 7061 6e20 _unused]] int p\n+00013fe0: 726f 6329 3c2f 6469 763e 0a3c 6469 7620 roc)
    .
    573 \n+00014040: 2020 207b 3c2f 6469 763e 0a3c 6469 7620 {
    .
    574 \n+000140a0: 2020 2020 206f 776e 6572 5665 632e 7075 ownerVec.pu\n+000140b0: 7368 5f62 6163 6b28 696e 6465 7829 3b3c sh_back(index);<\n+000140c0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00014110: 3537 353c 2f73 7061 6e3e 2020 2020 7d3c 575 }<\n+00014120: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00014170: 3537 363c 2f73 7061 6e3e 203c 2f64 6976 576 .
    577<\n+000141d0: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n+000141f0: 7465 6d70 6c61 7465 3c2f 7370 616e 3e26 template&\n+00014200: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;class T, c\n+00014240: 6c61 7373 3c2f 7370 616e 3e20 4926 6774 lass I>\n+00014250: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+000142a0: 2020 3537 383c 2f73 7061 6e3e 2020 2020 578 \n+000142b0: 3c73 7061 6e20 636c 6173 733d 226b 6579 void my_push_ba\n+000142e0: 636b 2873 7464 3a3a 7665 6374 6f72 266c ck(std::vector&l\n+000142f0: 743b 7374 643a 3a70 6169 7226 6c74 3b54 t;std::pair<T\n+00014300: 2c69 6e74 2667 743b 2026 6774 3b26 616d ,int> >&am\n+00014310: 703b 206f 776e 6572 5665 632c 203c 7370 p; ownerVec, const \n+00014340: 4926 616d 703b 2069 6e64 6578 2c20 3c73 I& index, int proc)
    .<\n+00014380: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00014390: 3e3c 6120 6964 3d22 6c30 3035 3739 2220 > 579 {
    .<\n+000143e0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000143f0: 3e3c 6120 6964 3d22 6c30 3035 3830 2220 > 580 ownerVe\n+00014440: 632e 7075 7368 5f62 6163 6b28 7374 643a c.push_back(std:\n+00014450: 3a6d 616b 655f 7061 6972 2869 6e64 6578 :make_pair(index\n+00014460: 2c70 726f 6329 293b 3c2f 6469 763e 0a3c ,proc));
    .<\n+00014470: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00014480: 3e3c 6120 6964 3d22 6c30 3035 3831 2220 > 581 }
    .<\n+000144d0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000144e0: 3e3c 6120 6964 3d22 6c30 3035 3832 2220 > 582 tem\n+00014540: 706c 6174 653c 2f73 7061 6e3e 266c 743b plate<\n+00014550: 3c73 7061 6e20 636c 6173 733d 226b 6579 class T>
    .<\n+00014580: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00014590: 3e3c 6120 6964 3d22 6c30 3035 3833 2220 > 583 void res\n+00014600: 6572 7665 2873 7464 3a3a 7665 6374 6f72 erve(std::vector\n+00014610: 266c 743b 5426 6774 3b26 616d 703b 2c20 <T>&, \n+00014620: 5265 6469 7374 7269 6275 7465 496e 7465 RedistributeInte\n+00014630: 7266 6163 6526 616d 703b 2c20 3c73 7061 rface&, int\n+00014660: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n+000146b0: 2020 3538 343c 2f73 7061 6e3e 2020 2020 584 \n+000146c0: 7b7d 3c2f 6469 763e 0a3c 6469 7620 636c {}
    .
    585 \n+00014720: 203c 7370 616e 2063 6c61 7373 3d22 6b65 template<\n+00014740: 2f73 7061 6e3e 266c 743b 3c73 7061 6e20 /span><\n+00014760: 636c 6173 733c 2f73 7061 6e3e 2054 2667 class T&g\n+00014770: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    586 \n+000147d0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 void<\n+000147f0: 2f73 7061 6e3e 2072 6573 6572 7665 2873 /span> reserve(s\n+00014800: 7464 3a3a 7665 6374 6f72 266c 743b 7374 td::vector<st\n+00014810: 643a 3a70 6169 7226 6c74 3b54 2c69 6e74 d::pair<T,int\n+00014820: 2667 743b 2026 6774 3b26 616d 703b 206f > >& o\n+00014830: 776e 6572 5665 632c 2052 6564 6973 7472 wnerVec, Redistr\n+00014840: 6962 7574 6549 6e74 6572 6661 6365 2661 ibuteInterface&a\n+00014850: 6d70 3b20 7265 6469 7374 2c20 3c73 7061 mp; redist, int\n+00014880: 2070 726f 6329 3c2f 6469 763e 0a3c 6469 proc)
    .<\n+000148a0: 6120 6964 3d22 6c30 3035 3837 2220 6e61 a id=\"l00587\" na\n+000148b0: 6d65 3d22 6c30 3035 3837 223e 3c2f 613e me=\"l00587\">\n+000148c0: 3c73 7061 6e20 636c 6173 733d 226c 696e 587 {
    .<\n+00014900: 6120 6964 3d22 6c30 3035 3838 2220 6e61 a id=\"l00588\" na\n+00014910: 6d65 3d22 6c30 3035 3838 223e 3c2f 613e me=\"l00588\">\n+00014920: 3c73 7061 6e20 636c 6173 733d 226c 696e 588 redist.re\n+00014950: 7365 7276 6553 7061 6365 466f 7252 6563 serveSpaceForRec\n+00014960: 6569 7665 496e 7465 7266 6163 6528 7072 eiveInterface(pr\n+00014970: 6f63 2c20 6f77 6e65 7256 6563 2e73 697a oc, ownerVec.siz\n+00014980: 6528 2929 3b3c 2f64 6976 3e0a 3c64 6976 e());
    .<\n+000149c0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000149d0: 6e6f 223e 2020 3538 393c 2f73 7061 6e3e no\"> 589\n+000149e0: 2020 2020 7d3c 2f64 6976 3e0a 3c64 6976 }
    .<\n+00014a20: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00014a30: 6e6f 223e 2020 3539 303c 2f73 7061 6e3e no\"> 590
    \n+00014a40: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+00014a90: 2020 3539 313c 2f73 7061 6e3e 203c 2f64 591 .
    60\n+00014af0: 393c 2f73 7061 6e3e 2020 2020 3c73 7061 9 template<class\n+00014b40: 3c2f 7370 616e 3e20 4f77 6e65 7253 6574 OwnerSet\n+00014b50: 2c20 3c73 7061 6e20 636c 6173 733d 226b , class G, cl\n+00014b90: 6173 733c 2f73 7061 6e3e 2049 532c 203c ass IS, <\n+00014ba0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00014bb0: 6f72 6422 3e63 6c61 7373 3c2f 7370 616e ord\">class T, class\n+00014be0: 3c2f 7370 616e 3e20 4749 2667 743b 3c2f GI>.
    6\n+00014c40: 3130 3c2f 7370 616e 3e20 2020 203c 7370 10 void getOwnerOverl\n+00014c80: 6170 5665 6328 3c73 7061 6e20 636c 6173 apVec(cons\n+00014ca0: 743c 2f73 7061 6e3e 2047 2661 6d70 3b20 t G& \n+00014cb0: 6772 6170 682c 2073 7464 3a3a 7665 6374 graph, std::vect\n+00014cc0: 6f72 266c 743b 696e 7426 6774 3b26 616d or<int>&am\n+00014cd0: 703b 2070 6172 742c 2049 5326 616d 703b p; part, IS&\n+00014ce0: 2069 6e64 6578 5365 742c 3c2f 6469 763e indexSet,
    \n+00014cf0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00014d20: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 611 \n+00014d50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00014d60: 205b 5b6d 6179 6265 5f75 6e75 7365 645d [[maybe_unused]\n+00014d70: 5d20 3c73 7061 6e20 636c 6173 733d 226b ] int<\n+00014d90: 2f73 7061 6e3e 206d 7950 652c 203c 7370 /span> myPe, int toPe, std::vec\n+00014dd0: 746f 7226 6c74 3b54 2667 743b 2661 6d70 tor<T>&\n+00014de0: 3b20 6f77 6e65 7256 6563 2c20 7374 643a ; ownerVec, std:\n+00014df0: 3a73 6574 266c 743b 4749 2667 743b 2661 :set<GI>&a\n+00014e00: 6d70 3b20 6f76 6572 6c61 7053 6574 2c3c mp; overlapSet,<\n+00014e10: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00014e60: 3631 323c 2f73 7061 6e3e 2020 2020 2020 612 \n+00014e70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00014e80: 2020 2020 2020 5265 6469 7374 7269 6275 Redistribu\n+00014e90: 7465 496e 7465 7266 6163 6526 616d 703b teInterface&\n+00014ea0: 2072 6564 6973 742c 2073 7464 3a3a 7365 redist, std::se\n+00014eb0: 7426 6c74 3b69 6e74 2667 743b 2661 6d70 t<int>&\n+00014ec0: 3b20 6e65 6967 6862 6f72 5072 6f63 7329 ; neighborProcs)\n+00014ed0: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    613 \n+00014f30: 2020 203c 7370 616e 2063 6c61 7373 3d22 for\n+00014f50: 3c2f 7370 616e 3e28 3c73 7061 6e20 636c (au\n+00014f70: 746f 3c2f 7370 616e 3e20 696e 6465 7820 to index \n+00014f80: 3d20 696e 6465 7853 6574 2e62 6567 696e = indexSet.begin\n+00014f90: 2829 3b20 696e 6465 7820 213d 2069 6e64 (); index != ind\n+00014fa0: 6578 5365 742e 656e 6428 293b 202b 2b69 exSet.end(); ++i\n+00014fb0: 6e64 6578 2920 7b3c 2f64 6976 3e0a 3c64 ndex) {
    .\n+00014fd0: 3c61 2069 643d 226c 3030 3631 3422 206e 614 \n+00015030: 2f2f 204f 6e6c 7920 5072 6f63 6573 7320 // Only Process \n+00015040: 6f77 6e65 7220 7665 7274 6963 6573 2c20 owner vertices, \n+00015050: 7468 6520 6f74 6865 7273 2061 7265 206e the others are n\n+00015060: 6f74 2069 6e20 7468 6520 7061 726d 6574 ot in the parmet\n+00015070: 6973 2067 7261 7068 2e3c 2f73 7061 6e3e is graph.\n+00015080: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000150d0: 2036 3135 3c2f 7370 616e 3e20 2020 2020 615 \n+000150e0: 2020 203c 7370 616e 2063 6c61 7373 3d22 if<\n+00015100: 2f73 7061 6e3e 284f 776e 6572 5365 743a /span>(OwnerSet:\n+00015110: 3a63 6f6e 7461 696e 7328 696e 6465 782d :contains(index-\n+00015120: 2667 743b 6c6f 6361 6c28 292e 6174 7472 >local().attr\n+00015130: 6962 7574 6528 2929 293c 2f64 6976 3e0a ibute()))
    .\n+00015140: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00015170: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 616 {.
    61\n+000151f0: 373c 2f73 7061 6e3e 2020 2020 2020 2020 7 \n+00015200: 2020 3c73 7061 6e20 636c 6173 733d 226b if(part[index\n+00015230: 2d26 6774 3b6c 6f63 616c 2829 5d3d 3d74 ->local()]==t\n+00015240: 6f50 6529 3c2f 6469 763e 0a3c 6469 7620 oPe)
    .
    618 \n+000152a0: 2020 2020 2020 2020 207b 3c2f 6469 763e {
    \n+000152b0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000152e0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 619 \n+00015310: 2067 6574 4e65 6967 6862 6f72 266c 743b getNeighbor<\n+00015320: 4f77 6e65 7253 6574 2667 743b 2867 7261 OwnerSet>(gra\n+00015330: 7068 2c20 7061 7274 2c20 696e 6465 782d ph, part, index-\n+00015340: 2667 743b 6c6f 6361 6c28 292c 2069 6e64 >local(), ind\n+00015350: 6578 5365 742c 3c2f 6469 763e 0a3c 6469 exSet,
    .<\n+00015370: 6120 6964 3d22 6c30 3036 3230 2220 6e61 a id=\"l00620\" na\n+00015380: 6d65 3d22 6c30 3036 3230 223e 3c2f 613e me=\"l00620\">\n+00015390: 3c73 7061 6e20 636c 6173 733d 226c 696e 620 \n+000153c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000153d0: 2020 2074 6f50 652c 206f 7665 726c 6170 toPe, overlap\n+000153e0: 5365 742c 206e 6569 6768 626f 7250 726f Set, neighborPro\n+000153f0: 6373 293b 3c2f 6469 763e 0a3c 6469 7620 cs);
    .
    621 \n+00015450: 2020 2020 2020 2020 2020 206d 795f 7075 my_pu\n+00015460: 7368 5f62 6163 6b28 6f77 6e65 7256 6563 sh_back(ownerVec\n+00015470: 2c20 696e 6465 782d 2667 743b 676c 6f62 , index->glob\n+00015480: 616c 2829 2c20 746f 5065 293b 3c2f 6469 al(), toPe);.
    622\n+000154e0: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+000154f0: 207d 3c2f 6469 763e 0a3c 6469 7620 636c }
    .
    623 \n+00015550: 2020 2020 207d 3c2f 6469 763e 0a3c 6469 }
    .<\n+00015570: 6120 6964 3d22 6c30 3036 3234 2220 6e61 a id=\"l00624\" na\n+00015580: 6d65 3d22 6c30 3036 3234 223e 3c2f 613e me=\"l00624\">\n+00015590: 3c73 7061 6e20 636c 6173 733d 226c 696e 624 }
    .<\n+000155c0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000155d0: 3e3c 6120 6964 3d22 6c30 3036 3235 2220 > 625 reserve\n+00015620: 286f 776e 6572 5665 632c 2072 6564 6973 (ownerVec, redis\n+00015630: 742c 2074 6f50 6529 3b3c 2f64 6976 3e0a t, toPe);
    .\n+00015640: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+000156d0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000156e0: 6e6f 223e 2020 3632 373c 2f73 7061 6e3e no\"> 627\n+000156f0: 2020 2020 7d3c 2f64 6976 3e0a 3c64 6976 }
    .<\n+00015730: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00015740: 6e6f 223e 2020 3632 383c 2f73 7061 6e3e no\"> 628\n+00015750: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+000157a0: 2020 3632 393c 2f73 7061 6e3e 203c 2f64 629 .
    63\n+00015800: 363c 2f73 7061 6e3e 2020 2020 3c73 7061 6 template<class\n+00015850: 3c2f 7370 616e 3e20 462c 203c 7370 616e F, class IS\n+00015880: 2667 743b 3c2f 6469 763e 0a3c 6469 7620 >
    .
    637 \n+000158e0: 2020 203c 7370 616e 2063 6c61 7373 3d22 inline<\n+00015900: 2f73 7061 6e3e 203c 7370 616e 2063 6c61 /span> bool isO\n+00015930: 776e 6572 2849 5326 616d 703b 2069 6e64 wner(IS& ind\n+00015940: 6578 5365 742c 203c 7370 616e 2063 6c61 exSet, int inde\n+00015970: 7829 207b 3c2f 6469 763e 0a3c 6469 7620 x) {
    .
    638 \n+000159d0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00015a20: 2036 3339 3c2f 7370 616e 3e20 2020 2020 639 \n+00015a30: 203c 7370 616e 2063 6c61 7373 3d22 6b65 const typena\n+00015a70: 6d65 3c2f 7370 616e 3e20 4953 3a3a 496e me IS::In\n+00015a80: 6465 7850 6169 722a 2070 696e 6465 783d dexPair* pindex=\n+00015a90: 696e 6465 7853 6574 2e70 6169 7228 696e indexSet.pair(in\n+00015aa0: 6465 7829 3b3c 2f64 6976 3e0a 3c64 6976 dex);
    .<\n+00015ae0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00015af0: 6e6f 223e 2020 3634 303c 2f73 7061 6e3e no\"> 640\n+00015b00: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+00015b50: 2020 3634 313c 2f73 7061 6e3e 2020 2020 641 \n+00015b60: 2020 6173 7365 7274 2870 696e 6465 7829 assert(pindex)\n+00015b70: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00015bc0: 2020 3634 323c 2f73 7061 6e3e 2020 2020 642 \n+00015bd0: 2020 3c73 7061 6e20 636c 6173 733d 226b retu\n+00015bf0: 726e 3c2f 7370 616e 3e20 463a 3a63 6f6e rn F::con\n+00015c00: 7461 696e 7328 7069 6e64 6578 2d26 6774 tains(pindex->\n+00015c10: 3b6c 6f63 616c 2829 2e61 7474 7269 6275 ;local().attribu\n+00015c20: 7465 2829 293b 3c2f 6469 763e 0a3c 6469 te());
    .<\n+00015c40: 6120 6964 3d22 6c30 3036 3433 2220 6e61 a id=\"l00643\" na\n+00015c50: 6d65 3d22 6c30 3036 3433 223e 3c2f 613e me=\"l00643\">\n+00015c60: 3c73 7061 6e20 636c 6173 733d 226c 696e 643 }
    .<\n+00015ca0: 6120 6964 3d22 6c30 3036 3434 2220 6e61 a id=\"l00644\" na\n+00015cb0: 6d65 3d22 6c30 3036 3434 223e 3c2f 613e me=\"l00644\">\n+00015cc0: 3c73 7061 6e20 636c 6173 733d 226c 696e 644
    .
    645 .
    6\n+00015d90: 3436 3c2f 7370 616e 3e20 2020 203c 7370 46 class \n+00015dc0: 4261 7365 4564 6765 4675 6e63 746f 723c BaseEdgeFunctor<\n+00015dd0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00015e20: 3634 373c 2f73 7061 6e3e 2020 2020 7b3c 647 {<\n+00015e30: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00015e80: 3634 383c 2f73 7061 6e3e 2020 2020 3c73 648 public:
    .
    649 \n+00015f10: 2020 2042 6173 6545 6467 6546 756e 6374 BaseEdgeFunct\n+00015f20: 6f72 284d 6574 6973 3a3a 6964 785f 742a or(Metis::idx_t*\n+00015f30: 2061 646a 2c3c 7370 616e 2063 6c61 7373 adj,const\n+00015f50: 3c2f 7370 616e 3e20 5061 726d 6574 6973 Parmetis\n+00015f60: 4475 6e65 496e 6465 784d 6170 2661 6d70 DuneIndexMap&\n+00015f70: 3b20 6461 7461 293c 2f64 6976 3e0a 3c64 ; data)
    .\n+00015f90: 3c61 2069 643d 226c 3030 3635 3022 206e 650 : i_()\n+00015fe0: 2c20 6164 6a5f 2861 646a 292c 2064 6174 , adj_(adj), dat\n+00015ff0: 615f 2864 6174 6129 3c2f 6469 763e 0a3c a_(data)
    .<\n+00016000: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00016010: 3e3c 6120 6964 3d22 6c30 3036 3531 2220 > 651 {}.
    652<\n+000160b0: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+000160d0: 3c61 2069 643d 226c 3030 3635 3322 206e 653 te\n+00016130: 6d70 6c61 7465 3c2f 7370 616e 3e26 6c74 mplate<\n+00016140: 3b3c 7370 616e 2063 6c61 7373 3d22 6b65 ;class T>
    .\n+00016170: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n+00016230: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00016260: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 655 {.
    656\n+000162e0: 3c2f 7370 616e 3e20 2020 2020 2020 203c <\n+000162f0: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+00016300: 656e 7422 3e2f 2f20 4765 7420 7468 6520 ent\">// Get the \n+00016310: 6567 6465 2077 6569 6768 743c 2f73 7061 egde weight
    .
    657 \n+00016380: 2020 2020 203c 7370 616e 2063 6c61 7373 // co\n+000163a0: 6e73 7420 5765 6967 6874 2661 6d70 3b20 nst Weight& \n+000163b0: 7765 6967 6874 3d65 6467 652e 7765 6967 weight=edge.weig\n+000163c0: 6874 2829 3b3c 2f73 7061 6e3e 3c2f 6469 ht();.
    658\n+00016420: 3c2f 7370 616e 3e20 2020 2020 2020 2061 a\n+00016430: 646a 5f5b 695f 5d20 3d20 6461 7461 5f2e dj_[i_] = data_.\n+00016440: 746f 5061 726d 6574 6973 2865 6467 652e toParmetis(edge.\n+00016450: 7461 7267 6574 2829 293b 3c2f 6469 763e target());
    \n+00016460: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00016490: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 659 i_+\n+000164c0: 2b3b 3c2f 6469 763e 0a3c 6469 7620 636c +;
    .
    660 \n+00016520: 2020 207d 3c2f 6469 763e 0a3c 6469 7620 }
    .
    661 \n+00016580: 2020 2020 2073 7464 3a3a 7369 7a65 5f74 std::size_t\n+00016590: 2069 6e64 6578 2829 3c2f 6469 763e 0a3c index()
    .<\n+000165a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000165b0: 3e3c 6120 6964 3d22 6c30 3036 3632 2220 > 662 {
    \n+00016600: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00016690: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000166a0: 3e3c 6120 6964 3d22 6c30 3036 3634 2220 > 664 }
    \n+000166f0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00016760: 6120 6964 3d22 6c30 3036 3636 2220 6e61 a id=\"l00666\" na\n+00016770: 6d65 3d22 6c30 3036 3636 223e 3c2f 613e me=\"l00666\">\n+00016780: 3c73 7061 6e20 636c 6173 733d 226c 696e 666 priva\n+000167c0: 7465 3c2f 7370 616e 3e3a 3c2f 6469 763e te:
    \n+000167d0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00016800: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 667 std::\n+00016830: 7369 7a65 5f74 2069 5f3b 3c2f 6469 763e size_t i_;
    \n+00016840: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00016870: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 668 Metis\n+000168a0: 3a3a 6964 785f 742a 2061 646a 5f3b 3c2f ::idx_t* adj_;.
    6\n+00016900: 3639 3c2f 7370 616e 3e20 2020 2020 203c 69 <\n+00016910: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00016920: 6f72 6422 3e63 6f6e 7374 3c2f 7370 616e ord\">const ParmetisDuneIn\n+00016940: 6465 784d 6170 2661 6d70 3b20 6461 7461 dexMap& data\n+00016950: 5f3b 3c2f 6469 763e 0a3c 6469 7620 636c _;
    .
    670 \n+000169b0: 207d 3b3c 2f64 6976 3e0a 3c64 6976 2063 };
    .
    671 <\n+00016a10: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00016a60: 3637 323c 2f73 7061 6e3e 2020 2020 3c73 672 template<typ\n+00016ab0: 656e 616d 653c 2f73 7061 6e3e 2047 2667 ename G&g\n+00016ac0: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    673 \n+00016b20: 203c 7370 616e 2063 6c61 7373 3d22 6b65 struct EdgeFunctor\n+00016b50: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00016ba0: 2036 3734 3c2f 7370 616e 3e20 2020 2020 674 \n+00016bb0: 203a 203c 7370 616e 2063 6c61 7373 3d22 : public<\n+00016bd0: 2f73 7061 6e3e 2042 6173 6545 6467 6546 /span> BaseEdgeF\n+00016be0: 756e 6374 6f72 3c2f 6469 763e 0a3c 6469 unctor
    .<\n+00016c00: 6120 6964 3d22 6c30 3036 3735 2220 6e61 a id=\"l00675\" na\n+00016c10: 6d65 3d22 6c30 3036 3735 223e 3c2f 613e me=\"l00675\">\n+00016c20: 3c73 7061 6e20 636c 6173 733d 226c 696e 675 {
    .<\n+00016c60: 6120 6964 3d22 6c30 3036 3736 2220 6e61 a id=\"l00676\" na\n+00016c70: 6d65 3d22 6c30 3036 3736 223e 3c2f 613e me=\"l00676\">\n+00016c80: 3c73 7061 6e20 636c 6173 733d 226c 696e 676 EdgeFunct\n+00016cb0: 6f72 284d 6574 6973 3a3a 6964 785f 742a or(Metis::idx_t*\n+00016cc0: 2061 646a 2c20 3c73 7061 6e20 636c 6173 adj, cons\n+00016ce0: 743c 2f73 7061 6e3e 2050 6172 6d65 7469 t Parmeti\n+00016cf0: 7344 756e 6549 6e64 6578 4d61 7026 616d sDuneIndexMap&am\n+00016d00: 703b 2064 6174 612c 2073 7464 3a3a 7369 p; data, std::si\n+00016d10: 7a65 5f74 293c 2f64 6976 3e0a 3c64 6976 ze_t)
    .<\n+00016d50: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00016d60: 6e6f 223e 2020 3637 373c 2f73 7061 6e3e no\"> 677\n+00016d70: 2020 2020 2020 2020 3a20 4261 7365 4564 : BaseEd\n+00016d80: 6765 4675 6e63 746f 7228 6164 6a2c 2064 geFunctor(adj, d\n+00016d90: 6174 6129 3c2f 6469 763e 0a3c 6469 7620 ata)
    .
    678 \n+00016df0: 2020 2020 207b 7d3c 2f64 6976 3e0a 3c64 {}
    .\n+00016e10: 3c61 2069 643d 226c 3030 3637 3922 206e 679
    .
    680 \n+00016eb0: 2020 2020 4d65 7469 733a 3a69 6478 5f74 Metis::idx_t\n+00016ec0: 2a20 6765 7457 6569 6768 7473 2829 3c2f * getWeights().
    6\n+00016f20: 3831 3c2f 7370 616e 3e20 2020 2020 207b 81 {\n+00016f30: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00016f80: 2036 3832 3c2f 7370 616e 3e20 2020 2020 682 \n+00016f90: 2020 203c 7370 616e 2063 6c61 7373 3d22 ret\n+00016fb0: 7572 6e3c 2f73 7061 6e3e 204e 554c 4c3b urn NULL;\n+00016fc0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00017010: 2036 3833 3c2f 7370 616e 3e20 2020 2020 683 \n+00017020: 207d 3c2f 6469 763e 0a3c 6469 7620 636c }
    .
    684 \n+00017080: 2020 203c 7370 616e 2063 6c61 7373 3d22 voi\n+000170a0: 643c 2f73 7061 6e3e 2066 7265 6528 297b d free(){\n+000170b0: 7d3c 2f64 6976 3e0a 3c64 6976 2063 6c61 }
    .
    \n+00017100: 2020 3638 353c 2f73 7061 6e3e 2020 2020 685 \n+00017110: 7d3b 3c2f 6469 763e 0a3c 6469 7620 636c };
    .
    686 .
    6\n+000171c0: 3837 3c2f 7370 616e 3e20 2020 203c 7370 87 template<clas\n+00017210: 733c 2f73 7061 6e3e 2047 2c20 3c73 7061 s G, class V\n+00017240: 2c20 3c73 7061 6e20 636c 6173 733d 226b , class E, cl\n+00017280: 6173 733c 2f73 7061 6e3e 2056 4d2c 203c ass VM, <\n+00017290: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+000172a0: 6f72 6422 3e63 6c61 7373 3c2f 7370 616e ord\">class EM>
    .<\n+000172c0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000172d0: 3e3c 6120 6964 3d22 6c30 3036 3838 2220 > 688 cla\n+00017330: 7373 203c 2f73 7061 6e3e 4564 6765 4675 ss EdgeFu\n+00017340: 6e63 746f 7226 6c74 3b3c 6120 636c 6173 nctor<Dune::Amg::Properti\n+00017390: 6573 4772 6170 6826 6c74 3b47 2c56 2c45 esGraph<G,V,E\n+000173a0: 2c56 4d2c 454d 2667 743b 2026 6774 3b3c ,VM,EM> ><\n+000173b0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00017400: 3638 393c 2f73 7061 6e3e 2020 2020 2020 689 \n+00017410: 3a20 203c 7370 616e 2063 6c61 7373 3d22 : public<\n+00017430: 2f73 7061 6e3e 2042 6173 6545 6467 6546 /span> BaseEdgeF\n+00017440: 756e 6374 6f72 3c2f 6469 763e 0a3c 6469 unctor
    .<\n+00017460: 6120 6964 3d22 6c30 3036 3930 2220 6e61 a id=\"l00690\" na\n+00017470: 6d65 3d22 6c30 3036 3930 223e 3c2f 613e me=\"l00690\">\n+00017480: 3c73 7061 6e20 636c 6173 733d 226c 696e 690 {
    .<\n+000174c0: 6120 6964 3d22 6c30 3036 3931 2220 6e61 a id=\"l00691\" na\n+000174d0: 6d65 3d22 6c30 3036 3931 223e 3c2f 613e me=\"l00691\">\n+000174e0: 3c73 7061 6e20 636c 6173 733d 226c 696e 691 publi\n+00017520: 633c 2f73 7061 6e3e 3a3c 2f64 6976 3e0a c:
    .\n+00017530: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n+00017600: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00017630: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 693 : B\n+00017660: 6173 6545 6467 6546 756e 6374 6f72 2861 aseEdgeFunctor(a\n+00017670: 646a 2c20 6461 7461 293c 2f64 6976 3e0a dj, data)
    .\n+00017680: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+000176b0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 694 {.
    695<\n+00017730: 2f73 7061 6e3e 2020 2020 2020 2020 7765 /span> we\n+00017740: 6967 6874 5f3d 3c73 7061 6e20 636c 6173 ight_=new<\n+00017760: 2f73 7061 6e3e 204d 6574 6973 3a3a 6964 /span> Metis::id\n+00017770: 785f 745b 735d 3b3c 2f64 6976 3e0a 3c64 x_t[s];
    .\n+00017790: 3c61 2069 643d 226c 3030 3639 3622 206e 696 }
    .\n+000177e0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00017870: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00017880: 6e6f 223e 2020 3639 383c 2f73 7061 6e3e no\"> 698\n+00017890: 2020 2020 2020 3c73 7061 6e20 636c 6173 temp\n+000178b0: 6c61 7465 3c2f 7370 616e 3e26 6c74 3b3c late<<\n+000178c0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+000178d0: 6f72 6422 3e63 6c61 7373 3c2f 7370 616e ord\">class T>
    .\n+00017900: 3c61 2069 643d 226c 3030 3639 3922 206e 699 void op\n+00017970: 6572 6174 6f72 2829 283c 7370 616e 2063 erator()(c\n+00017990: 6f6e 7374 3c2f 7370 616e 3e20 5426 616d onst T&am\n+000179a0: 703b 2065 6467 6529 3c2f 6469 763e 0a3c p; edge)
    .<\n+000179b0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000179c0: 3e3c 6120 6964 3d22 6c30 3037 3030 2220 > 700 {
    \n+00017a10: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00017a40: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 701 wei\n+00017a70: 6768 745f 5b69 6e64 6578 2829 5d3d 6564 ght_[index()]=ed\n+00017a80: 6765 2e70 726f 7065 7274 6965 7328 292e ge.properties().\n+00017a90: 6465 7065 6e64 7328 2920 3f20 3320 3a20 depends() ? 3 : \n+00017aa0: 313b 3c2f 6469 763e 0a3c 6469 7620 636c 1;
    .
    702 \n+00017b00: 2020 2020 2042 6173 6545 6467 6546 756e BaseEdgeFun\n+00017b10: 6374 6f72 3a3a 6f70 6572 6174 6f72 2829 ctor::operator()\n+00017b20: 2865 6467 6529 3b3c 2f64 6976 3e0a 3c64 (edge);
    .\n+00017b40: 3c61 2069 643d 226c 3030 3730 3322 206e 703 }
    .\n+00017b90: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    705 \n+00017c60: 2020 2020 207b 3c2f 6469 763e 0a3c 6469 {
    .<\n+00017c80: 6120 6964 3d22 6c30 3037 3036 2220 6e61 a id=\"l00706\" na\n+00017c90: 6d65 3d22 6c30 3037 3036 223e 3c2f 613e me=\"l00706\">\n+00017ca0: 3c73 7061 6e20 636c 6173 733d 226c 696e 706 return\n+00017cf0: 2077 6569 6768 745f 3b3c 2f64 6976 3e0a weight_;
    .\n+00017d00: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00017d30: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 707 }.
    708<\n+00017db0: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> void free(){
    .\n+00017df0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00017e20: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 709 if(\n+00017e70: 7765 6967 6874 5f21 3d30 2920 7b3c 2f64 weight_!=0) {.
    71\n+00017ed0: 303c 2f73 7061 6e3e 2020 2020 2020 2020 0 \n+00017ee0: 2020 3c73 7061 6e20 636c 6173 733d 226b delete weight_;.
    7\n+00017f60: 3131 3c2f 7370 616e 3e20 2020 2020 2020 11 \n+00017f70: 2020 2077 6569 6768 745f 3d30 3b3c 2f64 weight_=0;.
    71\n+00017fd0: 323c 2f73 7061 6e3e 2020 2020 2020 2020 2 \n+00017fe0: 7d3c 2f64 6976 3e0a 3c64 6976 2063 6c61 }
    .
    \n+00018030: 2020 3731 333c 2f73 7061 6e3e 2020 2020 713 \n+00018040: 2020 7d3c 2f64 6976 3e0a 3c64 6976 2063 }
    .
    714 \n+000180a0: 2020 3c73 7061 6e20 636c 6173 733d 226b private<\n+000180c0: 2f73 7061 6e3e 3a3c 2f64 6976 3e0a 3c64 /span>:
    .\n+000180e0: 3c61 2069 643d 226c 3030 3731 3522 206e 715 Metis::i\n+00018130: 6478 5f74 2a20 7765 6967 6874 5f3b 3c2f dx_t* weight_;.
    7\n+00018190: 3136 3c2f 7370 616e 3e20 2020 207d 3b3c 16 };<\n+000181a0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+000181f0: 3731 373c 2f73 7061 6e3e 203c 2f64 6976 717 .
    718<\n+00018250: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+00018270: 3c61 2069 643d 226c 3030 3731 3922 206e 719
    .
    733 \n+00018310: 2020 3c73 7061 6e20 636c 6173 733d 226b template\n+00018330: 3c2f 7370 616e 3e26 6c74 3b3c 7370 616e <class F,\n+00018360: 203c 7370 616e 2063 6c61 7373 3d22 6b65 class G, cla\n+000183a0: 7373 3c2f 7370 616e 3e20 4953 2c20 3c73 ss IS, class\n+000183d0: 2045 5726 6774 3b3c 2f64 6976 3e0a 3c64 EW>
    .\n+000183f0: 3c61 2069 643d 226c 3030 3733 3422 206e 734 \n+00018450: 766f 6964 3c2f 7370 616e 3e20 6765 7441 void getA\n+00018460: 646a 4172 7261 7973 2847 2661 6d70 3b20 djArrays(G& \n+00018470: 6772 6170 682c 2049 5326 616d 703b 2069 graph, IS& i\n+00018480: 6e64 6578 5365 742c 204d 6574 6973 3a3a ndexSet, Metis::\n+00018490: 6964 785f 7420 2a78 6164 6a2c 3c2f 6469 idx_t *xadj,.
    735\n+000184f0: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00018500: 2020 2020 2020 2020 2020 2020 2045 5726 EW&\n+00018510: 616d 703b 2065 7729 3c2f 6469 763e 0a3c amp; ew)
    .<\n+00018520: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00018530: 3e3c 6120 6964 3d22 6c30 3037 3336 2220 > 736 {
    .<\n+00018580: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00018590: 3e3c 6120 6964 3d22 6c30 3037 3337 2220 > 737 int j=\n+00018600: 303b 3c2f 6469 763e 0a3c 6469 7620 636c 0;
    .
    738 \n+00018660: 2020 203c 7370 616e 2063 6c61 7373 3d22 auto vend = grap\n+00018690: 682e 656e 6428 293b 3c2f 6469 763e 0a3c h.end();
    .<\n+000186a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000186b0: 3e3c 6120 6964 3d22 6c30 3037 3339 2220 > 739
    .
    740 \n+00018750: 2020 2020 203c 7370 616e 2063 6c61 7373 f\n+00018770: 6f72 3c2f 7370 616e 3e28 3c73 7061 6e20 or(\n+00018790: 6175 746f 3c2f 7370 616e 3e20 7665 7274 auto vert\n+000187a0: 6578 203d 2067 7261 7068 2e62 6567 696e ex = graph.begin\n+000187b0: 2829 3b20 7665 7274 6578 2021 3d20 7665 (); vertex != ve\n+000187c0: 6e64 3b20 2b2b 7665 7274 6578 2920 7b3c nd; ++vertex) {<\n+000187d0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00018820: 3734 313c 2f73 7061 6e3e 2020 2020 2020 741 \n+00018830: 2020 3c73 7061 6e20 636c 6173 733d 226b if (isOwner&l\n+00018860: 743b 4626 6774 3b28 696e 6465 7853 6574 t;F>(indexSet\n+00018870: 2c2a 7665 7274 6578 2929 207b 3c2f 6469 ,*vertex)) {.
    742\n+000188d0: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+000188e0: 203c 7370 616e 2063 6c61 7373 3d22 636f // The ty\n+00018900: 7065 206f 6620 636f 6e73 7420 6564 6765 pe of const edge\n+00018910: 2069 7465 7261 746f 722e 3c2f 7370 616e iterator.
    .
    \n+00018970: 2020 3734 333c 2f73 7061 6e3e 2020 2020 743 \n+00018980: 2020 2020 2020 3c73 7061 6e20 636c 6173 auto\n+000189a0: 3c2f 7370 616e 3e20 6565 6e64 203d 2076 eend = v\n+000189b0: 6572 7465 782e 656e 6428 293b 3c2f 6469 ertex.end();.
    744\n+00018a10: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00018a20: 2078 6164 6a5b 6a5d 203d 2065 772e 696e xadj[j] = ew.in\n+00018a30: 6465 7828 293b 3c2f 6469 763e 0a3c 6469 dex();
    .<\n+00018a50: 6120 6964 3d22 6c30 3037 3435 2220 6e61 a id=\"l00745\" na\n+00018a60: 6d65 3d22 6c30 3037 3435 223e 3c2f 613e me=\"l00745\">\n+00018a70: 3c73 7061 6e20 636c 6173 733d 226c 696e 745 j++;<\n+00018aa0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00018af0: 3734 363c 2f73 7061 6e3e 2020 2020 2020 746 \n+00018b00: 2020 2020 3c73 7061 6e20 636c 6173 733d fo\n+00018b20: 723c 2f73 7061 6e3e 283c 7370 616e 2063 r(a\n+00018b40: 7574 6f3c 2f73 7061 6e3e 2065 6467 6520 uto edge \n+00018b50: 3d20 7665 7274 6578 2e62 6567 696e 2829 = vertex.begin()\n+00018b60: 3b20 6564 6765 2021 3d20 6565 6e64 3b20 ; edge != eend; \n+00018b70: 2b2b 6564 6765 2920 7b3c 2f64 6976 3e0a ++edge) {
    .\n+00018b80: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+00018bf0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00018c20: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 748 }<\n+00018c50: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00018ca0: 3734 393c 2f73 7061 6e3e 2020 2020 2020 749 \n+00018cb0: 2020 7d3c 2f64 6976 3e0a 3c64 6976 2063 }
    .
    750 \n+00018d10: 2020 2020 7d3c 2f64 6976 3e0a 3c64 6976 }
    .<\n+00018d50: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00018d60: 6e6f 223e 2020 3735 313c 2f73 7061 6e3e no\"> 751\n+00018d70: 2020 2020 2020 7861 646a 5b6a 5d20 3d20 xadj[j] = \n+00018d80: 6577 2e69 6e64 6578 2829 3b3c 2f64 6976 ew.index();.
    752<\n+00018de0: 2f73 7061 6e3e 2020 2020 7d3c 2f64 6976 /span> }.
    753<\n+00018e40: 2f73 7061 6e3e 2020 7d20 3c73 7061 6e20 /span> } \n+00018e60: 2f2f 2065 6e64 2061 6e6f 6e79 6d6f 7573 // end anonymous\n+00018e70: 206e 616d 6573 7061 6365 3c2f 7370 616e namespace
    .
    \n+00018ed0: 2020 3735 343c 2f73 7061 6e3e 203c 2f64 754 .
    75\n+00018f30: 353c 2f73 7061 6e3e 2020 3c73 7061 6e20 5 \n+00018f50: 7465 6d70 6c61 7465 3c2f 7370 616e 3e26 template&\n+00018f60: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;class G, c\n+00018fa0: 6c61 7373 3c2f 7370 616e 3e20 5431 2c20 lass T1, \n+00018fb0: 3c73 7061 6e20 636c 6173 733d 226b 6579 class T2>
    .\n+00018fe0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00019010: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 756 \n+00019050: 626f 6f6c 3c2f 7370 616e 3e20 3c61 2063 bool bui\n+000190b0: 6c64 436f 6d6d 756e 6963 6174 696f 6e3c ldCommunication<\n+000190c0: 2f61 3e28 3c73 7061 6e20 636c 6173 733d /a>(const<\n+000190e0: 2f73 7061 6e3e 2047 2661 6d70 3b20 6772 /span> G& gr\n+000190f0: 6170 682c 2073 7464 3a3a 7665 6374 6f72 aph, std::vector\n+00019100: 266c 743b 696e 7426 6774 3b26 616d 703b <int>&\n+00019110: 2072 6561 6c70 6172 7473 2c3c 2f64 6976 realparts,.
    757<\n+00019170: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00019180: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00019190: 3c61 2063 6c61 7373 3d22 636f 6465 2068 Dune\n+000191c0: 3a3a 4f77 6e65 724f 7665 726c 6170 436f ::OwnerOverlapCo\n+000191d0: 7079 436f 6d6d 756e 6963 6174 696f 6e26 pyCommunication&\n+000191e0: 6c74 3b54 312c 5432 2667 743b 3c2f 613e lt;T1,T2>\n+000191f0: 2661 6d70 3b20 6f6f 636f 6d6d 2c3c 2f64 & oocomm,.
    75\n+00019250: 383c 2f73 7061 6e3e 2020 2020 2020 2020 8 \n+00019260: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00019270: 2020 7374 643a 3a73 6861 7265 645f 7074 std::shared_pt\n+00019280: 7226 6c74 3b3c 6120 636c 6173 733d 2263 r<Dune::OwnerOver\n+000192c0: 6c61 7043 6f70 7943 6f6d 6d75 6e69 6361 lapCopyCommunica\n+000192d0: 7469 6f6e 266c 743b 5431 2c54 3226 6774 tion<T1,T2>\n+000192e0: 3b3c 2f61 3e26 6774 3b26 616d 703b 206f ;>& o\n+000192f0: 7574 636f 6d6d 2c3c 2f64 6976 3e0a 3c64 utcomm,
    .\n+00019310: 3c61 2069 643d 226c 3030 3735 3922 206e 759 \n+00019360: 2020 2020 2020 2020 2020 2020 5265 6469 Redi\n+00019370: 7374 7269 6275 7465 496e 7465 7266 6163 stributeInterfac\n+00019380: 6526 616d 703b 2072 6564 6973 7449 6e66 e& redistInf\n+00019390: 2c3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ,
    .
    \n+000193e0: 2020 3736 303c 2f73 7061 6e3e 2020 2020 760 \n+000193f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00019400: 2020 2020 2020 3c73 7061 6e20 636c 6173 \n+00019420: 626f 6f6c 3c2f 7370 616e 3e20 7665 7262 bool verb\n+00019430: 6f73 653d 3c73 7061 6e20 636c 6173 733d ose=false<\n+00019450: 2f73 7061 6e3e 293b 3c2f 6469 763e 0a3c /span>);
    .<\n+00019460: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00019470: 3e3c 6120 6964 3d22 6c30 3037 3631 2220 > 761#i\n+000194d0: 6620 4841 5645 5f50 4152 4d45 5449 533c f HAVE_PARMETIS<\n+000194e0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00019500: 6120 6964 3d22 6c30 3037 3632 2220 6e61 a id=\"l00762\" na\n+00019510: 6d65 3d22 6c30 3037 3632 223e 3c2f 613e me=\"l00762\">\n+00019520: 3c73 7061 6e20 636c 6173 733d 226c 696e 762#ifn\n+00019560: 6465 6620 4d45 5449 535f 5645 525f 4d41 def METIS_VER_MA\n+00019570: 4a4f 523c 2f73 7061 6e3e 3c2f 6469 763e JOR
    \n+00019580: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000195b0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 763 ext\n+000195f0: 6572 6e3c 2f73 7061 6e3e 203c 7370 616e ern "C&q\n+00019620: 756f 743b 3c2f 7370 616e 3e3c 2f64 6976 uot;.
    764<\n+00019680: 2f73 7061 6e3e 2020 7b3c 2f64 6976 3e0a /span> {
    .\n+00019690: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00019750: 6120 6964 3d22 6c30 3037 3636 2220 6e61 a id=\"l00766\" na\n+00019760: 6d65 3d22 6c30 3037 3636 223e 3c2f 613e me=\"l00766\">\n+00019770: 3c73 7061 6e20 636c 6173 733d 226c 696e 766 v\n+000197b0: 6f69 643c 2f73 7061 6e3e 204d 4554 4953 oid METIS\n+000197c0: 5f50 6172 7447 7261 7068 4b77 6179 283c _PartGraphKway(<\n+000197d0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+000197e0: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int *nvtxs, Meti\n+00019800: 733a 3a69 6478 5f74 202a 7861 646a 2c20 s::idx_t *xadj, \n+00019810: 4d65 7469 733a 3a69 6478 5f74 202a 6164 Metis::idx_t *ad\n+00019820: 6a6e 6379 2c20 4d65 7469 733a 3a69 6478 jncy, Metis::idx\n+00019830: 5f74 202a 7677 6774 2c3c 2f64 6976 3e0a _t *vwgt,
    .\n+00019840: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    768 \n+000199b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000199c0: 2020 2020 2020 2020 2020 3c73 7061 6e20 int *\n+000199f0: 6f70 7469 6f6e 732c 203c 7370 616e 2063 options, int *e\n+00019a20: 6467 6563 7574 2c20 4d65 7469 733a 3a69 dgecut, Metis::i\n+00019a30: 6478 5f74 202a 7061 7274 293b 3c2f 6469 dx_t *part);.
    769\n+00019a90: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+00019aa0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00019ab0: 3e3c 6120 6964 3d22 6c30 3037 3730 2220 > 770 void MET\n+00019b20: 4953 5f50 6172 7447 7261 7068 5265 6375 IS_PartGraphRecu\n+00019b30: 7273 6976 6528 3c73 7061 6e20 636c 6173 rsive(\n+00019b50: 696e 743c 2f73 7061 6e3e 202a 6e76 7478 int *nvtx\n+00019b60: 732c 204d 6574 6973 3a3a 6964 785f 7420 s, Metis::idx_t \n+00019b70: 2a78 6164 6a2c 204d 6574 6973 3a3a 6964 *xadj, Metis::id\n+00019b80: 785f 7420 2a61 646a 6e63 792c 204d 6574 x_t *adjncy, Met\n+00019b90: 6973 3a3a 6964 785f 7420 2a76 7767 742c is::idx_t *vwgt,\n+00019ba0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00019bf0: 2037 3731 3c2f 7370 616e 3e20 2020 2020 771 \n+00019c00: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00019c10: 2020 2020 2020 2020 2020 2020 204d 6574 Met\n+00019c20: 6973 3a3a 6964 785f 7420 2a61 646a 7767 is::idx_t *adjwg\n+00019c30: 742c 203c 7370 616e 2063 6c61 7373 3d22 t, int\n+00019c50: 3c2f 7370 616e 3e20 2a77 6774 666c 6167 *wgtflag\n+00019c60: 2c20 3c73 7061 6e20 636c 6173 733d 226b , int<\n+00019c80: 2f73 7061 6e3e 202a 6e75 6d66 6c61 672c /span> *numflag,\n+00019c90: 203c 7370 616e 2063 6c61 7373 3d22 6b65 int *nparts,.
    7\n+00019d10: 3732 3c2f 7370 616e 3e20 2020 2020 2020 72 \n+00019d20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00019d30: 2020 2020 2020 2020 2020 203c 7370 616e int \n+00019d60: 2a6f 7074 696f 6e73 2c20 3c73 7061 6e20 *options, int *\n+00019d90: 6564 6765 6375 742c 204d 6574 6973 3a3a edgecut, Metis::\n+00019da0: 6964 785f 7420 2a70 6172 7429 3b3c 2f64 idx_t *part);.
    77\n+00019e00: 333c 2f73 7061 6e3e 2020 7d3c 2f64 6976 3 }.
    774<\n+00019e60: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#endif.
    7\n+00019ee0: 3735 3c2f 7370 616e 3e3c 7370 616e 2063 75#endif // HAVE_\n+00019f30: 5041 524d 4554 4953 3c2f 7370 616e 3e3c PARMETIS<\n+00019f40: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00019f90: 3737 363c 2f73 7061 6e3e 203c 2f64 6976 776 .
    777<\n+00019ff0: 2f73 7061 6e3e 2020 3c73 7061 6e20 636c /span> te\n+0001a010: 6d70 6c61 7465 3c2f 7370 616e 3e26 6c74 mplate<\n+0001a020: 3b3c 7370 616e 2063 6c61 7373 3d22 6b65 ;class S, cla\n+0001a060: 7373 3c2f 7370 616e 3e20 5426 6774 3b3c ss T><\n+0001a070: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    .<\n+0001a0f0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001a100: 6e6f 223e 3c61 2063 6c61 7373 3d22 6c69 no\"> 778 inline <\n+0001a180: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0001a190: 6f72 6474 7970 6522 3e76 6f69 643c 2f73 ordtype\">void print_carr\n+0001a200: 6179 3c2f 613e 2853 2661 6d70 3b20 6f73 ay(S& os\n+0001a210: 2c20 542a 2061 7272 6179 2c20 7374 643a , T* array, std:\n+0001a220: 3a73 697a 655f 7420 6c29 3c2f 6469 763e :size_t l)
    \n+0001a230: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+0001a290: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0001a2a0: 3e3c 6120 6964 3d22 6c30 3037 3830 2220 > 780 for(T *c\n+0001a310: 7572 3d61 7272 6179 2c20 2a65 6e64 3d61 ur=array, *end=a\n+0001a320: 7272 6179 2b6c 3b20 6375 7221 3d65 6e64 rray+l; cur!=end\n+0001a330: 3b20 2b2b 6375 7229 3c2f 6469 763e 0a3c ; ++cur)
    .<\n+0001a340: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0001a350: 3e3c 6120 6964 3d22 6c30 3037 3831 2220 > 781 os<&\n+0001a3a0: 6c74 3b2a 6375 7226 6c74 3b26 6c74 3b3c lt;*cur<<<\n+0001a3b0: 7370 616e 2063 6c61 7373 3d22 7374 7269 span class=\"stri\n+0001a3c0: 6e67 6c69 7465 7261 6c22 3e26 7175 6f74 ngliteral\">"\n+0001a3d0: 3b20 2671 756f 743b 3c2f 7370 616e 3e3b ; ";\n+0001a3e0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0001a430: 2037 3832 3c2f 7370 616e 3e20 207d 3c2f 782 }.
    .<\n+0001a480: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001a490: 6e6f 223e 2020 3738 333c 2f73 7061 6e3e no\"> 783
    \n+0001a4a0: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+0001a4f0: 2020 3738 343c 2f73 7061 6e3e 2020 3c73 784 template<cla\n+0001a540: 7373 3c2f 7370 616e 3e20 532c 203c 7370 ss S, class \n+0001a570: 5426 6774 3b3c 2f64 6976 3e0a 3c64 6976 T>
    ..
    \n+0001a650: 2037 3835 3c2f 613e 3c2f 7370 616e 3e20 785 \n+0001a660: 203c 7370 616e 2063 6c61 7373 3d22 6b65 inline b\n+0001a6a0: 6f6f 6c3c 2f73 7061 6e3e 203c 6120 636c ool isVa\n+0001a700: 6c69 6447 7261 7068 3c2f 613e 2873 7464 lidGraph(std\n+0001a710: 3a3a 7369 7a65 5f74 206e 6f56 7478 2c20 ::size_t noVtx, \n+0001a720: 7374 643a 3a73 697a 655f 7420 676e 6f56 std::size_t gnoV\n+0001a730: 7478 2c20 5320 6e6f 4564 6765 732c 2054 tx, S noEdges, T\n+0001a740: 2a20 7861 646a 2c3c 2f64 6976 3e0a 3c64 * xadj,
    .\n+0001a760: 3c61 2069 643d 226c 3030 3738 3622 206e 786 \n+0001a7b0: 2020 2020 2020 2020 2020 2020 2054 2a20 T* \n+0001a7c0: 6164 6a6e 6379 2c20 3c73 7061 6e20 636c adjncy, bool ch\n+0001a7f0: 6563 6b53 796d 6d65 7472 7929 3c2f 6469 eckSymmetry).
    787\n+0001a850: 3c2f 7370 616e 3e20 207b 3c2f 6469 763e {
    \n+0001a860: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001a890: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 788 bool c\n+0001a8e0: 6f72 7265 6374 3d3c 7370 616e 2063 6c61 orrect=tru\n+0001a900: 653c 2f73 7061 6e3e 3b3c 2f64 6976 3e0a e;
    .\n+0001a910: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0001a9a0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001a9b0: 6e6f 223e 2020 3739 303c 2f73 7061 6e3e no\"> 790
    \n+0001a9c0: 2020 2020 3c73 7061 6e20 636c 6173 733d using \n+0001a9e0: 3c2f 7370 616e 3e73 7464 3a3a 7369 676e std::sign\n+0001a9f0: 6269 743b 3c2f 6469 763e 0a3c 6469 7620 bit;
    .
    791 \n+0001aa50: 2020 203c 7370 616e 2063 6c61 7373 3d22 for\n+0001aa70: 3c2f 7370 616e 3e28 3c61 2063 6c61 7373 (Metis::i\n+0001aad0: 6478 5f74 3c2f 613e 2076 7478 3d30 3b20 dx_t vtx=0; \n+0001aae0: 7674 7826 6c74 3b28 3c61 2063 6c61 7373 vtx<(Metis::i\n+0001ab40: 6478 5f74 3c2f 613e 296e 6f56 7478 3b20 dx_t)noVtx; \n+0001ab50: 2b2b 7674 7829 207b 3c2f 6469 763e 0a3c ++vtx) {
    .<\n+0001ab60: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0001ab70: 3e3c 6120 6964 3d22 6c30 3037 3932 2220 > 792 if(static_cast&l\n+0001ac00: 743b 3c2f 7370 616e 3e53 3c73 7061 6e20 t;S\n+0001ac20: 2667 743b 3c2f 7370 616e 3e28 7861 646a >(xadj\n+0001ac30: 5b76 7478 5d29 2667 743b 6e6f 4564 6765 [vtx])>noEdge\n+0001ac40: 7320 7c7c 2073 6967 6e62 6974 2878 6164 s || signbit(xad\n+0001ac50: 6a5b 7674 785d 2929 207b 3c2f 6469 763e j[vtx])) {
    \n+0001ac60: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001ac90: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 793 std\n+0001acc0: 3a3a 6365 7272 2026 6c74 3b26 6c74 3b3c ::cerr <<<\n+0001acd0: 7370 616e 2063 6c61 7373 3d22 7374 7269 span class=\"stri\n+0001ace0: 6e67 6c69 7465 7261 6c22 3e26 7175 6f74 ngliteral\">"\n+0001acf0: 3b43 6865 636b 2067 7261 7068 3a20 7861 ;Check graph: xa\n+0001ad00: 646a 5b26 7175 6f74 3b3c 2f73 7061 6e3e dj["\n+0001ad10: 266c 743b 266c 743b 7674 7826 6c74 3b26 <<vtx<&\n+0001ad20: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+0001ad40: 7175 6f74 3b5d 3d26 7175 6f74 3b3c 2f73 quot;]="<<xadj\n+0001ad60: 5b76 7478 5d26 6c74 3b26 6c74 3b3c 7370 [vtx]<<" \n+0001ad90: 2826 6774 3b26 7175 6f74 3b3c 2f73 7061 (>"
    .
    794 \n+0001ae00: 2020 2020 2020 2020 2020 2020 2020 2026 &\n+0001ae10: 6c74 3b26 6c74 3b6e 6f45 6467 6573 266c lt;<noEdges&l\n+0001ae20: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<") out of\n+0001ae50: 2072 616e 6765 2126 7175 6f74 3b3c 2f73 range!"<<std:\n+0001ae70: 3a65 6e64 6c3b 3c2f 6469 763e 0a3c 6469 :endl;
    .<\n+0001ae90: 6120 6964 3d22 6c30 3037 3935 2220 6e61 a id=\"l00795\" na\n+0001aea0: 6d65 3d22 6c30 3037 3935 223e 3c2f 613e me=\"l00795\">\n+0001aeb0: 3c73 7061 6e20 636c 6173 733d 226c 696e 795 correct\n+0001aee0: 3d3c 7370 616e 2063 6c61 7373 3d22 6b65 =false;
    .
    796 \n+0001af60: 2020 2020 207d 3c2f 6469 763e 0a3c 6469 }
    .<\n+0001af80: 6120 6964 3d22 6c30 3037 3937 2220 6e61 a id=\"l00797\" na\n+0001af90: 6d65 3d22 6c30 3037 3937 223e 3c2f 613e me=\"l00797\">\n+0001afa0: 3c73 7061 6e20 636c 6173 733d 226c 696e 797 if(static_cast<\n+0001b010: 3c2f 7370 616e 3e53 3c73 7061 6e20 636c S&g\n+0001b030: 743b 3c2f 7370 616e 3e28 7861 646a 5b76 t;(xadj[v\n+0001b040: 7478 2b31 5d29 2667 743b 6e6f 4564 6765 tx+1])>noEdge\n+0001b050: 7320 7c7c 2073 6967 6e62 6974 2878 6164 s || signbit(xad\n+0001b060: 6a5b 7674 782b 315d 2929 207b 3c2f 6469 j[vtx+1])) {.
    798\n+0001b0c0: 3c2f 7370 616e 3e20 2020 2020 2020 2073 s\n+0001b0d0: 7464 3a3a 6365 7272 2026 6c74 3b26 6c74 td::cerr <<\n+0001b0e0: 3b3c 7370 616e 2063 6c61 7373 3d22 7374 ;&qu\n+0001b100: 6f74 3b43 6865 636b 2067 7261 7068 3a20 ot;Check graph: \n+0001b110: 7861 646a 5b26 7175 6f74 3b3c 2f73 7061 xadj["<<vtx+1&\n+0001b130: 6c74 3b26 6c74 3b3c 7370 616e 2063 6c61 lt;<"]="\n+0001b160: 3b3c 2f73 7061 6e3e 266c 743b 266c 743b ;<<\n+0001b170: 7861 646a 5b76 7478 2b31 5d26 6c74 3b26 xadj[vtx+1]<&\n+0001b180: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+0001b1a0: 7175 6f74 3b20 2826 6774 3b26 7175 6f74 quot; (>"\n+0001b1b0: 3b3c 2f73 7061 6e3e 3c2f 6469 763e 0a3c ;
    .<\n+0001b1c0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0001b1d0: 3e3c 6120 6964 3d22 6c30 3037 3939 2220 > 799 \n+0001b220: 2020 2020 2026 6c74 3b26 6c74 3b6e 6f45 <<noE\n+0001b230: 6467 6573 266c 743b 266c 743b 3c73 7061 dges<<") \n+0001b260: 6f75 7420 6f66 2072 616e 6765 2126 7175 out of range!&qu\n+0001b270: 6f74 3b3c 2f73 7061 6e3e 266c 743b 266c ot;<&l\n+0001b280: 743b 7374 643a 3a65 6e64 6c3b 3c2f 6469 t;std::endl;.
    800\n+0001b2e0: 3c2f 7370 616e 3e20 2020 2020 2020 2063 c\n+0001b2f0: 6f72 7265 6374 3d3c 7370 616e 2063 6c61 orrect=fal\n+0001b310: 7365 3c2f 7370 616e 3e3b 3c2f 6469 763e se;
    \n+0001b320: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001b350: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 801 }.
    802\n+0001b3d0: 3c2f 7370 616e 3e20 2020 2020 203c 7370 // Check numb\n+0001b400: 6572 7320 696e 2061 646a 6e63 793c 2f73 ers in adjncy
    .
    803 \n+0001b470: 2020 2020 203c 7370 616e 2063 6c61 7373 f\n+0001b490: 6f72 3c2f 7370 616e 3e28 3c61 2063 6c61 or(Metis:\n+0001b4f0: 3a69 6478 5f74 3c2f 613e 2069 3d78 6164 :idx_t i=xad\n+0001b500: 6a5b 7674 785d 3b20 6926 6c74 3b20 7861 j[vtx]; i< xa\n+0001b510: 646a 5b76 7478 2b31 5d3b 202b 2b69 2920 dj[vtx+1]; ++i) \n+0001b520: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n+0001b570: 2020 3830 343c 2f73 7061 6e3e 2020 2020 804 \n+0001b580: 2020 2020 3c73 7061 6e20 636c 6173 733d if\n+0001b5a0: 3c2f 7370 616e 3e28 7369 676e 6269 7428 (signbit(\n+0001b5b0: 6164 6a6e 6379 5b69 5d29 207c 7c20 2828 adjncy[i]) || ((\n+0001b5c0: 7374 643a 3a73 697a 655f 7429 6164 6a6e std::size_t)adjn\n+0001b5d0: 6379 5b69 5d29 2667 743b 676e 6f56 7478 cy[i])>gnoVtx\n+0001b5e0: 2920 7b3c 2f64 6976 3e0a 3c64 6976 2063 ) {
    .
    805 \n+0001b640: 2020 2020 2020 2020 7374 643a 3a63 6572 std::cer\n+0001b650: 7226 6c74 3b26 6c74 3b3c 7370 616e 2063 r<<" Edge\n+0001b680: 2026 7175 6f74 3b3c 2f73 7061 6e3e 266c "&l\n+0001b690: 743b 266c 743b 6164 6a6e 6379 5b69 5d26 t;<adjncy[i]&\n+0001b6a0: 6c74 3b26 6c74 3b3c 7370 616e 2063 6c61 lt;<" out of\n+0001b6d0: 2072 616e 6765 205b 2671 756f 743b 3c2f range ["<<0&l\n+0001b6f0: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<","<\n+0001b720: 2f73 7061 6e3e 266c 743b 266c 743b 6e6f /span><<no\n+0001b730: 5674 7826 6c74 3b26 6c74 3b3c 7370 616e Vtx<<")&q\n+0001b760: 756f 743b 3c2f 7370 616e 3e3c 2f64 6976 uot;.
    806<\n+0001b7c0: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+0001b7d0: 2020 2020 2020 2020 2026 6c74 3b26 6c74 <<\n+0001b7e0: 3b73 7464 3a3a 656e 646c 3b3c 2f64 6976 ;std::endl;.
    807<\n+0001b840: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+0001b850: 636f 7272 6563 743d 3c73 7061 6e20 636c correct=fa\n+0001b870: 6c73 653c 2f73 7061 6e3e 3b3c 2f64 6976 lse;.
    808<\n+0001b8d0: 2f73 7061 6e3e 2020 2020 2020 2020 7d3c /span> }<\n+0001b8e0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0001b930: 3830 393c 2f73 7061 6e3e 2020 2020 2020 809 \n+0001b940: 7d3c 2f64 6976 3e0a 3c64 6976 2063 6c61 }
    .
    \n+0001b990: 2020 3831 303c 2f73 7061 6e3e 2020 2020 810 \n+0001b9a0: 2020 3c73 7061 6e20 636c 6173 733d 226b if(checkSymme\n+0001b9d0: 7472 7929 207b 3c2f 6469 763e 0a3c 6469 try) {
    .<\n+0001b9f0: 6120 6964 3d22 6c30 3038 3131 2220 6e61 a id=\"l00811\" na\n+0001ba00: 6d65 3d22 6c30 3038 3131 223e 3c2f 613e me=\"l00811\">\n+0001ba10: 3c73 7061 6e20 636c 6173 733d 226c 696e 811 for(Me\n+0001bab0: 7469 733a 3a69 6478 5f74 3c2f 613e 2069 tis::idx_t i\n+0001bac0: 3d78 6164 6a5b 7674 785d 3b20 6926 6c74 =xadj[vtx]; i<\n+0001bad0: 3b20 7861 646a 5b76 7478 2b31 5d3b 202b ; xadj[vtx+1]; +\n+0001bae0: 2b69 2920 7b3c 2f64 6976 3e0a 3c64 6976 +i) {
    .<\n+0001bb20: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001bb30: 6e6f 223e 2020 3831 323c 2f73 7061 6e3e no\"> 812
    \n+0001bb40: 2020 2020 2020 2020 2020 3c61 2063 6c61 Metis:\n+0001bba0: 3a69 6478 5f74 3c2f 613e 2074 6172 6765 :idx_t targe\n+0001bbb0: 743d 6164 6a6e 6379 5b69 5d3b 3c2f 6469 t=adjncy[i];.
    813\n+0001bc10: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+0001bc20: 203c 7370 616e 2063 6c61 7373 3d22 636f // search\n+0001bc40: 2066 6f72 2073 796d 6d65 7472 6963 2065 for symmetric e\n+0001bc50: 6467 653c 2f73 7061 6e3e 3c2f 6469 763e dge
    \n+0001bc60: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001bc90: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 814 <\n+0001bcc0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0001bcd0: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int found=0;.
    815\n+0001bd40: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+0001bd50: 203c 7370 616e 2063 6c61 7373 3d22 6b65 for(Metis::idx\n+0001bdd0: 5f74 3c2f 613e 206a 3d78 6164 6a5b 7461 _t j=xadj[ta\n+0001bde0: 7267 6574 5d3b 206a 266c 743b 2078 6164 rget]; j< xad\n+0001bdf0: 6a5b 7461 7267 6574 2b31 5d3b 202b 2b6a j[target+1]; ++j\n+0001be00: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n+0001be50: 2020 3831 363c 2f73 7061 6e3e 2020 2020 816 \n+0001be60: 2020 2020 2020 2020 3c73 7061 6e20 636c if(adjn\n+0001be90: 6379 5b6a 5d3d 3d76 7478 293c 2f64 6976 cy[j]==vtx).
    817<\n+0001bef0: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+0001bf00: 2020 2020 666f 756e 642b 2b3b 3c2f 6469 found++;.
    818\n+0001bf60: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+0001bf70: 203c 7370 616e 2063 6c61 7373 3d22 6b65 if(found!=1) {\n+0001bfa0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0001bff0: 2038 3139 3c2f 7370 616e 3e20 2020 2020 819 \n+0001c000: 2020 2020 2020 2073 7464 3a3a 6365 7272 std::cerr\n+0001c010: 266c 743b 266c 743b 3c73 7061 6e20 636c <<"Edge (\n+0001c040: 2671 756f 743b 3c2f 7370 616e 3e26 6c74 "<\n+0001c050: 3b26 6c74 3b74 6172 6765 7426 6c74 3b26 ;<target<&\n+0001c060: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+0001c080: 7175 6f74 3b2c 2671 756f 743b 3c2f 7370 quot;,"<<vtx&l\n+0001c0a0: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<") "\n+0001c0d0: 3c2f 7370 616e 3e26 6c74 3b26 6c74 3b69 <<i\n+0001c0e0: 266c 743b 266c 743b 3c73 7061 6e20 636c <<" time&\n+0001c110: 7175 6f74 3b3c 2f73 7061 6e3e 266c 743b quot;<\n+0001c120: 266c 743b 7374 643a 3a65 6e64 6c3b 3c2f <std::endl;.
    8\n+0001c180: 3230 3c2f 7370 616e 3e20 2020 2020 2020 20 \n+0001c190: 2020 2020 2063 6f72 7265 6374 3d3c 7370 correct=false;\n+0001c1c0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0001c210: 2038 3231 3c2f 7370 616e 3e20 2020 2020 821 \n+0001c220: 2020 2020 207d 3c2f 6469 763e 0a3c 6469 }
    .<\n+0001c240: 6120 6964 3d22 6c30 3038 3232 2220 6e61 a id=\"l00822\" na\n+0001c250: 6d65 3d22 6c30 3038 3232 223e 3c2f 613e me=\"l00822\">\n+0001c260: 3c73 7061 6e20 636c 6173 733d 226c 696e 822 }
    \n+0001c290: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001c2c0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 823 }.
    824\n+0001c340: 3c2f 7370 616e 3e20 2020 207d 3c2f 6469 }.
    825\n+0001c3a0: 3c2f 7370 616e 3e20 2020 203c 7370 616e return correct;.
    826<\n+0001c430: 2f73 7061 6e3e 2020 7d3c 2f64 6976 3e0a /span> }
    .\n+0001c440: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0001c490: 2038 3237 3c2f 7370 616e 3e20 3c2f 6469 827 .
    828\n+0001c4f0: 3c2f 7370 616e 3e20 203c 7370 616e 2063 t\n+0001c510: 656d 706c 6174 653c 2f73 7061 6e3e 266c emplate&l\n+0001c520: 743b 3c73 7061 6e20 636c 6173 733d 226b t;class M, cl\n+0001c560: 6173 733c 2f73 7061 6e3e 2054 312c 203c ass T1, <\n+0001c570: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0001c580: 6f72 6422 3e63 6c61 7373 3c2f 7370 616e ord\">class T2>
    .<\n+0001c5a0: 6469 7620 636c 6173 733d 2266 6f6c 646f div class=\"foldo\n+0001c5b0: 7065 6e22 2069 643d 2266 6f6c 646f 7065 pen\" id=\"foldope\n+0001c5c0: 6e30 3038 3239 2220 6461 7461 2d73 7461 n00829\" data-sta\n+0001c5d0: 7274 3d22 7b22 2064 6174 612d 656e 643d rt=\"{\" data-end=\n+0001c5e0: 227d 223e 0a3c 6469 7620 636c 6173 733d \"}\">..<\n+0001c820: 6120 6964 3d22 6c30 3038 3330 2220 6e61 a id=\"l00830\" na\n+0001c830: 6d65 3d22 6c30 3038 3330 223e 3c2f 613e me=\"l00830\">\n+0001c840: 3c73 7061 6e20 636c 6173 733d 226c 696e 830 \n+0001c870: 2020 2020 2020 2020 2020 2020 203c 6120 Met\n+0001c8d0: 6973 3a3a 6964 785f 743c 2f61 3e20 6e70 is::idx_t np\n+0001c8e0: 6172 7473 2c3c 2f64 6976 3e0a 3c64 6976 arts,
    .<\n+0001c920: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001c930: 6e6f 223e 2020 3833 313c 2f73 7061 6e3e no\"> 831\n+0001c940: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0001c950: 2020 2020 2020 2020 2020 2020 7374 643a std:\n+0001c960: 3a73 6861 7265 645f 7074 7226 6c74 3b3c :shared_ptr<<\n+0001c970: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+0001c980: 5f63 6c61 7373 2220 6872 6566 3d22 6130 _class\" href=\"a0\n+0001c990: 3139 3834 2e68 746d 6c22 3e44 756e 653a 1984.html\">Dune:\n+0001c9a0: 3a4f 776e 6572 4f76 6572 6c61 7043 6f70 :OwnerOverlapCop\n+0001c9b0: 7943 6f6d 6d75 6e69 6361 7469 6f6e 266c yCommunication&l\n+0001c9c0: 743b 5431 2c54 3226 6774 3b3c 2f61 3e26 t;T1,T2>&\n+0001c9d0: 6774 3b26 616d 703b 206f 7574 636f 6d6d gt;& outcomm\n+0001c9e0: 2c3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ,
    .
    \n+0001ca30: 2020 3833 323c 2f73 7061 6e3e 2020 2020 832 \n+0001ca40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0001ca50: 2020 2020 2020 2020 3c61 2063 6c61 7373 Redistribut\n+0001ca90: 6549 6e74 6572 6661 6365 3c2f 613e 2661 eInterface&a\n+0001caa0: 6d70 3b20 7265 6469 7374 496e 662c 3c2f mp; redistInf,.
    8\n+0001cb00: 3333 3c2f 7370 616e 3e20 2020 2020 2020 33 \n+0001cb10: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0001cb20: 2020 2020 203c 7370 616e 2063 6c61 7373 b\n+0001cb40: 6f6f 6c3c 2f73 7061 6e3e 2076 6572 626f ool verbo\n+0001cb50: 7365 3d3c 7370 616e 2063 6c61 7373 3d22 se=false)
    .<\n+0001cb90: 6120 6964 3d22 6c30 3038 3334 2220 6e61 a id=\"l00834\" na\n+0001cba0: 6d65 3d22 6c30 3038 3334 223e 3c2f 613e me=\"l00834\">\n+0001cbb0: 3c73 7061 6e20 636c 6173 733d 226c 696e 834 {
    .
    835 \n+0001cc30: 2020 203c 7370 616e 2063 6c61 7373 3d22 if<\n+0001cc50: 2f73 7061 6e3e 2876 6572 626f 7365 2026 /span>(verbose &\n+0001cc60: 616d 703b 2661 6d70 3b20 6f6f 636f 6d6d amp;& oocomm\n+0001cc70: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .communicator().rank()==0)<\n+0001cce0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0001cd30: 3833 363c 2f73 7061 6e3e 2020 2020 2020 836 \n+0001cd40: 7374 643a 3a63 6f75 7426 6c74 3b26 6c74 std::cout<<\n+0001cd50: 3b3c 7370 616e 2063 6c61 7373 3d22 7374 ;&qu\n+0001cd70: 6f74 3b52 6570 6172 7469 7469 6f6e 696e ot;Repartitionin\n+0001cd80: 6720 6672 6f6d 2026 7175 6f74 3b3c 2f73 g from "<<ooco\n+0001cda0: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+0001ce00: 3c2f 613e 2829 2e73 697a 6528 293c 2f64 ().size().
    83\n+0001ce60: 373c 2f73 7061 6e3e 2020 2020 2020 2020 7 \n+0001ce70: 2020 2020 2020 2026 6c74 3b26 6c74 3b3c <<<\n+0001ce80: 7370 616e 2063 6c61 7373 3d22 7374 7269 span class=\"stri\n+0001ce90: 6e67 6c69 7465 7261 6c22 3e26 7175 6f74 ngliteral\">"\n+0001cea0: 3b20 746f 2026 7175 6f74 3b3c 2f73 7061 ; to "<<nparts\n+0001cec0: 266c 743b 266c 743b 3c73 7061 6e20 636c <<" parts\n+0001cef0: 2671 756f 743b 3c2f 7370 616e 3e26 6c74 "<\n+0001cf00: 3b26 6c74 3b73 7464 3a3a 656e 646c 3b3c ;<std::endl;<\n+0001cf10: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0001cf60: 3833 383c 2f73 7061 6e3e 2020 2020 5469 838 Ti\n+0001cf70: 6d65 7220 7469 6d65 3b3c 2f64 6976 3e0a mer time;
    .\n+0001cf80: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0001d090: 6120 6964 3d22 6c30 3038 3430 2220 6e61 a id=\"l00840\" na\n+0001d0a0: 6d65 3d22 6c30 3038 3430 223e 3c2f 613e me=\"l00840\">\n+0001d0b0: 3c73 7061 6e20 636c 6173 733d 226c 696e 840#if \n+0001d0f0: 2148 4156 455f 5041 524d 4554 4953 3c2f !HAVE_PARMETIS
    .<\n+0001d140: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001d150: 6e6f 223e 2020 3834 313c 2f73 7061 6e3e no\"> 841
    \n+0001d160: 2020 2020 3c73 7061 6e20 636c 6173 733d in\n+0001d180: 743c 2f73 7061 6e3e 2a20 7061 7274 203d t* part =\n+0001d190: 203c 7370 616e 2063 6c61 7373 3d22 6b65 new int<\n+0001d1d0: 2f73 7061 6e3e 5b31 5d3b 3c2f 6469 763e /span>[1];
    \n+0001d1e0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001d210: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 842 part[0]\n+0001d240: 3d30 3b3c 2f64 6976 3e0a 3c64 6976 2063 =0;
    .
    843#else
    .<\n+0001d300: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001d310: 6e6f 223e 2020 3834 343c 2f73 7061 6e3e no\"> 844
    \n+0001d320: 2020 2020 3c61 2063 6c61 7373 3d22 636f Metis::idx_t\n+0001d380: 3c2f 613e 2a20 7061 7274 203d 203c 7370 * part = new Me\n+0001d400: 7469 733a 3a69 6478 5f74 3c2f 613e 5b31 tis::idx_t[1\n+0001d410: 5d3b 203c 7370 616e 2063 6c61 7373 3d22 ]; // wher\n+0001d430: 6520 616c 6c20 6f75 7220 6461 7461 206d e all our data m\n+0001d440: 6f76 6573 2074 6f3c 2f73 7061 6e3e 3c2f oves to.
    8\n+0001d4a0: 3435 3c2f 7370 616e 3e20 3c2f 6469 763e 45
    \n+0001d4b0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001d4e0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 846 if(npa\n+0001d530: 7274 7326 6774 3b31 2920 7b3c 2f64 6976 rts>1) {.
    847<\n+0001d590: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+0001d5b0: 3c61 2069 643d 226c 3030 3834 3822 206e 848 part[0]=\n+0001d600: 7261 6e6b 3b3c 2f64 6976 3e0a 3c64 6976 rank;
    .<\n+0001d640: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001d650: 6e6f 223e 2020 3834 393c 2f73 7061 6e3e no\"> 849\n+0001d660: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+0001d6b0: 2020 3835 303c 2f73 7061 6e3e 2020 2020 850 \n+0001d6c0: 2020 7b20 3c73 7061 6e20 636c 6173 733d { // sub\n+0001d6e0: 6c6f 636b 2066 6f72 2061 7574 6f6d 6174 lock for automat\n+0001d6f0: 6963 206d 656d 6f72 7920 6465 6c65 7469 ic memory deleti\n+0001d700: 6f6e 3c2f 7370 616e 3e3c 2f64 6976 3e0a on
    .\n+0001d710: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0001d7a0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001d7b0: 6e6f 223e 2020 3835 323c 2f73 7061 6e3e no\"> 852
    \n+0001d7c0: 2020 2020 2020 2020 3c73 7061 6e20 636c //\n+0001d7e0: 2042 7569 6c64 2074 6865 2067 7261 7068 Build the graph\n+0001d7f0: 206f 6620 7468 6520 636f 6d6d 756e 6963 of the communic\n+0001d800: 6174 696f 6e20 7363 6865 6d65 2061 6e64 ation scheme and\n+0001d810: 2063 7265 6174 6520 616e 2061 7070 726f create an appro\n+0001d820: 7072 6961 7465 2069 6e64 6578 7365 742e priate indexset.\n+0001d830: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+0001d850: 3c61 2069 643d 226c 3030 3835 3322 206e 853 \n+0001d8b0: 2f2f 2063 616c 6375 6c61 7465 2074 6865 // calculate the\n+0001d8c0: 206e 6569 6768 626f 7572 2076 6572 7469 neighbour verti\n+0001d8d0: 6365 733c 2f73 7061 6e3e 3c2f 6469 763e ces
    \n+0001d8e0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001d910: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 854 int noNeighbours =\n+0001d970: 206f 6f63 6f6d 6d2e 3c61 2063 6c61 7373 oocomm.remoteI\n+0001d9d0: 6e64 6963 6573 3c2f 613e 2829 2e6e 6569 ndices().nei\n+0001d9e0: 6768 626f 7572 7328 293b 3c2f 6469 763e ghbours();
    \n+0001d9f0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+0001da60: 6120 6964 3d22 6c30 3038 3536 2220 6e61 a id=\"l00856\" na\n+0001da70: 6d65 3d22 6c30 3038 3536 223e 3c2f 613e me=\"l00856\">\n+0001da80: 3c73 7061 6e20 636c 6173 733d 226c 696e 856 for(auto \n+0001daf0: 6e3d 206f 6f63 6f6d 6d2e 3c61 2063 6c61 n= oocomm.remot\n+0001db50: 6549 6e64 6963 6573 3c2f 613e 2829 2e62 eIndices().b\n+0001db60: 6567 696e 2829 3b20 6e20 213d 2020 6f6f egin(); n != oo\n+0001db70: 636f 6d6d 2e3c 6120 636c 6173 733d 2263 comm.remoteIndi\n+0001dbd0: 6365 733c 2f61 3e28 292e 656e 6428 293b ces().end();\n+0001dbe0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0001dc30: 2038 3537 3c2f 7370 616e 3e20 2020 2020 857 \n+0001dc40: 2020 2020 2020 202b 2b6e 293c 2f64 6976 ++n).
    858<\n+0001dca0: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+0001dcb0: 3c73 7061 6e20 636c 6173 733d 226b 6579 if(n->first=\n+0001dce0: 3d72 616e 6b29 207b 3c2f 6469 763e 0a3c =rank) {
    .<\n+0001dcf0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0001dd00: 3e3c 6120 6964 3d22 6c30 3038 3539 2220 > 859 <\n+0001dd50: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+0001dd60: 656e 7422 3e2f 2f64 6f20 6e6f 7420 696e ent\">//do not in\n+0001dd70: 636c 7564 6520 6f75 7273 656c 7665 732e clude ourselves.\n+0001dd80: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+0001dda0: 3c61 2069 643d 226c 3030 3836 3022 206e 860 --\n+0001ddf0: 6e6f 4e65 6967 6862 6f75 7273 3b3c 2f64 noNeighbours;.
    86\n+0001de50: 313c 2f73 7061 6e3e 2020 2020 2020 2020 1 \n+0001de60: 2020 2020 3c73 7061 6e20 636c 6173 733d br\n+0001de80: 6561 6b3c 2f73 7061 6e3e 3b3c 2f64 6976 eak;.
    862<\n+0001dee0: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+0001def0: 7d3c 2f64 6976 3e0a 3c64 6976 2063 6c61 }
    .
    \n+0001df40: 2020 3836 333c 2f73 7061 6e3e 203c 2f64 863 .
    86\n+0001dfa0: 343c 2f73 7061 6e3e 2020 2020 2020 2020 4 \n+0001dfb0: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // A parme\n+0001dfd0: 7469 7320 6772 6170 6820 7265 7072 6573 tis graph repres\n+0001dfe0: 656e 7469 6e67 2074 6865 2063 6f6d 6d75 enting the commu\n+0001dff0: 6e69 6361 7469 6f6e 2067 7261 7068 2e3c nication graph.<\n+0001e000: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+0001e020: 6120 6964 3d22 6c30 3038 3635 2220 6e61 a id=\"l00865\" na\n+0001e030: 6d65 3d22 6c30 3038 3635 223e 3c2f 613e me=\"l00865\">\n+0001e040: 3c73 7061 6e20 636c 6173 733d 226c 696e 865 /\n+0001e080: 2f20 5468 6520 6469 6167 6f6e 616c 2065 / The diagonal e\n+0001e090: 6e74 7269 6573 2061 7265 2074 6865 206e ntries are the n\n+0001e0a0: 756d 6265 7220 6f66 206e 6f64 6573 206f umber of nodes o\n+0001e0b0: 6e20 7468 6520 7072 6f63 6573 732e 3c2f n the process.
    .<\n+0001e100: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001e110: 6e6f 223e 2020 3836 363c 2f73 7061 6e3e no\"> 866\n+0001e120: 2020 2020 2020 2020 3c73 7061 6e20 636c //\n+0001e140: 2054 6865 206f 6666 6469 6167 6f6e 616c The offdiagonal\n+0001e150: 2065 6e74 7269 6573 2061 7265 2074 6865 entries are the\n+0001e160: 206e 756d 6265 7220 6f66 2065 6467 6573 number of edges\n+0001e170: 206c 6561 6469 6e67 2074 6f20 6f74 6865 leading to othe\n+0001e180: 7220 7072 6f63 6573 7365 732e 3c2f 7370 r processes.
    .
    867 <\n+0001e1f0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0001e240: 3836 383c 2f73 7061 6e3e 2020 2020 2020 868 \n+0001e250: 2020 3c61 2063 6c61 7373 3d22 636f 6465 Metis::idx_t *xadj=n\n+0001e2d0: 6577 3c2f 7370 616e 3e20 3c61 2063 6c61 ew Metis:\n+0001e330: 3a69 6478 5f74 3c2f 613e 5b32 5d3b 3c2f :idx_t[2];.
    8\n+0001e390: 3639 3c2f 7370 616e 3e20 2020 2020 2020 69 \n+0001e3a0: 203c 6120 636c 6173 733d 2263 6f64 6520 Metis::idx_t *vtxdist=new Meti\n+0001e480: 733a 3a69 6478 5f74 3c2f 613e 5b6f 6f63 s::idx_t[ooc\n+0001e490: 6f6d 6d2e 3c61 2063 6c61 7373 3d22 636f omm.communicato\n+0001e4f0: 723c 2f61 3e28 292e 7369 7a65 2829 2b31 r().size()+1\n+0001e500: 5d3b 3c2f 6469 763e 0a3c 6469 7620 636c ];
    .
    870 \n+0001e560: 2020 2020 203c 6120 636c 6173 733d 2263 Metis::idx_\n+0001e5c0: 743c 2f61 3e20 2a61 646a 6e63 793d 3c73 t *adjncy=new <\n+0001e5f0: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+0001e600: 5f74 7970 6564 6566 2220 6872 6566 3d22 _typedef\" href=\"\n+0001e610: 6130 3032 3635 2e68 746d 6c23 6162 3162 a00265.html#ab1b\n+0001e620: 3837 3965 6562 6435 6433 3237 3031 6337 879eebd5d32701c7\n+0001e630: 6235 3837 3962 6265 3634 6131 3722 3e4d b5879bbe64a17\">M\n+0001e640: 6574 6973 3a3a 6964 785f 743c 2f61 3e5b etis::idx_t[\n+0001e650: 6e6f 4e65 6967 6862 6f75 7273 5d3b 3c2f noNeighbours];.
    8\n+0001e6b0: 3731 3c2f 7370 616e 3e3c 7370 616e 2063 71#ifdef USE_W\n+0001e6e0: 4549 4748 5453 3c2f 7370 616e 3e3c 2f64 EIGHTS.
    87\n+0001e740: 323c 2f73 7061 6e3e 2020 2020 2020 2020 2 \n+0001e750: 3c61 2063 6c61 7373 3d22 636f 6465 2068 \n+0001e7a0: 4d65 7469 733a 3a69 6478 5f74 3c2f 613e Metis::idx_t\n+0001e7b0: 202a 7677 6774 203d 2030 3b3c 2f64 6976 *vwgt = 0;.
    873<\n+0001e810: 2f73 7061 6e3e 2020 2020 2020 2020 3c61 /span> Me\n+0001e870: 7469 733a 3a69 6478 5f74 3c2f 613e 202a tis::idx_t *\n+0001e880: 6164 6a77 6774 203d 2030 3b3c 2f64 6976 adjwgt = 0;.
    874<\n+0001e8e0: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#endif.
    8\n+0001e960: 3735 3c2f 7370 616e 3e20 3c2f 6469 763e 75
    \n+0001e970: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001e9a0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 876 // each proce\n+0001e9f0: 7373 2068 6173 2065 7861 6374 6c79 206f ss has exactly o\n+0001ea00: 6e65 2076 6572 7465 7821 3c2f 7370 616e ne vertex!
    .
    \n+0001ea60: 2020 3837 373c 2f73 7061 6e3e 2020 2020 877 \n+0001ea70: 2020 2020 3c73 7061 6e20 636c 6173 733d fo\n+0001ea90: 723c 2f73 7061 6e3e 283c 7370 616e 2063 r(int i=\n+0001eac0: 303b 2069 266c 743b 6f6f 636f 6d6d 2e3c 0; i<oocomm.<\n+0001ead0: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+0001eae0: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n+0001eaf0: 2261 3031 3938 342e 6874 6d6c 2361 6164 \"a01984.html#aad\n+0001eb00: 3033 6530 3438 3135 3232 6138 3262 6330 03e0481522a82bc0\n+0001eb10: 6232 3132 6361 6431 6462 3736 6638 223e b212cad1db76f8\">\n+0001eb20: 636f 6d6d 756e 6963 6174 6f72 3c2f 613e communicator\n+0001eb30: 2829 2e73 697a 6528 293b 202b 2b69 293c ().size(); ++i)<\n+0001eb40: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0001eb90: 3837 383c 2f73 7061 6e3e 2020 2020 2020 878 \n+0001eba0: 2020 2020 7674 7864 6973 745b 695d 3d69 vtxdist[i]=i\n+0001ebb0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0001ec00: 2020 3837 393c 2f73 7061 6e3e 2020 2020 879 \n+0001ec10: 2020 2020 7674 7864 6973 745b 6f6f 636f vtxdist[ooco\n+0001ec20: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+0001ec80: 3c2f 613e 2829 2e73 697a 6528 295d 3d6f ().size()]=o\n+0001ec90: 6f63 6f6d 6d2e 3c61 2063 6c61 7373 3d22 ocomm.communica\n+0001ecf0: 746f 723c 2f61 3e28 292e 7369 7a65 2829 tor().size()\n+0001ed00: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0001ed50: 2020 3838 303c 2f73 7061 6e3e 203c 2f64 880 .
    88\n+0001edb0: 313c 2f73 7061 6e3e 2020 2020 2020 2020 1 \n+0001edc0: 7861 646a 5b30 5d3d 303b 3c2f 6469 763e xadj[0]=0;
    \n+0001edd0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001ee00: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 882 xad\n+0001ee30: 6a5b 315d 3d6e 6f4e 6569 6768 626f 7572 j[1]=noNeighbour\n+0001ee40: 733b 3c2f 6469 763e 0a3c 6469 7620 636c s;
    .
    883 .
    8\n+0001eef0: 3834 3c2f 7370 616e 3e20 2020 2020 2020 84 \n+0001ef00: 203c 7370 616e 2063 6c61 7373 3d22 636f // count \n+0001ef20: 6564 6765 7320 746f 206f 7468 6572 2070 edges to other p\n+0001ef30: 726f 6365 7373 6f72 3c2f 7370 616e 3e3c rocessor<\n+0001ef40: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0001ef90: 3838 353c 2f73 7061 6e3e 2020 2020 2020 885 \n+0001efa0: 2020 3c73 7061 6e20 636c 6173 733d 2263 // a vec\n+0001efc0: 746f 7220 6d61 7070 696e 6720 7468 6520 tor mapping the \n+0001efd0: 696e 6465 7820 746f 2074 6865 206f 776e index to the own\n+0001efe0: 6572 3c2f 7370 616e 3e3c 2f64 6976 3e0a er
    .\n+0001eff0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n+0001f100: 2038 3837 3c2f 7370 616e 3e20 2020 2020 887 \n+0001f110: 2020 203c 7370 616e 2063 6c61 7373 3d22 // for(\n+0001f130: 4e65 6967 6862 6f75 7249 7465 7261 746f NeighbourIterato\n+0001f140: 7220 6e3d 206f 6f63 6f6d 6d2e 7265 6d6f r n= oocomm.remo\n+0001f150: 7465 496e 6469 6365 7328 292e 6265 6769 teIndices().begi\n+0001f160: 6e28 293b 206e 2021 3d20 206f 6f63 6f6d n(); n != oocom\n+0001f170: 6d2e 7265 6d6f 7465 496e 6469 6365 7328 m.remoteIndices(\n+0001f180: 292e 656e 6428 293b 3c2f 7370 616e 3e3c ).end();<\n+0001f190: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0001f1e0: 3838 383c 2f73 7061 6e3e 2020 2020 2020 888 \n+0001f1f0: 2020 3c73 7061 6e20 636c 6173 733d 2263 // +\n+0001f210: 2b6e 293c 2f73 7061 6e3e 3c2f 6469 763e +n)
    \n+0001f220: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001f250: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 889 // {\n+0001f2a0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0001f2f0: 2038 3930 3c2f 7370 616e 3e20 2020 2020 890 \n+0001f300: 2020 203c 7370 616e 2063 6c61 7373 3d22 // \n+0001f320: 6966 286e 2d26 6774 3b66 6972 7374 213d if(n->first!=\n+0001f330: 6f6f 636f 6d6d 2e63 6f6d 6d75 6e69 6361 oocomm.communica\n+0001f340: 746f 7228 292e 7261 6e6b 2829 297b 3c2f tor().rank()){
    .<\n+0001f390: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001f3a0: 6e6f 223e 2020 3839 313c 2f73 7061 6e3e no\"> 891\n+0001f3b0: 2020 2020 2020 2020 3c73 7061 6e20 636c //\n+0001f3d0: 2020 2020 2020 2074 7970 6564 6566 2074 typedef t\n+0001f3e0: 7970 656e 616d 6520 5265 6d6f 7465 496e ypename RemoteIn\n+0001f3f0: 6469 6365 733a 3a52 656d 6f74 6549 6e64 dices::RemoteInd\n+0001f400: 6578 4c69 7374 2052 494c 6973 743b 3c2f exList RIList;
    .<\n+0001f450: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001f460: 6e6f 223e 2020 3839 323c 2f73 7061 6e3e no\"> 892\n+0001f470: 2020 2020 2020 2020 3c73 7061 6e20 636c //\n+0001f490: 2020 2020 2020 2063 6f6e 7374 2052 494c const RIL\n+0001f4a0: 6973 7426 616d 703b 2072 6c69 7374 203d ist& rlist =\n+0001f4b0: 202a 286e 2d26 6774 3b73 6563 6f6e 642e *(n->second.\n+0001f4c0: 6669 7273 7429 3b3c 2f73 7061 6e3e 3c2f first);.
    8\n+0001f520: 3933 3c2f 7370 616e 3e20 2020 2020 2020 93 \n+0001f530: 203c 7370 616e 2063 6c61 7373 3d22 636f // \n+0001f550: 7479 7065 6465 6620 7479 7065 6e61 6d65 typedef typename\n+0001f560: 2052 494c 6973 743a 3a63 6f6e 7374 5f69 RIList::const_i\n+0001f570: 7465 7261 746f 7220 4c49 7465 723b 3c2f terator LIter;
    .<\n+0001f5c0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001f5d0: 6e6f 223e 2020 3839 343c 2f73 7061 6e3e no\"> 894\n+0001f5e0: 2020 2020 2020 2020 3c73 7061 6e20 636c //\n+0001f600: 2020 2020 2020 2066 6f72 284c 4974 6572 for(LIter\n+0001f610: 2065 6e74 7279 3d72 6c69 7374 2e62 6567 entry=rlist.beg\n+0001f620: 696e 2829 3b20 656e 7472 7921 3d72 6c69 in(); entry!=rli\n+0001f630: 7374 2e65 6e64 2829 3b20 2b2b 656e 7472 st.end(); ++entr\n+0001f640: 7929 7b3c 2f73 7061 6e3e 3c2f 6469 763e y){
    \n+0001f650: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001f680: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 895 // if\n+0001f6d0: 2865 6e74 7279 2d26 6774 3b61 7474 7269 (entry->attri\n+0001f6e0: 6275 7465 2829 3d3d 4f77 6e65 724f 7665 bute()==OwnerOve\n+0001f6f0: 726c 6170 436f 7079 4174 7472 6962 7574 rlapCopyAttribut\n+0001f700: 6553 6574 3a3a 6f77 6e65 7229 3c2f 7370 eSet::owner)
    .
    896 \n+0001f770: 2020 2020 2020 3c73 7061 6e20 636c 6173 // \n+0001f790: 2020 2020 2020 2020 206f 776e 6572 5b65 owner[e\n+0001f7a0: 6e74 7279 2d26 6774 3b6c 6f63 616c 496e ntry->localIn\n+0001f7b0: 6465 7850 6169 7228 292e 6c6f 6361 6c28 dexPair().local(\n+0001f7c0: 295d 203d 206e 2d26 6774 3b66 6972 7374 )] = n->first\n+0001f7d0: 3b3c 2f73 7061 6e3e 3c2f 6469 763e 0a3c ;
    .<\n+0001f7e0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0001f7f0: 3e3c 6120 6964 3d22 6c30 3038 3937 2220 > 897 // }
    .
    898 \n+0001f8c0: 2020 2020 203c 7370 616e 2063 6c61 7373 // \n+0001f8e0: 2020 7d3c 2f73 7061 6e3e 3c2f 6469 763e }
    \n+0001f8f0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001f920: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 899 // }\n+0001f970: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0001f9c0: 2039 3030 3c2f 7370 616e 3e20 3c2f 6469 900 .
    901\n+0001fa20: 3c2f 7370 616e 3e20 2020 2020 2020 203c <\n+0001fa30: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+0001fa40: 656e 7422 3e2f 2f20 7374 643a 3a6d 6170 ent\">// std::map\n+0001fa50: 266c 743b 696e 742c 4d65 7469 733a 3a69 <int,Metis::i\n+0001fa60: 6478 5f74 2667 743b 2065 6467 6563 6f75 dx_t> edgecou\n+0001fa70: 6e74 3b20 2f2f 2065 6467 6573 2074 6f20 nt; // edges to \n+0001fa80: 6f74 6865 7220 7072 6f63 6573 736f 7273 other processors\n+0001fa90: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+0001fab0: 3c61 2069 643d 226c 3030 3930 3222 206e 902 \n+0001fb10: 2f2f 2074 7970 6564 6566 2074 7970 656e // typedef typen\n+0001fb20: 616d 6520 4d3a 3a43 6f6e 7374 526f 7749 ame M::ConstRowI\n+0001fb30: 7465 7261 746f 7220 5249 7465 723b 3c2f terator RIter;
    .<\n+0001fb80: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0001fb90: 6e6f 223e 2020 3930 333c 2f73 7061 6e3e no\"> 903\n+0001fba0: 2020 2020 2020 2020 3c73 7061 6e20 636c //\n+0001fbc0: 2074 7970 6564 6566 2074 7970 656e 616d typedef typenam\n+0001fbd0: 6520 4d3a 3a43 6f6e 7374 436f 6c49 7465 e M::ConstColIte\n+0001fbe0: 7261 746f 7220 4349 7465 723b 3c2f 7370 rator CIter;
    .
    904 <\n+0001fc50: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+0001fca0: 3930 353c 2f73 7061 6e3e 2020 2020 2020 905 \n+0001fcb0: 2020 3c73 7061 6e20 636c 6173 733d 2263 // // ca\n+0001fcd0: 6c63 756c 6174 6520 6564 6765 2063 6f75 lculate edge cou\n+0001fce0: 6e74 3c2f 7370 616e 3e3c 2f64 6976 3e0a nt
    .\n+0001fcf0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n+0001fdb0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001fde0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 907 // if(owner\n+0001fe30: 5b72 6f77 2e69 6e64 6578 2829 5d3d 3d4f [row.index()]==O\n+0001fe40: 776e 6572 4f76 6572 6c61 7043 6f70 7941 wnerOverlapCopyA\n+0001fe50: 7474 7269 6275 7465 5365 743a 3a6f 776e ttributeSet::own\n+0001fe60: 6572 293c 2f73 7061 6e3e 3c2f 6469 763e er)
    \n+0001fe70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0001fea0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 908 // for(CI\n+0001fef0: 7465 7220 656e 7472 793d 2072 6f77 2d26 ter entry= row-&\n+0001ff00: 6774 3b62 6567 696e 2829 2c20 656e 6465 gt;begin(), ende\n+0001ff10: 203d 2072 6f77 2d26 6774 3b65 6e64 2829 = row->end()\n+0001ff20: 3b20 656e 7472 7920 213d 2065 6e64 653b ; entry != ende;\n+0001ff30: 202b 2b65 6e74 7279 293c 2f73 7061 6e3e ++entry)\n+0001ff40: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0001ff90: 2039 3039 3c2f 7370 616e 3e20 2020 2020 909 \n+0001ffa0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // \n+0001ffc0: 2020 2b2b 6564 6765 636f 756e 745b 6f77 ++edgecount[ow\n+0001ffd0: 6e65 725b 656e 7472 792e 696e 6465 7828 ner[entry.index(\n+0001ffe0: 295d 5d3b 3c2f 7370 616e 3e3c 2f64 6976 )]];.
    910<\n+00020040: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+00020060: 3c61 2069 643d 226c 3030 3931 3122 206e 911 \n+000200c0: 2f2f 2073 6574 7570 2065 6467 6520 616e // setup edge an\n+000200d0: 6420 7765 6967 6874 2070 6174 7465 726e d weight pattern\n+000200e0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00020100: 3c61 2069 643d 226c 3030 3931 3222 206e 912
    .
    913 \n+000201a0: 2020 2020 2020 3c61 2063 6c61 7373 3d22 Metis::idx\n+00020200: 5f74 3c2f 613e 2a20 6164 6a70 3d61 646a _t* adjp=adj\n+00020210: 6e63 793b 3c2f 6469 763e 0a3c 6469 7620 ncy;
    .
    914 \n+00020270: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000202c0: 2039 3135 3c2f 7370 616e 3e3c 7370 616e 915#ifdef USE\n+000202f0: 5f57 4549 4748 5453 3c2f 7370 616e 3e3c _WEIGHTS<\n+00020300: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00020350: 3931 363c 2f73 7061 6e3e 2020 2020 2020 916 \n+00020360: 2020 7677 6774 2020 203d 203c 7370 616e vwgt = new Meti\n+000203e0: 733a 3a69 6478 5f74 3c2f 613e 5b31 5d3b s::idx_t[1];\n+000203f0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00020440: 2039 3137 3c2f 7370 616e 3e20 2020 2020 917 \n+00020450: 2020 2076 7767 745b 305d 3d20 3c61 2063 vwgt[0]= ma\n+000204b0: 743c 2f61 3e2e 4e28 293b 203c 7370 616e t.N(); // weight is nu\n+000204e0: 6d65 7220 6f66 2072 6f77 7320 544f 444f mer of rows TODO\n+000204f0: 3a20 5368 6f75 6c64 2061 6374 7561 6c6c : Should actuall\n+00020500: 7920 6265 2074 6865 206e 6f6e 7a65 726f y be the nonzero\n+00020510: 732e 3c2f 7370 616e 3e3c 2f64 6976 3e0a s.
    .\n+00020520: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+000205b0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000205c0: 6e6f 223e 2020 3931 393c 2f73 7061 6e3e no\"> 919\n+000205d0: 2020 2020 2020 2020 6164 6a77 6774 203d adjwgt =\n+000205e0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 new Metis::idx_t[noNeighbours]\n+00020670: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+000206c0: 2020 3932 303c 2f73 7061 6e3e 2020 2020 920 \n+000206d0: 2020 2020 3c61 2063 6c61 7373 3d22 636f Metis::idx_t\n+00020730: 3c2f 613e 2a20 6164 6a77 703d 6164 6a77 * adjwp=adjw\n+00020740: 6774 3b3c 2f64 6976 3e0a 3c64 6976 2063 gt;
    .
    921#endif<\n+000207c0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+000207e0: 6120 6964 3d22 6c30 3039 3232 2220 6e61 a id=\"l00922\" na\n+000207f0: 6d65 3d22 6c30 3039 3232 223e 3c2f 613e me=\"l00922\">\n+00020800: 3c73 7061 6e20 636c 6173 733d 226c 696e 922
    .
    923 \n+00020880: 2020 2020 203c 7370 616e 2063 6c61 7373 f\n+000208a0: 6f72 3c2f 7370 616e 3e28 3c73 7061 6e20 or(\n+000208c0: 6175 746f 3c2f 7370 616e 3e20 6e3d 206f auto n= o\n+000208d0: 6f63 6f6d 6d2e 3c61 2063 6c61 7373 3d22 ocomm.remoteInd\n+00020930: 6963 6573 3c2f 613e 2829 2e62 6567 696e ices().begin\n+00020940: 2829 3b20 6e20 213d 2020 6f6f 636f 6d6d (); n != oocomm\n+00020950: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .remoteIndices<\n+000209b0: 2f61 3e28 292e 656e 6428 293b 3c2f 6469 /a>().end();.
    924\n+00020a10: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00020a20: 2020 202b 2b6e 293c 2f64 6976 3e0a 3c64 ++n)
    .\n+00020a40: 3c61 2069 643d 226c 3030 3932 3522 206e 925 if(\n+00020ab0: 6e2d 2667 743b 6669 7273 7420 213d 2072 n->first != r\n+00020ac0: 616e 6b29 207b 3c2f 6469 763e 0a3c 6469 ank) {
    .<\n+00020ae0: 6120 6964 3d22 6c30 3039 3236 2220 6e61 a id=\"l00926\" na\n+00020af0: 6d65 3d22 6c30 3039 3236 223e 3c2f 613e me=\"l00926\">\n+00020b00: 3c73 7061 6e20 636c 6173 733d 226c 696e 926 *ad\n+00020b30: 6a70 3d6e 2d26 6774 3b66 6972 7374 3b3c jp=n->first;<\n+00020b40: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00020b90: 3932 373c 2f73 7061 6e3e 2020 2020 2020 927 \n+00020ba0: 2020 2020 2020 2b2b 6164 6a70 3b3c 2f64 ++adjp;.
    92\n+00020c00: 383c 2f73 7061 6e3e 3c73 7061 6e20 636c 8#ifdef USE_WE\n+00020c30: 4947 4854 533c 2f73 7061 6e3e 3c2f 6469 IGHTS.
    929\n+00020c90: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00020ca0: 2020 202a 6164 6a77 703d 313b 203c 7370 *adjwp=1; //edgecount[n\n+00020cd0: 2d26 6774 3b66 6972 7374 5d3b 3c2f 7370 ->first];
    .
    930 \n+00020d40: 2020 2020 2020 2020 2020 2b2b 6164 6a77 ++adjw\n+00020d50: 703b 3c2f 6469 763e 0a3c 6469 7620 636c p;
    .
    931#endif
    .<\n+00020e10: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00020e20: 6e6f 223e 2020 3933 323c 2f73 7061 6e3e no\"> 932\n+00020e30: 2020 2020 2020 2020 2020 7d3c 2f64 6976 }.
    933<\n+00020e90: 2f73 7061 6e3e 2020 2020 2020 2020 6173 /span> as\n+00020ea0: 7365 7274 283c 6120 636c 6173 733d 2263 sert(isValidGra\n+00020f00: 7068 3c2f 613e 2876 7478 6469 7374 5b72 ph(vtxdist[r\n+00020f10: 616e 6b2b 315d 2d76 7478 6469 7374 5b72 ank+1]-vtxdist[r\n+00020f20: 616e 6b5d 2c3c 2f64 6976 3e0a 3c64 6976 ank],
    .<\n+00020f60: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00020f70: 6e6f 223e 2020 3933 343c 2f73 7061 6e3e no\"> 934\n+00020f80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00020f90: 2020 2020 2020 2020 2020 2020 7674 7864 vtxd\n+00020fa0: 6973 745b 6f6f 636f 6d6d 2e3c 6120 636c ist[oocomm.comm\n+00021000: 756e 6963 6174 6f72 3c2f 613e 2829 2e73 unicator().s\n+00021010: 697a 6528 295d 2c3c 2f64 6976 3e0a 3c64 ize()],
    .\n+00021030: 3c61 2069 643d 226c 3030 3933 3522 206e 935 \n+00021080: 2020 2020 2020 2020 2020 2020 2020 6e6f no\n+00021090: 4e65 6967 6862 6f75 7273 2c20 7861 646a Neighbours, xadj\n+000210a0: 2c20 6164 6a6e 6379 2c20 3c73 7061 6e20 , adjncy, \n+000210c0: 6661 6c73 653c 2f73 7061 6e3e 2929 3b3c false));<\n+000210d0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00021120: 3933 363c 2f73 7061 6e3e 203c 2f64 6976 936 .
    937<\n+00021180: 2f73 7061 6e3e 2020 2020 2020 2020 5b5b /span> [[\n+00021190: 6d61 7962 655f 756e 7573 6564 5d5d 203c maybe_unused]] <\n+000211a0: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+000211b0: 5f74 7970 6564 6566 2220 6872 6566 3d22 _typedef\" href=\"\n+000211c0: 6130 3032 3635 2e68 746d 6c23 6162 3162 a00265.html#ab1b\n+000211d0: 3837 3965 6562 6435 6433 3237 3031 6337 879eebd5d32701c7\n+000211e0: 6235 3837 3962 6265 3634 6131 3722 3e4d b5879bbe64a17\">M\n+000211f0: 6574 6973 3a3a 6964 785f 743c 2f61 3e20 etis::idx_t \n+00021200: 7767 7466 6c61 673d 303b 3c2f 6469 763e wgtflag=0;
    \n+00021210: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+000212e0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000212f0: 3e3c 6120 6964 3d22 6c30 3039 3339 2220 > 939 Metis\n+00021390: 3a3a 6964 785f 743c 2f61 3e20 6564 6765 ::idx_t edge\n+000213a0: 6375 743b 3c2f 6469 763e 0a3c 6469 7620 cut;
    .
    940<\n+00021400: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n+00021410: 726f 6365 7373 6f72 223e 2369 6664 6566 rocessor\">#ifdef\n+00021420: 2055 5345 5f57 4549 4748 5453 3c2f 7370 USE_WEIGHTS
    .
    941 \n+00021490: 2020 2020 2020 7767 7466 6c61 673d 333b wgtflag=3;\n+000214a0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000214f0: 2039 3432 3c2f 7370 616e 3e3c 7370 616e 942#endif
    .
    943 \n+00021580: 2020 2020 2020 3c61 2063 6c61 7373 3d22 Metis::rea\n+000215e0: 6c5f 743c 2f61 3e20 2a74 7077 6774 7320 l_t *tpwgts \n+000215f0: 3d20 3c73 7061 6e20 636c 6173 733d 226b = new Metis::real_t\n+00021670: 3c2f 613e 5b6e 7061 7274 735d 3b3c 2f64 [nparts];.
    94\n+000216d0: 343c 2f73 7061 6e3e 2020 2020 2020 2020 4 \n+000216e0: 3c73 7061 6e20 636c 6173 733d 226b 6579 for(i\n+00021720: 6e74 3c2f 7370 616e 3e20 693d 303b 2069 nt i=0; i\n+00021730: 266c 743b 6e70 6172 7473 3b20 2b2b 6929 <nparts; ++i)\n+00021740: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00021790: 2039 3435 3c2f 7370 616e 3e20 2020 2020 945 \n+000217a0: 2020 2020 2074 7077 6774 735b 695d 3d31 tpwgts[i]=1\n+000217b0: 2e30 2f6e 7061 7274 733b 3c2f 6469 763e .0/nparts;
    \n+000217c0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000217f0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 946 MPI\n+00021820: 5f43 6f6d 6d20 636f 6d6d 3d6f 6f63 6f6d _Comm comm=oocom\n+00021830: 6d2e 3c61 2063 6c61 7373 3d22 636f 6465 m.communicator<\n+00021890: 2f61 3e28 293b 3c2f 6469 763e 0a3c 6469 /a>();
    .<\n+000218b0: 6120 6964 3d22 6c30 3039 3437 2220 6e61 a id=\"l00947\" na\n+000218c0: 6d65 3d22 6c30 3039 3437 223e 3c2f 613e me=\"l00947\">\n+000218d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 947
    .
    948 \n+00021950: 2020 2020 2044 756e 653a 3a64 696e 666f Dune::dinfo\n+00021960: 266c 743b 266c 743b 7261 6e6b 266c 743b <<rank<\n+00021970: 266c 743b 3c73 7061 6e20 636c 6173 733d <\n+00021990: 2671 756f 743b 2076 7478 6469 7374 3a20 " vtxdist: \n+000219a0: 2671 756f 743b 3c2f 7370 616e 3e3b 3c2f ";.
    9\n+00021a00: 3439 3c2f 7370 616e 3e20 2020 2020 2020 49 \n+00021a10: 203c 6120 636c 6173 733d 2263 6f64 6520 print_carray(Dune::dinfo, \n+00021a80: 7674 7864 6973 742c 206f 6f63 6f6d 6d2e vtxdist, oocomm.\n+00021a90: 3c61 2063 6c61 7373 3d22 636f 6465 2068 communicator().size()+1);.
    9\n+00021b50: 3530 3c2f 7370 616e 3e20 2020 2020 2020 50 \n+00021b60: 2044 756e 653a 3a64 696e 666f 266c 743b Dune::dinfo<\n+00021b70: 266c 743b 7374 643a 3a65 6e64 6c26 6c74 <std::endl<\n+00021b80: 3b26 6c74 3b72 616e 6b26 6c74 3b26 6c74 ;<rank<<\n+00021b90: 3b3c 7370 616e 2063 6c61 7373 3d22 7374 ;&qu\n+00021bb0: 6f74 3b20 7861 646a 3a20 2671 756f 743b ot; xadj: "\n+00021bc0: 3c2f 7370 616e 3e3b 3c2f 6469 763e 0a3c ;
    .<\n+00021bd0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00021be0: 3e3c 6120 6964 3d22 6c30 3039 3531 2220 > 951 prin\n+00021c80: 745f 6361 7272 6179 3c2f 613e 2844 756e t_carray(Dun\n+00021c90: 653a 3a64 696e 666f 2c20 7861 646a 2c20 e::dinfo, xadj, \n+00021ca0: 3229 3b3c 2f64 6976 3e0a 3c64 6976 2063 2);
    .
    952 \n+00021d00: 2020 2020 2020 4475 6e65 3a3a 6469 6e66 Dune::dinf\n+00021d10: 6f26 6c74 3b26 6c74 3b73 7464 3a3a 656e o<<std::en\n+00021d20: 646c 266c 743b 266c 743b 7261 6e6b 266c dl<<rank&l\n+00021d30: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<" adjncy:\n+00021d60: 2026 7175 6f74 3b3c 2f73 7061 6e3e 3b3c ";<\n+00021d70: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>..\n+00021e70: 3c61 2069 643d 226c 3030 3935 3422 206e 954
    .
    955#ifdef \n+00021f30: 5553 455f 5745 4947 4854 533c 2f73 7061 USE_WEIGHTS
    .
    956 \n+00021fa0: 2020 2020 2044 756e 653a 3a64 696e 666f Dune::dinfo\n+00021fb0: 266c 743b 266c 743b 7374 643a 3a65 6e64 <<std::end\n+00021fc0: 6c26 6c74 3b26 6c74 3b72 616e 6b26 6c74 l<<rank<\n+00021fd0: 3b26 6c74 3b3c 7370 616e 2063 6c61 7373 ;<" vwgt: &q\n+00022000: 756f 743b 3c2f 7370 616e 3e3b 3c2f 6469 uot;;.
    957\n+00022060: 3c2f 7370 616e 3e20 2020 2020 2020 203c <\n+00022070: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+00022080: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n+00022090: 2261 3030 3234 392e 6874 6d6c 2361 3866 \"a00249.html#a8f\n+000220a0: 6430 3765 6133 6632 3263 6234 3732 3735 d07ea3f22cb47275\n+000220b0: 3835 3964 3339 6437 6264 6666 6566 223e 859d39d7bdffef\">\n+000220c0: 7072 696e 745f 6361 7272 6179 3c2f 613e print_carray\n+000220d0: 2844 756e 653a 3a64 696e 666f 2c20 7677 (Dune::dinfo, vw\n+000220e0: 6774 2c20 3129 3b3c 2f64 6976 3e0a 3c64 gt, 1);
    .\n+00022100: 3c61 2069 643d 226c 3030 3935 3822 206e 958 Dune::\n+00022150: 6469 6e66 6f26 6c74 3b26 6c74 3b73 7464 dinfo<<std\n+00022160: 3a3a 656e 646c 266c 743b 266c 743b 7261 ::endl<<ra\n+00022170: 6e6b 266c 743b 266c 743b 3c73 7061 6e20 nk<<" adw\n+000221a0: 6774 3a20 2671 756f 743b 3c2f 7370 616e gt: ";
    .
    959 \n+00022210: 2020 2020 203c 6120 636c 6173 733d 2263 print_carr\n+00022270: 6179 3c2f 613e 2844 756e 653a 3a64 696e ay(Dune::din\n+00022280: 666f 2c20 6164 6a77 6774 2c20 6e6f 4e65 fo, adjwgt, noNe\n+00022290: 6967 6862 6f75 7273 293b 3c2f 6469 763e ighbours);
    \n+000222a0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000222d0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 960\n+00022310: 2365 6e64 6966 3c2f 7370 616e 3e3c 2f64 #endif.
    96\n+00022370: 313c 2f73 7061 6e3e 2020 2020 2020 2020 1 \n+00022380: 4475 6e65 3a3a 6469 6e66 6f26 6c74 3b26 Dune::dinfo<&\n+00022390: 6c74 3b73 7464 3a3a 656e 646c 3b3c 2f64 lt;std::endl;.
    96\n+000223f0: 323c 2f73 7061 6e3e 2020 2020 2020 2020 2 \n+00022400: 6f6f 636f 6d6d 2e3c 6120 636c 6173 733d oocomm.communic\n+00022460: 6174 6f72 3c2f 613e 2829 2e62 6172 7269 ator().barri\n+00022470: 6572 2829 3b3c 2f64 6976 3e0a 3c64 6976 er();
    .<\n+000224b0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000224c0: 6e6f 223e 2020 3936 333c 2f73 7061 6e3e no\"> 963\n+000224d0: 2020 2020 2020 2020 3c73 7061 6e20 636c if(verb\n+00022500: 6f73 6520 2661 6d70 3b26 616d 703b 206f ose && o\n+00022510: 6f63 6f6d 6d2e 3c61 2063 6c61 7373 3d22 ocomm.communica\n+00022570: 746f 723c 2f61 3e28 292e 7261 6e6b 2829 tor().rank()\n+00022580: 3d3d 3029 3c2f 6469 763e 0a3c 6469 7620 ==0)
    .
    964 \n+000225e0: 2020 2020 2020 2020 2073 7464 3a3a 636f std::co\n+000225f0: 7574 266c 743b 266c 743b 3c73 7061 6e20 ut<<"Crea\n+00022620: 7469 6e67 2063 6f6d 6d20 6772 6170 6820 ting comm graph \n+00022630: 746f 6f6b 2026 7175 6f74 3b3c 2f73 7061 took "<<time.e\n+00022650: 6c61 7073 6564 2829 266c 743b 266c 743b lapsed()<<\n+00022660: 7374 643a 3a65 6e64 6c3b 3c2f 6469 763e std::endl;
    \n+00022670: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000226a0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 965 tim\n+000226d0: 652e 7265 7365 7428 293b 3c2f 6469 763e e.reset();
    \n+000226e0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00022750: 6120 6964 3d22 6c30 3039 3637 2220 6e61 a id=\"l00967\" na\n+00022760: 6d65 3d22 6c30 3039 3637 223e 3c2f 613e me=\"l00967\">\n+00022770: 3c73 7061 6e20 636c 6173 733d 226c 696e 967#ifd\n+000227b0: 6566 2050 4152 414c 4c45 4c5f 5041 5254 ef PARALLEL_PART\n+000227c0: 4954 494f 4e3c 2f73 7061 6e3e 3c2f 6469 ITION.
    968\n+00022820: 3c2f 7370 616e 3e20 2020 2020 2020 203c <\n+00022830: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+00022840: 5f74 7970 6564 6566 2220 6872 6566 3d22 _typedef\" href=\"\n+00022850: 6130 3032 3635 2e68 746d 6c23 6138 3966 a00265.html#a89f\n+00022860: 6232 3165 6231 3030 3932 3937 6136 3464 b21eb1009297a64d\n+00022870: 6232 3530 3365 3463 6461 3231 6522 3e4d b2503e4cda21e\">M\n+00022880: 6574 6973 3a3a 7265 616c 5f74 3c2f 613e etis::real_t\n+00022890: 2075 6276 6563 203d 2031 2e31 353b 3c2f ubvec = 1.15;.
    9\n+000228f0: 3639 3c2f 7370 616e 3e20 2020 2020 2020 69 \n+00022900: 203c 7370 616e 2063 6c61 7373 3d22 6b65 int ncon=1;.
    97\n+00022980: 303c 2f73 7061 6e3e 2020 2020 2020 2020 0 \n+00022990: 3c73 7061 6e20 636c 6173 733d 226b 6579 int options[5] \n+000229c0: 3d7b 2030 2c31 2c31 352c 302c 307d 3b3c ={ 0,1,15,0,0};<\n+000229d0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00022a20: 3937 313c 2f73 7061 6e3e 203c 2f64 6976 971 .
    972<\n+00022a80: 2f73 7061 6e3e 2020 2020 2020 2020 3c73 /span> //==========\n+00022ab0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00022ac0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00022ad0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3c 2f73 =============
    .
    973 \n+00022b40: 2020 2020 2020 203c 7370 616e 2063 6c61 // \n+00022b60: 5061 724d 4554 4953 5f56 335f 5061 7274 ParMETIS_V3_Part\n+00022b70: 4b77 6179 3c2f 7370 616e 3e3c 2f64 6976 Kway.
    974<\n+00022bd0: 2f73 7061 6e3e 2020 2020 2020 2020 3c73 /span> //==========\n+00022c00: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00022c10: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00022c20: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3c 2f73 =============
    .
    975 \n+00022c90: 2020 2020 2020 2050 6172 4d45 5449 535f ParMETIS_\n+00022ca0: 5633 5f50 6172 744b 7761 7928 7674 7864 V3_PartKway(vtxd\n+00022cb0: 6973 742c 2078 6164 6a2c 2061 646a 6e63 ist, xadj, adjnc\n+00022cc0: 792c 3c2f 6469 763e 0a3c 6469 7620 636c y,
    .
    976 \n+00022d20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00022d30: 2020 2020 2020 2020 2020 7677 6774 2c20 vwgt, \n+00022d40: 6164 6a77 6774 2c20 2661 6d70 3b77 6774 adjwgt, &wgt\n+00022d50: 666c 6167 2c3c 2f64 6976 3e0a 3c64 6976 flag,
    .<\n+00022d90: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00022da0: 6e6f 223e 2020 3937 373c 2f73 7061 6e3e no\"> 977\n+00022db0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00022dc0: 2020 2020 2020 2020 2020 2020 2026 616d &am\n+00022dd0: 703b 6e75 6d66 6c61 672c 2026 616d 703b p;numflag, &\n+00022de0: 6e63 6f6e 2c20 2661 6d70 3b6e 7061 7274 ncon, &npart\n+00022df0: 732c 2074 7077 6774 732c 2026 616d 703b s, tpwgts, &\n+00022e00: 7562 7665 632c 206f 7074 696f 6e73 2c20 ubvec, options, \n+00022e10: 2661 6d70 3b65 6467 6563 7574 2c20 7061 &edgecut, pa\n+00022e20: 7274 2c3c 2f64 6976 3e0a 3c64 6976 2063 rt,
    .
    978 \n+00022e80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00022e90: 2020 2020 2020 2020 2020 2026 616d 703b &\n+00022ea0: 636f 6d6d 293b 3c2f 6469 763e 0a3c 6469 comm);
    .<\n+00022ec0: 6120 6964 3d22 6c30 3039 3739 2220 6e61 a id=\"l00979\" na\n+00022ed0: 6d65 3d22 6c30 3039 3739 223e 3c2f 613e me=\"l00979\">\n+00022ee0: 3c73 7061 6e20 636c 6173 733d 226c 696e 979 if(ver\n+00022f30: 626f 7365 2026 616d 703b 2661 6d70 3b20 bose && \n+00022f40: 6f6f 636f 6d6d 2e3c 6120 636c 6173 733d oocomm.communic\n+00022fa0: 6174 6f72 3c2f 613e 2829 2e72 616e 6b28 ator().rank(\n+00022fb0: 293d 3d30 293c 2f64 6976 3e0a 3c64 6976 )==0)
    .<\n+00022ff0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00023000: 6e6f 223e 2020 3938 303c 2f73 7061 6e3e no\"> 980
    \n+00023010: 2020 2020 2020 2020 2020 7374 643a 3a63 std::c\n+00023020: 6f75 7426 6c74 3b26 6c74 3b3c 7370 616e out<<"Par\n+00023050: 4d45 5449 5320 746f 6f6b 2026 7175 6f74 METIS took "\n+00023060: 3b3c 2f73 7061 6e3e 266c 743b 266c 743b ;<<\n+00023070: 7469 6d65 2e65 6c61 7073 6564 2829 266c time.elapsed()&l\n+00023080: 743b 266c 743b 7374 643a 3a65 6e64 6c3b t;<std::endl;\n+00023090: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000230e0: 2039 3831 3c2f 7370 616e 3e20 2020 2020 981 \n+000230f0: 2020 2074 696d 652e 7265 7365 7428 293b time.reset();\n+00023100: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00023150: 2039 3832 3c2f 7370 616e 3e3c 7370 616e 982#else
    .
    983 \n+000231e0: 2020 2020 2054 696d 6572 2074 696d 6531 Timer time1\n+000231f0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00023240: 2020 3938 343c 2f73 7061 6e3e 2020 2020 984 \n+00023250: 2020 2020 7374 643a 3a73 697a 655f 7420 std::size_t \n+00023260: 676e 6f65 6467 6573 3d30 3b3c 2f64 6976 gnoedges=0;.
    985<\n+000232c0: 2f73 7061 6e3e 2020 2020 2020 2020 3c73 /span> int* noedges = 0;\n+00023300: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00023350: 2039 3836 3c2f 7370 616e 3e20 2020 2020 986 \n+00023360: 2020 206e 6f65 6467 6573 203d 203c 7370 noedges = new int[oocomm.commu\n+00023410: 6e69 6361 746f 723c 2f61 3e28 292e 7369 nicator().si\n+00023420: 7a65 2829 5d3b 3c2f 6469 763e 0a3c 6469 ze()];
    .<\n+00023440: 6120 6964 3d22 6c30 3039 3837 2220 6e61 a id=\"l00987\" na\n+00023450: 6d65 3d22 6c30 3039 3837 223e 3c2f 613e me=\"l00987\">\n+00023460: 3c73 7061 6e20 636c 6173 733d 226c 696e 987 Dune::d\n+00023490: 7665 7262 266c 743b 266c 743b 3c73 7061 verb<<"no\n+000234c0: 4e65 6967 6862 6f75 7273 3a20 2671 756f Neighbours: &quo\n+000234d0: 743b 3c2f 7370 616e 3e26 6c74 3b26 6c74 t;<<\n+000234e0: 3b6e 6f4e 6569 6768 626f 7572 7326 6c74 ;noNeighbours<\n+000234f0: 3b26 6c74 3b73 7464 3a3a 656e 646c 3b3c ;<std::endl;<\n+00023500: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00023550: 3938 383c 2f73 7061 6e3e 2020 2020 2020 988 \n+00023560: 2020 3c73 7061 6e20 636c 6173 733d 2263 // gathe\n+00023580: 7220 6e75 6d62 6572 206f 6620 6564 6765 r number of edge\n+00023590: 7320 666f 7220 6561 6368 2076 6572 7465 s for each verte\n+000235a0: 782e 3c2f 7370 616e 3e3c 2f64 6976 3e0a x.
    .\n+000235b0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+000236f0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00023700: 6e6f 223e 2020 3939 303c 2f73 7061 6e3e no\"> 990\n+00023710: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+00023760: 2020 3939 313c 2f73 7061 6e3e 2020 2020 991 \n+00023770: 2020 2020 3c73 7061 6e20 636c 6173 733d if\n+00023790: 3c2f 7370 616e 3e28 7665 7262 6f73 6520 (verbose \n+000237a0: 2661 6d70 3b26 616d 703b 206f 6f63 6f6d && oocom\n+000237b0: 6d2e 3c61 2063 6c61 7373 3d22 636f 6465 m.communicator<\n+00023810: 2f61 3e28 292e 7261 6e6b 2829 3d3d 3029 /a>().rank()==0)\n+00023820: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00023870: 2039 3932 3c2f 7370 616e 3e20 2020 2020 992 \n+00023880: 2020 2020 2073 7464 3a3a 636f 7574 266c std::cout&l\n+00023890: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<"Gatherin\n+000238c0: 6720 6e6f 6564 6765 7320 746f 6f6b 2026 g noedges took &\n+000238d0: 7175 6f74 3b3c 2f73 7061 6e3e 266c 743b quot;<\n+000238e0: 266c 743b 7469 6d65 312e 656c 6170 7365 <time1.elapse\n+000238f0: 6428 2926 6c74 3b26 6c74 3b73 7464 3a3a d()<<std::\n+00023900: 656e 646c 3b3c 2f64 6976 3e0a 3c64 6976 endl;
    .<\n+00023940: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00023950: 6e6f 223e 2020 3939 333c 2f73 7061 6e3e no\"> 993
    \n+00023960: 2020 2020 2020 2020 7469 6d65 312e 7265 time1.re\n+00023970: 7365 7428 293b 3c2f 6469 763e 0a3c 6469 set();
    .<\n+00023990: 6120 6964 3d22 6c30 3039 3934 2220 6e61 a id=\"l00994\" na\n+000239a0: 6d65 3d22 6c30 3039 3934 223e 3c2f 613e me=\"l00994\">\n+000239b0: 3c73 7061 6e20 636c 6173 733d 226c 696e 994
    .
    995 \n+00023a30: 2020 2020 203c 6120 636c 6173 733d 2263 Metis::idx_\n+00023a90: 743c 2f61 3e20 6e6f 5665 7274 6963 6573 t noVertices\n+00023aa0: 203d 2076 7478 6469 7374 5b6f 6f63 6f6d = vtxdist[oocom\n+00023ab0: 6d2e 3c61 2063 6c61 7373 3d22 636f 6465 m.communicator<\n+00023b10: 2f61 3e28 292e 7369 7a65 2829 5d3b 3c2f /a>().size()];.
    9\n+00023b70: 3936 3c2f 7370 616e 3e20 2020 2020 2020 96 \n+00023b80: 203c 6120 636c 6173 733d 2263 6f64 6520 Metis::idx_t *gxadj = 0;.
    99\n+00023c40: 373c 2f73 7061 6e3e 2020 2020 2020 2020 7 \n+00023c50: 3c61 2063 6c61 7373 3d22 636f 6465 2068 \n+00023ca0: 4d65 7469 733a 3a69 6478 5f74 3c2f 613e Metis::idx_t\n+00023cb0: 202a 6776 7767 7420 3d20 303b 3c2f 6469 *gvwgt = 0;.
    998\n+00023d10: 3c2f 7370 616e 3e20 2020 2020 2020 203c <\n+00023d20: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+00023d30: 5f74 7970 6564 6566 2220 6872 6566 3d22 _typedef\" href=\"\n+00023d40: 6130 3032 3635 2e68 746d 6c23 6162 3162 a00265.html#ab1b\n+00023d50: 3837 3965 6562 6435 6433 3237 3031 6337 879eebd5d32701c7\n+00023d60: 6235 3837 3962 6265 3634 6131 3722 3e4d b5879bbe64a17\">M\n+00023d70: 6574 6973 3a3a 6964 785f 743c 2f61 3e20 etis::idx_t \n+00023d80: 2a67 6164 6a6e 6379 203d 2030 3b3c 2f64 *gadjncy = 0;.
    99\n+00023de0: 393c 2f73 7061 6e3e 2020 2020 2020 2020 9 \n+00023df0: 3c61 2063 6c61 7373 3d22 636f 6465 2068 \n+00023e40: 4d65 7469 733a 3a69 6478 5f74 3c2f 613e Metis::idx_t\n+00023e50: 202a 6761 646a 7767 7420 3d20 303b 3c2f *gadjwgt = 0;.
    10\n+00023eb0: 3030 3c2f 7370 616e 3e20 2020 2020 2020 00 \n+00023ec0: 203c 6120 636c 6173 733d 2263 6f64 6520 Metis::idx_t *gpart = 0;.
    100\n+00023f80: 313c 2f73 7061 6e3e 2020 2020 2020 2020 1 \n+00023f90: 3c73 7061 6e20 636c 6173 733d 226b 6579 int* displ = 0;\n+00023fc0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00024010: 3130 3032 3c2f 7370 616e 3e20 2020 2020 1002 \n+00024020: 2020 203c 7370 616e 2063 6c61 7373 3d22 int\n+00024040: 3c2f 7370 616e 3e2a 206e 6f78 7320 3d20 * noxs = \n+00024050: 303b 3c2f 6469 763e 0a3c 6469 7620 636c 0;
    .
    1003 \n+000240b0: 2020 2020 203c 7370 616e 2063 6c61 7373 i\n+000240d0: 6e74 3c2f 7370 616e 3e2a 2078 6469 7370 nt* xdisp\n+000240e0: 6c20 3d20 303b 2020 3c73 7061 6e20 636c l = 0; //\n+00024100: 2064 6973 706c 6163 656d 656e 7420 666f displacement fo\n+00024110: 7220 7861 646a 3c2f 7370 616e 3e3c 2f64 r xadj.
    100\n+00024170: 343c 2f73 7061 6e3e 2020 2020 2020 2020 4 \n+00024180: 3c73 7061 6e20 636c 6173 733d 226b 6579 int* novs = 0;<\n+000241b0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00024200: 3030 353c 2f73 7061 6e3e 2020 2020 2020 005 \n+00024210: 2020 3c73 7061 6e20 636c 6173 733d 226b int<\n+00024230: 2f73 7061 6e3e 2a20 7664 6973 706c 3d30 /span>* vdispl=0\n+00024240: 3b20 3c73 7061 6e20 636c 6173 733d 2263 ; // real \n+00024260: 7665 7274 6578 2064 6973 706c 6163 656d vertex displacem\n+00024270: 656e 743c 2f73 7061 6e3e 3c2f 6469 763e ent
    \n+00024280: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000242b0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1006\n+000242f0: 2369 6664 6566 2055 5345 5f57 4549 4748 #ifdef USE_WEIGH\n+00024300: 5453 3c2f 7370 616e 3e3c 2f64 6976 3e0a TS
    .\n+00024310: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n+000243f0: 2031 3030 383c 2f73 7061 6e3e 3c73 7061 1008#endif
    .
    1009 \n+00024480: 2020 2020 2020 2073 7464 3a3a 7369 7a65 std::size\n+00024490: 5f74 2067 7861 646a 6c65 6e20 3d20 7674 _t gxadjlen = vt\n+000244a0: 7864 6973 745b 6f6f 636f 6d6d 2e3c 6120 xdist[oocomm.co\n+00024500: 6d6d 756e 6963 6174 6f72 3c2f 613e 2829 mmunicator()\n+00024510: 2e73 697a 6528 295d 2d76 7478 6469 7374 .size()]-vtxdist\n+00024520: 5b30 5d2b 6f6f 636f 6d6d 2e3c 6120 636c [0]+oocomm.comm\n+00024580: 756e 6963 6174 6f72 3c2f 613e 2829 2e73 unicator().s\n+00024590: 697a 6528 293b 3c2f 6469 763e 0a3c 6469 ize();
    .<\n+000245b0: 6120 6964 3d22 6c30 3130 3130 2220 6e61 a id=\"l01010\" na\n+000245c0: 6d65 3d22 6c30 3130 3130 223e 3c2f 613e me=\"l01010\">\n+000245d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1010
    .
    1011 \n+00024650: 2020 2020 207b 3c2f 6469 763e 0a3c 6469 {
    .<\n+00024670: 6120 6964 3d22 6c30 3130 3132 2220 6e61 a id=\"l01012\" na\n+00024680: 6d65 3d22 6c30 3130 3132 223e 3c2f 613e me=\"l01012\">\n+00024690: 3c73 7061 6e20 636c 6173 733d 226c 696e 1012 Dune:\n+000246c0: 3a64 696e 666f 266c 743b 266c 743b 3c73 :dinfo<<"\n+000246f0: 6e6f 6564 6765 733a 2026 7175 6f74 3b3c noedges: "<\n+00024700: 2f73 7061 6e3e 3b3c 2f64 6976 3e0a 3c64 /span>;
    .\n+00024720: 3c61 2069 643d 226c 3031 3031 3322 206e 1013 pri\n+000247c0: 6e74 5f63 6172 7261 793c 2f61 3e28 4475 nt_carray(Du\n+000247d0: 6e65 3a3a 6469 6e66 6f2c 206e 6f65 6467 ne::dinfo, noedg\n+000247e0: 6573 2c20 6f6f 636f 6d6d 2e3c 6120 636c es, oocomm.comm\n+00024840: 756e 6963 6174 6f72 3c2f 613e 2829 2e73 unicator().s\n+00024850: 697a 6528 2929 3b3c 2f64 6976 3e0a 3c64 ize());
    .\n+00024870: 3c61 2069 643d 226c 3031 3031 3422 206e 1014 Dune\n+000248c0: 3a3a 6469 6e66 6f26 6c74 3b26 6c74 3b73 ::dinfo<<s\n+000248d0: 7464 3a3a 656e 646c 3b3c 2f64 6976 3e0a td::endl;
    .\n+000248e0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00024910: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1015 di\n+00024940: 7370 6c20 3d20 3c73 7061 6e20 636c 6173 spl = new<\n+00024960: 2f73 7061 6e3e 203c 7370 616e 2063 6c61 /span> int[ooco\n+00024990: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+000249f0: 3c2f 613e 2829 2e73 697a 6528 295d 3b3c ().size()];<\n+00024a00: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00024a50: 3031 363c 2f73 7061 6e3e 2020 2020 2020 016 \n+00024a60: 2020 2020 7864 6973 706c 203d 203c 7370 xdispl = new int[oocomm.commu\n+00024b10: 6e69 6361 746f 723c 2f61 3e28 292e 7369 nicator().si\n+00024b20: 7a65 2829 5d3b 3c2f 6469 763e 0a3c 6469 ze()];
    .<\n+00024b40: 6120 6964 3d22 6c30 3130 3137 2220 6e61 a id=\"l01017\" na\n+00024b50: 6d65 3d22 6c30 3130 3137 223e 3c2f 613e me=\"l01017\">\n+00024b60: 3c73 7061 6e20 636c 6173 733d 226c 696e 1017 noxs \n+00024b90: 3d20 3c73 7061 6e20 636c 6173 733d 226b = new int\n+00024bd0: 3c2f 7370 616e 3e5b 6f6f 636f 6d6d 2e3c [oocomm.<\n+00024be0: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+00024bf0: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n+00024c00: 2261 3031 3938 342e 6874 6d6c 2361 6164 \"a01984.html#aad\n+00024c10: 3033 6530 3438 3135 3232 6138 3262 6330 03e0481522a82bc0\n+00024c20: 6232 3132 6361 6431 6462 3736 6638 223e b212cad1db76f8\">\n+00024c30: 636f 6d6d 756e 6963 6174 6f72 3c2f 613e communicator\n+00024c40: 2829 2e73 697a 6528 295d 3b3c 2f64 6976 ().size()];.
    1018<\n+00024ca0: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00024cb0: 7664 6973 706c 203d 203c 7370 616e 2063 vdispl = n\n+00024cd0: 6577 3c2f 7370 616e 3e20 3c73 7061 6e20 ew int[o\n+00024d00: 6f63 6f6d 6d2e 3c61 2063 6c61 7373 3d22 ocomm.communica\n+00024d60: 746f 723c 2f61 3e28 292e 7369 7a65 2829 tor().size()\n+00024d70: 5d3b 3c2f 6469 763e 0a3c 6469 7620 636c ];
    .
    1019 \n+00024dd0: 2020 2020 2020 206e 6f76 7320 3d20 3c73 novs = new <\n+00024e00: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00024e10: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int[oocomm.comm\n+00024e80: 756e 6963 6174 6f72 3c2f 613e 2829 2e73 unicator().s\n+00024e90: 697a 6528 295d 3b3c 2f64 6976 3e0a 3c64 ize()];
    .\n+00024eb0: 3c61 2069 643d 226c 3031 3032 3022 206e 1020
    .
    1021 \n+00024f50: 2020 2020 2020 2020 3c73 7061 6e20 636c for(int i=0; i < oo\n+00024fb0: 636f 6d6d 2e3c 6120 636c 6173 733d 2263 comm.communicat\n+00025010: 6f72 3c2f 613e 2829 2e73 697a 6528 293b or().size();\n+00025020: 202b 2b69 2920 7b3c 2f64 6976 3e0a 3c64 ++i) {
    .\n+00025040: 3c61 2069 643d 226c 3031 3032 3222 206e 1022 no\n+00025090: 7873 5b69 5d3d 7674 7864 6973 745b 692b xs[i]=vtxdist[i+\n+000250a0: 315d 2d76 7478 6469 7374 5b69 5d2b 313b 1]-vtxdist[i]+1;\n+000250b0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00025100: 3130 3233 3c2f 7370 616e 3e20 2020 2020 1023 \n+00025110: 2020 2020 2020 206e 6f76 735b 695d 3d76 novs[i]=v\n+00025120: 7478 6469 7374 5b69 2b31 5d2d 7674 7864 txdist[i+1]-vtxd\n+00025130: 6973 745b 695d 3b3c 2f64 6976 3e0a 3c64 ist[i];
    .\n+00025150: 3c61 2069 643d 226c 3031 3032 3422 206e 1024 }.
    102\n+000251f0: 353c 2f73 7061 6e3e 203c 2f64 6976 3e0a 5
    .\n+00025200: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00025230: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1026 Me\n+000252b0: 7469 733a 3a69 6478 5f74 3c2f 613e 202a tis::idx_t *\n+000252c0: 736f 3d20 7674 7864 6973 743b 3c2f 6469 so= vtxdist;.
    1027\n+00025320: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00025330: 203c 7370 616e 2063 6c61 7373 3d22 6b65 int offset = 0\n+00025360: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+000253b0: 2031 3032 383c 2f73 7061 6e3e 2020 2020 1028 \n+000253c0: 2020 2020 2020 3c73 7061 6e20 636c 6173 \n+000253e0: 666f 723c 2f73 7061 6e3e 283c 7370 616e for(int \n+00025410: 2a78 6375 7272 203d 2078 6469 7370 6c2c *xcurr = xdispl,\n+00025420: 202a 7663 7572 7220 3d20 7664 6973 706c *vcurr = vdispl\n+00025430: 2c20 2a65 6e64 3d76 6469 7370 6c2b 6f6f , *end=vdispl+oo\n+00025440: 636f 6d6d 2e3c 6120 636c 6173 733d 2263 comm.communicat\n+000254a0: 6f72 3c2f 613e 2829 2e73 697a 6528 293b or().size();\n+000254b0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00025500: 3130 3239 3c2f 7370 616e 3e20 2020 2020 1029 \n+00025510: 2020 2020 2020 2020 2076 6375 7272 213d vcurr!=\n+00025520: 656e 643b 202b 2b76 6375 7272 2c20 2b2b end; ++vcurr, ++\n+00025530: 7863 7572 722c 202b 2b73 6f2c 202b 2b6f xcurr, ++so, ++o\n+00025540: 6666 7365 7429 207b 3c2f 6469 763e 0a3c ffset) {
    .<\n+00025550: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00025560: 3e3c 6120 6964 3d22 6c30 3130 3330 2220 > 1030 *\n+000255b0: 7663 7572 7220 3d20 2a73 6f3b 3c2f 6469 vcurr = *so;.
    1031\n+00025610: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00025620: 2020 202a 7863 7572 7220 3d20 6f66 6673 *xcurr = offs\n+00025630: 6574 202b 202a 736f 3b3c 2f64 6976 3e0a et + *so;
    .\n+00025640: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00025670: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1032 }<\n+000256a0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+000256f0: 3033 333c 2f73 7061 6e3e 203c 2f64 6976 033 .
    1034<\n+00025750: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00025760: 3c73 7061 6e20 636c 6173 733d 226b 6579 int *pdispl =di\n+00025790: 7370 6c3b 3c2f 6469 763e 0a3c 6469 7620 spl;
    .
    1035 \n+000257f0: 2020 2020 2020 2020 203c 7370 616e 2063 int cd\n+00025820: 6973 706c 203d 2030 3b3c 2f64 6976 3e0a ispl = 0;
    .\n+00025830: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n+000258a0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000258d0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1037 <\n+00025900: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00025910: 6f72 6466 6c6f 7722 3e66 6f72 3c2f 7370 ordflow\">for(in\n+00025940: 743c 2f73 7061 6e3e 202a 6375 7272 3d6e t *curr=n\n+00025950: 6f65 6467 6573 2c20 2a65 6e64 3d6e 6f65 oedges, *end=noe\n+00025960: 6467 6573 2b6f 6f63 6f6d 6d2e 3c61 2063 dges+oocomm.com\n+000259c0: 6d75 6e69 6361 746f 723c 2f61 3e28 292e municator().\n+000259d0: 7369 7a65 2829 2d31 3b3c 2f64 6976 3e0a size()-1;
    .\n+000259e0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00025a70: 6120 6964 3d22 6c30 3130 3339 2220 6e61 a id=\"l01039\" na\n+00025a80: 6d65 3d22 6c30 3130 3339 223e 3c2f 613e me=\"l01039\">\n+00025a90: 3c73 7061 6e20 636c 6173 733d 226c 696e 1039 ++p\n+00025ac0: 6469 7370 6c3b 203c 7370 616e 2063 6c61 displ; // \n+00025ae0: 6e65 7874 2064 6973 706c 6163 656d 656e next displacemen\n+00025af0: 743c 2f73 7061 6e3e 3c2f 6469 763e 0a3c t
    .<\n+00025b00: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00025b10: 3e3c 6120 6964 3d22 6c30 3130 3430 2220 > 1040 c\n+00025b60: 6469 7370 6c20 2b3d 202a 6375 7272 3b20 displ += *curr; \n+00025b70: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // next va\n+00025b90: 6c75 653c 2f73 7061 6e3e 3c2f 6469 763e lue
    \n+00025ba0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00025bd0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1041 \n+00025c00: 202a 7064 6973 706c 203d 2063 6469 7370 *pdispl = cdisp\n+00025c10: 6c3b 3c2f 6469 763e 0a3c 6469 7620 636c l;
    .
    1042 \n+00025c70: 2020 2020 2020 207d 3c2f 6469 763e 0a3c }
    .<\n+00025c80: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00025c90: 3e3c 6120 6964 3d22 6c30 3130 3433 2220 > 1043 Dun\n+00025ce0: 653a 3a64 696e 666f 266c 743b 266c 743b e::dinfo<<\n+00025cf0: 3c73 7061 6e20 636c 6173 733d 2273 7472 &quo\n+00025d10: 743b 6469 7370 6c3a 2026 7175 6f74 3b3c t;displ: "<\n+00025d20: 2f73 7061 6e3e 3b3c 2f64 6976 3e0a 3c64 /span>;
    .\n+00025d40: 3c61 2069 643d 226c 3031 3034 3422 206e 1044 pri\n+00025de0: 6e74 5f63 6172 7261 793c 2f61 3e28 4475 nt_carray(Du\n+00025df0: 6e65 3a3a 6469 6e66 6f2c 2064 6973 706c ne::dinfo, displ\n+00025e00: 2c20 6f6f 636f 6d6d 2e3c 6120 636c 6173 , oocomm.commun\n+00025e60: 6963 6174 6f72 3c2f 613e 2829 2e73 697a icator().siz\n+00025e70: 6528 2929 3b3c 2f64 6976 3e0a 3c64 6976 e());
    .<\n+00025eb0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00025ec0: 6e6f 223e 2031 3034 353c 2f73 7061 6e3e no\"> 1045\n+00025ed0: 2020 2020 2020 2020 2020 4475 6e65 3a3a Dune::\n+00025ee0: 6469 6e66 6f26 6c74 3b26 6c74 3b73 7464 dinfo<<std\n+00025ef0: 3a3a 656e 646c 3b3c 2f64 6976 3e0a 3c64 ::endl;
    .\n+00025f10: 3c61 2069 643d 226c 3031 3034 3622 206e 1046
    .
    1047 \n+00025fb0: 2020 2020 2020 2020 3c73 7061 6e20 636c //\n+00025fd0: 2063 616c 6375 6c61 7465 2067 6c6f 6261 calculate globa\n+00025fe0: 6c20 6e75 6d62 6572 206f 6620 6564 6765 l number of edge\n+00025ff0: 733c 2f73 7061 6e3e 3c2f 6469 763e 0a3c s
    .<\n+00026000: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00026010: 3e3c 6120 6964 3d22 6c30 3130 3438 2220 > 1048 // It is bigg\n+00026080: 6572 2074 6861 6e20 7468 6520 6163 7475 er than the actu\n+00026090: 616c 206f 6e65 2061 7320 7765 2068 6162 al one as we hab\n+000260a0: 6520 7369 7a65 2d31 2061 6464 6974 696f e size-1 additio\n+000260b0: 6e61 6c20 656e 6420 656e 7472 6965 733c nal end entries<\n+000260c0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+000260e0: 6120 6964 3d22 6c30 3130 3439 2220 6e61 a id=\"l01049\" na\n+000260f0: 6d65 3d22 6c30 3130 3439 223e 3c2f 613e me=\"l01049\">\n+00026100: 3c73 7061 6e20 636c 6173 733d 226c 696e 1049 for(\n+00026150: 3c73 7061 6e20 636c 6173 733d 226b 6579 int *curr=noedg\n+00026180: 6573 2c20 2a65 6e64 3d6e 6f65 6467 6573 es, *end=noedges\n+00026190: 2b6f 6f63 6f6d 6d2e 3c61 2063 6c61 7373 +oocomm.communi\n+000261f0: 6361 746f 723c 2f61 3e28 292e 7369 7a65 cator().size\n+00026200: 2829 3b3c 2f64 6976 3e0a 3c64 6976 2063 ();
    .
    1050 \n+00026260: 2020 2020 2020 2020 2020 2020 6375 7272 curr\n+00026270: 213d 656e 643b 202b 2b63 7572 7229 3c2f !=end; ++curr).
    10\n+000262d0: 3531 3c2f 7370 616e 3e20 2020 2020 2020 51 \n+000262e0: 2020 2020 2067 6e6f 6564 6765 7320 2b3d gnoedges +=\n+000262f0: 202a 6375 7272 3b3c 2f64 6976 3e0a 3c64 *curr;
    .\n+00026310: 3c61 2069 643d 226c 3031 3035 3222 206e 1052
    .
    1053 \n+000263b0: 2020 2020 2020 2020 3c73 7061 6e20 636c //\n+000263d0: 2061 6c6f 6361 7465 2067 6f62 616c 2067 alocate gobal g\n+000263e0: 7261 7068 3c2f 7370 616e 3e3c 2f64 6976 raph.
    1054<\n+00026440: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00026450: 4475 6e65 3a3a 6469 6e66 6f26 6c74 3b26 Dune::dinfo<&\n+00026460: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+00026480: 7175 6f74 3b67 7861 646a 6c65 6e3a 2026 quot;gxadjlen: &\n+00026490: 7175 6f74 3b3c 2f73 7061 6e3e 266c 743b quot;<\n+000264a0: 266c 743b 6778 6164 6a6c 656e 266c 743b <gxadjlen<\n+000264b0: 266c 743b 3c73 7061 6e20 636c 6173 733d <\n+000264d0: 2671 756f 743b 206e 6f56 6572 7469 6365 " noVertice\n+000264e0: 733a 2026 7175 6f74 3b3c 2f73 7061 6e3e s: "\n+000264f0: 266c 743b 266c 743b 6e6f 5665 7274 6963 <<noVertic\n+00026500: 6573 3c2f 6469 763e 0a3c 6469 7620 636c es
    .
    1055 \n+00026560: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00026570: 2020 266c 743b 266c 743b 3c73 7061 6e20 <<" gno\n+000265a0: 6564 6765 733a 2026 7175 6f74 3b3c 2f73 edges: "<<gnoe\n+000265c0: 6467 6573 266c 743b 266c 743b 7374 643a dges<<std:\n+000265d0: 3a65 6e64 6c3b 3c2f 6469 763e 0a3c 6469 :endl;
    .<\n+000265f0: 6120 6964 3d22 6c30 3130 3536 2220 6e61 a id=\"l01056\" na\n+00026600: 6d65 3d22 6c30 3130 3536 223e 3c2f 613e me=\"l01056\">\n+00026610: 3c73 7061 6e20 636c 6173 733d 226c 696e 1056 gxadj\n+00026640: 203d 203c 7370 616e 2063 6c61 7373 3d22 = new Metis::idx_t\n+000266c0: 3c2f 613e 5b67 7861 646a 6c65 6e5d 3b3c [gxadjlen];<\n+000266d0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00026720: 3035 373c 2f73 7061 6e3e 2020 2020 2020 057 \n+00026730: 2020 2020 6770 6172 7420 3d20 3c73 7061 gpart = new Met\n+000267b0: 6973 3a3a 6964 785f 743c 2f61 3e5b 6e6f is::idx_t[no\n+000267c0: 5665 7274 6963 6573 5d3b 3c2f 6469 763e Vertices];
    \n+000267d0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00026800: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1058\n+00026840: 2369 6664 6566 2055 5345 5f57 4549 4748 #ifdef USE_WEIGH\n+00026850: 5453 3c2f 7370 616e 3e3c 2f64 6976 3e0a TS
    .\n+00026860: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    1060 \n+000269b0: 2020 2020 2020 2020 2067 6164 6a77 6774 gadjwgt\n+000269c0: 203d 203c 7370 616e 2063 6c61 7373 3d22 = new Metis::idx_t\n+00026a40: 3c2f 613e 5b67 6e6f 6564 6765 735d 3b3c [gnoedges];<\n+00026a50: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00026aa0: 3036 313c 2f73 7061 6e3e 3c73 7061 6e20 061#endif
    .
    1062 \n+00026b30: 2020 2020 2020 2067 6164 6a6e 6379 203d gadjncy =\n+00026b40: 203c 7370 616e 2063 6c61 7373 3d22 6b65 new Metis::idx_t[gnoedges];.
    106\n+00026c20: 333c 2f73 7061 6e3e 2020 2020 2020 2020 3 \n+00026c30: 7d3c 2f64 6976 3e0a 3c64 6976 2063 6c61 }
    .
    \n+00026c80: 2031 3036 343c 2f73 7061 6e3e 203c 2f64 1064 .
    106\n+00026ce0: 353c 2f73 7061 6e3e 2020 2020 2020 2020 5 \n+00026cf0: 3c73 7061 6e20 636c 6173 733d 226b 6579 if(verbose &\n+00026d20: 3b26 616d 703b 206f 6f63 6f6d 6d2e 3c61 ;& oocomm.c\n+00026d80: 6f6d 6d75 6e69 6361 746f 723c 2f61 3e28 ommunicator(\n+00026d90: 292e 7261 6e6b 2829 3d3d 3029 3c2f 6469 ).rank()==0).
    1066\n+00026df0: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00026e00: 2073 7464 3a3a 636f 7574 266c 743b 266c std::cout<&l\n+00026e10: 743b 3c73 7061 6e20 636c 6173 733d 2273 t;&q\n+00026e30: 756f 743b 5072 6570 6172 696e 6720 676c uot;Preparing gl\n+00026e40: 6f62 616c 2067 7261 7068 2074 6f6f 6b20 obal graph took \n+00026e50: 2671 756f 743b 3c2f 7370 616e 3e26 6c74 "<\n+00026e60: 3b26 6c74 3b74 696d 6531 2e65 6c61 7073 ;<time1.elaps\n+00026e70: 6564 2829 266c 743b 266c 743b 7374 643a ed()<<std:\n+00026e80: 3a65 6e64 6c3b 3c2f 6469 763e 0a3c 6469 :endl;
    .<\n+00026ea0: 6120 6964 3d22 6c30 3130 3637 2220 6e61 a id=\"l01067\" na\n+00026eb0: 6d65 3d22 6c30 3130 3637 223e 3c2f 613e me=\"l01067\">\n+00026ec0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1067 time1.r\n+00026ef0: 6573 6574 2829 3b3c 2f64 6976 3e0a 3c64 eset();
    .\n+00026f10: 3c61 2069 643d 226c 3031 3036 3822 206e 1068 \n+00026f70: 2f2f 2043 6f6d 6d75 6e69 6361 7465 2064 // Communicate d\n+00026f80: 6174 613c 2f73 7061 6e3e 3c2f 6469 763e ata
    \n+00026f90: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00027000: 6120 6964 3d22 6c30 3130 3730 2220 6e61 a id=\"l01070\" na\n+00027010: 6d65 3d22 6c30 3130 3730 223e 3c2f 613e me=\"l01070\">\n+00027020: 3c73 7061 6e20 636c 6173 733d 226c 696e 1070 MPI_All\n+00027050: 6761 7468 6572 7628 7861 646a 2c32 2c4d gatherv(xadj,2,M\n+00027060: 5049 5472 6169 7473 266c 743b 4d65 7469 PITraits<Meti\n+00027070: 733a 3a69 6478 5f74 2667 743b 3a3a 6765 s::idx_t>::ge\n+00027080: 7454 7970 6528 292c 3c2f 6469 763e 0a3c tType(),
    .<\n+00027090: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000270a0: 3e3c 6120 6964 3d22 6c30 3130 3731 2220 > 1071 \n+000270f0: 2020 2020 2020 2020 2020 6778 6164 6a2c gxadj,\n+00027100: 6e6f 7873 2c78 6469 7370 6c2c 4d50 4954 noxs,xdispl,MPIT\n+00027110: 7261 6974 7326 6c74 3b4d 6574 6973 3a3a raits<Metis::\n+00027120: 6964 785f 7426 6774 3b3a 3a67 6574 5479 idx_t>::getTy\n+00027130: 7065 2829 2c3c 2f64 6976 3e0a 3c64 6976 pe(),
    .<\n+00027170: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00027180: 6e6f 223e 2031 3037 323c 2f73 7061 6e3e no\"> 1072
    \n+00027190: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000271a0: 2020 2020 2020 2063 6f6d 6d29 3b3c 2f64 comm);.
    107\n+00027200: 333c 2f73 7061 6e3e 2020 2020 2020 2020 3 \n+00027210: 4d50 495f 416c 6c67 6174 6865 7276 2861 MPI_Allgatherv(a\n+00027220: 646a 6e63 792c 6e6f 4e65 6967 6862 6f75 djncy,noNeighbou\n+00027230: 7273 2c4d 5049 5472 6169 7473 266c 743b rs,MPITraits<\n+00027240: 4d65 7469 733a 3a69 6478 5f74 2667 743b Metis::idx_t>\n+00027250: 3a3a 6765 7454 7970 6528 292c 3c2f 6469 ::getType(),.
    1074\n+000272b0: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+000272c0: 2020 2020 2020 2020 2020 2020 2020 6761 ga\n+000272d0: 646a 6e63 792c 6e6f 6564 6765 732c 6469 djncy,noedges,di\n+000272e0: 7370 6c2c 4d50 4954 7261 6974 7326 6c74 spl,MPITraits<\n+000272f0: 3b4d 6574 6973 3a3a 6964 785f 7426 6774 ;Metis::idx_t>\n+00027300: 3b3a 3a67 6574 5479 7065 2829 2c3c 2f64 ;::getType(),.
    107\n+00027360: 353c 2f73 7061 6e3e 2020 2020 2020 2020 5 \n+00027370: 2020 2020 2020 2020 2020 2020 2020 2063 c\n+00027380: 6f6d 6d29 3b3c 2f64 6976 3e0a 3c64 6976 omm);
    .<\n+000273c0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000273d0: 6e6f 223e 2031 3037 363c 2f73 7061 6e3e no\"> 1076\n+000273e0: 3c73 7061 6e20 636c 6173 733d 2270 7265 #ifde\n+00027400: 6620 5553 455f 5745 4947 4854 533c 2f73 f USE_WEIGHTS
    .
    1077 \n+00027470: 2020 2020 2020 204d 5049 5f41 6c6c 6761 MPI_Allga\n+00027480: 7468 6572 7628 6164 6a77 6774 2c6e 6f4e therv(adjwgt,noN\n+00027490: 6569 6768 626f 7572 732c 4d50 4954 7261 eighbours,MPITra\n+000274a0: 6974 7326 6c74 3b4d 6574 6973 3a3a 6964 its<Metis::id\n+000274b0: 785f 7426 6774 3b3a 3a67 6574 5479 7065 x_t>::getType\n+000274c0: 2829 2c3c 2f64 6976 3e0a 3c64 6976 2063 (),
    .
    1078 \n+00027520: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00027530: 2020 2020 2067 6164 6a77 6774 2c6e 6f65 gadjwgt,noe\n+00027540: 6467 6573 2c64 6973 706c 2c4d 5049 5472 dges,displ,MPITr\n+00027550: 6169 7473 266c 743b 4d65 7469 733a 3a69 aits<Metis::i\n+00027560: 6478 5f74 2667 743b 3a3a 6765 7454 7970 dx_t>::getTyp\n+00027570: 6528 292c 3c2f 6469 763e 0a3c 6469 7620 e(),
    .
    1079 \n+000275d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000275e0: 2020 2020 2020 636f 6d6d 293b 3c2f 6469 comm);.
    1080\n+00027640: 3c2f 7370 616e 3e20 2020 2020 2020 204d M\n+00027650: 5049 5f41 6c6c 6761 7468 6572 7628 7677 PI_Allgatherv(vw\n+00027660: 6774 2c6c 6f63 616c 4e6f 5674 782c 4d50 gt,localNoVtx,MP\n+00027670: 4954 7261 6974 7326 6c74 3b4d 6574 6973 ITraits<Metis\n+00027680: 3a3a 6964 785f 7426 6774 3b3a 3a67 6574 ::idx_t>::get\n+00027690: 5479 7065 2829 2c3c 2f64 6976 3e0a 3c64 Type(),
    .\n+000276b0: 3c61 2069 643d 226c 3031 3038 3122 206e 1081 \n+00027700: 2020 2020 2020 2020 2067 7677 6774 2c6e gvwgt,n\n+00027710: 6f76 732c 7664 6973 706c 2c4d 5049 5472 ovs,vdispl,MPITr\n+00027720: 6169 7473 266c 743b 4d65 7469 733a 3a69 aits<Metis::i\n+00027730: 6478 5f74 2667 743b 3a3a 6765 7454 7970 dx_t>::getTyp\n+00027740: 6528 292c 3c2f 6469 763e 0a3c 6469 7620 e(),
    .
    1082 \n+000277a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000277b0: 2020 2020 2020 636f 6d6d 293b 3c2f 6469 comm);.
    1083\n+00027810: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 #endif<\n+00027840: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00027890: 3038 343c 2f73 7061 6e3e 2020 2020 2020 084 \n+000278a0: 2020 3c73 7061 6e20 636c 6173 733d 226b if(verbose &a\n+000278d0: 6d70 3b26 616d 703b 206f 6f63 6f6d 6d2e mp;& oocomm.\n+000278e0: 3c61 2063 6c61 7373 3d22 636f 6465 2068 communicator().rank()==0).
    10\n+000279a0: 3835 3c2f 7370 616e 3e20 2020 2020 2020 85 \n+000279b0: 2020 2073 7464 3a3a 636f 7574 266c 743b std::cout<\n+000279c0: 266c 743b 3c73 7061 6e20 636c 6173 733d <\n+000279e0: 2671 756f 743b 4761 7468 6572 696e 6720 "Gathering \n+000279f0: 676c 6f62 616c 2067 7261 7068 2064 6174 global graph dat\n+00027a00: 6120 746f 6f6b 2026 7175 6f74 3b3c 2f73 a took "<<time\n+00027a20: 312e 656c 6170 7365 6428 2926 6c74 3b26 1.elapsed()<&\n+00027a30: 6c74 3b73 7464 3a3a 656e 646c 3b3c 2f64 lt;std::endl;.
    108\n+00027a90: 363c 2f73 7061 6e3e 2020 2020 2020 2020 6 \n+00027aa0: 7469 6d65 312e 7265 7365 7428 293b 3c2f time1.reset();.
    10\n+00027b00: 3837 3c2f 7370 616e 3e20 3c2f 6469 763e 87
    \n+00027b10: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00027b40: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1088 {.
    10\n+00027bc0: 3839 3c2f 7370 616e 3e20 2020 2020 2020 89 \n+00027bd0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // crea\n+00027bf0: 7465 2074 6865 2072 6561 6c20 6778 6164 te the real gxad\n+00027c00: 6a20 6172 7261 793c 2f73 7061 6e3e 3c2f j array.
    10\n+00027c60: 3930 3c2f 7370 616e 3e20 2020 2020 2020 90 \n+00027c70: 2020 203c 7370 616e 2063 6c61 7373 3d22 // i.e.\n+00027c90: 2073 6869 6674 2065 6e74 7269 6573 2061 shift entries a\n+00027ca0: 6e64 2061 6464 2064 6973 706c 6163 656d nd add displacem\n+00027cb0: 656e 7473 2e3c 2f73 7061 6e3e 3c2f 6469 ents..
    1091\n+00027d10: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+00027d20: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00027d30: 3e3c 6120 6964 3d22 6c30 3130 3932 2220 > 1092 pr\n+00027dd0: 696e 745f 6361 7272 6179 3c2f 613e 2844 int_carray(D\n+00027de0: 756e 653a 3a64 696e 666f 2c20 6778 6164 une::dinfo, gxad\n+00027df0: 6a2c 2067 7861 646a 6c65 6e29 3b3c 2f64 j, gxadjlen);.
    109\n+00027e50: 333c 2f73 7061 6e3e 203c 2f64 6976 3e0a 3
    .\n+00027e60: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00027e90: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1094 int offset = 0;.
    10\n+00027f40: 3935 3c2f 7370 616e 3e20 2020 2020 2020 95 \n+00027f50: 2020 203c 6120 636c 6173 733d 2263 6f64 Metis::idx_t<\n+00027fb0: 2f61 3e20 696e 6372 656d 656e 7420 3d20 /a> increment = \n+00027fc0: 7674 7864 6973 745b 315d 3b3c 2f64 6976 vtxdist[1];.
    1096<\n+00028020: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00028030: 3c61 2063 6c61 7373 3d22 636f 6465 2068 \n+00028080: 4d65 7469 733a 3a69 6478 5f74 3c2f 613e Metis::idx_t\n+00028090: 202a 7374 6172 743d 6778 6164 6a2b 313b *start=gxadj+1;\n+000280a0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000280f0: 3130 3937 3c2f 7370 616e 3e20 2020 2020 1097 \n+00028100: 2020 2020 203c 7370 616e 2063 6c61 7373 f\n+00028120: 6f72 3c2f 7370 616e 3e28 3c73 7061 6e20 or(int i\n+00028150: 3d31 3b20 6926 6c74 3b6f 6f63 6f6d 6d2e =1; i<oocomm.\n+00028160: 3c61 2063 6c61 7373 3d22 636f 6465 2068 communicator().size(); ++i)\n+000281d0: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    1098 \n+00028230: 2020 2020 2020 2020 206f 6666 7365 742b offset+\n+00028240: 3d31 3b3c 2f64 6976 3e0a 3c64 6976 2063 =1;
    .
    1099 \n+000282a0: 2020 2020 2020 2020 2020 3c73 7061 6e20 int l\n+000282d0: 7072 6576 203d 2076 7478 6469 7374 5b69 prev = vtxdist[i\n+000282e0: 5d2d 7674 7864 6973 745b 692d 315d 3b3c ]-vtxdist[i-1];<\n+000282f0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00028340: 3130 303c 2f73 7061 6e3e 2020 2020 2020 100 \n+00028350: 2020 2020 2020 3c73 7061 6e20 636c 6173 \n+00028370: 696e 743c 2f73 7061 6e3e 206c 203d 2076 int l = v\n+00028380: 7478 6469 7374 5b69 2b31 5d2d 7674 7864 txdist[i+1]-vtxd\n+00028390: 6973 745b 695d 3b3c 2f64 6976 3e0a 3c64 ist[i];
    .\n+000283b0: 3c61 2069 643d 226c 3031 3130 3122 206e 1101 st\n+00028400: 6172 742b 3d6c 7072 6576 3b3c 2f64 6976 art+=lprev;.
    1102<\n+00028460: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00028470: 2020 6173 7365 7274 2828 7374 6172 742b assert((start+\n+00028480: 6c2b 6f66 6673 6574 292d 6778 6164 6a26 l+offset)-gxadj&\n+00028490: 6c74 3b3d 3c73 7061 6e20 636c 6173 733d lt;=static\n+000284b0: 5f63 6173 7426 6c74 3b3c 2f73 7061 6e3e _cast<\n+000284c0: 3c61 2063 6c61 7373 3d22 636f 6465 2068 \n+00028510: 4d65 7469 733a 3a69 6478 5f74 3c2f 613e Metis::idx_t\n+00028520: 3c73 7061 6e20 636c 6173 733d 226b 6579 >(gxadjlen));.
    110\n+000285a0: 333c 2f73 7061 6e3e 2020 2020 2020 2020 3 \n+000285b0: 2020 2020 696e 6372 656d 656e 7420 3d20 increment = \n+000285c0: 2a28 7374 6172 742d 3129 3b3c 2f64 6976 *(start-1);.
    1104<\n+00028620: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00028630: 2020 7374 643a 3a74 7261 6e73 666f 726d std::transform\n+00028640: 2873 7461 7274 2b6f 6666 7365 742c 2073 (start+offset, s\n+00028650: 7461 7274 2b6c 2b6f 6666 7365 742c 2073 tart+l+offset, s\n+00028660: 7461 7274 2c20 7374 643a 3a62 696e 6428 tart, std::bind(\n+00028670: 7374 643a 3a70 6c75 7326 6c74 3b4d 6574 std::plus<Met\n+00028680: 6973 3a3a 6964 785f 7426 6774 3b28 292c is::idx_t>(),\n+00028690: 2073 7464 3a3a 706c 6163 6568 6f6c 6465 std::placeholde\n+000286a0: 7273 3a3a 5f31 2c20 696e 6372 656d 656e rs::_1, incremen\n+000286b0: 7429 293b 3c2f 6469 763e 0a3c 6469 7620 t));
    .
    1105 \n+00028710: 2020 2020 2020 2020 207d 3c2f 6469 763e }
    \n+00028720: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00028750: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1106 D\n+00028780: 756e 653a 3a64 696e 666f 266c 743b 266c une::dinfo<&l\n+00028790: 743b 7374 643a 3a65 6e64 6c26 6c74 3b26 t;std::endl<&\n+000287a0: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+000287c0: 7175 6f74 3b73 6869 6674 6564 2078 6164 quot;shifted xad\n+000287d0: 6a3a 2671 756f 743b 3c2f 7370 616e 3e3b j:";\n+000287e0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00028830: 3131 3037 3c2f 7370 616e 3e20 2020 2020 1107 \n+00028840: 2020 2020 203c 6120 636c 6173 733d 2263 print_carr\n+000288a0: 6179 3c2f 613e 2844 756e 653a 3a64 696e ay(Dune::din\n+000288b0: 666f 2c20 6778 6164 6a2c 206e 6f56 6572 fo, gxadj, noVer\n+000288c0: 7469 6365 732b 3129 3b3c 2f64 6976 3e0a tices+1);
    .\n+000288d0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00028900: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1108 Du\n+00028930: 6e65 3a3a 6469 6e66 6f26 6c74 3b26 6c74 ne::dinfo<<\n+00028940: 3b73 7464 3a3a 656e 646c 266c 743b 266c ;std::endl<&l\n+00028950: 743b 3c73 7061 6e20 636c 6173 733d 2273 t;&q\n+00028970: 756f 743b 2067 6164 6a6e 6379 3a20 2671 uot; gadjncy: &q\n+00028980: 756f 743b 3c2f 7370 616e 3e3b 3c2f 6469 uot;;.
    1109\n+000289e0: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+000289f0: 203c 6120 636c 6173 733d 2263 6f64 6520 print_carray(Dune::dinfo, \n+00028a60: 6761 646a 6e63 792c 2067 6e6f 6564 6765 gadjncy, gnoedge\n+00028a70: 7329 3b3c 2f64 6976 3e0a 3c64 6976 2063 s);
    .
    1110#ifdef \n+00028af0: 5553 455f 5745 4947 4854 533c 2f73 7061 USE_WEIGHTS
    .
    1111 \n+00028b60: 2020 2020 2020 2044 756e 653a 3a64 696e Dune::din\n+00028b70: 666f 266c 743b 266c 743b 7374 643a 3a65 fo<<std::e\n+00028b80: 6e64 6c26 6c74 3b26 6c74 3b3c 7370 616e ndl<<" gv\n+00028bb0: 7767 743a 2026 7175 6f74 3b3c 2f73 7061 wgt: ";
    .
    1112 \n+00028c20: 2020 2020 2020 2020 3c61 2063 6c61 7373 print_c\n+00028c80: 6172 7261 793c 2f61 3e28 4475 6e65 3a3a array(Dune::\n+00028c90: 6469 6e66 6f2c 2067 7677 6774 2c20 6e6f dinfo, gvwgt, no\n+00028ca0: 5665 7274 6963 6573 293b 3c2f 6469 763e Vertices);
    \n+00028cb0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00028ce0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1113 D\n+00028d10: 756e 653a 3a64 696e 666f 266c 743b 266c une::dinfo<&l\n+00028d20: 743b 7374 643a 3a65 6e64 6c26 6c74 3b26 t;std::endl<&\n+00028d30: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+00028d50: 7175 6f74 3b61 646a 7767 743a 2026 7175 quot;adjwgt: &qu\n+00028d60: 6f74 3b3c 2f73 7061 6e3e 3b3c 2f64 6976 ot;;.
    1114<\n+00028dc0: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00028dd0: 3c61 2063 6c61 7373 3d22 636f 6465 2068 print_carray(Dune::dinfo, g\n+00028e40: 6164 6a77 6774 2c20 676e 6f65 6467 6573 adjwgt, gnoedges\n+00028e50: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    1115 \n+00028eb0: 2020 2020 2020 2044 756e 653a 3a64 696e Dune::din\n+00028ec0: 666f 266c 743b 266c 743b 7374 643a 3a65 fo<<std::e\n+00028ed0: 6e64 6c3b 3c2f 6469 763e 0a3c 6469 7620 ndl;
    .
    1116<\n+00028f30: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n+00028f40: 726f 6365 7373 6f72 223e 2365 6e64 6966 rocessor\">#endif\n+00028f50: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00028f70: 3c61 2069 643d 226c 3031 3131 3722 206e 1117 // everything \n+00028fe0: 7368 6f75 6c64 2062 6520 6669 6e65 206e should be fine n\n+00028ff0: 6f77 2121 213c 2f73 7061 6e3e 3c2f 6469 ow!!!.
    1118\n+00029050: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+00029060: 203c 7370 616e 2063 6c61 7373 3d22 6b65 if(verbose &am\n+00029090: 703b 2661 6d70 3b20 6f6f 636f 6d6d 2e3c p;& oocomm.<\n+000290a0: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+000290b0: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n+000290c0: 2261 3031 3938 342e 6874 6d6c 2361 6164 \"a01984.html#aad\n+000290d0: 3033 6530 3438 3135 3232 6138 3262 6330 03e0481522a82bc0\n+000290e0: 6232 3132 6361 6431 6462 3736 6638 223e b212cad1db76f8\">\n+000290f0: 636f 6d6d 756e 6963 6174 6f72 3c2f 613e communicator\n+00029100: 2829 2e72 616e 6b28 293d 3d30 293c 2f64 ().rank()==0).
    111\n+00029160: 393c 2f73 7061 6e3e 2020 2020 2020 2020 9 \n+00029170: 2020 2020 7374 643a 3a63 6f75 7426 6c74 std::cout<\n+00029180: 3b26 6c74 3b3c 7370 616e 2063 6c61 7373 ;<"Postproce\n+000291b0: 7369 6e67 2067 6c6f 6261 6c20 6772 6170 sing global grap\n+000291c0: 6820 6461 7461 2074 6f6f 6b20 2671 756f h data took &quo\n+000291d0: 743b 3c2f 7370 616e 3e26 6c74 3b26 6c74 t;<<\n+000291e0: 3b74 696d 6531 2e65 6c61 7073 6564 2829 ;time1.elapsed()\n+000291f0: 266c 743b 266c 743b 7374 643a 3a65 6e64 <<std::end\n+00029200: 6c3b 3c2f 6469 763e 0a3c 6469 7620 636c l;
    .
    1120 \n+00029260: 2020 2020 2020 2074 696d 6531 2e72 6573 time1.res\n+00029270: 6574 2829 3b3c 2f64 6976 3e0a 3c64 6976 et();
    .<\n+000292b0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000292c0: 6e6f 223e 2031 3132 313c 2f73 7061 6e3e no\"> 1121
    \n+000292d0: 3c73 7061 6e20 636c 6173 733d 2270 7265 #ifnd\n+000292f0: 6566 204e 4445 4255 473c 2f73 7061 6e3e ef NDEBUG\n+00029300: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00029350: 3131 3232 3c2f 7370 616e 3e20 2020 2020 1122 \n+00029360: 2020 2020 2061 7373 6572 7428 3c61 2063 assert(isV\n+000293c0: 616c 6964 4772 6170 683c 2f61 3e28 6e6f alidGraph(no\n+000293d0: 5665 7274 6963 6573 2c20 6e6f 5665 7274 Vertices, noVert\n+000293e0: 6963 6573 2c20 676e 6f65 6467 6573 2c3c ices, gnoedges,<\n+000293f0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00029440: 3132 333c 2f73 7061 6e3e 2020 2020 2020 123 \n+00029450: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00029460: 2020 2020 2020 2020 6778 6164 6a2c 2067 gxadj, g\n+00029470: 6164 6a6e 6379 2c20 3c73 7061 6e20 636c adjncy, tr\n+00029490: 7565 3c2f 7370 616e 3e29 293b 3c2f 6469 ue));.
    1124\n+000294f0: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 #endif<\n+00029520: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00029570: 3132 353c 2f73 7061 6e3e 203c 2f64 6976 125 .
    1126<\n+000295d0: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+000295e0: 3c73 7061 6e20 636c 6173 733d 226b 6579 if(verbose &\n+00029610: 3b26 616d 703b 206f 6f63 6f6d 6d2e 3c61 ;& oocomm.c\n+00029670: 6f6d 6d75 6e69 6361 746f 723c 2f61 3e28 ommunicator(\n+00029680: 292e 7261 6e6b 2829 3d3d 3029 3c2f 6469 ).rank()==0).
    1127\n+000296e0: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+000296f0: 2020 2073 7464 3a3a 636f 7574 266c 743b std::cout<\n+00029700: 266c 743b 3c73 7061 6e20 636c 6173 733d <\n+00029720: 2671 756f 743b 4372 6561 7469 6e67 2067 "Creating g\n+00029730: 7261 6820 6f6e 6520 3120 7072 6f63 6573 rah one 1 proces\n+00029740: 7320 746f 6f6b 2026 7175 6f74 3b3c 2f73 s took "<<time\n+00029760: 2e65 6c61 7073 6564 2829 266c 743b 266c .elapsed()<&l\n+00029770: 743b 7374 643a 3a65 6e64 6c3b 3c2f 6469 t;std::endl;.
    1128\n+000297d0: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+000297e0: 2074 696d 652e 7265 7365 7428 293b 3c2f time.reset();.
    11\n+00029840: 3239 3c2f 7370 616e 3e3c 7370 616e 2063 29#if METIS_VE\n+00029870: 525f 4d41 4a4f 5220 2667 743b 3d20 353c R_MAJOR >= 5<\n+00029880: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+000298a0: 6120 6964 3d22 6c30 3131 3330 2220 6e61 a id=\"l01130\" na\n+000298b0: 6d65 3d22 6c30 3131 3330 223e 3c2f 613e me=\"l01130\">\n+000298c0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1130 Metis\n+00029940: 3a3a 6964 785f 743c 2f61 3e20 6e63 6f6e ::idx_t ncon\n+00029950: 203d 2031 3b3c 2f64 6976 3e0a 3c64 6976 = 1;
    .<\n+00029990: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000299a0: 6e6f 223e 2031 3133 313c 2f73 7061 6e3e no\"> 1131
    \n+000299b0: 2020 2020 2020 2020 2020 3c61 2063 6c61 Metis:\n+00029a10: 3a69 6478 5f74 3c2f 613e 206d 6f70 7469 :idx_t mopti\n+00029a20: 6f6e 735b 4d45 5449 535f 4e4f 5054 494f ons[METIS_NOPTIO\n+00029a30: 4e53 5d3b 3c2f 6469 763e 0a3c 6469 7620 NS];
    .
    1132 \n+00029a90: 2020 2020 2020 2020 204d 4554 4953 5f53 METIS_S\n+00029aa0: 6574 4465 6661 756c 744f 7074 696f 6e73 etDefaultOptions\n+00029ab0: 286d 6f70 7469 6f6e 7329 3b3c 2f64 6976 (moptions);.
    1133<\n+00029b10: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00029b20: 6d6f 7074 696f 6e73 5b4d 4554 4953 5f4f moptions[METIS_O\n+00029b30: 5054 494f 4e5f 4e55 4d42 4552 494e 475d PTION_NUMBERING]\n+00029b40: 203d 206e 756d 666c 6167 3b3c 2f64 6976 = numflag;.
    1134<\n+00029ba0: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00029bb0: 4d45 5449 535f 5061 7274 4772 6170 6852 METIS_PartGraphR\n+00029bc0: 6563 7572 7369 7665 2826 616d 703b 6e6f ecursive(&no\n+00029bd0: 5665 7274 6963 6573 2c20 2661 6d70 3b6e Vertices, &n\n+00029be0: 636f 6e2c 2067 7861 646a 2c20 6761 646a con, gxadj, gadj\n+00029bf0: 6e63 792c 2067 7677 6774 2c20 4e55 4c4c ncy, gvwgt, NULL\n+00029c00: 2c20 6761 646a 7767 742c 3c2f 6469 763e , gadjwgt,
    \n+00029c10: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00029c40: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1135 \n+00029c70: 2020 2020 2020 2020 2020 2020 2020 2661 &a\n+00029c80: 6d70 3b6e 7061 7274 732c 204e 554c 4c2c mp;nparts, NULL,\n+00029c90: 204e 554c 4c2c 206d 6f70 7469 6f6e 732c NULL, moptions,\n+00029ca0: 2026 616d 703b 6564 6765 6375 742c 2067 &edgecut, g\n+00029cb0: 7061 7274 293b 3c2f 6469 763e 0a3c 6469 part);
    .<\n+00029cd0: 6120 6964 3d22 6c30 3131 3336 2220 6e61 a id=\"l01136\" na\n+00029ce0: 6d65 3d22 6c30 3131 3336 223e 3c2f 613e me=\"l01136\">\n+00029cf0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1136#els\n+00029d30: 653c 2f73 7061 6e3e 3c2f 6469 763e 0a3c e
    .<\n+00029d40: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00029d50: 3e3c 6120 6964 3d22 6c30 3131 3337 2220 > 1137 int options[5] = {\n+00029dd0: 302c 2031 2c20 312c 2033 2c20 337d 3b3c 0, 1, 1, 3, 3};<\n+00029de0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00029e30: 3133 383c 2f73 7061 6e3e 2020 2020 2020 138 \n+00029e40: 2020 2020 3c73 7061 6e20 636c 6173 733d // Cal\n+00029e60: 6c20 6d65 7469 733c 2f73 7061 6e3e 3c2f l metis.
    11\n+00029ec0: 3339 3c2f 7370 616e 3e20 2020 2020 2020 39 \n+00029ed0: 2020 204d 4554 4953 5f50 6172 7447 7261 METIS_PartGra\n+00029ee0: 7068 5265 6375 7273 6976 6528 2661 6d70 phRecursive(&\n+00029ef0: 3b6e 6f56 6572 7469 6365 732c 2067 7861 ;noVertices, gxa\n+00029f00: 646a 2c20 6761 646a 6e63 792c 2067 7677 dj, gadjncy, gvw\n+00029f10: 6774 2c20 6761 646a 7767 742c 2026 616d gt, gadjwgt, &am\n+00029f20: 703b 7767 7466 6c61 672c 3c2f 6469 763e p;wgtflag,
    \n+00029f30: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00029f60: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1140 \n+00029f90: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00029fa0: 2020 2020 2020 2020 2661 6d70 3b6e 756d &num\n+00029fb0: 666c 6167 2c20 2661 6d70 3b6e 7061 7274 flag, &npart\n+00029fc0: 732c 206f 7074 696f 6e73 2c20 2661 6d70 s, options, &\n+00029fd0: 3b65 6467 6563 7574 2c20 6770 6172 7429 ;edgecut, gpart)\n+00029fe0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0002a030: 2031 3134 313c 2f73 7061 6e3e 3c73 7061 1141#endif
    .
    1142 \n+0002a0c0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0002a110: 3131 3433 3c2f 7370 616e 3e20 2020 2020 1143 \n+0002a120: 2020 2020 203c 7370 616e 2063 6c61 7373 i\n+0002a140: 663c 2f73 7061 6e3e 2876 6572 626f 7365 f(verbose\n+0002a150: 2026 616d 703b 2661 6d70 3b20 6f6f 636f && ooco\n+0002a160: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+0002a1c0: 3c2f 613e 2829 2e72 616e 6b28 293d 3d30 ().rank()==0\n+0002a1d0: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n+0002a220: 2031 3134 343c 2f73 7061 6e3e 2020 2020 1144 \n+0002a230: 2020 2020 2020 2020 7374 643a 3a63 6f75 std::cou\n+0002a240: 7426 6c74 3b26 6c74 3b3c 7370 616e 2063 t<<"METIS\n+0002a270: 2074 6f6f 6b20 2671 756f 743b 3c2f 7370 took "<<time.\n+0002a290: 656c 6170 7365 6428 2926 6c74 3b26 6c74 elapsed()<<\n+0002a2a0: 3b73 7464 3a3a 656e 646c 3b3c 2f64 6976 ;std::endl;.
    1145<\n+0002a300: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+0002a310: 7469 6d65 2e72 6573 6574 2829 3b3c 2f64 time.reset();.
    114\n+0002a370: 363c 2f73 7061 6e3e 203c 2f64 6976 3e0a 6
    .\n+0002a380: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+0002a450: 3c61 2069 643d 226c 3031 3134 3822 206e 1148 pri\n+0002a4f0: 6e74 5f63 6172 7261 793c 2f61 3e28 4475 nt_carray(Du\n+0002a500: 6e65 3a3a 6469 6e66 6f2c 2067 7061 7274 ne::dinfo, gpart\n+0002a510: 2c20 6e6f 5665 7274 6963 6573 293b 3c2f , noVertices);.
    11\n+0002a570: 3439 3c2f 7370 616e 3e20 3c2f 6469 763e 49
    \n+0002a580: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0002a5b0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1150 <\n+0002a5e0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0002a5f0: 6f72 6422 3e64 656c 6574 653c 2f73 7061 ord\">delete[] gxadj;.
    1151<\n+0002a660: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+0002a670: 3c73 7061 6e20 636c 6173 733d 226b 6579 delete[] gadjncy;.
    11\n+0002a6f0: 3532 3c2f 7370 616e 3e3c 7370 616e 2063 52#ifdef USE_W\n+0002a720: 4549 4748 5453 3c2f 7370 616e 3e3c 2f64 EIGHTS.
    115\n+0002a780: 333c 2f73 7061 6e3e 2020 2020 2020 2020 3 \n+0002a790: 2020 3c73 7061 6e20 636c 6173 733d 226b delete[] gvwgt;.
    11\n+0002a810: 3534 3c2f 7370 616e 3e20 2020 2020 2020 54 \n+0002a820: 2020 203c 7370 616e 2063 6c61 7373 3d22 delete<\n+0002a840: 2f73 7061 6e3e 5b5d 2067 6164 6a77 6774 /span>[] gadjwgt\n+0002a850: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0002a8a0: 2031 3135 353c 2f73 7061 6e3e 3c73 7061 1155#endif
    .
    1156 \n+0002a930: 2020 2020 2020 207d 3c2f 6469 763e 0a3c }
    .<\n+0002a940: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002a950: 3e3c 6120 6964 3d22 6c30 3131 3537 2220 > 1157 // Scatter resu\n+0002a9c0: 6c74 3c2f 7370 616e 3e3c 2f64 6976 3e0a lt
    .\n+0002a9d0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    1159 \n+0002aad0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0002aae0: 2020 204d 5049 5472 6169 7473 266c 743b MPITraits<\n+0002aaf0: 4d65 7469 733a 3a69 6478 5f74 2667 743b Metis::idx_t>\n+0002ab00: 3a3a 6765 7454 7970 6528 292c 2030 2c20 ::getType(), 0, \n+0002ab10: 636f 6d6d 293b 3c2f 6469 763e 0a3c 6469 comm);
    .<\n+0002ab30: 6120 6964 3d22 6c30 3131 3630 2220 6e61 a id=\"l01160\" na\n+0002ab40: 6d65 3d22 6c30 3131 3630 223e 3c2f 613e me=\"l01160\">\n+0002ab50: 3c73 7061 6e20 636c 6173 733d 226c 696e 1160
    .
    1161 \n+0002abd0: 2020 2020 207b 3c2f 6469 763e 0a3c 6469 {
    .<\n+0002abf0: 6120 6964 3d22 6c30 3131 3632 2220 6e61 a id=\"l01162\" na\n+0002ac00: 6d65 3d22 6c30 3131 3632 223e 3c2f 613e me=\"l01162\">\n+0002ac10: 3c73 7061 6e20 636c 6173 733d 226c 696e 1162 // release rema\n+0002ac60: 696e 696e 6720 6d65 6d6f 7279 3c2f 7370 ining memory
    .
    1163 \n+0002acd0: 2020 2020 2020 2020 3c73 7061 6e20 636c de\n+0002acf0: 6c65 7465 3c2f 7370 616e 3e5b 5d20 6770 lete[] gp\n+0002ad00: 6172 743b 3c2f 6469 763e 0a3c 6469 7620 art;
    .
    1164 \n+0002ad60: 2020 2020 2020 2020 203c 7370 616e 2063 d\n+0002ad80: 656c 6574 653c 2f73 7061 6e3e 5b5d 206e elete[] n\n+0002ad90: 6f65 6467 6573 3b3c 2f64 6976 3e0a 3c64 oedges;
    .\n+0002adb0: 3c61 2069 643d 226c 3031 3136 3522 206e 1165 delete[\n+0002ae20: 5d20 6469 7370 6c3b 3c2f 6469 763e 0a3c ] displ;
    .<\n+0002ae30: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002ae40: 3e3c 6120 6964 3d22 6c30 3131 3636 2220 > 1166 }.
    1167\n+0002aee0: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+0002aef0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002af00: 3e3c 6120 6964 3d22 6c30 3131 3638 2220 > 1168
    .
    1169<\n+0002afa0: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n+0002afb0: 726f 6365 7373 6f72 223e 2365 6e64 6966 rocessor\">#endif\n+0002afc0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+0002afe0: 3c61 2069 643d 226c 3031 3137 3022 206e 1170 \n+0002b040: 6465 6c65 7465 3c2f 7370 616e 3e5b 5d20 delete[] \n+0002b050: 7861 646a 3b3c 2f64 6976 3e0a 3c64 6976 xadj;
    .<\n+0002b090: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0002b0a0: 6e6f 223e 2031 3137 313c 2f73 7061 6e3e no\"> 1171\n+0002b0b0: 2020 2020 2020 2020 3c73 7061 6e20 636c de\n+0002b0d0: 6c65 7465 3c2f 7370 616e 3e5b 5d20 7674 lete[] vt\n+0002b0e0: 7864 6973 743b 3c2f 6469 763e 0a3c 6469 xdist;
    .<\n+0002b100: 6120 6964 3d22 6c30 3131 3732 2220 6e61 a id=\"l01172\" na\n+0002b110: 6d65 3d22 6c30 3131 3732 223e 3c2f 613e me=\"l01172\">\n+0002b120: 3c73 7061 6e20 636c 6173 733d 226c 696e 1172 d\n+0002b160: 656c 6574 653c 2f73 7061 6e3e 5b5d 2061 elete[] a\n+0002b170: 646a 6e63 793b 3c2f 6469 763e 0a3c 6469 djncy;
    .<\n+0002b190: 6120 6964 3d22 6c30 3131 3733 2220 6e61 a id=\"l01173\" na\n+0002b1a0: 6d65 3d22 6c30 3131 3733 223e 3c2f 613e me=\"l01173\">\n+0002b1b0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1173#ifd\n+0002b1f0: 6566 2055 5345 5f57 4549 4748 5453 3c2f ef USE_WEIGHTS
    .<\n+0002b240: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0002b250: 6e6f 223e 2031 3137 343c 2f73 7061 6e3e no\"> 1174\n+0002b260: 2020 2020 2020 2020 3c73 7061 6e20 636c de\n+0002b280: 6c65 7465 3c2f 7370 616e 3e5b 5d20 7677 lete[] vw\n+0002b290: 6774 3b3c 2f64 6976 3e0a 3c64 6976 2063 gt;
    .
    1175 \n+0002b2f0: 2020 2020 2020 3c73 7061 6e20 636c 6173 dele\n+0002b310: 7465 3c2f 7370 616e 3e5b 5d20 6164 6a77 te[] adjw\n+0002b320: 6774 3b3c 2f64 6976 3e0a 3c64 6976 2063 gt;
    .
    1176#endif<\n+0002b3a0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+0002b3c0: 6120 6964 3d22 6c30 3131 3737 2220 6e61 a id=\"l01177\" na\n+0002b3d0: 6d65 3d22 6c30 3131 3737 223e 3c2f 613e me=\"l01177\">\n+0002b3e0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1177 d\n+0002b420: 656c 6574 653c 2f73 7061 6e3e 5b5d 2074 elete[] t\n+0002b430: 7077 6774 733b 3c2f 6469 763e 0a3c 6469 pwgts;
    .<\n+0002b450: 6120 6964 3d22 6c30 3131 3738 2220 6e61 a id=\"l01178\" na\n+0002b460: 6d65 3d22 6c30 3131 3738 223e 3c2f 613e me=\"l01178\">\n+0002b470: 3c73 7061 6e20 636c 6173 733d 226c 696e 1178 }
    .<\n+0002b4a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002b4b0: 3e3c 6120 6964 3d22 6c30 3131 3739 2220 > 1179 }else{.
    11\n+0002b570: 3830 3c2f 7370 616e 3e20 2020 2020 2070 80 p\n+0002b580: 6172 745b 305d 3d30 3b3c 2f64 6976 3e0a art[0]=0;
    .\n+0002b590: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+0002b5f0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0002b620: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1182#\n+0002b660: 656e 6469 663c 2f73 7061 6e3e 3c2f 6469 endif.
    1183\n+0002b6c0: 3c2f 7370 616e 3e20 2020 2044 756e 653a Dune:\n+0002b6d0: 3a64 696e 666f 266c 743b 266c 743b 3c73 :dinfo<<"\n+0002b700: 2072 6570 6172 7420 2671 756f 743b 3c2f repart "<<ran\n+0002b720: 6b20 266c 743b 266c 743b 3c73 7061 6e20 k <<" -&g\n+0002b750: 743b 2026 7175 6f74 3b3c 2f73 7061 6e3e t; "\n+0002b760: 266c 743b 266c 743b 2070 6172 745b 305d << part[0]\n+0002b770: 266c 743b 266c 743b 7374 643a 3a65 6e64 <<std::end\n+0002b780: 6c3b 3c2f 6469 763e 0a3c 6469 7620 636c l;
    .
    1184 .
    11\n+0002b830: 3835 3c2f 7370 616e 3e20 2020 2073 7464 85 std\n+0002b840: 3a3a 7665 6374 6f72 266c 743b 696e 7426 ::vector<int&\n+0002b850: 6774 3b20 7265 616c 7061 7274 283c 6120 gt; realpart(m\n+0002b8b0: 6174 3c2f 613e 2e4e 2829 2c20 7061 7274 at.N(), part\n+0002b8c0: 5b30 5d29 3b3c 2f64 6976 3e0a 3c64 6976 [0]);
    .<\n+0002b900: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0002b910: 6e6f 223e 2031 3138 363c 2f73 7061 6e3e no\"> 1186\n+0002b920: 2020 2020 3c73 7061 6e20 636c 6173 733d delete\n+0002b940: 3c2f 7370 616e 3e5b 5d20 7061 7274 3b3c [] part;<\n+0002b950: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0002b9a0: 3138 373c 2f73 7061 6e3e 203c 2f64 6976 187 .
    1188<\n+0002ba00: 2f73 7061 6e3e 2020 2020 6f6f 636f 6d6d /span> oocomm\n+0002ba10: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .copyOwnerToAll\n+0002ba70: 3c2f 613e 2872 6561 6c70 6172 742c 2072 (realpart, r\n+0002ba80: 6561 6c70 6172 7429 3b3c 2f64 6976 3e0a ealpart);
    .\n+0002ba90: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0002bb20: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0002bb30: 6e6f 223e 2031 3139 303c 2f73 7061 6e3e no\"> 1190\n+0002bb40: 2020 2020 3c73 7061 6e20 636c 6173 733d if\n+0002bb60: 3c2f 7370 616e 3e28 7665 7262 6f73 6520 (verbose \n+0002bb70: 2661 6d70 3b26 616d 703b 206f 6f63 6f6d && oocom\n+0002bb80: 6d2e 3c61 2063 6c61 7373 3d22 636f 6465 m.communicator<\n+0002bbe0: 2f61 3e28 292e 7261 6e6b 2829 3d3d 3029 /a>().rank()==0)\n+0002bbf0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0002bc40: 3131 3931 3c2f 7370 616e 3e20 2020 2020 1191 \n+0002bc50: 2073 7464 3a3a 636f 7574 266c 743b 266c std::cout<&l\n+0002bc60: 743b 3c73 7061 6e20 636c 6173 733d 2273 t;&q\n+0002bc80: 756f 743b 5363 6174 7465 7269 6e67 2072 uot;Scattering r\n+0002bc90: 6570 6172 7469 7469 6f6e 696e 6720 746f epartitioning to\n+0002bca0: 6f6b 2026 7175 6f74 3b3c 2f73 7061 6e3e ok "\n+0002bcb0: 266c 743b 266c 743b 7469 6d65 2e65 6c61 <<time.ela\n+0002bcc0: 7073 6564 2829 266c 743b 266c 743b 7374 psed()<<st\n+0002bcd0: 643a 3a65 6e64 6c3b 3c2f 6469 763e 0a3c d::endl;
    .<\n+0002bce0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002bcf0: 3e3c 6120 6964 3d22 6c30 3131 3932 2220 > 1192 time.rese\n+0002bd40: 7428 293b 3c2f 6469 763e 0a3c 6469 7620 t();
    .
    1193 \n+0002bda0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0002bdf0: 3131 3934 3c2f 7370 616e 3e20 3c2f 6469 1194 .
    1195\n+0002be50: 3c2f 7370 616e 3e20 2020 206f 6f63 6f6d oocom\n+0002be60: 6d2e 3c61 2063 6c61 7373 3d22 636f 6465 m.buildGlobalLo\n+0002bec0: 6f6b 7570 3c2f 613e 283c 6120 636c 6173 okup(mat.N());
    .<\n+0002bf30: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002bf40: 3e3c 6120 6964 3d22 6c30 3131 3936 2220 > 1196 Dune::Amg::Ma\n+0002bfc0: 7472 6978 4772 6170 6826 6c74 3b4d 2667 trixGraph<M&g\n+0002bfd0: 743b 3c2f 613e 2067 7261 7068 283c 7370 t; graph(const_cast<\n+0002c000: 3b3c 2f73 7061 6e3e 4d26 616d 703b 3c73 ;M&>(\n+0002c030: 3c61 2063 6c61 7373 3d22 636f 6465 2068 mat));..
    \n+0002c1b0: 2031 3139 383c 2f73 7061 6e3e 2020 2020 1198 \n+0002c1c0: 3c73 7061 6e20 636c 6173 733d 226b 6579 if(verbose &\n+0002c1f0: 3b26 616d 703b 206f 6f63 6f6d 6d2e 3c61 ;& oocomm.c\n+0002c250: 6f6d 6d75 6e69 6361 746f 723c 2f61 3e28 ommunicator(\n+0002c260: 292e 7261 6e6b 2829 3d3d 3029 3c2f 6469 ).rank()==0).
    1199\n+0002c2c0: 3c2f 7370 616e 3e20 2020 2020 2073 7464 std\n+0002c2d0: 3a3a 636f 7574 266c 743b 266c 743b 3c73 ::cout<<"\n+0002c300: 4669 6c6c 696e 6720 696e 6465 7820 7365 Filling index se\n+0002c310: 7420 746f 6f6b 2026 7175 6f74 3b3c 2f73 t took "<<time\n+0002c330: 2e65 6c61 7073 6564 2829 266c 743b 266c .elapsed()<&l\n+0002c340: 743b 7374 643a 3a65 6e64 6c3b 3c2f 6469 t;std::endl;.
    1200\n+0002c3a0: 3c2f 7370 616e 3e20 2020 2074 696d 652e time.\n+0002c3b0: 7265 7365 7428 293b 3c2f 6469 763e 0a3c reset();
    .<\n+0002c3c0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002c3d0: 3e3c 6120 6964 3d22 6c30 3132 3031 2220 > 1201
    .
    1202 \n+0002c470: 2020 203c 7370 616e 2063 6c61 7373 3d22 if<\n+0002c490: 2f73 7061 6e3e 2876 6572 626f 7365 2920 /span>(verbose) \n+0002c4a0: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n+0002c4f0: 2031 3230 333c 2f73 7061 6e3e 2020 2020 1203 \n+0002c500: 2020 3c73 7061 6e20 636c 6173 733d 226b int<\n+0002c520: 2f73 7061 6e3e 206e 6f4e 6569 6768 626f /span> noNeighbo\n+0002c530: 7572 733d 6f6f 636f 6d6d 2e3c 6120 636c urs=oocomm.remo\n+0002c590: 7465 496e 6469 6365 733c 2f61 3e28 292e teIndices().\n+0002c5a0: 6e65 6967 6862 6f75 7273 2829 3b3c 2f64 neighbours();.
    120\n+0002c600: 343c 2f73 7061 6e3e 2020 2020 2020 6e6f 4 no\n+0002c610: 4e65 6967 6862 6f75 7273 203d 206f 6f63 Neighbours = ooc\n+0002c620: 6f6d 6d2e 3c61 2063 6c61 7373 3d22 636f omm.communicato\n+0002c680: 723c 2f61 3e28 292e 7375 6d28 6e6f 4e65 r().sum(noNe\n+0002c690: 6967 6862 6f75 7273 293c 2f64 6976 3e0a ighbours)
    .\n+0002c6a0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n+0002c960: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n+0002c9c0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0002c9f0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1209 bool r\n+0002ca40: 6574 203d 203c 6120 636c 6173 733d 2263 et = buildCommu\n+0002caa0: 6e69 6361 7469 6f6e 3c2f 613e 2867 7261 nication(gra\n+0002cab0: 7068 2c20 7265 616c 7061 7274 2c20 6f6f ph, realpart, oo\n+0002cac0: 636f 6d6d 2c20 6f75 7463 6f6d 6d2c 2072 comm, outcomm, r\n+0002cad0: 6564 6973 7449 6e66 2c3c 2f64 6976 3e0a edistInf,
    .\n+0002cae0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0002cb10: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1210 \n+0002cb40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0002cb50: 2020 2020 2020 7665 7262 6f73 6529 3b3c verbose);<\n+0002cb60: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0002cbb0: 3231 313c 2f73 7061 6e3e 2020 2020 3c73 211 if(verbose &&\n+0002cbf0: 616d 703b 206f 6f63 6f6d 6d2e 3c61 2063 amp; oocomm.com\n+0002cc50: 6d75 6e69 6361 746f 723c 2f61 3e28 292e municator().\n+0002cc60: 7261 6e6b 2829 3d3d 3029 3c2f 6469 763e rank()==0)
    \n+0002cc70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0002cca0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1212 std::\n+0002ccd0: 636f 7574 266c 743b 266c 743b 3c73 7061 cout<<"Bu\n+0002cd00: 696c 6469 6e67 2069 6e64 6578 2073 6574 ilding index set\n+0002cd10: 7320 746f 6f6b 2026 7175 6f74 3b3c 2f73 s took "<<time\n+0002cd30: 2e65 6c61 7073 6564 2829 266c 743b 266c .elapsed()<&l\n+0002cd40: 743b 7374 643a 3a65 6e64 6c3b 3c2f 6469 t;std::endl;.
    1213\n+0002cda0: 3c2f 7370 616e 3e20 2020 2074 696d 652e time.\n+0002cdb0: 7265 7365 7428 293b 3c2f 6469 763e 0a3c reset();
    .<\n+0002cdc0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002cdd0: 3e3c 6120 6964 3d22 6c30 3132 3134 2220 > 1214
    .
    1215 \n+0002ce70: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0002cec0: 3132 3136 3c2f 7370 616e 3e20 2020 203c 1216 <\n+0002ced0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0002cee0: 6f72 6466 6c6f 7722 3e72 6574 7572 6e3c ordflow\">return<\n+0002cef0: 2f73 7061 6e3e 2072 6574 3b3c 2f64 6976 /span> ret;.
    1217<\n+0002cf50: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+0002cf70: 3c61 2069 643d 226c 3031 3231 3822 206e 1218 }
    ..
    1219\n+0002d010: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+0002d020: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002d030: 3e3c 6120 6964 3d22 6c30 3132 3334 2220 > 1234 templ\n+0002d090: 6174 653c 2f73 7061 6e3e 266c 743b 3c73 ate<class\n+0002d0c0: 2047 2c20 3c73 7061 6e20 636c 6173 733d G, class<\n+0002d0e0: 2f73 7061 6e3e 2054 312c 203c 7370 616e /span> T1, class T2\n+0002d110: 2667 743b 3c2f 6469 763e 0a3c 6469 7620 >
    .
    \n+0002d160: 0a3c 6469 7620 636c 6173 733d 226c 696e ..
    1236 \n+0002d3f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0002d400: 2020 2020 2020 7374 643a 3a73 6861 7265 std::share\n+0002d410: 645f 7074 7226 6c74 3b3c 6120 636c 6173 d_ptr<Dune::Owner\n+0002d450: 4f76 6572 6c61 7043 6f70 7943 6f6d 6d75 OverlapCopyCommu\n+0002d460: 6e69 6361 7469 6f6e 266c 743b 5431 2c54 nication<T1,T\n+0002d470: 3226 6774 3b3c 2f61 3e26 6774 3b26 616d 2>>&am\n+0002d480: 703b 206f 7574 636f 6d6d 2c3c 2f64 6976 p; outcomm,.
    1237<\n+0002d4e0: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+0002d4f0: 2020 2020 2020 2020 2020 2020 2020 3c61 Redis\n+0002d530: 7472 6962 7574 6549 6e74 6572 6661 6365 tributeInterface\n+0002d540: 3c2f 613e 2661 6d70 3b20 7265 6469 7374 & redist\n+0002d550: 496e 662c 3c2f 6469 763e 0a3c 6469 7620 Inf,
    .
    1238 \n+0002d5b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0002d5c0: 2020 2020 2020 203c 7370 616e 2063 6c61 bool ver\n+0002d5f0: 626f 7365 3d3c 7370 616e 2063 6c61 7373 bose=false\n+0002d610: 3c2f 7370 616e 3e29 3c2f 6469 763e 0a3c )
    .<\n+0002d620: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002d630: 3e3c 6120 6964 3d22 6c30 3132 3339 2220 > 1239 {
    .<\n+0002d690: 6120 6964 3d22 6c30 3132 3430 2220 6e61 a id=\"l01240\" na\n+0002d6a0: 6d65 3d22 6c30 3132 3430 223e 3c2f 613e me=\"l01240\">\n+0002d6b0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1240 Timer time;\n+0002d6e0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0002d730: 3132 3431 3c2f 7370 616e 3e20 3c2f 6469 1241 .
    1242\n+0002d790: 3c2f 7370 616e 3e20 2020 204d 5049 5f43 MPI_C\n+0002d7a0: 6f6d 6d20 636f 6d6d 3d6f 6f63 6f6d 6d2e omm comm=oocomm.\n+0002d7b0: 3c61 2063 6c61 7373 3d22 636f 6465 2068 communicator();
    .
    1243 \n+0002d870: 2020 206f 6f63 6f6d 6d2e 3c61 2063 6c61 oocomm.build\n+0002d8d0: 476c 6f62 616c 4c6f 6f6b 7570 3c2f 613e GlobalLookup\n+0002d8e0: 2867 7261 7068 2e6e 6f56 6572 7469 6365 (graph.noVertice\n+0002d8f0: 7328 2929 3b3c 2f64 6976 3e0a 3c64 6976 s());
    .<\n+0002d930: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0002d940: 6e6f 223e 2031 3234 343c 2f73 7061 6e3e no\"> 1244\n+0002d950: 2020 2020 3c61 2063 6c61 7373 3d22 636f fillIndexSe\n+0002d9b0: 7448 6f6c 6573 3c2f 613e 2867 7261 7068 tHoles(graph\n+0002d9c0: 2c20 6f6f 636f 6d6d 293b 3c2f 6469 763e , oocomm);
    \n+0002d9d0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+0002da40: 6120 6964 3d22 6c30 3132 3436 2220 6e61 a id=\"l01246\" na\n+0002da50: 6d65 3d22 6c30 3132 3436 223e 3c2f 613e me=\"l01246\">\n+0002da60: 3c73 7061 6e20 636c 6173 733d 226c 696e 1246 i\n+0002daa0: 663c 2f73 7061 6e3e 2876 6572 626f 7365 f(verbose\n+0002dab0: 2026 616d 703b 2661 6d70 3b20 6f6f 636f && ooco\n+0002dac0: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+0002db20: 3c2f 613e 2829 2e72 616e 6b28 293d 3d30 ().rank()==0\n+0002db30: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n+0002db80: 2031 3234 373c 2f73 7061 6e3e 2020 2020 1247 \n+0002db90: 2020 7374 643a 3a63 6f75 7426 6c74 3b26 std::cout<&\n+0002dba0: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+0002dbc0: 7175 6f74 3b46 696c 6c69 6e67 2068 6f6c quot;Filling hol\n+0002dbd0: 6573 2074 6f6f 6b20 2671 756f 743b 3c2f es took "<<tim\n+0002dbf0: 652e 656c 6170 7365 6428 2926 6c74 3b26 e.elapsed()<&\n+0002dc00: 6c74 3b73 7464 3a3a 656e 646c 3b3c 2f64 lt;std::endl;.
    124\n+0002dc60: 383c 2f73 7061 6e3e 2020 2020 7469 6d65 8 time\n+0002dc70: 2e72 6573 6574 2829 3b3c 2f64 6976 3e0a .reset();
    .\n+0002dc80: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0002dd10: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0002dd20: 6e6f 223e 2031 3235 303c 2f73 7061 6e3e no\"> 1250
    \n+0002dd30: 2020 2020 3c73 7061 6e20 636c 6173 733d // sim\n+0002dd50: 706c 6520 7072 6563 6f6e 6469 7469 6f6e ple precondition\n+0002dd60: 2063 6865 636b 733c 2f73 7061 6e3e 3c2f checks.
    12\n+0002ddc0: 3531 3c2f 7370 616e 3e20 3c2f 6469 763e 51
    \n+0002ddd0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0002de00: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1252\n+0002de40: 2369 6664 6566 2050 4552 465f 5245 5041 #ifdef PERF_REPA\n+0002de50: 5254 3c2f 7370 616e 3e3c 2f64 6976 3e0a RT
    .\n+0002de60: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0002de90: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1253 //\n+0002ded0: 2050 726f 6669 6c69 6e67 2076 6172 6961 Profiling varia\n+0002dee0: 626c 6573 3c2f 7370 616e 3e3c 2f64 6976 bles.
    1254<\n+0002df40: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> double t1=0.0, t2=0.0\n+0002df80: 2c20 7433 3d30 2e30 2c20 7434 3d30 2e30 , t3=0.0, t4=0.0\n+0002df90: 2c20 7453 756d 3d30 2e30 3b3c 2f64 6976 , tSum=0.0;.
    1255<\n+0002dff0: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#endif.
    12\n+0002e070: 3536 3c2f 7370 616e 3e20 3c2f 6469 763e 56
    \n+0002e080: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+0002e0f0: 6120 6964 3d22 6c30 3132 3538 2220 6e61 a id=\"l01258\" na\n+0002e100: 6d65 3d22 6c30 3132 3538 223e 3c2f 613e me=\"l01258\">\n+0002e110: 3c73 7061 6e20 636c 6173 733d 226c 696e 1258 // MP\n+0002e150: 4920 7661 7269 6162 6c65 733c 2f73 7061 I variables
    .
    1259 \n+0002e1c0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 int mype = ooc\n+0002e1f0: 6f6d 6d2e 3c61 2063 6c61 7373 3d22 636f omm.communicato\n+0002e250: 723c 2f61 3e28 292e 7261 6e6b 2829 3b3c r().rank();<\n+0002e260: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0002e2b0: 3236 303c 2f73 7061 6e3e 203c 2f64 6976 260 .
    1261<\n+0002e310: 2f73 7061 6e3e 2020 2020 6173 7365 7274 /span> assert\n+0002e320: 286e 7061 7274 7326 6c74 3b3d 3c73 7061 (nparts<=static_cast<\n+0002e350: 3b3c 2f73 7061 6e3e 3c61 2063 6c61 7373 ;Metis::i\n+0002e3b0: 6478 5f74 3c2f 613e 3c73 7061 6e20 636c dx_t&g\n+0002e3d0: 743b 3c2f 7370 616e 3e28 6f6f 636f 6d6d t;(oocomm\n+0002e3e0: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .communicator().size()));.
    12\n+0002e4a0: 3632 3c2f 7370 616e 3e20 3c2f 6469 763e 62
    \n+0002e4b0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0002e4e0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1263 int my\n+0002e530: 446f 6d61 696e 203d 202d 313b 3c2f 6469 Domain = -1;.
    1264\n+0002e590: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+0002e5a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002e5b0: 3e3c 6120 6964 3d22 6c30 3132 3635 2220 > 1265 //<\n+0002e610: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+0002e630: 6120 6964 3d22 6c30 3132 3636 2220 6e61 a id=\"l01266\" na\n+0002e640: 6d65 3d22 6c30 3132 3636 223e 3c2f 613e me=\"l01266\">\n+0002e650: 3c73 7061 6e20 636c 6173 733d 226c 696e 1266 // 1)\n+0002e690: 2050 7265 7061 7265 2074 6865 2072 6571 Prepare the req\n+0002e6a0: 7569 7265 6420 7061 7261 6d65 7465 7273 uired parameters\n+0002e6b0: 2066 6f72 2075 7369 6e67 2050 6172 4d45 for using ParME\n+0002e6c0: 5449 533c 2f73 7061 6e3e 3c2f 6469 763e TIS
    \n+0002e6d0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0002e700: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1267 /\n+0002e740: 2f20 2020 2045 7370 6563 6961 6c6c 7920 / Especially \n+0002e750: 7468 6520 6172 7261 7973 2074 6861 7420 the arrays that \n+0002e760: 7265 7072 6573 656e 7420 7468 6520 6772 represent the gr\n+0002e770: 6170 6820 6d75 7374 2062 653c 2f73 7061 aph must be
    .
    1268 \n+0002e7e0: 203c 7370 616e 2063 6c61 7373 3d22 636f // gen\n+0002e800: 6572 6174 6564 2062 7920 7468 6520 4455 erated by the DU\n+0002e810: 4e45 2047 7261 7068 2061 6e64 2049 6e64 NE Graph and Ind\n+0002e820: 6578 5365 7420 696e 7075 7420 7661 7269 exSet input vari\n+0002e830: 6162 6c65 732e 3c2f 7370 616e 3e3c 2f64 ables..
    126\n+0002e890: 393c 2f73 7061 6e3e 2020 2020 3c73 7061 9 // These ar\n+0002e8c0: 6520 7468 6520 6172 7261 7973 3a3c 2f73 e the arrays:
    .
    1270 \n+0002e930: 2020 203c 7370 616e 2063 6c61 7373 3d22 // -\n+0002e950: 2076 7478 6469 7374 3c2f 7370 616e 3e3c vtxdist<\n+0002e960: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0002e9b0: 3237 313c 2f73 7061 6e3e 2020 2020 3c73 271 // - xadj\n+0002e9e0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+0002ea00: 3c61 2069 643d 226c 3031 3237 3222 206e 1272 // \n+0002ea60: 2020 2d20 6164 6a6e 6379 3c2f 7370 616e - adjncy
    .
    \n+0002eac0: 2031 3237 333c 2f73 7061 6e3e 2020 2020 1273 \n+0002ead0: 3c73 7061 6e20 636c 6173 733d 2263 6f6d //<\n+0002eaf0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0002eb40: 3237 343c 2f73 7061 6e3e 2020 2020 3c73 274 //.
    127\n+0002ebc0: 353c 2f73 7061 6e3e 3c73 7061 6e20 636c 5#ifdef PERF_R\n+0002ebf0: 4550 4152 543c 2f73 7061 6e3e 3c2f 6469 EPART.
    1276\n+0002ec50: 3c2f 7370 616e 3e20 2020 203c 7370 616e // reset timer \n+0002ec80: 666f 7220 7374 6570 2031 293c 2f73 7061 for step 1)
    .
    1277 \n+0002ecf0: 2074 313d 4d50 495f 5774 696d 6528 293b t1=MPI_Wtime();\n+0002ed00: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0002ed50: 3132 3738 3c2f 7370 616e 3e3c 7370 616e 1278#endif
    .
    1279 <\n+0002ede0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0002ee30: 3238 303c 2f73 7061 6e3e 203c 2f64 6976 280 .
    1281<\n+0002ee90: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n+0002eeb0: 7479 7065 6465 663c 2f73 7061 6e3e 203c typedef <\n+0002eec0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0002eed0: 6f72 6422 3e74 7970 656e 616d 653c 2f73 ord\">typename Dune::OwnerOve\n+0002ef20: 726c 6170 436f 7079 436f 6d6d 756e 6963 rlapCopyCommunic\n+0002ef30: 6174 696f 6e26 6c74 3b54 312c 5432 2667 ation<T1,T2&g\n+0002ef40: 743b 3c2f 613e 204f 4f43 6f6d 6d3b 3c2f t; OOComm;.
    12\n+0002efa0: 3832 3c2f 7370 616e 3e20 2020 203c 7370 82 typedef typename\n+0002eff0: 3c2f 7370 616e 3e20 204f 4f43 6f6d 6d3a OOComm:\n+0002f000: 3a4f 776e 6572 5365 7420 4f77 6e65 7253 :OwnerSet OwnerS\n+0002f010: 6574 3b3c 2f64 6976 3e0a 3c64 6976 2063 et;
    .
    1283 <\n+0002f070: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0002f0c0: 3238 343c 2f73 7061 6e3e 2020 2020 3c73 284 // Create th\n+0002f0f0: 6520 7674 7864 6973 7420 6172 7261 7920 e vtxdist array \n+0002f100: 616e 6420 7061 726d 6574 6973 5674 784d and parmetisVtxM\n+0002f110: 6170 7069 6e67 2e3c 2f73 7061 6e3e 3c2f apping..
    12\n+0002f170: 3835 3c2f 7370 616e 3e20 2020 203c 7370 85 // Global com\n+0002f1a0: 6d75 6e69 6361 7469 6f6e 7320 6172 6520 munications are \n+0002f1b0: 6e65 6365 7373 6172 793c 2f73 7061 6e3e necessary\n+0002f1c0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0002f210: 3132 3836 3c2f 7370 616e 3e20 2020 203c 1286 <\n+0002f220: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+0002f230: 656e 7422 3e2f 2f20 5468 6520 7061 726d ent\">// The parm\n+0002f240: 6574 6973 2067 6c6f 6261 6c20 6964 656e etis global iden\n+0002f250: 7469 6669 6572 7320 666f 7220 7468 6520 tifiers for the \n+0002f260: 6f77 6e65 7220 7665 7274 6963 6573 2e3c owner vertices.<\n+0002f270: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+0002f290: 6120 6964 3d22 6c30 3132 3837 2220 6e61 a id=\"l01287\" na\n+0002f2a0: 6d65 3d22 6c30 3132 3837 223e 3c2f 613e me=\"l01287\">\n+0002f2b0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1287 ParmetisDun\n+0002f2e0: 6549 6e64 6578 4d61 7020 696e 6465 784d eIndexMap indexM\n+0002f2f0: 6170 2867 7261 7068 2c6f 6f63 6f6d 6d29 ap(graph,oocomm)\n+0002f300: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0002f350: 2031 3238 383c 2f73 7061 6e3e 2020 2020 1288 \n+0002f360: 3c61 2063 6c61 7373 3d22 636f 6465 2068 \n+0002f3b0: 4d65 7469 733a 3a69 6478 5f74 3c2f 613e Metis::idx_t\n+0002f3c0: 202a 7061 7274 203d 203c 7370 616e 2063 *part = n\n+0002f3e0: 6577 3c2f 7370 616e 3e20 3c61 2063 6c61 ew Metis:\n+0002f440: 3a69 6478 5f74 3c2f 613e 5b69 6e64 6578 :idx_t[index\n+0002f450: 4d61 702e 6e75 6d4f 664f 776e 5674 7828 Map.numOfOwnVtx(\n+0002f460: 295d 3b3c 2f64 6976 3e0a 3c64 6976 2063 )];
    .
    1289 \n+0002f4c0: 2020 3c73 7061 6e20 636c 6173 733d 226b for<\n+0002f4e0: 2f73 7061 6e3e 2873 7464 3a3a 7369 7a65 /span>(std::size\n+0002f4f0: 5f74 2069 3d30 3b20 6920 266c 743b 2069 _t i=0; i < i\n+0002f500: 6e64 6578 4d61 702e 6e75 6d4f 664f 776e ndexMap.numOfOwn\n+0002f510: 5674 7828 293b 202b 2b69 293c 2f64 6976 Vtx(); ++i).
    1290<\n+0002f570: 2f73 7061 6e3e 2020 2020 2020 7061 7274 /span> part\n+0002f580: 5b69 5d3d 6d79 7065 3b3c 2f64 6976 3e0a [i]=mype;
    .\n+0002f590: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0002f620: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0002f630: 6e6f 223e 2031 3239 323c 2f73 7061 6e3e no\"> 1292
    \n+0002f640: 3c73 7061 6e20 636c 6173 733d 2270 7265 #if !\n+0002f660: 4841 5645 5f50 4152 4d45 5449 533c 2f73 HAVE_PARMETIS
    .
    1293 \n+0002f6d0: 2020 203c 7370 616e 2063 6c61 7373 3d22 if<\n+0002f6f0: 2f73 7061 6e3e 286f 6f63 6f6d 6d2e 3c61 /span>(oocomm.c\n+0002f750: 6f6d 6d75 6e69 6361 746f 723c 2f61 3e28 ommunicator(\n+0002f760: 292e 7261 6e6b 2829 3d3d 3020 2661 6d70 ).rank()==0 &\n+0002f770: 3b26 616d 703b 206e 7061 7274 7326 6774 ;& nparts>\n+0002f780: 3b31 293c 2f64 6976 3e0a 3c64 6976 2063 ;1)
    .
    1294 \n+0002f7e0: 2020 2020 7374 643a 3a63 6572 7226 6c74 std::cerr<\n+0002f7f0: 3b26 6c74 3b3c 7370 616e 2063 6c61 7373 ;<"ParMETIS \n+0002f820: 6e6f 7420 6163 7469 7661 7465 642e 2057 not activated. W\n+0002f830: 696c 6c20 7265 7061 7274 6974 696f 6e20 ill repartition \n+0002f840: 746f 2031 2064 6f6d 6169 6e20 696e 7374 to 1 domain inst\n+0002f850: 6561 6420 6f66 2072 6571 7565 7374 6564 ead of requested\n+0002f860: 2026 7175 6f74 3b3c 2f73 7061 6e3e 3c2f ".
    12\n+0002f8c0: 3935 3c2f 7370 616e 3e20 2020 2020 2020 95 \n+0002f8d0: 2020 2020 2020 2020 266c 743b 266c 743b <<\n+0002f8e0: 6e70 6172 7473 266c 743b 266c 743b 3c73 nparts<<"\n+0002f910: 2064 6f6d 6169 6e73 2e26 7175 6f74 3b3c domains."<\n+0002f920: 2f73 7061 6e3e 266c 743b 266c 743b 7374 /span><<st\n+0002f930: 643a 3a65 6e64 6c3b 3c2f 6469 763e 0a3c d::endl;
    .<\n+0002f940: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002f950: 3e3c 6120 6964 3d22 6c30 3132 3936 2220 > 1296 nparts=1;\n+0002f9a0: 203c 7370 616e 2063 6c61 7373 3d22 636f // No par\n+0002f9c0: 6d65 7469 7320 6176 6169 6c61 626c 652c metis available,\n+0002f9d0: 2066 616c 6c62 6163 6b20 746f 2061 6767 fallback to agg\n+0002f9e0: 6c6f 6d65 7261 7469 6e67 2074 6f20 3120 lomerating to 1 \n+0002f9f0: 7072 6f63 6573 733c 2f73 7061 6e3e 3c2f process.
    12\n+0002fa50: 3937 3c2f 7370 616e 3e20 3c2f 6469 763e 97
    \n+0002fa60: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0002fa90: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1298\n+0002fad0: 2365 6c73 653c 2f73 7061 6e3e 3c2f 6469 #else.
    1299\n+0002fb30: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+0002fb40: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0002fb50: 3e3c 6120 6964 3d22 6c30 3133 3030 2220 > 1300 if(npart\n+0002fbc0: 7326 6774 3b31 2920 7b3c 2f64 6976 3e0a s>1) {
    .\n+0002fbd0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0002fc00: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1301 \n+0002fc40: 2f2f 2043 7265 6174 6520 7468 6520 7861 // Create the xa\n+0002fc50: 646a 2061 6e64 2061 646a 6e63 7920 6172 dj and adjncy ar\n+0002fc60: 7261 7973 3c2f 7370 616e 3e3c 2f64 6976 rays.
    1302<\n+0002fcc0: 2f73 7061 6e3e 2020 2020 2020 3c61 2063 /span> Meti\n+0002fd20: 733a 3a69 6478 5f74 3c2f 613e 202a 7861 s::idx_t *xa\n+0002fd30: 646a 203d 203c 7370 616e 2063 6c61 7373 dj = new Metis::id\n+0002fdb0: 785f 743c 2f61 3e5b 696e 6465 784d 6170 x_t[indexMap\n+0002fdc0: 2e6e 756d 4f66 4f77 6e56 7478 2829 2b31 .numOfOwnVtx()+1\n+0002fdd0: 5d3b 3c2f 6469 763e 0a3c 6469 7620 636c ];
    ..
    \n+0002ff80: 2031 3330 343c 2f73 7061 6e3e 2020 2020 1304 \n+0002ff90: 2020 4564 6765 4675 6e63 746f 7226 6c74 EdgeFunctor<\n+0002ffa0: 3b47 2667 743b 2065 6628 6164 6a6e 6379 ;G> ef(adjncy\n+0002ffb0: 2c20 696e 6465 784d 6170 2c20 6772 6170 , indexMap, grap\n+0002ffc0: 682e 6e6f 4564 6765 7328 2929 3b3c 2f64 h.noEdges());.
    130\n+00030020: 353c 2f73 7061 6e3e 2020 2020 2020 6765 5 ge\n+00030030: 7441 646a 4172 7261 7973 266c 743b 4f77 tAdjArrays<Ow\n+00030040: 6e65 7253 6574 2667 743b 2867 7261 7068 nerSet>(graph\n+00030050: 2c20 6f6f 636f 6d6d 2e3c 6120 636c 6173 , oocomm.global\n+000300b0: 4c6f 6f6b 7570 3c2f 613e 2829 2c20 7861 Lookup(), xa\n+000300c0: 646a 2c20 6566 293b 3c2f 6469 763e 0a3c dj, ef);
    .<\n+000300d0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000300e0: 3e3c 6120 6964 3d22 6c30 3133 3036 2220 > 1306
    .
    1307 \n+00030180: 2020 2020 203c 7370 616e 2063 6c61 7373 //
    .
    1308 \n+00030200: 2020 2020 203c 7370 616e 2063 6c61 7373 // 2)\n+00030220: 2043 616c 6c20 5061 724d 4554 4953 3c2f Call ParMETIS
    .<\n+00030270: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00030280: 6e6f 223e 2031 3330 393c 2f73 7061 6e3e no\"> 1309\n+00030290: 2020 2020 2020 3c73 7061 6e20 636c 6173 //
    .<\n+000302f0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00030300: 6e6f 223e 2031 3331 303c 2f73 7061 6e3e no\"> 1310\n+00030310: 2020 2020 2020 3c73 7061 6e20 636c 6173 //
    .<\n+00030370: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00030380: 6e6f 223e 2031 3331 313c 2f73 7061 6e3e no\"> 1311\n+00030390: 2020 2020 2020 3c61 2063 6c61 7373 3d22 Metis::idx\n+000303f0: 5f74 3c2f 613e 206e 756d 666c 6167 3d30 _t numflag=0\n+00030400: 2c20 7767 7466 6c61 673d 302c 206f 7074 , wgtflag=0, opt\n+00030410: 696f 6e73 5b33 5d2c 2065 6467 6563 7574 ions[3], edgecut\n+00030420: 3d30 2c20 6e63 6f6e 3d31 3b3c 2f64 6976 =0, ncon=1;.
    1312<\n+00030480: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> //float *tpwgt\n+000304b0: 7320 3d20 4e55 4c4c 3b3c 2f73 7061 6e3e s = NULL;\n+000304c0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00030510: 3133 3133 3c2f 7370 616e 3e20 2020 2020 1313 \n+00030520: 203c 6120 636c 6173 733d 2263 6f64 6520 Metis::real_t *tpwgts = new Me\n+00030600: 7469 733a 3a72 6561 6c5f 743c 2f61 3e5b tis::real_t[\n+00030610: 6e70 6172 7473 5d3b 3c2f 6469 763e 0a3c nparts];
    .<\n+00030620: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00030630: 3e3c 6120 6964 3d22 6c30 3133 3134 2220 > 1314 for(int i=0; i<npa\n+000306d0: 7274 733b 202b 2b69 293c 2f64 6976 3e0a rts; ++i)
    .\n+000306e0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n+000307a0: 2031 3331 363c 2f73 7061 6e3e 2020 2020 1316 \n+000307b0: 2020 3c61 2063 6c61 7373 3d22 636f 6465 Metis::real_t<\n+00030810: 2f61 3e20 7562 7665 635b 315d 3b3c 2f64 /a> ubvec[1];.
    131\n+00030870: 373c 2f73 7061 6e3e 2020 2020 2020 6f70 7 op\n+00030880: 7469 6f6e 735b 305d 203d 2030 3b20 3c73 tions[0] = 0; // 0=default\n+000308b0: 2c20 313d 6f70 7469 6f6e 7320 6172 6520 , 1=options are \n+000308c0: 6465 6669 6e65 6420 696e 205b 315d 2b5b defined in [1]+[\n+000308d0: 325d 3c2f 7370 616e 3e3c 2f64 6976 3e0a 2]
    .\n+000308e0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+00030970: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n+00030a60: 2031 3332 303c 2f73 7061 6e3e 3c73 7061 1320#else
    .
    1321 \n+00030af0: 2020 2020 6f70 7469 6f6e 735b 315d 203d options[1] =\n+00030b00: 2030 3b20 3c73 7061 6e20 636c 6173 733d 0; // sho\n+00030b20: 7720 696e 666f 3a20 303d 6e6f 206d 6573 w info: 0=no mes\n+00030b30: 7361 6765 3c2f 7370 616e 3e3c 2f64 6976 sage.
    1322<\n+00030b90: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#endif.
    13\n+00030c10: 3233 3c2f 7370 616e 3e20 2020 2020 206f 23 o\n+00030c20: 7074 696f 6e73 5b32 5d20 3d20 313b 203c ptions[2] = 1; <\n+00030c30: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+00030c40: 656e 7422 3e2f 2f20 7261 6e64 6f6d 206e ent\">// random n\n+00030c50: 756d 6265 7220 7365 6564 2c20 6465 6661 umber seed, defa\n+00030c60: 756c 7420 6973 2031 353c 2f73 7061 6e3e ult is 15\n+00030c70: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00030cc0: 3133 3234 3c2f 7370 616e 3e20 2020 2020 1324 \n+00030cd0: 2077 6774 666c 6167 203d 2028 6566 2e67 wgtflag = (ef.g\n+00030ce0: 6574 5765 6967 6874 7328 2921 3d4e 554c etWeights()!=NUL\n+00030cf0: 4c29 203f 2031 203a 2030 3b3c 2f64 6976 L) ? 1 : 0;.
    1325<\n+00030d50: 2f73 7061 6e3e 2020 2020 2020 6e75 6d66 /span> numf\n+00030d60: 6c61 6720 3d20 303b 3c2f 6469 763e 0a3c lag = 0;
    .<\n+00030d70: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00030d80: 3e3c 6120 6964 3d22 6c30 3133 3236 2220 > 1326 edgecut\n+00030dd0: 203d 2030 3b3c 2f64 6976 3e0a 3c64 6976 = 0;
    .<\n+00030e10: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00030e20: 6e6f 223e 2031 3332 373c 2f73 7061 6e3e no\"> 1327
    \n+00030e30: 2020 2020 2020 6e63 6f6e 3d31 3b3c 2f64 ncon=1;.
    132\n+00030e90: 383c 2f73 7061 6e3e 2020 2020 2020 7562 8 ub\n+00030ea0: 7665 635b 305d 3d31 2e30 353b 203c 7370 vec[0]=1.05; // recommende\n+00030ed0: 6420 6279 2050 6172 4d45 5449 533c 2f73 d by ParMETIS
    .
    1329 \n+00030f40: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00030f90: 3133 3330 3c2f 7370 616e 3e3c 7370 616e 1330#ifdef DEB\n+00030fc0: 5547 5f52 4550 4152 543c 2f73 7061 6e3e UG_REPART\n+00030fd0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00031020: 3133 3331 3c2f 7370 616e 3e20 2020 2020 1331 \n+00031030: 203c 7370 616e 2063 6c61 7373 3d22 6b65 if (mype == 0)\n+00031060: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    1332 \n+000310c0: 2020 2020 2073 7464 3a3a 636f 7574 266c std::cout&l\n+000310d0: 743b 266c 743b 7374 643a 3a65 6e64 6c3b t;<std::endl;\n+000310e0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00031130: 3133 3333 3c2f 7370 616e 3e20 2020 2020 1333 \n+00031140: 2020 2073 7464 3a3a 636f 7574 266c 743b std::cout<\n+00031150: 266c 743b 3c73 7061 6e20 636c 6173 733d <\n+00031170: 2671 756f 743b 5465 7374 696e 6720 5061 "Testing Pa\n+00031180: 724d 4554 4953 5f56 335f 5061 7274 4b77 rMETIS_V3_PartKw\n+00031190: 6179 2077 6974 6820 6f70 7469 6f6e 735b ay with options[\n+000311a0: 312d 325d 203d 207b 2671 756f 743b 3c2f 1-2] = {"
    .<\n+000311f0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00031200: 6e6f 223e 2031 3333 343c 2f73 7061 6e3e no\"> 1334\n+00031210: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00031220: 2026 6c74 3b26 6c74 3b6f 7074 696f 6e73 <<options\n+00031230: 5b31 5d26 6c74 3b26 6c74 3b3c 7370 616e [1]<<" &q\n+00031260: 756f 743b 3c2f 7370 616e 3e26 6c74 3b26 uot;<&\n+00031270: 6c74 3b6f 7074 696f 6e73 5b32 5d26 6c74 lt;options[2]<\n+00031280: 3b26 6c74 3b3c 7370 616e 2063 6c61 7373 ;<"}, Ncon: \n+000312b0: 2671 756f 743b 3c2f 7370 616e 3e3c 2f64 ".
    133\n+00031310: 353c 2f73 7061 6e3e 2020 2020 2020 2020 5 \n+00031320: 2020 2020 2020 2020 2026 6c74 3b26 6c74 <<\n+00031330: 3b6e 636f 6e26 6c74 3b26 6c74 3b3c 7370 ;ncon<<",\n+00031360: 204e 7061 7274 733a 2026 7175 6f74 3b3c Nparts: "<\n+00031370: 2f73 7061 6e3e 266c 743b 266c 743b 6e70 /span><<np\n+00031380: 6172 7473 266c 743b 266c 743b 7374 643a arts<<std:\n+00031390: 3a65 6e64 6c3b 3c2f 6469 763e 0a3c 6469 :endl;
    .<\n+000313b0: 6120 6964 3d22 6c30 3133 3336 2220 6e61 a id=\"l01336\" na\n+000313c0: 6d65 3d22 6c30 3133 3336 223e 3c2f 613e me=\"l01336\">\n+000313d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1336 }
    .<\n+00031400: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00031410: 3e3c 6120 6964 3d22 6c30 3133 3337 2220 > 1337#e\n+00031470: 6e64 6966 3c2f 7370 616e 3e3c 2f64 6976 ndif.
    1338<\n+000314d0: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#ifdef PERF_REP\n+00031500: 4152 543c 2f73 7061 6e3e 3c2f 6469 763e ART
    \n+00031510: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00031540: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1339 // stop the tim\n+00031590: 6520 666f 7220 7374 6570 2031 293c 2f73 e for step 1)
    .
    1340 \n+00031600: 2020 2020 2074 313d 4d50 495f 5774 696d t1=MPI_Wtim\n+00031610: 6528 292d 7431 3b3c 2f64 6976 3e0a 3c64 e()-t1;
    .\n+00031630: 3c61 2069 643d 226c 3031 3334 3122 206e 1341 //\n+00031690: 2072 6573 6574 2074 696d 6572 2066 6f72 reset timer for\n+000316a0: 2073 7465 7020 3229 3c2f 7370 616e 3e3c step 2)<\n+000316b0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00031700: 3334 323c 2f73 7061 6e3e 2020 2020 2020 342 \n+00031710: 7432 3d4d 5049 5f57 7469 6d65 2829 3b3c t2=MPI_Wtime();<\n+00031720: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00031770: 3334 333c 2f73 7061 6e3e 3c73 7061 6e20 343#endif
    .
    1344 .
    13\n+00031850: 3435 3c2f 7370 616e 3e20 2020 2020 203c 45 <\n+00031860: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00031870: 6f72 6466 6c6f 7722 3e69 663c 2f73 7061 ordflow\">if(verbose) {.
    134\n+000318e0: 363c 2f73 7061 6e3e 2020 2020 2020 2020 6 \n+000318f0: 6f6f 636f 6d6d 2e3c 6120 636c 6173 733d oocomm.communic\n+00031950: 6174 6f72 3c2f 613e 2829 2e62 6172 7269 ator().barri\n+00031960: 6572 2829 3b3c 2f64 6976 3e0a 3c64 6976 er();
    .<\n+000319a0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000319b0: 6e6f 223e 2031 3334 373c 2f73 7061 6e3e no\"> 1347\n+000319c0: 2020 2020 2020 2020 3c73 7061 6e20 636c if(ooco\n+000319f0: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+00031a50: 3c2f 613e 2829 2e72 616e 6b28 293d 3d30 ().rank()==0\n+00031a60: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n+00031ab0: 2031 3334 383c 2f73 7061 6e3e 2020 2020 1348 \n+00031ac0: 2020 2020 2020 7374 643a 3a63 6f75 7426 std::cout&\n+00031ad0: 6c74 3b26 6c74 3b3c 7370 616e 2063 6c61 lt;<"Prepari\n+00031b00: 6e67 2066 6f72 2070 6172 6d65 7469 7320 ng for parmetis \n+00031b10: 746f 6f6b 2026 7175 6f74 3b3c 2f73 7061 took "<<time.e\n+00031b30: 6c61 7073 6564 2829 266c 743b 266c 743b lapsed()<<\n+00031b40: 7374 643a 3a65 6e64 6c3b 3c2f 6469 763e std::endl;
    \n+00031b50: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00031b80: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1349 }.
    1350\n+00031c00: 3c2f 7370 616e 3e20 2020 2020 2074 696d tim\n+00031c10: 652e 7265 7365 7428 293b 3c2f 6469 763e e.reset();
    \n+00031c20: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00031c90: 6120 6964 3d22 6c30 3133 3532 2220 6e61 a id=\"l01352\" na\n+00031ca0: 6d65 3d22 6c30 3133 3532 223e 3c2f 613e me=\"l01352\">\n+00031cb0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1352 //=\n+00031cf0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00031d00: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00031d10: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00031d20: 3d3d 3d3d 3d3d 3c2f 7370 616e 3e3c 2f64 ======.
    135\n+00031d80: 333c 2f73 7061 6e3e 2020 2020 2020 3c73 3 // ParMETIS_\n+00031db0: 5633 5f50 6172 744b 7761 793c 2f73 7061 V3_PartKway
    .
    1354 \n+00031e20: 2020 203c 7370 616e 2063 6c61 7373 3d22 //=====\n+00031e40: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00031e50: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00031e60: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00031e70: 3d3d 3c2f 7370 616e 3e3c 2f64 6976 3e0a ==
    .\n+00031e80: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n+00031f60: 3133 3536 3c2f 7370 616e 3e20 2020 2020 1356 \n+00031f70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00031f80: 2020 2020 2020 4e55 4c4c 2c20 6566 2e67 NULL, ef.g\n+00031f90: 6574 5765 6967 6874 7328 292c 2026 616d etWeights(), &am\n+00031fa0: 703b 7767 7466 6c61 672c 3c2f 6469 763e p;wgtflag,
    \n+00031fb0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00031fe0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1357 \n+00032010: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00032020: 2661 6d70 3b6e 756d 666c 6167 2c20 2661 &numflag, &a\n+00032030: 6d70 3b6e 636f 6e2c 2026 616d 703b 6e70 mp;ncon, &np\n+00032040: 6172 7473 2c20 7470 7767 7473 2c20 7562 arts, tpwgts, ub\n+00032050: 7665 632c 206f 7074 696f 6e73 2c20 2661 vec, options, &a\n+00032060: 6d70 3b65 6467 6563 7574 2c20 7061 7274 mp;edgecut, part\n+00032070: 2c20 2661 6d70 3b3c 7370 616e 2063 6c61 , &con\n+00032090: 7374 5f63 6173 7426 6c74 3b3c 2f73 7061 st_cast<MPI_Comm&<\n+000320b0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+000320c0: 6f72 6422 3e26 6774 3b3c 2f73 7061 6e3e ord\">>\n+000320d0: 2863 6f6d 6d29 293b 3c2f 6469 763e 0a3c (comm));
    .<\n+000320e0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000320f0: 3e3c 6120 6964 3d22 6c30 3133 3538 2220 > 1358
    .
    1359 \n+00032190: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000321e0: 3133 3630 3c2f 7370 616e 3e20 2020 2020 1360 \n+000321f0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 delete[] xadj;.
    1361\n+00032270: 3c2f 7370 616e 3e20 2020 2020 203c 7370 delete\n+000322a0: 5b5d 2061 646a 6e63 793b 3c2f 6469 763e [] adjncy;
    \n+000322b0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000322e0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1362 delete[]\n+00032330: 2074 7077 6774 733b 3c2f 6469 763e 0a3c tpwgts;
    .<\n+00032340: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00032350: 3e3c 6120 6964 3d22 6c30 3133 3633 2220 > 1363
    .
    1364 \n+000323f0: 2020 2020 2065 662e 6672 6565 2829 3b3c ef.free();<\n+00032400: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00032450: 3336 353c 2f73 7061 6e3e 203c 2f64 6976 365 .
    1366<\n+000324b0: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#ifdef DEBUG_RE\n+000324e0: 5041 5254 3c2f 7370 616e 3e3c 2f64 6976 PART.
    1367<\n+00032540: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> if \n+00032570: 286d 7970 6520 3d3d 2030 2920 7b3c 2f64 (mype == 0) {.
    136\n+000325d0: 383c 2f73 7061 6e3e 2020 2020 2020 2020 8 \n+000325e0: 7374 643a 3a63 6f75 7426 6c74 3b26 6c74 std::cout<<\n+000325f0: 3b73 7464 3a3a 656e 646c 3b3c 2f64 6976 ;std::endl;.
    1369<\n+00032650: 2f73 7061 6e3e 2020 2020 2020 2020 7374 /span> st\n+00032660: 643a 3a63 6f75 7426 6c74 3b26 6c74 3b3c d::cout<<<\n+00032670: 7370 616e 2063 6c61 7373 3d22 7374 7269 span class=\"stri\n+00032680: 6e67 6c69 7465 7261 6c22 3e26 7175 6f74 ngliteral\">"\n+00032690: 3b50 6172 4d45 5449 535f 5633 5f50 6172 ;ParMETIS_V3_Par\n+000326a0: 744b 7761 7920 7265 706f 7274 6564 2061 tKway reported a\n+000326b0: 2063 7574 206f 6620 2671 756f 743b 3c2f cut of "<<edg\n+000326d0: 6563 7574 266c 743b 266c 743b 7374 643a ecut<<std:\n+000326e0: 3a65 6e64 6c3b 3c2f 6469 763e 0a3c 6469 :endl;
    .<\n+00032700: 6120 6964 3d22 6c30 3133 3730 2220 6e61 a id=\"l01370\" na\n+00032710: 6d65 3d22 6c30 3133 3730 223e 3c2f 613e me=\"l01370\">\n+00032720: 3c73 7061 6e20 636c 6173 733d 226c 696e 1370 std::co\n+00032750: 7574 266c 743b 266c 743b 7374 643a 3a65 ut<<std::e\n+00032760: 6e64 6c3b 3c2f 6469 763e 0a3c 6469 7620 ndl;
    .
    1371 \n+000327c0: 2020 2020 207d 3c2f 6469 763e 0a3c 6469 }
    .<\n+000327e0: 6120 6964 3d22 6c30 3133 3732 2220 6e61 a id=\"l01372\" na\n+000327f0: 6d65 3d22 6c30 3133 3732 223e 3c2f 613e me=\"l01372\">\n+00032800: 3c73 7061 6e20 636c 6173 733d 226c 696e 1372 std::cout\n+00032830: 266c 743b 266c 743b 6d79 7065 266c 743b <<mype<\n+00032840: 266c 743b 3c73 7061 6e20 636c 6173 733d <\n+00032860: 2671 756f 743b 3a20 5041 524d 4554 4953 ": PARMETIS\n+00032870: 2d52 6573 756c 743a 2026 7175 6f74 3b3c -Result: "<\n+00032880: 2f73 7061 6e3e 3b3c 2f64 6976 3e0a 3c64 /span>;
    .\n+000328a0: 3c61 2069 643d 226c 3031 3337 3322 206e 1373 for(int i=0; i < in\n+00032940: 6465 784d 6170 2e76 7478 4469 7374 2829 dexMap.vtxDist()\n+00032950: 5b6d 7970 652b 315d 2d69 6e64 6578 4d61 [mype+1]-indexMa\n+00032960: 702e 7674 7844 6973 7428 295b 6d79 7065 p.vtxDist()[mype\n+00032970: 5d3b 202b 2b69 2920 7b3c 2f64 6976 3e0a ]; ++i) {
    .\n+00032980: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+000329b0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1374 std:\n+000329e0: 3a63 6f75 7426 6c74 3b26 6c74 3b70 6172 :cout<<par\n+000329f0: 745b 695d 266c 743b 266c 743b 3c73 7061 t[i]<<" &\n+00032a20: 7175 6f74 3b3c 2f73 7061 6e3e 3b3c 2f64 quot;;.
    137\n+00032a80: 353c 2f73 7061 6e3e 2020 2020 2020 7d3c 5 }<\n+00032a90: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00032ae0: 3337 363c 2f73 7061 6e3e 2020 2020 2020 376 \n+00032af0: 7374 643a 3a63 6f75 7426 6c74 3b26 6c74 std::cout<<\n+00032b00: 3b73 7464 3a3a 656e 646c 3b3c 2f64 6976 ;std::endl;.
    1377<\n+00032b60: 2f73 7061 6e3e 2020 2020 2020 7374 643a /span> std:\n+00032b70: 3a63 6f75 7426 6c74 3b26 6c74 3b3c 7370 :cout<<"T\n+00032ba0: 6573 7469 6e67 2050 6172 4d45 5449 535f esting ParMETIS_\n+00032bb0: 5633 5f50 6172 744b 7761 7920 7769 7468 V3_PartKway with\n+00032bc0: 206f 7074 696f 6e73 5b31 2d32 5d20 3d20 options[1-2] = \n+00032bd0: 7b26 7175 6f74 3b3c 2f73 7061 6e3e 3c2f {".
    13\n+00032c30: 3738 3c2f 7370 616e 3e20 2020 2020 2020 78 \n+00032c40: 2020 2020 2020 2020 266c 743b 266c 743b <<\n+00032c50: 6f70 7469 6f6e 735b 315d 266c 743b 266c options[1]<&l\n+00032c60: 743b 3c73 7061 6e20 636c 6173 733d 2273 t;&q\n+00032c80: 756f 743b 2026 7175 6f74 3b3c 2f73 7061 uot; "<<option\n+00032ca0: 735b 325d 266c 743b 266c 743b 3c73 7061 s[2]<<"},\n+00032cd0: 204e 636f 6e3a 2026 7175 6f74 3b3c 2f73 Ncon: "
    .
    1379 \n+00032d40: 2020 2020 2020 2020 2020 2020 2020 266c &l\n+00032d50: 743b 266c 743b 6e63 6f6e 266c 743b 266c t;<ncon<&l\n+00032d60: 743b 3c73 7061 6e20 636c 6173 733d 2273 t;&q\n+00032d80: 756f 743b 2c20 4e70 6172 7473 3a20 2671 uot;, Nparts: &q\n+00032d90: 756f 743b 3c2f 7370 616e 3e26 6c74 3b26 uot;<&\n+00032da0: 6c74 3b6e 7061 7274 7326 6c74 3b26 6c74 lt;nparts<<\n+00032db0: 3b73 7464 3a3a 656e 646c 3b3c 2f64 6976 ;std::endl;.
    1380<\n+00032e10: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>#endif.
    13\n+00032e90: 3831 3c2f 7370 616e 3e3c 7370 616e 2063 81#ifdef PERF_\n+00032ec0: 5245 5041 5254 3c2f 7370 616e 3e3c 2f64 REPART.
    138\n+00032f20: 323c 2f73 7061 6e3e 2020 2020 2020 3c73 2 // stop the \n+00032f50: 7469 6d65 2066 6f72 2073 7465 7020 3229 time for step 2)\n+00032f60: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00032f80: 3c61 2069 643d 226c 3031 3338 3322 206e 1383 t2=MPI_W\n+00032fd0: 7469 6d65 2829 2d74 323b 3c2f 6469 763e time()-t2;
    \n+00032fe0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00033010: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1384 // reset timer \n+00033060: 666f 7220 7374 6570 2033 293c 2f73 7061 for step 3)
    .
    1385 \n+000330d0: 2020 2074 333d 4d50 495f 5774 696d 6528 t3=MPI_Wtime(\n+000330e0: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    1386#endif
    .<\n+000331a0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000331b0: 6e6f 223e 2031 3338 373c 2f73 7061 6e3e no\"> 1387
    \n+000331c0: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+00033210: 2031 3338 383c 2f73 7061 6e3e 203c 2f64 1388 .
    138\n+00033270: 393c 2f73 7061 6e3e 2020 2020 2020 3c73 9 if(verbose) {.
    1390\n+00033300: 3c2f 7370 616e 3e20 2020 2020 2020 206f o\n+00033310: 6f63 6f6d 6d2e 3c61 2063 6c61 7373 3d22 ocomm.communica\n+00033370: 746f 723c 2f61 3e28 292e 6261 7272 6965 tor().barrie\n+00033380: 7228 293b 3c2f 6469 763e 0a3c 6469 7620 r();
    .
    1391 \n+000333e0: 2020 2020 2020 203c 7370 616e 2063 6c61 if(oocom\n+00033410: 6d2e 3c61 2063 6c61 7373 3d22 636f 6465 m.communicator<\n+00033470: 2f61 3e28 292e 7261 6e6b 2829 3d3d 3029 /a>().rank()==0)\n+00033480: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000334d0: 3133 3932 3c2f 7370 616e 3e20 2020 2020 1392 \n+000334e0: 2020 2020 2073 7464 3a3a 636f 7574 266c std::cout&l\n+000334f0: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<"Parmetis\n+00033520: 2074 6f6f 6b20 2671 756f 743b 3c2f 7370 took "<<time.\n+00033540: 656c 6170 7365 6428 2926 6c74 3b26 6c74 elapsed()<<\n+00033550: 3b73 7464 3a3a 656e 646c 3b3c 2f64 6976 ;std::endl;.
    1393<\n+000335b0: 2f73 7061 6e3e 2020 2020 2020 7d3c 2f64 /span> }.
    139\n+00033610: 343c 2f73 7061 6e3e 2020 2020 2020 7469 4 ti\n+00033620: 6d65 2e72 6573 6574 2829 3b3c 2f64 6976 me.reset();.
    1395<\n+00033680: 2f73 7061 6e3e 2020 2020 7d3c 7370 616e /span> }else\n+000336b0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00033700: 3133 3936 3c2f 7370 616e 3e3c 7370 616e 1396#endif
    .
    1397 \n+00033790: 2020 7b3c 2f64 6976 3e0a 3c64 6976 2063 {
    .
    1398 \n+000337f0: 2020 2020 3c73 7061 6e20 636c 6173 733d // Eve\n+00033810: 7279 7468 696e 6720 676f 6573 2074 6f20 rything goes to \n+00033820: 7072 6f63 6573 7320 3021 3c2f 7370 616e process 0!
    .
    \n+00033880: 2031 3339 393c 2f73 7061 6e3e 2020 2020 1399 \n+00033890: 2020 3c73 7061 6e20 636c 6173 733d 226b for<\n+000338b0: 2f73 7061 6e3e 2873 7464 3a3a 7369 7a65 /span>(std::size\n+000338c0: 5f74 2069 3d30 3b20 6926 6c74 3b69 6e64 _t i=0; i<ind\n+000338d0: 6578 4d61 702e 6e75 6d4f 664f 776e 5674 exMap.numOfOwnVt\n+000338e0: 7828 293b 202b 2b69 293c 2f64 6976 3e0a x(); ++i)
    .\n+000338f0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00033970: 6120 6964 3d22 6c30 3134 3031 2220 6e61 a id=\"l01401\" na\n+00033980: 6d65 3d22 6c30 3134 3031 223e 3c2f 613e me=\"l01401\">\n+00033990: 3c73 7061 6e20 636c 6173 733d 226c 696e 1401 }
    .<\n+000339d0: 6120 6964 3d22 6c30 3134 3032 2220 6e61 a id=\"l01402\" na\n+000339e0: 6d65 3d22 6c30 3134 3032 223e 3c2f 613e me=\"l01402\">\n+000339f0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1402
    .
    1403 .
    14\n+00033ac0: 3034 3c2f 7370 616e 3e20 2020 203c 7370 04 //.
    1405\n+00033b40: 3c2f 7370 616e 3e20 2020 203c 7370 616e // 3) Find a op\n+00033b70: 7469 6d61 6c20 646f 6d61 696e 2062 6173 timal domain bas\n+00033b80: 6564 206f 6e20 7468 6520 5061 724d 4554 ed on the ParMET\n+00033b90: 4953 2072 6570 6172 7469 7469 6f6e 696e IS repartitionin\n+00033ba0: 673c 2f73 7061 6e3e 3c2f 6469 763e 0a3c g
    .<\n+00033bb0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00033bc0: 3e3c 6120 6964 3d22 6c30 3134 3036 2220 > 1406 // \n+00033c20: 2020 2072 6573 756c 743c 2f73 7061 6e3e result\n+00033c30: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00033c80: 3134 3037 3c2f 7370 616e 3e20 2020 203c 1407 <\n+00033c90: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+00033ca0: 656e 7422 3e2f 2f3c 2f73 7061 6e3e 3c2f ent\">//.
    14\n+00033d00: 3038 3c2f 7370 616e 3e20 3c2f 6469 763e 08
    \n+00033d10: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00033d40: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1409 std::ve\n+00033d70: 6374 6f72 266c 743b 696e 7426 6774 3b20 ctor<int> \n+00033d80: 646f 6d61 696e 4d61 7070 696e 6728 6e70 domainMapping(np\n+00033d90: 6172 7473 293b 3c2f 6469 763e 0a3c 6469 arts);
    .<\n+00033db0: 6120 6964 3d22 6c30 3134 3130 2220 6e61 a id=\"l01410\" na\n+00033dc0: 6d65 3d22 6c30 3134 3130 223e 3c2f 613e me=\"l01410\">\n+00033dd0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1410 i\n+00033e10: 663c 2f73 7061 6e3e 286e 7061 7274 7326 f(nparts&\n+00033e20: 6774 3b31 293c 2f64 6976 3e0a 3c64 6976 gt;1)
    .<\n+00033e60: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00033e70: 6e6f 223e 2031 3431 313c 2f73 7061 6e3e no\"> 1411\n+00033e80: 2020 2020 2020 6765 7444 6f6d 6169 6e28 getDomain(\n+00033e90: 636f 6d6d 2c20 7061 7274 2c20 696e 6465 comm, part, inde\n+00033ea0: 784d 6170 2e6e 756d 4f66 4f77 6e56 7478 xMap.numOfOwnVtx\n+00033eb0: 2829 2c20 6e70 6172 7473 2c20 2661 6d70 (), nparts, &\n+00033ec0: 3b6d 7944 6f6d 6169 6e2c 2064 6f6d 6169 ;myDomain, domai\n+00033ed0: 6e4d 6170 7069 6e67 293b 3c2f 6469 763e nMapping);
    \n+00033ee0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00033f10: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1412 else.
    14\n+00033fb0: 3133 3c2f 7370 616e 3e20 2020 2020 2064 13 d\n+00033fc0: 6f6d 6169 6e4d 6170 7069 6e67 5b30 5d3d omainMapping[0]=\n+00033fd0: 303b 3c2f 6469 763e 0a3c 6469 7620 636c 0;
    .
    1414 .
    14\n+00034080: 3135 3c2f 7370 616e 3e3c 7370 616e 2063 15#ifdef DEBUG\n+000340b0: 5f52 4550 4152 543c 2f73 7061 6e3e 3c2f _REPART.
    14\n+00034110: 3136 3c2f 7370 616e 3e20 2020 2073 7464 16 std\n+00034120: 3a3a 636f 7574 266c 743b 266c 743b 6d79 ::cout<<my\n+00034130: 7065 266c 743b 266c 743b 3c73 7061 6e20 pe<<": my\n+00034160: 446f 6d61 696e 3a20 2671 756f 743b 3c2f Domain: "<<myD\n+00034180: 6f6d 6169 6e26 6c74 3b26 6c74 3b73 7464 omain<<std\n+00034190: 3a3a 656e 646c 3b3c 2f64 6976 3e0a 3c64 ::endl;
    .\n+000341b0: 3c61 2069 643d 226c 3031 3431 3722 206e 1417 std::cout&\n+00034200: 6c74 3b26 6c74 3b6d 7970 6526 6c74 3b26 lt;<mype<&\n+00034210: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+00034230: 7175 6f74 3b3a 2044 6f6d 6169 6e4d 6170 quot;: DomainMap\n+00034240: 7069 6e67 3a20 2671 756f 743b 3c2f 7370 ping: ";
    .
    1418 \n+000342b0: 2020 203c 7370 616e 2063 6c61 7373 3d22 for\n+000342d0: 3c2f 7370 616e 3e28 3c73 7061 6e20 636c (au\n+000342f0: 746f 3c2f 7370 616e 3e20 6a20 3a20 7261 to j : ra\n+00034300: 6e67 6528 6e70 6172 7473 2929 207b 3c2f nge(nparts)) {.
    14\n+00034360: 3139 3c2f 7370 616e 3e20 2020 2020 2073 19 s\n+00034370: 7464 3a3a 636f 7574 266c 743b 266c 743b td::cout<<\n+00034380: 3c73 7061 6e20 636c 6173 733d 2273 7472 &quo\n+000343a0: 743b 2064 6f3a 2026 7175 6f74 3b3c 2f73 t; do: "<<j<\n+000343c0: 3b26 6c74 3b3c 7370 616e 2063 6c61 7373 ;<" pe: &quo\n+000343f0: 743b 3c2f 7370 616e 3e26 6c74 3b26 6c74 t;<<\n+00034400: 3b64 6f6d 6169 6e4d 6170 7069 6e67 5b6a ;domainMapping[j\n+00034410: 5d26 6c74 3b26 6c74 3b3c 7370 616e 2063 ]<<" &quo\n+00034440: 743b 3c2f 7370 616e 3e3b 3c2f 6469 763e t;;
    \n+00034450: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n+000344b0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000344e0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1421 std::co\n+00034510: 7574 266c 743b 266c 743b 7374 643a 3a65 ut<<std::e\n+00034520: 6e64 6c3b 3c2f 6469 763e 0a3c 6469 7620 ndl;
    .
    1422<\n+00034580: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n+00034590: 726f 6365 7373 6f72 223e 2365 6e64 6966 rocessor\">#endif\n+000345a0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+000345c0: 3c61 2069 643d 226c 3031 3432 3322 206e 1423
    .
    1424 \n+00034660: 2020 3c73 7061 6e20 636c 6173 733d 2263 // Make \n+00034680: 6120 646f 6d61 696e 206d 6170 7069 6e67 a domain mapping\n+00034690: 2066 6f72 2074 6865 2069 6e64 6578 7365 for the indexse\n+000346a0: 7420 616e 6420 7472 616e 736c 6174 653c t and translate<\n+000346b0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+000346d0: 6120 6964 3d22 6c30 3134 3235 2220 6e61 a id=\"l01425\" na\n+000346e0: 6d65 3d22 6c30 3134 3235 223e 3c2f 613e me=\"l01425\">\n+000346f0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1425 //dom\n+00034730: 6169 6e20 6e75 6d62 6572 2074 6f20 7265 ain number to re\n+00034740: 616c 2070 726f 6365 7373 206e 756d 6265 al process numbe\n+00034750: 723c 2f73 7061 6e3e 3c2f 6469 763e 0a3c r
    .<\n+00034760: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00034770: 3e3c 6120 6964 3d22 6c30 3134 3236 2220 > 1426 // \n+000347d0: 646f 6d61 696e 4d61 7070 696e 6720 6973 domainMapping is\n+000347e0: 2074 6865 206f 6e65 206f 6620 7061 726d the one of parm\n+000347f0: 6574 6973 2c20 7468 6174 2069 7320 7769 etis, that is wi\n+00034800: 7468 6f75 743c 2f73 7061 6e3e 3c2f 6469 thout.
    1427\n+00034860: 3c2f 7370 616e 3e20 2020 203c 7370 616e // the overlap/\n+00034890: 636f 7079 2076 6572 7469 6365 733c 2f73 copy vertices
    .
    1428 \n+00034900: 2020 2073 7464 3a3a 7665 6374 6f72 266c std::vector&l\n+00034910: 743b 696e 7426 6774 3b20 7365 7450 6172 t;int> setPar\n+00034920: 7469 7469 6f6e 286f 6f63 6f6d 6d2e 3c61 tition(oocomm.i\n+00034980: 6e64 6578 5365 743c 2f61 3e28 292e 7369 ndexSet().si\n+00034990: 7a65 2829 2c20 2d31 293b 3c2f 6469 763e ze(), -1);
    \n+000349a0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00034a10: 6120 6964 3d22 6c30 3134 3330 2220 6e61 a id=\"l01430\" na\n+00034a20: 6d65 3d22 6c30 3134 3330 223e 3c2f 613e me=\"l01430\">\n+00034a30: 3c73 7061 6e20 636c 6173 733d 226c 696e 1430 std::size_t\n+00034a60: 2069 3d30 3b20 3c73 7061 6e20 636c 6173 i=0; // p\n+00034a80: 6172 6d65 7469 7320 696e 6465 783c 2f73 armetis index
    .
    1431 \n+00034af0: 2020 203c 7370 616e 2063 6c61 7373 3d22 for\n+00034b10: 3c2f 7370 616e 3e28 3c73 7061 6e20 636c (au\n+00034b30: 746f 3c2f 7370 616e 3e20 696e 6465 7820 to index \n+00034b40: 3d20 6f6f 636f 6d6d 2e3c 6120 636c 6173 = oocomm.indexS\n+00034ba0: 6574 3c2f 613e 2829 2e62 6567 696e 2829 et().begin()\n+00034bb0: 3b20 696e 6465 7820 213d 206f 6f63 6f6d ; index != oocom\n+00034bc0: 6d2e 3c61 2063 6c61 7373 3d22 636f 6465 m.indexSet(\n+00034c20: 292e 656e 6428 293b 202b 2b69 6e64 6578 ).end(); ++index\n+00034c30: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n+00034c80: 2031 3433 323c 2f73 7061 6e3e 2020 2020 1432 \n+00034c90: 2020 3c73 7061 6e20 636c 6173 733d 226b if(OwnerSet::\n+00034cc0: 636f 6e74 6169 6e73 2869 6e64 6578 2d26 contains(index-&\n+00034cd0: 6774 3b6c 6f63 616c 2829 2e61 7474 7269 gt;local().attri\n+00034ce0: 6275 7465 2829 2929 207b 3c2f 6469 763e bute())) {
    \n+00034cf0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00034d20: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1433 set\n+00034d50: 5061 7274 6974 696f 6e5b 696e 6465 782d Partition[index-\n+00034d60: 2667 743b 6c6f 6361 6c28 295d 3d64 6f6d >local()]=dom\n+00034d70: 6169 6e4d 6170 7069 6e67 5b70 6172 745b ainMapping[part[\n+00034d80: 692b 2b5d 5d3b 3c2f 6469 763e 0a3c 6469 i++]];
    .<\n+00034da0: 6120 6964 3d22 6c30 3134 3334 2220 6e61 a id=\"l01434\" na\n+00034db0: 6d65 3d22 6c30 3134 3334 223e 3c2f 613e me=\"l01434\">\n+00034dc0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1434 }
    .<\n+00034df0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00034e00: 3e3c 6120 6964 3d22 6c30 3134 3335 2220 > 1435
    .
    1436 \n+00034ea0: 2020 203c 7370 616e 2063 6c61 7373 3d22 delete<\n+00034ec0: 2f73 7061 6e3e 5b5d 2070 6172 743b 3c2f /span>[] part;.
    14\n+00034f20: 3337 3c2f 7370 616e 3e20 2020 206f 6f63 37 ooc\n+00034f30: 6f6d 6d2e 3c61 2063 6c61 7373 3d22 636f omm.copyOwnerTo\n+00034f90: 416c 6c3c 2f61 3e28 7365 7450 6172 7469 All(setParti\n+00034fa0: 7469 6f6e 2c20 7365 7450 6172 7469 7469 tion, setPartiti\n+00034fb0: 6f6e 293b 3c2f 6469 763e 0a3c 6469 7620 on);
    .
    1438 \n+00035010: 2020 203c 7370 616e 2063 6c61 7373 3d22 // comm\n+00035030: 756e 6963 6174 696f 6e20 6f6e 6c79 206e unication only n\n+00035040: 6565 6465 6420 666f 7220 414c 553c 2f73 eeded for ALU
    .
    1439 \n+000350b0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // (gho\n+000350d0: 7374 7320 7769 7468 2073 616d 6520 676c sts with same gl\n+000350e0: 6f62 616c 2069 6420 6173 206f 776e 6572 obal id as owner\n+000350f0: 7320 6f6e 2074 6865 2073 616d 6520 7072 s on the same pr\n+00035100: 6f63 6573 7329 3c2f 7370 616e 3e3c 2f64 ocess).
    144\n+00035160: 303c 2f73 7061 6e3e 2020 2020 3c73 7061 0 if \n+00035190: 2853 6f6c 7665 7243 6174 6567 6f72 793a (SolverCategory:\n+000351a0: 3a63 6174 6567 6f72 7928 6f6f 636f 6d6d :category(oocomm\n+000351b0: 2920 3d3d 3c2f 6469 763e 0a3c 6469 7620 ) ==
    .
    1441 \n+00035210: 2020 2020 2020 203c 7370 616e 2063 6c61 sta\n+00035230: 7469 635f 6361 7374 266c 743b 3c2f 7370 tic_cast<int\n+00035260: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 >\n+00035280: 3b3c 2f73 7061 6e3e 2853 6f6c 7665 7243 ;(SolverC\n+00035290: 6174 6567 6f72 793a 3a6e 6f6e 6f76 6572 ategory::nonover\n+000352a0: 6c61 7070 696e 6729 293c 2f64 6976 3e0a lapping))
    .\n+000352b0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n+000353e0: 3134 3433 3c2f 7370 616e 3e20 2020 203c 1443 <\n+000353f0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00035400: 6f72 6474 7970 6522 3e62 6f6f 6c3c 2f73 ordtype\">bool ret = buil\n+00035470: 6443 6f6d 6d75 6e69 6361 7469 6f6e 3c2f dCommunication(graph, setPar\n+00035490: 7469 7469 6f6e 2c20 6f6f 636f 6d6d 2c20 tition, oocomm, \n+000354a0: 6f75 7463 6f6d 6d2c 2072 6564 6973 7449 outcomm, redistI\n+000354b0: 6e66 2c3c 2f64 6976 3e0a 3c64 6976 2063 nf,
    .
    1444 \n+00035510: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00035520: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00035530: 7665 7262 6f73 6529 3b3c 2f64 6976 3e0a verbose);
    .\n+00035540: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+000355e0: 6120 6964 3d22 6c30 3134 3436 2220 6e61 a id=\"l01446\" na\n+000355f0: 6d65 3d22 6c30 3134 3436 223e 3c2f 613e me=\"l01446\">\n+00035600: 3c73 7061 6e20 636c 6173 733d 226c 696e 1446 oocomm.c\n+00035680: 6f6d 6d75 6e69 6361 746f 723c 2f61 3e28 ommunicator(\n+00035690: 292e 6261 7272 6965 7228 293b 3c2f 6469 ).barrier();.
    1447\n+000356f0: 3c2f 7370 616e 3e20 2020 2020 203c 7370 if\n+00035720: 286f 6f63 6f6d 6d2e 3c61 2063 6c61 7373 (oocomm.communi\n+00035780: 6361 746f 723c 2f61 3e28 292e 7261 6e6b cator().rank\n+00035790: 2829 3d3d 3029 3c2f 6469 763e 0a3c 6469 ()==0)
    .<\n+000357b0: 6120 6964 3d22 6c30 3134 3438 2220 6e61 a id=\"l01448\" na\n+000357c0: 6d65 3d22 6c30 3134 3438 223e 3c2f 613e me=\"l01448\">\n+000357d0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1448 std::co\n+00035800: 7574 266c 743b 266c 743b 3c73 7061 6e20 ut<<"Crea\n+00035830: 7469 6e67 2069 6e64 6578 7365 7473 2074 ting indexsets t\n+00035840: 6f6f 6b20 2671 756f 743b 3c2f 7370 616e ook "<<time.el\n+00035860: 6170 7365 6428 2926 6c74 3b26 6c74 3b73 apsed()<<s\n+00035870: 7464 3a3a 656e 646c 3b3c 2f64 6976 3e0a td::endl;
    .\n+00035880: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+000358e0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    1451 \n+000359c0: 207d 3c2f 6469 763e 0a3c 2f64 6976 3e0a }
    .
    .\n+000359d0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00035a60: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00035a70: 6e6f 223e 2031 3435 333c 2f73 7061 6e3e no\"> 1453\n+00035a80: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+00035ad0: 2031 3435 343c 2f73 7061 6e3e 203c 2f64 1454 .
    145\n+00035b30: 353c 2f73 7061 6e3e 2020 3c73 7061 6e20 5 \n+00035b50: 7465 6d70 6c61 7465 3c2f 7370 616e 3e26 template&\n+00035b60: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;class G, c\n+00035ba0: 6c61 7373 3c2f 7370 616e 3e20 5431 2c20 lass T1, \n+00035bb0: 3c73 7061 6e20 636c 6173 733d 226b 6579 class T2>
    .\n+00035be0: 3c64 6976 2063 6c61 7373 3d22 666f 6c64
    ..
    1457 \n+00035de0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00035df0: 2020 2020 2020 2020 7374 643a 3a76 6563 std::vec\n+00035e00: 746f 7226 6c74 3b69 6e74 2667 743b 2661 tor<int>&a\n+00035e10: 6d70 3b20 7365 7450 6172 7469 7469 6f6e mp; setPartition\n+00035e20: 2c20 3c61 2063 6c61 7373 3d22 636f 6465 , Du\n+00035e50: 6e65 3a3a 4f77 6e65 724f 7665 726c 6170 ne::OwnerOverlap\n+00035e60: 436f 7079 436f 6d6d 756e 6963 6174 696f CopyCommunicatio\n+00035e70: 6e26 6c74 3b54 312c 5432 2667 743b 3c2f n<T1,T2>& oocomm,<\n+00035e90: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00035ee0: 3435 383c 2f73 7061 6e3e 2020 2020 2020 458 \n+00035ef0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00035f00: 2020 2020 7374 643a 3a73 6861 7265 645f std::shared_\n+00035f10: 7074 7226 6c74 3b3c 6120 636c 6173 733d ptr<Dune::OwnerOv\n+00035f50: 6572 6c61 7043 6f70 7943 6f6d 6d75 6e69 erlapCopyCommuni\n+00035f60: 6361 7469 6f6e 266c 743b 5431 2c54 3226 cation<T1,T2&\n+00035f70: 6774 3b3c 2f61 3e26 6774 3b26 616d 703b gt;>&\n+00035f80: 206f 7574 636f 6d6d 2c3c 2f64 6976 3e0a outcomm,
    .\n+00035f90: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    1460 \n+000360b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000360c0: 2020 2020 2020 2020 203c 7370 616e 2063 bool v\n+000360f0: 6572 626f 7365 293c 2f64 6976 3e0a 3c64 erbose)
    .\n+00036110: 3c61 2069 643d 226c 3031 3436 3122 206e 1461 {
    .<\n+00036190: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000361a0: 6e6f 223e 2031 3436 323c 2f73 7061 6e3e no\"> 1462\n+000361b0: 2020 2020 3c73 7061 6e20 636c 6173 733d typede\n+000361d0: 663c 2f73 7061 6e3e 203c 7370 616e 2063 f t\n+000361f0: 7970 656e 616d 653c 2f73 7061 6e3e 2020 ypename \n+00036200: 3c61 2063 6c61 7373 3d22 636f 6465 2068 Dune\n+00036230: 3a3a 4f77 6e65 724f 7665 726c 6170 436f ::OwnerOverlapCo\n+00036240: 7079 436f 6d6d 756e 6963 6174 696f 6e26 pyCommunication&\n+00036250: 6c74 3b54 312c 5432 2667 743b 3c2f 613e lt;T1,T2>\n+00036260: 204f 4f43 6f6d 6d3b 3c2f 6469 763e 0a3c OOComm;
    .<\n+00036270: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00036280: 3e3c 6120 6964 3d22 6c30 3134 3633 2220 > 1463 typ\n+000362e0: 6564 6566 3c2f 7370 616e 3e20 3c73 7061 edef typename OOComm::Owner\n+00036320: 5365 7420 4f77 6e65 7253 6574 3b3c 2f64 Set OwnerSet;.
    146\n+00036380: 343c 2f73 7061 6e3e 203c 2f64 6976 3e0a 4
    .\n+00036390: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    1466 <\n+00036450: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+000364a0: 3436 373c 2f73 7061 6e3e 2020 2020 3c73 467 // Build the\n+000364d0: 2073 656e 6420 696e 7465 7266 6163 653c send interface<\n+000364e0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00036500: 6120 6964 3d22 6c30 3134 3638 2220 6e61 a id=\"l01468\" na\n+00036510: 6d65 3d22 6c30 3134 3638 223e 3c2f 613e me=\"l01468\">\n+00036520: 3c73 7061 6e20 636c 6173 733d 226c 696e 1468 redistInf.<\n+00036550: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+00036560: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n+00036570: 2261 3032 3634 302e 6874 6d6c 2361 3935 \"a02640.html#a95\n+00036580: 3039 6434 6464 3736 3330 6233 3539 3464 09d4dd7630b3594d\n+00036590: 6162 6139 3039 3661 6330 3339 3365 223e aba9096ac0393e\">\n+000365a0: 6275 696c 6453 656e 6449 6e74 6572 6661 buildSendInterfa\n+000365b0: 6365 3c2f 613e 266c 743b 4f77 6e65 7253 ce<OwnerS\n+000365c0: 6574 2667 743b 2873 6574 5061 7274 6974 et>(setPartit\n+000365d0: 696f 6e2c 206f 6f63 6f6d 6d2e 3c61 2063 ion, oocomm.ind\n+00036630: 6578 5365 743c 2f61 3e28 2929 3b3c 2f64 exSet());.
    146\n+00036690: 393c 2f73 7061 6e3e 203c 2f64 6976 3e0a 9
    .\n+000366a0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00036730: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00036740: 3e3c 6120 6964 3d22 6c30 3134 3731 2220 > 1471 // \n+000367a0: 7374 6f70 2074 6865 2074 696d 6520 666f stop the time fo\n+000367b0: 7220 7374 6570 2033 293c 2f73 7061 6e3e r step 3)\n+000367c0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00036810: 3134 3732 3c2f 7370 616e 3e20 2020 2074 1472 t\n+00036820: 333d 4d50 495f 5774 696d 6528 292d 7433 3=MPI_Wtime()-t3\n+00036830: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00036880: 2031 3437 333c 2f73 7061 6e3e 2020 2020 1473 \n+00036890: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // reset t\n+000368b0: 696d 6572 2066 6f72 2073 7465 7020 3429 imer for step 4)\n+000368c0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+000368e0: 3c61 2069 643d 226c 3031 3437 3422 206e 1474 t4=MPI_Wti\n+00036930: 6d65 2829 3b3c 2f64 6976 3e0a 3c64 6976 me();
    .<\n+00036970: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00036980: 6e6f 223e 2031 3437 353c 2f73 7061 6e3e no\"> 1475\n+00036990: 3c73 7061 6e20 636c 6173 733d 2270 7265 #endi\n+000369b0: 663c 2f73 7061 6e3e 3c2f 6469 763e 0a3c f
    .<\n+000369c0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000369d0: 3e3c 6120 6964 3d22 6c30 3134 3736 2220 > 1476
    .
    1477 \n+00036a70: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00036ac0: 3134 3738 3c2f 7370 616e 3e20 2020 203c 1478 <\n+00036ad0: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+00036ae0: 656e 7422 3e2f 2f3c 2f73 7061 6e3e 3c2f ent\">//.
    14\n+00036b40: 3739 3c2f 7370 616e 3e20 2020 203c 7370 79 // 4) Create \n+00036b70: 7468 6520 6f75 7470 7574 2049 6e64 6578 the output Index\n+00036b80: 5365 7420 616e 6420 5265 6d6f 7465 496e Set and RemoteIn\n+00036b90: 6469 6365 733c 2f73 7061 6e3e 3c2f 6469 dices.
    1480\n+00036bf0: 3c2f 7370 616e 3e20 2020 203c 7370 616e // 4.1) Dete\n+00036c20: 726d 696e 6520 7468 6520 2671 756f 743b rmine the "\n+00036c30: 7365 6e64 2074 6f26 7175 6f74 3b20 616e send to" an\n+00036c40: 6420 2671 756f 743b 7265 6365 6976 6520 d "receive \n+00036c50: 6672 6f6d 2671 756f 743b 2072 656c 6174 from" relat\n+00036c60: 696f 6e3c 2f73 7061 6e3e 3c2f 6469 763e ion
    \n+00036c70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00036ca0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1481 /\n+00036ce0: 2f20 2020 2020 2020 2020 6163 636f 7264 / accord\n+00036cf0: 696e 6720 746f 2074 6865 206e 6577 2070 ing to the new p\n+00036d00: 6172 7469 7469 6f6e 2075 7369 6e67 2061 artition using a\n+00036d10: 204d 5049 2072 696e 673c 2f73 7061 6e3e MPI ring\n+00036d20: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00036d70: 3134 3832 3c2f 7370 616e 3e20 2020 203c 1482 <\n+00036d80: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+00036d90: 656e 7422 3e2f 2f20 2020 2020 2020 2020 ent\">// \n+00036da0: 636f 6d6d 756e 6963 6174 696f 6e2e 3c2f communication.
    .<\n+00036df0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00036e00: 6e6f 223e 2031 3438 333c 2f73 7061 6e3e no\"> 1483\n+00036e10: 2020 2020 3c73 7061 6e20 636c 6173 733d //
    .
    1484 \n+00036e90: 2020 3c73 7061 6e20 636c 6173 733d 2263 // 4.\n+00036eb0: 3229 2044 6570 656e 6473 206f 6e20 7468 2) Depends on th\n+00036ec0: 6520 2671 756f 743b 7365 6e64 2074 6f26 e "send to&\n+00036ed0: 7175 6f74 3b20 616e 6420 2671 756f 743b quot; and "\n+00036ee0: 7265 6365 6976 6520 6672 6f6d 2671 756f receive from&quo\n+00036ef0: 743b 2076 6563 746f 722c 3c2f 7370 616e t; vector,
    .
    \n+00036f50: 2031 3438 353c 2f73 7061 6e3e 2020 2020 1485 \n+00036f60: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // \n+00036f80: 2074 6865 2070 726f 6365 7373 6573 2077 the processes w\n+00036f90: 696c 6c20 6578 6368 616e 6765 2074 6865 ill exchange the\n+00036fa0: 2076 6572 7469 6365 7320 6561 6368 206f vertices each o\n+00036fb0: 7468 6572 3c2f 7370 616e 3e3c 2f64 6976 ther.
    1486<\n+00037010: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> \n+00037030: 2f2f 3c2f 7370 616e 3e3c 2f64 6976 3e0a //
    .\n+00037040: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    1488 \n+00037150: 203c 7370 616e 2063 6c61 7373 3d22 636f // \n+00037170: 2020 636f 6d6d 756e 6963 6174 6f72 3c2f communicator
    .<\n+000371c0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+000371d0: 6e6f 223e 2031 3438 393c 2f73 7061 6e3e no\"> 1489\n+000371e0: 2020 2020 3c73 7061 6e20 636c 6173 733d //
    .
    1490 <\n+00037260: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+000372b0: 3439 313c 2f73 7061 6e3e 2020 2020 3c73 491 //.
    149\n+00037330: 323c 2f73 7061 6e3e 2020 2020 3c73 7061 2 // 4.1) Let\n+00037360: 393b 7320 7374 6172 742e 2e2e 3c2f 7370 9;s start...
    .
    1493 \n+000373d0: 2020 3c73 7061 6e20 636c 6173 733d 2263 //
    .
    \n+00037440: 2031 3439 343c 2f73 7061 6e3e 2020 2020 1494 \n+00037450: 3c73 7061 6e20 636c 6173 733d 226b 6579 int npes = ooco\n+00037480: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+000374e0: 3c2f 613e 2829 2e73 697a 6528 293b 3c2f ().size();.
    14\n+00037540: 3935 3c2f 7370 616e 3e20 2020 203c 7370 95 int *sendTo = 0;.
    14\n+000375d0: 3936 3c2f 7370 616e 3e20 2020 203c 7370 96 int noSendTo = 0;<\n+00037610: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00037660: 3439 373c 2f73 7061 6e3e 2020 2020 7374 497 st\n+00037670: 643a 3a73 6574 266c 743b 696e 7426 6774 d::set<int>\n+00037680: 3b20 7265 6376 4672 6f6d 3b3c 2f64 6976 ; recvFrom;.
    1498<\n+000376e0: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+00037700: 3c61 2069 643d 226c 3031 3439 3922 206e 1499 // t\n+00037760: 6865 206d 6178 206e 756d 6265 7220 6f66 he max number of\n+00037770: 2076 6572 7469 6365 7320 6973 2073 746f vertices is sto\n+00037780: 7265 6420 696e 2074 6865 2073 656e 6454 red in the sendT\n+00037790: 6f20 6275 6666 6572 2c3c 2f73 7061 6e3e o buffer,\n+000377a0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000377f0: 3135 3030 3c2f 7370 616e 3e20 2020 203c 1500 <\n+00037800: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+00037810: 656e 7422 3e2f 2f20 6e6f 7420 7468 6520 ent\">// not the \n+00037820: 6e75 6d62 6572 206f 6620 7665 7274 6963 number of vertic\n+00037830: 6573 2074 6f20 7365 6e64 2120 4265 6361 es to send! Beca\n+00037840: 7573 6520 7468 6520 6d61 7820 6e75 6d62 use the max numb\n+00037850: 6572 206f 6620 5674 783c 2f73 7061 6e3e er of Vtx\n+00037860: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000378b0: 3135 3031 3c2f 7370 616e 3e20 2020 203c 1501 <\n+000378c0: 7370 616e 2063 6c61 7373 3d22 636f 6d6d span class=\"comm\n+000378d0: 656e 7422 3e2f 2f20 6973 2075 7365 6420 ent\">// is used \n+000378e0: 6173 2074 6865 2066 6978 6564 2062 7566 as the fixed buf\n+000378f0: 6665 7220 7369 7a65 2062 7920 7468 6520 fer size by the \n+00037900: 4d50 4920 7365 6e64 2f72 6563 6569 7665 MPI send/receive\n+00037910: 2063 616c 6c73 3c2f 7370 616e 3e3c 2f64 calls.
    150\n+00037970: 323c 2f73 7061 6e3e 203c 2f64 6976 3e0a 2
    .\n+00037980: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00037a90: 6120 6964 3d22 6c30 3135 3034 2220 6e61 a id=\"l01504\" na\n+00037aa0: 6d65 3d22 6c30 3135 3034 223e 3c2f 613e me=\"l01504\">\n+00037ab0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1504
    .
    1505 \n+00037b30: 207b 3c2f 6469 763e 0a3c 6469 7620 636c {
    .
    1506 \n+00037b90: 2020 2073 7464 3a3a 7365 7426 6c74 3b69 std::set<i\n+00037ba0: 6e74 2667 743b 2074 7365 6e64 546f 3b3c nt> tsendTo;<\n+00037bb0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00037c00: 3530 373c 2f73 7061 6e3e 2020 2020 2020 507 \n+00037c10: 3c73 7061 6e20 636c 6173 733d 226b 6579 for(auto<\n+00037c50: 2f73 7061 6e3e 2069 3d73 6574 5061 7274 /span> i=setPart\n+00037c60: 6974 696f 6e2e 6265 6769 6e28 292c 2069 ition.begin(), i\n+00037c70: 656e 6420 3d20 7365 7450 6172 7469 7469 end = setPartiti\n+00037c80: 6f6e 2e65 6e64 2829 3b20 6921 3d69 656e on.end(); i!=ien\n+00037c90: 643b 202b 2b69 293c 2f64 6976 3e0a 3c64 d; ++i)
    .\n+00037cb0: 3c61 2069 643d 226c 3031 3530 3822 206e 1508 tsendT\n+00037d00: 6f2e 696e 7365 7274 282a 6929 3b3c 2f64 o.insert(*i);.
    150\n+00037d60: 393c 2f73 7061 6e3e 203c 2f64 6976 3e0a 9
    .\n+00037d70: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    1511 \n+00037e40: 2020 2020 2073 656e 6454 6f20 3d20 3c73 sendTo = new <\n+00037e70: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00037e80: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int[noSendTo];.
    15\n+00037ef0: 3132 3c2f 7370 616e 3e20 2020 2020 203c 12 <\n+00037f00: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00037f10: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int idx=0;
    \n+00037f30: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00037f60: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1513 for(\n+00037fb0: 3c73 7061 6e20 636c 6173 733d 226b 6579 auto i=tsendTo.begi\n+00037fe0: 6e28 293b 2069 2021 3d20 7473 656e 6454 n(); i != tsendT\n+00037ff0: 6f2e 656e 6428 293b 202b 2b69 2c20 2b2b o.end(); ++i, ++\n+00038000: 6964 7829 3c2f 6469 763e 0a3c 6469 7620 idx)
    .
    1514 \n+00038060: 2020 2020 2020 2073 656e 6454 6f5b 6964 sendTo[id\n+00038070: 785d 3d2a 693b 3c2f 6469 763e 0a3c 6469 x]=*i;
    .<\n+00038090: 6120 6964 3d22 6c30 3135 3135 2220 6e61 a id=\"l01515\" na\n+000380a0: 6d65 3d22 6c30 3135 3135 223e 3c2f 613e me=\"l01515\">\n+000380b0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1515 }
    .<\n+000380f0: 6120 6964 3d22 6c30 3135 3136 2220 6e61 a id=\"l01516\" na\n+00038100: 6d65 3d22 6c30 3135 3136 223e 3c2f 613e me=\"l01516\">\n+00038110: 3c73 7061 6e20 636c 6173 733d 226c 696e 1516
    .
    1517 \n+00038190: 203c 7370 616e 2063 6c61 7373 3d22 636f //\n+000381b0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00038200: 3135 3138 3c2f 7370 616e 3e20 2020 203c 1518 <\n+00038210: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00038220: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int* gnoSend= new <\n+00038260: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00038270: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int[oocomm.comm\n+000382e0: 756e 6963 6174 6f72 3c2f 613e 2829 2e73 unicator().s\n+000382f0: 697a 6528 295d 3b3c 2f64 6976 3e0a 3c64 ize()];
    .\n+00038310: 3c61 2069 643d 226c 3031 3531 3922 206e 1519 \n+00038370: 696e 743c 2f73 7061 6e3e 2a20 6773 656e int* gsen\n+00038380: 6454 6f44 6973 706c 203d 2020 3c73 7061 dToDispl = new int[oocomm.commun\n+00038430: 6963 6174 6f72 3c2f 613e 2829 2e73 697a icator().siz\n+00038440: 6528 292b 315d 3b3c 2f64 6976 3e0a 3c64 e()+1];
    .\n+00038460: 3c61 2069 643d 226c 3031 3532 3022 206e 1520
    .
    1521 \n+00038500: 2020 4d50 495f 416c 6c67 6174 6865 7228 MPI_Allgather(\n+00038510: 2661 6d70 3b6e 6f53 656e 6454 6f2c 2031 &noSendTo, 1\n+00038520: 2c20 4d50 495f 494e 542c 2067 6e6f 5365 , MPI_INT, gnoSe\n+00038530: 6e64 2c20 312c 3c2f 6469 763e 0a3c 6469 nd, 1,
    .<\n+00038550: 6120 6964 3d22 6c30 3135 3232 2220 6e61 a id=\"l01522\" na\n+00038560: 6d65 3d22 6c30 3135 3232 223e 3c2f 613e me=\"l01522\">\n+00038570: 3c73 7061 6e20 636c 6173 733d 226c 696e 1522 \n+000385a0: 2020 204d 5049 5f49 4e54 2c20 6f6f 636f MPI_INT, ooco\n+000385b0: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+00038610: 3c2f 613e 2829 293b 3c2f 6469 763e 0a3c ());
    .<\n+00038620: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00038630: 3e3c 6120 6964 3d22 6c30 3135 3233 2220 > 1523
    .
    1524 \n+000386d0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // calc\n+000386f0: 756c 6174 6520 746f 7461 6c20 7265 6365 ulate total rece\n+00038700: 6976 6520 6d65 7373 6167 6520 7369 7a65 ive message size\n+00038710: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+00038730: 3c61 2069 643d 226c 3031 3532 3522 206e 1525 \n+00038790: 696e 743c 2f73 7061 6e3e 2074 6f74 616c int total\n+000387a0: 4e6f 5265 6376 203d 2030 3b3c 2f64 6976 NoRecv = 0;.
    1526<\n+00038800: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> for(<\n+00038830: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00038840: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int i=0; i<np\n+00038860: 6573 3b20 2b2b 6929 3c2f 6469 763e 0a3c es; ++i)
    .<\n+00038870: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00038880: 3e3c 6120 6964 3d22 6c30 3135 3237 2220 > 1527 totalNo\n+000388d0: 5265 6376 202b 3d20 676e 6f53 656e 645b Recv += gnoSend[\n+000388e0: 695d 3b3c 2f64 6976 3e0a 3c64 6976 2063 i];
    .
    1528 <\n+00038940: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00038990: 3532 393c 2f73 7061 6e3e 2020 2020 3c73 529 int *gsendTo = new <\n+000389f0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00038a00: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int[totalNoRecv]\n+00038a20: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00038a70: 2031 3533 303c 2f73 7061 6e3e 203c 2f64 1530 .
    153\n+00038ad0: 313c 2f73 7061 6e3e 2020 2020 3c73 7061 1 // calculate d\n+00038b00: 6973 706c 6163 656d 656e 7420 666f 7220 isplacement for \n+00038b10: 616c 6c67 6174 6865 7276 3c2f 7370 616e allgatherv
    .
    \n+00038b70: 2031 3533 323c 2f73 7061 6e3e 2020 2020 1532 \n+00038b80: 6773 656e 6454 6f44 6973 706c 5b30 5d3d gsendToDispl[0]=\n+00038b90: 303b 3c2f 6469 763e 0a3c 6469 7620 636c 0;
    .
    1533 \n+00038bf0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 for(\n+00038c30: 696e 743c 2f73 7061 6e3e 2069 3d30 3b20 int i=0; \n+00038c40: 6926 6c74 3b6e 7065 733b 202b 2b69 293c i<npes; ++i)<\n+00038c50: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00038ca0: 3533 343c 2f73 7061 6e3e 2020 2020 2020 534 \n+00038cb0: 6773 656e 6454 6f44 6973 706c 5b69 2b31 gsendToDispl[i+1\n+00038cc0: 5d3d 6773 656e 6454 6f44 6973 706c 5b69 ]=gsendToDispl[i\n+00038cd0: 5d2b 676e 6f53 656e 645b 695d 3b3c 2f64 ]+gnoSend[i];.
    153\n+00038d30: 353c 2f73 7061 6e3e 203c 2f64 6976 3e0a 5
    .\n+00038d40: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+00038de0: 3c61 2069 643d 226c 3031 3533 3722 206e 1537 MPI_Allgat\n+00038e30: 6865 7276 2873 656e 6454 6f2c 206e 6f53 herv(sendTo, noS\n+00038e40: 656e 6454 6f2c 204d 5049 5f49 4e54 2c20 endTo, MPI_INT, \n+00038e50: 6773 656e 6454 6f2c 2067 6e6f 5365 6e64 gsendTo, gnoSend\n+00038e60: 2c20 6773 656e 6454 6f44 6973 706c 2c3c , gsendToDispl,<\n+00038e70: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00038ec0: 3533 383c 2f73 7061 6e3e 2020 2020 2020 538 \n+00038ed0: 2020 2020 2020 2020 2020 2020 204d 5049 MPI\n+00038ee0: 5f49 4e54 2c20 6f6f 636f 6d6d 2e3c 6120 _INT, oocomm.co\n+00038f40: 6d6d 756e 6963 6174 6f72 3c2f 613e 2829 mmunicator()\n+00038f50: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    1539 .
    15\n+00039000: 3430 3c2f 7370 616e 3e20 2020 203c 7370 40 // Extract fr\n+00039030: 6f6d 2077 6869 6368 2070 726f 6365 7373 om which process\n+00039040: 6573 2077 6520 7769 6c6c 2072 6563 6569 es we will recei\n+00039050: 7665 2064 6174 613c 2f73 7061 6e3e 3c2f ve data.
    15\n+000390b0: 3431 3c2f 7370 616e 3e20 2020 203c 7370 41 for(int<\n+00039100: 2f73 7061 6e3e 2070 726f 633d 303b 2070 /span> proc=0; p\n+00039110: 726f 6320 266c 743b 206e 7065 733b 202b roc < npes; +\n+00039120: 2b70 726f 6329 3c2f 6469 763e 0a3c 6469 +proc)
    .<\n+00039140: 6120 6964 3d22 6c30 3135 3432 2220 6e61 a id=\"l01542\" na\n+00039150: 6d65 3d22 6c30 3135 3432 223e 3c2f 613e me=\"l01542\">\n+00039160: 3c73 7061 6e20 636c 6173 733d 226c 696e 1542 for(int\n+000391d0: 2069 3d67 7365 6e64 546f 4469 7370 6c5b i=gsendToDispl[\n+000391e0: 7072 6f63 5d3b 2069 2026 6c74 3b20 6773 proc]; i < gs\n+000391f0: 656e 6454 6f44 6973 706c 5b70 726f 632b endToDispl[proc+\n+00039200: 315d 3b20 2b2b 6929 3c2f 6469 763e 0a3c 1]; ++i)
    .<\n+00039210: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00039220: 3e3c 6120 6964 3d22 6c30 3135 3433 2220 > 1543 if(g\n+00039290: 7365 6e64 546f 5b69 5d3d 3d6d 7970 6529 sendTo[i]==mype)\n+000392a0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000392f0: 3135 3434 3c2f 7370 616e 3e20 2020 2020 1544 \n+00039300: 2020 2020 2072 6563 7646 726f 6d2e 696e recvFrom.in\n+00039310: 7365 7274 2870 726f 6329 3b3c 2f64 6976 sert(proc);.
    1545<\n+00039370: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+00039390: 3c61 2069 643d 226c 3031 3534 3622 206e 1546 \n+000393f0: 626f 6f6c 3c2f 7370 616e 3e20 6578 6973 bool exis\n+00039400: 7465 6e74 4f6e 4e65 7874 4c65 7665 6c20 tentOnNextLevel \n+00039410: 3d20 7265 6376 4672 6f6d 2e73 697a 6528 = recvFrom.size(\n+00039420: 2926 6774 3b30 3b3c 2f64 6976 3e0a 3c64 )>0;
    .\n+00039440: 3c61 2069 643d 226c 3031 3534 3722 206e 1547
    .
    1548 \n+000394e0: 2020 3c73 7061 6e20 636c 6173 733d 2263 // Delet\n+00039500: 6520 6d65 6d6f 7279 3c2f 7370 616e 3e3c e memory<\n+00039510: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00039560: 3534 393c 2f73 7061 6e3e 2020 2020 3c73 549 delete[] gnoSend;.
    1550\n+000395f0: 3c2f 7370 616e 3e20 2020 203c 7370 616e delete[]\n+00039620: 2067 7365 6e64 546f 4469 7370 6c3b 3c2f gsendToDispl;.
    15\n+00039680: 3531 3c2f 7370 616e 3e20 2020 203c 7370 51 delete\n+000396b0: 5b5d 2067 7365 6e64 546f 3b3c 2f64 6976 [] gsendTo;.
    1552<\n+00039710: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+00039730: 3c61 2069 643d 226c 3031 3535 3322 206e 1553
    .
    1554#ifdef \n+000397f0: 4445 4255 475f 5245 5041 5254 3c2f 7370 DEBUG_REPART
    .
    1555 \n+00039860: 2020 3c73 7061 6e20 636c 6173 733d 226b if(recvFrom.s\n+00039890: 697a 6528 2929 207b 3c2f 6469 763e 0a3c ize()) {
    .<\n+000398a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000398b0: 3e3c 6120 6964 3d22 6c30 3135 3536 2220 > 1556 std::co\n+00039900: 7574 266c 743b 266c 743b 6d79 7065 266c ut<<mype&l\n+00039910: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<": recvFr\n+00039940: 6f6d 3a20 2671 756f 743b 3c2f 7370 616e om: ";
    .
    1557 \n+000399b0: 2020 203c 7370 616e 2063 6c61 7373 3d22 for\n+000399d0: 3c2f 7370 616e 3e28 3c73 7061 6e20 636c (au\n+000399f0: 746f 3c2f 7370 616e 3e20 693d 7265 6376 to i=recv\n+00039a00: 4672 6f6d 2e62 6567 696e 2829 3b20 6921 From.begin(); i!\n+00039a10: 3d20 7265 6376 4672 6f6d 2e65 6e64 2829 = recvFrom.end()\n+00039a20: 3b20 2b2b 6929 207b 3c2f 6469 763e 0a3c ; ++i) {
    .<\n+00039a30: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00039a40: 3e3c 6120 6964 3d22 6c30 3135 3538 2220 > 1558 std::\n+00039a90: 636f 7574 266c 743b 266c 743b 2a69 266c cout<<*i&l\n+00039aa0: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<" "<\n+00039ad0: 2f73 7061 6e3e 3b3c 2f64 6976 3e0a 3c64 /span>;
    .\n+00039af0: 3c61 2069 643d 226c 3031 3535 3922 206e 1559 }
    .\n+00039b40: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+00039ba0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00039c30: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00039c40: 6e6f 223e 2031 3536 323c 2f73 7061 6e3e no\"> 1562
    \n+00039c50: 2020 2020 7374 643a 3a63 6f75 7426 6c74 std::cout<\n+00039c60: 3b26 6c74 3b73 7464 3a3a 656e 646c 266c ;<std::endl&l\n+00039c70: 743b 266c 743b 7374 643a 3a65 6e64 6c3b t;<std::endl;\n+00039c80: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00039cd0: 3135 3633 3c2f 7370 616e 3e20 2020 2073 1563 s\n+00039ce0: 7464 3a3a 636f 7574 266c 743b 266c 743b td::cout<<\n+00039cf0: 6d79 7065 266c 743b 266c 743b 3c73 7061 mype<<": \n+00039d20: 7365 6e64 546f 3a20 2671 756f 743b 3c2f sendTo: ";
    .<\n+00039d50: 6120 6964 3d22 6c30 3135 3634 2220 6e61 a id=\"l01564\" na\n+00039d60: 6d65 3d22 6c30 3135 3634 223e 3c2f 613e me=\"l01564\">\n+00039d70: 3c73 7061 6e20 636c 6173 733d 226c 696e 1564 f\n+00039db0: 6f72 3c2f 7370 616e 3e28 3c73 7061 6e20 or(int i\n+00039de0: 3d30 3b20 6926 6c74 3b6e 6f53 656e 6454 =0; i<noSendT\n+00039df0: 6f3b 2069 2b2b 2920 7b3c 2f64 6976 3e0a o; i++) {
    .\n+00039e00: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00039e30: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1565 std::c\n+00039e60: 6f75 7426 6c74 3b26 6c74 3b73 656e 6454 out<<sendT\n+00039e70: 6f5b 695d 266c 743b 266c 743b 3c73 7061 o[i]<<" &\n+00039ea0: 7175 6f74 3b3c 2f73 7061 6e3e 3b3c 2f64 quot;;.
    156\n+00039f00: 363c 2f73 7061 6e3e 2020 2020 7d3c 2f64 6 }.
    156\n+00039f60: 373c 2f73 7061 6e3e 2020 2020 7374 643a 7 std:\n+00039f70: 3a63 6f75 7426 6c74 3b26 6c74 3b73 7464 :cout<<std\n+00039f80: 3a3a 656e 646c 266c 743b 266c 743b 7374 ::endl<<st\n+00039f90: 643a 3a65 6e64 6c3b 3c2f 6469 763e 0a3c d::endl;
    .<\n+00039fa0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00039fb0: 3e3c 6120 6964 3d22 6c30 3135 3638 2220 > 1568#e\n+0003a010: 6e64 6966 3c2f 7370 616e 3e3c 2f64 6976 ndif.
    1569<\n+0003a070: 2f73 7061 6e3e 203c 2f64 6976 3e0a 3c64 /span>
    .\n+0003a090: 3c61 2069 643d 226c 3031 3537 3022 206e 1570 \n+0003a0f0: 6966 3c2f 7370 616e 3e28 7665 7262 6f73 if(verbos\n+0003a100: 6529 3c2f 6469 763e 0a3c 6469 7620 636c e)
    .
    1571 \n+0003a160: 2020 203c 7370 616e 2063 6c61 7373 3d22 if<\n+0003a180: 2f73 7061 6e3e 286f 6f63 6f6d 6d2e 3c61 /span>(oocomm.c\n+0003a1e0: 6f6d 6d75 6e69 6361 746f 723c 2f61 3e28 ommunicator(\n+0003a1f0: 292e 7261 6e6b 2829 3d3d 3029 3c2f 6469 ).rank()==0).
    1572\n+0003a250: 3c2f 7370 616e 3e20 2020 2020 2020 2073 s\n+0003a260: 7464 3a3a 636f 7574 266c 743b 266c 743b td::cout<<\n+0003a270: 3c73 7061 6e20 636c 6173 733d 2273 7472 &quo\n+0003a290: 743b 2043 6f6d 6d75 6e69 6361 7469 6e67 t; Communicating\n+0003a2a0: 2074 6865 2072 6563 6569 7665 2069 6e66 the receive inf\n+0003a2b0: 6f72 6d61 7469 6f6e 2074 6f6f 6b20 2671 ormation took &q\n+0003a2c0: 756f 743b 3c2f 7370 616e 3e26 6c74 3b26 uot;<&\n+0003a2d0: 6c74 3b3c 2f64 6976 3e0a 3c64 6976 2063 lt;
    .
    1573 \n+0003a330: 2020 2020 2020 7469 6d65 2e65 6c61 7073 time.elaps\n+0003a340: 6564 2829 266c 743b 266c 743b 7374 643a ed()<<std:\n+0003a350: 3a65 6e64 6c3b 3c2f 6469 763e 0a3c 6469 :endl;
    .<\n+0003a370: 6120 6964 3d22 6c30 3135 3734 2220 6e61 a id=\"l01574\" na\n+0003a380: 6d65 3d22 6c30 3135 3734 223e 3c2f 613e me=\"l01574\">\n+0003a390: 3c73 7061 6e20 636c 6173 733d 226c 696e 1574 time.reset(\n+0003a3c0: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    1575 .
    15\n+0003a470: 3736 3c2f 7370 616e 3e20 2020 203c 7370 76 //.
    1577\n+0003a4f0: 3c2f 7370 616e 3e20 2020 203c 7370 616e // 4.2) Start t\n+0003a520: 6865 2063 6f6d 6d75 6e69 6361 7469 6f6e he communication\n+0003a530: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+0003a550: 3c61 2069 643d 226c 3031 3537 3822 206e 1578 //
    .<\n+0003a5f0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0003a600: 6e6f 223e 2031 3537 393c 2f73 7061 6e3e no\"> 1579\n+0003a610: 203c 2f64 6976 3e0a 3c64 6976 2063 6c61
    .
    \n+0003a660: 2031 3538 303c 2f73 7061 6e3e 2020 2020 1580 \n+0003a670: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // Get all\n+0003a690: 2074 6865 206f 776e 6572 2061 6e64 206f the owner and o\n+0003a6a0: 7665 726c 6170 2076 6572 7469 6365 7320 verlap vertices \n+0003a6b0: 666f 7220 6d79 7365 6c66 2061 6e73 2073 for myself ans s\n+0003a6c0: 6176 653c 2f73 7061 6e3e 3c2f 6469 763e ave
    \n+0003a6d0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003a700: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1581 /\n+0003a740: 2f20 6974 2069 6e20 7468 6520 7665 6374 / it in the vect\n+0003a750: 6f72 7320 6d79 4f77 6e65 7256 6563 2061 ors myOwnerVec a\n+0003a760: 6e64 206d 794f 7665 726c 6170 5665 632e nd myOverlapVec.\n+0003a770: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+0003a790: 3c61 2069 643d 226c 3031 3538 3222 206e 1582 // T\n+0003a7f0: 6865 2072 6563 6569 7665 6420 7665 7274 he received vert\n+0003a800: 6963 6573 2066 726f 6d20 7468 6520 6f74 ices from the ot\n+0003a810: 6865 7220 7072 6f63 6573 7365 7320 6172 her processes ar\n+0003a820: 6520 7369 6d70 6c65 3c2f 7370 616e 3e3c e simple<\n+0003a830: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003a880: 3538 333c 2f73 7061 6e3e 2020 2020 3c73 583 // added to \n+0003a8b0: 7468 6573 6520 7665 6374 6f72 2e3c 2f73 these vector.
    .
    1584 \n+0003a920: 2020 203c 7370 616e 2063 6c61 7373 3d22 //
    .
    1585 .
    15\n+0003a9f0: 3836 3c2f 7370 616e 3e20 3c2f 6469 763e 86
    \n+0003aa00: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003aa30: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1587 t\n+0003aa70: 7970 6564 6566 3c2f 7370 616e 3e20 3c73 ypedef typename OOComm::Para\n+0003aab0: 6c6c 656c 496e 6465 7853 6574 3a3a 476c llelIndexSet::Gl\n+0003aac0: 6f62 616c 496e 6465 7820 4749 3b3c 2f64 obalIndex GI;.
    158\n+0003ab20: 383c 2f73 7061 6e3e 2020 2020 3c73 7061 8 typedef\n+0003ab50: 2073 7464 3a3a 7665 6374 6f72 266c 743b std::vector<\n+0003ab60: 4749 2667 743b 2047 6c6f 6261 6c56 6563 GI> GlobalVec\n+0003ab70: 746f 723b 3c2f 6469 763e 0a3c 6469 7620 tor;
    .
    1589 \n+0003abd0: 2020 2073 7464 3a3a 7665 6374 6f72 266c std::vector&l\n+0003abe0: 743b 7374 643a 3a70 6169 7226 6c74 3b47 t;std::pair<G\n+0003abf0: 492c 696e 7426 6774 3b20 2667 743b 206d I,int> > m\n+0003ac00: 794f 776e 6572 5665 633b 3c2f 6469 763e yOwnerVec;
    \n+0003ac10: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003ac40: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1590 std::se\n+0003ac70: 7426 6c74 3b47 4926 6774 3b20 6d79 4f76 t<GI> myOv\n+0003ac80: 6572 6c61 7053 6574 3b3c 2f64 6976 3e0a erlapSet;
    .\n+0003ac90: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    1592 \n+0003ad60: 2073 7464 3a3a 7365 7426 6c74 3b47 4926 std::set<GI&\n+0003ad70: 6774 3b20 7365 6e64 4f76 6572 6c61 7053 gt; sendOverlapS\n+0003ad80: 6574 3b3c 2f64 6976 3e0a 3c64 6976 2063 et;
    .
    1593 \n+0003ade0: 2020 7374 643a 3a73 6574 266c 743b 696e std::set<in\n+0003adf0: 7426 6774 3b20 6d79 4e65 6967 6862 6f72 t> myNeighbor\n+0003ae00: 733b 3c2f 6469 763e 0a3c 6469 7620 636c s;
    .
    1594 .
    15\n+0003aeb0: 3935 3c2f 7370 616e 3e20 2020 203c 7370 95 // getOwne\n+0003aee0: 724f 7665 726c 6170 5665 6326 6c74 3b4f rOverlapVec<O\n+0003aef0: 776e 6572 5365 7426 6774 3b28 6772 6170 wnerSet>(grap\n+0003af00: 682c 2073 6574 5061 7274 6974 696f 6e2c h, setPartition,\n+0003af10: 206f 6f63 6f6d 6d2e 676c 6f62 616c 4c6f oocomm.globalLo\n+0003af20: 6f6b 7570 2829 2c3c 2f73 7061 6e3e 3c2f okup(),.
    15\n+0003af80: 3936 3c2f 7370 616e 3e20 2020 203c 7370 96 // \n+0003afb0: 2020 2020 6d79 7065 2c20 6d79 7065 2c20 mype, mype, \n+0003afc0: 6d79 4f77 6e65 7256 6563 2c20 6d79 4f76 myOwnerVec, myOv\n+0003afd0: 6572 6c61 7053 6574 2c20 7265 6469 7374 erlapSet, redist\n+0003afe0: 496e 662c 206d 794e 6569 6768 626f 7273 Inf, myNeighbors\n+0003aff0: 293b 3c2f 7370 616e 3e3c 2f64 6976 3e0a );
    .\n+0003b000: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0003b090: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0003b0a0: 6e6f 223e 2031 3539 383c 2f73 7061 6e3e no\"> 1598\n+0003b0b0: 2020 2020 3c73 7061 6e20 636c 6173 733d ch\n+0003b0d0: 6172 3c2f 7370 616e 3e20 2a2a 7365 6e64 ar **send\n+0003b0e0: 4275 6666 6572 733d 3c73 7061 6e20 636c Buffers=ne\n+0003b100: 773c 2f73 7061 6e3e 203c 7370 616e 2063 w char*[\n+0003b130: 6e6f 5365 6e64 546f 5d3b 3c2f 6469 763e noSendTo];
    \n+0003b140: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003b170: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1599 MPI_Req\n+0003b1a0: 7565 7374 202a 7265 7175 6573 7473 203d uest *requests =\n+0003b1b0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 new MPI_Request[no\n+0003b1e0: 5365 6e64 546f 5d3b 3c2f 6469 763e 0a3c SendTo];
    .<\n+0003b1f0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0003b200: 3e3c 6120 6964 3d22 6c30 3136 3030 2220 > 1600
    .
    1601 \n+0003b2a0: 2020 203c 7370 616e 2063 6c61 7373 3d22 // Crea\n+0003b2c0: 7465 2061 6c6c 206d 6573 7361 6765 7320 te all messages \n+0003b2d0: 746f 2062 6520 7365 6e74 3c2f 7370 616e to be sent
    .
    \n+0003b330: 2031 3630 323c 2f73 7061 6e3e 2020 2020 1602 \n+0003b340: 3c73 7061 6e20 636c 6173 733d 226b 6579 for(i\n+0003b380: 6e74 3c2f 7370 616e 3e20 693d 303b 2069 nt i=0; i\n+0003b390: 2026 6c74 3b20 6e6f 5365 6e64 546f 3b20 < noSendTo; \n+0003b3a0: 2b2b 6929 207b 3c2f 6469 763e 0a3c 6469 ++i) {
    .<\n+0003b3c0: 6120 6964 3d22 6c30 3136 3033 2220 6e61 a id=\"l01603\" na\n+0003b3d0: 6d65 3d22 6c30 3136 3033 223e 3c2f 613e me=\"l01603\">\n+0003b3e0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1603 // \n+0003b420: 636c 6561 7220 7468 6520 7665 6374 6f72 clear the vector\n+0003b430: 2066 6f72 2073 656e 6469 6e67 3c2f 7370 for sending
    .
    1604 \n+0003b4a0: 2020 2020 7365 6e64 4f77 6e65 7256 6563 sendOwnerVec\n+0003b4b0: 2e63 6c65 6172 2829 3b3c 2f64 6976 3e0a .clear();
    .\n+0003b4c0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    \n+0003b580: 2031 3630 363c 2f73 7061 6e3e 2020 2020 1606 \n+0003b590: 2020 3c73 7061 6e20 636c 6173 733d 2263 // get a\n+0003b5b0: 6c6c 206f 776e 6572 2061 6e64 206f 7665 ll owner and ove\n+0003b5c0: 726c 6170 2076 6572 7469 6365 7320 666f rlap vertices fo\n+0003b5d0: 7220 7072 6f63 6573 7320 6a20 616e 6420 r process j and \n+0003b5e0: 7361 7665 2074 6865 7365 3c2f 7370 616e save these
    .
    \n+0003b640: 2031 3630 373c 2f73 7061 6e3e 2020 2020 1607 \n+0003b650: 2020 3c73 7061 6e20 636c 6173 733d 2263 // in th\n+0003b670: 6520 7665 6374 6f72 7320 7365 6e64 4f77 e vectors sendOw\n+0003b680: 6e65 7256 6563 2061 6e64 2073 656e 644f nerVec and sendO\n+0003b690: 7665 726c 6170 5365 743c 2f73 7061 6e3e verlapSet\n+0003b6a0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0003b6f0: 3136 3038 3c2f 7370 616e 3e20 2020 2020 1608 \n+0003b700: 2073 7464 3a3a 7365 7426 6c74 3b69 6e74 std::set<int\n+0003b710: 2667 743b 206e 6569 6768 626f 7273 3b3c > neighbors;<\n+0003b720: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003b770: 3630 393c 2f73 7061 6e3e 2020 2020 2020 609 \n+0003b780: 6765 744f 776e 6572 4f76 6572 6c61 7056 getOwnerOverlapV\n+0003b790: 6563 266c 743b 4f77 6e65 7253 6574 2667 ec<OwnerSet&g\n+0003b7a0: 743b 2867 7261 7068 2c20 7365 7450 6172 t;(graph, setPar\n+0003b7b0: 7469 7469 6f6e 2c20 6f6f 636f 6d6d 2e3c tition, oocomm.<\n+0003b7c0: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+0003b7d0: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n+0003b7e0: 2261 3031 3938 342e 6874 6d6c 2361 3031 \"a01984.html#a01\n+0003b7f0: 6435 3034 6435 6264 3165 6161 3365 3536 d504d5bd1eaa3e56\n+0003b800: 6561 3632 3063 6265 3463 6230 3534 223e ea620cbe4cb054\">\n+0003b810: 676c 6f62 616c 4c6f 6f6b 7570 3c2f 613e globalLookup\n+0003b820: 2829 2c3c 2f64 6976 3e0a 3c64 6976 2063 (),
    .
    1610 \n+0003b880: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0003b890: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0003b8a0: 206d 7970 652c 2073 656e 6454 6f5b 695d mype, sendTo[i]\n+0003b8b0: 2c20 7365 6e64 4f77 6e65 7256 6563 2c20 , sendOwnerVec, \n+0003b8c0: 7365 6e64 4f76 6572 6c61 7053 6574 2c20 sendOverlapSet, \n+0003b8d0: 7265 6469 7374 496e 662c 3c2f 6469 763e redistInf,
    \n+0003b8e0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003b910: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1611 \n+0003b940: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0003b950: 2020 2020 2020 2020 6e65 6967 6862 6f72 neighbor\n+0003b960: 7329 3b3c 2f64 6976 3e0a 3c64 6976 2063 s);
    .
    1612 \n+0003b9c0: 2020 2020 3c73 7061 6e20 636c 6173 733d // +2,\n+0003b9e0: 2077 6520 6e65 6564 2032 2069 6e74 6567 we need 2 integ\n+0003b9f0: 6572 206d 6f72 6520 666f 7220 7468 6520 er more for the \n+0003ba00: 6c65 6e67 7468 206f 6620 6561 6368 2070 length of each p\n+0003ba10: 6172 743c 2f73 7061 6e3e 3c2f 6469 763e art
    \n+0003ba20: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003ba50: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1613 // (owner/overl\n+0003baa0: 6170 2920 6f66 2074 6865 2061 7272 6179 ap) of the array\n+0003bab0: 3c2f 7370 616e 3e3c 2f64 6976 3e0a 3c64
    .\n+0003bad0: 3c61 2069 643d 226c 3031 3631 3422 206e 1614 int buf\n+0003bb40: 6665 7273 697a 653d 303b 3c2f 6469 763e fersize=0;
    \n+0003bb50: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003bb80: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1615 int \n+0003bbd0: 7473 697a 653b 3c2f 6469 763e 0a3c 6469 tsize;
    .<\n+0003bbf0: 6120 6964 3d22 6c30 3136 3136 2220 6e61 a id=\"l01616\" na\n+0003bc00: 6d65 3d22 6c30 3136 3136 223e 3c2f 613e me=\"l01616\">\n+0003bc10: 3c73 7061 6e20 636c 6173 733d 226c 696e 1616 MPI_Pack_\n+0003bc40: 7369 7a65 2831 2c20 4d50 4954 7261 6974 size(1, MPITrait\n+0003bc50: 7326 6c74 3b73 7464 3a3a 7369 7a65 5f74 s<std::size_t\n+0003bc60: 2667 743b 3a3a 6765 7454 7970 6528 292c >::getType(),\n+0003bc70: 206f 6f63 6f6d 6d2e 3c61 2063 6c61 7373 oocomm.communi\n+0003bcd0: 6361 746f 723c 2f61 3e28 292c 2026 616d cator(), &am\n+0003bce0: 703b 6275 6666 6572 7369 7a65 293b 3c2f p;buffersize);.
    16\n+0003bd40: 3137 3c2f 7370 616e 3e20 2020 2020 204d 17 M\n+0003bd50: 5049 5f50 6163 6b5f 7369 7a65 2873 656e PI_Pack_size(sen\n+0003bd60: 644f 776e 6572 5665 632e 7369 7a65 2829 dOwnerVec.size()\n+0003bd70: 2c20 4d50 4954 7261 6974 7326 6c74 3b47 , MPITraits<G\n+0003bd80: 4926 6774 3b3a 3a67 6574 5479 7065 2829 I>::getType()\n+0003bd90: 2c20 6f6f 636f 6d6d 2e3c 6120 636c 6173 , oocomm.commun\n+0003bdf0: 6963 6174 6f72 3c2f 613e 2829 2c20 2661 icator(), &a\n+0003be00: 6d70 3b74 7369 7a65 293b 3c2f 6469 763e mp;tsize);
    \n+0003be10: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003be40: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1618 buffe\n+0003be70: 7273 697a 6520 2b3d 7473 697a 653b 3c2f rsize +=tsize;.
    16\n+0003bed0: 3139 3c2f 7370 616e 3e20 2020 2020 204d 19 M\n+0003bee0: 5049 5f50 6163 6b5f 7369 7a65 2831 2c20 PI_Pack_size(1, \n+0003bef0: 4d50 4954 7261 6974 7326 6c74 3b73 7464 MPITraits<std\n+0003bf00: 3a3a 7369 7a65 5f74 2667 743b 3a3a 6765 ::size_t>::ge\n+0003bf10: 7454 7970 6528 292c 206f 6f63 6f6d 6d2e tType(), oocomm.\n+0003bf20: 3c61 2063 6c61 7373 3d22 636f 6465 2068 communicator(), &tsize)\n+0003bf90: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0003bfe0: 2031 3632 303c 2f73 7061 6e3e 2020 2020 1620 \n+0003bff0: 2020 6275 6666 6572 7369 7a65 202b 3d74 buffersize +=t\n+0003c000: 7369 7a65 3b3c 2f64 6976 3e0a 3c64 6976 size;
    .<\n+0003c040: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0003c050: 6e6f 223e 2031 3632 313c 2f73 7061 6e3e no\"> 1621
    \n+0003c060: 2020 2020 2020 4d50 495f 5061 636b 5f73 MPI_Pack_s\n+0003c070: 697a 6528 7365 6e64 4f76 6572 6c61 7053 ize(sendOverlapS\n+0003c080: 6574 2e73 697a 6528 292c 204d 5049 5472 et.size(), MPITr\n+0003c090: 6169 7473 266c 743b 4749 2667 743b 3a3a aits<GI>::\n+0003c0a0: 6765 7454 7970 6528 292c 206f 6f63 6f6d getType(), oocom\n+0003c0b0: 6d2e 3c61 2063 6c61 7373 3d22 636f 6465 m.communicator<\n+0003c110: 2f61 3e28 292c 2026 616d 703b 7473 697a /a>(), &tsiz\n+0003c120: 6529 3b3c 2f64 6976 3e0a 3c64 6976 2063 e);
    .
    1622 \n+0003c180: 2020 2020 6275 6666 6572 7369 7a65 202b buffersize +\n+0003c190: 3d20 7473 697a 653b 3c2f 6469 763e 0a3c = tsize;
    .<\n+0003c1a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0003c1b0: 3e3c 6120 6964 3d22 6c30 3136 3233 2220 > 1623 MPI_Pac\n+0003c200: 6b5f 7369 7a65 2831 2c20 4d50 4954 7261 k_size(1, MPITra\n+0003c210: 6974 7326 6c74 3b73 7464 3a3a 7369 7a65 its<std::size\n+0003c220: 5f74 2667 743b 3a3a 6765 7454 7970 6528 _t>::getType(\n+0003c230: 292c 206f 6f63 6f6d 6d2e 3c61 2063 6c61 ), oocomm.commu\n+0003c290: 6e69 6361 746f 723c 2f61 3e28 292c 2026 nicator(), &\n+0003c2a0: 616d 703b 7473 697a 6529 3b3c 2f64 6976 amp;tsize);.
    1624<\n+0003c300: 2f73 7061 6e3e 2020 2020 2020 6275 6666 /span> buff\n+0003c310: 6572 7369 7a65 202b 3d20 7473 697a 653b ersize += tsize;\n+0003c320: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0003c370: 3136 3235 3c2f 7370 616e 3e20 2020 2020 1625 \n+0003c380: 204d 5049 5f50 6163 6b5f 7369 7a65 286e MPI_Pack_size(n\n+0003c390: 6569 6768 626f 7273 2e73 697a 6528 292c eighbors.size(),\n+0003c3a0: 204d 5049 5f49 4e54 2c20 6f6f 636f 6d6d MPI_INT, oocomm\n+0003c3b0: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .communicator(), &tsize\n+0003c420: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    1626 \n+0003c480: 2020 2062 7566 6665 7273 697a 6520 2b3d buffersize +=\n+0003c490: 2074 7369 7a65 3b3c 2f64 6976 3e0a 3c64 tsize;
    .\n+0003c4b0: 3c61 2069 643d 226c 3031 3632 3722 206e 1627
    .
    1628 \n+0003c550: 2020 2020 7365 6e64 4275 6666 6572 735b sendBuffers[\n+0003c560: 695d 203d 203c 7370 616e 2063 6c61 7373 i] = new \n+0003c5a0: 6368 6172 3c2f 7370 616e 3e5b 6275 6666 char[buff\n+0003c5b0: 6572 7369 7a65 5d3b 3c2f 6469 763e 0a3c ersize];
    .<\n+0003c5c0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0003c5d0: 3e3c 6120 6964 3d22 6c30 3136 3239 2220 > 1629
    .
    1630<\n+0003c670: 7370 616e 2063 6c61 7373 3d22 7072 6570 span class=\"prep\n+0003c680: 726f 6365 7373 6f72 223e 2369 6664 6566 rocessor\">#ifdef\n+0003c690: 2044 4542 5547 5f52 4550 4152 543c 2f73 DEBUG_REPART
    .
    1631 \n+0003c700: 2020 2020 2073 7464 3a3a 636f 7574 266c std::cout&l\n+0003c710: 743b 266c 743b 6d79 7065 266c 743b 266c t;<mype<&l\n+0003c720: 743b 3c73 7061 6e20 636c 6173 733d 2273 t;&q\n+0003c740: 756f 743b 2073 656e 6469 6e67 2026 7175 uot; sending &qu\n+0003c750: 6f74 3b3c 2f73 7061 6e3e 266c 743b 266c ot;<&l\n+0003c760: 743b 7365 6e64 4f77 6e65 7256 6563 2e73 t;sendOwnerVec.s\n+0003c770: 697a 6528 2926 6c74 3b26 6c74 3b3c 7370 ize()<<" \n+0003c7a0: 6f77 6e65 7220 616e 6420 2671 756f 743b owner and "\n+0003c7b0: 3c2f 7370 616e 3e26 6c74 3b26 6c74 3b3c <<<\n+0003c7c0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003c810: 3633 323c 2f73 7061 6e3e 2020 2020 2020 632 \n+0003c820: 7365 6e64 4f76 6572 6c61 7053 6574 2e73 sendOverlapSet.s\n+0003c830: 697a 6528 2926 6c74 3b26 6c74 3b3c 7370 ize()<<" \n+0003c860: 6f76 6572 6c61 7020 746f 2026 7175 6f74 overlap to "\n+0003c870: 3b3c 2f73 7061 6e3e 266c 743b 266c 743b ;<<\n+0003c880: 7365 6e64 546f 5b69 5d26 6c74 3b26 6c74 sendTo[i]<<\n+0003c890: 3b3c 7370 616e 2063 6c61 7373 3d22 7374 ;&qu\n+0003c8b0: 6f74 3b20 6275 6666 6572 7369 7a65 3d26 ot; buffersize=&\n+0003c8c0: 7175 6f74 3b3c 2f73 7061 6e3e 266c 743b quot;<\n+0003c8d0: 266c 743b 6275 6666 6572 7369 7a65 266c <buffersize&l\n+0003c8e0: 743b 266c 743b 7374 643a 3a65 6e64 6c3b t;<std::endl;\n+0003c8f0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0003c940: 3136 3333 3c2f 7370 616e 3e3c 7370 616e 1633#endif
    .
    1634 \n+0003c9d0: 2020 2020 6372 6561 7465 5365 6e64 4275 createSendBu\n+0003c9e0: 6628 7365 6e64 4f77 6e65 7256 6563 2c20 f(sendOwnerVec, \n+0003c9f0: 7365 6e64 4f76 6572 6c61 7053 6574 2c20 sendOverlapSet, \n+0003ca00: 6e65 6967 6862 6f72 732c 2073 656e 6442 neighbors, sendB\n+0003ca10: 7566 6665 7273 5b69 5d2c 2062 7566 6665 uffers[i], buffe\n+0003ca20: 7273 697a 652c 206f 6f63 6f6d 6d2e 3c61 rsize, oocomm.c\n+0003ca80: 6f6d 6d75 6e69 6361 746f 723c 2f61 3e28 ommunicator(\n+0003ca90: 2929 3b3c 2f64 6976 3e0a 3c64 6976 2063 ));
    .
    1635 \n+0003caf0: 2020 2020 4d50 495f 4973 7365 6e64 2873 MPI_Issend(s\n+0003cb00: 656e 6442 7566 6665 7273 5b69 5d2c 2062 endBuffers[i], b\n+0003cb10: 7566 6665 7273 697a 652c 204d 5049 5f50 uffersize, MPI_P\n+0003cb20: 4143 4b45 442c 2073 656e 6454 6f5b 695d ACKED, sendTo[i]\n+0003cb30: 2c20 3939 2c20 6f6f 636f 6d6d 2e3c 6120 , 99, oocomm.co\n+0003cb90: 6d6d 756e 6963 6174 6f72 3c2f 613e 2829 mmunicator()\n+0003cba0: 2c20 7265 7175 6573 7473 2b69 293b 3c2f , requests+i);.
    16\n+0003cc00: 3336 3c2f 7370 616e 3e20 2020 207d 3c2f 36 }.
    16\n+0003cc60: 3337 3c2f 7370 616e 3e20 3c2f 6469 763e 37
    \n+0003cc70: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003cca0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1638 if(ver\n+0003ccf0: 626f 7365 2920 7b3c 2f64 6976 3e0a 3c64 bose) {
    .\n+0003cd10: 3c61 2069 643d 226c 3031 3633 3922 206e 1639 oocomm.<\n+0003cd60: 6120 636c 6173 733d 2263 6f64 6520 686c a class=\"code hl\n+0003cd70: 5f66 756e 6374 696f 6e22 2068 7265 663d _function\" href=\n+0003cd80: 2261 3031 3938 342e 6874 6d6c 2361 6164 \"a01984.html#aad\n+0003cd90: 3033 6530 3438 3135 3232 6138 3262 6330 03e0481522a82bc0\n+0003cda0: 6232 3132 6361 6431 6462 3736 6638 223e b212cad1db76f8\">\n+0003cdb0: 636f 6d6d 756e 6963 6174 6f72 3c2f 613e communicator\n+0003cdc0: 2829 2e62 6172 7269 6572 2829 3b3c 2f64 ().barrier();.
    164\n+0003ce20: 303c 2f73 7061 6e3e 2020 2020 2020 3c73 0 if(oocomm.commun\n+0003ceb0: 6963 6174 6f72 3c2f 613e 2829 2e72 616e icator().ran\n+0003cec0: 6b28 293d 3d30 293c 2f64 6976 3e0a 3c64 k()==0)
    .\n+0003cee0: 3c61 2069 643d 226c 3031 3634 3122 206e 1641 std::c\n+0003cf30: 6f75 7426 6c74 3b26 6c74 3b3c 7370 616e out<<" Cr\n+0003cf60: 6561 7469 6e67 2073 656e 6473 2074 6f6f eating sends too\n+0003cf70: 6b20 2671 756f 743b 3c2f 7370 616e 3e26 k "&\n+0003cf80: 6c74 3b26 6c74 3b3c 2f64 6976 3e0a 3c64 lt;<
    .\n+0003cfa0: 3c61 2069 643d 226c 3031 3634 3222 206e 1642 time.e\n+0003cff0: 6c61 7073 6564 2829 266c 743b 266c 743b lapsed()<<\n+0003d000: 7374 643a 3a65 6e64 6c3b 3c2f 6469 763e std::endl;
    \n+0003d010: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n+0003d070: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003d0a0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1644 time.re\n+0003d0d0: 7365 7428 293b 3c2f 6469 763e 0a3c 6469 set();
    .<\n+0003d0f0: 6120 6964 3d22 6c30 3136 3435 2220 6e61 a id=\"l01645\" na\n+0003d100: 6d65 3d22 6c30 3136 3435 223e 3c2f 613e me=\"l01645\">\n+0003d110: 3c73 7061 6e20 636c 6173 733d 226c 696e 1645
    .
    1646 \n+0003d190: 203c 7370 616e 2063 6c61 7373 3d22 636f // Receiv\n+0003d1b0: 6520 4d65 7373 6167 6573 3c2f 7370 616e e Messages
    .
    \n+0003d210: 2031 3634 373c 2f73 7061 6e3e 2020 2020 1647 \n+0003d220: 3c73 7061 6e20 636c 6173 733d 226b 6579 int noRecv = re\n+0003d250: 6376 4672 6f6d 2e73 697a 6528 293b 3c2f cvFrom.size();.
    16\n+0003d2b0: 3438 3c2f 7370 616e 3e20 2020 203c 7370 48 int oldbuffersize=\n+0003d2f0: 303b 3c2f 6469 763e 0a3c 6469 7620 636c 0;
    .
    1649 \n+0003d350: 203c 7370 616e 2063 6c61 7373 3d22 6b65 char<\n+0003d370: 2f73 7061 6e3e 2a20 7265 6376 4275 6620 /span>* recvBuf \n+0003d380: 3d20 303b 3c2f 6469 763e 0a3c 6469 7620 = 0;
    .
    1650 \n+0003d3e0: 2020 203c 7370 616e 2063 6c61 7373 3d22 whi\n+0003d400: 6c65 3c2f 7370 616e 3e28 6e6f 5265 6376 le(noRecv\n+0003d410: 2667 743b 3029 207b 3c2f 6469 763e 0a3c >0) {
    .<\n+0003d420: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0003d430: 3e3c 6120 6964 3d22 6c30 3136 3531 2220 > 1651 /\n+0003d490: 2f20 7072 6f62 6520 666f 7220 616e 2069 / probe for an i\n+0003d4a0: 6e63 6f6d 696e 6720 6d65 7373 6167 653c ncoming message<\n+0003d4b0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+0003d4d0: 6120 6964 3d22 6c30 3136 3532 2220 6e61 a id=\"l01652\" na\n+0003d4e0: 6d65 3d22 6c30 3136 3532 223e 3c2f 613e me=\"l01652\">\n+0003d4f0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1652 MPI_Statu\n+0003d520: 7320 7374 6174 3b3c 2f64 6976 3e0a 3c64 s stat;
    .\n+0003d540: 3c61 2069 643d 226c 3031 3635 3322 206e 1653 MPI_Prob\n+0003d590: 6528 4d50 495f 414e 595f 534f 5552 4345 e(MPI_ANY_SOURCE\n+0003d5a0: 2c20 3939 2c20 206f 6f63 6f6d 6d2e 3c61 , 99, oocomm.c\n+0003d600: 6f6d 6d75 6e69 6361 746f 723c 2f61 3e28 ommunicator(\n+0003d610: 292c 2026 616d 703b 7374 6174 293b 3c2f ), &stat);.
    16\n+0003d670: 3534 3c2f 7370 616e 3e20 2020 2020 203c 54 <\n+0003d680: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0003d690: 6f72 6474 7970 6522 3e69 6e74 3c2f 7370 ordtype\">int buffersize;<\n+0003d6b0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003d700: 3635 353c 2f73 7061 6e3e 2020 2020 2020 655 \n+0003d710: 4d50 495f 4765 745f 636f 756e 7428 2661 MPI_Get_count(&a\n+0003d720: 6d70 3b73 7461 742c 204d 5049 5f50 4143 mp;stat, MPI_PAC\n+0003d730: 4b45 442c 2026 616d 703b 6275 6666 6572 KED, &buffer\n+0003d740: 7369 7a65 293b 3c2f 6469 763e 0a3c 6469 size);
    .<\n+0003d760: 6120 6964 3d22 6c30 3136 3536 2220 6e61 a id=\"l01656\" na\n+0003d770: 6d65 3d22 6c30 3136 3536 223e 3c2f 613e me=\"l01656\">\n+0003d780: 3c73 7061 6e20 636c 6173 733d 226c 696e 1656
    .
    1657 \n+0003d800: 2020 203c 7370 616e 2063 6c61 7373 3d22 if<\n+0003d820: 2f73 7061 6e3e 286f 6c64 6275 6666 6572 /span>(oldbuffer\n+0003d830: 7369 7a65 266c 743b 6275 6666 6572 7369 size<buffersi\n+0003d840: 7a65 2920 7b3c 2f64 6976 3e0a 3c64 6976 ze) {
    .<\n+0003d880: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0003d890: 6e6f 223e 2031 3635 383c 2f73 7061 6e3e no\"> 1658\n+0003d8a0: 2020 2020 2020 2020 3c73 7061 6e20 636c //\n+0003d8c0: 2062 7566 6665 7220 746f 6f20 736d 616c buffer too smal\n+0003d8d0: 6c2c 2072 6561 6c6c 6f63 6174 653c 2f73 l, reallocate
    .
    1659 \n+0003d940: 2020 2020 2020 203c 7370 616e 2063 6c61 del\n+0003d960: 6574 653c 2f73 7061 6e3e 5b5d 2072 6563 ete[] rec\n+0003d970: 7642 7566 3b3c 2f64 6976 3e0a 3c64 6976 vBuf;
    .<\n+0003d9b0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0003d9c0: 6e6f 223e 2031 3636 303c 2f73 7061 6e3e no\"> 1660\n+0003d9d0: 2020 2020 2020 2020 7265 6376 4275 6620 recvBuf \n+0003d9e0: 3d20 3c73 7061 6e20 636c 6173 733d 226b = new cha\n+0003da20: 723c 2f73 7061 6e3e 5b62 7566 6665 7273 r[buffers\n+0003da30: 697a 655d 3b3c 2f64 6976 3e0a 3c64 6976 ize];
    .<\n+0003da70: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0003da80: 6e6f 223e 2031 3636 313c 2f73 7061 6e3e no\"> 1661\n+0003da90: 2020 2020 2020 2020 6f6c 6462 7566 6665 oldbuffe\n+0003daa0: 7273 697a 6520 3d20 6275 6666 6572 7369 rsize = buffersi\n+0003dab0: 7a65 3b3c 2f64 6976 3e0a 3c64 6976 2063 ze;
    .
    1662 \n+0003db10: 2020 2020 7d3c 2f64 6976 3e0a 3c64 6976 }
    .<\n+0003db50: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0003db60: 6e6f 223e 2031 3636 333c 2f73 7061 6e3e no\"> 1663\n+0003db70: 2020 2020 2020 4d50 495f 5265 6376 2872 MPI_Recv(r\n+0003db80: 6563 7642 7566 2c20 6275 6666 6572 7369 ecvBuf, buffersi\n+0003db90: 7a65 2c20 4d50 495f 5041 434b 4544 2c20 ze, MPI_PACKED, \n+0003dba0: 7374 6174 2e4d 5049 5f53 4f55 5243 452c stat.MPI_SOURCE,\n+0003dbb0: 2039 392c 206f 6f63 6f6d 6d2e 3c61 2063 99, oocomm.com\n+0003dc10: 6d75 6e69 6361 746f 723c 2f61 3e28 292c municator(),\n+0003dc20: 2026 616d 703b 7374 6174 293b 3c2f 6469 &stat);.
    1664\n+0003dc80: 3c2f 7370 616e 3e20 2020 2020 2073 6176 sav\n+0003dc90: 6552 6563 7642 7566 2872 6563 7642 7566 eRecvBuf(recvBuf\n+0003dca0: 2c20 6275 6666 6572 7369 7a65 2c20 6d79 , buffersize, my\n+0003dcb0: 4f77 6e65 7256 6563 2c20 6d79 4f76 6572 OwnerVec, myOver\n+0003dcc0: 6c61 7053 6574 2c20 6d79 4e65 6967 6862 lapSet, myNeighb\n+0003dcd0: 6f72 732c 2072 6564 6973 7449 6e66 2c3c ors, redistInf,<\n+0003dce0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003dd30: 3636 353c 2f73 7061 6e3e 2020 2020 2020 665 \n+0003dd40: 2020 2020 2020 2020 2020 2020 7374 6174 stat\n+0003dd50: 2e4d 5049 5f53 4f55 5243 452c 206f 6f63 .MPI_SOURCE, ooc\n+0003dd60: 6f6d 6d2e 3c61 2063 6c61 7373 3d22 636f omm.communicato\n+0003ddc0: 723c 2f61 3e28 2929 3b3c 2f64 6976 3e0a r());
    .\n+0003ddd0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    1667 \n+0003de90: 2020 7d3c 2f64 6976 3e0a 3c64 6976 2063 }
    .
    1668 <\n+0003def0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003df40: 3636 393c 2f73 7061 6e3e 2020 2020 3c73 669 if(recvBuf)
    \n+0003df80: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003dfb0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1670 delete[]\n+0003e000: 2072 6563 7642 7566 3b3c 2f64 6976 3e0a recvBuf;
    .\n+0003e010: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0003e0a0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0003e0b0: 6e6f 223e 2031 3637 323c 2f73 7061 6e3e no\"> 1672\n+0003e0c0: 2020 2020 7469 6d65 2e72 6573 6574 2829 time.reset()\n+0003e0d0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0003e120: 2031 3637 333c 2f73 7061 6e3e 2020 2020 1673 \n+0003e130: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // Wait fo\n+0003e150: 7220 7365 6e64 696e 6720 6d65 7373 6167 r sending messag\n+0003e160: 6573 2074 6f20 636f 6d70 6c65 7465 3c2f es to complete
    .<\n+0003e1b0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0003e1c0: 6e6f 223e 2031 3637 343c 2f73 7061 6e3e no\"> 1674\n+0003e1d0: 2020 2020 4d50 495f 5374 6174 7573 202a MPI_Status *\n+0003e1e0: 7374 6174 7573 6573 203d 203c 7370 616e statuses = new MPI_\n+0003e210: 5374 6174 7573 5b6e 6f53 656e 6454 6f5d Status[noSendTo]\n+0003e220: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0003e270: 2031 3637 353c 2f73 7061 6e3e 2020 2020 1675 \n+0003e280: 3c73 7061 6e20 636c 6173 733d 226b 6579 int send = MPI_\n+0003e2b0: 5761 6974 616c 6c28 6e6f 5365 6e64 546f Waitall(noSendTo\n+0003e2c0: 2c20 7265 7175 6573 7473 2c20 7374 6174 , requests, stat\n+0003e2d0: 7573 6573 293b 3c2f 6469 763e 0a3c 6469 uses);
    .<\n+0003e2f0: 6120 6964 3d22 6c30 3136 3736 2220 6e61 a id=\"l01676\" na\n+0003e300: 6d65 3d22 6c30 3136 3736 223e 3c2f 613e me=\"l01676\">\n+0003e310: 3c73 7061 6e20 636c 6173 733d 226c 696e 1676
    .
    1677 \n+0003e390: 203c 7370 616e 2063 6c61 7373 3d22 636f // check \n+0003e3b0: 666f 7220 6572 726f 7273 3c2f 7370 616e for errors
    .
    \n+0003e410: 2031 3637 383c 2f73 7061 6e3e 2020 2020 1678 \n+0003e420: 3c73 7061 6e20 636c 6173 733d 226b 6579 if(send==MPI_ER\n+0003e450: 525f 494e 5f53 5441 5455 5329 207b 3c2f R_IN_STATUS) {.
    16\n+0003e4b0: 3739 3c2f 7370 616e 3e20 2020 2020 2073 79 s\n+0003e4c0: 7464 3a3a 6365 7272 266c 743b 266c 743b td::cerr<<\n+0003e4d0: 6d79 7065 266c 743b 266c 743b 3c73 7061 mype<<": \n+0003e500: 4572 726f 7220 696e 2073 656e 6469 6e67 Error in sending\n+0003e510: 203a 2671 756f 743b 3c2f 7370 616e 3e26 :"&\n+0003e520: 6c74 3b26 6c74 3b73 7464 3a3a 656e 646c lt;<std::endl\n+0003e530: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0003e580: 2031 3638 303c 2f73 7061 6e3e 2020 2020 1680 \n+0003e590: 2020 3c73 7061 6e20 636c 6173 733d 2263 // Searc\n+0003e5b0: 6820 666f 7220 7468 6520 6572 726f 723c h for the error<\n+0003e5c0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+0003e5e0: 6120 6964 3d22 6c30 3136 3831 2220 6e61 a id=\"l01681\" na\n+0003e5f0: 6d65 3d22 6c30 3136 3831 223e 3c2f 613e me=\"l01681\">\n+0003e600: 3c73 7061 6e20 636c 6173 733d 226c 696e 1681 for(int\n+0003e670: 2069 3d30 3b20 6926 6c74 3b20 6e6f 5365 i=0; i< noSe\n+0003e680: 6e64 546f 3b20 692b 2b29 3c2f 6469 763e ndTo; i++)
    \n+0003e690: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003e6c0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1682 if\n+0003e710: 2873 7461 7475 7365 735b 695d 2e4d 5049 (statuses[i].MPI\n+0003e720: 5f45 5252 4f52 213d 4d50 495f 5355 4343 _ERROR!=MPI_SUCC\n+0003e730: 4553 5329 207b 3c2f 6469 763e 0a3c 6469 ESS) {
    .<\n+0003e750: 6120 6964 3d22 6c30 3136 3833 2220 6e61 a id=\"l01683\" na\n+0003e760: 6d65 3d22 6c30 3136 3833 223e 3c2f 613e me=\"l01683\">\n+0003e770: 3c73 7061 6e20 636c 6173 733d 226c 696e 1683 char\n+0003e7c0: 206d 6573 7361 6765 5b33 3030 5d3b 3c2f message[300];.
    16\n+0003e820: 3834 3c2f 7370 616e 3e20 2020 2020 2020 84 \n+0003e830: 2020 203c 7370 616e 2063 6c61 7373 3d22 int\n+0003e850: 3c2f 7370 616e 3e20 6d65 7373 6167 654c messageL\n+0003e860: 656e 6774 683b 3c2f 6469 763e 0a3c 6469 ength;
    .<\n+0003e880: 6120 6964 3d22 6c30 3136 3835 2220 6e61 a id=\"l01685\" na\n+0003e890: 6d65 3d22 6c30 3136 3835 223e 3c2f 613e me=\"l01685\">\n+0003e8a0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1685 MPI_E\n+0003e8d0: 7272 6f72 5f73 7472 696e 6728 7374 6174 rror_string(stat\n+0003e8e0: 7573 6573 5b69 5d2e 4d50 495f 4552 524f uses[i].MPI_ERRO\n+0003e8f0: 522c 206d 6573 7361 6765 2c20 2661 6d70 R, message, &\n+0003e900: 3b6d 6573 7361 6765 4c65 6e67 7468 293b ;messageLength);\n+0003e910: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0003e960: 3136 3836 3c2f 7370 616e 3e20 2020 2020 1686 \n+0003e970: 2020 2020 2073 7464 3a3a 6365 7272 266c std::cerr&l\n+0003e980: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<" source=\n+0003e9b0: 2671 756f 743b 3c2f 7370 616e 3e26 6c74 "<\n+0003e9c0: 3b26 6c74 3b73 7461 7475 7365 735b 695d ;<statuses[i]\n+0003e9d0: 2e4d 5049 5f53 4f55 5243 4526 6c74 3b26 .MPI_SOURCE<&\n+0003e9e0: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+0003ea00: 7175 6f74 3b20 6d65 7373 6167 653a 2026 quot; message: &\n+0003ea10: 7175 6f74 3b3c 2f73 7061 6e3e 3b3c 2f64 quot;;.
    168\n+0003ea70: 373c 2f73 7061 6e3e 2020 2020 2020 2020 7 \n+0003ea80: 2020 3c73 7061 6e20 636c 6173 733d 226b for<\n+0003eaa0: 2f73 7061 6e3e 283c 7370 616e 2063 6c61 /span>(int j = \n+0003ead0: 303b 206a 2026 6c74 3b20 6d65 7373 6167 0; j < messag\n+0003eae0: 654c 656e 6774 683b 206a 2b2b 293c 2f64 eLength; j++).
    168\n+0003eb40: 383c 2f73 7061 6e3e 2020 2020 2020 2020 8 \n+0003eb50: 2020 2020 7374 643a 3a63 6f75 7426 6c74 std::cout<\n+0003eb60: 3b26 6c74 3b6d 6573 7361 6765 5b6a 5d3b ;<message[j];\n+0003eb70: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0003ebc0: 3136 3839 3c2f 7370 616e 3e20 2020 2020 1689 \n+0003ebd0: 2020 207d 3c2f 6469 763e 0a3c 6469 7620 }
    .
    1690 \n+0003ec30: 2020 2020 2073 7464 3a3a 6365 7272 266c std::cerr&l\n+0003ec40: 743b 266c 743b 7374 643a 3a65 6e64 6c3b t;<std::endl;\n+0003ec50: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0003eca0: 3136 3931 3c2f 7370 616e 3e20 2020 207d 1691 }\n+0003ecb0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0003ed00: 3136 3932 3c2f 7370 616e 3e20 3c2f 6469 1692 .
    1693\n+0003ed60: 3c2f 7370 616e 3e20 2020 203c 7370 616e if(v\n+0003ed90: 6572 626f 7365 2920 7b3c 2f64 6976 3e0a erbose) {
    .\n+0003eda0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0003edd0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1694 oocomm\n+0003ee00: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .communicator().barrier();<\n+0003ee70: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003eec0: 3639 353c 2f73 7061 6e3e 2020 2020 2020 695 \n+0003eed0: 3c73 7061 6e20 636c 6173 733d 226b 6579 if(oocomm.comm\n+0003ef50: 756e 6963 6174 6f72 3c2f 613e 2829 2e72 unicator().r\n+0003ef60: 616e 6b28 293d 3d30 293c 2f64 6976 3e0a ank()==0)
    .\n+0003ef70: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0003efa0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1696 std:\n+0003efd0: 3a63 6f75 7426 6c74 3b26 6c74 3b3c 7370 :cout<<" \n+0003f000: 5265 6365 6976 696e 6720 616e 6420 7361 Receiving and sa\n+0003f010: 7669 6e67 2074 6f6f 6b20 2671 756f 743b ving took "\n+0003f020: 3c2f 7370 616e 3e26 6c74 3b26 6c74 3b3c <<<\n+0003f030: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003f080: 3639 373c 2f73 7061 6e3e 2020 2020 2020 697 \n+0003f090: 2020 7469 6d65 2e65 6c61 7073 6564 2829 time.elapsed()\n+0003f0a0: 266c 743b 266c 743b 7374 643a 3a65 6e64 <<std::end\n+0003f0b0: 6c3b 3c2f 6469 763e 0a3c 6469 7620 636c l;
    .
    1698 \n+0003f110: 207d 3c2f 6469 763e 0a3c 6469 7620 636c }
    .
    1699 \n+0003f170: 2074 696d 652e 7265 7365 7428 293b 3c2f time.reset();.
    17\n+0003f1d0: 3030 3c2f 7370 616e 3e20 3c2f 6469 763e 00
    \n+0003f1e0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+0003f210: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1701 for(int i=0; i < n\n+0003f290: 6f53 656e 6454 6f3b 202b 2b69 293c 2f64 oSendTo; ++i).
    170\n+0003f2f0: 323c 2f73 7061 6e3e 2020 2020 2020 3c73 2 delete[] sendBuffers[\n+0003f330: 695d 3b3c 2f64 6976 3e0a 3c64 6976 2063 i];
    .
    1703 <\n+0003f390: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003f3e0: 3730 343c 2f73 7061 6e3e 2020 2020 3c73 704 delete[] sendBuffers;\n+0003f420: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+0003f470: 3137 3035 3c2f 7370 616e 3e20 2020 203c 1705 <\n+0003f480: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+0003f490: 6f72 6422 3e64 656c 6574 653c 2f73 7061 ord\">delete[] statuses;.
    17\n+0003f500: 3036 3c2f 7370 616e 3e20 2020 203c 7370 06 delete\n+0003f530: 5b5d 2072 6571 7565 7374 733b 3c2f 6469 [] requests;.
    1707\n+0003f590: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+0003f5a0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0003f5b0: 3e3c 6120 6964 3d22 6c30 3137 3038 2220 > 1708 redistInf\n+0003f600: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .setCommunicato\n+0003f660: 723c 2f61 3e28 6f6f 636f 6d6d 2e3c 6120 r(oocomm.co\n+0003f6c0: 6d6d 756e 6963 6174 6f72 3c2f 613e 2829 mmunicator()\n+0003f6d0: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    1709 .
    17\n+0003f780: 3130 3c2f 7370 616e 3e20 2020 203c 7370 10 //.
    1711\n+0003f800: 3c2f 7370 616e 3e20 2020 203c 7370 616e // 4.2) Create \n+0003f830: 7468 6520 496e 6465 7853 6574 2065 7463 the IndexSet etc\n+0003f840: 2e3c 2f73 7061 6e3e 3c2f 6469 763e 0a3c .
    .<\n+0003f850: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0003f860: 3e3c 6120 6964 3d22 6c30 3137 3132 2220 > 1712 //<\n+0003f8c0: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+0003f8e0: 6120 6964 3d22 6c30 3137 3133 2220 6e61 a id=\"l01713\" na\n+0003f8f0: 6d65 3d22 6c30 3137 3133 223e 3c2f 613e me=\"l01713\">\n+0003f900: 3c73 7061 6e20 636c 6173 733d 226c 696e 1713
    .
    1714 \n+0003f980: 203c 7370 616e 2063 6c61 7373 3d22 636f // build \n+0003f9a0: 7468 6520 6e65 7720 6f75 7470 7574 496e the new outputIn\n+0003f9b0: 6465 7853 6574 3c2f 7370 616e 3e3c 2f64 dexSet.
    171\n+0003fa10: 353c 2f73 7061 6e3e 203c 2f64 6976 3e0a 5
    .\n+0003fa20: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+0003fab0: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+0003fac0: 6e6f 223e 2031 3731 373c 2f73 7061 6e3e no\"> 1717\n+0003fad0: 2020 2020 3c73 7061 6e20 636c 6173 733d in\n+0003faf0: 743c 2f73 7061 6e3e 2063 6f6c 6f72 3d30 t color=0\n+0003fb00: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+0003fb50: 2031 3731 383c 2f73 7061 6e3e 203c 2f64 1718 .
    171\n+0003fbb0: 393c 2f73 7061 6e3e 2020 2020 3c73 7061 9 if \n+0003fbe0: 2821 6578 6973 7465 6e74 4f6e 4e65 7874 (!existentOnNext\n+0003fbf0: 4c65 7665 6c29 207b 3c2f 6469 763e 0a3c Level) {
    .<\n+0003fc00: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+0003fc10: 3e3c 6120 6964 3d22 6c30 3137 3230 2220 > 1720 /\n+0003fc70: 2f20 7468 6973 2070 726f 6365 7373 2069 / this process i\n+0003fc80: 7320 6e6f 7420 7573 6564 2061 6e79 6d6f s not used anymo\n+0003fc90: 7265 3c2f 7370 616e 3e3c 2f64 6976 3e0a re
    .\n+0003fca0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+0003fcd0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1721 color=\n+0003fd00: 204d 5049 5f55 4e44 4546 494e 4544 3b3c MPI_UNDEFINED;<\n+0003fd10: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003fd60: 3732 323c 2f73 7061 6e3e 2020 2020 7d3c 722 }<\n+0003fd70: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+0003fdc0: 3732 333c 2f73 7061 6e3e 2020 2020 4d50 723 MP\n+0003fdd0: 495f 436f 6d6d 206f 7574 7075 7443 6f6d I_Comm outputCom\n+0003fde0: 6d3b 3c2f 6469 763e 0a3c 6469 7620 636c m;
    .
    1724 .
    17\n+0003fe90: 3235 3c2f 7370 616e 3e20 2020 204d 5049 25 MPI\n+0003fea0: 5f43 6f6d 6d5f 7370 6c69 7428 6f6f 636f _Comm_split(ooco\n+0003feb0: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+0003ff10: 3c2f 613e 2829 2c20 636f 6c6f 722c 206f (), color, o\n+0003ff20: 6f63 6f6d 6d2e 3c61 2063 6c61 7373 3d22 ocomm.communica\n+0003ff80: 746f 723c 2f61 3e28 292e 7261 6e6b 2829 tor().rank()\n+0003ff90: 2c20 2661 6d70 3b6f 7574 7075 7443 6f6d , &outputCom\n+0003ffa0: 6d29 3b3c 2f64 6976 3e0a 3c64 6976 2063 m);
    .
    1726 \n+00040000: 2020 6f75 7463 6f6d 6d20 3d20 7374 643a outcomm = std:\n+00040010: 3a6d 616b 655f 7368 6172 6564 266c 743b :make_shared<\n+00040020: 4f4f 436f 6d6d 2667 743b 286f 7574 7075 OOComm>(outpu\n+00040030: 7443 6f6d 6d2c 536f 6c76 6572 4361 7465 tComm,SolverCate\n+00040040: 676f 7279 3a3a 6361 7465 676f 7279 286f gory::category(o\n+00040050: 6f63 6f6d 6d29 2c3c 7370 616e 2063 6c61 ocomm),tru\n+00040070: 653c 2f73 7061 6e3e 293b 3c2f 6469 763e e);
    \n+00040080: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+000400f0: 6120 6964 3d22 6c30 3137 3238 2220 6e61 a id=\"l01728\" na\n+00040100: 6d65 3d22 6c30 3137 3238 223e 3c2f 613e me=\"l01728\">\n+00040110: 3c73 7061 6e20 636c 6173 733d 226c 696e 1728 // tr\n+00040150: 616e 736c 6174 6520 6e65 6967 6862 6f72 anslate neighbor\n+00040160: 2072 616e 6b73 2e3c 2f73 7061 6e3e 3c2f ranks..
    17\n+000401c0: 3239 3c2f 7370 616e 3e20 2020 203c 7370 29 int newrank=outcom\n+00040200: 6d2d 2667 743b 636f 6d6d 756e 6963 6174 m->communicat\n+00040210: 6f72 2829 2e72 616e 6b28 293b 3c2f 6469 or().rank();.
    1730\n+00040270: 3c2f 7370 616e 3e20 2020 203c 7370 616e int \n+000402a0: 2a6e 6577 7261 6e6b 733d 3c73 7061 6e20 *newranks=\n+000402c0: 6e65 773c 2f73 7061 6e3e 203c 7370 616e new int[\n+000402f0: 6f6f 636f 6d6d 2e3c 6120 636c 6173 733d oocomm.communic\n+00040350: 6174 6f72 3c2f 613e 2829 2e73 697a 6528 ator().size(\n+00040360: 295d 3b3c 2f64 6976 3e0a 3c64 6976 2063 )];
    .
    1731 \n+000403c0: 2020 7374 643a 3a76 6563 746f 7226 6c74 std::vector<\n+000403d0: 3b69 6e74 2667 743b 2074 6e65 6967 6862 ;int> tneighb\n+000403e0: 6f72 733b 3c2f 6469 763e 0a3c 6469 7620 ors;
    .
    1732 \n+00040440: 2020 2074 6e65 6967 6862 6f72 732e 7265 tneighbors.re\n+00040450: 7365 7276 6528 6d79 4e65 6967 6862 6f72 serve(myNeighbor\n+00040460: 732e 7369 7a65 2829 293b 3c2f 6469 763e s.size());
    \n+00040470: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+000404e0: 6120 6964 3d22 6c30 3137 3334 2220 6e61 a id=\"l01734\" na\n+000404f0: 6d65 3d22 6c30 3137 3334 223e 3c2f 613e me=\"l01734\">\n+00040500: 3c73 7061 6e20 636c 6173 733d 226c 696e 1734 typen\n+00040540: 616d 653c 2f73 7061 6e3e 204f 4f43 6f6d ame OOCom\n+00040550: 6d3a 3a50 6172 616c 6c65 6c49 6e64 6578 m::ParallelIndex\n+00040560: 5365 7426 616d 703b 206f 7574 7075 7449 Set& outputI\n+00040570: 6e64 6578 5365 7420 3d20 6f75 7463 6f6d ndexSet = outcom\n+00040580: 6d2d 2667 743b 696e 6465 7853 6574 2829 m->indexSet()\n+00040590: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+000405e0: 2031 3733 353c 2f73 7061 6e3e 203c 2f64 1735 .
    173\n+00040640: 363c 2f73 7061 6e3e 2020 2020 4d50 495f 6 MPI_\n+00040650: 416c 6c67 6174 6865 7228 2661 6d70 3b6e Allgather(&n\n+00040660: 6577 7261 6e6b 2c20 312c 204d 5049 5f49 ewrank, 1, MPI_I\n+00040670: 4e54 2c20 6e65 7772 616e 6b73 2c20 312c NT, newranks, 1,\n+00040680: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000406d0: 3137 3337 3c2f 7370 616e 3e20 2020 2020 1737 \n+000406e0: 2020 2020 2020 2020 2020 2020 204d 5049 MPI\n+000406f0: 5f49 4e54 2c20 6f6f 636f 6d6d 2e3c 6120 _INT, oocomm.co\n+00040750: 6d6d 756e 6963 6174 6f72 3c2f 613e 2829 mmunicator()\n+00040760: 293b 3c2f 6469 763e 0a3c 6469 7620 636c );
    .
    1738 .
    17\n+00040810: 3339 3c2f 7370 616e 3e3c 7370 616e 2063 39#ifdef DEBUG\n+00040840: 5f52 4550 4152 543c 2f73 7061 6e3e 3c2f _REPART.
    17\n+000408a0: 3430 3c2f 7370 616e 3e20 2020 2073 7464 40 std\n+000408b0: 3a3a 636f 7574 266c 743b 266c 743b 6f6f ::cout<<oo\n+000408c0: 636f 6d6d 2e3c 6120 636c 6173 733d 2263 comm.communicat\n+00040920: 6f72 3c2f 613e 2829 2e72 616e 6b28 2926 or().rank()&\n+00040930: 6c74 3b26 6c74 3b3c 7370 616e 2063 6c61 lt;<" "\n+00040960: 3c2f 7370 616e 3e3b 3c2f 6469 763e 0a3c ;
    .<\n+00040970: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00040980: 3e3c 6120 6964 3d22 6c30 3137 3431 2220 > 1741 for(auto i=\n+00040a10: 6d79 4e65 6967 6862 6f72 732e 6265 6769 myNeighbors.begi\n+00040a20: 6e28 292c 2065 6e64 3d6d 794e 6569 6768 n(), end=myNeigh\n+00040a30: 626f 7273 2e65 6e64 2829 3b3c 2f64 6976 bors.end();.
    1742<\n+00040a90: 2f73 7061 6e3e 2020 2020 2020 2020 6921 /span> i!\n+00040aa0: 3d65 6e64 3b20 2b2b 6929 207b 3c2f 6469 =end; ++i) {.
    1743\n+00040b00: 3c2f 7370 616e 3e20 2020 2020 2061 7373 ass\n+00040b10: 6572 7428 6e65 7772 616e 6b73 5b2a 695d ert(newranks[*i]\n+00040b20: 2667 743b 3d30 293b 3c2f 6469 763e 0a3c >=0);
    .<\n+00040b30: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00040b40: 3e3c 6120 6964 3d22 6c30 3137 3434 2220 > 1744 std::co\n+00040b90: 7574 266c 743b 266c 743b 2a69 266c 743b ut<<*i<\n+00040ba0: 266c 743b 3c73 7061 6e20 636c 6173 733d <\n+00040bc0: 2671 756f 743b 2d26 6774 3b26 7175 6f74 "->"\n+00040bd0: 3b3c 2f73 7061 6e3e 266c 743b 266c 743b ;<<\n+00040be0: 6e65 7772 616e 6b73 5b2a 695d 266c 743b newranks[*i]<\n+00040bf0: 266c 743b 3c73 7061 6e20 636c 6173 733d <\n+00040c10: 2671 756f 743b 2026 7175 6f74 3b3c 2f73 " ";
    .<\n+00040c60: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00040c70: 6e6f 223e 2031 3734 353c 2f73 7061 6e3e no\"> 1745\n+00040c80: 2020 2020 2020 746e 6569 6768 626f 7273 tneighbors\n+00040c90: 2e70 7573 685f 6261 636b 286e 6577 7261 .push_back(newra\n+00040ca0: 6e6b 735b 2a69 5d29 3b3c 2f64 6976 3e0a nks[*i]);
    .\n+00040cb0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+00040d10: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .
    1748#else
    .<\n+00040e40: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00040e50: 6e6f 223e 2031 3734 393c 2f73 7061 6e3e no\"> 1749\n+00040e60: 2020 2020 3c73 7061 6e20 636c 6173 733d fo\n+00040e80: 723c 2f73 7061 6e3e 283c 7370 616e 2063 r(a\n+00040ea0: 7574 6f3c 2f73 7061 6e3e 2069 3d6d 794e uto i=myN\n+00040eb0: 6569 6768 626f 7273 2e62 6567 696e 2829 eighbors.begin()\n+00040ec0: 2c20 656e 643d 6d79 4e65 6967 6862 6f72 , end=myNeighbor\n+00040ed0: 732e 656e 6428 293b 3c2f 6469 763e 0a3c s.end();
    .<\n+00040ee0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00040ef0: 3e3c 6120 6964 3d22 6c30 3137 3530 2220 > 1750 i!=en\n+00040f40: 643b 202b 2b69 2920 7b3c 2f64 6976 3e0a d; ++i) {
    .\n+00040f50: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00040f80: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1751 tneigh\n+00040fb0: 626f 7273 2e70 7573 685f 6261 636b 286e bors.push_back(n\n+00040fc0: 6577 7261 6e6b 735b 2a69 5d29 3b3c 2f64 ewranks[*i]);.
    175\n+00041020: 323c 2f73 7061 6e3e 2020 2020 7d3c 2f64 2 }.
    175\n+00041080: 333c 2f73 7061 6e3e 3c73 7061 6e20 636c 3#endif\n+000410b0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00041100: 3137 3534 3c2f 7370 616e 3e20 2020 203c 1754 <\n+00041110: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+00041120: 6f72 6422 3e64 656c 6574 653c 2f73 7061 ord\">delete[] newranks;.
    17\n+00041190: 3535 3c2f 7370 616e 3e20 2020 206d 794e 55 myN\n+000411a0: 6569 6768 626f 7273 2e63 6c65 6172 2829 eighbors.clear()\n+000411b0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00041200: 2031 3735 363c 2f73 7061 6e3e 203c 2f64 1756 .
    175\n+00041260: 373c 2f73 7061 6e3e 2020 2020 3c73 7061 7 if(\n+00041290: 7665 7262 6f73 6529 207b 3c2f 6469 763e verbose) {
    \n+000412a0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..
    \n+000413c0: 3137 3539 3c2f 7370 616e 3e20 2020 2020 1759 \n+000413d0: 203c 7370 616e 2063 6c61 7373 3d22 6b65 if(oocomm.com\n+00041450: 6d75 6e69 6361 746f 723c 2f61 3e28 292e municator().\n+00041460: 7261 6e6b 2829 3d3d 3029 3c2f 6469 763e rank()==0)
    \n+00041470: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000414a0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1760 std\n+000414d0: 3a3a 636f 7574 266c 743b 266c 743b 3c73 ::cout<<"\n+00041500: 2043 616c 6375 6c61 7469 6e67 206e 6577 Calculating new\n+00041510: 206e 6569 6768 626f 7572 7320 2826 7175 neighbours (&qu\n+00041520: 6f74 3b3c 2f73 7061 6e3e 266c 743b 266c ot;<&l\n+00041530: 743b 746e 6569 6768 626f 7273 2e73 697a t;tneighbors.siz\n+00041540: 6528 2926 6c74 3b26 6c74 3b3c 7370 616e e()<<") t\n+00041570: 6f6f 6b20 2671 756f 743b 3c2f 7370 616e ook "<<
    .\n+00041590: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+000415c0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1761 time\n+000415f0: 2e65 6c61 7073 6564 2829 266c 743b 266c .elapsed()<&l\n+00041600: 743b 7374 643a 3a65 6e64 6c3b 3c2f 6469 t;std::endl;.
    1762\n+00041660: 3c2f 7370 616e 3e20 2020 207d 3c2f 6469 }.
    1763\n+000416c0: 3c2f 7370 616e 3e20 2020 2074 696d 652e time.\n+000416d0: 7265 7365 7428 293b 3c2f 6469 763e 0a3c reset();
    .<\n+000416e0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000416f0: 3e3c 6120 6964 3d22 6c30 3137 3634 2220 > 1764
    .
    1765 \n+00041790: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000417e0: 3137 3636 3c2f 7370 616e 3e20 2020 206f 1766 o\n+000417f0: 7574 7075 7449 6e64 6578 5365 742e 6265 utputIndexSet.be\n+00041800: 6769 6e52 6573 697a 6528 293b 3c2f 6469 ginResize();.
    1767\n+00041860: 3c2f 7370 616e 3e20 2020 203c 7370 616e // 1) add the o\n+00041890: 776e 6572 2076 6572 7469 6365 733c 2f73 wner vertices
    .
    1768 \n+00041900: 2020 203c 7370 616e 2063 6c61 7373 3d22 // Sort\n+00041920: 2074 6865 206f 776e 6572 733c 2f73 7061 the owners
    .
    1769 \n+00041990: 2073 7464 3a3a 736f 7274 286d 794f 776e std::sort(myOwn\n+000419a0: 6572 5665 632e 6265 6769 6e28 292c 206d erVec.begin(), m\n+000419b0: 794f 776e 6572 5665 632e 656e 6428 292c yOwnerVec.end(),\n+000419c0: 2053 6f72 7446 6972 7374 2829 293b 3c2f SortFirst());.
    17\n+00041a20: 3730 3c2f 7370 616e 3e20 2020 203c 7370 70 // The owners\n+00041a50: 2061 7265 2073 6f72 7465 6420 6163 636f are sorted acco\n+00041a60: 7264 696e 6720 746f 2074 6865 7265 2067 rding to there g\n+00041a70: 6c6f 6261 6c20 696e 6465 783c 2f73 7061 lobal index
    .
    1771 \n+00041ae0: 203c 7370 616e 2063 6c61 7373 3d22 636f // Theref\n+00041b00: 6f72 6520 7468 6520 656e 7472 6965 7320 ore the entries \n+00041b10: 6f66 206f 776e 6572 5665 6320 6172 6520 of ownerVec are \n+00041b20: 7468 6520 7361 6d65 2061 7320 7468 653c the same as the<\n+00041b30: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+00041b50: 6120 6964 3d22 6c30 3137 3732 2220 6e61 a id=\"l01772\" na\n+00041b60: 6d65 3d22 6c30 3137 3732 223e 3c2f 613e me=\"l01772\">\n+00041b70: 3c73 7061 6e20 636c 6173 733d 226c 696e 1772 // on\n+00041bb0: 6573 2069 6e20 7468 6520 7265 7375 6c74 es in the result\n+00041bc0: 696e 6720 696e 6465 7820 7365 742e 3c2f ing index set.
    .<\n+00041c10: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00041c20: 6e6f 223e 2031 3737 333c 2f73 7061 6e3e no\"> 1773\n+00041c30: 2020 2020 3c73 7061 6e20 636c 6173 733d in\n+00041c50: 743c 2f73 7061 6e3e 2069 3d30 3b3c 2f64 t i=0;.
    177\n+00041cb0: 343c 2f73 7061 6e3e 2020 2020 3c73 7061 4 using L\n+00041ce0: 6f63 616c 496e 6465 7854 203d 203c 7370 ocalIndexT = typename OOComm::Paral\n+00041d20: 6c65 6c49 6e64 6578 5365 743a 3a4c 6f63 lelIndexSet::Loc\n+00041d30: 616c 496e 6465 783b 3c2f 6469 763e 0a3c alIndex;
    .<\n+00041d40: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00041d50: 3e3c 6120 6964 3d22 6c30 3137 3735 2220 > 1775 for(auto g=\n+00041de0: 6d79 4f77 6e65 7256 6563 2e62 6567 696e myOwnerVec.begin\n+00041df0: 2829 2c20 656e 6420 3d6d 794f 776e 6572 (), end =myOwner\n+00041e00: 5665 632e 656e 6428 293b 2067 213d 656e Vec.end(); g!=en\n+00041e10: 643b 202b 2b67 2c20 2b2b 6920 2920 7b3c d; ++g, ++i ) {<\n+00041e20: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00041e70: 3737 363c 2f73 7061 6e3e 2020 2020 2020 776 \n+00041e80: 6f75 7470 7574 496e 6465 7853 6574 2e61 outputIndexSet.a\n+00041e90: 6464 2867 2d26 6774 3b66 6972 7374 2c4c dd(g->first,L\n+00041ea0: 6f63 616c 496e 6465 7854 2869 2c20 4f77 ocalIndexT(i, Ow\n+00041eb0: 6e65 724f 7665 726c 6170 436f 7079 4174 nerOverlapCopyAt\n+00041ec0: 7472 6962 7574 6553 6574 3a3a 6f77 6e65 tributeSet::owne\n+00041ed0: 722c 203c 7370 616e 2063 6c61 7373 3d22 r, true));
    .\n+00041f10: 3c61 2069 643d 226c 3031 3737 3722 206e 1777 redistIn\n+00041f60: 662e 3c61 2063 6c61 7373 3d22 636f 6465 f.addReceiveInd\n+00041fc0: 6578 3c2f 613e 2867 2d26 6774 3b73 6563 ex(g->sec\n+00041fd0: 6f6e 642c 2069 293b 3c2f 6469 763e 0a3c ond, i);
    .<\n+00041fe0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00041ff0: 3e3c 6120 6964 3d22 6c30 3137 3738 2220 > 1778 }
    .<\n+00042040: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00042050: 3e3c 6120 6964 3d22 6c30 3137 3739 2220 > 1779
    .
    1780 \n+000420f0: 2020 203c 7370 616e 2063 6c61 7373 3d22 if<\n+00042110: 2f73 7061 6e3e 2876 6572 626f 7365 2920 /span>(verbose) \n+00042120: 7b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 {
    .
    \n+00042170: 2031 3738 313c 2f73 7061 6e3e 2020 2020 1781 \n+00042180: 2020 6f6f 636f 6d6d 2e3c 6120 636c 6173 oocomm.commun\n+000421e0: 6963 6174 6f72 3c2f 613e 2829 2e62 6172 icator().bar\n+000421f0: 7269 6572 2829 3b3c 2f64 6976 3e0a 3c64 rier();
    .\n+00042210: 3c61 2069 643d 226c 3031 3738 3222 206e 1782 if(ooco\n+00042280: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+000422e0: 3c2f 613e 2829 2e72 616e 6b28 293d 3d30 ().rank()==0\n+000422f0: 293c 2f64 6976 3e0a 3c64 6976 2063 6c61 )
    .
    \n+00042340: 2031 3738 333c 2f73 7061 6e3e 2020 2020 1783 \n+00042350: 2020 2020 7374 643a 3a63 6f75 7426 6c74 std::cout<\n+00042360: 3b26 6c74 3b3c 7370 616e 2063 6c61 7373 ;<" Adding o\n+00042390: 776e 6572 2069 6e64 6963 6573 2074 6f6f wner indices too\n+000423a0: 6b20 2671 756f 743b 3c2f 7370 616e 3e26 k "&\n+000423b0: 6c74 3b26 6c74 3b3c 2f64 6976 3e0a 3c64 lt;<
    .\n+000423d0: 3c61 2069 643d 226c 3031 3738 3422 206e 1784 time.e\n+00042420: 6c61 7073 6564 2829 266c 743b 266c 743b lapsed()<<\n+00042430: 7374 643a 3a65 6e64 6c3b 3c2f 6469 763e std::endl;
    \n+00042440: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n+000424a0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000424d0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1786 time.re\n+00042500: 7365 7428 293b 3c2f 6469 763e 0a3c 6469 set();
    .<\n+00042520: 6120 6964 3d22 6c30 3137 3837 2220 6e61 a id=\"l01787\" na\n+00042530: 6d65 3d22 6c30 3137 3837 223e 3c2f 613e me=\"l01787\">\n+00042540: 3c73 7061 6e20 636c 6173 733d 226c 696e 1787
    .
    1788 .
    17\n+00042610: 3839 3c2f 7370 616e 3e20 2020 203c 7370 89 // After all \n+00042640: 7468 6520 7665 7274 6963 6573 2061 7265 the vertices are\n+00042650: 2072 6563 6569 7665 642c 2074 6865 2076 received, the v\n+00042660: 6563 746f 7273 206d 7573 743c 2f73 7061 ectors must
    .
    1790 \n+000426d0: 203c 7370 616e 2063 6c61 7373 3d22 636f // be &qu\n+000426f0: 6f74 3b6d 6572 6765 6426 7175 6f74 3b20 ot;merged" \n+00042700: 746f 6765 7468 6572 2074 6f20 6372 6561 together to crea\n+00042710: 7465 2074 6865 2066 696e 616c 2076 6563 te the final vec\n+00042720: 746f 7273 2e3c 2f73 7061 6e3e 3c2f 6469 tors..
    1791\n+00042780: 3c2f 7370 616e 3e20 2020 203c 7370 616e // Because some\n+000427b0: 2076 6572 7469 6365 7320 7468 6174 2061 vertices that a\n+000427c0: 7265 2073 656e 7420 6173 206f 7665 726c re sent as overl\n+000427d0: 6170 2063 6f75 6c64 206e 6f77 3c2f 7370 ap could now
    .
    1792 \n+00042840: 2020 3c73 7061 6e20 636c 6173 733d 2263 // alrea\n+00042860: 6479 2069 6e63 6c75 6465 6420 6173 206f dy included as o\n+00042870: 776e 6572 2076 6572 7469 6563 7320 696e wner vertiecs in\n+00042880: 2074 6865 206e 6577 2070 6172 7469 7469 the new partiti\n+00042890: 6f6e 3c2f 7370 616e 3e3c 2f64 6976 3e0a on
    .\n+000428a0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 \n+00042a10: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00042a40: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1796 myOwner\n+00042a70: 5665 632e 636c 6561 7228 293b 3c2f 6469 Vec.clear();.
    1797\n+00042ad0: 3c2f 7370 616e 3e20 2020 206d 794f 776e myOwn\n+00042ae0: 6572 5665 632e 7377 6170 286d 794f 776e erVec.swap(myOwn\n+00042af0: 6572 5665 6329 3b3c 2f64 6976 3e0a 3c64 erVec);
    .\n+00042b10: 3c61 2069 643d 226c 3031 3739 3822 206e 1798
    .
    1799 \n+00042bb0: 2020 3c73 7061 6e20 636c 6173 733d 226b if(verbose) {\n+00042be0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00042c30: 3138 3030 3c2f 7370 616e 3e20 2020 2020 1800 \n+00042c40: 206f 6f63 6f6d 6d2e 3c61 2063 6c61 7373 oocomm.communi\n+00042ca0: 6361 746f 723c 2f61 3e28 292e 6261 7272 cator().barr\n+00042cb0: 6965 7228 293b 3c2f 6469 763e 0a3c 6469 ier();
    .<\n+00042cd0: 6120 6964 3d22 6c30 3138 3031 2220 6e61 a id=\"l01801\" na\n+00042ce0: 6d65 3d22 6c30 3138 3031 223e 3c2f 613e me=\"l01801\">\n+00042cf0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1801 if(oocom\n+00042d40: 6d2e 3c61 2063 6c61 7373 3d22 636f 6465 m.communicator<\n+00042da0: 2f61 3e28 292e 7261 6e6b 2829 3d3d 3029 /a>().rank()==0)\n+00042db0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00042e00: 3138 3032 3c2f 7370 616e 3e20 2020 2020 1802 \n+00042e10: 2020 2073 7464 3a3a 636f 7574 266c 743b std::cout<\n+00042e20: 266c 743b 3c73 7061 6e20 636c 6173 733d <\n+00042e40: 2671 756f 743b 204d 6572 6769 6e67 2069 " Merging i\n+00042e50: 6e64 6963 6573 2074 6f6f 6b20 2671 756f ndices took &quo\n+00042e60: 743b 3c2f 7370 616e 3e26 6c74 3b26 6c74 t;<<\n+00042e70: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00042ec0: 2031 3830 333c 2f73 7061 6e3e 2020 2020 1803 \n+00042ed0: 2020 2020 7469 6d65 2e65 6c61 7073 6564 time.elapsed\n+00042ee0: 2829 266c 743b 266c 743b 7374 643a 3a65 ()<<std::e\n+00042ef0: 6e64 6c3b 3c2f 6469 763e 0a3c 6469 7620 ndl;
    .
    1804 \n+00042f50: 2020 207d 3c2f 6469 763e 0a3c 6469 7620 }
    .
    1805 \n+00042fb0: 2020 2074 696d 652e 7265 7365 7428 293b time.reset();\n+00042fc0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00043010: 3138 3036 3c2f 7370 616e 3e20 3c2f 6469 1806 .
    1807\n+00043070: 3c2f 7370 616e 3e20 3c2f 6469 763e 0a3c
    .<\n+00043080: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00043090: 3e3c 6120 6964 3d22 6c30 3138 3038 2220 > 1808 // \n+000430f0: 3229 2061 6464 2074 6865 206f 7665 726c 2) add the overl\n+00043100: 6170 2076 6572 7469 6365 733c 2f73 7061 ap vertices
    .
    1809 \n+00043170: 203c 7370 616e 2063 6c61 7373 3d22 6b65 for(auto\n+000431b0: 3c2f 7370 616e 3e20 673d 6d79 4f76 6572 g=myOver\n+000431c0: 6c61 7053 6574 2e62 6567 696e 2829 2c20 lapSet.begin(), \n+000431d0: 656e 643d 6d79 4f76 6572 6c61 7053 6574 end=myOverlapSet\n+000431e0: 2e65 6e64 2829 3b20 6721 3d65 6e64 3b20 .end(); g!=end; \n+000431f0: 2b2b 672c 2069 2b2b 2920 7b3c 2f64 6976 ++g, i++) {.
    1810<\n+00043250: 2f73 7061 6e3e 2020 2020 2020 6f75 7470 /span> outp\n+00043260: 7574 496e 6465 7853 6574 2e61 6464 282a utIndexSet.add(*\n+00043270: 672c 4c6f 6361 6c49 6e64 6578 5428 692c g,LocalIndexT(i,\n+00043280: 204f 776e 6572 4f76 6572 6c61 7043 6f70 OwnerOverlapCop\n+00043290: 7941 7474 7269 6275 7465 5365 743a 3a63 yAttributeSet::c\n+000432a0: 6f70 792c 203c 7370 616e 2063 6c61 7373 opy, true<\n+000432c0: 2f73 7061 6e3e 2929 3b3c 2f64 6976 3e0a /span>));
    .\n+000432d0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+00043330: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+00043360: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1812 myOverla\n+00043390: 7053 6574 2e63 6c65 6172 2829 3b3c 2f64 pSet.clear();.
    181\n+000433f0: 333c 2f73 7061 6e3e 2020 2020 6f75 7470 3 outp\n+00043400: 7574 496e 6465 7853 6574 2e65 6e64 5265 utIndexSet.endRe\n+00043410: 7369 7a65 2829 3b3c 2f64 6976 3e0a 3c64 size();
    .\n+00043430: 3c61 2069 643d 226c 3031 3831 3422 206e 1814
    .
    1815#ifdef \n+000434f0: 4455 4e45 5f49 5354 4c5f 5749 5448 5f43 DUNE_ISTL_WITH_C\n+00043500: 4845 434b 494e 473c 2f73 7061 6e3e 3c2f HECKING.
    18\n+00043560: 3136 3c2f 7370 616e 3e20 2020 203c 7370 16 int numOfOwnVtx =0\n+000435a0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+000435f0: 2031 3831 373c 2f73 7061 6e3e 2020 2020 1817 \n+00043600: 3c73 7061 6e20 636c 6173 733d 226b 6579 auto end = outputIn\n+00043630: 6465 7853 6574 2e65 6e64 2829 3b3c 2f64 dexSet.end();.
    181\n+00043690: 383c 2f73 7061 6e3e 2020 2020 3c73 7061 8 for\n+000436c0: 283c 7370 616e 2063 6c61 7373 3d22 6b65 (auto index = outpu\n+000436f0: 7449 6e64 6578 5365 742e 6265 6769 6e28 tIndexSet.begin(\n+00043700: 293b 2069 6e64 6578 2021 3d20 656e 643b ); index != end;\n+00043710: 202b 2b69 6e64 6578 2920 7b3c 2f64 6976 ++index) {.
    1819<\n+00043770: 2f73 7061 6e3e 2020 2020 2020 3c73 7061 /span> if \n+000437a0: 284f 776e 6572 5365 743a 3a63 6f6e 7461 (OwnerSet::conta\n+000437b0: 696e 7328 696e 6465 782d 2667 743b 6c6f ins(index->lo\n+000437c0: 6361 6c28 292e 6174 7472 6962 7574 6528 cal().attribute(\n+000437d0: 2929 2920 7b3c 2f64 6976 3e0a 3c64 6976 ))) {
    .<\n+00043810: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00043820: 6e6f 223e 2031 3832 303c 2f73 7061 6e3e no\"> 1820
    \n+00043830: 2020 2020 2020 2020 6e75 6d4f 664f 776e numOfOwn\n+00043840: 5674 782b 2b3b 3c2f 6469 763e 0a3c 6469 Vtx++;
    .<\n+00043860: 6120 6964 3d22 6c30 3138 3231 2220 6e61 a id=\"l01821\" na\n+00043870: 6d65 3d22 6c30 3138 3231 223e 3c2f 613e me=\"l01821\">\n+00043880: 3c73 7061 6e20 636c 6173 733d 226c 696e 1821 }
    .<\n+000438b0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+000438c0: 3e3c 6120 6964 3d22 6c30 3138 3232 2220 > 1822 }
    .<\n+00043910: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00043920: 3e3c 6120 6964 3d22 6c30 3138 3233 2220 > 1823 numOfOwnV\n+00043970: 7478 203d 206f 6f63 6f6d 6d2e 3c61 2063 tx = oocomm.com\n+000439d0: 6d75 6e69 6361 746f 723c 2f61 3e28 292e municator().\n+000439e0: 7375 6d28 6e75 6d4f 664f 776e 5674 7829 sum(numOfOwnVtx)\n+000439f0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00043a40: 2031 3832 343c 2f73 7061 6e3e 2020 2020 1824 \n+00043a50: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // if(numO\n+00043a70: 664f 776e 5674 7821 3d69 6e64 6578 4d61 fOwnVtx!=indexMa\n+00043a80: 702e 676c 6f62 616c 4f77 6e65 7256 6572 p.globalOwnerVer\n+00043a90: 7469 6365 7329 3c2f 7370 616e 3e3c 2f64 tices).
    182\n+00043af0: 353c 2f73 7061 6e3e 2020 2020 3c73 7061 5 // {<\n+00043b20: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00043b70: 3832 363c 2f73 7061 6e3e 2020 2020 3c73 826 // std::\n+00043ba0: 6365 7272 266c 743b 266c 743b 6e75 6d4f cerr<<numO\n+00043bb0: 664f 776e 5674 7826 6c74 3b26 6c74 3b26 fOwnVtx<<&\n+00043bc0: 7175 6f74 3b21 3d26 7175 6f74 3b26 6c74 quot;!="<\n+00043bd0: 3b26 6c74 3b69 6e64 6578 4d61 702e 676c ;<indexMap.gl\n+00043be0: 6f62 616c 4f77 6e65 7256 6572 7469 6365 obalOwnerVertice\n+00043bf0: 7326 6c74 3b26 6c74 3b26 7175 6f74 3b20 s<<" \n+00043c00: 6f77 6e65 7273 206d 6973 7369 6e67 206f owners missing o\n+00043c10: 7220 6164 6469 7469 6f6e 616c 206f 6e65 r additional one\n+00043c20: 7321 2671 756f 743b 266c 743b 266c 743b s!"<<\n+00043c30: 7374 643a 3a65 6e64 6c3b 3c2f 7370 616e std::endl;
    .
    \n+00043c90: 2031 3832 373c 2f73 7061 6e3e 2020 2020 1827 \n+00043ca0: 3c73 7061 6e20 636c 6173 733d 2263 6f6d // DUN\n+00043cc0: 455f 5448 524f 5728 4953 544c 4572 726f E_THROW(ISTLErro\n+00043cd0: 722c 206e 756d 4f66 4f77 6e56 7478 266c r, numOfOwnVtx&l\n+00043ce0: 743b 266c 743b 2671 756f 743b 213d 2671 t;<"!=&q\n+00043cf0: 756f 743b 266c 743b 266c 743b 696e 6465 uot;<<inde\n+00043d00: 784d 6170 2e67 6c6f 6261 6c4f 776e 6572 xMap.globalOwner\n+00043d10: 5665 7274 6963 6573 266c 743b 266c 743b Vertices<<\n+00043d20: 2671 756f 743b 206f 776e 6572 7320 6d69 " owners mi\n+00043d30: 7373 696e 6720 6f72 2061 6464 6974 696f ssing or additio\n+00043d40: 6e61 6c20 6f6e 6573 2671 756f 743b 3c2f nal ones"
    .<\n+00043d90: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00043da0: 6e6f 223e 2031 3832 383c 2f73 7061 6e3e no\"> 1828\n+00043db0: 2020 2020 3c73 7061 6e20 636c 6173 733d // \n+00043dd0: 2020 2020 2020 2020 2026 6c74 3b26 6c74 <<\n+00043de0: 3b26 7175 6f74 3b20 6475 7269 6e67 2072 ;" during r\n+00043df0: 6570 6172 7469 7469 6f6e 696e 672e 2671 epartitioning.&q\n+00043e00: 756f 743b 293b 3c2f 7370 616e 3e3c 2f64 uot;);.
    182\n+00043e60: 393c 2f73 7061 6e3e 2020 2020 3c73 7061 9 // }<\n+00043e90: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00043ee0: 3833 303c 2f73 7061 6e3e 2020 2020 7374 830 st\n+00043ef0: 643a 3a69 735f 736f 7274 6564 286f 7574 d::is_sorted(out\n+00043f00: 7075 7449 6e64 6578 5365 742e 6265 6769 putIndexSet.begi\n+00043f10: 6e28 292c 206f 7574 7075 7449 6e64 6578 n(), outputIndex\n+00043f20: 5365 742e 656e 6428 292c 3c2f 6469 763e Set.end(),
    \n+00043f30: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00043f60: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1831 \n+00043f90: 2020 2020 2020 2020 5b5d 283c 7370 616e [](const auto&\n+00043fe0: 616d 703b 2076 312c 203c 7370 616e 2063 amp; v1, c\n+00044000: 6f6e 7374 3c2f 7370 616e 3e20 3c73 7061 onst auto&am\n+00044030: 703b 2076 3229 7b20 7265 7475 726e 2076 p; v2){ return v\n+00044040: 312e 676c 6f62 616c 2829 2026 6c74 3b20 1.global() < \n+00044050: 7632 2e67 6c6f 6261 6c28 293b 7d29 3b3c v2.global();});<\n+00044060: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+000440b0: 3833 323c 2f73 7061 6e3e 3c73 7061 6e20 832#endif
    .
    1833 \n+00044140: 203c 7370 616e 2063 6c61 7373 3d22 6b65 if(verbose) {<\n+00044170: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+000441c0: 3833 343c 2f73 7061 6e3e 2020 2020 2020 834 \n+000441d0: 6f6f 636f 6d6d 2e3c 6120 636c 6173 733d oocomm.communic\n+00044230: 6174 6f72 3c2f 613e 2829 2e62 6172 7269 ator().barri\n+00044240: 6572 2829 3b3c 2f64 6976 3e0a 3c64 6976 er();
    .<\n+00044280: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00044290: 6e6f 223e 2031 3833 353c 2f73 7061 6e3e no\"> 1835
    \n+000442a0: 2020 2020 2020 3c73 7061 6e20 636c 6173 \n+000442c0: 6966 3c2f 7370 616e 3e28 6f6f 636f 6d6d if(oocomm\n+000442d0: 2e3c 6120 636c 6173 733d 2263 6f64 6520 .communicator().rank()==0)<\n+00044340: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00044390: 3833 363c 2f73 7061 6e3e 2020 2020 2020 836 \n+000443a0: 2020 7374 643a 3a63 6f75 7426 6c74 3b26 std::cout<&\n+000443b0: 6c74 3b3c 7370 616e 2063 6c61 7373 3d22 lt;&\n+000443d0: 7175 6f74 3b20 4164 6469 6e67 206f 7665 quot; Adding ove\n+000443e0: 726c 6170 2069 6e64 6963 6573 2074 6f6f rlap indices too\n+000443f0: 6b20 2671 756f 743b 3c2f 7370 616e 3e26 k "&\n+00044400: 6c74 3b26 6c74 3b3c 2f64 6976 3e0a 3c64 lt;<
    .\n+00044420: 3c61 2069 643d 226c 3031 3833 3722 206e 1837 time.e\n+00044470: 6c61 7073 6564 2829 266c 743b 266c 743b lapsed()<<\n+00044480: 7374 643a 3a65 6e64 6c3b 3c2f 6469 763e std::endl;
    \n+00044490: 0a3c 6469 7620 636c 6173 733d 226c 696e .\n+000444f0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00044520: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1839 time.re\n+00044550: 7365 7428 293b 3c2f 6469 763e 0a3c 6469 set();
    .<\n+00044570: 6120 6964 3d22 6c30 3138 3430 2220 6e61 a id=\"l01840\" na\n+00044580: 6d65 3d22 6c30 3138 3430 223e 3c2f 613e me=\"l01840\">\n+00044590: 3c73 7061 6e20 636c 6173 733d 226c 696e 1840
    .
    1841 .
    18\n+00044660: 3432 3c2f 7370 616e 3e20 2020 203c 7370 42 if\n+00044690: 2863 6f6c 6f72 2021 3d20 4d50 495f 554e (color != MPI_UN\n+000446a0: 4445 4649 4e45 4429 207b 3c2f 6469 763e DEFINED) {
    \n+000446b0: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000446e0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1843 outco\n+00044710: 6d6d 2d26 6774 3b72 656d 6f74 6549 6e64 mm->remoteInd\n+00044720: 6963 6573 2829 2e73 6574 4e65 6967 6862 ices().setNeighb\n+00044730: 6f75 7273 2874 6e65 6967 6862 6f72 7329 ours(tneighbors)\n+00044740: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00044790: 2031 3834 343c 2f73 7061 6e3e 2020 2020 1844 \n+000447a0: 2020 6f75 7463 6f6d 6d2d 2667 743b 7265 outcomm->re\n+000447b0: 6d6f 7465 496e 6469 6365 7328 292e 7465 moteIndices().te\n+000447c0: 6d70 6c61 7465 2072 6562 7569 6c64 266c mplate rebuild&l\n+000447d0: 743b 7472 7565 2667 743b 2829 3b3c 2f64 t;true>();.
    184\n+00044830: 353c 2f73 7061 6e3e 203c 2f64 6976 3e0a 5
    .\n+00044840: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .\n+000448a0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65 .<\n+00044930: 7370 616e 2063 6c61 7373 3d22 6c69 6e65 span class=\"line\n+00044940: 6e6f 223e 2031 3834 383c 2f73 7061 6e3e no\"> 1848\n+00044950: 2020 2020 3c73 7061 6e20 636c 6173 733d // rel\n+00044970: 6561 7365 2074 6865 206d 656d 6f72 793c ease the memory<\n+00044980: 2f73 7061 6e3e 3c2f 6469 763e 0a3c 6469 /span>
    .<\n+000449a0: 6120 6964 3d22 6c30 3138 3439 2220 6e61 a id=\"l01849\" na\n+000449b0: 6d65 3d22 6c30 3138 3439 223e 3c2f 613e me=\"l01849\">\n+000449c0: 3c73 7061 6e20 636c 6173 733d 226c 696e 1849 delet\n+00044a00: 653c 2f73 7061 6e3e 5b5d 2073 656e 6454 e[] sendT\n+00044a10: 6f3b 3c2f 6469 763e 0a3c 6469 7620 636c o;
    .
    1850 .
    18\n+00044ac0: 3531 3c2f 7370 616e 3e20 2020 203c 7370 51 if\n+00044af0: 2876 6572 626f 7365 2920 7b3c 2f64 6976 (verbose) {.
    1852<\n+00044b50: 2f73 7061 6e3e 2020 2020 2020 6f6f 636f /span> ooco\n+00044b60: 6d6d 2e3c 6120 636c 6173 733d 2263 6f64 mm.communicator\n+00044bc0: 3c2f 613e 2829 2e62 6172 7269 6572 2829 ().barrier()\n+00044bd0: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00044c20: 2031 3835 333c 2f73 7061 6e3e 2020 2020 1853 \n+00044c30: 2020 3c73 7061 6e20 636c 6173 733d 226b if(oocomm.co\n+00044cb0: 6d6d 756e 6963 6174 6f72 3c2f 613e 2829 mmunicator()\n+00044cc0: 2e72 616e 6b28 293d 3d30 293c 2f64 6976 .rank()==0).
    1854<\n+00044d20: 2f73 7061 6e3e 2020 2020 2020 2020 7374 /span> st\n+00044d30: 643a 3a63 6f75 7426 6c74 3b26 6c74 3b3c d::cout<<<\n+00044d40: 7370 616e 2063 6c61 7373 3d22 7374 7269 span class=\"stri\n+00044d50: 6e67 6c69 7465 7261 6c22 3e26 7175 6f74 ngliteral\">"\n+00044d60: 3b20 5374 6f72 696e 6720 696e 6465 7873 ; Storing indexs\n+00044d70: 6574 7320 746f 6f6b 2026 7175 6f74 3b3c ets took "<\n+00044d80: 2f73 7061 6e3e 266c 743b 266c 743b 3c2f /span><<.
    18\n+00044de0: 3535 3c2f 7370 616e 3e20 2020 2020 2020 55 \n+00044df0: 2074 696d 652e 656c 6170 7365 6428 2926 time.elapsed()&\n+00044e00: 6c74 3b26 6c74 3b73 7464 3a3a 656e 646c lt;<std::endl\n+00044e10: 3b3c 2f64 6976 3e0a 3c64 6976 2063 6c61 ;
    .
    \n+00044e60: 2031 3835 363c 2f73 7061 6e3e 2020 2020 1856 \n+00044e70: 7d3c 2f64 6976 3e0a 3c64 6976 2063 6c61 }
    .
    \n+00044ec0: 2031 3835 373c 2f73 7061 6e3e 203c 2f64 1857 .
    185\n+00044f20: 383c 2f73 7061 6e3e 3c73 7061 6e20 636c 8#ifdef PERF_R\n+00044f50: 4550 4152 543c 2f73 7061 6e3e 3c2f 6469 EPART.
    1859\n+00044fb0: 3c2f 7370 616e 3e20 2020 203c 7370 616e // stop the tim\n+00044fe0: 6520 666f 7220 7374 6570 2034 2920 616e e for step 4) an\n+00044ff0: 6420 7072 696e 7420 7468 6520 7265 7375 d print the resu\n+00045000: 6c74 733c 2f73 7061 6e3e 3c2f 6469 763e lts
    \n+00045010: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+00045040: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1860 t4=MPI_\n+00045070: 5774 696d 6528 292d 7434 3b3c 2f64 6976 Wtime()-t4;.
    1861<\n+000450d0: 2f73 7061 6e3e 2020 2020 7453 756d 203d /span> tSum =\n+000450e0: 2074 3120 2b20 7432 202b 2074 3320 2b20 t1 + t2 + t3 + \n+000450f0: 7434 3b3c 2f64 6976 3e0a 3c64 6976 2063 t4;
    .
    1862 \n+00045150: 2020 7374 643a 3a63 6f75 7426 6c74 3b26 std::cout<&\n+00045160: 6c74 3b73 7464 3a3a 656e 646c 3c2f 6469 lt;std::endl.
    1863\n+000451c0: 3c2f 7370 616e 3e20 2020 2020 2020 2020 \n+000451d0: 2020 2020 266c 743b 266c 743b 6d79 7065 <<mype\n+000451e0: 266c 743b 266c 743b 3c73 7061 6e20 636c <<": WTim\n+00045210: 6520 666f 7220 7374 6570 2031 293a 2026 e for step 1): &\n+00045220: 7175 6f74 3b3c 2f73 7061 6e3e 266c 743b quot;<\n+00045230: 266c 743b 7431 3c2f 6469 763e 0a3c 6469 <t1
    .<\n+00045250: 6120 6964 3d22 6c30 3138 3634 2220 6e61 a id=\"l01864\" na\n+00045260: 6d65 3d22 6c30 3138 3634 223e 3c2f 613e me=\"l01864\">\n+00045270: 3c73 7061 6e20 636c 6173 733d 226c 696e 1864 &l\n+000452a0: 743b 266c 743b 3c73 7061 6e20 636c 6173 t;<" 2): &qu\n+000452d0: 6f74 3b3c 2f73 7061 6e3e 266c 743b 266c ot;<&l\n+000452e0: 743b 7432 3c2f 6469 763e 0a3c 6469 7620 t;t2
    .
    1865 \n+00045340: 2020 2020 2020 2020 2020 2020 266c 743b <\n+00045350: 266c 743b 3c73 7061 6e20 636c 6173 733d <\n+00045370: 2671 756f 743b 2033 293a 2026 7175 6f74 " 3): "\n+00045380: 3b3c 2f73 7061 6e3e 266c 743b 266c 743b ;<<\n+00045390: 7433 3c2f 6469 763e 0a3c 6469 7620 636c t3
    .
    1866 \n+000453f0: 2020 2020 2020 2020 2020 266c 743b 266c <&l\n+00045400: 743b 3c73 7061 6e20 636c 6173 733d 2273 t;&q\n+00045420: 756f 743b 2034 293a 2026 7175 6f74 3b3c uot; 4): "<\n+00045430: 2f73 7061 6e3e 266c 743b 266c 743b 7434 /span><<t4\n+00045440: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00045490: 3138 3637 3c2f 7370 616e 3e20 2020 2020 1867 \n+000454a0: 2020 2020 2020 2020 266c 743b 266c 743b <<\n+000454b0: 3c73 7061 6e20 636c 6173 733d 2273 7472 &quo\n+000454d0: 743b 2074 6f74 616c 3a20 2671 756f 743b t; total: "\n+000454e0: 3c2f 7370 616e 3e26 6c74 3b26 6c74 3b74 <<t\n+000454f0: 5375 6d3c 2f64 6976 3e0a 3c64 6976 2063 Sum
    .
    1868 \n+00045550: 2020 2020 2020 2020 2020 2026 6c74 3b26 <&\n+00045560: 6c74 3b73 7464 3a3a 656e 646c 3b3c 2f64 lt;std::endl;.
    186\n+000455c0: 393c 2f73 7061 6e3e 3c73 7061 6e20 636c 9#endif\n+000455f0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00045640: 3138 3730 3c2f 7370 616e 3e20 3c2f 6469 1870 .
    1871\n+000456a0: 3c2f 7370 616e 3e20 2020 203c 7370 616e return color!=MPI_UN\n+000456e0: 4445 4649 4e45 443b 3c2f 6469 763e 0a3c DEFINED;
    .<\n+000456f0: 6469 7620 636c 6173 733d 226c 696e 6522 div class=\"line\"\n+00045700: 3e3c 6120 6964 3d22 6c30 3138 3732 2220 > 1872
    .
    1873 \n+000457a0: 207d 3c2f 6469 763e 0a3c 2f64 6976 3e0a }
    .
    .\n+000457b0: 3c64 6976 2063 6c61 7373 3d22 6c69 6e65
    <\n+000457e0: 2f61 3e3c 7370 616e 2063 6c61 7373 3d22 /a> 1874#\n+00045820: 656c 7365 3c2f 7370 616e 3e3c 2f64 6976 else.
    1875<\n+00045880: 2f73 7061 6e3e 2020 3c73 7061 6e20 636c /span> te\n+000458a0: 6d70 6c61 7465 3c2f 7370 616e 3e26 6c74 mplate<\n+000458b0: 3b3c 7370 616e 2063 6c61 7373 3d22 6b65 ;class G, cla\n+000458f0: 7373 3c2f 7370 616e 3e20 502c 3c73 7061 ss P,class T\n+00045920: 312c 203c 7370 616e 2063 6c61 7373 3d22 1, class T2, \n+00045960: 636c 6173 733c 2f73 7061 6e3e 2052 2667 class R&g\n+00045970: 743b 3c2f 6469 763e 0a3c 6469 7620 636c t;
    .
    1876 <\n+000459d0: 7370 616e 2063 6c61 7373 3d22 6b65 7977 span class=\"keyw\n+000459e0: 6f72 6474 7970 6522 3e62 6f6f 6c3c 2f73 ordtype\">bool graphRepart\n+00045a00: 6974 696f 6e28 3c73 7061 6e20 636c 6173 ition(cons\n+00045a20: 743c 2f73 7061 6e3e 2047 2661 6d70 3b20 t G& \n+00045a30: 6772 6170 682c 2050 2661 6d70 3b20 6f6f graph, P& oo\n+00045a40: 636f 6d6d 2c20 3c73 7061 6e20 636c 6173 comm, \n+00045a60: 696e 743c 2f73 7061 6e3e 206e 7061 7274 int npart\n+00045a70: 732c 3c2f 6469 763e 0a3c 6469 7620 636c s,
    .
    1877 \n+00045ad0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00045ae0: 2020 2020 2073 7464 3a3a 7368 6172 6564 std::shared\n+00045af0: 5f70 7472 266c 743b 5026 6774 3b26 616d _ptr<P>&am\n+00045b00: 703b 206f 7574 636f 6d6d 2c3c 2f64 6976 p; outcomm,.
    1878<\n+00045b60: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00045b70: 2020 2020 2020 2020 2020 2020 2020 5226 R&\n+00045b80: 616d 703b 2072 6564 6973 7449 6e66 2c3c amp; redistInf,<\n+00045b90: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    1\n+00045be0: 3837 393c 2f73 7061 6e3e 2020 2020 2020 879 \n+00045bf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00045c00: 2020 3c73 7061 6e20 636c 6173 733d 226b bool\n+00045c20: 3c2f 7370 616e 3e20 763d 3c73 7061 6e20 v=\n+00045c40: 6661 6c73 653c 2f73 7061 6e3e 293c 2f64 false).
    188\n+00045ca0: 303c 2f73 7061 6e3e 2020 7b3c 2f64 6976 0 {.
    1881<\n+00045d00: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> if(np\n+00045d30: 6172 7473 213d 6f6f 636f 6d6d 2e73 697a arts!=oocomm.siz\n+00045d40: 6528 2929 3c2f 6469 763e 0a3c 6469 7620 e())
    .
    1882 \n+00045da0: 2020 2020 2044 554e 455f 5448 524f 5728 DUNE_THROW(\n+00045db0: 4e6f 7449 6d70 6c65 6d65 6e74 6564 2c20 NotImplemented, \n+00045dc0: 3c73 7061 6e20 636c 6173 733d 2273 7472 &quo\n+00045de0: 743b 6f6e 6c79 2061 7661 696c 6162 6c65 t;only available\n+00045df0: 2066 6f72 204d 5049 2070 726f 6772 616d for MPI program\n+00045e00: 7326 7175 6f74 3b3c 2f73 7061 6e3e 293b s");\n+00045e10: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+00045e60: 3138 3833 3c2f 7370 616e 3e20 207d 3c2f 1883 }.
    18\n+00045ec0: 3834 3c2f 7370 616e 3e20 3c2f 6469 763e 84
    \n+00045ed0: 0a3c 6469 7620 636c 6173 733d 226c 696e ..<\n+00045f40: 6120 6964 3d22 6c30 3138 3836 2220 6e61 a id=\"l01886\" na\n+00045f50: 6d65 3d22 6c30 3138 3836 223e 3c2f 613e me=\"l01886\">\n+00045f60: 3c73 7061 6e20 636c 6173 733d 226c 696e 1886 templat\n+00045fa0: 653c 2f73 7061 6e3e 266c 743b 3c73 7061 e<class G\n+00045fd0: 2c20 3c73 7061 6e20 636c 6173 733d 226b , class P,cla\n+00046010: 7373 3c2f 7370 616e 3e20 5431 2c20 3c73 ss T1, class\n+00046040: 2054 322c 203c 7370 616e 2063 6c61 7373 T2, class\n+00046060: 3c2f 7370 616e 3e20 5226 6774 3b3c 2f64 R>.
    188\n+000460c0: 373c 2f73 7061 6e3e 2020 3c73 7061 6e20 7 bool \n+000460f0: 3c61 2063 6c61 7373 3d22 636f 6465 2068 commGraphRepart\n+00046150: 6974 696f 6e3c 2f61 3e28 3c73 7061 6e20 ition(\n+00046170: 636f 6e73 743c 2f73 7061 6e3e 2047 2661 const G&a\n+00046180: 6d70 3b20 6772 6170 682c 2050 2661 6d70 mp; graph, P&\n+00046190: 3b20 6f6f 636f 6d6d 2c20 3c73 7061 6e20 ; oocomm, int n\n+000461c0: 7061 7274 732c 3c2f 6469 763e 0a3c 6469 parts,
    .<\n+000461e0: 6120 6964 3d22 6c30 3138 3838 2220 6e61 a id=\"l01888\" na\n+000461f0: 6d65 3d22 6c30 3138 3838 223e 3c2f 613e me=\"l01888\">\n+00046200: 3c73 7061 6e20 636c 6173 733d 226c 696e 1888 \n+00046230: 2020 2020 2020 2020 2020 2020 2073 7464 std\n+00046240: 3a3a 7368 6172 6564 5f70 7472 266c 743b ::shared_ptr<\n+00046250: 5026 6774 3b26 616d 703b 206f 7574 636f P>& outco\n+00046260: 6d6d 2c3c 2f64 6976 3e0a 3c64 6976 2063 mm,
    .
    1889 \n+000462c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000462d0: 2020 2020 2020 2020 2020 5226 616d 703b R&\n+000462e0: 2072 6564 6973 7449 6e66 2c3c 2f64 6976 redistInf,.
    1890<\n+00046340: 2f73 7061 6e3e 2020 2020 2020 2020 2020 /span> \n+00046350: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00046360: 2020 3c73 7061 6e20 636c 6173 733d 226b bool\n+00046380: 3c2f 7370 616e 3e20 763d 3c73 7061 6e20 v=\n+000463a0: 6661 6c73 653c 2f73 7061 6e3e 293c 2f64 false).
    189\n+00046400: 313c 2f73 7061 6e3e 2020 7b3c 2f64 6976 1 {.
    1892<\n+00046460: 2f73 7061 6e3e 2020 2020 3c73 7061 6e20 /span> if(np\n+00046490: 6172 7473 213d 6f6f 636f 6d6d 2e73 697a arts!=oocomm.siz\n+000464a0: 6528 2929 3c2f 6469 763e 0a3c 6469 7620 e())
    .
    1893 \n+00046500: 2020 2020 2044 554e 455f 5448 524f 5728 DUNE_THROW(\n+00046510: 4e6f 7449 6d70 6c65 6d65 6e74 6564 2c20 NotImplemented, \n+00046520: 3c73 7061 6e20 636c 6173 733d 2273 7472 &quo\n+00046540: 743b 6f6e 6c79 2061 7661 696c 6162 6c65 t;only available\n+00046550: 2066 6f72 204d 5049 2070 726f 6772 616d for MPI program\n+00046560: 7326 7175 6f74 3b3c 2f73 7061 6e3e 293b s");\n+00046570: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    \n+000465c0: 3138 3934 3c2f 7370 616e 3e20 207d 3c2f 1894 }.
    18\n+00046620: 3935 3c2f 7370 616e 3e3c 7370 616e 2063 95#endif // HAVE_\n+00046670: 4d50 493c 2f73 7061 6e3e 3c2f 6469 763e MPI
    \n+00046680: 0a3c 6469 7620 636c 6173 733d 226c 696e .
    \n+000466b0: 3c2f 613e 3c73 7061 6e20 636c 6173 733d 1896} // \n+000466f0: 656e 6420 6f66 206e 616d 6573 7061 6365 end of namespace\n+00046700: 2044 756e 653c 2f73 7061 6e3e 3c2f 6469 Dune.
    1897\n+00046760: 3c2f 7370 616e 3e3c 7370 616e 2063 6c61 #endif<\n+00046790: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    \n+00046800: 3c64 6976 2063 6c61 7373 3d22 7474 646f
    Classes provi\n+00046820: 6469 6e67 2063 6f6d 6d75 6e69 6361 7469 ding communicati\n+00046830: 6f6e 2069 6e74 6572 6661 6365 7320 666f on interfaces fo\n+00046840: 7220 6f76 6572 6c61 7070 696e 6720 5363 r overlapping Sc\n+00046850: 6877 6172 7a20 6d65 7468 6f64 732e 3c2f hwarz methods.
    .
    Pro\n+000468e0: 7669 6465 7320 636c 6173 7365 7320 666f vides classes fo\n+000468f0: 7220 6275 696c 6469 6e67 2074 6865 206d r building the m\n+00046900: 6174 7269 7820 6772 6170 682e 3c2f 6469 atrix graph.
    ..\n+00046af0: 4d61 7472 6978 2026 616d 703b 206d 6174 Matrix & mat\n+00046b00: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    Defi\n+00046b20: 6e69 7469 6f6e 3c2f 623e 206d 6174 7269 nition matri\n+00046b30: 786d 6174 7269 782e 6868 3a33 3437 3c2f xmatrix.hh:347
    .
    Dune\n+00046ba0: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    Defi\n+00046bc0: 6e69 7469 6f6e 3c2f 623e 2061 6c6c 6f63 nition alloc\n+00046bd0: 6174 6f72 2e68 683a 3131 3c2f 6469 763e ator.hh:11
    \n+00046be0: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .
    bo\n+00046cb0: 6f6c 2062 7569 6c64 436f 6d6d 756e 6963 ol buildCommunic\n+00046cc0: 6174 696f 6e28 636f 6e73 7420 4720 2661 ation(const G &a\n+00046cd0: 6d70 3b67 7261 7068 2c20 7374 643a 3a76 mp;graph, std::v\n+00046ce0: 6563 746f 7226 6c74 3b20 696e 7420 2667 ector< int &g\n+00046cf0: 743b 2026 616d 703b 7265 616c 7061 7274 t; &realpart\n+00046d00: 732c 2044 756e 653a 3a4f 776e 6572 4f76 s, Dune::OwnerOv\n+00046d10: 6572 6c61 7043 6f70 7943 6f6d 6d75 6e69 erlapCopyCommuni\n+00046d20: 6361 7469 6f6e 266c 743b 2054 312c 2054 cation< T1, T\n+00046d30: 3220 2667 743b 2026 616d 703b 6f6f 636f 2 > &ooco\n+00046d40: 6d6d 2c20 7374 643a 3a73 6861 7265 645f mm, std::shared_\n+00046d50: 7074 7226 6c74 3b20 4475 6e65 3a3a 4f77 ptr< Dune::Ow\n+00046d60: 6e65 724f 7665 726c 6170 436f 7079 436f nerOverlapCopyCo\n+00046d70: 6d6d 756e 6963 6174 696f 6e26 6c74 3b20 mmunication< \n+00046d80: 5431 2c20 5432 2026 6774 3b20 2667 743b T1, T2 > >\n+00046d90: 2026 616d 703b 6f75 7463 6f6d 6d2c 2052 &outcomm, R\n+00046da0: 6564 6973 7472 6962 7574 6549 6e74 6572 edistributeInter\n+00046db0: 6661 6365 2026 616d 703b 7265 6469 7374 face &redist\n+00046dc0: 496e 662c 2062 6f6f 6c20 7665 7262 6f73 Inf, bool verbos\n+00046dd0: 653d 6661 6c73 6529 3c2f 6469 763e 3c64 e=false)
    Definition repartition.h\n+00046e10: 683a 3134 3536 3c2f 6469 763e 3c2f 6469 h:1456
    .
    Dune::fillIn\n+00046ec0: 6465 7853 6574 486f 6c65 733c 2f61 3e3c dexSetHoles<\n+00046ed0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    void fi\n+00046ef0: 6c6c 496e 6465 7853 6574 486f 6c65 7328 llIndexSetHoles(\n+00046f00: 636f 6e73 7420 4720 2661 6d70 3b67 7261 const G &gra\n+00046f10: 7068 2c20 4475 6e65 3a3a 4f77 6e65 724f ph, Dune::OwnerO\n+00046f20: 7665 726c 6170 436f 7079 436f 6d6d 756e verlapCopyCommun\n+00046f30: 6963 6174 696f 6e26 6c74 3b20 5431 2c20 ication< T1, \n+00046f40: 5432 2026 6774 3b20 2661 6d70 3b6f 6f63 T2 > &ooc\n+00046f50: 6f6d 6d29 3c2f 6469 763e 3c64 6976 2063 omm)
    Fil\n+00046f70: 6c73 2074 6865 2068 6f6c 6573 2069 6e20 ls the holes in \n+00046f80: 616e 2069 6e64 6578 2073 6574 2e3c 2f64 an index set.
    Definit\n+00046fb0: 696f 6e3c 2f62 3e20 7265 7061 7274 6974 ion repartit\n+00046fc0: 696f 6e2e 6868 3a38 333c 2f64 6976 3e3c ion.hh:83
    <\n+00046fd0: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.
    <\n+00047030: 6120 6872 6566 3d22 6130 3032 3439 2e68 a href=\"a00249.h\n+00047040: 746d 6c23 6136 3936 6461 3165 6131 3037 tml#a696da1ea107\n+00047050: 3434 3233 3864 6534 3638 3537 3863 3633 44238de468578c63\n+00047060: 6635 3864 3722 3e44 756e 653a 3a63 6f6d f58d7\">Dune::com\n+00047070: 6d47 7261 7068 5265 7061 7274 6974 696f mGraphRepartitio\n+00047080: 6e3c 2f61 3e3c 2f64 6976 3e3c 6469 7620 n
    b\n+000470a0: 6f6f 6c20 636f 6d6d 4772 6170 6852 6570 ool commGraphRep\n+000470b0: 6172 7469 7469 6f6e 2863 6f6e 7374 204d artition(const M\n+000470c0: 2026 616d 703b 6d61 742c 2044 756e 653a &mat, Dune:\n+000470d0: 3a4f 776e 6572 4f76 6572 6c61 7043 6f70 :OwnerOverlapCop\n+000470e0: 7943 6f6d 6d75 6e69 6361 7469 6f6e 266c yCommunication&l\n+000470f0: 743b 2054 312c 2054 3220 2667 743b 2026 t; T1, T2 > &\n+00047100: 616d 703b 6f6f 636f 6d6d 2c20 4d65 7469 amp;oocomm, Meti\n+00047110: 733a 3a69 6478 5f74 206e 7061 7274 732c s::idx_t nparts,\n+00047120: 2073 7464 3a3a 7368 6172 6564 5f70 7472 std::shared_ptr\n+00047130: 266c 743b 2044 756e 653a 3a4f 776e 6572 < Dune::Owner\n+00047140: 4f76 6572 6c61 7043 6f70 7943 6f6d 6d75 OverlapCopyCommu\n+00047150: 6e69 6361 7469 6f6e 266c 743b 2054 312c nication< T1,\n+00047160: 2054 3220 2667 743b 2026 6774 3b20 2661 T2 > > &a\n+00047170: 6d70 3b6f 7574 636f 6d6d 2c20 5265 6469 mp;outcomm, Redi\n+00047180: 7374 7269 6275 7465 496e 7465 7266 6163 stributeInterfac\n+00047190: 6520 2661 6d70 3b72 6564 6973 7449 6e66 e &redistInf\n+000471a0: 2c20 626f 6f6c 2076 6572 626f 7365 3d66 , bool verbose=f\n+000471b0: 616c 7365 293c 2f64 6976 3e3c 6469 7620 alse)
    Definition \n+000471e0: 7265 7061 7274 6974 696f 6e2e 6868 3a38 repartition.hh:8\n+000471f0: 3239 3c2f 6469 763e 3c2f 6469 763e 0a3c 29
    .<\n+00047200: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n+00047210: 6964 3d22 6161 3030 3234 395f 6874 6d6c id=\"aa00249_html\n+00047220: 5f61 3866 6430 3765 6133 6632 3263 6234 _a8fd07ea3f22cb4\n+00047230: 3732 3735 3835 3964 3339 6437 6264 6666 7275859d39d7bdff\n+00047240: 6566 223e 3c64 6976 2063 6c61 7373 3d22 ef\">\n+000472c0: 766f 6964 2070 7269 6e74 5f63 6172 7261 void print_carra\n+000472d0: 7928 5320 2661 6d70 3b6f 732c 2054 202a y(S &os, T *\n+000472e0: 6172 7261 792c 2073 7464 3a3a 7369 7a65 array, std::size\n+000472f0: 5f74 206c 293c 2f64 6976 3e3c 6469 7620 _t l)
    Definition \n+00047320: 7265 7061 7274 6974 696f 6e2e 6868 3a37 repartition.hh:7\n+00047330: 3738 3c2f 6469 763e 3c2f 6469 763e 0a3c 78
    .<\n+00047340: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n+00047350: 6964 3d22 6161 3030 3234 395f 6874 6d6c id=\"aa00249_html\n+00047360: 5f61 6137 3534 6665 3536 6530 3738 6562 _aa754fe56e078eb\n+00047370: 3162 3530 6462 3461 6365 3165 3766 6331 1b50db4ace1e7fc1\n+00047380: 6231 223e 3c64 6976 2063 6c61 7373 3d22 b1\">\n+00047400: 626f 6f6c 2069 7356 616c 6964 4772 6170 bool isValidGrap\n+00047410: 6828 7374 643a 3a73 697a 655f 7420 6e6f h(std::size_t no\n+00047420: 5674 782c 2073 7464 3a3a 7369 7a65 5f74 Vtx, std::size_t\n+00047430: 2067 6e6f 5674 782c 2053 206e 6f45 6467 gnoVtx, S noEdg\n+00047440: 6573 2c20 5420 2a78 6164 6a2c 2054 202a es, T *xadj, T *\n+00047450: 6164 6a6e 6379 2c20 626f 6f6c 2063 6865 adjncy, bool che\n+00047460: 636b 5379 6d6d 6574 7279 293c 2f64 6976 ckSymmetry)
    Definitio\n+00047490: 6e3c 2f62 3e20 7265 7061 7274 6974 696f n repartitio\n+000474a0: 6e2e 6868 3a37 3835 3c2f 6469 763e 3c2f n.hh:785
    .
    Dune::grap\n+00047550: 6852 6570 6172 7469 7469 6f6e 3c2f 613e hRepartition\n+00047560: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    bool g\n+00047580: 7261 7068 5265 7061 7274 6974 696f 6e28 raphRepartition(\n+00047590: 636f 6e73 7420 4720 2661 6d70 3b67 7261 const G &gra\n+000475a0: 7068 2c20 4475 6e65 3a3a 4f77 6e65 724f ph, Dune::OwnerO\n+000475b0: 7665 726c 6170 436f 7079 436f 6d6d 756e verlapCopyCommun\n+000475c0: 6963 6174 696f 6e26 6c74 3b20 5431 2c20 ication< T1, \n+000475d0: 5432 2026 6774 3b20 2661 6d70 3b6f 6f63 T2 > &ooc\n+000475e0: 6f6d 6d2c 204d 6574 6973 3a3a 6964 785f omm, Metis::idx_\n+000475f0: 7420 6e70 6172 7473 2c20 7374 643a 3a73 t nparts, std::s\n+00047600: 6861 7265 645f 7074 7226 6c74 3b20 4475 hared_ptr< Du\n+00047610: 6e65 3a3a 4f77 6e65 724f 7665 726c 6170 ne::OwnerOverlap\n+00047620: 436f 7079 436f 6d6d 756e 6963 6174 696f CopyCommunicatio\n+00047630: 6e26 6c74 3b20 5431 2c20 5432 2026 6774 n< T1, T2 >\n+00047640: 3b20 2667 743b 2026 616d 703b 6f75 7463 ; > &outc\n+00047650: 6f6d 6d2c 2052 6564 6973 7472 6962 7574 omm, Redistribut\n+00047660: 6549 6e74 6572 6661 6365 2026 616d 703b eInterface &\n+00047670: 7265 6469 7374 496e 662c 2062 6f6f 6c20 redistInf, bool \n+00047680: 7665 7262 6f73 653d 6661 6c73 6529 3c2f verbose=false)
    execute a\n+000476b0: 2067 7261 7068 2072 6570 6172 7469 7469 graph repartiti\n+000476c0: 6f6e 2066 6f72 2061 2067 6976 696e 6720 on for a giving \n+000476d0: 6772 6170 6820 616e 6420 696e 6465 7873 graph and indexs\n+000476e0: 6574 2e3c 2f64 6976 3e3c 6469 7620 636c et.
    D\n+00047700: 6566 696e 6974 696f 6e3c 2f62 3e20 7265 efinition re\n+00047710: 7061 7274 6974 696f 6e2e 6868 3a31 3233 partition.hh:123\n+00047720: 353c 2f64 6976 3e3c 2f64 6976 3e0a 3c64 5
    .\n+000477f0: 666c 6f61 7420 7265 616c 5f74 3c2f 6469 float real_t
    Definiti\n+00047820: 6f6e 3c2f 623e 2072 6570 6172 7469 7469 on repartiti\n+00047830: 6f6e 2e68 683a 3533 3c2f 6469 763e 3c2f on.hh:53
    .
    Dune::Meti\n+000478e0: 733a 3a69 6478 5f74 3c2f 613e 3c2f 6469 s::idx_t
    std::size_\n+00047910: 7420 6964 785f 743c 2f64 6976 3e3c 6469 t idx_t
    \n+00047930: 3c62 3e44 6566 696e 6974 696f 6e3c 2f62 Definition repartition.hh\n+00047950: 3a36 333c 2f64 6976 3e3c 2f64 6976 3e0a :63
    .\n+00047960: 3c64 6976 2063 6c61 7373 3d22 7474 6322
    @ owne\n+00047a80: 723c 2f64 6976 3e3c 6469 7620 636c 6173 r
    Def\n+00047aa0: 696e 6974 696f 6e3c 2f62 3e20 6f77 6e65 inition owne\n+00047ab0: 726f 7665 726c 6170 636f 7079 2e68 683a roverlapcopy.hh:\n+00047ac0: 3631 3c2f 6469 763e 3c2f 6469 763e 0a3c 61
    .<\n+00047ad0: 6469 7620 636c 6173 733d 2274 7463 2220 div class=\"ttc\" \n+00047ae0: 6964 3d22 6161 3031 3938 345f 6874 6d6c id=\"aa01984_html\n+00047af0: 223e 3c64 6976 2063 6c61 7373 3d22 7474 \">.
    <\n+00047ce0: 6469 7620 636c 6173 733d 2274 7464 6563 div class=\"ttdec\n+00047cf0: 6922 3e63 6f6e 7374 2047 6c6f 6261 6c4c i\">const GlobalL\n+00047d00: 6f6f 6b75 7049 6e64 6578 5365 7420 2661 ookupIndexSet &a\n+00047d10: 6d70 3b20 676c 6f62 616c 4c6f 6f6b 7570 mp; globalLookup\n+00047d20: 2829 2063 6f6e 7374 3c2f 6469 763e 3c64 () const
    Definition owneroverlapc\n+00047d60: 6f70 792e 6868 3a35 3236 3c2f 6469 763e opy.hh:526
    \n+00047d70: 3c2f 6469 763e 0a3c 6469 7620 636c 6173
    .<\n+00047e40: 6469 7620 636c 6173 733d 2274 7464 6563 div class=\"ttdec\n+00047e50: 6922 3e63 6f6e 7374 2050 6172 616c 6c65 i\">const Paralle\n+00047e60: 6c49 6e64 6578 5365 7420 2661 6d70 3b20 lIndexSet & \n+00047e70: 696e 6465 7853 6574 2829 2063 6f6e 7374 indexSet() const\n+00047e80: 3c2f 6469 763e 3c64 6976 2063 6c61 7373
    Get the\n+00047ea0: 2075 6e64 6572 6c79 696e 6720 7061 7261 underlying para\n+00047eb0: 6c6c 656c 2069 6e64 6578 2073 6574 2e3c llel index set.<\n+00047ec0: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    Defin\n+00047ee0: 6974 696f 6e3c 2f62 3e20 6f77 6e65 726f ition ownero\n+00047ef0: 7665 726c 6170 636f 7079 2e68 683a 3436 verlapcopy.hh:46\n+00047f00: 323c 2f64 6976 3e3c 2f64 6976 3e0a 3c64 2
    .
    v\n+00047ff0: 6f69 6420 636f 7079 436f 7079 546f 416c oid copyCopyToAl\n+00048000: 6c28 636f 6e73 7420 5420 2661 6d70 3b73 l(const T &s\n+00048010: 6f75 7263 652c 2054 2026 616d 703b 6465 ource, T &de\n+00048020: 7374 2920 636f 6e73 743c 2f64 6976 3e3c st) const
    <\n+00048030: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n+00048040: 223e 436f 6d6d 756e 6963 6174 6520 7661 \">Communicate va\n+00048050: 6c75 6573 2066 726f 6d20 636f 7079 2064 lues from copy d\n+00048060: 6174 6120 706f 696e 7473 2074 6f20 616c ata points to al\n+00048070: 6c20 6f74 6865 7220 6461 7461 2070 6f69 l other data poi\n+00048080: 6e74 732e 3c2f 6469 763e 3c64 6976 2063 nts.
    \n+000480a0: 4465 6669 6e69 7469 6f6e 3c2f 623e 206f Definition o\n+000480b0: 776e 6572 6f76 6572 6c61 7063 6f70 792e wneroverlapcopy.\n+000480c0: 6868 3a33 3238 3c2f 6469 763e 3c2f 6469 hh:328
    .<\n+00048290: 2f64 6976 3e0a 3c64 6976 2063 6c61 7373 /div>.\n+00048550: 0a3c 6469 7620 636c 6173 733d 2274 7463 .
    <\n+00048620: 6469 7620 636c 6173 733d 2274 7464 6563 div class=\"ttdec\n+00048630: 6922 3e76 6f69 6420 636f 7079 4f77 6e65 i\">void copyOwne\n+00048640: 7254 6f41 6c6c 2863 6f6e 7374 2054 2026 rToAll(const T &\n+00048650: 616d 703b 736f 7572 6365 2c20 5420 2661 amp;source, T &a\n+00048660: 6d70 3b64 6573 7429 2063 6f6e 7374 3c2f mp;dest) const
    Communica\n+00048690: 7465 2076 616c 7565 7320 6672 6f6d 206f te values from o\n+000486a0: 776e 6572 2064 6174 6120 706f 696e 7473 wner data points\n+000486b0: 2074 6f20 616c 6c20 6f74 6865 7220 6461 to all other da\n+000486c0: 7461 2070 6f69 6e74 732e 3c2f 6469 763e ta points.
    \n+000486d0: 3c64 6976 2063 6c61 7373 3d22 7474 6465
    Definition\n+000486f0: 3c2f 623e 206f 776e 6572 6f76 6572 6c61 owneroverla\n+00048700: 7063 6f70 792e 6868 3a33 3131 3c2f 6469 pcopy.hh:311
    .
    const \n+00048800: 5265 6d6f 7465 496e 6469 6365 7320 2661 RemoteIndices &a\n+00048810: 6d70 3b20 7265 6d6f 7465 496e 6469 6365 mp; remoteIndice\n+00048820: 7328 2920 636f 6e73 743c 2f64 6976 3e3c s() const
    <\n+00048830: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n+00048840: 223e 4765 7420 7468 6520 756e 6465 726c \">Get the underl\n+00048850: 7969 6e67 2072 656d 6f74 6520 696e 6469 ying remote indi\n+00048860: 6365 732e 3c2f 6469 763e 3c64 6976 2063 ces.
    \n+00048880: 4465 6669 6e69 7469 6f6e 3c2f 623e 206f Definition o\n+00048890: 776e 6572 6f76 6572 6c61 7063 6f70 792e wneroverlapcopy.\n+000488a0: 6868 3a34 3731 3c2f 6469 763e 3c2f 6469 hh:471
    .
    Dune::OwnerO\n+00048950: 7665 726c 6170 436f 7079 436f 6d6d 756e verlapCopyCommun\n+00048960: 6963 6174 696f 6e3a 3a66 7265 6547 6c6f ication::freeGlo\n+00048970: 6261 6c4c 6f6f 6b75 703c 2f61 3e3c 2f64 balLookup
    void free\n+000489a0: 476c 6f62 616c 4c6f 6f6b 7570 2829 3c2f GlobalLookup()
    Defini\n+000489d0: 7469 6f6e 3c2f 623e 206f 776e 6572 6f76 tion ownerov\n+000489e0: 6572 6c61 7063 6f70 792e 6868 3a35 3230 erlapcopy.hh:520\n+000489f0: 3c2f 6469 763e 3c2f 6469 763e 0a3c 6469
    .Dune::ParallelI\n+00048af0: 6e64 6578 5365 7426 6c74 3b20 476c 6f62 ndexSet< Glob\n+00048b00: 616c 4964 5479 7065 2c20 4c49 2c20 3531 alIdType, LI, 51\n+00048b10: 3220 2667 743b 2050 6172 616c 6c65 6c49 2 > ParallelI\n+00048b20: 6e64 6578 5365 743c 2f64 6976 3e3c 6469 ndexSet
    \n+00048b40: 5468 6520 7479 7065 206f 6620 7468 6520 The type of the \n+00048b50: 7061 7261 6c6c 656c 2069 6e64 6578 2073 parallel index s\n+00048b60: 6574 2e3c 2f64 6976 3e3c 6469 7620 636c et.
    D\n+00048b80: 6566 696e 6974 696f 6e3c 2f62 3e20 6f77 efinition ow\n+00048b90: 6e65 726f 7665 726c 6170 636f 7079 2e68 neroverlapcopy.h\n+00048ba0: 683a 3434 393c 2f64 6976 3e3c 2f64 6976 h:449
    .
    <\n+00048c20: 6469 7620 636c 6173 733d 2274 7464 6f63 div class=\"ttdoc\n+00048c30: 223e 5468 6520 2875 6e64 6972 6563 7465 \">The (undirecte\n+00048c40: 6429 2067 7261 7068 206f 6620 6120 6d61 d) graph of a ma\n+00048c50: 7472 6978 2e3c 2f64 6976 3e3c 6469 7620 trix.
    Definition \n+00048c80: 6772 6170 682e 6868 3a35 313c 2f64 6976 graph.hh:51
    .
    <\n+00048cd0: 6120 6872 6566 3d22 6130 3236 3430 2e68 a href=\"a02640.h\n+00048ce0: 746d 6c22 3e44 756e 653a 3a52 6564 6973 tml\">Dune::Redis\n+00048cf0: 7472 6962 7574 6549 6e74 6572 6661 6365 tributeInterface\n+00048d00: 3c2f 613e 3c2f 6469 763e 3c64 6976 2063
    \n+00048d20: 4465 6669 6e69 7469 6f6e 3c2f 623e 2072 Definition r\n+00048d30: 6570 6172 7469 7469 6f6e 2e68 683a 3236 epartition.hh:26\n+00048d40: 303c 2f64 6976 3e3c 2f64 6976 3e0a 3c64 0
    .
    D\n+00048de0: 756e 653a 3a52 6564 6973 7472 6962 7574 une::Redistribut\n+00048df0: 6549 6e74 6572 6661 6365 3a3a 7265 7365 eInterface::rese\n+00048e00: 7276 6553 7061 6365 466f 7252 6563 6569 rveSpaceForRecei\n+00048e10: 7665 496e 7465 7266 6163 653c 2f61 3e3c veInterface<\n+00048e20: 2f64 6976 3e3c 6469 7620 636c 6173 733d /div>
    void re\n+00048e40: 7365 7276 6553 7061 6365 466f 7252 6563 serveSpaceForRec\n+00048e50: 6569 7665 496e 7465 7266 6163 6528 696e eiveInterface(in\n+00048e60: 7420 7072 6f63 2c20 696e 7420 7369 7a65 t proc, int size\n+00048e70: 293c 2f64 6976 3e3c 6469 7620 636c 6173 )
    Def\n+00048e90: 696e 6974 696f 6e3c 2f62 3e20 7265 7061 inition repa\n+00048ea0: 7274 6974 696f 6e2e 6868 3a32 3834 3c2f rtition.hh:284
    ..\n+00049120: 7e52 6564 6973 7472 6962 7574 6549 6e74 ~RedistributeInt\n+00049130: 6572 6661 6365 2829 3c2f 6469 763e 3c64 erface()
    Definition repartition.h\n+00049170: 683a 3330 313c 2f64 6976 3e3c 2f64 6976 h:301
    .
    .
    <\n+00049310: 6469 7620 636c 6173 733d 2274 746e 616d div class=\"ttnam\n+00049320: 6522 3e3c 6120 6872 6566 3d22 6130 3236 e\">Dune:\n+00049360: 3a52 6564 6973 7472 6962 7574 6549 6e74 :RedistributeInt\n+00049370: 6572 6661 6365 3a3a 6275 696c 6453 656e erface::buildSen\n+00049380: 6449 6e74 6572 6661 6365 3c2f 613e 3c2f dInterface
    void bui\n+000493b0: 6c64 5365 6e64 496e 7465 7266 6163 6528 ldSendInterface(\n+000493c0: 636f 6e73 7420 7374 643a 3a76 6563 746f const std::vecto\n+000493d0: 7226 6c74 3b20 696e 7420 2667 743b 2026 r< int > &\n+000493e0: 616d 703b 746f 5061 7274 2c20 636f 6e73 amp;toPart, cons\n+000493f0: 7420 4953 2026 616d 703b 6964 7873 6574 t IS &idxset\n+00049400: 293c 2f64 6976 3e3c 6469 7620 636c 6173 )
    Def\n+00049420: 696e 6974 696f 6e3c 2f62 3e20 7265 7061 inition repa\n+00049430: 7274 6974 696f 6e2e 6868 3a32 3636 3c2f rtition.hh:266
    .
    \n+00049490: 3c64 6976 2063 6c61 7373 3d22 7474 6e61
    Dune\n+000494e0: 3a3a 5265 6469 7374 7269 6275 7465 496e ::RedistributeIn\n+000494f0: 7465 7266 6163 653a 3a61 6464 5265 6365 terface::addRece\n+00049500: 6976 6549 6e64 6578 3c2f 613e 3c2f 6469 iveIndex
    void addRe\n+00049530: 6365 6976 6549 6e64 6578 2869 6e74 2070 ceiveIndex(int p\n+00049540: 726f 632c 2073 7464 3a3a 7369 7a65 5f74 roc, std::size_t\n+00049550: 2069 6478 293c 2f64 6976 3e3c 6469 7620 idx)
    Definition \n+00049580: 7265 7061 7274 6974 696f 6e2e 6868 3a32 repartition.hh:2\n+00049590: 3838 3c2f 6469 763e 3c2f 6469 763e 0a3c 88
    .<\n+000495a0: 2f64 6976 3e3c 212d 2d20 6672 6167 6d65 /div>
    ..
    .Gen\n+00049620: 6572 6174 6564 2062 7926 2331 3630 3b3c erated by <\n+00049630: 6120 6872 6566 3d22 6874 7470 733a 2f2f a href=\"https://\n+00049640: 7777 772e 646f 7879 6765 6e2e 6f72 672f www.doxygen.org/\n+00049650: 696e 6465 782e 6874 6d6c 223e 3c69 6d67 index.html\"> 1.\n+000496b0: 392e 380a 3c2f 736d 616c 6c3e 3c2f 6164 9.8...<\n+000496d0: 2f68 746d 6c3e 0a /html>.\n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,502 +1,1986 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-spqr.hh\n+repartition.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_SPQR_HH\n-6#define DUNE_ISTL_SPQR_HH\n+5#ifndef DUNE_ISTL_REPARTITION_HH\n+6#define DUNE_ISTL_REPARTITION_HH\n 7\n-8#if HAVE_SUITESPARSE_SPQR || defined DOXYGEN\n-9\n-10#include \n-11#include \n+8#include \n+9#include \n+10#include \n+11#include \n 12\n-13#include \n-14\n-15#include \n-16\n-17#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh>\n-18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n-19#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-20#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh>\n-21\n-22namespace _\bD_\bu_\bn_\be {\n-34 // forward declarations\n-35 template\n-36 class SeqOverlappingSchwarz;\n-37\n-38 template\n-39 struct SeqOverlappingSchwarzAssemblerHelper;\n-40\n-46 template\n-_\b4_\b7 class _\bS_\bP_\bQ_\bR\n-48 {};\n-49\n-63 template\n-_\b6_\b4 class _\bS_\bP_\bQ_\bR<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A > >\n-65 : public _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br, typename std::\n-allocator_traits::template rebind_alloc > >,\n-66 BlockVector, typename std::allocator_traits::template\n-rebind_alloc > > >\n-67 {\n-68 public:\n-_\b7_\b0 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n-_\b7_\b1 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n-_\b7_\b3 typedef ISTL::Impl::BCCSMatrix _\bS_\bP_\bQ_\bR_\bM_\ba_\bt_\br_\bi_\bx;\n-_\b7_\b5 typedef ISTL::Impl::BCCSMatrixInitializer,A>,\n-int> _\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n-_\b7_\b7 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bm_\b>, typename std::\n-allocator_traits::template rebind_alloc > > _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-_\b7_\b9 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bF_\bi_\be_\bl_\bd_\bV_\be_\bc_\bt_\bo_\br_\b<_\bT_\b,_\bn_\b>, typename std::\n-allocator_traits::template rebind_alloc > > _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-80\n-_\b8_\b2 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-83 {\n-84 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-85 }\n-86\n-_\b9_\b5 _\bS_\bP_\bQ_\bR(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, int verbose=0) : matrixIsLoaded_(false), verbose_\n-(verbose)\n-96 {\n-97 //check whether T is a supported type\n-98 static_assert((std::is_same::value) || (std::is_same >::value),\n-99 \"Unsupported Type in SPQR (only double and std::complex\n-supported)\");\n-100 cc_ = new cholmod_common();\n-101 cholmod_l_start(cc_);\n-102 setMatrix(matrix);\n-103 }\n-104\n-_\b1_\b1_\b3 _\bS_\bP_\bQ_\bR(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, int verbose, bool) : matrixIsLoaded_(false),\n-verbose_(verbose)\n-114 {\n-115 //check whether T is a supported type\n-116 static_assert((std::is_same::value) || (std::is_same >::value),\n-117 \"Unsupported Type in SPQR (only double and std::complex\n-supported)\");\n-118 cc_ = new cholmod_common();\n-119 cholmod_l_start(cc_);\n-120 setMatrix(matrix);\n-121 }\n-122\n-_\b1_\b3_\b2 _\bS_\bP_\bQ_\bR(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, const ParameterTree& config)\n-133 : _\bS_\bP_\bQ_\bR(matrix, config._\bg_\be_\bt(\"verbose\", 0))\n-134 {}\n-135\n-_\b1_\b3_\b7 _\bS_\bP_\bQ_\bR() : matrixIsLoaded_(false), verbose_(0)\n-138 {\n-139 //check whether T is a supported type\n-140 static_assert((std::is_same::value) || (std::is_same >::value),\n-141 \"Unsupported Type in SPQR (only double and std::complex\n-supported)\");\n-142 cc_ = new cholmod_common();\n-143 cholmod_l_start(cc_);\n-144 }\n+13#if HAVE_PARMETIS\n+14// Explicitly use C linkage as scotch does not extern \"C\" in its headers.\n+15// Works because ParMETIS/METIS checks whether compiler is C++ and otherwise\n+16// does not use extern \"C\". Therfore no nested extern \"C\" will be created\n+17extern \"C\"\n+18{\n+19#include \n+20}\n+21#endif\n+22\n+23#include \n+24#include \n+25#include \n+26#include \n+27#include \n+28#include \n+29#include \n+30#include \n+31#include \n+32\n+33#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n+34#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh>\n+35\n+44namespace _\bD_\bu_\bn_\be\n+45{\n+_\b4_\b6 namespace Metis\n+47 {\n+48 // Explicitly specify a real_t and idx_t for older (Par)METIS versions that\n+do not\n+49 // provide these typedefs\n+50#if HAVE_PARMETIS && defined(REALTYPEWIDTH)\n+51 using _\br_\be_\ba_\bl_\b__\bt = _\b:_\b:_\br_\be_\ba_\bl_\b__\bt;\n+52#else\n+_\b5_\b3 using _\br_\be_\ba_\bl_\b__\bt = float;\n+54#endif\n+55\n+56#if HAVE_PARMETIS && defined(IDXTYPEWIDTH)\n+57 using _\bi_\bd_\bx_\b__\bt = _\b:_\b:_\bi_\bd_\bx_\b__\bt;\n+58#elif HAVE_PARMETIS && defined(HAVE_SCOTCH_NUM_TYPE)\n+59 using _\bi_\bd_\bx_\b__\bt = SCOTCH_Num;\n+60#elif HAVE_PARMETIS\n+61 using _\bi_\bd_\bx_\b__\bt = int;\n+62#else\n+_\b6_\b3 using _\bi_\bd_\bx_\b__\bt = std::size_t;\n+64#endif\n+65 }\n+66\n+67\n+68#if HAVE_MPI\n+82 template\n+_\b8_\b3 void _\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs(const G& graph, _\bD_\bu_\bn_\be_\b:_\b:\n+_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm)\n+84 {\n+85 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:\n+_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt IndexSet;\n+86 typedef typename IndexSet::LocalIndex::Attribute Attribute;\n+87\n+88 IndexSet& indexSet = oocomm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt();\n+89 const typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:\n+_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& lookup =oocomm._\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp();\n+90\n+91 std::size_t sum=0, needed = graph.noVertices()-indexSet.size();\n+92 std::vector neededall(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size(), 0);\n+93\n+94 MPI_Allgather(&needed, 1, MPITraits::getType() , &(neededall\n+[0]), 1, MPITraits::getType(), oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br());\n+95 for(int i=0; iglobal());\n+107\n+108 //Process p creates global indices consecutively\n+109 //starting atmaxgi+\\sum_{i=1}^p neededall[i]\n+110 // All created indices are owned by the process\n+111 maxgi=oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().max(maxgi);\n+112 ++maxgi; //Sart with the next free index.\n+113\n+114 for(int i=0; i > > globalIndices;\n+119 storeGlobalIndicesOfRemoteIndices(globalIndices, oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs());\n+120 indexSet.beginResize();\n+121\n+122 for(auto vertex = graph.begin(), vend=graph.end(); vertex != vend;\n+++vertex) {\n+123 const typename IndexSet::IndexPair* pair=lookup.pair(*vertex);\n+124 if(pair==0) {\n+125 // No index yet, add new one\n+126 indexSet.add(maxgi, typename IndexSet::LocalIndex(*vertex,\n+_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br, false));\n+127 ++maxgi;\n+128 }\n+129 }\n+130\n+131 indexSet.endResize();\n+132\n+133 repairLocalIndexPointers(globalIndices, oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs(), indexSet);\n+134\n+135 oocomm._\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp();\n+136 oocomm._\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp();\n+137#ifdef DEBUG_REPART\n+138 std::cout<<\"Holes are filled!\"< 0) || matrixIsLoaded_)\n-150 free();\n-151 cholmod_l_finish(cc_);\n-152 }\n-153\n-_\b1_\b5_\b5 virtual void _\ba_\bp_\bp_\bl_\by(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt&\n-res)\n+146 class ParmetisDuneIndexMap\n+147 {\n+148 public:\n+149 template\n+150 ParmetisDuneIndexMap(const Graph& graph, const OOComm& com);\n+151 int toParmetis(int i) const\n+152 {\n+153 return duneToParmetis[i];\n+154 }\n+155 int toLocalParmetis(int i) const\n 156 {\n-157 const std::size_t numRows(spqrMatrix_.N());\n-158 // fill B\n-159 for(std::size_t k = 0; k != numRows/n; ++k)\n-160 for (int l = 0; l < n; ++l)\n-161 (static_cast(B_->x))[n*k+l] = b[k][l];\n-162\n-163 cholmod_dense* BTemp = B_;\n-164 B_ = SuiteSparseQR_qmult(0, spqrfactorization_, B_, cc_);\n-165 cholmod_dense* X = SuiteSparseQR_solve(1, spqrfactorization_, B_, cc_);\n-166 cholmod_l_free_dense(&BTemp, cc_);\n-167\n-168 const std::size_t numCols(spqrMatrix_.M());\n-169 // fill x\n-170 for(std::size_t k = 0; k != numCols/m; ++k)\n-171 for (int l = 0; l < m; ++l)\n-172 x[k][l] = (static_cast(X->x))[m*k+l];\n-173\n-174 cholmod_l_free_dense(&X, cc_);\n-175 // this is a direct solver\n-176 res._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs = 1;\n-177 res._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = true;\n-178 if(verbose_ > 0)\n-179 {\n-180 std::cout<SPQR_flopcount<SPQR_analyze_time<<\" s\"<SPQR_factorize_time<<\" s\"<SPQR_solve_time<<\" s\"<memory_usage<<\" bytes\"<SPQR_istat[4]<::size_type numOfOwnVtx() const\n+168 {\n+169 return parmetisToDune.size();\n+170 }\n+171 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt* vtxDist()\n+172 {\n+173 return &vtxDist_[0];\n+174 }\n+_\b1_\b7_\b5 int _\bg_\bl_\bo_\bb_\ba_\bl_\bO_\bw_\bn_\be_\br_\bV_\be_\br_\bt_\bi_\bc_\be_\bs;\n+176 private:\n+177 int base_;\n+178 std::vector duneToParmetis;\n+179 std::vector parmetisToDune;\n+180 // range of vertices for processor i: vtxdist[i] to vtxdist[i+1] (parmetis\n+global)\n+181 std::vector vtxDist_;\n+182 };\n+183\n+184 template\n+185 ParmetisDuneIndexMap::ParmetisDuneIndexMap(const G& graph, const OOComm&\n+oocomm)\n+186 : duneToParmetis(graph.noVertices(), -1), vtxDist_(oocomm.communicator\n+().size()+1)\n+187 {\n+188 int npes=oocomm.communicator().size(), mype=oocomm.communicator().rank();\n 189\n-_\b1_\b9_\b1 virtual void _\ba_\bp_\bp_\bl_\by (_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& x, _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& b, [[maybe_unused]] double\n-reduction, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n-192 {\n-193 apply(x, b, res);\n-194 }\n-195\n-_\b1_\b9_\b6 void _\bs_\be_\bt_\bO_\bp_\bt_\bi_\bo_\bn([[maybe_unused]] unsigned int option, [[maybe_unused]]\n-double value)\n-197 {}\n-198\n-_\b2_\b0_\b0 void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& matrix)\n-201 {\n-202 if ((spqrMatrix_.N() + spqrMatrix_.M() > 0) || matrixIsLoaded_)\n-203 free();\n-204\n-205 if (spqrMatrix_.N() + spqrMatrix_.M() + spqrMatrix_.nonzeroes() != 0)\n-206 spqrMatrix_.free();\n-207 spqrMatrix_.setSize(_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(matrix),\n-208 _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(matrix));\n-209 ISTL::Impl::BCCSMatrixInitializer initializer(spqrMatrix_);\n-210\n-211 copyToBCCSMatrix(initializer, matrix);\n-212\n-213 decompose();\n-214 }\n-215\n-216 template\n-_\b2_\b1_\b7 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const _\bM_\ba_\bt_\br_\bi_\bx& matrix, const S& rowIndexSet)\n-218 {\n-219 if ((spqrMatrix_.N() + spqrMatrix_.M() > 0) || matrixIsLoaded_)\n-220 free();\n+190 typedef typename OOComm::OwnerSet OwnerSet;\n+191\n+192 int numOfOwnVtx=0;\n+193 auto end = oocomm.indexSet().end();\n+194 for(auto index = oocomm.indexSet().begin(); index != end; ++index) {\n+195 if (OwnerSet::contains(index->local().attribute())) {\n+196 numOfOwnVtx++;\n+197 }\n+198 }\n+199 parmetisToDune.resize(numOfOwnVtx);\n+200 std::vector globalNumOfVtx(npes);\n+201 // make this number available to all processes\n+202 MPI_Allgather(&numOfOwnVtx, 1, MPI_INT, &(globalNumOfVtx[0]), 1, MPI_INT,\n+oocomm.communicator());\n+203\n+204 int base=0;\n+205 vtxDist_[0] = 0;\n+206 for(int i=0; i_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n-(matrix) / matrix._\bN(),\n-226 rowIndexSet.size()*_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(matrix) / matrix._\bM());\n-227 ISTL::Impl::BCCSMatrixInitializer initializer(spqrMatrix_);\n-228\n-229 copyToBCCSMatrix(initializer, ISTL::Impl::MatrixRowSubset<_\bM_\ba_\bt_\br_\bi_\bx,std::\n-set >(matrix,rowIndexSet));\n-230\n-231 decompose();\n-232 }\n-233\n-_\b2_\b3_\b8 inline void _\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by(int v)\n-239 {\n-240 verbose_=v;\n-241 }\n-242\n-_\b2_\b4_\b7 inline SuiteSparseQR_factorization* _\bg_\be_\bt_\bF_\ba_\bc_\bt_\bo_\br_\bi_\bz_\ba_\bt_\bi_\bo_\bn()\n-248 {\n-249 return spqrfactorization_;\n-250 }\n-251\n-_\b2_\b5_\b6 inline _\bS_\bP_\bQ_\bR_\bM_\ba_\bt_\br_\bi_\bx& _\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx()\n-257 {\n-258 return spqrMatrix_;\n-259 }\n-260\n-_\b2_\b6_\b5 void _\bf_\br_\be_\be()\n-266 {\n-267 cholmod_l_free_sparse(&A_, cc_);\n-268 cholmod_l_free_dense(&B_, cc_);\n-269 SuiteSparseQR_free(&spqrfactorization_, cc_);\n-270 spqrMatrix_.free();\n-271 matrixIsLoaded_ = false;\n-272 }\n+222 // Traverse the graph and assign a new consecutive number/index\n+223 // starting by \"base\" to all owner vertices.\n+224 // The new index is used as the ParMETIS global index and is\n+225 // stored in the vector \"duneToParmetis\"\n+226 auto vend = graph.end();\n+227 for(auto vertex = graph.begin(); vertex != vend; ++vertex) {\n+228 const typename OOComm::ParallelIndexSet::IndexPair*\n+index=oocomm.globalLookup().pair(*vertex);\n+229 assert(index);\n+230 if (OwnerSet::contains(index->local().attribute())) {\n+231 // assign and count the index\n+232 parmetisToDune[base-base_]=index->local();\n+233 duneToParmetis[index->local()] = base++;\n+234 }\n+235 }\n+236\n+237 // At this point, every process knows the ParMETIS global index\n+238 // of it's owner vertices. The next step is to get the\n+239 // ParMETIS global index of the overlap vertices from the\n+240 // associated processes. To do this, the Dune::Interface class\n+241 // is used.\n+242#ifdef DEBUG_REPART\n+243 std::cout <\n+_\b2_\b6_\b6 void _\bb_\bu_\bi_\bl_\bd_\bS_\be_\bn_\bd_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be(const std::vector& toPart, const IS& idxset)\n+267 {\n+268 std::map sizes;\n+269\n+270 for(auto i=idxset.begin(), end=idxset.end(); i!=end; ++i)\n+271 if(Flags::contains(i->local().attribute()))\n+272 ++sizes[toPart[i->local()]];\n 273\n-_\b2_\b7_\b5 inline const char* _\bn_\ba_\bm_\be()\n-276 {\n-277 return \"SPQR\";\n-278 }\n-279\n-280 private:\n-281 template\n-_\b2_\b8_\b2 friend class _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz;\n+274 // Allocate the necessary space\n+275 for(auto i=sizes.begin(), end=sizes.end(); i!=end; ++i)\n+276 interfaces()[i->first].first.reserve(i->second);\n+277\n+278 //Insert the interface information\n+279 for(auto i=idxset.begin(), end=idxset.end(); i!=end; ++i)\n+280 if(Flags::contains(i->local().attribute()))\n+281 interfaces()[toPart[i->local()]].first.add(i->local());\n+282 }\n 283\n-284 friend struct _\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br<_\bS_\bP_\bQ_\bR<_\bM_\ba_\bt_\br_\bi_\bx>,true>;\n-285\n-287 void decompose()\n-288 {\n-289 const std::size_t nrows(spqrMatrix_.N());\n-290 const std::size_t ncols(spqrMatrix_.M());\n-291 const std::size_t nnz(spqrMatrix_.getColStart()[ncols]);\n-292\n-293 // initialise the matrix A (sorted, packed, unsymmetric, real entries)\n-294 A_ = cholmod_l_allocate_sparse(nrows, ncols, nnz, 1, 1, 0, 1, cc_);\n-295\n-296 // copy all the entries of Ap, Ai, Ax\n-297 for(std::size_t k = 0; k != (ncols+1); ++k)\n-298 (static_cast(A_->p))[k] = spqrMatrix_.getColStart()[k];\n-299\n-300 for(std::size_t k = 0; k != nnz; ++k)\n-301 {\n-302 (static_cast(A_->i))[k] = spqrMatrix_.getRowIndex()[k];\n-303 (static_cast(A_->x))[k] = spqrMatrix_.getValues()[k];\n-304 }\n+_\b2_\b8_\b4 void _\br_\be_\bs_\be_\br_\bv_\be_\bS_\bp_\ba_\bc_\be_\bF_\bo_\br_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be(int proc, int size)\n+285 {\n+286 interfaces()[proc].second.reserve(size);\n+287 }\n+_\b2_\b8_\b8 void _\ba_\bd_\bd_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bd_\be_\bx(int proc, std::size_t idx)\n+289 {\n+290 interfaces()[proc].second.add(idx);\n+291 }\n+292 template\n+_\b2_\b9_\b3 void _\bb_\bu_\bi_\bl_\bd_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be(std::vector >& indices)\n+294 {\n+295 std::size_t i=0;\n+296 for(auto idx=indices.begin(); idx!= indices.end(); ++idx) {\n+297 interfaces()[idx->second].second.add(i++);\n+298 }\n+299 }\n+300\n+_\b3_\b0_\b1 _\b~_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be()\n+302 {}\n+303\n+304 };\n 305\n-306 // initialise the vector B\n-307 B_ = cholmod_l_allocate_dense(nrows, 1, nrows, A_->xtype, cc_);\n-308 // compute factorization of A\n-309 spqrfactorization_=SuiteSparseQR_factorize\n-(SPQR_ORDERING_DEFAULT,SPQR_DEFAULT_TOL,A_,cc_);\n-310 }\n-311\n-312 SPQRMatrix spqrMatrix_;\n-313 bool matrixIsLoaded_;\n-314 int verbose_;\n-315 cholmod_common* cc_;\n-316 cholmod_sparse* A_;\n-317 cholmod_dense* B_;\n-318 SuiteSparseQR_factorization* spqrfactorization_;\n-319 };\n-320\n-321 template\n-_\b3_\b2_\b2 struct _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br<_\bS_\bP_\bQ_\bR<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx > >\n-323 {\n-_\b3_\b2_\b4 enum {_\bv_\ba_\bl_\bu_\be = true};\n-325 };\n-326\n-327 template\n-_\b3_\b2_\b8 struct _\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd<_\bS_\bP_\bQ_\bR<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx > >\n-329 {\n-_\b3_\b3_\b0 enum {_\bv_\ba_\bl_\bu_\be = true};\n-331 };\n-332\n-_\b3_\b3_\b3 struct _\bS_\bP_\bQ_\bR_\bC_\br_\be_\ba_\bt_\bo_\br {\n-_\b3_\b3_\b4 template struct _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk : std::false_type{};\n-335\n-336 template\n-337 std::shared_ptr::type,\n-338 typename Dune::TypeListElement<2, TL>::type>>\n-_\b3_\b3_\b9 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& _\bm_\ba_\bt, const Dune::ParameterTree& config,\n-340 std::enable_if_t<\n-341 _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk::type::block_type>::\n-value,int> = 0) const\n-342 {\n-343 int verbose = config.get(\"verbose\", 0);\n-344 return std::make_shared>(_\bm_\ba_\bt,verbose);\n-345 }\n-346\n-347 // second version with SFINAE to validate the template parameters of SPQR\n-348 template\n-349 std::shared_ptr::type,\n-350 typename Dune::TypeListElement<2, TL>::type>>\n-_\b3_\b5_\b1 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)_\b (TL /*tl*/, const M& /*mat*/, const Dune::ParameterTree& /\n-*config*/,\n-352 std::enable_if_t::\n-type::block_type>::value,int> = 0) const\n-353 {\n-354 DUNE_THROW(_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be,\n-355 \"Unsupported Type in SPQR (only double and std::complex\n-supported)\");\n-356 }\n-357 };\n-_\b3_\b5_\b8 template<> struct _\bS_\bP_\bQ_\bR_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk> : std::\n-true_type{};\n-359 // std::complex is temporary disabled, because it fails if libc++ is used\n-360 //template<> struct SPQRCreator::isValidMatrixBlock,1,1>> : std::true_type{};\n-_\b3_\b6_\b1 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR(\"spqr\", _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\bC_\br_\be_\ba_\bt_\bo_\br());\n-362\n-363} // end namespace Dune\n-364\n-365\n-366#endif //HAVE_SUITESPARSE_SPQR\n-367#endif //DUNE_ISTL_SPQR_HH\n-_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bD_\bI_\bR_\bE_\bC_\bT_\b__\bS_\bO_\bL_\bV_\bE_\bR\n-#define DUNE_REGISTER_DIRECT_SOLVER(name,...)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:13\n-_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n-Implementations of the inverse operator interface.\n-_\bs_\bo_\bl_\bv_\be_\br_\bf_\ba_\bc_\bt_\bo_\br_\by_\b._\bh_\bh\n-_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\bi_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b._\bh_\bh\n-_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n-Templates characterizing the type of a solver.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n-Dune::BCRSMatrix< FieldMatrix< T, n, m >, A > matrix_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:71\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\b~_\bS_\bP_\bQ_\bR\n-virtual ~SPQR()\n-Destructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:147\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bP_\bQ_\bR\n-SPQR(const Matrix &matrix, int verbose, bool)\n-Constructor for compatibility with SuperLU standard constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:113\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const\n-Category of the solver (see SolverCategory::Category)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx\n-SPQRMatrix & getInternalMatrix()\n-Return the column coppressed matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:256\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-void setMatrix(const Matrix &matrix)\n-Initialize data from given matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:200\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-ISTL::Impl::BCCSMatrixInitializer< BCRSMatrix< FieldMatrix< T, n, m >, A >, int\n-> MatrixInitializer\n-Type of an associated initializer class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n-Dune::BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n-The matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bP_\bQ_\bR\n-SPQR()\n-Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:137\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n-std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL\n->::type, typename Dune::TypeListElement< 2, TL >::type > > operator()(TL, const\n-M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock<\n-typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0)\n-const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:339\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bn_\ba_\bm_\be\n-const char * name()\n-Get method name.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:275\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bF_\ba_\bc_\bt_\bo_\br_\bi_\bz_\ba_\bt_\bi_\bo_\bn\n-SuiteSparseQR_factorization< T > * getFactorization()\n-Return the matrix factorization.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:247\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bV_\be_\br_\bb_\bo_\bs_\bi_\bt_\by\n-void setVerbosity(int v)\n-Sets the verbosity level for the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:238\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bP_\bQ_\bR_\bM_\ba_\bt_\br_\bi_\bx\n-ISTL::Impl::BCCSMatrix< T, int > SPQRMatrix\n-The corresponding SuperLU Matrix type.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(domain_type &x, range_type &b, double reduction,\n-InverseOperatorResult &res)\n-apply inverse operator, with given convergence criteria.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:191\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\br_\be_\be\n-void free()\n-Free allocated space.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:265\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bP_\bQ_\bR\n-SPQR(const Matrix &matrix, const ParameterTree &config)\n-Constructs the SPQR solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:132\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Dune::BlockVector< FieldVector< T, n >, typename std::allocator_traits< A >::\n-template rebind_alloc< FieldVector< T, n > > > range_type\n-The type of the range of the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:79\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n-void setSubMatrix(const Matrix &matrix, const S &rowIndexSet)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:217\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-Dune::BlockVector< FieldVector< T, m >, typename std::allocator_traits< A >::\n-template rebind_alloc< FieldVector< T, m > > > domain_type\n-The type of the domain of the solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:77\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(domain_type &x, range_type &b, InverseOperatorResult &res)\n-Apply inverse operator,.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:155\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\be_\bt_\bO_\bp_\bt_\bi_\bo_\bn\n-void setOption(unsigned int option, double value)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:196\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bS_\bP_\bQ_\bR\n-SPQR(const Matrix &matrix, int verbose=0)\n-Construct a solver object from a BCRSMatrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:95\n+306 namespace\n+307 {\n+317 template\n+318 void createSendBuf(std::vector& ownerVec, std::set& overlapVec,\n+std::set& neighbors, char *sendBuf, int buffersize, MPI_Comm comm) {\n+319 // Pack owner vertices\n+320 std::size_t s=ownerVec.size();\n+321 int pos=0;\n+322 if(s==0)\n+323 ownerVec.resize(1); // otherwise would read beyond the memory bound\n+324 MPI_Pack(&s, 1, MPITraits::getType(), sendBuf, buffersize,\n+&pos, comm);\n+325 MPI_Pack(&(ownerVec[0]), s, MPITraits::getType(), sendBuf, buffersize,\n+&pos, comm);\n+326 s = overlapVec.size();\n+327 MPI_Pack(&s, 1, MPITraits::getType(), sendBuf, buffersize,\n+&pos, comm);\n+328 for(auto i=overlapVec.begin(), end= overlapVec.end(); i != end; ++i)\n+329 MPI_Pack(const_cast(&(*i)), 1, MPITraits::getType(), sendBuf,\n+buffersize, &pos, comm);\n+330\n+331 s=neighbors.size();\n+332 MPI_Pack(&s, 1, MPITraits::getType(), sendBuf, buffersize,\n+&pos, comm);\n+333\n+334 for(auto i=neighbors.begin(), end= neighbors.end(); i != end; ++i)\n+335 MPI_Pack(const_cast(&(*i)), 1, MPI_INT, sendBuf, buffersize, &pos,\n+comm);\n+336 }\n+345 template\n+346 void saveRecvBuf(char *recvBuf, int bufferSize, std::vector >& ownerVec,\n+347 std::set& overlapVec, std::set& neighbors, RedistributeInterface&\n+inf, int from, MPI_Comm comm) {\n+348 std::size_t size;\n+349 int pos=0;\n+350 // unpack owner vertices\n+351 MPI_Unpack(recvBuf, bufferSize, &pos, &size, 1, MPITraits::\n+getType(), comm);\n+352 inf.reserveSpaceForReceiveInterface(from, size);\n+353 ownerVec.reserve(ownerVec.size()+size);\n+354 for(; size!=0; --size) {\n+355 GI gi;\n+356 MPI_Unpack(recvBuf, bufferSize, &pos, &gi, 1, MPITraits::getType(),\n+comm);\n+357 ownerVec.push_back(std::make_pair(gi,from));\n+358 }\n+359 // unpack overlap vertices\n+360 MPI_Unpack(recvBuf, bufferSize, &pos, &size, 1, MPITraits::\n+getType(), comm);\n+361 typename std::set::iterator ipos = overlapVec.begin();\n+362 Dune::dverb << \"unpacking \"<::getType(),\n+comm);\n+366 ipos=overlapVec.insert(ipos, gi);\n+367 }\n+368 //unpack neighbors\n+369 MPI_Unpack(recvBuf, bufferSize, &pos, &size, 1, MPITraits::\n+getType(), comm);\n+370 Dune::dverb << \"unpacking \"<::iterator npos = neighbors.begin();\n+372 for(; size!=0; --size) {\n+373 int n;\n+374 MPI_Unpack(recvBuf, bufferSize, &pos, &n, 1, MPI_INT, comm);\n+375 npos=neighbors.insert(npos, n);\n+376 }\n+377 }\n+378\n+392 template\n+393 void getDomain(const MPI_Comm& comm, T *part, int numOfOwnVtx, int nparts,\n+int *myDomain, std::vector &domainMapping) {\n+394 int npes, mype;\n+395 MPI_Comm_size(comm, &npes);\n+396 MPI_Comm_rank(comm, &mype);\n+397 MPI_Status status;\n+398\n+399 *myDomain = -1;\n+400 int i=0;\n+401 int j=0;\n+402\n+403 std::vector domain(nparts, 0);\n+404 std::vector assigned(npes, 0);\n+405 // init domain Mapping\n+406 domainMapping.assign(domainMapping.size(), -1);\n+407\n+408 // count the occurrence of domains\n+409 for (i=0; i domainMatrix(npes * nparts, -1);\n+414\n+415 // init buffer with the own domain\n+416 int *buf = new int[nparts];\n+417 for (i=0; i unassigned;\n+442\n+443 for(i=0; i::iterator next_free = assigned.begin();\n+472\n+473 for(auto udomain = unassigned.begin(),\n+474 end = unassigned.end(); udomain != end; ++udomain)\n+475 {\n+476 next_free = std::find_if(next_free, assigned.end(), std::bind(std::\n+less(), std::placeholders::_1, 1));\n+477 assert(next_free != assigned.end());\n+478 domainMapping[*udomain] = next_free-assigned.begin();\n+479 *next_free = 1;\n+480 }\n+481 }\n+482\n+483 struct SortFirst\n+484 {\n+485 template\n+486 bool operator()(const T& t1, const T& t2) const\n+487 {\n+488 return t1\n+504 void mergeVec(std::vector >& ownerVec, std::set&\n+overlapSet) {\n+505\n+506#ifdef DEBUG_REPART\n+507 // Safety check for duplicates.\n+508 if(ownerVec.size()>0)\n+509 {\n+510 auto old=ownerVec.begin();\n+511 for(auto i=old+1, end=ownerVec.end(); i != end; old=i++)\n+512 {\n+513 if(i->first==old->first)\n+514 {\n+515 std::cerr<<\"Value at indes\"<first<<\",\"<second<<\"]==[\"\n+517 <first<<\",\"<second<<\"]\"<first<*s) ++v;\n+529 if(v!=vend && v->first==*s) {\n+530 // Move to the next element before erasing\n+531 // thus s stays valid!\n+532 auto tmp=s;\n+533 ++s;\n+534 overlapSet.erase(tmp);\n+535 }else\n+536 ++s;\n+537 }\n+538 }\n+539\n+540\n+554 template\n+555 void getNeighbor(const Graph& g, std::vector& part,\n+556 typename Graph::VertexDescriptor vtx, const IS& indexSet,\n+557 int toPe, std::set& neighbor, std::set& neighborProcs) {\n+558 for(auto edge=g.beginEdges(vtx), end=g.endEdges(vtx); edge!=end; ++edge)\n+559 {\n+560 const typename IS::IndexPair* pindex = indexSet.pair(edge.target());\n+561 assert(pindex);\n+562 if(part[pindex->local()]!=toPe || !OwnerSet::contains(pindex->local\n+().attribute()))\n+563 {\n+564 // is sent to another process and therefore becomes overlap\n+565 neighbor.insert(pindex->global());\n+566 neighborProcs.insert(part[pindex->local()]);\n+567 }\n+568 }\n+569 }\n+570\n+571 template\n+572 void my_push_back(std::vector& ownerVec, const I& index, [\n+[maybe_unused]] int proc)\n+573 {\n+574 ownerVec.push_back(index);\n+575 }\n+576\n+577 template\n+578 void my_push_back(std::vector >& ownerVec, const I& index,\n+int proc)\n+579 {\n+580 ownerVec.push_back(std::make_pair(index,proc));\n+581 }\n+582 template\n+583 void reserve(std::vector&, RedistributeInterface&, int)\n+584 {}\n+585 template\n+586 void reserve(std::vector >& ownerVec,\n+RedistributeInterface& redist, int proc)\n+587 {\n+588 redist.reserveSpaceForReceiveInterface(proc, ownerVec.size());\n+589 }\n+590\n+591\n+609 template\n+610 void getOwnerOverlapVec(const G& graph, std::vector& part, IS&\n+indexSet,\n+611 [[maybe_unused]] int myPe, int toPe, std::vector& ownerVec, std::\n+set& overlapSet,\n+612 RedistributeInterface& redist, std::set& neighborProcs) {\n+613 for(auto index = indexSet.begin(); index != indexSet.end(); ++index) {\n+614 // Only Process owner vertices, the others are not in the parmetis graph.\n+615 if(OwnerSet::contains(index->local().attribute()))\n+616 {\n+617 if(part[index->local()]==toPe)\n+618 {\n+619 getNeighbor(graph, part, index->local(), indexSet,\n+620 toPe, overlapSet, neighborProcs);\n+621 my_push_back(ownerVec, index->global(), toPe);\n+622 }\n+623 }\n+624 }\n+625 reserve(ownerVec, redist, toPe);\n+626\n+627 }\n+628\n+629\n+636 template\n+637 inline bool isOwner(IS& indexSet, int index) {\n+638\n+639 const typename IS::IndexPair* pindex=indexSet.pair(index);\n+640\n+641 assert(pindex);\n+642 return F::contains(pindex->local().attribute());\n+643 }\n+644\n+645\n+646 class BaseEdgeFunctor\n+647 {\n+648 public:\n+649 BaseEdgeFunctor(Metis::idx_t* adj,const ParmetisDuneIndexMap& data)\n+650 : i_(), adj_(adj), data_(data)\n+651 {}\n+652\n+653 template\n+654 void operator()(const T& edge)\n+655 {\n+656 // Get the egde weight\n+657 // const Weight& weight=edge.weight();\n+658 adj_[i_] = data_.toParmetis(edge.target());\n+659 i_++;\n+660 }\n+661 std::size_t index()\n+662 {\n+663 return i_;\n+664 }\n+665\n+666 private:\n+667 std::size_t i_;\n+668 Metis::idx_t* adj_;\n+669 const ParmetisDuneIndexMap& data_;\n+670 };\n+671\n+672 template\n+673 struct EdgeFunctor\n+674 : public BaseEdgeFunctor\n+675 {\n+676 EdgeFunctor(Metis::idx_t* adj, const ParmetisDuneIndexMap& data, std::\n+size_t)\n+677 : BaseEdgeFunctor(adj, data)\n+678 {}\n+679\n+680 Metis::idx_t* getWeights()\n+681 {\n+682 return NULL;\n+683 }\n+684 void free(){}\n+685 };\n+686\n+687 template\n+688 class EdgeFunctor<_\bD_\bu_\bn_\be::Amg::PropertiesGraph >\n+689 : public BaseEdgeFunctor\n+690 {\n+691 public:\n+692 EdgeFunctor(Metis::idx_t* adj, const ParmetisDuneIndexMap& data, std::\n+size_t s)\n+693 : BaseEdgeFunctor(adj, data)\n+694 {\n+695 weight_=new Metis::idx_t[s];\n+696 }\n+697\n+698 template\n+699 void operator()(const T& edge)\n+700 {\n+701 weight_[index()]=edge.properties().depends() ? 3 : 1;\n+702 BaseEdgeFunctor::operator()(edge);\n+703 }\n+704 Metis::idx_t* getWeights()\n+705 {\n+706 return weight_;\n+707 }\n+708 void free(){\n+709 if(weight_!=0) {\n+710 delete weight_;\n+711 weight_=0;\n+712 }\n+713 }\n+714 private:\n+715 Metis::idx_t* weight_;\n+716 };\n+717\n+718\n+719\n+733 template\n+734 void getAdjArrays(G& graph, IS& indexSet, Metis::idx_t *xadj,\n+735 EW& ew)\n+736 {\n+737 int j=0;\n+738 auto vend = graph.end();\n+739\n+740 for(auto vertex = graph.begin(); vertex != vend; ++vertex) {\n+741 if (isOwner(indexSet,*vertex)) {\n+742 // The type of const edge iterator.\n+743 auto eend = vertex.end();\n+744 xadj[j] = ew.index();\n+745 j++;\n+746 for(auto edge = vertex.begin(); edge != eend; ++edge) {\n+747 ew(edge);\n+748 }\n+749 }\n+750 }\n+751 xadj[j] = ew.index();\n+752 }\n+753 } // end anonymous namespace\n+754\n+755 template\n+756 bool _\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn(const G& graph, std::vector& realparts,\n+757 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm,\n+758 std::shared_ptr<_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>>& outcomm,\n+759 RedistributeInterface& redistInf,\n+760 bool verbose=false);\n+761#if HAVE_PARMETIS\n+762#ifndef METIS_VER_MAJOR\n+763 extern \"C\"\n+764 {\n+765 // backwards compatibility to parmetis < 4.0.0\n+766 void METIS_PartGraphKway(int *nvtxs, Metis::idx_t *xadj, Metis::idx_t\n+*adjncy, Metis::idx_t *vwgt,\n+767 Metis::idx_t *adjwgt, int *wgtflag, int *numflag, int *nparts,\n+768 int *options, int *edgecut, Metis::idx_t *part);\n+769\n+770 void METIS_PartGraphRecursive(int *nvtxs, Metis::idx_t *xadj, Metis::idx_t\n+*adjncy, Metis::idx_t *vwgt,\n+771 Metis::idx_t *adjwgt, int *wgtflag, int *numflag, int *nparts,\n+772 int *options, int *edgecut, Metis::idx_t *part);\n+773 }\n+774#endif\n+775#endif // HAVE_PARMETIS\n+776\n+777 template\n+_\b7_\b7_\b8 inline void _\bp_\br_\bi_\bn_\bt_\b__\bc_\ba_\br_\br_\ba_\by(S& os, T* array, std::size_t l)\n+779 {\n+780 for(T *cur=array, *end=array+l; cur!=end; ++cur)\n+781 os<<*cur<<\" \";\n+782 }\n+783\n+784 template\n+_\b7_\b8_\b5 inline bool _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bG_\br_\ba_\bp_\bh(std::size_t noVtx, std::size_t gnoVtx, S noEdges,\n+T* xadj,\n+786 T* adjncy, bool checkSymmetry)\n+787 {\n+788 bool correct=true;\n+789\n+790 using std::signbit;\n+791 for(_\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt vtx=0; vtx<(_\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt)noVtx; ++vtx) {\n+792 if(static_cast(xadj[vtx])>noEdges || signbit(xadj[vtx])) {\n+793 std::cerr <<\"Check graph: xadj[\"<\"\n+794 <(xadj[vtx+1])>noEdges || signbit(xadj[vtx+1])) {\n+798 std::cerr <<\"Check graph: xadj[\"<\"\n+799 <gnoVtx) {\n+805 std::cerr<<\" Edge \"<\n+_\b8_\b2_\b9 bool _\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn(const M& _\bm_\ba_\bt, _\bD_\bu_\bn_\be_\b:_\b:\n+_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm,\n+830 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt nparts,\n+831 std::shared_ptr<_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>>& outcomm,\n+832 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& redistInf,\n+833 bool verbose=false)\n+834 {\n+835 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n+836 std::cout<<\"Repartitioning from \"<1) {\n+847\n+848 part[0]=rank;\n+849\n+850 { // sublock for automatic memory deletion\n+851\n+852 // Build the graph of the communication scheme and create an appropriate\n+indexset.\n+853 // calculate the neighbour vertices\n+854 int noNeighbours = oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().neighbours();\n+855\n+856 for(auto n= oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().begin(); n != oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().end\n+();\n+857 ++n)\n+858 if(n->first==rank) {\n+859 //do not include ourselves.\n+860 --noNeighbours;\n+861 break;\n+862 }\n+863\n+864 // A parmetis graph representing the communication graph.\n+865 // The diagonal entries are the number of nodes on the process.\n+866 // The offdiagonal entries are the number of edges leading to other\n+processes.\n+867\n+868 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *xadj=new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[2];\n+869 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *vtxdist=new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()+1];\n+870 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *adjncy=new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[noNeighbours];\n+871#ifdef USE_WEIGHTS\n+872 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *vwgt = 0;\n+873 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *adjwgt = 0;\n+874#endif\n+875\n+876 // each process has exactly one vertex!\n+877 for(int i=0; i owner(mat.N(), oocomm.communicator().rank());\n+887 // for(NeighbourIterator n= oocomm.remoteIndices().begin(); n !=\n+oocomm.remoteIndices().end();\n+888 // ++n)\n+889 // {\n+890 // if(n->first!=oocomm.communicator().rank()){\n+891 // typedef typename RemoteIndices::RemoteIndexList RIList;\n+892 // const RIList& rlist = *(n->second.first);\n+893 // typedef typename RIList::const_iterator LIter;\n+894 // for(LIter entry=rlist.begin(); entry!=rlist.end(); ++entry){\n+895 // if(entry->attribute()==OwnerOverlapCopyAttributeSet::owner)\n+896 // owner[entry->localIndexPair().local()] = n->first;\n+897 // }\n+898 // }\n+899 // }\n+900\n+901 // std::map edgecount; // edges to other processors\n+902 // typedef typename M::ConstRowIterator RIter;\n+903 // typedef typename M::ConstColIterator CIter;\n+904\n+905 // // calculate edge count\n+906 // for(RIter row=mat.begin(), endr=mat.end(); row != endr; ++row)\n+907 // if(owner[row.index()]==OwnerOverlapCopyAttributeSet::owner)\n+908 // for(CIter entry= row->begin(), ende = row->end(); entry != ende;\n+++entry)\n+909 // ++edgecount[owner[entry.index()]];\n+910\n+911 // setup edge and weight pattern\n+912\n+913 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt* adjp=adjncy;\n+914\n+915#ifdef USE_WEIGHTS\n+916 vwgt = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[1];\n+917 vwgt[0]= _\bm_\ba_\bt.N(); // weight is numer of rows TODO: Should actually be the\n+nonzeros.\n+918\n+919 adjwgt = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[noNeighbours];\n+920 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt* adjwp=adjwgt;\n+921#endif\n+922\n+923 for(auto n= oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().begin(); n != oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().end\n+();\n+924 ++n)\n+925 if(n->first != rank) {\n+926 *adjp=n->first;\n+927 ++adjp;\n+928#ifdef USE_WEIGHTS\n+929 *adjwp=1; //edgecount[n->first];\n+930 ++adjwp;\n+931#endif\n+932 }\n+933 assert(_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bG_\br_\ba_\bp_\bh(vtxdist[rank+1]-vtxdist[rank],\n+934 vtxdist[oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()],\n+935 noNeighbours, xadj, adjncy, false));\n+936\n+937 [[maybe_unused]] _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt wgtflag=0;\n+938 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt numflag=0;\n+939 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt edgecut;\n+940#ifdef USE_WEIGHTS\n+941 wgtflag=3;\n+942#endif\n+943 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt *tpwgts = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt[nparts];\n+944 for(int i=0; i::getType(),\n+1071 gxadj,noxs,xdispl,MPITraits::getType(),\n+1072 comm);\n+1073 MPI_Allgatherv(adjncy,noNeighbours,MPITraits::getType(),\n+1074 gadjncy,noedges,displ,MPITraits::getType(),\n+1075 comm);\n+1076#ifdef USE_WEIGHTS\n+1077 MPI_Allgatherv(adjwgt,noNeighbours,MPITraits::getType(),\n+1078 gadjwgt,noedges,displ,MPITraits::getType(),\n+1079 comm);\n+1080 MPI_Allgatherv(vwgt,localNoVtx,MPITraits::getType(),\n+1081 gvwgt,novs,vdispl,MPITraits::getType(),\n+1082 comm);\n+1083#endif\n+1084 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n+1085 std::cout<<\"Gathering global graph data took \"<(gxadjlen));\n+1103 increment = *(start-1);\n+1104 std::transform(start+offset, start+l+offset, start, std::bind(std::\n+plus(), std::placeholders::_1, increment));\n+1105 }\n+1106 Dune::dinfo<= 5\n+1130 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt ncon = 1;\n+1131 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt moptions[METIS_NOPTIONS];\n+1132 METIS_SetDefaultOptions(moptions);\n+1133 moptions[METIS_OPTION_NUMBERING] = numflag;\n+1134 METIS_PartGraphRecursive(&noVertices, &ncon, gxadj, gadjncy, gvwgt, NULL,\n+gadjwgt,\n+1135 &nparts, NULL, NULL, moptions, &edgecut, gpart);\n+1136#else\n+1137 int options[5] = {0, 1, 1, 3, 3};\n+1138 // Call metis\n+1139 METIS_PartGraphRecursive(&noVertices, gxadj, gadjncy, gvwgt, gadjwgt,\n+&wgtflag,\n+1140 &numflag, &nparts, options, &edgecut, gpart);\n+1141#endif\n+1142\n+1143 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n+1144 std::cout<<\"METIS took \"<::getType(), part, 1,\n+1159 MPITraits::getType(), 0, comm);\n+1160\n+1161 {\n+1162 // release remaining memory\n+1163 delete[] gpart;\n+1164 delete[] noedges;\n+1165 delete[] displ;\n+1166 }\n+1167\n+1168\n+1169#endif\n+1170 delete[] xadj;\n+1171 delete[] vtxdist;\n+1172 delete[] adjncy;\n+1173#ifdef USE_WEIGHTS\n+1174 delete[] vwgt;\n+1175 delete[] adjwgt;\n+1176#endif\n+1177 delete[] tpwgts;\n+1178 }\n+1179 }else{\n+1180 part[0]=0;\n+1181 }\n+1182#endif\n+1183 Dune::dinfo<<\" repart \"< \"<< part[0]< realpart(_\bm_\ba_\bt.N(), part[0]);\n+1186 delete[] part;\n+1187\n+1188 oocomm._\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl(realpart, realpart);\n+1189\n+1190 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n+1191 std::cout<<\"Scattering repartitioning took \"< graph(const_cast(_\bm_\ba_\bt));\n+1197 _\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs(graph, oocomm);\n+1198 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n+1199 std::cout<<\"Filling index set took \"<\n+_\b1_\b2_\b3_\b5 bool _\bg_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn(const G& graph, _\bD_\bu_\bn_\be_\b:_\b:\n+_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm, _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt nparts,\n+1236 std::shared_ptr<_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>>& outcomm,\n+1237 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& redistInf,\n+1238 bool verbose=false)\n+1239 {\n+1240 Timer time;\n+1241\n+1242 MPI_Comm comm=oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br();\n+1243 oocomm._\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(graph.noVertices());\n+1244 _\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs(graph, oocomm);\n+1245\n+1246 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n+1247 std::cout<<\"Filling holes took \"<(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()));\n+1262\n+1263 int myDomain = -1;\n+1264\n+1265 //\n+1266 // 1) Prepare the required parameters for using ParMETIS\n+1267 // Especially the arrays that represent the graph must be\n+1268 // generated by the DUNE Graph and IndexSet input variables.\n+1269 // These are the arrays:\n+1270 // - vtxdist\n+1271 // - xadj\n+1272 // - adjncy\n+1273 //\n+1274 //\n+1275#ifdef PERF_REPART\n+1276 // reset timer for step 1)\n+1277 t1=MPI_Wtime();\n+1278#endif\n+1279\n+1280\n+1281 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> OOComm;\n+1282 typedef typename OOComm::OwnerSet OwnerSet;\n+1283\n+1284 // Create the vtxdist array and parmetisVtxMapping.\n+1285 // Global communications are necessary\n+1286 // The parmetis global identifiers for the owner vertices.\n+1287 ParmetisDuneIndexMap indexMap(graph,oocomm);\n+1288 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *part = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[indexMap.numOfOwnVtx()];\n+1289 for(std::size_t i=0; i < indexMap.numOfOwnVtx(); ++i)\n+1290 part[i]=mype;\n+1291\n+1292#if !HAVE_PARMETIS\n+1293 if(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0 && nparts>1)\n+1294 std::cerr<<\"ParMETIS not activated. Will repartition to 1 domain instead\n+of requested \"\n+1295 <1) {\n+1301 // Create the xadj and adjncy arrays\n+1302 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *xadj = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[indexMap.numOfOwnVtx()+1];\n+1303 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *adjncy = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[graph.noEdges()];\n+1304 EdgeFunctor ef(adjncy, indexMap, graph.noEdges());\n+1305 getAdjArrays(graph, oocomm._\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(), xadj, ef);\n+1306\n+1307 //\n+1308 // 2) Call ParMETIS\n+1309 //\n+1310 //\n+1311 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt numflag=0, wgtflag=0, options[3], edgecut=0, ncon=1;\n+1312 //float *tpwgts = NULL;\n+1313 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt *tpwgts = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt[nparts];\n+1314 for(int i=0; i(comm));\n+1358\n+1359\n+1360 delete[] xadj;\n+1361 delete[] adjncy;\n+1362 delete[] tpwgts;\n+1363\n+1364 ef.free();\n+1365\n+1366#ifdef DEBUG_REPART\n+1367 if (mype == 0) {\n+1368 std::cout< domainMapping(nparts);\n+1410 if(nparts>1)\n+1411 getDomain(comm, part, indexMap.numOfOwnVtx(), nparts, &myDomain,\n+domainMapping);\n+1412 else\n+1413 domainMapping[0]=0;\n+1414\n+1415#ifdef DEBUG_REPART\n+1416 std::cout< setPartition(oocomm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt().size(), -1);\n+1429\n+1430 std::size_t i=0; // parmetis index\n+1431 for(auto index = oocomm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt().begin(); index != oocomm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt().end\n+(); ++index)\n+1432 if(OwnerSet::contains(index->local().attribute())) {\n+1433 setPartition[index->local()]=domainMapping[part[i++]];\n+1434 }\n+1435\n+1436 delete[] part;\n+1437 oocomm._\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl(setPartition, setPartition);\n+1438 // communication only needed for ALU\n+1439 // (ghosts with same global id as owners on the same process)\n+1440 if (SolverCategory::category(oocomm) ==\n+1441 static_cast(SolverCategory::nonoverlapping))\n+1442 oocomm._\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl(setPartition, setPartition);\n+1443 bool ret = _\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn(graph, setPartition, oocomm, outcomm,\n+redistInf,\n+1444 verbose);\n+1445 if(verbose) {\n+1446 oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().barrier();\n+1447 if(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n+1448 std::cout<<\"Creating indexsets took \"<\n+_\b1_\b4_\b5_\b6 bool _\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn(const G& graph,\n+1457 std::vector& setPartition, _\bD_\bu_\bn_\be_\b:_\b:\n+_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm,\n+1458 std::shared_ptr<_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>>& outcomm,\n+1459 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& redistInf,\n+1460 bool verbose)\n+1461 {\n+1462 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> OOComm;\n+1463 typedef typename OOComm::OwnerSet OwnerSet;\n+1464\n+1465 Timer time;\n+1466\n+1467 // Build the send interface\n+1468 redistInf._\bb_\bu_\bi_\bl_\bd_\bS_\be_\bn_\bd_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be(setPartition, oocomm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt());\n+1469\n+1470#ifdef PERF_REPART\n+1471 // stop the time for step 3)\n+1472 t3=MPI_Wtime()-t3;\n+1473 // reset timer for step 4)\n+1474 t4=MPI_Wtime();\n+1475#endif\n+1476\n+1477\n+1478 //\n+1479 // 4) Create the output IndexSet and RemoteIndices\n+1480 // 4.1) Determine the \"send to\" and \"receive from\" relation\n+1481 // according to the new partition using a MPI ring\n+1482 // communication.\n+1483 //\n+1484 // 4.2) Depends on the \"send to\" and \"receive from\" vector,\n+1485 // the processes will exchange the vertices each other\n+1486 //\n+1487 // 4.3) Create the IndexSet, RemoteIndices and the new MPI\n+1488 // communicator\n+1489 //\n+1490\n+1491 //\n+1492 // 4.1) Let's start...\n+1493 //\n+1494 int npes = oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size();\n+1495 int *sendTo = 0;\n+1496 int noSendTo = 0;\n+1497 std::set recvFrom;\n+1498\n+1499 // the max number of vertices is stored in the sendTo buffer,\n+1500 // not the number of vertices to send! Because the max number of Vtx\n+1501 // is used as the fixed buffer size by the MPI send/receive calls\n+1502\n+1503 int mype = oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank();\n+1504\n+1505 {\n+1506 std::set tsendTo;\n+1507 for(auto i=setPartition.begin(), iend = setPartition.end(); i!=iend; ++i)\n+1508 tsendTo.insert(*i);\n+1509\n+1510 noSendTo = tsendTo.size();\n+1511 sendTo = new int[noSendTo];\n+1512 int idx=0;\n+1513 for(auto i=tsendTo.begin(); i != tsendTo.end(); ++i, ++idx)\n+1514 sendTo[idx]=*i;\n+1515 }\n+1516\n+1517 //\n+1518 int* gnoSend= new int[oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()];\n+1519 int* gsendToDispl = new int[oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()+1];\n+1520\n+1521 MPI_Allgather(&noSendTo, 1, MPI_INT, gnoSend, 1,\n+1522 MPI_INT, oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br());\n+1523\n+1524 // calculate total receive message size\n+1525 int totalNoRecv = 0;\n+1526 for(int i=0; i0;\n+1547\n+1548 // Delete memory\n+1549 delete[] gnoSend;\n+1550 delete[] gsendToDispl;\n+1551 delete[] gsendTo;\n+1552\n+1553\n+1554#ifdef DEBUG_REPART\n+1555 if(recvFrom.size()) {\n+1556 std::cout< GlobalVector;\n+1589 std::vector > myOwnerVec;\n+1590 std::set myOverlapSet;\n+1591 GlobalVector sendOwnerVec;\n+1592 std::set sendOverlapSet;\n+1593 std::set myNeighbors;\n+1594\n+1595 // getOwnerOverlapVec(graph, setPartition, oocomm.globalLookup\n+(),\n+1596 // mype, mype, myOwnerVec, myOverlapSet, redistInf, myNeighbors);\n+1597\n+1598 char **sendBuffers=new char*[noSendTo];\n+1599 MPI_Request *requests = new MPI_Request[noSendTo];\n+1600\n+1601 // Create all messages to be sent\n+1602 for(int i=0; i < noSendTo; ++i) {\n+1603 // clear the vector for sending\n+1604 sendOwnerVec.clear();\n+1605 sendOverlapSet.clear();\n+1606 // get all owner and overlap vertices for process j and save these\n+1607 // in the vectors sendOwnerVec and sendOverlapSet\n+1608 std::set neighbors;\n+1609 getOwnerOverlapVec(graph, setPartition, oocomm._\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(),\n+1610 mype, sendTo[i], sendOwnerVec, sendOverlapSet, redistInf,\n+1611 neighbors);\n+1612 // +2, we need 2 integer more for the length of each part\n+1613 // (owner/overlap) of the array\n+1614 int buffersize=0;\n+1615 int tsize;\n+1616 MPI_Pack_size(1, MPITraits::getType(), oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(),\n+&buffersize);\n+1617 MPI_Pack_size(sendOwnerVec.size(), MPITraits::getType(),\n+oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(), &tsize);\n+1618 buffersize +=tsize;\n+1619 MPI_Pack_size(1, MPITraits::getType(), oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(),\n+&tsize);\n+1620 buffersize +=tsize;\n+1621 MPI_Pack_size(sendOverlapSet.size(), MPITraits::getType(),\n+oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(), &tsize);\n+1622 buffersize += tsize;\n+1623 MPI_Pack_size(1, MPITraits::getType(), oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(),\n+&tsize);\n+1624 buffersize += tsize;\n+1625 MPI_Pack_size(neighbors.size(), MPI_INT, oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(), &tsize);\n+1626 buffersize += tsize;\n+1627\n+1628 sendBuffers[i] = new char[buffersize];\n+1629\n+1630#ifdef DEBUG_REPART\n+1631 std::cout<0) {\n+1651 // probe for an incoming message\n+1652 MPI_Status stat;\n+1653 MPI_Probe(MPI_ANY_SOURCE, 99, oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(), &stat);\n+1654 int buffersize;\n+1655 MPI_Get_count(&stat, MPI_PACKED, &buffersize);\n+1656\n+1657 if(oldbuffersize(outputComm,SolverCategory::category\n+(oocomm),true);\n+1727\n+1728 // translate neighbor ranks.\n+1729 int newrank=outcomm->communicator().rank();\n+1730 int *newranks=new int[oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()];\n+1731 std::vector tneighbors;\n+1732 tneighbors.reserve(myNeighbors.size());\n+1733\n+1734 typename OOComm::ParallelIndexSet& outputIndexSet = outcomm->indexSet();\n+1735\n+1736 MPI_Allgather(&newrank, 1, MPI_INT, newranks, 1,\n+1737 MPI_INT, oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br());\n+1738\n+1739#ifdef DEBUG_REPART\n+1740 std::cout<=0);\n+1744 std::cout<<*i<<\"->\"<first,LocalIndexT(i, OwnerOverlapCopyAttributeSet::\n+owner, true));\n+1777 redistInf._\ba_\bd_\bd_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bd_\be_\bx(g->second, i);\n+1778 }\n+1779\n+1780 if(verbose) {\n+1781 oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().barrier();\n+1782 if(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n+1783 std::cout<<\" Adding owner indices took \"<<\n+1784 time.elapsed()<local().attribute())) {\n+1820 numOfOwnVtx++;\n+1821 }\n+1822 }\n+1823 numOfOwnVtx = oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().sum(numOfOwnVtx);\n+1824 // if(numOfOwnVtx!=indexMap.globalOwnerVertices)\n+1825 // {\n+1826 // std::cerr<remoteIndices().setNeighbours(tneighbors);\n+1844 outcomm->remoteIndices().template rebuild();\n+1845\n+1846 }\n+1847\n+1848 // release the memory\n+1849 delete[] sendTo;\n+1850\n+1851 if(verbose) {\n+1852 oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().barrier();\n+1853 if(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n+1854 std::cout<<\" Storing indexsets took \"<<\n+1855 time.elapsed()<\n+1876 bool graphRepartition(const G& graph, P& oocomm, int nparts,\n+1877 std::shared_ptr

    & outcomm,\n+1878 R& redistInf,\n+1879 bool v=false)\n+1880 {\n+1881 if(nparts!=oocomm.size())\n+1882 DUNE_THROW(NotImplemented, \"only available for MPI programs\");\n+1883 }\n+1884\n+1885\n+1886 template\n+1887 bool _\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn(const G& graph, P& oocomm, int nparts,\n+1888 std::shared_ptr

    & outcomm,\n+1889 R& redistInf,\n+1890 bool v=false)\n+1891 {\n+1892 if(nparts!=oocomm.size())\n+1893 DUNE_THROW(NotImplemented, \"only available for MPI programs\");\n+1894 }\n+1895#endif // HAVE_MPI\n+1896} // end of namespace Dune\n+1897#endif\n+_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n+Classes providing communication interfaces for overlapping Schwarz methods.\n+_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\n+Provides classes for building the matrix graph.\n+_\bg_\bl_\bo_\bb_\ba_\bl_\bO_\bw_\bn_\be_\br_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n+int globalOwnerVertices\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:175\n _\bm_\ba_\bt\n Matrix & mat\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n-PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n-VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n-Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:211\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-size_type M() const\n-number of columns (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1978\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-number of rows (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz\n-Sequential overlapping Schwarz preconditioner.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:755\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\br_\bH_\be_\bl_\bp_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:694\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n-int iterations\n-Number of iterations.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n-bool converged\n-True if convergence criterion has been met.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Abstract base class for all solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n-_\bD_\bu_\bn_\be_\b:_\b:_\bU_\bn_\bs_\bu_\bp_\bp_\bo_\br_\bt_\be_\bd_\bT_\by_\bp_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:77\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-@ value\n-Whether this is a direct solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:24\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-@ value\n-whether the solver internally uses column compressed storage\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:36\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR\n-Use the SPQR package to directly solve linear systems \u00e2\u0080\u0093 empty default class.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\bC_\br_\be_\ba_\bt_\bo_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:333\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bP_\bQ_\bR_\bC_\br_\be_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bB_\bl_\bo_\bc_\bk\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn spqr.hh:334\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+bool buildCommunication(const G &graph, std::vector< int > &realparts, Dune::\n+OwnerOverlapCopyCommunication< T1, T2 > &oocomm, std::shared_ptr< Dune::\n+OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface\n+&redistInf, bool verbose=false)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:1456\n+_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs\n+void fillIndexSetHoles(const G &graph, Dune::OwnerOverlapCopyCommunication< T1,\n+T2 > &oocomm)\n+Fills the holes in an index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:83\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn\n+bool commGraphRepartition(const M &mat, Dune::OwnerOverlapCopyCommunication<\n+T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::\n+OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface\n+&redistInf, bool verbose=false)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:829\n+_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\b__\bc_\ba_\br_\br_\ba_\by\n+void print_carray(S &os, T *array, std::size_t l)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:778\n+_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bG_\br_\ba_\bp_\bh\n+bool isValidGraph(std::size_t noVtx, std::size_t gnoVtx, S noEdges, T *xadj, T\n+*adjncy, bool checkSymmetry)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:785\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn\n+bool graphRepartition(const G &graph, Dune::OwnerOverlapCopyCommunication< T1,\n+T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::\n+OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface\n+&redistInf, bool verbose=false)\n+execute a graph repartition for a giving graph and indexset.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:1235\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt\n+float real_t\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt\n+std::size_t idx_t\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:63\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br\n+@ owner\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n+A class setting up standard communication for a two-valued attribute set with\n+owner/overlap/copy sema...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n+const GlobalLookupIndexSet & globalLookup() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:526\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bn_\bd_\be_\bx_\bS_\be_\bt\n+const ParallelIndexSet & indexSet() const\n+Get the underlying parallel index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:462\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl\n+void copyCopyToAll(const T &source, T &dest) const\n+Communicate values from copy data points to all other data points.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:328\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet\n+The type of the reverse lookup of indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:456\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n+void buildGlobalLookup()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:495\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+const Communication< MPI_Comm > & communicator() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl\n+void copyOwnerToAll(const T &source, T &dest) const\n+Communicate values from owner data points to all other data points.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:311\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n+const RemoteIndices & remoteIndices() const\n+Get the underlying remote indices.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:471\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n+void freeGlobalLookup()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:520\n+_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n+Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet\n+The type of the parallel index set.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:449\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n+The (undirected) graph of a matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:260\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\br_\be_\bs_\be_\br_\bv_\be_\bS_\bp_\ba_\bc_\be_\bF_\bo_\br_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+void reserveSpaceForReceiveInterface(int proc, int size)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:284\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+void buildReceiveInterface(std::vector< std::pair< TG, int > > &indices)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\b~_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+~RedistributeInterface()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\bs_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n+void setCommunicator(MPI_Comm comm)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:261\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bS_\be_\bn_\bd_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+void buildSendInterface(const std::vector< int > &toPart, const IS &idxset)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:266\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\ba_\bd_\bd_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bd_\be_\bx\n+void addReceiveIndex(int proc, std::size_t idx)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:288\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00200.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00200.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: bccsmatrixinitializer.hh File Reference\n+dune-istl: basearray.hh File Reference\n \n \n \n \n \n \n \n@@ -71,32 +71,37 @@\n

    \n
    \n
    \n
    \n \n-
    bccsmatrixinitializer.hh File Reference
    \n+
    basearray.hh File Reference
    \n
    \n
    \n-
    #include <limits>
    \n-#include <set>
    \n-#include <dune/common/typetraits.hh>
    \n-#include <dune/common/scalarmatrixview.hh>
    \n-#include <dune/istl/bccsmatrix.hh>
    \n+\n+

    Implements several basic array containers. \n+More...

    \n+
    #include "assert.h"
    \n+#include <cmath>
    \n+#include <cstddef>
    \n+#include <memory>
    \n+#include <algorithm>
    \n+#include "istlexception.hh"
    \n+#include <dune/common/iteratorfacades.hh>
    \n
    \n

    Go to the source code of this file.

    \n
    . dune-istl 2.9.0<\n-000004a0: 2f73 7061 6e3e 0a20 2020 3c2f 6469 763e /span>. \n-000004b0: 0a20 203c 2f74 643e 0a20 3c2f 7472 3e0a .
    \n \n \n \n-\n-\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::ISTL
     
    \n-
    \n+

    Detailed Description

    \n+

    Implements several basic array containers.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,21 +1,24 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-bccsmatrixinitializer.hh File Reference\n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+basearray.hh File Reference\n+Implements several basic array containers. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \"assert.h\"\n+#include \n+#include \n+#include \n+#include \n+#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL\n-\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Implements several basic array containers.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00200_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00200_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: bccsmatrixinitializer.hh Source File\n+dune-istl: basearray.hh Source File\n \n \n \n \n \n \n \n@@ -74,335 +74,427 @@\n \n
    \n \n
    \n
    \n
    \n-
    bccsmatrixinitializer.hh
    \n+
    basearray.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_BCCSMATRIX_INITIALIZER_HH
    \n-
    6#define DUNE_ISTL_BCCSMATRIX_INITIALIZER_HH
    \n+
    5#ifndef DUNE_ISTL_BASEARRAY_HH
    \n+
    6#define DUNE_ISTL_BASEARRAY_HH
    \n
    7
    \n-
    8#include <limits>
    \n-
    9#include <set>
    \n-
    10
    \n-
    11#include <dune/common/typetraits.hh>
    \n-
    12#include <dune/common/scalarmatrixview.hh>
    \n+
    8#include "assert.h"
    \n+
    9#include <cmath>
    \n+
    10#include <cstddef>
    \n+
    11#include <memory>
    \n+
    12#include <algorithm>
    \n
    13
    \n-\n-
    15
    \n-
    16namespace Dune
    \n-
    17{
    \n-
    18 template<class I, class S, class D>
    \n-
    19 class OverlappingSchwarzInitializer;
    \n-
    20}
    \n-
    21
    \n-
    22namespace Dune::ISTL::Impl
    \n-
    23{
    \n-
    31 template<class M, class S>
    \n-
    32 class MatrixRowSubset
    \n-
    33 {
    \n-
    34 public:
    \n-
    36 typedef M Matrix;
    \n-
    38 typedef S RowIndexSet;
    \n-
    39
    \n-
    45 MatrixRowSubset(const Matrix& m, const RowIndexSet& s)
    \n-
    46 : m_(m), s_(s)
    \n-
    47 {}
    \n-
    48
    \n-
    49 const Matrix& matrix() const
    \n-
    50 {
    \n-
    51 return m_;
    \n-
    52 }
    \n-
    53
    \n-
    54 const RowIndexSet& rowIndexSet() const
    \n-
    55 {
    \n-
    56 return s_;
    \n-
    57 }
    \n-
    58
    \n-
    60 class const_iterator
    \n-
    61 : public ForwardIteratorFacade<const_iterator, const typename Matrix::row_type>
    \n-
    62 {
    \n-
    63 public:
    \n-
    64 const_iterator(typename Matrix::const_iterator firstRow,
    \n-
    65 typename RowIndexSet::const_iterator pos)
    \n-
    66 : firstRow_(firstRow), pos_(pos)
    \n-
    67 {}
    \n+
    14#include "istlexception.hh"
    \n+
    15#include <dune/common/iteratorfacades.hh>
    \n+
    16
    \n+
    21namespace Dune {
    \n+
    22
    \n+
    24namespace Imp {
    \n+
    25
    \n+
    50 template<class B, class A=std::allocator<B> >
    \n+
    51 class base_array_unmanaged
    \n+
    52 {
    \n+
    53 public:
    \n+
    54
    \n+
    55 //===== type definitions and constants
    \n+
    56
    \n+
    58 typedef B member_type;
    \n+
    59
    \n+
    61 typedef A allocator_type;
    \n+
    62
    \n+
    64 typedef typename A::size_type size_type;
    \n+
    65
    \n+
    67 using reference = B&;
    \n
    68
    \n-
    69
    \n-
    70 const typename Matrix::row_type& dereference() const
    \n-
    71 {
    \n-
    72 return *(firstRow_+ *pos_);
    \n-
    73 }
    \n-
    74 bool equals(const const_iterator& o) const
    \n-
    75 {
    \n-
    76 return pos_==o.pos_;
    \n-
    77 }
    \n-
    78 void increment()
    \n-
    79 {
    \n-
    80 ++pos_;
    \n-
    81 }
    \n-
    82 typename RowIndexSet::value_type index() const
    \n-
    83 {
    \n-
    84 return *pos_;
    \n-
    85 }
    \n-
    86
    \n-
    87 private:
    \n-
    89 typename Matrix::const_iterator firstRow_;
    \n-
    91 typename RowIndexSet::const_iterator pos_;
    \n-
    92 };
    \n-
    93
    \n-
    95 const_iterator begin() const
    \n-
    96 {
    \n-
    97 return const_iterator(m_.begin(), s_.begin());
    \n-
    98 }
    \n-
    100 const_iterator end() const
    \n-
    101 {
    \n-
    102 return const_iterator(m_.begin(), s_.end());
    \n-
    103 }
    \n-
    104
    \n-
    105 private:
    \n-
    107 const Matrix& m_;
    \n-
    109 const RowIndexSet& s_;
    \n-
    110 };
    \n-
    111
    \n-
    118 template<class M, class I = typename M::size_type>
    \n-
    119 class BCCSMatrixInitializer
    \n-
    120 {
    \n-
    121 template<class IList, class S, class D>
    \n-\n-
    123 public:
    \n-
    124 using Matrix = M;
    \n-
    125 using Index = I;
    \n-
    126 typedef Dune::ISTL::Impl::BCCSMatrix<typename Matrix::field_type, I> OutputMatrix;
    \n-
    127 typedef typename Matrix::size_type size_type;
    \n-
    128
    \n-
    131 BCCSMatrixInitializer(OutputMatrix& mat_)
    \n-
    132 : mat(&mat_), cols(mat_.M())
    \n-
    133 {
    \n-
    134 if constexpr (Dune::IsNumber<typename M::block_type>::value)
    \n-
    135 {
    \n-
    136 n = m = 1;
    \n-
    137 }
    \n-
    138 else
    \n-
    139 {
    \n-
    140 // WARNING: This assumes that all blocks are dense and identical
    \n-
    141 n = M::block_type::rows;
    \n-
    142 m = M::block_type::cols;
    \n-
    143 }
    \n-
    144
    \n-
    145 mat->Nnz_=0;
    \n-
    146 }
    \n-
    147
    \n-
    148 BCCSMatrixInitializer()
    \n-
    149 : mat(0), cols(0), n(0), m(0)
    \n-
    150 {}
    \n-
    151
    \n-
    152 virtual ~BCCSMatrixInitializer()
    \n-
    153 {}
    \n-
    154
    \n-
    155 template<typename Iter>
    \n-
    156 void addRowNnz(const Iter& row) const
    \n-
    157 {
    \n-
    158 mat->Nnz_+=row->getsize();
    \n-
    159 }
    \n-
    160
    \n-
    161 template<typename Iter, typename FullMatrixIndex>
    \n-
    162 void addRowNnz(const Iter& row, const std::set<FullMatrixIndex>& indices) const
    \n-
    163 {
    \n-
    164 auto siter =indices.begin();
    \n-
    165 for (auto entry=row->begin(); entry!=row->end(); ++entry)
    \n-
    166 {
    \n-
    167 for(; siter!=indices.end() && *siter<entry.index(); ++siter) ;
    \n-
    168 if(siter==indices.end())
    \n-
    169 break;
    \n-
    170 if(*siter==entry.index())
    \n-
    171 // index is in subdomain
    \n-
    172 ++mat->Nnz_;
    \n-
    173 }
    \n-
    174 }
    \n-
    175
    \n-
    176 template<typename Iter, typename SubMatrixIndex>
    \n-
    177 void addRowNnz(const Iter& row, const std::vector<SubMatrixIndex>& indices) const
    \n-
    178 {
    \n-
    179 for (auto entry=row->begin(); entry!=row->end(); ++entry)
    \n-
    180 if (indices[entry.index()]!=std::numeric_limits<SubMatrixIndex>::max())
    \n-
    181 ++mat->Nnz_;
    \n-
    182 }
    \n-
    183
    \n-
    184 void allocate()
    \n-
    185 {
    \n-
    186 allocateMatrixStorage();
    \n-
    187 allocateMarker();
    \n-
    188 }
    \n-
    189
    \n-
    190 template<typename Iter, typename CIter>
    \n-
    191 void countEntries([[maybe_unused]] const Iter& row, const CIter& col) const
    \n-
    192 {
    \n-
    193 countEntries(col.index());
    \n-
    194 }
    \n-
    195
    \n-
    196 void countEntries(size_type colindex) const
    \n-
    197 {
    \n-
    198 for(size_type i=0; i < m; ++i)
    \n-
    199 {
    \n-
    200 assert(colindex*m+i<cols);
    \n-
    201 marker[colindex*m+i]+=n;
    \n-
    202 }
    \n-
    203 }
    \n-
    204
    \n-
    205 void calcColstart() const
    \n-
    206 {
    \n-
    207 mat->colstart[0]=0;
    \n-
    208 for(size_type i=0; i < cols; ++i) {
    \n-
    209 assert(i<cols);
    \n-
    210 mat->colstart[i+1]=mat->colstart[i]+marker[i];
    \n-
    211 marker[i]=mat->colstart[i];
    \n-
    212 }
    \n-
    213 }
    \n-
    214
    \n-
    215 template<typename Iter, typename CIter>
    \n-
    216 void copyValue(const Iter& row, const CIter& col) const
    \n-
    217 {
    \n-
    218 copyValue(col, row.index(), col.index());
    \n-
    219 }
    \n-
    220
    \n-
    221 template<typename CIter>
    \n-
    222 void copyValue(const CIter& col, size_type rowindex, size_type colindex) const
    \n-
    223 {
    \n-
    224 for(size_type i=0; i<n; i++) {
    \n-
    225 for(size_type j=0; j<m; j++) {
    \n-
    226 assert(colindex*m+j<cols-1 || (size_type)marker[colindex*m+j]<(size_type)mat->colstart[colindex*m+j+1]);
    \n-
    227 assert((size_type)marker[colindex*m+j]<mat->Nnz_);
    \n-
    228 mat->rowindex[marker[colindex*m+j]]=rowindex*n+i;
    \n-
    229 mat->values[marker[colindex*m+j]] = Dune::Impl::asMatrix(*col)[i][j];
    \n-
    230 ++marker[colindex*m+j]; // index for next entry in column
    \n-
    231 }
    \n-
    232 }
    \n+
    70 using const_reference = const B&;
    \n+
    71
    \n+
    72 //===== access to components
    \n+
    73
    \n+
    75 reference operator[] (size_type i)
    \n+
    76 {
    \n+
    77#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    78 if (i>=n) DUNE_THROW(ISTLError,"index out of range");
    \n+
    79#endif
    \n+
    80 return p[i];
    \n+
    81 }
    \n+
    82
    \n+
    84 const_reference operator[] (size_type i) const
    \n+
    85 {
    \n+
    86#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    87 if (i>=n) DUNE_THROW(ISTLError,"index out of range");
    \n+
    88#endif
    \n+
    89 return p[i];
    \n+
    90 }
    \n+
    91
    \n+
    93 template<class T>
    \n+
    94 class RealIterator
    \n+
    95 : public RandomAccessIteratorFacade<RealIterator<T>, T>
    \n+
    96 {
    \n+
    97 public:
    \n+
    99 typedef typename std::remove_const<T>::type ValueType;
    \n+
    100
    \n+
    101 friend class RandomAccessIteratorFacade<RealIterator<const ValueType>, const ValueType>;
    \n+
    102 friend class RandomAccessIteratorFacade<RealIterator<ValueType>, ValueType>;
    \n+
    103 friend class RealIterator<const ValueType>;
    \n+
    104 friend class RealIterator<ValueType>;
    \n+
    105
    \n+
    107 RealIterator ()
    \n+
    108 : p(0), i(0)
    \n+
    109 {}
    \n+
    110
    \n+
    111 RealIterator (const B* _p, B* _i) : p(_p), i(_i)
    \n+
    112 { }
    \n+
    113
    \n+
    114 RealIterator(const RealIterator<ValueType>& it)
    \n+
    115 : p(it.p), i(it.i)
    \n+
    116 {}
    \n+
    117
    \n+
    119 size_type index () const
    \n+
    120 {
    \n+
    121 return i-p;
    \n+
    122 }
    \n+
    123
    \n+
    125 bool equals (const RealIterator<ValueType>& other) const
    \n+
    126 {
    \n+
    127 assert(other.p==p);
    \n+
    128 return i==other.i;
    \n+
    129 }
    \n+
    130
    \n+
    132 bool equals (const RealIterator<const ValueType>& other) const
    \n+
    133 {
    \n+
    134 assert(other.p==p);
    \n+
    135 return i==other.i;
    \n+
    136 }
    \n+
    137
    \n+
    138 std::ptrdiff_t distanceTo(const RealIterator& o) const
    \n+
    139 {
    \n+
    140 return o.i-i;
    \n+
    141 }
    \n+
    142
    \n+
    143 private:
    \n+
    145 void increment()
    \n+
    146 {
    \n+
    147 ++i;
    \n+
    148 }
    \n+
    149
    \n+
    151 void decrement()
    \n+
    152 {
    \n+
    153 --i;
    \n+
    154 }
    \n+
    155
    \n+
    156 // Needed for operator[] of the iterator
    \n+
    157 reference elementAt (std::ptrdiff_t offset) const
    \n+
    158 {
    \n+
    159 return *(i+offset);
    \n+
    160 }
    \n+
    161
    \n+
    163 reference dereference () const
    \n+
    164 {
    \n+
    165 return *i;
    \n+
    166 }
    \n+
    167
    \n+
    168 void advance(std::ptrdiff_t d)
    \n+
    169 {
    \n+
    170 i+=d;
    \n+
    171 }
    \n+
    172
    \n+
    173 const B* p;
    \n+
    174 B* i;
    \n+
    175 };
    \n+
    176
    \n+
    178 typedef RealIterator<B> iterator;
    \n+
    179
    \n+
    180
    \n+
    182 iterator begin ()
    \n+
    183 {
    \n+
    184 return iterator(p,p);
    \n+
    185 }
    \n+
    186
    \n+
    188 iterator end ()
    \n+
    189 {
    \n+
    190 return iterator(p,p+n);
    \n+
    191 }
    \n+
    192
    \n+
    195 iterator beforeEnd ()
    \n+
    196 {
    \n+
    197 return iterator(p,p+n-1);
    \n+
    198 }
    \n+
    199
    \n+
    202 iterator beforeBegin ()
    \n+
    203 {
    \n+
    204 return iterator(p,p-1);
    \n+
    205 }
    \n+
    206
    \n+
    208 iterator find (size_type i)
    \n+
    209 {
    \n+
    210 return iterator(p,p+std::min(i,n));
    \n+
    211 }
    \n+
    212
    \n+
    214 typedef RealIterator<const B> const_iterator;
    \n+
    215
    \n+
    217 const_iterator begin () const
    \n+
    218 {
    \n+
    219 return const_iterator(p,p+0);
    \n+
    220 }
    \n+
    221
    \n+
    223 const_iterator end () const
    \n+
    224 {
    \n+
    225 return const_iterator(p,p+n);
    \n+
    226 }
    \n+
    227
    \n+
    230 const_iterator beforeEnd () const
    \n+
    231 {
    \n+
    232 return const_iterator(p,p+n-1);
    \n
    233 }
    \n
    234
    \n-
    235 virtual void createMatrix() const
    \n-
    236 {
    \n-
    237 marker.clear();
    \n-
    238 }
    \n-
    239
    \n-
    240 protected:
    \n+
    237 const_iterator beforeBegin () const
    \n+
    238 {
    \n+
    239 return const_iterator(p,p-1);
    \n+
    240 }
    \n
    241
    \n-
    242 void allocateMatrixStorage() const
    \n-
    243 {
    \n-
    244 mat->Nnz_*=n*m;
    \n-
    245 // initialize data
    \n-
    246 mat->values=new typename M::field_type[mat->Nnz_];
    \n-
    247 mat->rowindex=new I[mat->Nnz_];
    \n-
    248 mat->colstart=new I[cols+1];
    \n-
    249 }
    \n+
    243 const_iterator find (size_type i) const
    \n+
    244 {
    \n+
    245 return const_iterator(p,p+std::min(i,n));
    \n+
    246 }
    \n+
    247
    \n+
    248
    \n+
    249 //===== sizes
    \n
    250
    \n-
    251 void allocateMarker()
    \n-
    252 {
    \n-
    253 marker.resize(cols);
    \n-
    254 std::fill(marker.begin(), marker.end(), 0);
    \n+
    252 size_type size () const
    \n+
    253 {
    \n+
    254 return n;
    \n
    255 }
    \n
    256
    \n-
    257 OutputMatrix* mat;
    \n-
    258 size_type cols;
    \n-
    259
    \n-
    260 // Number of rows/columns of the matrix entries
    \n-
    261 // (assumed to be scalars or dense matrices)
    \n-
    262 size_type n, m;
    \n-
    263
    \n-
    264 mutable std::vector<size_type> marker;
    \n-
    265 };
    \n-
    266
    \n-
    267 template<class F, class Matrix>
    \n-
    268 void copyToBCCSMatrix(F& initializer, const Matrix& matrix)
    \n-
    269 {
    \n-
    270 for (auto row=matrix.begin(); row!= matrix.end(); ++row)
    \n-
    271 initializer.addRowNnz(row);
    \n-
    272
    \n-
    273 initializer.allocate();
    \n-
    274
    \n-
    275 for (auto row=matrix.begin(); row!= matrix.end(); ++row) {
    \n-
    276
    \n-
    277 for (auto col=row->begin(); col != row->end(); ++col)
    \n-
    278 initializer.countEntries(row, col);
    \n-
    279 }
    \n-
    280
    \n-
    281 initializer.calcColstart();
    \n+
    258 const B* data() const
    \n+
    259 {
    \n+
    260 return p;
    \n+
    261 }
    \n+
    262
    \n+
    264 B* data()
    \n+
    265 {
    \n+
    266 return p;
    \n+
    267 }
    \n+
    268
    \n+
    269 protected:
    \n+
    271 base_array_unmanaged ()
    \n+
    272 : n(0), p(0)
    \n+
    273 {}
    \n+
    275 base_array_unmanaged (size_type n_, B* p_)
    \n+
    276 : n(n_), p(p_)
    \n+
    277 {}
    \n+
    278 size_type n; // number of elements in array
    \n+
    279 B *p; // pointer to dynamically allocated built-in array
    \n+
    280 };
    \n+
    281
    \n
    282
    \n-
    283 for (auto row=matrix.begin(); row!= matrix.end(); ++row) {
    \n-
    284 for (auto col=row->begin(); col != row->end(); ++col) {
    \n-
    285 initializer.copyValue(row, col);
    \n-
    286 }
    \n-
    287
    \n-
    288 }
    \n-
    289 initializer.createMatrix();
    \n-
    290 }
    \n-
    291
    \n-
    292 template<class F, class M,class S>
    \n-
    293 void copyToBCCSMatrix(F& initializer, const MatrixRowSubset<M,S>& mrs)
    \n-
    294 {
    \n-
    295 typedef MatrixRowSubset<M,S> MRS;
    \n-
    296 typedef typename MRS::RowIndexSet SIS;
    \n-
    297 typedef typename SIS::const_iterator SIter;
    \n-
    298 typedef typename MRS::const_iterator Iter;
    \n-
    299 typedef typename std::iterator_traits<Iter>::value_type row_type;
    \n-
    300 typedef typename row_type::const_iterator CIter;
    \n-
    301
    \n-
    302 typedef typename MRS::Matrix::size_type size_type;
    \n-
    303
    \n-
    304 // A vector containing the corresponding indices in
    \n-
    305 // the to create submatrix.
    \n-
    306 // If an entry is the maximum of size_type then this index will not appear in
    \n-
    307 // the submatrix.
    \n-
    308 std::vector<size_type> subMatrixIndex(mrs.matrix().N(),
    \n-
    309 std::numeric_limits<size_type>::max());
    \n-
    310 size_type s=0;
    \n-
    311 for(SIter index = mrs.rowIndexSet().begin(); index!=mrs.rowIndexSet().end(); ++index)
    \n-
    312 subMatrixIndex[*index]=s++;
    \n-
    313
    \n-
    314 // Calculate upper Bound for nonzeros
    \n-
    315 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)
    \n-
    316 initializer.addRowNnz(row, subMatrixIndex);
    \n+
    283
    \n+
    305 template<class B, class A=std::allocator<B> >
    \n+
    306 class compressed_base_array_unmanaged
    \n+
    307 {
    \n+
    308 public:
    \n+
    309
    \n+
    310 //===== type definitions and constants
    \n+
    311
    \n+
    313 typedef B member_type;
    \n+
    314
    \n+
    316 typedef A allocator_type;
    \n
    317
    \n-
    318 initializer.allocate();
    \n-
    319
    \n-
    320 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)
    \n-
    321 for(CIter col=row->begin(); col != row->end(); ++col) {
    \n-
    322 if(subMatrixIndex[col.index()]!=std::numeric_limits<size_type>::max())
    \n-
    323 // This column is in our subset (use submatrix column index)
    \n-
    324 initializer.countEntries(subMatrixIndex[col.index()]);
    \n-
    325 }
    \n+
    319 typedef typename A::size_type size_type;
    \n+
    320
    \n+
    322 using reference = B&;
    \n+
    323
    \n+
    325 using const_reference = const B&;
    \n
    326
    \n-
    327 initializer.calcColstart();
    \n+
    327 //===== access to components
    \n
    328
    \n-
    329 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)
    \n-
    330 for(CIter col=row->begin(); col != row->end(); ++col) {
    \n-
    331 if(subMatrixIndex[col.index()]!=std::numeric_limits<size_type>::max())
    \n-
    332 // This value is in our submatrix -> copy (use submatrix indices
    \n-
    333 initializer.copyValue(col, subMatrixIndex[row.index()], subMatrixIndex[col.index()]);
    \n-
    334 }
    \n-
    335 initializer.createMatrix();
    \n-
    336 }
    \n+
    330 reference operator[] (size_type i)
    \n+
    331 {
    \n+
    332 const size_type* lb = std::lower_bound(j, j+n, i);
    \n+
    333 if (lb == j+n || *lb != i)
    \n+
    334 DUNE_THROW(ISTLError,"index "<<i<<" not in compressed array");
    \n+
    335 return p[lb-j];
    \n+
    336 }
    \n
    337
    \n-
    338}
    \n-
    339#endif
    \n-\n-
    Col col
    Definition matrixmatrix.hh:351
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n-
    std::size_t countEntries(const BlockVector< T, A > &vector)
    Definition matrixmarket.hh:1076
    \n+
    339 const_reference operator[] (size_type i) const
    \n+
    340 {
    \n+
    341 const size_type* lb = std::lower_bound(j, j+n, i);
    \n+
    342 if (lb == j+n || *lb != i)
    \n+
    343 DUNE_THROW(ISTLError,"index "<<i<<" not in compressed array");
    \n+
    344 return p[lb-j];
    \n+
    345 }
    \n+
    346
    \n+
    348 template<class T>
    \n+
    349 class RealIterator
    \n+
    350 : public BidirectionalIteratorFacade<RealIterator<T>, T>
    \n+
    351 {
    \n+
    352 public:
    \n+
    354 typedef typename std::remove_const<T>::type ValueType;
    \n+
    355
    \n+
    356 friend class BidirectionalIteratorFacade<RealIterator<const ValueType>, const ValueType>;
    \n+
    357 friend class BidirectionalIteratorFacade<RealIterator<ValueType>, ValueType>;
    \n+
    358 friend class RealIterator<const ValueType>;
    \n+
    359 friend class RealIterator<ValueType>;
    \n+
    360
    \n+
    362 RealIterator ()
    \n+
    363 : p(0), j(0), i(0)
    \n+
    364 {}
    \n+
    365
    \n+
    367 RealIterator (B* _p, size_type* _j, size_type _i)
    \n+
    368 : p(_p), j(_j), i(_i)
    \n+
    369 { }
    \n+
    370
    \n+
    374 RealIterator(const RealIterator<ValueType>& it)
    \n+
    375 : p(it.p), j(it.j), i(it.i)
    \n+
    376 {}
    \n+
    377
    \n+
    378
    \n+
    380 bool equals (const RealIterator<ValueType>& it) const
    \n+
    381 {
    \n+
    382 assert(p==it.p);
    \n+
    383 return (i)==(it.i);
    \n+
    384 }
    \n+
    385
    \n+
    387 bool equals (const RealIterator<const ValueType>& it) const
    \n+
    388 {
    \n+
    389 assert(p==it.p);
    \n+
    390 return (i)==(it.i);
    \n+
    391 }
    \n+
    392
    \n+
    393
    \n+
    395 size_type index () const
    \n+
    396 {
    \n+
    397 return j[i];
    \n+
    398 }
    \n+
    399
    \n+
    401 void setindex (size_type k)
    \n+
    402 {
    \n+
    403 return j[i] = k;
    \n+
    404 }
    \n+
    405
    \n+
    413 size_type offset () const
    \n+
    414 {
    \n+
    415 return i;
    \n+
    416 }
    \n+
    417
    \n+
    418 private:
    \n+
    420 void increment()
    \n+
    421 {
    \n+
    422 ++i;
    \n+
    423 }
    \n+
    424
    \n+
    426 void decrement()
    \n+
    427 {
    \n+
    428 --i;
    \n+
    429 }
    \n+
    430
    \n+
    432 reference dereference () const
    \n+
    433 {
    \n+
    434 return p[i];
    \n+
    435 }
    \n+
    436
    \n+
    437 B* p;
    \n+
    438 size_type* j;
    \n+
    439 size_type i;
    \n+
    440 };
    \n+
    441
    \n+
    443 typedef RealIterator<B> iterator;
    \n+
    444
    \n+
    446 iterator begin ()
    \n+
    447 {
    \n+
    448 return iterator(p,j,0);
    \n+
    449 }
    \n+
    450
    \n+
    452 iterator end ()
    \n+
    453 {
    \n+
    454 return iterator(p,j,n);
    \n+
    455 }
    \n+
    456
    \n+
    459 iterator beforeEnd ()
    \n+
    460 {
    \n+
    461 return iterator(p,j,n-1);
    \n+
    462 }
    \n+
    463
    \n+
    466 iterator beforeBegin ()
    \n+
    467 {
    \n+
    468 return iterator(p,j,-1);
    \n+
    469 }
    \n+
    470
    \n+
    472 iterator find (size_type i)
    \n+
    473 {
    \n+
    474 const size_type* lb = std::lower_bound(j, j+n, i);
    \n+
    475 return (lb != j+n && *lb == i)
    \n+
    476 ? iterator(p,j,lb-j)
    \n+
    477 : end();
    \n+
    478 }
    \n+
    479
    \n+
    481 typedef RealIterator<const B> const_iterator;
    \n+
    482
    \n+
    484 const_iterator begin () const
    \n+
    485 {
    \n+
    486 return const_iterator(p,j,0);
    \n+
    487 }
    \n+
    488
    \n+
    490 const_iterator end () const
    \n+
    491 {
    \n+
    492 return const_iterator(p,j,n);
    \n+
    493 }
    \n+
    494
    \n+
    497 const_iterator beforeEnd () const
    \n+
    498 {
    \n+
    499 return const_iterator(p,j,n-1);
    \n+
    500 }
    \n+
    501
    \n+
    504 const_iterator beforeBegin () const
    \n+
    505 {
    \n+
    506 return const_iterator(p,j,-1);
    \n+
    507 }
    \n+
    508
    \n+
    510 const_iterator find (size_type i) const
    \n+
    511 {
    \n+
    512 const size_type* lb = std::lower_bound(j, j+n, i);
    \n+
    513 return (lb != j+n && *lb == i)
    \n+
    514 ? const_iterator(p,j,lb-j)
    \n+
    515 : end();
    \n+
    516 }
    \n+
    517
    \n+
    518 //===== sizes
    \n+
    519
    \n+
    521 size_type size () const
    \n+
    522 {
    \n+
    523 return n;
    \n+
    524 }
    \n+
    525
    \n+
    526 protected:
    \n+
    528 compressed_base_array_unmanaged ()
    \n+
    529 : n(0), p(0), j(0)
    \n+
    530 {}
    \n+
    531
    \n+
    532 size_type n; // number of elements in array
    \n+
    533 B *p; // pointer to dynamically allocated built-in array
    \n+
    534 size_type* j; // the index set
    \n+
    535 };
    \n+
    536
    \n+
    537} // end namespace Imp
    \n+
    538
    \n+
    539} // end namespace
    \n+
    540
    \n+
    541#endif
    \n+\n
    Definition allocator.hh:11
    \n-
    Initializer for SuperLU Matrices representing the subdomains.
    Definition overlappingschwarz.hh:47
    \n-
    A::size_type size_type
    Type for indices and sizes.
    Definition matrix.hh:577
    \n-
    MatrixImp::DenseMatrixBase< T, A >::window_type row_type
    The type implementing a matrix row.
    Definition matrix.hh:574
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,353 +1,426 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-bccsmatrixinitializer.hh\n+basearray.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_BCCSMATRIX_INITIALIZER_HH\n-6#define DUNE_ISTL_BCCSMATRIX_INITIALIZER_HH\n+5#ifndef DUNE_ISTL_BASEARRAY_HH\n+6#define DUNE_ISTL_BASEARRAY_HH\n 7\n-8#include \n-9#include \n-10\n-11#include \n-12#include \n+8#include \"assert.h\"\n+9#include \n+10#include \n+11#include \n+12#include \n 13\n-14#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\bc_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n-15\n-16namespace _\bD_\bu_\bn_\be\n-17{\n-18 template\n-19 class OverlappingSchwarzInitializer;\n-20}\n-21\n-22namespace Dune::ISTL::Impl\n-23{\n-31 template\n-32 class MatrixRowSubset\n-33 {\n-34 public:\n-36 typedef M Matrix;\n-38 typedef S RowIndexSet;\n-39\n-45 MatrixRowSubset(const Matrix& m, const RowIndexSet& s)\n-46 : m_(m), s_(s)\n-47 {}\n-48\n-49 const Matrix& matrix() const\n-50 {\n-51 return m_;\n-52 }\n-53\n-54 const RowIndexSet& rowIndexSet() const\n-55 {\n-56 return s_;\n-57 }\n-58\n-60 class const_iterator\n-61 : public ForwardIteratorFacade\n-62 {\n-63 public:\n-64 const_iterator(typename Matrix::const_iterator firstRow,\n-65 typename RowIndexSet::const_iterator pos)\n-66 : firstRow_(firstRow), pos_(pos)\n-67 {}\n+14#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+15#include \n+16\n+21namespace _\bD_\bu_\bn_\be {\n+22\n+24namespace Imp {\n+25\n+50 template >\n+51 class base_array_unmanaged\n+52 {\n+53 public:\n+54\n+55 //===== type definitions and constants\n+56\n+58 typedef B member_type;\n+59\n+61 typedef A allocator_type;\n+62\n+64 typedef typename A::size_type size_type;\n+65\n+67 using reference = B&;\n 68\n-69\n-70 const typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be& dereference() const\n-71 {\n-72 return *(firstRow_+ *pos_);\n-73 }\n-74 bool equals(const const_iterator& o) const\n-75 {\n-76 return pos_==o.pos_;\n-77 }\n-78 void increment()\n-79 {\n-80 ++pos_;\n+70 using const_reference = const B&;\n+71\n+72 //===== access to components\n+73\n+75 reference operator[] (size_type i)\n+76 {\n+77#ifdef DUNE_ISTL_WITH_CHECKING\n+78 if (i>=n) DUNE_THROW(ISTLError,\"index out of range\");\n+79#endif\n+80 return p[i];\n 81 }\n-82 typename RowIndexSet::value_type index() const\n-83 {\n-84 return *pos_;\n-85 }\n-86\n-87 private:\n-89 typename Matrix::const_iterator firstRow_;\n-91 typename RowIndexSet::const_iterator pos_;\n-92 };\n-93\n-95 const_iterator begin() const\n+82\n+84 const_reference operator[] (size_type i) const\n+85 {\n+86#ifdef DUNE_ISTL_WITH_CHECKING\n+87 if (i>=n) DUNE_THROW(ISTLError,\"index out of range\");\n+88#endif\n+89 return p[i];\n+90 }\n+91\n+93 template\n+94 class RealIterator\n+95 : public RandomAccessIteratorFacade, T>\n 96 {\n-97 return const_iterator(m_.begin(), s_.begin());\n-98 }\n-100 const_iterator end() const\n-101 {\n-102 return const_iterator(m_.begin(), s_.end());\n-103 }\n-104\n-105 private:\n-107 const Matrix& m_;\n-109 const RowIndexSet& s_;\n-110 };\n-111\n-118 template\n-119 class BCCSMatrixInitializer\n+97 public:\n+99 typedef typename std::remove_const::type ValueType;\n+100\n+101 friend class RandomAccessIteratorFacade,\n+const ValueType>;\n+102 friend class RandomAccessIteratorFacade,\n+ValueType>;\n+103 friend class RealIterator;\n+104 friend class RealIterator;\n+105\n+107 RealIterator ()\n+108 : p(0), i(0)\n+109 {}\n+110\n+111 RealIterator (const B* _p, B* _i) : p(_p), i(_i)\n+112 { }\n+113\n+114 RealIterator(const RealIterator& it)\n+115 : p(it.p), i(it.i)\n+116 {}\n+117\n+119 size_type index () const\n 120 {\n-121 template\n-122 friend class _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br;\n-123 public:\n-124 using Matrix = M;\n-125 using Index = I;\n-126 typedef Dune::ISTL::Impl::BCCSMatrix\n-OutputMatrix;\n-127 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size_type;\n-128\n-131 BCCSMatrixInitializer(OutputMatrix& mat_)\n-132 : _\bm_\ba_\bt(&mat_), cols(mat_.M())\n+121 return i-p;\n+122 }\n+123\n+125 bool equals (const RealIterator& other) const\n+126 {\n+127 assert(other.p==p);\n+128 return i==other.i;\n+129 }\n+130\n+132 bool equals (const RealIterator& other) const\n 133 {\n-134 if constexpr (Dune::IsNumber::value)\n-135 {\n-136 n = m = 1;\n-137 }\n-138 else\n+134 assert(other.p==p);\n+135 return i==other.i;\n+136 }\n+137\n+138 std::ptrdiff_t distanceTo(const RealIterator& o) const\n 139 {\n-140 // WARNING: This assumes that all blocks are dense and identical\n-141 n = M::block_type::rows;\n-142 m = M::block_type::cols;\n-143 }\n-144\n-145 _\bm_\ba_\bt->Nnz_=0;\n-146 }\n-147\n-148 BCCSMatrixInitializer()\n-149 : _\bm_\ba_\bt(0), cols(0), n(0), m(0)\n-150 {}\n-151\n-152 virtual ~BCCSMatrixInitializer()\n-153 {}\n-154\n-155 template\n-156 void addRowNnz(const Iter& row) const\n-157 {\n-158 _\bm_\ba_\bt->Nnz_+=row->getsize();\n-159 }\n-160\n-161 template\n-162 void addRowNnz(const Iter& row, const std::set& indices)\n-const\n-163 {\n-164 auto siter =indices.begin();\n-165 for (auto entry=row->begin(); entry!=row->end(); ++entry)\n-166 {\n-167 for(; siter!=indices.end() && *siterNnz_;\n-173 }\n-174 }\n-175\n-176 template\n-177 void addRowNnz(const Iter& row, const std::vector& indices)\n-const\n-178 {\n-179 for (auto entry=row->begin(); entry!=row->end(); ++entry)\n-180 if (indices[entry.index()]!=std::numeric_limits::max())\n-181 ++_\bm_\ba_\bt->Nnz_;\n-182 }\n-183\n-184 void allocate()\n-185 {\n-186 allocateMatrixStorage();\n-187 allocateMarker();\n-188 }\n-189\n-190 template\n-191 void _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs([[maybe_unused]] const Iter& row, const CIter& _\bc_\bo_\bl) const\n-192 {\n-193 _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(_\bc_\bo_\bl.index());\n-194 }\n-195\n-196 void _\bc_\bo_\bu_\bn_\bt_\bE_\bn_\bt_\br_\bi_\be_\bs(size_type colindex) const\n-197 {\n-198 for(size_type i=0; i < m; ++i)\n-199 {\n-200 assert(colindex*m+icolstart[0]=0;\n-208 for(size_type i=0; i < cols; ++i) {\n-209 assert(icolstart[i+1]=_\bm_\ba_\bt->colstart[i]+marker[i];\n-211 marker[i]=_\bm_\ba_\bt->colstart[i];\n-212 }\n-213 }\n-214\n-215 template\n-216 void copyValue(const Iter& row, const CIter& _\bc_\bo_\bl) const\n-217 {\n-218 copyValue(_\bc_\bo_\bl, row.index(), _\bc_\bo_\bl.index());\n-219 }\n-220\n-221 template\n-222 void copyValue(const CIter& _\bc_\bo_\bl, size_type rowindex, size_type colindex)\n-const\n-223 {\n-224 for(size_type i=0; icolstart[colindex*m+j+1]);\n-227 assert((size_type)marker[colindex*m+j]<_\bm_\ba_\bt->Nnz_);\n-228 _\bm_\ba_\bt->rowindex[marker[colindex*m+j]]=rowindex*n+i;\n-229 _\bm_\ba_\bt->values[marker[colindex*m+j]] = Dune::Impl::asMatrix(*_\bc_\bo_\bl)[i][j];\n-230 ++marker[colindex*m+j]; // index for next entry in column\n-231 }\n-232 }\n+140 return o.i-i;\n+141 }\n+142\n+143 private:\n+145 void increment()\n+146 {\n+147 ++i;\n+148 }\n+149\n+151 void decrement()\n+152 {\n+153 --i;\n+154 }\n+155\n+156 // Needed for operator[] of the iterator\n+157 reference elementAt (std::ptrdiff_t offset) const\n+158 {\n+159 return *(i+offset);\n+160 }\n+161\n+163 reference dereference () const\n+164 {\n+165 return *i;\n+166 }\n+167\n+168 void advance(std::ptrdiff_t d)\n+169 {\n+170 i+=d;\n+171 }\n+172\n+173 const B* p;\n+174 B* i;\n+175 };\n+176\n+178 typedef RealIterator iterator;\n+179\n+180\n+182 iterator begin ()\n+183 {\n+184 return iterator(p,p);\n+185 }\n+186\n+188 iterator end ()\n+189 {\n+190 return iterator(p,p+n);\n+191 }\n+192\n+195 iterator beforeEnd ()\n+196 {\n+197 return iterator(p,p+n-1);\n+198 }\n+199\n+202 iterator beforeBegin ()\n+203 {\n+204 return iterator(p,p-1);\n+205 }\n+206\n+208 iterator find (size_type i)\n+209 {\n+210 return iterator(p,p+std::min(i,n));\n+211 }\n+212\n+214 typedef RealIterator const_iterator;\n+215\n+217 const_iterator begin () const\n+218 {\n+219 return const_iterator(p,p+0);\n+220 }\n+221\n+223 const_iterator end () const\n+224 {\n+225 return const_iterator(p,p+n);\n+226 }\n+227\n+230 const_iterator beforeEnd () const\n+231 {\n+232 return const_iterator(p,p+n-1);\n 233 }\n 234\n-235 virtual void createMatrix() const\n-236 {\n-237 marker.clear();\n-238 }\n-239\n-240 protected:\n+237 const_iterator beforeBegin () const\n+238 {\n+239 return const_iterator(p,p-1);\n+240 }\n 241\n-242 void allocateMatrixStorage() const\n-243 {\n-244 _\bm_\ba_\bt->Nnz_*=n*m;\n-245 // initialize data\n-246 _\bm_\ba_\bt->values=new typename M::field_type[_\bm_\ba_\bt->Nnz_];\n-247 _\bm_\ba_\bt->rowindex=new I[_\bm_\ba_\bt->Nnz_];\n-248 _\bm_\ba_\bt->colstart=new I[cols+1];\n-249 }\n+243 const_iterator find (size_type i) const\n+244 {\n+245 return const_iterator(p,p+std::min(i,n));\n+246 }\n+247\n+248\n+249 //===== sizes\n 250\n-251 void allocateMarker()\n-252 {\n-253 marker.resize(cols);\n-254 std::fill(marker.begin(), marker.end(), 0);\n+252 size_type size () const\n+253 {\n+254 return n;\n 255 }\n 256\n-257 OutputMatrix* _\bm_\ba_\bt;\n-258 size_type cols;\n-259\n-260 // Number of rows/columns of the matrix entries\n-261 // (assumed to be scalars or dense matrices)\n-262 size_type n, m;\n-263\n-264 mutable std::vector marker;\n-265 };\n-266\n-267 template\n-268 void copyToBCCSMatrix(F& initializer, const Matrix& matrix)\n-269 {\n-270 for (auto row=matrix.begin(); row!= matrix.end(); ++row)\n-271 initializer.addRowNnz(row);\n-272\n-273 initializer.allocate();\n-274\n-275 for (auto row=matrix.begin(); row!= matrix.end(); ++row) {\n-276\n-277 for (auto _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl)\n-278 initializer.countEntries(row, _\bc_\bo_\bl);\n-279 }\n-280\n-281 initializer.calcColstart();\n+258 const B* data() const\n+259 {\n+260 return p;\n+261 }\n+262\n+264 B* data()\n+265 {\n+266 return p;\n+267 }\n+268\n+269 protected:\n+271 base_array_unmanaged ()\n+272 : n(0), p(0)\n+273 {}\n+275 base_array_unmanaged (size_type n_, B* p_)\n+276 : n(n_), p(p_)\n+277 {}\n+278 size_type n; // number of elements in array\n+279 B *p; // pointer to dynamically allocated built-in array\n+280 };\n+281\n 282\n-283 for (auto row=matrix.begin(); row!= matrix.end(); ++row) {\n-284 for (auto _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl) {\n-285 initializer.copyValue(row, _\bc_\bo_\bl);\n-286 }\n-287\n-288 }\n-289 initializer.createMatrix();\n-290 }\n-291\n-292 template\n-293 void copyToBCCSMatrix(F& initializer, const MatrixRowSubset& mrs)\n-294 {\n-295 typedef MatrixRowSubset MRS;\n-296 typedef typename MRS::RowIndexSet SIS;\n-297 typedef typename SIS::const_iterator SIter;\n-298 typedef typename MRS::const_iterator Iter;\n-299 typedef typename std::iterator_traits::value_type row_type;\n-300 typedef typename row_type::const_iterator CIter;\n-301\n-302 typedef typename MRS::Matrix::size_type size_type;\n-303\n-304 // A vector containing the corresponding indices in\n-305 // the to create submatrix.\n-306 // If an entry is the maximum of size_type then this index will not appear\n-in\n-307 // the submatrix.\n-308 std::vector subMatrixIndex(mrs.matrix().N(),\n-309 std::numeric_limits::max());\n-310 size_type s=0;\n-311 for(SIter index = mrs.rowIndexSet().begin(); index!=mrs.rowIndexSet().end\n-(); ++index)\n-312 subMatrixIndex[*index]=s++;\n-313\n-314 // Calculate upper Bound for nonzeros\n-315 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)\n-316 initializer.addRowNnz(row, subMatrixIndex);\n+283\n+305 template >\n+306 class compressed_base_array_unmanaged\n+307 {\n+308 public:\n+309\n+310 //===== type definitions and constants\n+311\n+313 typedef B member_type;\n+314\n+316 typedef A allocator_type;\n 317\n-318 initializer.allocate();\n-319\n-320 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)\n-321 for(CIter _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl) {\n-322 if(subMatrixIndex[_\bc_\bo_\bl.index()]!=std::numeric_limits::max())\n-323 // This column is in our subset (use submatrix column index)\n-324 initializer.countEntries(subMatrixIndex[_\bc_\bo_\bl.index()]);\n-325 }\n+319 typedef typename A::size_type size_type;\n+320\n+322 using reference = B&;\n+323\n+325 using const_reference = const B&;\n 326\n-327 initializer.calcColstart();\n+327 //===== access to components\n 328\n-329 for(Iter row=mrs.begin(); row!= mrs.end(); ++row)\n-330 for(CIter _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl) {\n-331 if(subMatrixIndex[_\bc_\bo_\bl.index()]!=std::numeric_limits::max())\n-332 // This value is in our submatrix -> copy (use submatrix indices\n-333 initializer.copyValue(_\bc_\bo_\bl, subMatrixIndex[row.index()], subMatrixIndex\n-[_\bc_\bo_\bl.index()]);\n-334 }\n-335 initializer.createMatrix();\n+330 reference operator[] (size_type i)\n+331 {\n+332 const size_type* lb = std::lower_bound(j, j+n, i);\n+333 if (lb == j+n || *lb != i)\n+334 DUNE_THROW(ISTLError,\"index \"< &vector)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1076\n+339 const_reference operator[] (size_type i) const\n+340 {\n+341 const size_type* lb = std::lower_bound(j, j+n, i);\n+342 if (lb == j+n || *lb != i)\n+343 DUNE_THROW(ISTLError,\"index \"<\n+349 class RealIterator\n+350 : public BidirectionalIteratorFacade, T>\n+351 {\n+352 public:\n+354 typedef typename std::remove_const::type ValueType;\n+355\n+356 friend class BidirectionalIteratorFacade,\n+const ValueType>;\n+357 friend class BidirectionalIteratorFacade,\n+ValueType>;\n+358 friend class RealIterator;\n+359 friend class RealIterator;\n+360\n+362 RealIterator ()\n+363 : p(0), j(0), i(0)\n+364 {}\n+365\n+367 RealIterator (B* _p, size_type* _j, size_type _i)\n+368 : p(_p), j(_j), i(_i)\n+369 { }\n+370\n+374 RealIterator(const RealIterator& it)\n+375 : p(it.p), j(it.j), i(it.i)\n+376 {}\n+377\n+378\n+380 bool equals (const RealIterator& it) const\n+381 {\n+382 assert(p==it.p);\n+383 return (i)==(it.i);\n+384 }\n+385\n+387 bool equals (const RealIterator& it) const\n+388 {\n+389 assert(p==it.p);\n+390 return (i)==(it.i);\n+391 }\n+392\n+393\n+395 size_type index () const\n+396 {\n+397 return j[i];\n+398 }\n+399\n+401 void setindex (size_type k)\n+402 {\n+403 return j[i] = k;\n+404 }\n+405\n+413 size_type offset () const\n+414 {\n+415 return i;\n+416 }\n+417\n+418 private:\n+420 void increment()\n+421 {\n+422 ++i;\n+423 }\n+424\n+426 void decrement()\n+427 {\n+428 --i;\n+429 }\n+430\n+432 reference dereference () const\n+433 {\n+434 return p[i];\n+435 }\n+436\n+437 B* p;\n+438 size_type* j;\n+439 size_type i;\n+440 };\n+441\n+443 typedef RealIterator iterator;\n+444\n+446 iterator begin ()\n+447 {\n+448 return iterator(p,j,0);\n+449 }\n+450\n+452 iterator end ()\n+453 {\n+454 return iterator(p,j,n);\n+455 }\n+456\n+459 iterator beforeEnd ()\n+460 {\n+461 return iterator(p,j,n-1);\n+462 }\n+463\n+466 iterator beforeBegin ()\n+467 {\n+468 return iterator(p,j,-1);\n+469 }\n+470\n+472 iterator find (size_type i)\n+473 {\n+474 const size_type* lb = std::lower_bound(j, j+n, i);\n+475 return (lb != j+n && *lb == i)\n+476 ? iterator(p,j,lb-j)\n+477 : end();\n+478 }\n+479\n+481 typedef RealIterator const_iterator;\n+482\n+484 const_iterator begin () const\n+485 {\n+486 return const_iterator(p,j,0);\n+487 }\n+488\n+490 const_iterator end () const\n+491 {\n+492 return const_iterator(p,j,n);\n+493 }\n+494\n+497 const_iterator beforeEnd () const\n+498 {\n+499 return const_iterator(p,j,n-1);\n+500 }\n+501\n+504 const_iterator beforeBegin () const\n+505 {\n+506 return const_iterator(p,j,-1);\n+507 }\n+508\n+510 const_iterator find (size_type i) const\n+511 {\n+512 const size_type* lb = std::lower_bound(j, j+n, i);\n+513 return (lb != j+n && *lb == i)\n+514 ? const_iterator(p,j,lb-j)\n+515 : end();\n+516 }\n+517\n+518 //===== sizes\n+519\n+521 size_type size () const\n+522 {\n+523 return n;\n+524 }\n+525\n+526 protected:\n+528 compressed_base_array_unmanaged ()\n+529 : n(0), p(0), j(0)\n+530 {}\n+531\n+532 size_type n; // number of elements in array\n+533 B *p; // pointer to dynamically allocated built-in array\n+534 size_type* j; // the index set\n+535 };\n+536\n+537} // end namespace Imp\n+538\n+539} // end namespace\n+540\n+541#endif\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg_\bS_\bc_\bh_\bw_\ba_\br_\bz_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br\n-Initializer for SuperLU Matrices representing the subdomains.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn overlappingschwarz.hh:47\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-Type for indices and sizes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:577\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n-MatrixImp::DenseMatrixBase< T, A >::window_type row_type\n-The type implementing a matrix row.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:574\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00203.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00203.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: vbvector.hh File Reference\n+dune-istl: ilusubdomainsolver.hh File Reference\n \n \n \n \n \n \n \n@@ -72,51 +72,48 @@\n
  • dune
  • istl
  • \n
    \n
    \n
    \n \n-
    vbvector.hh File Reference
    \n+
    ilusubdomainsolver.hh File Reference
    \n
    \n
    \n \n-

    ??? \n+

    Various local subdomain solvers based on ILU for SeqOverlappingSchwarz. \n More...

    \n-
    #include <cmath>
    \n-#include <complex>
    \n-#include <iostream>
    \n-#include <iterator>
    \n-#include <memory>
    \n-#include <dune/common/iteratorfacades.hh>
    \n-#include "istlexception.hh"
    \n-#include "bvector.hh"
    \n-#include <dune/istl/blocklevel.hh>
    \n+
    #include <map>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/istl/preconditioners.hh>
    \n+#include "matrix.hh"
    \n+#include <cmath>
    \n+#include <cstdlib>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n \n

    \n Classes

    class  Dune::VariableBlockVector< B, A >
     A Vector of blocks with different blocksizes. More...
    class  Dune::ILUSubdomainSolver< M, X, Y >
     base class encapsulating common algorithms of ILU0SubdomainSolver and ILUNSubdomainSolver. More...
     
    class  Dune::VariableBlockVector< B, A >::CreateIterator
     Iterator class for sequential creation of blocks. More...
    class  Dune::ILU0SubdomainSolver< M, X, Y >
     Exact subdomain solver using ILU(p) with appropriate p. More...
     
    class  Dune::VariableBlockVector< B, A >::RealIterator< T, R >
     Iterator class for sequential access. More...
    class  Dune::ILUNSubdomainSolver< M, X, Y >
     
    \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    \n

    Detailed Description

    \n-

    ???

    \n+

    Various local subdomain solvers based on ILU for SeqOverlappingSchwarz.

    \n+
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,36 +1,35 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-vbvector.hh File Reference\n-??? _\bM_\bo_\br_\be_\b._\b._\b.\n+ilusubdomainsolver.hh File Reference\n+Various local subdomain solvers based on ILU for SeqOverlappingSchwarz. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n+#include \"_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n #include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n-\u00a0 A Vector of blocks with different blocksizes. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0 base class encapsulating common algorithms of _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br and\n+ _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-\u00a0 Iterator class for sequential creation of blocks. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0 Exact subdomain solver using _\bI_\bL_\bU_\b(_\bp_\b) with appropriate p. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bR_\b _\b>\n-\u00a0 Iterator class for sequential access. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-???\n+Various local subdomain solvers based on ILU for SeqOverlappingSchwarz.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00203_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00203_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: vbvector.hh Source File\n+dune-istl: ilusubdomainsolver.hh Source File\n \n \n \n \n \n \n \n@@ -74,853 +74,235 @@\n \n
    \n \n
    \n
    \n
    \n-
    vbvector.hh
    \n+
    ilusubdomainsolver.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_VBVECTOR_HH
    \n-
    6#define DUNE_ISTL_VBVECTOR_HH
    \n+
    5#ifndef DUNE_ISTL_ILUSUBDOMAINSOLVER_HH
    \n+
    6#define DUNE_ISTL_ILUSUBDOMAINSOLVER_HH
    \n
    7
    \n-
    8#include <cmath>
    \n-
    9#include <complex>
    \n-
    10#include <iostream>
    \n-
    11#include <iterator>
    \n-
    12#include <memory>
    \n-
    13
    \n-
    14#include <dune/common/iteratorfacades.hh>
    \n-
    15#include "istlexception.hh"
    \n-
    16#include "bvector.hh"
    \n-
    17
    \n-\n-
    19
    \n-
    24namespace Dune {
    \n-
    25
    \n-
    41 template<class B, class A=std::allocator<B> >
    \n-
    \n-
    42 class VariableBlockVector : public Imp::block_vector_unmanaged<B,A>
    \n-
    43 // this derivation gives us all the blas level 1 and norms
    \n-
    44 // on the large array. However, access operators have to be
    \n-
    45 // overwritten.
    \n-
    46 {
    \n-
    47 // just a shorthand
    \n-
    48 typedef Imp::BlockVectorWindow<B,A> window_type;
    \n-
    49
    \n-
    50 public:
    \n-
    51
    \n-
    52 //===== type definitions and constants
    \n-
    53
    \n-
    55 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n-
    56
    \n-
    58 typedef A allocator_type;
    \n-
    59
    \n-
    64 typedef window_type& reference;
    \n-
    65
    \n-
    70 typedef const window_type& const_reference;
    \n-
    71
    \n-
    73 typedef typename A::size_type size_type;
    \n-
    74
    \n-\n-
    81
    \n-\n-
    85
    \n-
    89 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n-
    90 static constexpr auto blocklevel = blockLevel<B>()+2;
    \n-
    91
    \n-
    92 //===== constructors and such
    \n-
    93
    \n-
    \n-
    97 VariableBlockVector () : Imp::block_vector_unmanaged<B,A>()
    \n-
    98 {
    \n-
    99 // nothing is known ...
    \n-
    100 nblocks = 0;
    \n-
    101 block = nullptr;
    \n-
    102 initialized = false;
    \n-
    103 }
    \n-
    \n-
    104
    \n-
    \n-
    108 explicit VariableBlockVector (size_type _nblocks) : Imp::block_vector_unmanaged<B,A>()
    \n-
    109 {
    \n-
    110 // we can allocate the windows now
    \n-
    111 nblocks = _nblocks;
    \n-
    112 if (nblocks>0)
    \n-
    113 {
    \n-
    114 block = windowAllocator_.allocate(nblocks);
    \n-
    115 new (block) window_type[nblocks];
    \n-
    116 }
    \n-
    117 else
    \n-
    118 {
    \n-
    119 nblocks = 0;
    \n-
    120 block = nullptr;
    \n-
    121 }
    \n-
    122
    \n-
    123 // Note: memory in base class still not allocated
    \n-
    124 // the vector not usable
    \n-
    125 initialized = false;
    \n-
    126 }
    \n-
    \n-
    127
    \n-
    \n-
    134 VariableBlockVector (size_type _nblocks, size_type m) : Imp::block_vector_unmanaged<B,A>()
    \n-
    135 {
    \n-
    136 // and we can allocate the big array in the base class
    \n-
    137 this->n = _nblocks*m;
    \n-
    138 if (this->n>0)
    \n-
    139 {
    \n-
    140 this->p = allocator_.allocate(this->n);
    \n-
    141 new (this->p)B[this->n];
    \n-
    142 }
    \n-
    143 else
    \n-
    144 {
    \n-
    145 this->n = 0;
    \n-
    146 this->p = nullptr;
    \n-
    147 }
    \n+
    8#include <map>
    \n+
    9#include <dune/common/typetraits.hh>
    \n+\n+
    11#include "matrix.hh"
    \n+
    12#include <cmath>
    \n+
    13#include <cstdlib>
    \n+
    14
    \n+
    15namespace Dune {
    \n+
    16
    \n+
    35 template<class M, class X, class Y>
    \n+
    \n+\n+
    37 public:
    \n+
    39 typedef typename std::remove_const<M>::type matrix_type;
    \n+
    41 typedef X domain_type;
    \n+
    43 typedef Y range_type;
    \n+
    44
    \n+
    51 virtual void apply (X& v, const Y& d) =0;
    \n+
    52
    \n+
    \n+\n+
    54 {}
    \n+
    \n+
    55
    \n+
    56 protected:
    \n+
    62 template<class S>
    \n+
    63 std::size_t copyToLocalMatrix(const M& A, S& rowset);
    \n+
    64
    \n+
    66 // for ILUN
    \n+\n+
    68 };
    \n+
    \n+
    69
    \n+
    76 template<class M, class X, class Y>
    \n+
    \n+\n+
    78 : public ILUSubdomainSolver<M,X,Y>{
    \n+
    79 public:
    \n+
    81 typedef typename std::remove_const<M>::type matrix_type;
    \n+
    82 typedef typename std::remove_const<M>::type rilu_type;
    \n+
    84 typedef X domain_type;
    \n+
    86 typedef Y range_type;
    \n+
    87
    \n+
    88
    \n+
    \n+
    93 void apply (X& v, const Y& d)
    \n+
    94 {
    \n+
    95 ILU::blockILUBacksolve(this->ILU,v,d);
    \n+
    96 }
    \n+
    \n+
    104 template<class S>
    \n+
    105 void setSubMatrix(const M& A, S& rowset);
    \n+
    106
    \n+
    107 };
    \n+
    \n+
    108
    \n+
    109 template<class M, class X, class Y>
    \n+
    \n+\n+
    111 : public ILUSubdomainSolver<M,X,Y>{
    \n+
    112 public:
    \n+
    114 typedef typename std::remove_const<M>::type matrix_type;
    \n+
    115 typedef typename std::remove_const<M>::type rilu_type;
    \n+
    117 typedef X domain_type;
    \n+
    119 typedef Y range_type;
    \n+
    120
    \n+
    \n+
    125 void apply (X& v, const Y& d)
    \n+
    126 {
    \n+
    127 ILU::blockILUBacksolve(RILU,v,d);
    \n+
    128 }
    \n+
    \n+
    129
    \n+
    137 template<class S>
    \n+
    138 void setSubMatrix(const M& A, S& rowset);
    \n+
    139
    \n+
    140 private:
    \n+
    144 rilu_type RILU;
    \n+
    145 };
    \n+
    \n+
    146
    \n+
    147
    \n
    148
    \n-
    149 // we can allocate the windows now
    \n-
    150 nblocks = _nblocks;
    \n-
    151 if (nblocks>0)
    \n-
    152 {
    \n-
    153 // allocate and construct the windows
    \n-
    154 block = windowAllocator_.allocate(nblocks);
    \n-
    155 new (block) window_type[nblocks];
    \n-
    156
    \n-
    157 // set the windows into the big array
    \n-
    158 for (size_type i=0; i<nblocks; ++i)
    \n-
    159 block[i].set(m,this->p+(i*m));
    \n-
    160 }
    \n-
    161 else
    \n-
    162 {
    \n-
    163 nblocks = 0;
    \n-
    164 block = nullptr;
    \n-
    165 }
    \n-
    166
    \n-
    167 // and the vector is usable
    \n-
    168 initialized = true;
    \n-
    169 }
    \n-
    \n-
    170
    \n-
    \n-\n-
    173 {
    \n-
    174 // allocate the big array in the base class
    \n-
    175 this->n = a.n;
    \n-
    176 if (this->n>0)
    \n-
    177 {
    \n-
    178 // allocate and construct objects
    \n-
    179 this->p = allocator_.allocate(this->n);
    \n-
    180 new (this->p)B[this->n];
    \n-
    181
    \n-
    182 // copy data
    \n-
    183 for (size_type i=0; i<this->n; i++) this->p[i]=a.p[i];
    \n-
    184 }
    \n-
    185 else
    \n-
    186 {
    \n-
    187 this->n = 0;
    \n-
    188 this->p = nullptr;
    \n-
    189 }
    \n-
    190
    \n-
    191 // we can allocate the windows now
    \n-
    192 nblocks = a.nblocks;
    \n-
    193 if (nblocks>0)
    \n-
    194 {
    \n-
    195 // alloc
    \n-
    196 block = windowAllocator_.allocate(nblocks);
    \n-
    197 new (block) window_type[nblocks];
    \n+
    149 template<class M, class X, class Y>
    \n+
    150 template<class S>
    \n+
    \n+
    151 std::size_t ILUSubdomainSolver<M,X,Y>::copyToLocalMatrix(const M& A, S& rowSet)
    \n+
    152 {
    \n+
    153 // Calculate consecutive indices for local problem
    \n+
    154 // while perserving the ordering
    \n+
    155 typedef typename M::size_type size_type;
    \n+
    156 typedef std::map<typename S::value_type,size_type> IndexMap;
    \n+
    157 typedef typename IndexMap::iterator IMIter;
    \n+
    158 IndexMap indexMap;
    \n+
    159 IMIter guess = indexMap.begin();
    \n+
    160 size_type localIndex=0;
    \n+
    161
    \n+
    162 typedef typename S::const_iterator SIter;
    \n+
    163 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();
    \n+
    164 rowIdx!= rowEnd; ++rowIdx, ++localIndex)
    \n+
    165 guess = indexMap.insert(guess,
    \n+
    166 std::make_pair(*rowIdx,localIndex));
    \n+
    167
    \n+
    168
    \n+
    169 // Build Matrix for local subproblem
    \n+
    170 ILU.setSize(rowSet.size(),rowSet.size());
    \n+
    171 ILU.setBuildMode(matrix_type::row_wise);
    \n+
    172
    \n+
    173 // Create sparsity pattern
    \n+
    174 typedef typename matrix_type::CreateIterator CIter;
    \n+
    175 CIter rowCreator = ILU.createbegin();
    \n+
    176 std::size_t offset=0;
    \n+
    177 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();
    \n+
    178 rowIdx!= rowEnd; ++rowIdx, ++rowCreator) {
    \n+
    179 // See which row entries are in our subset and add them to
    \n+
    180 // the sparsity pattern
    \n+
    181 guess = indexMap.begin();
    \n+
    182
    \n+
    183 for(typename matrix_type::ConstColIterator col=A[*rowIdx].begin(),
    \n+
    184 endcol=A[*rowIdx].end(); col != endcol; ++col) {
    \n+
    185 // search for the entry in the row set
    \n+
    186 guess = indexMap.find(col.index());
    \n+
    187 if(guess!=indexMap.end()) {
    \n+
    188 // add local index to row
    \n+
    189 rowCreator.insert(guess->second);
    \n+
    190 offset=std::max(offset,(std::size_t)std::abs((int)(guess->second-rowCreator.index())));
    \n+
    191 }
    \n+
    192 }
    \n+
    193
    \n+
    194 }
    \n+
    195
    \n+
    196 // Insert the matrix values for the local problem
    \n+
    197 typename matrix_type::iterator iluRow=ILU.begin();
    \n
    198
    \n-
    199 // and we must set the windows
    \n-
    200 block[0].set(a.block[0].getsize(),this->p); // first block
    \n-
    201 for (size_type i=1; i<nblocks; ++i) // and the rest
    \n-
    202 block[i].set(a.block[i].getsize(),block[i-1].getptr()+block[i-1].getsize());
    \n-
    203 }
    \n-
    204 else
    \n-
    205 {
    \n-
    206 nblocks = 0;
    \n-
    207 block = nullptr;
    \n-
    208 }
    \n-
    209
    \n-
    210 // and we have a usable vector
    \n-
    211 initialized = true;
    \n-
    212 }
    \n-
    \n-
    213
    \n-
    \n-\n-
    216 {
    \n-
    217 if (this->n>0) {
    \n-
    218 size_type i=this->n;
    \n-
    219 while (i)
    \n-
    220 this->p[--i].~B();
    \n-
    221 allocator_.deallocate(this->p,this->n);
    \n-
    222 }
    \n-
    223 if (nblocks>0) {
    \n-
    224 size_type i=nblocks;
    \n-
    225 while (i)
    \n-
    226 block[--i].~window_type();
    \n-
    227 windowAllocator_.deallocate(block,nblocks);
    \n-
    228 }
    \n-
    229
    \n-
    230 }
    \n-
    \n-
    231
    \n-
    232
    \n-
    \n-
    234 void resize (size_type _nblocks)
    \n-
    235 {
    \n-
    236 // deconstruct objects and deallocate memory if necessary
    \n-
    237 if (this->n>0) {
    \n-
    238 size_type i=this->n;
    \n-
    239 while (i)
    \n-
    240 this->p[--i].~B();
    \n-
    241 allocator_.deallocate(this->p,this->n);
    \n-
    242 }
    \n-
    243 if (nblocks>0) {
    \n-
    244 size_type i=nblocks;
    \n-
    245 while (i)
    \n-
    246 block[--i].~window_type();
    \n-
    247 windowAllocator_.deallocate(block,nblocks);
    \n-
    248 }
    \n-
    249 this->n = 0;
    \n-
    250 this->p = nullptr;
    \n-
    251
    \n-
    252 // we can allocate the windows now
    \n-
    253 nblocks = _nblocks;
    \n-
    254 if (nblocks>0)
    \n-
    255 {
    \n-
    256 block = windowAllocator_.allocate(nblocks);
    \n-
    257 new (block) window_type[nblocks];
    \n-
    258 }
    \n-
    259 else
    \n-
    260 {
    \n-
    261 nblocks = 0;
    \n-
    262 block = nullptr;
    \n-
    263 }
    \n-
    264
    \n-
    265 // and the vector not fully usable
    \n-
    266 initialized = false;
    \n-
    267 }
    \n-
    \n-
    268
    \n-
    \n-
    270 void resize (size_type _nblocks, size_type m)
    \n-
    271 {
    \n-
    272 // deconstruct objects and deallocate memory if necessary
    \n-
    273 if (this->n>0) {
    \n-
    274 size_type i=this->n;
    \n-
    275 while (i)
    \n-
    276 this->p[--i].~B();
    \n-
    277 allocator_.deallocate(this->p,this->n);
    \n-
    278 }
    \n-
    279 if (nblocks>0) {
    \n-
    280 size_type i=nblocks;
    \n-
    281 while (i)
    \n-
    282 block[--i].~window_type();
    \n-
    283 windowAllocator_.deallocate(block,nblocks);
    \n-
    284 }
    \n-
    285
    \n-
    286 // and we can allocate the big array in the base class
    \n-
    287 this->n = _nblocks*m;
    \n-
    288 if (this->n>0)
    \n-
    289 {
    \n-
    290 this->p = allocator_.allocate(this->n);
    \n-
    291 new (this->p)B[this->n];
    \n-
    292 }
    \n-
    293 else
    \n-
    294 {
    \n-
    295 this->n = 0;
    \n-
    296 this->p = nullptr;
    \n-
    297 }
    \n-
    298
    \n-
    299 // we can allocate the windows now
    \n-
    300 nblocks = _nblocks;
    \n-
    301 if (nblocks>0)
    \n-
    302 {
    \n-
    303 // allocate and construct objects
    \n-
    304 block = windowAllocator_.allocate(nblocks);
    \n-
    305 new (block) window_type[nblocks];
    \n-
    306
    \n-
    307 // set the windows into the big array
    \n-
    308 for (size_type i=0; i<nblocks; ++i)
    \n-
    309 block[i].set(m,this->p+(i*m));
    \n-
    310 }
    \n-
    311 else
    \n-
    312 {
    \n-
    313 nblocks = 0;
    \n-
    314 block = nullptr;
    \n-
    315 }
    \n-
    316
    \n-
    317 // and the vector is usable
    \n-
    318 initialized = true;
    \n-
    319 }
    \n-
    \n-
    320
    \n-
    \n-\n-
    323 {
    \n-
    324 if (&a!=this) // check if this and a are different objects
    \n-
    325 {
    \n-
    326 // reallocate arrays if necessary
    \n-
    327 // Note: still the block sizes may vary !
    \n-
    328 if (this->n!=a.n || nblocks!=a.nblocks)
    \n-
    329 {
    \n-
    330 // deconstruct objects and deallocate memory if necessary
    \n-
    331 if (this->n>0) {
    \n-
    332 size_type i=this->n;
    \n-
    333 while (i)
    \n-
    334 this->p[--i].~B();
    \n-
    335 allocator_.deallocate(this->p,this->n);
    \n-
    336 }
    \n-
    337 if (nblocks>0) {
    \n-
    338 size_type i=nblocks;
    \n-
    339 while (i)
    \n-
    340 block[--i].~window_type();
    \n-
    341 windowAllocator_.deallocate(block,nblocks);
    \n-
    342 }
    \n-
    343
    \n-
    344 // allocate the big array in the base class
    \n-
    345 this->n = a.n;
    \n-
    346 if (this->n>0)
    \n-
    347 {
    \n-
    348 // allocate and construct objects
    \n-
    349 this->p = allocator_.allocate(this->n);
    \n-
    350 new (this->p)B[this->n];
    \n-
    351 }
    \n-
    352 else
    \n-
    353 {
    \n-
    354 this->n = 0;
    \n-
    355 this->p = nullptr;
    \n-
    356 }
    \n-
    357
    \n-
    358 // we can allocate the windows now
    \n-
    359 nblocks = a.nblocks;
    \n-
    360 if (nblocks>0)
    \n-
    361 {
    \n-
    362 // alloc
    \n-
    363 block = windowAllocator_.allocate(nblocks);
    \n-
    364 new (block) window_type[nblocks];
    \n-
    365 }
    \n-
    366 else
    \n-
    367 {
    \n-
    368 nblocks = 0;
    \n-
    369 block = nullptr;
    \n-
    370 }
    \n-
    371 }
    \n-
    372
    \n-
    373 // copy block structure, might be different although
    \n-
    374 // sizes are the same !
    \n-
    375 if (nblocks>0)
    \n-
    376 {
    \n-
    377 block[0].set(a.block[0].getsize(),this->p); // first block
    \n-
    378 for (size_type i=1; i<nblocks; ++i) // and the rest
    \n-
    379 block[i].set(a.block[i].getsize(),block[i-1].getptr()+block[i-1].getsize());
    \n-
    380 }
    \n-
    381
    \n-
    382 // and copy the data
    \n-
    383 for (size_type i=0; i<this->n; i++) this->p[i]=a.p[i];
    \n-
    384 }
    \n-
    385
    \n-
    386 // and we have a usable vector
    \n-
    387 initialized = true;
    \n-
    388
    \n-
    389 return *this; // Gebe Referenz zurueck damit a=b=c; klappt
    \n-
    390 }
    \n-
    \n-
    391
    \n-
    392
    \n-
    393 //===== assignment from scalar
    \n-
    394
    \n-
    \n-\n-
    397 {
    \n-
    398 (static_cast<Imp::block_vector_unmanaged<B,A>&>(*this)) = k;
    \n-
    399 return *this;
    \n-
    400 }
    \n-
    \n-
    401
    \n-
    402
    \n-
    403 //===== the creation interface
    \n-
    404
    \n-
    405 class CreateIterator;
    \n-
    406
    \n-
    407#ifndef DOXYGEN
    \n-
    408
    \n-
    409 // The window_type does not hand out a reference to its size,
    \n-
    410 // so in order to provide a valid iterator, we need a workaround
    \n-
    411 // to make assignment possible. This proxy enables just that by
    \n-
    412 // implicitly converting to the stored size for read access and
    \n-
    413 // tunneling assignment to the accessor method of the window.
    \n-
    414 struct SizeProxy
    \n-
    415 {
    \n-
    416
    \n-
    417 operator size_type() const
    \n-
    418 {
    \n-
    419 return target->getsize();
    \n-
    420 }
    \n-
    421
    \n-
    422 SizeProxy& operator=(size_type size)
    \n-
    423 {
    \n-
    424 target->setsize(size);
    \n-
    425 return *this;
    \n-
    426 }
    \n-
    427
    \n-
    428 private:
    \n-
    429
    \n-
    430 friend class CreateIterator;
    \n-
    431
    \n-
    432 SizeProxy(window_type& t)
    \n-
    433 : target(&t)
    \n-
    434 {}
    \n-
    435
    \n-
    436 window_type* target;
    \n-
    437 };
    \n-
    438
    \n-
    439#endif // DOXYGEN
    \n-
    440
    \n-
    \n-\n-
    443 {
    \n-
    444 public:
    \n-
    446 using iterator_category = std::output_iterator_tag;
    \n-
    447
    \n-\n-
    450
    \n-
    457 using difference_type = void;
    \n-
    458
    \n-\n-
    461
    \n-
    463 using reference = SizeProxy;
    \n-
    464
    \n-
    \n-
    466 CreateIterator (VariableBlockVector& _v, int _i, bool _isEnd) :
    \n-
    467 v(_v),
    \n-
    468 i(_i),
    \n-
    469 isEnd(_isEnd) {}
    \n-
    \n-
    470
    \n-
    \n-\n-
    472 // When the iterator gets destructed, we allocate the memory
    \n-
    473 // for the VariableBlockVector if
    \n-
    474 // 1. the current iterator was not created as enditerator
    \n-
    475 // 2. we're at the last block
    \n-
    476 // 3. the vector hasn't been initialized earlier
    \n-
    477 if (not isEnd && i==v.nblocks && not v.initialized)
    \n-
    478 v.allocate();
    \n-
    479 }
    \n-
    \n-
    480
    \n-
    \n-\n-
    483 {
    \n-
    484 // go to next block
    \n-
    485 ++i;
    \n-
    486
    \n-
    487 return *this;
    \n-
    488 }
    \n-
    \n-
    489
    \n-
    \n-\n-
    492 {
    \n-
    493 CreateIterator tmp(*this);
    \n-
    494 this->operator++();
    \n-
    495 return tmp;
    \n-
    496 }
    \n-
    \n-
    497
    \n-
    \n-
    499 bool operator!= (const CreateIterator& it) const
    \n-
    500 {
    \n-
    501 return (i!=it.i) || (&v!=&it.v);
    \n-
    502 }
    \n-
    \n-
    503
    \n-
    \n-
    505 bool operator== (const CreateIterator& it) const
    \n-
    506 {
    \n-
    507 return (i==it.i) && (&v==&it.v);
    \n-
    508 }
    \n-
    \n-
    509
    \n-
    \n-\n-
    512 {
    \n-
    513 return i;
    \n-
    514 }
    \n-
    \n-
    515
    \n-
    \n-\n-
    518 {
    \n-
    519 v.block[i].setsize(_k);
    \n-
    520 }
    \n-
    \n-
    521
    \n-
    523#ifdef DOXYGEN
    \n-
    524 size_type&
    \n-
    525#else
    \n-
    526 SizeProxy
    \n-
    527#endif
    \n-
    \n-\n-
    529 {
    \n-
    530 return {v.block[i]};
    \n-
    531 }
    \n-
    \n-
    532
    \n-
    533 private:
    \n-
    534 VariableBlockVector& v; // my vector
    \n-
    535 size_type i; // current block to be defined
    \n-
    536 const bool isEnd; // flag if this object was created as the end iterator.
    \n-
    537 };
    \n-
    \n-
    538
    \n-
    539 // CreateIterator wants to set all the arrays ...
    \n-
    540 friend class CreateIterator;
    \n-
    541
    \n-
    \n-\n-
    544 {
    \n-
    545#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    546 if (initialized) DUNE_THROW(ISTLError,"no CreateIterator in initialized state");
    \n-
    547#endif
    \n-
    548 return CreateIterator(*this,0, false);
    \n-
    549 }
    \n-
    \n-
    550
    \n-
    \n-\n-
    553 {
    \n-
    554 return CreateIterator(*this,nblocks, true);
    \n-
    555 }
    \n-
    \n-
    556
    \n-
    557
    \n-
    558 //===== access to components
    \n-
    559 // has to be overwritten from base class because it must
    \n-
    560 // return access to the windows
    \n-
    561
    \n-
    \n-
    563 window_type& operator[] (size_type i)
    \n-
    564 {
    \n-
    565#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    566 if (i>=nblocks) DUNE_THROW(ISTLError,"index out of range");
    \n-
    567#endif
    \n-
    568 return block[i];
    \n-
    569 }
    \n-
    \n-
    570
    \n-
    \n-
    572 const window_type& operator[] (size_type i) const
    \n-
    573 {
    \n-
    574#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    575 if (i<0 || i>=nblocks) DUNE_THROW(ISTLError,"index out of range");
    \n-
    576#endif
    \n-
    577 return block[i];
    \n-
    578 }
    \n-
    \n-
    579
    \n-
    581 template <class T, class R>
    \n-
    \n-\n-
    583 : public RandomAccessIteratorFacade<RealIterator<T,R>, T, R>
    \n-
    584 {
    \n-
    585 public:
    \n-
    \n-\n-
    588 {
    \n-
    589 p = nullptr;
    \n-
    590 i = 0;
    \n-
    591 }
    \n-
    \n-
    592
    \n-
    \n-
    594 RealIterator (window_type* _p, size_type _i)
    \n-
    595 : p(_p), i(_i)
    \n-
    596 {}
    \n-
    \n-
    597
    \n-
    \n-\n-
    600 {
    \n-
    601 ++i;
    \n-
    602 }
    \n-
    \n-
    603
    \n-
    \n-\n-
    606 {
    \n-
    607 --i;
    \n-
    608 }
    \n-
    \n-
    609
    \n-
    \n-
    611 bool equals (const RealIterator& it) const
    \n-
    612 {
    \n-
    613 return (p+i)==(it.p+it.i);
    \n-
    614 }
    \n-
    \n-
    615
    \n-
    \n-
    617 window_type& dereference () const
    \n-
    618 {
    \n-
    619 return p[i];
    \n-
    620 }
    \n-
    \n-
    621
    \n-
    \n-
    622 void advance(std::ptrdiff_t d)
    \n-
    623 {
    \n-
    624 i+=d;
    \n-
    625 }
    \n-
    \n-
    626
    \n-
    \n-
    627 std::ptrdiff_t distanceTo(const RealIterator& o) const
    \n-
    628 {
    \n-
    629 return o.i-i;
    \n-
    630 }
    \n-
    \n-
    631
    \n-
    632 // Needed for operator[] of the iterator
    \n-
    \n-
    633 window_type& elementAt (std::ptrdiff_t offset) const
    \n-
    634 {
    \n-
    635 return p[i+offset];
    \n-
    636 }
    \n-
    \n-
    637
    \n-
    \n-\n-
    640 {
    \n-
    641 return i;
    \n-
    642 }
    \n-
    \n-
    643
    \n-
    644 private:
    \n-
    645 window_type* p;
    \n-
    646 size_type i;
    \n-
    647 };
    \n-
    \n-
    648
    \n-\n-
    650
    \n-
    \n-\n-
    653 {
    \n-
    654 return Iterator(block,0);
    \n-
    655 }
    \n-
    \n-
    656
    \n-
    \n-\n-
    659 {
    \n-
    660 return Iterator(block,nblocks);
    \n-
    661 }
    \n-
    \n-
    662
    \n-
    \n-\n-
    666 {
    \n-
    667 return Iterator(block,nblocks-1);
    \n-
    668 }
    \n-
    \n-
    669
    \n-
    \n-\n-
    673 {
    \n-
    674 return Iterator(block,-1);
    \n-
    675 }
    \n-
    \n-
    676
    \n-\n-
    679
    \n-\n-
    682
    \n-\n-
    685
    \n-
    \n-\n-
    688 {
    \n-
    689 return ConstIterator(block,0);
    \n-
    690 }
    \n-
    \n-
    691
    \n-
    \n-\n-
    694 {
    \n-
    695 return ConstIterator(block,nblocks);
    \n-
    696 }
    \n-
    \n-
    697
    \n-
    \n-\n-
    701 {
    \n-
    702 return ConstIterator(block,nblocks-1);
    \n-
    703 }
    \n-
    \n-
    704
    \n-
    \n-\n-
    707 {
    \n-
    708 return ConstIterator(block,-1);
    \n-
    709 }
    \n-
    \n-
    710
    \n-
    \n-\n-
    713 {
    \n-
    714 return Iterator(block,std::min(i,nblocks));
    \n-
    715 }
    \n-
    \n-
    716
    \n-
    \n-\n-
    719 {
    \n-
    720 return ConstIterator(block,std::min(i,nblocks));
    \n-
    721 }
    \n-
    \n-
    722
    \n-
    723 //===== sizes
    \n-
    724
    \n-
    \n-
    726 size_type N () const
    \n-
    727 {
    \n-
    728 return nblocks;
    \n-
    729 }
    \n-
    \n-
    730
    \n-
    \n-\n-
    736 {
    \n-
    737 return nblocks;
    \n-
    738 }
    \n-
    \n-
    739
    \n-
    740
    \n-
    741 private:
    \n-
    742
    \n-
    743 void allocate() {
    \n-
    744 if (this->initialized)
    \n-
    745 DUNE_THROW(ISTLError, "Attempt to re-allocate already initialized VariableBlockVector");
    \n-
    746
    \n-
    747 // calculate space needed:
    \n-
    748 this->n=0;
    \n-
    749 for(size_type i = 0; i < nblocks; i++) {
    \n-
    750 this->n += block[i].size();
    \n-
    751 }
    \n-
    752
    \n-
    753 // now we can allocate the big array in the base class of v
    \n-
    754 if (this->n>0)
    \n-
    755 {
    \n-
    756 // allocate and construct objects
    \n-
    757 this->p = allocator_.allocate(this->n);
    \n-
    758 new (this->p)B[this->n];
    \n-
    759 }
    \n-
    760 else
    \n-
    761 {
    \n-
    762 this->p = nullptr;
    \n-
    763 }
    \n-
    764
    \n-
    765 // and we set the window pointers
    \n-
    766 this->block[0].setptr(this->p); // pointer to first block
    \n-
    767 for (size_type j=1; j<nblocks; ++j) // and the rest
    \n-
    768 block[j].setptr(block[j-1].getptr()+block[j-1].getsize());
    \n-
    769
    \n-
    770 // and the vector is ready
    \n-
    771 this->initialized = true;
    \n-
    772 }
    \n-
    773
    \n-
    774 size_type nblocks; // number of blocks in vector
    \n-
    775 window_type* block; // array of blocks pointing to the array in the base class
    \n-
    776 bool initialized; // true if vector has been initialized
    \n-
    777
    \n-
    778 A allocator_;
    \n-
    779
    \n-
    780 typename std::allocator_traits<A>::template rebind_alloc<window_type> windowAllocator_;
    \n-
    781 };
    \n-
    \n-
    782
    \n-
    783
    \n-
    784
    \n-
    787} // end namespace
    \n-
    788
    \n-
    789#endif
    \n-
    Helper functions for determining the vector/matrix block level.
    \n-\n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n+
    199 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();
    \n+
    200 rowIdx!= rowEnd; ++rowIdx, ++iluRow) {
    \n+
    201 // See which row entries are in our subset and add them to
    \n+
    202 // the sparsity pattern
    \n+
    203 typename matrix_type::ColIterator localCol=iluRow->begin();
    \n+
    204 for(typename matrix_type::ConstColIterator col=A[*rowIdx].begin(),
    \n+
    205 endcol=A[*rowIdx].end(); col != endcol; ++col) {
    \n+
    206 // search for the entry in the row set
    \n+
    207 guess = indexMap.find(col.index());
    \n+
    208 if(guess!=indexMap.end()) {
    \n+
    209 // set local value
    \n+
    210 (*localCol)=(*col);
    \n+
    211 ++localCol;
    \n+
    212 }
    \n+
    213 }
    \n+
    214 }
    \n+
    215 return offset;
    \n+
    216 }
    \n+
    \n+
    217
    \n+
    218
    \n+
    219 template<class M, class X, class Y>
    \n+
    220 template<class S>
    \n+
    \n+\n+
    222 {
    \n+
    223 this->copyToLocalMatrix(A,rowSet);
    \n+\n+
    225 }
    \n+
    \n+
    226
    \n+
    227 template<class M, class X, class Y>
    \n+
    228 template<class S>
    \n+
    \n+\n+
    230 {
    \n+
    231 std::size_t offset=copyToLocalMatrix(A,rowSet);
    \n+
    232 RILU.setSize(rowSet.size(),rowSet.size(), (1+2*offset)*rowSet.size());
    \n+
    233 RILU.setBuildMode(matrix_type::row_wise);
    \n+
    234 ILU::blockILUDecomposition(this->ILU, (offset+1)/2, RILU);
    \n+
    235 }
    \n+
    \n+
    236
    \n+
    238} // end name space DUNE
    \n+
    239
    \n+
    240
    \n+
    241#endif
    \n+
    A dynamic dense block matrix class.
    \n+
    Define general preconditioner interface.
    \n+
    std::size_t copyToLocalMatrix(const M &A, S &rowset)
    Copy the local part of the global matrix to ILU.
    Definition ilusubdomainsolver.hh:151
    \n+
    void setSubMatrix(const M &A, S &rowset)
    Set the data of the local problem.
    Definition ilusubdomainsolver.hh:229
    \n+
    void setSubMatrix(const M &A, S &rowset)
    Set the data of the local problem.
    Definition ilusubdomainsolver.hh:221
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n
    Definition allocator.hh:11
    \n-
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    A Vector of blocks with different blocksizes.
    Definition vbvector.hh:46
    \n-
    RealIterator< value_type, window_type & > Iterator
    Definition vbvector.hh:649
    \n-
    VariableBlockVector()
    Definition vbvector.hh:97
    \n-
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition vbvector.hh:55
    \n-
    A allocator_type
    export the allocator type
    Definition vbvector.hh:58
    \n-
    VariableBlockVector(size_type _nblocks, size_type m)
    Definition vbvector.hh:134
    \n-
    size_type size() const
    Definition vbvector.hh:735
    \n-
    size_type N() const
    number of blocks in the vector (are of variable size here)
    Definition vbvector.hh:726
    \n-
    VariableBlockVector(const VariableBlockVector &a)
    copy constructor, has copy semantics
    Definition vbvector.hh:172
    \n-
    VariableBlockVector(size_type _nblocks)
    Definition vbvector.hh:108
    \n-
    ~VariableBlockVector()
    free dynamic memory
    Definition vbvector.hh:215
    \n-
    window_type & operator[](size_type i)
    random access to blocks
    Definition vbvector.hh:563
    \n-
    CreateIterator createend()
    get create iterator pointing to one after the last block
    Definition vbvector.hh:552
    \n-
    Iterator beforeBegin() const
    Definition vbvector.hh:672
    \n-
    CreateIterator createbegin()
    get initial create iterator
    Definition vbvector.hh:543
    \n-
    VariableBlockVector & operator=(const VariableBlockVector &a)
    assignment
    Definition vbvector.hh:322
    \n-
    static constexpr auto blocklevel
    Definition vbvector.hh:90
    \n-
    ConstIterator rend() const
    end ConstIterator
    Definition vbvector.hh:706
    \n-
    A::size_type size_type
    The size type for the index access.
    Definition vbvector.hh:73
    \n-
    ConstIterator find(size_type i) const
    random access returning iterator (end if not contained)
    Definition vbvector.hh:718
    \n-
    ConstIterator beforeEnd() const
    Definition vbvector.hh:700
    \n-
    Iterator find(size_type i)
    random access returning iterator (end if not contained)
    Definition vbvector.hh:712
    \n-
    const window_type & const_reference
    Export type used for const references to container entries.
    Definition vbvector.hh:70
    \n-
    RealIterator< const value_type, const window_type & > ConstIterator
    Const iterator.
    Definition vbvector.hh:681
    \n-
    Iterator end()
    end Iterator
    Definition vbvector.hh:658
    \n-
    ConstIterator begin() const
    begin ConstIterator
    Definition vbvector.hh:687
    \n-
    BlockVector< B, A > value_type
    Type of the elements of the outer vector, i.e., dynamic vectors of B.
    Definition vbvector.hh:80
    \n-
    ConstIterator end() const
    end ConstIterator
    Definition vbvector.hh:693
    \n-
    BlockVector< B, A > block_type
    Same as value_type, here for historical reasons.
    Definition vbvector.hh:84
    \n-
    void resize(size_type _nblocks, size_type m)
    same effect as constructor with same argument
    Definition vbvector.hh:270
    \n-
    window_type & reference
    Export type used for references to container entries.
    Definition vbvector.hh:64
    \n-
    void resize(size_type _nblocks)
    same effect as constructor with same argument
    Definition vbvector.hh:234
    \n-
    Iterator beforeEnd()
    Definition vbvector.hh:665
    \n-
    Iterator begin()
    begin Iterator
    Definition vbvector.hh:652
    \n-
    Iterator class for sequential creation of blocks.
    Definition vbvector.hh:443
    \n-
    bool operator==(const CreateIterator &it) const
    equality
    Definition vbvector.hh:505
    \n-
    size_type index() const
    dereferencing
    Definition vbvector.hh:511
    \n-
    SizeProxy reference
    reference type
    Definition vbvector.hh:463
    \n-
    size_type * pointer
    pointer type
    Definition vbvector.hh:460
    \n-
    bool operator!=(const CreateIterator &it) const
    inequality
    Definition vbvector.hh:499
    \n-
    ~CreateIterator()
    Definition vbvector.hh:471
    \n-
    size_type value_type
    value type
    Definition vbvector.hh:449
    \n-
    CreateIterator(VariableBlockVector &_v, int _i, bool _isEnd)
    constructor
    Definition vbvector.hh:466
    \n-
    void setblocksize(size_type _k)
    set size of current block
    Definition vbvector.hh:517
    \n-
    size_type & operator*()
    Access size of current block.
    Definition vbvector.hh:528
    \n-
    std::output_iterator_tag iterator_category
    iterator category
    Definition vbvector.hh:446
    \n-
    CreateIterator & operator++()
    prefix increment
    Definition vbvector.hh:482
    \n-
    void difference_type
    difference type (unused)
    Definition vbvector.hh:457
    \n-
    Iterator class for sequential access.
    Definition vbvector.hh:584
    \n-
    RealIterator(window_type *_p, size_type _i)
    constructor
    Definition vbvector.hh:594
    \n-
    bool equals(const RealIterator &it) const
    equality
    Definition vbvector.hh:611
    \n-
    size_type index() const
    Return the index of the entry this iterator is pointing to.
    Definition vbvector.hh:639
    \n-
    window_type & elementAt(std::ptrdiff_t offset) const
    Definition vbvector.hh:633
    \n-
    void decrement()
    prefix decrement
    Definition vbvector.hh:605
    \n-
    void advance(std::ptrdiff_t d)
    Definition vbvector.hh:622
    \n-
    void increment()
    prefix increment
    Definition vbvector.hh:599
    \n-
    RealIterator()
    constructor, no arguments
    Definition vbvector.hh:587
    \n-
    std::ptrdiff_t distanceTo(const RealIterator &o) const
    Definition vbvector.hh:627
    \n-
    window_type & dereference() const
    dereferencing
    Definition vbvector.hh:617
    \n+
    void blockILUBacksolve(const M &A, X &v, const Y &d)
    LU backsolve with stored inverse.
    Definition ilu.hh:94
    \n+
    void blockILU0Decomposition(M &A)
    compute ILU decomposition of A. A is overwritten by its decomposition
    Definition ilu.hh:33
    \n+
    void blockILUDecomposition(const M &A, int n, M &ILU)
    Definition ilu.hh:167
    \n+
    base class encapsulating common algorithms of ILU0SubdomainSolver and ILUNSubdomainSolver.
    Definition ilusubdomainsolver.hh:36
    \n+
    matrix_type ILU
    The ILU0 decomposition of the matrix, or the local matrix.
    Definition ilusubdomainsolver.hh:67
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition ilusubdomainsolver.hh:41
    \n+
    virtual ~ILUSubdomainSolver()
    Definition ilusubdomainsolver.hh:53
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition ilusubdomainsolver.hh:43
    \n+
    std::remove_const< M >::type matrix_type
    The matrix type the preconditioner is for.
    Definition ilusubdomainsolver.hh:39
    \n+
    virtual void apply(X &v, const Y &d)=0
    Apply the subdomain solver.
    \n+
    Exact subdomain solver using ILU(p) with appropriate p.
    Definition ilusubdomainsolver.hh:78
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition ilusubdomainsolver.hh:84
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition ilusubdomainsolver.hh:86
    \n+
    std::remove_const< M >::type rilu_type
    Definition ilusubdomainsolver.hh:82
    \n+
    std::remove_const< M >::type matrix_type
    The matrix type the preconditioner is for.
    Definition ilusubdomainsolver.hh:81
    \n+
    void apply(X &v, const Y &d)
    Apply the subdomain solver.
    Definition ilusubdomainsolver.hh:93
    \n+
    Definition ilusubdomainsolver.hh:111
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition ilusubdomainsolver.hh:117
    \n+
    std::remove_const< M >::type matrix_type
    The matrix type the preconditioner is for.
    Definition ilusubdomainsolver.hh:114
    \n+
    std::remove_const< M >::type rilu_type
    Definition ilusubdomainsolver.hh:115
    \n+
    void apply(X &v, const Y &d)
    Apply the subdomain solver.
    Definition ilusubdomainsolver.hh:125
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition ilusubdomainsolver.hh:119
    \n+
    RowIterator end()
    Get iterator to one beyond last row.
    Definition matrix.hh:620
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,930 +1,288 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-vbvector.hh\n+ilusubdomainsolver.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_VBVECTOR_HH\n-6#define DUNE_ISTL_VBVECTOR_HH\n+5#ifndef DUNE_ISTL_ILUSUBDOMAINSOLVER_HH\n+6#define DUNE_ISTL_ILUSUBDOMAINSOLVER_HH\n 7\n-8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13\n-14#include \n-15#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-16#include \"_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\"\n-17\n-18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n-19\n-24namespace _\bD_\bu_\bn_\be {\n-25\n-41 template >\n-_\b4_\b2 class _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br : public Imp::block_vector_unmanaged\n-43 // this derivation gives us all the blas level 1 and norms\n-44 // on the large array. However, access operators have to be\n-45 // overwritten.\n-46 {\n-47 // just a shorthand\n-48 typedef Imp::BlockVectorWindow window_type;\n-49\n-50 public:\n-51\n-52 //===== type definitions and constants\n-53\n-_\b5_\b5 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename Imp::BlockTraits::field_type;\n-56\n-_\b5_\b8 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n-59\n-_\b6_\b4 typedef window_type& _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-65\n-_\b7_\b0 typedef const window_type& _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-71\n-_\b7_\b3 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-74\n-_\b8_\b0 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bB_\b,_\bA_\b> _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be;\n-81\n-_\b8_\b4 typedef _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bB_\b,_\bA_\b> _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-85\n-89 [[deprecated(\"Use free function blockLevel(). Will be removed after 2.8.\")]]\n-_\b9_\b0 static constexpr auto _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+2;\n-91\n-92 //===== constructors and such\n-93\n-_\b9_\b7 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br () : Imp::block_vector_unmanaged()\n-98 {\n-99 // nothing is known ...\n-100 nblocks = 0;\n-101 block = nullptr;\n-102 initialized = false;\n-103 }\n-104\n-_\b1_\b0_\b8 explicit _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nblocks) : Imp::\n-block_vector_unmanaged()\n-109 {\n-110 // we can allocate the windows now\n-111 nblocks = _nblocks;\n-112 if (nblocks>0)\n-113 {\n-114 block = windowAllocator_.allocate(nblocks);\n-115 new (block) window_type[nblocks];\n-116 }\n-117 else\n-118 {\n-119 nblocks = 0;\n-120 block = nullptr;\n-121 }\n-122\n-123 // Note: memory in base class still not allocated\n-124 // the vector not usable\n-125 initialized = false;\n-126 }\n-127\n-_\b1_\b3_\b4 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nblocks, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be m) : Imp::\n-block_vector_unmanaged()\n-135 {\n-136 // and we can allocate the big array in the base class\n-137 this->n = _nblocks*m;\n-138 if (this->n>0)\n-139 {\n-140 this->p = allocator_.allocate(this->n);\n-141 new (this->p)B[this->n];\n-142 }\n-143 else\n-144 {\n-145 this->n = 0;\n-146 this->p = nullptr;\n-147 }\n+8#include \n+9#include \n+10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh>\n+11#include \"_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\"\n+12#include \n+13#include \n+14\n+15namespace _\bD_\bu_\bn_\be {\n+16\n+35 template\n+_\b3_\b6 class _\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br {\n+37 public:\n+_\b3_\b9 typedef typename std::remove_const::type _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b4_\b1 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b4_\b3 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+44\n+_\b5_\b1 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d) =0;\n+52\n+_\b5_\b3 virtual _\b~_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br()\n+54 {}\n+55\n+56 protected:\n+62 template\n+63 std::size_t _\bc_\bo_\bp_\by_\bT_\bo_\bL_\bo_\bc_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S& rowset);\n+64\n+66 // for ILUN\n+_\b6_\b7 _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be _\bI_\bL_\bU;\n+68 };\n+69\n+76 template\n+_\b7_\b7 class _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n+78 : public _\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br{\n+79 public:\n+_\b8_\b1 typedef typename std::remove_const::type _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b8_\b2 typedef typename std::remove_const::type _\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be;\n+_\b8_\b4 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b8_\b6 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+87\n+88\n+_\b9_\b3 void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+94 {\n+95 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be(this->_\bI_\bL_\bU,v,d);\n+96 }\n+104 template\n+105 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S& rowset);\n+106\n+107 };\n+108\n+109 template\n+_\b1_\b1_\b0 class _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n+111 : public _\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br{\n+112 public:\n+_\b1_\b1_\b4 typedef typename std::remove_const::type _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b1_\b1_\b5 typedef typename std::remove_const::type _\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be;\n+_\b1_\b1_\b7 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b1_\b1_\b9 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+120\n+_\b1_\b2_\b5 void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+126 {\n+127 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be(RILU,v,d);\n+128 }\n+129\n+137 template\n+138 void _\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S& rowset);\n+139\n+140 private:\n+144 _\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be RILU;\n+145 };\n+146\n+147\n 148\n-149 // we can allocate the windows now\n-150 nblocks = _nblocks;\n-151 if (nblocks>0)\n+149 template\n+150 template\n+_\b1_\b5_\b1 std::size_t _\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bc_\bo_\bp_\by_\bT_\bo_\bL_\bo_\bc_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S&\n+rowSet)\n 152 {\n-153 // allocate and construct the windows\n-154 block = windowAllocator_.allocate(nblocks);\n-155 new (block) window_type[nblocks];\n-156\n-157 // set the windows into the big array\n-158 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; ip+(i*m));\n-160 }\n-161 else\n-162 {\n-163 nblocks = 0;\n-164 block = nullptr;\n-165 }\n-166\n-167 // and the vector is usable\n-168 initialized = true;\n-169 }\n-170\n-_\b1_\b7_\b2 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (const _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& a)\n-173 {\n-174 // allocate the big array in the base class\n-175 this->n = a.n;\n-176 if (this->n>0)\n-177 {\n-178 // allocate and construct objects\n-179 this->p = allocator_.allocate(this->n);\n-180 new (this->p)B[this->n];\n-181\n-182 // copy data\n-183 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; in; i++) this->p[i]=a.p[i];\n-184 }\n-185 else\n-186 {\n-187 this->n = 0;\n-188 this->p = nullptr;\n-189 }\n-190\n-191 // we can allocate the windows now\n-192 nblocks = a.nblocks;\n-193 if (nblocks>0)\n-194 {\n-195 // alloc\n-196 block = windowAllocator_.allocate(nblocks);\n-197 new (block) window_type[nblocks];\n+153 // Calculate consecutive indices for local problem\n+154 // while perserving the ordering\n+155 typedef typename M::size_type size_type;\n+156 typedef std::map IndexMap;\n+157 typedef typename IndexMap::iterator IMIter;\n+158 IndexMap indexMap;\n+159 IMIter guess = indexMap.begin();\n+160 size_type localIndex=0;\n+161\n+162 typedef typename S::const_iterator SIter;\n+163 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();\n+164 rowIdx!= rowEnd; ++rowIdx, ++localIndex)\n+165 guess = indexMap.insert(guess,\n+166 std::make_pair(*rowIdx,localIndex));\n+167\n+168\n+169 // Build Matrix for local subproblem\n+170 ILU.setSize(rowSet.size(),rowSet.size());\n+171 ILU.setBuildMode(matrix_type::row_wise);\n+172\n+173 // Create sparsity pattern\n+174 typedef typename matrix_type::CreateIterator CIter;\n+175 CIter rowCreator = ILU.createbegin();\n+176 std::size_t offset=0;\n+177 for(SIter rowIdx = rowSet.begin(), rowEnd=rowSet.end();\n+178 rowIdx!= rowEnd; ++rowIdx, ++rowCreator) {\n+179 // See which row entries are in our subset and add them to\n+180 // the sparsity pattern\n+181 guess = indexMap.begin();\n+182\n+183 for(typename matrix_type::ConstColIterator _\bc_\bo_\bl=A[*rowIdx].begin(),\n+184 endcol=A[*rowIdx]._\be_\bn_\bd(); _\bc_\bo_\bl != endcol; ++_\bc_\bo_\bl) {\n+185 // search for the entry in the row set\n+186 guess = indexMap.find(_\bc_\bo_\bl.index());\n+187 if(guess!=indexMap.end()) {\n+188 // add local index to row\n+189 rowCreator.insert(guess->second);\n+190 offset=std::max(offset,(std::size_t)std::abs((int)(guess->second-\n+rowCreator.index())));\n+191 }\n+192 }\n+193\n+194 }\n+195\n+196 // Insert the matrix values for the local problem\n+197 typename matrix_type::iterator iluRow=ILU.begin();\n 198\n-199 // and we must set the windows\n-200 block[0].set(a.block[0].getsize(),this->p); // first block\n-201 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=1; ibegin();\n+204 for(typename matrix_type::ConstColIterator _\bc_\bo_\bl=A[*rowIdx].begin(),\n+205 endcol=A[*rowIdx]._\be_\bn_\bd(); _\bc_\bo_\bl != endcol; ++_\bc_\bo_\bl) {\n+206 // search for the entry in the row set\n+207 guess = indexMap.find(_\bc_\bo_\bl.index());\n+208 if(guess!=indexMap.end()) {\n+209 // set local value\n+210 (*localCol)=(*col);\n+211 ++localCol;\n 212 }\n-213\n-_\b2_\b1_\b5 _\b~_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br ()\n-216 {\n-217 if (this->n>0) {\n-218 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n-219 while (i)\n-220 this->p[--i].~B();\n-221 allocator_.deallocate(this->p,this->n);\n-222 }\n-223 if (nblocks>0) {\n-224 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=nblocks;\n-225 while (i)\n-226 block[--i].~window_type();\n-227 windowAllocator_.deallocate(block,nblocks);\n-228 }\n-229\n-230 }\n-231\n-232\n-_\b2_\b3_\b4 void _\br_\be_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nblocks)\n-235 {\n-236 // deconstruct objects and deallocate memory if necessary\n-237 if (this->n>0) {\n-238 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n-239 while (i)\n-240 this->p[--i].~B();\n-241 allocator_.deallocate(this->p,this->n);\n-242 }\n-243 if (nblocks>0) {\n-244 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=nblocks;\n-245 while (i)\n-246 block[--i].~window_type();\n-247 windowAllocator_.deallocate(block,nblocks);\n-248 }\n-249 this->n = 0;\n-250 this->p = nullptr;\n-251\n-252 // we can allocate the windows now\n-253 nblocks = _nblocks;\n-254 if (nblocks>0)\n-255 {\n-256 block = windowAllocator_.allocate(nblocks);\n-257 new (block) window_type[nblocks];\n-258 }\n-259 else\n-260 {\n-261 nblocks = 0;\n-262 block = nullptr;\n-263 }\n-264\n-265 // and the vector not fully usable\n-266 initialized = false;\n-267 }\n-268\n-_\b2_\b7_\b0 void _\br_\be_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _nblocks, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be m)\n-271 {\n-272 // deconstruct objects and deallocate memory if necessary\n-273 if (this->n>0) {\n-274 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n-275 while (i)\n-276 this->p[--i].~B();\n-277 allocator_.deallocate(this->p,this->n);\n-278 }\n-279 if (nblocks>0) {\n-280 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=nblocks;\n-281 while (i)\n-282 block[--i].~window_type();\n-283 windowAllocator_.deallocate(block,nblocks);\n-284 }\n-285\n-286 // and we can allocate the big array in the base class\n-287 this->n = _nblocks*m;\n-288 if (this->n>0)\n-289 {\n-290 this->p = allocator_.allocate(this->n);\n-291 new (this->p)B[this->n];\n-292 }\n-293 else\n-294 {\n-295 this->n = 0;\n-296 this->p = nullptr;\n-297 }\n-298\n-299 // we can allocate the windows now\n-300 nblocks = _nblocks;\n-301 if (nblocks>0)\n-302 {\n-303 // allocate and construct objects\n-304 block = windowAllocator_.allocate(nblocks);\n-305 new (block) window_type[nblocks];\n-306\n-307 // set the windows into the big array\n-308 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; ip+(i*m));\n-310 }\n-311 else\n-312 {\n-313 nblocks = 0;\n-314 block = nullptr;\n-315 }\n-316\n-317 // and the vector is usable\n-318 initialized = true;\n-319 }\n-320\n-_\b3_\b2_\b2 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& a)\n-323 {\n-324 if (&a!=this) // check if this and a are different objects\n-325 {\n-326 // reallocate arrays if necessary\n-327 // Note: still the block sizes may vary !\n-328 if (this->n!=a.n || nblocks!=a.nblocks)\n-329 {\n-330 // deconstruct objects and deallocate memory if necessary\n-331 if (this->n>0) {\n-332 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=this->n;\n-333 while (i)\n-334 this->p[--i].~B();\n-335 allocator_.deallocate(this->p,this->n);\n-336 }\n-337 if (nblocks>0) {\n-338 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=nblocks;\n-339 while (i)\n-340 block[--i].~window_type();\n-341 windowAllocator_.deallocate(block,nblocks);\n-342 }\n-343\n-344 // allocate the big array in the base class\n-345 this->n = a.n;\n-346 if (this->n>0)\n-347 {\n-348 // allocate and construct objects\n-349 this->p = allocator_.allocate(this->n);\n-350 new (this->p)B[this->n];\n-351 }\n-352 else\n-353 {\n-354 this->n = 0;\n-355 this->p = nullptr;\n-356 }\n-357\n-358 // we can allocate the windows now\n-359 nblocks = a.nblocks;\n-360 if (nblocks>0)\n-361 {\n-362 // alloc\n-363 block = windowAllocator_.allocate(nblocks);\n-364 new (block) window_type[nblocks];\n-365 }\n-366 else\n-367 {\n-368 nblocks = 0;\n-369 block = nullptr;\n-370 }\n-371 }\n-372\n-373 // copy block structure, might be different although\n-374 // sizes are the same !\n-375 if (nblocks>0)\n-376 {\n-377 block[0].set(a.block[0].getsize(),this->p); // first block\n-378 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=1; in; i++) this->p[i]=a.p[i];\n-384 }\n-385\n-386 // and we have a usable vector\n-387 initialized = true;\n-388\n-389 return *this; // Gebe Referenz zurueck damit a=b=c; klappt\n-390 }\n-391\n-392\n-393 //===== assignment from scalar\n-394\n-_\b3_\b9_\b6 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n-397 {\n-398 (static_cast&>(*this)) = k;\n-399 return *this;\n-400 }\n-401\n-402\n-403 //===== the creation interface\n-404\n-405 class CreateIterator;\n-406\n-407#ifndef DOXYGEN\n-408\n-409 // The window_type does not hand out a reference to its size,\n-410 // so in order to provide a valid iterator, we need a workaround\n-411 // to make assignment possible. This proxy enables just that by\n-412 // implicitly converting to the stored size for read access and\n-413 // tunneling assignment to the accessor method of the window.\n-414 struct SizeProxy\n-415 {\n-416\n-417 operator size_type() const\n-418 {\n-419 return target->getsize();\n-420 }\n-421\n-422 SizeProxy& operator=(size_type size)\n-423 {\n-424 target->setsize(size);\n-425 return *this;\n-426 }\n-427\n-428 private:\n-429\n-430 friend class CreateIterator;\n-431\n-432 SizeProxy(window_type& t)\n-433 : target(&t)\n-434 {}\n-435\n-436 window_type* target;\n-437 };\n-438\n-439#endif // DOXYGEN\n-440\n-_\b4_\b4_\b2 class _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-443 {\n-444 public:\n-_\b4_\b4_\b6 using _\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by = std::output_iterator_tag;\n-447\n-_\b4_\b4_\b9 using _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be = _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-450\n-_\b4_\b5_\b7 using _\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be = void;\n-458\n-_\b4_\b6_\b0 using _\bp_\bo_\bi_\bn_\bt_\be_\br = _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be*;\n-461\n-_\b4_\b6_\b3 using _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be = SizeProxy;\n-464\n-_\b4_\b6_\b6 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _v, int _i, bool _isEnd) :\n-467 v(_v),\n-468 i(_i),\n-469 isEnd(_isEnd) {}\n-470\n-_\b4_\b7_\b1 _\b~_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br() {\n-472 // When the iterator gets destructed, we allocate the memory\n-473 // for the VariableBlockVector if\n-474 // 1. the current iterator was not created as enditerator\n-475 // 2. we're at the last block\n-476 // 3. the vector hasn't been initialized earlier\n-477 if (not isEnd && i==v.nblocks && not v.initialized)\n-478 v.allocate();\n-479 }\n-480\n-_\b4_\b8_\b2 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+()\n-483 {\n-484 // go to next block\n-485 ++i;\n-486\n-487 return *this;\n-488 }\n-489\n-_\b4_\b9_\b1 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+_\b (int)\n-492 {\n-493 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br tmp(*this);\n-494 this->_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+();\n-495 return tmp;\n-496 }\n-497\n-_\b4_\b9_\b9 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=_\b (const _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-500 {\n-501 return (i!=it.i) || (&v!=&it.v);\n-502 }\n-503\n-_\b5_\b0_\b5 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=_\b (const _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-506 {\n-507 return (i==it.i) && (&v==&it.v);\n-508 }\n-509\n-_\b5_\b1_\b1 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx () const\n-512 {\n-513 return i;\n-514 }\n-515\n-_\b5_\b1_\b7 void _\bs_\be_\bt_\bb_\bl_\bo_\bc_\bk_\bs_\bi_\bz_\be (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _k)\n-518 {\n-519 v.block[i].setsize(_k);\n-520 }\n-521\n-523#ifdef DOXYGEN\n-524 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be&\n-525#else\n-526 SizeProxy\n-527#endif\n-_\b5_\b2_\b8 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*()\n-529 {\n-530 return {v.block[i]};\n-531 }\n-532\n-533 private:\n-534 _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& v; // my vector\n-535 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i; // current block to be defined\n-536 const bool isEnd; // flag if this object was created as the end iterator.\n-537 };\n-538\n-539 // CreateIterator wants to set all the arrays ...\n-_\b5_\b4_\b0 friend class _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-541\n-_\b5_\b4_\b3 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn ()\n-544 {\n-545#ifdef DUNE_ISTL_WITH_CHECKING\n-546 if (initialized) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"no CreateIterator in initialized\n-state\");\n-547#endif\n-548 return _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,0, false);\n-549 }\n-550\n-_\b5_\b5_\b2 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd ()\n-553 {\n-554 return _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(*this,nblocks, true);\n-555 }\n-556\n-557\n-558 //===== access to components\n-559 // has to be overwritten from base class because it must\n-560 // return access to the windows\n-561\n-_\b5_\b6_\b3 window_type& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n-564 {\n-565#ifdef DUNE_ISTL_WITH_CHECKING\n-566 if (i>=nblocks) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n-567#endif\n-568 return block[i];\n-569 }\n-570\n-_\b5_\b7_\b2 const window_type& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]_\b (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-573 {\n-574#ifdef DUNE_ISTL_WITH_CHECKING\n-575 if (i<0 || i>=nblocks) DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"index out of range\");\n-576#endif\n-577 return block[i];\n-578 }\n-579\n-581 template \n-_\b5_\b8_\b2 class _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-583 : public RandomAccessIteratorFacade, T, R>\n-584 {\n-585 public:\n-_\b5_\b8_\b7 _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br ()\n-588 {\n-589 p = nullptr;\n-590 i = 0;\n-591 }\n-592\n-_\b5_\b9_\b4 _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br (window_type* _p, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _i)\n-595 : p(_p), i(_i)\n-596 {}\n-597\n-_\b5_\b9_\b9 void _\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt()\n-600 {\n-601 ++i;\n-602 }\n-603\n-_\b6_\b0_\b5 void _\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt()\n-606 {\n-607 --i;\n-608 }\n-609\n-_\b6_\b1_\b1 bool _\be_\bq_\bu_\ba_\bl_\bs (const _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& it) const\n-612 {\n-613 return (p+i)==(it.p+it.i);\n-614 }\n-615\n-_\b6_\b1_\b7 window_type& _\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be () const\n-618 {\n-619 return p[i];\n-620 }\n-621\n-_\b6_\b2_\b2 void _\ba_\bd_\bv_\ba_\bn_\bc_\be(std::ptrdiff_t d)\n-623 {\n-624 i+=d;\n-625 }\n-626\n-_\b6_\b2_\b7 std::ptrdiff_t _\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo(const _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br& o) const\n-628 {\n-629 return o.i-i;\n-630 }\n-631\n-632 // Needed for operator[] of the iterator\n-_\b6_\b3_\b3 window_type& _\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt (std::ptrdiff_t offset) const\n-634 {\n-635 return p[i+offset];\n-636 }\n-637\n-_\b6_\b3_\b9 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bi_\bn_\bd_\be_\bx() const\n-640 {\n-641 return i;\n-642 }\n-643\n-644 private:\n-645 window_type* p;\n-646 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i;\n-647 };\n-648\n-_\b6_\b4_\b9 using _\bI_\bt_\be_\br_\ba_\bt_\bo_\br = _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b,_\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be_\b&_\b>;\n-650\n-_\b6_\b5_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn ()\n-653 {\n-654 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,0);\n-655 }\n-656\n-_\b6_\b5_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd ()\n-659 {\n-660 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,nblocks);\n-661 }\n-662\n-_\b6_\b6_\b5 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n-666 {\n-667 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,nblocks-1);\n-668 }\n-669\n-_\b6_\b7_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n-673 {\n-674 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,-1);\n-675 }\n-676\n-_\b6_\b7_\b8 using _\bi_\bt_\be_\br_\ba_\bt_\bo_\br = _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-679\n-_\b6_\b8_\b1 using _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br = _\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b<_\bc_\bo_\bn_\bs_\bt_\b _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be_\b,_\b _\bc_\bo_\bn_\bs_\bt_\b _\bw_\bi_\bn_\bd_\bo_\bw_\b__\bt_\by_\bp_\be_\b&_\b>;\n-682\n-_\b6_\b8_\b4 using _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br = _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-685\n-_\b6_\b8_\b7 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn () const\n-688 {\n-689 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,0);\n-690 }\n-691\n-_\b6_\b9_\b3 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd () const\n-694 {\n-695 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,nblocks);\n-696 }\n-697\n-_\b7_\b0_\b0 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd() const\n-701 {\n-702 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,nblocks-1);\n-703 }\n-704\n-_\b7_\b0_\b6 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\br_\be_\bn_\bd () const\n-707 {\n-708 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,-1);\n-709 }\n-710\n-_\b7_\b1_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\bd (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n-713 {\n-714 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,std::min(i,nblocks));\n-715 }\n-716\n-_\b7_\b1_\b8 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bf_\bi_\bn_\bd (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-719 {\n-720 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(block,std::min(i,nblocks));\n-721 }\n-722\n-723 //===== sizes\n-724\n-_\b7_\b2_\b6 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN () const\n-727 {\n-728 return nblocks;\n-729 }\n-730\n-_\b7_\b3_\b5 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be () const\n-736 {\n-737 return nblocks;\n-738 }\n-739\n-740\n-741 private:\n-742\n-743 void allocate() {\n-744 if (this->initialized)\n-745 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Attempt to re-allocate already initialized\n-VariableBlockVector\");\n-746\n-747 // calculate space needed:\n-748 this->n=0;\n-749 for(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i = 0; i < nblocks; i++) {\n-750 this->n += block[i].size();\n-751 }\n-752\n-753 // now we can allocate the big array in the base class of v\n-754 if (this->n>0)\n-755 {\n-756 // allocate and construct objects\n-757 this->p = allocator_.allocate(this->n);\n-758 new (this->p)B[this->n];\n-759 }\n-760 else\n-761 {\n-762 this->p = nullptr;\n-763 }\n-764\n-765 // and we set the window pointers\n-766 this->block[0].setptr(this->p); // pointer to first block\n-767 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j=1; jinitialized = true;\n-772 }\n-773\n-774 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nblocks; // number of blocks in vector\n-775 window_type* block; // array of blocks pointing to the array in the base\n-class\n-776 bool initialized; // true if vector has been initialized\n-777\n-778 A allocator_;\n-779\n-780 typename std::allocator_traits::template rebind_alloc\n-windowAllocator_;\n-781 };\n-782\n-783\n-784\n-787} // end namespace\n-788\n-789#endif\n-_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n-Helper functions for determining the vector/matrix block level.\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n+213 }\n+214 }\n+215 return offset;\n+216 }\n+217\n+218\n+219 template\n+220 template\n+_\b2_\b2_\b1 void _\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S& rowSet)\n+222 {\n+223 this->copyToLocalMatrix(A,rowSet);\n+224 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(this->ILU);\n+225 }\n+226\n+227 template\n+228 template\n+_\b2_\b2_\b9 void _\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b<_\bM_\b,_\bX_\b,_\bY_\b>_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx(const M& A, S& rowSet)\n+230 {\n+231 std::size_t offset=copyToLocalMatrix(A,rowSet);\n+232 RILU.setSize(rowSet.size(),rowSet.size(), (1+2*offset)*rowSet.size());\n+233 RILU.setBuildMode(matrix_type::row_wise);\n+234 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(this->ILU, (offset+1)/2, RILU);\n+235 }\n+236\n+238} // end name space DUNE\n+239\n+240\n+241#endif\n+_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+A dynamic dense block matrix class.\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs_\b._\bh_\bh\n+Define general preconditioner interface.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bc_\bo_\bp_\by_\bT_\bo_\bL_\bo_\bc_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx\n+std::size_t copyToLocalMatrix(const M &A, S &rowset)\n+Copy the local part of the global matrix to ILU.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:151\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n+void setSubMatrix(const M &A, S &rowset)\n+Set the data of the local problem.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:229\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bs_\be_\bt_\bS_\bu_\bb_\bM_\ba_\bt_\br_\bi_\bx\n+void setSubMatrix(const M &A, S &rowset)\n+Set the data of the local problem.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:221\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A Vector of blocks with different blocksizes.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:46\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealIterator< value_type, window_type & > Iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:649\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-VariableBlockVector()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:97\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< B >::field_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:55\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n-A allocator_type\n-export the allocator type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:58\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-VariableBlockVector(size_type _nblocks, size_type m)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:134\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be\n-size_type size() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:735\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bN\n-size_type N() const\n-number of blocks in the vector (are of variable size here)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:726\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-VariableBlockVector(const VariableBlockVector &a)\n-copy constructor, has copy semantics\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:172\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-VariableBlockVector(size_type _nblocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:108\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\b~_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-~VariableBlockVector()\n-free dynamic memory\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:215\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-window_type & operator[](size_type i)\n-random access to blocks\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:563\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\be_\bn_\bd\n-CreateIterator createend()\n-get create iterator pointing to one after the last block\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:552\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n-Iterator beforeBegin() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:672\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn\n-CreateIterator createbegin()\n-get initial create iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:543\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-VariableBlockVector & operator=(const VariableBlockVector &a)\n-assignment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:322\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n-static constexpr auto blocklevel\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:90\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bn_\bd\n-ConstIterator rend() const\n-end ConstIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:706\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-The size type for the index access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:73\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\bn_\bd\n-ConstIterator find(size_type i) const\n-random access returning iterator (end if not contained)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:718\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-ConstIterator beforeEnd() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:700\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\bn_\bd\n-Iterator find(size_type i)\n-random access returning iterator (end if not contained)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:712\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-const window_type & const_reference\n-Export type used for const references to container entries.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealIterator< const value_type, const window_type & > ConstIterator\n-Const iterator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:681\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n-Iterator end()\n-end Iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:658\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-ConstIterator begin() const\n-begin ConstIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:687\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n-BlockVector< B, A > value_type\n-Type of the elements of the outer vector, i.e., dynamic vectors of B.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:80\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\be_\bn_\bd\n-ConstIterator end() const\n-end ConstIterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:693\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-BlockVector< B, A > block_type\n-Same as value_type, here for historical reasons.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:84\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n-void resize(size_type _nblocks, size_type m)\n-same effect as constructor with same argument\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:270\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-window_type & reference\n-Export type used for references to container entries.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:64\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n-void resize(size_type _nblocks)\n-same effect as constructor with same argument\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:234\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-Iterator beforeEnd()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:665\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-Iterator begin()\n-begin Iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:652\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator class for sequential creation of blocks.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:443\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n-bool operator==(const CreateIterator &it) const\n-equality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:505\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n-size_type index() const\n-dereferencing\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:511\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-SizeProxy reference\n-reference type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:463\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bp_\bo_\bi_\bn_\bt_\be_\br\n-size_type * pointer\n-pointer type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:460\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n-bool operator!=(const CreateIterator &it) const\n-inequality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:499\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-~CreateIterator()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:471\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n-size_type value_type\n-value type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:449\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-CreateIterator(VariableBlockVector &_v, int _i, bool _isEnd)\n-constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\be_\bt_\bb_\bl_\bo_\bc_\bk_\bs_\bi_\bz_\be\n-void setblocksize(size_type _k)\n-set size of current block\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:517\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n-size_type & operator*()\n-Access size of current block.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:528\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-std::output_iterator_tag iterator_category\n-iterator category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:446\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b+\n-CreateIterator & operator++()\n-prefix increment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:482\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bf_\bf_\be_\br_\be_\bn_\bc_\be_\b__\bt_\by_\bp_\be\n-void difference_type\n-difference type (unused)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:457\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:584\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealIterator(window_type *_p, size_type _i)\n-constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:594\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bq_\bu_\ba_\bl_\bs\n-bool equals(const RealIterator &it) const\n-equality\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:611\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bd_\be_\bx\n-size_type index() const\n-Return the index of the entry this iterator is pointing to.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:639\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\be_\bl_\be_\bm_\be_\bn_\bt_\bA_\bt\n-window_type & elementAt(std::ptrdiff_t offset) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:633\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\bc_\br_\be_\bm_\be_\bn_\bt\n-void decrement()\n-prefix decrement\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:605\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bd_\bv_\ba_\bn_\bc_\be\n-void advance(std::ptrdiff_t d)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:622\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bc_\br_\be_\bm_\be_\bn_\bt\n-void increment()\n-prefix increment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:599\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-RealIterator()\n-constructor, no arguments\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:587\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bi_\bs_\bt_\ba_\bn_\bc_\be_\bT_\bo\n-std::ptrdiff_t distanceTo(const RealIterator &o) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:627\n-_\bD_\bu_\bn_\be_\b:_\b:_\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bR_\be_\ba_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\be_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-window_type & dereference() const\n-dereferencing\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn vbvector.hh:617\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be\n+void blockILUBacksolve(const M &A, X &v, const Y &d)\n+LU backsolve with stored inverse.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:94\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n+void blockILU0Decomposition(M &A)\n+compute ILU decomposition of A. A is overwritten by its decomposition\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:33\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n+void blockILUDecomposition(const M &A, int n, M &ILU)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:167\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n+base class encapsulating common algorithms of ILU0SubdomainSolver and\n+ILUNSubdomainSolver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:36\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bL_\bU\n+matrix_type ILU\n+The ILU0 decomposition of the matrix, or the local matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:41\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b~_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n+virtual ~ILUSubdomainSolver()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+std::remove_const< M >::type matrix_type\n+The matrix type the preconditioner is for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:39\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &v, const Y &d)=0\n+Apply the subdomain solver.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n+Exact subdomain solver using ILU(p) with appropriate p.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:84\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:86\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be\n+std::remove_const< M >::type rilu_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+std::remove_const< M >::type matrix_type\n+The matrix type the preconditioner is for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:81\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b0_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(X &v, const Y &d)\n+Apply the subdomain solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:93\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:111\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:117\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+std::remove_const< M >::type matrix_type\n+The matrix type the preconditioner is for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\bi_\bl_\bu_\b__\bt_\by_\bp_\be\n+std::remove_const< M >::type rilu_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:115\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(X &v, const Y &d)\n+Apply the subdomain solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:125\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\bN_\bS_\bu_\bb_\bd_\bo_\bm_\ba_\bi_\bn_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilusubdomainsolver.hh:119\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+RowIterator end()\n+Get iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:620\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00206.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00206.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: scaledidmatrix.hh File Reference\n+dune-istl: matrixmatrix.hh File Reference\n \n \n \n \n \n \n \n@@ -71,49 +71,69 @@\n \n
    \n
    \n
    \n \n-
    scaledidmatrix.hh File Reference
    \n+Namespaces |\n+Functions
    \n+ \n
    \n
    \n \n-

    This file implements a quadratic matrix of fixed size which is a multiple of the identity. \n+

    provides functions for sparse matrix matrix multiplication. \n More...

    \n-
    #include <cmath>
    \n-#include <cstddef>
    \n-#include <complex>
    \n-#include <iostream>
    \n-#include <dune/common/exceptions.hh>
    \n+
    #include <tuple>
    \n+#include <dune/istl/bcrsmatrix.hh>
    \n #include <dune/common/fmatrix.hh>
    \n-#include <dune/common/diagonalmatrix.hh>
    \n-#include <dune/common/ftraits.hh>
    \n+#include <dune/common/timer.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n+\n \n-\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::ScaledIdentityMatrix< K, n >
     A multiple of the identity matrix of static size. More...
    struct  Dune::MatMultMatResult< M1, M2 >
     Helper TMP to get the result type of a sparse matrix matrix multiplication ( \"$C=A*B$\") More...
     
    struct  Dune::DenseMatrixAssigner< DenseMatrix, ScaledIdentityMatrix< field, N > >
    struct  Dune::MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >
     
    struct  Dune::FieldTraits< ScaledIdentityMatrix< K, n > >
    struct  Dune::MatMultMatResult< BCRSMatrix< FieldMatrix< T, n, k >, A >, BCRSMatrix< FieldMatrix< T, k, m >, A1 > >
     
    struct  Dune::TransposedMatMultMatResult< M1, M2 >
     Helper TMP to get the result type of a sparse matrix matrix multiplication ( \"$C=A*B$\") More...
     
    struct  Dune::TransposedMatMultMatResult< FieldMatrix< T, k, n >, FieldMatrix< T, k, m > >
     
    struct  Dune::TransposedMatMultMatResult< BCRSMatrix< FieldMatrix< T, k, n >, A >, BCRSMatrix< FieldMatrix< T, k, m >, A1 > >
     
    \n \n \n \n+

    \n Namespaces

    namespace  Dune
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Functions

    template<class T , class A , class A1 , class A2 , int n, int m, int k>
    void Dune::matMultTransposeMat (BCRSMatrix< FieldMatrix< T, n, k >, A > &res, const BCRSMatrix< FieldMatrix< T, n, m >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
     Calculate product of a sparse matrix with a transposed sparse matrices ( \"$C=A*B^T$\").
     
    template<class T , class A , class A1 , class A2 , int n, int m, int k>
    void Dune::matMultMat (BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const BCRSMatrix< FieldMatrix< T, n, k >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
     Calculate product of two sparse matrices ( \"$C=A*B$\").
     
    template<class T , class A , class A1 , class A2 , int n, int m, int k>
    void Dune::transposeMatMultMat (BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const BCRSMatrix< FieldMatrix< T, k, n >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
     Calculate product of a transposed sparse matrix with another sparse matrices ( \"$C=A^T*B$\").
     
    \n

    Detailed Description

    \n-

    This file implements a quadratic matrix of fixed size which is a multiple of the identity.

    \n+

    provides functions for sparse matrix matrix multiplication.

    \n+
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,36 +1,66 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-scaledidmatrix.hh File Reference\n-This file implements a quadratic matrix of fixed size which is a multiple of\n-the identity. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+matrixmatrix.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bS_\bp_\ba_\br_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bc_\bl_\ba_\bs_\bs_\be_\bs\n+provides functions for sparse matrix matrix multiplication. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n #include \n-#include \n-#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>\n-\u00a0 A multiple of the identity matrix of static size. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bM_\b1_\b,_\b _\bM_\b2_\b _\b>\n+\u00a0 Helper TMP to get the result type of a sparse matrix matrix\n+ multiplication ( [$C=A*B$]) _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bf_\bi_\be_\bl_\bd_\b,_\b _\bN\n- _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bk_\b _\b>_\b,_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>\n+ _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bk_\b _\b>_\b,_\b _\bA_\b _\b>_\b,\n+ _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b1_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bM_\b1_\b,_\b _\bM_\b2_\b _\b>\n+\u00a0 Helper TMP to get the result type of a sparse matrix matrix\n+ multiplication ( [$C=A*B$]) _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bn_\b _\b>_\b,_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<\n+ _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bn_\b _\b>_\b,\n+ _\bA_\b _\b>_\b,_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b1_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt (_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, n, k >, A > &res,\n+ const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, n, m >, A1 > &_\bm_\ba_\bt, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<\n+ _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, k, m >, A2 > &matt, bool tryHard=false)\n+\u00a0 Calculate product of a sparse matrix with a transposed sparse matrices (\n+ [$C=A*B^T$]).\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt (_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, n, m >, A > &res, const\n+ _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, n, k >, A1 > &_\bm_\ba_\bt, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<\n+ _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, k, m >, A2 > &matt, bool tryHard=false)\n+\u00a0 Calculate product of two sparse matrices ( [$C=A*B$]).\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bt_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt (_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, n, m >, A > &res,\n+ const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx< _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, k, n >, A1 > &_\bm_\ba_\bt, const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<\n+ _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< T, k, m >, A2 > &matt, bool tryHard=false)\n+\u00a0 Calculate product of a transposed sparse matrix with another sparse\n+ matrices ( [$C=A^T*B$]).\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-This file implements a quadratic matrix of fixed size which is a multiple of\n-the identity.\n+provides functions for sparse matrix matrix multiplication.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00206_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00206_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: scaledidmatrix.hh Source File\n+dune-istl: matrixmatrix.hh Source File\n \n \n \n \n \n \n \n@@ -74,626 +74,622 @@\n \n
    \n \n
    \n
    \n
    \n-
    scaledidmatrix.hh
    \n+
    matrixmatrix.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_SCALEDIDMATRIX_HH
    \n-
    6#define DUNE_ISTL_SCALEDIDMATRIX_HH
    \n+
    5#ifndef DUNE_ISTL_MATRIXMATRIX_HH
    \n+
    6#define DUNE_ISTL_MATRIXMATRIX_HH
    \n
    7
    \n-
    14#include <cmath>
    \n-
    15#include <cstddef>
    \n-
    16#include <complex>
    \n-
    17#include <iostream>
    \n-
    18#include <dune/common/exceptions.hh>
    \n-
    19#include <dune/common/fmatrix.hh>
    \n-
    20#include <dune/common/diagonalmatrix.hh>
    \n-
    21#include <dune/common/ftraits.hh>
    \n-
    22
    \n-
    23namespace Dune {
    \n-
    24
    \n-
    28 template<class K, int n>
    \n-
    \n-\n-
    30 {
    \n-
    31 typedef DiagonalMatrixWrapper< ScaledIdentityMatrix<K,n> > WrapperType;
    \n-
    32
    \n-
    33 public:
    \n-
    34 //===== type definitions and constants
    \n-
    35
    \n-
    37 typedef K field_type;
    \n-
    38
    \n-
    40 typedef K block_type;
    \n+
    8#include <tuple>
    \n+
    9
    \n+\n+
    11#include <dune/common/fmatrix.hh>
    \n+
    12#include <dune/common/timer.hh>
    \n+
    13namespace Dune
    \n+
    14{
    \n+
    15
    \n+
    26 namespace
    \n+
    27 {
    \n+
    28
    \n+
    37 template<int b>
    \n+
    38 struct NonzeroPatternTraverser
    \n+
    39 {};
    \n+
    40
    \n
    41
    \n-
    43 typedef std::size_t size_type;
    \n-
    44
    \n-
    46 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n-
    47 static constexpr std::size_t blocklevel = 1;
    \n-
    48
    \n-
    50 typedef DiagonalRowVector<K,n> row_type;
    \n-\n-
    52 typedef DiagonalRowVectorConst<K,n> const_row_type;
    \n-\n-
    54
    \n-
    56 enum {
    \n-
    58 rows = n,
    \n-
    60 cols = n
    \n-
    61 };
    \n-
    62
    \n-
    63 //===== constructors
    \n-\n+
    42 template<>
    \n+
    43 struct NonzeroPatternTraverser<0>
    \n+
    44 {
    \n+
    45 template<class T,class A1, class A2, class F, int n, int m, int k>
    \n+
    46 static void traverse(const Dune::BCRSMatrix<Dune::FieldMatrix<T,n,k>,A1>& A,
    \n+\n+
    48 F& func)
    \n+
    49 {
    \n+
    50 if(A.M()!=B.N())
    \n+
    51 DUNE_THROW(ISTLError, "The sizes of the matrices do not match: "<<A.M()<<"!="<<B.N());
    \n+
    52
    \n+
    53 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,n,k>,A1>::ConstRowIterator Row;
    \n+
    54 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,n,k>,A1>::ConstColIterator Col;
    \n+
    55 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,m>,A2>::ConstColIterator BCol;
    \n+
    56 for(Row row= A.begin(); row != A.end(); ++row) {
    \n+
    57 // Loop over all column entries
    \n+
    58 for(Col col = row->begin(); col != row->end(); ++col) {
    \n+
    59 // entry at i,k
    \n+
    60 // search for all nonzeros in row k
    \n+
    61 for(BCol bcol = B[col.index()].begin(); bcol != B[col.index()].end(); ++bcol) {
    \n+
    62 func(*col, *bcol, row.index(), bcol.index());
    \n+
    63 }
    \n+
    64 }
    \n+
    65 }
    \n+
    66 }
    \n
    67
    \n-
    \n-\n-
    71 : p_(k)
    \n-
    72 {}
    \n-
    \n-
    73
    \n-
    74 //===== assignment from scalar
    \n-
    \n-\n-
    76 {
    \n-
    77 p_ = k;
    \n-
    78 return *this;
    \n-
    79 }
    \n-
    \n-
    80
    \n-
    81 // check if matrix is identical to other matrix (not only identical values)
    \n-
    \n-
    82 bool identical(const ScaledIdentityMatrix<K,n>& other) const
    \n-
    83 {
    \n-
    84 return (this==&other);
    \n-
    85 }
    \n-
    \n-
    86
    \n-
    87 //===== iterator interface to rows of the matrix
    \n-
    89 typedef ContainerWrapperIterator<const WrapperType, reference, reference> Iterator;
    \n-\n-\n-
    95 typedef typename row_type::Iterator ColIterator;
    \n-
    96
    \n-
    \n-\n-
    99 {
    \n-
    100 return Iterator(WrapperType(this),0);
    \n-
    101 }
    \n-
    \n-
    102
    \n-
    \n-\n-
    105 {
    \n-
    106 return Iterator(WrapperType(this),n);
    \n-
    107 }
    \n-
    \n-
    108
    \n-
    \n-\n-
    112 {
    \n-
    113 return Iterator(WrapperType(this),n-1);
    \n-
    114 }
    \n-
    \n-
    115
    \n-
    \n-\n-
    119 {
    \n-
    120 return Iterator(WrapperType(this),-1);
    \n-
    121 }
    \n-
    \n-
    122
    \n-
    123
    \n-
    125 typedef ContainerWrapperIterator<const WrapperType, const_reference, const_reference> ConstIterator;
    \n-\n-\n-
    131 typedef typename const_row_type::ConstIterator ConstColIterator;
    \n-
    132
    \n-
    \n-\n-
    135 {
    \n-
    136 return ConstIterator(WrapperType(this),0);
    \n-
    137 }
    \n-
    \n-
    138
    \n-
    \n-\n-
    141 {
    \n-
    142 return ConstIterator(WrapperType(this),n);
    \n-
    143 }
    \n-
    \n-
    144
    \n-
    \n-\n-
    148 {
    \n-
    149 return ConstIterator(WrapperType(this),n-1);
    \n-
    150 }
    \n-
    \n-
    151
    \n-
    \n-\n-
    155 {
    \n-
    156 return ConstIterator(WrapperType(this),-1);
    \n-
    157 }
    \n-
    \n+
    68 };
    \n+
    69
    \n+
    70 template<>
    \n+
    71 struct NonzeroPatternTraverser<1>
    \n+
    72 {
    \n+
    73 template<class T, class A1, class A2, class F, int n, int m, int k>
    \n+
    74 static void traverse(const Dune::BCRSMatrix<Dune::FieldMatrix<T,k,n>,A1>& A,
    \n+\n+
    76 F& func)
    \n+
    77 {
    \n+
    78
    \n+
    79 if(A.N()!=B.N())
    \n+
    80 DUNE_THROW(ISTLError, "The sizes of the matrices do not match: "<<A.N()<<"!="<<B.N());
    \n+
    81
    \n+
    82 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,n>,A1>::ConstRowIterator Row;
    \n+
    83 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,n>,A1>::ConstColIterator Col;
    \n+
    84 typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,m>,A2>::ConstColIterator BCol;
    \n+
    85
    \n+
    86 for(Row row=A.begin(); row!=A.end(); ++row) {
    \n+
    87 for(Col col=row->begin(); col!=row->end(); ++col) {
    \n+
    88 for(BCol bcol = B[row.index()].begin(); bcol != B[row.index()].end(); ++bcol) {
    \n+
    89 func(*col, *bcol, col.index(), bcol.index());
    \n+
    90 }
    \n+
    91 }
    \n+
    92 }
    \n+
    93 }
    \n+
    94 };
    \n+
    95
    \n+
    96 template<>
    \n+
    97 struct NonzeroPatternTraverser<2>
    \n+
    98 {
    \n+
    99 template<class T, class A1, class A2, class F, int n, int m, int k>
    \n+
    100 static void traverse(const BCRSMatrix<FieldMatrix<T,n,m>,A1>& mat,
    \n+
    101 const BCRSMatrix<FieldMatrix<T,k,m>,A2>& matt,
    \n+
    102 F& func)
    \n+
    103 {
    \n+
    104 if(mat.M()!=matt.M())
    \n+
    105 DUNE_THROW(ISTLError, "The sizes of the matrices do not match: "<<mat.M()<<"!="<<matt.M());
    \n+
    106
    \n+
    107 typedef typename BCRSMatrix<FieldMatrix<T,n,m>,A1>::ConstRowIterator row_iterator;
    \n+
    108 typedef typename BCRSMatrix<FieldMatrix<T,n,m>,A1>::ConstColIterator col_iterator;
    \n+
    109 typedef typename BCRSMatrix<FieldMatrix<T,k,m>,A2>::ConstRowIterator row_iterator_t;
    \n+
    110 typedef typename BCRSMatrix<FieldMatrix<T,k,m>,A2>::ConstColIterator col_iterator_t;
    \n+
    111
    \n+
    112 for(row_iterator mrow=mat.begin(); mrow != mat.end(); ++mrow) {
    \n+
    113 //iterate over the column entries
    \n+
    114 // mt is a transposed matrix crs therefore it is treated as a ccs matrix
    \n+
    115 // and the row_iterator iterates over the columns of the transposed matrix.
    \n+
    116 // search the row of the transposed matrix for an entry with the same index
    \n+
    117 // as the mcol iterator
    \n+
    118
    \n+
    119 for(row_iterator_t mtcol=matt.begin(); mtcol != matt.end(); ++mtcol) {
    \n+
    120 //Search for col entries in mat that have a corrsponding row index in matt
    \n+
    121 // (i.e. corresponding col index in the as this is the transposed matrix
    \n+
    122 col_iterator_t mtrow=mtcol->begin();
    \n+
    123 bool funcCalled = false;
    \n+
    124 for(col_iterator mcol=mrow->begin(); mcol != mrow->end(); ++mcol) {
    \n+
    125 // search
    \n+
    126 // TODO: This should probably be substituted by a binary search
    \n+
    127 for( ; mtrow != mtcol->end(); ++mtrow)
    \n+
    128 if(mtrow.index()>=mcol.index())
    \n+
    129 break;
    \n+
    130 if(mtrow != mtcol->end() && mtrow.index()==mcol.index()) {
    \n+
    131 func(*mcol, *mtrow, mtcol.index());
    \n+
    132 funcCalled = true;
    \n+
    133 // In some cases we only search for one pair, then we break here
    \n+
    134 // and continue with the next column.
    \n+
    135 if(F::do_break)
    \n+
    136 break;
    \n+
    137 }
    \n+
    138 }
    \n+
    139 // move on with func only if func was called, otherwise they might
    \n+
    140 // get out of sync
    \n+
    141 if (funcCalled)
    \n+
    142 func.nextCol();
    \n+
    143 }
    \n+
    144 func.nextRow();
    \n+
    145 }
    \n+
    146 }
    \n+
    147 };
    \n+
    148
    \n+
    149
    \n+
    150
    \n+
    151 template<class T, class A, int n, int m>
    \n+
    152 class SparsityPatternInitializer
    \n+
    153 {
    \n+
    154 public:
    \n+
    155 enum {do_break=true};
    \n+\n+\n
    158
    \n-
    159 //===== vector space arithmetic
    \n-
    160
    \n-
    \n-\n-
    163 {
    \n-
    164 p_ += y.p_;
    \n-
    165 return *this;
    \n-
    166 }
    \n-
    \n-
    167
    \n-
    \n-\n-
    170 {
    \n-
    171 p_ -= y.p_;
    \n-
    172 return *this;
    \n-
    173 }
    \n-
    \n-
    174
    \n-
    \n-\n-
    177 {
    \n-
    178 p_ += k;
    \n-
    179 return *this;
    \n-
    180 }
    \n-
    \n-
    181
    \n-
    \n-\n-
    184 {
    \n-
    185 p_ -= k;
    \n-
    186 return *this;
    \n-
    187 }
    \n-
    \n-
    \n-\n-
    190 {
    \n-
    191 p_ *= k;
    \n-
    192 return *this;
    \n-
    193 }
    \n-
    \n-
    194
    \n-
    \n-\n-
    197 {
    \n-
    198 p_ /= k;
    \n-
    199 return *this;
    \n-
    200 }
    \n-
    \n+
    159 SparsityPatternInitializer(CreateIterator iter)
    \n+
    160 : rowiter(iter)
    \n+
    161 {}
    \n+
    162
    \n+
    163 template<class T1, class T2>
    \n+
    164 void operator()(const T1&, const T2&, size_type j)
    \n+
    165 {
    \n+
    166 rowiter.insert(j);
    \n+
    167 }
    \n+
    168
    \n+
    169 void nextRow()
    \n+
    170 {
    \n+
    171 ++rowiter;
    \n+
    172 }
    \n+
    173 void nextCol()
    \n+
    174 {}
    \n+
    175
    \n+
    176 private:
    \n+
    177 CreateIterator rowiter;
    \n+
    178 };
    \n+
    179
    \n+
    180
    \n+
    181 template<int transpose, class T, class TA, int n, int m>
    \n+
    182 class MatrixInitializer
    \n+
    183 {
    \n+
    184 public:
    \n+
    185 enum {do_break=true};
    \n+\n+\n+
    188 typedef typename Matrix::size_type size_type;
    \n+
    189
    \n+
    190 MatrixInitializer(Matrix& A_, size_type)
    \n+
    191 : count(0), A(A_)
    \n+
    192 {}
    \n+
    193 template<class T1, class T2>
    \n+
    194 void operator()(const T1&, const T2&, int)
    \n+
    195 {
    \n+
    196 ++count;
    \n+
    197 }
    \n+
    198
    \n+
    199 void nextCol()
    \n+
    200 {}
    \n
    201
    \n-
    202 //===== binary operators
    \n-
    203
    \n-
    205 template <class Scalar,
    \n-
    206 std::enable_if_t<IsNumber<Scalar>::value, int> = 0>
    \n-
    \n-
    207 friend auto operator* ( const ScaledIdentityMatrix& matrix, Scalar scalar)
    \n-
    208 {
    \n-\n-
    210 }
    \n-
    \n-
    211
    \n-
    213 template <class Scalar,
    \n-
    214 std::enable_if_t<IsNumber<Scalar>::value, int> = 0>
    \n-
    \n-
    215 friend auto operator* (Scalar scalar, const ScaledIdentityMatrix& matrix)
    \n-
    216 {
    \n-\n-
    218 }
    \n-
    \n-
    219
    \n-
    220 //===== comparison ops
    \n-
    221
    \n-
    \n-
    223 bool operator==(const ScaledIdentityMatrix& other) const
    \n-
    224 {
    \n-
    225 return p_==other.scalar();
    \n-
    226 }
    \n-
    \n-
    227
    \n-
    \n-
    229 bool operator!=(const ScaledIdentityMatrix& other) const
    \n-
    230 {
    \n-
    231 return p_!=other.scalar();
    \n-
    232 }
    \n-
    \n-
    233
    \n-
    234 //===== linear maps
    \n+
    202 void nextRow()
    \n+
    203 {}
    \n+
    204
    \n+
    205 std::size_t nonzeros()
    \n+
    206 {
    \n+
    207 return count;
    \n+
    208 }
    \n+
    209
    \n+
    210 template<class A1, class A2, int n2, int m2, int n3, int m3>
    \n+
    211 void initPattern(const BCRSMatrix<FieldMatrix<T,n2,m2>,A1>& mat1,
    \n+
    212 const BCRSMatrix<FieldMatrix<T,n3,m3>,A2>& mat2)
    \n+
    213 {
    \n+
    214 SparsityPatternInitializer<T, TA, n, m> sparsity(A.createbegin());
    \n+
    215 NonzeroPatternTraverser<transpose>::traverse(mat1,mat2,sparsity);
    \n+
    216 }
    \n+
    217
    \n+
    218 private:
    \n+
    219 std::size_t count;
    \n+
    220 Matrix& A;
    \n+
    221 };
    \n+
    222
    \n+
    223 template<class T, class TA, int n, int m>
    \n+
    224 class MatrixInitializer<1,T,TA,n,m>
    \n+
    225 {
    \n+
    226 public:
    \n+
    227 enum {do_break=false};
    \n+\n+\n+
    230 typedef typename Matrix::size_type size_type;
    \n+
    231
    \n+
    232 MatrixInitializer(Matrix& A_, size_type rows)
    \n+
    233 : A(A_), entries(rows)
    \n+
    234 {}
    \n
    235
    \n-
    237 template<class X, class Y>
    \n-
    \n-
    238 void mv (const X& x, Y& y) const
    \n-
    239 {
    \n-
    240#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    241 if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    242 if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    243#endif
    \n-
    244 for (size_type i=0; i<n; ++i)
    \n-
    245 y[i] = p_ * x[i];
    \n-
    246 }
    \n-
    \n-
    247
    \n-
    249 template<class X, class Y>
    \n-
    \n-
    250 void mtv (const X& x, Y& y) const
    \n-
    251 {
    \n-
    252 mv(x, y);
    \n-
    253 }
    \n-
    \n-
    254
    \n-
    256 template<class X, class Y>
    \n-
    \n-
    257 void umv (const X& x, Y& y) const
    \n-
    258 {
    \n-
    259#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    260 if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    261 if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    262#endif
    \n-
    263 for (size_type i=0; i<n; ++i)
    \n-
    264 y[i] += p_ * x[i];
    \n-
    265 }
    \n-
    \n-
    266
    \n-
    268 template<class X, class Y>
    \n-
    \n-
    269 void umtv (const X& x, Y& y) const
    \n-
    270 {
    \n-
    271#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    272 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    273 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    274#endif
    \n-
    275 for (size_type i=0; i<n; ++i)
    \n-
    276 y[i] += p_ * x[i];
    \n-
    277 }
    \n-
    \n-
    278
    \n-
    280 template<class X, class Y>
    \n-
    \n-
    281 void umhv (const X& x, Y& y) const
    \n-
    282 {
    \n-
    283#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    284 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    285 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    286#endif
    \n-
    287 for (size_type i=0; i<n; i++)
    \n-
    288 y[i] += conjugateComplex(p_)*x[i];
    \n-
    289 }
    \n-
    \n-
    290
    \n-
    292 template<class X, class Y>
    \n-
    \n-
    293 void mmv (const X& x, Y& y) const
    \n-
    294 {
    \n-
    295#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    296 if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    297 if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    298#endif
    \n-
    299 for (size_type i=0; i<n; ++i)
    \n-
    300 y[i] -= p_ * x[i];
    \n-
    301 }
    \n-
    \n-
    302
    \n-
    304 template<class X, class Y>
    \n-
    \n-
    305 void mmtv (const X& x, Y& y) const
    \n-
    306 {
    \n-
    307#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    308 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    309 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    310#endif
    \n-
    311 for (size_type i=0; i<n; ++i)
    \n-
    312 y[i] -= p_ * x[i];
    \n-
    313 }
    \n-
    \n-
    314
    \n-
    316 template<class X, class Y>
    \n-
    \n-
    317 void mmhv (const X& x, Y& y) const
    \n-
    318 {
    \n-
    319#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    320 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    321 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    322#endif
    \n-
    323 for (size_type i=0; i<n; i++)
    \n-
    324 y[i] -= conjugateComplex(p_)*x[i];
    \n-
    325 }
    \n-
    \n-
    326
    \n-
    328 template<class X, class Y>
    \n-
    \n-
    329 void usmv (const K& alpha, const X& x, Y& y) const
    \n-
    330 {
    \n-
    331#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    332 if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    333 if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    334#endif
    \n-
    335 for (size_type i=0; i<n; i++)
    \n-
    336 y[i] += alpha * p_ * x[i];
    \n-
    337 }
    \n-
    \n-
    338
    \n-
    340 template<class X, class Y>
    \n-
    \n-
    341 void usmtv (const K& alpha, const X& x, Y& y) const
    \n-
    342 {
    \n-
    343#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    344 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    345 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    346#endif
    \n-
    347 for (size_type i=0; i<n; i++)
    \n-
    348 y[i] += alpha * p_ * x[i];
    \n-
    349 }
    \n-
    \n-
    350
    \n-
    352 template<class X, class Y>
    \n-
    \n-
    353 void usmhv (const K& alpha, const X& x, Y& y) const
    \n-
    354 {
    \n-
    355#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    356 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    357 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n-
    358#endif
    \n-
    359 for (size_type i=0; i<n; i++)
    \n-
    360 y[i] += alpha * conjugateComplex(p_) * x[i];
    \n-
    361 }
    \n-
    \n-
    362
    \n-
    363 //===== norms
    \n-
    364
    \n-
    \n-
    366 typename FieldTraits<field_type>::real_type frobenius_norm () const
    \n-
    367 {
    \n-
    368 return fvmeta::sqrt(n*p_*p_);
    \n-
    369 }
    \n-
    \n-
    370
    \n-
    \n-
    372 typename FieldTraits<field_type>::real_type frobenius_norm2 () const
    \n-
    373 {
    \n-
    374 return n*p_*p_;
    \n-
    375 }
    \n-
    \n-
    376
    \n-
    \n-
    378 typename FieldTraits<field_type>::real_type infinity_norm () const
    \n-
    379 {
    \n-
    380 return std::abs(p_);
    \n-
    381 }
    \n-
    \n-
    382
    \n-
    \n-
    384 typename FieldTraits<field_type>::real_type infinity_norm_real () const
    \n-
    385 {
    \n-
    386 return fvmeta::absreal(p_);
    \n-
    387 }
    \n-
    \n-
    388
    \n-
    389 //===== solve
    \n-
    390
    \n-
    393 template<class V>
    \n-
    \n-
    394 void solve (V& x, const V& b) const
    \n-
    395 {
    \n-
    396 for (int i=0; i<n; i++)
    \n-
    397 x[i] = b[i]/p_;
    \n-
    398 }
    \n-
    \n-
    399
    \n-
    \n-
    402 void invert()
    \n-
    403 {
    \n-
    404 p_ = 1/p_;
    \n-
    405 }
    \n-
    \n-
    406
    \n-
    \n-
    408 K determinant () const {
    \n-
    409 return std::pow(p_,n);
    \n-
    410 }
    \n-
    \n+
    236 template<class T1, class T2>
    \n+
    237 void operator()(const T1&, const T2&, size_type i, size_type j)
    \n+
    238 {
    \n+
    239 entries[i].insert(j);
    \n+
    240 }
    \n+
    241
    \n+
    242 void nextCol()
    \n+
    243 {}
    \n+
    244
    \n+
    245 size_type nonzeros()
    \n+
    246 {
    \n+
    247 size_type nnz=0;
    \n+
    248 typedef typename std::vector<std::set<size_t> >::const_iterator Iter;
    \n+
    249 for(Iter iter = entries.begin(); iter != entries.end(); ++iter)
    \n+
    250 nnz+=(*iter).size();
    \n+
    251 return nnz;
    \n+
    252 }
    \n+
    253 template<class A1, class A2, int n2, int m2, int n3, int m3>
    \n+
    254 void initPattern(const BCRSMatrix<FieldMatrix<T,n2,m2>,A1>&,
    \n+
    255 const BCRSMatrix<FieldMatrix<T,n3,m3>,A2>&)
    \n+
    256 {
    \n+
    257 typedef typename std::vector<std::set<size_t> >::const_iterator Iter;
    \n+
    258 CreateIterator citer = A.createbegin();
    \n+
    259 for(Iter iter = entries.begin(); iter != entries.end(); ++iter, ++citer) {
    \n+
    260 typedef std::set<size_t>::const_iterator SetIter;
    \n+
    261 for(SetIter index=iter->begin(); index != iter->end(); ++index)
    \n+
    262 citer.insert(*index);
    \n+
    263 }
    \n+
    264 }
    \n+
    265
    \n+
    266 private:
    \n+
    267 Matrix& A;
    \n+
    268 std::vector<std::set<size_t> > entries;
    \n+
    269 };
    \n+
    270
    \n+
    271 template<class T, class TA, int n, int m>
    \n+
    272 struct MatrixInitializer<0,T,TA,n,m>
    \n+
    273 : public MatrixInitializer<1,T,TA,n,m>
    \n+
    274 {
    \n+
    275 MatrixInitializer(Dune::BCRSMatrix<Dune::FieldMatrix<T,n,m>,TA>& A_,
    \n+\n+
    277 : MatrixInitializer<1,T,TA,n,m>(A_,rows)
    \n+
    278 {}
    \n+
    279 };
    \n+
    280
    \n+
    281
    \n+
    282 template<class T, class T1, class T2, int n, int m, int k>
    \n+
    283 void addMatMultTransposeMat(FieldMatrix<T,n,k>& res, const FieldMatrix<T1,n,m>& mat,
    \n+
    284 const FieldMatrix<T2,k,m>& matt)
    \n+
    285 {
    \n+
    286 typedef typename FieldMatrix<T,n,k>::size_type size_type;
    \n+
    287
    \n+
    288 for(size_type row=0; row<n; ++row)
    \n+
    289 for(size_type col=0; col<k; ++col) {
    \n+
    290 for(size_type i=0; i < m; ++i)
    \n+
    291 res[row][col]+=mat[row][i]*matt[col][i];
    \n+
    292 }
    \n+
    293 }
    \n+
    294
    \n+
    295 template<class T, class T1, class T2, int n, int m, int k>
    \n+
    296 void addTransposeMatMultMat(FieldMatrix<T,n,k>& res, const FieldMatrix<T1,m,n>& mat,
    \n+
    297 const FieldMatrix<T2,m,k>& matt)
    \n+
    298 {
    \n+
    299 typedef typename FieldMatrix<T,n,k>::size_type size_type;
    \n+
    300 for(size_type i=0; i<m; ++i)
    \n+
    301 for(size_type row=0; row<n; ++row) {
    \n+
    302 for(size_type col=0; col < k; ++col)
    \n+
    303 res[row][col]+=mat[i][row]*matt[i][col];
    \n+
    304 }
    \n+
    305 }
    \n+
    306
    \n+
    307 template<class T, class T1, class T2, int n, int m, int k>
    \n+
    308 void addMatMultMat(FieldMatrix<T,n,m>& res, const FieldMatrix<T1,n,k>& mat,
    \n+
    309 const FieldMatrix<T2,k,m>& matt)
    \n+
    310 {
    \n+
    311 typedef typename FieldMatrix<T,n,k>::size_type size_type;
    \n+
    312 for(size_type row=0; row<n; ++row)
    \n+
    313 for(size_type col=0; col<m; ++col) {
    \n+
    314 for(size_type i=0; i < k; ++i)
    \n+
    315 res[row][col]+=mat[row][i]*matt[i][col];
    \n+
    316 }
    \n+
    317 }
    \n+
    318
    \n+
    319
    \n+
    320 template<class T, class A, int n, int m>
    \n+
    321 class EntryAccumulatorFather
    \n+
    322 {
    \n+
    323 public:
    \n+
    324 enum {do_break=false};
    \n+\n+
    326 typedef typename Matrix::RowIterator Row;
    \n+
    327 typedef typename Matrix::ColIterator Col;
    \n+
    328
    \n+
    329 EntryAccumulatorFather(Matrix& mat_)
    \n+
    330 : mat(mat_), row(mat.begin())
    \n+
    331 {
    \n+
    332 mat=0;
    \n+
    333 col=row->begin();
    \n+
    334 }
    \n+
    335 void nextRow()
    \n+
    336 {
    \n+
    337 ++row;
    \n+
    338 if(row!=mat.end())
    \n+
    339 col=row->begin();
    \n+
    340 }
    \n+
    341
    \n+
    342 void nextCol()
    \n+
    343 {
    \n+
    344 ++this->col;
    \n+
    345 }
    \n+
    346 protected:
    \n+
    347 Matrix& mat;
    \n+
    348 private:
    \n+
    349 Row row;
    \n+
    350 protected:
    \n+\n+
    352 };
    \n+
    353
    \n+
    354 template<class T, class A, int n, int m, int transpose>
    \n+
    355 class EntryAccumulator
    \n+
    356 : public EntryAccumulatorFather<T,A,n,m>
    \n+
    357 {
    \n+
    358 public:
    \n+\n+
    360 typedef typename Matrix::size_type size_type;
    \n+
    361
    \n+
    362 EntryAccumulator(Matrix& mat_)
    \n+
    363 : EntryAccumulatorFather<T,A,n,m>(mat_)
    \n+
    364 {}
    \n+
    365
    \n+
    366 template<class T1, class T2>
    \n+
    367 void operator()(const T1& t1, const T2& t2, size_type i)
    \n+
    368 {
    \n+
    369 assert(this->col.index()==i);
    \n+
    370 addMatMultMat(*(this->col),t1,t2);
    \n+
    371 }
    \n+
    372 };
    \n+
    373
    \n+
    374 template<class T, class A, int n, int m>
    \n+
    375 class EntryAccumulator<T,A,n,m,0>
    \n+
    376 : public EntryAccumulatorFather<T,A,n,m>
    \n+
    377 {
    \n+
    378 public:
    \n+\n+
    380 typedef typename Matrix::size_type size_type;
    \n+
    381
    \n+
    382 EntryAccumulator(Matrix& mat_)
    \n+
    383 : EntryAccumulatorFather<T,A,n,m>(mat_)
    \n+
    384 {}
    \n+
    385
    \n+
    386 template<class T1, class T2>
    \n+
    387 void operator()(const T1& t1, const T2& t2, size_type i, size_type j)
    \n+
    388 {
    \n+
    389 addMatMultMat(this->mat[i][j], t1, t2);
    \n+
    390 }
    \n+
    391 };
    \n+
    392
    \n+
    393 template<class T, class A, int n, int m>
    \n+
    394 class EntryAccumulator<T,A,n,m,1>
    \n+
    395 : public EntryAccumulatorFather<T,A,n,m>
    \n+
    396 {
    \n+
    397 public:
    \n+\n+
    399 typedef typename Matrix::size_type size_type;
    \n+
    400
    \n+
    401 EntryAccumulator(Matrix& mat_)
    \n+
    402 : EntryAccumulatorFather<T,A,n,m>(mat_)
    \n+
    403 {}
    \n+
    404
    \n+
    405 template<class T1, class T2>
    \n+
    406 void operator()(const T1& t1, const T2& t2, size_type i, size_type j)
    \n+
    407 {
    \n+
    408 addTransposeMatMultMat(this->mat[i][j], t1, t2);
    \n+
    409 }
    \n+
    410 };
    \n
    411
    \n-
    412 //===== sizes
    \n-
    413
    \n-
    \n-
    415 size_type N () const
    \n-
    416 {
    \n-
    417 return n;
    \n-
    418 }
    \n-
    \n+
    412 template<class T, class A, int n, int m>
    \n+
    413 class EntryAccumulator<T,A,n,m,2>
    \n+
    414 : public EntryAccumulatorFather<T,A,n,m>
    \n+
    415 {
    \n+
    416 public:
    \n+\n+
    418 typedef typename Matrix::size_type size_type;
    \n
    419
    \n-
    \n-
    421 size_type M () const
    \n-
    422 {
    \n-
    423 return n;
    \n-
    424 }
    \n-
    \n-
    425
    \n-
    426 //===== query
    \n-
    427
    \n-
    \n-
    429 bool exists (size_type i, size_type j) const
    \n-
    430 {
    \n-
    431#ifdef DUNE_FMatrix_WITH_CHECKING
    \n-
    432 if (i<0 || i>=n) DUNE_THROW(FMatrixError,"row index out of range");
    \n-
    433 if (j<0 || j>=n) DUNE_THROW(FMatrixError,"column index out of range");
    \n-
    434#endif
    \n-
    435 return i==j;
    \n-
    436 }
    \n-
    \n-
    437
    \n-
    438 //===== conversion operator
    \n-
    439
    \n-
    \n-
    441 friend std::ostream& operator<< (std::ostream& s, const ScaledIdentityMatrix<K,n>& a)
    \n-
    442 {
    \n-
    443 for (size_type i=0; i<n; i++) {
    \n-
    444 for (size_type j=0; j<n; j++)
    \n-
    445 s << ((i==j) ? a.p_ : 0) << " ";
    \n-
    446 s << std::endl;
    \n-
    447 }
    \n-
    448 return s;
    \n-
    449 }
    \n-
    \n-
    450
    \n-
    \n-\n-
    453 {
    \n-
    454 return reference(const_cast<K*>(&p_), i);
    \n-
    455 }
    \n-
    \n-
    456
    \n-
    \n-\n-
    459 {
    \n-
    460 return const_reference(const_cast<K*>(&p_), i);
    \n-
    461 }
    \n-
    \n-
    462
    \n-
    \n-
    464 const K& diagonal(size_type /*i*/) const
    \n-
    465 {
    \n-
    466 return p_;
    \n-
    467 }
    \n-
    \n-
    468
    \n-
    \n-\n-
    471 {
    \n-
    472 return p_;
    \n-
    473 }
    \n-
    \n-
    474
    \n-
    \n-
    477 const K& scalar() const
    \n-
    478 {
    \n-
    479 return p_;
    \n-
    480 }
    \n-
    \n-
    481
    \n-
    \n-\n-
    485 {
    \n-
    486 return p_;
    \n-
    487 }
    \n-
    \n-
    488
    \n-
    489 private:
    \n-
    490 // the data, very simply a single number
    \n-
    491 K p_;
    \n-
    492
    \n-
    493 };
    \n-
    \n-
    494
    \n-
    495 template <class DenseMatrix, class field, int N>
    \n-
    \n-
    496 struct DenseMatrixAssigner<DenseMatrix, ScaledIdentityMatrix<field, N>> {
    \n-
    \n-
    497 static void apply(DenseMatrix& denseMatrix,
    \n-\n-
    499 assert(denseMatrix.M() == N);
    \n-
    500 assert(denseMatrix.N() == N);
    \n-
    501 denseMatrix = field(0);
    \n-
    502 for (int i = 0; i < N; ++i)
    \n-
    503 denseMatrix[i][i] = rhs.scalar();
    \n-
    504 }
    \n-
    \n-
    505 };
    \n-
    \n-
    506
    \n-
    507 template<class K, int n>
    \n-
    \n-
    508 struct FieldTraits< ScaledIdentityMatrix<K, n> >
    \n-
    509 {
    \n-\n-
    511 using real_type = typename FieldTraits<field_type>::real_type;
    \n-
    512 };
    \n-
    \n-
    513
    \n-
    514} // end namespace
    \n-
    515
    \n-
    516#endif
    \n+
    420 EntryAccumulator(Matrix& mat_)
    \n+
    421 : EntryAccumulatorFather<T,A,n,m>(mat_)
    \n+
    422 {}
    \n+
    423
    \n+
    424 template<class T1, class T2>
    \n+
    425 void operator()(const T1& t1, const T2& t2, [[maybe_unused]] size_type i)
    \n+
    426 {
    \n+
    427 assert(this->col.index()==i);
    \n+
    428 addMatMultTransposeMat(*this->col,t1,t2);
    \n+
    429 }
    \n+
    430 };
    \n+
    431
    \n+
    432
    \n+
    433 template<int transpose>
    \n+
    434 struct SizeSelector
    \n+
    435 {};
    \n+
    436
    \n+
    437 template<>
    \n+
    438 struct SizeSelector<0>
    \n+
    439 {
    \n+
    440 template<class M1, class M2>
    \n+
    441 static std::tuple<typename M1::size_type, typename M2::size_type>
    \n+
    442 size(const M1& m1, const M2& m2)
    \n+
    443 {
    \n+
    444 return std::make_tuple(m1.N(), m2.M());
    \n+
    445 }
    \n+
    446 };
    \n+
    447
    \n+
    448 template<>
    \n+
    449 struct SizeSelector<1>
    \n+
    450 {
    \n+
    451 template<class M1, class M2>
    \n+
    452 static std::tuple<typename M1::size_type, typename M2::size_type>
    \n+
    453 size(const M1& m1, const M2& m2)
    \n+
    454 {
    \n+
    455 return std::make_tuple(m1.M(), m2.M());
    \n+
    456 }
    \n+
    457 };
    \n+
    458
    \n+
    459
    \n+
    460 template<>
    \n+
    461 struct SizeSelector<2>
    \n+
    462 {
    \n+
    463 template<class M1, class M2>
    \n+
    464 static std::tuple<typename M1::size_type, typename M2::size_type>
    \n+
    465 size(const M1& m1, const M2& m2)
    \n+
    466 {
    \n+
    467 return std::make_tuple(m1.N(), m2.N());
    \n+
    468 }
    \n+
    469 };
    \n+
    470
    \n+
    471 template<int transpose, class T, class A, class A1, class A2, int n1, int m1, int n2, int m2, int n3, int m3>
    \n+
    472 void matMultMat(BCRSMatrix<FieldMatrix<T,n1,m1>,A>& res, const BCRSMatrix<FieldMatrix<T,n2,m2>,A1>& mat1,
    \n+
    473 const BCRSMatrix<FieldMatrix<T,n3,m3>,A2>& mat2)
    \n+
    474 {
    \n+
    475 // First step is to count the number of nonzeros
    \n+
    476 typename BCRSMatrix<FieldMatrix<T,n1,m1>,A>::size_type rows, cols;
    \n+
    477 std::tie(rows,cols)=SizeSelector<transpose>::size(mat1, mat2);
    \n+
    478 MatrixInitializer<transpose,T,A,n1,m1> patternInit(res, rows);
    \n+
    479 Timer timer;
    \n+
    480 NonzeroPatternTraverser<transpose>::traverse(mat1,mat2,patternInit);
    \n+
    481 res.setSize(rows, cols, patternInit.nonzeros());
    \n+
    482 res.setBuildMode(BCRSMatrix<FieldMatrix<T,n1,m1>,A>::row_wise);
    \n+
    483
    \n+
    484 //std::cout<<"Counting nonzeros took "<<timer.elapsed()<<std::endl;
    \n+
    485 timer.reset();
    \n+
    486
    \n+
    487 // Second step is to allocate the storage for the result and initialize the nonzero pattern
    \n+
    488 patternInit.initPattern(mat1, mat2);
    \n+
    489
    \n+
    490 //std::cout<<"Setting up sparsity pattern took "<<timer.elapsed()<<std::endl;
    \n+
    491 timer.reset();
    \n+
    492 // As a last step calculate the entries
    \n+
    493 res = 0.0;
    \n+
    494 EntryAccumulator<T,A,n1,m1, transpose> entriesAccu(res);
    \n+
    495 NonzeroPatternTraverser<transpose>::traverse(mat1,mat2,entriesAccu);
    \n+
    496 //std::cout<<"Calculating entries took "<<timer.elapsed()<<std::endl;
    \n+
    497 }
    \n+
    498
    \n+
    499 }
    \n+
    500
    \n+
    508 template<typename M1, typename M2>
    \n+
    \n+\n+
    510 {};
    \n+
    \n+
    511
    \n+
    512 template<typename T, int n, int k, int m>
    \n+
    \n+\n+
    514 {
    \n+\n+
    516 };
    \n+
    \n+
    517
    \n+
    518 template<typename T, typename A, typename A1, int n, int k, int m>
    \n+
    \n+\n+
    520 {
    \n+\n+
    522 std::allocator<typename MatMultMatResult<FieldMatrix<T,n,k>,FieldMatrix<T,k,m> >::type> > type;
    \n+
    523 };
    \n+
    \n+
    524
    \n+
    525
    \n+
    533 template<typename M1, typename M2>
    \n+
    \n+\n+
    535 {};
    \n+
    \n+
    536
    \n+
    537 template<typename T, int n, int k, int m>
    \n+
    \n+\n+
    539 {
    \n+\n+
    541 };
    \n+
    \n+
    542
    \n+
    543 template<typename T, typename A, typename A1, int n, int k, int m>
    \n+
    \n+\n+
    545 {
    \n+\n+
    547 std::allocator<typename MatMultMatResult<FieldMatrix<T,n,k>,FieldMatrix<T,k,m> >::type> > type;
    \n+
    548 };
    \n+
    \n+
    549
    \n+
    550
    \n+
    559 template<class T, class A, class A1, class A2, int n, int m, int k>
    \n+
    \n+\n+
    561 const BCRSMatrix<FieldMatrix<T,k,m>,A2>& matt, [[maybe_unused]] bool tryHard=false)
    \n+
    562 {
    \n+
    563 matMultMat<2>(res,mat, matt);
    \n+
    564 }
    \n+
    \n+
    565
    \n+
    574 template<class T, class A, class A1, class A2, int n, int m, int k>
    \n+
    \n+\n+
    576 const BCRSMatrix<FieldMatrix<T,k,m>,A2>& matt, bool tryHard=false)
    \n+
    577 {
    \n+
    578 matMultMat<0>(res,mat, matt);
    \n+
    579 }
    \n+
    \n+
    580
    \n+
    589 template<class T, class A, class A1, class A2, int n, int m, int k>
    \n+
    \n+\n+
    591 const BCRSMatrix<FieldMatrix<T,k,m>,A2>& matt, [[maybe_unused]] bool tryHard=false)
    \n+
    592 {
    \n+
    593 matMultMat<1>(res,mat, matt);
    \n+
    594 }
    \n+
    \n+
    595
    \n+
    596}
    \n+
    597#endif
    \n+
    Implementation of the BCRSMatrix class.
    \n+
    BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
    Definition matrixmatrix.hh:379
    \n+
    FieldMatrix< T, n, m > type
    Definition matrixmatrix.hh:515
    \n+
    void transposeMatMultMat(BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const BCRSMatrix< FieldMatrix< T, k, n >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
    Calculate product of a transposed sparse matrix with another sparse matrices ( ).
    Definition matrixmatrix.hh:590
    \n+
    void matMultMat(BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const BCRSMatrix< FieldMatrix< T, n, k >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
    Calculate product of two sparse matrices ( ).
    Definition matrixmatrix.hh:575
    \n+
    BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
    Definition matrixmatrix.hh:359
    \n+
    Matrix::RowIterator Row
    Definition matrixmatrix.hh:326
    \n+
    BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
    Definition matrixmatrix.hh:417
    \n+
    Dune::BCRSMatrix< Dune::FieldMatrix< T, n, m >, TA > Matrix
    Definition matrixmatrix.hh:228
    \n+
    Matrix::size_type size_type
    Definition matrixmatrix.hh:360
    \n+
    Matrix::size_type size_type
    Definition matrixmatrix.hh:380
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n+
    Matrix::ColIterator Col
    Definition matrixmatrix.hh:327
    \n+
    Matrix::size_type size_type
    Definition matrixmatrix.hh:188
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    Matrix::size_type size_type
    Definition matrixmatrix.hh:230
    \n+\n+
    void matMultTransposeMat(BCRSMatrix< FieldMatrix< T, n, k >, A > &res, const BCRSMatrix< FieldMatrix< T, n, m >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2 > &matt, bool tryHard=false)
    Calculate product of a sparse matrix with a transposed sparse matrices ( ).
    Definition matrixmatrix.hh:560
    \n+
    BCRSMatrix< FieldMatrix< T, n, m >, A >::CreateIterator CreateIterator
    Definition matrixmatrix.hh:156
    \n+
    BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
    Definition matrixmatrix.hh:398
    \n+
    Dune::BCRSMatrix< FieldMatrix< T, n, m >, TA > Matrix
    Definition matrixmatrix.hh:186
    \n+
    BCRSMatrix< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type, std::allocator< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type > > type
    Definition matrixmatrix.hh:522
    \n+
    Matrix::CreateIterator CreateIterator
    Definition matrixmatrix.hh:229
    \n+
    BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix
    Definition matrixmatrix.hh:325
    \n+
    Matrix::size_type size_type
    Definition matrixmatrix.hh:399
    \n+
    Matrix::CreateIterator CreateIterator
    Definition matrixmatrix.hh:187
    \n+
    BCRSMatrix< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type, std::allocator< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type > > type
    Definition matrixmatrix.hh:547
    \n+
    Matrix::size_type size_type
    Definition matrixmatrix.hh:418
    \n+
    BCRSMatrix< FieldMatrix< T, n, m >, A >::size_type size_type
    Definition matrixmatrix.hh:157
    \n+
    @ do_break
    Definition matrixmatrix.hh:155
    \n+
    @ do_break
    Definition matrixmatrix.hh:324
    \n+
    @ do_break
    Definition matrixmatrix.hh:185
    \n
    Definition allocator.hh:11
    \n-
    A multiple of the identity matrix of static size.
    Definition scaledidmatrix.hh:30
    \n-
    void usmhv(const K &alpha, const X &x, Y &y) const
    y += alpha A^H x
    Definition scaledidmatrix.hh:353
    \n-
    void mmtv(const X &x, Y &y) const
    y -= A^T x
    Definition scaledidmatrix.hh:305
    \n-
    ScaledIdentityMatrix & operator-=(const ScaledIdentityMatrix &y)
    vector space subtraction
    Definition scaledidmatrix.hh:169
    \n-
    const_row_type::ConstIterator ConstColIterator
    rename the iterators for easier access
    Definition scaledidmatrix.hh:131
    \n-
    ConstIterator end() const
    end iterator
    Definition scaledidmatrix.hh:140
    \n-
    Iterator beforeBegin()
    Definition scaledidmatrix.hh:118
    \n-
    bool operator!=(const ScaledIdentityMatrix &other) const
    incomparison operator
    Definition scaledidmatrix.hh:229
    \n-
    void mmv(const X &x, Y &y) const
    y -= A x
    Definition scaledidmatrix.hh:293
    \n-
    std::size_t size_type
    The type used for the index access and size operations.
    Definition scaledidmatrix.hh:43
    \n-
    void usmv(const K &alpha, const X &x, Y &y) const
    y += alpha A x
    Definition scaledidmatrix.hh:329
    \n-
    row_type::Iterator ColIterator
    rename the iterators for easier access
    Definition scaledidmatrix.hh:95
    \n-
    const_row_type const_reference
    Definition scaledidmatrix.hh:53
    \n-
    void mv(const X &x, Y &y) const
    y = A x
    Definition scaledidmatrix.hh:238
    \n-
    void umtv(const X &x, Y &y) const
    y += A^T x
    Definition scaledidmatrix.hh:269
    \n-
    void umhv(const X &x, Y &y) const
    y += A^H x
    Definition scaledidmatrix.hh:281
    \n-
    DiagonalRowVector< K, n > row_type
    Each row is implemented by a field vector.
    Definition scaledidmatrix.hh:50
    \n-
    ContainerWrapperIterator< const WrapperType, reference, reference > Iterator
    Iterator class for sequential access.
    Definition scaledidmatrix.hh:89
    \n-
    Iterator beforeEnd()
    Definition scaledidmatrix.hh:111
    \n-
    K determinant() const
    calculates the determinant of this matrix
    Definition scaledidmatrix.hh:408
    \n-
    K field_type
    export the type representing the field
    Definition scaledidmatrix.hh:37
    \n-
    void usmtv(const K &alpha, const X &x, Y &y) const
    y += alpha A^T x
    Definition scaledidmatrix.hh:341
    \n-
    Iterator end()
    end iterator
    Definition scaledidmatrix.hh:104
    \n-
    Iterator iterator
    typedef for stl compliant access
    Definition scaledidmatrix.hh:91
    \n-
    const K & scalar() const
    Get const reference to the scalar diagonal value.
    Definition scaledidmatrix.hh:477
    \n-
    void umv(const X &x, Y &y) const
    y += A x
    Definition scaledidmatrix.hh:257
    \n-
    static constexpr std::size_t blocklevel
    We are at the leaf of the block recursion.
    Definition scaledidmatrix.hh:47
    \n-
    const K & diagonal(size_type) const
    Get const reference to diagonal entry.
    Definition scaledidmatrix.hh:464
    \n-
    @ rows
    The number of rows.
    Definition scaledidmatrix.hh:58
    \n-
    @ cols
    The number of columns.
    Definition scaledidmatrix.hh:60
    \n-
    ScaledIdentityMatrix & operator=(const K &k)
    Definition scaledidmatrix.hh:75
    \n-
    ContainerWrapperIterator< const WrapperType, const_reference, const_reference > ConstIterator
    Iterator class for sequential access.
    Definition scaledidmatrix.hh:125
    \n-
    K & diagonal(size_type)
    Get reference to diagonal entry.
    Definition scaledidmatrix.hh:470
    \n-
    void solve(V &x, const V &b) const
    Solve system A x = b.
    Definition scaledidmatrix.hh:394
    \n-
    bool exists(size_type i, size_type j) const
    return true when (i,j) is in pattern
    Definition scaledidmatrix.hh:429
    \n-
    Iterator RowIterator
    rename the iterators for easier access
    Definition scaledidmatrix.hh:93
    \n-
    ConstIterator const_iterator
    typedef for stl compliant access
    Definition scaledidmatrix.hh:127
    \n-
    ScaledIdentityMatrix()
    Default constructor.
    Definition scaledidmatrix.hh:66
    \n-
    bool operator==(const ScaledIdentityMatrix &other) const
    comparison operator
    Definition scaledidmatrix.hh:223
    \n-
    ConstIterator beforeBegin() const
    Definition scaledidmatrix.hh:154
    \n-
    ScaledIdentityMatrix & operator/=(const K &k)
    vector space division by scalar
    Definition scaledidmatrix.hh:196
    \n-
    friend std::ostream & operator<<(std::ostream &s, const ScaledIdentityMatrix< K, n > &a)
    Sends the matrix to an output stream.
    Definition scaledidmatrix.hh:441
    \n-
    FieldTraits< field_type >::real_type frobenius_norm2() const
    square of frobenius norm, need for block recursion
    Definition scaledidmatrix.hh:372
    \n-
    FieldTraits< field_type >::real_type frobenius_norm() const
    frobenius norm: sqrt(sum over squared values of entries)
    Definition scaledidmatrix.hh:366
    \n-
    FieldTraits< field_type >::real_type infinity_norm() const
    infinity norm (row sum norm, how to generalize for blocks?)
    Definition scaledidmatrix.hh:378
    \n-
    ConstIterator ConstRowIterator
    rename the iterators for easier access
    Definition scaledidmatrix.hh:129
    \n-
    ConstIterator beforeEnd() const
    Definition scaledidmatrix.hh:147
    \n-
    size_type M() const
    number of blocks in column direction
    Definition scaledidmatrix.hh:421
    \n-
    const_reference operator[](size_type i) const
    Return const_reference object as row replacement.
    Definition scaledidmatrix.hh:458
    \n-
    ScaledIdentityMatrix(const K &k)
    Constructor initializing the whole matrix with a scalar.
    Definition scaledidmatrix.hh:70
    \n-
    friend auto operator*(const ScaledIdentityMatrix &matrix, Scalar scalar)
    vector space multiplication with scalar
    Definition scaledidmatrix.hh:207
    \n-
    FieldTraits< field_type >::real_type infinity_norm_real() const
    simplified infinity norm (uses Manhattan norm for complex values)
    Definition scaledidmatrix.hh:384
    \n-
    ScaledIdentityMatrix & operator*=(const K &k)
    vector space multiplication with scalar
    Definition scaledidmatrix.hh:189
    \n-
    bool identical(const ScaledIdentityMatrix< K, n > &other) const
    Definition scaledidmatrix.hh:82
    \n-
    void invert()
    Compute inverse.
    Definition scaledidmatrix.hh:402
    \n-
    Iterator begin()
    begin iterator
    Definition scaledidmatrix.hh:98
    \n-
    K & scalar()
    Get reference to the scalar diagonal value.
    Definition scaledidmatrix.hh:484
    \n-
    row_type reference
    Definition scaledidmatrix.hh:51
    \n-
    K block_type
    export the type representing the components
    Definition scaledidmatrix.hh:40
    \n-
    void mmhv(const X &x, Y &y) const
    y -= A^H x
    Definition scaledidmatrix.hh:317
    \n-
    ScaledIdentityMatrix & operator+=(const ScaledIdentityMatrix &y)
    vector space addition
    Definition scaledidmatrix.hh:162
    \n-
    DiagonalRowVectorConst< K, n > const_row_type
    Definition scaledidmatrix.hh:52
    \n-
    void mtv(const X &x, Y &y) const
    y = A^T x
    Definition scaledidmatrix.hh:250
    \n-
    reference operator[](size_type i)
    Return reference object as row replacement.
    Definition scaledidmatrix.hh:452
    \n-
    ConstIterator begin() const
    begin iterator
    Definition scaledidmatrix.hh:134
    \n-
    size_type N() const
    number of blocks in row direction
    Definition scaledidmatrix.hh:415
    \n-
    static void apply(DenseMatrix &denseMatrix, ScaledIdentityMatrix< field, N > const &rhs)
    Definition scaledidmatrix.hh:497
    \n-
    typename ScaledIdentityMatrix< K, n >::field_type field_type
    Definition scaledidmatrix.hh:510
    \n-
    typename FieldTraits< field_type >::real_type real_type
    Definition scaledidmatrix.hh:511
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    Iterator end()
    Get iterator to one beyond last row.
    Definition bcrsmatrix.hh:681
    \n+
    row_type::Iterator ColIterator
    Iterator for the entries of each row.
    Definition bcrsmatrix.hh:704
    \n+
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n+
    CreateIterator createbegin()
    get initial create iterator
    Definition bcrsmatrix.hh:1097
    \n+
    Iterator access to matrix rows
    Definition bcrsmatrix.hh:579
    \n+
    Iterator class for sequential creation of blocks
    Definition bcrsmatrix.hh:957
    \n+
    void insert(size_type j)
    put column index in row
    Definition bcrsmatrix.hh:1064
    \n+
    Helper TMP to get the result type of a sparse matrix matrix multiplication ( )
    Definition matrixmatrix.hh:510
    \n+
    Helper TMP to get the result type of a sparse matrix matrix multiplication ( )
    Definition matrixmatrix.hh:535
    \n+
    Definition matrixutils.hh:27
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,718 +1,742 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-scaledidmatrix.hh\n+matrixmatrix.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_SCALEDIDMATRIX_HH\n-6#define DUNE_ISTL_SCALEDIDMATRIX_HH\n+5#ifndef DUNE_ISTL_MATRIXMATRIX_HH\n+6#define DUNE_ISTL_MATRIXMATRIX_HH\n 7\n-14#include \n-15#include \n-16#include \n-17#include \n-18#include \n-19#include \n-20#include \n-21#include \n-22\n-23namespace _\bD_\bu_\bn_\be {\n-24\n-28 template\n-_\b2_\b9 class _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx\n-30 {\n-31 typedef DiagonalMatrixWrapper< ScaledIdentityMatrix > WrapperType;\n-32\n-33 public:\n-34 //===== type definitions and constants\n-35\n-_\b3_\b7 typedef K _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-38\n-_\b4_\b0 typedef K _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+8#include \n+9\n+10#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+11#include \n+12#include \n+13namespace _\bD_\bu_\bn_\be\n+14{\n+15\n+26 namespace\n+27 {\n+28\n+37 template\n+38 struct NonzeroPatternTraverser\n+39 {};\n+40\n 41\n-_\b4_\b3 typedef std::size_t _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-44\n-46 [[deprecated(\"Use free function blockLevel(). Will be removed after 2.8.\")]]\n-_\b4_\b7 static constexpr std::size_t _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = 1;\n-48\n-_\b5_\b0 typedef DiagonalRowVector _\br_\bo_\bw_\b__\bt_\by_\bp_\be;\n-_\b5_\b1 typedef _\br_\bo_\bw_\b__\bt_\by_\bp_\be _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-_\b5_\b2 typedef DiagonalRowVectorConst _\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\bt_\by_\bp_\be;\n-_\b5_\b3 typedef _\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n-54\n-56 enum {\n-_\b5_\b8 _\br_\bo_\bw_\bs = n,\n-60 _\bc_\bo_\bl_\bs = n\n-_\b6_\b1 };\n-62\n-63 //===== constructors\n-_\b6_\b6 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx () {}\n+42 template<>\n+43 struct NonzeroPatternTraverser<0>\n+44 {\n+45 template\n+46 static void traverse(const _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,A1>& A,\n+47 const _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>& B,\n+48 F& func)\n+49 {\n+50 if(A.M()!=B.N())\n+51 DUNE_THROW(ISTLError, \"The sizes of the matrices do not match: \"<,A1>::\n+ConstRowIterator Row;\n+54 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,A1>::\n+ConstColIterator Col;\n+55 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>::\n+ConstColIterator BCol;\n+56 for(Row row= A.begin(); row != A.end(); ++row) {\n+57 // Loop over all column entries\n+58 for(Col _\bc_\bo_\bl = row->begin(); _\bc_\bo_\bl != row->end(); ++_\bc_\bo_\bl) {\n+59 // entry at i,k\n+60 // search for all nonzeros in row k\n+61 for(BCol bcol = B[_\bc_\bo_\bl.index()].begin(); bcol != B[_\bc_\bo_\bl.index()].end();\n+++bcol) {\n+62 func(*_\bc_\bo_\bl, *bcol, row.index(), bcol.index());\n+63 }\n+64 }\n+65 }\n+66 }\n 67\n-_\b7_\b0 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx (const K& k)\n-71 : p_(k)\n-72 {}\n-73\n-74 //===== assignment from scalar\n-_\b7_\b5 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const K& k)\n-76 {\n-77 p_ = k;\n-78 return *this;\n-79 }\n-80\n-81 // check if matrix is identical to other matrix (not only identical values)\n-_\b8_\b2 bool _\bi_\bd_\be_\bn_\bt_\bi_\bc_\ba_\bl(const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b>& other) const\n-83 {\n-84 return (this==&other);\n-85 }\n-86\n-87 //===== iterator interface to rows of the matrix\n-_\b8_\b9 typedef ContainerWrapperIterator\n-_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b9_\b1 typedef _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b9_\b3 typedef _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b9_\b5 typedef typename row_type::Iterator _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-96\n-_\b9_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn ()\n-99 {\n-100 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),0);\n-101 }\n-102\n-_\b1_\b0_\b4 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd ()\n-105 {\n-106 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),n);\n-107 }\n-108\n-_\b1_\b1_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n-112 {\n-113 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),n-1);\n-114 }\n-115\n-_\b1_\b1_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn ()\n-119 {\n-120 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),-1);\n-121 }\n-122\n-123\n-_\b1_\b2_\b5 typedef ContainerWrapperIterator _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b1_\b2_\b7 typedef _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b1_\b2_\b9 typedef _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-_\b1_\b3_\b1 typedef typename const_row_type::ConstIterator _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-132\n-_\b1_\b3_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn () const\n-135 {\n-136 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),0);\n+68 };\n+69\n+70 template<>\n+71 struct NonzeroPatternTraverser<1>\n+72 {\n+73 template\n+74 static void traverse(const _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bn_\b>,A1>& A,\n+75 const _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>& B,\n+76 F& func)\n+77 {\n+78\n+79 if(A.N()!=B.N())\n+80 DUNE_THROW(ISTLError, \"The sizes of the matrices do not match: \"<,A1>::\n+ConstRowIterator Row;\n+83 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bn_\b>,A1>::\n+ConstColIterator Col;\n+84 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>::\n+ConstColIterator BCol;\n+85\n+86 for(Row row=A.begin(); row!=A.end(); ++row) {\n+87 for(Col _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl!=row->end(); ++_\bc_\bo_\bl) {\n+88 for(BCol bcol = B[row.index()].begin(); bcol != B[row.index()].end();\n+++bcol) {\n+89 func(*_\bc_\bo_\bl, *bcol, _\bc_\bo_\bl.index(), bcol.index());\n+90 }\n+91 }\n+92 }\n+93 }\n+94 };\n+95\n+96 template<>\n+97 struct NonzeroPatternTraverser<2>\n+98 {\n+99 template\n+100 static void traverse(const BCRSMatrix,A1>& _\bm_\ba_\bt,\n+101 const BCRSMatrix,A2>& matt,\n+102 F& func)\n+103 {\n+104 if(_\bm_\ba_\bt.M()!=matt.M())\n+105 DUNE_THROW(ISTLError, \"The sizes of the matrices do not match: \"<<_\bm_\ba_\bt.M\n+()<<\"!=\"<,A1>::ConstRowIterator\n+row_iterator;\n+108 typedef typename BCRSMatrix,A1>::ConstColIterator\n+col_iterator;\n+109 typedef typename BCRSMatrix,A2>::ConstRowIterator\n+row_iterator_t;\n+110 typedef typename BCRSMatrix,A2>::ConstColIterator\n+col_iterator_t;\n+111\n+112 for(row_iterator mrow=_\bm_\ba_\bt.begin(); mrow != _\bm_\ba_\bt.end(); ++mrow) {\n+113 //iterate over the column entries\n+114 // mt is a transposed matrix crs therefore it is treated as a ccs matrix\n+115 // and the row_iterator iterates over the columns of the transposed matrix.\n+116 // search the row of the transposed matrix for an entry with the same index\n+117 // as the mcol iterator\n+118\n+119 for(row_iterator_t mtcol=matt.begin(); mtcol != matt.end(); ++mtcol) {\n+120 //Search for col entries in mat that have a corrsponding row index in matt\n+121 // (i.e. corresponding col index in the as this is the transposed matrix\n+122 col_iterator_t mtrow=mtcol->begin();\n+123 bool funcCalled = false;\n+124 for(col_iterator mcol=mrow->begin(); mcol != mrow->end(); ++mcol) {\n+125 // search\n+126 // TODO: This should probably be substituted by a binary search\n+127 for( ; mtrow != mtcol->end(); ++mtrow)\n+128 if(mtrow.index()>=mcol.index())\n+129 break;\n+130 if(mtrow != mtcol->end() && mtrow.index()==mcol.index()) {\n+131 func(*mcol, *mtrow, mtcol.index());\n+132 funcCalled = true;\n+133 // In some cases we only search for one pair, then we break here\n+134 // and continue with the next column.\n+135 if(F::do_break)\n+136 break;\n 137 }\n-138\n-_\b1_\b4_\b0 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd () const\n-141 {\n-142 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),n);\n+138 }\n+139 // move on with func only if func was called, otherwise they might\n+140 // get out of sync\n+141 if (funcCalled)\n+142 func.nextCol();\n 143 }\n-144\n-_\b1_\b4_\b7 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd() const\n-148 {\n-149 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),n-1);\n-150 }\n-151\n-_\b1_\b5_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n-155 {\n-156 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),-1);\n-157 }\n+144 func.nextRow();\n+145 }\n+146 }\n+147 };\n+148\n+149\n+150\n+151 template\n+152 class SparsityPatternInitializer\n+153 {\n+154 public:\n+_\b1_\b5_\b5 enum {_\bd_\bo_\b__\bb_\br_\be_\ba_\bk=true};\n+_\b1_\b5_\b6 typedef typename _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A>_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b1_\b5_\b7 typedef typename _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n 158\n-159 //===== vector space arithmetic\n-160\n-_\b1_\b6_\b2 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& y)\n-163 {\n-164 p_ += y.p_;\n-165 return *this;\n-166 }\n-167\n-_\b1_\b6_\b9 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& y)\n+159 SparsityPatternInitializer(_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br iter)\n+160 : rowiter(iter)\n+161 {}\n+162\n+163 template\n+164 void operator()(const T1&, const T2&, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n+165 {\n+166 rowiter._\bi_\bn_\bs_\be_\br_\bt(j);\n+167 }\n+168\n+169 void nextRow()\n 170 {\n-171 p_ -= y.p_;\n-172 return *this;\n-173 }\n-174\n-_\b1_\b7_\b6 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const K& k)\n-177 {\n-178 p_ += k;\n-179 return *this;\n-180 }\n-181\n-_\b1_\b8_\b3 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const K& k)\n-184 {\n-185 p_ -= k;\n-186 return *this;\n-187 }\n-_\b1_\b8_\b9 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=_\b (const K& k)\n-190 {\n-191 p_ *= k;\n-192 return *this;\n-193 }\n-194\n-_\b1_\b9_\b6 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=_\b (const K& k)\n-197 {\n-198 p_ /= k;\n-199 return *this;\n-200 }\n+171 ++rowiter;\n+172 }\n+173 void nextCol()\n+174 {}\n+175\n+176 private:\n+177 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br rowiter;\n+178 };\n+179\n+180\n+181 template\n+182 class MatrixInitializer\n+183 {\n+184 public:\n+_\b1_\b8_\b5 enum {_\bd_\bo_\b__\bb_\br_\be_\ba_\bk=true};\n+_\b1_\b8_\b6 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,TA> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b1_\b8_\b7 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b1_\b8_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+189\n+190 MatrixInitializer(_\bM_\ba_\bt_\br_\bi_\bx& A_, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be)\n+191 : count(0), A(A_)\n+192 {}\n+193 template\n+194 void operator()(const T1&, const T2&, int)\n+195 {\n+196 ++count;\n+197 }\n+198\n+199 void nextCol()\n+200 {}\n 201\n-202 //===== binary operators\n-203\n-205 template ::value, int> = 0>\n-_\b2_\b0_\b7 friend auto _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b ( const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& matrix, Scalar _\bs_\bc_\ba_\bl_\ba_\br)\n-208 {\n-209 return _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bP_\br_\bo_\bm_\bo_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bK_\b,_\bS_\bc_\ba_\bl_\ba_\br_\b>_\b:_\b:\n-_\bP_\br_\bo_\bm_\bo_\bt_\be_\bd_\bT_\by_\bp_\be, n>{matrix._\bs_\bc_\ba_\bl_\ba_\br()*_\bs_\bc_\ba_\bl_\ba_\br};\n-210 }\n-211\n-213 template ::value, int> = 0>\n-_\b2_\b1_\b5 friend auto _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b (Scalar _\bs_\bc_\ba_\bl_\ba_\br, const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& matrix)\n-216 {\n-217 return _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bP_\br_\bo_\bm_\bo_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bc_\ba_\bl_\ba_\br_\b,_\bK_\b>_\b:_\b:\n-_\bP_\br_\bo_\bm_\bo_\bt_\be_\bd_\bT_\by_\bp_\be, n>{_\bs_\bc_\ba_\bl_\ba_\br*matrix._\bs_\bc_\ba_\bl_\ba_\br()};\n-218 }\n-219\n-220 //===== comparison ops\n-221\n-_\b2_\b2_\b3 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& other) const\n-224 {\n-225 return p_==other._\bs_\bc_\ba_\bl_\ba_\br();\n-226 }\n-227\n-_\b2_\b2_\b9 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& other) const\n-230 {\n-231 return p_!=other._\bs_\bc_\ba_\bl_\ba_\br();\n-232 }\n-233\n-234 //===== linear maps\n+202 void nextRow()\n+203 {}\n+204\n+205 std::size_t nonzeros()\n+206 {\n+207 return count;\n+208 }\n+209\n+210 template\n+211 void initPattern(const BCRSMatrix,A1>& mat1,\n+212 const BCRSMatrix,A2>& mat2)\n+213 {\n+214 SparsityPatternInitializer sparsity(A._\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn());\n+215 NonzeroPatternTraverser::traverse(mat1,mat2,sparsity);\n+216 }\n+217\n+218 private:\n+219 std::size_t count;\n+220 _\bM_\ba_\bt_\br_\bi_\bx& A;\n+221 };\n+222\n+223 template\n+224 class MatrixInitializer<1,T,TA,n,m>\n+225 {\n+226 public:\n+_\b2_\b2_\b7 enum {_\bd_\bo_\b__\bb_\br_\be_\ba_\bk=false};\n+_\b2_\b2_\b8 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,TA> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b2_\b2_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b2_\b3_\b0 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+231\n+232 MatrixInitializer(_\bM_\ba_\bt_\br_\bi_\bx& A_, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows)\n+233 : A(A_), entries(rows)\n+234 {}\n 235\n-237 template\n-_\b2_\b3_\b8 void _\bm_\bv (const X& x, Y& y) const\n-239 {\n-240#ifdef DUNE_FMatrix_WITH_CHECKING\n-241 if (x.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n-242 if (y.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n-243#endif\n-244 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b2_\b5_\b0 void _\bm_\bt_\bv (const X& x, Y& y) const\n-251 {\n-252 _\bm_\bv(x, y);\n-253 }\n-254\n-256 template\n-_\b2_\b5_\b7 void _\bu_\bm_\bv (const X& x, Y& y) const\n-258 {\n-259#ifdef DUNE_FMatrix_WITH_CHECKING\n-260 if (x.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n-261 if (y.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n-262#endif\n-263 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b2_\b6_\b9 void _\bu_\bm_\bt_\bv (const X& x, Y& y) const\n-270 {\n-271#ifdef DUNE_FMatrix_WITH_CHECKING\n-272 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n-273 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n-274#endif\n-275 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b2_\b8_\b1 void _\bu_\bm_\bh_\bv (const X& x, Y& y) const\n-282 {\n-283#ifdef DUNE_FMatrix_WITH_CHECKING\n-284 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n-285 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n-286#endif\n-287 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b2_\b9_\b3 void _\bm_\bm_\bv (const X& x, Y& y) const\n-294 {\n-295#ifdef DUNE_FMatrix_WITH_CHECKING\n-296 if (x.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n-297 if (y.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n-298#endif\n-299 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b3_\b0_\b5 void _\bm_\bm_\bt_\bv (const X& x, Y& y) const\n-306 {\n-307#ifdef DUNE_FMatrix_WITH_CHECKING\n-308 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n-309 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n-310#endif\n-311 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b3_\b1_\b7 void _\bm_\bm_\bh_\bv (const X& x, Y& y) const\n-318 {\n-319#ifdef DUNE_FMatrix_WITH_CHECKING\n-320 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n-321 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n-322#endif\n-323 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b3_\b2_\b9 void _\bu_\bs_\bm_\bv (const K& alpha, const X& x, Y& y) const\n-330 {\n-331#ifdef DUNE_FMatrix_WITH_CHECKING\n-332 if (x.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n-333 if (y.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n-334#endif\n-335 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b3_\b4_\b1 void _\bu_\bs_\bm_\bt_\bv (const K& alpha, const X& x, Y& y) const\n-342 {\n-343#ifdef DUNE_FMatrix_WITH_CHECKING\n-344 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n-345 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n-346#endif\n-347 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n-_\b3_\b5_\b3 void _\bu_\bs_\bm_\bh_\bv (const K& alpha, const X& x, Y& y) const\n-354 {\n-355#ifdef DUNE_FMatrix_WITH_CHECKING\n-356 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n-357 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n-358#endif\n-359 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm () const\n-367 {\n-368 return fvmeta::sqrt(n*p_*p_);\n-369 }\n-370\n-_\b3_\b7_\b2 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2 () const\n-373 {\n-374 return n*p_*p_;\n-375 }\n-376\n-_\b3_\b7_\b8 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm () const\n-379 {\n-380 return std::abs(p_);\n-381 }\n-382\n-_\b3_\b8_\b4 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl () const\n-385 {\n-386 return fvmeta::absreal(p_);\n-387 }\n-388\n-389 //===== solve\n-390\n-393 template\n-_\b3_\b9_\b4 void _\bs_\bo_\bl_\bv_\be (V& x, const V& b) const\n-395 {\n-396 for (int i=0; i\n+237 void operator()(const T1&, const T2&, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n+238 {\n+239 entries[i].insert(j);\n+240 }\n+241\n+242 void nextCol()\n+243 {}\n+244\n+245 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nonzeros()\n+246 {\n+247 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nnz=0;\n+248 typedef typename std::vector >::const_iterator Iter;\n+249 for(Iter iter = entries.begin(); iter != entries.end(); ++iter)\n+250 nnz+=(*iter).size();\n+251 return nnz;\n+252 }\n+253 template\n+254 void initPattern(const BCRSMatrix,A1>&,\n+255 const BCRSMatrix,A2>&)\n+256 {\n+257 typedef typename std::vector >::const_iterator Iter;\n+258 _\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br citer = A._\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn();\n+259 for(Iter iter = entries.begin(); iter != entries.end(); ++iter, ++citer) {\n+260 typedef std::set::const_iterator SetIter;\n+261 for(SetIter index=iter->begin(); index != iter->end(); ++index)\n+262 citer._\bi_\bn_\bs_\be_\br_\bt(*index);\n+263 }\n+264 }\n+265\n+266 private:\n+267 _\bM_\ba_\bt_\br_\bi_\bx& A;\n+268 std::vector > entries;\n+269 };\n+270\n+271 template\n+272 struct MatrixInitializer<0,T,TA,n,m>\n+273 : public MatrixInitializer<1,T,TA,n,m>\n+274 {\n+275 MatrixInitializer(_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,TA>& A_,\n+276 typename _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,TA>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rows)\n+277 : MatrixInitializer<1,T,TA,n,m>(A_,rows)\n+278 {}\n+279 };\n+280\n+281\n+282 template\n+283 void addMatMultTransposeMat(FieldMatrix& res, const\n+FieldMatrix& _\bm_\ba_\bt,\n+284 const FieldMatrix& matt)\n+285 {\n+286 typedef typename FieldMatrix::size_type size_type;\n+287\n+288 for(size_type row=0; row\n+296 void addTransposeMatMultMat(FieldMatrix& res, const\n+FieldMatrix& _\bm_\ba_\bt,\n+297 const FieldMatrix& matt)\n+298 {\n+299 typedef typename FieldMatrix::size_type size_type;\n+300 for(size_type i=0; i\n+308 void addMatMultMat(FieldMatrix& res, const FieldMatrix& _\bm_\ba_\bt,\n+309 const FieldMatrix& matt)\n+310 {\n+311 typedef typename FieldMatrix::size_type size_type;\n+312 for(size_type row=0; row\n+321 class EntryAccumulatorFather\n+322 {\n+323 public:\n+_\b3_\b2_\b4 enum {_\bd_\bo_\b__\bb_\br_\be_\ba_\bk=false};\n+_\b3_\b2_\b5 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b3_\b2_\b6 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bR_\bo_\bw;\n+_\b3_\b2_\b7 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bl;\n+328\n+329 EntryAccumulatorFather(_\bM_\ba_\bt_\br_\bi_\bx& mat_)\n+330 : _\bm_\ba_\bt(mat_), row(_\bm_\ba_\bt.begin())\n+331 {\n+332 _\bm_\ba_\bt=0;\n+333 _\bc_\bo_\bl=row->begin();\n+334 }\n+335 void nextRow()\n+336 {\n+337 ++row;\n+338 if(row!=_\bm_\ba_\bt._\be_\bn_\bd())\n+339 _\bc_\bo_\bl=row->begin();\n+340 }\n+341\n+342 void nextCol()\n+343 {\n+344 ++this->_\bc_\bo_\bl;\n+345 }\n+346 protected:\n+_\b3_\b4_\b7 Matrix& _\bm_\ba_\bt;\n+348 private:\n+349 _\bR_\bo_\bw row;\n+350 protected:\n+_\b3_\b5_\b1 _\bC_\bo_\bl _\bc_\bo_\bl;\n+352 };\n+353\n+354 template\n+355 class EntryAccumulator\n+356 : public EntryAccumulatorFather\n+357 {\n+358 public:\n+_\b3_\b5_\b9 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b3_\b6_\b0 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+361\n+362 EntryAccumulator(_\bM_\ba_\bt_\br_\bi_\bx& mat_)\n+363 : EntryAccumulatorFather(mat_)\n+364 {}\n+365\n+366 template\n+367 void operator()(const T1& t1, const T2& t2, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n+368 {\n+369 assert(this->_\bc_\bo_\bl.index()==i);\n+370 addMatMultMat(*(this->_\bc_\bo_\bl),t1,t2);\n+371 }\n+372 };\n+373\n+374 template\n+375 class EntryAccumulator\n+376 : public EntryAccumulatorFather\n+377 {\n+378 public:\n+_\b3_\b7_\b9 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b3_\b8_\b0 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+381\n+382 EntryAccumulator(_\bM_\ba_\bt_\br_\bi_\bx& mat_)\n+383 : EntryAccumulatorFather(mat_)\n+384 {}\n+385\n+386 template\n+387 void operator()(const T1& t1, const T2& t2, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n+388 {\n+389 addMatMultMat(this->mat[i][j], t1, t2);\n+390 }\n+391 };\n+392\n+393 template\n+394 class EntryAccumulator\n+395 : public EntryAccumulatorFather\n+396 {\n+397 public:\n+_\b3_\b9_\b8 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b3_\b9_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+400\n+401 EntryAccumulator(_\bM_\ba_\bt_\br_\bi_\bx& mat_)\n+402 : EntryAccumulatorFather(mat_)\n+403 {}\n+404\n+405 template\n+406 void operator()(const T1& t1, const T2& t2, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j)\n+407 {\n+408 addTransposeMatMultMat(this->mat[i][j], t1, t2);\n+409 }\n+410 };\n 411\n-412 //===== sizes\n-413\n-_\b4_\b1_\b5 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bN () const\n-416 {\n-417 return n;\n-418 }\n+412 template\n+413 class EntryAccumulator\n+414 : public EntryAccumulatorFather\n+415 {\n+416 public:\n+_\b4_\b1_\b7 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b4_\b1_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n 419\n-_\b4_\b2_\b1 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bM () const\n-422 {\n-423 return n;\n-424 }\n-425\n-426 //===== query\n-427\n-_\b4_\b2_\b9 bool _\be_\bx_\bi_\bs_\bt_\bs (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j) const\n-430 {\n-431#ifdef DUNE_FMatrix_WITH_CHECKING\n-432 if (i<0 || i>=n) DUNE_THROW(FMatrixError,\"row index out of range\");\n-433 if (j<0 || j>=n) DUNE_THROW(FMatrixError,\"column index out of range\");\n-434#endif\n-435 return i==j;\n-436 }\n-437\n-438 //===== conversion operator\n-439\n-_\b4_\b4_\b1 friend std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<_\b (std::ostream& s, const\n-_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b>& a)\n-442 {\n-443 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i(&p_), i);\n-455 }\n-456\n-_\b4_\b5_\b8 _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n-459 {\n-460 return _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be(const_cast(&p_), i);\n-461 }\n-462\n-_\b4_\b6_\b4 const K& _\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*i*/) const\n-465 {\n-466 return p_;\n-467 }\n-468\n-_\b4_\b7_\b0 K& _\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*i*/)\n-471 {\n-472 return p_;\n-473 }\n-474\n-_\b4_\b7_\b7 const K& _\bs_\bc_\ba_\bl_\ba_\br() const\n-478 {\n-479 return p_;\n-480 }\n-481\n-_\b4_\b8_\b4 K& _\bs_\bc_\ba_\bl_\ba_\br()\n-485 {\n-486 return p_;\n-487 }\n-488\n-489 private:\n-490 // the data, very simply a single number\n-491 K p_;\n-492\n-493 };\n-494\n-495 template \n-_\b4_\b9_\b6 struct DenseMatrixAssigner> {\n-_\b4_\b9_\b7 static void _\ba_\bp_\bp_\bl_\by(DenseMatrix& denseMatrix,\n-498 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bf_\bi_\be_\bl_\bd_\b,_\b _\bN_\b> const& rhs) {\n-499 assert(denseMatrix.M() == N);\n-500 assert(denseMatrix.N() == N);\n-501 denseMatrix = field(0);\n-502 for (int i = 0; i < N; ++i)\n-503 denseMatrix[i][i] = rhs._\bs_\bc_\ba_\bl_\ba_\br();\n-504 }\n-505 };\n-506\n-507 template\n-_\b5_\b0_\b8 struct FieldTraits< _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx >\n-509 {\n-_\b5_\b1_\b0 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\b _\bn_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b5_\b1_\b1 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n-512 };\n-513\n-514} // end namespace\n-515\n-516#endif\n+420 EntryAccumulator(_\bM_\ba_\bt_\br_\bi_\bx& mat_)\n+421 : EntryAccumulatorFather(mat_)\n+422 {}\n+423\n+424 template\n+425 void operator()(const T1& t1, const T2& t2, [[maybe_unused]] _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n+426 {\n+427 assert(this->_\bc_\bo_\bl.index()==i);\n+428 addMatMultTransposeMat(*this->_\bc_\bo_\bl,t1,t2);\n+429 }\n+430 };\n+431\n+432\n+433 template\n+434 struct SizeSelector\n+435 {};\n+436\n+437 template<>\n+438 struct SizeSelector<0>\n+439 {\n+440 template\n+441 static std::tuple\n+442 size(const M1& m1, const M2& m2)\n+443 {\n+444 return std::make_tuple(m1.N(), m2.M());\n+445 }\n+446 };\n+447\n+448 template<>\n+449 struct SizeSelector<1>\n+450 {\n+451 template\n+452 static std::tuple\n+453 size(const M1& m1, const M2& m2)\n+454 {\n+455 return std::make_tuple(m1.M(), m2.M());\n+456 }\n+457 };\n+458\n+459\n+460 template<>\n+461 struct SizeSelector<2>\n+462 {\n+463 template\n+464 static std::tuple\n+465 size(const M1& m1, const M2& m2)\n+466 {\n+467 return std::make_tuple(m1.N(), m2.N());\n+468 }\n+469 };\n+470\n+471 template\n+472 void _\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt(BCRSMatrix,A>& res, const\n+BCRSMatrix,A1>& mat1,\n+473 const BCRSMatrix,A2>& mat2)\n+474 {\n+475 // First step is to count the number of nonzeros\n+476 typename BCRSMatrix,A>::size_type rows, cols;\n+477 std::tie(rows,cols)=SizeSelector::size(mat1, mat2);\n+478 MatrixInitializer patternInit(res, rows);\n+479 Timer timer;\n+480 NonzeroPatternTraverser::traverse(mat1,mat2,patternInit);\n+481 res.setSize(rows, cols, patternInit.nonzeros());\n+482 res.setBuildMode(BCRSMatrix,A>::row_wise);\n+483\n+484 //std::cout<<\"Counting nonzeros took \"< entriesAccu(res);\n+495 NonzeroPatternTraverser::traverse(mat1,mat2,entriesAccu);\n+496 //std::cout<<\"Calculating entries took \"<\n+_\b5_\b0_\b9 struct _\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt\n+510 {};\n+511\n+512 template\n+_\b5_\b1_\b3 struct _\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx >\n+514 {\n+_\b5_\b1_\b5 typedef _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b> _\bt_\by_\bp_\be;\n+516 };\n+517\n+518 template\n+_\b5_\b1_\b9 struct _\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A\n+>,_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A1 > >\n+520 {\n+521 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be\n+_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b> >::type,\n+_\b5_\b2_\b2 std::allocator,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b> >::type> > _\bt_\by_\bp_\be;\n+523 };\n+524\n+525\n+533 template\n+_\b5_\b3_\b4 struct _\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt\n+535 {};\n+536\n+537 template\n+_\b5_\b3_\b8 struct _\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx >\n+539 {\n+_\b5_\b4_\b0 typedef _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b> _\bt_\by_\bp_\be;\n+541 };\n+542\n+543 template\n+_\b5_\b4_\b4 struct _\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A\n+>,_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx,A1 > >\n+545 {\n+546 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be\n+_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b> >::type,\n+_\b5_\b4_\b7 std::allocator,_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b> >::type> > _\bt_\by_\bp_\be;\n+548 };\n+549\n+550\n+559 template\n+_\b5_\b6_\b0 void _\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,A>& res, const\n+_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A1>& _\bm_\ba_\bt,\n+561 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>& matt, [[maybe_unused]] bool\n+tryHard=false)\n+562 {\n+563 matMultMat<2>(res,_\bm_\ba_\bt, matt);\n+564 }\n+565\n+574 template\n+_\b5_\b7_\b5 void _\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A>& res, const\n+_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bk_\b>,A1>& _\bm_\ba_\bt,\n+576 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>& matt, bool tryHard=false)\n+577 {\n+578 matMultMat<0>(res,_\bm_\ba_\bt, matt);\n+579 }\n+580\n+589 template\n+_\b5_\b9_\b0 void _\bt_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt(_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bn_\b,_\bm_\b>,A>& res, const\n+_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bn_\b>,A1>& _\bm_\ba_\bt,\n+591 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bT_\b,_\bk_\b,_\bm_\b>,A2>& matt, [[maybe_unused]] bool\n+tryHard=false)\n+592 {\n+593 matMultMat<1>(res,_\bm_\ba_\bt, matt);\n+594 }\n+595\n+596}\n+597#endif\n+_\bb_\bc_\br_\bs_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+Implementation of the BCRSMatrix class.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b0_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:379\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bk_\b _\b>_\b,_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+FieldMatrix< T, n, m > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:515\n+_\bD_\bu_\bn_\be_\b:_\b:_\bt_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt\n+void transposeMatMultMat(BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const\n+BCRSMatrix< FieldMatrix< T, k, n >, A1 > &mat, const BCRSMatrix< FieldMatrix<\n+T, k, m >, A2 > &matt, bool tryHard=false)\n+Calculate product of a transposed sparse matrix with another sparse matrices\n+( ).\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:590\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt\n+void matMultMat(BCRSMatrix< FieldMatrix< T, n, m >, A > &res, const BCRSMatrix<\n+FieldMatrix< T, n, k >, A1 > &mat, const BCRSMatrix< FieldMatrix< T, k, m >, A2\n+> &matt, bool tryHard=false)\n+Calculate product of two sparse matrices ( ).\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:575\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:359\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bR_\bo_\bw\n+Matrix::RowIterator Row\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:326\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b2_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:417\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\b1_\b,_\b _\bT_\b,_\b _\bT_\bA_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+Dune::BCRSMatrix< Dune::FieldMatrix< T, n, m >, TA > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:228\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:360\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b0_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:380\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bC_\bo_\bl\n+Matrix::ColIterator Col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:327\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:188\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\b1_\b,_\b _\bT_\b,_\b _\bT_\bA_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:230\n+_\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bn_\b _\b>_\b,_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm\n+_\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+FieldMatrix< T, n, m > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:540\n+_\bD_\bu_\bn_\be_\b:_\b:_\bm_\ba_\bt_\bM_\bu_\bl_\bt_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bM_\ba_\bt\n+void matMultTransposeMat(BCRSMatrix< FieldMatrix< T, n, k >, A > &res, const\n+BCRSMatrix< FieldMatrix< T, n, m >, A1 > &mat, const BCRSMatrix< FieldMatrix<\n+T, k, m >, A2 > &matt, bool tryHard=false)\n+Calculate product of a sparse matrix with a transposed sparse matrices ( ).\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:560\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+BCRSMatrix< FieldMatrix< T, n, m >, A >::CreateIterator CreateIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:156\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b1_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:398\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+Dune::BCRSMatrix< FieldMatrix< T, n, m >, TA > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:186\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bn_\b,_\b _\bk_\b _\b>_\b,_\b _\bA_\b _\b>_\b,_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<\n+_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b1_\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+BCRSMatrix< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T,\n+k, m > >::type, std::allocator< typename MatMultMatResult< FieldMatrix< T, n, k\n+>, FieldMatrix< T, k, m > >::type > > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:522\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b<_\b _\b1_\b,_\b _\bT_\b,_\b _\bT_\bA_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Matrix::CreateIterator CreateIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:229\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix< FieldMatrix< T, n, m >, A > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:325\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b1_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:399\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Matrix::CreateIterator CreateIterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:187\n+_\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bn_\b _\b>_\b,_\b _\bA_\b _\b>_\b,\n+_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bk_\b,_\b _\bm_\b _\b>_\b,_\b _\bA_\b1_\b _\b>_\b _\b>_\b:_\b:_\bt_\by_\bp_\be\n+BCRSMatrix< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T,\n+k, m > >::type, std::allocator< typename MatMultMatResult< FieldMatrix< T, n, k\n+>, FieldMatrix< T, k, m > >::type > > type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:547\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\b<_\b _\bT_\b,_\b _\bA_\b,_\b _\bn_\b,_\b _\bm_\b,_\b _\b2_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:418\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+BCRSMatrix< FieldMatrix< T, n, m >, A >::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:157\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bd_\bo_\b__\bb_\br_\be_\ba_\bk\n+@ do_break\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:155\n+_\bD_\bu_\bn_\be_\b:_\b:_\bE_\bn_\bt_\br_\by_\bA_\bc_\bc_\bu_\bm_\bu_\bl_\ba_\bt_\bo_\br_\bF_\ba_\bt_\bh_\be_\br_\b:_\b:_\bd_\bo_\b__\bb_\br_\be_\ba_\bk\n+@ do_break\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:324\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bn_\bi_\bt_\bi_\ba_\bl_\bi_\bz_\be_\br_\b:_\b:_\bd_\bo_\b__\bb_\br_\be_\ba_\bk\n+@ do_break\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:185\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx\n-A multiple of the identity matrix of static size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bh_\bv\n-void usmhv(const K &alpha, const X &x, Y &y) const\n-y += alpha A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:353\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bt_\bv\n-void mmtv(const X &x, Y &y) const\n-y -= A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:305\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n-ScaledIdentityMatrix & operator-=(const ScaledIdentityMatrix &y)\n-vector space subtraction\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:169\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-const_row_type::ConstIterator ConstColIterator\n-rename the iterators for easier access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:131\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n-ConstIterator end() const\n-end iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:140\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n-Iterator beforeBegin()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:118\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n-bool operator!=(const ScaledIdentityMatrix &other) const\n-incomparison operator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bv\n-void mmv(const X &x, Y &y) const\n-y -= A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-std::size_t size_type\n-The type used for the index access and size operations.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:43\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bv\n-void usmv(const K &alpha, const X &x, Y &y) const\n-y += alpha A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:329\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-row_type::Iterator ColIterator\n-rename the iterators for easier access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:95\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-const_row_type const_reference\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n-void mv(const X &x, Y &y) const\n-y = A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:238\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bt_\bv\n-void umtv(const X &x, Y &y) const\n-y += A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:269\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bh_\bv\n-void umhv(const X &x, Y &y) const\n-y += A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:281\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n-DiagonalRowVector< K, n > row_type\n-Each row is implemented by a field vector.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:50\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ContainerWrapperIterator< const WrapperType, reference, reference > Iterator\n-Iterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:89\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-Iterator beforeEnd()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:111\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\be_\bt_\be_\br_\bm_\bi_\bn_\ba_\bn_\bt\n-K determinant() const\n-calculates the determinant of this matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:408\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-K field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:37\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bt_\bv\n-void usmtv(const K &alpha, const X &x, Y &y) const\n-y += alpha A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:341\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n Iterator end()\n-end iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:104\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator iterator\n-typedef for stl compliant access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:91\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br\n-const K & scalar() const\n-Get const reference to the scalar diagonal value.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:477\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bv\n-void umv(const X &x, Y &y) const\n-y += A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:257\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n-static constexpr std::size_t blocklevel\n-We are at the leaf of the block recursion.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:47\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n-const K & diagonal(size_type) const\n-Get const reference to diagonal entry.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:464\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\bs\n-@ rows\n-The number of rows.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:58\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bl_\bs\n-@ cols\n-The number of columns.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:60\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-ScaledIdentityMatrix & operator=(const K &k)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ContainerWrapperIterator< const WrapperType, const_reference, const_reference >\n-ConstIterator\n-Iterator class for sequential access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:125\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n-K & diagonal(size_type)\n-Get reference to diagonal entry.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:470\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bo_\bl_\bv_\be\n-void solve(V &x, const V &b) const\n-Solve system A x = b.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:394\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs\n-bool exists(size_type i, size_type j) const\n-return true when (i,j) is in pattern\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:429\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Iterator RowIterator\n-rename the iterators for easier access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:93\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator const_iterator\n-typedef for stl compliant access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:127\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx\n-ScaledIdentityMatrix()\n-Default constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:66\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n-bool operator==(const ScaledIdentityMatrix &other) const\n-comparison operator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:223\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n-ConstIterator beforeBegin() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:154\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n-ScaledIdentityMatrix & operator/=(const K &k)\n-vector space division by scalar\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:196\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-friend std::ostream & operator<<(std::ostream &s, const ScaledIdentityMatrix<\n-K, n > &a)\n-Sends the matrix to an output stream.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:441\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2\n-FieldTraits< field_type >::real_type frobenius_norm2() const\n-square of frobenius norm, need for block recursion\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:372\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm\n-FieldTraits< field_type >::real_type frobenius_norm() const\n-frobenius norm: sqrt(sum over squared values of entries)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:366\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n-FieldTraits< field_type >::real_type infinity_norm() const\n-infinity norm (row sum norm, how to generalize for blocks?)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:378\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-ConstIterator ConstRowIterator\n-rename the iterators for easier access\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:129\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n-ConstIterator beforeEnd() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:147\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-size_type M() const\n-number of blocks in column direction\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:421\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-const_reference operator[](size_type i) const\n-Return const_reference object as row replacement.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:458\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx\n-ScaledIdentityMatrix(const K &k)\n-Constructor initializing the whole matrix with a scalar.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n-friend auto operator*(const ScaledIdentityMatrix &matrix, Scalar scalar)\n-vector space multiplication with scalar\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:207\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n-FieldTraits< field_type >::real_type infinity_norm_real() const\n-simplified infinity norm (uses Manhattan norm for complex values)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:384\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n-ScaledIdentityMatrix & operator*=(const K &k)\n-vector space multiplication with scalar\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:189\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bd_\be_\bn_\bt_\bi_\bc_\ba_\bl\n-bool identical(const ScaledIdentityMatrix< K, n > &other) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:82\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bv_\be_\br_\bt\n-void invert()\n-Compute inverse.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:402\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-Iterator begin()\n-begin iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:98\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br\n-K & scalar()\n-Get reference to the scalar diagonal value.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:484\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n-row_type reference\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n-K block_type\n-export the type representing the components\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:40\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bh_\bv\n-void mmhv(const X &x, Y &y) const\n-y -= A^H x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:317\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n-ScaledIdentityMatrix & operator+=(const ScaledIdentityMatrix &y)\n-vector space addition\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:162\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\bt_\by_\bp_\be\n-DiagonalRowVectorConst< K, n > const_row_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bt_\bv\n-void mtv(const X &x, Y &y) const\n-y = A^T x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:250\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n-reference operator[](size_type i)\n-Return reference object as row replacement.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:452\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n-ConstIterator begin() const\n-begin iterator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:134\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-number of blocks in row direction\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:415\n-_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bf_\bi_\be_\bl_\bd_\b,_\b _\bN_\b _\b>_\b _\b>_\b:_\b:\n-_\ba_\bp_\bp_\bl_\by\n-static void apply(DenseMatrix &denseMatrix, ScaledIdentityMatrix< field, N >\n-const &rhs)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:497\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename ScaledIdentityMatrix< K, n >::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:510\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-typename FieldTraits< field_type >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:511\n+Get iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:681\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::Iterator ColIterator\n+Iterator for the entries of each row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:704\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+The type for the index access and the size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\br_\be_\ba_\bt_\be_\bb_\be_\bg_\bi_\bn\n+CreateIterator createbegin()\n+get initial create iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1097\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator access to matrix rows\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:579\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator class for sequential creation of blocks\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:957\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\br_\be_\ba_\bt_\be_\bI_\bt_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bn_\bs_\be_\br_\bt\n+void insert(size_type j)\n+put column index in row\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1064\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt\n+Helper TMP to get the result type of a sparse matrix matrix multiplication ( )\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:510\n+_\bD_\bu_\bn_\be_\b:_\b:_\bT_\br_\ba_\bn_\bs_\bp_\bo_\bs_\be_\bd_\bM_\ba_\bt_\bM_\bu_\bl_\bt_\bM_\ba_\bt_\bR_\be_\bs_\bu_\bl_\bt\n+Helper TMP to get the result type of a sparse matrix matrix multiplication ( )\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:535\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00209.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00209.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: repartition.hh File Reference\n+dune-istl: operators.hh File Reference\n \n \n \n \n \n \n \n@@ -71,101 +71,51 @@\n \n
    \n
    \n
    \n \n-
    repartition.hh File Reference
    \n+Namespaces
    \n+ \n
    \n
    \n \n-

    Functionality for redistributing a parallel index set using graph partitioning. \n+

    Define general, extensible interface for operators. The available implementation wraps a matrix. \n More...

    \n-
    #include <cassert>
    \n-#include <map>
    \n-#include <utility>
    \n-#include <cmath>
    \n-#include <dune/common/timer.hh>
    \n-#include <dune/common/enumset.hh>
    \n-#include <dune/common/stdstreams.hh>
    \n-#include <dune/common/parallel/mpitraits.hh>
    \n-#include <dune/common/parallel/communicator.hh>
    \n-#include <dune/common/parallel/indexset.hh>
    \n-#include <dune/common/parallel/indicessyncer.hh>
    \n-#include <dune/common/parallel/remoteindices.hh>
    \n-#include <dune/common/rangeutilities.hh>
    \n-#include <dune/istl/owneroverlapcopy.hh>
    \n-#include <dune/istl/paamg/graph.hh>
    \n+
    #include <cmath>
    \n+#include <complex>
    \n+#include <iostream>
    \n+#include <iomanip>
    \n+#include <string>
    \n+#include <dune/common/exceptions.hh>
    \n+#include <dune/common/shared_ptr.hh>
    \n+#include "solvercategory.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    struct  Dune::RedistributeInterface
    class  Dune::LinearOperator< X, Y >
     A linear operator. More...
     
    class  Dune::AssembledLinearOperator< M, X, Y >
     A linear operator exporting itself in matrix form. More...
     
    class  Dune::MatrixAdapter< M, X, Y >
     Adapter to turn a matrix into a linear operator. More...
     
    \n \n \n \n-\n-\n-

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Metis
     
    \n-\n-\n-\n-\n-\n-

    \n-Typedefs

    using Dune::Metis::real_t = float
     
    using Dune::Metis::idx_t = std::size_t
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n

    \n-Functions

    template<class G , class T1 , class T2 >
    void Dune::fillIndexSetHoles (const G &graph, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm)
     Fills the holes in an index set.
     
    template<class G , class T1 , class T2 >
    bool Dune::buildCommunication (const G &graph, std::vector< int > &realparts, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm, std::shared_ptr< Dune::OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface &redistInf, bool verbose=false)
     
    template<class S , class T >
    void Dune::print_carray (S &os, T *array, std::size_t l)
     
    template<class S , class T >
    bool Dune::isValidGraph (std::size_t noVtx, std::size_t gnoVtx, S noEdges, T *xadj, T *adjncy, bool checkSymmetry)
     
    template<class M , class T1 , class T2 >
    bool Dune::commGraphRepartition (const M &mat, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface &redistInf, bool verbose=false)
     
    template<class G , class T1 , class T2 >
    bool Dune::graphRepartition (const G &graph, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface &redistInf, bool verbose=false)
     execute a graph repartition for a giving graph and indexset.
     
    \n

    Detailed Description

    \n-

    Functionality for redistributing a parallel index set using graph partitioning.

    \n-

    Refactored version of an intern.

    Author
    Markus Blatt
    \n-

    Variable Documentation

    \n-\n-

    ◆ globalOwnerVertices

    \n-\n-
    \n-
    \n- \n- \n- \n- \n-
    int globalOwnerVertices
    \n-
    \n-\n-
    \n-
    \n-
    \n+

    Define general, extensible interface for operators. The available implementation wraps a matrix.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,81 +1,39 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-repartition.hh File Reference\n-Functionality for redistributing a parallel index set using graph partitioning.\n-_\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+operators.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+_\bc_\bo_\bn_\bc_\be_\bp_\bt\n+Define general, extensible interface for operators. The available\n+implementation wraps a matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n #include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh>\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0 A linear operator. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n-namespace \u00a0 _\bD_\bu_\bn_\be\n-\u00a0\n-namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\be_\bt_\bi_\bs\n-\u00a0\n-T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt = float\n-\u00a0\n-using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt = std::size_t\n-\u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs (const G &graph, _\bD_\bu_\bn_\be_\b:_\b:\n- _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< T1, T2 > &oocomm)\n-\u00a0 Fills the holes in an index set.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0 A linear operator exporting itself in matrix form. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (const G &graph, std::vector< int > &realparts,\n- _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< T1, T2 > &oocomm, std::shared_ptr<\n- _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< T1, T2 > > &outcomm,\n- _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be &redistInf, bool verbose=false)\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0 Adapter to turn a matrix into a linear operator. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\b__\bc_\ba_\br_\br_\ba_\by (S &os, T *array, std::size_t l)\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bG_\br_\ba_\bp_\bh (std::size_t noVtx, std::size_t gnoVtx, S noEdges, T\n- *xadj, T *adjncy, bool checkSymmetry)\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn (const M &_\bm_\ba_\bt, _\bD_\bu_\bn_\be_\b:_\b:\n- _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< T1, T2 > &oocomm, _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt nparts,\n- std::shared_ptr< _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< T1, T2 > >\n- &outcomm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be &redistInf, bool verbose=false)\n-\u00a0\n-template\n-bool\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bg_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn (const G &graph, _\bD_\bu_\bn_\be_\b:_\b:\n- _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< T1, T2 > &oocomm, _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt nparts,\n- std::shared_ptr< _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn< T1, T2 > >\n- &outcomm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be &redistInf, bool verbose=false)\n-\u00a0 execute a graph repartition for a giving graph and indexset.\n+N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n+namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Functionality for redistributing a parallel index set using graph partitioning.\n-Refactored version of an intern.\n- Author\n- Markus Blatt\n-*\b**\b**\b**\b**\b* V\bVa\bar\bri\bia\bab\bbl\ble\be D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0g\bgl\blo\bob\bba\bal\blO\bOw\bwn\bne\ber\brV\bVe\ber\brt\bti\bic\bce\bes\bs *\b**\b**\b**\b**\b*\n-int globalOwnerVertices\n+Define general, extensible interface for operators. The available\n+implementation wraps a matrix.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00209_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00209_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: repartition.hh Source File\n+dune-istl: operators.hh Source File\n \n \n \n \n \n \n \n@@ -74,1851 +74,170 @@\n \n
    \n \n
    \n
    \n
    \n-
    repartition.hh
    \n+
    operators.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_REPARTITION_HH
    \n-
    6#define DUNE_ISTL_REPARTITION_HH
    \n+
    5#ifndef DUNE_ISTL_OPERATORS_HH
    \n+
    6#define DUNE_ISTL_OPERATORS_HH
    \n
    7
    \n-
    8#include <cassert>
    \n-
    9#include <map>
    \n-
    10#include <utility>
    \n-
    11#include <cmath>
    \n-
    12
    \n-
    13#if HAVE_PARMETIS
    \n-
    14// Explicitly use C linkage as scotch does not extern "C" in its headers.
    \n-
    15// Works because ParMETIS/METIS checks whether compiler is C++ and otherwise
    \n-
    16// does not use extern "C". Therfore no nested extern "C" will be created
    \n-
    17extern "C"
    \n-
    18{
    \n-
    19#include <parmetis.h>
    \n-
    20}
    \n-
    21#endif
    \n-
    22
    \n-
    23#include <dune/common/timer.hh>
    \n-
    24#include <dune/common/enumset.hh>
    \n-
    25#include <dune/common/stdstreams.hh>
    \n-
    26#include <dune/common/parallel/mpitraits.hh>
    \n-
    27#include <dune/common/parallel/communicator.hh>
    \n-
    28#include <dune/common/parallel/indexset.hh>
    \n-
    29#include <dune/common/parallel/indicessyncer.hh>
    \n-
    30#include <dune/common/parallel/remoteindices.hh>
    \n-
    31#include <dune/common/rangeutilities.hh>
    \n-
    32
    \n-\n-\n-
    35
    \n-
    44namespace Dune
    \n-
    45{
    \n-
    \n-
    46 namespace Metis
    \n-
    47 {
    \n-
    48 // Explicitly specify a real_t and idx_t for older (Par)METIS versions that do not
    \n-
    49 // provide these typedefs
    \n-
    50#if HAVE_PARMETIS && defined(REALTYPEWIDTH)
    \n-
    51 using real_t = ::real_t;
    \n-
    52#else
    \n-
    53 using real_t = float;
    \n-
    54#endif
    \n-
    55
    \n-
    56#if HAVE_PARMETIS && defined(IDXTYPEWIDTH)
    \n-
    57 using idx_t = ::idx_t;
    \n-
    58#elif HAVE_PARMETIS && defined(HAVE_SCOTCH_NUM_TYPE)
    \n-
    59 using idx_t = SCOTCH_Num;
    \n-
    60#elif HAVE_PARMETIS
    \n-
    61 using idx_t = int;
    \n-
    62#else
    \n-
    63 using idx_t = std::size_t;
    \n-
    64#endif
    \n-
    65 }
    \n-
    \n-
    66
    \n-
    67
    \n-
    68#if HAVE_MPI
    \n-
    82 template<class G, class T1, class T2>
    \n-
    \n-\n-
    84 {
    \n-\n-
    86 typedef typename IndexSet::LocalIndex::Attribute Attribute;
    \n+
    8#include <cmath>
    \n+
    9#include <complex>
    \n+
    10#include <iostream>
    \n+
    11#include <iomanip>
    \n+
    12#include <string>
    \n+
    13
    \n+
    14#include <dune/common/exceptions.hh>
    \n+
    15#include <dune/common/shared_ptr.hh>
    \n+
    16
    \n+
    17#include "solvercategory.hh"
    \n+
    18
    \n+
    19
    \n+
    20namespace Dune {
    \n+
    21
    \n+
    44 //=====================================================================
    \n+
    45 // Abstract operator interface
    \n+
    46 //=====================================================================
    \n+
    47
    \n+
    48
    \n+
    66 template<class X, class Y>
    \n+
    \n+\n+
    68 public:
    \n+
    70 typedef X domain_type;
    \n+
    72 typedef Y range_type;
    \n+
    74 typedef typename X::field_type field_type;
    \n+
    75
    \n+
    80 virtual void apply (const X& x, Y& y) const = 0;
    \n+
    81
    \n+
    83 virtual void applyscaleadd (field_type alpha, const X& x, Y& y) const = 0;
    \n+
    84
    \n+
    86 virtual ~LinearOperator () {}
    \n
    87
    \n-
    88 IndexSet& indexSet = oocomm.indexSet();
    \n-\n-
    90
    \n-
    91 std::size_t sum=0, needed = graph.noVertices()-indexSet.size();
    \n-
    92 std::vector<std::size_t> neededall(oocomm.communicator().size(), 0);
    \n-
    93
    \n-
    94 MPI_Allgather(&needed, 1, MPITraits<std::size_t>::getType() , &(neededall[0]), 1, MPITraits<std::size_t>::getType(), oocomm.communicator());
    \n-
    95 for(int i=0; i<oocomm.communicator().size(); ++i)
    \n-
    96 sum=sum+neededall[i]; // MAke this for generic
    \n-
    97
    \n-
    98 if(sum==0)
    \n-
    99 // Nothing to do
    \n-
    100 return;
    \n-
    101
    \n-
    102 //Compute Maximum Global Index
    \n-
    103 T1 maxgi=0;
    \n-
    104 auto end = indexSet.end();
    \n-
    105 for(auto it = indexSet.begin(); it != end; ++it)
    \n-
    106 maxgi=std::max(maxgi,it->global());
    \n-
    107
    \n-
    108 //Process p creates global indices consecutively
    \n-
    109 //starting atmaxgi+\\sum_{i=1}^p neededall[i]
    \n-
    110 // All created indices are owned by the process
    \n-
    111 maxgi=oocomm.communicator().max(maxgi);
    \n-
    112 ++maxgi; //Sart with the next free index.
    \n-
    113
    \n-
    114 for(int i=0; i<oocomm.communicator().rank(); ++i)
    \n-
    115 maxgi=maxgi+neededall[i]; // TODO: make this more generic
    \n+\n+
    90#if DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
    \n+
    91 {
    \n+
    92 DUNE_THROW(Dune::Exception,"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
    \n+
    93 };
    \n+
    94#else
    \n+
    95 = 0;
    \n+
    96#endif
    \n+
    97 };
    \n+
    \n+
    98
    \n+
    99
    \n+
    108 template<class M, class X, class Y>
    \n+
    \n+\n+
    110 public:
    \n+
    112 typedef M matrix_type;
    \n+
    113 typedef X domain_type;
    \n+
    114 typedef Y range_type;
    \n+
    115 typedef typename X::field_type field_type;
    \n
    116
    \n-
    117 // Store the global index information for repairing the remote index information
    \n-
    118 std::map<int,SLList<std::pair<T1,Attribute> > > globalIndices;
    \n-
    119 storeGlobalIndicesOfRemoteIndices(globalIndices, oocomm.remoteIndices());
    \n-
    120 indexSet.beginResize();
    \n-
    121
    \n-
    122 for(auto vertex = graph.begin(), vend=graph.end(); vertex != vend; ++vertex) {
    \n-
    123 const typename IndexSet::IndexPair* pair=lookup.pair(*vertex);
    \n-
    124 if(pair==0) {
    \n-
    125 // No index yet, add new one
    \n-
    126 indexSet.add(maxgi, typename IndexSet::LocalIndex(*vertex, OwnerOverlapCopyAttributeSet::owner, false));
    \n-
    127 ++maxgi;
    \n-
    128 }
    \n-
    129 }
    \n-
    130
    \n-
    131 indexSet.endResize();
    \n-
    132
    \n-
    133 repairLocalIndexPointers(globalIndices, oocomm.remoteIndices(), indexSet);
    \n-
    134
    \n-
    135 oocomm.freeGlobalLookup();
    \n-
    136 oocomm.buildGlobalLookup();
    \n-
    137#ifdef DEBUG_REPART
    \n-
    138 std::cout<<"Holes are filled!"<<std::endl;
    \n-
    139 std::cout<<oocomm.communicator().rank()<<": "<<oocomm.indexSet()<<std::endl;
    \n-
    140#endif
    \n-
    141 }
    \n-
    \n-
    142
    \n-
    143 namespace
    \n-
    144 {
    \n-
    145
    \n-
    146 class ParmetisDuneIndexMap
    \n-
    147 {
    \n-
    148 public:
    \n-
    149 template<class Graph, class OOComm>
    \n-
    150 ParmetisDuneIndexMap(const Graph& graph, const OOComm& com);
    \n-
    151 int toParmetis(int i) const
    \n-
    152 {
    \n-
    153 return duneToParmetis[i];
    \n-
    154 }
    \n-
    155 int toLocalParmetis(int i) const
    \n-
    156 {
    \n-
    157 return duneToParmetis[i]-base_;
    \n-
    158 }
    \n-
    159 int operator[](int i) const
    \n-
    160 {
    \n-
    161 return duneToParmetis[i];
    \n-
    162 }
    \n-
    163 int toDune(int i) const
    \n-
    164 {
    \n-
    165 return parmetisToDune[i];
    \n-
    166 }
    \n-
    167 std::vector<int>::size_type numOfOwnVtx() const
    \n-
    168 {
    \n-
    169 return parmetisToDune.size();
    \n-
    170 }
    \n-
    171 Metis::idx_t* vtxDist()
    \n-
    172 {
    \n-
    173 return &vtxDist_[0];
    \n-
    174 }
    \n-\n-
    176 private:
    \n-
    177 int base_;
    \n-
    178 std::vector<int> duneToParmetis;
    \n-
    179 std::vector<int> parmetisToDune;
    \n-
    180 // range of vertices for processor i: vtxdist[i] to vtxdist[i+1] (parmetis global)
    \n-
    181 std::vector<Metis::idx_t> vtxDist_;
    \n-
    182 };
    \n-
    183
    \n-
    184 template<class G, class OOComm>
    \n-
    185 ParmetisDuneIndexMap::ParmetisDuneIndexMap(const G& graph, const OOComm& oocomm)
    \n-
    186 : duneToParmetis(graph.noVertices(), -1), vtxDist_(oocomm.communicator().size()+1)
    \n-
    187 {
    \n-
    188 int npes=oocomm.communicator().size(), mype=oocomm.communicator().rank();
    \n-
    189
    \n-
    190 typedef typename OOComm::OwnerSet OwnerSet;
    \n-
    191
    \n-
    192 int numOfOwnVtx=0;
    \n-
    193 auto end = oocomm.indexSet().end();
    \n-
    194 for(auto index = oocomm.indexSet().begin(); index != end; ++index) {
    \n-
    195 if (OwnerSet::contains(index->local().attribute())) {
    \n-
    196 numOfOwnVtx++;
    \n-
    197 }
    \n-
    198 }
    \n-
    199 parmetisToDune.resize(numOfOwnVtx);
    \n-
    200 std::vector<int> globalNumOfVtx(npes);
    \n-
    201 // make this number available to all processes
    \n-
    202 MPI_Allgather(&numOfOwnVtx, 1, MPI_INT, &(globalNumOfVtx[0]), 1, MPI_INT, oocomm.communicator());
    \n-
    203
    \n-
    204 int base=0;
    \n-
    205 vtxDist_[0] = 0;
    \n-
    206 for(int i=0; i<npes; i++) {
    \n-
    207 if (i<mype) {
    \n-
    208 base += globalNumOfVtx[i];
    \n-
    209 }
    \n-
    210 vtxDist_[i+1] = vtxDist_[i] + globalNumOfVtx[i];
    \n-
    211 }
    \n-
    212 globalOwnerVertices=vtxDist_[npes];
    \n-
    213 base_=base;
    \n-
    214
    \n-
    215#ifdef DEBUG_REPART
    \n-
    216 std::cout << oocomm.communicator().rank()<<" vtxDist: ";
    \n-
    217 for(int i=0; i<= npes; ++i)
    \n-
    218 std::cout << vtxDist_[i]<<" ";
    \n-
    219 std::cout<<std::endl;
    \n-
    220#endif
    \n-
    221
    \n-
    222 // Traverse the graph and assign a new consecutive number/index
    \n-
    223 // starting by "base" to all owner vertices.
    \n-
    224 // The new index is used as the ParMETIS global index and is
    \n-
    225 // stored in the vector "duneToParmetis"
    \n-
    226 auto vend = graph.end();
    \n-
    227 for(auto vertex = graph.begin(); vertex != vend; ++vertex) {
    \n-
    228 const typename OOComm::ParallelIndexSet::IndexPair* index=oocomm.globalLookup().pair(*vertex);
    \n-
    229 assert(index);
    \n-
    230 if (OwnerSet::contains(index->local().attribute())) {
    \n-
    231 // assign and count the index
    \n-
    232 parmetisToDune[base-base_]=index->local();
    \n-
    233 duneToParmetis[index->local()] = base++;
    \n-
    234 }
    \n-
    235 }
    \n-
    236
    \n-
    237 // At this point, every process knows the ParMETIS global index
    \n-
    238 // of it's owner vertices. The next step is to get the
    \n-
    239 // ParMETIS global index of the overlap vertices from the
    \n-
    240 // associated processes. To do this, the Dune::Interface class
    \n-
    241 // is used.
    \n-
    242#ifdef DEBUG_REPART
    \n-
    243 std::cout <<oocomm.communicator().rank()<<": before ";
    \n-
    244 for(std::size_t i=0; i<duneToParmetis.size(); ++i)
    \n-
    245 std::cout<<duneToParmetis[i]<<" ";
    \n-
    246 std::cout<<std::endl;
    \n-
    247#endif
    \n-
    248 oocomm.copyOwnerToAll(duneToParmetis,duneToParmetis);
    \n-
    249#ifdef DEBUG_REPART
    \n-
    250 std::cout <<oocomm.communicator().rank()<<": after ";
    \n-
    251 for(std::size_t i=0; i<duneToParmetis.size(); ++i)
    \n-
    252 std::cout<<duneToParmetis[i]<<" ";
    \n-
    253 std::cout<<std::endl;
    \n-
    254#endif
    \n-
    255 }
    \n-
    256 }
    \n-
    257
    \n-
    \n-\n-
    259 : public Interface
    \n-
    260 {
    \n-
    \n-
    261 void setCommunicator(MPI_Comm comm)
    \n-
    262 {
    \n-
    263 communicator_=comm;
    \n-
    264 }
    \n-
    \n-
    265 template<class Flags,class IS>
    \n-
    \n-
    266 void buildSendInterface(const std::vector<int>& toPart, const IS& idxset)
    \n-
    267 {
    \n-
    268 std::map<int,int> sizes;
    \n-
    269
    \n-
    270 for(auto i=idxset.begin(), end=idxset.end(); i!=end; ++i)
    \n-
    271 if(Flags::contains(i->local().attribute()))
    \n-
    272 ++sizes[toPart[i->local()]];
    \n-
    273
    \n-
    274 // Allocate the necessary space
    \n-
    275 for(auto i=sizes.begin(), end=sizes.end(); i!=end; ++i)
    \n-
    276 interfaces()[i->first].first.reserve(i->second);
    \n-
    277
    \n-
    278 //Insert the interface information
    \n-
    279 for(auto i=idxset.begin(), end=idxset.end(); i!=end; ++i)
    \n-
    280 if(Flags::contains(i->local().attribute()))
    \n-
    281 interfaces()[toPart[i->local()]].first.add(i->local());
    \n-
    282 }
    \n-
    \n-
    283
    \n-
    \n-
    284 void reserveSpaceForReceiveInterface(int proc, int size)
    \n-
    285 {
    \n-
    286 interfaces()[proc].second.reserve(size);
    \n-
    287 }
    \n-
    \n-
    \n-
    288 void addReceiveIndex(int proc, std::size_t idx)
    \n-
    289 {
    \n-
    290 interfaces()[proc].second.add(idx);
    \n-
    291 }
    \n-
    \n-
    292 template<typename TG>
    \n-
    \n-
    293 void buildReceiveInterface(std::vector<std::pair<TG,int> >& indices)
    \n-
    294 {
    \n-
    295 std::size_t i=0;
    \n-
    296 for(auto idx=indices.begin(); idx!= indices.end(); ++idx) {
    \n-
    297 interfaces()[idx->second].second.add(i++);
    \n-
    298 }
    \n-
    299 }
    \n-
    \n-
    300
    \n-
    \n-\n-
    302 {}
    \n-
    \n-
    303
    \n-
    304 };
    \n-
    \n-
    305
    \n-
    306 namespace
    \n-
    307 {
    \n-
    317 template<class GI>
    \n-
    318 void createSendBuf(std::vector<GI>& ownerVec, std::set<GI>& overlapVec, std::set<int>& neighbors, char *sendBuf, int buffersize, MPI_Comm comm) {
    \n-
    319 // Pack owner vertices
    \n-
    320 std::size_t s=ownerVec.size();
    \n-
    321 int pos=0;
    \n-
    322 if(s==0)
    \n-
    323 ownerVec.resize(1); // otherwise would read beyond the memory bound
    \n-
    324 MPI_Pack(&s, 1, MPITraits<std::size_t>::getType(), sendBuf, buffersize, &pos, comm);
    \n-
    325 MPI_Pack(&(ownerVec[0]), s, MPITraits<GI>::getType(), sendBuf, buffersize, &pos, comm);
    \n-
    326 s = overlapVec.size();
    \n-
    327 MPI_Pack(&s, 1, MPITraits<std::size_t>::getType(), sendBuf, buffersize, &pos, comm);
    \n-
    328 for(auto i=overlapVec.begin(), end= overlapVec.end(); i != end; ++i)
    \n-
    329 MPI_Pack(const_cast<GI*>(&(*i)), 1, MPITraits<GI>::getType(), sendBuf, buffersize, &pos, comm);
    \n-
    330
    \n-
    331 s=neighbors.size();
    \n-
    332 MPI_Pack(&s, 1, MPITraits<std::size_t>::getType(), sendBuf, buffersize, &pos, comm);
    \n-
    333
    \n-
    334 for(auto i=neighbors.begin(), end= neighbors.end(); i != end; ++i)
    \n-
    335 MPI_Pack(const_cast<int*>(&(*i)), 1, MPI_INT, sendBuf, buffersize, &pos, comm);
    \n-
    336 }
    \n-
    345 template<class GI>
    \n-
    346 void saveRecvBuf(char *recvBuf, int bufferSize, std::vector<std::pair<GI,int> >& ownerVec,
    \n-
    347 std::set<GI>& overlapVec, std::set<int>& neighbors, RedistributeInterface& inf, int from, MPI_Comm comm) {
    \n-
    348 std::size_t size;
    \n-
    349 int pos=0;
    \n-
    350 // unpack owner vertices
    \n-
    351 MPI_Unpack(recvBuf, bufferSize, &pos, &size, 1, MPITraits<std::size_t>::getType(), comm);
    \n-
    352 inf.reserveSpaceForReceiveInterface(from, size);
    \n-
    353 ownerVec.reserve(ownerVec.size()+size);
    \n-
    354 for(; size!=0; --size) {
    \n-
    355 GI gi;
    \n-
    356 MPI_Unpack(recvBuf, bufferSize, &pos, &gi, 1, MPITraits<GI>::getType(), comm);
    \n-
    357 ownerVec.push_back(std::make_pair(gi,from));
    \n-
    358 }
    \n-
    359 // unpack overlap vertices
    \n-
    360 MPI_Unpack(recvBuf, bufferSize, &pos, &size, 1, MPITraits<std::size_t>::getType(), comm);
    \n-
    361 typename std::set<GI>::iterator ipos = overlapVec.begin();
    \n-
    362 Dune::dverb << "unpacking "<<size<<" overlap"<<std::endl;
    \n-
    363 for(; size!=0; --size) {
    \n-
    364 GI gi;
    \n-
    365 MPI_Unpack(recvBuf, bufferSize, &pos, &gi, 1, MPITraits<GI>::getType(), comm);
    \n-
    366 ipos=overlapVec.insert(ipos, gi);
    \n-
    367 }
    \n-
    368 //unpack neighbors
    \n-
    369 MPI_Unpack(recvBuf, bufferSize, &pos, &size, 1, MPITraits<std::size_t>::getType(), comm);
    \n-
    370 Dune::dverb << "unpacking "<<size<<" neighbors"<<std::endl;
    \n-
    371 typename std::set<int>::iterator npos = neighbors.begin();
    \n-
    372 for(; size!=0; --size) {
    \n-
    373 int n;
    \n-
    374 MPI_Unpack(recvBuf, bufferSize, &pos, &n, 1, MPI_INT, comm);
    \n-
    375 npos=neighbors.insert(npos, n);
    \n-
    376 }
    \n-
    377 }
    \n-
    378
    \n-
    392 template<typename T>
    \n-
    393 void getDomain(const MPI_Comm& comm, T *part, int numOfOwnVtx, int nparts, int *myDomain, std::vector<int> &domainMapping) {
    \n-
    394 int npes, mype;
    \n-
    395 MPI_Comm_size(comm, &npes);
    \n-
    396 MPI_Comm_rank(comm, &mype);
    \n-
    397 MPI_Status status;
    \n-
    398
    \n-
    399 *myDomain = -1;
    \n-
    400 int i=0;
    \n-
    401 int j=0;
    \n-
    402
    \n-
    403 std::vector<int> domain(nparts, 0);
    \n-
    404 std::vector<int> assigned(npes, 0);
    \n-
    405 // init domain Mapping
    \n-
    406 domainMapping.assign(domainMapping.size(), -1);
    \n-
    407
    \n-
    408 // count the occurrence of domains
    \n-
    409 for (i=0; i<numOfOwnVtx; i++) {
    \n-
    410 domain[part[i]]++;
    \n-
    411 }
    \n-
    412
    \n-
    413 std::vector<int> domainMatrix(npes * nparts, -1);
    \n-
    414
    \n-
    415 // init buffer with the own domain
    \n-
    416 int *buf = new int[nparts];
    \n-
    417 for (i=0; i<nparts; i++) {
    \n-
    418 buf[i] = domain[i];
    \n-
    419 domainMatrix[mype*nparts+i] = domain[i];
    \n-
    420 }
    \n-
    421 int pe=0;
    \n-
    422 int src = (mype-1+npes)%npes;
    \n-
    423 int dest = (mype+1)%npes;
    \n-
    424 // ring communication, we need n-1 communications for n processors
    \n-
    425 for (i=0; i<npes-1; i++) {
    \n-
    426 MPI_Sendrecv_replace(buf, nparts, MPI_INT, dest, 0, src, 0, comm, &status);
    \n-
    427 // pe is the process of the actual received buffer
    \n-
    428 pe = ((mype-1-i)+npes)%npes;
    \n-
    429 for(j=0; j<nparts; j++) {
    \n-
    430 // save the values to the domain matrix
    \n-
    431 domainMatrix[pe*nparts+j] = buf[j];
    \n-
    432 }
    \n-
    433 }
    \n-
    434 delete[] buf;
    \n-
    435
    \n-
    436 // Start the domain calculation.
    \n-
    437 // The process which contains the maximum number of vertices of a
    \n-
    438 // particular domain is selected to choose it's favorate domain
    \n-
    439 int maxOccurance = 0;
    \n-
    440 pe = -1;
    \n-
    441 std::set<std::size_t> unassigned;
    \n-
    442
    \n-
    443 for(i=0; i<nparts; i++) {
    \n-
    444 for(j=0; j<npes; j++) {
    \n-
    445 // process has no domain assigned
    \n-
    446 if (assigned[j]==0) {
    \n-
    447 if (maxOccurance < domainMatrix[j*nparts+i]) {
    \n-
    448 maxOccurance = domainMatrix[j*nparts+i];
    \n-
    449 pe = j;
    \n-
    450 }
    \n-
    451 }
    \n-
    452
    \n-
    453 }
    \n-
    454 if (pe!=-1) {
    \n-
    455 // process got a domain, ...
    \n-
    456 domainMapping[i] = pe;
    \n-
    457 // ...mark as assigned
    \n-
    458 assigned[pe] = 1;
    \n-
    459 if (pe==mype) {
    \n-
    460 *myDomain = i;
    \n-
    461 }
    \n-
    462 pe = -1;
    \n-
    463 }
    \n-
    464 else
    \n-
    465 {
    \n-
    466 unassigned.insert(i);
    \n-
    467 }
    \n-
    468 maxOccurance = 0;
    \n-
    469 }
    \n-
    470
    \n-
    471 typename std::vector<int>::iterator next_free = assigned.begin();
    \n-
    472
    \n-
    473 for(auto udomain = unassigned.begin(),
    \n-
    474 end = unassigned.end(); udomain != end; ++udomain)
    \n-
    475 {
    \n-
    476 next_free = std::find_if(next_free, assigned.end(), std::bind(std::less<int>(), std::placeholders::_1, 1));
    \n-
    477 assert(next_free != assigned.end());
    \n-
    478 domainMapping[*udomain] = next_free-assigned.begin();
    \n-
    479 *next_free = 1;
    \n-
    480 }
    \n-
    481 }
    \n-
    482
    \n-
    483 struct SortFirst
    \n-
    484 {
    \n-
    485 template<class T>
    \n-
    486 bool operator()(const T& t1, const T& t2) const
    \n-
    487 {
    \n-
    488 return t1<t2;
    \n-
    489 }
    \n-
    490 };
    \n-
    491
    \n-
    492
    \n-
    503 template<class GI>
    \n-
    504 void mergeVec(std::vector<std::pair<GI, int> >& ownerVec, std::set<GI>& overlapSet) {
    \n-
    505
    \n-
    506#ifdef DEBUG_REPART
    \n-
    507 // Safety check for duplicates.
    \n-
    508 if(ownerVec.size()>0)
    \n-
    509 {
    \n-
    510 auto old=ownerVec.begin();
    \n-
    511 for(auto i=old+1, end=ownerVec.end(); i != end; old=i++)
    \n-
    512 {
    \n-
    513 if(i->first==old->first)
    \n-
    514 {
    \n-
    515 std::cerr<<"Value at indes"<<old-ownerVec.begin()<<" is the same as at index "
    \n-
    516 <<i-ownerVec.begin()<<" ["<<old->first<<","<<old->second<<"]==["
    \n-
    517 <<i->first<<","<<i->second<<"]"<<std::endl;
    \n-
    518 throw "Huch!";
    \n-
    519 }
    \n-
    520 }
    \n-
    521 }
    \n-
    522
    \n-
    523#endif
    \n-
    524
    \n-
    525 auto v=ownerVec.begin(), vend=ownerVec.end();
    \n-
    526 for(auto s=overlapSet.begin(), send=overlapSet.end(); s!=send;)
    \n-
    527 {
    \n-
    528 while(v!=vend && v->first<*s) ++v;
    \n-
    529 if(v!=vend && v->first==*s) {
    \n-
    530 // Move to the next element before erasing
    \n-
    531 // thus s stays valid!
    \n-
    532 auto tmp=s;
    \n-
    533 ++s;
    \n-
    534 overlapSet.erase(tmp);
    \n-
    535 }else
    \n-
    536 ++s;
    \n-
    537 }
    \n-
    538 }
    \n-
    539
    \n-
    540
    \n-
    554 template<class OwnerSet, class Graph, class IS, class GI>
    \n-
    555 void getNeighbor(const Graph& g, std::vector<int>& part,
    \n-
    556 typename Graph::VertexDescriptor vtx, const IS& indexSet,
    \n-
    557 int toPe, std::set<GI>& neighbor, std::set<int>& neighborProcs) {
    \n-
    558 for(auto edge=g.beginEdges(vtx), end=g.endEdges(vtx); edge!=end; ++edge)
    \n-
    559 {
    \n-
    560 const typename IS::IndexPair* pindex = indexSet.pair(edge.target());
    \n-
    561 assert(pindex);
    \n-
    562 if(part[pindex->local()]!=toPe || !OwnerSet::contains(pindex->local().attribute()))
    \n-
    563 {
    \n-
    564 // is sent to another process and therefore becomes overlap
    \n-
    565 neighbor.insert(pindex->global());
    \n-
    566 neighborProcs.insert(part[pindex->local()]);
    \n-
    567 }
    \n-
    568 }
    \n-
    569 }
    \n-
    570
    \n-
    571 template<class T, class I>
    \n-
    572 void my_push_back(std::vector<T>& ownerVec, const I& index, [[maybe_unused]] int proc)
    \n-
    573 {
    \n-
    574 ownerVec.push_back(index);
    \n-
    575 }
    \n-
    576
    \n-
    577 template<class T, class I>
    \n-
    578 void my_push_back(std::vector<std::pair<T,int> >& ownerVec, const I& index, int proc)
    \n-
    579 {
    \n-
    580 ownerVec.push_back(std::make_pair(index,proc));
    \n-
    581 }
    \n-
    582 template<class T>
    \n-
    583 void reserve(std::vector<T>&, RedistributeInterface&, int)
    \n-
    584 {}
    \n-
    585 template<class T>
    \n-
    586 void reserve(std::vector<std::pair<T,int> >& ownerVec, RedistributeInterface& redist, int proc)
    \n-
    587 {
    \n-
    588 redist.reserveSpaceForReceiveInterface(proc, ownerVec.size());
    \n-
    589 }
    \n-
    590
    \n-
    591
    \n-
    609 template<class OwnerSet, class G, class IS, class T, class GI>
    \n-
    610 void getOwnerOverlapVec(const G& graph, std::vector<int>& part, IS& indexSet,
    \n-
    611 [[maybe_unused]] int myPe, int toPe, std::vector<T>& ownerVec, std::set<GI>& overlapSet,
    \n-
    612 RedistributeInterface& redist, std::set<int>& neighborProcs) {
    \n-
    613 for(auto index = indexSet.begin(); index != indexSet.end(); ++index) {
    \n-
    614 // Only Process owner vertices, the others are not in the parmetis graph.
    \n-
    615 if(OwnerSet::contains(index->local().attribute()))
    \n-
    616 {
    \n-
    617 if(part[index->local()]==toPe)
    \n-
    618 {
    \n-
    619 getNeighbor<OwnerSet>(graph, part, index->local(), indexSet,
    \n-
    620 toPe, overlapSet, neighborProcs);
    \n-
    621 my_push_back(ownerVec, index->global(), toPe);
    \n-
    622 }
    \n-
    623 }
    \n-
    624 }
    \n-
    625 reserve(ownerVec, redist, toPe);
    \n-
    626
    \n-
    627 }
    \n-
    628
    \n-
    629
    \n-
    636 template<class F, class IS>
    \n-
    637 inline bool isOwner(IS& indexSet, int index) {
    \n-
    638
    \n-
    639 const typename IS::IndexPair* pindex=indexSet.pair(index);
    \n-
    640
    \n-
    641 assert(pindex);
    \n-
    642 return F::contains(pindex->local().attribute());
    \n-
    643 }
    \n-
    644
    \n-
    645
    \n-
    646 class BaseEdgeFunctor
    \n-
    647 {
    \n-
    648 public:
    \n-
    649 BaseEdgeFunctor(Metis::idx_t* adj,const ParmetisDuneIndexMap& data)
    \n-
    650 : i_(), adj_(adj), data_(data)
    \n-
    651 {}
    \n-
    652
    \n-
    653 template<class T>
    \n-
    654 void operator()(const T& edge)
    \n-
    655 {
    \n-
    656 // Get the egde weight
    \n-
    657 // const Weight& weight=edge.weight();
    \n-
    658 adj_[i_] = data_.toParmetis(edge.target());
    \n-
    659 i_++;
    \n-
    660 }
    \n-
    661 std::size_t index()
    \n-
    662 {
    \n-
    663 return i_;
    \n-
    664 }
    \n-
    665
    \n-
    666 private:
    \n-
    667 std::size_t i_;
    \n-
    668 Metis::idx_t* adj_;
    \n-
    669 const ParmetisDuneIndexMap& data_;
    \n-
    670 };
    \n-
    671
    \n-
    672 template<typename G>
    \n-
    673 struct EdgeFunctor
    \n-
    674 : public BaseEdgeFunctor
    \n-
    675 {
    \n-
    676 EdgeFunctor(Metis::idx_t* adj, const ParmetisDuneIndexMap& data, std::size_t)
    \n-
    677 : BaseEdgeFunctor(adj, data)
    \n-
    678 {}
    \n-
    679
    \n-
    680 Metis::idx_t* getWeights()
    \n-
    681 {
    \n-
    682 return NULL;
    \n-
    683 }
    \n-
    684 void free(){}
    \n-
    685 };
    \n-
    686
    \n-
    687 template<class G, class V, class E, class VM, class EM>
    \n-
    688 class EdgeFunctor<Dune::Amg::PropertiesGraph<G,V,E,VM,EM> >
    \n-
    689 : public BaseEdgeFunctor
    \n-
    690 {
    \n-
    691 public:
    \n-
    692 EdgeFunctor(Metis::idx_t* adj, const ParmetisDuneIndexMap& data, std::size_t s)
    \n-
    693 : BaseEdgeFunctor(adj, data)
    \n-
    694 {
    \n-
    695 weight_=new Metis::idx_t[s];
    \n-
    696 }
    \n-
    697
    \n-
    698 template<class T>
    \n-
    699 void operator()(const T& edge)
    \n-
    700 {
    \n-
    701 weight_[index()]=edge.properties().depends() ? 3 : 1;
    \n-
    702 BaseEdgeFunctor::operator()(edge);
    \n-
    703 }
    \n-
    704 Metis::idx_t* getWeights()
    \n-
    705 {
    \n-
    706 return weight_;
    \n-
    707 }
    \n-
    708 void free(){
    \n-
    709 if(weight_!=0) {
    \n-
    710 delete weight_;
    \n-
    711 weight_=0;
    \n-
    712 }
    \n-
    713 }
    \n-
    714 private:
    \n-
    715 Metis::idx_t* weight_;
    \n-
    716 };
    \n-
    717
    \n-
    718
    \n-
    719
    \n-
    733 template<class F, class G, class IS, class EW>
    \n-
    734 void getAdjArrays(G& graph, IS& indexSet, Metis::idx_t *xadj,
    \n-
    735 EW& ew)
    \n-
    736 {
    \n-
    737 int j=0;
    \n-
    738 auto vend = graph.end();
    \n-
    739
    \n-
    740 for(auto vertex = graph.begin(); vertex != vend; ++vertex) {
    \n-
    741 if (isOwner<F>(indexSet,*vertex)) {
    \n-
    742 // The type of const edge iterator.
    \n-
    743 auto eend = vertex.end();
    \n-
    744 xadj[j] = ew.index();
    \n-
    745 j++;
    \n-
    746 for(auto edge = vertex.begin(); edge != eend; ++edge) {
    \n-
    747 ew(edge);
    \n-
    748 }
    \n-
    749 }
    \n-
    750 }
    \n-
    751 xadj[j] = ew.index();
    \n-
    752 }
    \n-
    753 } // end anonymous namespace
    \n-
    754
    \n-
    755 template<class G, class T1, class T2>
    \n-
    756 bool buildCommunication(const G& graph, std::vector<int>& realparts,
    \n-\n-
    758 std::shared_ptr<Dune::OwnerOverlapCopyCommunication<T1,T2>>& outcomm,
    \n-
    759 RedistributeInterface& redistInf,
    \n-
    760 bool verbose=false);
    \n-
    761#if HAVE_PARMETIS
    \n-
    762#ifndef METIS_VER_MAJOR
    \n-
    763 extern "C"
    \n-
    764 {
    \n-
    765 // backwards compatibility to parmetis < 4.0.0
    \n-
    766 void METIS_PartGraphKway(int *nvtxs, Metis::idx_t *xadj, Metis::idx_t *adjncy, Metis::idx_t *vwgt,
    \n-
    767 Metis::idx_t *adjwgt, int *wgtflag, int *numflag, int *nparts,
    \n-
    768 int *options, int *edgecut, Metis::idx_t *part);
    \n-
    769
    \n-
    770 void METIS_PartGraphRecursive(int *nvtxs, Metis::idx_t *xadj, Metis::idx_t *adjncy, Metis::idx_t *vwgt,
    \n-
    771 Metis::idx_t *adjwgt, int *wgtflag, int *numflag, int *nparts,
    \n-
    772 int *options, int *edgecut, Metis::idx_t *part);
    \n-
    773 }
    \n-
    774#endif
    \n-
    775#endif // HAVE_PARMETIS
    \n-
    776
    \n-
    777 template<class S, class T>
    \n-
    \n-
    778 inline void print_carray(S& os, T* array, std::size_t l)
    \n-
    779 {
    \n-
    780 for(T *cur=array, *end=array+l; cur!=end; ++cur)
    \n-
    781 os<<*cur<<" ";
    \n-
    782 }
    \n-
    \n-
    783
    \n-
    784 template<class S, class T>
    \n-
    \n-
    785 inline bool isValidGraph(std::size_t noVtx, std::size_t gnoVtx, S noEdges, T* xadj,
    \n-
    786 T* adjncy, bool checkSymmetry)
    \n-
    787 {
    \n-
    788 bool correct=true;
    \n-
    789
    \n-
    790 using std::signbit;
    \n-
    791 for(Metis::idx_t vtx=0; vtx<(Metis::idx_t)noVtx; ++vtx) {
    \n-
    792 if(static_cast<S>(xadj[vtx])>noEdges || signbit(xadj[vtx])) {
    \n-
    793 std::cerr <<"Check graph: xadj["<<vtx<<"]="<<xadj[vtx]<<" (>"
    \n-
    794 <<noEdges<<") out of range!"<<std::endl;
    \n-
    795 correct=false;
    \n-
    796 }
    \n-
    797 if(static_cast<S>(xadj[vtx+1])>noEdges || signbit(xadj[vtx+1])) {
    \n-
    798 std::cerr <<"Check graph: xadj["<<vtx+1<<"]="<<xadj[vtx+1]<<" (>"
    \n-
    799 <<noEdges<<") out of range!"<<std::endl;
    \n-
    800 correct=false;
    \n-
    801 }
    \n-
    802 // Check numbers in adjncy
    \n-
    803 for(Metis::idx_t i=xadj[vtx]; i< xadj[vtx+1]; ++i) {
    \n-
    804 if(signbit(adjncy[i]) || ((std::size_t)adjncy[i])>gnoVtx) {
    \n-
    805 std::cerr<<" Edge "<<adjncy[i]<<" out of range ["<<0<<","<<noVtx<<")"
    \n-
    806 <<std::endl;
    \n-
    807 correct=false;
    \n-
    808 }
    \n-
    809 }
    \n-
    810 if(checkSymmetry) {
    \n-
    811 for(Metis::idx_t i=xadj[vtx]; i< xadj[vtx+1]; ++i) {
    \n-
    812 Metis::idx_t target=adjncy[i];
    \n-
    813 // search for symmetric edge
    \n-
    814 int found=0;
    \n-
    815 for(Metis::idx_t j=xadj[target]; j< xadj[target+1]; ++j)
    \n-
    816 if(adjncy[j]==vtx)
    \n-
    817 found++;
    \n-
    818 if(found!=1) {
    \n-
    819 std::cerr<<"Edge ("<<target<<","<<vtx<<") "<<i<<" time"<<std::endl;
    \n-
    820 correct=false;
    \n-
    821 }
    \n-
    822 }
    \n-
    823 }
    \n-
    824 }
    \n-
    825 return correct;
    \n-
    826 }
    \n-
    \n-
    827
    \n-
    828 template<class M, class T1, class T2>
    \n-
    \n-\n-
    830 Metis::idx_t nparts,
    \n-
    831 std::shared_ptr<Dune::OwnerOverlapCopyCommunication<T1,T2>>& outcomm,
    \n-
    832 RedistributeInterface& redistInf,
    \n-
    833 bool verbose=false)
    \n-
    834 {
    \n-
    835 if(verbose && oocomm.communicator().rank()==0)
    \n-
    836 std::cout<<"Repartitioning from "<<oocomm.communicator().size()
    \n-
    837 <<" to "<<nparts<<" parts"<<std::endl;
    \n-
    838 Timer time;
    \n-
    839 int rank = oocomm.communicator().rank();
    \n-
    840#if !HAVE_PARMETIS
    \n-
    841 int* part = new int[1];
    \n-
    842 part[0]=0;
    \n-
    843#else
    \n-
    844 Metis::idx_t* part = new Metis::idx_t[1]; // where all our data moves to
    \n-
    845
    \n-
    846 if(nparts>1) {
    \n-
    847
    \n-
    848 part[0]=rank;
    \n-
    849
    \n-
    850 { // sublock for automatic memory deletion
    \n-
    851
    \n-
    852 // Build the graph of the communication scheme and create an appropriate indexset.
    \n-
    853 // calculate the neighbour vertices
    \n-
    854 int noNeighbours = oocomm.remoteIndices().neighbours();
    \n-
    855
    \n-
    856 for(auto n= oocomm.remoteIndices().begin(); n != oocomm.remoteIndices().end();
    \n-
    857 ++n)
    \n-
    858 if(n->first==rank) {
    \n-
    859 //do not include ourselves.
    \n-
    860 --noNeighbours;
    \n-
    861 break;
    \n-
    862 }
    \n-
    863
    \n-
    864 // A parmetis graph representing the communication graph.
    \n-
    865 // The diagonal entries are the number of nodes on the process.
    \n-
    866 // The offdiagonal entries are the number of edges leading to other processes.
    \n-
    867
    \n-
    868 Metis::idx_t *xadj=new Metis::idx_t[2];
    \n-
    869 Metis::idx_t *vtxdist=new Metis::idx_t[oocomm.communicator().size()+1];
    \n-
    870 Metis::idx_t *adjncy=new Metis::idx_t[noNeighbours];
    \n-
    871#ifdef USE_WEIGHTS
    \n-
    872 Metis::idx_t *vwgt = 0;
    \n-
    873 Metis::idx_t *adjwgt = 0;
    \n-
    874#endif
    \n-
    875
    \n-
    876 // each process has exactly one vertex!
    \n-
    877 for(int i=0; i<oocomm.communicator().size(); ++i)
    \n-
    878 vtxdist[i]=i;
    \n-
    879 vtxdist[oocomm.communicator().size()]=oocomm.communicator().size();
    \n-
    880
    \n-
    881 xadj[0]=0;
    \n-
    882 xadj[1]=noNeighbours;
    \n-
    883
    \n-
    884 // count edges to other processor
    \n-
    885 // a vector mapping the index to the owner
    \n-
    886 // std::vector<int> owner(mat.N(), oocomm.communicator().rank());
    \n-
    887 // for(NeighbourIterator n= oocomm.remoteIndices().begin(); n != oocomm.remoteIndices().end();
    \n-
    888 // ++n)
    \n-
    889 // {
    \n-
    890 // if(n->first!=oocomm.communicator().rank()){
    \n-
    891 // typedef typename RemoteIndices::RemoteIndexList RIList;
    \n-
    892 // const RIList& rlist = *(n->second.first);
    \n-
    893 // typedef typename RIList::const_iterator LIter;
    \n-
    894 // for(LIter entry=rlist.begin(); entry!=rlist.end(); ++entry){
    \n-
    895 // if(entry->attribute()==OwnerOverlapCopyAttributeSet::owner)
    \n-
    896 // owner[entry->localIndexPair().local()] = n->first;
    \n-
    897 // }
    \n-
    898 // }
    \n-
    899 // }
    \n-
    900
    \n-
    901 // std::map<int,Metis::idx_t> edgecount; // edges to other processors
    \n-
    902 // typedef typename M::ConstRowIterator RIter;
    \n-
    903 // typedef typename M::ConstColIterator CIter;
    \n-
    904
    \n-
    905 // // calculate edge count
    \n-
    906 // for(RIter row=mat.begin(), endr=mat.end(); row != endr; ++row)
    \n-
    907 // if(owner[row.index()]==OwnerOverlapCopyAttributeSet::owner)
    \n-
    908 // for(CIter entry= row->begin(), ende = row->end(); entry != ende; ++entry)
    \n-
    909 // ++edgecount[owner[entry.index()]];
    \n-
    910
    \n-
    911 // setup edge and weight pattern
    \n-
    912
    \n-
    913 Metis::idx_t* adjp=adjncy;
    \n-
    914
    \n-
    915#ifdef USE_WEIGHTS
    \n-
    916 vwgt = new Metis::idx_t[1];
    \n-
    917 vwgt[0]= mat.N(); // weight is numer of rows TODO: Should actually be the nonzeros.
    \n-
    918
    \n-
    919 adjwgt = new Metis::idx_t[noNeighbours];
    \n-
    920 Metis::idx_t* adjwp=adjwgt;
    \n-
    921#endif
    \n-
    922
    \n-
    923 for(auto n= oocomm.remoteIndices().begin(); n != oocomm.remoteIndices().end();
    \n-
    924 ++n)
    \n-
    925 if(n->first != rank) {
    \n-
    926 *adjp=n->first;
    \n-
    927 ++adjp;
    \n-
    928#ifdef USE_WEIGHTS
    \n-
    929 *adjwp=1; //edgecount[n->first];
    \n-
    930 ++adjwp;
    \n-
    931#endif
    \n-
    932 }
    \n-
    933 assert(isValidGraph(vtxdist[rank+1]-vtxdist[rank],
    \n-
    934 vtxdist[oocomm.communicator().size()],
    \n-
    935 noNeighbours, xadj, adjncy, false));
    \n-
    936
    \n-
    937 [[maybe_unused]] Metis::idx_t wgtflag=0;
    \n-
    938 Metis::idx_t numflag=0;
    \n-
    939 Metis::idx_t edgecut;
    \n-
    940#ifdef USE_WEIGHTS
    \n-
    941 wgtflag=3;
    \n-
    942#endif
    \n-
    943 Metis::real_t *tpwgts = new Metis::real_t[nparts];
    \n-
    944 for(int i=0; i<nparts; ++i)
    \n-
    945 tpwgts[i]=1.0/nparts;
    \n-
    946 MPI_Comm comm=oocomm.communicator();
    \n-
    947
    \n-
    948 Dune::dinfo<<rank<<" vtxdist: ";
    \n-
    949 print_carray(Dune::dinfo, vtxdist, oocomm.communicator().size()+1);
    \n-
    950 Dune::dinfo<<std::endl<<rank<<" xadj: ";
    \n-
    951 print_carray(Dune::dinfo, xadj, 2);
    \n-
    952 Dune::dinfo<<std::endl<<rank<<" adjncy: ";
    \n-
    953 print_carray(Dune::dinfo, adjncy, noNeighbours);
    \n-
    954
    \n-
    955#ifdef USE_WEIGHTS
    \n-
    956 Dune::dinfo<<std::endl<<rank<<" vwgt: ";
    \n-
    957 print_carray(Dune::dinfo, vwgt, 1);
    \n-
    958 Dune::dinfo<<std::endl<<rank<<" adwgt: ";
    \n-
    959 print_carray(Dune::dinfo, adjwgt, noNeighbours);
    \n-
    960#endif
    \n-
    961 Dune::dinfo<<std::endl;
    \n-
    962 oocomm.communicator().barrier();
    \n-
    963 if(verbose && oocomm.communicator().rank()==0)
    \n-
    964 std::cout<<"Creating comm graph took "<<time.elapsed()<<std::endl;
    \n-
    965 time.reset();
    \n-
    966
    \n-
    967#ifdef PARALLEL_PARTITION
    \n-
    968 Metis::real_t ubvec = 1.15;
    \n-
    969 int ncon=1;
    \n-
    970 int options[5] ={ 0,1,15,0,0};
    \n-
    971
    \n-
    972 //=======================================================
    \n-
    973 // ParMETIS_V3_PartKway
    \n-
    974 //=======================================================
    \n-
    975 ParMETIS_V3_PartKway(vtxdist, xadj, adjncy,
    \n-
    976 vwgt, adjwgt, &wgtflag,
    \n-
    977 &numflag, &ncon, &nparts, tpwgts, &ubvec, options, &edgecut, part,
    \n-
    978 &comm);
    \n-
    979 if(verbose && oocomm.communicator().rank()==0)
    \n-
    980 std::cout<<"ParMETIS took "<<time.elapsed()<<std::endl;
    \n-
    981 time.reset();
    \n-
    982#else
    \n-
    983 Timer time1;
    \n-
    984 std::size_t gnoedges=0;
    \n-
    985 int* noedges = 0;
    \n-
    986 noedges = new int[oocomm.communicator().size()];
    \n-
    987 Dune::dverb<<"noNeighbours: "<<noNeighbours<<std::endl;
    \n-
    988 // gather number of edges for each vertex.
    \n-
    989 MPI_Allgather(&noNeighbours,1,MPI_INT,noedges,1, MPI_INT,oocomm.communicator());
    \n-
    990
    \n-
    991 if(verbose && oocomm.communicator().rank()==0)
    \n-
    992 std::cout<<"Gathering noedges took "<<time1.elapsed()<<std::endl;
    \n-
    993 time1.reset();
    \n-
    994
    \n-
    995 Metis::idx_t noVertices = vtxdist[oocomm.communicator().size()];
    \n-
    996 Metis::idx_t *gxadj = 0;
    \n-
    997 Metis::idx_t *gvwgt = 0;
    \n-
    998 Metis::idx_t *gadjncy = 0;
    \n-
    999 Metis::idx_t *gadjwgt = 0;
    \n-
    1000 Metis::idx_t *gpart = 0;
    \n-
    1001 int* displ = 0;
    \n-
    1002 int* noxs = 0;
    \n-
    1003 int* xdispl = 0; // displacement for xadj
    \n-
    1004 int* novs = 0;
    \n-
    1005 int* vdispl=0; // real vertex displacement
    \n-
    1006#ifdef USE_WEIGHTS
    \n-
    1007 std::size_t localNoVtx=vtxdist[rank+1]-vtxdist[rank];
    \n-
    1008#endif
    \n-
    1009 std::size_t gxadjlen = vtxdist[oocomm.communicator().size()]-vtxdist[0]+oocomm.communicator().size();
    \n-
    1010
    \n-
    1011 {
    \n-
    1012 Dune::dinfo<<"noedges: ";
    \n-
    1013 print_carray(Dune::dinfo, noedges, oocomm.communicator().size());
    \n-
    1014 Dune::dinfo<<std::endl;
    \n-
    1015 displ = new int[oocomm.communicator().size()];
    \n-
    1016 xdispl = new int[oocomm.communicator().size()];
    \n-
    1017 noxs = new int[oocomm.communicator().size()];
    \n-
    1018 vdispl = new int[oocomm.communicator().size()];
    \n-
    1019 novs = new int[oocomm.communicator().size()];
    \n-
    1020
    \n-
    1021 for(int i=0; i < oocomm.communicator().size(); ++i) {
    \n-
    1022 noxs[i]=vtxdist[i+1]-vtxdist[i]+1;
    \n-
    1023 novs[i]=vtxdist[i+1]-vtxdist[i];
    \n-
    1024 }
    \n-
    1025
    \n-
    1026 Metis::idx_t *so= vtxdist;
    \n-
    1027 int offset = 0;
    \n-
    1028 for(int *xcurr = xdispl, *vcurr = vdispl, *end=vdispl+oocomm.communicator().size();
    \n-
    1029 vcurr!=end; ++vcurr, ++xcurr, ++so, ++offset) {
    \n-
    1030 *vcurr = *so;
    \n-
    1031 *xcurr = offset + *so;
    \n-
    1032 }
    \n-
    1033
    \n-
    1034 int *pdispl =displ;
    \n-
    1035 int cdispl = 0;
    \n-
    1036 *pdispl = 0;
    \n-
    1037 for(int *curr=noedges, *end=noedges+oocomm.communicator().size()-1;
    \n-
    1038 curr!=end; ++curr) {
    \n-
    1039 ++pdispl; // next displacement
    \n-
    1040 cdispl += *curr; // next value
    \n-
    1041 *pdispl = cdispl;
    \n-
    1042 }
    \n-
    1043 Dune::dinfo<<"displ: ";
    \n-
    1044 print_carray(Dune::dinfo, displ, oocomm.communicator().size());
    \n-
    1045 Dune::dinfo<<std::endl;
    \n-
    1046
    \n-
    1047 // calculate global number of edges
    \n-
    1048 // It is bigger than the actual one as we habe size-1 additional end entries
    \n-
    1049 for(int *curr=noedges, *end=noedges+oocomm.communicator().size();
    \n-
    1050 curr!=end; ++curr)
    \n-
    1051 gnoedges += *curr;
    \n-
    1052
    \n-
    1053 // alocate gobal graph
    \n-
    1054 Dune::dinfo<<"gxadjlen: "<<gxadjlen<<" noVertices: "<<noVertices
    \n-
    1055 <<" gnoedges: "<<gnoedges<<std::endl;
    \n-
    1056 gxadj = new Metis::idx_t[gxadjlen];
    \n-
    1057 gpart = new Metis::idx_t[noVertices];
    \n-
    1058#ifdef USE_WEIGHTS
    \n-
    1059 gvwgt = new Metis::idx_t[noVertices];
    \n-
    1060 gadjwgt = new Metis::idx_t[gnoedges];
    \n-
    1061#endif
    \n-
    1062 gadjncy = new Metis::idx_t[gnoedges];
    \n-
    1063 }
    \n-
    1064
    \n-
    1065 if(verbose && oocomm.communicator().rank()==0)
    \n-
    1066 std::cout<<"Preparing global graph took "<<time1.elapsed()<<std::endl;
    \n-
    1067 time1.reset();
    \n-
    1068 // Communicate data
    \n-
    1069
    \n-
    1070 MPI_Allgatherv(xadj,2,MPITraits<Metis::idx_t>::getType(),
    \n-
    1071 gxadj,noxs,xdispl,MPITraits<Metis::idx_t>::getType(),
    \n-
    1072 comm);
    \n-
    1073 MPI_Allgatherv(adjncy,noNeighbours,MPITraits<Metis::idx_t>::getType(),
    \n-
    1074 gadjncy,noedges,displ,MPITraits<Metis::idx_t>::getType(),
    \n-
    1075 comm);
    \n-
    1076#ifdef USE_WEIGHTS
    \n-
    1077 MPI_Allgatherv(adjwgt,noNeighbours,MPITraits<Metis::idx_t>::getType(),
    \n-
    1078 gadjwgt,noedges,displ,MPITraits<Metis::idx_t>::getType(),
    \n-
    1079 comm);
    \n-
    1080 MPI_Allgatherv(vwgt,localNoVtx,MPITraits<Metis::idx_t>::getType(),
    \n-
    1081 gvwgt,novs,vdispl,MPITraits<Metis::idx_t>::getType(),
    \n-
    1082 comm);
    \n-
    1083#endif
    \n-
    1084 if(verbose && oocomm.communicator().rank()==0)
    \n-
    1085 std::cout<<"Gathering global graph data took "<<time1.elapsed()<<std::endl;
    \n-
    1086 time1.reset();
    \n-
    1087
    \n-
    1088 {
    \n-
    1089 // create the real gxadj array
    \n-
    1090 // i.e. shift entries and add displacements.
    \n-
    1091
    \n-
    1092 print_carray(Dune::dinfo, gxadj, gxadjlen);
    \n-
    1093
    \n-
    1094 int offset = 0;
    \n-
    1095 Metis::idx_t increment = vtxdist[1];
    \n-
    1096 Metis::idx_t *start=gxadj+1;
    \n-
    1097 for(int i=1; i<oocomm.communicator().size(); ++i) {
    \n-
    1098 offset+=1;
    \n-
    1099 int lprev = vtxdist[i]-vtxdist[i-1];
    \n-
    1100 int l = vtxdist[i+1]-vtxdist[i];
    \n-
    1101 start+=lprev;
    \n-
    1102 assert((start+l+offset)-gxadj<=static_cast<Metis::idx_t>(gxadjlen));
    \n-
    1103 increment = *(start-1);
    \n-
    1104 std::transform(start+offset, start+l+offset, start, std::bind(std::plus<Metis::idx_t>(), std::placeholders::_1, increment));
    \n-
    1105 }
    \n-
    1106 Dune::dinfo<<std::endl<<"shifted xadj:";
    \n-
    1107 print_carray(Dune::dinfo, gxadj, noVertices+1);
    \n-
    1108 Dune::dinfo<<std::endl<<" gadjncy: ";
    \n-
    1109 print_carray(Dune::dinfo, gadjncy, gnoedges);
    \n-
    1110#ifdef USE_WEIGHTS
    \n-
    1111 Dune::dinfo<<std::endl<<" gvwgt: ";
    \n-
    1112 print_carray(Dune::dinfo, gvwgt, noVertices);
    \n-
    1113 Dune::dinfo<<std::endl<<"adjwgt: ";
    \n-
    1114 print_carray(Dune::dinfo, gadjwgt, gnoedges);
    \n-
    1115 Dune::dinfo<<std::endl;
    \n-
    1116#endif
    \n-
    1117 // everything should be fine now!!!
    \n-
    1118 if(verbose && oocomm.communicator().rank()==0)
    \n-
    1119 std::cout<<"Postprocesing global graph data took "<<time1.elapsed()<<std::endl;
    \n-
    1120 time1.reset();
    \n-
    1121#ifndef NDEBUG
    \n-
    1122 assert(isValidGraph(noVertices, noVertices, gnoedges,
    \n-
    1123 gxadj, gadjncy, true));
    \n-
    1124#endif
    \n-
    1125
    \n-
    1126 if(verbose && oocomm.communicator().rank()==0)
    \n-
    1127 std::cout<<"Creating grah one 1 process took "<<time.elapsed()<<std::endl;
    \n-
    1128 time.reset();
    \n-
    1129#if METIS_VER_MAJOR >= 5
    \n-
    1130 Metis::idx_t ncon = 1;
    \n-
    1131 Metis::idx_t moptions[METIS_NOPTIONS];
    \n-
    1132 METIS_SetDefaultOptions(moptions);
    \n-
    1133 moptions[METIS_OPTION_NUMBERING] = numflag;
    \n-
    1134 METIS_PartGraphRecursive(&noVertices, &ncon, gxadj, gadjncy, gvwgt, NULL, gadjwgt,
    \n-
    1135 &nparts, NULL, NULL, moptions, &edgecut, gpart);
    \n-
    1136#else
    \n-
    1137 int options[5] = {0, 1, 1, 3, 3};
    \n-
    1138 // Call metis
    \n-
    1139 METIS_PartGraphRecursive(&noVertices, gxadj, gadjncy, gvwgt, gadjwgt, &wgtflag,
    \n-
    1140 &numflag, &nparts, options, &edgecut, gpart);
    \n-
    1141#endif
    \n-
    1142
    \n-
    1143 if(verbose && oocomm.communicator().rank()==0)
    \n-
    1144 std::cout<<"METIS took "<<time.elapsed()<<std::endl;
    \n-
    1145 time.reset();
    \n-
    1146
    \n-
    1147 Dune::dinfo<<std::endl<<"part:";
    \n-
    1148 print_carray(Dune::dinfo, gpart, noVertices);
    \n-
    1149
    \n-
    1150 delete[] gxadj;
    \n-
    1151 delete[] gadjncy;
    \n-
    1152#ifdef USE_WEIGHTS
    \n-
    1153 delete[] gvwgt;
    \n-
    1154 delete[] gadjwgt;
    \n-
    1155#endif
    \n-
    1156 }
    \n-
    1157 // Scatter result
    \n-
    1158 MPI_Scatter(gpart, 1, MPITraits<Metis::idx_t>::getType(), part, 1,
    \n-
    1159 MPITraits<Metis::idx_t>::getType(), 0, comm);
    \n-
    1160
    \n-
    1161 {
    \n-
    1162 // release remaining memory
    \n-
    1163 delete[] gpart;
    \n-
    1164 delete[] noedges;
    \n-
    1165 delete[] displ;
    \n-
    1166 }
    \n-
    1167
    \n-
    1168
    \n-
    1169#endif
    \n-
    1170 delete[] xadj;
    \n-
    1171 delete[] vtxdist;
    \n-
    1172 delete[] adjncy;
    \n-
    1173#ifdef USE_WEIGHTS
    \n-
    1174 delete[] vwgt;
    \n-
    1175 delete[] adjwgt;
    \n-
    1176#endif
    \n-
    1177 delete[] tpwgts;
    \n-
    1178 }
    \n-
    1179 }else{
    \n-
    1180 part[0]=0;
    \n-
    1181 }
    \n-
    1182#endif
    \n-
    1183 Dune::dinfo<<" repart "<<rank <<" -> "<< part[0]<<std::endl;
    \n-
    1184
    \n-
    1185 std::vector<int> realpart(mat.N(), part[0]);
    \n-
    1186 delete[] part;
    \n-
    1187
    \n-
    1188 oocomm.copyOwnerToAll(realpart, realpart);
    \n-
    1189
    \n-
    1190 if(verbose && oocomm.communicator().rank()==0)
    \n-
    1191 std::cout<<"Scattering repartitioning took "<<time.elapsed()<<std::endl;
    \n-
    1192 time.reset();
    \n-
    1193
    \n-
    1194
    \n-
    1195 oocomm.buildGlobalLookup(mat.N());
    \n-
    1196 Dune::Amg::MatrixGraph<M> graph(const_cast<M&>(mat));
    \n-
    1197 fillIndexSetHoles(graph, oocomm);
    \n-
    1198 if(verbose && oocomm.communicator().rank()==0)
    \n-
    1199 std::cout<<"Filling index set took "<<time.elapsed()<<std::endl;
    \n-
    1200 time.reset();
    \n-
    1201
    \n-
    1202 if(verbose) {
    \n-
    1203 int noNeighbours=oocomm.remoteIndices().neighbours();
    \n-
    1204 noNeighbours = oocomm.communicator().sum(noNeighbours)
    \n-
    1205 / oocomm.communicator().size();
    \n-
    1206 if(oocomm.communicator().rank()==0)
    \n-
    1207 std::cout<<"Average no neighbours was "<<noNeighbours<<std::endl;
    \n-
    1208 }
    \n-
    1209 bool ret = buildCommunication(graph, realpart, oocomm, outcomm, redistInf,
    \n-
    1210 verbose);
    \n-
    1211 if(verbose && oocomm.communicator().rank()==0)
    \n-
    1212 std::cout<<"Building index sets took "<<time.elapsed()<<std::endl;
    \n-
    1213 time.reset();
    \n-
    1214
    \n-
    1215
    \n-
    1216 return ret;
    \n-
    1217
    \n-
    1218 }
    \n-
    \n-
    1219
    \n-
    1234 template<class G, class T1, class T2>
    \n-
    \n-\n-
    1236 std::shared_ptr<Dune::OwnerOverlapCopyCommunication<T1,T2>>& outcomm,
    \n-
    1237 RedistributeInterface& redistInf,
    \n-
    1238 bool verbose=false)
    \n-
    1239 {
    \n-
    1240 Timer time;
    \n-
    1241
    \n-
    1242 MPI_Comm comm=oocomm.communicator();
    \n-
    1243 oocomm.buildGlobalLookup(graph.noVertices());
    \n-
    1244 fillIndexSetHoles(graph, oocomm);
    \n-
    1245
    \n-
    1246 if(verbose && oocomm.communicator().rank()==0)
    \n-
    1247 std::cout<<"Filling holes took "<<time.elapsed()<<std::endl;
    \n-
    1248 time.reset();
    \n-
    1249
    \n-
    1250 // simple precondition checks
    \n-
    1251
    \n-
    1252#ifdef PERF_REPART
    \n-
    1253 // Profiling variables
    \n-
    1254 double t1=0.0, t2=0.0, t3=0.0, t4=0.0, tSum=0.0;
    \n-
    1255#endif
    \n-
    1256
    \n-
    1257
    \n-
    1258 // MPI variables
    \n-
    1259 int mype = oocomm.communicator().rank();
    \n-
    1260
    \n-
    1261 assert(nparts<=static_cast<Metis::idx_t>(oocomm.communicator().size()));
    \n-
    1262
    \n-
    1263 int myDomain = -1;
    \n-
    1264
    \n-
    1265 //
    \n-
    1266 // 1) Prepare the required parameters for using ParMETIS
    \n-
    1267 // Especially the arrays that represent the graph must be
    \n-
    1268 // generated by the DUNE Graph and IndexSet input variables.
    \n-
    1269 // These are the arrays:
    \n-
    1270 // - vtxdist
    \n-
    1271 // - xadj
    \n-
    1272 // - adjncy
    \n-
    1273 //
    \n-
    1274 //
    \n-
    1275#ifdef PERF_REPART
    \n-
    1276 // reset timer for step 1)
    \n-
    1277 t1=MPI_Wtime();
    \n-
    1278#endif
    \n-
    1279
    \n-
    1280
    \n-
    1281 typedef typename Dune::OwnerOverlapCopyCommunication<T1,T2> OOComm;
    \n-
    1282 typedef typename OOComm::OwnerSet OwnerSet;
    \n-
    1283
    \n-
    1284 // Create the vtxdist array and parmetisVtxMapping.
    \n-
    1285 // Global communications are necessary
    \n-
    1286 // The parmetis global identifiers for the owner vertices.
    \n-
    1287 ParmetisDuneIndexMap indexMap(graph,oocomm);
    \n-
    1288 Metis::idx_t *part = new Metis::idx_t[indexMap.numOfOwnVtx()];
    \n-
    1289 for(std::size_t i=0; i < indexMap.numOfOwnVtx(); ++i)
    \n-
    1290 part[i]=mype;
    \n-
    1291
    \n-
    1292#if !HAVE_PARMETIS
    \n-
    1293 if(oocomm.communicator().rank()==0 && nparts>1)
    \n-
    1294 std::cerr<<"ParMETIS not activated. Will repartition to 1 domain instead of requested "
    \n-
    1295 <<nparts<<" domains."<<std::endl;
    \n-
    1296 nparts=1; // No parmetis available, fallback to agglomerating to 1 process
    \n-
    1297
    \n-
    1298#else
    \n-
    1299
    \n-
    1300 if(nparts>1) {
    \n-
    1301 // Create the xadj and adjncy arrays
    \n-
    1302 Metis::idx_t *xadj = new Metis::idx_t[indexMap.numOfOwnVtx()+1];
    \n-
    1303 Metis::idx_t *adjncy = new Metis::idx_t[graph.noEdges()];
    \n-
    1304 EdgeFunctor<G> ef(adjncy, indexMap, graph.noEdges());
    \n-
    1305 getAdjArrays<OwnerSet>(graph, oocomm.globalLookup(), xadj, ef);
    \n-
    1306
    \n-
    1307 //
    \n-
    1308 // 2) Call ParMETIS
    \n-
    1309 //
    \n-
    1310 //
    \n-
    1311 Metis::idx_t numflag=0, wgtflag=0, options[3], edgecut=0, ncon=1;
    \n-
    1312 //float *tpwgts = NULL;
    \n-
    1313 Metis::real_t *tpwgts = new Metis::real_t[nparts];
    \n-
    1314 for(int i=0; i<nparts; ++i)
    \n-
    1315 tpwgts[i]=1.0/nparts;
    \n-
    1316 Metis::real_t ubvec[1];
    \n-
    1317 options[0] = 0; // 0=default, 1=options are defined in [1]+[2]
    \n-
    1318#ifdef DEBUG_REPART
    \n-
    1319 options[1] = 3; // show info: 0=no message
    \n-
    1320#else
    \n-
    1321 options[1] = 0; // show info: 0=no message
    \n-
    1322#endif
    \n-
    1323 options[2] = 1; // random number seed, default is 15
    \n-
    1324 wgtflag = (ef.getWeights()!=NULL) ? 1 : 0;
    \n-
    1325 numflag = 0;
    \n-
    1326 edgecut = 0;
    \n-
    1327 ncon=1;
    \n-
    1328 ubvec[0]=1.05; // recommended by ParMETIS
    \n-
    1329
    \n-
    1330#ifdef DEBUG_REPART
    \n-
    1331 if (mype == 0) {
    \n-
    1332 std::cout<<std::endl;
    \n-
    1333 std::cout<<"Testing ParMETIS_V3_PartKway with options[1-2] = {"
    \n-
    1334 <<options[1]<<" "<<options[2]<<"}, Ncon: "
    \n-
    1335 <<ncon<<", Nparts: "<<nparts<<std::endl;
    \n-
    1336 }
    \n-
    1337#endif
    \n-
    1338#ifdef PERF_REPART
    \n-
    1339 // stop the time for step 1)
    \n-
    1340 t1=MPI_Wtime()-t1;
    \n-
    1341 // reset timer for step 2)
    \n-
    1342 t2=MPI_Wtime();
    \n-
    1343#endif
    \n-
    1344
    \n-
    1345 if(verbose) {
    \n-
    1346 oocomm.communicator().barrier();
    \n-
    1347 if(oocomm.communicator().rank()==0)
    \n-
    1348 std::cout<<"Preparing for parmetis took "<<time.elapsed()<<std::endl;
    \n-
    1349 }
    \n-
    1350 time.reset();
    \n-
    1351
    \n-
    1352 //=======================================================
    \n-
    1353 // ParMETIS_V3_PartKway
    \n-
    1354 //=======================================================
    \n-
    1355 ParMETIS_V3_PartKway(indexMap.vtxDist(), xadj, adjncy,
    \n-
    1356 NULL, ef.getWeights(), &wgtflag,
    \n-
    1357 &numflag, &ncon, &nparts, tpwgts, ubvec, options, &edgecut, part, &const_cast<MPI_Comm&>(comm));
    \n-
    1358
    \n-
    1359
    \n-
    1360 delete[] xadj;
    \n-
    1361 delete[] adjncy;
    \n-
    1362 delete[] tpwgts;
    \n-
    1363
    \n-
    1364 ef.free();
    \n-
    1365
    \n-
    1366#ifdef DEBUG_REPART
    \n-
    1367 if (mype == 0) {
    \n-
    1368 std::cout<<std::endl;
    \n-
    1369 std::cout<<"ParMETIS_V3_PartKway reported a cut of "<<edgecut<<std::endl;
    \n-
    1370 std::cout<<std::endl;
    \n-
    1371 }
    \n-
    1372 std::cout<<mype<<": PARMETIS-Result: ";
    \n-
    1373 for(int i=0; i < indexMap.vtxDist()[mype+1]-indexMap.vtxDist()[mype]; ++i) {
    \n-
    1374 std::cout<<part[i]<<" ";
    \n-
    1375 }
    \n-
    1376 std::cout<<std::endl;
    \n-
    1377 std::cout<<"Testing ParMETIS_V3_PartKway with options[1-2] = {"
    \n-
    1378 <<options[1]<<" "<<options[2]<<"}, Ncon: "
    \n-
    1379 <<ncon<<", Nparts: "<<nparts<<std::endl;
    \n-
    1380#endif
    \n-
    1381#ifdef PERF_REPART
    \n-
    1382 // stop the time for step 2)
    \n-
    1383 t2=MPI_Wtime()-t2;
    \n-
    1384 // reset timer for step 3)
    \n-
    1385 t3=MPI_Wtime();
    \n-
    1386#endif
    \n-
    1387
    \n-
    1388
    \n-
    1389 if(verbose) {
    \n-
    1390 oocomm.communicator().barrier();
    \n-
    1391 if(oocomm.communicator().rank()==0)
    \n-
    1392 std::cout<<"Parmetis took "<<time.elapsed()<<std::endl;
    \n-
    1393 }
    \n-
    1394 time.reset();
    \n-
    1395 }else
    \n-
    1396#endif
    \n-
    1397 {
    \n-
    1398 // Everything goes to process 0!
    \n-
    1399 for(std::size_t i=0; i<indexMap.numOfOwnVtx(); ++i)
    \n-
    1400 part[i]=0;
    \n-
    1401 }
    \n-
    1402
    \n-
    1403
    \n-
    1404 //
    \n-
    1405 // 3) Find a optimal domain based on the ParMETIS repartitioning
    \n-
    1406 // result
    \n-
    1407 //
    \n-
    1408
    \n-
    1409 std::vector<int> domainMapping(nparts);
    \n-
    1410 if(nparts>1)
    \n-
    1411 getDomain(comm, part, indexMap.numOfOwnVtx(), nparts, &myDomain, domainMapping);
    \n-
    1412 else
    \n-
    1413 domainMapping[0]=0;
    \n-
    1414
    \n-
    1415#ifdef DEBUG_REPART
    \n-
    1416 std::cout<<mype<<": myDomain: "<<myDomain<<std::endl;
    \n-
    1417 std::cout<<mype<<": DomainMapping: ";
    \n-
    1418 for(auto j : range(nparts)) {
    \n-
    1419 std::cout<<" do: "<<j<<" pe: "<<domainMapping[j]<<" ";
    \n-
    1420 }
    \n-
    1421 std::cout<<std::endl;
    \n-
    1422#endif
    \n-
    1423
    \n-
    1424 // Make a domain mapping for the indexset and translate
    \n-
    1425 //domain number to real process number
    \n-
    1426 // domainMapping is the one of parmetis, that is without
    \n-
    1427 // the overlap/copy vertices
    \n-
    1428 std::vector<int> setPartition(oocomm.indexSet().size(), -1);
    \n-
    1429
    \n-
    1430 std::size_t i=0; // parmetis index
    \n-
    1431 for(auto index = oocomm.indexSet().begin(); index != oocomm.indexSet().end(); ++index)
    \n-
    1432 if(OwnerSet::contains(index->local().attribute())) {
    \n-
    1433 setPartition[index->local()]=domainMapping[part[i++]];
    \n-
    1434 }
    \n-
    1435
    \n-
    1436 delete[] part;
    \n-
    1437 oocomm.copyOwnerToAll(setPartition, setPartition);
    \n-
    1438 // communication only needed for ALU
    \n-
    1439 // (ghosts with same global id as owners on the same process)
    \n-
    1440 if (SolverCategory::category(oocomm) ==
    \n-
    1441 static_cast<int>(SolverCategory::nonoverlapping))
    \n-
    1442 oocomm.copyCopyToAll(setPartition, setPartition);
    \n-
    1443 bool ret = buildCommunication(graph, setPartition, oocomm, outcomm, redistInf,
    \n-
    1444 verbose);
    \n-
    1445 if(verbose) {
    \n-
    1446 oocomm.communicator().barrier();
    \n-
    1447 if(oocomm.communicator().rank()==0)
    \n-
    1448 std::cout<<"Creating indexsets took "<<time.elapsed()<<std::endl;
    \n-
    1449 }
    \n-
    1450 return ret;
    \n-
    1451 }
    \n-
    \n-
    1452
    \n-
    1453
    \n-
    1454
    \n-
    1455 template<class G, class T1, class T2>
    \n-
    \n-
    1456 bool buildCommunication(const G& graph,
    \n-
    1457 std::vector<int>& setPartition, Dune::OwnerOverlapCopyCommunication<T1,T2>& oocomm,
    \n-
    1458 std::shared_ptr<Dune::OwnerOverlapCopyCommunication<T1,T2>>& outcomm,
    \n-
    1459 RedistributeInterface& redistInf,
    \n-
    1460 bool verbose)
    \n-
    1461 {
    \n-
    1462 typedef typename Dune::OwnerOverlapCopyCommunication<T1,T2> OOComm;
    \n-
    1463 typedef typename OOComm::OwnerSet OwnerSet;
    \n-
    1464
    \n-
    1465 Timer time;
    \n-
    1466
    \n-
    1467 // Build the send interface
    \n-
    1468 redistInf.buildSendInterface<OwnerSet>(setPartition, oocomm.indexSet());
    \n-
    1469
    \n-
    1470#ifdef PERF_REPART
    \n-
    1471 // stop the time for step 3)
    \n-
    1472 t3=MPI_Wtime()-t3;
    \n-
    1473 // reset timer for step 4)
    \n-
    1474 t4=MPI_Wtime();
    \n-
    1475#endif
    \n-
    1476
    \n-
    1477
    \n-
    1478 //
    \n-
    1479 // 4) Create the output IndexSet and RemoteIndices
    \n-
    1480 // 4.1) Determine the "send to" and "receive from" relation
    \n-
    1481 // according to the new partition using a MPI ring
    \n-
    1482 // communication.
    \n-
    1483 //
    \n-
    1484 // 4.2) Depends on the "send to" and "receive from" vector,
    \n-
    1485 // the processes will exchange the vertices each other
    \n-
    1486 //
    \n-
    1487 // 4.3) Create the IndexSet, RemoteIndices and the new MPI
    \n-
    1488 // communicator
    \n-
    1489 //
    \n-
    1490
    \n-
    1491 //
    \n-
    1492 // 4.1) Let's start...
    \n-
    1493 //
    \n-
    1494 int npes = oocomm.communicator().size();
    \n-
    1495 int *sendTo = 0;
    \n-
    1496 int noSendTo = 0;
    \n-
    1497 std::set<int> recvFrom;
    \n-
    1498
    \n-
    1499 // the max number of vertices is stored in the sendTo buffer,
    \n-
    1500 // not the number of vertices to send! Because the max number of Vtx
    \n-
    1501 // is used as the fixed buffer size by the MPI send/receive calls
    \n-
    1502
    \n-
    1503 int mype = oocomm.communicator().rank();
    \n-
    1504
    \n-
    1505 {
    \n-
    1506 std::set<int> tsendTo;
    \n-
    1507 for(auto i=setPartition.begin(), iend = setPartition.end(); i!=iend; ++i)
    \n-
    1508 tsendTo.insert(*i);
    \n-
    1509
    \n-
    1510 noSendTo = tsendTo.size();
    \n-
    1511 sendTo = new int[noSendTo];
    \n-
    1512 int idx=0;
    \n-
    1513 for(auto i=tsendTo.begin(); i != tsendTo.end(); ++i, ++idx)
    \n-
    1514 sendTo[idx]=*i;
    \n-
    1515 }
    \n-
    1516
    \n-
    1517 //
    \n-
    1518 int* gnoSend= new int[oocomm.communicator().size()];
    \n-
    1519 int* gsendToDispl = new int[oocomm.communicator().size()+1];
    \n-
    1520
    \n-
    1521 MPI_Allgather(&noSendTo, 1, MPI_INT, gnoSend, 1,
    \n-
    1522 MPI_INT, oocomm.communicator());
    \n-
    1523
    \n-
    1524 // calculate total receive message size
    \n-
    1525 int totalNoRecv = 0;
    \n-
    1526 for(int i=0; i<npes; ++i)
    \n-
    1527 totalNoRecv += gnoSend[i];
    \n-
    1528
    \n-
    1529 int *gsendTo = new int[totalNoRecv];
    \n-
    1530
    \n-
    1531 // calculate displacement for allgatherv
    \n-
    1532 gsendToDispl[0]=0;
    \n-
    1533 for(int i=0; i<npes; ++i)
    \n-
    1534 gsendToDispl[i+1]=gsendToDispl[i]+gnoSend[i];
    \n-
    1535
    \n-
    1536 // gather the data
    \n-
    1537 MPI_Allgatherv(sendTo, noSendTo, MPI_INT, gsendTo, gnoSend, gsendToDispl,
    \n-
    1538 MPI_INT, oocomm.communicator());
    \n-
    1539
    \n-
    1540 // Extract from which processes we will receive data
    \n-
    1541 for(int proc=0; proc < npes; ++proc)
    \n-
    1542 for(int i=gsendToDispl[proc]; i < gsendToDispl[proc+1]; ++i)
    \n-
    1543 if(gsendTo[i]==mype)
    \n-
    1544 recvFrom.insert(proc);
    \n-
    1545
    \n-
    1546 bool existentOnNextLevel = recvFrom.size()>0;
    \n-
    1547
    \n-
    1548 // Delete memory
    \n-
    1549 delete[] gnoSend;
    \n-
    1550 delete[] gsendToDispl;
    \n-
    1551 delete[] gsendTo;
    \n-
    1552
    \n-
    1553
    \n-
    1554#ifdef DEBUG_REPART
    \n-
    1555 if(recvFrom.size()) {
    \n-
    1556 std::cout<<mype<<": recvFrom: ";
    \n-
    1557 for(auto i=recvFrom.begin(); i!= recvFrom.end(); ++i) {
    \n-
    1558 std::cout<<*i<<" ";
    \n-
    1559 }
    \n-
    1560 }
    \n-
    1561
    \n-
    1562 std::cout<<std::endl<<std::endl;
    \n-
    1563 std::cout<<mype<<": sendTo: ";
    \n-
    1564 for(int i=0; i<noSendTo; i++) {
    \n-
    1565 std::cout<<sendTo[i]<<" ";
    \n-
    1566 }
    \n-
    1567 std::cout<<std::endl<<std::endl;
    \n-
    1568#endif
    \n-
    1569
    \n-
    1570 if(verbose)
    \n-
    1571 if(oocomm.communicator().rank()==0)
    \n-
    1572 std::cout<<" Communicating the receive information took "<<
    \n-
    1573 time.elapsed()<<std::endl;
    \n-
    1574 time.reset();
    \n-
    1575
    \n-
    1576 //
    \n-
    1577 // 4.2) Start the communication
    \n-
    1578 //
    \n-
    1579
    \n-
    1580 // Get all the owner and overlap vertices for myself ans save
    \n-
    1581 // it in the vectors myOwnerVec and myOverlapVec.
    \n-
    1582 // The received vertices from the other processes are simple
    \n-
    1583 // added to these vector.
    \n-
    1584 //
    \n-
    1585
    \n-
    1586
    \n-
    1587 typedef typename OOComm::ParallelIndexSet::GlobalIndex GI;
    \n-
    1588 typedef std::vector<GI> GlobalVector;
    \n-
    1589 std::vector<std::pair<GI,int> > myOwnerVec;
    \n-
    1590 std::set<GI> myOverlapSet;
    \n-
    1591 GlobalVector sendOwnerVec;
    \n-
    1592 std::set<GI> sendOverlapSet;
    \n-
    1593 std::set<int> myNeighbors;
    \n-
    1594
    \n-
    1595 // getOwnerOverlapVec<OwnerSet>(graph, setPartition, oocomm.globalLookup(),
    \n-
    1596 // mype, mype, myOwnerVec, myOverlapSet, redistInf, myNeighbors);
    \n-
    1597
    \n-
    1598 char **sendBuffers=new char*[noSendTo];
    \n-
    1599 MPI_Request *requests = new MPI_Request[noSendTo];
    \n-
    1600
    \n-
    1601 // Create all messages to be sent
    \n-
    1602 for(int i=0; i < noSendTo; ++i) {
    \n-
    1603 // clear the vector for sending
    \n-
    1604 sendOwnerVec.clear();
    \n-
    1605 sendOverlapSet.clear();
    \n-
    1606 // get all owner and overlap vertices for process j and save these
    \n-
    1607 // in the vectors sendOwnerVec and sendOverlapSet
    \n-
    1608 std::set<int> neighbors;
    \n-
    1609 getOwnerOverlapVec<OwnerSet>(graph, setPartition, oocomm.globalLookup(),
    \n-
    1610 mype, sendTo[i], sendOwnerVec, sendOverlapSet, redistInf,
    \n-
    1611 neighbors);
    \n-
    1612 // +2, we need 2 integer more for the length of each part
    \n-
    1613 // (owner/overlap) of the array
    \n-
    1614 int buffersize=0;
    \n-
    1615 int tsize;
    \n-
    1616 MPI_Pack_size(1, MPITraits<std::size_t>::getType(), oocomm.communicator(), &buffersize);
    \n-
    1617 MPI_Pack_size(sendOwnerVec.size(), MPITraits<GI>::getType(), oocomm.communicator(), &tsize);
    \n-
    1618 buffersize +=tsize;
    \n-
    1619 MPI_Pack_size(1, MPITraits<std::size_t>::getType(), oocomm.communicator(), &tsize);
    \n-
    1620 buffersize +=tsize;
    \n-
    1621 MPI_Pack_size(sendOverlapSet.size(), MPITraits<GI>::getType(), oocomm.communicator(), &tsize);
    \n-
    1622 buffersize += tsize;
    \n-
    1623 MPI_Pack_size(1, MPITraits<std::size_t>::getType(), oocomm.communicator(), &tsize);
    \n-
    1624 buffersize += tsize;
    \n-
    1625 MPI_Pack_size(neighbors.size(), MPI_INT, oocomm.communicator(), &tsize);
    \n-
    1626 buffersize += tsize;
    \n-
    1627
    \n-
    1628 sendBuffers[i] = new char[buffersize];
    \n-
    1629
    \n-
    1630#ifdef DEBUG_REPART
    \n-
    1631 std::cout<<mype<<" sending "<<sendOwnerVec.size()<<" owner and "<<
    \n-
    1632 sendOverlapSet.size()<<" overlap to "<<sendTo[i]<<" buffersize="<<buffersize<<std::endl;
    \n-
    1633#endif
    \n-
    1634 createSendBuf(sendOwnerVec, sendOverlapSet, neighbors, sendBuffers[i], buffersize, oocomm.communicator());
    \n-
    1635 MPI_Issend(sendBuffers[i], buffersize, MPI_PACKED, sendTo[i], 99, oocomm.communicator(), requests+i);
    \n-
    1636 }
    \n-
    1637
    \n-
    1638 if(verbose) {
    \n-
    1639 oocomm.communicator().barrier();
    \n-
    1640 if(oocomm.communicator().rank()==0)
    \n-
    1641 std::cout<<" Creating sends took "<<
    \n-
    1642 time.elapsed()<<std::endl;
    \n-
    1643 }
    \n-
    1644 time.reset();
    \n-
    1645
    \n-
    1646 // Receive Messages
    \n-
    1647 int noRecv = recvFrom.size();
    \n-
    1648 int oldbuffersize=0;
    \n-
    1649 char* recvBuf = 0;
    \n-
    1650 while(noRecv>0) {
    \n-
    1651 // probe for an incoming message
    \n-
    1652 MPI_Status stat;
    \n-
    1653 MPI_Probe(MPI_ANY_SOURCE, 99, oocomm.communicator(), &stat);
    \n-
    1654 int buffersize;
    \n-
    1655 MPI_Get_count(&stat, MPI_PACKED, &buffersize);
    \n-
    1656
    \n-
    1657 if(oldbuffersize<buffersize) {
    \n-
    1658 // buffer too small, reallocate
    \n-
    1659 delete[] recvBuf;
    \n-
    1660 recvBuf = new char[buffersize];
    \n-
    1661 oldbuffersize = buffersize;
    \n-
    1662 }
    \n-
    1663 MPI_Recv(recvBuf, buffersize, MPI_PACKED, stat.MPI_SOURCE, 99, oocomm.communicator(), &stat);
    \n-
    1664 saveRecvBuf(recvBuf, buffersize, myOwnerVec, myOverlapSet, myNeighbors, redistInf,
    \n-
    1665 stat.MPI_SOURCE, oocomm.communicator());
    \n-
    1666 --noRecv;
    \n-
    1667 }
    \n-
    1668
    \n-
    1669 if(recvBuf)
    \n-
    1670 delete[] recvBuf;
    \n-
    1671
    \n-
    1672 time.reset();
    \n-
    1673 // Wait for sending messages to complete
    \n-
    1674 MPI_Status *statuses = new MPI_Status[noSendTo];
    \n-
    1675 int send = MPI_Waitall(noSendTo, requests, statuses);
    \n-
    1676
    \n-
    1677 // check for errors
    \n-
    1678 if(send==MPI_ERR_IN_STATUS) {
    \n-
    1679 std::cerr<<mype<<": Error in sending :"<<std::endl;
    \n-
    1680 // Search for the error
    \n-
    1681 for(int i=0; i< noSendTo; i++)
    \n-
    1682 if(statuses[i].MPI_ERROR!=MPI_SUCCESS) {
    \n-
    1683 char message[300];
    \n-
    1684 int messageLength;
    \n-
    1685 MPI_Error_string(statuses[i].MPI_ERROR, message, &messageLength);
    \n-
    1686 std::cerr<<" source="<<statuses[i].MPI_SOURCE<<" message: ";
    \n-
    1687 for(int j = 0; j < messageLength; j++)
    \n-
    1688 std::cout<<message[j];
    \n-
    1689 }
    \n-
    1690 std::cerr<<std::endl;
    \n-
    1691 }
    \n-
    1692
    \n-
    1693 if(verbose) {
    \n-
    1694 oocomm.communicator().barrier();
    \n-
    1695 if(oocomm.communicator().rank()==0)
    \n-
    1696 std::cout<<" Receiving and saving took "<<
    \n-
    1697 time.elapsed()<<std::endl;
    \n-
    1698 }
    \n-
    1699 time.reset();
    \n-
    1700
    \n-
    1701 for(int i=0; i < noSendTo; ++i)
    \n-
    1702 delete[] sendBuffers[i];
    \n-
    1703
    \n-
    1704 delete[] sendBuffers;
    \n-
    1705 delete[] statuses;
    \n-
    1706 delete[] requests;
    \n-
    1707
    \n-
    1708 redistInf.setCommunicator(oocomm.communicator());
    \n-
    1709
    \n-
    1710 //
    \n-
    1711 // 4.2) Create the IndexSet etc.
    \n-
    1712 //
    \n-
    1713
    \n-
    1714 // build the new outputIndexSet
    \n-
    1715
    \n-
    1716
    \n-
    1717 int color=0;
    \n-
    1718
    \n-
    1719 if (!existentOnNextLevel) {
    \n-
    1720 // this process is not used anymore
    \n-
    1721 color= MPI_UNDEFINED;
    \n-
    1722 }
    \n-
    1723 MPI_Comm outputComm;
    \n-
    1724
    \n-
    1725 MPI_Comm_split(oocomm.communicator(), color, oocomm.communicator().rank(), &outputComm);
    \n-
    1726 outcomm = std::make_shared<OOComm>(outputComm,SolverCategory::category(oocomm),true);
    \n-
    1727
    \n-
    1728 // translate neighbor ranks.
    \n-
    1729 int newrank=outcomm->communicator().rank();
    \n-
    1730 int *newranks=new int[oocomm.communicator().size()];
    \n-
    1731 std::vector<int> tneighbors;
    \n-
    1732 tneighbors.reserve(myNeighbors.size());
    \n-
    1733
    \n-
    1734 typename OOComm::ParallelIndexSet& outputIndexSet = outcomm->indexSet();
    \n-
    1735
    \n-
    1736 MPI_Allgather(&newrank, 1, MPI_INT, newranks, 1,
    \n-
    1737 MPI_INT, oocomm.communicator());
    \n-
    1738
    \n-
    1739#ifdef DEBUG_REPART
    \n-
    1740 std::cout<<oocomm.communicator().rank()<<" ";
    \n-
    1741 for(auto i=myNeighbors.begin(), end=myNeighbors.end();
    \n-
    1742 i!=end; ++i) {
    \n-
    1743 assert(newranks[*i]>=0);
    \n-
    1744 std::cout<<*i<<"->"<<newranks[*i]<<" ";
    \n-
    1745 tneighbors.push_back(newranks[*i]);
    \n-
    1746 }
    \n-
    1747 std::cout<<std::endl;
    \n-
    1748#else
    \n-
    1749 for(auto i=myNeighbors.begin(), end=myNeighbors.end();
    \n-
    1750 i!=end; ++i) {
    \n-
    1751 tneighbors.push_back(newranks[*i]);
    \n-
    1752 }
    \n-
    1753#endif
    \n-
    1754 delete[] newranks;
    \n-
    1755 myNeighbors.clear();
    \n-
    1756
    \n-
    1757 if(verbose) {
    \n-
    1758 oocomm.communicator().barrier();
    \n-
    1759 if(oocomm.communicator().rank()==0)
    \n-
    1760 std::cout<<" Calculating new neighbours ("<<tneighbors.size()<<") took "<<
    \n-
    1761 time.elapsed()<<std::endl;
    \n-
    1762 }
    \n-
    1763 time.reset();
    \n-
    1764
    \n-
    1765
    \n-
    1766 outputIndexSet.beginResize();
    \n-
    1767 // 1) add the owner vertices
    \n-
    1768 // Sort the owners
    \n-
    1769 std::sort(myOwnerVec.begin(), myOwnerVec.end(), SortFirst());
    \n-
    1770 // The owners are sorted according to there global index
    \n-
    1771 // Therefore the entries of ownerVec are the same as the
    \n-
    1772 // ones in the resulting index set.
    \n-
    1773 int i=0;
    \n-
    1774 using LocalIndexT = typename OOComm::ParallelIndexSet::LocalIndex;
    \n-
    1775 for(auto g=myOwnerVec.begin(), end =myOwnerVec.end(); g!=end; ++g, ++i ) {
    \n-
    1776 outputIndexSet.add(g->first,LocalIndexT(i, OwnerOverlapCopyAttributeSet::owner, true));
    \n-
    1777 redistInf.addReceiveIndex(g->second, i);
    \n-
    1778 }
    \n-
    1779
    \n-
    1780 if(verbose) {
    \n-
    1781 oocomm.communicator().barrier();
    \n-
    1782 if(oocomm.communicator().rank()==0)
    \n-
    1783 std::cout<<" Adding owner indices took "<<
    \n-
    1784 time.elapsed()<<std::endl;
    \n-
    1785 }
    \n-
    1786 time.reset();
    \n-
    1787
    \n-
    1788
    \n-
    1789 // After all the vertices are received, the vectors must
    \n-
    1790 // be "merged" together to create the final vectors.
    \n-
    1791 // Because some vertices that are sent as overlap could now
    \n-
    1792 // already included as owner vertiecs in the new partition
    \n-
    1793 mergeVec(myOwnerVec, myOverlapSet);
    \n-
    1794
    \n-
    1795 // Trick to free memory
    \n-
    1796 myOwnerVec.clear();
    \n-
    1797 myOwnerVec.swap(myOwnerVec);
    \n-
    1798
    \n-
    1799 if(verbose) {
    \n-
    1800 oocomm.communicator().barrier();
    \n-
    1801 if(oocomm.communicator().rank()==0)
    \n-
    1802 std::cout<<" Merging indices took "<<
    \n-
    1803 time.elapsed()<<std::endl;
    \n-
    1804 }
    \n-
    1805 time.reset();
    \n-
    1806
    \n-
    1807
    \n-
    1808 // 2) add the overlap vertices
    \n-
    1809 for(auto g=myOverlapSet.begin(), end=myOverlapSet.end(); g!=end; ++g, i++) {
    \n-
    1810 outputIndexSet.add(*g,LocalIndexT(i, OwnerOverlapCopyAttributeSet::copy, true));
    \n-
    1811 }
    \n-
    1812 myOverlapSet.clear();
    \n-
    1813 outputIndexSet.endResize();
    \n-
    1814
    \n-
    1815#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1816 int numOfOwnVtx =0;
    \n-
    1817 auto end = outputIndexSet.end();
    \n-
    1818 for(auto index = outputIndexSet.begin(); index != end; ++index) {
    \n-
    1819 if (OwnerSet::contains(index->local().attribute())) {
    \n-
    1820 numOfOwnVtx++;
    \n-
    1821 }
    \n-
    1822 }
    \n-
    1823 numOfOwnVtx = oocomm.communicator().sum(numOfOwnVtx);
    \n-
    1824 // if(numOfOwnVtx!=indexMap.globalOwnerVertices)
    \n-
    1825 // {
    \n-
    1826 // std::cerr<<numOfOwnVtx<<"!="<<indexMap.globalOwnerVertices<<" owners missing or additional ones!"<<std::endl;
    \n-
    1827 // DUNE_THROW(ISTLError, numOfOwnVtx<<"!="<<indexMap.globalOwnerVertices<<" owners missing or additional ones"
    \n-
    1828 // <<" during repartitioning.");
    \n-
    1829 // }
    \n-
    1830 std::is_sorted(outputIndexSet.begin(), outputIndexSet.end(),
    \n-
    1831 [](const auto& v1, const auto& v2){ return v1.global() < v2.global();});
    \n-
    1832#endif
    \n-
    1833 if(verbose) {
    \n-
    1834 oocomm.communicator().barrier();
    \n-
    1835 if(oocomm.communicator().rank()==0)
    \n-
    1836 std::cout<<" Adding overlap indices took "<<
    \n-
    1837 time.elapsed()<<std::endl;
    \n-
    1838 }
    \n-
    1839 time.reset();
    \n-
    1840
    \n-
    1841
    \n-
    1842 if(color != MPI_UNDEFINED) {
    \n-
    1843 outcomm->remoteIndices().setNeighbours(tneighbors);
    \n-
    1844 outcomm->remoteIndices().template rebuild<true>();
    \n-
    1845
    \n-
    1846 }
    \n-
    1847
    \n-
    1848 // release the memory
    \n-
    1849 delete[] sendTo;
    \n-
    1850
    \n-
    1851 if(verbose) {
    \n-
    1852 oocomm.communicator().barrier();
    \n-
    1853 if(oocomm.communicator().rank()==0)
    \n-
    1854 std::cout<<" Storing indexsets took "<<
    \n-
    1855 time.elapsed()<<std::endl;
    \n-
    1856 }
    \n-
    1857
    \n-
    1858#ifdef PERF_REPART
    \n-
    1859 // stop the time for step 4) and print the results
    \n-
    1860 t4=MPI_Wtime()-t4;
    \n-
    1861 tSum = t1 + t2 + t3 + t4;
    \n-
    1862 std::cout<<std::endl
    \n-
    1863 <<mype<<": WTime for step 1): "<<t1
    \n-
    1864 <<" 2): "<<t2
    \n-
    1865 <<" 3): "<<t3
    \n-
    1866 <<" 4): "<<t4
    \n-
    1867 <<" total: "<<tSum
    \n-
    1868 <<std::endl;
    \n-
    1869#endif
    \n-
    1870
    \n-
    1871 return color!=MPI_UNDEFINED;
    \n-
    1872
    \n-
    1873 }
    \n-
    \n-
    1874#else
    \n-
    1875 template<class G, class P,class T1, class T2, class R>
    \n-
    1876 bool graphRepartition(const G& graph, P& oocomm, int nparts,
    \n-
    1877 std::shared_ptr<P>& outcomm,
    \n-
    1878 R& redistInf,
    \n-
    1879 bool v=false)
    \n-
    1880 {
    \n-
    1881 if(nparts!=oocomm.size())
    \n-
    1882 DUNE_THROW(NotImplemented, "only available for MPI programs");
    \n-
    1883 }
    \n-
    1884
    \n-
    1885
    \n-
    1886 template<class G, class P,class T1, class T2, class R>
    \n-
    1887 bool commGraphRepartition(const G& graph, P& oocomm, int nparts,
    \n-
    1888 std::shared_ptr<P>& outcomm,
    \n-
    1889 R& redistInf,
    \n-
    1890 bool v=false)
    \n-
    1891 {
    \n-
    1892 if(nparts!=oocomm.size())
    \n-
    1893 DUNE_THROW(NotImplemented, "only available for MPI programs");
    \n-
    1894 }
    \n-
    1895#endif // HAVE_MPI
    \n-
    1896} // end of namespace Dune
    \n-
    1897#endif
    \n-
    Provides classes for building the matrix graph.
    \n-
    int globalOwnerVertices
    Definition repartition.hh:175
    \n-
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n-
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    118 virtual const M& getmat () const = 0;
    \n+
    119
    \n+\n+
    122 };
    \n+
    \n+
    123
    \n+
    124
    \n+
    125
    \n+
    126 //=====================================================================
    \n+
    127 // Implementation for ISTL-matrix based operator
    \n+
    128 //=====================================================================
    \n+
    129
    \n+
    135 template<class M, class X, class Y>
    \n+
    \n+\n+
    137 {
    \n+
    138 public:
    \n+
    140 typedef M matrix_type;
    \n+
    141 typedef X domain_type;
    \n+
    142 typedef Y range_type;
    \n+
    143 typedef typename X::field_type field_type;
    \n+
    144
    \n+
    146 explicit MatrixAdapter (const M& A) : _A_(stackobject_to_shared_ptr(A)) {}
    \n+
    147
    \n+
    149 explicit MatrixAdapter (std::shared_ptr<const M> A) : _A_(A) {}
    \n+
    150
    \n+
    \n+
    152 void apply (const X& x, Y& y) const override
    \n+
    153 {
    \n+
    154 _A_->mv(x,y);
    \n+
    155 }
    \n+
    \n+
    156
    \n+
    \n+
    158 void applyscaleadd (field_type alpha, const X& x, Y& y) const override
    \n+
    159 {
    \n+
    160 _A_->usmv(alpha,x,y);
    \n+
    161 }
    \n+
    \n+
    162
    \n+
    \n+
    164 const M& getmat () const override
    \n+
    165 {
    \n+
    166 return *_A_;
    \n+
    167 }
    \n+
    \n+
    168
    \n+
    \n+\n+
    171 {
    \n+\n+
    173 }
    \n+
    \n+
    174
    \n+
    175 private:
    \n+
    176 const std::shared_ptr<const M> _A_;
    \n+
    177 };
    \n+
    \n+
    178
    \n+
    181} // end namespace
    \n+
    182
    \n+
    183#endif
    \n+\n
    Definition allocator.hh:11
    \n-
    bool buildCommunication(const G &graph, std::vector< int > &realparts, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm, std::shared_ptr< Dune::OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface &redistInf, bool verbose=false)
    Definition repartition.hh:1456
    \n-
    void fillIndexSetHoles(const G &graph, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm)
    Fills the holes in an index set.
    Definition repartition.hh:83
    \n-
    bool commGraphRepartition(const M &mat, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface &redistInf, bool verbose=false)
    Definition repartition.hh:829
    \n-
    void print_carray(S &os, T *array, std::size_t l)
    Definition repartition.hh:778
    \n-
    bool isValidGraph(std::size_t noVtx, std::size_t gnoVtx, S noEdges, T *xadj, T *adjncy, bool checkSymmetry)
    Definition repartition.hh:785
    \n-
    bool graphRepartition(const G &graph, Dune::OwnerOverlapCopyCommunication< T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface &redistInf, bool verbose=false)
    execute a graph repartition for a giving graph and indexset.
    Definition repartition.hh:1235
    \n-
    float real_t
    Definition repartition.hh:53
    \n-
    std::size_t idx_t
    Definition repartition.hh:63
    \n-
    @ owner
    Definition owneroverlapcopy.hh:61
    \n-
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n-
    const GlobalLookupIndexSet & globalLookup() const
    Definition owneroverlapcopy.hh:526
    \n-
    const ParallelIndexSet & indexSet() const
    Get the underlying parallel index set.
    Definition owneroverlapcopy.hh:462
    \n-
    void copyCopyToAll(const T &source, T &dest) const
    Communicate values from copy data points to all other data points.
    Definition owneroverlapcopy.hh:328
    \n-
    Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet
    The type of the reverse lookup of indices.
    Definition owneroverlapcopy.hh:456
    \n-
    void buildGlobalLookup()
    Definition owneroverlapcopy.hh:495
    \n-
    const Communication< MPI_Comm > & communicator() const
    Definition owneroverlapcopy.hh:299
    \n-
    void copyOwnerToAll(const T &source, T &dest) const
    Communicate values from owner data points to all other data points.
    Definition owneroverlapcopy.hh:311
    \n-
    const RemoteIndices & remoteIndices() const
    Get the underlying remote indices.
    Definition owneroverlapcopy.hh:471
    \n-
    void freeGlobalLookup()
    Definition owneroverlapcopy.hh:520
    \n-
    Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet
    The type of the parallel index set.
    Definition owneroverlapcopy.hh:449
    \n-
    The (undirected) graph of a matrix.
    Definition graph.hh:51
    \n-
    Definition repartition.hh:260
    \n-
    void reserveSpaceForReceiveInterface(int proc, int size)
    Definition repartition.hh:284
    \n-
    void buildReceiveInterface(std::vector< std::pair< TG, int > > &indices)
    Definition repartition.hh:293
    \n-
    ~RedistributeInterface()
    Definition repartition.hh:301
    \n-
    void setCommunicator(MPI_Comm comm)
    Definition repartition.hh:261
    \n-
    void buildSendInterface(const std::vector< int > &toPart, const IS &idxset)
    Definition repartition.hh:266
    \n-
    void addReceiveIndex(int proc, std::size_t idx)
    Definition repartition.hh:288
    \n+
    A linear operator.
    Definition operators.hh:67
    \n+
    virtual ~LinearOperator()
    every abstract base class has a virtual destructor
    Definition operators.hh:86
    \n+
    X::field_type field_type
    The field type of the operator.
    Definition operators.hh:74
    \n+
    virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const =0
    apply operator to x, scale and add:
    \n+
    virtual SolverCategory::Category category() const =0
    Category of the linear operator (see SolverCategory::Category)
    \n+
    Y range_type
    The type of the range of the operator.
    Definition operators.hh:72
    \n+
    virtual void apply(const X &x, Y &y) const =0
    apply operator to x: The input vector is consistent and the output must also be consistent on the in...
    \n+
    X domain_type
    The type of the domain of the operator.
    Definition operators.hh:70
    \n+
    A linear operator exporting itself in matrix form.
    Definition operators.hh:109
    \n+
    virtual const M & getmat() const =0
    get matrix via *
    \n+
    X domain_type
    Definition operators.hh:113
    \n+
    X::field_type field_type
    Definition operators.hh:115
    \n+
    Y range_type
    Definition operators.hh:114
    \n+
    M matrix_type
    export types, usually they come from the derived class
    Definition operators.hh:112
    \n+
    virtual ~AssembledLinearOperator()
    every abstract base class has a virtual destructor
    Definition operators.hh:121
    \n+
    Adapter to turn a matrix into a linear operator.
    Definition operators.hh:137
    \n+
    MatrixAdapter(std::shared_ptr< const M > A)
    constructor: store an std::shared_ptr to a matrix
    Definition operators.hh:149
    \n+
    MatrixAdapter(const M &A)
    constructor: just store a reference to a matrix
    Definition operators.hh:146
    \n+
    void applyscaleadd(field_type alpha, const X &x, Y &y) const override
    apply operator to x, scale and add:
    Definition operators.hh:158
    \n+
    Y range_type
    Definition operators.hh:142
    \n+
    X domain_type
    Definition operators.hh:141
    \n+
    X::field_type field_type
    Definition operators.hh:143
    \n+
    const M & getmat() const override
    get matrix via *
    Definition operators.hh:164
    \n+
    SolverCategory::Category category() const override
    Category of the solver (see SolverCategory::Category)
    Definition operators.hh:170
    \n+
    void apply(const X &x, Y &y) const override
    apply operator to x:
    Definition operators.hh:152
    \n+
    M matrix_type
    export types
    Definition operators.hh:140
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1986 +1,223 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-repartition.hh\n+operators.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_REPARTITION_HH\n-6#define DUNE_ISTL_REPARTITION_HH\n+5#ifndef DUNE_ISTL_OPERATORS_HH\n+6#define DUNE_ISTL_OPERATORS_HH\n 7\n-8#include \n-9#include \n-10#include \n-11#include \n-12\n-13#if HAVE_PARMETIS\n-14// Explicitly use C linkage as scotch does not extern \"C\" in its headers.\n-15// Works because ParMETIS/METIS checks whether compiler is C++ and otherwise\n-16// does not use extern \"C\". Therfore no nested extern \"C\" will be created\n-17extern \"C\"\n-18{\n-19#include \n-20}\n-21#endif\n-22\n-23#include \n-24#include \n-25#include \n-26#include \n-27#include \n-28#include \n-29#include \n-30#include \n-31#include \n-32\n-33#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-34#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh>\n-35\n-44namespace _\bD_\bu_\bn_\be\n-45{\n-_\b4_\b6 namespace Metis\n-47 {\n-48 // Explicitly specify a real_t and idx_t for older (Par)METIS versions that\n-do not\n-49 // provide these typedefs\n-50#if HAVE_PARMETIS && defined(REALTYPEWIDTH)\n-51 using _\br_\be_\ba_\bl_\b__\bt = _\b:_\b:_\br_\be_\ba_\bl_\b__\bt;\n-52#else\n-_\b5_\b3 using _\br_\be_\ba_\bl_\b__\bt = float;\n-54#endif\n-55\n-56#if HAVE_PARMETIS && defined(IDXTYPEWIDTH)\n-57 using _\bi_\bd_\bx_\b__\bt = _\b:_\b:_\bi_\bd_\bx_\b__\bt;\n-58#elif HAVE_PARMETIS && defined(HAVE_SCOTCH_NUM_TYPE)\n-59 using _\bi_\bd_\bx_\b__\bt = SCOTCH_Num;\n-60#elif HAVE_PARMETIS\n-61 using _\bi_\bd_\bx_\b__\bt = int;\n-62#else\n-_\b6_\b3 using _\bi_\bd_\bx_\b__\bt = std::size_t;\n-64#endif\n-65 }\n-66\n-67\n-68#if HAVE_MPI\n-82 template\n-_\b8_\b3 void _\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs(const G& graph, _\bD_\bu_\bn_\be_\b:_\b:\n-_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm)\n-84 {\n-85 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:\n-_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt IndexSet;\n-86 typedef typename IndexSet::LocalIndex::Attribute Attribute;\n+8#include \n+9#include \n+10#include \n+11#include \n+12#include \n+13\n+14#include \n+15#include \n+16\n+17#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n+18\n+19\n+20namespace _\bD_\bu_\bn_\be {\n+21\n+44 //=====================================================================\n+45 // Abstract operator interface\n+46 //=====================================================================\n+47\n+48\n+66 template\n+_\b6_\b7 class _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br {\n+68 public:\n+_\b7_\b0 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b7_\b2 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b7_\b4 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+75\n+_\b8_\b0 virtual void _\ba_\bp_\bp_\bl_\by (const X& x, Y& y) const = 0;\n+81\n+_\b8_\b3 virtual void _\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd (_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha, const X& x, Y& y) const = 0;\n+84\n+_\b8_\b6 virtual _\b~_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br () {}\n 87\n-88 IndexSet& indexSet = oocomm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt();\n-89 const typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>_\b:_\b:\n-_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& lookup =oocomm._\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp();\n-90\n-91 std::size_t sum=0, needed = graph.noVertices()-indexSet.size();\n-92 std::vector neededall(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size(), 0);\n-93\n-94 MPI_Allgather(&needed, 1, MPITraits::getType() , &(neededall\n-[0]), 1, MPITraits::getType(), oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br());\n-95 for(int i=0; iglobal());\n-107\n-108 //Process p creates global indices consecutively\n-109 //starting atmaxgi+\\sum_{i=1}^p neededall[i]\n-110 // All created indices are owned by the process\n-111 maxgi=oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().max(maxgi);\n-112 ++maxgi; //Sart with the next free index.\n-113\n-114 for(int i=0; i\n+_\b1_\b0_\b9 class _\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br : public _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br {\n+110 public:\n+_\b1_\b1_\b2 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b1_\b1_\b3 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b1_\b1_\b4 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b1_\b1_\b5 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n 116\n-117 // Store the global index information for repairing the remote index\n-information\n-118 std::map > > globalIndices;\n-119 storeGlobalIndicesOfRemoteIndices(globalIndices, oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs());\n-120 indexSet.beginResize();\n-121\n-122 for(auto vertex = graph.begin(), vend=graph.end(); vertex != vend;\n-++vertex) {\n-123 const typename IndexSet::IndexPair* pair=lookup.pair(*vertex);\n-124 if(pair==0) {\n-125 // No index yet, add new one\n-126 indexSet.add(maxgi, typename IndexSet::LocalIndex(*vertex,\n-_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br, false));\n-127 ++maxgi;\n-128 }\n-129 }\n-130\n-131 indexSet.endResize();\n-132\n-133 repairLocalIndexPointers(globalIndices, oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs(), indexSet);\n-134\n-135 oocomm._\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp();\n-136 oocomm._\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp();\n-137#ifdef DEBUG_REPART\n-138 std::cout<<\"Holes are filled!\"<\n-150 ParmetisDuneIndexMap(const Graph& graph, const OOComm& com);\n-151 int toParmetis(int i) const\n-152 {\n-153 return duneToParmetis[i];\n-154 }\n-155 int toLocalParmetis(int i) const\n-156 {\n-157 return duneToParmetis[i]-base_;\n-158 }\n-159 int operator[](int i) const\n-160 {\n-161 return duneToParmetis[i];\n-162 }\n-163 int toDune(int i) const\n-164 {\n-165 return parmetisToDune[i];\n-166 }\n-167 std::vector::size_type numOfOwnVtx() const\n-168 {\n-169 return parmetisToDune.size();\n-170 }\n-171 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt* vtxDist()\n-172 {\n-173 return &vtxDist_[0];\n-174 }\n-_\b1_\b7_\b5 int _\bg_\bl_\bo_\bb_\ba_\bl_\bO_\bw_\bn_\be_\br_\bV_\be_\br_\bt_\bi_\bc_\be_\bs;\n-176 private:\n-177 int base_;\n-178 std::vector duneToParmetis;\n-179 std::vector parmetisToDune;\n-180 // range of vertices for processor i: vtxdist[i] to vtxdist[i+1] (parmetis\n-global)\n-181 std::vector vtxDist_;\n-182 };\n-183\n-184 template\n-185 ParmetisDuneIndexMap::ParmetisDuneIndexMap(const G& graph, const OOComm&\n-oocomm)\n-186 : duneToParmetis(graph.noVertices(), -1), vtxDist_(oocomm.communicator\n-().size()+1)\n-187 {\n-188 int npes=oocomm.communicator().size(), mype=oocomm.communicator().rank();\n-189\n-190 typedef typename OOComm::OwnerSet OwnerSet;\n-191\n-192 int numOfOwnVtx=0;\n-193 auto end = oocomm.indexSet().end();\n-194 for(auto index = oocomm.indexSet().begin(); index != end; ++index) {\n-195 if (OwnerSet::contains(index->local().attribute())) {\n-196 numOfOwnVtx++;\n-197 }\n-198 }\n-199 parmetisToDune.resize(numOfOwnVtx);\n-200 std::vector globalNumOfVtx(npes);\n-201 // make this number available to all processes\n-202 MPI_Allgather(&numOfOwnVtx, 1, MPI_INT, &(globalNumOfVtx[0]), 1, MPI_INT,\n-oocomm.communicator());\n-203\n-204 int base=0;\n-205 vtxDist_[0] = 0;\n-206 for(int i=0; ilocal().attribute())) {\n-231 // assign and count the index\n-232 parmetisToDune[base-base_]=index->local();\n-233 duneToParmetis[index->local()] = base++;\n-234 }\n-235 }\n-236\n-237 // At this point, every process knows the ParMETIS global index\n-238 // of it's owner vertices. The next step is to get the\n-239 // ParMETIS global index of the overlap vertices from the\n-240 // associated processes. To do this, the Dune::Interface class\n-241 // is used.\n-242#ifdef DEBUG_REPART\n-243 std::cout <\n-_\b2_\b6_\b6 void _\bb_\bu_\bi_\bl_\bd_\bS_\be_\bn_\bd_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be(const std::vector& toPart, const IS& idxset)\n-267 {\n-268 std::map sizes;\n-269\n-270 for(auto i=idxset.begin(), end=idxset.end(); i!=end; ++i)\n-271 if(Flags::contains(i->local().attribute()))\n-272 ++sizes[toPart[i->local()]];\n-273\n-274 // Allocate the necessary space\n-275 for(auto i=sizes.begin(), end=sizes.end(); i!=end; ++i)\n-276 interfaces()[i->first].first.reserve(i->second);\n-277\n-278 //Insert the interface information\n-279 for(auto i=idxset.begin(), end=idxset.end(); i!=end; ++i)\n-280 if(Flags::contains(i->local().attribute()))\n-281 interfaces()[toPart[i->local()]].first.add(i->local());\n-282 }\n-283\n-_\b2_\b8_\b4 void _\br_\be_\bs_\be_\br_\bv_\be_\bS_\bp_\ba_\bc_\be_\bF_\bo_\br_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be(int proc, int size)\n-285 {\n-286 interfaces()[proc].second.reserve(size);\n-287 }\n-_\b2_\b8_\b8 void _\ba_\bd_\bd_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bd_\be_\bx(int proc, std::size_t idx)\n-289 {\n-290 interfaces()[proc].second.add(idx);\n-291 }\n-292 template\n-_\b2_\b9_\b3 void _\bb_\bu_\bi_\bl_\bd_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be(std::vector >& indices)\n-294 {\n-295 std::size_t i=0;\n-296 for(auto idx=indices.begin(); idx!= indices.end(); ++idx) {\n-297 interfaces()[idx->second].second.add(i++);\n-298 }\n-299 }\n-300\n-_\b3_\b0_\b1 _\b~_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be()\n-302 {}\n-303\n-304 };\n-305\n-306 namespace\n-307 {\n-317 template\n-318 void createSendBuf(std::vector& ownerVec, std::set& overlapVec,\n-std::set& neighbors, char *sendBuf, int buffersize, MPI_Comm comm) {\n-319 // Pack owner vertices\n-320 std::size_t s=ownerVec.size();\n-321 int pos=0;\n-322 if(s==0)\n-323 ownerVec.resize(1); // otherwise would read beyond the memory bound\n-324 MPI_Pack(&s, 1, MPITraits::getType(), sendBuf, buffersize,\n-&pos, comm);\n-325 MPI_Pack(&(ownerVec[0]), s, MPITraits::getType(), sendBuf, buffersize,\n-&pos, comm);\n-326 s = overlapVec.size();\n-327 MPI_Pack(&s, 1, MPITraits::getType(), sendBuf, buffersize,\n-&pos, comm);\n-328 for(auto i=overlapVec.begin(), end= overlapVec.end(); i != end; ++i)\n-329 MPI_Pack(const_cast(&(*i)), 1, MPITraits::getType(), sendBuf,\n-buffersize, &pos, comm);\n-330\n-331 s=neighbors.size();\n-332 MPI_Pack(&s, 1, MPITraits::getType(), sendBuf, buffersize,\n-&pos, comm);\n-333\n-334 for(auto i=neighbors.begin(), end= neighbors.end(); i != end; ++i)\n-335 MPI_Pack(const_cast(&(*i)), 1, MPI_INT, sendBuf, buffersize, &pos,\n-comm);\n-336 }\n-345 template\n-346 void saveRecvBuf(char *recvBuf, int bufferSize, std::vector >& ownerVec,\n-347 std::set& overlapVec, std::set& neighbors, RedistributeInterface&\n-inf, int from, MPI_Comm comm) {\n-348 std::size_t size;\n-349 int pos=0;\n-350 // unpack owner vertices\n-351 MPI_Unpack(recvBuf, bufferSize, &pos, &size, 1, MPITraits::\n-getType(), comm);\n-352 inf.reserveSpaceForReceiveInterface(from, size);\n-353 ownerVec.reserve(ownerVec.size()+size);\n-354 for(; size!=0; --size) {\n-355 GI gi;\n-356 MPI_Unpack(recvBuf, bufferSize, &pos, &gi, 1, MPITraits::getType(),\n-comm);\n-357 ownerVec.push_back(std::make_pair(gi,from));\n-358 }\n-359 // unpack overlap vertices\n-360 MPI_Unpack(recvBuf, bufferSize, &pos, &size, 1, MPITraits::\n-getType(), comm);\n-361 typename std::set::iterator ipos = overlapVec.begin();\n-362 Dune::dverb << \"unpacking \"<::getType(),\n-comm);\n-366 ipos=overlapVec.insert(ipos, gi);\n-367 }\n-368 //unpack neighbors\n-369 MPI_Unpack(recvBuf, bufferSize, &pos, &size, 1, MPITraits::\n-getType(), comm);\n-370 Dune::dverb << \"unpacking \"<::iterator npos = neighbors.begin();\n-372 for(; size!=0; --size) {\n-373 int n;\n-374 MPI_Unpack(recvBuf, bufferSize, &pos, &n, 1, MPI_INT, comm);\n-375 npos=neighbors.insert(npos, n);\n-376 }\n-377 }\n-378\n-392 template\n-393 void getDomain(const MPI_Comm& comm, T *part, int numOfOwnVtx, int nparts,\n-int *myDomain, std::vector &domainMapping) {\n-394 int npes, mype;\n-395 MPI_Comm_size(comm, &npes);\n-396 MPI_Comm_rank(comm, &mype);\n-397 MPI_Status status;\n-398\n-399 *myDomain = -1;\n-400 int i=0;\n-401 int j=0;\n-402\n-403 std::vector domain(nparts, 0);\n-404 std::vector assigned(npes, 0);\n-405 // init domain Mapping\n-406 domainMapping.assign(domainMapping.size(), -1);\n-407\n-408 // count the occurrence of domains\n-409 for (i=0; i domainMatrix(npes * nparts, -1);\n-414\n-415 // init buffer with the own domain\n-416 int *buf = new int[nparts];\n-417 for (i=0; i unassigned;\n-442\n-443 for(i=0; i::iterator next_free = assigned.begin();\n-472\n-473 for(auto udomain = unassigned.begin(),\n-474 end = unassigned.end(); udomain != end; ++udomain)\n-475 {\n-476 next_free = std::find_if(next_free, assigned.end(), std::bind(std::\n-less(), std::placeholders::_1, 1));\n-477 assert(next_free != assigned.end());\n-478 domainMapping[*udomain] = next_free-assigned.begin();\n-479 *next_free = 1;\n-480 }\n-481 }\n-482\n-483 struct SortFirst\n-484 {\n-485 template\n-486 bool operator()(const T& t1, const T& t2) const\n-487 {\n-488 return t1\n-504 void mergeVec(std::vector >& ownerVec, std::set&\n-overlapSet) {\n-505\n-506#ifdef DEBUG_REPART\n-507 // Safety check for duplicates.\n-508 if(ownerVec.size()>0)\n-509 {\n-510 auto old=ownerVec.begin();\n-511 for(auto i=old+1, end=ownerVec.end(); i != end; old=i++)\n-512 {\n-513 if(i->first==old->first)\n-514 {\n-515 std::cerr<<\"Value at indes\"<first<<\",\"<second<<\"]==[\"\n-517 <first<<\",\"<second<<\"]\"<first<*s) ++v;\n-529 if(v!=vend && v->first==*s) {\n-530 // Move to the next element before erasing\n-531 // thus s stays valid!\n-532 auto tmp=s;\n-533 ++s;\n-534 overlapSet.erase(tmp);\n-535 }else\n-536 ++s;\n-537 }\n-538 }\n-539\n-540\n-554 template\n-555 void getNeighbor(const Graph& g, std::vector& part,\n-556 typename Graph::VertexDescriptor vtx, const IS& indexSet,\n-557 int toPe, std::set& neighbor, std::set& neighborProcs) {\n-558 for(auto edge=g.beginEdges(vtx), end=g.endEdges(vtx); edge!=end; ++edge)\n-559 {\n-560 const typename IS::IndexPair* pindex = indexSet.pair(edge.target());\n-561 assert(pindex);\n-562 if(part[pindex->local()]!=toPe || !OwnerSet::contains(pindex->local\n-().attribute()))\n-563 {\n-564 // is sent to another process and therefore becomes overlap\n-565 neighbor.insert(pindex->global());\n-566 neighborProcs.insert(part[pindex->local()]);\n-567 }\n-568 }\n-569 }\n-570\n-571 template\n-572 void my_push_back(std::vector& ownerVec, const I& index, [\n-[maybe_unused]] int proc)\n-573 {\n-574 ownerVec.push_back(index);\n-575 }\n-576\n-577 template\n-578 void my_push_back(std::vector >& ownerVec, const I& index,\n-int proc)\n-579 {\n-580 ownerVec.push_back(std::make_pair(index,proc));\n-581 }\n-582 template\n-583 void reserve(std::vector&, RedistributeInterface&, int)\n-584 {}\n-585 template\n-586 void reserve(std::vector >& ownerVec,\n-RedistributeInterface& redist, int proc)\n-587 {\n-588 redist.reserveSpaceForReceiveInterface(proc, ownerVec.size());\n-589 }\n-590\n-591\n-609 template\n-610 void getOwnerOverlapVec(const G& graph, std::vector& part, IS&\n-indexSet,\n-611 [[maybe_unused]] int myPe, int toPe, std::vector& ownerVec, std::\n-set& overlapSet,\n-612 RedistributeInterface& redist, std::set& neighborProcs) {\n-613 for(auto index = indexSet.begin(); index != indexSet.end(); ++index) {\n-614 // Only Process owner vertices, the others are not in the parmetis graph.\n-615 if(OwnerSet::contains(index->local().attribute()))\n-616 {\n-617 if(part[index->local()]==toPe)\n-618 {\n-619 getNeighbor(graph, part, index->local(), indexSet,\n-620 toPe, overlapSet, neighborProcs);\n-621 my_push_back(ownerVec, index->global(), toPe);\n-622 }\n-623 }\n-624 }\n-625 reserve(ownerVec, redist, toPe);\n-626\n-627 }\n-628\n-629\n-636 template\n-637 inline bool isOwner(IS& indexSet, int index) {\n-638\n-639 const typename IS::IndexPair* pindex=indexSet.pair(index);\n-640\n-641 assert(pindex);\n-642 return F::contains(pindex->local().attribute());\n-643 }\n-644\n-645\n-646 class BaseEdgeFunctor\n-647 {\n-648 public:\n-649 BaseEdgeFunctor(Metis::idx_t* adj,const ParmetisDuneIndexMap& data)\n-650 : i_(), adj_(adj), data_(data)\n-651 {}\n-652\n-653 template\n-654 void operator()(const T& edge)\n-655 {\n-656 // Get the egde weight\n-657 // const Weight& weight=edge.weight();\n-658 adj_[i_] = data_.toParmetis(edge.target());\n-659 i_++;\n-660 }\n-661 std::size_t index()\n-662 {\n-663 return i_;\n-664 }\n-665\n-666 private:\n-667 std::size_t i_;\n-668 Metis::idx_t* adj_;\n-669 const ParmetisDuneIndexMap& data_;\n-670 };\n-671\n-672 template\n-673 struct EdgeFunctor\n-674 : public BaseEdgeFunctor\n-675 {\n-676 EdgeFunctor(Metis::idx_t* adj, const ParmetisDuneIndexMap& data, std::\n-size_t)\n-677 : BaseEdgeFunctor(adj, data)\n-678 {}\n-679\n-680 Metis::idx_t* getWeights()\n-681 {\n-682 return NULL;\n-683 }\n-684 void free(){}\n-685 };\n-686\n-687 template\n-688 class EdgeFunctor<_\bD_\bu_\bn_\be::Amg::PropertiesGraph >\n-689 : public BaseEdgeFunctor\n-690 {\n-691 public:\n-692 EdgeFunctor(Metis::idx_t* adj, const ParmetisDuneIndexMap& data, std::\n-size_t s)\n-693 : BaseEdgeFunctor(adj, data)\n-694 {\n-695 weight_=new Metis::idx_t[s];\n-696 }\n-697\n-698 template\n-699 void operator()(const T& edge)\n-700 {\n-701 weight_[index()]=edge.properties().depends() ? 3 : 1;\n-702 BaseEdgeFunctor::operator()(edge);\n-703 }\n-704 Metis::idx_t* getWeights()\n-705 {\n-706 return weight_;\n-707 }\n-708 void free(){\n-709 if(weight_!=0) {\n-710 delete weight_;\n-711 weight_=0;\n-712 }\n-713 }\n-714 private:\n-715 Metis::idx_t* weight_;\n-716 };\n-717\n-718\n-719\n-733 template\n-734 void getAdjArrays(G& graph, IS& indexSet, Metis::idx_t *xadj,\n-735 EW& ew)\n-736 {\n-737 int j=0;\n-738 auto vend = graph.end();\n-739\n-740 for(auto vertex = graph.begin(); vertex != vend; ++vertex) {\n-741 if (isOwner(indexSet,*vertex)) {\n-742 // The type of const edge iterator.\n-743 auto eend = vertex.end();\n-744 xadj[j] = ew.index();\n-745 j++;\n-746 for(auto edge = vertex.begin(); edge != eend; ++edge) {\n-747 ew(edge);\n-748 }\n-749 }\n-750 }\n-751 xadj[j] = ew.index();\n-752 }\n-753 } // end anonymous namespace\n-754\n-755 template\n-756 bool _\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn(const G& graph, std::vector& realparts,\n-757 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm,\n-758 std::shared_ptr<_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>>& outcomm,\n-759 RedistributeInterface& redistInf,\n-760 bool verbose=false);\n-761#if HAVE_PARMETIS\n-762#ifndef METIS_VER_MAJOR\n-763 extern \"C\"\n-764 {\n-765 // backwards compatibility to parmetis < 4.0.0\n-766 void METIS_PartGraphKway(int *nvtxs, Metis::idx_t *xadj, Metis::idx_t\n-*adjncy, Metis::idx_t *vwgt,\n-767 Metis::idx_t *adjwgt, int *wgtflag, int *numflag, int *nparts,\n-768 int *options, int *edgecut, Metis::idx_t *part);\n-769\n-770 void METIS_PartGraphRecursive(int *nvtxs, Metis::idx_t *xadj, Metis::idx_t\n-*adjncy, Metis::idx_t *vwgt,\n-771 Metis::idx_t *adjwgt, int *wgtflag, int *numflag, int *nparts,\n-772 int *options, int *edgecut, Metis::idx_t *part);\n-773 }\n-774#endif\n-775#endif // HAVE_PARMETIS\n-776\n-777 template\n-_\b7_\b7_\b8 inline void _\bp_\br_\bi_\bn_\bt_\b__\bc_\ba_\br_\br_\ba_\by(S& os, T* array, std::size_t l)\n-779 {\n-780 for(T *cur=array, *end=array+l; cur!=end; ++cur)\n-781 os<<*cur<<\" \";\n-782 }\n-783\n-784 template\n-_\b7_\b8_\b5 inline bool _\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bG_\br_\ba_\bp_\bh(std::size_t noVtx, std::size_t gnoVtx, S noEdges,\n-T* xadj,\n-786 T* adjncy, bool checkSymmetry)\n-787 {\n-788 bool correct=true;\n-789\n-790 using std::signbit;\n-791 for(_\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt vtx=0; vtx<(_\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt)noVtx; ++vtx) {\n-792 if(static_cast(xadj[vtx])>noEdges || signbit(xadj[vtx])) {\n-793 std::cerr <<\"Check graph: xadj[\"<\"\n-794 <(xadj[vtx+1])>noEdges || signbit(xadj[vtx+1])) {\n-798 std::cerr <<\"Check graph: xadj[\"<\"\n-799 <gnoVtx) {\n-805 std::cerr<<\" Edge \"<\n-_\b8_\b2_\b9 bool _\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn(const M& _\bm_\ba_\bt, _\bD_\bu_\bn_\be_\b:_\b:\n-_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm,\n-830 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt nparts,\n-831 std::shared_ptr<_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>>& outcomm,\n-832 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& redistInf,\n-833 bool verbose=false)\n-834 {\n-835 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n-836 std::cout<<\"Repartitioning from \"<1) {\n-847\n-848 part[0]=rank;\n-849\n-850 { // sublock for automatic memory deletion\n-851\n-852 // Build the graph of the communication scheme and create an appropriate\n-indexset.\n-853 // calculate the neighbour vertices\n-854 int noNeighbours = oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().neighbours();\n-855\n-856 for(auto n= oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().begin(); n != oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().end\n-();\n-857 ++n)\n-858 if(n->first==rank) {\n-859 //do not include ourselves.\n-860 --noNeighbours;\n-861 break;\n-862 }\n-863\n-864 // A parmetis graph representing the communication graph.\n-865 // The diagonal entries are the number of nodes on the process.\n-866 // The offdiagonal entries are the number of edges leading to other\n-processes.\n-867\n-868 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *xadj=new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[2];\n-869 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *vtxdist=new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()+1];\n-870 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *adjncy=new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[noNeighbours];\n-871#ifdef USE_WEIGHTS\n-872 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *vwgt = 0;\n-873 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *adjwgt = 0;\n-874#endif\n-875\n-876 // each process has exactly one vertex!\n-877 for(int i=0; i owner(mat.N(), oocomm.communicator().rank());\n-887 // for(NeighbourIterator n= oocomm.remoteIndices().begin(); n !=\n-oocomm.remoteIndices().end();\n-888 // ++n)\n-889 // {\n-890 // if(n->first!=oocomm.communicator().rank()){\n-891 // typedef typename RemoteIndices::RemoteIndexList RIList;\n-892 // const RIList& rlist = *(n->second.first);\n-893 // typedef typename RIList::const_iterator LIter;\n-894 // for(LIter entry=rlist.begin(); entry!=rlist.end(); ++entry){\n-895 // if(entry->attribute()==OwnerOverlapCopyAttributeSet::owner)\n-896 // owner[entry->localIndexPair().local()] = n->first;\n-897 // }\n-898 // }\n-899 // }\n-900\n-901 // std::map edgecount; // edges to other processors\n-902 // typedef typename M::ConstRowIterator RIter;\n-903 // typedef typename M::ConstColIterator CIter;\n-904\n-905 // // calculate edge count\n-906 // for(RIter row=mat.begin(), endr=mat.end(); row != endr; ++row)\n-907 // if(owner[row.index()]==OwnerOverlapCopyAttributeSet::owner)\n-908 // for(CIter entry= row->begin(), ende = row->end(); entry != ende;\n-++entry)\n-909 // ++edgecount[owner[entry.index()]];\n-910\n-911 // setup edge and weight pattern\n-912\n-913 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt* adjp=adjncy;\n-914\n-915#ifdef USE_WEIGHTS\n-916 vwgt = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[1];\n-917 vwgt[0]= _\bm_\ba_\bt.N(); // weight is numer of rows TODO: Should actually be the\n-nonzeros.\n-918\n-919 adjwgt = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[noNeighbours];\n-920 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt* adjwp=adjwgt;\n-921#endif\n-922\n-923 for(auto n= oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().begin(); n != oocomm._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().end\n-();\n-924 ++n)\n-925 if(n->first != rank) {\n-926 *adjp=n->first;\n-927 ++adjp;\n-928#ifdef USE_WEIGHTS\n-929 *adjwp=1; //edgecount[n->first];\n-930 ++adjwp;\n-931#endif\n-932 }\n-933 assert(_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bG_\br_\ba_\bp_\bh(vtxdist[rank+1]-vtxdist[rank],\n-934 vtxdist[oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()],\n-935 noNeighbours, xadj, adjncy, false));\n-936\n-937 [[maybe_unused]] _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt wgtflag=0;\n-938 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt numflag=0;\n-939 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt edgecut;\n-940#ifdef USE_WEIGHTS\n-941 wgtflag=3;\n-942#endif\n-943 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt *tpwgts = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt[nparts];\n-944 for(int i=0; i::getType(),\n-1071 gxadj,noxs,xdispl,MPITraits::getType(),\n-1072 comm);\n-1073 MPI_Allgatherv(adjncy,noNeighbours,MPITraits::getType(),\n-1074 gadjncy,noedges,displ,MPITraits::getType(),\n-1075 comm);\n-1076#ifdef USE_WEIGHTS\n-1077 MPI_Allgatherv(adjwgt,noNeighbours,MPITraits::getType(),\n-1078 gadjwgt,noedges,displ,MPITraits::getType(),\n-1079 comm);\n-1080 MPI_Allgatherv(vwgt,localNoVtx,MPITraits::getType(),\n-1081 gvwgt,novs,vdispl,MPITraits::getType(),\n-1082 comm);\n-1083#endif\n-1084 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n-1085 std::cout<<\"Gathering global graph data took \"<(gxadjlen));\n-1103 increment = *(start-1);\n-1104 std::transform(start+offset, start+l+offset, start, std::bind(std::\n-plus(), std::placeholders::_1, increment));\n-1105 }\n-1106 Dune::dinfo<= 5\n-1130 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt ncon = 1;\n-1131 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt moptions[METIS_NOPTIONS];\n-1132 METIS_SetDefaultOptions(moptions);\n-1133 moptions[METIS_OPTION_NUMBERING] = numflag;\n-1134 METIS_PartGraphRecursive(&noVertices, &ncon, gxadj, gadjncy, gvwgt, NULL,\n-gadjwgt,\n-1135 &nparts, NULL, NULL, moptions, &edgecut, gpart);\n-1136#else\n-1137 int options[5] = {0, 1, 1, 3, 3};\n-1138 // Call metis\n-1139 METIS_PartGraphRecursive(&noVertices, gxadj, gadjncy, gvwgt, gadjwgt,\n-&wgtflag,\n-1140 &numflag, &nparts, options, &edgecut, gpart);\n-1141#endif\n-1142\n-1143 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n-1144 std::cout<<\"METIS took \"<::getType(), part, 1,\n-1159 MPITraits::getType(), 0, comm);\n-1160\n-1161 {\n-1162 // release remaining memory\n-1163 delete[] gpart;\n-1164 delete[] noedges;\n-1165 delete[] displ;\n-1166 }\n-1167\n-1168\n-1169#endif\n-1170 delete[] xadj;\n-1171 delete[] vtxdist;\n-1172 delete[] adjncy;\n-1173#ifdef USE_WEIGHTS\n-1174 delete[] vwgt;\n-1175 delete[] adjwgt;\n-1176#endif\n-1177 delete[] tpwgts;\n-1178 }\n-1179 }else{\n-1180 part[0]=0;\n-1181 }\n-1182#endif\n-1183 Dune::dinfo<<\" repart \"< \"<< part[0]< realpart(_\bm_\ba_\bt.N(), part[0]);\n-1186 delete[] part;\n-1187\n-1188 oocomm._\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl(realpart, realpart);\n-1189\n-1190 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n-1191 std::cout<<\"Scattering repartitioning took \"< graph(const_cast(_\bm_\ba_\bt));\n-1197 _\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs(graph, oocomm);\n-1198 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n-1199 std::cout<<\"Filling index set took \"<\n-_\b1_\b2_\b3_\b5 bool _\bg_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn(const G& graph, _\bD_\bu_\bn_\be_\b:_\b:\n-_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm, _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt nparts,\n-1236 std::shared_ptr<_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>>& outcomm,\n-1237 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& redistInf,\n-1238 bool verbose=false)\n-1239 {\n-1240 Timer time;\n-1241\n-1242 MPI_Comm comm=oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br();\n-1243 oocomm._\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(graph.noVertices());\n-1244 _\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs(graph, oocomm);\n-1245\n-1246 if(verbose && oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n-1247 std::cout<<\"Filling holes took \"<(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()));\n-1262\n-1263 int myDomain = -1;\n-1264\n-1265 //\n-1266 // 1) Prepare the required parameters for using ParMETIS\n-1267 // Especially the arrays that represent the graph must be\n-1268 // generated by the DUNE Graph and IndexSet input variables.\n-1269 // These are the arrays:\n-1270 // - vtxdist\n-1271 // - xadj\n-1272 // - adjncy\n-1273 //\n-1274 //\n-1275#ifdef PERF_REPART\n-1276 // reset timer for step 1)\n-1277 t1=MPI_Wtime();\n-1278#endif\n-1279\n-1280\n-1281 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> OOComm;\n-1282 typedef typename OOComm::OwnerSet OwnerSet;\n-1283\n-1284 // Create the vtxdist array and parmetisVtxMapping.\n-1285 // Global communications are necessary\n-1286 // The parmetis global identifiers for the owner vertices.\n-1287 ParmetisDuneIndexMap indexMap(graph,oocomm);\n-1288 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *part = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[indexMap.numOfOwnVtx()];\n-1289 for(std::size_t i=0; i < indexMap.numOfOwnVtx(); ++i)\n-1290 part[i]=mype;\n-1291\n-1292#if !HAVE_PARMETIS\n-1293 if(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0 && nparts>1)\n-1294 std::cerr<<\"ParMETIS not activated. Will repartition to 1 domain instead\n-of requested \"\n-1295 <1) {\n-1301 // Create the xadj and adjncy arrays\n-1302 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *xadj = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[indexMap.numOfOwnVtx()+1];\n-1303 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt *adjncy = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt[graph.noEdges()];\n-1304 EdgeFunctor ef(adjncy, indexMap, graph.noEdges());\n-1305 getAdjArrays(graph, oocomm._\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(), xadj, ef);\n-1306\n-1307 //\n-1308 // 2) Call ParMETIS\n-1309 //\n-1310 //\n-1311 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt numflag=0, wgtflag=0, options[3], edgecut=0, ncon=1;\n-1312 //float *tpwgts = NULL;\n-1313 _\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt *tpwgts = new _\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt[nparts];\n-1314 for(int i=0; i(comm));\n-1358\n-1359\n-1360 delete[] xadj;\n-1361 delete[] adjncy;\n-1362 delete[] tpwgts;\n-1363\n-1364 ef.free();\n-1365\n-1366#ifdef DEBUG_REPART\n-1367 if (mype == 0) {\n-1368 std::cout< domainMapping(nparts);\n-1410 if(nparts>1)\n-1411 getDomain(comm, part, indexMap.numOfOwnVtx(), nparts, &myDomain,\n-domainMapping);\n-1412 else\n-1413 domainMapping[0]=0;\n-1414\n-1415#ifdef DEBUG_REPART\n-1416 std::cout< setPartition(oocomm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt().size(), -1);\n-1429\n-1430 std::size_t i=0; // parmetis index\n-1431 for(auto index = oocomm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt().begin(); index != oocomm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt().end\n-(); ++index)\n-1432 if(OwnerSet::contains(index->local().attribute())) {\n-1433 setPartition[index->local()]=domainMapping[part[i++]];\n-1434 }\n-1435\n-1436 delete[] part;\n-1437 oocomm._\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl(setPartition, setPartition);\n-1438 // communication only needed for ALU\n-1439 // (ghosts with same global id as owners on the same process)\n-1440 if (SolverCategory::category(oocomm) ==\n-1441 static_cast(SolverCategory::nonoverlapping))\n-1442 oocomm._\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl(setPartition, setPartition);\n-1443 bool ret = _\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn(graph, setPartition, oocomm, outcomm,\n-redistInf,\n-1444 verbose);\n-1445 if(verbose) {\n-1446 oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().barrier();\n-1447 if(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n-1448 std::cout<<\"Creating indexsets took \"<\n-_\b1_\b4_\b5_\b6 bool _\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn(const G& graph,\n-1457 std::vector& setPartition, _\bD_\bu_\bn_\be_\b:_\b:\n-_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>& oocomm,\n-1458 std::shared_ptr<_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b>>& outcomm,\n-1459 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& redistInf,\n-1460 bool verbose)\n-1461 {\n-1462 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b1_\b,_\bT_\b2_\b> OOComm;\n-1463 typedef typename OOComm::OwnerSet OwnerSet;\n-1464\n-1465 Timer time;\n-1466\n-1467 // Build the send interface\n-1468 redistInf._\bb_\bu_\bi_\bl_\bd_\bS_\be_\bn_\bd_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be(setPartition, oocomm._\bi_\bn_\bd_\be_\bx_\bS_\be_\bt());\n-1469\n-1470#ifdef PERF_REPART\n-1471 // stop the time for step 3)\n-1472 t3=MPI_Wtime()-t3;\n-1473 // reset timer for step 4)\n-1474 t4=MPI_Wtime();\n-1475#endif\n-1476\n-1477\n-1478 //\n-1479 // 4) Create the output IndexSet and RemoteIndices\n-1480 // 4.1) Determine the \"send to\" and \"receive from\" relation\n-1481 // according to the new partition using a MPI ring\n-1482 // communication.\n-1483 //\n-1484 // 4.2) Depends on the \"send to\" and \"receive from\" vector,\n-1485 // the processes will exchange the vertices each other\n-1486 //\n-1487 // 4.3) Create the IndexSet, RemoteIndices and the new MPI\n-1488 // communicator\n-1489 //\n-1490\n-1491 //\n-1492 // 4.1) Let's start...\n-1493 //\n-1494 int npes = oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size();\n-1495 int *sendTo = 0;\n-1496 int noSendTo = 0;\n-1497 std::set recvFrom;\n-1498\n-1499 // the max number of vertices is stored in the sendTo buffer,\n-1500 // not the number of vertices to send! Because the max number of Vtx\n-1501 // is used as the fixed buffer size by the MPI send/receive calls\n-1502\n-1503 int mype = oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank();\n-1504\n-1505 {\n-1506 std::set tsendTo;\n-1507 for(auto i=setPartition.begin(), iend = setPartition.end(); i!=iend; ++i)\n-1508 tsendTo.insert(*i);\n-1509\n-1510 noSendTo = tsendTo.size();\n-1511 sendTo = new int[noSendTo];\n-1512 int idx=0;\n-1513 for(auto i=tsendTo.begin(); i != tsendTo.end(); ++i, ++idx)\n-1514 sendTo[idx]=*i;\n-1515 }\n-1516\n-1517 //\n-1518 int* gnoSend= new int[oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()];\n-1519 int* gsendToDispl = new int[oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()+1];\n-1520\n-1521 MPI_Allgather(&noSendTo, 1, MPI_INT, gnoSend, 1,\n-1522 MPI_INT, oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br());\n-1523\n-1524 // calculate total receive message size\n-1525 int totalNoRecv = 0;\n-1526 for(int i=0; i0;\n-1547\n-1548 // Delete memory\n-1549 delete[] gnoSend;\n-1550 delete[] gsendToDispl;\n-1551 delete[] gsendTo;\n-1552\n-1553\n-1554#ifdef DEBUG_REPART\n-1555 if(recvFrom.size()) {\n-1556 std::cout< GlobalVector;\n-1589 std::vector > myOwnerVec;\n-1590 std::set myOverlapSet;\n-1591 GlobalVector sendOwnerVec;\n-1592 std::set sendOverlapSet;\n-1593 std::set myNeighbors;\n-1594\n-1595 // getOwnerOverlapVec(graph, setPartition, oocomm.globalLookup\n-(),\n-1596 // mype, mype, myOwnerVec, myOverlapSet, redistInf, myNeighbors);\n-1597\n-1598 char **sendBuffers=new char*[noSendTo];\n-1599 MPI_Request *requests = new MPI_Request[noSendTo];\n-1600\n-1601 // Create all messages to be sent\n-1602 for(int i=0; i < noSendTo; ++i) {\n-1603 // clear the vector for sending\n-1604 sendOwnerVec.clear();\n-1605 sendOverlapSet.clear();\n-1606 // get all owner and overlap vertices for process j and save these\n-1607 // in the vectors sendOwnerVec and sendOverlapSet\n-1608 std::set neighbors;\n-1609 getOwnerOverlapVec(graph, setPartition, oocomm._\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(),\n-1610 mype, sendTo[i], sendOwnerVec, sendOverlapSet, redistInf,\n-1611 neighbors);\n-1612 // +2, we need 2 integer more for the length of each part\n-1613 // (owner/overlap) of the array\n-1614 int buffersize=0;\n-1615 int tsize;\n-1616 MPI_Pack_size(1, MPITraits::getType(), oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(),\n-&buffersize);\n-1617 MPI_Pack_size(sendOwnerVec.size(), MPITraits::getType(),\n-oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(), &tsize);\n-1618 buffersize +=tsize;\n-1619 MPI_Pack_size(1, MPITraits::getType(), oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(),\n-&tsize);\n-1620 buffersize +=tsize;\n-1621 MPI_Pack_size(sendOverlapSet.size(), MPITraits::getType(),\n-oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(), &tsize);\n-1622 buffersize += tsize;\n-1623 MPI_Pack_size(1, MPITraits::getType(), oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(),\n-&tsize);\n-1624 buffersize += tsize;\n-1625 MPI_Pack_size(neighbors.size(), MPI_INT, oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(), &tsize);\n-1626 buffersize += tsize;\n-1627\n-1628 sendBuffers[i] = new char[buffersize];\n-1629\n-1630#ifdef DEBUG_REPART\n-1631 std::cout<0) {\n-1651 // probe for an incoming message\n-1652 MPI_Status stat;\n-1653 MPI_Probe(MPI_ANY_SOURCE, 99, oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br(), &stat);\n-1654 int buffersize;\n-1655 MPI_Get_count(&stat, MPI_PACKED, &buffersize);\n-1656\n-1657 if(oldbuffersize(outputComm,SolverCategory::category\n-(oocomm),true);\n-1727\n-1728 // translate neighbor ranks.\n-1729 int newrank=outcomm->communicator().rank();\n-1730 int *newranks=new int[oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().size()];\n-1731 std::vector tneighbors;\n-1732 tneighbors.reserve(myNeighbors.size());\n-1733\n-1734 typename OOComm::ParallelIndexSet& outputIndexSet = outcomm->indexSet();\n-1735\n-1736 MPI_Allgather(&newrank, 1, MPI_INT, newranks, 1,\n-1737 MPI_INT, oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br());\n-1738\n-1739#ifdef DEBUG_REPART\n-1740 std::cout<=0);\n-1744 std::cout<<*i<<\"->\"<first,LocalIndexT(i, OwnerOverlapCopyAttributeSet::\n-owner, true));\n-1777 redistInf._\ba_\bd_\bd_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bd_\be_\bx(g->second, i);\n-1778 }\n-1779\n-1780 if(verbose) {\n-1781 oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().barrier();\n-1782 if(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n-1783 std::cout<<\" Adding owner indices took \"<<\n-1784 time.elapsed()<local().attribute())) {\n-1820 numOfOwnVtx++;\n-1821 }\n-1822 }\n-1823 numOfOwnVtx = oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().sum(numOfOwnVtx);\n-1824 // if(numOfOwnVtx!=indexMap.globalOwnerVertices)\n-1825 // {\n-1826 // std::cerr<remoteIndices().setNeighbours(tneighbors);\n-1844 outcomm->remoteIndices().template rebuild();\n-1845\n-1846 }\n-1847\n-1848 // release the memory\n-1849 delete[] sendTo;\n-1850\n-1851 if(verbose) {\n-1852 oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().barrier();\n-1853 if(oocomm._\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br().rank()==0)\n-1854 std::cout<<\" Storing indexsets took \"<<\n-1855 time.elapsed()<\n-1876 bool graphRepartition(const G& graph, P& oocomm, int nparts,\n-1877 std::shared_ptr

    & outcomm,\n-1878 R& redistInf,\n-1879 bool v=false)\n-1880 {\n-1881 if(nparts!=oocomm.size())\n-1882 DUNE_THROW(NotImplemented, \"only available for MPI programs\");\n-1883 }\n-1884\n-1885\n-1886 template\n-1887 bool _\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn(const G& graph, P& oocomm, int nparts,\n-1888 std::shared_ptr

    & outcomm,\n-1889 R& redistInf,\n-1890 bool v=false)\n-1891 {\n-1892 if(nparts!=oocomm.size())\n-1893 DUNE_THROW(NotImplemented, \"only available for MPI programs\");\n-1894 }\n-1895#endif // HAVE_MPI\n-1896} // end of namespace Dune\n-1897#endif\n-_\bg_\br_\ba_\bp_\bh_\b._\bh_\bh\n-Provides classes for building the matrix graph.\n-_\bg_\bl_\bo_\bb_\ba_\bl_\bO_\bw_\bn_\be_\br_\bV_\be_\br_\bt_\bi_\bc_\be_\bs\n-int globalOwnerVertices\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:175\n-_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n-Classes providing communication interfaces for overlapping Schwarz methods.\n-_\bm_\ba_\bt\n-Matrix & mat\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\b1_\b1_\b8 virtual const M& _\bg_\be_\bt_\bm_\ba_\bt () const = 0;\n+119\n+_\b1_\b2_\b1 virtual _\b~_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br () {}\n+122 };\n+123\n+124\n+125\n+126 //=====================================================================\n+127 // Implementation for ISTL-matrix based operator\n+128 //=====================================================================\n+129\n+135 template\n+_\b1_\b3_\b6 class _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br : public _\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+137 {\n+138 public:\n+_\b1_\b4_\b0 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b1_\b4_\b1 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b1_\b4_\b2 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b1_\b4_\b3 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+144\n+_\b1_\b4_\b6 explicit _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br (const M& A) : _A_(stackobject_to_shared_ptr(A)) {}\n+147\n+_\b1_\b4_\b9 explicit _\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br (std::shared_ptr A) : _A_(A) {}\n+150\n+_\b1_\b5_\b2 void _\ba_\bp_\bp_\bl_\by (const X& x, Y& y) const override\n+153 {\n+154 _A_->mv(x,y);\n+155 }\n+156\n+_\b1_\b5_\b8 void _\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd (_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be alpha, const X& x, Y& y) const override\n+159 {\n+160 _A_->usmv(alpha,x,y);\n+161 }\n+162\n+_\b1_\b6_\b4 const M& _\bg_\be_\bt_\bm_\ba_\bt () const override\n+165 {\n+166 return *_A_;\n+167 }\n+168\n+_\b1_\b7_\b0 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const override\n+171 {\n+172 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+173 }\n+174\n+175 private:\n+176 const std::shared_ptr _A_;\n+177 };\n+178\n+181} // end namespace\n+182\n+183#endif\n+_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-bool buildCommunication(const G &graph, std::vector< int > &realparts, Dune::\n-OwnerOverlapCopyCommunication< T1, T2 > &oocomm, std::shared_ptr< Dune::\n-OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface\n-&redistInf, bool verbose=false)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:1456\n-_\bD_\bu_\bn_\be_\b:_\b:_\bf_\bi_\bl_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\bH_\bo_\bl_\be_\bs\n-void fillIndexSetHoles(const G &graph, Dune::OwnerOverlapCopyCommunication< T1,\n-T2 > &oocomm)\n-Fills the holes in an index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:83\n-_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bm_\bm_\bG_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn\n-bool commGraphRepartition(const M &mat, Dune::OwnerOverlapCopyCommunication<\n-T1, T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::\n-OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface\n-&redistInf, bool verbose=false)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:829\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\b__\bc_\ba_\br_\br_\ba_\by\n-void print_carray(S &os, T *array, std::size_t l)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:778\n-_\bD_\bu_\bn_\be_\b:_\b:_\bi_\bs_\bV_\ba_\bl_\bi_\bd_\bG_\br_\ba_\bp_\bh\n-bool isValidGraph(std::size_t noVtx, std::size_t gnoVtx, S noEdges, T *xadj, T\n-*adjncy, bool checkSymmetry)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:785\n-_\bD_\bu_\bn_\be_\b:_\b:_\bg_\br_\ba_\bp_\bh_\bR_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn\n-bool graphRepartition(const G &graph, Dune::OwnerOverlapCopyCommunication< T1,\n-T2 > &oocomm, Metis::idx_t nparts, std::shared_ptr< Dune::\n-OwnerOverlapCopyCommunication< T1, T2 > > &outcomm, RedistributeInterface\n-&redistInf, bool verbose=false)\n-execute a graph repartition for a giving graph and indexset.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:1235\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\be_\bt_\bi_\bs_\b:_\b:_\br_\be_\ba_\bl_\b__\bt\n-float real_t\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:53\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\be_\bt_\bi_\bs_\b:_\b:_\bi_\bd_\bx_\b__\bt\n-std::size_t idx_t\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:63\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br\n-@ owner\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-A class setting up standard communication for a two-valued attribute set with\n-owner/overlap/copy sema...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n-const GlobalLookupIndexSet & globalLookup() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:526\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bn_\bd_\be_\bx_\bS_\be_\bt\n-const ParallelIndexSet & indexSet() const\n-Get the underlying parallel index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:462\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl\n-void copyCopyToAll(const T &source, T &dest) const\n-Communicate values from copy data points to all other data points.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:328\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet\n-The type of the reverse lookup of indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:456\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n-void buildGlobalLookup()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:495\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n-const Communication< MPI_Comm > & communicator() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl\n-void copyOwnerToAll(const T &source, T &dest) const\n-Communicate values from owner data points to all other data points.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:311\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n-const RemoteIndices & remoteIndices() const\n-Get the underlying remote indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:471\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n-void freeGlobalLookup()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:520\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet\n-The type of the parallel index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:449\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bG_\br_\ba_\bp_\bh\n-The (undirected) graph of a matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn graph.hh:51\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:260\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\br_\be_\bs_\be_\br_\bv_\be_\bS_\bp_\ba_\bc_\be_\bF_\bo_\br_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-void reserveSpaceForReceiveInterface(int proc, int size)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:284\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-void buildReceiveInterface(std::vector< std::pair< TG, int > > &indices)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:293\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\b~_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-~RedistributeInterface()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:301\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\bs_\be_\bt_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n-void setCommunicator(MPI_Comm comm)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:261\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bS_\be_\bn_\bd_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-void buildSendInterface(const std::vector< int > &toPart, const IS &idxset)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:266\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be_\b:_\b:_\ba_\bd_\bd_\bR_\be_\bc_\be_\bi_\bv_\be_\bI_\bn_\bd_\be_\bx\n-void addReceiveIndex(int proc, std::size_t idx)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:288\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A linear operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+virtual ~LinearOperator()\n+every abstract base class has a virtual destructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:86\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:74\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd\n+virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const =0\n+apply operator to x, scale and add:\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const =0\n+Category of the linear operator (see SolverCategory::Category)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The type of the range of the operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:72\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(const X &x, Y &y) const =0\n+apply operator to x: The input vector is consistent and the output must also be\n+consistent on the in...\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The type of the domain of the operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A linear operator exporting itself in matrix form.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:109\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bg_\be_\bt_\bm_\ba_\bt\n+virtual const M & getmat() const =0\n+get matrix via *\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:113\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:115\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+export types, usually they come from the derived class\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:112\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+virtual ~AssembledLinearOperator()\n+every abstract base class has a virtual destructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:121\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br\n+Adapter to turn a matrix into a linear operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:137\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br\n+MatrixAdapter(std::shared_ptr< const M > A)\n+constructor: store an std::shared_ptr to a matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br\n+MatrixAdapter(const M &A)\n+constructor: just store a reference to a matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:146\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd\n+void applyscaleadd(field_type alpha, const X &x, Y &y) const override\n+apply operator to x, scale and add:\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:158\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:142\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:141\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:143\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b:_\b:_\bg_\be_\bt_\bm_\ba_\bt\n+const M & getmat() const override\n+get matrix via *\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:164\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+SolverCategory::Category category() const override\n+Category of the solver (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:170\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(const X &x, Y &y) const override\n+apply operator to x:\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:152\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+export types\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:140\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00212.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00212.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: owneroverlapcopy.hh File Reference\n+dune-istl: preconditioners.hh File Reference\n \n \n \n \n \n \n \n@@ -72,94 +72,98 @@\n

  • dune
  • istl
  • \n
    \n
    \n \n
    \n \n-

    Classes providing communication interfaces for overlapping Schwarz methods. \n+

    Define general preconditioner interface. \n More...

    \n-
    #include <new>
    \n+
    #include <cmath>
    \n+#include <complex>
    \n #include <iostream>
    \n-#include <vector>
    \n-#include <list>
    \n-#include <map>
    \n-#include <set>
    \n-#include <tuple>
    \n-#include "cmath"
    \n-#include <mpi.h>
    \n-#include <dune/common/enumset.hh>
    \n-#include <dune/common/parallel/indexset.hh>
    \n-#include <dune/common/parallel/communicator.hh>
    \n-#include <dune/common/parallel/remoteindices.hh>
    \n-#include <dune/common/parallel/mpicommunication.hh>
    \n-#include "solvercategory.hh"
    \n-#include "istlexception.hh"
    \n-#include <dune/common/parallel/communication.hh>
    \n-#include <dune/istl/matrixmarket.hh>
    \n+#include <iomanip>
    \n+#include <memory>
    \n+#include <string>
    \n+#include <dune/common/simd/simd.hh>
    \n+#include <dune/common/parametertree.hh>
    \n+#include <dune/istl/solverregistry.hh>
    \n+#include "preconditioner.hh"
    \n+#include "solver.hh"
    \n+#include "solvercategory.hh"
    \n+#include "istlexception.hh"
    \n+#include "matrixutils.hh"
    \n+#include "gsetc.hh"
    \n+#include "ildl.hh"
    \n+#include "ilu.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    struct  Dune::OwnerOverlapCopyAttributeSet
     Attribute set for overlapping Schwarz. More...
    class  Dune::InverseOperator2Preconditioner< O, c >
     Turns an InverseOperator into a Preconditioner. More...
     
    class  Dune::IndexInfoFromGrid< G, L >
     Information about the index distribution. More...
    class  Dune::SeqSSOR< M, X, Y, l >
     Sequential SSOR preconditioner. More...
     
    class  Dune::OwnerOverlapCopyCommunication< GlobalIdType, LocalIdType >
     A class setting up standard communication for a two-valued attribute set with owner/overlap/copy semantics. More...
    class  Dune::SeqSOR< M, X, Y, l >
     Sequential SOR preconditioner. More...
     
    struct  Dune::OwnerOverlapCopyCommunication< GlobalIdType, LocalIdType >::CopyGatherScatter< T >
     gather/scatter callback for communcation More...
    class  Dune::SeqJac< M, X, Y, l >
     The sequential jacobian preconditioner. More...
     
    struct  Dune::OwnerOverlapCopyCommunication< GlobalIdType, LocalIdType >::AddGatherScatter< T >
    class  Dune::SeqILU< M, X, Y, l >
     Sequential ILU preconditioner. More...
     
    class  Dune::Richardson< X, Y >
     Richardson preconditioner. More...
     
    class  Dune::SeqILDL< M, X, Y >
     sequential ILDL preconditioner More...
     
    \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    \n+\n+\n+\n+\n+\n+

    \n+Typedefs

    template<class M , class X , class Y , int l = 1>
    using Dune::SeqGS = SeqSOR< M, X, Y, l >
     Sequential Gauss Seidel preconditioner.
     
    \n \n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n Functions

    template<int dim, template< class, class > class Comm>
    void testRedistributed (int s)
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("ssor", defaultPreconditionerBlockLevelCreator< Dune::SeqSSOR >())
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("sor", defaultPreconditionerBlockLevelCreator< Dune::SeqSOR >())
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("gs", defaultPreconditionerBlockLevelCreator< Dune::SeqGS >())
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("jac", defaultPreconditionerBlockLevelCreator< Dune::SeqJac >())
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("ilu", defaultPreconditionerBlockLevelCreator< Dune::SeqILU >())
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("richardson", [](auto tl, const auto &, const ParameterTree &config){ using D=typename Dune::TypeListElement< 1, decltype(tl)>::type;using R=typename Dune::TypeListElement< 2, decltype(tl)>::type;return std::make_shared< Richardson< D, R > >(config);})
     
     Dune::DUNE_REGISTER_PRECONDITIONER ("ildl", defaultPreconditionerCreator< Dune::SeqILDL >())
     
    \n

    Detailed Description

    \n-

    Classes providing communication interfaces for overlapping Schwarz methods.

    \n-
    Author
    Peter Bastian
    \n-

    Function Documentation

    \n-\n-

    ◆ testRedistributed()

    \n-\n-
    \n-
    \n-
    \n-template<int dim, template< class, class > class Comm>
    \n- \n- \n- \n- \n- \n- \n- \n- \n-
    void testRedistributed (int s)
    \n-
    \n-\n-
    \n-
    \n-
    \n+

    Define general preconditioner interface.

    \n+

    Wrap the methods implemented by ISTL in this interface. However, the interface is extensible such that new preconditioners can be implemented and used with the solvers.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,65 +1,89 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-owneroverlapcopy.hh File Reference\n-_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-Classes providing communication interfaces for overlapping Schwarz methods.\n-_\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bT_\by_\bp_\be_\bd_\be_\bf_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+preconditioners.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs \u00bb _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bs\n+Define general preconditioner interface. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n #include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \"cmath\"\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh>\n+#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\"\n+#include \"_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\"\n #include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n #include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bm_\ba_\br_\bk_\be_\bt_\b._\bh_\bh>\n+#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n+#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n+#include \"_\bi_\bl_\bd_\bl_\b._\bh_\bh\"\n+#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n-\u00a0 Attribute set for overlapping Schwarz. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bO_\b,_\b _\bc_\b _\b>\n+\u00a0 Turns an _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br into a _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b<_\b _\bG_\b,_\b _\bL_\b _\b>\n-\u00a0 Information about the index distribution. _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n+\u00a0 Sequential SSOR preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,_\b _\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b _\b>\n-\u00a0 A class setting up standard communication for a two-valued attribute\n- set with owner/overlap/copy semantics. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,_\b _\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b _\b>_\b:_\b:\n- _\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bT_\b _\b>\n-\u00a0 gather/scatter callback for communcation _\bM_\bo_\br_\be_\b._\b._\b.\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n+\u00a0 Sequential SOR preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,_\b _\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b _\b>_\b:_\b:\n- _\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bT_\b _\b>\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n+\u00a0 The sequential jacobian preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b,_\b _\bl_\b _\b>\n+\u00a0 Sequential _\bI_\bL_\bU preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b<_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0 _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn preconditioner. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0 sequential ILDL preconditioner _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+T\bTy\byp\bpe\bed\bde\bef\bfs\bs\n+template\n+using\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bG_\bS = _\bS_\be_\bq_\bS_\bO_\bR< M, X, Y, l >\n+\u00a0 Sequential Gauss Seidel preconditioner.\n+\u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template class Comm>\n-void\u00a0 _\bt_\be_\bs_\bt_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd (int s)\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"ssor\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"sor\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"gs\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bG_\bS >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"jac\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"ilu\",\n+ _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bB_\bl_\bo_\bc_\bk_\bL_\be_\bv_\be_\bl_\bC_\br_\be_\ba_\bt_\bo_\br< _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU >())\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"richardson\", [](auto tl, const auto &,\n+ const ParameterTree &config){ using D=typename Dune::TypeListElement< 1,\n+ decltype(tl)>::type;using R=typename Dune::TypeListElement< 2, decltype\n+ (tl)>::type;return std::make_shared< _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn< D, R > >(config);})\n+\u00a0\n+\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR (\"ildl\", _\bd_\be_\bf_\ba_\bu_\bl_\bt_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\bC_\br_\be_\ba_\bt_\bo_\br<\n+ _\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL >())\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Classes providing communication interfaces for overlapping Schwarz methods.\n- Author\n- Peter Bastian\n-*\b**\b**\b**\b**\b* F\bFu\bun\bnc\bct\bti\bio\bon\bn D\bDo\boc\bcu\bum\bme\ben\bnt\bta\bat\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-*\b**\b**\b**\b**\b* _\b?\b\u25c6_\b?\b\u00a0t\bte\bes\bst\btR\bRe\bed\bdi\bis\bst\btr\bri\bib\bbu\but\bte\bed\bd(\b()\b) *\b**\b**\b**\b**\b*\n-template class Comm>\n-void testRedistributed ( int\u00a0 s\bs )\n+Define general preconditioner interface.\n+Wrap the methods implemented by ISTL in this interface. However, the interface\n+is extensible such that new preconditioners can be implemented and used with\n+the solvers.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00212_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00212_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: owneroverlapcopy.hh Source File\n+dune-istl: preconditioners.hh Source File\n \n \n \n \n \n \n \n@@ -74,712 +74,738 @@\n \n
    \n \n
    \n
    \n
    \n-
    owneroverlapcopy.hh
    \n+
    preconditioners.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_OWNEROVERLAPCOPY_HH
    \n-
    6#define DUNE_ISTL_OWNEROVERLAPCOPY_HH
    \n+
    5#ifndef DUNE_ISTL_PRECONDITIONERS_HH
    \n+
    6#define DUNE_ISTL_PRECONDITIONERS_HH
    \n
    7
    \n-
    8#include <new>
    \n-
    9#include <iostream>
    \n-
    10#include <vector>
    \n-
    11#include <list>
    \n-
    12#include <map>
    \n-
    13#include <set>
    \n-
    14#include <tuple>
    \n-
    15
    \n-
    16#include "cmath"
    \n+
    8#include <cmath>
    \n+
    9#include <complex>
    \n+
    10#include <iostream>
    \n+
    11#include <iomanip>
    \n+
    12#include <memory>
    \n+
    13#include <string>
    \n+
    14
    \n+
    15#include <dune/common/simd/simd.hh>
    \n+
    16#include <dune/common/parametertree.hh>
    \n
    17
    \n-
    18// MPI header
    \n-
    19#if HAVE_MPI
    \n-
    20#include <mpi.h>
    \n-
    21#endif
    \n-
    22
    \n-
    23#include <dune/common/enumset.hh>
    \n-
    24
    \n-
    25#if HAVE_MPI
    \n-
    26#include <dune/common/parallel/indexset.hh>
    \n-
    27#include <dune/common/parallel/communicator.hh>
    \n-
    28#include <dune/common/parallel/remoteindices.hh>
    \n-
    29#include <dune/common/parallel/mpicommunication.hh>
    \n-
    30#endif
    \n-
    31
    \n-
    32#include "solvercategory.hh"
    \n-
    33#include "istlexception.hh"
    \n-
    34#include <dune/common/parallel/communication.hh>
    \n-\n-
    36
    \n-
    37template<int dim, template<class,class> class Comm>
    \n-\n-
    39
    \n-
    40
    \n-
    41namespace Dune {
    \n-
    42
    \n-
    \n-\n-
    59 {
    \n-
    \n-\n-\n-
    62 };
    \n-
    \n-
    63 };
    \n-
    \n-
    64
    \n-
    76 template <class G, class L>
    \n-
    \n-\n-
    78 {
    \n-
    79 public:
    \n-
    81 typedef G GlobalIdType;
    \n-
    82
    \n-
    84 typedef L LocalIdType;
    \n-
    85
    \n-
    92 typedef std::tuple<GlobalIdType,LocalIdType,int> IndexTripel;
    \n-
    99 typedef std::tuple<int,GlobalIdType,int> RemoteIndexTripel;
    \n-
    100
    \n-
    \n-\n-
    107 {
    \n-
    108 if (std::get<2>(x)!=OwnerOverlapCopyAttributeSet::owner &&
    \n-\n-\n-
    111 DUNE_THROW(ISTLError,"OwnerOverlapCopyCommunication: global index not in index set");
    \n-
    112 localindices.insert(x);
    \n-
    113 }
    \n-
    \n-
    114
    \n-
    \n-\n-
    121 {
    \n-
    122 if (std::get<2>(x)!=OwnerOverlapCopyAttributeSet::owner &&
    \n-\n-\n-
    125 DUNE_THROW(ISTLError,"OwnerOverlapCopyCommunication: global index not in index set");
    \n-
    126 remoteindices.insert(x);
    \n-
    127 }
    \n+\n+
    19#include "preconditioner.hh"
    \n+
    20#include "solver.hh"
    \n+
    21#include "solvercategory.hh"
    \n+
    22#include "istlexception.hh"
    \n+
    23#include "matrixutils.hh"
    \n+
    24#include "gsetc.hh"
    \n+
    25#include "ildl.hh"
    \n+
    26#include "ilu.hh"
    \n+
    27
    \n+
    28
    \n+
    29namespace Dune {
    \n+
    72 template<class O, int c = -1>
    \n+
    \n+\n+
    74 public Preconditioner<typename O::domain_type, typename O::range_type>
    \n+
    75 {
    \n+
    76 public:
    \n+
    78 typedef typename O::domain_type domain_type;
    \n+
    80 typedef typename O::range_type range_type;
    \n+
    82 typedef typename range_type::field_type field_type;
    \n+
    84 typedef Simd::Scalar<field_type> scalar_field_type;
    \n+
    86 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n+
    88 typedef O InverseOperator;
    \n+
    89
    \n+
    \n+\n+
    95 : inverse_operator_(inverse_operator)
    \n+
    96 {
    \n+
    97 if(c != -1 && SolverCategory::category(inverse_operator_) != c)
    \n+
    98 DUNE_THROW(InvalidStateException, "User-supplied solver category does not match that of the given inverse operator");
    \n+
    99 }
    \n
    \n+
    100
    \n+
    \n+
    101 virtual void pre(domain_type&,range_type&)
    \n+
    102 {}
    \n+
    \n+
    103
    \n+
    \n+
    104 virtual void apply(domain_type& v, const range_type& d)
    \n+
    105 {
    \n+\n+
    107 range_type copy(d);
    \n+
    108 inverse_operator_.apply(v, copy, res);
    \n+
    109 }
    \n+
    \n+
    110
    \n+
    \n+
    111 virtual void post(domain_type&)
    \n+
    112 {}
    \n+
    \n+
    113
    \n+
    \n+\n+
    116 {
    \n+
    117 return SolverCategory::category(inverse_operator_);
    \n+
    118 }
    \n+
    \n+
    119
    \n+
    120 private:
    \n+
    121 InverseOperator& inverse_operator_;
    \n+
    122 };
    \n+
    \n+
    123
    \n+
    124 //=====================================================================
    \n+
    125 // Implementation of this interface for sequential ISTL-preconditioners
    \n+
    126 //=====================================================================
    \n+
    127
    \n
    128
    \n-
    \n-
    133 const std::set<IndexTripel>& localIndices () const
    \n-
    134 {
    \n-
    135 return localindices;
    \n-
    136 }
    \n-
    \n-
    137
    \n-
    \n-
    142 const std::set<RemoteIndexTripel>& remoteIndices () const
    \n-
    143 {
    \n-
    144 return remoteindices;
    \n-
    145 }
    \n-
    \n-
    146
    \n-
    \n-
    150 void clear ()
    \n-
    151 {
    \n-
    152 localindices.clear();
    \n-
    153 remoteindices.clear();
    \n-
    154 }
    \n-
    \n+
    140 template<class M, class X, class Y, int l=1>
    \n+
    \n+
    141 class SeqSSOR : public Preconditioner<X,Y> {
    \n+
    142 public:
    \n+
    144 typedef M matrix_type;
    \n+
    146 typedef X domain_type;
    \n+
    148 typedef Y range_type;
    \n+
    150 typedef typename X::field_type field_type;
    \n+
    152 typedef Simd::Scalar<field_type> scalar_field_type;
    \n+
    154 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n
    155
    \n-
    156 private:
    \n-
    158 std::set<IndexTripel> localindices;
    \n-
    160 std::set<RemoteIndexTripel> remoteindices;
    \n-
    161 };
    \n-
    \n-
    162
    \n-
    163
    \n-
    164#if HAVE_MPI
    \n-
    165
    \n-
    172 template <class GlobalIdType, class LocalIdType=int>
    \n-
    \n-\n-
    174 {
    \n-
    175 template<typename M, typename G, typename L>
    \n-
    176 friend void loadMatrixMarket(M&,
    \n-
    177 const std::string&,
    \n-\n-
    179 bool);
    \n-
    180 // used types
    \n-\n-\n-
    183 typedef typename std::set<IndexTripel>::const_iterator localindex_iterator;
    \n-
    184 typedef typename std::set<RemoteIndexTripel>::const_iterator remoteindex_iterator;
    \n-\n-
    186 typedef Dune::ParallelLocalIndex<AttributeSet> LI;
    \n-
    187 public:
    \n-
    188 typedef Dune::ParallelIndexSet<GlobalIdType,LI,512> PIS;
    \n-
    189 typedef Dune::RemoteIndices<PIS> RI;
    \n-
    190 typedef Dune::RemoteIndexListModifier<PIS,typename RI::Allocator,false> RILM;
    \n-
    191 typedef typename RI::RemoteIndex RX;
    \n-
    192 typedef Dune::BufferedCommunicator BC;
    \n-
    193 typedef Dune::Interface IF;
    \n-
    194 typedef EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::owner> OwnerSet;
    \n-
    195 typedef EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::copy> CopySet;
    \n-
    196 typedef Combine<EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::owner>,EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::overlap>,AttributeSet> OwnerOverlapSet;
    \n-
    197 typedef Dune::AllSet<AttributeSet> AllSet;
    \n-
    198 protected:
    \n-
    199
    \n-
    200
    \n-
    202 template<typename T>
    \n-
    \n-\n-
    204 {
    \n-
    205 typedef typename CommPolicy<T>::IndexedType V;
    \n-
    206
    \n-
    \n-
    207 static V gather(const T& a, std::size_t i)
    \n-
    208 {
    \n-
    209 return a[i];
    \n-
    210 }
    \n-
    \n-
    211
    \n-
    \n-
    212 static void scatter(T& a, V v, std::size_t i)
    \n-
    213 {
    \n-
    214 a[i] = v;
    \n-
    215 }
    \n-
    \n-
    216 };
    \n-
    \n-
    217 template<typename T>
    \n-
    \n-\n-
    219 {
    \n-
    220 typedef typename CommPolicy<T>::IndexedType V;
    \n-
    221
    \n-
    \n-
    222 static V gather(const T& a, std::size_t i)
    \n-
    223 {
    \n-
    224 return a[i];
    \n-
    225 }
    \n-
    \n-
    226
    \n-
    \n-
    227 static void scatter(T& a, V v, std::size_t i)
    \n-
    228 {
    \n-
    229 a[i] += v;
    \n-
    230 }
    \n-
    \n-
    231 };
    \n+
    \n+
    163 SeqSSOR (const M& A, int n, real_field_type w)
    \n+
    164 : _A_(A), _n(n), _w(w)
    \n+
    165 {
    \n+\n+
    167 }
    \n+
    \n+
    168
    \n+
    \n+
    182 SeqSSOR (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
    \n+
    183 : SeqSSOR(A->getmat(), configuration)
    \n+
    184 {}
    \n+
    \n+
    185
    \n+
    \n+
    199 SeqSSOR (const M& A, const ParameterTree& configuration)
    \n+
    200 : SeqSSOR(A, configuration.get<int>("iterations",1), configuration.get<real_field_type>("relaxation",1.0))
    \n+
    201 {}
    \n+
    \n+
    202
    \n+
    \n+
    208 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)
    \n+
    209 {}
    \n+
    \n+
    210
    \n+
    \n+
    216 virtual void apply (X& v, const Y& d)
    \n+
    217 {
    \n+
    218 for (int i=0; i<_n; i++) {
    \n+
    219 bsorf(_A_,v,d,_w,BL<l>());
    \n+
    220 bsorb(_A_,v,d,_w,BL<l>());
    \n+
    221 }
    \n+
    222 }
    \n+
    \n+
    223
    \n+
    \n+
    229 virtual void post ([[maybe_unused]] X& x)
    \n+
    230 {}
    \n
    \n-
    232
    \n+
    231
    \n
    \n-\n+\n
    234 {
    \n-
    235 if (OwnerOverlapToAllInterfaceBuilt)
    \n-
    236 OwnerOverlapToAllInterface.free();
    \n-
    237 OwnerOverlapSet sourceFlags;
    \n-
    238 Combine<OwnerOverlapSet,EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::copy>,AttributeSet>
    \n-
    239 destFlags;
    \n-
    240 OwnerOverlapToAllInterface.build(ri,sourceFlags,destFlags);
    \n-
    241 OwnerOverlapToAllInterfaceBuilt = true;
    \n-
    242 }
    \n-
    \n-
    243
    \n-
    \n-\n-
    245 {
    \n-
    246 if (OwnerToAllInterfaceBuilt)
    \n-
    247 OwnerToAllInterface.free();
    \n-
    248 OwnerSet sourceFlags;
    \n-
    249 AllSet destFlags;
    \n-
    250 OwnerToAllInterface.build(ri,sourceFlags,destFlags);
    \n-
    251 OwnerToAllInterfaceBuilt = true;
    \n-
    252 }
    \n-
    \n-
    253
    \n-
    \n-\n-
    255 {
    \n-
    256 if (OwnerCopyToAllInterfaceBuilt)
    \n-
    257 OwnerCopyToAllInterface.free();
    \n-
    258
    \n-
    259 typedef Combine<EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::owner>,EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::copy>,AttributeSet> OwnerCopySet;
    \n-
    260 OwnerCopySet sourceFlags;
    \n-
    261 Combine<OwnerCopySet,EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::overlap>,AttributeSet> destFlags;
    \n-
    262 OwnerCopyToAllInterface.build(ri,sourceFlags,destFlags);
    \n-
    263 OwnerCopyToAllInterfaceBuilt = true;
    \n-
    264 }
    \n-
    \n-
    265
    \n-
    \n-\n-
    267 {
    \n-
    268 if (OwnerCopyToOwnerCopyInterfaceBuilt)
    \n-
    269 OwnerCopyToOwnerCopyInterface.free();
    \n-
    270
    \n-
    271
    \n-
    272 typedef Combine<EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::owner>,EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::copy>,AttributeSet> OwnerCopySet;
    \n-
    273 OwnerCopySet sourceFlags;
    \n-
    274 OwnerCopySet destFlags;
    \n-
    275 OwnerCopyToOwnerCopyInterface.build(ri,sourceFlags,destFlags);
    \n-
    276 OwnerCopyToOwnerCopyInterfaceBuilt = true;
    \n-
    277 }
    \n-
    \n-
    278
    \n-
    \n-\n-
    280 {
    \n-
    281 if (CopyToAllInterfaceBuilt)
    \n-
    282 CopyToAllInterface.free();
    \n-
    283 CopySet sourceFlags;
    \n-
    284 AllSet destFlags;
    \n-
    285 CopyToAllInterface.build(ri,sourceFlags,destFlags);
    \n-
    286 CopyToAllInterfaceBuilt = true;
    \n+\n+
    236 }
    \n+
    \n+
    237
    \n+
    238 private:
    \n+
    240 const M& _A_;
    \n+
    242 int _n;
    \n+\n+
    245 };
    \n+
    \n+
    246 DUNE_REGISTER_PRECONDITIONER("ssor", defaultPreconditionerBlockLevelCreator<Dune::SeqSSOR>());
    \n+
    247
    \n+
    248
    \n+
    260 template<class M, class X, class Y, int l=1>
    \n+
    \n+
    261 class SeqSOR : public Preconditioner<X,Y> {
    \n+
    262 public:
    \n+
    264 typedef M matrix_type;
    \n+
    266 typedef X domain_type;
    \n+
    268 typedef Y range_type;
    \n+
    270 typedef typename X::field_type field_type;
    \n+
    272 typedef Simd::Scalar<field_type> scalar_field_type;
    \n+
    274 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n+
    275
    \n+
    \n+
    283 SeqSOR (const M& A, int n, real_field_type w)
    \n+
    284 : _A_(A), _n(n), _w(w)
    \n+
    285 {
    \n+\n
    287 }
    \n
    \n
    288
    \n-
    289 public:
    \n-
    290
    \n-
    \n-\n-
    296 return category_;
    \n-
    297 }
    \n-
    \n-
    298
    \n-
    \n-
    299 const Communication<MPI_Comm>& communicator() const
    \n-
    300 {
    \n-
    301 return cc;
    \n-
    302 }
    \n-
    \n-
    303
    \n-
    310 template<class T>
    \n-
    \n-
    311 void copyOwnerToAll (const T& source, T& dest) const
    \n-
    312 {
    \n-
    313 if (!OwnerToAllInterfaceBuilt)
    \n-\n-\n-
    316 communicator.template build<T>(OwnerToAllInterface);
    \n-
    317 communicator.template forward<CopyGatherScatter<T> >(source,dest);
    \n-
    318 communicator.free();
    \n-
    319 }
    \n+
    \n+
    302 SeqSOR (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
    \n+
    303 : SeqSOR(A->getmat(), configuration)
    \n+
    304 {}
    \n+
    \n+
    305
    \n+
    \n+
    319 SeqSOR (const M& A, const ParameterTree& configuration)
    \n+
    320 : SeqSOR(A, configuration.get<int>("iterations",1), configuration.get<real_field_type>("relaxation",1.0))
    \n+
    321 {}
    \n
    \n-
    320
    \n-
    327 template<class T>
    \n+
    322
    \n
    \n-
    328 void copyCopyToAll (const T& source, T& dest) const
    \n-
    329 {
    \n-
    330 if (!CopyToAllInterfaceBuilt)
    \n-\n-\n-
    333 communicator.template build<T>(CopyToAllInterface);
    \n-
    334 communicator.template forward<CopyGatherScatter<T> >(source,dest);
    \n-
    335 communicator.free();
    \n-
    336 }
    \n-
    \n-
    337
    \n-
    344 template<class T>
    \n-
    \n-
    345 void addOwnerOverlapToAll (const T& source, T& dest) const
    \n-
    346 {
    \n-
    347 if (!OwnerOverlapToAllInterfaceBuilt)
    \n-\n-\n-
    350 communicator.template build<T>(OwnerOverlapToAllInterface);
    \n-
    351 communicator.template forward<AddGatherScatter<T> >(source,dest);
    \n-
    352 communicator.free();
    \n-
    353 }
    \n-
    \n-
    354
    \n-
    361 template<class T>
    \n-
    \n-
    362 void addOwnerCopyToAll (const T& source, T& dest) const
    \n-
    363 {
    \n-
    364 if (!OwnerCopyToAllInterfaceBuilt)
    \n-\n-\n-
    367 communicator.template build<T>(OwnerCopyToAllInterface);
    \n-
    368 communicator.template forward<AddGatherScatter<T> >(source,dest);
    \n-
    369 communicator.free();
    \n-
    370 }
    \n-
    \n-
    371
    \n-
    378 template<class T>
    \n-
    \n-
    379 void addOwnerCopyToOwnerCopy (const T& source, T& dest) const
    \n-
    380 {
    \n-
    381 if (!OwnerCopyToOwnerCopyInterfaceBuilt)
    \n-\n-\n-
    384 communicator.template build<T>(OwnerCopyToOwnerCopyInterface);
    \n-
    385 communicator.template forward<AddGatherScatter<T> >(source,dest);
    \n-
    386 communicator.free();
    \n-
    387 }
    \n-
    \n-
    388
    \n-
    389
    \n-
    397 template<class T1, class T2>
    \n-
    \n-
    398 void dot (const T1& x, const T1& y, T2& result) const
    \n-
    399 {
    \n-
    400 using real_type = typename FieldTraits<typename T1::field_type>::real_type;
    \n-
    401 // set up mask vector
    \n-
    402 if (mask.size()!=static_cast<typename std::vector<double>::size_type>(x.size()))
    \n-
    403 {
    \n-
    404 mask.resize(x.size());
    \n-
    405 for (typename std::vector<double>::size_type i=0; i<mask.size(); i++)
    \n-
    406 mask[i] = 1;
    \n-
    407 for (typename PIS::const_iterator i=pis.begin(); i!=pis.end(); ++i)
    \n-
    408 if (i->local().attribute()!=OwnerOverlapCopyAttributeSet::owner)
    \n-
    409 mask[i->local().local()] = 0;
    \n-
    410 }
    \n-
    411 result = T2(0.0);
    \n-
    412
    \n-
    413 for (typename T1::size_type i=0; i<x.size(); i++)
    \n-
    414 result += (x[i]*(y[i]))*static_cast<real_type>(mask[i]);
    \n-
    415 result = cc.sum(result);
    \n-
    416 }
    \n-
    \n-
    417
    \n-
    424 template<class T1>
    \n-
    \n-
    425 typename FieldTraits<typename T1::field_type>::real_type norm (const T1& x) const
    \n-
    426 {
    \n-
    427 using real_type = typename FieldTraits<typename T1::field_type>::real_type;
    \n-
    428
    \n-
    429 // set up mask vector
    \n-
    430 if (mask.size()!=static_cast<typename std::vector<double>::size_type>(x.size()))
    \n-
    431 {
    \n-
    432 mask.resize(x.size());
    \n-
    433 for (typename std::vector<double>::size_type i=0; i<mask.size(); i++)
    \n-
    434 mask[i] = 1;
    \n-
    435 for (typename PIS::const_iterator i=pis.begin(); i!=pis.end(); ++i)
    \n-
    436 if (i->local().attribute()!=OwnerOverlapCopyAttributeSet::owner)
    \n-
    437 mask[i->local().local()] = 0;
    \n-
    438 }
    \n-
    439 auto result = real_type(0.0);
    \n-
    440 for (typename T1::size_type i=0; i<x.size(); i++)
    \n-
    441 result += Impl::asVector(x[i]).two_norm2()*mask[i];
    \n-
    442 using std::sqrt;
    \n-
    443 return sqrt(cc.sum(result));
    \n-
    444 }
    \n-
    \n-
    445
    \n-
    446 typedef Dune::EnumItem<AttributeSet,OwnerOverlapCopyAttributeSet::copy> CopyFlags;
    \n-
    447
    \n-
    449 typedef Dune::ParallelIndexSet<GlobalIdType,LI,512> ParallelIndexSet;
    \n-
    450
    \n-
    452 typedef Dune::RemoteIndices<PIS> RemoteIndices;
    \n-
    453
    \n-
    456 typedef Dune::GlobalLookupIndexSet<ParallelIndexSet> GlobalLookupIndexSet;
    \n-
    457
    \n-
    \n-\n-
    463 {
    \n-
    464 return pis;
    \n-
    465 }
    \n-
    \n-
    466
    \n-
    \n-\n-
    472 {
    \n-
    473 return ri;
    \n-
    474 }
    \n-
    \n-
    475
    \n-
    \n-\n-
    481 {
    \n-
    482 return pis;
    \n-
    483 }
    \n-
    \n-
    484
    \n-
    485
    \n-
    \n-\n-
    491 {
    \n-
    492 return ri;
    \n-
    493 }
    \n-
    \n-
    494
    \n-
    \n-\n-
    496 {
    \n-
    497 if(globalLookup_) {
    \n-
    498 if(pis.seqNo()==oldseqNo)
    \n-
    499 // Nothing changed!
    \n-
    500 return;
    \n-
    501 delete globalLookup_;
    \n-
    502 }
    \n-
    503
    \n-
    504 globalLookup_ = new GlobalLookupIndexSet(pis);
    \n-
    505 oldseqNo = pis.seqNo();
    \n+
    328 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)
    \n+
    329 {}
    \n+
    \n+
    330
    \n+
    \n+
    336 virtual void apply (X& v, const Y& d)
    \n+
    337 {
    \n+
    338 this->template apply<true>(v,d);
    \n+
    339 }
    \n+
    \n+
    340
    \n+
    349 template<bool forward>
    \n+
    \n+
    350 void apply(X& v, const Y& d)
    \n+
    351 {
    \n+
    352 if(forward)
    \n+
    353 for (int i=0; i<_n; i++) {
    \n+
    354 bsorf(_A_,v,d,_w,BL<l>());
    \n+
    355 }
    \n+
    356 else
    \n+
    357 for (int i=0; i<_n; i++) {
    \n+
    358 bsorb(_A_,v,d,_w,BL<l>());
    \n+
    359 }
    \n+
    360 }
    \n+
    \n+
    361
    \n+
    \n+
    367 virtual void post ([[maybe_unused]] X& x)
    \n+
    368 {}
    \n+
    \n+
    369
    \n+
    \n+\n+
    372 {
    \n+\n+
    374 }
    \n+
    \n+
    375
    \n+
    376 private:
    \n+
    378 const M& _A_;
    \n+
    380 int _n;
    \n+\n+
    383 };
    \n+
    \n+
    384 DUNE_REGISTER_PRECONDITIONER("sor", defaultPreconditionerBlockLevelCreator<Dune::SeqSOR>());
    \n+
    385
    \n+
    386
    \n+
    397 template<class M, class X, class Y, int l=1>
    \n+\n+
    399 DUNE_REGISTER_PRECONDITIONER("gs", defaultPreconditionerBlockLevelCreator<Dune::SeqGS>());
    \n+
    400
    \n+
    411 template<class M, class X, class Y, int l=1>
    \n+
    \n+\n+
    413 public:
    \n+
    415 typedef M matrix_type;
    \n+
    417 typedef X domain_type;
    \n+
    419 typedef Y range_type;
    \n+
    421 typedef typename X::field_type field_type;
    \n+
    423 typedef Simd::Scalar<field_type> scalar_field_type;
    \n+
    425 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n+
    426
    \n+
    \n+
    434 SeqJac (const M& A, int n, real_field_type w)
    \n+
    435 : _A_(A), _n(n), _w(w)
    \n+
    436 {
    \n+\n+
    438 }
    \n+
    \n+
    439
    \n+
    \n+
    453 SeqJac (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
    \n+
    454 : SeqJac(A->getmat(), configuration)
    \n+
    455 {}
    \n+
    \n+
    456
    \n+
    \n+
    470 SeqJac (const M& A, const ParameterTree& configuration)
    \n+
    471 : SeqJac(A, configuration.get<int>("iterations",1), configuration.get<real_field_type>("relaxation",1.0))
    \n+
    472 {}
    \n+
    \n+
    473
    \n+
    \n+
    479 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)
    \n+
    480 {}
    \n+
    \n+
    481
    \n+
    \n+
    487 virtual void apply (X& v, const Y& d)
    \n+
    488 {
    \n+
    489 for (int i=0; i<_n; i++) {
    \n+
    490 dbjac(_A_,v,d,_w,BL<l>());
    \n+
    491 }
    \n+
    492 }
    \n+
    \n+
    493
    \n+
    \n+
    499 virtual void post ([[maybe_unused]] X& x)
    \n+
    500 {}
    \n+
    \n+
    501
    \n+
    \n+\n+
    504 {
    \n+\n
    506 }
    \n
    \n
    507
    \n-
    \n-
    508 void buildGlobalLookup(std::size_t size)
    \n-
    509 {
    \n-
    510 if(globalLookup_) {
    \n-
    511 if(pis.seqNo()==oldseqNo)
    \n-
    512 // Nothing changed!
    \n-
    513 return;
    \n-
    514 delete globalLookup_;
    \n-
    515 }
    \n-
    516 globalLookup_ = new GlobalLookupIndexSet(pis, size);
    \n-
    517 oldseqNo = pis.seqNo();
    \n-
    518 }
    \n-
    \n+
    508 private:
    \n+
    510 const M& _A_;
    \n+
    512 int _n;
    \n+
    514 real_field_type _w;
    \n+
    515 };
    \n+
    \n+
    516 DUNE_REGISTER_PRECONDITIONER("jac", defaultPreconditionerBlockLevelCreator<Dune::SeqJac>());
    \n+
    517
    \n+
    518
    \n
    519
    \n-
    \n-\n-
    521 {
    \n-
    522 delete globalLookup_;
    \n-
    523 globalLookup_=0;
    \n-
    524 }
    \n-
    \n-
    525
    \n-
    \n-\n-
    527 {
    \n-
    528 assert(globalLookup_ != 0);
    \n-
    529 return *globalLookup_;
    \n-
    530 }
    \n-
    \n-
    531
    \n-
    537 template<class T1>
    \n-
    \n-
    538 void project (T1& x) const
    \n-
    539 {
    \n-
    540 for (typename PIS::const_iterator i=pis.begin(); i!=pis.end(); ++i)
    \n-
    541 if (i->local().attribute()==OwnerOverlapCopyAttributeSet::copy)
    \n-
    542 x[i->local().local()] = 0;
    \n-
    543 }
    \n-
    \n-
    544
    \n-
    \n-\n-\n-
    556 bool freecomm_ = false)
    \n-
    557 : comm(comm_), cc(comm_), pis(), ri(pis,pis,comm_),
    \n-
    558 OwnerToAllInterfaceBuilt(false), OwnerOverlapToAllInterfaceBuilt(false),
    \n-
    559 OwnerCopyToAllInterfaceBuilt(false), OwnerCopyToOwnerCopyInterfaceBuilt(false),
    \n-
    560 CopyToAllInterfaceBuilt(false), globalLookup_(0), category_(cat_),
    \n-
    561 freecomm(freecomm_)
    \n-
    562 {}
    \n-
    \n-
    563
    \n-
    \n-\n-
    573 : comm(MPI_COMM_WORLD), cc(MPI_COMM_WORLD), pis(), ri(pis,pis,MPI_COMM_WORLD),
    \n-
    574 OwnerToAllInterfaceBuilt(false), OwnerOverlapToAllInterfaceBuilt(false),
    \n-
    575 OwnerCopyToAllInterfaceBuilt(false), OwnerCopyToOwnerCopyInterfaceBuilt(false),
    \n-
    576 CopyToAllInterfaceBuilt(false), globalLookup_(0), category_(cat_), freecomm(false)
    \n-
    577 {}
    \n-
    \n-
    578
    \n-
    \n-\n-
    587 MPI_Comm comm_,
    \n-\n-
    589 bool freecomm_ = false)
    \n-
    590 : comm(comm_), cc(comm_), OwnerToAllInterfaceBuilt(false),
    \n-
    591 OwnerOverlapToAllInterfaceBuilt(false), OwnerCopyToAllInterfaceBuilt(false),
    \n-
    592 OwnerCopyToOwnerCopyInterfaceBuilt(false), CopyToAllInterfaceBuilt(false),
    \n-
    593 globalLookup_(0), category_(cat_), freecomm(freecomm_)
    \n-
    594 {
    \n-
    595 // set up an ISTL index set
    \n-
    596 pis.beginResize();
    \n-
    597 for (localindex_iterator i=indexinfo.localIndices().begin(); i!=indexinfo.localIndices().end(); ++i)
    \n-
    598 {
    \n-
    599 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::owner)
    \n-
    600 pis.add(std::get<0>(*i),LI(std::get<1>(*i),OwnerOverlapCopyAttributeSet::owner,true));
    \n-
    601 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::overlap)
    \n-
    602 pis.add(std::get<0>(*i),LI(std::get<1>(*i),OwnerOverlapCopyAttributeSet::overlap,true));
    \n-
    603 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::copy)
    \n-
    604 pis.add(std::get<0>(*i),LI(std::get<1>(*i),OwnerOverlapCopyAttributeSet::copy,true));
    \n-
    605 // std::cout << cc.rank() << ": adding index " << std::get<0>(*i) << " " << std::get<1>(*i) << " " << std::get<2>(*i) << std::endl;
    \n-
    606 }
    \n-
    607 pis.endResize();
    \n-
    608
    \n-
    609 // build remote indices WITHOUT communication
    \n-
    610 // std::cout << cc.rank() << ": build remote indices" << std::endl;
    \n-
    611 ri.setIndexSets(pis,pis,cc);
    \n-
    612 if (indexinfo.remoteIndices().size()>0)
    \n-
    613 {
    \n-
    614 remoteindex_iterator i=indexinfo.remoteIndices().begin();
    \n-
    615 int p = std::get<0>(*i);
    \n-
    616 RILM modifier = ri.template getModifier<false,true>(p);
    \n-
    617 typename PIS::const_iterator pi=pis.begin();
    \n-
    618 for ( ; i!=indexinfo.remoteIndices().end(); ++i)
    \n-
    619 {
    \n-
    620 // handle processor change
    \n-
    621 if (p!=std::get<0>(*i))
    \n-
    622 {
    \n-
    623 p = std::get<0>(*i);
    \n-
    624 modifier = ri.template getModifier<false,true>(p);
    \n-
    625 pi=pis.begin();
    \n-
    626 }
    \n-
    627
    \n-
    628 // position to correct entry in parallel index set
    \n-
    629 while (pi->global()!=std::get<1>(*i) && pi!=pis.end())
    \n-
    630 ++pi;
    \n-
    631 if (pi==pis.end())
    \n-
    632 DUNE_THROW(ISTLError,"OwnerOverlapCopyCommunication: global index not in index set");
    \n-
    633
    \n-
    634 // insert entry
    \n-
    635 // std::cout << cc.rank() << ": adding remote index " << std::get<0>(*i) << " " << std::get<1>(*i) << " " << std::get<2>(*i) << std::endl;
    \n-
    636 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::owner)
    \n-
    637 modifier.insert(RX(OwnerOverlapCopyAttributeSet::owner,&(*pi)));
    \n-
    638 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::overlap)
    \n-
    639 modifier.insert(RX(OwnerOverlapCopyAttributeSet::overlap,&(*pi)));
    \n-
    640 if (std::get<2>(*i)==OwnerOverlapCopyAttributeSet::copy)
    \n-
    641 modifier.insert(RX(OwnerOverlapCopyAttributeSet::copy,&(*pi)));
    \n-
    642 }
    \n-
    643 }else{
    \n-
    644 // Force remote indices to be synced!
    \n-
    645 ri.template getModifier<false,true>(0);
    \n-
    646 }
    \n-
    647 }
    \n-
    \n-
    648
    \n-
    649 // destructor: free memory in some objects
    \n-
    \n-\n-
    651 {
    \n-
    652 ri.free();
    \n-
    653 if (OwnerToAllInterfaceBuilt) OwnerToAllInterface.free();
    \n-
    654 if (OwnerOverlapToAllInterfaceBuilt) OwnerOverlapToAllInterface.free();
    \n-
    655 if (OwnerCopyToAllInterfaceBuilt) OwnerCopyToAllInterface.free();
    \n-
    656 if (OwnerCopyToOwnerCopyInterfaceBuilt) OwnerCopyToOwnerCopyInterface.free();
    \n-
    657 if (CopyToAllInterfaceBuilt) CopyToAllInterface.free();
    \n-
    658 if (globalLookup_) delete globalLookup_;
    \n-
    659 if (freecomm==true)
    \n-
    660 if(comm!=MPI_COMM_NULL)
    \n-
    661 {
    \n-
    662#ifdef MPI_2
    \n-
    663 // If it is possible to query whether MPI_Finalize
    \n-
    664 // was called, only free the communicator before
    \n-
    665 // calling MPI_Finalize.
    \n-
    666 int wasFinalized = 0;
    \n-
    667 MPI_Finalized( &wasFinalized );
    \n-
    668 if(!wasFinalized)
    \n-
    669#endif
    \n-
    670 MPI_Comm_free(&comm);
    \n-
    671 }
    \n-
    672 }
    \n-
    \n-
    673
    \n-
    674 private:
    \n-\n-
    676 {}
    \n-
    677 MPI_Comm comm;
    \n-
    678 Communication<MPI_Comm> cc;
    \n-
    679 PIS pis;
    \n-
    680 RI ri;
    \n-
    681 mutable IF OwnerToAllInterface;
    \n-
    682 mutable bool OwnerToAllInterfaceBuilt;
    \n-
    683 mutable IF OwnerOverlapToAllInterface;
    \n-
    684 mutable bool OwnerOverlapToAllInterfaceBuilt;
    \n-
    685 mutable IF OwnerCopyToAllInterface;
    \n-
    686 mutable bool OwnerCopyToAllInterfaceBuilt;
    \n-
    687 mutable IF OwnerCopyToOwnerCopyInterface;
    \n-
    688 mutable bool OwnerCopyToOwnerCopyInterfaceBuilt;
    \n-
    689 mutable IF CopyToAllInterface;
    \n-
    690 mutable bool CopyToAllInterfaceBuilt;
    \n-
    691 mutable std::vector<double> mask;
    \n-
    692 int oldseqNo;
    \n-
    693 GlobalLookupIndexSet* globalLookup_;
    \n-
    694 const SolverCategory::Category category_;
    \n-
    695 bool freecomm;
    \n-
    696 };
    \n-
    \n-
    697
    \n-
    698#endif
    \n-
    699
    \n-
    700
    \n-
    703} // end namespace
    \n-
    704
    \n-
    705#endif
    \n-\n-\n-
    Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices.
    \n-
    void testRedistributed(int s)
    \n+
    531 template<class M, class X, class Y, int l=1>
    \n+
    \n+\n+
    533 public:
    \n+
    535 typedef typename std::remove_const<M>::type matrix_type;
    \n+
    537 typedef typename matrix_type :: block_type block_type;
    \n+
    539 typedef X domain_type;
    \n+
    541 typedef Y range_type;
    \n+
    542
    \n+
    544 typedef typename X::field_type field_type;
    \n+
    545
    \n+
    547 typedef Simd::Scalar<field_type> scalar_field_type;
    \n+
    549 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n+
    550
    \n+\n+
    553
    \n+
    \n+
    561 SeqILU (const M& A, real_field_type w, const bool resort = false )
    \n+
    562 : SeqILU( A, 0, w, resort ) // construct ILU(0)
    \n+
    563 {
    \n+
    564 }
    \n+
    \n+
    565
    \n+
    \n+
    580 SeqILU (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
    \n+
    581 : SeqILU(A->getmat(), configuration)
    \n+
    582 {}
    \n+
    \n+
    583
    \n+
    \n+
    598 SeqILU(const M& A, const ParameterTree& config)
    \n+
    599 : SeqILU(A, config.get("n", 0),
    \n+
    600 config.get<real_field_type>("relaxation", 1.0),
    \n+
    601 config.get("resort", false))
    \n+
    602 {}
    \n+
    \n+
    603
    \n+
    \n+
    612 SeqILU (const M& A, int n, real_field_type w, const bool resort = false )
    \n+
    613 : ILU_(),
    \n+
    614 lower_(),
    \n+
    615 upper_(),
    \n+
    616 inv_(),
    \n+
    617 w_(w),
    \n+
    618 wNotIdentity_([w]{using std::abs; return abs(w - real_field_type(1)) > 1e-15;}() )
    \n+
    619 {
    \n+
    620 if( n == 0 )
    \n+
    621 {
    \n+
    622 // copy A
    \n+
    623 ILU_.reset( new matrix_type( A ) );
    \n+
    624 // create ILU(0) decomposition
    \n+\n+
    626 }
    \n+
    627 else
    \n+
    628 {
    \n+
    629 // create matrix in build mode
    \n+
    630 ILU_.reset( new matrix_type( A.N(), A.M(), matrix_type::row_wise) );
    \n+
    631 // create ILU(n) decomposition
    \n+
    632 ILU::blockILUDecomposition( A, n, *ILU_ );
    \n+
    633 }
    \n+
    634
    \n+
    635 if( resort )
    \n+
    636 {
    \n+
    637 // store ILU in simple CRS format
    \n+
    638 ILU::convertToCRS( *ILU_, lower_, upper_, inv_ );
    \n+
    639 ILU_.reset();
    \n+
    640 }
    \n+
    641 }
    \n+
    \n+
    642
    \n+
    \n+
    648 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)
    \n+
    649 {}
    \n+
    \n+
    650
    \n+
    \n+
    656 virtual void apply (X& v, const Y& d)
    \n+
    657 {
    \n+
    658 if( ILU_ )
    \n+
    659 {
    \n+
    660 ILU::blockILUBacksolve( *ILU_, v, d);
    \n+
    661 }
    \n+
    662 else
    \n+
    663 {
    \n+
    664 ILU::blockILUBacksolve(lower_, upper_, inv_, v, d);
    \n+
    665 }
    \n+
    666
    \n+
    667 if( wNotIdentity_ )
    \n+
    668 {
    \n+
    669 v *= w_;
    \n+
    670 }
    \n+
    671 }
    \n+
    \n+
    672
    \n+
    \n+
    678 virtual void post ([[maybe_unused]] X& x)
    \n+
    679 {}
    \n+
    \n+
    680
    \n+
    \n+\n+
    683 {
    \n+\n+
    685 }
    \n+
    \n+
    686
    \n+
    687 protected:
    \n+
    689 std::unique_ptr< matrix_type > ILU_;
    \n+
    690
    \n+\n+\n+
    694 std::vector< block_type, typename matrix_type::allocator_type > inv_;
    \n+
    695
    \n+\n+
    699 const bool wNotIdentity_;
    \n+
    700 };
    \n+
    \n+
    701 DUNE_REGISTER_PRECONDITIONER("ilu", defaultPreconditionerBlockLevelCreator<Dune::SeqILU>());
    \n+
    702
    \n+
    703
    \n+
    712 template<class X, class Y>
    \n+
    \n+
    713 class Richardson : public Preconditioner<X,Y> {
    \n+
    714 public:
    \n+
    716 typedef X domain_type;
    \n+
    718 typedef Y range_type;
    \n+
    720 typedef typename X::field_type field_type;
    \n+
    722 typedef Simd::Scalar<field_type> scalar_field_type;
    \n+
    724 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n+
    725
    \n+
    \n+\n+
    732 _w(w)
    \n+
    733 {}
    \n+
    \n+
    734
    \n+
    \n+
    746 Richardson (const ParameterTree& configuration)
    \n+
    747 : Richardson(configuration.get<real_field_type>("relaxation", 1.0))
    \n+
    748 {}
    \n+
    \n+
    749
    \n+
    \n+
    755 virtual void pre ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)
    \n+
    756 {}
    \n+
    \n+
    757
    \n+
    \n+
    763 virtual void apply (X& v, const Y& d)
    \n+
    764 {
    \n+
    765 v = d;
    \n+
    766 v *= _w;
    \n+
    767 }
    \n+
    \n+
    768
    \n+
    \n+
    774 virtual void post ([[maybe_unused]] X& x)
    \n+
    775 {}
    \n+
    \n+
    776
    \n+
    \n+\n+
    779 {
    \n+\n+
    781 }
    \n+
    \n+
    782
    \n+
    783 private:
    \n+\n+
    786 };
    \n+
    \n+
    787 DUNE_REGISTER_PRECONDITIONER("richardson", [](auto tl, const auto& /* mat */, const ParameterTree& config){
    \n+
    788 using D = typename Dune::TypeListElement<1, decltype(tl)>::type;
    \n+
    789 using R = typename Dune::TypeListElement<2, decltype(tl)>::type;
    \n+
    790 return std::make_shared<Richardson<D,R>>(config);
    \n+
    791 });
    \n+
    792
    \n+
    793
    \n+
    804 template< class M, class X, class Y >
    \n+
    \n+\n+
    806 : public Preconditioner< X, Y >
    \n+
    807 {
    \n+
    808 typedef SeqILDL< M, X, Y > This;
    \n+\n+
    810
    \n+
    811 public:
    \n+
    813 typedef std::remove_const_t< M > matrix_type;
    \n+
    815 typedef X domain_type;
    \n+
    817 typedef Y range_type;
    \n+
    819 typedef typename X::field_type field_type;
    \n+
    821 typedef Simd::Scalar<field_type> scalar_field_type;
    \n+
    823 typedef typename FieldTraits<scalar_field_type>::real_type real_field_type;
    \n+
    824
    \n+
    \n+
    837 SeqILDL (const std::shared_ptr<const AssembledLinearOperator<M,X,Y>>& A, const ParameterTree& configuration)
    \n+
    838 : SeqILDL(A->getmat(), configuration)
    \n+
    839 {}
    \n+
    \n+
    840
    \n+
    \n+
    853 SeqILDL(const matrix_type& A, const ParameterTree& config)
    \n+
    854 : SeqILDL(A, config.get<real_field_type>("relaxation", 1.0))
    \n+
    855 {}
    \n+
    \n+
    856
    \n+
    \n+
    865 explicit SeqILDL ( const matrix_type &A, real_field_type relax = real_field_type( 1 ) )
    \n+
    866 : decomposition_( A.N(), A.M(), matrix_type::random ),
    \n+
    867 relax_( relax )
    \n+
    868 {
    \n+
    869 // setup row sizes for lower triangular matrix
    \n+
    870 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )
    \n+
    871 {
    \n+
    872 const auto &A_i = *i;
    \n+
    873 const auto ij = A_i.find( i.index() );
    \n+
    874 if( ij != A_i.end() )
    \n+
    875 decomposition_.setrowsize( i.index(), ij.offset()+1 );
    \n+
    876 else
    \n+
    877 DUNE_THROW( ISTLError, "diagonal entry missing" );
    \n+
    878 }
    \n+
    879 decomposition_.endrowsizes();
    \n+
    880
    \n+
    881 // setup row indices for lower triangular matrix
    \n+
    882 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )
    \n+
    883 {
    \n+
    884 const auto &A_i = *i;
    \n+
    885 for( auto ij = A_i.begin(); ij.index() < i.index() ; ++ij )
    \n+
    886 decomposition_.addindex( i.index(), ij.index() );
    \n+
    887 decomposition_.addindex( i.index(), i.index() );
    \n+
    888 }
    \n+
    889 decomposition_.endindices();
    \n+
    890
    \n+
    891 // copy values of lower triangular matrix
    \n+
    892 auto i = A.begin();
    \n+
    893 for( auto row = decomposition_.begin(), rowend = decomposition_.end(); row != rowend; ++row, ++i )
    \n+
    894 {
    \n+
    895 auto ij = i->begin();
    \n+
    896 for( auto col = row->begin(), colend = row->end(); col != colend; ++col, ++ij )
    \n+
    897 *col = *ij;
    \n+
    898 }
    \n+
    899
    \n+
    900 // perform ILDL decomposition
    \n+
    901 bildl_decompose( decomposition_ );
    \n+
    902 }
    \n+
    \n+
    903
    \n+
    \n+
    905 void pre ([[maybe_unused]] X &x, [[maybe_unused]] Y &b) override
    \n+
    906 {}
    \n+
    \n+
    907
    \n+
    \n+
    909 void apply ( X &v, const Y &d ) override
    \n+
    910 {
    \n+
    911 bildl_backsolve( decomposition_, v, d, true );
    \n+
    912 v *= relax_;
    \n+
    913 }
    \n+
    \n+
    914
    \n+
    \n+
    916 void post ([[maybe_unused]] X &x) override
    \n+
    917 {}
    \n+
    \n+
    918
    \n+\n+
    921
    \n+
    922 private:
    \n+
    923 matrix_type decomposition_;
    \n+
    924 real_field_type relax_;
    \n+
    925 };
    \n+
    \n+
    926 DUNE_REGISTER_PRECONDITIONER("ildl", defaultPreconditionerCreator<Dune::SeqILDL>());
    \n+
    927
    \n+
    930} // end namespace
    \n+
    931
    \n+
    932
    \n+
    933#endif
    \n+\n+
    #define DUNE_REGISTER_PRECONDITIONER(name,...)
    Definition solverregistry.hh:16
    \n+\n+
    Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
    \n+\n+\n+
    The incomplete LU factorization kernels.
    \n+
    Some handy generic functions for ISTL matrices.
    \n+
    Incomplete LDL decomposition.
    \n+
    Define general, extensible interface for inverse operators.
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n+
    void bsorb(const M &A, X &x, const Y &b, const K &w)
    SSOR step.
    Definition gsetc.hh:646
    \n+
    void dbjac(const M &A, X &x, const Y &b, const K &w)
    Jacobi step.
    Definition gsetc.hh:658
    \n+
    void bsorf(const M &A, X &x, const Y &b, const K &w)
    SOR step.
    Definition gsetc.hh:634
    \n
    Definition allocator.hh:11
    \n+
    void bildl_decompose(Matrix &A)
    compute ILDL decomposition of a symmetric matrix A
    Definition ildl.hh:88
    \n+
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n+
    void bildl_backsolve(const Matrix &A, X &v, const Y &d, bool isLowerTriangular=false)
    Definition ildl.hh:149
    \n+
    void convertToCRS(const M &A, CRS &lower, CRS &upper, InvVector &inv)
    convert ILU decomposition into CRS format for lower and upper triangular and inverse.
    Definition ilu.hh:307
    \n+
    void blockILUBacksolve(const M &A, X &v, const Y &d)
    LU backsolve with stored inverse.
    Definition ilu.hh:94
    \n+
    void blockILU0Decomposition(M &A)
    compute ILU decomposition of A. A is overwritten by its decomposition
    Definition ilu.hh:33
    \n+
    void blockILUDecomposition(const M &A, int n, M &ILU)
    Definition ilu.hh:167
    \n+
    compile-time parameter for block recursion depth
    Definition gsetc.hh:45
    \n+
    a simple compressed row storage matrix class
    Definition ilu.hh:259
    \n
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    Attribute set for overlapping Schwarz.
    Definition owneroverlapcopy.hh:59
    \n-
    AttributeSet
    Definition owneroverlapcopy.hh:60
    \n-
    @ owner
    Definition owneroverlapcopy.hh:61
    \n-
    @ copy
    Definition owneroverlapcopy.hh:61
    \n-
    @ overlap
    Definition owneroverlapcopy.hh:61
    \n-
    Information about the index distribution.
    Definition owneroverlapcopy.hh:78
    \n-
    std::tuple< GlobalIdType, LocalIdType, int > IndexTripel
    A triple describing a local index.
    Definition owneroverlapcopy.hh:92
    \n-
    void addRemoteIndex(const RemoteIndexTripel &x)
    Add a new remote index triple to the set of remote indices.
    Definition owneroverlapcopy.hh:120
    \n-
    G GlobalIdType
    The type of the global index.
    Definition owneroverlapcopy.hh:81
    \n-
    const std::set< IndexTripel > & localIndices() const
    Get the set of indices local to the process.
    Definition owneroverlapcopy.hh:133
    \n-
    const std::set< RemoteIndexTripel > & remoteIndices() const
    Get the set of remote indices.
    Definition owneroverlapcopy.hh:142
    \n-
    L LocalIdType
    The type of the local index.
    Definition owneroverlapcopy.hh:84
    \n-
    void clear()
    Remove all indices from the sets.
    Definition owneroverlapcopy.hh:150
    \n-
    void addLocalIndex(const IndexTripel &x)
    Add a new index triple to the set of local indices.
    Definition owneroverlapcopy.hh:106
    \n-
    std::tuple< int, GlobalIdType, int > RemoteIndexTripel
    A triple describing a remote index.
    Definition owneroverlapcopy.hh:99
    \n-
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n-
    EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::copy > CopySet
    Definition owneroverlapcopy.hh:195
    \n-
    const GlobalLookupIndexSet & globalLookup() const
    Definition owneroverlapcopy.hh:526
    \n-
    FieldTraits< typenameT1::field_type >::real_type norm(const T1 &x) const
    Compute the global Euclidean norm of a vector.
    Definition owneroverlapcopy.hh:425
    \n-
    void buildOwnerOverlapToAllInterface() const
    Definition owneroverlapcopy.hh:233
    \n-
    Dune::ParallelIndexSet< GlobalIdType, LI, 512 > PIS
    Definition owneroverlapcopy.hh:188
    \n-
    void buildOwnerCopyToAllInterface() const
    Definition owneroverlapcopy.hh:254
    \n-
    void buildOwnerCopyToOwnerCopyInterface() const
    Definition owneroverlapcopy.hh:266
    \n-
    OwnerOverlapCopyCommunication(const IndexInfoFromGrid< GlobalIdType, LocalIdType > &indexinfo, MPI_Comm comm_, SolverCategory::Category cat_=SolverCategory::overlapping, bool freecomm_=false)
    Constructor.
    Definition owneroverlapcopy.hh:586
    \n-
    SolverCategory::Category category() const
    Get Solver Category.
    Definition owneroverlapcopy.hh:295
    \n-
    void addOwnerCopyToOwnerCopy(const T &source, T &dest) const
    Communicate values from owner and copy data points to owner and copy data points and add them to thos...
    Definition owneroverlapcopy.hh:379
    \n-
    void buildCopyToAllInterface() const
    Definition owneroverlapcopy.hh:279
    \n-
    Dune::EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::copy > CopyFlags
    Definition owneroverlapcopy.hh:446
    \n-
    RemoteIndices & remoteIndices()
    Get the underlying remote indices.
    Definition owneroverlapcopy.hh:490
    \n-
    const ParallelIndexSet & indexSet() const
    Get the underlying parallel index set.
    Definition owneroverlapcopy.hh:462
    \n-
    Dune::RemoteIndices< PIS > RI
    Definition owneroverlapcopy.hh:189
    \n-
    void buildGlobalLookup(std::size_t size)
    Definition owneroverlapcopy.hh:508
    \n-
    void addOwnerOverlapToAll(const T &source, T &dest) const
    Communicate values from owner data points to all other data points and add them to those values.
    Definition owneroverlapcopy.hh:345
    \n-
    Dune::RemoteIndices< PIS > RemoteIndices
    The type of the remote indices.
    Definition owneroverlapcopy.hh:452
    \n-
    void project(T1 &x) const
    Set vector to zero at copy dofs.
    Definition owneroverlapcopy.hh:538
    \n-
    Dune::AllSet< AttributeSet > AllSet
    Definition owneroverlapcopy.hh:197
    \n-
    Combine< EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner >, EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::overlap >, AttributeSet > OwnerOverlapSet
    Definition owneroverlapcopy.hh:196
    \n-
    void copyCopyToAll(const T &source, T &dest) const
    Communicate values from copy data points to all other data points.
    Definition owneroverlapcopy.hh:328
    \n-
    Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet
    The type of the reverse lookup of indices.
    Definition owneroverlapcopy.hh:456
    \n-
    Dune::Interface IF
    Definition owneroverlapcopy.hh:193
    \n-
    ~OwnerOverlapCopyCommunication()
    Definition owneroverlapcopy.hh:650
    \n-
    void buildGlobalLookup()
    Definition owneroverlapcopy.hh:495
    \n-
    Dune::BufferedCommunicator BC
    Definition owneroverlapcopy.hh:192
    \n-
    OwnerOverlapCopyCommunication(MPI_Comm comm_, SolverCategory::Category cat_=SolverCategory::overlapping, bool freecomm_=false)
    Construct the communication without any indices.
    Definition owneroverlapcopy.hh:554
    \n-
    ParallelIndexSet & indexSet()
    Get the underlying parallel index set.
    Definition owneroverlapcopy.hh:480
    \n-
    void dot(const T1 &x, const T1 &y, T2 &result) const
    Compute a global dot product of two vectors.
    Definition owneroverlapcopy.hh:398
    \n-
    const Communication< MPI_Comm > & communicator() const
    Definition owneroverlapcopy.hh:299
    \n-
    OwnerOverlapCopyCommunication(SolverCategory::Category cat_=SolverCategory::overlapping)
    Construct the communication without any indices using MPI_COMM_WORLD.
    Definition owneroverlapcopy.hh:572
    \n-
    EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner > OwnerSet
    Definition owneroverlapcopy.hh:194
    \n-
    void copyOwnerToAll(const T &source, T &dest) const
    Communicate values from owner data points to all other data points.
    Definition owneroverlapcopy.hh:311
    \n-
    const RemoteIndices & remoteIndices() const
    Get the underlying remote indices.
    Definition owneroverlapcopy.hh:471
    \n-
    friend void loadMatrixMarket(M &, const std::string &, OwnerOverlapCopyCommunication< G, L > &, bool)
    Load a parallel matrix/vector stored in matrix market format.
    Definition matrixmarket.hh:1269
    \n-
    RI::RemoteIndex RX
    Definition owneroverlapcopy.hh:191
    \n-
    void addOwnerCopyToAll(const T &source, T &dest) const
    Communicate values from owner and copy data points to all other data points and add them to those val...
    Definition owneroverlapcopy.hh:362
    \n-
    void freeGlobalLookup()
    Definition owneroverlapcopy.hh:520
    \n-
    Dune::RemoteIndexListModifier< PIS, typename RI::Allocator, false > RILM
    Definition owneroverlapcopy.hh:190
    \n-
    Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet
    The type of the parallel index set.
    Definition owneroverlapcopy.hh:449
    \n-
    void buildOwnerToAllInterface() const
    Definition owneroverlapcopy.hh:244
    \n-
    gather/scatter callback for communcation
    Definition owneroverlapcopy.hh:204
    \n-
    static V gather(const T &a, std::size_t i)
    Definition owneroverlapcopy.hh:207
    \n-
    static void scatter(T &a, V v, std::size_t i)
    Definition owneroverlapcopy.hh:212
    \n-
    CommPolicy< T >::IndexedType V
    Definition owneroverlapcopy.hh:205
    \n-\n-
    CommPolicy< T >::IndexedType V
    Definition owneroverlapcopy.hh:220
    \n-
    static V gather(const T &a, std::size_t i)
    Definition owneroverlapcopy.hh:222
    \n-
    static void scatter(T &a, V v, std::size_t i)
    Definition owneroverlapcopy.hh:227
    \n+
    size_type M() const
    Return the number of columns.
    Definition matrix.hh:700
    \n+
    size_type N() const
    Return the number of rows.
    Definition matrix.hh:695
    \n+
    static void check(const Matrix &mat)
    Check whether the a matrix has diagonal values on blocklevel recursion levels.
    Definition matrixutils.hh:53
    \n+
    A linear operator exporting itself in matrix form.
    Definition operators.hh:109
    \n+
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    Turns an InverseOperator into a Preconditioner.
    Definition preconditioners.hh:75
    \n+
    O::range_type range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:80
    \n+
    O::domain_type domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:78
    \n+
    virtual void post(domain_type &)
    Clean up.
    Definition preconditioners.hh:111
    \n+
    range_type::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:82
    \n+
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:86
    \n+
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:84
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:115
    \n+
    virtual void pre(domain_type &, range_type &)
    Prepare the preconditioner.
    Definition preconditioners.hh:101
    \n+
    InverseOperator2Preconditioner(InverseOperator &inverse_operator)
    Construct the preconditioner from the solver.
    Definition preconditioners.hh:94
    \n+
    O InverseOperator
    type of the wrapped inverse operator
    Definition preconditioners.hh:88
    \n+
    virtual void apply(domain_type &v, const range_type &d)
    Apply one step of the preconditioner to the system A(v)=d.
    Definition preconditioners.hh:104
    \n+
    Sequential SSOR preconditioner.
    Definition preconditioners.hh:141
    \n+
    virtual void post(X &x)
    Clean up.
    Definition preconditioners.hh:229
    \n+
    SeqSSOR(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:182
    \n+
    SeqSSOR(const M &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:199
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:233
    \n+
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:150
    \n+
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:152
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:146
    \n+
    M matrix_type
    The matrix type the preconditioner is for.
    Definition preconditioners.hh:144
    \n+
    virtual void apply(X &v, const Y &d)
    Apply the preconditioner.
    Definition preconditioners.hh:216
    \n+
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition preconditioners.hh:208
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:148
    \n+
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:154
    \n+
    SeqSSOR(const M &A, int n, real_field_type w)
    Constructor.
    Definition preconditioners.hh:163
    \n+
    Sequential SOR preconditioner.
    Definition preconditioners.hh:261
    \n+
    SeqSOR(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:302
    \n+
    M matrix_type
    The matrix type the preconditioner is for.
    Definition preconditioners.hh:264
    \n+
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:274
    \n+
    void apply(X &v, const Y &d)
    Apply the preconditioner in a special direction.
    Definition preconditioners.hh:350
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:266
    \n+
    virtual void post(X &x)
    Clean up.
    Definition preconditioners.hh:367
    \n+
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition preconditioners.hh:328
    \n+
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:272
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:371
    \n+
    virtual void apply(X &v, const Y &d)
    Apply the preconditioner.
    Definition preconditioners.hh:336
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:268
    \n+
    SeqSOR(const M &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:319
    \n+
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:270
    \n+
    SeqSOR(const M &A, int n, real_field_type w)
    Constructor.
    Definition preconditioners.hh:283
    \n+
    The sequential jacobian preconditioner.
    Definition preconditioners.hh:412
    \n+
    virtual void post(X &x)
    Clean up.
    Definition preconditioners.hh:499
    \n+
    SeqJac(const M &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:470
    \n+
    virtual void apply(X &v, const Y &d)
    Apply the preconditioner.
    Definition preconditioners.hh:487
    \n+
    M matrix_type
    The matrix type the preconditioner is for.
    Definition preconditioners.hh:415
    \n+
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:423
    \n+
    SeqJac(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:453
    \n+
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:421
    \n+
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition preconditioners.hh:479
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:417
    \n+
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:425
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:503
    \n+
    SeqJac(const M &A, int n, real_field_type w)
    Constructor.
    Definition preconditioners.hh:434
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:419
    \n+
    Sequential ILU preconditioner.
    Definition preconditioners.hh:532
    \n+
    virtual void post(X &x)
    Clean up.
    Definition preconditioners.hh:678
    \n+
    SeqILU(const M &A, int n, real_field_type w, const bool resort=false)
    Constructor.
    Definition preconditioners.hh:612
    \n+
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition preconditioners.hh:648
    \n+
    virtual void apply(X &v, const Y &d)
    Apply the preconditioner.
    Definition preconditioners.hh:656
    \n+
    ILU::CRS< block_type, typename M::allocator_type > CRS
    type of ILU storage
    Definition preconditioners.hh:552
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:541
    \n+
    CRS lower_
    The ILU(n) decomposition of the matrix. As storage a CRS structure is used.
    Definition preconditioners.hh:692
    \n+
    const bool wNotIdentity_
    true if w != 1.0
    Definition preconditioners.hh:699
    \n+
    SeqILU(const M &A, const ParameterTree &config)
    Constructor.
    Definition preconditioners.hh:598
    \n+
    std::remove_const< M >::type matrix_type
    The matrix type the preconditioner is for.
    Definition preconditioners.hh:535
    \n+
    matrix_type::block_type block_type
    block type of matrix
    Definition preconditioners.hh:537
    \n+
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:549
    \n+
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:544
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:682
    \n+
    SeqILU(const M &A, real_field_type w, const bool resort=false)
    Constructor.
    Definition preconditioners.hh:561
    \n+
    const real_field_type w_
    The relaxation factor to use.
    Definition preconditioners.hh:697
    \n+
    SeqILU(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:580
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:539
    \n+
    std::vector< block_type, typename matrix_type::allocator_type > inv_
    Definition preconditioners.hh:694
    \n+
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:547
    \n+
    std::unique_ptr< matrix_type > ILU_
    The ILU(n) decomposition of the matrix. As storage a BCRSMatrix is used.
    Definition preconditioners.hh:689
    \n+
    CRS upper_
    Definition preconditioners.hh:693
    \n+
    Richardson preconditioner.
    Definition preconditioners.hh:713
    \n+
    X::field_type field_type
    The field type of the preconditioner.
    Definition preconditioners.hh:720
    \n+
    virtual SolverCategory::Category category() const
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:778
    \n+
    Y range_type
    The range type of the preconditioner.
    Definition preconditioners.hh:718
    \n+
    virtual void pre(X &x, Y &b)
    Prepare the preconditioner.
    Definition preconditioners.hh:755
    \n+
    Richardson(real_field_type w=1.0)
    Constructor.
    Definition preconditioners.hh:731
    \n+
    virtual void post(X &x)
    Clean up.
    Definition preconditioners.hh:774
    \n+
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:724
    \n+
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:722
    \n+
    Richardson(const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:746
    \n+
    X domain_type
    The domain type of the preconditioner.
    Definition preconditioners.hh:716
    \n+
    virtual void apply(X &v, const Y &d)
    Apply the precondioner.
    Definition preconditioners.hh:763
    \n+
    sequential ILDL preconditioner
    Definition preconditioners.hh:807
    \n+
    SeqILDL(const matrix_type &A, const ParameterTree &config)
    Constructor.
    Definition preconditioners.hh:853
    \n+
    SeqILDL(const matrix_type &A, real_field_type relax=real_field_type(1))
    constructor
    Definition preconditioners.hh:865
    \n+
    X domain_type
    domain type of the preconditioner
    Definition preconditioners.hh:815
    \n+
    void post(X &x) override
    Clean up.
    Definition preconditioners.hh:916
    \n+
    Y range_type
    range type of the preconditioner
    Definition preconditioners.hh:817
    \n+
    std::remove_const_t< M > matrix_type
    type of matrix the preconditioner is for
    Definition preconditioners.hh:813
    \n+
    void apply(X &v, const Y &d) override
    Apply one step of the preconditioner to the system A(v)=d.
    Definition preconditioners.hh:909
    \n+
    FieldTraits< scalar_field_type >::real_type real_field_type
    real scalar type underlying the field_type
    Definition preconditioners.hh:823
    \n+
    SeqILDL(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A, const ParameterTree &configuration)
    Constructor.
    Definition preconditioners.hh:837
    \n+
    void pre(X &x, Y &b) override
    Prepare the preconditioner.
    Definition preconditioners.hh:905
    \n+
    Simd::Scalar< field_type > scalar_field_type
    scalar type underlying the field_type
    Definition preconditioners.hh:821
    \n+
    X::field_type field_type
    field type of the preconditioner
    Definition preconditioners.hh:819
    \n+
    SolverCategory::Category category() const override
    Category of the preconditioner (see SolverCategory::Category)
    Definition preconditioners.hh:920
    \n+
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n+
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n
    Category
    Definition solvercategory.hh:23
    \n-
    @ overlapping
    Category for overlapping solvers.
    Definition solvercategory.hh:29
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n+
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,839 +1,1027 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-owneroverlapcopy.hh\n+preconditioners.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_OWNEROVERLAPCOPY_HH\n-6#define DUNE_ISTL_OWNEROVERLAPCOPY_HH\n+5#ifndef DUNE_ISTL_PRECONDITIONERS_HH\n+6#define DUNE_ISTL_PRECONDITIONERS_HH\n 7\n-8#include \n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14#include \n-15\n-16#include \"cmath\"\n+8#include \n+9#include \n+10#include \n+11#include \n+12#include \n+13#include \n+14\n+15#include \n+16#include \n 17\n-18// MPI header\n-19#if HAVE_MPI\n-20#include \n-21#endif\n-22\n-23#include \n-24\n-25#if HAVE_MPI\n-26#include \n-27#include \n-28#include \n-29#include \n-30#endif\n-31\n-32#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n-33#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-34#include \n-35#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bm_\ba_\bt_\br_\bi_\bx_\bm_\ba_\br_\bk_\be_\bt_\b._\bh_\bh>\n-36\n-37template class Comm>\n-_\b3_\b8void _\bt_\be_\bs_\bt_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd(int s);\n-39\n-40\n-41namespace _\bD_\bu_\bn_\be {\n-42\n-_\b5_\b8 struct _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n-59 {\n-_\b6_\b0 enum _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt {\n-_\b6_\b1 _\bo_\bw_\bn_\be_\br=1, _\bo_\bv_\be_\br_\bl_\ba_\bp=2, _\bc_\bo_\bp_\by=3\n-_\b6_\b2 };\n-63 };\n-64\n-76 template \n-_\b7_\b7 class _\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd\n-78 {\n-79 public:\n-_\b8_\b1 typedef G _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be;\n-82\n-_\b8_\b4 typedef L _\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be;\n-85\n-_\b9_\b2 typedef std::tuple _\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl;\n-_\b9_\b9 typedef std::tuple _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl;\n+18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh>\n+19#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\"\n+20#include \"_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\"\n+21#include \"_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\"\n+22#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+23#include \"_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\"\n+24#include \"_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\"\n+25#include \"_\bi_\bl_\bd_\bl_\b._\bh_\bh\"\n+26#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n+27\n+28\n+29namespace _\bD_\bu_\bn_\be {\n+72 template\n+_\b7_\b3 class _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br :\n+74 public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+75 {\n+76 public:\n+_\b7_\b8 typedef typename O::domain_type _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b8_\b0 typedef typename O::range_type _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b8_\b2 typedef typename range_type::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b8_\b4 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b8_\b6 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b8_\b8 typedef O _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n+89\n+_\b9_\b4 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br(_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br& inverse_operator)\n+95 : inverse_operator_(inverse_operator)\n+96 {\n+97 if(c != -1 && _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(inverse_operator_) != c)\n+98 DUNE_THROW(InvalidStateException, \"User-supplied solver category does not\n+match that of the given inverse operator\");\n+99 }\n 100\n-_\b1_\b0_\b6 void _\ba_\bd_\bd_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx (const _\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl& x)\n-107 {\n-108 if (std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br &&\n-109 std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp &&\n-110 std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n-111 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"OwnerOverlapCopyCommunication: global index not in\n-index set\");\n-112 localindices.insert(x);\n-113 }\n-114\n-_\b1_\b2_\b0 void _\ba_\bd_\bd_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx (const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl& x)\n-121 {\n-122 if (std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br &&\n-123 std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp &&\n-124 std::get<2>(x)!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n-125 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"OwnerOverlapCopyCommunication: global index not in\n-index set\");\n-126 remoteindices.insert(x);\n-127 }\n+_\b1_\b0_\b1 virtual void _\bp_\br_\be(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be&,_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be&)\n+102 {}\n+103\n+_\b1_\b0_\b4 virtual void _\ba_\bp_\bp_\bl_\by(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be& v, const _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be& d)\n+105 {\n+106 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt res;\n+107 _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be copy(d);\n+108 inverse_operator_.apply(v, copy, res);\n+109 }\n+110\n+_\b1_\b1_\b1 virtual void _\bp_\bo_\bs_\bt(_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be&)\n+112 {}\n+113\n+_\b1_\b1_\b5 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+116 {\n+117 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(inverse_operator_);\n+118 }\n+119\n+120 private:\n+121 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br& inverse_operator_;\n+122 };\n+123\n+124 //=====================================================================\n+125 // Implementation of this interface for sequential ISTL-preconditioners\n+126 //=====================================================================\n+127\n 128\n-_\b1_\b3_\b3 const std::set& _\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs () const\n-134 {\n-135 return localindices;\n-136 }\n-137\n-_\b1_\b4_\b2 const std::set& _\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs () const\n-143 {\n-144 return remoteindices;\n-145 }\n-146\n-_\b1_\b5_\b0 void _\bc_\bl_\be_\ba_\br ()\n-151 {\n-152 localindices.clear();\n-153 remoteindices.clear();\n-154 }\n+140 template\n+_\b1_\b4_\b1 class _\bS_\be_\bq_\bS_\bS_\bO_\bR : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n+142 public:\n+_\b1_\b4_\b4 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b1_\b4_\b6 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b1_\b4_\b8 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b1_\b5_\b0 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b1_\b5_\b2 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b1_\b5_\b4 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n 155\n-156 private:\n-158 std::set localindices;\n-160 std::set remoteindices;\n-161 };\n-162\n-163\n-164#if HAVE_MPI\n-165\n-172 template \n-_\b1_\b7_\b3 class _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-174 {\n-175 template\n-176 friend void _\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt(M&,\n-177 const std::string&,\n-178 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bG_\b,_\bL_\b>&,\n-179 bool);\n-180 // used types\n-181 typedef typename _\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,_\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl\n-IndexTripel;\n-182 typedef typename _\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,_\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b>_\b:_\b:\n-_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl RemoteIndexTripel;\n-183 typedef typename std::set::const_iterator localindex_iterator;\n-184 typedef typename std::set::const_iterator\n-remoteindex_iterator;\n-185 typedef typename _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt _\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt;\n-186 typedef Dune::ParallelLocalIndex LI;\n-187 public:\n-_\b1_\b8_\b8 typedef Dune::ParallelIndexSet _\bP_\bI_\bS;\n-_\b1_\b8_\b9 typedef Dune::RemoteIndices _\bR_\bI;\n-_\b1_\b9_\b0 typedef Dune::RemoteIndexListModifier\n-_\bR_\bI_\bL_\bM;\n-_\b1_\b9_\b1 typedef typename RI::RemoteIndex _\bR_\bX;\n-_\b1_\b9_\b2 typedef Dune::BufferedCommunicator _\bB_\bC;\n-_\b1_\b9_\b3 typedef Dune::Interface _\bI_\bF;\n-_\b1_\b9_\b4 typedef EnumItem\n-_\bO_\bw_\bn_\be_\br_\bS_\be_\bt;\n-_\b1_\b9_\b5 typedef EnumItem _\bC_\bo_\bp_\by_\bS_\be_\bt;\n-_\b1_\b9_\b6 typedef Combine,EnumItem,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt> _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bS_\be_\bt;\n-_\b1_\b9_\b7 typedef Dune::AllSet _\bA_\bl_\bl_\bS_\be_\bt;\n-198 protected:\n-199\n-200\n-202 template\n-_\b2_\b0_\b3 struct _\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-204 {\n-_\b2_\b0_\b5 typedef typename CommPolicy::IndexedType _\bV;\n-206\n-_\b2_\b0_\b7 static _\bV _\bg_\ba_\bt_\bh_\be_\br(const T& a, std::size_t i)\n-208 {\n-209 return a[i];\n-210 }\n-211\n-_\b2_\b1_\b2 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(T& a, _\bV v, std::size_t i)\n-213 {\n-214 a[i] = v;\n-215 }\n-216 };\n-217 template\n-_\b2_\b1_\b8 struct _\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-219 {\n-_\b2_\b2_\b0 typedef typename CommPolicy::IndexedType _\bV;\n-221\n-_\b2_\b2_\b2 static _\bV _\bg_\ba_\bt_\bh_\be_\br(const T& a, std::size_t i)\n-223 {\n-224 return a[i];\n-225 }\n-226\n-_\b2_\b2_\b7 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(T& a, _\bV v, std::size_t i)\n-228 {\n-229 a[i] += v;\n-230 }\n-231 };\n-232\n-_\b2_\b3_\b3 void _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be () const\n+_\b1_\b6_\b3 _\bS_\be_\bq_\bS_\bS_\bO_\bR (const M& A, int n, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w)\n+164 : _A_(A), _n(n), _w(w)\n+165 {\n+166 _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\bM_\b,_\bl_\b>_\b:_\b:_\bc_\bh_\be_\bc_\bk(_A_);\n+167 }\n+168\n+_\b1_\b8_\b2 _\bS_\be_\bq_\bS_\bS_\bO_\bR (const std::shared_ptr>& A,\n+const ParameterTree& configuration)\n+183 : _\bS_\be_\bq_\bS_\bS_\bO_\bR(A->getmat(), configuration)\n+184 {}\n+185\n+_\b1_\b9_\b9 _\bS_\be_\bq_\bS_\bS_\bO_\bR (const M& A, const ParameterTree& configuration)\n+200 : _\bS_\be_\bq_\bS_\bS_\bO_\bR(A, configuration._\bg_\be_\bt(\"iterations\",1),\n+configuration._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\",1.0))\n+201 {}\n+202\n+_\b2_\b0_\b8 virtual void _\bp_\br_\be ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)\n+209 {}\n+210\n+_\b2_\b1_\b6 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+217 {\n+218 for (int i=0; i<_n; i++) {\n+219 _\bb_\bs_\bo_\br_\bf(_A_,v,d,_w,_\bB_\bL_\b<_\bl_\b>());\n+220 _\bb_\bs_\bo_\br_\bb(_A_,v,d,_w,_\bB_\bL_\b<_\bl_\b>());\n+221 }\n+222 }\n+223\n+_\b2_\b2_\b9 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x)\n+230 {}\n+231\n+_\b2_\b3_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n 234 {\n-235 if (OwnerOverlapToAllInterfaceBuilt)\n-236 OwnerOverlapToAllInterface.free();\n-237 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bS_\be_\bt sourceFlags;\n-238\n-Combine,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt>\n-239 destFlags;\n-240 OwnerOverlapToAllInterface.build(ri,sourceFlags,destFlags);\n-241 OwnerOverlapToAllInterfaceBuilt = true;\n-242 }\n-243\n-_\b2_\b4_\b4 void _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be () const\n-245 {\n-246 if (OwnerToAllInterfaceBuilt)\n-247 OwnerToAllInterface.free();\n-248 _\bO_\bw_\bn_\be_\br_\bS_\be_\bt sourceFlags;\n-249 _\bA_\bl_\bl_\bS_\be_\bt destFlags;\n-250 OwnerToAllInterface.build(ri,sourceFlags,destFlags);\n-251 OwnerToAllInterfaceBuilt = true;\n-252 }\n-253\n-_\b2_\b5_\b4 void _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be () const\n-255 {\n-256 if (OwnerCopyToAllInterfaceBuilt)\n-257 OwnerCopyToAllInterface.free();\n-258\n-259 typedef Combine,EnumItem,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt>\n-OwnerCopySet;\n-260 OwnerCopySet sourceFlags;\n-261 Combine,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt> destFlags;\n-262 OwnerCopyToAllInterface.build(ri,sourceFlags,destFlags);\n-263 OwnerCopyToAllInterfaceBuilt = true;\n-264 }\n-265\n-_\b2_\b6_\b6 void _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be () const\n-267 {\n-268 if (OwnerCopyToOwnerCopyInterfaceBuilt)\n-269 OwnerCopyToOwnerCopyInterface.free();\n-270\n-271\n-272 typedef Combine,EnumItem,_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt>\n-OwnerCopySet;\n-273 OwnerCopySet sourceFlags;\n-274 OwnerCopySet destFlags;\n-275 OwnerCopyToOwnerCopyInterface.build(ri,sourceFlags,destFlags);\n-276 OwnerCopyToOwnerCopyInterfaceBuilt = true;\n-277 }\n-278\n-_\b2_\b7_\b9 void _\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be () const\n-280 {\n-281 if (CopyToAllInterfaceBuilt)\n-282 CopyToAllInterface.free();\n-283 _\bC_\bo_\bp_\by_\bS_\be_\bt sourceFlags;\n-284 _\bA_\bl_\bl_\bS_\be_\bt destFlags;\n-285 CopyToAllInterface.build(ri,sourceFlags,destFlags);\n-286 CopyToAllInterfaceBuilt = true;\n+235 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+236 }\n+237\n+238 private:\n+240 const M& _A_;\n+242 int _n;\n+244 _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _w;\n+245 };\n+_\b2_\b4_\b6 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"ssor\",\n+defaultPreconditionerBlockLevelCreator());\n+247\n+248\n+260 template\n+_\b2_\b6_\b1 class _\bS_\be_\bq_\bS_\bO_\bR : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n+262 public:\n+_\b2_\b6_\b4 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b2_\b6_\b6 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b2_\b6_\b8 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b2_\b7_\b0 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b2_\b7_\b2 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b2_\b7_\b4 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+275\n+_\b2_\b8_\b3 _\bS_\be_\bq_\bS_\bO_\bR (const M& A, int n, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w)\n+284 : _A_(A), _n(n), _w(w)\n+285 {\n+286 _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\bM_\b,_\bl_\b>_\b:_\b:_\bc_\bh_\be_\bc_\bk(_A_);\n 287 }\n 288\n-289 public:\n-290\n-_\b2_\b9_\b5 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by () const {\n-296 return category_;\n-297 }\n-298\n-_\b2_\b9_\b9 const Communication& _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br() const\n-300 {\n-301 return cc;\n-302 }\n-303\n-310 template\n-_\b3_\b1_\b1 void _\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl (const T& source, T& dest) const\n-312 {\n-313 if (!OwnerToAllInterfaceBuilt)\n-314 _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be ();\n-315 _\bB_\bC _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n-316 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template build(OwnerToAllInterface);\n-317 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template forward >(source,dest);\n-318 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.free();\n-319 }\n-320\n-327 template\n-_\b3_\b2_\b8 void _\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl (const T& source, T& dest) const\n-329 {\n-330 if (!CopyToAllInterfaceBuilt)\n-331 _\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be ();\n-332 _\bB_\bC _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n-333 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template build(CopyToAllInterface);\n-334 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template forward >(source,dest);\n-335 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.free();\n-336 }\n-337\n-344 template\n-_\b3_\b4_\b5 void _\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bT_\bo_\bA_\bl_\bl (const T& source, T& dest) const\n-346 {\n-347 if (!OwnerOverlapToAllInterfaceBuilt)\n-348 _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be ();\n-349 _\bB_\bC _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n-350 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template build(OwnerOverlapToAllInterface);\n-351 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template forward >(source,dest);\n-352 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.free();\n-353 }\n-354\n-361 template\n-_\b3_\b6_\b2 void _\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl (const T& source, T& dest) const\n-363 {\n-364 if (!OwnerCopyToAllInterfaceBuilt)\n-365 _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be ();\n-366 _\bB_\bC _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n-367 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template build(OwnerCopyToAllInterface);\n-368 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template forward >(source,dest);\n-369 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.free();\n-370 }\n-371\n-378 template\n-_\b3_\b7_\b9 void _\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by (const T& source, T& dest) const\n-380 {\n-381 if (!OwnerCopyToOwnerCopyInterfaceBuilt)\n-382 _\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be ();\n-383 _\bB_\bC _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br;\n-384 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template build(OwnerCopyToOwnerCopyInterface);\n-385 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.template forward >(source,dest);\n-386 _\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br.free();\n-387 }\n-388\n-389\n-397 template\n-_\b3_\b9_\b8 void _\bd_\bo_\bt (const T1& x, const T1& y, T2& result) const\n-399 {\n-400 using real_type = typename FieldTraits::real_type;\n-401 // set up mask vector\n-402 if (mask.size()!=static_cast::size_type>\n-(x.size()))\n-403 {\n-404 mask.resize(x.size());\n-405 for (typename std::vector::size_type i=0; ilocal().attribute()!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br)\n-409 mask[i->local().local()] = 0;\n-410 }\n-411 result = T2(0.0);\n-412\n-413 for (typename T1::size_type i=0; i(mask[i]);\n-415 result = cc.sum(result);\n-416 }\n-417\n-424 template\n-_\b4_\b2_\b5 typename FieldTraits::real_type _\bn_\bo_\br_\bm (const T1& x)\n-const\n-426 {\n-427 using real_type = typename FieldTraits::real_type;\n-428\n-429 // set up mask vector\n-430 if (mask.size()!=static_cast::size_type>\n-(x.size()))\n-431 {\n-432 mask.resize(x.size());\n-433 for (typename std::vector::size_type i=0; ilocal().attribute()!=_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br)\n-437 mask[i->local().local()] = 0;\n+_\b3_\b0_\b2 _\bS_\be_\bq_\bS_\bO_\bR (const std::shared_ptr>& A,\n+const ParameterTree& configuration)\n+303 : _\bS_\be_\bq_\bS_\bO_\bR(A->getmat(), configuration)\n+304 {}\n+305\n+_\b3_\b1_\b9 _\bS_\be_\bq_\bS_\bO_\bR (const M& A, const ParameterTree& configuration)\n+320 : _\bS_\be_\bq_\bS_\bO_\bR(A, configuration._\bg_\be_\bt(\"iterations\",1),\n+configuration._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\",1.0))\n+321 {}\n+322\n+_\b3_\b2_\b8 virtual void _\bp_\br_\be ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)\n+329 {}\n+330\n+_\b3_\b3_\b6 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+337 {\n+338 this->template apply(v,d);\n+339 }\n+340\n+349 template\n+_\b3_\b5_\b0 void _\ba_\bp_\bp_\bl_\by(X& v, const Y& d)\n+351 {\n+352 if(forward)\n+353 for (int i=0; i<_n; i++) {\n+354 _\bb_\bs_\bo_\br_\bf(_A_,v,d,_w,_\bB_\bL_\b<_\bl_\b>());\n+355 }\n+356 else\n+357 for (int i=0; i<_n; i++) {\n+358 _\bb_\bs_\bo_\br_\bb(_A_,v,d,_w,_\bB_\bL_\b<_\bl_\b>());\n+359 }\n+360 }\n+361\n+_\b3_\b6_\b7 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x)\n+368 {}\n+369\n+_\b3_\b7_\b1 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+372 {\n+373 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+374 }\n+375\n+376 private:\n+378 const M& _A_;\n+380 int _n;\n+382 _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _w;\n+383 };\n+_\b3_\b8_\b4 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"sor\",\n+defaultPreconditionerBlockLevelCreator());\n+385\n+386\n+397 template\n+_\b3_\b9_\b8 using _\bS_\be_\bq_\bG_\bS = _\bS_\be_\bq_\bS_\bO_\bR_\b<_\bM_\b,_\bX_\b,_\bY_\b,_\bl_\b>;\n+_\b3_\b9_\b9 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"gs\",\n+defaultPreconditionerBlockLevelCreator());\n+400\n+411 template\n+_\b4_\b1_\b2 class _\bS_\be_\bq_\bJ_\ba_\bc : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b> {\n+413 public:\n+_\b4_\b1_\b5 typedef M _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b4_\b1_\b7 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b4_\b1_\b9 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b4_\b2_\b1 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b4_\b2_\b3 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b4_\b2_\b5 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+426\n+_\b4_\b3_\b4 _\bS_\be_\bq_\bJ_\ba_\bc (const M& A, int n, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w)\n+435 : _A_(A), _n(n), _w(w)\n+436 {\n+437 _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\bM_\b,_\bl_\b>_\b:_\b:_\bc_\bh_\be_\bc_\bk(_A_);\n 438 }\n-439 auto result = real_type(0.0);\n-440 for (typename T1::size_type i=0; i\n-_\bC_\bo_\bp_\by_\bF_\bl_\ba_\bg_\bs;\n-447\n-_\b4_\b4_\b9 typedef Dune::ParallelIndexSet _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n-450\n-_\b4_\b5_\b2 typedef Dune::RemoteIndices _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs;\n-453\n-_\b4_\b5_\b6 typedef Dune::GlobalLookupIndexSet _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n-457\n-_\b4_\b6_\b2 const _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& _\bi_\bn_\bd_\be_\bx_\bS_\be_\bt() const\n-463 {\n-464 return pis;\n-465 }\n-466\n-_\b4_\b7_\b1 const _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& _\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs() const\n-472 {\n-473 return ri;\n-474 }\n-475\n-_\b4_\b8_\b0 _\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& _\bi_\bn_\bd_\be_\bx_\bS_\be_\bt()\n-481 {\n-482 return pis;\n-483 }\n-484\n-485\n-_\b4_\b9_\b0 _\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs& _\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs()\n-491 {\n-492 return ri;\n-493 }\n-494\n-_\b4_\b9_\b5 void _\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp()\n-496 {\n-497 if(globalLookup_) {\n-498 if(pis.seqNo()==oldseqNo)\n-499 // Nothing changed!\n-500 return;\n-501 delete globalLookup_;\n-502 }\n-503\n-504 globalLookup_ = new _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(pis);\n-505 oldseqNo = pis.seqNo();\n+439\n+_\b4_\b5_\b3 _\bS_\be_\bq_\bJ_\ba_\bc (const std::shared_ptr>& A,\n+const ParameterTree& configuration)\n+454 : _\bS_\be_\bq_\bJ_\ba_\bc(A->getmat(), configuration)\n+455 {}\n+456\n+_\b4_\b7_\b0 _\bS_\be_\bq_\bJ_\ba_\bc (const M& A, const ParameterTree& configuration)\n+471 : _\bS_\be_\bq_\bJ_\ba_\bc(A, configuration._\bg_\be_\bt(\"iterations\",1),\n+configuration._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\",1.0))\n+472 {}\n+473\n+_\b4_\b7_\b9 virtual void _\bp_\br_\be ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)\n+480 {}\n+481\n+_\b4_\b8_\b7 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+488 {\n+489 for (int i=0; i<_n; i++) {\n+490 _\bd_\bb_\bj_\ba_\bc(_A_,v,d,_w,_\bB_\bL_\b<_\bl_\b>());\n+491 }\n+492 }\n+493\n+_\b4_\b9_\b9 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x)\n+500 {}\n+501\n+_\b5_\b0_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+504 {\n+505 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n 506 }\n 507\n-_\b5_\b0_\b8 void _\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp(std::size_t size)\n-509 {\n-510 if(globalLookup_) {\n-511 if(pis.seqNo()==oldseqNo)\n-512 // Nothing changed!\n-513 return;\n-514 delete globalLookup_;\n-515 }\n-516 globalLookup_ = new _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt(pis, size);\n-517 oldseqNo = pis.seqNo();\n-518 }\n+508 private:\n+510 const M& _A_;\n+512 int _n;\n+514 real_field_type _w;\n+515 };\n+_\b5_\b1_\b6 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"jac\",\n+defaultPreconditionerBlockLevelCreator());\n+517\n+518\n 519\n-_\b5_\b2_\b0 void _\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp()\n-521 {\n-522 delete globalLookup_;\n-523 globalLookup_=0;\n-524 }\n-525\n-_\b5_\b2_\b6 const _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt& _\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp() const\n-527 {\n-528 assert(globalLookup_ != 0);\n-529 return *globalLookup_;\n-530 }\n-531\n-537 template\n-_\b5_\b3_\b8 void _\bp_\br_\bo_\bj_\be_\bc_\bt (T1& x) const\n-539 {\n-540 for (typename PIS::const_iterator i=pis.begin(); i!=pis.end(); ++i)\n-541 if (i->local().attribute()==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n-542 x[i->local().local()] = 0;\n-543 }\n-544\n-_\b5_\b5_\b4 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (MPI_Comm comm_,\n-555 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by cat_ = _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg,\n-556 bool freecomm_ = false)\n-557 : comm(comm_), cc(comm_), pis(), ri(pis,pis,comm_),\n-558 OwnerToAllInterfaceBuilt(false), OwnerOverlapToAllInterfaceBuilt(false),\n-559 OwnerCopyToAllInterfaceBuilt(false), OwnerCopyToOwnerCopyInterfaceBuilt\n-(false),\n-560 CopyToAllInterfaceBuilt(false), globalLookup_(0), category_(cat_),\n-561 freecomm(freecomm_)\n-562 {}\n-563\n-_\b5_\b7_\b2 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by cat_ =\n-_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg)\n-573 : comm(MPI_COMM_WORLD), cc(MPI_COMM_WORLD), pis(), ri\n-(pis,pis,MPI_COMM_WORLD),\n-574 OwnerToAllInterfaceBuilt(false), OwnerOverlapToAllInterfaceBuilt(false),\n-575 OwnerCopyToAllInterfaceBuilt(false), OwnerCopyToOwnerCopyInterfaceBuilt\n-(false),\n-576 CopyToAllInterfaceBuilt(false), globalLookup_(0), category_(cat_), freecomm\n-(false)\n-577 {}\n-578\n-_\b5_\b8_\b6 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (const _\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b<_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b,\n-_\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be_\b>& indexinfo,\n-587 MPI_Comm comm_,\n-588 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by cat_ = _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg,\n-589 bool freecomm_ = false)\n-590 : comm(comm_), cc(comm_), OwnerToAllInterfaceBuilt(false),\n-591 OwnerOverlapToAllInterfaceBuilt(false), OwnerCopyToAllInterfaceBuilt\n-(false),\n-592 OwnerCopyToOwnerCopyInterfaceBuilt(false), CopyToAllInterfaceBuilt(false),\n-593 globalLookup_(0), category_(cat_), freecomm(freecomm_)\n-594 {\n-595 // set up an ISTL index set\n-596 pis.beginResize();\n-597 for (localindex_iterator i=indexinfo._\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs().begin();\n-i!=indexinfo._\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs().end(); ++i)\n-598 {\n-599 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br)\n-600 pis.add(std::get<0>(*i),LI(std::get<1>(*i),_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:\n-_\bo_\bw_\bn_\be_\br,true));\n-601 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp)\n-602 pis.add(std::get<0>(*i),LI(std::get<1>(*i),_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:\n-_\bo_\bv_\be_\br_\bl_\ba_\bp,true));\n-603 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n-604 pis.add(std::get<0>(*i),LI(std::get<1>(*i),_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:\n-_\bc_\bo_\bp_\by,true));\n-605 // std::cout << cc.rank() << \": adding index \" << std::get<0>(*i) << \" \" <<\n-std::get<1>(*i) << \" \" << std::get<2>(*i) << std::endl;\n-606 }\n-607 pis.endResize();\n-608\n-609 // build remote indices WITHOUT communication\n-610 // std::cout << cc.rank() << \": build remote indices\" << std::endl;\n-611 ri.setIndexSets(pis,pis,cc);\n-612 if (indexinfo._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().size()>0)\n-613 {\n-614 remoteindex_iterator i=indexinfo._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().begin();\n-615 int p = std::get<0>(*i);\n-616 _\bR_\bI_\bL_\bM modifier = ri.template getModifier(p);\n-617 typename PIS::const_iterator pi=pis.begin();\n-618 for ( ; i!=indexinfo._\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs().end(); ++i)\n+531 template\n+_\b5_\b3_\b2 class _\bS_\be_\bq_\bI_\bL_\bU : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b> {\n+533 public:\n+_\b5_\b3_\b5 typedef typename std::remove_const::type _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b5_\b3_\b7 typedef typename matrix_type :: block_type _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+_\b5_\b3_\b9 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b5_\b4_\b1 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+542\n+_\b5_\b4_\b4 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+545\n+_\b5_\b4_\b7 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b5_\b4_\b9 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+550\n+_\b5_\b5_\b2 typedef typename _\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b<_\b _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b _\b,_\b _\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bM_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be_\b> _\bC_\bR_\bS;\n+553\n+_\b5_\b6_\b1 _\bS_\be_\bq_\bI_\bL_\bU (const M& A, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w, const bool resort = false )\n+562 : _\bS_\be_\bq_\bI_\bL_\bU( A, 0, w, resort ) // construct ILU(0)\n+563 {\n+564 }\n+565\n+_\b5_\b8_\b0 _\bS_\be_\bq_\bI_\bL_\bU (const std::shared_ptr>& A,\n+const ParameterTree& configuration)\n+581 : _\bS_\be_\bq_\bI_\bL_\bU(A->getmat(), configuration)\n+582 {}\n+583\n+_\b5_\b9_\b8 _\bS_\be_\bq_\bI_\bL_\bU(const M& A, const ParameterTree& config)\n+599 : _\bS_\be_\bq_\bI_\bL_\bU(A, config._\bg_\be_\bt(\"n\", 0),\n+600 config._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\", 1.0),\n+601 config._\bg_\be_\bt(\"resort\", false))\n+602 {}\n+603\n+_\b6_\b1_\b2 _\bS_\be_\bq_\bI_\bL_\bU (const M& A, int n, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w, const bool resort = false )\n+613 : ILU_(),\n+614 lower_(),\n+615 upper_(),\n+616 inv_(),\n+617 w_(w),\n+618 wNotIdentity_([w]{using std::abs; return abs(w - _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be(1)) > 1e-\n+15;}() )\n 619 {\n-620 // handle processor change\n-621 if (p!=std::get<0>(*i))\n-622 {\n-623 p = std::get<0>(*i);\n-624 modifier = ri.template getModifier(p);\n-625 pi=pis.begin();\n+620 if( n == 0 )\n+621 {\n+622 // copy A\n+623 ILU_.reset( new matrix_type( A ) );\n+624 // create ILU(0) decomposition\n+625 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn( *ILU_ );\n 626 }\n-627\n-628 // position to correct entry in parallel index set\n-629 while (pi->global()!=std::get<1>(*i) && pi!=pis.end())\n-630 ++pi;\n-631 if (pi==pis.end())\n-632 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"OwnerOverlapCopyCommunication: global index not in\n-index set\");\n-633\n-634 // insert entry\n-635 // std::cout << cc.rank() << \": adding remote index \" << std::get<0>(*i) <<\n-\" \" << std::get<1>(*i) << \" \" << std::get<2>(*i) << std::endl;\n-636 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br)\n-637 modifier.insert(_\bR_\bX(_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br,&(*pi)));\n-638 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp)\n-639 modifier.insert(_\bR_\bX(_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp,&(*pi)));\n-640 if (std::get<2>(*i)==_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by)\n-641 modifier.insert(_\bR_\bX(_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by,&(*pi)));\n-642 }\n-643 }else{\n-644 // Force remote indices to be synced!\n-645 ri.template getModifier(0);\n-646 }\n-647 }\n-648\n-649 // destructor: free memory in some objects\n-_\b6_\b5_\b0 _\b~_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn ()\n-651 {\n-652 ri.free();\n-653 if (OwnerToAllInterfaceBuilt) OwnerToAllInterface.free();\n-654 if (OwnerOverlapToAllInterfaceBuilt) OwnerOverlapToAllInterface.free();\n-655 if (OwnerCopyToAllInterfaceBuilt) OwnerCopyToAllInterface.free();\n-656 if (OwnerCopyToOwnerCopyInterfaceBuilt) OwnerCopyToOwnerCopyInterface.free\n-();\n-657 if (CopyToAllInterfaceBuilt) CopyToAllInterface.free();\n-658 if (globalLookup_) delete globalLookup_;\n-659 if (freecomm==true)\n-660 if(comm!=MPI_COMM_NULL)\n-661 {\n-662#ifdef MPI_2\n-663 // If it is possible to query whether MPI_Finalize\n-664 // was called, only free the communicator before\n-665 // calling MPI_Finalize.\n-666 int wasFinalized = 0;\n-667 MPI_Finalized( &wasFinalized );\n-668 if(!wasFinalized)\n-669#endif\n-670 MPI_Comm_free(&comm);\n+627 else\n+628 {\n+629 // create matrix in build mode\n+630 ILU_.reset( new matrix_type( A._\bN(), A._\bM(), matrix_type::row_wise) );\n+631 // create ILU(n) decomposition\n+632 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn( A, n, *ILU_ );\n+633 }\n+634\n+635 if( resort )\n+636 {\n+637 // store ILU in simple CRS format\n+638 _\bI_\bL_\bU_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bt_\bT_\bo_\bC_\bR_\bS( *ILU_, lower_, upper_, inv_ );\n+639 ILU_.reset();\n+640 }\n+641 }\n+642\n+_\b6_\b4_\b8 virtual void _\bp_\br_\be ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)\n+649 {}\n+650\n+_\b6_\b5_\b6 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+657 {\n+658 if( ILU_ )\n+659 {\n+660 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be( *ILU_, v, d);\n+661 }\n+662 else\n+663 {\n+664 _\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be(lower_, upper_, inv_, v, d);\n+665 }\n+666\n+667 if( wNotIdentity_ )\n+668 {\n+669 v *= w_;\n+670 }\n 671 }\n-672 }\n-673\n-674 private:\n-675 _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn (const _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn&)\n-676 {}\n-677 MPI_Comm comm;\n-678 Communication cc;\n-679 _\bP_\bI_\bS pis;\n-680 _\bR_\bI ri;\n-681 mutable _\bI_\bF OwnerToAllInterface;\n-682 mutable bool OwnerToAllInterfaceBuilt;\n-683 mutable _\bI_\bF OwnerOverlapToAllInterface;\n-684 mutable bool OwnerOverlapToAllInterfaceBuilt;\n-685 mutable _\bI_\bF OwnerCopyToAllInterface;\n-686 mutable bool OwnerCopyToAllInterfaceBuilt;\n-687 mutable _\bI_\bF OwnerCopyToOwnerCopyInterface;\n-688 mutable bool OwnerCopyToOwnerCopyInterfaceBuilt;\n-689 mutable _\bI_\bF CopyToAllInterface;\n-690 mutable bool CopyToAllInterfaceBuilt;\n-691 mutable std::vector mask;\n-692 int oldseqNo;\n-693 _\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt* globalLookup_;\n-694 const _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by category_;\n-695 bool freecomm;\n-696 };\n-697\n-698#endif\n-699\n-700\n-703} // end namespace\n-704\n-705#endif\n-_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n+672\n+_\b6_\b7_\b8 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x)\n+679 {}\n+680\n+_\b6_\b8_\b2 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+683 {\n+684 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+685 }\n+686\n+687 protected:\n+_\b6_\b8_\b9 std::unique_ptr< matrix_type > _\bI_\bL_\bU_\b_;\n+690\n+_\b6_\b9_\b2 _\bC_\bR_\bS _\bl_\bo_\bw_\be_\br_\b_;\n+_\b6_\b9_\b3 _\bC_\bR_\bS _\bu_\bp_\bp_\be_\br_\b_;\n+_\b6_\b9_\b4 std::vector< block_type, typename matrix_type::allocator_type > _\bi_\bn_\bv_\b_;\n+695\n+_\b6_\b9_\b7 const _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bw_\b_;\n+_\b6_\b9_\b9 const bool _\bw_\bN_\bo_\bt_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\b_;\n+700 };\n+_\b7_\b0_\b1 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"ilu\",\n+defaultPreconditionerBlockLevelCreator());\n+702\n+703\n+712 template\n+_\b7_\b1_\b3 class _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br {\n+714 public:\n+_\b7_\b1_\b6 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b7_\b1_\b8 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b7_\b2_\b0 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b7_\b2_\b2 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b7_\b2_\b4 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+725\n+_\b7_\b3_\b1 _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn (_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be w=1.0) :\n+732 _w(w)\n+733 {}\n+734\n+_\b7_\b4_\b6 _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn (const ParameterTree& configuration)\n+747 : _\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn(configuration._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\", 1.0))\n+748 {}\n+749\n+_\b7_\b5_\b5 virtual void _\bp_\br_\be ([[maybe_unused]] X& x, [[maybe_unused]] Y& b)\n+756 {}\n+757\n+_\b7_\b6_\b3 virtual void _\ba_\bp_\bp_\bl_\by (X& v, const Y& d)\n+764 {\n+765 v = d;\n+766 v *= _w;\n+767 }\n+768\n+_\b7_\b7_\b4 virtual void _\bp_\bo_\bs_\bt ([[maybe_unused]] X& x)\n+775 {}\n+776\n+_\b7_\b7_\b8 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+779 {\n+780 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n+781 }\n+782\n+783 private:\n+785 _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _w;\n+786 };\n+_\b7_\b8_\b7 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"richardson\", [](auto tl, const auto& /* mat\n+*/, const ParameterTree& config){\n+788 using D = typename Dune::TypeListElement<1, decltype(tl)>::type;\n+789 using R = typename Dune::TypeListElement<2, decltype(tl)>::type;\n+790 return std::make_shared>(config);\n+791 });\n+792\n+793\n+804 template< class M, class X, class Y >\n+_\b8_\b0_\b5 class _\bS_\be_\bq_\bI_\bL_\bD_\bL\n+806 : public _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br< X, Y >\n+807 {\n+808 typedef _\bS_\be_\bq_\bI_\bL_\bD_\bL_\b<_\b _\bM_\b,_\b _\bX_\b,_\b _\bY_\b _\b> _\bT_\bh_\bi_\bs;\n+809 typedef _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b> _\bB_\ba_\bs_\be;\n+810\n+811 public:\n+_\b8_\b1_\b3 typedef std::remove_const_t< M > _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be;\n+_\b8_\b1_\b5 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+_\b8_\b1_\b7 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+_\b8_\b1_\b9 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b8_\b2_\b1 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b8_\b2_\b3 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+824\n+_\b8_\b3_\b7 _\bS_\be_\bq_\bI_\bL_\bD_\bL (const std::shared_ptr>& A,\n+const ParameterTree& configuration)\n+838 : _\bS_\be_\bq_\bI_\bL_\bD_\bL(A->getmat(), configuration)\n+839 {}\n+840\n+_\b8_\b5_\b3 _\bS_\be_\bq_\bI_\bL_\bD_\bL(const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be& A, const ParameterTree& config)\n+854 : _\bS_\be_\bq_\bI_\bL_\bD_\bL(A, config._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be>(\"relaxation\", 1.0))\n+855 {}\n+856\n+_\b8_\b6_\b5 explicit _\bS_\be_\bq_\bI_\bL_\bD_\bL ( const _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be &A, _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax =\n+_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be( 1 ) )\n+866 : decomposition_( A.N(), A.M(), _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be::random ),\n+867 relax_( relax )\n+868 {\n+869 // setup row sizes for lower triangular matrix\n+870 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )\n+871 {\n+872 const auto &A_i = *i;\n+873 const auto ij = A_i.find( i.index() );\n+874 if( ij != A_i.end() )\n+875 decomposition_.setrowsize( i.index(), ij.offset()+1 );\n+876 else\n+877 DUNE_THROW( _\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"diagonal entry missing\" );\n+878 }\n+879 decomposition_.endrowsizes();\n+880\n+881 // setup row indices for lower triangular matrix\n+882 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )\n+883 {\n+884 const auto &A_i = *i;\n+885 for( auto ij = A_i.begin(); ij.index() < i.index() ; ++ij )\n+886 decomposition_.addindex( i.index(), ij.index() );\n+887 decomposition_.addindex( i.index(), i.index() );\n+888 }\n+889 decomposition_.endindices();\n+890\n+891 // copy values of lower triangular matrix\n+892 auto i = A.begin();\n+893 for( auto row = decomposition_.begin(), rowend = decomposition_.end(); row\n+!= rowend; ++row, ++i )\n+894 {\n+895 auto ij = i->begin();\n+896 for( auto _\bc_\bo_\bl = row->begin(), colend = row->end(); _\bc_\bo_\bl != colend; ++_\bc_\bo_\bl,\n+++ij )\n+897 *_\bc_\bo_\bl = *ij;\n+898 }\n+899\n+900 // perform ILDL decomposition\n+901 _\bb_\bi_\bl_\bd_\bl_\b__\bd_\be_\bc_\bo_\bm_\bp_\bo_\bs_\be( decomposition_ );\n+902 }\n+903\n+_\b9_\b0_\b5 void _\bp_\br_\be ([[maybe_unused]] X &x, [[maybe_unused]] Y &b) override\n+906 {}\n+907\n+_\b9_\b0_\b9 void _\ba_\bp_\bp_\bl_\by ( X &v, const Y &d ) override\n+910 {\n+911 _\bb_\bi_\bl_\bd_\bl_\b__\bb_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be( decomposition_, v, d, true );\n+912 v *= relax_;\n+913 }\n+914\n+_\b9_\b1_\b6 void _\bp_\bo_\bs_\bt ([[maybe_unused]] X &x) override\n+917 {}\n+918\n+_\b9_\b2_\b0 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by () const override { return\n+_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl; }\n+921\n+922 private:\n+923 _\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be decomposition_;\n+924 _\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be relax_;\n+925 };\n+_\b9_\b2_\b6 _\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR(\"ildl\", defaultPreconditionerCreator());\n+927\n+930} // end namespace\n+931\n+932\n+933#endif\n+_\bs_\bo_\bl_\bv_\be_\br_\br_\be_\bg_\bi_\bs_\bt_\br_\by_\b._\bh_\bh\n+_\bD_\bU_\bN_\bE_\b__\bR_\bE_\bG_\bI_\bS_\bT_\bE_\bR_\b__\bP_\bR_\bE_\bC_\bO_\bN_\bD_\bI_\bT_\bI_\bO_\bN_\bE_\bR\n+#define DUNE_REGISTER_PRECONDITIONER(name,...)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solverregistry.hh:16\n _\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bm_\ba_\bt_\br_\bi_\bx_\bm_\ba_\br_\bk_\be_\bt_\b._\bh_\bh\n-Provides classes for reading and writing MatrixMarket Files with an extension\n-for parallel matrices.\n-_\bt_\be_\bs_\bt_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bd\n-void testRedistributed(int s)\n+_\bg_\bs_\be_\bt_\bc_\b._\bh_\bh\n+Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a\n+generic way.\n+_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\n+_\bi_\bl_\bu_\b._\bh_\bh\n+The incomplete LU factorization kernels.\n+_\bm_\ba_\bt_\br_\bi_\bx_\bu_\bt_\bi_\bl_\bs_\b._\bh_\bh\n+Some handy generic functions for ISTL matrices.\n+_\bi_\bl_\bd_\bl_\b._\bh_\bh\n+Incomplete LDL decomposition.\n+_\bs_\bo_\bl_\bv_\be_\br_\b._\bh_\bh\n+Define general, extensible interface for inverse operators.\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bb\n+void bsorb(const M &A, X &x, const Y &b, const K &w)\n+SSOR step.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:646\n+_\bD_\bu_\bn_\be_\b:_\b:_\bd_\bb_\bj_\ba_\bc\n+void dbjac(const M &A, X &x, const Y &b, const K &w)\n+Jacobi step.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:658\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bs_\bo_\br_\bf\n+void bsorf(const M &A, X &x, const Y &b, const K &w)\n+SOR step.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:634\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bd_\be_\bc_\bo_\bm_\bp_\bo_\bs_\be\n+void bildl_decompose(Matrix &A)\n+compute ILDL decomposition of a symmetric matrix A\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ildl.hh:88\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n+Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bb_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be\n+void bildl_backsolve(const Matrix &A, X &v, const Y &d, bool\n+isLowerTriangular=false)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ildl.hh:149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bt_\bT_\bo_\bC_\bR_\bS\n+void convertToCRS(const M &A, CRS &lower, CRS &upper, InvVector &inv)\n+convert ILU decomposition into CRS format for lower and upper triangular and\n+inverse.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:307\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be\n+void blockILUBacksolve(const M &A, X &v, const Y &d)\n+LU backsolve with stored inverse.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:94\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n+void blockILU0Decomposition(M &A)\n+compute ILU decomposition of A. A is overwritten by its decomposition\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:33\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n+void blockILUDecomposition(const M &A, int n, M &ILU)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:167\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bL\n+compile-time parameter for block recursion depth\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn gsetc.hh:45\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS\n+a simple compressed row storage matrix class\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:259\n _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n derive error class from the base class in common\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n-Attribute set for overlapping Schwarz.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:59\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt\n-AttributeSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:60\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bw_\bn_\be_\br\n-@ owner\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bc_\bo_\bp_\by\n-@ copy\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bA_\bt_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\be_\bt_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp\n-@ overlap\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:61\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd\n-Information about the index distribution.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:78\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl\n-std::tuple< GlobalIdType, LocalIdType, int > IndexTripel\n-A triple describing a local index.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:92\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\ba_\bd_\bd_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx\n-void addRemoteIndex(const RemoteIndexTripel &x)\n-Add a new remote index triple to the set of remote indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:120\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be\n-G GlobalIdType\n-The type of the global index.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:81\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bl_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\bi_\bc_\be_\bs\n-const std::set< IndexTripel > & localIndices() const\n-Get the set of indices local to the process.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:133\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n-const std::set< RemoteIndexTripel > & remoteIndices() const\n-Get the set of remote indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:142\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bL_\bo_\bc_\ba_\bl_\bI_\bd_\bT_\by_\bp_\be\n-L LocalIdType\n-The type of the local index.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:84\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bc_\bl_\be_\ba_\br\n-void clear()\n-Remove all indices from the sets.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\ba_\bd_\bd_\bL_\bo_\bc_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-void addLocalIndex(const IndexTripel &x)\n-Add a new index triple to the set of local indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:106\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bd_\be_\bx_\bI_\bn_\bf_\bo_\bF_\br_\bo_\bm_\bG_\br_\bi_\bd_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\be_\bx_\bT_\br_\bi_\bp_\be_\bl\n-std::tuple< int, GlobalIdType, int > RemoteIndexTripel\n-A triple describing a remote index.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:99\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-A class setting up standard communication for a two-valued attribute set with\n-owner/overlap/copy sema...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bS_\be_\bt\n-EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::copy > CopySet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:195\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n-const GlobalLookupIndexSet & globalLookup() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:526\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bn_\bo_\br_\bm\n-FieldTraits< typenameT1::field_type >::real_type norm(const T1 &x) const\n-Compute the global Euclidean norm of a vector.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:425\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-void buildOwnerOverlapToAllInterface() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:233\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\bI_\bS\n-Dune::ParallelIndexSet< GlobalIdType, LI, 512 > PIS\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:188\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-void buildOwnerCopyToAllInterface() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:254\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-void buildOwnerCopyToOwnerCopyInterface() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:266\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-OwnerOverlapCopyCommunication(const IndexInfoFromGrid< GlobalIdType,\n-LocalIdType > &indexinfo, MPI_Comm comm_, SolverCategory::Category\n-cat_=SolverCategory::overlapping, bool freecomm_=false)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:586\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-SolverCategory::Category category() const\n-Get Solver Category.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:295\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by\n-void addOwnerCopyToOwnerCopy(const T &source, T &dest) const\n-Communicate values from owner and copy data points to owner and copy data\n-points and add them to thos...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:379\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-void buildCopyToAllInterface() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:279\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bF_\bl_\ba_\bg_\bs\n-Dune::EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::copy > CopyFlags\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:446\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n-RemoteIndices & remoteIndices()\n-Get the underlying remote indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:490\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bn_\bd_\be_\bx_\bS_\be_\bt\n-const ParallelIndexSet & indexSet() const\n-Get the underlying parallel index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:462\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bR_\bI\n-Dune::RemoteIndices< PIS > RI\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:189\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n-void buildGlobalLookup(std::size_t size)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:508\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bT_\bo_\bA_\bl_\bl\n-void addOwnerOverlapToAll(const T &source, T &dest) const\n-Communicate values from owner data points to all other data points and add them\n-to those values.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:345\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bR_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n-Dune::RemoteIndices< PIS > RemoteIndices\n-The type of the remote indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:452\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bp_\br_\bo_\bj_\be_\bc_\bt\n-void project(T1 &x) const\n-Set vector to zero at copy dofs.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:538\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bl_\bl_\bS_\be_\bt\n-Dune::AllSet< AttributeSet > AllSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:197\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bS_\be_\bt\n-Combine< EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner >,\n-EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::overlap >, AttributeSet >\n-OwnerOverlapSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:196\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl\n-void copyCopyToAll(const T &source, T &dest) const\n-Communicate values from copy data points to all other data points.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:328\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-Dune::GlobalLookupIndexSet< ParallelIndexSet > GlobalLookupIndexSet\n-The type of the reverse lookup of indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:456\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bI_\bF\n-Dune::Interface IF\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:193\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b~_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-~OwnerOverlapCopyCommunication()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:650\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n-void buildGlobalLookup()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:495\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bB_\bC\n-Dune::BufferedCommunicator BC\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:192\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-OwnerOverlapCopyCommunication(MPI_Comm comm_, SolverCategory::Category\n-cat_=SolverCategory::overlapping, bool freecomm_=false)\n-Construct the communication without any indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:554\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bn_\bd_\be_\bx_\bS_\be_\bt\n-ParallelIndexSet & indexSet()\n-Get the underlying parallel index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:480\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bd_\bo_\bt\n-void dot(const T1 &x, const T1 &y, T2 &result) const\n-Compute a global dot product of two vectors.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:398\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bo_\br\n-const Communication< MPI_Comm > & communicator() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:299\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-OwnerOverlapCopyCommunication(SolverCategory::Category cat_=SolverCategory::\n-overlapping)\n-Construct the communication without any indices using MPI_COMM_WORLD.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:572\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n-EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner > OwnerSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:194\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bp_\by_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl\n-void copyOwnerToAll(const T &source, T &dest) const\n-Communicate values from owner data points to all other data points.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:311\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bm_\bo_\bt_\be_\bI_\bn_\bd_\bi_\bc_\be_\bs\n-const RemoteIndices & remoteIndices() const\n-Get the underlying remote indices.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:471\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bl_\bo_\ba_\bd_\bM_\ba_\bt_\br_\bi_\bx_\bM_\ba_\br_\bk_\be_\bt\n-friend void loadMatrixMarket(M &, const std::string &,\n-OwnerOverlapCopyCommunication< G, L > &, bool)\n-Load a parallel matrix/vector stored in matrix market format.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmarket.hh:1269\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bR_\bX\n-RI::RemoteIndex RX\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:191\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\ba_\bd_\bd_\bO_\bw_\bn_\be_\br_\bC_\bo_\bp_\by_\bT_\bo_\bA_\bl_\bl\n-void addOwnerCopyToAll(const T &source, T &dest) const\n-Communicate values from owner and copy data points to all other data points and\n-add them to those val...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:362\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bf_\br_\be_\be_\bG_\bl_\bo_\bb_\ba_\bl_\bL_\bo_\bo_\bk_\bu_\bp\n-void freeGlobalLookup()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:520\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bR_\bI_\bL_\bM\n-Dune::RemoteIndexListModifier< PIS, typename RI::Allocator, false > RILM\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:190\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bP_\ba_\br_\ba_\bl_\bl_\be_\bl_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-Dune::ParallelIndexSet< GlobalIdType, LI, 512 > ParallelIndexSet\n-The type of the parallel index set.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:449\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bb_\bu_\bi_\bl_\bd_\bO_\bw_\bn_\be_\br_\bT_\bo_\bA_\bl_\bl_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-void buildOwnerToAllInterface() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:244\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-gather/scatter callback for communcation\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:204\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n-static V gather(const T &a, std::size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:207\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n-static void scatter(T &a, V v, std::size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:212\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bC_\bo_\bp_\by_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bV\n-CommPolicy< T >::IndexedType V\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:205\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:219\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bV\n-CommPolicy< T >::IndexedType V\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:220\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n-static V gather(const T &a, std::size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:222\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bA_\bd_\bd_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n-static void scatter(T &a, V v, std::size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:227\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n+size_type M() const\n+Return the number of columns.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:700\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+size_type N() const\n+Return the number of rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:695\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b:_\b:_\bc_\bh_\be_\bc_\bk\n+static void check(const Matrix &mat)\n+Check whether the a matrix has diagonal values on blocklevel recursion levels.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bs_\bs_\be_\bm_\bb_\bl_\be_\bd_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A linear operator exporting itself in matrix form.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:109\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Turns an InverseOperator into a Preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+O::range_type range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:80\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+O::domain_type domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:78\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(domain_type &)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:111\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+range_type::field_type field_type\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+FieldTraits< scalar_field_type >::real_type real_field_type\n+real scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:86\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Simd::Scalar< field_type > scalar_field_type\n+scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:84\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:115\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bp_\br_\be\n+virtual void pre(domain_type &, range_type &)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:101\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+InverseOperator2Preconditioner(InverseOperator &inverse_operator)\n+Construct the preconditioner from the solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:94\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+O InverseOperator\n+type of the wrapped inverse operator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:88\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b2_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(domain_type &v, const range_type &d)\n+Apply one step of the preconditioner to the system A(v)=d.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:104\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n+Sequential SSOR preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:141\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(X &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:229\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n+SeqSSOR(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A,\n+const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:182\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n+SeqSSOR(const M &A, const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:199\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:233\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:150\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Simd::Scalar< field_type > scalar_field_type\n+scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:152\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:146\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+The matrix type the preconditioner is for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:144\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &v, const Y &d)\n+Apply the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:216\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bp_\br_\be\n+virtual void pre(X &x, Y &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:208\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:148\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+FieldTraits< scalar_field_type >::real_type real_field_type\n+real scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:154\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bS_\bO_\bR\n+SeqSSOR(const M &A, int n, real_field_type w)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:163\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR\n+Sequential SOR preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:261\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR\n+SeqSOR(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A,\n+const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:302\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+The matrix type the preconditioner is for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:264\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+FieldTraits< scalar_field_type >::real_type real_field_type\n+real scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:274\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(X &v, const Y &d)\n+Apply the preconditioner in a special direction.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:350\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:266\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(X &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:367\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bp_\br_\be\n+virtual void pre(X &x, Y &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:328\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Simd::Scalar< field_type > scalar_field_type\n+scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:272\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:371\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &v, const Y &d)\n+Apply the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:336\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:268\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR\n+SeqSOR(const M &A, const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:319\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:270\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR_\b:_\b:_\bS_\be_\bq_\bS_\bO_\bR\n+SeqSOR(const M &A, int n, real_field_type w)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:283\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc\n+The sequential jacobian preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:412\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(X &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:499\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc\n+SeqJac(const M &A, const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:470\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &v, const Y &d)\n+Apply the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:487\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+M matrix_type\n+The matrix type the preconditioner is for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:415\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Simd::Scalar< field_type > scalar_field_type\n+scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:423\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc\n+SeqJac(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A,\n+const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:453\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:421\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bp_\br_\be\n+virtual void pre(X &x, Y &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:479\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:417\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+FieldTraits< scalar_field_type >::real_type real_field_type\n+real scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:425\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:503\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc\n+SeqJac(const M &A, int n, real_field_type w)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:434\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bJ_\ba_\bc_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:419\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n+Sequential ILU preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:532\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(X &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:678\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n+SeqILU(const M &A, int n, real_field_type w, const bool resort=false)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:612\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bp_\br_\be\n+virtual void pre(X &x, Y &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:648\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &v, const Y &d)\n+Apply the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:656\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS\n+ILU::CRS< block_type, typename M::allocator_type > CRS\n+type of ILU storage\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:552\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:541\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bl_\bo_\bw_\be_\br_\b_\n+CRS lower_\n+The ILU(n) decomposition of the matrix. As storage a CRS structure is used.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:692\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bw_\bN_\bo_\bt_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\b_\n+const bool wNotIdentity_\n+true if w != 1.0\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:699\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n+SeqILU(const M &A, const ParameterTree &config)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:598\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+std::remove_const< M >::type matrix_type\n+The matrix type the preconditioner is for.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:535\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+matrix_type::block_type block_type\n+block type of matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:537\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+FieldTraits< scalar_field_type >::real_type real_field_type\n+real scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:549\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:544\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:682\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n+SeqILU(const M &A, real_field_type w, const bool resort=false)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bw_\b_\n+const real_field_type w_\n+The relaxation factor to use.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:697\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU\n+SeqILU(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A,\n+const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:580\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:539\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bi_\bn_\bv_\b_\n+std::vector< block_type, typename matrix_type::allocator_type > inv_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:694\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Simd::Scalar< field_type > scalar_field_type\n+scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:547\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bI_\bL_\bU_\b_\n+std::unique_ptr< matrix_type > ILU_\n+The ILU(n) decomposition of the matrix. As storage a BCRSMatrix is used.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:689\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bU_\b:_\b:_\bu_\bp_\bp_\be_\br_\b_\n+CRS upper_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:693\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn\n+Richardson preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:713\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:720\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:778\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+The range type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:718\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bp_\br_\be\n+virtual void pre(X &x, Y &b)\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:755\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn\n+Richardson(real_field_type w=1.0)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:731\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bp_\bo_\bs_\bt\n+virtual void post(X &x)\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:774\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+FieldTraits< scalar_field_type >::real_type real_field_type\n+real scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:724\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Simd::Scalar< field_type > scalar_field_type\n+scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:722\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn\n+Richardson(const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:746\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+The domain type of the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:716\n+_\bD_\bu_\bn_\be_\b:_\b:_\bR_\bi_\bc_\bh_\ba_\br_\bd_\bs_\bo_\bn_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &v, const Y &d)\n+Apply the precondioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:763\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL\n+sequential ILDL preconditioner\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:807\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL\n+SeqILDL(const matrix_type &A, const ParameterTree &config)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:853\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL\n+SeqILDL(const matrix_type &A, real_field_type relax=real_field_type(1))\n+constructor\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:865\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+domain type of the preconditioner\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:815\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bp_\bo_\bs_\bt\n+void post(X &x) override\n+Clean up.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:916\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+range type of the preconditioner\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:817\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\b__\bt_\by_\bp_\be\n+std::remove_const_t< M > matrix_type\n+type of matrix the preconditioner is for\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:813\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+void apply(X &v, const Y &d) override\n+Apply one step of the preconditioner to the system A(v)=d.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:909\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\br_\be_\ba_\bl_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+FieldTraits< scalar_field_type >::real_type real_field_type\n+real scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:823\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL\n+SeqILDL(const std::shared_ptr< const AssembledLinearOperator< M, X, Y > > &A,\n+const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:837\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bp_\br_\be\n+void pre(X &x, Y &b) override\n+Prepare the preconditioner.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:905\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+Simd::Scalar< field_type > scalar_field_type\n+scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:821\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+field type of the preconditioner\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:819\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bI_\bL_\bD_\bL_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+SolverCategory::Category category() const override\n+Category of the preconditioner (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioners.hh:920\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+Statistics about the application of an inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Abstract base class for all solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n Category\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n-@ overlapping\n-Category for overlapping solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:29\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+static Category category(const OP &op, decltype(op.category()) *=nullptr)\n+Helperfunction to extract the solver category either from an enum, or from the\n+newly introduced virtu...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00215.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00215.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: bvector.hh File Reference\n+dune-istl: ilu.hh File Reference\n \n \n \n \n \n \n \n@@ -73,63 +73,77 @@\n
    \n
    \n
    \n \n-
    bvector.hh File Reference
    \n+
    ilu.hh File Reference
    \n
    \n
    \n \n-

    This file implements a vector space as a tensor product of a given vector space. The number of components can be given at run-time. \n+

    The incomplete LU factorization kernels. \n More...

    \n-
    #include <algorithm>
    \n-#include <cmath>
    \n+
    #include <cmath>
    \n #include <complex>
    \n-#include <initializer_list>
    \n-#include <limits>
    \n-#include <memory>
    \n-#include <utility>
    \n+#include <map>
    \n #include <vector>
    \n-#include <dune/common/dotproduct.hh>
    \n-#include <dune/common/ftraits.hh>
    \n #include <dune/common/fmatrix.hh>
    \n-#include <dune/common/fvector.hh>
    \n-#include <dune/common/promotiontraits.hh>
    \n-#include <dune/common/typetraits.hh>
    \n #include <dune/common/scalarvectorview.hh>
    \n-#include <dune/istl/blocklevel.hh>
    \n-#include "basearray.hh"
    \n-#include "istlexception.hh"
    \n+#include <dune/common/scalarmatrixview.hh>
    \n+#include "istlexception.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n-\n-\n+\n+\n \n

    \n Classes

    class  Dune::BlockVector< B, A >
     A vector of blocks with memory management. More...
     
    struct  Dune::FieldTraits< BlockVector< B, A > >
    struct  Dune::ILU::CRS< B, Alloc >
     a simple compressed row storage matrix class More...
     
    \n \n \n \n+\n+\n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::ILU
     
    \n \n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n Functions

    template<class K , class A >
    std::ostream & Dune::operator<< (std::ostream &s, const BlockVector< K, A > &v)
     Send BlockVector to an output stream.
     
    template<class M >
    void Dune::ILU::blockILU0Decomposition (M &A)
     compute ILU decomposition of A. A is overwritten by its decomposition
     
    template<class M , class X , class Y >
    void Dune::ILU::blockILUBacksolve (const M &A, X &v, const Y &d)
     LU backsolve with stored inverse.
     
    template<class M >
    M::field_type & Dune::ILU::firstMatrixElement (M &A, typename std::enable_if_t<!Dune::IsNumber< M >::value > *sfinae=nullptr)
     
    template<class K >
    K & Dune::ILU::firstMatrixElement (K &A, typename std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)
     
    template<class K , int n, int m>
    K & Dune::ILU::firstMatrixElement (FieldMatrix< K, n, m > &A)
     
    template<class M >
    void Dune::ILU::blockILUDecomposition (const M &A, int n, M &ILU)
     
    template<class M , class CRS , class InvVector >
    void Dune::ILU::convertToCRS (const M &A, CRS &lower, CRS &upper, InvVector &inv)
     convert ILU decomposition into CRS format for lower and upper triangular and inverse.
     
    template<class CRS , class InvVector , class X , class Y >
    void Dune::ILU::blockILUBacksolve (const CRS &lower, const CRS &upper, const InvVector &inv, X &v, const Y &d)
     LU backsolve with stored inverse in CRS format for lower and upper triangular.
     
    \n

    Detailed Description

    \n-

    This file implements a vector space as a tensor product of a given vector space. The number of components can be given at run-time.

    \n+

    The incomplete LU factorization kernels.

    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,49 +1,67 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-bvector.hh File Reference\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of components can be given at run-time. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n+ilu.hh File Reference\n+The incomplete LU factorization kernels. _\bM_\bo_\br_\be_\b._\b._\b.\n #include \n #include \n-#include \n-#include \n-#include \n-#include \n+#include \n #include \n-#include \n-#include \n #include \n-#include \n-#include \n-#include \n #include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n-#include \"_\bb_\ba_\bs_\be_\ba_\br_\br_\ba_\by_\b._\bh_\bh\"\n+#include \n #include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>\n-\u00a0 A vector of blocks with memory management. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b<_\b _\bB_\b,_\b _\bA_\bl_\bl_\bo_\bc_\b _\b>\n+\u00a0 a simple compressed row storage matrix class _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+namespace \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU\n+\u00a0\n F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-std::ostream &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b< (std::ostream &s, const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br< K, A >\n- &v)\n-\u00a0 Send _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br to an output stream.\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn (M &A)\n+\u00a0 compute _\bI_\bL_\bU decomposition of A. A is overwritten by its\n+ decomposition\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be (const M &A, X &v, const Y &d)\n+\u00a0 LU backsolve with stored inverse.\n+\u00a0\n+template\n+M::field_type &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (M &A, typename std::\n+ enable_if_t::value > *sfinae=nullptr)\n+\u00a0\n+template\n+ K &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (K &A, typename std::\n+ enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)\n+\u00a0\n+template\n+ K &\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, n, m > &A)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn (const M &A, int n, M &ILU)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bt_\bT_\bo_\bC_\bR_\bS (const M &A, _\bC_\bR_\bS &lower, _\bC_\bR_\bS &upper,\n+ InvVector &inv)\n+\u00a0 convert _\bI_\bL_\bU decomposition into _\bC_\bR_\bS format for lower and upper\n+ triangular and inverse.\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be (const _\bC_\bR_\bS &lower, const _\bC_\bR_\bS\n+ &upper, const InvVector &inv, X &v, const Y &d)\n+\u00a0 LU backsolve with stored inverse in _\bC_\bR_\bS format for lower and\n+ upper triangular.\n \u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of components can be given at run-time.\n+The incomplete LU factorization kernels.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00215_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00215_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: bvector.hh Source File\n+dune-istl: ilu.hh Source File\n \n \n \n \n \n \n \n@@ -74,961 +74,475 @@\n \n
    \n \n
    \n
    \n
    \n-
    bvector.hh
    \n+
    ilu.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5
    \n-
    6#ifndef DUNE_ISTL_BVECTOR_HH
    \n-
    7#define DUNE_ISTL_BVECTOR_HH
    \n-
    8
    \n-
    9#include <algorithm>
    \n-
    10#include <cmath>
    \n-
    11#include <complex>
    \n-
    12#include <initializer_list>
    \n-
    13#include <limits>
    \n-
    14#include <memory>
    \n-
    15#include <utility>
    \n-
    16#include <vector>
    \n-
    17
    \n-
    18#include <dune/common/dotproduct.hh>
    \n-
    19#include <dune/common/ftraits.hh>
    \n-
    20#include <dune/common/fmatrix.hh>
    \n-
    21#include <dune/common/fvector.hh>
    \n-
    22#include <dune/common/promotiontraits.hh>
    \n-
    23#include <dune/common/typetraits.hh>
    \n-
    24#include <dune/common/scalarvectorview.hh>
    \n-
    25
    \n-\n-
    27
    \n-
    28#include "basearray.hh"
    \n-
    29#include "istlexception.hh"
    \n+
    5#ifndef DUNE_ISTL_ILU_HH
    \n+
    6#define DUNE_ISTL_ILU_HH
    \n+
    7
    \n+
    8#include <cmath>
    \n+
    9#include <complex>
    \n+
    10#include <map>
    \n+
    11#include <vector>
    \n+
    12
    \n+
    13#include <dune/common/fmatrix.hh>
    \n+
    14#include <dune/common/scalarvectorview.hh>
    \n+
    15#include <dune/common/scalarmatrixview.hh>
    \n+
    16
    \n+
    17#include "istlexception.hh"
    \n+
    18
    \n+
    23namespace Dune {
    \n+
    24
    \n+
    \n+
    29 namespace ILU {
    \n
    30
    \n-
    38namespace Dune {
    \n+
    32 template<class M>
    \n+
    \n+\n+
    34 {
    \n+
    35 // iterator types
    \n+
    36 typedef typename M::RowIterator rowiterator;
    \n+
    37 typedef typename M::ColIterator coliterator;
    \n+
    38 typedef typename M::block_type block;
    \n
    39
    \n-
    41namespace Imp {
    \n-
    42
    \n-
    48 template <class B, bool isNumber>
    \n-
    49 class BlockTraitsImp;
    \n-
    50
    \n-
    51 template <class B>
    \n-
    52 class BlockTraitsImp<B,true>
    \n-
    53 {
    \n-
    54 public:
    \n-
    55 using field_type = B;
    \n-
    56 };
    \n-
    57
    \n-
    58 template <class B>
    \n-
    59 class BlockTraitsImp<B,false>
    \n-
    60 {
    \n-
    61 public:
    \n-
    62 using field_type = typename B::field_type;
    \n-
    63 };
    \n-
    64
    \n-
    67 template <class B>
    \n-
    68 using BlockTraits = BlockTraitsImp<B,IsNumber<B>::value>;
    \n-
    69
    \n-
    83 template<class B, class A=std::allocator<B> >
    \n-
    84 class block_vector_unmanaged : public base_array_unmanaged<B,A>
    \n-
    85 {
    \n-
    86 public:
    \n-
    87
    \n-
    88 //===== type definitions and constants
    \n-
    89 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n-
    90
    \n-
    92 typedef B block_type;
    \n-
    93
    \n-
    95 typedef A allocator_type;
    \n-
    96
    \n-
    98 typedef typename A::size_type size_type;
    \n-
    99
    \n-
    101 typedef typename base_array_unmanaged<B,A>::iterator Iterator;
    \n-
    102
    \n-
    104 typedef typename base_array_unmanaged<B,A>::const_iterator ConstIterator;
    \n-
    105
    \n-
    107 typedef B value_type;
    \n-
    108
    \n-
    110 typedef B& reference;
    \n-
    111
    \n-
    113 typedef const B& const_reference;
    \n-
    114
    \n-
    115 //===== assignment from scalar
    \n-
    117
    \n-
    118 block_vector_unmanaged& operator= (const field_type& k)
    \n-
    119 {
    \n-
    120 for (size_type i=0; i<this->n; i++)
    \n-
    121 (*this)[i] = k;
    \n-
    122 return *this;
    \n-
    123 }
    \n-
    124
    \n-
    125 //===== vector space arithmetic
    \n-
    127 block_vector_unmanaged& operator+= (const block_vector_unmanaged& y)
    \n-
    128 {
    \n-
    129#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    130 if (this->n!=y.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n-
    131#endif
    \n-
    132 for (size_type i=0; i<this->n; ++i) (*this)[i] += y[i];
    \n-
    133 return *this;
    \n-
    134 }
    \n-
    135
    \n-
    137 block_vector_unmanaged& operator-= (const block_vector_unmanaged& y)
    \n-
    138 {
    \n-
    139#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    140 if (this->n!=y.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n-
    141#endif
    \n-
    142 for (size_type i=0; i<this->n; ++i) (*this)[i] -= y[i];
    \n-
    143 return *this;
    \n-
    144 }
    \n-
    145
    \n-
    147 block_vector_unmanaged& operator*= (const field_type& k)
    \n-
    148 {
    \n-
    149 for (size_type i=0; i<this->n; ++i) (*this)[i] *= k;
    \n-
    150 return *this;
    \n-
    151 }
    \n-
    152
    \n-
    154 block_vector_unmanaged& operator/= (const field_type& k)
    \n-
    155 {
    \n-
    156 for (size_type i=0; i<this->n; ++i) (*this)[i] /= k;
    \n-
    157 return *this;
    \n+
    40 // implement left looking variant with stored inverse
    \n+
    41 rowiterator endi=A.end();
    \n+
    42 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n+
    43 {
    \n+
    44 // coliterator is diagonal after the following loop
    \n+
    45 coliterator endij=(*i).end(); // end of row i
    \n+
    46 coliterator ij;
    \n+
    47
    \n+
    48 // eliminate entries left of diagonal; store L factor
    \n+
    49 for (ij=(*i).begin(); ij.index()<i.index(); ++ij)
    \n+
    50 {
    \n+
    51 // find A_jj which eliminates A_ij
    \n+
    52 coliterator jj = A[ij.index()].find(ij.index());
    \n+
    53
    \n+
    54 // compute L_ij = A_jj^-1 * A_ij
    \n+
    55 Impl::asMatrix(*ij).rightmultiply(Impl::asMatrix(*jj));
    \n+
    56
    \n+
    57 // modify row
    \n+
    58 coliterator endjk=A[ij.index()].end(); // end of row j
    \n+
    59 coliterator jk=jj; ++jk;
    \n+
    60 coliterator ik=ij; ++ik;
    \n+
    61 while (ik!=endij && jk!=endjk)
    \n+
    62 if (ik.index()==jk.index())
    \n+
    63 {
    \n+
    64 block B(*jk);
    \n+
    65 Impl::asMatrix(B).leftmultiply(Impl::asMatrix(*ij));
    \n+
    66 *ik -= B;
    \n+
    67 ++ik; ++jk;
    \n+
    68 }
    \n+
    69 else
    \n+
    70 {
    \n+
    71 if (ik.index()<jk.index())
    \n+
    72 ++ik;
    \n+
    73 else
    \n+
    74 ++jk;
    \n+
    75 }
    \n+
    76 }
    \n+
    77
    \n+
    78 // invert pivot and store it in A
    \n+
    79 if (ij.index()!=i.index())
    \n+
    80 DUNE_THROW(ISTLError,"diagonal entry missing");
    \n+
    81 try {
    \n+
    82 Impl::asMatrix(*ij).invert(); // compute inverse of diagonal block
    \n+
    83 }
    \n+
    84 catch (Dune::FMatrixError & e) {
    \n+
    85 DUNE_THROW(MatrixBlockError, "ILU failed to invert matrix block A["
    \n+
    86 << i.index() << "][" << ij.index() << "]" << e.what();
    \n+
    87 th__ex.r=i.index(); th__ex.c=ij.index(););
    \n+
    88 }
    \n+
    89 }
    \n+
    90 }
    \n+
    \n+
    91
    \n+
    93 template<class M, class X, class Y>
    \n+
    \n+
    94 void blockILUBacksolve (const M& A, X& v, const Y& d)
    \n+
    95 {
    \n+
    96 // iterator types
    \n+
    97 typedef typename M::ConstRowIterator rowiterator;
    \n+
    98 typedef typename M::ConstColIterator coliterator;
    \n+
    99 typedef typename Y::block_type dblock;
    \n+
    100 typedef typename X::block_type vblock;
    \n+
    101
    \n+
    102 // lower triangular solve
    \n+
    103 rowiterator endi=A.end();
    \n+
    104 for (rowiterator i=A.begin(); i!=endi; ++i)
    \n+
    105 {
    \n+
    106 // We need to be careful here: Directly using
    \n+
    107 // auto rhs = Impl::asVector(d[ i.index() ]);
    \n+
    108 // is not OK in case this is a proxy. Hence
    \n+
    109 // we first have to copy the value. Notice that
    \n+
    110 // this is still not OK, if the vector type itself returns
    \n+
    111 // proxy references.
    \n+
    112 dblock rhsValue(d[i.index()]);
    \n+
    113 auto&& rhs = Impl::asVector(rhsValue);
    \n+
    114 for (coliterator j=(*i).begin(); j.index()<i.index(); ++j)
    \n+
    115 Impl::asMatrix(*j).mmv(Impl::asVector(v[j.index()]),rhs);
    \n+
    116 Impl::asVector(v[i.index()]) = rhs; // Lii = I
    \n+
    117 }
    \n+
    118
    \n+
    119 // upper triangular solve
    \n+
    120 rowiterator rendi=A.beforeBegin();
    \n+
    121 for (rowiterator i=A.beforeEnd(); i!=rendi; --i)
    \n+
    122 {
    \n+
    123 // We need to be careful here: Directly using
    \n+
    124 // auto rhs = Impl::asVector(v[ i.index() ]);
    \n+
    125 // is not OK in case this is a proxy. Hence
    \n+
    126 // we first have to copy the value. Notice that
    \n+
    127 // this is still not OK, if the vector type itself returns
    \n+
    128 // proxy references.
    \n+
    129 vblock rhsValue(v[i.index()]);
    \n+
    130 auto&& rhs = Impl::asVector(rhsValue);
    \n+
    131 coliterator j;
    \n+
    132 for (j=(*i).beforeEnd(); j.index()>i.index(); --j)
    \n+
    133 Impl::asMatrix(*j).mmv(Impl::asVector(v[j.index()]),rhs);
    \n+
    134 auto&& vi = Impl::asVector(v[i.index()]);
    \n+
    135 Impl::asMatrix(*j).mv(rhs,vi); // diagonal stores inverse!
    \n+
    136 }
    \n+
    137 }
    \n+
    \n+
    138
    \n+
    139 // recursive function template to access first entry of a matrix
    \n+
    140 template<class M>
    \n+
    \n+
    141 typename M::field_type& firstMatrixElement (M& A,
    \n+
    142 [[maybe_unused]] typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr)
    \n+
    143 {
    \n+
    144 return firstMatrixElement(*(A.begin()->begin()));
    \n+
    145 }
    \n+
    \n+
    146
    \n+
    147 template<class K>
    \n+
    \n+\n+
    149 [[maybe_unused]] typename std::enable_if_t<Dune::IsNumber<K>::value>* sfinae = nullptr)
    \n+
    150 {
    \n+
    151 return A;
    \n+
    152 }
    \n+
    \n+
    153
    \n+
    154 template<class K, int n, int m>
    \n+
    \n+\n+
    156 {
    \n+
    157 return A[0][0];
    \n
    158 }
    \n+
    \n
    159
    \n-
    161 block_vector_unmanaged& axpy (const field_type& a, const block_vector_unmanaged& y)
    \n-
    162 {
    \n-
    163#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    164 if (this->n!=y.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n-
    165#endif
    \n-
    166 for (size_type i=0; i<this->n; ++i)
    \n-
    167 Impl::asVector((*this)[i]).axpy(a,Impl::asVector(y[i]));
    \n-
    168
    \n-
    169 return *this;
    \n-
    170 }
    \n-
    171
    \n-
    172
    \n-
    180 template<class OtherB, class OtherA>
    \n-
    181 auto operator* (const block_vector_unmanaged<OtherB,OtherA>& y) const
    \n-
    182 {
    \n-
    183 typedef typename PromotionTraits<field_type,typename BlockTraits<OtherB>::field_type>::PromotedType PromotedType;
    \n-
    184 PromotedType sum(0);
    \n-
    185#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    186 if (this->n!=y.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n-
    187#endif
    \n-
    188 for (size_type i=0; i<this->n; ++i) {
    \n-
    189 sum += PromotedType(((*this)[i])*y[i]);
    \n-
    190 }
    \n-
    191 return sum;
    \n-
    192 }
    \n-
    193
    \n-
    201 template<class OtherB, class OtherA>
    \n-
    202 auto dot(const block_vector_unmanaged<OtherB,OtherA>& y) const
    \n-
    203 {
    \n-
    204 typedef typename PromotionTraits<field_type,typename BlockTraits<OtherB>::field_type>::PromotedType PromotedType;
    \n-
    205 PromotedType sum(0);
    \n-
    206#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    207 if (this->n!=y.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n-
    208#endif
    \n-
    209
    \n-
    210 for (size_type i=0; i<this->n; ++i)
    \n-
    211 sum += Impl::asVector((*this)[i]).dot(Impl::asVector(y[i]));
    \n-
    212
    \n-
    213 return sum;
    \n-
    214 }
    \n-
    215
    \n-
    216 //===== norms
    \n-
    217
    \n-
    219 typename FieldTraits<field_type>::real_type one_norm () const
    \n-
    220 {
    \n-
    221 typename FieldTraits<field_type>::real_type sum=0;
    \n-
    222 for (size_type i=0; i<this->n; ++i)
    \n-
    223 sum += Impl::asVector((*this)[i]).one_norm();
    \n-
    224 return sum;
    \n-
    225 }
    \n-
    226
    \n-
    228 typename FieldTraits<field_type>::real_type one_norm_real () const
    \n-
    229 {
    \n-
    230 typename FieldTraits<field_type>::real_type sum=0;
    \n-
    231 for (size_type i=0; i<this->n; ++i)
    \n-
    232 sum += Impl::asVector((*this)[i]).one_norm_real();
    \n-
    233 return sum;
    \n-
    234 }
    \n-
    235
    \n-
    237 typename FieldTraits<field_type>::real_type two_norm () const
    \n-
    238 {
    \n-
    239 using std::sqrt;
    \n-
    240 return sqrt(two_norm2());
    \n-
    241 }
    \n-
    242
    \n-
    244 typename FieldTraits<field_type>::real_type two_norm2 () const
    \n-
    245 {
    \n-
    246 typename FieldTraits<field_type>::real_type sum=0;
    \n-
    247 for (size_type i=0; i<this->n; ++i)
    \n-
    248 sum += Impl::asVector((*this)[i]).two_norm2();
    \n-
    249 return sum;
    \n-
    250 }
    \n+
    166 template<class M>
    \n+
    \n+
    167 void blockILUDecomposition (const M& A, int n, M& ILU)
    \n+
    168 {
    \n+
    169 // iterator types
    \n+
    170 typedef typename M::ColIterator coliterator;
    \n+
    171 typedef typename M::ConstRowIterator crowiterator;
    \n+
    172 typedef typename M::ConstColIterator ccoliterator;
    \n+
    173 typedef typename M::CreateIterator createiterator;
    \n+
    174 typedef typename M::field_type K;
    \n+
    175 typedef std::map<size_t, int> map;
    \n+
    176 typedef typename map::iterator mapiterator;
    \n+
    177
    \n+
    178 // symbolic factorization phase, store generation number in first matrix element
    \n+
    179 crowiterator endi=A.end();
    \n+
    180 createiterator ci=ILU.createbegin();
    \n+
    181 for (crowiterator i=A.begin(); i!=endi; ++i)
    \n+
    182 {
    \n+
    183 map rowpattern; // maps column index to generation
    \n+
    184
    \n+
    185 // initialize pattern with row of A
    \n+
    186 for (ccoliterator j=(*i).begin(); j!=(*i).end(); ++j)
    \n+
    187 rowpattern[j.index()] = 0;
    \n+
    188
    \n+
    189 // eliminate entries in row which are to the left of the diagonal
    \n+
    190 for (mapiterator ik=rowpattern.begin(); (*ik).first<i.index(); ++ik)
    \n+
    191 {
    \n+
    192 if ((*ik).second<n)
    \n+
    193 {
    \n+
    194 coliterator endk = ILU[(*ik).first].end(); // end of row k
    \n+
    195 coliterator kj = ILU[(*ik).first].find((*ik).first); // diagonal in k
    \n+
    196 for (++kj; kj!=endk; ++kj) // row k eliminates in row i
    \n+
    197 {
    \n+
    198 // we misuse the storage to store an int. If the field_type is std::complex, we have to access the real/abs part
    \n+
    199 // starting from C++11, we can use std::abs to always return a real value, even if it is double/float
    \n+
    200 using std::abs;
    \n+
    201 int generation = (int) Simd::lane(0, abs( firstMatrixElement(*kj) ));
    \n+
    202 if (generation<n)
    \n+
    203 {
    \n+
    204 mapiterator ij = rowpattern.find(kj.index());
    \n+
    205 if (ij==rowpattern.end())
    \n+
    206 {
    \n+
    207 rowpattern[kj.index()] = generation+1;
    \n+
    208 }
    \n+
    209 }
    \n+
    210 }
    \n+
    211 }
    \n+
    212 }
    \n+
    213
    \n+
    214 // create row
    \n+
    215 for (mapiterator ik=rowpattern.begin(); ik!=rowpattern.end(); ++ik)
    \n+
    216 ci.insert((*ik).first);
    \n+
    217 ++ci; // now row i exist
    \n+
    218
    \n+
    219 // write generation index into entries
    \n+
    220 coliterator endILUij = ILU[i.index()].end();;
    \n+
    221 for (coliterator ILUij=ILU[i.index()].begin(); ILUij!=endILUij; ++ILUij)
    \n+
    222 Simd::lane(0, firstMatrixElement(*ILUij)) = (Simd::Scalar<K>) rowpattern[ILUij.index()];
    \n+
    223 }
    \n+
    224
    \n+
    225 // copy entries of A
    \n+
    226 for (crowiterator i=A.begin(); i!=endi; ++i)
    \n+
    227 {
    \n+
    228 coliterator ILUij;
    \n+
    229 coliterator endILUij = ILU[i.index()].end();;
    \n+
    230 for (ILUij=ILU[i.index()].begin(); ILUij!=endILUij; ++ILUij)
    \n+
    231 (*ILUij) = 0; // clear row
    \n+
    232 ccoliterator Aij = (*i).begin();
    \n+
    233 ccoliterator endAij = (*i).end();
    \n+
    234 ILUij = ILU[i.index()].begin();
    \n+
    235 while (Aij!=endAij && ILUij!=endILUij)
    \n+
    236 {
    \n+
    237 if (Aij.index()==ILUij.index())
    \n+
    238 {
    \n+
    239 *ILUij = *Aij;
    \n+
    240 ++Aij; ++ILUij;
    \n+
    241 }
    \n+
    242 else
    \n+
    243 {
    \n+
    244 if (Aij.index()<ILUij.index())
    \n+
    245 ++Aij;
    \n+
    246 else
    \n+
    247 ++ILUij;
    \n+
    248 }
    \n+
    249 }
    \n+
    250 }
    \n
    251
    \n-
    253 template <typename ft = field_type,
    \n-
    254 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n-
    255 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n-
    256 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    257 using std::max;
    \n-
    258
    \n-
    259 real_type norm = 0;
    \n-
    260 for (auto const &xi : *this) {
    \n-
    261 real_type const a = Impl::asVector(xi).infinity_norm();
    \n-
    262 norm = max(a, norm);
    \n-
    263 }
    \n-
    264 return norm;
    \n-
    265 }
    \n+
    252 // call decomposition on pattern
    \n+\n+
    254 }
    \n+
    \n+
    255
    \n+
    257 template <class B, class Alloc = std::allocator<B>>
    \n+
    \n+
    258 struct CRS
    \n+
    259 {
    \n+
    260 typedef B block_type;
    \n+
    261 typedef size_t size_type;
    \n+
    262
    \n+
    263 CRS() : nRows_( 0 ) {}
    \n+
    264
    \n+
    265 size_type rows() const { return nRows_; }
    \n
    266
    \n-
    268 template <typename ft = field_type,
    \n-
    269 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n-
    270 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n-
    271 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    272 using std::max;
    \n-
    273
    \n-
    274 real_type norm = 0;
    \n-
    275 for (auto const &xi : *this) {
    \n-
    276 real_type const a = Impl::asVector(xi).infinity_norm_real();
    \n-
    277 norm = max(a, norm);
    \n-
    278 }
    \n-
    279 return norm;
    \n-
    280 }
    \n+
    \n+\n+
    268 {
    \n+
    269 assert( rows_[ rows() ] != size_type(-1) );
    \n+
    270 return rows_[ rows() ];
    \n+
    271 }
    \n+
    \n+
    272
    \n+
    \n+
    273 void resize( const size_type nRows )
    \n+
    274 {
    \n+
    275 if( nRows_ != nRows )
    \n+
    276 {
    \n+
    277 nRows_ = nRows ;
    \n+
    278 rows_.resize( nRows_+1, size_type(-1) );
    \n+
    279 }
    \n+
    280 }
    \n+
    \n
    281
    \n-
    283 template <typename ft = field_type,
    \n-
    284 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n-
    285 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n-
    286 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    287 using std::max;
    \n-
    288 using std::abs;
    \n-
    289
    \n-
    290 real_type norm = 0;
    \n-
    291 real_type isNaN = 1;
    \n+
    \n+\n+
    283 {
    \n+
    284 const size_type needed = values_.size() + nonZeros ;
    \n+
    285 if( values_.capacity() < needed )
    \n+
    286 {
    \n+
    287 const size_type estimate = needed * 1.1;
    \n+
    288 values_.reserve( estimate );
    \n+
    289 cols_.reserve( estimate );
    \n+
    290 }
    \n+
    291 }
    \n+
    \n
    292
    \n-
    293 for (auto const &xi : *this) {
    \n-
    294 real_type const a = Impl::asVector(xi).infinity_norm();
    \n-
    295 norm = max(a, norm);
    \n-
    296 isNaN += a;
    \n+
    \n+
    293 void push_back( const block_type& value, const size_type index )
    \n+
    294 {
    \n+
    295 values_.push_back( value );
    \n+
    296 cols_.push_back( index );
    \n
    297 }
    \n-
    298 return norm * (isNaN / isNaN);
    \n-
    299 }
    \n-
    300
    \n-
    302 template <typename ft = field_type,
    \n-
    303 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n-
    304 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n-
    305 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    306 using std::max;
    \n-
    307
    \n-
    308 real_type norm = 0;
    \n-
    309 real_type isNaN = 1;
    \n+
    \n+
    298
    \n+
    299 std::vector< size_type > rows_;
    \n+
    300 std::vector< block_type, Alloc> values_;
    \n+
    301 std::vector< size_type > cols_;
    \n+\n+
    303 };
    \n+
    \n+
    304
    \n+
    306 template<class M, class CRS, class InvVector>
    \n+
    \n+
    307 void convertToCRS(const M& A, CRS& lower, CRS& upper, InvVector& inv )
    \n+
    308 {
    \n+
    309 typedef typename M :: size_type size_type;
    \n
    310
    \n-
    311 for (auto const &xi : *this) {
    \n-
    312 real_type const a = Impl::asVector(xi).infinity_norm_real();
    \n-
    313 norm = max(a, norm);
    \n-
    314 isNaN += a;
    \n-
    315 }
    \n-
    316
    \n-
    317 return norm * (isNaN / isNaN);
    \n-
    318 }
    \n-
    319
    \n-
    320 //===== sizes
    \n+
    311 lower.resize( A.N() );
    \n+
    312 upper.resize( A.N() );
    \n+
    313 inv.resize( A.N() );
    \n+
    314
    \n+
    315 // lower and upper triangular should store half of non zeros minus diagonal
    \n+
    316 const size_t memEstimate = (A.nonzeroes() - A.N())/2;
    \n+
    317
    \n+
    318 assert( A.nonzeroes() != 0 );
    \n+
    319 lower.reserveAdditional( memEstimate );
    \n+
    320 upper.reserveAdditional( memEstimate );
    \n
    321
    \n-
    323 size_type N () const
    \n-
    324 {
    \n-
    325 return this->n;
    \n-
    326 }
    \n-
    327
    \n-
    329 size_type dim () const
    \n-
    330 {
    \n-
    331 size_type d=0;
    \n-
    332
    \n-
    333 for (size_type i=0; i<this->n; i++)
    \n-
    334 d += Impl::asVector((*this)[i]).dim();
    \n-
    335
    \n-
    336 return d;
    \n-
    337 }
    \n+
    322 const auto endi = A.end();
    \n+
    323 size_type row = 0;
    \n+
    324 size_type colcount = 0;
    \n+
    325 lower.rows_[ 0 ] = colcount;
    \n+
    326 for (auto i=A.begin(); i!=endi; ++i, ++row)
    \n+
    327 {
    \n+
    328 const size_type iIndex = i.index();
    \n+
    329
    \n+
    330 // store entries left of diagonal
    \n+
    331 for (auto j=(*i).begin(); j.index() < iIndex; ++j )
    \n+
    332 {
    \n+
    333 lower.push_back( (*j), j.index() );
    \n+
    334 ++colcount;
    \n+
    335 }
    \n+
    336 lower.rows_[ iIndex+1 ] = colcount;
    \n+
    337 }
    \n
    338
    \n-
    339 protected:
    \n-
    341 block_vector_unmanaged () : base_array_unmanaged<B,A>()
    \n-
    342 { }
    \n-
    343 };
    \n-
    344
    \n-
    346
    \n-
    351 template<class F>
    \n-
    352 class ScopeGuard {
    \n-
    353 F cleanupFunc_;
    \n-
    354 public:
    \n-
    355 ScopeGuard(F cleanupFunc) : cleanupFunc_(std::move(cleanupFunc)) {}
    \n-
    356 ScopeGuard(const ScopeGuard &) = delete;
    \n-
    357 ScopeGuard(ScopeGuard &&) = delete;
    \n-
    358 ScopeGuard &operator=(ScopeGuard) = delete;
    \n-
    359 ~ScopeGuard() { cleanupFunc_(); }
    \n-
    360 };
    \n-
    361
    \n-
    363
    \n-
    372 template<class F>
    \n-
    373 ScopeGuard<F> makeScopeGuard(F cleanupFunc)
    \n-
    374 {
    \n-
    375 return { std::move(cleanupFunc) };
    \n-
    376 }
    \n-
    377
    \n-
    378} // end namespace Imp
    \n-
    393 template<class B, class A=std::allocator<B> >
    \n-
    \n-
    394 class BlockVector : public Imp::block_vector_unmanaged<B,A>
    \n-
    395 {
    \n-
    396 public:
    \n+
    339 const auto rendi = A.beforeBegin();
    \n+
    340 row = 0;
    \n+
    341 colcount = 0;
    \n+
    342 upper.rows_[ 0 ] = colcount ;
    \n+
    343
    \n+
    344 // NOTE: upper and inv store entries in reverse row and col order,
    \n+
    345 // reverse here relative to ILU
    \n+
    346 for (auto i=A.beforeEnd(); i!=rendi; --i, ++ row )
    \n+
    347 {
    \n+
    348 const auto endij=(*i).beforeBegin(); // end of row i
    \n+
    349
    \n+
    350 const size_type iIndex = i.index();
    \n+
    351
    \n+
    352 // store in reverse row order for faster access during backsolve
    \n+
    353 for (auto j=(*i).beforeEnd(); j != endij; --j )
    \n+
    354 {
    \n+
    355 const size_type jIndex = j.index();
    \n+
    356 if( j.index() == iIndex )
    \n+
    357 {
    \n+
    358 inv[ row ] = (*j);
    \n+
    359 break; // assuming consecutive ordering of A
    \n+
    360 }
    \n+
    361 else if ( j.index() >= i.index() )
    \n+
    362 {
    \n+
    363 upper.push_back( (*j), jIndex );
    \n+
    364 ++colcount ;
    \n+
    365 }
    \n+
    366 }
    \n+
    367 upper.rows_[ row+1 ] = colcount;
    \n+
    368 }
    \n+
    369 } // end convertToCRS
    \n+
    \n+
    370
    \n+
    372 template<class CRS, class InvVector, class X, class Y>
    \n+
    \n+
    373 void blockILUBacksolve (const CRS& lower,
    \n+
    374 const CRS& upper,
    \n+
    375 const InvVector& inv,
    \n+
    376 X& v, const Y& d)
    \n+
    377 {
    \n+
    378 // iterator types
    \n+
    379 typedef typename Y :: block_type dblock;
    \n+
    380 typedef typename X :: block_type vblock;
    \n+
    381 typedef typename X :: size_type size_type ;
    \n+
    382
    \n+
    383 const size_type iEnd = lower.rows();
    \n+
    384 const size_type lastRow = iEnd - 1;
    \n+
    385 if( iEnd != upper.rows() )
    \n+
    386 {
    \n+
    387 DUNE_THROW(ISTLError,"ILU::blockILUBacksolve: lower and upper rows must be the same");
    \n+
    388 }
    \n+
    389
    \n+
    390 // lower triangular solve
    \n+
    391 for( size_type i=0; i<iEnd; ++ i )
    \n+
    392 {
    \n+
    393 dblock rhsValue( d[ i ] );
    \n+
    394 auto&& rhs = Impl::asVector(rhsValue);
    \n+
    395 const size_type rowI = lower.rows_[ i ];
    \n+
    396 const size_type rowINext = lower.rows_[ i+1 ];
    \n
    397
    \n-
    398 //===== type definitions and constants
    \n-
    399
    \n-
    401 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n-
    402
    \n-
    404 typedef B block_type;
    \n-
    405
    \n-
    407 typedef A allocator_type;
    \n-
    408
    \n-
    410 typedef typename A::size_type size_type;
    \n-
    411
    \n-
    413 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n-
    414 static constexpr unsigned int blocklevel = blockLevel<B>()+1;
    \n+
    398 for( size_type col = rowI; col < rowINext; ++ col )
    \n+
    399 Impl::asMatrix(lower.values_[ col ]).mmv( Impl::asVector(v[ lower.cols_[ col ] ] ), rhs );
    \n+
    400
    \n+
    401 Impl::asVector(v[ i ]) = rhs; // Lii = I
    \n+
    402 }
    \n+
    403
    \n+
    404 // upper triangular solve
    \n+
    405 for( size_type i=0; i<iEnd; ++ i )
    \n+
    406 {
    \n+
    407 auto&& vBlock = Impl::asVector(v[ lastRow - i ]);
    \n+
    408 vblock rhsValue ( v[ lastRow - i ] );
    \n+
    409 auto&& rhs = Impl::asVector(rhsValue);
    \n+
    410 const size_type rowI = upper.rows_[ i ];
    \n+
    411 const size_type rowINext = upper.rows_[ i+1 ];
    \n+
    412
    \n+
    413 for( size_type col = rowI; col < rowINext; ++ col )
    \n+
    414 Impl::asMatrix(upper.values_[ col ]).mmv( Impl::asVector(v[ upper.cols_[ col ] ]), rhs );
    \n
    415
    \n-
    417 typedef typename Imp::block_vector_unmanaged<B,A>::Iterator Iterator;
    \n-
    418
    \n-
    420 typedef typename Imp::block_vector_unmanaged<B,A>::ConstIterator ConstIterator;
    \n-
    421
    \n-
    422 //===== constructors and such
    \n-
    423
    \n-
    \n-\n-
    426 {
    \n-
    427 syncBaseArray();
    \n-
    428 }
    \n-
    \n-
    429
    \n-
    \n-
    431 explicit BlockVector (size_type _n) : storage_(_n)
    \n-
    432 {
    \n-
    433 syncBaseArray();
    \n-
    434 }
    \n-
    \n-
    435
    \n-
    \n-
    437 BlockVector (std::initializer_list<B> const &l) : storage_(l)
    \n-
    438 {
    \n-
    439 syncBaseArray();
    \n-
    440 }
    \n-
    \n-
    441
    \n-
    442
    \n-
    454 template<typename S>
    \n-
    \n-
    455 BlockVector (size_type _n, S _capacity)
    \n-
    456 {
    \n-
    457 static_assert(std::numeric_limits<S>::is_integer,
    \n-
    458 "capacity must be an unsigned integral type (be aware, that this constructor does not set the default value!)" );
    \n-
    459 if((size_type)_capacity > _n)
    \n-
    460 storage_.reserve(_capacity);
    \n-
    461 storage_.resize(_n);
    \n-
    462 syncBaseArray();
    \n-
    463 }
    \n-
    \n-
    464
    \n-
    465
    \n-
    \n-\n-
    476 {
    \n-
    477 [[maybe_unused]] const auto &guard =
    \n-
    478 Imp::makeScopeGuard([this]{ syncBaseArray(); });
    \n-
    479 storage_.reserve(capacity);
    \n-
    480 }
    \n-
    \n-
    481
    \n-
    \n-\n-
    489 {
    \n-
    490 return storage_.capacity();
    \n-
    491 }
    \n-
    \n-
    492
    \n-
    \n-
    503 void resize(size_type size)
    \n-
    504 {
    \n-
    505 [[maybe_unused]] const auto &guard =
    \n-
    506 Imp::makeScopeGuard([this]{ syncBaseArray(); });
    \n-
    507 storage_.resize(size);
    \n-
    508 }
    \n-
    \n-
    509
    \n-
    \n-\n-
    512 noexcept(noexcept(std::declval<BlockVector>().storage_ = a.storage_))
    \n-
    513 {
    \n-
    514 storage_ = a.storage_;
    \n-
    515 syncBaseArray();
    \n-
    516 }
    \n-
    \n-
    517
    \n-
    \n-\n-
    520 noexcept(noexcept(std::declval<BlockVector>().swap(a)))
    \n-
    521 {
    \n-
    522 swap(a);
    \n-
    523 }
    \n-
    \n-
    524
    \n-
    \n-\n-
    527 noexcept(noexcept(std::declval<BlockVector>().storage_ = a.storage_))
    \n-
    528 {
    \n-
    529 [[maybe_unused]] const auto &guard =
    \n-
    530 Imp::makeScopeGuard([this]{ syncBaseArray(); });
    \n-
    531 storage_ = a.storage_;
    \n-
    532 return *this;
    \n-
    533 }
    \n-
    \n-
    534
    \n-
    \n-\n-
    537 noexcept(noexcept(std::declval<BlockVector>().swap(a)))
    \n-
    538 {
    \n-
    539 swap(a);
    \n-
    540 return *this;
    \n-
    541 }
    \n-
    \n-
    542
    \n-
    \n-
    544 void swap(BlockVector &other)
    \n-
    545 noexcept(noexcept(
    \n-
    546 std::declval<BlockVector&>().storage_.swap(other.storage_)))
    \n-
    547 {
    \n-
    548 [[maybe_unused]] const auto &guard = Imp::makeScopeGuard([&]{
    \n-
    549 syncBaseArray();
    \n-
    550 other.syncBaseArray();
    \n-
    551 });
    \n-
    552 storage_.swap(other.storage_);
    \n-
    553 }
    \n-
    \n-
    554
    \n-
    \n-\n-
    557 {
    \n-
    558 // forward to operator= in base class
    \n-
    559 (static_cast<Imp::block_vector_unmanaged<B,A>&>(*this)) = k;
    \n-
    560 return *this;
    \n-
    561 }
    \n-
    \n-
    562
    \n-
    563 private:
    \n-
    564 void syncBaseArray() noexcept
    \n-
    565 {
    \n-
    566 this->p = storage_.data();
    \n-
    567 this->n = storage_.size();
    \n-
    568 }
    \n-
    569
    \n-
    570 std::vector<B, A> storage_;
    \n-
    571 };
    \n-
    \n-
    572
    \n-
    578 template<class B, class A>
    \n-
    \n-
    579 struct FieldTraits< BlockVector<B, A> >
    \n-
    580 {
    \n-
    581 typedef typename FieldTraits<B>::field_type field_type;
    \n-
    582 typedef typename FieldTraits<B>::real_type real_type;
    \n-
    583 };
    \n-
    \n-
    589 template<class K, class A>
    \n-
    \n-
    590 std::ostream& operator<< (std::ostream& s, const BlockVector<K, A>& v)
    \n-
    591 {
    \n-
    592 typedef typename BlockVector<K, A>::size_type size_type;
    \n-
    593
    \n-
    594 for (size_type i=0; i<v.size(); i++)
    \n-
    595 s << v[i] << std::endl;
    \n-
    596
    \n-
    597 return s;
    \n-
    598 }
    \n-
    \n-
    599
    \n-
    601namespace Imp {
    \n-
    602
    \n-
    621#ifndef DOXYGEN
    \n-
    622 template<class B, class A>
    \n-
    623#else
    \n-
    624 template<class B, class A=std::allocator<B> >
    \n-
    625#endif
    \n-
    626 class BlockVectorWindow : public Imp::block_vector_unmanaged<B,A>
    \n-
    627 {
    \n-
    628 public:
    \n-
    629
    \n-
    630 //===== type definitions and constants
    \n-
    631
    \n-
    633 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n-
    634
    \n-
    636 typedef B block_type;
    \n-
    637
    \n-
    639 typedef A allocator_type;
    \n-
    640
    \n-
    642 typedef typename A::size_type size_type;
    \n-
    643
    \n-
    645 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n-
    646 static constexpr unsigned int blocklevel = blockLevel<B>()+1;
    \n-
    647
    \n-
    649 typedef typename Imp::block_vector_unmanaged<B,A>::Iterator Iterator;
    \n-
    650
    \n-
    652 typedef typename Imp::block_vector_unmanaged<B,A>::ConstIterator ConstIterator;
    \n-
    653
    \n-
    654
    \n-
    655 //===== constructors and such
    \n-
    657 BlockVectorWindow () : Imp::block_vector_unmanaged<B,A>()
    \n-
    658 { }
    \n-
    659
    \n-
    661 BlockVectorWindow (B* _p, size_type _n)
    \n-
    662 {
    \n-
    663 this->n = _n;
    \n-
    664 this->p = _p;
    \n-
    665 }
    \n-
    666
    \n-
    668 BlockVectorWindow (const BlockVectorWindow& a)
    \n-
    669 {
    \n-
    670 this->n = a.n;
    \n-
    671 this->p = a.p;
    \n-
    672 }
    \n-
    673
    \n-
    675 BlockVectorWindow& operator= (const BlockVectorWindow& a)
    \n-
    676 {
    \n-
    677 // check correct size
    \n-
    678#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    679 if (this->n!=a.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n-
    680#endif
    \n-
    681
    \n-
    682 if (&a!=this) // check if this and a are different objects
    \n-
    683 {
    \n-
    684 // copy data
    \n-
    685 for (size_type i=0; i<this->n; i++) this->p[i]=a.p[i];
    \n-
    686 }
    \n-
    687 return *this;
    \n-
    688 }
    \n-
    689
    \n-
    691 BlockVectorWindow& operator= (const field_type& k)
    \n-
    692 {
    \n-
    693 (static_cast<Imp::block_vector_unmanaged<B,A>&>(*this)) = k;
    \n-
    694 return *this;
    \n-
    695 }
    \n-
    696
    \n-
    698 operator BlockVector<B, A>() const {
    \n-
    699 auto bv = BlockVector<B, A>(this->n);
    \n-
    700
    \n-
    701 std::copy(this->begin(), this->end(), bv.begin());
    \n-
    702
    \n-
    703 return bv;
    \n-
    704 }
    \n-
    705
    \n-
    706 //===== window manipulation methods
    \n-
    707
    \n-
    709 void set (size_type _n, B* _p)
    \n-
    710 {
    \n-
    711 this->n = _n;
    \n-
    712 this->p = _p;
    \n-
    713 }
    \n-
    714
    \n-
    716 void setsize (size_type _n)
    \n-
    717 {
    \n-
    718 this->n = _n;
    \n-
    719 }
    \n-
    720
    \n-
    722 void setptr (B* _p)
    \n-
    723 {
    \n-
    724 this->p = _p;
    \n-
    725 }
    \n-
    726
    \n-
    728 B* getptr ()
    \n-
    729 {
    \n-
    730 return this->p;
    \n-
    731 }
    \n-
    732
    \n-
    734 size_type getsize () const
    \n-
    735 {
    \n-
    736 return this->n;
    \n-
    737 }
    \n-
    738 };
    \n-
    739
    \n-
    740
    \n-
    741
    \n-
    752 template<class B, class A=std::allocator<B> >
    \n-
    753 class compressed_block_vector_unmanaged : public compressed_base_array_unmanaged<B,A>
    \n-
    754 {
    \n-
    755 public:
    \n-
    756
    \n-
    757 //===== type definitions and constants
    \n-
    758
    \n-
    760 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n-
    761
    \n-
    763 typedef B block_type;
    \n-
    764
    \n-
    766 typedef A allocator_type;
    \n-
    767
    \n-
    769 typedef typename compressed_base_array_unmanaged<B,A>::iterator Iterator;
    \n-
    770
    \n-
    772 typedef typename compressed_base_array_unmanaged<B,A>::const_iterator ConstIterator;
    \n-
    773
    \n-
    775 typedef typename A::size_type size_type;
    \n-
    776
    \n-
    777 //===== assignment from scalar
    \n-
    778
    \n-
    779 compressed_block_vector_unmanaged& operator= (const field_type& k)
    \n-
    780 {
    \n-
    781 for (size_type i=0; i<this->n; i++)
    \n-
    782 (this->p)[i] = k;
    \n-
    783 return *this;
    \n-
    784 }
    \n-
    785
    \n-
    786
    \n-
    787 //===== vector space arithmetic
    \n-
    788
    \n-
    790 template<class V>
    \n-
    791 compressed_block_vector_unmanaged& operator+= (const V& y)
    \n-
    792 {
    \n-
    793#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    794 if (!includesindexset(y)) DUNE_THROW(ISTLError,"index set mismatch");
    \n-
    795#endif
    \n-
    796 for (size_type i=0; i<y.n; ++i) this->operator[](y.j[i]) += y.p[i];
    \n-
    797 return *this;
    \n-
    798 }
    \n-
    799
    \n-
    801 template<class V>
    \n-
    802 compressed_block_vector_unmanaged& operator-= (const V& y)
    \n-
    803 {
    \n-
    804#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    805 if (!includesindexset(y)) DUNE_THROW(ISTLError,"index set mismatch");
    \n-
    806#endif
    \n-
    807 for (size_type i=0; i<y.n; ++i) this->operator[](y.j[i]) -= y.p[i];
    \n-
    808 return *this;
    \n-
    809 }
    \n-
    810
    \n-
    812 template<class V>
    \n-
    813 compressed_block_vector_unmanaged& axpy (const field_type& a, const V& y)
    \n-
    814 {
    \n-
    815#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    816 if (!includesindexset(y)) DUNE_THROW(ISTLError,"index set mismatch");
    \n-
    817#endif
    \n-
    818 for (size_type i=0; i<y.n; ++i)
    \n-
    819 Impl::asVector((*this)[y.j[i]]).axpy(a,Impl::asVector(y.p[i]));
    \n-
    820 return *this;
    \n-
    821 }
    \n-
    822
    \n-
    824 compressed_block_vector_unmanaged& operator*= (const field_type& k)
    \n-
    825 {
    \n-
    826 for (size_type i=0; i<this->n; ++i) (this->p)[i] *= k;
    \n-
    827 return *this;
    \n-
    828 }
    \n-
    829
    \n-
    831 compressed_block_vector_unmanaged& operator/= (const field_type& k)
    \n-
    832 {
    \n-
    833 for (size_type i=0; i<this->n; ++i) (this->p)[i] /= k;
    \n-
    834 return *this;
    \n-
    835 }
    \n-
    836
    \n-
    837
    \n-
    838 //===== Euclidean scalar product
    \n-
    839
    \n-
    841 field_type operator* (const compressed_block_vector_unmanaged& y) const
    \n-
    842 {
    \n-
    843#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    844 if (!includesindexset(y) || !y.includesindexset(*this) )
    \n-
    845 DUNE_THROW(ISTLError,"index set mismatch");
    \n-
    846#endif
    \n-
    847 field_type sum=0;
    \n-
    848 for (size_type i=0; i<this->n; ++i)
    \n-
    849 sum += (this->p)[i] * y[(this->j)[i]];
    \n-
    850 return sum;
    \n-
    851 }
    \n-
    852
    \n-
    853
    \n-
    854 //===== norms
    \n-
    855
    \n-
    857 typename FieldTraits<field_type>::real_type one_norm () const
    \n-
    858 {
    \n-
    859 typename FieldTraits<field_type>::real_type sum=0;
    \n-
    860 for (size_type i=0; i<this->n; ++i) sum += (this->p)[i].one_norm();
    \n-
    861 return sum;
    \n-
    862 }
    \n-
    863
    \n-
    865 typename FieldTraits<field_type>::real_type one_norm_real () const
    \n-
    866 {
    \n-
    867 typename FieldTraits<field_type>::real_type sum=0;
    \n-
    868 for (size_type i=0; i<this->n; ++i) sum += (this->p)[i].one_norm_real();
    \n-
    869 return sum;
    \n-
    870 }
    \n-
    871
    \n-
    873 typename FieldTraits<field_type>::real_type two_norm () const
    \n-
    874 {
    \n-
    875 using std::sqrt;
    \n-
    876 typename FieldTraits<field_type>::real_type sum=0;
    \n-
    877 for (size_type i=0; i<this->n; ++i) sum += (this->p)[i].two_norm2();
    \n-
    878 return sqrt(sum);
    \n-
    879 }
    \n-
    880
    \n-
    882 typename FieldTraits<field_type>::real_type two_norm2 () const
    \n-
    883 {
    \n-
    884 typename FieldTraits<field_type>::real_type sum=0;
    \n-
    885 for (size_type i=0; i<this->n; ++i) sum += (this->p)[i].two_norm2();
    \n-
    886 return sum;
    \n-
    887 }
    \n-
    888
    \n-
    890 template <typename ft = field_type,
    \n-
    891 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n-
    892 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n-
    893 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    894 using std::max;
    \n-
    895
    \n-
    896 real_type norm = 0;
    \n-
    897 for (auto const &x : *this) {
    \n-
    898 real_type const a = x.infinity_norm();
    \n-
    899 norm = max(a, norm);
    \n-
    900 }
    \n-
    901 return norm;
    \n-
    902 }
    \n-
    903
    \n-
    905 template <typename ft = field_type,
    \n-
    906 typename std::enable_if<!HasNaN<ft>::value, int>::type = 0>
    \n-
    907 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n-
    908 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    909 using std::max;
    \n-
    910
    \n-
    911 real_type norm = 0;
    \n-
    912 for (auto const &x : *this) {
    \n-
    913 real_type const a = x.infinity_norm_real();
    \n-
    914 norm = max(a, norm);
    \n-
    915 }
    \n-
    916 return norm;
    \n-
    917 }
    \n-
    918
    \n-
    920 template <typename ft = field_type,
    \n-
    921 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n-
    922 typename FieldTraits<ft>::real_type infinity_norm() const {
    \n-
    923 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    924 using std::max;
    \n-
    925
    \n-
    926 real_type norm = 0;
    \n-
    927 real_type isNaN = 1;
    \n-
    928 for (auto const &x : *this) {
    \n-
    929 real_type const a = x.infinity_norm();
    \n-
    930 norm = max(a, norm);
    \n-
    931 isNaN += a;
    \n-
    932 }
    \n-
    933 return norm * (isNaN / isNaN);
    \n-
    934 }
    \n-
    935
    \n-
    937 template <typename ft = field_type,
    \n-
    938 typename std::enable_if<HasNaN<ft>::value, int>::type = 0>
    \n-
    939 typename FieldTraits<ft>::real_type infinity_norm_real() const {
    \n-
    940 using real_type = typename FieldTraits<ft>::real_type;
    \n-
    941 using std::max;
    \n-
    942
    \n-
    943 real_type norm = 0;
    \n-
    944 real_type isNaN = 1;
    \n-
    945 for (auto const &x : *this) {
    \n-
    946 real_type const a = x.infinity_norm_real();
    \n-
    947 norm = max(a, norm);
    \n-
    948 isNaN += a;
    \n-
    949 }
    \n-
    950 return norm * (isNaN / isNaN);
    \n-
    951 }
    \n-
    952
    \n-
    953 //===== sizes
    \n-
    954
    \n-
    956 size_type N () const
    \n-
    957 {
    \n-
    958 return this->n;
    \n-
    959 }
    \n-
    960
    \n-
    962 size_type dim () const
    \n-
    963 {
    \n-
    964 size_type d=0;
    \n-
    965 for (size_type i=0; i<this->n; i++)
    \n-
    966 d += (this->p)[i].dim();
    \n-
    967 return d;
    \n-
    968 }
    \n-
    969
    \n-
    970 protected:
    \n-
    972 compressed_block_vector_unmanaged () : compressed_base_array_unmanaged<B,A>()
    \n-
    973 { }
    \n-
    974
    \n-
    976 template<class V>
    \n-
    977 bool includesindexset (const V& y)
    \n-
    978 {
    \n-
    979 typename V::ConstIterator e=this->end();
    \n-
    980 for (size_type i=0; i<y.n; i++)
    \n-
    981 if (this->find(y.j[i])==e)
    \n-
    982 return false;
    \n-
    983 return true;
    \n-
    984 }
    \n-
    985 };
    \n-
    986
    \n-
    987
    \n-
    1006 template<class B, class A=std::allocator<B> >
    \n-
    1007 class CompressedBlockVectorWindow : public compressed_block_vector_unmanaged<B,A>
    \n-
    1008 {
    \n-
    1009 public:
    \n-
    1010
    \n-
    1011 //===== type definitions and constants
    \n-
    1012
    \n-
    1014 using field_type = typename Imp::BlockTraits<B>::field_type;
    \n-
    1015
    \n-
    1017 typedef B block_type;
    \n-
    1018
    \n-
    1020 typedef A allocator_type;
    \n-
    1021
    \n-
    1023 typedef typename A::size_type size_type;
    \n-
    1024
    \n-
    1026 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n-
    1027 static constexpr unsigned int blocklevel = blockLevel<B>()+1;
    \n-
    1028
    \n-
    1030 typedef typename compressed_block_vector_unmanaged<B,A>::Iterator Iterator;
    \n-
    1031
    \n-
    1033 typedef typename compressed_block_vector_unmanaged<B,A>::ConstIterator ConstIterator;
    \n-
    1034
    \n-
    1035
    \n-
    1036 //===== constructors and such
    \n-
    1038 CompressedBlockVectorWindow () : compressed_block_vector_unmanaged<B,A>()
    \n-
    1039 { }
    \n-
    1040
    \n-
    1042 CompressedBlockVectorWindow (B* _p, size_type* _j, size_type _n)
    \n-
    1043 {
    \n-
    1044 this->n = _n;
    \n-
    1045 this->p = _p;
    \n-
    1046 this->j = _j;
    \n-
    1047 }
    \n-
    1048
    \n-
    1050 CompressedBlockVectorWindow (const CompressedBlockVectorWindow& a)
    \n-
    1051 {
    \n-
    1052 this->n = a.n;
    \n-
    1053 this->p = a.p;
    \n-
    1054 this->j = a.j;
    \n-
    1055 }
    \n-
    1056
    \n-
    1058 CompressedBlockVectorWindow& operator= (const CompressedBlockVectorWindow& a)
    \n-
    1059 {
    \n-
    1060 // check correct size
    \n-
    1061#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    1062 if (this->n!=a.N()) DUNE_THROW(ISTLError,"vector size mismatch");
    \n-
    1063#endif
    \n-
    1064
    \n-
    1065 if (&a!=this) // check if this and a are different objects
    \n-
    1066 {
    \n-
    1067 // copy data
    \n-
    1068 for (size_type i=0; i<this->n; i++) this->p[i]=a.p[i];
    \n-
    1069 for (size_type i=0; i<this->n; i++) this->j[i]=a.j[i];
    \n-
    1070 }
    \n-
    1071 return *this;
    \n-
    1072 }
    \n-
    1073
    \n-
    1075 CompressedBlockVectorWindow& operator= (const field_type& k)
    \n-
    1076 {
    \n-
    1077 (static_cast<compressed_block_vector_unmanaged<B,A>&>(*this)) = k;
    \n-
    1078 return *this;
    \n-
    1079 }
    \n-
    1080
    \n-
    1081
    \n-
    1082 //===== window manipulation methods
    \n-
    1083
    \n-
    1085 void set (size_type _n, B* _p, size_type* _j)
    \n-
    1086 {
    \n-
    1087 this->n = _n;
    \n-
    1088 this->p = _p;
    \n-
    1089 this->j = _j;
    \n-
    1090 }
    \n-
    1091
    \n-
    1093 void setsize (size_type _n)
    \n-
    1094 {
    \n-
    1095 this->n = _n;
    \n-
    1096 }
    \n-
    1097
    \n-
    1099 void setptr (B* _p)
    \n-
    1100 {
    \n-
    1101 this->p = _p;
    \n-
    1102 }
    \n-
    1103
    \n-
    1105 void setindexptr (size_type* _j)
    \n-
    1106 {
    \n-
    1107 this->j = _j;
    \n-
    1108 }
    \n-
    1109
    \n-
    1111 B* getptr ()
    \n-
    1112 {
    \n-
    1113 return this->p;
    \n-
    1114 }
    \n-
    1115
    \n-
    1117 size_type* getindexptr ()
    \n-
    1118 {
    \n-
    1119 return this->j;
    \n-
    1120 }
    \n-
    1121
    \n-
    1123 const B* getptr () const
    \n-
    1124 {
    \n-
    1125 return this->p;
    \n-
    1126 }
    \n-
    1127
    \n-
    1129 const size_type* getindexptr () const
    \n-
    1130 {
    \n-
    1131 return this->j;
    \n-
    1132 }
    \n-
    1134 size_type getsize () const
    \n-
    1135 {
    \n-
    1136 return this->n;
    \n-
    1137 }
    \n-
    1138 };
    \n-
    1139
    \n-
    1140} // end namespace 'Imp'
    \n-
    1141
    \n-
    1142
    \n-
    1144 template<typename B, typename A>
    \n-
    1145 struct AutonomousValueType<Imp::BlockVectorWindow<B,A>>
    \n-
    1146 {
    \n-
    1147 using type = BlockVector<B, A>;
    \n-
    1148 };
    \n-
    1149
    \n-
    1150
    \n-
    1151} // end namespace 'Dune'
    \n-
    1152
    \n-
    1153#endif
    \n-
    Implements several basic array containers.
    \n-
    Helper functions for determining the vector/matrix block level.
    \n-\n-
    STL namespace.
    \n+
    416 // apply inverse and store result
    \n+
    417 Impl::asMatrix(inv[ i ]).mv(rhs, vBlock);
    \n+
    418 }
    \n+
    419 }
    \n+
    \n+
    420
    \n+
    421 } // end namespace ILU
    \n+
    \n+
    422
    \n+
    425} // end namespace
    \n+
    426
    \n+
    427#endif
    \n+\n+
    Col col
    Definition matrixmatrix.hh:351
    \n
    Definition allocator.hh:11
    \n-
    std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)
    Send BlockVector to an output stream.
    Definition bvector.hh:590
    \n-
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n-
    BlockVector()
    makes empty vector
    Definition bvector.hh:425
    \n-
    void reserve(size_type capacity)
    Reserve space.
    Definition bvector.hh:475
    \n-
    BlockVector(BlockVector &&a) noexcept(noexcept(std::declval< BlockVector >().swap(a)))
    move constructor
    Definition bvector.hh:519
    \n-
    BlockVector(size_type _n)
    make vector with _n components
    Definition bvector.hh:431
    \n-
    void resize(size_type size)
    Resize the vector.
    Definition bvector.hh:503
    \n-
    Imp::block_vector_unmanaged< B, A >::Iterator Iterator
    make iterators available as types
    Definition bvector.hh:417
    \n-
    static constexpr unsigned int blocklevel
    increment block level counter
    Definition bvector.hh:414
    \n-
    BlockVector(const BlockVector &a) noexcept(noexcept(std::declval< BlockVector >().storage_=a.storage_))
    copy constructor
    Definition bvector.hh:511
    \n-
    A allocator_type
    export the allocator type
    Definition bvector.hh:407
    \n-
    BlockVector & operator=(const BlockVector &a) noexcept(noexcept(std::declval< BlockVector >().storage_=a.storage_))
    assignment
    Definition bvector.hh:526
    \n-
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bvector.hh:401
    \n-
    A::size_type size_type
    The type for the index access.
    Definition bvector.hh:410
    \n-
    BlockVector(std::initializer_list< B > const &l)
    Construct from a std::initializer_list.
    Definition bvector.hh:437
    \n-
    size_type capacity() const
    Get the capacity of the vector.
    Definition bvector.hh:488
    \n-
    BlockVector(size_type _n, S _capacity)
    Make vector with _n components but preallocating capacity components.
    Definition bvector.hh:455
    \n-
    B block_type
    export the type representing the components
    Definition bvector.hh:404
    \n-
    void swap(BlockVector &other) noexcept(noexcept(std::declval< BlockVector & >().storage_.swap(other.storage_)))
    swap operation
    Definition bvector.hh:544
    \n-
    Imp::block_vector_unmanaged< B, A >::ConstIterator ConstIterator
    make iterators available as types
    Definition bvector.hh:420
    \n-
    FieldTraits< B >::real_type real_type
    Definition bvector.hh:582
    \n-
    FieldTraits< B >::field_type field_type
    Definition bvector.hh:581
    \n+
    void convertToCRS(const M &A, CRS &lower, CRS &upper, InvVector &inv)
    convert ILU decomposition into CRS format for lower and upper triangular and inverse.
    Definition ilu.hh:307
    \n+
    void blockILUBacksolve(const M &A, X &v, const Y &d)
    LU backsolve with stored inverse.
    Definition ilu.hh:94
    \n+
    M::field_type & firstMatrixElement(M &A, typename std::enable_if_t<!Dune::IsNumber< M >::value > *sfinae=nullptr)
    Definition ilu.hh:141
    \n+
    void blockILU0Decomposition(M &A)
    compute ILU decomposition of A. A is overwritten by its decomposition
    Definition ilu.hh:33
    \n+
    void blockILUDecomposition(const M &A, int n, M &ILU)
    Definition ilu.hh:167
    \n+
    a simple compressed row storage matrix class
    Definition ilu.hh:259
    \n+
    std::vector< size_type > cols_
    Definition ilu.hh:301
    \n+
    size_type nonZeros() const
    Definition ilu.hh:267
    \n+
    void resize(const size_type nRows)
    Definition ilu.hh:273
    \n+
    size_type rows() const
    Definition ilu.hh:265
    \n+
    CRS()
    Definition ilu.hh:263
    \n+
    void reserveAdditional(const size_type nonZeros)
    Definition ilu.hh:282
    \n+
    B block_type
    Definition ilu.hh:260
    \n+
    std::vector< block_type, Alloc > values_
    Definition ilu.hh:300
    \n+
    size_type nRows_
    Definition ilu.hh:302
    \n+
    size_t size_type
    Definition ilu.hh:261
    \n+
    std::vector< size_type > rows_
    Definition ilu.hh:299
    \n+
    void push_back(const block_type &value, const size_type index)
    Definition ilu.hh:293
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    Error when performing an operation on a matrix block.
    Definition istlexception.hh:52
    \n+
    Definition matrixutils.hh:27
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1010 +1,499 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-bvector.hh\n+ilu.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5\n-6#ifndef DUNE_ISTL_BVECTOR_HH\n-7#define DUNE_ISTL_BVECTOR_HH\n-8\n-9#include \n-10#include \n-11#include \n-12#include \n-13#include \n-14#include \n-15#include \n-16#include \n-17\n-18#include \n-19#include \n-20#include \n-21#include \n-22#include \n-23#include \n-24#include \n-25\n-26#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n-27\n-28#include \"_\bb_\ba_\bs_\be_\ba_\br_\br_\ba_\by_\b._\bh_\bh\"\n-29#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+5#ifndef DUNE_ISTL_ILU_HH\n+6#define DUNE_ISTL_ILU_HH\n+7\n+8#include \n+9#include \n+10#include \n+11#include \n+12\n+13#include \n+14#include \n+15#include \n+16\n+17#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+18\n+23namespace _\bD_\bu_\bn_\be {\n+24\n+_\b2_\b9 namespace ILU {\n 30\n-38namespace _\bD_\bu_\bn_\be {\n+32 template\n+_\b3_\b3 void _\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn (M& A)\n+34 {\n+35 // iterator types\n+36 typedef typename M::RowIterator rowiterator;\n+37 typedef typename M::ColIterator coliterator;\n+38 typedef typename M::block_type block;\n 39\n-41namespace Imp {\n-42\n-48 template \n-49 class BlockTraitsImp;\n-50\n-51 template \n-52 class BlockTraitsImp\n-53 {\n-54 public:\n-55 using field_type = B;\n-56 };\n-57\n-58 template \n-59 class BlockTraitsImp\n-60 {\n-61 public:\n-62 using field_type = typename B::field_type;\n-63 };\n-64\n-67 template \n-68 using BlockTraits = BlockTraitsImp::value>;\n-69\n-83 template >\n-84 class block_vector_unmanaged : public base_array_unmanaged\n-85 {\n-86 public:\n-87\n-88 //===== type definitions and constants\n-89 using field_type = typename Imp::BlockTraits::field_type;\n-90\n-92 typedef B block_type;\n-93\n-95 typedef A allocator_type;\n-96\n-98 typedef typename A::size_type size_type;\n-99\n-101 typedef typename base_array_unmanaged::iterator Iterator;\n-102\n-104 typedef typename base_array_unmanaged::const_iterator ConstIterator;\n-105\n-107 typedef B value_type;\n-108\n-110 typedef B& reference;\n-111\n-113 typedef const B& const_reference;\n-114\n-115 //===== assignment from scalar\n-117\n-118 block_vector_unmanaged& operator= (const field_type& k)\n-119 {\n-120 for (size_type i=0; in; i++)\n-121 (*this)[i] = k;\n-122 return *this;\n-123 }\n-124\n-125 //===== vector space arithmetic\n-127 block_vector_unmanaged& operator+= (const block_vector_unmanaged& y)\n-128 {\n-129#ifdef DUNE_ISTL_WITH_CHECKING\n-130 if (this->n!=y.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n-131#endif\n-132 for (size_type i=0; in; ++i) (*this)[i] += y[i];\n-133 return *this;\n-134 }\n-135\n-137 block_vector_unmanaged& operator-= (const block_vector_unmanaged& y)\n-138 {\n-139#ifdef DUNE_ISTL_WITH_CHECKING\n-140 if (this->n!=y.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n-141#endif\n-142 for (size_type i=0; in; ++i) (*this)[i] -= y[i];\n-143 return *this;\n-144 }\n-145\n-147 block_vector_unmanaged& operator*= (const field_type& k)\n-148 {\n-149 for (size_type i=0; in; ++i) (*this)[i] *= k;\n-150 return *this;\n-151 }\n-152\n-154 block_vector_unmanaged& operator/= (const field_type& k)\n-155 {\n-156 for (size_type i=0; in; ++i) (*this)[i] /= k;\n-157 return *this;\n+40 // implement left looking variant with stored inverse\n+41 rowiterator endi=A.end();\n+42 for (rowiterator i=A.begin(); i!=endi; ++i)\n+43 {\n+44 // coliterator is diagonal after the following loop\n+45 coliterator endij=(*i).end(); // end of row i\n+46 coliterator ij;\n+47\n+48 // eliminate entries left of diagonal; store L factor\n+49 for (ij=(*i).begin(); ij.index()\n+_\b9_\b4 void _\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be (const M& A, X& v, const Y& d)\n+95 {\n+96 // iterator types\n+97 typedef typename M::ConstRowIterator rowiterator;\n+98 typedef typename M::ConstColIterator coliterator;\n+99 typedef typename Y::block_type dblock;\n+100 typedef typename X::block_type vblock;\n+101\n+102 // lower triangular solve\n+103 rowiterator endi=A.end();\n+104 for (rowiterator i=A.begin(); i!=endi; ++i)\n+105 {\n+106 // We need to be careful here: Directly using\n+107 // auto rhs = Impl::asVector(d[ i.index() ]);\n+108 // is not OK in case this is a proxy. Hence\n+109 // we first have to copy the value. Notice that\n+110 // this is still not OK, if the vector type itself returns\n+111 // proxy references.\n+112 dblock rhsValue(d[i.index()]);\n+113 auto&& rhs = Impl::asVector(rhsValue);\n+114 for (coliterator j=(*i).begin(); j.index()i.index(); --j)\n+133 Impl::asMatrix(*j).mmv(Impl::asVector(v[j.index()]),rhs);\n+134 auto&& vi = Impl::asVector(v[i.index()]);\n+135 Impl::asMatrix(*j).mv(rhs,vi); // diagonal stores inverse!\n+136 }\n+137 }\n+138\n+139 // recursive function template to access first entry of a matrix\n+140 template\n+_\b1_\b4_\b1 typename M::field_type& _\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (M& A,\n+142 [[maybe_unused]] typename std::enable_if_t::value>*\n+sfinae = nullptr)\n+143 {\n+144 return _\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt(*(A.begin()->begin()));\n+145 }\n+146\n+147 template\n+_\b1_\b4_\b8 K& _\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (K& A,\n+149 [[maybe_unused]] typename std::enable_if_t::value>*\n+sfinae = nullptr)\n+150 {\n+151 return A;\n+152 }\n+153\n+154 template\n+_\b1_\b5_\b5 K& _\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt (_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b,_\bm_\b>& A)\n+156 {\n+157 return A[0][0];\n 158 }\n 159\n-161 block_vector_unmanaged& axpy (const field_type& a, const\n-block_vector_unmanaged& y)\n-162 {\n-163#ifdef DUNE_ISTL_WITH_CHECKING\n-164 if (this->n!=y.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n-165#endif\n-166 for (size_type i=0; in; ++i)\n-167 Impl::asVector((*this)[i]).axpy(a,Impl::asVector(y[i]));\n-168\n-169 return *this;\n-170 }\n-171\n-172\n-180 template\n-181 auto operator* (const block_vector_unmanaged& y) const\n+166 template\n+_\b1_\b6_\b7 void _\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn (const M& A, int n, M& ILU)\n+168 {\n+169 // iterator types\n+170 typedef typename M::ColIterator coliterator;\n+171 typedef typename M::ConstRowIterator crowiterator;\n+172 typedef typename M::ConstColIterator ccoliterator;\n+173 typedef typename M::CreateIterator createiterator;\n+174 typedef typename M::field_type K;\n+175 typedef std::map map;\n+176 typedef typename map::iterator mapiterator;\n+177\n+178 // symbolic factorization phase, store generation number in first matrix\n+element\n+179 crowiterator endi=A.end();\n+180 createiterator ci=ILU.createbegin();\n+181 for (crowiterator i=A.begin(); i!=endi; ++i)\n 182 {\n-183 typedef typename PromotionTraits::\n-field_type>::PromotedType PromotedType;\n-184 PromotedType sum(0);\n-185#ifdef DUNE_ISTL_WITH_CHECKING\n-186 if (this->n!=y.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n-187#endif\n-188 for (size_type i=0; in; ++i) {\n-189 sum += PromotedType(((*this)[i])*y[i]);\n-190 }\n-191 return sum;\n-192 }\n-193\n-201 template\n-202 auto dot(const block_vector_unmanaged& y) const\n+183 map rowpattern; // maps column index to generation\n+184\n+185 // initialize pattern with row of A\n+186 for (ccoliterator j=(*i).begin(); j!=(*i).end(); ++j)\n+187 rowpattern[j.index()] = 0;\n+188\n+189 // eliminate entries in row which are to the left of the diagonal\n+190 for (mapiterator ik=rowpattern.begin(); (*ik).first::\n-field_type>::PromotedType PromotedType;\n-205 PromotedType sum(0);\n-206#ifdef DUNE_ISTL_WITH_CHECKING\n-207 if (this->n!=y.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n-208#endif\n-209\n-210 for (size_type i=0; in; ++i)\n-211 sum += Impl::asVector((*this)[i]).dot(Impl::asVector(y[i]));\n-212\n-213 return sum;\n-214 }\n-215\n-216 //===== norms\n-217\n-219 typename FieldTraits::real_type one_norm () const\n-220 {\n-221 typename FieldTraits::real_type sum=0;\n-222 for (size_type i=0; in; ++i)\n-223 sum += Impl::asVector((*this)[i]).one_norm();\n-224 return sum;\n-225 }\n-226\n-228 typename FieldTraits::real_type one_norm_real () const\n-229 {\n-230 typename FieldTraits::real_type sum=0;\n-231 for (size_type i=0; in; ++i)\n-232 sum += Impl::asVector((*this)[i]).one_norm_real();\n-233 return sum;\n-234 }\n-235\n-237 typename FieldTraits::real_type two_norm () const\n+204 mapiterator ij = rowpattern.find(kj.index());\n+205 if (ij==rowpattern.end())\n+206 {\n+207 rowpattern[kj.index()] = generation+1;\n+208 }\n+209 }\n+210 }\n+211 }\n+212 }\n+213\n+214 // create row\n+215 for (mapiterator ik=rowpattern.begin(); ik!=rowpattern.end(); ++ik)\n+216 ci.insert((*ik).first);\n+217 ++ci; // now row i exist\n+218\n+219 // write generation index into entries\n+220 coliterator endILUij = ILU[i.index()].end();;\n+221 for (coliterator ILUij=ILU[i.index()].begin(); ILUij!=endILUij; ++ILUij)\n+222 Simd::lane(0, _\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt(*ILUij)) = (Simd::Scalar) rowpattern\n+[ILUij.index()];\n+223 }\n+224\n+225 // copy entries of A\n+226 for (crowiterator i=A.begin(); i!=endi; ++i)\n+227 {\n+228 coliterator ILUij;\n+229 coliterator endILUij = ILU[i.index()].end();;\n+230 for (ILUij=ILU[i.index()].begin(); ILUij!=endILUij; ++ILUij)\n+231 (*ILUij) = 0; // clear row\n+232 ccoliterator Aij = (*i).begin();\n+233 ccoliterator endAij = (*i).end();\n+234 ILUij = ILU[i.index()].begin();\n+235 while (Aij!=endAij && ILUij!=endILUij)\n+236 {\n+237 if (Aij.index()==ILUij.index())\n 238 {\n-239 using std::sqrt;\n-240 return sqrt(two_norm2());\n+239 *ILUij = *Aij;\n+240 ++Aij; ++ILUij;\n 241 }\n-242\n-244 typename FieldTraits::real_type two_norm2 () const\n-245 {\n-246 typename FieldTraits::real_type sum=0;\n-247 for (size_type i=0; in; ++i)\n-248 sum += Impl::asVector((*this)[i]).two_norm2();\n-249 return sum;\n+242 else\n+243 {\n+244 if (Aij.index()::value, int>::type = 0>\n-255 typename FieldTraits::real_type infinity_norm() const {\n-256 using real_type = typename FieldTraits::real_type;\n-257 using std::max;\n-258\n-259 real_type norm = 0;\n-260 for (auto const &xi : *this) {\n-261 real_type const a = Impl::asVector(xi).infinity_norm();\n-262 norm = max(a, norm);\n-263 }\n-264 return norm;\n-265 }\n+252 // call decomposition on pattern\n+253 _\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn(ILU);\n+254 }\n+255\n+257 template >\n+_\b2_\b5_\b8 struct _\bC_\bR_\bS\n+259 {\n+_\b2_\b6_\b0 typedef B _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+_\b2_\b6_\b1 typedef size_t _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+262\n+_\b2_\b6_\b3 _\bC_\bR_\bS() : _\bn_\bR_\bo_\bw_\bs_\b_( 0 ) {}\n+264\n+_\b2_\b6_\b5 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bs() const { return _\bn_\bR_\bo_\bw_\bs_\b_; }\n 266\n-268 template ::value, int>::type = 0>\n-270 typename FieldTraits::real_type infinity_norm_real() const {\n-271 using real_type = typename FieldTraits::real_type;\n-272 using std::max;\n-273\n-274 real_type norm = 0;\n-275 for (auto const &xi : *this) {\n-276 real_type const a = Impl::asVector(xi).infinity_norm_real();\n-277 norm = max(a, norm);\n-278 }\n-279 return norm;\n+_\b2_\b6_\b7 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn_\bo_\bn_\bZ_\be_\br_\bo_\bs() const\n+268 {\n+269 assert( _\br_\bo_\bw_\bs_\b_[ _\br_\bo_\bw_\bs() ] != _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be(-1) );\n+270 return _\br_\bo_\bw_\bs_\b_[ _\br_\bo_\bw_\bs() ];\n+271 }\n+272\n+_\b2_\b7_\b3 void _\br_\be_\bs_\bi_\bz_\be( const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nRows )\n+274 {\n+275 if( _\bn_\bR_\bo_\bw_\bs_\b_ != nRows )\n+276 {\n+277 _\bn_\bR_\bo_\bw_\bs_\b_ = nRows ;\n+278 _\br_\bo_\bw_\bs_\b_.resize( _\bn_\bR_\bo_\bw_\bs_\b_+1, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be(-1) );\n+279 }\n 280 }\n 281\n-283 template ::value, int>::type = 0>\n-285 typename FieldTraits::real_type infinity_norm() const {\n-286 using real_type = typename FieldTraits::real_type;\n-287 using std::max;\n-288 using std::abs;\n-289\n-290 real_type norm = 0;\n-291 real_type isNaN = 1;\n+_\b2_\b8_\b2 void _\br_\be_\bs_\be_\br_\bv_\be_\bA_\bd_\bd_\bi_\bt_\bi_\bo_\bn_\ba_\bl( const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn_\bo_\bn_\bZ_\be_\br_\bo_\bs )\n+283 {\n+284 const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be needed = _\bv_\ba_\bl_\bu_\be_\bs_\b_.size() + _\bn_\bo_\bn_\bZ_\be_\br_\bo_\bs ;\n+285 if( _\bv_\ba_\bl_\bu_\be_\bs_\b_.capacity() < needed )\n+286 {\n+287 const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be estimate = needed * 1.1;\n+288 _\bv_\ba_\bl_\bu_\be_\bs_\b_.reserve( estimate );\n+289 _\bc_\bo_\bl_\bs_\b_.reserve( estimate );\n+290 }\n+291 }\n 292\n-293 for (auto const &xi : *this) {\n-294 real_type const a = Impl::asVector(xi).infinity_norm();\n-295 norm = max(a, norm);\n-296 isNaN += a;\n+_\b2_\b9_\b3 void _\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk( const _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be& value, const _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be index )\n+294 {\n+295 _\bv_\ba_\bl_\bu_\be_\bs_\b_.push_back( value );\n+296 _\bc_\bo_\bl_\bs_\b_.push_back( index );\n 297 }\n-298 return norm * (isNaN / isNaN);\n-299 }\n-300\n-302 template ::value, int>::type = 0>\n-304 typename FieldTraits::real_type infinity_norm_real() const {\n-305 using real_type = typename FieldTraits::real_type;\n-306 using std::max;\n-307\n-308 real_type norm = 0;\n-309 real_type isNaN = 1;\n+298\n+_\b2_\b9_\b9 std::vector< size_type > _\br_\bo_\bw_\bs_\b_;\n+_\b3_\b0_\b0 std::vector< block_type, Alloc> _\bv_\ba_\bl_\bu_\be_\bs_\b_;\n+_\b3_\b0_\b1 std::vector< size_type > _\bc_\bo_\bl_\bs_\b_;\n+_\b3_\b0_\b2 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bn_\bR_\bo_\bw_\bs_\b_;\n+303 };\n+304\n+306 template\n+_\b3_\b0_\b7 void _\bc_\bo_\bn_\bv_\be_\br_\bt_\bT_\bo_\bC_\bR_\bS(const M& A, _\bC_\bR_\bS& lower, _\bC_\bR_\bS& upper, InvVector& inv )\n+308 {\n+309 typedef typename M :: size_type size_type;\n 310\n-311 for (auto const &xi : *this) {\n-312 real_type const a = Impl::asVector(xi).infinity_norm_real();\n-313 norm = max(a, norm);\n-314 isNaN += a;\n-315 }\n-316\n-317 return norm * (isNaN / isNaN);\n-318 }\n-319\n-320 //===== sizes\n+311 lower._\br_\be_\bs_\bi_\bz_\be( A.N() );\n+312 upper._\br_\be_\bs_\bi_\bz_\be( A.N() );\n+313 inv.resize( A.N() );\n+314\n+315 // lower and upper triangular should store half of non zeros minus diagonal\n+316 const size_t memEstimate = (A.nonzeroes() - A.N())/2;\n+317\n+318 assert( A.nonzeroes() != 0 );\n+319 lower._\br_\be_\bs_\be_\br_\bv_\be_\bA_\bd_\bd_\bi_\bt_\bi_\bo_\bn_\ba_\bl( memEstimate );\n+320 upper._\br_\be_\bs_\be_\br_\bv_\be_\bA_\bd_\bd_\bi_\bt_\bi_\bo_\bn_\ba_\bl( memEstimate );\n 321\n-323 size_type N () const\n-324 {\n-325 return this->n;\n-326 }\n-327\n-329 size_type dim () const\n-330 {\n-331 size_type d=0;\n-332\n-333 for (size_type i=0; in; i++)\n-334 d += Impl::asVector((*this)[i]).dim();\n-335\n-336 return d;\n+322 const auto endi = A.end();\n+323 size_type row = 0;\n+324 size_type colcount = 0;\n+325 lower._\br_\bo_\bw_\bs_\b_[ 0 ] = colcount;\n+326 for (auto i=A.begin(); i!=endi; ++i, ++row)\n+327 {\n+328 const size_type iIndex = i.index();\n+329\n+330 // store entries left of diagonal\n+331 for (auto j=(*i).begin(); j.index() < iIndex; ++j )\n+332 {\n+333 lower._\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk( (*j), j.index() );\n+334 ++colcount;\n+335 }\n+336 lower._\br_\bo_\bw_\bs_\b_[ iIndex+1 ] = colcount;\n 337 }\n 338\n-339 protected:\n-341 block_vector_unmanaged () : base_array_unmanaged()\n-342 { }\n-343 };\n-344\n-346\n-351 template\n-352 class ScopeGuard {\n-353 F cleanupFunc_;\n-354 public:\n-355 ScopeGuard(F cleanupFunc) : cleanupFunc_(_\bs_\bt_\bd::move(cleanupFunc)) {}\n-356 ScopeGuard(const ScopeGuard &) = delete;\n-357 ScopeGuard(ScopeGuard &&) = delete;\n-358 ScopeGuard &operator=(ScopeGuard) = delete;\n-359 ~ScopeGuard() { cleanupFunc_(); }\n-360 };\n-361\n-363\n-372 template\n-373 ScopeGuard makeScopeGuard(F cleanupFunc)\n-374 {\n-375 return { std::move(cleanupFunc) };\n-376 }\n-377\n-378} // end namespace Imp\n-393 template >\n-_\b3_\b9_\b4 class _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br : public Imp::block_vector_unmanaged\n-395 {\n-396 public:\n+339 const auto rendi = A.beforeBegin();\n+340 row = 0;\n+341 colcount = 0;\n+342 upper._\br_\bo_\bw_\bs_\b_[ 0 ] = colcount ;\n+343\n+344 // NOTE: upper and inv store entries in reverse row and col order,\n+345 // reverse here relative to ILU\n+346 for (auto i=A.beforeEnd(); i!=rendi; --i, ++ row )\n+347 {\n+348 const auto endij=(*i).beforeBegin(); // end of row i\n+349\n+350 const size_type iIndex = i.index();\n+351\n+352 // store in reverse row order for faster access during backsolve\n+353 for (auto j=(*i).beforeEnd(); j != endij; --j )\n+354 {\n+355 const size_type jIndex = j.index();\n+356 if( j.index() == iIndex )\n+357 {\n+358 inv[ row ] = (*j);\n+359 break; // assuming consecutive ordering of A\n+360 }\n+361 else if ( j.index() >= i.index() )\n+362 {\n+363 upper._\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk( (*j), jIndex );\n+364 ++colcount ;\n+365 }\n+366 }\n+367 upper._\br_\bo_\bw_\bs_\b_[ row+1 ] = colcount;\n+368 }\n+369 } // end convertToCRS\n+370\n+372 template\n+_\b3_\b7_\b3 void _\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be (const _\bC_\bR_\bS& lower,\n+374 const _\bC_\bR_\bS& upper,\n+375 const InvVector& inv,\n+376 X& v, const Y& d)\n+377 {\n+378 // iterator types\n+379 typedef typename Y :: block_type dblock;\n+380 typedef typename X :: block_type vblock;\n+381 typedef typename X :: size_type size_type ;\n+382\n+383 const size_type iEnd = lower._\br_\bo_\bw_\bs();\n+384 const size_type lastRow = iEnd - 1;\n+385 if( iEnd != upper._\br_\bo_\bw_\bs() )\n+386 {\n+387 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"ILU::blockILUBacksolve: lower and upper rows must be\n+the same\");\n+388 }\n+389\n+390 // lower triangular solve\n+391 for( size_type i=0; i::field_type;\n-402\n-_\b4_\b0_\b4 typedef B _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n-405\n-_\b4_\b0_\b7 typedef A _\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be;\n-408\n-_\b4_\b1_\b0 typedef typename A::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-411\n-413 [[deprecated(\"Use free function blockLevel(). Will be removed after\n-2.8.\")]]\n-_\b4_\b1_\b4 static constexpr unsigned int _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = blockLevel()+1;\n+398 for( size_type _\bc_\bo_\bl = rowI; _\bc_\bo_\bl < rowINext; ++ _\bc_\bo_\bl )\n+399 Impl::asMatrix(lower._\bv_\ba_\bl_\bu_\be_\bs_\b_[ _\bc_\bo_\bl ]).mmv( Impl::asVector(v[ lower._\bc_\bo_\bl_\bs_\b_\n+[ _\bc_\bo_\bl ] ] ), rhs );\n+400\n+401 Impl::asVector(v[ i ]) = rhs; // Lii = I\n+402 }\n+403\n+404 // upper triangular solve\n+405 for( size_type i=0; i::Iterator _\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-418\n-_\b4_\b2_\b0 typedef typename Imp::block_vector_unmanaged::ConstIterator\n-_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n-421\n-422 //===== constructors and such\n-423\n-_\b4_\b2_\b5 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br ()\n-426 {\n-427 syncBaseArray();\n-428 }\n-429\n-_\b4_\b3_\b1 explicit _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n) : storage_(_n)\n-432 {\n-433 syncBaseArray();\n-434 }\n-435\n-_\b4_\b3_\b7 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (std::initializer_list const &l) : storage_(l)\n-438 {\n-439 syncBaseArray();\n-440 }\n-441\n-442\n-454 template\n-_\b4_\b5_\b5 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _n, S _capacity)\n-456 {\n-457 static_assert(std::numeric_limits::is_integer,\n-458 \"capacity must be an unsigned integral type (be aware, that this\n-constructor does not set the default value!)\" );\n-459 if((_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be)_capacity > _n)\n-460 storage_.reserve(_capacity);\n-461 storage_.resize(_n);\n-462 syncBaseArray();\n-463 }\n-464\n-465\n-_\b4_\b7_\b5 void _\br_\be_\bs_\be_\br_\bv_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\ba_\bp_\ba_\bc_\bi_\bt_\by)\n-476 {\n-477 [[maybe_unused]] const auto &guard =\n-478 Imp::makeScopeGuard([this]{ syncBaseArray(); });\n-479 storage_.reserve(_\bc_\ba_\bp_\ba_\bc_\bi_\bt_\by);\n-480 }\n-481\n-_\b4_\b8_\b8 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\ba_\bp_\ba_\bc_\bi_\bt_\by() const\n-489 {\n-490 return storage_.capacity();\n-491 }\n-492\n-_\b5_\b0_\b3 void _\br_\be_\bs_\bi_\bz_\be(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size)\n-504 {\n-505 [[maybe_unused]] const auto &guard =\n-506 Imp::makeScopeGuard([this]{ syncBaseArray(); });\n-507 storage_.resize(size);\n-508 }\n-509\n-_\b5_\b1_\b1 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br(const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br &a)\n-512 noexcept(noexcept(std::declval().storage_ = a.storage_))\n-513 {\n-514 storage_ = a.storage_;\n-515 syncBaseArray();\n-516 }\n-517\n-_\b5_\b1_\b9 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br(_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br &&a)\n-520 noexcept(noexcept(std::declval().swap(a)))\n-521 {\n-522 _\bs_\bw_\ba_\bp(a);\n-523 }\n-524\n-_\b5_\b2_\b6 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& a)\n-527 noexcept(noexcept(std::declval().storage_ = a.storage_))\n-528 {\n-529 [[maybe_unused]] const auto &guard =\n-530 Imp::makeScopeGuard([this]{ syncBaseArray(); });\n-531 storage_ = a.storage_;\n-532 return *this;\n-533 }\n-534\n-_\b5_\b3_\b6 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br&& a)\n-537 noexcept(noexcept(std::declval().swap(a)))\n-538 {\n-539 _\bs_\bw_\ba_\bp(a);\n-540 return *this;\n-541 }\n-542\n-_\b5_\b4_\b4 void _\bs_\bw_\ba_\bp(_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br &other)\n-545 noexcept(noexcept(\n-546 std::declval().storage_.swap(other.storage_)))\n-547 {\n-548 [[maybe_unused]] const auto &guard = Imp::makeScopeGuard([&]{\n-549 syncBaseArray();\n-550 other.syncBaseArray();\n-551 });\n-552 storage_.swap(other.storage_);\n-553 }\n-554\n-_\b5_\b5_\b6 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be& k)\n-557 {\n-558 // forward to operator= in base class\n-559 (static_cast&>(*this)) = k;\n-560 return *this;\n-561 }\n-562\n-563 private:\n-564 void syncBaseArray() noexcept\n-565 {\n-566 this->p = storage_.data();\n-567 this->n = storage_.size();\n-568 }\n-569\n-570 std::vector storage_;\n-571 };\n-572\n-578 template\n-_\b5_\b7_\b9 struct FieldTraits< _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br >\n-580 {\n-_\b5_\b8_\b1 typedef typename FieldTraits::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-_\b5_\b8_\b2 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n-583 };\n-589 template\n-_\b5_\b9_\b0 std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<_\b (std::ostream& s, const _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bK_\b,_\b _\bA_\b>& v)\n-591 {\n-592 typedef typename _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bK_\b,_\b _\bA_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be size_type;\n-593\n-594 for (size_type i=0; i\n-623#else\n-624 template >\n-625#endif\n-626 class BlockVectorWindow : public Imp::block_vector_unmanaged\n-627 {\n-628 public:\n-629\n-630 //===== type definitions and constants\n-631\n-633 using field_type = typename Imp::BlockTraits::field_type;\n-634\n-636 typedef B block_type;\n-637\n-639 typedef A allocator_type;\n-640\n-642 typedef typename A::size_type size_type;\n-643\n-645 [[deprecated(\"Use free function blockLevel(). Will be removed after\n-2.8.\")]]\n-646 static constexpr unsigned int blocklevel = blockLevel()+1;\n-647\n-649 typedef typename Imp::block_vector_unmanaged::Iterator Iterator;\n-650\n-652 typedef typename Imp::block_vector_unmanaged::ConstIterator\n-ConstIterator;\n-653\n-654\n-655 //===== constructors and such\n-657 BlockVectorWindow () : Imp::block_vector_unmanaged()\n-658 { }\n-659\n-661 BlockVectorWindow (B* _p, size_type _n)\n-662 {\n-663 this->n = _n;\n-664 this->p = _p;\n-665 }\n-666\n-668 BlockVectorWindow (const BlockVectorWindow& a)\n-669 {\n-670 this->n = a.n;\n-671 this->p = a.p;\n-672 }\n-673\n-675 BlockVectorWindow& operator= (const BlockVectorWindow& a)\n-676 {\n-677 // check correct size\n-678#ifdef DUNE_ISTL_WITH_CHECKING\n-679 if (this->n!=a.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n-680#endif\n-681\n-682 if (&a!=this) // check if this and a are different objects\n-683 {\n-684 // copy data\n-685 for (size_type i=0; in; i++) this->p[i]=a.p[i];\n-686 }\n-687 return *this;\n-688 }\n-689\n-691 BlockVectorWindow& operator= (const field_type& k)\n-692 {\n-693 (static_cast&>(*this)) = k;\n-694 return *this;\n-695 }\n-696\n-698 operator BlockVector() const {\n-699 auto bv = BlockVector(this->n);\n-700\n-701 std::copy(this->begin(), this->end(), bv.begin());\n-702\n-703 return bv;\n-704 }\n-705\n-706 //===== window manipulation methods\n-707\n-709 void set (size_type _n, B* _p)\n-710 {\n-711 this->n = _n;\n-712 this->p = _p;\n-713 }\n-714\n-716 void setsize (size_type _n)\n-717 {\n-718 this->n = _n;\n-719 }\n-720\n-722 void setptr (B* _p)\n-723 {\n-724 this->p = _p;\n-725 }\n-726\n-728 B* getptr ()\n-729 {\n-730 return this->p;\n-731 }\n-732\n-734 size_type getsize () const\n-735 {\n-736 return this->n;\n-737 }\n-738 };\n-739\n-740\n-741\n-752 template >\n-753 class compressed_block_vector_unmanaged : public\n-compressed_base_array_unmanaged\n-754 {\n-755 public:\n-756\n-757 //===== type definitions and constants\n-758\n-760 using field_type = typename Imp::BlockTraits::field_type;\n-761\n-763 typedef B block_type;\n-764\n-766 typedef A allocator_type;\n-767\n-769 typedef typename compressed_base_array_unmanaged::iterator Iterator;\n-770\n-772 typedef typename compressed_base_array_unmanaged::const_iterator\n-ConstIterator;\n-773\n-775 typedef typename A::size_type size_type;\n-776\n-777 //===== assignment from scalar\n-778\n-779 compressed_block_vector_unmanaged& operator= (const field_type& k)\n-780 {\n-781 for (size_type i=0; in; i++)\n-782 (this->p)[i] = k;\n-783 return *this;\n-784 }\n-785\n-786\n-787 //===== vector space arithmetic\n-788\n-790 template\n-791 compressed_block_vector_unmanaged& operator+= (const V& y)\n-792 {\n-793#ifdef DUNE_ISTL_WITH_CHECKING\n-794 if (!includesindexset(y)) DUNE_THROW(ISTLError,\"index set mismatch\");\n-795#endif\n-796 for (size_type i=0; ioperator[](y.j[i]) += y.p[i];\n-797 return *this;\n-798 }\n-799\n-801 template\n-802 compressed_block_vector_unmanaged& operator-= (const V& y)\n-803 {\n-804#ifdef DUNE_ISTL_WITH_CHECKING\n-805 if (!includesindexset(y)) DUNE_THROW(ISTLError,\"index set mismatch\");\n-806#endif\n-807 for (size_type i=0; ioperator[](y.j[i]) -= y.p[i];\n-808 return *this;\n-809 }\n-810\n-812 template\n-813 compressed_block_vector_unmanaged& axpy (const field_type& a, const V& y)\n-814 {\n-815#ifdef DUNE_ISTL_WITH_CHECKING\n-816 if (!includesindexset(y)) DUNE_THROW(ISTLError,\"index set mismatch\");\n-817#endif\n-818 for (size_type i=0; in; ++i) (this->p)[i] *= k;\n-827 return *this;\n-828 }\n-829\n-831 compressed_block_vector_unmanaged& operator/= (const field_type& k)\n-832 {\n-833 for (size_type i=0; in; ++i) (this->p)[i] /= k;\n-834 return *this;\n-835 }\n-836\n-837\n-838 //===== Euclidean scalar product\n-839\n-841 field_type operator* (const compressed_block_vector_unmanaged& y) const\n-842 {\n-843#ifdef DUNE_ISTL_WITH_CHECKING\n-844 if (!includesindexset(y) || !y.includesindexset(*this) )\n-845 DUNE_THROW(ISTLError,\"index set mismatch\");\n-846#endif\n-847 field_type sum=0;\n-848 for (size_type i=0; in; ++i)\n-849 sum += (this->p)[i] * y[(this->j)[i]];\n-850 return sum;\n-851 }\n-852\n-853\n-854 //===== norms\n-855\n-857 typename FieldTraits::real_type one_norm () const\n-858 {\n-859 typename FieldTraits::real_type sum=0;\n-860 for (size_type i=0; in; ++i) sum += (this->p)[i].one_norm();\n-861 return sum;\n-862 }\n-863\n-865 typename FieldTraits::real_type one_norm_real () const\n-866 {\n-867 typename FieldTraits::real_type sum=0;\n-868 for (size_type i=0; in; ++i) sum += (this->p)[i].one_norm_real();\n-869 return sum;\n-870 }\n-871\n-873 typename FieldTraits::real_type two_norm () const\n-874 {\n-875 using std::sqrt;\n-876 typename FieldTraits::real_type sum=0;\n-877 for (size_type i=0; in; ++i) sum += (this->p)[i].two_norm2();\n-878 return sqrt(sum);\n-879 }\n-880\n-882 typename FieldTraits::real_type two_norm2 () const\n-883 {\n-884 typename FieldTraits::real_type sum=0;\n-885 for (size_type i=0; in; ++i) sum += (this->p)[i].two_norm2();\n-886 return sum;\n-887 }\n-888\n-890 template ::value, int>::type = 0>\n-892 typename FieldTraits::real_type infinity_norm() const {\n-893 using real_type = typename FieldTraits::real_type;\n-894 using std::max;\n-895\n-896 real_type norm = 0;\n-897 for (auto const &x : *this) {\n-898 real_type const a = x.infinity_norm();\n-899 norm = max(a, norm);\n-900 }\n-901 return norm;\n-902 }\n-903\n-905 template ::value, int>::type = 0>\n-907 typename FieldTraits::real_type infinity_norm_real() const {\n-908 using real_type = typename FieldTraits::real_type;\n-909 using std::max;\n-910\n-911 real_type norm = 0;\n-912 for (auto const &x : *this) {\n-913 real_type const a = x.infinity_norm_real();\n-914 norm = max(a, norm);\n-915 }\n-916 return norm;\n-917 }\n-918\n-920 template ::value, int>::type = 0>\n-922 typename FieldTraits::real_type infinity_norm() const {\n-923 using real_type = typename FieldTraits::real_type;\n-924 using std::max;\n-925\n-926 real_type norm = 0;\n-927 real_type isNaN = 1;\n-928 for (auto const &x : *this) {\n-929 real_type const a = x.infinity_norm();\n-930 norm = max(a, norm);\n-931 isNaN += a;\n-932 }\n-933 return norm * (isNaN / isNaN);\n-934 }\n-935\n-937 template ::value, int>::type = 0>\n-939 typename FieldTraits::real_type infinity_norm_real() const {\n-940 using real_type = typename FieldTraits::real_type;\n-941 using std::max;\n-942\n-943 real_type norm = 0;\n-944 real_type isNaN = 1;\n-945 for (auto const &x : *this) {\n-946 real_type const a = x.infinity_norm_real();\n-947 norm = max(a, norm);\n-948 isNaN += a;\n-949 }\n-950 return norm * (isNaN / isNaN);\n-951 }\n-952\n-953 //===== sizes\n-954\n-956 size_type N () const\n-957 {\n-958 return this->n;\n-959 }\n-960\n-962 size_type dim () const\n-963 {\n-964 size_type d=0;\n-965 for (size_type i=0; in; i++)\n-966 d += (this->p)[i].dim();\n-967 return d;\n-968 }\n-969\n-970 protected:\n-972 compressed_block_vector_unmanaged () : compressed_base_array_unmanaged\n-()\n-973 { }\n-974\n-976 template\n-977 bool includesindexset (const V& y)\n-978 {\n-979 typename V::ConstIterator e=this->end();\n-980 for (size_type i=0; ifind(y.j[i])==e)\n-982 return false;\n-983 return true;\n-984 }\n-985 };\n-986\n-987\n-1006 template >\n-1007 class CompressedBlockVectorWindow : public\n-compressed_block_vector_unmanaged\n-1008 {\n-1009 public:\n-1010\n-1011 //===== type definitions and constants\n-1012\n-1014 using field_type = typename Imp::BlockTraits::field_type;\n-1015\n-1017 typedef B block_type;\n-1018\n-1020 typedef A allocator_type;\n-1021\n-1023 typedef typename A::size_type size_type;\n-1024\n-1026 [[deprecated(\"Use free function blockLevel(). Will be removed after\n-2.8.\")]]\n-1027 static constexpr unsigned int blocklevel = blockLevel()+1;\n-1028\n-1030 typedef typename compressed_block_vector_unmanaged::Iterator\n-Iterator;\n-1031\n-1033 typedef typename compressed_block_vector_unmanaged::ConstIterator\n-ConstIterator;\n-1034\n-1035\n-1036 //===== constructors and such\n-1038 CompressedBlockVectorWindow () : compressed_block_vector_unmanaged()\n-1039 { }\n-1040\n-1042 CompressedBlockVectorWindow (B* _p, size_type* _j, size_type _n)\n-1043 {\n-1044 this->n = _n;\n-1045 this->p = _p;\n-1046 this->j = _j;\n-1047 }\n-1048\n-1050 CompressedBlockVectorWindow (const CompressedBlockVectorWindow& a)\n-1051 {\n-1052 this->n = a.n;\n-1053 this->p = a.p;\n-1054 this->j = a.j;\n-1055 }\n-1056\n-1058 CompressedBlockVectorWindow& operator= (const CompressedBlockVectorWindow&\n-a)\n-1059 {\n-1060 // check correct size\n-1061#ifdef DUNE_ISTL_WITH_CHECKING\n-1062 if (this->n!=a.N()) DUNE_THROW(ISTLError,\"vector size mismatch\");\n-1063#endif\n-1064\n-1065 if (&a!=this) // check if this and a are different objects\n-1066 {\n-1067 // copy data\n-1068 for (size_type i=0; in; i++) this->p[i]=a.p[i];\n-1069 for (size_type i=0; in; i++) this->j[i]=a.j[i];\n-1070 }\n-1071 return *this;\n-1072 }\n-1073\n-1075 CompressedBlockVectorWindow& operator= (const field_type& k)\n-1076 {\n-1077 (static_cast&>(*this)) = k;\n-1078 return *this;\n-1079 }\n-1080\n-1081\n-1082 //===== window manipulation methods\n-1083\n-1085 void set (size_type _n, B* _p, size_type* _j)\n-1086 {\n-1087 this->n = _n;\n-1088 this->p = _p;\n-1089 this->j = _j;\n-1090 }\n-1091\n-1093 void setsize (size_type _n)\n-1094 {\n-1095 this->n = _n;\n-1096 }\n-1097\n-1099 void setptr (B* _p)\n-1100 {\n-1101 this->p = _p;\n-1102 }\n-1103\n-1105 void setindexptr (size_type* _j)\n-1106 {\n-1107 this->j = _j;\n-1108 }\n-1109\n-1111 B* getptr ()\n-1112 {\n-1113 return this->p;\n-1114 }\n-1115\n-1117 size_type* getindexptr ()\n-1118 {\n-1119 return this->j;\n-1120 }\n-1121\n-1123 const B* getptr () const\n-1124 {\n-1125 return this->p;\n-1126 }\n-1127\n-1129 const size_type* getindexptr () const\n-1130 {\n-1131 return this->j;\n-1132 }\n-1134 size_type getsize () const\n-1135 {\n-1136 return this->n;\n-1137 }\n-1138 };\n-1139\n-1140} // end namespace 'Imp'\n-1141\n-1142\n-1144 template\n-1145 struct AutonomousValueType>\n-1146 {\n-1147 using type = BlockVector;\n-1148 };\n-1149\n-1150\n-1151} // end namespace 'Dune'\n-1152\n-1153#endif\n-_\bb_\ba_\bs_\be_\ba_\br_\br_\ba_\by_\b._\bh_\bh\n-Implements several basic array containers.\n-_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n-Helper functions for determining the vector/matrix block level.\n+416 // apply inverse and store result\n+417 Impl::asMatrix(inv[ i ]).mv(rhs, vBlock);\n+418 }\n+419 }\n+420\n+421 } // end namespace ILU\n+422\n+425} // end namespace\n+426\n+427#endif\n _\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bs_\bt_\bd\n-STL namespace.\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n-std::ostream & operator<<(std::ostream &s, const BlockVector< K, A > &v)\n-Send BlockVector to an output stream.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:590\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-BlockVector()\n-makes empty vector\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:425\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\be_\br_\bv_\be\n-void reserve(size_type capacity)\n-Reserve space.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:475\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-BlockVector(BlockVector &&a) noexcept(noexcept(std::declval< BlockVector >\n-().swap(a)))\n-move constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:519\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-BlockVector(size_type _n)\n-make vector with _n components\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:431\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n-void resize(size_type size)\n-Resize the vector.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:503\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Imp::block_vector_unmanaged< B, A >::Iterator Iterator\n-make iterators available as types\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:417\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n-static constexpr unsigned int blocklevel\n-increment block level counter\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:414\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-BlockVector(const BlockVector &a) noexcept(noexcept(std::declval< BlockVector >\n-().storage_=a.storage_))\n-copy constructor\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:511\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\ba_\bl_\bl_\bo_\bc_\ba_\bt_\bo_\br_\b__\bt_\by_\bp_\be\n-A allocator_type\n-export the allocator type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:407\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-BlockVector & operator=(const BlockVector &a) noexcept(noexcept(std::declval<\n-BlockVector >().storage_=a.storage_))\n-assignment\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:526\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< B >::field_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:401\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-The type for the index access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:410\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-BlockVector(std::initializer_list< B > const &l)\n-Construct from a std::initializer_list.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:437\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bp_\ba_\bc_\bi_\bt_\by\n-size_type capacity() const\n-Get the capacity of the vector.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:488\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-BlockVector(size_type _n, S _capacity)\n-Make vector with _n components but preallocating capacity components.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:455\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bt_\bT_\bo_\bC_\bR_\bS\n+void convertToCRS(const M &A, CRS &lower, CRS &upper, InvVector &inv)\n+convert ILU decomposition into CRS format for lower and upper triangular and\n+inverse.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:307\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bB_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be\n+void blockILUBacksolve(const M &A, X &v, const Y &d)\n+LU backsolve with stored inverse.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:94\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bf_\bi_\br_\bs_\bt_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bl_\be_\bm_\be_\bn_\bt\n+M::field_type & firstMatrixElement(M &A, typename std::enable_if_t::value > *sfinae=nullptr)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:141\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\b0_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n+void blockILU0Decomposition(M &A)\n+compute ILU decomposition of A. A is overwritten by its decomposition\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:33\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bI_\bL_\bU_\bD_\be_\bc_\bo_\bm_\bp_\bo_\bs_\bi_\bt_\bi_\bo_\bn\n+void blockILUDecomposition(const M &A, int n, M &ILU)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:167\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS\n+a simple compressed row storage matrix class\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:259\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bc_\bo_\bl_\bs_\b_\n+std::vector< size_type > cols_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:301\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bn_\bo_\bn_\bZ_\be_\br_\bo_\bs\n+size_type nonZeros() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:267\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\br_\be_\bs_\bi_\bz_\be\n+void resize(const size_type nRows)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:273\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\br_\bo_\bw_\bs\n+size_type rows() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:265\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bC_\bR_\bS\n+CRS()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:263\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\br_\be_\bs_\be_\br_\bv_\be_\bA_\bd_\bd_\bi_\bt_\bi_\bo_\bn_\ba_\bl\n+void reserveAdditional(const size_type nonZeros)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:282\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n B block_type\n-export the type representing the components\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:404\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bw_\ba_\bp\n-void swap(BlockVector &other) noexcept(noexcept(std::declval< BlockVector & >\n-().storage_.swap(other.storage_)))\n-swap operation\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:544\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n-Imp::block_vector_unmanaged< B, A >::ConstIterator ConstIterator\n-make iterators available as types\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:420\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n-FieldTraits< B >::real_type real_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:582\n-_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\b _\bB_\b,_\b _\bA_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-FieldTraits< B >::field_type field_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:581\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:260\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bv_\ba_\bl_\bu_\be_\bs_\b_\n+std::vector< block_type, Alloc > values_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:300\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bn_\bR_\bo_\bw_\bs_\b_\n+size_type nRows_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:302\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+size_t size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:261\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\br_\bo_\bw_\bs_\b_\n+std::vector< size_type > rows_\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:299\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bL_\bU_\b:_\b:_\bC_\bR_\bS_\b:_\b:_\bp_\bu_\bs_\bh_\b__\bb_\ba_\bc_\bk\n+void push_back(const block_type &value, const size_type index)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ilu.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br\n+Error when performing an operation on a matrix block.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00218.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00218.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: solvertype.hh File Reference\n+dune-istl: matrixutils.hh File Reference\n \n \n \n \n \n \n \n@@ -71,38 +71,93 @@\n \n
    \n
    \n
    \n \n-
    solvertype.hh File Reference
    \n+Namespaces |\n+Functions
    \n+ \n
    \n
    \n \n-

    Templates characterizing the type of a solver. \n+

    Some handy generic functions for ISTL matrices. \n More...

    \n-\n+
    #include <set>
    \n+#include <vector>
    \n+#include <limits>
    \n+#include <dune/common/typetraits.hh>
    \n+#include <dune/common/fmatrix.hh>
    \n+#include <dune/common/dynmatrix.hh>
    \n+#include <dune/common/diagonalmatrix.hh>
    \n+#include <dune/common/scalarmatrixview.hh>
    \n+#include <dune/istl/scaledidmatrix.hh>
    \n+#include "istlexception.hh"
    \n+
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    struct  Dune::IsDirectSolver< Solver >
    struct  Dune::CheckIfDiagonalPresent< Matrix, blocklevel, l >
     Check whether the a matrix has diagonal values on blocklevel recursion levels. More...
     
    struct  Dune::CheckIfDiagonalPresent< Matrix, 0, l >
     
    struct  Dune::CheckIfDiagonalPresent< MultiTypeBlockMatrix< T1, Args... >, blocklevel, l >
     
    struct  Dune::MatrixDimension< M >
     
    struct  Dune::MatrixDimension< Matrix< B, TA > >
     
    struct  Dune::MatrixDimension< BCRSMatrix< B, TA > >
     
    struct  Dune::MatrixDimension< BCRSMatrix< FieldMatrix< B, n, m >, TA > >
     
    struct  Dune::MatrixDimension< FieldMatrix< K, n, m > >
     
    struct  Dune::StoresColumnCompressed< Solver >
    struct  Dune::MatrixDimension< Dune::DynamicMatrix< T > >
     
    struct  Dune::MatrixDimension< Matrix< FieldMatrix< K, n, m >, TA > >
     
    struct  Dune::MatrixDimension< DiagonalMatrix< K, n > >
     
    struct  Dune::MatrixDimension< ScaledIdentityMatrix< K, n > >
     
    struct  Dune::IsMatrix< T >
     Test whether a type is an ISTL Matrix. More...
     
    struct  Dune::IsMatrix< DenseMatrix< T > >
     
    struct  Dune::IsMatrix< BCRSMatrix< T, A > >
     
    struct  Dune::PointerCompare< T >
     
    \n \n \n \n+

    \n Namespaces

    namespace  Dune
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Functions

    template<class M >
    auto Dune::countNonZeros (const M &, typename std::enable_if_t< Dune::IsNumber< M >::value > *sfinae=nullptr)
     Get the number of nonzero fields in the matrix.
     
    template<class M >
    auto Dune::countNonZeros (const M &matrix, typename std::enable_if_t<!Dune::IsNumber< M >::value > *sfinae=nullptr)
     
    template<class M , class C >
    void Dune::printGlobalSparseMatrix (const M &mat, C &ooc, std::ostream &os)
     
    \n

    Detailed Description

    \n-

    Templates characterizing the type of a solver.

    \n+

    Some handy generic functions for ISTL matrices.

    \n+
    Author
    Markus Blatt
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,22 +1,80 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-solvertype.hh File Reference\n-Templates characterizing the type of a solver. _\bM_\bo_\br_\be_\b._\b._\b.\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+matrixutils.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bS_\bp_\ba_\br_\bs_\be_\b _\bM_\ba_\bt_\br_\bi_\bx_\b _\ba_\bn_\bd_\b _\bV_\be_\bc_\bt_\bo_\br_\b _\bc_\bl_\ba_\bs_\bs_\be_\bs\n+Some handy generic functions for ISTL matrices. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \n+#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bS_\bo_\bl_\bv_\be_\br_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b,_\b _\bl_\b _\b>\n+\u00a0 Check whether the a matrix has diagonal values on blocklevel recursion\n+ levels. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b<_\b _\bS_\bo_\bl_\bv_\be_\br_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\b0_\b,_\b _\bl_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b,\n+ _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b,_\b _\bl_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>\n+\u00a0 Test whether a type is an _\bI_\bS_\bT_\bL _\bM_\ba_\bt_\br_\bi_\bx. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b,_\b _\bA_\b _\b>_\b _\b>\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be_\b<_\b _\bT_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs (const M &, typename std::enable_if_t< Dune::\n+ IsNumber< M >::value > *sfinae=nullptr)\n+\u00a0 Get the number of nonzero fields in the matrix.\n+\u00a0\n+template\n+auto\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs (const M &matrix, typename std::enable_if_t::value > *sfinae=nullptr)\n+\u00a0\n+template\n+void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bG_\bl_\bo_\bb_\ba_\bl_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx (const M &_\bm_\ba_\bt, C &ooc, std::ostream &os)\n+\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Templates characterizing the type of a solver.\n+Some handy generic functions for ISTL matrices.\n+ Author\n+ Markus Blatt\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00218_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00218_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: solvertype.hh Source File\n+dune-istl: matrixutils.hh Source File\n \n \n \n \n \n \n \n@@ -74,54 +74,717 @@\n \n
    \n \n
    \n
    \n
    \n-
    solvertype.hh
    \n+
    matrixutils.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_SOLVERTYPE_HH
    \n-
    6#define DUNE_ISTL_SOLVERTYPE_HH
    \n+
    5#ifndef DUNE_ISTL_MATRIXUTILS_HH
    \n+
    6#define DUNE_ISTL_MATRIXUTILS_HH
    \n
    7
    \n-
    12namespace Dune
    \n-
    13{
    \n-
    14 template<typename Solver>
    \n-
    \n-\n-
    16 {
    \n-
    17 enum
    \n-
    18 {
    \n-
    24 value =false
    \n-
    25 };
    \n-
    26 };
    \n-
    \n-
    27
    \n-
    28 template<typename Solver>
    \n-
    \n-\n-
    30 {
    \n-
    31 enum
    \n-
    32 {
    \n-
    36 value = false
    \n-
    37 };
    \n-
    38 };
    \n+
    8#include <set>
    \n+
    9#include <vector>
    \n+
    10#include <limits>
    \n+
    11#include <dune/common/typetraits.hh>
    \n+
    12#include <dune/common/fmatrix.hh>
    \n+
    13#include <dune/common/dynmatrix.hh>
    \n+
    14#include <dune/common/diagonalmatrix.hh>
    \n+
    15#include <dune/common/scalarmatrixview.hh>
    \n+\n+
    17#include "istlexception.hh"
    \n+
    18
    \n+
    19namespace Dune
    \n+
    20{
    \n+
    21
    \n+
    22#ifndef DOYXGEN
    \n+
    23 template<typename B, typename A>
    \n+
    24 class BCRSMatrix;
    \n+
    25
    \n+
    26 template<typename K, int n, int m>
    \n+\n+
    28
    \n+
    29 template<class T, class A>
    \n+
    30 class Matrix;
    \n+
    31#endif
    \n+
    32
    \n+
    46 template<class Matrix, std::size_t blocklevel, std::size_t l=blocklevel>
    \n+
    \n+\n+
    48 {
    \n+
    \n+
    53 static void check([[maybe_unused]] const Matrix& mat)
    \n+
    54 {
    \n+
    55#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    56 typedef typename Matrix::ConstRowIterator Row;
    \n+
    57 typedef typename Matrix::ConstColIterator Entry;
    \n+
    58 for(Row row = mat.begin(); row!=mat.end(); ++row) {
    \n+
    59 Entry diagonal = row->find(row.index());
    \n+
    60 if(diagonal==row->end())
    \n+
    61 DUNE_THROW(ISTLError, "Missing diagonal value in row "<<row.index()
    \n+
    62 <<" at block recursion level "<<l-blocklevel);
    \n+
    63 else{
    \n+
    64 auto m = Impl::asMatrix(*diagonal);
    \n+
    65 CheckIfDiagonalPresent<decltype(m),blocklevel-1,l>::check(m);
    \n+
    66 }
    \n+
    67 }
    \n+
    68#endif
    \n+
    69 }
    \n
    \n-
    39} // end namespace Dune
    \n-
    40#endif
    \n+
    70 };
    \n+
    \n+
    71
    \n+
    72 template<class Matrix, std::size_t l>
    \n+
    \n+\n+
    74 {
    \n+
    \n+
    75 static void check(const Matrix& mat)
    \n+
    76 {
    \n+
    77 typedef typename Matrix::ConstRowIterator Row;
    \n+
    78 for(Row row = mat.begin(); row!=mat.end(); ++row) {
    \n+
    79 if(row->find(row.index())==row->end())
    \n+
    80 DUNE_THROW(ISTLError, "Missing diagonal value in row "<<row.index()
    \n+
    81 <<" at block recursion level "<<l);
    \n+
    82 }
    \n+
    83 }
    \n+
    \n+
    84 };
    \n+
    \n+
    85
    \n+
    86 template<typename FirstRow, typename... Args>
    \n+
    87 class MultiTypeBlockMatrix;
    \n+
    88
    \n+
    89 template<std::size_t blocklevel, std::size_t l, typename T1, typename... Args>
    \n+
    \n+\n+
    91 blocklevel,l>
    \n+
    92 {
    \n+
    93 typedef MultiTypeBlockMatrix<T1,Args...> Matrix;
    \n+
    94
    \n+
    \n+
    99 static void check(const Matrix& /* mat */)
    \n+
    100 {
    \n+
    101#ifdef DUNE_ISTL_WITH_CHECKING
    \n+
    102 // TODO Implement check
    \n+
    103#endif
    \n+
    104 }
    \n+
    \n+
    105 };
    \n+
    \n+
    106
    \n+
    118 template<class M>
    \n+
    \n+
    119 inline auto countNonZeros(const M&,
    \n+
    120 [[maybe_unused]] typename std::enable_if_t<Dune::IsNumber<M>::value>* sfinae = nullptr)
    \n+
    121 {
    \n+
    122 return 1;
    \n+
    123 }
    \n+
    \n+
    124
    \n+
    125 template<class M>
    \n+
    \n+
    126 inline auto countNonZeros(const M& matrix,
    \n+
    127 [[maybe_unused]] typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr)
    \n+
    128 {
    \n+
    129 typename M::size_type nonZeros = 0;
    \n+
    130 for(auto&& row : matrix)
    \n+
    131 for(auto&& entry : row)
    \n+
    132 nonZeros += countNonZeros(entry);
    \n+
    133 return nonZeros;
    \n+
    134 }
    \n+
    \n+
    135
    \n+
    136 /*
    \n+
    137 template<class M>
    \n+
    138 struct ProcessOnFieldsOfMatrix
    \n+
    139 */
    \n+
    140
    \n+
    142 namespace
    \n+
    143 {
    \n+
    144 struct CompPair {
    \n+
    145 template<class G,class M>
    \n+
    146 bool operator()(const std::pair<G,M>& p1, const std::pair<G,M>& p2) const
    \n+
    147 {
    \n+
    148 return p1.first<p2.first;
    \n+
    149 }
    \n+
    150 };
    \n+
    151
    \n+
    152 }
    \n+
    153 template<class M, class C>
    \n+
    \n+
    154 void printGlobalSparseMatrix(const M& mat, C& ooc, std::ostream& os)
    \n+
    155 {
    \n+
    156 typedef typename C::ParallelIndexSet::const_iterator IIter;
    \n+
    157 typedef typename C::OwnerSet OwnerSet;
    \n+
    158 typedef typename C::ParallelIndexSet::GlobalIndex GlobalIndex;
    \n+
    159
    \n+
    160 GlobalIndex gmax=0;
    \n+
    161
    \n+
    162 for(IIter idx=ooc.indexSet().begin(), eidx=ooc.indexSet().end();
    \n+
    163 idx!=eidx; ++idx)
    \n+
    164 gmax=std::max(gmax,idx->global());
    \n+
    165
    \n+
    166 gmax=ooc.communicator().max(gmax);
    \n+
    167 ooc.buildGlobalLookup();
    \n+
    168
    \n+
    169 for(IIter idx=ooc.indexSet().begin(), eidx=ooc.indexSet().end();
    \n+
    170 idx!=eidx; ++idx) {
    \n+
    171 if(OwnerSet::contains(idx->local().attribute()))
    \n+
    172 {
    \n+
    173 typedef typename M::block_type Block;
    \n+
    174
    \n+
    175 std::set<std::pair<GlobalIndex,Block>,CompPair> entries;
    \n+
    176
    \n+
    177 // sort rows
    \n+
    178 typedef typename M::ConstColIterator CIter;
    \n+
    179 for(CIter c=mat[idx->local()].begin(), cend=mat[idx->local()].end();
    \n+
    180 c!=cend; ++c) {
    \n+
    181 const typename C::ParallelIndexSet::IndexPair* pair
    \n+
    182 =ooc.globalLookup().pair(c.index());
    \n+
    183 assert(pair);
    \n+
    184 entries.insert(std::make_pair(pair->global(), *c));
    \n+
    185 }
    \n+
    186
    \n+
    187 //wait until its the rows turn.
    \n+
    188 GlobalIndex rowidx = idx->global();
    \n+
    189 GlobalIndex cur=std::numeric_limits<GlobalIndex>::max();
    \n+
    190 while(cur!=rowidx)
    \n+
    191 cur=ooc.communicator().min(rowidx);
    \n+
    192
    \n+
    193 // print rows
    \n+
    194 typedef typename std::set<std::pair<GlobalIndex,Block>,CompPair>::iterator SIter;
    \n+
    195 for(SIter s=entries.begin(), send=entries.end(); s!=send; ++s)
    \n+
    196 os<<idx->global()<<" "<<s->first<<" "<<s->second<<std::endl;
    \n+
    197
    \n+
    198
    \n+
    199 }
    \n+
    200 }
    \n+
    201
    \n+
    202 ooc.freeGlobalLookup();
    \n+
    203 // Wait until everybody is finished
    \n+
    204 GlobalIndex cur=std::numeric_limits<GlobalIndex>::max();
    \n+
    205 while(cur!=ooc.communicator().min(cur)) ;
    \n+
    206 }
    \n+
    \n+
    207
    \n+
    208 // Default implementation for scalar types
    \n+
    209 template<typename M>
    \n+
    \n+\n+
    211 {
    \n+
    212 static_assert(IsNumber<M>::value, "MatrixDimension is not implemented for this type!");
    \n+
    213
    \n+
    \n+
    214 static auto rowdim(const M& A)
    \n+
    215 {
    \n+
    216 return 1;
    \n+
    217 }
    \n+
    \n+
    218
    \n+
    \n+
    219 static auto coldim(const M& A)
    \n+
    220 {
    \n+
    221 return 1;
    \n+
    222 }
    \n+
    \n+
    223 };
    \n+
    \n+
    224
    \n+
    225 // Default implementation for scalar types
    \n+
    226 template<typename B, typename TA>
    \n+
    \n+
    227 struct MatrixDimension<Matrix<B,TA> >
    \n+
    228 {
    \n+\n+\n+
    231
    \n+
    \n+\n+
    233 {
    \n+\n+
    235 }
    \n+
    \n+
    236
    \n+
    \n+\n+
    238 {
    \n+\n+
    240 }
    \n+
    \n+
    241
    \n+
    \n+
    242 static size_type rowdim (const Matrix<B,TA>& A)
    \n+
    243 {
    \n+
    244 size_type nn=0;
    \n+
    245 for (size_type i=0; i<A.N(); i++)
    \n+
    246 nn += rowdim(A,i);
    \n+
    247 return nn;
    \n+
    248 }
    \n+
    \n+
    249
    \n+
    \n+
    250 static size_type coldim (const Matrix<B,TA>& A)
    \n+
    251 {
    \n+
    252 size_type nn=0;
    \n+
    253 for (size_type i=0; i<A.M(); i++)
    \n+
    254 nn += coldim(A,i);
    \n+
    255 return nn;
    \n+
    256 }
    \n+
    \n+
    257 };
    \n+
    \n+
    258
    \n+
    259
    \n+
    260 template<typename B, typename TA>
    \n+
    \n+\n+
    262 {
    \n+\n+\n+
    265 typedef typename Matrix::size_type size_type;
    \n+
    266
    \n+
    \n+
    267 static size_type rowdim (const Matrix& A, size_type i)
    \n+
    268 {
    \n+
    269 const B* row = A.r[i].getptr();
    \n+
    270 if(row)
    \n+\n+
    272 else
    \n+
    273 return 0;
    \n+
    274 }
    \n+
    \n+
    275
    \n+
    \n+
    276 static size_type coldim (const Matrix& A, size_type c)
    \n+
    277 {
    \n+
    278 // find an entry in column c
    \n+
    279 if (A.nnz_ > 0)
    \n+
    280 {
    \n+
    281 for (size_type k=0; k<A.nnz_; k++) {
    \n+
    282 if (A.j_.get()[k] == c) {
    \n+\n+
    284 }
    \n+
    285 }
    \n+
    286 }
    \n+
    287 else
    \n+
    288 {
    \n+
    289 for (size_type i=0; i<A.N(); i++)
    \n+
    290 {
    \n+
    291 size_type* j = A.r[i].getindexptr();
    \n+
    292 B* a = A.r[i].getptr();
    \n+
    293 for (size_type k=0; k<A.r[i].getsize(); k++)
    \n+
    294 if (j[k]==c) {
    \n+\n+
    296 }
    \n+
    297 }
    \n+
    298 }
    \n+
    299
    \n+
    300 // not found
    \n+
    301 return 0;
    \n+
    302 }
    \n+
    \n+
    303
    \n+
    \n+
    304 static size_type rowdim (const Matrix& A){
    \n+
    305 size_type nn=0;
    \n+
    306 for (size_type i=0; i<A.N(); i++)
    \n+
    307 nn += rowdim(A,i);
    \n+
    308 return nn;
    \n+
    309 }
    \n+
    \n+
    310
    \n+
    \n+
    311 static size_type coldim (const Matrix& A){
    \n+
    312 typedef typename Matrix::ConstRowIterator ConstRowIterator;
    \n+
    313 typedef typename Matrix::ConstColIterator ConstColIterator;
    \n+
    314
    \n+
    315 // The following code has a complexity of nnz, and
    \n+
    316 // typically a very small constant.
    \n+
    317 //
    \n+
    318 std::vector<size_type> coldims(A.M(),
    \n+
    319 std::numeric_limits<size_type>::max());
    \n+
    320
    \n+
    321 for (ConstRowIterator row=A.begin(); row!=A.end(); ++row)
    \n+
    322 for (ConstColIterator col=row->begin(); col!=row->end(); ++col)
    \n+
    323 // only compute blocksizes we don't already have
    \n+
    324 if (coldims[col.index()]==std::numeric_limits<size_type>::max())
    \n+
    325 coldims[col.index()] = MatrixDimension<block_type>::coldim(*col);
    \n+
    326
    \n+
    327 size_type sum = 0;
    \n+
    328 for (typename std::vector<size_type>::iterator it=coldims.begin();
    \n+
    329 it!=coldims.end(); ++it)
    \n+
    330 // skip rows for which no coldim could be determined
    \n+
    331 if ((*it)>=0)
    \n+
    332 sum += *it;
    \n+
    333
    \n+
    334 return sum;
    \n+
    335 }
    \n+
    \n+
    336 };
    \n+
    \n+
    337
    \n+
    338
    \n+
    339 template<typename B, int n, int m, typename TA>
    \n+
    \n+\n+
    341 {
    \n+\n+
    343 typedef typename Matrix::size_type size_type;
    \n+
    344
    \n+
    \n+
    345 static size_type rowdim (const Matrix& /*A*/, size_type /*i*/)
    \n+
    346 {
    \n+
    347 return n;
    \n+
    348 }
    \n+
    \n+
    349
    \n+
    \n+
    350 static size_type coldim (const Matrix& /*A*/, size_type /*c*/)
    \n+
    351 {
    \n+
    352 return m;
    \n+
    353 }
    \n+
    \n+
    354
    \n+
    \n+
    355 static size_type rowdim (const Matrix& A) {
    \n+
    356 return A.N()*n;
    \n+
    357 }
    \n+
    \n+
    358
    \n+
    \n+
    359 static size_type coldim (const Matrix& A) {
    \n+
    360 return A.M()*m;
    \n+
    361 }
    \n+
    \n+
    362 };
    \n+
    \n+
    363
    \n+
    364 template<typename K, int n, int m>
    \n+
    \n+\n+
    366 {
    \n+\n+
    368 typedef typename Matrix::size_type size_type;
    \n+
    369
    \n+
    \n+
    370 static size_type rowdim(const Matrix& /*A*/, size_type /*r*/)
    \n+
    371 {
    \n+
    372 return 1;
    \n+
    373 }
    \n+
    \n+
    374
    \n+
    \n+
    375 static size_type coldim(const Matrix& /*A*/, size_type /*r*/)
    \n+
    376 {
    \n+
    377 return 1;
    \n+
    378 }
    \n+
    \n+
    379
    \n+
    \n+
    380 static size_type rowdim(const Matrix& /*A*/)
    \n+
    381 {
    \n+
    382 return n;
    \n+
    383 }
    \n+
    \n+
    384
    \n+
    \n+
    385 static size_type coldim(const Matrix& /*A*/)
    \n+
    386 {
    \n+
    387 return m;
    \n+
    388 }
    \n+
    \n+
    389 };
    \n+
    \n+
    390
    \n+
    391 template <class T>
    \n+
    \n+
    392 struct MatrixDimension<Dune::DynamicMatrix<T> >
    \n+
    393 {
    \n+
    394 typedef Dune::DynamicMatrix<T> MatrixType;
    \n+
    395 typedef typename MatrixType::size_type size_type;
    \n+
    396
    \n+
    \n+
    397 static size_type rowdim(const MatrixType& /*A*/, size_type /*r*/)
    \n+
    398 {
    \n+
    399 return 1;
    \n+
    400 }
    \n+
    \n+
    401
    \n+
    \n+
    402 static size_type coldim(const MatrixType& /*A*/, size_type /*r*/)
    \n+
    403 {
    \n+
    404 return 1;
    \n+
    405 }
    \n+
    \n+
    406
    \n+
    \n+
    407 static size_type rowdim(const MatrixType& A)
    \n+
    408 {
    \n+
    409 return A.N();
    \n+
    410 }
    \n+
    \n+
    411
    \n+
    \n+
    412 static size_type coldim(const MatrixType& A)
    \n+
    413 {
    \n+
    414 return A.M();
    \n+
    415 }
    \n+
    \n+
    416 };
    \n+
    \n+
    417
    \n+
    418 template<typename K, int n, int m, typename TA>
    \n+
    \n+
    419 struct MatrixDimension<Matrix<FieldMatrix<K,n,m>, TA> >
    \n+
    420 {
    \n+\n+\n+
    423
    \n+
    \n+
    424 static size_type rowdim(const ThisMatrix& /*A*/, size_type /*r*/)
    \n+
    425 {
    \n+
    426 return n;
    \n+
    427 }
    \n+
    \n+
    428
    \n+
    \n+
    429 static size_type coldim(const ThisMatrix& /*A*/, size_type /*r*/)
    \n+
    430 {
    \n+
    431 return m;
    \n+
    432 }
    \n+
    \n+
    433
    \n+
    \n+
    434 static size_type rowdim(const ThisMatrix& A)
    \n+
    435 {
    \n+
    436 return A.N()*n;
    \n+
    437 }
    \n+
    \n+
    438
    \n+
    \n+
    439 static size_type coldim(const ThisMatrix& A)
    \n+
    440 {
    \n+
    441 return A.M()*m;
    \n+
    442 }
    \n+
    \n+
    443 };
    \n+
    \n+
    444
    \n+
    445 template<typename K, int n>
    \n+
    \n+
    446 struct MatrixDimension<DiagonalMatrix<K,n> >
    \n+
    447 {
    \n+
    448 typedef DiagonalMatrix<K,n> Matrix;
    \n+
    449 typedef typename Matrix::size_type size_type;
    \n+
    450
    \n+
    \n+
    451 static size_type rowdim(const Matrix& /*A*/, size_type /*r*/)
    \n+
    452 {
    \n+
    453 return 1;
    \n+
    454 }
    \n+
    \n+
    455
    \n+
    \n+
    456 static size_type coldim(const Matrix& /*A*/, size_type /*r*/)
    \n+
    457 {
    \n+
    458 return 1;
    \n+
    459 }
    \n+
    \n+
    460
    \n+
    \n+
    461 static size_type rowdim(const Matrix& /*A*/)
    \n+
    462 {
    \n+
    463 return n;
    \n+
    464 }
    \n+
    \n+
    465
    \n+
    \n+
    466 static size_type coldim(const Matrix& /*A*/)
    \n+
    467 {
    \n+
    468 return n;
    \n+
    469 }
    \n+
    \n+
    470 };
    \n+
    \n+
    471
    \n+
    472 template<typename K, int n>
    \n+
    \n+\n+
    474 {
    \n+\n+
    476 typedef typename Matrix::size_type size_type;
    \n+
    477
    \n+
    \n+
    478 static size_type rowdim(const Matrix& /*A*/, size_type /*r*/)
    \n+
    479 {
    \n+
    480 return 1;
    \n+
    481 }
    \n+
    \n+
    482
    \n+
    \n+
    483 static size_type coldim(const Matrix& /*A*/, size_type /*r*/)
    \n+
    484 {
    \n+
    485 return 1;
    \n+
    486 }
    \n+
    \n+
    487
    \n+
    \n+
    488 static size_type rowdim(const Matrix& /*A*/)
    \n+
    489 {
    \n+
    490 return n;
    \n+
    491 }
    \n+
    \n+
    492
    \n+
    \n+
    493 static size_type coldim(const Matrix& /*A*/)
    \n+
    494 {
    \n+
    495 return n;
    \n+
    496 }
    \n+
    \n+
    497 };
    \n+
    \n+
    498
    \n+
    502 template<typename T>
    \n+
    \n+
    503 struct IsMatrix
    \n+
    504 {
    \n+
    505 enum {
    \n+
    509 value = false
    \n+
    510 };
    \n+
    511 };
    \n+
    \n+
    512
    \n+
    513 template<typename T>
    \n+
    \n+
    514 struct IsMatrix<DenseMatrix<T> >
    \n+
    515 {
    \n+
    516 enum {
    \n+
    520 value = true
    \n+
    521 };
    \n+
    522 };
    \n+
    \n+
    523
    \n+
    524
    \n+
    525 template<typename T, typename A>
    \n+
    \n+
    526 struct IsMatrix<BCRSMatrix<T,A> >
    \n+
    527 {
    \n+
    528 enum {
    \n+
    532 value = true
    \n+
    533 };
    \n+
    534 };
    \n+
    \n+
    535
    \n+
    536 template<typename T>
    \n+
    \n+\n+
    538 {
    \n+
    \n+
    539 bool operator()(const T* l, const T* r)
    \n+
    540 {
    \n+
    541 return *l < *r;
    \n+
    542 }
    \n+
    \n+
    543 };
    \n+
    \n+
    544
    \n+
    545}
    \n+
    546#endif
    \n+\n+
    This file implements a quadratic matrix of fixed size which is a multiple of the identity.
    \n+
    Col col
    Definition matrixmatrix.hh:351
    \n+
    Matrix & mat
    Definition matrixmatrix.hh:347
    \n+
    auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::value > *sfinae=nullptr)
    Get the number of nonzero fields in the matrix.
    Definition matrixutils.hh:119
    \n
    Definition allocator.hh:11
    \n-
    Definition solvertype.hh:16
    \n-
    @ value
    Whether this is a direct solver.
    Definition solvertype.hh:24
    \n-
    Definition solvertype.hh:30
    \n-
    @ value
    whether the solver internally uses column compressed storage
    Definition solvertype.hh:36
    \n+
    void printGlobalSparseMatrix(const M &mat, C &ooc, std::ostream &os)
    Definition matrixutils.hh:154
    \n+
    Definition matrixutils.hh:211
    \n+
    static auto coldim(const M &A)
    Definition matrixutils.hh:219
    \n+
    static auto rowdim(const M &A)
    Definition matrixutils.hh:214
    \n+
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n+
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n+
    row_type::ConstIterator ConstColIterator
    Const iterator to the entries of a row.
    Definition bcrsmatrix.hh:741
    \n+
    B block_type
    export the type representing the components
    Definition bcrsmatrix.hh:491
    \n+
    Iterator access to matrix rows
    Definition bcrsmatrix.hh:579
    \n+
    A Matrix class to support different block types.
    Definition multitypeblockmatrix.hh:46
    \n+
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    ConstIterator class for sequential access.
    Definition matrix.hh:404
    \n+
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n+
    A::size_type size_type
    Type for indices and sizes.
    Definition matrix.hh:577
    \n+
    RowIterator end()
    Get iterator to one beyond last row.
    Definition matrix.hh:620
    \n+
    RowIterator begin()
    Get iterator to first row.
    Definition matrix.hh:614
    \n+
    row_type::const_iterator ConstColIterator
    Const iterator for the entries of each row.
    Definition matrix.hh:589
    \n+
    T block_type
    Export the type representing the components.
    Definition matrix.hh:568
    \n+
    Definition matrixutils.hh:27
    \n+
    Check whether the a matrix has diagonal values on blocklevel recursion levels.
    Definition matrixutils.hh:48
    \n+
    static void check(const Matrix &mat)
    Check whether the a matrix has diagonal values on blocklevel recursion levels.
    Definition matrixutils.hh:53
    \n+
    static void check(const Matrix &mat)
    Definition matrixutils.hh:75
    \n+
    static void check(const Matrix &)
    Check whether the a matrix has diagonal values on blocklevel recursion levels.
    Definition matrixutils.hh:99
    \n+
    MultiTypeBlockMatrix< T1, Args... > Matrix
    Definition matrixutils.hh:93
    \n+
    static size_type rowdim(const Matrix< B, TA > &A, size_type i)
    Definition matrixutils.hh:232
    \n+
    static size_type coldim(const Matrix< B, TA > &A)
    Definition matrixutils.hh:250
    \n+
    static size_type rowdim(const Matrix< B, TA > &A)
    Definition matrixutils.hh:242
    \n+
    typename Matrix< B, TA >::size_type size_type
    Definition matrixutils.hh:230
    \n+
    static size_type coldim(const Matrix< B, TA > &A, size_type c)
    Definition matrixutils.hh:237
    \n+
    typename Matrix< B, TA >::block_type block_type
    Definition matrixutils.hh:229
    \n+
    BCRSMatrix< B, TA > Matrix
    Definition matrixutils.hh:263
    \n+
    static size_type coldim(const Matrix &A)
    Definition matrixutils.hh:311
    \n+
    Matrix::block_type block_type
    Definition matrixutils.hh:264
    \n+
    static size_type coldim(const Matrix &A, size_type c)
    Definition matrixutils.hh:276
    \n+
    Matrix::size_type size_type
    Definition matrixutils.hh:265
    \n+
    static size_type rowdim(const Matrix &A, size_type i)
    Definition matrixutils.hh:267
    \n+
    static size_type rowdim(const Matrix &A)
    Definition matrixutils.hh:304
    \n+
    static size_type coldim(const Matrix &A)
    Definition matrixutils.hh:359
    \n+
    static size_type rowdim(const Matrix &, size_type)
    Definition matrixutils.hh:345
    \n+
    static size_type rowdim(const Matrix &A)
    Definition matrixutils.hh:355
    \n+
    Matrix::size_type size_type
    Definition matrixutils.hh:343
    \n+
    BCRSMatrix< FieldMatrix< B, n, m >,TA > Matrix
    Definition matrixutils.hh:342
    \n+
    static size_type coldim(const Matrix &, size_type)
    Definition matrixutils.hh:350
    \n+
    static size_type rowdim(const Matrix &, size_type)
    Definition matrixutils.hh:370
    \n+
    static size_type coldim(const Matrix &)
    Definition matrixutils.hh:385
    \n+
    Matrix::size_type size_type
    Definition matrixutils.hh:368
    \n+
    FieldMatrix< K, n, m > Matrix
    Definition matrixutils.hh:367
    \n+
    static size_type coldim(const Matrix &, size_type)
    Definition matrixutils.hh:375
    \n+
    static size_type rowdim(const Matrix &)
    Definition matrixutils.hh:380
    \n+
    static size_type coldim(const MatrixType &A)
    Definition matrixutils.hh:412
    \n+
    static size_type rowdim(const MatrixType &A)
    Definition matrixutils.hh:407
    \n+
    static size_type rowdim(const MatrixType &, size_type)
    Definition matrixutils.hh:397
    \n+
    MatrixType::size_type size_type
    Definition matrixutils.hh:395
    \n+
    static size_type coldim(const MatrixType &, size_type)
    Definition matrixutils.hh:402
    \n+
    Dune::DynamicMatrix< T > MatrixType
    Definition matrixutils.hh:394
    \n+
    static size_type coldim(const ThisMatrix &A)
    Definition matrixutils.hh:439
    \n+
    static size_type rowdim(const ThisMatrix &A)
    Definition matrixutils.hh:434
    \n+
    Matrix< FieldMatrix< K, n, m >, TA > ThisMatrix
    Definition matrixutils.hh:421
    \n+
    static size_type coldim(const ThisMatrix &, size_type)
    Definition matrixutils.hh:429
    \n+
    static size_type rowdim(const ThisMatrix &, size_type)
    Definition matrixutils.hh:424
    \n+
    ThisMatrix::size_type size_type
    Definition matrixutils.hh:422
    \n+
    static size_type coldim(const Matrix &, size_type)
    Definition matrixutils.hh:456
    \n+
    Matrix::size_type size_type
    Definition matrixutils.hh:449
    \n+
    static size_type coldim(const Matrix &)
    Definition matrixutils.hh:466
    \n+
    static size_type rowdim(const Matrix &)
    Definition matrixutils.hh:461
    \n+
    DiagonalMatrix< K, n > Matrix
    Definition matrixutils.hh:448
    \n+
    static size_type rowdim(const Matrix &, size_type)
    Definition matrixutils.hh:451
    \n+
    static size_type coldim(const Matrix &)
    Definition matrixutils.hh:493
    \n+
    static size_type rowdim(const Matrix &, size_type)
    Definition matrixutils.hh:478
    \n+
    static size_type coldim(const Matrix &, size_type)
    Definition matrixutils.hh:483
    \n+
    Matrix::size_type size_type
    Definition matrixutils.hh:476
    \n+
    ScaledIdentityMatrix< K, n > Matrix
    Definition matrixutils.hh:475
    \n+
    static size_type rowdim(const Matrix &)
    Definition matrixutils.hh:488
    \n+
    Test whether a type is an ISTL Matrix.
    Definition matrixutils.hh:504
    \n+
    @ value
    True if T is an ISTL matrix.
    Definition matrixutils.hh:509
    \n+
    Definition matrixutils.hh:538
    \n+
    bool operator()(const T *l, const T *r)
    Definition matrixutils.hh:539
    \n+
    A multiple of the identity matrix of static size.
    Definition scaledidmatrix.hh:30
    \n+
    std::size_t size_type
    The type used for the index access and size operations.
    Definition scaledidmatrix.hh:43
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,53 +1,782 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-solvertype.hh\n+matrixutils.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_SOLVERTYPE_HH\n-6#define DUNE_ISTL_SOLVERTYPE_HH\n+5#ifndef DUNE_ISTL_MATRIXUTILS_HH\n+6#define DUNE_ISTL_MATRIXUTILS_HH\n 7\n-12namespace _\bD_\bu_\bn_\be\n-13{\n-14 template\n-_\b1_\b5 struct _\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n-16 {\n-17 enum\n-18 {\n-24 _\bv_\ba_\bl_\bu_\be =false\n-_\b2_\b5 };\n-26 };\n-27\n-28 template\n-_\b2_\b9 struct _\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd\n-30 {\n-31 enum\n-32 {\n-36 _\bv_\ba_\bl_\bu_\be = false\n-_\b3_\b7 };\n-38 };\n-39} // end namespace Dune\n-40#endif\n+8#include \n+9#include \n+10#include \n+11#include \n+12#include \n+13#include \n+14#include \n+15#include \n+16#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh>\n+17#include \"_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+18\n+19namespace _\bD_\bu_\bn_\be\n+20{\n+21\n+22#ifndef DOYXGEN\n+23 template\n+24 class BCRSMatrix;\n+25\n+26 template\n+_\b2_\b7 class _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx;\n+28\n+29 template\n+30 class _\bM_\ba_\bt_\br_\bi_\bx;\n+31#endif\n+32\n+46 template\n+_\b4_\b7 struct _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt\n+48 {\n+_\b5_\b3 static void _\bc_\bh_\be_\bc_\bk([[maybe_unused]] const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt)\n+54 {\n+55#ifdef DUNE_ISTL_WITH_CHECKING\n+56 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Row;\n+57 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Entry;\n+58 for(Row row = _\bm_\ba_\bt.begin(); row!=_\bm_\ba_\bt.end(); ++row) {\n+59 Entry diagonal = row->find(row.index());\n+60 if(diagonal==row->end())\n+61 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Missing diagonal value in row \"<_\b:_\b:_\bc_\bh_\be_\bc_\bk(m);\n+66 }\n+67 }\n+68#endif\n+69 }\n+70 };\n+71\n+72 template\n+_\b7_\b3 struct _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt<_\bM_\ba_\bt_\br_\bi_\bx,0,l>\n+74 {\n+_\b7_\b5 static void _\bc_\bh_\be_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& _\bm_\ba_\bt)\n+76 {\n+77 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br Row;\n+78 for(Row row = _\bm_\ba_\bt.begin(); row!=_\bm_\ba_\bt.end(); ++row) {\n+79 if(row->find(row.index())==row->end())\n+80 DUNE_THROW(_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"Missing diagonal value in row \"<\n+87 class MultiTypeBlockMatrix;\n+88\n+89 template\n+_\b9_\b0 struct _\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt<_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx,\n+91 blocklevel,l>\n+92 {\n+_\b9_\b3 typedef _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx _\bM_\ba_\bt_\br_\bi_\bx;\n+94\n+_\b9_\b9 static void _\bc_\bh_\be_\bc_\bk(const _\bM_\ba_\bt_\br_\bi_\bx& /* mat */)\n+100 {\n+101#ifdef DUNE_ISTL_WITH_CHECKING\n+102 // TODO Implement check\n+103#endif\n+104 }\n+105 };\n+106\n+118 template\n+_\b1_\b1_\b9 inline auto _\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(const M&,\n+120 [[maybe_unused]] typename std::enable_if_t::value>*\n+sfinae = nullptr)\n+121 {\n+122 return 1;\n+123 }\n+124\n+125 template\n+_\b1_\b2_\b6 inline auto _\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(const M& matrix,\n+127 [[maybe_unused]] typename std::enable_if_t::value>*\n+sfinae = nullptr)\n+128 {\n+129 typename M::size_type nonZeros = 0;\n+130 for(auto&& row : matrix)\n+131 for(auto&& entry : row)\n+132 nonZeros += _\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs(entry);\n+133 return nonZeros;\n+134 }\n+135\n+136 /*\n+137 template\n+138 struct ProcessOnFieldsOfMatrix\n+139 */\n+140\n+142 namespace\n+143 {\n+144 struct CompPair {\n+145 template\n+146 bool operator()(const std::pair& p1, const std::pair& p2) const\n+147 {\n+148 return p1.first\n+_\b1_\b5_\b4 void _\bp_\br_\bi_\bn_\bt_\bG_\bl_\bo_\bb_\ba_\bl_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx(const M& _\bm_\ba_\bt, C& ooc, std::ostream& os)\n+155 {\n+156 typedef typename C::ParallelIndexSet::const_iterator IIter;\n+157 typedef typename C::OwnerSet OwnerSet;\n+158 typedef typename C::ParallelIndexSet::GlobalIndex GlobalIndex;\n+159\n+160 GlobalIndex gmax=0;\n+161\n+162 for(IIter idx=ooc.indexSet().begin(), eidx=ooc.indexSet().end();\n+163 idx!=eidx; ++idx)\n+164 gmax=std::max(gmax,idx->global());\n+165\n+166 gmax=ooc.communicator().max(gmax);\n+167 ooc.buildGlobalLookup();\n+168\n+169 for(IIter idx=ooc.indexSet().begin(), eidx=ooc.indexSet().end();\n+170 idx!=eidx; ++idx) {\n+171 if(OwnerSet::contains(idx->local().attribute()))\n+172 {\n+173 typedef typename M::block_type Block;\n+174\n+175 std::set,CompPair> entries;\n+176\n+177 // sort rows\n+178 typedef typename M::ConstColIterator CIter;\n+179 for(CIter c=_\bm_\ba_\bt[idx->local()]._\bb_\be_\bg_\bi_\bn(), cend=_\bm_\ba_\bt[idx->local()]._\be_\bn_\bd();\n+180 c!=cend; ++c) {\n+181 const typename C::ParallelIndexSet::IndexPair* pair\n+182 =ooc.globalLookup().pair(c.index());\n+183 assert(pair);\n+184 entries.insert(std::make_pair(pair->global(), *c));\n+185 }\n+186\n+187 //wait until its the rows turn.\n+188 GlobalIndex rowidx = idx->global();\n+189 GlobalIndex cur=std::numeric_limits::max();\n+190 while(cur!=rowidx)\n+191 cur=ooc.communicator().min(rowidx);\n+192\n+193 // print rows\n+194 typedef typename std::set,CompPair>::iterator\n+SIter;\n+195 for(SIter s=entries.begin(), send=entries.end(); s!=send; ++s)\n+196 os<global()<<\" \"<first<<\" \"<second<::max();\n+205 while(cur!=ooc.communicator().min(cur)) ;\n+206 }\n+207\n+208 // Default implementation for scalar types\n+209 template\n+_\b2_\b1_\b0 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n+211 {\n+212 static_assert(IsNumber::value, \"MatrixDimension is not implemented for\n+this type!\");\n+213\n+_\b2_\b1_\b4 static auto _\br_\bo_\bw_\bd_\bi_\bm(const M& A)\n+215 {\n+216 return 1;\n+217 }\n+218\n+_\b2_\b1_\b9 static auto _\bc_\bo_\bl_\bd_\bi_\bm(const M& A)\n+220 {\n+221 return 1;\n+222 }\n+223 };\n+224\n+225 // Default implementation for scalar types\n+226 template\n+_\b2_\b2_\b7 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bM_\ba_\bt_\br_\bi_\bx >\n+228 {\n+_\b2_\b2_\b9 using _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be = typename _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+_\b2_\b3_\b0 using _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be = typename _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+231\n+_\b2_\b3_\b2 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>& A, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n+233 {\n+234 return _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(A[i][0]);\n+235 }\n+236\n+_\b2_\b3_\b7 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>& A, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be c)\n+238 {\n+239 return _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(A[0][c]);\n+240 }\n+241\n+_\b2_\b4_\b2 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b>& A)\n+243 {\n+244 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nn=0;\n+245 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i& A)\n+251 {\n+252 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nn=0;\n+253 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b2_\b6_\b1 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n+262 {\n+_\b2_\b6_\b3 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bT_\bA_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b2_\b6_\b4 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+_\b2_\b6_\b5 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+266\n+_\b2_\b6_\b7 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& A, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i)\n+268 {\n+269 const B* row = A.r[i].getptr();\n+270 if(row)\n+271 return _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm(*row);\n+272 else\n+273 return 0;\n+274 }\n+275\n+_\b2_\b7_\b6 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& A, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be c)\n+277 {\n+278 // find an entry in column c\n+279 if (A.nnz_ > 0)\n+280 {\n+281 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be k=0; k_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(A.a[k]);\n+284 }\n+285 }\n+286 }\n+287 else\n+288 {\n+289 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(a[k]);\n+296 }\n+297 }\n+298 }\n+299\n+300 // not found\n+301 return 0;\n+302 }\n+303\n+_\b3_\b0_\b4 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& A){\n+305 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be nn=0;\n+306 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i coldims(A.M(),\n+319 std::numeric_limits::max());\n+320\n+321 for (ConstRowIterator row=A.begin(); row!=A.end(); ++row)\n+322 for (ConstColIterator _\bc_\bo_\bl=row->begin(); _\bc_\bo_\bl!=row->end(); ++_\bc_\bo_\bl)\n+323 // only compute blocksizes we don't already have\n+324 if (coldims[_\bc_\bo_\bl.index()]==std::numeric_limits::max())\n+325 coldims[_\bc_\bo_\bl.index()] = _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be_\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm(*_\bc_\bo_\bl);\n+326\n+327 _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be sum = 0;\n+328 for (typename std::vector::iterator it=coldims.begin();\n+329 it!=coldims.end(); ++it)\n+330 // skip rows for which no coldim could be determined\n+331 if ((*it)>=0)\n+332 sum += *it;\n+333\n+334 return sum;\n+335 }\n+336 };\n+337\n+338\n+339 template\n+_\b3_\b4_\b0 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx ,TA> >\n+341 {\n+_\b3_\b4_\b2 typedef _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bB_\b,_\bn_\b,_\bm_\b> ,TA> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b3_\b4_\b3 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+344\n+_\b3_\b4_\b5 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*i*/)\n+346 {\n+347 return n;\n+348 }\n+349\n+_\b3_\b5_\b0 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*c*/)\n+351 {\n+352 return m;\n+353 }\n+354\n+_\b3_\b5_\b5 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& A) {\n+356 return A.N()*n;\n+357 }\n+358\n+_\b3_\b5_\b9 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm (const _\bM_\ba_\bt_\br_\bi_\bx& A) {\n+360 return A.M()*m;\n+361 }\n+362 };\n+363\n+364 template\n+_\b3_\b6_\b5 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx >\n+366 {\n+_\b3_\b6_\b7 typedef _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b,_\bm_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b3_\b6_\b8 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+369\n+_\b3_\b7_\b0 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n+371 {\n+372 return 1;\n+373 }\n+374\n+_\b3_\b7_\b5 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n+376 {\n+377 return 1;\n+378 }\n+379\n+_\b3_\b8_\b0 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n+381 {\n+382 return n;\n+383 }\n+384\n+_\b3_\b8_\b5 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n+386 {\n+387 return m;\n+388 }\n+389 };\n+390\n+391 template \n+_\b3_\b9_\b2 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bD_\bu_\bn_\be::DynamicMatrix >\n+393 {\n+_\b3_\b9_\b4 typedef Dune::DynamicMatrix _\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be;\n+_\b3_\b9_\b5 typedef typename MatrixType::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+396\n+_\b3_\b9_\b7 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n+398 {\n+399 return 1;\n+400 }\n+401\n+_\b4_\b0_\b2 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n+403 {\n+404 return 1;\n+405 }\n+406\n+_\b4_\b0_\b7 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be& A)\n+408 {\n+409 return A.N();\n+410 }\n+411\n+_\b4_\b1_\b2 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be& A)\n+413 {\n+414 return A.M();\n+415 }\n+416 };\n+417\n+418 template\n+_\b4_\b1_\b9 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bM_\ba_\bt_\br_\bi_\bx<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx, TA> >\n+420 {\n+_\b4_\b2_\b1 typedef _\bM_\ba_\bt_\br_\bi_\bx_\b<_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b,_\bm_\b>, TA> _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx;\n+_\b4_\b2_\b2 typedef typename _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+423\n+_\b4_\b2_\b4 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n+425 {\n+426 return n;\n+427 }\n+428\n+_\b4_\b2_\b9 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n+430 {\n+431 return m;\n+432 }\n+433\n+_\b4_\b3_\b4 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx& A)\n+435 {\n+436 return A.N()*n;\n+437 }\n+438\n+_\b4_\b3_\b9 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx& A)\n+440 {\n+441 return A.M()*m;\n+442 }\n+443 };\n+444\n+445 template\n+_\b4_\b4_\b6 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn >\n+447 {\n+_\b4_\b4_\b8 typedef DiagonalMatrix _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b4_\b4_\b9 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+450\n+_\b4_\b5_\b1 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n+452 {\n+453 return 1;\n+454 }\n+455\n+_\b4_\b5_\b6 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n+457 {\n+458 return 1;\n+459 }\n+460\n+_\b4_\b6_\b1 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n+462 {\n+463 return n;\n+464 }\n+465\n+_\b4_\b6_\b6 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n+467 {\n+468 return n;\n+469 }\n+470 };\n+471\n+472 template\n+_\b4_\b7_\b3 struct _\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn<_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx >\n+474 {\n+_\b4_\b7_\b5 typedef _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b> _\bM_\ba_\bt_\br_\bi_\bx;\n+_\b4_\b7_\b6 typedef typename _\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+477\n+_\b4_\b7_\b8 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n+479 {\n+480 return 1;\n+481 }\n+482\n+_\b4_\b8_\b3 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*r*/)\n+484 {\n+485 return 1;\n+486 }\n+487\n+_\b4_\b8_\b8 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\br_\bo_\bw_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n+489 {\n+490 return n;\n+491 }\n+492\n+_\b4_\b9_\b3 static _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be _\bc_\bo_\bl_\bd_\bi_\bm(const _\bM_\ba_\bt_\br_\bi_\bx& /*A*/)\n+494 {\n+495 return n;\n+496 }\n+497 };\n+498\n+502 template\n+_\b5_\b0_\b3 struct _\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx\n+504 {\n+505 enum {\n+509 _\bv_\ba_\bl_\bu_\be = false\n+_\b5_\b1_\b0 };\n+511 };\n+512\n+513 template\n+_\b5_\b1_\b4 struct _\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx >\n+515 {\n+516 enum {\n+520 _\bv_\ba_\bl_\bu_\be = true\n+_\b5_\b2_\b1 };\n+522 };\n+523\n+524\n+525 template\n+_\b5_\b2_\b6 struct _\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx >\n+527 {\n+528 enum {\n+532 _\bv_\ba_\bl_\bu_\be = true\n+_\b5_\b3_\b3 };\n+534 };\n+535\n+536 template\n+_\b5_\b3_\b7 struct _\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be\n+538 {\n+_\b5_\b3_\b9 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)(const T* l, const T* r)\n+540 {\n+541 return *l < *r;\n+542 }\n+543 };\n+544\n+545}\n+546#endif\n+_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n+_\bs_\bc_\ba_\bl_\be_\bd_\bi_\bd_\bm_\ba_\bt_\br_\bi_\bx_\b._\bh_\bh\n+This file implements a quadratic matrix of fixed size which is a multiple of\n+the identity.\n+_\bc_\bo_\bl\n+Col col\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+_\bm_\ba_\bt\n+Matrix & mat\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:347\n+_\bD_\bu_\bn_\be_\b:_\b:_\bc_\bo_\bu_\bn_\bt_\bN_\bo_\bn_\bZ_\be_\br_\bo_\bs\n+auto countNonZeros(const M &, typename std::enable_if_t< Dune::IsNumber< M >::\n+value > *sfinae=nullptr)\n+Get the number of nonzero fields in the matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:119\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bv_\ba_\bl_\bu_\be\n+_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bG_\bl_\bo_\bb_\ba_\bl_\bS_\bp_\ba_\br_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx\n+void printGlobalSparseMatrix(const M &mat, C &ooc, std::ostream &os)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:154\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:211\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static auto coldim(const M &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:219\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static auto rowdim(const M &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:214\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n+A sparse block matrix with compressed row storage.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+The type for the index access and the size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::ConstIterator ConstColIterator\n+Const iterator to the entries of a row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:741\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+B block_type\n+export the type representing the components\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:491\n+_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\be_\ba_\bl_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator access to matrix rows\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:579\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx\n+A Matrix class to support different block types.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn multitypeblockmatrix.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n+derive error class from the base class in common\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bI_\bm_\bp_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bB_\ba_\bs_\be_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator class for sequential access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:404\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+A::size_type size_type\n+Type for indices and sizes.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:577\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+RowIterator end()\n+Get iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:620\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+RowIterator begin()\n+Get iterator to first row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:614\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::const_iterator ConstColIterator\n+Const iterator for the entries of each row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:589\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+T block_type\n+Export the type representing the components.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:568\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt\n+Check whether the a matrix has diagonal values on blocklevel recursion levels.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b:_\b:_\bc_\bh_\be_\bc_\bk\n+static void check(const Matrix &mat)\n+Check whether the a matrix has diagonal values on blocklevel recursion levels.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\b0_\b,_\b _\bl_\b _\b>_\b:_\b:_\bc_\bh_\be_\bc_\bk\n+static void check(const Matrix &mat)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b,_\b _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b,\n+_\bl_\b _\b>_\b:_\b:_\bc_\bh_\be_\bc_\bk\n+static void check(const Matrix &)\n+Check whether the a matrix has diagonal values on blocklevel recursion levels.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bh_\be_\bc_\bk_\bI_\bf_\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bP_\br_\be_\bs_\be_\bn_\bt_\b<_\b _\bM_\bu_\bl_\bt_\bi_\bT_\by_\bp_\be_\bB_\bl_\bo_\bc_\bk_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b1_\b,_\b _\bA_\br_\bg_\bs_\b._\b._\b._\b _\b>_\b,_\b _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b,\n+_\bl_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+MultiTypeBlockMatrix< T1, Args... > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:93\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix< B, TA > &A, size_type i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:232\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix< B, TA > &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:250\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix< B, TA > &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:242\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+typename Matrix< B, TA >::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:230\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix< B, TA > &A, size_type c)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:237\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+typename Matrix< B, TA >::block_type block_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:229\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix< B, TA > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:263\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:311\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+Matrix::block_type block_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:264\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix &A, size_type c)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:276\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:265\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix &A, size_type i)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:267\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:304\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:359\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:345\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:355\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:343\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+BCRSMatrix< FieldMatrix< B, n, m >,TA > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:342\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bB_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:350\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:370\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:385\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:368\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+FieldMatrix< K, n, m > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:367\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:375\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:380\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const MatrixType &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:412\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const MatrixType &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:407\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const MatrixType &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:397\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+MatrixType::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:395\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const MatrixType &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:402\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bu_\bn_\be_\b:_\b:_\bD_\by_\bn_\ba_\bm_\bi_\bc_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bT_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bT_\by_\bp_\be\n+Dune::DynamicMatrix< T > MatrixType\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:394\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const ThisMatrix &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:439\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const ThisMatrix &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:434\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bT_\bh_\bi_\bs_\bM_\ba_\bt_\br_\bi_\bx\n+Matrix< FieldMatrix< K, n, m >, TA > ThisMatrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:421\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const ThisMatrix &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:429\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const ThisMatrix &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:424\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b,_\b _\bm_\b _\b>_\b,_\b _\bT_\bA_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+ThisMatrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:422\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:456\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:449\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:466\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:461\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+DiagonalMatrix< K, n > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:448\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bD_\bi_\ba_\bg_\bo_\bn_\ba_\bl_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:451\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:493\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:478\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bc_\bo_\bl_\bd_\bi_\bm\n+static size_type coldim(const Matrix &, size_type)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:483\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+Matrix::size_type size_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:476\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+ScaledIdentityMatrix< K, n > Matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:475\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bD_\bi_\bm_\be_\bn_\bs_\bi_\bo_\bn_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\br_\bo_\bw_\bd_\bi_\bm\n+static size_type rowdim(const Matrix &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:488\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx\n+Test whether a type is an ISTL Matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:504\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bv_\ba_\bl_\bu_\be\n @ value\n-Whether this is a direct solver.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:24\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:30\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bt_\bo_\br_\be_\bs_\bC_\bo_\bl_\bu_\bm_\bn_\bC_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd_\b:_\b:_\bv_\ba_\bl_\bu_\be\n-@ value\n-whether the solver internally uses column compressed storage\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:36\n+True if T is an ISTL matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:509\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:538\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bi_\bn_\bt_\be_\br_\bC_\bo_\bm_\bp_\ba_\br_\be_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b(_\b)\n+bool operator()(const T *l, const T *r)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:539\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx\n+A multiple of the identity matrix of static size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+std::size_t size_type\n+The type used for the index access and size operations.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:43\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00221.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00221.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: poweriteration.hh File Reference\n+dune-istl: ildl.hh File Reference\n \n \n \n \n \n \n \n@@ -65,55 +65,60 @@\n
    \n
    \n
    \n
    \n \n \n
    \n
    \n \n-
    poweriteration.hh File Reference
    \n+Namespaces |\n+Functions
    \n+
    ildl.hh File Reference
    \n
    \n
    \n-
    #include <cstddef>
    \n-#include <cmath>
    \n-#include <type_traits>
    \n-#include <iostream>
    \n-#include <limits>
    \n-#include <ios>
    \n-#include <iomanip>
    \n-#include <memory>
    \n-#include <string>
    \n-#include <dune/common/exceptions.hh>
    \n-#include <dune/istl/blocklevel.hh>
    \n-#include <dune/istl/operators.hh>
    \n-#include <dune/istl/solvercategory.hh>
    \n-#include <dune/istl/solvertype.hh>
    \n-#include <dune/istl/istlexception.hh>
    \n-#include <dune/istl/io.hh>
    \n-#include <dune/istl/solvers.hh>
    \n+\n+

    Incomplete LDL decomposition. \n+More...

    \n+
    #include <dune/common/scalarvectorview.hh>
    \n+#include <dune/common/scalarmatrixview.hh>
    \n+#include "ilu.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n-\n-\n-\n-\n-

    \n-Classes

    class  Dune::PowerIteration_Algorithms< BCRSMatrix, BlockVector >
     Iterative eigenvalue algorithms based on power iteration. More...
     
    \n \n \n \n+

    \n Namespaces

    namespace  Dune
     
    \n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n

    \n+Functions

    template<class K , int m, int n>
    static void Dune::bildl_subtractBCT (const FieldMatrix< K, m, n > &B, const FieldMatrix< K, m, n > &CT, FieldMatrix< K, m, n > &A)
     
    template<class K >
    static void Dune::bildl_subtractBCT (const K &B, const K &CT, K &A, typename std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)
     
    template<class Matrix >
    static void Dune::bildl_subtractBCT (const Matrix &B, const Matrix &CT, Matrix &A, typename std::enable_if_t<!Dune::IsNumber< Matrix >::value > *sfinae=nullptr)
     
    template<class Matrix >
    void Dune::bildl_decompose (Matrix &A)
     compute ILDL decomposition of a symmetric matrix A
     
    template<class Matrix , class X , class Y >
    void Dune::bildl_backsolve (const Matrix &A, X &v, const Y &d, bool isLowerTriangular=false)
     
    \n-
    \n+

    Detailed Description

    \n+

    Incomplete LDL decomposition.

    \n+
    Author
    Martin Nolte
    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,36 +1,44 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-poweriteration.hh File Reference\n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh>\n+_\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n+ildl.hh File Reference\n+Incomplete LDL decomposition. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n-C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b _\b>\n-\u00a0 Iterative eigenvalue algorithms based on power iteration. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n+template\n+static void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT (const _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, m, n > &B, const\n+ _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, m, n > &CT, _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx< K, m, n > &A)\n+\u00a0\n+template\n+static void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT (const K &B, const K &CT, K &A, typename\n+ std::enable_if_t< Dune::IsNumber< K >::value > *sfinae=nullptr)\n+\u00a0\n+template\n+static void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT (const _\bM_\ba_\bt_\br_\bi_\bx &B, const _\bM_\ba_\bt_\br_\bi_\bx &CT, _\bM_\ba_\bt_\br_\bi_\bx\n+ &A, typename std::enable_if_t::value >\n+ *sfinae=nullptr)\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bd_\be_\bc_\bo_\bm_\bp_\bo_\bs_\be (_\bM_\ba_\bt_\br_\bi_\bx &A)\n+\u00a0 compute ILDL decomposition of a symmetric matrix A\n+\u00a0\n+template\n+ void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bb_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be (const _\bM_\ba_\bt_\br_\bi_\bx &A, X &v, const Y &d, bool\n+ isLowerTriangular=false)\n+\u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Incomplete LDL decomposition.\n+ Author\n+ Martin Nolte\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00221_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00221_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: poweriteration.hh Source File\n+dune-istl: ildl.hh Source File\n \n \n \n \n \n \n \n@@ -70,875 +70,250 @@\n
    \n
    \n
    \n
    \n \n \n
    \n
    \n-
    poweriteration.hh
    \n+
    ildl.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n-
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n-
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_EIGENVALUE_POWERITERATION_HH
    \n-
    6#define DUNE_ISTL_EIGENVALUE_POWERITERATION_HH
    \n-
    7
    \n-
    8#include <cstddef> // provides std::size_t
    \n-
    9#include <cmath> // provides std::sqrt, std::abs
    \n-
    10
    \n-
    11#include <type_traits> // provides std::is_same
    \n-
    12#include <iostream> // provides std::cout, std::endl
    \n-
    13#include <limits> // provides std::numeric_limits
    \n-
    14#include <ios> // provides std::left, std::ios::left
    \n-
    15#include <iomanip> // provides std::setw, std::resetiosflags
    \n-
    16#include <memory> // provides std::unique_ptr
    \n-
    17#include <string> // provides std::string
    \n-
    18
    \n-
    19#include <dune/common/exceptions.hh> // provides DUNE_THROW(...)
    \n-
    20
    \n-
    21#include <dune/istl/blocklevel.hh> // provides Dune::blockLevel
    \n-
    22#include <dune/istl/operators.hh> // provides Dune::LinearOperator
    \n-
    23#include <dune/istl/solvercategory.hh> // provides Dune::SolverCategory::sequential
    \n-
    24#include <dune/istl/solvertype.hh> // provides Dune::IsDirectSolver
    \n-
    25#include <dune/istl/operators.hh> // provides Dune::MatrixAdapter
    \n-
    26#include <dune/istl/istlexception.hh> // provides Dune::ISTLError
    \n-
    27#include <dune/istl/io.hh> // provides Dune::printvector(...)
    \n-
    28#include <dune/istl/solvers.hh> // provides Dune::InverseOperatorResult
    \n-
    29
    \n-
    30namespace Dune
    \n-
    31{
    \n-
    32
    \n-
    37 namespace Impl {
    \n-
    45 template <class X, class Y = X>
    \n-
    46 class ScalingLinearOperator : public Dune::LinearOperator<X,Y>
    \n-
    47 {
    \n-
    48 public:
    \n-
    49 typedef X domain_type;
    \n-
    50 typedef Y range_type;
    \n-
    51 typedef typename X::field_type field_type;
    \n-
    52
    \n-
    53 ScalingLinearOperator (field_type immutable_scaling,
    \n-
    54 const field_type& mutable_scaling)
    \n-
    55 : immutable_scaling_(immutable_scaling),
    \n-
    56 mutable_scaling_(mutable_scaling)
    \n-
    57 {}
    \n-
    58
    \n-
    59 virtual void apply (const X& x, Y& y) const
    \n-
    60 {
    \n-
    61 y = x;
    \n-
    62 y *= immutable_scaling_*mutable_scaling_;
    \n-
    63 }
    \n-
    64
    \n-
    65 virtual void applyscaleadd (field_type alpha, const X& x, Y& y) const
    \n-
    66 {
    \n-
    67 X temp(x);
    \n-
    68 temp *= immutable_scaling_*mutable_scaling_;
    \n-
    69 y.axpy(alpha,temp);
    \n-
    70 }
    \n-
    71
    \n-\n-
    74 {
    \n-\n-
    76 }
    \n+
    3#ifndef DUNE_ISTL_ILDL_HH
    \n+
    4#define DUNE_ISTL_ILDL_HH
    \n+
    5
    \n+
    6#include <dune/common/scalarvectorview.hh>
    \n+
    7#include <dune/common/scalarmatrixview.hh>
    \n+
    8#include "ilu.hh"
    \n+
    9
    \n+
    17namespace Dune
    \n+
    18{
    \n+
    19
    \n+
    20 // bildl_subtractBCT
    \n+
    21 // -----------------
    \n+
    22
    \n+
    23 template< class K, int m, int n >
    \n+
    \n+\n+
    25 {
    \n+
    26 for( int i = 0; i < m; ++i )
    \n+
    27 {
    \n+
    28 for( int j = 0; j < n; ++j )
    \n+
    29 {
    \n+
    30 for( int k = 0; k < n; ++k )
    \n+
    31 A[ i ][ j ] -= B[ i ][ k ] * CT[ j ][ k ];
    \n+
    32 }
    \n+
    33 }
    \n+
    34 }
    \n+
    \n+
    35
    \n+
    36 template< class K >
    \n+
    \n+
    37 inline static void bildl_subtractBCT ( const K &B, const K &CT, K &A,
    \n+
    38 typename std::enable_if_t<Dune::IsNumber<K>::value>* sfinae = nullptr )
    \n+
    39 {
    \n+
    40 A -= B * CT;
    \n+
    41 }
    \n+
    \n+
    42
    \n+
    43 template< class Matrix >
    \n+
    \n+
    44 inline static void bildl_subtractBCT ( const Matrix &B, const Matrix &CT, Matrix &A,
    \n+
    45 typename std::enable_if_t<!Dune::IsNumber<Matrix>::value>* sfinae = nullptr )
    \n+
    46 {
    \n+
    47 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )
    \n+
    48 {
    \n+
    49 auto &&A_i = *i;
    \n+
    50 auto &&B_i = B[ i.index() ];
    \n+
    51 const auto ikend = B_i.end();
    \n+
    52 for( auto j = A_i.begin(), jend = A_i.end(); j != jend; ++j )
    \n+
    53 {
    \n+
    54 auto &&A_ij = *j;
    \n+
    55 auto &&CT_j = CT[ j.index() ];
    \n+
    56 const auto jkend = CT_j.end();
    \n+
    57 for( auto ik = B_i.begin(), jk = CT_j.begin(); (ik != ikend) && (jk != jkend); )
    \n+
    58 {
    \n+
    59 if( ik.index() == jk.index() )
    \n+
    60 {
    \n+
    61 bildl_subtractBCT( *ik, *jk, A_ij );
    \n+
    62 ++ik; ++jk;
    \n+
    63 }
    \n+
    64 else if( ik.index() < jk.index() )
    \n+
    65 ++ik;
    \n+
    66 else
    \n+
    67 ++jk;
    \n+
    68 }
    \n+
    69 }
    \n+
    70 }
    \n+
    71 }
    \n+
    \n+
    72
    \n+
    73
    \n+
    74
    \n+
    75 // bildl_decompose
    \n+
    76 // ---------------
    \n
    77
    \n-
    78 protected:
    \n-
    79 const field_type immutable_scaling_;
    \n-
    80 const field_type& mutable_scaling_;
    \n-
    81 };
    \n-
    82
    \n-
    83
    \n-
    92 template <class OP1, class OP2>
    \n-
    93 class LinearOperatorSum
    \n-
    94 : public Dune::LinearOperator<typename OP1::domain_type,
    \n-
    95 typename OP1::range_type>
    \n-
    96 {
    \n-
    97 public:
    \n-
    98 typedef typename OP1::domain_type domain_type;
    \n-
    99 typedef typename OP1::range_type range_type;
    \n-
    100 typedef typename domain_type::field_type field_type;
    \n-
    101
    \n-
    102 LinearOperatorSum (const OP1& op1, const OP2& op2)
    \n-
    103 : op1_(op1), op2_(op2)
    \n-
    104 {
    \n-
    105 static_assert(std::is_same<typename OP2::domain_type,domain_type>::value,
    \n-
    106 "Domain type of both operators doesn't match!");
    \n-
    107 static_assert(std::is_same<typename OP2::range_type,range_type>::value,
    \n-
    108 "Range type of both operators doesn't match!");
    \n-
    109 }
    \n-
    110
    \n-
    111 virtual void apply (const domain_type& x, range_type& y) const
    \n-
    112 {
    \n-
    113 op1_.apply(x,y);
    \n-
    114 op2_.applyscaleadd(1.0,x,y);
    \n-
    115 }
    \n-
    116
    \n-
    117 virtual void applyscaleadd (field_type alpha,
    \n-
    118 const domain_type& x, range_type& y) const
    \n-
    119 {
    \n-
    120 range_type temp(y);
    \n-
    121 op1_.apply(x,temp);
    \n-
    122 op2_.applyscaleadd(1.0,x,temp);
    \n-
    123 y.axpy(alpha,temp);
    \n-
    124 }
    \n-
    125
    \n-
    127 virtual SolverCategory::Category category() const
    \n-
    128 {
    \n-\n-
    130 }
    \n-
    131
    \n-
    132 protected:
    \n-
    133 const OP1& op1_;
    \n-
    134 const OP2& op2_;
    \n-
    135 };
    \n-
    136 } // end namespace Impl
    \n-
    137
    \n-
    174 template <typename BCRSMatrix, typename BlockVector>
    \n-
    \n-\n-
    176 {
    \n-
    177 protected:
    \n-
    178 // Type definitions for type of iteration operator (m_ - mu_*I)
    \n-\n-\n-
    181 typedef Impl::ScalingLinearOperator<BlockVector> ScalingOperator;
    \n-
    182 typedef Impl::LinearOperatorSum<MatrixOperator,ScalingOperator> OperatorSum;
    \n-
    183
    \n-
    184 public:
    \n-\n-
    187
    \n-\n-
    190
    \n-
    191 public:
    \n-
    \n-\n-
    207 const unsigned int nIterationsMax = 1000,
    \n-
    208 const unsigned int verbosity_level = 0)
    \n-
    209 : m_(m), nIterationsMax_(nIterationsMax),
    \n-
    210 verbosity_level_(verbosity_level),
    \n-
    211 mu_(0.0),
    \n-\n-
    213 scalingOperator_(-1.0,mu_),
    \n-\n-
    215 nIterations_(0),
    \n-
    216 title_(" PowerIteration_Algorithms: "),
    \n-
    217 blank_(title_.length(),' ')
    \n-
    218 {
    \n-
    219 // assert that BCRSMatrix type has blocklevel 2
    \n-
    220 static_assert
    \n-
    221 (blockLevel<BCRSMatrix>() == 2,
    \n-
    222 "Only BCRSMatrices with blocklevel 2 are supported.");
    \n-
    223
    \n-
    224 // assert that BCRSMatrix type has square blocks
    \n-
    225 static_assert
    \n-
    226 (BCRSMatrix::block_type::rows == BCRSMatrix::block_type::cols,
    \n-
    227 "Only BCRSMatrices with square blocks are supported.");
    \n-
    228
    \n-
    229 // assert that m_ is square
    \n-
    230 const int nrows = m_.M() * BCRSMatrix::block_type::rows;
    \n-
    231 const int ncols = m_.N() * BCRSMatrix::block_type::cols;
    \n-
    232 if (nrows != ncols)
    \n-
    233 DUNE_THROW(Dune::ISTLError,"Matrix is not square ("
    \n-
    234 << nrows << "x" << ncols << ").");
    \n-
    235 }
    \n-
    \n-
    236
    \n-\n-
    241
    \n-\n-\n-
    247
    \n-
    \n-
    260 inline void applyPowerIteration (const Real& epsilon,
    \n-
    261 BlockVector& x, Real& lambda) const
    \n-
    262 {
    \n-
    263 // print verbosity information
    \n-
    264 if (verbosity_level_ > 0)
    \n-
    265 std::cout << title_
    \n-
    266 << "Performing power iteration approximating "
    \n-
    267 << "the dominant eigenvalue." << std::endl;
    \n-
    268
    \n-
    269 // allocate memory for auxiliary variables
    \n-
    270 BlockVector y(x);
    \n-
    271 BlockVector temp(x);
    \n-
    272
    \n-
    273 // perform power iteration
    \n-
    274 x *= (1.0 / x.two_norm());
    \n-
    275 m_.mv(x,y);
    \n-
    276 Real r_norm = std::numeric_limits<Real>::max();
    \n-
    277 nIterations_ = 0;
    \n-
    278 while (r_norm > epsilon)
    \n-
    279 {
    \n-
    280 // update and check number of iterations
    \n-\n-
    282 DUNE_THROW(Dune::ISTLError,"Power iteration did not converge "
    \n-
    283 << "in " << nIterationsMax_ << " iterations "
    \n-
    284 << "(\u2551residual\u2551_2 = " << r_norm << ", epsilon = "
    \n-
    285 << epsilon << ").");
    \n-
    286
    \n-
    287 // do one iteration of the power iteration algorithm
    \n-
    288 // (use that y = m_ * x)
    \n-
    289 x = y;
    \n-
    290 x *= (1.0 / y.two_norm());
    \n-
    291
    \n-
    292 // get approximated eigenvalue lambda via the Rayleigh quotient
    \n-
    293 m_.mv(x,y);
    \n-
    294 lambda = x * y;
    \n-
    295
    \n-
    296 // get norm of residual (use that y = m_ * x)
    \n-
    297 temp = y;
    \n-
    298 temp.axpy(-lambda,x);
    \n-
    299 r_norm = temp.two_norm();
    \n-
    300
    \n-
    301 // print verbosity information
    \n-
    302 if (verbosity_level_ > 1)
    \n-
    303 std::cout << blank_ << std::left
    \n-
    304 << "iteration " << std::setw(3) << nIterations_
    \n-
    305 << " (\u2551residual\u2551_2 = " << std::setw(11) << r_norm
    \n-
    306 << "): \u03bb = " << lambda << std::endl
    \n-
    307 << std::resetiosflags(std::ios::left);
    \n-
    308 }
    \n-
    309
    \n-
    310 // print verbosity information
    \n-
    311 if (verbosity_level_ > 0)
    \n-
    312 {
    \n-
    313 std::cout << blank_ << "Result ("
    \n-
    314 << "#iterations = " << nIterations_ << ", "
    \n-
    315 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n-
    316 << "\u03bb = " << lambda << std::endl;
    \n-
    317 if (verbosity_level_ > 2)
    \n-
    318 {
    \n-
    319 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n-
    320 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n-
    321 }
    \n-
    322 }
    \n-
    323 }
    \n-
    \n-
    324
    \n-
    353 template <typename ISTLLinearSolver,
    \n-
    354 bool avoidLinSolverCrime = false>
    \n-
    \n-
    355 inline void applyInverseIteration (const Real& epsilon,
    \n-
    356 ISTLLinearSolver& solver,
    \n-
    357 BlockVector& x, Real& lambda) const
    \n-
    358 {
    \n-
    359 constexpr Real gamma = 0.0;
    \n-
    360 applyInverseIteration(gamma,epsilon,solver,x,lambda);
    \n-
    361 }
    \n-
    \n-
    362
    \n-
    392 template <typename ISTLLinearSolver,
    \n-
    393 bool avoidLinSolverCrime = false>
    \n-
    \n-
    394 inline void applyInverseIteration (const Real& gamma,
    \n-
    395 const Real& epsilon,
    \n-
    396 ISTLLinearSolver& solver,
    \n-
    397 BlockVector& x, Real& lambda) const
    \n-
    398 {
    \n-
    399 // print verbosity information
    \n-
    400 if (verbosity_level_ > 0)
    \n-
    401 {
    \n-
    402 std::cout << title_;
    \n-
    403 if (gamma == 0.0)
    \n-
    404 std::cout << "Performing inverse iteration approximating "
    \n-
    405 << "the least dominant eigenvalue." << std::endl;
    \n-
    406 else
    \n-
    407 std::cout << "Performing inverse iteration with shift "
    \n-
    408 << "gamma = " << gamma << " approximating the "
    \n-
    409 << "eigenvalue closest to gamma." << std::endl;
    \n-
    410 }
    \n-
    411
    \n-
    412 // initialize iteration operator,
    \n-
    413 // initialize iteration matrix when needed
    \n-
    414 updateShiftMu(gamma,solver);
    \n-
    415
    \n-
    416 // allocate memory for linear solver statistics
    \n-
    417 Dune::InverseOperatorResult solver_statistics;
    \n-
    418
    \n-
    419 // allocate memory for auxiliary variables
    \n-
    420 BlockVector y(x);
    \n-
    421 Real y_norm;
    \n-
    422 BlockVector temp(x);
    \n-
    423
    \n-
    424 // perform inverse iteration with shift
    \n-
    425 x *= (1.0 / x.two_norm());
    \n-
    426 Real r_norm = std::numeric_limits<Real>::max();
    \n-
    427 nIterations_ = 0;
    \n-
    428 while (r_norm > epsilon)
    \n-
    429 {
    \n-
    430 // update and check number of iterations
    \n-\n-
    432 DUNE_THROW(Dune::ISTLError,"Inverse iteration "
    \n-
    433 << (gamma != 0.0 ? "with shift " : "") << "did not "
    \n-
    434 << "converge in " << nIterationsMax_ << " iterations "
    \n-
    435 << "(\u2551residual\u2551_2 = " << r_norm << ", epsilon = "
    \n-
    436 << epsilon << ").");
    \n-
    437
    \n-
    438 // do one iteration of the inverse iteration with shift algorithm,
    \n-
    439 // part 1: solve (m_ - gamma*I) * y = x for y
    \n-
    440 // (protect x from being changed)
    \n-
    441 temp = x;
    \n-
    442 solver.apply(y,temp,solver_statistics);
    \n-
    443
    \n-
    444 // get norm of y
    \n-
    445 y_norm = y.two_norm();
    \n-
    446
    \n-
    447 // compile time switch between accuracy and efficiency
    \n-
    448 if (avoidLinSolverCrime)
    \n-
    449 {
    \n-
    450 // get approximated eigenvalue lambda via the Rayleigh quotient
    \n-
    451 // (use that x_new = y / y_norm)
    \n-
    452 m_.mv(y,temp);
    \n-
    453 lambda = (y * temp) / (y_norm * y_norm);
    \n-
    454
    \n-
    455 // get norm of residual
    \n-
    456 // (use that x_new = y / y_norm, additionally use that temp = m_ * y)
    \n-
    457 temp.axpy(-lambda,y);
    \n-
    458 r_norm = temp.two_norm() / y_norm;
    \n-
    459 }
    \n-
    460 else
    \n-
    461 {
    \n-
    462 // get approximated eigenvalue lambda via the Rayleigh quotient
    \n-
    463 // (use that x_new = y / y_norm and use that (m_ - gamma*I) * y = x)
    \n-
    464 lambda = gamma + (y * x) / (y_norm * y_norm);
    \n-
    465
    \n-
    466 // get norm of residual
    \n-
    467 // (use that x_new = y / y_norm and use that (m_ - gamma*I) * y = x)
    \n-
    468 temp = x; temp.axpy(gamma-lambda,y);
    \n-
    469 r_norm = temp.two_norm() / y_norm;
    \n-
    470 }
    \n-
    471
    \n-
    472 // do one iteration of the inverse iteration with shift algorithm,
    \n-
    473 // part 2: update x
    \n-
    474 x = y;
    \n-
    475 x *= (1.0 / y_norm);
    \n-
    476
    \n-
    477 // print verbosity information
    \n-
    478 if (verbosity_level_ > 1)
    \n-
    479 std::cout << blank_ << std::left
    \n-
    480 << "iteration " << std::setw(3) << nIterations_
    \n-
    481 << " (\u2551residual\u2551_2 = " << std::setw(11) << r_norm
    \n-
    482 << "): \u03bb = " << lambda << std::endl
    \n-
    483 << std::resetiosflags(std::ios::left);
    \n-
    484 }
    \n-
    485
    \n-
    486 // print verbosity information
    \n-
    487 if (verbosity_level_ > 0)
    \n-
    488 {
    \n-
    489 std::cout << blank_ << "Result ("
    \n-
    490 << "#iterations = " << nIterations_ << ", "
    \n-
    491 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n-
    492 << "\u03bb = " << lambda << std::endl;
    \n-
    493 if (verbosity_level_ > 2)
    \n-
    494 {
    \n-
    495 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n-
    496 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n-
    497 }
    \n-
    498 }
    \n-
    499 }
    \n-
    \n-
    500
    \n-
    531 template <typename ISTLLinearSolver,
    \n-
    532 bool avoidLinSolverCrime = false>
    \n-
    \n-
    533 inline void applyRayleighQuotientIteration (const Real& epsilon,
    \n-
    534 ISTLLinearSolver& solver,
    \n-
    535 BlockVector& x, Real& lambda) const
    \n-
    536 {
    \n-
    537 // print verbosity information
    \n-
    538 if (verbosity_level_ > 0)
    \n-
    539 std::cout << title_
    \n-
    540 << "Performing Rayleigh quotient iteration for "
    \n-
    541 << "estimated eigenvalue " << lambda << "." << std::endl;
    \n-
    542
    \n-
    543 // allocate memory for linear solver statistics
    \n-
    544 Dune::InverseOperatorResult solver_statistics;
    \n-
    545
    \n-
    546 // allocate memory for auxiliary variables
    \n-
    547 BlockVector y(x);
    \n-
    548 Real y_norm;
    \n-
    549 Real lambda_update;
    \n-
    550 BlockVector temp(x);
    \n-
    551
    \n-
    552 // perform Rayleigh quotient iteration
    \n-
    553 x *= (1.0 / x.two_norm());
    \n-
    554 Real r_norm = std::numeric_limits<Real>::max();
    \n-
    555 nIterations_ = 0;
    \n-
    556 while (r_norm > epsilon)
    \n-
    557 {
    \n-
    558 // update and check number of iterations
    \n-\n-
    560 DUNE_THROW(Dune::ISTLError,"Rayleigh quotient iteration did not "
    \n-
    561 << "converge in " << nIterationsMax_ << " iterations "
    \n-
    562 << "(\u2551residual\u2551_2 = " << r_norm << ", epsilon = "
    \n-
    563 << epsilon << ").");
    \n-
    564
    \n-
    565 // update iteration operator,
    \n-
    566 // update iteration matrix when needed
    \n-
    567 updateShiftMu(lambda,solver);
    \n-
    568
    \n-
    569 // do one iteration of the Rayleigh quotient iteration algorithm,
    \n-
    570 // part 1: solve (m_ - lambda*I) * y = x for y
    \n-
    571 // (protect x from being changed)
    \n-
    572 temp = x;
    \n-
    573 solver.apply(y,temp,solver_statistics);
    \n-
    574
    \n-
    575 // get norm of y
    \n-
    576 y_norm = y.two_norm();
    \n-
    577
    \n-
    578 // compile time switch between accuracy and efficiency
    \n-
    579 if (avoidLinSolverCrime)
    \n-
    580 {
    \n-
    581 // get approximated eigenvalue lambda via the Rayleigh quotient
    \n-
    582 // (use that x_new = y / y_norm)
    \n-
    583 m_.mv(y,temp);
    \n-
    584 lambda = (y * temp) / (y_norm * y_norm);
    \n-
    585
    \n-
    586 // get norm of residual
    \n-
    587 // (use that x_new = y / y_norm, additionally use that temp = m_ * y)
    \n-
    588 temp.axpy(-lambda,y);
    \n-
    589 r_norm = temp.two_norm() / y_norm;
    \n-
    590 }
    \n-
    591 else
    \n-
    592 {
    \n-
    593 // get approximated eigenvalue lambda via the Rayleigh quotient
    \n-
    594 // (use that x_new = y / y_norm and use that (m_ - lambda_old*I) * y = x)
    \n-
    595 lambda_update = (y * x) / (y_norm * y_norm);
    \n-
    596 lambda += lambda_update;
    \n-
    597
    \n-
    598 // get norm of residual
    \n-
    599 // (use that x_new = y / y_norm and use that (m_ - lambda_old*I) * y = x)
    \n-
    600 temp = x; temp.axpy(-lambda_update,y);
    \n-
    601 r_norm = temp.two_norm() / y_norm;
    \n-
    602 }
    \n-
    603
    \n-
    604 // do one iteration of the Rayleigh quotient iteration algorithm,
    \n-
    605 // part 2: update x
    \n-
    606 x = y;
    \n-
    607 x *= (1.0 / y_norm);
    \n-
    608
    \n-
    609 // print verbosity information
    \n-
    610 if (verbosity_level_ > 1)
    \n-
    611 std::cout << blank_ << std::left
    \n-
    612 << "iteration " << std::setw(3) << nIterations_
    \n-
    613 << " (\u2551residual\u2551_2 = " << std::setw(11) << r_norm
    \n-
    614 << "): \u03bb = " << lambda << std::endl
    \n-
    615 << std::resetiosflags(std::ios::left);
    \n-
    616 }
    \n-
    617
    \n-
    618 // print verbosity information
    \n-
    619 if (verbosity_level_ > 0)
    \n-
    620 {
    \n-
    621 std::cout << blank_ << "Result ("
    \n-
    622 << "#iterations = " << nIterations_ << ", "
    \n-
    623 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n-
    624 << "\u03bb = " << lambda << std::endl;
    \n-
    625 if (verbosity_level_ > 2)
    \n-
    626 {
    \n-
    627 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n-
    628 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n-
    629 }
    \n-
    630 }
    \n-
    631 }
    \n-
    \n-
    632
    \n-
    689 template <typename ISTLLinearSolver,
    \n-
    690 bool avoidLinSolverCrime = false>
    \n-
    \n-
    691 inline void applyTLIMEIteration (const Real& gamma, const Real& eta,
    \n-
    692 const Real& epsilon,
    \n-
    693 ISTLLinearSolver& solver,
    \n-
    694 const Real& delta, const std::size_t& m,
    \n-
    695 bool& extrnl,
    \n-
    696 BlockVector& x, Real& lambda) const
    \n-
    697 {
    \n-
    698 // use same variable names as in [Szyld, 1988]
    \n-
    699 BlockVector& x_s = x;
    \n-
    700 Real& mu_s = lambda;
    \n-
    701
    \n-
    702 // print verbosity information
    \n-
    703 if (verbosity_level_ > 0)
    \n-
    704 std::cout << title_
    \n-
    705 << "Performing TLIME iteration for "
    \n-
    706 << "estimated eigenvalue in the "
    \n-
    707 << "interval (" << gamma - eta << ","
    \n-
    708 << gamma + eta << ")." << std::endl;
    \n-
    709
    \n-
    710 // allocate memory for linear solver statistics
    \n-
    711 Dune::InverseOperatorResult solver_statistics;
    \n-
    712
    \n-
    713 // allocate memory for auxiliary variables
    \n-
    714 bool doRQI;
    \n-
    715 Real mu;
    \n-
    716 BlockVector y(x_s);
    \n-
    717 Real omega;
    \n-
    718 Real mu_s_old;
    \n-
    719 Real mu_s_update;
    \n-
    720 BlockVector temp(x_s);
    \n-
    721 Real q_norm, r_norm;
    \n-
    722
    \n-
    723 // perform TLIME iteration
    \n-
    724 x_s *= (1.0 / x_s.two_norm());
    \n-
    725 extrnl = true;
    \n-
    726 doRQI = false;
    \n-
    727 r_norm = std::numeric_limits<Real>::max();
    \n-
    728 nIterations_ = 0;
    \n-
    729 while (r_norm > epsilon)
    \n-
    730 {
    \n-
    731 // update and check number of iterations
    \n-\n-
    733 DUNE_THROW(Dune::ISTLError,"TLIME iteration did not "
    \n-
    734 << "converge in " << nIterationsMax_
    \n-
    735 << " iterations (\u2551residual\u2551_2 = " << r_norm
    \n-
    736 << ", epsilon = " << epsilon << ").");
    \n-
    737
    \n-
    738 // set shift for next iteration according to inverse iteration
    \n-
    739 // with shift (II) resp. Rayleigh quotient iteration (RQI)
    \n-
    740 if (doRQI)
    \n-
    741 mu = mu_s;
    \n-
    742 else
    \n-
    743 mu = gamma;
    \n-
    744
    \n-
    745 // update II/RQI iteration operator,
    \n-
    746 // update II/RQI iteration matrix when needed
    \n-
    747 updateShiftMu(mu,solver);
    \n-
    748
    \n-
    749 // do one iteration of the II/RQI algorithm,
    \n-
    750 // part 1: solve (m_ - mu*I) * y = x for y
    \n-
    751 temp = x_s;
    \n-
    752 solver.apply(y,temp,solver_statistics);
    \n-
    753
    \n-
    754 // do one iteration of the II/RQI algorithm,
    \n-
    755 // part 2: compute omega
    \n-
    756 omega = (1.0 / y.two_norm());
    \n-
    757
    \n-
    758 // backup the old Rayleigh quotient
    \n-
    759 mu_s_old = mu_s;
    \n-
    760
    \n-
    761 // compile time switch between accuracy and efficiency
    \n-
    762 if (avoidLinSolverCrime)
    \n-
    763 {
    \n-
    764 // update the Rayleigh quotient mu_s, i.e. the approximated eigenvalue
    \n-
    765 // (use that x_new = y * omega)
    \n-
    766 m_.mv(y,temp);
    \n-
    767 mu_s = (y * temp) * (omega * omega);
    \n-
    768
    \n-
    769 // get norm of "the residual with respect to the shift used by II",
    \n-
    770 // use normal representation of q
    \n-
    771 // (use that x_new = y * omega, use that temp = m_ * y)
    \n-
    772 temp.axpy(-gamma,y);
    \n-
    773 q_norm = temp.two_norm() * omega;
    \n-
    774
    \n-
    775 // get norm of "the residual with respect to the Rayleigh quotient"
    \n-
    776 r_norm = q_norm*q_norm - (gamma-mu_s)*(gamma-mu_s);
    \n-
    777 // prevent that truncation errors invalidate the norm
    \n-
    778 // (we don't want to calculate sqrt of a negative number)
    \n-
    779 if (r_norm >= 0)
    \n-
    780 {
    \n-
    781 // use relation between the norms of r and q for efficiency
    \n-
    782 r_norm = std::sqrt(r_norm);
    \n-
    783 }
    \n-
    784 else
    \n-
    785 {
    \n-
    786 // use relation between r and q
    \n-
    787 // (use that x_new = y * omega, use that temp = (m_ - gamma*I) * y = q / omega)
    \n-
    788 temp.axpy(gamma-mu_s,y);
    \n-
    789 r_norm = temp.two_norm() * omega;
    \n-
    790 }
    \n-
    791 }
    \n-
    792 else
    \n-
    793 {
    \n-
    794 // update the Rayleigh quotient mu_s, i.e. the approximated eigenvalue
    \n-
    795 if (!doRQI)
    \n-
    796 {
    \n-
    797 // (use that x_new = y * omega, additionally use that (m_ - gamma*I) * y = x_s)
    \n-
    798 mu_s = gamma + (y * x_s) * (omega * omega);
    \n-
    799 }
    \n-
    800 else
    \n-
    801 {
    \n-
    802 // (use that x_new = y * omega, additionally use that (m_ - mu_s_old*I) * y = x_s)
    \n-
    803 mu_s_update = (y * x_s) * (omega * omega);
    \n-
    804 mu_s += mu_s_update;
    \n-
    805 }
    \n-
    806
    \n-
    807 // get norm of "the residual with respect to the shift used by II"
    \n-
    808 if (!doRQI)
    \n-
    809 {
    \n-
    810 // use special representation of q in the II case
    \n-
    811 // (use that x_new = y * omega, additionally use that (m_ - gamma*I) * y = x_s)
    \n-
    812 q_norm = omega;
    \n-
    813 }
    \n-
    814 else
    \n-
    815 {
    \n-
    816 // use special representation of q in the RQI case
    \n-
    817 // (use that x_new = y * omega, additionally use that (m_ - mu_s_old*I) * y = x_s)
    \n-
    818 temp = x_s; temp.axpy(mu_s-gamma,y);
    \n-
    819 q_norm = temp.two_norm() * omega;
    \n-
    820 }
    \n-
    821
    \n-
    822 // get norm of "the residual with respect to the Rayleigh quotient"
    \n-
    823 // don't use efficient relation between the norms of r and q, as
    \n-
    824 // this relation seems to yield a less accurate r_norm in the case
    \n-
    825 // where linear solver crime is admitted
    \n-
    826 if (!doRQI)
    \n-
    827 {
    \n-
    828 // (use that x_new = y * omega and use that (m_ - gamma*I) * y = x_s)
    \n-
    829 temp = x_s; temp.axpy(gamma-lambda,y);
    \n-
    830 r_norm = temp.two_norm() * omega;
    \n-
    831 }
    \n-
    832 else
    \n-
    833 {
    \n-
    834 // (use that x_new = y * omega and use that (m_ - mu_s_old*I) * y = x_s)
    \n-
    835 temp = x_s; temp.axpy(-mu_s_update,y);
    \n-
    836 r_norm = temp.two_norm() * omega;
    \n-
    837 }
    \n-
    838 }
    \n-
    839
    \n-
    840 // do one iteration of the II/RQI algorithm,
    \n-
    841 // part 3: update x
    \n-
    842 x_s = y; x_s *= omega;
    \n-
    843
    \n-
    844 // // for relative residual norm mode, scale with mu_s^{-1}
    \n-
    845 // r_norm /= std::abs(mu_s);
    \n-
    846
    \n-
    847 // print verbosity information
    \n-
    848 if (verbosity_level_ > 1)
    \n-
    849 std::cout << blank_ << "iteration "
    \n-
    850 << std::left << std::setw(3) << nIterations_
    \n-
    851 << " (" << (doRQI ? "RQI," : "II, ")
    \n-
    852 << " " << (doRQI ? "\u2014>" : " ") << " "
    \n-
    853 << "\u2551r\u2551_2 = " << std::setw(11) << r_norm
    \n-
    854 << ", " << (doRQI ? " " : "\u2014>") << " "
    \n-
    855 << "\u2551q\u2551_2 = " << std::setw(11) << q_norm
    \n-
    856 << "): \u03bb = " << lambda << std::endl
    \n-
    857 << std::resetiosflags(std::ios::left);
    \n-
    858
    \n-
    859 // check if the eigenvalue closest to gamma lies in J
    \n-
    860 if (!doRQI && q_norm < eta)
    \n-
    861 {
    \n-
    862 // J is not free of eigenvalues
    \n-
    863 extrnl = false;
    \n-
    864
    \n-
    865 // by theory we know now that mu_s also lies in J
    \n-
    866 assert(std::abs(mu_s-gamma) < eta);
    \n-
    867
    \n-
    868 // switch to RQI
    \n-
    869 doRQI = true;
    \n-
    870 }
    \n-
    871
    \n-
    872 // revert to II if J is not free of eigenvalues but
    \n-
    873 // at some point mu_s falls back again outside J
    \n-
    874 if (!extrnl && doRQI && std::abs(mu_s-gamma) >= eta)
    \n-
    875 doRQI = false;
    \n-
    876
    \n-
    877 // if eigenvalue closest to gamma does not lie in J use RQI
    \n-
    878 // solely to accelerate the convergence to this eigenvalue
    \n-
    879 // when II has become stationary
    \n-
    880 if (extrnl && !doRQI)
    \n-
    881 {
    \n-
    882 // switch to RQI if the relative change of the Rayleigh
    \n-
    883 // quotient indicates that II has become stationary
    \n-
    884 if (nIterations_ >= m &&
    \n-
    885 std::abs(mu_s - mu_s_old) / std::abs(mu_s) < delta)
    \n-
    886 doRQI = true;
    \n-
    887 }
    \n-
    888 }
    \n-
    889
    \n-
    890 // // compute final residual and lambda again (paranoia....)
    \n-
    891 // m_.mv(x_s,temp);
    \n-
    892 // mu_s = x_s * temp;
    \n-
    893 // temp.axpy(-mu_s,x_s);
    \n-
    894 // r_norm = temp.two_norm();
    \n-
    895 // // r_norm /= std::abs(mu_s);
    \n-
    896
    \n-
    897 // print verbosity information
    \n-
    898 if (verbosity_level_ > 0)
    \n-
    899 {
    \n-
    900 if (extrnl)
    \n-
    901 std::cout << blank_ << "Interval "
    \n-
    902 << "(" << gamma - eta << "," << gamma + eta
    \n-
    903 << ") is free of eigenvalues, approximating "
    \n-
    904 << "the closest eigenvalue." << std::endl;
    \n-
    905 std::cout << blank_ << "Result ("
    \n-
    906 << "#iterations = " << nIterations_ << ", "
    \n-
    907 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n-
    908 << "\u03bb = " << lambda << std::endl;
    \n-
    909 if (verbosity_level_ > 2)
    \n-
    910 {
    \n-
    911 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n-
    912 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n-
    913 }
    \n-
    914 }
    \n-
    915 }
    \n-
    \n-
    916
    \n-
    \n-\n-
    926 {
    \n-
    927 // return iteration operator
    \n-
    928 return itOperator_;
    \n-
    929 }
    \n-
    \n-
    930
    \n-
    \n-
    945 inline const BCRSMatrix& getIterationMatrix () const
    \n-
    946 {
    \n-
    947 // create iteration matrix on demand
    \n-
    948 if (!itMatrix_)
    \n-
    949 itMatrix_ = std::make_unique<BCRSMatrix>(m_);
    \n-
    950
    \n-
    951 // return iteration matrix
    \n-
    952 return *itMatrix_;
    \n-
    953 }
    \n-
    \n-
    954
    \n-
    \n-
    959 inline unsigned int getIterationCount () const
    \n-
    960 {
    \n-
    961 if (nIterations_ == 0)
    \n-
    962 DUNE_THROW(Dune::ISTLError,"No algorithm applied, yet.");
    \n-
    963
    \n-
    964 return nIterations_;
    \n-
    965 }
    \n-
    \n-
    966
    \n-
    967 protected:
    \n-
    982 template <typename ISTLLinearSolver>
    \n-
    \n-
    983 inline void updateShiftMu (const Real& mu,
    \n-
    984 ISTLLinearSolver& solver) const
    \n-
    985 {
    \n-
    986 // do nothing if new shift equals the old one
    \n-
    987 if (mu == mu_) return;
    \n-
    988
    \n-
    989 // update shift mu_, i.e. update iteration operator
    \n-
    990 mu_ = mu;
    \n-
    991
    \n-
    992 // update iteration matrix when needed
    \n-
    993 if (itMatrix_)
    \n-
    994 {
    \n-
    995 // iterate over entries in iteration matrix diagonal
    \n-
    996 constexpr int rowBlockSize = BCRSMatrix::block_type::rows;
    \n-
    997 constexpr int colBlockSize = BCRSMatrix::block_type::cols;
    \n-
    998 for (typename BCRSMatrix::size_type i = 0;
    \n-
    999 i < itMatrix_->M()*rowBlockSize; ++i)
    \n-
    1000 {
    \n-
    1001 // access m_[i,i] where i is the flat index of a row/column
    \n-
    1002 const Real& m_entry = m_
    \n-
    1003 [i/rowBlockSize][i/colBlockSize][i%rowBlockSize][i%colBlockSize];
    \n-
    1004 // access *itMatrix[i,i] where i is the flat index of a row/column
    \n-
    1005 Real& entry = (*itMatrix_)
    \n-
    1006 [i/rowBlockSize][i/colBlockSize][i%rowBlockSize][i%colBlockSize];
    \n-
    1007 // change current entry in iteration matrix diagonal
    \n-
    1008 entry = m_entry - mu_;
    \n-
    1009 }
    \n-
    1010 // notify linear solver about change of the iteration matrix object
    \n-\n-
    1012 (solver,*itMatrix_);
    \n-
    1013 }
    \n-
    1014 }
    \n-
    \n-
    1015
    \n-
    1016 protected:
    \n-
    1017 // parameters related to iterative eigenvalue algorithms
    \n-\n-
    1019 const unsigned int nIterationsMax_;
    \n-
    1020
    \n-
    1021 // verbosity setting
    \n-
    1022 const unsigned int verbosity_level_;
    \n-
    1023
    \n-
    1024 // shift mu_ used by iteration operator/matrix (m_ - mu_*I)
    \n-
    1025 mutable Real mu_;
    \n-
    1026
    \n-
    1027 // iteration operator (m_ - mu_*I), passing shift mu_ by reference
    \n-\n-\n-\n-
    1031
    \n-
    1032 // iteration matrix (m_ - mu_*I), provided on demand when needed
    \n-
    1033 // (e.g. for preconditioning)
    \n-
    1034 mutable std::unique_ptr<BCRSMatrix> itMatrix_;
    \n-
    1035
    \n-
    1036 // memory for storing temporary variables (mutable as they shall
    \n-
    1037 // just be effectless auxiliary variables of the const apply*(...)
    \n-
    1038 // methods)
    \n-
    1039 mutable unsigned int nIterations_;
    \n-
    1040
    \n-
    1041 // constants for printing verbosity information
    \n-
    1042 const std::string title_;
    \n-
    1043 const std::string blank_;
    \n-
    1044 };
    \n-
    \n-
    1045
    \n-
    1048} // namespace Dune
    \n-
    1049
    \n-
    1050#endif // DUNE_ISTL_EIGENVALUE_POWERITERATION_HH
    \n-
    Some generic functions for pretty printing vectors and matrices.
    \n-
    Helper functions for determining the vector/matrix block level.
    \n-\n-\n-
    Implementations of the inverse operator interface.
    \n-
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n-
    Templates characterizing the type of a solver.
    \n-
    void printvector(std::ostream &s, const V &v, std::string title, std::string rowtext, int columns=1, int width=10, int precision=2)
    Print an ISTL vector.
    Definition io.hh:89
    \n+
    87 template< class Matrix >
    \n+
    \n+
    88 inline void bildl_decompose ( Matrix &A )
    \n+
    89 {
    \n+
    90 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )
    \n+
    91 {
    \n+
    92 auto &&A_i = *i;
    \n+
    93
    \n+
    94 auto ij = A_i.begin();
    \n+
    95 for( ; ij.index() < i.index(); ++ij )
    \n+
    96 {
    \n+
    97 auto &&A_ij = *ij;
    \n+
    98 auto &&A_j = A[ ij.index() ];
    \n+
    99
    \n+
    100 // store L_ij Dj in A_ij (note: for k < i: A_kj = L_kj)
    \n+
    101 // L_ij Dj = A_ij - \\sum_{k < j} (L_ik D_k) L_jk^T
    \n+
    102 auto ik = A_i.begin();
    \n+
    103 auto jk = A_j.begin();
    \n+
    104 while( (ik != ij) && (jk.index() < ij.index()) )
    \n+
    105 {
    \n+
    106 if( ik.index() == jk.index() )
    \n+
    107 {
    \n+
    108 bildl_subtractBCT(*ik, *jk, A_ij);
    \n+
    109 ++ik; ++jk;
    \n+
    110 }
    \n+
    111 else if( ik.index() < jk.index() )
    \n+
    112 ++ik;
    \n+
    113 else
    \n+
    114 ++jk;
    \n+
    115 }
    \n+
    116 }
    \n+
    117
    \n+
    118 if( ij.index() != i.index() )
    \n+
    119 DUNE_THROW( ISTLError, "diagonal entry missing" );
    \n+
    120
    \n+
    121 // update diagonal and multiply A_ij by D_j^{-1}
    \n+
    122 auto &&A_ii = *ij;
    \n+
    123 for( auto ik = A_i.begin(); ik != ij; ++ik )
    \n+
    124 {
    \n+
    125 auto &&A_ik = *ik;
    \n+
    126 const auto &A_k = A[ ik.index() ];
    \n+
    127
    \n+
    128 auto B = A_ik;
    \n+
    129 Impl::asMatrix(A_ik).rightmultiply( Impl::asMatrix(*A_k.find( ik.index() )) );
    \n+
    130 bildl_subtractBCT( B, A_ik, A_ii );
    \n+
    131 }
    \n+
    132 try
    \n+
    133 {
    \n+
    134 Impl::asMatrix(A_ii).invert();
    \n+
    135 }
    \n+
    136 catch( const Dune::FMatrixError &e )
    \n+
    137 {
    \n+
    138 DUNE_THROW( MatrixBlockError, "ILDL failed to invert matrix block A[" << i.index() << "][" << ij.index() << "]" << e.what(); th__ex.r = i.index(); th__ex.c = ij.index() );
    \n+
    139 }
    \n+
    140 }
    \n+
    141 }
    \n+
    \n+
    142
    \n+
    143
    \n+
    144
    \n+
    145 // bildl_backsolve
    \n+
    146 // ---------------
    \n+
    147
    \n+
    148 template< class Matrix, class X, class Y >
    \n+
    \n+
    149 inline void bildl_backsolve ( const Matrix &A, X &v, const Y &d, bool isLowerTriangular = false )
    \n+
    150 {
    \n+
    151 // solve L v = d, note: Lii = I
    \n+
    152 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )
    \n+
    153 {
    \n+
    154 const auto &A_i = *i;
    \n+
    155 v[ i.index() ] = d[ i.index() ];
    \n+
    156 for( auto ij = A_i.begin(); ij.index() < i.index(); ++ij )
    \n+
    157 {
    \n+
    158 auto&& vi = Impl::asVector( v[ i.index() ] );
    \n+
    159 Impl::asMatrix(*ij).mmv(Impl::asVector( v[ ij.index() ] ), vi);
    \n+
    160 }
    \n+
    161 }
    \n+
    162
    \n+
    163 // solve D w = v, note: diagonal stores Dii^{-1}
    \n+
    164 if( isLowerTriangular )
    \n+
    165 {
    \n+
    166 // The matrix is lower triangular, so the diagonal entry is the
    \n+
    167 // last one in each row.
    \n+
    168 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )
    \n+
    169 {
    \n+
    170 const auto &A_i = *i;
    \n+
    171 const auto ii = A_i.beforeEnd();
    \n+
    172 assert( ii.index() == i.index() );
    \n+
    173 // We need to be careful here: Directly using
    \n+
    174 // auto rhs = Impl::asVector(v[ i.index() ]);
    \n+
    175 // is not OK in case this is a proxy. Hence
    \n+
    176 // we first have to copy the value. Notice that
    \n+
    177 // this is still not OK, if the vector type itself returns
    \n+
    178 // proxy references.
    \n+
    179 auto rhsValue = v[ i.index() ];
    \n+
    180 auto&& rhs = Impl::asVector(rhsValue);
    \n+
    181 auto&& vi = Impl::asVector( v[ i.index() ] );
    \n+
    182 Impl::asMatrix(*ii).mv(rhs, vi);
    \n+
    183 }
    \n+
    184 }
    \n+
    185 else
    \n+
    186 {
    \n+
    187 // Without assumptions on the sparsity pattern we have to search
    \n+
    188 // for the diagonal entry in each row.
    \n+
    189 for( auto i = A.begin(), iend = A.end(); i != iend; ++i )
    \n+
    190 {
    \n+
    191 const auto &A_i = *i;
    \n+
    192 const auto ii = A_i.find( i.index() );
    \n+
    193 assert( ii.index() == i.index() );
    \n+
    194 // We need to be careful here: Directly using
    \n+
    195 // auto rhs = Impl::asVector(v[ i.index() ]);
    \n+
    196 // is not OK in case this is a proxy. Hence
    \n+
    197 // we first have to copy the value. Notice that
    \n+
    198 // this is still not OK, if the vector type itself returns
    \n+
    199 // proxy references.
    \n+
    200 auto rhsValue = v[ i.index() ];
    \n+
    201 auto&& rhs = Impl::asVector(rhsValue);
    \n+
    202 auto&& vi = Impl::asVector( v[ i.index() ] );
    \n+
    203 Impl::asMatrix(*ii).mv(rhs, vi);
    \n+
    204 }
    \n+
    205 }
    \n+
    206
    \n+
    207 // solve L^T v = w, note: only L is stored
    \n+
    208 // note: we perform the operation column-wise from right to left
    \n+
    209 for( auto i = A.beforeEnd(), iend = A.beforeBegin(); i != iend; --i )
    \n+
    210 {
    \n+
    211 const auto &A_i = *i;
    \n+
    212 for( auto ij = A_i.begin(); ij.index() < i.index(); ++ij )
    \n+
    213 {
    \n+
    214 auto&& vij = Impl::asVector( v[ ij.index() ] );
    \n+
    215 Impl::asMatrix(*ij).mmtv(Impl::asVector( v[ i.index() ] ), vij);
    \n+
    216 }
    \n+
    217 }
    \n+
    218 }
    \n+
    \n+
    219
    \n+
    220} // namespace Dune
    \n+
    221
    \n+
    222#endif // #ifndef DUNE_ISTL_ILDL_HH
    \n+
    The incomplete LU factorization kernels.
    \n
    Definition allocator.hh:11
    \n-
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    A::size_type size_type
    The type for the index access and the size.
    Definition bcrsmatrix.hh:500
    \n-
    size_type M() const
    number of columns (counted in blocks)
    Definition bcrsmatrix.hh:1978
    \n-
    void mv(const X &x, Y &y) const
    y = A x
    Definition bcrsmatrix.hh:1612
    \n-
    size_type N() const
    number of rows (counted in blocks)
    Definition bcrsmatrix.hh:1972
    \n-
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n-
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bvector.hh:401
    \n-
    Iterative eigenvalue algorithms based on power iteration.
    Definition poweriteration.hh:176
    \n-
    std::unique_ptr< BCRSMatrix > itMatrix_
    Definition poweriteration.hh:1034
    \n-
    PowerIteration_Algorithms(const PowerIteration_Algorithms &)=delete
    \n-
    Impl::ScalingLinearOperator< BlockVector > ScalingOperator
    Definition poweriteration.hh:181
    \n-
    const std::string blank_
    Definition poweriteration.hh:1043
    \n-
    Impl::LinearOperatorSum< MatrixOperator, ScalingOperator > OperatorSum
    Definition poweriteration.hh:182
    \n-
    Dune::MatrixAdapter< BCRSMatrix, BlockVector, BlockVector > MatrixOperator
    Definition poweriteration.hh:180
    \n-
    void applyInverseIteration(const Real &epsilon, ISTLLinearSolver &solver, BlockVector &x, Real &lambda) const
    Perform the inverse iteration algorithm to compute an approximation lambda of the least dominant (i....
    Definition poweriteration.hh:355
    \n-
    void applyTLIMEIteration(const Real &gamma, const Real &eta, const Real &epsilon, ISTLLinearSolver &solver, const Real &delta, const std::size_t &m, bool &extrnl, BlockVector &x, Real &lambda) const
    Perform the "two-level iterative method for eigenvalue calculations (TLIME)" iteration algorit...
    Definition poweriteration.hh:691
    \n-
    IterationOperator & getIterationOperator()
    Return the iteration operator (m_ - mu_*I).
    Definition poweriteration.hh:925
    \n-
    OperatorSum itOperator_
    Definition poweriteration.hh:1030
    \n-
    const BCRSMatrix & m_
    Definition poweriteration.hh:1018
    \n-
    PowerIteration_Algorithms(const BCRSMatrix &m, const unsigned int nIterationsMax=1000, const unsigned int verbosity_level=0)
    Construct from required parameters.
    Definition poweriteration.hh:206
    \n-
    const unsigned int nIterationsMax_
    Definition poweriteration.hh:1019
    \n-
    void applyPowerIteration(const Real &epsilon, BlockVector &x, Real &lambda) const
    Perform the power iteration algorithm to compute an approximation lambda of the dominant (i....
    Definition poweriteration.hh:260
    \n-
    OperatorSum IterationOperator
    Type of iteration operator (m_ - mu_*I)
    Definition poweriteration.hh:189
    \n-
    void applyRayleighQuotientIteration(const Real &epsilon, ISTLLinearSolver &solver, BlockVector &x, Real &lambda) const
    Perform the Rayleigh quotient iteration algorithm to compute an approximation lambda of an eigenvalue...
    Definition poweriteration.hh:533
    \n-
    void applyInverseIteration(const Real &gamma, const Real &epsilon, ISTLLinearSolver &solver, BlockVector &x, Real &lambda) const
    Perform the inverse iteration with shift algorithm to compute an approximation lambda of the eigenval...
    Definition poweriteration.hh:394
    \n-
    const ScalingOperator scalingOperator_
    Definition poweriteration.hh:1029
    \n-
    void updateShiftMu(const Real &mu, ISTLLinearSolver &solver) const
    Update shift mu_, i.e. update iteration operator/matrix (m_ - mu_*I).
    Definition poweriteration.hh:983
    \n-
    PowerIteration_Algorithms & operator=(const PowerIteration_Algorithms &)=delete
    \n-
    unsigned int getIterationCount() const
    Return the number of iterations in last application of an algorithm.
    Definition poweriteration.hh:959
    \n-
    const MatrixOperator matrixOperator_
    Definition poweriteration.hh:1028
    \n-
    const BCRSMatrix & getIterationMatrix() const
    Return the iteration matrix (m_ - mu_*I), provided on demand when needed (e.g. for direct solvers or ...
    Definition poweriteration.hh:945
    \n-
    unsigned int nIterations_
    Definition poweriteration.hh:1039
    \n-
    const unsigned int verbosity_level_
    Definition poweriteration.hh:1022
    \n-
    const std::string title_
    Definition poweriteration.hh:1042
    \n-
    BlockVector::field_type Real
    Type of underlying field.
    Definition poweriteration.hh:186
    \n-
    Real mu_
    Definition poweriteration.hh:1025
    \n+
    void bildl_decompose(Matrix &A)
    compute ILDL decomposition of a symmetric matrix A
    Definition ildl.hh:88
    \n+
    void bildl_backsolve(const Matrix &A, X &v, const Y &d, bool isLowerTriangular=false)
    Definition ildl.hh:149
    \n+
    static void bildl_subtractBCT(const FieldMatrix< K, m, n > &B, const FieldMatrix< K, m, n > &CT, FieldMatrix< K, m, n > &A)
    Definition ildl.hh:24
    \n
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    A linear operator.
    Definition operators.hh:67
    \n-
    X::field_type field_type
    The field type of the operator.
    Definition operators.hh:74
    \n-
    virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const =0
    apply operator to x, scale and add:
    \n-
    virtual SolverCategory::Category category() const =0
    Category of the linear operator (see SolverCategory::Category)
    \n-
    Y range_type
    The type of the range of the operator.
    Definition operators.hh:72
    \n-
    virtual void apply(const X &x, Y &y) const =0
    apply operator to x: The input vector is consistent and the output must also be consistent on the in...
    \n-
    X domain_type
    The type of the domain of the operator.
    Definition operators.hh:70
    \n-
    Adapter to turn a matrix into a linear operator.
    Definition operators.hh:137
    \n-
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n-
    static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)
    Definition solver.hh:524
    \n-
    Category
    Definition solvercategory.hh:23
    \n-
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n+
    Error when performing an operation on a matrix block.
    Definition istlexception.hh:52
    \n+
    A generic dynamic dense matrix.
    Definition matrix.hh:561
    \n+
    RowIterator beforeBegin()
    Definition matrix.hh:634
    \n+
    RowIterator beforeEnd()
    Definition matrix.hh:627
    \n+
    RowIterator end()
    Get iterator to one beyond last row.
    Definition matrix.hh:620
    \n+
    RowIterator begin()
    Get iterator to first row.
    Definition matrix.hh:614
    \n+
    Definition matrixutils.hh:27
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-utf-8\n+us-ascii\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,993 +1,266 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be\n-poweriteration.hh\n+ildl.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n-3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n-4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_EIGENVALUE_POWERITERATION_HH\n-6#define DUNE_ISTL_EIGENVALUE_POWERITERATION_HH\n-7\n-8#include // provides std::size_t\n-9#include // provides std::sqrt, std::abs\n-10\n-11#include // provides std::is_same\n-12#include // provides std::cout, std::endl\n-13#include // provides std::numeric_limits\n-14#include // provides std::left, std::ios::left\n-15#include // provides std::setw, std::resetiosflags\n-16#include // provides std::unique_ptr\n-17#include // provides std::string\n-18\n-19#include // provides DUNE_THROW(...)\n-20\n-21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh> // provides Dune::blockLevel\n-22#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh> // provides Dune::LinearOperator\n-23#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh> // provides Dune::SolverCategory::\n-sequential\n-24#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh> // provides Dune::IsDirectSolver\n-25#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh> // provides Dune::MatrixAdapter\n-26#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh> // provides Dune::ISTLError\n-27#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh> // provides Dune::printvector(...)\n-28#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh> // provides Dune::InverseOperatorResult\n-29\n-30namespace _\bD_\bu_\bn_\be\n-31{\n-32\n-37 namespace Impl {\n-45 template \n-46 class ScalingLinearOperator : public _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-47 {\n-48 public:\n-49 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n-50 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n-51 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n-52\n-53 ScalingLinearOperator (field_type immutable_scaling,\n-54 const field_type& mutable_scaling)\n-55 : immutable_scaling_(immutable_scaling),\n-56 mutable_scaling_(mutable_scaling)\n-57 {}\n-58\n-59 virtual void _\ba_\bp_\bp_\bl_\by (const X& x, Y& y) const\n+3#ifndef DUNE_ISTL_ILDL_HH\n+4#define DUNE_ISTL_ILDL_HH\n+5\n+6#include \n+7#include \n+8#include \"_\bi_\bl_\bu_\b._\bh_\bh\"\n+9\n+17namespace _\bD_\bu_\bn_\be\n+18{\n+19\n+20 // bildl_subtractBCT\n+21 // -----------------\n+22\n+23 template< class K, int m, int n >\n+_\b2_\b4 inline static void _\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT ( const _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bm_\b,_\b _\bn_\b _\b> &B,\n+const _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bm_\b,_\b _\bn_\b _\b> &CT, _\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bm_\b,_\b _\bn_\b _\b> &A )\n+25 {\n+26 for( int i = 0; i < m; ++i )\n+27 {\n+28 for( int j = 0; j < n; ++j )\n+29 {\n+30 for( int k = 0; k < n; ++k )\n+31 A[ i ][ j ] -= B[ i ][ k ] * CT[ j ][ k ];\n+32 }\n+33 }\n+34 }\n+35\n+36 template< class K >\n+_\b3_\b7 inline static void _\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT ( const K &B, const K &CT, K &A,\n+38 typename std::enable_if_t::value>* sfinae = nullptr )\n+39 {\n+40 A -= B * CT;\n+41 }\n+42\n+43 template< class Matrix >\n+_\b4_\b4 inline static void _\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT ( const _\bM_\ba_\bt_\br_\bi_\bx &B, const _\bM_\ba_\bt_\br_\bi_\bx &CT,\n+_\bM_\ba_\bt_\br_\bi_\bx &A,\n+45 typename std::enable_if_t::value>* sfinae = nullptr\n+)\n+46 {\n+47 for( auto i = A._\bb_\be_\bg_\bi_\bn(), iend = A._\be_\bn_\bd(); i != iend; ++i )\n+48 {\n+49 auto &&A_i = *i;\n+50 auto &&B_i = B[ i.index() ];\n+51 const auto ikend = B_i._\be_\bn_\bd();\n+52 for( auto j = A_i.begin(), jend = A_i.end(); j != jend; ++j )\n+53 {\n+54 auto &&A_ij = *j;\n+55 auto &&CT_j = CT[ j.index() ];\n+56 const auto jkend = CT_j._\be_\bn_\bd();\n+57 for( auto ik = B_i.begin(), jk = CT_j.begin(); (ik != ikend) && (jk !=\n+jkend); )\n+58 {\n+59 if( ik.index() == jk.index() )\n 60 {\n-61 y = x;\n-62 y *= immutable_scaling_*mutable_scaling_;\n+61 _\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT( *ik, *jk, A_ij );\n+62 ++ik; ++jk;\n 63 }\n-64\n-65 virtual void _\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd (field_type alpha, const X& x, Y& y) const\n-66 {\n-67 X temp(x);\n-68 temp *= immutable_scaling_*mutable_scaling_;\n-69 y.axpy(alpha,temp);\n+64 else if( ik.index() < jk.index() )\n+65 ++ik;\n+66 else\n+67 ++jk;\n+68 }\n+69 }\n 70 }\n-71\n-73 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-74 {\n-75 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-76 }\n+71 }\n+72\n+73\n+74\n+75 // bildl_decompose\n+76 // ---------------\n 77\n-78 protected:\n-79 const field_type immutable_scaling_;\n-80 const field_type& mutable_scaling_;\n-81 };\n-82\n-83\n-92 template \n-93 class LinearOperatorSum\n-94 : public _\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+87 template< class Matrix >\n+_\b8_\b8 inline void _\bb_\bi_\bl_\bd_\bl_\b__\bd_\be_\bc_\bo_\bm_\bp_\bo_\bs_\be ( _\bM_\ba_\bt_\br_\bi_\bx &A )\n+89 {\n+90 for( auto i = A._\bb_\be_\bg_\bi_\bn(), iend = A._\be_\bn_\bd(); i != iend; ++i )\n+91 {\n+92 auto &&A_i = *i;\n+93\n+94 auto ij = A_i.begin();\n+95 for( ; ij.index() < i.index(); ++ij )\n 96 {\n-97 public:\n-98 typedef typename OP1::domain_type domain_type;\n-99 typedef typename OP1::range_type range_type;\n-100 typedef typename domain_type::field_type field_type;\n-101\n-102 LinearOperatorSum (const OP1& op1, const OP2& op2)\n-103 : op1_(op1), op2_(op2)\n-104 {\n-105 static_assert(std::is_same::value,\n-106 \"Domain type of both operators doesn't match!\");\n-107 static_assert(std::is_same::value,\n-108 \"Range type of both operators doesn't match!\");\n-109 }\n-110\n-111 virtual void _\ba_\bp_\bp_\bl_\by (const domain_type& x, range_type& y) const\n-112 {\n-113 op1_.apply(x,y);\n-114 op2_.applyscaleadd(1.0,x,y);\n+97 auto &&A_ij = *ij;\n+98 auto &&A_j = A[ ij.index() ];\n+99\n+100 // store L_ij Dj in A_ij (note: for k < i: A_kj = L_kj)\n+101 // L_ij Dj = A_ij - \\sum_{k < j} (L_ik D_k) L_jk^T\n+102 auto ik = A_i._\bb_\be_\bg_\bi_\bn();\n+103 auto jk = A_j.begin();\n+104 while( (ik != ij) && (jk.index() < ij.index()) )\n+105 {\n+106 if( ik.index() == jk.index() )\n+107 {\n+108 _\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT(*ik, *jk, A_ij);\n+109 ++ik; ++jk;\n+110 }\n+111 else if( ik.index() < jk.index() )\n+112 ++ik;\n+113 else\n+114 ++jk;\n 115 }\n-116\n-117 virtual void _\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd (field_type alpha,\n-118 const domain_type& x, range_type& y) const\n-119 {\n-120 range_type temp(y);\n-121 op1_.apply(x,temp);\n-122 op2_.applyscaleadd(1.0,x,temp);\n-123 y.axpy(alpha,temp);\n-124 }\n-125\n-127 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n-128 {\n-129 return _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl;\n-130 }\n-131\n-132 protected:\n-133 const OP1& op1_;\n-134 const OP2& op2_;\n-135 };\n-136 } // end namespace Impl\n-137\n-174 template \n-_\b1_\b7_\b5 class _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n-176 {\n-177 protected:\n-178 // Type definitions for type of iteration operator (m_ - mu_*I)\n-179 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br_\b<_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b,_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b>\n-_\b1_\b8_\b0 _\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n-_\b1_\b8_\b1 typedef Impl::ScalingLinearOperator _\bS_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n-_\b1_\b8_\b2 typedef Impl::LinearOperatorSum\n-_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bS_\bu_\bm;\n-183\n-184 public:\n-_\b1_\b8_\b6 typedef typename _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bR_\be_\ba_\bl;\n-187\n-_\b1_\b8_\b9 typedef _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bS_\bu_\bm _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bO_\bp_\be_\br_\ba_\bt_\bo_\br;\n-190\n-191 public:\n-_\b2_\b0_\b6 _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& m,\n-207 const unsigned int nIterationsMax = 1000,\n-208 const unsigned int verbosity_level = 0)\n-209 : _\bm_\b_(m), _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_(nIterationsMax),\n-210 _\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_(verbosity_level),\n-211 _\bm_\bu_\b_(0.0),\n-212 _\bm_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_(_\bm_\b_),\n-213 _\bs_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_(-1.0,_\bm_\bu_\b_),\n-214 _\bi_\bt_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_(_\bm_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_,_\bs_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_),\n-215 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_(0),\n-216 _\bt_\bi_\bt_\bl_\be_\b_(\" PowerIteration_Algorithms: \"),\n-217 _\bb_\bl_\ba_\bn_\bk_\b_(_\bt_\bi_\bt_\bl_\be_\b_.length(),' ')\n-218 {\n-219 // assert that BCRSMatrix type has blocklevel 2\n-220 static_assert\n-221 (blockLevel() == 2,\n-222 \"Only BCRSMatrices with blocklevel 2 are supported.\");\n-223\n-224 // assert that BCRSMatrix type has square blocks\n-225 static_assert\n-226 (BCRSMatrix::block_type::rows == BCRSMatrix::block_type::cols,\n-227 \"Only BCRSMatrices with square blocks are supported.\");\n-228\n-229 // assert that m_ is square\n-230 const int nrows = _\bm_\b_._\bM() * BCRSMatrix::block_type::rows;\n-231 const int ncols = _\bm_\b_._\bN() * BCRSMatrix::block_type::cols;\n-232 if (nrows != ncols)\n-233 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix is not square (\"\n-234 << nrows << \"x\" << ncols << \").\");\n-235 }\n-236\n-_\b2_\b4_\b0 _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs (const _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs&) = delete;\n-241\n-245 _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs&\n-_\b2_\b4_\b6 _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const _\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs&) = delete;\n-247\n-_\b2_\b6_\b0 inline void _\ba_\bp_\bp_\bl_\by_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn (const _\bR_\be_\ba_\bl& epsilon,\n-261 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n-262 {\n-263 // print verbosity information\n-264 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-265 std::cout << _\bt_\bi_\bt_\bl_\be_\b_\n-266 << \"Performing power iteration approximating \"\n-267 << \"the dominant eigenvalue.\" << std::endl;\n-268\n-269 // allocate memory for auxiliary variables\n-270 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br y(x);\n-271 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br temp(x);\n-272\n-273 // perform power iteration\n-274 x *= (1.0 / x.two_norm());\n-275 _\bm_\b_._\bm_\bv(x,y);\n-276 _\bR_\be_\ba_\bl r_norm = std::numeric_limits::max();\n-277 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = 0;\n-278 while (r_norm > epsilon)\n-279 {\n-280 // update and check number of iterations\n-281 if (++_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ > _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_)\n-282 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Power iteration did not converge \"\n-283 << \"in \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_ << \" iterations \"\n-284 << \"(\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \", epsilon = \"\n-285 << epsilon << \").\");\n-286\n-287 // do one iteration of the power iteration algorithm\n-288 // (use that y = m_ * x)\n-289 x = y;\n-290 x *= (1.0 / y.two_norm());\n-291\n-292 // get approximated eigenvalue lambda via the Rayleigh quotient\n-293 _\bm_\b_._\bm_\bv(x,y);\n-294 lambda = x * y;\n-295\n-296 // get norm of residual (use that y = m_ * x)\n-297 temp = y;\n-298 temp.axpy(-lambda,x);\n-299 r_norm = temp.two_norm();\n-300\n-301 // print verbosity information\n-302 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n-303 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << std::left\n-304 << \"iteration \" << std::setw(3) << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n-305 << \" (\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << std::setw(11) << r_norm\n-306 << \"): \u00ce\u00bb = \" << lambda << std::endl\n-307 << std::resetiosflags(std::ios::left);\n-308 }\n-309\n-310 // print verbosity information\n-311 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-312 {\n-313 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n-314 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n-315 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n-316 << \"\u00ce\u00bb = \" << lambda << std::endl;\n-317 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n-318 {\n-319 // print approximated eigenvector via DUNE-ISTL I/O methods\n-320 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n-321 }\n-322 }\n-323 }\n-324\n-353 template \n-_\b3_\b5_\b5 inline void _\ba_\bp_\bp_\bl_\by_\bI_\bn_\bv_\be_\br_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn (const _\bR_\be_\ba_\bl& epsilon,\n-356 ISTLLinearSolver& solver,\n-357 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n-358 {\n-359 constexpr _\bR_\be_\ba_\bl gamma = 0.0;\n-360 _\ba_\bp_\bp_\bl_\by_\bI_\bn_\bv_\be_\br_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn(gamma,epsilon,solver,x,lambda);\n-361 }\n-362\n-392 template \n-_\b3_\b9_\b4 inline void _\ba_\bp_\bp_\bl_\by_\bI_\bn_\bv_\be_\br_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn (const _\bR_\be_\ba_\bl& gamma,\n-395 const _\bR_\be_\ba_\bl& epsilon,\n-396 ISTLLinearSolver& solver,\n-397 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n-398 {\n-399 // print verbosity information\n-400 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-401 {\n-402 std::cout << _\bt_\bi_\bt_\bl_\be_\b_;\n-403 if (gamma == 0.0)\n-404 std::cout << \"Performing inverse iteration approximating \"\n-405 << \"the least dominant eigenvalue.\" << std::endl;\n-406 else\n-407 std::cout << \"Performing inverse iteration with shift \"\n-408 << \"gamma = \" << gamma << \" approximating the \"\n-409 << \"eigenvalue closest to gamma.\" << std::endl;\n-410 }\n-411\n-412 // initialize iteration operator,\n-413 // initialize iteration matrix when needed\n-414 _\bu_\bp_\bd_\ba_\bt_\be_\bS_\bh_\bi_\bf_\bt_\bM_\bu(gamma,solver);\n-415\n-416 // allocate memory for linear solver statistics\n-417 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt solver_statistics;\n-418\n-419 // allocate memory for auxiliary variables\n-420 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br y(x);\n-421 _\bR_\be_\ba_\bl y_norm;\n-422 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br temp(x);\n-423\n-424 // perform inverse iteration with shift\n-425 x *= (1.0 / x.two_norm());\n-426 _\bR_\be_\ba_\bl r_norm = std::numeric_limits::max();\n-427 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = 0;\n-428 while (r_norm > epsilon)\n-429 {\n-430 // update and check number of iterations\n-431 if (++_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ > _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_)\n-432 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Inverse iteration \"\n-433 << (gamma != 0.0 ? \"with shift \" : \"\") << \"did not \"\n-434 << \"converge in \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_ << \" iterations \"\n-435 << \"(\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \", epsilon = \"\n-436 << epsilon << \").\");\n-437\n-438 // do one iteration of the inverse iteration with shift algorithm,\n-439 // part 1: solve (m_ - gamma*I) * y = x for y\n-440 // (protect x from being changed)\n-441 temp = x;\n-442 solver.apply(y,temp,solver_statistics);\n-443\n-444 // get norm of y\n-445 y_norm = y.two_norm();\n-446\n-447 // compile time switch between accuracy and efficiency\n-448 if (avoidLinSolverCrime)\n-449 {\n-450 // get approximated eigenvalue lambda via the Rayleigh quotient\n-451 // (use that x_new = y / y_norm)\n-452 _\bm_\b_._\bm_\bv(y,temp);\n-453 lambda = (y * temp) / (y_norm * y_norm);\n-454\n-455 // get norm of residual\n-456 // (use that x_new = y / y_norm, additionally use that temp = m_ * y)\n-457 temp.axpy(-lambda,y);\n-458 r_norm = temp.two_norm() / y_norm;\n-459 }\n-460 else\n-461 {\n-462 // get approximated eigenvalue lambda via the Rayleigh quotient\n-463 // (use that x_new = y / y_norm and use that (m_ - gamma*I) * y = x)\n-464 lambda = gamma + (y * x) / (y_norm * y_norm);\n-465\n-466 // get norm of residual\n-467 // (use that x_new = y / y_norm and use that (m_ - gamma*I) * y = x)\n-468 temp = x; temp.axpy(gamma-lambda,y);\n-469 r_norm = temp.two_norm() / y_norm;\n-470 }\n-471\n-472 // do one iteration of the inverse iteration with shift algorithm,\n-473 // part 2: update x\n-474 x = y;\n-475 x *= (1.0 / y_norm);\n-476\n-477 // print verbosity information\n-478 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n-479 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << std::left\n-480 << \"iteration \" << std::setw(3) << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n-481 << \" (\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << std::setw(11) << r_norm\n-482 << \"): \u00ce\u00bb = \" << lambda << std::endl\n-483 << std::resetiosflags(std::ios::left);\n-484 }\n-485\n-486 // print verbosity information\n-487 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-488 {\n-489 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n-490 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n-491 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n-492 << \"\u00ce\u00bb = \" << lambda << std::endl;\n-493 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n-494 {\n-495 // print approximated eigenvector via DUNE-ISTL I/O methods\n-496 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n-497 }\n-498 }\n-499 }\n-500\n-531 template \n-_\b5_\b3_\b3 inline void _\ba_\bp_\bp_\bl_\by_\bR_\ba_\by_\bl_\be_\bi_\bg_\bh_\bQ_\bu_\bo_\bt_\bi_\be_\bn_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn (const _\bR_\be_\ba_\bl& epsilon,\n-534 ISTLLinearSolver& solver,\n-535 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n-536 {\n-537 // print verbosity information\n-538 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-539 std::cout << _\bt_\bi_\bt_\bl_\be_\b_\n-540 << \"Performing Rayleigh quotient iteration for \"\n-541 << \"estimated eigenvalue \" << lambda << \".\" << std::endl;\n-542\n-543 // allocate memory for linear solver statistics\n-544 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt solver_statistics;\n-545\n-546 // allocate memory for auxiliary variables\n-547 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br y(x);\n-548 _\bR_\be_\ba_\bl y_norm;\n-549 _\bR_\be_\ba_\bl lambda_update;\n-550 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br temp(x);\n-551\n-552 // perform Rayleigh quotient iteration\n-553 x *= (1.0 / x.two_norm());\n-554 _\bR_\be_\ba_\bl r_norm = std::numeric_limits::max();\n-555 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = 0;\n-556 while (r_norm > epsilon)\n-557 {\n-558 // update and check number of iterations\n-559 if (++_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ > _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_)\n-560 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Rayleigh quotient iteration did not \"\n-561 << \"converge in \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_ << \" iterations \"\n-562 << \"(\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \", epsilon = \"\n-563 << epsilon << \").\");\n-564\n-565 // update iteration operator,\n-566 // update iteration matrix when needed\n-567 _\bu_\bp_\bd_\ba_\bt_\be_\bS_\bh_\bi_\bf_\bt_\bM_\bu(lambda,solver);\n-568\n-569 // do one iteration of the Rayleigh quotient iteration algorithm,\n-570 // part 1: solve (m_ - lambda*I) * y = x for y\n-571 // (protect x from being changed)\n-572 temp = x;\n-573 solver.apply(y,temp,solver_statistics);\n-574\n-575 // get norm of y\n-576 y_norm = y.two_norm();\n-577\n-578 // compile time switch between accuracy and efficiency\n-579 if (avoidLinSolverCrime)\n-580 {\n-581 // get approximated eigenvalue lambda via the Rayleigh quotient\n-582 // (use that x_new = y / y_norm)\n-583 _\bm_\b_._\bm_\bv(y,temp);\n-584 lambda = (y * temp) / (y_norm * y_norm);\n-585\n-586 // get norm of residual\n-587 // (use that x_new = y / y_norm, additionally use that temp = m_ * y)\n-588 temp.axpy(-lambda,y);\n-589 r_norm = temp.two_norm() / y_norm;\n-590 }\n-591 else\n-592 {\n-593 // get approximated eigenvalue lambda via the Rayleigh quotient\n-594 // (use that x_new = y / y_norm and use that (m_ - lambda_old*I) * y = x)\n-595 lambda_update = (y * x) / (y_norm * y_norm);\n-596 lambda += lambda_update;\n-597\n-598 // get norm of residual\n-599 // (use that x_new = y / y_norm and use that (m_ - lambda_old*I) * y = x)\n-600 temp = x; temp.axpy(-lambda_update,y);\n-601 r_norm = temp.two_norm() / y_norm;\n-602 }\n-603\n-604 // do one iteration of the Rayleigh quotient iteration algorithm,\n-605 // part 2: update x\n-606 x = y;\n-607 x *= (1.0 / y_norm);\n-608\n-609 // print verbosity information\n-610 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n-611 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << std::left\n-612 << \"iteration \" << std::setw(3) << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n-613 << \" (\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << std::setw(11) << r_norm\n-614 << \"): \u00ce\u00bb = \" << lambda << std::endl\n-615 << std::resetiosflags(std::ios::left);\n-616 }\n-617\n-618 // print verbosity information\n-619 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-620 {\n-621 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n-622 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n-623 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n-624 << \"\u00ce\u00bb = \" << lambda << std::endl;\n-625 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n-626 {\n-627 // print approximated eigenvector via DUNE-ISTL I/O methods\n-628 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n-629 }\n-630 }\n-631 }\n-632\n-689 template \n-_\b6_\b9_\b1 inline void _\ba_\bp_\bp_\bl_\by_\bT_\bL_\bI_\bM_\bE_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn (const _\bR_\be_\ba_\bl& gamma, const _\bR_\be_\ba_\bl& eta,\n-692 const _\bR_\be_\ba_\bl& epsilon,\n-693 ISTLLinearSolver& solver,\n-694 const _\bR_\be_\ba_\bl& delta, const std::size_t& m,\n-695 bool& extrnl,\n-696 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n-697 {\n-698 // use same variable names as in [Szyld, 1988]\n-699 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x_s = x;\n-700 _\bR_\be_\ba_\bl& mu_s = lambda;\n-701\n-702 // print verbosity information\n-703 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-704 std::cout << _\bt_\bi_\bt_\bl_\be_\b_\n-705 << \"Performing TLIME iteration for \"\n-706 << \"estimated eigenvalue in the \"\n-707 << \"interval (\" << gamma - eta << \",\"\n-708 << gamma + eta << \").\" << std::endl;\n-709\n-710 // allocate memory for linear solver statistics\n-711 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt solver_statistics;\n-712\n-713 // allocate memory for auxiliary variables\n-714 bool doRQI;\n-715 _\bR_\be_\ba_\bl mu;\n-716 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br y(x_s);\n-717 _\bR_\be_\ba_\bl omega;\n-718 _\bR_\be_\ba_\bl mu_s_old;\n-719 _\bR_\be_\ba_\bl mu_s_update;\n-720 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br temp(x_s);\n-721 _\bR_\be_\ba_\bl q_norm, r_norm;\n-722\n-723 // perform TLIME iteration\n-724 x_s *= (1.0 / x_s.two_norm());\n-725 extrnl = true;\n-726 doRQI = false;\n-727 r_norm = std::numeric_limits::max();\n-728 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = 0;\n-729 while (r_norm > epsilon)\n-730 {\n-731 // update and check number of iterations\n-732 if (++_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ > _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_)\n-733 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"TLIME iteration did not \"\n-734 << \"converge in \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_\n-735 << \" iterations (\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm\n-736 << \", epsilon = \" << epsilon << \").\");\n-737\n-738 // set shift for next iteration according to inverse iteration\n-739 // with shift (II) resp. Rayleigh quotient iteration (RQI)\n-740 if (doRQI)\n-741 mu = mu_s;\n-742 else\n-743 mu = gamma;\n-744\n-745 // update II/RQI iteration operator,\n-746 // update II/RQI iteration matrix when needed\n-747 _\bu_\bp_\bd_\ba_\bt_\be_\bS_\bh_\bi_\bf_\bt_\bM_\bu(mu,solver);\n-748\n-749 // do one iteration of the II/RQI algorithm,\n-750 // part 1: solve (m_ - mu*I) * y = x for y\n-751 temp = x_s;\n-752 solver.apply(y,temp,solver_statistics);\n-753\n-754 // do one iteration of the II/RQI algorithm,\n-755 // part 2: compute omega\n-756 omega = (1.0 / y.two_norm());\n-757\n-758 // backup the old Rayleigh quotient\n-759 mu_s_old = mu_s;\n-760\n-761 // compile time switch between accuracy and efficiency\n-762 if (avoidLinSolverCrime)\n-763 {\n-764 // update the Rayleigh quotient mu_s, i.e. the approximated eigenvalue\n-765 // (use that x_new = y * omega)\n-766 _\bm_\b_._\bm_\bv(y,temp);\n-767 mu_s = (y * temp) * (omega * omega);\n-768\n-769 // get norm of \"the residual with respect to the shift used by II\",\n-770 // use normal representation of q\n-771 // (use that x_new = y * omega, use that temp = m_ * y)\n-772 temp.axpy(-gamma,y);\n-773 q_norm = temp.two_norm() * omega;\n-774\n-775 // get norm of \"the residual with respect to the Rayleigh quotient\"\n-776 r_norm = q_norm*q_norm - (gamma-mu_s)*(gamma-mu_s);\n-777 // prevent that truncation errors invalidate the norm\n-778 // (we don't want to calculate sqrt of a negative number)\n-779 if (r_norm >= 0)\n-780 {\n-781 // use relation between the norms of r and q for efficiency\n-782 r_norm = std::sqrt(r_norm);\n-783 }\n-784 else\n-785 {\n-786 // use relation between r and q\n-787 // (use that x_new = y * omega, use that temp = (m_ - gamma*I) * y = q /\n-omega)\n-788 temp.axpy(gamma-mu_s,y);\n-789 r_norm = temp.two_norm() * omega;\n-790 }\n-791 }\n-792 else\n-793 {\n-794 // update the Rayleigh quotient mu_s, i.e. the approximated eigenvalue\n-795 if (!doRQI)\n-796 {\n-797 // (use that x_new = y * omega, additionally use that (m_ - gamma*I) * y =\n-x_s)\n-798 mu_s = gamma + (y * x_s) * (omega * omega);\n-799 }\n-800 else\n-801 {\n-802 // (use that x_new = y * omega, additionally use that (m_ - mu_s_old*I) * y\n-= x_s)\n-803 mu_s_update = (y * x_s) * (omega * omega);\n-804 mu_s += mu_s_update;\n-805 }\n-806\n-807 // get norm of \"the residual with respect to the shift used by II\"\n-808 if (!doRQI)\n-809 {\n-810 // use special representation of q in the II case\n-811 // (use that x_new = y * omega, additionally use that (m_ - gamma*I) * y =\n-x_s)\n-812 q_norm = omega;\n-813 }\n-814 else\n-815 {\n-816 // use special representation of q in the RQI case\n-817 // (use that x_new = y * omega, additionally use that (m_ - mu_s_old*I) * y\n-= x_s)\n-818 temp = x_s; temp.axpy(mu_s-gamma,y);\n-819 q_norm = temp.two_norm() * omega;\n-820 }\n-821\n-822 // get norm of \"the residual with respect to the Rayleigh quotient\"\n-823 // don't use efficient relation between the norms of r and q, as\n-824 // this relation seems to yield a less accurate r_norm in the case\n-825 // where linear solver crime is admitted\n-826 if (!doRQI)\n-827 {\n-828 // (use that x_new = y * omega and use that (m_ - gamma*I) * y = x_s)\n-829 temp = x_s; temp.axpy(gamma-lambda,y);\n-830 r_norm = temp.two_norm() * omega;\n-831 }\n-832 else\n-833 {\n-834 // (use that x_new = y * omega and use that (m_ - mu_s_old*I) * y = x_s)\n-835 temp = x_s; temp.axpy(-mu_s_update,y);\n-836 r_norm = temp.two_norm() * omega;\n-837 }\n-838 }\n-839\n-840 // do one iteration of the II/RQI algorithm,\n-841 // part 3: update x\n-842 x_s = y; x_s *= omega;\n-843\n-844 // // for relative residual norm mode, scale with mu_s^{-1}\n-845 // r_norm /= std::abs(mu_s);\n-846\n-847 // print verbosity information\n-848 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n-849 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"iteration \"\n-850 << std::left << std::setw(3) << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n-851 << \" (\" << (doRQI ? \"RQI,\" : \"II, \")\n-852 << \" \" << (doRQI ? \"\u00e2\u0080\u0094>\" : \" \") << \" \"\n-853 << \"\u00e2\u0095\u0091r\u00e2\u0095\u0091_2 = \" << std::setw(11) << r_norm\n-854 << \", \" << (doRQI ? \" \" : \"\u00e2\u0080\u0094>\") << \" \"\n-855 << \"\u00e2\u0095\u0091q\u00e2\u0095\u0091_2 = \" << std::setw(11) << q_norm\n-856 << \"): \u00ce\u00bb = \" << lambda << std::endl\n-857 << std::resetiosflags(std::ios::left);\n-858\n-859 // check if the eigenvalue closest to gamma lies in J\n-860 if (!doRQI && q_norm < eta)\n-861 {\n-862 // J is not free of eigenvalues\n-863 extrnl = false;\n-864\n-865 // by theory we know now that mu_s also lies in J\n-866 assert(std::abs(mu_s-gamma) < eta);\n-867\n-868 // switch to RQI\n-869 doRQI = true;\n-870 }\n-871\n-872 // revert to II if J is not free of eigenvalues but\n-873 // at some point mu_s falls back again outside J\n-874 if (!extrnl && doRQI && std::abs(mu_s-gamma) >= eta)\n-875 doRQI = false;\n-876\n-877 // if eigenvalue closest to gamma does not lie in J use RQI\n-878 // solely to accelerate the convergence to this eigenvalue\n-879 // when II has become stationary\n-880 if (extrnl && !doRQI)\n-881 {\n-882 // switch to RQI if the relative change of the Rayleigh\n-883 // quotient indicates that II has become stationary\n-884 if (_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ >= m &&\n-885 std::abs(mu_s - mu_s_old) / std::abs(mu_s) < delta)\n-886 doRQI = true;\n-887 }\n-888 }\n-889\n-890 // // compute final residual and lambda again (paranoia....)\n-891 // m_.mv(x_s,temp);\n-892 // mu_s = x_s * temp;\n-893 // temp.axpy(-mu_s,x_s);\n-894 // r_norm = temp.two_norm();\n-895 // // r_norm /= std::abs(mu_s);\n-896\n-897 // print verbosity information\n-898 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-899 {\n-900 if (extrnl)\n-901 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Interval \"\n-902 << \"(\" << gamma - eta << \",\" << gamma + eta\n-903 << \") is free of eigenvalues, approximating \"\n-904 << \"the closest eigenvalue.\" << std::endl;\n-905 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n-906 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n-907 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n-908 << \"\u00ce\u00bb = \" << lambda << std::endl;\n-909 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n-910 {\n-911 // print approximated eigenvector via DUNE-ISTL I/O methods\n-912 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n-913 }\n-914 }\n-915 }\n-916\n-_\b9_\b2_\b5 inline _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bO_\bp_\be_\br_\ba_\bt_\bo_\br& _\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bO_\bp_\be_\br_\ba_\bt_\bo_\br ()\n-926 {\n-927 // return iteration operator\n-928 return _\bi_\bt_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n-929 }\n-930\n-_\b9_\b4_\b5 inline const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bM_\ba_\bt_\br_\bi_\bx () const\n-946 {\n-947 // create iteration matrix on demand\n-948 if (!_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_)\n-949 _\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_ = std::make_unique(_\bm_\b_);\n-950\n-951 // return iteration matrix\n-952 return *_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_;\n-953 }\n-954\n-_\b9_\b5_\b9 inline unsigned int _\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bC_\bo_\bu_\bn_\bt () const\n-960 {\n-961 if (_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ == 0)\n-962 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"No algorithm applied, yet.\");\n-963\n-964 return _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_;\n-965 }\n-966\n-967 protected:\n-982 template \n-_\b9_\b8_\b3 inline void _\bu_\bp_\bd_\ba_\bt_\be_\bS_\bh_\bi_\bf_\bt_\bM_\bu (const _\bR_\be_\ba_\bl& mu,\n-984 ISTLLinearSolver& solver) const\n-985 {\n-986 // do nothing if new shift equals the old one\n-987 if (mu == _\bm_\bu_\b_) return;\n-988\n-989 // update shift mu_, i.e. update iteration operator\n-990 _\bm_\bu_\b_ = mu;\n-991\n-992 // update iteration matrix when needed\n-993 if (_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_)\n-994 {\n-995 // iterate over entries in iteration matrix diagonal\n-996 constexpr int rowBlockSize = BCRSMatrix::block_type::rows;\n-997 constexpr int colBlockSize = BCRSMatrix::block_type::cols;\n-998 for (typename _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i = 0;\n-999 i < _\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_->M()*rowBlockSize; ++i)\n-1000 {\n-1001 // access m_[i,i] where i is the flat index of a row/column\n-1002 const _\bR_\be_\ba_\bl& m_entry = _\bm_\b_\n-1003 [i/rowBlockSize][i/colBlockSize][i%rowBlockSize][i%colBlockSize];\n-1004 // access *itMatrix[i,i] where i is the flat index of a row/column\n-1005 _\bR_\be_\ba_\bl& entry = (*itMatrix_)\n-1006 [i/rowBlockSize][i/colBlockSize][i%rowBlockSize][i%colBlockSize];\n-1007 // change current entry in iteration matrix diagonal\n-1008 entry = m_entry - _\bm_\bu_\b_;\n-1009 }\n-1010 // notify linear solver about change of the iteration matrix object\n-1011 _\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b,_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-1012 (solver,*_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_);\n-1013 }\n-1014 }\n-1015\n-1016 protected:\n-1017 // parameters related to iterative eigenvalue algorithms\n-_\b1_\b0_\b1_\b8 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bm_\b_;\n-_\b1_\b0_\b1_\b9 const unsigned int _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_;\n-1020\n-1021 // verbosity setting\n-_\b1_\b0_\b2_\b2 const unsigned int _\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_;\n-1023\n-1024 // shift mu_ used by iteration operator/matrix (m_ - mu_*I)\n-_\b1_\b0_\b2_\b5 mutable _\bR_\be_\ba_\bl _\bm_\bu_\b_;\n-1026\n-1027 // iteration operator (m_ - mu_*I), passing shift mu_ by reference\n-_\b1_\b0_\b2_\b8 const _\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br _\bm_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n-_\b1_\b0_\b2_\b9 const _\bS_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br _\bs_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n-_\b1_\b0_\b3_\b0 _\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bS_\bu_\bm _\bi_\bt_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_;\n-1031\n-1032 // iteration matrix (m_ - mu_*I), provided on demand when needed\n-1033 // (e.g. for preconditioning)\n-_\b1_\b0_\b3_\b4 mutable std::unique_ptr _\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_;\n-1035\n-1036 // memory for storing temporary variables (mutable as they shall\n-1037 // just be effectless auxiliary variables of the const apply*(...)\n-1038 // methods)\n-_\b1_\b0_\b3_\b9 mutable unsigned int _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_;\n-1040\n-1041 // constants for printing verbosity information\n-_\b1_\b0_\b4_\b2 const std::string _\bt_\bi_\bt_\bl_\be_\b_;\n-_\b1_\b0_\b4_\b3 const std::string _\bb_\bl_\ba_\bn_\bk_\b_;\n-1044 };\n-1045\n-1048} // namespace Dune\n-1049\n-1050#endif // DUNE_ISTL_EIGENVALUE_POWERITERATION_HH\n-_\bi_\bo_\b._\bh_\bh\n-Some generic functions for pretty printing vectors and matrices.\n-_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n-Helper functions for determining the vector/matrix block level.\n-_\bs_\bo_\bl_\bv_\be_\br_\bc_\ba_\bt_\be_\bg_\bo_\br_\by_\b._\bh_\bh\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bs_\bo_\bl_\bv_\be_\br_\bs_\b._\bh_\bh\n-Implementations of the inverse operator interface.\n-_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n-Define general, extensible interface for operators. The available\n-implementation wraps a matrix.\n-_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n-Templates characterizing the type of a solver.\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br\n-void printvector(std::ostream &s, const V &v, std::string title, std::string\n-rowtext, int columns=1, int width=10, int precision=2)\n-Print an ISTL vector.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:89\n+116 }\n+117\n+118 if( ij.index() != i.index() )\n+119 DUNE_THROW( _\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br, \"diagonal entry missing\" );\n+120\n+121 // update diagonal and multiply A_ij by D_j^{-1}\n+122 auto &&A_ii = *ij;\n+123 for( auto ik = A_i.begin(); ik != ij; ++ik )\n+124 {\n+125 auto &&A_ik = *ik;\n+126 const auto &A_k = A[ ik.index() ];\n+127\n+128 auto B = A_ik;\n+129 Impl::asMatrix(A_ik).rightmultiply( Impl::asMatrix(*A_k.find( ik.index() ))\n+);\n+130 _\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT( B, A_ik, A_ii );\n+131 }\n+132 try\n+133 {\n+134 Impl::asMatrix(A_ii).invert();\n+135 }\n+136 catch( const Dune::FMatrixError &e )\n+137 {\n+138 DUNE_THROW( _\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br, \"ILDL failed to invert matrix block A[\" <<\n+i.index() << \"][\" << ij.index() << \"]\" << e.what(); th__ex.r = i.index();\n+th__ex.c = ij.index() );\n+139 }\n+140 }\n+141 }\n+142\n+143\n+144\n+145 // bildl_backsolve\n+146 // ---------------\n+147\n+148 template< class Matrix, class X, class Y >\n+_\b1_\b4_\b9 inline void _\bb_\bi_\bl_\bd_\bl_\b__\bb_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be ( const _\bM_\ba_\bt_\br_\bi_\bx &A, X &v, const Y &d, bool\n+isLowerTriangular = false )\n+150 {\n+151 // solve L v = d, note: Lii = I\n+152 for( auto i = A._\bb_\be_\bg_\bi_\bn(), iend = A._\be_\bn_\bd(); i != iend; ++i )\n+153 {\n+154 const auto &A_i = *i;\n+155 v[ i.index() ] = d[ i.index() ];\n+156 for( auto ij = A_i.begin(); ij.index() < i.index(); ++ij )\n+157 {\n+158 auto&& vi = Impl::asVector( v[ i.index() ] );\n+159 Impl::asMatrix(*ij).mmv(Impl::asVector( v[ ij.index() ] ), vi);\n+160 }\n+161 }\n+162\n+163 // solve D w = v, note: diagonal stores Dii^{-1}\n+164 if( isLowerTriangular )\n+165 {\n+166 // The matrix is lower triangular, so the diagonal entry is the\n+167 // last one in each row.\n+168 for( auto i = A._\bb_\be_\bg_\bi_\bn(), iend = A._\be_\bn_\bd(); i != iend; ++i )\n+169 {\n+170 const auto &A_i = *i;\n+171 const auto ii = A_i.beforeEnd();\n+172 assert( ii.index() == i.index() );\n+173 // We need to be careful here: Directly using\n+174 // auto rhs = Impl::asVector(v[ i.index() ]);\n+175 // is not OK in case this is a proxy. Hence\n+176 // we first have to copy the value. Notice that\n+177 // this is still not OK, if the vector type itself returns\n+178 // proxy references.\n+179 auto rhsValue = v[ i.index() ];\n+180 auto&& rhs = Impl::asVector(rhsValue);\n+181 auto&& vi = Impl::asVector( v[ i.index() ] );\n+182 Impl::asMatrix(*ii).mv(rhs, vi);\n+183 }\n+184 }\n+185 else\n+186 {\n+187 // Without assumptions on the sparsity pattern we have to search\n+188 // for the diagonal entry in each row.\n+189 for( auto i = A._\bb_\be_\bg_\bi_\bn(), iend = A._\be_\bn_\bd(); i != iend; ++i )\n+190 {\n+191 const auto &A_i = *i;\n+192 const auto ii = A_i.find( i.index() );\n+193 assert( ii.index() == i.index() );\n+194 // We need to be careful here: Directly using\n+195 // auto rhs = Impl::asVector(v[ i.index() ]);\n+196 // is not OK in case this is a proxy. Hence\n+197 // we first have to copy the value. Notice that\n+198 // this is still not OK, if the vector type itself returns\n+199 // proxy references.\n+200 auto rhsValue = v[ i.index() ];\n+201 auto&& rhs = Impl::asVector(rhsValue);\n+202 auto&& vi = Impl::asVector( v[ i.index() ] );\n+203 Impl::asMatrix(*ii).mv(rhs, vi);\n+204 }\n+205 }\n+206\n+207 // solve L^T v = w, note: only L is stored\n+208 // note: we perform the operation column-wise from right to left\n+209 for( auto i = A._\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd(), iend = A._\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn(); i != iend; --i )\n+210 {\n+211 const auto &A_i = *i;\n+212 for( auto ij = A_i.begin(); ij.index() < i.index(); ++ij )\n+213 {\n+214 auto&& vij = Impl::asVector( v[ ij.index() ] );\n+215 Impl::asMatrix(*ij).mmtv(Impl::asVector( v[ i.index() ] ), vij);\n+216 }\n+217 }\n+218 }\n+219\n+220} // namespace Dune\n+221\n+222#endif // #ifndef DUNE_ISTL_ILDL_HH\n+_\bi_\bl_\bu_\b._\bh_\bh\n+The incomplete LU factorization kernels.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n-A sparse block matrix with compressed row storage.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-The type for the index access and the size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:500\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n-size_type M() const\n-number of columns (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1978\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n-void mv(const X &x, Y &y) const\n-y = A x\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1612\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n-size_type N() const\n-number of rows (counted in blocks)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:1972\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< B >::field_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:401\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n-Iterative eigenvalue algorithms based on power iteration.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:176\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bi_\bt_\bM_\ba_\bt_\br_\bi_\bx_\b_\n-std::unique_ptr< BCRSMatrix > itMatrix_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1034\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n-PowerIteration_Algorithms(const PowerIteration_Algorithms &)=delete\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bS_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Impl::ScalingLinearOperator< BlockVector > ScalingOperator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:181\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bb_\bl_\ba_\bn_\bk_\b_\n-const std::string blank_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1043\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bS_\bu_\bm\n-Impl::LinearOperatorSum< MatrixOperator, ScalingOperator > OperatorSum\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:182\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-Dune::MatrixAdapter< BCRSMatrix, BlockVector, BlockVector > MatrixOperator\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:180\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bI_\bn_\bv_\be_\br_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-void applyInverseIteration(const Real &epsilon, ISTLLinearSolver &solver,\n-BlockVector &x, Real &lambda) const\n-Perform the inverse iteration algorithm to compute an approximation lambda of\n-the least dominant (i....\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:355\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bT_\bL_\bI_\bM_\bE_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-void applyTLIMEIteration(const Real &gamma, const Real &eta, const Real\n-&epsilon, ISTLLinearSolver &solver, const Real &delta, const std::size_t &m,\n-bool &extrnl, BlockVector &x, Real &lambda) const\n-Perform the \"two-level iterative method for eigenvalue calculations (TLIME)\"\n-iteration algorit...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:691\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-IterationOperator & getIterationOperator()\n-Return the iteration operator (m_ - mu_*I).\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:925\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bi_\bt_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_\n-OperatorSum itOperator_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1030\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bm_\b_\n-const BCRSMatrix & m_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1018\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n-PowerIteration_Algorithms(const BCRSMatrix &m, const unsigned int\n-nIterationsMax=1000, const unsigned int verbosity_level=0)\n-Construct from required parameters.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:206\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_\n-const unsigned int nIterationsMax_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1019\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-void applyPowerIteration(const Real &epsilon, BlockVector &x, Real &lambda)\n-const\n-Perform the power iteration algorithm to compute an approximation lambda of the\n-dominant (i....\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:260\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-OperatorSum IterationOperator\n-Type of iteration operator (m_ - mu_*I)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:189\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bR_\ba_\by_\bl_\be_\bi_\bg_\bh_\bQ_\bu_\bo_\bt_\bi_\be_\bn_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-void applyRayleighQuotientIteration(const Real &epsilon, ISTLLinearSolver\n-&solver, BlockVector &x, Real &lambda) const\n-Perform the Rayleigh quotient iteration algorithm to compute an approximation\n-lambda of an eigenvalue...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:533\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bI_\bn_\bv_\be_\br_\bs_\be_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n-void applyInverseIteration(const Real &gamma, const Real &epsilon,\n-ISTLLinearSolver &solver, BlockVector &x, Real &lambda) const\n-Perform the inverse iteration with shift algorithm to compute an approximation\n-lambda of the eigenval...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:394\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bs_\bc_\ba_\bl_\bi_\bn_\bg_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_\n-const ScalingOperator scalingOperator_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1029\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bu_\bp_\bd_\ba_\bt_\be_\bS_\bh_\bi_\bf_\bt_\bM_\bu\n-void updateShiftMu(const Real &mu, ISTLLinearSolver &solver) const\n-Update shift mu_, i.e. update iteration operator/matrix (m_ - mu_*I).\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:983\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n-PowerIteration_Algorithms & operator=(const PowerIteration_Algorithms &)=delete\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bC_\bo_\bu_\bn_\bt\n-unsigned int getIterationCount() const\n-Return the number of iterations in last application of an algorithm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:959\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b_\n-const MatrixOperator matrixOperator_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1028\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bM_\ba_\bt_\br_\bi_\bx\n-const BCRSMatrix & getIterationMatrix() const\n-Return the iteration matrix (m_ - mu_*I), provided on demand when needed (e.g.\n-for direct solvers or ...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:945\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n-unsigned int nIterations_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1039\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_\n-const unsigned int verbosity_level_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1022\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bt_\bi_\bt_\bl_\be_\b_\n-const std::string title_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1042\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bR_\be_\ba_\bl\n-BlockVector::field_type Real\n-Type of underlying field.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:186\n-_\bD_\bu_\bn_\be_\b:_\b:_\bP_\bo_\bw_\be_\br_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bm_\bu_\b_\n-Real mu_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn poweriteration.hh:1025\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bd_\be_\bc_\bo_\bm_\bp_\bo_\bs_\be\n+void bildl_decompose(Matrix &A)\n+compute ILDL decomposition of a symmetric matrix A\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ildl.hh:88\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bb_\ba_\bc_\bk_\bs_\bo_\bl_\bv_\be\n+void bildl_backsolve(const Matrix &A, X &v, const Y &d, bool\n+isLowerTriangular=false)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ildl.hh:149\n+_\bD_\bu_\bn_\be_\b:_\b:_\bb_\bi_\bl_\bd_\bl_\b__\bs_\bu_\bb_\bt_\br_\ba_\bc_\bt_\bB_\bC_\bT\n+static void bildl_subtractBCT(const FieldMatrix< K, m, n > &B, const\n+FieldMatrix< K, m, n > &CT, FieldMatrix< K, m, n > &A)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn ildl.hh:24\n _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n derive error class from the base class in common\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n-A linear operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:67\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-X::field_type field_type\n-The field type of the operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:74\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by_\bs_\bc_\ba_\bl_\be_\ba_\bd_\bd\n-virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const =0\n-apply operator to x, scale and add:\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-virtual SolverCategory::Category category() const =0\n-Category of the linear operator (see SolverCategory::Category)\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n-Y range_type\n-The type of the range of the operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:72\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n-virtual void apply(const X &x, Y &y) const =0\n-apply operator to x: The input vector is consistent and the output must also be\n-consistent on the in...\n-_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n-X domain_type\n-The type of the domain of the operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:70\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bd_\ba_\bp_\bt_\be_\br\n-Adapter to turn a matrix into a linear operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:137\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n-Statistics about the application of an inverse operator.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n-static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:524\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n-Category\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n-@ sequential\n-Category for sequential solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bB_\bl_\bo_\bc_\bk_\bE_\br_\br_\bo_\br\n+Error when performing an operation on a matrix block.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx\n+A generic dynamic dense matrix.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:561\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n+RowIterator beforeBegin()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:634\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+RowIterator beforeEnd()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:627\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+RowIterator end()\n+Get iterator to one beyond last row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:620\n+_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+RowIterator begin()\n+Get iterator to first row.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrix.hh:614\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bM_\ba_\bt_\br_\bi_\bx\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixutils.hh:27\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00224.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00224.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: arpackpp.hh File Reference\n+dune-istl: solver.hh File Reference\n \n \n \n \n \n \n \n@@ -65,48 +65,76 @@\n
    \n
    \n
    \n
    \n \n \n
    \n
    \n \n-
    arpackpp.hh File Reference
    \n+ \n
    \n
    \n-
    #include <cmath>
    \n-#include <iostream>
    \n+\n+

    Define general, extensible interface for inverse operators. \n+More...

    \n+
    #include <iomanip>
    \n+#include <ostream>
    \n #include <string>
    \n-#include <dune/common/fvector.hh>
    \n+#include <functional>
    \n #include <dune/common/exceptions.hh>
    \n-#include <dune/istl/blocklevel.hh>
    \n-#include <dune/istl/bvector.hh>
    \n-#include <dune/istl/istlexception.hh>
    \n-#include <dune/istl/io.hh>
    \n-#include "arssym.h"
    \n+#include <dune/common/shared_ptr.hh>
    \n+#include <dune/common/simd/io.hh>
    \n+#include <dune/common/simd/simd.hh>
    \n+#include <dune/common/parametertree.hh>
    \n+#include <dune/common/timer.hh>
    \n+#include "solvertype.hh"
    \n+#include "preconditioner.hh"
    \n+#include "operators.hh"
    \n+#include "scalarproducts.hh"
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n

    \n Classes

    class  Dune::ArPackPlusPlus_Algorithms< BCRSMatrix, BlockVector >
     Wrapper to use a range of ARPACK++ eigenvalue solvers. More...
    struct  Dune::InverseOperatorResult
     Statistics about the application of an inverse operator. More...
     
    class  Dune::InverseOperator< X, Y >
     Abstract base class for all solvers. More...
     
    class  Dune::IterativeSolver< X, Y >
     Base class for all implementations of iterative solvers. More...
     
    class  Dune::IterativeSolver< X, Y >::Iteration< CountType >
     Class for controlling iterative methods. More...
     
    class  Dune::SolverHelper< ISTLLinearSolver, BCRSMatrix >
     Helper class for notifying a DUNE-ISTL linear solver about a change of the iteration matrix object in a unified way, i.e. independent from the solver's type (direct/iterative). More...
     
    struct  Dune::SolverHelper< ISTLLinearSolver, BCRSMatrix >::Implementation< is_direct_solver, Dummy >
     Implementation that works together with iterative ISTL solvers, e.g. Dune::CGSolver or Dune::BiCGSTABSolver. More...
     
    struct  Dune::SolverHelper< ISTLLinearSolver, BCRSMatrix >::Implementation< true, Dummy >
     Implementation that works together with direct ISTL solvers, e.g. Dune::SuperLU or Dune::UMFPack. More...
     
    \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    \n-
    \n+

    Detailed Description

    \n+

    Define general, extensible interface for inverse operators.

    \n+

    Implementation here covers only inversion of linear operators, but the implementation might be used for nonlinear operators as well.

    \n+
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,29 +1,62 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be\n _\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n-arpackpp.hh File Reference\n-#include \n-#include \n+solver.hh File Reference\n+_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs_\b _\bT_\be_\bm_\bp_\bl_\ba_\bt_\be_\b _\bL_\bi_\bb_\br_\ba_\br_\by_\b _\b(_\bI_\bS_\bT_\bL_\b) \u00bb _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\b _\bS_\bo_\bl_\bv_\be_\br_\bs\n+Define general, extensible interface for inverse operators. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n #include \n-#include \n+#include \n #include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh>\n-#include \"arssym.h\"\n+#include \n+#include \n+#include \n+#include \n+#include \n+#include \"_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\"\n+#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\"\n+#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n+#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b<_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b _\b>\n-\u00a0 Wrapper to use a range of ARPACK++ eigenvalue solvers. _\bM_\bo_\br_\be_\b._\b._\b.\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+\u00a0 Statistics about the application of an inverse operator. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0 Abstract base class for all solvers. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b>\n+\u00a0 Base class for all implementations of iterative solvers. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b<_\b _\bX_\b,_\b _\bY_\b _\b>_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bC_\bo_\bu_\bn_\bt_\bT_\by_\bp_\be_\b _\b>\n+\u00a0 Class for controlling iterative methods. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b,_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b _\b>\n+ Helper class for notifying a DUNE-ISTL linear solver about a change of\n+\u00a0 the iteration matrix object in a unified way, i.e. independent from\n+ the solver's type (direct/iterative). _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b,_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b _\b>_\b:_\b:_\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b<\n+ _\bi_\bs_\b__\bd_\bi_\br_\be_\bc_\bt_\b__\bs_\bo_\bl_\bv_\be_\br_\b,_\b _\bD_\bu_\bm_\bm_\by_\b _\b>\n+\u00a0 _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn that works together with iterative _\bI_\bS_\bT_\bL solvers, e.g.\n+ _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bG_\bS_\bo_\bl_\bv_\be_\br or _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bi_\bC_\bG_\bS_\bT_\bA_\bB_\bS_\bo_\bl_\bv_\be_\br. _\bM_\bo_\br_\be_\b._\b._\b.\n+\u00a0\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\b _\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b,_\b _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b _\b>_\b:_\b:_\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b<\n+ _\bt_\br_\bu_\be_\b,_\b _\bD_\bu_\bm_\bm_\by_\b _\b>\n+\u00a0 _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn that works together with direct _\bI_\bS_\bT_\bL solvers, e.g.\n+ _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bu_\bp_\be_\br_\bL_\bU or _\bD_\bu_\bn_\be_\b:_\b:_\bU_\bM_\bF_\bP_\ba_\bc_\bk. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n+*\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n+Define general, extensible interface for inverse operators.\n+Implementation here covers only inversion of linear operators, but the\n+implementation might be used for nonlinear operators as well.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00224_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00224_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: arpackpp.hh Source File\n+dune-istl: solver.hh Source File\n \n \n \n \n \n \n \n@@ -70,881 +70,499 @@\n
    \n
    \n
    \n
    \n \n \n
    \n
    \n-
    arpackpp.hh
    \n+
    solver.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_EIGENVALUE_ARPACKPP_HH
    \n-
    6#define DUNE_ISTL_EIGENVALUE_ARPACKPP_HH
    \n-
    7
    \n-
    8#if HAVE_ARPACKPP || defined DOXYGEN
    \n-
    9
    \n-
    10#include <cmath> // provides std::abs, std::pow, std::sqrt
    \n-
    11
    \n-
    12#include <iostream> // provides std::cout, std::endl
    \n-
    13#include <string> // provides std::string
    \n-
    14
    \n-
    15#include <dune/common/fvector.hh> // provides Dune::FieldVector
    \n-
    16#include <dune/common/exceptions.hh> // provides DUNE_THROW(...)
    \n-
    17
    \n-
    18#include <dune/istl/blocklevel.hh> // provides Dune::blockLevel
    \n-
    19#include <dune/istl/bvector.hh> // provides Dune::BlockVector
    \n-
    20#include <dune/istl/istlexception.hh> // provides Dune::ISTLError
    \n-
    21#include <dune/istl/io.hh> // provides Dune::printvector(...)
    \n-
    22
    \n-
    23#ifdef Status
    \n-
    24#undef Status // prevent preprocessor from damaging the ARPACK++
    \n-
    25 // code when "X11/Xlib.h" is included (the latter
    \n-
    26 // defines Status as "#define Status int" and
    \n-
    27 // ARPACK++ provides a class with a method called
    \n-
    28 // Status)
    \n-
    29#endif
    \n-
    30#include "arssym.h" // provides ARSymStdEig
    \n-
    31
    \n-
    32namespace Dune
    \n-
    33{
    \n-
    34
    \n-
    39 namespace Impl {
    \n-
    55 template <class BCRSMatrix>
    \n-
    56 class ArPackPlusPlus_BCRSMatrixWrapper
    \n+
    5
    \n+
    6#ifndef DUNE_ISTL_SOLVER_HH
    \n+
    7#define DUNE_ISTL_SOLVER_HH
    \n+
    8
    \n+
    9#include <iomanip>
    \n+
    10#include <ostream>
    \n+
    11#include <string>
    \n+
    12#include <functional>
    \n+
    13
    \n+
    14#include <dune/common/exceptions.hh>
    \n+
    15#include <dune/common/shared_ptr.hh>
    \n+
    16#include <dune/common/simd/io.hh>
    \n+
    17#include <dune/common/simd/simd.hh>
    \n+
    18#include <dune/common/parametertree.hh>
    \n+
    19#include <dune/common/timer.hh>
    \n+
    20
    \n+
    21#include "solvertype.hh"
    \n+
    22#include "preconditioner.hh"
    \n+
    23#include "operators.hh"
    \n+
    24#include "scalarproducts.hh"
    \n+
    25
    \n+
    26namespace Dune
    \n+
    27{
    \n+
    \n+\n+
    48 {
    \n+
    \n+\n+
    51 {
    \n+
    52 clear();
    \n+
    53 }
    \n+
    \n+
    54
    \n+
    \n+
    56 void clear ()
    \n
    57 {
    \n-
    58 public:
    \n-
    60 typedef typename BCRSMatrix::field_type Real;
    \n-
    61
    \n-
    62 public:
    \n-
    64 ArPackPlusPlus_BCRSMatrixWrapper (const BCRSMatrix& A)
    \n-
    65 : A_(A),
    \n-
    66 m_(A_.M() * mBlock), n_(A_.N() * nBlock)
    \n-
    67 {
    \n-
    68 // assert that BCRSMatrix type has blocklevel 2
    \n-
    69 static_assert
    \n-
    70 (blockLevel<BCRSMatrix>() == 2,
    \n-
    71 "Only BCRSMatrices with blocklevel 2 are supported.");
    \n-
    72
    \n-
    73 // allocate memory for auxiliary block vector objects
    \n-
    74 // which are compatible to matrix rows / columns
    \n-
    75 domainBlockVector.resize(A_.N());
    \n-
    76 rangeBlockVector.resize(A_.M());
    \n-
    77 }
    \n-
    78
    \n-
    80 inline void multMv (Real* v, Real* w)
    \n-
    81 {
    \n-
    82 // get vector v as an object of appropriate type
    \n-
    83 arrayToDomainBlockVector(v,domainBlockVector);
    \n+
    58 iterations = 0;
    \n+
    59 reduction = 0;
    \n+
    60 converged = false;
    \n+
    61 conv_rate = 1;
    \n+
    62 elapsed = 0;
    \n+\n+
    64 }
    \n+
    \n+
    65
    \n+\n+
    68
    \n+
    70 double reduction;
    \n+
    71
    \n+\n+
    74
    \n+
    76 double conv_rate;
    \n+
    77
    \n+
    79 double condition_estimate = -1;
    \n+
    80
    \n+
    82 double elapsed;
    \n+
    83 };
    \n+
    \n
    84
    \n-
    85 // perform matrix-vector product
    \n-
    86 A_.mv(domainBlockVector,rangeBlockVector);
    \n-
    87
    \n-
    88 // get vector w from object of appropriate type
    \n-
    89 rangeBlockVectorToArray(rangeBlockVector,w);
    \n-
    90 };
    \n-
    91
    \n-
    93 inline void multMtMv (Real* v, Real* w)
    \n-
    94 {
    \n-
    95 // get vector v as an object of appropriate type
    \n-
    96 arrayToDomainBlockVector(v,domainBlockVector);
    \n-
    97
    \n-
    98 // perform matrix-vector product
    \n-
    99 A_.mv(domainBlockVector,rangeBlockVector);
    \n-
    100 A_.mtv(rangeBlockVector,domainBlockVector);
    \n-
    101
    \n-
    102 // get vector w from object of appropriate type
    \n-
    103 domainBlockVectorToArray(domainBlockVector,w);
    \n-
    104 };
    \n-
    105
    \n-
    107 inline void multMMtv (Real* v, Real* w)
    \n-
    108 {
    \n-
    109 // get vector v as an object of appropriate type
    \n-
    110 arrayToRangeBlockVector(v,rangeBlockVector);
    \n-
    111
    \n-
    112 // perform matrix-vector product
    \n-
    113 A_.mtv(rangeBlockVector,domainBlockVector);
    \n-
    114 A_.mv(domainBlockVector,rangeBlockVector);
    \n+
    85
    \n+
    86 //=====================================================================
    \n+
    98 template<class X, class Y>
    \n+
    \n+\n+
    100 public:
    \n+
    102 typedef X domain_type;
    \n+
    103
    \n+
    105 typedef Y range_type;
    \n+
    106
    \n+
    108 typedef typename X::field_type field_type;
    \n+
    109
    \n+
    111 typedef typename FieldTraits<field_type>::real_type real_type;
    \n+
    112
    \n+
    114 typedef Simd::Scalar<real_type> scalar_real_type;
    \n
    115
    \n-
    116 // get vector w from object of appropriate type
    \n-
    117 rangeBlockVectorToArray(rangeBlockVector,w);
    \n-
    118 };
    \n-
    119
    \n-
    121 inline int nrows () const { return m_; }
    \n-
    122
    \n-
    124 inline int ncols () const { return n_; }
    \n-
    125
    \n-
    126 protected:
    \n-
    127 // Number of rows and columns in each block of the matrix
    \n-
    128 constexpr static int mBlock = BCRSMatrix::block_type::rows;
    \n-
    129 constexpr static int nBlock = BCRSMatrix::block_type::cols;
    \n-
    130
    \n-
    131 // Type of vectors in the domain of the linear map associated with
    \n-
    132 // the matrix, i.e. block vectors compatible to matrix rows
    \n-
    133 constexpr static int dbvBlockSize = nBlock;
    \n-
    134 typedef Dune::FieldVector<Real,dbvBlockSize> DomainBlockVectorBlock;
    \n-
    135 typedef Dune::BlockVector<DomainBlockVectorBlock> DomainBlockVector;
    \n-
    136
    \n-
    137 // Type of vectors in the range of the linear map associated with
    \n-
    138 // the matrix, i.e. block vectors compatible to matrix columns
    \n-
    139 constexpr static int rbvBlockSize = mBlock;
    \n-
    140 typedef Dune::FieldVector<Real,rbvBlockSize> RangeBlockVectorBlock;
    \n-
    141 typedef Dune::BlockVector<RangeBlockVectorBlock> RangeBlockVector;
    \n-
    142
    \n-
    143 // Types for vector index access
    \n-
    144 typedef typename DomainBlockVector::size_type dbv_size_type;
    \n-
    145 typedef typename RangeBlockVector::size_type rbv_size_type;
    \n-
    146 typedef typename DomainBlockVectorBlock::size_type dbvb_size_type;
    \n-
    147 typedef typename RangeBlockVectorBlock::size_type rbvb_size_type;
    \n-
    148
    \n-
    149 // Get vector v from a block vector object which is compatible to
    \n-
    150 // matrix rows
    \n-
    151 static inline void
    \n-
    152 domainBlockVectorToArray (const DomainBlockVector& dbv, Real* v)
    \n-
    153 {
    \n-
    154 for (dbv_size_type block = 0; block < dbv.N(); ++block)
    \n-
    155 for (dbvb_size_type iBlock = 0; iBlock < dbvBlockSize; ++iBlock)
    \n-
    156 v[block*dbvBlockSize + iBlock] = dbv[block][iBlock];
    \n-
    157 }
    \n-
    158
    \n-
    159 // Get vector v from a block vector object which is compatible to
    \n-
    160 // matrix columns
    \n-
    161 static inline void
    \n-
    162 rangeBlockVectorToArray (const RangeBlockVector& rbv, Real* v)
    \n-
    163 {
    \n-
    164 for (rbv_size_type block = 0; block < rbv.N(); ++block)
    \n-
    165 for (rbvb_size_type iBlock = 0; iBlock < rbvBlockSize; ++iBlock)
    \n-
    166 v[block*rbvBlockSize + iBlock] = rbv[block][iBlock];
    \n-
    167 }
    \n-
    168
    \n-
    169 public:
    \n-
    172 static inline void arrayToDomainBlockVector (const Real* v,
    \n-
    173 DomainBlockVector& dbv)
    \n-
    174 {
    \n-
    175 for (dbv_size_type block = 0; block < dbv.N(); ++block)
    \n-
    176 for (dbvb_size_type iBlock = 0; iBlock < dbvBlockSize; ++iBlock)
    \n-
    177 dbv[block][iBlock] = v[block*dbvBlockSize + iBlock];
    \n-
    178 }
    \n-
    179
    \n-
    182 static inline void arrayToRangeBlockVector (const Real* v,
    \n-
    183 RangeBlockVector& rbv)
    \n-
    184 {
    \n-
    185 for (rbv_size_type block = 0; block < rbv.N(); ++block)
    \n-
    186 for (rbvb_size_type iBlock = 0; iBlock < rbvBlockSize; ++iBlock)
    \n-
    187 rbv[block][iBlock] = v[block*rbvBlockSize + iBlock];
    \n-
    188 }
    \n-
    189
    \n-
    190 protected:
    \n-
    191 // The DUNE-ISTL BCRSMatrix
    \n-
    192 const BCRSMatrix& A_;
    \n+
    128 virtual void apply (X& x, Y& b, InverseOperatorResult& res) = 0;
    \n+
    129
    \n+
    143 virtual void apply (X& x, Y& b, double reduction, InverseOperatorResult& res) = 0;
    \n+
    144
    \n+\n+
    147#ifdef DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE
    \n+
    148 {
    \n+
    149 DUNE_THROW(Dune::Exception,"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
    \n+
    150 }
    \n+
    151#else
    \n+
    152 = 0;
    \n+
    153#endif
    \n+
    154
    \n+
    156 virtual ~InverseOperator () {}
    \n+
    157
    \n+
    158 protected:
    \n+
    159 // spacing values
    \n+
    160 enum { iterationSpacing = 5 , normSpacing = 16 };
    \n+
    161
    \n+
    \n+
    163 void printHeader(std::ostream& s) const
    \n+
    164 {
    \n+
    165 s << std::setw(iterationSpacing) << " Iter";
    \n+
    166 s << std::setw(normSpacing) << "Defect";
    \n+
    167 s << std::setw(normSpacing) << "Rate" << std::endl;
    \n+
    168 }
    \n+
    \n+
    169
    \n+
    171 template <typename CountType, typename DataType>
    \n+
    \n+
    172 void printOutput(std::ostream& s,
    \n+
    173 const CountType& iter,
    \n+
    174 const DataType& norm,
    \n+
    175 const DataType& norm_old) const
    \n+
    176 {
    \n+
    177 const DataType rate = norm/norm_old;
    \n+
    178 s << std::setw(iterationSpacing) << iter << " ";
    \n+
    179 s << std::setw(normSpacing) << Simd::io(norm) << " ";
    \n+
    180 s << std::setw(normSpacing) << Simd::io(rate) << std::endl;
    \n+
    181 }
    \n+
    \n+
    182
    \n+
    184 template <typename CountType, typename DataType>
    \n+
    \n+
    185 void printOutput(std::ostream& s,
    \n+
    186 const CountType& iter,
    \n+
    187 const DataType& norm) const
    \n+
    188 {
    \n+
    189 s << std::setw(iterationSpacing) << iter << " ";
    \n+
    190 s << std::setw(normSpacing) << Simd::io(norm) << std::endl;
    \n+
    191 }
    \n+
    \n+
    192 };
    \n+
    \n
    193
    \n-
    194 // Number of rows and columns in the matrix
    \n-
    195 const int m_, n_;
    \n-
    196
    \n-
    197 // Auxiliary block vector objects which are
    \n-
    198 // compatible to matrix rows / columns
    \n-
    199 mutable DomainBlockVector domainBlockVector;
    \n-
    200 mutable RangeBlockVector rangeBlockVector;
    \n-
    201 };
    \n-
    202 } // end namespace Impl
    \n-
    203
    \n-
    243 template <typename BCRSMatrix, typename BlockVector>
    \n-
    \n-\n-
    245 {
    \n-
    246 public:
    \n-\n-
    248
    \n-
    249 public:
    \n-
    \n-\n-
    269 const unsigned int nIterationsMax = 100000,
    \n-
    270 const unsigned int verbosity_level = 0)
    \n-
    271 : m_(m), nIterationsMax_(nIterationsMax),
    \n-
    272 verbosity_level_(verbosity_level),
    \n-
    273 nIterations_(0),
    \n-
    274 title_(" ArPackPlusPlus_Algorithms: "),
    \n-
    275 blank_(title_.length(),' ')
    \n-
    276 {}
    \n-
    \n-
    277
    \n-
    \n-
    289 inline void computeSymMaxMagnitude (const Real& epsilon,
    \n-
    290 BlockVector& x, Real& lambda) const
    \n-
    291 {
    \n-
    292 // print verbosity information
    \n-
    293 if (verbosity_level_ > 0)
    \n-
    294 std::cout << title_ << "Computing an approximation of "
    \n-
    295 << "the dominant eigenvalue of a matrix which "
    \n-
    296 << "is assumed to be symmetric." << std::endl;
    \n-
    297
    \n-
    298 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n-
    299 // and to perform the product A*v (LU decomposition is not used)
    \n-
    300 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n-
    301 WrappedMatrix A(m_);
    \n-
    302
    \n-
    303 // get number of rows and columns in A
    \n-
    304 const int nrows = A.nrows();
    \n-
    305 const int ncols = A.ncols();
    \n-
    306
    \n-
    307 // assert that A is square
    \n-
    308 if (nrows != ncols)
    \n-
    309 DUNE_THROW(Dune::ISTLError,"Matrix is not square ("
    \n-
    310 << nrows << "x" << ncols << ").");
    \n-
    311
    \n-
    312 // allocate memory for variables, set parameters
    \n-
    313 const int nev = 1; // Number of eigenvalues to compute
    \n-
    314 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n-
    315 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n-
    316 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n-
    317 Real* ev = new Real[nev]; // Computed eigenvalues of A
    \n-
    318 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n-
    319 int nconv; // Number of converged eigenvalues
    \n-
    320
    \n-
    321 // define what we need: eigenvalues with largest magnitude
    \n-
    322 char which[] = "LM";
    \n-
    323 ARSymStdEig<Real,WrappedMatrix>
    \n-
    324 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);
    \n-
    325
    \n-
    326 // set ARPACK verbosity mode if requested
    \n-
    327 if (verbosity_level_ > 3) dprob.Trace();
    \n-
    328
    \n-
    329 // find eigenvalues and eigenvectors of A, obtain the eigenvalues
    \n-
    330 nconv = dprob.Eigenvalues(ev,ivec);
    \n-
    331
    \n-
    332 // obtain approximated dominant eigenvalue of A
    \n-
    333 lambda = ev[nev-1];
    \n-
    334
    \n-
    335 // obtain associated approximated eigenvector of A
    \n-
    336 Real* x_raw = dprob.RawEigenvector(nev-1);
    \n-
    337 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);
    \n-
    338
    \n-
    339 // obtain number of Arnoldi update iterations actually taken
    \n-
    340 nIterations_ = dprob.GetIter();
    \n-
    341
    \n-
    342 // compute residual norm
    \n-
    343 BlockVector r(x);
    \n-
    344 Real* Ax_raw = new Real[nrows];
    \n-
    345 A.multMv(x_raw,Ax_raw);
    \n-
    346 WrappedMatrix::arrayToDomainBlockVector(Ax_raw,r);
    \n-
    347 r.axpy(-lambda,x);
    \n-
    348 const Real r_norm = r.two_norm();
    \n-
    349
    \n-
    350 // print verbosity information
    \n-
    351 if (verbosity_level_ > 0)
    \n-
    352 {
    \n-
    353 if (verbosity_level_ > 1)
    \n-
    354 {
    \n-
    355 // print some information about the problem
    \n-
    356 std::cout << blank_ << "Obtained eigenvalues of A by solving "
    \n-
    357 << "A*x = \u03bb*x using the ARPACK++ class ARSym"
    \n-
    358 << "StdEig:" << std::endl;
    \n-
    359 std::cout << blank_ << " converged eigenvalues of A: "
    \n-
    360 << nconv << " / " << nev << std::endl;
    \n-
    361 std::cout << blank_ << " dominant eigenvalue of A: "
    \n-
    362 << lambda << std::endl;
    \n-
    363 }
    \n-
    364 std::cout << blank_ << "Result ("
    \n-
    365 << "#iterations = " << nIterations_ << ", "
    \n-
    366 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n-
    367 << "\u03bb = " << lambda << std::endl;
    \n-
    368 if (verbosity_level_ > 2)
    \n-
    369 {
    \n-
    370 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n-
    371 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n-
    372 }
    \n-
    373 }
    \n-
    374
    \n-
    375 // free dynamically allocated memory
    \n-
    376 delete[] Ax_raw;
    \n-
    377 delete[] ev;
    \n-
    378 }
    \n-
    \n-
    379
    \n-
    \n-
    391 inline void computeSymMinMagnitude (const Real& epsilon,
    \n-
    392 BlockVector& x, Real& lambda) const
    \n-
    393 {
    \n-
    394 // print verbosity information
    \n-
    395 if (verbosity_level_ > 0)
    \n-
    396 std::cout << title_ << "Computing an approximation of the "
    \n-
    397 << "least dominant eigenvalue of a matrix which "
    \n-
    398 << "is assumed to be symmetric." << std::endl;
    \n-
    399
    \n-
    400 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n-
    401 // and to perform the product A*v (LU decomposition is not used)
    \n-
    402 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n-
    403 WrappedMatrix A(m_);
    \n-
    404
    \n-
    405 // get number of rows and columns in A
    \n-
    406 const int nrows = A.nrows();
    \n-
    407 const int ncols = A.ncols();
    \n-
    408
    \n-
    409 // assert that A is square
    \n-
    410 if (nrows != ncols)
    \n-
    411 DUNE_THROW(Dune::ISTLError,"Matrix is not square ("
    \n-
    412 << nrows << "x" << ncols << ").");
    \n-
    413
    \n-
    414 // allocate memory for variables, set parameters
    \n-
    415 const int nev = 1; // Number of eigenvalues to compute
    \n-
    416 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n-
    417 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n-
    418 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n-
    419 Real* ev = new Real[nev]; // Computed eigenvalues of A
    \n-
    420 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n-
    421 int nconv; // Number of converged eigenvalues
    \n-
    422
    \n-
    423 // define what we need: eigenvalues with smallest magnitude
    \n-
    424 char which[] = "SM";
    \n-
    425 ARSymStdEig<Real,WrappedMatrix>
    \n-
    426 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);
    \n-
    427
    \n-
    428 // set ARPACK verbosity mode if requested
    \n-
    429 if (verbosity_level_ > 3) dprob.Trace();
    \n-
    430
    \n-
    431 // find eigenvalues and eigenvectors of A, obtain the eigenvalues
    \n-
    432 nconv = dprob.Eigenvalues(ev,ivec);
    \n-
    433
    \n-
    434 // obtain approximated least dominant eigenvalue of A
    \n-
    435 lambda = ev[nev-1];
    \n-
    436
    \n-
    437 // obtain associated approximated eigenvector of A
    \n-
    438 Real* x_raw = dprob.RawEigenvector(nev-1);
    \n-
    439 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);
    \n-
    440
    \n-
    441 // obtain number of Arnoldi update iterations actually taken
    \n-
    442 nIterations_ = dprob.GetIter();
    \n-
    443
    \n-
    444 // compute residual norm
    \n-
    445 BlockVector r(x);
    \n-
    446 Real* Ax_raw = new Real[nrows];
    \n-
    447 A.multMv(x_raw,Ax_raw);
    \n-
    448 WrappedMatrix::arrayToDomainBlockVector(Ax_raw,r);
    \n-
    449 r.axpy(-lambda,x);
    \n-
    450 const Real r_norm = r.two_norm();
    \n-
    451
    \n-
    452 // print verbosity information
    \n-
    453 if (verbosity_level_ > 0)
    \n-
    454 {
    \n-
    455 if (verbosity_level_ > 1)
    \n-
    456 {
    \n-
    457 // print some information about the problem
    \n-
    458 std::cout << blank_ << "Obtained eigenvalues of A by solving "
    \n-
    459 << "A*x = \u03bb*x using the ARPACK++ class ARSym"
    \n-
    460 << "StdEig:" << std::endl;
    \n-
    461 std::cout << blank_ << " converged eigenvalues of A: "
    \n-
    462 << nconv << " / " << nev << std::endl;
    \n-
    463 std::cout << blank_ << " least dominant eigenvalue of A: "
    \n-
    464 << lambda << std::endl;
    \n-
    465 }
    \n-
    466 std::cout << blank_ << "Result ("
    \n-
    467 << "#iterations = " << nIterations_ << ", "
    \n-
    468 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n-
    469 << "\u03bb = " << lambda << std::endl;
    \n-
    470 if (verbosity_level_ > 2)
    \n-
    471 {
    \n-
    472 // print approximated eigenvector via DUNE-ISTL I/O methods
    \n-
    473 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n-
    474 }
    \n-
    475 }
    \n-
    476
    \n-
    477 // free dynamically allocated memory
    \n-
    478 delete[] Ax_raw;
    \n-
    479 delete[] ev;
    \n-
    480 }
    \n-
    \n-
    481
    \n-
    \n-
    493 inline void computeSymCond2 (const Real& epsilon, Real& cond_2) const
    \n-
    494 {
    \n-
    495 // print verbosity information
    \n-
    496 if (verbosity_level_ > 0)
    \n-
    497 std::cout << title_ << "Computing an approximation of the "
    \n-
    498 << "spectral condition number of a matrix which "
    \n-
    499 << "is assumed to be symmetric." << std::endl;
    \n-
    500
    \n-
    501 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n-
    502 // and to perform the product A*v (LU decomposition is not used)
    \n-
    503 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n-
    504 WrappedMatrix A(m_);
    \n-
    505
    \n-
    506 // get number of rows and columns in A
    \n-
    507 const int nrows = A.nrows();
    \n-
    508 const int ncols = A.ncols();
    \n-
    509
    \n-
    510 // assert that A is square
    \n-
    511 if (nrows != ncols)
    \n-
    512 DUNE_THROW(Dune::ISTLError,"Matrix is not square ("
    \n-
    513 << nrows << "x" << ncols << ").");
    \n-
    514
    \n-
    515 // allocate memory for variables, set parameters
    \n-
    516 const int nev = 2; // Number of eigenvalues to compute
    \n-
    517 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n-
    518 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n-
    519 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n-
    520 Real* ev = new Real[nev]; // Computed eigenvalues of A
    \n-
    521 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n-
    522 int nconv; // Number of converged eigenvalues
    \n-
    523
    \n-
    524 // define what we need: eigenvalues from both ends of the spectrum
    \n-
    525 char which[] = "BE";
    \n-
    526 ARSymStdEig<Real,WrappedMatrix>
    \n-
    527 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);
    \n-
    528
    \n-
    529 // set ARPACK verbosity mode if requested
    \n-
    530 if (verbosity_level_ > 3) dprob.Trace();
    \n-
    531
    \n-
    532 // find eigenvalues and eigenvectors of A, obtain the eigenvalues
    \n-
    533 nconv = dprob.Eigenvalues(ev,ivec);
    \n-
    534
    \n-
    535 // obtain approximated dominant and least dominant eigenvalue of A
    \n-
    536 const Real& lambda_max = ev[nev-1];
    \n-
    537 const Real& lambda_min = ev[0];
    \n-
    538
    \n-
    539 // obtain associated approximated eigenvectors of A
    \n-
    540 Real* x_max_raw = dprob.RawEigenvector(nev-1);
    \n-
    541 Real* x_min_raw = dprob.RawEigenvector(0);
    \n-
    542
    \n-
    543 // obtain approximated spectral condition number of A
    \n-
    544 cond_2 = std::abs(lambda_max / lambda_min);
    \n+
    202 template<class X, class Y>
    \n+
    \n+
    203 class IterativeSolver : public InverseOperator<X,Y>{
    \n+
    204 public:
    \n+\n+\n+\n+
    208 using typename InverseOperator<X,Y>::real_type;
    \n+\n+
    210
    \n+
    \n+
    230 IterativeSolver (const LinearOperator<X,Y>& op, Preconditioner<X,Y>& prec, scalar_real_type reduction, int maxit, int verbose) :
    \n+
    231 _op(stackobject_to_shared_ptr(op)),
    \n+
    232 _prec(stackobject_to_shared_ptr(prec)),
    \n+
    233 _sp(new SeqScalarProduct<X>),
    \n+
    234 _reduction(reduction), _maxit(maxit), _verbose(verbose), _category(SolverCategory::sequential)
    \n+
    235 {
    \n+\n+
    237 DUNE_THROW(InvalidSolverCategory, "LinearOperator has to be sequential!");
    \n+\n+
    239 DUNE_THROW(InvalidSolverCategory, "Preconditioner has to be sequential!");
    \n+
    240 }
    \n+
    \n+
    241
    \n+
    \n+\n+
    263 scalar_real_type reduction, int maxit, int verbose) :
    \n+
    264 _op(stackobject_to_shared_ptr(op)),
    \n+
    265 _prec(stackobject_to_shared_ptr(prec)),
    \n+
    266 _sp(stackobject_to_shared_ptr(sp)),
    \n+
    267 _reduction(reduction), _maxit(maxit), _verbose(verbose), _category(SolverCategory::category(op))
    \n+
    268 {
    \n+\n+
    270 DUNE_THROW(InvalidSolverCategory, "LinearOperator and Preconditioner must have the same SolverCategory!");
    \n+\n+
    272 DUNE_THROW(InvalidSolverCategory, "LinearOperator and ScalarProduct must have the same SolverCategory!");
    \n+
    273 }
    \n+
    \n+
    274
    \n+
    \n+
    290 IterativeSolver (std::shared_ptr<const LinearOperator<X,Y> > op, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n+
    291 IterativeSolver(op,std::make_shared<SeqScalarProduct<X>>(),prec,
    \n+
    292 configuration.get<real_type>("reduction"),
    \n+
    293 configuration.get<int>("maxit"),
    \n+
    294 configuration.get<int>("verbose"))
    \n+
    295 {}
    \n+
    \n+
    296
    \n+
    \n+
    313 IterativeSolver (std::shared_ptr<const LinearOperator<X,Y> > op, std::shared_ptr<const ScalarProduct<X> > sp, std::shared_ptr<Preconditioner<X,X> > prec, const ParameterTree& configuration) :
    \n+
    314 IterativeSolver(op,sp,prec,
    \n+
    315 configuration.get<scalar_real_type>("reduction"),
    \n+
    316 configuration.get<int>("maxit"),
    \n+
    317 configuration.get<int>("verbose"))
    \n+
    318 {}
    \n+
    \n+
    319
    \n+
    \n+
    340 IterativeSolver (std::shared_ptr<const LinearOperator<X,Y>> op,
    \n+
    341 std::shared_ptr<const ScalarProduct<X>> sp,
    \n+
    342 std::shared_ptr<Preconditioner<X,Y>> prec,
    \n+
    343 scalar_real_type reduction, int maxit, int verbose) :
    \n+
    344 _op(op),
    \n+
    345 _prec(prec),
    \n+
    346 _sp(sp),
    \n+
    347 _reduction(reduction), _maxit(maxit), _verbose(verbose),
    \n+\n+
    349 {
    \n+\n+
    351 DUNE_THROW(InvalidSolverCategory, "LinearOperator and Preconditioner must have the same SolverCategory!");
    \n+\n+
    353 DUNE_THROW(InvalidSolverCategory, "LinearOperator and ScalarProduct must have the same SolverCategory!");
    \n+
    354 }
    \n+
    \n+
    355
    \n+
    356 // #warning actually we want to have this as the default and just implement the second one
    \n+
    357 // //! \\copydoc InverseOperator::apply(X&,Y&,InverseOperatorResult&)
    \n+
    358 // virtual void apply (X& x, Y& b, InverseOperatorResult& res)
    \n+
    359 // {
    \n+
    360 // apply(x,b,_reduction,res);
    \n+
    361 // }
    \n+
    362
    \n+
    363#ifndef DOXYGEN
    \n+
    364 // make sure the three-argument apply from the base class does not get shadowed
    \n+
    365 // by the redefined four-argument version below
    \n+
    366 using InverseOperator<X,Y>::apply;
    \n+
    367#endif
    \n+
    368
    \n+
    \n+
    374 virtual void apply (X& x, X& b, double reduction, InverseOperatorResult& res)
    \n+
    375 {
    \n+
    376 scalar_real_type saved_reduction = _reduction;
    \n+
    377 _reduction = reduction;
    \n+
    378 this->apply(x,b,res);
    \n+
    379 _reduction = saved_reduction;
    \n+
    380 }
    \n+
    \n+
    381
    \n+
    \n+\n+
    384 {
    \n+
    385 return _category;
    \n+
    386 }
    \n+
    \n+
    387
    \n+
    \n+
    388 std::string name() const{
    \n+
    389 std::string name = className(*this);
    \n+
    390 return name.substr(0, name.find("<"));
    \n+
    391 }
    \n+
    \n+
    392
    \n+
    410 template<class CountType = unsigned int>
    \n+
    \n+
    411 class Iteration {
    \n+
    412 public:
    \n+
    \n+\n+
    414 : _i(0)
    \n+
    415 , _res(res)
    \n+
    416 , _parent(parent)
    \n+
    417 , _valid(true)
    \n+
    418 {
    \n+
    419 res.clear();
    \n+
    420 if(_parent._verbose>0){
    \n+
    421 std::cout << "=== " << parent.name() << std::endl;
    \n+
    422 if(_parent._verbose > 1)
    \n+
    423 _parent.printHeader(std::cout);
    \n+
    424 }
    \n+
    425 }
    \n+
    \n+
    426
    \n+
    427 Iteration(const Iteration&) = delete;
    \n+
    \n+\n+
    429 : _def0(other._def0)
    \n+
    430 , _def(other._def)
    \n+
    431 , _i(other._i)
    \n+
    432 , _watch(other._watch)
    \n+
    433 , _res(other._res)
    \n+
    434 , _parent(other._parent)
    \n+
    435 , _valid(other._valid)
    \n+
    436 {
    \n+
    437 other._valid = false;
    \n+
    438 }
    \n+
    \n+
    439
    \n+
    \n+\n+
    441 if(_valid)
    \n+
    442 finalize();
    \n+
    443 }
    \n+
    \n+
    444
    \n+
    \n+
    455 bool step(CountType i, real_type def){
    \n+
    456 if (!Simd::allTrue(isFinite(def))) // check for inf or NaN
    \n+
    457 {
    \n+
    458 if (_parent._verbose>0)
    \n+
    459 std::cout << "=== " << _parent.name() << ": abort due to infinite or NaN defect"
    \n+
    460 << std::endl;
    \n+
    461 DUNE_THROW(SolverAbort,
    \n+
    462 _parent.name() << ": defect=" << Simd::io(def)
    \n+
    463 << " is infinite or NaN");
    \n+
    464 }
    \n+
    465 if(i == 0)
    \n+
    466 _def0 = def;
    \n+
    467 if(_parent._verbose > 1){
    \n+
    468 if(i!=0)
    \n+
    469 _parent.printOutput(std::cout,i,def,_def);
    \n+
    470 else
    \n+
    471 _parent.printOutput(std::cout,i,def);
    \n+
    472 }
    \n+
    473 _def = def;
    \n+
    474 _i = i;
    \n+
    475 _res.converged = (Simd::allTrue(def<_def0*_parent._reduction || def<real_type(1E-30))); // convergence check
    \n+
    476 return _res.converged;
    \n+
    477 }
    \n+
    \n+
    478
    \n+
    479 protected:
    \n+
    \n+
    480 void finalize(){
    \n+
    481 _res.converged = (Simd::allTrue(_def<_def0*_parent._reduction || _def<real_type(1E-30)));
    \n+\n+
    483 _res.reduction = static_cast<double>(Simd::max(_def/_def0));
    \n+
    484 _res.conv_rate = pow(_res.reduction,1.0/_i);
    \n+
    485 _res.elapsed = _watch.elapsed();
    \n+
    486 if (_parent._verbose>0) // final print
    \n+
    487 {
    \n+
    488 std::cout << "=== rate=" << _res.conv_rate
    \n+
    489 << ", T=" << _res.elapsed
    \n+
    490 << ", TIT=" << _res.elapsed/_res.iterations
    \n+
    491 << ", IT=" << _res.iterations << std::endl;
    \n+
    492 }
    \n+
    493 }
    \n+
    \n+
    494
    \n+
    495 real_type _def0 = 0.0, _def = 0.0;
    \n+
    496 CountType _i;
    \n+
    497 Timer _watch;
    \n+\n+\n+
    500 bool _valid;
    \n+
    501 };
    \n+
    \n+
    502
    \n+
    503 protected:
    \n+
    504 std::shared_ptr<const LinearOperator<X,Y>> _op;
    \n+
    505 std::shared_ptr<Preconditioner<X,Y>> _prec;
    \n+
    506 std::shared_ptr<const ScalarProduct<X>> _sp;
    \n+\n+\n+\n+\n+
    511 };
    \n+
    \n+
    512
    \n+
    520 template <typename ISTLLinearSolver, typename BCRSMatrix>
    \n+
    \n+\n+
    522 {
    \n+
    523 public:
    \n+
    \n+
    524 static void setMatrix (ISTLLinearSolver& solver,
    \n+
    525 const BCRSMatrix& matrix)
    \n+
    526 {
    \n+
    527 static const bool is_direct_solver
    \n+\n+\n+\n+
    531 }
    \n+
    \n+
    532
    \n+
    533 protected:
    \n+
    538 template <bool is_direct_solver, typename Dummy = void>
    \n+
    \n+\n+
    540 {
    \n+
    \n+
    541 static void setMatrix (ISTLLinearSolver&,
    \n+
    542 const BCRSMatrix&)
    \n+
    543 {}
    \n+
    \n+
    544 };
    \n+
    \n
    545
    \n-
    546 // obtain number of Arnoldi update iterations actually taken
    \n-
    547 nIterations_ = dprob.GetIter();
    \n-
    548
    \n-
    549 // compute each residual norm
    \n-
    550 Real* Ax_max_raw = new Real[nrows];
    \n-
    551 Real* Ax_min_raw = new Real[nrows];
    \n-
    552 A.multMv(x_max_raw,Ax_max_raw);
    \n-
    553 A.multMv(x_min_raw,Ax_min_raw);
    \n-
    554 Real r_max_norm = 0.0;
    \n-
    555 Real r_min_norm = 0.0;
    \n-
    556 for (int i = 0; i < nrows; ++i)
    \n-
    557 {
    \n-
    558 r_max_norm += std::pow(Ax_max_raw[i] - lambda_max * x_max_raw[i],2);
    \n-
    559 r_min_norm += std::pow(Ax_min_raw[i] - lambda_min * x_min_raw[i],2);
    \n-
    560 }
    \n-
    561 r_max_norm = std::sqrt(r_max_norm);
    \n-
    562 r_min_norm = std::sqrt(r_min_norm);
    \n-
    563
    \n-
    564 // print verbosity information
    \n-
    565 if (verbosity_level_ > 0)
    \n-
    566 {
    \n-
    567 if (verbosity_level_ > 1)
    \n-
    568 {
    \n-
    569 // print some information about the problem
    \n-
    570 std::cout << blank_ << "Obtained eigenvalues of A by solving "
    \n-
    571 << "A*x = \u03bb*x using the ARPACK++ class ARSym"
    \n-
    572 << "StdEig:" << std::endl;
    \n-
    573 std::cout << blank_ << " converged eigenvalues of A: "
    \n-
    574 << nconv << " / " << nev << std::endl;
    \n-
    575 std::cout << blank_ << " dominant eigenvalue of A: "
    \n-
    576 << lambda_max << std::endl;
    \n-
    577 std::cout << blank_ << " least dominant eigenvalue of A: "
    \n-
    578 << lambda_min << std::endl;
    \n-
    579 std::cout << blank_ << " spectral condition number of A: "
    \n-
    580 << cond_2 << std::endl;
    \n-
    581 }
    \n-
    582 std::cout << blank_ << "Result ("
    \n-
    583 << "#iterations = " << nIterations_ << ", "
    \n-
    584 << "\u2551residual\u2551_2 = {" << r_max_norm << ","
    \n-
    585 << r_min_norm << "}, " << "\u03bb = {"
    \n-
    586 << lambda_max << "," << lambda_min
    \n-
    587 << "}): cond_2 = " << cond_2 << std::endl;
    \n-
    588 }
    \n-
    589
    \n-
    590 // free dynamically allocated memory
    \n-
    591 delete[] Ax_min_raw;
    \n-
    592 delete[] Ax_max_raw;
    \n-
    593 delete[] ev;
    \n-
    594 }
    \n-
    \n-
    595
    \n-
    \n-
    609 inline void computeNonSymMax (const Real& epsilon,
    \n-
    610 BlockVector& x, Real& sigma) const
    \n-
    611 {
    \n-
    612 // print verbosity information
    \n-
    613 if (verbosity_level_ > 0)
    \n-
    614 std::cout << title_ << "Computing an approximation of the "
    \n-
    615 << "largest singular value of a matrix which "
    \n-
    616 << "is assumed to be nonsymmetric." << std::endl;
    \n-
    617
    \n-
    618 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n-
    619 // and to perform the product A^T*A*v (LU decomposition is not used)
    \n-
    620 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n-
    621 WrappedMatrix A(m_);
    \n-
    622
    \n-
    623 // get number of rows and columns in A
    \n-
    624 const int nrows = A.nrows();
    \n-
    625 const int ncols = A.ncols();
    \n-
    626
    \n-
    627 // assert that A has more rows than columns (extend code later to the opposite case!)
    \n-
    628 if (nrows < ncols)
    \n-
    629 DUNE_THROW(Dune::ISTLError,"Matrix has less rows than "
    \n-
    630 << "columns (" << nrows << "x" << ncols << ")."
    \n-
    631 << " This case is not implemented, yet.");
    \n-
    632
    \n-
    633 // allocate memory for variables, set parameters
    \n-
    634 const int nev = 1; // Number of eigenvalues to compute
    \n-
    635 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n-
    636 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n-
    637 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n-
    638 Real* ev = new Real[nev]; // Computed eigenvalues of A^T*A
    \n-
    639 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n-
    640 int nconv; // Number of converged eigenvalues
    \n-
    641
    \n-
    642 // define what we need: eigenvalues with largest algebraic value
    \n-
    643 char which[] = "LA";
    \n-
    644 ARSymStdEig<Real,WrappedMatrix>
    \n-
    645 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);
    \n-
    646
    \n-
    647 // set ARPACK verbosity mode if requested
    \n-
    648 if (verbosity_level_ > 3) dprob.Trace();
    \n-
    649
    \n-
    650 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues
    \n-
    651 nconv = dprob.Eigenvalues(ev,ivec);
    \n-
    652
    \n-
    653 // obtain approximated largest eigenvalue of A^T*A
    \n-
    654 const Real& lambda = ev[nev-1];
    \n-
    655
    \n-
    656 // obtain associated approximated eigenvector of A^T*A
    \n-
    657 Real* x_raw = dprob.RawEigenvector(nev-1);
    \n-
    658 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);
    \n-
    659
    \n-
    660 // obtain number of Arnoldi update iterations actually taken
    \n-
    661 nIterations_ = dprob.GetIter();
    \n-
    662
    \n-
    663 // compute residual norm
    \n-
    664 BlockVector r(x);
    \n-
    665 Real* AtAx_raw = new Real[ncols];
    \n-
    666 A.multMtMv(x_raw,AtAx_raw);
    \n-
    667 WrappedMatrix::arrayToDomainBlockVector(AtAx_raw,r);
    \n-
    668 r.axpy(-lambda,x);
    \n-
    669 const Real r_norm = r.two_norm();
    \n-
    670
    \n-
    671 // calculate largest singular value of A (note that
    \n-
    672 // x is right-singular / left-singular vector of A)
    \n-
    673 sigma = std::sqrt(lambda);
    \n-
    674
    \n-
    675 // print verbosity information
    \n-
    676 if (verbosity_level_ > 0)
    \n-
    677 {
    \n-
    678 if (verbosity_level_ > 1)
    \n-
    679 {
    \n-
    680 // print some information about the problem
    \n-
    681 std::cout << blank_ << "Obtained singular values of A by sol"
    \n-
    682 << "ving (A^T*A)*x = \u03c3\u00b2*x using the ARPACK++ "
    \n-
    683 << "class ARSymStdEig:" << std::endl;
    \n-
    684 std::cout << blank_ << " converged eigenvalues of A^T*A: "
    \n-
    685 << nconv << " / " << nev << std::endl;
    \n-
    686 std::cout << blank_ << " largest eigenvalue of A^T*A: "
    \n-
    687 << lambda << std::endl;
    \n-
    688 std::cout << blank_ << " => largest singular value of A: "
    \n-
    689 << sigma << std::endl;
    \n-
    690 }
    \n-
    691 std::cout << blank_ << "Result ("
    \n-
    692 << "#iterations = " << nIterations_ << ", "
    \n-
    693 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n-
    694 << "\u03c3 = " << sigma << std::endl;
    \n-
    695 if (verbosity_level_ > 2)
    \n-
    696 {
    \n-
    697 // print approximated right-singular / left-singular vector
    \n-
    698 // via DUNE-ISTL I/O methods
    \n-
    699 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n-
    700 }
    \n-
    701 }
    \n-
    702
    \n-
    703 // free dynamically allocated memory
    \n-
    704 delete[] AtAx_raw;
    \n-
    705 delete[] ev;
    \n-
    706 }
    \n-
    \n-
    707
    \n-
    \n-
    721 inline void computeNonSymMin (const Real& epsilon,
    \n-
    722 BlockVector& x, Real& sigma) const
    \n-
    723 {
    \n-
    724 // print verbosity information
    \n-
    725 if (verbosity_level_ > 0)
    \n-
    726 std::cout << title_ << "Computing an approximation of the "
    \n-
    727 << "smallest singular value of a matrix which "
    \n-
    728 << "is assumed to be nonsymmetric." << std::endl;
    \n-
    729
    \n-
    730 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n-
    731 // and to perform the product A^T*A*v (LU decomposition is not used)
    \n-
    732 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n-
    733 WrappedMatrix A(m_);
    \n-
    734
    \n-
    735 // get number of rows and columns in A
    \n-
    736 const int nrows = A.nrows();
    \n-
    737 const int ncols = A.ncols();
    \n-
    738
    \n-
    739 // assert that A has more rows than columns (extend code later to the opposite case!)
    \n-
    740 if (nrows < ncols)
    \n-
    741 DUNE_THROW(Dune::ISTLError,"Matrix has less rows than "
    \n-
    742 << "columns (" << nrows << "x" << ncols << ")."
    \n-
    743 << " This case is not implemented, yet.");
    \n-
    744
    \n-
    745 // allocate memory for variables, set parameters
    \n-
    746 const int nev = 1; // Number of eigenvalues to compute
    \n-
    747 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n-
    748 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n-
    749 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n-
    750 Real* ev = new Real[nev]; // Computed eigenvalues of A^T*A
    \n-
    751 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n-
    752 int nconv; // Number of converged eigenvalues
    \n-
    753
    \n-
    754 // define what we need: eigenvalues with smallest algebraic value
    \n-
    755 char which[] = "SA";
    \n-
    756 ARSymStdEig<Real,WrappedMatrix>
    \n-
    757 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);
    \n-
    758
    \n-
    759 // set ARPACK verbosity mode if requested
    \n-
    760 if (verbosity_level_ > 3) dprob.Trace();
    \n-
    761
    \n-
    762 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues
    \n-
    763 nconv = dprob.Eigenvalues(ev,ivec);
    \n-
    764
    \n-
    765 // obtain approximated smallest eigenvalue of A^T*A
    \n-
    766 const Real& lambda = ev[nev-1];
    \n-
    767
    \n-
    768 // obtain associated approximated eigenvector of A^T*A
    \n-
    769 Real* x_raw = dprob.RawEigenvector(nev-1);
    \n-
    770 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);
    \n-
    771
    \n-
    772 // obtain number of Arnoldi update iterations actually taken
    \n-
    773 nIterations_ = dprob.GetIter();
    \n-
    774
    \n-
    775 // compute residual norm
    \n-
    776 BlockVector r(x);
    \n-
    777 Real* AtAx_raw = new Real[ncols];
    \n-
    778 A.multMtMv(x_raw,AtAx_raw);
    \n-
    779 WrappedMatrix::arrayToDomainBlockVector(AtAx_raw,r);
    \n-
    780 r.axpy(-lambda,x);
    \n-
    781 const Real r_norm = r.two_norm();
    \n-
    782
    \n-
    783 // calculate smallest singular value of A (note that
    \n-
    784 // x is right-singular / left-singular vector of A)
    \n-
    785 sigma = std::sqrt(lambda);
    \n-
    786
    \n-
    787 // print verbosity information
    \n-
    788 if (verbosity_level_ > 0)
    \n-
    789 {
    \n-
    790 if (verbosity_level_ > 1)
    \n-
    791 {
    \n-
    792 // print some information about the problem
    \n-
    793 std::cout << blank_ << "Obtained singular values of A by sol"
    \n-
    794 << "ving (A^T*A)*x = \u03c3\u00b2*x using the ARPACK++ "
    \n-
    795 << "class ARSymStdEig:" << std::endl;
    \n-
    796 std::cout << blank_ << " converged eigenvalues of A^T*A: "
    \n-
    797 << nconv << " / " << nev << std::endl;
    \n-
    798 std::cout << blank_ << " smallest eigenvalue of A^T*A: "
    \n-
    799 << lambda << std::endl;
    \n-
    800 std::cout << blank_ << " => smallest singular value of A: "
    \n-
    801 << sigma << std::endl;
    \n-
    802 }
    \n-
    803 std::cout << blank_ << "Result ("
    \n-
    804 << "#iterations = " << nIterations_ << ", "
    \n-
    805 << "\u2551residual\u2551_2 = " << r_norm << "): "
    \n-
    806 << "\u03c3 = " << sigma << std::endl;
    \n-
    807 if (verbosity_level_ > 2)
    \n-
    808 {
    \n-
    809 // print approximated right-singular / left-singular vector
    \n-
    810 // via DUNE-ISTL I/O methods
    \n-
    811 Dune::printvector(std::cout,x,blank_+"x",blank_+"row");
    \n-
    812 }
    \n-
    813 }
    \n-
    814
    \n-
    815 // free dynamically allocated memory
    \n-
    816 delete[] AtAx_raw;
    \n-
    817 delete[] ev;
    \n-
    818 }
    \n-
    \n-
    819
    \n-
    \n-
    830 inline void computeNonSymCond2 (const Real& epsilon, Real& cond_2) const
    \n-
    831 {
    \n-
    832 // print verbosity information
    \n-
    833 if (verbosity_level_ > 0)
    \n-
    834 std::cout << title_ << "Computing an approximation of the "
    \n-
    835 << "spectral condition number of a matrix which "
    \n-
    836 << "is assumed to be nonsymmetric." << std::endl;
    \n-
    837
    \n-
    838 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information
    \n-
    839 // and to perform the product A^T*A*v (LU decomposition is not used)
    \n-
    840 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper<BCRSMatrix> WrappedMatrix;
    \n-
    841 WrappedMatrix A(m_);
    \n-
    842
    \n-
    843 // get number of rows and columns in A
    \n-
    844 const int nrows = A.nrows();
    \n-
    845 const int ncols = A.ncols();
    \n-
    846
    \n-
    847 // assert that A has more rows than columns (extend code later to the opposite case!)
    \n-
    848 if (nrows < ncols)
    \n-
    849 DUNE_THROW(Dune::ISTLError,"Matrix has less rows than "
    \n-
    850 << "columns (" << nrows << "x" << ncols << ")."
    \n-
    851 << " This case is not implemented, yet.");
    \n-
    852
    \n-
    853 // allocate memory for variables, set parameters
    \n-
    854 const int nev = 2; // Number of eigenvalues to compute
    \n-
    855 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at each iteration (0 == auto)
    \n-
    856 const Real tol = epsilon; // Stopping tolerance (relative accuracy of Ritz values) (0 == machine precision)
    \n-
    857 const int maxit = nIterationsMax_*nev; // Maximum number of Arnoldi update iterations allowed (0 == 100*nev)
    \n-
    858 Real* ev = new Real[nev]; // Computed eigenvalues of A^T*A
    \n-
    859 const bool ivec = true; // Flag deciding if eigenvectors shall be determined
    \n-
    860 int nconv; // Number of converged eigenvalues
    \n-
    861
    \n-
    862 // define what we need: eigenvalues from both ends of the spectrum
    \n-
    863 char which[] = "BE";
    \n-
    864 ARSymStdEig<Real,WrappedMatrix>
    \n-
    865 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);
    \n-
    866
    \n-
    867 // set ARPACK verbosity mode if requested
    \n-
    868 if (verbosity_level_ > 3) dprob.Trace();
    \n-
    869
    \n-
    870 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues
    \n-
    871 nconv = dprob.Eigenvalues(ev,ivec);
    \n-
    872
    \n-
    873 // obtain approximated largest and smallest eigenvalue of A^T*A
    \n-
    874 const Real& lambda_max = ev[nev-1];
    \n-
    875 const Real& lambda_min = ev[0];
    \n-
    876
    \n-
    877 // obtain associated approximated eigenvectors of A^T*A
    \n-
    878 Real* x_max_raw = dprob.RawEigenvector(nev-1);
    \n-
    879 Real* x_min_raw = dprob.RawEigenvector(0);
    \n-
    880
    \n-
    881 // obtain number of Arnoldi update iterations actually taken
    \n-
    882 nIterations_ = dprob.GetIter();
    \n-
    883
    \n-
    884 // compute each residual norm
    \n-
    885 Real* AtAx_max_raw = new Real[ncols];
    \n-
    886 Real* AtAx_min_raw = new Real[ncols];
    \n-
    887 A.multMtMv(x_max_raw,AtAx_max_raw);
    \n-
    888 A.multMtMv(x_min_raw,AtAx_min_raw);
    \n-
    889 Real r_max_norm = 0.0;
    \n-
    890 Real r_min_norm = 0.0;
    \n-
    891 for (int i = 0; i < ncols; ++i)
    \n-
    892 {
    \n-
    893 r_max_norm += std::pow(AtAx_max_raw[i] - lambda_max * x_max_raw[i],2);
    \n-
    894 r_min_norm += std::pow(AtAx_min_raw[i] - lambda_min * x_min_raw[i],2);
    \n-
    895 }
    \n-
    896 r_max_norm = std::sqrt(r_max_norm);
    \n-
    897 r_min_norm = std::sqrt(r_min_norm);
    \n-
    898
    \n-
    899 // calculate largest and smallest singular value of A
    \n-
    900 const Real sigma_max = std::sqrt(lambda_max);
    \n-
    901 const Real sigma_min = std::sqrt(lambda_min);
    \n-
    902
    \n-
    903 // obtain approximated spectral condition number of A
    \n-
    904 cond_2 = sigma_max / sigma_min;
    \n-
    905
    \n-
    906 // print verbosity information
    \n-
    907 if (verbosity_level_ > 0)
    \n-
    908 {
    \n-
    909 if (verbosity_level_ > 1)
    \n-
    910 {
    \n-
    911 // print some information about the problem
    \n-
    912 std::cout << blank_ << "Obtained singular values of A by sol"
    \n-
    913 << "ving (A^T*A)*x = \u03c3\u00b2*x using the ARPACK++ "
    \n-
    914 << "class ARSymStdEig:" << std::endl;
    \n-
    915 std::cout << blank_ << " converged eigenvalues of A^T*A: "
    \n-
    916 << nconv << " / " << nev << std::endl;
    \n-
    917 std::cout << blank_ << " largest eigenvalue of A^T*A: "
    \n-
    918 << lambda_max << std::endl;
    \n-
    919 std::cout << blank_ << " smallest eigenvalue of A^T*A: "
    \n-
    920 << lambda_min << std::endl;
    \n-
    921 std::cout << blank_ << " => largest singular value of A: "
    \n-
    922 << sigma_max << std::endl;
    \n-
    923 std::cout << blank_ << " => smallest singular value of A: "
    \n-
    924 << sigma_min << std::endl;
    \n-
    925 }
    \n-
    926 std::cout << blank_ << "Result ("
    \n-
    927 << "#iterations = " << nIterations_ << ", "
    \n-
    928 << "\u2551residual\u2551_2 = {" << r_max_norm << ","
    \n-
    929 << r_min_norm << "}, " << "\u03c3 = {"
    \n-
    930 << sigma_max << "," << sigma_min
    \n-
    931 << "}): cond_2 = " << cond_2 << std::endl;
    \n-
    932 }
    \n-
    933
    \n-
    934 // free dynamically allocated memory
    \n-
    935 delete[] AtAx_min_raw;
    \n-
    936 delete[] AtAx_max_raw;
    \n-
    937 delete[] ev;
    \n-
    938 }
    \n-
    \n-
    939
    \n-
    \n-
    944 inline unsigned int getIterationCount () const
    \n-
    945 {
    \n-
    946 if (nIterations_ == 0)
    \n-
    947 DUNE_THROW(Dune::ISTLError,"No algorithm applied, yet.");
    \n-
    948
    \n-
    949 return nIterations_;
    \n-
    950 }
    \n-
    \n-
    951
    \n-
    952 protected:
    \n-
    953 // parameters related to iterative eigenvalue algorithms
    \n-\n-
    955 const unsigned int nIterationsMax_;
    \n-
    956
    \n-
    957 // verbosity setting
    \n-
    958 const unsigned int verbosity_level_;
    \n-
    959
    \n-
    960 // memory for storing temporary variables (mutable as they shall
    \n-
    961 // just be effectless auxiliary variables of the const apply*(...)
    \n-
    962 // methods)
    \n-
    963 mutable unsigned int nIterations_;
    \n-
    964
    \n-
    965 // constants for printing verbosity information
    \n-
    966 const std::string title_;
    \n-
    967 const std::string blank_;
    \n-
    968 };
    \n-
    \n-
    969
    \n-
    972} // namespace Dune
    \n-
    973
    \n-
    974#endif // HAVE_ARPACKPP
    \n-
    975
    \n-
    976#endif // DUNE_ISTL_EIGENVALUE_ARPACKPP_HH
    \n-
    Some generic functions for pretty printing vectors and matrices.
    \n-
    Helper functions for determining the vector/matrix block level.
    \n-\n-
    This file implements a vector space as a tensor product of a given vector space. The number of compon...
    \n-
    void printvector(std::ostream &s, const V &v, std::string title, std::string rowtext, int columns=1, int width=10, int precision=2)
    Print an ISTL vector.
    Definition io.hh:89
    \n+
    550 template <typename Dummy>
    \n+
    \n+
    551 struct Implementation<true,Dummy>
    \n+
    552 {
    \n+
    \n+
    553 static void setMatrix (ISTLLinearSolver& solver,
    \n+
    554 const BCRSMatrix& matrix)
    \n+
    555 {
    \n+
    556 solver.setMatrix(matrix);
    \n+
    557 }
    \n+
    \n+
    558 };
    \n+
    \n+
    559 };
    \n+
    \n+
    560
    \n+
    564}
    \n+
    565
    \n+
    566#endif
    \n+
    Define base class for scalar product and norm.
    \n+
    Templates characterizing the type of a solver.
    \n+\n+
    Define general, extensible interface for operators. The available implementation wraps a matrix.
    \n+
    STL namespace.
    \n
    Definition allocator.hh:11
    \n+
    PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)
    Definition dependency.hh:293
    \n
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n-
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bcrsmatrix.hh:488
    \n-
    A vector of blocks with memory management.
    Definition bvector.hh:395
    \n-
    typename Imp::BlockTraits< B >::field_type field_type
    export the type representing the field
    Definition bvector.hh:401
    \n-
    A::size_type size_type
    The type for the index access.
    Definition bvector.hh:410
    \n-
    Wrapper to use a range of ARPACK++ eigenvalue solvers.
    Definition arpackpp.hh:245
    \n-
    const unsigned int verbosity_level_
    Definition arpackpp.hh:958
    \n-
    unsigned int getIterationCount() const
    Return the number of iterations in last application of an algorithm.
    Definition arpackpp.hh:944
    \n-
    const std::string title_
    Definition arpackpp.hh:966
    \n-
    BlockVector::field_type Real
    Definition arpackpp.hh:247
    \n-
    void computeSymMaxMagnitude(const Real &epsilon, BlockVector &x, Real &lambda) const
    Assume the matrix to be square, symmetric and perform IRLM to compute an approximation lambda of its ...
    Definition arpackpp.hh:289
    \n-
    void computeSymMinMagnitude(const Real &epsilon, BlockVector &x, Real &lambda) const
    Assume the matrix to be square, symmetric and perform IRLM to compute an approximation lambda of its ...
    Definition arpackpp.hh:391
    \n-
    const BCRSMatrix & m_
    Definition arpackpp.hh:954
    \n-
    const unsigned int nIterationsMax_
    Definition arpackpp.hh:955
    \n-
    const std::string blank_
    Definition arpackpp.hh:967
    \n-
    ArPackPlusPlus_Algorithms(const BCRSMatrix &m, const unsigned int nIterationsMax=100000, const unsigned int verbosity_level=0)
    Construct from required parameters.
    Definition arpackpp.hh:268
    \n-
    void computeSymCond2(const Real &epsilon, Real &cond_2) const
    Assume the matrix to be square, symmetric and perform IRLM to compute an approximation of its spectra...
    Definition arpackpp.hh:493
    \n-
    unsigned int nIterations_
    Definition arpackpp.hh:963
    \n-
    void computeNonSymMin(const Real &epsilon, BlockVector &x, Real &sigma) const
    Assume the matrix to be nonsymmetric and perform IRLM to compute an approximation sigma of its smalle...
    Definition arpackpp.hh:721
    \n-
    void computeNonSymCond2(const Real &epsilon, Real &cond_2) const
    Assume the matrix to be nonsymmetric and perform IRLM to compute an approximation of its spectral con...
    Definition arpackpp.hh:830
    \n-
    void computeNonSymMax(const Real &epsilon, BlockVector &x, Real &sigma) const
    Assume the matrix to be nonsymmetric and perform IRLM to compute an approximation sigma of its larges...
    Definition arpackpp.hh:609
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n+
    Thrown when a solver aborts due to some problem.
    Definition istlexception.hh:46
    \n+
    A linear operator.
    Definition operators.hh:67
    \n+
    Base class for matrix free definition of preconditioners.
    Definition preconditioner.hh:32
    \n+
    Base class for scalar product and norm computation.
    Definition scalarproducts.hh:52
    \n+
    Default implementation for the scalar case.
    Definition scalarproducts.hh:168
    \n+
    Statistics about the application of an inverse operator.
    Definition solver.hh:48
    \n+
    InverseOperatorResult()
    Default constructor.
    Definition solver.hh:50
    \n+
    double condition_estimate
    Estimate of condition number.
    Definition solver.hh:79
    \n+
    double elapsed
    Elapsed time in seconds.
    Definition solver.hh:82
    \n+
    int iterations
    Number of iterations.
    Definition solver.hh:67
    \n+
    double reduction
    Reduction achieved: .
    Definition solver.hh:70
    \n+
    void clear()
    Resets all data.
    Definition solver.hh:56
    \n+
    double conv_rate
    Convergence rate (average reduction per step)
    Definition solver.hh:76
    \n+
    bool converged
    True if convergence criterion has been met.
    Definition solver.hh:73
    \n+
    Abstract base class for all solvers.
    Definition solver.hh:99
    \n+
    void printHeader(std::ostream &s) const
    helper function for printing header of solver output
    Definition solver.hh:163
    \n+
    virtual ~InverseOperator()
    Destructor.
    Definition solver.hh:156
    \n+
    void printOutput(std::ostream &s, const CountType &iter, const DataType &norm) const
    helper function for printing solver output
    Definition solver.hh:185
    \n+
    void printOutput(std::ostream &s, const CountType &iter, const DataType &norm, const DataType &norm_old) const
    helper function for printing solver output
    Definition solver.hh:172
    \n+
    virtual void apply(X &x, Y &b, double reduction, InverseOperatorResult &res)=0
    apply inverse operator, with given convergence criteria.
    \n+
    Simd::Scalar< real_type > scalar_real_type
    scalar type underlying the field_type
    Definition solver.hh:114
    \n+
    Y range_type
    Type of the range of the operator to be inverted.
    Definition solver.hh:105
    \n+
    @ normSpacing
    Definition solver.hh:160
    \n+
    @ iterationSpacing
    Definition solver.hh:160
    \n+
    X domain_type
    Type of the domain of the operator to be inverted.
    Definition solver.hh:102
    \n+
    virtual void apply(X &x, Y &b, InverseOperatorResult &res)=0
    Apply inverse operator,.
    \n+
    X::field_type field_type
    The field type of the operator.
    Definition solver.hh:108
    \n+
    FieldTraits< field_type >::real_type real_type
    The real type of the field type (is the same if using real numbers, but differs for std::complex)
    Definition solver.hh:111
    \n+
    virtual SolverCategory::Category category() const =0
    Category of the solver (see SolverCategory::Category)
    \n+
    Base class for all implementations of iterative solvers.
    Definition solver.hh:203
    \n+
    IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Constructor.
    Definition solver.hh:313
    \n+
    IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)
    Constructor.
    Definition solver.hh:290
    \n+
    virtual void apply(X &x, X &b, double reduction, InverseOperatorResult &res)
    Apply inverse operator with given reduction factor.
    Definition solver.hh:374
    \n+
    std::shared_ptr< const ScalarProduct< X > > _sp
    Definition solver.hh:506
    \n+
    IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X, Y > > prec, scalar_real_type reduction, int maxit, int verbose)
    General constructor to initialize an iterative solver.
    Definition solver.hh:340
    \n+
    std::string name() const
    Definition solver.hh:388
    \n+
    IterativeSolver(const LinearOperator< X, Y > &op, Preconditioner< X, Y > &prec, scalar_real_type reduction, int maxit, int verbose)
    General constructor to initialize an iterative solver.
    Definition solver.hh:230
    \n+
    std::shared_ptr< const LinearOperator< X, Y > > _op
    Definition solver.hh:504
    \n+
    int _maxit
    Definition solver.hh:508
    \n+
    int _verbose
    Definition solver.hh:509
    \n+
    scalar_real_type _reduction
    Definition solver.hh:507
    \n+
    IterativeSolver(const LinearOperator< X, Y > &op, const ScalarProduct< X > &sp, Preconditioner< X, Y > &prec, scalar_real_type reduction, int maxit, int verbose)
    General constructor to initialize an iterative solver.
    Definition solver.hh:262
    \n+
    SolverCategory::Category _category
    Definition solver.hh:510
    \n+
    std::shared_ptr< Preconditioner< X, Y > > _prec
    Definition solver.hh:505
    \n+
    virtual SolverCategory::Category category() const
    Category of the solver (see SolverCategory::Category)
    Definition solver.hh:383
    \n+
    Class for controlling iterative methods.
    Definition solver.hh:411
    \n+
    Iteration(const IterativeSolver &parent, InverseOperatorResult &res)
    Definition solver.hh:413
    \n+
    Iteration(Iteration &&other)
    Definition solver.hh:428
    \n+
    InverseOperatorResult & _res
    Definition solver.hh:498
    \n+
    const IterativeSolver & _parent
    Definition solver.hh:499
    \n+
    Timer _watch
    Definition solver.hh:497
    \n+
    Iteration(const Iteration &)=delete
    \n+
    CountType _i
    Definition solver.hh:496
    \n+
    real_type _def0
    Definition solver.hh:495
    \n+
    bool step(CountType i, real_type def)
    registers the iteration step, checks for invalid defect norm and convergence.
    Definition solver.hh:455
    \n+
    void finalize()
    Definition solver.hh:480
    \n+
    real_type _def
    Definition solver.hh:495
    \n+
    ~Iteration()
    Definition solver.hh:440
    \n+
    bool _valid
    Definition solver.hh:500
    \n+
    Helper class for notifying a DUNE-ISTL linear solver about a change of the iteration matrix object in...
    Definition solver.hh:522
    \n+
    static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)
    Definition solver.hh:524
    \n+
    Implementation that works together with iterative ISTL solvers, e.g. Dune::CGSolver or Dune::BiCGSTAB...
    Definition solver.hh:540
    \n+
    static void setMatrix(ISTLLinearSolver &, const BCRSMatrix &)
    Definition solver.hh:541
    \n+
    static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)
    Definition solver.hh:553
    \n+
    Categories for the solvers.
    Definition solvercategory.hh:22
    \n+
    Category
    Definition solvercategory.hh:23
    \n+
    @ sequential
    Category for sequential solvers.
    Definition solvercategory.hh:25
    \n+
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n+
    Definition solvercategory.hh:54
    \n+
    Definition solvertype.hh:16
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "encoding", "source2": "encoding", "unified_diff": "@@ -1 +1 @@\n-utf-8\n+us-ascii\n"}, {"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,954 +1,642 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n- * _\be_\bi_\bg_\be_\bn_\bv_\ba_\bl_\bu_\be\n-arpackpp.hh\n+solver.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_EIGENVALUE_ARPACKPP_HH\n-6#define DUNE_ISTL_EIGENVALUE_ARPACKPP_HH\n-7\n-8#if HAVE_ARPACKPP || defined DOXYGEN\n-9\n-10#include // provides std::abs, std::pow, std::sqrt\n-11\n-12#include // provides std::cout, std::endl\n-13#include // provides std::string\n-14\n-15#include // provides Dune::FieldVector\n-16#include // provides DUNE_THROW(...)\n-17\n-18#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh> // provides Dune::blockLevel\n-19#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh> // provides Dune::BlockVector\n-20#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh> // provides Dune::ISTLError\n-21#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bi_\bo_\b._\bh_\bh> // provides Dune::printvector(...)\n-22\n-23#ifdef Status\n-24#undef Status // prevent preprocessor from damaging the ARPACK++\n-25 // code when \"X11/Xlib.h\" is included (the latter\n-26 // defines Status as \"#define Status int\" and\n-27 // ARPACK++ provides a class with a method called\n-28 // Status)\n-29#endif\n-30#include \"arssym.h\" // provides ARSymStdEig\n-31\n-32namespace _\bD_\bu_\bn_\be\n-33{\n-34\n-39 namespace Impl {\n-55 template \n-56 class ArPackPlusPlus_BCRSMatrixWrapper\n+5\n+6#ifndef DUNE_ISTL_SOLVER_HH\n+7#define DUNE_ISTL_SOLVER_HH\n+8\n+9#include \n+10#include \n+11#include \n+12#include \n+13\n+14#include \n+15#include \n+16#include \n+17#include \n+18#include \n+19#include \n+20\n+21#include \"_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\"\n+22#include \"_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\"\n+23#include \"_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\"\n+24#include \"_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\"\n+25\n+26namespace _\bD_\bu_\bn_\be\n+27{\n+_\b4_\b7 struct _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+48 {\n+_\b5_\b0 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt ()\n+51 {\n+52 _\bc_\bl_\be_\ba_\br();\n+53 }\n+54\n+_\b5_\b6 void _\bc_\bl_\be_\ba_\br ()\n 57 {\n-58 public:\n-60 typedef typename _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be Real;\n-61\n-62 public:\n-64 ArPackPlusPlus_BCRSMatrixWrapper (const BCRSMatrix& A)\n-65 : A_(A),\n-66 m_(A_.M() * mBlock), n_(A_.N() * nBlock)\n-67 {\n-68 // assert that BCRSMatrix type has blocklevel 2\n-69 static_assert\n-70 (blockLevel() == 2,\n-71 \"Only BCRSMatrices with blocklevel 2 are supported.\");\n-72\n-73 // allocate memory for auxiliary block vector objects\n-74 // which are compatible to matrix rows / columns\n-75 domainBlockVector.resize(A_.N());\n-76 rangeBlockVector.resize(A_.M());\n-77 }\n-78\n-80 inline void multMv (Real* v, Real* w)\n-81 {\n-82 // get vector v as an object of appropriate type\n-83 arrayToDomainBlockVector(v,domainBlockVector);\n+58 _\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs = 0;\n+59 _\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn = 0;\n+60 _\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = false;\n+61 _\bc_\bo_\bn_\bv_\b__\br_\ba_\bt_\be = 1;\n+62 _\be_\bl_\ba_\bp_\bs_\be_\bd = 0;\n+63 _\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\b__\be_\bs_\bt_\bi_\bm_\ba_\bt_\be = -1;\n+64 }\n+65\n+_\b6_\b7 int _\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs;\n+68\n+_\b7_\b0 double _\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+71\n+_\b7_\b3 bool _\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd;\n+74\n+_\b7_\b6 double _\bc_\bo_\bn_\bv_\b__\br_\ba_\bt_\be;\n+77\n+_\b7_\b9 double _\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\b__\be_\bs_\bt_\bi_\bm_\ba_\bt_\be = -1;\n+80\n+_\b8_\b2 double _\be_\bl_\ba_\bp_\bs_\be_\bd;\n+83 };\n 84\n-85 // perform matrix-vector product\n-86 A_.mv(domainBlockVector,rangeBlockVector);\n-87\n-88 // get vector w from object of appropriate type\n-89 rangeBlockVectorToArray(rangeBlockVector,w);\n-90 };\n-91\n-93 inline void multMtMv (Real* v, Real* w)\n-94 {\n-95 // get vector v as an object of appropriate type\n-96 arrayToDomainBlockVector(v,domainBlockVector);\n-97\n-98 // perform matrix-vector product\n-99 A_.mv(domainBlockVector,rangeBlockVector);\n-100 A_.mtv(rangeBlockVector,domainBlockVector);\n-101\n-102 // get vector w from object of appropriate type\n-103 domainBlockVectorToArray(domainBlockVector,w);\n-104 };\n-105\n-107 inline void multMMtv (Real* v, Real* w)\n-108 {\n-109 // get vector v as an object of appropriate type\n-110 arrayToRangeBlockVector(v,rangeBlockVector);\n-111\n-112 // perform matrix-vector product\n-113 A_.mtv(rangeBlockVector,domainBlockVector);\n-114 A_.mv(domainBlockVector,rangeBlockVector);\n+85\n+86 //=====================================================================\n+98 template\n+_\b9_\b9 class _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br {\n+100 public:\n+_\b1_\b0_\b2 typedef X _\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+103\n+_\b1_\b0_\b5 typedef Y _\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+106\n+_\b1_\b0_\b8 typedef typename X::field_type _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+109\n+_\b1_\b1_\b1 typedef typename FieldTraits::real_type _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+112\n+_\b1_\b1_\b4 typedef Simd::Scalar _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n 115\n-116 // get vector w from object of appropriate type\n-117 rangeBlockVectorToArray(rangeBlockVector,w);\n-118 };\n-119\n-121 inline int nrows () const { return m_; }\n-122\n-124 inline int ncols () const { return n_; }\n-125\n-126 protected:\n-127 // Number of rows and columns in each block of the matrix\n-128 constexpr static int mBlock = BCRSMatrix::block_type::rows;\n-129 constexpr static int nBlock = BCRSMatrix::block_type::cols;\n-130\n-131 // Type of vectors in the domain of the linear map associated with\n-132 // the matrix, i.e. block vectors compatible to matrix rows\n-133 constexpr static int dbvBlockSize = nBlock;\n-134 typedef Dune::FieldVector DomainBlockVectorBlock;\n-135 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bD_\bo_\bm_\ba_\bi_\bn_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\bB_\bl_\bo_\bc_\bk_\b> DomainBlockVector;\n-136\n-137 // Type of vectors in the range of the linear map associated with\n-138 // the matrix, i.e. block vectors compatible to matrix columns\n-139 constexpr static int rbvBlockSize = mBlock;\n-140 typedef Dune::FieldVector RangeBlockVectorBlock;\n-141 typedef _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b<_\bR_\ba_\bn_\bg_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\bB_\bl_\bo_\bc_\bk_\b> RangeBlockVector;\n-142\n-143 // Types for vector index access\n-144 typedef typename _\bD_\bo_\bm_\ba_\bi_\bn_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be dbv_size_type;\n-145 typedef typename _\bR_\ba_\bn_\bg_\be_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be rbv_size_type;\n-146 typedef typename DomainBlockVectorBlock::size_type dbvb_size_type;\n-147 typedef typename RangeBlockVectorBlock::size_type rbvb_size_type;\n-148\n-149 // Get vector v from a block vector object which is compatible to\n-150 // matrix rows\n-151 static inline void\n-152 domainBlockVectorToArray (const DomainBlockVector& dbv, Real* v)\n-153 {\n-154 for (dbv_size_type block = 0; block < dbv.N(); ++block)\n-155 for (dbvb_size_type iBlock = 0; iBlock < dbvBlockSize; ++iBlock)\n-156 v[block*dbvBlockSize + iBlock] = dbv[block][iBlock];\n-157 }\n-158\n-159 // Get vector v from a block vector object which is compatible to\n-160 // matrix columns\n-161 static inline void\n-162 rangeBlockVectorToArray (const RangeBlockVector& rbv, Real* v)\n-163 {\n-164 for (rbv_size_type block = 0; block < rbv.N(); ++block)\n-165 for (rbvb_size_type iBlock = 0; iBlock < rbvBlockSize; ++iBlock)\n-166 v[block*rbvBlockSize + iBlock] = rbv[block][iBlock];\n-167 }\n-168\n-169 public:\n-172 static inline void arrayToDomainBlockVector (const Real* v,\n-173 DomainBlockVector& dbv)\n-174 {\n-175 for (dbv_size_type block = 0; block < dbv.N(); ++block)\n-176 for (dbvb_size_type iBlock = 0; iBlock < dbvBlockSize; ++iBlock)\n-177 dbv[block][iBlock] = v[block*dbvBlockSize + iBlock];\n-178 }\n-179\n-182 static inline void arrayToRangeBlockVector (const Real* v,\n-183 RangeBlockVector& rbv)\n-184 {\n-185 for (rbv_size_type block = 0; block < rbv.N(); ++block)\n-186 for (rbvb_size_type iBlock = 0; iBlock < rbvBlockSize; ++iBlock)\n-187 rbv[block][iBlock] = v[block*rbvBlockSize + iBlock];\n-188 }\n-189\n-190 protected:\n-191 // The DUNE-ISTL BCRSMatrix\n-192 const BCRSMatrix& A_;\n+_\b1_\b2_\b8 virtual void _\ba_\bp_\bp_\bl_\by (X& x, Y& b, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res) = 0;\n+129\n+_\b1_\b4_\b3 virtual void _\ba_\bp_\bp_\bl_\by (X& x, Y& b, double reduction, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt&\n+res) = 0;\n+144\n+_\b1_\b4_\b6 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+147#ifdef DUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE\n+148 {\n+149 DUNE_THROW(Dune::Exception,\"It is necessary to implement the category\n+method in a derived classes, in the future this method will pure virtual.\");\n+150 }\n+151#else\n+152 = 0;\n+153#endif\n+154\n+_\b1_\b5_\b6 virtual _\b~_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br () {}\n+157\n+158 protected:\n+159 // spacing values\n+_\b1_\b6_\b0 enum { _\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bS_\bp_\ba_\bc_\bi_\bn_\bg = 5 , _\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg = 16 };\n+161\n+_\b1_\b6_\b3 void _\bp_\br_\bi_\bn_\bt_\bH_\be_\ba_\bd_\be_\br(std::ostream& s) const\n+164 {\n+165 s << std::setw(_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << \" Iter\";\n+166 s << std::setw(_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << \"Defect\";\n+167 s << std::setw(_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << \"Rate\" << std::endl;\n+168 }\n+169\n+171 template \n+_\b1_\b7_\b2 void _\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt(std::ostream& s,\n+173 const CountType& iter,\n+174 const DataType& norm,\n+175 const DataType& norm_old) const\n+176 {\n+177 const DataType rate = norm/norm_old;\n+178 s << std::setw(_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << iter << \" \";\n+179 s << std::setw(_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << Simd::io(norm) << \" \";\n+180 s << std::setw(_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << Simd::io(rate) << std::endl;\n+181 }\n+182\n+184 template \n+_\b1_\b8_\b5 void _\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt(std::ostream& s,\n+186 const CountType& iter,\n+187 const DataType& norm) const\n+188 {\n+189 s << std::setw(_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << iter << \" \";\n+190 s << std::setw(_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg) << Simd::io(norm) << std::endl;\n+191 }\n+192 };\n 193\n-194 // Number of rows and columns in the matrix\n-195 const int m_, n_;\n-196\n-197 // Auxiliary block vector objects which are\n-198 // compatible to matrix rows / columns\n-199 mutable DomainBlockVector domainBlockVector;\n-200 mutable RangeBlockVector rangeBlockVector;\n-201 };\n-202 } // end namespace Impl\n-203\n-243 template \n-_\b2_\b4_\b4 class _\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n-245 {\n-246 public:\n-_\b2_\b4_\b7 typedef typename _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be _\bR_\be_\ba_\bl;\n-248\n-249 public:\n-_\b2_\b6_\b8 _\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs (const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& m,\n-269 const unsigned int nIterationsMax = 100000,\n-270 const unsigned int verbosity_level = 0)\n-271 : _\bm_\b_(m), _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_(nIterationsMax),\n-272 _\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_(verbosity_level),\n-273 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_(0),\n-274 _\bt_\bi_\bt_\bl_\be_\b_(\" ArPackPlusPlus_Algorithms: \"),\n-275 _\bb_\bl_\ba_\bn_\bk_\b_(_\bt_\bi_\bt_\bl_\be_\b_.length(),' ')\n-276 {}\n-277\n-_\b2_\b8_\b9 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\ba_\bx_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be (const _\bR_\be_\ba_\bl& epsilon,\n-290 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n-291 {\n-292 // print verbosity information\n-293 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-294 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of \"\n-295 << \"the dominant eigenvalue of a matrix which \"\n-296 << \"is assumed to be symmetric.\" << std::endl;\n-297\n-298 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n-299 // and to perform the product A*v (LU decomposition is not used)\n-300 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n-301 WrappedMatrix A(_\bm_\b_);\n-302\n-303 // get number of rows and columns in A\n-304 const int nrows = A.nrows();\n-305 const int ncols = A.ncols();\n-306\n-307 // assert that A is square\n-308 if (nrows != ncols)\n-309 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix is not square (\"\n-310 << nrows << \"x\" << ncols << \").\");\n-311\n-312 // allocate memory for variables, set parameters\n-313 const int nev = 1; // Number of eigenvalues to compute\n-314 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n-each iteration (0 == auto)\n-315 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n-values) (0 == machine precision)\n-316 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n-iterations allowed (0 == 100*nev)\n-317 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A\n-318 const bool ivec = true; // Flag deciding if eigenvectors shall be\n-determined\n-319 int nconv; // Number of converged eigenvalues\n-320\n-321 // define what we need: eigenvalues with largest magnitude\n-322 char which[] = \"LM\";\n-323 ARSymStdEig\n-324 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);\n-325\n-326 // set ARPACK verbosity mode if requested\n-327 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n-328\n-329 // find eigenvalues and eigenvectors of A, obtain the eigenvalues\n-330 nconv = dprob.Eigenvalues(ev,ivec);\n-331\n-332 // obtain approximated dominant eigenvalue of A\n-333 lambda = ev[nev-1];\n-334\n-335 // obtain associated approximated eigenvector of A\n-336 _\bR_\be_\ba_\bl* x_raw = dprob.RawEigenvector(nev-1);\n-337 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);\n-338\n-339 // obtain number of Arnoldi update iterations actually taken\n-340 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n-341\n-342 // compute residual norm\n-343 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br r(x);\n-344 _\bR_\be_\ba_\bl* Ax_raw = new _\bR_\be_\ba_\bl[nrows];\n-345 A.multMv(x_raw,Ax_raw);\n-346 WrappedMatrix::arrayToDomainBlockVector(Ax_raw,r);\n-347 r.axpy(-lambda,x);\n-348 const _\bR_\be_\ba_\bl r_norm = r.two_norm();\n-349\n-350 // print verbosity information\n-351 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-352 {\n-353 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n-354 {\n-355 // print some information about the problem\n-356 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained eigenvalues of A by solving \"\n-357 << \"A*x = \u00ce\u00bb*x using the ARPACK++ class ARSym\"\n-358 << \"StdEig:\" << std::endl;\n-359 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A: \"\n-360 << nconv << \" / \" << nev << std::endl;\n-361 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" dominant eigenvalue of A: \"\n-362 << lambda << std::endl;\n-363 }\n-364 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n-365 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n-366 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n-367 << \"\u00ce\u00bb = \" << lambda << std::endl;\n-368 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n-369 {\n-370 // print approximated eigenvector via DUNE-ISTL I/O methods\n-371 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n-372 }\n-373 }\n-374\n-375 // free dynamically allocated memory\n-376 delete[] Ax_raw;\n-377 delete[] ev;\n-378 }\n-379\n-_\b3_\b9_\b1 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\bi_\bn_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be (const _\bR_\be_\ba_\bl& epsilon,\n-392 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& lambda) const\n-393 {\n-394 // print verbosity information\n-395 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-396 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of the \"\n-397 << \"least dominant eigenvalue of a matrix which \"\n-398 << \"is assumed to be symmetric.\" << std::endl;\n-399\n-400 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n-401 // and to perform the product A*v (LU decomposition is not used)\n-402 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n-403 WrappedMatrix A(_\bm_\b_);\n-404\n-405 // get number of rows and columns in A\n-406 const int nrows = A.nrows();\n-407 const int ncols = A.ncols();\n-408\n-409 // assert that A is square\n-410 if (nrows != ncols)\n-411 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix is not square (\"\n-412 << nrows << \"x\" << ncols << \").\");\n-413\n-414 // allocate memory for variables, set parameters\n-415 const int nev = 1; // Number of eigenvalues to compute\n-416 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n-each iteration (0 == auto)\n-417 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n-values) (0 == machine precision)\n-418 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n-iterations allowed (0 == 100*nev)\n-419 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A\n-420 const bool ivec = true; // Flag deciding if eigenvectors shall be\n-determined\n-421 int nconv; // Number of converged eigenvalues\n-422\n-423 // define what we need: eigenvalues with smallest magnitude\n-424 char which[] = \"SM\";\n-425 ARSymStdEig\n-426 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);\n-427\n-428 // set ARPACK verbosity mode if requested\n-429 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n-430\n-431 // find eigenvalues and eigenvectors of A, obtain the eigenvalues\n-432 nconv = dprob.Eigenvalues(ev,ivec);\n-433\n-434 // obtain approximated least dominant eigenvalue of A\n-435 lambda = ev[nev-1];\n-436\n-437 // obtain associated approximated eigenvector of A\n-438 _\bR_\be_\ba_\bl* x_raw = dprob.RawEigenvector(nev-1);\n-439 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);\n-440\n-441 // obtain number of Arnoldi update iterations actually taken\n-442 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n-443\n-444 // compute residual norm\n-445 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br r(x);\n-446 _\bR_\be_\ba_\bl* Ax_raw = new _\bR_\be_\ba_\bl[nrows];\n-447 A.multMv(x_raw,Ax_raw);\n-448 WrappedMatrix::arrayToDomainBlockVector(Ax_raw,r);\n-449 r.axpy(-lambda,x);\n-450 const _\bR_\be_\ba_\bl r_norm = r.two_norm();\n-451\n-452 // print verbosity information\n-453 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-454 {\n-455 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n-456 {\n-457 // print some information about the problem\n-458 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained eigenvalues of A by solving \"\n-459 << \"A*x = \u00ce\u00bb*x using the ARPACK++ class ARSym\"\n-460 << \"StdEig:\" << std::endl;\n-461 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A: \"\n-462 << nconv << \" / \" << nev << std::endl;\n-463 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" least dominant eigenvalue of A: \"\n-464 << lambda << std::endl;\n-465 }\n-466 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n-467 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n-468 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n-469 << \"\u00ce\u00bb = \" << lambda << std::endl;\n-470 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n-471 {\n-472 // print approximated eigenvector via DUNE-ISTL I/O methods\n-473 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n-474 }\n-475 }\n-476\n-477 // free dynamically allocated memory\n-478 delete[] Ax_raw;\n-479 delete[] ev;\n-480 }\n-481\n-_\b4_\b9_\b3 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bC_\bo_\bn_\bd_\b2 (const _\bR_\be_\ba_\bl& epsilon, _\bR_\be_\ba_\bl& cond_2) const\n-494 {\n-495 // print verbosity information\n-496 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-497 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of the \"\n-498 << \"spectral condition number of a matrix which \"\n-499 << \"is assumed to be symmetric.\" << std::endl;\n-500\n-501 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n-502 // and to perform the product A*v (LU decomposition is not used)\n-503 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n-504 WrappedMatrix A(_\bm_\b_);\n-505\n-506 // get number of rows and columns in A\n-507 const int nrows = A.nrows();\n-508 const int ncols = A.ncols();\n-509\n-510 // assert that A is square\n-511 if (nrows != ncols)\n-512 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix is not square (\"\n-513 << nrows << \"x\" << ncols << \").\");\n-514\n-515 // allocate memory for variables, set parameters\n-516 const int nev = 2; // Number of eigenvalues to compute\n-517 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n-each iteration (0 == auto)\n-518 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n-values) (0 == machine precision)\n-519 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n-iterations allowed (0 == 100*nev)\n-520 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A\n-521 const bool ivec = true; // Flag deciding if eigenvectors shall be\n-determined\n-522 int nconv; // Number of converged eigenvalues\n-523\n-524 // define what we need: eigenvalues from both ends of the spectrum\n-525 char which[] = \"BE\";\n-526 ARSymStdEig\n-527 dprob(nrows, nev, &A, &WrappedMatrix::multMv, which, ncv, tol, maxit);\n-528\n-529 // set ARPACK verbosity mode if requested\n-530 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n-531\n-532 // find eigenvalues and eigenvectors of A, obtain the eigenvalues\n-533 nconv = dprob.Eigenvalues(ev,ivec);\n-534\n-535 // obtain approximated dominant and least dominant eigenvalue of A\n-536 const _\bR_\be_\ba_\bl& lambda_max = ev[nev-1];\n-537 const _\bR_\be_\ba_\bl& lambda_min = ev[0];\n-538\n-539 // obtain associated approximated eigenvectors of A\n-540 _\bR_\be_\ba_\bl* x_max_raw = dprob.RawEigenvector(nev-1);\n-541 _\bR_\be_\ba_\bl* x_min_raw = dprob.RawEigenvector(0);\n-542\n-543 // obtain approximated spectral condition number of A\n-544 cond_2 = std::abs(lambda_max / lambda_min);\n+202 template\n+_\b2_\b0_\b3 class _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br : public _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br{\n+204 public:\n+205 using typename _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be;\n+206 using typename _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be;\n+207 using typename _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+208 using typename _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+209 using typename _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be;\n+210\n+_\b2_\b3_\b0 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>& op, _\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>& prec,\n+_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose) :\n+231 _\b__\bo_\bp(stackobject_to_shared_ptr(op)),\n+232 _\b__\bp_\br_\be_\bc(stackobject_to_shared_ptr(prec)),\n+233 _\b__\bs_\bp(new _\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt),\n+234 _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn(reduction), _\b__\bm_\ba_\bx_\bi_\bt(maxit), _\b__\bv_\be_\br_\bb_\bo_\bs_\be(verbose), _\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::sequential)\n+235 {\n+236 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(op) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl)\n+237 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"LinearOperator has to be sequential!\");\n+238 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(prec) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl)\n+239 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"Preconditioner has to be sequential!\");\n+240 }\n+241\n+_\b2_\b6_\b2 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br (const _\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\bX_\b,_\bY_\b>& op, const _\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt_\b<_\bX_\b>& sp,\n+_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>& prec,\n+263 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose) :\n+264 _\b__\bo_\bp(stackobject_to_shared_ptr(op)),\n+265 _\b__\bp_\br_\be_\bc(stackobject_to_shared_ptr(prec)),\n+266 _\b__\bs_\bp(stackobject_to_shared_ptr(sp)),\n+267 _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn(reduction), _\b__\bm_\ba_\bx_\bi_\bt(maxit), _\b__\bv_\be_\br_\bb_\bo_\bs_\be(verbose), _\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(op))\n+268 {\n+269 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(op) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(prec))\n+270 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"LinearOperator and Preconditioner must\n+have the same SolverCategory!\");\n+271 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(op) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(sp))\n+272 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"LinearOperator and ScalarProduct must\n+have the same SolverCategory!\");\n+273 }\n+274\n+_\b2_\b9_\b0 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op, std::\n+shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> > prec, const ParameterTree& configuration) :\n+291 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,_\bs_\bt_\bd::make_shared<_\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt>(),prec,\n+292 configuration._\bg_\be_\bt<_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be>(\"reduction\"),\n+293 configuration._\bg_\be_\bt(\"maxit\"),\n+294 configuration._\bg_\be_\bt(\"verbose\"))\n+295 {}\n+296\n+_\b3_\b1_\b3 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr > op, std::\n+shared_ptr > sp, std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bX_\b> >\n+prec, const ParameterTree& configuration) :\n+314 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br(op,sp,prec,\n+315 configuration._\bg_\be_\bt<_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be>(\"reduction\"),\n+316 configuration._\bg_\be_\bt(\"maxit\"),\n+317 configuration._\bg_\be_\bt(\"verbose\"))\n+318 {}\n+319\n+_\b3_\b4_\b0 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br (std::shared_ptr> op,\n+341 std::shared_ptr> sp,\n+342 std::shared_ptr<_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b<_\bX_\b,_\bY_\b>> prec,\n+343 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be reduction, int maxit, int verbose) :\n+344 _\b__\bo_\bp(op),\n+345 _\b__\bp_\br_\be_\bc(prec),\n+346 _\b__\bs_\bp(sp),\n+347 _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn(reduction), _\b__\bm_\ba_\bx_\bi_\bt(maxit), _\b__\bv_\be_\br_\bb_\bo_\bs_\be(verbose),\n+348 _\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by::_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*op))\n+349 {\n+350 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*op) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*prec))\n+351 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"LinearOperator and Preconditioner must\n+have the same SolverCategory!\");\n+352 if(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*op) != _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(*sp))\n+353 DUNE_THROW(_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by, \"LinearOperator and ScalarProduct must\n+have the same SolverCategory!\");\n+354 }\n+355\n+356 // #warning actually we want to have this as the default and just implement\n+the second one\n+357 // //! \\copydoc InverseOperator::apply(X&,Y&,InverseOperatorResult&)\n+358 // virtual void apply (X& x, Y& b, InverseOperatorResult& res)\n+359 // {\n+360 // apply(x,b,_reduction,res);\n+361 // }\n+362\n+363#ifndef DOXYGEN\n+364 // make sure the three-argument apply from the base class does not get\n+shadowed\n+365 // by the redefined four-argument version below\n+366 using _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by;\n+367#endif\n+368\n+_\b3_\b7_\b4 virtual void _\ba_\bp_\bp_\bl_\by (X& x, X& b, double reduction, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt&\n+res)\n+375 {\n+376 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be saved_reduction = _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+377 _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn = reduction;\n+378 this->_\ba_\bp_\bp_\bl_\by(x,b,res);\n+379 _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn = saved_reduction;\n+380 }\n+381\n+_\b3_\b8_\b3 virtual _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\bc_\ba_\bt_\be_\bg_\bo_\br_\by() const\n+384 {\n+385 return _\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by;\n+386 }\n+387\n+_\b3_\b8_\b8 std::string _\bn_\ba_\bm_\be() const{\n+389 std::string _\bn_\ba_\bm_\be = className(*this);\n+390 return _\bn_\ba_\bm_\be.substr(0, _\bn_\ba_\bm_\be.find(\"<\"));\n+391 }\n+392\n+410 template\n+_\b4_\b1_\b1 class _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn {\n+412 public:\n+_\b4_\b1_\b3 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn(const _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br& parent, _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& res)\n+414 : _\b__\bi(0)\n+415 , _\b__\br_\be_\bs(res)\n+416 , _\b__\bp_\ba_\br_\be_\bn_\bt(parent)\n+417 , _\b__\bv_\ba_\bl_\bi_\bd(true)\n+418 {\n+419 res._\bc_\bl_\be_\ba_\br();\n+420 if(_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\bv_\be_\br_\bb_\bo_\bs_\be>0){\n+421 std::cout << \"=== \" << parent._\bn_\ba_\bm_\be() << std::endl;\n+422 if(_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\bv_\be_\br_\bb_\bo_\bs_\be > 1)\n+423 _\b__\bp_\ba_\br_\be_\bn_\bt._\bp_\br_\bi_\bn_\bt_\bH_\be_\ba_\bd_\be_\br(std::cout);\n+424 }\n+425 }\n+426\n+_\b4_\b2_\b7 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn(const _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn&) = delete;\n+_\b4_\b2_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn(_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn&& other)\n+429 : _\b__\bd_\be_\bf_\b0(other._\b__\bd_\be_\bf_\b0)\n+430 , _\b__\bd_\be_\bf(other._\b__\bd_\be_\bf)\n+431 , _\b__\bi(other._\b__\bi)\n+432 , _\b__\bw_\ba_\bt_\bc_\bh(other._\b__\bw_\ba_\bt_\bc_\bh)\n+433 , _\b__\br_\be_\bs(other._\b__\br_\be_\bs)\n+434 , _\b__\bp_\ba_\br_\be_\bn_\bt(other._\b__\bp_\ba_\br_\be_\bn_\bt)\n+435 , _\b__\bv_\ba_\bl_\bi_\bd(other._\b__\bv_\ba_\bl_\bi_\bd)\n+436 {\n+437 other._valid = false;\n+438 }\n+439\n+_\b4_\b4_\b0 _\b~_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn(){\n+441 if(_\b__\bv_\ba_\bl_\bi_\bd)\n+442 _\bf_\bi_\bn_\ba_\bl_\bi_\bz_\be();\n+443 }\n+444\n+_\b4_\b5_\b5 bool _\bs_\bt_\be_\bp(CountType i, _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be def){\n+456 if (!Simd::allTrue(isFinite(def))) // check for inf or NaN\n+457 {\n+458 if (_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\bv_\be_\br_\bb_\bo_\bs_\be>0)\n+459 std::cout << \"=== \" << _\b__\bp_\ba_\br_\be_\bn_\bt._\bn_\ba_\bm_\be() << \": abort due to infinite or NaN\n+defect\"\n+460 << std::endl;\n+461 DUNE_THROW(_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt,\n+462 _\b__\bp_\ba_\br_\be_\bn_\bt._\bn_\ba_\bm_\be() << \": defect=\" << Simd::io(def)\n+463 << \" is infinite or NaN\");\n+464 }\n+465 if(i == 0)\n+466 _\b__\bd_\be_\bf_\b0 = def;\n+467 if(_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\bv_\be_\br_\bb_\bo_\bs_\be > 1){\n+468 if(i!=0)\n+469 _\b__\bp_\ba_\br_\be_\bn_\bt._\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt(std::cout,i,def,_\b__\bd_\be_\bf);\n+470 else\n+471 _\b__\bp_\ba_\br_\be_\bn_\bt._\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt(std::cout,i,def);\n+472 }\n+473 _\b__\bd_\be_\bf = def;\n+474 _\b__\bi = i;\n+475 _\b__\br_\be_\bs._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = (Simd::allTrue(def<_\b__\bd_\be_\bf_\b0*_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn ||\n+def<_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1E-30))); // convergence check\n+476 return _\b__\br_\be_\bs._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd;\n+477 }\n+478\n+479 protected:\n+_\b4_\b8_\b0 void _\bf_\bi_\bn_\ba_\bl_\bi_\bz_\be(){\n+481 _\b__\br_\be_\bs._\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd = (Simd::allTrue(_\b__\bd_\be_\bf<_\b__\bd_\be_\bf_\b0*_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn ||\n+_\b__\bd_\be_\bf<_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be(1E-30)));\n+482 _\b__\br_\be_\bs._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs = _\b__\bi;\n+483 _\b__\br_\be_\bs._\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn = static_cast(Simd::max(_\b__\bd_\be_\bf/_\b__\bd_\be_\bf_\b0));\n+484 _\b__\br_\be_\bs._\bc_\bo_\bn_\bv_\b__\br_\ba_\bt_\be = pow(_\b__\br_\be_\bs._\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn,1.0/_\b__\bi);\n+485 _\b__\br_\be_\bs._\be_\bl_\ba_\bp_\bs_\be_\bd = _\b__\bw_\ba_\bt_\bc_\bh.elapsed();\n+486 if (_\b__\bp_\ba_\br_\be_\bn_\bt._\b__\bv_\be_\br_\bb_\bo_\bs_\be>0) // final print\n+487 {\n+488 std::cout << \"=== rate=\" << _\b__\br_\be_\bs._\bc_\bo_\bn_\bv_\b__\br_\ba_\bt_\be\n+489 << \", T=\" << _\b__\br_\be_\bs._\be_\bl_\ba_\bp_\bs_\be_\bd\n+490 << \", TIT=\" << _\b__\br_\be_\bs._\be_\bl_\ba_\bp_\bs_\be_\bd/_\b__\br_\be_\bs._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n+491 << \", IT=\" << _\b__\br_\be_\bs._\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs << std::endl;\n+492 }\n+493 }\n+494\n+_\b4_\b9_\b5 _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\b__\bd_\be_\bf_\b0 = 0.0, _\b__\bd_\be_\bf = 0.0;\n+_\b4_\b9_\b6 CountType _\b__\bi;\n+_\b4_\b9_\b7 Timer _\b__\bw_\ba_\bt_\bc_\bh;\n+_\b4_\b9_\b8 _\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt& _\b__\br_\be_\bs;\n+_\b4_\b9_\b9 const _\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br& _\b__\bp_\ba_\br_\be_\bn_\bt;\n+_\b5_\b0_\b0 bool _\b__\bv_\ba_\bl_\bi_\bd;\n+501 };\n+502\n+503 protected:\n+_\b5_\b0_\b4 std::shared_ptr> _\b__\bo_\bp;\n+_\b5_\b0_\b5 std::shared_ptr> _\b__\bp_\br_\be_\bc;\n+_\b5_\b0_\b6 std::shared_ptr> _\b__\bs_\bp;\n+_\b5_\b0_\b7 _\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be _\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn;\n+_\b5_\b0_\b8 int _\b__\bm_\ba_\bx_\bi_\bt;\n+_\b5_\b0_\b9 int _\b__\bv_\be_\br_\bb_\bo_\bs_\be;\n+_\b5_\b1_\b0 _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by _\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by;\n+511 };\n+512\n+520 template \n+_\b5_\b2_\b1 class _\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+522 {\n+523 public:\n+_\b5_\b2_\b4 static void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx (ISTLLinearSolver& solver,\n+525 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& matrix)\n+526 {\n+527 static const bool is_direct_solver\n+528 = _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br_\b<_\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b>_\b:_\b:_\bv_\ba_\bl_\bu_\be;\n+529 _\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b<_\bI_\bS_\bT_\bL_\bL_\bi_\bn_\be_\ba_\br_\bS_\bo_\bl_\bv_\be_\br_\b,_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b>_\b:_\b:\n+530_\b _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bs_\b__\bd_\bi_\br_\be_\bc_\bt_\b__\bs_\bo_\bl_\bv_\be_\br_\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx(solver,matrix);\n+531 }\n+532\n+533 protected:\n+538 template \n+_\b5_\b3_\b9 struct _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn\n+540 {\n+_\b5_\b4_\b1 static void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx (ISTLLinearSolver&,\n+542 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx&)\n+543 {}\n+544 };\n 545\n-546 // obtain number of Arnoldi update iterations actually taken\n-547 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n-548\n-549 // compute each residual norm\n-550 _\bR_\be_\ba_\bl* Ax_max_raw = new _\bR_\be_\ba_\bl[nrows];\n-551 _\bR_\be_\ba_\bl* Ax_min_raw = new _\bR_\be_\ba_\bl[nrows];\n-552 A.multMv(x_max_raw,Ax_max_raw);\n-553 A.multMv(x_min_raw,Ax_min_raw);\n-554 _\bR_\be_\ba_\bl r_max_norm = 0.0;\n-555 _\bR_\be_\ba_\bl r_min_norm = 0.0;\n-556 for (int i = 0; i < nrows; ++i)\n-557 {\n-558 r_max_norm += std::pow(Ax_max_raw[i] - lambda_max * x_max_raw[i],2);\n-559 r_min_norm += std::pow(Ax_min_raw[i] - lambda_min * x_min_raw[i],2);\n-560 }\n-561 r_max_norm = std::sqrt(r_max_norm);\n-562 r_min_norm = std::sqrt(r_min_norm);\n-563\n-564 // print verbosity information\n-565 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-566 {\n-567 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n-568 {\n-569 // print some information about the problem\n-570 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained eigenvalues of A by solving \"\n-571 << \"A*x = \u00ce\u00bb*x using the ARPACK++ class ARSym\"\n-572 << \"StdEig:\" << std::endl;\n-573 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A: \"\n-574 << nconv << \" / \" << nev << std::endl;\n-575 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" dominant eigenvalue of A: \"\n-576 << lambda_max << std::endl;\n-577 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" least dominant eigenvalue of A: \"\n-578 << lambda_min << std::endl;\n-579 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" spectral condition number of A: \"\n-580 << cond_2 << std::endl;\n-581 }\n-582 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n-583 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n-584 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = {\" << r_max_norm << \",\"\n-585 << r_min_norm << \"}, \" << \"\u00ce\u00bb = {\"\n-586 << lambda_max << \",\" << lambda_min\n-587 << \"}): cond_2 = \" << cond_2 << std::endl;\n-588 }\n-589\n-590 // free dynamically allocated memory\n-591 delete[] Ax_min_raw;\n-592 delete[] Ax_max_raw;\n-593 delete[] ev;\n-594 }\n-595\n-_\b6_\b0_\b9 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bM_\ba_\bx (const _\bR_\be_\ba_\bl& epsilon,\n-610 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& sigma) const\n-611 {\n-612 // print verbosity information\n-613 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-614 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of the \"\n-615 << \"largest singular value of a matrix which \"\n-616 << \"is assumed to be nonsymmetric.\" << std::endl;\n-617\n-618 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n-619 // and to perform the product A^T*A*v (LU decomposition is not used)\n-620 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n-621 WrappedMatrix A(_\bm_\b_);\n-622\n-623 // get number of rows and columns in A\n-624 const int nrows = A.nrows();\n-625 const int ncols = A.ncols();\n-626\n-627 // assert that A has more rows than columns (extend code later to the\n-opposite case!)\n-628 if (nrows < ncols)\n-629 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix has less rows than \"\n-630 << \"columns (\" << nrows << \"x\" << ncols << \").\"\n-631 << \" This case is not implemented, yet.\");\n-632\n-633 // allocate memory for variables, set parameters\n-634 const int nev = 1; // Number of eigenvalues to compute\n-635 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n-each iteration (0 == auto)\n-636 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n-values) (0 == machine precision)\n-637 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n-iterations allowed (0 == 100*nev)\n-638 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A^T*A\n-639 const bool ivec = true; // Flag deciding if eigenvectors shall be\n-determined\n-640 int nconv; // Number of converged eigenvalues\n-641\n-642 // define what we need: eigenvalues with largest algebraic value\n-643 char which[] = \"LA\";\n-644 ARSymStdEig\n-645 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);\n-646\n-647 // set ARPACK verbosity mode if requested\n-648 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n-649\n-650 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues\n-651 nconv = dprob.Eigenvalues(ev,ivec);\n-652\n-653 // obtain approximated largest eigenvalue of A^T*A\n-654 const _\bR_\be_\ba_\bl& lambda = ev[nev-1];\n-655\n-656 // obtain associated approximated eigenvector of A^T*A\n-657 _\bR_\be_\ba_\bl* x_raw = dprob.RawEigenvector(nev-1);\n-658 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);\n-659\n-660 // obtain number of Arnoldi update iterations actually taken\n-661 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n-662\n-663 // compute residual norm\n-664 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br r(x);\n-665 _\bR_\be_\ba_\bl* AtAx_raw = new _\bR_\be_\ba_\bl[ncols];\n-666 A.multMtMv(x_raw,AtAx_raw);\n-667 WrappedMatrix::arrayToDomainBlockVector(AtAx_raw,r);\n-668 r.axpy(-lambda,x);\n-669 const _\bR_\be_\ba_\bl r_norm = r.two_norm();\n-670\n-671 // calculate largest singular value of A (note that\n-672 // x is right-singular / left-singular vector of A)\n-673 sigma = std::sqrt(lambda);\n-674\n-675 // print verbosity information\n-676 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-677 {\n-678 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n-679 {\n-680 // print some information about the problem\n-681 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained singular values of A by sol\"\n-682 << \"ving (A^T*A)*x = \u00cf\u0083\u00c2\u00b2*x using the ARPACK++ \"\n-683 << \"class ARSymStdEig:\" << std::endl;\n-684 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A^T*A: \"\n-685 << nconv << \" / \" << nev << std::endl;\n-686 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" largest eigenvalue of A^T*A: \"\n-687 << lambda << std::endl;\n-688 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" => largest singular value of A: \"\n-689 << sigma << std::endl;\n-690 }\n-691 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n-692 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n-693 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n-694 << \"\u00cf\u0083 = \" << sigma << std::endl;\n-695 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n-696 {\n-697 // print approximated right-singular / left-singular vector\n-698 // via DUNE-ISTL I/O methods\n-699 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n-700 }\n-701 }\n-702\n-703 // free dynamically allocated memory\n-704 delete[] AtAx_raw;\n-705 delete[] ev;\n-706 }\n-707\n-_\b7_\b2_\b1 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bM_\bi_\bn (const _\bR_\be_\ba_\bl& epsilon,\n-722 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br& x, _\bR_\be_\ba_\bl& sigma) const\n-723 {\n-724 // print verbosity information\n-725 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-726 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of the \"\n-727 << \"smallest singular value of a matrix which \"\n-728 << \"is assumed to be nonsymmetric.\" << std::endl;\n-729\n-730 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n-731 // and to perform the product A^T*A*v (LU decomposition is not used)\n-732 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n-733 WrappedMatrix A(_\bm_\b_);\n-734\n-735 // get number of rows and columns in A\n-736 const int nrows = A.nrows();\n-737 const int ncols = A.ncols();\n-738\n-739 // assert that A has more rows than columns (extend code later to the\n-opposite case!)\n-740 if (nrows < ncols)\n-741 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix has less rows than \"\n-742 << \"columns (\" << nrows << \"x\" << ncols << \").\"\n-743 << \" This case is not implemented, yet.\");\n-744\n-745 // allocate memory for variables, set parameters\n-746 const int nev = 1; // Number of eigenvalues to compute\n-747 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n-each iteration (0 == auto)\n-748 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n-values) (0 == machine precision)\n-749 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n-iterations allowed (0 == 100*nev)\n-750 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A^T*A\n-751 const bool ivec = true; // Flag deciding if eigenvectors shall be\n-determined\n-752 int nconv; // Number of converged eigenvalues\n-753\n-754 // define what we need: eigenvalues with smallest algebraic value\n-755 char which[] = \"SA\";\n-756 ARSymStdEig\n-757 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);\n-758\n-759 // set ARPACK verbosity mode if requested\n-760 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n-761\n-762 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues\n-763 nconv = dprob.Eigenvalues(ev,ivec);\n-764\n-765 // obtain approximated smallest eigenvalue of A^T*A\n-766 const _\bR_\be_\ba_\bl& lambda = ev[nev-1];\n-767\n-768 // obtain associated approximated eigenvector of A^T*A\n-769 _\bR_\be_\ba_\bl* x_raw = dprob.RawEigenvector(nev-1);\n-770 WrappedMatrix::arrayToDomainBlockVector(x_raw,x);\n-771\n-772 // obtain number of Arnoldi update iterations actually taken\n-773 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n-774\n-775 // compute residual norm\n-776 _\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br r(x);\n-777 _\bR_\be_\ba_\bl* AtAx_raw = new _\bR_\be_\ba_\bl[ncols];\n-778 A.multMtMv(x_raw,AtAx_raw);\n-779 WrappedMatrix::arrayToDomainBlockVector(AtAx_raw,r);\n-780 r.axpy(-lambda,x);\n-781 const _\bR_\be_\ba_\bl r_norm = r.two_norm();\n-782\n-783 // calculate smallest singular value of A (note that\n-784 // x is right-singular / left-singular vector of A)\n-785 sigma = std::sqrt(lambda);\n-786\n-787 // print verbosity information\n-788 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-789 {\n-790 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n-791 {\n-792 // print some information about the problem\n-793 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained singular values of A by sol\"\n-794 << \"ving (A^T*A)*x = \u00cf\u0083\u00c2\u00b2*x using the ARPACK++ \"\n-795 << \"class ARSymStdEig:\" << std::endl;\n-796 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A^T*A: \"\n-797 << nconv << \" / \" << nev << std::endl;\n-798 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" smallest eigenvalue of A^T*A: \"\n-799 << lambda << std::endl;\n-800 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" => smallest singular value of A: \"\n-801 << sigma << std::endl;\n-802 }\n-803 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n-804 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n-805 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = \" << r_norm << \"): \"\n-806 << \"\u00cf\u0083 = \" << sigma << std::endl;\n-807 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 2)\n-808 {\n-809 // print approximated right-singular / left-singular vector\n-810 // via DUNE-ISTL I/O methods\n-811 _\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br(std::cout,x,_\bb_\bl_\ba_\bn_\bk_\b_+\"x\",_\bb_\bl_\ba_\bn_\bk_\b_+\"row\");\n-812 }\n-813 }\n-814\n-815 // free dynamically allocated memory\n-816 delete[] AtAx_raw;\n-817 delete[] ev;\n-818 }\n-819\n-_\b8_\b3_\b0 inline void _\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bC_\bo_\bn_\bd_\b2 (const _\bR_\be_\ba_\bl& epsilon, _\bR_\be_\ba_\bl& cond_2) const\n-831 {\n-832 // print verbosity information\n-833 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-834 std::cout << _\bt_\bi_\bt_\bl_\be_\b_ << \"Computing an approximation of the \"\n-835 << \"spectral condition number of a matrix which \"\n-836 << \"is assumed to be nonsymmetric.\" << std::endl;\n-837\n-838 // use type ArPackPlusPlus_BCRSMatrixWrapper to store matrix information\n-839 // and to perform the product A^T*A*v (LU decomposition is not used)\n-840 typedef Impl::ArPackPlusPlus_BCRSMatrixWrapper WrappedMatrix;\n-841 WrappedMatrix A(_\bm_\b_);\n-842\n-843 // get number of rows and columns in A\n-844 const int nrows = A.nrows();\n-845 const int ncols = A.ncols();\n-846\n-847 // assert that A has more rows than columns (extend code later to the\n-opposite case!)\n-848 if (nrows < ncols)\n-849 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"Matrix has less rows than \"\n-850 << \"columns (\" << nrows << \"x\" << ncols << \").\"\n-851 << \" This case is not implemented, yet.\");\n-852\n-853 // allocate memory for variables, set parameters\n-854 const int nev = 2; // Number of eigenvalues to compute\n-855 int ncv = std::min(20, nrows); // Number of Arnoldi vectors generated at\n-each iteration (0 == auto)\n-856 const _\bR_\be_\ba_\bl tol = epsilon; // Stopping tolerance (relative accuracy of Ritz\n-values) (0 == machine precision)\n-857 const int maxit = _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_*nev; // Maximum number of Arnoldi update\n-iterations allowed (0 == 100*nev)\n-858 _\bR_\be_\ba_\bl* ev = new _\bR_\be_\ba_\bl[nev]; // Computed eigenvalues of A^T*A\n-859 const bool ivec = true; // Flag deciding if eigenvectors shall be\n-determined\n-860 int nconv; // Number of converged eigenvalues\n-861\n-862 // define what we need: eigenvalues from both ends of the spectrum\n-863 char which[] = \"BE\";\n-864 ARSymStdEig\n-865 dprob(ncols, nev, &A, &WrappedMatrix::multMtMv, which, ncv, tol, maxit);\n-866\n-867 // set ARPACK verbosity mode if requested\n-868 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 3) dprob.Trace();\n-869\n-870 // find eigenvalues and eigenvectors of A^T*A, obtain the eigenvalues\n-871 nconv = dprob.Eigenvalues(ev,ivec);\n-872\n-873 // obtain approximated largest and smallest eigenvalue of A^T*A\n-874 const _\bR_\be_\ba_\bl& lambda_max = ev[nev-1];\n-875 const _\bR_\be_\ba_\bl& lambda_min = ev[0];\n-876\n-877 // obtain associated approximated eigenvectors of A^T*A\n-878 _\bR_\be_\ba_\bl* x_max_raw = dprob.RawEigenvector(nev-1);\n-879 _\bR_\be_\ba_\bl* x_min_raw = dprob.RawEigenvector(0);\n-880\n-881 // obtain number of Arnoldi update iterations actually taken\n-882 _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ = dprob.GetIter();\n-883\n-884 // compute each residual norm\n-885 _\bR_\be_\ba_\bl* AtAx_max_raw = new _\bR_\be_\ba_\bl[ncols];\n-886 _\bR_\be_\ba_\bl* AtAx_min_raw = new _\bR_\be_\ba_\bl[ncols];\n-887 A.multMtMv(x_max_raw,AtAx_max_raw);\n-888 A.multMtMv(x_min_raw,AtAx_min_raw);\n-889 _\bR_\be_\ba_\bl r_max_norm = 0.0;\n-890 _\bR_\be_\ba_\bl r_min_norm = 0.0;\n-891 for (int i = 0; i < ncols; ++i)\n-892 {\n-893 r_max_norm += std::pow(AtAx_max_raw[i] - lambda_max * x_max_raw[i],2);\n-894 r_min_norm += std::pow(AtAx_min_raw[i] - lambda_min * x_min_raw[i],2);\n-895 }\n-896 r_max_norm = std::sqrt(r_max_norm);\n-897 r_min_norm = std::sqrt(r_min_norm);\n-898\n-899 // calculate largest and smallest singular value of A\n-900 const _\bR_\be_\ba_\bl sigma_max = std::sqrt(lambda_max);\n-901 const _\bR_\be_\ba_\bl sigma_min = std::sqrt(lambda_min);\n-902\n-903 // obtain approximated spectral condition number of A\n-904 cond_2 = sigma_max / sigma_min;\n-905\n-906 // print verbosity information\n-907 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 0)\n-908 {\n-909 if (_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_ > 1)\n-910 {\n-911 // print some information about the problem\n-912 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Obtained singular values of A by sol\"\n-913 << \"ving (A^T*A)*x = \u00cf\u0083\u00c2\u00b2*x using the ARPACK++ \"\n-914 << \"class ARSymStdEig:\" << std::endl;\n-915 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" converged eigenvalues of A^T*A: \"\n-916 << nconv << \" / \" << nev << std::endl;\n-917 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" largest eigenvalue of A^T*A: \"\n-918 << lambda_max << std::endl;\n-919 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" smallest eigenvalue of A^T*A: \"\n-920 << lambda_min << std::endl;\n-921 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" => largest singular value of A: \"\n-922 << sigma_max << std::endl;\n-923 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \" => smallest singular value of A: \"\n-924 << sigma_min << std::endl;\n-925 }\n-926 std::cout << _\bb_\bl_\ba_\bn_\bk_\b_ << \"Result (\"\n-927 << \"#iterations = \" << _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ << \", \"\n-928 << \"\u00e2\u0095\u0091residual\u00e2\u0095\u0091_2 = {\" << r_max_norm << \",\"\n-929 << r_min_norm << \"}, \" << \"\u00cf\u0083 = {\"\n-930 << sigma_max << \",\" << sigma_min\n-931 << \"}): cond_2 = \" << cond_2 << std::endl;\n-932 }\n-933\n-934 // free dynamically allocated memory\n-935 delete[] AtAx_min_raw;\n-936 delete[] AtAx_max_raw;\n-937 delete[] ev;\n-938 }\n-939\n-_\b9_\b4_\b4 inline unsigned int _\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bC_\bo_\bu_\bn_\bt () const\n-945 {\n-946 if (_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_ == 0)\n-947 DUNE_THROW(_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br,\"No algorithm applied, yet.\");\n-948\n-949 return _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_;\n-950 }\n-951\n-952 protected:\n-953 // parameters related to iterative eigenvalue algorithms\n-_\b9_\b5_\b4 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& _\bm_\b_;\n-_\b9_\b5_\b5 const unsigned int _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_;\n-956\n-957 // verbosity setting\n-_\b9_\b5_\b8 const unsigned int _\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_;\n-959\n-960 // memory for storing temporary variables (mutable as they shall\n-961 // just be effectless auxiliary variables of the const apply*(...)\n-962 // methods)\n-_\b9_\b6_\b3 mutable unsigned int _\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_;\n-964\n-965 // constants for printing verbosity information\n-_\b9_\b6_\b6 const std::string _\bt_\bi_\bt_\bl_\be_\b_;\n-_\b9_\b6_\b7 const std::string _\bb_\bl_\ba_\bn_\bk_\b_;\n-968 };\n-969\n-972} // namespace Dune\n-973\n-974#endif // HAVE_ARPACKPP\n-975\n-976#endif // DUNE_ISTL_EIGENVALUE_ARPACKPP_HH\n-_\bi_\bo_\b._\bh_\bh\n-Some generic functions for pretty printing vectors and matrices.\n-_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl_\b._\bh_\bh\n-Helper functions for determining the vector/matrix block level.\n-_\bi_\bs_\bt_\bl_\be_\bx_\bc_\be_\bp_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-_\bb_\bv_\be_\bc_\bt_\bo_\br_\b._\bh_\bh\n-This file implements a vector space as a tensor product of a given vector\n-space. The number of compon...\n-_\bD_\bu_\bn_\be_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bv_\be_\bc_\bt_\bo_\br\n-void printvector(std::ostream &s, const V &v, std::string title, std::string\n-rowtext, int columns=1, int width=10, int precision=2)\n-Print an ISTL vector.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn io.hh:89\n+550 template \n+_\b5_\b5_\b1 struct _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn\n+552 {\n+_\b5_\b5_\b3 static void _\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx (ISTLLinearSolver& solver,\n+554 const _\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx& matrix)\n+555 {\n+556 solver.setMatrix(matrix);\n+557 }\n+558 };\n+559 };\n+560\n+564}\n+565\n+566#endif\n+_\bs_\bc_\ba_\bl_\ba_\br_\bp_\br_\bo_\bd_\bu_\bc_\bt_\bs_\b._\bh_\bh\n+Define base class for scalar product and norm.\n+_\bs_\bo_\bl_\bv_\be_\br_\bt_\by_\bp_\be_\b._\bh_\bh\n+Templates characterizing the type of a solver.\n+_\bp_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br_\b._\bh_\bh\n+_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\bs_\b._\bh_\bh\n+Define general, extensible interface for operators. The available\n+implementation wraps a matrix.\n+_\bs_\bt_\bd\n+STL namespace.\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n+_\bD_\bu_\bn_\be_\b:_\b:_\bg_\be_\bt\n+PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::\n+VertexProperties, EP, VM, EM > >::Type get(const Amg::VertexVisitedTag &tag,\n+Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > &graph)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn dependency.hh:293\n _\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx\n A sparse block matrix with compressed row storage.\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:466\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bC_\bR_\bS_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< B >::field_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bcrsmatrix.hh:488\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br\n-A vector of blocks with memory management.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:395\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n-typename Imp::BlockTraits< B >::field_type field_type\n-export the type representing the field\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:401\n-_\bD_\bu_\bn_\be_\b:_\b:_\bB_\bl_\bo_\bc_\bk_\bV_\be_\bc_\bt_\bo_\br_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-A::size_type size_type\n-The type for the index access.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn bvector.hh:410\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n-Wrapper to use a range of ARPACK++ eigenvalue solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:245\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bv_\be_\br_\bb_\bo_\bs_\bi_\bt_\by_\b__\bl_\be_\bv_\be_\bl_\b_\n-const unsigned int verbosity_level_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:958\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bg_\be_\bt_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bC_\bo_\bu_\bn_\bt\n-unsigned int getIterationCount() const\n-Return the number of iterations in last application of an algorithm.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:944\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bt_\bi_\bt_\bl_\be_\b_\n-const std::string title_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:966\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bR_\be_\ba_\bl\n-BlockVector::field_type Real\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:247\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\ba_\bx_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be\n-void computeSymMaxMagnitude(const Real &epsilon, BlockVector &x, Real &lambda)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bA_\bb_\bo_\br_\bt\n+Thrown when a solver aborts due to some problem.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:46\n+_\bD_\bu_\bn_\be_\b:_\b:_\bL_\bi_\bn_\be_\ba_\br_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+A linear operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn operators.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bP_\br_\be_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\be_\br\n+Base class for matrix free definition of preconditioners.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn preconditioner.hh:32\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Base class for scalar product and norm computation.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\be_\bq_\bS_\bc_\ba_\bl_\ba_\br_\bP_\br_\bo_\bd_\bu_\bc_\bt\n+Default implementation for the scalar case.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scalarproducts.hh:168\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+Statistics about the application of an inverse operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:48\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt\n+InverseOperatorResult()\n+Default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:50\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bd_\bi_\bt_\bi_\bo_\bn_\b__\be_\bs_\bt_\bi_\bm_\ba_\bt_\be\n+double condition_estimate\n+Estimate of condition number.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:79\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\be_\bl_\ba_\bp_\bs_\be_\bd\n+double elapsed\n+Elapsed time in seconds.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs\n+int iterations\n+Number of iterations.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:67\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn\n+double reduction\n+Reduction achieved: .\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bl_\be_\ba_\br\n+void clear()\n+Resets all data.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:56\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\b__\br_\ba_\bt_\be\n+double conv_rate\n+Convergence rate (average reduction per step)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:76\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\bR_\be_\bs_\bu_\bl_\bt_\b:_\b:_\bc_\bo_\bn_\bv_\be_\br_\bg_\be_\bd\n+bool converged\n+True if convergence criterion has been met.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:73\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+Abstract base class for all solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:99\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bH_\be_\ba_\bd_\be_\br\n+void printHeader(std::ostream &s) const\n+helper function for printing header of solver output\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:163\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\b~_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br\n+virtual ~InverseOperator()\n+Destructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:156\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt\n+void printOutput(std::ostream &s, const CountType &iter, const DataType &norm)\n const\n-Assume the matrix to be square, symmetric and perform IRLM to compute an\n-approximation lambda of its ...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:289\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bM_\bi_\bn_\bM_\ba_\bg_\bn_\bi_\bt_\bu_\bd_\be\n-void computeSymMinMagnitude(const Real &epsilon, BlockVector &x, Real &lambda)\n-const\n-Assume the matrix to be square, symmetric and perform IRLM to compute an\n-approximation lambda of its ...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:391\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bm_\b_\n-const BCRSMatrix & m_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:954\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\bM_\ba_\bx_\b_\n-const unsigned int nIterationsMax_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:955\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bb_\bl_\ba_\bn_\bk_\b_\n-const std::string blank_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:967\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs\n-ArPackPlusPlus_Algorithms(const BCRSMatrix &m, const unsigned int\n-nIterationsMax=100000, const unsigned int verbosity_level=0)\n-Construct from required parameters.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:268\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bS_\by_\bm_\bC_\bo_\bn_\bd_\b2\n-void computeSymCond2(const Real &epsilon, Real &cond_2) const\n-Assume the matrix to be square, symmetric and perform IRLM to compute an\n-approximation of its spectra...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:493\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bn_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bs_\b_\n-unsigned int nIterations_\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:963\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bM_\bi_\bn\n-void computeNonSymMin(const Real &epsilon, BlockVector &x, Real &sigma) const\n-Assume the matrix to be nonsymmetric and perform IRLM to compute an\n-approximation sigma of its smalle...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:721\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bC_\bo_\bn_\bd_\b2\n-void computeNonSymCond2(const Real &epsilon, Real &cond_2) const\n-Assume the matrix to be nonsymmetric and perform IRLM to compute an\n-approximation of its spectral con...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:830\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\br_\bP_\ba_\bc_\bk_\bP_\bl_\bu_\bs_\bP_\bl_\bu_\bs_\b__\bA_\bl_\bg_\bo_\br_\bi_\bt_\bh_\bm_\bs_\b:_\b:_\bc_\bo_\bm_\bp_\bu_\bt_\be_\bN_\bo_\bn_\bS_\by_\bm_\bM_\ba_\bx\n-void computeNonSymMax(const Real &epsilon, BlockVector &x, Real &sigma) const\n-Assume the matrix to be nonsymmetric and perform IRLM to compute an\n-approximation sigma of its larges...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn arpackpp.hh:609\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n+helper function for printing solver output\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:185\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bp_\br_\bi_\bn_\bt_\bO_\bu_\bt_\bp_\bu_\bt\n+void printOutput(std::ostream &s, const CountType &iter, const DataType &norm,\n+const DataType &norm_old) const\n+helper function for printing solver output\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:172\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, Y &b, double reduction, InverseOperatorResult &res)=0\n+apply inverse operator, with given convergence criteria.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br_\b__\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+Simd::Scalar< real_type > scalar_real_type\n+scalar type underlying the field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:114\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\ba_\bn_\bg_\be_\b__\bt_\by_\bp_\be\n+Y range_type\n+Type of the range of the operator to be inverted.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:105\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bn_\bo_\br_\bm_\bS_\bp_\ba_\bc_\bi_\bn_\bg\n+@ normSpacing\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:160\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\bS_\bp_\ba_\bc_\bi_\bn_\bg\n+@ iterationSpacing\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:160\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bd_\bo_\bm_\ba_\bi_\bn_\b__\bt_\by_\bp_\be\n+X domain_type\n+Type of the domain of the operator to be inverted.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:102\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, Y &b, InverseOperatorResult &res)=0\n+Apply inverse operator,.\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+X::field_type field_type\n+The field type of the operator.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:108\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+FieldTraits< field_type >::real_type real_type\n+The real type of the field type (is the same if using real numbers, but differs\n+for std::complex)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:111\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\be_\br_\bs_\be_\bO_\bp_\be_\br_\ba_\bt_\bo_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const =0\n+Category of the solver (see SolverCategory::Category)\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n+Base class for all implementations of iterative solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:203\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n+IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n+shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n+X > > prec, const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:313\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n+IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n+shared_ptr< Preconditioner< X, X > > prec, const ParameterTree &configuration)\n+Constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:290\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\ba_\bp_\bp_\bl_\by\n+virtual void apply(X &x, X &b, double reduction, InverseOperatorResult &res)\n+Apply inverse operator with given reduction factor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:374\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bs_\bp\n+std::shared_ptr< const ScalarProduct< X > > _sp\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:506\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n+IterativeSolver(std::shared_ptr< const LinearOperator< X, Y > > op, std::\n+shared_ptr< const ScalarProduct< X > > sp, std::shared_ptr< Preconditioner< X,\n+Y > > prec, scalar_real_type reduction, int maxit, int verbose)\n+General constructor to initialize an iterative solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:340\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bn_\ba_\bm_\be\n+std::string name() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:388\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n+IterativeSolver(const LinearOperator< X, Y > &op, Preconditioner< X, Y > &prec,\n+scalar_real_type reduction, int maxit, int verbose)\n+General constructor to initialize an iterative solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:230\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bo_\bp\n+std::shared_ptr< const LinearOperator< X, Y > > _op\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:504\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bm_\ba_\bx_\bi_\bt\n+int _maxit\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:508\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bv_\be_\br_\bb_\bo_\bs_\be\n+int _verbose\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:509\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\br_\be_\bd_\bu_\bc_\bt_\bi_\bo_\bn\n+scalar_real_type _reduction\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:507\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br\n+IterativeSolver(const LinearOperator< X, Y > &op, const ScalarProduct< X > &sp,\n+Preconditioner< X, Y > &prec, scalar_real_type reduction, int maxit, int\n+verbose)\n+General constructor to initialize an iterative solver.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:262\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+SolverCategory::Category _category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:510\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\b__\bp_\br_\be_\bc\n+std::shared_ptr< Preconditioner< X, Y > > _prec\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:505\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+virtual SolverCategory::Category category() const\n+Category of the solver (see SolverCategory::Category)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:383\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+Class for controlling iterative methods.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:411\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+Iteration(const IterativeSolver &parent, InverseOperatorResult &res)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:413\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+Iteration(Iteration &&other)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:428\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\br_\be_\bs\n+InverseOperatorResult & _res\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:498\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bp_\ba_\br_\be_\bn_\bt\n+const IterativeSolver & _parent\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:499\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bw_\ba_\bt_\bc_\bh\n+Timer _watch\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:497\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+Iteration(const Iteration &)=delete\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bi\n+CountType _i\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:496\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bd_\be_\bf_\b0\n+real_type _def0\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:495\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\bt_\be_\bp\n+bool step(CountType i, real_type def)\n+registers the iteration step, checks for invalid defect norm and convergence.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:455\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bf_\bi_\bn_\ba_\bl_\bi_\bz_\be\n+void finalize()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:480\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bd_\be_\bf\n+real_type _def\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:495\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b~_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn\n+~Iteration()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:440\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bv_\be_\bS_\bo_\bl_\bv_\be_\br_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\b__\bv_\ba_\bl_\bi_\bd\n+bool _valid\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:500\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br\n+Helper class for notifying a DUNE-ISTL linear solver about a change of the\n+iteration matrix object in...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:522\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:524\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn\n+Implementation that works together with iterative ISTL solvers, e.g. Dune::\n+CGSolver or Dune::BiCGSTAB...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:540\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+static void setMatrix(ISTLLinearSolver &, const BCRSMatrix &)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:541\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bH_\be_\bl_\bp_\be_\br_\b:_\b:_\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bt_\br_\bu_\be_\b,_\b _\bD_\bu_\bm_\bm_\by_\b _\b>_\b:_\b:_\bs_\be_\bt_\bM_\ba_\bt_\br_\bi_\bx\n+static void setMatrix(ISTLLinearSolver &solver, const BCRSMatrix &matrix)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solver.hh:553\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Categories for the solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:22\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+Category\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:23\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bs_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl\n+@ sequential\n+Category for sequential solvers.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:25\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n+static Category category(const OP &op, decltype(op.category()) *=nullptr)\n+Helperfunction to extract the solver category either from an enum, or from the\n+newly introduced virtu...\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bn_\bv_\ba_\bl_\bi_\bd_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:54\n+_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bs_\bD_\bi_\br_\be_\bc_\bt_\bS_\bo_\bl_\bv_\be_\br\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvertype.hh:16\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00227.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00227.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixredistribute.hh File Reference\n+dune-istl: scaledidmatrix.hh File Reference\n \n \n \n \n \n \n \n@@ -71,86 +71,49 @@\n \n
    \n
    \n
    \n \n-
    matrixredistribute.hh File Reference
    \n+Namespaces
    \n+
    scaledidmatrix.hh File Reference
    \n
    \n
    \n \n-

    Functionality for redistributing a sparse matrix. \n+

    This file implements a quadratic matrix of fixed size which is a multiple of the identity. \n More...

    \n-
    #include <memory>
    \n-#include "repartition.hh"
    \n+
    #include <cmath>
    \n+#include <cstddef>
    \n+#include <complex>
    \n+#include <iostream>
    \n #include <dune/common/exceptions.hh>
    \n-#include <dune/common/parallel/indexset.hh>
    \n-#include <dune/istl/owneroverlapcopy.hh>
    \n-#include <dune/istl/paamg/pinfo.hh>
    \n+#include <dune/common/fmatrix.hh>
    \n+#include <dune/common/diagonalmatrix.hh>
    \n+#include <dune/common/ftraits.hh>
    \n
    \n

    Go to the source code of this file.

    \n \n \n-\n+\n+\n \n-\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n \n

    \n Classes

    struct  Dune::RedistributeInformation< T >
    class  Dune::ScaledIdentityMatrix< K, n >
     A multiple of the identity matrix of static size. More...
     
    class  Dune::RedistributeInformation< OwnerOverlapCopyCommunication< T, T1 > >
    struct  Dune::DenseMatrixAssigner< DenseMatrix, ScaledIdentityMatrix< field, N > >
     
    struct  Dune::CommMatrixRowSize< M, RI >
     Utility class to communicate and set the row sizes of a redistributed matrix. More...
     
    struct  Dune::CommMatrixSparsityPattern< M, I >
     Utility class to communicate and build the sparsity pattern of a redistributed matrix. More...
     
    struct  Dune::CommPolicy< CommMatrixSparsityPattern< M, I > >
     
    struct  Dune::CommMatrixRow< M, I >
     Utility class for comunicating the matrix entries. More...
     
    struct  Dune::CommPolicy< CommMatrixRow< M, I > >
     
    struct  Dune::MatrixRowSizeGatherScatter< M, I, RI >
     
    struct  Dune::MatrixCopyRowSizeGatherScatter< M, I, RI >
     
    struct  Dune::MatrixSparsityPatternGatherScatter< M, I >
     
    struct  Dune::MatrixRowGatherScatter< M, I >
    struct  Dune::FieldTraits< ScaledIdentityMatrix< K, n > >
     
    \n \n \n \n-

    \n Namespaces

    namespace  Dune
     
    \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n

    \n-Functions

    template<typename M , typename C >
    void Dune::redistributeSparsityPattern (M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
     
    template<typename M , typename C >
    void Dune::redistributeMatrixEntries (M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
     
    template<typename M , typename C >
    void Dune::redistributeMatrix (M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
     Redistribute a matrix according to given domain decompositions.
     
    template<typename M >
    void Dune::redistributeMatrixEntries (M &origMatrix, M &newMatrix, Dune::Amg::SequentialInformation &origComm, Dune::Amg::SequentialInformation &newComm, RedistributeInformation< Dune::Amg::SequentialInformation > &ri)
     
    template<typename M >
    void Dune::redistributeMatrix (M &origMatrix, M &newMatrix, Dune::Amg::SequentialInformation &origComm, Dune::Amg::SequentialInformation &newComm, RedistributeInformation< Dune::Amg::SequentialInformation > &ri)
     
    \n

    Detailed Description

    \n-

    Functionality for redistributing a sparse matrix.

    \n-
    Author
    Markus Blatt
    \n+

    This file implements a quadratic matrix of fixed size which is a multiple of the identity.

    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,80 +1,36 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs | _\bF_\bu_\bn_\bc_\bt_\bi_\bo_\bn_\bs\n-matrixredistribute.hh File Reference\n-Functionality for redistributing a sparse matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n-#include \n-#include \"_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n+_\bC_\bl_\ba_\bs_\bs_\be_\bs | _\bN_\ba_\bm_\be_\bs_\bp_\ba_\bc_\be_\bs\n+scaledidmatrix.hh File Reference\n+This file implements a quadratic matrix of fixed size which is a multiple of\n+the identity. _\bM_\bo_\br_\be_\b._\b._\b.\n+#include \n+#include \n+#include \n+#include \n #include \n-#include \n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh>\n+#include \n+#include \n+#include \n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bs_\bo_\bu_\br_\bc_\be_\b _\bc_\bo_\bd_\be_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n C\bCl\bla\bas\bss\bse\bes\bs\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b _\b>\n+ class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>\n+\u00a0 A multiple of the identity matrix of static size. _\bM_\bo_\br_\be_\b._\b._\b.\n \u00a0\n- class \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>\n- _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bf_\bi_\be_\bl_\bd_\b,_\b _\bN\n+ _\b>_\b _\b>\n \u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b<_\b _\bM_\b,_\b _\bR_\bI_\b _\b>\n-\u00a0 Utility class to communicate and set the row sizes of a redistributed\n- matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>\n-\u00a0 Utility class to communicate and build the sparsity pattern of a\n- redistributed matrix. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>\n-\u00a0 Utility class for comunicating the matrix entries. _\bM_\bo_\br_\be_\b._\b._\b.\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bI_\b,_\b _\bR_\bI_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bI_\b,_\b _\bR_\bI_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bI_\b _\b>\n-\u00a0\n-struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\b _\bM_\b,_\b _\bI_\b _\b>\n+struct \u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>\n \u00a0\n N\bNa\bam\bme\bes\bsp\bpa\bac\bce\bes\bs\n namespace \u00a0 _\bD_\bu_\bn_\be\n \u00a0\n-F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn (M &origMatrix, M &newMatrix, C\n- &origComm, C &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< C > &ri)\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs (M &origMatrix, M &newMatrix, C\n- &origComm, C &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< C > &ri)\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx (M &origMatrix, M &newMatrix, C &origComm, C\n- &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< C > &ri)\n-\u00a0 Redistribute a matrix according to given domain decompositions.\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs (M &origMatrix, M &newMatrix, _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:\n- _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn &origComm, _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n- &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn >\n- &ri)\n-\u00a0\n-template\n-void\u00a0 _\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx (M &origMatrix, M &newMatrix, _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:\n- _\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn &origComm, _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n- &newComm, _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn< _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn >\n- &ri)\n-\u00a0\n *\b**\b**\b**\b**\b* D\bDe\bet\bta\bai\bil\ble\bed\bd D\bDe\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn *\b**\b**\b**\b**\b*\n-Functionality for redistributing a sparse matrix.\n- Author\n- Markus Blatt\n+This file implements a quadratic matrix of fixed size which is a multiple of\n+the identity.\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00227_source.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00227_source.html", "unified_diff": "@@ -1,15 +1,15 @@\n \n \n \n \n \n \n \n-dune-istl: matrixredistribute.hh Source File\n+dune-istl: scaledidmatrix.hh Source File\n \n \n \n \n \n \n \n@@ -74,996 +74,626 @@\n \n
    \n \n
    \n
    \n
    \n-
    matrixredistribute.hh
    \n+
    scaledidmatrix.hh
    \n
    \n
    \n Go to the documentation of this file.
    1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
    \n
    2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
    \n
    3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    \n
    4// vi: set et ts=4 sw=2 sts=2:
    \n-
    5#ifndef DUNE_ISTL_MATRIXREDISTRIBUTE_HH
    \n-
    6#define DUNE_ISTL_MATRIXREDISTRIBUTE_HH
    \n-
    7#include <memory>
    \n-
    8#include "repartition.hh"
    \n-
    9#include <dune/common/exceptions.hh>
    \n-
    10#include <dune/common/parallel/indexset.hh>
    \n-\n-\n-
    18namespace Dune
    \n-
    19{
    \n-
    20 template<typename T>
    \n-
    \n-\n-
    22 {
    \n-
    \n-
    23 bool isSetup() const
    \n-
    24 {
    \n-
    25 return false;
    \n-
    26 }
    \n-
    \n-
    27 template<class D>
    \n-
    \n-
    28 void redistribute([[maybe_unused]] const D& from, [[maybe_unused]] D& to) const
    \n-
    29 {}
    \n-
    \n-
    30
    \n-
    31 template<class D>
    \n-
    \n-
    32 void redistributeBackward([[maybe_unused]] D& from, [[maybe_unused]]const D& to) const
    \n-
    33 {}
    \n-
    \n-
    34
    \n-
    \n-\n-
    36 {}
    \n-
    \n-
    37
    \n-
    \n-
    38 void setNoRows([[maybe_unused]] std::size_t size)
    \n-
    39 {}
    \n-
    \n-
    40
    \n-
    \n-
    41 void setNoCopyRows([[maybe_unused]] std::size_t size)
    \n-
    42 {}
    \n-
    \n-
    43
    \n-
    \n-
    44 void setNoBackwardsCopyRows([[maybe_unused]] std::size_t size)
    \n-
    45 {}
    \n-
    \n-
    46
    \n-
    \n-
    47 std::size_t getRowSize([[maybe_unused]] std::size_t index) const
    \n-
    48 {
    \n-
    49 return -1;
    \n-
    50 }
    \n-
    \n-
    51
    \n-
    \n-
    52 std::size_t getCopyRowSize([[maybe_unused]] std::size_t index) const
    \n-
    53 {
    \n-
    54 return -1;
    \n-
    55 }
    \n-
    \n-
    56
    \n-
    \n-
    57 std::size_t getBackwardsCopyRowSize([[maybe_unused]] std::size_t index) const
    \n-
    58 {
    \n-
    59 return -1;
    \n-
    60 }
    \n-
    \n-
    61
    \n-
    62 };
    \n-
    \n-
    63
    \n-
    64#if HAVE_MPI
    \n-
    65 template<typename T, typename T1>
    \n-
    \n-\n-
    67 {
    \n-
    68 public:
    \n-\n-
    70
    \n-
    \n-\n-
    72 : interface(), setup_(false)
    \n-
    73 {}
    \n+
    5#ifndef DUNE_ISTL_SCALEDIDMATRIX_HH
    \n+
    6#define DUNE_ISTL_SCALEDIDMATRIX_HH
    \n+
    7
    \n+
    14#include <cmath>
    \n+
    15#include <cstddef>
    \n+
    16#include <complex>
    \n+
    17#include <iostream>
    \n+
    18#include <dune/common/exceptions.hh>
    \n+
    19#include <dune/common/fmatrix.hh>
    \n+
    20#include <dune/common/diagonalmatrix.hh>
    \n+
    21#include <dune/common/ftraits.hh>
    \n+
    22
    \n+
    23namespace Dune {
    \n+
    24
    \n+
    28 template<class K, int n>
    \n+
    \n+\n+
    30 {
    \n+
    31 typedef DiagonalMatrixWrapper< ScaledIdentityMatrix<K,n> > WrapperType;
    \n+
    32
    \n+
    33 public:
    \n+
    34 //===== type definitions and constants
    \n+
    35
    \n+
    37 typedef K field_type;
    \n+
    38
    \n+
    40 typedef K block_type;
    \n+
    41
    \n+
    43 typedef std::size_t size_type;
    \n+
    44
    \n+
    46 [[deprecated("Use free function blockLevel(). Will be removed after 2.8.")]]
    \n+
    47 static constexpr std::size_t blocklevel = 1;
    \n+
    48
    \n+
    50 typedef DiagonalRowVector<K,n> row_type;
    \n+\n+
    52 typedef DiagonalRowVectorConst<K,n> const_row_type;
    \n+\n+
    54
    \n+
    56 enum {
    \n+
    58 rows = n,
    \n+
    60 cols = n
    \n+
    61 };
    \n+
    62
    \n+
    63 //===== constructors
    \n+\n+
    67
    \n+
    \n+\n+
    71 : p_(k)
    \n+
    72 {}
    \n
    \n-
    74
    \n+
    73
    \n+
    74 //===== assignment from scalar
    \n
    \n-\n+\n
    76 {
    \n-
    77 return interface;
    \n-
    78 }
    \n+
    77 p_ = k;
    \n+
    78 return *this;
    \n+
    79 }
    \n+
    \n+
    80
    \n+
    81 // check if matrix is identical to other matrix (not only identical values)
    \n+
    \n+
    82 bool identical(const ScaledIdentityMatrix<K,n>& other) const
    \n+
    83 {
    \n+
    84 return (this==&other);
    \n+
    85 }
    \n+
    \n+
    86
    \n+
    87 //===== iterator interface to rows of the matrix
    \n+
    89 typedef ContainerWrapperIterator<const WrapperType, reference, reference> Iterator;
    \n+\n+\n+
    95 typedef typename row_type::Iterator ColIterator;
    \n+
    96
    \n+
    \n+\n+
    99 {
    \n+
    100 return Iterator(WrapperType(this),0);
    \n+
    101 }
    \n+
    \n+
    102
    \n+
    \n+\n+
    105 {
    \n+
    106 return Iterator(WrapperType(this),n);
    \n+
    107 }
    \n+
    \n+
    108
    \n+
    \n+\n+
    112 {
    \n+
    113 return Iterator(WrapperType(this),n-1);
    \n+
    114 }
    \n
    \n-
    79 template<typename IS>
    \n-
    \n-
    80 void checkInterface(const IS& source,
    \n-
    81 const IS& target, MPI_Comm comm)
    \n-
    82 {
    \n-
    83 auto ri = std::make_unique<RemoteIndices<IS> >(source, target, comm);
    \n-
    84 ri->template rebuild<true>();
    \n-
    85 Interface inf;
    \n-\n-
    87 int rank;
    \n-
    88 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
    \n-
    89 inf.free();
    \n-
    90 inf.build(*ri, flags, flags);
    \n-
    91
    \n-
    92
    \n-
    93#ifdef DEBUG_REPART
    \n-
    94 if(inf!=interface) {
    \n-
    95
    \n-
    96 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
    \n-
    97 if(rank==0)
    \n-
    98 std::cout<<"Interfaces do not match!"<<std::endl;
    \n-
    99 std::cout<<rank<<": redist interface new :"<<inf<<std::endl;
    \n-
    100 std::cout<<rank<<": redist interface :"<<interface<<std::endl;
    \n-
    101
    \n-
    102 throw "autsch!";
    \n-
    103 }
    \n-
    104#endif
    \n-
    105 }
    \n-
    \n-
    \n-
    106 void setSetup()
    \n-
    107 {
    \n-
    108 setup_=true;
    \n-
    109 interface.strip();
    \n-
    110 }
    \n-
    \n-
    111
    \n-
    \n-\n-
    113 {
    \n-
    114 setup_=false;
    \n-
    115 }
    \n-
    \n-
    116
    \n-
    117 template<class GatherScatter, class D>
    \n+
    115
    \n
    \n-
    118 void redistribute(const D& from, D& to) const
    \n-
    119 {
    \n-
    120 BufferedCommunicator communicator;
    \n-
    121 communicator.template build<D>(from,to, interface);
    \n-
    122 communicator.template forward<GatherScatter>(from, to);
    \n-
    123 communicator.free();
    \n-
    124 }
    \n-
    \n-
    125 template<class GatherScatter, class D>
    \n-
    \n-
    126 void redistributeBackward(D& from, const D& to) const
    \n-
    127 {
    \n-
    128
    \n-
    129 BufferedCommunicator communicator;
    \n-
    130 communicator.template build<D>(from,to, interface);
    \n-
    131 communicator.template backward<GatherScatter>(from, to);
    \n-
    132 communicator.free();
    \n-
    133 }
    \n-
    \n-
    134
    \n-
    135 template<class D>
    \n-
    \n-
    136 void redistribute(const D& from, D& to) const
    \n-
    137 {
    \n-
    138 redistribute<CopyGatherScatter<D> >(from,to);
    \n-
    139 }
    \n-
    \n-
    140 template<class D>
    \n-
    \n-
    141 void redistributeBackward(D& from, const D& to) const
    \n-
    142 {
    \n-
    143 redistributeBackward<CopyGatherScatter<D> >(from,to);
    \n-
    144 }
    \n-
    \n-
    \n-
    145 bool isSetup() const
    \n-
    146 {
    \n-
    147 return setup_;
    \n-
    148 }
    \n-
    \n-
    149
    \n-
    \n-
    150 void reserve(std::size_t size)
    \n-
    151 {}
    \n-
    \n-
    152
    \n-
    \n-
    153 std::size_t& getRowSize(std::size_t index)
    \n-
    154 {
    \n-
    155 return rowSize[index];
    \n-
    156 }
    \n-
    \n-
    157
    \n-
    \n-
    158 std::size_t getRowSize(std::size_t index) const
    \n-
    159 {
    \n-
    160 return rowSize[index];
    \n-
    161 }
    \n-
    \n-
    162
    \n-
    \n-
    163 std::size_t& getCopyRowSize(std::size_t index)
    \n-
    164 {
    \n-
    165 return copyrowSize[index];
    \n+\n+
    119 {
    \n+
    120 return Iterator(WrapperType(this),-1);
    \n+
    121 }
    \n+
    \n+
    122
    \n+
    123
    \n+
    125 typedef ContainerWrapperIterator<const WrapperType, const_reference, const_reference> ConstIterator;
    \n+\n+\n+
    131 typedef typename const_row_type::ConstIterator ConstColIterator;
    \n+
    132
    \n+
    \n+\n+
    135 {
    \n+
    136 return ConstIterator(WrapperType(this),0);
    \n+
    137 }
    \n+
    \n+
    138
    \n+
    \n+\n+
    141 {
    \n+
    142 return ConstIterator(WrapperType(this),n);
    \n+
    143 }
    \n+
    \n+
    144
    \n+
    \n+\n+
    148 {
    \n+
    149 return ConstIterator(WrapperType(this),n-1);
    \n+
    150 }
    \n+
    \n+
    151
    \n+
    \n+\n+
    155 {
    \n+
    156 return ConstIterator(WrapperType(this),-1);
    \n+
    157 }
    \n+
    \n+
    158
    \n+
    159 //===== vector space arithmetic
    \n+
    160
    \n+
    \n+\n+
    163 {
    \n+
    164 p_ += y.p_;
    \n+
    165 return *this;
    \n
    166 }
    \n
    \n
    167
    \n-
    \n-
    168 std::size_t getCopyRowSize(std::size_t index) const
    \n-
    169 {
    \n-
    170 return copyrowSize[index];
    \n-
    171 }
    \n-
    \n-
    172
    \n-
    \n-
    173 std::size_t& getBackwardsCopyRowSize(std::size_t index)
    \n-
    174 {
    \n-
    175 return backwardscopyrowSize[index];
    \n-
    176 }
    \n-
    \n-
    177
    \n-
    \n-
    178 std::size_t getBackwardsCopyRowSize(std::size_t index) const
    \n-
    179 {
    \n-
    180 return backwardscopyrowSize[index];
    \n-
    181 }
    \n+
    \n+\n+
    170 {
    \n+
    171 p_ -= y.p_;
    \n+
    172 return *this;
    \n+
    173 }
    \n+
    \n+
    174
    \n+
    \n+\n+
    177 {
    \n+
    178 p_ += k;
    \n+
    179 return *this;
    \n+
    180 }
    \n
    \n-
    182
    \n+
    181
    \n
    \n-
    183 void setNoRows(std::size_t rows)
    \n+\n
    184 {
    \n-
    185 rowSize.resize(rows, 0);
    \n-
    186 }
    \n-
    \n-
    187
    \n-
    \n-
    188 void setNoCopyRows(std::size_t rows)
    \n-
    189 {
    \n-
    190 copyrowSize.resize(rows, 0);
    \n-
    191 }
    \n-
    \n-
    192
    \n-
    \n-
    193 void setNoBackwardsCopyRows(std::size_t rows)
    \n-
    194 {
    \n-
    195 backwardscopyrowSize.resize(rows, 0);
    \n-
    196 }
    \n-
    \n-
    197
    \n-
    198 private:
    \n-
    199 std::vector<std::size_t> rowSize;
    \n-
    200 std::vector<std::size_t> copyrowSize;
    \n-
    201 std::vector<std::size_t> backwardscopyrowSize;
    \n-
    202 RedistributeInterface interface;
    \n-
    203 bool setup_;
    \n-
    204 };
    \n-
    \n-
    205
    \n-
    214 template<class M, class RI>
    \n+
    185 p_ -= k;
    \n+
    186 return *this;
    \n+
    187 }
    \n+
    \n+
    \n+\n+
    190 {
    \n+
    191 p_ *= k;
    \n+
    192 return *this;
    \n+
    193 }
    \n+
    \n+
    194
    \n+
    \n+\n+
    197 {
    \n+
    198 p_ /= k;
    \n+
    199 return *this;
    \n+
    200 }
    \n+
    \n+
    201
    \n+
    202 //===== binary operators
    \n+
    203
    \n+
    205 template <class Scalar,
    \n+
    206 std::enable_if_t<IsNumber<Scalar>::value, int> = 0>
    \n+
    \n+
    207 friend auto operator* ( const ScaledIdentityMatrix& matrix, Scalar scalar)
    \n+
    208 {
    \n+\n+
    210 }
    \n+
    \n+
    211
    \n+
    213 template <class Scalar,
    \n+
    214 std::enable_if_t<IsNumber<Scalar>::value, int> = 0>
    \n
    \n-\n-
    216 {
    \n-
    217 // Make the default communication policy work.
    \n-
    218 typedef typename M::size_type value_type;
    \n-
    219 typedef typename M::size_type size_type;
    \n-
    220
    \n-
    \n-
    226 CommMatrixRowSize(const M& m_, RI& rowsize_)
    \n-
    227 : matrix(m_), rowsize(rowsize_)
    \n-
    228 {}
    \n-
    \n-
    229 const M& matrix;
    \n-\n-
    231
    \n-
    232 };
    \n+
    215 friend auto operator* (Scalar scalar, const ScaledIdentityMatrix& matrix)
    \n+
    216 {
    \n+\n+
    218 }
    \n+
    \n+
    219
    \n+
    220 //===== comparison ops
    \n+
    221
    \n+
    \n+
    223 bool operator==(const ScaledIdentityMatrix& other) const
    \n+
    224 {
    \n+
    225 return p_==other.scalar();
    \n+
    226 }
    \n+
    \n+
    227
    \n+
    \n+
    229 bool operator!=(const ScaledIdentityMatrix& other) const
    \n+
    230 {
    \n+
    231 return p_!=other.scalar();
    \n+
    232 }
    \n
    \n
    233
    \n-
    234
    \n-
    243 template<class M, class I>
    \n-
    \n-\n-
    245 {
    \n-
    246 typedef typename M::size_type size_type;
    \n+
    234 //===== linear maps
    \n+
    235
    \n+
    237 template<class X, class Y>
    \n+
    \n+
    238 void mv (const X& x, Y& y) const
    \n+
    239 {
    \n+
    240#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    241 if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    242 if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    243#endif
    \n+
    244 for (size_type i=0; i<n; ++i)
    \n+
    245 y[i] = p_ * x[i];
    \n+
    246 }
    \n+
    \n
    247
    \n-
    \n-
    254 CommMatrixSparsityPattern(const M& m_, const Dune::GlobalLookupIndexSet<I>& idxset_, const I& aggidxset_)
    \n-
    255 : matrix(m_), idxset(idxset_), aggidxset(aggidxset_), rowsize()
    \n-
    256 {}
    \n-
    \n-
    257
    \n-
    \n-
    265 CommMatrixSparsityPattern(const M& m_, const Dune::GlobalLookupIndexSet<I>& idxset_, const I& aggidxset_,
    \n-
    266 const std::vector<typename M::size_type>& rowsize_)
    \n-
    267 : matrix(m_), idxset(idxset_), aggidxset(aggidxset_), sparsity(aggidxset_.size()), rowsize(&rowsize_)
    \n-
    268 {}
    \n-
    \n-
    269
    \n-
    \n-\n-
    277 {
    \n-
    278 // insert diagonal to overlap rows
    \n-
    279 typedef typename Dune::GlobalLookupIndexSet<I>::const_iterator IIter;
    \n-\n-
    281 std::size_t nnz=0;
    \n-
    282#ifdef DEBUG_REPART
    \n-
    283 int rank;
    \n-
    284
    \n-
    285 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
    \n+
    249 template<class X, class Y>
    \n+
    \n+
    250 void mtv (const X& x, Y& y) const
    \n+
    251 {
    \n+
    252 mv(x, y);
    \n+
    253 }
    \n+
    \n+
    254
    \n+
    256 template<class X, class Y>
    \n+
    \n+
    257 void umv (const X& x, Y& y) const
    \n+
    258 {
    \n+
    259#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    260 if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    261 if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    262#endif
    \n+
    263 for (size_type i=0; i<n; ++i)
    \n+
    264 y[i] += p_ * x[i];
    \n+
    265 }
    \n+
    \n+
    266
    \n+
    268 template<class X, class Y>
    \n+
    \n+
    269 void umtv (const X& x, Y& y) const
    \n+
    270 {
    \n+
    271#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    272 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    273 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    274#endif
    \n+
    275 for (size_type i=0; i<n; ++i)
    \n+
    276 y[i] += p_ * x[i];
    \n+
    277 }
    \n+
    \n+
    278
    \n+
    280 template<class X, class Y>
    \n+
    \n+
    281 void umhv (const X& x, Y& y) const
    \n+
    282 {
    \n+
    283#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    284 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    285 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n
    286#endif
    \n-
    287 for(IIter i= aggidxset.begin(), end=aggidxset.end(); i!=end; ++i) {
    \n-
    288 if(!OwnerSet::contains(i->local().attribute())) {
    \n-
    289#ifdef DEBUG_REPART
    \n-
    290 std::cout<<rank<<" Inserting diagonal for"<<i->local()<<std::endl;
    \n-
    291#endif
    \n-
    292 sparsity[i->local()].insert(i->local());
    \n-
    293 }
    \n-
    294
    \n-
    295 nnz+=sparsity[i->local()].size();
    \n-
    296 }
    \n-
    297 assert( aggidxset.size()==sparsity.size());
    \n-
    298
    \n-
    299 if(nnz>0) {
    \n-
    300 m.setSize(aggidxset.size(), aggidxset.size(), nnz);
    \n-
    301 m.setBuildMode(M::row_wise);
    \n-
    302 typename M::CreateIterator citer=m.createbegin();
    \n-
    303#ifdef DEBUG_REPART
    \n-
    304 std::size_t idx=0;
    \n-
    305 bool correct=true;
    \n-
    306 Dune::GlobalLookupIndexSet<I> global(aggidxset);
    \n-
    307#endif
    \n-
    308 typedef typename std::vector<std::set<size_type> >::const_iterator Iter;
    \n-
    309 for(Iter i=sparsity.begin(), end=sparsity.end(); i!=end; ++i, ++citer)
    \n-
    310 {
    \n-
    311 typedef typename std::set<size_type>::const_iterator SIter;
    \n-
    312 for(SIter si=i->begin(), send=i->end(); si!=send; ++si)
    \n-
    313 citer.insert(*si);
    \n-
    314#ifdef DEBUG_REPART
    \n-
    315 if(i->find(idx)==i->end()) {
    \n-
    316 const typename I::IndexPair* gi=global.pair(idx);
    \n-
    317 assert(gi);
    \n-
    318 std::cout<<rank<<": row "<<idx<<" is missing a diagonal entry! global="<<gi->global()<<" attr="<<gi->local().attribute()<<" "<<
    \n-
    319 OwnerSet::contains(gi->local().attribute())<<
    \n-
    320 " row size="<<i->size()<<std::endl;
    \n-
    321 correct=false;
    \n-
    322 }
    \n-
    323 ++idx;
    \n-
    324#endif
    \n-
    325 }
    \n-
    326#ifdef DEBUG_REPART
    \n-
    327 if(!correct)
    \n-
    328 throw "bla";
    \n-
    329#endif
    \n-
    330 }
    \n-
    331 }
    \n-
    \n-
    332
    \n-
    \n-
    340 void completeSparsityPattern(std::vector<std::set<size_type> > add_sparsity)
    \n-
    341 {
    \n-
    342 for (unsigned int i = 0; i != sparsity.size(); ++i) {
    \n-
    343 if (add_sparsity[i].size() != 0) {
    \n-
    344 typedef std::set<size_type> Set;
    \n-
    345 Set tmp_set;
    \n-
    346 std::insert_iterator<Set> tmp_insert (tmp_set, tmp_set.begin());
    \n-
    347 std::set_union(add_sparsity[i].begin(), add_sparsity[i].end(),
    \n-
    348 sparsity[i].begin(), sparsity[i].end(), tmp_insert);
    \n-
    349 sparsity[i].swap(tmp_set);
    \n-
    350 }
    \n-
    351 }
    \n-
    352 }
    \n-
    \n-
    353
    \n-
    354 const M& matrix;
    \n-
    355 typedef Dune::GlobalLookupIndexSet<I> LookupIndexSet;
    \n-
    356 const Dune::GlobalLookupIndexSet<I>& idxset;
    \n-
    357 const I& aggidxset;
    \n-
    358 std::vector<std::set<size_type> > sparsity;
    \n-
    359 const std::vector<size_type>* rowsize;
    \n-
    360 };
    \n-
    \n-
    361
    \n-
    362 template<class M, class I>
    \n-
    \n-
    363 struct CommPolicy<CommMatrixSparsityPattern<M,I> >
    \n-
    364 {
    \n-\n-
    366
    \n-
    371 typedef typename I::GlobalIndex IndexedType;
    \n-
    372
    \n-
    374 typedef VariableSize IndexedTypeFlag;
    \n-
    375
    \n-
    \n-
    376 static typename M::size_type getSize(const Type& t, std::size_t i)
    \n-
    377 {
    \n-
    378 if(!t.rowsize)
    \n-
    379 return t.matrix[i].size();
    \n-
    380 else
    \n-
    381 {
    \n-
    382 assert((*t.rowsize)[i]>0);
    \n-
    383 return (*t.rowsize)[i];
    \n-
    384 }
    \n-
    385 }
    \n-
    \n-
    386 };
    \n-
    \n-
    387
    \n-
    394 template<class M, class I>
    \n-
    \n-\n-
    396 {
    \n-
    \n-
    405 CommMatrixRow(M& m_, const Dune::GlobalLookupIndexSet<I>& idxset_, const I& aggidxset_)
    \n-
    406 : matrix(m_), idxset(idxset_), aggidxset(aggidxset_), rowsize()
    \n-
    407 {}
    \n-
    \n-
    408
    \n-
    \n-
    412 CommMatrixRow(M& m_, const Dune::GlobalLookupIndexSet<I>& idxset_, const I& aggidxset_,
    \n-
    413 std::vector<size_t>& rowsize_)
    \n-
    414 : matrix(m_), idxset(idxset_), aggidxset(aggidxset_), rowsize(&rowsize_)
    \n-
    415 {}
    \n+
    287 for (size_type i=0; i<n; i++)
    \n+
    288 y[i] += conjugateComplex(p_)*x[i];
    \n+
    289 }
    \n+
    \n+
    290
    \n+
    292 template<class X, class Y>
    \n+
    \n+
    293 void mmv (const X& x, Y& y) const
    \n+
    294 {
    \n+
    295#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    296 if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    297 if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    298#endif
    \n+
    299 for (size_type i=0; i<n; ++i)
    \n+
    300 y[i] -= p_ * x[i];
    \n+
    301 }
    \n+
    \n+
    302
    \n+
    304 template<class X, class Y>
    \n+
    \n+
    305 void mmtv (const X& x, Y& y) const
    \n+
    306 {
    \n+
    307#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    308 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    309 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    310#endif
    \n+
    311 for (size_type i=0; i<n; ++i)
    \n+
    312 y[i] -= p_ * x[i];
    \n+
    313 }
    \n+
    \n+
    314
    \n+
    316 template<class X, class Y>
    \n+
    \n+
    317 void mmhv (const X& x, Y& y) const
    \n+
    318 {
    \n+
    319#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    320 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    321 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    322#endif
    \n+
    323 for (size_type i=0; i<n; i++)
    \n+
    324 y[i] -= conjugateComplex(p_)*x[i];
    \n+
    325 }
    \n+
    \n+
    326
    \n+
    328 template<class X, class Y>
    \n+
    \n+
    329 void usmv (const K& alpha, const X& x, Y& y) const
    \n+
    330 {
    \n+
    331#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    332 if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    333 if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    334#endif
    \n+
    335 for (size_type i=0; i<n; i++)
    \n+
    336 y[i] += alpha * p_ * x[i];
    \n+
    337 }
    \n+
    \n+
    338
    \n+
    340 template<class X, class Y>
    \n+
    \n+
    341 void usmtv (const K& alpha, const X& x, Y& y) const
    \n+
    342 {
    \n+
    343#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    344 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    345 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    346#endif
    \n+
    347 for (size_type i=0; i<n; i++)
    \n+
    348 y[i] += alpha * p_ * x[i];
    \n+
    349 }
    \n+
    \n+
    350
    \n+
    352 template<class X, class Y>
    \n+
    \n+
    353 void usmhv (const K& alpha, const X& x, Y& y) const
    \n+
    354 {
    \n+
    355#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    356 if (x.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    357 if (y.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
    \n+
    358#endif
    \n+
    359 for (size_type i=0; i<n; i++)
    \n+
    360 y[i] += alpha * conjugateComplex(p_) * x[i];
    \n+
    361 }
    \n+
    \n+
    362
    \n+
    363 //===== norms
    \n+
    364
    \n+
    \n+
    366 typename FieldTraits<field_type>::real_type frobenius_norm () const
    \n+
    367 {
    \n+
    368 return fvmeta::sqrt(n*p_*p_);
    \n+
    369 }
    \n+
    \n+
    370
    \n+
    \n+
    372 typename FieldTraits<field_type>::real_type frobenius_norm2 () const
    \n+
    373 {
    \n+
    374 return n*p_*p_;
    \n+
    375 }
    \n+
    \n+
    376
    \n+
    \n+
    378 typename FieldTraits<field_type>::real_type infinity_norm () const
    \n+
    379 {
    \n+
    380 return std::abs(p_);
    \n+
    381 }
    \n+
    \n+
    382
    \n+
    \n+
    384 typename FieldTraits<field_type>::real_type infinity_norm_real () const
    \n+
    385 {
    \n+
    386 return fvmeta::absreal(p_);
    \n+
    387 }
    \n+
    \n+
    388
    \n+
    389 //===== solve
    \n+
    390
    \n+
    393 template<class V>
    \n+
    \n+
    394 void solve (V& x, const V& b) const
    \n+
    395 {
    \n+
    396 for (int i=0; i<n; i++)
    \n+
    397 x[i] = b[i]/p_;
    \n+
    398 }
    \n+
    \n+
    399
    \n+
    \n+
    402 void invert()
    \n+
    403 {
    \n+
    404 p_ = 1/p_;
    \n+
    405 }
    \n+
    \n+
    406
    \n+
    \n+
    408 K determinant () const {
    \n+
    409 return std::pow(p_,n);
    \n+
    410 }
    \n+
    \n+
    411
    \n+
    412 //===== sizes
    \n+
    413
    \n+
    \n+
    415 size_type N () const
    \n+
    416 {
    \n+
    417 return n;
    \n+
    418 }
    \n
    \n+
    419
    \n
    \n-\n-
    422 {
    \n-
    423 typedef typename Dune::GlobalLookupIndexSet<I>::const_iterator Iter;
    \n-\n+
    421 size_type M () const
    \n+
    422 {
    \n+
    423 return n;
    \n+
    424 }
    \n+
    \n
    425
    \n-
    426 for(Iter i= aggidxset.begin(), end=aggidxset.end(); i!=end; ++i)
    \n-
    427 if(!OwnerSet::contains(i->local().attribute())) {
    \n-
    428 // Set to Dirchlet
    \n-
    429 typedef typename M::ColIterator CIter;
    \n-
    430 for(CIter c=matrix[i->local()].begin(), cend= matrix[i->local()].end();
    \n-
    431 c!= cend; ++c)
    \n-
    432 {
    \n-
    433 *c=0;
    \n-
    434 if(c.index()==i->local()) {
    \n-
    435 auto setDiagonal = [](auto&& scalarOrMatrix, const auto& value) {
    \n-
    436 auto&& matrixView = Dune::Impl::asMatrix(scalarOrMatrix);
    \n-
    437 for (auto rowIt = matrixView.begin(); rowIt != matrixView.end(); ++rowIt)
    \n-
    438 (*rowIt)[rowIt.index()] = value;
    \n-
    439 };
    \n-
    440 setDiagonal(*c, 1);
    \n-
    441 }
    \n-
    442 }
    \n-
    443 }
    \n-
    444 }
    \n-
    \n-\n-
    448 const Dune::GlobalLookupIndexSet<I>& idxset;
    \n-
    450 const I& aggidxset;
    \n-
    452 std::vector<size_t>* rowsize; // row sizes differ from sender side in overlap!
    \n-
    453 };
    \n-
    \n-
    454
    \n-
    455 template<class M, class I>
    \n-
    \n-
    456 struct CommPolicy<CommMatrixRow<M,I> >
    \n-
    457 {
    \n-\n-
    459
    \n-
    464 typedef std::pair<typename I::GlobalIndex,typename M::block_type> IndexedType;
    \n-
    465
    \n-
    467 typedef VariableSize IndexedTypeFlag;
    \n+
    426 //===== query
    \n+
    427
    \n+
    \n+
    429 bool exists (size_type i, size_type j) const
    \n+
    430 {
    \n+
    431#ifdef DUNE_FMatrix_WITH_CHECKING
    \n+
    432 if (i<0 || i>=n) DUNE_THROW(FMatrixError,"row index out of range");
    \n+
    433 if (j<0 || j>=n) DUNE_THROW(FMatrixError,"column index out of range");
    \n+
    434#endif
    \n+
    435 return i==j;
    \n+
    436 }
    \n+
    \n+
    437
    \n+
    438 //===== conversion operator
    \n+
    439
    \n+
    \n+
    441 friend std::ostream& operator<< (std::ostream& s, const ScaledIdentityMatrix<K,n>& a)
    \n+
    442 {
    \n+
    443 for (size_type i=0; i<n; i++) {
    \n+
    444 for (size_type j=0; j<n; j++)
    \n+
    445 s << ((i==j) ? a.p_ : 0) << " ";
    \n+
    446 s << std::endl;
    \n+
    447 }
    \n+
    448 return s;
    \n+
    449 }
    \n+
    \n+
    450
    \n+
    \n+\n+
    453 {
    \n+
    454 return reference(const_cast<K*>(&p_), i);
    \n+
    455 }
    \n+
    \n+
    456
    \n+
    \n+\n+
    459 {
    \n+
    460 return const_reference(const_cast<K*>(&p_), i);
    \n+
    461 }
    \n+
    \n+
    462
    \n+
    \n+
    464 const K& diagonal(size_type /*i*/) const
    \n+
    465 {
    \n+
    466 return p_;
    \n+
    467 }
    \n+
    \n
    468
    \n-
    \n-
    469 static std::size_t getSize(const Type& t, std::size_t i)
    \n-
    470 {
    \n-
    471 if(!t.rowsize)
    \n-
    472 return t.matrix[i].size();
    \n-
    473 else
    \n-
    474 {
    \n-
    475 assert((*t.rowsize)[i]>0);
    \n-
    476 return (*t.rowsize)[i];
    \n-
    477 }
    \n-
    478 }
    \n-
    \n-
    479 };
    \n-
    \n-
    480
    \n-
    481 template<class M, class I, class RI>
    \n-
    \n-\n-
    483 {
    \n-\n-
    485
    \n-
    \n-
    486 static const typename M::size_type gather(const Container& cont, std::size_t i)
    \n-
    487 {
    \n-
    488 return cont.matrix[i].size();
    \n-
    489 }
    \n-
    \n-
    \n-
    490 static void scatter(Container& cont, const typename M::size_type& rowsize, std::size_t i)
    \n-
    491 {
    \n-
    492 assert(rowsize);
    \n-
    493 cont.rowsize.getRowSize(i)=rowsize;
    \n-
    494 }
    \n-
    \n-
    495
    \n-
    496 };
    \n-
    \n-
    497
    \n-
    498 template<class M, class I, class RI>
    \n-
    \n-\n-
    500 {
    \n-\n-
    502
    \n-
    \n-
    503 static const typename M::size_type gather(const Container& cont, std::size_t i)
    \n-
    504 {
    \n-
    505 return cont.matrix[i].size();
    \n-
    506 }
    \n-
    \n-
    \n-
    507 static void scatter(Container& cont, const typename M::size_type& rowsize, std::size_t i)
    \n-
    508 {
    \n-
    509 assert(rowsize);
    \n-
    510 if (rowsize > cont.rowsize.getCopyRowSize(i))
    \n-
    511 cont.rowsize.getCopyRowSize(i)=rowsize;
    \n-
    512 }
    \n+
    \n+\n+
    471 {
    \n+
    472 return p_;
    \n+
    473 }
    \n+
    \n+
    474
    \n+
    \n+
    477 const K& scalar() const
    \n+
    478 {
    \n+
    479 return p_;
    \n+
    480 }
    \n+
    \n+
    481
    \n+
    \n+\n+
    485 {
    \n+
    486 return p_;
    \n+
    487 }
    \n+
    \n+
    488
    \n+
    489 private:
    \n+
    490 // the data, very simply a single number
    \n+
    491 K p_;
    \n+
    492
    \n+
    493 };
    \n+
    \n+
    494
    \n+
    495 template <class DenseMatrix, class field, int N>
    \n+
    \n+
    496 struct DenseMatrixAssigner<DenseMatrix, ScaledIdentityMatrix<field, N>> {
    \n+
    \n+
    497 static void apply(DenseMatrix& denseMatrix,
    \n+\n+
    499 assert(denseMatrix.M() == N);
    \n+
    500 assert(denseMatrix.N() == N);
    \n+
    501 denseMatrix = field(0);
    \n+
    502 for (int i = 0; i < N; ++i)
    \n+
    503 denseMatrix[i][i] = rhs.scalar();
    \n+
    504 }
    \n+
    \n+
    505 };
    \n+
    \n+
    506
    \n+
    507 template<class K, int n>
    \n+
    \n+
    508 struct FieldTraits< ScaledIdentityMatrix<K, n> >
    \n+
    509 {
    \n+\n+
    511 using real_type = typename FieldTraits<field_type>::real_type;
    \n+
    512 };
    \n
    \n
    513
    \n-
    514 };
    \n-
    \n+
    514} // end namespace
    \n
    515
    \n-
    516 template<class M, class I>
    \n-
    \n-\n-
    518 {
    \n-
    519 typedef typename I::GlobalIndex GlobalIndex;
    \n-\n-
    521 typedef typename M::ConstColIterator ColIter;
    \n-
    522
    \n-
    523 static ColIter col;
    \n-\n-
    525
    \n-
    \n-
    526 static const GlobalIndex& gather(const Container& cont, std::size_t i, std::size_t j)
    \n-
    527 {
    \n-
    528 if(j==0)
    \n-
    529 col=cont.matrix[i].begin();
    \n-
    530 else if (col!=cont.matrix[i].end())
    \n-
    531 ++col;
    \n-
    532
    \n-
    533 //copy communication: different row sizes for copy rows with the same global index
    \n-
    534 //are possible. If all values of current matrix row are sent, send
    \n-
    535 //std::numeric_limits<GlobalIndex>::max()
    \n-
    536 //and receiver will ignore it.
    \n-
    537 if (col==cont.matrix[i].end()) {
    \n-
    538 numlimits = std::numeric_limits<GlobalIndex>::max();
    \n-
    539 return numlimits;
    \n-
    540 }
    \n-
    541 else {
    \n-
    542 const typename I::IndexPair* index=cont.idxset.pair(col.index());
    \n-
    543 assert(index);
    \n-
    544 // Only send index if col is no ghost
    \n-
    545 if ( index->local().attribute() != 2)
    \n-
    546 return index->global();
    \n-
    547 else {
    \n-
    548 numlimits = std::numeric_limits<GlobalIndex>::max();
    \n-
    549 return numlimits;
    \n-
    550 }
    \n-
    551 }
    \n-
    552 }
    \n-
    \n-
    \n-
    553 static void scatter(Container& cont, const GlobalIndex& gi, std::size_t i, [[maybe_unused]] std::size_t j)
    \n-
    554 {
    \n-
    555 try{
    \n-
    556 if (gi != std::numeric_limits<GlobalIndex>::max()) {
    \n-
    557 const typename I::IndexPair& ip=cont.aggidxset.at(gi);
    \n-
    558 assert(ip.global()==gi);
    \n-
    559 std::size_t column = ip.local();
    \n-
    560 cont.sparsity[i].insert(column);
    \n-
    561
    \n-\n-
    563 if(!OwnerSet::contains(ip.local().attribute()))
    \n-
    564 // preserve symmetry for overlap
    \n-
    565 cont.sparsity[column].insert(i);
    \n-
    566 }
    \n-
    567 }
    \n-
    568 catch(const Dune::RangeError&) {
    \n-
    569 // Entry not present in the new index set. Ignore!
    \n-
    570#ifdef DEBUG_REPART
    \n-
    571 typedef typename Container::LookupIndexSet GlobalLookup;
    \n-
    572 typedef typename GlobalLookup::IndexPair IndexPair;
    \n-\n-
    574
    \n-
    575 GlobalLookup lookup(cont.aggidxset);
    \n-
    576 const IndexPair* pi=lookup.pair(i);
    \n-
    577 assert(pi);
    \n-
    578 if(OwnerSet::contains(pi->local().attribute())) {
    \n-
    579 int rank;
    \n-
    580 MPI_Comm_rank(MPI_COMM_WORLD,&rank);
    \n-
    581 std::cout<<rank<<cont.aggidxset<<std::endl;
    \n-
    582 std::cout<<rank<<": row "<<i<<" (global="<<gi <<") not in index set for owner index "<<pi->global()<<std::endl;
    \n-
    583 throw;
    \n-
    584 }
    \n-
    585#endif
    \n-
    586 }
    \n-
    587 }
    \n-
    \n-
    588
    \n-
    589 };
    \n-
    \n-
    590 template<class M, class I>
    \n-\n-
    592
    \n-
    593 template<class M, class I>
    \n-\n-
    595
    \n-
    596
    \n-
    597 template<class M, class I>
    \n-
    \n-\n-
    599 {
    \n-
    600 typedef typename I::GlobalIndex GlobalIndex;
    \n-\n-
    602 typedef typename M::ConstColIterator ColIter;
    \n-
    603 typedef typename std::pair<GlobalIndex,typename M::block_type> Data;
    \n-
    604 static ColIter col;
    \n-\n-\n-
    607
    \n-
    \n-
    608 static const Data& gather(const Container& cont, std::size_t i, std::size_t j)
    \n-
    609 {
    \n-
    610 if(j==0)
    \n-
    611 col=cont.matrix[i].begin();
    \n-
    612 else if (col!=cont.matrix[i].end())
    \n-
    613 ++col;
    \n-
    614 // copy communication: different row sizes for copy rows with the same global index
    \n-
    615 // are possible. If all values of current matrix row are sent, send
    \n-
    616 // std::numeric_limits<GlobalIndex>::max()
    \n-
    617 // and receiver will ignore it.
    \n-
    618 if (col==cont.matrix[i].end()) {
    \n-
    619 numlimits = std::numeric_limits<GlobalIndex>::max();
    \n-\n-
    621 return datastore;
    \n-
    622 }
    \n-
    623 else {
    \n-
    624 // convert local column index to global index
    \n-
    625 const typename I::IndexPair* index=cont.idxset.pair(col.index());
    \n-
    626 assert(index);
    \n-
    627 // Store the data to prevent reference to temporary
    \n-
    628 // Only send index if col is no ghost
    \n-
    629 if ( index->local().attribute() != 2)
    \n-
    630 datastore = Data(index->global(),*col);
    \n-
    631 else {
    \n-
    632 numlimits = std::numeric_limits<GlobalIndex>::max();
    \n-\n-
    634 }
    \n-
    635 return datastore;
    \n-
    636 }
    \n-
    637 }
    \n-
    \n-
    \n-
    638 static void scatter(Container& cont, const Data& data, std::size_t i, [[maybe_unused]] std::size_t j)
    \n-
    639 {
    \n-
    640 try{
    \n-
    641 if (data.first != std::numeric_limits<GlobalIndex>::max()) {
    \n-
    642 typename M::size_type column=cont.aggidxset.at(data.first).local();
    \n-
    643 cont.matrix[i][column]=data.second;
    \n-
    644 }
    \n-
    645 }
    \n-
    646 catch(const Dune::RangeError&) {
    \n-
    647 // This an overlap row and might therefore lack some entries!
    \n-
    648 }
    \n-
    649
    \n-
    650 }
    \n-
    \n-
    651 };
    \n-
    \n-
    652
    \n-
    653 template<class M, class I>
    \n-\n-
    655
    \n-
    656 template<class M, class I>
    \n-\n-
    658
    \n-
    659 template<class M, class I>
    \n-\n-
    661
    \n-
    662 template<typename M, typename C>
    \n-
    \n-
    663 void redistributeSparsityPattern(M& origMatrix, M& newMatrix, C& origComm, C& newComm,
    \n-\n-
    665 {
    \n-
    666 typename C::CopySet copyflags;
    \n-
    667 typename C::OwnerSet ownerflags;
    \n-
    668 typedef typename C::ParallelIndexSet IndexSet;
    \n-\n-
    670 std::vector<typename M::size_type> rowsize(newComm.indexSet().size(), 0);
    \n-
    671 std::vector<typename M::size_type> copyrowsize(newComm.indexSet().size(), 0);
    \n-
    672 std::vector<typename M::size_type> backwardscopyrowsize(origComm.indexSet().size(), 0);
    \n-
    673
    \n-
    674 // get owner rowsizes
    \n-
    675 CommMatrixRowSize<M,RI> commRowSize(origMatrix, ri);
    \n-
    676 ri.template redistribute<MatrixRowSizeGatherScatter<M,IndexSet,RI> >(commRowSize,commRowSize);
    \n-
    677
    \n-
    678 origComm.buildGlobalLookup();
    \n-
    679
    \n-
    680 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {
    \n-
    681 rowsize[i] = ri.getRowSize(i);
    \n-
    682 }
    \n-
    683 // get sparsity pattern from owner rows
    \n-\n-
    685 origsp(origMatrix, origComm.globalLookup(), newComm.indexSet());
    \n-\n-
    687 newsp(origMatrix, origComm.globalLookup(), newComm.indexSet(), rowsize);
    \n-
    688
    \n-
    689 ri.template redistribute<MatrixSparsityPatternGatherScatter<M,IndexSet> >(origsp,newsp);
    \n-
    690
    \n-
    691 // build copy to owner interface to get missing matrix values for novlp case
    \n-\n-
    693 RemoteIndices<IndexSet> *ris = new RemoteIndices<IndexSet>(origComm.indexSet(),
    \n-
    694 newComm.indexSet(),
    \n-
    695 origComm.communicator());
    \n-
    696 ris->template rebuild<true>();
    \n-
    697
    \n-
    698 ri.getInterface().free();
    \n-
    699 ri.getInterface().build(*ris,copyflags,ownerflags);
    \n-
    700
    \n-
    701 // get copy rowsizes
    \n-
    702 CommMatrixRowSize<M,RI> commRowSize_copy(origMatrix, ri);
    \n-
    703 ri.template redistribute<MatrixCopyRowSizeGatherScatter<M,IndexSet,RI> >(commRowSize_copy,
    \n-
    704 commRowSize_copy);
    \n-
    705
    \n-
    706 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {
    \n-
    707 copyrowsize[i] = ri.getCopyRowSize(i);
    \n-
    708 }
    \n-
    709 //get copy rowsizes for sender
    \n-
    710 ri.redistributeBackward(backwardscopyrowsize,copyrowsize);
    \n-
    711 for (std::size_t i=0; i < origComm.indexSet().size(); i++) {
    \n-
    712 ri.getBackwardsCopyRowSize(i) = backwardscopyrowsize[i];
    \n-
    713 }
    \n-
    714
    \n-
    715 // get sparsity pattern from copy rows
    \n-
    716 CommMatrixSparsityPattern<M,IndexSet> origsp_copy(origMatrix,
    \n-
    717 origComm.globalLookup(),
    \n-
    718 newComm.indexSet(),
    \n-
    719 backwardscopyrowsize);
    \n-
    720 CommMatrixSparsityPattern<M,IndexSet> newsp_copy(origMatrix, origComm.globalLookup(),
    \n-
    721 newComm.indexSet(), copyrowsize);
    \n-
    722 ri.template redistribute<MatrixSparsityPatternGatherScatter<M,IndexSet> >(origsp_copy,
    \n-
    723 newsp_copy);
    \n-
    724
    \n-
    725 newsp.completeSparsityPattern(newsp_copy.sparsity);
    \n-
    726 newsp.storeSparsityPattern(newMatrix);
    \n-
    727 }
    \n-
    728 else
    \n-
    729 newsp.storeSparsityPattern(newMatrix);
    \n-
    730
    \n-
    731#ifdef DUNE_ISTL_WITH_CHECKING
    \n-
    732 // Check for symmetry
    \n-
    733 int ret=0;
    \n-
    734 typedef typename M::ConstRowIterator RIter;
    \n-
    735 for(RIter row=newMatrix.begin(), rend=newMatrix.end(); row != rend; ++row) {
    \n-
    736 typedef typename M::ConstColIterator CIter;
    \n-
    737 for(CIter col=row->begin(), cend=row->end(); col!=cend; ++col)
    \n-
    738 {
    \n-
    739 try{
    \n-
    740 newMatrix[col.index()][row.index()];
    \n-
    741 }catch(const Dune::ISTLError&) {
    \n-
    742 std::cerr<<newComm.communicator().rank()<<": entry ("
    \n-
    743 <<col.index()<<","<<row.index()<<") missing! for symmetry!"<<std::endl;
    \n-
    744 ret=1;
    \n-
    745
    \n-
    746 }
    \n-
    747
    \n-
    748 }
    \n-
    749 }
    \n-
    750
    \n-
    751 if(ret)
    \n-
    752 DUNE_THROW(ISTLError, "Matrix not symmetric!");
    \n-
    753#endif
    \n-
    754 }
    \n-
    \n-
    755
    \n-
    756 template<typename M, typename C>
    \n-
    \n-
    757 void redistributeMatrixEntries(M& origMatrix, M& newMatrix, C& origComm, C& newComm,
    \n-\n-
    759 {
    \n-
    760 typedef typename C::ParallelIndexSet IndexSet;
    \n-
    761 typename C::OwnerSet ownerflags;
    \n-
    762 std::vector<typename M::size_type> rowsize(newComm.indexSet().size(), 0);
    \n-
    763 std::vector<typename M::size_type> copyrowsize(newComm.indexSet().size(), 0);
    \n-
    764 std::vector<typename M::size_type> backwardscopyrowsize(origComm.indexSet().size(), 0);
    \n-
    765
    \n-
    766 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {
    \n-
    767 rowsize[i] = ri.getRowSize(i);
    \n-\n-
    769 copyrowsize[i] = ri.getCopyRowSize(i);
    \n-
    770 }
    \n-
    771 }
    \n-
    772
    \n-
    773 for (std::size_t i=0; i < origComm.indexSet().size(); i++)
    \n-\n-
    775 backwardscopyrowsize[i] = ri.getBackwardsCopyRowSize(i);
    \n-
    776
    \n-
    777
    \n-\n-
    779 // fill sparsity pattern from copy rows
    \n-
    780 CommMatrixRow<M,IndexSet> origrow_copy(origMatrix, origComm.globalLookup(),
    \n-
    781 newComm.indexSet(), backwardscopyrowsize);
    \n-
    782 CommMatrixRow<M,IndexSet> newrow_copy(newMatrix, origComm.globalLookup(),
    \n-
    783 newComm.indexSet(),copyrowsize);
    \n-
    784 ri.template redistribute<MatrixRowGatherScatter<M,IndexSet> >(origrow_copy,
    \n-
    785 newrow_copy);
    \n-
    786 ri.getInterface().free();
    \n-
    787 RemoteIndices<IndexSet> *ris = new RemoteIndices<IndexSet>(origComm.indexSet(),
    \n-
    788 newComm.indexSet(),
    \n-
    789 origComm.communicator());
    \n-
    790 ris->template rebuild<true>();
    \n-
    791 ri.getInterface().build(*ris,ownerflags,ownerflags);
    \n-
    792 }
    \n-
    793
    \n-\n-
    795 origrow(origMatrix, origComm.globalLookup(), newComm.indexSet());
    \n-\n-
    797 newrow(newMatrix, origComm.globalLookup(), newComm.indexSet(),rowsize);
    \n-
    798 ri.template redistribute<MatrixRowGatherScatter<M,IndexSet> >(origrow,newrow);
    \n-
    799 if (SolverCategory::category(origComm) != static_cast<int>(SolverCategory::nonoverlapping))
    \n-\n-
    801 }
    \n-
    \n-
    802
    \n-
    819 template<typename M, typename C>
    \n-
    \n-
    820 void redistributeMatrix(M& origMatrix, M& newMatrix, C& origComm, C& newComm,
    \n-\n-
    822 {
    \n-
    823 ri.setNoRows(newComm.indexSet().size());
    \n-
    824 ri.setNoCopyRows(newComm.indexSet().size());
    \n-
    825 ri.setNoBackwardsCopyRows(origComm.indexSet().size());
    \n-
    826 redistributeSparsityPattern(origMatrix, newMatrix, origComm, newComm, ri);
    \n-
    827 redistributeMatrixEntries(origMatrix, newMatrix, origComm, newComm, ri);
    \n-
    828 }
    \n-
    \n-
    829#endif
    \n-
    830
    \n-
    831template<typename M>
    \n-
    \n-
    832 void redistributeMatrixEntries(M& origMatrix, M& newMatrix,
    \n-\n-\n-\n-
    836 {
    \n-
    837 DUNE_THROW(InvalidStateException, "Trying to redistribute in sequential program!");
    \n-
    838 }
    \n-
    \n-
    839 template<typename M>
    \n-
    \n-
    840 void redistributeMatrix(M& origMatrix, M& newMatrix,
    \n-\n-\n-\n-
    844 {
    \n-
    845 DUNE_THROW(InvalidStateException, "Trying to redistribute in sequential program!");
    \n-
    846 }
    \n-
    \n-
    847}
    \n-
    848#endif
    \n-\n-
    Functionality for redistributing a parallel index set using graph partitioning.
    \n-
    Classes providing communication interfaces for overlapping Schwarz methods.
    \n-
    Col col
    Definition matrixmatrix.hh:351
    \n+
    516#endif
    \n
    Definition allocator.hh:11
    \n-
    void redistributeMatrixEntries(M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
    Definition matrixredistribute.hh:757
    \n-
    void redistributeSparsityPattern(M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
    Definition matrixredistribute.hh:663
    \n-
    void redistributeMatrix(M &origMatrix, M &newMatrix, C &origComm, C &newComm, RedistributeInformation< C > &ri)
    Redistribute a matrix according to given domain decompositions.
    Definition matrixredistribute.hh:820
    \n-
    derive error class from the base class in common
    Definition istlexception.hh:19
    \n-
    Definition matrixredistribute.hh:22
    \n-
    void setNoBackwardsCopyRows(std::size_t size)
    Definition matrixredistribute.hh:44
    \n-
    void redistribute(const D &from, D &to) const
    Definition matrixredistribute.hh:28
    \n-
    void resetSetup()
    Definition matrixredistribute.hh:35
    \n-
    void setNoCopyRows(std::size_t size)
    Definition matrixredistribute.hh:41
    \n-
    bool isSetup() const
    Definition matrixredistribute.hh:23
    \n-
    void setNoRows(std::size_t size)
    Definition matrixredistribute.hh:38
    \n-
    void redistributeBackward(D &from, const D &to) const
    Definition matrixredistribute.hh:32
    \n-
    std::size_t getBackwardsCopyRowSize(std::size_t index) const
    Definition matrixredistribute.hh:57
    \n-
    std::size_t getRowSize(std::size_t index) const
    Definition matrixredistribute.hh:47
    \n-
    std::size_t getCopyRowSize(std::size_t index) const
    Definition matrixredistribute.hh:52
    \n-
    std::size_t getRowSize(std::size_t index) const
    Definition matrixredistribute.hh:158
    \n-
    std::size_t & getBackwardsCopyRowSize(std::size_t index)
    Definition matrixredistribute.hh:173
    \n-
    RedistributeInterface & getInterface()
    Definition matrixredistribute.hh:75
    \n-
    void redistribute(const D &from, D &to) const
    Definition matrixredistribute.hh:136
    \n-
    void setNoBackwardsCopyRows(std::size_t rows)
    Definition matrixredistribute.hh:193
    \n-
    std::size_t & getCopyRowSize(std::size_t index)
    Definition matrixredistribute.hh:163
    \n-\n-
    std::size_t getCopyRowSize(std::size_t index) const
    Definition matrixredistribute.hh:168
    \n-
    void setNoRows(std::size_t rows)
    Definition matrixredistribute.hh:183
    \n-
    void reserve(std::size_t size)
    Definition matrixredistribute.hh:150
    \n-
    OwnerOverlapCopyCommunication< T, T1 > Comm
    Definition matrixredistribute.hh:69
    \n-
    void setNoCopyRows(std::size_t rows)
    Definition matrixredistribute.hh:188
    \n-
    void redistributeBackward(D &from, const D &to) const
    Definition matrixredistribute.hh:141
    \n-\n-
    std::size_t getBackwardsCopyRowSize(std::size_t index) const
    Definition matrixredistribute.hh:178
    \n-
    void redistribute(const D &from, D &to) const
    Definition matrixredistribute.hh:118
    \n-\n-
    void redistributeBackward(D &from, const D &to) const
    Definition matrixredistribute.hh:126
    \n-
    void checkInterface(const IS &source, const IS &target, MPI_Comm comm)
    Definition matrixredistribute.hh:80
    \n-
    bool isSetup() const
    Definition matrixredistribute.hh:145
    \n-
    std::size_t & getRowSize(std::size_t index)
    Definition matrixredistribute.hh:153
    \n-
    Utility class to communicate and set the row sizes of a redistributed matrix.
    Definition matrixredistribute.hh:216
    \n-
    M::size_type size_type
    Definition matrixredistribute.hh:219
    \n-
    M::size_type value_type
    Definition matrixredistribute.hh:218
    \n-
    RI & rowsize
    Definition matrixredistribute.hh:230
    \n-
    const M & matrix
    Definition matrixredistribute.hh:229
    \n-
    CommMatrixRowSize(const M &m_, RI &rowsize_)
    Constructor.
    Definition matrixredistribute.hh:226
    \n-
    Utility class to communicate and build the sparsity pattern of a redistributed matrix.
    Definition matrixredistribute.hh:245
    \n-
    M::size_type size_type
    Definition matrixredistribute.hh:246
    \n-
    const Dune::GlobalLookupIndexSet< I > & idxset
    Definition matrixredistribute.hh:356
    \n-
    void storeSparsityPattern(M &m)
    Creates and stores the sparsity pattern of the redistributed matrix.
    Definition matrixredistribute.hh:276
    \n-
    const I & aggidxset
    Definition matrixredistribute.hh:357
    \n-
    const std::vector< size_type > * rowsize
    Definition matrixredistribute.hh:359
    \n-
    void completeSparsityPattern(std::vector< std::set< size_type > > add_sparsity)
    Completes the sparsity pattern of the redistributed matrix with data from copy rows for the novlp cas...
    Definition matrixredistribute.hh:340
    \n-
    CommMatrixSparsityPattern(const M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_)
    Constructor for the original side.
    Definition matrixredistribute.hh:254
    \n-
    const M & matrix
    Definition matrixredistribute.hh:354
    \n-
    CommMatrixSparsityPattern(const M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_, const std::vector< typename M::size_type > &rowsize_)
    Constructor for the redistruted side.
    Definition matrixredistribute.hh:265
    \n-
    std::vector< std::set< size_type > > sparsity
    Definition matrixredistribute.hh:358
    \n-
    Dune::GlobalLookupIndexSet< I > LookupIndexSet
    Definition matrixredistribute.hh:355
    \n-
    static M::size_type getSize(const Type &t, std::size_t i)
    Definition matrixredistribute.hh:376
    \n-
    CommMatrixSparsityPattern< M, I > Type
    Definition matrixredistribute.hh:365
    \n-
    I::GlobalIndex IndexedType
    The indexed type we send. This is the global index indentitfying the column.
    Definition matrixredistribute.hh:371
    \n-
    VariableSize IndexedTypeFlag
    Each row varies in size.
    Definition matrixredistribute.hh:374
    \n-
    Utility class for comunicating the matrix entries.
    Definition matrixredistribute.hh:396
    \n-
    std::vector< size_t > * rowsize
    row size information for the receiving side.
    Definition matrixredistribute.hh:452
    \n-
    M & matrix
    The matrix to communicate the values of.
    Definition matrixredistribute.hh:446
    \n-
    CommMatrixRow(M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_, std::vector< size_t > &rowsize_)
    Constructor.
    Definition matrixredistribute.hh:412
    \n-
    const Dune::GlobalLookupIndexSet< I > & idxset
    Index set for the original matrix.
    Definition matrixredistribute.hh:448
    \n-
    void setOverlapRowsToDirichlet()
    Sets the non-owner rows correctly as Dirichlet boundaries.
    Definition matrixredistribute.hh:421
    \n-
    const I & aggidxset
    Index set for the redistributed matrix.
    Definition matrixredistribute.hh:450
    \n-
    CommMatrixRow(M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_)
    Constructor.
    Definition matrixredistribute.hh:405
    \n-
    std::pair< typename I::GlobalIndex, typename M::block_type > IndexedType
    The indexed type we send. This is the pair of global index indentitfying the column and the value its...
    Definition matrixredistribute.hh:464
    \n-
    CommMatrixRow< M, I > Type
    Definition matrixredistribute.hh:458
    \n-
    static std::size_t getSize(const Type &t, std::size_t i)
    Definition matrixredistribute.hh:469
    \n-
    VariableSize IndexedTypeFlag
    Each row varies in size.
    Definition matrixredistribute.hh:467
    \n-
    Definition matrixredistribute.hh:483
    \n-
    static void scatter(Container &cont, const typename M::size_type &rowsize, std::size_t i)
    Definition matrixredistribute.hh:490
    \n-
    static const M::size_type gather(const Container &cont, std::size_t i)
    Definition matrixredistribute.hh:486
    \n-
    CommMatrixRowSize< M, RI > Container
    Definition matrixredistribute.hh:484
    \n-
    Definition matrixredistribute.hh:500
    \n-
    static const M::size_type gather(const Container &cont, std::size_t i)
    Definition matrixredistribute.hh:503
    \n-
    static void scatter(Container &cont, const typename M::size_type &rowsize, std::size_t i)
    Definition matrixredistribute.hh:507
    \n-
    CommMatrixRowSize< M, RI > Container
    Definition matrixredistribute.hh:501
    \n-
    Definition matrixredistribute.hh:518
    \n-
    M::ConstColIterator ColIter
    Definition matrixredistribute.hh:521
    \n-
    static void scatter(Container &cont, const GlobalIndex &gi, std::size_t i, std::size_t j)
    Definition matrixredistribute.hh:553
    \n-
    CommMatrixSparsityPattern< M, I > Container
    Definition matrixredistribute.hh:520
    \n-
    static GlobalIndex numlimits
    Definition matrixredistribute.hh:524
    \n-
    static ColIter col
    Definition matrixredistribute.hh:523
    \n-
    I::GlobalIndex GlobalIndex
    Definition matrixredistribute.hh:519
    \n-
    static const GlobalIndex & gather(const Container &cont, std::size_t i, std::size_t j)
    Definition matrixredistribute.hh:526
    \n-
    Definition matrixredistribute.hh:599
    \n-
    I::GlobalIndex GlobalIndex
    Definition matrixredistribute.hh:600
    \n-
    static Data datastore
    Definition matrixredistribute.hh:605
    \n-
    static GlobalIndex numlimits
    Definition matrixredistribute.hh:606
    \n-
    M::ConstColIterator ColIter
    Definition matrixredistribute.hh:602
    \n-
    static const Data & gather(const Container &cont, std::size_t i, std::size_t j)
    Definition matrixredistribute.hh:608
    \n-
    std::pair< GlobalIndex, typename M::block_type > Data
    Definition matrixredistribute.hh:603
    \n-
    static void scatter(Container &cont, const Data &data, std::size_t i, std::size_t j)
    Definition matrixredistribute.hh:638
    \n-
    static ColIter col
    Definition matrixredistribute.hh:604
    \n-
    CommMatrixRow< M, I > Container
    Definition matrixredistribute.hh:601
    \n-
    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
    Definition owneroverlapcopy.hh:174
    \n-
    EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner > OwnerSet
    Definition owneroverlapcopy.hh:194
    \n-
    Definition pinfo.hh:28
    \n-
    Definition repartition.hh:260
    \n-
    @ nonoverlapping
    Category for non-overlapping solvers.
    Definition solvercategory.hh:27
    \n-
    static Category category(const OP &op, decltype(op.category()) *=nullptr)
    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtu...
    Definition solvercategory.hh:34
    \n+
    A multiple of the identity matrix of static size.
    Definition scaledidmatrix.hh:30
    \n+
    void usmhv(const K &alpha, const X &x, Y &y) const
    y += alpha A^H x
    Definition scaledidmatrix.hh:353
    \n+
    void mmtv(const X &x, Y &y) const
    y -= A^T x
    Definition scaledidmatrix.hh:305
    \n+
    ScaledIdentityMatrix & operator-=(const ScaledIdentityMatrix &y)
    vector space subtraction
    Definition scaledidmatrix.hh:169
    \n+
    const_row_type::ConstIterator ConstColIterator
    rename the iterators for easier access
    Definition scaledidmatrix.hh:131
    \n+
    ConstIterator end() const
    end iterator
    Definition scaledidmatrix.hh:140
    \n+
    Iterator beforeBegin()
    Definition scaledidmatrix.hh:118
    \n+
    bool operator!=(const ScaledIdentityMatrix &other) const
    incomparison operator
    Definition scaledidmatrix.hh:229
    \n+
    void mmv(const X &x, Y &y) const
    y -= A x
    Definition scaledidmatrix.hh:293
    \n+
    std::size_t size_type
    The type used for the index access and size operations.
    Definition scaledidmatrix.hh:43
    \n+
    void usmv(const K &alpha, const X &x, Y &y) const
    y += alpha A x
    Definition scaledidmatrix.hh:329
    \n+
    row_type::Iterator ColIterator
    rename the iterators for easier access
    Definition scaledidmatrix.hh:95
    \n+
    const_row_type const_reference
    Definition scaledidmatrix.hh:53
    \n+
    void mv(const X &x, Y &y) const
    y = A x
    Definition scaledidmatrix.hh:238
    \n+
    void umtv(const X &x, Y &y) const
    y += A^T x
    Definition scaledidmatrix.hh:269
    \n+
    void umhv(const X &x, Y &y) const
    y += A^H x
    Definition scaledidmatrix.hh:281
    \n+
    DiagonalRowVector< K, n > row_type
    Each row is implemented by a field vector.
    Definition scaledidmatrix.hh:50
    \n+
    ContainerWrapperIterator< const WrapperType, reference, reference > Iterator
    Iterator class for sequential access.
    Definition scaledidmatrix.hh:89
    \n+
    Iterator beforeEnd()
    Definition scaledidmatrix.hh:111
    \n+
    K determinant() const
    calculates the determinant of this matrix
    Definition scaledidmatrix.hh:408
    \n+
    K field_type
    export the type representing the field
    Definition scaledidmatrix.hh:37
    \n+
    void usmtv(const K &alpha, const X &x, Y &y) const
    y += alpha A^T x
    Definition scaledidmatrix.hh:341
    \n+
    Iterator end()
    end iterator
    Definition scaledidmatrix.hh:104
    \n+
    Iterator iterator
    typedef for stl compliant access
    Definition scaledidmatrix.hh:91
    \n+
    const K & scalar() const
    Get const reference to the scalar diagonal value.
    Definition scaledidmatrix.hh:477
    \n+
    void umv(const X &x, Y &y) const
    y += A x
    Definition scaledidmatrix.hh:257
    \n+
    static constexpr std::size_t blocklevel
    We are at the leaf of the block recursion.
    Definition scaledidmatrix.hh:47
    \n+
    const K & diagonal(size_type) const
    Get const reference to diagonal entry.
    Definition scaledidmatrix.hh:464
    \n+
    @ rows
    The number of rows.
    Definition scaledidmatrix.hh:58
    \n+
    @ cols
    The number of columns.
    Definition scaledidmatrix.hh:60
    \n+
    ScaledIdentityMatrix & operator=(const K &k)
    Definition scaledidmatrix.hh:75
    \n+
    ContainerWrapperIterator< const WrapperType, const_reference, const_reference > ConstIterator
    Iterator class for sequential access.
    Definition scaledidmatrix.hh:125
    \n+
    K & diagonal(size_type)
    Get reference to diagonal entry.
    Definition scaledidmatrix.hh:470
    \n+
    void solve(V &x, const V &b) const
    Solve system A x = b.
    Definition scaledidmatrix.hh:394
    \n+
    bool exists(size_type i, size_type j) const
    return true when (i,j) is in pattern
    Definition scaledidmatrix.hh:429
    \n+
    Iterator RowIterator
    rename the iterators for easier access
    Definition scaledidmatrix.hh:93
    \n+
    ConstIterator const_iterator
    typedef for stl compliant access
    Definition scaledidmatrix.hh:127
    \n+
    ScaledIdentityMatrix()
    Default constructor.
    Definition scaledidmatrix.hh:66
    \n+
    bool operator==(const ScaledIdentityMatrix &other) const
    comparison operator
    Definition scaledidmatrix.hh:223
    \n+
    ConstIterator beforeBegin() const
    Definition scaledidmatrix.hh:154
    \n+
    ScaledIdentityMatrix & operator/=(const K &k)
    vector space division by scalar
    Definition scaledidmatrix.hh:196
    \n+
    friend std::ostream & operator<<(std::ostream &s, const ScaledIdentityMatrix< K, n > &a)
    Sends the matrix to an output stream.
    Definition scaledidmatrix.hh:441
    \n+
    FieldTraits< field_type >::real_type frobenius_norm2() const
    square of frobenius norm, need for block recursion
    Definition scaledidmatrix.hh:372
    \n+
    FieldTraits< field_type >::real_type frobenius_norm() const
    frobenius norm: sqrt(sum over squared values of entries)
    Definition scaledidmatrix.hh:366
    \n+
    FieldTraits< field_type >::real_type infinity_norm() const
    infinity norm (row sum norm, how to generalize for blocks?)
    Definition scaledidmatrix.hh:378
    \n+
    ConstIterator ConstRowIterator
    rename the iterators for easier access
    Definition scaledidmatrix.hh:129
    \n+
    ConstIterator beforeEnd() const
    Definition scaledidmatrix.hh:147
    \n+
    size_type M() const
    number of blocks in column direction
    Definition scaledidmatrix.hh:421
    \n+
    const_reference operator[](size_type i) const
    Return const_reference object as row replacement.
    Definition scaledidmatrix.hh:458
    \n+
    ScaledIdentityMatrix(const K &k)
    Constructor initializing the whole matrix with a scalar.
    Definition scaledidmatrix.hh:70
    \n+
    friend auto operator*(const ScaledIdentityMatrix &matrix, Scalar scalar)
    vector space multiplication with scalar
    Definition scaledidmatrix.hh:207
    \n+
    FieldTraits< field_type >::real_type infinity_norm_real() const
    simplified infinity norm (uses Manhattan norm for complex values)
    Definition scaledidmatrix.hh:384
    \n+
    ScaledIdentityMatrix & operator*=(const K &k)
    vector space multiplication with scalar
    Definition scaledidmatrix.hh:189
    \n+
    bool identical(const ScaledIdentityMatrix< K, n > &other) const
    Definition scaledidmatrix.hh:82
    \n+
    void invert()
    Compute inverse.
    Definition scaledidmatrix.hh:402
    \n+
    Iterator begin()
    begin iterator
    Definition scaledidmatrix.hh:98
    \n+
    K & scalar()
    Get reference to the scalar diagonal value.
    Definition scaledidmatrix.hh:484
    \n+
    row_type reference
    Definition scaledidmatrix.hh:51
    \n+
    K block_type
    export the type representing the components
    Definition scaledidmatrix.hh:40
    \n+
    void mmhv(const X &x, Y &y) const
    y -= A^H x
    Definition scaledidmatrix.hh:317
    \n+
    ScaledIdentityMatrix & operator+=(const ScaledIdentityMatrix &y)
    vector space addition
    Definition scaledidmatrix.hh:162
    \n+
    DiagonalRowVectorConst< K, n > const_row_type
    Definition scaledidmatrix.hh:52
    \n+
    void mtv(const X &x, Y &y) const
    y = A^T x
    Definition scaledidmatrix.hh:250
    \n+
    reference operator[](size_type i)
    Return reference object as row replacement.
    Definition scaledidmatrix.hh:452
    \n+
    ConstIterator begin() const
    begin iterator
    Definition scaledidmatrix.hh:134
    \n+
    size_type N() const
    number of blocks in row direction
    Definition scaledidmatrix.hh:415
    \n+
    static void apply(DenseMatrix &denseMatrix, ScaledIdentityMatrix< field, N > const &rhs)
    Definition scaledidmatrix.hh:497
    \n+
    typename ScaledIdentityMatrix< K, n >::field_type field_type
    Definition scaledidmatrix.hh:510
    \n+
    typename FieldTraits< field_type >::real_type real_type
    Definition scaledidmatrix.hh:511
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -1,1173 +1,718 @@\n dune-istl\u00a02.9.0\n Loading...\n Searching...\n No Matches\n * _\bd_\bu_\bn_\be\n * _\bi_\bs_\bt_\bl\n-matrixredistribute.hh\n+scaledidmatrix.hh\n _\bG_\bo_\b _\bt_\bo_\b _\bt_\bh_\be_\b _\bd_\bo_\bc_\bu_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn_\b _\bo_\bf_\b _\bt_\bh_\bi_\bs_\b _\bf_\bi_\bl_\be_\b.\n 1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file\n LICENSE.md in module root\n 2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception\n 3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n 4// vi: set et ts=4 sw=2 sts=2:\n-5#ifndef DUNE_ISTL_MATRIXREDISTRIBUTE_HH\n-6#define DUNE_ISTL_MATRIXREDISTRIBUTE_HH\n-7#include \n-8#include \"_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\b._\bh_\bh\"\n-9#include \n-10#include \n-11#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh>\n-12#include <_\bd_\bu_\bn_\be_\b/_\bi_\bs_\bt_\bl_\b/_\bp_\ba_\ba_\bm_\bg_\b/_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh>\n-18namespace _\bD_\bu_\bn_\be\n-19{\n-20 template\n-_\b2_\b1 struct _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-22 {\n-_\b2_\b3 bool _\bi_\bs_\bS_\be_\bt_\bu_\bp() const\n-24 {\n-25 return false;\n-26 }\n-27 template\n-_\b2_\b8 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be([[maybe_unused]] const D& from, [[maybe_unused]] D& to)\n-const\n-29 {}\n-30\n-31 template\n-_\b3_\b2 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd([[maybe_unused]] D& from, [[maybe_unused]]const D&\n-to) const\n-33 {}\n-34\n-_\b3_\b5 void _\br_\be_\bs_\be_\bt_\bS_\be_\bt_\bu_\bp()\n-36 {}\n-37\n-_\b3_\b8 void _\bs_\be_\bt_\bN_\bo_\bR_\bo_\bw_\bs([[maybe_unused]] std::size_t size)\n-39 {}\n-40\n-_\b4_\b1 void _\bs_\be_\bt_\bN_\bo_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs([[maybe_unused]] std::size_t size)\n-42 {}\n-43\n-_\b4_\b4 void _\bs_\be_\bt_\bN_\bo_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs([[maybe_unused]] std::size_t size)\n-45 {}\n-46\n-_\b4_\b7 std::size_t _\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be([[maybe_unused]] std::size_t index) const\n-48 {\n-49 return -1;\n-50 }\n-51\n-_\b5_\b2 std::size_t _\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be([[maybe_unused]] std::size_t index) const\n-53 {\n-54 return -1;\n-55 }\n-56\n-_\b5_\b7 std::size_t _\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be([[maybe_unused]] std::size_t index)\n-const\n-58 {\n-59 return -1;\n-60 }\n-61\n-62 };\n-63\n-64#if HAVE_MPI\n-65 template\n-_\b6_\b6 class _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn<_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn >\n-67 {\n-68 public:\n-_\b6_\b9 typedef _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bT_\b,_\bT_\b1_\b> _\bC_\bo_\bm_\bm;\n-70\n-_\b7_\b1 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn()\n-72 : interface(), setup_(false)\n-73 {}\n-74\n-_\b7_\b5 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be& _\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be()\n+5#ifndef DUNE_ISTL_SCALEDIDMATRIX_HH\n+6#define DUNE_ISTL_SCALEDIDMATRIX_HH\n+7\n+14#include \n+15#include \n+16#include \n+17#include \n+18#include \n+19#include \n+20#include \n+21#include \n+22\n+23namespace _\bD_\bu_\bn_\be {\n+24\n+28 template\n+_\b2_\b9 class _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx\n+30 {\n+31 typedef DiagonalMatrixWrapper< ScaledIdentityMatrix > WrapperType;\n+32\n+33 public:\n+34 //===== type definitions and constants\n+35\n+_\b3_\b7 typedef K _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+38\n+_\b4_\b0 typedef K _\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be;\n+41\n+_\b4_\b3 typedef std::size_t _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+44\n+46 [[deprecated(\"Use free function blockLevel(). Will be removed after 2.8.\")]]\n+_\b4_\b7 static constexpr std::size_t _\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl = 1;\n+48\n+_\b5_\b0 typedef DiagonalRowVector _\br_\bo_\bw_\b__\bt_\by_\bp_\be;\n+_\b5_\b1 typedef _\br_\bo_\bw_\b__\bt_\by_\bp_\be _\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+_\b5_\b2 typedef DiagonalRowVectorConst _\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\bt_\by_\bp_\be;\n+_\b5_\b3 typedef _\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\bt_\by_\bp_\be _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be;\n+54\n+56 enum {\n+_\b5_\b8 _\br_\bo_\bw_\bs = n,\n+60 _\bc_\bo_\bl_\bs = n\n+_\b6_\b1 };\n+62\n+63 //===== constructors\n+_\b6_\b6 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx () {}\n+67\n+_\b7_\b0 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx (const K& k)\n+71 : p_(k)\n+72 {}\n+73\n+74 //===== assignment from scalar\n+_\b7_\b5 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b (const K& k)\n 76 {\n-77 return interface;\n-78 }\n-79 template\n-_\b8_\b0 void _\bc_\bh_\be_\bc_\bk_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be(const IS& source,\n-81 const IS& target, MPI_Comm comm)\n-82 {\n-83 auto ri = std::make_unique >(source, target, comm);\n-84 ri->template rebuild();\n-85 Interface inf;\n-86 typename _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bn_\bt_\b>_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt flags;\n-87 int rank;\n-88 MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n-89 inf.free();\n-90 inf.build(*ri, flags, flags);\n-91\n-92\n-93#ifdef DEBUG_REPART\n-94 if(inf!=interface) {\n-95\n-96 MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n-97 if(rank==0)\n-98 std::cout<<\"Interfaces do not match!\"<\n-_\b1_\b1_\b8 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be(const D& from, D& to) const\n+77 p_ = k;\n+78 return *this;\n+79 }\n+80\n+81 // check if matrix is identical to other matrix (not only identical values)\n+_\b8_\b2 bool _\bi_\bd_\be_\bn_\bt_\bi_\bc_\ba_\bl(const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b>& other) const\n+83 {\n+84 return (this==&other);\n+85 }\n+86\n+87 //===== iterator interface to rows of the matrix\n+_\b8_\b9 typedef ContainerWrapperIterator\n+_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b9_\b1 typedef _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b9_\b3 typedef _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b9_\b5 typedef typename row_type::Iterator _\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+96\n+_\b9_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn ()\n+99 {\n+100 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),0);\n+101 }\n+102\n+_\b1_\b0_\b4 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd ()\n+105 {\n+106 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),n);\n+107 }\n+108\n+_\b1_\b1_\b1 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd ()\n+112 {\n+113 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),n-1);\n+114 }\n+115\n+_\b1_\b1_\b8 _\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn ()\n 119 {\n-120 BufferedCommunicator communicator;\n-121 communicator.template build(from,to, interface);\n-122 communicator.template forward(from, to);\n-123 communicator.free();\n-124 }\n-125 template\n-_\b1_\b2_\b6 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd(D& from, const D& to) const\n-127 {\n-128\n-129 BufferedCommunicator communicator;\n-130 communicator.template build(from,to, interface);\n-131 communicator.template backward(from, to);\n-132 communicator.free();\n-133 }\n-134\n-135 template\n-_\b1_\b3_\b6 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be(const D& from, D& to) const\n-137 {\n-138 redistribute >(from,to);\n-139 }\n-140 template\n-_\b1_\b4_\b1 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd(D& from, const D& to) const\n-142 {\n-143 redistributeBackward >(from,to);\n-144 }\n-_\b1_\b4_\b5 bool _\bi_\bs_\bS_\be_\bt_\bu_\bp() const\n-146 {\n-147 return setup_;\n-148 }\n-149\n-_\b1_\b5_\b0 void _\br_\be_\bs_\be_\br_\bv_\be(std::size_t size)\n-151 {}\n-152\n-_\b1_\b5_\b3 std::size_t& _\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index)\n-154 {\n-155 return rowSize[index];\n-156 }\n-157\n-_\b1_\b5_\b8 std::size_t _\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index) const\n-159 {\n-160 return rowSize[index];\n-161 }\n-162\n-_\b1_\b6_\b3 std::size_t& _\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index)\n-164 {\n-165 return copyrowSize[index];\n+120 return _\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),-1);\n+121 }\n+122\n+123\n+_\b1_\b2_\b5 typedef ContainerWrapperIterator _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b1_\b2_\b7 typedef _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b1_\b2_\b9 typedef _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+_\b1_\b3_\b1 typedef typename const_row_type::ConstIterator _\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br;\n+132\n+_\b1_\b3_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bg_\bi_\bn () const\n+135 {\n+136 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),0);\n+137 }\n+138\n+_\b1_\b4_\b0 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\be_\bn_\bd () const\n+141 {\n+142 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),n);\n+143 }\n+144\n+_\b1_\b4_\b7 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd() const\n+148 {\n+149 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),n-1);\n+150 }\n+151\n+_\b1_\b5_\b4 _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br _\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn () const\n+155 {\n+156 return _\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br(WrapperType(this),-1);\n+157 }\n+158\n+159 //===== vector space arithmetic\n+160\n+_\b1_\b6_\b2 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& y)\n+163 {\n+164 p_ += y.p_;\n+165 return *this;\n 166 }\n 167\n-_\b1_\b6_\b8 std::size_t _\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index) const\n-169 {\n-170 return copyrowSize[index];\n-171 }\n-172\n-_\b1_\b7_\b3 std::size_t& _\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index)\n-174 {\n-175 return backwardscopyrowSize[index];\n-176 }\n-177\n-_\b1_\b7_\b8 std::size_t _\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(std::size_t index) const\n-179 {\n-180 return backwardscopyrowSize[index];\n-181 }\n-182\n-_\b1_\b8_\b3 void _\bs_\be_\bt_\bN_\bo_\bR_\bo_\bw_\bs(std::size_t rows)\n+_\b1_\b6_\b9 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& y)\n+170 {\n+171 p_ -= y.p_;\n+172 return *this;\n+173 }\n+174\n+_\b1_\b7_\b6 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=_\b (const K& k)\n+177 {\n+178 p_ += k;\n+179 return *this;\n+180 }\n+181\n+_\b1_\b8_\b3 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=_\b (const K& k)\n 184 {\n-185 rowSize.resize(rows, 0);\n-186 }\n-187\n-_\b1_\b8_\b8 void _\bs_\be_\bt_\bN_\bo_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs(std::size_t rows)\n-189 {\n-190 copyrowSize.resize(rows, 0);\n-191 }\n-192\n-_\b1_\b9_\b3 void _\bs_\be_\bt_\bN_\bo_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs(std::size_t rows)\n-194 {\n-195 backwardscopyrowSize.resize(rows, 0);\n-196 }\n-197\n-198 private:\n-199 std::vector rowSize;\n-200 std::vector copyrowSize;\n-201 std::vector backwardscopyrowSize;\n-202 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be interface;\n-203 bool setup_;\n-204 };\n-205\n-214 template\n-_\b2_\b1_\b5 struct _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be\n+185 p_ -= k;\n+186 return *this;\n+187 }\n+_\b1_\b8_\b9 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=_\b (const K& k)\n+190 {\n+191 p_ *= k;\n+192 return *this;\n+193 }\n+194\n+_\b1_\b9_\b6 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=_\b (const K& k)\n+197 {\n+198 p_ /= k;\n+199 return *this;\n+200 }\n+201\n+202 //===== binary operators\n+203\n+205 template ::value, int> = 0>\n+_\b2_\b0_\b7 friend auto _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b ( const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& matrix, Scalar _\bs_\bc_\ba_\bl_\ba_\br)\n+208 {\n+209 return _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bP_\br_\bo_\bm_\bo_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bK_\b,_\bS_\bc_\ba_\bl_\ba_\br_\b>_\b:_\b:\n+_\bP_\br_\bo_\bm_\bo_\bt_\be_\bd_\bT_\by_\bp_\be, n>{matrix._\bs_\bc_\ba_\bl_\ba_\br()*_\bs_\bc_\ba_\bl_\ba_\br};\n+210 }\n+211\n+213 template ::value, int> = 0>\n+_\b2_\b1_\b5 friend auto _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b (Scalar _\bs_\bc_\ba_\bl_\ba_\br, const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& matrix)\n 216 {\n-217 // Make the default communication policy work.\n-_\b2_\b1_\b8 typedef typename M::size_type _\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be;\n-_\b2_\b1_\b9 typedef typename M::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n-220\n-_\b2_\b2_\b6 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be(const M& m_, RI& rowsize_)\n-227 : _\bm_\ba_\bt_\br_\bi_\bx(m_), _\br_\bo_\bw_\bs_\bi_\bz_\be(rowsize_)\n-228 {}\n-_\b2_\b2_\b9 const M& _\bm_\ba_\bt_\br_\bi_\bx;\n-_\b2_\b3_\b0 RI& _\br_\bo_\bw_\bs_\bi_\bz_\be;\n-231\n-232 };\n+217 return _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bt_\by_\bp_\be_\bn_\ba_\bm_\be_\b _\bP_\br_\bo_\bm_\bo_\bt_\bi_\bo_\bn_\bT_\br_\ba_\bi_\bt_\bs_\b<_\bS_\bc_\ba_\bl_\ba_\br_\b,_\bK_\b>_\b:_\b:\n+_\bP_\br_\bo_\bm_\bo_\bt_\be_\bd_\bT_\by_\bp_\be, n>{_\bs_\bc_\ba_\bl_\ba_\br*matrix._\bs_\bc_\ba_\bl_\ba_\br()};\n+218 }\n+219\n+220 //===== comparison ops\n+221\n+_\b2_\b2_\b3 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=(const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& other) const\n+224 {\n+225 return p_==other._\bs_\bc_\ba_\bl_\ba_\br();\n+226 }\n+227\n+_\b2_\b2_\b9 bool _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=(const _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx& other) const\n+230 {\n+231 return p_!=other._\bs_\bc_\ba_\bl_\ba_\br();\n+232 }\n 233\n-234\n-243 template\n-_\b2_\b4_\b4 struct _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n-245 {\n-_\b2_\b4_\b6 typedef typename M::size_type _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be;\n+234 //===== linear maps\n+235\n+237 template\n+_\b2_\b3_\b8 void _\bm_\bv (const X& x, Y& y) const\n+239 {\n+240#ifdef DUNE_FMatrix_WITH_CHECKING\n+241 if (x.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n+242 if (y.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n+243#endif\n+244 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i&\n-idxset_, const I& aggidxset_)\n-255 : _\bm_\ba_\bt_\br_\bi_\bx(m_), _\bi_\bd_\bx_\bs_\be_\bt(idxset_), _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt(aggidxset_), _\br_\bo_\bw_\bs_\bi_\bz_\be()\n-256 {}\n-257\n-_\b2_\b6_\b5 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(const M& m_, const Dune::GlobalLookupIndexSet&\n-idxset_, const I& aggidxset_,\n-266 const std::vector& rowsize_)\n-267 : _\bm_\ba_\bt_\br_\bi_\bx(m_), _\bi_\bd_\bx_\bs_\be_\bt(idxset_), _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt(aggidxset_), _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by\n-(aggidxset_.size()), _\br_\bo_\bw_\bs_\bi_\bz_\be(&rowsize_)\n-268 {}\n-269\n-_\b2_\b7_\b6 void _\bs_\bt_\bo_\br_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(M& m)\n-277 {\n-278 // insert diagonal to overlap rows\n-279 typedef typename Dune::GlobalLookupIndexSet::const_iterator IIter;\n-280 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bn_\bt_\b>_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n-OwnerSet;\n-281 std::size_t nnz=0;\n-282#ifdef DEBUG_REPART\n-283 int rank;\n-284\n-285 MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n+249 template\n+_\b2_\b5_\b0 void _\bm_\bt_\bv (const X& x, Y& y) const\n+251 {\n+252 _\bm_\bv(x, y);\n+253 }\n+254\n+256 template\n+_\b2_\b5_\b7 void _\bu_\bm_\bv (const X& x, Y& y) const\n+258 {\n+259#ifdef DUNE_FMatrix_WITH_CHECKING\n+260 if (x.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n+261 if (y.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n+262#endif\n+263 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b2_\b6_\b9 void _\bu_\bm_\bt_\bv (const X& x, Y& y) const\n+270 {\n+271#ifdef DUNE_FMatrix_WITH_CHECKING\n+272 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n+273 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n+274#endif\n+275 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b2_\b8_\b1 void _\bu_\bm_\bh_\bv (const X& x, Y& y) const\n+282 {\n+283#ifdef DUNE_FMatrix_WITH_CHECKING\n+284 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n+285 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n 286#endif\n-287 for(IIter i= _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.begin(), end=_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.end(); i!=end; ++i) {\n-288 if(!OwnerSet::contains(i->local().attribute())) {\n-289#ifdef DEBUG_REPART\n-290 std::cout<local()<local()].insert(i->local());\n-293 }\n-294\n-295 nnz+=_\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[i->local()].size();\n-296 }\n-297 assert( _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.size()==_\bs_\bp_\ba_\br_\bs_\bi_\bt_\by.size());\n-298\n-299 if(nnz>0) {\n-300 m.setSize(_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.size(), _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.size(), nnz);\n-301 m.setBuildMode(M::row_wise);\n-302 typename M::CreateIterator citer=m.createbegin();\n-303#ifdef DEBUG_REPART\n-304 std::size_t idx=0;\n-305 bool correct=true;\n-306 Dune::GlobalLookupIndexSet global(_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt);\n-307#endif\n-308 typedef typename std::vector >::const_iterator Iter;\n-309 for(Iter i=_\bs_\bp_\ba_\br_\bs_\bi_\bt_\by.begin(), end=_\bs_\bp_\ba_\br_\bs_\bi_\bt_\by.end(); i!=end; ++i, ++citer)\n-310 {\n-311 typedef typename std::set::const_iterator SIter;\n-312 for(SIter si=i->begin(), send=i->end(); si!=send; ++si)\n-313 citer.insert(*si);\n-314#ifdef DEBUG_REPART\n-315 if(i->find(idx)==i->end()) {\n-316 const typename I::IndexPair* gi=global.pair(idx);\n-317 assert(gi);\n-318 std::cout<global()<<\" attr=\"<local().attribute()<<\" \"<<\n-319 OwnerSet::contains(gi->local().attribute())<<\n-320 \" row size=\"<size()<\n+_\b2_\b9_\b3 void _\bm_\bm_\bv (const X& x, Y& y) const\n+294 {\n+295#ifdef DUNE_FMatrix_WITH_CHECKING\n+296 if (x.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n+297 if (y.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n+298#endif\n+299 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b3_\b0_\b5 void _\bm_\bm_\bt_\bv (const X& x, Y& y) const\n+306 {\n+307#ifdef DUNE_FMatrix_WITH_CHECKING\n+308 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n+309 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n+310#endif\n+311 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b3_\b1_\b7 void _\bm_\bm_\bh_\bv (const X& x, Y& y) const\n+318 {\n+319#ifdef DUNE_FMatrix_WITH_CHECKING\n+320 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n+321 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n+322#endif\n+323 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i >\n-add_sparsity)\n-341 {\n-342 for (unsigned int i = 0; i != _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by.size(); ++i) {\n-343 if (add_sparsity[i].size() != 0) {\n-344 typedef std::set Set;\n-345 Set tmp_set;\n-346 std::insert_iterator tmp_insert (tmp_set, tmp_set.begin());\n-347 std::set_union(add_sparsity[i].begin(), add_sparsity[i].end(),\n-348 _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[i].begin(), _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[i].end(), tmp_insert);\n-349 _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[i].swap(tmp_set);\n-350 }\n-351 }\n-352 }\n-353\n-_\b3_\b5_\b4 const M& _\bm_\ba_\bt_\br_\bi_\bx;\n-_\b3_\b5_\b5 typedef Dune::GlobalLookupIndexSet _\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt;\n-_\b3_\b5_\b6 const Dune::GlobalLookupIndexSet& _\bi_\bd_\bx_\bs_\be_\bt;\n-_\b3_\b5_\b7 const I& _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt;\n-_\b3_\b5_\b8 std::vector > _\bs_\bp_\ba_\br_\bs_\bi_\bt_\by;\n-_\b3_\b5_\b9 const std::vector* _\br_\bo_\bw_\bs_\bi_\bz_\be;\n-360 };\n-361\n-362 template\n-_\b3_\b6_\b3 struct CommPolicy<_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn >\n-364 {\n-_\b3_\b6_\b5 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\b> _\bT_\by_\bp_\be;\n-366\n-_\b3_\b7_\b1 typedef typename I::GlobalIndex _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n-372\n-_\b3_\b7_\b4 typedef VariableSize _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg;\n-375\n-_\b3_\b7_\b6 static typename M::size_type _\bg_\be_\bt_\bS_\bi_\bz_\be(const _\bT_\by_\bp_\be& t, std::size_t i)\n-377 {\n-378 if(!t._\br_\bo_\bw_\bs_\bi_\bz_\be)\n-379 return t._\bm_\ba_\bt_\br_\bi_\bx[i].size();\n-380 else\n-381 {\n-382 assert((*t._\br_\bo_\bw_\bs_\bi_\bz_\be)[i]>0);\n-383 return (*t._\br_\bo_\bw_\bs_\bi_\bz_\be)[i];\n-384 }\n-385 }\n-386 };\n-387\n-394 template\n-_\b3_\b9_\b5 struct _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw\n-396 {\n-_\b4_\b0_\b5 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw(M& m_, const Dune::GlobalLookupIndexSet& idxset_, const I&\n-aggidxset_)\n-406 : _\bm_\ba_\bt_\br_\bi_\bx(m_), _\bi_\bd_\bx_\bs_\be_\bt(idxset_), _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt(aggidxset_), _\br_\bo_\bw_\bs_\bi_\bz_\be()\n-407 {}\n-408\n-_\b4_\b1_\b2 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw(M& m_, const Dune::GlobalLookupIndexSet& idxset_, const I&\n-aggidxset_,\n-413 std::vector& rowsize_)\n-414 : _\bm_\ba_\bt_\br_\bi_\bx(m_), _\bi_\bd_\bx_\bs_\be_\bt(idxset_), _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt(aggidxset_), _\br_\bo_\bw_\bs_\bi_\bz_\be(&rowsize_)\n-415 {}\n-_\b4_\b2_\b1 void _\bs_\be_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bR_\bo_\bw_\bs_\bT_\bo_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt()\n+326\n+328 template\n+_\b3_\b2_\b9 void _\bu_\bs_\bm_\bv (const K& alpha, const X& x, Y& y) const\n+330 {\n+331#ifdef DUNE_FMatrix_WITH_CHECKING\n+332 if (x.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n+333 if (y.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n+334#endif\n+335 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b3_\b4_\b1 void _\bu_\bs_\bm_\bt_\bv (const K& alpha, const X& x, Y& y) const\n+342 {\n+343#ifdef DUNE_FMatrix_WITH_CHECKING\n+344 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n+345 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n+346#endif\n+347 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i\n+_\b3_\b5_\b3 void _\bu_\bs_\bm_\bh_\bv (const K& alpha, const X& x, Y& y) const\n+354 {\n+355#ifdef DUNE_FMatrix_WITH_CHECKING\n+356 if (x.N()!=_\bN()) DUNE_THROW(FMatrixError,\"index out of range\");\n+357 if (y.N()!=_\bM()) DUNE_THROW(FMatrixError,\"index out of range\");\n+358#endif\n+359 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm () const\n+367 {\n+368 return fvmeta::sqrt(n*p_*p_);\n+369 }\n+370\n+_\b3_\b7_\b2 typename FieldTraits::real_type _\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2 () const\n+373 {\n+374 return n*p_*p_;\n+375 }\n+376\n+_\b3_\b7_\b8 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm () const\n+379 {\n+380 return std::abs(p_);\n+381 }\n+382\n+_\b3_\b8_\b4 typename FieldTraits::real_type _\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl () const\n+385 {\n+386 return fvmeta::absreal(p_);\n+387 }\n+388\n+389 //===== solve\n+390\n+393 template\n+_\b3_\b9_\b4 void _\bs_\bo_\bl_\bv_\be (V& x, const V& b) const\n+395 {\n+396 for (int i=0; i::const_iterator Iter;\n-424 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bn_\bt_\b>_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n-OwnerSet;\n+423 return n;\n+424 }\n 425\n-426 for(Iter i= _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.begin(), end=_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.end(); i!=end; ++i)\n-427 if(!OwnerSet::contains(i->local().attribute())) {\n-428 // Set to Dirchlet\n-429 typedef typename M::ColIterator CIter;\n-430 for(CIter c=_\bm_\ba_\bt_\br_\bi_\bx[i->local()].begin(), cend= _\bm_\ba_\bt_\br_\bi_\bx[i->local()].end();\n-431 c!= cend; ++c)\n-432 {\n-433 *c=0;\n-434 if(c.index()==i->local()) {\n-435 auto setDiagonal = [](auto&& scalarOrMatrix, const auto& value) {\n-436 auto&& matrixView = Dune::Impl::asMatrix(scalarOrMatrix);\n-437 for (auto rowIt = matrixView.begin(); rowIt != matrixView.end(); ++rowIt)\n-438 (*rowIt)[rowIt.index()] = value;\n-439 };\n-440 setDiagonal(*c, 1);\n-441 }\n-442 }\n-443 }\n-444 }\n-_\b4_\b4_\b6 M& _\bm_\ba_\bt_\br_\bi_\bx;\n-_\b4_\b4_\b8 const Dune::GlobalLookupIndexSet& _\bi_\bd_\bx_\bs_\be_\bt;\n-_\b4_\b5_\b0 const I& _\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt;\n-_\b4_\b5_\b2 std::vector* _\br_\bo_\bw_\bs_\bi_\bz_\be; // row sizes differ from sender side in\n-overlap!\n-453 };\n-454\n-455 template\n-_\b4_\b5_\b6 struct CommPolicy<_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw >\n-457 {\n-_\b4_\b5_\b8 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\b> _\bT_\by_\bp_\be;\n-459\n-_\b4_\b6_\b4 typedef std::pair\n-_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be;\n-465\n-_\b4_\b6_\b7 typedef VariableSize _\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg;\n+426 //===== query\n+427\n+_\b4_\b2_\b9 bool _\be_\bx_\bi_\bs_\bt_\bs (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i, _\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be j) const\n+430 {\n+431#ifdef DUNE_FMatrix_WITH_CHECKING\n+432 if (i<0 || i>=n) DUNE_THROW(FMatrixError,\"row index out of range\");\n+433 if (j<0 || j>=n) DUNE_THROW(FMatrixError,\"column index out of range\");\n+434#endif\n+435 return i==j;\n+436 }\n+437\n+438 //===== conversion operator\n+439\n+_\b4_\b4_\b1 friend std::ostream& _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<_\b (std::ostream& s, const\n+_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\bn_\b>& a)\n+442 {\n+443 for (_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i=0; i(&p_), i);\n+455 }\n+456\n+_\b4_\b5_\b8 _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b](_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be i) const\n+459 {\n+460 return _\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be(const_cast(&p_), i);\n+461 }\n+462\n+_\b4_\b6_\b4 const K& _\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*i*/) const\n+465 {\n+466 return p_;\n+467 }\n 468\n-_\b4_\b6_\b9 static std::size_t _\bg_\be_\bt_\bS_\bi_\bz_\be(const _\bT_\by_\bp_\be& t, std::size_t i)\n-470 {\n-471 if(!t._\br_\bo_\bw_\bs_\bi_\bz_\be)\n-472 return t._\bm_\ba_\bt_\br_\bi_\bx[i].size();\n-473 else\n-474 {\n-475 assert((*t._\br_\bo_\bw_\bs_\bi_\bz_\be)[i]>0);\n-476 return (*t._\br_\bo_\bw_\bs_\bi_\bz_\be)[i];\n-477 }\n-478 }\n-479 };\n-480\n-481 template\n-_\b4_\b8_\b2 struct _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-483 {\n-_\b4_\b8_\b4 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b<_\bM_\b,_\bR_\bI_\b> _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-485\n-_\b4_\b8_\b6 static const typename M::size_type _\bg_\ba_\bt_\bh_\be_\br(const _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, std::\n-size_t i)\n-487 {\n-488 return cont._\bm_\ba_\bt_\br_\bi_\bx[i].size();\n-489 }\n-_\b4_\b9_\b0 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, const typename M::size_type& rowsize,\n-std::size_t i)\n-491 {\n-492 assert(rowsize);\n-493 cont._\br_\bo_\bw_\bs_\bi_\bz_\be.getRowSize(i)=rowsize;\n-494 }\n-495\n-496 };\n-497\n-498 template\n-_\b4_\b9_\b9 struct _\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-500 {\n-_\b5_\b0_\b1 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b<_\bM_\b,_\bR_\bI_\b> _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-502\n-_\b5_\b0_\b3 static const typename M::size_type _\bg_\ba_\bt_\bh_\be_\br(const _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, std::\n-size_t i)\n-504 {\n-505 return cont._\bm_\ba_\bt_\br_\bi_\bx[i].size();\n-506 }\n-_\b5_\b0_\b7 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, const typename M::size_type& rowsize,\n-std::size_t i)\n-508 {\n-509 assert(rowsize);\n-510 if (rowsize > cont._\br_\bo_\bw_\bs_\bi_\bz_\be.getCopyRowSize(i))\n-511 cont._\br_\bo_\bw_\bs_\bi_\bz_\be.getCopyRowSize(i)=rowsize;\n-512 }\n+_\b4_\b7_\b0 K& _\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl(_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be /*i*/)\n+471 {\n+472 return p_;\n+473 }\n+474\n+_\b4_\b7_\b7 const K& _\bs_\bc_\ba_\bl_\ba_\br() const\n+478 {\n+479 return p_;\n+480 }\n+481\n+_\b4_\b8_\b4 K& _\bs_\bc_\ba_\bl_\ba_\br()\n+485 {\n+486 return p_;\n+487 }\n+488\n+489 private:\n+490 // the data, very simply a single number\n+491 K p_;\n+492\n+493 };\n+494\n+495 template \n+_\b4_\b9_\b6 struct DenseMatrixAssigner> {\n+_\b4_\b9_\b7 static void _\ba_\bp_\bp_\bl_\by(DenseMatrix& denseMatrix,\n+498 _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bf_\bi_\be_\bl_\bd_\b,_\b _\bN_\b> const& rhs) {\n+499 assert(denseMatrix.M() == N);\n+500 assert(denseMatrix.N() == N);\n+501 denseMatrix = field(0);\n+502 for (int i = 0; i < N; ++i)\n+503 denseMatrix[i][i] = rhs._\bs_\bc_\ba_\bl_\ba_\br();\n+504 }\n+505 };\n+506\n+507 template\n+_\b5_\b0_\b8 struct FieldTraits< _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx >\n+509 {\n+_\b5_\b1_\b0 using _\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be = typename _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\bK_\b,_\b _\bn_\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be;\n+_\b5_\b1_\b1 using _\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be = typename FieldTraits::real_type;\n+512 };\n 513\n-514 };\n+514} // end namespace\n 515\n-516 template\n-_\b5_\b1_\b7 struct _\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-518 {\n-_\b5_\b1_\b9 typedef typename I::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n-_\b5_\b2_\b0 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\b> _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-_\b5_\b2_\b1 typedef typename M::ConstColIterator _\bC_\bo_\bl_\bI_\bt_\be_\br;\n-522\n-_\b5_\b2_\b3 static _\bC_\bo_\bl_\bI_\bt_\be_\br _\bc_\bo_\bl;\n-_\b5_\b2_\b4 static _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n-525\n-_\b5_\b2_\b6 static const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& _\bg_\ba_\bt_\bh_\be_\br(const _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, std::size_t i,\n-std::size_t j)\n-527 {\n-528 if(j==0)\n-529 _\bc_\bo_\bl=cont._\bm_\ba_\bt_\br_\bi_\bx[i].begin();\n-530 else if (_\bc_\bo_\bl!=cont._\bm_\ba_\bt_\br_\bi_\bx[i].end())\n-531 ++_\bc_\bo_\bl;\n-532\n-533 //copy communication: different row sizes for copy rows with the same\n-global index\n-534 //are possible. If all values of current matrix row are sent, send\n-535 //std::numeric_limits::max()\n-536 //and receiver will ignore it.\n-537 if (_\bc_\bo_\bl==cont._\bm_\ba_\bt_\br_\bi_\bx[i].end()) {\n-538 _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs = std::numeric_limits::max();\n-539 return _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n-540 }\n-541 else {\n-542 const typename I::IndexPair* index=cont._\bi_\bd_\bx_\bs_\be_\bt.pair(_\bc_\bo_\bl.index());\n-543 assert(index);\n-544 // Only send index if col is no ghost\n-545 if ( index->local().attribute() != 2)\n-546 return index->global();\n-547 else {\n-548 _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs = std::numeric_limits::max();\n-549 return _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n-550 }\n-551 }\n-552 }\n-_\b5_\b5_\b3 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, const _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx& gi, std::size_t i,\n-[[maybe_unused]] std::size_t j)\n-554 {\n-555 try{\n-556 if (gi != std::numeric_limits::max()) {\n-557 const typename I::IndexPair& ip=cont._\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.at(gi);\n-558 assert(ip.global()==gi);\n-559 std::size_t column = ip.local();\n-560 cont._\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[i].insert(column);\n-561\n-562 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bn_\bt_\b>_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n-OwnerSet;\n-563 if(!OwnerSet::contains(ip.local().attribute()))\n-564 // preserve symmetry for overlap\n-565 cont._\bs_\bp_\ba_\br_\bs_\bi_\bt_\by[column].insert(i);\n-566 }\n-567 }\n-568 catch(const Dune::RangeError&) {\n-569 // Entry not present in the new index set. Ignore!\n-570#ifdef DEBUG_REPART\n-571 typedef typename _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br_\b:_\b:_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt GlobalLookup;\n-572 typedef typename GlobalLookup::IndexPair IndexPair;\n-573 typedef typename _\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\bi_\bn_\bt_\b>_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n-OwnerSet;\n-574\n-575 GlobalLookup lookup(cont._\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt);\n-576 const IndexPair* pi=lookup.pair(i);\n-577 assert(pi);\n-578 if(OwnerSet::contains(pi->local().attribute())) {\n-579 int rank;\n-580 MPI_Comm_rank(MPI_COMM_WORLD,&rank);\n-581 std::cout<global()<\n-591 typename _\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n-_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bc_\bo_\bl;\n-592\n-593 template\n-594 typename _\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n-595\n-596\n-597 template\n-_\b5_\b9_\b8 struct _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-599 {\n-_\b6_\b0_\b0 typedef typename I::GlobalIndex _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx;\n-_\b6_\b0_\b1 typedef _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\b> _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br;\n-_\b6_\b0_\b2 typedef typename M::ConstColIterator _\bC_\bo_\bl_\bI_\bt_\be_\br;\n-_\b6_\b0_\b3 typedef typename std::pair _\bD_\ba_\bt_\ba;\n-_\b6_\b0_\b4 static _\bC_\bo_\bl_\bI_\bt_\be_\br _\bc_\bo_\bl;\n-_\b6_\b0_\b5 static _\bD_\ba_\bt_\ba _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be;\n-_\b6_\b0_\b6 static _\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n-607\n-_\b6_\b0_\b8 static const _\bD_\ba_\bt_\ba& _\bg_\ba_\bt_\bh_\be_\br(const _\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, std::size_t i, std::size_t\n-j)\n-609 {\n-610 if(j==0)\n-611 _\bc_\bo_\bl=cont._\bm_\ba_\bt_\br_\bi_\bx[i].begin();\n-612 else if (_\bc_\bo_\bl!=cont._\bm_\ba_\bt_\br_\bi_\bx[i].end())\n-613 ++_\bc_\bo_\bl;\n-614 // copy communication: different row sizes for copy rows with the same\n-global index\n-615 // are possible. If all values of current matrix row are sent, send\n-616 // std::numeric_limits::max()\n-617 // and receiver will ignore it.\n-618 if (_\bc_\bo_\bl==cont._\bm_\ba_\bt_\br_\bi_\bx[i].end()) {\n-619 _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs = std::numeric_limits::max();\n-620 _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be = _\bD_\ba_\bt_\ba(_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs,*_\bc_\bo_\bl);\n-621 return _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be;\n-622 }\n-623 else {\n-624 // convert local column index to global index\n-625 const typename I::IndexPair* index=cont._\bi_\bd_\bx_\bs_\be_\bt.pair(_\bc_\bo_\bl.index());\n-626 assert(index);\n-627 // Store the data to prevent reference to temporary\n-628 // Only send index if col is no ghost\n-629 if ( index->local().attribute() != 2)\n-630 _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be = _\bD_\ba_\bt_\ba(index->global(),*_\bc_\bo_\bl);\n-631 else {\n-632 _\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs = std::numeric_limits::max();\n-633 _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be = _\bD_\ba_\bt_\ba(_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs,*_\bc_\bo_\bl);\n-634 }\n-635 return _\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be;\n-636 }\n-637 }\n-_\b6_\b3_\b8 static void _\bs_\bc_\ba_\bt_\bt_\be_\br(_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br& cont, const _\bD_\ba_\bt_\ba& data, std::size_t i, [\n-[maybe_unused]] std::size_t j)\n-639 {\n-640 try{\n-641 if (data.first != std::numeric_limits::max()) {\n-642 typename M::size_type column=cont._\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt.at(data.first).local();\n-643 cont._\bm_\ba_\bt_\br_\bi_\bx[i][column]=data.second;\n-644 }\n-645 }\n-646 catch(const Dune::RangeError&) {\n-647 // This an overlap row and might therefore lack some entries!\n-648 }\n-649\n-650 }\n-651 };\n-652\n-653 template\n-654 typename _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:\n-_\bc_\bo_\bl;\n-655\n-656 template\n-657 typename _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bD_\ba_\bt_\ba _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:\n-_\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be;\n-658\n-659 template\n-660 typename _\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b<_\bM_\b,_\bI_\b>_\b:_\b:_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs;\n-661\n-662 template\n-_\b6_\b6_\b3 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(M& origMatrix, M& newMatrix, C& origComm,\n-C& newComm,\n-664 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\b>& ri)\n-665 {\n-666 typename C::CopySet copyflags;\n-667 typename C::OwnerSet ownerflags;\n-668 typedef typename C::ParallelIndexSet IndexSet;\n-669 typedef _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\b> RI;\n-670 std::vector rowsize(newComm.indexSet().size(), 0);\n-671 std::vector copyrowsize(newComm.indexSet().size(),\n-0);\n-672 std::vector backwardscopyrowsize(origComm.indexSet\n-().size(), 0);\n-673\n-674 // get owner rowsizes\n-675 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b<_\bM_\b,_\bR_\bI_\b> commRowSize(origMatrix, ri);\n-676 ri.template redistribute >\n-(commRowSize,commRowSize);\n-677\n-678 origComm.buildGlobalLookup();\n-679\n-680 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {\n-681 rowsize[i] = ri._\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be(i);\n-682 }\n-683 // get sparsity pattern from owner rows\n-684 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b>\n-685 origsp(origMatrix, origComm.globalLookup(), newComm.indexSet());\n-686 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b>\n-687 newsp(origMatrix, origComm.globalLookup(), newComm.indexSet(), rowsize);\n-688\n-689 ri.template redistribute >\n-(origsp,newsp);\n-690\n-691 // build copy to owner interface to get missing matrix values for novlp\n-case\n-692 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(origComm) == _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg) {\n-693 RemoteIndices *ris = new RemoteIndices\n-(origComm.indexSet(),\n-694 newComm.indexSet(),\n-695 origComm.communicator());\n-696 ris->template rebuild();\n-697\n-698 ri.getInterface().free();\n-699 ri.getInterface().build(*ris,copyflags,ownerflags);\n-700\n-701 // get copy rowsizes\n-702 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b<_\bM_\b,_\bR_\bI_\b> commRowSize_copy(origMatrix, ri);\n-703 ri.template redistribute >\n-(commRowSize_copy,\n-704 commRowSize_copy);\n-705\n-706 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {\n-707 copyrowsize[i] = ri._\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(i);\n-708 }\n-709 //get copy rowsizes for sender\n-710 ri._\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd(backwardscopyrowsize,copyrowsize);\n-711 for (std::size_t i=0; i < origComm.indexSet().size(); i++) {\n-712 ri._\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(i) = backwardscopyrowsize[i];\n-713 }\n-714\n-715 // get sparsity pattern from copy rows\n-716 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> origsp_copy(origMatrix,\n-717 origComm.globalLookup(),\n-718 newComm.indexSet(),\n-719 backwardscopyrowsize);\n-720 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> newsp_copy(origMatrix,\n-origComm.globalLookup(),\n-721 newComm.indexSet(), copyrowsize);\n-722 ri.template redistribute >\n-(origsp_copy,\n-723 newsp_copy);\n-724\n-725 newsp._\bc_\bo_\bm_\bp_\bl_\be_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(newsp_copy._\bs_\bp_\ba_\br_\bs_\bi_\bt_\by);\n-726 newsp._\bs_\bt_\bo_\br_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(newMatrix);\n-727 }\n-728 else\n-729 newsp._\bs_\bt_\bo_\br_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(newMatrix);\n-730\n-731#ifdef DUNE_ISTL_WITH_CHECKING\n-732 // Check for symmetry\n-733 int ret=0;\n-734 typedef typename M::ConstRowIterator RIter;\n-735 for(RIter row=newMatrix.begin(), rend=newMatrix.end(); row != rend; ++row)\n-{\n-736 typedef typename M::ConstColIterator CIter;\n-737 for(CIter _\bc_\bo_\bl=row->begin(), cend=row->end(); _\bc_\bo_\bl!=cend; ++_\bc_\bo_\bl)\n-738 {\n-739 try{\n-740 newMatrix[_\bc_\bo_\bl.index()][row.index()];\n-741 }catch(const _\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br&) {\n-742 std::cerr<\n-_\b7_\b5_\b7 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs(M& origMatrix, M& newMatrix, C& origComm, C&\n-newComm,\n-758 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\b>& ri)\n-759 {\n-760 typedef typename C::ParallelIndexSet IndexSet;\n-761 typename C::OwnerSet ownerflags;\n-762 std::vector rowsize(newComm.indexSet().size(), 0);\n-763 std::vector copyrowsize(newComm.indexSet().size(),\n-0);\n-764 std::vector backwardscopyrowsize(origComm.indexSet\n-().size(), 0);\n-765\n-766 for (std::size_t i=0; i < newComm.indexSet().size(); i++) {\n-767 rowsize[i] = ri._\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be(i);\n-768 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(origComm) == _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg) {\n-769 copyrowsize[i] = ri._\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(i);\n-770 }\n-771 }\n-772\n-773 for (std::size_t i=0; i < origComm.indexSet().size(); i++)\n-774 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(origComm) == _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg)\n-775 backwardscopyrowsize[i] = ri._\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be(i);\n-776\n-777\n-778 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(origComm) == _\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg) {\n-779 // fill sparsity pattern from copy rows\n-780 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> origrow_copy(origMatrix, origComm.globalLookup(),\n-781 newComm.indexSet(), backwardscopyrowsize);\n-782 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b> newrow_copy(newMatrix, origComm.globalLookup(),\n-783 newComm.indexSet(),copyrowsize);\n-784 ri.template redistribute >(origrow_copy,\n-785 newrow_copy);\n-786 ri.getInterface().free();\n-787 RemoteIndices *ris = new RemoteIndices\n-(origComm.indexSet(),\n-788 newComm.indexSet(),\n-789 origComm.communicator());\n-790 ris->template rebuild();\n-791 ri.getInterface().build(*ris,ownerflags,ownerflags);\n-792 }\n-793\n-794 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b>\n-795 origrow(origMatrix, origComm.globalLookup(), newComm.indexSet());\n-796 _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\bM_\b,_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt_\b>\n-797 newrow(newMatrix, origComm.globalLookup(), newComm.indexSet(),rowsize);\n-798 ri.template redistribute >\n-(origrow,newrow);\n-799 if (_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by(origComm) != static_cast(_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:\n-_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg))\n-800 newrow._\bs_\be_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bR_\bo_\bw_\bs_\bT_\bo_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt();\n-801 }\n-802\n-819 template\n-_\b8_\b2_\b0 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(M& origMatrix, M& newMatrix, C& origComm, C&\n-newComm,\n-821 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bC_\b>& ri)\n-822 {\n-823 ri._\bs_\be_\bt_\bN_\bo_\bR_\bo_\bw_\bs(newComm.indexSet().size());\n-824 ri._\bs_\be_\bt_\bN_\bo_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs(newComm.indexSet().size());\n-825 ri._\bs_\be_\bt_\bN_\bo_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs(origComm.indexSet().size());\n-826 _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn(origMatrix, newMatrix, origComm, newComm, ri);\n-827 _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs(origMatrix, newMatrix, origComm, newComm, ri);\n-828 }\n-829#endif\n-830\n-831template\n-_\b8_\b3_\b2 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs(M& origMatrix, M& newMatrix,\n-833 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& origComm,\n-834 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& newComm,\n-835 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>& ri)\n-836 {\n-837 DUNE_THROW(InvalidStateException, \"Trying to redistribute in sequential\n-program!\");\n-838 }\n-839 template\n-_\b8_\b4_\b0 void _\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx(M& origMatrix, M& newMatrix,\n-841 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& origComm,\n-842 _\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn& newComm,\n-843 _\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b>& ri)\n-844 {\n-845 DUNE_THROW(InvalidStateException, \"Trying to redistribute in sequential\n-program!\");\n-846 }\n-847}\n-848#endif\n-_\bp_\bi_\bn_\bf_\bo_\b._\bh_\bh\n-_\br_\be_\bp_\ba_\br_\bt_\bi_\bt_\bi_\bo_\bn_\b._\bh_\bh\n-Functionality for redistributing a parallel index set using graph partitioning.\n-_\bo_\bw_\bn_\be_\br_\bo_\bv_\be_\br_\bl_\ba_\bp_\bc_\bo_\bp_\by_\b._\bh_\bh\n-Classes providing communication interfaces for overlapping Schwarz methods.\n-_\bc_\bo_\bl\n-Col col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixmatrix.hh:351\n+516#endif\n _\bD_\bu_\bn_\be\n D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn allocator.hh:11\n-_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx_\bE_\bn_\bt_\br_\bi_\be_\bs\n-void redistributeMatrixEntries(M &origMatrix, M &newMatrix, C &origComm, C\n-&newComm, RedistributeInformation< C > &ri)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:757\n-_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n-void redistributeSparsityPattern(M &origMatrix, M &newMatrix, C &origComm, C\n-&newComm, RedistributeInformation< C > &ri)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:663\n-_\bD_\bu_\bn_\be_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bM_\ba_\bt_\br_\bi_\bx\n-void redistributeMatrix(M &origMatrix, M &newMatrix, C &origComm, C &newComm,\n-RedistributeInformation< C > &ri)\n-Redistribute a matrix according to given domain decompositions.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:820\n-_\bD_\bu_\bn_\be_\b:_\b:_\bI_\bS_\bT_\bL_\bE_\br_\br_\bo_\br\n-derive error class from the base class in common\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn istlexception.hh:19\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:22\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bN_\bo_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs\n-void setNoBackwardsCopyRows(std::size_t size)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:44\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be\n-void redistribute(const D &from, D &to) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bs_\be_\bt_\bS_\be_\bt_\bu_\bp\n-void resetSetup()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:35\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bN_\bo_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs\n-void setNoCopyRows(std::size_t size)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:41\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bi_\bs_\bS_\be_\bt_\bu_\bp\n-bool isSetup() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:23\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bs_\be_\bt_\bN_\bo_\bR_\bo_\bw_\bs\n-void setNoRows(std::size_t size)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:38\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd\n-void redistributeBackward(D &from, const D &to) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:32\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t getBackwardsCopyRowSize(std::size_t index) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:57\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t getRowSize(std::size_t index) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:47\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t getCopyRowSize(std::size_t index) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:52\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t getRowSize(std::size_t index) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:158\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t & getBackwardsCopyRowSize(std::size_t index)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:173\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bg_\be_\bt_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-RedistributeInterface & getInterface()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:75\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be\n-void redistribute(const D &from, D &to) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:136\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bs_\be_\bt_\bN_\bo_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs\n-void setNoBackwardsCopyRows(std::size_t rows)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:193\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t & getCopyRowSize(std::size_t index)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:163\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-RedistributeInformation()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:71\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bg_\be_\bt_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t getCopyRowSize(std::size_t index) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:168\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bs_\be_\bt_\bN_\bo_\bR_\bo_\bw_\bs\n-void setNoRows(std::size_t rows)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:183\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\br_\be_\bs_\be_\br_\bv_\be\n-void reserve(std::size_t size)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:150\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:_\bC_\bo_\bm_\bm\n-OwnerOverlapCopyCommunication< T, T1 > Comm\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:69\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bs_\be_\bt_\bN_\bo_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bs\n-void setNoCopyRows(std::size_t rows)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:188\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd\n-void redistributeBackward(D &from, const D &to) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:141\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bs_\be_\bt_\bS_\be_\bt_\bu_\bp\n-void setSetup()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:106\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bg_\be_\bt_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd_\bs_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t getBackwardsCopyRowSize(std::size_t index) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:178\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be\n-void redistribute(const D &from, D &to) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:118\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\br_\be_\bs_\be_\bt_\bS_\be_\bt_\bu_\bp\n-void resetSetup()\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:112\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\br_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bB_\ba_\bc_\bk_\bw_\ba_\br_\bd\n-void redistributeBackward(D &from, const D &to) const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:126\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bc_\bh_\be_\bc_\bk_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-void checkInterface(const IS &source, const IS &target, MPI_Comm comm)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:80\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bi_\bs_\bS_\be_\bt_\bu_\bp\n-bool isSetup() const\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:145\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b<_\b _\bT_\b,_\b _\bT_\b1_\b _\b>_\b _\b>_\b:_\b:\n-_\bg_\be_\bt_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-std::size_t & getRowSize(std::size_t index)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:153\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-Utility class to communicate and set the row sizes of a redistributed matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:216\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-M::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:219\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b:_\b:_\bv_\ba_\bl_\bu_\be_\b__\bt_\by_\bp_\be\n-M::size_type value_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:218\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b:_\b:_\br_\bo_\bw_\bs_\bi_\bz_\be\n-RI & rowsize\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:230\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n-const M & matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:229\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be\n-CommMatrixRowSize(const M &m_, RI &rowsize_)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:226\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n-Utility class to communicate and build the sparsity pattern of a redistributed\n-matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:245\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n-M::size_type size_type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:246\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bi_\bd_\bx_\bs_\be_\bt\n-const Dune::GlobalLookupIndexSet< I > & idxset\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:356\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bs_\bt_\bo_\br_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n-void storeSparsityPattern(M &m)\n-Creates and stores the sparsity pattern of the redistributed matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:276\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt\n-const I & aggidxset\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:357\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\br_\bo_\bw_\bs_\bi_\bz_\be\n-const std::vector< size_type > * rowsize\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:359\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bc_\bo_\bm_\bp_\bl_\be_\bt_\be_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n-void completeSparsityPattern(std::vector< std::set< size_type > > add_sparsity)\n-Completes the sparsity pattern of the redistributed matrix with data from copy\n-rows for the novlp cas...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:340\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n-CommMatrixSparsityPattern(const M &m_, const Dune::GlobalLookupIndexSet< I >\n-&idxset_, const I &aggidxset_)\n-Constructor for the original side.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:254\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n-const M & matrix\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:354\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn\n-CommMatrixSparsityPattern(const M &m_, const Dune::GlobalLookupIndexSet< I >\n-&idxset_, const I &aggidxset_, const std::vector< typename M::size_type >\n-&rowsize_)\n-Constructor for the redistruted side.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:265\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bs_\bp_\ba_\br_\bs_\bi_\bt_\by\n-std::vector< std::set< size_type > > sparsity\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:358\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b:_\b:_\bL_\bo_\bo_\bk_\bu_\bp_\bI_\bn_\bd_\be_\bx_\bS_\be_\bt\n-Dune::GlobalLookupIndexSet< I > LookupIndexSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:355\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bS_\bi_\bz_\be\n-static M::size_type getSize(const Type &t, std::size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:376\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n-CommMatrixSparsityPattern< M, I > Type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:365\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n-I::GlobalIndex IndexedType\n-The indexed type we send. This is the global index indentitfying the column.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:371\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg\n-VariableSize IndexedTypeFlag\n-Each row varies in size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:374\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw\n-Utility class for comunicating the matrix entries.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:396\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\br_\bo_\bw_\bs_\bi_\bz_\be\n-std::vector< size_t > * rowsize\n-row size information for the receiving side.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:452\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\bm_\ba_\bt_\br_\bi_\bx\n-M & matrix\n-The matrix to communicate the values of.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:446\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw\n-CommMatrixRow(M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I\n-&aggidxset_, std::vector< size_t > &rowsize_)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:412\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\bi_\bd_\bx_\bs_\be_\bt\n-const Dune::GlobalLookupIndexSet< I > & idxset\n-Index set for the original matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:448\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\bs_\be_\bt_\bO_\bv_\be_\br_\bl_\ba_\bp_\bR_\bo_\bw_\bs_\bT_\bo_\bD_\bi_\br_\bi_\bc_\bh_\bl_\be_\bt\n-void setOverlapRowsToDirichlet()\n-Sets the non-owner rows correctly as Dirichlet boundaries.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:421\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\ba_\bg_\bg_\bi_\bd_\bx_\bs_\be_\bt\n-const I & aggidxset\n-Index set for the redistributed matrix.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:450\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b:_\b:_\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw\n-CommMatrixRow(M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I\n-&aggidxset_)\n-Constructor.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:405\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be\n-std::pair< typename I::GlobalIndex, typename M::block_type > IndexedType\n-The indexed type we send. This is the pair of global index indentitfying the\n-column and the value its...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:464\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bT_\by_\bp_\be\n-CommMatrixRow< M, I > Type\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:458\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bg_\be_\bt_\bS_\bi_\bz_\be\n-static std::size_t getSize(const Type &t, std::size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:469\n-_\bD_\bu_\bn_\be_\b:_\b:_\bC_\bo_\bm_\bm_\bP_\bo_\bl_\bi_\bc_\by_\b<_\b _\bC_\bo_\bm_\bm_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\b<_\b _\bM_\b,_\b _\bI_\b _\b>_\b _\b>_\b:_\b:_\bI_\bn_\bd_\be_\bx_\be_\bd_\bT_\by_\bp_\be_\bF_\bl_\ba_\bg\n-VariableSize IndexedTypeFlag\n-Each row varies in size.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:467\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:483\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n-static void scatter(Container &cont, const typename M::size_type &rowsize,\n-std::size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:490\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n-static const M::size_type gather(const Container &cont, std::size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:486\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-CommMatrixRowSize< M, RI > Container\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:484\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:500\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n-static const M::size_type gather(const Container &cont, std::size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:503\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n-static void scatter(Container &cont, const typename M::size_type &rowsize,\n-std::size_t i)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:507\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bC_\bo_\bp_\by_\bR_\bo_\bw_\bS_\bi_\bz_\be_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-CommMatrixRowSize< M, RI > Container\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:501\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:518\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n-M::ConstColIterator ColIter\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:521\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n-static void scatter(Container &cont, const GlobalIndex &gi, std::size_t i,\n-std::size_t j)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:553\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-CommMatrixSparsityPattern< M, I > Container\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:520\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs\n-static GlobalIndex numlimits\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:524\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bc_\bo_\bl\n-static ColIter col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:523\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-I::GlobalIndex GlobalIndex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:519\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bS_\bp_\ba_\br_\bs_\bi_\bt_\by_\bP_\ba_\bt_\bt_\be_\br_\bn_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n-static const GlobalIndex & gather(const Container &cont, std::size_t i, std::\n-size_t j)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:526\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:599\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bG_\bl_\bo_\bb_\ba_\bl_\bI_\bn_\bd_\be_\bx\n-I::GlobalIndex GlobalIndex\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:600\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bd_\ba_\bt_\ba_\bs_\bt_\bo_\br_\be\n-static Data datastore\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:605\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bn_\bu_\bm_\bl_\bi_\bm_\bi_\bt_\bs\n-static GlobalIndex numlimits\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:606\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br\n-M::ConstColIterator ColIter\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:602\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bg_\ba_\bt_\bh_\be_\br\n-static const Data & gather(const Container &cont, std::size_t i, std::size_t j)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:608\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bD_\ba_\bt_\ba\n-std::pair< GlobalIndex, typename M::block_type > Data\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:603\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bs_\bc_\ba_\bt_\bt_\be_\br\n-static void scatter(Container &cont, const Data &data, std::size_t i, std::\n-size_t j)\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:638\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bc_\bo_\bl\n-static ColIter col\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:604\n-_\bD_\bu_\bn_\be_\b:_\b:_\bM_\ba_\bt_\br_\bi_\bx_\bR_\bo_\bw_\bG_\ba_\bt_\bh_\be_\br_\bS_\bc_\ba_\bt_\bt_\be_\br_\b:_\b:_\bC_\bo_\bn_\bt_\ba_\bi_\bn_\be_\br\n-CommMatrixRow< M, I > Container\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn matrixredistribute.hh:601\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn\n-A class setting up standard communication for a two-valued attribute set with\n-owner/overlap/copy sema...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:174\n-_\bD_\bu_\bn_\be_\b:_\b:_\bO_\bw_\bn_\be_\br_\bO_\bv_\be_\br_\bl_\ba_\bp_\bC_\bo_\bp_\by_\bC_\bo_\bm_\bm_\bu_\bn_\bi_\bc_\ba_\bt_\bi_\bo_\bn_\b:_\b:_\bO_\bw_\bn_\be_\br_\bS_\be_\bt\n-EnumItem< AttributeSet, OwnerOverlapCopyAttributeSet::owner > OwnerSet\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn owneroverlapcopy.hh:194\n-_\bD_\bu_\bn_\be_\b:_\b:_\bA_\bm_\bg_\b:_\b:_\bS_\be_\bq_\bu_\be_\bn_\bt_\bi_\ba_\bl_\bI_\bn_\bf_\bo_\br_\bm_\ba_\bt_\bi_\bo_\bn\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn pinfo.hh:28\n-_\bD_\bu_\bn_\be_\b:_\b:_\bR_\be_\bd_\bi_\bs_\bt_\br_\bi_\bb_\bu_\bt_\be_\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn repartition.hh:260\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bn_\bo_\bn_\bo_\bv_\be_\br_\bl_\ba_\bp_\bp_\bi_\bn_\bg\n-@ nonoverlapping\n-Category for non-overlapping solvers.\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:27\n-_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bo_\bl_\bv_\be_\br_\bC_\ba_\bt_\be_\bg_\bo_\br_\by_\b:_\b:_\bc_\ba_\bt_\be_\bg_\bo_\br_\by\n-static Category category(const OP &op, decltype(op.category()) *=nullptr)\n-Helperfunction to extract the solver category either from an enum, or from the\n-newly introduced virtu...\n-D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn solvercategory.hh:34\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx\n+A multiple of the identity matrix of static size.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:30\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bh_\bv\n+void usmhv(const K &alpha, const X &x, Y &y) const\n+y += alpha A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:353\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bt_\bv\n+void mmtv(const X &x, Y &y) const\n+y -= A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:305\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b-_\b=\n+ScaledIdentityMatrix & operator-=(const ScaledIdentityMatrix &y)\n+vector space subtraction\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:169\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+const_row_type::ConstIterator ConstColIterator\n+rename the iterators for easier access\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:131\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+ConstIterator end() const\n+end iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:140\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n+Iterator beforeBegin()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:118\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b!_\b=\n+bool operator!=(const ScaledIdentityMatrix &other) const\n+incomparison operator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:229\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bv\n+void mmv(const X &x, Y &y) const\n+y -= A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:293\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bi_\bz_\be_\b__\bt_\by_\bp_\be\n+std::size_t size_type\n+The type used for the index access and size operations.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:43\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bv\n+void usmv(const K &alpha, const X &x, Y &y) const\n+y += alpha A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:329\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bl_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+row_type::Iterator ColIterator\n+rename the iterators for easier access\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:95\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+const_row_type const_reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:53\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bv\n+void mv(const X &x, Y &y) const\n+y = A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:238\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bt_\bv\n+void umtv(const X &x, Y &y) const\n+y += A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:269\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bh_\bv\n+void umhv(const X &x, Y &y) const\n+y += A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:281\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\b__\bt_\by_\bp_\be\n+DiagonalRowVector< K, n > row_type\n+Each row is implemented by a field vector.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:50\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ContainerWrapperIterator< const WrapperType, reference, reference > Iterator\n+Iterator class for sequential access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:89\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+Iterator beforeEnd()\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:111\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\be_\bt_\be_\br_\bm_\bi_\bn_\ba_\bn_\bt\n+K determinant() const\n+calculates the determinant of this matrix\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:408\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+K field_type\n+export the type representing the field\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:37\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bs_\bm_\bt_\bv\n+void usmtv(const K &alpha, const X &x, Y &y) const\n+y += alpha A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:341\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bn_\bd\n+Iterator end()\n+end iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:104\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator iterator\n+typedef for stl compliant access\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:91\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br\n+const K & scalar() const\n+Get const reference to the scalar diagonal value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:477\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bu_\bm_\bv\n+void umv(const X &x, Y &y) const\n+y += A x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:257\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\bl_\be_\bv_\be_\bl\n+static constexpr std::size_t blocklevel\n+We are at the leaf of the block recursion.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:47\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n+const K & diagonal(size_type) const\n+Get const reference to diagonal entry.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:464\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\bo_\bw_\bs\n+@ rows\n+The number of rows.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:58\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bl_\bs\n+@ cols\n+The number of columns.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:60\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=\n+ScaledIdentityMatrix & operator=(const K &k)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:75\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ContainerWrapperIterator< const WrapperType, const_reference, const_reference >\n+ConstIterator\n+Iterator class for sequential access.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:125\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bd_\bi_\ba_\bg_\bo_\bn_\ba_\bl\n+K & diagonal(size_type)\n+Get reference to diagonal entry.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:470\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bo_\bl_\bv_\be\n+void solve(V &x, const V &b) const\n+Solve system A x = b.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:394\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\be_\bx_\bi_\bs_\bt_\bs\n+bool exists(size_type i, size_type j) const\n+return true when (i,j) is in pattern\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:429\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+Iterator RowIterator\n+rename the iterators for easier access\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:93\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\bi_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator const_iterator\n+typedef for stl compliant access\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:127\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx\n+ScaledIdentityMatrix()\n+Default constructor.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:66\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b=_\b=\n+bool operator==(const ScaledIdentityMatrix &other) const\n+comparison operator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:223\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bB_\be_\bg_\bi_\bn\n+ConstIterator beforeBegin() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:154\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b/_\b=\n+ScaledIdentityMatrix & operator/=(const K &k)\n+vector space division by scalar\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:196\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b<_\b<\n+friend std::ostream & operator<<(std::ostream &s, const ScaledIdentityMatrix<\n+K, n > &a)\n+Sends the matrix to an output stream.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:441\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm_\b2\n+FieldTraits< field_type >::real_type frobenius_norm2() const\n+square of frobenius norm, need for block recursion\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:372\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bf_\br_\bo_\bb_\be_\bn_\bi_\bu_\bs_\b__\bn_\bo_\br_\bm\n+FieldTraits< field_type >::real_type frobenius_norm() const\n+frobenius norm: sqrt(sum over squared values of entries)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:366\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm\n+FieldTraits< field_type >::real_type infinity_norm() const\n+infinity norm (row sum norm, how to generalize for blocks?)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:378\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bC_\bo_\bn_\bs_\bt_\bR_\bo_\bw_\bI_\bt_\be_\br_\ba_\bt_\bo_\br\n+ConstIterator ConstRowIterator\n+rename the iterators for easier access\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:129\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bf_\bo_\br_\be_\bE_\bn_\bd\n+ConstIterator beforeEnd() const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:147\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bM\n+size_type M() const\n+number of blocks in column direction\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:421\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+const_reference operator[](size_type i) const\n+Return const_reference object as row replacement.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:458\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx\n+ScaledIdentityMatrix(const K &k)\n+Constructor initializing the whole matrix with a scalar.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:70\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*\n+friend auto operator*(const ScaledIdentityMatrix &matrix, Scalar scalar)\n+vector space multiplication with scalar\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:207\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bf_\bi_\bn_\bi_\bt_\by_\b__\bn_\bo_\br_\bm_\b__\br_\be_\ba_\bl\n+FieldTraits< field_type >::real_type infinity_norm_real() const\n+simplified infinity norm (uses Manhattan norm for complex values)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:384\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b*_\b=\n+ScaledIdentityMatrix & operator*=(const K &k)\n+vector space multiplication with scalar\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:189\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bd_\be_\bn_\bt_\bi_\bc_\ba_\bl\n+bool identical(const ScaledIdentityMatrix< K, n > &other) const\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:82\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bi_\bn_\bv_\be_\br_\bt\n+void invert()\n+Compute inverse.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:402\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+Iterator begin()\n+begin iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:98\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bs_\bc_\ba_\bl_\ba_\br\n+K & scalar()\n+Get reference to the scalar diagonal value.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:484\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\br_\be_\bf_\be_\br_\be_\bn_\bc_\be\n+row_type reference\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:51\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\bl_\bo_\bc_\bk_\b__\bt_\by_\bp_\be\n+K block_type\n+export the type representing the components\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:40\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bm_\bh_\bv\n+void mmhv(const X &x, Y &y) const\n+y -= A^H x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:317\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b+_\b=\n+ScaledIdentityMatrix & operator+=(const ScaledIdentityMatrix &y)\n+vector space addition\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:162\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bc_\bo_\bn_\bs_\bt_\b__\br_\bo_\bw_\b__\bt_\by_\bp_\be\n+DiagonalRowVectorConst< K, n > const_row_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:52\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bm_\bt_\bv\n+void mtv(const X &x, Y &y) const\n+y = A^T x\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:250\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bo_\bp_\be_\br_\ba_\bt_\bo_\br_\b[_\b]\n+reference operator[](size_type i)\n+Return reference object as row replacement.\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:452\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bb_\be_\bg_\bi_\bn\n+ConstIterator begin() const\n+begin iterator\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:134\n+_\bD_\bu_\bn_\be_\b:_\b:_\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b:_\b:_\bN\n+size_type N() const\n+number of blocks in row direction\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:415\n+_\bD_\bu_\bn_\be_\b:_\b:_\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\bA_\bs_\bs_\bi_\bg_\bn_\be_\br_\b<_\b _\bD_\be_\bn_\bs_\be_\bM_\ba_\bt_\br_\bi_\bx_\b,_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bf_\bi_\be_\bl_\bd_\b,_\b _\bN_\b _\b>_\b _\b>_\b:_\b:\n+_\ba_\bp_\bp_\bl_\by\n+static void apply(DenseMatrix &denseMatrix, ScaledIdentityMatrix< field, N >\n+const &rhs)\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:497\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\bf_\bi_\be_\bl_\bd_\b__\bt_\by_\bp_\be\n+typename ScaledIdentityMatrix< K, n >::field_type field_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:510\n+_\bD_\bu_\bn_\be_\b:_\b:_\bF_\bi_\be_\bl_\bd_\bT_\br_\ba_\bi_\bt_\bs_\b<_\b _\bS_\bc_\ba_\bl_\be_\bd_\bI_\bd_\be_\bn_\bt_\bi_\bt_\by_\bM_\ba_\bt_\br_\bi_\bx_\b<_\b _\bK_\b,_\b _\bn_\b _\b>_\b _\b>_\b:_\b:_\br_\be_\ba_\bl_\b__\bt_\by_\bp_\be\n+typename FieldTraits< field_type >::real_type real_type\n+D\bDe\bef\bfi\bin\bni\bit\bti\bio\bon\bn scaledidmatrix.hh:511\n ===============================================================================\n Generated by\u00a0_\b[_\bd_\bo_\bx_\by_\bg_\be_\bn_\b] 1.9.8\n"}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00233.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00233.html", "unified_diff": "@@ -105,25 +105,25 @@\n  \n  Sparse Matrix and Vector classes\n  Matrix and Vector classes that support a block recursive structure capable of representing the natural structure from Finite Element discretisations.
    \n  \n \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n

    \n Files

    file  ldl.hh
     Class for using LDL with ISTL matrices.
    file  ldl.hh
     Class for using LDL with ISTL matrices.
     
    file  spqr.hh
     Class for using SPQR with ISTL matrices.
    file  spqr.hh
     Class for using SPQR with ISTL matrices.
     
    file  superlu.hh
     Classes for using SuperLU with ISTL matrices.
    file  superlu.hh
     Classes for using SuperLU with ISTL matrices.
     
    file  umfpack.hh
     Classes for using UMFPack with ISTL matrices.
    file  umfpack.hh
     Classes for using UMFPack with ISTL matrices.
     
    \n \n \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00234.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00234.html", "unified_diff": "@@ -104,19 +104,19 @@\n \n \n \n \n

    \n Classes

    class  Dune::ILUSubdomainSolver< M, X, Y >
     base class encapsulating common algorithms of ILU0SubdomainSolver and ILUNSubdomainSolver. More...
     
     
     Scalar products
     Scalar products for the use in iterative solvers.
     
    \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n

    \n Files

    file  solver.hh
     Define general, extensible interface for inverse operators.
    file  solver.hh
     Define general, extensible interface for inverse operators.
     
    file  solvers.hh
     Implementations of the inverse operator interface.
    file  solvers.hh
     Implementations of the inverse operator interface.
     
    \n \n \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00236.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00236.html", "unified_diff": "@@ -84,16 +84,16 @@\n \"\"\n \"\"\n \n \n

    \n Classes

    struct  Dune::InverseOperatorResult
     Statistics about the application of an inverse operator. More...
     
    \n \n-\n-\n+\n+\n \n

    \n Files

    file  owneroverlapcopy.hh
     Classes providing communication interfaces for overlapping Schwarz methods.
    file  owneroverlapcopy.hh
     Classes providing communication interfaces for overlapping Schwarz methods.
     
    \n \n \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00237.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00237.html", "unified_diff": "@@ -105,19 +105,19 @@\n \n \n \n \n

    \n Classes

    struct  Dune::OwnerOverlapCopyAttributeSet
     Attribute set for overlapping Schwarz. More...
     
     Provides methods for reading and writing matrices and vectors in various formats.
     
     DenseMatVec
     
    \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n

    \n Files

    file  matrixmatrix.hh
     provides functions for sparse matrix matrix multiplication.
    file  matrixmatrix.hh
     provides functions for sparse matrix matrix multiplication.
     
    file  matrixutils.hh
     Some handy generic functions for ISTL matrices.
    file  matrixutils.hh
     Some handy generic functions for ISTL matrices.
     
    \n \n \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00239.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00239.html", "unified_diff": "@@ -83,16 +83,16 @@\n \"\"\n \"\"\n \n \n

    \n Classes

    struct  Dune::MatrixDimension< M >
     
    struct  Dune::CompressionStatistics< size_type >
    \n \n-\n-\n+\n+\n \n

    \n Files

    file  operators.hh
     Define general, extensible interface for operators. The available implementation wraps a matrix.
    file  operators.hh
     Define general, extensible interface for operators. The available implementation wraps a matrix.
     
    \n \n \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00240.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00240.html", "unified_diff": "@@ -93,61 +93,61 @@\n \"\"\n \"\"\n \n \n

    \n Classes

    class  Dune::NonoverlappingSchwarzOperator< M, X, Y, C >
     A nonoverlapping operator with communication object. More...
     
    \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n

    \n Files

    file  aggregates.hh
     Provides classes for the Coloring process of AMG.
    file  aggregates.hh
     Provides classes for the Coloring process of AMG.
     
    file  amg.hh
     The AMG preconditioner.
    file  amg.hh
     The AMG preconditioner.
     
    file  construction.hh
     Helper classes for the construction of classes without empty constructor.
    file  construction.hh
     Helper classes for the construction of classes without empty constructor.
     
    file  dependency.hh
     Provides classes for initializing the link attributes of a matrix graph.
    file  dependency.hh
     Provides classes for initializing the link attributes of a matrix graph.
     
    file  galerkin.hh
     Provides a class for building the galerkin product based on a aggregation scheme.
    file  galerkin.hh
     Provides a class for building the galerkin product based on a aggregation scheme.
     
    file  globalaggregates.hh
     Provdes class for identifying aggregates globally.
    file  globalaggregates.hh
     Provdes class for identifying aggregates globally.
     
    file  graph.hh
     Provides classes for building the matrix graph.
    file  graph.hh
     Provides classes for building the matrix graph.
     
    file  hierarchy.hh
     Provides a classes representing the hierarchies in AMG.
    file  hierarchy.hh
     Provides a classes representing the hierarchies in AMG.
     
    file  indicescoarsener.hh
     Provides a class for building the index set and remote indices on the coarse level.
    file  indicescoarsener.hh
     Provides a class for building the index set and remote indices on the coarse level.
     
    file  kamg.hh
     Provides an algebraic multigrid using a Krylov cycle.
    file  kamg.hh
     Provides an algebraic multigrid using a Krylov cycle.
     
    file  matrixhierarchy.hh
     Provides a classes representing the hierarchies in AMG.
    file  matrixhierarchy.hh
     Provides a classes representing the hierarchies in AMG.
     
    file  parameters.hh
     Parameter classes for customizing AMG.
    file  parameters.hh
     Parameter classes for customizing AMG.
     
    file  properties.hh
     Provides classes for handling internal properties in a graph.
    file  properties.hh
     Provides classes for handling internal properties in a graph.
     
    file  smoother.hh
     Classes for the generic construction and application of the smoothers.
    file  smoother.hh
     Classes for the generic construction and application of the smoothers.
     
    file  transfer.hh
     Prolongation and restriction for amg.
    file  transfer.hh
     Prolongation and restriction for amg.
     
    file  twolevelmethod.hh
     Algebraic twolevel methods.
    file  twolevelmethod.hh
     Algebraic twolevel methods.
     
    \n \n \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00242.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00242.html", "unified_diff": "@@ -98,19 +98,19 @@\n \n \n \n \n

    \n Namespaces

    namespace  Dune
     
    namespace  Dune::Amg
     
     Fast (sequential) Algebraic Multigrid
     An Algebraic Multigrid based on Agglomeration that saves memory bandwidth.
     
    \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n

    \n Files

    file  overlappingschwarz.hh
     Contains one level overlapping Schwarz preconditioners.
    file  overlappingschwarz.hh
     Contains one level overlapping Schwarz preconditioners.
     
    file  preconditioners.hh
     Define general preconditioner interface.
    file  preconditioners.hh
     Define general preconditioner interface.
     
    \n \n \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00243.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00243.html", "unified_diff": "@@ -86,16 +86,16 @@\n \"\"\n \"\"\n \n \n

    \n Classes

    class  Dune::NonoverlappingBlockPreconditioner< C, P >
     Nonoverlapping parallel preconditioner. More...
     
    \n \n-\n-\n+\n+\n \n

    \n Files

    file  scalarproducts.hh
     Define base class for scalar product and norm.
    file  scalarproducts.hh
     Define base class for scalar product and norm.
     
    \n \n \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a00246.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a00246.html", "unified_diff": "@@ -89,19 +89,19 @@\n \"\"\n \"\"\n \n \n

    \n Classes

    class  Dune::ScalarProduct< X >
     Base class for scalar product and norm computation. More...
     
    \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n

    \n Files

    file  io.hh
     Some generic functions for pretty printing vectors and matrices.
    file  io.hh
     Some generic functions for pretty printing vectors and matrices.
     
    file  matrixmarket.hh
     Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices.
    file  matrixmarket.hh
     Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices.
     
    \n \n \n \n

    \n Namespaces

    namespace  Dune::MatrixMarketImpl
     
    \n@@ -315,16 +315,16 @@\n \n \n
    \n inline
    \n
    \n \n

    Print a row of zeros for a non-existing block.

    \n-
    #include <dune/istl/io.hh>
    \n-
    Some generic functions for pretty printing vectors and matrices.
    \n+
    #include <dune/istl/io.hh>
    \n+
    Some generic functions for pretty printing vectors and matrices.
    \n
    \n
    \n
    \n \n

    ◆ loadMatrixMarket() [1/2]

    \n \n
    \n@@ -743,15 +743,15 @@\n )\n \n \n \n
    \n \n

    Print one row of a matrix, specialization for number types.

    \n-
    #include <dune/istl/io.hh>
    \n+
    #include <dune/istl/io.hh>
    \n
    \n
    \n
    \n \n

    ◆ print_row() [2/2]

    \n \n
    \n@@ -812,15 +812,15 @@\n )\n \n \n \n
    \n \n

    Print one row of a matrix.

    \n-
    #include <dune/istl/io.hh>
    \n+
    #include <dune/istl/io.hh>
    \n
    \n
    \n
    \n \n

    ◆ printmatrix()

    \n \n
    \n@@ -869,15 +869,15 @@\n )\n \n \n \n
    \n \n

    Print a generic block matrix.

    \n-
    #include <dune/istl/io.hh>
    \n+
    #include <dune/istl/io.hh>
    \n
    Bug:
    Empty rows and columns are omitted by this method. (FlySpray #7)
    \n \n
    \n
    \n \n

    ◆ printSparseMatrix()

    \n \n@@ -927,15 +927,15 @@\n )\n \n \n \n
    \n \n

    Prints a BCRSMatrix with fixed sized blocks.

    \n-
    #include <dune/istl/io.hh>
    \n+
    #include <dune/istl/io.hh>
    \n

    Only the nonzero entries will be printed as matrix blocks together with their corresponding column index and all others will be omitted.

    \n

    This might be preferable over printmatrix in the case of big sparse matrices with nonscalar blocks.

    \n
    Parameters
    \n \n \n \n \n@@ -1003,15 +1003,15 @@\n \n \n \n
    sThe ostream to print to.
    matThe matrix to print.
    titleThe title for the matrix.
    )
    \n
    \n \n

    Print an ISTL vector.

    \n-
    #include <dune/istl/io.hh>
    \n+
    #include <dune/istl/io.hh>
    \n
    \n
    \n
    \n \n

    ◆ readMatrixMarket() [1/2]

    \n \n
    \n@@ -1140,15 +1140,15 @@\n )\n \n \n \n
    \n \n

    Recursively print a vector.

    \n-
    #include <dune/istl/io.hh>
    \n+
    #include <dune/istl/io.hh>
    \n
    \n
    \n
    \n \n

    ◆ storeMatrixMarket() [1/2]

    \n \n
    \n@@ -1391,15 +1391,15 @@\n )\n \n \n \n
    \n \n

    Writes sparse matrix in a Matlab-readable format.

    \n-
    #include <dune/istl/io.hh>
    \n+
    #include <dune/istl/io.hh>
    \n

    This routine writes the argument BCRSMatrix to a file with the name given by the filename argument. The file format is ASCII, with no header, and three data columns. Each row describes a scalar matrix entry and consists of the matrix row and column numbers (both counted starting from 1), and the matrix entry. Such a file can be read from Matlab using the command

    new_mat = spconvert(load('filename'));
    \n
    Parameters
    \n \n \n \n \n
    matrixreference to matrix
    filename
    outputPrecision(number of digits) which is used to write the output file
    \n@@ -1451,15 +1451,15 @@\n )\n \n \n \n
    \n \n

    Helper method for the writeMatrixToMatlab routine.

    \n-
    #include <dune/istl/io.hh>
    \n+
    #include <dune/istl/io.hh>
    \n

    This specialization for numbers ends the recursion

    \n \n
    \n
    \n \n

    ◆ writeMatrixToMatlabHelper() [2/2]

    \n \n@@ -1503,15 +1503,15 @@\n )\n \n \n \n
    \n \n

    Helper method for the writeMatrixToMatlab routine.

    \n-
    #include <dune/istl/io.hh>
    \n+
    #include <dune/istl/io.hh>
    \n
    \n
    \n
    \n \n

    ◆ writeSVGMatrix()

    \n \n
    \n@@ -1596,15 +1596,15 @@\n )\n \n \n \n
    \n \n

    Writes vectors in a Matlab-readable format.

    \n-
    #include <dune/istl/io.hh>
    \n+
    #include <dune/istl/io.hh>
    \n

    This routine writes the argument block vector to a file with the name given by the filename argument. The file format is ASCII, with no header, and a single data column. Such a file can be read from Matlab using the command

    new_vec = load('filename');
    \n
    Parameters
    \n \n \n \n \n
    vectorreference to vector to be printed to output file
    filenamefilename of output file
    outputPrecision(number of digits) which is used to write the output file
    \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01084.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01084.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::exists< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/allocator.hh>

    \n+

    #include <dune/istl/allocator.hh>

    \n \n \n \n \n

    \n Static Public Attributes

    static const bool value = true
     
    \n

    Member Data Documentation

    \n@@ -109,15 +109,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01088.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01088.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::DefaultAllocatorTraits< T, typename > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/allocator.hh>

    \n+

    #include <dune/istl/allocator.hh>

    \n
    \n Inheritance diagram for Dune::DefaultAllocatorTraits< T, typename >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -111,15 +111,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01092.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01092.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::DefaultAllocatorTraits< T, std::void_t< typename T::allocator_type > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/allocator.hh>

    \n+

    #include <dune/istl/allocator.hh>

    \n \n \n \n \n

    \n Public Types

    using type = typename T::allocator_type
     
    \n

    Member Typedef Documentation

    \n@@ -101,15 +101,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01096.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01096.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::AllocatorTraits< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/allocator.hh>

    \n+

    #include <dune/istl/allocator.hh>

    \n
    \n Inheritance diagram for Dune::AllocatorTraits< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -119,15 +119,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01120.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01120.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::OverlappingSchwarzInitializer< I, S, D > Class Template Reference
    \n
    \n
    \n \n

    Initializer for SuperLU Matrices representing the subdomains. \n More...

    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n \n@@ -255,16 +255,16 @@\n
    \n \n

    The vector type containing the subdomain to row index mapping.

    \n \n
    \n \n
    The documentation for this class was generated from the following files:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01136.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01136.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::MatrixDimension< M > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n

    \n Public Types

    typedef D subdomain_vector
     The vector type containing the subdomain to row index mapping.
     
    typedef I InitializerList
    \n \n \n \n \n \n@@ -143,16 +143,16 @@\n \n

    \n Static Public Member Functions

    static auto rowdim (const M &A)
     
    static auto coldim (const M &A)
     
    \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following files:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01140.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01140.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::CompressionStatistics< size_type > Struct Template Reference
    \n
    \n
    \n \n

    Statistics about compression achieved in implicit mode. \n More...

    \n \n-

    #include <dune/istl/bcrsmatrix.hh>

    \n+

    #include <dune/istl/bcrsmatrix.hh>

    \n \n \n \n \n \n \n@@ -175,15 +175,15 @@\n
    \n \n

    total number of elements written to the overflow area during construction.

    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01144.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01144.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::ImplicitMatrixBuilder< M_ > Class Template Reference
    \n \n
    \n \n

    A wrapper for uniform access to the BCRSMatrix during and after the build stage in implicit build mode. \n More...

    \n \n-

    #include <dune/istl/bcrsmatrix.hh>

    \n+

    #include <dune/istl/bcrsmatrix.hh>

    \n

    \n Public Attributes

    double avg
     average number of non-zeroes per row.
     
    size_type maximum
    \n \n \n \n \n

    \n Classes

    class  row_object
     Proxy row object for entry access. More...
     
    \n@@ -376,15 +376,15 @@\n
    \n \n

    Returns a proxy for entries in row i.

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01148.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01148.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::ImplicitMatrixBuilder< M_ >::row_object Class Reference
    \n \n
    \n \n

    Proxy row object for entry access. \n More...

    \n \n-

    #include <dune/istl/bcrsmatrix.hh>

    \n+

    #include <dune/istl/bcrsmatrix.hh>

    \n
    \n \n \n \n \n

    \n Public Member Functions

    block_typeoperator[] (size_type j) const
     Returns entry in column j.
     
    \n@@ -123,15 +123,15 @@\n
    \n \n

    Returns entry in column j.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01152.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01152.html", "unified_diff": "@@ -85,15 +85,15 @@\n
    Dune::BCRSMatrix< B, A > Class Template Reference
    \n
    \n
    \n \n

    A sparse block matrix with compressed row storage. \n More...

    \n \n-

    #include <dune/istl/bcrsmatrix.hh>

    \n+

    #include <dune/istl/bcrsmatrix.hh>

    \n
    \n Inheritance diagram for Dune::BCRSMatrix< B, A >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -451,15 +451,15 @@\n

    Error checking: no error checking is provided normally. Setting the compile time switch DUNE_ISTL_WITH_CHECKING enables error checking.

    \n

    Details:

    \n
      \n
    1. Row-wise scheme
    2. \n
    \n

    Rows are built up in sequential order. Size of the row and the column indices are defined. A row can be used as soon as it is initialized. With respect to memory there are two variants of this scheme: (a) number of non-zeroes known in advance (application finite difference schemes), (b) number of non-zeroes not known in advance (application: Sparse LU, ILU(n)).

    \n
    #include<dune/common/fmatrix.hh>
    \n-\n+\n
    \n
    ...
    \n
    \n \n
    // third parameter is an optional upper bound for the number
    \n
    // of nonzeros. If given the matrix will use one array for all values
    \n
    // as opposed to one for each row.
    \n@@ -476,25 +476,25 @@\n
    row.insert(row.index()+1);
    \n
    }
    \n
    \n
    // Now the sparsity pattern is fully set up and we can add values
    \n
    \n
    B[0][0]=2;
    \n
    ...
    \n-
    Implementation of the BCRSMatrix class.
    \n+
    Implementation of the BCRSMatrix class.
    \n
    A sparse block matrix with compressed row storage.
    Definition bcrsmatrix.hh:466
    \n
    size_type M() const
    number of columns (counted in blocks)
    Definition bcrsmatrix.hh:1978
    \n
    Iterator class for sequential creation of blocks
    Definition bcrsmatrix.hh:957
    \n
    Definition matrixutils.hh:27
    \n
      \n
    1. Random scheme
    2. \n
    \n

    For general finite element implementations the number of rows n is known, the number of non-zeroes might also be known (e.g. #edges + #nodes for P2) but the size of a row and the indices of a row can not be defined in sequential order.

    \n
    #include<dune/common/fmatrix.hh>
    \n-\n+\n
    \n
    ...
    \n
    \n \n \n
    \n
    // initially set row size for each row
    \n@@ -554,15 +554,15 @@\n M_i = \\textrm{avg} + A + \\sum_{j<i} (\\textrm{avg} - \\textrm{nnz}_j)\n \\]\" src=\"form_23.png\" width=\"178\" height=\"29\"/>\n

    \n

    for all \"$i$\", where \"$ is the total size of the compression buffer determined by the parameters explained above.

    \n

    The data of the matrix is now located at the beginning of the allocated area, and covers what used to be the compression buffer. In exchange, there is now unused space at the end of the large allocated piece of memory. This will go unused and cannot be freed during the lifetime of the matrix, but it has no negative impact on run-time performance. No matrix entries may be added after the compression step.

    \n

    The compress() method returns a value of type Dune::CompressionStatistics, which you can inspect to tune the construction parameters _avg and compressionBufferSize.

    \n

    Use of copy constructor, assignment operator and matrix vector arithmetics are not supported until the matrix is fully built.

    \n-

    The following sample code constructs a \"$ matrix, with an expected number of two entries per matrix row. The compression buffer size is set to 0.4. Hence the main chunk of allocated memory will be able to hold 10 * 2 entries in the matrix rows, and 10 * 2 * 0.4 entries in the compression buffer. In total that's 28 entries.

    \n+

    The following sample code constructs a \"$ matrix, with an expected number of two entries per matrix row. The compression buffer size is set to 0.4. Hence the main chunk of allocated memory will be able to hold 10 * 2 entries in the matrix rows, and 10 * 2 * 0.4 entries in the compression buffer. In total that's 28 entries.

    \n
    \n \n
    M m(10, 10, 2, 0.4, M::implicit);
    \n
    \n
    // Fill in some arbitrary entries; the order is irrelevant.
    \n
    // Even operations on these would be possible, you get a reference to the entry!
    \n
    m.entry(0,0) = 0.;
    \n@@ -3761,15 +3761,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01156.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01156.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::BCRSMatrix< B, A >::RealRowIterator< T > Class Template Reference
    \n
    \n
    \n \n

    Iterator access to matrix rows \n More...

    \n \n-

    #include <dune/istl/bcrsmatrix.hh>

    \n+

    #include <dune/istl/bcrsmatrix.hh>

    \n
    \n Inheritance diagram for Dune::BCRSMatrix< B, A >::RealRowIterator< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -408,15 +408,15 @@\n
    \n \n

    return index

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01160.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01160.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::BCRSMatrix< B, A >::CreateIterator Class Reference
    \n
    \n
    \n \n

    Iterator class for sequential creation of blocks \n More...

    \n \n-

    #include <dune/istl/bcrsmatrix.hh>

    \n+

    #include <dune/istl/bcrsmatrix.hh>

    \n \n \n \n \n \n \n@@ -362,15 +362,15 @@\n \n

    Get the current row size.

    \n
    Returns
    The number of indices already inserted for the current row.
    \n \n \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01164.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01164.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::FieldTraits< BCRSMatrix< B, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/bcrsmatrix.hh>

    \n+

    #include <dune/istl/bcrsmatrix.hh>

    \n

    \n Public Member Functions

     CreateIterator (BCRSMatrix &_Mat, size_type _i)
     constructor
     
    CreateIteratoroperator++ ()
    \n \n \n \n \n \n@@ -119,15 +119,15 @@\n \n

    \n Public Types

    using field_type = typename BCRSMatrix< B, A >::field_type
     
    using real_type = typename FieldTraits< field_type >::real_type
     
    \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01168.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01168.html", "unified_diff": "@@ -84,15 +84,15 @@\n
    Dune::BDMatrix< B, A > Class Template Reference
    \n
    \n
    \n \n

    A block-diagonal matrix. \n More...

    \n \n-

    #include <dune/istl/bdmatrix.hh>

    \n+

    #include <dune/istl/bdmatrix.hh>

    \n
    \n Inheritance diagram for Dune::BDMatrix< B, A >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -3485,15 +3485,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01172.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01172.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::FieldTraits< BDMatrix< B, A > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/bdmatrix.hh>

    \n+

    #include <dune/istl/bdmatrix.hh>

    \n \n \n \n \n \n \n@@ -119,15 +119,15 @@\n \n

    \n Public Types

    using field_type = typename BDMatrix< B, A >::field_type
     
    using real_type = typename FieldTraits< field_type >::real_type
     
    \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01176.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01176.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::MultiTypeBlockVector< Args > Class Template Reference
    \n
    \n
    \n \n

    A Vector class to support different block types. \n More...

    \n \n-

    #include <dune/istl/multitypeblockvector.hh>

    \n+

    #include <dune/istl/multitypeblockvector.hh>

    \n
    \n Inheritance diagram for Dune::MultiTypeBlockVector< Args >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -176,16 +176,16 @@\n  \n \n

    Detailed Description

    \n
    template<typename... Args>
    \n class Dune::MultiTypeBlockVector< Args >

    A Vector class to support different block types.

    \n

    This vector class combines elements of different types known at compile-time.

    \n

    The documentation for this class was generated from the following files:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01180.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01180.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::MultiTypeBlockMatrix< FirstRow, Args > Class Template Reference
    \n
    \n
    \n \n

    A Matrix class to support different block types. \n More...

    \n \n-

    #include <dune/istl/multitypeblockmatrix.hh>

    \n+

    #include <dune/istl/multitypeblockmatrix.hh>

    \n
    \n Inheritance diagram for Dune::MultiTypeBlockMatrix< FirstRow, Args >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -202,16 +202,16 @@\n  \n \n

    Detailed Description

    \n
    template<typename FirstRow, typename... Args>
    \n class Dune::MultiTypeBlockMatrix< FirstRow, Args >

    A Matrix class to support different block types.

    \n

    This matrix class combines MultiTypeBlockVector elements as rows.

    \n

    The documentation for this class was generated from the following files:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01216.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01216.html", "unified_diff": "@@ -84,15 +84,15 @@\n
    Dune::BTDMatrix< B, A > Class Template Reference
    \n
    \n
    \n \n

    A block-tridiagonal matrix. \n More...

    \n \n-

    #include <dune/istl/btdmatrix.hh>

    \n+

    #include <dune/istl/btdmatrix.hh>

    \n
    \n Inheritance diagram for Dune::BTDMatrix< B, A >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -3420,15 +3420,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01220.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01220.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::FieldTraits< BTDMatrix< B, A > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/btdmatrix.hh>

    \n+

    #include <dune/istl/btdmatrix.hh>

    \n \n \n \n \n \n \n@@ -119,15 +119,15 @@\n \n

    \n Public Types

    using field_type = typename BTDMatrix< B, A >::field_type
     
    using real_type = typename FieldTraits< field_type >::real_type
     
    \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01244.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01244.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::BlockVector< B, A > Class Template Reference
    \n \n
    \n \n

    A vector of blocks with memory management. \n More...

    \n \n-

    #include <dune/istl/bvector.hh>

    \n+

    #include <dune/istl/bvector.hh>

    \n
    \n Inheritance diagram for Dune::BlockVector< B, A >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -730,15 +730,15 @@\n
    \n \n

    increment block level counter

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01248.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01248.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::FieldTraits< BlockVector< B, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/bvector.hh>

    \n+

    #include <dune/istl/bvector.hh>

    \n \n \n \n \n \n \n@@ -119,15 +119,15 @@\n \n

    \n Public Types

    typedef FieldTraits< B >::field_type field_type
     
    typedef FieldTraits< B >::real_type real_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01280.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01280.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::ArPackPlusPlus_Algorithms< BCRSMatrix, BlockVector > Class Template Reference
    \n \n
    \n \n

    Wrapper to use a range of ARPACK++ eigenvalue solvers. \n More...

    \n \n-

    #include <dune/istl/eigenvalue/arpackpp.hh>

    \n+

    #include <dune/istl/eigenvalue/arpackpp.hh>

    \n \n \n \n \n

    \n Public Types

    typedef BlockVector::field_type Real
     
    \n \n

    \n@@ -715,15 +715,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01292.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01292.html", "unified_diff": "@@ -83,15 +83,15 @@\n
    Dune::PowerIteration_Algorithms< BCRSMatrix, BlockVector > Class Template Reference
    \n \n
    \n \n

    Iterative eigenvalue algorithms based on power iteration. \n More...

    \n \n-

    #include <dune/istl/eigenvalue/poweriteration.hh>

    \n+

    #include <dune/istl/eigenvalue/poweriteration.hh>

    \n \n \n \n \n \n \n@@ -1203,15 +1203,15 @@\n \n

    \n Public Types

    typedef BlockVector::field_type Real
     Type of underlying field.
     
    typedef OperatorSum IterationOperator
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01312.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01312.html", "unified_diff": "@@ -79,15 +79,15 @@\n \n \n
    \n \n

    compile-time parameter for block recursion depth \n More...

    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { recursion_level = l\n }
     
    \n@@ -111,15 +111,15 @@\n \n \n
    Enumerator
    recursion_level 
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01316.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01316.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::algmeta_btsolve< I, diag, relax > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n \n@@ -193,15 +193,15 @@\n \n

    \n Static Public Member Functions

    template<class M , class X , class Y , class K >
    static void bltsolve (const M &A, X &v, const Y &d, const K &w)
     
    template<class M , class X , class Y , class K >
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01320.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01320.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::algmeta_btsolve< 0, withdiag, withrelax > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n \n@@ -189,15 +189,15 @@\n \n

    \n Static Public Member Functions

    template<class M , class X , class Y , class K >
    static void bltsolve (const M &A, X &v, const Y &d, const K &w)
     
    template<class M , class X , class Y , class K >
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01324.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01324.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n \n@@ -189,15 +189,15 @@\n \n

    \n Static Public Member Functions

    template<class M , class X , class Y , class K >
    static void bltsolve (const M &A, X &v, const Y &d, const K &)
     
    template<class M , class X , class Y , class K >
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01328.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01328.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n \n@@ -189,15 +189,15 @@\n \n

    \n Static Public Member Functions

    template<class M , class X , class Y , class K >
    static void bltsolve (const M &, X &v, const Y &d, const K &w)
     
    template<class M , class X , class Y , class K >
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01332.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01332.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n \n@@ -189,15 +189,15 @@\n \n

    \n Static Public Member Functions

    template<class M , class X , class Y , class K >
    static void bltsolve (const M &, X &v, const Y &d, const K &)
     
    template<class M , class X , class Y , class K >
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01336.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01336.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<class M , class X , class Y , class K >
    static void bdsolve (const M &A, X &v, const Y &d, const K &w)
     
    \n@@ -138,15 +138,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01340.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01340.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<class M , class X , class Y , class K >
    static void bdsolve (const M &A, X &v, const Y &d, const K &w)
     
    \n@@ -136,15 +136,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01344.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01344.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<class M , class X , class Y , class K >
    static void bdsolve (const M &A, X &v, const Y &d, const K &)
     
    \n@@ -136,15 +136,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01348.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01348.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n \n@@ -303,15 +303,15 @@\n \n

    \n Static Public Member Functions

    template<class X , class Y , class K >
    static void dbgs (const M &A, X &x, const Y &b, const K &w)
     
    template<class X , class Y , class K >
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01352.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01352.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n \n@@ -303,15 +303,15 @@\n \n

    \n Static Public Member Functions

    template<class X , class Y , class K >
    static void dbgs (const M &A, X &x, const Y &b, const K &)
     
    template<class X , class Y , class K >
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01356.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01356.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::algmeta_itsteps< I, MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/gsetc.hh>

    \n+

    #include <dune/istl/gsetc.hh>

    \n \n \n \n \n \n \n@@ -303,15 +303,15 @@\n \n

    \n Static Public Member Functions

    template<typename... MultiTypeVectorArgs, class K >
    static void dbgs (const MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > &A, MultiTypeBlockVector< MultiTypeVectorArgs... > &x, const MultiTypeBlockVector< MultiTypeVectorArgs... > &b, const K &w)
     
    template<typename... MultiTypeVectorArgs, class K >
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01360.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01360.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::ILU::CRS< B, Alloc > Struct Template Reference
    \n \n
    \n \n

    a simple compressed row storage matrix class \n More...

    \n \n-

    #include <dune/istl/ilu.hh>

    \n+

    #include <dune/istl/ilu.hh>

    \n
    \n Inheritance diagram for Dune::ILU::CRS< B, Alloc >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -405,15 +405,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01364.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01364.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::ILUSubdomainSolver< M, X, Y > Class Template Referenceabstract
    \n \n
    \n \n

    base class encapsulating common algorithms of ILU0SubdomainSolver and ILUNSubdomainSolver. \n More...

    \n \n-

    #include <dune/istl/ilusubdomainsolver.hh>

    \n+

    #include <dune/istl/ilusubdomainsolver.hh>

    \n
    \n Inheritance diagram for Dune::ILUSubdomainSolver< M, X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -295,15 +295,15 @@\n
    \n \n

    The ILU0 decomposition of the matrix, or the local matrix.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01368.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01368.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::ILU0SubdomainSolver< M, X, Y > Class Template Reference
    \n \n
    \n \n

    Exact subdomain solver using ILU(p) with appropriate p. \n More...

    \n \n-

    #include <dune/istl/ilusubdomainsolver.hh>

    \n+

    #include <dune/istl/ilusubdomainsolver.hh>

    \n
    \n Inheritance diagram for Dune::ILU0SubdomainSolver< M, X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -286,15 +286,15 @@\n
    \n \n

    The ILU0 decomposition of the matrix, or the local matrix.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01372.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01372.html", "unified_diff": "@@ -79,15 +79,15 @@\n Protected Member Functions |\n Protected Attributes |\n List of all members \n
    Dune::ILUNSubdomainSolver< M, X, Y > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/ilusubdomainsolver.hh>

    \n+

    #include <dune/istl/ilusubdomainsolver.hh>

    \n
    \n Inheritance diagram for Dune::ILUNSubdomainSolver< M, X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -272,15 +272,15 @@\n
    \n \n

    The ILU0 decomposition of the matrix, or the local matrix.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01388.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01388.html", "unified_diff": "@@ -80,15 +80,15 @@\n \n \n
    \n \n

    Default options class to write SVG matrices. \n More...

    \n \n-

    #include <dune/istl/io.hh>

    \n+

    #include <dune/istl/io.hh>

    \n \n \n \n \n \n \n@@ -447,15 +447,15 @@\n
    \n \n

    Whether to write the SVG header.

    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01392.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01392.html", "unified_diff": "@@ -76,15 +76,15 @@\n
    Dune::ISTLError Class Reference
    \n \n
    \n \n

    derive error class from the base class in common \n More...

    \n \n-

    #include <dune/istl/istlexception.hh>

    \n+

    #include <dune/istl/istlexception.hh>

    \n
    \n Inheritance diagram for Dune::ISTLError:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -96,15 +96,15 @@\n \"\"\n \"\"\n \n
    \n

    Detailed Description

    \n

    derive error class from the base class in common

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01396.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01396.html", "unified_diff": "@@ -76,15 +76,15 @@\n
    Dune::BCRSMatrixError Class Reference
    \n \n
    \n \n

    Error specific to BCRSMatrix. \n More...

    \n \n-

    #include <dune/istl/istlexception.hh>

    \n+

    #include <dune/istl/istlexception.hh>

    \n
    \n Inheritance diagram for Dune::BCRSMatrixError:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -94,15 +94,15 @@\n \"\"\n \"\"\n \n
    \n

    Detailed Description

    \n

    Error specific to BCRSMatrix.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01400.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01400.html", "unified_diff": "@@ -76,15 +76,15 @@\n
    Dune::ImplicitModeCompressionBufferExhausted Class Reference
    \n \n
    \n \n

    Thrown when the compression buffer used by the implicit BCRSMatrix construction is exhausted. \n More...

    \n \n-

    #include <dune/istl/istlexception.hh>

    \n+

    #include <dune/istl/istlexception.hh>

    \n
    \n Inheritance diagram for Dune::ImplicitModeCompressionBufferExhausted:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -96,15 +96,15 @@\n \n
    \n

    Detailed Description

    \n

    Thrown when the compression buffer used by the implicit BCRSMatrix construction is exhausted.

    \n

    This error occurs if the compression buffer of the BCRSMatrix did not have room for another non-zero entry during implicit mode construction.

    \n

    You can fix this problem by either increasing the average row size or the compressionBufferSize value.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01404.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01404.html", "unified_diff": "@@ -76,15 +76,15 @@\n
    Dune::SolverAbort Class Reference
    \n \n
    \n \n

    Thrown when a solver aborts due to some problem. \n More...

    \n \n-

    #include <dune/istl/istlexception.hh>

    \n+

    #include <dune/istl/istlexception.hh>

    \n
    \n Inheritance diagram for Dune::SolverAbort:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -93,15 +93,15 @@\n \"\"\n \n
    \n

    Detailed Description

    \n

    Thrown when a solver aborts due to some problem.

    \n

    Problems that may cause the solver to abort include a NaN detected during the convergence check (which may be caused by invalid input data), or breakdown conditions (which can happen e.g. in BiCGSTABSolver or RestartedGMResSolver).

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01408.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01408.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::MatrixBlockError Class Reference
    \n \n
    \n \n

    Error when performing an operation on a matrix block. \n More...

    \n \n-

    #include <dune/istl/istlexception.hh>

    \n+

    #include <dune/istl/istlexception.hh>

    \n
    \n Inheritance diagram for Dune::MatrixBlockError:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -131,15 +131,15 @@\n \n

    \n Public Member Functions

    template<class RowPrefix , class ColPrefix >
    std::string blockStyleClass (const RowPrefix &row_prefix, const ColPrefix &col_prefix) const
     Helper function that returns an style class for a given prefix.
     
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01412.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01412.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SeqOverlappingSchwarz< M, X, TM, TD, TA > Class Template Reference
    \n \n
    \n \n

    Sequential overlapping Schwarz preconditioner. \n More...

    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    \n Inheritance diagram for Dune::SeqOverlappingSchwarz< M, X, TM, TD, TA >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -543,16 +543,16 @@\n \n \n

    Implements Dune::Preconditioner< X, X >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following files:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01416.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01416.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::SeqOverlappingSchwarzAssemblerHelper< T, tag > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01420.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01420.html", "unified_diff": "@@ -76,26 +76,26 @@\n
    Dune::LDL< Matrix > Class Template Reference
    \n \n
    \n \n

    Use the LDL package to directly solve linear systems – empty default class. \n More...

    \n \n-

    #include <dune/istl/ldl.hh>

    \n+

    #include <dune/istl/ldl.hh>

    \n

    Detailed Description

    \n
    template<class Matrix>
    \n class Dune::LDL< Matrix >

    Use the LDL package to directly solve linear systems – empty default class.

    \n
    Template Parameters
    \n \n \n
    Matrixthe matrix type defining the system Details on UMFPack can be found on http://www.cise.ufl.edu/research/sparse/ldl/
    \n
    \n
    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01424.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01424.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > Class Template Referenceabstract
    \n \n
    \n \n

    The LDL direct sparse solver for matrices of type BCRSMatrix. \n More...

    \n \n-

    #include <dune/istl/ldl.hh>

    \n+

    #include <dune/istl/ldl.hh>

    \n
    \n Inheritance diagram for Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -569,15 +569,15 @@\n
    \n \n

    helper function for printing solver output

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01428.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01428.html", "unified_diff": "@@ -76,24 +76,24 @@\n \n
    Dune::IsDirectSolver< LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/ldl.hh>

    \n+

    #include <dune/istl/ldl.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value = true\n }
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01432.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01432.html", "unified_diff": "@@ -76,24 +76,24 @@\n \n
    Dune::StoresColumnCompressed< LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/ldl.hh>

    \n+

    #include <dune/istl/ldl.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value = true\n }
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01436.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01436.html", "unified_diff": "@@ -77,15 +77,15 @@\n Classes |\n Public Member Functions |\n List of all members \n
    Dune::LDLCreator Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/ldl.hh>

    \n+

    #include <dune/istl/ldl.hh>

    \n \n \n \n \n \n \n@@ -96,15 +96,15 @@\n \n \n \n \n \n

    \n Classes

    struct  isValidBlock
     
    struct  isValidBlock< FieldVector< double, k > >
     
    std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator() (TL, const M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock< typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0) const
     
    template<typename TL , typename M >
    std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator() (TL, const M &, const Dune::ParameterTree &, std::enable_if_t< !isValidBlock< typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0) const
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01440.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01440.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::LDLCreator::isValidBlock< F > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/ldl.hh>

    \n+

    #include <dune/istl/ldl.hh>

    \n
    \n Inheritance diagram for Dune::LDLCreator::isValidBlock< F >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01444.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01444.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::LDLCreator::isValidBlock< FieldVector< double, k > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/ldl.hh>

    \n+

    #include <dune/istl/ldl.hh>

    \n
    \n Inheritance diagram for Dune::LDLCreator::isValidBlock< FieldVector< double, k > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01448.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01448.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::MatrixImp::DenseMatrixBase< B, A > Class Template Reference
    \n \n
    \n \n

    A Vector of blocks with different blocksizes. \n More...

    \n \n-

    #include <dune/istl/matrix.hh>

    \n+

    #include <dune/istl/matrix.hh>

    \n
    \n Inheritance diagram for Dune::MatrixImp::DenseMatrixBase< B, A >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -988,15 +988,15 @@\n
    \n \n

    same effect as constructor with same argument

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01452.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01452.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::MatrixImp::DenseMatrixBase< B, A >::Iterator Class Reference
    \n \n
    \n \n

    Iterator class for sequential access. \n More...

    \n \n-

    #include <dune/istl/matrix.hh>

    \n+

    #include <dune/istl/matrix.hh>

    \n \n \n \n \n \n \n@@ -586,15 +586,15 @@\n
    \n \n

    equality

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01456.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01456.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::MatrixImp::DenseMatrixBase< B, A >::ConstIterator Class Reference
    \n \n
    \n \n

    ConstIterator class for sequential access. \n More...

    \n \n-

    #include <dune/istl/matrix.hh>

    \n+

    #include <dune/istl/matrix.hh>

    \n

    \n Public Member Functions

     Iterator ()
     constructor, no arguments
     
     Iterator (Iterator &other)=default
    \n \n \n \n \n \n@@ -553,15 +553,15 @@\n
    \n \n

    equality

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01460.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01460.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::Matrix< T, A > Class Template Reference
    \n \n
    \n \n

    A generic dynamic dense matrix. \n More...

    \n \n-

    #include <dune/istl/matrix.hh>

    \n+

    #include <dune/istl/matrix.hh>

    \n

    \n Public Member Functions

     ConstIterator ()
     constructor
     
     ConstIterator (const B *data, size_type columns, size_type _i)
    \n \n \n \n \n \n@@ -1858,15 +1858,15 @@\n
    \n \n

    Abuse DenseMatrixBase as an engine for a 2d array ISTL-style.

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01464.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01464.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::FieldTraits< Matrix< T, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrix.hh>

    \n+

    #include <dune/istl/matrix.hh>

    \n

    \n Public Types

    using field_type = typename Imp::BlockTraits< T >::field_type
     Export the type representing the underlying field.
     
    typedef T block_type
    \n \n \n \n \n \n@@ -119,15 +119,15 @@\n \n

    \n Public Types

    using field_type = typename Matrix< T, A >::field_type
     
    using real_type = typename FieldTraits< field_type >::real_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01468.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01468.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::MatrixIndexSet Class Reference
    \n \n
    \n \n

    Stores the nonzero entries in a sparse matrix. \n More...

    \n \n-

    #include <dune/istl/matrixindexset.hh>

    \n+

    #include <dune/istl/matrixindexset.hh>

    \n \n \n \n \n

    \n Public Types

    typedef std::size_t size_type
     
    \n \n

    \n@@ -464,15 +464,15 @@\n
    \n \n

    Return the number of entries.

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01472.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01472.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::MatrixMarketImpl::mm_numeric_type< T > Struct Template Reference
    \n \n
    \n \n

    Helper metaprogram to get the matrix market string representation of the numeric type. \n More...

    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { is_numeric =false\n }
     
    \n@@ -113,15 +113,15 @@\n

    Enumerator
    is_numeric 

    Whether T is a supported numeric type.

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01476.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01476.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_numeric_type< int > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { is_numeric =true\n }
     
    \n@@ -136,15 +136,15 @@\n \n
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01480.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01480.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_numeric_type< double > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { is_numeric =true\n }
     
    \n@@ -136,15 +136,15 @@\n \n
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01484.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01484.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_numeric_type< float > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { is_numeric =true\n }
     
    \n@@ -136,15 +136,15 @@\n \n
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01488.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01488.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_numeric_type< std::complex< double > > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { is_numeric =true\n }
     
    \n@@ -136,15 +136,15 @@\n \n
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01492.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01492.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_numeric_type< std::complex< float > > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { is_numeric =true\n }
     
    \n@@ -136,15 +136,15 @@\n \n
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01496.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01496.html", "unified_diff": "@@ -86,15 +86,15 @@\n
    Template Parameters
    \n \n \n
    MThe matrix type.
    \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01500.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01500.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::MatrixMarketImpl::mm_header_printer< BCRSMatrix< T, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Static Public Member Functions

    static void print (std::ostream &os)
     
    \n

    Member Function Documentation

    \n@@ -113,15 +113,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01504.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01504.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::MatrixMarketImpl::mm_header_printer< BlockVector< B, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Static Public Member Functions

    static void print (std::ostream &os)
     
    \n

    Member Function Documentation

    \n@@ -113,15 +113,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01508.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01508.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::MatrixMarketImpl::mm_header_printer< FieldVector< T, j > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Static Public Member Functions

    static void print (std::ostream &os)
     
    \n

    Member Function Documentation

    \n@@ -113,15 +113,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01512.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01512.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::MatrixMarketImpl::mm_header_printer< FieldMatrix< T, i, j > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Static Public Member Functions

    static void print (std::ostream &os)
     
    \n

    Member Function Documentation

    \n@@ -113,15 +113,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01516.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01516.html", "unified_diff": "@@ -85,15 +85,15 @@\n

    Member function mm_block_structure_header::print(os, mat) writes the corresponding header to the specified ostream.

    Template Parameters
    \n \n \n
    Thetype of the matrix to generate the header for.
    \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01520.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01520.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_block_structure_header< BlockVector< T, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    typedef BlockVector< T, A > M
     
    \n \n

    \n@@ -146,15 +146,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01524.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01524.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_block_structure_header< BlockVector< FieldVector< T, i >, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    typedef BlockVector< FieldVector< T, i >, A > M
     
    \n \n

    \n@@ -146,15 +146,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01528.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01528.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_block_structure_header< BCRSMatrix< T, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    typedef BCRSMatrix< T, A > M
     
    \n \n

    \n@@ -146,15 +146,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01532.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01532.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_block_structure_header< BCRSMatrix< FieldMatrix< T, i, j >, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    typedef BCRSMatrix< FieldMatrix< T, i, j >, A > M
     
    \n \n

    \n@@ -146,15 +146,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01536.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01536.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_block_structure_header< FieldMatrix< T, i, j > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    typedef FieldMatrix< T, i, j > M
     
    \n \n

    \n@@ -146,15 +146,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01540.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01540.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixMarketImpl::mm_block_structure_header< FieldVector< T, i > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Types

    typedef FieldVector< T, i > M
     
    \n \n

    \n@@ -146,15 +146,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01544.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01544.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Member Functions |\n Public Attributes |\n List of all members \n
    Dune::MatrixMarketImpl::MMHeader Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Member Functions

     MMHeader ()
     
    \n \n

    \n@@ -163,15 +163,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01548.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01548.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::MatrixMarketImpl::IndexData< T > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n
    \n Inheritance diagram for Dune::MatrixMarketImpl::IndexData< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -111,15 +111,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01552.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01552.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::MatrixMarketImpl::NumericWrapper< T > Struct Template Reference
    \n \n
    \n \n

    a wrapper class of numeric values. \n More...

    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n

    \n Public Member Functions

     operator T& ()
     
    \n \n

    \n@@ -148,15 +148,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01556.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01556.html", "unified_diff": "@@ -76,19 +76,19 @@\n
    Dune::MatrixMarketImpl::PatternDummy Struct Reference
    \n \n
    \n \n

    Utility class for marking the pattern type of the MatrixMarket matrices. \n More...

    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n

    Detailed Description

    \n

    Utility class for marking the pattern type of the MatrixMarket matrices.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01560.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01560.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::MatrixMarketImpl::NumericWrapper< PatternDummy > Struct Reference
    \n
    \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01564.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01564.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::MatrixMarketImpl::MatrixValuesSetter< D, brows, bcols > Struct Template Reference
    \n \n
    \n \n

    Functor to the data values of the matrix. \n More...

    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n \n \n@@ -196,15 +196,15 @@\n

    \n Public Member Functions

    template<typename T >
    void operator() (const std::vector< std::set< IndexData< D > > > &rows, BCRSMatrix< T > &matrix)
     Sets the matrix values.
     
    \n \n \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01568.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01568.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::MatrixMarketImpl::MatrixValuesSetter< PatternDummy, brows, bcols > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n \n

    \n Public Member Functions

    template<typename M >
    void operator() (const std::vector< std::set< IndexData< PatternDummy > > > &rows, M &matrix)
     
    \n@@ -126,15 +126,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01572.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01572.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::MatrixMarketImpl::is_complex< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n
    \n Inheritance diagram for Dune::MatrixMarketImpl::is_complex< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01576.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01576.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::MatrixMarketImpl::is_complex< std::complex< T > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n
    \n Inheritance diagram for Dune::MatrixMarketImpl::is_complex< std::complex< T > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01580.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01580.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::MatrixMarketImpl::mm_multipliers< M > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01584.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01584.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::MatrixMarketImpl::mm_multipliers< BCRSMatrix< B, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n@@ -107,15 +107,15 @@\n \n \n

    \n Public Types

    enum  { rows = 1\n , cols = 1\n }
     
    Enumerator
    rows 
    cols 
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01588.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01588.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::MatrixMarketImpl::mm_multipliers< BCRSMatrix< FieldMatrix< B, i, j >, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n \n \n \n \n@@ -107,15 +107,15 @@\n \n \n

    \n Public Types

    enum  { rows = i\n , cols = j\n }
     
    Enumerator
    rows 
    cols 
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01592.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01592.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n \n
    \n \n-

    #include <dune/istl/matrixmarket.hh>

    \n+

    #include <dune/istl/matrixmarket.hh>

    \n
    \n Inheritance diagram for Dune::MatrixMarketFormatError:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01664.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01664.html", "unified_diff": "@@ -76,27 +76,27 @@\n
    Dune::MatMultMatResult< M1, M2 > Struct Template Reference
    \n \n
    \n \n

    Helper TMP to get the result type of a sparse matrix matrix multiplication ( \"$C=A*B$\") \n More...

    \n \n-

    #include <dune/istl/matrixmatrix.hh>

    \n+

    #include <dune/istl/matrixmatrix.hh>

    \n

    Detailed Description

    \n
    template<typename M1, typename M2>
    \n struct Dune::MatMultMatResult< M1, M2 >

    Helper TMP to get the result type of a sparse matrix matrix multiplication ( \"$C=A*B$\")

    \n

    The type of matrix C will be stored as the associated type MatMultMatResult::type.

    Template Parameters
    \n \n \n \n
    M1The type of matrix A.
    M2The type of matrix B.
    \n
    \n
    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01668.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01668.html", "unified_diff": "@@ -76,23 +76,23 @@\n \n
    Dune::MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmatrix.hh>

    \n+

    #include <dune/istl/matrixmatrix.hh>

    \n \n \n \n \n

    \n Public Types

    typedef FieldMatrix< T, n, m > type
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01672.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01672.html", "unified_diff": "@@ -76,23 +76,23 @@\n \n
    Dune::MatMultMatResult< BCRSMatrix< FieldMatrix< T, n, k >, A >, BCRSMatrix< FieldMatrix< T, k, m >, A1 > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmatrix.hh>

    \n+

    #include <dune/istl/matrixmatrix.hh>

    \n \n \n \n \n

    \n Public Types

    typedef BCRSMatrix< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type, std::allocator< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type > > type
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01676.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01676.html", "unified_diff": "@@ -76,27 +76,27 @@\n
    Dune::TransposedMatMultMatResult< M1, M2 > Struct Template Reference
    \n \n
    \n \n

    Helper TMP to get the result type of a sparse matrix matrix multiplication ( \"$C=A*B$\") \n More...

    \n \n-

    #include <dune/istl/matrixmatrix.hh>

    \n+

    #include <dune/istl/matrixmatrix.hh>

    \n

    Detailed Description

    \n
    template<typename M1, typename M2>
    \n struct Dune::TransposedMatMultMatResult< M1, M2 >

    Helper TMP to get the result type of a sparse matrix matrix multiplication ( \"$C=A*B$\")

    \n

    The type of matrix C will be stored as the associated type MatMultMatResult::type.

    Template Parameters
    \n \n \n \n
    M1The type of matrix A.
    M2The type of matrix B.
    \n
    \n
    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01680.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01680.html", "unified_diff": "@@ -76,23 +76,23 @@\n \n
    Dune::TransposedMatMultMatResult< FieldMatrix< T, k, n >, FieldMatrix< T, k, m > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmatrix.hh>

    \n+

    #include <dune/istl/matrixmatrix.hh>

    \n \n \n \n \n

    \n Public Types

    typedef FieldMatrix< T, n, m > type
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01684.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01684.html", "unified_diff": "@@ -76,23 +76,23 @@\n \n
    Dune::TransposedMatMultMatResult< BCRSMatrix< FieldMatrix< T, k, n >, A >, BCRSMatrix< FieldMatrix< T, k, m >, A1 > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixmatrix.hh>

    \n+

    #include <dune/istl/matrixmatrix.hh>

    \n \n \n \n \n

    \n Public Types

    typedef BCRSMatrix< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type, std::allocator< typename MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >::type > > type
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01688.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01688.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::RedistributeInformation< T > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixredistribute.hh>

    \n+

    #include <dune/istl/matrixredistribute.hh>

    \n \n \n \n \n \n \n@@ -407,15 +407,15 @@\n \n

    \n Public Member Functions

    bool isSetup () const
     
    template<class D >
    void redistribute (const D &from, D &to) const
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01692.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01692.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n
    Dune::RedistributeInformation< OwnerOverlapCopyCommunication< T, T1 > > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixredistribute.hh>

    \n+

    #include <dune/istl/matrixredistribute.hh>

    \n \n \n \n \n

    \n Public Types

    typedef OwnerOverlapCopyCommunication< T, T1 > Comm
     
    \n \n

    \n@@ -773,15 +773,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01696.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01696.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::CommMatrixRowSize< M, RI > Struct Template Reference
    \n \n
    \n \n

    Utility class to communicate and set the row sizes of a redistributed matrix. \n More...

    \n \n-

    #include <dune/istl/matrixredistribute.hh>

    \n+

    #include <dune/istl/matrixredistribute.hh>

    \n \n \n \n \n \n \n@@ -228,15 +228,15 @@\n \n

    \n Public Types

    typedef M::size_type value_type
     
    typedef M::size_type size_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01700.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01700.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::CommMatrixSparsityPattern< M, I > Struct Template Reference
    \n \n
    \n \n

    Utility class to communicate and build the sparsity pattern of a redistributed matrix. \n More...

    \n \n-

    #include <dune/istl/matrixredistribute.hh>

    \n+

    #include <dune/istl/matrixredistribute.hh>

    \n \n \n \n \n \n \n@@ -432,15 +432,15 @@\n \n

    \n Public Types

    typedef M::size_type size_type
     
    typedef Dune::GlobalLookupIndexSet< I > LookupIndexSet
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01704.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01704.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::CommPolicy< CommMatrixSparsityPattern< M, I > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixredistribute.hh>

    \n+

    #include <dune/istl/matrixredistribute.hh>

    \n \n \n \n \n \n \n@@ -188,15 +188,15 @@\n \n

    \n Public Types

    typedef CommMatrixSparsityPattern< M, I > Type
     
    typedef I::GlobalIndex IndexedType
     The indexed type we send. This is the global index indentitfying the column.
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01708.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01708.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::CommMatrixRow< M, I > Struct Template Reference
    \n \n
    \n \n

    Utility class for comunicating the matrix entries. \n More...

    \n \n-

    #include <dune/istl/matrixredistribute.hh>

    \n+

    #include <dune/istl/matrixredistribute.hh>

    \n \n \n \n \n \n \n@@ -331,15 +331,15 @@\n
    \n \n

    row size information for the receiving side.

    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01712.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01712.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members\n
    Dune::CommPolicy< CommMatrixRow< M, I > > Struct Template Reference
    \n \n

    \n Public Member Functions

     CommMatrixRow (M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_)
     Constructor.
     
     CommMatrixRow (M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_, std::vector< size_t > &rowsize_)
    \n \n \n \n \n \n@@ -188,15 +188,15 @@\n \n

    \n Public Types

    typedef CommMatrixRow< M, I > Type
     
    typedef std::pair< typename I::GlobalIndex, typename M::block_type > IndexedType
     The indexed type we send. This is the pair of global index indentitfying the column and the value itself.
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01716.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01716.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixRowSizeGatherScatter< M, I, RI > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixredistribute.hh>

    \n+

    #include <dune/istl/matrixredistribute.hh>

    \n \n \n \n \n

    \n Public Types

    typedef CommMatrixRowSize< M, RI > Container
     
    \n \n

    \n@@ -192,15 +192,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01720.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01720.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixCopyRowSizeGatherScatter< M, I, RI > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixredistribute.hh>

    \n+

    #include <dune/istl/matrixredistribute.hh>

    \n \n \n \n \n

    \n Public Types

    typedef CommMatrixRowSize< M, RI > Container
     
    \n \n

    \n@@ -192,15 +192,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01724.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01724.html", "unified_diff": "@@ -78,15 +78,15 @@\n Static Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::MatrixSparsityPatternGatherScatter< M, I > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixredistribute.hh>

    \n+

    #include <dune/istl/matrixredistribute.hh>

    \n \n \n \n \n \n \n@@ -297,15 +297,15 @@\n \n

    \n Public Types

    typedef I::GlobalIndex GlobalIndex
     
    typedef CommMatrixSparsityPattern< M, I > Container
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01728.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01728.html", "unified_diff": "@@ -78,15 +78,15 @@\n Static Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::MatrixRowGatherScatter< M, I > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixredistribute.hh>

    \n+

    #include <dune/istl/matrixredistribute.hh>

    \n \n \n \n \n \n \n@@ -341,15 +341,15 @@\n \n

    \n Public Types

    typedef I::GlobalIndex GlobalIndex
     
    typedef CommMatrixRow< M, I > Container
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01732.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01732.html", "unified_diff": "@@ -73,15 +73,15 @@\n \n \n
    \n
    Dune::FieldMatrix< K, n, m > Class Template Reference
    \n
    \n
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01736.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01736.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::CheckIfDiagonalPresent< Matrix, blocklevel, l > Struct Template Reference
    \n \n
    \n \n

    Check whether the a matrix has diagonal values on blocklevel recursion levels. \n More...

    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    static void check (const Matrix &mat)
     Check whether the a matrix has diagonal values on blocklevel recursion levels.
     
    \n@@ -122,15 +122,15 @@\n
    \n \n

    Check whether the a matrix has diagonal values on blocklevel recursion levels.

    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01740.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01740.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::CheckIfDiagonalPresent< Matrix, 0, l > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n

    \n Static Public Member Functions

    static void check (const Matrix &mat)
     
    \n

    Member Function Documentation

    \n@@ -113,15 +113,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01744.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01744.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::CheckIfDiagonalPresent< MultiTypeBlockMatrix< T1, Args... >, blocklevel, l > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n

    \n Public Types

    typedef MultiTypeBlockMatrix< T1, Args... > Matrix
     
    \n \n

    \n@@ -139,15 +139,15 @@\n
    \n \n

    Check whether the a matrix has diagonal values on blocklevel recursion levels.

    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01752.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01752.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixDimension< Matrix< B, TA > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n \n \n@@ -264,15 +264,15 @@\n \n

    \n Public Types

    using block_type = typename Matrix< B, TA >::block_type
     
    using size_type = typename Matrix< B, TA >::size_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01756.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01756.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixDimension< BCRSMatrix< B, TA > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n \n \n@@ -282,15 +282,15 @@\n \n

    \n Public Types

    typedef BCRSMatrix< B, TA > Matrix
     
    typedef Matrix::block_type block_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01760.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01760.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixDimension< BCRSMatrix< FieldMatrix< B, n, m >, TA > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n \n \n@@ -264,15 +264,15 @@\n \n

    \n Public Types

    typedef BCRSMatrix< FieldMatrix< B, n, m >,TA > Matrix
     
    typedef Matrix::size_type size_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01764.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01764.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixDimension< FieldMatrix< K, n, m > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n \n \n@@ -264,15 +264,15 @@\n \n

    \n Public Types

    typedef FieldMatrix< K, n, m > Matrix
     
    typedef Matrix::size_type size_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01768.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01768.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixDimension< Dune::DynamicMatrix< T > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n \n \n@@ -264,15 +264,15 @@\n \n

    \n Public Types

    typedef Dune::DynamicMatrix< T > MatrixType
     
    typedef MatrixType::size_type size_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01772.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01772.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixDimension< Matrix< FieldMatrix< K, n, m >, TA > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n \n \n@@ -264,15 +264,15 @@\n \n

    \n Public Types

    typedef Matrix< FieldMatrix< K, n, m >, TA > ThisMatrix
     
    typedef ThisMatrix::size_type size_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01776.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01776.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixDimension< DiagonalMatrix< K, n > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n \n \n@@ -264,15 +264,15 @@\n \n

    \n Public Types

    typedef DiagonalMatrix< K, n > Matrix
     
    typedef Matrix::size_type size_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01780.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01780.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::MatrixDimension< ScaledIdentityMatrix< K, n > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n \n \n@@ -264,15 +264,15 @@\n \n

    \n Public Types

    typedef ScaledIdentityMatrix< K, n > Matrix
     
    typedef Matrix::size_type size_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01784.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01784.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::IsMatrix< T > Struct Template Reference
    \n \n
    \n \n

    Test whether a type is an ISTL Matrix. \n More...

    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value = false\n }
     
    \n@@ -112,15 +112,15 @@\n

    Enumerator
    value 

    True if T is an ISTL matrix.

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01788.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01788.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::IsMatrix< DenseMatrix< T > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value = true\n }
     
    \n@@ -106,15 +106,15 @@\n Enumeratorvalue 

    True if T is an ISTL matrix.

    \n \n \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01792.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01792.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::IsMatrix< BCRSMatrix< T, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value = true\n }
     
    \n@@ -106,15 +106,15 @@\n Enumeratorvalue 

    True if T is an ISTL matrix.

    \n \n \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01796.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01796.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::PointerCompare< T > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/matrixutils.hh>

    \n+

    #include <dune/istl/matrixutils.hh>

    \n \n \n \n \n

    \n Public Member Functions

    bool operator() (const T *l, const T *r)
     
    \n

    Member Function Documentation

    \n@@ -123,15 +123,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01800.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01800.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::MultiTypeBlockMatrix_Solver< I, crow, remain_row > Class Template Reference
    \n \n
    \n \n

    solver for MultiTypeBlockVector & MultiTypeBlockMatrix types \n More...

    \n \n-

    #include <dune/istl/multitypeblockmatrix.hh>

    \n+

    #include <dune/istl/multitypeblockmatrix.hh>

    \n \n \n \n \n \n \n@@ -113,15 +113,15 @@\n \n

    \n Static Public Member Functions

    template<typename TVector , typename TMatrix , typename K >
    static void dbgs (const TMatrix &A, TVector &x, const TVector &b, const K &w)
     
    template<typename TVector , typename TMatrix , typename K >
     
    \n

    Detailed Description

    \n
    template<int I, int crow, int remain_row>
    \n class Dune::MultiTypeBlockMatrix_Solver< I, crow, remain_row >

    solver for MultiTypeBlockVector & MultiTypeBlockMatrix types

    \n

    The methods of this class are called by the solver specializations for MultiTypeBlockVector & MultiTypeBlockMatrix types (dbgs, bsorf, bsorb, dbjac).

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01804.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01804.html", "unified_diff": "@@ -79,28 +79,28 @@\n
    Dune::MultiTypeBlockMatrix_Solver_Col< I, crow, ccol, remain_col > Class Template Reference
    \n \n
    \n \n

    part of solvers for MultiTypeBlockVector & MultiTypeBlockMatrix types \n More...

    \n \n-

    #include <dune/istl/multitypeblockmatrix.hh>

    \n+

    #include <dune/istl/multitypeblockmatrix.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<typename Trhs , typename TVector , typename TMatrix , typename K >
    static void calc_rhs (const TMatrix &A, TVector &x, TVector &v, Trhs &b, const K &w)
     
    \n

    Detailed Description

    \n
    template<int I, int crow, int ccol, int remain_col>
    \n class Dune::MultiTypeBlockMatrix_Solver_Col< I, crow, ccol, remain_col >

    part of solvers for MultiTypeBlockVector & MultiTypeBlockMatrix types

    \n

    For the given row (index \"crow\") each element is used to calculate the equation's right side.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01808.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01808.html", "unified_diff": "@@ -76,24 +76,24 @@\n \n
    Dune::MultiTypeBlockMatrix_Solver_Col< I, crow, ccol, 0 > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/multitypeblockmatrix.hh>

    \n+

    #include <dune/istl/multitypeblockmatrix.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<typename Trhs , typename TVector , typename TMatrix , typename K >
    static void calc_rhs (const TMatrix &, TVector &, TVector &, Trhs &, const K &)
     
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01812.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01812.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::MultiTypeBlockMatrix_Solver< I, crow, 0 > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/multitypeblockmatrix.hh>

    \n+

    #include <dune/istl/multitypeblockmatrix.hh>

    \n \n \n \n \n \n \n@@ -94,15 +94,15 @@\n \n \n \n \n \n

    \n Static Public Member Functions

    template<typename TVector , typename TMatrix , typename K >
    static void dbgs (const TMatrix &, TVector &, TVector &, const TVector &, const K &)
     
    template<typename TVector , typename TMatrix , typename K >
    static void bsorb (const TMatrix &, TVector &, TVector &, const TVector &, const K &)
     
    template<typename TVector , typename TMatrix , typename K >
    static void dbjac (const TMatrix &, TVector &, TVector &, const TVector &, const K &)
     
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01816.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01816.html", "unified_diff": "@@ -79,27 +79,27 @@\n
    std::tuple_element< i, Dune::MultiTypeBlockMatrix< Args... > > Struct Template Reference
    \n \n
    \n \n

    Make std::tuple_element work for MultiTypeBlockMatrix. \n More...

    \n \n-

    #include <dune/istl/multitypeblockmatrix.hh>

    \n+

    #include <dune/istl/multitypeblockmatrix.hh>

    \n \n \n \n \n

    \n Public Types

    using type = typename std::tuple_element< i, std::tuple< Args... > >::type
     
    \n

    Detailed Description

    \n
    template<size_t i, typename... Args>
    \n struct std::tuple_element< i, Dune::MultiTypeBlockMatrix< Args... > >

    Make std::tuple_element work for MultiTypeBlockMatrix.

    \n

    It derives from std::tuple after all.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01820.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01820.html", "unified_diff": "@@ -76,25 +76,25 @@\n \n
    Dune::FieldTraits< MultiTypeBlockVector< Args... > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/multitypeblockvector.hh>

    \n+

    #include <dune/istl/multitypeblockvector.hh>

    \n \n \n \n \n \n \n

    \n Public Types

    using field_type = typename MultiTypeBlockVector< Args... >::field_type
     
    using real_type = typename FieldTraits< field_type >::real_type
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01824.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01824.html", "unified_diff": "@@ -79,27 +79,27 @@\n
    std::tuple_element< i, Dune::MultiTypeBlockVector< Args... > > Struct Template Reference
    \n \n
    \n \n

    Make std::tuple_element work for MultiTypeBlockVector. \n More...

    \n \n-

    #include <dune/istl/multitypeblockvector.hh>

    \n+

    #include <dune/istl/multitypeblockvector.hh>

    \n \n \n \n \n

    \n Public Types

    using type = typename std::tuple_element< i, std::tuple< Args... > >::type
     
    \n

    Detailed Description

    \n
    template<size_t i, typename... Args>
    \n struct std::tuple_element< i, Dune::MultiTypeBlockVector< Args... > >

    Make std::tuple_element work for MultiTypeBlockVector.

    \n

    It derives from std::tuple after all.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01828.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01828.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::NonoverlappingSchwarzOperator< M, X, Y, C > Class Template Reference
    \n \n
    \n \n

    A nonoverlapping operator with communication object. \n More...

    \n \n-

    #include <dune/istl/novlpschwarz.hh>

    \n+

    #include <dune/istl/novlpschwarz.hh>

    \n
    \n Inheritance diagram for Dune::NonoverlappingSchwarzOperator< M, X, Y, C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -724,15 +724,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01836.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01836.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::NonoverlappingBlockPreconditioner< C, P > Class Template Reference
    \n \n
    \n \n

    Nonoverlapping parallel preconditioner. \n More...

    \n \n-

    #include <dune/istl/novlpschwarz.hh>

    \n+

    #include <dune/istl/novlpschwarz.hh>

    \n
    \n Inheritance diagram for Dune::NonoverlappingBlockPreconditioner< C, P >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -520,15 +520,15 @@\n

    Prepare the preconditioner.

    \n \n

    Implements Dune::Preconditioner< P::domain_type, P::range_type >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01840.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01840.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::LinearOperator< X, Y > Class Template Referenceabstract
    \n \n
    \n \n

    A linear operator. \n More...

    \n \n-

    #include <dune/istl/operators.hh>

    \n+

    #include <dune/istl/operators.hh>

    \n
    \n Inheritance diagram for Dune::LinearOperator< X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -352,15 +352,15 @@\n

    Category of the linear operator (see SolverCategory::Category)

    \n \n

    Implemented in Dune::NonoverlappingSchwarzOperator< M, X, Y, C >, Dune::OverlappingSchwarzOperator< M, X, Y, C >, and Dune::MatrixAdapter< M, X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01844.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01844.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::AssembledLinearOperator< M, X, Y > Class Template Referenceabstract
    \n \n
    \n \n

    A linear operator exporting itself in matrix form. \n More...

    \n \n-

    #include <dune/istl/operators.hh>

    \n+

    #include <dune/istl/operators.hh>

    \n
    \n Inheritance diagram for Dune::AssembledLinearOperator< M, X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -383,15 +383,15 @@\n

    get matrix via *

    \n \n

    Implemented in Dune::NonoverlappingSchwarzOperator< M, X, Y, C >, Dune::OverlappingSchwarzOperator< M, X, Y, C >, and Dune::MatrixAdapter< M, X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01848.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01848.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::MatrixAdapter< M, X, Y > Class Template Reference
    \n \n
    \n \n

    Adapter to turn a matrix into a linear operator. \n More...

    \n \n-

    #include <dune/istl/operators.hh>

    \n+

    #include <dune/istl/operators.hh>

    \n
    \n Inheritance diagram for Dune::MatrixAdapter< M, X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -413,15 +413,15 @@\n

    get matrix via *

    \n \n

    Implements Dune::AssembledLinearOperator< M, X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01856.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01856.html", "unified_diff": "@@ -76,19 +76,19 @@\n
    Dune::AdditiveSchwarzMode Struct Reference
    \n \n
    \n \n

    Tag that the tells the Schwarz method to be additive. \n More...

    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n

    Detailed Description

    \n

    Tag that the tells the Schwarz method to be additive.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01860.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01860.html", "unified_diff": "@@ -76,19 +76,19 @@\n
    Dune::MultiplicativeSchwarzMode Struct Reference
    \n \n
    \n \n

    Tag that tells the Schwarz method to be multiplicative. \n More...

    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n

    Detailed Description

    \n

    Tag that tells the Schwarz method to be multiplicative.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01864.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01864.html", "unified_diff": "@@ -76,19 +76,19 @@\n
    Dune::SymmetricMultiplicativeSchwarzMode Struct Reference
    \n \n
    \n \n

    Tag that tells the Schwarz method to be multiplicative and symmetric. \n More...

    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n

    Detailed Description

    \n

    Tag that tells the Schwarz method to be multiplicative and symmetric.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01868.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01868.html", "unified_diff": "@@ -85,15 +85,15 @@\n
    Template Parameters
    \n \n \n
    MThe type of the matrix.
    \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01872.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01872.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n \n@@ -322,15 +322,15 @@\n \n

    \n Public Types

    typedef std::remove_const< M >::type matrix_type
     The matrix type the preconditioner is for.
     
    typedef X::field_type field_type
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01876.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01876.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::OverlappingAssignerHelper< T, tag > Class Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    \n Inheritance diagram for Dune::OverlappingAssignerHelper< T, tag >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01880.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01880.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::OverlappingAssignerHelper< DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y >, false > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n \n@@ -232,15 +232,15 @@\n \n

    \n Public Types

    typedef BCRSMatrix< K, Al > matrix_type
     
    typedef X::field_type field_type
     
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01884.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01884.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::OverlappingAssignerHelper< S< BCRSMatrix< T, A > >, true > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n \n@@ -257,15 +257,15 @@\n \n

    \n Public Types

    typedef BCRSMatrix< T, A > matrix_type
     
    typedef S< BCRSMatrix< T, A > >::range_type range_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01888.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01888.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n
    Dune::OverlappingAssignerILUBase< M, X, Y > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    \n Inheritance diagram for Dune::OverlappingAssignerILUBase< M, X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -195,15 +195,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01892.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01892.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n
    Dune::OverlappingAssignerHelper< ILU0SubdomainSolver< M, X, Y >, false > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    \n Inheritance diagram for Dune::OverlappingAssignerHelper< ILU0SubdomainSolver< M, X, Y >, false >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -287,15 +287,15 @@\n \n \n \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01896.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01896.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n
    Dune::OverlappingAssignerHelper< ILUNSubdomainSolver< M, X, Y >, false > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    \n Inheritance diagram for Dune::OverlappingAssignerHelper< ILUNSubdomainSolver< M, X, Y >, false >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -287,15 +287,15 @@\n \n \n \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01900.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01900.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::AdditiveAdder< S, T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01904.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01904.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::AdditiveAdder< S, BlockVector< T, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n \n@@ -160,15 +160,15 @@\n \n

    \n Public Types

    typedef A::size_type size_type
     
    typedef std::decay_t< decltype(Impl::asVector(std::declval< T >()))>::field_type field_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01908.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01908.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::MultiplicativeAdder< S, T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01912.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01912.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::MultiplicativeAdder< S, BlockVector< T, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n \n@@ -160,15 +160,15 @@\n \n

    \n Public Types

    typedef A::size_type size_type
     
    typedef std::decay_t< decltype(Impl::asVector(std::declval< T >()))>::field_type field_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01916.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01916.html", "unified_diff": "@@ -76,28 +76,28 @@\n
    Dune::AdderSelector< T, X, S > Struct Template Reference
    \n \n
    \n \n

    template meta program for choosing how to add the correction. \n More...

    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n

    Detailed Description

    \n
    template<typename T, class X, class S>
    \n struct Dune::AdderSelector< T, X, S >

    template meta program for choosing how to add the correction.

    \n

    There are specialization for the additive, the multiplicative, and the symmetric multiplicative mode.

    \n
    Template Parameters
    \n \n \n \n
    TThe Schwarz mode (either AdditiveSchwarzMode or MuliplicativeSchwarzMode or SymmetricMultiplicativeSchwarzMode)
    XThe vector field type
    \n
    \n
    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01920.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01920.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::AdderSelector< AdditiveSchwarzMode, X, S > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n

    \n Public Types

    typedef AdditiveAdder< S, X > Adder
     
    \n

    Member Typedef Documentation

    \n@@ -101,15 +101,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01924.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01924.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::AdderSelector< MultiplicativeSchwarzMode, X, S > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n

    \n Public Types

    typedef MultiplicativeAdder< S, X > Adder
     
    \n

    Member Typedef Documentation

    \n@@ -101,15 +101,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01928.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01928.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::AdderSelector< SymmetricMultiplicativeSchwarzMode, X, S > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n

    \n Public Types

    typedef MultiplicativeAdder< S, X > Adder
     
    \n

    Member Typedef Documentation

    \n@@ -101,15 +101,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01932.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01932.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::IteratorDirectionSelector< T1, T2, forward > Struct Template Reference
    \n \n
    \n \n

    Helper template meta program for application of overlapping Schwarz. \n More...

    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n \n@@ -295,15 +295,15 @@\n \n

    \n Public Types

    typedef T1 solver_vector
     
    typedef solver_vector::iterator solver_iterator
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01936.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01936.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::IteratorDirectionSelector< T1, T2, false > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n \n@@ -280,15 +280,15 @@\n \n

    \n Public Types

    typedef T1 solver_vector
     
    typedef solver_vector::reverse_iterator solver_iterator
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01940.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01940.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SeqOverlappingSchwarzApplier< T > Struct Template Reference
    \n \n
    \n \n

    Helper template meta program for application of overlapping Schwarz. \n More...

    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n \n@@ -182,15 +182,15 @@\n \n

    \n Public Types

    typedef T smoother
     
    typedef smoother::range_type range_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01944.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01944.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::SeqOverlappingSchwarzApplier< SeqOverlappingSchwarz< M, X, SymmetricMultiplicativeSchwarzMode, TD, TA > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n \n@@ -170,15 +170,15 @@\n \n

    \n Public Types

    typedef SeqOverlappingSchwarz< M, X, SymmetricMultiplicativeSchwarzMode, TD, TA > smoother
     
    typedef smoother::range_type range_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01948.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01948.html", "unified_diff": "@@ -78,15 +78,15 @@\n Static Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::SeqOverlappingSchwarzAssemblerHelper< DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y >, false > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n

    \n Public Types

    typedef BCRSMatrix< K, Al > matrix_type
     
    \n \n

    \n@@ -139,15 +139,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01952.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01952.html", "unified_diff": "@@ -78,15 +78,15 @@\n Static Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::SeqOverlappingSchwarzAssemblerHelper< S< BCRSMatrix< T, A > >, true > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n

    \n Public Types

    typedef BCRSMatrix< T, A > matrix_type
     
    \n \n

    \n@@ -139,15 +139,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01956.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01956.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::SeqOverlappingSchwarzAssemblerILUBase< M, X, Y > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    \n Inheritance diagram for Dune::SeqOverlappingSchwarzAssemblerILUBase< M, X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -120,15 +120,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01960.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01960.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::SeqOverlappingSchwarzAssemblerHelper< ILU0SubdomainSolver< M, X, Y >, false > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    \n Inheritance diagram for Dune::SeqOverlappingSchwarzAssemblerHelper< ILU0SubdomainSolver< M, X, Y >, false >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -126,15 +126,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01964.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01964.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::SeqOverlappingSchwarzAssemblerHelper< ILUNSubdomainSolver< M, X, Y >, false > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n
    \n Inheritance diagram for Dune::SeqOverlappingSchwarzAssemblerHelper< ILUNSubdomainSolver< M, X, Y >, false >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -126,15 +126,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01968.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01968.html", "unified_diff": "@@ -73,21 +73,21 @@\n \n \n
    \n
    Dune::SeqOverlappingSchwarzDomainSize< M > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n

    Detailed Description

    \n
    template<class M>
    \n struct Dune::SeqOverlappingSchwarzDomainSize< M >

    template helper struct to determine the size of a domain for the SeqOverlappingSchwarz solver

    \n

    only implemented for BCRSMatrix<T>

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01972.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01972.html", "unified_diff": "@@ -77,15 +77,15 @@\n Static Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::SeqOverlappingSchwarzDomainSize< BCRSMatrix< T, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/overlappingschwarz.hh>

    \n+

    #include <dune/istl/overlappingschwarz.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<class Domain >
    static int size (const Domain &d)
     
    \n@@ -173,15 +173,15 @@\n \n
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01976.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01976.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::OwnerOverlapCopyAttributeSet Struct Reference
    \n \n
    \n \n

    Attribute set for overlapping Schwarz. \n More...

    \n \n-

    #include <dune/istl/owneroverlapcopy.hh>

    \n+

    #include <dune/istl/owneroverlapcopy.hh>

    \n \n \n \n@@ -112,15 +112,15 @@\n \n \n

    \n Public Types

    enum  AttributeSet { owner =1\n , overlap =2\n , copy =3\n }
    overlap 
    copy 
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01980.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01980.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::IndexInfoFromGrid< G, L > Class Template Reference
    \n \n
    \n \n

    Information about the index distribution. \n More...

    \n \n-

    #include <dune/istl/owneroverlapcopy.hh>

    \n+

    #include <dune/istl/owneroverlapcopy.hh>

    \n \n \n \n \n \n \n@@ -358,15 +358,15 @@\n \n

    Get the set of remote indices.

    \n
    Returns
    the set of remote indices.
    \n \n \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01984.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01984.html", "unified_diff": "@@ -82,15 +82,15 @@\n \n \n
    \n \n

    A class setting up standard communication for a two-valued attribute set with owner/overlap/copy semantics. \n More...

    \n \n-

    #include <dune/istl/owneroverlapcopy.hh>

    \n+

    #include <dune/istl/owneroverlapcopy.hh>

    \n

    \n Public Types

    typedef G GlobalIdType
     The type of the global index.
     
    typedef L LocalIdType
    \n \n \n \n \n \n@@ -1400,15 +1400,15 @@\n \n

    Get the underlying remote indices.

    \n
    Returns
    The underlying remote indices.
    \n \n \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01988.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01988.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::OwnerOverlapCopyCommunication< GlobalIdType, LocalIdType >::CopyGatherScatter< T > Struct Template Reference
    \n \n
    \n \n

    gather/scatter callback for communcation \n More...

    \n \n-

    #include <dune/istl/owneroverlapcopy.hh>

    \n+

    #include <dune/istl/owneroverlapcopy.hh>

    \n

    \n Classes

    struct  AddGatherScatter
     
    struct  CopyGatherScatter
     gather/scatter callback for communcation More...
    \n \n \n \n

    \n Public Types

    typedef CommPolicy< T >::IndexedType V
     
    \n \n

    \n@@ -205,15 +205,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01992.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01992.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::OwnerOverlapCopyCommunication< GlobalIdType, LocalIdType >::AddGatherScatter< T > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/owneroverlapcopy.hh>

    \n+

    #include <dune/istl/owneroverlapcopy.hh>

    \n \n \n \n \n

    \n Public Types

    typedef CommPolicy< T >::IndexedType V
     
    \n \n

    \n@@ -198,15 +198,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a01996.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a01996.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::AggregationCriterion< T > Class Template Reference
    \n \n
    \n \n

    Base class of all aggregation criterions. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n
    \n Inheritance diagram for Dune::Amg::AggregationCriterion< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -124,15 +124,15 @@\n  Sets reasonable default values for an aisotropic problem.
    \n  \n \n

    Detailed Description

    \n
    template<class T>
    \n class Dune::Amg::AggregationCriterion< T >

    Base class of all aggregation criterions.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02000.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02000.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::Amg::SymmetricMatrixDependency< M, N > Class Template Reference
    \n
    \n
    \n \n

    Dependency policy for symmetric matrices. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n
    \n Inheritance diagram for Dune::Amg::SymmetricMatrixDependency< M, N >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -284,15 +284,15 @@\n \n \n \n
    MThe type of the matrix
    NThe type of the metric that turns matrix blocks into field values
    \n \n \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02004.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02004.html", "unified_diff": "@@ -82,15 +82,15 @@\n \n \n
    \n \n

    Dependency policy for symmetric matrices. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n
    \n Inheritance diagram for Dune::Amg::Dependency< M, N >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -278,15 +278,15 @@\n  The norm of the current diagonal.
    \n  \n \n

    Detailed Description

    \n
    template<class M, class N>
    \n class Dune::Amg::Dependency< M, N >

    Dependency policy for symmetric matrices.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02008.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02008.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::Amg::SymmetricDependency< M, N > Class Template Reference
    \n
    \n
    \n \n

    Dependency policy for symmetric matrices. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n
    \n Inheritance diagram for Dune::Amg::SymmetricDependency< M, N >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -278,15 +278,15 @@\n  The norm of the current diagonal.
    \n  \n \n

    Detailed Description

    \n
    template<class M, class N>
    \n class Dune::Amg::SymmetricDependency< M, N >

    Dependency policy for symmetric matrices.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02012.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02012.html", "unified_diff": "@@ -80,15 +80,15 @@\n \n
    \n
    \n \n

    Norm that uses only the [N][N] entry of the block to determine couplings. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n
    \n Inheritance diagram for Dune::Amg::Diagonal< N >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -115,15 +115,15 @@\n  Compute the norm of a scalar.
    \n  \n \n

    Detailed Description

    \n
    template<int N>
    \n class Dune::Amg::Diagonal< N >

    Norm that uses only the [N][N] entry of the block to determine couplings.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02016.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02016.html", "unified_diff": "@@ -80,15 +80,15 @@\n \n
    \n
    \n \n

    Norm that uses only the [0][0] entry of the block to determine couplings. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n
    \n Inheritance diagram for Dune::Amg::FirstDiagonal:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -223,15 +223,15 @@\n \n \n \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02020.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02020.html", "unified_diff": "@@ -80,15 +80,15 @@\n \n \n
    \n \n

    Functor using the row sum (infinity) norm to determine strong couplings. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { is_sign_preserving = false\n }
     
    \n@@ -99,15 +99,15 @@\n \n \n
     compute the norm of a matrix.
     
    \n

    Detailed Description

    \n

    Functor using the row sum (infinity) norm to determine strong couplings.

    \n

    The is proposed by several people for elasticity problems.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02024.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02024.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n \n \n
    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { is_sign_preserving = false\n }
     
    \n@@ -93,15 +93,15 @@\n Public Member Functions\n \n \n \n \n
    template<class M >
    FieldTraits< typenameM::field_type >::real_type operator() (const M &m) const
     compute the norm of a matrix.
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02028.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02028.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n \n \n
    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { is_sign_preserving = false\n }
     
    \n@@ -93,15 +93,15 @@\n Public Member Functions\n \n \n \n \n
    template<class M >
    FieldTraits< typenameM::field_type >::real_type operator() (const M &m) const
     compute the norm of a matrix.
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02032.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02032.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::Amg::SymmetricCriterion< M, Norm > Class Template Reference
    \n \n
    \n \n

    Criterion taking advantage of symmetric matrices. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n
    \n Inheritance diagram for Dune::Amg::SymmetricCriterion< M, Norm >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -826,15 +826,15 @@\n
    \n \n

    index of the currently evaluated row.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02036.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02036.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::Amg::UnSymmetricCriterion< M, Norm > Class Template Reference
    \n \n
    \n \n

    Criterion suitable for unsymmetric matrices. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n
    \n Inheritance diagram for Dune::Amg::UnSymmetricCriterion< M, Norm >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -827,15 +827,15 @@\n
    \n \n

    index of the currently evaluated row.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02040.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02040.html", "unified_diff": "@@ -81,15 +81,15 @@\n \n \n
    \n \n

    Class for building the aggregates. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n \n \n \n \n \n \n@@ -112,15 +112,15 @@\n \n \n

    \n Public Types

    typedef G MatrixGraph
     The matrix graph type used.
     
    typedef MatrixGraph::VertexDescriptor Vertex
     Build the aggregates.
     
    \n

    Detailed Description

    \n
    template<class G>
    \n class Dune::Amg::Aggregator< G >

    Class for building the aggregates.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02044.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02044.html", "unified_diff": "@@ -82,15 +82,15 @@\n \n \n
    \n \n

    Class providing information about the mapping of the vertices onto aggregates. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n
    \n Inheritance diagram for Dune::Amg::AggregatesMap< V >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -180,15 +180,15 @@\n  \n \n

    Detailed Description

    \n
    template<class V>
    \n class Dune::Amg::AggregatesMap< V >

    Class providing information about the mapping of the vertices onto aggregates.

    \n

    It is assumed that the vertices are consecutively numbered from 0 to the maximum vertex number.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02048.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02048.html", "unified_diff": "@@ -79,27 +79,27 @@\n
    Dune::Amg::AggregatesMap< V >::DummyEdgeVisitor Class Reference
    \n
    \n
    \n \n

    A Dummy visitor that does nothing for each visited edge. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n \n \n \n \n \n

    \n Public Member Functions

    template<class EdgeIterator >
    void operator() (const EdgeIterator &edge) const
     
    \n

    Detailed Description

    \n
    template<class V>
    \n class Dune::Amg::AggregatesMap< V >::DummyEdgeVisitor

    A Dummy visitor that does nothing for each visited edge.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02052.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02052.html", "unified_diff": "@@ -80,15 +80,15 @@\n \n \n
    \n \n

    A class for temporarily storing the vertices of an aggregate in. \n More...

    \n \n-

    #include <dune/istl/paamg/aggregates.hh>

    \n+

    #include <dune/istl/paamg/aggregates.hh>

    \n
    \n Inheritance diagram for Dune::Amg::Aggregate< G, S >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -153,15 +153,15 @@\n  get an iterator over the vertices of the aggregate.
    \n  \n \n

    Detailed Description

    \n
    template<class G, class S>
    \n class Dune::Amg::Aggregate< G, S >

    A class for temporarily storing the vertices of an aggregate in.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02092.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02092.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::KAMG< M, X, S, PI, K, A > Class Template Reference
    \n
    \n
    \n \n

    an algebraic multigrid method using a Krylov-cycle. \n More...

    \n \n-

    #include <dune/istl/paamg/kamg.hh>

    \n+

    #include <dune/istl/paamg/kamg.hh>

    \n
    \n Inheritance diagram for Dune::Amg::KAMG< M, X, S, PI, K, A >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -481,16 +481,16 @@\n

    Category of the preconditioner (see SolverCategory::Category)

    \n \n

    Implements Dune::Preconditioner< X, X >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following files:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02096.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02096.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::KAmgTwoGrid< AMG > Class Template Referenceabstract
    \n \n
    \n \n

    Two grid operator for AMG with Krylov cycle. \n More...

    \n \n-

    #include <dune/istl/paamg/kamg.hh>

    \n+

    #include <dune/istl/paamg/kamg.hh>

    \n
    \n Inheritance diagram for Dune::Amg::KAmgTwoGrid< AMG >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -675,16 +675,16 @@\n \n \n \n \n
    \n
    \n
    The documentation for this class was generated from the following files:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02100.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02100.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::Amg::AMG< M, X, S, PI, A > Class Template Reference
    \n \n
    \n \n

    Parallel algebraic multigrid based on agglomeration. \n More...

    \n \n-

    #include <dune/istl/paamg/amg.hh>

    \n+

    #include <dune/istl/paamg/amg.hh>

    \n
    \n Inheritance diagram for Dune::Amg::AMG< M, X, S, PI, A >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -267,15 +267,15 @@\n
    \n \n

    The range type of the preconditioner.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02112.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02112.html", "unified_diff": "@@ -79,15 +79,15 @@\n Static Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::Amg::DirectSolverSelector< Matrix, Vector > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/amg.hh>

    \n+

    #include <dune/istl/paamg/amg.hh>

    \n \n \n \n \n \n \n@@ -117,15 +117,15 @@\n Static Public Attributes\n \n \n \n \n

    \n Classes

    struct  Solver
     
    struct  Solver< M, superlu >
     
    static constexpr SolverType solver
     
    static constexpr bool isDirectSolver = solver != none
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02116.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02116.html", "unified_diff": "@@ -77,30 +77,30 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::DirectSolverSelector< Matrix, Vector >::Solver< M, SolverType > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/amg.hh>

    \n+

    #include <dune/istl/paamg/amg.hh>

    \n \n \n \n \n

    \n Public Types

    typedef InverseOperator< Vector, Vector > type
     
    \n \n \n \n \n \n

    \n Static Public Member Functions

    static typecreate (const M &mat, bool verbose, bool reusevector)
     
    static std::string name ()
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02120.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02120.html", "unified_diff": "@@ -77,30 +77,30 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::DirectSolverSelector< Matrix, Vector >::Solver< M, superlu > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/amg.hh>

    \n+

    #include <dune/istl/paamg/amg.hh>

    \n \n \n \n \n

    \n Public Types

    typedef SuperLU< M > type
     
    \n \n \n \n \n \n

    \n Static Public Member Functions

    static typecreate (const M &mat, bool verbose, bool reusevector)
     
    static std::string name ()
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02124.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02124.html", "unified_diff": "@@ -77,15 +77,15 @@\n Classes |\n Public Member Functions |\n List of all members \n
    Dune::AMGCreator Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/amg.hh>

    \n+

    #include <dune/istl/paamg/amg.hh>

    \n \n \n \n \n \n \n@@ -108,15 +108,15 @@\n \n \n \n \n \n

    \n Classes

    struct  isValidBlockType
     
    struct  isValidBlockType< FieldMatrix< T, n, m > >
     
    std::shared_ptr< Dune::Preconditioner< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator() (TL tl, const std::shared_ptr< OP > &op, const Dune::ParameterTree &config, std::enable_if_t< isValidBlockType< typename OP::matrix_type::block_type >::value, int >=0) const
     
    template<typename TL , typename OP >
    std::shared_ptr< Dune::Preconditioner< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator() (TL, const std::shared_ptr< OP > &, const Dune::ParameterTree &, std::enable_if_t<!isValidBlockType< typename OP::matrix_type::block_type >::value, int >=0) const
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02128.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02128.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::AMGCreator::isValidBlockType< class > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/amg.hh>

    \n+

    #include <dune/istl/paamg/amg.hh>

    \n
    \n Inheritance diagram for Dune::AMGCreator::isValidBlockType< class >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02132.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02132.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::AMGCreator::isValidBlockType< FieldMatrix< T, n, m > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/amg.hh>

    \n+

    #include <dune/istl/paamg/amg.hh>

    \n
    \n Inheritance diagram for Dune::AMGCreator::isValidBlockType< FieldMatrix< T, n, m > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02136.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02136.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::Amg::ApplyHelper< i > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/combinedfunctor.hh>

    \n+

    #include <dune/istl/paamg/combinedfunctor.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<class TT , class T >
    static void apply (TT tuple, const T &t)
     
    \n@@ -126,15 +126,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02140.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02140.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::Amg::ApplyHelper< 0 > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/combinedfunctor.hh>

    \n+

    #include <dune/istl/paamg/combinedfunctor.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<class TT , class T >
    static void apply (TT tuple, const T &t)
     
    \n@@ -124,15 +124,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02144.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02144.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::Amg::CombinedFunctor< T > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/combinedfunctor.hh>

    \n+

    #include <dune/istl/paamg/combinedfunctor.hh>

    \n
    \n Inheritance diagram for Dune::Amg::CombinedFunctor< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -157,15 +157,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02148.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02148.html", "unified_diff": "@@ -77,28 +77,28 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ConstructionTraits< BlockVector< T, A > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/construction.hh>

    \n+

    #include <dune/istl/paamg/construction.hh>

    \n \n \n \n \n

    \n Public Types

    typedef const int Arguments
     
    \n \n \n \n

    \n Static Public Member Functions

    static std::shared_ptr< BlockVector< T, A > > construct (Arguments &n)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02152.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02152.html", "unified_diff": "@@ -77,30 +77,30 @@\n Public Member Functions |\n Public Attributes |\n List of all members \n
    Dune::Amg::ParallelOperatorArgs< M, C > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/construction.hh>

    \n+

    #include <dune/istl/paamg/construction.hh>

    \n \n \n \n \n

    \n Public Member Functions

     ParallelOperatorArgs (std::shared_ptr< M > matrix, const C &comm)
     
    \n \n \n \n \n \n

    \n Public Attributes

    std::shared_ptr< M > matrix_
     
    const C & comm_
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02156.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02156.html", "unified_diff": "@@ -77,30 +77,30 @@\n Public Member Functions |\n Public Attributes |\n List of all members \n
    Dune::Amg::OwnerOverlapCopyCommunicationArgs Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/construction.hh>

    \n+

    #include <dune/istl/paamg/construction.hh>

    \n \n \n \n \n

    \n Public Member Functions

     OwnerOverlapCopyCommunicationArgs (MPI_Comm comm, SolverCategory::Category cat)
     
    \n \n \n \n \n \n

    \n Public Attributes

    MPI_Comm comm_
     
    SolverCategory::Category cat_
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02160.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02160.html", "unified_diff": "@@ -77,28 +77,28 @@\n Public Member Functions |\n Public Attributes |\n List of all members \n \n \n
    \n \n-

    #include <dune/istl/paamg/construction.hh>

    \n+

    #include <dune/istl/paamg/construction.hh>

    \n \n \n \n \n

    \n Public Member Functions

     SequentialCommunicationArgs (Communication< void * > comm, int cat)
     
    \n \n \n \n

    \n Public Attributes

    Communication< void * > comm_
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02164.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02164.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::OverlappingSchwarzOperator< M, X, Y, C > Class Template Reference
    \n \n
    \n \n

    An overlapping Schwarz operator. \n More...

    \n \n-

    #include <dune/istl/schwarz.hh>

    \n+

    #include <dune/istl/schwarz.hh>

    \n
    \n Inheritance diagram for Dune::OverlappingSchwarzOperator< M, X, Y, C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -511,16 +511,16 @@\n

    get the sequential assembled linear operator.

    \n \n

    Implements Dune::AssembledLinearOperator< M, X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following files:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02168.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02168.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ConstructionTraits< OverlappingSchwarzOperator< M, X, Y, C > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/construction.hh>

    \n+

    #include <dune/istl/paamg/construction.hh>

    \n \n \n \n \n

    \n Public Types

    typedef ParallelOperatorArgs< M, C > Arguments
     
    \n \n

    \n@@ -136,15 +136,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02172.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02172.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ConstructionTraits< NonoverlappingSchwarzOperator< M, X, Y, C > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/construction.hh>

    \n+

    #include <dune/istl/paamg/construction.hh>

    \n \n \n \n \n

    \n Public Types

    typedef ParallelOperatorArgs< M, C > Arguments
     
    \n \n

    \n@@ -136,15 +136,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02176.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02176.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Member Functions |\n Public Attributes |\n List of all members \n
    Dune::Amg::MatrixAdapterArgs< M, X, Y > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/construction.hh>

    \n+

    #include <dune/istl/paamg/construction.hh>

    \n \n \n \n \n

    \n Public Member Functions

     MatrixAdapterArgs (std::shared_ptr< M > matrix, const SequentialInformation)
     
    \n \n

    \n@@ -146,15 +146,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02180.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02180.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ConstructionTraits< MatrixAdapter< M, X, Y > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/construction.hh>

    \n+

    #include <dune/istl/paamg/construction.hh>

    \n \n \n \n \n

    \n Public Types

    typedef const MatrixAdapterArgs< M, X, Y > Arguments
     
    \n \n

    \n@@ -136,15 +136,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02184.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02184.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ConstructionTraits< SequentialInformation > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/construction.hh>

    \n+

    #include <dune/istl/paamg/construction.hh>

    \n \n \n \n \n

    \n Public Types

    typedef const SequentialCommunicationArgs Arguments
     
    \n \n

    \n@@ -132,15 +132,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02188.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02188.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ConstructionTraits< OwnerOverlapCopyCommunication< T1, T2 > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/construction.hh>

    \n+

    #include <dune/istl/paamg/construction.hh>

    \n \n \n \n \n

    \n Public Types

    typedef const OwnerOverlapCopyCommunicationArgs Arguments
     
    \n \n

    \n@@ -136,15 +136,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02192.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02192.html", "unified_diff": "@@ -80,15 +80,15 @@\n \n \n
    \n \n

    Class representing the properties of an ede in the matrix graph. \n More...

    \n \n-

    #include <dune/istl/paamg/dependency.hh>

    \n+

    #include <dune/istl/paamg/dependency.hh>

    \n \n \n \n@@ -140,15 +140,15 @@\n \n \n

    \n Public Types

    enum  { INFLUENCE\n , DEPEND\n , SIZE\n }
     Prints the attributes of the edge for debugging.
     
    \n

    Detailed Description

    \n

    Class representing the properties of an ede in the matrix graph.

    \n

    During the coarsening process the matrix graph needs to hold different properties of its edges. This class ontains methods for getting and setting these edge attributes.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02196.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02196.html", "unified_diff": "@@ -80,15 +80,15 @@\n \n \n
    \n \n

    Class representing a node in the matrix graph. \n More...

    \n \n-

    #include <dune/istl/paamg/dependency.hh>

    \n+

    #include <dune/istl/paamg/dependency.hh>

    \n \n \n \n \n

    \n Public Types

    enum  {
    \n   ISOLATED\n , VISITED\n , FRONT\n@@ -150,15 +150,15 @@\n
     Reset all flags.
     
    \n

    Detailed Description

    \n

    Class representing a node in the matrix graph.

    \n

    Contains methods for getting and setting node attributes.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02200.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02200.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n
    Dune::Amg::PropertyGraphVertexPropertyMap< G, i > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/dependency.hh>

    \n+

    #include <dune/istl/paamg/dependency.hh>

    \n
    \n Inheritance diagram for Dune::Amg::PropertyGraphVertexPropertyMap< G, i >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -125,15 +125,15 @@\n  Default constructor.
    \n  \n Reference operator[] (const Vertex &vertex) const\n  Get the properties associated to a vertex.
    \n  \n \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02204.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02204.html", "unified_diff": "@@ -76,23 +76,23 @@\n \n
    Dune::PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/dependency.hh>

    \n+

    #include <dune/istl/paamg/dependency.hh>

    \n \n \n \n \n

    \n Public Types

    typedef Amg::PropertyGraphVertexPropertyMap< Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM >, Amg::VertexProperties::VISITEDType
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02208.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02208.html", "unified_diff": "@@ -81,15 +81,15 @@\n \n \n
    \n \n

    A fast (sequential) algebraic multigrid based on agglomeration that saves memory bandwidth. \n More...

    \n \n-

    #include <dune/istl/paamg/fastamg.hh>

    \n+

    #include <dune/istl/paamg/fastamg.hh>

    \n
    \n Inheritance diagram for Dune::Amg::FastAMG< M, X, PI, A >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -253,15 +253,15 @@\n
    \n \n

    The range type of the preconditioner.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02216.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02216.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::Amg::GaussSeidelPresmoothDefect< level > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/fastamgsmoother.hh>

    \n+

    #include <dune/istl/paamg/fastamgsmoother.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<typename M , typename X , typename Y >
    static void apply (const M &A, X &x, Y &d, const Y &b)
     
    \n@@ -138,15 +138,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02220.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02220.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::Amg::GaussSeidelPostsmoothDefect< level > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/fastamgsmoother.hh>

    \n+

    #include <dune/istl/paamg/fastamgsmoother.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<typename M , typename X , typename Y >
    static void apply (const M &A, X &x, Y &d, const Y &b)
     
    \n@@ -138,15 +138,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02224.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02224.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Attributes |\n List of all members \n \n \n
    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n \n \n \n \n \n \n@@ -98,15 +98,15 @@\n \n \n \n \n \n

    \n Public Types

    typedef T Aggregate
     The aggregate descriptor.
     
    typedef T Vertex
     The aggregate the vertex belongs to.
     
    Vertex vertex
     The vertex descriptor.
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02228.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02228.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::Amg::SparsityBuilder< M > Class Template Reference
    \n \n
    \n \n

    Functor for building the sparsity pattern of the matrix using examineConnectivity. \n More...

    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n \n \n \n \n \n \n@@ -103,15 +103,15 @@\n \n \n

    \n Public Member Functions

     SparsityBuilder (M &matrix)
     Constructor.
     
    void insert (const typename M::size_type &index)
    std::size_t index ()
     
    \n

    Detailed Description

    \n
    template<class M>
    \n class Dune::Amg::SparsityBuilder< M >

    Functor for building the sparsity pattern of the matrix using examineConnectivity.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02232.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02232.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n \n \n
    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n
    \n Inheritance diagram for Dune::Amg::BaseGalerkinProduct:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -101,15 +101,15 @@\n  Calculate the galerkin product.
    \n  \n template<class M , class V , class P , class O > \n void calculate (const M &fine, const AggregatesMap< V > &aggregates, M &coarse, const P &pinfo, const O &copy)\n  \n \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02236.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02236.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Types |\n Public Member Functions |\n List of all members
    \n
    Dune::Amg::GalerkinProduct< T > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n
    \n Inheritance diagram for Dune::Amg::GalerkinProduct< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -110,15 +110,15 @@\n  Calculate the galerkin product.
    \n  \n template<class M , class V , class P , class O > \n void calculate (const M &fine, const AggregatesMap< V > &aggregates, M &coarse, const P &pinfo, const O &copy)\n  \n \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02244.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02244.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::Amg::GalerkinProduct< SequentialInformation > Class Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n
    \n Inheritance diagram for Dune::Amg::GalerkinProduct< SequentialInformation >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -103,15 +103,15 @@\n  Calculate the galerkin product.
    \n  \n template<class M , class V , class P , class O > \n void calculate (const M &fine, const AggregatesMap< V > &aggregates, M &coarse, const P &pinfo, const O &copy)\n  \n \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02248.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02248.html", "unified_diff": "@@ -77,15 +77,15 @@\n Classes |\n Static Public Member Functions |\n List of all members
    \n \n \n
    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n
    \n Inheritance diagram for Dune::Amg::BaseConnectivityConstructor:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -108,15 +108,15 @@\n  \n template<class R , class G , class V > \n static void constructNonOverlapConnectivity (R &row, G &graph, V &visitedMap, const AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename G::VertexDescriptor &seed)\n  Construct the connectivity of an aggregate in the overlap.
    \n  \n \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02252.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02252.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::BaseConnectivityConstructor::ConnectedBuilder< G, S, V > Class Template Reference
    \n
    \n
    \n \n

    Visitor for identifying connected aggregates during a breadthFirstSearch. \n More...

    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n \n \n \n \n \n \n@@ -113,15 +113,15 @@\n \n \n

    \n Public Types

    typedef G Graph
     The type of the graph.
     
    typedef Graph::ConstEdgeIterator ConstEdgeIterator
     Process an edge pointing to another aggregate.
     
    \n

    Detailed Description

    \n
    template<class G, class S, class V>
    \n class Dune::Amg::BaseConnectivityConstructor::ConnectedBuilder< G, S, V >

    Visitor for identifying connected aggregates during a breadthFirstSearch.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02256.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02256.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ConnectivityConstructor< G, T > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n
    \n Inheritance diagram for Dune::Amg::ConnectivityConstructor< G, T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -108,15 +108,15 @@\n  \n template<class R , class G , class V > \n static void constructNonOverlapConnectivity (R &row, G &graph, V &visitedMap, const AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename G::VertexDescriptor &seed)\n  Construct the connectivity of an aggregate in the overlap.
    \n  \n \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02260.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02260.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members
    \n
    Dune::Amg::ConnectivityConstructor< G, SequentialInformation > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n
    \n Inheritance diagram for Dune::Amg::ConnectivityConstructor< G, SequentialInformation >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -108,15 +108,15 @@\n  \n template<class R , class G , class V > \n static void constructNonOverlapConnectivity (R &row, G &graph, V &visitedMap, const AggregatesMap< typename G::VertexDescriptor > &aggregates, const typename G::VertexDescriptor &seed)\n  Construct the connectivity of an aggregate in the overlap.
    \n  \n \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02264.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02264.html", "unified_diff": "@@ -76,24 +76,24 @@\n \n
    Dune::Amg::DirichletBoundarySetter< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<class M , class O >
    static void set (M &coarse, const T &pinfo, const O &copy)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02268.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02268.html", "unified_diff": "@@ -76,24 +76,24 @@\n \n
    Dune::Amg::DirichletBoundarySetter< SequentialInformation > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/galerkin.hh>

    \n+

    #include <dune/istl/paamg/galerkin.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<class M , class O >
    static void set (M &coarse, const SequentialInformation &pinfo, const O &copy)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02272.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02272.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n
    Dune::Amg::GlobalAggregatesMap< T, TI > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/globalaggregates.hh>

    \n+

    #include <dune/istl/paamg/globalaggregates.hh>

    \n \n \n \n \n

    \n Classes

    class  Proxy
     
    \n \n \n \n \n \n

    \n@@ -112,15 +112,15 @@\n

     
    Proxy operator[] (std::size_t index)
     
    void put (const GlobalIndex &global, size_t i)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02276.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02276.html", "unified_diff": "@@ -76,25 +76,25 @@\n \n
    Dune::Amg::GlobalAggregatesMap< T, TI >::Proxy Class Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/globalaggregates.hh>

    \n+

    #include <dune/istl/paamg/globalaggregates.hh>

    \n \n \n \n \n \n \n

    \n Public Member Functions

     Proxy (const GlobalLookupIndexSet< ParallelIndexSet > &indexset, Vertex &aggregate)
     
    Proxyoperator= (const GlobalIndex &global)
     
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02280.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02280.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::AggregatesGatherScatter< T, TI > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/globalaggregates.hh>

    \n+

    #include <dune/istl/paamg/globalaggregates.hh>

    \n \n \n \n \n \n \n@@ -94,15 +94,15 @@\n Static Public Member Functions\n \n \n \n \n

    \n Public Types

    typedef TI ParallelIndexSet
     
    typedef ParallelIndexSet::GlobalIndex GlobalIndex
     
    static const GlobalIndexgather (const GlobalAggregatesMap< T, TI > &ga, size_t i)
     
    static void scatter (GlobalAggregatesMap< T, TI > &ga, GlobalIndex global, size_t i)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02284.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02284.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::Amg::AggregatesPublisher< T, O, I > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/globalaggregates.hh>

    \n+

    #include <dune/istl/paamg/globalaggregates.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02288.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02288.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::AggregatesPublisher< T, O, OwnerOverlapCopyCommunication< T1, T2 > > Struct Template Reference
    \n \n
    \n \n

    Utility class for publishing the aggregate number of the DOFs in the overlap to other processors and convert them to local indices. \n More...

    \n \n-

    #include <dune/istl/paamg/globalaggregates.hh>

    \n+

    #include <dune/istl/paamg/globalaggregates.hh>

    \n \n \n \n \n \n \n@@ -113,15 +113,15 @@\n \n \n \n

    \n Public Types

    typedef T Vertex
     
    typedef O OverlapFlags
     
    OThe set of overlap flags.
    T1The type of the global indices.
    T2The type of the local indices.
    \n \n \n

    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02292.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02292.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::AggregatesPublisher< T, O, SequentialInformation > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/globalaggregates.hh>

    \n+

    #include <dune/istl/paamg/globalaggregates.hh>

    \n \n \n \n \n \n \n@@ -94,15 +94,15 @@\n

    \n Public Types

    typedef T Vertex
     
    typedef SequentialInformation ParallelInformation
     
    \n \n \n \n

    \n Static Public Member Functions

    static void publish (AggregatesMap< Vertex > &aggregates, ParallelInformation &pinfo, const GlobalLookupIndexSet &globalLookup)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02296.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02296.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::CommPolicy< Amg::GlobalAggregatesMap< T, TI > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/globalaggregates.hh>

    \n+

    #include <dune/istl/paamg/globalaggregates.hh>

    \n \n \n \n \n \n \n@@ -94,15 +94,15 @@\n

    \n Public Types

    typedef Amg::AggregatesMap< T > Type
     
    typedef Amg::GlobalAggregatesMap< T, TI >::IndexedType IndexedType
     
    \n \n \n \n

    \n Static Public Member Functions

    static int getSize (const Type &, int)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02300.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02300.html", "unified_diff": "@@ -81,15 +81,15 @@\n \n \n
    \n \n

    The (undirected) graph of a matrix. \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n
    \n Inheritance diagram for Dune::Amg::MatrixGraph< M >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -780,15 +780,15 @@\n
    \n \n

    Get the number of vertices in the graph.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02304.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02304.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C > Class Template Reference
    \n \n
    \n \n

    Iterator over all edges starting from a vertex. \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n \n \n \n \n \n@@ -625,15 +625,15 @@\n
    \n \n

    Access the edge weight.

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02308.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02308.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::MatrixGraph< M >::VertexIteratorT< C > Class Template Reference
    \n \n
    \n \n

    The vertex iterator type of the graph. \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n

    \n Public Types

    enum  { isMutable = std::is_same<C, MutableContainer>::value\n }
     
    typedef std::remove_const< C >::type MutableContainer
    \n \n \n \n \n@@ -547,15 +547,15 @@\n
    \n \n

    Access the weight of the vertex.

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02312.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02312.html", "unified_diff": "@@ -81,15 +81,15 @@\n \n \n
    \n \n

    A subgraph of a graph. \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n
    \n Inheritance diagram for Dune::Amg::SubGraph< G, T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -564,15 +564,15 @@\n
    \n \n

    Get the number of vertices in the graph.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02316.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02316.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::SubGraph< G, T >::EdgeIndexMap Class Reference
    \n \n
    \n \n

    An index map for mapping the edges to indices. \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n

    \n Public Types

    enum  { isMutable = std::is_same<C, MutableContainer>::value\n }
     
    typedef std::remove_const< C >::type MutableContainer
    \n \n \n \n

    \n Public Types

    typedef ReadablePropertyMapTag Category
     
    \n \n

    \n@@ -207,15 +207,15 @@\n

    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02320.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02320.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::Amg::SubGraph< G, T >::EdgeIterator Class Reference
    \n \n
    \n \n

    The edge iterator of the graph. \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n
    \n Inheritance diagram for Dune::Amg::SubGraph< G, T >::EdgeIterator:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -378,15 +378,15 @@\n
    \n \n

    The index of the target vertex of the current edge.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02324.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02324.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::Amg::SubGraph< G, T >::VertexIterator Class Reference
    \n \n
    \n \n

    The vertex iterator of the graph. \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n
    \n Inheritance diagram for Dune::Amg::SubGraph< G, T >::VertexIterator:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -320,15 +320,15 @@\n
    \n \n

    Preincrement operator.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02328.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02328.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::Amg::VertexPropertiesGraph< G, VP, VM > Class Template Reference
    \n \n
    \n \n

    Attaches properties to the vertices of a graph. \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n \n \n \n \n

    \n Classes

    class  VertexIteratorT
     
    \n \n \n \n \n \n

    \n@@ -700,15 +700,15 @@\n
    \n \n

    Get the number of vertices in the graph.

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02332.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02332.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n
    Dune::Amg::VertexPropertiesGraph< G, VP, VM >::VertexIteratorT< C > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n
    \n Inheritance diagram for Dune::Amg::VertexPropertiesGraph< G, VP, VM >::VertexIteratorT< C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -354,15 +354,15 @@\n
    \n \n

    Get the properties of the current Vertex.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02336.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02336.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM > Class Template Reference
    \n \n
    \n \n

    Attaches properties to the edges and vertices of a graph. \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n \n \n \n \n \n \n@@ -954,15 +954,15 @@\n
    \n \n

    Get the number of vertices in the graph.

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02340.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02340.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members\n
    Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM >::EdgeIteratorT< C > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n
    \n Inheritance diagram for Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM >::EdgeIteratorT< C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -277,15 +277,15 @@\n
    \n \n

    Get the properties of the current edge.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02344.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02344.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members\n
    Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM >::VertexIteratorT< C > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n
    \n Inheritance diagram for Dune::Amg::PropertiesGraph< G, VP, EP, VM, EM >::VertexIteratorT< C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -331,15 +331,15 @@\n
    \n \n

    Get the properties of the current Vertex.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02348.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02348.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::GraphVertexPropertiesSelector< G > Class Template Reference
    \n \n
    \n \n

    Wrapper to access the internal edge properties of a graph via operator[]() \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n

    \n Classes

    class  EdgeIteratorT
     
    class  VertexIteratorT
     
    \n \n \n \n \n \n@@ -268,15 +268,15 @@\n

    \n Public Types

    typedef G Graph
     The type of the graph with internal properties.
     
    typedef G::VertexProperties VertexProperties
    \n \n \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02352.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02352.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::GraphEdgePropertiesSelector< G > Class Template Reference
    \n \n
    \n \n

    Wrapper to access the internal vertex properties of a graph via operator[]() \n More...

    \n \n-

    #include <dune/istl/paamg/graph.hh>

    \n+

    #include <dune/istl/paamg/graph.hh>

    \n \n \n \n \n \n \n@@ -268,15 +268,15 @@\n

    \n Public Types

    typedef G Graph
     The type of the graph with internal properties.
     
    typedef G::EdgeProperties EdgeProperties
    \n \n \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02356.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02356.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::PropertiesGraphCreator< M, PI > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/graphcreator.hh>

    \n+

    #include <dune/istl/paamg/graphcreator.hh>

    \n \n \n \n \n \n \n@@ -263,15 +263,15 @@\n \n

    \n Public Types

    typedef M::matrix_type Matrix
     
    typedef Dune::Amg::MatrixGraph< const MatrixMatrixGraph
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02360.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02360.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::PropertiesGraphCreator< M, SequentialInformation > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/graphcreator.hh>

    \n+

    #include <dune/istl/paamg/graphcreator.hh>

    \n \n \n \n \n \n \n@@ -245,15 +245,15 @@\n \n

    \n Public Types

    typedef M::matrix_type Matrix
     
    typedef Dune::Amg::MatrixGraph< const MatrixMatrixGraph
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02364.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02364.html", "unified_diff": "@@ -81,15 +81,15 @@\n \n \n
    \n \n

    A hierarchy of containers (e.g. matrices or vectors) \n More...

    \n \n-

    #include <dune/istl/paamg/hierarchy.hh>

    \n+

    #include <dune/istl/paamg/hierarchy.hh>

    \n
    \n Inheritance diagram for Dune::Amg::Hierarchy< T, A >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -289,15 +289,15 @@\n
    \n \n

    Construct an empty hierarchy.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02368.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02368.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::Amg::Hierarchy< T, A >::LevelIterator< C, T1 > Class Template Reference
    \n \n
    \n \n

    Iterator over the levels in the hierarchy. \n More...

    \n \n-

    #include <dune/istl/paamg/hierarchy.hh>

    \n+

    #include <dune/istl/paamg/hierarchy.hh>

    \n
    \n Inheritance diagram for Dune::Amg::Hierarchy< T, A >::LevelIterator< C, T1 >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -543,15 +543,15 @@\n \n

    Check whether there was a redistribution at the current level.

    \n
    Returns
    True if there is a redistributed version of the container at the current level.
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02376.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02376.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::Amg::IndicesCoarsener< T, E > Class Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/indicescoarsener.hh>

    \n+

    #include <dune/istl/paamg/indicescoarsener.hh>

    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02380.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02380.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ParallelIndicesCoarsener< T, E > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/indicescoarsener.hh>

    \n+

    #include <dune/istl/paamg/indicescoarsener.hh>

    \n
    \n Inheritance diagram for Dune::Amg::ParallelIndicesCoarsener< T, E >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -123,15 +123,15 @@\n Static Public Member Functions

    template<typename Graph , typename VM >
    static Graph::VertexDescriptor coarsen (ParallelInformation &fineInfo, Graph &fineGraph, VM &visitedMap, AggregatesMap< typename Graph::VertexDescriptor > &aggregates, ParallelInformation &coarseInfo, typename Graph::VertexDescriptor noAggregates)
     Build the coarse index set after the aggregatio.
     
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02388.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02388.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::IndicesCoarsener< OwnerOverlapCopyCommunication< G, L >, E > Class Template Reference
    \n \n
    \n \n

    Coarsen Indices in the parallel case. \n More...

    \n \n-

    #include <dune/istl/paamg/indicescoarsener.hh>

    \n+

    #include <dune/istl/paamg/indicescoarsener.hh>

    \n
    \n Inheritance diagram for Dune::Amg::IndicesCoarsener< OwnerOverlapCopyCommunication< G, L >, E >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -368,15 +368,15 @@\n \n \n
    Returns
    The number of unknowns on the coarse level.
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02392.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02392.html", "unified_diff": "@@ -79,28 +79,28 @@\n
    Dune::Amg::IndicesCoarsener< SequentialInformation, E > Class Template Reference
    \n \n
    \n \n

    Coarsen Indices in the sequential case. \n More...

    \n \n-

    #include <dune/istl/paamg/indicescoarsener.hh>

    \n+

    #include <dune/istl/paamg/indicescoarsener.hh>

    \n \n \n \n \n \n

    \n Static Public Member Functions

    template<typename Graph , typename VM >
    static Graph::VertexDescriptor coarsen (const SequentialInformation &fineInfo, Graph &fineGraph, VM &visitedMap, AggregatesMap< typename Graph::VertexDescriptor > &aggregates, SequentialInformation &coarseInfo, typename Graph::VertexDescriptor noAggregates)
     
    \n

    Detailed Description

    \n
    template<typename E>
    \n class Dune::Amg::IndicesCoarsener< SequentialInformation, E >

    Coarsen Indices in the sequential case.

    \n

    Nothing to be coarsened here. Just renumber the aggregates consecutively

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02396.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02396.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::Amg::MatrixHierarchy< M, PI, A > Class Template Reference
    \n \n
    \n \n

    The hierarchies build by the coarsening process. \n More...

    \n \n-

    #include <dune/istl/paamg/matrixhierarchy.hh>

    \n+

    #include <dune/istl/paamg/matrixhierarchy.hh>

    \n \n \n \n \n \n \n@@ -424,15 +424,15 @@\n \n

    \n Public Types

    typedef M MatrixOperator
     The type of the matrix operator.
     
    typedef MatrixOperator::matrix_type Matrix
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02408.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02408.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Member Functions |\n Public Attributes |\n List of all members \n
    Dune::Amg::MatrixHierarchy< M, PI, A >::MatrixStats< Matrix, true >::calc Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/matrixhierarchy.hh>

    \n+

    #include <dune/istl/paamg/matrixhierarchy.hh>

    \n \n \n \n \n \n \n@@ -257,15 +257,15 @@\n \n

    \n Public Types

    typedef Matrix::size_type size_type
     
    typedef Matrix::row_type matrix_row
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02412.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02412.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::CoarsenCriterion< T > Class Template Reference
    \n \n
    \n \n

    The criterion describing the stop criteria for the coarsening process. \n More...

    \n \n-

    #include <dune/istl/paamg/matrixhierarchy.hh>

    \n+

    #include <dune/istl/paamg/matrixhierarchy.hh>

    \n
    \n Inheritance diagram for Dune::Amg::CoarsenCriterion< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -226,15 +226,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02416.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02416.html", "unified_diff": "@@ -79,15 +79,15 @@\n \n \n
    \n \n

    Parameters needed to check whether a node depends on another. \n More...

    \n \n-

    #include <dune/istl/paamg/parameters.hh>

    \n+

    #include <dune/istl/paamg/parameters.hh>

    \n
    \n Inheritance diagram for Dune::Amg::DependencyParameters:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -136,15 +136,15 @@\n double alpha () const\n  Get the scaling value for marking connections as strong. Default value is 1/3.
    \n  \n \n

    Detailed Description

    \n

    Parameters needed to check whether a node depends on another.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02420.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02420.html", "unified_diff": "@@ -79,15 +79,15 @@\n \n
    \n
    \n \n

    Parameters needed for the aggregation process. \n More...

    \n \n-

    #include <dune/istl/paamg/parameters.hh>

    \n+

    #include <dune/istl/paamg/parameters.hh>

    \n
    \n Inheritance diagram for Dune::Amg::AggregationParameters:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -172,15 +172,15 @@\n double alpha () const\n  Get the scaling value for marking connections as strong. Default value is 1/3.
    \n  \n \n

    Detailed Description

    \n

    Parameters needed for the aggregation process.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02424.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02424.html", "unified_diff": "@@ -79,15 +79,15 @@\n \n
    \n
    \n \n

    Parameters for the complete coarsening process. \n More...

    \n \n-

    #include <dune/istl/paamg/parameters.hh>

    \n+

    #include <dune/istl/paamg/parameters.hh>

    \n
    \n Inheritance diagram for Dune::Amg::CoarseningParameters:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -204,15 +204,15 @@\n double alpha () const\n  Get the scaling value for marking connections as strong. Default value is 1/3.
    \n  \n \n

    Detailed Description

    \n

    Parameters for the complete coarsening process.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02428.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02428.html", "unified_diff": "@@ -79,15 +79,15 @@\n \n
    \n
    \n \n

    All parameters for AMG. \n More...

    \n \n-

    #include <dune/istl/paamg/parameters.hh>

    \n+

    #include <dune/istl/paamg/parameters.hh>

    \n
    \n Inheritance diagram for Dune::Amg::Parameters:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -235,15 +235,15 @@\n  Get the scaling value for marking connections as strong. Default value is 1/3.
    \n  \n \n

    Detailed Description

    \n

    All parameters for AMG.

    \n

    Instances of this class can be provided to CoarsenCriterion via its constructor.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02432.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02432.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members
    \n
    Dune::Amg::SequentialInformation Class Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/pinfo.hh>

    \n+

    #include <dune/istl/paamg/pinfo.hh>

    \n \n \n \n \n \n \n@@ -583,15 +583,15 @@\n \n

    \n Public Types

    typedef Communication< void * > MPICommunicator
     
    typedef EmptySet< int > CopyFlags
     
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02436.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02436.html", "unified_diff": "@@ -76,19 +76,19 @@\n \n \n
    \n \n

    Tag idnetifying the visited property of a vertex. \n More...

    \n \n-

    #include <dune/istl/paamg/properties.hh>

    \n+

    #include <dune/istl/paamg/properties.hh>

    \n

    Detailed Description

    \n

    Tag idnetifying the visited property of a vertex.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02440.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02440.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::RandomAccessBundledPropertyMap< C, K, i, T, R > Class Template Reference
    \n \n
    \n \n

    A property map that extracts one property out of a bundle using operator[]() \n More...

    \n \n-

    #include <dune/istl/paamg/properties.hh>

    \n+

    #include <dune/istl/paamg/properties.hh>

    \n
    \n Inheritance diagram for Dune::Amg::RandomAccessBundledPropertyMap< C, K, i, T, R >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -127,15 +127,15 @@\n  \n \n

    Detailed Description

    \n
    template<typename C, typename K, std::size_t i, typename T = typename C::ValueType, typename R = typename C::Reference>
    \n class Dune::Amg::RandomAccessBundledPropertyMap< C, K, i, T, R >

    A property map that extracts one property out of a bundle using operator[]()

    \n

    Using this access class properties can be stored in std::bitset.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02444.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02444.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Member Functions |\n Protected Attributes |\n List of all members
    \n
    Dune::Amg::AggregateRenumberer< G > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/renumberer.hh>

    \n+

    #include <dune/istl/paamg/renumberer.hh>

    \n \n \n \n \n \n

    \n Public Types

    typedef G::VertexDescriptor Vertex
     The vertex type.
     
    \n@@ -265,15 +265,15 @@\n \n
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02448.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02448.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::Amg::DefaultSmootherArgs< T > Struct Template Reference
    \n \n
    \n \n

    The default class for the smoother arguments. \n More...

    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n
    \n Inheritance diagram for Dune::Amg::DefaultSmootherArgs< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -118,15 +118,15 @@\n  The relaxation factor to use.
    \n  \n \n

    Detailed Description

    \n
    template<class T>
    \n struct Dune::Amg::DefaultSmootherArgs< T >

    The default class for the smoother arguments.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02452.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02452.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::Amg::SmootherTraits< T > Struct Template Reference
    \n
    \n
    \n \n

    Traits class for getting the attribute class of a smoother. \n More...

    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n
    \n Inheritance diagram for Dune::Amg::SmootherTraits< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -106,15 +106,15 @@\n typedef DefaultSmootherArgs< typename T::matrix_type::field_type > Arguments\n  \n \n

    Detailed Description

    \n
    template<class T>
    \n struct Dune::Amg::SmootherTraits< T >

    Traits class for getting the attribute class of a smoother.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02456.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02456.html", "unified_diff": "@@ -76,23 +76,23 @@\n \n
    Dune::Amg::SmootherTraits< Richardson< X, Y > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n

    \n Public Types

    typedef DefaultSmootherArgs< typename X::field_type > Arguments
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02460.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02460.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::Amg::SmootherTraits< BlockPreconditioner< X, Y, C, T > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n
    \n Inheritance diagram for Dune::Amg::SmootherTraits< BlockPreconditioner< X, Y, C, T > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -94,15 +94,15 @@\n \n \n \n \n

    \n Public Types

    typedef DefaultSmootherArgs< typename T::matrix_type::field_type > Arguments
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02464.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02464.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::Amg::SmootherTraits< NonoverlappingBlockPreconditioner< C, T > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n
    \n Inheritance diagram for Dune::Amg::SmootherTraits< NonoverlappingBlockPreconditioner< C, T > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -94,15 +94,15 @@\n \n \n \n \n

    \n Public Types

    typedef DefaultSmootherArgs< typename T::matrix_type::field_type > Arguments
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02468.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02468.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::DefaultConstructionArgs< T > Class Template Reference
    \n
    \n
    \n \n

    Construction Arguments for the default smoothers. \n More...

    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n
    \n Inheritance diagram for Dune::Amg::DefaultConstructionArgs< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -131,15 +131,15 @@\n const Matrix * matrix_\n  \n \n

    Detailed Description

    \n
    template<class T>
    \n class Dune::Amg::DefaultConstructionArgs< T >

    Construction Arguments for the default smoothers.

    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02472.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02472.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Member Functions |\n Protected Attributes |\n List of all members
    \n
    Dune::Amg::ConstructionArgs< T > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n
    \n Inheritance diagram for Dune::Amg::ConstructionArgs< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -115,15 +115,15 @@\n \n \n \n \n

    \n Protected Attributes

    const Matrix * matrix_
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02476.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02476.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Member Functions |\n Protected Attributes |\n List of all members
    \n
    Dune::Amg::DefaultParallelConstructionArgs< T, C > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n
    \n Inheritance diagram for Dune::Amg::DefaultParallelConstructionArgs< T, C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -121,15 +121,15 @@\n \n \n \n \n

    \n Protected Attributes

    const Matrix * matrix_
     
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02480.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02480.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::Amg::DefaultConstructionArgs< Richardson< X, Y > > Class Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n \n \n@@ -96,15 +96,15 @@\n \n \n \n \n \n

    \n Public Member Functions

    virtual ~DefaultConstructionArgs ()
     
    template<class... Args>
    void setMatrix (const Args &...)
     
    const SequentialInformationgetComm ()
     
    const SmootherArgs getArgs () const
     
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02484.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02484.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::ConstructionTraits< SeqSSOR< M, X, Y, l > > Struct Template Reference
    \n \n
    \n \n

    Policy for the construction of the SeqSSOR smoother. \n More...

    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n

    \n Public Types

    typedef DefaultConstructionArgs< SeqSSOR< M, X, Y, l > > Arguments
     
    \n \n \n

    \n@@ -96,15 +96,15 @@\n

    static std::shared_ptr< SeqSSOR< M, X, Y, l > > construct (Arguments &args)
     
    \n

    Detailed Description

    \n
    template<class M, class X, class Y, int l>
    \n struct Dune::Amg::ConstructionTraits< SeqSSOR< M, X, Y, l > >

    Policy for the construction of the SeqSSOR smoother.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02488.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02488.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::ConstructionTraits< SeqSOR< M, X, Y, l > > Struct Template Reference
    \n \n
    \n \n

    Policy for the construction of the SeqSOR smoother. \n More...

    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n

    \n Public Types

    typedef DefaultConstructionArgs< SeqSOR< M, X, Y, l > > Arguments
     
    \n \n \n

    \n@@ -96,15 +96,15 @@\n

    static std::shared_ptr< SeqSOR< M, X, Y, l > > construct (Arguments &args)
     
    \n

    Detailed Description

    \n
    template<class M, class X, class Y, int l>
    \n struct Dune::Amg::ConstructionTraits< SeqSOR< M, X, Y, l > >

    Policy for the construction of the SeqSOR smoother.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02492.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02492.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::ConstructionTraits< SeqJac< M, X, Y, l > > Struct Template Reference
    \n \n
    \n \n

    Policy for the construction of the SeqJac smoother. \n More...

    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n

    \n Public Types

    typedef DefaultConstructionArgs< SeqJac< M, X, Y, l > > Arguments
     
    \n \n \n

    \n@@ -96,15 +96,15 @@\n

    static std::shared_ptr< SeqJac< M, X, Y, l > > construct (Arguments &args)
     
    \n

    Detailed Description

    \n
    template<class M, class X, class Y, int l>
    \n struct Dune::Amg::ConstructionTraits< SeqJac< M, X, Y, l > >

    Policy for the construction of the SeqJac smoother.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02496.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02496.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::ConstructionTraits< Richardson< X, Y > > Struct Template Reference
    \n \n
    \n \n

    Policy for the construction of the Richardson smoother. \n More...

    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n

    \n Public Types

    typedef DefaultConstructionArgs< Richardson< X, Y > > Arguments
     
    \n \n \n

    \n@@ -96,15 +96,15 @@\n

    static std::shared_ptr< Richardson< X, Y > > construct (Arguments &args)
     
    \n

    Detailed Description

    \n
    template<class X, class Y>
    \n struct Dune::Amg::ConstructionTraits< Richardson< X, Y > >

    Policy for the construction of the Richardson smoother.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02500.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02500.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Member Functions |\n Protected Attributes |\n List of all members \n
    Dune::Amg::ConstructionArgs< SeqILU< M, X, Y > > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n
    \n Inheritance diagram for Dune::Amg::ConstructionArgs< SeqILU< M, X, Y > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -333,15 +333,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02504.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02504.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::ConstructionTraits< SeqILU< M, X, Y > > Struct Template Reference
    \n \n
    \n \n

    Policy for the construction of the SeqILU smoother. \n More...

    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n

    \n Public Types

    typedef ConstructionArgs< SeqILU< M, X, Y > > Arguments
     
    \n \n \n

    \n@@ -96,15 +96,15 @@\n

    static std::shared_ptr< SeqILU< M, X, Y > > construct (Arguments &args)
     
    \n

    Detailed Description

    \n
    template<class M, class X, class Y>
    \n struct Dune::Amg::ConstructionTraits< SeqILU< M, X, Y > >

    Policy for the construction of the SeqILU smoother.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02508.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02508.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::ConstructionTraits< ParSSOR< M, X, Y, C > > Struct Template Reference
    \n \n
    \n \n

    Policy for the construction of the ParSSOR smoother. \n More...

    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n

    \n Public Types

    typedef DefaultParallelConstructionArgs< M, C > Arguments
     
    \n \n \n

    \n@@ -96,15 +96,15 @@\n

    static std::shared_ptr< ParSSOR< M, X, Y, C > > construct (Arguments &args)
     
    \n

    Detailed Description

    \n
    template<class M, class X, class Y, class C>
    \n struct Dune::Amg::ConstructionTraits< ParSSOR< M, X, Y, C > >

    Policy for the construction of the ParSSOR smoother.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02512.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02512.html", "unified_diff": "@@ -77,30 +77,30 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ConstructionTraits< BlockPreconditioner< X, Y, C, T > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n \n \n

    \n Public Types

    typedef DefaultParallelConstructionArgs< T, C > Arguments
     
    typedef ConstructionTraits< T > SeqConstructionTraits
     
    \n \n \n \n

    \n Static Public Member Functions

    static std::shared_ptr< BlockPreconditioner< X, Y, C, T > > construct (Arguments &args)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02516.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02516.html", "unified_diff": "@@ -77,30 +77,30 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ConstructionTraits< NonoverlappingBlockPreconditioner< C, T > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n \n \n

    \n Public Types

    typedef DefaultParallelConstructionArgs< T, C > Arguments
     
    typedef ConstructionTraits< T > SeqConstructionTraits
     
    \n \n \n \n

    \n Static Public Member Functions

    static std::shared_ptr< NonoverlappingBlockPreconditioner< C, T > > construct (Arguments &args)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02520.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02520.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Amg::SmootherApplier< T > Struct Template Reference
    \n \n
    \n \n

    Helper class for applying the smoothers. \n More...

    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n \n \n@@ -106,15 +106,15 @@\n

    \n Public Types

    typedef T Smoother
     
    typedef Smoother::range_type Range
     
    \n

    Detailed Description

    \n
    template<class T>
    \n struct Dune::Amg::SmootherApplier< T >

    Helper class for applying the smoothers.

    \n

    The goal of this class is to get a symmetric AMG method whenever possible.

    \n

    The specializations for SOR and SeqOverlappingSchwarz in MultiplicativeSchwarzMode will apply the smoother forward when pre and backward when post smoothing.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02524.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02524.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::SmootherApplier< SeqSOR< M, X, Y, l > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n \n \n@@ -96,15 +96,15 @@\n Static Public Member Functions\n \n \n \n \n

    \n Public Types

    typedef SeqSOR< M, X, Y, l > Smoother
     
    typedef Smoother::range_type Range
     
    static void preSmooth (Smoother &smoother, Domain &v, Range &d)
     
    static void postSmooth (Smoother &smoother, Domain &v, Range &d)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02528.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02528.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::SmootherApplier< BlockPreconditioner< X, Y, C, SeqSOR< M, X, Y, l > > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n \n \n@@ -96,15 +96,15 @@\n Static Public Member Functions\n \n \n \n \n

    \n Public Types

    typedef BlockPreconditioner< X, Y, C, SeqSOR< M, X, Y, l > > Smoother
     
    typedef Smoother::range_type Range
     
    static void preSmooth (Smoother &smoother, Domain &v, Range &d)
     
    static void postSmooth (Smoother &smoother, Domain &v, Range &d)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02532.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02532.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::SmootherApplier< NonoverlappingBlockPreconditioner< C, SeqSOR< M, X, Y, l > > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n \n \n@@ -96,15 +96,15 @@\n Static Public Member Functions\n \n \n \n \n

    \n Public Types

    typedef NonoverlappingBlockPreconditioner< C, SeqSOR< M, X, Y, l > > Smoother
     
    typedef Smoother::range_type Range
     
    static void preSmooth (Smoother &smoother, Domain &v, Range &d)
     
    static void postSmooth (Smoother &smoother, Domain &v, Range &d)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02536.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02536.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::SmootherApplier< SeqOverlappingSchwarz< M, X, MultiplicativeSchwarzMode, MS, TA > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n \n \n@@ -96,15 +96,15 @@\n Static Public Member Functions\n \n \n \n \n

    \n Public Types

    typedef SeqOverlappingSchwarz< M, X, MultiplicativeSchwarzMode, MS, TA > Smoother
     
    typedef Smoother::range_type Range
     
    static void preSmooth (Smoother &smoother, Domain &v, const Range &d)
     
    static void postSmooth (Smoother &smoother, Domain &v, const Range &d)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02540.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02540.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Member Functions |\n Public Attributes |\n List of all members \n
    Dune::Amg::SeqOverlappingSchwarzSmootherArgs< T > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n
    \n Inheritance diagram for Dune::Amg::SeqOverlappingSchwarzSmootherArgs< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -121,15 +121,15 @@\n  The numbe of iterations to perform.
    \n  \n RelaxationFactor relaxationFactor\n  The relaxation factor to use.
    \n  \n \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02544.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02544.html", "unified_diff": "@@ -76,23 +76,23 @@\n \n
    Dune::Amg::SmootherTraits< SeqOverlappingSchwarz< M, X, TM, TS, TA > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n

    \n Public Types

    typedef SeqOverlappingSchwarzSmootherArgs< typename M::field_type > Arguments
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02548.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02548.html", "unified_diff": "@@ -79,15 +79,15 @@\n Public Member Functions |\n Protected Attributes |\n List of all members \n
    Dune::Amg::ConstructionArgs< SeqOverlappingSchwarz< M, X, TM, TS, TA > > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n
    \n Inheritance diagram for Dune::Amg::ConstructionArgs< SeqOverlappingSchwarz< M, X, TM, TS, TA > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -348,15 +348,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02564.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02564.html", "unified_diff": "@@ -77,28 +77,28 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::ConstructionTraits< SeqOverlappingSchwarz< M, X, TM, TS, TA > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/smoother.hh>

    \n+

    #include <dune/istl/paamg/smoother.hh>

    \n \n \n \n \n

    \n Public Types

    typedef ConstructionArgs< SeqOverlappingSchwarz< M, X, TM, TS, TA > > Arguments
     
    \n \n \n \n

    \n Static Public Member Functions

    static std::shared_ptr< SeqOverlappingSchwarz< M, X, TM, TS, TA > > construct (Arguments &args)
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02568.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02568.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::Transfer< V1, V2, T > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/transfer.hh>

    \n+

    #include <dune/istl/paamg/transfer.hh>

    \n \n \n \n \n \n \n@@ -298,15 +298,15 @@\n \n

    \n Public Types

    typedef V1 Vertex
     
    typedef V2 Vector
     
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02572.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02572.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Member Functions |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::Transfer< V, V1, SequentialInformation > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/transfer.hh>

    \n+

    #include <dune/istl/paamg/transfer.hh>

    \n \n \n \n \n \n \n@@ -288,15 +288,15 @@\n \n

    \n Public Types

    typedef V Vertex
     
    typedef V1 Vector
     
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02576.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02576.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Member Functions |\n List of all members \n
    Dune::Amg::Transfer< V, V1, OwnerOverlapCopyCommunication< T1, T2 > > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/paamg/transfer.hh>

    \n+

    #include <dune/istl/paamg/transfer.hh>

    \n \n \n \n \n \n \n@@ -149,15 +149,15 @@\n \n

    \n Public Types

    typedef V Vertex
     
    typedef V1 Vector
     
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02580.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02580.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::Amg::LevelTransferPolicy< FO, CO > Class Template Referenceabstract
    \n \n
    \n \n

    Abstract base class for transfer between levels and creation of the coarse level system. \n More...

    \n \n-

    #include <dune/istl/paamg/twolevelmethod.hh>

    \n+

    #include <dune/istl/paamg/twolevelmethod.hh>

    \n
    \n Inheritance diagram for Dune::Amg::LevelTransferPolicy< FO, CO >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -620,15 +620,15 @@\n
    \n \n

    The coarse level rhs.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02584.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02584.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::Amg::AggregationLevelTransferPolicy< O, C > Class Template Referenceabstract
    \n \n
    \n \n

    A LeveTransferPolicy that used aggregation to construct the coarse level system. \n More...

    \n \n-

    #include <dune/istl/paamg/twolevelmethod.hh>

    \n+

    #include <dune/istl/paamg/twolevelmethod.hh>

    \n
    \n Inheritance diagram for Dune::Amg::AggregationLevelTransferPolicy< O, C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -722,15 +722,15 @@\n
    \n \n

    The coarse level rhs.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02588.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02588.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::Amg::OneStepAMGCoarseSolverPolicy< O, S, C > Class Template Reference
    \n \n
    \n \n

    A policy class for solving the coarse level system using one step of AMG. \n More...

    \n \n-

    #include <dune/istl/paamg/twolevelmethod.hh>

    \n+

    #include <dune/istl/paamg/twolevelmethod.hh>

    \n \n \n \n \n \n \n@@ -383,15 +383,15 @@\n

    \n Public Types

    typedef O Operator
     The type of the linear operator used.
     
    typedef O::range_type X
    \n \n \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02596.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02596.html", "unified_diff": "@@ -78,15 +78,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n
    Dune::Amg::TwoLevelMethod< FO, CSP, S > Class Template Referenceabstract
    \n \n
    \n \n-

    #include <dune/istl/paamg/twolevelmethod.hh>

    \n+

    #include <dune/istl/paamg/twolevelmethod.hh>

    \n
    \n Inheritance diagram for Dune::Amg::TwoLevelMethod< FO, CSP, S >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -812,15 +812,15 @@\n \n \n \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02604.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02604.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Preconditioner< X, Y > Class Template Referenceabstract
    \n \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02608.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02608.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::InverseOperator2Preconditioner< O, c > Class Template Reference
    \n \n
    \n \n

    Turns an InverseOperator into a Preconditioner. \n More...

    \n \n-

    #include <dune/istl/preconditioners.hh>

    \n+

    #include <dune/istl/preconditioners.hh>

    \n
    \n Inheritance diagram for Dune::InverseOperator2Preconditioner< O, c >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -467,15 +467,15 @@\n \n \n

    Implements Dune::Preconditioner< O::domain_type, O::range_type >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02612.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02612.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SeqSSOR< M, X, Y, l > Class Template Reference
    \n \n
    \n \n

    Sequential SSOR preconditioner. \n More...

    \n \n-

    #include <dune/istl/preconditioners.hh>

    \n+

    #include <dune/istl/preconditioners.hh>

    \n
    \n Inheritance diagram for Dune::SeqSSOR< M, X, Y, l >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -608,15 +608,15 @@\n \n \n

    Implements Dune::Preconditioner< X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02616.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02616.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SeqSOR< M, X, Y, l > Class Template Reference
    \n \n
    \n \n

    Sequential SOR preconditioner. \n More...

    \n \n-

    #include <dune/istl/preconditioners.hh>

    \n+

    #include <dune/istl/preconditioners.hh>

    \n
    \n Inheritance diagram for Dune::SeqSOR< M, X, Y, l >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -657,15 +657,15 @@\n \n \n

    Implements Dune::Preconditioner< X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02620.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02620.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SeqJac< M, X, Y, l > Class Template Reference
    \n \n
    \n \n

    The sequential jacobian preconditioner. \n More...

    \n \n-

    #include <dune/istl/preconditioners.hh>

    \n+

    #include <dune/istl/preconditioners.hh>

    \n
    \n Inheritance diagram for Dune::SeqJac< M, X, Y, l >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -608,15 +608,15 @@\n \n \n

    Implements Dune::Preconditioner< X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02624.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02624.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::SeqILU< M, X, Y, l > Class Template Reference
    \n \n
    \n \n

    Sequential ILU preconditioner. \n More...

    \n \n-

    #include <dune/istl/preconditioners.hh>

    \n+

    #include <dune/istl/preconditioners.hh>

    \n
    \n Inheritance diagram for Dune::SeqILU< M, X, Y, l >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -891,15 +891,15 @@\n
    \n \n

    true if w != 1.0

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02628.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02628.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::Richardson< X, Y > Class Template Reference
    \n \n
    \n \n

    Richardson preconditioner. \n More...

    \n \n-

    #include <dune/istl/preconditioners.hh>

    \n+

    #include <dune/istl/preconditioners.hh>

    \n
    \n Inheritance diagram for Dune::Richardson< X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -495,15 +495,15 @@\n \n \n

    Implements Dune::Preconditioner< X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02632.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02632.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SeqILDL< M, X, Y > Class Template Reference
    \n \n
    \n \n

    sequential ILDL preconditioner \n More...

    \n \n-

    #include <dune/istl/preconditioners.hh>

    \n+

    #include <dune/istl/preconditioners.hh>

    \n
    \n Inheritance diagram for Dune::SeqILDL< M, X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -595,15 +595,15 @@\n \n \n

    Implements Dune::Preconditioner< X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02640.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02640.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::RedistributeInterface Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/repartition.hh>

    \n+

    #include <dune/istl/repartition.hh>

    \n
    \n Inheritance diagram for Dune::RedistributeInterface:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -297,15 +297,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02660.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02660.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::ScalarProduct< X > Class Template Reference
    \n \n
    \n \n

    Base class for scalar product and norm computation. \n More...

    \n \n-

    #include <dune/istl/scalarproducts.hh>

    \n+

    #include <dune/istl/scalarproducts.hh>

    \n
    \n Inheritance diagram for Dune::ScalarProduct< X >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -316,15 +316,15 @@\n

    Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.

    \n \n

    Reimplemented in Dune::ParallelScalarProduct< X, C >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02664.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02664.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::ParallelScalarProduct< X, C > Class Template Reference
    \n \n
    \n \n

    Scalar product for overlapping Schwarz methods. \n More...

    \n \n-

    #include <dune/istl/scalarproducts.hh>

    \n+

    #include <dune/istl/scalarproducts.hh>

    \n
    \n Inheritance diagram for Dune::ParallelScalarProduct< X, C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -408,15 +408,15 @@\n

    Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.

    \n \n

    Reimplemented from Dune::ScalarProduct< X >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02668.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02668.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SeqScalarProduct< X > Class Template Reference
    \n \n
    \n \n

    Default implementation for the scalar case. \n More...

    \n \n-

    #include <dune/istl/scalarproducts.hh>

    \n+

    #include <dune/istl/scalarproducts.hh>

    \n
    \n Inheritance diagram for Dune::SeqScalarProduct< X >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -299,15 +299,15 @@\n

    Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.

    \n \n

    Reimplemented in Dune::ParallelScalarProduct< X, C >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02672.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02672.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::NonoverlappingSchwarzScalarProduct< X, C > Class Template Reference
    \n \n
    \n \n

    Nonoverlapping Scalar Product with communication object. \n More...

    \n \n-

    #include <dune/istl/scalarproducts.hh>

    \n+

    #include <dune/istl/scalarproducts.hh>

    \n
    \n Inheritance diagram for Dune::NonoverlappingSchwarzScalarProduct< X, C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -397,15 +397,15 @@\n

    Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.

    \n \n

    Reimplemented from Dune::ScalarProduct< X >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02676.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02676.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::OverlappingSchwarzScalarProduct< X, C > Class Template Reference
    \n \n
    \n \n

    Scalar product for overlapping Schwarz methods. \n More...

    \n \n-

    #include <dune/istl/scalarproducts.hh>

    \n+

    #include <dune/istl/scalarproducts.hh>

    \n
    \n Inheritance diagram for Dune::OverlappingSchwarzScalarProduct< X, C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -403,15 +403,15 @@\n

    Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.

    \n \n

    Reimplemented from Dune::ScalarProduct< X >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02680.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02680.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::ScaledIdentityMatrix< K, n > Class Template Reference
    \n \n
    \n \n

    A multiple of the identity matrix of static size. \n More...

    \n \n-

    #include <dune/istl/scaledidmatrix.hh>

    \n+

    #include <dune/istl/scaledidmatrix.hh>

    \n \n \n \n \n@@ -2167,15 +2167,15 @@\n
    \n \n

    We are at the leaf of the block recursion.

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02684.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02684.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::DenseMatrixAssigner< DenseMatrix, ScaledIdentityMatrix< field, N > > Struct Template Reference
    \n \n

    \n Public Types

    enum  { rows = n\n , cols = n\n }
     export size More...
    \n \n \n \n

    \n Static Public Member Functions

    static void apply (DenseMatrix &denseMatrix, ScaledIdentityMatrix< field, N > const &rhs)
     
    \n

    Member Function Documentation

    \n@@ -123,15 +123,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02688.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02688.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::FieldTraits< ScaledIdentityMatrix< K, n > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/scaledidmatrix.hh>

    \n+

    #include <dune/istl/scaledidmatrix.hh>

    \n \n \n \n \n \n \n@@ -119,15 +119,15 @@\n \n

    \n Public Types

    using field_type = typename ScaledIdentityMatrix< K, n >::field_type
     
    using real_type = typename FieldTraits< field_type >::real_type
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02692.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02692.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::ParSSOR< M, X, Y, C > Class Template Reference
    \n \n
    \n \n

    A parallel SSOR preconditioner. \n More...

    \n \n-

    #include <dune/istl/schwarz.hh>

    \n+

    #include <dune/istl/schwarz.hh>

    \n
    \n Inheritance diagram for Dune::ParSSOR< M, X, Y, C >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -475,15 +475,15 @@\n \n \n

    Implements Dune::Preconditioner< X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02696.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02696.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::BlockPreconditioner< X, Y, C, P > Class Template Reference
    \n \n
    \n \n

    Block parallel preconditioner. \n More...

    \n \n-

    #include <dune/istl/schwarz.hh>

    \n+

    #include <dune/istl/schwarz.hh>

    \n
    \n Inheritance diagram for Dune::BlockPreconditioner< X, Y, C, P >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -549,15 +549,15 @@\n \n \n

    Implements Dune::Preconditioner< X, Y >.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02700.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02700.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::InverseOperatorResult Struct Reference
    \n \n
    \n \n

    Statistics about the application of an inverse operator. \n More...

    \n \n-

    #include <dune/istl/solver.hh>

    \n+

    #include <dune/istl/solver.hh>

    \n \n \n \n \n \n \n@@ -269,15 +269,15 @@\n
    \n \n

    Reduction achieved: \"$.

    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02704.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02704.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::InverseOperator< X, Y > Class Template Referenceabstract
    \n \n
    \n \n

    Abstract base class for all solvers. \n More...

    \n \n-

    #include <dune/istl/solver.hh>

    \n+

    #include <dune/istl/solver.hh>

    \n
    \n Inheritance diagram for Dune::InverseOperator< X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -644,15 +644,15 @@\n
    \n \n

    helper function for printing solver output

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02708.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02708.html", "unified_diff": "@@ -84,15 +84,15 @@\n
    Dune::IterativeSolver< X, Y > Class Template Referenceabstract
    \n \n
    \n \n

    Base class for all implementations of iterative solvers. \n More...

    \n \n-

    #include <dune/istl/solver.hh>

    \n+

    #include <dune/istl/solver.hh>

    \n
    \n Inheritance diagram for Dune::IterativeSolver< X, Y >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -1324,15 +1324,15 @@\n \n

    \n Public Member Functions

     InverseOperatorResult ()
     Default constructor.
     
    void clear ()
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02712.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02712.html", "unified_diff": "@@ -81,15 +81,15 @@\n
    Dune::IterativeSolver< X, Y >::Iteration< CountType > Class Template Reference
    \n \n
    \n \n

    Class for controlling iterative methods. \n More...

    \n \n-

    #include <dune/istl/solver.hh>

    \n+

    #include <dune/istl/solver.hh>

    \n \n \n \n \n \n \n@@ -526,15 +526,15 @@\n \n

    \n Public Member Functions

     Iteration (const IterativeSolver &parent, InverseOperatorResult &res)
     
     Iteration (const Iteration &)=delete
     
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02716.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02716.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SolverHelper< ISTLLinearSolver, BCRSMatrix > Class Template Reference
    \n \n
    \n \n

    Helper class for notifying a DUNE-ISTL linear solver about a change of the iteration matrix object in a unified way, i.e. independent from the solver's type (direct/iterative). \n More...

    \n \n-

    #include <dune/istl/solver.hh>

    \n+

    #include <dune/istl/solver.hh>

    \n \n \n \n \n \n \n@@ -140,15 +140,15 @@\n \n

    \n Classes

    struct  Implementation
     Implementation that works together with iterative ISTL solvers, e.g. Dune::CGSolver or Dune::BiCGSTABSolver. More...
     
    struct  Implementation< true, Dummy >
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02720.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02720.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::SolverHelper< ISTLLinearSolver, BCRSMatrix >::Implementation< is_direct_solver, Dummy > Struct Template Reference
    \n \n
    \n \n

    Implementation that works together with iterative ISTL solvers, e.g. Dune::CGSolver or Dune::BiCGSTABSolver. \n More...

    \n \n-

    #include <dune/istl/solver.hh>

    \n+

    #include <dune/istl/solver.hh>

    \n \n \n \n \n

    \n Static Public Member Functions

    static void setMatrix (ISTLLinearSolver &, const BCRSMatrix &)
     
    \n

    Detailed Description

    \n@@ -132,15 +132,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02724.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02724.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::SolverHelper< ISTLLinearSolver, BCRSMatrix >::Implementation< true, Dummy > Struct Template Reference
    \n \n
    \n \n

    Implementation that works together with direct ISTL solvers, e.g. Dune::SuperLU or Dune::UMFPack. \n More...

    \n \n-

    #include <dune/istl/solver.hh>

    \n+

    #include <dune/istl/solver.hh>

    \n \n \n \n \n

    \n Static Public Member Functions

    static void setMatrix (ISTLLinearSolver &solver, const BCRSMatrix &matrix)
     
    \n

    Detailed Description

    \n@@ -132,15 +132,15 @@\n \n \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02728.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02728.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SolverCategory Struct Reference
    \n \n
    \n \n

    Categories for the solvers. \n More...

    \n \n-

    #include <dune/istl/solvercategory.hh>

    \n+

    #include <dune/istl/solvercategory.hh>

    \n \n \n \n@@ -164,15 +164,15 @@\n
    \n \n

    Helperfunction to extract the solver category either from an enum, or from the newly introduced virtual member function.

    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02732.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02732.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::InvalidSolverCategory Class Reference
    \n
    \n
    \n \n-

    #include <dune/istl/solvercategory.hh>

    \n+

    #include <dune/istl/solvercategory.hh>

    \n
    \n Inheritance diagram for Dune::InvalidSolverCategory:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02736.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02736.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::SolverFactory< Operator > Class Template Reference
    \n \n
    \n \n

    Factory to assembly solvers configured by a ParameterTree. \n More...

    \n \n-

    #include <dune/istl/solverfactory.hh>

    \n+

    #include <dune/istl/solverfactory.hh>

    \n

    \n Public Types

    enum  Category { sequential\n , nonoverlapping\n , overlapping\n }
    \n \n \n \n \n \n@@ -196,15 +196,15 @@\n
    \n \n

    Construct a Preconditioner for a given Operator.

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02760.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02760.html", "unified_diff": "@@ -83,15 +83,15 @@\n
    Dune::LoopSolver< X > Class Template Referenceabstract
    \n \n
    \n \n

    Preconditioned loop solver. \n More...

    \n \n-

    #include <dune/istl/solvers.hh>

    \n+

    #include <dune/istl/solvers.hh>

    \n
    \n Inheritance diagram for Dune::LoopSolver< X >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -971,15 +971,15 @@\n \n

    \n Static Public Member Functions

    static std::shared_ptr< Solverget (std::shared_ptr< Operator > op, const ParameterTree &config, std::shared_ptr< Preconditioner > prec=nullptr)
     get a solver from the factory
     
    static std::shared_ptr< PreconditionergetPreconditioner (std::shared_ptr< Operator > op, const ParameterTree &config)
    \n
    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02764.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02764.html", "unified_diff": "@@ -83,15 +83,15 @@\n
    Dune::GradientSolver< X > Class Template Referenceabstract
    \n \n
    \n \n

    gradient method \n More...

    \n \n-

    #include <dune/istl/solvers.hh>

    \n+

    #include <dune/istl/solvers.hh>

    \n
    \n Inheritance diagram for Dune::GradientSolver< X >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -971,15 +971,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02768.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02768.html", "unified_diff": "@@ -84,15 +84,15 @@\n
    Dune::CGSolver< X > Class Template Referenceabstract
    \n \n
    \n \n

    conjugate gradient method \n More...

    \n \n-

    #include <dune/istl/solvers.hh>

    \n+

    #include <dune/istl/solvers.hh>

    \n
    \n Inheritance diagram for Dune::CGSolver< X >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -1234,15 +1234,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02772.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02772.html", "unified_diff": "@@ -83,15 +83,15 @@\n
    Dune::BiCGSTABSolver< X > Class Template Referenceabstract
    \n \n
    \n \n

    Bi-conjugate Gradient Stabilized (BiCG-STAB) \n More...

    \n \n-

    #include <dune/istl/solvers.hh>

    \n+

    #include <dune/istl/solvers.hh>

    \n
    \n Inheritance diagram for Dune::BiCGSTABSolver< X >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -975,15 +975,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02776.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02776.html", "unified_diff": "@@ -83,15 +83,15 @@\n
    Dune::MINRESSolver< X > Class Template Referenceabstract
    \n \n
    \n \n

    Minimal Residual Method (MINRES) \n More...

    \n \n-

    #include <dune/istl/solvers.hh>

    \n+

    #include <dune/istl/solvers.hh>

    \n
    \n Inheritance diagram for Dune::MINRESSolver< X >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -972,15 +972,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02780.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02780.html", "unified_diff": "@@ -83,15 +83,15 @@\n
    Dune::RestartedGMResSolver< X, Y, F > Class Template Reference
    \n \n
    \n \n

    implements the Generalized Minimal Residual (GMRes) method \n More...

    \n \n-

    #include <dune/istl/solvers.hh>

    \n+

    #include <dune/istl/solvers.hh>

    \n
    \n Inheritance diagram for Dune::RestartedGMResSolver< X, Y, F >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -1595,15 +1595,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02784.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02784.html", "unified_diff": "@@ -83,15 +83,15 @@\n
    Dune::RestartedFlexibleGMResSolver< X, Y, F > Class Template Reference
    \n \n
    \n \n

    implements the Flexible Generalized Minimal Residual (FGMRes) method (right preconditioned) \n More...

    \n \n-

    #include <dune/istl/solvers.hh>

    \n+

    #include <dune/istl/solvers.hh>

    \n
    \n Inheritance diagram for Dune::RestartedFlexibleGMResSolver< X, Y, F >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -1167,15 +1167,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02788.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02788.html", "unified_diff": "@@ -83,15 +83,15 @@\n
    Dune::GeneralizedPCGSolver< X > Class Template Referenceabstract
    \n \n
    \n \n

    Generalized preconditioned conjugate gradient solver. \n More...

    \n \n-

    #include <dune/istl/solvers.hh>

    \n+

    #include <dune/istl/solvers.hh>

    \n
    \n Inheritance diagram for Dune::GeneralizedPCGSolver< X >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -1288,15 +1288,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02792.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02792.html", "unified_diff": "@@ -83,15 +83,15 @@\n
    Dune::RestartedFCGSolver< X > Class Template Referenceabstract
    \n \n
    \n \n

    Accelerated flexible conjugate gradient method. \n More...

    \n \n-

    #include <dune/istl/solvers.hh>

    \n+

    #include <dune/istl/solvers.hh>

    \n
    \n Inheritance diagram for Dune::RestartedFCGSolver< X >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -1344,15 +1344,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02796.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02796.html", "unified_diff": "@@ -83,15 +83,15 @@\n
    Dune::CompleteFCGSolver< X > Class Template Referenceabstract
    \n \n
    \n \n

    Complete flexible conjugate gradient method. \n More...

    \n \n-

    #include <dune/istl/solvers.hh>

    \n+

    #include <dune/istl/solvers.hh>

    \n
    \n Inheritance diagram for Dune::CompleteFCGSolver< X >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -1003,15 +1003,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02800.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02800.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::IsDirectSolver< Solver > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/solvertype.hh>

    \n+

    #include <dune/istl/solvertype.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value =false\n }
     
    \n@@ -107,15 +107,15 @@\n

    If Solver is a direct solver, this is true.

    \n \n \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02804.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02804.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::StoresColumnCompressed< Solver > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/solvertype.hh>

    \n+

    #include <dune/istl/solvertype.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value = false\n }
     
    \n@@ -106,15 +106,15 @@\n Enumeratorvalue 

    whether the solver internally uses column compressed storage

    \n \n \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02808.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02808.html", "unified_diff": "@@ -76,26 +76,26 @@\n
    Dune::SPQR< Matrix > Class Template Reference
    \n \n
    \n \n

    Use the SPQR package to directly solve linear systems – empty default class. \n More...

    \n \n-

    #include <dune/istl/spqr.hh>

    \n+

    #include <dune/istl/spqr.hh>

    \n

    Detailed Description

    \n
    template<class Matrix>
    \n class Dune::SPQR< Matrix >

    Use the SPQR package to directly solve linear systems – empty default class.

    \n
    Template Parameters
    \n \n \n
    Matrixthe matrix type defining the system Details on SPQR can be found on http://www.cise.ufl.edu/research/sparse/spqr/
    \n
    \n
    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02812.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02812.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > > Class Template Referenceabstract
    \n \n
    \n \n

    The SPQR direct sparse solver for matrices of type BCRSMatrix. \n More...

    \n \n-

    #include <dune/istl/spqr.hh>

    \n+

    #include <dune/istl/spqr.hh>

    \n
    \n Inheritance diagram for Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -557,15 +557,15 @@\n
    \n \n

    helper function for printing solver output

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02816.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02816.html", "unified_diff": "@@ -76,24 +76,24 @@\n \n
    Dune::IsDirectSolver< SPQR< BCRSMatrix< T, A > > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/spqr.hh>

    \n+

    #include <dune/istl/spqr.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value = true\n }
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02820.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02820.html", "unified_diff": "@@ -76,24 +76,24 @@\n \n
    Dune::StoresColumnCompressed< SPQR< BCRSMatrix< T, A > > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/spqr.hh>

    \n+

    #include <dune/istl/spqr.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value = true\n }
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02824.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02824.html", "unified_diff": "@@ -77,15 +77,15 @@\n Classes |\n Public Member Functions |\n List of all members \n
    Dune::SPQRCreator Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/spqr.hh>

    \n+

    #include <dune/istl/spqr.hh>

    \n \n \n \n \n \n \n@@ -96,15 +96,15 @@\n \n \n \n \n \n

    \n Classes

    struct  isValidBlock
     
    struct  isValidBlock< FieldVector< double, 1 > >
     
    std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator() (TL, const M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock< typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0) const
     
    template<typename TL , typename M >
    std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator() (TL, const M &, const Dune::ParameterTree &, std::enable_if_t<!isValidBlock< typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0) const
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02828.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02828.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::SPQRCreator::isValidBlock< class > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/spqr.hh>

    \n+

    #include <dune/istl/spqr.hh>

    \n
    \n Inheritance diagram for Dune::SPQRCreator::isValidBlock< class >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02832.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02832.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::SPQRCreator::isValidBlock< FieldVector< double, 1 > > Struct Reference
    \n
    \n
    \n \n-

    #include <dune/istl/spqr.hh>

    \n+

    #include <dune/istl/spqr.hh>

    \n
    \n Inheritance diagram for Dune::SPQRCreator::isValidBlock< FieldVector< double, 1 > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02836.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02836.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::SuperLUSolveChooser< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02840.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02840.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::SuperLUDenseMatChooser< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02844.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02844.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::SuperLUQueryChooser< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02848.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02848.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::QuerySpaceChooser< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02864.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02864.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SuperLU< M > Class Template Reference
    \n \n
    \n \n

    SuperLu Solver. \n More...

    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n
    \n Inheritance diagram for Dune::SuperLU< M >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -476,15 +476,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02868.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02868.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::IsDirectSolver< SuperLU< BCRSMatrix< T, A > > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value =true\n }
     
    \n@@ -105,15 +105,15 @@\n \n \n
    Enumerator
    value 
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02872.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02872.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::StoresColumnCompressed< SuperLU< BCRSMatrix< T, A > > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value = true\n }
     
    \n@@ -105,15 +105,15 @@\n \n \n
    Enumerator
    value 
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02876.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02876.html", "unified_diff": "@@ -77,15 +77,15 @@\n Classes |\n Public Member Functions |\n List of all members \n
    Dune::SuperLUCreator Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n \n \n \n \n \n \n@@ -203,15 +203,15 @@\n \n

    \n Classes

    struct  isValidBlock
     
    struct  isValidBlock< double >
     
    \n
    \n \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02880.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02880.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::SuperLUCreator::isValidBlock< class > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n
    \n Inheritance diagram for Dune::SuperLUCreator::isValidBlock< class >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02884.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02884.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::SuperLUCreator::isValidBlock< Dune::FieldVector< double, k > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n
    \n Inheritance diagram for Dune::SuperLUCreator::isValidBlock< Dune::FieldVector< double, k > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02888.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02888.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::SuperLUCreator::isValidBlock< Dune::FieldVector< std::complex< double >, k > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n
    \n Inheritance diagram for Dune::SuperLUCreator::isValidBlock< Dune::FieldVector< std::complex< double >, k > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02892.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02892.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::SuperLUCreator::isValidBlock< double > Struct Reference
    \n
    \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n
    \n Inheritance diagram for Dune::SuperLUCreator::isValidBlock< double >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02896.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02896.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::SuperLUCreator::isValidBlock< std::complex< double > > Struct Reference
    \n
    \n
    \n \n-

    #include <dune/istl/superlu.hh>

    \n+

    #include <dune/istl/superlu.hh>

    \n
    \n Inheritance diagram for Dune::SuperLUCreator::isValidBlock< std::complex< double > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02900.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02900.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::SuperMatrixCreateSparseChooser< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02904.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02904.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::SuperMatrixPrinter< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02908.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02908.html", "unified_diff": "@@ -76,15 +76,15 @@\n \n
    Dune::BaseGetSuperLUType< T > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    \n Inheritance diagram for Dune::BaseGetSuperLUType< T >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -137,15 +137,15 @@\n
    std::is_same<T,float>::value ? SLU_S :
    \n
    ( std::is_same<T,std::complex<double> >::value ? SLU_Z :
    \n
    ( std::is_same<T,std::complex<float> >::value ? SLU_C : SLU_D ))
    \n
    \n
    \n \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02912.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02912.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::GetSuperLUType< T > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02916.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02916.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Attributes |\n List of all members \n
    Dune::GetSuperLUType< double > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    \n Inheritance diagram for Dune::GetSuperLUType< double >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -140,15 +140,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02920.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02920.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Attributes |\n List of all members \n
    Dune::GetSuperLUType< float > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    \n Inheritance diagram for Dune::GetSuperLUType< float >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -140,15 +140,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02924.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02924.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Attributes |\n List of all members \n
    Dune::GetSuperLUType< std::complex< double > > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    \n Inheritance diagram for Dune::GetSuperLUType< std::complex< double > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -140,15 +140,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02928.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02928.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Static Public Attributes |\n List of all members \n
    Dune::GetSuperLUType< std::complex< float > > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    \n Inheritance diagram for Dune::GetSuperLUType< std::complex< float > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -140,15 +140,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this struct was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02932.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02932.html", "unified_diff": "@@ -76,30 +76,30 @@\n
    Dune::SuperLUMatrix< M > Struct Template Reference
    \n \n
    \n \n

    Utility class for converting an ISTL Matrix into a SuperLU Matrix. \n More...

    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    \n Inheritance diagram for Dune::SuperLUMatrix< M >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n

    Detailed Description

    \n
    template<class M>
    \n struct Dune::SuperLUMatrix< M >

    Utility class for converting an ISTL Matrix into a SuperLU Matrix.

    \n

    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02936.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02936.html", "unified_diff": "@@ -73,17 +73,17 @@\n \n \n
    \n
    Dune::SuperMatrixInitializer< M > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02940.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02940.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::SuperLUMatrix< BCRSMatrix< B, TA > > Class Template Reference
    \n \n
    \n \n

    Converter for BCRSMatrix to SuperLU Matrix. \n More...

    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    \n Inheritance diagram for Dune::SuperLUMatrix< BCRSMatrix< B, TA > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -491,15 +491,15 @@\n \n \n \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02944.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02944.html", "unified_diff": "@@ -77,15 +77,15 @@\n Public Types |\n Public Member Functions |\n List of all members \n
    Dune::SuperMatrixInitializer< BCRSMatrix< B, A > > Class Template Reference
    \n \n
    \n \n-

    #include <dune/istl/supermatrix.hh>

    \n+

    #include <dune/istl/supermatrix.hh>

    \n
    \n Inheritance diagram for Dune::SuperMatrixInitializer< BCRSMatrix< B, A > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -225,15 +225,15 @@\n \n \n
    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02948.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02948.html", "unified_diff": "@@ -76,23 +76,23 @@\n \n
    Dune::UMFPackMethodChooser< SCalar, Integer > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n \n \n \n \n

    \n Static Public Attributes

    static constexpr bool valid = false
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02952.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02952.html", "unified_diff": "@@ -77,15 +77,15 @@\n Static Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::UMFPackMethodChooser< double, std::true_type > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n \n \n \n \n \n \n@@ -118,15 +118,15 @@\n

    \n Static Public Member Functions

    template<typename... A>
    static void defaults (A... args)
     
    template<typename... A>
    \n \n \n \n

    \n Static Public Attributes

    static constexpr bool valid = true
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02956.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02956.html", "unified_diff": "@@ -77,15 +77,15 @@\n Static Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::UMFPackMethodChooser< double, std::false_type > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n \n \n \n \n \n \n@@ -118,15 +118,15 @@\n

    \n Static Public Member Functions

    template<typename... A>
    static void defaults (A... args)
     
    template<typename... A>
    \n \n \n \n

    \n Static Public Attributes

    static constexpr bool valid = true
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02960.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02960.html", "unified_diff": "@@ -78,15 +78,15 @@\n Static Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::UMFPackMethodChooser< std::complex< double >, std::true_type > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n \n \n \n \n

    \n Public Types

    using umf_int_type = int64_t
     
    \n

    \n@@ -124,15 +124,15 @@\n

    \n \n \n \n

    \n Static Public Attributes

    static constexpr bool valid = true
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02964.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02964.html", "unified_diff": "@@ -78,15 +78,15 @@\n Static Public Member Functions |\n Static Public Attributes |\n List of all members \n
    Dune::UMFPackMethodChooser< std::complex< double >, std::false_type > Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n \n \n \n \n

    \n Public Types

    using umf_int_type = int32_t
     
    \n

    \n@@ -124,15 +124,15 @@\n

    \n \n \n \n

    \n Static Public Attributes

    static constexpr bool valid = true
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02980.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02980.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::UMFPack< M > Class Template Reference
    \n \n
    \n \n

    The UMFPack direct sparse solver. \n More...

    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n
    \n Inheritance diagram for Dune::UMFPack< M >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -190,15 +190,15 @@\n \n \n
    Matrixthe matrix type defining the system
    \n \n \n
    Note
    This will only work if dune-istl has been configured to use UMFPack
    \n

    The documentation for this class was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02984.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02984.html", "unified_diff": "@@ -76,24 +76,24 @@\n \n
    Dune::IsDirectSolver< UMFPack< BCRSMatrix< FieldMatrix< T, n, m >, A > > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value =true\n }
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02988.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02988.html", "unified_diff": "@@ -76,24 +76,24 @@\n \n
    Dune::StoresColumnCompressed< UMFPack< BCRSMatrix< T, A > > > Struct Template Reference
    \n \n
    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n \n \n \n \n

    \n Public Types

    enum  { value = true\n }
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02992.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02992.html", "unified_diff": "@@ -77,15 +77,15 @@\n Classes |\n Public Member Functions |\n List of all members \n
    Dune::UMFPackCreator Struct Reference
    \n \n
    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n \n \n \n \n \n \n@@ -96,15 +96,15 @@\n \n \n \n \n \n

    \n Classes

    struct  isValidBlock
     
    struct  isValidBlock< B, std::enable_if_t< std::is_same< typename FieldTraits< B >::real_type, double >::value > >
     
    std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator() (TL, const M &mat, const Dune::ParameterTree &config, std::enable_if_t< isValidBlock< typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0) const
     
    template<typename TL , typename M >
    std::shared_ptr< Dune::InverseOperator< typename Dune::TypeListElement< 1, TL >::type, typename Dune::TypeListElement< 2, TL >::type > > operator() (TL, const M &, const Dune::ParameterTree &, std::enable_if_t< !isValidBlock< typename Dune::TypeListElement< 1, TL >::type::block_type >::value, int >=0) const
     
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a02996.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a02996.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::UMFPackCreator::isValidBlock< F, class > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n
    \n Inheritance diagram for Dune::UMFPackCreator::isValidBlock< F, class >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a03000.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a03000.html", "unified_diff": "@@ -73,27 +73,27 @@\n \n \n
    \n
    Dune::UMFPackCreator::isValidBlock< B, std::enable_if_t< std::is_same< typename FieldTraits< B >::real_type, double >::value > > Struct Template Reference
    \n
    \n
    \n \n-

    #include <dune/istl/umfpack.hh>

    \n+

    #include <dune/istl/umfpack.hh>

    \n
    \n Inheritance diagram for Dune::UMFPackCreator::isValidBlock< B, std::enable_if_t< std::is_same< typename FieldTraits< B >::real_type, double >::value > >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n \"\"\n \n
    \n
    The documentation for this struct was generated from the following file:\n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a03004.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a03004.html", "unified_diff": "@@ -82,15 +82,15 @@\n
    Dune::VariableBlockVector< B, A > Class Template Reference
    \n \n
    \n \n

    A Vector of blocks with different blocksizes. \n More...

    \n \n-

    #include <dune/istl/vbvector.hh>

    \n+

    #include <dune/istl/vbvector.hh>

    \n
    \n Inheritance diagram for Dune::VariableBlockVector< B, A >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -1210,15 +1210,15 @@\n \n
    \n

    increment block level counter, yes, it is two levels because VariableBlockVector is a container of containers

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a03008.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a03008.html", "unified_diff": "@@ -80,15 +80,15 @@\n
    Dune::VariableBlockVector< B, A >::CreateIterator Class Reference
    \n \n
    \n \n

    Iterator class for sequential creation of blocks. \n More...

    \n \n-

    #include <dune/istl/vbvector.hh>

    \n+

    #include <dune/istl/vbvector.hh>

    \n \n \n \n \n \n \n@@ -507,15 +507,15 @@\n
    \n \n

    set size of current block

    \n \n
    \n \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/a03012.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/a03012.html", "unified_diff": "@@ -79,15 +79,15 @@\n
    Dune::VariableBlockVector< B, A >::RealIterator< T, R > Class Template Reference
    \n \n
    \n \n

    Iterator class for sequential access. \n More...

    \n \n-

    #include <dune/istl/vbvector.hh>

    \n+

    #include <dune/istl/vbvector.hh>

    \n
    \n Inheritance diagram for Dune::VariableBlockVector< B, A >::RealIterator< T, R >:
    \n
    \n
    \"Inheritance
    \n \n \"\"\n \"\"\n@@ -447,15 +447,15 @@\n
    \n \n

    Return the index of the entry this iterator is pointing to.

    \n \n
    \n
    \n
    The documentation for this class was generated from the following file:\n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/dir_000005_000000.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/dir_000005_000000.html", "unified_diff": "@@ -69,14 +69,14 @@\n \n
    \n \n
    \n \n
    \n-

    istl → common Relation

    \n Public Types

    using iterator_category = std::output_iterator_tag
     iterator category
     
    using value_type = size_type
    File in dune/istlIncludes file in dune/istl/common
    solverregistry.hhregistry.hh
    \n+

    istl → common Relation

    File in dune/istlIncludes file in dune/istl/common
    solverregistry.hhregistry.hh
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/dir_000005_000004.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/dir_000005_000004.html", "unified_diff": "@@ -69,14 +69,14 @@\n \n
    \n \n
    \n \n
    \n-

    istl → eigenvalue Relation

    File in dune/istlIncludes file in dune/istl/eigenvalue
    solvers.hharpackpp.hh
    \n+

    istl → eigenvalue Relation

    File in dune/istlIncludes file in dune/istl/eigenvalue
    solvers.hharpackpp.hh
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/dir_000005_000006.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/dir_000005_000006.html", "unified_diff": "@@ -69,14 +69,14 @@\n \n
    \n \n
    \n \n
    \n-

    istl → paamg Relation

    File in dune/istlIncludes file in dune/istl/paamg
    matrixredistribute.hhpinfo.hh
    repartition.hhgraph.hh
    \n+

    istl → paamg Relation

    File in dune/istlIncludes file in dune/istl/paamg
    matrixredistribute.hhpinfo.hh
    repartition.hhgraph.hh
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/dir_30ac00acf892fa1550fd06f6d9d3e856.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/dir_30ac00acf892fa1550fd06f6d9d3e856.html", "unified_diff": "@@ -84,17 +84,17 @@\n \"\"\n \"\"\n
    \n \n \n \n-\n+\n \n-\n+\n \n

    \n Files

     counter.hh
     counter.hh
     
     registry.hh
     registry.hh
     
    \n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/dir_4aff653484460245da749266b1996776.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/dir_4aff653484460245da749266b1996776.html", "unified_diff": "@@ -84,17 +84,17 @@\n \"\"\n \"\"\n
    \n \n \n \n-\n+\n \n-\n+\n \n

    \n Files

     arpackpp.hh
     arpackpp.hh
     
     poweriteration.hh
     poweriteration.hh
     
    \n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/dir_5e12c67a8fe12cf8b78c94f3b4cb9926.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/dir_5e12c67a8fe12cf8b78c94f3b4cb9926.html", "unified_diff": "@@ -102,140 +102,140 @@\n  eigenvalue\n  \n  paamg\n  \n \n \n-\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n+\n \n \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n

    \n Files

     allocator.hh
     allocator.hh
     
     basearray.hh
     Implements several basic array containers.
     basearray.hh
     Implements several basic array containers.
     
     bccsmatrix.hh
     bccsmatrix.hh
     
     bccsmatrixinitializer.hh
     bccsmatrixinitializer.hh
     
     bcrsmatrix.hh
     Implementation of the BCRSMatrix class.
     bcrsmatrix.hh
     Implementation of the BCRSMatrix class.
     
     bdmatrix.hh
     Implementation of the BDMatrix class.
     bdmatrix.hh
     Implementation of the BDMatrix class.
     
     blocklevel.hh
     Helper functions for determining the vector/matrix block level.
     blocklevel.hh
     Helper functions for determining the vector/matrix block level.
     
     btdmatrix.hh
     Implementation of the BTDMatrix class.
     btdmatrix.hh
     Implementation of the BTDMatrix class.
     
     bvector.hh
     This file implements a vector space as a tensor product of a given vector space. The number of components can be given at run-time.
     bvector.hh
     This file implements a vector space as a tensor product of a given vector space. The number of components can be given at run-time.
     
     cholmod.hh
     cholmod.hh
     
     foreach.hh
     foreach.hh
     
     gsetc.hh
     Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
     gsetc.hh
     Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
     
     ildl.hh
     Incomplete LDL decomposition.
     ildl.hh
     Incomplete LDL decomposition.
     
     ilu.hh
     The incomplete LU factorization kernels.
     ilu.hh
     The incomplete LU factorization kernels.
     
     ilusubdomainsolver.hh
     Various local subdomain solvers based on ILU for SeqOverlappingSchwarz.
     ilusubdomainsolver.hh
     Various local subdomain solvers based on ILU for SeqOverlappingSchwarz.
     
     io.hh
     Some generic functions for pretty printing vectors and matrices.
     io.hh
     Some generic functions for pretty printing vectors and matrices.
     
     istlexception.hh
     istlexception.hh
     
     ldl.hh
     Class for using LDL with ISTL matrices.
     ldl.hh
     Class for using LDL with ISTL matrices.
     
     matrix.hh
     A dynamic dense block matrix class.
     matrix.hh
     A dynamic dense block matrix class.
     
     matrixindexset.hh
     matrixindexset.hh
     
     matrixmarket.hh
     Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices.
     matrixmarket.hh
     Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices.
     
     matrixmatrix.hh
     provides functions for sparse matrix matrix multiplication.
     matrixmatrix.hh
     provides functions for sparse matrix matrix multiplication.
     
     matrixredistribute.hh
     Functionality for redistributing a sparse matrix.
     matrixredistribute.hh
     Functionality for redistributing a sparse matrix.
     
     matrixutils.hh
     Some handy generic functions for ISTL matrices.
     matrixutils.hh
     Some handy generic functions for ISTL matrices.
     
     multitypeblockmatrix.hh
     multitypeblockmatrix.hh
     
     multitypeblockvector.hh
     multitypeblockvector.hh
     
     novlpschwarz.hh
     novlpschwarz.hh
     
     operators.hh
     Define general, extensible interface for operators. The available implementation wraps a matrix.
     operators.hh
     Define general, extensible interface for operators. The available implementation wraps a matrix.
     
     overlappingschwarz.hh
     Contains one level overlapping Schwarz preconditioners.
     overlappingschwarz.hh
     Contains one level overlapping Schwarz preconditioners.
     
     owneroverlapcopy.hh
     Classes providing communication interfaces for overlapping Schwarz methods.
     owneroverlapcopy.hh
     Classes providing communication interfaces for overlapping Schwarz methods.
     
     preconditioner.hh
     preconditioner.hh
     
     preconditioners.hh
     Define general preconditioner interface.
     preconditioners.hh
     Define general preconditioner interface.
     
     repartition.hh
     Functionality for redistributing a parallel index set using graph partitioning.
     repartition.hh
     Functionality for redistributing a parallel index set using graph partitioning.
     
     scalarproducts.hh
     Define base class for scalar product and norm.
     scalarproducts.hh
     Define base class for scalar product and norm.
     
     scaledidmatrix.hh
     This file implements a quadratic matrix of fixed size which is a multiple of the identity.
     scaledidmatrix.hh
     This file implements a quadratic matrix of fixed size which is a multiple of the identity.
     
     schwarz.hh
     schwarz.hh
     
     solver.hh
     Define general, extensible interface for inverse operators.
     solver.hh
     Define general, extensible interface for inverse operators.
     
     solvercategory.hh
     solvercategory.hh
     
     solverfactory.hh
     solverfactory.hh
     
     solverregistry.hh
     
     solvers.hh
     Implementations of the inverse operator interface.
     solvers.hh
     Implementations of the inverse operator interface.
     
     solvertype.hh
     Templates characterizing the type of a solver.
     solvertype.hh
     Templates characterizing the type of a solver.
     
     spqr.hh
     Class for using SPQR with ISTL matrices.
     spqr.hh
     Class for using SPQR with ISTL matrices.
     
     superlu.hh
     Classes for using SuperLU with ISTL matrices.
     superlu.hh
     Classes for using SuperLU with ISTL matrices.
     
     superlufunctions.hh
     superlufunctions.hh
     
     supermatrix.hh
     supermatrix.hh
     
     umfpack.hh
     Classes for using UMFPack with ISTL matrices.
     umfpack.hh
     Classes for using UMFPack with ISTL matrices.
     
     vbvector.hh
     ???
     vbvector.hh
     ???
     
    \n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/dir_667edbdb0a8210232217f5e7df6d52d4.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/dir_667edbdb0a8210232217f5e7df6d52d4.html", "unified_diff": "@@ -84,74 +84,74 @@\n \"\"\n \"\"\n
    \n \n \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n

    \n Files

     aggregates.hh
     Provides classes for the Coloring process of AMG.
     aggregates.hh
     Provides classes for the Coloring process of AMG.
     
     amg.hh
     The AMG preconditioner.
     amg.hh
     The AMG preconditioner.
     
     combinedfunctor.hh
     combinedfunctor.hh
     
     construction.hh
     Helper classes for the construction of classes without empty constructor.
     construction.hh
     Helper classes for the construction of classes without empty constructor.
     
     dependency.hh
     Provides classes for initializing the link attributes of a matrix graph.
     dependency.hh
     Provides classes for initializing the link attributes of a matrix graph.
     
     fastamg.hh
     A fast AMG method, that currently only allows only Gauss-Seidel smoothing and is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep with the defect calculation to reduce memory transfers.
     fastamg.hh
     A fast AMG method, that currently only allows only Gauss-Seidel smoothing and is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep with the defect calculation to reduce memory transfers.
     
     fastamgsmoother.hh
     fastamgsmoother.hh
     
     galerkin.hh
     Provides a class for building the galerkin product based on a aggregation scheme.
     galerkin.hh
     Provides a class for building the galerkin product based on a aggregation scheme.
     
     globalaggregates.hh
     Provdes class for identifying aggregates globally.
     globalaggregates.hh
     Provdes class for identifying aggregates globally.
     
     graph.hh
     Provides classes for building the matrix graph.
     graph.hh
     Provides classes for building the matrix graph.
     
     graphcreator.hh
     graphcreator.hh
     
     hierarchy.hh
     Provides a classes representing the hierarchies in AMG.
     hierarchy.hh
     Provides a classes representing the hierarchies in AMG.
     
     indicescoarsener.hh
     Provides a class for building the index set and remote indices on the coarse level.
     indicescoarsener.hh
     Provides a class for building the index set and remote indices on the coarse level.
     
     kamg.hh
     Provides an algebraic multigrid using a Krylov cycle.
     kamg.hh
     Provides an algebraic multigrid using a Krylov cycle.
     
     matrixhierarchy.hh
     Provides a classes representing the hierarchies in AMG.
     matrixhierarchy.hh
     Provides a classes representing the hierarchies in AMG.
     
     parameters.hh
     Parameter classes for customizing AMG.
     parameters.hh
     Parameter classes for customizing AMG.
     
     pinfo.hh
     pinfo.hh
     
     properties.hh
     Provides classes for handling internal properties in a graph.
     properties.hh
     Provides classes for handling internal properties in a graph.
     
     renumberer.hh
     renumberer.hh
     
     smoother.hh
     Classes for the generic construction and application of the smoothers.
     smoother.hh
     Classes for the generic construction and application of the smoothers.
     
     transfer.hh
     Prolongation and restriction for amg.
     transfer.hh
     Prolongation and restriction for amg.
     
     twolevelmethod.hh
     Algebraic twolevel methods.
     twolevelmethod.hh
     Algebraic twolevel methods.
     
    \n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/dune-istl.tag.gz", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/dune-istl.tag.gz", "unified_diff": null, "details": [{"source1": "dune-istl.tag", "source2": "dune-istl.tag", "unified_diff": null, "details": [{"source1": "dune-istl.tag", "source2": "dune-istl.tag", "unified_diff": "@@ -9,185 +9,185 @@\n modules.txt\n /build/reproducible-path/dune-istl-2.9.0/doc/doxygen/\n a00005.html\n \n \n allocator.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00074.html\n+ a00035.html\n Dune::exists\n Dune::DefaultAllocatorTraits\n Dune::DefaultAllocatorTraits< T, std::void_t< typename T::allocator_type > >\n Dune::AllocatorTraits\n Dune\n \n \n basearray.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00026.html\n- istlexception.hh\n+ a00200.html\n+ istlexception.hh\n Dune\n \n \n bccsmatrix.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00035.html\n+ a00050.html\n Dune\n Dune::ISTL\n \n \n bccsmatrixinitializer.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00200.html\n- dune/istl/bccsmatrix.hh\n+ a00026.html\n+ dune/istl/bccsmatrix.hh\n Dune\n Dune::ISTL\n \n \n bcrsmatrix.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00068.html\n- istlexception.hh\n- bvector.hh\n- matrixutils.hh\n- dune/istl/blocklevel.hh\n+ a00164.html\n+ istlexception.hh\n+ bvector.hh\n+ matrixutils.hh\n+ dune/istl/blocklevel.hh\n Dune::CompressionStatistics\n Dune::ImplicitMatrixBuilder\n Dune::ImplicitMatrixBuilder::row_object\n Dune::BCRSMatrix\n Dune::BCRSMatrix::RealRowIterator\n Dune::BCRSMatrix::CreateIterator\n Dune::FieldTraits< BCRSMatrix< B, A > >\n Dune\n \n \n bdmatrix.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00161.html\n- dune/istl/bcrsmatrix.hh\n- dune/istl/blocklevel.hh\n+ a00185.html\n+ dune/istl/bcrsmatrix.hh\n+ dune/istl/blocklevel.hh\n Dune::BDMatrix\n Dune::FieldTraits< BDMatrix< B, A > >\n Dune\n \n \n blocklevel.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00032.html\n+ a00146.html\n Dune\n \n \n btdmatrix.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00182.html\n- dune/istl/bcrsmatrix.hh\n- dune/istl/blocklevel.hh\n+ a00047.html\n+ dune/istl/bcrsmatrix.hh\n+ dune/istl/blocklevel.hh\n Dune::BTDMatrix\n Dune::FieldTraits< BTDMatrix< B, A > >\n Dune\n \n \n bvector.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00215.html\n- dune/istl/blocklevel.hh\n- basearray.hh\n- istlexception.hh\n+ a00131.html\n+ dune/istl/blocklevel.hh\n+ basearray.hh\n+ istlexception.hh\n Dune::BlockVector\n Dune::FieldTraits< BlockVector< B, A > >\n Dune\n \n \n cholmod.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00062.html\n+ a00188.html\n \n \n counter.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/common/\n- a00164.html\n+ a00137.html\n Dune\n Dune::CounterImpl\n \n #define\n DUNE_GET_COUNTER\n- a00164.html\n+ a00137.html\n a52c18e20d25c64cfa14ec5faaa4eb3bd\n (Tag)\n \n \n #define\n DUNE_INC_COUNTER\n- a00164.html\n+ a00137.html\n a5d969c720adf3ae3114e5a51e2cf5d96\n (Tag)\n \n \n constexpr std::size_t\n maxcount\n- a00164.html\n+ a00137.html\n a691e9cc830a63581384caef120bcbef8\n \n \n \n \n registry.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/common/\n- a00167.html\n- counter.hh\n+ a00134.html\n+ counter.hh\n Dune\n \n #define\n DUNE_REGISTRY_PUT\n- a00167.html\n+ a00134.html\n a5aba8ecf7926f3c3dade1b898db68cf7\n (Tag, id,...)\n \n \n \n arpackpp.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/eigenvalue/\n- a00224.html\n- dune/istl/blocklevel.hh\n- dune/istl/bvector.hh\n- dune/istl/istlexception.hh\n- dune/istl/io.hh\n+ a00149.html\n+ dune/istl/blocklevel.hh\n+ dune/istl/bvector.hh\n+ dune/istl/istlexception.hh\n+ dune/istl/io.hh\n Dune::ArPackPlusPlus_Algorithms\n Dune\n \n \n poweriteration.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/eigenvalue/\n- a00221.html\n- dune/istl/blocklevel.hh\n- dune/istl/operators.hh\n- dune/istl/solvercategory.hh\n- dune/istl/solvertype.hh\n- dune/istl/istlexception.hh\n- dune/istl/io.hh\n- dune/istl/solvers.hh\n+ a00152.html\n+ dune/istl/blocklevel.hh\n+ dune/istl/operators.hh\n+ dune/istl/solvercategory.hh\n+ dune/istl/solvertype.hh\n+ dune/istl/istlexception.hh\n+ dune/istl/io.hh\n+ dune/istl/solvers.hh\n Dune::PowerIteration_Algorithms\n Dune\n \n \n foreach.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00173.html\n- dune/istl/bcrsmatrix.hh\n- dune/istl/scaledidmatrix.hh\n+ a00191.html\n+ dune/istl/bcrsmatrix.hh\n+ dune/istl/scaledidmatrix.hh\n Dune\n Dune::ForEach\n \n \n gsetc.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00017.html\n- multitypeblockvector.hh\n- multitypeblockmatrix.hh\n- istlexception.hh\n+ a00119.html\n+ multitypeblockvector.hh\n+ multitypeblockmatrix.hh\n+ istlexception.hh\n Dune::BL\n Dune::algmeta_btsolve\n Dune::algmeta_btsolve< 0, withdiag, withrelax >\n Dune::algmeta_btsolve< 0, withdiag, norelax >\n Dune::algmeta_btsolve< 0, nodiag, withrelax >\n Dune::algmeta_btsolve< 0, nodiag, norelax >\n Dune::algmeta_bdsolve\n@@ -197,107 +197,107 @@\n Dune::algmeta_itsteps< 0, M >\n Dune::algmeta_itsteps< I, MultiTypeBlockMatrix< T1, MultiTypeMatrixArgs... > >\n Dune\n \n \n ildl.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00158.html\n- ilu.hh\n+ a00221.html\n+ ilu.hh\n Dune\n \n \n ilu.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00185.html\n- istlexception.hh\n+ a00215.html\n+ istlexception.hh\n Dune::ILU::CRS\n Dune\n Dune::ILU\n \n \n ilusubdomainsolver.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00050.html\n- dune/istl/preconditioners.hh\n- matrix.hh\n+ a00203.html\n+ dune/istl/preconditioners.hh\n+ matrix.hh\n Dune::ILUSubdomainSolver\n Dune::ILU0SubdomainSolver\n Dune::ILUNSubdomainSolver\n Dune\n \n \n io.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00020.html\n- matrixutils.hh\n- istlexception.hh\n- dune/istl/bcrsmatrix.hh\n- dune/istl/blocklevel.hh\n+ a00023.html\n+ matrixutils.hh\n+ istlexception.hh\n+ dune/istl/bcrsmatrix.hh\n+ dune/istl/blocklevel.hh\n Dune::DefaultSVGMatrixOptions\n Dune\n \n \n istlexception.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00056.html\n+ a00044.html\n Dune::ISTLError\n Dune::BCRSMatrixError\n Dune::ImplicitModeCompressionBufferExhausted\n Dune::SolverAbort\n Dune::MatrixBlockError\n Dune\n \n \n ldl.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00191.html\n- dune/istl/bccsmatrixinitializer.hh\n- dune/istl/solvers.hh\n- dune/istl/solvertype.hh\n- dune/istl/solverfactory.hh\n+ a00158.html\n+ dune/istl/bccsmatrixinitializer.hh\n+ dune/istl/solvers.hh\n+ dune/istl/solvertype.hh\n+ dune/istl/solverfactory.hh\n Dune::LDL\n Dune::LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > >\n Dune::IsDirectSolver< LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > >\n Dune::StoresColumnCompressed< LDL< BCRSMatrix< FieldMatrix< T, n, m >, A > > >\n Dune::LDLCreator\n Dune::LDLCreator::isValidBlock\n Dune::LDLCreator::isValidBlock< FieldVector< double, k > >\n Dune\n \n \n matrix.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00047.html\n- dune/istl/bvector.hh\n- dune/istl/istlexception.hh\n- dune/istl/blocklevel.hh\n+ a00179.html\n+ dune/istl/bvector.hh\n+ dune/istl/istlexception.hh\n+ dune/istl/blocklevel.hh\n Dune::MatrixImp::DenseMatrixBase\n Dune::MatrixImp::DenseMatrixBase::Iterator\n Dune::MatrixImp::DenseMatrixBase::ConstIterator\n Dune::Matrix\n Dune::FieldTraits< Matrix< T, A > >\n Dune\n Dune::MatrixImp\n \n \n matrixindexset.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00146.html\n+ a00170.html\n Dune::MatrixIndexSet\n Dune\n \n \n matrixmarket.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00176.html\n- dune/istl/bcrsmatrix.hh\n- dune/istl/bvector.hh\n- dune/istl/matrixutils.hh\n- dune/istl/owneroverlapcopy.hh\n+ a00017.html\n+ dune/istl/bcrsmatrix.hh\n+ dune/istl/bvector.hh\n+ dune/istl/matrixutils.hh\n+ dune/istl/owneroverlapcopy.hh\n Dune::MatrixMarketImpl::mm_numeric_type\n Dune::MatrixMarketImpl::mm_numeric_type< int >\n Dune::MatrixMarketImpl::mm_numeric_type< double >\n Dune::MatrixMarketImpl::mm_numeric_type< float >\n Dune::MatrixMarketImpl::mm_numeric_type< std::complex< double > >\n Dune::MatrixMarketImpl::mm_numeric_type< std::complex< float > >\n Dune::MatrixMarketImpl::mm_header_printer< BCRSMatrix< T, A > >\n@@ -325,16 +325,16 @@\n Dune::MatrixMarketFormatError\n Dune\n Dune::MatrixMarketImpl\n \n \n matrixmatrix.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00065.html\n- dune/istl/bcrsmatrix.hh\n+ a00206.html\n+ dune/istl/bcrsmatrix.hh\n Dune::MatMultMatResult\n Dune::MatMultMatResult< FieldMatrix< T, n, k >, FieldMatrix< T, k, m > >\n Dune::MatMultMatResult< BCRSMatrix< FieldMatrix< T, n, k >, A >, BCRSMatrix< FieldMatrix< T, k, m >, A1 > >\n Dune::TransposedMatMultMatResult\n Dune::TransposedMatMultMatResult< FieldMatrix< T, k, n >, FieldMatrix< T, k, m > >\n Dune::TransposedMatMultMatResult< BCRSMatrix< FieldMatrix< T, k, n >, A >, BCRSMatrix< FieldMatrix< T, k, m >, A1 > >\n Dune\n@@ -352,18 +352,18 @@\n ga67ae04c7e7c030370f82da49ab2b98d1\n \n \n \n \n matrixredistribute.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00227.html\n- repartition.hh\n- dune/istl/owneroverlapcopy.hh\n- dune/istl/paamg/pinfo.hh\n+ a00011.html\n+ repartition.hh\n+ dune/istl/owneroverlapcopy.hh\n+ dune/istl/paamg/pinfo.hh\n Dune::RedistributeInformation\n Dune::RedistributeInformation< OwnerOverlapCopyCommunication< T, T1 > >\n Dune::CommMatrixRowSize\n Dune::CommMatrixSparsityPattern\n Dune::CommPolicy< CommMatrixSparsityPattern< M, I > >\n Dune::CommMatrixRow\n Dune::CommPolicy< CommMatrixRow< M, I > >\n@@ -372,17 +372,17 @@\n Dune::MatrixSparsityPatternGatherScatter\n Dune::MatrixRowGatherScatter\n Dune\n \n \n matrixutils.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00059.html\n- dune/istl/scaledidmatrix.hh\n- istlexception.hh\n+ a00218.html\n+ dune/istl/scaledidmatrix.hh\n+ istlexception.hh\n Dune::CheckIfDiagonalPresent\n Dune::CheckIfDiagonalPresent< Matrix, 0, l >\n Dune::CheckIfDiagonalPresent< MultiTypeBlockMatrix< T1, Args... >, blocklevel, l >\n Dune::MatrixDimension\n Dune::MatrixDimension< Matrix< B, TA > >\n Dune::MatrixDimension< BCRSMatrix< B, TA > >\n Dune::MatrixDimension< BCRSMatrix< FieldMatrix< B, n, m >, TA > >\n@@ -396,80 +396,80 @@\n Dune::IsMatrix< BCRSMatrix< T, A > >\n Dune::PointerCompare\n Dune\n \n \n multitypeblockmatrix.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00149.html\n- istlexception.hh\n- gsetc.hh\n+ a00029.html\n+ istlexception.hh\n+ gsetc.hh\n Dune::MultiTypeBlockMatrix\n Dune::MultiTypeBlockMatrix_Solver_Col\n Dune::MultiTypeBlockMatrix_Solver_Col< I, crow, ccol, 0 >\n Dune::MultiTypeBlockMatrix_Solver\n Dune::MultiTypeBlockMatrix_Solver< I, crow, 0 >\n std::tuple_element< i, Dune::MultiTypeBlockMatrix< Args... > >\n Dune\n std\n \n \n multitypeblockvector.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00188.html\n- istlexception.hh\n- gsetc.hh\n+ a00041.html\n+ istlexception.hh\n+ gsetc.hh\n Dune::FieldTraits< MultiTypeBlockVector< Args... > >\n Dune::MultiTypeBlockVector\n std::tuple_element< i, Dune::MultiTypeBlockVector< Args... > >\n Dune\n std\n \n \n novlpschwarz.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00023.html\n- io.hh\n- bvector.hh\n- vbvector.hh\n- bcrsmatrix.hh\n- gsetc.hh\n- ilu.hh\n- operators.hh\n- solvers.hh\n- preconditioners.hh\n- scalarproducts.hh\n- owneroverlapcopy.hh\n+ a00140.html\n+ io.hh\n+ bvector.hh\n+ vbvector.hh\n+ bcrsmatrix.hh\n+ gsetc.hh\n+ ilu.hh\n+ operators.hh\n+ solvers.hh\n+ preconditioners.hh\n+ scalarproducts.hh\n+ owneroverlapcopy.hh\n Dune::NonoverlappingSchwarzOperator\n Dune::NonoverlappingBlockPreconditioner\n Dune\n Dune::Amg\n \n \n operators.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00194.html\n- solvercategory.hh\n+ a00209.html\n+ solvercategory.hh\n Dune::LinearOperator\n Dune::AssembledLinearOperator\n Dune::MatrixAdapter\n Dune\n \n \n overlappingschwarz.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00155.html\n- dune/istl/bccsmatrixinitializer.hh\n- preconditioners.hh\n- superlu.hh\n- umfpack.hh\n- bvector.hh\n- bcrsmatrix.hh\n- ilusubdomainsolver.hh\n- dune/istl/solvertype.hh\n+ a00182.html\n+ dune/istl/bccsmatrixinitializer.hh\n+ preconditioners.hh\n+ superlu.hh\n+ umfpack.hh\n+ bvector.hh\n+ bcrsmatrix.hh\n+ ilusubdomainsolver.hh\n+ dune/istl/solvertype.hh\n Dune::OverlappingSchwarzInitializer\n Dune::AdditiveSchwarzMode\n Dune::MultiplicativeSchwarzMode\n Dune::SymmetricMultiplicativeSchwarzMode\n Dune::DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y >\n Dune::OverlappingAssignerHelper\n Dune::OverlappingAssignerHelper< DynamicMatrixSubdomainSolver< BCRSMatrix< K, Al >, X, Y >, false >\n@@ -499,40 +499,40 @@\n Dune::SeqOverlappingSchwarzDomainSize\n Dune::SeqOverlappingSchwarzDomainSize< BCRSMatrix< T, A > >\n Dune\n \n \n owneroverlapcopy.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00212.html\n- solvercategory.hh\n- istlexception.hh\n- dune/istl/matrixmarket.hh\n+ a00032.html\n+ solvercategory.hh\n+ istlexception.hh\n+ dune/istl/matrixmarket.hh\n Dune::OwnerOverlapCopyAttributeSet\n Dune::IndexInfoFromGrid\n Dune::OwnerOverlapCopyCommunication\n Dune::OwnerOverlapCopyCommunication::CopyGatherScatter\n Dune::OwnerOverlapCopyCommunication::AddGatherScatter\n Dune\n \n void\n testRedistributed\n- a00212.html\n+ a00032.html\n abcfd3b2ed3c4dd837b155879a3247503\n (int s)\n \n \n \n aggregates.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00107.html\n- parameters.hh\n- graph.hh\n- properties.hh\n- combinedfunctor.hh\n+ a00080.html\n+ parameters.hh\n+ graph.hh\n+ properties.hh\n+ combinedfunctor.hh\n Dune::Amg::AggregationCriterion\n Dune::Amg::SymmetricMatrixDependency\n Dune::Amg::Dependency\n Dune::Amg::SymmetricDependency\n Dune::Amg::Diagonal\n Dune::Amg::FirstDiagonal\n Dune::Amg::RowSum\n@@ -546,52 +546,52 @@\n Dune::Amg::Aggregator\n Dune\n Dune::Amg\n \n \n amg.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00143.html\n- dune/istl/paamg/smoother.hh\n- dune/istl/paamg/transfer.hh\n- dune/istl/paamg/matrixhierarchy.hh\n- dune/istl/solvers.hh\n- dune/istl/scalarproducts.hh\n- dune/istl/superlu.hh\n- dune/istl/umfpack.hh\n- dune/istl/solvertype.hh\n+ a00113.html\n+ dune/istl/paamg/smoother.hh\n+ dune/istl/paamg/transfer.hh\n+ dune/istl/paamg/matrixhierarchy.hh\n+ dune/istl/solvers.hh\n+ dune/istl/scalarproducts.hh\n+ dune/istl/superlu.hh\n+ dune/istl/umfpack.hh\n+ dune/istl/solvertype.hh\n Dune::Amg::AMG\n Dune::Amg::DirectSolverSelector\n Dune::Amg::DirectSolverSelector::Solver\n Dune::Amg::DirectSolverSelector::Solver< M, superlu >\n Dune::AMGCreator\n Dune::AMGCreator::isValidBlockType\n Dune::AMGCreator::isValidBlockType< FieldMatrix< T, n, m > >\n Dune\n Dune::Amg\n \n \n combinedfunctor.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00095.html\n+ a00059.html\n Dune::Amg::ApplyHelper\n Dune::Amg::ApplyHelper< 0 >\n Dune::Amg::CombinedFunctor\n Dune\n Dune::Amg\n \n \n construction.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00086.html\n- dune/istl/bvector.hh\n- dune/istl/operators.hh\n- dune/istl/owneroverlapcopy.hh\n- dune/istl/solvercategory.hh\n- pinfo.hh\n+ a00095.html\n+ dune/istl/bvector.hh\n+ dune/istl/operators.hh\n+ dune/istl/owneroverlapcopy.hh\n+ dune/istl/solvercategory.hh\n+ pinfo.hh\n Dune::Amg::ConstructionTraits< BlockVector< T, A > >\n Dune::Amg::ParallelOperatorArgs\n Dune::Amg::OwnerOverlapCopyCommunicationArgs\n Dune::Amg::SequentialCommunicationArgs\n Dune::Amg::ConstructionTraits< OverlappingSchwarzOperator< M, X, Y, C > >\n Dune::Amg::ConstructionTraits< NonoverlappingSchwarzOperator< M, X, Y, C > >\n Dune::Amg::MatrixAdapterArgs\n@@ -600,65 +600,65 @@\n Dune::Amg::ConstructionTraits< OwnerOverlapCopyCommunication< T1, T2 > >\n Dune\n Dune::Amg\n \n \n dependency.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00140.html\n- graph.hh\n- properties.hh\n+ a00101.html\n+ graph.hh\n+ properties.hh\n Dune::Amg::EdgeProperties\n Dune::Amg::VertexProperties\n Dune::Amg::PropertyGraphVertexPropertyMap\n Dune::PropertyMapTypeSelector< Amg::VertexVisitedTag, Amg::PropertiesGraph< G, Amg::VertexProperties, EP, VM, EM > >\n Dune\n Dune::Amg\n \n \n fastamg.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00122.html\n- dune/istl/paamg/smoother.hh\n- dune/istl/paamg/transfer.hh\n- dune/istl/paamg/matrixhierarchy.hh\n- dune/istl/solvers.hh\n- dune/istl/scalarproducts.hh\n- dune/istl/superlu.hh\n- dune/istl/umfpack.hh\n- dune/istl/solvertype.hh\n- dune/istl/io.hh\n- dune/istl/preconditioners.hh\n- fastamgsmoother.hh\n+ a00098.html\n+ dune/istl/paamg/smoother.hh\n+ dune/istl/paamg/transfer.hh\n+ dune/istl/paamg/matrixhierarchy.hh\n+ dune/istl/solvers.hh\n+ dune/istl/scalarproducts.hh\n+ dune/istl/superlu.hh\n+ dune/istl/umfpack.hh\n+ dune/istl/solvertype.hh\n+ dune/istl/io.hh\n+ dune/istl/preconditioners.hh\n+ fastamgsmoother.hh\n Dune::Amg::FastAMG\n Dune\n Dune::Amg\n \n #define\n DIRECTSOLVER\n- a00122.html\n+ a00098.html\n a72c0db94af03bbad6ae55a51224a4a4a\n \n \n \n \n fastamgsmoother.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00104.html\n+ a00116.html\n Dune::Amg::GaussSeidelPresmoothDefect\n Dune::Amg::GaussSeidelPostsmoothDefect\n Dune\n Dune::Amg\n \n \n galerkin.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00113.html\n- aggregates.hh\n- pinfo.hh\n+ a00107.html\n+ aggregates.hh\n+ pinfo.hh\n Dune::Amg::OverlapVertex\n Dune::Amg::SparsityBuilder\n Dune::Amg::BaseGalerkinProduct\n Dune::Amg::GalerkinProduct\n Dune::Amg::GalerkinProduct< SequentialInformation >\n Dune::Amg::BaseConnectivityConstructor\n Dune::Amg::BaseConnectivityConstructor::ConnectedBuilder\n@@ -668,32 +668,32 @@\n Dune::Amg::DirichletBoundarySetter< SequentialInformation >\n Dune\n Dune::Amg\n \n \n globalaggregates.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00134.html\n- aggregates.hh\n- pinfo.hh\n+ a00062.html\n+ aggregates.hh\n+ pinfo.hh\n Dune::Amg::GlobalAggregatesMap\n Dune::Amg::GlobalAggregatesMap::Proxy\n Dune::Amg::AggregatesGatherScatter\n Dune::Amg::AggregatesPublisher\n Dune::Amg::AggregatesPublisher< T, O, OwnerOverlapCopyCommunication< T1, T2 > >\n Dune::Amg::AggregatesPublisher< T, O, SequentialInformation >\n Dune::CommPolicy< Amg::GlobalAggregatesMap< T, TI > >\n Dune\n Dune::Amg\n \n \n graph.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00110.html\n- dune/istl/istlexception.hh\n+ a00089.html\n+ dune/istl/istlexception.hh\n Dune::Amg::MatrixGraph\n Dune::Amg::MatrixGraph::EdgeIteratorT\n Dune::Amg::MatrixGraph::VertexIteratorT\n Dune::Amg::SubGraph\n Dune::Amg::SubGraph::EdgeIndexMap\n Dune::Amg::SubGraph::EdgeIterator\n Dune::Amg::SubGraph::VertexIterator\n@@ -706,132 +706,132 @@\n Dune::Amg::GraphEdgePropertiesSelector\n Dune\n Dune::Amg\n \n \n graphcreator.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00125.html\n- graph.hh\n- dependency.hh\n- pinfo.hh\n- dune/istl/operators.hh\n- dune/istl/bcrsmatrix.hh\n+ a00053.html\n+ graph.hh\n+ dependency.hh\n+ pinfo.hh\n+ dune/istl/operators.hh\n+ dune/istl/bcrsmatrix.hh\n Dune::Amg::PropertiesGraphCreator\n Dune::Amg::PropertiesGraphCreator< M, SequentialInformation >\n Dune\n Dune::Amg\n \n \n hierarchy.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00116.html\n- dune/istl/paamg/construction.hh\n+ a00056.html\n+ dune/istl/paamg/construction.hh\n Dune::Amg::Hierarchy\n Dune::Amg::Hierarchy::LevelIterator\n Dune\n Dune::Amg\n \n \n indicescoarsener.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00089.html\n- renumberer.hh\n- dune/istl/owneroverlapcopy.hh\n- pinfo.hh\n+ a00086.html\n+ renumberer.hh\n+ dune/istl/owneroverlapcopy.hh\n+ pinfo.hh\n Dune::Amg::IndicesCoarsener\n Dune::Amg::ParallelIndicesCoarsener\n Dune::Amg::IndicesCoarsener< OwnerOverlapCopyCommunication< G, L >, E >\n Dune::Amg::IndicesCoarsener< SequentialInformation, E >\n Dune\n Dune::Amg\n \n \n kamg.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00137.html\n- dune/istl/preconditioners.hh\n- amg.hh\n+ a00074.html\n+ dune/istl/preconditioners.hh\n+ amg.hh\n Dune::Amg::KAmgTwoGrid\n Dune::Amg::KAMG\n Dune\n Dune::Amg\n \n \n matrixhierarchy.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00098.html\n- aggregates.hh\n- graph.hh\n- galerkin.hh\n- renumberer.hh\n- graphcreator.hh\n- hierarchy.hh\n- dune/istl/bvector.hh\n- dune/istl/matrixutils.hh\n- dune/istl/matrixredistribute.hh\n- dune/istl/paamg/dependency.hh\n- dune/istl/paamg/indicescoarsener.hh\n- dune/istl/paamg/globalaggregates.hh\n- dune/istl/paamg/construction.hh\n- dune/istl/paamg/smoother.hh\n- dune/istl/paamg/transfer.hh\n+ a00071.html\n+ aggregates.hh\n+ graph.hh\n+ galerkin.hh\n+ renumberer.hh\n+ graphcreator.hh\n+ hierarchy.hh\n+ dune/istl/bvector.hh\n+ dune/istl/matrixutils.hh\n+ dune/istl/matrixredistribute.hh\n+ dune/istl/paamg/dependency.hh\n+ dune/istl/paamg/indicescoarsener.hh\n+ dune/istl/paamg/globalaggregates.hh\n+ dune/istl/paamg/construction.hh\n+ dune/istl/paamg/smoother.hh\n+ dune/istl/paamg/transfer.hh\n Dune::Amg::MatrixHierarchy\n Dune::Amg::MatrixHierarchy::MatrixStats< Matrix, true >::calc\n Dune::Amg::CoarsenCriterion\n Dune\n Dune::Amg\n \n \n parameters.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00080.html\n+ a00065.html\n Dune::Amg::DependencyParameters\n Dune::Amg::AggregationParameters\n Dune::Amg::CoarseningParameters\n Dune::Amg::Parameters\n Dune\n Dune::Amg\n \n \n pinfo.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00119.html\n- dune/istl/solvercategory.hh\n+ a00068.html\n+ dune/istl/solvercategory.hh\n Dune::Amg::SequentialInformation\n Dune\n Dune::Amg\n \n \n properties.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00131.html\n+ a00083.html\n Dune::Amg::VertexVisitedTag\n Dune::Amg::RandomAccessBundledPropertyMap\n Dune\n Dune::Amg\n \n \n renumberer.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00083.html\n- aggregates.hh\n+ a00104.html\n+ aggregates.hh\n Dune::Amg::AggregateRenumberer\n Dune\n Dune::Amg\n \n \n smoother.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00101.html\n- dune/istl/paamg/construction.hh\n- dune/istl/paamg/aggregates.hh\n- dune/istl/preconditioners.hh\n- dune/istl/schwarz.hh\n- dune/istl/novlpschwarz.hh\n+ a00077.html\n+ dune/istl/paamg/construction.hh\n+ dune/istl/paamg/aggregates.hh\n+ dune/istl/preconditioners.hh\n+ dune/istl/schwarz.hh\n+ dune/istl/novlpschwarz.hh\n Dune::Amg::DefaultSmootherArgs\n Dune::Amg::SmootherTraits\n Dune::Amg::SmootherTraits< Richardson< X, Y > >\n Dune::Amg::SmootherTraits< BlockPreconditioner< X, Y, C, T > >\n Dune::Amg::SmootherTraits< NonoverlappingBlockPreconditioner< C, T > >\n Dune::Amg::DefaultConstructionArgs\n Dune::Amg::ConstructionArgs\n@@ -857,174 +857,174 @@\n Dune::Amg::ConstructionTraits< SeqOverlappingSchwarz< M, X, TM, TS, TA > >\n Dune\n Dune::Amg\n \n \n transfer.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00092.html\n- dune/istl/bvector.hh\n- dune/istl/matrixredistribute.hh\n- dune/istl/paamg/pinfo.hh\n- dune/istl/owneroverlapcopy.hh\n- dune/istl/paamg/aggregates.hh\n+ a00110.html\n+ dune/istl/bvector.hh\n+ dune/istl/matrixredistribute.hh\n+ dune/istl/paamg/pinfo.hh\n+ dune/istl/owneroverlapcopy.hh\n+ dune/istl/paamg/aggregates.hh\n Dune::Amg::Transfer\n Dune::Amg::Transfer< V, V1, SequentialInformation >\n Dune::Amg::Transfer< V, V1, OwnerOverlapCopyCommunication< T1, T2 > >\n Dune\n Dune::Amg\n \n \n twolevelmethod.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/paamg/\n- a00128.html\n- dune/istl/operators.hh\n- amg.hh\n- galerkin.hh\n- dune/istl/solver.hh\n+ a00092.html\n+ dune/istl/operators.hh\n+ amg.hh\n+ galerkin.hh\n+ dune/istl/solver.hh\n Dune::Amg::LevelTransferPolicy\n Dune::Amg::AggregationLevelTransferPolicy\n Dune::Amg::OneStepAMGCoarseSolverPolicy\n Dune::Amg::TwoLevelMethod\n Dune\n Dune::Amg\n \n \n preconditioner.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00077.html\n- solvercategory.hh\n+ a00155.html\n+ solvercategory.hh\n Dune::Preconditioner\n Dune\n \n \n preconditioners.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00029.html\n+ a00212.html\n dune/istl/solverregistry.hh\n- preconditioner.hh\n- solver.hh\n- solvercategory.hh\n- istlexception.hh\n- matrixutils.hh\n- gsetc.hh\n- ildl.hh\n- ilu.hh\n+ preconditioner.hh\n+ solver.hh\n+ solvercategory.hh\n+ istlexception.hh\n+ matrixutils.hh\n+ gsetc.hh\n+ ildl.hh\n+ ilu.hh\n Dune::InverseOperator2Preconditioner\n Dune::SeqSSOR\n Dune::SeqSOR\n Dune::SeqJac\n Dune::SeqILU\n Dune::Richardson\n Dune::SeqILDL\n Dune\n \n \n repartition.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00209.html\n- dune/istl/owneroverlapcopy.hh\n- dune/istl/paamg/graph.hh\n+ a00197.html\n+ dune/istl/owneroverlapcopy.hh\n+ dune/istl/paamg/graph.hh\n Dune::RedistributeInterface\n Dune\n Dune::Metis\n \n int\n globalOwnerVertices\n- a00209.html\n+ a00197.html\n ae1de746d0ff4ac76e9ddc08c991d0e41\n \n \n \n \n scalarproducts.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00041.html\n- bvector.hh\n- solvercategory.hh\n+ a00020.html\n+ bvector.hh\n+ solvercategory.hh\n Dune::ScalarProduct\n Dune::ParallelScalarProduct\n Dune::SeqScalarProduct\n Dune::NonoverlappingSchwarzScalarProduct\n Dune::OverlappingSchwarzScalarProduct\n Dune\n \n \n scaledidmatrix.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00206.html\n+ a00227.html\n Dune::ScaledIdentityMatrix\n Dune::DenseMatrixAssigner< DenseMatrix, ScaledIdentityMatrix< field, N > >\n Dune::FieldTraits< ScaledIdentityMatrix< K, n > >\n Dune\n \n \n schwarz.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00011.html\n- io.hh\n- bvector.hh\n- vbvector.hh\n- bcrsmatrix.hh\n- gsetc.hh\n- ilu.hh\n- operators.hh\n- solvers.hh\n- preconditioners.hh\n- scalarproducts.hh\n- owneroverlapcopy.hh\n+ a00014.html\n+ io.hh\n+ bvector.hh\n+ vbvector.hh\n+ bcrsmatrix.hh\n+ gsetc.hh\n+ ilu.hh\n+ operators.hh\n+ solvers.hh\n+ preconditioners.hh\n+ scalarproducts.hh\n+ owneroverlapcopy.hh\n Dune::OverlappingSchwarzOperator\n Dune::ParSSOR\n Dune::BlockPreconditioner\n Dune\n Dune::Amg\n \n \n solver.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00170.html\n- solvertype.hh\n- preconditioner.hh\n- operators.hh\n- scalarproducts.hh\n+ a00224.html\n+ solvertype.hh\n+ preconditioner.hh\n+ operators.hh\n+ scalarproducts.hh\n Dune::InverseOperatorResult\n Dune::InverseOperator\n Dune::IterativeSolver\n Dune::IterativeSolver::Iteration\n Dune::SolverHelper\n Dune::SolverHelper::Implementation\n Dune::SolverHelper::Implementation< true, Dummy >\n Dune\n \n \n solvercategory.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00053.html\n+ a00128.html\n Dune::SolverCategory\n Dune::InvalidSolverCategory\n Dune\n \n \n solverfactory.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00179.html\n+ a00143.html\n solverregistry.hh\n- dune/istl/solver.hh\n- dune/istl/schwarz.hh\n- dune/istl/novlpschwarz.hh\n+ dune/istl/solver.hh\n+ dune/istl/schwarz.hh\n+ dune/istl/novlpschwarz.hh\n Dune::SolverFactory\n Dune\n \n \n solverregistry.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n a00038.html\n- dune/istl/common/registry.hh\n- dune/istl/preconditioner.hh\n- dune/istl/solver.hh\n+ dune/istl/common/registry.hh\n+ dune/istl/preconditioner.hh\n+ dune/istl/solver.hh\n Dune::UnsupportedType\n Dune::InvalidSolverFactoryConfiguration\n Dune\n \n #define\n DUNE_REGISTER_DIRECT_SOLVER\n a00038.html\n@@ -1045,23 +1045,23 @@\n a2e50053eee47875dee3ab97cd6ab4278\n (name,...)\n \n \n \n solvers.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00071.html\n- dune/istl/allocator.hh\n- dune/istl/bcrsmatrix.hh\n- dune/istl/eigenvalue/arpackpp.hh\n- dune/istl/istlexception.hh\n- dune/istl/operators.hh\n- dune/istl/preconditioner.hh\n- dune/istl/scalarproducts.hh\n- dune/istl/solver.hh\n+ a00173.html\n+ dune/istl/allocator.hh\n+ dune/istl/bcrsmatrix.hh\n+ dune/istl/eigenvalue/arpackpp.hh\n+ dune/istl/istlexception.hh\n+ dune/istl/operators.hh\n+ dune/istl/preconditioner.hh\n+ dune/istl/scalarproducts.hh\n+ dune/istl/solver.hh\n dune/istl/solverregistry.hh\n Dune::LoopSolver\n Dune::GradientSolver\n Dune::CGSolver\n Dune::BiCGSTABSolver\n Dune::MINRESSolver\n Dune::RestartedGMResSolver\n@@ -1070,48 +1070,48 @@\n Dune::RestartedFCGSolver\n Dune::CompleteFCGSolver\n Dune\n \n \n solvertype.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00218.html\n+ a00122.html\n Dune::IsDirectSolver\n Dune::StoresColumnCompressed\n Dune\n \n \n spqr.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00197.html\n- dune/istl/bccsmatrixinitializer.hh\n- dune/istl/solvers.hh\n- dune/istl/solvertype.hh\n- dune/istl/solverfactory.hh\n+ a00194.html\n+ dune/istl/bccsmatrixinitializer.hh\n+ dune/istl/solvers.hh\n+ dune/istl/solvertype.hh\n+ dune/istl/solverfactory.hh\n Dune::SPQR\n Dune::SPQR< BCRSMatrix< FieldMatrix< T, n, m >, A > >\n Dune::IsDirectSolver< SPQR< BCRSMatrix< T, A > > >\n Dune::StoresColumnCompressed< SPQR< BCRSMatrix< T, A > > >\n Dune::SPQRCreator\n Dune::SPQRCreator::isValidBlock\n Dune::SPQRCreator::isValidBlock< FieldVector< double, 1 > >\n Dune\n \n \n superlu.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00008.html\n- superlufunctions.hh\n- solvers.hh\n- supermatrix.hh\n- bcrsmatrix.hh\n- bvector.hh\n- istlexception.hh\n- dune/istl/solvertype.hh\n- dune/istl/solverfactory.hh\n+ a00161.html\n+ superlufunctions.hh\n+ solvers.hh\n+ supermatrix.hh\n+ bcrsmatrix.hh\n+ bvector.hh\n+ istlexception.hh\n+ dune/istl/solvertype.hh\n+ dune/istl/solverfactory.hh\n Dune::SuperLUSolveChooser\n Dune::SuperLUDenseMatChooser\n Dune::SuperLUQueryChooser\n Dune::QuerySpaceChooser\n Dune::SuperLU\n Dune::IsDirectSolver< SuperLU< BCRSMatrix< T, A > > >\n Dune::StoresColumnCompressed< SuperLU< BCRSMatrix< T, A > > >\n@@ -1122,31 +1122,31 @@\n Dune::SuperLUCreator::isValidBlock< double >\n Dune::SuperLUCreator::isValidBlock< std::complex< double > >\n Dune\n \n \n superlufunctions.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00152.html\n+ a00008.html\n \n #define\n int_t\n- a00152.html\n+ a00008.html\n adae0e0955f67a0812302aab3d89a7cb3\n \n \n \n \n supermatrix.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00014.html\n- bcrsmatrix.hh\n- bvector.hh\n- dune/istl/bccsmatrixinitializer.hh\n- superlufunctions.hh\n+ a00176.html\n+ bcrsmatrix.hh\n+ bvector.hh\n+ dune/istl/bccsmatrixinitializer.hh\n+ superlufunctions.hh\n Dune::SuperMatrixCreateSparseChooser\n Dune::SuperMatrixPrinter\n Dune::BaseGetSuperLUType\n Dune::GetSuperLUType\n Dune::GetSuperLUType< double >\n Dune::GetSuperLUType< float >\n Dune::GetSuperLUType< std::complex< double > >\n@@ -1156,20 +1156,20 @@\n Dune::SuperLUMatrix< BCRSMatrix< B, TA > >\n Dune::SuperMatrixInitializer< BCRSMatrix< B, A > >\n Dune\n \n \n umfpack.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00044.html\n- dune/istl/bccsmatrixinitializer.hh\n- dune/istl/bcrsmatrix.hh\n- dune/istl/solvers.hh\n- dune/istl/solvertype.hh\n- dune/istl/solverfactory.hh\n+ a00167.html\n+ dune/istl/bccsmatrixinitializer.hh\n+ dune/istl/bcrsmatrix.hh\n+ dune/istl/solvers.hh\n+ dune/istl/solvertype.hh\n+ dune/istl/solverfactory.hh\n Dune::UMFPackMethodChooser\n Dune::UMFPackMethodChooser< double, std::true_type >\n Dune::UMFPackMethodChooser< double, std::false_type >\n Dune::UMFPackMethodChooser< std::complex< double >, std::true_type >\n Dune::UMFPackMethodChooser< std::complex< double >, std::false_type >\n Dune::UMFPack\n Dune::IsDirectSolver< UMFPack< BCRSMatrix< FieldMatrix< T, n, m >, A > > >\n@@ -1178,18 +1178,18 @@\n Dune::UMFPackCreator::isValidBlock\n Dune::UMFPackCreator::isValidBlock< B, std::enable_if_t< std::is_same< typename FieldTraits< B >::real_type, double >::value > >\n Dune\n \n \n vbvector.hh\n /build/reproducible-path/dune-istl-2.9.0/dune/istl/\n- a00203.html\n- istlexception.hh\n- bvector.hh\n- dune/istl/blocklevel.hh\n+ a00125.html\n+ istlexception.hh\n+ bvector.hh\n+ dune/istl/blocklevel.hh\n Dune::VariableBlockVector\n Dune::VariableBlockVector::CreateIterator\n Dune::VariableBlockVector::RealIterator\n Dune\n \n \n Dune::AdderSelector\n"}]}]}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/files.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/files.html", "unified_diff": "@@ -75,90 +75,90 @@\n
    Here is a list of all files with brief descriptions:
    \n
    [detail level 1234]
    \n \n \n \n \n \n-\n-\n+\n+\n \n-\n-\n+\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n \n-\n-\n-\n-\n-\n-\n-\n-\n+\n+\n+\n+\n+\n+\n+\n+\n
      doc
     doxygen
      dune
      istl
      common
     counter.hh
     registry.hh
     counter.hh
     registry.hh
      eigenvalue
     arpackpp.hh
     poweriteration.hh
     arpackpp.hh
     poweriteration.hh
      paamg
     aggregates.hhProvides classes for the Coloring process of AMG
     amg.hhThe AMG preconditioner
     combinedfunctor.hh
     construction.hhHelper classes for the construction of classes without empty constructor
     dependency.hhProvides classes for initializing the link attributes of a matrix graph
     fastamg.hhA fast AMG method, that currently only allows only Gauss-Seidel smoothing and is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep with the defect calculation to reduce memory transfers
     fastamgsmoother.hh
     galerkin.hhProvides a class for building the galerkin product based on a aggregation scheme
     globalaggregates.hhProvdes class for identifying aggregates globally
     graph.hhProvides classes for building the matrix graph
     graphcreator.hh
     hierarchy.hhProvides a classes representing the hierarchies in AMG
     indicescoarsener.hhProvides a class for building the index set and remote indices on the coarse level
     kamg.hhProvides an algebraic multigrid using a Krylov cycle
     matrixhierarchy.hhProvides a classes representing the hierarchies in AMG
     parameters.hhParameter classes for customizing AMG
     pinfo.hh
     properties.hhProvides classes for handling internal properties in a graph
     renumberer.hh
     smoother.hhClasses for the generic construction and application of the smoothers
     transfer.hhProlongation and restriction for amg
     twolevelmethod.hhAlgebraic twolevel methods
     allocator.hh
     basearray.hhImplements several basic array containers
     bccsmatrix.hh
     bccsmatrixinitializer.hh
     bcrsmatrix.hhImplementation of the BCRSMatrix class
     bdmatrix.hhImplementation of the BDMatrix class
     blocklevel.hhHelper functions for determining the vector/matrix block level
     btdmatrix.hhImplementation of the BTDMatrix class
     bvector.hhThis file implements a vector space as a tensor product of a given vector space. The number of components can be given at run-time
     cholmod.hh
     foreach.hh
     gsetc.hhSimple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way
     ildl.hhIncomplete LDL decomposition
     ilu.hhThe incomplete LU factorization kernels
     ilusubdomainsolver.hhVarious local subdomain solvers based on ILU for SeqOverlappingSchwarz
     io.hhSome generic functions for pretty printing vectors and matrices
     istlexception.hh
     ldl.hhClass for using LDL with ISTL matrices
     matrix.hhA dynamic dense block matrix class
     matrixindexset.hh
     matrixmarket.hhProvides classes for reading and writing MatrixMarket Files with an extension for parallel matrices
     matrixmatrix.hhFunctions for sparse matrix matrix multiplication
     matrixredistribute.hhFunctionality for redistributing a sparse matrix
     matrixutils.hhSome handy generic functions for ISTL matrices
     multitypeblockmatrix.hh
     multitypeblockvector.hh
     novlpschwarz.hh
     operators.hhDefine general, extensible interface for operators. The available implementation wraps a matrix
     overlappingschwarz.hhContains one level overlapping Schwarz preconditioners
     owneroverlapcopy.hhClasses providing communication interfaces for overlapping Schwarz methods
     preconditioner.hh
     preconditioners.hhDefine general preconditioner interface
     repartition.hhFunctionality for redistributing a parallel index set using graph partitioning
     scalarproducts.hhDefine base class for scalar product and norm
     scaledidmatrix.hhThis file implements a quadratic matrix of fixed size which is a multiple of the identity
     schwarz.hh
     solver.hhDefine general, extensible interface for inverse operators
     solvercategory.hh
     solverfactory.hh
     aggregates.hhProvides classes for the Coloring process of AMG
     amg.hhThe AMG preconditioner
     combinedfunctor.hh
     construction.hhHelper classes for the construction of classes without empty constructor
     dependency.hhProvides classes for initializing the link attributes of a matrix graph
     fastamg.hhA fast AMG method, that currently only allows only Gauss-Seidel smoothing and is currently purely sequential. It combines one Gauss-Seidel presmoothing sweep with the defect calculation to reduce memory transfers
     fastamgsmoother.hh
     galerkin.hhProvides a class for building the galerkin product based on a aggregation scheme
     globalaggregates.hhProvdes class for identifying aggregates globally
     graph.hhProvides classes for building the matrix graph
     graphcreator.hh
     hierarchy.hhProvides a classes representing the hierarchies in AMG
     indicescoarsener.hhProvides a class for building the index set and remote indices on the coarse level
     kamg.hhProvides an algebraic multigrid using a Krylov cycle
     matrixhierarchy.hhProvides a classes representing the hierarchies in AMG
     parameters.hhParameter classes for customizing AMG
     pinfo.hh
     properties.hhProvides classes for handling internal properties in a graph
     renumberer.hh
     smoother.hhClasses for the generic construction and application of the smoothers
     transfer.hhProlongation and restriction for amg
     twolevelmethod.hhAlgebraic twolevel methods
     allocator.hh
     basearray.hhImplements several basic array containers
     bccsmatrix.hh
     bccsmatrixinitializer.hh
     bcrsmatrix.hhImplementation of the BCRSMatrix class
     bdmatrix.hhImplementation of the BDMatrix class
     blocklevel.hhHelper functions for determining the vector/matrix block level
     btdmatrix.hhImplementation of the BTDMatrix class
     bvector.hhThis file implements a vector space as a tensor product of a given vector space. The number of components can be given at run-time
     cholmod.hh
     foreach.hh
     gsetc.hhSimple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way
     ildl.hhIncomplete LDL decomposition
     ilu.hhThe incomplete LU factorization kernels
     ilusubdomainsolver.hhVarious local subdomain solvers based on ILU for SeqOverlappingSchwarz
     io.hhSome generic functions for pretty printing vectors and matrices
     istlexception.hh
     ldl.hhClass for using LDL with ISTL matrices
     matrix.hhA dynamic dense block matrix class
     matrixindexset.hh
     matrixmarket.hhProvides classes for reading and writing MatrixMarket Files with an extension for parallel matrices
     matrixmatrix.hhFunctions for sparse matrix matrix multiplication
     matrixredistribute.hhFunctionality for redistributing a sparse matrix
     matrixutils.hhSome handy generic functions for ISTL matrices
     multitypeblockmatrix.hh
     multitypeblockvector.hh
     novlpschwarz.hh
     operators.hhDefine general, extensible interface for operators. The available implementation wraps a matrix
     overlappingschwarz.hhContains one level overlapping Schwarz preconditioners
     owneroverlapcopy.hhClasses providing communication interfaces for overlapping Schwarz methods
     preconditioner.hh
     preconditioners.hhDefine general preconditioner interface
     repartition.hhFunctionality for redistributing a parallel index set using graph partitioning
     scalarproducts.hhDefine base class for scalar product and norm
     scaledidmatrix.hhThis file implements a quadratic matrix of fixed size which is a multiple of the identity
     schwarz.hh
     solver.hhDefine general, extensible interface for inverse operators
     solvercategory.hh
     solverfactory.hh
     solverregistry.hh
     solvers.hhImplementations of the inverse operator interface
     solvertype.hhTemplates characterizing the type of a solver
     spqr.hhClass for using SPQR with ISTL matrices
     superlu.hhClasses for using SuperLU with ISTL matrices
     superlufunctions.hh
     supermatrix.hh
     umfpack.hhClasses for using UMFPack with ISTL matrices
     vbvector.hh???
     solvers.hhImplementations of the inverse operator interface
     solvertype.hhTemplates characterizing the type of a solver
     spqr.hhClass for using SPQR with ISTL matrices
     superlu.hhClasses for using SuperLU with ISTL matrices
     superlufunctions.hh
     supermatrix.hh
     umfpack.hhClasses for using UMFPack with ISTL matrices
     vbvector.hh???
    \n
    \n \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/globals.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/globals.html", "unified_diff": "@@ -67,26 +67,26 @@\n \n \n \n \n
    \n
    Here is a list of all file members with links to the files they belong to:
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/globals_defs.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/globals_defs.html", "unified_diff": "@@ -66,22 +66,22 @@\n \n \n \n \n \n
    \n
    Here is a list of all macros with links to the files they belong to:
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/globals_func.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/globals_func.html", "unified_diff": "@@ -66,15 +66,15 @@\n \n \n \n \n \n
    \n
    Here is a list of all functions with links to the files they belong to:
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}, {"source1": "./usr/share/doc/libdune-istl-doc/doxygen/globals_vars.html", "source2": "./usr/share/doc/libdune-istl-doc/doxygen/globals_vars.html", "unified_diff": "@@ -67,17 +67,17 @@\n \n \n \n \n
    \n
    Here is a list of all variables with links to the files they belong to:
    \n
    \n \n
    \n Generated by \"doxygen\"/ 1.9.8\n
    \n \n"}]}]}]}]}